/* Hallmark · working surface · industrial classroom
   pre-emit critique: P4 H4 E4 S5 R4 V4 */
:root{--paper:oklch(98% .006 240);--white:oklch(100% 0 0);--ink:oklch(27% .04 250);--muted:oklch(49% .025 250);--line:oklch(88% .012 250);--blue:oklch(42% .12 250);--wash:oklch(95% .02 250);--green:oklch(48% .12 160);--orange:oklch(65% .15 55);--shade:oklch(25% .04 250/.07);--font:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;--mono:ui-monospace,monospace;--space-sm:8px;--space-md:16px;--space-lg:24px;--ease-out:cubic-bezier(.2,.7,.3,1)}
*{box-sizing:border-box}html,body{margin:0;overflow-x:clip}body{background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px}button,select,input{font:inherit}button,select{white-space:nowrap;border:1px solid var(--line);border-radius:6px;background:var(--white);color:var(--ink);padding:9px 12px;cursor:pointer;font-size:14px}button:hover,select:hover{background:var(--wash);border-color:var(--blue)}button:active{transform:translateY(1px)}:focus-visible{outline:3px solid var(--orange);outline-offset:3px}button.primary{background:var(--blue);color:var(--white);border-color:var(--blue)}header{padding:20px 28px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:var(--white);gap:16px}.brand{display:flex;gap:12px;align-items:center}.mark{display:grid;place-items:center;width:44px;height:44px;background:var(--blue);color:var(--white);font-weight:700;font-size:24px;border-radius:4px}h1{font-size:23px;letter-spacing:-.6px;margin:0}h1,h2,h3{font-style:normal;overflow-wrap:anywhere;min-width:0}.brand p{font-size:13px;color:var(--muted);margin:4px 0 0}.status{display:flex;gap:8px;align-items:center;font-size:14px}.status i,.legend{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green)}body.paused .status i{background:var(--orange)}main{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;padding:22px 28px;max-width:2000px;margin:auto}.workspace{min-width:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.speed,.check{font-size:14px;display:flex;gap:6px;align-items:center;white-space:nowrap}.check{margin-right:8px}.check input{accent-color:var(--blue);width:16px;height:16px}.scene{position:relative;aspect-ratio:3/2;background:var(--white);border:1px solid var(--line);border-radius:8px;overflow:hidden}.scene #factory{width:100%;height:100%;display:block}.scene>canvas,#hotspots{position:absolute;inset:0;width:100%;height:100%}.hotspot{position:absolute;background:transparent;border:2px solid transparent;border-radius:5px;padding:0;transition:background .15s var(--ease-out),border-color .15s var(--ease-out)}.hotspot:hover{background:var(--shade);border-color:var(--blue)}.hotspot[aria-pressed=true]{border-color:var(--blue);background:transparent;box-shadow:inset 0 0 0 1px var(--white)}.hotspot span{position:absolute;top:3px;left:3px;padding:3px 5px;background:var(--blue);color:var(--white);font-size:12px;line-height:1;opacity:0}.hotspot:hover span,.hotspot:focus-visible span,.hotspot[aria-pressed=true] span{opacity:1}.scene-footer{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);padding:12px 0}.legend{background:var(--blue);margin-right:5px}#regions{display:flex;flex-wrap:wrap;gap:7px;padding-top:4px}#regions button{flex:1 0 100px;text-align:left;font-size:13px;display:flex;align-items:center;gap:8px;padding:10px}#regions button b{font:700 14px var(--mono);color:var(--blue)}#regions button[aria-pressed=true]{border-color:var(--blue);background:var(--wash)}aside{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:20px;min-width:0;align-self:start}.panel-head{display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:13px;color:var(--muted)}.code{font:700 16px var(--mono);color:var(--blue)}h2{font-size:26px;letter-spacing:-1px;margin:10px 0}#zoneSummary{font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 16px;min-height:48px}.crop{position:relative;overflow:hidden;border-radius:6px;background:var(--wash)}.crop canvas{width:100%;display:block;aspect-ratio:12/7}.crop span{position:absolute;bottom:8px;left:8px;background:var(--white);padding:3px 7px;font-size:12px;border-radius:3px}.motion-title{display:flex;justify-content:space-between;align-items:center;margin-top:18px}h3{font-size:15px;margin:0}.motion-title button{font-size:12px;padding:5px 8px}#mechanism{width:100%;display:block;aspect-ratio:36/19;margin:10px 0;background:var(--wash);border-radius:6px}#steps{list-style:none;padding:0;margin:0;display:flex;gap:5px}#steps li{flex:1;font-size:12px;color:var(--muted);border-top:3px solid var(--line);padding-top:8px;line-height:1.5}#steps li.active{color:var(--blue);border-color:var(--blue);font-weight:600}.lesson{font-size:14px;line-height:1.75;margin:18px 0;color:var(--muted);border-left:2px solid var(--orange);padding-left:12px}.panel-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:14px}footer{max-width:2000px;margin:auto;padding:0 28px 20px;display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;line-height:1.7}#imageError{position:absolute;inset:20%;background:var(--white);padding:24px;color:var(--ink)}.workspace:fullscreen{background:var(--paper);padding:16px;overflow:auto}.workspace:fullscreen .scene{max-height:calc(100vh - 150px);width:auto;max-width:100%;margin:auto}.workspace:fullscreen #regions{justify-content:center}
@media(min-width:1700px){main{grid-template-columns:minmax(0,1fr) 380px}aside{padding:24px}}@media(max-width:1100px){main{grid-template-columns:minmax(0,1fr);padding:18px}aside{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 24px}aside .panel-head,aside h2,aside #zoneSummary{grid-column:1}aside .crop{grid-column:1;grid-row:4/9}.motion-title{grid-column:2;grid-row:1/3;margin:0}#mechanism{grid-column:2;grid-row:3/6}#steps,.lesson,.panel-bottom{grid-column:2}.lesson{margin:8px 0}.panel-bottom{padding-top:8px}}@media(max-width:600px){header{padding:16px;align-items:flex-start}h1{font-size:20px}.mark{width:38px;height:38px}.status{font-size:12px;margin-top:6px}.brand p{font-size:12px}main{padding:12px;gap:16px}.toolbar{gap:8px}.controls{gap:6px}button,select{padding:8px 10px}.check,.speed{font-size:13px}.scene-footer{font-size:12px;flex-direction:column;gap:4px}.desktop{display:none}#regions button{flex-basis:90px}aside{display:block;padding:16px}.crop{max-height:230px}.crop canvas{max-height:230px;object-fit:contain}#mechanism{max-height:240px}.motion-title{margin-top:16px}#zoneSummary{min-height:0}.lesson{margin:16px 0}footer{padding:0 16px 20px;flex-direction:column;gap:4px}.hotspot span{font-size:10px}.status{max-width:90px}#fullscreen{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* In-map photo motion + publisher video panel */
main{grid-template-columns:minmax(0,1fr) 400px}.video-section{margin:0 0 20px}.video-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.video-heading span{font-size:12px;color:var(--muted)}.video-mount{background:var(--ink);border-radius:6px;overflow:hidden;aspect-ratio:16/9;min-height:200px}.video-mount iframe{width:100%;height:100%;min-height:200px;display:block;border:0}#videoTitle{font-size:15px;line-height:1.6;margin:10px 0 5px}#videoSource{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 10px}.video-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.video-actions a{font-size:12px;color:var(--blue);white-space:nowrap;text-underline-offset:3px}.video-actions button{font-size:12px;padding:5px 8px}.video-note{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:0}.crop{max-height:235px}.crop canvas{max-height:235px;object-fit:contain}.principle{margin-top:14px}.principle summary{font-size:14px;cursor:pointer;color:var(--blue);padding:6px 0}.principle .motion-title{margin-top:8px}aside .panel-bottom{margin-top:12px}
@media(min-width:1700px){main{grid-template-columns:minmax(0,1fr) 440px}}@media(max-width:1100px){main{grid-template-columns:minmax(0,1fr)}aside{display:block}.video-section{float:right;width:52%;margin:0 0 18px 22px}.crop{max-height:260px}.crop canvas{max-height:260px}.panel-bottom{clear:both}.principle{max-width:44%}}@media(max-width:600px){.video-section{float:none;width:100%;margin:0 0 18px}.principle{max-width:none}.video-actions{gap:10px}.video-mount,.video-mount iframe{min-height:200px}}

.video-mount video{width:100%;height:100%;min-height:200px;display:block;object-fit:contain;background:var(--ink)}

.shuttle-hotspot{z-index:2;border-radius:12px}.shuttle-hotspot:not(:hover):not(:focus-visible)[aria-pressed=false]{border-color:transparent}.shuttle-hotspot span{top:-15px}

#shuttleSprite,#cleanPlate{display:none!important}
