#app:not([data-author-saved]) [data-saved-label], #app[data-author-saved] [data-locked-label] {display:none}
[data-access-notice]:not([hidden]) {display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.75rem;background:var(--panel-fill);border:1px solid var(--panel-line);border-radius:var(--r-panel)}
[data-access-notice]>span {flex-basis:100%}
body:has([data-access-notice]:not([hidden])) [data-activity] {visibility:hidden}

[data-author-access] dialog { max-width:min(29rem,90vw); color:var(--text); background:var(--float-fill); border:1px solid var(--float-line); border-radius:var(--r-float); box-shadow:var(--float-shadow); padding:1.25rem; }
[data-author-access] dialog::backdrop { background:rgb(0 0 0 / .48); }
[data-author-access] form { display:grid; gap:.75rem; }
[data-author-access] label { display:grid; gap:.3rem; }
[data-author-access] form div { display:flex; flex-wrap:wrap; gap:.4rem; }
/* Spectral token system (ADR-104): one set of components, two themes. A ramp step NN (--n neutral, --a accent, --i info,
 * --w warning, --d danger, --v violet) is the distance from the page background, so a component keeps its meaning in both themes:
 * dark lightness is about NN%, light lightness is 0.99 - (NN-8)/88*0.93. Fonts are local (OFL, public/vendor/fonts): the CSP allows no other origin. */
@font-face {font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(vendor/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face {font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(vendor/fonts/inter-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face {font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:100 900;src:url(vendor/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face {font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:100 900;src:url(vendor/fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {color-scheme:only light;--lang-js:#f7df1e;--lang-js-ink:#111111;--lang-ts:#3178c6;--lang-ts-ink:#ffffff;--blue:#0649f8;--blue-hover:#0037d7;--blue-pale:#ebf1ff;--blue-ink:#ffffff;--accent-text:#0649f8;--ok:#0a7d3b;--ok-ink:#ffffff;--ok-pale:#ecf8f0;--ok-text:#0a6e33;--ok-line:#0a7d3b;--yellow:#ffd900;--yellow-ink:#090e19;--yellow-pale:#fffdf0;--yellow-line:#f4b900;--n-08:#ffffff;--n-10:#fdfdfd;--n-12:#fbfbfc;--n-14:#f8f9fa;--n-16:#f5f6f8;--n-18:#f2f3f5;--n-20:#eff1f3;--n-22:#e4e7eb;--n-24:#d8dee3;--n-26:#d1d7de;--n-28:#cad1d8;--n-30:#c2cad3;--n-32:#bbc4ce;--n-34:#b3bdc8;--n-36:#abb6c2;--n-38:#a3afbb;--n-40:#9ba8b5;--n-44:#8c99a9;--n-46:#8492a2;--n-48:#7c8b9c;--n-52:#707f91;--n-58:#626e7d;--n-62:#58636f;--n-64:#535d68;--n-66:#4e5762;--n-68:#49525b;--n-70:#454c54;--n-72:#40474f;--n-74:#3b4248;--n-76:#373c42;--n-78:#32373c;--n-80:#2d3136;--n-82:#292c30;--n-84:#24272b;--n-86:#1f2225;--n-88:#1a1c1f;--n-90:#151719;--n-92:#101213;--n-94:#0d0e0f;--n-96:#0a0a0b;--a-10:#fcfdfe;--a-12:#f9fafe;--a-14:#f5f7fd;--a-16:#f0f3fc;--a-20:#e8edfa;--a-26:#beccf0;--a-28:#b4c4ee;--a-30:#aabbec;--a-32:#9fb3e9;--a-34:#94aae7;--a-36:#88a1e4;--a-38:#7d98e2;--a-52:#0a49f7;--a-54:#0845ee;--a-60:#063bcc;--a-64:#0635b6;--a-66:#0532ab;--a-68:#052ea0;--a-72:#04288a;--a-74:#042580;--a-76:#042275;--a-78:#031f6b;--a-80:#031c61;--a-84:#02164c;--a-86:#021342;--a-88:#021037;--a-94:#01081b;--a-96:#010614;--i-74:#116173;--i-78:#0e5160;--i-80:#0d4957;--i-82:#0c414d;--i-90:#062228;--i-92:#051a1f;--w-14:#fdfaf4;--w-16:#fcf8f0;--w-18:#fbf5ec;--w-20:#faf3e8;--w-32:#eace9e;--w-36:#e5c387;--w-40:#e0b771;--w-56:#c1892a;--w-60:#ad7b26;--w-62:#a47523;--w-66:#91671f;--w-72:#755419;--w-74:#6c4d17;--w-76:#634716;--w-78:#5b4114;--w-80:#523a11;--w-86:#38280c;--w-88:#2f210a;--d-16:#fdf1ef;--d-18:#fdeceb;--d-34:#f0948a;--d-38:#ee7d71;--d-42:#eb6758;--d-48:#e64533;--d-76:#6c170d;--d-82:#4f110a;--d-86:#3d0d07;--d-90:#290905;--d-92:#1f0704;--d-96:#120402;--v-78:#4b244b;--v-84:#351935;--shadow:#0c14284d}
@media (prefers-color-scheme:dark) {:root:not([data-theme=light]) {--n-08:#111113;--n-10:#18191b;--n-12:#1d1e20;--n-14:#222326;--n-16:#26282b;--n-18:#2b2d31;--n-20:#303236;--n-22:#35373b;--n-24:#3a3c41;--n-26:#3e4146;--n-28:#43464c;--n-30:#484b51;--n-32:#4d5056;--n-34:#51555c;--n-36:#565a61;--n-38:#5b5f67;--n-40:#60646c;--n-44:#686d78;--n-46:#6d727e;--n-48:#727783;--n-52:#7c818d;--n-58:#8c919b;--n-62:#979ba5;--n-64:#9da1aa;--n-66:#a2a6ae;--n-68:#a8abb3;--n-70:#adb0b8;--n-72:#b3b6bd;--n-74:#b8bbc1;--n-76:#bec0c6;--n-78:#c3c5cb;--n-80:#c8cbd0;--n-82:#ced0d4;--n-84:#d3d5d9;--n-86:#d9dade;--n-88:#dee0e3;--n-90:#e4e5e7;--n-92:#e9eaec;--n-94:#efeff1;--n-96:#f4f5f6;--a-10:#0a1229;--a-12:#0c1632;--a-14:#0e193a;--a-16:#101d42;--a-20:#132453;--a-26:#192f6b;--a-28:#1b3374;--a-30:#1d367c;--a-32:#1f3a84;--a-34:#213e8c;--a-36:#234195;--a-38:#25459d;--a-52:#1450f5;--a-54:#1e57f6;--a-60:#3b6df7;--a-64:#4f7cf8;--a-66:#5983f8;--a-68:#628af8;--a-72:#7699f9;--a-74:#80a0fa;--a-76:#89a8fa;--a-78:#93affb;--a-80:#9db6fb;--a-84:#b1c5fc;--a-86:#baccfc;--a-88:#c4d3fd;--a-94:#e2e9fe;--a-96:#ebf0fe;--i-74:#89ddf0;--i-78:#9be3f3;--i-80:#a4e5f4;--i-82:#ade8f5;--i-90:#d2f2f9;--i-92:#dbf5fb;--w-14:#3c2a0b;--w-16:#45300d;--w-18:#4d360f;--w-20:#563c10;--w-32:#89601a;--w-36:#9a6c1d;--w-40:#ab7821;--w-56:#dba343;--w-60:#deab54;--w-62:#e0b05c;--w-66:#e3b86d;--w-72:#e8c587;--w-74:#eac990;--w-76:#ebcd98;--w-78:#edd1a1;--w-80:#efd5a9;--w-86:#f4e2c3;--w-88:#f5e6cc;--d-16:#4a0e07;--d-18:#541008;--d-34:#9e1e10;--d-38:#b02111;--d-42:#c32513;--d-48:#df2a16;--d-76:#f49a90;--d-82:#f7b3ab;--d-86:#f9c4be;--d-90:#fad5d1;--d-92:#fbddda;--d-96:#fdeeec;--v-78:#dcb2dc;--v-84:#e6c7e6;color-scheme:dark;--blue:#2f63f5;--blue-hover:#1f4fd6;--blue-pale:#1b2542;--blue-ink:#ffffff;--accent-text:#86a8ff;--ok:#15803d;--ok-ink:#ffffff;--ok-pale:#11231a;--ok-text:#5fd58f;--ok-line:#2a8a52;--yellow:#ffd900;--yellow-ink:#0b0c0e;--yellow-pale:#24210f;--yellow-line:#9a8200;--shadow:#03080e;--float-fill:var(--n-16)}}
:root[data-theme=dark] {--n-08:#111113;--n-10:#18191b;--n-12:#1d1e20;--n-14:#222326;--n-16:#26282b;--n-18:#2b2d31;--n-20:#303236;--n-22:#35373b;--n-24:#3a3c41;--n-26:#3e4146;--n-28:#43464c;--n-30:#484b51;--n-32:#4d5056;--n-34:#51555c;--n-36:#565a61;--n-38:#5b5f67;--n-40:#60646c;--n-44:#686d78;--n-46:#6d727e;--n-48:#727783;--n-52:#7c818d;--n-58:#8c919b;--n-62:#979ba5;--n-64:#9da1aa;--n-66:#a2a6ae;--n-68:#a8abb3;--n-70:#adb0b8;--n-72:#b3b6bd;--n-74:#b8bbc1;--n-76:#bec0c6;--n-78:#c3c5cb;--n-80:#c8cbd0;--n-82:#ced0d4;--n-84:#d3d5d9;--n-86:#d9dade;--n-88:#dee0e3;--n-90:#e4e5e7;--n-92:#e9eaec;--n-94:#efeff1;--n-96:#f4f5f6;--a-10:#0a1229;--a-12:#0c1632;--a-14:#0e193a;--a-16:#101d42;--a-20:#132453;--a-26:#192f6b;--a-28:#1b3374;--a-30:#1d367c;--a-32:#1f3a84;--a-34:#213e8c;--a-36:#234195;--a-38:#25459d;--a-52:#1450f5;--a-54:#1e57f6;--a-60:#3b6df7;--a-64:#4f7cf8;--a-66:#5983f8;--a-68:#628af8;--a-72:#7699f9;--a-74:#80a0fa;--a-76:#89a8fa;--a-78:#93affb;--a-80:#9db6fb;--a-84:#b1c5fc;--a-86:#baccfc;--a-88:#c4d3fd;--a-94:#e2e9fe;--a-96:#ebf0fe;--i-74:#89ddf0;--i-78:#9be3f3;--i-80:#a4e5f4;--i-82:#ade8f5;--i-90:#d2f2f9;--i-92:#dbf5fb;--w-14:#3c2a0b;--w-16:#45300d;--w-18:#4d360f;--w-20:#563c10;--w-32:#89601a;--w-36:#9a6c1d;--w-40:#ab7821;--w-56:#dba343;--w-60:#deab54;--w-62:#e0b05c;--w-66:#e3b86d;--w-72:#e8c587;--w-74:#eac990;--w-76:#ebcd98;--w-78:#edd1a1;--w-80:#efd5a9;--w-86:#f4e2c3;--w-88:#f5e6cc;--d-16:#4a0e07;--d-18:#541008;--d-34:#9e1e10;--d-38:#b02111;--d-42:#c32513;--d-48:#df2a16;--d-76:#f49a90;--d-82:#f7b3ab;--d-86:#f9c4be;--d-90:#fad5d1;--d-92:#fbddda;--d-96:#fdeeec;--v-78:#dcb2dc;--v-84:#e6c7e6;color-scheme:dark;--blue:#2f63f5;--blue-hover:#1f4fd6;--blue-pale:#1b2542;--blue-ink:#ffffff;--accent-text:#86a8ff;--ok:#15803d;--ok-ink:#ffffff;--ok-pale:#11231a;--ok-text:#5fd58f;--ok-line:#2a8a52;--yellow:#ffd900;--yellow-ink:#0b0c0e;--yellow-pale:#24210f;--yellow-line:#9a8200;--shadow:#03080e;--float-fill:var(--n-16)}
:root {font:14px/1.5 var(--ui);--bg:var(--n-08);--surface:var(--n-12);--raised:var(--n-16);--rail:var(--n-10);--border:var(--n-24);--text:var(--n-92);--muted:var(--n-70);--accent:var(--blue);--accent-ink:var(--blue-ink);--even:var(--n-14);--mono:"JetBrains Mono",ui-monospace,"Cascadia Code",Consolas,monospace;--ui:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;--radius:6px;--row:32px;background:var(--bg);color:var(--text)}
/* ADR-138 (NY-30), ADR-143 (D3): three surfaces, one rule each. The step's frame (.author, .solution-editor) stands on
   the page ground with the panel's line; a panel holds a step's content on the panel ground; an inset sits inside a panel
   (a table, a list, a code listing, a folded detail); a floating surface stands above the page (a menu, a bubble, the
   progress chip). A component sets its own spacing and, where it means something, a 4 px stripe; never its own frame,
   ground or corner. Soft corners, larger the further out the surface stands: the frame 12 px, a panel 10 px, an inset
   8 px, a floating surface 12 px; a field 8 px, a small box (--radius) 6 px. A box whose content reaches its edge clips
   it to the corner itself (overflow:clip, or its own scrolling); the layout gate checks that nothing square stands in a
   rounded corner. The floating fill is white in the light theme and raised grey in the dark one. */
:root {--panel-line:var(--n-28);--panel-fill:var(--surface);--inset-line:var(--n-26);--inset-fill:var(--rail);--float-line:var(--n-36);--float-fill:var(--n-08);--float-shadow:0 12px 30px color-mix(in srgb,var(--shadow) 45%,transparent);
 --r-frame:12px;--r-panel:10px;--r-inset:8px;--r-float:12px;--r-field:8px;
 /* ADR-143 (D4b): type. Nothing to read is under 12 px. Code is 13 px, and 12 px on a narrow screen, where a line must
    hold as much as it did; the card view's 13 px there stays. A button's label is 13 px, 600 (ADR-140). */
 --code-fs:13px}
@media(max-width:650px) {:root {--code-fs:12px}}
:is(.author,.solution-editor) {border:1px solid var(--panel-line);border-radius:var(--r-frame);background:var(--bg)}
:is(.model-overview,.rule-panel,.model-insight,.rule-board,.try-rules,.source-diagnostics,.task-status,.help-topic,.analysis-options,.learner-data) {border:1px solid var(--panel-line);border-radius:var(--r-panel);background:var(--panel-fill)}
:is(.dependency-details,.rule-item,.board-list,.feedback-details,.rule-kinds,.help-code) {border:1px solid var(--inset-line);border-radius:var(--r-inset);background:var(--inset-fill)}
:is(.menu-panel,.activity,.toggletip-panel) {border:1px solid var(--float-line);border-radius:var(--r-float);background:var(--float-fill);box-shadow:var(--float-shadow)}
/* Beside the three surfaces: a notice has the inset's corner, a field its own, and a status is a chip: a flat pill that
   cannot be taken for a button (ADR-143). */
:is(.validation-notice,.draft-notice,.stale-notice,.edit-paused,.notice) {border-radius:var(--r-inset)}
:is(.author,.learner-data,.rule-panel,.menu-panel,.start-row,.help-search) :is(input:not([type=checkbox],[type=radio]),select) {border-radius:var(--r-field)}
:is(.context-label,.rule-badge,.verification-badge,.publish-badge,.mode-badge,.lock-label) {border-radius:999px}
/* Invariant (ADR-104): code is shown exactly as written, so no ligatures (>= stays >=, => stays =>). The font shorthand the
 * components use resets font-feature-settings (CSS Fonts 4), so inheritance cannot carry it; this is the stylesheet's one !important. */
*,::before,::after {font-feature-settings:'liga' 0,'calt' 0 !important}
* {box-sizing:border-box}html,body,#app {width:100%;max-width:none;min-width:0;margin:0}body {overflow-x:clip}#app {min-height:100dvh;background:var(--bg)}
button,input,select,textarea {font:inherit}button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);cursor:pointer;line-height:1.3;font-size:12px;transition:background 120ms,border-color 120ms}
button:hover:not(:disabled) {background:var(--n-20);border-color:var(--n-46)}button:disabled {opacity:.55;cursor:default}button[aria-busy=true],button[aria-busy=true]:disabled {opacity:1;cursor:progress}button[data-busy-shown] .icon {display:none}button[data-busy-shown]::before {content:'';flex-shrink:0;width:14px;height:14px;margin:1.5px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible {outline:3px solid var(--a-68);outline-offset:3px}input,select {accent-color:var(--accent)}[hidden],.author input[hidden] {display:none !important}.icon {width:17px;height:17px;flex-shrink:0;vertical-align:middle}h1,h2,h3,p {margin-top:0}h1 {font-size:27px;line-height:1.25;letter-spacing:-.7px;margin-bottom:10px;color:var(--n-96)}h2 {font-size:20px;line-height:1.3;letter-spacing:-.3px}h3 {font-size:14px}small {font-size:12px}.subtle,.inline-hint {color:var(--muted)}.eyebrow {display:block;color:var(--n-72);letter-spacing:1.6px;font:600 12px var(--mono);text-transform:uppercase}.skip-link {position:fixed;top:8px;left:12px;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;z-index:100;background:var(--accent);color:var(--accent-ink);border-radius:var(--radius)}.skip-link:focus {width:auto;height:auto;clip-path:none;padding:10px 16px}
.draft-notice {color:var(--n-82);background:var(--n-16);border-color:var(--n-32)}
.dirty-dot {height:6px;width:6px;background:var(--w-72);border-radius:50%;display:inline-block}summary {cursor:pointer;color:var(--n-78);list-style-position:inside;min-height:26px;line-height:26px;font-size:12px}summary .icon {width:14px;margin-right:5px}
.panes {display:grid;grid-template-columns:minmax(0,40fr) minmax(0,60fr);gap:18px}.panes>section {min-width:0}.panel-title {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;min-height:38px}.panel-title h2 {font-size:13px;letter-spacing:0;margin:0 0 2px;font-weight:650}.panel-title>div>span {font-size:12px;color:var(--muted)}.pane-clipboard {display:flex;gap:5px}.pane-clipboard {--control-h:var(--control-h-sm)}.pane-clipboard button {background:transparent}.pane-clipboard .icon {width:14px}.ide-pane {min-width:0;background:var(--n-10);border:1px solid var(--n-28);overflow:hidden;box-shadow:0 8px 22px color-mix(in srgb,var(--shadow) 14%,transparent)}.drop-zone {height:clamp(310px,calc(100dvh - 470px),520px);min-height:310px;max-height:540px;overflow:auto;position:relative;contain:layout paint;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:thin;scrollbar-color:var(--n-36) var(--n-10)}.source-zone {padding:8px;background:var(--n-10)}.solution-zone {background:var(--n-10)}.code-row {display:flex;align-items:stretch;position:relative;min-width:0;height:var(--row);transition:transform 85ms ease-out}.source-row {margin-bottom:6px;border:1px solid var(--n-28);border-radius:var(--radius)}.source-row:nth-child(odd) {background:var(--n-16)}.source-row:nth-child(even) {background:var(--n-20)}.solution-row:nth-child(odd) {background:var(--n-10)}.solution-row:nth-child(even) {background:var(--even)}.source-row:hover,.solution-row:hover {background:var(--n-22)}.fixed-row {border-left:2px solid var(--a-54)}/* ADR-227: the dotted mark of an empty place is painted over the row's left edge and takes no room: a border there
 * moved every column of an empty row two pixels to the right of a filled row's. */
.blank-row::before {content:'';position:absolute;z-index:1;inset:0 auto 0 0;border-left:2px dotted var(--n-34);pointer-events:none}.blank-row .code-text::after {content:'Sor beszúrása';font:12px/var(--row) system-ui;color:var(--n-58)}.drag-handle {display:flex;align-items:center;justify-content:center;min-height:0;flex:0 0 28px;width:28px;height:var(--row);padding:0;border:0;border-radius:0;background:transparent;color:var(--n-66);user-select:none;touch-action:none;cursor:grab}.drag-handle .icon {width:14px;height:18px}.drag-handle:disabled {cursor:default;opacity:.75}.drag-handle:active {cursor:grabbing}.drag-handle:focus-visible {outline-offset:-3px}.gutter {display:flex;flex-direction:column;align-items:flex-end;flex:0 0 35px;width:35px;height:var(--row);padding-right:9px;border-right:1px solid var(--n-24);overflow:hidden;background:var(--n-14);color:var(--n-64);font:12px/var(--row) var(--mono);user-select:none}.gutter span {height:var(--row)}.source-row .gutter {flex-basis:28px;width:28px;background:transparent}.code-text {flex:1 0 auto;height:var(--row)}#app .code-text {margin:0;padding:0 9px;white-space:pre;overflow:visible;tab-size:5;color:var(--n-90);font:var(--code-fs)/var(--row) var(--mono);overflow-wrap:normal;word-break:normal}#app .code-text code {white-space:pre;display:inline;overflow-wrap:normal;word-break:normal;background:transparent;border:0;box-shadow:none;padding:0;text-shadow:none;font:inherit}.row-actions {display:flex;align-items:center;gap:3px;padding:3px}.row-actions button {width:24px;height:24px;min-height:24px;padding:0;border-color:transparent;background:var(--n-20);color:var(--n-84)}.row-actions .icon {width:14px;height:14px}.fixed-tag {font-size:12px;line-height:24px;color:var(--a-76);padding:0 4px}.empty {min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;padding:26px;color:var(--n-70)}.empty>.icon {width:32px;height:32px;color:var(--a-60);margin-bottom:4px}.empty strong {font-size:12px;font-weight:550}.empty span {font-size:12px;max-width:220px;line-height:1.7}.drop-zone.over {outline:2px solid var(--accent);outline-offset:-2px}.code-row.drop-shift {transform:translateY(8px)}.code-row.drop-prev {transform:translateY(-8px)}.insert-caret {position:absolute;left:15px;right:9px;height:3px;background:var(--a-66);pointer-events:none;border-radius:3px;box-shadow:0 0 0 1px var(--a-10),0 0 9px var(--a-52);z-index:12}.insert-caret::before {content:'';position:absolute;width:8px;height:8px;left:0;top:-2.5px;border-radius:50%;background:var(--accent)}
.evaluation-bar {display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--border);border-radius:var(--r-panel);overflow:clip;margin-top:23px;padding-top:19px}.report {display:flex;align-items:flex-start;gap:11px;flex:1;min-width:0;padding:12px;border:1px solid transparent;border-radius:var(--radius);font-size:12px}.report b {font-weight:650;color:var(--n-88)}.report p {font-size:12px;color:var(--n-72);margin:4px 0 0;line-height:1.65}.report-symbol {display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:var(--radius);background:var(--n-18);color:var(--n-78)}.report.accepted {background:var(--a-12);border-color:var(--a-30)}.report.accepted b {color:var(--a-74)}.report.accepted .report-symbol {background:var(--a-20);color:var(--a-74)}.report.rejected,.report.invalid_reference {background:var(--n-14);border-color:var(--d-38)}.report.rejected b,.report.invalid_reference b {color:var(--d-86)}.report.indeterminate {background:var(--w-16);border-color:var(--w-32)}.report.indeterminate b {color:var(--w-76)}.technical-details summary {font-size:12px;color:var(--n-70);min-height:22px;line-height:22px}.technical-details span {font:12px var(--mono);color:var(--n-78)}.check-action {display:flex;align-items:center;flex-direction:column;gap:7px}kbd {font:12px var(--mono);padding:1px 4px;border:1px solid var(--n-40);border-radius:3px;color:var(--n-80)}.note {font-size:12px;color:var(--a-84);white-space:pre-wrap;margin:12px 0 0}.note:empty {display:none}.workspace-help {border-top:1px solid var(--border);margin-top:24px;padding-top:12px}.workspace-help p,.formatter-status {font-size:12px;line-height:1.75;color:var(--muted);max-width:900px}.formatter-status {margin:10px 0 5px;font-family:var(--mono)}
.author,.solution-editor {padding:23px}.section-heading {display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.section-heading h2 {margin:7px 0 8px}.section-heading p {font-size:12px;color:var(--n-74);line-height:1.7;max-width:760px;margin:0}.context-label {border:1px solid var(--a-32);background:var(--a-14);color:var(--a-78);padding:4px 10px;font-size:12px;white-space:nowrap}.context-label.pending {border-color:var(--w-36);background:var(--w-16);color:var(--w-80)}.form-grid {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:15px}:is(.author,.learner-data) label {display:block;color:var(--n-82);font-size:12px;font-weight:550;margin:0 0 15px}:is(.author,.learner-data) :is(input,select) {display:block;width:100%;min-width:0;margin-top:6px;background:var(--n-10);color:var(--n-94);border:1px solid var(--n-36);padding:10px 11px;min-height:40px;font-size:13px}.editor-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 10px}.editor-heading h3 {font-size:12px;margin:0}.editor-tools {display:flex;align-items:center;gap:6px;--control-h:var(--control-h-sm)}.editor-tools .icon {width:14px}.editor-frame {display:grid;grid-template-columns:48px minmax(0,1fr);background:var(--n-10);min-height:310px;max-height:650px;overflow:hidden}.editor-gutter {overflow:hidden;color:var(--n-66);background:repeating-linear-gradient(to bottom,var(--n-14) 0 23px,var(--n-16) 23px 46px);background-attachment:local;user-select:none;padding:0 9px 0 0;text-align:right;font:var(--code-fs)/23px var(--mono);white-space:pre;pointer-events:none;height:345px}.editor-gutter span {display:block;height:23px}.editor-frame textarea {display:block;width:100%;background:repeating-linear-gradient(to bottom,var(--n-10) 0 23px,var(--n-14) 23px 46px);background-attachment:local;color:var(--n-92);border:0;outline:0;padding:0 14px;margin:0;min-height:310px;height:345px;max-height:650px;resize:vertical;white-space:pre;tab-size:5;font:var(--code-fs)/23px var(--mono);overflow:auto}.editor-frame:focus-within {outline:2px solid var(--accent);outline-offset:-2px}.editor-frame[data-editor-kind=model] textarea,.editor-frame[data-editor-kind=model] .editor-gutter {height:440px}.editor-actions {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:15px}.editor-actions .primary {margin-left:auto}.editor-actions .inline-hint {max-width:600px;font-size:12px;margin:0}.author-status {color:var(--a-80);font-size:12px;line-height:1.7;white-space:pre-wrap;margin:14px 0 0}.model-overview {display:flex;align-items:center;gap:22px;flex-wrap:wrap;padding:14px 16px;margin-bottom:18px}.model-overview>span {font-size:12px;color:var(--n-78)}.model-overview b {font-size:16px;color:var(--a-88);margin-right:4px}.model-overview p {flex-basis:100%;font-size:12px;color:var(--n-74);margin:0}.dependency-details {margin:18px 0;padding:12px 15px;font-size:12px}.dependency-details summary {color:var(--n-86);font-size:12px;font-weight:550}.dependency-details p {font-size:12px;line-height:1.8;color:var(--n-76);margin:10px 0}.dependency-scroll {overflow:auto;max-height:360px;scrollbar-width:thin}.dependency-details table {border-collapse:collapse;width:100%;text-align:left;min-width:540px}.dependency-details th,.dependency-details td {padding:10px;border-bottom:1px solid var(--n-30);vertical-align:top;font-size:12px}.dependency-details th {font-size:12px;color:var(--n-76);position:sticky;top:0;background:var(--n-14)}.dependency-details code {white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 var(--mono);color:var(--n-90)}
#app .code-text .token {background:transparent;box-shadow:none;text-shadow:none;border:0;padding:0;border-radius:0}:is(#app,.help-page) .token.keyword {color:var(--i-78)}:is(#app,.help-page) .token.string {color:var(--w-72)}:is(#app,.help-page) .token.number,:is(#app,.help-page) .token.boolean {color:var(--v-78)}:is(#app,.help-page) .token.function {color:var(--a-74)}:is(#app,.help-page) .token.operator,:is(#app,.help-page) .token.punctuation {color:var(--n-88)}:is(#app,.help-page) .token.entity {color:var(--a-72)}.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.learner-preview main {width:100%;padding-left:clamp(20px,4vw,70px);padding-right:clamp(20px,4vw,70px)}.loading {min-height:60dvh;display:grid;place-items:center;color:var(--n-82)}
@keyframes spin {to{transform:rotate(360deg)}}
@media(max-width:650px) {h1 {font-size:21px}.panes {grid-template-columns:minmax(0,1fr);gap:16px}.drop-zone {height:auto;min-height:180px;max-height:300px}.source-zone {padding:7px}.empty {min-height:170px}.row-actions {gap:2px;padding:3px 2px}.fixed-tag {font-size:12px;padding:0 3px}.form-grid {grid-template-columns:1fr}.editor-frame {grid-template-columns:35px minmax(0,1fr)}.editor-actions {align-items:stretch;gap:10px}.editor-actions .primary {width:100%;margin-left:0}.model-overview {gap:12px;padding:12px}.model-overview>span {font-size:12px}.model-overview b {font-size:14px}.dependency-details {padding:10px}}
@media(pointer:coarse) {button,summary {min-height:44px}:root {--row:44px}.drag-handle {flex-basis:44px;width:44px;height:44px}.row-actions button {height:36px;min-height:36px;width:32px}.source-row .gutter {width:27px;flex-basis:27px}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {animation:none;transition:none;scroll-behavior:auto}}


@media(max-width:650px) {.source-zone.empty-source {height:112px;min-height:112px}.source-zone.empty-source .empty {min-height:90px;padding:12px;gap:5px}.source-zone.empty-source .empty>.icon {width:22px;height:22px;margin:0}.source-zone.empty-source .empty span {font-size:12px}}
/* Author rule panel (ADR-021): only for the author's own draft, never in learner preview. */
.rule-toggle[aria-pressed=true] {background:var(--a-26);color:var(--a-96)}
.code-row.rule-selected {box-shadow:inset 3px 0 0 var(--accent);background:var(--a-16)}
.code-row.rule-before {box-shadow:inset 3px 0 0 var(--i-74);background:var(--n-18)}
.code-row.rule-after {box-shadow:inset 3px 0 0 var(--w-66);background:var(--w-14)}
.rule-swatch {display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:7px;vertical-align:-1px}.rule-swatch.before {background:var(--i-74)}.rule-swatch.after {background:var(--w-66)}
.rule-hint {display:flex;align-items:center;gap:8px;margin:14px 0 0;color:var(--muted);font-size:12px}
.rule-panel {margin-top:18px;padding:16px 18px}
.rule-panel-heading {display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}.rule-panel-heading h3 {margin:4px 0 8px;font-size:15px}
.rule-panel-tools {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rule-code {margin:0;max-width:100%;overflow-x:auto;padding:8px 10px;border-radius:var(--radius);background:var(--n-10);font:var(--code-fs)/1.6 var(--mono);color:var(--n-90);white-space:pre-wrap;overflow-wrap:anywhere}
.rule-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px}
.rule-column h4 {margin:0 0 8px;font-size:12px;color:var(--n-86)}
.rule-list {list-style:none;margin:0;padding:0;display:grid;gap:8px}
.rule-item {padding:9px 10px;font-size:12px}
.rule-item-main {display:flex;align-items:baseline;gap:8px;min-width:0}.rule-item-main code {font:12px/1.6 var(--mono);color:var(--n-90);overflow-wrap:anywhere;min-width:0}
.rule-jump {min-height:26px;padding:3px 7px;font-weight:700}
.rule-item-meta {display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:6px 0;color:var(--n-76)}.rule-reasons code {font:12px var(--mono);color:var(--n-88)}
.rule-badge {padding:2px 9px;border:1px solid var(--n-38);background:var(--n-18);color:var(--n-90);font-size:12px;font-weight:650}
.editability-hard .rule-badge {border-color:var(--n-38);background:var(--n-18)}.editability-proven .rule-badge {border-color:var(--a-36);background:var(--a-16)}.editability-conservative .rule-badge {border-color:var(--w-40);background:var(--w-18)}.editability-pedagogical .rule-badge {border-color:var(--n-48);background:var(--n-20)}.editability-legacy .rule-badge {border-color:var(--n-44);background:var(--d-18)}
.rule-note {margin:4px 0;padding:5px 8px;border-left:2px solid var(--n-48);color:var(--n-88);white-space:pre-wrap;overflow-wrap:anywhere}
.rule-item-actions {display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}.rule-locked {color:var(--muted);font-size:12px;align-self:center}
.rule-note-editor summary {cursor:pointer;color:var(--n-86);padding:6px 0}.rule-note-editor label,.rule-add label,.rule-confirm label {display:grid;gap:4px;font-size:12px;color:var(--n-76);margin:6px 0}
.rule-panel input,.rule-panel select {width:100%;min-height:34px;padding:6px 8px;border:1px solid var(--border);background:var(--n-10);color:var(--text)}
.rule-add {margin-top:10px;padding:10px;border:1px dashed var(--n-32);border-radius:var(--radius)}
.rule-empty,.rule-legend {color:var(--muted);font-size:12px}.rule-legend {margin:12px 0 10px}
.rule-fixed {display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--n-76)}
.rule-confirm {margin-top:12px;padding:12px;border:1px solid var(--n-44);border-radius:var(--radius);background:var(--n-14);font-size:12px}.rule-confirm p {margin:0 0 6px}
.rule-confirm-actions {display:flex;gap:8px;flex-wrap:wrap}.rule-reset {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}.rule-reset.rule-confirm {display:block}
.rule-effect {margin-top:12px;padding:10px 12px;border:1px solid var(--n-32);border-radius:var(--radius);font-size:12px;color:var(--n-84)}.rule-effect ul {margin:6px 0 0;padding-left:18px}.rule-effect code {display:block;margin-top:4px;font:12px/1.6 var(--mono);overflow-wrap:anywhere}
.rule-status {margin:10px 0 0;font-size:12px;color:var(--n-90)}.rule-status:empty {display:none}
.verification-badge,.publish-badge {padding:4px 10px;font-size:12px;font-weight:700;border:1px solid}
.status-analysis-verified {border-color:var(--a-36);background:var(--a-16);color:var(--a-84)}.status-conservative {border-color:var(--w-40);background:var(--w-18);color:var(--w-80)}.status-author-modified {border-color:var(--n-48);background:var(--n-20);color:var(--i-90)}.status-unverified {border-color:var(--d-48);background:var(--d-18);color:var(--d-90)}
.publish-badge.ok {border-color:var(--a-36);color:var(--a-84)}.publish-badge.blocked {border-color:var(--d-48);color:var(--d-90)}
.model-insight {margin:0 0 18px;padding:14px 16px;font-size:12px}
.insight-heading {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}.insight-heading h3 {margin:0}
.insight-findings {margin:0 0 8px;padding-left:18px;color:var(--n-84)}.insight-block {margin-top:10px}.insight-block h4 {margin:0 0 4px;font-size:12px;color:var(--n-86)}.insight-block ul {margin:0;padding-left:18px;color:var(--n-84)}
.insight-claims {border-collapse:collapse;width:100%;font-size:12px}.insight-claims td,.insight-claims th {padding:6px 8px;border-bottom:1px solid var(--n-30);text-align:left;vertical-align:top}
.basis-refuted {color:var(--d-82)}.basis-checked {color:var(--a-84)}
@media(max-width:850px) {.rule-columns {grid-template-columns:minmax(0,1fr)}}
/* U1 (ADR-022): two modes, three author steps, one active step at a time. */
.author-flow {max-width:1500px;margin:0 auto;width:100%}
.stepper {margin:0 0 18px}.stepper ol {list-style:none;margin:0;padding:0;display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}
.stepper li {display:flex;align-items:center}.step-arrow {color:var(--n-48)}
.step {min-height:52px;padding:8px 14px;gap:10px;justify-content:flex-start;text-align:left}
.step .step-number {display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1px solid var(--a-38);color:var(--a-78);font-weight:700;font-size:12px;flex-shrink:0}
.step-text {display:grid;gap:1px}.step-text b {font-size:13px;color:var(--n-92)}.step-text small {color:var(--muted);font-size:12px}
.step.current {position:relative}.step.current .step-number {background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.step.stale .step-text small {color:var(--w-80)}
.step-panel {margin-top:4px}
.stale-notice {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border-color:var(--w-36);background:var(--w-14)}.stale-notice p {margin:0}.stale-notice div {display:flex;gap:8px;flex-wrap:wrap}
.step-nav {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:22px 0 10px}
.start-row {display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:12px;border:1px dashed var(--n-32);border-radius:var(--radius)}.start-row label {flex:1 1 260px;display:grid;gap:5px;font-size:12px;color:var(--n-76)}
.start-row select {min-height:36px;padding:6px 8px;border:1px solid var(--border);background:var(--n-10);color:var(--text)}
.link-action {margin-top:8px}
.rules-tabs {margin:4px 0 16px;width:max-content}
.rules-layout {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr);gap:18px;align-items:start}
.rules-side {position:sticky;top:12px;max-height:calc(100dvh - 24px);overflow:auto}.rules-side .rule-panel {margin-top:0}.rules-side .rule-hint {margin-top:0}
.rule-board {padding:12px 12px 14px}
.board-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.board-heading h3 {margin:0}
.board-toggle {display:flex;align-items:center;gap:7px;font-size:12px;color:var(--n-76)}
.board-legend {font-size:12px;color:var(--muted);margin:8px 0 10px}.rule-swatch.selected {background:var(--accent)}
.board-connecting {font-size:12px;color:var(--w-80);margin:0 0 8px}
.board-frame {position:relative;padding-left:58px}
.board-arcs {position:absolute;left:0;top:0;width:58px;overflow:visible;pointer-events:none}
.board-list {list-style:none;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--n-36) var(--n-10)}
.board-row {display:flex;align-items:center;min-height:var(--row);border-bottom:1px solid var(--n-16);background:var(--n-10)}.board-row:last-child {border-bottom:0}
.board-row .code-text {flex:1 0 auto}
.board-id {flex:0 0 46px;font:12px var(--mono);color:var(--n-64);text-align:right;padding-right:6px}.board-index {flex:0 0 34px;font:12px var(--mono);color:var(--n-62)}
.board-connect {width:28px;min-width:28px;height:28px;min-height:28px;padding:0;margin:0 4px;border-radius:50%;background:var(--n-16);touch-action:none;cursor:grab}
.board-connect span {width:10px;height:10px;border-radius:50%;border:2px solid var(--i-74)}
.board-connect.link-anchor span,.connect-source .board-connect span {background:var(--accent);border-color:var(--accent)}
.board-connect .icon {width:14px;height:14px}.board-connect.link-none span {background:transparent;border-color:var(--n-62);border-style:dashed}
.board-connect.link-before {background:var(--n-24);border:2px solid var(--i-74);color:var(--i-92)}.board-connect.link-after {background:var(--w-20);border:2px solid var(--w-66);color:var(--w-86)}.board-connect.link-locked {border-style:dashed;cursor:help}
.board-row.connect-target {outline:2px dashed var(--w-66);outline-offset:-2px;background:var(--w-14)}
.board-row.connect-source {background:var(--a-16)}
.board-row.rule-selected {box-shadow:inset 3px 0 0 var(--accent);background:var(--a-16)}.board-row.rule-before {box-shadow:inset 3px 0 0 var(--i-74);background:var(--n-18)}.board-row.rule-after {box-shadow:inset 3px 0 0 var(--w-66);background:var(--w-14)}
.board-row .row-actions button {width:30px;height:28px;min-height:28px}
.pin-toggle {color:var(--n-64);background:transparent}.pin-toggle:hover {color:var(--n-90);background:var(--n-20)}.pin-toggle[aria-pressed=true] {background:var(--a-26);color:var(--a-96)}.pin-toggle[aria-pressed=true] .pin-head,.rule-fixed [aria-pressed=true] .pin-head {fill:currentColor}
.board-row.fixed-row {border-left:0;box-shadow:inset 2px 0 0 var(--a-54)}
.board-status {font-size:12px;color:var(--a-78);margin:0 0 8px;min-height:0}.board-status:empty {display:none}
.arc {fill:none;stroke-width:1.6;opacity:.9}.arc.before {stroke:var(--i-74)}.arc.after {stroke:var(--w-66)}.arc.other {stroke:var(--n-62);opacity:.55}
.arc.other.editability-pedagogical {stroke:var(--i-82);opacity:.85}.arc.other.editability-conservative {stroke:var(--w-62);opacity:.8}.arc.editability-hard {stroke-dasharray:3 3}
.arc-head.before {fill:var(--i-74)}.arc-head.after {fill:var(--w-66)}.arc-head.other {fill:var(--n-62)}
.insight-details {margin-top:18px}.insight-details>summary {cursor:pointer;color:var(--n-86);font-weight:600;margin-bottom:10px}
.learner-shell {grid-template-columns:minmax(0,1fr)}
@media(max-width:1200px) {.rules-layout {grid-template-columns:minmax(0,1fr)}.rules-side {position:static;max-height:none}}
@media(max-width:650px) {.step {min-height:44px;padding:6px 9px}.step-text small {display:none}.step-arrow {display:none}.rules-tabs {width:auto}.board-frame {padding-left:34px}.board-arcs {width:34px}.board-index {display:none}.board-id {flex-basis:36px}}
.board-toggle input {width:16px;height:16px;min-height:0;margin:0;padding:0;flex:0 0 auto}
/* Rules on the Try sorter (ADR-022): author preview only. */
.try-rules {margin:0 0 12px;padding:10px 12px}.try-rules .board-legend {margin:6px 0 0}
.try-rule-panel {margin-top:14px}.try-rule-panel .rule-hint {margin-top:0}
.zone-arcs {position:absolute;left:0;top:0;pointer-events:none;overflow:visible;z-index:2}
.code-row.rule-selected {box-shadow:inset 3px 0 0 var(--accent)}.code-row.connect-target {outline:2px dashed var(--w-66);outline-offset:-2px}.code-row.connect-source {background:var(--a-16)}
.code-row .row-actions .board-connect {width:26px;min-width:26px;height:26px;min-height:26px;border-radius:50%;margin:0}
/* F1 learner feedback (ADR-026): restrained marks on graded rows, a detailed list below the bar. */
/* ADR-158: the band stands on the handle, the row's leftmost part, which is opaque and stays in place while the list scrolls sideways (ADR-090): a band on the row itself was covered by it. A possibly involved row is tinted too. */
.code-row.diag-error {background:var(--d-16)}.code-row.diag-possible {background:var(--w-14)}.code-row.diag-error .drag-handle {box-shadow:inset 3px 0 0 var(--d-76)}.code-row.diag-possible .drag-handle {box-shadow:inset 3px 0 0 var(--w-72)}.code-row.diag-error .gutter span,.code-row.diag-possible .gutter span {color:var(--d-90);font-weight:650}
.code-row.diag-focus {outline:2px solid var(--d-76);outline-offset:-2px}
.feedback-details {margin:10px 0 0;padding:10px 14px;font-size:12px}.feedback-details summary {color:var(--d-92);font-weight:600}
.feedback-list {margin:8px 0 0;padding-left:20px}.feedback-item {margin:0 0 10px;line-height:1.6;color:var(--n-86)}.feedback-item p {margin:2px 0}.feedback-item.severity-notice {color:var(--n-88)}.feedback-item.certainty-general .feedback-summary b {font-weight:600}
.rule-kinds {margin:10px 0;padding:8px 12px}.rule-kinds summary {cursor:pointer;color:var(--n-86);font-weight:600}.rule-kinds .inline-hint {display:block;margin:6px 0 0;font-size:12px;color:var(--n-76)}.rule-kind-list {list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}.rule-kind {display:grid;gap:6px;padding:8px;border:1px solid var(--n-24);border-radius:var(--radius)}.rule-kind-main {display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;color:var(--n-90);overflow-wrap:anywhere}.rule-kind-count {color:var(--n-72);font-size:12px}.rule-kind > button {justify-self:start}.analysis-settings {display:flex;flex-wrap:wrap;gap:6px 16px;align-items:baseline;margin:8px 0;color:var(--n-84);font-size:12px}.analysis-settings b {color:var(--a-78);font-weight:600}.rule-cause {margin:8px 0 2px;padding:8px 10px;border-left:2px solid var(--w-60);background:color-mix(in srgb,var(--w-56) 8%,transparent);color:var(--w-86);overflow-wrap:anywhere}.rule-cause p {margin:2px 0}.rule-cause code {color:var(--w-88)}.rule-meaning {color:var(--n-76)}.feedback-fix {color:var(--a-78)}.feedback-reasons {color:var(--v-84)}.feedback-evidence,.feedback-withheld {color:var(--n-64);font-size:12px}.feedback-item .link-action {margin-top:4px}
/* One horizontal scroll per code list, never one per row (ADR-090). The list's single column is as wide as its widest row, so every row shares the list's scroll; the handle and the line number stay at the left edge and the row controls at the right edge, over the code, with the row's own background. */
.drop-zone,.board-list {display:grid;grid-template-columns:auto;align-content:start}.drop-zone>.code-row,.board-row {min-width:max-content}
.code-row .drag-handle {position:sticky;left:0;z-index:3;background:inherit}.code-row .gutter {position:sticky;left:28px;z-index:3}.source-row .gutter {background:inherit}
.code-row .row-actions,.board-row .row-actions {position:sticky;right:0;z-index:3;margin-left:auto;background:inherit;box-shadow:-12px 0 10px -10px color-mix(in srgb,var(--shadow) 85%,transparent)}
@media(pointer:coarse) {.code-row .gutter {left:44px}}
/* ADR-091: the row controls rest faded and transparent, so the code of a long row shows through them; they come fully forward on hover, on keyboard focus, on a marked row, and always where there is no hover (touch). */
.code-row .row-actions,.board-row .row-actions {background:transparent;box-shadow:none;opacity:.55;transition:opacity 120ms,background-color 120ms}.row-actions button {background:color-mix(in srgb,var(--n-20) 60%,transparent)}
.code-row:is(:hover,:focus-within,.rule-selected,.rule-before,.rule-after,.connect-source,.connect-target,.diag-error,.diag-possible) .row-actions,.board-row:is(:hover,:focus-within,.rule-selected,.rule-before,.rule-after,.connect-source,.connect-target) .row-actions {opacity:1;background:inherit;box-shadow:-12px 0 10px -10px color-mix(in srgb,var(--shadow) 85%,transparent)}
@media(hover:none),(pointer:coarse) {.board-row .row-actions {opacity:1;background:inherit;box-shadow:-12px 0 10px -10px color-mix(in srgb,var(--shadow) 85%,transparent)}}
@media(prefers-reduced-motion:reduce) {.code-row .row-actions,.board-row .row-actions {transition:none}}
.try-rules {padding:8px 12px;margin-bottom:12px}.try-rules .board-legend,.board-legend {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px}.board-legend-keys {display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px}.legend-help summary {cursor:pointer;color:var(--n-80)}.legend-help[open] {flex-basis:100%}.legend-help p {margin:6px 0 0;line-height:1.7}
.blank-row .code-text {position:relative}.blank-row .code-text::before {content:'';position:absolute;inset:5px 10px 5px 6px;border:1px dashed color-mix(in srgb,var(--accent) 38%,var(--n-30));border-radius:var(--radius);pointer-events:none}.blank-row .code-text::after {content:'+  Sor beszúrása';padding-left:10px;font:12px/var(--row) var(--mono);color:var(--a-66)}
.workspace-guidance {padding:6px 12px}.workspace-guidance summary {padding:2px 0}.try-rules .board-heading {margin:0}.try-rules .board-legend {margin:4px 0 0}.try-rules .board-status:empty {display:none}.try-rules p:empty {display:none}
/* ADR-153 (NY-59c): the row's rule icons stand in one column down the list. A fixed row has a tag where the others have
 * their three move buttons; the tag takes exactly their room (it took less, so the icons before it stood further right). */
.solution-row .row-actions {--tool-w:24px;--tool-gap:3px}
.solution-row .fixed-tag {box-sizing:border-box;min-width:calc(3 * var(--tool-w) + 2 * var(--tool-gap));text-align:right;white-space:nowrap}
@media(max-width:650px) {.solution-row .row-actions {--tool-gap:2px}}
@media(pointer:coarse) {.solution-row .row-actions {--tool-w:32px}}
@media(hover:none) {.solution-row .fixed-tag {min-width:0}}
/* ADR-094: the pool has no right padding, so a pinned row control meets the list's edge and no code shows past it. */
.source-zone {padding-right:0}.source-row {margin-right:8px}
@media(max-width:650px) {html {scroll-padding-bottom:150px}.evaluation-bar {position:sticky;bottom:0;z-index:15;max-height:40dvh;overflow:auto;margin-top:12px;box-shadow:0 -12px 24px color-mix(in srgb,var(--shadow) 60%,transparent)}.evaluation-bar .report p {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.panel-title {flex-wrap:wrap}.pane-clipboard {flex-wrap:nowrap}}
/* ADR-095: tap to pick, tap to place. The picked row is outlined; the lists show they take the tap; on small touch screens the up/down buttons give way to it, leaving the code more room. */
.code-row.picked {outline:2px solid var(--accent);outline-offset:-2px;background:var(--a-16)}.drop-zone.tap-target {box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 45%,transparent)}
@media(pointer:coarse) and (max-width:650px) {.row-actions [data-up],.row-actions [data-down] {display:none}}
/* ADR-096: class names in highlighted code keep 4.5:1 on every row background (Prism's own red does not).
 * ADR-157: so do the built-in type names of TypeScript (`number`, `Record`): Prism's own green is 3.4:1 on the light theme. */
:is(#app,.help-page) .token.class-name,:is(#app,.help-page) .token.builtin {color:var(--d-76)}
/* Frame (ADR-105): the mock's character on the ADR-104 tokens. Blue is the selection and the main step forward, yellow the one
 * check action and the language mark. The buttons' shape is the plate's (ADR-143, below, with the button component). */
.header {position:relative;min-height:64px;padding:10px 24px 10px 36px;border-bottom:1px solid var(--border);background:var(--n-08);display:flex;align-items:center;gap:20px}
.header::before {content:'';position:absolute;inset:0 auto 0 0;width:8px;background:var(--blue)}
.brand {display:flex;align-items:center;gap:12px;flex-shrink:0}
.brand-home {display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}
/* ADR-213: the logo is the link to the opening page; the label beside it names the section, and is only the
   dividing line on the opening page itself. */
.brand-home:focus-visible {outline:2px solid var(--blue);outline-offset:4px;border-radius:4px}
.brand small {min-height:16px;display:flex;align-items:center}
.brand small:empty {padding-left:0}
/* ADR-159: the mark is the service in one picture: three code lines on the blue plate, the indented yellow one sliding into
 * its place from the edge (a line is inserted, never swapped). Drawn on a 28-unit grid in em, so the font size is its size;
 * the cut corner is the plate's. public/favicon.svg is the same drawing. */
.brand-mark {--u:calc(1em / 28);flex:none;width:1em;height:1em;font-size:28px;clip-path:polygon(0 0,100% 0,100% 75%,75% 100%,0 100%);background:linear-gradient(var(--blue-ink) 0 0) calc(5 * var(--u)) calc(6 * var(--u))/calc(13 * var(--u)) calc(4 * var(--u)) no-repeat,linear-gradient(var(--yellow) 0 0) calc(10 * var(--u)) calc(12 * var(--u))/calc(18 * var(--u)) calc(4 * var(--u)) no-repeat,linear-gradient(var(--blue-ink) 0 0) calc(5 * var(--u)) calc(18 * var(--u))/calc(8 * var(--u)) calc(4 * var(--u)) no-repeat,var(--blue)}
.brand strong {font-size:20px;font-weight:800;letter-spacing:-.4px;color:var(--n-96)}
.brand small {padding-left:12px;border-left:1px solid var(--n-48);font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--n-66)}
/* ADR-210: the two modes are named buttons, closed to the right beside the session, theme and full-screen controls. */
.mode-tabs {display:flex;flex:0 0 auto;gap:6px;margin:0 0 0 auto}
.mode-tabs button {position:relative;min-width:190px;padding:0 24px}
.header-actions {display:flex;align-items:center;gap:8px;margin-left:auto}
.mode-tabs+.header-actions {margin-left:0}
.icon-only {padding:0;width:var(--control-h);min-width:var(--control-h)}.icon-only>span:empty {display:none}
.preview-toggle {color:var(--accent-text)}
/* Buttons: square, a clear border; the hover is the mock's blue outline. */
button {border-radius:var(--radius);border-color:var(--n-36)}
button:hover:not(:disabled) {background:var(--blue-pale);border-color:var(--blue);color:var(--accent-text)}
.primary.check {min-width:150px}
/* Menus: a summary that looks like a button, a panel below it. */
.menu {position:relative}
.menu>summary {border:1px solid var(--n-36);color:var(--text);list-style:none;cursor:pointer}
.menu>summary::-webkit-details-marker {display:none}
.menu>summary .icon {width:17px;margin:0}
.menu>summary:hover,.menu[open]>summary {background:var(--blue-pale);border-color:var(--blue);color:var(--accent-text)}
.menu-panel {position:absolute;right:0;top:calc(100% + 6px);z-index:40;display:grid;gap:2px;min-width:250px;padding:8px}
.menu-panel button {justify-content:flex-start;border-color:transparent;background:transparent;width:100%}
.menu-panel label {display:grid;gap:4px;margin:0 0 4px;font-size:12px;font-weight:600;color:var(--muted)}
.menu-panel select {min-height:34px;padding:5px 8px;border:1px solid var(--n-36);background:var(--n-08);color:var(--text);font-size:12px}
.menu-panel small {padding:6px 8px 2px;color:var(--muted);line-height:1.6}
.menu-link {padding:8px 11px;font-size:12px;color:var(--accent-text)}
/* Shell: the author works in one centred column; practice has the task list beside it. */
.shell {display:block;min-height:calc(100dvh - 64px);background:none}
.practice-shell {display:grid;grid-template-columns:268px minmax(0,1fr)}
main {min-width:0;padding:24px 30px 28px;scroll-margin-top:15px}
.author-flow,.learner-shell main {max-width:1500px;margin:0 auto;width:100%}
/* NY-43: the rail is as long as the page beside it; the list in it stays on the screen and scrolls in itself. A height
   that counted with the header left the rail short of the screen's end once the header had scrolled away. */
.library {align-self:stretch;border-right:1px solid var(--border);background:var(--rail);min-width:0}
.library>.task-picker {position:sticky;top:0;max-height:100dvh;overflow:auto;scrollbar-width:thin;padding:20px 14px}
.task-picker>summary {display:flex;align-items:baseline;gap:8px;margin:0 6px 14px;font-size:12px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--n-70);list-style:none;cursor:pointer}
.task-picker>summary::-webkit-details-marker {display:none}
.task-picker>summary b {display:none}
.field-group {margin-bottom:18px}
/* ADR-154 (G3): the curriculum tree of the practice list. A branch is a row that opens and closes: a topic, and under
 * it its modules. Its arrow turns when it is open; the number at its end is the exercises under it. */
.tree-branch.depth-1 {margin-bottom:8px}
.tree-heading {margin:0;font:inherit}
.branch {display:flex;width:100%;justify-content:flex-start;gap:8px;min-height:34px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:13px;font-weight:700;text-align:left}
.depth-2>.tree-heading .branch {min-height:32px;padding-left:20px;font-size:12px;font-weight:650;color:var(--n-70)}
.branch:hover:not(:disabled) {background:var(--n-20)}
.branch::before {content:'';flex-shrink:0;width:6px;height:6px;margin:0 2px;border-right:2px solid var(--n-70);border-bottom:2px solid var(--n-70);transform:rotate(-45deg);transition:transform 120ms}
.branch[aria-expanded=true]::before {transform:rotate(45deg)}
.branch-title {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.branch-count {margin-left:auto;padding:0 6px;background:var(--n-20);color:var(--n-84);font-size:12px;font-weight:650}
/* NY-60: an exercise stands 14 px in under its branch; with 20 px the level did not fit beside two labels. */
.depth-2 .task {padding-left:14px}
.tree-branch.depth-1>.tree-body>.task {padding-left:14px}
@media(prefers-reduced-motion:reduce) {.branch::before {transition:none}}
@media(pointer:coarse) {.branch,.depth-2>.tree-heading .branch {min-height:44px}}
.side-title {display:flex;align-items:center;justify-content:space-between;margin:0 6px 6px;font-size:12px;font-weight:650;color:var(--n-70)}
.side-title span {padding:0 6px;background:var(--n-20);color:var(--n-84)}
.task {display:flex;width:100%;align-items:center;justify-content:flex-start;gap:10px;text-align:left;min-height:46px;padding:7px 8px;margin:0 0 2px;border:0;border-left:3px solid transparent;border-radius:0 var(--radius) var(--radius) 0;background:transparent}
.task:hover:not(:disabled) {background:var(--n-16);color:var(--text)}
.task.selected {border-left-color:var(--blue);background:var(--blue-pale)}
/* NY-60 (ADR-154): the open exercise's arrow stands beside its title, out of the row's flow, so the label line under
 * the title is as wide in the open item as in the others (in the flow it took 24 px of it). */
.task {position:relative}
.task .icon {position:absolute;top:10px;right:8px;width:14px;margin:0;color:var(--accent-text)}
.task.selected .task-content strong {padding-right:20px}
.task-file {flex-shrink:0;display:grid;place-items:center;width:26px;height:24px;font:700 12px var(--mono)}
/* NY-48: a language badge wears its language's own colours on every surface and in both themes: JavaScript yellow,
   TypeScript blue. What is selected is told by the row, not by the badge. */
:is(.task-file,.language-badge).js {background:var(--lang-js);color:var(--lang-js-ink)}
:is(.task-file,.language-badge).ts {background:var(--lang-ts);color:var(--lang-ts-ink)}
.task-content {min-width:0}
.task-content strong {display:block;font-size:12px;font-weight:600;line-height:1.4}
.task small {display:block;font-size:12px;color:var(--n-68);margin-top:2px}
/* ADR-152 (G2): technology labels. A chip names a version (`TS 2.0`, `ES2018`) with the language's colour as its line.
 * ADR-200: the filter above the list is one selector; it is also the list's summary (every label with the number of
 * exercises under it). */
.task small:has(.tech-chip) {display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.tech-chip {display:inline-flex;align-items:center;height:18px;padding:0 6px;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--text);font:600 12px/1 var(--mono);white-space:nowrap}
.tech-chip.typescript {border-color:color-mix(in srgb,var(--lang-ts) 60%,var(--border))}
.tech-chip.ecmascript {border-color:color-mix(in srgb,var(--lang-js) 75%,var(--border))}
/* ADR-208: a library's chip, in the accent colour (a third family beside the two languages). */
.tech-chip.rxjs {border-color:color-mix(in srgb,var(--accent) 60%,var(--border))}
.tech-filter {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0 6px 16px}
/* ADR-200: one selector instead of a chip for every version: two rows of the list's column, whatever the list holds. */
.tech-select {display:grid;gap:2px;font-size:12px;font-weight:650;color:var(--n-70)}
.tech-select-head {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px}
.tech-select select {width:100%;min-height:36px;padding:6px 8px;border:1px solid var(--n-36);border-radius:var(--r-field);background:var(--bg);color:var(--text);font:600 12px var(--ui)}
.tech-earlier {display:flex;align-items:center;gap:8px;min-height:24px;font-size:12px;color:var(--muted)}
@media(pointer:coarse) {.tech-select select {min-height:44px}.tech-earlier {min-height:44px}}
.tech-note {color:var(--muted)}
/* Heading: the title, then one line of facts (language, rows, what validates). */
.task-heading {margin:0 0 16px}
.task-heading h1 {margin:0 0 6px;font-size:24px;font-weight:800;letter-spacing:-.5px;color:var(--n-96);overflow-wrap:anywhere}
.task-meta {display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:0;font-size:12px;color:var(--muted)}
.language-badge {display:inline-grid;place-items:center;min-width:28px;height:22px;padding:0 5px;font:800 12px var(--mono)}
.mode-badge {display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border:1px solid var(--a-30);background:var(--blue-pale);color:var(--accent-text);font:600 12px var(--mono);letter-spacing:.4px}
.status-dot {width:6px;height:6px;background:var(--blue)}
.description {margin:8px 0 0;max-width:820px;font-size:13px;line-height:1.6;color:var(--n-76)}
/* ADR-163: the description standard's parts, each under its label; on a narrow screen the label stands above its text. */
.brief {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:3px 12px;max-width:860px;margin:10px 0 0}
.brief-part {display:contents}
.brief dt {font-size:12px;font-weight:650;line-height:1.75;color:var(--n-88);white-space:nowrap}
.brief dd {margin:0;font-size:13px;line-height:1.6;color:var(--n-76)}
/* Folded (a narrow screen, a low window): the first part and „Részletek” share a row; opened, the other parts stand under it. */
.brief-fold {display:flex;flex-wrap:wrap;align-items:baseline;gap:0 14px;max-width:860px;margin:10px 0 0}
.brief-fold>.brief {flex:1 1 0;min-width:0;margin:0}
.brief-more {flex:none}.brief-more[open] {flex-basis:100%;margin-top:4px}
.brief-more>summary {font-size:12px;font-weight:600;line-height:1.75;color:var(--accent-text);cursor:pointer}.brief-more .brief {margin-top:2px}
@media(max-width:650px) {.brief {grid-template-columns:minmax(0,1fr);gap:0}.brief dt {margin-top:6px}.brief .brief-part:first-child dt {margin-top:0}.brief-fold>.brief {flex-basis:100%}.brief-more {margin-top:2px}}
.task-heading .link-action {margin-top:8px}
.validation-notice {display:flex;align-items:center;gap:12px}.validation-notice>span {flex:1;min-width:0}.notice-dismiss {flex:none;min-height:30px;padding:0 10px;font-size:12px}
.validation-notice,.draft-notice {margin:0 0 14px;padding:8px 12px;border:1px solid var(--yellow-line);border-left:4px solid var(--yellow);background:var(--yellow-pale);color:var(--n-86);font-size:12px;line-height:1.6}
.draft-notice {border-color:var(--n-32);border-left-color:var(--n-48);background:var(--n-14)}
/* Stepper: three grey steps; the current one is blue with the cut corner. */
.stepper {margin:0 0 20px}
.stepper ol {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.stepper li {display:flex;min-width:0}
.stepper .step {--plate-h:58px;width:100%;min-height:58px;padding:6px 18px;gap:12px;justify-content:flex-start;text-align:left}
.stepper .step .step-number {display:grid;place-items:center;width:auto;min-width:24px;height:auto;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:800 17px var(--mono);letter-spacing:-.06em}
.step-number .icon {width:18px;height:18px;color:var(--accent-text)}
.step-text {display:grid;gap:0}
.step-text b {font-size:14px;font-weight:750}
.step-text small {font-size:12px;color:inherit;opacity:.8}
.step.stale .step-text small {color:var(--w-80);opacity:1}
/* Section bar: the step's title with the mock's blue square, its controls on the right. */
.section-bar {display:flex;align-items:center;justify-content:space-between;gap:12px 18px;flex-wrap:wrap;margin:0 0 16px}
.section-bar h2,.solution-editor .editor-heading :is(h2,h3) {display:flex;align-items:center;gap:12px;margin:0;font-size:18px;font-weight:800;letter-spacing:-.2px}
.section-bar h2::before {content:'';width:12px;height:12px;background:var(--blue);flex:none}
.section-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.author,.solution-editor {padding:22px}
.form-grid {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:0 14px}
.form-grid .span-2 {grid-column:1}.form-grid .span-all {grid-column:1/-1}
:is(.author,.learner-data) label {margin:0 0 14px}
:is(.author,.learner-data) :is(input,select) {border-color:var(--n-36);background:var(--n-08);min-height:38px;padding:8px 10px}
.analysis-options {margin:0 0 4px}
.analysis-options>summary {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;padding:9px 12px;min-height:0;line-height:1.5;font-size:12px;color:var(--text)}
.analysis-options>summary span {color:var(--muted);font-size:12px}
.options-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;padding:12px 12px 0;border-top:1px solid var(--border)}
.options-grid small {display:block;margin-top:5px;font-weight:400;line-height:1.6}
.editor-heading {display:flex;align-items:center;gap:10px;margin:18px 0 8px}
.editor-heading h3 {font-size:13px;margin:0}
.editor-heading .editor-tools {margin-left:auto}
.solution-editor .editor-heading {margin-top:0}
/* The reference's one text action stays visible among the quiet icon tools (it had vanished as a bare icon). */
.ide-pane {border-radius:var(--r-panel);box-shadow:none;border:1px solid var(--n-32)}
.panel-title+.ide-pane {border-start-start-radius:0;border-start-end-radius:0}
.step-nav {margin:18px 0 6px}
/* Try: one toolbar row, two panes with a blue and a yellow tick, the check bar below. */
/* ADR-146: the tools and the panels they work on are one frame: the tool strip on top, under it the lists and, on
   request, the rule panel, parted by separators the reader moves. The panels are docks of the frame, not cards. */
.workspace {border:1px solid var(--n-32);border-radius:var(--r-frame);background:var(--n-10);overflow:clip}
.toolbar {display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin:0;padding:8px 10px;border-bottom:1px solid var(--n-24)}
.workspace .panel-title {border:0;border-bottom:1px solid var(--n-24);border-radius:0}
.workspace .panes .ide-pane {border:0;border-radius:0}
.workspace .solution-editor {padding:12px}
.workspace .board-connecting {margin:0;padding:6px 12px;border-bottom:1px solid var(--n-24)}
.toolbar-start {display:flex;align-items:center;gap:12px;min-width:0}
.workspace-actions {display:flex;gap:8px;flex-wrap:wrap;flex:1 1 auto;min-width:0}
/* What changes the attempt stands on the left, what changes the view on the right. */
.workspace-actions>.inspector-toggle,.workspace-actions:not(:has(>.inspector-toggle))>.focus-toggle {margin-left:auto}
.workspace-actions>button {background:var(--n-08);color:var(--n-84)}
/* The list title's coloured stripe (5 x 20 px) ends in a rounded foot: a quarter disc under the bar, its free corner curved. */
/* ADR-153 (NY-59b): the stripe's rounded foot is a layer of its own, and it starts one pixel under the bar's end: the
 * bar covers that pixel. Laid edge to edge the two were smoothed apart on a 125% screen, a pale line across the stripe. */
.panel-title {display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;margin:0;padding:0 6px 0 14px;border:1px solid var(--n-32);border-bottom:0;border-radius:var(--r-panel) var(--r-panel) 0 0;background:radial-gradient(circle at 0 1px,var(--stripe,var(--blue)) 4.5px,transparent 5px) 0 14px/5px 6px no-repeat,linear-gradient(var(--stripe,var(--blue)),var(--stripe,var(--blue))) 0 0/5px 15px no-repeat var(--n-14)}
.panel-title>div {display:flex;align-items:center;gap:10px;min-width:0}
.panel-title :is(h2,h3) {margin:0;font-size:13px;font-weight:800}
.answer-pane .panel-title {--stripe:var(--yellow)}
.panel-title .count {font:600 12px var(--mono);color:var(--n-70);padding:0;border:0;background:none}
.panel-title progress {width:72px;height:4px;border:0;background:var(--n-24);overflow:hidden}
.panel-title progress::-webkit-progress-bar {background:var(--n-24)}
.panel-title progress::-webkit-progress-value {background:var(--blue)}
.panel-title progress::-moz-progress-bar {background:var(--blue)}
.pane-clipboard {display:flex;gap:2px}
.pane-clipboard button {width:var(--control-h);min-width:var(--control-h);padding:0;border-color:transparent;background:transparent}
/* ADR-139, ADR-144 (NY-38): side by side, the lists end above the sticky result bar with the page at its top. Where
   they start and how high the bar is are measured (list-fit.ts publishes --lists-top and --result-bar on the app root),
   because both differ from view to view and the bar grows with a result; the 16 px is the bar's own margin and the
   pane's line. Before the first measurement the old constant stands (322 + 62 + 16 = 400 px). Under 180 px of room the
   lists keep 180 px and the page scrolls. Stacked lists (a narrow screen) cannot both stand on the first screen: they
   keep the constant. */
.drop-zone {height:clamp(180px,calc(100dvh - var(--lists-top,322px) - var(--result-bar,62px) - 16px),640px);min-height:180px;max-height:640px}
@media(max-width:650px) {.drop-zone {height:clamp(320px,calc(100dvh - 400px),640px)}}
/* ADR-139: the result bar sticks to the bottom at every width, as a step's action bar does (it stuck only on a phone). */
.evaluation-bar {position:sticky;bottom:0;z-index:15;margin-top:14px;padding:0;border:1px solid var(--panel-line);background:var(--panel-fill);align-items:stretch;gap:0}
.evaluation-bar .report {padding:10px 14px 10px 0;border:0;background:transparent;align-items:center;border-radius:0}
/* ADR-160: the bar is a plain panel until there is a result; only a result has a colour (green, red, amber). */
.report-symbol,.evaluation-bar .report-symbol {align-self:stretch;width:46px;flex:0 0 46px;height:auto;min-height:44px;margin:-10px 0;border:0;border-right:1px solid var(--panel-line);border-radius:0;background:var(--n-20);color:var(--muted)}
.report:is(.accepted,.rejected,.invalid_reference,.indeterminate,.unfinished) .report-symbol {border-right:0}
/* Accepted is green in both themes (ADR-105): the one success colour, never a selection or a step. */
.evaluation-bar:has(.report.accepted) {border-color:var(--ok-line);background:var(--ok-pale)}
.report.accepted .report-symbol {background:var(--ok);color:var(--ok-ink)}
.report.accepted b {color:var(--ok-text)}
.evaluation-bar:has(.report.rejected),.evaluation-bar:has(.report.invalid_reference) {border-color:var(--d-48);background:var(--d-16)}
.report.rejected .report-symbol,.report.invalid_reference .report-symbol {background:var(--d-48);color:#fff}
.evaluation-bar:has(.report.indeterminate) {border-color:var(--w-56);background:var(--w-14)}
.report.indeterminate .report-symbol {background:var(--w-56);color:var(--yellow-ink)}
/* ADR-205: a partial solution whose rows are fine so far is neither success nor error: the accent colour. */
.evaluation-bar:has(.report.unfinished) {border-color:var(--accent);background:var(--a-12)}
.report.unfinished .report-symbol {background:var(--accent);color:var(--accent-ink)}
.report.rejected,.report.invalid_reference,.report.indeterminate,.report.accepted,.report.unfinished {background:transparent;border-color:transparent}
.check-action {justify-content:center;padding:8px 10px}
.workspace-help {margin-top:22px;padding-top:10px;border-top:1px solid var(--border)}
.help-body p {margin:6px 0;font-size:12px;line-height:1.7;color:var(--muted);max-width:900px}
.formatter-status {font-family:var(--mono);font-size:12px}
@media(max-width:1200px) {main {padding:22px 20px}.header {padding-left:30px;gap:14px}.mode-tabs button {min-width:150px;padding:0 16px}.practice-shell {grid-template-columns:232px minmax(0,1fr)}.menu>summary {--plate-cut:0}.menu>summary span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.menu>summary {width:var(--control-h);padding:0;justify-content:center}}
/* ADR-116: a phone on its side (740–930 × 340–430) takes the narrow layout too; the block after the last rule keeps it to one row per bar. */
@media(max-width:850px),(max-height:500px) and (orientation:landscape) {
 .header {flex-wrap:wrap;padding:8px 14px 8px 22px;gap:8px 10px}.header::before {width:5px}
 .mode-tabs button {min-width:0}
 .practice-shell {display:block}
 .library {border-right:0;border-bottom:1px solid var(--border)}.library>.task-picker {position:static;max-height:none;overflow:visible;padding:0}
 .task-picker>summary {margin:0;padding:12px 16px;font-size:12px;align-items:center}
 .task-picker>summary::after {content:'▾';margin-left:auto;font-size:13px;color:var(--n-70)}
 .task-picker[open]>summary::after {content:'▴'}
 .task-picker>summary b {display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;letter-spacing:0;text-transform:none;color:var(--text)}
 .task-picker nav {padding:0 10px 12px;max-height:60dvh;overflow:auto}
 .form-grid {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.form-grid .span-2 {grid-column:1/-1}
 .options-grid {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:650px) {
 main,.learner-preview main {padding:16px 12px 20px}
 .task-heading h1 {font-size:20px}
 .task-heading {margin-bottom:12px}
 .stepper {margin-bottom:14px}.stepper ol {gap:4px}.stepper .step {--plate-h:42px;min-height:42px;padding:4px 8px;gap:6px}.step-number {display:none}.step-text b {font-size:12px}
 .author,.solution-editor {padding:14px}
 .section-bar h2 {font-size:16px}
 .toolbar {gap:8px}

 .check-action {padding:8px}.check-action .primary {width:100%}
 .evaluation-bar {flex-direction:column}.evaluation-bar .report {padding:8px 12px 8px 0}
 .editor-heading {flex-wrap:wrap}
}
.author .board-toggle {display:flex;align-items:center;gap:8px;margin:0}.author .board-toggle input {display:inline-block;width:16px;min-height:0;height:16px;margin:0;padding:0}
@media(max-width:650px) {.toolbar {flex-wrap:wrap}.toolbar-start {display:contents}.toolbar-start .try-tabs {display:flex;flex:1 0 100%;width:100%}.toolbar-start .try-tabs button {flex:1}.toolbar-start .code-view-switch {flex:0 0 auto;width:auto;margin-left:0}.toolbar {padding:6px;gap:6px}.workspace-actions {flex-wrap:nowrap;gap:6px}.workspace-actions>button,.code-view-switch button {flex:0 0 auto;width:var(--control-h);padding:0;--plate-cut:0}.workspace-actions>button>span,.code-view-switch button>span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
.eyebrow {font:700 12px var(--ui);letter-spacing:.4px;text-transform:none;color:var(--n-74)}
.try-rules {padding:8px 12px}.try-rules .board-heading {align-items:center}
@media(max-width:650px) {.header-actions .preview-toggle {width:38px;min-width:38px;padding:0;--plate-cut:0}.header-actions .preview-toggle>span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.brand strong {font-size:18px}}
.brand-tail {color:var(--accent-text)}
@media(max-width:400px) {.brand strong {font-size:16px}.brand,.brand-home {gap:8px}.header-actions {gap:5px}}
@media(max-width:400px) {:is(.header-actions,.mode-tabs) {--control-h:34px}.header-actions .menu-panel {--control-h:44px}.icon-only,.menu>summary,.header-actions .preview-toggle {width:var(--control-h);min-width:var(--control-h)}.mode-tabs button {padding:0 8px}}

/* Surfaces (ADR-106): on the full screen the root scrolls itself, since the page no longer scrolls it.
 * Focus keeps only the code workspace: a one-line heading (title, language, what validates), the
 * toolbar, the lists or the editor at the largest height, and the check bar. */
#app[data-surface] {position:fixed;inset:0;z-index:1000;height:100dvh;overflow:auto;overscroll-behavior:contain}
#app:fullscreen {overflow:auto}
#app[data-surface=focus] :is(.header,.library,.stepper,.workspace-help,.step-nav,.task-heading .link-action) {display:none}
/* ADR-198: on the focus surface the description opens from one button of the heading, in a panel over the code: the
   panel hangs from the heading (not from the button), so it has the heading's width on a phone too. */
#app[data-surface=focus] .task-heading {position:relative}
.brief-menu {position:static;flex:none;--control-h:var(--control-h-sm);margin-block:-2px}
/* The button costs the heading no height: it is a small control whose 2 px above and below the heading's line hang
   over it, and the title gives way before the facts do. */
#app[data-surface=focus] .task-heading h1 {flex:0 100 auto}
.brief-menu>.brief-panel {left:0;right:auto;top:calc(100% + 4px);width:min(720px,100%);max-height:60dvh;overflow:auto;padding:12px 14px;box-sizing:border-box}
.brief-panel>:is(.brief,.description) {margin:0;max-width:none}
#app[data-surface=focus] .practice-shell {display:block}
#app[data-surface=focus] main,#app[data-surface=focus] .author-flow {max-width:none;padding:10px 16px 12px}
#app[data-surface=focus] .task-heading {display:flex;align-items:center;gap:8px 14px;margin:0 0 10px;min-width:0}
#app[data-surface=focus] .task-heading h1 {min-width:0;margin:0;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app[data-surface=focus] .task-meta {flex-wrap:nowrap}
#app[data-surface=focus] .solution-editor {padding:12px}

/* Code views (ADR-106): editor, a dense continuous list; cards, separate tiles with large targets.
 * :where keeps them structural, so row states (selected, graded, picked) still decide the colours. */
@media(pointer:fine) {:where(#app[data-code-view=editor]) .panes {--row:28px}:where(#app[data-code-view=cards]) .panes {--row:40px}}
:where(#app[data-code-view=editor]) .source-zone {padding:0}
:where(#app[data-code-view=editor]) .source-row {margin:0;border:0;border-bottom:1px solid var(--n-18);border-radius:0}
:where(#app[data-code-view=cards]) .drop-zone {padding:8px}
:where(#app[data-code-view=cards]) .code-row {margin:0 0 6px;border:1px solid var(--n-28);border-radius:var(--radius)}
:where(#app[data-code-view=cards]) .fixed-row {border-left:3px solid var(--a-54)}
:where(#app[data-code-view=cards]) .blank-row {border:1px dashed var(--n-36)}
:where(#app[data-code-view=cards]) .blank-row .code-text::before,:where(#app[data-code-view=cards]) .blank-row::before {display:none}
#app[data-code-view=cards] .code-text {font-size:13px}
/* A card is a rounded row with its own line: it is as high inside as a row (so the handle keeps its 44 px touch target
   and nothing stands on the line), and its first part follows its corner. The line used to take 2 px from the inside,
   and the handle and the number column stood out of the card at its bottom and its corners. */
:where(#app[data-code-view=cards]) .code-row {height:calc(var(--row) + 2px)}
:where(#app[data-code-view=cards]) .code-row>:first-child {border-radius:calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px)}
.code-view-switch {margin-left:4px}
.stepper .step.current :is(.step-text b,.step-text small,.step-number,.step-index) {color:var(--blue-ink)}
/* Lists and separator (ADR-107): the pool takes --split of the width, the solution the rest; the separator
 * is a 12 px target with a 2 px line, wider on hover, focus and drag. One column on a phone. */
.panes {grid-template-columns:minmax(0,var(--split,40%)) 12px minmax(0,1fr);gap:0}
.pane-split {position:relative;cursor:col-resize;touch-action:none;outline-offset:-2px}
.pane-split::before {content:'';position:absolute;top:0;bottom:0;left:5px;width:2px;background:var(--n-24);transition:background 120ms,left 120ms,width 120ms}
.pane-split:hover::before,.pane-split:focus-visible::before,.pane-split.dragging::before {left:4px;width:4px;background:var(--blue)}
@media(max-width:650px) {.panes {grid-template-columns:minmax(0,1fr)}.pane-split {display:none}.workspace .answer-pane {border-top:1px solid var(--n-24)}}
/* Rule inspector (ADR-107): opened by its toolbar button only. Wide, it docks to the right of the lists
 * (a secondary side bar); narrow, it slides over from the right as a sheet. Escape or × closes it. */
.try-body {display:grid;grid-template-columns:minmax(0,1fr);min-height:0}
.try-body.with-inspector {grid-template-columns:minmax(0,1fr) 12px minmax(280px,var(--rules-split,28%))}
/* Docked, the rule panel is as high as the lists and scrolls in itself: its own content does not size the frame. */
.rule-inspector {min-width:0;display:flex;flex-direction:column;background:var(--n-08);align-self:stretch;contain:size;container:rule-inspector/inline-size;overflow:auto;overscroll-behavior:contain}
.inspector-head {position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:0 4px 0 14px;border-bottom:1px solid var(--n-24);background:var(--n-14)}
.inspector-head :is(h2,h3) {display:flex;align-items:center;gap:8px;margin:0;font-size:13px;font-weight:800}
.inspector-head :is(h2,h3) .icon {width:15px;color:var(--accent-text)}
.inspector-head button {border-color:transparent;background:transparent}
.rule-inspector .try-rules {margin:0;padding:10px 14px;border:0;border-bottom:1px solid var(--n-20);background:transparent}
.rule-inspector .try-rule-panel {margin:0;padding:12px 14px}
.rule-inspector .rule-panel {margin:0;padding:0;border:0;background:transparent}
.rule-inspector .rule-columns {grid-template-columns:minmax(0,1fr)}
/* NY-47: the panel's own width decides, not the screen's: the reader sets it with the separator (ADR-146). */
@container rule-inspector (min-width:560px) {.rule-inspector .rule-columns {grid-template-columns:repeat(2,minmax(0,1fr))}}

.board-connecting {margin:0 0 8px}
@media(max-width:1100px) {
 .try-body.with-inspector {grid-template-columns:minmax(0,1fr)}
 .rules-split {display:none}
 .rule-inspector {position:fixed;top:0;right:0;bottom:0;z-index:1100;contain:none;border:1px solid var(--n-32);width:min(400px,100vw);box-shadow:-16px 0 40px color-mix(in srgb,var(--shadow) 55%,transparent)}
}
/* Focus (ADR-107): the workspace is one flex column of the screen's height, like an editor window. The
 * heading, toolbar and check bar take their own height; the lists or the editor take the rest and scroll
 * inside; whatever opens (feedback, details) shrinks them, never the page. */
#app[data-surface=focus] {display:flex;flex-direction:column;overflow:hidden}
/* ADR-110: focus keeps a slim bar with the logo, smaller than the page header. */
.focus-bar {display:none}
#app[data-surface=focus] .focus-bar {display:flex;flex:none;align-items:center;gap:8px;height:32px;padding:0 12px;border-bottom:1px solid var(--border);background:var(--n-10);font-size:13px}
#app[data-surface=focus] .focus-bar .brand-mark {font-size:18px}
#app[data-surface=focus] .shell {flex:1;min-height:0;display:flex;flex-direction:column}
#app[data-surface=focus] main {flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:8px 12px 10px}
#app[data-surface=focus] :is(.try-step,.workspace,#panel-try) {flex:1;min-height:0;display:flex;flex-direction:column}
#app[data-surface=focus] :is(.task-heading,.toolbar,.validation-notice,.stale-notice,.board-connecting,.evaluation-bar,.note,.editor-heading,.editor-actions,.draft-notice) {flex:none}
#app[data-surface=focus] .task-heading {margin:0 0 8px}
#app[data-surface=focus] .try-body {flex:1;min-height:0}
#app[data-surface=focus] .panes {height:100%;min-height:0}
#app[data-surface=focus] .pane {display:flex;flex-direction:column;min-height:0}
#app[data-surface=focus] .ide-pane {flex:1;min-height:0;display:flex;flex-direction:column}
#app[data-surface=focus] .drop-zone {flex:1;height:auto;min-height:0;max-height:none}
#app[data-surface=focus] .rule-inspector {height:100%}
#app[data-surface=focus] .evaluation-bar {position:static;margin-top:8px;max-height:30dvh;overflow:auto;box-shadow:none}
#app[data-surface=focus] :is(.feedback-details,.dependency-details) {flex:0 1 auto;min-height:0;max-height:26dvh;overflow:auto;margin-top:6px}
#app[data-surface=focus] .note {margin:4px 0 0}
#app[data-surface=focus] .solution-editor {flex:1;min-height:0;display:flex;flex-direction:column;padding:10px}
#app[data-surface=focus] .solution-editor .ide-pane {flex:1}
#app[data-surface=focus] .editor-frame {flex:1;min-height:0;max-height:none;height:auto}
#app[data-surface=focus] .editor-frame textarea {height:100%;min-height:0;max-height:none;resize:none}
#app[data-surface=focus] .editor-surface {display:flex;flex-direction:column;height:100%}
#app[data-surface=focus] .editor-actions {margin-top:8px}
@media(max-width:650px) {
 #app[data-surface=focus] .task-meta>span:not(.mode-badge,.language-badge) {display:none}
 #app[data-surface=focus] .panes {grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr)}
}
.rule-inspector [data-rule-close] {display:none}
#app[data-surface=focus] .note {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ADR-108 (E7): grouped preflight settings, locks with their reason, first-gate findings, gate words on the steps. */
.preflight-group {margin:0;padding:10px 12px 4px;border:0;border-top:1px solid var(--border);min-width:0}
.preflight-group>legend {padding:0;font-size:12px;font-weight:700;color:var(--text)}
.preflight-group>.inline-hint {margin:2px 0 0}
.preflight-group .options-grid {padding:10px 0 0;border-top:0}
.preflight-setting {min-width:0;margin-bottom:12px}
.preflight-setting>label {display:block}
.preflight-setting select {width:100%}
.preflight-setting.locked select {opacity:1;border-style:dashed;cursor:not-allowed}
.lock-label {margin-left:6px;padding:0 7px;border:1px solid var(--w-40);background:var(--w-18);color:var(--w-80);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.lock-why {margin-top:4px;font-size:12px}
/* ADR-153 (NY-59a): a disclosure is a button: no underline. Its arrow says that it opens. */
.lock-why>summary {display:inline-flex;min-height:24px;align-items:center;gap:4px;padding:0 4px;margin-left:-4px;border-radius:6px;cursor:pointer;color:var(--accent-text);list-style:none}
.lock-why>summary::-webkit-details-marker {display:none}
.lock-why>summary::after {content:'▾';font-size:12px}
.lock-why[open]>summary::after {content:'▴'}
.lock-why>summary:hover {background:var(--blue-pale)}
.lock-why>p {margin:4px 0 0;line-height:1.55;color:var(--text)}
.preflight-conflicts {margin:0;padding:10px 12px 10px 30px;border-top:1px solid var(--d-48);background:var(--d-16);color:var(--text);font-size:12px}
.source-diagnostics {margin:10px 0 0;padding:10px 12px;border-left:4px solid var(--w-40)}
.source-diagnostics.verdict-blocked {border-left-color:var(--d-48)}
.source-diagnostics>h3 {margin:0 0 6px;font-size:13px}
.diagnostic {display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:2px 10px;align-items:baseline;font-size:12px;line-height:1.5}
.diagnostic-kind {font-weight:700;white-space:nowrap}
.diagnostic.certainty-definite .diagnostic-kind {color:var(--d-82)}
.diagnostic.certainty-possible .diagnostic-kind,.diagnostic.certainty-unknown .diagnostic-kind {color:var(--w-80)}
.diagnostic-line {min-height:24px;padding:0 6px;font-variant-numeric:tabular-nums;white-space:nowrap}
.diagnostic-message {min-width:0;overflow-wrap:anywhere}
.diagnostic-origin {grid-column:3;color:var(--muted)}
.step.tone-blocked .step-text small {color:var(--d-82);opacity:1}
.step-text small:empty {display:none}
.diagnostic-list {margin:0;padding:0;list-style:none;display:grid;gap:8px}
.diagnostic-count {padding:0 6px;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
.diagnostic-lines {grid-column:1 / -1;font-size:12px}
.diagnostic-lines>summary {display:inline-flex;min-height:24px;align-items:center;cursor:pointer;color:var(--accent-text)}
.diagnostic-lines>ol {margin:4px 0 0;padding:0;list-style:none;display:grid;gap:4px}
.diagnostic-lines li {display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 10px;align-items:baseline}
/* ADR-122 (M3): the task status card. One tone per answer, as a word and a colour; the card's edge carries the worst. */
.task-status {margin:0 0 14px;padding:12px 14px;border-left:4px solid var(--ok-line);font-size:13px}
.task-status.tone-warning {border-left-color:var(--w-40)}.task-status.tone-error {border-left-color:var(--d-48)}
.task-status>h3 {margin:0 0 8px;font-size:13px}
.task-answers {margin:0;padding:0;list-style:none;display:grid;gap:6px}
.task-answer {display:grid;grid-template-columns:8.5em 6.5em minmax(0,1fr) auto;gap:4px 10px;align-items:center;line-height:1.5}
.task-verdict {display:inline-flex;align-items:center;gap:6px;font-weight:700}
.task-verdict .status-dot {width:8px;height:8px;border-radius:50%;background:var(--ok)}
.task-answer.tone-ok .task-verdict {color:var(--ok-text)}
.task-answer.tone-warning .task-verdict {color:var(--w-80)}.task-answer.tone-warning .status-dot {background:var(--w-40)}
.task-answer.tone-error .task-verdict {color:var(--d-82)}.task-answer.tone-error .status-dot {background:var(--d-48)}
.task-text {min-width:0;overflow-wrap:anywhere}
.task-next {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;margin:10px 0 0;padding-top:10px;border-top:1px solid var(--border)}
.task-findings {margin-top:10px;font-size:12px}
.task-findings>summary {display:inline-flex;min-height:24px;align-items:center;cursor:pointer;color:var(--accent-text)}
.task-findings>.diagnostic-list {margin-top:8px}
@media (max-width:640px){.task-answer {grid-template-columns:auto auto minmax(0,1fr)}.task-text {grid-column:1 / -1}.task-answer>.btn {grid-column:1 / -1;justify-self:start}}
.step.tone-warning .step-text small {color:var(--w-80);opacity:1}
@media (max-width:640px){.diagnostic {grid-template-columns:auto minmax(0,1fr)}.diagnostic-message,.diagnostic-origin {grid-column:1 / -1}}
/* ADR-116 (M1): the header never runs off the screen: below 1000 px the learner-view toggle keeps only its icon. ADR-137:
   the logo's EDITOR label stays wherever the row fits it (header-fit.ts). */
@media(max-width:1000px) {.header-actions .preview-toggle {width:38px;min-width:38px;padding:0;--plate-cut:0}.header-actions .preview-toggle>span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
/* ADR-116 (M1): in the wide layout the exercise list is a sidebar, never a closed drop-down: a list closed on a narrow screen stays visible
 * when the screen widens (it left an empty sidebar), and its heading does not toggle it. */
@media(min-width:851px) and (not ((max-height:500px) and (orientation:landscape))) {
 .task-picker::details-content {content-visibility:visible;display:block}
 .task-picker>summary {pointer-events:none;cursor:default}
}
/* ADR-116 (M1): on a touch screen every toolbar control has the touch height, the segmented ones too (they were 34 px beside 44 px). */
/* ADR-116 (M1): a phone on its side. Width-only breakpoints sent a 740–930 × 340–430 screen to the tablet layout, where the header, heading,
 * steps and two toolbar rows used the whole height. Here every bar is one row of one height (36 px header controls, 40 px tools) and the
 * lists take the rest of the screen. */
@media(max-height:500px) and (orientation:landscape) {
 .header {flex-wrap:nowrap;min-height:0;padding:5px 10px 5px 18px;gap:8px}.header::before {width:4px}
 .brand strong {font-size:16px}
 .mode-tabs {order:0;width:auto;flex:0 0 auto;margin:0 auto 0 6px;padding:0 4px;gap:4px}
 .mode-tabs button {flex:0 1 auto;min-width:0;padding:0 12px}
 .header-actions {gap:6px;flex:none}
 :is(.header-actions>button,.header-actions .menu>summary,.header-actions .preview-toggle) {width:var(--control-h);min-width:var(--control-h);padding:0;justify-content:center;--plate-cut:0}
 :is(.header-actions .preview-toggle,.header-actions .menu>summary)>span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 main,.learner-preview main {padding:8px 14px 12px}
 .validation-notice {margin-bottom:8px;padding:3px 8px;gap:8px}.validation-notice>span {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.validation-notice {--control-h:30px}
 .task-heading {display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-bottom:8px}
 .task-heading h1 {min-width:0;max-width:100%;margin:0;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .task-heading .description {flex-basis:100%;margin:0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
 /* ADR-163: on a phone on its side the description keeps to one row of text, as it always has: the first part in one
    line; „Részletek” stands beside the heading's link (a row of its own would cost the lists 44 px), and opened, the
    other parts take the rows under the first. */
 .task-heading>.brief {order:4;flex-basis:100%;margin:0}
 .task-heading>.brief-fold {display:contents}
 .brief-fold>.brief {order:4;flex:1 1 100%;min-width:0;margin:0;grid-template-columns:max-content minmax(0,1fr)}.brief-fold>.brief dd {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .brief-fold>.brief-more {order:3;flex:none;margin:0}.brief-fold>.brief-more>summary {min-height:30px;line-height:30px}
 .brief-fold>.brief-more[open] {order:5;flex-basis:100%}
 .stepper {margin-bottom:8px}.stepper ol {gap:4px}.stepper .step {--plate-h:36px;min-height:36px;height:36px;padding:0 10px;gap:6px}.step-text small,.step-number {display:none}.step-text b {font-size:13px}
 .author,.solution-editor {padding:12px}
 .toolbar {flex-wrap:nowrap;gap:6px;padding:4px 6px}.toolbar-start {display:flex;gap:6px;min-width:0}
 .workspace-actions {flex-wrap:nowrap}
 :is(.workspace-actions,.code-view-switch)>button {flex:0 0 auto;width:var(--control-h);padding:0;justify-content:center;--plate-cut:0}
 :is(.workspace-actions,.code-view-switch)>button>span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 /* ADR-144: scrolled to a list's title, the list ends above the result bar: the title with its small buttons (37 px), its
    gap (6 px) and the pane's line stand above the list. */
 .drop-zone {height:calc(100dvh - 44px - var(--result-bar,62px));min-height:150px;max-height:none}
 .task-heading h1 {order:1}.task-heading .task-meta {order:2}.task-heading .link-action {order:3;margin:0;min-height:30px}.task-heading .description {order:4}
 .panel-title {min-height:30px;margin-bottom:6px}
 /* Focus: only the code and its tools; the result keeps one line, the details stay behind it. */
 #app[data-surface=focus] :is(.validation-notice,.note,.feedback-details,.dependency-details) {display:none}
 #app[data-surface=focus] .task-heading {display:none}

 #app[data-surface=focus] .evaluation-bar {max-height:64px;margin-top:6px}
 #app[data-surface=focus] .evaluation-bar .report p {display:none}
 #app[data-surface=focus] .drop-zone {height:auto;min-height:0}
}
/* ADR-116 (M1): an upright phone. The toolbar keeps one height per touch target (44 px), and the sticky result bar is one row: the
 * result on the left (one line), the check button on the right, so it no longer covers a third of the lists. */
@media(max-width:650px) {
 .evaluation-bar {flex-direction:row;align-items:stretch}
 .evaluation-bar .report {flex:1;min-width:0;padding:6px 10px 6px 0}
 .evaluation-bar .report p {-webkit-line-clamp:1}
 .check-action {padding:6px}.check-action .primary {width:auto;white-space:nowrap}
}
/* ADR-117 (U1): one button component. Every action button is a .btn (made by tool() in view.ts); segments, tabs, menu buttons and
 * the mode switch share its geometry. A place says only which size it wants (--control-h); roles are classes, never a context:
 * primary (blue, clipped corner, one per view), .check (the learner's Check: the main action's face, ADR-160), secondary (the default), .link-action
 * (tertiary, text only) and .danger. Rows, steps, task items and chips are their own components and stay out of it. */
:root {--control-h:36px;--control-h-sm:28px;--control-px:12px;--control-fs:13px}
@media(pointer:coarse) {:root {--control-h:44px;--control-h-sm:36px}}
@media(max-height:500px) and (orientation:landscape) {:root {--control-h:40px}.header {--control-h:36px}}
:is(button.btn,a.btn,.segment button,.menu>summary,.mode-tabs button) {height:var(--control-h);min-height:var(--control-h);padding-block:0;padding-inline:var(--control-px);font-size:var(--control-fs);font-weight:600;line-height:1.2;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:6px}
:is(button.btn,a.btn,.segment button,.menu>summary,.mode-tabs button) .icon {width:16px;height:16px}
/* ADR-143 (D3): a segmented choice (Forráskód | CodeLine JSON, Vizuális | JSON) is one rounded group as high as the
   controls beside it; the chosen part stands out in it with the "on" face (pale blue, a blue line), the others are
   flat. Not a filled plate: the step's main action and the current step stay the only two. On a touch screen a part
   answers over the whole height of the group. */
.segment {display:flex;max-width:100%;gap:3px;padding:3px;border:1px solid var(--border);border-radius:var(--r-panel);background:var(--raised)}
.segment button {position:relative;height:calc(var(--control-h) - 8px);min-height:0;border:1px solid transparent;border-radius:calc(var(--r-panel) - 3px);background:transparent;color:var(--muted)}
.segment button::before {content:'';position:absolute;inset:-4px -2px}
.segment button:hover:not(:disabled,.active) {background:var(--plate);color:var(--text)}
.segment button.active,.segment button.active:hover:not(:disabled) {background:var(--plate-on);border-color:var(--blue);color:var(--accent-text)}
button.btn.icon-only {width:var(--control-h);min-width:var(--control-h);padding-inline:0}
.menu-panel button.btn {justify-content:flex-start}
button.btn.link-action {border-color:transparent;background:transparent;color:var(--accent-text);padding-inline:6px}
button.btn.link-action:hover:not(:disabled) {background:var(--blue-pale);border-color:transparent}
/* ADR-140 (D1), ADR-143 (D2, D3b): the plate. Every labelled button is one: the tools, the menu buttons, the mode switch,
 * the step plates, the step's main action and a link that acts (a.btn). Hidden here: the shape, the face, the roles, the
 * states and the focus ring.
 * - Shape: the top left and the bottom right corner are a bevel whose two vertices are each rounded; the other two
 *   corners are round. All follow the plate's height (--plate-h; the height the place asked for unless the plate names
 *   its own): the bevel is 30% of it, the rounding of its vertices 24%, the round corners 22%.
 * - A button without a visible label is a rounded rectangle: .icon-only, and wherever a rule hides the label it also
 *   sets `--plate-cut:0` on the button: the one switch between the two shapes (the layout gate checks both ways).
 * - No border can follow the bevel, so the plate is the clip of its face (clip-path: shape()). The face is a layer under
 *   the label (::after), not the button itself: a clip on the button would cut its focus ring off. The button keeps a
 *   transparent line, which forced colours draw.
 * - One outline serves both shapes. Every corner is two curves about a 45-degree edge, with three lengths: `c` from the
 *   corner to the edge's ends, `t` along the straight sides, `d` along the edge (on each axis). A bevel has a long edge
 *   and short curves; with c = .586 r, t = .414 r and d = .293 r the two curves meet and are a round corner of radius r.
 *   --plate-cut moves the first and third corner between the two (the --p-* lengths below).
 * - Face: one flat tone. No gradient, no line, no shadow.
 * - Roles: solid blue (the step's main action, the current step), amber (the learner's check); at most two filled plates
 *   stand on a screen. Danger (an action that removes a rule): a pale red face with a dark red label. On (aria-pressed: a toggle, the chosen mode): a pale blue face and a blue line
 *   around it, so not the colour alone says it. No line under the label: nothing in a button is underlined (ADR-153).
 * - Disabled, whether :disabled, aria-disabled with its reason (ADR-120) or a locked step: a hollow plate, a hairline and
 *   a muted label on whatever ground it stands (a faint tone alone vanished on a white page). A busy button is not
 *   disabled to the eye: its spinner says it works. Pressed down, the plate moves 1 px.
 * - A line (on, disabled) is a ring under the face (::before, an even-odd clip of the outline and the one a pixel inside
 *   it); the face then stands that pixel inside. The spinner of a busy button is drawn in the same place, so a busy
 *   plate has no line. A browser that does not know shape() shows a rounded rectangle, the line as a border.
 * - The focus ring follows the plate: a ring 3 px wide, 2 px off it (an outline is a rounded rectangle, which stood off a
 *   bevel). It is drawn in the line's layer, so a focused plate with a line shows both rings in the ring's colour. Forced
 *   colours, a browser without shape() and a busy plate keep the outline. */
:root {--btn-r:8px;--plate:var(--n-22);--plate-hover:var(--n-26);--plate-on:var(--a-20);--plate-off-line:var(--n-30)}
@media (prefers-color-scheme:dark) {:root:not([data-theme=light]) {--plate:var(--n-24);--plate-hover:var(--n-30);--plate-off-line:var(--n-34)}}
:root[data-theme=dark] {--plate:var(--n-24);--plate-hover:var(--n-30);--plate-off-line:var(--n-34)}
:is(button.btn:not(.link-action),a.btn,.menu>summary,.mode-tabs button,.stepper .step) {
 --plate-face:var(--plate);--plate-ln:0px;--p-h:var(--plate-h,var(--control-h));--p-k:var(--plate-cut,1);
 --p-r:calc(var(--p-h) * .22 * var(--p-k) + min(var(--btn-r),var(--p-h) * .22) * (1 - var(--p-k)));
 --p-c1:calc(var(--p-h) * .30 * var(--p-k) + var(--p-r) * .586 * (1 - var(--p-k)));--p-t1:calc(var(--p-h) * .0994 * var(--p-k) + var(--p-r) * .414 * (1 - var(--p-k)));--p-d1:calc(var(--p-h) * .0703 * var(--p-k) + var(--p-r) * .293 * (1 - var(--p-k)));
 --p-c2:calc(var(--p-r) * .586);--p-t2:calc(var(--p-r) * .414);--p-d2:calc(var(--p-r) * .293);
 --p-c1o:calc(var(--p-c1) + 2.93px);--p-t1o:calc(var(--p-t1) + 2.07px);--p-d1o:calc(var(--p-d1) + 1.465px);--p-c2o:calc(var(--p-c2) + 2.93px);--p-t2o:calc(var(--p-t2) + 2.07px);--p-d2o:calc(var(--p-d2) + 1.465px);
 --p-c1g:calc(var(--p-c1) + 1.172px);--p-t1g:calc(var(--p-t1) + .828px);--p-d1g:calc(var(--p-d1) + .586px);--p-c2g:calc(var(--p-c2) + 1.172px);--p-t2g:calc(var(--p-t2) + .828px);--p-d2g:calc(var(--p-d2) + .586px);
 --p-c1i:calc(var(--p-c1) - .586px);--p-t1i:calc(var(--p-t1) - .414px * (1 - var(--p-k)));--p-d1i:calc(var(--p-d1) - .293px * (1 - var(--p-k)));--p-c2i:calc(var(--p-c2) - .586px);--p-t2i:calc(var(--p-t2) - .414px);--p-d2i:calc(var(--p-d2) - .293px);
 position:relative;isolation:isolate;border:1px solid transparent;border-radius:var(--p-r);background:none;box-shadow:none;color:var(--text)}
/* the face fills the button, or stands inside the line where the plate has one */
:is(button.btn:not(.link-action),a.btn,.menu>summary,.mode-tabs button,.stepper .step)::after {content:'';position:absolute;inset:calc(var(--plate-ln) - 1px);z-index:-1;border-radius:inherit;background:var(--plate-face);
 --p-c1f:var(--p-c1);--p-t1f:var(--p-t1);--p-d1f:var(--p-d1);--p-c2f:var(--p-c2);--p-t2f:var(--p-t2);--p-d2f:var(--p-d2);
 clip-path:shape(from calc(0px) calc(0px + var(--p-c1f) + var(--p-t1f)),curve to calc(0px + var(--p-d1f)) calc(0px + var(--p-c1f) - var(--p-d1f)) with calc(0px) calc(0px + var(--p-c1f)),line to calc(0px + var(--p-c1f) - var(--p-d1f)) calc(0px + var(--p-d1f)),curve to calc(0px + var(--p-c1f) + var(--p-t1f)) calc(0px) with calc(0px + var(--p-c1f)) calc(0px),hline to calc(100% - var(--p-c2f) - var(--p-t2f)),curve to calc(100% - var(--p-c2f) + var(--p-d2f)) calc(0px + var(--p-d2f)) with calc(100% - var(--p-c2f)) calc(0px),line to calc(100% - var(--p-d2f)) calc(0px + var(--p-c2f) - var(--p-d2f)),curve to calc(100%) calc(0px + var(--p-c2f) + var(--p-t2f)) with calc(100%) calc(0px + var(--p-c2f)),vline to calc(100% - var(--p-c1f) - var(--p-t1f)),curve to calc(100% - var(--p-d1f)) calc(100% - var(--p-c1f) + var(--p-d1f)) with calc(100%) calc(100% - var(--p-c1f)),line to calc(100% - var(--p-c1f) + var(--p-d1f)) calc(100% - var(--p-d1f)),curve to calc(100% - var(--p-c1f) - var(--p-t1f)) calc(100%) with calc(100% - var(--p-c1f)) calc(100%),hline to calc(0px + var(--p-c2f) + var(--p-t2f)),curve to calc(0px + var(--p-c2f) - var(--p-d2f)) calc(100% - var(--p-d2f)) with calc(0px + var(--p-c2f)) calc(100%),line to calc(0px + var(--p-d2f)) calc(100% - var(--p-c2f) + var(--p-d2f)),curve to calc(0px) calc(100% - var(--p-c2f) - var(--p-t2f)) with calc(0px) calc(100% - var(--p-c2f)),close)}
:is(button.btn:not(.link-action),a.btn,.menu>summary,.mode-tabs button,.stepper .step):is([aria-pressed=true],:disabled,[aria-disabled=true],.locked):not([aria-busy=true],[data-busy-shown]) {--plate-ln:1px}
:is(button.btn:not(.link-action),a.btn,.menu>summary,.mode-tabs button,.stepper .step):is([aria-pressed=true],:disabled,[aria-disabled=true],.locked):not([aria-busy=true],[data-busy-shown])::after {--p-c1f:var(--p-c1i);--p-t1f:var(--p-t1i);--p-d1f:var(--p-d1i);--p-c2f:var(--p-c2i);--p-t2f:var(--p-t2i);--p-d2f:var(--p-d2i)}
:is(button.btn:not(.link-action),a.btn,.menu>summary,.mode-tabs button,.stepper .step):is([aria-pressed=true],:disabled,[aria-disabled=true],.locked):not([aria-busy=true],[data-busy-shown])::before {content:'';position:absolute;inset:-1px;z-index:-2;border-radius:inherit;background:var(--plate-line);
 clip-path:shape(evenodd from calc(0px) calc(0px + var(--p-c1) + var(--p-t1)),curve to calc(0px + var(--p-d1)) calc(0px + var(--p-c1) - var(--p-d1)) with calc(0px) calc(0px + var(--p-c1)),line to calc(0px + var(--p-c1) - var(--p-d1)) calc(0px + var(--p-d1)),curve to calc(0px + var(--p-c1) + var(--p-t1)) calc(0px) with calc(0px + var(--p-c1)) calc(0px),hline to calc(100% - var(--p-c2) - var(--p-t2)),curve to calc(100% - var(--p-c2) + var(--p-d2)) calc(0px + var(--p-d2)) with calc(100% - var(--p-c2)) calc(0px),line to calc(100% - var(--p-d2)) calc(0px + var(--p-c2) - var(--p-d2)),curve to calc(100%) calc(0px + var(--p-c2) + var(--p-t2)) with calc(100%) calc(0px + var(--p-c2)),vline to calc(100% - var(--p-c1) - var(--p-t1)),curve to calc(100% - var(--p-d1)) calc(100% - var(--p-c1) + var(--p-d1)) with calc(100%) calc(100% - var(--p-c1)),line to calc(100% - var(--p-c1) + var(--p-d1)) calc(100% - var(--p-d1)),curve to calc(100% - var(--p-c1) - var(--p-t1)) calc(100%) with calc(100% - var(--p-c1)) calc(100%),hline to calc(0px + var(--p-c2) + var(--p-t2)),curve to calc(0px + var(--p-c2) - var(--p-d2)) calc(100% - var(--p-d2)) with calc(0px + var(--p-c2)) calc(100%),line to calc(0px + var(--p-d2)) calc(100% - var(--p-c2) + var(--p-d2)),curve to calc(0px) calc(100% - var(--p-c2) - var(--p-t2)) with calc(0px) calc(100% - var(--p-c2)),close,move to calc(1px) calc(1px + var(--p-c1i) + var(--p-t1i)),curve to calc(1px + var(--p-d1i)) calc(1px + var(--p-c1i) - var(--p-d1i)) with calc(1px) calc(1px + var(--p-c1i)),line to calc(1px + var(--p-c1i) - var(--p-d1i)) calc(1px + var(--p-d1i)),curve to calc(1px + var(--p-c1i) + var(--p-t1i)) calc(1px) with calc(1px + var(--p-c1i)) calc(1px),hline to calc((100% - 1px) - var(--p-c2i) - var(--p-t2i)),curve to calc((100% - 1px) - var(--p-c2i) + var(--p-d2i)) calc(1px + var(--p-d2i)) with calc((100% - 1px) - var(--p-c2i)) calc(1px),line to calc((100% - 1px) - var(--p-d2i)) calc(1px + var(--p-c2i) - var(--p-d2i)),curve to calc((100% - 1px)) calc(1px + var(--p-c2i) + var(--p-t2i)) with calc((100% - 1px)) calc(1px + var(--p-c2i)),vline to calc((100% - 1px) - var(--p-c1i) - var(--p-t1i)),curve to calc((100% - 1px) - var(--p-d1i)) calc((100% - 1px) - var(--p-c1i) + var(--p-d1i)) with calc((100% - 1px)) calc((100% - 1px) - var(--p-c1i)),line to calc((100% - 1px) - var(--p-c1i) + var(--p-d1i)) calc((100% - 1px) - var(--p-d1i)),curve to calc((100% - 1px) - var(--p-c1i) - var(--p-t1i)) calc((100% - 1px)) with calc((100% - 1px) - var(--p-c1i)) calc((100% - 1px)),hline to calc(1px + var(--p-c2i) + var(--p-t2i)),curve to calc(1px + var(--p-c2i) - var(--p-d2i)) calc((100% - 1px) - var(--p-d2i)) with calc(1px + var(--p-c2i)) calc((100% - 1px)),line to calc(1px + var(--p-d2i)) calc((100% - 1px) - var(--p-c2i) + var(--p-d2i)),curve to calc(1px) calc((100% - 1px) - var(--p-c2i) - var(--p-t2i)) with calc(1px) calc((100% - 1px) - var(--p-c2i)),close)}
@supports not (clip-path:shape(from 0 0,line to 1px 1px)) {:is(button.btn:not(.link-action),a.btn,.menu>summary,.mode-tabs button,.stepper .step):is([aria-pressed=true],:disabled,[aria-disabled=true],.locked):not([aria-busy=true],[data-busy-shown])::before {border:1px solid var(--plate-line);background:none}}
@supports (clip-path:shape(from 0 0,line to 1px 1px)) {@media not (forced-colors:active) {
 :is(button.btn:not(.link-action),a.btn,.menu>summary,.mode-tabs button,.stepper .step):focus-visible:not([data-busy-shown]) {outline:none}
 :is(button.btn:not(.link-action),a.btn,.menu>summary,.mode-tabs button,.stepper .step):focus-visible:not([data-busy-shown])::before {content:'';position:absolute;inset:-6px;z-index:-2;border-radius:0;background:var(--a-68);clip-path:shape(evenodd from calc(0px) calc(0px + var(--p-c1o) + var(--p-t1o)),curve to calc(0px + var(--p-d1o)) calc(0px + var(--p-c1o) - var(--p-d1o)) with calc(0px) calc(0px + var(--p-c1o)),line to calc(0px + var(--p-c1o) - var(--p-d1o)) calc(0px + var(--p-d1o)),curve to calc(0px + var(--p-c1o) + var(--p-t1o)) calc(0px) with calc(0px + var(--p-c1o)) calc(0px),hline to calc(100% - var(--p-c2o) - var(--p-t2o)),curve to calc(100% - var(--p-c2o) + var(--p-d2o)) calc(0px + var(--p-d2o)) with calc(100% - var(--p-c2o)) calc(0px),line to calc(100% - var(--p-d2o)) calc(0px + var(--p-c2o) - var(--p-d2o)),curve to calc(100%) calc(0px + var(--p-c2o) + var(--p-t2o)) with calc(100%) calc(0px + var(--p-c2o)),vline to calc(100% - var(--p-c1o) - var(--p-t1o)),curve to calc(100% - var(--p-d1o)) calc(100% - var(--p-c1o) + var(--p-d1o)) with calc(100%) calc(100% - var(--p-c1o)),line to calc(100% - var(--p-c1o) + var(--p-d1o)) calc(100% - var(--p-d1o)),curve to calc(100% - var(--p-c1o) - var(--p-t1o)) calc(100%) with calc(100% - var(--p-c1o)) calc(100%),hline to calc(0px + var(--p-c2o) + var(--p-t2o)),curve to calc(0px + var(--p-c2o) - var(--p-d2o)) calc(100% - var(--p-d2o)) with calc(0px + var(--p-c2o)) calc(100%),line to calc(0px + var(--p-d2o)) calc(100% - var(--p-c2o) + var(--p-d2o)),curve to calc(0px) calc(100% - var(--p-c2o) - var(--p-t2o)) with calc(0px) calc(100% - var(--p-c2o)),close,move to calc(3px) calc(3px + var(--p-c1g) + var(--p-t1g)),curve to calc(3px + var(--p-d1g)) calc(3px + var(--p-c1g) - var(--p-d1g)) with calc(3px) calc(3px + var(--p-c1g)),line to calc(3px + var(--p-c1g) - var(--p-d1g)) calc(3px + var(--p-d1g)),curve to calc(3px + var(--p-c1g) + var(--p-t1g)) calc(3px) with calc(3px + var(--p-c1g)) calc(3px),hline to calc((100% - 3px) - var(--p-c2g) - var(--p-t2g)),curve to calc((100% - 3px) - var(--p-c2g) + var(--p-d2g)) calc(3px + var(--p-d2g)) with calc((100% - 3px) - var(--p-c2g)) calc(3px),line to calc((100% - 3px) - var(--p-d2g)) calc(3px + var(--p-c2g) - var(--p-d2g)),curve to calc((100% - 3px)) calc(3px + var(--p-c2g) + var(--p-t2g)) with calc((100% - 3px)) calc(3px + var(--p-c2g)),vline to calc((100% - 3px) - var(--p-c1g) - var(--p-t1g)),curve to calc((100% - 3px) - var(--p-d1g)) calc((100% - 3px) - var(--p-c1g) + var(--p-d1g)) with calc((100% - 3px)) calc((100% - 3px) - var(--p-c1g)),line to calc((100% - 3px) - var(--p-c1g) + var(--p-d1g)) calc((100% - 3px) - var(--p-d1g)),curve to calc((100% - 3px) - var(--p-c1g) - var(--p-t1g)) calc((100% - 3px)) with calc((100% - 3px) - var(--p-c1g)) calc((100% - 3px)),hline to calc(3px + var(--p-c2g) + var(--p-t2g)),curve to calc(3px + var(--p-c2g) - var(--p-d2g)) calc((100% - 3px) - var(--p-d2g)) with calc(3px + var(--p-c2g)) calc((100% - 3px)),line to calc(3px + var(--p-d2g)) calc((100% - 3px) - var(--p-c2g) + var(--p-d2g)),curve to calc(3px) calc((100% - 3px) - var(--p-c2g) - var(--p-t2g)) with calc(3px) calc((100% - 3px) - var(--p-c2g)),close)}
 :is(button.btn:not(.link-action),a.btn,.menu>summary,.mode-tabs button,.stepper .step):focus-visible:is([aria-pressed=true],:disabled,[aria-disabled=true],.locked):not([aria-busy=true],[data-busy-shown])::before {clip-path:shape(evenodd from calc(0px) calc(0px + var(--p-c1o) + var(--p-t1o)),curve to calc(0px + var(--p-d1o)) calc(0px + var(--p-c1o) - var(--p-d1o)) with calc(0px) calc(0px + var(--p-c1o)),line to calc(0px + var(--p-c1o) - var(--p-d1o)) calc(0px + var(--p-d1o)),curve to calc(0px + var(--p-c1o) + var(--p-t1o)) calc(0px) with calc(0px + var(--p-c1o)) calc(0px),hline to calc(100% - var(--p-c2o) - var(--p-t2o)),curve to calc(100% - var(--p-c2o) + var(--p-d2o)) calc(0px + var(--p-d2o)) with calc(100% - var(--p-c2o)) calc(0px),line to calc(100% - var(--p-d2o)) calc(0px + var(--p-c2o) - var(--p-d2o)),curve to calc(100%) calc(0px + var(--p-c2o) + var(--p-t2o)) with calc(100%) calc(0px + var(--p-c2o)),vline to calc(100% - var(--p-c1o) - var(--p-t1o)),curve to calc(100% - var(--p-d1o)) calc(100% - var(--p-c1o) + var(--p-d1o)) with calc(100%) calc(100% - var(--p-c1o)),line to calc(100% - var(--p-c1o) + var(--p-d1o)) calc(100% - var(--p-d1o)),curve to calc(100% - var(--p-c1o) - var(--p-t1o)) calc(100%) with calc(100% - var(--p-c1o)) calc(100%),hline to calc(0px + var(--p-c2o) + var(--p-t2o)),curve to calc(0px + var(--p-c2o) - var(--p-d2o)) calc(100% - var(--p-d2o)) with calc(0px + var(--p-c2o)) calc(100%),line to calc(0px + var(--p-d2o)) calc(100% - var(--p-c2o) + var(--p-d2o)),curve to calc(0px) calc(100% - var(--p-c2o) - var(--p-t2o)) with calc(0px) calc(100% - var(--p-c2o)),close,move to calc(3px) calc(3px + var(--p-c1g) + var(--p-t1g)),curve to calc(3px + var(--p-d1g)) calc(3px + var(--p-c1g) - var(--p-d1g)) with calc(3px) calc(3px + var(--p-c1g)),line to calc(3px + var(--p-c1g) - var(--p-d1g)) calc(3px + var(--p-d1g)),curve to calc(3px + var(--p-c1g) + var(--p-t1g)) calc(3px) with calc(3px + var(--p-c1g)) calc(3px),hline to calc((100% - 3px) - var(--p-c2g) - var(--p-t2g)),curve to calc((100% - 3px) - var(--p-c2g) + var(--p-d2g)) calc(3px + var(--p-d2g)) with calc((100% - 3px) - var(--p-c2g)) calc(3px),line to calc((100% - 3px) - var(--p-d2g)) calc(3px + var(--p-c2g) - var(--p-d2g)),curve to calc((100% - 3px)) calc(3px + var(--p-c2g) + var(--p-t2g)) with calc((100% - 3px)) calc(3px + var(--p-c2g)),vline to calc((100% - 3px) - var(--p-c1g) - var(--p-t1g)),curve to calc((100% - 3px) - var(--p-d1g)) calc((100% - 3px) - var(--p-c1g) + var(--p-d1g)) with calc((100% - 3px)) calc((100% - 3px) - var(--p-c1g)),line to calc((100% - 3px) - var(--p-c1g) + var(--p-d1g)) calc((100% - 3px) - var(--p-d1g)),curve to calc((100% - 3px) - var(--p-c1g) - var(--p-t1g)) calc((100% - 3px)) with calc((100% - 3px) - var(--p-c1g)) calc((100% - 3px)),hline to calc(3px + var(--p-c2g) + var(--p-t2g)),curve to calc(3px + var(--p-c2g) - var(--p-d2g)) calc((100% - 3px) - var(--p-d2g)) with calc(3px + var(--p-c2g)) calc((100% - 3px)),line to calc(3px + var(--p-d2g)) calc((100% - 3px) - var(--p-c2g) + var(--p-d2g)),curve to calc(3px) calc((100% - 3px) - var(--p-c2g) - var(--p-t2g)) with calc(3px) calc((100% - 3px) - var(--p-c2g)),close,move to calc(5px) calc(5px + var(--p-c1) + var(--p-t1)),curve to calc(5px + var(--p-d1)) calc(5px + var(--p-c1) - var(--p-d1)) with calc(5px) calc(5px + var(--p-c1)),line to calc(5px + var(--p-c1) - var(--p-d1)) calc(5px + var(--p-d1)),curve to calc(5px + var(--p-c1) + var(--p-t1)) calc(5px) with calc(5px + var(--p-c1)) calc(5px),hline to calc((100% - 5px) - var(--p-c2) - var(--p-t2)),curve to calc((100% - 5px) - var(--p-c2) + var(--p-d2)) calc(5px + var(--p-d2)) with calc((100% - 5px) - var(--p-c2)) calc(5px),line to calc((100% - 5px) - var(--p-d2)) calc(5px + var(--p-c2) - var(--p-d2)),curve to calc((100% - 5px)) calc(5px + var(--p-c2) + var(--p-t2)) with calc((100% - 5px)) calc(5px + var(--p-c2)),vline to calc((100% - 5px) - var(--p-c1) - var(--p-t1)),curve to calc((100% - 5px) - var(--p-d1)) calc((100% - 5px) - var(--p-c1) + var(--p-d1)) with calc((100% - 5px)) calc((100% - 5px) - var(--p-c1)),line to calc((100% - 5px) - var(--p-c1) + var(--p-d1)) calc((100% - 5px) - var(--p-d1)),curve to calc((100% - 5px) - var(--p-c1) - var(--p-t1)) calc((100% - 5px)) with calc((100% - 5px) - var(--p-c1)) calc((100% - 5px)),hline to calc(5px + var(--p-c2) + var(--p-t2)),curve to calc(5px + var(--p-c2) - var(--p-d2)) calc((100% - 5px) - var(--p-d2)) with calc(5px + var(--p-c2)) calc((100% - 5px)),line to calc(5px + var(--p-d2)) calc((100% - 5px) - var(--p-c2) + var(--p-d2)),curve to calc(5px) calc((100% - 5px) - var(--p-c2) - var(--p-t2)) with calc(5px) calc((100% - 5px) - var(--p-c2)),close,move to calc(6px) calc(6px + var(--p-c1i) + var(--p-t1i)),curve to calc(6px + var(--p-d1i)) calc(6px + var(--p-c1i) - var(--p-d1i)) with calc(6px) calc(6px + var(--p-c1i)),line to calc(6px + var(--p-c1i) - var(--p-d1i)) calc(6px + var(--p-d1i)),curve to calc(6px + var(--p-c1i) + var(--p-t1i)) calc(6px) with calc(6px + var(--p-c1i)) calc(6px),hline to calc((100% - 6px) - var(--p-c2i) - var(--p-t2i)),curve to calc((100% - 6px) - var(--p-c2i) + var(--p-d2i)) calc(6px + var(--p-d2i)) with calc((100% - 6px) - var(--p-c2i)) calc(6px),line to calc((100% - 6px) - var(--p-d2i)) calc(6px + var(--p-c2i) - var(--p-d2i)),curve to calc((100% - 6px)) calc(6px + var(--p-c2i) + var(--p-t2i)) with calc((100% - 6px)) calc(6px + var(--p-c2i)),vline to calc((100% - 6px) - var(--p-c1i) - var(--p-t1i)),curve to calc((100% - 6px) - var(--p-d1i)) calc((100% - 6px) - var(--p-c1i) + var(--p-d1i)) with calc((100% - 6px)) calc((100% - 6px) - var(--p-c1i)),line to calc((100% - 6px) - var(--p-c1i) + var(--p-d1i)) calc((100% - 6px) - var(--p-d1i)),curve to calc((100% - 6px) - var(--p-c1i) - var(--p-t1i)) calc((100% - 6px)) with calc((100% - 6px) - var(--p-c1i)) calc((100% - 6px)),hline to calc(6px + var(--p-c2i) + var(--p-t2i)),curve to calc(6px + var(--p-c2i) - var(--p-d2i)) calc((100% - 6px) - var(--p-d2i)) with calc(6px + var(--p-c2i)) calc((100% - 6px)),line to calc(6px + var(--p-d2i)) calc((100% - 6px) - var(--p-c2i) + var(--p-d2i)),curve to calc(6px) calc((100% - 6px) - var(--p-c2i) - var(--p-t2i)) with calc(6px) calc((100% - 6px) - var(--p-c2i)),close)}
}}
:is(button.btn:not(.link-action),a.btn,.menu>summary,.mode-tabs button,.stepper .step):hover:not(:disabled,[aria-disabled=true],.locked) {--plate-face:var(--plate-hover)}
a.btn {text-decoration:none;cursor:pointer}
:is(button.btn,.menu>summary).icon-only {--plate-cut:0}
button.btn.link-action {border-radius:min(var(--btn-r),calc(var(--control-h) * .22))}
/* Roles. */
button.btn.primary,.stepper .step.current {--plate-face:var(--blue);color:var(--blue-ink)}
button.btn.primary:hover:not(:disabled,[aria-disabled=true]),.stepper .step.current:hover:not(:disabled,[aria-disabled=true],.locked) {--plate-face:var(--blue-hover)}
button.btn.danger {--plate-face:var(--d-18);color:var(--d-76)}
button.btn.danger:hover:not(:disabled,[aria-disabled=true]) {--plate-face:var(--d-34);color:var(--d-92)}
button.btn.primary {--control-h:44px}
/* A phone on its side has 360 px of height: the main action keeps the 40 px its neighbours have there. */
@media(max-height:500px) and (orientation:landscape) {button.btn.primary {--control-h:40px}}
:is(button.btn:not(.link-action),.mode-tabs button)[aria-pressed=true],:is(button.btn:not(.link-action),.mode-tabs button)[aria-pressed=true]:hover:not(:disabled) {--plate-face:var(--plate-on);--plate-line:var(--blue);color:var(--accent-text)}
/* States. */
:is(button.btn:not(.link-action),.stepper .step):is(:disabled,[aria-disabled=true],.locked):not([aria-busy=true]) {--plate-face:transparent;--plate-line:var(--plate-off-line);opacity:1;color:var(--muted);cursor:not-allowed}
button.btn.link-action:is(:disabled,[aria-disabled=true]):not([aria-busy=true]) {opacity:1;color:var(--muted);cursor:not-allowed}
button.btn:active:not(:disabled,[aria-disabled=true]) {transform:translateY(1px)}
/* ADR-145 (D5): a menu's rows are list rows, not plates: an icon and the whole label, no face until pointed at, no line
   when disabled (a muted label says so). A heading names a group, a rule parts two. A menu's button is its icon, never
   a word. The narrow screen's header menu holds the session's rows and the theme as a choice of three; its panel is as
   wide as the screen lets it. */
.menu-panel :is(button.btn,a.btn) {--plate-cut:0;--plate-face:transparent;width:100%;justify-content:flex-start;gap:10px}
.menu-panel button.btn:hover:not(:disabled,[aria-disabled=true]) {--plate-face:var(--plate)}
.menu-panel button.btn:is(:disabled,[aria-disabled=true]):not([aria-busy=true],[data-busy-shown]) {--plate-ln:0px}
.menu-panel button.btn:is(:disabled,[aria-disabled=true]):not([aria-busy=true],[data-busy-shown])::before {content:none}
.menu-heading {margin:8px 10px 2px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.menu-heading:first-child {margin-top:4px}
.menu-rule {height:1px;margin:6px 4px;border:0;background:var(--border)}
.theme-choice {margin:2px 6px 6px}
.theme-choice button {flex:1}
.app-menu>.menu-panel {min-width:min(300px,calc(100vw - 24px));max-height:calc(100dvh - 56px);overflow-y:auto}
@media(max-width:360px) {
 .header-actions>.app-menu {position:static}
 .app-menu>.menu-panel {inset-inline-end:10px;top:calc(100% + 2px)}
}
.rule-panel,.rule-inspector,.task-heading {--control-h:var(--control-h-sm)}
@media(pointer:coarse) {.task-heading {--control-h:36px}}
/* ADR-118 (M1b): on a touch screen the sorter rows carry no controls over the code: a tap picks the row, and its actions
 * (insert, up, down, back, the row's rules) show in the action bar where the check bar is. The fixed-row tag stays. */
@media(hover:none) {
 .code-row .row-actions>:not(.fixed-tag) {display:none}
 .code-row .row-actions:not(:has(.fixed-tag)) {display:none}
}
.code-row.picked {background:var(--blue-pale);box-shadow:inset 3px 0 0 var(--blue)}
.pick-bar {align-items:center;gap:8px;padding:6px 8px 6px 12px;border-color:var(--blue);background:var(--blue-pale)}
.pick-status {flex:1;min-width:0;margin:0;font-size:13px;color:var(--text)}
.pick-actions {display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
@media(max-width:650px) {
 .pick-bar {flex-direction:column;align-items:stretch}
 .pick-actions {justify-content:stretch}.pick-actions .btn:not(.icon-only) {flex:1}
 /* The rule panel is a bottom sheet on a phone: the toolbar and the lists above it stay in view, its own close stays on top. */
 .rule-inspector {top:auto;left:0;right:0;width:100%;max-height:75dvh;border-top:3px solid var(--blue);box-shadow:0 -16px 40px color-mix(in srgb,var(--shadow) 55%,transparent)}
}
/* ADR-120 (U3): a disabled control stays focusable and readable; its reason shows beside it on activation, and once above
 * the rule editor while it waits for a single draft. */
:is(button,summary)[aria-disabled="true"] {opacity:.5;cursor:not-allowed}
:is(button,summary)[aria-disabled="true"]:hover {background:inherit}
.disabled-hint {position:fixed;z-index:1200;padding:8px 10px;border:1px solid var(--yellow-line);border-left:4px solid var(--yellow);background:var(--yellow-pale);color:var(--text);font-size:12.5px;line-height:1.5;box-shadow:0 10px 24px color-mix(in srgb,var(--shadow) 40%,transparent)}
.edit-paused {display:flex;gap:8px;align-items:flex-start;margin:0 0 12px;padding:8px 12px;border:1px solid var(--yellow-line);border-left:4px solid var(--yellow);background:var(--yellow-pale);color:var(--text);font-size:12.5px;line-height:1.5}
.edit-paused .icon {flex:none;margin-top:2px}
/* ADR-121 (M4): one code editor. The highlighted layer lies under a transparent textarea with the same font, line height,
 * padding and tab size; the textarea keeps native editing (undo, selection, IME, paste) and draws the caret and selection. */
.editor-surface {position:relative;min-width:0;min-height:0}
/* the textarea sets the size; the layer lies exactly over it and scrolls with it */
.editor-highlight {position:absolute;inset:0;margin:0;padding:0 14px;min-width:0;overflow:hidden;pointer-events:none;white-space:pre;tab-size:5;font:var(--code-fs)/23px var(--mono);color:var(--n-92);background:repeating-linear-gradient(to bottom,var(--n-10) 0 23px,var(--n-14) 23px 46px);background-attachment:local}
.editor-highlight code {display:block;font:inherit;background:none;padding:0;color:inherit;white-space:inherit}
.editor-frame textarea {position:relative;z-index:1;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:var(--n-92)}
.editor-frame textarea::selection {background:color-mix(in srgb,var(--blue) 32%,transparent)}
.editor-frame textarea::placeholder {-webkit-text-fill-color:var(--muted)}
@media (forced-colors:active) {.editor-highlight {display:none}.editor-frame textarea {color:CanvasText;-webkit-text-fill-color:CanvasText}}
/* ADR-123 (UI4): one skeleton for every author step. App bar (the header), context bar (the task's title, language,
 * validation badge and the stepper side by side when there is room), workspace (the step's panels), and one action bar
 * per step, sticky at the bottom: back on the left, the state in one sentence, the main action on the right. */
.context-bar {display:grid;grid-template-columns:minmax(0,1fr);gap:8px 24px;align-items:center;margin:0 0 14px}
.context-bar>.task-heading,.context-bar>.stepper {margin:0}
@media(min-width:1100px) and (not ((max-height:500px) and (orientation:landscape))) {.context-bar {grid-template-columns:minmax(0,1fr) minmax(0,640px)}}
.action-bar {position:sticky;bottom:0;z-index:14;display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;margin:16px 0 0;padding:10px 0;border-top:1px solid var(--border);background:inherit}
.action-start,.action-end {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.action-end {margin-left:auto}
.action-status {flex:1 1 260px;min-width:0;margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.action-status b {color:var(--text)}
.action-bar .author-status {display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px}
@media(max-width:650px) {.action-bar {margin-top:12px;padding:8px 0}.action-status {flex-basis:100%;order:-1}}
#app[data-surface=focus] .action-bar {position:static;flex:none;margin:8px 0 0;padding:8px 0 0;box-shadow:none}
.source-meta {display:flex;flex-wrap:wrap;align-items:flex-end;gap:0 18px}
.source-meta>label,.source-meta>.version-limit {flex:1 1 200px;min-width:0;max-width:220px}
@media(max-width:650px) {.source-meta>label,.source-meta>.version-limit {max-width:none;flex-basis:100%}}
/* ADR-157: the version limits beside the language, with what the last check measured. */
.version-limit {margin-bottom:14px}
.version-limit>.setting-head {min-height:20px;font-size:12px;font-weight:600}
/* 8 px above the select: on a touch screen the ⓘ's 44 px frame ends there (ADR-141). */
.version-limit select {width:100%;margin-top:8px}
.version-measured {display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 20px;font-size:12px;color:var(--muted)}
.version-measured[data-stale] {font-style:italic}
/* NY-84 (ADR-211): the libraries the analysis knows, beside what the source was measured to use. */
.library-note {margin-left:auto}
/* On a touch screen the ⓘ's 44 px frame reaches 8 px beyond it (ADR-141): it must end before the chip. */
.library-note>.toggletip {margin-left:6px}
.learner-note>.toggletip {margin-left:6px}
.tech-chip.over {border-color:var(--d-48);color:var(--d-82)}
.version-over {color:var(--d-82);font-weight:600}
/* ADR-123 (M5): the learner's title, description and level, and the way out, beside the try. */
.learner-data {margin:14px 0 0}
.learner-data>summary {display:flex;align-items:center;min-height:var(--control-h);padding:0 12px;font-size:13px;font-weight:600;cursor:pointer}
.learner-data>.form-grid,.learner-data>.inline-hint,.learner-data>.learner-actions {margin:0 12px 10px}
.learner-actions {display:flex;gap:8px;flex-wrap:wrap}
/* ADR-123 (UI4): one notification: a 4 px stripe in its meaning's colour (information, warning, error, success). */
.validation-notice,.draft-notice {border-left-color:var(--a-52)}
.stale-notice,.edit-paused,.notice.tone-warning {border-left-color:var(--yellow)}
.notice.tone-error {border-left-color:var(--d-48)}
.notice.tone-success {border-left-color:var(--ok-line)}
/* ADR-123 (UI4): a phone held upright keeps the app bar to one row too: the logo, the two modes as icon buttons (their
 * names stay as accessible names and titles), then the session, theme and full-screen controls. ADR-137: the logo keeps
 * its wordmark whenever the row fits it (header-fit.ts measures; the data-brand steps are below). */
@media(max-width:650px) and (not ((max-height:500px) and (orientation:landscape))) {
 .header {flex-wrap:nowrap}
 .header {gap:6px;padding-left:12px;padding-right:10px}
 .mode-tabs {order:0;width:auto;flex:0 0 auto;margin:0 auto 0 0;padding:0;gap:4px}
 .mode-tabs button {flex:0 0 auto;width:var(--control-h);min-width:var(--control-h);padding:0;--plate-cut:0}
 .mode-tabs button>span:not(.icon) {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 /* ADR-199, ADR-210: as an icon, a mode shows its name under itself while it has the keyboard's focus. */
 .mode-tabs button:focus-visible>span:not(.icon) {top:calc(100% + 8px);left:0;z-index:60;width:auto;height:auto;overflow:visible;clip-path:none;padding:4px 8px;border:1px solid var(--float-line);border-radius:6px;background:var(--float-fill);box-shadow:var(--float-shadow);color:var(--text);font:600 12px/1.4 var(--ui);pointer-events:none}
 .mode-tabs button:focus-visible {z-index:60}
}
@media(min-width:1100px) and (not ((max-height:500px) and (orientation:landscape))) {
 .context-bar {grid-template-columns:minmax(0,1fr) auto}
 .context-bar .stepper ol {grid-template-columns:repeat(3,max-content)}
 .context-bar .step-text b {white-space:nowrap}
}
/* ADR-123: the focus surface is the code: the learner data panel stays out, and the context bar only holds the compact heading. */
#app[data-surface=focus] .learner-data {display:none}
#app[data-surface=focus] .context-bar {display:block;flex:none;margin:0}
/* ADR-124 (H3): the ⓘ toggletip. A quiet 28 px icon button after its label; the bubble is a floating surface with the
 * topic's sentences, its example and the link to the help page (a new tab). */
.toggletip {display:inline-block;flex:none;vertical-align:middle}
.toggletip>.info-button {width:28px;min-width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--accent-text);justify-content:center}
.toggletip>.info-button:hover:not(:disabled),.toggletip>.info-button[aria-expanded=true] {border:0;background:var(--blue-pale);color:var(--accent-text)}
.toggletip>.info-button .icon {width:16px;height:16px}
/* ADR-141 (T3): the ring 1 px off the button (3 px wide), inside the 6 px gap to the label: it never covers a letter. */
.toggletip>.info-button:focus-visible {outline-offset:1px}
/* ADR-141 (T3): on a touch screen the ⓘ is a 44 px target (an invisible frame around the 28 px button), and the gap to
 * its label grows to 8 px so the frame never takes a tap meant for the label. The layout does not change otherwise. */
@media (pointer:coarse) {
 .toggletip>.info-button {position:relative}
 .toggletip>.info-button::before {content:'';position:absolute;inset:-8px}
}
/* ADR-141 (T1): the bubble is a popover in the top layer, placed beside its button by toggletip.ts (left, top and the
 * height of the room it has); it moves nothing, and above the sticky bars it is never under one. */
.toggletip-panel {position:fixed;inset:auto;margin:0;overflow:auto;overscroll-behavior:contain;width:min(380px,calc(100vw - 32px));min-width:0;gap:8px;padding:12px;font-size:12px;font-weight:400;line-height:1.55;letter-spacing:0;text-transform:none;white-space:normal;color:var(--text);text-align:left}
.toggletip-panel:popover-open {display:grid}
.toggletip-panel[data-placing] {visibility:hidden}
.toggletip-title {font-weight:650;color:var(--n-90)}
.toggletip-panel>p {margin:0}
/* The code example scrolls inside the bubble: a grid item may not grow the bubble to its longest line. */
.toggletip-panel {grid-template-columns:minmax(0,1fr)}
.help-example {min-width:0}
.help-link {display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--accent-text)}
.help-link .icon {width:14px;height:14px}
.help-example {margin:0}
.help-code {margin:0;padding:6px 0;max-height:220px;overflow:auto;font:var(--code-fs)/1.6 var(--mono)}
.help-line {display:block;padding-right:10px;white-space:pre}
.help-ln {display:inline-block;width:2.6em;padding-right:10px;text-align:right;color:var(--muted);user-select:none}
.help-example figcaption {margin-top:6px}
.help-example ul {margin:4px 0 0;padding-left:18px}
/* ADR-141 (T2): an outcome and its trial on one row; the trial keeps its width, the text wraps beside it. */
.help-example li {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;margin:2px 0}
.help-example li>.help-try {margin-left:0}
.help-try-note {margin:6px 0 0;color:var(--muted);font-size:12px}
.inputs-label {display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.setting-head,.task-question,.diagnostics-head,.insight-heading {display:flex;align-items:center;gap:6px}
.setting-head>label {margin:0}
.diagnostics-head>h3 {margin:0}
.diagnostic-message .toggletip {margin-left:6px}
/* ADR-141 (T3): on a touch screen the gap grows to 8 px with the ⓘ's 44 px frame (after the rules above, which it overrides). */
@media (pointer:coarse) {.setting-head,.task-question,.diagnostics-head,.insight-heading,.inputs-label {gap:8px}.diagnostic-message .toggletip,.learner-note>.toggletip {margin-left:8px}
 /* In the inputs line the ⓘ's frame would reach the „2. sor” button on the wrapped line under it: the label takes its own
  * line, 8 px above the sentence, whose lines are tall enough to keep its buttons apart. */
 .inputs-override {line-height:2}.inputs-override>.inputs-label {display:flex;width:max-content;margin-bottom:8px}
 /* A setting's control starts 8 px under its label row, out of the ⓘ's frame (6 px before). */
 .preflight-setting>.setting-head+select {margin-top:8px}}
/* ADR-124 (H2): the help page, with the workbench's tokens and type: a contents list with search beside the text. */
.help-page {background:var(--bg);color:var(--text)}
/* ADR-197: the help's header stays at the top while the page or the contents scroll. Its height is one number
   (--help-bar): the contents stick under it, and a topic opened at its anchor, or reached by Tab, stops under it
   (scroll-padding on the page; WCAG 2.4.11, focus not obscured). */
html:has(.help-page) {--help-bar:56px;scroll-padding-top:var(--help-bar)}
.help-header {position:sticky;top:0;z-index:20;box-sizing:border-box;height:var(--help-bar);display:flex;align-items:center;gap:14px;padding:0 24px;border-bottom:1px solid var(--border);background:var(--bg)}
.help-header .brand {text-decoration:none}
.help-title {font-size:13px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}
.help-layout {display:grid;grid-template-columns:280px minmax(0,1fr);gap:32px;max-width:1180px;margin:0 auto;padding:24px}
.help-toc {position:sticky;top:calc(var(--help-bar) + 16px);align-self:start;max-height:calc(100dvh - var(--help-bar) - 32px);overflow:auto;font-size:13px}
.help-toc ol {margin:0;padding-left:16px}.help-toc>ol {padding-left:0;list-style:none}
.help-toc li {margin:0}.help-toc>ol>li>a {font-weight:700}
/* WCAG 2.5.8: every contents link is a 24 px high target of its own. */
.help-toc a {display:block;min-height:24px;padding:2px 0;line-height:20px}
.help-search {display:grid;gap:4px;margin:0 0 6px;font-size:12px;font-weight:600}
.help-search input {min-height:40px;padding:8px 10px;border:1px solid var(--n-36);background:var(--n-10);color:var(--text);font-size:13px}
.help-count {min-height:1.5em;margin:0 0 8px;font-size:12px;color:var(--muted)}
.help-main {max-width:760px;line-height:1.65}
.help-main h1 {margin:0 0 8px;font-size:26px}
.help-lead {color:var(--muted)}
.help-group {margin:32px 0 0}
.help-group>h2 {margin:0 0 6px;font-size:20px;scroll-margin-top:16px}
.help-topic {margin:18px 0 0;padding:14px 16px;scroll-margin-top:16px}
.help-topic>h3 {margin:0 0 6px;font-size:15px}.help-topic>h3 a {color:inherit;text-decoration:none}
.help-topic:target {border-left:4px solid var(--a-52)}
.help-summary {font-weight:600}
.help-table {overflow:auto;margin-top:10px}
.help-table table {border-collapse:collapse;width:100%;font-size:12px}
.help-table th,.help-table td {padding:6px 8px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
@media(max-width:800px) {html:has(.help-page) {--help-bar:48px}.help-layout {grid-template-columns:minmax(0,1fr);padding:16px;gap:16px}.help-toc {position:static;max-height:none}.help-header {padding:0 16px}}
/* NY-27: the picked row whole in the action bar; it wraps instead of scrolling, so a long row reads on a phone. */
.pick-code {display:block;flex-basis:100%;margin:0 0 6px;padding:4px 8px;border-left:3px solid var(--a-52);background:var(--n-10);font:12px/1.5 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}
.pick-bar {flex-wrap:wrap}
/* ADR-127 (P1): one progress indicator for the work a user waits for. A chip in the top layer, centred above the sticky
   action bar (activity.ts docks it), never under a phone's keyboard or over the main action; it does not take clicks.
   Its 3 px line runs while the work runs, fills when it ends, then the chip fades. */
.activity {position:fixed;inset:auto 16px calc(var(--activity-dock,0px) + 12px + env(safe-area-inset-bottom,0px)) 16px;margin:0 auto;width:fit-content;height:auto;max-width:min(440px,calc(100vw - 32px));overflow:hidden;z-index:1150;padding:9px 14px 12px;color:var(--text);font:12.5px/1.4 var(--ui);pointer-events:none;transition:opacity .25s ease,translate .25s ease}
.activity-text {display:flex;align-items:baseline;gap:10px;white-space:nowrap;min-width:0}.activity-label {overflow:hidden;text-overflow:ellipsis;font-weight:600}.activity-seconds {color:var(--muted);font-variant-numeric:tabular-nums}.activity-seconds:empty {display:none}
.activity-line {position:absolute;left:0;right:0;bottom:0;height:3px;overflow:hidden;background:color-mix(in srgb,var(--accent) 22%,transparent)}
.activity-line::after {content:'';position:absolute;top:0;bottom:0;left:0;width:40%;background:var(--accent);animation:activity-slide 1.2s cubic-bezier(.4,0,.2,1) infinite}
.activity:is([data-phase=settling],[data-phase=leaving]) .activity-line::after {animation:none;width:100%;transition:width .15s ease-out}
.activity[data-phase=leaving] {opacity:0;translate:0 6px}
@keyframes activity-slide {from {translate:-100% 0}to {translate:250% 0}}
@keyframes activity-appear {from {opacity:0}to {opacity:1}}
/* The start of the app shows the same line, and only if loading lasts (the same 400 ms). */
.loading[data-busy] {align-content:center;gap:14px;animation:activity-appear 1ms .4s both}
.loading[data-busy]::after {content:'';width:min(240px,60vw);height:3px;background:linear-gradient(90deg,var(--accent),var(--accent)) no-repeat,color-mix(in srgb,var(--accent) 22%,transparent);background-size:40% 100%,100% 100%;animation:activity-sweep 1.2s cubic-bezier(.4,0,.2,1) infinite}
@keyframes activity-sweep {from {background-position:-67% 0,0 0}to {background-position:167% 0,0 0}}
@media(prefers-reduced-motion:reduce) {.activity-line::after {left:0;width:100%;opacity:.55}.activity:is([data-phase=settling],[data-phase=leaving]) .activity-line::after {opacity:1}.loading[data-busy]::after {background-size:100% 100%,100% 100%;opacity:.55}}
/* ADR-132 (P2): the stage after the name, and after 10 s a way out; only the button takes clicks. */
.activity-detail {color:var(--muted);overflow:hidden;text-overflow:ellipsis}.activity-detail:empty {display:none}.activity-detail::before {content:'· '}
.activity:has(.activity-abort:not([hidden])) {display:flex;align-items:center;gap:12px}
.activity-abort {pointer-events:auto;flex-shrink:0;min-height:32px;padding:4px 12px;font-size:12.5px}
/* ADR-135: an ⓘ bubble is page content (it makes its own room, interactions.ts), so it scrolls under the sticky action
   and result bars (14, 15) like the rest of the step, never over their buttons: z-index 13 instead of the menu panels' 40. */
/* ADR-135 (NY-31): „Kipróbálom” beside each outcome of a help example; a quiet link-like button with a 24 px target, in
   the help link's colour. The listing carries no `language-` class: prism.css would paint its own light background. */
/* ADR-143 (D4a): „Kipróbálom” is a small plate: a button in the bubble, a link on the help page. */
.help-try {--control-h:var(--control-h-sm);margin-left:6px}
.help-example li+li {margin-top:4px}
/* ADR-137: the logo's steps on a narrow app bar, chosen by measuring (header-fit.ts): complete (with the EDITOR label),
   without the label, without the mark, a smaller wordmark, and last the mark alone with the wordmark kept as the
   accessible name. */
.header:not([data-brand=complete]) .brand small {display:none}
.header:is([data-brand=wordmark],[data-brand=small],[data-brand=smaller]) .brand-mark {display:none}
.header[data-brand=small] .brand strong {font-size:14px}
.header[data-brand=smaller] .brand strong {font-size:13px}
.header[data-brand=mark] .brand strong {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* ADR-199: a control that is an icon on the smallest phone is an icon at every width: the menus'
   buttons, the theme, the learner preview and the tools of the workspace (ADR-210: not the two modes, which are
   named buttons wherever the bar has room for the names). Its name stays its accessible name (the
   label is in the markup); a pointer reads it from the title, the keyboard from the label itself, shown as a tip
   under the control while it has the focus. The app bar is one row at every width. This block is the last word:
   the breakpoints above only place the controls. */
.header {flex-wrap:nowrap}
:is(.menu>summary,.header-actions .preview-toggle,.workspace-actions>button,.code-view-switch button) {position:relative;flex:0 0 auto;width:var(--control-h);min-width:var(--control-h);padding:0;justify-content:center;--plate-cut:0}
:is(.menu>summary,.header-actions .preview-toggle,.workspace-actions>button,.code-view-switch button)>span:not(.dirty-dot) {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:is(.menu:not([open])>summary,.header-actions .preview-toggle,.workspace-actions>button,.code-view-switch button):focus-visible>span:not(.dirty-dot) {top:calc(100% + 8px);left:50%;translate:-50% 0;z-index:60;width:auto;height:auto;overflow:visible;clip-path:none;padding:4px 8px;border:1px solid var(--float-line);border-radius:6px;background:var(--float-fill);box-shadow:var(--float-shadow);color:var(--text);font:600 12px/1.4 var(--ui);pointer-events:none}
:is(.menu:not([open])>summary,.header-actions .preview-toggle,.workspace-actions>button,.code-view-switch button):focus-visible {z-index:60}
/* A tip of a control at the right end of its bar grows to the left, one at the left end to the right: it stays on the screen. */
:is(.header-actions>:is(button,details),.workspace-actions>:is(.inspector-toggle,.focus-toggle,details)):is(:focus-visible,:has(>summary:focus-visible)) span:not(.dirty-dot) {left:auto;right:0;translate:none}
.workspace-actions>button:not(.inspector-toggle,.focus-toggle):focus-visible>span:not(.dirty-dot),.open-menu:not([open])>summary:focus-visible>span:not(.dirty-dot) {left:0;translate:none}
.brief-menu:not([open])>summary:focus-visible>span:not(.dirty-dot) {left:auto;right:0;translate:none}


/* ── ADR-213: the opening pages (the application's, the Editor's, the Feladattár's) ──────────────────────────── */
.start-shell {display:block}
.start-page {display:flex;flex-direction:column;gap:clamp(20px,3vw,36px);max-width:1280px;margin:0 auto;padding:clamp(24px,4vw,56px) clamp(16px,5vw,72px)}
.start-page:focus {outline:none}
.start-intro {display:flex;flex-direction:column;gap:10px;max-width:46em}
.start-intro h1,.library-band h1 {margin:0;font-size:clamp(28px,3.6vw,44px);line-height:1.12;font-weight:800;letter-spacing:-.8px}
.start-intro>p:not(.start-kicker),.start-lead {margin:0;font-size:clamp(15px,1.4vw,18px);line-height:1.55;color:var(--muted)}
.start-lead-end {white-space:nowrap}.start-lead-end>.toggletip {margin-left:8px}.start-lead-end .toggletip-panel {white-space:normal}
.start-kicker,.door-kind {margin:0;font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--accent-text)}
a.btn.primary {--plate-face:var(--blue);color:var(--blue-ink)}
a.btn.dark {--plate-face:var(--n-92);color:var(--n-08)}
.start-page :is(a.btn,button.btn) {--control-h:44px;--control-px:20px;--control-fs:14px;text-decoration:none}
.start-page :is(a.btn,button.btn) .icon {margin-left:8px}
/* something to go on with: the whole row is the link */
.continue-row {display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:14px 18px;border:1px solid var(--a-28);border-radius:10px;background:var(--blue-pale);color:var(--text);text-decoration:none}
.continue-row:hover {border-color:var(--blue)}
.continue-kind {font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent-text)}
.continue-title {font-size:15px;font-weight:600}
.continue-detail {font-size:13px;color:var(--muted)}
.continue-go {display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:14px;font-weight:700;color:var(--accent-text)}
.continue-go .icon {width:16px;height:16px}
/* the two doors of the opening page */
.doors {display:flex;flex-wrap:wrap;gap:20px}
.door {flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:16px;padding:clamp(20px,2.6vw,32px);border:1px solid var(--panel-line);border-radius:12px;background:var(--surface)}
.door h2 {margin:0;font-size:clamp(24px,2.6vw,32px);font-weight:800;letter-spacing:-.5px}
.door>p:not(.door-kind,.topic-chips) {margin:0;font-size:15px;line-height:1.55;color:var(--muted)}
.door.editor .door-kind {color:var(--w-72)}
.door-go {align-self:flex-start;margin-top:auto}
.topic-chips {display:flex;flex-wrap:wrap;gap:8px;margin:0}
.topic-chip {padding:4px 10px;border:1px solid var(--border);border-radius:999px;background:var(--bg);font:500 12px/1.5 var(--mono);white-space:nowrap}
.topic-chip b {font-weight:700}
.door-sample {border:1px solid var(--inset-line);border-radius:6px;overflow:hidden;font:12.5px/30px var(--mono);white-space:nowrap}
.door-sample>div {padding:0 10px;overflow:hidden;text-overflow:ellipsis;background:var(--bg)}
.door-sample>div.moved {background:var(--yellow-pale);box-shadow:inset 4px 0 0 var(--yellow)}
.door-sample span {margin-right:10px;color:var(--n-58)}
.start-steps {display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.start-steps li {display:flex;align-items:baseline;gap:12px;font-size:14px;line-height:1.5}
.start-steps p {margin:0}
.start-steps strong {font-weight:600;margin-right:8px}
.start-steps p span {color:var(--muted)}
.start-step-number {font:700 13px var(--mono);color:var(--accent-text)}
.start-footer {display:flex;flex-wrap:wrap;gap:8px 24px;padding-top:16px;border-top:1px solid var(--border);font-size:13px;color:var(--muted)}
.start-footer a {margin-left:auto}
/* the Editor's opening page: three ways to start */
.start-cards {display:flex;flex-wrap:wrap;gap:16px}
.start-card {flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:12px;padding:22px;border:1px solid var(--panel-line);border-radius:12px;background:var(--surface)}
.start-card.own {border:2px solid var(--blue)}
.start-card h2 {margin:0;font-size:20px;font-weight:700}
.start-card p {margin:0;font-size:14px;line-height:1.55;color:var(--muted)}
.start-card-mark {display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;clip-path:polygon(0 0,100% 0,100% 75%,75% 100%,0 100%);background:var(--n-92);color:var(--n-08)}
.start-card.own .start-card-mark {background:var(--blue);color:var(--blue-ink)}
.start-card.example .start-card-mark {background:var(--yellow);color:var(--yellow-ink)}
.start-card-mark .icon {width:20px;height:20px}
.start-card-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.start-card p.saved-work {padding:10px 12px;border-radius:8px;background:var(--raised);color:var(--text);font-size:13px}
.start-strip {padding:clamp(18px,2.4vw,28px);border-radius:10px;background:var(--raised)}
.start-strip .start-steps {flex-direction:row;flex-wrap:wrap;gap:12px 28px}
.start-strip .start-steps li {flex:1 1 220px;min-width:0}
.start-strip .start-step-number {font-size:20px}
.start-strip .start-steps strong {display:block;font-weight:700}
/* the Feladattár's opening page: the search first */
.library-start {max-width:none;padding:0;gap:0}
/* ADR-218: the band's own palette, in one place. A grey band with white text: the band is the lightest grey on which
   white text still reads (4.5:1); the fields are a shade darker, told apart by their line. The palette is the same in
   both themes. */
.library-band {--band:#757676;--band-field:#727272;--band-line:#60646c;--band-text:#fff;--band-hint:#e9eaec;--band-accent:#ffd900;
 display:flex;flex-direction:column;gap:18px;padding:clamp(24px,4vw,48px) clamp(16px,5vw,72px);background:var(--band);color:var(--band-text);clip-path:polygon(0 0,100% 0,100% calc(100% - 24px),calc(100% - 24px) 100%,0 100%)}
/* ADR-226: in the dark theme the band is a raised surface of the theme with a breath of the brand's blue, and its
 * fields are wells in it (darker than the band, with a line that reads 3:1 on both). The yellow of the heading stays. */
@media (prefers-color-scheme:dark) {:root:not([data-theme=light]) .library-band {--band:color-mix(in srgb,var(--n-14) 86%,var(--a-28));--band-field:var(--n-08);--band-line:var(--n-46);--band-text:var(--n-96);--band-hint:var(--n-72)}}
:root[data-theme=dark] .library-band {--band:color-mix(in srgb,var(--n-14) 86%,var(--a-28));--band-field:var(--n-08);--band-line:var(--n-46);--band-text:var(--n-96);--band-hint:var(--n-72)}
.library-band h1 {color:var(--band-text)}
.library-band h1 span {color:var(--band-accent)}
.library-search {display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.library-search>label,.library-version {flex:1 1 150px;min-width:0;display:flex;flex-direction:column;gap:6px;margin:0;font-size:12px;font-weight:600;color:var(--band-text)}
.library-search>label.library-text {flex:999 1 280px}
.library-search :is(input,select) {width:100%;height:48px;margin:0;padding:0 12px;border:1px solid var(--band-line);border-radius:8px;background:var(--band-field);color:var(--band-text);font:400 15px var(--ui)}
.library-search input::placeholder {color:var(--band-hint)}
.library-search :is(input,select):focus-visible {outline:2px solid var(--band-accent);outline-offset:2px}
.library-version .tech-filter {margin:0;padding:0;border:0;background:none;gap:6px}
.library-version .tech-select {display:flex;flex-direction:column;gap:6px}
.library-version :is(.tech-select-head label,.tech-earlier) {color:var(--band-text);font-size:12px;font-weight:600}
.library-version .info-button {color:var(--band-text)}
.library-body {display:flex;flex-wrap:wrap;align-items:flex-start;gap:clamp(20px,3vw,40px);max-width:1280px;width:100%;box-sizing:border-box;margin:0 auto;padding:clamp(24px,3vw,40px) clamp(16px,5vw,72px)}
.library-results {flex:999 1 460px;min-width:0;display:flex;flex-direction:column;gap:10px}
.result-count {margin:0;font-size:13px;color:var(--muted)}
.result-list {display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.result-row {display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;width:100%;min-height:52px;box-sizing:border-box;padding:8px 16px;border:1px solid var(--panel-line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.result-row:hover {border-color:var(--blue)}
.result-row.own {border-style:dashed}
.result-row strong {flex:1 1 180px;min-width:0;font-size:15px;font-weight:600}
.result-where {font-size:13px;color:var(--muted)}
.result-chips {display:inline-flex;flex-wrap:wrap;gap:4px}
.no-results {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0;padding:18px;border:1px dashed var(--panel-line);border-radius:8px;color:var(--muted)}
.first-steps {flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:14px;padding:22px;border-radius:12px;background:var(--raised)}
.first-steps h2 {margin:0;font-size:18px;font-weight:800}
.first-steps .start-steps {gap:12px}
.first-steps .start-steps strong {display:block}
.first-steps .btn {align-self:flex-start}
