/* Unbounded + Onest (SIL Open Font License 1.1), self-hosted — no requests to Google. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/unbounded-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ════════════════════════════════════════════════════════════════
   COPYDASH 2.0 — "Aurora Observatory"
   Deep ink sky, violet→cyan light, emerald for growth, amber for the
   temporary. Depth from layered gradients and hairline light edges —
   no blur stacks, no infinite animations (except a short live ping).
   ════════════════════════════════════════════════════════════════ */

@property --spot { syntax: '<number>'; inherits: true; initial-value: 0; }

:root,
[data-theme="dark"] {
  --bg: #06050C;
  --bg-2: #0A0915;
  --solid: #100E1E;
  --fill-a: rgba(28, 25, 52, 0.62);
  --fill-b: rgba(13, 12, 26, 0.74);
  --surface-2: rgba(255, 255, 255, 0.045);
  --hover: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #F3F2FA;
  --text-2: #A9A6C2;
  --text-3: #6E6A8C;
  --accent: #9D8BFF;
  --accent-2: #4FD6EC;
  --accent-ink: #FFFFFF;
  --accent-weak: rgba(157, 139, 255, 0.14);
  --pos: #36D79E;
  --pos-2: #2DD4D4;
  --pos-weak: rgba(54, 215, 158, 0.13);
  --neg: #F87171;
  --neg-weak: rgba(248, 113, 113, 0.13);
  --warn: #F7BE4A;
  --warn-2: #F59E0B;
  --warn-weak: rgba(247, 190, 74, 0.13);
  --chart-grid: rgba(255, 255, 255, 0.05);
  --pos-rgb: 54, 215, 158;
  --neg-rgb: 248, 113, 113;
  --warn-rgb: 247, 190, 74;
  --accent-rgb: 157, 139, 255;
  --cyan-rgb: 79, 214, 236;
  --grad: linear-gradient(118deg, #C3B4FF 0%, #9D8BFF 38%, #4FD6EC 100%);
  --grad-btn: linear-gradient(118deg, #8E76FF 0%, #6E5BF2 45%, #3BB6D6 100%);
  --grad-pos: linear-gradient(118deg, #7CF0C2 0%, #36D79E 45%, #2DD4D4 100%);
  --grad-warn: linear-gradient(118deg, #FFD978 0%, #F7BE4A 50%, #F59E0B 100%);
  --grad-num: linear-gradient(180deg, #FFFFFF 0%, #E4DEFF 55%, #B9AAFF 100%);
  --edge: linear-gradient(140deg, rgba(195, 180, 255, 0.40), rgba(79, 214, 236, 0.10) 34%, rgba(255, 255, 255, 0.035) 60%, rgba(157, 139, 255, 0.16));
  --edge-soft: linear-gradient(140deg, rgba(195, 180, 255, 0.22), rgba(255, 255, 255, 0.04) 45%, rgba(79, 214, 236, 0.10));
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 48px -28px rgba(0, 0, 0, 0.8);
  --aurora-1: rgba(124, 92, 255, 0.30);
  --aurora-2: rgba(34, 200, 238, 0.16);
  --aurora-3: rgba(232, 121, 249, 0.10);
  --grid-line: rgba(255, 255, 255, 0.035);
  --grain: 0.06;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F4F3FA;
  --bg-2: #FAFAFE;
  --solid: #FFFFFF;
  --fill-a: rgba(255, 255, 255, 0.92);
  --fill-b: rgba(255, 255, 255, 0.80);
  --surface-2: rgba(30, 20, 90, 0.045);
  --hover: rgba(30, 20, 90, 0.05);
  --line: rgba(25, 20, 60, 0.085);
  --line-2: rgba(25, 20, 60, 0.15);
  --text: #15122A;
  --text-2: #5A5676;
  --text-3: #8D89A8;
  --accent: #6A52F5;
  --accent-2: #0BA5C9;
  --accent-ink: #FFFFFF;
  --accent-weak: rgba(106, 82, 245, 0.10);
  --pos: #059669;
  --pos-2: #0E9FAE;
  --pos-weak: rgba(5, 150, 105, 0.10);
  --neg: #DC2626;
  --neg-weak: rgba(220, 38, 38, 0.09);
  --warn: #D98A06;
  --warn-2: #C2410C;
  --warn-weak: rgba(217, 138, 6, 0.11);
  --chart-grid: rgba(25, 20, 60, 0.06);
  --pos-rgb: 5, 150, 105;
  --neg-rgb: 220, 38, 38;
  --warn-rgb: 217, 138, 6;
  --accent-rgb: 106, 82, 245;
  --cyan-rgb: 11, 165, 201;
  --grad: linear-gradient(118deg, #7C64FF 0%, #6A52F5 40%, #0BA5C9 100%);
  --grad-btn: linear-gradient(118deg, #7A62FF 0%, #6A52F5 45%, #0B9DC4 100%);
  --grad-pos: linear-gradient(118deg, #10B981 0%, #059669 50%, #0E9FAE 100%);
  --grad-warn: linear-gradient(118deg, #F59E0B 0%, #D98A06 55%, #C2410C 100%);
  --grad-num: linear-gradient(180deg, #1A1535 0%, #2E2470 60%, #5B45D9 100%);
  --edge: linear-gradient(140deg, rgba(106, 82, 245, 0.30), rgba(11, 165, 201, 0.10) 36%, rgba(25, 20, 60, 0.06) 62%, rgba(106, 82, 245, 0.14));
  --edge-soft: linear-gradient(140deg, rgba(106, 82, 245, 0.18), rgba(25, 20, 60, 0.06) 45%, rgba(11, 165, 201, 0.10));
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -26px rgba(40, 30, 110, 0.28);
  --aurora-1: rgba(124, 92, 255, 0.16);
  --aurora-2: rgba(11, 165, 201, 0.10);
  --aurora-3: rgba(232, 121, 249, 0.08);
  --grid-line: rgba(25, 20, 60, 0.045);
  --grain: 0.035;
  color-scheme: light;
}

:root {
  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Onest", ui-sans-serif, system-ui, sans-serif;
  --r: 18px;
  --r-sm: 10px;
  --side-w: 248px;
  --gap: 18px;
  --pad: 22px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.num, .tbl td, .kpi-v, .row-i b { font-variant-numeric: tabular-nums; }
.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); }
::selection { background: rgba(var(--accent-rgb), 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
* { scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb), 0.35) transparent; }

/* ── Sky: aurora + observatory grid + film grain (static, GPU-cheap) ── */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-aurora {
  position: absolute; inset: -10% -5% auto -5%; height: 85vh;
  background:
    radial-gradient(55% 60% at 12% 0%, var(--aurora-1), transparent 70%),
    radial-gradient(45% 55% at 88% 2%, var(--aurora-2), transparent 70%),
    radial-gradient(40% 45% at 52% 100%, var(--aurora-3), transparent 75%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 55% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 55% 0%, #000 0%, transparent 75%);
}
.bg-grain {
  position: absolute; inset: 0; opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── Shell ─────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }

.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 22px 16px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), transparent 40%), color-mix(in srgb, var(--bg-2) 82%, transparent);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px; }
.brand-mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 6px 14px rgba(var(--accent-rgb), 0.45)); }
.brand-name { font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; font-size: 14px; }
.brand-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.acct { display: flex; flex-direction: column; gap: 3px; padding: 5px; border-radius: 14px; border: 1px solid transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--edge-soft) border-box; }
.acct-btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 11px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; text-align: left;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.acct-btn:hover { background: var(--hover); color: var(--text); }
.acct-btn[aria-selected="true"] { color: var(--text); background: linear-gradient(118deg, rgba(var(--accent-rgb), 0.24), rgba(var(--cyan-rgb), 0.10)); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35); }
.acct-btn small { color: var(--text-3); font-size: 11px; }

.nav-wrap { position: relative; }
.nav-ind {
  position: absolute; left: 0; right: 0; top: 0; height: 40px; border-radius: 12px; pointer-events: none;
  background: linear-gradient(118deg, rgba(var(--accent-rgb), 0.22), rgba(var(--cyan-rgb), 0.07));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.28), 0 10px 26px -14px rgba(var(--accent-rgb), 0.8);
  transform: translateY(var(--y, 0)); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.nav-ind.on { opacity: 1; }
.nav-ind::before { content: ''; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.9); }
.nav { position: relative; display: flex; flex-direction: column; gap: 2px; }
.nav-a {
  display: flex; align-items: center; gap: 11px; height: 40px;
  padding: 0 12px; border-radius: 12px;
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-a svg { width: 18px; height: 18px; flex: none; opacity: 0.8; transition: color 0.25s, opacity 0.25s; }
.nav-a:hover { color: var(--text); background: var(--hover); }
.nav-a[aria-current="page"] { color: var(--text); background: transparent; }
.nav-a[aria-current="page"] svg { color: var(--accent); opacity: 1; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side-foot .row { display: flex; gap: 6px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 34px 36px 22px;
}
.top h1 { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.015em; }
.top p { font-size: 13.5px; margin-top: 6px; }
.top-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view { padding: 0 36px 36px; display: flex; flex-direction: column; gap: var(--gap); }
.foot { padding: 22px 36px 40px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line); margin-top: auto; }
.foot a { color: var(--text-2); }

/* page enter: staggered rise (children get --i from JS) */
.view.enter > * { animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.995); } to { opacity: 1; transform: none; } }

/* ── Controls ──────────────────────────────────────────────────── */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; border: 1px solid transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--edge-soft) border-box; }
.seg button {
  border: 0; background: transparent; color: var(--text-2);
  padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: color 0.2s, background 0.25s var(--ease), box-shadow 0.25s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: #fff; background: var(--grad-btn); box-shadow: 0 6px 18px -8px rgba(var(--accent-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 11px; cursor: pointer;
  color: var(--text); border: 1px solid transparent; font-size: 13px; font-weight: 500; white-space: nowrap;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--edge-soft) border-box;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(var(--accent-rgb), 0.8); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { color: #fff; background: var(--grad-btn) padding-box, var(--grad-btn) border-box; box-shadow: 0 10px 26px -12px rgba(var(--accent-rgb), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn-primary:hover { box-shadow: 0 14px 32px -12px rgba(var(--accent-rgb), 1), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--hover); box-shadow: none; }
.btn-icon { width: 36px; padding: 0; }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }
.btn.spin svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.status { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-2); padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 10px rgba(var(--pos-rgb), 0.9); }
.dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(var(--pos-rgb), 0.6); animation: ping 2.4s var(--ease) 3; opacity: 0; }
.dot.stale { background: var(--warn); box-shadow: 0 0 10px rgba(var(--warn-rgb), 0.9); }
.dot.stale::after { border-color: rgba(var(--warn-rgb), 0.6); }
.dot.off { background: var(--neg); box-shadow: none; }
.dot.off::after { display: none; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }

.input {
  height: 40px; width: 100%; padding: 0 13px; border-radius: 11px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-2); font: inherit; font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14); }
select.input { padding-right: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; color: var(--text-2); }

/* ── Layout helpers ────────────────────────────────────────────── */
.grid { display: grid; gap: var(--gap); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: var(--gap); }

/* ── Cards: layered fill + hairline light edge + cursor spotlight ── */
.card {
  position: relative; isolation: isolate; min-width: 0;
  border-radius: var(--r); border: 1px solid transparent;
  background: linear-gradient(180deg, var(--fill-a), var(--fill-b)) padding-box, var(--edge) border-box;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), calc(var(--spot) * 0.13)), transparent 55%);
  transition: --spot 0.45s var(--ease);
}
.card:hover { --spot: 1; }
.card-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px var(--pad) 0;
}
.card-h h2 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; }
.card-h .hint { font-size: 12px; color: var(--text-3); }
.card-b { padding: 16px var(--pad) var(--pad); }
.card-b.flush { padding: 14px 0 0; }
.card-note { padding: 12px var(--pad) 16px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line); }

/* ── KPI tiles ─────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { position: relative; padding: 20px var(--pad); border-left: 1px solid var(--line); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi-l { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.kpi-v {
  font-family: var(--display); font-size: 25px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2;
  margin-top: 8px; white-space: nowrap;
}
.kpi-v.lg { font-size: 32px; }
.kpis .kpi-v { font-size: clamp(17px, 1.5vw, 24px); }
.kpis.k4 .kpi-v, .kpis.k3 .kpi-v { font-size: clamp(20px, 2vw, 28px); }
.kpi-v.pos { background: var(--grad-pos); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-v.warn { background: var(--grad-warn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-v.neg { color: var(--neg); }
.kpi-s { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.info {
  display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--text-3); font-size: 9.5px; font-weight: 600; cursor: help;
  transition: color 0.2s, border-color 0.2s;
}
.info:hover { color: var(--text); border-color: rgba(var(--accent-rgb), 0.6); }

/* Hero: balance + luminous growth curve */
.hero2 { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); min-height: 268px; overflow: hidden; }
.hero2::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(60% 90% at 0% 0%, rgba(var(--accent-rgb), 0.20), transparent 60%),
              radial-gradient(50% 80% at 100% 100%, rgba(var(--pos-rgb), 0.12), transparent 65%);
}
.hero-copy { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.hero-num {
  font-family: var(--display); font-size: clamp(40px, 4.6vw, 60px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05;
  background: var(--grad-num); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.earn-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-family: var(--display); font-size: 13px; font-weight: 500; color: #052E22;
  background: var(--grad-pos); box-shadow: 0 8px 22px -10px rgba(var(--pos-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
[data-theme="light"] .earn-pill { color: #fff; }
.hero-art { position: relative; min-height: 220px; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-art .ha-line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.2s 0.15s var(--ease) forwards; }
.hero-art .ha-glow { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.2s 0.15s var(--ease) forwards; }
.hero-art .ha-fill { opacity: 0; animation: fadeIn 1.4s 1.1s var(--ease) forwards; }
.hero-art .ha-end { opacity: 0; animation: fadeIn 0.6s 2.1s var(--ease) forwards; }
.hero-art .ha-ping { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ping 2.6s 2.3s var(--ease) 3; }
.hero-art svg.no-anim .ha-line, .hero-art svg.no-anim .ha-glow { animation: none; stroke-dashoffset: 0; }
.hero-art svg.no-anim .ha-fill, .hero-art svg.no-anim .ha-end { animation: none; opacity: 1; }
.hero-art svg.no-anim .ha-ping { animation: none; }
.ha-label {
  position: absolute; right: 18px; top: 14px; text-align: right; opacity: 0; animation: fadeIn 0.8s 1.9s var(--ease) forwards;
}
.ha-label b { display: block; font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; background: var(--grad-pos); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ha-label span { font-size: 11.5px; color: var(--text-3); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ringIn { to { stroke-dashoffset: var(--to); } }
@keyframes fadeIn { to { opacity: 1; } }

/* Tiles with meaningful mini-graphics */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.tile { padding: 18px 18px 16px; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 26px 46px -30px rgba(var(--accent-rgb), 0.75); }
.tile .kpi-v { font-size: 24px; margin-top: 10px; position: relative; z-index: 1; }
.tile .kpi-s { position: relative; z-index: 1; }
.tile-art { margin-top: auto; padding-top: 12px; height: 46px; position: relative; }
.tile-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tile-art.ring { position: absolute; right: 16px; bottom: 16px; width: 58px; height: 58px; padding: 0; margin: 0; }
.segs { display: flex; gap: 4px; align-items: flex-end; height: 100%; }
.segs i { flex: 1; height: 100%; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.segs i.on { background: var(--grad-pos); box-shadow: 0 6px 14px -8px rgba(var(--pos-rgb), 0.9); }
.split { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--surface-2); margin-top: 22px; }
.split .a { background: var(--grad-pos); }
.split .b { background: var(--neg); opacity: 0.8; }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); }
.hero-main { padding: 22px var(--pad); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.hero-main .kpi-v { font-size: 40px; margin-top: 2px; }
.hero-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-side .kpi { border-top: 1px solid var(--line); }
.hero-side .kpi:nth-child(-n+3) { border-top: 0; }
.hero-side .kpi:nth-child(3n+1) { border-left: 0; }

/* ── Pills / badges ────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); }
.pill.pos { background: linear-gradient(118deg, rgba(var(--pos-rgb), 0.20), rgba(var(--pos-rgb), 0.08)); color: var(--pos); box-shadow: inset 0 0 0 1px rgba(var(--pos-rgb), 0.25); }
.pill.neg { background: var(--neg-weak); color: var(--neg); box-shadow: inset 0 0 0 1px rgba(var(--neg-rgb), 0.22); }
.pill.warn { background: linear-gradient(118deg, rgba(var(--warn-rgb), 0.22), rgba(var(--warn-rgb), 0.08)); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(var(--warn-rgb), 0.25); }
.pill.acc { background: var(--accent-weak); color: var(--accent); }

/* ── Tables ────────────────────────────────────────────────────── */
.tbl-wrap { overflow: auto; max-height: 560px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  position: sticky; top: 0; z-index: 1; background: var(--solid);
  text-align: left; font-weight: 600; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; transition: background 0.2s; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.02)); }
.tbl .r { text-align: right; }
.tbl th:first-child, .tbl td:first-child { padding-left: var(--pad); }
.tbl th:last-child, .tbl td:last-child { padding-right: var(--pad); }
.sym { font-weight: 600; }
.sym small { font-weight: 400; color: var(--text-3); margin-left: 4px; }
.empty { padding: 40px var(--pad); text-align: center; color: var(--text-3); }

/* ── Monthly returns grid ──────────────────────────────────────── */
.mr { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 12.5px; }
.mr th { font-weight: 500; color: var(--text-3); font-size: 11.5px; padding: 4px 2px; text-align: center; }
.mr th:first-child { text-align: left; }
.mr td {
  height: 42px; text-align: center; border-radius: 10px; font-variant-numeric: tabular-nums; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10); transition: transform 0.25s var(--ease), filter 0.25s;
}
.mr td:not(.y):not(.blank):not(.tot):hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.12); }
.mr td.y { text-align: left; color: var(--text-2); font-weight: 500; padding-left: 4px; box-shadow: none; }
.mr td.blank { background: transparent; box-shadow: inset 0 0 0 1px var(--line); opacity: 0.5; }
.mr td.tot { font-family: var(--display); font-weight: 500; box-shadow: none; }

/* ── Calendar heatmap ──────────────────────────────────────────── */
.cal { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.cal-m { display: flex; flex-direction: column; gap: 6px; flex: none; }
.cal-m .mh { font-size: 11px; color: var(--text-3); white-space: nowrap; height: 14px; }
.cal-g { display: grid; grid-template-rows: repeat(7, 13px); grid-auto-flow: column; grid-auto-columns: 13px; gap: 3px; }
.cal-c { width: 13px; height: 13px; border-radius: 4px; background: var(--surface-2); transition: transform 0.2s var(--ease); }
.cal-c:hover { transform: scale(1.35); }
.cal-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); margin-top: 12px; }
.cal-legend .cal-c { display: inline-block; }

/* ── Charts ────────────────────────────────────────────────────── */
.chart { width: 100%; height: 340px; position: relative; }
.chart.sm { height: 140px; }
.chart.md { height: 240px; }
.chart.glow canvas { filter: drop-shadow(0 6px 18px rgba(var(--pos-rgb), 0.22)); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* ── HTML bar chart ────────────────────────────────────────────── */
.hbars { display: flex; align-items: stretch; gap: 5px; height: calc(var(--h) + 22px); }
.hb { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; cursor: default; }
.hb-area { height: var(--h); display: flex; flex-direction: column; }
.hb-top, .hb-bot { display: flex; justify-content: center; }
.hb-top { align-items: flex-end; border-bottom: 1px solid var(--line-2); }
.hb-bot { align-items: flex-start; }
.hb span { display: block; width: min(100%, 26px); border-radius: 6px 6px 2px 2px; background: var(--grad); opacity: 0.9; transform-origin: bottom; animation: grow 0.9s var(--ease) both; transition: filter 0.2s, opacity 0.2s; }
.hb-bot span { border-radius: 2px 2px 6px 6px; transform-origin: top; }
.hb span.pos { background: linear-gradient(180deg, #7CF0C2, var(--pos) 60%, rgba(var(--pos-rgb), 0.55)); }
.hb span.neg { background: linear-gradient(0deg, #FCA5A5, var(--neg)); }
.hb span.acc { background: var(--grad); }
.hb:hover span { opacity: 1; filter: brightness(1.15) drop-shadow(0 6px 10px rgba(var(--pos-rgb), 0.35)); }
.hb em { font-style: normal; font-size: 10.5px; color: var(--text-3); text-align: center; margin-top: 6px; white-space: nowrap; overflow: hidden; }
.hbars.compact em { font-size: 9.5px; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ── Position cards ────────────────────────────────────────────── */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--gap); }
.pos-card { padding: 20px var(--pad); display: flex; flex-direction: column; gap: 12px; }
.pos-card:hover { transform: translateY(-3px); }
.pos-h { display: flex; justify-content: space-between; align-items: center; }
.pos-h .sym { font-family: var(--display); font-weight: 500; }
.pos-pnl { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ladder { position: relative; height: 46px; margin: 2px 6px 0; }
.ld-track { position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: var(--line-2); border-radius: 2px; }
.ld-seg { position: absolute; top: 13px; height: 4px; border-radius: 2px; background: var(--grad-pos); box-shadow: 0 0 10px rgba(var(--pos-rgb), 0.55); }
.ld-tick { position: absolute; top: 6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ld-tick i { display: block; width: 2px; height: 18px; background: var(--text-3); border-radius: 1px; }
.ld-tick.tp i { background: var(--pos); box-shadow: 0 0 8px rgba(var(--pos-rgb), 0.8); }
.ld-tick em { font-style: normal; font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.ld-tick.tp em { color: var(--pos); }
.ld-mark { position: absolute; top: 8px; width: 14px; height: 14px; transform: translateX(-50%); border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px var(--solid), 0 0 16px rgba(var(--accent-rgb), 0.9); }

/* ── Trades toolbar ────────────────────────────────────────────── */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 16px var(--pad) 0; }
.toolbar .field { min-width: 140px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--pad) 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }

/* ── Investors ─────────────────────────────────────────────────── */
.inv-grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--gap); }
.inv-card { padding: 20px var(--pad); display: flex; flex-direction: column; gap: 6px; }
.inv-card:hover { transform: translateY(-3px); }
.inv-card .kpi-v { font-size: 25px; margin: 0; }
.inv-forms { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.inv-forms .card { display: flex; flex-direction: column; }
.inv-forms .card-b { flex: 1; display: flex; flex-direction: column; }
.inv-forms form { flex: 1; }
.inv-forms .grow { flex: 1; }
.toggle2 { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 11px; flex: none; }
.toggle2 button { border: 0; background: transparent; color: var(--text-2); padding: 0 13px; height: 32px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.25s, color 0.2s; }
.toggle2 button[aria-pressed="true"] { background: var(--grad-btn); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.note { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 70; padding: 11px 18px; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 500; background: var(--grad-btn); box-shadow: 0 16px 36px -14px rgba(var(--accent-rgb), 0.9); animation: rise 0.4s var(--ease) both; }

.stackbars { display: flex; flex-direction: column; gap: 14px; }
.sb-row { display: grid; grid-template-columns: 28px 1fr 96px; align-items: center; gap: 12px; font-size: 13px; }
.sb-name { color: var(--text-2); font-weight: 600; font-family: var(--display); }
.sb-row b { text-align: right; font-weight: 500; }
.sb-track { display: flex; height: 24px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.sb-base { background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-rgb), 0.55)); transform-origin: left; animation: growX 1s var(--ease) both; }
.sb-earn { background: var(--grad-pos); transform-origin: left; animation: growX 1s 0.25s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Calculator ────────────────────────────────────────────────── */
.calc-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { border: 1px solid var(--line-2); background: transparent; color: var(--text-2); border-radius: 999px; padding: 4px 11px; font-size: 12px; cursor: pointer; transition: all 0.2s var(--ease); }
.chip:hover { color: var(--text); border-color: rgba(var(--accent-rgb), 0.6); background: var(--accent-weak); }

/* ── Lists / meters ────────────────────────────────────────────── */
.rows { display: flex; flex-direction: column; }
.row-i { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.row-i:last-child { border-bottom: 0; }
.row-i span:first-child { color: var(--text-2); }
.row-i b { font-weight: 500; white-space: nowrap; }
.row-i b.pos { background: var(--grad-pos); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row-i b.warn { background: var(--grad-warn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meter { height: 7px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 6px; background: var(--grad); transform-origin: left; animation: growX 1s var(--ease) both; }
.meter.pos > span { background: var(--grad-pos); }
.meter.neg > span { background: var(--neg); }
.meter.warn > span { background: var(--grad-warn); }

/* ── Notes / callouts ──────────────────────────────────────────── */
.callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; font-size: 13px; color: var(--text-2); border: 1px solid transparent;
  background: linear-gradient(118deg, rgba(var(--accent-rgb), 0.10), rgba(var(--cyan-rgb), 0.04)) padding-box, var(--edge-soft) border-box; }
.callout b { color: var(--text); font-weight: 600; }
.callout.warn { background: var(--warn-weak); }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }

/* ── Skeleton ──────────────────────────────────────────────────── */
.sk { border-radius: 10px; background: linear-gradient(100deg, var(--surface-2) 30%, rgba(var(--accent-rgb), 0.12) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ── Tooltip ───────────────────────────────────────────────────── */
.tip {
  position: fixed; z-index: 50; max-width: 290px; pointer-events: none;
  padding: 9px 12px; border-radius: 11px; font-size: 12px; line-height: 1.45; color: var(--text);
  border: 1px solid transparent; background: linear-gradient(var(--solid), var(--solid)) padding-box, var(--edge) border-box;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
}

/* ── Modal (admin login) ───────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(4, 3, 10, 0.6); backdrop-filter: blur(6px); padding: 16px; animation: fadeIn 0.25s both; }
.modal { width: 100%; max-width: 390px; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; border: 1px solid transparent;
  background: linear-gradient(var(--solid), var(--solid)) padding-box, var(--edge) border-box; box-shadow: 0 30px 70px -30px rgba(var(--accent-rgb), 0.6); animation: rise 0.4s var(--ease) both; }
.modal h3 { font-family: var(--display); font-size: 17px; font-weight: 500; }

/* ── Mobile tab bar ────────────────────────────────────────────── */
.tabbar { display: none; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1360px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis .kpi:nth-child(3n+1) { border-left: 0; }
  .kpis .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; }
  .hero-main { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 1080px) {
  .g-main, .g-3 { grid-template-columns: 1fr; }
  .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero2 { grid-template-columns: 1fr; }
  .hero-art { min-height: 170px; margin: -10px 0 0; }
}
@media (max-width: 860px) {
  :root { --pad: 16px; --gap: 12px; --r: 16px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
  .side .nav-wrap { display: none; }
  .acct { flex-direction: row; margin-left: auto; }
  .acct-btn small { display: none; }
  .side-foot { margin: 0; flex-direction: row; }
  .side-foot .muted, .side-foot .lbl { display: none; }
  .top { padding: 20px 16px 12px; }
  .top h1 { font-size: 22px; }
  .view { padding: 0 16px 100px; }
  .foot { padding: 16px 16px 104px; }
  .g-2, .inv-forms { grid-template-columns: 1fr; }
  .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-in { grid-template-columns: 1fr 1fr; }
  .calc-in .field:first-child { grid-column: 1 / -1; }
  .pos-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 138px; padding: 16px; }
  .tile .kpi-v { font-size: 21px; }
  .hero-copy { padding: 22px 20px 6px; }
  .hero-num { font-size: 40px; }
  .kpis, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .kpis .kpi:nth-child(odd) { border-left: 0; }
  .kpis .kpi:nth-child(-n+2) { border-top: 0; }
  .kpis.k3 { grid-template-columns: 1fr; }
  .kpis.k3 .kpi { border-left: 0; }
  .kpis.k3 .kpi + .kpi { border-top: 1px solid var(--line); }
  .hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-side .kpi { border-top: 1px solid var(--line) !important; border-left: 1px solid var(--line) !important; }
  .hero-side .kpi:nth-child(odd) { border-left: 0 !important; }
  .hero-main .kpi-v { font-size: 34px; }
  .kpi-v { font-size: 21px; }
  .chart { height: 260px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    padding: 6px; border-radius: 20px; border: 1px solid transparent;
    background: linear-gradient(color-mix(in srgb, var(--solid) 82%, transparent), color-mix(in srgb, var(--solid) 82%, transparent)) padding-box, var(--edge) border-box;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  }
  .tabbar > a, .tab-more { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 14px; font-size: 10.5px; color: var(--text-3); background: none; border: 0; cursor: pointer; transition: color 0.2s, background 0.25s; }
  .tabbar svg { width: 19px; height: 19px; }
  .tabbar [aria-current="page"] { color: var(--text); background: linear-gradient(118deg, rgba(var(--accent-rgb), 0.24), rgba(var(--cyan-rgb), 0.08)); }
  .tabbar [aria-current="page"] svg { color: var(--accent); }
  .more-sheet { position: absolute; right: 4px; bottom: calc(100% + 10px); min-width: 210px; padding: 6px; display: flex; flex-direction: column; gap: 2px; border-radius: 16px; border: 1px solid transparent;
    background: linear-gradient(var(--solid), var(--solid)) padding-box, var(--edge) border-box; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6); animation: rise 0.3s var(--ease) both; }
  .more-sheet[hidden] { display: none; }
  .more-sheet a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; color: var(--text-2); font-size: 14px; }
  .more-sheet a[aria-current="page"] { background: var(--accent-weak); color: var(--text); }
}
@media (max-width: 560px) {
  .inv-grid { grid-template-columns: 1fr; }
  .fs-2 { grid-template-columns: 1fr; }
  .fs-head { flex-direction: column; align-items: flex-start; }
  .fs-head > div:last-child { text-align: left !important; }
  .sb-row { grid-template-columns: 22px 1fr 84px; }
  .hero-num { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-art .ha-line, .hero-art .ha-glow { stroke-dashoffset: 0; }
}

/* ── Factsheet / print ─────────────────────────────────────────── */
.fs { max-width: 940px; margin: 0 auto; width: 100%; }
.fs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 26px var(--pad); border-bottom: 1px solid var(--line); }
.fs-head h2 { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.fs-sec { padding: 20px var(--pad); border-bottom: 1px solid var(--line); }
.fs-sec:last-child { border-bottom: 0; }
.fs-sec h3 { font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.fs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fs-disc { font-size: 11px; color: var(--text-3); line-height: 1.55; }
.print-img { display: none; }

@media print {
  @page { size: A4; margin: 12mm; }
  :root, [data-theme] {
    --bg: #fff; --solid: #fff; --fill-a: #fff; --fill-b: #fff; --surface-2: #F6F6F4; --line: #E6E6E3; --line-2: #D9D9D5;
    --text: #111; --text-2: #444; --text-3: #777; --pos: #0E8A59; --neg: #C53A31; --warn: #B7791F;
  }
  body { background: #fff; font-size: 12px; }
  .bg, .side, .top-tools, .tabbar, .foot, .no-print { display: none !important; }
  .shell { display: block; }
  .top { padding: 0 0 8px; }
  .view { padding: 0; }
  .view > * { animation: none !important; }
  .card { border: 0; box-shadow: none; background: #fff; }
  .card::after { display: none; }
  .kpi-v, .row-i b, .hero-num, .ha-label b { background: none !important; -webkit-text-fill-color: currentColor; color: inherit; }
  .kpi-v.pos, .row-i b.pos { color: var(--pos) !important; }
  .kpi-v.warn, .row-i b.warn { color: var(--warn) !important; }
  .fs { max-width: none; }
  .fs-2 { grid-template-columns: 1fr 1fr; }
  .chart { height: auto !important; }
  .chart.has-print-img > *:not(.print-img) { display: none !important; }
  .print-img { display: block; width: 100%; height: auto; }
  html { background: #fff; }
  .top { display: none; }
  .fs-head { padding: 0 6px 10px; }
  .fs-sec { padding: 7px 6px; }
  .fs-sec h3 { margin-bottom: 6px; }
  .fs .row-i { padding: 4px 0; font-size: 11.5px; }
  .fs .mr td { height: 24px; font-size: 11px; box-shadow: none; }
  .fs p { font-size: 11.5px !important; line-height: 1.45 !important; }
}
