/* Kitzur Yomi: the question formats' styles, shared by both versions of the app (styles.css and styles-next.css; decision 228).
   Loaded after them. The formats' code is formats.js. */

/* "Which are true" and "sort into bins": one row per item, its own answer buttons */
.sort{display:flex;flex-direction:column;gap:10px}
.sort-row{background:var(--surface);border:1.5px solid var(--line);border-radius:14px;padding:12px 12px 10px;display:flex;flex-direction:column;gap:10px;transition:border-color .15s}
.sr-t{font-size:16px;line-height:1.45;color:var(--ink)}
.sort-seg{display:flex;width:100%}
.sort-seg button{flex:1;padding:9px 8px;font-size:14.5px;white-space:normal;line-height:1.25}
.sort-seg button[aria-pressed="true"]{background:var(--sec-ink,#94660a);color:#fff}
.sort-row.right{border-color:var(--teal)}
.sort-row.wrong{border-color:#e2643c}
.sort-row.wrong .sort-seg button[aria-pressed="true"]{background:#e2643c}
.sort-row.right .sort-seg button[aria-pressed="true"]{background:var(--teal)}
.sort-seg button.is-ans:not([aria-pressed="true"]){box-shadow:inset 0 0 0 2px var(--teal);color:var(--teal-ink)}
.tf .sort-seg{max-width:260px}

/* formats added 2026-10-13: two-step, ladder, timeline, grid, build, act it out, find it in the text, figure */
.ts-step+.ts-step{margin-top:18px;padding-top:16px;border-top:1px dashed var(--line)}
.ts-q{display:flex;gap:10px;align-items:flex-start;font-size:15.5px;font-weight:500;line-height:1.4;margin:0 0 10px}
.ts-n{flex:none;width:24px;height:24px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
.ladder{display:flex;flex-direction:column;gap:10px}
.lad{display:flex;flex-direction:column;gap:0;position:relative;padding-inline-start:4px}
.lad button{display:flex;align-items:center;gap:12px;min-height:46px;padding:8px 10px;border-radius:10px;text-align:start;font-size:15px;line-height:1.3;color:var(--ink-2);position:relative}
.lad button+button::before{content:"";position:absolute;inset-inline-start:20px;top:-12px;height:24px;width:2px;background:var(--line-strong)}
.lad-dot{flex:none;width:20px;height:20px;border-radius:50%;border:2px solid var(--line-strong);background:var(--surface);position:relative;z-index:1}
.lad button[aria-pressed="true"]{background:var(--accent-soft);color:var(--ink)}
.lad button[aria-pressed="true"] .lad-dot{border-color:var(--accent);background:var(--accent);box-shadow:inset 0 0 0 3px var(--surface)}
.lad button.is-ans .lad-dot{border-color:var(--good);background:var(--good);box-shadow:inset 0 0 0 3px var(--surface)}
.lad-row.wrong .lad button[aria-pressed="true"] .lad-dot{border-color:var(--bad);background:var(--bad)}
.ladder.tl .lad{flex-direction:row;padding:6px 0 0}
.ladder.tl .lad::before{content:"";position:absolute;left:8%;right:8%;top:19px;height:3px;border-radius:2px;background:var(--line-strong)}
.ladder.tl .lad button{flex:1;flex-direction:column;justify-content:flex-start;text-align:center;gap:6px;font-size:13.5px;padding:4px 4px 8px}
.ladder.tl .lad button+button::before{display:none}
.gridq{overflow-x:auto;margin:0 -4px}
.gridq table{width:100%;border-collapse:separate;border-spacing:4px;table-layout:fixed}
.gridq th{font-size:12.5px;font-weight:600;color:var(--muted);text-align:center;padding:2px;line-height:1.25}
.gridq tr.g-case th{text-align:start;font-size:14.5px;font-weight:500;color:var(--ink);padding:10px 2px 0;line-height:1.35}
.gcell{width:100%;min-height:46px;border:1.5px dashed var(--line-strong);border-radius:10px;background:var(--surface);font-size:13px;font-weight:600;line-height:1.2;padding:4px}
.gcell.m0{border-style:solid;border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}
.gcell.m1{border-style:solid;border-color:var(--line-strong);background:var(--sunk);color:var(--ink-2)}
.gcell.right{box-shadow:0 0 0 2px var(--good)}
.gcell.wrong{box-shadow:0 0 0 2px var(--bad)}
.gans{display:block;font-size:11.5px;color:var(--good);text-align:center;margin-top:2px;font-weight:600}
.seq-line{min-height:56px;border:1.5px dashed var(--line-strong);border-radius:14px;padding:10px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:var(--sunk)}
.seq-line.tpl{display:block;line-height:2.4;font-size:16px;border-style:solid;background:var(--surface)}
.seq-line.trail{flex-direction:column;align-items:stretch}
.seq-empty{color:var(--muted);font-size:14px}
.seq-slot{display:inline-block;min-width:76px;height:34px;vertical-align:middle;border-bottom:2px solid var(--line-strong);margin:0 4px}
.seq-chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);font-size:15px;line-height:1.3;text-align:start}
.seq-chip:disabled{opacity:.35}
.seq-chip.placed{border-color:var(--accent);background:var(--accent-soft);opacity:1}
.seq-chip.placed.right{border-color:var(--good);background:var(--good-soft)}
.seq-chip.placed.wrong{border-color:var(--bad);background:var(--bad-soft)}
.seq-chip.movable{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.seq-chip.seq-float{position:fixed;z-index:60;margin:0;pointer-events:none;box-shadow:var(--shadow-lg);border:1.5px solid var(--accent);background:var(--surface);outline:none;transform-origin:center;cursor:grabbing;opacity:.97}
.seq-chip.seq-float.out{opacity:.55;border-style:dashed}
.seq-chip.seq-float .num{background:var(--accent-soft);color:var(--accent)}
.seq-chip.ghost{border:2px dashed var(--accent);background:transparent;color:transparent;opacity:1}
.seq-chip.ghost .num{color:var(--accent);background:var(--accent-soft)}
.seq-chip.lifted{opacity:.3}
.seq-line.over{border-color:var(--accent)}
.seq-chip .grip{margin-inline-start:auto;color:var(--faint);display:flex}
.seq-chip .grip svg{width:18px;height:18px}
.seq-chip .num{flex:none;width:22px;height:22px;border-radius:7px;background:var(--surface);font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.seq-tray{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.seq-tray.acts{flex-direction:column}
.seq-tray.acts .seq-chip{width:100%}
.seq-tools{display:flex;gap:8px;margin-top:10px}
.seq-h{margin:10px 0 0}
.intext{font-family:var(--he);font-size:21px;line-height:2.05;text-align:right;padding:14px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.it-w{padding:1px 3px;border-radius:6px;border:1px solid transparent;font:inherit;color:inherit}
.it-w[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent)}
.it-w.ans{background:color-mix(in srgb,var(--good) 18%,transparent)}
.it-w.right{background:var(--good-soft);border-color:var(--good)}
.it-w.wrong{background:var(--bad-soft);border-color:var(--bad)}
.it-range{padding:2px 4px;border-radius:6px;border:1px solid var(--good);background:var(--good-soft);box-decoration-break:clone;-webkit-box-decoration-break:clone}.it-range.ans{background:color-mix(in srgb,var(--good) 18%,transparent);border-style:dashed}
.fig-step~.q-hint{margin-top:12px}
.fig-step+.fig-step{margin-top:18px;padding-top:16px;border-top:1px dashed var(--line)}
.fig{display:block;width:100%;max-width:300px;max-height:44vh;margin:4px auto 10px;overflow:visible}
.fig.fig-ill{max-height:30vh}
.fig.fig-compass{max-width:230px}.fig.fig-corner{max-width:260px}.fig.fig-finger{max-width:250px}.fig.fig-door{max-width:260px}.fig.fig-hand{max-width:250px}.fig.fig-hands{max-width:330px}
.fig-img{pointer-events:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .fig-img{filter:brightness(.86)}}
:root[data-theme="dark"] .fig-img{filter:brightness(.86)}
.fz{cursor:pointer;outline:none}
.fz path,.fz rect,.fz circle,.fz ellipse,.fz polygon{fill:transparent;stroke:none;vector-effect:non-scaling-stroke;transition:fill .12s,stroke .12s}
.fz.guide path,.fz.guide rect,.fz.guide circle,.fz.guide ellipse,.fz.guide polygon{stroke:var(--line-strong);stroke-width:1.5;stroke-dasharray:5 4}
.fig-guide path{fill:none;stroke:var(--muted);stroke-width:1.5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke;pointer-events:none}
.fz text{font-weight:600;fill:var(--muted);text-anchor:middle;dominant-baseline:central;pointer-events:none}
.fz.on path,.fz.on rect,.fz.on circle,.fz.on ellipse,.fz.on polygon{fill:color-mix(in srgb,var(--accent) 28%,transparent);stroke:var(--accent);stroke-width:2;stroke-dasharray:none}
.fz.on text{fill:var(--accent-ink)}
.fz.right path,.fz.right rect,.fz.right circle,.fz.right ellipse,.fz.right polygon{fill:color-mix(in srgb,var(--good) 30%,transparent);stroke:var(--good);stroke-width:2;stroke-dasharray:none}
.fz.wrong path,.fz.wrong rect,.fz.wrong circle,.fz.wrong ellipse,.fz.wrong polygon{fill:color-mix(in srgb,var(--bad) 30%,transparent);stroke:var(--bad);stroke-width:2;stroke-dasharray:none}
.fz.missed path,.fz.missed rect,.fz.missed circle,.fz.missed ellipse,.fz.missed polygon{fill:transparent;stroke:var(--good);stroke-width:2;stroke-dasharray:6 4}
.fz:focus-visible path,.fz:focus-visible rect{stroke:var(--accent);stroke-width:2.5}
.fig-cap{font-weight:500;fill:var(--muted);stroke:none;text-anchor:middle}
.fz-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.fz-chip{min-height:40px;padding:6px 12px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);font-size:13.5px}
.fz-chip.on,.fz-chip[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}
.fz-chip.right{border-color:var(--good);background:var(--good-soft)}
.fz-chip.wrong{border-color:var(--bad);background:var(--bad-soft)}
.fz-chip.missed{border-style:dashed;border-color:var(--good)}
.seq-tools .btn{min-height:38px;padding:6px 14px;font-size:13.5px;flex:none}

/* formats added 2026-10-18: story (find the mistakes), toggles (make it permitted), threshold (where does it change), place (prototype) */
.story{display:flex;flex-direction:column;gap:10px}
.st-scene{margin:0;font-size:15px;line-height:1.45;color:var(--ink-2);padding:10px 12px;border-radius:12px;background:var(--sunk)}
.st-lines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.st-line{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:start;padding:11px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);font-size:15.5px;line-height:1.4;color:var(--ink);transition:border-color .12s,background .12s}
.st-n{flex:none;width:24px;height:24px;margin-top:-1px;border-radius:50%;background:var(--sunk);color:var(--muted);font-size:12.5px;font-weight:600;display:flex;align-items:center;justify-content:center}
.st-n svg{width:14px;height:14px;stroke-width:3}
.st-t{flex:1;min-width:0}
.st-tag{display:flex;width:max-content;align-items:center;gap:3px;margin:0 0 4px;padding:1px 8px 1px 6px;border-radius:999px;font-size:11.5px;font-weight:600;letter-spacing:.2px}
.st-tag svg{width:11px;height:11px;stroke-width:3}
.st-tag.bad{background:var(--bad-soft);color:var(--bad)}
.st-tag.ok{background:var(--good-soft);color:var(--accent-ink)}
.st-line[aria-pressed="true"]{border-color:var(--bad);background:color-mix(in srgb,var(--bad-soft) 60%,var(--surface))}
.st-line[aria-pressed="true"] .st-n{background:var(--bad);color:var(--surface)}
.st-line.done{cursor:default}
.st-line.done.right{border-color:var(--good)}
.st-line.done.right .st-n{background:var(--good);color:var(--surface)}
.st-line.done.wrong{border-color:var(--bad);border-style:dashed}
.st-line.done.wrong .st-n{background:var(--bad);color:var(--surface)}
.st-fix{display:block;margin-top:6px;padding-top:6px;border-top:1px dashed var(--line);font-size:14px;color:var(--ink-2)}
.st-fix b{font-weight:600;color:var(--ink)}
.st-you{display:block;margin-top:4px;font-size:12.5px;font-weight:500;color:var(--bad)}
.st-h{margin:0}
.tg{display:flex;flex-direction:column;gap:12px}
.tg-case{margin:0;font-size:14.5px;line-height:1.4;color:var(--ink);padding:8px 10px;border-radius:12px;background:var(--sunk)}
.tg-goal{display:flex;gap:10px;align-items:baseline;margin:0;font-size:14.5px;line-height:1.35;font-weight:500}
.tg-k{flex:none;font-size:11.5px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:var(--accent-ink);background:var(--accent-soft);padding:2px 8px;border-radius:999px}
.tg-list{display:flex;flex-direction:column;gap:6px}
.tg-row{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;text-align:start;padding:8px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);font-size:14.5px;line-height:1.3;color:var(--ink)}
.tg-l{flex:1;min-width:0}
.tg-st{flex:none;width:28px;text-align:end;font-size:12.5px;font-weight:600;color:var(--muted)}
.tg-sw{flex:none;position:relative;width:46px;height:28px;border-radius:999px;background:var(--line-strong);transition:background .15s}
.tg-sw i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s}
.tg-row[aria-checked="true"]{border-color:var(--accent)}
.tg-row[aria-checked="true"] .tg-sw{background:var(--accent)}
.tg-row[aria-checked="true"] .tg-sw i{transform:translateX(18px)}
.tg-row[aria-checked="true"] .tg-st{color:var(--accent-ink)}
@media (prefers-reduced-motion:reduce){.tg-sw,.tg-sw i{transition:none}}
.tg-row.done{cursor:default}
.tg-row.done.right{border-color:var(--good);background:var(--good-soft)}
.tg-row.done.wrong{border-color:var(--bad);background:var(--bad-soft);border-style:dashed}
.tg-mk{flex:none;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--surface)}
.tg-mk svg{width:13px;height:13px;stroke-width:3}
.tg-row.right .tg-mk{background:var(--good)}
.tg-row.wrong .tg-mk{background:var(--bad)}
.tg-should{display:block;margin-top:3px;font-size:12.5px;font-weight:600;color:var(--bad)}
.tg-h{margin:0}
.th{padding:4px 0 0}
.th-ends{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;font-weight:600;line-height:1.3;color:var(--ink-2);margin-bottom:6px}
.th-ends span{max-width:48%}
.th-right{text-align:end}
.th-ends b{color:var(--muted);font-weight:600}
.th-track{position:relative;height:88px;padding-left:40px;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.th-rail{position:relative;height:100%}
.th-line{position:absolute;left:0;right:0;top:30px;height:4px;border-radius:2px;background:repeating-linear-gradient(90deg,var(--line-strong) 0 6px,transparent 6px 10px)}
.th-fill{position:absolute;left:0;top:29px;height:6px;border-radius:3px;background:var(--ink-2);transition:width .12s}
.th.unset .th-fill{display:none}
.th-mark{position:absolute;top:0;transform:translateX(-50%);width:44px;height:88px;display:flex;flex-direction:column;align-items:center;padding-top:22px;gap:12px}
.th-mark i{width:4px;height:20px;border-radius:2px;background:var(--line-strong)}
.th-mark span{font-size:13.5px;font-weight:500;line-height:1.2;color:var(--ink-2);text-align:center;width:52px}
.th-mark.on span,.th-mark[aria-pressed="true"] span{color:var(--ink);font-weight:600}
.th-mark.ans i,.th-mark.right i{background:var(--good)}
.th-mark.ans span,.th-mark.right span{color:var(--accent-ink);font-weight:700}
.th-mark.wrong span{color:var(--bad);text-decoration:line-through}
.th-knob{position:absolute;top:14px;width:36px;height:36px;margin-left:-18px;border-radius:50%;background:var(--surface);border:3px solid var(--accent);box-shadow:0 2px 6px rgba(0,0,0,.22);pointer-events:none;transition:left .12s}
.th-knob::after{content:"";position:absolute;inset:9px;border-radius:50%;background:var(--accent)}
.th.unset .th-knob{left:-22px!important;border-style:dashed;box-shadow:none}
.th.unset .th-knob::after{background:var(--line-strong)}
.th-knob.drag{transition:none;transform:scale(1.1)}
.th-knob.right{border-color:var(--good)}.th-knob.right::after{background:var(--good)}
.th-knob.wrong{border-color:var(--bad)}.th-knob.wrong::after{background:var(--bad)}
.th-knob:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.th.rtl .th-track{padding-left:0;padding-right:40px}
.th.rtl .th-fill{left:auto;right:0}
.th.rtl.unset .th-knob{left:calc(100% + 22px)!important}
.th-h{margin:6px 0 0}
.th-h b{color:var(--ink)}
.pl-goal{margin-bottom:10px}
.plan-wrap{display:flex;justify-content:center}
.plan{width:auto;max-width:100%;height:min(38vh,320px);display:block;touch-action:none;user-select:none;-webkit-user-select:none;border-radius:16px;background:var(--sunk)}
.pl-ring{fill:color-mix(in srgb,var(--accent) 6%,transparent);stroke:var(--muted);stroke-width:2;stroke-dasharray:8 7}
.pl-cap{font-size:17px;font-weight:600;fill:var(--muted);stroke:none;text-anchor:middle}
.pl-cap.pl-r{text-anchor:start}
.pl-center{fill:var(--ink-2);stroke:none}
.pl-arrow{fill:none;stroke:var(--ink-2);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.pl-spot{cursor:pointer;outline:none}
.pl-spot circle{fill:var(--surface);stroke:var(--muted);stroke-width:2;stroke-dasharray:5 4}
.pl-spot text{font-size:24px;font-weight:700;text-anchor:middle;dominant-baseline:central;stroke:none;pointer-events:none}
.pl-spot.on circle{stroke:var(--accent);stroke-dasharray:none}
.pl-spot.right circle,.pl-spot.ans circle{stroke:var(--good);stroke-width:3;stroke-dasharray:none;fill:var(--good-soft)}
.pl-spot.right text,.pl-spot.ans text{fill:var(--accent-ink)}
.pl-spot.wrong circle{stroke:var(--bad);stroke-width:3;stroke-dasharray:none;fill:var(--bad-soft)}
.pl-spot.wrong text{fill:var(--bad)}
.pl-spot:focus-visible circle{stroke:var(--accent);stroke-width:3}
.pl-start{fill:none;stroke:var(--line-strong);stroke-width:2;stroke-dasharray:4 4}
.pl-dot{cursor:grab;transition:transform .15s}
.pl-dot.drag{cursor:grabbing;transition:none}
.pl-dot circle{fill:var(--accent);stroke:var(--surface);stroke-width:4}
.pl-dot .pl-cap{fill:var(--accent-ink)}
.pl-dot .pl-arrow{stroke:var(--accent)}
.pl-h{margin:10px 0 0;text-align:center}

/* diagrams drawn in code: the same look as the picture files (grey outline, faint fill) */
:root{--fig-line:#7d838c;--fig-fill:#e9ebee}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--fig-line:#8a929c;--fig-fill:#262c34}}
:root[data-theme="dark"]{--fig-line:#8a929c;--fig-fill:#262c34}
.fig-art{pointer-events:none}
.fig-art .fa{fill:var(--fig-fill);stroke:var(--fig-line);stroke-width:5}
.fig-art .fa-open{fill:var(--surface);stroke:var(--fig-line);stroke-width:4}
.fig-art .fa-line{stroke:var(--fig-line);stroke-width:5}.fig-art .fa-hem{fill:none;stroke:var(--fig-line);stroke-width:3;stroke-dasharray:14 10}.fig-art .fa-ring{fill:none;stroke:var(--fig-line);stroke-width:4}.fig-art .fa-str{fill:none;stroke:var(--fig-line);stroke-width:4.5;stroke-linecap:round}.fig-art .fa-wind{stroke:var(--fig-line);stroke-width:2.4;stroke-linecap:round}
.fig-art .fa-floor{stroke:var(--fig-line);stroke-width:6;stroke-linecap:round}
.fig-art .fa-tick{stroke:var(--fig-line);stroke-width:3;stroke-dasharray:10 8}
.fig-art .fa-leaf{fill:var(--fig-fill);stroke:var(--fig-line);stroke-width:4;stroke-linejoin:round}
.fig.fig-chanukah{max-width:320px}.fig.fig-sukkah{max-width:340px}
.about p{margin:0}
.about p+p{margin-top:10px}
.about p b{color:var(--ink);font-weight:600}

/* number format with several labelled boxes (2026-10-21) */
.num-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:6px 0 4px}
.num-field{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface)}
.num-field span{font-size:14px;color:var(--ink-2);white-space:nowrap}
.num-field input{width:100%;min-width:0;font:inherit;font-size:18px;font-weight:600;border:0;border-bottom:2px solid var(--line-strong);background:transparent;color:var(--ink);padding:2px 4px;text-align:center}
.num-field input:focus{outline:none;border-bottom-color:var(--accent)}
.num-field.right{border-color:var(--good);background:var(--good-soft)}
.num-field.wrong{border-color:var(--bad);background:var(--bad-soft)}
.nf-ans{color:var(--good);font-size:15px;white-space:nowrap}

/* ladder: cases against the levels as columns (2026-10-23). Each row is a grid with the same columns, so they line up */
.ladq{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);overflow:hidden}
.lq-row{display:grid;grid-template-columns:48% repeat(var(--n),minmax(0,1fr));align-items:center}
.ladq[style*="--n:4"] .lq-row{grid-template-columns:40% repeat(4,minmax(0,1fr))}
.lq-row+.lq-row:not(.lq-head + .lq-row){border-top:1px solid var(--line)}
.lq-head{background:var(--sunk);align-items:end;border-bottom:1px solid var(--line)}
.lq-lv{padding:11px 4px 10px;font-size:12.5px;font-weight:600;line-height:1.25;color:var(--ink-2);text-align:center;overflow-wrap:break-word}
.lq-case{padding:12px 6px 12px 14px;font-size:15px;line-height:1.35;color:var(--ink)}
.lad-cell{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;border:0;background:transparent;cursor:pointer;padding:0}
.lad-cell .lad-dot{width:24px;height:24px}
.lad-cell[aria-pressed="true"] .lad-dot{border-color:var(--accent);background:var(--accent);box-shadow:inset 0 0 0 4px var(--surface)}
.lad-cell.is-ans .lad-dot{border-color:var(--good);background:var(--good);box-shadow:inset 0 0 0 4px var(--surface)}
.lq-row.wrong .lad-cell[aria-pressed="true"]:not(.is-ans) .lad-dot{border-color:var(--bad);background:var(--bad)}
.lq-row.right{background:var(--good-soft)}
.lq-row.wrong{background:var(--bad-soft)}
.lad-cell:focus-visible{outline:2px solid var(--accent);outline-offset:-4px;border-radius:10px}
/* long level names on a phone: the case runs across its row, the circles sit under the column names */
@media (max-width:599px){
  .ladq:not(.short) .lq-row,.ladq:not(.short)[style*="--n:4"] .lq-row{grid-template-columns:repeat(var(--n),minmax(0,1fr))}
  .ladq:not(.short) .lq-case{grid-column:1/-1;padding:12px 14px 0}
  .ladq:not(.short) .lq-head .lq-case{display:none}
  .ladq:not(.short) .lad-cell{min-height:48px}
}
