/* Shared explanation presentation. Calculator state and lesson content are untouched. */
html:root body .workspace-panel{--lesson-ink:#f1f3f6;--lesson-muted:#bac2ce;--lesson-edge:#c4d4e52b;--lesson-card:linear-gradient(145deg,#17202a70,#060a10d9);color:var(--lesson-ink);border-color:var(--lesson-edge);border-radius:24px;background:linear-gradient(#03070ba8,#03070b99),url('/home/celestial/photo-detail-4k.webp') center/cover!important;box-shadow:0 24px 90px #0009,inset 0 1px #ffffff16}
html:root body .workspace-panel :is(.workspace-panel-header,.workspace-panel-body,.workspace-feature>.explanation,.primary-learning.explanation-player){color:var(--lesson-ink);background:transparent!important;box-shadow:none;border-color:var(--lesson-edge)}
html:root body .workspace-panel .workspace-panel-header{padding:10px 18px;min-height:54px;background:#02050999!important;border-bottom:1px solid var(--lesson-edge)}
html:root body .workspace-panel .workspace-panel-header h2{font-size:13px;letter-spacing:.19em;text-transform:uppercase;font-weight:700}
html:root body .workspace-panel:has(.workspace-feature[data-feature=interactive]:not([hidden])) .workspace-panel-header h2:before{content:'✦';font-size:23px;vertical-align:middle;margin-right:14px;color:white}
html:root body .workspace-panel :is(.workspace-panel-actions button,.workspace-panel-actions select,.view-question,.restore-step,.desmos-controls button,.hand-controls button,.hand-v2 button,.takeaway-actions button){background:linear-gradient(150deg,#222a3470,#03060b);border:1px solid #c4d4e540;color:#f1f3f6;box-shadow:inset 0 1px #ffffff0c;border-radius:12px;font-weight:650}
html:root body .workspace-panel .workspace-panel-actions button{width:36px;min-height:36px}
html:root body .workspace-panel .explanation-player:not(.hand-player) .player-header{padding:10px 6px;gap:14px;min-height:58px;border-bottom:1px solid #c4d4e54d;backdrop-filter:none}
html:root body .workspace-panel .explanation-player:not(.hand-player) .player-header h3{font-size:16px!important;line-height:1.4}
html:root body .workspace-panel .explanation-player:not(.hand-player) .player-header small{font-size:10px;letter-spacing:.13em;color:var(--lesson-muted)}
html:root body .workspace-panel .player-tabs,html:root body .workspace-panel .hand-v2-views{background:#020509a6;padding:4px;border:1px solid var(--lesson-edge);border-radius:15px;box-shadow:inset 0 1px #ffffff12}
html:root body .workspace-panel .player-tabs button{border:1px solid transparent;border-radius:12px;padding:10px 16px;min-height:40px;font-size:13px;color:var(--lesson-muted);background:linear-gradient(#2029354a,#05080c)}
html:root body .workspace-panel :is(.player-tabs button.active,.desmos-step-nav button.active,.hand-step-nav button.active,.hand-v2-views button[aria-pressed=true],.hand-v2-steps button[aria-current=step],.desmos-controls button:last-child,.hand-controls button:last-child,.hand-v2-nav>button:last-child,.takeaway-actions .primary){background:linear-gradient(145deg,#fff,#e1e5ed);color:#0a0d12!important;border-color:#ffffffb3;box-shadow:0 0 14px #e0edff24,inset 0 1px white}
html:root body .workspace-panel .explanation-player:not(.hand-player) .mode-intro{padding:12px 6px;gap:16px}
html:root body .workspace-panel .explanation-player:not(.hand-player) .mode-intro span{font-size:10px;letter-spacing:.17em;color:var(--lesson-muted)}
html:root body .workspace-panel .explanation-player:not(.hand-player) .mode-intro p{font-size:12px!important;line-height:1.5!important;color:#d4dbe5}
html:root body .workspace-panel :is(.interactive-desmos-explanation,.tangent-visual,.circle-visual-explanation,.parameter-circle-visual,.scale-circle-visual,.cone-visual-explanation){padding:8px 4px;background:transparent;border:0}
html:root body .workspace-panel :is(.controlled-desmos-stage,.tangent-cinema,.circle-cinema,.cone-cinema){border-radius:19px;border:1px solid var(--lesson-edge);overflow:hidden}
html:root body .workspace-panel :is(.desmos-step-copy,.visual-step-copy){background:var(--lesson-card);color:var(--lesson-ink);border:1px solid var(--lesson-edge);border-radius:17px;padding:14px;scrollbar-color:#687385 #080c13}
html:root body .workspace-panel .desmos-step-heading{flex-direction:row;align-items:flex-start;gap:12px}
html:root body .workspace-panel .desmos-step-heading b{font-size:15px;line-height:1.45;letter-spacing:.08em;text-transform:uppercase}
html:root body .workspace-panel .restore-step{flex:none;padding:8px 11px;min-height:36px;font-size:12px}
html:root body .workspace-panel :is(.desmos-full-entry,.desmos-current-copy,.desmos-detail-grid section,.desmos-notation,.hand-step,.hand-v2-math,.hand-v2-reason,.hand-v2-figure,.hand-v2-diagram,.remember,.formal-compact){background:var(--lesson-card);border:1px solid var(--lesson-edge);border-radius:13px;color:var(--lesson-ink);box-shadow:inset 0 1px #ffffff05}
html:root body .workspace-panel :is(.desmos-full-entry>span,.desmos-current-copy>span,.desmos-detail-grid section>span,.hand-step-number,.hand-v2-step-label){color:var(--lesson-muted);font-size:11px;letter-spacing:.09em;text-transform:uppercase}
html:root body .workspace-panel .desmos-full-entry code{color:#f5f7fb;background:#b8c6dc15;padding:5px 7px;border-radius:4px;font-size:15px;line-height:1.6}
html:root body .workspace-panel .desmos-current-copy p{color:var(--lesson-ink);font-size:16px!important;line-height:1.65!important;margin:9px 0 0!important}
html:root body .workspace-panel .desmos-current-copy .why-line{border-top-color:#c4d4e552;padding-top:12px;margin-top:12px!important}
html:root body .workspace-panel :is(.desmos-step-nav,.hand-step-nav){gap:9px;padding:9px 0}
html:root body .workspace-panel :is(.desmos-step-nav button,.hand-step-nav button){width:34px;height:34px;min-height:34px;border-radius:50%;background:#02060bbf;border:1px solid #c4d4e54d;color:#e0e6ef;font-size:13px;box-shadow:inset 0 1px #ffffff12}
html:root body .workspace-panel .desmos-controls{min-height:42px}
html:root body .workspace-panel .desmos-controls button{min-height:40px;padding:9px 16px;font-size:14px}
html:root body .workspace-panel .desmos-controls span{font-size:12px;color:var(--lesson-muted)}
html:root body .workspace-panel .hand-v2{background:transparent;color:var(--lesson-ink);padding:18px;font-size:17px;line-height:1.8}
html:root body .workspace-panel .hand-v2 :is(small,.hand-v2-help){color:var(--lesson-muted)}
html:root body .workspace-panel .hand-v2 progress{accent-color:#e2eaf7}
html:root body .workspace-panel .hand-v2-current{max-width:960px;padding:20px 22px;border:1px solid var(--lesson-edge);border-radius:16px;background:var(--lesson-card);margin:0 auto 20px}
html:root body .workspace-panel .hand-v2 :is(.hand-v2-reason,.hand-v2-check button+p,.hand-v2-support-card button+p){border-left-color:#d9e5f4;background:#c4d4e509}
html:root body .workspace-panel .hand-v2 :is(.hand-v2-diagram button[aria-pressed=true],button:focus-visible,textarea:focus-visible){border-color:#dce8f8;outline-color:#dce8f8}
html:root body .workspace-panel .hand-v2 .shade{fill:#ccdfff1f}
html:root body .workspace-panel :is(.hand-step>p,.hand-equations,.hand-answer,.formal-answer){color:var(--lesson-ink)}
html:root body .workspace-panel .hand-v2-nav{padding-top:12px;border-top-color:var(--lesson-edge)}
html:root body .workspace-panel .hand-v2-nav>button{min-height:40px}
html:root body .workspace-panel .takeaway-mode .remember{padding:26px}
html:root body .workspace-panel .question-drawer aside{background:#080d15;color:var(--lesson-ink)}
html:root body .workspace-panel .question-drawer-options div{background:#ffffff08;color:var(--lesson-ink);border-color:var(--lesson-edge)}
@container workspace (min-width:900px){html:root body .workspace-panel :is(.desmos-player-grid,.tangent-visual-grid,.circle-visual-grid,.parameter-circle-grid,.scale-circle-grid,.cone-visual-grid){grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:12px;grid-template-rows:minmax(0,1fr)}}
@container workspace (max-width:700px){html:root body .workspace-panel .explanation-player:not(.hand-player) .player-header{gap:8px;padding:6px}html:root body .workspace-panel .player-tabs button{padding:7px 10px;min-height:34px}html:root body .workspace-panel .desmos-step-heading{flex-direction:column}html:root body .workspace-panel .desmos-current-copy p{font-size:15px!important}html:root body .workspace-panel .hand-v2{padding:12px}html:root body .workspace-panel .hand-v2-current{padding:14px}}
@media(max-height:700px){html:root body .workspace-panel .workspace-panel-header{min-height:42px;padding:5px 12px}html:root body .workspace-panel .explanation-player:not(.hand-player) .player-header{min-height:46px;padding:6px}html:root body .workspace-panel .explanation-player:not(.hand-player) .mode-intro{padding:7px 5px}html:root body .workspace-panel .desmos-step-nav{padding:5px 0}html:root body .workspace-panel .desmos-controls{min-height:36px}html:root body .workspace-panel .desmos-controls button{min-height:34px;padding:6px 12px}}
/* The homepage uses this same player, while its outer stage supplies the sky. */
html:root body.homepage-sample .home-sample-host{background:transparent!important}
html:root body.homepage-sample .primary-learning.explanation-player{background:#03070be8!important}
@media(prefers-reduced-motion:reduce){html:root body .workspace-panel *{scroll-behavior:auto}}

html:root body .workspace-panel:has(.workspace-feature[data-feature=hand]:not([hidden])) .workspace-panel-header h2:before{content:"✦";font-size:23px;vertical-align:middle;margin-right:14px;color:white}
/* A narrow dock or phone must not turn the cue into a one-word column. */
@container workspace (max-width:700px){
 html:root body .workspace-panel .explanation-player:not(.hand-player) .mode-intro{flex-direction:column;align-items:stretch;gap:8px}
 html:root body .workspace-panel .mode-intro p{width:auto;min-width:0;flex:none;text-align:left}
 html:root body .workspace-panel .table-method-controls{align-self:stretch;justify-content:flex-end;flex-wrap:wrap}
 html:root body .workspace-panel .explanation-player:not(.hand-player) .player-body{overflow:auto!important}
 html:root body .workspace-panel .explanation-player:not(.hand-player) .player-mode.active{overflow:visible;flex:none;height:auto}
 html:root body .workspace-panel :is(.interactive-desmos-explanation,.tangent-visual,.circle-visual-explanation,.parameter-circle-visual,.scale-circle-visual,.cone-visual-explanation){overflow:visible;flex:none}
 html:root body .workspace-panel :is(.desmos-player-grid,.tangent-visual-grid,.circle-visual-grid,.parameter-circle-grid,.scale-circle-grid,.cone-visual-grid){display:flex;flex-direction:column;flex:none;overflow:visible}
 html:root body .workspace-panel .desmos-player-grid>div:first-child{height:300px;flex:none}
 html:root body .workspace-panel .controlled-desmos-stage{height:300px;min-height:300px}
 html:root body .workspace-panel :is(.desmos-step-copy,.visual-step-copy){height:auto;max-height:none;overflow:visible;flex:none}
}
