/* Choice Grid - matrix-first, high contrast. Two accents only: indigo for the leader, muted amber for the
 * runner-up. The heatmap diverges from amber (a poor score) through paper (5) to deep indigo (a strong one).
 * Condensed system type for the grid so six options x eight criteria fit without a microscope. */
:root {
  --bg: #f6f6f3; --panel: #ffffff; --ink: #0d0d12; --ink2: #2b2b33; --muted: #5d5d68; --line: #d4d4da; --line2: #ececef;
  --indigo: #3a28d4; --indigo-soft: #e7e4fd; --on-indigo: #ffffff; --amber: #a8772a; --amber-soft: #f4e8d0;
  --h0: #d29a45; --h1: #ddac63; --h2: #e7c287; --h3: #efd6ad; --h4: #f5e8d3; --h5: #f1f1f3; --h6: #dedaf8; --h7: #bdb4f1; --h8: #8f82e6; --h9: #6151d9; --h10: #3a28c8;
  --hot-ink: #ffffff; --warn: #8a4b00; --shade: rgba(168, 119, 42, 0.12);
  --cond: "Roboto Condensed", "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue Condensed", "Liberation Sans Narrow", sans-serif-condensed, system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c0c10; --panel: #15151b; --ink: #f3f3f6; --ink2: #d6d6de; --muted: #9a9aa8; --line: #2e2e39; --line2: #22222b;
  --indigo: #9488ff; --indigo-soft: #26214f; --on-indigo: #0c0c10; --amber: #d9aa5f; --amber-soft: #3a2c14;
  --h0: #7d5114; --h1: #6a4718; --h2: #57401f; --h3: #443626; --h4: #312c2b; --h5: #24242c; --h6: #2c2850; --h7: #3a3278; --h8: #4b3fa6; --h9: #5c4fd0; --h10: #7465ff;
  --hot-ink: #ffffff; --warn: #f0b060; --shade: rgba(217, 170, 95, 0.12);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); overflow-x: hidden; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 13px; } .muted { color: var(--muted); }
a { color: var(--indigo); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--cond); font-stretch: condensed; letter-spacing: 0.01em; margin: 0; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; margin: 14px 0 6px; color: var(--ink2); }

/* Header */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 2px solid var(--ink); background: var(--panel); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--cond); font-size: 17px; }
.backlink { color: var(--muted); text-decoration: none; font-size: 13px; font-family: var(--sans); }
.logo svg rect { fill: var(--line); } .logo .l1 { fill: var(--indigo); } .logo .l2 { fill: var(--amber); } .logo .l4 { fill: var(--ink); }
.topactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.credits { font-size: 13px; color: var(--muted); }
.topup { font-size: 13px; }
.ghost { background: transparent; border: 1.5px solid var(--line); border-radius: 4px; padding: 5px 10px; cursor: pointer; }
.ghost:hover { border-color: var(--ink); }

.page { max-width: 1320px; margin: 0 auto; padding: 0 16px 40px; }

/* Hero */
.hero { padding: 26px 0 8px; display: grid; gap: 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
.lede { margin: 8px 0 0; max-width: 760px; color: var(--ink2); font-size: 16px; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.examples .label { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--muted); margin-right: 4px; }
.chip { border: 1.5px solid var(--ink); background: var(--panel); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-family: var(--cond); font-size: 14px; }
.chip:hover { background: var(--ink); color: var(--panel); }
.chip.quiet { border-color: var(--line); color: var(--muted); }
.brief { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.field { display: grid; gap: 4px; }
.field > span { font-family: var(--cond); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.field em { text-transform: none; letter-spacing: 0; font-style: normal; }
input[type="text"], textarea, select { background: var(--panel); border: 1.5px solid var(--line); border-radius: 4px; padding: 7px 9px; width: 100%; }
input[type="text"]:focus, textarea:focus, select:focus, input[type="number"]:focus { outline: 2px solid var(--indigo); outline-offset: 0; border-color: var(--indigo); }
textarea { resize: vertical; }

/* Bands */
.band { margin-top: 26px; }
.bandhead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 12px; }
.bandhead .count { color: var(--muted); font-weight: 600; letter-spacing: 0; }
.hint { color: var(--muted); font-size: 13px; flex: 1 1 320px; }
.add { margin-left: auto; background: var(--ink); color: var(--panel); border: 0; border-radius: 4px; padding: 6px 12px; font-family: var(--cond); font-weight: 700; cursor: pointer; }
.add:disabled { opacity: 0.35; cursor: not-allowed; }
.pricelabel { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pricelabel input { width: 150px; padding: 4px 7px; }
.note { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.note.warn, .warn { color: var(--warn); }
.note.quiet { margin-top: 8px; }

/* Option cards: a horizontal rail at desktop, stacked on phones */
.rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.card { background: var(--panel); border: 2px solid var(--line); border-top-width: 6px; border-radius: 6px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.card.lead { border-color: var(--indigo); }
.card.second { border-color: var(--amber); }
.cardtop { display: flex; align-items: center; gap: 6px; }
.rank { font-family: var(--cond); font-weight: 900; font-size: 20px; min-width: 34px; color: var(--muted); }
.card.lead .rank { color: var(--indigo); } .card.second .rank { color: var(--amber); }
.o-name { font-family: var(--cond); font-weight: 700; font-size: 16px; padding: 5px 7px !important; }
.o-remove, .c-remove { background: transparent; border: 0; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.o-remove:hover, .c-remove:hover { color: var(--ink); }
.pricefield { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pricefield .plabel { white-space: nowrap; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em; }
.o-price { padding: 4px 7px !important; }
.o-facts { font-size: 13px; min-height: 84px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; min-height: 0; }
.badge { font-family: var(--cond); font-size: 12px; border-radius: 3px; padding: 1px 6px; border: 1.5px solid var(--ink); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.badge.hard { background: var(--ink); color: var(--panel); }
.badge.soft { background: transparent; }
.badge.floor { border-style: dashed; }
.badge.lean { border-color: var(--indigo); color: var(--indigo); }
.cardtotal { position: relative; height: 22px; background: var(--line2); border-radius: 3px; overflow: hidden; }
.cardtotal .fill { position: absolute; inset: 0 auto 0 0; background: var(--muted); opacity: 0.35; }
.card.lead .cardtotal .fill { background: var(--indigo); opacity: 1; }
.card.second .cardtotal .fill { background: var(--amber); opacity: 1; }
.cardtotal .tot { position: relative; font-family: var(--cond); font-weight: 700; font-size: 13px; padding: 0 7px; line-height: 22px; }
.card.lead .cardtotal .tot { color: var(--on-indigo); }

/* Criteria rows with visible numeric weights */
.criteria { display: grid; gap: 6px; }
.crit { display: grid; grid-template-columns: minmax(150px, 1.4fr) 150px minmax(220px, 2fr) 110px 32px; gap: 8px; align-items: center; background: var(--panel); border: 1.5px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.crit.zero { opacity: 0.6; }
.c-name { font-family: var(--cond); font-weight: 700; }
.c-kind, .c-floor { padding: 5px 6px; font-size: 13px; }
.slider { display: grid; grid-template-columns: 1fr 34px 46px; align-items: center; gap: 8px; }
.c-weight { width: 100%; accent-color: var(--indigo); height: 22px; cursor: pointer; }
.wval { font-family: var(--cond); font-weight: 900; font-size: 22px; text-align: right; }
.share { font-size: 12px; color: var(--muted); }

/* The matrix: scrolls inside its own container, never the page */
.matrixband .bandhead { align-items: center; }
.standing { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-family: var(--cond); font-weight: 700; font-size: 14px; border-radius: 3px; padding: 2px 9px; }
.pill.lead { background: var(--indigo); color: var(--on-indigo); }
.pill.second { background: var(--amber); color: #fff; }
.pill.gap { border: 1.5px solid var(--ink); }
.legend { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend .ramp { display: inline-block; width: 120px; height: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--h0), var(--h3), var(--h5), var(--h7), var(--h10)); }
.gridscroll { width: 100%; max-width: 100%; overflow: auto; max-height: 72vh; border: 2px solid var(--ink); border-radius: 6px; background: var(--panel); -webkit-overflow-scrolling: touch; }
.gridscroll:focus { outline: 2px solid var(--indigo); }
.matrix { border-collapse: separate; border-spacing: 0; font-family: var(--cond); font-stretch: condensed; min-width: 100%; }
.matrix th, .matrix td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.matrix thead th { position: sticky; top: 0; z-index: 3; background: var(--ink); color: var(--panel); text-align: left; padding: 7px 8px; vertical-align: bottom; min-width: 140px; }
.matrix thead th.zero { opacity: 0.75; }
.matrix th.corner { left: 0; z-index: 4; min-width: 150px; }
.matrix .cname { display: block; font-weight: 800; font-size: 14px; line-height: 1.15; }
.matrix .cw { display: block; font-size: 12px; opacity: 0.8; font-weight: 500; }
.matrix th.totalh { min-width: 170px; }
.matrix tbody th.rowh { position: sticky; left: 0; z-index: 2; background: var(--panel); text-align: left; padding: 8px; min-width: 150px; max-width: 200px; border-left: 6px solid transparent; }
.matrix tr.lead th.rowh { border-left-color: var(--indigo); }
.matrix tr.second th.rowh { border-left-color: var(--amber); }
.matrix .rk { display: inline-block; min-width: 22px; font-weight: 900; color: var(--muted); }
.matrix tr.lead .rk { color: var(--indigo); } .matrix tr.second .rk { color: var(--amber); }
.matrix .oname { font-weight: 800; font-size: 15px; }
.cell { padding: 6px 7px; vertical-align: top; min-width: 140px; max-width: 220px; }
.cellnum { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.score { width: 52px; font-family: var(--cond); font-weight: 900; font-size: 20px; padding: 1px 4px; border: 1.5px solid rgba(0, 0, 0, 0.25); border-radius: 3px; background: rgba(255, 255, 255, 0.55); color: #0d0d12; }
:root[data-theme="dark"] .score { background: rgba(0, 0, 0, 0.35); color: #f3f3f6; border-color: rgba(255, 255, 255, 0.25); }
.costscore { font-weight: 900; font-size: 20px; padding: 1px 4px; }
.pts { font-size: 13px; font-weight: 700; opacity: 0.85; white-space: nowrap; }
.cell.unrated { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(127, 127, 127, 0.12) 6px 12px); }
.cell.belowfloor { box-shadow: inset 0 0 0 2px var(--ink); }
.cell.stale .ev { opacity: 0.35; text-decoration: line-through; }
.ev { margin-top: 4px; font-family: var(--sans); font-size: 12px; line-height: 1.3; }
.evhead { display: flex; align-items: center; gap: 5px; font-family: var(--cond); font-weight: 700; font-size: 12px; }
.conf { width: 8px; height: 8px; border-radius: 50%; display: inline-block; border: 1.5px solid currentColor; }
.conf.high { background: currentColor; } .conf.medium { background: linear-gradient(90deg, currentColor 50%, transparent 50%); } .conf.low { background: transparent; }
.miss { font-weight: 500; opacity: 0.8; }
.evtext { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h0 { background: var(--h0); } .h1 { background: var(--h1); } .h2 { background: var(--h2); } .h3 { background: var(--h3); } .h4 { background: var(--h4); } .h5 { background: var(--h5); }
.h6 { background: var(--h6); } .h7 { background: var(--h7); } .h8 { background: var(--h8); color: var(--hot-ink); } .h9 { background: var(--h9); color: var(--hot-ink); } .h10 { background: var(--h10); color: var(--hot-ink); }
:root[data-theme="dark"] .cell { color: var(--ink); }
.matrix td.total { padding: 8px; vertical-align: middle; background: var(--panel); }
.total .bar { height: 14px; background: var(--line2); border-radius: 2px; overflow: hidden; }
.total .fill { display: block; height: 100%; background: var(--muted); opacity: 0.45; }
tr.lead .total .fill { background: var(--indigo); opacity: 1; }
tr.second .total .fill { background: var(--amber); opacity: 1; }
.total .tot { display: block; margin-top: 3px; font-weight: 900; font-size: 18px; }

/* Sensitivity */
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; border-top: 2px solid var(--ink); padding-top: 12px; }
.tornado { width: 100%; height: auto; display: block; margin-top: 8px; font-family: var(--cond); }
.tornado .tlabel { fill: var(--ink); font-size: 13px; font-weight: 700; }
.tornado .tlabel.small { font-size: 11px; fill: var(--muted); font-weight: 500; }
.tornado .tval { fill: var(--muted); font-size: 11px; }
.tornado .tbar { fill: var(--indigo); opacity: 0.85; }
.tornado .tneg { fill: var(--amber); }
.tornado .ttick { stroke: var(--ink); stroke-width: 2; }
.tornado .tzero { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tornado .loseside { fill: var(--shade); }
.senselines { margin: 34px 0 10px; padding-left: 18px; font-size: 14px; }
.senselines li { margin-bottom: 6px; }
.senselines li.first { font-weight: 700; }
.floors .floorline { margin: 4px 0; font-size: 13px; border-left: 3px solid var(--ink); padding-left: 8px; }
.freeexports, .exports, .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.mini { border: 1.5px solid var(--ink); background: var(--panel); border-radius: 4px; padding: 4px 10px; cursor: pointer; font-family: var(--cond); font-size: 14px; }
.mini:hover:not(:disabled) { background: var(--ink); color: var(--panel); }
.mini:disabled { opacity: 0.45; cursor: default; }

/* Run and reading */
.runband { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 20px; align-items: start; border-top: 2px solid var(--ink); padding-top: 14px; }
.runbox { background: var(--panel); border: 2px solid var(--ink); border-radius: 6px; padding: 14px; display: grid; gap: 8px; position: sticky; top: 64px; }
.runhead, .reshead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lanechip { font-family: var(--cond); font-size: 13px; font-weight: 700; border: 1.5px solid var(--indigo); color: var(--indigo); border-radius: 3px; padding: 1px 8px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.primary { background: var(--indigo); color: var(--on-indigo); border: 0; border-radius: 4px; padding: 11px 14px; font-family: var(--cond); font-weight: 800; font-size: 17px; cursor: pointer; letter-spacing: 0.02em; }
.primary.small { padding: 6px 12px; font-size: 14px; }
.primary:disabled { opacity: 0.4; cursor: not-allowed; }
.notice { color: var(--ink2); background: var(--amber-soft); padding: 6px 8px; border-radius: 4px; margin: 0; }
.gate { margin: 0; } .gateaction { font-weight: 700; }
.progress { border-top: 1.5px solid var(--line); padding-top: 8px; }
.steps { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.step { color: var(--muted); padding: 2px 0; } .step.active { color: var(--ink); font-weight: 700; } .step.done { color: var(--indigo); }
.step-ic { display: inline-block; width: 16px; }
.result { background: var(--panel); border: 2px solid var(--ink); border-radius: 6px; padding: 16px; min-width: 0; }
.headline { font-family: var(--cond); font-size: 22px; font-weight: 800; line-height: 1.2; margin: 10px 0; }
.changed { border-left: 4px solid var(--amber); padding-left: 10px; }
.leancard { border: 2px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 10px 0; }
.leancard.agree { border-color: var(--indigo); }
.leancard.differ { border-color: var(--amber); background: var(--amber-soft); }
.leanlabel { display: block; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--muted); }
.leanname { font-family: var(--cond); font-size: 20px; }
.leancard p { margin: 4px 0 0; }
.recon { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.recon li { padding: 4px 0 4px 22px; position: relative; border-bottom: 1px solid var(--line2); }
.recon li::before { position: absolute; left: 0; top: 4px; font-weight: 900; }
.recon li.agree::before { content: "✓"; color: var(--indigo); }
.recon li.disagree::before { content: "≠"; color: var(--amber); }
.recon li.disagree { font-weight: 600; }
.recon li.info::before { content: "·"; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; }
.cols ul, .cols ol { margin: 0; padding-left: 18px; font-size: 14px; }
.breaks, .missing, .weights, .biases { list-style: none; padding-left: 0 !important; }
.breaks li, .missing li, .weights li, .biases li { padding: 6px 0; border-bottom: 1px solid var(--line2); }
.cols p { margin: 3px 0; }
.biases .q { font-style: italic; color: var(--ink2); }
li.none { color: var(--muted); list-style: none; }
.raw { white-space: pre-wrap; word-break: break-word; max-height: 400px; overflow: auto; font: 12px/1.4 var(--mono); }
.linkbtn { margin-left: auto; background: none; border: 0; color: var(--indigo); cursor: pointer; text-decoration: underline; font-size: 13px; }

/* History */
.history { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.histbtn { width: 100%; text-align: left; background: var(--panel); border: 1.5px solid var(--line); border-radius: 6px; padding: 9px 11px; cursor: pointer; display: grid; gap: 2px; }
.histbtn:hover { border-color: var(--indigo); }
.histbtn strong { font-family: var(--cond); font-size: 16px; }

.foot { max-width: 1320px; margin: 0 auto; padding: 18px 16px 40px; color: var(--muted); font-size: 13px; border-top: 2px solid var(--ink); }
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--panel); padding: 9px 12px; border-radius: 5px; font-size: 14px; transition: opacity 0.5s; }
.toast.err { background: var(--amber); color: #fff; }
.toast a { color: inherit; font-weight: 700; }
.toastact { background: none; border: 0; padding: 0 2px; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.toast.gone { opacity: 0; }

@media (max-width: 900px) {
  .brief { grid-template-columns: 1fr; }
  .split, .runband { grid-template-columns: 1fr; }
  .runbox { position: static; }
  .crit { grid-template-columns: 1fr 1fr; }
  .crit .slider { grid-column: 1 / -1; }
  .crit .c-remove { justify-self: end; }
  .senselines { margin-top: 8px; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rail { grid-template-columns: 1fr; }
  .crit { grid-template-columns: 1fr 1fr 32px; }
  .crit .c-name { grid-column: 1 / -1; }
  .legend { margin-left: 0; }
  .topbar { padding: 8px 12px; }
  .backlink { display: none; }
  .gridscroll { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Docs pages (api.html, tokens.html) */
.mono, code, pre { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sep { color: var(--line); }
.doc { max-width: 940px; margin: 0 auto; padding: 24px 16px; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); text-transform: uppercase; font-weight: 900; margin-bottom: 14px; }
.doc h2 { margin: 30px 0 8px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.doc h3 { margin-top: 20px; }
.doc p { color: var(--ink2); }
.doc pre { background: var(--panel); border: 1.5px solid var(--line); border-radius: 4px; padding: 12px; overflow-x: auto; font-size: 12px; line-height: 1.5; margin: 0 0 8px; max-width: 100%; }
.doc table { border-collapse: collapse; width: 100%; font-size: 13px; display: block; overflow-x: auto; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.doc code { font-size: 12px; background: var(--line2); padding: 0 3px; border-radius: 3px; }
.doc pre code { background: none; padding: 0; }
.codegroup { margin: 8px 0 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: -1px; }
.tab { background: var(--line2); border: 1.5px solid var(--line); border-bottom: 0; border-radius: 4px 4px 0 0; padding: 4px 10px; font-size: 12px; color: var(--muted); cursor: pointer; font-family: var(--cond); }
.tab.active { background: var(--panel); color: var(--indigo); font-weight: 700; }
.statebox { background: var(--panel); border: 1.5px solid var(--line); border-radius: 6px; padding: 14px; }
.statebox p { margin: 4px 0; }
.tokenrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; align-items: center; }
.tokenrow .primary { width: auto; }
.tokenbox { font: 12px var(--mono); background: var(--panel); border: 1.5px solid var(--line); border-radius: 4px; padding: 8px 12px; word-break: break-all; flex: 1; }
