/* Extras on top of /tools/e8-train/train.css for the "how a model learns" instrument. */
.learn-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.learn-stage { line-height: 1.45; user-select: text; min-height: 300px; color: #ecebe7; font-size: 15px; }
.learn-stage canvas { display: block; width: 100%; height: auto; touch-action: none; }
.learn-stage .pad { padding: 14px 16px 16px; }
.stage-tabs { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 16px 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.stage-tabs button { background: none; border: 0; color: #a9a69f; cursor: pointer; padding: 0 0 6px; border-bottom: 1px solid transparent; min-height: 28px; }
.stage-tabs button[aria-selected="true"] { color: #ecebe7; border-bottom-color: #ecebe7; }
.stage-cap { font-family: var(--mono); font-size: 11.5px; color: #a9a69f; padding: 8px 16px 12px; line-height: 1.5; }
.tok { display: inline; padding: 2px 1px; border-radius: 3px; white-space: pre-wrap; cursor: default; }
.tok.special { font-family: var(--mono); font-size: 11px; border: 1px solid #3a3936; padding: 1px 6px; margin: 0 2px; opacity: .95; white-space: nowrap; }
.toks { padding: 6px 16px 14px; font-size: 16px; line-height: 1.75; min-height: 120px; }
.panel .mini, .statline { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin: 6px 0; }
.panel .num { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.cand { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: 15px; background: none; text-align: left; color: inherit; line-height: 1.45; font-family: var(--serif); }
.cand:hover { border-color: var(--ink); }
.cand.picked { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cand.dim { opacity: .55; }
.bars { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; font-family: var(--mono); font-size: 12px; margin: 8px 0; }
.bar { height: 10px; background: var(--rule); position: relative; border-radius: 2px; overflow: hidden; }
.bar i { position: absolute; top: 0; bottom: 0; background: var(--ink); }
.bar.pos i { left: 50%; } .bar.neg i { right: 50%; }
.bar.mid::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink-3); }
.rules label { display: block; font-size: 15px; margin: 4px 0; cursor: pointer; }
.rules input { accent-color: var(--ink); margin-right: 8px; }
.pre { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; background: var(--stage); color: #ecebe7; padding: 10px 12px; border-radius: 6px; line-height: 1.5; margin: 8px 0; }
.chips.small .chip { font-size: 12px; }
.verdict { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule); }
.verdict.fail { color: var(--bad); border-color: var(--bad); } .verdict.pass { color: var(--ok); border-color: var(--ok); }
.redteam { display: grid; gap: 8px; margin: 8px 0; } .redteam .case { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; font-size: 14.5px; }
.redteam .q { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.learn-stage table { border-collapse: collapse; font-family: var(--mono); font-size: 12px; margin: 0 16px 12px; }
.learn-stage td, .learn-stage th { padding: 3px 10px 3px 0; text-align: right; color: #ecebe7; border-bottom: 1px solid #2a2927; } .learn-stage th { color: #a9a69f; font-weight: 400; }
.learn-stage td:first-child, .learn-stage th:first-child { text-align: left; }
@media (max-width: 900px) { .learn-layout { grid-template-columns: 1fr; } .pair { grid-template-columns: 1fr; } }
