/* Sections must retain their own height when the sheet becomes scrollable. */
html body #panel.ops-console-active[data-navis-domain="ais"] > .panel-body > *,
html body #panel.ops-console-active[data-navis-domain="adsb"] > .panel-body > * {flex-shrink:0!important;}
html body #panel.ops-console-active #ops-cluster-legend,
html body #panel.ops-console-active #ops-jump-layer-controls,
html body #panel.ops-console-active #ops-map-intro {height:auto!important;min-height:min-content!important;position:relative!important;box-sizing:border-box!important;margin-top:8px!important;margin-bottom:8px!important;}
html body #panel.ops-console-active .ops-cluster-legend-row {grid-auto-rows:minmax(32px,auto)!important;}
html body #panel.ops-console-active .ops-cluster-key {min-height:32px!important;}
html body #panel.ops-console-active .row.navis-basemap-row {display:none!important;}
html body #panel.ops-console-active #ops-map-intro > p {display:none!important;}
html body #panel.ops-console-active:is([data-ops-tab="map"],[data-ops-tab="all"]) #min-cluster-row:not([hidden]) {display:grid!important;grid-template-columns:minmax(0,1fr) 68px;align-items:center!important;gap:6px 10px!important;padding:10px 12px!important;min-width:0!important;}
html body #panel.ops-console-active #min-cluster-row > label {width:100%!important;white-space:normal!important;}
#min-cluster-val {display:none!important;}
#min-cluster-row input[type="range"] {display:block!important;grid-column:1/-1;width:100%;min-width:0;height:20px;margin:0;accent-color:#38bdf8;cursor:pointer;}
#min-cluster-row input[type="number"] {box-sizing:border-box;width:68px;min-width:0;height:30px;padding:3px 5px;border:1px solid #345371;border-radius:7px;background:#10243b;color:#e4f5ff;text-align:center;font:600 13px/1.2 system-ui,sans-serif;}
#min-cluster-row input:focus-visible {outline:2px solid #38bdf8;outline-offset:2px;}
#min-cluster-row .navis-min-caption {grid-column:1/-1;display:block;font:11px/1.5 system-ui,sans-serif;color:#95b2c7;}
#min-cluster-row input:disabled {opacity:.5;}
@media(max-width:768px) and (orientation:portrait){
 html body #rfi-panel #side-stack:has(>#panel[data-ops-tab="map"]) {max-height:calc(100dvh - 190px)!important;}
 html body #rfi-panel #side-stack > #panel.ops-console-active[data-ops-tab="map"] {max-height:calc(100dvh - 190px)!important;}
 html body #rfi-panel #side-stack > #panel.ops-console-active[data-ops-tab="map"] > .panel-body {max-height:calc(100dvh - 194px)!important;overflow-y:auto!important;}
}

/* The sticky header owns its inset; a gap above it exposes scrolled content. */
@media(max-width:768px) and (orientation:portrait){
 html body #rfi-panel #panel.ops-console-active > .panel-body {padding-top:0!important;}
 html body #panel.ops-console-active .ops-section-kicker {line-height:1.4!important;}
 html body #panel.ops-console-active #ops-time-intro {flex-shrink:0!important;height:auto!important;min-height:min-content!important;}
}

/* Avoid an empty heading row; mobile map controls still use this host. */
html body #rfi-panel #panel.ops-console-active #ops-map-intro:empty {display:none!important;}
