: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,select{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,select: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:clamp(450px,48vw,650px);isolation:isolate;overflow:hidden;border:1px solid #38505c;background:#071019}.stage-actions{display:flex;gap:5px;padding:7px;background:#08131c}.stage-actions button{flex:1}.canvas-area{position:relative;min-height:0;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none}.hud{position:absolute;top:5px;left:6px;right:6px;display:flex;flex-wrap:wrap;gap:3px 14px;background:#071019cc;color:#d8e8e6;font:11px/1.5 monospace;pointer-events:none}.hud #selectedValue{flex-basis:100%;overflow-wrap:anywhere}.interaction-controls,.modes,.push-controls{display:flex;gap:5px}.interaction-controls{padding:7px;justify-content:space-between}.modes button,.push-controls button{touch-action:none;user-select:none}.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}.screen-card label{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin:14px 0 5px}.screen-card select{width:100%;min-height:44px;background:#102a34;color:#e4f2f4;border:1px solid #77999b;padding:6px}.screen-card input{width:100%;min-height:44px;accent-color:#64d6e8;margin:0}.screen-card output{color:#f0c77d}.preset-row{display:flex;gap:6px}.preset-row button{flex-shrink:0}.fallback{position:absolute;z-index:10;inset:60px 10px 10px;background:#211911;color:#f0d2a5;padding:20px;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;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}
@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:510px}.stage-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px}.stage-actions button{padding:5px;font-size:11px}.stage-screen{inset:105px 5px 5px;padding:12px}.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{flex-direction:column;padding:5px}.modes,.push-controls{width:100%}.modes button,.push-controls button{flex:1;padding:5px;font-size:11px}.screen-card p{font-size:12px}.hud{font-size:10px}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){.stage{height:calc(100dvh - 16px)}.stage-actions{display:flex;padding:4px;gap:4px}.stage-actions button{padding:4px;font-size:10px}.interaction-controls{flex-direction:row;padding:4px;gap:8px}.modes,.push-controls{width:auto}.interaction-controls button{padding:4px 7px;font-size:10px}.stage-screen{inset:53px 5px 5px}.modal-open .stage-actions{height:48px}.modal-open .stage-screen{top:53px}.screen-card p{margin:8px 0}.hud{font-size:10px}.screen-card h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* The normal landscape stage fits the viewport when OBSERVE is opened. */
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
  #observatory{padding:6px;scroll-margin-top:0}
  #observatory>.panel-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
.modes{width:100%}.modes button{flex:1}.hud span{white-space:nowrap}

/* Behavior controls use the existing stage layout. */
.modes button{min-width:44px}.hud{gap:2px 10px}.hud #behaviorStatus{color:#f0c77d}
#patrolOrder{overflow-wrap:anywhere;color:#c6b4f0}#patrolControls>button{width:100%}
@media(max-width:760px){.modes button{padding:4px 2px}.hud{gap:2px 8px}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){.interaction-controls .modes{width:100%;gap:4px}.interaction-controls .modes button{padding:4px 2px}.hud{font-size:10px;gap:1px 8px}}

