/* Mission dispatch reuses the hangar OS and map tracker. No blur, animation,
   image assets or extra render surface; the board exists only when opened. */
#hangarComputerMissions[hidden],#hangarComputerEditor[hidden],.aviation-contracts-pane [hidden],#aviationRadioOffer[hidden]{display:none!important}
.computer-icon-missions:before{left:5px;top:3px;width:20px;height:23px;border:2px solid #425936;background:repeating-linear-gradient(#edf0dc 0 4px,#587347 5px 6px)}
#hangarComputerMissions{min-width:0;color:#20352d;font:12px/1.45 Tahoma,Verdana,Arial,sans-serif}
.aviation-dispatch-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.aviation-dispatch-head h3{margin:0 0 5px;color:#183a36;font-size:17px}
.aviation-dispatch-head p,.aviation-contract-copy{margin:4px 0;font-size:12px;line-height:1.5}
.aviation-dispatch-rank{flex:none;max-width:36%;text-align:right;font-size:10px;line-height:1.5}
.aviation-active{margin:0 0 14px;padding:12px;border:2px inset #e0e2d6;background:#f0edcc}
.aviation-active h4{margin:0 0 5px;font-size:14px}.aviation-active p{margin:4px 0}
.aviation-contracts-pane button{min-width:44px;min-height:44px;box-sizing:border-box;margin:0;padding:8px 10px;border:2px outset #e0e2d6;border-radius:0;background:#cbd0c1;color:#162d25;box-shadow:none;font:12px/1.35 Tahoma,Verdana,Arial,sans-serif;letter-spacing:0;touch-action:manipulation}
.aviation-contracts-pane button:focus-visible,.aviation-contracts-pane button[data-controller-focus=true]{outline:2px solid #233c72;outline-offset:1px}
.aviation-contracts-pane button:disabled{color:#536356;background:#bec7b6;opacity:.8}
.aviation-contracts-pane .aviation-contract-primary{background:#233c72;color:#f0f2df;font-weight:bold}
.aviation-contracts-pane .aviation-contract-primary:disabled{background:#aebba7;color:#4b5d50}
.aviation-contract-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-bottom:10px}
.aviation-contract-categories button{min-width:44px;padding:6px 4px;font-size:10px;overflow-wrap:anywhere}
.aviation-contract-categories button[aria-pressed=true]{background:#e8eadc;border-style:inset;font-weight:bold}
.aviation-contract-layout{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(240px,1.35fr);gap:12px;align-items:start;min-width:0}
.aviation-contract-list{display:grid;gap:6px;min-width:0}
.aviation-contract-offer{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;text-align:left;overflow-wrap:anywhere}
.aviation-contract-offer[aria-pressed=true]{background:#e8eadc;border-style:inset}
.aviation-contract-offer strong{font-size:12px}.aviation-contract-offer small{font-size:10px;font-weight:normal}
.aviation-contract-detail{min-width:0;padding:12px;border:2px inset #dce1d1;background:#e7eadc;overflow-wrap:anywhere}
.aviation-contract-detail h4{font-size:16px;line-height:1.3;margin:0 0 6px}.aviation-contract-detail p{margin:7px 0;line-height:1.5}
.aviation-contract-route{font-weight:bold;font-size:12px}.aviation-contract-requirement{padding:7px;border-left:3px solid #536b3b;background:#d6dfc5;font-size:11px}
.aviation-contract-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.aviation-contract-detail dl>div{padding:8px;border:1px solid #a2b095}.aviation-contract-detail dt{font-size:10px;color:#425838}.aviation-contract-detail dd{margin:3px 0 0;font-weight:bold;font-size:15px}
.aviation-contract-detail .aviation-contract-primary{width:100%;margin:8px 0 0}
.aviation-contract-supplies{padding:7px;border-left:3px solid #7b7342;background:#e0dfc2;font-size:11px}
.aviation-dispatch-status{min-height:18px;margin:10px 0;font-size:11px;line-height:1.5;color:#304934}
.aviation-dispatch-help{margin:12px 0 0;padding:10px 0 0;border-top:1px solid #9aaa8d;font-size:11px;line-height:1.5}
.aviation-weekly{margin-top:16px;padding-top:12px;border-top:2px groove #dce1d1}.aviation-weekly h4{margin:0 0 6px;font-size:14px}.aviation-weekly-actions{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}.aviation-weekly-actions button{flex:1;min-width:145px}.aviation-weekly ol{margin:10px 0;padding-left:24px}.aviation-weekly li{padding:5px 0;font-size:11px}.aviation-weekly-state{font-size:11px;min-height:17px}.aviation-last-result{margin-top:12px;font-size:11px}
#aviationRadioOffer{position:fixed;top:calc(env(safe-area-inset-top,0px) + 64px);left:50%;transform:translateX(-50%);z-index:31;box-sizing:border-box;width:min(390px,calc(100vw - 28px));max-height:calc(100dvh - 180px);overflow:auto;padding:12px;border:1px solid #a6bc91;border-radius:4px;background:#142d29f5;color:#e7efda;box-shadow:none;font:12px/1.45 Tahoma,Verdana,Arial,sans-serif;pointer-events:auto}
#aviationRadioOffer strong{display:block;font-size:12px;color:#d8f0a1}#aviationRadioOffer p{margin:5px 0 9px}#aviationRadioOffer>div{display:flex;gap:8px}#aviationRadioOffer button{flex:1;min-height:44px;margin:0;padding:8px;border:1px solid #8ca57d;border-radius:2px;background:#d7e5c6;color:#17352b;font:11px Tahoma,Verdana,Arial,sans-serif;touch-action:manipulation}
#aviationRadioOffer button:last-child{background:#24433b;color:#e1ecd3}#aviationRadioOffer button:focus-visible{outline:2px solid #d3ed9f;outline-offset:2px}
.phone-ui #aviationRadioOffer{top:calc(var(--phone-viewport-top,0px) + var(--phone-hud-top,12px) + 58px);font-size:11px}
@media(max-width:650px){.aviation-contract-layout{grid-template-columns:minmax(0,1fr)}.aviation-contract-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.aviation-contract-offer{min-height:65px!important;padding:7px!important}.aviation-contract-offer strong{font-size:11px}.aviation-contract-offer small{font-size:9px}.aviation-contract-detail{padding:10px}.aviation-dispatch-head{gap:8px}.aviation-dispatch-rank{font-size:9px}.aviation-contract-categories{gap:4px}.aviation-contract-categories button{min-width:44px;padding:5px 2px;font-size:9px}}
@media(max-height:500px) and (orientation:landscape){#aviationRadioOffer{top:calc(env(safe-area-inset-top,0px) + 12px);width:min(330px,calc(100vw - 28px));font-size:11px}.aviation-dispatch-head{margin-bottom:8px}.aviation-contract-detail{padding:8px}}

/* Two plain text lines share the existing coarse mission update. No panel,
   canvas, assets, blur, animation, live region, layout polling or input target. */
#aviationMissionHUD.aviation-mission-hud{position:fixed;top:max(70px,calc(env(safe-area-inset-top,0px) + 58px));left:50%;transform:translateX(-50%);width:min(560px,calc(100vw - 32px));box-sizing:border-box;z-index:8;pointer-events:none;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#f2f3e9;font:600 15px/1.4 Inter,Arial,sans-serif;text-align:center;text-shadow:0 1px 2px #000,0 0 2px #000;overflow-wrap:anywhere}
#aviationMissionHUD[hidden]{display:none!important}
#aviationMissionHUD .aviation-mission-objective,#aviationMissionHUD .aviation-mission-guidance{display:block}
#aviationMissionHUD .aviation-mission-location{color:#f3c66b}
#aviationMissionHUD[data-tone=flight] .aviation-mission-location{color:#8cdef0}
#aviationMissionHUD .aviation-mission-distance{color:#d9e1db;font-weight:500;white-space:nowrap}
#aviationMissionHUD .aviation-mission-guidance{font-size:12px;font-weight:500;color:#e3e9df;margin-top:3px;line-height:1.4}
/* Keep desktop and Deck edge racks, the compass and the aiming centre clear.
   Ground mode has no compass; handheld telemetry already occupies the top row. */
body:is(.desktop-ui,.handheld-ui):not(.phone-ui) #aviationMissionHUD{top:calc(env(safe-area-inset-top,0px) + 156px);width:min(640px,max(170px,calc(100vw - 600px)));max-width:calc(100vw - 32px)}
body:is(.desktop-ui,.handheld-ui):not(.phone-ui):has(#groundMinimap:not([hidden])) #aviationMissionHUD{top:calc(var(--ground-map-top) + 56px)}
body.handheld-ui:not(.phone-ui):not(:has(#groundMinimap:not([hidden]))) #aviationMissionHUD{top:calc(var(--desktop-top) + 48px)}
body:has(#aviationMissionHUD:not([hidden])) #questTracker{visibility:hidden}
body.paused #aviationMissionHUD,body.death-scene #aviationMissionHUD,body:not(.inflight) #aviationMissionHUD,body:has(dialog[open]) #aviationMissionHUD,body:has(#customizer:not([hidden])) #aviationMissionHUD{visibility:hidden}
.phone-ui #aviationMissionHUD{top:calc(var(--phone-viewport-top,0px) + var(--phone-hud-top,12px) + var(--phone-telemetry-height,36px) + 30px);width:min(350px,calc(100vw - 136px));font-size:13px}
.phone-ui #aviationMissionHUD .aviation-mission-guidance{font-size:11px;margin-top:2px}
.phone-ui:has(#groundMinimap:not([hidden])) #aviationMissionHUD{top:calc(var(--ground-info-top) + 76px);left:var(--ground-map-left);right:auto;transform:none;width:210px;max-width:calc(100vw - var(--ground-map-left) - var(--ground-map-right) - var(--ground-map-size) - 24px);text-align:left;font-size:12px}
.phone-ui:has(#groundMinimap:not([hidden])):has(#aviationMissionHUD:not([hidden])) #worldCrewHUD{visibility:hidden}
/* Short phone landscapes use the open lane below the 44px toolbar, beside
   the 156px weapon lane and map. Movement and aiming controls stay unobscured. */
@media(max-height:420px) and (orientation:landscape){.phone-ui:has(#groundMinimap:not([hidden])) #aviationMissionHUD{top:calc(var(--ground-map-top) + 52px);left:calc(var(--ground-map-left) + 168px);width:calc(100vw - var(--ground-map-left) - var(--ground-map-right) - var(--ground-map-size) - 192px);max-width:none;text-align:center}}

/* The commercial objective belongs below the cockpit, not on its windshield.
   This footer has no panel or input surface. Its CSS-only reservation lifts
   the existing edge racks together, preserving their radar/instrument gap.
   :has() releases the reservation immediately on foot, hide, or disposal. */
body:is(.desktop-ui,.handheld-ui):not(.phone-ui):has(#aviationMissionHUD[data-placement=commercial-flight]:not([hidden])){--aviation-footer-space:max(0px,calc(92px + env(safe-area-inset-bottom,0px) - var(--desktop-top)))}
body:is(.desktop-ui,.handheld-ui):not(.phone-ui):has(#aviationMissionHUD[data-placement=commercial-flight]:not([hidden])) #aviationMissionHUD[data-placement=commercial-flight]{top:auto;bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px));width:min(640px,calc(100vw - 32px));font-size:14px;line-height:1.3}
body:is(.desktop-ui,.handheld-ui):not(.phone-ui) #aviationMissionHUD[data-placement=commercial-flight] .aviation-mission-guidance{font-size:12px;line-height:1.3}
body:is(.desktop-ui,.handheld-ui):not(.phone-ui):has(#aviationMissionHUD[data-placement=commercial-flight]:not([hidden])) #flightUI .bottom-flight,
body:is(.desktop-ui,.handheld-ui):not(.phone-ui):has(#aviationMissionHUD[data-placement=commercial-flight]:not([hidden])) #flightUI .camera-label,
body:is(.desktop-ui,.handheld-ui):not(.phone-ui):has(#aviationMissionHUD[data-placement=commercial-flight]:not([hidden])) #flightUI:has(#padHints:not([hidden])) .camera-label{bottom:calc(var(--desktop-top) + var(--aviation-footer-space))}
body:is(.desktop-ui,.handheld-ui):not(.phone-ui):has(#aviationMissionHUD[data-placement=commercial-flight]:not([hidden])) #flightUI :is(#keyboardHints:not([hidden]),#padHints){bottom:calc(var(--desktop-top) + 48px + var(--aviation-footer-space))}
/* Trim, flap position and brake state are required instruments. Share the
   commercial footer reservation without relying on optional hints or labels.
   Narrow desktop layouts retain their existing higher centre lane. */
body:is(.desktop-ui,.handheld-ui):not(.phone-ui):has(#aviationMissionHUD[data-placement=commercial-flight]:not([hidden])) #flightUI #simulatorFlightStatus{bottom:calc(var(--desktop-top) + var(--aviation-footer-space))}
@media(max-width:1100px){body:is(.desktop-ui,.handheld-ui):not(.phone-ui):has(#aviationMissionHUD[data-placement=commercial-flight]:not([hidden])) #flightUI #simulatorFlightStatus{bottom:calc(var(--desktop-top) + 198px + var(--aviation-footer-space))}}
body:is(.desktop-ui,.handheld-ui):not(.phone-ui):has(#aviationMissionHUD[data-placement=commercial-flight]:not([hidden])) #flightUI .instruments,
body:is(.desktop-ui,.handheld-ui):not(.phone-ui):has(#aviationMissionHUD[data-placement=commercial-flight]:not([hidden])) #flightUI :is(.left-instruments,.right-instruments){bottom:calc(var(--desktop-top) + max(176px,calc(var(--desktop-radar-height) * var(--radar-size,1))) + 18px + var(--aviation-footer-space))}

/* The original warning and announcement nodes share one lazy wrapper with
   the task. In ordinary desktop flight the warning flows above the task while
   announcements retain their left-edge lane. Phone flight uses one wrapping
   stack. No alert can erase a parking or reward-storage instruction. */
#aviationNoticeStack{display:contents;pointer-events:none}
body.death-scene #aviationNoticeStack{display:none!important}
#aviationNoticeStack #warning:not(.active),#aviationNoticeStack #announcer:not(.visible){display:none!important}
body:not(.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD[data-placement=standard]:not([hidden])),
body.phone-ui:not(.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD:not([hidden])){--aviation-lane-width:min(560px,calc(100vw - 32px));position:fixed;top:max(70px,calc(env(safe-area-inset-top,0px) + 58px));left:calc((100vw - var(--aviation-lane-width)) / 2);width:var(--aviation-lane-width);display:flex;flex-direction:column;gap:8px;z-index:8;pointer-events:none}
body:not(.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD[data-placement=standard]:not([hidden])) :is(#warning,#aviationMissionHUD),
body.phone-ui:not(.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD:not([hidden])) :is(#warning,#aviationMissionHUD,#announcer){position:static;top:auto;bottom:auto;left:auto;right:auto;transform:none;width:100%;max-width:none;min-width:0;margin:0;box-sizing:border-box}
body:is(.desktop-ui,.handheld-ui):not(.phone-ui,.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD[data-placement=standard]:not([hidden])){--aviation-lane-width:min(640px,max(170px,calc(100vw - 600px)));top:calc(var(--desktop-heading-end,143px) + 12px)}
body.handheld-ui:not(.phone-ui,.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD[data-placement=standard]:not([hidden])){top:calc(var(--desktop-top) + 48px)}
body.phone-ui:not(.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD:not([hidden])){--aviation-lane-width:min(430px,calc(100vw - 84px));top:calc(var(--phone-viewport-top,0px) + var(--phone-hud-top,0px) + var(--phone-telemetry-height,36px) + 8px);left:var(--phone-left);gap:6px}
body.phone-ui:not(.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD:not([hidden])) #announcer{visibility:visible}
@media(orientation:landscape){
 body.phone-ui:not(.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD:not([hidden])){--aviation-lane-width:min(430px,max(170px,calc(100vw - var(--phone-left) - var(--phone-right) - 320px)));left:calc((100vw - var(--aviation-lane-width)) / 2)}
}
@media(orientation:landscape) and (max-height:420px){
 body.phone-ui:not(.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD:not([hidden])){gap:4px}
 body.phone-ui:not(.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD:not([hidden])) #aviationMissionHUD{font-size:12px;line-height:1.3}
 body.phone-ui:not(.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD:not([hidden])) #aviationMissionHUD .aviation-mission-guidance{font-size:10px;line-height:1.35}
 body.phone-ui:not(.on-foot,.ground-vehicle) #aviationNoticeStack:has(#aviationMissionHUD:not([hidden])) :is(#warning,#announcer){padding:4px 7px;font-size:10px;line-height:1.35}
}

/* One short passenger remark in the lower centre. No panel, animation,
   backdrop or input target. Existing mission updates own its lifetime. */
#aviationPassengerCaption{position:fixed;left:50%;bottom:max(76px,calc(env(safe-area-inset-bottom,0px) + 76px));transform:translateX(-50%);width:min(580px,calc(100vw - 48px));box-sizing:border-box;z-index:8;pointer-events:none;color:#e9e9de;font:500 14px/1.4 Inter,Arial,sans-serif;text-align:center;text-shadow:0 1px 2px #000,0 0 2px #000;overflow-wrap:anywhere}
#aviationPassengerCaption[data-kind=rough],#aviationPassengerCaption[data-kind=engine]{color:#f3c66b}
#aviationPassengerCaption[hidden]{display:none!important}
body.paused #aviationPassengerCaption,body.death-scene #aviationPassengerCaption,body:not(.inflight) #aviationPassengerCaption,body:has(dialog[open]) #aviationPassengerCaption,body:has(#customizer:not([hidden])) #aviationPassengerCaption,body:has(#announcer.visible:not(:where(.hud-disabled,[hidden]))) #aviationPassengerCaption,body:has(#warning.active:not(:where(.hud-disabled,[hidden]))) #aviationPassengerCaption{visibility:hidden}
.phone-ui #aviationPassengerCaption{bottom:calc(var(--phone-bottom,12px) + 220px);width:min(430px,calc(100vw - 40px));font-size:12px}
@media(orientation:landscape){.phone-ui #aviationPassengerCaption{bottom:calc(var(--phone-bottom,12px) + 118px);width:min(420px,calc(100vw - 230px))}}

/* Built only while mission dispatch is open; shares the existing menu controls. */
.aviation-aircraft-choice{margin:12px 0 4px;padding:10px;border:1px solid #a2b095;background:#dce4ce}
.aviation-aircraft-choice label{display:block;margin-bottom:6px;font-size:12px;font-weight:bold}
.aviation-aircraft-choice select{display:block;width:100%;min-height:44px;box-sizing:border-box;padding:8px;border:2px inset #dce1d1;background:#f0f2df;color:#162d25;font:12px/1.4 Tahoma,Verdana,Arial,sans-serif;touch-action:manipulation}
.aviation-aircraft-choice select:focus-visible,.aviation-aircraft-choice select[data-controller-focus=true]{outline:2px solid #233c72;outline-offset:1px}
.aviation-aircraft-choice p{font-size:12px}
.aviation-contract-detail .aviation-accept-feedback{margin:10px 0 0;padding:10px;border-left:4px solid #8a5d16;background:#fff0c6;font-size:13px;font-weight:bold;line-height:1.45}

#aviationRadioOffer .aviation-radio-controller-hint{margin:9px 0 0;font-size:11px;line-height:1.5;color:#f3d579}#aviationRadioOffer .aviation-radio-controller-hint[hidden]{display:none}
