.sidehead{display:flex;align-items:start;justify-content:space-between;gap:8px}.sidehead h2{margin-bottom:18px}.sidehead button{font-size:14px;padding:8px;min-height:40px}#componentLegend{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}#componentLegend span{border:1px solid #d3dce2;border-radius:6px;padding:8px 10px;font-size:14px;background:#f3f6f8}.threshold-choice{flex-direction:row!important;align-items:center}.threshold-choice input{width:22px;min-height:22px}#status{min-height:0}.viewer{position:sticky;top:16px;align-self:start}.technical{margin:0 0 18px}header a:last-child{font-size:16px}.stage{background:#e4e9ed}.gesture{font-size:14px;white-space:normal;text-align:center;width:max-content;max-width:90%}@media(max-width:760px){.viewer{position:static}.stage{aspect-ratio:1.03}.title h1{margin-bottom:18px}}

header a.return-site{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;border:1px solid #f5f5f5;border-radius:8px;background:#fff;color:#1d262d;font-size:16px;font-weight:700;text-decoration:none}header a.return-site:hover{background:#e4e9ed}

.motion>label,.motion>#stop,.motion>#doorStop,.motion>#shutterStop{display:none}

/* Compact fixed views: all visible scene controls live inside the drawing. */
main{display:block;max-width:1300px;padding:16px}.viewer{position:static;padding:0;border:0;background:transparent}.stage{height:calc(100dvh - 150px);min-height:480px;max-height:820px;aspect-ratio:auto}.scene-surface{position:absolute;inset:72px 0 90px}.stage>nav{position:absolute;z-index:2;top:16px;left:16px;right:16px;margin:0;justify-content:center}.stage>nav button:last-child{margin-left:0}.stage-actions{position:absolute;z-index:2;bottom:16px;left:16px;right:16px;display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.stage-actions .motion{margin:0}.stage-actions button{box-shadow:0 2px 8px #0002}#status:empty{display:none}@media(max-width:760px){header{padding:12px;gap:8px}.brand{font-size:20px}header span{display:none}header a.return-site{margin-left:auto;padding:10px 12px}main{padding:10px}.stage{height:calc(100dvh - 110px);min-height:560px}.scene-surface{inset:70px 0 166px}.stage-actions{flex-direction:column;align-items:stretch;gap:8px;bottom:12px;left:12px;right:12px}.stage-actions .motion{display:block}.stage-actions button{width:100%;min-height:42px;padding:10px 12px}.stage>nav{top:12px;left:12px;right:12px}}
