:root{color-scheme:dark;font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,system-ui,sans-serif;background:#071019;color:#e7f0f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background-image:linear-gradient(#3d697e18 1px,transparent 1px),linear-gradient(90deg,#3d697e18 1px,transparent 1px),radial-gradient(ellipse at 54% 7%,#13334490,transparent 53%);background-size:32px 32px,32px 32px,auto}a{color:inherit}button,input{font:inherit}button{min-height:44px;min-width:44px;padding:8px 12px;border:1px solid #47717c;border-radius:5px;background:#102a34;color:#e4f2f4;cursor:pointer;font-size:12px}button:hover,button[aria-pressed=true]{background:#1a414d}button[aria-pressed=true]{border-color:#e6b461}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,[tabindex]:focus-visible,a:focus-visible{outline:3px solid #f0ba65;outline-offset:2px}[hidden]{display:none!important}.site-frame{width:min(100% - 48px,1480px);margin:auto}.site-header{padding:18px 0 20px;border-bottom:1px solid #203543}.prototype-breadcrumb{color:#9aafb8}.header-row{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:13px}.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none}.brand-mark{display:grid;width:44px;height:44px;place-items:center;border:1px solid #49cfe1;color:#81eafa;font:700 12px monospace}.brand-copy{display:grid;gap:4px}.brand-copy strong{font-size:16px}.brand-copy small{color:#8ca4b0;font:10px/1.3 monospace;letter-spacing:.09em}.section-nav{display:flex;flex-wrap:wrap;gap:8px 20px}.section-nav a{color:#a9bbc2;font:11px/1.5 monospace;letter-spacing:.1em;text-decoration:none}.hero{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.75fr);gap:20px;padding:24px 0;align-items:end}.kicker,.status-label{color:#64d6e8;font:10px/1.5 monospace;letter-spacing:.12em;margin:0 0 9px}.hero h1{font-size:clamp(1.8rem,3.2vw,2.9rem);line-height:1.25;margin:0}.hero-subtitle{color:#91a7b2;font:12px/1.5 monospace;margin:9px 0}.hero-lead{color:#c2d0d5;font-size:14px;line-height:1.8;margin:12px 0 0}.status-rack{display:grid;gap:8px;padding:16px 18px;border:1px solid #765d39;background:#211d16d1}.status-rack .status-label{color:#e6b461;margin:0}.status-rack strong{color:#f0c77d;font-size:15px}.status-rack>span:last-child{color:#c8b894;font-size:12px;line-height:1.55}.observation-panel,.note-card{min-width:0;border:1px solid #2a414e;background:#08131cf0;padding:14px}.panel-heading{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:14px}.panel-heading .kicker{margin-bottom:5px}h2{font-size:18px;line-height:1.35;margin:0}.bench-tag{font:10px monospace;color:#e6b461}.stage{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:min(620px,calc(100dvh - 80px));min-height:400px;isolation:isolate;overflow:hidden;border:1px solid #38505c;background:#071019}.stage-actions{display:flex;gap:5px;padding:6px;background:#08131c}.stage-actions button{flex:1}.canvas-area{position:relative;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}canvas{display:block;width:100%;height:100%;min-height:0;touch-action:none}.hud{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:4px 7px;gap:2px 8px;background:#071019cc;color:#d8e8e6;font:11px/1.5 monospace;font-variant-numeric:tabular-nums;pointer-events:none}.hud span{overflow-wrap:anywhere}.pause-note{position:absolute;right:8px;bottom:8px;background:#071019cc;padding:3px 8px;font:11px monospace;pointer-events:none}.interaction-controls{padding:6px;display:grid;gap:5px;background:#08131c}.modes{display:flex;gap:5px}.modes button{flex:1;user-select:none}.conditions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.conditions label{min-width:0;font-size:11px;display:grid;grid-template-columns:1fr auto;align-items:center}.conditions output{color:#f0c77d}.conditions input{width:100%;min-width:0;height:44px;margin:0;grid-column:1/-1;accent-color:#64d6e8}.stage-screen{position:absolute;inset:58px 6px 6px;z-index:5;display:grid;align-items:start;justify-items:center;padding:14px;background:#0c202af5;overflow:auto;overscroll-behavior:contain;border:1px solid #527883;border-radius:8px}.screen-card{width:100%;max-width:590px;color:#d8eae7}.screen-card h2{font-size:22px;margin-bottom:12px}.screen-card p{font-size:13px;line-height:1.7}.screen-card>button{width:100%;font-size:14px;background:#dfc17f;border-color:#f0d28e;color:#172931;min-height:48px}.fallback{position:absolute;z-index:10;inset:58px 6px 6px;background:#211911;color:#f0d2a5;padding:20px;overflow:auto;font-size:14px;line-height:1.7}.canvas-help{font-size:12px;line-height:1.8;color:#8da2ab}.notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.note-card{font-size:12px;line-height:1.7;color:#b8c7cc;padding:17px}.note-card h2{font-size:16px;color:#eef3f1}.site-footer{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:24px;padding:20px 0 30px;border-top:1px solid #203543;color:#90a6ae;font-size:11px}.site-footer .public-site-footer-nav{flex-basis:100%;font:10px/1.5 monospace}.expanded,.stage:fullscreen{position:fixed;inset:0;z-index:1000;width:100%;height:100dvh!important;min-height:0;border:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}body.view-expanded{overflow:hidden}.modal-open .canvas-area,.modal-open .interaction-controls{visibility:hidden}.modal-open .stage-actions button:not(#fullscreenButton){visibility:hidden}.modal-open .stage-actions #fullscreenButton{flex:0 0 auto;margin-left:auto}#observatory{scroll-margin-top:0}
@media(max-width:760px){.site-frame{width:min(100% - 32px,620px)}.header-row{align-items:start;flex-direction:column;gap:15px}.hero{grid-template-columns:1fr;padding:20px 0 14px}.status-rack{padding:10px}.notes{grid-template-columns:1fr}.site-footer{align-items:start;flex-direction:column}.observation-panel{padding:8px}.bench-tag{display:none}.stage{height:min(620px,calc(100dvh - 30px));min-height:420px}.stage-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px}.stage-actions button{padding:5px;font-size:11px}.hud{grid-template-columns:repeat(3,minmax(0,1fr));font-size:10px}.stage-screen,.fallback{top:105px}.modal-open .stage-actions{display:flex;height:52px}.modal-open .stage-actions button:not(#fullscreenButton){display:none}.modal-open .stage-screen{top:57px}.interaction-controls{padding:5px}.modes button{padding:5px;font-size:11px}.conditions{gap:7px}.conditions label{font-size:10px}.screen-card p{font-size:12px}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){#observatory{padding:6px}#observatory>.panel-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.stage{height:calc(100dvh - 14px);min-height:0}.stage-actions{display:flex;padding:4px;gap:4px}.stage-actions button{padding:4px 2px;font-size:10px}.hud{grid-template-columns:repeat(5,minmax(0,1fr));font-size:9px;line-height:1.3;padding:2px 5px}.interaction-controls{grid-template-columns:1fr 1.5fr;gap:8px;padding:4px}.modes{align-items:center;gap:4px}.modes button{font-size:10px;padding:4px 2px}.conditions{gap:6px}.conditions label{font-size:9px}.conditions input{height:44px}.stage-screen,.modal-open .stage-screen,.fallback{inset:53px 5px 5px}.modal-open .stage-actions{height:48px}.screen-card p{font-size:11px;line-height:1.4;margin:5px 0}.screen-card h2{font-size:16px}.screen-card .kicker{display:none}.screen-card>button{min-height:44px}.stage-screen{padding:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Fleet controls stay inside the existing observation window. */
.stage{grid-template-rows:44px auto minmax(0,1fr) auto}.vehicle-choice{display:flex;align-items:center;gap:10px;padding:0 6px;font-size:12px;background:#08131c}.vehicle-choice select{flex:1;min-width:0;min-height:44px;height:44px;font:inherit;color:#e4f2f4;background:#102a34;border:1px solid #47717c;border-radius:5px;padding:6px}select:focus-visible{outline:3px solid #f0ba65;outline-offset:-3px}.part-buttons{display:contents}.part-values{display:contents}.part-ranges{display:contents}.part-ranges label{min-width:0}.part-ranges input{width:100%;min-width:44px;height:44px;grid-column:1/-1;margin:0;accent-color:#64d6e8}.hud{grid-template-columns:repeat(4,minmax(0,1fr))}.stage-screen,.fallback{top:102px}.fallback{inset:auto 6px 6px;max-height:calc(100% - 156px);padding:10px}.fallback p{margin:0 0 6px}.modal-open .stage-screen{top:102px}.modal-open .stage-actions{height:52px}.modal-open .stage-actions button:not(#fullscreenButton){display:none}.modal-open .stage-actions{display:flex}.modal-open .vehicle-choice{visibility:visible}.conditions:has(.part-ranges:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.stage-screen{top:149px}.modal-open .stage-screen{top:101px}.modes button{font-size:10px;padding:4px 2px}.hud{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){.stage-screen,.modal-open .stage-screen{top:97px}.interaction-controls{grid-template-columns:1fr;gap:2px}.modes{align-items:stretch}.modes button{min-width:44px;flex:1}.conditions label{line-height:12px}.conditions{gap:6px}.hud{grid-template-columns:repeat(4,minmax(0,1fr));font-size:9px;line-height:12px}.vehicle-choice{font-size:11px}.stage-actions{min-height:52px}.stage-actions button{min-width:44px}.modal-open .stage-actions{height:52px}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){.stage{grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:120px minmax(0,1fr)}.vehicle-choice{grid-row:1;grid-column:1;min-width:0;height:52px;padding:4px;gap:0;font-size:0}.vehicle-choice select{width:100%;min-width:44px;font-size:11px;padding:4px}.stage-actions{grid-row:1;grid-column:2;min-width:0;height:52px}.stage-actions button{min-width:44px;min-height:44px;line-height:1.15}.canvas-area{grid-row:2;grid-column:1/-1}.interaction-controls{grid-row:3;grid-column:1/-1}.stage-screen,.modal-open .stage-screen{inset:53px 5px 5px}.fallback{max-height:calc(100% - 58px)}}

/* Additional mechanisms use the existing control region. Keep the model window visible. */
.interaction-controls{min-height:0;max-height:224px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.modes{flex-wrap:wrap}.modes button{flex:1 0 110px}.conditions,.conditions:has(.part-ranges:not([hidden])){grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.hud{max-height:64px;overflow-y:auto;pointer-events:auto;overscroll-behavior:contain}.stage{grid-template-rows:44px auto minmax(150px,1fr) auto}.canvas-area{min-height:150px}.part-ranges input,.conditions input{min-height:44px}
@media(max-width:760px){.interaction-controls{max-height:224px}.modes button{flex-basis:105px}.stage{min-height:560px}.hud{max-height:60px}.conditions,.conditions:has(.part-ranges:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){.stage{min-height:0;grid-template-rows:52px minmax(92px,1fr) auto}.canvas-area{min-height:92px}.interaction-controls{max-height:128px;display:block}.modes{margin-bottom:4px}.modes button{flex-basis:90px}.conditions,.conditions:has(.part-ranges:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}.hud{max-height:36px}.expanded,.stage:fullscreen{grid-template-rows:52px minmax(92px,1fr) auto}}

.motion-constraint{margin:0;font-size:11px;line-height:1.5;color:#f0c77d}
