/* Citrius AI Fund dashboard. One accent (citrus), semantic green/red/amber only for data, one radius system:
   containers 16px, controls 10px, chips and badges pill. Dark is the default; light follows prefers-color-scheme or the toggle. */
@font-face { font-family: "Geist"; src: url("/static/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090b0f; --bg-2: #0d1015; --surface: #12151c; --surface-2: #171b24; --surface-3: #1e232e; --line: #232938; --line-2: #313a4e;
  --text: #e9ecf3; --text-2: #a4adc0; --text-3: #6f7a91;
  --accent: #d4f24e; --accent-ink: #11140a; --accent-text: #d4f24e; --accent-soft: rgba(212, 242, 78, .12); --accent-line: rgba(212, 242, 78, .38);
  --pos: #34d6b3; --neg: #ff6f7d; --warn: #f4b64a; --info: #6aa8ff;
  --pos-soft: rgba(52, 214, 179, .12); --neg-soft: rgba(255, 111, 125, .12); --warn-soft: rgba(244, 182, 74, .13); --info-soft: rgba(106, 168, 255, .13);
  --c1: #d4f24e; --c2: #6aa8ff; --c3: #ff9e5e; --c4: #b58cff; --c5: #34d6b3; --c6: #ff6f9d; --c7: #5ad1ff; --c8: #f4d35e;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -22px rgba(0, 0, 0, .7);
  --glass: rgba(18, 21, 28, .72); --grid: rgba(255, 255, 255, .045);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f4f8; --bg-2: #e9ecf2; --surface: #ffffff; --surface-2: #f6f7fb; --surface-3: #eceff5; --line: #dde2ec; --line-2: #c5ccdb;
  --text: #11151e; --text-2: #4a5468; --text-3: #7b869b;
  --accent: #c6e83a; --accent-ink: #11140a; --accent-text: #4d6a00; --accent-soft: rgba(120, 160, 0, .12); --accent-line: rgba(90, 125, 0, .4);
  --pos: #0b8f72; --neg: #d1344a; --warn: #a96d00; --info: #2563c8;
  --pos-soft: rgba(11, 143, 114, .1); --neg-soft: rgba(209, 52, 74, .09); --warn-soft: rgba(169, 109, 0, .1); --info-soft: rgba(37, 99, 200, .09);
  --c1: #6f8f00; --c2: #2563c8; --c3: #d9731f; --c4: #7a4fd6; --c5: #0b8f72; --c6: #cf3b78; --c7: #0f87b5; --c8: #a98600;
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 16px 34px -24px rgba(30, 42, 80, .35);
  --glass: rgba(255, 255, 255, .78); --grid: rgba(20, 30, 60, .05);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f2f4f8; --bg-2: #e9ecf2; --surface: #ffffff; --surface-2: #f6f7fb; --surface-3: #eceff5; --line: #dde2ec; --line-2: #c5ccdb;
    --text: #11151e; --text-2: #4a5468; --text-3: #7b869b;
    --accent: #c6e83a; --accent-ink: #11140a; --accent-text: #4d6a00; --accent-soft: rgba(120, 160, 0, .12); --accent-line: rgba(90, 125, 0, .4);
    --pos: #0b8f72; --neg: #d1344a; --warn: #a96d00; --info: #2563c8;
    --pos-soft: rgba(11, 143, 114, .1); --neg-soft: rgba(209, 52, 74, .09); --warn-soft: rgba(169, 109, 0, .1); --info-soft: rgba(37, 99, 200, .09);
    --c1: #6f8f00; --c2: #2563c8; --c3: #d9731f; --c4: #7a4fd6; --c5: #0b8f72; --c6: #cf3b78; --c7: #0f87b5; --c8: #a98600;
    --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 16px 34px -24px rgba(30, 42, 80, .35);
    --glass: rgba(255, 255, 255, .78); --grid: rgba(20, 30, 60, .05);
  }
}
:root {
  --r-lg: 16px; --r-md: 10px; --r-pill: 999px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --rail: 236px; --top: 58px; --tabbar: 64px; --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14.5px/1.55 var(--font); letter-spacing: -.005em; min-height: 100dvh; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(26px, 3.2vw, 38px); } h2 { font-size: 20px; } h3 { font-size: 15.5px; } h4 { font-size: 13px; color: var(--text-2); font-weight: 500; }
p { margin: 0; } a { color: var(--accent-text); text-decoration: none; } a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); } .pos { color: var(--pos); } .neg { color: var(--neg); } .warn { color: var(--warn); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* shell ------------------------------------------------------------------------------------------------------ */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100dvh; background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px; gap: 6px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; letter-spacing: -.04em; font-size: 15px; }
.brand b { display: block; font-size: 14.5px; letter-spacing: -.02em; } .brand small { color: var(--text-3); font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); color: var(--text-2); font-weight: 500; text-decoration: none; transition: background .2s var(--ease), color .2s; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.nav .ic { width: 20px; height: 20px; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-top: 1px solid var(--line); }
.pulse { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.ok { background: var(--pos); } .dot.bad { background: var(--neg); } .dot.run { background: var(--accent); } .dot.warn { background: var(--warn); }
.dot.run, .dot.live { animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 28px; background: var(--glass); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
@media (prefers-reduced-transparency: reduce) { .top { background: var(--bg-2); backdrop-filter: none; } }
.top .title { font-weight: 600; letter-spacing: -.02em; font-size: 15px; } .top .spacer { flex: 1; }
.page { padding: 28px; max-width: 1480px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-h p { color: var(--text-2); max-width: 70ch; margin-top: 8px; }
.tabbar { display: none; } .phone-only { display: none !important; } .boot { height: 220px; }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.userbox .who { display: flex; flex-direction: column; line-height: 1.2; } .userbox small { color: var(--text-3); text-transform: capitalize; }

/* primitives ------------------------------------------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.card-b { padding: 18px; } .card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; } .card-h h3 { display: flex; align-items: center; gap: 9px; }
.card-h .ic { color: var(--text-3); }
.card.flat { background: transparent; box-shadow: none; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g-side { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 10px; } .between { justify-content: space-between; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.kpi .l { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.kpi .v { font-size: 28px; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.kpi svg.spark { position: absolute; right: 0; bottom: 0; width: 46%; height: 52%; opacity: .9; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; background: var(--surface-3); color: var(--text-2); white-space: nowrap; border: 1px solid transparent; }
.badge.ok, .badge.done, .badge.active, .badge.succeeded { background: var(--pos-soft); color: var(--pos); } .badge.bad, .badge.killed, .badge.failed { background: var(--neg-soft); color: var(--neg); }
.badge.warn, .badge.blocked, .badge.in_review { background: var(--warn-soft); color: var(--warn); } .badge.info, .badge.in_progress, .badge.running { background: var(--info-soft); color: var(--info); }
.badge.accent, .badge.shadow { background: var(--accent-soft); color: var(--accent-text); } .badge.cancelled, .badge.idle, .badge.todo, .badge.paused { background: var(--surface-3); color: var(--text-3); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 13px; cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--line-2); color: var(--text); } .chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 500; font-size: 13.5px; transition: transform .15s var(--ease), background .2s; white-space: nowrap; }
.btn:hover { background: var(--surface-3); } .btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; } .btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; } .btn.sm { padding: 6px 11px; font-size: 12.5px; } .btn.icon { padding: 8px; }
.input, select.input, textarea.input { width: 100%; padding: 10px 13px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; }
.input::placeholder { color: var(--text-3); } .input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { font-family: var(--mono); font-size: 13px; resize: vertical; min-height: 110px; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 13px; } .seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.meter { height: 8px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; position: relative; }
.meter > i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--accent); transition: width .8s var(--ease); }
.meter.warn > i { background: var(--warn); } .meter.bad > i { background: var(--neg); } .meter.ok > i { background: var(--pos); }
.avatar { width: var(--s, 38px); height: var(--s, 38px); border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: calc(var(--s, 38px) * .38); background: var(--av, var(--surface-3)); color: #0b0d12; position: relative; flex: none; }
.avatar.run::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: ring 1.8s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

/* tables ----------------------------------------------------------------------------------------------------- */
.tbl-wrap { overflow: auto; max-width: 100%; border-radius: inherit; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; background: var(--surface); text-align: left; font-weight: 500; color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); } .tbl .r { text-align: right; } .tbl .n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl tr.click { cursor: pointer; } .tbl th.sortable { cursor: pointer; } .tbl th.sortable:hover { color: var(--text); }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* states ----------------------------------------------------------------------------------------------------- */
.skel { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-md); min-height: 16px; }
@keyframes shimmer { to { background-position: -120% 0; } }
.empty { padding: 34px 20px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic { width: 30px; height: 30px; color: var(--text-3); } .empty b { color: var(--text); font-weight: 600; } .empty p { max-width: 46ch; font-size: 13.5px; }
.err { padding: 14px 16px; border-radius: var(--r-md); background: var(--neg-soft); color: var(--neg); border: 1px solid color-mix(in srgb, var(--neg) 30%, transparent); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 11px 18px; border-radius: var(--r-pill); background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); z-index: 90; }

/* drawer, modal ---------------------------------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(4, 6, 10, .55); z-index: 60; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--surface); border-left: 1px solid var(--line-2); z-index: 70; display: flex; flex-direction: column; animation: slide .35s var(--ease) both; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .6); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); } .drawer-h h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-b { padding: 20px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 18px; }

/* charts ----------------------------------------------------------------------------------------------------- */
.chart { position: relative; width: 100%; } .chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text, .chart text.t { fill: var(--text-3); font: 11px var(--mono); } .chart .gridline { stroke: var(--grid); stroke-width: 1; } .chart .axis line { stroke: var(--line); }
.chart .tip { position: absolute; pointer-events: none; min-width: 120px; padding: 9px 11px; border-radius: var(--r-md); background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12px; z-index: 5; transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; }
.chart .tip.on { opacity: 1; } .chart .tip b { display: block; margin-bottom: 4px; font-family: var(--mono); font-weight: 500; color: var(--text-2); } .chart .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.chart .tip div { display: flex; justify-content: space-between; gap: 14px; } .chart .tip span.v { font-family: var(--mono); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); } .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; }
.s1 { --c: var(--c1); } .s2 { --c: var(--c2); } .s3 { --c: var(--c3); } .s4 { --c: var(--c4); } .s5 { --c: var(--c5); } .s6 { --c: var(--c6); } .s7 { --c: var(--c7); } .s8 { --c: var(--c8); }
.line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .area { fill: var(--c); opacity: .12; } .bar { fill: var(--c); } .dotp { fill: var(--c); stroke: var(--surface); stroke-width: 2; }
.cur { stroke: var(--line-2); stroke-dasharray: 3 3; }

/* markdown and code ---------------------------------------------------------------------------------------- */
.md { line-height: 1.7; font-size: 14.5px; max-width: 86ch; } .md > * + * { margin-top: 14px; } .md h1 { font-size: 26px; } .md h2 { font-size: 20px; margin-top: 26px; padding-top: 6px; border-top: 1px solid var(--line); } .md h3 { font-size: 16px; margin-top: 20px; }
.md ul, .md ol { padding-left: 22px; } .md li + li { margin-top: 5px; } .md blockquote { margin-left: 0; padding: 6px 16px; border-left: 3px solid var(--accent-line); color: var(--text-2); background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; }
.md code { font-family: var(--mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); } .md table { border-collapse: collapse; display: block; overflow: auto; font-size: 13.5px; } .md th, .md td { border: 1px solid var(--line); padding: 7px 12px; text-align: left; } .md th { background: var(--surface-2); }
.md hr { border: 0; border-top: 1px solid var(--line); } .md img { max-width: 100%; }
pre.code { margin: 0; padding: 16px 18px; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); font: 12.8px/1.65 var(--mono); max-height: 70vh; tab-size: 4; }
pre.code .ln { display: inline-block; width: 3.2em; color: var(--text-3); user-select: none; text-align: right; padding-right: 1.2em; }
.tok-k { color: var(--c4); } .tok-s { color: var(--c5); } .tok-c { color: var(--text-3); font-style: italic; } .tok-n { color: var(--c3); } .tok-f { color: var(--c2); } .tok-p { color: var(--text-2); } .tok-b { color: var(--accent-text); }

/* timeline, kanban ---------------------------------------------------------------------------------------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.lane { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.lane > h4 { display: flex; justify-content: space-between; padding: 2px 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.tcard:hover { border-color: var(--line-2); transform: translateY(-1px); } .tcard .id { font: 12px var(--mono); color: var(--text-3); } .tcard .t { font-weight: 500; line-height: 1.35; }
.feed { display: flex; flex-direction: column; } .feed .it { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); } .feed .it:last-child { border: 0; }
.feed time { font: 11.5px var(--mono); color: var(--text-3); }
.scroll-y { overflow: auto; max-height: 520px; }

/* responsive ------------------------------------------------------------------------------------------------- */
@media (max-width: 1180px) { :root { --rail: 72px; } .rail .brand div:not(.brand-mark), .nav span, .rail-foot .lbl { display: none; } .nav a { justify-content: center; padding: 12px; } .rail .brand { justify-content: center; padding-inline: 0; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main, .g-side { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); } .rail { display: none; } .top { padding: 0 16px; } .page { padding: 18px 16px calc(var(--tabbar) + 28px); gap: 16px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .v { font-size: 22px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar); background: var(--glass); backdrop-filter: blur(18px); border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--text-3); text-decoration: none; background: none; border: 0; } .tabbar .ic { width: 22px; height: 22px; } .tabbar [aria-current="page"] { color: var(--accent-text); }
  .drawer { width: 100vw; } .userbox .who { display: none; } .phone-only { display: inline-flex !important; } .top .btn.sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } .dot.run, .dot.live { animation: none; } }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
