/* A single-screen teaching workspace; no browser fullscreen permission is needed. */
html.ss-simulation-open{overflow:hidden}
.wh-lab .ss-simulation-screen{position:fixed;inset:0;width:100vw;height:100vh;width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#f7fafc;color:#14263a;overflow:hidden;box-sizing:border-box}
.wh-lab .ss-simulation-screen[open]{display:flex;flex-direction:column}
.ss-simulation-screen::backdrop{background:#f7fafc}
.ss-simulation-screen .ss-screen-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 20px;background:#153e44;color:white;border-bottom:1px solid #264e54;min-height:54px}
.ss-screen-bar strong{font-size:20px;text-align:center;line-height:1.2}
.ss-screen-bar button,.ss-controls-done{border:1px solid #749596;border-radius:9px;background:#fff;color:#153e44;padding:8px 12px;min-height:40px;font-size:17px;font-weight:750;flex:none}
.ss-screen-bar .ss-screen-exit{background:transparent;color:white}
.wh-lab .ss-simulation-screen>.ss-car-engine-view,.wh-lab .ss-simulation-screen>.ss-object-detail{display:flex!important;flex:1;min-height:0;flex-direction:column;position:relative!important;opacity:1;transform:none!important}
.ss-simulation-screen .ss-car-inside-nav,.ss-simulation-screen .wh-diagram-intro{display:none!important}
.wh-lab .ss-simulation-screen .wh-body{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);flex:1;min-height:0;order:1}
.wh-lab .ss-simulation-screen .wh-center{min-width:0;min-height:0;justify-content:center;background:#f7fafc}
.wh-lab .ss-simulation-screen .wh-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;border:0;overflow:hidden}
.wh-lab .ss-simulation-screen .wh-stage svg{width:100%;height:100%;aspect-ratio:auto;min-width:0;min-height:0;max-width:none;max-height:none}
.wh-lab .ss-simulation-screen .wh-stage.wh-zoom{overflow:auto}
.wh-lab .ss-simulation-screen .wh-stage.wh-zoom svg{width:1200px;height:885px;min-width:1200px;flex:none}
.wh-lab .ss-simulation-screen .wh-stage.wh-zoom:before{display:none}
.wh-lab .ss-simulation-screen .wh-side{display:flex;flex-direction:column;justify-content:center;gap:16px;min-height:0;padding:20px;border-top:0;border-left:1px solid #cfdfeb;background:#fff}
.wh-lab .ss-simulation-screen .wh-explain{padding:0;border:0;background:none;min-height:0;align-self:stretch}
.wh-lab .ss-simulation-screen .wh-explain h3{font-size:clamp(22px,2vw,28px);line-height:1.2;margin:0 0 12px!important}
.wh-lab .ss-simulation-screen .ss-screen-summary{font-size:20px;line-height:1.4;color:#294d62}
.wh-lab .ss-simulation-screen .wh-phase-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;flex:none;order:-1}
.wh-lab .ss-simulation-screen .wh-phase{border:1px solid #d2e1e8;min-height:48px;padding:8px;gap:8px;border-radius:10px;font-size:16px;background:#fff;line-height:1.25}
.wh-lab .ss-simulation-screen .wh-phase.active{background:#e3f2f5;border-color:#21859b;color:#0e5472}
.wh-lab .ss-simulation-screen .wh-phase b{font-size:18px;width:28px;height:28px}
.wh-lab .ss-simulation-screen .wh-toolbar{order:2;flex:none;justify-content:center;padding:8px 20px;gap:12px;border-top:1px solid #cfdfeb;border-bottom:0;background:white}
.wh-lab .ss-simulation-screen .wh-toolbar .wh-button{flex:1;max-width:320px;min-width:0;min-height:46px;padding:9px 14px;font-size:0!important}
.wh-lab .ss-simulation-screen .wh-toolbar [data-action="step"]::after{content:'Next step →';font-size:19px}
.wh-lab .ss-simulation-screen .wh-toolbar [data-current-step="0"]::after{content:'Start steps →'}
.wh-lab .ss-simulation-screen .wh-toolbar [data-current-step="4"]::after{content:'Start again ↺'}
.wh-lab .ss-simulation-screen .wh-toolbar [data-action="toggle"]::after{content:'Run ▶';font-size:19px}
.wh-lab .ss-simulation-screen .wh-toolbar [data-action="toggle"][aria-pressed="true"]::after{content:'Stop ■'}
.wh-lab .ss-simulation-screen .ss-screen-controls{position:absolute;right:12px;top:66px;bottom:12px;width:min(410px,calc(100% - 24px));padding:18px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #a6c4cc;border-radius:16px;box-shadow:0 8px 36px #14263a33;z-index:10}
.ss-controls-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.wh-lab .ss-controls-heading h2{font-size:22px;line-height:1.25}
.wh-lab .ss-screen-controls .wh-control-rack{display:grid;padding:0 0 18px;gap:16px;border:0;background:white}
.wh-lab .ss-screen-controls .wh-control{min-width:0;font-size:18px}
.wh-lab .ss-screen-controls .wh-control-toggle,.wh-lab .ss-screen-controls select{font-size:18px}
.wh-lab.ss-teaching-mode .ss-screen-controls .wh-control-rack:after{font-size:16px}
.ss-extra-controls{display:flex;gap:8px;flex-wrap:wrap}
.wh-lab .ss-extra-controls .wh-button{font-size:17px!important;min-height:44px;padding:8px 10px}
.ss-screen-notes{border-top:1px solid #cfdfeb;padding-top:16px;margin-top:18px}
.ss-screen-notes summary{font-size:18px;font-weight:750;color:#175d77;cursor:pointer;min-height:44px}
.wh-lab .ss-screen-notes p,.wh-lab .ss-screen-notes .ss-teaching-look{font-size:18px!important;line-height:1.5;margin-top:12px!important}
.wh-lab .ss-screen-notes .wh-diagram-caption{padding:8px 0;background:white}
@media(max-width:700px) and (orientation:portrait){
 .wh-lab .ss-simulation-screen .wh-body{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
 .wh-lab .ss-simulation-screen .wh-side{border-left:0;border-top:1px solid #cfdfeb;padding:12px 16px 14px;gap:10px;justify-content:start}
 .wh-lab .ss-simulation-screen .wh-phase-list{display:flex;gap:8px}
 .wh-lab .ss-simulation-screen .wh-phase{flex:1;justify-content:center;min-height:38px;padding:3px}
 .wh-lab .ss-simulation-screen .wh-phase span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .wh-lab .ss-simulation-screen .wh-explain h3{font-size:22px;line-height:1.2;margin-bottom:8px!important}
 .wh-lab .ss-simulation-screen .ss-screen-summary{font-size:18px;line-height:1.35}
 .wh-lab .ss-simulation-screen .ss-screen-bar{padding:6px 10px;gap:8px;min-height:50px}
 .ss-screen-bar strong{font-size:16px}
 .ss-screen-bar button{padding:7px 9px;font-size:15px;min-height:38px}
 .wh-lab .ss-simulation-screen .wh-toolbar{padding:7px 12px max(7px,env(safe-area-inset-bottom));gap:10px}
 .wh-lab .ss-simulation-screen .wh-toolbar .wh-button{min-height:44px;padding:8px}
 .wh-lab .ss-simulation-screen .wh-toolbar .wh-button::after{font-size:18px}
 .wh-lab .ss-simulation-screen .ss-screen-controls{top:58px;bottom:8px;right:8px;width:calc(100% - 16px);padding:16px}
}
@media(orientation:landscape) and (max-height:600px){
 .wh-lab .ss-simulation-screen .ss-screen-bar{padding:4px 12px;min-height:42px}
 .ss-screen-bar strong{font-size:17px}.ss-screen-bar button{min-height:34px;padding:4px 10px;font-size:15px}
 .wh-lab .ss-simulation-screen .wh-body{grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr)}
 .wh-lab .ss-simulation-screen .wh-side{padding:10px 14px;gap:8px}
 .wh-lab .ss-simulation-screen .wh-phase-list{display:flex;gap:6px}
 .wh-lab .ss-simulation-screen .wh-phase{flex:1;justify-content:center;min-height:34px;padding:2px}
 .wh-lab .ss-simulation-screen .wh-phase span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .wh-lab .ss-simulation-screen .wh-explain h3{font-size:21px;margin-bottom:8px!important}
 .wh-lab .ss-simulation-screen .ss-screen-summary{font-size:17px;line-height:1.3}
 .wh-lab .ss-simulation-screen .wh-toolbar{padding:5px 12px}
 .wh-lab .ss-simulation-screen .wh-toolbar .wh-button{min-height:38px;padding:5px}
}
/* Allow reflow, rather than clipping learning text, at extreme zoom/very short heights. */
@media(max-height:350px){.wh-lab .ss-simulation-screen .wh-body{overflow:auto}.wh-lab .ss-simulation-screen .wh-center{min-height:180px}.wh-lab .ss-simulation-screen .wh-side{min-height:230px}}
