:root {
  color-scheme: dark;
  --page: #111213;
  --sidebar: #141516;
  --surface: #191b1c;
  --border: #2b2e30;
  --text: #eeeeef;
  --muted: #989da1;
  --accent: #54c9c1;
  --positive: #86cba4;
  --header-height: 68px;
  --sidebar-width: 212px;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--page); color: var(--text); font-size: 14px; }
body.modal-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.material-symbols-rounded {
  display: inline-block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  overflow: hidden;
  font-family: "Material Symbols Rounded";
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 12px; background: var(--surface); }
.skip-link:focus { top: 12px; }

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 28px 0 25px;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-icon { position: relative; flex: 0 0 27px; width: 27px; height: 38px; }
.brand-icon img { position: absolute; top: 50%; left: 50%; display: block; width: 52px; height: 52px; max-width: none; transform: translate(-50%, -50%); }
.brand-text { font-family: "Space Grotesk", "Segoe UI", sans-serif; font-size: 23px; font-weight: 600; }
.header-account { display: flex; align-items: center; gap: 20px; }
.account-caption { color: var(--muted); font-size: 12px; }
.user-menu { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 4px 8px 4px 5px; border: 1px solid var(--border); border-radius: 6px; background: #1b1d1f; }
.user-menu:hover { border-color: #4b5054; }
.username { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 400; }
.user-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: #2c3335; color: #bdced0; }
.user-avatar .material-symbols-rounded { font-size: 20px; }
.account-chevron { color: var(--muted); font-size: 18px; height: 18px; }
.account-popover { position: fixed; inset: 58px 28px auto auto; margin: 0; min-width: 236px; padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: #202224; color: var(--text); box-shadow: 0 18px 44px #0006; }
.account-popover:popover-open { display: grid; gap: 3px; }
.account-popover-head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; }
.account-popover-head strong { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; }
.account-popover-head small { display: block; margin-top: 3px; color: #8d959a; font-size: 10px; }
.user-avatar.large { width: 34px; height: 34px; }
.account-action { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #c6cbce; font-size: 12px; text-align: left; }
.account-action:hover { background: #2a2d2f; color: #f2f4f4; }
.account-action .material-symbols-rounded { width: 19px; height: 19px; flex-basis: 19px; font-size: 19px; color: #8f989d; }
.account-action.danger:hover { color: #e9ada8; background: #2e2424; }
.popover-divider { height: 1px; margin: 6px 4px; background: var(--border); }

.app-shell { display: flex; align-items: flex-start; min-height: calc(100dvh - var(--header-height)); }
.sidebar {
  position: sticky;
  top: var(--header-height);
  z-index: 5;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
  width: var(--sidebar-width);
  height: calc(100dvh - var(--header-height));
  min-height: 340px;
  padding: 27px 14px 16px;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  transition: width 320ms cubic-bezier(.4,0,.2,1), padding 320ms cubic-bezier(.4,0,.2,1);
  overflow: visible;
}
.sidebar-caption { display: block; height: 30px; padding-left: 12px; color: #7f858a; font-size: 11px; white-space: nowrap; overflow: hidden; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar-link { display: flex; position: relative; align-items: center; gap: 12px; height: 43px; padding: 0 12px; border-radius: 5px; color: #a5aaae; font-size: 13px; font-weight: 400; transition: color 160ms ease, background 160ms ease; }
.sidebar-link:hover { color: var(--text); background: #202324; }
.sidebar-link.active { background: #223031; color: #93dcd6; }
.sidebar-link.active .material-symbols-rounded { font-variation-settings: "FILL" 1; }
.sidebar-link .material-symbols-rounded { font-size: 20px; }
.link-text { overflow: hidden; white-space: nowrap; transition: opacity 140ms ease; }
.sidebar-bottom { padding-top: 16px; border-top: 1px solid var(--border); }
.logoff { color: #989da1; }
.logoff:hover { color: #e4aaa4; background: #2b2222; }
.sidebar-footnote { display: block; padding: 18px 12px 0; color: #74797e; font-family: "Space Grotesk", sans-serif; font-size: 11px; overflow: hidden; }
.sidebar-toggle { position: absolute; top: calc(50% - 36px); left: calc(100% + 5px); z-index: 6; display: grid; place-items: center; width: 24px; min-width: 24px; height: 72px; padding: 0; border: 0; background: transparent; transform: none; box-shadow: none; filter: none; }
.sidebar-handle { display: block; width: 5px; height: 32px; border-radius: 4px; background: #626d70; pointer-events: none; transition: height 260ms cubic-bezier(.4,0,.2,1), background-color 180ms ease; }
.header { gap: 24px; }
.header > .brand,.header-account { flex-shrink: 0; }
.home-search { position: relative; margin: 0 auto; flex: 1 1 420px; max-width: 560px; min-width: 0; z-index: 4; }
.home-search-input { display: flex; align-items: center; gap: 10px; border: 1px solid #374041; border-radius: 6px; padding: 0 14px; background: #191d1e; }
.home-search-input:focus-within { border-color: #77bfb7; }
.home-search-input > span { color: #8aa5a2; flex-shrink: 0; }
.home-search-input input { width: 100%; min-width: 0; height: 46px; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 13px; }
.search-dropdown { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows 280ms ease, opacity 200ms ease, visibility 280ms; position: absolute; top: calc(100% + 6px); width: 100%; }
.search-dropdown > div { min-height: 0; overflow: hidden; }
.home-search.is-open .search-dropdown { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.search-results { max-height: min(360px,50dvh); overflow-y: auto; background: #1b2021; border: 1px solid #364041; border-radius: 6px; box-shadow: 0 12px 24px #0004; }
.search-result { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; text-align: left; border: 0; border-bottom: 1px solid #2c3334; background: transparent; font-size: 12px; }
.search-result > span { min-width: 0; overflow-wrap: anywhere; }
.search-result small { color: #9badab; flex-shrink: 0; }
.search-result:hover,.search-result:focus-visible { background: #293536; }
.search-empty { padding: 18px; color: #aab8b6; font-size: 12px; }
.search-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) { .search-dropdown { transition: none; } }
@media (max-width: 760px) {
  :root { --header-height: 120px; }
  .header { flex-wrap: wrap; gap: 8px 12px; padding-block: 8px; }
  .header > .home-search { order: 3; flex-basis: 100%; max-width: none; }
  .header > .header-account { margin-left: auto; }
  .home-search-input input { height: 38px; font-size: 12px; }
}
.sidebar-toggle:focus-visible .sidebar-handle { height: 52px; background: #9bc7c6; }
@media (hover: hover) {
  .sidebar-toggle:hover .sidebar-handle { height: 52px; background: #9bc7c6; }
}
.sidebar-toggle:active .sidebar-handle { background: #54c9c1; }
.sidebar-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .sidebar, .sidebar-handle { transition: none; }
}
.sidebar.collapsed { width: 68px; padding-right: 10px; padding-left: 10px; }
.sidebar.collapsed .sidebar-link { gap: 0; padding: 0; justify-content: center; }
.sidebar.collapsed .link-text { width: 0; opacity: 0; }
.sidebar.collapsed .sidebar-caption, .sidebar.collapsed .sidebar-footnote { visibility: hidden; }

.content { flex: 1; min-width: 0; padding: 27px 40px 20px 44px; container-type: inline-size; }
.home-view { width: min(1280px, 100%); margin: 0 auto; }
.page-context { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; font-size: 11px; color: #81878b; }
.page-context span:last-child { color: #c4c7ca; }
.page-context span:nth-child(2) { color: #50565b; }
.home-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.home-heading h1 { font-size: 34px; line-height: 1.25; font-weight: 400; overflow-wrap: anywhere; }
.home-heading h1 span { color: #b5babc; }
.home-heading p { margin-top: 10px; color: var(--muted); font-size: 13px; }
.demo-label { display: flex; align-items: center; gap: 6px; color: #8b9296; font-size: 11px; white-space: nowrap; }
.demo-label .material-symbols-rounded { width: 16px; height: 16px; flex-basis: 16px; font-size: 16px; }
.overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.overview-heading h2 { font-size: 13px; font-weight: 500; }
.overview-heading > span { color: #858b90; font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { position: relative; min-width: 0; min-height: 160px; padding: 19px 19px 21px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); transition: border-color 160ms ease; }
.metric-card:hover { border-color: #464b4f; }
.metric-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 36px; }
.metric-heading h3 { color: #b3b8bc; font-size: 12px; line-height: 1.5; font-weight: 400; }
.metric-icon { font-size: 18px; width: 19px; height: 19px; flex-basis: 19px; color: #879499; }
.queue-icon { color: #baa27c; }
.balance-icon { color: #77bbb3; }
.metric-value { margin: 6px 0 21px; font-size: 32px; line-height: 1.15; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.currency { color: #aeb5b8; font-size: 21px; }
.cents { color: #aeb5b8; font-size: 23px; }
.metric-note { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 16px; padding-right: 18px; color: #8c9398; font-size: 10px; line-height: 1.5; }
.metric-change { color: var(--positive); font-variant-numeric: tabular-nums; }
.status-dot { width: 5px; height: 5px; margin-right: 2px; border-radius: 50%; background: #c2a171; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; flex: 0 0 32px; border: 0; border-radius: 4px; background: transparent; color: #899196; transition: background 160ms ease, color 160ms ease; }
.icon-button:hover { color: #e2e7e9; background: #2b2e30; }
.icon-button .material-symbols-rounded { font-size: 18px; height: 18px; width: 18px; }
.metric-card .card-expand { position: absolute; right: 8px; bottom: 10px; }
.metric-card .card-expand .material-symbols-rounded { font-size: 15px; }
[data-tooltip]::after { position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 15; width: max-content; max-width: 190px; padding: 7px 9px; border: 1px solid #42484c; border-radius: 4px; background: #25292b; color: #eef0f1; font: 11px/1.3 "Inter", sans-serif; content: attr(data-tooltip); pointer-events: none; opacity: 0; transition: opacity 140ms ease; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; }

.chart-card { margin-top: 24px; padding: 24px 24px 0; border: 1px solid var(--border); border-radius: 6px; background: #17191a; }
.chart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.chart-heading h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.chart-heading h2 span { color: var(--muted); font-size: 12px; font-weight: 400; }
.date-range { color: #8c9499; font-size: 11px; line-height: 1.6; }
.chart-heading .date-range { margin-top: 5px; }
.chart-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.segmented-control { display: inline-flex; align-items: center; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 5px; background: #121415; }
.chart-control { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 37px; height: 28px; padding: 0 9px; border: 0; border-radius: 3px; background: transparent; color: #989fa3; font-size: 11px; font-weight: 400; }
.chart-control:hover { color: #e7ebed; }
.chart-control.active { background: #303538; color: #f3f5f5; }
.chart-control .material-symbols-rounded { font-size: 19px; height: 19px; width: 19px; }
.toolbar-divider { width: 1px; height: 18px; margin: 0 6px; background: var(--border); }
.chart-legend { display: flex; align-items: center; gap: 8px; margin: 28px 0 21px; color: #b8bec2; font-size: 11px; }
.legend-marker { width: 14px; height: 2px; background: var(--accent); }
.chart-unit { margin-left: auto; color: #777f84; font-size: 10px; }
.chart-wrap { position: relative; height: 280px; min-width: 0; }
canvas { display: block; max-width: 100%; }
.chart-footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; padding: 20px 0 22px; border-top: 1px solid var(--border); }
.chart-footer > div { min-width: 0; }
.chart-footer > div + div { border-left: 1px solid var(--border); padding-left: 24px; }
.chart-footer span { color: #8f979c; font-size: 11px; }
.chart-footer p { margin-top: 8px; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.4; overflow-wrap: anywhere; }
.positive { color: var(--positive); }
.negative { color: #d99990; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; color: #777e83; font-size: 10px; }
.page-footer span:last-child { font-family: "Space Grotesk", sans-serif; }

.modal { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--page); color: var(--text); }
.modal::backdrop { background: #08090be6; }
.modal[open] { animation: modal-enter 180ms ease-out; }
.modal-panel { display: flex; flex-direction: column; gap: 24px; width: min(1400px, 100%); min-height: 100%; padding: 36px 48px 24px; margin: 0 auto; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.section-label { color: var(--muted); font-size: 11px; }
.modal-header h2 { margin-top: 9px; font-size: 26px; line-height: 1.25; font-weight: 400; overflow-wrap: anywhere; }
.modal-close { width: 40px; height: 40px; flex-basis: 40px; }
.modal-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
#modalValue { margin-right: 12px; font-size: 34px; font-weight: 400; font-variant-numeric: tabular-nums; }
#modalGrowth { font-size: 13px; }
.summary-caption { color: var(--muted); font-size: 12px; }
.modal-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 0; border-block: 1px solid var(--border); }
.modal-controls > .segmented-control:last-child { margin-left: auto; }
.modal-controls [data-tooltip]::after { right: auto; left: 0; }
.detail-chart-wrap { position: relative; flex: 1; min-height: 280px; height: 44dvh; }
.modal-footer { margin: 0; }
.modal-demo { align-self: flex-end; color: #878f95; font-size: 11px; }
@keyframes modal-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.center-dialog { width: min(680px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: #181a1b; color: var(--text); box-shadow: 0 24px 70px #0009; }
.center-dialog::backdrop { background: #08090bcc; backdrop-filter: blur(2px); }
.center-dialog[open] { animation: modal-enter 160ms ease-out; }
.center-panel { display: grid; gap: 22px; padding: 24px; }
.center-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.center-header h2 { margin-top: 7px; font-size: 24px; line-height: 1.2; font-weight: 400; }
.profile-card { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 7px; background: #1d2021; }
.profile-avatar { width: 54px; height: 54px; border-radius: 7px; }
.profile-avatar .material-symbols-rounded { width: 30px; height: 30px; font-size: 30px; }
.profile-card h3 { font-size: 18px; font-weight: 500; }
.profile-card p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.compact-section { padding: 15px; border: 1px solid var(--border); border-radius: 6px; background: #151718; }
.compact-section h3 { font-size: 14px; font-weight: 500; }
.compact-section p { margin-top: 8px; color: #aeb5b8; font-size: 12px; line-height: 1.6; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini-stats span { padding: 6px 8px; border: 1px solid #2f3436; border-radius: 4px; color: #d7dbdd; font-size: 11px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.info-grid > div { padding: 14px; border: 1px solid var(--border); border-radius: 6px; background: #151718; }
.info-grid span { color: var(--muted); font-size: 11px; }
.info-grid p { margin-top: 7px; font-size: 14px; }
.settings-list { display: grid; gap: 10px; }
.settings-list label { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; background: #151718; }
.settings-list strong { display: block; font-size: 13px; font-weight: 500; }
.settings-list small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.settings-list input { width: 36px; height: 20px; accent-color: var(--accent); }
.docs-dialog { width: min(1080px, calc(100vw - 32px)); }
.docs-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; }
.docs-tabs { display: grid; align-content: start; gap: 6px; padding-right: 18px; border-right: 1px solid var(--border); }
.docs-tab { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 11px; border: 0; border-radius: 5px; background: transparent; color: #a9b0b4; font-size: 12px; text-align: left; }
.docs-tab:hover { background: #222526; color: #eef1f1; }
.docs-tab.active { background: #223031; color: #93dcd6; }
.docs-tab.active .material-symbols-rounded { font-variation-settings: "FILL" 1; }
.docs-workspace { min-width: 0; }
.docs-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.docs-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 38px; padding: 0 11px; border: 1px solid var(--border); border-radius: 6px; background: #121415; color: #8f989d; }
.docs-search .material-symbols-rounded { width: 18px; height: 18px; flex-basis: 18px; font-size: 18px; }
.docs-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 12px "Inter", sans-serif; }
#docsCounter { color: #8f979c; font-size: 11px; white-space: nowrap; }
.docs-browser { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; min-height: 430px; }
.docs-index { max-height: 430px; overflow: auto; padding-right: 8px; border-right: 1px solid var(--border); }
.doc-page-button { display: block; width: 100%; min-height: 38px; padding: 8px 9px; border: 0; border-radius: 5px; background: transparent; color: #aeb5b8; font-size: 11px; line-height: 1.35; text-align: left; }
.doc-page-button:hover { background: #222526; color: #eef1f1; }
.doc-page-button.active { background: #223031; color: #93dcd6; }
.docs-content { min-height: 240px; max-height: 430px; overflow: auto; padding: 2px 12px 2px 4px; }
.docs-content h3 { font-size: 20px; font-weight: 400; }
.docs-content p { margin-top: 12px; color: #b8bec2; font-size: 13px; line-height: 1.7; }
.docs-content ul { display: grid; gap: 9px; margin: 18px 0 0; padding-left: 18px; color: #d9dddf; font-size: 12px; line-height: 1.5; }
.docs-content h4 { margin: 20px 0 0; font-size: 13px; font-weight: 500; }
.docs-source { display: block; margin-top: 18px; color: #879096; font-size: 10px; line-height: 1.6; }

@container (max-width: 960px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-heading { align-items: flex-start; }
  .demo-label { margin-top: 8px; }
}
@container (max-width: 620px) {
  .home-heading { flex-direction: column; gap: 14px; margin-bottom: 28px; }
  .home-heading h1 { font-size: 30px; }
  .demo-label { margin-top: 0; }
  .chart-header { flex-direction: column; gap: 14px; }
  .chart-card { padding: 20px 16px 0; }
  .chart-legend { margin-top: 22px; }
  .metric-card { padding: 16px; }
  .metric-value { font-size: 28px; }
  .currency { font-size: 18px; }
  .cents { font-size: 19px; }
  .chart-footer > div + div { padding-left: 12px; }
  .chart-footer { gap: 12px; }
  .chart-footer p { font-size: 13px; }
}
@container (max-width: 370px) {
  .metric-grid { grid-template-columns: 1fr; gap: 10px; }
  .metric-card { min-height: 145px; }
  .metric-heading { min-height: 27px; }
  .metric-value { margin-top: 4px; margin-bottom: 18px; font-size: 30px; }
  .chart-footer { grid-template-columns: 1fr; gap: 13px; }
  .chart-footer > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .chart-footer > div + div { padding-left: 0; border: 0; }
  .chart-footer p { margin-top: 0; }
  .chart-unit { display: none; }
}
@media (max-width: 1100px) { .content { padding-right: 28px; padding-left: 40px; } }
@media (max-width: 760px) {
  :root { --header-height: 120px; }
  .header { padding-inline: 18px; }
  .brand-text { font-size: 21px; }
  .account-caption { display: none; }
  .sidebar { position: fixed; left: 0; box-shadow: 14px 0 30px #0003; }
  .sidebar.collapsed { box-shadow: none; }
  .content { margin-left: 68px; padding: 23px 20px 20px 34px; }
  .page-context { margin-bottom: 24px; }
  .home-heading h1 { font-size: 28px; }
  .modal-panel { padding: 24px; gap: 20px; }
  .modal-controls > .date-range { order: 3; width: 100%; }
  .account-popover { inset: 54px 16px auto auto; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-right: 0; padding-bottom: 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .docs-tab { justify-content: center; padding-inline: 8px; }
  .docs-browser { grid-template-columns: 1fr; min-height: 0; }
  .docs-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 190px; padding-right: 0; padding-bottom: 10px; border-right: 0; border-bottom: 1px solid var(--border); }
  .docs-content { max-height: 46dvh; }
}
@media (max-width: 420px) {
  .header { padding-inline: 16px; }
  .brand { gap: 8px; }
  .brand-text { font-size: 20px; }
  .username { max-width: 75px; font-size: 11px; }
  .user-menu { gap: 7px; padding-right: 7px; }
  .account-chevron { display: none; }
  .content { padding-right: 14px; }
  .home-heading h1 { font-size: 26px; }
  .overview-heading { gap: 8px; }
  .overview-heading h2 { font-size: 12px; }
  .overview-heading > span { font-size: 10px; }
  .chart-actions { gap: 3px; }
  .toolbar-divider { margin-inline: 3px; }
  .chart-control { min-width: 32px; padding-inline: 7px; }
  .chart-actions .icon-button { width: 28px; flex-basis: 28px; }
  .chart-wrap { height: 245px; }
  .modal-panel { padding: 20px 16px; }
  .modal-header h2 { font-size: 23px; }
  .modal-footer { gap: 12px; }
  .modal-footer > div + div { padding-left: 12px; }
  .modal-footer p { font-size: 13px; }
  .center-dialog { width: calc(100vw - 20px); }
  .center-panel { padding: 18px; }
  .info-grid { grid-template-columns: 1fr; }
  .docs-tabs { grid-template-columns: 1fr; }
  .docs-index { grid-template-columns: 1fr; }
  .docs-tools { align-items: stretch; flex-direction: column; }
  #docsCounter { align-self: flex-end; }
}
[hidden] { display: none !important; }
.workspace-view { width: min(1280px, 100%); margin-inline: auto; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding-block: 18px; border-block: 1px solid var(--border); }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; color: #b6babc; font-size: 12px; }
.field input, .field select { width: 100%; min-width: 0; height: 40px; padding: 9px 11px; border: 1px solid #393d40; border-radius: 5px; background: #191b1c; color: var(--text); font: inherit; color-scheme: dark; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-field { flex: 1 1 200px; }
.action-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 14px; border: 1px solid #3a4042; border-radius: 5px; background: #242829; color: var(--text); font: 12px Inter, sans-serif; cursor: pointer; }
.action-button:hover { background: #303637; }
.action-button .material-symbols-rounded { font-size: 18px; }
.action-button.primary { background: #79d3be; border-color: #79d3be; color: #11231e; }
.results-summary, .results-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 18px; color: var(--muted); font-size: 12px; }
.results-summary span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.incentives-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.incentives-table th { color: var(--muted); font-weight: 400; background: #1b1e1f; }
.incentives-table th, .incentives-table td { padding: 16px 12px; border-bottom: 1px solid var(--border); }
.incentives-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.incentives-table td:first-child { min-width: 200px; white-space: normal; }
.incentives-table th:last-child, .incentives-table td:last-child { text-align: right; }
.incentives-table small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.5; }
.incentives-table tbody tr:hover { background: #191c1d; }
.donor-name { color: #e1e5e5; }
.donor-type { display: inline-flex; gap: 7px; align-items: center; color: #bcc2c5; }
.donor-type .material-symbols-rounded { font-size: 18px; }
.donor-status { color: #96cbb0; }
.donor-status.queued { color: #d7bb87; }
.empty-results { text-align: center !important; padding-block: 44px !important; white-space: normal !important; color: var(--muted); }
button:disabled { opacity: .35; cursor: default; }
.admin-entry { color: #a8e5de; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 6px; background: #151718; }
.admin-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #343a3c; border-radius: 5px; background: #101213; color: #8fa2a0; }
.admin-search:focus-within { border-color: #74cfc5; }
.admin-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 12px Inter, sans-serif; }
#adminStatus { color: #91a19f; font-size: 11px; white-space: nowrap; }
.admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-summary article { padding: 16px; border: 1px solid var(--border); border-radius: 6px; background: linear-gradient(180deg, #1a1d1e, #151718); }
.admin-summary span { display: block; color: #92999d; font-size: 11px; }
.admin-summary strong { display: block; margin-top: 10px; font-size: 26px; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.admin-table-wrap { border: 1px solid var(--border); border-radius: 6px; background: #151718; }
.admin-table th, .admin-table td { vertical-align: middle; }
.role-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #3b4244; border-radius: 4px; color: #dce2e4; background: #222627; font-size: 11px; }
.role-owner { border-color: #4ccfc3; color: #a8fff4; background: #173231; }
.role-staff { border-color: #7993cc; color: #c9d8ff; background: #1d2638; }
.role-moderator { border-color: #b49d6e; color: #ffe2a7; background: #302819; }
.role-select select { min-width: 132px; height: 34px; border: 1px solid #3a4042; border-radius: 5px; background: #202425; color: var(--text); font: 12px Inter, sans-serif; }
.role-select select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-section { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--border); }
.account-section h2 { font-size: 15px; font-weight: 500; }
.account-section p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.account-fields { display: grid; gap: 16px; min-width: 0; }
.price-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-preview { grid-column: 1 / -1; color: #a9c7be; font-size: 12px; line-height: 1.6; }
.photo-editor { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#photoPreview { width: 64px; height: 64px; flex-shrink: 0; }
.user-avatar { overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload { position: relative; overflow: hidden; }
.photo-upload:focus-within { outline: 2px solid var(--accent); }
.photo-upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.field-note { color: var(--muted); font-size: 11px; }
.account-save { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding-block: 20px; }
.form-message { font-size: 12px; line-height: 1.6; color: #d3bf97; }
.form-message:empty { display: none; }
#filterError { margin-top: 12px; }
.account-save .form-message { flex: 1 1 200px; }
@container (max-width: 680px) {
  .account-section { grid-template-columns: 1fr; gap: 20px; }
  .filter-bar > .field { flex: 1 1 160px; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  #adminStatus { white-space: normal; }
  .admin-summary { grid-template-columns: 1fr; }
}
@container (max-width: 380px) {
  .price-fields { grid-template-columns: 1fr; }
  .account-save > button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
