/* Request state is persistent, keyboard/screen-reader accessible, and visible above the catalog. */
#command-console .command-dialog{display:flex;flex-direction:column}
#command-notice{order:-1;position:sticky;top:0;z-index:2;background:#202d29;border:1px solid #bca574;padding:12px 14px;min-height:42px;line-height:1.4}
.vehicle-card .request-another{margin-top:8px;background:transparent;border:1px solid #a297784f;color:#d6c9a6}
.vehicle-card button:disabled{cursor:default;opacity:.66}
#touch-controls[hidden]{display:none!important}
#touch-controls{position:fixed;inset:0;z-index:18;pointer-events:none;user-select:none;-webkit-user-select:none}
#touch-controls button,.touch-stick{pointer-events:auto;touch-action:none;-webkit-tap-highlight-color:transparent}
#touch-toolbar{position:absolute;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(142px + env(safe-area-inset-bottom));display:flex;justify-content:center;flex-wrap:wrap;gap:5px;max-width:740px;margin:auto}
#touch-toolbar button{min-height:44px;min-width:44px;padding:6px 10px;border-radius:6px;background:#14231be8;border:1px solid #bcc9a259;color:#f0eddb;font:11px/1.2 system-ui;flex:0 1 auto}
#touch-controls button.held{background:#526047;border-color:#ecd69b}
.touch-stick{position:absolute;bottom:calc(16px + env(safe-area-inset-bottom));width:116px;height:116px;border-radius:50%;border:1px solid #d3e2c981;background:#12261cc9;display:grid;place-items:center}
#touch-move{left:max(16px,env(safe-area-inset-left))}#touch-aim{right:max(16px,env(safe-area-inset-right))}
.touch-stick i{width:40px;height:40px;border-radius:50%;background:#c9d4b655;border:1px solid #e9edd09e;pointer-events:none}
.touch-stick span{position:absolute;bottom:10px;font:10px system-ui;color:#e7eddb;pointer-events:none}
#touch-fire{position:absolute;right:calc(max(16px,env(safe-area-inset-right)) + 130px);bottom:calc(49px + env(safe-area-inset-bottom));width:65px;height:65px;border-radius:50%;background:#743b2ade;border:2px solid #f3bd80;color:#fff1d7;font:600 12px system-ui}
.touch-device #scene{touch-action:none}.touch-device #crosshair{display:block}
@media (max-width:900px),(pointer:coarse){
 html,body{height:100%;height:100dvh;overscroll-behavior:none}
 #menu{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;overflow-y:auto!important;overflow-x:hidden;padding:78px max(16px,env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))!important;gap:18px!important;max-height:100dvh}
 #menu[hidden]{display:none!important}#menu .intro{position:static!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important}
 #menu .intro h1{font-size:clamp(44px,10vw,76px)!important;margin:8px 0!important;line-height:1!important;letter-spacing:-2px!important}
 #menu .intro h2{font-size:22px!important}#menu .intro p{font-size:12px!important;line-height:1.5!important}
 #menu .scene-label,#menu .menu-footer,#menu .menu-controls{display:none!important}
 #briefing-classes{width:100%!important;min-width:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 #briefing-classes .class-card,#briefing-classes .flight-brief{min-width:0!important;max-width:100%!important}
 #briefing-classes canvas{height:95px!important;max-width:100%!important}
 .class-card>button,.flight-brief button{min-height:44px!important}
 .modal{padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;align-items:center;overflow:auto;max-height:100dvh}
 .dialog,.map-dialog,.loadout-dialog,.radio-dialog,.command-dialog,.shared-dialog{max-width:100%!important;max-height:calc(100dvh - 22px)!important;min-width:0!important;padding:16px!important;overflow:auto;overscroll-behavior:contain}
 .modal button,.modal select,.modal input{min-height:44px;touch-action:manipulation}
 .modal input,.modal select{font-size:16px!important}
 .command-header h2,.map-top h2{font-size:23px!important}.command-tabs{gap:3px!important;flex-wrap:wrap}.command-tabs button{flex:1;min-width:0;font-size:11px!important;padding:8px!important}
 .vehicle-catalog{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.vehicle-card{padding:12px!important;min-width:0}.vehicle-card canvas{width:100%!important;height:110px!important}.vehicle-card p{font-size:11px!important}
 .command-resources{flex-wrap:wrap!important;gap:7px!important}.command-resources>div{flex:1;min-width:72px;padding:8px!important}.command-footer{display:none!important}
 .research-grid,.radio-options,#radio-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #pause .dialog{display:flex!important;flex-direction:column!important}#cv-settings{padding:10px 0!important;border-left:0!important}
 .map-body{flex-direction:column!important;gap:14px!important}.map-body>canvas{width:100%!important;height:auto!important;aspect-ratio:1;touch-action:manipulation}.map-body aside{min-width:0!important;max-height:none!important}
 #map-sectors{max-height:260px!important;overflow:auto}.map-stats,.map-footer{display:none}.map-tools button{min-width:44px;min-height:44px}.map-top{gap:8px}
 #loadout-classes{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #fatal{inset:15% 5%!important;padding:24px!important}
}
@media(max-width:450px){.vehicle-catalog{grid-template-columns:1fr!important}.class-card h3{font-size:13px!important}.class-card header{gap:3px!important}.class-statrow{flex-wrap:wrap}.map-top .square{margin-left:0!important}#topbar{padding-inline:12px!important}.top-right{gap:8px!important}.brand b{font-size:18px!important}}
/* Compact live HUD leaves both thumbs and the scene unobstructed. */
.touch-device #cv-guide,.touch-device #cv-feed,.touch-device #cv-score,.touch-device #cv-menu-btn,.touch-device #cv-kit,.touch-device #cv-map-wrap,.touch-device #cv-flight{display:none!important}
.touch-device #cv-objective{left:10px;top:10px;width:calc(100% - 20px);max-width:360px;padding:7px 10px}
.touch-device #cv-lower-left{left:10px;top:83px;bottom:auto;width:135px}.touch-device #cv-vitals{padding:7px;min-height:0}.touch-device #cv-vitals header strong{font-size:20px}
.touch-device #cv-lower-right{right:10px;top:83px;bottom:auto;width:155px}.touch-device #cv-weapon{padding:7px}.touch-device #cv-ammo{font-size:24px}.touch-device #cv-reserve{font-size:11px}
.touch-device #cv-notice{bottom:auto;top:155px;max-width:calc(100vw - 24px);width:max-content;font-size:11px}
.touch-device #cv-context{bottom:calc(250px + env(safe-area-inset-bottom));max-width:85vw;font-size:11px}
.touch-device #cv-capture{top:48px;width:200px}
@media(orientation:landscape) and (max-height:550px){
 .touch-device #cv-objective{max-width:240px}.touch-device #cv-lower-left{left:10px;top:70px;width:112px}.touch-device #cv-lower-right{right:10px;top:10px;width:130px}.touch-device #cv-notice{top:65px}.touch-device #cv-context{bottom:139px}
 #touch-toolbar{left:145px;right:145px;bottom:calc(8px + env(safe-area-inset-bottom));gap:4px;max-height:126px;overflow-y:auto}
 #touch-toolbar button{font-size:10px;padding:5px 7px;min-height:44px}
 #touch-fire{right:max(38px,env(safe-area-inset-right));bottom:calc(140px + env(safe-area-inset-bottom));width:56px;height:56px}
 .map-body{flex-direction:row!important}.map-body>canvas{width:45%!important;align-self:start}.map-body aside{flex:1}
 #menu{padding-top:60px!important}#briefing-classes{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
.touch-device #fl-chat:not(.expanded){display:none!important}
.touch-device #fl-chat.expanded{left:10px;right:10px;top:65px;bottom:auto;width:auto;max-height:calc(100dvh - 90px);overflow:auto}
.touch-device #chat-input{font-size:16px}
.touch-device #weapon-envelope{display:none!important}
