/* School palette based on Python Junior. Component rules consume these roles
   across the cabinet, classroom and all courses. */
html[data-school-theme="dark"]{
 color-scheme:dark;
 --school-canvas:#201c1a;--school-chrome:#29231f;--school-surface:#2c2521;--school-raised:#362e29;--school-hover:#403631;
 --school-ink:#f2e9e0;--school-muted:#c5b5a7;--school-line:#5d4e46;--school-input-line:#988577;
 --school-action:#bb3e58;--school-action-hover:#c3445c;--school-action-ink:#fff6f5;--school-action-edge:#752437;
 --school-link:#ffadb8;--school-active:#452a32;--school-focus:#edca89;
 --school-theory:#d1bff5;--school-theory-bg:#302934;--school-theory-line:#937eb0;--school-theory-on:#261b31;
 --school-good:#9cdbac;--school-good-bg:#26382d;--school-good-line:#6e9476;--school-good-on:#201c1a;
 --school-warning:#efc779;--school-warning-bg:#382b1e;--school-warning-line:#aa8555;--school-warning-on:#201c1a;
 --school-typing:#f7b5d0;--school-typing-bg:#472938;--school-typing-line:#c37e9f;--school-typing-accent:#efa6c7;--school-typing-on:#391326;
 --school-home:#e2b9ea;--school-home-bg:#392b3b;--school-home-line:#ab83b2;--school-home-on:#2e1c32;
 --school-error:#ffb0b8;--school-error-bg:#442b30;--school-error-line:#c2757c;
 --school-code-bg:#1c1917;--school-code-muted:#b7a597;--school-token-builtin:#a3d9dc;
 --school-variable-ink:#ffdaea;--school-variable-shadow:#cb649688;
}
html[data-school-theme="light"]{
 color-scheme:light;
 --school-canvas:#fbf5ee;--school-chrome:#f6ece2;--school-surface:#fffdf9;--school-raised:#f0e5da;--school-hover:#eadbce;
 --school-ink:#302420;--school-muted:#68554c;--school-line:#d8c6b8;--school-input-line:#8e7668;
 --school-action:#a52a49;--school-action-hover:#8e2545;--school-action-ink:#fffdf9;--school-action-edge:#702038;
 --school-link:#8e2545;--school-active:#f9e3e9;--school-focus:#8e2545;
 --school-theory:#5d3d81;--school-theory-bg:#f2eaf8;--school-theory-line:#8f71a8;--school-theory-on:#fffdf9;
 --school-good:#246044;--school-good-bg:#e6f1e7;--school-good-line:#5d8569;--school-good-on:#fffdf9;
 --school-warning:#774707;--school-warning-bg:#fff0d7;--school-warning-line:#a77b3f;--school-warning-on:#fffdf9;
 --school-typing:#84224f;--school-typing-bg:#fbe1ec;--school-typing-line:#a84774;--school-typing-accent:#eda0c0;--school-typing-on:#421128;
 --school-home:#703b79;--school-home-bg:#f4e6f4;--school-home-line:#9b72a0;--school-home-on:#fffdf9;
 --school-error:#9c2440;--school-error-bg:#fbe5e8;--school-error-line:#b86172;
 --school-code-bg:#fff9f1;--school-code-muted:#68554c;--school-token-builtin:#22636b;
 --school-variable-ink:#65213f;--school-variable-shadow:#cb649676;
}
html[data-school-theme]{
 --school-callout:var(--school-raised);--school-soft:var(--school-raised);
 --school-wallet-line:var(--school-warning-line);--school-wallet-bg:var(--school-warning-bg);--school-wallet-ink:var(--school-warning);--school-wallet-strong:var(--school-warning);
 --school-hero-line:var(--school-line);--school-hero-bg:var(--school-raised);--school-eyebrow:var(--school-warning);--school-soft-ink:var(--school-muted);--school-accent-line:var(--school-line);--school-callout-ink:var(--school-ink);
 --school-node-line:var(--school-input-line);--school-node-bg:var(--school-surface);--school-node-ink:var(--school-ink);--school-node-hover:var(--school-hover);
 --school-lock-bg:var(--school-raised);--school-lock-ink:var(--school-muted);--school-lock-canvas:var(--school-surface);
 --school-code-ink:var(--school-ink);--school-code-header:var(--school-raised);
 --school-token-keyword:var(--school-theory);--school-token-string:var(--school-warning);--school-token-number:var(--school-good);--school-token-comment:var(--school-code-muted);
 --python-error-color:var(--school-error);--python-completion-bg:var(--school-surface);--python-completion-ink:var(--school-ink);--python-completion-line:var(--school-input-line);--python-completion-selected:var(--school-active);
}
/* Compact layout uses CSS geometry, never browser zoom or transformed editors. */
html[data-school-theme]{
 --school-body-size:14px;--school-caption-size:13px;--school-heading-size:clamp(24px,2vw,28px);
 --school-control-height:40px;--school-density-gap:16px;--school-density-pad:16px;
 --school-sidebar-width:200px;--school-workspace-pad:clamp(16px,2vw,32px);
}
@media(max-width:760px),(pointer:coarse){html[data-school-theme]{--school-control-height:44px}}
html[data-school-theme] .school-theme-control{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;margin:0;color:var(--school-muted);font:400 13px/1.4 "Segoe UI",system-ui,sans-serif;white-space:nowrap}
html[data-school-theme] .school-theme-control>span{display:block;margin:0;color:var(--school-muted);font:inherit}
html[data-school-theme] .school-theme-control>select{box-sizing:border-box;width:120px;max-width:100%;min-height:36px;margin:0;padding:6px 10px;border:1px solid var(--school-input-line);border-radius:10px;background:var(--school-surface);color:var(--school-ink);font:600 13px/1.4 "Segoe UI",system-ui,sans-serif;cursor:pointer;color-scheme:inherit}
html[data-school-theme] .school-theme-control>select:focus-visible{outline:3px solid var(--school-focus);outline-offset:3px}
html[data-school-theme] body.zaytishka-shell{
 --zs-canvas:var(--school-canvas);--zs-surface:var(--school-surface);--zs-ink:var(--school-ink);--zs-muted:var(--school-muted);--zs-line:var(--school-line);
 --zs-violet:var(--school-action);--zs-violet-dark:var(--school-action-hover);--zs-lavender:var(--school-active);--zs-sage:var(--school-callout);
 --v2-muted:var(--school-muted);--v2-action:var(--school-action);--v2-action-dark:var(--school-action-hover);
 color-scheme:inherit;background:var(--school-canvas);color:var(--school-ink);
}
html[data-school-theme] body.zaytishka-shell :is(aside,.topbar,.zaytishka-welcome,.zaytishka-stat,.calendar,.table-wrap,.card,.mobile-card,.mobile-metric,.mobile-empty,dialog){background:var(--school-surface);border-color:var(--school-line);color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell.mobile-cabinet{--mobile-ink:var(--school-ink);--mobile-muted:var(--school-muted);--mobile-line:var(--school-line);--mobile-purple:var(--school-action)}
html[data-school-theme] body.zaytishka-shell.mobile-cabinet :is(button,.button){background:var(--school-surface);border-color:var(--school-line);color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell.mobile-cabinet :is(button,.button).primary{background:var(--school-action);border-color:var(--school-action);color:var(--school-action-ink)}
html[data-school-theme] body.zaytishka-shell.mobile-cabinet :is(button,.button).danger{background:var(--school-error-bg);border-color:var(--school-input-line);color:var(--python-error-color)}
html[data-school-theme] body.zaytishka-shell.mobile-cabinet .link{background:transparent;color:var(--school-link)}
html[data-school-theme] body.zaytishka-shell.mobile-cabinet #mobile-dock button{color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell.mobile-cabinet #mobile-dock [aria-current="page"]{background:var(--school-active);color:var(--school-link)}
html[data-school-theme] body.zaytishka-shell :is(.brand small,.workspace-kicker,.zaytishka-welcome-copy .eyebrow,.zaytishka-welcome-copy p,.zaytishka-stat small,.zaytishka-stat span,.topbar #identity,.zs-learning-intro p){color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell :is(button,.button).primary{background:var(--school-action);border-color:var(--school-action);color:var(--school-action-ink)}
html[data-school-theme] body.zaytishka-shell :is(button,.button).primary:hover:not(:disabled){background:var(--school-action-hover);border-color:var(--school-action-hover);color:var(--school-action-ink)}
html[data-school-theme] body.zaytishka-shell :is(input,select,textarea){background:var(--school-surface);color:var(--school-ink);border-color:var(--school-input-line);color-scheme:inherit}
html[data-school-theme] body.zaytishka-shell :is(button,.button):hover:not(:disabled):not([aria-disabled="true"]){background:var(--school-hover);border-color:var(--school-input-line)}
html[data-school-theme] body.zaytishka-shell #nav button.active{background:var(--school-active);color:var(--school-link)}
html[data-school-theme] body.zaytishka-shell #nav button.active::before{color:var(--school-link)}
html[data-school-theme] body.zaytishka-shell #nav button{color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell .topbar #identity{background:var(--school-chrome);border-color:var(--school-line)}
html[data-school-theme] body.zaytishka-shell[data-school-role="parent"]{--zp-muted:var(--school-muted);--zp-line:var(--school-line);--zp-ink:var(--school-ink);--zp-purple:var(--school-link);--zp-sage:var(--school-hero-bg)}
html[data-school-theme] body.zaytishka-shell[data-school-role="parent"] :is(.zp-child,.zp-empty,.zp-homework,.zp-lesson,.zp-feedback,.zp-next,.zp-journal){background:var(--school-surface);color:var(--school-ink);border-color:var(--school-line)}
html[data-school-theme] body.zaytishka-shell[data-school-role="parent"] :is(.zp-kicker,.zp-welcome p,.zp-welcome-caption){color:var(--school-soft-ink)}
html[data-school-theme] body.zaytishka-shell :is(.zs-course-card,.zs-portfolio-card){background:var(--school-surface);border-color:var(--school-line)}
html[data-school-theme] body.zaytishka-shell :is(.zs-course-card>p:not(.muted):not(.course-lock-note),.zs-course-card>p.muted,.zs-portfolio-card>p){color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell :is(.homework-card,.reward-card,.family-card,.family-panel,.lesson-card,.calendar-popover,.class-hero,#mobile-dock,.mobile-table tbody tr){background:var(--school-surface);border-color:var(--school-line);color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell :is(th,td){background:var(--school-surface);border-color:var(--school-line);color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell th{background:var(--school-chrome);color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell :is(tbody tr:hover td,.selected-month td){background:var(--school-active)}
html[data-school-theme] body.zaytishka-shell :is(.calendar-weekday,.calendar-day,.secondary,.course-lock-note),html[data-school-theme] body.zaytishka-shell #support a{color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell .calendar-day.selected{background:var(--school-action);border-color:var(--school-action);color:var(--school-action-ink)}
html[data-school-theme] body.zaytishka-shell :is(button,.button).primary:hover:not(:disabled){background:var(--school-action-hover);border-color:var(--school-action-hover);color:var(--school-action-ink)}
html[data-school-theme] body.owner-lesson-body[data-ol-program]{
 --zl-canvas:var(--school-canvas);--zl-surface:var(--school-surface);--zl-ink:var(--school-ink);--zl-muted:var(--school-muted);--zl-line:var(--school-line);
 --zl-violet:var(--school-action);--zl-violet-dark:var(--school-action-hover);
 background:var(--school-canvas)!important;color:var(--school-ink)!important;color-scheme:inherit;
}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-header,.ol-sidebar,.ol-footer,.ol-main,.ol-title){background:var(--school-canvas)!important;color:var(--school-ink)!important;border-color:var(--school-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-header,.ol-sidebar){background:var(--school-chrome)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-card,.ol-options label,.ol-answer-label,.ol-match,.ol-example-code,.ol-example-result){background:var(--school-surface)!important;color:var(--school-ink)!important;border-color:var(--school-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-story,.ol-assignment,.ol-input,.ol-output,.ol-location){background:var(--school-callout)!important;color:var(--school-ink)!important;border-color:var(--school-accent-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-draft-recovery{background:var(--school-callout)!important;color:var(--school-ink)!important;border-color:var(--school-accent-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-card p,.ol-card li,.ol-card strong,.ol-python-prose,.ol-python-prose strong,.ol-title h2,.ol-sidebar h1,.ol-header strong){color:var(--school-ink)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-card h3,.ol-card h4,.ol-content-pages,.ol-header a,.ol-header span,.ol-card figcaption,#ol-status){color:var(--school-muted)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card h3{background:var(--school-active)!important;color:var(--school-ink)!important;border-color:var(--school-accent-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(button,.ol-header select,.ol-answer-label textarea,.ol-input-values textarea,.ol-match select){background:var(--school-surface)!important;color:var(--school-ink)!important;border-color:var(--school-input-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] button:hover:not(:disabled){background:var(--school-hover)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-primary{background:var(--school-action)!important;color:var(--school-action-ink)!important;border-color:var(--school-action)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-code,#ol-terminal .python-console){background:var(--school-code-bg)!important;border-color:var(--school-input-line)!important;color:var(--school-code-ink)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-code header,.ol-new-file){background:var(--school-code-header)!important;color:var(--school-code-ink)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.python-highlight,#ol-terminal .python-console-title,#ol-terminal .python-console-output){background:var(--school-code-bg)!important;color:var(--school-code-ink)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .python-editor #ol-code{background:transparent!important;color:transparent!important;caret-color:var(--school-code-ink)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.python-lines,#ol-terminal .python-console-status){color:var(--school-code-muted)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-terminal .python-console-output{scrollbar-color:var(--school-code-muted) var(--school-code-bg)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-terminal .python-console-output::-webkit-scrollbar-track{background:var(--school-code-bg)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-terminal .python-console-output::-webkit-scrollbar-thumb{background:var(--school-code-muted);border-color:var(--school-code-bg)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-terminal .python-console-input input{background:var(--school-code-bg)!important;color:var(--school-code-ink)!important;border-color:var(--school-input-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-terminal .python-console-echo{color:var(--school-token-builtin)!important}
html[data-school-theme] .py-keyword{color:var(--school-token-keyword)}html[data-school-theme] .py-string{color:var(--school-token-string)}html[data-school-theme] .py-number{color:var(--school-token-number)}html[data-school-theme] .py-builtin{color:var(--school-token-builtin)}html[data-school-theme] .py-comment{color:var(--school-token-comment)}
html[data-school-theme] .ol-solution-dialog{background:var(--school-surface);color:var(--school-ink);border-color:var(--school-line)}
html[data-school-theme] .ol-solution-dialog :is(h2,li){color:var(--school-ink)}html[data-school-theme] .ol-solution-dialog .ol-solution-note{color:var(--school-muted)}
html[data-school-theme] .ol-solution-dialog pre{background:var(--school-code-bg);color:var(--school-code-ink)}
html[data-school-theme] .python-console-traceback{color:var(--python-error-color)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.quiz-correct,.ol-options label.quiz-correct){background:var(--school-good-bg)!important;color:var(--school-good)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.quiz-wrong,.ol-options label.quiz-wrong){background:var(--school-error-bg)!important;color:var(--python-error-color)!important}
@media(max-width:760px){html[data-school-theme] .school-theme-control>span{display:none}html[data-school-theme] .school-theme-control>select{width:112px;min-height:34px}html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-header{height:auto;min-height:64px;gap:10px;padding:8px 12px;flex-wrap:wrap}html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-header .school-theme-control{margin-left:auto}}

/* Both palettes assign ink together with its surface. These mappings cover
   legacy nested cards whose fixed pale backgrounds previously survived dark
   mode. They affect the school document, never the Scratch iframe or artwork. */
html[data-school-theme] .school-theme-control{font-size:16px;line-height:1.5;gap:10px}
html[data-school-theme] .school-theme-control>select{width:140px;min-height:44px;padding:8px 12px;font-size:18px;line-height:1.4}
html[data-school-theme] body.zaytishka-shell{font-size:var(--school-body-size);line-height:1.45;--zs-violet-dark:var(--school-link)}
html[data-school-theme] body.zaytishka-shell :is(p,.card p,.instructions,.native-paragraph){font-size:var(--school-body-size);line-height:1.45;overflow-wrap:anywhere}
html[data-school-theme] body.zaytishka-shell h1{font-size:var(--school-heading-size);line-height:1.2;letter-spacing:-.025em}
html[data-school-theme] body.zaytishka-shell h2{font-size:24px;line-height:1.3;letter-spacing:-.02em}
html[data-school-theme] body.zaytishka-shell :is(h3,.card h2){font-size:20px;line-height:1.3;letter-spacing:-.015em}
html[data-school-theme] body.zaytishka-shell :is(label,.muted,.caption,.readonly-note,.badge,.preview-tag,.calendar-weekday,.zaytishka-stat small,.zaytishka-stat span){font-size:var(--school-caption-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell :is(.muted,.caption,.readonly-note,.role-label>span,.student-payment small,.student-payment span,.class-hero p,.class-hero .eyebrow,.hero-chips span){color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell :is(button,.button,input,select,textarea){min-width:0;max-width:100%;font-size:var(--school-body-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell :is(button,.button){min-height:var(--school-control-height);border-color:var(--school-input-line);background:var(--school-surface);color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell :is(button,.button).link{min-height:0;background:transparent;border-color:transparent;color:var(--school-link);font-size:var(--school-body-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell :is(button,.button).link:hover:not(:disabled){background:var(--school-active);color:var(--school-link)}
html[data-school-theme] body.zaytishka-shell :is(button,.button).primary{background:var(--school-action);border-color:var(--school-action);color:var(--school-action-ink)}
html[data-school-theme] body.zaytishka-shell :is(button,.button).primary:hover:not(:disabled){background:var(--school-action-hover);border-color:var(--school-action-hover);color:var(--school-action-ink)}
html[data-school-theme] body.zaytishka-shell :is(button,.button).danger{background:var(--school-error-bg);border-color:var(--school-error-line);color:var(--school-error)}
html[data-school-theme] body.zaytishka-shell :is(button,.button).danger:hover:not(:disabled){background:var(--school-error-bg);border-color:var(--school-error);color:var(--school-error)}
html[data-school-theme] body.zaytishka-shell :is(button,input,select,textarea):disabled{background:var(--school-raised);color:var(--school-muted);border-color:var(--school-line);opacity:1;cursor:default}
html[data-school-theme] body.zaytishka-shell :is(input,textarea)[readonly]{background:var(--school-raised);color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell :is(input,textarea)::placeholder{color:var(--school-muted);opacity:1}
html[data-school-theme] body.zaytishka-shell :is(input[type="radio"],input[type="checkbox"]){accent-color:var(--school-action);min-height:20px;width:20px;height:20px}
html[data-school-theme] body.zaytishka-shell :is(input,select,textarea,button,.button,a):focus-visible{outline:3px solid var(--school-focus);outline-offset:3px}
html[data-school-theme] body.zaytishka-shell [tabindex]:not([tabindex="-1"]):focus-visible{outline:3px solid var(--school-focus);outline-offset:3px}
html[data-school-theme] body.zaytishka-shell #nav button{font-size:var(--school-body-size);min-height:var(--school-control-height);line-height:1.4}
html[data-school-theme] body.zaytishka-shell #nav button.active{background:var(--school-active);color:var(--school-link)}
html[data-school-theme] body.zaytishka-shell #nav button.active::before{color:var(--school-link)}
html[data-school-theme] body.zaytishka-shell #nav button:hover:not(:disabled){background:var(--school-hover);color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell .topbar{height:auto;min-height:92px;gap:12px;padding-block:16px;flex-wrap:wrap}
html[data-school-theme] body.zaytishka-shell .topbar :is(#identity,#page-name){font-size:var(--school-body-size);line-height:1.4}
html[data-school-theme] body.zaytishka-shell .topbar :is(#logout,#mobile-app-install){font-size:var(--school-body-size)!important;line-height:1.45;min-height:44px;background:var(--school-raised);color:var(--school-ink);border-color:var(--school-input-line)}
html[data-school-theme] body.zaytishka-shell .topbar :is(#logout,#mobile-app-install):hover:not(:disabled){background:var(--school-hover);color:var(--school-ink);border-color:var(--school-input-line)}
html[data-school-theme] body.zaytishka-shell .topbar :is(#logout,#mobile-app-install,#display-settings):focus-visible{outline:3px solid var(--school-focus);outline-offset:3px}
html[data-school-theme] body.zaytishka-shell #display-settings{width:44px;min-width:44px;min-height:44px;border-color:var(--school-input-line);color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell.mobile-cabinet #display-settings{background:var(--school-surface);color:var(--school-muted);border-color:var(--school-input-line)}
html[data-school-theme] body.zaytishka-shell.mobile-cabinet #display-settings:hover:not(:disabled){background:var(--school-hover);color:var(--school-ink);border-color:var(--school-input-line)}
html[data-school-theme] body.zaytishka-shell.mobile-cabinet #mobile-dock button{font-size:var(--school-caption-size);line-height:1.35}
html[data-school-theme] body.zaytishka-shell .workspace-kicker{font-size:var(--school-caption-size);letter-spacing:.05em}
html[data-school-theme] body.zaytishka-shell #role-tools :is(select,#preview-target){min-height:44px;background:var(--school-surface);color:var(--school-ink);border-color:var(--school-input-line);font-size:var(--school-body-size);color-scheme:inherit}
html[data-school-theme] body.zaytishka-shell #role-tools .role-label>span{font-size:var(--school-caption-size);color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell :is(select,#preview-role,#preview-target) option{background:var(--school-surface);color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell :is(.group-release-summary,.credentials,.student-payment,.ai-access-status>div,.payment-forecast-entry,.hero-chips span,fieldset,.availability,.initial-payment){background:var(--school-raised);color:var(--school-ink);border-color:var(--school-line)}
html[data-school-theme] body.zaytishka-shell .group-release-summary{padding:12px;gap:6px;font-size:var(--school-body-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell .group-release-summary :is(strong,span){color:var(--school-ink);font-size:var(--school-body-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell .group-release-summary span{color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell :is(.cards.group-cards,.cards.individual-cards){grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
html[data-school-theme] body.zaytishka-shell :is(.group-cards,.individual-cards)>.card{padding:16px;min-width:0}
html[data-school-theme] body.zaytishka-shell :is(.group-cards,.individual-cards) .row{gap:12px;align-items:stretch}
html[data-school-theme] body.zaytishka-shell :is(.group-cards,.individual-cards) .row button{flex:1 1 128px;padding:8px 12px}
html[data-school-theme] body.zaytishka-shell .badge{background:var(--school-raised);color:var(--school-ink);border:1px solid var(--school-line)}
html[data-school-theme] body.zaytishka-shell :is(.badge.warning,.preview-tag){background:var(--school-warning-bg);color:var(--school-warning);border-color:var(--school-warning-line)}
html[data-school-theme] body.zaytishka-shell :is(.badge.success,.badge.access-open,.balance-result){background:var(--school-good-bg);color:var(--school-good);border-color:var(--school-good-line)}
html[data-school-theme] body.zaytishka-shell :is(.badge.intro-badge,.empty){background:var(--school-raised);color:var(--school-muted);border-color:var(--school-line)}
html[data-school-theme] body.zaytishka-shell :is(.form-error,.field-error){color:var(--school-error)}
html[data-school-theme] body.zaytishka-shell .form-error{background:var(--school-error-bg);border-color:var(--school-error-line)}
html[data-school-theme] body.zaytishka-shell [aria-invalid="true"]{border-color:var(--school-error);outline-color:var(--school-error)}
html[data-school-theme] body.zaytishka-shell table{font-size:var(--school-body-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell th{font-size:var(--school-caption-size);line-height:1.5}
html[data-school-theme] body.zaytishka-shell :is(th,td){overflow-wrap:anywhere}
html[data-school-theme] body.zaytishka-shell dialog{max-width:min(900px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:24px}
html[data-school-theme] body.zaytishka-shell dialog #close{background:var(--school-raised);color:var(--school-ink);border-color:var(--school-line)}
html[data-school-theme] body.zaytishka-shell dialog::backdrop{background:#0009}
html[data-school-theme] body.zaytishka-shell :is(.brand small,.zaytishka-welcome-copy .eyebrow,.zs-learning-intro .eyebrow,.zs-learning-intro>span){font-size:var(--school-caption-size);line-height:1.5;letter-spacing:.02em;color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell .zs-learning-intro>span{background:var(--school-raised);border-color:var(--school-line)}
html[data-school-theme] body.zaytishka-shell .zs-art-caption{font-size:var(--school-caption-size);line-height:1.4;background:var(--school-surface);color:var(--school-ink);border-color:var(--school-line);letter-spacing:.02em}
html[data-school-theme] body.zaytishka-shell .zs-course-card>p:not(.muted):not(.course-lock-note){font-size:var(--school-body-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell :is(.zs-course-card>p.muted,.zs-course-card>.course-lock-note){font-size:var(--school-caption-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] :is(.zs-student-eyebrow,.zs-student-current,.zs-student-course-summary,.learner-stats>div>span,.learner-stats small,.path-caption strong,.path-caption>span,.path-caption small,.homework-stop .path-caption>span,.flex-pill){font-size:var(--school-caption-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-student-welcome-copy>p{font-size:var(--school-body-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-student-continue{font-size:var(--school-body-size);line-height:1.5}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .learning-heading .eyebrow{font-size:var(--school-caption-size);line-height:1.5}
html[data-school-theme] body.zaytishka-shell .lesson-material strong{font-size:var(--school-body-size);line-height:1.45}

/* Shared lesson shell. The lesson paginator still owns reading height and
   page breaks; increasing the text size must not clip or scale its content. */
html[data-school-theme] body.owner-lesson-body[data-ol-program]{
 --ol-ink:var(--school-ink);--ol-muted:var(--school-muted);--ol-accent:var(--school-link);--ol-line:var(--school-line);
 --zl-lavender:var(--school-active);--zl-sage:var(--school-good-bg);--zl-peach:var(--school-warning-bg);
 --ol-quiz-accent:var(--school-action);--ol-quiz-selected:var(--school-active);--ol-quiz-border:var(--school-line);--ol-quiz-ink:var(--school-ink);
 font-size:18px;line-height:1.55;
}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-main,.ol-body,.ol-task-pane,.ol-visual-copy,.ol-workspace,.ol-card){min-width:0}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-header{height:auto;min-height:76px;gap:18px;padding:12px 24px;flex-wrap:wrap;font-size:18px;line-height:1.4}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-header :is(a,strong,select){font-size:18px!important;line-height:1.4}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-header :is(a,span){color:var(--school-muted)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-header>span{font-size:16px;max-width:28ch;min-width:0}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-title h2{font-size:clamp(28px,2.3vw,36px)!important;line-height:1.25;letter-spacing:-.02em}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-title small,.ol-sidebar p,#ol-status,.ol-content-pages,.ol-nav-pages){font-size:16px!important;line-height:1.5;color:var(--school-muted)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-title small{color:var(--school-warning)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-card p,.ol-card li,.ol-python-prose p,.ol-python-prose li){font-size:clamp(20px,1.3vw,23px)!important;line-height:1.6!important;max-width:60ch;overflow-wrap:anywhere;text-wrap:pretty}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card p+p{margin-top:16px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card li+li{margin-top:12px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card strong{font-weight:700}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card em{color:var(--school-muted)!important;font-style:normal}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card :is(h3,h4){font-size:18px!important;line-height:1.5;letter-spacing:0;text-transform:none;background:transparent!important;color:var(--school-muted)!important;border-color:var(--school-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card h3{margin-bottom:16px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-copy-question,.ol-python-pronunciation){background:var(--school-warning-bg)!important;color:var(--school-warning)!important;border-color:var(--school-warning-line)!important;border-radius:12px;padding:16px 18px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card .ol-copy-question{font-size:clamp(22px,1.6vw,26px)!important;line-height:1.45!important;font-weight:700;max-width:48ch;margin-bottom:16px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card .ol-copy-question strong{color:var(--school-warning)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card .ol-python-pronunciation{font-size:18px!important;line-height:1.55!important;color:var(--school-warning)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-copy-concept,.ol-example,.ol-story,.ol-location,.ol-input,.ol-assignment,.ol-python-hint){background:var(--school-raised)!important;color:var(--school-ink)!important;border-color:var(--school-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-copy-concept{padding:18px 20px;margin-top:18px;border-left:4px solid var(--school-warning)!important;border-radius:12px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-copy-concept h4{font-size:18px!important;color:var(--school-warning)!important;margin:0 0 10px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-output,.ol-example-result,.ol-python-check){background:var(--school-good-bg)!important;border-color:var(--school-good-line)!important;color:var(--school-ink)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card mark{background:var(--school-warning-bg);color:var(--school-warning);border-radius:5px;padding:1px 4px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-python-copy,.ol-python-rich-card,.ol-python-prose) code{background:var(--school-warning-bg);color:var(--school-warning);font-size:.95em;border-radius:5px;padding:1px 4px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-python-copy,.ol-python-rich-card,.ol-python-prose) code strong{color:var(--school-warning)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card figure{background:var(--school-raised);border-color:var(--school-line);border-radius:14px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card figcaption{color:var(--school-muted)!important;font-size:16px!important;line-height:1.55;padding-top:12px;overflow-wrap:anywhere}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(button,.ol-header select,.ol-match select,.ol-answer-label textarea,.ol-input-values textarea){min-width:0;max-width:100%;font-size:18px!important;line-height:1.45;min-height:44px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-answer-label,.ol-input-values){font-size:16px!important;line-height:1.5;color:var(--school-muted)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(button,.ol-header select,.ol-answer-label textarea,.ol-input-values textarea,.ol-match select,a):focus-visible{outline:3px solid var(--school-focus)!important;outline-offset:3px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] [tabindex]:not([tabindex="-1"]):focus-visible{outline:3px solid var(--school-focus)!important;outline-offset:3px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(button,select,textarea):disabled{background:var(--school-raised)!important;color:var(--school-muted)!important;border-color:var(--school-line)!important;opacity:1;cursor:default}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-primary,.python-console-run):not(:disabled){background:var(--school-action)!important;border-color:var(--school-action)!important;color:var(--school-action-ink)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-primary,.python-console-run):hover:not(:disabled){background:var(--school-action-hover)!important;border-color:var(--school-action-hover)!important;color:var(--school-action-ink)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-footer{gap:12px;flex-wrap:wrap}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-footer button{min-height:46px;padding:10px 18px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-download{background:var(--school-raised);color:var(--school-link);border-color:var(--school-input-line);font-size:18px;line-height:1.5}

/* Navigation and quiz state variables must travel as foreground/surface pairs;
   a selected answer is distinct from a checked right or wrong answer. */
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button{
 --ol-number-surface:var(--school-raised);--ol-number-ink:var(--school-ink);--ol-number-border:var(--school-line);--ol-number-accent:var(--school-action);
 background:var(--ol-number-surface)!important;color:var(--ol-number-ink)!important;border-color:var(--ol-number-border)!important;font-size:18px!important;min-width:44px;min-height:44px!important;
}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button:is(.visited,.done){--ol-number-surface:var(--school-good-bg);--ol-number-ink:var(--school-good);--ol-number-border:var(--school-good-line)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button:is(.selected,.active,[aria-current="step"]){--ol-number-surface:var(--school-action);--ol-number-ink:var(--school-action-ink);--ol-number-border:var(--school-action)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button:hover:not(:disabled){filter:none;border-color:var(--school-input-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-options label{
 --ol-option-surface:var(--school-surface);--ol-option-ink:var(--school-ink);--ol-option-border:var(--school-input-line);--ol-option-badge:var(--school-raised);--ol-option-badge-ink:var(--school-muted);
 background:var(--ol-option-surface)!important;color:var(--ol-option-ink)!important;border-color:var(--ol-option-border)!important;font-size:20px!important;line-height:1.55;box-shadow:none;min-width:0;
}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-options label:hover{--ol-option-surface:var(--school-hover);--ol-option-border:var(--school-link);background:var(--ol-option-surface)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-options label:focus-within{outline:3px solid var(--school-focus);outline-offset:3px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-options label:has(input:checked){--ol-option-surface:var(--school-active);--ol-option-ink:var(--school-ink);--ol-option-border:var(--school-action);--ol-option-badge:var(--school-action);--ol-option-badge-ink:var(--school-action-ink)}
html[data-school-theme] body.owner-lesson-body[data-ol-program][data-ol-quiz] .ol-options label.quiz-correct{--ol-option-surface:var(--school-good-bg);--ol-option-ink:var(--school-good);--ol-option-border:var(--school-good-line);--ol-option-badge:var(--school-good-bg);--ol-option-badge-ink:var(--school-good);background:var(--ol-option-surface)!important;color:var(--ol-option-ink)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program][data-ol-quiz] .ol-options label.quiz-wrong{--ol-option-surface:var(--school-error-bg);--ol-option-ink:var(--school-error);--ol-option-border:var(--school-error-line);--ol-option-badge:var(--school-error-bg);--ol-option-badge-ink:var(--school-error);background:var(--ol-option-surface)!important;color:var(--ol-option-ink)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-option-letter{font-size:18px;background:var(--ol-option-badge);color:var(--ol-option-badge-ink)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-option-text{font-size:20px!important;line-height:1.55}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-options input{accent-color:var(--school-action)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-quiz-feedback{font-size:16px;line-height:1.5}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-quiz-feedback.quiz-correct{background:transparent!important;color:var(--school-good)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-quiz-feedback.quiz-wrong{background:transparent!important;color:var(--school-error)!important}

/* Code, diagnostics and suggestion lists use their own complete colour pairs. */
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-code:focus-within{outline:3px solid var(--school-focus);outline-offset:-3px;border-color:var(--school-focus)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-code .python-editor :is(.python-highlight,#ol-code,.python-lines){font-family:Consolas,"Courier New",monospace!important;font-size:18px!important;line-height:1.6!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-scratch{display:flex;flex-direction:column;min-width:0;min-height:0}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-scratch .scratch-frame-toolbar{height:auto;min-height:48px;flex:none;flex-wrap:wrap;gap:10px;padding-bottom:8px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-scratch iframe{flex:1;min-height:0;height:0!important;max-width:100%;border-color:var(--school-line)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-terminal :is(.python-console-title,.python-console-actions button){font-size:18px!important;line-height:1.45}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-terminal :is(.python-console-label,.python-console-status){font-size:16px!important;line-height:1.5}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-terminal .python-console-output{font-size:18px!important;line-height:1.55!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-terminal .python-console-value{font-size:18px!important;min-height:44px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-code header{font-size:16px;line-height:1.5}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-code .python-console-traceback{color:var(--school-error)}
html[data-school-theme] .python-console-output :is(.python-console-traceback,.python-console-diagnostic-label){color:var(--school-error)!important}
html[data-school-theme] .python-completions{background:var(--python-completion-bg);color:var(--python-completion-ink);border-color:var(--python-completion-line);font-size:16px;line-height:1.5}
html[data-school-theme] .python-completion strong{font-size:18px;line-height:1.5;color:var(--python-completion-ink)}
html[data-school-theme] :is(.python-completion span,.python-completion-help){font-size:16px;line-height:1.5;color:var(--school-muted)}
html[data-school-theme] .python-completion:is([aria-selected="true"],:hover){background:var(--python-completion-selected);color:var(--python-completion-ink)}
html[data-school-theme] .ol-solution-dialog{max-width:calc(100vw - 32px);font-size:18px;line-height:1.55}
html[data-school-theme] .ol-solution-dialog :is(p,li){font-size:20px;line-height:1.6;color:var(--school-ink);overflow-wrap:anywhere}
html[data-school-theme] .ol-solution-dialog .ol-solution-note{font-size:16px;line-height:1.55;color:var(--school-muted)}
html[data-school-theme] .ol-solution-dialog :is(button,a){background:var(--school-raised);color:var(--school-ink);border-color:var(--school-input-line);font-size:18px;min-height:44px}
html[data-school-theme] .ol-solution-dialog pre{font-size:18px;line-height:1.6;max-width:100%;overflow:auto}

@media(min-width:1600px){
 html[data-school-theme] body.zaytishka-shell :is(.cards.group-cards,.cards.individual-cards){grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1050px){
 html[data-school-theme] body.zaytishka-shell :is(.cards.group-cards,.cards.individual-cards){grid-template-columns:minmax(0,1fr)}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-header{padding:10px 16px;gap:12px}
}
@media(max-width:760px){
 html[data-school-theme] .school-theme-control>select{width:132px;min-height:44px;font-size:18px}
 html[data-school-theme] body.zaytishka-shell :is(.group-cards,.individual-cards)>.card{padding:20px}
 html[data-school-theme] body.zaytishka-shell .topbar #identity{max-width:100%;font-size:16px}
 html[data-school-theme] body.zaytishka-shell #role-tools :is(select,#preview-target){max-width:100%;width:100%}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-title h2{font-size:28px!important}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-header{padding:10px 12px;gap:10px}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card{padding:18px}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-copy-concept,.ol-copy-question){padding:16px}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-options{grid-template-columns:minmax(0,1fr)!important;gap:10px}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-options label{padding:12px;gap:10px}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-match{flex-wrap:wrap;font-size:20px;line-height:1.55}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-match select{min-width:0;width:100%;margin-left:0}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-footer{gap:10px}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-footer #ol-status{flex-basis:100%}
 /* On a phone the document scrolls vertically. Establish a real reading
    height before pagination, then allow controls below it to grow naturally;
    a viewport remainder of 90px cannot fit a readable quiz line and its card. */
 html[data-school-theme] body.owner-lesson-body[data-ol-program]{overflow:auto!important}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-shell{height:auto;min-height:100dvh}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-work{min-height:calc(100dvh - 76px)}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-python,.ol-scratch) .ol-task-pane{height:auto;min-height:0;max-height:none;flex:none;overflow:visible}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-python,.ol-scratch) #ol-reading{height:clamp(420px,60dvh,560px);min-height:420px;max-height:none;flex:none}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-body.ol-scratch{display:flex;flex-direction:column;overflow:visible}
 html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-scratch .ol-workspace{height:640px;min-height:640px;flex:none}
 html[data-school-theme] body.owner-lesson-body:is([data-ol-program="python"],[data-ol-program="scratch"],[data-ol-program="roblox"]) .ol-reading-layout{height:auto;min-height:0;flex:none;overflow:visible}
 html[data-school-theme] body.owner-lesson-body:is([data-ol-program="python"],[data-ol-program="scratch"],[data-ol-program="roblox"]) .ol-reading-layout .ol-task-pane{height:auto;min-height:0;max-height:none;flex:none;gap:8px;overflow:visible}
 /* Mobile Python/Scratch/Roblox reading layouts pass a finite measurement budget
    to the paginator, including matching and recap tasks. The visible page
    uses its natural height so short text stays close to its answer controls. */
 html[data-school-theme] body.owner-lesson-body:is([data-ol-program="python"],[data-ol-program="scratch"],[data-ol-program="roblox"]) .ol-reading-layout #ol-reading{height:auto;min-height:0;max-height:none;flex:none}
}

html[data-school-theme] body.zaytishka-shell :is(.group-cards,.individual-cards)+.empty{font-size:var(--school-caption-size)}

html[data-school-theme] body.zaytishka-shell:not(.mobile-cabinet) .topbar .workspace-title{flex:1 0 180px;min-width:180px;max-width:100%}
html[data-school-theme] body.zaytishka-shell:not(.mobile-cabinet) .topbar .workspace-title :is(.workspace-kicker,#page-name){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* Real school components: retain the canonical schedule/join links, course
   paths, saved projects, shop actions and native editors. No preview widgets. */
html[data-school-theme] body.zaytishka-shell .daily-classrooms{margin:16px 0 20px}
html[data-school-theme] body.zaytishka-shell .daily-classrooms>h2{margin:0 0 18px}
html[data-school-theme] body.zaytishka-shell .daily-classrooms .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:20px}
html[data-school-theme] body.zaytishka-shell .daily-classrooms .card{padding:16px;border-color:var(--school-input-line);background:var(--school-surface)}
html[data-school-theme] body.zaytishka-shell .daily-classrooms .card h3{margin:0 0 8px;font-size:20px;line-height:1.3;color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell .daily-classrooms .card>p{margin:12px 0;color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell .daily-classrooms .row{margin-top:20px;gap:12px}
html[data-school-theme] body.zaytishka-shell [data-daily-classroom]{min-height:var(--school-control-height);padding:8px 12px;white-space:normal;line-height:1.45}
html[data-school-theme] body.zaytishka-shell .daily-classroom-preview{display:grid;gap:12px;max-width:100%}
html[data-school-theme] body.zaytishka-shell .daily-classroom-preview small{font-size:var(--school-caption-size);line-height:1.5;color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell .learning-next{flex-wrap:wrap;gap:20px;background:var(--school-raised);color:var(--school-ink);border-color:var(--school-line)}
html[data-school-theme] body.zaytishka-shell .learning-next>div{min-width:0;flex:1 1 280px}
html[data-school-theme] body.zaytishka-shell .learning-next :is(.eyebrow,.lesson-material){color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell .learning-next .eyebrow{font-size:var(--school-caption-size);line-height:1.5}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .path-caption>span{font-size:var(--school-body-size);line-height:1.5}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .homework-stop .path-caption>span{font-size:var(--school-caption-size);line-height:1.5}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .lesson-fork{border-color:var(--school-line);background:var(--school-surface)}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .lesson-fork-locked{background:var(--school-lock-canvas)}
html[data-school-theme] body.zaytishka-shell .portfolio-code{background:var(--school-code-bg);color:var(--school-code-ink);border:1px solid var(--school-line);font:18px/1.6 Consolas,monospace;padding:20px;max-height:65dvh;overflow:auto}
html[data-school-theme] body.zaytishka-shell :is(.teacher-feedback,.family-summary>div){background:var(--school-raised);border-color:var(--school-line);color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell :is(.homework-save,.quiz-result){font-size:var(--school-body-size);line-height:1.45;color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell .quiz-result.correct{color:var(--school-good)}
html[data-school-theme] body.zaytishka-shell .quiz-result.incorrect{color:var(--school-error)}
html[data-school-theme] body.zaytishka-shell .family-summary span{font-size:var(--school-caption-size);line-height:1.5;color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell .family-summary strong{color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell .achievement{background:var(--school-surface);color:var(--school-ink);border-color:var(--school-line)}
html[data-school-theme] body.zaytishka-shell .achievement.earned{background:var(--school-good-bg);border-color:var(--school-good-line)}
html[data-school-theme] body.zaytishka-shell .achievement strong{font-size:var(--school-body-size);line-height:1.5;color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell .achievement small{font-size:var(--school-caption-size);line-height:1.45;color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell .achievement-icon{background:var(--school-raised);border-color:var(--school-line);color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell .achievement.earned :is(.achievement-icon,.achievement-state){background:var(--school-good-bg);color:var(--school-good);border-color:var(--school-good-line)}
html[data-school-theme] body.zaytishka-shell .flex-shop section.flex-shop-card{background:var(--school-surface);color:var(--school-ink);border-color:var(--school-line);box-shadow:none}
html[data-school-theme] body.zaytishka-shell .flex-shop .flex-shop-art{background:var(--school-raised);border-color:var(--school-line)}
html[data-school-theme] body.zaytishka-shell .flex-shop section.flex-shop-card h3{color:var(--school-ink);font-size:22px;font-weight:700;line-height:1.4}
html[data-school-theme] body.zaytishka-shell .flex-shop :is(.flex-shop-note,.flex-shop-status,.shop-order p){color:var(--school-muted);font-size:var(--school-body-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell .flex-shop .flex-shop-status{color:var(--school-good);font-size:var(--school-caption-size)}
html[data-school-theme] body.zaytishka-shell .flex-shop .flex-shop-status.unavailable{color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell .flex-shop :is(.wallet-total,.wallet-mark,.flex-shop-price){background:var(--school-warning-bg);color:var(--school-warning);border-color:var(--school-warning-line);font-size:var(--school-body-size);font-weight:600}
html[data-school-theme] body.zaytishka-shell .flex-shop section.flex-shop-card button{font-size:var(--school-body-size);font-weight:600;box-shadow:none}
html[data-school-theme] body.zaytishka-shell .flex-shop section.flex-shop-card button:not(:disabled){background:var(--school-action);border-color:var(--school-action);color:var(--school-action-ink)}
html[data-school-theme] body.zaytishka-shell .flex-shop section.flex-shop-card button:hover:not(:disabled){background:var(--school-action-hover);border-color:var(--school-action-hover);color:var(--school-action-ink)}
html[data-school-theme] body.zaytishka-shell .flex-shop section.flex-shop-card button:disabled{background:var(--school-raised);color:var(--school-muted);border-color:var(--school-line);opacity:1}
html[data-school-theme] body.zaytishka-shell .flex-shop section.flex-shop-card button:focus-visible{outline:3px solid var(--school-focus);outline-offset:3px}
html[data-school-theme] body.zaytishka-shell .flex-shop .shop-order{background:var(--school-surface);color:var(--school-ink);border-color:var(--school-line)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-scratch .scratch-frame-toolbar{background:var(--school-surface);color:var(--school-ink);border-color:var(--school-line)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-scratch .draft-state{font-size:16px;line-height:1.5;color:var(--school-muted)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-scratch .draft-state[data-save-status="saved"]{color:var(--school-good)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-scratch .draft-state:is([data-save-status="saving"],[data-save-status="pending"]){color:var(--school-warning)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-scratch .draft-state[data-save-status="error"]{color:var(--school-error)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-scratch.editor-expanded{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh;min-height:0;max-height:none;padding:12px;background:var(--school-canvas);border:0;border-radius:0;display:flex;flex-direction:column}
html[data-school-theme] body.owner-lesson-body[data-ol-program].editor-is-expanded{overflow:hidden!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-scratch.editor-expanded iframe{width:100%;height:0!important;min-height:0;flex:1;border-radius:8px}
html[data-school-theme] body.owner-lesson-body[data-ol-program="roblox"] .ol-card figure{padding:12px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card figcaption a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;font-size:18px;line-height:1.5;color:var(--school-link)!important;overflow-wrap:anywhere}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-tools{flex-wrap:wrap;max-width:100%}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-tools .ol-download{white-space:normal;overflow-wrap:anywhere;font-size:18px;background:var(--school-surface);color:var(--school-link);border-color:var(--school-input-line)}
@media(min-width:761px) and (max-height:800px){
 html[data-school-theme] body.owner-lesson-body[data-ol-program="scratch"] .ol-header{min-height:60px;padding:8px 16px;gap:12px}
 html[data-school-theme] body.owner-lesson-body[data-ol-program="scratch"][data-ol-navigation] .ol-sidebar{min-height:49px;padding:2px 16px!important}
 html[data-school-theme] body.owner-lesson-body[data-ol-program="scratch"] .ol-main:has(.ol-scratch){padding:12px 16px 10px;gap:10px}
 html[data-school-theme] body.owner-lesson-body[data-ol-program="scratch"] .ol-main:has(.ol-scratch) .ol-footer{min-height:56px;padding-top:8px}
}
@media(max-width:760px){
 html[data-school-theme] body.zaytishka-shell .daily-classrooms .card{padding:20px}
 html[data-school-theme] body.zaytishka-shell .daily-classrooms [data-daily-classroom]{width:100%}
 html[data-school-theme] body.zaytishka-shell .flex-shop .shop-items{grid-template-columns:minmax(0,1fr)}
 html[data-school-theme] body.zaytishka-shell .flex-shop section.flex-shop-card h3{min-height:0}
}

/* Lesson/project cover illustrations are separate from actual saved results.
   Original lesson screenshots stay inside their complete native materials. */
html[data-school-theme] body.zaytishka-shell .zs-lesson-cover{--zs-cover-accent:var(--school-action);display:block;width:100%;min-width:0;margin:0 0 16px;padding:0;border:1px solid var(--school-line);border-radius:16px;background:var(--school-raised);overflow:hidden;isolation:isolate}
html[data-school-theme] body.zaytishka-shell .zs-lesson-cover[data-cover-program="scratch"]{--zs-cover-accent:var(--school-warning)}
html[data-school-theme] body.zaytishka-shell .zs-lesson-cover[data-cover-program="roblox"]{--zs-cover-accent:var(--school-good)}
html[data-school-theme] body.zaytishka-shell .zs-lesson-cover-media{display:grid;place-items:center;width:100%;min-width:0;aspect-ratio:12/7;max-height:220px;background:var(--school-raised);overflow:hidden}
html[data-school-theme] body.zaytishka-shell .zs-lesson-cover-media :is(svg,img){display:block;width:100%;height:100%;max-width:100%;max-height:220px;object-fit:contain;transform:none}
html[data-school-theme] body.zaytishka-shell .zs-lesson-cover-caption{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:0;padding:12px 16px;border-top:1px solid var(--school-line);background:var(--school-surface);color:var(--school-muted);font-size:var(--school-caption-size);line-height:1.5;overflow-wrap:anywhere}
html[data-school-theme] body.zaytishka-shell .lesson-fork>.zs-lesson-cover{grid-column:1/-1;align-self:stretch;flex:none;margin-bottom:0}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card pre:has(>.ol-syntax-code){padding:16px;border:1px solid var(--school-input-line);border-radius:12px;background:var(--school-code-bg);color:var(--school-code-ink);font:18px/1.6 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-syntax-code{display:block;background:var(--school-code-bg)!important;color:var(--school-code-ink)!important;font:inherit;white-space:inherit}

/* A short desktop window cannot contain both readable editor rows and the
   complete terminal. Let the document grow instead of clipping its actions. */
@media(min-width:761px) and (max-height:820px){
 html[data-school-theme] body.owner-lesson-body[data-ol-program="python"]{overflow:auto!important}
 html[data-school-theme] body.owner-lesson-body[data-ol-program="python"] .ol-shell{height:auto;min-height:100dvh}
 html[data-school-theme] body.owner-lesson-body[data-ol-program="python"] .ol-work{flex:none;min-height:calc(100dvh - 76px)}
 html[data-school-theme] body.owner-lesson-body[data-ol-program="python"] .ol-main:has(.ol-python){min-height:660px}
 html[data-school-theme] body.owner-lesson-body[data-ol-program="python"] .ol-body.ol-python{height:482px;min-height:482px;max-height:482px;flex:none;grid-template-rows:minmax(0,1fr)}
 html[data-school-theme] body.owner-lesson-body[data-ol-program="python"] .ol-python .ol-workspace{grid-template-rows:minmax(190px,1fr) minmax(280px,1fr);overflow:visible}
}

/* Programme phases retain the same meaning in navigation and reading cards. */
html[data-school-theme] body.owner-lesson-body[data-ol-program]{--school-phase:var(--school-theory);--school-phase-bg:var(--school-theory-bg);--school-phase-line:var(--school-theory-line)}
html[data-school-theme] body.owner-lesson-body[data-ol-phase="project"]{--school-phase:var(--school-good);--school-phase-bg:var(--school-good-bg);--school-phase-line:var(--school-good-line)}
html[data-school-theme] body.owner-lesson-body[data-ol-phase="quiz"]{--school-phase:var(--school-warning);--school-phase-bg:var(--school-warning-bg);--school-phase-line:var(--school-warning-line)}
html[data-school-theme] body.owner-lesson-body[data-ol-phase="typing"]{--school-phase:var(--school-typing);--school-phase-bg:var(--school-typing-bg);--school-phase-line:var(--school-typing-line)}
html[data-school-theme] body.owner-lesson-body[data-ol-phase="home"]{--school-phase:var(--school-home);--school-phase-bg:var(--school-home-bg);--school-phase-line:var(--school-home-line)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-title small{color:var(--school-phase)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-phase="typing"] .ol-title h2{color:var(--school-phase)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button[data-phase="theory"]{--school-step:var(--school-theory);--school-step-bg:var(--school-theory-bg);--school-step-line:var(--school-theory-line);--school-step-on:var(--school-theory-on)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button[data-phase="project"]{--school-step:var(--school-good);--school-step-bg:var(--school-good-bg);--school-step-line:var(--school-good-line);--school-step-on:var(--school-good-on)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button[data-phase="quiz"]{--school-step:var(--school-warning);--school-step-bg:var(--school-warning-bg);--school-step-line:var(--school-warning-line);--school-step-on:var(--school-warning-on)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button[data-phase="typing"]{--school-step:var(--school-typing);--school-step-bg:var(--school-typing-bg);--school-step-line:var(--school-typing-line);--school-step-on:var(--school-typing-on)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button[data-phase="home"]{--school-step:var(--school-home);--school-step-bg:var(--school-home-bg);--school-step-line:var(--school-home-line);--school-step-on:var(--school-home-on)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button[data-phase]{--ol-number-surface:var(--school-step-bg)!important;--ol-number-ink:var(--school-step)!important;--ol-number-border:var(--school-step-line)!important;background:var(--ol-number-surface)!important;color:var(--ol-number-ink)!important;border-color:var(--ol-number-border)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button[data-phase]:is(.selected,.active,[aria-current="step"]){--ol-number-surface:var(--school-step)!important;--ol-number-ink:var(--school-step-on)!important;--ol-number-border:var(--school-step)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button[data-phase="typing"]:is(.selected,.active,[aria-current="step"]){--ol-number-surface:var(--school-typing-accent)!important;--ol-number-border:var(--school-typing-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button[data-phase].quiz-correct{outline:2px solid var(--school-good);outline-offset:2px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(#ol-steps,#ol-grid) button[data-phase].quiz-wrong{outline:2px solid var(--school-error);outline-offset:2px}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card[data-reading-role]{background:var(--school-phase-bg)!important;border-color:var(--school-phase-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card[data-reading-tone="1"]{background:var(--school-surface)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card[data-reading-tone="2"]{background:var(--school-raised)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card[data-reading-role] :is(h3,h4){color:var(--school-phase)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-copy-question,.ol-copy-concept){background:var(--school-phase-bg)!important;border-color:var(--school-phase-line)!important}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card :is(.ol-copy-question,.ol-copy-question strong,.ol-copy-concept h4){color:var(--school-phase)!important}

html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-card:is([data-reading-tone="1"],[data-reading-tone="2"]) {
 border-color: var(--school-line) !important;
 border-inline-start-color: var(--school-phase-line) !important;
}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-code-example-grid .ol-example-result {
 background: var(--school-good-bg) !important;
 border-color: var(--school-good-line) !important;
}
html[data-school-theme="dark"] body.owner-lesson-body[data-ol-program] .ol-options label:has(input:checked):not(.quiz-correct,.quiz-wrong) {
 --ol-option-border: var(--school-link);
}
html[data-school-theme="dark"] body.owner-lesson-body[data-ol-program] .ol-options label:has(input:checked) {
 box-shadow: 0 2px 0 var(--ol-option-border);
}
html[data-school-theme="dark"] body.owner-lesson-body[data-ol-program] .ol-options input {
 accent-color: var(--school-link);
}
html[data-school-theme="dark"] body.owner-lesson-body[data-ol-program] .ol-options label:is(.quiz-correct,.quiz-wrong) input {
 accent-color: var(--ol-option-ink);
}

/* The native paginator reserves this exact height before measuring content. */
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-content-pages:not(.empty){display:grid;grid-template-columns:48px minmax(0,1fr) 48px;width:min(100%,560px);height:88px;min-height:88px;max-height:88px;flex:none;gap:12px;align-items:center;justify-items:center;margin-inline:auto}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-reading-progress{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0;max-width:none;text-align:center}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-reading-count{font-size:16px;line-height:1.4;color:var(--school-muted)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-reading-next{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:2.7em;font-size:18px;line-height:1.35;color:var(--school-phase);text-wrap:balance}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-content-pages[data-next-solution="true"] .ol-reading-next{font-weight:700;color:var(--school-warning)}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-content-pages button{display:grid;place-items:center;width:48px;min-width:48px;max-width:48px;height:48px;min-height:48px;padding:0;flex:none}
html[data-school-theme] body.owner-lesson-body[data-ol-program] #ol-terminal .python-console-actions button{min-height:44px!important;padding:10px 16px!important}

/* One compact, keyboard-accessible settings menu replaces scattered controls. */
html[data-school-theme] .school-settings{position:relative;flex:none;margin-left:auto;line-height:1.4}
html[data-school-theme] .school-settings-toggle{display:inline-flex;align-items:center;justify-content:center;width:48px;min-width:48px;min-height:48px;padding:10px;border:1px solid var(--school-input-line)!important;border-radius:12px;background:var(--school-raised)!important;color:var(--school-ink)!important;box-shadow:none;transform:none}
html[data-school-theme] .school-settings-toggle svg{display:block;width:24px;height:24px;flex:none}
html[data-school-theme] .school-settings-toggle:hover:not(:disabled){background:var(--school-hover)!important;color:var(--school-ink)!important}
html[data-school-theme] .school-settings-panel{position:absolute;z-index:2100;right:0;top:calc(100% + 12px);display:flex;flex-direction:column;gap:20px;width:min(320px,calc(100vw - 32px));max-height:min(70dvh,480px);overflow:auto;padding:20px;border:1px solid var(--school-input-line);border-radius:16px;background:var(--school-surface);color:var(--school-ink);box-shadow:0 16px 48px #0004;text-align:left}
html[data-school-theme] .school-settings-panel[hidden]{display:none!important}
html[data-school-theme] .school-settings [hidden]{display:none!important}
html[data-school-theme] .school-settings-theme{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;min-width:0;color:var(--school-muted);font-size:16px;line-height:1.5}
html[data-school-theme] .school-settings-theme select{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--school-input-line)!important;border-radius:8px;background:var(--school-surface)!important;color:var(--school-ink)!important;font-size:18px!important;line-height:1.4;color-scheme:inherit}
html[data-school-theme] .school-settings-theme select option{background:var(--school-surface);color:var(--school-ink)}
html[data-school-theme] .school-settings-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding-top:16px;border-top:1px solid var(--school-line)}
html[data-school-theme] .school-settings .school-settings-actions :is(button,a){display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:0;min-height:48px;padding:10px 12px;border-radius:8px;background:var(--school-raised)!important;color:var(--school-ink)!important;border:1px solid var(--school-input-line)!important;font-size:18px!important;line-height:1.4;text-decoration:none}
html[data-school-theme] .school-settings .school-settings-actions :is(button,a):hover:not(:disabled){background:var(--school-hover)!important;color:var(--school-ink)!important}
html[data-school-theme] .school-settings #display-settings{width:100%!important;min-width:0;justify-content:flex-start}
html[data-school-theme] .school-settings :is(button,select,a):focus-visible{outline:3px solid var(--school-focus)!important;outline-offset:3px}
html[data-school-theme] body.zaytishka-shell .topbar :is(.workspace-title,.workspace-kicker,#page-name,#identity),html[data-school-theme] body.owner-lesson-body[data-ol-program] :is(.ol-header strong,.ol-title h2){text-shadow:none;transform:none;font-style:normal}

/* Complete lesson cards share one renderer in the child's two course views. */
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] :is(.forked-path,.course-lessons){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .lesson-fork.zs-lesson-card{display:flex;flex-direction:column;gap:0;padding:0;min-width:0;border:1px solid var(--school-line);border-radius:16px;background:var(--school-surface);color:var(--school-ink);overflow:hidden;box-shadow:none}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-card>.zs-lesson-cover{margin:0;border:0;border-bottom:1px solid var(--school-line);border-radius:0;background:var(--school-raised);flex:none}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-card .zs-lesson-cover-media{aspect-ratio:16/7;max-height:132px;background:var(--school-raised)}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-card .zs-lesson-cover-media :is(svg,img){max-height:180px}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-card>.zs-course-art{border-radius:0}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-card .zs-art-caption{display:none}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-card-copy{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px;min-width:0;flex:1}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-number{margin:0;color:var(--school-muted);font-size:var(--school-caption-size);line-height:1.5}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-title{margin:0;color:var(--school-ink);font-size:24px;line-height:1.3;font-weight:700;letter-spacing:-.015em;overflow-wrap:anywhere;text-wrap:balance}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] :is(.zs-lesson-progress,.zs-lesson-lock){margin:0;color:var(--school-muted);font-size:var(--school-caption-size);line-height:1.45}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-open{display:flex;align-items:center;justify-content:center;min-height:var(--school-control-height);margin-top:auto;font-size:var(--school-body-size);line-height:1.4}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-card-home{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:0;padding:12px 16px;border-top:1px solid var(--school-home-line);background:var(--school-home-bg);text-align:left}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-homework-link{display:inline-flex;align-items:center;min-height:44px;max-width:100%;color:var(--school-home);font-size:var(--school-body-size);line-height:1.4;font-weight:600;text-decoration:underline;text-underline-offset:3px}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-homework-link:hover{color:var(--school-home);text-decoration-thickness:2px}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-homework-state{color:var(--school-muted);font-size:var(--school-caption-size);line-height:1.5}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-card-complete{border-color:var(--school-good-line)}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-card-complete .zs-lesson-progress{color:var(--school-good)}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .lesson-fork-locked.zs-lesson-card{background:var(--school-lock-canvas);border-color:var(--school-line)}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .lesson-fork-locked .zs-lesson-cover-media{filter:saturate(.55)}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-lock{display:flex;align-items:center;gap:12px}
@media(min-width:1680px){html[data-school-theme] body.zaytishka-shell[data-school-role="student"] :is(.forked-path,.course-lessons){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 html[data-school-theme] body.zaytishka-shell[data-school-role="student"] :is(.forked-path,.course-lessons){grid-template-columns:minmax(0,1fr);gap:20px}
 html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-card-copy{padding:20px}
 html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-lesson-card-home{padding:16px 20px}
 html[data-school-theme] .school-settings-panel{position:fixed;top:76px;right:16px;max-height:calc(100dvh - 100px)}
}

/* A date is plain text. State belongs to the entire day button, so nested
   dates cannot acquire a mismatched square or a second selected surface. */
html[data-school-theme] body.zaytishka-shell .calendar .calendar-day{height:var(--school-control-height);min-height:var(--school-control-height);padding:0;background:var(--school-surface);border-color:var(--school-input-line);color:var(--school-ink);font-size:16px;line-height:1.25;font-variant-numeric:tabular-nums}
html[data-school-theme] body.zaytishka-shell .calendar .calendar-day.has-lessons{background:var(--school-good-bg);border-color:var(--school-good-line);color:var(--school-good);font-weight:700}
html[data-school-theme] body.zaytishka-shell .calendar .calendar-day.today:not(.selected){border:2px solid var(--school-link);color:var(--school-ink);font-weight:700}
html[data-school-theme] body.zaytishka-shell .calendar .calendar-day.selected{background:var(--school-action);border-color:var(--school-action);color:var(--school-action-ink)}
html[data-school-theme] body.zaytishka-shell .calendar .calendar-day:hover:not(.selected):not(:disabled){background:var(--school-hover);border-color:var(--school-input-line);color:var(--school-ink)}
html[data-school-theme] body.zaytishka-shell .calendar .calendar-day.selected:hover:not(:disabled){background:var(--school-action-hover);border-color:var(--school-action-hover);color:var(--school-action-ink)}
html[data-school-theme] body.zaytishka-shell .calendar .calendar-day>span:first-child{display:inline;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent!important;color:inherit!important;box-shadow:none;font:inherit}
html[data-school-theme] body.zaytishka-shell .calendar .calendar-dot{background:currentColor;bottom:5px}
html[data-school-theme] body.zaytishka-shell .calendar .outside .calendar-day:not(.has-lessons):not(.selected):not(.today){color:var(--school-muted)}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .lesson-fork-locked.zs-lesson-card{opacity:1}

/* Page headings live in #app. Keep their legacy header nodes for bindings,
   while the header itself is only a transparent row for actual controls. */
html[data-school-theme] body.zaytishka-shell .topbar{background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;min-height:var(--school-control-height);height:auto;margin:0 0 16px;padding:0;gap:12px;justify-content:flex-end;align-items:center;flex-wrap:wrap;text-shadow:none;transform:none;filter:none}
html[data-school-theme] body.zaytishka-shell .topbar .workspace-title{display:none!important}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"]:not(.preview-mode) .topbar{height:var(--school-control-height);min-height:var(--school-control-height);max-height:var(--school-control-height);gap:0;flex-wrap:nowrap;overflow:visible}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"]:not(.preview-mode) .topbar>:not(.school-settings){display:none!important}
html[data-school-theme] body.zaytishka-shell .flex-shop .heading h1{color:var(--school-ink)!important}

/* The selected full-body mascot stays contained in each brand slot. */
html[data-school-theme] body.zaytishka-shell>aside .brand{align-items:center}
html[data-school-theme] body.zaytishka-shell>aside .brand img.brand-icon{flex:0 0 42px;width:42px;height:54px;max-width:42px;object-fit:contain;object-position:center;border:0;border-radius:0;background:transparent;box-shadow:none}
html[data-school-theme] body.owner-lesson-body[data-ol-program] .ol-header::before{content:"";display:block;flex:0 0 34px;width:34px;min-width:34px;height:44px;min-height:44px;padding:0;background:url('/video-classroom/assets/zaytishka-brand/rabbit-programmer.png') center/contain no-repeat}

/* A concise welcome and one contained portrait share the hero's space. */
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-student-welcome{grid-template-columns:minmax(0,1fr) 160px;gap:16px;padding:16px;align-items:center}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-student-welcome h2{margin:0 0 16px}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-student-mascot{position:relative;display:grid;place-items:center;justify-self:end;align-self:center;width:160px;max-width:100%;aspect-ratio:2/3;margin:0;padding:8px;gap:0;border:1px solid var(--school-error-line);border-radius:16px;background:linear-gradient(145deg,var(--school-error-bg),var(--school-warning-bg));box-shadow:0 12px 32px #0002;overflow:hidden}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-student-mascot::after{content:"";position:absolute;left:calc(50% - 24px);bottom:5px;width:48px;height:3px;border-radius:3px;background:var(--school-warning)}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-student-mascot img{display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;object-position:center;border-radius:16px}
@media(max-width:760px){
 html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-student-welcome{grid-template-columns:minmax(0,1fr)}
 html[data-school-theme] body.zaytishka-shell[data-school-role="student"] .zs-student-mascot{justify-self:center;width:min(100%,200px)}
}

/* Compact cabinet controls share the same targets without scaling the document. */
html[data-school-theme] body.zaytishka-shell{line-height:1.45}
html[data-school-theme] body.zaytishka-shell[data-school-role="student"]{--school-body-size:15px}
html[data-school-theme] body.zaytishka-shell #nav button{font-size:14px}
html[data-school-theme] body.zaytishka-shell :is(button,.button,input,select,textarea){font-size:var(--school-body-size);line-height:1.4}
html[data-school-theme] body.zaytishka-shell :is(button,.button){min-height:var(--school-control-height);padding:8px 12px}
html[data-school-theme] body.zaytishka-shell :is(button,.button).link{min-height:0;padding:0}
html[data-school-theme] body.zaytishka-shell .school-settings-toggle{width:var(--school-control-height);min-width:var(--school-control-height);height:var(--school-control-height);min-height:var(--school-control-height);padding:8px}
html[data-school-theme] body.zaytishka-shell .school-settings-panel{gap:16px;padding:16px}
html[data-school-theme] body.zaytishka-shell .school-settings-theme select,
html[data-school-theme] body.zaytishka-shell .school-settings .school-settings-actions :is(button,a){min-height:var(--school-control-height);font-size:16px!important;padding:8px 12px}
html[data-school-theme] body.zaytishka-shell .zs-lesson-title{font-size:20px}
@media(min-width:1100px){html[data-school-theme] body.zaytishka-shell[data-school-role="student"] :is(.forked-path,.course-lessons){grid-template-columns:repeat(3,minmax(0,1fr))}}
