@font-face {
  font-family: Bricolage;
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #11151d;
  --panel: #1a212a;
  --instrument: #202936;
  --ink: #f6f5ed;
  --muted: #c1cad1;
  --line: #586571;
  --mint: #afedc6;
  --lilac: #d9caff;
  --amber: #ffd290;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: Bricolage, "Trebuchet MS", Arial, sans-serif;
  line-height: 1.45;
  background: var(--bg);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
h1, h2, h3, p, fieldset, legend { margin: 0; }
button, select, input { font: inherit; }
button, select {
  color: var(--ink);
  background: #293544;
  border: 1px solid var(--line);
  border-radius: .42rem;
  min-height: 44px;
  padding: .45rem .75rem;
}
button, select, summary, .model-card { cursor: pointer; }
button:disabled { cursor: default; color: #b3bec6; background: #28303b; border-color: #49525d; }
button:enabled:hover, select:hover { border-color: var(--amber); }
button, a, select, summary, .model-card { touch-action: manipulation; }
a { color: var(--mint); text-underline-offset: .21em; text-decoration-thickness: 1px; }
a:hover { color: #e7ffe6; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.screenreader, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: absolute; z-index: 5; padding: .5rem; top: .5rem; left: 1rem; color: var(--ink); background: var(--bg); }
.frame { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.mast, footer { border-block-end: 1px solid #3c4651; }
nav, .nav-links, .picker-controls, .round-tools, .round-tools > div, .decision-controls, .predict-actions, .budget, .cells, .bench-head, .record-head { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .8rem; }
nav { justify-content: space-between; padding: .8rem 0; }
nav a { font-size: .95rem; }
.nav-links { gap: 1.25rem; }
.brand { color: var(--ink); text-decoration: none; font-size: 1.1rem; font-weight: 650; display: inline-flex; align-items: center; gap: .22rem; }
.brand strong { color: var(--mint); }
.brand-mark { width: 1.15rem; height: 1.15rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-right: .35rem; }
.brand-mark i { background: var(--mint); border-radius: 1px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: var(--lilac); }
.intro { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; padding: clamp(1.5rem,4vw,3rem) 0 1.4rem; }
h1 { font-size: clamp(2.8rem,6.4vw,5.5rem); letter-spacing: -.07em; line-height: .98; }
h1 em { color: var(--mint); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.intro p { margin: .6rem 0 0; color: var(--muted); max-width: 41rem; font-size: 1.08rem; }
.case-picker > label, .decision > label { font-weight: 650; display: block; margin-bottom: .35rem; }
.case-picker select { max-width: 100%; }
.bench { border: 1px solid var(--line); border-top: 3px solid var(--mint); border-radius: .75rem; overflow: hidden; background: var(--panel); }
.bench-head, .models, .instruments, .record, .result { padding: clamp(.95rem,2.4vw,1.55rem); }
.bench-head { justify-content: space-between; gap: .7rem 1.2rem; }
.seedline, .mono, .budget { font: 600 .88rem/1.4 var(--mono); color: var(--muted); }
.seedline { margin-bottom: .2rem; }
h2 { font-size: clamp(1.45rem,3vw,2.05rem); letter-spacing: -.04em; line-height: 1.12; }
h3 { font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.3; }
.cells { gap: .25rem; flex-wrap: nowrap; }
.cells i { background: var(--mint); border: 1px solid var(--mint); border-radius: 2px; width: .75rem; height: 1.2rem; }
.cells i.spent { background: transparent; border-style: dashed; border-color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); border-block: 1px solid #43505c; }
.instruments { background: var(--instrument); border-left: 1px solid #43505c; }
.lead { margin-top: .4rem; max-width: 48ch; color: var(--muted); }
.help { color: var(--muted); font-size: .94rem; }
#probe-help { margin: .4rem 0 .95rem; }
fieldset { padding: 0; border: 0; }
.model-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; margin: 1rem 0; }
.model-card { position: relative; display: grid; grid-template-rows: auto auto 1fr; align-content: start; padding: .7rem .75rem .85rem; border: 1px solid #647483; border-radius: .48rem; background: #202c35; min-width: 0; }
.model-card:has(input:checked) { border: 2px solid var(--mint); padding: calc(.7rem - 1px) calc(.75rem - 1px) calc(.85rem - 1px); background: #243a36; }
.model-card:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.model-head { display: flex; align-items: center; justify-content: space-between; font: 700 .84rem/1.3 var(--mono); color: var(--lilac); }
.model-head input { accent-color: var(--mint); width: 1.12rem; height: 1.12rem; margin: 0; }
.model-name { font-weight: 700; overflow-wrap: anywhere; line-height: 1.22; }
.model-detail { font-size: .9rem; line-height: 1.35; color: var(--muted); margin-top: .25rem; }
.model-card.view-only { cursor: default; }
.figure { align-self: center; position: relative; display: flex; height: 3.2rem; margin: .5rem 0 .65rem; gap: .28rem; align-items: end; }
.figure.spring { align-items: center; }
.spring i { width: 42%; height: .9rem; border-block: 2px solid var(--mint); border-inline: 2px solid var(--mint); background: repeating-linear-gradient(112deg,transparent 0 4px,var(--mint) 4px 6px,transparent 6px 10px); }
.spring i.firm { height: 1.2rem; border-color: var(--lilac); background: repeating-linear-gradient(112deg,transparent 0 2px,var(--lilac) 2px 4px,transparent 4px 7px); }
.spring::after { content: ''; height: 1.8rem; width: .35rem; background: var(--muted); }
.figure.spectrum { gap: .32rem; border-bottom: 1px solid #657380; padding: 0 .2rem; }
.spectrum i { display: block; width: 25%; min-height: 1px; background: var(--mint); }
.spectrum i:nth-child(2) { background: var(--lilac); }
.spectrum i:nth-child(3) { background: var(--amber); }
.figure.tree { display: grid; grid-template-columns: repeat(3,1fr); gap: .35rem; align-items: end; padding: 1.3rem .1rem 0; }
.tree i { height: 1.65rem; border-top: 2px solid var(--lilac); display: grid; justify-items: center; }
.tree i::after { content: ''; width: .65rem; height: .65rem; background: var(--mint); align-self: end; }
.tree i::before { content: ''; width: 2px; height: .85rem; background: var(--lilac); }
.tree.shared { gap: 0; }
.tree.shared::before { content: ''; position: absolute; left: calc(50% - .3rem); top: .2rem; height: .68rem; width: .68rem; border: 2px solid var(--lilac); }
.tree.shared::after { content: ''; position: absolute; left: 50%; top: .87rem; height: .68rem; width: 2px; background: var(--lilac); }
.figure.phase { align-items: center; gap: .2rem; font: 700 1rem var(--mono); color: var(--mint); }
.phase i { font-style: normal; width: 1.48rem; height: 1.48rem; display: grid; place-content: center; border: 1px solid var(--line); border-radius: 50%; }
.phase i.negative { color: var(--amber); border-color: var(--amber); }
.primary { background: var(--mint); color: #10221a; border: 1px solid var(--mint); font-weight: 740; }
.primary:enabled:hover { background: #c8f8da; }
.predict-actions { gap: .4rem .6rem; }
.predict-actions .help { flex: 1 1 11rem; }
details { border-top: 1px solid #43505c; padding-top: .55rem; }
.models details { margin-top: 1rem; }
summary { font-weight: 650; color: var(--mint); padding: .35rem .15rem; }
details p { color: var(--muted); margin: .45rem .15rem; }
.probes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
.probe { text-align: left; display: grid; align-content: start; gap: .22rem; padding: .67rem .75rem; line-height: 1.3; }
.probe strong { font-weight: 700; }
.probe span { font-size: .9rem; color: var(--muted); }
.probe[disabled].used { border-style: dashed; }
.decision { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .9rem; }
.decision-controls { gap: .45rem; }
#decision { max-width: 100%; }
.record-head { justify-content: space-between; padding-bottom: .3rem; }
table { border-collapse: collapse; width: 100%; text-align: left; }
.table-scroll { overflow-x: auto; margin-top: .35rem; }
th, td { border-bottom: 1px solid #4a5762; padding: .45rem .55rem .45rem 0; }
thead th { font-size: .86rem; color: var(--muted); font-weight: 600; }
tbody td { font-family: var(--mono); color: var(--lilac); overflow-wrap: anywhere; }
tbody td.reading { color: var(--mint); font-weight: 700; }
.result { border-top: 1px solid var(--line); background: #20342e; }
.result h3 { color: var(--mint); font-size: 1.35rem; }
.result p { margin: .4rem 0; max-width: 76ch; }
.result a { display: inline-block; margin-top: .3rem; }
.round-tools { justify-content: space-between; margin: .75rem 0 1.3rem; }
.round-tools span { color: var(--muted); font-size: .94rem; }
.learning { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
footer { border-block: 1px solid #46515c; margin-top: 2.2rem; }
.noscript { margin: .8rem 0; color: var(--amber); }
@media (max-width: 850px) { .workspace { grid-template-columns: minmax(0,1fr); } .instruments { border-left: 0; border-top: 1px solid var(--line); } .model-list { margin: .8rem 0; } }
@media (max-width: 540px) { .frame { width: calc(100% - 1.25rem); } .intro { padding-top: 1.35rem; } .case-picker { width: 100%; } .picker-controls select { flex: 1; } .learning { grid-template-columns: minmax(0,1fr); gap: .6rem; } .nav-links { gap: .65rem; } .model-card { padding-inline: .55rem; } .model-card:has(input:checked) { padding-inline: calc(.55rem - 1px); } .budget { gap: .4rem; } }
@media (max-width: 370px) { .probes { grid-template-columns: 1fr; } .decision-controls select { width: 100%; } }
@media print { :root { color-scheme: light; --bg: white; --ink: black; --muted: #333; --mint: #124e2f; --lilac: #492a66; --line: #777; } body, .bench, .instruments, .model-card, .result { background: white !important; } .case-picker, .probes, .predict-actions button, .decision, .round-tools, header, footer { display: none !important; } .workspace { display: block; } .instruments { border: 0; } .frame { width: 100%; } }
