:root {
  color-scheme: light dark;
  --night: #16185a; --night-2: #23278f; --night-ink: #c9caf0;
  --bg: #f2f2f8; --card: #fff; --text: #14163d; --muted: #66688a; --line: #e4e4ef;
  --accent: #23278f; --accent-soft: #e9e9fb; --danger: #c0392b;
  --imp: #7d6fe0; --clk: #f08a4b; --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --night: #0c0d33; --night-2: #2a2fa8; --bg: #0f1026; --card: #1a1b3e; --text: #ecedff; --muted: #9a9cc4; --line: #2b2d5a; --accent: #8f94ff; --accent-soft: #25276b; --danger: #ff8a7a; --imp: #9b8ff0; --clk: #f5a066; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 6px; } h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 16px 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.muted { color: var(--muted); font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi:first-child { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.kpi:first-child span { color: var(--night-ink); }
.kpi .delta { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.kpi .delta.down { background: #fdeceb; color: #b3261e; }
.kpi:first-child .delta { background: rgba(255,255,255,.16); color: #fff; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
td.n, th.n { text-align: right; }
.tablewrap { overflow-x: auto; }
button, .btn { font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 8px 14px; border-radius: 10px; text-decoration: none; display: inline-block; }
button.primary { background: var(--night-2); border-color: var(--night-2); color: #fff; }
button.primary:disabled { opacity: .6; cursor: default; }
button.danger { color: var(--danger); }
button:hover, .btn:hover { filter: brightness(.96); }
input, select { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); max-width: 100%; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
label input, label select { display: block; width: 100%; margin-top: 3px; color: var(--text); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.chart { width: 100%; height: 180px; display: block; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
a { color: var(--accent); }
td.n { white-space: nowrap; }
h1, h2 { text-wrap: balance; }
button, .btn, summary, input, select, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; max-width: 100%; }
.wordmark { font-size: 27px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.wordmark i { font-style: normal; color: var(--clk); }
