/* MATNE design tokens and layout.
   Brand palette: Pearl white #f6f4f1 (background), Graphite #282b32 (text and structure),
   Burgundy #712c42 (primary accent), Champagne gold #b1894c / #dfbf85 (secondary accent). */
:root {
  --pearl: #f6f4f1;
  --pearl-2: #ece8e2;
  --surface: #ffffff;
  --graphite: #282b32;
  --graphite-2: #43474e;
  --muted: #6d727a;
  --line: #ddd7cd;
  --burgundy: #712c42;
  --burgundy-2: #934357;
  --gold: #b1894c;
  --gold-light: #dfbf85;
  --gold-soft: #f5ead6;
  --ok: #2f6b4f;
  --ok-soft: #e3f0e8;
  --warn: #8a5a00;
  --warn-soft: #fbefd6;
  --bad: #9c2c3b;
  --bad-soft: #f7e2e4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 43, 50, 0.06), 0 6px 20px rgba(40, 43, 50, 0.06);
  --metal: linear-gradient(135deg, #ffffff 0%, #ece8e1 40%, #ffffff 60%, #e4dfd6 100%);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--graphite);
  background: var(--pearl);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, #fff 0%, var(--pearl) 60%); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 20px;
  background: rgba(246, 244, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.wordmark {
  font-weight: 800; letter-spacing: 0.22em; font-size: 22px;
  background: linear-gradient(180deg, #3a3e45 0%, #9aa0a8 45%, #2a2d32 55%, #6a6f77 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand small { display: block; font-size: 10px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.brand svg { display: block; }
.topbar .spacer { flex: 1; }
.case-meta { font-size: 13px; color: var(--graphite-2); }

/* Buttons */
.btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px;
  padding: 8px 14px; cursor: pointer; min-height: 40px; font-weight: 600; font-size: 14px;
}
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.btn.primary:hover { background: var(--burgundy-2); }
.btn.gold { background: var(--gold-soft); border-color: var(--gold); color: #5a4520; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.toggle input { appearance: none; width: 44px; height: 24px; border-radius: 12px; background: var(--line); position: relative; cursor: pointer; transition: background 0.15s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left 0.15s; }
.toggle input:checked { background: var(--gold); }
.toggle input:checked::after { left: 23px; }

/* Layout */
.layout {
  display: grid; gap: 16px; padding: 16px 20px 40px;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(280px, 380px);
  align-items: start;
}
@media (max-width: 1180px) { .layout { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); } .col-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; padding: 12px; } .col-right { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.panel > h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-2); display: flex; align-items: center; gap: 8px; }
.panel > h2::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--burgundy); }
.panel.alex > h2::before { background: var(--gold); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 13px; }
.field label { font-weight: 600; color: var(--graphite-2); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; min-height: 40px; width: 100%;
}
.field textarea { min-height: 64px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.hint { font-size: 12px; color: var(--muted); }
.hint.ok { color: var(--ok); } .hint.warn { color: var(--warn); } .hint.bad { color: var(--bad); }

/* Chips / badges */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--pearl-2); color: var(--graphite-2); }
.chip.dtc { background: var(--bad-soft); color: var(--burgundy); font-family: ui-monospace, monospace; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.gold { background: var(--gold-soft); color: #6b5226; }
.chip.state { background: #e8ecf3; color: #33465f; }

/* Workflow picker */
.wf-list { display: grid; gap: 8px; }
.wf { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; cursor: pointer; }
.wf strong { display: block; }
.wf span { font-size: 12px; color: var(--muted); }
.wf.active { border-color: var(--burgundy); box-shadow: inset 3px 0 0 var(--burgundy); }

/* Topology */
.topo { display: flex; flex-direction: column; gap: 0; }
.node { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; margin-left: 22px; }
.node::before { content: ""; position: absolute; left: -16px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--graphite); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.link { margin-left: 26px; width: 2px; height: 14px; background: var(--line); }
.node .kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.node h3 { margin: 2px 0 6px; font-size: 16px; }
.node p { margin: 0 0 8px; line-height: 1.45; font-size: 14px; color: var(--graphite-2); }
.node .answer { font-weight: 700; color: var(--burgundy); }
.node.confirmed::before { background: var(--burgundy); }
.node.invalidated { opacity: 0.55; border-style: dashed; }
.node.invalidated::before { background: var(--line); }
.node.alex-step { border-color: var(--gold); background: linear-gradient(180deg, #fffdf8, #fff); }
.node.alex-step::before { background: var(--gold); }
.node.current { border: 2px solid var(--burgundy); box-shadow: 0 0 0 4px rgba(113, 44, 66, 0.08); }
.node.current::before { background: var(--burgundy); box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(113,44,66,.25); }
.node.finding { border: 2px solid var(--graphite); background: var(--metal); }
.node.finding.inconclusive { border-color: var(--warn); }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.options .btn { flex: 1 1 180px; text-align: left; }
.safety { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); color: #5e3e00; font-size: 13px; }
.safety strong { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.measure { margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--pearl); border: 1px solid var(--line); }
.measure .field { margin-bottom: 6px; }
.empty { color: var(--muted); font-size: 14px; padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.ev-inline { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }

/* Topology tree (top-down, like a network tree diagram) */
.tree-wrap { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #fff, var(--pearl)); padding: 10px 12px; }
.tree-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--graphite); }
.tree-views { display: inline-flex; gap: 6px; }
button.tnode { font-family: inherit; cursor: pointer; }
.tnode.folded { border-style: dashed; box-shadow: none; }
.tnode.folded:hover, .tnode.folded:focus-visible { border-style: solid; background: var(--pearl); }
.tmore { font-size: 10px; font-weight: 700; color: var(--muted); }
.tree-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 2px; font-size: 12px; }
.tree-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; border: 2px solid var(--line); background: #fff; }
.tree-legend .lg.done { border-color: var(--burgundy); background: #f7ecee; }
.tree-legend .lg.here { border-color: var(--gold); background: var(--gold-soft); }
.tree-scroll { overflow-x: auto; padding: 6px 0 10px; }
.tree { --tl: #b9bcc6; display: inline-block; min-width: 100%; }
.tree ul { display: flex; justify-content: center; position: relative; margin: 0; padding: 22px 0 0; list-style: none; }
.tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 22px 5px 0; flex: 0 0 auto; }
.tree > ul { padding-top: 0; }
.tree li.root { padding-top: 0; }
/* connectors: each child draws half of the bar above it plus its own drop */
.tree li::before, .tree li::after { content: ""; position: absolute; top: 0; width: 50%; height: 22px; border-top: 2px solid var(--tl); }
.tree li::before { right: 50%; }
.tree li::after { left: 50%; border-left: 2px solid var(--tl); }
.tree li:first-child::before, .tree li:last-child::after { border-top: 0; }
.tree li:last-child::before { border-right: 2px solid var(--tl); border-top-right-radius: 6px; }
.tree li:first-child::after { border-top-left-radius: 6px; }
.tree li:last-child::after { border-left: 0; }
.tree li:only-child::before { border-right: 2px solid var(--tl); border-radius: 0; }
.tree li.root::before, .tree li.root::after { display: none; }
.tree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px solid var(--tl); }
.tree li.on::after, .tree li.on:last-child::before { border-color: var(--burgundy); }
.tree li.on:only-child::before { border-color: var(--burgundy); }
.tedge { font-size: 11px; line-height: 1.25; color: var(--muted); max-width: 140px; margin-bottom: 4px; padding: 1px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.tree li.on > .tedge { color: #fff; background: var(--burgundy); border-color: var(--burgundy); font-weight: 600; }
.tnode { width: 132px; min-height: 58px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 6px 8px; border: 2px solid #4f5a73; border-radius: 10px; background: #fff; box-shadow: 0 3px 0 #4f5a73; font-size: 12px; line-height: 1.25; text-align: center; color: var(--graphite); position: relative; }
.tnode .ticon { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: #4f5a73; }
.tnode.finding { border-color: var(--graphite); box-shadow: 0 3px 0 var(--graphite); background: var(--metal); }
.tnode.finding .ticon { background: var(--graphite); }
.tnode.finding.inconclusive { border-color: var(--warn); box-shadow: 0 3px 0 var(--warn); }
.tnode.finding.inconclusive .ticon { background: var(--warn); }
.tnode.done { border-color: var(--burgundy); box-shadow: 0 3px 0 var(--burgundy); background: #fbf3f4; }
.tnode.done .ticon { background: var(--burgundy); }
.tnode.here { border-color: var(--gold); box-shadow: 0 3px 0 #8a6a2f, 0 0 0 5px rgba(184, 150, 90, 0.25); background: var(--gold-soft); }
.tnode.here .ticon { background: #8a6a2f; }
.tnode.ref { opacity: 0.7; border-style: dashed; box-shadow: none; min-height: 0; }
.tbadge { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b5020; }
@media (max-width: 520px) { .tnode { width: 112px; font-size: 11px; } }

/* Evidence */
.ev { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; }
.ev header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ev .val { font-size: 16px; font-weight: 700; font-family: ui-monospace, monospace; }
.ev .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ev.retracted { opacity: 0.5; text-decoration: line-through; }
.ev .actions { display: flex; gap: 6px; margin-top: 6px; }

/* A.L.E.X. */
.alex-off { font-size: 14px; color: var(--graphite-2); }
.prop { border: 1px solid var(--gold); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fffdf8; font-size: 13px; }
.prop h4 { margin: 4px 0; font-size: 15px; }
.prop.invalidated, .prop.rejected { opacity: 0.55; border-style: dashed; border-color: var(--line); background: #fff; }
.prop.approved { border-color: var(--ok); background: #fbfefc; }
.prop ul { margin: 4px 0 6px; padding-left: 18px; }
.prop .spec { padding: 6px 8px; border-radius: 8px; background: var(--pearl); margin: 6px 0; }
.analysis-summary { font-size: 14px; line-height: 1.45; }
.hyp { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--pearl-2); }
.banner { padding: 8px 10px; border-radius: 8px; font-size: 13px; margin-bottom: 10px; }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.gold { background: var(--gold-soft); color: #5a4520; }
.banner.ok { background: var(--ok-soft); color: var(--ok); }

/* History */
.history { max-height: 260px; overflow: auto; font-size: 12px; color: var(--graphite-2); margin: 0; padding-left: 18px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); z-index: 50; }

/* Signed-in gate: hide the app until the session check finishes */
body.gated .topbar, body.gated .layout { visibility: hidden; }
.user-chip { font-size: 13px; font-weight: 600; color: var(--graphite-2); }

/* Case summary tiles (from v0.5) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.stat strong { display: block; font-size: 26px; line-height: 1.1; color: var(--burgundy); text-transform: capitalize; }
.stat strong.gold { color: #8a6a2f; }
.stat span { font-size: 12px; color: var(--muted); }
.wf.suggested:not(.active) { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.wf .chip { margin-left: 6px; vertical-align: middle; }
@media (max-width: 520px) { .stat strong { font-size: 20px; } }

a.btn, label.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* Start a workflow straight from the topology panel */
.start-wf { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; background: var(--pearl); }
.start-wf .kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burgundy); font-weight: 700; }
.start-wf h3 { margin: 4px 0 4px; font-size: 17px; }
.start-wf .options .btn { flex: 1 1 200px; }

/* ---------- Diagnostic tools (DTC lookup, repair procedures, waveform) ---------- */
.tool-card { display: flex; gap: 10px; align-items: flex-start; width: 100%; font-family: inherit; color: var(--graphite); }
.tool-card svg { flex: 0 0 28px; width: 28px; height: 28px; padding: 5px; border-radius: 8px; background: var(--gold-soft); fill: none; stroke: var(--burgundy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool-card:hover { border-color: var(--gold); }
.tool-text { display: block; }
.tool-text > span { display: block; }
button.chip { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
button.chip.dtc { font-family: ui-monospace, monospace; }
button.chip.dtc:hover { box-shadow: 0 0 0 1px var(--burgundy); }
.tree-switch { position: relative; }
.tree-switch summary { list-style: none; }
.tree-switch summary::-webkit-details-marker { display: none; }
.tree-switch .options { position: absolute; z-index: 5; right: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }

.tool-dialog { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(40, 43, 50, 0.3); color: var(--graphite); background: var(--pearl); }
.tool-dialog::backdrop { background: rgba(40, 43, 50, 0.55); }
.tool-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--graphite); }
.tool-head .btn { color: #fff; border-color: transparent; }
.tool-tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.tool-tab { border: 0; background: transparent; color: #c9ccd3; font: inherit; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tool-tab[aria-selected="true"] { background: var(--burgundy); color: #fff; box-shadow: inset 0 -2px 0 var(--gold-light); }
.tool-body { padding: 16px; }
.tool-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.tool-search .field { margin-bottom: 0; }
.tool-search .grow { flex: 1 1 260px; }
.tool-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
#dtc-result { margin-top: 14px; }
.tool-source { margin-top: 14px; }
.dtc-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dtc-card header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.dtc-card .spacer { flex: 1; }
.dtc-code { font-family: ui-monospace, monospace; font-weight: 700; font-size: 18px; color: var(--burgundy); margin-right: 4px; }
.dtc-defs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dtc-defs li { line-height: 1.45; }
.dtc-defs li .chip { margin-right: 6px; }
.dtc-defs li.mine { padding: 8px 10px; border-radius: 8px; background: var(--gold-soft); }
.dtc-card details { margin-top: 10px; }
.dtc-card details .dtc-defs { margin-top: 8px; }
.dtc-hits { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; max-height: 50vh; overflow: auto; }
.dtc-hit { display: flex; gap: 8px; align-items: baseline; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; font: inherit; font-size: 13px; color: var(--graphite); cursor: pointer; }
.dtc-hit:hover { border-color: var(--gold); }
.dtc-hit .dtc-code { font-size: 14px; }

.svc-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.svc-links .btn { text-decoration: none; color: var(--graphite); }
.proc-head { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; }
.proc-list { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 6px; }
.proc-list li { counter-increment: step; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.proc-list li::before { content: counter(step); flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--pearl-2); }
.proc-list li.done::before { background: var(--ok-soft); color: var(--ok); }
.proc-list label { flex: 1; display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; }
.proc-list li.done label span { color: var(--muted); text-decoration: line-through; }

.wave-fig { margin: 14px 0 0; background: var(--graphite); border-radius: 12px; padding: 8px 10px 10px; }
.wave-fig figcaption { color: #c9ccd3; margin-bottom: 4px; }
.wave-svg { display: block; width: 100%; height: auto; }
.wave-svg .wgrid { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.wave-svg .wline { fill: none; stroke: var(--gold-light); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wave-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.wave-stats div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.wave-stats dt { font-size: 12px; color: var(--muted); }
.wave-stats dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.wave-save { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.wave-look { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.wave-look ul { margin: 6px 0; padding-left: 18px; }
@media (max-width: 560px) {
  .tool-tab { font-size: 13px; padding: 6px 8px; }
  .tool-body { padding: 12px; }
  .proc-list label { font-size: 13px; }
}
.tool-modes { display: inline-flex; gap: 6px; margin-bottom: 12px; }
.br-systems { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.br-systems .hint { color: inherit; opacity: 0.75; }
.br-ranges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.br-range { display: inline-flex; align-items: baseline; gap: 4px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 8px; font: 600 12px ui-monospace, monospace; color: var(--graphite); cursor: pointer; }
.br-range small { font-family: inherit; font-weight: 400; color: var(--muted); }
.br-range.on { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.br-range.on small { color: #f0dce2; }
.br-list { max-height: 46vh; }
