:root {
  color-scheme: light;
  --page: #f7f7f5; --surface: #ffffff; --ink: #0b0b0b; --ink-2: #55544f; --muted: #8a8882;
  --grid: #ecebe6; --axis: #cfcec6; --border: rgba(11,11,11,.08); --wash: rgba(11,11,11,.045);
  --series-1: #2a78d6; --series-2: #eb6834; --good: #0ca30c; --critical: #d03b3b;
  --shadow: 0 1px 2px rgba(11,11,11,.04), 0 8px 24px -12px rgba(11,11,11,.10);
  --header: rgba(247,247,245,.82);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #171716; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
    --grid: #262624; --axis: #3a3a37; --border: rgba(255,255,255,.09); --wash: rgba(255,255,255,.06);
    --series-1: #3987e5; --series-2: #d95926;
    --shadow: none; --header: rgba(13,13,13,.8);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration-color: var(--axis); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; color: var(--ink-2); }

.top { position: sticky; top: 0; z-index: 5; background: var(--header); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { font-weight: 680; letter-spacing: -.01em; text-decoration: none; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; transition: background .15s, color .15s; }
nav a:hover { background: var(--wash); color: var(--ink); }
nav a.on { color: var(--ink); background: var(--wash); font-weight: 600; }
.vintage { margin-left: auto; font-size: 13px; color: var(--muted); }

h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.12; margin: 56px 0 12px; letter-spacing: -.025em; font-weight: 680; max-width: 20ch; }
h2 { font-size: 22px; line-height: 1.25; margin: 64px 0 8px; letter-spacing: -.015em; font-weight: 650; }
h3 { font-size: 15.5px; margin: 0; font-weight: 620; }
p { margin: 0 0 14px; max-width: 68ch; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin-bottom: 32px; }
h2 + p { color: var(--ink-2); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.grid2.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); }
.grid2 > * { min-width: 0; }
.co-head { display: flex; align-items: center; gap: 8px; font-weight: 650; margin-bottom: 16px; }
.sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile .label { font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.tile .value { font-size: 30px; font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
.tile .value.hero { font-size: clamp(44px, 7vw, 60px); line-height: 1.05; letter-spacing: -.035em; }
.tile .value .unit { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.tile .sub { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 4px; }
.callout { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--grid); font-size: 13.5px; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--wash); color: var(--ink-2); white-space: nowrap; }
.badge.live::before, .badge.planned::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; }
.badge.live::before { background: var(--good); }
.badge.planned::before { box-shadow: inset 0 0 0 1.5px var(--muted); }

.split { margin: 20px 0 8px; }
.split-bar { display: flex; gap: 3px; height: 12px; }
.split-bar > div { border-radius: 6px; min-width: 2px; }
.split-bar .assumed, .assumed-sw { background: repeating-linear-gradient(135deg, var(--axis) 0 3px, transparent 3px 6px); }
.assumed-sw { border-radius: 2px !important; }

.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-sub { font-size: 13px; color: var(--ink-2); margin: 2px 0 8px; }
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin: 6px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 0; border-top: 2px solid; display: inline-block; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; box-shadow: 0 8px 28px rgba(0,0,0,.14); min-width: 160px; max-width: 290px; z-index: 3; }
.tip .t { color: var(--ink-2); margin-bottom: 4px; }
.tip .r { display: flex; align-items: center; gap: 6px; }
.tip .r b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.tip .n { color: var(--ink-2); font-size: 12px; margin: 2px 0 4px; }
.note { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }

.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 20px; }
.seg { display: inline-flex; background: var(--wash); border-radius: 999px; padding: 3px; }
.seg button { font: inherit; font-size: 13px; padding: 5px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grid); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; letter-spacing: .01em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 650; border-top: 1px solid var(--axis); }
tr.part td { font-size: 12px; font-weight: 650; color: var(--muted); padding-top: 18px; letter-spacing: .01em; }
tr.sub td { font-weight: 650; }
tr.detail td { font-size: 13px; color: var(--muted); padding-top: 0; }
tr.model td { background: var(--wash); font-weight: 600; }
input[type=number] { font: inherit; font-size: 14px; width: 84px; padding: 5px 8px; text-align: right; color: var(--ink); background: var(--page); border: 1px solid var(--border); border-radius: 8px; font-variant-numeric: tabular-nums; }
input[type=number]:focus-visible, .seg button:focus-visible, summary:focus-visible, nav a:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }
.warn { color: var(--critical); font-size: 13.5px; font-weight: 600; }

details { margin-top: 16px; }
details > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--wash); color: var(--ink); user-select: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(-45deg); transition: transform .15s; }
details[open] > summary::before { transform: rotate(45deg); }
details > .card, details > p { margin-top: 14px; }
details.inline > summary { background: none; padding: 0; font-weight: 500; font-size: 13px; color: var(--ink-2); }
details.inline ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
details.inline li { margin-bottom: 6px; }

.graph { overflow-x: auto; }
.graph svg { display: block; min-width: 780px; width: 100%; }
.graph text { font-size: 12px; fill: var(--ink); }
.graph .colhead { fill: var(--muted); font-size: 12px; font-weight: 600; }
.graph rect.node { fill: var(--surface); stroke: var(--axis); }
.graph g.planned rect.node { stroke-dasharray: 4 3; }
.graph g.planned text { fill: var(--ink-2); }
.graph path { fill: none; stroke: var(--axis); stroke-width: 1.5; opacity: .55; }
.graph .dim { opacity: .16; }
.graph path.hot { stroke: var(--ink); opacity: .9; }
.graph g[tabindex] { cursor: pointer; outline: none; }
.graph g[tabindex]:focus-visible rect.node, .graph g.hot rect.node { stroke: var(--ink); stroke-width: 1.5; }

ul.plain { padding-left: 20px; margin: 0 0 14px; max-width: 68ch; }
ul.plain li { margin-bottom: 8px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; margin: 8px 0 32px; }
.step { border-top: 2px solid var(--ink); padding-top: 12px; }
.step b { display: block; margin-bottom: 4px; }
.step span { font-size: 14px; color: var(--ink-2); line-height: 1.5; display: block; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; font-size: 13px; }
code { font-size: .92em; }
.foot { margin-top: 80px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .card { padding: 18px; } h1 { margin-top: 36px; } h2 { margin-top: 48px; } .vintage { margin-left: 0; } }

#builders th, #builders td { padding: 9px 7px; }
#builders input[type=number] { width: 68px; }

.cmp { display: grid; grid-template-columns: minmax(120px, 11em) 1fr 3em; align-items: center; gap: 12px; font-size: 14px; margin: 10px 0; }
.cmp span { color: var(--ink-2); }
.cmp b { text-align: right; font-variant-numeric: tabular-nums; }
.cmp-track { height: 10px; }
.cmp-track > div { height: 100%; border-radius: 0 5px 5px 0; min-width: 2px; }

.eq { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--grid); }
.eq > div { display: flex; flex-direction: column; }
.eq b { font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.eq span { font-size: 12.5px; color: var(--ink-2); }
.eq i { font-style: normal; font-size: 20px; color: var(--muted); }
.cmp-sub { font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; }
