/* Device-only adaptation; the desktop source itself is never edited. */
#arcgis-earth-tools{display:grid;gap:6px;padding:8px;border:1px solid #8ca7ba;border-radius:8px;background:#edf4f8;color:#183247;box-sizing:border-box;min-width:0;max-width:100%}
#arcgis-earth-tools .ae-actions,#arcgis-earth-tools .ae-links{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
#arcgis-earth-tools .ae-actions button{flex:1 1 120px;min-height:44px;min-width:0;white-space:normal}
#arcgis-earth-tools [hidden]{display:none!important}
#arcgis-earth-tools p{margin:0;font:12px/1.4 system-ui;color:#29465c;overflow-wrap:anywhere}
#arcgis-earth-tools .ae-links a{font:12px/1.4 system-ui;color:#155a79;min-height:32px;display:flex;align-items:center}
#heli-track-delete-confirm{box-sizing:border-box;width:min(340px,calc(100vw - 24px));height:fit-content;min-height:0;max-height:calc(var(--heli-device-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);padding:12px;margin:auto;border:1px solid #7893a8;border-radius:12px;background:#f3f7fb;color:#183247;font:12px/1.35 system-ui;overflow:auto;box-shadow:0 12px 40px #061b4055}
#heli-track-delete-confirm::backdrop{background:#07152580}
#heli-track-delete-confirm h2{font:650 14px/1.3 system-ui;margin:0 0 7px}
#heli-track-delete-confirm p{font:12px/1.35 system-ui;margin:5px 0;overflow-wrap:anywhere}
#heli-track-delete-confirm .heli-delete-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}
#heli-track-delete-confirm button{min-height:44px;padding:6px;border:1px solid #9fb5c4;border-radius:6px;background:#e4edf4;color:#183247;font:600 12px/1.3 system-ui}
#heli-track-delete-confirm [data-delete-accept]{background:#a62e39;border-color:#a62e39;color:white}
#heli-track-delete-confirm button:focus-visible{outline:2px solid #298fbd;outline-offset:2px}
/* Separate navigation display: circles/compass on the map stay unchanged. */
#heli-nd-dialog{position:fixed;box-sizing:border-box;padding:0;border:1px solid #557486;border-radius:14px;background:#07131e;color:#eef6f9;box-shadow:0 12px 40px #020b16a8;z-index:100500;overflow:hidden;max-width:none;font:14px/1.3 system-ui,sans-serif}
#heli-nd-dialog[open]{display:flex;flex-direction:column}
#heli-nd-dialog .nd-header{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 4px 0 12px;box-sizing:border-box;background:#142b3b;border-bottom:1px solid #34505f;flex:none}
#heli-nd-dialog .nd-header h2{font:600 14px/1.2 system-ui;margin:0;flex:1;min-width:0}
#heli-nd-dialog [data-nd=mode]{font-size:10px;color:#b9d3de;white-space:nowrap}
#heli-nd-dialog button.nd-close{display:block;min-width:44px;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:white;font:26px/1 system-ui}
#heli-nd-dialog button:focus-visible{outline:2px solid #93e6fb;outline-offset:-3px}
#heli-nd-dialog .nd-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(80px,1fr);flex:1;min-height:0;padding:10px 10px 0;gap:4px 8px}
#heli-nd-dialog .nd-left,#heli-nd-dialog .nd-right{min-width:0;font-variant-numeric:tabular-nums;line-height:1.4}
#heli-nd-dialog .nd-speeds{display:flex;gap:12px;margin-bottom:4px}
#heli-nd-dialog .nd-speeds div{min-width:0}
#heli-nd-dialog .nd-speeds b,#heli-nd-dialog .nd-speeds small{display:block}
#heli-nd-dialog small{font-size:10px;font-weight:500;color:#b9cdd8}
#heli-nd-dialog b{font-size:16px;font-weight:650;color:#b1f780}
#heli-nd-dialog [data-nd=wind]{display:block;font-size:14px}
#heli-nd-dialog .nd-right{text-align:right}
#heli-nd-dialog [data-nd=target]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ecf3f8;font-size:14px}
#heli-nd-dialog [data-nd=eta]{margin-left:8px}
#heli-nd-dialog .nd-plot{position:relative;min-width:0;min-height:0;grid-column:1/-1;grid-row:2;overflow:hidden}
#heli-nd-dialog .nd-graphic{position:absolute;inset:0}
#heli-nd-dialog svg{display:block;width:100%;height:100%;font:12px system-ui;text-anchor:middle;overflow:hidden;fill:none}
#heli-nd-dialog svg path{stroke-linejoin:round;stroke-linecap:round}
#heli-nd-dialog svg path:where(:not(.nd-helicopter path)){fill:none}
#heli-nd-dialog .nd-compass{fill:#f0f6f9;stroke:#dcebf3;stroke-width:1.4}
#heli-nd-dialog .nd-compass text{stroke:none;font-size:13px}
#heli-nd-dialog .nd-range{stroke:#abc6d5;stroke-width:1;stroke-dasharray:5 6;opacity:.8}
#heli-nd-dialog .nd-range-label{fill:#b3ebf0;font-size:10px;paint-order:stroke;stroke:#07131e;stroke-width:4px}
#heli-nd-dialog .nd-route{stroke:#b5f989;stroke-width:1.7}
#heli-nd-dialog .nd-direct{stroke:#8fe8f1;stroke-width:1.2;stroke-dasharray:4 4}
#heli-nd-dialog .nd-fix{stroke:#b5f989;stroke-width:1.5;fill:#07131e}
#heli-nd-dialog .nd-fix.nd-next{stroke:#fff;stroke-width:2}
#heli-nd-dialog .nd-fix-label{fill:#b5f989;font-size:12px;paint-order:stroke;stroke:#07131e;stroke-width:4px}
#heli-nd-dialog .nd-index{fill:#f6d25d;stroke:#f6d25d;stroke-width:1}
#heli-nd-dialog .nd-aircraft{stroke:white;stroke-width:2.5;fill:#07131e}
#heli-nd-dialog .nd-track{fill:#e7eef3;font-size:11px}
#heli-nd-dialog .nd-wind-arrow{stroke:#b1f780;stroke-width:2}
#heli-nd-dialog .nd-idle-arc{stroke:#395160;stroke-width:1.5}
#heli-nd-dialog [data-nd=status]{position:absolute;inset:35% 8px auto;margin:0;text-align:center;font:14px/1.4 system-ui;color:#c4d6e2}
#heli-nd-dialog [data-nd=status]:empty{display:none}
#heli-nd-dialog .nd-footer{display:flex;align-items:center;justify-content:center;padding:0 8px;border-top:1px solid #294351;flex:none;min-height:44px;box-sizing:border-box}
#heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) .nd-footer{padding:1px 6px!important;min-height:36px!important;height:36px!important;margin:0!important;gap:0!important}
#heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) button.nd-range-control{grid-column:2;grid-row:1;position:relative;display:flex;align-items:center;box-sizing:border-box;width:80px!important;min-width:80px!important;max-width:80px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0 24px 0 8px!important;border:1px solid #7896aa;border-radius:6px;background:#eaf2f7;color:#183247;font:600 12px/1 system-ui!important;white-space:nowrap;touch-action:none;cursor:pointer}
#heli-nd-dialog .nd-range-value{pointer-events:none;white-space:nowrap}
#heli-nd-dialog .nd-range-control::after{content:"";position:absolute;right:9px;top:11px;width:5px;height:5px;border-right:1.5px solid #183247;border-bottom:1.5px solid #183247;transform:rotate(45deg);pointer-events:none}
#heli-nd-dialog .nd-range-control:focus-within{outline:2px solid #93e6fb;outline-offset:-2px}
/* This transient menu overlays the plot; it never takes space from the compass. */
#heli-nd-range-menu{position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);z-index:3;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;box-sizing:border-box;width:min(292px,calc(100% - 12px));padding:4px;border:1px solid #7896aa;border-radius:8px;background:#142b3b;box-shadow:0 4px 16px #0008}
#heli-nd-range-menu[hidden]{display:none!important}
#heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) #heli-nd-range-menu button{min-width:0!important;min-height:44px!important;height:44px!important;margin:0!important;padding:0 2px!important;border:1px solid #557486;border-radius:5px;background:#1d384a;color:#eef6f9;font:600 12px/1 system-ui!important;white-space:nowrap;touch-action:none;cursor:pointer}
#heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) #heli-nd-range-menu [aria-checked=true]{background:#176d8b;color:#fff;border-color:#83e1f3}
#heli-nd-dialog.nd-wide .nd-main{grid-template-columns:96px minmax(0,1fr) 96px;grid-template-rows:minmax(80px,1fr);gap:4px;padding-top:5px}
#heli-nd-dialog.nd-wide .nd-left{grid-column:1;grid-row:1}
#heli-nd-dialog.nd-wide .nd-plot{grid-column:2;grid-row:1}
#heli-nd-dialog.nd-wide .nd-right{grid-column:3;grid-row:1}
html body[data-flight-deck] #mobile-shell .ms-tabs button[data-heli-nd].heli-nd-active{background:#176d8be8!important;color:#fff!important;border-color:#83e1f3!important;box-shadow:inset 3px 0 #8deaff!important}
#mobile-shell .ms-tabs [data-heli-nd] svg{width:26px;height:26px;display:block;margin:auto}
/* The shared PC typography rule repeats ID selectors; this instrument needs
   its own readable numeric hierarchy without changing any other window. */
#heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) h2{font:600 14px/1.3 system-ui!important}
#heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) b{font:650 16px/1.4 system-ui!important}
#heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) small{font:500 10px/1.4 system-ui!important}
#heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) :is([data-nd=target],[data-nd=wind]){font-size:14px!important}
/* Fill the existing range-control footer, leaving the full plot height intact. */
#heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) .nd-footer{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px!important;height:auto!important;min-height:36px!important;padding:1px 8px!important}
#heli-nd-dialog .nd-radio{grid-row:1;min-width:0;padding:0;margin:0;line-height:1.1;container:nd-radio / inline-size}
#heli-nd-dialog [data-nd-radio=current]{grid-column:1;text-align:left}
#heli-nd-dialog [data-nd-radio=next]{grid-column:3;text-align:right}
#heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) .nd-radio-name{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:500 10px/1.1 system-ui!important;color:#e2edf3}
#heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) .nd-radio-channel{display:block;font:650 12px/1.25 system-ui!important;color:#b1f780;font-variant-numeric:tabular-nums;white-space:nowrap;overflow-wrap:normal;overflow-x:auto;scrollbar-width:none}
#heli-nd-dialog .nd-radio-channel::-webkit-scrollbar{display:none}
/* Keep the service and channel in two rows, including narrower phones. */
@container nd-radio (max-width:88px){
 #heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) .nd-radio-name{font-size:9px!important}
 #heli-nd-dialog:is(#heli-nd-dialog):is(#heli-nd-dialog) .nd-radio-channel{font-size:10px!important}
}
#heli-nd-dialog [data-nd-radio=next] .nd-radio-channel{color:#8fe8f1!important}
html body #heli-nd-dialog.nd-wide .nd-speeds{gap:8px;flex-wrap:wrap}
html body #heli-nd-dialog.nd-wide .nd-right>div{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:0 3px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;height:100%}body{overscroll-behavior:none}button,a,input,select,textarea{touch-action:manipulation}button{ -webkit-tap-highlight-color:transparent}
@media (pointer:coarse){input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}button{min-height:44px}dialog:not(#heli-welcome){max-width:calc(100vw - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right)))!important;max-height:calc(var(--heli-device-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px)!important;overscroll-behavior:contain}.ms-toolbar,.ms-instruments{padding-left:max(6px,env(safe-area-inset-left))!important;padding-right:max(6px,env(safe-area-inset-right))!important}.ms-bottom-left{left:env(safe-area-inset-left)}.ms-bottom-right{right:env(safe-area-inset-right)}#mobile-menu .ms-row{min-height:44px;padding:10px 14px;font-size:16px}#mobile-menu .ms-separator{height:12px}#mobile-menu header{padding:9px 12px}#mobile-menu h2{font-size:18px}#ms-content{padding-bottom:max(10px,env(safe-area-inset-bottom))}#heli-account-panel{width:calc(100vw - 20px)!important}#ha-desktop-open{width:100%}}
@media(max-width:600px){.ms-row small{font-size:12px}#svs-approach-settings{max-height:calc(var(--heli-device-height,100dvh) - 150px)!important;overflow:auto}}

/* Shared mobile window scale follows NOTAM; preserve casing and weight.
   Printed A5 pages and map/instrument labels retain their own dimensions. */
@media screen and (min-width:0px){
 :root{--heli-ui-font:system-ui,sans-serif;--heli-ui-text:12px;--heli-ui-title:14px;--heli-ui-note:11px;--heli-ui-field:16px;--heli-ui-touch:44px;--heli-ui-gap:4px;--heli-ui-card:7px}
 html body :is(#heli-mobile-window,.hd-app-window).hd-app-window:not(#svs-dialog){font:var(--heli-ui-text)/1.35 var(--heli-ui-font)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain}
 html body :is(#heli-mobile-window,.hd-app-window).hd-app-window:not(#svs-dialog) :is(p,label,span,small,b,strong,summary,li,button,div):not(.bp-sheet,.bp-sheet *,.bp-page,.bp-page *,svg *,canvas){font-family:var(--heli-ui-font)!important;font-size:var(--heli-ui-text)!important;line-height:1.35!important}
 html body :is(#heli-mobile-window,.hd-app-window).hd-app-window:not(#svs-dialog) :is(h1,h2,h3):not(.bp-page *){font-size:var(--heli-ui-title)!important;line-height:1.25!important}
 html body :is(#heli-mobile-window,.hd-app-window).hd-app-window:not(#svs-dialog) :is(input,select,textarea):not([type=checkbox],[type=radio],[type=range]){font-size:16px!important;min-height:44px!important;max-width:100%;box-sizing:border-box}
 html body :is(#heli-mobile-window,.hd-app-window).hd-app-window:not(#svs-dialog) button{min-height:44px!important;white-space:normal}
 html body .hd-app-window .hd-window-titlebar{min-height:48px!important;align-items:center!important;gap:4px!important}
 html body .hd-app-window .hd-window-titlebar :is(h1,h2,h3){min-width:0;flex:1}
 html body .hd-app-window .hd-window-controls{flex:none;gap:4px}
 html body .hd-app-window summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
 html body .hd-app-window :is(.notam-controls,.notam-filters,.wx-controls,.fn-controls){gap:8px!important;flex-wrap:wrap}
 html body #notam-dialog .notam-filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 html body #notam-dialog .notam-filters label{min-width:0!important;max-width:100%}
 html body #notam-dialog .notam-filters label:has(input[type=datetime-local]){grid-column:1/-1}
 html body .hd-app-window :is(pre,.notam-text){white-space:pre-wrap;overflow-wrap:anywhere}
 html body #mobile-menu .ms-row{min-height:44px;padding:10px 14px;font-size:16px!important}
 html body #mobile-shell .ms-toolbar button{min-height:44px;font-size:14px}
 html body #mobile-menu header{min-height:48px}
 html body #ms-content{padding-bottom:max(10px,env(safe-area-inset-bottom))}
 html body #heli-account-panel{max-width:calc(100vw - 16px)!important}
 html body #ha-desktop-open{width:100%}
 html body #bp-pages{overflow:auto}
 html body .hd-app-window #mission .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))!important}
}

/* One fixed mobile frame, with the same controls and visual language as the PC.
   iOS Dynamic Type: https://webkit.org/blog/3709/using-the-system-font-in-web-content/ */
@supports(font:-apple-system-body){html{font:-apple-system-body}}
.heli-safe-area-probe{position:fixed;visibility:hidden;pointer-events:none;width:0;height:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
/* CSS owns the safe area (native contentInset=never). Lock only the map root;
   dialogs retain their own vertical scrolling, including with the keyboard open. */
@media screen and (min-width:0px){
 html:has(body[data-page=plan]){overflow:hidden!important;overscroll-behavior:none}
 html body[data-page=plan]{position:fixed!important;inset:0!important;width:100%!important;height:var(--heli-device-height,100dvh)!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;overscroll-behavior:none}
}
#map,#map :is(.reporting-marker,.navigation-marker,.settlement-marker,.saved-map-marker,.ifr-fix,[data-route-index]){-webkit-touch-callout:none;user-select:none;touch-action:none}
@media screen and (min-width:0px){
 html body[data-flight-deck]{--heli-top:calc(48px + env(safe-area-inset-top));--heli-chrome:var(--heli-top);--fd-rail-top:calc(var(--heli-chrome) + 8px)!important;--fd-rail-left:max(6px,env(safe-area-inset-left))!important}
 html body[data-flight-deck]:is([data-navigation=gps],[data-navigation=simulation]){--heli-chrome:calc(var(--heli-top) + 48px)}
 html body[data-flight-deck] #mobile-shell .ms-toolbar{display:flex!important;position:fixed!important;inset:0 0 auto!important;height:var(--heli-top)!important;min-height:var(--heli-top)!important;box-sizing:border-box!important;padding:env(safe-area-inset-top) max(4px,env(safe-area-inset-right)) 0 max(4px,env(safe-area-inset-left))!important;align-items:center!important;gap:0!important;background:var(--fd-dark-glass,#15344ee8)!important}
 html body[data-flight-deck] #mobile-shell .ms-toolbar button{min-width:44px!important;min-height:44px!important;padding:3px!important;flex-shrink:0}
 html body[data-flight-deck] #mobile-shell .ms-toolbar .ms-route{margin-left:auto!important;font-size:.875rem!important}
 html body[data-flight-deck] #mobile-shell .ms-toolbar .ms-fly{font-size:.875rem!important}
 html body[data-flight-deck] #mobile-shell .ms-toolbar :is([data-ms=route],[data-ms=fly]){text-transform:uppercase!important}
 html body[data-flight-deck] #mobile-shell .ms-brand{display:none!important}
 html body[data-flight-deck] #mobile-shell .heli-toolbar-logo{display:block;width:34px!important;height:34px!important;object-fit:contain;border-radius:7px;margin:auto}
 html body[data-flight-deck] #mobile-shell .ms-instruments{position:fixed!important;inset:var(--heli-top) env(safe-area-inset-right) auto env(safe-area-inset-left)!important;height:48px!important;min-height:48px!important;box-sizing:border-box;padding:3px 4px!important;gap:3px!important;background:var(--fd-dark-glass,#15344ee8)!important}
 html body[data-flight-deck] #mobile-shell .ms-instruments b{font-size:calc(1rem + 2pt)!important;line-height:1.2!important}
 html body[data-flight-deck] #mobile-shell .ms-instruments small{font-size:.6rem!important;line-height:1.2!important}
 html body[data-flight-deck] #fd-map-picker{top:calc(var(--heli-chrome) + 8px)!important;right:max(6px,env(safe-area-inset-right))!important;max-width:calc(100vw - 72px - env(safe-area-inset-left) - env(safe-area-inset-right))!important}
 html body[data-flight-deck] .cockpit-north{top:calc(var(--heli-chrome) + 66px)!important;right:calc(16px + env(safe-area-inset-right))!important;left:auto!important;min-width:44px;min-height:44px}
 html body[data-flight-deck] #flight-reference{top:calc(var(--heli-chrome) + 60px)!important;max-width:calc(100vw - 112px)!important;font-size:.8125rem!important;overflow-wrap:anywhere;white-space:normal!important}
 html body[data-flight-deck] #flight-nav-watermark{display:none!important}
 html body[data-flight-deck] #flight-zone-panel,html body[data-flight-deck] #flight-hazard-panel{top:calc(var(--heli-chrome) + 112px)!important;left:calc(54px + env(safe-area-inset-left))!important;max-width:calc(100vw - 62px - env(safe-area-inset-left) - env(safe-area-inset-right))!important}
 html body[data-flight-deck] :is(#heli-mobile-window,.hd-app-window).hd-app-window:not(#svs-dialog){overflow-x:hidden!important;overflow-y:auto!important;resize:none!important;touch-action:pan-y}
 html body[data-flight-deck] :is(#heli-mobile-window,.hd-app-window).hd-app-window:not(#svs-dialog) :is(p,label,span,small,b,strong,summary,li,button,div):not(.bp-sheet,.bp-sheet *,.bp-page,.bp-page *,svg *,canvas){font-size:var(--heli-ui-text)!important;overflow-wrap:break-word}
 html body[data-flight-deck] :is(#heli-mobile-window,.hd-app-window).hd-app-window:not(#svs-dialog) :is(h1,h2,h3):not(.bp-page *){font-size:var(--heli-ui-title)!important}
 html body[data-flight-deck] :is(#heli-mobile-window,.hd-app-window).hd-app-window:not(#svs-dialog) :is(input,select,textarea):not([type=checkbox],[type=radio],[type=range]){font-size:var(--heli-ui-field)!important}
 html body[data-flight-deck] .hd-app-window :is(.hd-window-titlebar,#fh-drag-handle,#fn-drag-handle){cursor:default!important;touch-action:pan-y!important}
 html body[data-flight-deck] .hd-app-window :is(.fh-card,.fh-metrics,.fh-wx-head,.layer-switch,.layers-group){min-width:0!important;max-width:100%!important;box-sizing:border-box}
 html body[data-flight-deck] #flight-here-dialog .fh-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html body[data-flight-deck] #flight-here-dialog .fh-waypoint-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 html body[data-flight-deck] #flight-here-dialog .fh-external-maps{display:flex;flex-wrap:wrap;gap:6px}
 /* One toggle shape: old 20px checkbox styling must not squash a 24px thumb. */
 html body #map-layers-dialog.hd-app-window input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;position:relative!important;display:inline-block!important;box-sizing:border-box!important;width:46px!important;min-width:46px!important;max-width:46px!important;height:28px!important;min-height:28px!important;max-height:28px!important;flex:0 0 46px!important;padding:0!important;margin:0!important;border:1px solid #8095a5!important;border-radius:16px!important;background:#788997!important;box-shadow:inset 0 1px 2px #0002!important;vertical-align:middle;cursor:pointer}
 html body #map-layers-dialog.hd-app-window input[type=checkbox]::before{content:''!important;position:absolute!important;inset:3px auto auto 3px!important;width:20px!important;height:20px!important;border-radius:50%!important;background:white!important;box-shadow:0 1px 3px #0004!important;transform:none!important;transition:transform .15s ease!important}
 html body #map-layers-dialog.hd-app-window input[type=checkbox]::after{content:none!important}
 html body #map-layers-dialog.hd-app-window input[type=checkbox]:checked{background:#19728f!important;border-color:#19728f!important}
 html body #map-layers-dialog.hd-app-window input[type=checkbox]:checked::before{transform:translateX(18px)!important}
 html body #map-layers-dialog.hd-app-window input[type=checkbox]:focus-visible{outline:3px solid #e2b947!important;outline-offset:3px}
 html body #map-layers-dialog.hd-app-window input[type=checkbox]:disabled{opacity:.45;cursor:default}
 html body #map-layers-dialog.hd-app-window .layer-switch{display:flex!important;align-items:center!important;gap:12px!important;min-height:48px!important;padding:8px 6px!important}
 html body #map-layers-dialog.hd-app-window .layer-switch span{flex:1;min-width:0;white-space:normal!important}
 html body #map-layers-dialog.hd-app-window .layer-actions{position:static!important;flex-wrap:wrap!important}
 html body #mobile-menu .ms-row{font-size:1rem!important;white-space:normal!important}
}
@media(prefers-reduced-motion:reduce){#map-layers-dialog input[type=checkbox]::before{transition:none!important}}
@media screen and (max-width:600px){
 html body .hd-app-window :is(.settings-grid,.db-layout,.bp-workspace,.mission-grid){grid-template-columns:minmax(0,1fr)!important}
 html body #notam-dialog #notam-status{margin-block:8px!important}
 html body #notam-dialog .notam-controls button{flex:1 1 130px}
 html body #weather-panel .weather-settings{grid-template-columns:minmax(0,1fr)!important}
 html body #mobile-menu [data-mobile-primary]{border-bottom:1px solid #abbccc;margin-bottom:8px;padding-bottom:8px}
}
@media screen and (min-width:0px){
 html body #svs-dialog #svs-approach-settings{position:fixed!important;inset:96px 8px auto auto!important;width:min(420px,calc(100vw - 16px))!important;max-height:calc(var(--heli-device-height,100dvh) - 112px)!important;overflow:auto!important;box-sizing:border-box;z-index:30;padding:12px!important;background:#eef4fa!important;box-shadow:0 8px 30px #0006}
 html body #svs-dialog #svs-approach-settings :is(label,p,a,span,strong){font-size:14px!important;line-height:1.4!important}
 html body #svs-dialog #svs-approach-settings :is(select,input:not([type=checkbox])){font-size:16px!important;min-height:44px!important;min-width:0}
 html body #svs-dialog #svs-approach-settings button{min-width:44px!important;min-height:44px!important;font-size:14px!important}
}
/* 0.2.3: compact mobile chrome, one action per map edge, visible compass. */
@media screen and (min-width:0px){
 /* Trim the gap below Dynamic Island; smaller safe areas keep their full inset. */
 html body[data-flight-deck]{--heli-header-inset:min(env(safe-area-inset-top),max(51px,calc(env(safe-area-inset-top) - 8px)));--heli-top:calc(44px + var(--heli-header-inset));--hm-nav:0px!important}
 html body[data-flight-deck]:is([data-navigation=gps],[data-navigation=simulation]){--heli-chrome:calc(var(--heli-top) + 42px)}
 html body[data-flight-deck] #mobile-shell .ms-instruments{height:42px!important;min-height:42px!important;padding:1px 4px!important}
 html body[data-flight-deck] #mobile-shell .ms-toolbar [data-ms=menu],
 html body[data-flight-deck] :is(#fd-bottom-dock,#hm-mobile-nav,#fd-view-bar),
 html body[data-flight-deck] #mobile-shell :is(.ms-bottom-right,.ms-footer){display:none!important}
 html body[data-flight-deck] #mobile-shell .ms-toolbar .heli-toolbar-logo{width:32px!important;height:32px!important}
 html body[data-flight-deck] #fd-map-picker{top:calc(var(--fd-map-top,0px) + 4px)!important;min-height:44px!important;padding:0 2px 0 4px!important;max-width:190px!important;border-radius:9px!important;background:#112c42db!important}
 html body[data-flight-deck=map] #fd-map-picker{top:calc(var(--heli-chrome) + 4px)!important}
 html body[data-flight-deck] #fd-map-picker select{font-size:.75rem!important;min-height:44px!important;width:128px!important;padding:3px!important;background:transparent!important}
 html body[data-flight-deck] #fd-map-picker button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;background:transparent!important}
 html body[data-flight-deck] .cockpit-north{top:52px!important;right:8px!important;width:44px!important;height:44px!important}
 html body[data-flight-deck=map] .cockpit-north{top:calc(var(--heli-chrome) + 52px)!important}
 html body[data-flight-deck] #mobile-shell .ms-tabs{position:fixed!important;gap:2px!important}
 html body[data-flight-deck] #mobile-shell .ms-tabs button,html body[data-flight-deck][data-deck-buttons] #mobile-shell .ms-tabs button{writing-mode:horizontal-tb!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;border-radius:7px!important;background:#102c4380!important}
 html body[data-flight-deck] #mobile-shell .ms-tabs button[aria-pressed=true]{background:#176c9bd9!important;box-shadow:inset 2px 0 #8ce6ff!important}
 html body[data-flight-deck] #mobile-shell .ms-tabs button svg{width:23px!important;height:23px!important;pointer-events:none}
 /* Fixed controls activate on release. Rows inside a window still allow
    vertical scrolling; native fields, map pinch and pan remain independent. */
 html body[data-flight-deck] #mobile-shell :is(.ms-tabs,.ms-toolbar) button{touch-action:none!important;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
 html body[data-flight-deck] #mobile-shell :is(.ms-tabs,.ms-toolbar) button *{pointer-events:none!important}
 html body[data-flight-deck] :is(#ms-drawer-close,#flight-zone-panel [data-independent-zone-dismiss],#flight-hazard-panel [data-hazard-close]){touch-action:none!important;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
 html body[data-flight-deck] :is(#mobile-drawer,#mobile-menu,.hd-app-window,#settings) button{touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
 /* Pinch scales content only; the window and its close control stay put. */
 html body[data-flight-deck] :is(#mobile-menu,#mobile-drawer,#workspace-window,.hd-app-window,#settings,#weather-panel){touch-action:pan-y}
 html body[data-flight-deck] [data-heli-content-scale]{overflow:hidden!important;touch-action:pan-x pan-y!important}
 html body[data-flight-deck] .heli-pinch-viewport{position:relative!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;touch-action:pan-x pan-y;margin:0!important;padding:0!important;border:0!important;flex:none!important}
 html body[data-flight-deck] .heli-pinch-canvas{display:flow-root!important;max-width:none!important;min-width:0!important;max-height:none!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;transform-origin:0 0;touch-action:pan-x pan-y}
 html body[data-flight-deck] .heli-pinch-canvas>:is(#ms-content,#ms-drawer-content,#workspace-window-content){height:auto!important;max-height:none!important;overflow:visible!important}
 html body[data-flight-deck] .heli-pinch-canvas button{touch-action:pan-x pan-y!important}
 html body[data-flight-deck] [data-heli-content-scale] > :is(header,.hd-window-titlebar,.workspace-window-head,.weather-heading,.layers-heading){zoom:1!important}
 html body[data-flight-deck] #mobile-shell .ms-bottom-left{position:fixed!important;gap:2px!important;max-width:90px!important;z-index:60!important}
 html body[data-flight-deck] #mobile-shell .ms-bottom-left button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;border-radius:7px!important}
 html body[data-flight-deck] #mobile-shell div.ms-compass{position:fixed!important;inset:auto auto calc(14px + env(safe-area-inset-bottom)) 50%!important;transform:translateX(-50%)!important;display:block!important;width:104px!important;min-width:104px!important;height:104px!important;min-height:104px!important;max-height:104px!important;margin:0!important;padding:0!important;background:transparent!important;z-index:60!important;pointer-events:auto!important}
 /* Readouts absorb contact; their live text/SVG never exposes the map below. */
 html body[data-flight-deck] :is(#flight-reference,#mobile-shell div.ms-compass){pointer-events:auto!important;touch-action:none!important}
 html body[data-flight-deck] :is(#flight-reference,#mobile-shell div.ms-compass) *{pointer-events:none!important}
 html body[data-flight-deck] #mobile-shell div.ms-compass>:not(.heli-compass-face){display:none!important}
 .heli-compass-face,.heli-compass-face svg{width:100%!important;height:100%!important;display:block!important;position:static!important;overflow:visible!important;filter:drop-shadow(0 0 1px #ffffffb3)}
 .heli-compass-face .face{fill:#f6faffeb;stroke:#000;stroke-width:2}
 .heli-compass-face .rose path{stroke:#000;stroke-width:2}
 .heli-compass-face text{text-anchor:middle;font-family:system-ui,sans-serif;fill:#000;font-size:10px;font-weight:400;paint-order:stroke;stroke:#ffffffa6;stroke-width:.6}
 .heli-compass-face text.north{fill:#000;font-weight:400}
 .heli-compass-face .pointer{fill:#f7d14a;stroke:#162d40;stroke-width:.7}
 .heli-compass-face .readout{fill:#fff;stroke:#000;stroke-width:1.6}
 .heli-compass-face text.degrees{fill:#000;font-size:16px;font-weight:400;font-variant-numeric:tabular-nums}
 .heli-compass-face text.caption{fill:#000;font-size:7px;letter-spacing:1px}
 html body[data-flight-deck] #plan .credit{position:absolute!important;left:4px!important;right:4px!important;bottom:max(1px,env(safe-area-inset-bottom))!important;max-width:calc(100% - 8px)!important;font-size:6px!important;line-height:1.2!important;background:#fff9!important}
 html body[data-flight-deck] #flight-reference{top:calc(var(--heli-chrome) + 52px)!important;padding:3px 6px!important}
 html body[data-flight-deck] :is(#flight-zone-panel,#flight-hazard-panel){z-index:72!important;overflow-y:auto!important;overflow-x:hidden!important;max-height:40vh!important;touch-action:pan-y}
 /* Fit each warning to its content; only the close target needs a 44px floor. */
 html body[data-flight-deck] :is(#flight-zone-panel .fn-zone-card,#flight-hazard-panel article){position:relative!important;box-sizing:border-box!important;height:auto!important;min-height:44px!important;max-height:none!important;overflow:visible!important;margin:0 0 3px!important;padding:5px 48px 5px 8px!important;border-radius:8px!important}
 html body[data-flight-deck] :is(#flight-zone-panel .fn-zone-card,#flight-hazard-panel article):last-child{margin-bottom:0!important}
 html body[data-flight-deck] :is(#flight-zone-panel .fn-zone-heading b,#flight-hazard-panel article>b){white-space:normal!important;margin:0!important}
 html body[data-flight-deck] #flight-zone-panel :is(.fn-zone-distance,.fn-zone-current,.fn-zone-destination){margin-top:2px!important}
 html body[data-flight-deck] :is(#flight-zone-panel .fn-zone-dismiss,#flight-hazard-panel [data-hazard-close]){position:absolute!important;inset:0 0 auto auto!important;display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;margin:0!important;z-index:3!important;pointer-events:auto!important;touch-action:none!important;border-radius:0 7px 0 7px!important;background:#ad2b38!important;color:#fff!important;font:600 26px/1 system-ui!important}
 /* Quiet SVS screen; all existing detailed controls remain in its menu panel. */
 html body[data-flight-deck] #svs-dialog #fd-svs-options:not([open]){display:none!important}
 html body[data-flight-deck] #svs-dialog #fd-svs-options[open]{position:fixed!important;inset:calc(var(--heli-top) + 6px) 8px auto!important;z-index:100!important;max-height:calc(var(--heli-device-height,100dvh) - var(--heli-top) - 20px - env(safe-area-inset-bottom))!important;overflow:auto!important;background:#eef4f8!important;color:#173347!important;border:1px solid #afc4d3!important;border-radius:12px!important;padding:10px!important;box-shadow:0 10px 35px #001b4450}
 html body[data-flight-deck] #svs-dialog #fd-svs-options>summary{min-height:44px!important;display:flex!important;align-items:center;justify-content:space-between;cursor:pointer;font-size:14px!important}
 html body[data-flight-deck] #svs-dialog .svs-heading{height:44px!important;min-height:44px!important;max-height:44px!important;flex-basis:44px!important;padding:0 4px!important}
 html body[data-flight-deck] #svs-dialog .svs-heading h2{font-size:11px!important;white-space:nowrap}
 html body[data-flight-deck] #svs-dialog .svs-heading select{font-size:12px!important;min-width:0!important;max-width:132px!important;min-height:36px!important}
 html body[data-flight-deck] #svs-dialog .svs-heading button{min-height:40px!important;padding:4px 7px!important;font-size:12px!important}
 /* Consistent, compact mobile windows; A5 print pages and instruments excluded. */
 html body[data-flight-deck] :is(.hd-app-window,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info):not(#svs-dialog,#terrain-panel,#heli-welcome){border:1px solid #b2c7d6!important;border-radius:12px!important;background:#f3f7fbea!important;color:#183247!important;padding:0 10px 10px!important;box-shadow:0 8px 28px #051b3640!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin}
 html body[data-flight-deck] :is(.hd-app-window,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info):not(#svs-dialog,#terrain-panel,#heli-welcome)>:is(header,.hd-window-titlebar,.layers-heading,.weather-heading){position:sticky!important;top:0!important;z-index:4!important;display:flex!important;align-items:center!important;min-height:48px!important;padding:2px 6px!important;margin:0 -10px 8px!important;background:#18364cef!important;color:white!important;border:0!important;border-bottom:1px solid #577288!important;border-radius:11px 11px 0 0!important}
 html body[data-flight-deck] :is(.hd-app-window,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info):not(#svs-dialog,#terrain-panel,#heli-welcome)>:is(header,.hd-window-titlebar,.layers-heading,.weather-heading) :is(h1,h2,h3){font:650 15px/1.2 system-ui!important;color:inherit!important;flex:1;min-width:0;margin:0!important;padding:0!important}
 html body[data-flight-deck] .hd-app-window:not(#svs-dialog,#terrain-panel,#heli-welcome) :is(p,fieldset,details,.fh-card,.layers-group,.settings-card):not(.bp-page *,.bp-sheet *){margin-block:6px!important}
 html body[data-flight-deck] .hd-app-window:not(#svs-dialog,#terrain-panel,#heli-welcome) :is(.fh-card,.settings-card,.layer-switch){padding:7px!important}
 html body[data-flight-deck] .hd-app-window:not(#svs-dialog,#terrain-panel,#heli-welcome) :is(.settings-grid,.mission-grid,.cards,.layer-actions){gap:6px!important}
 html body #mobile-menu .ms-row{min-height:44px!important;padding:7px 6px!important;font-size:.875rem!important;border-bottom:1px solid #bccfdd70!important;border-radius:0!important;gap:8px}
 html body #mobile-menu .ms-separator{height:6px!important;margin:3px 0!important}
 html body #mobile-drawer>header{height:48px!important;max-height:48px!important}
 html body #mobile-drawer :is(.ms-white,.ms-note){margin:6px 0!important;padding:7px!important;font:.875rem/1.35 system-ui!important}
 html body #mobile-drawer .ms-air-row{padding:8px 4px!important;gap:7px!important}
 html body #mobile-drawer .ms-air-row b{font-size:14px!important}
 html body #mobile-drawer .ms-air-row small{font-size:12px!important;margin-top:2px!important}
}
@media screen and (min-width:0px) and (max-height:600px){
 html body[data-flight-deck] #mobile-shell div.ms-compass{width:86px!important;min-width:86px!important;height:86px!important;min-height:86px!important;max-height:86px!important;left:auto!important;right:max(8px,env(safe-area-inset-right))!important;transform:none!important}
}
@media screen and (min-width:0px){
 html body[data-flight-deck] #mobile-shell div.ms-compass :is(#ms-rose,#ms-heading,#ms-hdg,.hm-rmi-label,i){display:none!important;width:0!important;height:0!important;min-height:0!important}
 html body[data-flight-deck] #mobile-shell div.ms-compass .heli-compass-face{position:absolute!important;inset:0!important;margin:0!important;padding:0!important}
 html body[data-flight-deck] #svs-dialog #svs-att-status{bottom:auto!important;height:auto!important;min-height:0!important;max-height:none!important;padding:3px 5px!important;line-height:1.2!important;white-space:nowrap!important;border-radius:4px!important}
 html body[data-flight-deck] #svs-dialog #svs-credit{margin:0!important;padding:2px 4px!important;min-height:0!important;height:auto!important;background:#081b2cb8!important;color:#d5e4ed!important}
 html body[data-flight-deck] #svs-dialog #svs-credit,html body[data-flight-deck] #svs-dialog #svs-credit *{font:8px/10px system-ui,sans-serif!important}
 html body[data-flight-deck] #svs-dialog:has(#svs-credit:not([hidden])) #svs-pfd{transform:translateY(-22px)}
 /* Main menu is a slim popover; functional forms retain their full width. */
 html body[data-flight-deck] #mobile-shell .ms-toolbar [data-ms=setup]{display:none!important}
 html body[data-flight-deck] #mobile-menu.heli-compact-menu{border-radius:12px!important}
 html body[data-flight-deck] #mobile-menu.heli-compact-menu [data-mobile-primary]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2px!important;margin-bottom:4px!important;padding-bottom:4px!important}
 html body[data-flight-deck] #mobile-menu.heli-compact-menu [data-mobile-primary] .ms-row{background:#e4edf4!important;border:0!important;border-radius:6px!important;padding:5px 8px!important;text-transform:uppercase!important;justify-content:center!important;text-align:center!important}
 html body[data-flight-deck] #mobile-menu.heli-compact-menu .ms-row{min-height:44px!important;padding:5px 6px!important}
 html body[data-flight-deck] #mobile-menu.heli-compact-menu .ms-row i{font-size:20px!important;color:#69859a!important}
 html body[data-flight-deck] #mobile-menu.heli-compact-menu .ms-note{font-size:10px!important;line-height:1.3!important;padding:4px 6px!important}
 html body[data-flight-deck] #mobile-menu.heli-compact-menu #ms-content{padding-bottom:0!important}
 /* A single safe-area header owns both commands and live flight data. */
 html body[data-flight-deck] #mobile-shell #heli-mobile-header{position:fixed!important;inset:0 0 auto!important;display:block!important;box-sizing:border-box!important;padding:var(--heli-header-inset,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) 0 max(4px,env(safe-area-inset-left))!important;margin:0!important;background:var(--fd-dark-glass,#15344ee8)!important;z-index:65!important;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
 html body[data-flight-deck] #mobile-shell #heli-mobile-header .ms-toolbar{position:static!important;inset:auto!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;margin:0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 html body[data-flight-deck] #mobile-shell #heli-mobile-header .ms-instruments{position:static!important;inset:auto!important;height:42px!important;min-height:42px!important;max-height:42px!important;padding:1px 0!important;margin:0!important;grid-template-columns:minmax(0,.75fr) minmax(0,1fr) minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,1.15fr) minmax(0,.85fr)!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 html body[data-flight-deck] #mobile-shell #heli-mobile-header .ms-instruments>div{min-width:0!important;white-space:nowrap}
 html body[data-flight-deck] #mobile-shell .ms-instruments [data-heli-arrival]{touch-action:none!important;pointer-events:auto!important;cursor:pointer}
 html body[data-flight-deck] #mobile-shell .ms-instruments [data-heli-arrival] *{pointer-events:none!important}
 html body[data-flight-deck] #mobile-shell .ms-instruments [data-heli-arrival]:focus-visible{outline:1px solid #91d6ec;outline-offset:-2px;border-radius:3px}
 html body[data-flight-deck] #plan .controls{display:none!important}
 html body[data-flight-deck] #fd-map-picker select{min-width:0!important;width:100%!important;flex:1!important}
 html body[data-flight-deck] #fd-map-picker button{flex:0 0 44px!important}
}
/* 0.2.5: radar controls share its header; mobile map tools remain exposed. */
@media screen and (min-width:0px){
 html body[data-flight-deck] #mobile-shell .ms-bottom-left{display:none!important}
 html body[data-flight-deck] #mobile-shell .ms-tabs{z-index:10010!important}
 html body[data-flight-deck] #mobile-shell .ms-tabs button.heli-weather-active{background:#176e69e8!important;box-shadow:inset 3px 0 #7cf0c9!important}
 html body[data-flight-deck] #mobile-shell .ms-tabs button.heli-weather-active[aria-pressed=true]{background:#145c87f2!important;box-shadow:inset 3px 0 #7cf0c9,0 0 0 1px #91e5ff!important}
 html body[data-flight-deck] :is(#weather-alert,#weather-clock,#weather-wind-key,#wx-flyable-key){display:none!important}
 html body[data-flight-deck] #map-layers-dialog #heli-map-sources{position:static;width:auto;height:auto;margin:4px 0;padding:0;color:#183247}
 html body[data-flight-deck] #map-layers-dialog #heli-map-sources .credit{position:static!important;inset:auto!important;width:auto!important;max-width:100%!important;margin:0!important;padding:6px!important;background:transparent!important;color:#213c50!important;font:12px/1.5 system-ui!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;box-shadow:none!important}
 html body[data-flight-deck] #map-layers-dialog #heli-map-sources .credit a{color:#175a85!important}
 html body[data-flight-deck] #terrain-panel .terrain-head{height:44px!important;min-height:44px!important;max-height:44px!important;flex:0 0 44px!important;justify-content:flex-end!important;gap:0!important;padding:0 3px!important;overflow:hidden}
 html body[data-flight-deck] #terrain-panel .terrain-head>b{display:none!important}
 html body[data-flight-deck] #terrain-panel #terrain-status{display:none!important}
 html body[data-flight-deck] #terrain-panel .terrain-zoom{display:flex!important;flex-direction:row!important;width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;position:static!important;gap:0!important;padding:0!important;background:transparent!important;border:0!important}
 html body[data-flight-deck] #terrain-panel .terrain-head button{display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;flex:0 0 44px!important;padding:0!important;font-size:21px!important}
 html body[data-flight-deck] #terrain-panel .terrain-plot{padding:0!important;gap:0!important}
 html body[data-flight-deck] #terrain-chart{margin:0!important;width:100%!important}
 html body[data-flight-deck] #terrain-chart svg text{font-family:system-ui,sans-serif!important;letter-spacing:0!important;font-weight:600;paint-order:stroke;stroke:#e9f5ff;stroke-width:.8px;stroke-linejoin:round}
 html body[data-flight-deck] #terrain-chart svg :is(.terrain-axis-x,.terrain-axis-y,.terrain-waypoint-label){stroke:none!important;fill:#102e45!important}
 html body[data-flight-deck] #settings{--settings-window:#f3f7fb;--settings-chrome:#e4edf4;--settings-ink:#183247;--settings-muted:#385467;--settings-edge:#a5b9c9;color-scheme:light;display:none}
 html body[data-flight-deck] #settings[open]{display:flex!important;flex-direction:column!important}
 html body[data-flight-deck] #settings #settings-form{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;overflow:hidden!important;min-height:0!important;padding:0!important}
 html body[data-flight-deck] #settings .hd-settings-body{display:block!important;flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;padding:6px!important;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 html body[data-flight-deck] #settings #settings-form>.settings-toolbar{flex-shrink:0!important}
 html body[data-flight-deck] #settings :is(label,p,small,span,b,strong,summary,h2,h3,legend,.setting-example){color:#183247!important;opacity:1!important;text-shadow:none!important;line-height:1.4!important}
 html body[data-flight-deck] #settings :is(.card,.setting-example,.settings-badge){background:#fff!important;border-color:#b5c8d7!important}
 html body[data-flight-deck] #settings :is(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){background:#fff!important;color:#183247!important;-webkit-text-fill-color:#183247!important;border-color:#9eb4c4!important}
 html body[data-flight-deck] #settings :is(.settings-grid,.cards){grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:6px 0!important}
 html body[data-flight-deck] #settings .card{padding:10px!important}
 html body[data-flight-deck] #settings :is(.hd-settings-titlebar,.settings-toolbar){position:static!important;background:#e4edf4!important;color:#183247!important;padding:6px!important;flex-wrap:wrap!important}
 html body[data-flight-deck] #settings .hd-settings-titlebar h1{color:#183247!important}
}
@media screen and (min-width:0px){
 html body[data-flight-deck] #terrain-chart #vr-sky stop:first-child{stop-color:#70b8e5!important}
 html body[data-flight-deck] #terrain-chart #vr-sky stop:last-child{stop-color:#c3e8f9!important}
 html body[data-flight-deck] #terrain-chart #vr-ground stop:first-child{stop-color:#a9cd65!important}
 html body[data-flight-deck] #terrain-chart #vr-ground stop:last-child{stop-color:#629b38!important}
 html body[data-flight-deck] #terrain-chart rect[fill="#dce8f3"]{fill:#e9f2f8!important}
 html body[data-flight-deck] #terrain-chart svg text.terrain-zone-label{fill:#17344a!important;stroke:#f3f8fc!important;stroke-width:2px!important}
}
@media screen and (min-width:0px){
 html:has(#settings.hd-settings-window[open]){scrollbar-gutter:auto!important}
 html body[data-flight-deck] #settings.hd-settings-window .hd-settings-titlebar{background:#18364c!important;color:#fff!important;flex-shrink:0!important}
 html body[data-flight-deck] #settings.hd-settings-window .hd-settings-titlebar :is(h1,span,button){color:#fff!important}
}
@media screen and (min-width:0px){
 /* Town labels stay below aviation points and the helicopter. */
 html,body,body *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-tap-highlight-color:transparent}
 body :is(input,textarea,[contenteditable=true]){-webkit-user-select:text!important;user-select:text!important}
 #map #settlements-overlay{z-index:6!important}
 #map :is(#navigation-overlay,#reporting-overlay,#ifr-overlay,#saved-map-overlay){z-index:7!important}
 #map .flight-range-rings>path{stroke:#000!important;opacity:1!important;stroke-width:.75px!important}
 #map .flight-range-rings>path[data-range-nm]{stroke-width:2px!important}
 #mobile-shell .ms-tabs [data-heli-nvg]{font:750 10px/1 system-ui!important;letter-spacing:.3px}
 #mobile-shell .ms-tabs [data-heli-nvg][aria-pressed=true]{color:#b8ff9f!important;border-color:#80db67!important;background:#174424e8!important}
}
/* A top-layer visual tint keeps fixed windows and touch coordinates unchanged.
   This adjusts app pixels, not physical backlight or NVG hardware compatibility. */
#heli-nvg-screen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;pointer-events:none!important;z-index:2147483647!important;background:#00280008!important;backdrop-filter:grayscale(1) sepia(1) hue-rotate(45deg) saturate(5) brightness(.35);-webkit-backdrop-filter:grayscale(1) sepia(1) hue-rotate(45deg) saturate(5) brightness(.35)}
#heli-nvg-screen::backdrop{display:none!important;pointer-events:none!important}
#heli-nvg-screen[hidden]{display:none!important}
@media screen{
 #map .heli-map-point{position:absolute!important;z-index:38;display:block;width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;overflow:visible!important;transform:translate(-50%,-50%) rotate(var(--map-unrotate,0deg));touch-action:none;-webkit-touch-callout:none}
 #map .heli-map-point[hidden]{display:none!important}
 #map .heli-map-point-symbol{display:block;box-sizing:border-box;width:18px;height:18px;margin:15px;background:#fbc45f;border:2px solid #365a7d;border-radius:50%;box-shadow:0 1px 3px #061b3f66;pointer-events:none}
 #map .heli-map-point-label{position:absolute;left:50%;bottom:45px;transform:translateX(calc(-50% + var(--point-label-shift,0px)));min-width:170px;max-width:240px;padding:5px 8px;border:1px solid #8eb2c7;border-radius:6px;background:#102c43ef;color:#fff;font:12px/1.35 system-ui;text-align:center;pointer-events:auto;touch-action:none;box-shadow:0 2px 8px #0004}
 #map .heli-map-point-label[data-below=true]{top:45px;bottom:auto}
 #map .heli-map-point-label b,#map .heli-map-point-label small{display:block;color:inherit;font:inherit;white-space:nowrap}
 #map .heli-map-point-label b{font-weight:600}
 .heli-airport-runways{margin-top:8px;padding:6px 0;border-top:1px solid #afc3d1}
 .heli-airport-runways a{display:block;font-size:11px!important;color:#286381!important}
}
/* Offline controls use the existing compact route panel. */
#heli-offline-panel{margin:8px 0;padding:6px 8px;border:1px solid #9bb0bf;border-radius:8px;background:#eef4f8;color:#17374d;font:12px/1.4 system-ui}
#heli-offline-panel summary{font-weight:700;cursor:pointer;padding:6px 0}
#heli-offline-panel p{white-space:pre-line;margin:6px 0}
#heli-offline-panel label{display:flex;align-items:center;gap:6px}
#heli-offline-panel input[type=checkbox]{width:18px;height:18px;min-height:18px}
#heli-offline-panel .offline-actions{display:flex;gap:5px}
#heli-offline-panel .offline-actions button{flex:1;min-height:44px}
#heli-offline-panel a{color:#315a73}
#heli-offline-status{position:fixed;z-index:72;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom) + 4px);max-width:calc(100vw - 28px);padding:4px 8px;min-height:28px;border:1px solid #9b7924;border-radius:5px;background:#fff0b9;color:#393015;font:600 11px/1.25 system-ui;white-space:normal}
#heli-offline-status[hidden]{display:none!important}
.heli-offline-map{position:absolute;inset:0;z-index:0;pointer-events:none}
.heli-has-offline-map>img[data-tile]{display:none!important}
/* Route entry tabs retain their touch area, with clearer section labels. */
@media screen and (min-width:0px){
 #route-sidebar:is(#route-sidebar):is(#route-sidebar) .entry-tabs>button[data-entry]{font-size:14px!important;font-weight:700!important;white-space:nowrap!important}
}
/* One form scale for every mobile content window. Specific reading displays
   below retain their hierarchy (NOTAM, two-row replay HUD, charts and maps).
   No blanket SVG/font-weight/text-transform rules: symbols and casing survive. */
@media screen and (min-width:0px){
 :is(.hd-app-window,#settings,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info,#heli-account-panel):not(#svs-dialog,#terrain-panel,#heli-nd-dialog,#heli-welcome){--hd-window-font:var(--heli-ui-font);--hd-window-font-size:var(--heli-ui-text);font-family:var(--heli-ui-font)!important;font-size:var(--heli-ui-text)!important;line-height:1.35!important}
 :is(.hd-app-window,#settings,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info,#heli-account-panel):not(#svs-dialog,#terrain-panel,#heli-nd-dialog,#heli-welcome) :is(p,label,span,small,b,strong,summary,li,button,a,td,th,dt,dd,legend):not(.bp-page *,.bp-sheet *,svg *,canvas){font-family:var(--heli-ui-font)!important;font-size:var(--heli-ui-text)!important;line-height:1.35!important;letter-spacing:normal!important;min-width:0;overflow-wrap:break-word}
 :is(.hd-app-window,#settings,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info,#heli-account-panel):not(#svs-dialog,#terrain-panel,#heli-nd-dialog,#heli-welcome) :is(h1,h2,h3):not(.bp-page *,.bp-sheet *){font-family:var(--heli-ui-font)!important;font-size:var(--heli-ui-title)!important;line-height:1.25!important;margin-block:4px!important}
 :is(.hd-app-window,#settings,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info,#heli-account-panel):not(#svs-dialog,#terrain-panel,#heli-nd-dialog,#heli-welcome) :is(input,select,textarea):not([type=checkbox],[type=radio],[type=range],[type=hidden],.bp-page *,.bp-sheet *){box-sizing:border-box!important;font-family:var(--heli-ui-font)!important;font-size:var(--heli-ui-field)!important;line-height:1.3!important;min-width:0!important;min-height:var(--heli-ui-touch)!important;max-width:100%!important;padding:5px 6px!important;margin-block:2px!important}
 :is(.hd-app-window,#settings,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info,#heli-account-panel):not(#svs-dialog,#terrain-panel,#heli-nd-dialog,#heli-welcome) :is(button,summary):not(.bp-page *,.bp-sheet *){box-sizing:border-box!important;min-height:var(--heli-ui-touch)!important;padding:4px 6px!important}
 :is(.hd-app-window,#settings,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info,#heli-account-panel):not(#svs-dialog,#terrain-panel,#heli-nd-dialog,#heli-welcome) :is(.card,.settings-card,.setting-example,.fh-card,.notam-card-body,.db-layout>aside,.hd-settings-body){padding:var(--heli-ui-card)!important;min-width:0!important;box-sizing:border-box!important}
 :is(.hd-app-window,#settings,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info,#heli-account-panel):not(#svs-dialog,#terrain-panel,#heli-nd-dialog,#heli-welcome) :is(label,p,fieldset):not(.bp-page *,.bp-sheet *){margin-block:4px!important}
 :is(.hd-app-window,#settings,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info,#heli-account-panel):not(#svs-dialog,#terrain-panel,#heli-nd-dialog,#heli-welcome) label{gap:3px!important}
 :is(.hd-app-window,#settings,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info,#heli-account-panel):not(#svs-dialog,#terrain-panel,#heli-nd-dialog,#heli-welcome) :is(.muted,.hint,small,.ms-note,.help-text):not(.bp-page *,.bp-sheet *,svg *){font-size:var(--heli-ui-note)!important;line-height:1.35!important}
 :is(.hd-app-window,#settings,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info,#heli-account-panel):not(#svs-dialog,#terrain-panel,#heli-nd-dialog,#heli-welcome) :is(.hd-window-controls button,.hd-window-close,[id$=-close],[aria-label="Zatvori"],[aria-label="Nazad"]){width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;font-size:24px!important;line-height:1!important}
 html body[data-flight-deck] :is(.hd-app-window,#settings,#mobile-drawer,#mobile-menu,#fd-appearance,#fd-radar-info)>:is(header,.hd-window-titlebar,.hd-settings-titlebar,.layers-heading,.weather-heading) :is(h1,h2,h3){font-size:var(--heli-ui-title)!important;line-height:1.25!important}
 html body[data-flight-deck] #mobile-menu .ms-row,html body[data-flight-deck] #mobile-menu .ms-row :is(span,small){font-size:var(--heli-ui-text)!important;line-height:1.35!important}
 html body[data-flight-deck] #mobile-drawer .ms-air-row b{font-size:var(--heli-ui-text)!important}
 html body[data-flight-deck] #mobile-drawer :is(.ms-white,.ms-note){font-size:var(--heli-ui-note)!important}
 #mobile-drawer:is(#mobile-drawer):is(#mobile-drawer)>header h2{font-size:var(--heli-ui-title)!important}
 #mobile-drawer:is(#mobile-drawer):is(#mobile-drawer) .ms-ad-symbol{font-size:22px!important}
 #settings:is(#settings):is(#settings) :is(p,label,span,b,strong,summary,legend,.setting-example){font-size:var(--heli-ui-text)!important;line-height:1.35!important}
 #settings:is(#settings):is(#settings) small{font-size:var(--heli-ui-note)!important}
 #settings:is(#settings):is(#settings) :is(h1,h2,h3){font-size:var(--heli-ui-title)!important;line-height:1.25!important}
 #settings:is(#settings):is(#settings) :is(.card,.setting-example){padding:var(--heli-ui-card)!important}
 #settings:is(#settings):is(#settings) :is(.settings-grid,.cards){gap:6px!important;margin:4px 0!important}
 /* Data-management cards used large desktop padding and fixed columns. */
 #workspace-window:is(#workspace-window):is(#workspace-window) #workspace-window-content:has(>#airspaces){padding:0!important}
 #airspaces:is(#airspaces):is(#airspaces){padding:0!important;min-width:0!important}
 #airspaces:is(#airspaces):is(#airspaces) :is(.card,.update-card,.region-card,.reporting-package){padding:var(--heli-ui-card)!important;margin:6px 0!important;min-width:0!important;box-sizing:border-box!important}
 #airspaces:is(#airspaces):is(#airspaces) :is(.region-grid,.reporting-package-grid,.navigation-package-grid){grid-template-columns:minmax(0,1fr)!important;gap:6px!important;min-width:0!important}
 #airspaces:is(#airspaces):is(#airspaces) :is(.settings-heading,.reporting-heading,.navigation-heading,.ifr-heading){gap:4px!important;margin:4px 0!important;flex-wrap:wrap!important;min-width:0!important}
 #airspaces:is(#airspaces):is(#airspaces) .update-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:4px!important}
 #airspaces:is(#airspaces):is(#airspaces) .update-actions label{width:100%!important;max-width:none!important}
 #airspaces:is(#airspaces):is(#airspaces) .update-dates{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;margin:6px 0!important}
 #airspaces:is(#airspaces):is(#airspaces) .update-dates span{font-size:var(--heli-ui-note)!important;margin-bottom:2px!important}
 #airspaces:is(#airspaces):is(#airspaces) .button-row{display:flex!important;flex-wrap:wrap!important;gap:4px!important;min-width:0!important}
 #airspaces:is(#airspaces):is(#airspaces) :is(.region-hero,.region-source){padding:7px!important;margin:6px 0!important;gap:6px!important;min-width:0!important;box-sizing:border-box!important}
 #airspaces:is(#airspaces):is(#airspaces) .region-totals{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;white-space:normal!important;min-width:0!important}
 #airspaces:is(#airspaces):is(#airspaces) :is(.region-totals>div,.region-hero>div){min-width:0!important}
 #airspaces:is(#airspaces):is(#airspaces) :is(.region-toolbar,.region-grid){gap:6px!important;margin:6px 0!important}
 #airspaces:is(#airspaces):is(#airspaces) #navigation-coverage table{width:100%!important;table-layout:fixed!important;min-width:0!important}
 #airspaces:is(#airspaces):is(#airspaces) #navigation-coverage :is(th,td){padding:4px!important;font-size:11px!important;white-space:normal!important;overflow-wrap:anywhere!important}
 #flight-nav-dialog:is(#flight-nav-dialog):is(#flight-nav-dialog) :is(.fn-sim-settings,.fn-start-options){padding:7px!important;margin:4px 0!important;gap:4px!important}
 #flight-nav-dialog:is(#flight-nav-dialog):is(#flight-nav-dialog) .fn-manual-grid{gap:6px!important;margin:4px 0!important}
 #flight-nav-dialog:is(#flight-nav-dialog):is(#flight-nav-dialog) :is(.fn-start-intro,#fn-start-status){margin:4px 0!important}
 /* Only form controls in SVS settings, never the flight instrument overlay. */
 #svs-dialog:is(#svs-dialog) :is(#svs-approach-settings,#fd-svs-options) :is(label,p,a,span,strong,button,summary){font-family:var(--heli-ui-font)!important;font-size:var(--heli-ui-text)!important;line-height:1.35!important}
 #svs-dialog:is(#svs-dialog) :is(#svs-approach-settings,#fd-svs-options) :is(select,input:not([type=checkbox],[type=range])){font-size:var(--heli-ui-field)!important;min-height:44px!important;padding:5px 6px!important}
}
/* NOTAM only: compact reading text, flexible fields, full-size touch targets.
   Repeat the scope to override shared desktop window typography. */
@media screen and (min-width:0px){
 #notam-dialog:is(#notam-dialog):is(#notam-dialog){font:12px/1.35 system-ui,sans-serif!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) :is(p,label,span,small,b,strong,i,summary,li,button,div,a){font-size:12px!important;line-height:1.35!important;min-width:0;overflow-wrap:anywhere}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) :is(h2,h3){font-size:14px!important;line-height:1.25!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog)>header{margin-bottom:5px!important;gap:4px!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-controls{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;margin:4px 0!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-controls button{padding:4px!important;min-width:0!important;width:100%!important;min-height:44px!important;white-space:normal!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-filters{display:grid!important;grid-template-columns:minmax(0,1fr) 76px!important;gap:4px 6px!important;margin:5px 0!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-filters label{grid-column:auto!important;grid-row:auto!important;margin:0!important;gap:2px!important;align-self:stretch!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-filters label:has(input){grid-column:1/-1!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-filters label:has(input[type=checkbox]){display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;min-height:44px!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;font-size:16px!important;min-height:44px!important;margin:0!important;padding:5px 6px!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0!important;flex:none!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) :is(#notam-status,.notam-note,.notam-dates,.notam-badge,.notam-card-heading i,.notam-card-body small){font-size:11px!important;line-height:1.35!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) #notam-status{margin:5px 0!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-info{margin:3px 0!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-info>summary{padding:3px 0!important;min-height:44px!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-card{margin:4px 0!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-card>summary{display:block!important;padding:7px!important;min-height:44px!important;box-sizing:border-box}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-card-heading{display:flex!important;flex-wrap:wrap!important;gap:2px 5px!important;margin:0 0 3px!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-card-heading>b{font-size:13px!important;white-space:normal!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-card-body{padding:6px 7px!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) pre{font:11px/1.45 ui-monospace,monospace!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) #notam-close{font-size:24px!important;line-height:1!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) #heli-notam-options{margin:4px 0!important;border-bottom:1px solid #b9ccd9!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) #heli-notam-options>summary{display:flex!important;align-items:center!important;gap:6px!important;min-height:44px!important;font-weight:650!important;list-style:none}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) #heli-notam-options>summary::before{content:'›';font-size:20px;line-height:1;flex:none;transition:transform .15s}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) #heli-notam-options[open]>summary::before{transform:rotate(90deg)}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) .notam-card .notam-controls{display:flex!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) input[type=file]{font-size:12px!important}
 #notam-dialog:is(#notam-dialog):is(#notam-dialog) :is(#heli-notam-options>summary,.notam-info>summary,.notam-card-heading>b,.notam-filters label){color:#23435b!important}
}
/* Mission follows the NOTAM reading scale and touch targets. Keep every
   original field and action; only remove nested desktop spacing on phones. */
@media screen and (min-width:0px){
 #workspace-window:is(#workspace-window):is(#workspace-window) #workspace-window-content:has(>#mission){padding:0!important;margin:0!important;min-width:0}
 /* Only the opened workspace may display Mission. A display override on the
    inactive page covers the map and makes a completed map load look stuck. */
 #mission:is(#mission):is(#mission).active{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;padding:0!important;margin:0!important;min-width:0!important;font:12px/1.35 system-ui,sans-serif!important}
 #mission:is(#mission):is(#mission) :is(p,label,span,small,b,strong,button,div,a){font-family:system-ui,sans-serif!important;font-size:12px!important;line-height:1.35!important;min-width:0!important;letter-spacing:normal!important;overflow-wrap:break-word}
 #mission:is(#mission):is(#mission) :is(h1,h2,h3){font-size:14px!important;line-height:1.25!important;margin:0 0 4px!important}
 #mission:is(#mission):is(#mission)>h1{margin:0!important}
 #mission:is(#mission):is(#mission) .mission-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;padding:0!important;margin:0!important;width:100%!important}
 #mission:is(#mission):is(#mission) button{box-sizing:border-box!important;min-height:44px!important;padding:4px 6px!important;margin:0!important;white-space:normal!important}
 #mission:is(#mission):is(#mission) .mission-actions button{width:100%!important}
 #mission:is(#mission):is(#mission)>.muted{font-size:11px!important;line-height:1.35!important;margin:0!important;color:#476175!important}
 #mission:is(#mission):is(#mission) .cards{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;margin:0!important;padding:0!important}
 #mission:is(#mission):is(#mission) .card{box-sizing:border-box!important;min-width:0!important;width:100%!important;padding:7px!important;margin:0!important}
 #mission:is(#mission):is(#mission) label{display:grid!important;gap:2px!important;margin:4px 0 0!important;color:#23435b!important}
 #mission:is(#mission):is(#mission) :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:44px!important;font:16px/1.3 system-ui,sans-serif!important;padding:5px 6px!important;margin:0!important}
 #mission:is(#mission):is(#mission) input:not([type=checkbox]){height:44px!important}
 #mission:is(#mission):is(#mission) input[type=datetime-local]::-webkit-date-and-time-value{min-width:0;text-align:left}
 #mission:is(#mission):is(#mission) textarea{height:76px!important;min-height:76px!important;resize:vertical}
 #mission:is(#mission):is(#mission) .hd-live-choice{display:flex!important;align-items:center!important;gap:7px!important;min-height:44px!important}
 #mission:is(#mission):is(#mission) input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0!important;padding:0!important;flex:none!important}
 #mission:is(#mission):is(#mission)>.geo-files-open{grid-column:1/-1!important;max-width:100%!important}
}
@media screen and (min-width:700px) and (min-width:0px){
 #mission:is(#mission):is(#mission) .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* Debrief uses the NOTAM scale. Recorded values remain a single two-row
   strip; the replay map/profile retain their own SVG coordinate systems. */
@media screen and (min-width:0px){
 #workspace-window:is(#workspace-window):is(#workspace-window) #workspace-window-content:has(>#debrief){padding:0!important;margin:0!important;min-width:0}
 #debrief:is(#debrief):is(#debrief){padding:0!important;margin:0!important;min-width:0!important;font:12px/1.35 system-ui,sans-serif!important}
 #debrief:is(#debrief):is(#debrief) :is(p,label,span,small,b,strong,button,div,a,li):not(svg *){font-family:system-ui,sans-serif!important;font-size:12px!important;line-height:1.35!important;min-width:0!important;letter-spacing:normal!important;overflow-wrap:break-word}
 #debrief:is(#debrief):is(#debrief) :is(h1,h2,h3){font-size:14px!important;line-height:1.25!important;margin:4px 0!important}
 #debrief:is(#debrief):is(#debrief) :is(p,ul){margin:4px 0!important}
 #debrief:is(#debrief):is(#debrief) .db-head{gap:6px!important;margin:0!important;align-items:center!important}
 #debrief:is(#debrief):is(#debrief) .db-head>div{flex:1!important}
 #debrief:is(#debrief):is(#debrief) :is(.eyebrow,#db-storage,#db-meta,.db-hint,.db-layout>aside p,#db-detail>p,#db-events li){font-size:11px!important;line-height:1.35!important}
 #debrief:is(#debrief):is(#debrief) .db-layout{grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
 #debrief:is(#debrief):is(#debrief) .db-layout>aside{padding:6px!important;min-width:0!important}
 #debrief:is(#debrief):is(#debrief) label{margin:3px 0!important;gap:3px!important;color:#23435b!important}
 #debrief:is(#debrief):is(#debrief) :is(select,textarea){box-sizing:border-box!important;font:16px/1.3 system-ui,sans-serif!important;min-height:44px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:5px 6px!important;margin:2px 0!important;color:#183247!important;background:#fff!important;color-scheme:light}
 #debrief:is(#debrief):is(#debrief) .heli-flight-selection{display:block!important;position:relative!important;box-sizing:border-box!important;height:44px!important;width:100%!important;max-width:100%!important;margin:2px 0!important;padding:0 28px 0 7px!important;border:1px solid #91a9b9!important;border-radius:6px!important;background:#fff!important;color:#183247!important}
 #debrief:is(#debrief):is(#debrief) .heli-flight-selection::after{content:'⌄';position:absolute;right:8px;top:10px;font:16px/20px system-ui;pointer-events:none}
 #debrief:is(#debrief):is(#debrief) .heli-flight-selection-text{display:block!important;font:12px/42px system-ui!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;pointer-events:none}
 #debrief:is(#debrief):is(#debrief) .heli-flight-selection:focus-within{outline:2px solid #298fbd;outline-offset:1px}
 #debrief:is(#debrief):is(#debrief) #db-flights{position:absolute!important;inset:0!important;height:44px!important;width:100%!important;margin:0!important;opacity:0!important;cursor:pointer}
 #debrief:is(#debrief):is(#debrief) select option{color:#183247;background:#fff}
 #debrief:is(#debrief):is(#debrief) :is(button,.db-tools a){box-sizing:border-box!important;min-height:44px!important;padding:4px 6px!important;margin:0!important;white-space:normal!important}
 #debrief:is(#debrief):is(#debrief) #db-refresh{flex:none!important;width:88px!important}
 #debrief:is(#debrief):is(#debrief) #db-delete{margin:3px 0 0!important}
 #debrief:is(#debrief):is(#debrief) .db-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;margin:4px 0!important}
 #debrief:is(#debrief):is(#debrief) .db-stats>div{padding:4px!important}
 #debrief:is(#debrief):is(#debrief) .db-stats small{font-size:10px!important;line-height:1.3!important}
 #debrief:is(#debrief):is(#debrief) .db-stats b{font-size:12px!important;margin:2px 0 0!important;font-variant-numeric:tabular-nums}
 #debrief:is(#debrief):is(#debrief) .db-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:center!important;gap:4px!important;padding:0!important;margin:4px 0!important}
 #debrief:is(#debrief):is(#debrief) .db-tools:has(#db-play){grid-template-columns:minmax(0,1fr) 64px!important}
 #debrief:is(#debrief):is(#debrief) .db-tools>label{grid-column:1/-1!important}
 #debrief:is(#debrief):is(#debrief) .db-tools a{display:flex;align-items:center;justify-content:center;text-align:center}
 #debrief:is(#debrief):is(#debrief) :is(.db-check,.db-tools label){min-height:44px!important;align-items:center!important;gap:6px!important;margin:0!important}
 #debrief:is(#debrief):is(#debrief) input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;padding:0!important;margin:0!important;flex:none!important}
 #debrief:is(#debrief):is(#debrief) #db-time{box-sizing:border-box!important;width:100%!important;min-height:44px!important;height:44px!important;padding:0!important;margin:0!important}
 #debrief:is(#debrief):is(#debrief) #db-current{padding:5px 6px!important;margin:3px 0!important;font-size:11px!important}
 #debrief:is(#debrief):is(#debrief) #db-replay-hud{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.65fr) minmax(0,.9fr) minmax(78px,1.25fr)!important;gap:2px!important;padding:5px 4px!important;margin:0!important;align-items:start!important}
 #debrief:is(#debrief):is(#debrief) #db-replay-hud>div{padding:0 2px!important;min-width:0!important;white-space:nowrap!important;overflow-wrap:normal!important}
 #debrief:is(#debrief):is(#debrief) #db-replay-hud small{display:block!important;font-size:10px!important;line-height:13px!important;white-space:nowrap!important;overflow-wrap:normal!important;color:#b8d5e8!important}
 #debrief:is(#debrief):is(#debrief) #db-replay-hud b{display:block!important;font-size:14px!important;line-height:18px!important;margin:0!important;white-space:nowrap!important;overflow-wrap:normal!important;font-variant-numeric:tabular-nums;color:#fff!important}
 #debrief:is(#debrief):is(#debrief) .db-map-tools{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.8fr) 44px 44px!important;gap:3px!important;padding:3px!important;margin:0!important}
 #debrief:is(#debrief):is(#debrief) .db-map-tools button{font-size:11px!important;padding:3px!important}
 #debrief:is(#debrief):is(#debrief) #db-map{height:clamp(300px,44dvh,400px)!important;max-height:none!important;width:100%!important;aspect-ratio:auto!important}
 #debrief:is(#debrief):is(#debrief) #db-replay-credit{font-size:9px!important}
 #debrief:is(#debrief):is(#debrief) .db-map-north{font-size:12px!important}
 #debrief:is(#debrief):is(#debrief) #db-height-profile{left:5px!important;right:5px!important;margin:0!important}
 #debrief:is(#debrief):is(#debrief) .db-profile-head{gap:4px!important;padding:4px 5px!important}
 #debrief:is(#debrief):is(#debrief) #db-profile-label{font-size:10px!important;line-height:1.2!important}
 #debrief:is(#debrief):is(#debrief) #db-profile-height{font-size:12px!important;line-height:1.2!important;white-space:nowrap!important}
 #debrief:is(#debrief):is(#debrief) #db-notes{height:68px!important;min-height:68px!important;resize:vertical}
 #debrief:is(#debrief):is(#debrief) #db-events{padding-left:16px!important}
 #debrief:is(#debrief):is(#debrief) #db-empty{padding:7px!important;margin:0!important}
}
/* METEO: prevent inherited word-by-word splitting and keep short controls intact. */
@media screen and (min-width:0px){
 #weather-panel:is(#weather-panel):is(#weather-panel){font:12px/1.35 system-ui,sans-serif!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(p,label,span,small,b,strong,summary,li,button,div,a,dt,dd,legend){font-family:system-ui,sans-serif!important;font-size:12px!important;line-height:1.35!important;min-width:0;word-break:normal!important;overflow-wrap:normal!important;letter-spacing:normal!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(h2,h3){font-size:14px!important;line-height:1.25!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-heading{box-sizing:border-box!important;height:48px!important;min-height:48px!important;padding:2px 6px!important;margin-bottom:0!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) #weather-close{font-size:24px!important;line-height:1!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .wx-tabs{position:sticky!important;top:48px!important;z-index:3!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;margin:0 0 4px!important;padding:4px 0!important;background:#f3f7fb!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .wx-tabs button{font-size:11px!important;white-space:nowrap!important;padding:4px 2px!important;min-width:0!important;min-height:44px!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(#weather-map-pane,#weather-reports-pane,#weather-minima-pane){padding:0!important;margin:0!important;min-width:0!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-switches{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 8px!important;padding:0 6px!important;margin:4px 0!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(.weather-switches label,.weather-motion-toggle,.wx-inline){display:flex!important;align-items:center!important;gap:6px!important;min-height:44px!important;margin:0!important;padding:2px 0!important;letter-spacing:0!important;box-sizing:border-box}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(input[type=checkbox],input[type=radio]){width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;margin:0!important;padding:0!important;flex:0 0 18px!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-quick{display:grid!important;grid-template-columns:max-content repeat(4,minmax(44px,1fr))!important;align-items:center!important;gap:4px!important;margin:5px 0!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-quick>span{font-size:11px!important;font-weight:650!important;white-space:nowrap!important;margin:0!important;color:#31536a!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-quick button{white-space:nowrap!important;word-break:keep-all!important;min-width:44px!important;min-height:44px!important;padding:3px!important;font-size:12px!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(.weather-settings,.wx-report-filters,#wx-min-form fieldset){gap:5px 7px!important;min-width:0!important;max-width:100%!important;box-sizing:border-box}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-settings{grid-template-columns:minmax(0,1fr)!important;padding:0!important;margin:4px 0!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) label{font-size:11px!important;margin:3px 0!important;min-width:0!important;max-width:100%!important;color:#31536a!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-switches label{font-size:12px!important;white-space:nowrap!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;font-size:16px!important;padding:4px 6px!important;margin:3px 0 0!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) input[type=range]{box-sizing:border-box!important;width:100%!important;min-width:0!important;height:32px!important;padding:0!important;margin:2px 0!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-timebox{padding:7px!important;margin:5px 0!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-timebox strong{font-size:14px!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(.weather-state,#weather-panel-note,.weather-timebox small,.weather-legend-text span,.wx-report small){font-size:11px!important;line-height:1.35!important;margin-block:4px!important;overflow-wrap:break-word!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-playback{display:flex!important;flex-wrap:wrap!important;gap:4px!important;margin:4px 0!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) button{box-sizing:border-box!important;min-width:0!important;min-height:44px!important;padding:5px 7px!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(#weather-prev,#weather-next){min-width:44px!important;flex:0 0 44px!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) #weather-play{flex:1!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-panel-footer{position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin:6px 0 0!important;padding:6px 0 0!important;background:transparent!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .wx-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .wx-report-filters label:has(input[type=search]){grid-column:1/-1!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .wx-report-toolbar{display:flex!important;flex-wrap:wrap!important;gap:4px 8px!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(.wx-values>div,.wx-detail-title,.wx-report header){display:flex!important;flex-wrap:wrap!important;gap:3px 8px!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .wx-values dd{margin-left:auto!important;overflow-wrap:anywhere!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .wx-station-row>span:nth-child(2){min-width:0!important;flex:1!important;white-space:normal!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(.wx-report pre,#wx-report-details pre){font:11px/1.45 ui-monospace,monospace!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) #wx-min-form fieldset{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:6px!important;margin:6px 0!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) #wx-min-form legend{font-size:12px!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) #wx-min-form .weather-playback{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .wx-tabs button{background:#fff!important;color:#23435b!important;opacity:1!important;text-shadow:none!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) :is(.wx-tabs button[aria-selected=true],.weather-quick button[aria-pressed=true]){background:#155a79!important;color:#fff!important;border-color:#155a79!important;opacity:1!important}
}
@media screen and (max-width:350px){
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-quick{grid-template-columns:repeat(4,minmax(44px,1fr))!important}
 #weather-panel:is(#weather-panel):is(#weather-panel) .weather-quick>span{grid-column:1/-1!important}
}
/* This mobile window uses a light surface in both map themes. Pair its text
   and controls with that surface instead of inheriting white night-map ink. */
@media screen and (min-width:0px){
 /* The quick picker also opens a native menu. Give both the selected value
    and its options a complete light palette, including Safari text fill. */
 html body[data-flight-deck] #fd-map-picker select{color-scheme:light;color:#183247!important;-webkit-text-fill-color:#183247!important;background:#eef4f8!important;border-radius:6px!important;opacity:1!important;text-shadow:none!important}
 html body[data-flight-deck] #fd-map-picker select option{color:#183247!important;-webkit-text-fill-color:#183247!important;background:#eef4f8!important;font:500 11px/1.4 system-ui,sans-serif!important}
 html body[data-flight-deck] #fd-map-picker button{color:#fff!important;-webkit-text-fill-color:#fff!important}
 /* Smaller visible label over the original native select: the touch target
    stays 44 px high and the select keeps a 16 px font for iPhone focus. */
 html body[data-flight-deck] #fd-map-picker{box-sizing:border-box!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;gap:0!important;border:0!important;align-items:center!important}
 html body[data-flight-deck] #fd-map-picker[data-basemap-label]::before{content:attr(data-basemap-label);position:absolute;pointer-events:none;left:6px;top:6px;width:calc(100% - 56px);height:32px;box-sizing:border-box;padding:0 18px 0 6px;border-radius:6px;background:#eef4f8;color:#183247;-webkit-text-fill-color:#183247;font:500 11px/32px system-ui,sans-serif;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:none}
 html body[data-flight-deck] #fd-map-picker[data-basemap-label]::after{content:'';pointer-events:none;position:absolute;right:59px;top:18px;width:5px;height:5px;border-right:1.5px solid #183247;border-bottom:1.5px solid #183247;transform:rotate(45deg)}
 html body[data-flight-deck] #fd-map-picker[data-basemap-label] select{position:relative!important;opacity:0!important;height:44px!important;min-height:44px!important;max-height:44px!important;font-size:16px!important;margin:0!important;padding:0!important;border:0!important;cursor:pointer}
 html body[data-flight-deck] #fd-map-picker:has(select:focus-visible)::before{outline:2px solid #76d3f1;outline-offset:1px}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog){--fd-ink:#183247;--fd-panel:#f3f7fb;--fd-edge:#b2c7d6;color-scheme:light;color:#183247!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) :is(label,legend,p,small,span,b,strong,summary,li,output,#layers-source-status){color:#23435b!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) :is(.basemap-option,.layer-switch){color:#23435b!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .basemap-option{background:#fff!important;border-color:#b2c7d6!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .basemap-option:has(:checked){background:#e5f2fc!important;border-color:#1b698c!important;box-shadow:inset 0 0 0 1px #1b698c!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) :is(.basemap-option small,.hint,#layers-source-status){color:#476175!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) :is(.layers-group>summary,.layers-options>summary){background:#e7eef4!important;color:#23435b!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) :is(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){background:#fff!important;color:#183247!important;-webkit-text-fill-color:#183247!important;border-color:#9eb4c4!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) a{color:#1b547a!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .layers-aerial{background:#e8f1f7!important;color:#23435b!important;border-color:#b2c7d6!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .layers-aerial a{background:#155a79!important;color:#fff!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog)>.layers-heading :is(h2,b,span,button){color:#fff!important;-webkit-text-fill-color:#fff!important}
}
@media screen and (min-width:0px){
 /* Compact layer cards share the same content edge under the blue heading. */
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) :is(label,p,small,span,b,strong,summary,button){font-family:system-ui,sans-serif!important;font-size:12px!important;line-height:1.35!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) :is(small,.hint){font-size:11px!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .layers-group{padding:0!important;margin:4px 0!important;border-radius:7px!important;overflow:hidden}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .layers-group-content{padding:0 6px 6px!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) :is(.layers-group,.layers-options,.heli-aerial-options)>summary{min-height:44px!important;box-sizing:border-box;padding:6px 8px!important;margin:0!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .basemap-option{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;box-sizing:border-box;width:100%!important;min-height:48px!important;margin:4px 0!important;padding:6px 8px!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .basemap-option input{width:18px!important;height:18px!important;min-height:18px!important;margin:0!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .basemap-option span{min-width:0;overflow-wrap:break-word!important;word-break:normal!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .layers-aerial{padding:7px!important;margin:0!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .layers-aerial h3{display:none!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) .layer-switch{min-height:44px!important;box-sizing:border-box;margin:4px 0!important;padding:6px!important;gap:7px!important}
 #map-layers-dialog:is(#map-layers-dialog):is(#map-layers-dialog) :is(.layers-country-grid,.layer-actions){grid-template-columns:minmax(0,1fr)!important}
 /* UI only: printed A5 sheets retain their own typography and measurements. */
 #workspace-window:is(#workspace-window):is(#workspace-window) #brief{padding:0!important}
 #workspace-window:is(#workspace-window):is(#workspace-window) #workspace-window-content:has(>#brief){padding:0!important;margin:0!important}
 #bp-root:is(#bp-root):is(#bp-root){margin:0!important;padding:0!important;min-width:0}
 #bp-root:is(#bp-root):is(#bp-root) .bp-heading{display:block!important;margin:0 0 6px!important;padding:0!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-heading>div:first-child{display:none!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-actions button{font:600 11px/1.25 system-ui!important;min-height:44px!important;padding:4px!important;overflow-wrap:normal!important;word-break:normal!important;margin:0!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-status{font:11px/1.35 system-ui!important;padding:6px 8px!important;margin:0 0 6px!important;min-height:0!important;overflow-wrap:break-word}
 #bp-root:is(#bp-root):is(#bp-root) .bp-workspace{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
 #bp-root:is(#bp-root):is(#bp-root) .heli-brief-options{padding:0!important;margin:0!important;border:1px solid #b2c7d6;border-radius:7px;background:#fff;color:#23435b}
 #bp-root:is(#bp-root):is(#bp-root) .heli-brief-options>summary{min-height:44px!important;padding:6px 8px!important;font:600 12px/1.35 system-ui!important;box-sizing:border-box}
 #bp-root:is(#bp-root):is(#bp-root) .bp-options{border:0!important;border-radius:0!important;padding:0!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-options :is(label,p,span,b,small,summary){color:#23435b!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-options :is(label,p,span,b,small,summary,button){font:12px/1.35 system-ui!important;overflow-wrap:break-word!important;word-break:normal!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-options :is(b,summary){font-weight:600!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-options small{font-size:11px!important;color:#476175!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-options form>h2{font-size:13px!important;margin:0!important;padding:8px!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-selectors{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:0 6px 6px!important;gap:3px!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-selector{display:grid!important;grid-template-columns:20px 22px minmax(0,1fr)!important;gap:6px!important;padding:6px!important;min-height:44px!important;box-sizing:border-box}
 #bp-root:is(#bp-root):is(#bp-root) .bp-selector input{width:18px!important;height:18px!important;min-height:18px!important;margin:0!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-number{white-space:nowrap!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-options details{padding:0 8px!important;margin:0!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-options summary{padding:6px 0!important;min-height:44px!important;box-sizing:border-box}
 #bp-root:is(#bp-root):is(#bp-root) .bp-grid{grid-template-columns:minmax(0,1fr)!important;gap:4px!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-options :is(input,select,textarea){box-sizing:border-box;max-width:100%!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-preview-toolbar{position:static!important;padding:0!important;gap:4px!important;min-height:44px!important;margin:0!important}
 #bp-root:is(#bp-root):is(#bp-root) .bp-preview-toolbar span{font:11px/1.3 system-ui!important;min-width:0;overflow-wrap:break-word}
 #bp-root:is(#bp-root):is(#bp-root) .bp-preview-toolbar button{width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;font-size:22px!important}
}
/* Tablet map controls: 1/3 larger, without scaling content windows or phones.
   Both dimensions exclude landscape phones; geometry reads the same scale. */
@media screen and (min-width:600px) and (min-height:600px){
 html body[data-flight-deck]{--heli-control-scale:1.333333333333;--heli-control-size:calc(44px * var(--heli-control-scale));--heli-top:calc(var(--heli-control-size) + var(--heli-header-inset));--heli-chrome:var(--heli-top)}
 html body[data-flight-deck]:is([data-navigation=gps],[data-navigation=simulation]){--heli-chrome:calc(var(--heli-top) + 56px)}
 html body[data-flight-deck] #mobile-shell #heli-mobile-header .ms-toolbar{height:var(--heli-control-size)!important;min-height:var(--heli-control-size)!important;max-height:var(--heli-control-size)!important}
 html body[data-flight-deck] #mobile-shell .ms-toolbar button{min-width:var(--heli-control-size)!important;min-height:var(--heli-control-size)!important;height:var(--heli-control-size)!important;padding:4px!important;font-size:calc(14px * var(--heli-control-scale))!important;white-space:nowrap}
 html body[data-flight-deck] #mobile-shell .ms-toolbar :is(.ms-route,.ms-fly){font-size:calc(.875rem * var(--heli-control-scale))!important}
 html body[data-flight-deck] #mobile-shell .ms-toolbar .heli-toolbar-logo{width:calc(32px * var(--heli-control-scale))!important;height:calc(32px * var(--heli-control-scale))!important}
 html body[data-flight-deck] #mobile-shell .ms-toolbar :is(svg,.md-icon){width:calc(26px * var(--heli-control-scale))!important;height:calc(26px * var(--heli-control-scale))!important}
 html body[data-flight-deck] #mobile-shell .ms-toolbar [data-ms=search] .md-icon{width:calc(28px * var(--heli-control-scale))!important;height:calc(28px * var(--heli-control-scale))!important}
 html body[data-flight-deck] #mobile-shell .ms-toolbar [data-ms=undo] .md-icon{width:calc(22px * var(--heli-control-scale))!important;height:calc(22px * var(--heli-control-scale))!important}
 html body[data-flight-deck] #mobile-shell #heli-mobile-header .ms-instruments{height:56px!important;min-height:56px!important;max-height:56px!important}
 html body[data-flight-deck] #mobile-shell .ms-instruments b{font-size:calc((1rem + 2pt) * var(--heli-control-scale))!important}
 html body[data-flight-deck] #mobile-shell .ms-instruments small{font-size:calc(.6rem * var(--heli-control-scale))!important}
 html body[data-flight-deck] #mobile-shell .ms-tabs button,
 html body[data-flight-deck][data-deck-buttons] #mobile-shell .ms-tabs button{width:var(--heli-control-size)!important;min-width:var(--heli-control-size)!important;max-width:var(--heli-control-size)!important;height:var(--heli-control-size)!important;min-height:var(--heli-control-size)!important;max-height:var(--heli-control-size)!important}
 html body[data-flight-deck] #mobile-shell .ms-tabs button svg{width:calc(23px * var(--heli-control-scale))!important;height:calc(23px * var(--heli-control-scale))!important}
 html body[data-flight-deck] #mobile-shell .ms-tabs button{font-size:calc(11px * var(--heli-control-scale))!important}
 html body[data-flight-deck] .cockpit-north{width:var(--heli-control-size)!important;min-width:var(--heli-control-size)!important;height:var(--heli-control-size)!important;min-height:var(--heli-control-size)!important;font-size:calc(10px * var(--heli-control-scale))!important}
 html body[data-flight-deck] .cockpit-north::before{font-size:calc(20px * var(--heli-control-scale))!important}
 html body[data-flight-deck] #fd-map-picker{height:var(--heli-control-size)!important;min-height:var(--heli-control-size)!important;max-height:var(--heli-control-size)!important;max-width:calc(190px * var(--heli-control-scale))!important}
 html body[data-flight-deck] #fd-map-picker button{width:var(--heli-control-size)!important;min-width:var(--heli-control-size)!important;height:var(--heli-control-size)!important;min-height:var(--heli-control-size)!important;flex:0 0 var(--heli-control-size)!important}
 html body[data-flight-deck] #fd-map-picker button svg{width:calc(18px * var(--heli-control-scale))!important;height:calc(18px * var(--heli-control-scale))!important}
 html body[data-flight-deck] #fd-map-picker[data-basemap-label] select{height:var(--heli-control-size)!important;min-height:var(--heli-control-size)!important;max-height:var(--heli-control-size)!important}
 html body[data-flight-deck] #fd-map-picker[data-basemap-label]::before{left:8px;top:8px;width:calc(100% - 74.6667px);height:42.6667px;padding:0 24px 0 8px;font-size:14.6667px;line-height:42.6667px}
 html body[data-flight-deck] #fd-map-picker[data-basemap-label]::after{right:78.6667px;top:24px;width:6.6667px;height:6.6667px}
}
