/* 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}
/* KFU-S04 (11.11.2026): the time line keeps its own row and the play button its width, so the rows of the clock never re-wrap while the time runs */
.arch-lab .phx-clock .phx-time{flex:1 0 100%;white-space:nowrap}
.arch-lab .arch-timeline .arch-play{min-width:112px}
.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){
 .arch-lab .phx-stage{position:relative;top:auto;z-index:auto;background:var(--arch-surface);max-height:40vh}
 .arch-lab .phx-stage .phx-svg{max-height:calc(40vh - 10px)}
 /* 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}
/* ==== 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;--ht91-a:#1d4ed8;--ht91-a-soft:#dbe7ff;--ht91-b:#c2410c;--ht91-b-soft:#ffe1cc;--ht91-flag:#dc2626;--ht92-ok:#047857;--ht92-bad:#b91c1c;--ht92-tri:#eef4ff;--ht93-de:#c2410c;--ht93-bis:#7c3aed;--ht93-sq2:#047857;--ht93-tan:#db2777;--ht93-strip:#fde7d2;--ht93-hatch:#f0a56a;--ht93-tri:#eef4ff;--ht93-sq:#d1fae5;--ht96-bench:#eef2f7;--ht96-rack:#f3e3cc;--ht96-code:#1f2937}}
: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;--ht91-a:#1d4ed8;--ht91-a-soft:#dbe7ff;--ht91-b:#c2410c;--ht91-b-soft:#ffe1cc;--ht91-flag:#dc2626;--ht92-ok:#047857;--ht92-bad:#b91c1c;--ht92-tri:#eef4ff;--ht93-de:#c2410c;--ht93-bis:#7c3aed;--ht93-sq2:#047857;--ht93-tan:#db2777;--ht93-strip:#fde7d2;--ht93-hatch:#f0a56a;--ht93-tri:#eef4ff;--ht93-sq:#d1fae5;--ht96-bench:#eef2f7;--ht96-rack:#f3e3cc;--ht96-code:#1f2937}
@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}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage .phx-svg text.y75-name.y75-p0{fill:#be185d}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage .phx-svg text.y75-name.y75-p0{fill:#be185d}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage .phx-svg text.y75-name.y75-p1{fill:#c2410c}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage .phx-svg text.y75-name.y75-p1{fill:#c2410c}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage .phx-svg text.y75-name.y75-p2{fill:#047857}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage .phx-svg text.y75-name.y75-p2{fill:#047857}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage .phx-svg .ht92-lbl-a{fill:#1d4ed8}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage .phx-svg .ht92-lbl-a{fill:#1d4ed8}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage .phx-svg .ht92-lbl-b{fill:#15803d}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage .phx-svg .ht92-lbl-b{fill:#15803d}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage .phx-svg .ht92-lbl-c{fill:#6d28d9}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage .phx-svg .ht92-lbl-c{fill:#6d28d9}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage .phx-svg .ht96-sum{fill:#c2410c}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage .phx-svg .ht96-sum{fill:#c2410c}
/* ===== Additions of content-factory/kfu-2025-26-final-v1 (copied from the MOSH package): the answer check by subparts (visuals/parts.mjs) =====
   It sits next to the statement (outside .arch-lab), so it uses the site tokens with light fallbacks. */
.mosh-parts{margin:18px 0 0;padding:16px;border:1px solid var(--line,#d7e1ed);border-radius:16px;background:var(--surface,#fff);min-width:0}
.mosh-parts h3{margin:0 0 6px;font-size:18px}
.mosh-parts .mosh-parts-help{margin:0 0 10px;font-size:15px;color:var(--ink-2,#5b6b82)}
.mosh-parts .mosh-parts-variants{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.mosh-parts .mosh-parts-variants button{font:inherit;font-size:16px;min-height:44px;min-width:44px;padding:8px 16px;border-radius:999px;border:1px solid var(--line,#aebed1);background:transparent;color:inherit;cursor:pointer}
.mosh-parts .mosh-parts-variants button[aria-pressed="true"]{border-color:var(--accent,#244974);background:var(--accent-soft,#e6eefb);font-weight:600}
.mosh-parts .mosh-parts-vnote{margin:0 0 10px;font-size:15px}
.mosh-parts .mosh-part{display:grid;gap:6px;margin:0 0 12px;min-width:0}
.mosh-parts .mosh-part-key{font-weight:700}
.mosh-parts .mosh-part-unit{color:var(--ink-2,#5b6b82)}
.mosh-parts .mosh-part-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.mosh-parts .mosh-part-row input{font:inherit;font-size:18px;min-height:44px;width:min(220px,100%);padding:8px 12px;border:1px solid var(--line,#aebed1);border-radius:12px;background:transparent;color:inherit;min-width:0}
.mosh-parts .mosh-part-result{font-size:15px}
.mosh-parts [data-result="correct"]{color:var(--ok,#047857)}
.mosh-parts [data-result="incorrect"],.mosh-parts [data-result="format"]{color:var(--bad,#b91c1c)}
.mosh-parts .mosh-part-note{margin:0;font-size:15px;color:var(--ink-2,#5b6b82)}
.mosh-parts .mosh-parts-submit{font:inherit;font-size:16px;min-height:44px;padding:10px 20px;border-radius:999px;border:1px solid var(--accent,#244974);background:var(--accent,#244974);color:var(--on-ink,#fff);cursor:pointer}
.mosh-parts .mosh-parts-feedback{margin:10px 0 0}

/* a real fraction in a text of a model (ui.mjs setText: «{num|den}») */
.arch-lab .arch-frac{display:inline-flex;flex-direction:column;align-items:stretch;text-align:center;vertical-align:middle;line-height:1.15;margin:0 .15em;font-variant-numeric:tabular-nums}
.arch-lab .arch-frac>span:first-child{border-bottom:1.5px solid currentColor;padding:0 .2em}
.arch-lab .arch-frac>span:last-child{padding:0 .2em}
/* the bar of a fraction spans the wider of numerator and denominator (stretch); a root's bar covers the whole radicand */
.arch-lab .arch-root{display:inline-flex;align-items:flex-start;white-space:nowrap}
.arch-lab .arch-root>span{border-top:1.5px solid currentColor;padding:0 .1em;margin-left:.05em;margin-top:.12em}
.arch-lab sup{font-size:75%;line-height:0}

/* ETALON §3 (приёмка ННГУ 03.11, контраст): the scene of every lab is light paper with dark lines and labels in both themes —
   no dark field with white elements; the symbols of the legend are the same paper (a white chip); the controls and readouts
   around it follow the theme (GPT-1 R11, круг 3). The light values are those of the light theme above; the selectors outrank
   the dark rules of lab.css and of visuals/labs/*.css. */
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage.phx-stage,:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-legend .phx-svg.phx-svg{--arch-surface:#fff;--arch-ink:#1f2937;--arch-label:#203c58;--arch-muted:#5b6b82;--arch-field-line:#aebed1;--arch-soft-line:#d7e1ed;--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;color:#1f2937;color-scheme:light}:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage.phx-stage .phx-svg.phx-svg,:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-legend .phx-svg.phx-svg{--phx-a:#1d4ed8;--phx-b:#c2410c;--phx-c:#047857;--phx-d:#7c3aed;--phx-water:#dbeafe;--phx-body:#e2e8f0;--phx-paper:#ffffff;--p11-mm:#9fb3c8;--p11-paper:#fbfdff}:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage.phx-stage .phx-svg.phx-svg .p11j-thread{stroke:#92400e}:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage.phx-stage .phx-svg.phx-svg .p11j-ball{fill:#475569}:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-stage.phx-stage .phx-svg.phx-svg .p11-blot{fill:#ffffff;stroke:#e2e8f0}}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage.phx-stage,:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-legend .phx-svg.phx-svg{--arch-surface:#fff;--arch-ink:#1f2937;--arch-label:#203c58;--arch-muted:#5b6b82;--arch-field-line:#aebed1;--arch-soft-line:#d7e1ed;--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;color:#1f2937;color-scheme:light}:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage.phx-stage .phx-svg.phx-svg,:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-legend .phx-svg.phx-svg{--phx-a:#1d4ed8;--phx-b:#c2410c;--phx-c:#047857;--phx-d:#7c3aed;--phx-water:#dbeafe;--phx-body:#e2e8f0;--phx-paper:#ffffff;--p11-mm:#9fb3c8;--p11-paper:#fbfdff}:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage.phx-stage .phx-svg.phx-svg .p11j-thread{stroke:#92400e}:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage.phx-stage .phx-svg.phx-svg .p11j-ball{fill:#475569}:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-stage.phx-stage .phx-svg.phx-svg .p11-blot{fill:#ffffff;stroke:#e2e8f0}
:root[data-design="v2"][data-theme="dark"] .arch-lab .arch-legend .phx-svg.phx-svg{background:#fff;border-radius:4px}
@media (prefers-color-scheme: dark){:root[data-design="v2"]:not([data-theme="light"]) .arch-lab .arch-legend .phx-svg.phx-svg{background:#fff;border-radius:4px}}
/* GPT-1 R14 (#263): an inline formula with a fraction (a row .base of KaTeX) gets a little air above and below, so that the
   fractions of neighbouring lines of a paragraph never touch (Safari iPhone: «3» under «D»); the font size stays. */
[data-problem-id^="moscow-physics-2026-2027-"] :is(p,li) .katex:not(.katex-display>.katex) .base:has(.mfrac){padding-block:4px}
/* «Пуск / Пауза» of a parameter (mathLab.play, KFU-S07): the button keeps its width when the text changes */
.arch-lab .arch-play{min-width:112px}
/* «Страница не пляшет» (owner acceptance 11.11.2026): the status line of a model has room for its usual text in advance,
   digits of one width; lab.mjs keeps a block from getting lower afterwards */
.arch-lab .arch-result.phx-result{box-sizing:border-box;min-height:calc(3.1em + 30px);font-variant-numeric:tabular-nums}
.arch-lab .arch-readouts dd{font-variant-numeric:tabular-nums}
@media (max-width:700px){.arch-lab .arch-result.phx-result{min-height:calc(6.2em + 30px)}}
/* room for the longest text met while the model runs (measured at 390 and 1440, kfu-play.mjs) */
.arch-lab .k91-idea{min-height:58px}
.arch-lab .k92-checks{box-sizing:border-box;min-height:84px}
.arch-lab .k114-status{box-sizing:border-box;min-height:60px}
@media (max-width:700px){
 [data-arch-lab="kfu26-m8-5-fractions"] .arch-result.phx-result,[data-arch-lab="kfu26-m8-1-digits"] .arch-result.phx-result,[data-arch-lab="kfu26-m9-2-roots"] .arch-result.phx-result{min-height:154px}
 .arch-lab .k91-idea{min-height:113px}
 .arch-lab .k92-checks{min-height:167px}
 [data-arch-lab="kfu26-p8-2-boards"] .arch-readouts{box-sizing:border-box;min-height:184px}
 [data-arch-lab="kfu26-p8-4-cable"] .arch-readouts{box-sizing:border-box;min-height:131px}
 .arch-lab .kp83-legs{box-sizing:border-box;min-height:283px}
 .arch-lab .k103-status{box-sizing:border-box;min-height:147px}
 .arch-lab .k114-status{min-height:125px}
}

/* Popov Academy — КФУ 2025/26, 10 класс, №1 «Корни из факториалов»: the balance and the factors under the ceiling. The stage keeps light paper in both themes (lab.css), so these colours have no dark variant. */
.arch-lab{--k101-a:#1d4ed8;--k101-a-soft:#dbe7ff;--k101-b:#c2410c;--k101-b-soft:#ffe4d1;--k101-ok:#15803d;--k101-ok-soft:#d7f5e1;--k101-bad:#dc2626;--k101-bad-soft:#fde0e0;--k101-blk:#7c3aed;--k101-blk-soft:#ede4ff}
.arch-lab .phx-stage.k101-stage,.arch-lab .phx-stage.k101-stage .phx-svg{max-height:none}
.arch-lab svg .k101-wood{fill:var(--p25-wood);stroke:var(--arch-fig-line);stroke-width:1.2;stroke-linejoin:round}
.arch-lab svg .k101-metal{fill:var(--p25-metal);stroke:var(--arch-fig-line);stroke-width:1.2}
.arch-lab svg .k101-needle{fill:#ef4444;stroke:none}
.arch-lab svg .k101-beam{stroke:var(--p25-metal);stroke-width:7;stroke-linecap:round}
.arch-lab svg .k101-string{stroke:var(--arch-muted);stroke-width:1.4}
.arch-lab svg .k101-pan{fill:var(--p25-metal);stroke:var(--arch-fig-line);stroke-width:1.2}
.arch-lab svg .k101-wt{stroke-width:1.6}
.arch-lab svg .k101-wt-a{fill:var(--k101-a-soft);stroke:var(--k101-a)}
.arch-lab svg .k101-wt-b{fill:var(--k101-b-soft);stroke:var(--k101-b)}
.arch-lab .phx-svg .k101-rt{font-size:inherit;fill:var(--arch-ink)}

.arch-lab .phx-svg .k101-root text{font-size:inherit;font-weight:600}
.arch-lab .phx-svg .k101-idx{font-size:11.5px !important;fill:var(--arch-ink)}
.arch-lab .phx-svg .k101-rad{fill:var(--arch-ink)}
.arch-lab svg .k101-bar{stroke:var(--arch-ink);stroke-width:1.4}
.arch-lab .phx-svg .k101-val{font-size:15px;font-weight:700;fill:var(--arch-ink);font-variant-numeric:tabular-nums}
.arch-lab .phx-svg .k101-verdict{font-size:14.5px;font-weight:700;fill:var(--arch-muted)}
.arch-lab .phx-svg .k101-v-a{fill:var(--k101-a)}
.arch-lab .phx-svg .k101-v-b{fill:var(--k101-b)}
.arch-lab .phx-svg .k101-head{font-size:14px;font-weight:700;fill:var(--arch-label)}
.arch-lab svg .k101-col-ok{fill:var(--k101-ok-soft);stroke:var(--k101-ok);stroke-width:1.5}
.arch-lab svg .k101-col-bad{fill:var(--k101-bad-soft);stroke:var(--k101-bad);stroke-width:1.5}
.arch-lab svg .k101-col-block{fill:var(--k101-blk-soft);stroke:var(--k101-blk);stroke-width:1.8}
.arch-lab svg .k101-col-over{stroke:var(--k101-bad);stroke-width:2.4}
.arch-lab svg .k101-zig{fill:none;stroke:var(--arch-surface);stroke-width:3}
.arch-lab .phx-svg .k101-colv{font-weight:700;fill:var(--arch-ink);font-variant-numeric:tabular-nums}
.arch-lab .phx-svg .k101-small{font-size:12.5px;fill:var(--arch-muted)}
.arch-lab .phx-svg .k101-dots{font-size:22px;font-weight:700;fill:var(--arch-muted)}
.arch-lab svg .k101-floor{stroke:var(--arch-fig-line);stroke-width:2}
.arch-lab svg .k101-ceil{stroke:var(--k101-bad);stroke-width:2.2;stroke-dasharray:7 4}
.arch-lab svg .k101-ceil-bg{fill:var(--arch-surface);stroke:none;opacity:.9}
.arch-lab .phx-svg .k101-ceil-t{font-size:13.5px;font-weight:700;fill:var(--k101-bad)}
.arch-lab .phx-svg .k101-concl{font-size:14px;font-weight:700}
.arch-lab .phx-svg .k101-ok{fill:var(--k101-ok)}
.arch-lab .phx-svg .k101-warn{fill:var(--k101-bad)}
.arch-lab svg .k101-beam-i{fill:none;stroke:var(--arch-fig-line);stroke-width:2.4;stroke-linecap:round}
.arch-lab .k101-reduce{font-size:15px;color:var(--arch-ink)}
.arch-lab .k101-pow sup{font-size:70%}
.arch-lab .phx-svg.k101-key{display:inline-block;width:28px;height:20px;flex:0 0 28px;max-height:none}

/* Popov Academy — КФУ 2025/26, 10 класс, №2 «sin(cos x) и cos(sin x)»: graphs, the unit circle and the arc. The stages keep light paper in both themes (lab.css), so these colours have no dark variant. */
.arch-lab .phx-stage.k102-stage,.arch-lab .phx-stage.k102-stage .phx-svg{max-height:none}
.arch-lab .phx-svg.k102-key{display:inline-block;width:28px;height:20px;flex:0 0 28px;max-height:none}
.arch-lab svg .k102-paper{fill:#ffffff;stroke:none}
.arch-lab svg .k102-grid{stroke:#dbe3ee;stroke-width:1}
.arch-lab svg .k102-axis{stroke:#1f2937;stroke-width:1.5}
.arch-lab .phx-svg .k102-tick{font-size:12.5px;fill:#5b6b82}
.arch-lab svg .k102-fbar{stroke:#5b6b82;stroke-width:1}
.arch-lab .phx-svg .k102-axis-t{font-size:13px;font-weight:600;fill:#203c58}
.arch-lab svg .k102-c-right{fill:none;stroke:#15803d;stroke-width:3;stroke-linejoin:round}
.arch-lab svg .k102-c-left{fill:none;stroke:#dc2626;stroke-width:3;stroke-linejoin:round}
.arch-lab svg .k102-c-mid{fill:none;stroke:#64748b;stroke-width:2;stroke-dasharray:6 4}
.arch-lab svg .k102-gapfill{fill:#fde68a;fill-opacity:.45;stroke:none}
.arch-lab svg .k102-marker{stroke:#1d4ed8;stroke-width:1.4;stroke-dasharray:4 3}
.arch-lab svg .k102-gapline{stroke:#b45309;stroke-width:4;stroke-linecap:round;opacity:.75}
.arch-lab svg .k102-leader{stroke:#94a3b8;stroke-width:1}
.arch-lab svg .k102-d-right{fill:#15803d;stroke:#fff;stroke-width:2}
.arch-lab svg .k102-d-left{fill:#dc2626;stroke:#fff;stroke-width:2}
.arch-lab svg .k102-d-mid{fill:#64748b;stroke:#fff;stroke-width:2}
.arch-lab svg .k102-lblbg{fill:#ffffff;fill-opacity:.92;stroke:none}
.arch-lab .phx-svg .k102-t-right{font-size:13px;font-weight:700;fill:#15803d}
.arch-lab .phx-svg .k102-t-left{font-size:13px;font-weight:700;fill:#dc2626}
.arch-lab .phx-svg .k102-t-mid{font-size:13px;font-weight:700;fill:#475569}
.arch-lab svg .k102-gapbox{fill:#fff7e6;stroke:#e9a23b;stroke-width:1.2}
.arch-lab .phx-svg .k102-gap-t{font-size:13px;font-weight:700;fill:#92400e}
.arch-lab .phx-svg .k102-title{font-size:14px;font-weight:700;fill:#203c58}
.arch-lab svg .k102-circle{fill:#f0f7ff;stroke:#1f2937;stroke-width:1.8}
.arch-lab svg .k102-circle-q{fill:none;stroke:#1f2937;stroke-width:1.8}
.arch-lab svg .k102-angle{fill:none;stroke:#7c3aed;stroke-width:2.2}
.arch-lab svg .k102-radius{stroke:#1f2937;stroke-width:1.6}
.arch-lab svg .k102-cos{stroke:#1d4ed8;stroke-width:4;stroke-linecap:round}
.arch-lab svg .k102-sin{stroke:#ea580c;stroke-width:4;stroke-linecap:round}
.arch-lab svg .k102-pt{fill:#7c3aed;stroke:#fff;stroke-width:2}
.arch-lab .phx-svg .k102-val{font-size:14px;font-weight:700;fill:#1f2937}
.arch-lab .phx-svg .k102-t-cos{fill:#1d4ed8}
.arch-lab .phx-svg .k102-t-sin{fill:#c2410c}
.arch-lab .phx-svg .k102-t-arc{fill:#c2410c}
.arch-lab .phx-svg .k102-small{font-size:13px;fill:#334155}
.arch-lab .phx-svg .k102-strong{font-weight:700;fill:#15803d}
.arch-lab svg .k102-arc-t{fill:none;stroke:#ea580c;stroke-width:5;stroke-linecap:round}
.arch-lab svg .k102-chord{stroke:#1d4ed8;stroke-width:4;stroke-linecap:round}

/* Popov Academy — КФУ 2025/26, 10 класс, №3 «Лестница значений». The stage keeps light paper in both themes (lab.css), so these colours have no dark variant; the table outside the stage follows the theme. */
.arch-lab .phx-stage.k103-stage,.arch-lab .phx-stage.k103-stage .phx-svg{max-height:none}
.arch-lab .phx-svg.k103-key{display:inline-block;width:28px;height:20px;flex:0 0 28px;max-height:none}
.arch-lab svg .k103-paper{fill:#fbfcff;stroke:none}
.arch-lab svg .k103-grid{stroke:#dfe6f0;stroke-width:1}
.arch-lab svg .k103-zero{stroke:#94a3b8;stroke-width:1.4}
.arch-lab .phx-svg .k103-axis-n{font-size:13px;font-weight:700;fill:#334155}
.arch-lab .phx-svg .k103-axis-y{font-size:12px;fill:#5b6b82}
.arch-lab .phx-svg .k103-axis-t{font-size:13px;font-weight:600;fill:#203c58}
.arch-lab .phx-svg .k103-title{font-size:15px;font-weight:700;fill:#1f2937}
.arch-lab svg .k103-step{fill:none;stroke:#b45309;stroke-width:3;stroke-linejoin:round}
.arch-lab svg .k103-step-eq{stroke:#15803d}
.arch-lab svg .k103-lblbg{fill:#ffffff;fill-opacity:.9;stroke:none}
.arch-lab .phx-svg .k103-steplbl{font-size:12.5px;font-weight:700;fill:#92400e}
.arch-lab svg .k103-ring{fill:none;stroke:#94a3b8;stroke-width:2;stroke-dasharray:3 2}
.arch-lab svg .k103-ring-ok{stroke:#15803d;stroke-dasharray:none}
.arch-lab svg .k103-ball{fill:#1d4ed8;stroke:#ffffff;stroke-width:2}
.arch-lab svg .k103-gap{stroke:#dc2626;stroke-width:2.6;stroke-dasharray:4 3}
.arch-lab svg .k103-tick{fill:none;stroke:#15803d;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.arch-lab .phx-svg .k103-cross{font-size:14px;font-weight:700;fill:#dc2626}
.arch-lab .k103-table{font-size:13px;width:100%;table-layout:fixed}
.arch-lab .k103-table th,.arch-lab .k103-table td{padding:4px 1px;white-space:nowrap}
.arch-lab .k103-table tr>:first-child{width:3.2em}
.arch-lab .k103-table td.k103-ok{background:var(--arch-ok-bg);color:var(--arch-good);font-weight:700}
.arch-lab .k103-table td.k103-bad{background:var(--arch-bad-bg);color:var(--arch-bad);font-weight:700}

/* Popov Academy — КФУ 2025/26, 10 класс, №4 «Палочки Любочки». The stage keeps light paper in both themes (lab.css), so these colours have no dark variant. */
.arch-lab .phx-stage.k104-stage,.arch-lab .phx-stage.k104-stage .phx-svg{max-height:none}
.arch-lab .phx-svg.k104-key{display:inline-block;width:28px;height:20px;flex:0 0 28px;max-height:none}
.arch-lab svg .k104-paper{fill:#fbfcff;stroke:none}
.arch-lab .phx-svg .k104-name{font-size:13px;font-weight:700;fill:#1f2937}
.arch-lab svg .k104-stick{stroke:#1f2937;stroke-width:1.2}
.arch-lab svg .k104-stick.k104-s0{fill:#3b82f6}.arch-lab svg .k104-stick.k104-s1{fill:#f97316}.arch-lab svg .k104-stick.k104-s2{fill:#16a34a}.arch-lab svg .k104-stick.k104-s3{fill:#9333ea}
.arch-lab .phx-svg .k104-stick-t{font-size:14px;font-weight:700;fill:#1f2937}
.arch-lab svg .k104-circle{fill:#f0f7ff;stroke:#1f2937;stroke-width:1.8}
.arch-lab svg .k104-fill{fill:#fde68a;fill-opacity:.35;stroke:none}
.arch-lab svg .k104-side{stroke-width:6;stroke-linecap:round}
.arch-lab svg .k104-side.k104-s0{stroke:#3b82f6}.arch-lab svg .k104-side.k104-s1{stroke:#f97316}.arch-lab svg .k104-side.k104-s2{stroke:#16a34a}.arch-lab svg .k104-side.k104-s3{stroke:#9333ea}
.arch-lab svg .k104-lblbg{fill:#ffffff;fill-opacity:.92;stroke:#cbd5e1;stroke-width:1}
.arch-lab .phx-svg .k104-side-t{font-size:15px;font-weight:800;fill:#1f2937}
.arch-lab svg .k104-vx{fill:#1f2937;stroke:#fff;stroke-width:1.5}
.arch-lab .phx-svg .k104-vname{font-size:14px;font-weight:700;fill:#203c58}
.arch-lab svg .k104-o{fill:#dc2626;stroke:#fff;stroke-width:1.5}
.arch-lab svg .k104-radius{stroke:#dc2626;stroke-width:2;stroke-dasharray:6 4}
.arch-lab .phx-svg .k104-r-t{font-size:14px;font-weight:800;fill:#b91c1c}
.arch-lab svg .k104-diag{stroke:#475569;stroke-width:1.6;stroke-dasharray:5 4}
.arch-lab svg .k104-axis{stroke:#0e7490;stroke-width:1.8;stroke-dasharray:2 4;stroke-linecap:round}
.arch-lab svg .k104-perp{stroke:#0e7490;stroke-width:1.6}
.arch-lab svg .k104-rt{fill:none;stroke:#0e7490;stroke-width:1.3}
.arch-lab .phx-svg .k104-warn{font-size:16px;font-weight:700;fill:#b91c1c}
.arch-lab .p25-tile.k104-tile-0{border-color:#3b82f6;box-shadow:inset 0 -5px 0 #3b82f6}
.arch-lab .p25-tile.k104-tile-1{border-color:#f97316;box-shadow:inset 0 -5px 0 #f97316}
.arch-lab .p25-tile.k104-tile-2{border-color:#16a34a;box-shadow:inset 0 -5px 0 #16a34a}
.arch-lab .p25-tile.k104-tile-3{border-color:#9333ea;box-shadow:inset 0 -5px 0 #9333ea}
.arch-lab .k104-rad{text-decoration:overline}
.arch-lab .phx-svg .k104-ink .p25-o,.arch-lab .phx-svg .k104-ink .p25-o-thin{stroke:#1f2937}

/* Popov Academy — КФУ 2025/26, 10 класс, №5 «Остров рыцарей и лжецов». The stages keep light paper in both themes (lab.css), so these colours have no dark variant. */
.arch-lab .phx-stage.k105-stage,.arch-lab .phx-stage.k105-stage .phx-svg{max-height:none}
.arch-lab .phx-svg.k105-key{display:inline-block;width:28px;height:24px;flex:0 0 28px;max-height:none}
.arch-lab svg .k105-sea{fill:#cfe9fb;stroke:none}
.arch-lab svg .k105-wave{fill:none;stroke:#8cc6ee;stroke-width:1.6;stroke-linecap:round}
.arch-lab svg .k105-sand{fill:#f3dfa8;stroke:#d6b66a;stroke-width:1.5}
.arch-lab svg .k105-grass{fill:#cdeab0;stroke:none}
.arch-lab svg .k105-trunk{fill:none;stroke:#8b5a2b;stroke-width:6;stroke-linecap:round}
.arch-lab svg .k105-leaf{fill:none;stroke:#2f9e44;stroke-width:5;stroke-linecap:round}
.arch-lab svg .k105-knight{--p25-shirt-a:#2563eb;--p25-pants:#1e3a8a}
.arch-lab svg .k105-liar{--p25-shirt-a:#dc2626;--p25-pants:#7f1d1d}
.arch-lab svg .k105-helmet{fill:#94a3b8;stroke:#334155;stroke-width:1}
.arch-lab svg .k105-cap{fill:#991b1b;stroke:#450a0a;stroke-width:1}
.arch-lab svg .k105-knight .p25-o,.arch-lab svg .k105-liar .p25-o,.arch-lab svg .k105-knight .p25-o-thin,.arch-lab svg .k105-liar .p25-o-thin{stroke:#1f2937}
.arch-lab svg .k105-bub-t{fill:#dcfce7;stroke:#15803d;stroke-width:1.3}
.arch-lab svg .k105-bub-f{fill:#fee2e2;stroke:#b91c1c;stroke-width:1.3}
.arch-lab .phx-svg .k105-bub-x{font-size:11.5px;font-weight:800;fill:#1f2937}
.arch-lab svg .k105-cnt{fill:#ffffff;fill-opacity:.94;stroke:#94a3b8;stroke-width:1}
.arch-lab .phx-svg .k105-cnt-k{font-size:13px;font-weight:700;fill:#1d4ed8}
.arch-lab .phx-svg .k105-cnt-l{font-size:13px;font-weight:700;fill:#b91c1c}
.arch-lab .phx-svg .k105-cnt-t{font-size:13px;font-weight:700;fill:#15803d}
.arch-lab .phx-svg .k105-cnt-f{font-size:13px;font-weight:700;fill:#b91c1c}
.arch-lab svg .k105-dot-k{fill:#2563eb}
.arch-lab svg .k105-dot-l{fill:#dc2626}
.arch-lab svg .k105-paper{fill:#fbfcff;stroke:none}
.arch-lab svg .k105-edge{stroke:#cbd5e1;stroke-width:2}
.arch-lab svg .k105-edge-on{stroke:#475569;stroke-width:2.6}
.arch-lab svg .k105-fbg{fill:#ffffff;stroke:none}
.arch-lab svg .k105-fbar{stroke:#1f2937;stroke-width:1.3}
.arch-lab .phx-svg .k105-ft{font-size:13px;font-weight:700;fill:#1f2937}
.arch-lab svg .k105-node{stroke-width:1.8}
.arch-lab svg .k105-n-all{fill:#f1f5f9;stroke:#475569}
.arch-lab svg .k105-n-k{fill:#dbeafe;stroke:#2563eb}
.arch-lab svg .k105-n-l{fill:#fee2e2;stroke:#dc2626}
.arch-lab svg .k105-n-t{fill:#dcfce7;stroke:#15803d}
.arch-lab svg .k105-n-f{fill:#ffe4e6;stroke:#b91c1c}
.arch-lab svg .k105-node-off{fill:#f8fafc;stroke:#cbd5e1;stroke-dasharray:4 3}
.arch-lab svg .k105-node-gone{opacity:.45}
.arch-lab .phx-svg .k105-nt{font-size:12.5px;fill:#334155}
.arch-lab .phx-svg .k105-nn{font-size:15px;font-weight:800;fill:#1f2937}
.arch-lab .phx-svg .k105-sum{font-size:13.5px;font-weight:700;fill:#15803d}
.arch-lab .k105-frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1.1;margin:0 2px}
.arch-lab .k105-frac>span:first-child{border-bottom:1.5px solid currentColor;padding:0 3px}
.arch-lab .phx-svg .k105-sum-f{fill:#b91c1c}

/* Popov Academy — КФУ 2025/26, 11 класс, №1 «Снежинки и звёздочки»: the stage keeps a light paper in both themes. */
.arch-lab .phx-stage.k111-stage{max-height:none}
.arch-lab .phx-stage.k111-stage .phx-svg{max-height:none}
.arch-lab .phx-svg .k111-bg{fill:#f5f9ff;stroke:none}
.arch-lab svg .k111-paper{fill:#ffffff;stroke:#94a3b8;stroke-width:1.1;stroke-linejoin:round}
.arch-lab svg .k111-fold{fill:#e2e8f0;stroke:#94a3b8;stroke-width:1}
.arch-lab svg .k111-sh-shadow{fill:#0f172a;fill-opacity:.1;stroke:none}
.arch-lab svg .k111-flake{stroke:#2563eb;stroke-width:1.5;stroke-linecap:round}
.arch-lab svg .k111-star{fill:#f59e0b;stroke:#b45309;stroke-width:.8;stroke-linejoin:round}
.arch-lab .phx-svg .k111-name{font-size:15px;font-weight:700;fill:#1f2937;stroke:none}
.arch-lab .phx-svg .k111-tally{font-size:14px;font-weight:700;fill:#1f2937;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .phx-svg .k111-cnt{fill:#ffffff;stroke:#cbd5e1;stroke-width:1.4}
.arch-lab .phx-svg .k111-cnt-ok{fill:#ecfdf5;stroke:#047857}
.arch-lab .phx-svg .k111-cnt-l{font-size:13px;fill:#475569;stroke:none}
.arch-lab .phx-svg .k111-cnt-v{font-size:19px;font-weight:800;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .phx-svg .k111-good{fill:#047857}
.arch-lab .phx-svg .k111-bad{fill:#b91c1c}
.arch-lab .phx-svg .k111-head{font-size:14px;font-weight:700;fill:#203c58;stroke:none}
.arch-lab .phx-svg .k111-row-l{font-size:13px;font-weight:700;fill:#1f2937;stroke:none}
.arch-lab svg .k111-bar-ok{fill:#bbf7d0;stroke:#15803d;stroke-width:1.2}
.arch-lab .phx-svg .k111-edge{stroke:#15803d;stroke-width:2}
.arch-lab .phx-svg .k111-edge-t{font-size:13px;font-weight:700;fill:#14532d;stroke:none}
.arch-lab .phx-svg .k111-axis{stroke:#1f2937;stroke-width:1.6}
.arch-lab .phx-svg .k111-tick{font-size:13px;fill:#475569;stroke:none}
.arch-lab svg .k111-int-bad{fill:#ffffff;stroke:#b91c1c;stroke-width:2}
.arch-lab svg .k111-int-ok{fill:#047857;stroke:#ffffff;stroke-width:1.5}
.arch-lab svg .k111-now{stroke:#c2410c;stroke-width:2.2;stroke-dasharray:5 3}
.arch-lab .phx-svg .k111-mk-ok{fill:#047857;stroke:#ffffff;stroke-width:1.5}
.arch-lab .phx-svg .k111-mk-bad{fill:#ffffff;stroke:#b91c1c;stroke-width:2.2}
.arch-lab .phx-svg .k111-concl{font-size:16px;font-weight:800;stroke:none}
.arch-lab .phx-svg .k111-ink .p25-o,.arch-lab .phx-svg .k111-ink .p25-o-thin{stroke:#1f2937}
.arch-lab .k111-sys{font-size:15px}

/* Popov Academy — КФУ 2025/26, 11 класс, №2 «Лишний корень»: light paper of the stage in both themes. */
.arch-lab .phx-stage.k112-stage{max-height:none}
.arch-lab .phx-stage.k112-stage .phx-svg{max-height:none}
.arch-lab .phx-svg .k112-bg{fill:#fbfdff;stroke:none}
.arch-lab svg .k112-zone{fill:#fee2e2;fill-opacity:.7;stroke:none}
.arch-lab .phx-svg .k112-grid{stroke:#dbe3ee;stroke-width:1}
.arch-lab .phx-svg .k112-frame{fill:none;stroke:#cbd5e1;stroke-width:1}
.arch-lab .phx-svg .k112-axis{stroke:#1f2937;stroke-width:1.5}
.arch-lab .phx-svg .k112-tick{font-size:13px;fill:#475569;stroke:none}
.arch-lab .phx-svg .k112-tick-s{font-size:13px;fill:#475569;stroke:none}
.arch-lab .phx-svg .k112-fbar{stroke:#475569;stroke-width:1}
.arch-lab .phx-svg .k112-axn{font-size:14px;font-style:italic;font-weight:700;fill:#1f2937;stroke:none}
.arch-lab svg .k112-up{fill:none;stroke:#1d4ed8;stroke-width:3;stroke-linecap:round}
.arch-lab svg .k112-down{fill:none;stroke:#7c3aed;stroke-width:2.6;stroke-dasharray:7 5;stroke-linecap:round}
.arch-lab svg .k112-ln{stroke:#c2410c;stroke-width:2.6}
.arch-lab .phx-svg .k112-xb{stroke:#b91c1c;stroke-width:1.6;stroke-dasharray:4 4}
.arch-lab .phx-svg .k112-xb-t{font-size:13px;font-weight:700;fill:#b91c1c;stroke:none}
.arch-lab .phx-svg .k112-lab-up{font-size:14px;font-weight:700;fill:#1d4ed8;stroke:none}
.arch-lab .phx-svg .k112-lab-down{font-size:14px;font-weight:700;fill:#6d28d9;stroke:none}
.arch-lab .phx-svg .k112-lab-ln{font-size:14px;font-weight:700;fill:#c2410c;stroke:none}
.arch-lab svg .k112-good{fill:#16a34a;stroke:#ffffff;stroke-width:2}
.arch-lab svg .k112-bad{fill:#ffffff;stroke:#b91c1c;stroke-width:2.6}
.arch-lab svg .k112-x{fill:none;stroke:#b91c1c;stroke-width:2.2;stroke-linecap:round}
.arch-lab .phx-svg .k112-rt-good{font-size:14px;font-weight:800;fill:#15803d;stroke:none}
.arch-lab .phx-svg .k112-rt-bad{font-size:14px;font-weight:800;fill:#b91c1c;stroke:none}
.arch-lab .phx-svg .k112-head{font-size:14px;font-weight:700;fill:#203c58;stroke:none}
.arch-lab svg .k112-z-none{fill:#e2e8f0;stroke:#94a3b8;stroke-width:1}
.arch-lab svg .k112-z-both{fill:#fecaca;stroke:#b91c1c;stroke-width:1}
.arch-lab svg .k112-z-one{fill:#bbf7d0;stroke:#15803d;stroke-width:1}
.arch-lab svg .k112-z-pt{fill:#16a34a;stroke:#ffffff;stroke-width:2}
.arch-lab .phx-svg .k112-zl{font-size:13px;font-weight:700;fill:#475569;stroke:none}
.arch-lab .phx-svg .k112-zl-good{fill:#15803d}
.arch-lab .phx-svg .k112-zl-bad{fill:#b91c1c}
.arch-lab svg .k112-mark{fill:#c2410c;stroke:#ffffff;stroke-width:1.2}
.arch-lab .phx-svg .k112-lead{stroke:#64748b;stroke-width:1}
.arch-lab .k11-fr{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.86em;line-height:1.1;margin:0 2px}
.arch-lab .k11-fr>span:first-child{border-bottom:1.4px solid currentColor;padding:0 2px}
.arch-lab .phx-svg .k112-drop{stroke:#64748b;stroke-width:1.2;stroke-dasharray:3 3}
.arch-lab .phx-svg .k112-pill-good{fill:#ecfdf5;stroke:#15803d;stroke-width:1.2}
.arch-lab .phx-svg .k112-pill-bad{fill:#fff1f2;stroke:#b91c1c;stroke-width:1.2}
.arch-lab .phx-svg .k112-lab-up,.arch-lab .phx-svg .k112-lab-down,.arch-lab .phx-svg .k112-lab-ln{stroke:#ffffff;stroke-width:3;paint-order:stroke}

/* Popov Academy — КФУ 2025/26, 11 класс, №3 «Шар в полости»: light paper of the stage in both themes. */
.arch-lab .phx-stage.k113-stage{max-height:none}
.arch-lab .phx-stage.k113-stage .phx-svg{max-height:none}
.arch-lab .phx-svg .k113-bg{fill:#f8fafc;stroke:none}
.arch-lab .phx-svg .k113-ph{font-size:14px;font-weight:700;fill:#203c58;stroke:none}
.arch-lab svg .k113-table{fill:#e9dcc3;stroke:#b08d57;stroke-width:1.4}
.arch-lab svg .k113-tgrid{stroke:#c9b28a;stroke-width:.8}
.arch-lab svg .k113-shadow{fill:#3f2d14;fill-opacity:.18;stroke:none}
.arch-lab svg .k113-big{stroke:#334e6e;stroke-width:1.2}
.arch-lab svg .k113-small{stroke:#9a3412;stroke-width:1.2}
.arch-lab svg .k113-small-bad{stroke:#7f1d1d;stroke-width:1.6}
.arch-lab .phx-svg .k113-num{font-size:16px;font-weight:800;fill:#ffffff;stroke:#1e3a5f;stroke-width:2.5;paint-order:stroke}
.arch-lab svg .k113-touch{fill:#facc15;stroke:#1f2937;stroke-width:1.4}
.arch-lab .phx-svg .k113-rlab{font-size:13.5px;font-weight:800;fill:#9a3412;stroke:#ffffff;stroke-width:3;paint-order:stroke}
.arch-lab .phx-svg .k113-rlab-bad{fill:#b91c1c}
.arch-lab .phx-svg .k113-sep{stroke:#cbd5e1;stroke-width:1}
.arch-lab svg .k113-floor{fill:#e9dcc3;stroke:none}
.arch-lab .phx-svg .k113-floor-l{stroke:#8a6a3a;stroke-width:2}
.arch-lab svg .k113-sec-big{fill:#c7d8ec;stroke:#334e6e;stroke-width:2}
.arch-lab svg .k113-sec-small{fill:#fdba74;stroke:#9a3412;stroke-width:2}
.arch-lab svg .k113-sec-bad{fill:#fca5a5;stroke:#991b1b;stroke-width:2}
.arch-lab svg .k113-m{fill:#1f2937;stroke:#ffffff;stroke-width:1.5}
.arch-lab .phx-svg .k113-sl{font-size:15px;font-weight:700;font-style:italic;fill:#1f2937;stroke:none}
.arch-lab .phx-svg .k113-note{font-size:12.5px;fill:#475569;stroke:none}
.arch-lab svg .k113-tri{fill:#16a34a;fill-opacity:.08;stroke:#15803d;stroke-width:2;stroke-dasharray:6 4}
.arch-lab .phx-svg .k113-tri-r{fill:none;stroke:#15803d;stroke-width:1.4}
.arch-lab .phx-svg .k113-c{fill:#1f2937;stroke:none}
.arch-lab .phx-svg .k113-len{font-size:13.5px;font-weight:800;fill:#15803d;stroke:#ffffff;stroke-width:3;paint-order:stroke}
.arch-lab .phx-svg .k113-concl{font-size:15px;font-weight:800;fill:#1f2937;stroke:none}
.arch-lab .phx-svg .k113-good{fill:#15803d}
.arch-lab .phx-svg .k113-mid{fill:#b45309}
.arch-lab .phx-svg .k113-bad{fill:#b91c1c}
.arch-lab svg .k113-leg-big{fill:#93b4d8;stroke:#334e6e;stroke-width:1.2}
.arch-lab svg .k113-leg-small{fill:#fb923c;stroke:#9a3412;stroke-width:1.2}
.arch-lab svg .k113-leg-bad{fill:#f87171;stroke:#7f1d1d;stroke-width:1.2}
.arch-lab .k11-fr{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.86em;line-height:1.1;margin:0 2px}
.arch-lab .k11-fr>span:first-child{border-bottom:1.4px solid currentColor;padding:0 2px}
.arch-lab svg .k113-big{fill-opacity:.62}
.arch-lab .phx-svg .k113-len-v{fill:#c2410c}
.arch-lab svg .k113-tring{fill:none;stroke:#c9b28a;stroke-width:1}
/* the live 3D scene (KFU-S01, 11.11.2026): scene and section side by side, one under the other on a phone; fixed heights — the page does not move */
.arch-lab .k113-wrap{display:block}
.arch-lab .k113-wrap.k113-live{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;align-items:start}
.arch-lab .k113-left{min-width:0}
.arch-lab .k113-scene{position:relative;border:1px solid #cbd5e1;border-radius:14px;overflow:hidden;background:#f8fafc}
.arch-lab .k113-3d{width:100%;aspect-ratio:1/0.86;outline-offset:2px}
.arch-lab .k113-3d canvas{display:block;width:100%;height:100%;touch-action:none}
.arch-lab .k113-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.arch-lab .k113-labels span{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;font-weight:800;font-variant-numeric:tabular-nums}
.arch-lab .k113-tag{font-size:17px;color:#fff;text-shadow:0 0 3px #1e3a5f,0 0 3px #1e3a5f,0 0 2px #1e3a5f}
.arch-lab .k113-rtag{font-size:14px;color:#9a3412;background:rgba(255,255,255,.88);border-radius:6px;padding:1px 6px}
.arch-lab .k113-rtag.k113-rtag-bad{color:#b91c1c}
.arch-lab .k113-views{margin:8px 0 0}
.arch-lab .k113-hint{margin:6px 0 0;min-height:2.9em}
.arch-lab .k113-status{min-height:6.8em;font-variant-numeric:tabular-nums}
@media (max-width:760px){
 .arch-lab .k113-wrap.k113-live{grid-template-columns:minmax(0,1fr)}
 .arch-lab .k113-3d{aspect-ratio:1/0.92}
 .arch-lab .k113-status{min-height:11.4em}
}
@media (max-width:360px){.arch-lab .k113-status{min-height:14.4em}}
.arch-lab .phx-svg .k113-halo{stroke:#ffffff;stroke-width:3;paint-order:stroke}
/* Sergey 14.11.2026: the badge on the 3D scene */
.arch-lab .k113-badge{position:absolute;left:10px;top:10px;padding:4px 10px;border-radius:999px;background:#1e3a8a;color:#ffffff;font-size:14px;font-weight:700;line-height:1.3;pointer-events:none;box-shadow:0 1px 3px rgba(15,23,42,.25)}

/* Popov Academy — КФУ 2025/26, 11 класс, №4 «Рыцари и лжецы»: light paper of the stage in both themes. */
.arch-lab .phx-stage.k114-stage{max-height:none}
.arch-lab .phx-stage.k114-stage .phx-svg{max-height:none}
.arch-lab .phx-svg .k114-bg{fill:#f4f9f1;stroke:none}
.arch-lab .phx-svg .k114-head{font-size:14px;font-weight:700;fill:#203c58;stroke:none}
.arch-lab svg .k114-tunic-k{fill:#2563eb;stroke:#1e3a8a;stroke-width:1}
.arch-lab svg .k114-tunic-l{fill:#e11d48;stroke:#881337;stroke-width:1}
.arch-lab svg .k114-skin{fill:#f6d2b4;stroke:#8a5a3c;stroke-width:.8}
.arch-lab svg .k114-helm{fill:#cbd5e1;stroke:#475569;stroke-width:1}
.arch-lab svg .k114-visor{stroke:#475569;stroke-width:1}
.arch-lab svg .k114-plume{fill:none;stroke:#f59e0b;stroke-width:2.2;stroke-linecap:round}
.arch-lab svg .k114-cap{fill:#be123c;stroke:#881337;stroke-width:1}
.arch-lab svg .k114-pom{fill:#fde047;stroke:none}
.arch-lab svg .k114-out{opacity:.16}
.arch-lab svg .k114-ring{fill:#fde68a;stroke:#d97706;stroke-width:2}
.arch-lab .phx-svg .k114-grp-k{fill:none;stroke:#1d4ed8;stroke-width:1.2;stroke-dasharray:5 3}
.arch-lab .phx-svg .k114-grp-l{fill:none;stroke:#be123c;stroke-width:1.2;stroke-dasharray:5 3}
.arch-lab .phx-svg .k114-box{stroke-width:1.5}
.arch-lab .phx-svg .k114-box-k{fill:#eff6ff;stroke:#1d4ed8}
.arch-lab .phx-svg .k114-box-l2{fill:#fff1f2;stroke:#be123c}
.arch-lab .phx-svg .k114-box-x{fill:#fffbeb;stroke:#d97706}
.arch-lab .phx-svg .k114-box-l{font-size:13px;fill:#334155;stroke:none}
.arch-lab .phx-svg .k114-box-v{font-size:21px;font-weight:800;fill:#0f172a;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .phx-svg .k114-ft{font-size:16px;font-weight:700;fill:#1f2937;stroke:none}
.arch-lab .phx-svg .k114-fs{font-size:13px;fill:#475569;stroke:none}
.arch-lab .phx-svg .k114-fn{font-size:17px;font-weight:800;fill:#b45309;stroke:none;font-variant-numeric:tabular-nums}
.arch-lab .phx-svg .k114-fbar{stroke:#b45309;stroke-width:1.6}
.arch-lab .k11-fr{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.86em;line-height:1.1;margin:0 2px}
.arch-lab .k11-fr>span:first-child{border-bottom:1.4px solid currentColor;padding:0 2px}

/* Popov Academy — КФУ 2025/26, 11 класс, №5 «Тождество для многочлена». The stage keeps a light paper in both themes;
   the table follows the theme (arch variables). */
.arch-lab .phx-stage.k115-stage{max-height:none}
.arch-lab .phx-stage.k115-stage .phx-svg{max-height:none}
.arch-lab .phx-svg .k115-bg{fill:#fbfdff;stroke:none}
.arch-lab .phx-svg .k115-grid{stroke:#e2e8f0;stroke-width:1}
.arch-lab .phx-svg .k115-axis{stroke:#1f2937;stroke-width:1.5}
.arch-lab .phx-svg .k115-tick{font-size:13px;fill:#475569;stroke:none}
.arch-lab .phx-svg .k115-axn{font-size:14px;font-style:italic;font-weight:700;fill:#1f2937;stroke:none}
.arch-lab svg .k115-curve{fill:none;stroke:#1d4ed8;stroke-width:2.8}
.arch-lab svg .k115-mirror{fill:none;stroke:#c2410c;stroke-width:2.2;stroke-dasharray:7 5}
.arch-lab svg .k115-pt{fill:#16a34a;stroke:#ffffff;stroke-width:2}
.arch-lab .phx-svg .k115-pl{font-size:13.5px;font-weight:800;fill:#15803d;stroke:#ffffff;stroke-width:3;paint-order:stroke}
.arch-lab .phx-svg .k115-concl{font-size:14px;font-weight:700;stroke:none}
.arch-lab .phx-svg .k115-good{fill:#15803d}
.arch-lab .phx-svg .k115-badt{fill:#c2410c}
.arch-lab .k115-formula{font-size:19px;margin:4px 0;overflow-wrap:anywhere;color:var(--arch-ink)}
.arch-lab .k115-fl{font-style:italic}
.arch-lab .k115-poly sup{font-size:.7em}
.arch-lab .k115-zero{font-size:15px;color:var(--arch-ink)}
.arch-lab .k115-twrap{max-width:100%}
.arch-lab .k115-table{border-collapse:collapse;width:100%;font-size:15px;color:var(--arch-ink);font-variant-numeric:tabular-nums}
.arch-lab .k115-table th,.arch-lab .k115-table td{border-bottom:1px solid var(--arch-soft-line);padding:5px 6px;text-align:right}
.arch-lab .k115-table th:first-child,.arch-lab .k115-table td:first-child{text-align:left}
.arch-lab .k115-table th{font-size:13px;color:var(--arch-muted);font-weight:600}
.arch-lab .k115-row-bad td{background:var(--arch-bad-bg)}
.arch-lab .k115-ok{color:var(--arch-good);font-weight:800;text-align:center}
.arch-lab .k115-bad{color:var(--arch-bad);font-weight:800;text-align:center}
.arch-lab .k115-ok-chip{color:var(--arch-good);font-weight:800}
.arch-lab .k115-bad-chip{color:var(--arch-bad);font-weight:800}
.arch-lab .k11-fr{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.86em;line-height:1.1;margin:0 2px}
.arch-lab .k11-fr>span:first-child{border-bottom:1.4px solid currentColor;padding:0 2px}

/* КФУ 2025/26, 8 класс, №1 «Счётчик Артура»: светлая бумага в обеих темах (как у других моделей пакета), цвета с контрастом. */
.arch-lab .phx-stage.k81-stage{max-height:none}
.arch-lab .phx-stage.k81-stage .phx-svg{max-height:none}
.arch-lab svg .k81-paper{fill:#f6f8fc;stroke:#cbd5e1;stroke-width:1}
.arch-lab svg .k81-halo{fill:#e0ecff;stroke:none}
.arch-lab svg .k81-bubble{fill:#ffffff;stroke:#94a3b8;stroke-width:1.5}
.arch-lab svg .k81-bubble-ok{fill:#dcfce7;stroke:#047857;stroke-width:2}
.arch-lab .phx-svg text.k81-t{stroke:none;fill:#1f2937;font-weight:600}
.arch-lab .phx-svg text.k81-name{font-size:14px;font-weight:700}
.arch-lab .phx-svg text.k81-say{font-size:18px;font-weight:800}
.arch-lab .phx-svg text.k81-say2{font-size:14px;font-weight:600;fill:#334155}
.arch-lab .phx-svg text.k81-good{fill:#047857}
.arch-lab .phx-svg text.k81-bad{fill:#b91c1c}
.arch-lab svg .k81-box{fill:#ffffff;stroke:#1d4ed8;stroke-width:2}
.arch-lab svg .k81-box-n{fill:#fff7e6;stroke:#c2410c;stroke-width:2.4}
.arch-lab .phx-svg text.k81-cap{font-size:13px;font-weight:600;fill:#475569}
.arch-lab .phx-svg text.k81-cap2{font-size:13.5px;font-weight:600;fill:#475569}
.arch-lab .phx-svg text.k81-num{font-size:24px;font-weight:800;fill:#1d4ed8;font-variant-numeric:tabular-nums}
.arch-lab .phx-svg text.k81-num-n{fill:#c2410c}
.arch-lab svg .k81-arrowline{stroke:#475569;stroke-width:2.4;fill:none}
.arch-lab svg .k81-arrowhead{fill:#475569;stroke:none}
.arch-lab .phx-svg text.k81-formula{font-size:16px;font-weight:700}
.arch-lab svg .k81-tile{fill:#ffffff;stroke:#c2410c;stroke-width:2}
.arch-lab svg .k81-tile-ok{fill:#dcfce7;stroke:#047857}
.arch-lab .phx-svg text.k81-digit{font-size:26px;font-weight:800;fill:#1f2937;font-variant-numeric:tabular-nums}
.arch-lab .phx-svg text.k81-sum{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}
.arch-lab .phx-svg text.k81-verdict{font-size:15px;font-weight:800}
.arch-lab .phx-svg text.k81-modline{font-size:14px;font-weight:700}
.arch-lab .phx-svg text.k81-modok{fill:#047857}
.arch-lab .phx-svg text.k81-modno{fill:#92400e}
.arch-lab svg .k81-cell{fill:#ffffff;stroke:#94a3b8;stroke-width:1.2}
.arch-lab svg .k81-cell-dim{fill:#e5e9f0;stroke:#cbd5e1}
.arch-lab svg .k81-cell-mod{fill:#fff1d6;stroke:#c2410c;stroke-width:2}
.arch-lab svg .k81-cell-no{fill:#fee2e2;stroke:#b91c1c}
.arch-lab svg .k81-cell-ok{fill:#bbf7d0;stroke:#047857;stroke-width:2.4}
.arch-lab svg .k81-cell-cur{stroke:#1d4ed8;stroke-width:3.2}
.arch-lab .phx-svg text.k81-cellnum{font-size:14px;font-weight:700;fill:#1f2937;font-variant-numeric:tabular-nums}
.arch-lab .phx-svg text.k81-cellnum-no{fill:#7f1d1d}
.arch-lab svg .k81-ink .p25-o,.arch-lab .phx-svg .k81-ink .p25-o-thin{stroke:#1f2937}

/* КФУ 2025/26, 8 класс, №2 «Шестеро на острове»: светлая бумага в обеих темах. */
.arch-lab .phx-stage.k82-stage{max-height:none}
.arch-lab .phx-stage.k82-stage .phx-svg{max-height:none}
.arch-lab svg .k82-paper{fill:#f6f8fc;stroke:#cbd5e1;stroke-width:1}
.arch-lab svg .k82-sea{fill:#e0f2fe;stroke:none}
.arch-lab svg .k82-col{cursor:pointer;outline:none}
.arch-lab svg .k82-col:focus-visible .k82-halo{stroke:#f59e0b;stroke-width:4}
.arch-lab svg text.k82-t{stroke:none;fill:#1f2937;font-weight:600}
.arch-lab svg .k82-bubble{fill:#ffffff;stroke:#94a3b8;stroke-width:1.5}
.arch-lab svg .k82-bubble-bad{fill:#fee2e2;stroke:#b91c1c;stroke-width:1.8}
.arch-lab svg text.k82-say{font-size:14.5px;font-weight:800}
.arch-lab svg .k82-halo{fill:#eef2f9;stroke:#cbd5e1;stroke-width:1.5}
.arch-lab svg .k82-halo-none{stroke-dasharray:5 4}
.arch-lab svg .k82-rk{fill:#dbeafe;stroke:#1d4ed8;stroke-width:2.4}
.arch-lab svg .k82-rl{fill:#fee2e2;stroke:#b91c1c;stroke-width:2.4}
.arch-lab svg .k82-rh{fill:#ede9fe;stroke:#6d28d9;stroke-width:2.4}
.arch-lab svg text.k82-num{font-size:13.5px;font-weight:700;fill:#475569}
.arch-lab svg text.k82-role{font-size:16px;font-weight:800}
.arch-lab svg text.k82-rk-t{fill:#1d4ed8}
.arch-lab svg text.k82-rl-t{fill:#b91c1c}
.arch-lab svg text.k82-rh-t{fill:#6d28d9}
.arch-lab svg text.k82-none{fill:#64748b;font-weight:600;font-size:13.5px}
.arch-lab svg text.k82-verdict{font-size:13.5px;font-weight:700}
.arch-lab svg text.k82-good{fill:#047857}
.arch-lab svg text.k82-bad{fill:#b91c1c}
.arch-lab svg text.k82-neutral{fill:#334155}
.arch-lab svg .k82-chip{fill:#ffffff;stroke:#94a3b8;stroke-width:1.2}
.arch-lab svg .k82-chip-yes{fill:#bbf7d0;stroke:#047857;stroke-width:1.6}
.arch-lab svg .k82-chip-no{fill:#fecaca;stroke:#b91c1c;stroke-width:1.6}
.arch-lab svg .k82-chip-cur{stroke:#1f2937;stroke-width:3}
.arch-lab svg text.k82-chiptxt{font-size:14px;font-weight:800}
.arch-lab svg text.k82-cnt-name{font-size:13.5px;font-weight:600;fill:#334155}
.arch-lab svg text.k82-cnt{font-size:17px;font-weight:800}
.arch-lab svg .k82-helm{fill:#cbd5e1;stroke:#475569;stroke-width:1.6;stroke-linejoin:round}
.arch-lab svg .k82-helm-bar{fill:#94a3b8;stroke:#475569;stroke-width:1}
.arch-lab svg .k82-plume{fill:none;stroke:#dc2626;stroke-width:3;stroke-linecap:round}
.arch-lab svg .k82-nose{fill:#f0b48f;stroke:#7c4a25;stroke-width:1.2;stroke-linejoin:round}
.arch-lab svg .k82-brow{fill:none;stroke:#7f1d1d;stroke-width:2.2;stroke-linecap:round}
.arch-lab svg .k82-cap{fill:#8b5cf6;stroke:#4c1d95;stroke-width:1.4;stroke-linejoin:round}
.arch-lab svg .k82-bell{fill:#facc15;stroke:#92400e;stroke-width:1}
.arch-lab svg .p25-o,.arch-lab svg .p25-o-thin{stroke:#1f2937}

/* КФУ 2025/26, 8 класс, №3 «Раскраска доски»: светлая бумага в обеих темах; цвета красок — тёмные, цифры белые. */
.arch-lab .phx-stage.k83-stage{max-height:none}
.arch-lab .phx-stage.k83-stage .phx-svg{max-height:none}
.arch-lab svg .k83-paper{fill:#f6f8fc;stroke:#cbd5e1;stroke-width:1}
.arch-lab svg .k83-cell{fill:#ffffff;stroke:#b6c2d3;stroke-width:1.2}
.arch-lab svg .k83-painted{stroke:#1f2937;stroke-width:1}
.arch-lab svg .k83-lg-a{fill:#1d4ed8}
.arch-lab svg .k83-bad{fill:none;stroke:#dc2626;stroke-width:3.4;stroke-dasharray:5 3}
.arch-lab svg .k83-frame{fill:none;stroke:#1f2937;stroke-width:2}
.arch-lab svg .k83-cursor{fill:none;stroke:#f59e0b;stroke-width:3}
.arch-lab svg text.k83-t{stroke:none;fill:#1f2937;font-weight:600}
.arch-lab svg text.k83-cn{font-size:15px;font-weight:800;fill:#ffffff}
.arch-lab svg text.k83-idx{font-size:13px;fill:#475569;font-weight:600}
.arch-lab svg text.k83-idx-bad{fill:#b91c1c;font-weight:800}
.arch-lab svg .k83-mark{stroke:none}
.arch-lab svg text.k83-cap{font-size:14px;font-weight:700;fill:#334155}
.arch-lab svg text.k83-cap2{font-size:13px;font-weight:600;fill:#475569}
.arch-lab svg text.k83-cnt{font-size:15px;font-weight:800}
.arch-lab svg text.k83-lines{font-size:14px;font-weight:600;fill:#334155}
.arch-lab svg text.k83-warn{fill:#b91c1c;font-weight:800}
.arch-lab svg text.k83-good{fill:#047857}
.arch-lab svg .k83-swatch{stroke:#1f2937;stroke-width:1}
.arch-lab svg .k83-seg{fill:#e5e9f0;stroke:#cbd5e1;stroke-width:1}
.arch-lab .k83-palette{gap:8px}
.arch-lab .k83-sw{display:inline-flex;align-items:center;gap:8px;min-width:56px;min-height:44px;font-weight:700}
.arch-lab .k83-sw-chip{display:inline-block;width:20px;height:20px;border-radius:6px;background:var(--sw,#999);border:1px solid #1f2937}
.arch-lab .k83-sw[aria-pressed=true]{box-shadow:inset 0 0 0 3px var(--sw,#244974)}
.arch-lab .k83-er[aria-pressed=true]{box-shadow:inset 0 0 0 3px #1f2937}

/* КФУ 2025/26, 8 класс, №4 «Трапеция с биссектрисой»: точный чертёж на светлой бумаге в обеих темах. */
.arch-lab .phx-stage.k84-stage{max-height:none}
.arch-lab .phx-stage.k84-stage .phx-svg{max-height:none}
.arch-lab svg .k84-paper{fill:#fbfcfe;stroke:#cbd5e1;stroke-width:1}
.arch-lab svg .k84-grid{stroke:#e3ebf6;stroke-width:1}
.arch-lab svg .k84-trap{fill:none;stroke:#1f2937;stroke-width:2.4;stroke-linejoin:round}
.arch-lab svg .k84-rh{fill:#bfdbfe;fill-opacity:.7;stroke:#1d4ed8;stroke-width:1.2}
.arch-lab svg .k84-pg{fill:#fed7aa;fill-opacity:.65;stroke:#c2410c;stroke-width:1.2}
.arch-lab svg .k84-bn{stroke:#047857;stroke-width:2;stroke-dasharray:6 4;fill:none}
.arch-lab svg .k84-bd{stroke:#1d4ed8;stroke-width:3.4;stroke-linecap:round}
.arch-lab svg .k84-mn{stroke:#c2410c;stroke-width:3.4;stroke-linecap:round}
.arch-lab svg .k84-diag{stroke:#64748b;stroke-width:1.6;stroke-dasharray:2 4;fill:none}
.arch-lab svg .k84-arc1{fill:none;stroke:#047857;stroke-width:2.6}
.arch-lab svg .k84-arc2{fill:none;stroke:#7c3aed;stroke-width:2.6}
.arch-lab svg .k84-tick{stroke:#1f2937;stroke-width:2.2}
.arch-lab svg .k84-dot{fill:#1f2937}
.arch-lab svg text.k84-t{stroke:none;fill:#1f2937;font-weight:600}
.arch-lab svg text.k84-pt{font-size:17px;font-weight:800;font-style:italic}
.arch-lab svg text.k84-len{font-size:14px;font-weight:800;paint-order:stroke;stroke:#fbfcfe;stroke-width:4px;stroke-linejoin:round}
.arch-lab svg text.k84-lbd{fill:#1d4ed8}
.arch-lab svg text.k84-lmn{fill:#c2410c}
.arch-lab svg .k84-panel{fill:#ffffff;stroke:#cbd5e1;stroke-width:1.2}
.arch-lab svg .k84-panel-ok{fill:#dcfce7;stroke:#047857;stroke-width:1.6}
.arch-lab svg text.k84-pl{font-size:14.5px;font-weight:700}
.arch-lab svg text.k84-pl2{font-size:13.5px;font-weight:600;fill:#334155}
.arch-lab svg text.k84-pr{font-size:16px;font-weight:800}
.arch-lab svg text.k84-verdict{font-size:14px;font-weight:800}
.arch-lab svg text.k84-ok{fill:#047857}
.arch-lab svg text.k84-bad{fill:#b91c1c}

/* КФУ 2025/26, 8 класс, №5 «Дроби Васи»: школьная доска, светлая карточная палитра в обеих темах. */
.arch-lab .phx-stage.k85-stage{max-height:none}
.arch-lab .phx-stage.k85-stage .phx-svg{max-height:none}
.arch-lab svg .k85-board{fill:#f6f8fc;stroke:#cbd5e1;stroke-width:1}
.arch-lab svg .k85-cardg{cursor:pointer;outline:none}
.arch-lab svg .k85-cardg:focus-visible .k85-card{stroke:#f59e0b;stroke-width:4}
.arch-lab svg .k85-card{fill:#fffdf7;stroke:#1d4ed8;stroke-width:2.2}
.arch-lab svg .k85-card-flip{fill:#ffedd5;stroke:#c2410c;stroke-width:2.6}
.arch-lab svg text.k85-t{stroke:none;fill:#1f2937;font-weight:700}
.arch-lab svg text.k85-fn{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}
.arch-lab svg .k85-fbar{stroke:#1f2937;stroke-width:2;fill:none}
.arch-lab svg text.k85-rot{font-size:14px;font-weight:800;fill:#c2410c}
.arch-lab svg text.k85-cap{font-size:14px;font-weight:700;fill:#334155}
.arch-lab svg .k85-chip{fill:#ffffff;stroke:#94a3b8;stroke-width:1.5}
.arch-lab svg .k85-chip-res{fill:#fff7e6;stroke:#c2410c;stroke-width:2}
.arch-lab svg .k85-chip-ok{fill:#dcfce7;stroke:#047857;stroke-width:2.4}
.arch-lab svg text.k85-chipcap{font-size:13.5px;font-weight:600;fill:#475569}
.arch-lab svg text.k85-chipval{font-size:21px;font-weight:800;fill:#1f2937;font-variant-numeric:tabular-nums}
.arch-lab svg text.k85-chipsub{font-size:13.5px;font-weight:700;fill:#475569}
.arch-lab svg text.k85-ok{fill:#047857}
.arch-lab svg text.k85-bad{fill:#b91c1c}
.arch-lab svg text.k85-op{font-size:22px;font-weight:800;fill:#475569}
.arch-lab svg text.k85-formula{font-size:16px;font-weight:800;fill:#1f2937}

/* Popov Academy — КФУ 2025/26, 9 класс, №1 «Спешащий будильник»: the clocks keep their own light colours in both themes
   (real objects on a wall), the ruler of the night follows the theme. */
.arch-lab{--k91-reset:#7c3aed;--k91-ring:#c2410c;--k91-done:#dbeafe;--k91-now:#1d4ed8;--k91-wall:#f4efe6}
.arch-lab .phx-stage.k91-stage{max-height:none}
.arch-lab .phx-svg .k91-wall{fill:var(--k91-wall);stroke:none}
.arch-lab .phx-svg .k91-shadow{fill:#0f172a;fill-opacity:.15;stroke:none}
.arch-lab svg .k91-wood{fill:#b07a43;stroke:#5b3a1e;stroke-width:1.5}
.arch-lab svg .k91-face{fill:#fffdf7;stroke:#5b4a3a;stroke-width:1.2}
.arch-lab svg .k91-alarm-body{fill:#dc2626;stroke:#7f1d1d;stroke-width:1.6}
.arch-lab .phx-svg .k91-gloss{fill:#ffffff;fill-opacity:.12;stroke:none}
.arch-lab .phx-svg .k91-bell{fill:#e5b83b;stroke:#7a5a12;stroke-width:1.4}
.arch-lab .phx-svg .k91-handle{fill:none;stroke:#7a5a12;stroke-width:3;stroke-linecap:round}
.arch-lab .phx-svg .k91-hammer{stroke:#475569;stroke-width:3;stroke-linecap:round}
.arch-lab .phx-svg .k91-leg{fill:none;stroke:#7f1d1d;stroke-width:5;stroke-linecap:round}
.arch-lab .phx-svg .k91-tick{stroke:#94a3b8;stroke-width:1}
.arch-lab .phx-svg .k91-tick-b{stroke:#1f2937;stroke-width:2.2}
.arch-lab .phx-svg text.k91-num{fill:#1f2937;stroke:none;font-size:12.5px;font-weight:700}
.arch-lab .phx-svg .k91-hh{stroke:#1f2937;stroke-width:5;stroke-linecap:round}
.arch-lab .phx-svg .k91-mh{stroke:#1f2937;stroke-width:3;stroke-linecap:round}
.arch-lab .phx-svg .k91-sh{stroke:#dc2626;stroke-width:1.2;stroke-linecap:round}
.arch-lab .phx-svg .k91-cap{fill:#1f2937;stroke:#fbbf24;stroke-width:1.5}
.arch-lab .phx-svg .k91-zing{fill:none;stroke:#c2410c;stroke-width:2.4;stroke-linecap:round}
.arch-lab .phx-svg text.k91-name{fill:#4c1d95;stroke:none;font-size:13px;font-weight:700}
.arch-lab .phx-svg text.k91-cap-t{fill:#334155;stroke:none;font-size:12.5px;font-weight:600}
.arch-lab .phx-svg .k91-lcd{fill:#e7f0dc;stroke:#4d5d3a;stroke-width:1.4}
.arch-lab .phx-svg .k91-lcd-ring{fill:#fde2c8;stroke:#c2410c}
.arch-lab .phx-svg text.k91-lcd-t{fill:#1f2a14;stroke:none;font-size:19px;font-weight:800;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums}
.arch-lab .phx-svg text.k91-badge{fill:#7c3aed;stroke:none;font-size:12.5px;font-weight:700}
.arch-lab .phx-svg .k91-ink .p25-o,.arch-lab .phx-svg .k91-ink .p25-o-thin{stroke:#1f2937}
.arch-lab .phx-svg .k91-axis{stroke:var(--arch-fig-line);stroke-width:2}
.arch-lab .phx-svg .k91-tick-r{stroke:var(--arch-fig-line);stroke-width:1.4}
.arch-lab .phx-svg .k91-done{fill:var(--k91-done);stroke:none}
.arch-lab .phx-svg text.k91-axis-t{font-size:13px;font-weight:700;fill:var(--arch-label)}
.arch-lab .phx-svg text.k91-axis-t2{font-size:12.5px;font-weight:600;fill:var(--arch-muted)}
.arch-lab .phx-svg text.k91-hour{font-size:12.5px;fill:var(--arch-ink);font-variant-numeric:tabular-nums}
.arch-lab .phx-svg text.k91-cnt{font-size:12px;fill:var(--arch-muted);font-weight:600;font-variant-numeric:tabular-nums}
.arch-lab svg .k91-ev-reset{stroke:var(--k91-reset);stroke-width:1.6;stroke-dasharray:4 3}
.arch-lab svg .k91-ev-ring{stroke:var(--k91-ring);stroke-width:1.6;stroke-dasharray:4 3}
.arch-lab svg .k91-flag-reset{fill:var(--k91-reset);stroke:none}
.arch-lab svg .k91-flag-ring{fill:var(--k91-ring);stroke:none}
.arch-lab .phx-svg text.k91-ev-t{font-size:13.5px;font-weight:700}
.arch-lab .phx-svg text.k91-ev-t-reset{fill:var(--k91-reset)}
.arch-lab .phx-svg text.k91-ev-t-ring{fill:var(--k91-ring)}
.arch-lab .phx-svg text.k91-fr{font-size:11.5px}
.arch-lab .phx-svg .k91-frbar{stroke:var(--k91-reset);stroke-width:1.2}
.arch-lab svg .k91-now{fill:var(--k91-now);stroke:var(--arch-surface);stroke-width:2.5}
.arch-lab .phx-svg .k91-now-line{stroke:var(--k91-now);stroke-width:1.2;stroke-dasharray:3 3}
.arch-lab .phx-svg .k91-cnt-box{fill:var(--arch-surface);stroke:var(--k91-now);stroke-width:1.4}
.arch-lab .phx-svg text.k91-cnt-now{font-size:13.5px;font-weight:700;fill:var(--k91-now)}
.arch-lab .phx-svg text.k91-demo{font-size:15px;font-weight:800;fill:var(--k91-ring)}
.arch-lab .k91-idea{font-size:15px}
.arch-lab .k91-hfrac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;font-size:.85em;line-height:1.1;margin:0 .15em}
.arch-lab .k91-hfrac>span:first-child{border-bottom:1.5px solid currentColor;padding:0 .2em}
.arch-lab .phx-stage.k91-stage .phx-svg{max-height:none}

/* Popov Academy — КФУ 2025/26, 9 класс, №2 «Лишний корень»: squared paper with the half-parabola and the уголок (the stage is light in both themes). */
.arch-lab .phx-stage.k92-stage{max-height:none}
.arch-lab .phx-svg .k92-paper{fill:#fffef8;stroke:#cbd5e1;stroke-width:1}
.arch-lab .phx-svg .k92-grid{stroke:#dbe6f3;stroke-width:1}
.arch-lab .phx-svg .k92-axis{stroke:#1f2937;stroke-width:1.6}
.arch-lab .phx-svg .k92-arr{fill:#1f2937;stroke:none}
.arch-lab .phx-svg text.k92-ax-t{font-size:15px;font-style:italic;font-weight:700;fill:#1f2937}
.arch-lab .phx-svg text.k92-tick-t{font-size:12px;fill:#5b6b82}
.arch-lab svg .k92-sqrt{fill:none;stroke:#1d4ed8;stroke-width:3;stroke-linecap:round}
.arch-lab svg .k92-right{stroke:#047857;stroke-width:3;stroke-linecap:round}
.arch-lab svg .k92-left{stroke:#dc2626;stroke-width:2.6;stroke-dasharray:7 5;stroke-linecap:round}
.arch-lab svg .k92-border{stroke:#7c3aed;stroke-width:1.3;stroke-dasharray:3 4}
.arch-lab .phx-svg .k92-start{fill:#1d4ed8;stroke:#ffffff;stroke-width:2}
.arch-lab .phx-svg text.k92-lab-r{font-size:14px;font-weight:700;fill:#047857}
.arch-lab .phx-svg text.k92-lab-l{font-size:14px;font-weight:700;fill:#dc2626}
.arch-lab .phx-svg text.k92-lab-s{font-size:14px;font-weight:700;fill:#1d4ed8}
.arch-lab .phx-svg text.k92-mark-a{font-size:14px;font-weight:700;font-style:italic;fill:#7c3aed}
.arch-lab .phx-svg text.k92-mark-b{font-size:14px;font-weight:700;font-style:italic;fill:#1d4ed8}
.arch-lab svg .k92-ok{fill:#dcfce7;stroke:#047857;stroke-width:2.2}
.arch-lab svg .k92-tick{fill:none;stroke:#047857;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.arch-lab svg .k92-bad{fill:none;stroke:#b91c1c;stroke-width:3;stroke-linecap:round}
.arch-lab .phx-svg .k92-bad-bg{fill:#fee2e2;stroke:#b91c1c;stroke-width:1.2}
.arch-lab .phx-svg text.k92-pt-ok{font-size:14px;font-weight:800;fill:#047857;stroke:#fffef8;stroke-width:4px;paint-order:stroke;stroke-linejoin:round}
.arch-lab .phx-svg text.k92-pt-bad{font-size:14px;font-weight:800;fill:#b91c1c;stroke:#fffef8;stroke-width:4px;paint-order:stroke;stroke-linejoin:round}
.arch-lab .phx-svg .k92-note{fill:#fdf8e8;stroke:#c9b98f;stroke-width:1.2}
.arch-lab .phx-svg text.k92-note-h{font-size:13px;font-weight:800;fill:#1e3a8a}
.arch-lab .phx-svg text.k92-note-t{font-size:13.5px;fill:#1f2937;font-weight:600}
.arch-lab .phx-svg text.k92-note-good{font-size:13.5px;fill:#047857;font-weight:800}
.arch-lab .phx-svg text.k92-name{font-size:13px;font-weight:700;fill:#1e3a8a}
.arch-lab .phx-svg .k92-ink .p25-o,.arch-lab .phx-svg .k92-ink .p25-o-thin{stroke:#1f2937}
.arch-lab .k92-checks{margin:4px 0 8px;padding-left:20px;font-size:15px}
/* an empty list keeps its place: the sliders below do not jump (owner acceptance 11.11.2026) */
.arch-lab .k92-checks:empty{display:block}
.arch-lab .k92-li-ok::marker{color:var(--arch-good)}
.arch-lab .k92-li-bad::marker{color:var(--arch-bad)}
.arch-lab .phx-stage.k92-stage .phx-svg{max-height:none}

/* Popov Academy — КФУ 2025/26, 9 класс, №3 «Сумма цифр при умножении на 2» (the stage is light in both themes). */
.arch-lab .phx-stage.k93-stage{max-height:none}
.arch-lab .phx-svg .k93-paper{fill:#fffef6;stroke:#cbd5e1;stroke-width:1.2}
.arch-lab .phx-svg .k93-grid{stroke:#e3ecf7;stroke-width:1}
.arch-lab svg .k93-cell{stroke-width:1.6}
.arch-lab svg .k93-small{fill:#dbeafe;stroke:#1d4ed8}
.arch-lab svg .k93-big{fill:#ffe1c7;stroke:#c2410c}
.arch-lab svg .k93-hot{stroke-width:3;stroke:#b45309}
.arch-lab svg .k93-res{fill:#ecfdf5;stroke:#047857}
.arch-lab svg text.k93-dg{fill:#111827;stroke:none;font-weight:800;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:16px}
.arch-lab .phx-svg .k93-tap{cursor:pointer}
.arch-lab .phx-svg text.k93-op{fill:#374151;stroke:none;font-weight:700}
.arch-lab .phx-svg .k93-bar{stroke:#1f2937;stroke-width:2.2}
.arch-lab svg text.k93-carry{fill:#dc2626;stroke:none;font-weight:800;font-size:13px}
.arch-lab .phx-svg .k93-carry-arc{fill:none;stroke:#dc2626;stroke-width:1.4;stroke-dasharray:3 2}
.arch-lab .phx-svg .k93-bub{stroke-width:1.6}
.arch-lab .phx-svg .k93-bub-a{fill:#e0ecff;stroke:#1d4ed8}
.arch-lab .phx-svg .k93-bub-b{fill:#ffedd5;stroke:#c2410c}
.arch-lab .phx-svg text.k93-bub-n{font-size:12.5px;font-weight:600;fill:#334155;stroke:none}
.arch-lab .phx-svg text.k93-bub-v{font-size:19px;font-weight:800;fill:#111827;stroke:none}
.arch-lab .phx-svg text.k93-name{font-size:13px;font-weight:700;fill:#1e3a8a}
.arch-lab .phx-svg text.k93-f{font-size:16px;font-weight:800;fill:#1f2937}
.arch-lab .phx-svg text.k93-f-m{font-size:14px;font-weight:600;fill:#5b6b82}
.arch-lab .phx-svg text.k93-f-good{font-size:15px;font-weight:800;fill:#047857}
.arch-lab .phx-svg .k93-ink .p25-o,.arch-lab .phx-svg .k93-ink .p25-o-thin{stroke:#1f2937}
.arch-lab .phx-stage.k93-stage .phx-svg{max-height:none}

/* Popov Academy — КФУ 2025/26, 9 класс, №4 «Красный треугольник на белом фоне» (the stage is light in both themes). */
.arch-lab .phx-stage.k94-stage{max-height:none}
.arch-lab .phx-svg .k94-table{fill:#b98552;stroke:none}
.arch-lab .phx-svg .k94-grain{stroke:#a06f40;stroke-width:1.2;opacity:.6}
.arch-lab svg .k94-sheet{fill:#fbfaf6;stroke:#d6d0c2;stroke-width:1.2}
.arch-lab .phx-svg .k94-sheet-shadow{fill:#3b2a1a;fill-opacity:.25;stroke:none}
.arch-lab svg .k94-hole{fill:#8a5a2e;stroke:#5b3a1e;stroke-width:1.6;stroke-dasharray:5 3}
.arch-lab svg .k94-white{fill:#ffffff;stroke:#64748b;stroke-width:1.8;stroke-linejoin:round}
.arch-lab svg .k94-red{fill:#dc2626;stroke:#7f1d1d;stroke-width:1.8;stroke-linejoin:round}
.arch-lab svg .k94-cut{stroke:#1d4ed8;stroke-width:2.4;stroke-dasharray:6 4}
.arch-lab svg .k94-axis{stroke:#6d28d9;stroke-width:1.8;stroke-dasharray:2 4;stroke-linecap:round}
.arch-lab .phx-svg .k94-dot{fill:#1d4ed8;stroke:#ffffff;stroke-width:1.5}
.arch-lab .phx-svg text.k94-pt{font-size:15px;font-weight:800;font-style:italic;fill:#1d4ed8}
.arch-lab .phx-svg text.k94-vx{font-size:16px;font-weight:800;font-style:italic;fill:#1f2937}
.arch-lab .phx-svg text.k94-ang{font-size:13.5px;font-weight:700;fill:#374151}
.arch-lab .phx-svg text.k94-ang-s{font-size:13px;font-weight:800;fill:#b45309}
.arch-lab .k94-choice{display:grid;gap:4px;margin:4px 0 8px}
.arch-lab .k94-choice .arch-toggle button{min-width:56px;min-height:44px;font-weight:700}
.arch-lab .k94-rule{font-size:15px}
.arch-lab .k94-rule:empty{display:none}
.arch-lab svg .k94-place{fill:none;stroke:#1d4ed8;stroke-width:2.2;stroke-dasharray:5 4}
.arch-lab .phx-stage.k94-stage .phx-svg{max-height:none}

/* Popov Academy — КФУ 2025/26, 9 класс, №5 «Числа на доске» (the stage is light in both themes). */
.arch-lab .phx-stage.k95-stage{max-height:none}
.arch-lab .phx-svg .k95-tap{cursor:pointer}
.arch-lab .phx-svg .k95-hit{fill:transparent;stroke:none}
.arch-lab svg .k95-sw-board{fill:#24543f;stroke:none}
.arch-lab svg .k95-on{fill:#2f6a50;stroke:#f4f1e6;stroke-width:2}
.arch-lab svg .k95-off{fill:none;stroke:#7fa592;stroke-width:1.2;stroke-dasharray:3 3}
.arch-lab svg text.k95-n-on{fill:#fdfcf5;stroke:none;font-weight:800;font-size:16px;font-family:"Comic Sans MS","Chalkboard SE","Segoe Print",system-ui,sans-serif}
.arch-lab svg text.k95-n-off{fill:#93b8a5;stroke:none;font-weight:600;font-size:16px;font-family:"Comic Sans MS","Chalkboard SE","Segoe Print",system-ui,sans-serif}
.arch-lab svg .k95-sum{fill:none;stroke:#facc15;stroke-width:3.5}
.arch-lab svg .k95-prod-ok{fill:none;stroke:#4ade80;stroke-width:3.5}
.arch-lab svg .k95-prod-bad{fill:none;stroke:#f87171;stroke-width:3.5;stroke-dasharray:6 3}
.arch-lab .phx-svg text.k95-chalk{fill:#f4f1e6;stroke:none;font-size:14px;font-family:"Comic Sans MS","Chalkboard SE","Segoe Print",system-ui,sans-serif}
.arch-lab .phx-svg .k95-shadow{fill:#0f172a;fill-opacity:.12;stroke:none}
.arch-lab .phx-svg .k95-note{fill:#fffdf5;stroke:#c9b98f;stroke-width:1.2}
.arch-lab .phx-svg .k95-rule{stroke:#dbe6f3;stroke-width:1}
.arch-lab .phx-svg text.k95-note-h{font-size:12.5px;font-weight:700;fill:#1e3a8a;stroke:none}
.arch-lab .phx-svg text.k95-note-t{font-size:14px;fill:#5b6b82;stroke:none}
.arch-lab .phx-svg text.k95-note-ok{font-size:17px;font-weight:800;fill:#047857;stroke:none}
.arch-lab .phx-svg text.k95-note-bad{font-size:17px;font-weight:800;fill:#b91c1c;stroke:none}
.arch-lab .phx-svg text.k95-name{font-size:13px;font-weight:700;fill:#1e3a8a}
.arch-lab .phx-svg .k95-ink .p25-o,.arch-lab .phx-svg .k95-ink .p25-o-thin{stroke:#1f2937}
.arch-lab .k95-pairs{margin:6px 0 10px;padding-left:24px;font-size:15px}
.arch-lab .k95-pairs:empty{display:none}
.arch-lab .k95-pairs .k95-bad{color:var(--arch-bad)}
.arch-lab .k95-pairs .k95-cur{font-weight:700;background:var(--arch-pressed-bg);border-radius:6px}
.arch-lab .phx-stage.k95-stage .phx-svg{max-height:none}

/* Popov Academy — КФУ 2025/26, физика 10.3 и 11.1 «Доски на петле и бревно» (k103-). The scene stays on light paper in both
   themes (lab.css keeps .arch-stage light); the status line and the HTML maths of the lab text follow the theme. */
.arch-lab .phx-svg .k103-panel{fill:#f8fafc;stroke:#cbd5e1;stroke-width:1}
.arch-lab .phx-svg .k103-cap{font-size:12.5px;fill:#5b6b82;font-weight:600;stroke:none}
.arch-lab .phx-svg .k103-board{stroke:#c98f52;stroke-linecap:butt;fill:none}
.arch-lab .phx-svg .k103-grain{stroke:#9a6331;stroke-width:1;stroke-dasharray:14 6;fill:none;opacity:.55}
.arch-lab .phx-svg .k103-edge{stroke:#7c4a25;stroke-width:1.4;fill:none}
.arch-lab .phx-svg .k103-board-o{stroke:#c98f52;stroke-width:5;stroke-linecap:round;fill:none}
.arch-lab .phx-svg .k103-beam{stroke:#64748b;stroke-width:5;stroke-linecap:round}
.arch-lab .phx-svg .k103-pin{fill:#e2e8f0;stroke:#334155;stroke-width:2}
.arch-lab .phx-svg .k103-bark{fill:#7c4a25;stroke:#4a2c14;stroke-width:1.5}
.arch-lab .phx-svg .k103-wood{fill:#f2d3a2;stroke:none}
.arch-lab .phx-svg .k103-ring{fill:none;stroke:#c99b62;stroke-width:1.3}
.arch-lab .phx-svg .k103-logo{fill:#b07a43;stroke:#4a2c14;stroke-width:1}
.arch-lab .phx-svg .k103-axis{stroke:#64748b;stroke-width:1.3;stroke-dasharray:5 4}
.arch-lab .phx-svg .k103-arm{stroke:#c2410c;stroke-width:1.6;stroke-dasharray:4 3}
.arch-lab .phx-svg .k103-arc{fill:none;stroke:#334155;stroke-width:1.3}
.arch-lab .phx-svg .k103-dot{fill:#1f2937;stroke:#fff;stroke-width:1}
.arch-lab .phx-svg .k103-max{stroke:#047857;stroke-width:6;stroke-linecap:round;opacity:.28;fill:none}
.arch-lab .phx-svg .k103-bad .phx-arrow-shaft{stroke:#b91c1c}
.arch-lab .phx-svg .k103-bad .phx-arrow-head{fill:#b91c1c}
.arch-lab .phx-svg .k103-lt{font-size:15px;fill:#1f2937;font-style:italic}
.arch-lab .phx-svg .k103-ls{font-size:13px;fill:#334155}
.arch-lab .phx-svg .k103-tn{font-size:14px;fill:#1d4ed8;font-weight:700}
.arch-lab .phx-svg .k103-tf{font-size:14px;fill:#047857;font-weight:700}
.arch-lab .phx-svg .k103-tm{font-size:13px;fill:#047857}
.arch-lab .phx-svg .k103-ok{font-size:15px;fill:#047857;font-weight:700}
.arch-lab .phx-svg .k103-no{font-size:15px;fill:#b91c1c;font-weight:700}
.arch-lab .phx-svg .k103-band{fill:#10b981;fill-opacity:.16;stroke:none}
.arch-lab .phx-svg .k103-mu{stroke:#c2410c;stroke-width:2;stroke-dasharray:7 4}
.arch-lab .phx-svg .k103-tmu{font-size:13px;fill:#c2410c;font-weight:700}
.arch-lab .phx-svg .k103-tok{font-size:13px;fill:#047857;font-weight:700}
.arch-lab .phx-svg .k103-tno{font-size:13px;fill:#b91c1c;font-weight:700}
.arch-lab .phx-svg .k103-minline{stroke:#047857;stroke-width:1.6;stroke-dasharray:4 3}
.arch-lab .phx-svg .k103-minring{fill:none;stroke:#047857;stroke-width:2.4}
.arch-lab .phx-svg .k103-guide{stroke:#94a3b8;stroke-width:1;stroke-dasharray:3 3}
.arch-lab .k103-status{margin:0;padding:8px 12px;border-radius:10px;background:var(--p25-paper);color:var(--arch-ink);font-weight:600;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
/* HTML maths shared by the labs of physics 10–11 (k1x-): stacked fraction, root with a bar */
.arch-lab .k1x-fr{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 2px;font-size:.92em;line-height:1.15}
.arch-lab .k1x-fr-n{padding:0 3px;border-bottom:1.5px solid currentColor}
.arch-lab .k1x-fr-d{padding:0 3px}
.arch-lab .k1x-sq{white-space:nowrap}
.arch-lab .k1x-sq-r{border-top:1.5px solid currentColor;padding:0 1px;margin-left:1px}
/* the scene is taller than 40vh on a phone: shown whole, not shrunk (as ht26-9-1-rating) */
.arch-lab .phx-stage.k103-stage{max-height:none;position:static}
.arch-lab .phx-stage.k103-stage .phx-svg{max-height:none}
/* the lever panel (KFU-S03): the arm of N along the board is blue, the arm of mg is the orange dashed line; the numbers keep one width */
.arch-lab .phx-svg .k103-armn{stroke:#1d4ed8;stroke-width:5;stroke-linecap:round}
.arch-lab .phx-svg .k103-la{font-size:13.5px;fill:#1d4ed8;font-weight:700;font-variant-numeric:tabular-nums}
.arch-lab .phx-svg .k103-lo{font-size:13.5px;fill:#c2410c;font-weight:700;font-variant-numeric:tabular-nums}
/* KFU-S04 rule for every model: the status line keeps the room for its longest text, so the page does not move while the log goes down */
.arch-lab .k103-status{min-height:2.9em;font-variant-numeric:tabular-nums}
@media(max-width:700px){.arch-lab .k103-status{box-sizing:border-box;min-height:150px}}

/* Popov Academy — КФУ 2025/26, физика 10.4 = 11.5 «Реостат» (k104-). The scene stays on light paper in both themes. */
.arch-lab .phx-svg .k104-tube{fill:#efe6d6;stroke:#8d7b62;stroke-width:1.4}
.arch-lab .phx-svg .k104-glow{fill:#f97316;stroke:none}
.arch-lab .phx-svg .k104-glow-key{fill:#f97316;fill-opacity:.5;stroke:none}
.arch-lab .phx-svg .k104-coil{stroke:#9a5a1c;stroke-width:1.6;stroke-linecap:round}
.arch-lab .phx-svg .k104-clamp{fill:#94a3b8;stroke:#334155;stroke-width:1}
.arch-lab .phx-svg .k104-shoe{fill:#cbd5e1;stroke:#334155;stroke-width:1.4}
.arch-lab .phx-svg .k104-arr{fill:none;stroke:#1f2937;stroke-width:2.2;stroke-linejoin:round}
.arch-lab .phx-svg .k104-node{fill:#1f2937;stroke:none}
.arch-lab .phx-svg .k104-bat{fill:#1f2937;stroke:#0f172a;stroke-width:1}
.arch-lab .phx-svg .k104-bat-top{fill:#f59e0b;stroke:none}
.arch-lab .phx-svg .k104-bat-pin{fill:#94a3b8;stroke:#334155;stroke-width:1}
.arch-lab .phx-svg .k104-bat-t{font-size:13px;font-weight:700;fill:#1f2937}
.arch-lab .phx-svg .k104-bat-t2{font-size:15px;font-weight:700;fill:#f8fafc;stroke:none}
.arch-lab .phx-svg .k104-lu{font-size:14px;font-weight:700;fill:#1f2937}
.arch-lab .phx-svg .k104-lx{font-size:14px;font-weight:700;fill:#7c3aed}
.arch-lab .phx-svg .k104-tl{font-size:14px;font-weight:700;fill:#1d4ed8}
.arch-lab .phx-svg .k104-tr{font-size:14px;font-weight:700;fill:#c2410c}
.arch-lab .phx-svg .k104-tp{font-size:14px;font-weight:700;fill:#7c3aed}
.arch-lab .phx-svg .k104-tok{font-size:13px;font-weight:700;fill:#047857}
.arch-lab .phx-svg .k104-ax{font-size:13px;fill:#334155;font-style:italic}
.arch-lab .phx-svg .k104-arL{font-size:14px;font-weight:700;fill:#ffffff}
.arch-lab .phx-svg .k104-arR{font-size:14px;font-weight:700;fill:#9a3412}
.arch-lab .phx-svg .k104-areaL{fill:#1d4ed8;fill-opacity:.75;stroke:none}
.arch-lab .phx-svg .k104-areaR{fill:#fdba74;fill-opacity:.7;stroke:none}
.arch-lab .phx-svg .k104-rho{stroke:#1f2937;stroke-width:2}
.arch-lab .phx-svg .k104-guide{stroke:#94a3b8;stroke-width:1;stroke-dasharray:3 3}
.arch-lab .k104-status{margin:0;padding:8px 12px;border-radius:10px;background:var(--p25-paper);color:var(--arch-ink);font-weight:600;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
/* the scene is taller than 40vh on a phone: shown whole, not shrunk (as ht26-9-1-rating) */
.arch-lab .phx-stage.k104-stage{max-height:none;position:static}
.arch-lab .phx-stage.k104-stage .phx-svg{max-height:none}

/* Popov Academy — КФУ 2025/26, физика 11.2 «Перегородка в цилиндре» (k112-). The scene stays on light paper in both themes. */
.arch-lab .phx-svg .k112-steel{fill:#94a3b8;stroke:#334155;stroke-width:1.5}
.arch-lab .phx-svg .k112-inside{fill:#eef6ff;stroke:#475569;stroke-width:1}
.arch-lab .phx-svg .k112-warm{fill:#f97316;stroke:none}
.arch-lab .phx-svg .k112-stand{fill:#64748b;stroke:#334155;stroke-width:1}
.arch-lab .phx-svg .k112-mol{fill:#2563eb;stroke:none;opacity:.8}
.arch-lab .phx-svg .k112-plate{fill:#475569;stroke:#1f2937;stroke-width:1.2}
.arch-lab .phx-svg .k112-shine{fill:#cbd5e1;stroke:none;opacity:.8}
.arch-lab .phx-svg .k112-lm{font-size:16px;font-style:italic;font-weight:700;fill:#1f2937}
.arch-lab .phx-svg .k112-net .phx-arrow-shaft{stroke:#dc2626;stroke-width:3}
.arch-lab .phx-svg .k112-net .phx-arrow-head{fill:#dc2626;stroke:none}
.arch-lab .phx-svg .k112-ta{font-size:13.5px;font-weight:700;fill:#1d4ed8}
.arch-lab .phx-svg .k112-tb{font-size:13.5px;font-weight:700;fill:#c2410c}
.arch-lab .phx-svg .k112-tn{font-size:13.5px;font-weight:700;fill:#dc2626}
.arch-lab .phx-svg .k112-tp{font-size:13px;font-weight:600;fill:#1f2937}
.arch-lab .phx-svg .k112-tr{font-size:12.5px;fill:#334155}
.arch-lab .phx-svg .k112-tx{font-size:14px;font-weight:700;fill:#7c3aed}
.arch-lab .phx-svg .k112-tok{font-size:12.5px;font-weight:700;fill:#047857}
.arch-lab .phx-svg .k112-eq{stroke:#047857;stroke-width:2;stroke-dasharray:4 3}
.arch-lab .phx-svg .k112-tbar{stroke:#047857;stroke-width:2}
.arch-lab .phx-svg .k112-theory{fill:none;stroke:#047857;stroke-width:2;stroke-dasharray:6 5}
.arch-lab .k112-status{margin:0;padding:8px 12px;border-radius:10px;background:var(--p25-paper);color:var(--arch-ink);display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:6px 14px;font-variant-numeric:tabular-nums}
.arch-lab .k112-cell{display:flex;flex-direction:column;white-space:nowrap;font-size:16px;line-height:1.3}.arch-lab .k112-cl{font-size:13px;font-weight:500;opacity:.85}
/* the note about an example: its place is kept, so the graph below does not move when the note comes and goes */
.arch-lab .k112-note{margin:0;min-height:1.45em;font-size:15px;line-height:1.45;font-weight:600;color:var(--arch-ink)}
@media(max-width:700px){.arch-lab .k112-note{min-height:4.35em}}
.arch-lab .phx-svg .k112-ta,.arch-lab .phx-svg .k112-tb,.arch-lab .phx-svg .k112-tn{paint-order:stroke;stroke:#fff;stroke-width:3.5px;stroke-linejoin:round;font-variant-numeric:tabular-nums}
.arch-lab .phx-svg .k112-tp,.arch-lab .phx-svg .k112-tx,.arch-lab .phx-svg .k112-tok{font-variant-numeric:tabular-nums}
/* a root over a fraction in the idea block: the bar lies above the whole fraction (KFU-S04: it crossed the numerator) */
.arch-lab .k1x-fr{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 2px;font-size:.92em;line-height:1.15}
.arch-lab .k1x-fr-n{padding:0 3px;border-bottom:1.5px solid currentColor;align-self:stretch;text-align:center}.arch-lab .k1x-fr-d{padding:0 3px}
.arch-lab .k1x-sq{white-space:nowrap;display:inline-flex;align-items:stretch;vertical-align:middle}
.arch-lab .k1x-sq-s{display:inline-block;width:.62em;overflow:hidden;text-indent:-9em;background:linear-gradient(currentColor,currentColor) 0 62%/.2em 1.5px no-repeat;position:relative}
.arch-lab .k1x-sq-s::after{content:"";position:absolute;inset:0;background:currentColor;clip-path:polygon(18% 60%,30% 56%,52% 86%,90% 0,100% 0,100% 5%,58% 100%,44% 100%)}
.arch-lab .k1x-sq-r{display:inline-block;border-top:1.5px solid currentColor;padding:3px 2px 0 1px}
/* the scene is taller than 40vh on a phone: shown whole, not shrunk (as ht26-9-1-rating) */
.arch-lab .phx-stage.k112-stage{max-height:none;position:static}
.arch-lab .phx-stage.k112-stage .phx-svg{max-height:none}

/* Popov Academy — КФУ 2025/26, физика 11.4 «Магнит в медной трубе» (k114-). The scene stays on light paper in both themes. */
.arch-lab .phx-svg .k114-back{fill:#7c3f1d;fill-opacity:.25;stroke:none}
.arch-lab .phx-svg .k114-cu{fill:#c56a2d;stroke:#7c2d12;stroke-width:1}
.arch-lab .phx-svg .k114-rim{fill:none;stroke:#7c2d12;stroke-width:1.5}
.arch-lab .phx-svg .k114-ringA{fill:none;stroke:#f59e0b;stroke-width:3}
.arch-lab .phx-svg .k114-ringB{fill:none;stroke:#0ea5e9;stroke-width:3}
.arch-lab .phx-svg .k114-n{fill:#dc2626;stroke:#7f1d1d;stroke-width:1}
.arch-lab .phx-svg .k114-s{fill:#2563eb;stroke:#1e3a8a;stroke-width:1}
.arch-lab .phx-svg .k114-pole{font-size:13px;font-weight:700;fill:#ffffff;stroke:none}
.arch-lab .phx-svg .k114-ghost{fill:none;stroke:#94a3b8;stroke-width:1.4;stroke-dasharray:4 3}
.arch-lab .phx-svg .k114-lead{stroke:#94a3b8;stroke-width:1;stroke-dasharray:2 3}
.arch-lab .phx-svg .k114-fb .phx-arrow-shaft{stroke:#047857;stroke-width:3}
.arch-lab .phx-svg .k114-fb .phx-arrow-head{fill:#047857;stroke:none}
.arch-lab .phx-svg .k114-lf{font-size:13.5px;font-weight:700;fill:#1f2937}
.arch-lab .phx-svg .k114-lfb{font-size:13.5px;font-weight:700;fill:#047857}
.arch-lab .phx-svg .k114-lv{font-size:14px;font-weight:700;fill:#7c3aed}
.arch-lab .phx-svg .k114-ls{font-size:12.5px;fill:#334155}
.arch-lab .phx-svg .k114-lb{font-size:13px;font-weight:700;fill:#b45309}
.arch-lab .phx-svg .k114-baxis{stroke:#94a3b8;stroke-width:1.2}
.arch-lab .phx-svg .k114-bz{fill:#fde68a;fill-opacity:.55;stroke:#b45309;stroke-width:2}
.arch-lab .phx-svg .k114-bzt{stroke:#b45309;stroke-width:3}
.arch-lab .phx-svg .k114-vs{stroke:#047857;stroke-width:2;stroke-dasharray:7 4}
.arch-lab .phx-svg .k114-tvs{font-size:13px;font-weight:700;fill:#047857}
.arch-lab .phx-svg .k114-tok{font-size:13px;font-weight:700;fill:#047857}
.arch-lab .phx-svg .k114-half{stroke:#047857;stroke-width:2}
.arch-lab .phx-svg .k114-guide{stroke:#94a3b8;stroke-width:1;stroke-dasharray:3 3}
.arch-lab .k114-status{margin:0;padding:8px 12px;border-radius:10px;background:var(--p25-paper);color:var(--arch-ink);font-weight:600;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.arch-lab .phx-svg .k114-panel{fill:#f8fafc;stroke:#cbd5e1;stroke-width:1}
.arch-lab .phx-svg .k114-cap{font-size:12.5px;fill:#5b6b82;font-weight:600;stroke:none}
.arch-lab .phx-svg .k114-dim{stroke:#64748b;stroke-width:1.2}
.arch-lab .phx-svg .k114-pm{font-size:12px;font-style:italic;font-weight:700;fill:#ffffff}
.arch-lab .phx-svg .k114-dot{fill:#1f2937;stroke:#fff;stroke-width:1}
/* the scene is taller than 40vh on a phone: shown whole, not shrunk (as ht26-9-1-rating) */
.arch-lab .phx-stage.k114-stage{max-height:none;position:static}
.arch-lab .phx-stage.k114-stage .phx-svg{max-height:none}

/* Popov Academy — КФУ 2025/26, физика 8, №1 «Цилиндр в двухслойной жидкости»: glass vessels, liquids coloured by density,
   an amber cylinder. The stage is light in both themes (lab.css), so the colours below are fixed. */
.arch-lab .phx-stage.kp81-stage,.arch-lab .phx-stage.kp81-stage .phx-svg{max-height:none}
.arch-lab svg .kp81-glass-back{fill:#f4f9fd;stroke:none}
.arch-lab svg .kp81-liq{stroke:none;fill-opacity:.78}
.arch-lab svg .kp81-bound{stroke-width:2;stroke-dasharray:6 3}
.arch-lab svg .kp81-surf{stroke-width:2.2}
.arch-lab svg .kp81-wall{fill:none;stroke:#475569;stroke-width:2.6;stroke-linejoin:round}
.arch-lab svg .kp81-shine{stroke:#ffffff;stroke-width:3;opacity:.7}
.arch-lab svg .kp81-tick{stroke:#475569;stroke-width:1.2}
.arch-lab svg .kp81-tick-t{font-size:11.5px;fill:#5b6b82}
.arch-lab svg .kp81-title{font-size:14px;font-weight:700;fill:#1f2937}
.arch-lab svg .kp81-cyl{stroke:none}
.arch-lab svg .kp81-cyl-edge{fill:none;stroke:#92400e;stroke-width:1.5}
.arch-lab svg .kp81-cyl-top{stroke:#92400e;stroke-width:1.3}
.arch-lab svg .kp81-cyl-bottom{fill:none;stroke:#92400e;stroke-width:1.2;stroke-dasharray:3 2}
.arch-lab svg .kp81-cyl-flat{fill:#f6c77a;stroke:#92400e;stroke-width:1}
.arch-lab svg .kp81-hatch{stroke:none}
.arch-lab svg .kp81-hatch-lines{fill:none;stroke:#c2410c;stroke-width:2}
.arch-lab svg .kp81-low-edge{fill:none;stroke:#c2410c;stroke-width:2.4}
.arch-lab svg .kp81-br{fill:none;stroke-width:1.6}
.arch-lab svg .kp81-br-up{stroke:#1d4ed8;fill:#1d4ed8}
.arch-lab svg .kp81-br-low{stroke:#c2410c;fill:#c2410c}
.arch-lab .phx-svg path.kp81-br-up,.arch-lab .phx-svg path.kp81-br-low{fill:none}
.arch-lab svg .kp81-brt{font-size:12.5px;font-weight:700}
.arch-lab svg .kp81-rho{font-size:12.5px;fill:#334155;font-weight:600}
.arch-lab svg .kp81-brace{fill:none;stroke:#334155;stroke-width:1.5}
.arch-lab svg .kp81-xname{font-size:15px;font-style:italic;font-weight:700;fill:#0f172a}
.arch-lab svg .kp81-layer{font-size:12px;fill:#334155}
.arch-lab svg .kp81-arrow-w .phx-arrow-shaft{stroke:#7f1d1d;stroke-width:2.6}
.arch-lab svg .kp81-arrow-w .phx-arrow-head{fill:#7f1d1d;stroke:none}
.arch-lab svg .kp81-dot-w{fill:#7f1d1d;stroke:#fff;stroke-width:1}
.arch-lab svg .kp81-dot-a{fill:var(--phx-a);stroke:#fff;stroke-width:1}
.arch-lab svg .kp81-dot-c{fill:var(--phx-c);stroke:#fff;stroke-width:1}
.arch-lab svg .kp81-ft{font-size:13px;font-weight:700}
.arch-lab svg .kp81-ft-w{fill:#7f1d1d;font-weight:700}
.arch-lab svg .kp81-eq{font-size:15px;font-weight:700;fill:#1f2937}
.arch-lab svg .kp81-eq2{font-size:12.5px;fill:#475569}
.arch-lab .kp81-legend-note{flex-basis:100%;color:var(--arch-muted)}
.arch-lab svg.kp81-key{flex:0 0 auto;width:26px;height:18px}
.arch-lab svg .kp81-tc-up{fill:#1d4ed8;font-weight:700}
.arch-lab svg .kp81-tc-low{fill:#c2410c;font-weight:700}
.arch-lab svg .kp81-sep{stroke:#cbd5e1;stroke-width:1;stroke-dasharray:4 4}
.arch-lab svg .kp81-arrow-a .phx-arrow-shaft{stroke:#1d4ed8;stroke-width:2.5}.arch-lab svg .kp81-arrow-a .phx-arrow-head{fill:#1d4ed8}
.arch-lab svg .kp81-arrow-c .phx-arrow-shaft{stroke:#047857;stroke-width:2.5}.arch-lab svg .kp81-arrow-c .phx-arrow-head{fill:#047857}
.arch-lab svg .kp81-arrow-w .phx-arrow-shaft{stroke:#7f1d1d;stroke-width:2.6}.arch-lab svg .kp81-arrow-w .phx-arrow-head{fill:#7f1d1d}

/* Popov Academy — КФУ 2025/26, физика 8, №2 «Шахматные доски»: cubes, platform scales with a digital display (light stage). */
.arch-lab .phx-stage.kp82-stage,.arch-lab .phx-stage.kp82-stage .phx-svg{max-height:none}
.arch-lab svg .kp82-w{fill:#f5f1e6;stroke:#9a8f78;stroke-width:.8}
.arch-lab svg .kp82-b{fill:#2b2d36;stroke:#111318;stroke-width:.8}
.arch-lab svg .kp82-w-hl{fill:none;stroke:#ffffff;stroke-width:1.6;opacity:.9}
.arch-lab svg .kp82-b-hl{fill:none;stroke:#5b6070;stroke-width:1.6;opacity:.9}
.arch-lab svg .kp82-w-side{fill:#d9d2c0;stroke:#9a8f78;stroke-width:.8}
.arch-lab svg .kp82-b-side{fill:#16181e;stroke:#0b0c10;stroke-width:.8}
.arch-lab svg .kp82-w-side2{fill:#cbc3ae;stroke:#9a8f78;stroke-width:.8}
.arch-lab svg .kp82-b-side2{fill:#101216;stroke:#0b0c10;stroke-width:.8}
.arch-lab svg .kp82-edge{fill:none;stroke:#3f3a2e;stroke-width:1.4}
.arch-lab svg .kp82-corner{fill:none;stroke:#f59e0b;stroke-width:2.4}
.arch-lab svg .kp82-corner-key{fill:#f5f1e6;stroke:#f59e0b;stroke-width:2.4}
.arch-lab svg .kp82-plate{fill:#94a3b8;stroke:#475569;stroke-width:1.2}
.arch-lab svg .kp82-body{fill:#e2e8f0;stroke:#64748b;stroke-width:1.4}
.arch-lab svg .kp82-lcd{stroke:#334155;stroke-width:1.4}
.arch-lab svg .kp82-lcd-ok{fill:#dcfce7}
.arch-lab svg .kp82-lcd-bad{fill:#fee2e2}
.arch-lab svg .kp82-lcd-t{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;stroke:none}
.arch-lab svg .kp82-ok{fill:#047857}
.arch-lab svg .kp82-bad{fill:#b91c1c}
.arch-lab svg .kp82-target{font-size:13.5px;font-weight:600}
.arch-lab svg .kp82-head{font-size:14px;font-weight:700;fill:#1f2937}
.arch-lab svg .kp82-sep{stroke:#cbd5e1;stroke-width:1;stroke-dasharray:4 4}
.arch-lab svg.kp82-key{flex:0 0 auto;width:22px;height:22px}
.arch-lab .kp82-lcd-key{display:inline-block;white-space:nowrap;padding:1px 6px;border:1px solid #334155;border-radius:4px;background:#dcfce7;color:#047857;font-weight:700;font-size:13px;font-variant-numeric:tabular-nums}
.arch-lab .kp82-corners{display:flex;flex-wrap:wrap;gap:8px 24px;margin:8px 0}
.arch-lab .kp82-cg{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.arch-lab .kp82-frac{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.9em;line-height:1.1;margin:0 2px}
.arch-lab .kp82-num{border-bottom:1.5px solid currentColor;padding:0 2px}
.arch-lab .kp82-pairs{margin:4px 0 8px;padding-left:20px;display:grid;gap:6px}

/* Popov Academy — КФУ 2025/26, физика 8, №3 «Пёс на круговой дорожке» (light stage in both themes). */
.arch-lab .phx-stage.kp83-stage,.arch-lab .phx-stage.kp83-stage .phx-svg{max-height:none}
.arch-lab svg .kp83-track{fill:#d97757;stroke:none}
.arch-lab svg .kp83-field{fill:#86c06c;stroke:none}
.arch-lab svg .kp83-lane{fill:none;stroke:#fff;stroke-width:1.5;stroke-dasharray:6 5;opacity:.85}
.arch-lab svg .kp83-edge{fill:none;stroke:#7c2d12;stroke-width:1.5}
.arch-lab svg .kp83-mark{stroke:#5f9d4b;stroke-width:2}
.arch-lab svg .kp83-start{stroke:#fff;stroke-width:4}
.arch-lab svg .kp83-len{font-size:16px;font-weight:700;fill:#14532d;stroke:none}
.arch-lab svg .kp83-len2{font-size:12.5px;fill:#14532d;stroke:none}
.arch-lab svg .kp83-half{fill:none;stroke:#1d4ed8;stroke-width:5;stroke-linecap:round;opacity:.55}
.arch-lab svg .kp83-half-key{stroke:#1d4ed8;stroke-width:5;stroke-linecap:round;opacity:.55}
.arch-lab svg .kp83-halft{font-size:13px;font-weight:700;fill:#1d4ed8}
.arch-lab svg .kp83-badge-p{fill:#3b82f6;stroke:#fff;stroke-width:2}
.arch-lab svg .kp83-badge-v{fill:#ef6c3a;stroke:#fff;stroke-width:2}
.arch-lab svg .kp83-badge-t{font-size:13px;font-weight:800;fill:#fff;stroke:none}
.arch-lab svg .kp83-name{font-size:14px;font-weight:700}
.arch-lab svg .kp83-name-p{fill:#1d4ed8}
.arch-lab svg .kp83-name-v{fill:#c2410c}
.arch-lab svg .kp83-dog-body{fill:#c08a4e;stroke:#6b4423;stroke-width:1.4}
.arch-lab svg .kp83-dog-muzzle{fill:#e6c49a;stroke:#6b4423;stroke-width:1.2}
.arch-lab svg .kp83-dog-ear{fill:#7a4a24;stroke:#4a2c14;stroke-width:1}
.arch-lab svg .kp83-dog-nose,.arch-lab svg .kp83-dog-eye{fill:#1f2937;stroke:none}
.arch-lab svg .kp83-dog-leg{fill:none;stroke:#6b4423;stroke-width:4;stroke-linecap:round}
.arch-lab svg .kp83-dog-tail{fill:none;stroke:#6b4423;stroke-width:3.5;stroke-linecap:round}
.arch-lab svg .kp83-dog-collar{fill:none;stroke:#dc2626;stroke-width:3;stroke-linecap:round}
.arch-lab svg .kp83-arrow .phx-arrow-shaft,.arch-lab svg .kp83-arrow-key .phx-arrow-shaft{stroke:#111827;stroke-width:2.6}
.arch-lab svg .kp83-arrow .phx-arrow-head,.arch-lab svg .kp83-arrow-key .phx-arrow-head{fill:#111827;stroke:none}
.arch-lab svg .kp83-dogv{font-size:14px;font-weight:800;fill:#7c2d12}
.arch-lab svg .kp83-warn{font-size:14px;fill:#b91c1c}
.arch-lab svg.kp83-key{flex:0 0 auto;width:28px;height:22px}
.arch-lab .kp83-tools{display:flex;flex-wrap:wrap;gap:8px 24px;margin:8px 0}
.arch-lab .kp83-tg{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.arch-lab .kp83-legs-head{margin:12px 0 4px;font-weight:600}
.arch-lab .kp83-legs{margin:0 0 10px;padding-left:22px;display:grid;gap:4px;font-variant-numeric:tabular-nums}
.arch-lab .kp83-todo{color:var(--arch-muted)}
.arch-lab .kp83-sum{list-style:none;margin-left:-22px;font-weight:600}

/* Popov Academy — КФУ 2025/26, физика 8, №4 «Коаксиальный кабель» (light stage in both themes). */
.arch-lab .phx-stage.kp84-stage,.arch-lab .phx-stage.kp84-stage .phx-svg{max-height:none}
.arch-lab svg .kp84-jacket{fill:#334155;stroke:#0f172a;stroke-width:1.5}
.arch-lab svg .kp84-braid{stroke:#7c2d12;stroke-width:1.5}
.arch-lab svg .kp84-strand{stroke:#7c2d12;stroke-width:1;opacity:.5}
.arch-lab svg .kp84-ins{fill:#f1f5f9;stroke:#94a3b8;stroke-width:1.5}
.arch-lab svg .kp84-copper{fill:#e8a25c;stroke:#7c2d12;stroke-width:1.5}
.arch-lab svg .kp84-wave{fill:none;stroke:#ea580c;stroke-width:2;stroke-linecap:round;opacity:.85}
.arch-lab svg .kp84-lead{stroke:#64748b;stroke-width:1}
.arch-lab svg .kp84-tag{font-size:13.5px;font-weight:700}
.arch-lab svg .kp84-c-in{fill:#b91c1c}
.arch-lab svg .kp84-c-out{fill:#c2410c}
.arch-lab svg .kp84-c-env{fill:#1d4ed8}
.arch-lab svg .kp84-cap{font-size:13.5px;fill:#334155;font-weight:600}
.arch-lab svg .kp84-grid{stroke:#e2e8f0;stroke-width:1}
.arch-lab svg .kp84-axis{stroke:#1f2937;stroke-width:1.6}
.arch-lab svg .kp84-tick{font-size:12px;fill:#5b6b82}
.arch-lab svg .kp84-axt{font-size:13px;font-weight:700;fill:#1f2937}
.arch-lab svg .kp84-l-in{fill:none;stroke:#b91c1c;stroke-width:3}
.arch-lab svg .kp84-l-out{fill:none;stroke:#ea580c;stroke-width:3}
.arch-lab svg .kp84-l-env{fill:none;stroke:#1d4ed8;stroke-width:2;stroke-dasharray:6 4}
.arch-lab svg .kp84-gap{stroke:#0f172a;stroke-width:2;stroke-dasharray:3 3}
.arch-lab svg .kp84-target{fill:none;stroke:#7c3aed;stroke-width:3}
.arch-lab svg .kp84-target-t{font-size:13px;font-weight:700;fill:#7c3aed}
.arch-lab svg .kp84-pt-in{fill:#fff;stroke:#b91c1c;stroke-width:2.5}
.arch-lab svg .kp84-pt-out{fill:#fff;stroke:#ea580c;stroke-width:2.5}
.arch-lab svg .kp84-cur-in{fill:#b91c1c;stroke:#fff;stroke-width:2}
.arch-lab svg .kp84-cur-out{fill:#ea580c;stroke:#fff;stroke-width:2}
.arch-lab svg .kp84-val{font-size:13px;font-weight:700}
.arch-lab svg.kp84-key{flex:0 0 auto;width:28px;height:18px}

/* Popov Academy — КФУ 2025/26, физика 8, №5 «Лодка и цепь» (light stage in both themes). */
.arch-lab .phx-stage.kp85-stage,.arch-lab .phx-stage.kp85-stage .phx-svg{max-height:none}
.arch-lab svg .kp85-lake{fill:#cfe8f7;stroke:none}
.arch-lab svg .kp85-lake-front{fill:#9fd0ee;fill-opacity:.55;stroke:none}
.arch-lab svg .kp85-sand{fill:#e7cf9f;stroke:#b08a4e;stroke-width:1.2}
.arch-lab svg .kp85-pebble{fill:#a8865a;stroke:none}
.arch-lab svg .kp85-tick{stroke:#475569;stroke-width:1.2}
.arch-lab svg .kp85-tickt{font-size:11.5px;fill:#334155}
.arch-lab svg .kp85-hull{fill:#b45309;stroke:#7c2d12;stroke-width:1.6}
.arch-lab svg .kp85-rim{fill:none;stroke:#7c2d12;stroke-width:3.5}
.arch-lab svg .kp85-stripe{fill:#fde68a;stroke:none;opacity:.8}
.arch-lab svg .kp85-post{fill:#475569;stroke:#1f2937;stroke-width:1}
.arch-lab svg .kp85-drum{fill:#64748b;stroke:#1f2937;stroke-width:1.4}
.arch-lab svg .kp85-axle{fill:#cbd5e1;stroke:#1f2937;stroke-width:1}
.arch-lab svg .kp85-chain-top{stroke:#475569;stroke-width:3}
.arch-lab svg .kp85-link{fill:#64748b;stroke:#1f2937;stroke-width:.8}
.arch-lab svg .kp85-link-o{fill:none;stroke:#334155;stroke-width:1.8}
.arch-lab svg .kp85-ar-a .phx-arrow-shaft{stroke:#1d4ed8;stroke-width:2.8}.arch-lab svg .kp85-ar-a .phx-arrow-head{fill:#1d4ed8;stroke:none}
.arch-lab svg .kp85-ar-w .phx-arrow-shaft{stroke:#7f1d1d;stroke-width:2.8}.arch-lab svg .kp85-ar-w .phx-arrow-head{fill:#7f1d1d;stroke:none}
.arch-lab svg .kp85-ar-p .phx-arrow-shaft{stroke:#047857;stroke-width:2.8}.arch-lab svg .kp85-ar-p .phx-arrow-head{fill:#047857;stroke:none}
.arch-lab svg .kp85-dot-a{fill:#1d4ed8;stroke:#fff;stroke-width:1}
.arch-lab svg .kp85-dot-w{fill:#7f1d1d;stroke:#fff;stroke-width:1}
.arch-lab svg .kp85-dot-p{fill:#047857;stroke:#fff;stroke-width:1}
.arch-lab svg .kp85-ft{font-size:13px;font-weight:700}
.arch-lab svg .kp85-c-a{fill:#1d4ed8}.arch-lab svg .kp85-c-w{fill:#7f1d1d}.arch-lab svg .kp85-c-p{fill:#047857}
.arch-lab svg .kp85-chaint{font-size:12.5px;fill:#1f2937;font-weight:600}
.arch-lab svg .kp85-grid{stroke:#e2e8f0;stroke-width:1}
.arch-lab svg .kp85-axis{stroke:#1f2937;stroke-width:1.6}
.arch-lab svg .kp85-gt{font-size:12px;fill:#5b6b82}
.arch-lab svg .kp85-axt{font-size:13.5px;font-weight:700;fill:#1f2937}
.arch-lab svg .kp85-g-off{fill:none;stroke:#94a3b8;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
.arch-lab svg .kp85-g-mod{fill:none;stroke:#1d4ed8;stroke-width:2.4}
.arch-lab svg .kp85-kink{stroke:#c2410c;stroke-width:1.4;stroke-dasharray:4 3}
.arch-lab svg .kp85-kinkt{font-size:12px;fill:#c2410c;font-weight:600}
.arch-lab svg .kp85-cur{fill:#1d4ed8;stroke:#fff;stroke-width:2}
.arch-lab svg .kp85-curt{font-size:13px;font-weight:700;fill:#1d4ed8}
.arch-lab svg.kp85-key{flex:0 0 auto;width:28px;height:18px}
.arch-lab .kp85-note{flex-basis:100%;color:var(--arch-muted)}

/* Popov Academy — КФУ 2025/26, физика 9 класс, №2 «Телефон на наклонной доске» (prefix k92). The stage keeps its light paper
   in both themes (lab.css), so the colours below are the light ones; the legend icons use the same classes. */
.arch-lab .phx-svg .k92-sky{fill:#eef5fc;stroke:none}
.arch-lab .phx-svg .k92-road{fill:#5b6472;stroke:none}
.arch-lab .phx-svg .k92-edge{stroke:#334155;stroke-width:2}
.arch-lab .phx-svg .k92-lane{stroke:#f8fafc;stroke-width:3;stroke-linecap:round}
.arch-lab .phx-svg .k92-pole{fill:none;stroke:#94a3b8;stroke-width:3;stroke-linecap:round}
.arch-lab .phx-svg .k92-lamp{fill:#fde68a;stroke:#b45309;stroke-width:1}
.arch-lab .phx-svg .k92-call{stroke:#94a3b8;stroke-width:1.4;stroke-dasharray:4 4}
.arch-lab .phx-svg .k92-panel{fill:#fbfaf6;stroke:#c9b98f;stroke-width:1.4}
.arch-lab .phx-svg .k92-seat{fill:#7c8aa0;stroke:#334155;stroke-width:1.2}
.arch-lab .phx-svg .k92-wedge{fill:#e3b47c;stroke:#7c4a25;stroke-width:1.4;stroke-linejoin:round}
.arch-lab .phx-svg .k92-grain{stroke:#8a5a2b;stroke-width:1;opacity:.45}
.arch-lab .phx-svg .k92-board{stroke:#7c4a25;stroke-width:4;stroke-linecap:round}
.arch-lab .phx-svg .k92-stop{fill:#475569;stroke:#1f2937;stroke-width:1}
.arch-lab .phx-svg .k92-arc{fill:none;stroke:#1f2937;stroke-width:1.5}
.arch-lab .phx-svg .k92-phone{fill:#1f2937;stroke:#0f172a;stroke-width:1.2;stroke-linejoin:round}
.arch-lab .phx-svg .k92-glass{fill:#60a5fa;stroke:none}
.arch-lab .phx-svg .k92-dot{fill:#0f172a;stroke:#fff;stroke-width:1.2}
.arch-lab .phx-svg .k92-N .phx-arrow-shaft,.arch-lab svg .k92-N .phx-arrow-shaft{stroke:#1d4ed8;stroke-width:3}
.arch-lab .phx-svg .k92-N .phx-arrow-head,.arch-lab svg .k92-N .phx-arrow-head{fill:#1d4ed8;stroke:none}
.arch-lab .phx-svg .k92-f .phx-arrow-shaft,.arch-lab svg .k92-f .phx-arrow-shaft{stroke:#c2410c;stroke-width:3}
.arch-lab .phx-svg .k92-f .phx-arrow-head,.arch-lab svg .k92-f .phx-arrow-head{fill:#c2410c;stroke:none}
.arch-lab .phx-svg .k92-g .phx-arrow-shaft,.arch-lab svg .k92-g .phx-arrow-shaft{stroke:#1f2937;stroke-width:3}
.arch-lab .phx-svg .k92-stopF .phx-arrow-shaft{stroke:#475569;stroke-width:3}
.arch-lab .phx-svg .k92-stopF .phx-arrow-head{fill:#475569;stroke:none}
.arch-lab .phx-svg .k92-acc .phx-arrow-shaft{stroke:#047857;stroke-width:3}
.arch-lab .phx-svg .k92-acc .phx-arrow-head{fill:#047857;stroke:none}
.arch-lab svg .k92-sum{stroke:#047857;stroke-width:2.6;stroke-dasharray:6 4;fill:none}
.arch-lab svg .k92-sum-h{fill:#047857;stroke:none}
.arch-lab .phx-svg .k92-t{font-size:13.5px;font-weight:600;fill:#1f2937}
.arch-lab .phx-svg .k92-t-mut{font-size:13px;fill:#5b6b82;stroke-width:3px}
.arch-lab .phx-svg .k92-t-N{fill:#1d4ed8}
.arch-lab .phx-svg .k92-t-f{fill:#c2410c}
.arch-lab .phx-svg .k92-t-sum,.arch-lab .phx-svg .k92-t-acc{fill:#047857}
.arch-lab .phx-svg .k92-t-thr{fill:#b91c1c}
.arch-lab .phx-svg .k92-t-hold{fill:#166534}
.arch-lab svg .k92-curve{fill:none;stroke:#1d4ed8;stroke-width:3;stroke-linejoin:round}
.arch-lab .phx-svg .k92-curve-o{fill:none;stroke:#7c8aa0;stroke-width:2;stroke-dasharray:5 5}
.arch-lab svg .k92-thr{stroke:#dc2626;stroke-width:2;stroke-dasharray:8 5}
.arch-lab .phx-svg .k92-hold{fill:#22c55e;fill-opacity:.22;stroke:none}
.arch-lab .phx-svg .k92-cursor{stroke:#64748b;stroke-width:1.2;stroke-dasharray:3 3}
.arch-lab .phx-svg .k92-pt{fill:#16a34a;stroke:#fff;stroke-width:2}
.arch-lab .phx-svg .k92-pt-bad{fill:#dc2626;stroke:#fff;stroke-width:2}
.arch-lab .arch-legend svg.k92-ico{width:30px;height:18px;flex:0 0 auto}
.arch-lab .phx-stage.k92-stage,.arch-lab .phx-stage.k92-stage .phx-svg{max-height:none}

/* Popov Academy — КФУ 2025/26, физика 9 класс, №3 «Коаксиальный кабель» (prefix k93); the stage keeps light paper in both themes. */
.arch-lab .phx-stage.k93-stage,.arch-lab .phx-stage.k93-stage .phx-svg{max-height:none}
.arch-lab .arch-legend svg.k93-ico{width:30px;height:18px;flex:0 0 auto}
.arch-lab .phx-svg .k93-air{fill:#f3f8fd;stroke:none}
.arch-lab svg .k93-jacket{fill:#3f4a5a;stroke:#1f2937;stroke-width:1.4}
.arch-lab svg .k93-cu{stroke:#7c2d12;stroke-width:1.4}
.arch-lab .phx-svg .k93-braid{stroke:#7c2d12;stroke-width:.8;opacity:.45}
.arch-lab svg .k93-ins{fill:#f5f1e6;stroke:#9ca3af;stroke-width:1.2}
.arch-lab .phx-svg .k93-shine{stroke:#fff7d6;stroke-width:2.5;opacity:.7;stroke-linecap:round}
.arch-lab svg .k93-heat{fill:none;stroke:#dc2626;stroke-width:2.2;stroke-linecap:round}
.arch-lab svg .k93-heat-h{fill:#dc2626;stroke:none}
.arch-lab .phx-svg .k93-heat-a .phx-arrow-shaft{stroke:#dc2626;stroke-width:2.2}
.arch-lab .phx-svg .k93-heat-a .phx-arrow-head{fill:#dc2626;stroke:none}
.arch-lab .phx-svg .k93-t{font-size:14px;font-weight:700;fill:#1f2937}
.arch-lab .phx-svg .k93-t-mut{font-size:13px;fill:#5b6b82}
.arch-lab .phx-svg .k93-t-heat{fill:#b91c1c;font-weight:600}
.arch-lab .phx-svg .k93-t-bad{fill:#b91c1c}
.arch-lab .phx-svg .k93-z-cu{fill:#f6c58f;fill-opacity:.35;stroke:none}
.arch-lab .phx-svg .k93-z-ins{fill:#f5f1e6;stroke:none}
.arch-lab .phx-svg .k93-z-jk{fill:#94a3b8;fill-opacity:.3;stroke:none}
.arch-lab .phx-svg .k93-z-air{fill:#e0f2fe;fill-opacity:.6;stroke:none}
.arch-lab svg .k93-prof{fill:none;stroke:#c2410c;stroke-width:3.2;stroke-linejoin:round}
.arch-lab .phx-svg .k93-dim{stroke:#1f2937;stroke-width:1.4}
.arch-lab .phx-svg .k93-dim-h{fill:#1f2937;stroke:none}

/* Popov Academy — КФУ 2025/26, физика 9 класс, №4 «Отрезок перед линзой» (prefix k94); the stage keeps light paper in both themes. */
.arch-lab .phx-stage.k94-stage,.arch-lab .phx-stage.k94-stage .phx-svg{max-height:none}
.arch-lab .arch-legend svg.k94-ico{width:30px;height:18px;flex:0 0 auto}
.arch-lab .k94-frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1.15;margin:0 2px;font-size:.92em}
.arch-lab .k94-frac>span:first-child{border-bottom:1.5px solid currentColor;padding:0 3px}
.arch-lab .k94-frac>span:last-child{padding:0 3px}
.arch-lab .phx-svg .k94-paper{fill:#f8fbff;stroke:none}
.arch-lab .phx-svg .k94-axis{stroke:#475569;stroke-width:1.4;stroke-dasharray:10 4 2 4}
.arch-lab .phx-svg .k94-focus{fill:#1f2937;stroke:#fff;stroke-width:1}
.arch-lab .phx-svg .k94-lens{fill:#bfe3fb;fill-opacity:.75;stroke:#2b6cb0;stroke-width:1.8}
.arch-lab .phx-svg .k94-lens-hi{fill:none;stroke:#ffffff;stroke-width:3;opacity:.8;stroke-linecap:round}
.arch-lab svg .k94-ray-a{stroke:#1d4ed8;stroke-width:1.4;opacity:.55}
.arch-lab svg .k94-ray-b{stroke:#c2410c;stroke-width:1.4;opacity:.55}
.arch-lab svg .k94-rod{stroke:#334155;stroke-width:5;stroke-linecap:round}
.arch-lab svg .k94-img{stroke:#7c3aed;stroke-width:5;stroke-linecap:round;opacity:.85}
.arch-lab svg .k94-a{fill:#1d4ed8;stroke:#fff;stroke-width:1.2}
.arch-lab svg .k94-b{fill:#c2410c;stroke:#fff;stroke-width:1.2}
.arch-lab .phx-svg .k94-dim{stroke:#475569;stroke-width:1.2}
.arch-lab .phx-svg .k94-t{font-size:13.5px;font-weight:700;fill:#1f2937}
.arch-lab .phx-svg .k94-t-mut{font-size:13px;fill:#5b6b82;font-weight:600}
.arch-lab .phx-svg .k94-t-img{fill:#6d28d9}
.arch-lab .phx-svg .k94-t-g1{fill:#047857}
.arch-lab .phx-svg .k94-t-g2{fill:#7c3aed}
.arch-lab .phx-svg .k94-t-k{fill:#b91c1c}
.arch-lab svg .k94-g1{fill:none;stroke:#047857;stroke-width:3}
.arch-lab svg .k94-g2{fill:none;stroke:#7c3aed;stroke-width:3}
.arch-lab svg .k94-kline{stroke:#dc2626;stroke-width:2;stroke-dasharray:8 5}
.arch-lab .phx-svg .k94-cursor{stroke:#64748b;stroke-width:1.2;stroke-dasharray:3 3}
.arch-lab .phx-svg .k94-pt1{fill:#047857;stroke:#fff;stroke-width:2}
.arch-lab .phx-svg .k94-pt2{fill:#7c3aed;stroke:#fff;stroke-width:2}
.arch-lab .phx-svg .k94-ans{stroke:#b91c1c;stroke-width:1.4;stroke-dasharray:4 3}
.arch-lab .phx-svg .k94-ans-pt{fill:none;stroke:#b91c1c;stroke-width:2.5}
.arch-lab .phx-svg .k94-box{fill:#ffffff;stroke:#c7d2e0;stroke-width:1.2}
.arch-lab .phx-svg .k94-grid{stroke:#e2e8f0;stroke-width:1}

/* Popov Academy — КФУ 2025/26, физика 9 класс, №5 «Шарик в воде и масле» (prefix k95); the stage keeps light paper in both themes. */
.arch-lab .phx-stage.k95-stage,.arch-lab .phx-stage.k95-stage .phx-svg{max-height:none}
.arch-lab .arch-legend svg.k95-ico{width:30px;height:18px;flex:0 0 auto}
.arch-lab .phx-svg .k95-paper{fill:#fbfdff;stroke:none}
.arch-lab svg .k95-water{fill:#93c5fd;fill-opacity:.75;stroke:none}
.arch-lab svg .k95-oil{fill:#fcd34d;fill-opacity:.8;stroke:none}
.arch-lab .phx-svg .k95-iface{stroke:#b45309;stroke-width:1.5;stroke-dasharray:5 3}
.arch-lab .phx-svg .k95-surf{stroke:#92400e;stroke-width:2}
.arch-lab .phx-svg .k95-glass{fill:none;stroke:#475569;stroke-width:3;stroke-linejoin:round}
.arch-lab .phx-svg .k95-glass-hi{stroke:#fff;stroke-width:3;opacity:.7}
.arch-lab .phx-svg .k95-base{fill:#94a3b8;stroke:#475569;stroke-width:1}
.arch-lab .phx-svg .k95-tick{stroke:#475569;stroke-width:1.2}
.arch-lab svg .k95-ball{fill:#e9b872;stroke:#8a5a2b;stroke-width:1.4}
.arch-lab .phx-svg .k95-ball-hi{fill:#fff;opacity:.7;stroke:none}
.arch-lab .phx-svg .k95-pin{stroke:#475569;stroke-width:2.5}
.arch-lab svg .k95-target{stroke:#dc2626;stroke-width:1.8;stroke-dasharray:7 5}
.arch-lab .phx-svg .k95-dim{stroke:#7c3aed;stroke-width:1.6}
.arch-lab svg .k95-v2{fill:none;stroke:#1d4ed8;stroke-width:3;stroke-linejoin:round}
.arch-lab .phx-svg .k95-v2-dot{fill:#1d4ed8;stroke:#fff;stroke-width:1.5}
.arch-lab .phx-svg .k95-cursor{stroke:#64748b;stroke-width:1.2;stroke-dasharray:3 3}
.arch-lab .phx-svg .k95-pt{fill:#c2410c;stroke:#fff;stroke-width:2}
.arch-lab .phx-svg .k95-t{font-size:13.5px;font-weight:700;fill:#1f2937}
.arch-lab .phx-svg .k95-t-mut{font-size:13px;fill:#5b6b82;font-weight:600}
.arch-lab .phx-svg .k95-t-target{fill:#b91c1c}
.arch-lab .phx-svg .k95-t-jump{fill:#6d28d9}
.arch-lab .phx-svg .k95-t-v{fill:#c2410c}
.arch-lab .phx-svg .k95-t-seg{fill:#1d4ed8}
