:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #14181F;
  --ink-2: #2B323C;
  --muted: #5B6573;
  --line: #E3E6EB;
  --line-2: #D0D5DC;
  --soft: #E9ECF1;
  --cell: #F3F5F8;
  --blue: #1F6FEB;
  --blue-ink: #0B57D0;
  --blue-soft: #E8F0FE;
  --orange: #E8590C;
  --orange-ink: #B03F00;
  --orange-strong: #C2410C;
  --orange-soft: #FFF6EE;
  --orange-line: #F5C9A8;
  --green: #1A7F37;
  --green-soft: #E9F7EE;
  --teal: #0B8A6C;
  --land: #F1F3EE;
  --water: #DCE9F3;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
body { min-height: 100vh; }
a { color: var(--blue-ink); }
a:hover { color: #08408F; }
button, input, select { font-family: inherit; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

.app { max-width: 1440px; margin: 0 auto; padding: 20px 40px 40px; display: flex; flex-direction: column; gap: 24px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top-left { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 11px 14px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a[aria-current="page"] { background: var(--soft); color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 16px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.dot.busy { background: #BF8700; }
.dot.error { background: var(--orange-strong); }
.btn-quiet { height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 13px; cursor: pointer; }
.btn-quiet:hover { background: #F9FAFB; }

/* Stepper */
.steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.steps li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.steps li.sep { width: 24px; height: 1px; background: var(--line-2); }
.steps .num { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #C5CBD3; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.steps li.current { color: var(--ink); font-weight: 600; }
.steps li.current .num { border: 2px solid var(--blue); color: var(--blue); }
.steps li.done .num { width: 20px; height: 20px; border: 0; background: var(--blue); }
.steps button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.steps button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* Headline */
.headline { display: flex; align-items: center; gap: 16px; }
.headline h1 { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.headline p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

/* Layout */
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.main-col { flex: 999 1 640px; min-width: 0; }
.side-col { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card.pad { padding: 24px; }
.card.map-card { padding: 12px; position: relative; }
.card.finding { background: var(--orange-soft); border-color: var(--orange-line); }
.panel { display: flex; flex-direction: column; gap: 20px; }
.panel h2 { margin: 0; font-size: 18px; font-weight: 600; }

/* Controls */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; color: var(--muted); }
.select { height: 48px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 12px; font-size: 15px; }
.select.mono { font-family: var(--mono); }
.select.small { height: 40px; font-size: 14px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; }
.shift-value { font-family: var(--mono); font-size: 28px; color: var(--orange-strong); }
input[type="range"] { width: 100%; accent-color: var(--orange); }
.btn-primary { height: 52px; border-radius: 10px; background: var(--blue); color: #FFF; border: 0; text-decoration: none; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; width: 100%; }
.btn-primary:hover { background: #1A60CF; color: #FFF; }
.btn-primary:disabled { background: #9DBDF5; cursor: progress; }
.btn-link { align-self: center; font-size: 14px; padding: 12px; background: none; border: 0; color: var(--blue-ink); text-decoration: underline; cursor: pointer; }
.btn-orange { height: 48px; border-radius: 8px; background: var(--orange-strong); color: #FFF; border: 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-outline { height: 48px; border-radius: 8px; background: #FFF; color: var(--ink-2); border: 1px solid #E0C4AE; font-size: 14px; cursor: pointer; }
.btn-plain { height: 44px; padding: 0 16px; border-radius: 8px; background: #FFF; color: var(--ink-2); border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; }
.btn-plain:hover { background: #F9FAFB; }
.secret { font-family: var(--mono); font-size: 28px; color: var(--muted); letter-spacing: 0.1em; }

/* Stats */
.stat-label { font-size: 14px; color: var(--muted); }
.stat-big { font-family: var(--mono); font-size: 48px; font-weight: 500; margin-top: 6px; letter-spacing: -0.02em; }
.stat-mid { font-family: var(--mono); font-size: 30px; font-weight: 500; margin-top: 4px; }
.legend-teal { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend-teal span { width: 60px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #0B8A6C, #A6E9D5, #F1F3EE); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: 13px; max-width: 640px; }
.grid3 .v { font-family: var(--mono); font-size: 18px; margin-top: 2px; }
.divider { border-top: 1px solid var(--line); padding-top: 16px; }
.c-orange { color: var(--orange-strong); }
.c-blue { color: var(--blue-ink); }
.c-muted { color: var(--muted); }
.note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* Details */
.details { display: flex; flex-direction: column; gap: 10px; }
.details > h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
details.card { padding: 0 20px; }
details.card > summary { cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.det-body { padding: 0 0 20px; }
.facts { flex: 1 1 260px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 13px; align-content: start; }
.facts .k { color: var(--muted); }
.facts .v { font-family: var(--mono); margin-top: 2px; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 24px; }

/* Bars */
.bars { display: flex; flex-direction: column; gap: 9px; font-family: var(--mono); font-size: 12px; max-width: 640px; }
.bar-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 56px; gap: 10px; align-items: center; }
.bar-row.wide { grid-template-columns: 110px minmax(0, 1fr) 64px; }
.bar-row > span:last-child { text-align: right; }
.track { position: relative; height: 12px; background: #F0F2F5; border-radius: 3px; }
.track .mid { position: absolute; left: 50%; top: -3px; width: 1px; height: 18px; background: #B5BCC5; }
.track .fill { position: absolute; top: 0; height: 12px; background: #8A94A3; }
.track .fill.pos { left: 50%; border-radius: 0 3px 3px 0; }
.track .fill.neg { right: 50%; border-radius: 3px 0 0 3px; }
.track .fill.from0 { left: 0; border-radius: 3px; }
.fill.hot { background: var(--orange); }
.fill.good { background: var(--blue); }
.bar-row.hot > span { color: var(--orange-ink); font-weight: 600; }
.bar-axis { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 12px; color: var(--muted); padding-left: 62px; padding-right: 66px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 20px; }
.chip { height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #FFF; font-family: var(--mono); font-size: 13px; cursor: pointer; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--soft); border-color: #9AA4B2; color: var(--ink); font-weight: 600; }
.chip.hot { color: var(--orange-ink); }

/* Tables */
.table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
.table th { padding: 8px; font-weight: 500; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); }
.table td { padding: 8px; border-bottom: 1px solid #F0F2F5; font-family: var(--mono); }
.table .r { text-align: right; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.scroll-x { overflow-x: auto; }

/* Heatmap */
.heat { min-width: 640px; display: grid; grid-template-columns: 80px repeat(7, minmax(0, 1fr)); gap: 6px; font-family: var(--mono); font-size: 14px; }
.heat .col-h { font-family: var(--sans); font-size: 12px; color: var(--muted); text-align: center; }
.heat .col-h.onset { color: var(--orange-ink); font-weight: 600; }
.heat .col-h small { display: block; font-size: 10px; color: #8A94A3; font-weight: 400; }
.heat .row-h { display: flex; align-items: center; color: var(--ink-2); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.heat .row-h.hot { color: var(--orange-ink); font-weight: 500; }
.heat .row-h[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
.cell { height: 48px; border-radius: 6px; background: var(--cell); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.cell.off { background: var(--orange-strong); color: #FFF; font-weight: 500; }
.cell.first { box-shadow: 0 0 0 3px #FFD2B0; }
.cell.na { color: #B5BCC5; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend > span { display: flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 3px; background: var(--cell); border: 1px solid var(--line); }
.sw.off { background: var(--orange-strong); border: 0; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--orange-ink); }
.kicker.calm { color: var(--green); }
.audit-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; align-items: end; padding: 0 0 20px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 13px; padding: 0 0 20px; }
.kv span:nth-child(odd) { font-family: var(--mono); color: var(--ink-2); }
.kv span:nth-child(even) { color: var(--muted); }

/* Map */
.map-frame { position: relative; width: 100%; aspect-ratio: 800 / 560; border-radius: 8px; overflow: hidden; background: var(--land); }
.map-frame.small { aspect-ratio: 800 / 600; }
.map-frame > .map-host, .map-frame > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ml-marker { pointer-events: auto; }
.ml-arrow { font-size: 14px; line-height: 1; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.map-frame .maplibregl-ctrl-attrib { font-size: 10px; }
.basemap { position: absolute; top: 24px; right: 24px; display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #FFF; z-index: 5; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.basemap button { padding: 10px 12px; background: #FFF; color: var(--muted); border: 0; font-size: 13px; font-weight: 500; cursor: pointer; }
.basemap button + button { border-left: 1px solid var(--line); }
.basemap button[aria-pressed="true"] { background: var(--soft); color: var(--ink); }
.basemap button:disabled { color: #B5BCC5; cursor: not-allowed; }
.map-note { position: absolute; left: 24px; bottom: 22px; z-index: 5; font-size: 12px; color: var(--ink-2); background: rgba(255,255,255,.92); border-radius: 6px; padding: 6px 10px; max-width: 70%; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.map-note a { white-space: nowrap; }
.earth-link { position: absolute; right: 24px; bottom: 22px; z-index: 5; font-size: 12px; background: rgba(255,255,255,.92); border-radius: 6px; padding: 6px 10px; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Google markers */
.gm-tri { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 15px solid #4A5563; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
.gm-tri.suspect { border-bottom-color: var(--orange); }
.gm-tri.out { border-bottom-color: #9AA4B2; }
.gm-station { position: relative; transform: translateY(7px); }
.gm-label { position: absolute; left: 14px; top: -1px; font: 500 12px var(--mono); color: var(--ink-2); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; }
.gm-label.suspect { color: var(--orange-ink); }
.gm-ring { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--blue); position: relative; background: rgba(255,255,255,.15); transform: translateY(11px); }
.gm-ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--blue); }
.gm-ring.dashed { border-style: dashed; }
.gm-ring.gray { border-color: #8A94A3; }
.gm-ring.gray::after { background: #8A94A3; }
.gm-tag { position: absolute; left: 28px; top: 2px; font: 500 13px var(--sans); color: var(--blue-ink); white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.gm-tag.gray { color: var(--muted); font-size: 12px; font-weight: 400; }
.gm-star { font-size: 22px; color: var(--ink); line-height: 1; text-shadow: 0 0 3px #fff, 0 0 3px #fff; transform: translateY(10px); }
.gm-out { width: 46px; height: 46px; border-radius: 50%; border: 2.5px dashed var(--orange); transform: translateY(23px); }
.gm-km { font: 600 13px var(--mono); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }

/* Dialog */
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 24px; max-width: 560px; width: calc(100% - 32px); color: var(--ink); }
dialog::backdrop { background: rgba(20, 24, 31, .35); }
dialog h2 { margin: 0 0 8px; font-size: 18px; }
dialog p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
dialog input[type="text"], dialog input[type="password"] { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; font-family: var(--mono); font-size: 13px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

.error-box { background: var(--orange-soft); border: 1px solid var(--orange-line); color: var(--orange-ink); border-radius: 12px; padding: 16px 20px; font-size: 14px; }
.loading { opacity: .55; transition: opacity .15s; pointer-events: none; }
footer { font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .app { padding: 16px; }
  .headline h1 { font-size: 28px; }
  .stat-big { font-size: 40px; }
  .basemap { top: 16px; right: 16px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}

/* Solver lab */
.lab-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; align-items: end; }
.lab-tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin: 4px 4px 12px; }
.lab-tabs button { padding: 10px 14px; background: #FFF; color: var(--muted); border: 0; font-size: 13px; font-weight: 500; cursor: pointer; }
.lab-tabs button + button { border-left: 1px solid var(--line); }
.lab-tabs button[aria-selected="true"] { background: var(--soft); color: var(--ink); }
.lab-stage { position: relative; }
.lab-canvas { display: block; width: 100%; aspect-ratio: 800 / 560; border-radius: 8px; cursor: crosshair; }
.lab-tip { position: absolute; z-index: 4; max-width: 250px; background: rgba(20, 24, 31, 0.92); color: #FFF; font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 6px; pointer-events: none; }
.lab-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 4px 4px; }
.lab-buttons { display: flex; gap: 8px; align-items: center; flex: 1 1 280px; }
.lab-buttons input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--blue); }
.lab-legend { flex: 0 1 300px; }
.lab-legend .label { font-size: 12px; margin-bottom: 4px; }
.lab-ramp { height: 10px; border-radius: 3px; }
.lab-ticks { position: relative; height: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lab-ticks span { position: absolute; transform: translateX(-50%); top: 2px; }
.lab-ticks span:first-child { transform: none; }
.lab-ticks span:last-child { transform: translateX(-100%); }
.lab-phase { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); min-height: 63px; }
.lab-how ol { margin: 12px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.5; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.lab-wave-table { min-width: 0; margin-top: 12px; }
.lab-wave-table td { color: #9AA4B2; transition: color .2s; }
.lab-wave-table tr.reached td { color: var(--ink-2); }
.lab-wave-table tr.recorded td:first-child { font-weight: 600; }
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.mini { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 6px; cursor: pointer; background: #FFF; transition: border-color .15s, box-shadow .15s; }
.mini:hover { border-color: #9AA4B2; }
.mini canvas { display: block; width: 100%; aspect-ratio: 1; border-radius: 6px; }
.mini figcaption { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 2px 0; color: var(--ink-2); }
.mini.best { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.mini.best figcaption span:first-child { color: var(--blue-ink); font-weight: 600; }
.mini.active { outline: 2px solid var(--ink); outline-offset: 1px; }

/* Explain (presenter walkthrough) */
.explain { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.explain-stage-card { padding: 12px; }
.explain-canvas { display: block; width: 100%; aspect-ratio: 800 / 640; border-radius: 8px; }
.explain-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }
.explain-say { margin: 0; font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.explain-note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.explain-nav { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; }
.explain-nav .btn-plain { height: 52px; }
.explain-nav .btn-primary { width: auto; }
.explain-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.explain-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.explain-dots span.done { background: #9DBDF5; }
.explain-dots span.on { background: var(--blue); width: 22px; border-radius: 4px; }
.explain-keys { margin: 0; font-size: 12px; color: var(--muted); }
:fullscreen body, :fullscreen .app { background: var(--bg); }
:fullscreen .app { max-width: none; min-height: 100vh; }
:fullscreen footer, :fullscreen .explain-keys { display: none; }
@media (max-width: 980px) { .explain { grid-template-columns: 1fr; } .explain-side { position: static; } .explain-say { font-size: 20px; } }

/* Multi-year history (Tiger Data) */
.history-card { display: flex; flex-direction: column; gap: 16px; }
.history-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.history-head h2 { margin: 4px 0 6px; font-size: 20px; }
.history-head p { margin: 0; font-size: 13px; max-width: 720px; line-height: 1.5; }
.history-source { text-align: right; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #FFF; }
.seg button { padding: 8px 12px; background: #FFF; color: var(--muted); border: 0; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--soft); color: var(--ink); }
.history-region { margin: 4px 0 12px; align-self: flex-start; width: max-content; max-width: 100%; }
.history-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.history-chip { background: var(--cell); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink-2); }
.history-chip b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.history-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; align-items: end; }
.history-result { font-size: 14px; line-height: 1.5; color: var(--ink-2); min-height: 21px; }
.c-green { color: var(--green); }
.history-stage { position: relative; overflow-x: auto; }
.history-canvas { display: block; width: 100%; min-width: 640px; }
.history-foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.history-foot .note { max-width: 560px; }

/* Seven-quake audit, shown below the Tiger history card */
.audit-zoom { margin-top: 12px; }
.audit-zoom h2 { margin: 6px 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.audit-zoom p { margin: 0; font-size: 14px; }

/* Benchmark */
.bm { display: flex; flex-direction: column; gap: 16px; }
.bm-title { margin: 6px 0 8px; font-size: 28px; letter-spacing: -0.01em; }
.bm-lede { margin: 0; max-width: 820px; font-size: 14px; line-height: 1.55; }
.bm-shifts { align-self: flex-start; max-width: 100%; overflow-x: auto; }
.bm-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.bm-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bm-bars { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.bm-bar-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bm-value { margin-left: auto; font-size: 18px; color: var(--ink); }
.bm-track { height: 14px; background: var(--cell, #F3F5F8); border-radius: 7px; margin-top: 6px; overflow: hidden; }
.bm-fill { height: 100%; border-radius: 7px; transition: width .35s ease; }
.bm-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.bm-side { display: flex; flex-direction: column; }
.bm-takeaway { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; }
.bm-h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.bm-chart { width: 100%; height: auto; display: block; }
.bm-axis { font: 400 11px var(--sans); fill: var(--muted); }
.bm-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--ink-2); margin-top: -6px; }
.bm-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.bm-details summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.bm-table-wrap { overflow-x: auto; margin-top: 12px; }
.bm-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.bm-table th, .bm-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bm-table th { color: var(--muted); font-weight: 500; }
.bm-method { margin: 12px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 860px) {
  .bm-grid, .bm-grid.two { grid-template-columns: minmax(0, 1fr); }
  .bm-title { font-size: 22px; }
}

/* Try any quake */
.try-proof { margin: 16px 0 20px; }
.try-picker { display: flex; flex-direction: column; gap: 12px; }
.try-picker-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.try-search { display: flex; gap: 8px; }
.try-search input { flex: 1; min-width: 0; }
.try-search .btn-plain { height: 40px; white-space: nowrap; }
.try-list { max-height: 228px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.try-quake { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: baseline; width: 100%; padding: 9px 12px; background: #FFF; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.try-quake:last-child { border-bottom: 0; }
.try-quake:hover { background: #F9FAFB; }
.try-quake[aria-pressed="true"] { background: var(--soft); color: var(--ink); font-weight: 600; }
.try-mag { font-size: 13px; color: var(--ink); }
.try-place { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.try-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.try-live { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--green); color: #FFF; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.try-next { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; height: auto; min-height: 48px; padding: 10px 16px; font-weight: 600; color: var(--blue-ink); }
@media (max-width: 720px) {
  .try-quake { grid-template-columns: 48px 1fr; }
  .try-meta { grid-column: 2; }
  .try-search { flex-direction: column; }
}
