:root {
  --surface: #f4f2ee; --raised: #fbfaf8; --sunken: #eae7e1; --line: #c9c4ba; --line-strong: #8a867f;
  --ink: #1c1f22; --muted: #5d6266; --fjord: #2f4357; --fjord-soft: #dde3e8; --on-fjord: #f4f2ee;
  --driftwood: #7f5f45; --driftwood-soft: #efe6dc; --moss: #3d5c48; --moss-soft: #e3ebe5; --signal: #9a3b2e; --signal-soft: #f3e2de;
  --c-write: #2f4357; --c-read: #9bb3c9; --c-fresh: #7f5f45; --c-out: #c4a07f;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #121416; --raised: #1b1e21; --sunken: #0d0f10; --line: #3a3f44; --line-strong: #6c7176;
    --ink: #ece9e4; --muted: #a3a7aa; --fjord: #9bb3c9; --fjord-soft: #22303c; --on-fjord: #121416;
    --driftwood: #c4a07f; --driftwood-soft: #2d241b; --moss: #8fb59a; --moss-soft: #1c2a21; --signal: #e08a7a; --signal-soft: #34201c;
    --c-write: #9bb3c9; --c-read: #46627a; --c-fresh: #c4a07f; --c-out: #7f5f45;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 26px; }
.page { max-width: 1360px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-direction: column; gap: 40px; }
h1 { margin: 0; font-size: 32px; line-height: 40px; font-weight: 300; letter-spacing: -0.01em; }
h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; }
h2 .count { color: var(--muted); font-weight: 300; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 13px; }
a { color: var(--fjord); }
.eyebrow { font-family: var(--mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.2em; color: var(--muted); }
.meta { font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.12em; color: var(--muted); }
.label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; color: var(--muted); }
.small { font-size: 14px; line-height: 22px; }
.muted { color: var(--muted); }
.top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.top > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.col { display: flex; flex-direction: column; }
.g8 { gap: 8px; } .g16 { gap: 16px; } .g24 { gap: 24px; } .g40 { gap: 40px; }

button, .pick { font-family: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, .pick:focus-within, tr[tabindex]:focus-visible { outline: 2px solid var(--fjord); outline-offset: 2px; }
.btn, .pick { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 2px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 500; }
.btn.primary, .pick.primary { border-color: var(--fjord); background: var(--fjord); color: var(--on-fjord); }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.load { display: flex; flex-direction: column; gap: 16px; }
.load-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.load-row .pick { flex: none; white-space: nowrap; }
.hint { font-size: 14px; line-height: 22px; color: var(--muted); flex: 1 1 320px; min-width: 0; max-width: 760px; overflow-wrap: anywhere; }
.progress { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.bar { height: 4px; background: var(--sunken); }
.bar > div { height: 4px; width: 0; background: var(--fjord); }

.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
.tabs button { min-height: 44px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--fjord); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi { padding: 16px 16px 16px 0; display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-size: 32px; line-height: 40px; font-weight: 300; letter-spacing: -0.01em; white-space: nowrap; }
.kpi.hero .v { color: var(--moss); }

.advice { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.card { background: var(--raised); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card.hero { background: var(--fjord-soft); }
.card .t { font-size: 20px; line-height: 28px; font-weight: 500; }
.card .n { font-size: 40px; line-height: 44px; font-weight: 300; letter-spacing: -0.02em; white-space: nowrap; }
.badge { font-family: var(--mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; border-radius: 2px; padding: 2px 8px; white-space: nowrap; }
.badge.done { color: var(--moss); background: var(--moss-soft); }
.badge.wip { color: var(--driftwood); background: var(--driftwood-soft); }

.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 22px; }
th { text-align: left; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; color: var(--muted); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
th button { all: unset; cursor: pointer; font: inherit; letter-spacing: inherit; color: inherit; min-height: 28px; }
td { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.r, th.r { text-align: right; padding-right: 0; padding-left: 16px; }
td.m, td.r { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--fjord-soft); }
td .best { color: var(--moss); font-weight: 500; }

.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.left { flex: 1 1 360px; max-width: 460px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.right { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.slider { display: flex; flex-direction: column; }
.slider .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; align-items: baseline; font-size: 14px; line-height: 22px; }
.slider .val { font-family: var(--mono); font-size: 13px; font-weight: 500; white-space: nowrap; }
input[type=range] { accent-color: var(--fjord); width: 100%; height: 32px; margin: 0; display: block; cursor: pointer; }
.seg { display: flex; padding-left: 1px; }
.seg button { flex: 1 1 0; min-height: 44px; padding: 0 8px; margin-left: -1px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; }
.seg button[aria-pressed="true"] { border-color: var(--fjord); background: var(--fjord-soft); position: relative; }
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 14px; line-height: 22px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--fjord); }
.status { font-size: 14px; line-height: 22px; padding: 8px 12px; border-radius: 2px; }
.status.ok { background: var(--moss-soft); color: var(--moss); }
.status.no { background: var(--driftwood-soft); color: var(--driftwood); }

.hero-box { background: var(--fjord-soft); border-radius: 4px; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; }
.hero-box .txt { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-box .big { font-size: 56px; line-height: 60px; font-weight: 300; letter-spacing: -0.02em; white-space: nowrap; }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rows button { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); padding: 12px 16px; min-height: 72px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.rows button[aria-pressed="true"] { background: var(--fjord-soft); }
.rows .nm { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rows .nm b { font-size: 16px; line-height: 24px; font-weight: 500; }
.rows .cost { flex: 0 0 96px; text-align: right; font-size: 20px; line-height: 28px; font-weight: 300; white-space: nowrap; }
.stack { flex: 2 1 200px; min-width: 0; height: 12px; background: var(--sunken); display: flex; }
.stack i { display: block; height: 12px; }
.w { background: var(--c-write); } .rd { background: var(--c-read); } .fr { background: var(--c-fresh); } .ou { background: var(--c-out); }
.panel { background: var(--raised); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 200px; border-bottom: 1px solid var(--line); }
.chart .b { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 200px; }
.chart .b > span { height: 14px; font-family: var(--mono); font-size: 11px; line-height: 14px; font-weight: 500; }
.chart .b > div { width: 100%; display: flex; flex-direction: column; }
.axis { display: flex; justify-content: space-between; }
.axis span { display: flex; flex-direction: column; gap: 2px; }
.axis span b { color: var(--ink); font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 22px; }
.legend span { display: flex; gap: 8px; align-items: center; }
.legend i { width: 12px; height: 12px; display: block; }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs > div:first-child { border-top: 1px solid var(--line); }
.specs .v { font-size: 20px; line-height: 28px; font-weight: 300; white-space: nowrap; }
.band { display: flex; gap: 1px; height: 20px; }
.band i { flex: 1 1 0; min-width: 0; display: block; }
.band i.cur { outline: 2px solid var(--ink); outline-offset: -2px; }
.bandmark { display: flex; gap: 1px; height: 14px; font-size: 10px; line-height: 14px; }
.bandmark i { flex: 1 1 0; text-align: center; font-style: normal; }
.tipline { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.tipline .val { font-family: var(--mono); font-size: 13px; font-weight: 500; text-align: right; }
.tips p { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cmp .lines { border-top: 1px solid var(--line); padding-top: 8px; margin-top: auto; line-height: 18px; }
.up { color: var(--signal); } .down { color: var(--moss); }
.switch { width: 52px; height: 44px; padding: 8px 0; border: 0; background: transparent; }
.switch span { display: block; width: 52px; height: 28px; border-radius: 999px; border: 1px solid var(--line-strong); position: relative; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: var(--muted); }
.switch[aria-checked="true"] span { background: var(--fjord); border-color: var(--fjord); }
.switch[aria-checked="true"] span::after { left: 27px; background: var(--on-fjord); }
.between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.empty { padding: 64px 0; display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.foot { border-top: 1px solid var(--line); padding-top: 16px; }
