/* Popov Academy — content-factory/phystech-2026-27-math-round-2-v1 (Phystech 2026/27 math, qualifying round 2): student labs (loaded only on these pages); copied from the
   accepted Phystech 2025/26 final package (visuals/lab.css there, unchanged above the «Additions of the Phystech 2024/25 math qualifying package» line).
   Base styles shared by all labs; each lab may add visuals/labs/<kind>.css, which assets.mjs appends to this file.
   Colours are local variables. Dark values follow the site's own theme switch (html[data-design=v2] with
   data-theme=dark, or the system dark mode unless data-theme=light) and reuse the site tokens from
   redesign.css, as in the 2025 package; the global theme itself is not changed. */
.arch-lab{min-width:0;--arch-surface:#fff;--arch-ink:#1f2937;--arch-label:#203c58;--arch-muted:#5b6b82;--arch-field-line:#aebed1;--arch-soft-line:#d7e1ed;--arch-primary-bg:#244974;--arch-primary-ink:#fff;--arch-link:#244974;--arch-pressed-bg:#e6eefb;--arch-pressed-line:#244974;--arch-good:#047857;--arch-bad:#b91c1c;--arch-focus:#f59e0b;--arch-fig-line:#1f2937;--arch-grid:#c7d2e0;--arch-fill:#dbeafe;--arch-piece-a:#bfdbfe;--arch-piece-b:#fde68a;--arch-piece-c:#fecaca;--arch-piece-d:#bbf7d0;--arch-accent:#c2410c;--arch-water:#e0f2fe;--arch-ok-bg:#dcfce7;--arch-bad-bg:#fee2e2;--arch-knight:#1d4ed8;--arch-liar:#9f1239;--arch-clear:#e2e8f0}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab{--arch-surface:var(--play-stage);--arch-ink:var(--ink);--arch-label:var(--ink);--arch-muted:var(--ink-2);--arch-field-line:var(--ink-3);--arch-soft-line:var(--play-line);--arch-primary-bg:var(--accent);--arch-primary-ink:var(--on-ink);--arch-link:var(--accent-ink);--arch-pressed-bg:var(--accent-soft);--arch-pressed-line:var(--accent);--arch-good:var(--ok);--arch-bad:var(--bad);--arch-fig-line:#dbe4f0;--arch-grid:#4a5568;--arch-fill:#1e3a5f;--arch-piece-a:#1e40af;--arch-piece-b:#854d0e;--arch-piece-c:#9f1239;--arch-piece-d:#166534;--arch-accent:#fb923c;--arch-water:#0c2a3f;--arch-ok-bg:#14341f;--arch-bad-bg:#431818;--arch-knight:#93c5fd;--arch-liar:#fda4af;--arch-clear:#3f4654}}
:root[data-design="v2"][data-theme="dark"] .arch-lab{--arch-surface:var(--play-stage);--arch-ink:var(--ink);--arch-label:var(--ink);--arch-muted:var(--ink-2);--arch-field-line:var(--ink-3);--arch-soft-line:var(--play-line);--arch-primary-bg:var(--accent);--arch-primary-ink:var(--on-ink);--arch-link:var(--accent-ink);--arch-pressed-bg:var(--accent-soft);--arch-pressed-line:var(--accent);--arch-good:var(--ok);--arch-bad:var(--bad);--arch-fig-line:#dbe4f0;--arch-grid:#4a5568;--arch-fill:#1e3a5f;--arch-piece-a:#1e40af;--arch-piece-b:#854d0e;--arch-piece-c:#9f1239;--arch-piece-d:#166534;--arch-accent:#fb923c;--arch-water:#0c2a3f;--arch-ok-bg:#14341f;--arch-bad-bg:#431818;--arch-knight:#93c5fd;--arch-liar:#fda4af;--arch-clear:#3f4654}
.arch-try{margin:18px 0}
.arch-lab [data-arch-lab-body]{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
.arch-lab .arch-lab-fallback{color:var(--arch-muted);font-size:15px}
.arch-lab label,.arch-lab .arch-label{font-weight:600;color:var(--arch-label)}
.arch-lab .arch-help{font-size:14px;color:var(--arch-muted);margin:0}
.arch-lab .arch-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
.arch-lab input[type=text],.arch-lab input[type=number],.arch-lab select{font:inherit;font-size:18px;min-height:44px;padding:8px 12px;border:1px solid var(--arch-field-line);border-radius:12px;background:var(--arch-surface);color:var(--arch-ink);min-width:0}
.arch-lab input[type=number]{width:88px}
.arch-lab input[type=range]{flex:1 1 180px;min-width:0;min-height:44px;accent-color:var(--arch-primary-bg)}
.arch-lab button{font:inherit;font-size:16px;min-height:44px;min-width:44px;padding:10px 16px;border-radius:999px;line-height:1.4;max-width:100%;white-space:normal;cursor:pointer}
.arch-lab .arch-primary{background:var(--arch-primary-bg);color:var(--arch-primary-ink);border:1px solid var(--arch-primary-bg)}
.arch-lab .arch-secondary{background:var(--arch-surface);color:var(--arch-link);border:1px solid var(--arch-field-line)}
.arch-lab button[aria-disabled=true]{opacity:.45;cursor:default}
.arch-lab button:focus-visible,.arch-lab input:focus-visible,.arch-lab select:focus-visible,.arch-lab [tabindex]:focus-visible{outline:3px solid var(--arch-focus);outline-offset:2px}
.arch-lab .arch-actions{display:flex;flex-wrap:wrap;gap:8px}
.arch-lab .arch-toggle{display:flex;flex-wrap:wrap;gap:6px}
.arch-lab .arch-toggle button{background:var(--arch-surface);color:var(--arch-link);border:1px solid var(--arch-field-line)}
.arch-lab .arch-toggle button[aria-pressed=true]{background:var(--arch-pressed-bg);border-color:var(--arch-pressed-line);font-weight:600}
.arch-lab .arch-result{background:var(--arch-surface);color:var(--arch-ink);border:1px solid var(--arch-soft-line);border-radius:14px;padding:14px 16px;line-height:1.55;min-width:0;overflow-wrap:anywhere}
.arch-lab .arch-result:empty{display:none}
.arch-lab :is(button,input,select){scroll-margin-block:120px}
.arch-lab .arch-result p{margin:6px 0}
.arch-lab .arch-checks{list-style:none;padding:0;margin:6px 0;display:grid;gap:6px}
.arch-lab .arch-checks li{display:flex;gap:8px;align-items:flex-start}
.arch-lab .arch-pass::before{content:'✓';color:var(--arch-good);font-weight:700;flex-shrink:0;width:1.2em}
.arch-lab .arch-fail::before{content:'×';color:var(--arch-bad);font-weight:700;flex-shrink:0;width:1.2em}
.arch-lab .arch-good{color:var(--arch-good);font-weight:600}
.arch-lab .arch-bad{color:var(--arch-bad);font-weight:600}
.arch-lab .arch-sub{display:grid;gap:8px;border-top:1px solid var(--arch-soft-line);padding-top:12px}
.arch-lab .arch-stage{background:var(--arch-surface);border:1px solid var(--arch-soft-line);border-radius:8px;padding:8px;min-width:0}
.arch-lab .arch-stage svg{display:block;width:100%;height:auto;max-height:70vh;touch-action:manipulation}
.arch-lab svg text{fill:var(--arch-ink);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.arch-lab .arch-readouts{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;font-variant-numeric:tabular-nums}
.arch-lab .arch-readouts div{display:flex;gap:6px;align-items:baseline}
.arch-lab .arch-readouts dt{color:var(--arch-muted);font-size:14px}
.arch-lab .arch-readouts dd{margin:0;font-weight:600;color:var(--arch-ink);white-space:nowrap;overflow-wrap:normal}
.arch-lab .arch-table-wrap{overflow-x:auto;max-width:100%}
.arch-lab table.arch-table{border-collapse:collapse;font-variant-numeric:tabular-nums}
.arch-lab table.arch-table th,.arch-lab table.arch-table td{border:1px solid var(--arch-soft-line);padding:4px 8px;text-align:center;color:var(--arch-ink)}
.arch-lab table.arch-table th{color:var(--arch-label);font-weight:600}
.arch-lab .arch-chip{display:inline-flex;align-items:center;justify-content:center;min-width:2.2em;padding:2px 8px;border-radius:999px;border:1px solid var(--arch-soft-line);font-weight:600}
@media(max-width:480px){.arch-lab .arch-row .arch-primary{flex:1 1 100%}.arch-lab button{padding:8px 10px}}
/* shared: play button keeps its width next to a time slider, also on phones */
.arch-lab .arch-timeline{flex-wrap:nowrap}
.arch-lab .arch-timeline .arch-play{flex:0 0 auto;min-width:96px}
/* Inside the «Исследовать» disclosure the lab already has a frame: on phones drop the second one so models keep their width. */
@media (max-width:560px){.lesson-disclosure .arch-lab{padding:0;border:0;background:none;box-shadow:none}.lesson-disclosure .arch-lab .arch-stage{padding:4px}}
/* Phones: «Крупные клетки» (ui.mjs zoomable). Cells keep at least 44 px and the board scrolls sideways in its frame;
   the board geometry is unchanged, only its scale. */
.arch-lab .arch-zoom{min-width:0}
.arch-lab .arch-zoom-tools{margin-bottom:8px}
.arch-lab .arch-zoom-hint{margin:0 0 8px;font-weight:600;color:var(--arch-label)}
.arch-lab .arch-zoom-probe{height:0}
.arch-lab .arch-zoom-scroll{overflow-x:auto;overscroll-behavior-x:contain;padding:4px;min-width:0}
/* shared extras for this package: cell boards built from buttons, a status line that is never hidden under the
   sticky header after a programmatic scroll, and a compact step list */
.arch-lab .arch-board{display:grid;gap:0;justify-content:center;margin:auto}
.arch-lab .arch-cell{aspect-ratio:1;min-width:0;min-height:0;width:100%;padding:0;border-radius:0;background:var(--arch-surface);color:var(--arch-ink);border:1px solid var(--arch-grid);outline-offset:-3px;font-variant-numeric:tabular-nums}
.arch-lab .arch-result{scroll-margin-top:96px;scroll-margin-bottom:96px}
.arch-lab .arch-log{margin:0;padding-left:1.4em;display:grid;gap:4px;font-variant-numeric:tabular-nums}
.arch-lab .arch-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;padding:0;list-style:none;font-size:14px;color:var(--arch-ink)}
.arch-lab .arch-legend li{display:flex;align-items:center;gap:6px}

/* Same page presentation as the final 2023–2024 edition on main (GPT polish of 18.10.2026): the shared research
   renderer follows the current site on these pages only. Diagrams keep their light paper; controls and readouts
   follow the selected theme. */
[data-problem-id^="phystech-2026-2027-math-"] .cf-figure figcaption,
[data-problem-id^="phystech-2026-2027-math-"] .lesson-source{color:var(--ink-2)}
[data-problem-id^="phystech-2026-2027-math-"] .lesson-source summary{color:var(--ink)}
[data-problem-id^="phystech-2026-2027-math-"] :is(button[data-cf-zoom],button[data-cf-scene-zoom]){color:var(--ink);background:var(--play-stage);border-color:var(--ink-3);border-radius:999px;min-height:44px;padding:10px 16px;margin-top:12px;max-width:100%;line-height:1.4}
[data-problem-id^="phystech-2026-2027-math-"] .interactive-actions button{color:var(--ink);background:var(--play-stage);border-color:var(--ink-3);font-size:16px}
[data-problem-id^="phystech-2026-2027-math-"] .interactive-actions button[data-action=play]{color:var(--on-ink);background:var(--ink);border-color:var(--ink)}
[data-problem-id^="phystech-2026-2027-math-"] .interactive-range-row{grid-template-columns:minmax(60px,1fr) 88px}
[data-problem-id^="phystech-2026-2027-math-"] .cf-number{background:var(--play-stage);color:var(--ink);border-color:var(--ink-3);border-radius:12px;min-height:44px;height:auto;padding:8px 6px;font-size:18px;font-variant-numeric:tabular-nums}
[data-problem-id^="phystech-2026-2027-math-"] .interactive-range-row input[type=range]{min-height:44px;accent-color:var(--accent)}
[data-problem-id^="phystech-2026-2027-math-"] .interactive-results>div{background:var(--play-stage);border-color:var(--play-line);border-radius:14px;padding:14px 16px;font-size:16px}
[data-problem-id^="phystech-2026-2027-math-"] .interactive-results :is(div,span,strong){color:var(--ink)}
[data-problem-id^="phystech-2026-2027-math-"] .learning-interactive :is(button,input){scroll-margin-block:120px}
/* Keep diagrams readable as diagrams, without the inherited white text outline. */
[data-problem-id^="phystech-2026-2027-math-"] :is(.cf-figure-svg,.cf-zoom-content) svg text{stroke:none;paint-order:normal}
[data-problem-id^="phystech-2026-2027-math-"] .cf-figure figcaption button[data-cf-zoom]{display:block;margin:14px auto 0}
[data-problem-id^="phystech-2026-2027-math-"] .arch-model-entry{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:20px 24px;margin:24px 0;border:1px solid var(--play-line);border-radius:var(--r-lg);background:var(--play-bg);color:var(--ink)}
[data-problem-id^="phystech-2026-2027-math-"] .arch-model-entry>div{flex:1 1 240px;min-width:0}
[data-problem-id^="phystech-2026-2027-math-"] .arch-model-entry strong{font-size:17px}
[data-problem-id^="phystech-2026-2027-math-"] .arch-model-entry p{margin:5px 0 0;color:var(--ink-2);font-size:16px;line-height:1.5}
[data-problem-id^="phystech-2026-2027-math-"] .arch-model-entry a{display:inline-flex;gap:12px;align-items:center;min-height:44px;padding:10px 16px;border:1px solid var(--ink-3);border-radius:999px;background:var(--play-stage);color:var(--ink);font:600 16px/1.4 var(--font);text-decoration:none}
[data-problem-id^="phystech-2026-2027-math-"] .arch-model-entry a:hover{border-color:var(--accent);color:var(--accent)}
[data-problem-id^="phystech-2026-2027-math-"] .arch-model-entry a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:480px){[data-problem-id^="phystech-2026-2027-math-"] .arch-model-entry{padding:16px}[data-problem-id^="phystech-2026-2027-math-"] .arch-model-entry a{width:100%;justify-content:space-between}}

/* ===== Physics controls of this package (visuals/phys.mjs): slider + exact input + large «−»/«+» ===== */
.arch-lab .phx-controls{display:grid;gap:12px;min-width:0}
.arch-lab .phx-params{display:grid;gap:12px;min-width:0}
.arch-lab .phx-param{display:grid;gap:2px;min-width:0;padding:6px 10px;border:1px solid var(--arch-soft-line);border-radius:14px;background:var(--arch-surface)}
.arch-lab .phx-param-label{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.arch-lab .phx-param-name{font-weight:600;color:var(--arch-label)}
.arch-lab .phx-param-bounds{font-weight:400;font-size:13px;color:var(--arch-muted)}
.arch-lab .phx-param .arch-help{font-size:13px}
.arch-lab .phx-param-row{display:grid;grid-template-columns:48px minmax(0,1fr) 48px var(--phx-num-w,84px);gap:8px;align-items:center;min-width:0}
.arch-lab .phx-param-row input[type=range]{width:100%;margin:0}
.arch-lab .phx-step{min-width:48px;min-height:48px;padding:0;font-size:24px;font-weight:600;line-height:1;border-radius:12px}
.arch-lab input.phx-num{width:100%;font-size:18px;min-height:48px;padding:8px 10px;text-align:right;font-variant-numeric:tabular-nums}
.arch-lab .phx-param-msg{margin:0;font-size:14px;color:var(--arch-bad);min-height:0}
.arch-lab .phx-param-msg:empty{display:none}
@media (max-width:420px){
 .arch-lab .phx-param-row{grid-template-columns:48px minmax(0,1fr) 48px;grid-template-areas:"range range range" "minus num plus"}
 .arch-lab .phx-param-row input[type=range]{grid-area:range}
 .arch-lab .phx-param-row .phx-step:first-child{grid-area:minus}
 .arch-lab .phx-param-row .phx-step:nth-child(3){grid-area:plus}
 .arch-lab .phx-param-row input.phx-num{grid-area:num}
}
.arch-lab .phx-presets{display:grid;gap:6px}
.arch-lab .phx-presets-title{margin:0;font-weight:600;color:var(--arch-label)}
.arch-lab .phx-preset[aria-pressed=true]{background:var(--arch-pressed-bg);border-color:var(--arch-pressed-line);font-weight:600}
.arch-lab .phx-preset-state{margin:0;font-size:14px;color:var(--arch-muted)}
.arch-lab .phx-readouts dd.phx-secret{color:var(--arch-muted)}
.arch-lab .phx-time{font-variant-numeric:tabular-nums;font-weight:600;min-width:9em;color:var(--arch-ink)}
.arch-lab .phx-clock{display:grid;gap:6px}
.arch-lab .phx-clock input[type=range]{flex:1 1 160px}
.arch-lab .phx-svg{display:block;width:100%;height:auto}
.arch-lab .phx-stage{padding:4px}
.arch-lab .phx-stage-pair{display:grid;gap:10px;grid-template-columns:minmax(0,1fr)}
@media (min-width:900px){.arch-lab .phx-stage-pair.phx-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.arch-lab .phx-choice{display:flex;flex-wrap:wrap;gap:8px}
.arch-lab .phx-note{margin:0;font-size:14px;color:var(--arch-muted)}
/* SVG: theme-aware strokes and fills */
.arch-lab .phx-svg{--phx-a:#1d4ed8;--phx-b:#c2410c;--phx-c:#047857;--phx-d:#7c3aed;--phx-water:#dbeafe;--phx-body:#e2e8f0;--phx-paper:#ffffff}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .phx-svg{--phx-a:#93c5fd;--phx-b:#fdba74;--phx-c:#6ee7b7;--phx-d:#c4b5fd;--phx-water:#0c2a3f;--phx-body:#334155;--phx-paper:transparent}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .phx-svg{--phx-a:#93c5fd;--phx-b:#fdba74;--phx-c:#6ee7b7;--phx-d:#c4b5fd;--phx-water:#0c2a3f;--phx-body:#334155;--phx-paper:transparent}
.arch-lab .phx-svg .phx-line{stroke:var(--arch-fig-line);stroke-width:2;fill:none}
.arch-lab .phx-svg .phx-thin{stroke:var(--arch-fig-line);stroke-width:1;fill:none}
.arch-lab .phx-svg .phx-dash{stroke:var(--arch-muted);stroke-width:1.5;fill:none;stroke-dasharray:5 4}
.arch-lab .phx-svg .phx-body{fill:var(--phx-body);stroke:var(--arch-fig-line);stroke-width:2}
.arch-lab .phx-svg .phx-body-a{fill:var(--phx-a);stroke:var(--arch-fig-line);stroke-width:1.5}
.arch-lab .phx-svg .phx-body-b{fill:var(--phx-b);stroke:var(--arch-fig-line);stroke-width:1.5}
.arch-lab .phx-svg .phx-water{fill:var(--phx-water);stroke:none}
.arch-lab .phx-svg .phx-ground{stroke:var(--arch-fig-line);stroke-width:2.5}
.arch-lab .phx-svg .phx-hatch{stroke:var(--arch-fig-line);stroke-width:1.2}
.arch-lab .phx-svg .phx-grid{stroke:var(--arch-grid);stroke-width:1}
.arch-lab .phx-svg .phx-axis{stroke:var(--arch-fig-line);stroke-width:1.5}
.arch-lab .phx-svg .phx-tick{font-size:12px;fill:var(--arch-muted)}
.arch-lab .phx-svg .phx-axis-label{font-size:13px;font-weight:600}
.arch-lab .phx-svg .phx-text{font-size:15px}
.arch-lab .phx-svg .phx-small{font-size:12.5px}
.arch-lab .phx-svg .phx-big{font-size:18px;font-weight:600}
.arch-lab .phx-svg .phx-curve{fill:none;stroke:var(--phx-a);stroke-width:2.5}
.arch-lab .phx-svg .phx-curve-b{fill:none;stroke:var(--phx-b);stroke-width:2.5}
.arch-lab .phx-svg .phx-curve-c{fill:none;stroke:var(--phx-c);stroke-width:2.5}
.arch-lab .phx-svg .phx-curve-d{fill:none;stroke:var(--phx-d);stroke-width:2.5}
.arch-lab .phx-svg .phx-ghost{fill:none;stroke:var(--arch-muted);stroke-width:1.5;stroke-dasharray:3 4}
.arch-lab .phx-svg .phx-arrow .phx-arrow-shaft{stroke:var(--arch-accent);stroke-width:2.5}
.arch-lab .phx-svg .phx-arrow .phx-arrow-head{fill:var(--arch-accent);stroke:none}
.arch-lab .phx-svg .phx-arrow-a .phx-arrow-shaft{stroke:var(--phx-a);stroke-width:2.5}
.arch-lab .phx-svg .phx-arrow-a .phx-arrow-head{fill:var(--phx-a);stroke:none}
.arch-lab .phx-svg .phx-arrow-b .phx-arrow-shaft{stroke:var(--phx-b);stroke-width:2.5}
.arch-lab .phx-svg .phx-arrow-b .phx-arrow-head{fill:var(--phx-b);stroke:none}
.arch-lab .phx-svg .phx-arrow-c .phx-arrow-shaft{stroke:var(--phx-c);stroke-width:2.5}
.arch-lab .phx-svg .phx-arrow-c .phx-arrow-head{fill:var(--phx-c);stroke:none}
.arch-lab .phx-svg .phx-arrow-ink .phx-arrow-shaft{stroke:var(--arch-fig-line);stroke-width:1.6}
.arch-lab .phx-svg .phx-arrow-ink .phx-arrow-head{fill:var(--arch-fig-line);stroke:none}
.arch-lab .phx-svg .phx-dot{fill:var(--arch-fig-line);stroke:none}
.arch-lab .phx-svg .phx-dot-a{fill:var(--phx-a);stroke:var(--arch-surface);stroke-width:1.5}
.arch-lab .phx-svg .phx-dot-b{fill:var(--phx-b);stroke:var(--arch-surface);stroke-width:1.5}
.arch-lab .phx-svg .phx-dot-c{fill:var(--phx-c);stroke:var(--arch-surface);stroke-width:1.5}
.arch-lab .phx-svg .phx-fill-a{fill:var(--phx-a);fill-opacity:.18;stroke:var(--phx-a);stroke-width:1.5}
.arch-lab .phx-svg .phx-fill-b{fill:var(--phx-b);fill-opacity:.18;stroke:var(--phx-b);stroke-width:1.5}
.arch-lab .phx-svg .phx-fill-c{fill:var(--phx-c);fill-opacity:.18;stroke:var(--phx-c);stroke-width:1.5}
.arch-lab .phx-svg .phx-fill-d{fill:var(--phx-d);fill-opacity:.18;stroke:var(--phx-d);stroke-width:1.5}
.arch-lab .phx-svg .phx-wire{stroke:var(--arch-fig-line);stroke-width:2.5;fill:none;stroke-linecap:round}
.arch-lab .phx-svg .phx-hot{stroke:var(--phx-b);stroke-width:4;fill:none;stroke-linecap:round}
.arch-lab .phx-svg .phx-cold{stroke:var(--phx-a);stroke-width:4;fill:none;stroke-linecap:round}
.arch-lab .phx-svg .phx-text-a{fill:var(--phx-a);font-weight:600}
.arch-lab .phx-svg .phx-text-b{fill:var(--phx-b);font-weight:600}
.arch-lab .phx-svg .phx-text-c{fill:var(--phx-c);font-weight:600}
.arch-lab .phx-svg text{paint-order:stroke;stroke:var(--arch-surface);stroke-width:3px;stroke-linejoin:round}
.arch-lab .phx-svg .phx-tick,.arch-lab .phx-svg .phx-nohalo{stroke:none}
.arch-lab .phx-drag{cursor:grab;touch-action:none}
.arch-lab .phx-handle{fill:var(--phx-b);fill-opacity:.25;stroke:var(--phx-b);stroke-width:2}
.arch-lab .phx-handle:focus-visible{outline:none;stroke:var(--arch-focus);stroke-width:4}
/* Readouts as a two-column table: long values wrap instead of running off a phone screen. */
.arch-lab .phx-readouts{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:6px 12px;align-items:baseline}
.arch-lab .phx-readouts>div{display:contents}
.arch-lab .phx-readouts dd{white-space:normal;overflow-wrap:anywhere}
.arch-lab .phx-svg .phx-rod{stroke:var(--arch-fig-line);stroke-width:7;stroke-linecap:round;fill:none}
.arch-lab .phx-svg .phx-arrow-g .phx-arrow-shaft{stroke:var(--arch-fig-line);stroke-width:3}
.arch-lab .phx-svg .phx-arrow-g .phx-arrow-head{fill:var(--arch-fig-line);stroke:none}
/* ===== Additions of the final package ===== */
/* Check boxes: a large box and a whole-label touch target of at least 44 px. */
.arch-lab label.arch-row{min-height:44px;cursor:pointer;flex-wrap:nowrap}
.arch-lab label.arch-row>span{flex:1 1 auto;min-width:0}
.arch-lab input[type=checkbox]{width:24px;height:24px;margin:0;flex:0 0 auto;accent-color:var(--arch-primary-bg)}

/* Phone controls remain in document flow: a sticky scene hid parameter names,
   sliders and playback buttons while scrolling. Never trade readable controls for a floating scene. */
.learning-interactive.arch-lab{overflow:clip}
@media (max-width:600px) and (min-height:500px){
 /* OMMO 09.11.2026 (§5б, labfont): no 40vh cap — the scene is not sticky here, and the cap only scaled tall scenes down
    together with their labels (0,83 on a 900 px screen, 0,64 on 700 px: labels of 13 px came out at 8–11 px) */
 .arch-lab .phx-stage{position:relative;top:auto;z-index:auto;background:var(--arch-surface)}
 /* z-index:auto too: in a grid or flex lab body a static item with a z-index still stacks and would scroll over the sticky scene */
 .arch-lab .phx-stage ~ .phx-stage,.arch-lab .phx-stage-pair .phx-stage{position:static;z-index:auto;max-height:none}
 .arch-lab .phx-stage-pair .phx-svg{max-height:none}
}
/* Narrow screens: readout names and values in two equal columns, long names may break */
@media (max-width:360px){
 .arch-lab .phx-readouts{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
 .arch-lab .phx-readouts dt{overflow-wrap:anywhere}
}

/* ===== Additions of the Phystech 2024/25 math qualifying package (copied with it; reused by the labs of this package) ===== */
/* Official versions: ID chips, the statement of the chosen version, «свои значения» status with a way back. */
.arch-lab .p25-versions{display:grid;gap:8px;min-width:0;padding:12px 14px;border:1px solid var(--arch-soft-line);border-radius:14px;background:var(--arch-surface)}
.arch-lab .p25-versions-head,.arch-lab .p25-data-head{margin:0;font-weight:700;color:var(--arch-label)}
.arch-lab .p25-chip-group{display:grid;gap:4px}
.arch-lab .p25-chip-title{margin:0;font-size:14px;color:var(--arch-muted)}
.arch-lab .p25-chips{gap:8px}
.arch-lab .p25-chip{font-variant-numeric:tabular-nums}
.arch-lab .p25-chip[aria-pressed=true]{background:var(--arch-pressed-bg);border-color:var(--arch-pressed-line);font-weight:700;box-shadow:inset 0 0 0 1px var(--arch-pressed-line)}
.arch-lab .p25-version{display:grid;gap:4px;padding:10px 12px;border-radius:10px;background:var(--p25-paper);border-left:4px solid var(--arch-pressed-line)}
.arch-lab .p25-version p{margin:0}
.arch-lab .p25-version-title{font-size:14px;font-weight:600;color:var(--arch-muted)}
.arch-lab .p25-version-text{font-size:16px;line-height:1.55;color:var(--arch-ink);overflow-wrap:anywhere}
.arch-lab .p25-version-diff{font-size:14px;color:var(--arch-label);font-weight:600}
.arch-lab .p25-status-row{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.arch-lab .p25-status{margin:0;font-size:14px;color:var(--arch-muted);flex:1 1 220px}
.arch-lab .p25-data{display:grid;gap:8px;min-width:0}
/* the hidden result: nothing of it is in the page before the press */
.arch-lab .p25-secret{display:grid;gap:8px}
.arch-lab .p25-reveal{justify-self:start}
.arch-lab .p25-secret-body{display:grid;gap:6px;padding:12px 14px;border-radius:12px;border:2px solid var(--arch-good);background:var(--arch-surface);color:var(--arch-ink);line-height:1.55}
.arch-lab .p25-secret-body p{margin:0}
.arch-lab .p25-secret-body:focus{outline:3px solid var(--arch-focus);outline-offset:2px}
.arch-lab .p25-secret-body strong{color:var(--arch-good)}
.arch-lab .p25-facts dd.phx-secret{font-weight:700}
/* own actions of a lab: cards, cells, tokens as real buttons with a 44 px target */
.arch-lab .p25-tiles{display:flex;flex-wrap:wrap;gap:6px}
.arch-lab .p25-tile{min-width:44px;min-height:44px;padding:6px 10px;border-radius:10px;border:1px solid var(--arch-field-line);background:var(--arch-surface);color:var(--arch-ink);font-weight:600;font-variant-numeric:tabular-nums}
.arch-lab .p25-tile[aria-pressed=true]{background:var(--arch-pressed-bg);border-color:var(--arch-pressed-line);box-shadow:inset 0 0 0 1px var(--arch-pressed-line)}
.arch-lab .p25-warn{margin:0;padding:10px 12px;border-radius:10px;background:var(--arch-bad-bg);color:var(--arch-ink);border:1px solid var(--arch-bad)}
.arch-lab .p25-ok{margin:0;padding:10px 12px;border-radius:10px;background:var(--arch-ok-bg);color:var(--arch-ink);border:1px solid var(--arch-good)}
.arch-lab .p25-math{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
/* drawn objects (draw.mjs): illustration colours with an outline that follows the theme */
.arch-lab{--p25-paper:#f6f8fc;--p25-skin:#f6d2b4;--p25-hair-a:#7c4a25;--p25-hair-b:#2b2b33;--p25-hair-c:#d9a441;--p25-shirt-a:#3b82f6;--p25-shirt-b:#ef6c3a;--p25-shirt-c:#22a06b;--p25-shirt-d:#8b5cf6;--p25-pants:#334155;--p25-card:#fffdf7;--p25-card-edge:#c9b98f;--p25-board:#24543f;--p25-board-ink:#f4f1e6;--p25-wood:#b07a43;--p25-candy-a:#ef4444;--p25-candy-b:#f59e0b;--p25-candy-c:#7c4a25;--p25-paper2:#ffffff;--p25-grass:#86c06c;--p25-grass2:#5f9d4b;--p25-soil:#c9a26b;--p25-water:#bfe1f6;--p25-metal:#94a3b8;--p25-glass:#cfe8ff;--p25-track:#d97757}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab{--p25-paper:#1b2333;--p25-track:#a3523b;--p25-skin:#e8bf9c;--p25-card:#f3efe2;--p25-card-edge:#8f8466;--p25-board:#1f4a37;--p25-paper2:#e9edf5;--p25-water:#1e4a66;--p25-glass:#8db8de}}
:root[data-design="v2"][data-theme="dark"] .arch-lab{--p25-paper:#1b2333;--p25-track:#a3523b;--p25-skin:#e8bf9c;--p25-card:#f3efe2;--p25-card-edge:#8f8466;--p25-board:#1f4a37;--p25-paper2:#e9edf5;--p25-water:#1e4a66;--p25-glass:#8db8de}
.arch-lab .phx-svg .p25-o{stroke:var(--arch-fig-line);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.arch-lab .phx-svg .p25-o-thin{stroke:var(--arch-fig-line);stroke-width:1;stroke-linejoin:round}
.arch-lab .phx-svg .p25-card-text{fill:#1f2937;font-weight:700;stroke:none}
.arch-lab .phx-svg .p25-board-text{fill:var(--p25-board-ink);stroke:none;font-family:"Comic Sans MS","Chalkboard SE","Segoe Print",system-ui,sans-serif}
.arch-lab .phx-svg .p25-shadow{fill:#0f172a;fill-opacity:.12;stroke:none}

.arch-lab .phx-svg .p25-track{fill:var(--p25-track);stroke:var(--arch-fig-line);stroke-width:1}
.arch-lab .phx-svg .p25-grass{fill:var(--p25-grass);stroke:var(--arch-fig-line);stroke-width:1}
.arch-lab .phx-svg .p25-lane{fill:none;stroke:#ffffff;stroke-width:1.5;stroke-dasharray:7 7;opacity:.85}
.arch-lab .p25-swap{gap:6px}
.arch-lab .p25-swap .p25-tile{min-width:44px;font-size:20px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--p25-card);color:#1f2937;border-color:var(--p25-card-edge)}
.arch-lab .p25-swap .p25-tile.p25-bad{border:2px solid var(--arch-bad);background:var(--arch-bad-bg);color:var(--arch-ink)}
.arch-lab .p25-swap .p25-tile.p25-r0{box-shadow:inset 0 -5px 0 #3b82f6}
.arch-lab .p25-swap .p25-tile.p25-r1{box-shadow:inset 0 -5px 0 #ef6c3a}
.arch-lab .p25-swap .p25-tile.p25-r2{box-shadow:inset 0 -5px 0 #22a06b}
.arch-lab .p25-swap .p25-tile[aria-pressed=true]{outline:3px solid var(--arch-focus);outline-offset:2px}
.arch-lab .p25-swap-note{margin:4px 0 0;min-height:1.4em}
.arch-lab .p25-picks .p25-tile{font-variant-numeric:tabular-nums;background:var(--p25-card);color:#1f2937;border-color:var(--p25-card-edge)}
.arch-lab .p25-picks .p25-tile[aria-pressed=true]{background:#fde68a;border-color:#b45309;box-shadow:inset 0 0 0 2px #b45309}
.arch-lab .p25-picks .p25-tile.p25-r0{box-shadow:inset 0 -5px 0 #3b82f6}
.arch-lab .p25-picks .p25-tile.p25-r1{box-shadow:inset 0 -5px 0 #ef6c3a}
.arch-lab .p25-picks .p25-tile.p25-r2{box-shadow:inset 0 -5px 0 #22a06b}
.arch-lab .p25-picks .p25-tile.p25-r0[aria-pressed=true],.arch-lab .p25-picks .p25-tile.p25-r1[aria-pressed=true],.arch-lab .p25-picks .p25-tile.p25-r2[aria-pressed=true]{background:#fde68a}
.arch-lab .phx-svg .p25-wood-beam{fill:var(--p25-wood);stroke:var(--arch-fig-line);stroke-width:1.2}
.arch-lab .phx-svg .p25-scale-text{fill:var(--arch-ink);stroke:none;font-weight:600}
.arch-lab .phx-svg .p25-badge{fill:var(--p25-card);stroke:var(--p25-card-edge);stroke-width:1.5}
.arch-lab .phx-svg .p25-badge-text{fill:#1f2937;font-weight:700;stroke:none}
.arch-lab .phx-svg .p25-bubble{fill:#ffffff;stroke:var(--arch-fig-line);stroke-width:1}
.arch-lab .phx-svg .p25-bubble-text{fill:#1f2937;font-size:11px;font-weight:600;stroke:none}
/* 9-II: a small table inside a lab, the laptop (dimmed screen, sun, battery, power pie), digit tiles, stone boards */
.arch-lab .p25-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.arch-lab .p25-table caption{text-align:left;font-weight:600;padding:0 0 4px}
.arch-lab .p25-table th,.arch-lab .p25-table td{border:1px solid var(--arch-soft-line);padding:6px 8px;text-align:left}
@media (max-width:420px){.arch-lab .p25-table{font-size:14px}.arch-lab .p25-table th,.arch-lab .p25-table td{padding:5px 4px}}
.arch-lab .p25-table td.phx-secret{text-align:center}
.arch-lab .phx-svg .p25-dim{fill:#0b1220;stroke:none}
.arch-lab .phx-svg .p25-sun{fill:#facc15;stroke:#b45309;stroke-width:1}
.arch-lab .phx-svg .p25-sun-ray{stroke:#f59e0b;stroke-width:2;stroke-linecap:round}
.arch-lab .phx-svg .p25-battery{fill:var(--arch-surface);stroke:var(--arch-fig-line);stroke-width:2.5}
.arch-lab .phx-svg .p25-charge{fill:#22c55e;stroke:none}
.arch-lab .phx-svg .p25-charge-low{fill:#ef4444;stroke:none}
.arch-lab .phx-svg .p25-pie-empty{fill:none;stroke:var(--arch-fig-line);stroke-width:1.5;stroke-dasharray:4 3}
.arch-lab .phx-svg .p25-pie-rest{fill:var(--p25-shirt-a);stroke:var(--arch-fig-line);stroke-width:1}
.arch-lab .phx-svg .p25-pie-screen{fill:#facc15;stroke:var(--arch-fig-line);stroke-width:1}
.arch-lab .p25-digits .p25-tile{font-size:22px;min-width:44px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--p25-card);color:#1f2937;border-color:var(--p25-card-edge)}
.arch-lab .p25-digits .p25-tile.p25-r1{box-shadow:inset 0 -5px 0 #ef6c3a}
.arch-lab .p25-digits .p25-tile[aria-pressed=true]{outline:3px solid var(--arch-focus);outline-offset:2px;background:#fde68a}
.arch-lab .p25-digits{gap:4px}
.arch-lab .p25-pad{margin-top:4px}
.arch-lab .p25-tile-sm{font-size:18px}
.arch-lab .p25-tile[aria-disabled=true]{opacity:.45}
.arch-lab .p25-tile-wide{min-width:64px}
.arch-lab .p25-subsets{font-variant-numeric:tabular-nums;columns:2 220px;column-gap:24px}
.arch-lab .phx-svg .p25-cell-a{fill:#efe6d2;stroke:var(--p25-card-edge);stroke-width:1}
.arch-lab .phx-svg .p25-cell-b{fill:#e2d3b3;stroke:var(--p25-card-edge);stroke-width:1}
.arch-lab .phx-svg .p25-cell-sel{fill:#fde68a;stroke:#b45309;stroke-width:3}
.arch-lab .phx-svg .p25-cell-cur{fill:none;stroke:var(--arch-focus);stroke-width:3;stroke-dasharray:6 4}
.arch-lab .phx-svg .p25-g0{fill:#e5e7eb}
.arch-lab .phx-svg .p25-g1{fill:#fde68a}
.arch-lab .phx-svg .p25-g2{fill:#86efac}
/* 10-I №7: numbers in rows of five (a column = a remainder mod 5) */
.arch-lab .p25-grid5{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));gap:6px;max-width:420px}
.arch-lab .p25-tile.p25-good{border:2px solid var(--arch-good);background:var(--arch-ok-bg)}
.arch-lab .p25-tile.p25-out{border-style:dashed;opacity:.7}
.arch-lab .p25-tile.p25-now{box-shadow:0 0 0 3px var(--arch-pressed-line)}
/* 10-II: Oleg's squared notebook (the page stays paper-light in both themes, so the ink colours are fixed) */
.arch-lab .phx-svg .p25-page{fill:var(--p25-paper2);stroke:var(--p25-card-edge);stroke-width:1.2}
.arch-lab .phx-svg .p25-grid-line{stroke:#c7d7ee;stroke-width:.8}
.arch-lab .phx-svg .p25-margin-line{stroke:#ef9a9a;stroke-width:1.2}
.arch-lab .phx-svg .p25-hand{fill:#1e3a8a;stroke:none;font-size:17px;font-weight:600;font-family:"Segoe Print","Comic Sans MS","Chalkboard SE",system-ui,sans-serif}
.arch-lab .phx-svg .p25-hand-mid{fill:#047857}
.arch-lab .phx-svg .p25-mid-box{fill:none;stroke:#047857;stroke-width:2}
.arch-lab .phx-svg .p25-pair-arc{fill:none;stroke:#b45309;stroke-width:1.6}
.arch-lab .phx-svg .p25-page-note{fill:#475569;stroke:none;font-size:13px}
/* 10-II: the last digits that must be replaced, a ray from the origin, lists of checks */
.arch-lab .p25-digits .p25-tile.p25-tail{border-bottom:3px dashed #ef6c3a}
.arch-lab .phx-svg .p25-ray{stroke:var(--p25-shirt-b);stroke-width:2.2}
.arch-lab .p25-checks{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
/* 10-II: snow under the bird feeders, the magician's spectators */
.arch-lab{--p25-snow:#eef4fb}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab{--p25-snow:#26324a}}
:root[data-design="v2"][data-theme="dark"] .arch-lab{--p25-snow:#26324a}
.arch-lab .phx-svg .p25-snow{fill:var(--p25-snow);stroke:none}
.arch-lab .p25-picks .p25-tile.p25-bad-tile{border:2px dashed var(--arch-bad)}
.arch-lab .phx-svg .p25-sel-glow{fill:#fde68a;fill-opacity:.55;stroke:#b45309;stroke-width:1.5}
.arch-lab .phx-svg .p25-sig-bad{fill:var(--arch-bad);stroke:none;font-size:13px;font-weight:700}
.arch-lab .phx-svg .p25-bubble-num{fill:var(--arch-good);stroke:none;font-size:15px;font-weight:700}
.arch-lab .p25-daychip[aria-pressed=true]{background:var(--arch-pressed-bg);border-color:var(--arch-pressed-line);font-weight:700;box-shadow:inset 0 0 0 1px var(--arch-pressed-line)}
/* Phystech 2024/25 math 11, round I */
.arch-lab .p25-tile.p25-no{border:2px dashed var(--arch-bad)}
.arch-lab .p25-tile.p25-tile-black{background:#1f2937;color:#fff;border-color:#111827}
.arch-lab .phx-svg .p25-strip{fill:var(--arch-clear);stroke:var(--arch-fig-line);stroke-width:1.5}
.arch-lab .phx-svg .p25-strip-q{fill:var(--arch-piece-b);stroke:var(--arch-fig-line);stroke-width:1.5}
.arch-lab .phx-svg .p25-strip-cut{stroke:var(--arch-fig-line);stroke-width:1.2}
.arch-lab .phx-svg .p25-strip-left{fill:var(--arch-bad);opacity:.85}
.arch-lab .phx-svg .p25-eaten{fill:var(--p25-candy-c);stroke:var(--arch-fig-line);stroke-width:1}
.arch-lab .phx-svg .p25-eaten-target{fill:var(--p25-candy-b);stroke:var(--arch-fig-line);stroke-width:1.5}
.arch-lab .phx-svg .p25-plate{stroke:var(--p25-metal);stroke-width:5;stroke-linecap:round}
.arch-lab .phx-svg .p25-gift{fill:#fde7ef;stroke:#be185d;stroke-width:2}
.arch-lab .phx-svg .p25-ribbon{fill:#ef4444;opacity:.5}
.arch-lab .phx-svg .p25-share-a{fill:var(--p25-candy-a)}
.arch-lab .phx-svg .p25-share-b{fill:var(--p25-candy-b)}
.arch-lab .phx-svg .p25-share-c{fill:var(--p25-candy-c)}
.arch-lab .phx-svg .p25-bar-frame{fill:none;stroke:var(--arch-fig-line);stroke-width:1.5}
.arch-lab .phx-svg .p25-road{fill:var(--p25-soil)}
.arch-lab .phx-svg .p25-grass-soft{fill:var(--p25-grass);opacity:.35}
.arch-lab .phx-svg .p25-roof{fill:#b45309;stroke:var(--arch-fig-line);stroke-width:1}
.arch-lab .phx-svg .p25-house-a{fill:#fde68a;stroke:var(--arch-fig-line);stroke-width:1}
.arch-lab .phx-svg .p25-house-b{fill:#fed7aa;stroke:var(--arch-fig-line);stroke-width:1;stroke-dasharray:3 2}
.arch-lab .phx-svg .p25-door,.arch-lab .phx-svg .p25-trunk{fill:#7c4a25}
.arch-lab .phx-svg .p25-crown-a{fill:#22a06b;stroke:var(--arch-fig-line);stroke-width:1}
.arch-lab .phx-svg .p25-crown-b{fill:#86c06c;stroke:var(--arch-fig-line);stroke-width:1;stroke-dasharray:3 2}
.arch-lab .phx-svg .p25-hollow{fill:#3b2414}
.arch-lab .phx-svg .p25-base{fill:var(--arch-clear);stroke:none;opacity:.85}
.arch-lab .phx-svg .p25-proj-a{stroke:var(--phx-b);stroke-width:3.5;stroke-linecap:round}
.arch-lab .phx-svg .p25-proj-b{stroke:var(--phx-c);stroke-width:3.5;stroke-linecap:round}
.arch-lab .phx-svg .p25-cell{fill:var(--arch-surface);stroke:var(--arch-soft-line);stroke-width:1}
.arch-lab .phx-svg .p25-cell-ok{fill:var(--arch-ok-bg);stroke:var(--arch-good);stroke-width:2}
.arch-lab .phx-svg .p25-cell-out{fill:var(--arch-clear);stroke:var(--arch-soft-line);stroke-dasharray:3 3}
.arch-lab .phx-svg .p25-cell-frame{fill:none;stroke:var(--arch-focus);stroke-width:3}
.arch-lab .phx-svg .p25-cell-num-sel{font-weight:700}
.arch-lab .phx-svg .p25-lens{fill:var(--arch-surface);stroke:var(--arch-fig-line);stroke-width:1.2}
.arch-lab .phx-svg .p25-lens-line{fill:none;stroke:var(--arch-muted);stroke-width:1;stroke-dasharray:4 4}
.arch-lab .phx-svg .p25-lens-mark{fill:var(--arch-accent);opacity:.2}
/* Phystech 2024/25 math 11, round II */
.arch-lab .phx-svg .p25-card-ok{fill:var(--arch-ok-bg);stroke:var(--arch-good);stroke-width:1.5}
.arch-lab .phx-svg .p25-card-no{fill:var(--arch-bad-bg);stroke:var(--arch-bad);stroke-width:1.2;stroke-dasharray:4 3}
.arch-lab .phx-svg .p25-bead{fill:#f59e0b;stroke:#92400e;stroke-width:1.2}
.arch-lab .phx-svg .p25-bead-v{fill:#60a5fa;stroke:#1e3a8a;stroke-width:1.2}
.arch-lab .phx-svg .p25-bead-text{fill:#1f2937;stroke:none;font-size:11px;font-weight:700}
.arch-lab .phx-svg .p25-string{stroke:var(--arch-fig-line);stroke-width:1.5}
.arch-lab .phx-svg .p25-cut{stroke:var(--arch-bad);stroke-width:3;stroke-linecap:round}
.arch-lab .phx-svg .p25-gap{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .p25-table td.p25-yes{color:var(--arch-good);font-weight:700}
.arch-lab .p25-table td.p25-nope{color:var(--arch-bad)}
.arch-lab .p25-table tr.p25-row-now td{background:var(--arch-pressed-bg)}
.arch-lab .p25-scroll{overflow-x:auto;max-width:100%}
.arch-lab .p25-steppers{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,204px),1fr));gap:8px;min-width:0}
.arch-lab .p25-stepper{display:flex;align-items:center;gap:4px;padding:4px 6px;border:1px solid var(--arch-soft-line);border-radius:10px;background:var(--arch-surface)}
.arch-lab .p25-stepper-P{border:2px solid var(--p25-shirt-b)}
.arch-lab .p25-step-label{min-width:24px;font-weight:700;font-variant-numeric:tabular-nums}
.arch-lab input.p25-step-num{width:52px;min-width:52px;flex:0 0 52px;text-align:center;padding:8px 4px}
.arch-lab .p25-stepper .phx-step{flex:0 0 auto}
.arch-lab .phx-svg .p25-cell-add{fill:var(--p25-shirt-b);fill-opacity:.55;stroke:var(--arch-fig-line);stroke-width:1}
.arch-lab .phx-svg .p25-sq-a{fill:var(--phx-a);fill-opacity:.16;stroke:var(--phx-a);stroke-width:2}
.arch-lab .phx-svg .p25-sq-b{fill:var(--phx-b);fill-opacity:.16;stroke:var(--phx-b);stroke-width:2}
.arch-lab .phx-svg .p25-common{fill:var(--phx-c);fill-opacity:.45;stroke:var(--phx-c);stroke-width:2}
.arch-lab .phx-svg .p25-bar-a{fill:var(--phx-a);fill-opacity:.7;stroke:none}
.arch-lab .phx-svg .p25-bar-b{fill:var(--phx-b);fill-opacity:.7;stroke:none}
.arch-lab .phx-svg .p25-old-border{fill:none;stroke:var(--arch-fig-line);stroke-width:1.5;stroke-dasharray:5 4}
.arch-lab .phx-svg .p25-mark-need{fill:var(--arch-focus);stroke:none}
.arch-lab .phx-svg .p25-base-tri{fill:var(--p25-soil);fill-opacity:.35;stroke:var(--arch-fig-line);stroke-width:1.5}
.arch-lab .phx-svg .p25-face{fill:var(--phx-a);fill-opacity:.12;stroke:none}
.arch-lab .phx-svg .p25-chord{stroke:var(--phx-a);stroke-width:1.6;opacity:.75}
.arch-lab .phx-svg .p25-missing{stroke:var(--arch-bad);stroke-width:2.5;stroke-dasharray:6 5}
.arch-lab .phx-svg .p25-env-sel{fill:#fde68a;fill-opacity:.6;stroke:#b45309;stroke-width:2}
.arch-lab .p25-env-tiles .p25-tile{min-width:44px;font-variant-numeric:tabular-nums}
/* Phystech 2024/25 math 11, round III */
.arch-lab .phx-svg .p25-heat-pos{fill:var(--phx-c);stroke:none}
.arch-lab .phx-svg .p25-heat-neg{fill:var(--phx-b);stroke:none}
.arch-lab .phx-svg .p25-band-a{stroke:var(--phx-a);stroke-width:9;stroke-linecap:butt}
.arch-lab .phx-svg .p25-band-b{stroke:var(--phx-b);stroke-width:9;stroke-linecap:butt}
.arch-lab .phx-svg .p25-band-bad{stroke:var(--arch-bad);stroke-width:9;stroke-linecap:butt}
.arch-lab .phx-svg .p25-band-good{stroke:var(--arch-good);stroke-width:9;stroke-linecap:butt}
.arch-lab .phx-svg .p25-try-ok{fill:var(--arch-good);stroke:var(--arch-surface);stroke-width:1.5}
.arch-lab .phx-svg .p25-try-no{fill:var(--arch-bad);stroke:var(--arch-surface);stroke-width:1.5}
.arch-lab .phx-svg .p25-region-a{fill:var(--phx-a);fill-opacity:.28;stroke:var(--phx-a);stroke-width:1.2}
.arch-lab .phx-svg .p25-region-b{fill:var(--phx-b);fill-opacity:.28;stroke:var(--phx-b);stroke-width:1.2}
.arch-lab .phx-svg .p25-region-c{fill:var(--phx-c);fill-opacity:.28;stroke:var(--phx-c);stroke-width:1.2}
.arch-lab .phx-svg .p25-region-q{fill:var(--phx-d);fill-opacity:.12;stroke:var(--phx-d);stroke-width:1}
.arch-lab .p25-nb{border-collapse:collapse;font-variant-numeric:tabular-nums}
.arch-lab .p25-nb th{padding:4px 6px;font-weight:600;text-align:center;white-space:nowrap}
.arch-lab .p25-nb td{padding:2px}
.arch-lab .p25-nb .p25-tile{min-width:44px;min-height:44px;padding:4px}
.arch-lab .p25-nb .p25-tile[aria-pressed="true"]{border:2px solid var(--arch-good);background:var(--arch-ok-bg)}
.arch-lab .p25-nb th.p25-nb-bad,.arch-lab .p25-nb td.p25-nb-bad{background:var(--arch-bad-bg)}

/* «Высшая проба»: атрибут hidden всегда скрывает элемент модели, даже если у блока задан display:grid/flex (замечание исполнителя 8 класса) */
[data-arch-lab] [hidden]{display:none!important}
/* GPT-1 VP-R01 (#251, as R09 of the Phystech package): the site measures a display formula by its .katex-html, but KaTeX's own
   `.katex-display>.katex>.katex-html{display:block}` outranks the site's inline-block — the box then spans the column, and a
   fractional column width marked a formula that fits (295 / 295) as «↔ Прокрути формулу». Measured by its real width here. */
[data-problem-id^="higher-test-202"] .math-display .katex-display>.katex>.katex-html{display:inline-block}
/* GPT-1 VP-R01 (round 2): the site gives a short inline formula max-width:100% and its own horizontal scroll — in a narrow table
   cell the end of «73 + 29 = 102» or of «n» was silently cut off. In the tables of this package a formula keeps its whole width
   (the tables are written narrow enough for 360 px; the self-check watches the table wrapper). The selector outranks the site's
   `:root[data-design="v2"]:not(:has(…)) .lesson-main .math-inline-short`. */
:root[data-design="v2"] [data-problem-id^="higher-test-202"] .lesson-main .lesson-table .math-inline-short,:root[data-design="v2"] [data-problem-id^="higher-test-202"] .lesson-main .lesson-table .katex{max-width:none;overflow:visible}
/* ==== «Смарт Кенгуру» 2026: answers А–Д under the statement (load.mjs + choice.mjs) ==== */
.kg-choice{margin:18px 0 6px}
.kg-choice h3{font-size:17px;margin:0 0 4px}
.kg-choice-help{margin:0 0 10px;font-size:15px;color:var(--ink-2,#475569)}
.kg-choice-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.kg-choice-list.kg-choice-pics{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.kg-choice-option{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:8px 12px;border:2px solid var(--line,#cbd5e1);border-radius:12px;background:var(--paper,#fff);color:var(--ink,#1f2937);font:inherit;font-size:16px;text-align:left;cursor:pointer;touch-action:manipulation}
.kg-choice-option:disabled{cursor:default;opacity:1}
.kg-choice-option:hover:not(:disabled){border-color:var(--accent,#2563eb)}
.kg-choice-option[aria-pressed="true"]{border-color:var(--accent,#2563eb);box-shadow:0 0 0 2px var(--accent,#2563eb) inset}
.kg-choice-option.kg-wrong{border-style:dashed;opacity:.65}
.kg-solved .kg-choice-option[aria-pressed="true"]{border-color:#15803d;box-shadow:0 0 0 2px #15803d inset}
.kg-choice-letter{flex:none;font-weight:700}
.kg-choice-text{min-width:0;overflow-wrap:break-word}
/* a short formula in an answer keeps its right edge: the site wrapper clips to the glyph box and cut the exponent of x⁵ and the
   closing bracket of an interval (GPT-2 KANGAROO-R14) */
.kg-choice-text .math-inline-short{overflow:visible;padding:0 .18em}
.kg-choice-pics .kg-choice-option{flex-direction:column;align-items:flex-start}
.kg-choice-pic{display:block;width:100%;background:#fff;border-radius:8px;line-height:0}
.kg-choice-pic svg{display:block;width:100%;height:auto;max-height:130px;margin:0 auto}
.kg-choice-row{margin:10px 0 0}
.kg-choice-row .kg-choice-check:disabled{opacity:.5;cursor:default}
.kg-choice-feedback{margin:8px 0 0;min-height:1.4em;font-size:15px}
.kg-solved .kg-choice-feedback{color:#15803d;font-weight:600}
:root[data-design="v2"][data-theme="dark"] .kg-solved .kg-choice-feedback{color:#4ade80}
@media (prefers-color-scheme:dark){:root[data-design="v2"]:not([data-theme="light"]) .kg-solved .kg-choice-feedback{color:#4ade80}}
/* ==== light stage in the dark theme (generated by tools/light-stage.mjs — do not edit by hand) ==== */
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage{background:var(--arch-surface);border-radius:12px;color:var(--arch-ink)}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage{background:var(--arch-surface);border-radius:12px;color:var(--arch-ink)}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage{--bg:#ffffff;--bg-2:#f4f5f7;--surface:#ffffff;--ink:#16213a;--ink-2:#4e586d;--ink-3:#5f6b83;--line:#e3e6ec;--line-2:#cfd4dd;--accent:#2457d6;--accent-ink:#183f9f;--accent-soft:#e9effc;--play-bg:#fff7e8;--play-line:#f1dfb6;--play-ink:#7c5300;--play-accent:#d98b00;--play-stage:#ffffff;--green-soft:#e3f3ea;--ok:#1f7a4b;--warn:#8a5a00;--warn-soft:#fff3d6;--paper-figure:#ffffff;--r:10px;--r-lg:16px;--r-play:22px;--shadow:0 1px 2px rgba(22,33,58,.05), 0 8px 24px rgba(22,33,58,.06);--shadow-sm:0 1px 2px rgba(22,33,58,.06);--font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--wrap-w:1120px;--gutter:20px;--on-ink:#ffffff;--mark:#fff1a8;--bad:#a33a2a;--bad-soft:#fbeae6;--stone-bg:#d9e4e1;--stone-line:#90aaa5;--stone-ink:#244b45;--stone-won:#cbddd4;--paper:var(--bg);--muted:var(--ink-2);--blue:var(--accent);--blue-dark:var(--accent-ink);--navy:var(--ink);--soft:var(--bg-2);--white:var(--surface);--study-blue:var(--accent);--study-soft:var(--bg-2);--study-line:var(--line);--study-muted:var(--ink-2);color-scheme:light}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage{--bg:#ffffff;--bg-2:#f4f5f7;--surface:#ffffff;--ink:#16213a;--ink-2:#4e586d;--ink-3:#5f6b83;--line:#e3e6ec;--line-2:#cfd4dd;--accent:#2457d6;--accent-ink:#183f9f;--accent-soft:#e9effc;--play-bg:#fff7e8;--play-line:#f1dfb6;--play-ink:#7c5300;--play-accent:#d98b00;--play-stage:#ffffff;--green-soft:#e3f3ea;--ok:#1f7a4b;--warn:#8a5a00;--warn-soft:#fff3d6;--paper-figure:#ffffff;--r:10px;--r-lg:16px;--r-play:22px;--shadow:0 1px 2px rgba(22,33,58,.05), 0 8px 24px rgba(22,33,58,.06);--shadow-sm:0 1px 2px rgba(22,33,58,.06);--font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--wrap-w:1120px;--gutter:20px;--on-ink:#ffffff;--mark:#fff1a8;--bad:#a33a2a;--bad-soft:#fbeae6;--stone-bg:#d9e4e1;--stone-line:#90aaa5;--stone-ink:#244b45;--stone-won:#cbddd4;--paper:var(--bg);--muted:var(--ink-2);--blue:var(--accent);--blue-dark:var(--accent-ink);--navy:var(--ink);--soft:var(--bg-2);--white:var(--surface);--study-blue:var(--accent);--study-soft:var(--bg-2);--study-line:var(--line);--study-muted:var(--ink-2);color-scheme:light}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage{--arch-surface:#fff;--arch-ink:#1f2937;--arch-label:#203c58;--arch-muted:#5b6b82;--arch-field-line:#aebed1;--arch-soft-line:#d7e1ed;--arch-primary-bg:#244974;--arch-primary-ink:#fff;--arch-link:#244974;--arch-pressed-bg:#e6eefb;--arch-pressed-line:#244974;--arch-good:#047857;--arch-bad:#b91c1c;--arch-fig-line:#1f2937;--arch-grid:#c7d2e0;--arch-fill:#dbeafe;--arch-piece-a:#bfdbfe;--arch-piece-b:#fde68a;--arch-piece-c:#fecaca;--arch-piece-d:#bbf7d0;--arch-accent:#c2410c;--arch-water:#e0f2fe;--arch-ok-bg:#dcfce7;--arch-bad-bg:#fee2e2;--arch-knight:#1d4ed8;--arch-liar:#9f1239;--arch-clear:#e2e8f0;--p25-paper:#f6f8fc;--p25-track:#d97757;--p25-skin:#f6d2b4;--p25-card:#fffdf7;--p25-card-edge:#c9b98f;--p25-board:#24543f;--p25-paper2:#ffffff;--p25-water:#bfe1f6;--p25-glass:#cfe8ff;--p25-snow:#eef4fb}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage{--arch-surface:#fff;--arch-ink:#1f2937;--arch-label:#203c58;--arch-muted:#5b6b82;--arch-field-line:#aebed1;--arch-soft-line:#d7e1ed;--arch-primary-bg:#244974;--arch-primary-ink:#fff;--arch-link:#244974;--arch-pressed-bg:#e6eefb;--arch-pressed-line:#244974;--arch-good:#047857;--arch-bad:#b91c1c;--arch-fig-line:#1f2937;--arch-grid:#c7d2e0;--arch-fill:#dbeafe;--arch-piece-a:#bfdbfe;--arch-piece-b:#fde68a;--arch-piece-c:#fecaca;--arch-piece-d:#bbf7d0;--arch-accent:#c2410c;--arch-water:#e0f2fe;--arch-ok-bg:#dcfce7;--arch-bad-bg:#fee2e2;--arch-knight:#1d4ed8;--arch-liar:#9f1239;--arch-clear:#e2e8f0;--p25-paper:#f6f8fc;--p25-track:#d97757;--p25-skin:#f6d2b4;--p25-card:#fffdf7;--p25-card-edge:#c9b98f;--p25-board:#24543f;--p25-paper2:#ffffff;--p25-water:#bfe1f6;--p25-glass:#cfe8ff;--p25-snow:#eef4fb}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage .phx-svg{--phx-a:#1d4ed8;--phx-b:#c2410c;--phx-c:#047857;--phx-d:#7c3aed;--phx-water:#dbeafe;--phx-body:#e2e8f0;--phx-paper:#ffffff}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage .phx-svg{--phx-a:#1d4ed8;--phx-b:#c2410c;--phx-c:#047857;--phx-d:#7c3aed;--phx-water:#dbeafe;--phx-body:#e2e8f0;--phx-paper:#ffffff}
/* KANGAROO-NATIVE21-R01: phone landscape — a tall scene scrolls, labels keep their size */
@media (orientation:landscape) and (max-height:500px){
.arch-lab .arch-stage svg.phx-svg{max-height:none}
}

/* Popov Academy — content-factory/model-frame-v1: the one frame of a student model (ETALON §3 «Единый вид модели»).
   Appended by a package's assets.mjs to its lab.css after the base file and before labs/<kind>.css. Colours are the
   variables of the host lab.css (.arch-lab), so both themes follow the site. Blocks, top to bottom:
   question → instruction → scene → status line (constant height) → controls → «Пуск» → buttons → legend. */
.arch-lab .mf{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;
 --mf-a:#1d4ed8;--mf-b:#c2410c;--mf-c:#047857;--mf-d:#7c3aed}
/* the four colours of objects are the same in both themes: a scene keeps its light paper in the dark theme (ETALON §3) */
.arch-lab .mf .mf-question{margin:0;font-size:18px;font-weight:700;line-height:1.4;color:var(--arch-ink)}
.arch-lab .mf .mf-help{margin:0}
.arch-lab .mf .mf-scene{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
/* the live text and its longest variants share one cell: the block is as tall as the tallest of them at any width */
.arch-lab .mf .mf-status,.arch-lab .mf .mf-steady{display:grid;grid-template-columns:minmax(0,1fr);min-width:0}
.arch-lab .mf .mf-status{margin:0;font-variant-numeric:tabular-nums}
.arch-lab .mf .mf-status>*,.arch-lab .mf .mf-steady>*{grid-area:1/1;min-width:0;margin:0}
.arch-lab .mf .mf-ghost{visibility:hidden;pointer-events:none;user-select:none}
.arch-lab .mf .mf-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.arch-lab .mf .mf-choice{display:grid;gap:6px;min-width:0}
.arch-lab .mf .mf-choice .arch-label{margin:0;font-size:15px}
.arch-lab .mf .mf-transport{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0}
.arch-lab .mf .mf-transport-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* «Пуск» and «Пауза» have one width, so the row never re-wraps during a run */
.arch-lab .mf .mf-play{min-width:8.6em;text-align:center}
/* a phone: the three buttons of the process stay in one row */
@media (max-width:560px){.arch-lab .mf .mf-transport-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr)}.arch-lab .mf .mf-transport-row button{min-width:0;width:100%;padding:10px 6px;text-align:center}}
.arch-lab .mf .mf-time-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.arch-lab .mf .mf-time-row input[type=range]{width:100%}
.arch-lab .mf .mf-time{font-variant-numeric:tabular-nums;font-weight:600;min-width:8.5em;text-align:right;color:var(--arch-ink)}
/* the bottom row: the same buttons in the same places — four in a row, two by two on a phone, a column on 320 px */
.arch-lab .mf .mf-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:stretch}
.arch-lab .mf .mf-buttons button{width:100%;min-height:48px;padding:10px 12px;text-align:center}
@media (max-width:980px){.arch-lab .mf .mf-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:339px){.arch-lab .mf .mf-buttons{grid-template-columns:minmax(0,1fr)}}
/* an example that still waits for the second hint looks quieter; a press explains why in the status line */
.arch-lab .mf .mf-buttons button.mf-gated{border-style:dashed;color:var(--arch-muted)}
.arch-lab .mf .mf-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0;list-style:none;font-size:14px;color:var(--arch-ink)}
.arch-lab .mf .mf-legend li{display:flex;align-items:center;gap:7px}
.arch-lab .mf .mf-sw{flex:none;width:18px;height:18px;border-radius:5px;border:1.5px solid var(--arch-fig-line);background:var(--arch-surface)}
.arch-lab .mf .mf-sw-a{background:var(--mf-a)}.arch-lab .mf .mf-sw-b{background:var(--mf-b)}
.arch-lab .mf .mf-sw-c{background:var(--mf-c)}.arch-lab .mf .mf-sw-d{background:var(--mf-d)}
.arch-lab .mf .mf-sw-line{height:0;border:0;border-top:3px solid var(--arch-fig-line);border-radius:0;background:none}
.arch-lab .mf .mf-sw-dash{height:0;border:0;border-top:3px dashed var(--arch-muted);border-radius:0;background:none}
.arch-lab .mf .mf-sw-ring{border-radius:50%;border:3px solid var(--mf-c);background:none}

/* ---- the sample model (sample.mjs, local preview only): two walkers ---- */
.arch-lab .mfs .mfs-road{stroke:var(--arch-fig-line);stroke-width:3;stroke-linecap:round}
.arch-lab .mfs .mfs-mark{stroke:var(--arch-fig-line);stroke-width:2}
.arch-lab .mfs .mfs-a{fill:var(--mf-a);stroke:var(--arch-fig-line);stroke-width:1.5}
.arch-lab .mfs .mfs-b{fill:var(--mf-b);stroke:var(--arch-fig-line);stroke-width:1.5}
.arch-lab .mfs .mfs-la{stroke:var(--mf-a);stroke-width:3;fill:none;stroke-linecap:round}
.arch-lab .mfs .mfs-lb{stroke:var(--mf-b);stroke-width:3;fill:none;stroke-linecap:round}
.arch-lab .mfs .mfs-plan{stroke:var(--arch-muted);stroke-width:1.5;stroke-dasharray:5 5;fill:none}
.arch-lab .mfs .mfs-now{stroke:var(--arch-muted);stroke-width:1.5}
.arch-lab .mfs .mfs-ring{fill:none;stroke:var(--mf-c);stroke-width:3}
.arch-lab .mfs text{font-size:15px;fill:var(--arch-ink);font-variant-numeric:tabular-nums}
.arch-lab .mfs text.mfs-ta{fill:var(--mf-a);font-weight:700}
.arch-lab .mfs text.mfs-tb{fill:var(--mf-b);font-weight:700}
.arch-lab .mfs text.mfs-small{font-size:13px;fill:var(--arch-muted)}
.arch-lab .mfs text.phx-tick{font-size:13px;fill:var(--arch-muted)}
.arch-lab .mfs text.phx-axis-label{font-size:14px;font-weight:600}

/* «Смарт Кенгуру» 2026, 5–6 №1 — плакат (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k561{--k561-cut:#b91c1c;--k561-focus:#1d4ed8;--k561-ans:#fde9c8}
.arch-lab .k561 .k561-paper{fill:#fffdf8}
.arch-lab .k561 .k561-sheet{fill:#fff;stroke:#1f2937;stroke-width:1.5}
.arch-lab .k561 .k561-ink{fill:#1f2937}
.arch-lab .k561 .k561-cut{stroke:var(--k561-cut);stroke-width:2;stroke-dasharray:6 4}
.arch-lab .k561 .k561-slit{stroke:#fffdf8;stroke-width:2.5}
.arch-lab .k561 .k561-edge{stroke:#1f2937;stroke-width:1.5}
.arch-lab .k561 .k561-scissors line{stroke:#475569;stroke-width:3;stroke-linecap:round}
.arch-lab .k561 .k561-scissors circle{fill:#fffdf8;stroke:var(--k561-cut);stroke-width:2.5}
.arch-lab .k561 .k561-slot{fill:none;stroke:#94a3b8;stroke-width:1.5;stroke-dasharray:5 5}
.arch-lab .k561 text.k561-hint{font-size:13px;fill:#475569}
.arch-lab .k561 .k561-ans{fill:var(--k561-ans);stroke:#b45309;stroke-width:1.2}
.arch-lab .k561 .k561-frame{stroke:#1f2937;stroke-width:1.5}
.arch-lab .k561 .k561-focus{fill:none;stroke:var(--k561-focus);stroke-width:2.5}
.arch-lab .k561 .mf-sw.k561-sw-cut{height:0;border:0;border-top:3px dashed var(--k561-cut);border-radius:0;background:none}
.arch-lab .k561 .mf-sw.k561-sw-own{background:#fff;border-color:#1f2937}
.arch-lab .k561 .mf-sw.k561-sw-ans{background:var(--k561-ans);border-color:#b45309}
.arch-lab .k561 .mf-sw.k561-sw-focus{background:none;border:2.5px solid var(--k561-focus)}

/* «Смарт Кенгуру» 2026, 5–6 №10 — контрпример для Незнайки (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k5610{--k5610-a:#1d4ed8;--k5610-b:#c2410c;--k5610-c:#047857;--k5610-rest:#dc2626}
.arch-lab .k5610 .k5610-paper{fill:#fffdf8}
.arch-lab .k5610 .k5610-tray{fill:#f1f5f9;stroke:#94a3b8;stroke-width:1.5}
.arch-lab .k5610 .k5610-s0{fill:#93c5fd;stroke:var(--k5610-a);stroke-width:1.2}
.arch-lab .k5610 .k5610-s1{fill:#fdba74;stroke:var(--k5610-b);stroke-width:1.2}
.arch-lab .k5610 .k5610-s2{fill:#6ee7b7;stroke:var(--k5610-c);stroke-width:1.2}
.arch-lab .k5610 .k5610-rest{fill:#fecaca;stroke:var(--k5610-rest);stroke-width:1.6}
.arch-lab .k5610 svg text.k5610-head{fill:#1f2937;font-size:17px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5610 svg text.k5610-label{fill:#1f2937;font-size:14px;font-weight:600;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5610 svg text.k5610-bad{fill:#b91c1c}
.arch-lab .k5610 svg text.k5610-ok{fill:#047857}
.arch-lab .k5610 .mf-sw.k5610-sw-a{background:#93c5fd;border-color:var(--k5610-a);border-radius:50%}
.arch-lab .k5610 .mf-sw.k5610-sw-b{background:#fdba74;border-color:var(--k5610-b);border-radius:50%}
.arch-lab .k5610 .mf-sw.k5610-sw-c{background:#6ee7b7;border-color:var(--k5610-c);border-radius:50%}
.arch-lab .k5610 .mf-sw.k5610-sw-rest{background:#fecaca;border-color:var(--k5610-rest);border-radius:50%}

/* «Смарт Кенгуру» 2026, 5–6 №11 — отрезки Пети и Васи (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k5611{--k5611-book:#475569;--k5611-petya:#1d4ed8;--k5611-vasya:#c2410c;--k5611-diff:#047857}
.arch-lab .k5611 .k5611-paper{fill:#fffdf8}
.arch-lab .k5611 .k5611-bar{stroke-width:2}
.arch-lab .k5611 .k5611-book{fill:#e2e8f0;stroke:var(--k5611-book)}
.arch-lab .k5611 .k5611-petya{fill:#dbeafe;stroke:var(--k5611-petya)}
.arch-lab .k5611 .k5611-vasya{fill:#fed7aa;stroke:var(--k5611-vasya)}
.arch-lab .k5611 .k5611-piece{fill:#fdba74;stroke:var(--k5611-vasya);stroke-width:1.5}
.arch-lab .k5611 .k5611-fly{opacity:.85}
.arch-lab .k5611 svg text.k5611-name{fill:#1f2937;font-size:14px;font-weight:600;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5611 svg text.k5611-pnum{fill:#111827;font-size:13px;font-weight:700;stroke:none}
.arch-lab .k5611 .k5611-diff{stroke:var(--k5611-diff);stroke-width:2.5}
.arch-lab .k5611 svg text.k5611-difftext{fill:var(--k5611-diff);font-size:15px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5611 .k5611-ruler{fill:#fde68a;stroke:#b45309;stroke-width:1.5}
.arch-lab .k5611 .k5611-rtick{stroke:#78350f;stroke-width:1}
.arch-lab .k5611 svg text.k5611-rnum{fill:#78350f;font-size:13px;font-weight:600;stroke:none}
.arch-lab .k5611 svg text.k5611-small{fill:#475569;font-size:13px;stroke:none}
.arch-lab .k5611 .mf-sw.k5611-sw-book{background:#e2e8f0;border-color:var(--k5611-book)}
.arch-lab .k5611 .mf-sw.k5611-sw-petya{background:#dbeafe;border-color:var(--k5611-petya)}
.arch-lab .k5611 .mf-sw.k5611-sw-vasya{background:#fed7aa;border-color:var(--k5611-vasya)}
.arch-lab .k5611 .mf-sw.k5611-sw-diff{height:0;border:0;border-top:3px solid var(--k5611-diff);border-radius:0;background:none}

/* «Смарт Кенгуру» 2026, 5–6 №12 — три полоски (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k5612 .k5612-paper{fill:#fffdf8}
.arch-lab .k5612 .k5612-track{fill:#f8fafc;stroke:#cbd5e1;stroke-width:1;stroke-dasharray:3 3}
.arch-lab .k5612 .k5612-c{stroke:#1f2937;stroke-width:1.8}
.arch-lab .k5612 .k5612-x{fill:#ffffff}
.arch-lab .k5612 .k5612-o{fill:#fef3c7}
.arch-lab .k5612 .k5612-g{fill:#4ade80}
.arch-lab .k5612 .k5612-ink{stroke:#1f2937;stroke-width:2.2;stroke-linecap:round}
.arch-lab .k5612 .k5612-dot{fill:#1f2937;stroke:none}
.arch-lab .k5612 .k5612-unseen{fill:#e2e8f0;stroke:#94a3b8;stroke-width:1.2}
.arch-lab .k5612 .k5612-bare{fill:#fff;stroke:#dc2626;stroke-width:2;stroke-dasharray:4 3}
.arch-lab .k5612 .k5612-scan{stroke:#dc2626;stroke-width:2}
.arch-lab .k5612 svg text.k5612-lane{fill:#334155;font-size:14px;font-weight:600;stroke:none}
.arch-lab .k5612 svg text.k5612-bold{fill:#111827;font-weight:700}
.arch-lab .k5612 svg text.k5612-num{fill:#475569;font-size:13px;stroke:none}
.arch-lab .k5612 svg text.k5612-letter{fill:#111827;font-size:15px;font-weight:700;stroke:none}
.arch-lab .k5612 .k5612-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k5612 .k5612-hit:focus-visible{outline:none;stroke:#111827;stroke-width:2;stroke-dasharray:4 3}
.arch-lab .k5612 .mf-sw.k5612-sw-x{background:#fff;border:1.8px solid #1f2937}
.arch-lab .k5612 .mf-sw.k5612-sw-o{background:#fef3c7;border:1.8px solid #1f2937}
.arch-lab .k5612 .mf-sw.k5612-sw-g{background:#4ade80;border:1.8px solid #1f2937}
.arch-lab .k5612 .mf-sw.k5612-sw-bare{background:#fff;border:2px dashed #dc2626}

/* «Смарт Кенгуру» 2026, 5–6 №13 — часы (Fable round, 10.11.2026). */
.k5613 .k5613-rim{fill:#cbd5e1;stroke:#1f2937;stroke-width:2}
.k5613 .k5613-face{fill:#fff;stroke:#1f2937;stroke-width:1.5}
.k5613 .k5613-tick{stroke:#64748b;stroke-width:1.2}
.k5613 .k5613-tick5{stroke:#1f2937;stroke-width:2.6}
.k5613 svg text.k5613-num{fill:#1f2937;font-size:17px;font-weight:700}
.k5613 .k5613-sector{fill:#fde68a;fill-opacity:.8;stroke:#b45309;stroke-width:1.2}
.k5613 .k5613-hour{stroke:#1f2937;stroke-width:7;stroke-linecap:round}
.k5613 .k5613-min{stroke:#1d4ed8;stroke-width:4;stroke-linecap:round}
.k5613 .k5613-cap{fill:#c2410c;stroke:#1f2937;stroke-width:1.5}
.k5613 svg text.k5613-ang{fill:#7c2d12;font-size:17px;font-weight:700}
.k5613 .k5613-axis{stroke:#15803d;stroke-width:2;stroke-dasharray:6 5;fill:none}
.k5613 .k5613-creep{stroke:#15803d;stroke-width:3.5;fill:none}
.k5613 svg text.k5613-creep-t{fill:#166534;font-size:14px;font-weight:700}
.k5613 .k5613-lcd{fill:#1f2937;stroke:none}
.k5613 svg text.k5613-lcd-t{fill:#fde68a;font-size:19px;font-weight:700;letter-spacing:1px}
.k5613 .kg-sw.k5613-sw-hour{background:#1f2937;height:7px;border-radius:4px}
.k5613 .kg-sw.k5613-sw-min{background:#1d4ed8;border-color:#1d4ed8;height:4px;border-radius:3px}
.k5613 .kg-sw.k5613-sw-axis{height:0;border-width:2.5px 0 0;border-style:dashed;border-color:#15803d;border-radius:0;background:none}
.k5613 .kg-sw.k5613-sw-creep{height:5px;background:#15803d;border-color:#15803d;border-radius:3px}
.k5613 svg text.k5613-lcd-t{stroke:none}

/* «Смарт Кенгуру» 2026, 5–6 №14 — восемь слов Риты (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k5614{--k5614-a:#1d4ed8;--k5614-b:#c2410c;--k5614-c:#047857;--k5614-over:#dc2626}
.arch-lab .k5614 .k5614-paper{fill:#fffdf8}
.arch-lab .k5614 .k5614-a{fill:#dbeafe;stroke:var(--k5614-a);stroke-width:1.5}
.arch-lab .k5614 .k5614-b{fill:#ffedd5;stroke:var(--k5614-b);stroke-width:1.5}
.arch-lab .k5614 .k5614-c{fill:#dcfce7;stroke:var(--k5614-c);stroke-width:1.5}
.arch-lab .k5614 .k5614-spent{fill:#fff;stroke:#94a3b8;stroke-width:1.3;stroke-dasharray:3 2}
.arch-lab .k5614 .k5614-over{fill:#fecaca;stroke:var(--k5614-over);stroke-width:2}
.arch-lab .k5614 .k5614-cross{stroke:var(--k5614-over);stroke-width:2}
.arch-lab .k5614 .k5614-board{fill:#1f5f43;stroke:#92400e;stroke-width:5}
.arch-lab .k5614 .k5614-now{fill:none;stroke:#fde047;stroke-width:2.5}
.arch-lab .k5614 svg text.k5614-word{fill:#1f2937;font-size:13px;font-weight:700;stroke:none}
.arch-lab .k5614 svg text.k5614-head{fill:#f8fafc;stroke:none;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.arch-lab .k5614 svg text.k5614-chalk{fill:#f8fafc;stroke:none;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
.arch-lab .k5614 svg text.k5614-empty{fill:#cbd5e1;stroke:none;font-size:14px}
.arch-lab .k5614 svg text.k5614-chip{fill:#111827;stroke:none;font-size:13px;font-weight:600}
.arch-lab .k5614 svg text.k5614-chipbad{fill:#991b1b}
.arch-lab .k5614 svg text.k5614-small{fill:#475569;stroke:none;font-size:13px}
.arch-lab .k5614 .k5614-card{fill:#fef3c7;stroke:#b45309;stroke-width:2}
.arch-lab .k5614 .k5614-used{fill:#f1f5f9;stroke:#94a3b8;stroke-dasharray:4 3}
.arch-lab .k5614 svg text.k5614-num{fill:#111827;font-size:17px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5614 svg text.k5614-dim{fill:#94a3b8}
.arch-lab .k5614 .k5614-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k5614 .k5614-hit:focus-visible{outline:none;stroke:#111827;stroke-width:2;stroke-dasharray:4 3}
.arch-lab .k5614 .mf-sw.k5614-sw-a{background:#dbeafe;border:1.5px solid var(--k5614-a)}
.arch-lab .k5614 .mf-sw.k5614-sw-b{background:#ffedd5;border:1.5px solid var(--k5614-b)}
.arch-lab .k5614 .mf-sw.k5614-sw-c{background:#dcfce7;border:1.5px solid var(--k5614-c)}
.arch-lab .k5614 .mf-sw.k5614-sw-spent{background:#fff;border:1.5px dashed #94a3b8}
.arch-lab .k5614 .mf-sw.k5614-sw-over{background:#fecaca;border:2px solid var(--k5614-over)}

/* «Смарт Кенгуру» 2026, 5–6 №15 — шифр Смартика (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k5615{--k5615-bad:#dc2626}
.arch-lab .k5615 .k5615-paper{fill:#fffdf8}
.arch-lab .k5615 .k5615-tape{stroke-width:2}
.arch-lab .k5615 .k5615-c0{fill:#dbeafe;stroke:#1d4ed8}.arch-lab .k5615 .k5615-c1{fill:#ffedd5;stroke:#c2410c}
.arch-lab .k5615 .k5615-c2{fill:#dcfce7;stroke:#047857}.arch-lab .k5615 .k5615-c3{fill:#ede9fe;stroke:#6d28d9}
.arch-lab .k5615 .k5615-c4{fill:#fce7f3;stroke:#be185d}
.arch-lab .k5615 .k5615-tapebad{fill:#fee2e2;stroke:var(--k5615-bad);stroke-width:2;stroke-dasharray:6 3}
.arch-lab .k5615 .k5615-seam{stroke:#64748b;stroke-width:1.2;stroke-dasharray:2 3}
.arch-lab .k5615 .k5615-cutline{stroke:var(--k5615-bad);stroke-width:3;stroke-dasharray:5 3;pointer-events:none}
.arch-lab .k5615 svg text.k5615-scissors{fill:var(--k5615-bad);font-size:15px;stroke:none;pointer-events:none}
.arch-lab .k5615 svg text.k5615-code{fill:#111827;font-size:26px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5615 .k5615-br,.arch-lab .k5615 .k5615-brbad,.arch-lab .k5615 .k5615-arc,.arch-lab .k5615 .k5615-arcoff{fill:none;stroke-width:2.2}
.arch-lab .k5615 .k5615-brbad{stroke:var(--k5615-bad)}
.arch-lab .k5615 .k5615-arcoff{stroke:#cbd5e1;stroke-dasharray:3 3}
.arch-lab .k5615 .k5615-arcwait{stroke-dasharray:4 4;opacity:.55}
.arch-lab .k5615 .k5615-s0{stroke:#1d4ed8}.arch-lab .k5615 .k5615-s1{stroke:#c2410c}.arch-lab .k5615 .k5615-s2{stroke:#047857}
.arch-lab .k5615 .k5615-s3{stroke:#6d28d9}.arch-lab .k5615 .k5615-s4{stroke:#be185d}
.arch-lab .k5615 svg text.k5615-sum{font-size:15px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5615 svg text.k5615-t0{fill:#1d4ed8}.arch-lab .k5615 svg text.k5615-t1{fill:#c2410c}.arch-lab .k5615 svg text.k5615-t2{fill:#047857}
.arch-lab .k5615 svg text.k5615-t3{fill:#6d28d9}.arch-lab .k5615 svg text.k5615-t4{fill:#be185d}
.arch-lab .k5615 svg text.k5615-sumbad{fill:#b91c1c;font-size:14px;font-weight:700;stroke:none}
.arch-lab .k5615 svg text.k5615-head{fill:#334155;font-size:13px;font-weight:700;stroke:none}
.arch-lab .k5615 svg text.k5615-tiny{fill:#64748b;font-size:13px;stroke:none}
.arch-lab .k5615 .k5615-digit{fill:#fef3c7;stroke:#b45309;stroke-width:2}
.arch-lab .k5615 .k5615-dbad{fill:#fecaca;stroke:var(--k5615-bad);stroke-width:2.5}
.arch-lab .k5615 .k5615-dempty{fill:#f8fafc;stroke:#94a3b8;stroke-width:1.5;stroke-dasharray:4 3}
.arch-lab .k5615 .k5615-whole{fill:none;stroke:#16a34a;stroke-width:3}
.arch-lab .k5615 svg text.k5615-dv{fill:#111827;font-size:24px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5615 svg text.k5615-dvbad{fill:#991b1b;font-size:22px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5615 svg text.k5615-dq{fill:#94a3b8;font-size:20px;stroke:none}
.arch-lab .k5615 svg text.k5615-f{fill:#111827;font-size:17px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5615 svg text.k5615-fbad{fill:#b91c1c;font-size:17px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5615 .k5615-note{fill:#f1f5f9;stroke:#94a3b8;stroke-width:1.2}
.arch-lab .k5615 svg text.k5615-nhead{fill:#1f2937;font-size:14px;font-weight:700;stroke:none}
.arch-lab .k5615 .k5615-tile{fill:#16a34a;stroke:#166534;stroke-width:1.5;cursor:pointer}
.arch-lab .k5615 .k5615-tile:focus-visible{outline:none;stroke:#111827;stroke-width:2.5}
.arch-lab .k5615 svg text.k5615-tilet{fill:#fff;font-size:13px;font-weight:700;stroke:none}
.arch-lab .k5615 .k5615-chipr{fill:#fff;stroke:#16a34a;stroke-width:1.5}
.arch-lab .k5615 .k5615-chipnow{fill:#dcfce7}
.arch-lab .k5615 svg text.k5615-chip{fill:#14532d;font-size:14px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k5615 .k5615-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k5615 .k5615-hit:focus-visible{outline:none;stroke:#111827;stroke-width:2;stroke-dasharray:4 3}
.arch-lab .k5615 .mf-sw.k5615-sw-tape{background:linear-gradient(90deg,#dbeafe 0 50%,#ffedd5 50%);border:1.5px solid #1d4ed8}
.arch-lab .k5615 .mf-sw.k5615-sw-digit{background:#fef3c7;border:2px solid #b45309}
.arch-lab .k5615 .mf-sw.k5615-sw-bad{background:#fecaca;border:2px solid var(--k5615-bad)}
.arch-lab .k5615 .mf-sw.k5615-sw-cut{background:linear-gradient(90deg,#fff 0 40%,var(--k5615-bad) 40% 60%,#fff 60%);border:1.5px solid #64748b}

/* «Смарт Кенгуру» 2026, 5–6 №16 — квадрат 5×5 из квадратов (Fable round, 10.11.2026). */
.k5616 .k5616-cell{fill:#fff;stroke:#cbd5e1;stroke-width:1.2}
.k5616 .k5616-frame{fill:none;stroke:#1f2937;stroke-width:2.5}
.k5616 .k5616-mark{fill:#7c3aed;stroke:#fff;stroke-width:2}
.k5616 svg text.k5616-even{fill:#6d28d9;font-size:14px;font-weight:700}
.k5616 svg text.k5616-mk{fill:#5b21b6;font-size:13px;font-weight:700}
.k5616 .kg-sw.k5616-sw-mark{background:#7c3aed;border-color:#7c3aed;border-radius:50%;width:14px;height:14px}

/* «Смарт Кенгуру» 2026, 5–6 №17 — кабинеты-полки и тележка. Сцена светлая в обеих темах. */
.k5617 .k5617-shelf{fill:#fff;stroke:#1f2937;stroke-width:1.5}
.k5617 .k5617-b2{fill:#fdba74;stroke:#9a3412;stroke-width:1}.k5617 .k5617-b3{fill:#86efac;stroke:#166534;stroke-width:1}.k5617 .k5617-b4{fill:#fca5a5;stroke:#991b1b;stroke-width:1}
.k5617 .k5617-cart{stroke:#1f2937;stroke-width:3;stroke-linecap:round}.k5617 .k5617-wheel{fill:#1f2937}
.k5617 .k5617-tri{fill:#f59e0b}.k5617 .k5617-half{fill:#7c3aed}
.k5617 .kg-sw.k5617-sw-tri{background:#f59e0b;border-color:#92400e}.k5617 .kg-sw.k5617-sw-half{background:#7c3aed;border-color:#4c1d95}
.k5617-verdict p{display:flex;gap:8px;align-items:baseline;margin:4px 0;font-size:15px;line-height:1.35}.k5617-verdict .kg-sw{position:relative;top:2px}
.k5617-steps{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px}
.k5617-room{display:flex;align-items:center;gap:6px;font-size:14px}.k5617-room span{flex:1 1 auto;white-space:nowrap}

/* «Смарт Кенгуру» 2026, 5–6 №18 — ящики с яблоками и корзина. Сцена светлая в обеих темах. */
.k5618 .k5618-crate{fill:#fff;stroke:#1f2937;stroke-width:1.5}
.k5618 .k5618-red{fill:#ef4444;stroke:#7f1d1d;stroke-width:1.5}.k5618 .k5618-green{fill:#84cc16;stroke:#365314;stroke-width:1.5}
.k5618 .k5618-stem{fill:none;stroke:#78350f;stroke-width:2;stroke-linecap:round}
.k5618 .k5618-leaf-sour{fill:#fde047;stroke:#854d0e;stroke-width:1}.k5618 .k5618-leaf-sweet{fill:#16a34a;stroke:#14532d;stroke-width:1}
.k5618 .k5618-shine{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;opacity:.75}
.k5618 .k5618-basket{fill:#fef3c7;stroke:#92400e;stroke-width:2}
.k5618 .k5618-out .k5618-crate{fill:#f1f5f9;stroke:#64748b;stroke-dasharray:5 4}.k5618 .k5618-out circle,.k5618 .k5618-out path{opacity:.45}
.k5618 .k5618-strike{stroke:#b91c1c;stroke-width:3;stroke-linecap:round}
.k5618 .kg-legend .kg-sw.k5618-sw-red{background:#ef4444;border-color:#7f1d1d;border-radius:50%}.k5618 .kg-legend .kg-sw.k5618-sw-green{background:#84cc16;border-color:#365314;border-radius:50%}
.k5618 .kg-legend .kg-sw.k5618-sw-sour{background:#fde047;border-color:#854d0e}.k5618 .kg-legend .kg-sw.k5618-sw-sweet{background:#16a34a;border-color:#14532d}
.k5618-verdict p{margin:4px 0;font-size:15px;line-height:1.35}.k5618-found{margin:6px 0;font-size:15px;line-height:1.35;font-weight:600}

/* «Смарт Кенгуру» 2026, 5–6 №19 — игра с числом 35842971 (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k5619 .k5619-paper{fill:#fffdf8}
.arch-lab .k5619 .k5619-card{fill:#eff6ff;stroke:#1d4ed8;stroke-width:1.8}
.arch-lab .k5619 .k5619-card.k5619-pick{fill:#fde68a;stroke:#92400e;stroke-width:3.2}
.arch-lab .k5619 .k5619-card.k5619-gone{fill:#fee2e2;stroke:#b91c1c;stroke-width:2.6}
.arch-lab .k5619 .k5619-row{fill:#f8fafc;stroke:#94a3b8;stroke-width:1.2}
.arch-lab .k5619 .k5619-row.k5619-best{fill:#ecfdf5;stroke:#047857;stroke-width:1.8}
.arch-lab .k5619 .k5619-row.k5619-weak{fill:#fff7ed;stroke:#c2410c;stroke-width:1.8}
.arch-lab .k5619 .k5619-tick{fill:none;stroke:#047857;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.arch-lab .k5619 .k5619-cross{fill:none;stroke:#c2410c;stroke-width:2.6;stroke-linecap:round}
.arch-lab .k5619 svg text{stroke:none;pointer-events:none;font-variant-numeric:tabular-nums}
.arch-lab .k5619 svg text.k5619-title{fill:#1f2937;font-size:14px;font-weight:700}
.arch-lab .k5619 svg text.k5619-digit{fill:#111827;font-size:22px;font-weight:700}
.arch-lab .k5619 svg text.k5619-rowt{fill:#1f2937;font-size:14px;font-weight:600}
.arch-lab .k5619 svg text.k5619-rown{fill:#111827;font-size:15px;font-weight:700}
.arch-lab .k5619 .k5619-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k5619 .k5619-hit:focus-visible{outline:none;stroke:#1d4ed8;stroke-width:2.5;stroke-dasharray:5 3}
.arch-lab .k5619 .mf-sw.k5619-sw-card{background:#eff6ff;border:1.8px solid #1d4ed8}
.arch-lab .k5619 .mf-sw.k5619-sw-pick{background:#fde68a;border:3px solid #92400e}
.arch-lab .k5619 .mf-sw.k5619-sw-best{background:#ecfdf5;border:1.8px solid #047857}
.arch-lab .k5619 .mf-sw.k5619-sw-weak{background:#fff7ed;border:1.8px solid #c2410c}

/* «Смарт Кенгуру» 2026, 5–6 №2 — дюжины и десятки (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k562{--k562-ten:#b91c1c;--k562-dozen:#1d4ed8;--k562-egg:#f6cf8f;--k562-shell:#7c2d12}
.arch-lab .k562 .k562-paper{fill:#fffdf8}
.arch-lab .k562 .k562-tray{fill:#eef2f7;stroke:#94a3b8;stroke-width:1}
.arch-lab .k562 .k562-egg{fill:var(--k562-egg);stroke:var(--k562-shell);stroke-width:1.2}
.arch-lab .k562 .k562-gone{fill:#fffdf8;stroke:#64748b;stroke-width:1;stroke-dasharray:2 2}
.arch-lab .k562 .k562-ten{fill:none;stroke:var(--k562-ten);stroke-width:2}
.arch-lab .k562 .k562-dozen{fill:none;stroke:var(--k562-dozen);stroke-width:2.5}
.arch-lab .k562 svg text.k562-head{fill:#1f2937;font-size:14px;font-weight:700}
.arch-lab .k562 .mf-sw.k562-sw-egg{background:var(--k562-egg);border-color:var(--k562-shell);border-radius:50%}
.arch-lab .k562 .mf-sw.k562-sw-gone{background:#fffdf8;border:1.5px dashed #64748b;border-radius:50%}
.arch-lab .k562 .mf-sw.k562-sw-ten{background:none;border:2px solid var(--k562-ten)}
.arch-lab .k562 .mf-sw.k562-sw-dozen{background:none;border:2.5px solid var(--k562-dozen)}

/* «Смарт Кенгуру» 2026, 5–6 №20 — три кубика: объёмная сцена и блокнот пар. Сцена светлая в обеих темах. */
.k5620 .k5620-face{fill:#fff}.k5620 .k5620-grey{fill:#9ca3af}.k5620 .k5620-unknown{fill:#e2e8f0}
.k5620 .k5620-ink{fill:#1f2937}.k5620 .k5620-edge{fill:none;stroke:#1f2937;stroke-width:2;stroke-linejoin:round}
.k5620 .k5620-mark{fill:#ea580c;stroke:#fff;stroke-width:2}
.k5620 .k5620-scene{position:relative;border:1px solid var(--arch-border,#cbd5e1);border-radius:12px;overflow:hidden;background:#f8fafc}
.k5620 .k5620-3d{width:100%;aspect-ratio:1/0.62;outline-offset:2px}
.k5620 .k5620-3d canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.k5620 .k5620-tag{position:absolute;left:10px;top:8px;min-width:10.5em;padding:3px 9px;border-radius:999px;background:rgba(255,255,255,.92);color:#1f2937;font-weight:700;font-size:14px;pointer-events:none}
.k5620 .k5620-hint{margin:6px 0 0;font-size:14px}
.k5620 .k5620-views{margin:8px 0 0}
.k5620 .k5620-book{margin:12px 0 0;padding:10px 12px;border:1px solid var(--arch-border,#cbd5e1);border-radius:12px}
.k5620 .k5620-book-title{margin:0 0 8px;font-weight:700;font-size:15px;line-height:1.35}
.k5620 .k5620-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,56px));gap:8px}
.k5620 .k5620-tile{position:relative;width:100%;aspect-ratio:1;padding:9%;border:2px solid #94a3b8;border-radius:10px;background:#f8fafc;cursor:pointer}
.k5620 .k5620-tile[aria-pressed="true"]{border-color:#ea580c;box-shadow:0 0 0 3px rgba(234,88,12,.3)}
.k5620 .k5620-tile[data-pair="1"]{border-color:#1d4ed8}.k5620 .k5620-tile[data-pair="2"]{border-color:#15803d}.k5620 .k5620-tile[data-pair="3"]{border-color:#7c3aed}
.k5620 .k5620-icon{display:block;width:100%;height:100%}.k5620 .k5620-icon .kg-line{stroke:#1f2937;stroke-width:2}
.k5620 .k5620-badge{position:absolute;right:-7px;top:-8px;min-width:20px;height:20px;border-radius:10px;color:#fff;font-weight:800;font-size:13px;line-height:20px;text-align:center}
.k5620 .k5620-badge:empty{display:none}
.k5620 .k5620-tile[data-pair="1"] .k5620-badge{background:#1d4ed8}.k5620 .k5620-tile[data-pair="2"] .k5620-badge{background:#15803d}.k5620 .k5620-tile[data-pair="3"] .k5620-badge{background:#7c3aed}
.k5620 .k5620-pairs{margin:8px 0 0;min-height:2.7em;font-size:15px;line-height:1.35}
.k5620 .arch-result{min-height:7em}
.k5620 .k5620-sw-q{display:inline-block;width:18px;height:18px;border:1.5px solid #1f2937;background:#e2e8f0;color:#475569;font-weight:800;font-size:13px;line-height:16px;text-align:center}
.k5620 .k5620-sw-dot{display:inline-block;width:14px;height:14px;margin:0 2px;border-radius:50%;background:#ea580c}
@media (max-width:700px){.k5620 .arch-result{min-height:8.3em}}
@media (max-width:560px){
 .k5620 .k5620-3d{aspect-ratio:1/0.8}
 .k5620 .k5620-tiles{gap:6px}
 .k5620 .k5620-pairs{min-height:5.4em}.k5620 .arch-result{min-height:11.4em}
}
@media (max-width:340px){.k5620 .arch-result{min-height:14.5em}}

/* «Смарт Кенгуру» 2026, 5–6 №3 — буквы по стрелкам (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k563{--k563-go:#c2410c;--k563-read:#d1fae5;--k563-ok:#047857}
.arch-lab .k563 .k563-paper{fill:#fffdf8}
.arch-lab .k563 .k563-arc{fill:none;stroke:#1f2937;stroke-width:2}
.arch-lab .k563 .k563-head{stroke:#1f2937;stroke-width:2;fill:#1f2937}
.arch-lab .k563 .k563-arc.k563-on{stroke:var(--k563-go);stroke-width:3.5}
.arch-lab .k563 .k563-head.k563-on{stroke:var(--k563-go);fill:var(--k563-go)}
.arch-lab .k563 .k563-cell{fill:#fff;stroke:#1f2937;stroke-width:2}
.arch-lab .k563 .k563-cell.k563-read{fill:var(--k563-read);stroke:var(--k563-ok)}
.arch-lab .k563 .k563-cell.k563-here{stroke:var(--k563-go);stroke-width:3.5}
.arch-lab .k563 .k563-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k563 .k563-hit:focus-visible{outline:none;stroke:#1d4ed8;stroke-width:2.5;stroke-dasharray:5 3}
.arch-lab .k563 .k563-reader{fill:var(--k563-go);stroke:#fff;stroke-width:2;pointer-events:none}
.arch-lab .k563 .k563-slot{fill:#fff;stroke:#94a3b8;stroke-width:1.2}
.arch-lab .k563 .k563-slot.k563-need{fill:#eef2f7}
.arch-lab .k563 .k563-slot.k563-got{fill:var(--k563-read);stroke:var(--k563-ok)}
.arch-lab .k563 svg text{pointer-events:none}
.arch-lab .k563 svg text.k563-num{fill:#475569;font-size:13px;font-weight:600}
.arch-lab .k563 svg text.k563-letter{fill:#111827;font-weight:700}
.arch-lab .k563 svg text.k563-cap{fill:#1f2937;font-size:14px;font-weight:700}
.arch-lab .k563 svg text.k563-slot-t{fill:#111827;font-size:18px;font-weight:700}
.arch-lab .k563 .mf-sw.k563-sw-reader{background:var(--k563-go);border-color:#fff;border-radius:50%}
.arch-lab .k563 .mf-sw.k563-sw-read{background:var(--k563-read);border:2px solid var(--k563-ok)}
.arch-lab .k563 .mf-sw.k563-sw-num{background:none;border:0;color:inherit;font-size:13px;font-weight:700;line-height:1;display:inline-flex;align-items:center;justify-content:center}

/* «Смарт Кенгуру» 2026, 5–6 №4 — скобки шифра (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k564{--k564-round:#1d4ed8;--k564-square:#c2410c;--k564-new:#047857;--k564-stair:#6d28d9}
.arch-lab .k564 .k564-paper{fill:#fffdf8}
.arch-lab .k564 .k564-grid{stroke:#dbeafe;stroke-width:1}
.arch-lab .k564 svg text.k564-rule{font-size:15px;font-weight:700;paint-order:stroke;stroke:#fffdf8;stroke-width:4px}
.arch-lab .k564 svg text.k564-sign{fill:#1f2937;font-weight:700;font-variant-numeric:tabular-nums;paint-order:stroke;stroke:#fffdf8;stroke-width:4px}
.arch-lab .k564 svg text.k564-round{fill:var(--k564-round)}
.arch-lab .k564 svg text.k564-square{fill:var(--k564-square)}
.arch-lab .k564 svg text.k564-digit{fill:#1f2937}
.arch-lab .k564 .k564-frame{stroke-width:2}
.arch-lab .k564 .k564-fr{fill:rgba(29,78,216,.10);stroke:var(--k564-round)}
.arch-lab .k564 .k564-fs{fill:rgba(194,65,12,.12);stroke:var(--k564-square)}
.arch-lab .k564 .k564-new{fill:#d1fae5;stroke:var(--k564-new);stroke-width:2}
.arch-lab .k564 .k564-level{stroke:#94a3b8;stroke-width:1;stroke-dasharray:3 3}
.arch-lab .k564 .k564-stair{fill:none;stroke:var(--k564-stair);stroke-width:2.5;stroke-linejoin:round}
.arch-lab .k564 .k564-reader{stroke:#dc2626;stroke-width:2}
.arch-lab .k564 svg text.k564-log{fill:#1f2937;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;paint-order:stroke;stroke:#fffdf8;stroke-width:4px}
.arch-lab .k564 .k564-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k564 .k564-hit:focus-visible{outline:none;stroke:#111827;stroke-width:2;stroke-dasharray:4 3}
.arch-lab .k564 .mf-sw.k564-sw-round{background:rgba(29,78,216,.10);border:2px solid var(--k564-round)}
.arch-lab .k564 .mf-sw.k564-sw-square{background:rgba(194,65,12,.12);border:2px solid var(--k564-square)}
.arch-lab .k564 .mf-sw.k564-sw-new{background:#d1fae5;border:2px solid var(--k564-new)}
.arch-lab .k564 .mf-sw.k564-sw-stair{height:0;border:0;border-top:3px solid var(--k564-stair);border-radius:0;background:none}

/* «Смарт Кенгуру» 2026, 5–6 №5 — лабиринт (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k565 .k565-paper{fill:#fffdf8}
.arch-lab .k565 .k565-reach{fill:#fde68a}
.arch-lab .k565 .k565-front{fill:#fb923c}
.arch-lab .k565 .k565-out{fill:#bfdbfe}
.arch-lab .k565 .k565-home{fill:#cbd5e1}
.arch-lab .k565 .k565-wall{stroke:#1f2937;stroke-width:3;stroke-linecap:square}
.arch-lab .k565 .k565-broken{stroke:#b91c1c;stroke-width:2.5;stroke-dasharray:4 3}
.arch-lab .k565 .k565-path{fill:none;stroke:#047857;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.arch-lab .k565 .k565-ant{fill:#7c2d12;stroke:none}
.arch-lab .k565 .k565-leg{stroke:#7c2d12;stroke-width:1.3;stroke-linecap:round}
.arch-lab .k565 svg text.k565-name{fill:#111827;font-weight:700;font-style:italic;paint-order:stroke;stroke:#fffdf8;stroke-width:3px}
.arch-lab .k565 .mf-sw.k565-sw-ant{background:#cbd5e1;border-color:#64748b}
.arch-lab .k565 .mf-sw.k565-sw-reach{background:#fde68a;border-color:#b45309}
.arch-lab .k565 .mf-sw.k565-sw-front{background:#fb923c;border-color:#b45309}
.arch-lab .k565 .mf-sw.k565-sw-out{background:#bfdbfe;border-color:#1d4ed8}
.arch-lab .k565 .mf-sw.k565-sw-broken{height:0;border:0;border-top:3px dashed #b91c1c;border-radius:0;background:none}

/* «Смарт Кенгуру» 2026, 5–6 №6 — чётные и нечётные (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k566{--k566-even:#1d4ed8;--k566-odd:#c2410c}
.arch-lab .k566 .k566-paper{fill:#fffdf8}
.arch-lab .k566 .k566-board{fill:#1f5f43;stroke:#92400e;stroke-width:6}
.arch-lab .k566 .k566-shelf{fill:#92400e}
.arch-lab .k566 .k566-chalk{fill:#f8fafc;stroke:#94a3b8;stroke-width:1}
.arch-lab .k566 .k566-even{fill:#dbeafe;stroke:var(--k566-even);stroke-width:1.5}
.arch-lab .k566 .k566-odd{fill:#ffedd5;stroke:var(--k566-odd);stroke-width:1.5}
.arch-lab .k566 .k566-now{stroke:#fde047;stroke-width:3.5}
.arch-lab .k566 svg text.k566-cellnum{fill:#1f2937;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.arch-lab .k566 svg text.k566-tilenum{fill:#1f2937;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.arch-lab .k566 svg text.k566-head{fill:#f8fafc;stroke:none;font-size:15px;font-weight:700}
.arch-lab .k566 svg text.k566-note{fill:#e2e8f0;stroke:none;font-size:13px}
.arch-lab .k566 .k566-arc{fill:none;stroke:#f8fafc;stroke-width:2;stroke-dasharray:5 4}
.arch-lab .k566 .k566-disc{stroke-width:2.5}
.arch-lab .k566 .k566-deven{fill:#bfdbfe;stroke:var(--k566-even)}
.arch-lab .k566 .k566-dodd{fill:#fed7aa;stroke:var(--k566-odd)}
.arch-lab .k566 svg text.k566-discnum{fill:#111827;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.arch-lab .k566 .mf-sw.k566-sw-even{background:#dbeafe;border-color:var(--k566-even)}
.arch-lab .k566 .mf-sw.k566-sw-odd{background:#ffedd5;border-color:var(--k566-odd)}
.arch-lab .k566 .mf-sw.k566-sw-hop{border:1.5px solid #92400e;background:repeating-linear-gradient(to right,#f8fafc 0 4px,#1f5f43 4px 7px) center/100% 3px no-repeat,#1f5f43}

/* «Смарт Кенгуру» 2026, 5–6 №7 — солдатик на компасе, вид сверху. Сцена светлая в обеих темах. */
.k567 .k567-ground{fill:#eef6e9;stroke:#1f2937;stroke-width:1.5}
.k567 .k567-tick{stroke:#64748b;stroke-width:1.5}
.k567 svg text.k567-dir{fill:#334155;font-size:15px;font-weight:700}
.k567 svg text.k567-dir-on{fill:#1f2937}
.k567 .k567-lit{fill:#fde68a;stroke:#b45309;stroke-width:1.5}
.k567 .k567-ribbon{fill:none;stroke:#1d4ed8;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.k567 .k567-ribbon-r{stroke:#c2410c}
.k567 .k567-peg{stroke:#1f2937;stroke-width:2}
.k567 .k567-peg-dot{fill:#1f2937}
.k567 .k567-arm{stroke:#b91c1c;stroke-width:5;stroke-linecap:round}
.k567 .k567-hand{fill:#fcd9b6;stroke:#1f2937;stroke-width:1.5}
.k567 .k567-coat{fill:#dc2626;stroke:#1f2937;stroke-width:1.5}
.k567 .k567-rifle{stroke:#57534e;stroke-width:3;stroke-linecap:round}
.k567 .k567-shako{fill:#1f2937;stroke:#0f172a;stroke-width:1}
.k567 .k567-visor{fill:#111827;stroke:#0f172a;stroke-width:1}
.k567 .k567-plume{fill:#facc15;stroke:#854d0e;stroke-width:1}
.k567 .k567-ic-arc{fill:none;stroke:#1f2937;stroke-width:2}
.k567 .k567-ic-head{fill:#1f2937;stroke:none}
.k567 .k567-chip{stroke-width:1.5}
.k567 .k567-chip-left{fill:#bfdbfe;stroke:#1d4ed8}
.k567 .k567-chip-right{fill:#fed7aa;stroke:#c2410c}
.k567 .k567-chip-about{fill:#ddd6fe;stroke:#6d28d9}
.k567 .k567-chip.k567-used{fill:#fffdf8;stroke-dasharray:3 2}
.k567 .k567-pair{stroke:#047857;stroke-width:3;stroke-linecap:round}
.k567 svg text.k567-idea{fill:#166534;font-size:14px;font-weight:700}
.kg-lab .kg-legend .kg-sw.k567-sw-ribbon{height:0;border-width:4px 0 0;border-radius:0;background:none;border-color:#1d4ed8}
.kg-lab .kg-legend .kg-sw.k567-sw-ribbon-r{height:0;border-width:4px 0 0;border-radius:0;background:none;border-color:#c2410c}
.kg-lab .kg-legend .kg-sw.k567-sw-pair{width:0;height:16px;border-width:0 0 0 4px;border-radius:0;background:none;border-color:#047857;margin:0 8px}

/* «Смарт Кенгуру» 2026, 5–6 №8 — части прямоугольника (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k568 .k568-paper{fill:#fffdf8}
.arch-lab .k568 .k568-sheet{fill:#ffffff;stroke:none}
.arch-lab .k568 .k568-paint{stroke:none}
.arch-lab .k568 .k568-line{stroke:#1f2937;stroke-width:3;stroke-linecap:square}
.arch-lab .k568 .k568-drop{stroke:#1f2937;stroke-width:2}
.arch-lab .k568 svg text.k568-num{fill:#111827;font-size:13px;font-weight:700;stroke:none;pointer-events:none}
.arch-lab .k568 .k568-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k568 .mf-sw.k568-sw-drop{background:#fca5a5;border:2px solid #1f2937;border-radius:50%}
.arch-lab .k568 .mf-sw.k568-sw-line{border:1.5px solid #94a3b8;background:linear-gradient(to bottom,#fff 38%,#1f2937 38%,#1f2937 62%,#fff 62%)}
.arch-lab .k568 .mf-sw.k568-sw-white{background:#ffffff;border:1.5px solid #94a3b8}
/* Sergey 14.11.2026: the big line under the sheet when everything is painted; its place is always kept */
.k568 .k568-big{margin:.6rem 0 0;min-height:2.6em;display:flex;align-items:center;justify-content:center;text-align:center;font-size:clamp(18px,4.6vw,24px);font-weight:800;line-height:1.25;color:inherit;visibility:hidden}
.k568 .k568-big.k568-big-on{visibility:visible}

/* «Смарт Кенгуру» 2026, 5–6 №9 — самое маленькое трёхзначное (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k569 .k569-paper{fill:#fffdf8}
.arch-lab .k569 .k569-table{fill:#ecfdf5;stroke:#6ee7b7;stroke-width:1.5}
.arch-lab .k569 .k569-card{fill:#fef3c7;stroke:#b45309;stroke-width:2}
.arch-lab .k569 .k569-used{fill:#f1f5f9;stroke:#94a3b8;stroke-dasharray:4 3}
.arch-lab .k569 svg text.k569-digit{fill:#111827;font-size:28px;font-weight:700;stroke:none}
.arch-lab .k569 svg text.k569-dim{fill:#94a3b8}
.arch-lab .k569 .k569-badge{fill:#1d4ed8;stroke:#fff;stroke-width:1.5}
.arch-lab .k569 svg text.k569-badgenum{fill:#fff;font-size:13px;font-weight:700;stroke:none}
.arch-lab .k569 .k569-slot{fill:#fff;stroke:#64748b;stroke-width:2;stroke-dasharray:5 4}
.arch-lab .k569 .k569-full{fill:#fef3c7;stroke:#b45309;stroke-dasharray:none}
.arch-lab .k569 svg text.k569-big{fill:#111827;font-size:30px;font-weight:700;stroke:none}
.arch-lab .k569 .k569-ray{stroke:#1f2937;stroke-width:2}
.arch-lab .k569 .k569-tick{stroke:#1f2937;stroke-width:2}
.arch-lab .k569 .k569-mark{stroke:#7c3aed;stroke-width:2}
.arch-lab .k569 .k569-pole{stroke:#b91c1c;stroke-width:2}
.arch-lab .k569 .k569-flag{fill:#fecaca;stroke:#b91c1c;stroke-width:1.5}
.arch-lab .k569 svg text.k569-flagnum{fill:#111827;font-size:13px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k569 svg text.k569-small{fill:#475569;font-size:13px;stroke:none}
.arch-lab .k569 .k569-res{fill:#fff;stroke:#cbd5e1;stroke-width:1.5}
.arch-lab .k569 .k569-cur{stroke:#1d4ed8;stroke-width:2.5}
.arch-lab .k569 svg text.k569-resl{font-weight:700;fill:#1f2937}
.arch-lab .k569 svg text.k569-resnum{fill:#111827;font-size:16px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k569 .k569-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k569 .k569-hit:focus-visible{outline:none;stroke:#111827;stroke-width:2;stroke-dasharray:4 3}
.arch-lab .k569 .mf-sw.k569-sw-card{background:#fef3c7;border:2px solid #b45309}
.arch-lab .k569 .mf-sw.k569-sw-used{background:#f1f5f9;border:1.5px dashed #94a3b8}
.arch-lab .k569 .mf-sw.k569-sw-mark{width:0;border:0;border-left:3px solid #7c3aed;border-radius:0;background:none}
.arch-lab .k569 .mf-sw.k569-sw-flag{background:#fecaca;border:1.5px solid #b91c1c}

/* «Смарт Кенгуру» 2026, 7–8 №1 — имя по стрелкам (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k781{--k781-go:#c2410c;--k781-read:#d1fae5;--k781-ok:#047857}
.arch-lab .k781 .k781-paper{fill:#fffdf8}
.arch-lab .k781 .k781-arc{fill:none;stroke:#1f2937;stroke-width:2}
.arch-lab .k781 .k781-head{stroke:#1f2937;stroke-width:2;fill:#1f2937}
.arch-lab .k781 .k781-arc.k781-on{stroke:var(--k781-go);stroke-width:3.5}
.arch-lab .k781 .k781-head.k781-on{stroke:var(--k781-go);fill:var(--k781-go)}
.arch-lab .k781 .k781-cell{fill:#fff;stroke:#1f2937;stroke-width:2}
.arch-lab .k781 .k781-cell.k781-read{fill:var(--k781-read);stroke:var(--k781-ok)}
.arch-lab .k781 .k781-cell.k781-here{stroke:var(--k781-go);stroke-width:3.5}
.arch-lab .k781 .k781-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k781 .k781-hit:focus-visible{outline:none;stroke:#1d4ed8;stroke-width:2.5;stroke-dasharray:5 3}
.arch-lab .k781 .k781-reader{fill:var(--k781-go);stroke:#fff;stroke-width:2;pointer-events:none}
.arch-lab .k781 .k781-slot{fill:#fff;stroke:#94a3b8;stroke-width:1.2}
.arch-lab .k781 .k781-slot.k781-need{fill:#eef2f7}
.arch-lab .k781 .k781-slot.k781-got{fill:var(--k781-read);stroke:var(--k781-ok)}
.arch-lab .k781 svg text{pointer-events:none}
.arch-lab .k781 svg text.k781-num{fill:#475569;font-size:13px;font-weight:600}
.arch-lab .k781 svg text.k781-letter{fill:#111827;font-weight:700}
.arch-lab .k781 svg text.k781-cap{fill:#1f2937;font-size:14px;font-weight:700}
.arch-lab .k781 svg text.k781-slot-t{fill:#111827;font-size:18px;font-weight:700}
.arch-lab .k781 .mf-sw.k781-sw-reader{background:var(--k781-go);border-color:#fff;border-radius:50%}
.arch-lab .k781 .mf-sw.k781-sw-read{background:var(--k781-read);border:2px solid var(--k781-ok)}
.arch-lab .k781 .mf-sw.k781-sw-num{background:none;border:0;color:inherit;font-size:13px;font-weight:700;line-height:1;display:inline-flex;align-items:center;justify-content:center}

/* «Смарт Кенгуру» 2026, 7–8 №10 — сумма на карточках и шкала первой цифры. Сцена светлая в обеих темах. */
.k7810 .k7810-num{border-top:1px solid var(--arch-line,#cbd5e1);padding-top:.5rem;margin-top:.5rem;border-left:5px solid #94a3b8;padding-left:.6rem}
.k7810 .k7810-num-a{border-left-color:#2563eb}.k7810 .k7810-num-b{border-left-color:#7c3aed}.k7810 .k7810-num-c{border-left-color:#ea580c}
.k7810 .k7810-card{fill:#fff;stroke:#334155;stroke-width:1.5}
.k7810 .k7810-first-a{fill:#bfdbfe;stroke:#1d4ed8;stroke-width:2.2}.k7810 .k7810-first-b{fill:#ddd6fe;stroke:#6d28d9;stroke-width:2.2}.k7810 .k7810-first-c{fill:#fed7aa;stroke:#c2410c;stroke-width:2.2}
.k7810 .k7810-first-sum{fill:#fde68a;stroke:#b45309;stroke-width:3}
.k7810 .k7810-d{font:800 21px/1 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;fill:#1f2937;font-variant-numeric:tabular-nums}
.k7810 .k7810-t{font:600 14px/1 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;fill:#334155;font-variant-numeric:tabular-nums}
.k7810 .k7810-pd{font:800 16px/1 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;fill:#1f2937}
.k7810 .k7810-rule{stroke:#1f2937;stroke-width:2.5}
.k7810 .k7810-part{fill:#f1f5f9;stroke:#64748b;stroke-width:1.2}.k7810 .k7810-got{fill:#86efac}.k7810 .k7810-no{fill:#fecaca}
.k7810 .k7810-now{fill:none;stroke:#b45309;stroke-width:3.5}
.k7810 .k7810-pointer{fill:#b45309;stroke:#fff;stroke-width:1}
.k7810 .k7810-bound{fill:#2563eb}.k7810 .k7810-cross{stroke:#b91c1c;stroke-width:3;stroke-linecap:round}
.k7810 .k7810-play{min-width:13.5em}
.k7810 .k7810-found{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 14px;margin:8px 0 2px;font-size:15px;line-height:1.5;font-variant-numeric:tabular-nums}
.k7810 .k7810-found p{margin:0;white-space:nowrap;color:var(--arch-muted,#64748b)}.k7810 .k7810-found p.k7810-yes{color:inherit}
.k7810 .kg-legend .kg-sw.k7810-sw-got{background:#86efac;border-color:#64748b}.k7810 .kg-legend .kg-sw.k7810-sw-now{background:#fff;border:3px solid #b45309}
.k7810 .arch-result{min-height:6.6em}
@media (max-width:700px){.k7810 .k7810-found{grid-template-columns:repeat(2,minmax(0,1fr))}.k7810 .arch-result{min-height:8.2em}}
@media (max-width:560px){.k7810 .k7810-found{grid-template-columns:minmax(0,1fr)}.k7810 .arch-result{min-height:11.3em}}
@media (max-width:340px){.k7810 .arch-result{min-height:14.4em}}

/* «Смарт Кенгуру» 2026, 7–8 №11 — палочки: стол, прямоугольник, два треугольника, блокнот. */
.k7811 .k7811-stick{stroke-width:6;stroke-linecap:round;fill:none}
.k7811 .k7811-wood{stroke:#b45309}.k7811 .k7811-r{stroke:#1d4ed8}.k7811 .k7811-t1{stroke:#c2410c}.k7811 .k7811-t2{stroke:#047857}
.k7811 .k7811-fill{fill:#dbeafe;stroke:none}
.k7811 .k7811-miss{stroke:#dc2626;stroke-width:3;stroke-dasharray:5 5;stroke-linecap:round}
.k7811 svg text.k7811-t{font-size:15px;fill:#1f2937}.k7811 svg text.k7811-head{font-weight:700}
.k7811 svg text.k7811-yes{fill:#047857;font-weight:700}.k7811 svg text.k7811-no{fill:#b91c1c;font-weight:700}
.k7811 svg text.k7811-n{font-size:15px;font-weight:700;fill:#1f2937;font-variant-numeric:tabular-nums}
.k7811 svg text.k7811-n-r{fill:#1e40af}.k7811 svg text.k7811-n-t1{fill:#9a3412}.k7811 svg text.k7811-n-t2{fill:#065f46}
.k7811 .k7811-plate{fill:#fff;stroke:#cbd5e1;stroke-width:1}
.k7811 .k7811-cap{margin:10px 0 4px;font-weight:700;color:var(--arch-label)}
.k7811 .k7811-pick button{min-width:48px;font-weight:700;font-variant-numeric:tabular-nums}
.k7811 .k7811-book{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.k7811 .k7811-book li{box-sizing:border-box;min-height:74px;padding:6px 10px;border:1px solid var(--arch-soft-line);border-radius:10px;background:var(--arch-surface);font-variant-numeric:tabular-nums}
.k7811 .k7811-book li.k7811-yes{border-color:#047857;background:#ecfdf5;color:#064e3b}
.k7811 .k7811-book li.k7811-no{border-color:#b91c1c;background:#fff1f2;color:#7f1d1d}
@media(min-width:701px){.k7811 .k7811-book li{min-height:36px}}
.k7811 .kg-legend .kg-sw.k7811-sw-r{background:#1d4ed8}.k7811 .kg-legend .kg-sw.k7811-sw-t1{background:#c2410c}.k7811 .kg-legend .kg-sw.k7811-sw-t2{background:#047857}
.k7811 .kg-legend .kg-sw.k7811-sw-miss{background:repeating-linear-gradient(90deg,#dc2626 0 5px,#fff 5px 10px);border-color:#fca5a5}
/* the page does not move: the status line and the notebook keep room for their longest texts */
.k7811 .arch-result.phx-result{box-sizing:border-box;min-height:110px}
@media(max-width:700px){.k7811 .arch-result.phx-result{min-height:160px}}
@media(max-width:340px){.k7811 .arch-result.phx-result{min-height:210px}.k7811 .k7811-book li{min-height:104px}}

/* «Смарт Кенгуру» 2026, 7–8 №12 — два треугольника с углом 60° (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k7812{--k7812-given:#1d4ed8;--k7812-built:#c2410c;--k7812-ok:#047857;--k7812-bad:#b91c1c}
.arch-lab .k7812 .k7812-paper{fill:#fffdf8}
.arch-lab .k7812 .k7812-box{fill:#fff;stroke:#cbd5e1;stroke-width:1.4}
.arch-lab .k7812 .k7812-tri{fill:#eff6ff;stroke:#1f2937;stroke-width:2.4;stroke-linejoin:round}
.arch-lab .k7812 .k7812-tri2{fill:#fff7ed;stroke:none}
.arch-lab .k7812 .k7812-side{stroke:#1f2937;stroke-width:2.6;stroke-linecap:round}
.arch-lab .k7812 .k7812-built{stroke:var(--k7812-built);stroke-width:2.6;stroke-linecap:round}
.arch-lab .k7812 .k7812-pen{fill:var(--k7812-built);stroke:#fff;stroke-width:1.5}
.arch-lab .k7812 .k7812-arc{fill:none;stroke-width:2}
.arch-lab .k7812 .k7812-arc.k7812-given{stroke:var(--k7812-given)}
.arch-lab .k7812 .k7812-arc.k7812-got{stroke:var(--k7812-built);stroke-width:3}
.arch-lab .k7812 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k7812 svg text.k7812-title{fill:#111827;font-size:14px;font-weight:700}
.arch-lab .k7812 svg text.k7812-name{fill:#111827;font-size:15px;font-weight:700;font-style:italic}
.arch-lab .k7812 svg text.k7812-val{font-size:13.5px;font-weight:700;paint-order:stroke;stroke:#fffdf8;stroke-width:3px}
.arch-lab .k7812 svg text.k7812-val.k7812-given{fill:#1e3a8a}
.arch-lab .k7812 svg text.k7812-val.k7812-got{fill:#9a3412}
.arch-lab .k7812 svg text.k7812-foot{fill:#1f2937;font-size:14px;font-weight:600}
.arch-lab .k7812 svg text.k7812-ok{fill:var(--k7812-ok)}
.arch-lab .k7812 svg text.k7812-bad{fill:var(--k7812-bad)}
.arch-lab .k7812 .mf-sw.k7812-sw-given{border:1px solid #94a3b8;background:radial-gradient(circle at 0 100%,transparent 8px,#1d4ed8 8px,#1d4ed8 10.5px,transparent 10.5px),#fffdf8}
.arch-lab .k7812 .mf-sw.k7812-sw-built{border:1px solid #94a3b8;background:linear-gradient(#c2410c,#c2410c) center/100% 3px no-repeat,#fffdf8}
.arch-lab .k7812 .mf-sw.k7812-sw-got{border:1px solid #94a3b8;background:radial-gradient(circle at 0 100%,transparent 8px,#c2410c 8px,#c2410c 11px,transparent 11px),#fffdf8}
.arch-lab .k7812 svg text.k7812-top{fill:#1e3a8a;font-style:normal}

/* «Смарт Кенгуру» 2026, 7–8 №13 — фигурки в коробке (drag and legend: Fable round, 10.11.2026). */
.k7813 .k7813-violet{fill:#ddd6fe;stroke:#6d28d9;stroke-width:1.5}.k7813 .k7813-pink{fill:#fbcfe8;stroke:#be185d;stroke-width:1.5}
.k7813 .k7813-hidden{fill:none;stroke:#111827;stroke-width:2;stroke-dasharray:5 4;pointer-events:none}.k7813 svg{touch-action:manipulation}
.k7813 .k7813-shape{touch-action:none;cursor:grab}
.k7813 .kg-sw.k7813-sw-hidden{background:#fff;border:2px dashed #111827}
.k7813 .kg-sw.kg-sw-sel{border-color:#2563eb}

/* «Смарт Кенгуру» 2026, 7–8 №14 — точки: отрезок, счёт точек, лупа, линейка ученика. */
.k7814 .k7814-bar{stroke:#1f2937;stroke-width:3;stroke-linecap:round;fill:none}
.k7814 .k7814-red{fill:#dc2626;stroke:#7f1d1d;stroke-width:1}.k7814 .k7814-green{fill:#16a34a;stroke:#14532d;stroke-width:1}
.k7814 .k7814-dim{opacity:.45}
.k7814 .k7814-ring{fill:none;stroke:#1f2937;stroke-width:2.5}
.k7814 .k7814-hit{fill:transparent;stroke:none}
.k7814 .k7814-hop{fill:none;stroke-width:3}.k7814 .k7814-hop-red{stroke:#b91c1c}.k7814 .k7814-hop-green{stroke:#15803d}
.k7814 .k7814-tick{stroke:#64748b;stroke-width:1}.k7814 .k7814-tick-z{stroke-width:1.5}
.k7814 .k7814-lens{fill:#fff;stroke:#6d28d9;stroke-width:2}
.k7814 .k7814-ray{stroke:#6d28d9;stroke-width:1;stroke-dasharray:4 4}
.k7814 .k7814-drop{stroke:#94a3b8;stroke-width:1;stroke-dasharray:3 3}
.k7814 .k7814-gap{stroke:#1d4ed8;stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.k7814 svg text.k7814-num{font-variant-numeric:tabular-nums}
.k7814 svg text.k7814-cnt{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.k7814 svg text.k7814-val{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.k7814 svg text.k7814-cr{fill:#991b1b}.k7814 svg text.k7814-cg{fill:#166534}.k7814 svg text.k7814-cd{fill:#1e40af}
.k7814 .kg-legend .kg-sw.k7814-sw-red{background:#dc2626;border-color:#7f1d1d;border-radius:50%;width:14px}
.k7814 .kg-legend .kg-sw.k7814-sw-green{background:#16a34a;border-color:#14532d;border-radius:50%;width:14px}
.k7814 .kg-legend .kg-sw.k7814-sw-ring{background:#fff;border:2.5px solid #1f2937;border-radius:50%;width:14px}
.k7814 .kg-legend .kg-sw.k7814-sw-tick{background:repeating-linear-gradient(90deg,#64748b 0 1.5px,#fff 1.5px 5px);border-color:#cbd5e1}
.k7814 .kg-legend .kg-sw.k7814-sw-gap{height:0;border-width:3px 0 0;border-radius:0;border-color:#1d4ed8;background:none}
/* the page does not move: the status line keeps room for its longest text */
.k7814 .arch-result.phx-result{box-sizing:border-box;min-height:138px}
@media(max-width:700px){.k7814 .arch-result.phx-result{min-height:206px}}
@media(max-width:380px){.k7814 .arch-result.phx-result{min-height:232px}}
@media(max-width:330px){.k7814 .arch-result.phx-result{min-height:256px}}
/* … and the last row of buttons keeps room for «Вернуться к своей попытке» */
@media(max-width:1100px){.k7814>.arch-actions:last-child{box-sizing:border-box;min-height:97px;align-content:flex-start}}
@media(max-width:700px){.k7814>.arch-actions:last-child{min-height:150px}}
@media(max-width:330px){.k7814>.arch-actions:last-child{min-height:167px}}

/* «Смарт Кенгуру» 2026, 7–8 №15 — шнурки с двух сторон (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k7815{--k7815-way:#c2410c}
.arch-lab .k7815 .k7815-paper{fill:#fffdf8}
.arch-lab .k7815 .k7815-board{stroke:#92400e;stroke-width:3}
.arch-lab .k7815 .k7815-front{fill:#fde68a}
.arch-lab .k7815 .k7815-back{fill:#e7c9a0}
.arch-lab .k7815 .k7815-lace{fill:none;stroke:#1f2937;stroke-width:2.6;stroke-linecap:round}
.arch-lab .k7815 .k7815-way{fill:none;stroke:var(--k7815-way);stroke-width:5.5;stroke-linecap:round;stroke-linejoin:round}
.arch-lab .k7815 .k7815-hole{fill:#fffdf8;stroke:#1f2937;stroke-width:2}
.arch-lab .k7815 .k7815-bead{fill:#fb923c;stroke:#7c2d12;stroke-width:2.5}
.arch-lab .k7815 svg text{stroke:none}
.arch-lab .k7815 svg text.k7815-title{fill:#111827;font-size:15px;font-weight:700}
.arch-lab .k7815 svg text.k7815-end{fill:#111827;font-size:17px;font-weight:700}
.arch-lab .k7815 .mf-sw.k7815-sw-bead{background:#fb923c;border:2px solid #7c2d12;border-radius:50%}
.arch-lab .k7815 .mf-sw.k7815-sw-way{border:1px solid #92400e;background:linear-gradient(#c2410c,#c2410c) center/100% 5px no-repeat,#fde68a}
.arch-lab .k7815 .mf-sw.k7815-sw-lace{border:1px solid #92400e;background:linear-gradient(#1f2937,#1f2937) center/100% 3px no-repeat,#fde68a}
.arch-lab .k7815 .mf-sw.k7815-sw-hole{background:#fffdf8;border:2px solid #1f2937;border-radius:50%}
/* the live 3D scene (three.js); without WebGL the drawn board above stays */
.arch-lab .k7815 .k7815-scene{position:relative;border:1px solid var(--arch-border,#cbd5e1);border-radius:12px;overflow:hidden;background:#fffdf8}
.arch-lab .k7815 .k7815-3d{width:100%;aspect-ratio:1/0.62;outline-offset:2px}
.arch-lab .k7815 .k7815-3d canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.arch-lab .k7815 .k7815-tag{position:absolute;left:10px;top:8px;min-width:13.5em;padding:3px 9px;border-radius:999px;background:rgba(255,255,255,.94);border:1px solid #cbd5e1;color:#1f2937;font-weight:700;font-size:14px;pointer-events:none}
.arch-lab .k7815 .k7815-hint{margin:.4rem 0 0}
@media (max-width:640px){.arch-lab .k7815 .k7815-3d{aspect-ratio:1/0.86}}

/* «Смарт Кенгуру» 2026, 7–8 №16 — цепочка Феди: путь по шагам, отметки 7 и 9, блокнот. */
.k7816 .k7816-grid{stroke:#e2e8f0;stroke-width:1}
.k7816 .k7816-level{stroke:#b45309;stroke-width:2;stroke-dasharray:7 5}
.k7816 .k7816-lv{fill:#fde68a;stroke:#b45309;stroke-width:1.5}
.k7816 .k7816-edge{stroke-width:4;stroke-linecap:round;fill:none}
.k7816 .k7816-up{stroke:#1d4ed8}.k7816 .k7816-dn{stroke:#dc2626}
.k7816 .k7816-node{fill:#fff;stroke:#1f2937;stroke-width:2.5}
.k7816 .k7816-node.k7816-on{fill:#22c55e;stroke:#14532d}
.k7816 .k7816-cur{fill:none;stroke:#1f2937;stroke-width:1.5;stroke-dasharray:3 3}
.k7816 .k7816-token{fill:#fde68a;stroke:#1f2937;stroke-width:2.5}
.k7816 .k7816-plate{fill:#fff;stroke:#cbd5e1;stroke-width:1}
.k7816 .k7816-plate-on{fill:#dcfce7;stroke:#15803d;stroke-width:1.5}
.k7816 svg text.k7816-n{font-size:14px;font-weight:700;fill:#1f2937;font-variant-numeric:tabular-nums}
.k7816 svg text.k7816-ax{font-size:13px;fill:#475569;font-variant-numeric:tabular-nums}
.k7816 svg text.k7816-op{font-size:14px;font-weight:700}
.k7816 svg text.k7816-op-u{fill:#1e40af}.k7816 svg text.k7816-op-d{fill:#b91c1c}
.k7816 .k7816-cap{margin:10px 0 4px;font-weight:700;color:var(--arch-label);font-variant-numeric:tabular-nums}
.k7816 .k7816-ops button{min-width:52px;font-weight:700;font-variant-numeric:tabular-nums}
.k7816 .k7816-ops button.k7816-op-up{border-color:#1d4ed8}
.k7816 .k7816-ops button.k7816-op-dn{border-color:#dc2626}
.k7816 .k7816-ops button[aria-disabled="true"]{opacity:.45;text-decoration:line-through}
.k7816 .k7816-book{list-style:none;margin:0;padding:0;display:grid;gap:4px;align-content:start;font-variant-numeric:tabular-nums}
.k7816 .k7816-book li{box-sizing:border-box;padding:5px 10px;border:1px solid #15803d;border-radius:10px;background:#ecfdf5;color:#064e3b;font-weight:700}
.k7816 .k7816-book li.k7816-none{border-color:var(--arch-soft-line);background:var(--arch-surface);color:inherit;font-weight:400}
.k7816 .kg-legend .kg-sw.k7816-sw-up{height:0;border-width:4px 0 0;border-radius:0;border-color:#1d4ed8;background:none}
.k7816 .kg-legend .kg-sw.k7816-sw-dn{height:0;border-width:4px 0 0;border-radius:0;border-color:#dc2626;background:none}
.k7816 .kg-legend .kg-sw.k7816-sw-level{height:0;border-width:2px 0 0;border-style:dashed;border-radius:0;border-color:#b45309;background:none}
.k7816 .kg-legend .kg-sw.k7816-sw-on{width:14px;border-radius:50%;background:#22c55e;border-color:#14532d}
.k7816 .kg-chip:not(.kg-chip-yes) .k7816-tick{visibility:hidden}
.k7816 .k7816-book b{white-space:nowrap}.k7816 .k7816-book span{font-weight:400}
/* the page does not move: the status line, the notebook (four lines) and the last row of buttons keep room for their fullest state */
.k7816 .arch-result.phx-result{box-sizing:border-box;min-height:110px}
.k7816 .k7816-book{min-height:186px}
@media(max-width:1100px){.k7816>.arch-actions:last-child{box-sizing:border-box;min-height:150px;align-content:flex-start}}
@media(max-width:700px){.k7816 .arch-result.phx-result{min-height:160px}.k7816 .k7816-book span{display:block}.k7816 .k7816-book{min-height:297px}
 .k7816>.arch-actions:last-child{min-height:250px}}
@media(max-width:340px){.k7816 .arch-result.phx-result{min-height:210px}.k7816 .k7816-cap{min-height:59px;box-sizing:border-box}.k7816>.arch-actions:last-child{min-height:310px}}
@media(max-width:370px){.k7816 .kg-tried{box-sizing:border-box;min-height:92px;align-content:flex-start}}
@media(max-width:340px){.k7816 .kg-tried{min-height:132px}}

/* «Смарт Кенгуру» 2026, 7–8 №17 — рыцари и лжецы в зале (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k7817{--k7817-ok:#047857;--k7817-bad:#b91c1c}
.arch-lab .k7817 .k7817-paper{fill:#fffdf8}
.arch-lab .k7817 .k7817-seat{stroke-width:1.4}
.arch-lab .k7817 .k7817-knight{fill:#1d4ed8;stroke:#1e3a8a}
.arch-lab .k7817 .k7817-liar{fill:#e2e8f0;stroke:#64748b}
.arch-lab .k7817 .k7817-seat.k7817-ok{stroke:var(--k7817-ok);stroke-width:3}
.arch-lab .k7817 .k7817-seat.k7817-bad{stroke:var(--k7817-bad);stroke-width:3}
.arch-lab .k7817 .k7817-seat.k7817-now{stroke:#111827;stroke-width:3}
.arch-lab .k7817 .k7817-cross{stroke:#fff;stroke-width:1.8;stroke-linecap:round}
.arch-lab .k7817 .k7817-x{stroke:var(--k7817-bad);stroke-width:2.4;stroke-linecap:round}
.arch-lab .k7817 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k7817 svg text.k7817-head{fill:#111827;font-size:16px;font-weight:700}
.arch-lab .k7817 svg text.k7817-row{fill:#475569;font-size:13px;font-weight:600}
.arch-lab .k7817 .mf-sw.k7817-sw-knight{background:#1d4ed8;border-color:#1e3a8a;border-radius:50%}
.arch-lab .k7817 .mf-sw.k7817-sw-liar{background:#e2e8f0;border-color:#64748b;border-radius:50%}
.arch-lab .k7817 .mf-sw.k7817-sw-ok{background:#fffdf8;border:3px solid var(--k7817-ok);border-radius:50%}
.arch-lab .k7817 .mf-sw.k7817-sw-bad{background:linear-gradient(45deg,transparent 44%,#b91c1c 44%,#b91c1c 56%,transparent 56%),linear-gradient(-45deg,transparent 44%,#b91c1c 44%,#b91c1c 56%,transparent 56%),#fffdf8;border:1px solid #b91c1c}

/* «Смарт Кенгуру» 2026, 7–8 №18 — забор. */
.k7818 .k7818-edge{fill:none;stroke:#1f2937;stroke-width:2}

/* «Смарт Кенгуру» 2026, 7–8 №19 — произведение цифр (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k7819{--k7819-box:#1d4ed8;--k7819-five:#c2410c}
.arch-lab .k7819 .k7819-paper{fill:#fffdf8}
.arch-lab .k7819 .k7819-card{stroke-width:2}
.arch-lab .k7819 .k7819-box{fill:#dbeafe;stroke:var(--k7819-box)}
.arch-lab .k7819 .k7819-box.k7819-pick{stroke-width:4;stroke-dasharray:7 4}
.arch-lab .k7819 .k7819-five{fill:#ffedd5;stroke:var(--k7819-five)}
.arch-lab .k7819 .k7819-ghost{fill:none;stroke:#cbd5e1;stroke-width:1.4;stroke-dasharray:4 4}
.arch-lab .k7819 .k7819-slot{fill:#f1f5f9;stroke:#94a3b8;stroke-width:1.4}
.arch-lab .k7819 svg text{pointer-events:none;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k7819 svg text.k7819-cap{fill:#334155;font-size:13px;font-weight:600}
.arch-lab .k7819 svg text.k7819-fact{fill:#334155;font-size:13px;font-weight:600}
.arch-lab .k7819 svg text.k7819-digit{fill:#111827;font-size:23px;font-weight:700}
.arch-lab .k7819 .k7819-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k7819 .k7819-hit:focus-visible{outline:none;stroke:#1d4ed8;stroke-width:2.5;stroke-dasharray:5 3}
.arch-lab .k7819 .mf-sw.k7819-sw-box{background:#dbeafe;border:2px solid var(--k7819-box)}
.arch-lab .k7819 .mf-sw.k7819-sw-five{background:#ffedd5;border:2px solid var(--k7819-five)}
.arch-lab .k7819 .mf-sw.k7819-sw-slot{background:#f1f5f9;border-color:#94a3b8}

/* «Смарт Кенгуру» 2026, 7–8 №2 — чем мерить (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k782{--k782-piece:#1d4ed8}
.arch-lab .k782 .k782-paper{fill:#fffdf8}
.arch-lab .k782 .k782-skin{fill:#fde3c8;stroke:#9a3412;stroke-width:1.6;stroke-linejoin:round}
.arch-lab .k782 .k782-nail{fill:#fff7ed;stroke:#9a3412;stroke-width:1.2}
.arch-lab .k782 .k782-fold{stroke:#9a3412;stroke-width:1.2}
.arch-lab .k782 .k782-man{stroke:#1f2937;stroke-width:3;stroke-linecap:round}
.arch-lab .k782 .k782-head{fill:#fde3c8;stroke:#1f2937;stroke-width:2}
.arch-lab .k782 .k782-post{fill:#fff;stroke:#1f2937;stroke-width:1.2}
.arch-lab .k782 .k782-stripe{fill:#1f2937;stroke:none}
.arch-lab .k782 .k782-road{stroke:#94a3b8;stroke-width:8;stroke-linecap:round}
.arch-lab .k782 .k782-roadmid{stroke:#fff;stroke-width:1.5;stroke-dasharray:8 6}
.arch-lab .k782 .k782-piece{fill:#bfdbfe;stroke:var(--k782-piece);stroke-width:1.8}
.arch-lab .k782 .k782-ruler{fill:#fde68a;stroke:#b45309;stroke-width:1.5}
.arch-lab .k782 .k782-tick{stroke:#78350f;stroke-width:1.1}
.arch-lab .k782 .k782-plat{fill:#cbd5e1;stroke:#475569;stroke-width:1.5}
.arch-lab .k782 .k782-weight{fill:#475569;stroke:#1f2937;stroke-width:2}
.arch-lab .k782 .k782-handle{fill:none;stroke:#1f2937;stroke-width:3.5}
.arch-lab .k782 .k782-dial{fill:#fff;stroke:#475569;stroke-width:3}
.arch-lab .k782 .k782-needle{stroke:#b91c1c;stroke-width:3;stroke-linecap:round}
.arch-lab .k782 .k782-hub{fill:#1f2937;stroke:none}
.arch-lab .k782 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k782 svg text.k782-head1{fill:#111827;font-size:16px;font-weight:700}
.arch-lab .k782 svg text.k782-about{fill:#334155;font-size:14px}
.arch-lab .k782 svg text.k782-pnum{fill:#111827;font-size:13px;font-weight:700}
.arch-lab .k782 svg text.k782-rnum{fill:#78350f;font-size:13px;font-weight:600}
.arch-lab .k782 svg text.k782-wnum{fill:#fff;font-size:13px;font-weight:700}
.arch-lab .k782 svg text.k782-small{fill:#475569;font-size:13px}
.arch-lab .k782 .mf-sw.k782-sw-piece{background:#bfdbfe;border-color:var(--k782-piece)}
.arch-lab .k782 .mf-sw.k782-sw-ruler{background:#fde68a;border-color:#b45309}
.arch-lab .k782 .mf-sw.k782-sw-weight{background:#475569;border-color:#1f2937;border-radius:50%}

/* «Смарт Кенгуру» 2026, 7–8 №20 — проекции. */
.k7820 .k7820-quad{fill:#f1f5f9;stroke:#1f2937;stroke-width:2}.k7820 .k7820-ac{stroke:#1d4ed8;stroke-width:3}.k7820 .k7820-bd{stroke:#c2410c;stroke-width:3}

/* «Смарт Кенгуру» 2026, 7–8 №3 — две цифры местами (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k783{--k783-pick:#c2410c;--k783-tail:#1d4ed8;--k783-ok:#047857;--k783-bad:#b91c1c}
.arch-lab .k783 .k783-table{fill:#f3ead8}
.arch-lab .k783 .k783-bed{fill:#e6d9bf;stroke:none}
.arch-lab .k783 .k783-card{fill:#fffdf8;stroke:#475569;stroke-width:2}
.arch-lab .k783 .k783-card.k783-pick{stroke:var(--k783-pick);stroke-width:3;fill:#fff7ed}
.arch-lab .k783 .k783-card.k783-picked{stroke:var(--k783-pick);stroke-width:3;stroke-dasharray:6 4}
.arch-lab .k783 .k783-card.k783-head{fill:#e2e8f0;stroke:#94a3b8}
.arch-lab .k783 .k783-card.k783-tail{fill:#dbeafe;stroke:var(--k783-tail);stroke-width:3}
.arch-lab .k783 svg text{pointer-events:none;stroke:none}
.arch-lab .k783 svg text.k783-digit{fill:#111827;font-weight:700;font-variant-numeric:tabular-nums}
.arch-lab .k783 svg text.k783-place{fill:#57534e;font-size:13px;font-weight:600}
.arch-lab .k783 svg text.k783-cap{fill:#334155;font-size:14px;font-weight:600}
.arch-lab .k783 svg text.k783-sum{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.arch-lab .k783 svg text.k783-ok{fill:var(--k783-ok)}
.arch-lab .k783 svg text.k783-bad{fill:var(--k783-bad)}
.arch-lab .k783 .k783-four{fill:#d1fae5;stroke:var(--k783-ok);stroke-width:1.3}
.arch-lab .k783 .k783-dot{fill:var(--k783-ok);stroke:none}
.arch-lab .k783 .k783-restdot{fill:#fecaca;stroke:var(--k783-bad);stroke-width:1.6}
.arch-lab .k783 .k783-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k783 .k783-hit:focus-visible{outline:none;stroke:#1d4ed8;stroke-width:2.5;stroke-dasharray:5 3}
.arch-lab .k783 .mf-sw.k783-sw-pick{background:#fff7ed;border:2px solid var(--k783-pick)}
.arch-lab .k783 .mf-sw.k783-sw-head{background:#e2e8f0;border-color:#94a3b8}
.arch-lab .k783 .mf-sw.k783-sw-tail{background:#dbeafe;border:2px solid var(--k783-tail)}
.arch-lab .k783 .mf-sw.k783-sw-four{background:#d1fae5;border-color:var(--k783-ok)}
.arch-lab .k783 .mf-sw.k783-sw-rest{background:#fecaca;border-color:var(--k783-bad);border-radius:50%}

/* «Смарт Кенгуру» 2026, 7–8 №4 — пять лучей (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k784{--k784-more:#c2410c;--k784-meet:#047857}
.arch-lab .k784 .k784-desk{fill:#ecd9b8}
.arch-lab .k784 .k784-sheet{fill:#fffdf8;stroke:#b08d57;stroke-width:1.5}
.arch-lab .k784 .k784-grid{stroke:#bcd3ea;stroke-width:1}
.arch-lab .k784 .k784-ray{stroke:#1f2937;stroke-width:3.5;stroke-linecap:round}
.arch-lab .k784 .k784-ray.k784-off{stroke:#64748b}
.arch-lab .k784 .k784-more{stroke:var(--k784-more);stroke-width:3;stroke-linecap:round}
.arch-lab .k784 .k784-tip{stroke:var(--k784-more);fill:var(--k784-more);stroke-width:3}
.arch-lab .k784 .k784-start{fill:#1f2937;stroke:#fffdf8;stroke-width:1.5}
.arch-lab .k784 .k784-start.k784-off{fill:#64748b}
.arch-lab .k784 .k784-meet{fill:#d1fae5;fill-opacity:.85;stroke:var(--k784-meet);stroke-width:3}
.arch-lab .k784 .k784-meetdot{fill:var(--k784-meet);stroke:none}
.arch-lab .k784 svg text{pointer-events:none}
.arch-lab .k784 svg text.k784-num{fill:#111827;font-size:15px;font-weight:700;paint-order:stroke;stroke:#fffdf8;stroke-width:3.5px}
.arch-lab .k784 .k784-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k784 .k784-hit:focus-visible{outline:none;stroke:#1d4ed8;stroke-width:2.5;stroke-dasharray:5 3}
.arch-lab .k784 .mf-sw.k784-sw-start{background:radial-gradient(circle,#1f2937 0 4.5px,#fffdf8 5px);border:1px solid #b08d57}
.arch-lab .k784 .mf-sw.k784-sw-drawn{border:1px solid #b08d57;background:linear-gradient(#1f2937,#1f2937) center/100% 4px no-repeat,#fffdf8}
.arch-lab .k784 .mf-sw.k784-sw-more{border:1px solid #b08d57;background:linear-gradient(#c2410c,#c2410c) center/100% 3px no-repeat,#fffdf8}
.arch-lab .k784 .mf-sw.k784-sw-meet{background:#d1fae5;border:3px solid var(--k784-meet);border-radius:50%}

/* «Смарт Кенгуру» 2026, 7–8 №5 — сдача за тортик (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k785{--k785-ten:#1d4ed8;--k785-off:#c2410c}
.arch-lab .k785 .k785-paper{fill:#fffdf8}
.arch-lab .k785 .k785-cake1{fill:#f9a8d4;stroke:#9d174d;stroke-width:1.2}
.arch-lab .k785 .k785-cake2{fill:#fef3c7;stroke:#9d174d;stroke-width:1.2}
.arch-lab .k785 .k785-cherry{fill:#dc2626;stroke:none}
.arch-lab .k785 .k785-bed{fill:#f1f5f9;stroke:#94a3b8;stroke-width:1.2}
.arch-lab .k785 .k785-ten{fill:#dbeafe;stroke:var(--k785-ten);stroke-width:1.3}
.arch-lab .k785 .k785-ten.k785-off{fill:#fed7aa;stroke:var(--k785-off);stroke-width:2.2}
.arch-lab .k785 .k785-ten.k785-gone{fill:#fff7ed;stroke-dasharray:4 3}
.arch-lab .k785 .k785-pay{stroke:#475569;stroke-width:1.3}
.arch-lab .k785 .k785-g0{fill:#fbcfe8}
.arch-lab .k785 .k785-g1{fill:#bbf7d0}
.arch-lab .k785 .k785-g2{fill:#fde68a}
.arch-lab .k785 .k785-g3{fill:#ddd6fe}
.arch-lab .k785 .k785-dress{stroke:#475569;stroke-width:1.5;stroke-linejoin:round}
.arch-lab .k785 .k785-leg{stroke:#475569;stroke-width:2.5;stroke-linecap:round}
.arch-lab .k785 .k785-hair{fill:#78350f;stroke:none}
.arch-lab .k785 .k785-face{fill:#fde3c8;stroke:none}
.arch-lab .k785 .k785-coin{fill:#fcd34d;stroke:#b45309;stroke-width:2}
.arch-lab .k785 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k785 svg text.k785-head{fill:#111827;font-size:16px;font-weight:700}
.arch-lab .k785 svg text.k785-tnum{fill:#1f2937;font-size:13px;font-weight:600}
.arch-lab .k785 svg text.k785-pnum{fill:#111827;font-size:13px;font-weight:700}
.arch-lab .k785 svg text.k785-name{fill:#1f2937;font-size:14px;font-weight:600}
.arch-lab .k785 svg text.k785-cap{fill:#1e3a8a;font-size:13px;font-weight:700}
.arch-lab .k785 svg text.k785-capoff{fill:#9a3412}
.arch-lab .k785 svg text.k785-back{fill:#92400e;font-size:13px;font-weight:700;paint-order:stroke;stroke:#fffdf8;stroke-width:3px}
.arch-lab .k785 .mf-sw.k785-sw-pay{background:#fbcfe8;border-color:#475569}
.arch-lab .k785 .mf-sw.k785-sw-ten{background:#dbeafe;border-color:var(--k785-ten)}
.arch-lab .k785 .mf-sw.k785-sw-off{background:#fed7aa;border:2px solid var(--k785-off)}
.arch-lab .k785 .mf-sw.k785-sw-coin{background:#fcd34d;border:2px solid #b45309;border-radius:50%}

/* «Смарт Кенгуру» 2026, 7–8 №6 — квадрат с петлёй (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k786{--k786-way:#c2410c;--k786-bad:#b91c1c}
.arch-lab .k786 .k786-desk{fill:#e2e8f0}
.arch-lab .k786 .k786-c{fill:#fef3c7;stroke:#92400e;stroke-width:2;stroke-linejoin:round}
.arch-lab .k786 .k786-j{fill:#dbeafe;stroke:#1e3a8a;stroke-width:2;stroke-linejoin:round}
.arch-lab .k786 .k786-loop{fill:none;stroke:#1f2937;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.arch-lab .k786 .k786-cut{fill:none;stroke:#047857;stroke-width:2.6}
.arch-lab .k786 .k786-way{fill:none;stroke:var(--k786-way);stroke-width:5.5;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.arch-lab .k786 .k786-pencil{fill:#fb923c;stroke:#7c2d12;stroke-width:2.5}
.arch-lab .k786 .k786-x{stroke:var(--k786-bad);stroke-width:4;stroke-linecap:round}
.arch-lab .k786 svg text{stroke:none}
.arch-lab .k786 svg text.k786-letter{fill:#1e3a8a;font-size:20px;font-weight:700}
.arch-lab .k786 .mf-sw.k786-sw-c{background:#fef3c7;border-color:#92400e}
.arch-lab .k786 .mf-sw.k786-sw-j{background:#dbeafe;border-color:#1e3a8a}
.arch-lab .k786 .mf-sw.k786-sw-cut{background:#fffdf8;border:3px solid #047857;border-radius:50%}
.arch-lab .k786 .mf-sw.k786-sw-way{border:1px solid #92400e;background:linear-gradient(#c2410c,#c2410c) center/100% 5px no-repeat,#fef3c7}
.arch-lab .k786 .mf-sw.k786-sw-bad{background:linear-gradient(45deg,transparent 42%,#b91c1c 42%,#b91c1c 58%,transparent 58%),linear-gradient(-45deg,transparent 42%,#b91c1c 42%,#b91c1c 58%,transparent 58%),#fffdf8;border:1px solid #b91c1c}

/* «Смарт Кенгуру» 2026, 7–8 №7 — отрицательные цифры (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k787{--k787-pos:#1d4ed8;--k787-neg:#c2410c}
.arch-lab .k787 .k787-paper{fill:#fffdf8}
.arch-lab .k787 .k787-card{fill:#dbeafe;stroke:var(--k787-pos);stroke-width:2}
.arch-lab .k787 .k787-card.k787-neg{fill:#ffedd5;stroke:var(--k787-neg)}
.arch-lab .k787 .k787-card.k787-now{stroke-width:4}
.arch-lab .k787 .k787-shelf{stroke:#92400e;stroke-width:5;stroke-linecap:round}
.arch-lab .k787 .k787-drop{stroke:#94a3b8;stroke-width:1.5;stroke-dasharray:3 3}
.arch-lab .k787 .k787-share{fill:#f8fafc;stroke:#94a3b8;stroke-width:1.5;stroke-dasharray:5 4}
.arch-lab .k787 .k787-share.k787-spos{fill:#dbeafe;stroke:var(--k787-pos);stroke-dasharray:none}
.arch-lab .k787 .k787-share.k787-sneg{fill:#ffedd5;stroke:var(--k787-neg);stroke-dasharray:none}
.arch-lab .k787 .k787-board{fill:#1f2937;stroke:#92400e;stroke-width:4}
.arch-lab .k787 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k787 svg text.k787-place{fill:#1f2937;font-size:14px;font-weight:700}
.arch-lab .k787 svg text.k787-mult{fill:#475569;font-size:13px;font-weight:600}
.arch-lab .k787 svg text.k787-digit{fill:#111827;font-weight:700}
.arch-lab .k787 svg text.k787-sharet{fill:#111827;font-size:14px;font-weight:700}
.arch-lab .k787 svg text.k787-sum{fill:#fde68a;font-size:32px;font-weight:700;letter-spacing:.04em}
.arch-lab .k787 .mf-sw.k787-sw-pos{background:#dbeafe;border:2px solid var(--k787-pos)}
.arch-lab .k787 .mf-sw.k787-sw-neg{background:#ffedd5;border:2px solid var(--k787-neg)}
.arch-lab .k787 .mf-sw.k787-sw-board{background:#1f2937;border:2px solid #92400e}
.arch-lab .k787 .k787-btn{fill:#f8fafc;stroke:#475569;stroke-width:1.5}
.arch-lab .k787 svg text.k787-btnt{fill:#111827;font-size:20px;font-weight:700}
.arch-lab .k787 svg text{pointer-events:none}
.arch-lab .k787 .k787-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k787 .k787-hit:focus-visible{outline:none;stroke:#1d4ed8;stroke-width:2.5;stroke-dasharray:5 3}
.arch-lab .k787 .mf-sw.k787-sw-btn{background:#f8fafc;border:1.5px solid #475569}
.arch-lab .k787 .k787-sel{fill:#fef9c3;stroke:#92400e;stroke-width:2.2;stroke-dasharray:6 4}
.arch-lab .k787 .mf-sw.k787-sw-sel{background:#fef9c3;border:2px dashed #92400e}

/* «Смарт Кенгуру» 2026, 7–8 №8 — сколько слов в числе (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k788 .k788-paper{fill:#fffdf8}
.arch-lab .k788 .k788-word{fill:#fef3c7;stroke:#b45309;stroke-width:1.6}
.arch-lab .k788 .k788-cell{fill:#fff;stroke:#cbd5e1;stroke-width:1;cursor:pointer}
.arch-lab .k788 .k788-cell.k788-w1{fill:#cbd5e1;stroke:#64748b}
.arch-lab .k788 .k788-cell.k788-w2{fill:#a7f3d0;stroke:#047857}
.arch-lab .k788 .k788-cell.k788-w3{fill:#fed7aa;stroke:#c2410c}
.arch-lab .k788 .k788-cell.k788-pick{stroke:#1d4ed8;stroke-width:3}
.arch-lab .k788 .k788-cell.k788-now{stroke:#111827;stroke-width:3}
.arch-lab .k788 svg text{pointer-events:none;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k788 svg text.k788-big{fill:#111827;font-size:26px;font-weight:700}
.arch-lab .k788 svg text.k788-wordt{fill:#111827;font-weight:700}
.arch-lab .k788 svg text.k788-note{fill:#475569;font-size:13px}
.arch-lab .k788 svg text.k788-num{fill:#111827;font-size:13px;font-weight:600}
.arch-lab .k788 .mf-sw.k788-sw-1{background:#cbd5e1;border-color:#64748b}
.arch-lab .k788 .mf-sw.k788-sw-2{background:#a7f3d0;border-color:#047857}
.arch-lab .k788 .mf-sw.k788-sw-3{background:#fed7aa;border-color:#c2410c}
.arch-lab .k788 .mf-sw.k788-sw-pick{background:#fff;border:3px solid #1d4ed8}

/* «Смарт Кенгуру» 2026, 7–8 №9 — контрпример для Незнайки (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k789{--k789-a:#7c4a1e;--k789-b:#7c4a1e;--k789-c:#5b3413;--k789-rest:#dc2626}
.arch-lab .k789 .k789-paper{fill:#fffdf8}
.arch-lab .k789 .k789-tray{fill:#f1f5f9;stroke:#94a3b8;stroke-width:1.5}
.arch-lab .k789 .k789-s0{fill:#e7c9a0;stroke:var(--k789-a);stroke-width:1.2}
.arch-lab .k789 .k789-s1{fill:#d9a066;stroke:var(--k789-b);stroke-width:1.2}
.arch-lab .k789 .k789-s2{fill:#b9824a;stroke:var(--k789-c);stroke-width:1.2}
.arch-lab .k789 .k789-rest{fill:#fecaca;stroke:var(--k789-rest);stroke-width:1.6}
.arch-lab .k789 svg text.k789-head{fill:#1f2937;font-size:17px;font-weight:700;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k789 svg text.k789-label{fill:#1f2937;font-size:14px;font-weight:600;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k789 svg text.k789-bad{fill:#b91c1c}
.arch-lab .k789 svg text.k789-ok{fill:#047857}
.arch-lab .k789 .mf-sw.k789-sw-a{background:#e7c9a0;border-color:var(--k789-a);border-radius:50%}
.arch-lab .k789 .mf-sw.k789-sw-b{background:#d9a066;border-color:var(--k789-b);border-radius:50%}
.arch-lab .k789 .mf-sw.k789-sw-c{background:#b9824a;border-color:var(--k789-c);border-radius:50%}
.arch-lab .k789 .mf-sw.k789-sw-rest{background:#fecaca;border-color:var(--k789-rest);border-radius:50%}

/* «Смарт Кенгуру» 2026, 9–10 №1 — пики ниже впадины (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k9101 .k9101-paper{fill:#fffdf8}
.arch-lab .k9101 .k9101-sky{fill:#f0f9ff}
.arch-lab .k9101 .k9101-rock{fill:#d6c7a8;stroke:none}
.arch-lab .k9101 .k9101-water{fill:#38bdf8;fill-opacity:.42}
.arch-lab .k9101 .k9101-surface{stroke:#0369a1;stroke-width:2}
.arch-lab .k9101 .k9101-grid{stroke:#94a3b8;stroke-width:.8}
.arch-lab .k9101 .k9101-chain{stroke:#1f2937;stroke-width:2.8;stroke-linecap:round}
.arch-lab .k9101 .k9101-level{stroke:#1d4ed8;stroke-width:2.4;stroke-dasharray:8 5}
.arch-lab .k9101 .k9101-peak{fill:#c2410c;stroke:#fffdf8;stroke-width:1.5}
.arch-lab .k9101 .k9101-valley{fill:#047857;stroke:#fffdf8;stroke-width:1.5}
.arch-lab .k9101 .k9101-ring{fill:none;stroke:#1d4ed8;stroke-width:2.8}
.arch-lab .k9101 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k9101 svg text.k9101-cap{fill:#1f2937;font-size:13px;font-weight:600}
.arch-lab .k9101 .mf-sw.k9101-sw-peak{background:#c2410c;border-radius:50%}
.arch-lab .k9101 .mf-sw.k9101-sw-valley{background:#047857}
.arch-lab .k9101 .mf-sw.k9101-sw-water{background:rgba(56,189,248,.5);border:1.5px solid #0369a1}
.arch-lab .k9101 .mf-sw.k9101-sw-ring{background:#fffdf8;border:3px solid #1d4ed8;border-radius:50%}

/* «Смарт Кенгуру» 2026, 9–10 №10 — квадрат больше, куб меньше (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k91010{--k91010-sq:#1d4ed8;--k91010-cube:#c2410c}
.arch-lab .k91010 .k91010-paper{fill:#fffdf8}
.arch-lab .k91010 .k91010-plane{fill:#ffffff;stroke:#94a3b8;stroke-width:1.2}
.arch-lab .k91010 .k91010-grid{stroke:#cbd5e1;stroke-width:1;stroke-dasharray:4 4}
.arch-lab .k91010 .k91010-axis{stroke:#1f2937;stroke-width:1.8}
.arch-lab .k91010 .k91010-line{fill:none;stroke:#475569;stroke-width:2.4}
.arch-lab .k91010 .k91010-sq{fill:none;stroke:var(--k91010-sq);stroke-width:2.6}
.arch-lab .k91010 .k91010-cube{fill:none;stroke:var(--k91010-cube);stroke-width:2.6}
.arch-lab .k91010 .k91010-at{stroke:#1f2937;stroke-width:1.2;stroke-dasharray:3 4}
.arch-lab .k91010 .k91010-px{fill:#1f2937;stroke:#ffffff;stroke-width:2}
.arch-lab .k91010 .k91010-psq{fill:var(--k91010-sq);stroke:#ffffff;stroke-width:1.5}
.arch-lab .k91010 .k91010-pcube{fill:var(--k91010-cube);stroke:#ffffff;stroke-width:1.5}
.arch-lab .k91010 .k91010-asq .phx-arrow-shaft{stroke:var(--k91010-sq);stroke-width:3}
.arch-lab .k91010 .k91010-asq .phx-arrow-head{fill:var(--k91010-sq);stroke:var(--k91010-sq)}
.arch-lab .k91010 .k91010-acube .phx-arrow-shaft{stroke:var(--k91010-cube);stroke-width:3}
.arch-lab .k91010 .k91010-acube .phx-arrow-head{fill:var(--k91010-cube);stroke:var(--k91010-cube)}
.arch-lab .k91010 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k91010 svg text.k91010-cap{fill:#334155;font-size:13px;font-weight:600;paint-order:stroke;stroke:#ffffff;stroke-width:3px}
.arch-lab .k91010 svg text.k91010-name{fill:#334155;font-size:13px;font-weight:600}
.arch-lab .k91010 svg text.k91010-val{font-size:17px;font-weight:700}
.arch-lab .k91010 svg text.k91010-vx{fill:#1f2937}
.arch-lab .k91010 svg text.k91010-vsq{fill:var(--k91010-sq)}
.arch-lab .k91010 svg text.k91010-vcube{fill:var(--k91010-cube)}
.arch-lab .k91010 .mf-sw.k91010-sw-line{border:1px solid #94a3b8;background:linear-gradient(#475569,#475569) center/100% 3px no-repeat,#fff}
.arch-lab .k91010 .mf-sw.k91010-sw-sq{border:1px solid #94a3b8;background:linear-gradient(#1d4ed8,#1d4ed8) center/100% 3px no-repeat,#fff}
.arch-lab .k91010 .mf-sw.k91010-sw-cube{border:1px solid #94a3b8;background:linear-gradient(#c2410c,#c2410c) center/100% 3px no-repeat,#fff}
.arch-lab .k91010 .mf-sw.k91010-sw-up{border:1px solid #94a3b8;background:linear-gradient(#1d4ed8,#1d4ed8) center/3px 100% no-repeat,#fff}

/* «Смарт Кенгуру» 2026, 9–10 №11 — средние линии 2 и 5 (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k91011{--k91011-ok:#047857;--k91011-bad:#b91c1c}
.arch-lab .k91011 .k91011-table{fill:#fffdf8}
.arch-lab .k91011 .k91011-plank{stroke:#b45309;stroke-width:9;stroke-linecap:round}
.arch-lab .k91011 .k91011-base{stroke:#92400e}
.arch-lab .k91011 .k91011-third{stroke:#d97706}
.arch-lab .k91011 .k91011-fill{stroke:none}
.arch-lab .k91011 .k91011-hinge{fill:#f8fafc;stroke:#1f2937;stroke-width:2.5}
.arch-lab .k91011 .k91011-tip{fill:#1f2937;stroke:none}
.arch-lab .k91011 .k91011-mid{stroke:#1d4ed8;stroke-width:2.6;stroke-dasharray:7 5;stroke-linecap:round}
.arch-lab .k91011 .k91011-midp{fill:#1d4ed8;stroke:#fffdf8;stroke-width:1.2}
.arch-lab .k91011 .k91011-gap{stroke:var(--k91011-bad);stroke-width:2.4;stroke-linecap:round}
.arch-lab .k91011 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k91011 svg text.k91011-len{fill:#111827;font-size:17px;font-weight:700;paint-order:stroke;stroke:#fffdf8;stroke-width:4px}
.arch-lab .k91011 svg text.k91011-midt{fill:#1d4ed8;font-size:15px;font-weight:700;paint-order:stroke;stroke:#fffdf8;stroke-width:4px}
.arch-lab .k91011 svg text.k91011-gapt{fill:var(--k91011-bad);font-size:15px;font-weight:700}
.arch-lab .k91011 svg text.k91011-foot{font-size:15px;font-weight:700}
.arch-lab .k91011 svg text.k91011-ok{fill:var(--k91011-ok)}
.arch-lab .k91011 svg text.k91011-bad{fill:var(--k91011-bad)}
.arch-lab .k91011 .mf-sw.k91011-sw-plank{border:1px solid #92400e;background:linear-gradient(#b45309,#b45309) center/100% 7px no-repeat,#fffdf8}
.arch-lab .k91011 .mf-sw.k91011-sw-hinge{background:#f8fafc;border:2.5px solid #1f2937;border-radius:50%}
.arch-lab .k91011 .mf-sw.k91011-sw-mid{border:1px solid #94a3b8;background:repeating-linear-gradient(to right,#1d4ed8 0 6px,#fffdf8 6px 10px) center/100% 3px no-repeat,#fffdf8}
.arch-lab .k91011 .mf-sw.k91011-sw-gap{border:1px solid #94a3b8;background:linear-gradient(#b91c1c,#b91c1c) center/100% 3px no-repeat,#fffdf8}
.arch-lab .k91011 svg text.k91011-on{font-size:14px;stroke:#fde68a;stroke-width:5px}

/* «Смарт Кенгуру» 2026, 9–10 №12 — стрелки +1 и +2: схема, таблички операций, число-капля, противоречие. */
.k91012 .k91012-arr{stroke:#64748b;stroke-width:2;fill:#64748b}
.k91012 .k91012-arr-1{stroke:#1d4ed8;fill:#1d4ed8;stroke-width:3}
.k91012 .k91012-arr-2{stroke:#c2410c;fill:#c2410c;stroke-width:3}
.k91012 .k91012-node{fill:#fff;stroke:#1f2937;stroke-width:2}
.k91012 .k91012-grey{fill:#cbd5e1}
.k91012 .k91012-clash{fill:#fecaca;stroke:#b91c1c;stroke-width:3}
.k91012 .k91012-tag{stroke-width:1.5;pointer-events:none}
.k91012 .k91012-tag-0{fill:#fff;stroke:#64748b;stroke-dasharray:4 3}
.k91012 .k91012-tag-1{fill:#dbeafe;stroke:#1d4ed8}
.k91012 .k91012-tag-2{fill:#fed7aa;stroke:#c2410c}
.k91012 .k91012-arr-stuck{stroke:#b91c1c;fill:#b91c1c;stroke-width:3;stroke-dasharray:6 4}
.k91012 .k91012-tag-0.k91012-tag-stuck{fill:#fecaca;stroke:#b91c1c}
.k91012 .k91012-grab{fill:transparent;stroke:none}
.k91012 .k91012-drop{fill:#fde68a;stroke:#b45309;stroke-width:2}
.k91012 svg text.k91012-op{font-size:14px;font-weight:700;fill:#1f2937;font-variant-numeric:tabular-nums}
.k91012 svg text.k91012-num{font-size:18px;font-weight:700;fill:#1f2937;font-variant-numeric:tabular-nums}
.k91012 svg text.k91012-known{fill:#111827}
.k91012 svg text.k91012-two{font-size:13px;font-weight:700;fill:#7f1d1d;font-variant-numeric:tabular-nums}
.k91012 svg text.k91012-dn{font-size:13px;font-weight:700;fill:#1f2937}
.k91012 .kg-legend .kg-sw.k91012-sw-grey{width:14px;border-radius:50%;background:#cbd5e1}
.k91012 .kg-legend .kg-sw.k91012-sw-one{background:#dbeafe;border-color:#1d4ed8}
.k91012 .kg-legend .kg-sw.k91012-sw-two{background:#fed7aa;border-color:#c2410c}
.k91012 .kg-legend .kg-sw.k91012-sw-clash{width:14px;border-radius:50%;background:#fecaca;border-color:#b91c1c}
.k91012 .kg-legend .kg-sw.k91012-sw-stuck{background:#fecaca;border-color:#b91c1c;border-style:dashed}
.k91012 .kg-legend .kg-sw.k91012-sw-drop{width:14px;border-radius:50%;background:#fde68a;border-color:#b45309}
/* the page does not move: the status line and the last row of buttons keep room for their fullest state */
.k91012 .arch-result.phx-result{box-sizing:border-box;min-height:110px}
@media(max-width:1100px){.k91012>.arch-actions:last-child{box-sizing:border-box;min-height:150px;align-content:flex-start}}
@media(max-width:700px){.k91012 .arch-result.phx-result{min-height:160px}.k91012>.arch-actions:last-child{min-height:250px}}
@media(max-width:340px){.k91012 .arch-result.phx-result{min-height:216px}.k91012>.arch-actions:last-child{min-height:310px}}

/* «Смарт Кенгуру» 2026, 9–10 №13 — последняя цифра вперёд: карточки цифр, лента из четырёх чисел, блокнот. */
.k91013 .k91013-card{stroke-width:2;pointer-events:none}
.k91013 .k91013-step{fill:#fff;stroke:#64748b;stroke-width:1.5}
.k91013 .k91013-tri{fill:#1f2937;stroke:none}
.k91013 .k91013-grab{fill:transparent;stroke:none}
.k91013 .k91013-empty{fill:#fff;stroke:#94a3b8;stroke-width:1.5;stroke-dasharray:4 3}
.k91013 .k91013-pair{stroke-width:4;stroke-linecap:round}
.k91013 .k91013-pair-ok{stroke:#15803d}
.k91013 .k91013-pair-bad{stroke:#dc2626}
.k91013 svg text.k91013-big{font-size:28px;font-weight:700;fill:#1f2937;font-variant-numeric:tabular-nums}
.k91013 svg text.k91013-row{font-size:14px;font-weight:700;fill:#475569}
.k91013 svg text.kg-b,.k91013 svg text.kg-ok,.k91013 svg text.kg-bad{font-variant-numeric:tabular-nums}
.k91013 .k91013-cap{margin:10px 0 4px;font-weight:700;color:var(--arch-label);font-variant-numeric:tabular-nums}
.k91013 .k91013-none{margin:0;font-size:14px}
.k91013 .kg-tried{align-content:flex-start}
.k91013 .arch-result.phx-result{font-variant-numeric:tabular-nums}
.k91013 .kg-legend .kg-sw.k91013-sw-ok{height:0;border-width:4px 0 0;border-radius:0;border-color:#15803d;background:none}
.k91013 .kg-legend .kg-sw.k91013-sw-bad{height:0;border-width:4px 0 0;border-radius:0;border-color:#dc2626;background:none}
.k91013 .kg-legend .k91013-sw4{display:inline-flex;flex:none;gap:5px}
.k91013 .kg-legend .k91013-sw4 .kg-sw{width:12px}

/* «Смарт Кенгуру» 2026, 9–10 №14 — углы вдвое (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k91014{--k91014-given:#1d4ed8;--k91014-built:#c2410c;--k91014-ok:#047857;--k91014-bad:#b91c1c}
.arch-lab .k91014 .k91014-paper{fill:#fffdf8}
.arch-lab .k91014 .k91014-box{fill:#fff;stroke:#cbd5e1;stroke-width:1.4}
.arch-lab .k91014 .k91014-tri{fill:#eff6ff;stroke:#1f2937;stroke-width:2.4;stroke-linejoin:round}
.arch-lab .k91014 .k91014-tri2{fill:#fff7ed;stroke:none}
.arch-lab .k91014 .k91014-side{stroke:#1f2937;stroke-width:2.6;stroke-linecap:round}
.arch-lab .k91014 .k91014-built{stroke:var(--k91014-built);stroke-width:2.6;stroke-linecap:round}
.arch-lab .k91014 .k91014-pen{fill:var(--k91014-built);stroke:#fff;stroke-width:1.5}
.arch-lab .k91014 .k91014-arc{fill:none;stroke-width:2}
.arch-lab .k91014 .k91014-arc.k91014-given{stroke:var(--k91014-given)}
.arch-lab .k91014 .k91014-arc.k91014-got{stroke:var(--k91014-built);stroke-width:3}
.arch-lab .k91014 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k91014 svg text.k91014-title{fill:#111827;font-size:14px;font-weight:700}
.arch-lab .k91014 svg text.k91014-name{fill:#111827;font-size:15px;font-weight:700;font-style:italic}
.arch-lab .k91014 svg text.k91014-val{font-size:13.5px;font-weight:700;paint-order:stroke;stroke:#fffdf8;stroke-width:3px}
.arch-lab .k91014 svg text.k91014-val.k91014-given{fill:#1e3a8a}
.arch-lab .k91014 svg text.k91014-val.k91014-got{fill:#9a3412}
.arch-lab .k91014 svg text.k91014-foot{fill:#1f2937;font-size:14px;font-weight:600}
.arch-lab .k91014 svg text.k91014-ok{fill:var(--k91014-ok)}
.arch-lab .k91014 svg text.k91014-bad{fill:var(--k91014-bad)}
.arch-lab .k91014 .mf-sw.k91014-sw-given{border:1px solid #94a3b8;background:radial-gradient(circle at 0 100%,transparent 8px,#1d4ed8 8px,#1d4ed8 10.5px,transparent 10.5px),#fffdf8}
.arch-lab .k91014 .mf-sw.k91014-sw-built{border:1px solid #94a3b8;background:linear-gradient(#c2410c,#c2410c) center/100% 3px no-repeat,#fffdf8}
.arch-lab .k91014 .mf-sw.k91014-sw-got{border:1px solid #94a3b8;background:radial-gradient(circle at 0 100%,transparent 8px,#c2410c 8px,#c2410c 11px,transparent 11px),#fffdf8}
.arch-lab .k91014 svg text.k91014-top{fill:#1e3a8a;font-style:normal}

/* «Смарт Кенгуру» 2026, 9–10 №15 — восемь ваз с фруктами (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k91015{--k91015-c3:#1d4ed8;--k91015-c2:#c2410c}
.arch-lab .k91015 .k91015-table{fill:#fffdf8}
.arch-lab .k91015 .k91015-bowl{fill:#bae6fd;stroke:#0369a1;stroke-width:2}
.arch-lab .k91015 .k91015-fruit{fill:#f59e0b;stroke:#92400e;stroke-width:1}
.arch-lab .k91015 .k91015-fruit.k91015-f2{fill:#ef4444;stroke:#7f1d1d}
.arch-lab .k91015 .k91015-try{fill:#f1f5f9;stroke:#64748b;stroke-width:1.5;stroke-dasharray:4 3}
.arch-lab .k91015 .k91015-three{fill:#dbeafe;stroke:var(--k91015-c3);stroke-width:3}
.arch-lab .k91015 .k91015-two{fill:none;stroke:var(--k91015-c2);stroke-width:3}
.arch-lab .k91015 .k91015-btn{fill:#f8fafc;stroke:#475569;stroke-width:1.5}
.arch-lab .k91015 svg text{stroke:none;pointer-events:none;font-variant-numeric:tabular-nums}
.arch-lab .k91015 svg text.k91015-btnt{fill:#111827;font-size:18px;font-weight:700}
.arch-lab .k91015 svg text.k91015-num{fill:#0c4a6e;font-size:16px;font-weight:700}
.arch-lab .k91015 svg text.k91015-foot{fill:#1f2937;font-size:14px;font-weight:700}
.arch-lab .k91015 svg text.k91015-c3{fill:var(--k91015-c3)}
.arch-lab .k91015 svg text.k91015-c2{fill:var(--k91015-c2)}
.arch-lab .k91015 svg text.k91015-bad{fill:#b91c1c}
.arch-lab .k91015 .k91015-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k91015 .k91015-hit:focus-visible{outline:none;stroke:#1d4ed8;stroke-width:2.5;stroke-dasharray:5 3}
.arch-lab .k91015 .mf-sw.k91015-sw-three{background:#dbeafe;border:3px solid #1d4ed8}
.arch-lab .k91015 .mf-sw.k91015-sw-two{background:#fffdf8;border:3px solid #c2410c}
.arch-lab .k91015 .mf-sw.k91015-sw-try{background:#f1f5f9;border:1.5px dashed #64748b}
.arch-lab .k91015 .k91015-sel{fill:none;stroke:#92400e;stroke-width:2;stroke-dasharray:5 4}
.arch-lab .k91015 .mf-sw.k91015-sw-sel{background:#fffdf8;border:2px dashed #92400e}

/* «Смарт Кенгуру» 2026, 9–10 №16 — полоски: счётчики у концов полосок, пересчёт по полоскам с отметками, блокнот. */
.k91016 svg text.k91016-digit{font-size:21px;font-weight:700;fill:#1f2937;font-variant-numeric:tabular-nums}
.k91016 svg text.kg-ok,.k91016 svg text.kg-bad{font-variant-numeric:tabular-nums}
.k91016 .k91016-shared{pointer-events:none;fill:none;stroke:#1f2937;stroke-width:2;stroke-dasharray:4 3}
.k91016 .k91016-dot{pointer-events:none;stroke:#fffdf8;stroke-width:1.5}
.k91016 .k91016-dot-v{fill:#1d4ed8}
.k91016 .k91016-dot-h{fill:#6d28d9}
.k91016 .k91016-run{pointer-events:none;fill:none;stroke-width:3;stroke-dasharray:7 4}
.k91016 .k91016-now{pointer-events:none;fill:none;stroke-width:3.5}
.k91016 .k91016-run-v{stroke:#1d4ed8}
.k91016 .k91016-run-h{stroke:#6d28d9}
.k91016 .k91016-n{fill:#fff;stroke-width:2.5;pointer-events:none}
.k91016 .k91016-tail{stroke-width:2.5;pointer-events:none}
.k91016 .k91016-n-ok{stroke:#15803d}
.k91016 .k91016-n-bad{stroke:#b91c1c}
.k91016 .k91016-n.k91016-n-run{stroke-width:4.5}
.k91016 .k91016-sum{margin:10px 0 4px;font-weight:700;color:var(--arch-label);font-variant-numeric:tabular-nums}
.k91016 .k91016-cap{margin:10px 0 4px;font-weight:700;color:var(--arch-label)}
.k91016 .k91016-none{margin:0;font-size:14px}
.k91016 .kg-tried{align-content:flex-start}
.k91016 .arch-result.phx-result{font-variant-numeric:tabular-nums}
.k91016 .kg-legend .kg-sw.k91016-sw-n{width:14px;border-radius:50%;border-width:2.5px;background:#fff}
.k91016 .kg-legend .kg-sw.k91016-sw-ok{border-color:#15803d}
.k91016 .kg-legend .kg-sw.k91016-sw-bad{border-color:#b91c1c}
.k91016 .kg-legend .kg-sw.k91016-sw-dot{width:10px;height:10px;border-radius:50%;border-color:#fffdf8;margin:2px 5px}
.k91016 .kg-legend .kg-sw.k91016-sw-v{background:#1d4ed8}
.k91016 .kg-legend .kg-sw.k91016-sw-h{background:#6d28d9}

/* «Смарт Кенгуру» 2026, 9–10 №17 — кубик катится по клеткам (Fable round, 10.11.2026). */
.k91017 .k91017-tile{fill:#fff;stroke:#1f2937;stroke-width:1.5;stroke-linejoin:round}
.k91017 .k91017-done{fill:#e2e8f0;stroke:#1f2937;stroke-width:1.5;stroke-linejoin:round}
.k91017 .k91017-here{fill:#fed7aa;stroke:#c2410c;stroke-width:2;stroke-linejoin:round}
.k91017 .k91017-flip0{fill:none;stroke:#1d4ed8;stroke-width:3.5}
.k91017 .k91017-flip1{fill:none;stroke:#7c3aed;stroke-width:3.5;stroke-dasharray:7 4}
.k91017 .k91017-face{stroke:#1f2937;stroke-width:1.6;stroke-linejoin:round}
.k91017 .k91017-pip polygon{fill:#1f2937}
.k91017 .k91017-net{fill:#fff8e8;stroke:#1f2937;stroke-width:1.5}
.k91017 .k91017-net-down{fill:#fed7aa;stroke:#c2410c;stroke-width:2}
.k91017 .k91017-dir{stroke:#64748b;stroke-width:2;stroke-linecap:round}
.k91017 .kg-sw.k91017-sw-here{background:#fed7aa;border-color:#c2410c}
.k91017 .kg-sw.k91017-sw-done{background:#e2e8f0}
.k91017 .kg-sw.k91017-sw-down{background:#fed7aa;border-color:#c2410c}
.k91017 .kg-sw.k91017-sw-flip0{background:#fff;border-color:#1d4ed8;border-width:3px}
.k91017 .kg-sw.k91017-sw-flip1{background:#fff;border-color:#7c3aed;border-width:3px;border-style:dashed}
.k91017 .k91017-guess{display:grid;gap:6px}
.k91017 .k91017-floor{fill:#eef2f7;stroke:none}
.k91017 .k91017-frame{fill:none;stroke:#94a3b8;stroke-width:1.5}

/* «Смарт Кенгуру» 2026, 9–10 №18 — друзья-палиндромы (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k91018 .k91018-paper{fill:#fffdf8}
.arch-lab .k91018 .k91018-cell{fill:#f8fafc;stroke:#94a3b8;stroke-width:1}
.arch-lab .k91018 .k91018-cell.k91018-friend{fill:#34d399;stroke:#047857;stroke-width:1.5}
.arch-lab .k91018 .k91018-cell.k91018-no{fill:#e2e8f0;stroke:#94a3b8}
.arch-lab .k91018 .k91018-cell.k91018-self{fill:#fde68a;stroke:#92400e;stroke-width:2.4}
.arch-lab .k91018 .k91018-cell.k91018-now{stroke:#1d4ed8;stroke-width:3}
.arch-lab .k91018 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k91018 svg text.k91018-cap{fill:#334155;font-size:14px;font-weight:600}
.arch-lab .k91018 svg text.k91018-head{fill:#1f2937;font-size:13px;font-weight:700}
.arch-lab .k91018 svg text.k91018-sum{fill:#111827;font-size:17px;font-weight:700}
.arch-lab .k91018 svg text.k91018-ok{fill:#047857}
.arch-lab .k91018 svg text.k91018-bad{fill:#b91c1c}
.arch-lab .k91018 .mf-sw.k91018-sw-friend{background:#34d399;border:1.5px solid #047857}
.arch-lab .k91018 .mf-sw.k91018-sw-no{background:#e2e8f0;border:1px solid #94a3b8}
.arch-lab .k91018 .mf-sw.k91018-sw-self{background:#fde68a;border:2.4px solid #92400e}
.arch-lab .k91018 .mf-sw.k91018-sw-now{background:#f8fafc;border:3px solid #1d4ed8}

/* «Смарт Кенгуру» 2026, 9–10 №19 — пятиугольник (Fable round, 10.11.2026). */
.k91019 .k91019-pent{fill:#dbeafe;stroke:none}
.k91019 .k91019-edge{fill:none;stroke:#1f2937;stroke-width:2.2;stroke-linejoin:round}
.k91019 .k91019-par{fill:#fed7aa;fill-opacity:.75;stroke:none}
.k91019 .k91019-tri{fill:#bfdbfe;fill-opacity:.8;stroke:none}
.k91019 .k91019-circle{fill:none;stroke:#15803d;stroke-width:1.6;stroke-dasharray:5 5}
.k91019 .k91019-aux{stroke:#1f2937;stroke-width:1.6;stroke-dasharray:6 4}
.k91019 .k91019-thin{fill:none;stroke:#1f2937;stroke-width:1.4}
.k91019 .k91019-am{stroke:#c2410c;stroke-width:3.5;stroke-linecap:round}
.k91019 .k91019-rod{stroke:#c2410c;stroke-width:4;stroke-linecap:round}
.k91019 svg text.k91019-rod-t{fill:#9a3412;font-size:16px;font-weight:700}
.k91019 .kg-sw.k91019-sw-am{height:0;border-width:3.5px 0 0;border-color:#c2410c;border-radius:0;background:none}
.k91019 .kg-sw.k91019-sw-par{background:#fed7aa;border-color:#c2410c}
.k91019 .kg-sw.k91019-sw-tri{background:#bfdbfe;border-color:#1d4ed8}
.k91019 .kg-sw.k91019-sw-circle{background:#fff;border:1.6px dashed #15803d;border-radius:50%;width:16px;height:16px}

/* «Смарт Кенгуру» 2026, 9–10 №2 — дюжины процентов (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k9102{--k9102-on:#f59e0b}
.arch-lab .k9102 .k9102-table{fill:#fffdf8}
.arch-lab .k9102 .k9102-tray{fill:#e7d3b0;stroke:#92400e;stroke-width:2}
.arch-lab .k9102 .k9102-egg{fill:#fffdf8;stroke:none}
.arch-lab .k9102 .k9102-on{fill:var(--k9102-on);stroke:none}
.arch-lab .k9102 .k9102-rim{fill:none;stroke:#7c2d12;stroke-width:1.6}
.arch-lab .k9102 .k9102-ruler{fill:#f1f5f9;stroke:#475569;stroke-width:1.5}
.arch-lab .k9102 .k9102-rfill{fill:var(--k9102-on);stroke:none}
.arch-lab .k9102 .k9102-tick{stroke:#475569;stroke-width:1.5}
.arch-lab .k9102 .k9102-goal{stroke:#1d4ed8;stroke-width:3;stroke-linecap:round}
.arch-lab .k9102 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k9102 svg text.k9102-cap{fill:#1f2937;font-size:14px;font-weight:600}
.arch-lab .k9102 svg text.k9102-goalt{fill:#1d4ed8;font-size:15px;font-weight:700}
.arch-lab .k9102 .mf-sw.k9102-sw-on{background:#f59e0b;border:1.6px solid #7c2d12;border-radius:50%}
.arch-lab .k9102 .mf-sw.k9102-sw-off{background:#fffdf8;border:1.6px solid #7c2d12;border-radius:50%}
.arch-lab .k9102 .mf-sw.k9102-sw-ruler{background:linear-gradient(to right,#f59e0b 0 60%,#f1f5f9 60%);border:1.5px solid #475569}

/* «Смарт Кенгуру» 2026, 9–10 №20 — пирожки: полоса дня из равных частей, три числа дня, календарь делителя, блокнот. */
.k91020 .k91020-frame{fill:none;stroke:#1f2937;stroke-width:1.8;pointer-events:none}
.k91020 .k91020-all{fill:#fff;stroke:#1f2937;stroke-width:1.8}
.k91020 .k91020-rule{stroke:#cbd5e1;stroke-width:1.5}
.k91020 .k91020-later{fill:#fff;stroke:#94a3b8;stroke-width:1.5;stroke-dasharray:4 3}
.k91020 .k91020-now{fill:none;stroke:#1f2937;stroke-width:3;pointer-events:none}
.k91020 svg text.k91020-lb{font-size:13px;font-weight:700}
.k91020 svg text.k91020-num{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.k91020 svg text.k91020-num.k91020-tight{font-size:15.5px}
.k91020 svg text.k91020-blue{fill:#1e40af}
.k91020 svg text.k91020-orange{fill:#9a3412}
.k91020 svg text.k91020-ink{fill:#1f2937}
.k91020 svg text.k91020-day{font-size:13px;font-weight:700;fill:#1f2937;pointer-events:none;font-variant-numeric:tabular-nums}
.k91020 svg text.k91020-dim{fill:#64748b;font-weight:400}
.k91020 svg text.kg-b,.k91020 svg text.kg-s{font-variant-numeric:tabular-nums}
.k91020 .k91020-cap{margin:10px 0 4px;font-weight:700;color:var(--arch-label)}
.k91020 .k91020-none{margin:0;font-size:14px}
.k91020 .kg-tried{align-content:flex-start;margin:0}
.k91020 .kg-chip{font-variant-numeric:tabular-nums}
.k91020 .arch-result.phx-result{font-variant-numeric:tabular-nums}

/* «Смарт Кенгуру» 2026, 9–10 №3 — зубчатые числа (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k9103{--k9103-ok:#047857;--k9103-bad:#b91c1c}
.arch-lab .k9103 .k9103-paper{fill:#fffdf8}
.arch-lab .k9103 .k9103-base{stroke:#1f2937;stroke-width:3;stroke-linecap:round}
.arch-lab .k9103 .k9103-bar{stroke-width:2}
.arch-lab .k9103 .k9103-num{fill:#bfdbfe;stroke:#1d4ed8}
.arch-lab .k9103 .k9103-next{fill:#fed7aa;stroke:#c2410c}
.arch-lab .k9103 .k9103-ghost{fill:none;stroke:#94a3b8;stroke-width:1.5;stroke-dasharray:5 4}
.arch-lab .k9103 .k9103-arrow{stroke:#475569;stroke-width:2.5;stroke-linecap:round}
.arch-lab .k9103 svg text{stroke:none;pointer-events:none;font-variant-numeric:tabular-nums}
.arch-lab .k9103 svg text.k9103-title{fill:#1f2937;font-size:14px;font-weight:700}
.arch-lab .k9103 svg text.k9103-digit{fill:#111827;font-size:17px;font-weight:700}
.arch-lab .k9103 svg text.k9103-plus{fill:#475569;font-size:15px;font-weight:700}
.arch-lab .k9103 svg text.k9103-sign{font-size:20px;font-weight:800}
.arch-lab .k9103 svg text.k9103-verdict{font-size:14px;font-weight:700}
.arch-lab .k9103 svg text.k9103-ok{fill:var(--k9103-ok)}
.arch-lab .k9103 svg text.k9103-bad{fill:var(--k9103-bad)}
.arch-lab .k9103 .k9103-btn{fill:#f8fafc;stroke:#475569;stroke-width:1.5}
.arch-lab .k9103 svg text.k9103-btnt{fill:#111827;font-size:19px;font-weight:700}
.arch-lab .k9103 .k9103-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k9103 .k9103-hit:focus-visible{outline:none;stroke:#1d4ed8;stroke-width:2.5;stroke-dasharray:5 3}
.arch-lab .k9103 .mf-sw.k9103-sw-num{background:#bfdbfe;border:2px solid #1d4ed8}
.arch-lab .k9103 .mf-sw.k9103-sw-next{background:#fed7aa;border:2px solid #c2410c}
.arch-lab .k9103 .mf-sw.k9103-sw-ok{background:#d1fae5;border:2px solid #047857}
.arch-lab .k9103 .mf-sw.k9103-sw-bad{background:#fee2e2;border:2px solid #b91c1c}
.arch-lab .k9103 .k9103-sel{fill:none;stroke:#92400e;stroke-width:2;stroke-dasharray:6 4}
.arch-lab .k9103 .mf-sw.k9103-sw-sel{background:#fffdf8;border:2px dashed #92400e}

/* «Смарт Кенгуру» 2026, 9–10 №4 — повороты автомобиля (Fable round, 10.11.2026). */
.k9104 .k9104-road{fill:none;stroke:#e2e8f0;stroke-width:15;stroke-linejoin:round;stroke-linecap:round}
.k9104 .k9104-route{fill:none;stroke:#64748b;stroke-width:1.6;stroke-linejoin:round;stroke-dasharray:1 0}
.k9104 .k9104-gone{fill:none;stroke:#1d4ed8;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.k9104 .k9104-chev{fill:none;stroke:#1f2937;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.k9104 .k9104-ghost{stroke:#1f2937;stroke-width:2;stroke-dasharray:4 3}
.k9104 .k9104-arc{fill:none;stroke:#475569;stroke-width:3}
.k9104 .k9104-arc-ok{fill:none;stroke:#15803d;stroke-width:3.5}
.k9104 .k9104-body{fill:#ef4444;stroke:#7f1d1d;stroke-width:1.3}
.k9104 .k9104-roof{fill:#fca5a5;stroke:#7f1d1d;stroke-width:1}
.k9104 .k9104-glass{fill:#bae6fd;stroke:#7f1d1d;stroke-width:1}
.k9104 .k9104-wheel{fill:#1f2937}
.k9104 .k9104-lamp{fill:#fde047;stroke:#7f1d1d;stroke-width:.6}
.k9104 .kg-sw.k9104-sw-ghost{height:0;border-width:2px 0 0;border-style:dashed;border-color:#1f2937;border-radius:0;background:none}

/* «Смарт Кенгуру» 2026, 9–10 №5 — средняя линия на серединном перпендикуляре (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k9105{--k9105-mid:#1d4ed8;--k9105-perp:#047857}
.arch-lab .k9105 .k9105-paper{fill:#fffdf8}
.arch-lab .k9105 .k9105-tri{fill:#fff7ed;stroke:#1f2937;stroke-width:2.6;stroke-linejoin:round}
.arch-lab .k9105 .k9105-arc{fill:none;stroke:#1f2937;stroke-width:1.8}
.arch-lab .k9105 .k9105-perp{stroke:var(--k9105-perp);stroke-width:7;stroke-linecap:round;stroke-opacity:.45}
.arch-lab .k9105 .k9105-mid{stroke:var(--k9105-mid);stroke-width:3.4;stroke-linecap:round}
.arch-lab .k9105 .k9105-pt{fill:var(--k9105-mid);stroke:#fffdf8;stroke-width:1.5}
.arch-lab .k9105 .k9105-right{fill:none;stroke:var(--k9105-perp);stroke-width:2}
.arch-lab .k9105 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k9105 svg text.k9105-name{fill:#111827;font-size:16px;font-weight:700;font-style:italic;paint-order:stroke;stroke:#fffdf8;stroke-width:3.5px}
.arch-lab .k9105 svg text.k9105-blue{fill:var(--k9105-mid)}
.arch-lab .k9105 svg text.k9105-val{fill:#111827;font-size:14px;font-weight:700;paint-order:stroke;stroke:#fff7ed;stroke-width:3.5px}
.arch-lab .k9105 svg text.k9105-foot{font-size:15px;font-weight:700}
.arch-lab .k9105 svg text.k9105-ok{fill:var(--k9105-perp)}
.arch-lab .k9105 svg text.k9105-bad{fill:#b91c1c}
.arch-lab .k9105 .mf-sw.k9105-sw-mid{border:1px solid #94a3b8;background:linear-gradient(#1d4ed8,#1d4ed8) center/100% 4px no-repeat,#fffdf8}
.arch-lab .k9105 .mf-sw.k9105-sw-perp{border:1px solid #94a3b8;background:linear-gradient(rgba(4,120,87,.5),rgba(4,120,87,.5)) center/100% 7px no-repeat,#fffdf8}
.arch-lab .k9105 .mf-sw.k9105-sw-pt{background:#1d4ed8;border-radius:50%}

/* «Смарт Кенгуру» 2026, 9–10 №6 — пары без пересечений: точки, отрезки, что видит выбранная точка, блокнот. */
.k9106 .k9106-blob{fill:#f8fafc;stroke:#94a3b8;stroke-width:1.5}
.k9106 .k9106-seg{stroke:#1d4ed8;stroke-width:4;stroke-linecap:round}
.k9106 .k9106-seg.k9106-bad{stroke:#dc2626}
.k9106 .k9106-ray{stroke-width:2;stroke-linecap:round;pointer-events:none}
.k9106 .k9106-ray-ok{stroke:#15803d;stroke-dasharray:2 6}
.k9106 .k9106-ray-no{stroke:#dc2626;stroke-dasharray:9 5}
.k9106 .k9106-grab{fill:transparent;stroke:transparent;stroke-width:20}
.k9106 line.k9106-grab{stroke-linecap:round}
.k9106 .k9106-pt{fill:#fff;stroke:#1f2937;stroke-width:2.5;pointer-events:none}
.k9106 .k9106-pt-on{fill:#1d4ed8}
.k9106 .k9106-pt-sel{fill:#f59e0b}
.k9106 .k9106-ring{fill:none;stroke:#b45309;stroke-width:2;stroke-dasharray:4 3;pointer-events:none}
.k9106 svg text.k9106-name{font-size:17px;font-style:italic;font-weight:700;fill:#1f2937}
.k9106 .k9106-cap{margin:10px 0 4px;font-weight:700;color:var(--arch-label)}
.k9106 .k9106-book{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.k9106 .k9106-book li{box-sizing:border-box;min-height:36px;padding:5px 10px;border:1px solid var(--arch-soft-line);border-radius:10px;background:var(--arch-surface)}
.k9106 .k9106-book li.k9106-yes{border-color:#15803d;background:#ecfdf5;color:#064e3b}
.k9106 .k9106-book b{white-space:nowrap}
.k9106 .kg-legend .kg-sw.k9106-sw-seg{height:0;border-width:4px 0 0;border-radius:0;border-color:#1d4ed8;background:none}
.k9106 .kg-legend .kg-sw.k9106-sw-bad{height:0;border-width:4px 0 0;border-radius:0;border-color:#dc2626;background:none}
.k9106 .kg-legend .kg-sw.k9106-sw-ok{height:0;border-width:2px 0 0;border-style:dotted;border-radius:0;border-color:#15803d;background:none}
.k9106 .kg-legend .kg-sw.k9106-sw-no{height:0;border-width:2px 0 0;border-style:dashed;border-radius:0;border-color:#dc2626;background:none}
/* the page does not move: the status line, the notebook and the last row of buttons keep room for their fullest state */
.k9106 .arch-result.phx-result{box-sizing:border-box;min-height:84px}
@media(max-width:700px){.k9106 .arch-result.phx-result{min-height:160px}.k9106 .k9106-book li{min-height:62px}.k9106 .k9106-book span{display:block}}
@media(max-width:1100px){.k9106>.arch-actions:last-child{box-sizing:border-box;min-height:150px;align-content:flex-start}}
@media(max-width:700px){.k9106>.arch-actions:last-child{min-height:250px}}
@media(max-width:340px){.k9106 .arch-result.phx-result{min-height:190px}.k9106 .k9106-book li{min-height:104px}.k9106>.arch-actions:last-child{min-height:310px}}

/* «Смарт Кенгуру» 2026, 9–10 №7 — корень из куба квадрата куба (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k9107 .k9107-paper{fill:#fffdf8}
.arch-lab .k9107 .k9107-block{fill:#f1f5f9;stroke:#64748b;stroke-width:1.5}
.arch-lab .k9107 .k9107-tile{fill:#93c5fd;stroke:#1d4ed8;stroke-width:1.5}
.arch-lab .k9107 .k9107-keep{fill:#34d399;stroke:#047857;stroke-width:1.5}
.arch-lab .k9107 .k9107-gone{fill:#fffdf8;stroke:#64748b;stroke-width:1.5;stroke-dasharray:3 3}
.arch-lab .k9107 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k9107 svg text.k9107-chain{fill:#111827;font-size:17px;font-weight:700}
.arch-lab .k9107 svg text.k9107-cap{fill:#1f2937;font-size:14px;font-weight:600}
.arch-lab .k9107 .mf-sw.k9107-sw-tile{background:#93c5fd;border:1.5px solid #1d4ed8}
.arch-lab .k9107 .mf-sw.k9107-sw-keep{background:#34d399;border:1.5px solid #047857}
.arch-lab .k9107 .mf-sw.k9107-sw-gone{background:#fffdf8;border:1.5px dashed #64748b}

/* «Смарт Кенгуру» 2026, 9–10 №8 — между однозначными и двузначными (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k9108{--k9108-ok:#047857;--k9108-bad:#b91c1c}
.arch-lab .k9108 .k9108-paper{fill:#fffdf8}
.arch-lab .k9108 .k9108-card{fill:#eff6ff;stroke:#1d4ed8;stroke-width:1.6}
.arch-lab .k9108 .k9108-card.k9108-yes{fill:#d1fae5;stroke:var(--k9108-ok);stroke-width:2.2}
.arch-lab .k9108 .k9108-card.k9108-no{fill:#fee2e2;stroke:var(--k9108-bad);stroke-width:2.6}
.arch-lab .k9108 .k9108-tick{fill:none;stroke:var(--k9108-ok);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.arch-lab .k9108 .k9108-cross{fill:none;stroke:var(--k9108-bad);stroke-width:2.8;stroke-linecap:round}
.arch-lab .k9108 .k9108-ruler{fill:#f1f5f9;stroke:#475569;stroke-width:1.5}
.arch-lab .k9108 .k9108-two{fill:#fde68a;stroke:#92400e;stroke-width:1.5}
.arch-lab .k9108 .k9108-mark{stroke:#475569;stroke-width:1.5}
.arch-lab .k9108 .k9108-pinl{stroke:#1d4ed8;stroke-width:3;stroke-linecap:round}
.arch-lab .k9108 .k9108-pin{fill:#1d4ed8;stroke:#fffdf8;stroke-width:1.5}
.arch-lab .k9108 .k9108-seek{fill:none;stroke:#7c2d12;stroke-width:3}
.arch-lab .k9108 .k9108-seek.k9108-hit{fill:#d1fae5;fill-opacity:.7;stroke:var(--k9108-ok)}
.arch-lab .k9108 .k9108-seek.k9108-miss{fill:#fee2e2;fill-opacity:.7;stroke:var(--k9108-bad)}
.arch-lab .k9108 svg text{stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .k9108 svg text.k9108-title{fill:#1f2937;font-size:14px;font-weight:700}
.arch-lab .k9108 svg text.k9108-num{fill:#111827;font-size:16px;font-weight:700}
.arch-lab .k9108 svg text.k9108-cap{fill:#1f2937;font-size:14px;font-weight:600}
.arch-lab .k9108 svg text.k9108-dim{fill:#475569}
.arch-lab .k9108 svg text.k9108-pint{fill:#1d4ed8;font-size:16px;font-weight:700}
.arch-lab .k9108 svg text.k9108-seekt{fill:var(--k9108-ok);font-size:16px;font-weight:700}
.arch-lab .k9108 svg text.k9108-verdict{font-size:15px;font-weight:700}
.arch-lab .k9108 svg text.k9108-ok{fill:var(--k9108-ok)}
.arch-lab .k9108 svg text.k9108-bad{fill:var(--k9108-bad)}
.arch-lab .k9108 .mf-sw.k9108-sw-yes{background:#d1fae5;border:2px solid #047857}
.arch-lab .k9108 .mf-sw.k9108-sw-no{background:#fee2e2;border:2px solid #b91c1c}
.arch-lab .k9108 .mf-sw.k9108-sw-pin{background:#1d4ed8;border-radius:50%}
.arch-lab .k9108 .mf-sw.k9108-sw-seek{background:#d1fae5;border:3px solid #047857;border-radius:50%}

/* «Смарт Кенгуру» 2026, 9–10 №9 — где спряталось «ха» (на общем каркасе модели). Сцена светлая в обеих темах. */
.arch-lab .k9109 .k9109-paper{fill:#fffdf8}
.arch-lab .k9109 .k9109-card{fill:#eff6ff;stroke:#1d4ed8;stroke-width:1.8}
.arch-lab .k9109 .k9109-card.k9109-pick{fill:#fde68a;stroke:#92400e;stroke-width:3.2}
.arch-lab .k9109 .k9109-tile{fill:#f8fafc;stroke:#64748b;stroke-width:1.4}
.arch-lab .k9109 .k9109-tile.k9109-ha{fill:#fee2e2;stroke:#b91c1c;stroke-width:2.8}
.arch-lab .k9109 .k9109-joint{stroke:#64748b;stroke-width:2;stroke-linecap:round}
.arch-lab .k9109 .k9109-lens{fill:#bae6fd;fill-opacity:.35;stroke:#0369a1;stroke-width:3}
.arch-lab .k9109 svg text{stroke:none;pointer-events:none}
.arch-lab .k9109 svg text.k9109-title{fill:#334155;font-size:14px;font-weight:600}
.arch-lab .k9109 svg text.k9109-word{fill:#111827;font-size:18px;font-weight:700}
.arch-lab .k9109 svg text.k9109-ord{fill:#334155;font-size:13px;font-weight:600}
.arch-lab .k9109 svg text.k9109-letter{fill:#111827;font-size:18px;font-weight:700}
.arch-lab .k9109 svg text.k9109-foot{font-size:15px;font-weight:700}
.arch-lab .k9109 svg text.k9109-ok{fill:#047857}
.arch-lab .k9109 svg text.k9109-bad{fill:#b91c1c}
.arch-lab .k9109 .k9109-hit{fill:transparent;stroke:none;cursor:pointer}
.arch-lab .k9109 .k9109-hit:focus-visible{outline:none;stroke:#1d4ed8;stroke-width:2.5;stroke-dasharray:5 3}
.arch-lab .k9109 .mf-sw.k9109-sw-card{background:#eff6ff;border:1.8px solid #1d4ed8}
.arch-lab .k9109 .mf-sw.k9109-sw-pick{background:#fde68a;border:3px solid #92400e}
.arch-lab .k9109 .mf-sw.k9109-sw-lens{background:rgba(186,230,253,.6);border:3px solid #0369a1;border-radius:8px}
.arch-lab .k9109 .mf-sw.k9109-sw-ha{background:#fee2e2;border:2.8px solid #b91c1c}

/* «Смарт Кенгуру» 2026: classes shared by all labs of the package (light paper in both themes, tools/light-stage.mjs). */
.kg-lab .kg-paper{fill:#fffdf8}
.kg-lab svg text.kg-t{fill:#1f2937;font-size:15px}
.kg-lab svg text.kg-b{fill:#1f2937;font-size:15px;font-weight:700}
.kg-lab svg text.kg-s{fill:#334155;font-size:13px}
.kg-lab svg text.kg-big{fill:#1f2937;font-size:22px;font-weight:700}
.kg-lab svg text.kg-ok{fill:#166534;font-size:14px;font-weight:700}
.kg-lab svg text.kg-bad{fill:#991b1b;font-size:14px;font-weight:700}
.kg-lab svg text.kg-w{fill:#fff;font-size:15px;font-weight:700}
.kg-lab .kg-line{stroke:#1f2937;stroke-width:2;fill:none}
.kg-lab .kg-thin{stroke:#94a3b8;stroke-width:1;fill:none}
.kg-lab .kg-box{fill:#fff;stroke:#1f2937;stroke-width:1.5}
.kg-lab .kg-blue{fill:#bfdbfe;stroke:#1d4ed8;stroke-width:1.5}
.kg-lab .kg-orange{fill:#fed7aa;stroke:#c2410c;stroke-width:1.5}
.kg-lab .kg-green{fill:#bbf7d0;stroke:#15803d;stroke-width:1.5}
.kg-lab .kg-red{fill:#fecaca;stroke:#b91c1c;stroke-width:1.5}
.kg-lab .kg-grey{fill:#e2e8f0;stroke:#64748b;stroke-width:1.5}
.kg-lab .kg-hit{cursor:pointer}
.kg-lab .kg-hit:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.kg-lab .kg-sel{stroke:#2563eb;stroke-width:3}
/* Fable round (10.11.2026): legend swatches, text with a halo for numbers on fills, common strokes */
.kg-lab .kg-legend{margin-top:2px}
.kg-lab .kg-sw{display:inline-block;flex:none;width:20px;height:14px;border-radius:4px;border:1.5px solid #1f2937;background:#fff}
.kg-lab .kg-sw-blue{background:#bfdbfe;border-color:#1d4ed8}
.kg-lab .kg-sw-orange{background:#fed7aa;border-color:#c2410c}
.kg-lab .kg-sw-green{background:#bbf7d0;border-color:#15803d}
.kg-lab .kg-sw-red{background:#fecaca;border-color:#b91c1c}
.kg-lab .kg-sw-grey{background:#e2e8f0;border-color:#64748b}
.kg-lab .kg-sw-violet{background:#ddd6fe;border-color:#6d28d9}
.kg-lab .kg-sw-yellow{background:#fde68a;border-color:#b45309}
.kg-lab .kg-sw-dash{background:#fff;border-style:dashed}
.kg-lab .kg-sw-line{height:0;border-width:3px 0 0;border-radius:0;background:none}
.kg-lab svg text.kg-halo{paint-order:stroke;stroke:#fffdf8;stroke-width:4px;stroke-linejoin:round}
.kg-lab .kg-violet{fill:#ddd6fe;stroke:#6d28d9;stroke-width:1.5}
.kg-lab .kg-yellow{fill:#fde68a;stroke:#b45309;stroke-width:1.5}
/* the legend lies on the page, which is dark in the dark theme: every swatch keeps a light paper edge, so dark lines stay visible */
.kg-lab .kg-legend .kg-sw{box-shadow:0 0 0 3px #fffdf8}
/* 10.11.2026 (GPT-2 KANGAROO-R10): a caption drawn over a clickable part must not take the tap — texts of a drawing never
   catch the pointer themselves; a clickable group still gets the tap through its own shape under the text */
.kg-lab svg text{pointer-events:none}
/* results the pupil has already tried: chips under the drawing (they wrap on a phone) */
.kg-lab .kg-tried{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0;font-size:14px}
.kg-lab .kg-tried-k{flex:1 0 100%;opacity:.85}
.kg-lab .kg-chip{padding:3px 9px;border-radius:999px;border:1.5px solid #94a3b8;background:#f8fafc;color:#1f2937;font-weight:700;white-space:nowrap}
.kg-lab .kg-chip-yes{border-color:#15803d;background:#dcfce7;color:#14532d}
.kg-lab .kg-chip-no{border-color:#b91c1c;background:#fee2e2;color:#7f1d1d}

.kg-lab ol[class$="-moves"]{margin:6px 0 6px 1.5em;padding:0;font-size:15px;line-height:1.5}
/* marks drawn over a clickable part never take the tap (KANGAROO-R10) */
.kg-lab svg line[class$="-stick"],.kg-lab svg line[class$="-x"]{pointer-events:none}
/* steady blocks (GPT-2 KANGAROO-FABLE2-R03): the live text and its longest variants share one grid cell; the variants are invisible */
.kg-lab .kg-steady{display:grid}
.kg-lab .kg-steady>*{grid-area:1/1;min-width:0}
.kg-lab .kg-steady>.kg-ghost{visibility:hidden;pointer-events:none;user-select:none}
/* in a steady lab the place of «Вернуться к своей попытке» is kept from the first view: the row of buttons does not grow */
.kg-lab.kg-keep .arch-return-attempt[hidden]{display:inline-block!important;visibility:hidden}
