/* Consistent controls, compact tours and accessible local dialogs. */
#tip{display:none!important}
.brand{min-height:44px;display:flex;align-items:center}
button,select,summary{touch-action:manipulation}
button,select,.motion-tools summary{min-height:44px;min-width:44px}
#controlTip{position:fixed;z-index:200;max-width:min(310px,calc(100vw - 16px));padding:9px 12px;color:#10242b;background:#eef9f6;border:1px solid #a6d3cd;border-radius:8px;box-shadow:0 4px 16px #0006;font-size:12px;pointer-events:none}
.control-guide{width:min(94vw,640px);max-height:90dvh;padding:0;background:#142c37;color:#eef7f7;border:1px solid #63818a;border-radius:12px;overflow:auto}
.control-guide::backdrop{background:#061017d9}
.guide-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;position:sticky;top:0;background:#142c37;border-bottom:1px solid #365764}
.guide-head h2{margin:0;font-size:20px}.guide-content{padding:4px 16px 18px;font-size:14px;line-height:1.55}.guide-content dt{font-weight:700;color:#b1e8df;margin-top:14px}.guide-content dd{margin:3px 0 0;color:#d2e0e4}.guide-content input{box-sizing:border-box;width:100%;min-height:44px;background:#0b202b;color:#fff;border:1px solid #70909b;border-radius:6px;padding:10px;font:inherit}
.r32-video-wrap video{height:auto;max-height:60svh;aspect-ratio:16/9}
.r32-tour{padding:10px 14px}.r32-tour-intro,.r32-tour-note{max-width:90ch}.r32-tour-story{min-height:0;padding:8px 0}.r32-tour-story>strong{font-size:15px}.r32-tour-progress{border-bottom:0;padding:5px 0}
.r32-overlay{background:#09202cba;max-width:min(74%,410px);padding:6px 9px}
.r32-overlay span{display:none}
.dock{flex-wrap:wrap}.dock>span{min-width:110px}.dock button{white-space:nowrap}
.r31-cast-dialog[open]{display:flex;flex-direction:column;height:min(92dvh,800px);overflow:hidden}.r31-dialog-stage{height:auto;min-height:70px;flex:1;overflow:hidden}.r31-dialog-head,.r31-dialog-controls,.r31-cast-dialog>p{flex-shrink:0}.r31-dialog-controls{flex-wrap:wrap;gap:8px}.r31-cast-dialog>p{font-size:11px}
.expanded .panel{overflow:auto;min-height:0}
.expanded #panel-prototype{min-height:0;overflow:auto;flex:1}.expanded .r32-video-wrap{min-height:120px;flex:1 0 auto}.expanded .r32-video-wrap video{height:auto;max-height:55dvh}.expanded .r32-tour-intro,.expanded .r32-tour-note{display:none}.expanded .dock{flex-shrink:0}
@media(max-width:540px){.r32-video-wrap video{max-height:48svh}.r32-overlay strong{font-size:10px}.r32-tour-next button{font-size:12px}.dock>span{display:none}.dock{justify-content:flex-end;gap:6px}.dock button{padding:7px 9px}.guide-head{padding:10px}.guide-content{padding:3px 12px 14px}.control-guide{max-height:92dvh}}
@media(max-height:500px){.r31-dialog-head{padding:5px 10px}.r31-dialog-controls{padding:5px}.r31-cast-dialog>p{display:none}.r32-overlay{top:4px;left:4px}.expanded .r32-tour{padding:7px}.expanded .r32-tour-story,.expanded .r32-tour-progress,.expanded .r27-scene{display:none}.expanded .r32-tour-next{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}

.tour-explanation{border-top:1px solid #365764;margin:3px 0 9px;font-size:12px;color:#c8dcdf}.tour-explanation>summary{display:flex;align-items:center;gap:7px;min-height:44px;cursor:pointer;color:#b1e8df}.tour-explanation>p,.tour-explanation>small{font-size:12px;line-height:1.5;display:block;margin:8px 0}.r27-scene{display:none}.tour-explanation[open]{padding-bottom:8px}
