/* Shared authentic-school components. No curriculum-specific rules or editor geometry. */
html[data-school-visual="pulse"] body.zaytishka-shell :is(#app,.topbar,dialog,table,label,input,select,textarea,button,.button,.muted,.caption){font-family:var(--pulse-ui)!important}
html[data-school-visual="pulse"] body.zaytishka-shell :is(h1,h2,h3,h4,.count,.wallet-total,.flex-shop-price,.balance-result strong){font-family:var(--pulse-heading)!important;font-weight:900;letter-spacing:-.02em}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.card,.homework-card,.reward-card,.family-card,.family-panel,.lesson-card,.shop-order,.portfolio-card,.zs-portfolio-card,.zp-child,.zp-homework,.zp-lesson,.zp-feedback,.board-card,.guide-item,.availability){background:var(--school-surface);color:var(--school-ink);border-color:var(--school-line);border-radius:var(--pulse-radius)}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.card,.homework-card,.reward-card,.family-card,.family-panel,.lesson-card,.board-card,.zp-child,.zp-homework,.zp-lesson){min-width:0}
html[data-school-visual="pulse"] body.zaytishka-shell :is(p,li,.muted,.caption,.readonly-note,.history-entry){text-wrap:pretty;overflow-wrap:break-word}
html[data-school-visual="pulse"] body.zaytishka-shell :is(input,select,textarea){border:1px solid var(--school-input-line);border-radius:var(--pulse-control-radius);background:var(--school-surface);color:var(--school-ink);color-scheme:inherit}
html[data-school-visual="pulse"] body.zaytishka-shell :is(input,select):not([type="checkbox"]):not([type="radio"]){min-height:40px}
html[data-school-visual="pulse"] body.zaytishka-shell :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--school-action)}
html[data-school-visual="pulse"] body.zaytishka-shell :is(label,.availability legend,.extra-parent summary,.availability-extra summary){color:var(--school-muted)}
html[data-school-visual="pulse"] body.zaytishka-shell [aria-invalid="true"]{border-color:var(--school-error)}
html[data-school-visual="pulse"] body.zaytishka-shell :is(input:focus-visible,select:focus-visible,textarea:focus-visible):not([aria-invalid="true"]){border-color:var(--school-focus)}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.field-error,.form-error){color:var(--school-error);line-height:1.5}
html[data-school-visual="pulse"] body.zaytishka-shell .form-error{padding:12px 16px;border:1px solid var(--school-error-line);border-radius:12px;background:var(--school-error-bg)}
html[data-school-visual="pulse"] body.zaytishka-shell .table-wrap{border-radius:18px;background:var(--school-surface);border-color:var(--school-line)}
html[data-school-visual="pulse"] body.zaytishka-shell :is(th,td){border-color:var(--school-line);color:var(--school-ink)}
html[data-school-visual="pulse"] body.zaytishka-shell th{background:var(--school-raised);color:var(--school-muted);font-weight:800}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.badge,.group-release-summary,.ai-access-status>div){background:var(--school-raised);border:1px solid var(--school-line);color:var(--school-ink);border-radius:12px}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.badge.warning,.preview-tag){background:var(--school-warning-bg);border-color:var(--school-warning-line);color:var(--school-warning)}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.badge.success,.badge.access-open,.balance-result,.achievement.earned){background:var(--school-good-bg);border-color:var(--school-good-line);color:var(--school-good)}
html[data-school-visual="pulse"] body.zaytishka-shell :is(dialog,.mobile-dialog){background:var(--school-surface);border:1px solid var(--school-line);color:var(--school-ink);border-radius:24px}
html[data-school-visual="pulse"] body.zaytishka-shell dialog::backdrop{background:#201714bd}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.history-entry,.guide-item,.availability){border-color:var(--school-line)}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.credentials,pre,code){font-family:Consolas,"Cascadia Code",monospace!important}
html[data-school-visual="pulse"] body.zaytishka-shell .credentials{background:var(--school-raised);color:var(--school-ink);border:1px solid var(--school-line);border-radius:12px}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.link,.contact){color:var(--school-link)}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.primary,button.primary,.button.primary){background:var(--school-action);border-color:var(--school-action);color:var(--school-action-ink)}
html[data-school-visual="pulse"] body.zaytishka-shell :is(button,.button):disabled{box-shadow:none;cursor:default}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.lesson-closed,.path-node.closed){color:var(--school-lock-ink)!important;background:var(--school-lock-canvas)!important;border-color:var(--school-line)!important}
html[data-school-visual="pulse"] body.zaytishka-shell :is(.zs-portfolio-card,.portfolio-card) :is(img,video){max-width:100%;object-fit:contain}

/* A fixed, nonshrinking artwork track keeps all 14 original SVGs above the text. */
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop .shop-items{align-items:stretch;gap:20px}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop section.flex-shop-card{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:164px minmax(0,1fr);grid-auto-flow:row;height:auto;min-height:0;min-width:0;padding:0;gap:0;border:1px solid var(--school-line);border-radius:20px;overflow:hidden;background:var(--school-surface);color:var(--school-ink);box-shadow:var(--pulse-card-edge);isolation:isolate}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop .flex-shop-art{grid-column:1;grid-row:1;position:relative;display:grid;place-items:center;flex:none;min-width:0;height:164px!important;min-height:164px;max-height:164px;margin:0;overflow:hidden;background:var(--school-raised);border-bottom:1px solid var(--school-line)}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop .flex-shop-art img{grid-area:1/1;display:block;width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important;max-width:100%!important;object-fit:contain!important;object-position:center}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop .flex-shop-info{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:12px;min-height:0;min-width:0;padding:20px}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop section.flex-shop-card h3{flex-shrink:0;margin:0;height:auto;max-height:none;min-height:2.7em;color:var(--school-ink);font-family:var(--pulse-heading)!important;font-size:22px;font-weight:900;line-height:1.35!important;letter-spacing:-.02em;overflow-wrap:anywhere;text-wrap:balance}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop .flex-shop-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:auto}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop :is(.wallet-total,.wallet-mark,.flex-shop-price){color:var(--school-warning);background:var(--school-warning-bg);border-color:var(--school-warning-line)}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop .flex-shop-price{font-size:15px;line-height:1.45;white-space:nowrap}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop .flex-shop-status{color:var(--school-good);font-size:13px;line-height:1.45}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop .flex-shop-status.unavailable{color:var(--school-muted)}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop section.flex-shop-card button{display:block;width:100%;min-height:40px;margin-top:4px;padding:9px 12px;border-radius:12px;font-family:var(--pulse-ui)!important;font-size:14px;font-weight:800;line-height:1.45}
html[data-school-visual="pulse"] 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);box-shadow:var(--pulse-press)}
html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop section.flex-shop-card button:disabled{background:var(--school-raised);border-color:var(--school-line);color:var(--school-muted);opacity:1;box-shadow:none}

/* The same semantic faces follow every authentic lesson, including AI panels. */
html[data-school-visual="pulse"] body.owner-lesson-body :is(.ol-studio-banner,.ol-sidebar,.ol-main,.ol-rich-slide,.ol-task-pane,.ol-answer-pane,.ol-studio-copy,.ol-studio-help,.ol-match,.ol-options,.ol-order,.ol-homework,.ol-upload-label,dialog){font-family:var(--pulse-ui)!important}
html[data-school-visual="pulse"] body.owner-lesson-body :is(.ol-title h2,.ol-sidebar h1,.ol-sidebar h2,.ol-studio-banner h1,.ol-card h3,.ol-card h4,dialog h2,dialog h3){font-family:var(--pulse-heading)!important;font-weight:900;letter-spacing:-.02em}
html[data-school-visual="pulse"] body.owner-lesson-body :is(.ol-card,.ol-match,.ol-options label,.ol-order,.ol-previous-ai,.ol-homework,dialog){border-color:var(--school-line);border-radius:18px}
html[data-school-visual="pulse"] body.owner-lesson-body :is(.ol-match select,.ol-upload-label,dialog input,dialog select,dialog textarea){font-family:var(--pulse-ui)!important;color:var(--school-ink);background:var(--school-surface);border-color:var(--school-input-line);border-radius:12px}
html[data-school-visual="pulse"] body.owner-lesson-body :is(dialog,.ol-previous-ai){background:var(--school-surface);color:var(--school-ink)}
html[data-school-visual="pulse"] body.owner-lesson-body .ol-footer #ol-quiz-feedback.quiz-correct{color:var(--school-good);font-weight:800}
html[data-school-visual="pulse"] body.owner-lesson-body .ol-footer #ol-quiz-feedback.quiz-wrong{color:var(--school-error);font-weight:800}
html[data-school-visual="pulse"] body.owner-lesson-body :is(pre,code,#ol-code,.python-editor,.python-highlight,.python-editor textarea,.python-console,.py-console){font-family:Consolas,"Cascadia Code",monospace!important}

/* Existing public login gets the same saved theme through the existing script. */
html[data-school-visual="pulse"][data-pulse-entry] body{--paper:var(--school-canvas);--ink:var(--school-ink);--muted:var(--school-muted);--violet:var(--school-link);--pale-violet:var(--school-active);--sage:var(--school-raised);--line:var(--school-line);--font:var(--pulse-ui);background:var(--school-canvas);color:var(--school-ink);font-family:var(--pulse-ui)}
html[data-school-visual="pulse"][data-pulse-entry] :is(h1,h2,.brand-copy strong){font-family:var(--pulse-heading);font-weight:900;letter-spacing:-.025em;line-height:1.1}
html[data-school-visual="pulse"][data-pulse-entry] .welcome h1{font-size:clamp(38px,4.1vw,56px)}
html[data-school-visual="pulse"][data-pulse-entry] :is(.login-card,.course-pills li,.login-help,.mobile-app-login-help){background:var(--school-surface);color:var(--school-ink);border-color:var(--school-line)}
html[data-school-visual="pulse"][data-pulse-entry] .login-card{border:1px solid var(--school-line);border-radius:24px;box-shadow:var(--pulse-card-edge)}
html[data-school-visual="pulse"][data-pulse-entry] :is(.field label,#factor-label,.login-help summary,.login-help p,.login-intro,.welcome-lead,.header-note,.entry-footer,.brand-copy>span){color:var(--school-muted)}
html[data-school-visual="pulse"][data-pulse-entry] :is(input,#second-factor){min-height:44px;background:var(--school-surface);color:var(--school-ink);border:1px solid var(--school-input-line);border-radius:12px;font-family:var(--pulse-ui);font-size:14px}
html[data-school-visual="pulse"][data-pulse-entry] #enter{min-height:48px;font-family:var(--pulse-ui);font-weight:800;font-size:14px;background:var(--school-action);color:var(--school-action-ink);border-color:var(--school-action);box-shadow:var(--pulse-press);border-radius:14px}
html[data-school-visual="pulse"][data-pulse-entry] #enter:hover:not(:disabled){background:var(--school-action-hover);border-color:var(--school-action-hover)}
html[data-school-visual="pulse"][data-pulse-entry] .login-greeting>span{background:var(--school-active);color:var(--school-link)}
html[data-school-visual="pulse"][data-pulse-entry] .hero-orbit{background:var(--school-raised)}
html[data-school-visual="pulse"][data-pulse-entry] .idea-note{background:var(--school-warning-bg);color:var(--school-warning);box-shadow:none}
html[data-school-visual="pulse"][data-pulse-entry] .idea-note>span{color:inherit}
html[data-school-visual="pulse"][data-pulse-entry] :is(.hero-spark-two,.rabbit-caption,.help-arrow,.login-help summary>span,.footer-code>span){color:var(--school-muted)}
html[data-school-visual="pulse"][data-pulse-entry] input::placeholder{color:var(--school-muted)}
html[data-school-visual="pulse"][data-pulse-entry] input:focus-visible{outline:3px solid var(--school-focus);border-color:var(--school-focus)}
html[data-school-visual="pulse"][data-pulse-entry] #message{color:var(--school-error)}

html[data-school-visual="pulse"] body.school-classroom :is(.room-header,.controls,.participants,.chat-panel,.settings-dialog,.room-courses,button,input,select,textarea){font-family:var(--pulse-ui)!important}
html[data-school-visual="pulse"] body.school-classroom :is(h1,h2,h3,.stage-empty b,.brand){font-family:var(--pulse-heading)!important;font-weight:900}
html[data-school-visual="pulse"] body.school-classroom :is(button,.room-courses,.chat-panel,.settings-dialog){border-radius:12px}

/* Finite, event-bound feedback only. Important exceptions stay inside no-preference. */
@media(prefers-reduced-motion:no-preference){
 html[data-school-visual="pulse"] body :is(button,.button)[data-pulse-motion="press"]{animation:pulse-school-press-a .16s ease-out 1!important}
 html[data-school-visual="pulse"] body :is(button,.button)[data-pulse-motion="press"][data-pulse-motion-version="b"]{animation-name:pulse-school-press-b!important}
 html[data-school-visual="pulse"] body :is(.ol-options label,.ol-match,#nav button,#ol-steps button)[data-pulse-motion="selected"]{animation:pulse-school-selected-a .2s ease-out 1!important}
 html[data-school-visual="pulse"] body :is(.ol-options label,.ol-match,#nav button,#ol-steps button)[data-pulse-motion="selected"][data-pulse-motion-version="b"]{animation-name:pulse-school-selected-b!important}
 html[data-school-visual="pulse"] body #ol-quiz-feedback[data-pulse-motion="confirmed"]{animation:pulse-school-confirmed-a .42s ease-out 1!important}
 html[data-school-visual="pulse"] body #ol-quiz-feedback[data-pulse-motion="confirmed"][data-pulse-motion-version="b"]{animation-name:pulse-school-confirmed-b!important}
 html[data-school-visual="pulse"] body.zaytishka-shell .table-wrap tbody tr:hover{background:var(--school-hover)}
}
@keyframes pulse-school-press-a{0%,100%{translate:0 0}55%{translate:0 2px}}
@keyframes pulse-school-press-b{0%,100%{translate:0 0}55%{translate:0 2px}}
@keyframes pulse-school-selected-a{0%{box-shadow:0 0 0 0 var(--school-action);opacity:.78}100%{box-shadow:0 0 0 3px transparent;opacity:1}}
@keyframes pulse-school-selected-b{0%{box-shadow:0 0 0 0 var(--school-action);opacity:.78}100%{box-shadow:0 0 0 3px transparent;opacity:1}}
@keyframes pulse-school-confirmed-a{0%{opacity:.65;box-shadow:0 0 0 0 var(--school-good)}65%{opacity:1;box-shadow:0 0 0 6px transparent}100%{opacity:1;box-shadow:none}}
@keyframes pulse-school-confirmed-b{0%{opacity:.65;box-shadow:0 0 0 0 var(--school-good)}65%{opacity:1;box-shadow:0 0 0 6px transparent}100%{opacity:1;box-shadow:none}}
html[data-school-visual="pulse"][data-pulse-motion-paused] body .pulse-rabbit :is(.pr-body,.pr-eyes,.pr-wave,.pr-shadow){animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){html[data-school-visual="pulse"] [data-pulse-motion],html[data-school-visual="pulse"] .pulse-rabbit *{animation:none!important;transition:none!important}}
@media(max-width:960px) and (min-width:761px){html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop .shop-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop .shop-items{grid-template-columns:minmax(0,1fr);gap:16px}html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop section.flex-shop-card h3{min-height:0;font-size:22px}html[data-school-visual="pulse"] body.zaytishka-shell .flex-shop section.flex-shop-card button{min-height:44px}html[data-school-visual="pulse"][data-pulse-entry] .welcome h1{font-size:38px}html[data-school-visual="pulse"] body.zaytishka-shell :is(input,select):not([type="checkbox"]):not([type="radio"]){min-height:44px}}
