/* Equation Lab — projector-first styles. Light, high-contrast, large type. */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #f1f0eb;
  --ink: #1a2130;
  --ink-2: #444e63;
  --muted: #6a7284;
  --line: #dddde2;
  --line-strong: #b8bbc5;
  --accent: #2250c9;
  --accent-ink: #ffffff;
  --accent-soft: #e7edfc;
  --box: #9a5a00;
  --box-bg: #fff0c9;
  --box-line: #e09a10;
  --good: #137145;
  --good-bg: #ddf3e7;
  --bad: #b23a1e;
  --bad-bg: #fbe6df;
  --warn-bg: #fff6d8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 25, 40, .06), 0 6px 20px rgba(20, 25, 40, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; background: var(--surface); }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 800 26px/1 var(--font-num);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand-text b { font-size: 17px; }
.brand-text small { color: var(--muted); font-size: 12.5px; }
.eq-form { position: relative; display: flex; gap: 8px; flex: 1; max-width: 560px; margin-left: auto; }
.eq-form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  font: 600 20px var(--font-num); letter-spacing: .02em;
}
.eq-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.eq-form input.bad { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.eq-form .btn { height: 44px; }
.eq-error { position: absolute; left: 2px; top: 100%; margin-top: 3px; font-size: 13px; color: var(--bad); font-weight: 600; white-space: nowrap; z-index: 5; }
.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* ---------- tabs ---------- */
.tabs {
  display: flex; gap: 2px; padding: 0 14px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tab {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 14px 7px; border: 0; border-bottom: 3px solid transparent; background: none;
  color: var(--ink-2); white-space: nowrap;
}
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab-key {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted);
}
.tab[aria-selected="true"] .tab-key { background: var(--accent); color: #fff; }
.tab-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.tab-text b { font-size: 15px; }
.tab-text small { font-size: 12px; color: var(--muted); }

/* ---------- stage ---------- */
.stage { padding: 12px 24px 2px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stage-eq { min-height: 1.3em; display: flex; justify-content: center; }
.stage-actions { display: flex; gap: 8px; align-items: center; min-height: 38px; }
.stage-hint { color: var(--muted); font-size: 15px; }

/* ---------- equation tokens ---------- */
.eqn { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; font-family: var(--font-num); font-weight: 700; line-height: 1.15; letter-spacing: .01em; }
.eqn.stage-size { font-size: clamp(40px, min(5.6vw, 9.5vh), 96px); }
.tok { display: inline-flex; align-items: center; justify-content: center; border-radius: .14em; padding: 0 .1em; transition: background .15s, color .15s, box-shadow .15s, opacity .2s; }
.tok-op { margin: 0 .08em; color: var(--ink-2); font-weight: 600; }
.tok-eq { margin: 0 .22em; }
.tok-box {
  min-width: 1.05em; height: 1.08em; margin: 0 .08em; padding: 0 .1em;
  border: .065em solid var(--ink); border-radius: .14em; background: var(--surface);
}
.tok-box .box-inner { line-height: 1; }
.tok-box.filled { background: var(--box-bg); border-color: var(--box-line); color: var(--box); }
.tok.clickable { cursor: pointer; }
.tok.clickable:hover { background: var(--accent-soft); }
.tok-box.clickable:hover { background: var(--box-bg); }
.tok.hl { background: var(--accent-soft); box-shadow: 0 0 0 .06em var(--accent); color: var(--accent); }
.tok-box.hl { box-shadow: 0 0 0 .08em var(--accent); }
.tok.hl-changed { background: #ffe58a; box-shadow: 0 0 0 .05em #e0b100; }
.tok.hl-dim { opacity: .3; }
.eq-inline { font-family: var(--font-num); font-weight: 700; white-space: nowrap; }
.mini-box { display: inline-block; width: .9em; height: .95em; border: 2px solid currentColor; border-radius: 3px; vertical-align: -.12em; margin: 0 .08em; }

/* ---------- views ---------- */
#views { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.view { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 6px 24px 16px; min-height: 0; overflow: auto; }
@media (min-width: 861px) and (min-height: 560px) {
  body { height: 100vh; overflow: hidden; }
}
.view-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.view-toolbar .spacer { flex: 1; }
.view-toolbar .label { color: var(--muted); font-size: 14px; font-weight: 600; margin-right: 2px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.panel h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: .01em; }
.panel-title { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 10px; }
.panel-title h3 { margin: 0; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); border: 1px solid #f1d58a; color: #6a4b00; font-weight: 600; }
.canvas-wrap { flex: 1 1 0; min-height: 190px; display: flex; align-items: center; justify-content: center; position: relative; }
.canvas-wrap > svg { width: 100%; height: 100%; overflow: visible; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--surface-2); color: var(--ink-2); }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.box { background: var(--box-bg); color: var(--box); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 600; font-size: 15px; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #1b43ad; }
.btn.subtle { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.subtle:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); border-color: #e6b3a6; }
.btn.good { color: var(--good); border-color: #9fd2b6; }
.btn.big { height: 48px; font-size: 17px; padding: 0 20px; }
.btn.toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13.5px; border-radius: 8px; }
.icon { width: 20px; height: 20px; display: inline-flex; flex: none; }
.icon svg { width: 100%; height: 100%; }
.btn.small .icon { width: 16px; height: 16px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  display: inline-grid; place-items: center; color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg { height: 36px; padding: 0 12px; border: 0; border-right: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.seg:last-child { border-right: 0; }
.seg[aria-checked="true"] { background: var(--accent); color: #fff; }

/* ---------- presenting: controls hidden ---------- */
body.controls-hidden .chrome,
body.controls-hidden .teacher-only { display: none !important; }
.present-tools { position: fixed; right: 14px; bottom: 14px; z-index: 30; display: none; gap: 8px; }
body.controls-hidden .present-tools { display: flex; }
.show-controls {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px; opacity: .35;
}
.show-controls:hover, .show-controls:focus-visible { opacity: 1; }
.reset-btn { border-color: #e2a090; color: var(--bad); margin-left: 6px; }
.reset-btn:hover { background: var(--bad-bg); }
.undo-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 65;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  max-width: calc(100vw - 32px);
}
.undo-bar[hidden] { display: none !important; }
.undo-bar .btn { background: #fff; color: var(--ink); border-color: #fff; }
body.controls-hidden .stage { padding-top: 28px; }

/* ---------- modal ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(14, 19, 30, .45); display: grid; place-items: center; padding: 16px; }
.modal-card { width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal-card.wide { width: min(900px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px 22px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-body { padding: 6px 22px 22px; }
.keypad-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.key { height: 58px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font: 700 24px var(--font-num); }
.key:hover { background: var(--box-bg); border-color: var(--box-line); }
.key.current { background: var(--box-bg); border-color: var(--box-line); color: var(--box); }
.keypad-other { display: flex; gap: 8px; margin-top: 14px; }
.key-input { flex: 1; height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line-strong); font: 600 18px var(--font-num); }
.keypad-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.help .lede { font-size: 17px; margin-top: 0; }
.help h3 { margin: 18px 0 6px; font-size: 16px; }
.help h3 small { color: var(--muted); font-weight: 500; margin-left: 8px; }
.help-views { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.help-view p { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; }
.help-view h3 { margin: 10px 0 2px; font-size: 15px; }
.help .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.keys dd { margin: 0; }

/* ---------- drawer ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(380px, 92vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: -10px 0 40px rgba(0, 0, 0, .12);
  display: flex; flex-direction: column; padding: 14px 16px;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-note { color: var(--muted); font-size: 13.5px; margin: 4px 0 10px; }
.history-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.history-list li { padding: 9px 2px; border-bottom: 1px solid var(--line); }
.history-list li.empty { color: var(--muted); border: 0; }
.history-list time { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.history-list .hist-view { font-size: 12px; color: var(--accent); font-weight: 700; margin-left: 8px; text-transform: uppercase; letter-spacing: .04em; }
.history-list p { margin: 2px 0 0; font-size: 14.5px; }
.drawer-foot { padding-top: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- print (Practice view) ---------- */
#print-root { display: none; }
@media print {
  @page { size: letter; margin: 0.5in; }
  body { background: #fff; display: block; }
  body > * { display: none !important; }
  body > #print-root { display: block !important; }
}

/* ---------- big projector screens: scale the workspace up ---------- */
@media (min-width: 1600px) and (min-height: 880px) {
  .view { zoom: 1.28; }
  .topbar, .tabs { zoom: 1.12; }
}
@media (min-width: 2200px) and (min-height: 1200px) {
  .view { zoom: 1.6; }
  .topbar, .tabs { zoom: 1.3; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
  .brand-text small { display: none; }
  .tab-text small { display: none; }
}
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .eq-form { order: 3; max-width: none; flex-basis: 100%; margin-left: 0; }
  .eq-error { position: static; }
  .view { padding: 8px 16px 18px; }
  .help-views { grid-template-columns: 1fr; }
  .tools .btn-label { display: none; }
  .tools .reset-btn .btn-label { display: inline; }
}

/* ================= Balance (Van de Walle) ================= */
.bal-main { flex: 1 1 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; min-height: 290px; }
.bal-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 0; }
.bal-panel { align-self: center; }
.bal-floor { fill: #cfccc1; }
.bal-base, .bal-post { fill: #55607a; }
.bal-beam-bar { fill: #36405a; }
.bal-hook { fill: #f6f5f1; stroke: #36405a; stroke-width: 3; }
.bal-pointer { stroke: #36405a; stroke-width: 5; stroke-linecap: round; }
.bal-pivot-dot { fill: #f6f5f1; stroke: #36405a; stroke-width: 5; }
.bal-string { stroke: #8b91a1; stroke-width: 2.5; fill: none; }
.pan-tray { fill: #55607a; }
.bw-body { fill: #2d3850; }
.bw-handle { fill: none; stroke: #2d3850; stroke-width: 7; stroke-linecap: round; }
.bw-label { fill: #fff; font-family: var(--font-num); font-weight: 800; }
.bw-box .bw-body { fill: #ffd463; stroke: #c98a00; stroke-width: 3; }
.bw-box .bw-handle { stroke: #c98a00; }
.bw-box .bw-label { fill: #5e3700; }
.bw-slot { fill: #fffaf0; stroke: #d39200; stroke-width: 3; stroke-dasharray: 9 6; }
.bw-q { fill: #b07a00; font-family: var(--font-num); font-weight: 800; }
.bw-box, .bw-empty { cursor: pointer; }
.bb-body { fill: #f39a8f; stroke: #c4554a; stroke-width: 2.5; }
.bb-string { stroke: #8b91a1; stroke-width: 2; fill: none; }
.bb-knot { fill: #c4554a; }
.bb-label { fill: #fff; font-family: var(--font-num); font-weight: 800; }
.bal-supports, .bal-lock { transition: opacity .45s; }
.bal-supports.gone, .bal-lock.gone { opacity: 0; }
.bal-lock rect { fill: #55607a; }
.bal-lock path { stroke: #55607a; stroke-width: 5; }
.bal-total { display: none; font: 800 40px var(--font-num); fill: var(--muted); }
.show-totals .bal-total { display: inline; }
.bal-panel { display: flex; flex-direction: column; gap: 12px; }
.bal-predict { display: flex; flex-direction: column; gap: 10px; }
.bal-ask { font-size: 22px; font-weight: 750; margin: 0; line-height: 1.2; }
.bal-options { display: flex; flex-direction: column; gap: 8px; }
.bal-opt-wrap { display: flex; gap: 6px; }
.bal-opt {
  flex: 1; display: flex; align-items: center; gap: 12px; padding: 7px 12px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  font-weight: 700; font-size: 18px; text-align: left;
}
.bal-opt:hover { border-color: var(--accent); }
.bal-opt.outcome { border-color: var(--good); background: var(--good-bg); }
.mini-scale { width: 54px; height: 28px; flex: none; }
.ms-beam, .ms-post { stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; }
.mini-scale circle { fill: var(--ink-2); }
.bal-count { margin-left: auto; min-width: 42px; text-align: center; font: 800 22px var(--font-num); background: var(--surface-2); border-radius: 8px; padding: 2px 8px; }
.bal-minus { width: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 20px; color: var(--muted); }
.bal-status { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 42px; flex-wrap: wrap; }
.big-chip { height: 40px; font-size: 19px; padding: 0 18px; }
.tf-panel { padding: 10px 14px; }
.tf-panel .panel-title { margin-bottom: 8px; }
.tf-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.tf-card { border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 8px 6px 12px; display: flex; align-items: center; gap: 8px; background: var(--surface); }
.tf-card.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tf-card.is-true { background: var(--good-bg); border-color: #9fd2b6; }
.tf-card.is-false { background: var(--bad-bg); border-color: #e6b3a6; }
.tf-eq { flex: 1; font-size: 20px; display: flex; flex-direction: column; min-width: 0; }
.tf-result { font: 700 12.5px var(--font); color: var(--ink-2); }
.tf-card.wrong .tf-result { color: var(--bad); }
.tf-actions { display: flex; gap: 4px; flex: none; }
.tf-vote { height: 30px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-weight: 700; font-size: 13px; }
.tf-vote.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tf-test { width: 36px; height: 30px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); display: grid; place-items: center; }
.tf-test .icon { width: 18px; height: 18px; }
.tf-test:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 860px) { .bal-main { grid-template-columns: 1fr; } }

/* ================= Rods (Gattegno) ================= */
.rods-canvas { min-height: 220px; border-radius: var(--radius); transition: background .15s; }
.rods-canvas.drop-hover { background: var(--accent-soft); }

.rod-rowlabel { font: 700 16px var(--font); fill: var(--muted); letter-spacing: .02em; }
.rod-body { stroke: rgba(0, 0, 0, .28); stroke-width: 1.5; }
.rod-white .rod-body { stroke: #8d8b82; stroke-width: 2; }
.rod-notch { stroke-width: 1.2; opacity: .18; }
.rod-num { font-family: var(--font-num); font-weight: 800; pointer-events: none; }
.no-numbers .rod-num { display: none; }
.rod-term { cursor: pointer; transition: opacity .2s; }
.rod-term.dim { opacity: .28; }
.rod-term.lit .rod-body, .rod-term.lit .gap-slot { stroke: var(--accent); stroke-width: 4; }
.rod-term.lit { filter: drop-shadow(0 0 6px rgba(34, 80, 201, .45)); }
.rod.in-gap { cursor: pointer; }
.gap-slot { fill: #fffaf0; stroke: #d39200; stroke-width: 3; stroke-dasharray: 9 6; }
.gap-mark { fill: #b07a00; font-family: var(--font-num); font-weight: 800; }
.gap-outline { fill: none; stroke: #e09a10; stroke-width: 2.5; stroke-dasharray: 6 5; }
.rod-endline { stroke: var(--ink-2); stroke-width: 2.5; stroke-dasharray: 7 6; }
.rod-over { stroke: rgba(178, 58, 30, .7); stroke-width: 2; }
.rod-short { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 5 5; }
.rod-diff { font: 700 18px var(--font); fill: var(--muted); }
.rod-diff.bad { fill: var(--bad); }
.rod-bracket { fill: none; stroke: var(--ink-2); stroke-width: 2.5; }
.rod-bracket-label { font: 800 22px var(--font-num); fill: var(--ink-2); }
.rod-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rod-tray .label { color: var(--muted); font-weight: 600; font-size: 14px; margin-right: 4px; }
.rods-verdict .note { font-size: 20px; font-weight: 650; color: var(--ink-2); }
.tray-rod {
  height: 38px; border-radius: 7px; border: 1.5px solid rgba(0, 0, 0, .3);
  display: inline-flex; align-items: center; justify-content: center; touch-action: none;
  font: 800 16px var(--font-num); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.tray-rod:hover { transform: translateY(-2px); }
.tray-rod:active { cursor: grabbing; }
.rod-ghost {
  position: fixed; z-index: 70; height: 44px; border-radius: 8px; transform: translate(-50%, -50%);
  display: grid; place-items: center; font: 800 18px var(--font-num); pointer-events: none;
  border: 1.5px solid rgba(0, 0, 0, .3); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); opacity: .92;
}
.rod-sentence { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 20px; }
.rs-term { display: inline-flex; gap: 3px; padding: 4px; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.rs-term.lit { border-color: var(--accent); background: var(--accent-soft); }
.rs-swatch { padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 17px; border: 1px solid rgba(0, 0, 0, .25); }
.rs-box { display: inline-grid; place-items: center; width: 40px; height: 34px; border: 2.5px dashed var(--box-line); border-radius: 6px; color: var(--box); font-weight: 800; }
.rs-op { font: 800 26px var(--font-num); color: var(--ink-2); }
.train-list { display: flex; flex-wrap: wrap; gap: 8px; }
.train-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.train-item:hover { border-color: var(--accent); }
.train-label { font: 800 17px var(--font-num); }

/* ================= Story (Burns) ================= */
.story-prompt { text-align: center; font-size: 22px; font-weight: 750; margin: 0; }
.story-main { flex: 1 1 0; display: flex; gap: 16px; min-height: 0; }
.story-left { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; justify-content: center; }
.story-body { display: flex; flex-direction: column; gap: 14px; --obj: calc(var(--obj-base, 42px) * var(--obj-scale, 1)); }
.books { display: grid; grid-template-columns: 120px max-content 150px; gap: 16px 18px; align-items: center; justify-content: center; }
.book-row { display: contents; }
.book-label { font-weight: 700; color: var(--muted); display: flex; flex-direction: column; font-size: 14px; }
.book-label small { font: 800 22px var(--font-num); color: var(--ink-2); }
.book {
  display: flex; align-items: stretch; justify-self: start; max-width: 100%;
  background: #fffdf6; border: 2px solid #d9cfb5; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden;
}
.gutter { width: 4px; flex: none; background: linear-gradient(90deg, #cfc4a5, #f3ecd8, #cfc4a5); }
.page { position: relative; padding: 16px 18px; display: flex; align-items: center; justify-content: center; min-width: 130px; min-height: calc(var(--obj) + 34px); }
.box-page { background: #fff8e6; }
.box-page.peeked { background: #fff1c4; }
.page-tag { position: absolute; top: 3px; right: 8px; font-size: 12px; font-weight: 800; color: var(--box); letter-spacing: .02em; }
.obj-grid { display: grid; grid-template-columns: repeat(5, var(--obj)); gap: 4px; justify-content: center; }
.obj { width: var(--obj); height: var(--obj); display: block; }
.obj.dot { border-radius: 50%; background: #2d3850; width: calc(var(--obj) * .66); height: calc(var(--obj) * .66); margin: calc(var(--obj) * .17); }
.page-numeral { font: 800 64px var(--font-num); line-height: 1; padding: 6px 10px; }
.sticky {
  width: 112px; height: 96px; border: 0; border-radius: 3px; transform: rotate(-3deg);
  background: #ffd95e; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); font: 800 48px var(--font-num); color: #6b4a00;
}
.sticky:hover { transform: rotate(-1deg) scale(1.03); }
.sticky.small { width: 56px; height: 46px; font-size: 26px; margin-left: 8px; }
.book-count { font: 800 22px var(--font-num); }
.hidden-count { visibility: hidden; }
.lineup-row { display: flex; align-items: center; gap: 2px; padding: 8px 10px; background: #fffdf6; border: 2px solid #d9cfb5; border-radius: 10px; min-height: calc(var(--obj) + 20px); justify-self: start; }
.lu-cell { width: var(--obj); height: var(--obj); display: grid; place-items: center; border-radius: 8px; }
.lu-cell .obj { width: 100%; height: 100%; }
.lu-cell .obj.dot { width: 66%; height: 66%; margin: 0; }
.lu-box { background: var(--box-bg); }
.lu-extra { background: var(--bad-bg); box-shadow: inset 0 0 0 2px #e6a593; }
.split-eqs { display: flex; gap: 56px; justify-content: center; flex-wrap: wrap; }
.split-eq { font-size: clamp(34px, 4.4vw, 56px); }
.split-row { display: flex; align-items: center; gap: 12px; justify-content: center; }
.split-book .page { min-width: 220px; }
.obj-btn { border: 0; background: none; padding: 0; border-radius: 8px; }
.obj-btn:hover { background: var(--accent-soft); }
.ledger-panel { width: 380px; flex: none; overflow: auto; align-self: stretch; }
.ledger { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ledger li { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.ledger li.picked { border-color: var(--accent); background: var(--accent-soft); }
.ledger-pick input { width: 18px; height: 18px; }
.ledger-eqs { display: flex; gap: 16px; font-size: 21px; flex-wrap: wrap; }
.ledger-note { grid-column: 2 / 4; grid-row: 2; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 14px; }
@media (max-width: 1100px) { .story-main { flex-direction: column; } .ledger-panel { width: auto; } }

/* ================= Talk (CGI) ================= */
.talk-grid { flex: 1 1 0; display: grid; grid-template-columns: 1.15fr 1fr .95fr; gap: 14px; min-height: 0; }
.talk-grid > .panel { overflow: auto; min-height: 0; }
.answer-entry { display: flex; gap: 8px; margin-bottom: 12px; }
.answer-form { display: flex; gap: 8px; flex: 1; }
.answer-input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 0 12px; font: 600 19px var(--font-num); }
.answers-hidden { text-align: center; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.answers-hidden p { margin: 0 0 8px; color: var(--ink-2); font-size: 17px; }
.big-count { font: 800 76px var(--font-num); line-height: 1; }
.answer-bars { display: flex; flex-direction: column; gap: 10px; }
.answer-row { display: grid; grid-template-columns: minmax(64px, auto) 1fr 44px auto; align-items: center; gap: 10px; }
.answer-val { font: 800 34px var(--font-num); text-align: right; }
.answer-bar-wrap { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.answer-bar { height: 30px; border-radius: 6px; background: #5b6b8c; transition: width .3s; }
.answer-reading { font-size: 13px; color: var(--ink-2); line-height: 1.25; }
.answer-n { font: 800 26px var(--font-num); }
.answer-tools { display: flex; align-items: center; gap: 0; }
.answer-tools .icon-btn { width: 32px; height: 32px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.strategy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.strategy { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; align-items: start; }
.strategy-order { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.strategy-body { cursor: pointer; min-width: 0; }
.strategy-body:hover p { text-decoration: underline; text-decoration-color: var(--line-strong); }
.strategy-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.strategy-body p { margin: 4px 0 0; font-size: 17px; }
.strategy-thumb { max-width: 160px; max-height: 90px; border-radius: 6px; margin-top: 6px; display: block; }
.strategy-tools { display: grid; grid-template-columns: repeat(2, 32px); }
.strategy-tools .icon-btn { width: 32px; height: 32px; }
.strategy-tools .icon-btn:disabled { opacity: .3; }
.kind-tag { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.kind-both { background: var(--accent-soft); color: var(--accent); }
.kind-relational { background: var(--good-bg); color: var(--good); }
.kind-answer-here { background: var(--box-bg); color: var(--box); }
.field { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; font-size: 16px; background: var(--surface); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.field { resize: vertical; }
.field-label { display: block; font-weight: 700; margin: 12px 0 5px; font-size: 14px; }
.photo-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.photo-preview img { max-height: 80px; border-radius: 6px; display: block; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.spotlight { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.spot-eq { font-size: 40px; }
.spot-said { font-size: 30px; line-height: 1.3; margin: 0; }
.spot-photo { max-width: 100%; max-height: 55vh; border-radius: 10px; }
.claim-form { display: flex; gap: 8px; margin-bottom: 10px; }
.claim-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.claim { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); border-left: 5px solid #8a93a8; }
.claim.status-1 { border-left-color: var(--good); }
.claim.status-2 { border-left-color: var(--bad); }
.claim-text { margin: 0 0 6px; font-size: 18px; font-weight: 650; }
.claim-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.claim-meta .spacer { flex: 1; }
.claim-status { border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; padding: 3px 10px; }
.claim-tested { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.claim-eq { font-size: 14px; color: var(--ink-2); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.ladder-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ladder-item { text-align: left; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-size: 26px; }
.ladder-item:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 1100px) { .talk-grid { grid-template-columns: 1fr; } }

/* ================= Practice (McNeil) ================= */
.practice-layout { flex: 1 1 0; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; min-height: 0; }
.practice-layout.one-col { grid-template-columns: minmax(0, 1fr); }
.practice-settings { overflow: auto; }
.practice-settings h3 { font-size: 17px; }
.practice-main { overflow: auto; min-height: 0; }
.set-formats { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.set-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 6px 0; }
.set-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.set-check > span { display: flex; flex-direction: column; line-height: 1.25; }
.set-check small { color: var(--muted); font-size: 15px; }
.set-row { display: flex; gap: 12px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.set-num { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.num-field { width: 76px; padding: 6px 8px; }
.set-label { font-weight: 600; font-size: 14px; }
.set-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sheet-wrap { display: flex; justify-content: center; padding: 2px 0 24px; }
.sheet { width: 8.5in; min-height: 11in; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); padding: .55in .6in; color: #111; flex: none; }
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid #111; padding-bottom: 8px; }
.ws-head h1 { font-size: 22px; margin: 0; }
.ws-name { font-size: 15px; white-space: nowrap; }
.ws-line { display: inline-block; width: 170px; border-bottom: 1.5px solid #111; margin: 0 10px 0 4px; }
.ws-line.short { width: 90px; margin-right: 0; }
.ws-banner { font-size: 15px; margin: 12px 0 22px; }
.ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 30px; }
.ws-item { display: flex; align-items: center; gap: 10px; font: 700 26px var(--font-num); }
.ws-n { font: 600 15px var(--font); color: #555; width: 28px; flex: none; }
.ws-eq { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ws-box { display: inline-block; width: 54px; height: 44px; border: 2.5px solid #111; border-radius: 6px; text-align: center; line-height: 40px; }
.ws-box.ans { color: #a85f00; }
.ws-equals { position: relative; display: inline-flex; justify-content: center; padding: 0 2px; }
.ws-equals small { position: absolute; top: calc(100% + 9px); font: 600 9.5px var(--font); color: #555; white-space: nowrap; }
.ws-group { grid-column: 1 / -1; border: 2px dashed #9a9a9a; border-radius: 12px; padding: 14px 16px 10px; }
.ws-group-items { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ws-notice { margin: 16px 0 0; font-size: 14px; color: #444; }
.ws-notice::after { content: ""; display: inline-block; width: 60%; border-bottom: 1.5px solid #999; margin-left: 8px; }
.ws-tf { display: inline-flex; gap: 6px; margin-left: 8px; }
.ws-circle { font: 600 13px var(--font); border: 1.5px solid #333; border-radius: 999px; padding: 2px 9px; }
.ws-circle.on { background: #111; color: #fff; }
.ws-foot { margin-top: 24px; font-weight: 700; color: #a85f00; }
.warm-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 16px; min-height: 100%; }
.warm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; gap: 12px; min-height: 150px; }
.warm-eq { font-size: clamp(34px, min(4.4vw, 7vh), 68px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.warm-tf { font-size: 22px; color: var(--muted); font-weight: 700; font-family: var(--font); }
.warm-tf.show { color: var(--ink); }
.warm-tools { display: flex; gap: 8px; align-items: center; }
.check { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.check h3 { margin: 0; font-size: 19px; }
.check-input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; }
.check-out { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.check-row { width: 100%; display: grid; grid-template-columns: 270px 1fr 90px; gap: 12px; align-items: center; }
.check-label { display: flex; flex-direction: column; }
.check-label small { color: var(--muted); }
.check-bar-wrap { background: var(--surface-2); border-radius: 6px; height: 24px; overflow: hidden; }
.check-bar { height: 100%; background: #5b6b8c; }
.check-row.last .check-bar { background: #d08f00; }
.check-n { font-weight: 700; }
.check-verdict { width: 100%; font-size: 16px; padding: 10px 12px; border-radius: 10px; background: var(--good-bg); margin: 4px 0; }
.check-verdict.warn { background: var(--warn-bg); }
@media print {
  .sheet { box-shadow: none; border: 0; width: auto; min-height: 0; padding: 0; }
  .page-break { break-before: page; }
}
@media (max-width: 1000px) { .practice-layout { grid-template-columns: 1fr; } .sheet { transform-origin: top left; } }

/* ================= Teach (Direct Instruction) ================= */
.ex-strip { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ex-strip .label { color: var(--muted); font-weight: 600; font-size: 14px; margin-right: 4px; }
.ex-strip .spacer { flex: 1; }
.ex-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px 0 4px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; }
.ex-chip:hover { border-color: var(--line-strong); }
.ex-num { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.ex-chip.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ex-chip.current .ex-num { background: var(--accent); color: #fff; }
.ex-chip.firm .ex-num { background: var(--good); color: #fff; }
.ex-chip.error .ex-num { background: var(--bad); color: #fff; }
.ex-chip.retest { border-style: dashed; }
.ex-chip.target { border-width: 2.5px; }
.teach-main { flex: 1 1 0; display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 16px; min-height: 0; }
.teach-left { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.teach-board { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 0; }
.teach-note { margin: 0; color: var(--muted); font-weight: 600; min-height: 1.3em; }
.teach-reps { display: flex; gap: 36px; align-items: center; justify-content: center; flex-wrap: wrap; }
.rep-circles { display: flex; align-items: center; gap: 16px; position: relative; padding-bottom: 6px; }
.circle-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.circle { width: clamp(150px, 24vh, 200px); height: clamp(150px, 24vh, 200px); border-radius: 50%; border: 4px solid var(--ink-2); display: grid; place-items: center; background: var(--surface); padding: 22px; }
.circle-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.marks { display: inline-flex; flex-wrap: wrap; max-width: 120px; gap: 4px; align-items: center; justify-content: center; }
.mark { width: 5px; height: 26px; background: var(--ink); border-radius: 3px; }
.mark-gap { width: 5px; }
.box-marks .mark { background: var(--box); }
.circ-op { font: 800 24px var(--font-num); color: var(--ink-2); }
.circ-box { min-width: 44px; min-height: 44px; border: 3px dashed var(--box-line); border-radius: 8px; display: grid; place-items: center; padding: 5px; background: #fffaf0; }
.circ-box.filled { background: var(--box-bg); border-style: solid; }
.circ-q { font: 800 22px var(--font-num); color: var(--box); }
.circ-num { font: 800 32px var(--font-num); }
.circle-cap { font: 800 28px var(--font-num); color: var(--accent); min-height: 34px; }
.circ-eq { font: 800 56px var(--font-num); margin-bottom: 34px; }
.circ-verdict { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); font-weight: 800; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.circ-verdict.good { background: var(--good-bg); color: var(--good); }
.circ-verdict.bad { background: var(--bad-bg); color: var(--bad); }
.rep-family { display: flex; flex-direction: column; gap: 16px; }
.family { display: flex; align-items: center; gap: 10px; }
.fam-label { font-weight: 700; color: var(--muted); width: 48px; }
.fam-row { display: flex; align-items: center; gap: 10px; }
.fam-parts { display: flex; gap: 16px; }
.fam-n { font: 800 40px var(--font-num); min-width: 1em; text-align: center; line-height: 1.15; }
.fam-n.boxed { border: 3px dashed var(--box-line); border-radius: 8px; padding: 0 10px; color: var(--box); background: #fffaf0; }
.fam-n.boxed.filled { border-style: solid; background: var(--box-bg); }
.fam-n.whole { font-size: 50px; }
.fam-n.from-other { color: var(--accent); }
.fam-arrow { width: 104px; height: 24px; color: var(--ink-2); flex: none; }
.teach-script { overflow: auto; min-height: 0; }
.script-lines { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.script-lines li { font-size: 16px; line-height: 1.38; color: var(--muted); cursor: pointer; padding: 5px 7px; border-radius: 8px; }
.script-lines li.now { color: var(--ink); background: var(--accent-soft); font-weight: 600; }
.script-lines li.done { color: var(--ink-2); }
.script-lines li.muted-li { cursor: default; font-size: 14.5px; }
.script-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.teach-nav { display: flex; justify-content: center; gap: 10px; }
@media (max-width: 1100px) { .teach-main { grid-template-columns: 1fr; } }

/* ---------- no overlaps: workspaces grow to fit their content (the view scrolls) ---------- */
.eq-form { min-width: 0; }
.eq-form input { width: 0; }
.bal-main, .story-main, .teach-main, .teach-board { flex: 1 0 auto; }
@media (max-width: 1100px) {
  .talk-grid { flex: none; }
  .talk-grid > .panel { overflow: visible; }
  .books { grid-template-columns: 90px max-content 120px; justify-content: start; }
}
@media (max-width: 860px) {
  .bal-main { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  .bal-canvas { flex: none; height: clamp(200px, 46vw, 420px); min-height: 0; }
  .bal-panel { align-self: stretch; }
  .bal-options { flex-direction: row; }
  .bal-opt-wrap { flex: 1; min-width: 0; }
  .bal-opt { padding: 7px 10px; gap: 8px; font-size: 16px; }
}
@media (max-width: 1000px) {
  .practice-layout { flex: none; }
  .practice-main { overflow: visible; }
  .sheet-wrap { overflow-x: auto; justify-content: flex-start; }
}
@media (max-width: 700px) {
  .bal-options { flex-direction: column; }
  .books { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .book-label { flex-direction: row; gap: 8px; align-items: baseline; margin-top: 6px; }
  .hidden-count { display: none; }
  .story-body { --obj-scale: .62; }
  .page { min-width: 0; padding: 10px; }
  .books.lineup .lineup-row { max-width: 100%; overflow-x: auto; }
  .split-eqs { gap: 16px; }
  .split-book .page { min-width: 0; }
  .circle { width: 128px; height: 128px; padding: 14px; }
  .marks { max-width: 80px; gap: 3px; }
  .mark { height: 18px; width: 4px; }
  .circ-eq { font-size: 36px; margin-bottom: 26px; }
  .teach-reps { gap: 16px; }
  .rep-circles { gap: 8px; }
  .fam-n { font-size: 30px; }
  .fam-n.whole { font-size: 36px; }
  .sheet { zoom: .44; }
  .tf-row { grid-template-columns: minmax(0, 1fr); }
}
