/* Phone landscape uses the available viewport, not the decorative cockpit gap. */
@media(orientation:landscape) and (max-height:600px){
 body[data-bridge="on"] dialog:is(.action-dashboard,.action-launch,.boss-dialog,#detail-dialog,.personal-console)[open]{
 position:fixed!important;top:max(6px,env(safe-area-inset-top))!important;bottom:max(6px,env(safe-area-inset-bottom))!important;
 left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;
 width:auto!important;max-width:none!important;height:calc(100dvh - max(6px,env(safe-area-inset-top)) - max(6px,env(safe-area-inset-bottom)))!important;
 max-height:none!important;min-height:0!important;box-sizing:border-box!important;margin:0!important;
 transform:none!important;animation:none!important;overflow-x:hidden!important;overflow-y:auto!important;
 overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;
 background:#071b29fa!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 body[data-bridge="on"] dialog.action-dashboard[open]{padding:10px 14px!important}
 body[data-bridge="on"] dialog.action-dashboard .action-dialog-head{position:sticky;top:-10px;z-index:8;background:#071b29;padding:8px 0;margin:0!important;display:flex;align-items:center;justify-content:space-between;gap:12px}
 body[data-bridge="on"] dialog.action-dashboard .action-cards{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body[data-bridge="on"] dialog.action-dashboard .action-card{min-width:0!important;overflow:visible!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog)[open]{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog)>.fleet-dialog-scroll{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;touch-action:pan-y;padding:10px 16px!important;overscroll-behavior:contain}
 body[data-bridge="on"] dialog .fleet-launch-bar{flex:0 0 auto!important;position:relative!important;bottom:auto!important;margin:0!important;padding:8px 14px!important;background:#071b29!important}
 body[data-bridge="on"] dialog .fleet-start{min-height:44px!important;padding:9px 14px!important}
 body[data-bridge="on"] dialog .action-dialog-head>button{min-width:44px!important;min-height:44px!important;flex-shrink:0}
}

/* Fleet controls must keep a real scroll area in both phone orientations.
   The personal ship belongs in this area, never in the nonshrinking footer. */
@media(max-width:700px),(orientation:landscape) and (max-height:600px){
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog)[open]{position:fixed!important;inset:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;width:auto!important;max-width:none!important;height:calc(100dvh - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)))!important;max-height:none!important;min-height:0!important;margin:0!important;transform:none!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog)>.fleet-dialog-scroll{flex:1 1 0%!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog)>.fleet-launch-bar{flex:0 0 auto!important;min-height:0!important;position:relative!important;margin:0!important;padding:8px 12px!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .personal-escort{flex:0 0 auto!important;padding:10px 0!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .escort-card{grid-template-columns:80px minmax(0,1fr)!important;gap:8px!important;padding:9px!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .escort-current-form{min-height:0!important;align-self:start}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .escort-current-form>img{height:66px!important;padding:4px!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .escort-current-form>span{display:none!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .escort-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:6px 0!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .escort-heading strong{font-size:14px!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .fleet-start{min-height:48px!important;touch-action:manipulation}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .fleet-launch-bar .fleet-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:0!important;margin:0!important;border:0!important;min-height:0!important;box-shadow:none!important;background:none!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .fleet-launch-bar .fleet-summary>span{padding:4px 6px!important;min-height:0!important;margin:0!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .fleet-launch-bar .fleet-summary b{font-size:16px!important;line-height:1.1!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .fleet-launch-bar .fleet-summary small{font-size:9px!important;line-height:1.1!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .fleet-launch-bar :is(.action-quote,.boss-quote){padding:2px 0!important;margin:3px 0!important;font-size:10px!important;line-height:1.2!important;min-height:0!important;max-height:32px!important}
 body[data-bridge="on"] dialog:is(.action-launch,.boss-dialog) .fleet-launch-bar .fleet-start{margin:0!important}

}
