/* NAVIS main-site palette; Live control surfaces and type hierarchy. */
/* Map summaries and case entries remain available in the controls. */
body:has(.layer-btn:is([data-target="adsb"],[data-target="ais"],[data-target="rfi"]).active) #navis-mobile-map-status {
  display:none!important;
}
:root {
  --nav-surface:#0a1628;
  --nav-card:#0e1d33;
  --nav-control:#142844;
  --nav-hover:#203957;
  --nav-border:#344863;
  --nav-separator:#263950;
  --nav-ink:#f4f6fa;
  --nav-muted:#a7b3c6;
  --nav-accent:#5bc0eb;
  --nav-type:"Times New Roman",Times,"Batang","바탕",serif;
  --accent:var(--nav-accent);
  --text:var(--nav-ink);
  --muted:var(--nav-muted);
  --border-subtle:var(--nav-border);
}
html body :is(#panel,#layer-panel,#back-to-intro,#navis-mobile-map-status,#navis-mobile-map-dock,.navis-map-settings,#navis-top-view,#cursor-ll,.flatpickr-calendar),
html body :is(#panel,#layer-panel,#navis-mobile-map-status,#navis-mobile-map-dock,.navis-map-settings,.flatpickr-calendar) :is(button,a,input,select,label,span,b,strong,small,p,em,td,th,h2,h3,summary,output) {
  font-family:var(--nav-type)!important;
}
html body #panel.ops-console-active,
html body #panel.ops-console-active[data-navis-sheet-state],
html body :is(#layer-panel,#navis-mobile-map-status,#navis-mobile-map-dock,.navis-map-settings__panel) {
  background:var(--nav-surface)!important;
  color:var(--nav-ink)!important;
  border-color:var(--nav-border)!important;
  border-radius:10px!important;
  box-shadow:0 8px 24px #0004!important;
  backdrop-filter:none!important;
}
html body #layer-panel { border-radius:0!important; }
html body #panel.ops-console-active #ops-console-header {
  background:var(--nav-surface)!important;
  border-color:var(--nav-separator)!important;
  padding:10px 12px 8px!important;
}
html body #panel.ops-console-active #ops-console-header .ops-console-heading>div:first-child {
  height:auto!important; min-height:0!important; display:block!important;
}
html body #panel.ops-console-active .ops-console-title {
  height:auto!important; max-height:none!important;
  color:var(--nav-ink)!important;
  font-size:22px!important; font-weight:700!important; line-height:1.15!important;
  letter-spacing:0!important; white-space:normal!important; overflow:visible!important; text-overflow:clip!important;
}
html body #panel.ops-console-active :is(.ops-console-subtitle,.ops-live-strip,.ops-view-help,.row>label,.ops-location-intelligence__secondary,.ops-location-intelligence__source) {
  color:var(--nav-muted)!important;
}
html body #panel.ops-console-active :is(.ops-console-eyebrow,.ops-section-kicker,.ops-location-intelligence__head,.ops-location-intelligence__head small) {
  color:var(--nav-accent)!important; letter-spacing:.08em!important;
}
html body #panel.ops-console-active :is(.ops-section-kicker,.ops-console-subtitle) { font-size:12px!important; }
html body #panel.ops-console-active :is(.row[data-ops-section],#ops-timezone-switch,#ops-cluster-legend,#ops-jump-layer-controls,.ops-location-intelligence,.ops-jump-cluster-group,.daily-summary,#dashboard-body,.sum-item) {
  background:var(--nav-card)!important; border-color:var(--nav-separator)!important;
  border-radius:8px!important; box-shadow:none!important;
}
html body #panel.ops-console-active :is(#baseTog,#layerTog,#mode-toggle,#ops-language-switch,.ops-view-segments,.date-pill,.time-row,.ops-policy-badge) {
  background:var(--nav-card)!important; border-color:var(--nav-border)!important;
  border-radius:7px!important; box-shadow:none!important;
}
html body #panel.ops-console-active :is(#baseTog button,#layerTog button,#ops-language-switch button,#ops-timezone-switch button,.ops-view-segments button,#mode-toggle span,#ops-track-toggle,.date-nav-btn,.panel-reset-btn,.ops-location-intelligence__actions a) {
  background:var(--nav-control)!important; color:var(--nav-muted)!important;
  border-color:var(--nav-border)!important; border-radius:6px!important;
  box-shadow:none!important; text-shadow:none!important;
}
html body #panel.ops-console-active :is(#baseTog button,#layerTog button,.ops-view-segments button,#ops-track-toggle,#mode-toggle span) { font-size:12px!important; }
html body #panel.ops-console-active :is(.ops-cluster-key b,.ops-jump-key b) { font-size:12px!important; }
html body #panel.ops-console-active :is(#baseTog button.on,#layerTog button.on,#ops-language-switch button.is-active,#ops-timezone-switch button.is-active,#mode-toggle span.is-active) {
  background:var(--nav-accent)!important; color:var(--nav-surface)!important;
  border-color:var(--nav-accent)!important;
}
html body #panel.ops-console-active :is(.ops-view-segments button.is-active,#ops-track-toggle.is-active) {
  background:var(--nav-hover)!important; color:var(--nav-ink)!important; border-color:var(--nav-accent)!important;
}
html body #panel.ops-console-active :is(.ops-policy-badge,#tz-badge) {
  background:var(--nav-control)!important; color:var(--nav-accent)!important;
  border-color:var(--nav-border)!important; border-radius:5px!important;
}
html body #panel.ops-console-active :is(.cluster-list-item,.adsb-item-group,.ops-jump-card,#cluster-summary-card) {
  background:var(--nav-card)!important; border-color:var(--nav-border)!important;
  border-radius:8px!important; box-shadow:none!important;
}
html body #panel.ops-console-active :is(.cluster-list-item,.adsb-item-group,.ops-jump-card):hover { background:var(--nav-hover)!important; }
html body #panel.ops-console-active :is(.ops-cluster-map-context,.ops-jump-cluster-header) {
  background:var(--nav-card)!important; border-color:var(--nav-separator)!important;
}
html body #panel.ops-console-active :is(.ops-location-intelligence__primary,.ops-jump-cluster-header b) { color:var(--nav-ink)!important; }
html body #panel.ops-console-active :is(.ops-location-intelligence__actions a,.ops-cluster-map-context a) {
  background:var(--nav-control)!important; color:var(--nav-accent)!important; border-color:var(--nav-border)!important; border-radius:6px!important;
}
html body :is(#back-to-intro,#navis-top-view,.navis-map-settings__trigger,#panel-toggle,#panel-expand,#reopen,#cursor-ll,#lab-logo-button,.cesium-button,.cesium-geocoder-input) {
  background:var(--nav-surface)!important; color:var(--nav-ink)!important;
  border:1px solid var(--nav-border)!important; border-radius:7px!important;
  box-shadow:none!important; text-shadow:none!important; backdrop-filter:none!important;
}
html body :is(#back-to-intro,#navis-top-view,.navis-map-settings__trigger):hover {
  background:var(--nav-control)!important; border-color:var(--nav-accent)!important;
}
html body #back-to-intro { padding:8px 11px!important; font-size:12px!important; letter-spacing:.035em!important; }
html body :is(#navis-top-view .navis-top-view-icon,.navis-map-settings__gear) { color:var(--nav-accent)!important; }
html body .cesium-viewer-geocoderContainer .cesium-geocoder-input { height:30px!important; font-size:12px!important; color:var(--nav-ink)!important; background:var(--nav-surface)!important; border-color:var(--nav-border)!important; border-radius:7px!important; }
html body .cesium-viewer-geocoderContainer .cesium-geocoder-input::placeholder { color:var(--nav-muted)!important; opacity:1; }
html body .cesium-viewer-geocoderContainer .cesium-geocoder-searchButton { top:0!important; left:2px!important; right:auto!important; width:28px!important; height:30px!important; background:transparent!important; color:var(--nav-muted)!important; }
html body .cesium-geocoder-searchButton svg { top:5px!important; left:5px!important; width:20px!important; height:20px!important; }
html body .navis-map-settings__panel :is(.navis-map-settings__controls,.navis-map-settings__toggle) {
  background:var(--nav-card)!important; border-color:var(--nav-separator)!important; border-radius:8px!important;
}
html body .navis-map-settings__panel :is(button,select) {
  background:var(--nav-control)!important; color:var(--nav-ink)!important;
  border-color:var(--nav-border)!important; border-radius:6px!important; box-shadow:none!important;
}
html body .navis-map-settings__panel .navis-map-settings__presets button.is-active {
  background:var(--nav-accent)!important; color:var(--nav-surface)!important; border-color:var(--nav-accent)!important;
}
html body .navis-map-settings__panel :is(h2,strong) { color:var(--nav-ink)!important; }
html body .navis-map-settings__panel :is(small,.navis-map-settings__hint,.navis-map-settings__footer) { color:var(--nav-muted)!important; }
html body .navis-map-settings__panel :is(output,.navis-map-settings__eyebrow) { color:var(--nav-accent)!important; }
html body .flatpickr-calendar { background:var(--nav-surface)!important; border:1px solid var(--nav-border)!important; border-radius:8px!important; }
html body .flatpickr-calendar :is(.flatpickr-current-month,.flatpickr-current-month input,.flatpickr-monthDropdown-months) { color:var(--nav-ink)!important; }
html body .flatpickr-calendar .flatpickr-monthDropdown-months option { background:var(--nav-surface)!important; color:var(--nav-ink)!important; }
html body .flatpickr-calendar span.flatpickr-weekday { color:var(--nav-muted)!important; }
html body .flatpickr-calendar :is(.flatpickr-prev-month,.flatpickr-next-month),
html body .flatpickr-calendar :is(.flatpickr-prev-month,.flatpickr-next-month) svg { color:var(--nav-muted)!important; fill:var(--nav-muted)!important; }
html body .flatpickr-day { color:var(--nav-ink); }
html body .flatpickr-day.flatpickr-disabled { color:#6b788f; }
html body .flatpickr-day.selected { background:var(--nav-accent)!important; color:var(--nav-surface)!important; border-color:var(--nav-accent)!important; }
@media(max-height:520px) {
  html body .navis-map-settings__panel {
    position:fixed!important; top:8px!important; right:14px!important; bottom:auto!important; margin:0!important;
    max-height:calc(100dvh - 16px)!important;
  }
  html body .flatpickr-calendar.open {
    position:fixed!important; top:8px!important; bottom:auto!important;
    max-height:calc(100dvh - 16px); overflow-y:auto; overscroll-behavior:contain;
  }
  html body .flatpickr-calendar.open::before,
  html body .flatpickr-calendar.open::after { display:none; }
}
html body #panel.ops-console-active :is(#rfi-auto-latest,#navis-archive-auto) {
  background:var(--nav-control)!important; color:var(--nav-accent)!important; border-color:var(--nav-border)!important; border-radius:5px!important;
}
html body #panel.ops-console-active.ops-rfi-mode .row.navis-date-row>label {
  position:absolute!important; width:1px!important; height:1px!important;
  margin:0!important; padding:0!important; overflow:hidden!important;
  clip-path:inset(50%); white-space:nowrap;
}
@media(min-width:769px) and (min-height:521px) {
  html body #panel.ops-console-active { zoom:1!important; --panel-ui-scale:1; width:330px!important; }
  html body #panel.ops-console-active>.panel-body { padding:0 10px 10px!important; }
  html body #panel.ops-console-active #ops-console-header { margin:0 -10px 5px!important; }
  html body #panel.ops-console-active .row[data-ops-section] { padding:8px!important; margin-bottom:7px!important; }
}
@media(max-width:768px) and (orientation:portrait) {
  html body #navis-mobile-map-status {
    min-height:54px!important; padding:9px 11px!important; gap:8px!important;
    border-left:2px solid var(--nav-accent)!important; border-radius:8px!important;
  }
  html body #navis-mobile-map-status b { color:var(--nav-ink)!important; font-size:16px!important; letter-spacing:0!important; }
  html body #navis-mobile-map-status small { color:var(--nav-muted)!important; font-size:11px!important; }
  html body #navis-mobile-map-status i {
    padding:5px 7px!important; color:var(--nav-accent)!important; font-size:10px!important;
    background:var(--nav-control)!important; border-color:var(--nav-border)!important; border-radius:5px!important;
  }
  html body #navis-mobile-map-dock { height:60px!important; padding:5px!important; gap:3px!important; border-radius:10px!important; }
  html body #navis-mobile-map-dock :is(button,a) { color:var(--nav-muted)!important; border-radius:6px!important; }
  html body #navis-mobile-map-dock button.is-active { background:var(--nav-control)!important; color:var(--nav-accent)!important; border-color:var(--nav-border)!important; box-shadow:none!important; }
  html body #navis-mobile-map-dock :is(button,a) b { font-size:11px!important; font-weight:600!important; }
  html body #panel.ops-console-active[data-navis-sheet-state] { border-radius:10px!important; }
  html body #panel.ops-console-active .ops-console-title { font-size:20px!important; }
  html body #panel.ops-console-active>.panel-body { padding:10px!important; }
  html body #panel.ops-console-active :is(#baseTog button,.ops-view-segments button,#ops-track-toggle) { min-height:34px!important; }
}
@media(max-width:420px) {
  html body .cesium-viewer-geocoderContainer { width:30px!important; }
  html body .cesium-viewer-geocoderContainer .cesium-geocoder-input { width:30px!important; min-width:30px!important; padding:0!important; padding-left:0!important; }
  html body .cesium-viewer-geocoderContainer .cesium-geocoder-input::placeholder { opacity:0; }
  html body .cesium-viewer-geocoderContainer:focus-within { width:min(230px,calc(100vw - 100px))!important; }
  html body .cesium-viewer-geocoderContainer:focus-within .cesium-geocoder-input { width:100%!important; padding:0 30px!important; }
  html body .cesium-viewer-geocoderContainer:focus-within .cesium-geocoder-input::placeholder { opacity:1; }
}

/* Compact anomaly controls without reducing the existing type sizes. */
html body #panel.ops-console-active:not(.ops-rfi-mode) {
  padding:0!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode)>.panel-body {
  padding:0 10px 8px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-console-header {
  margin:0 -10px 5px!important;
  padding:7px 10px 6px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) .ops-console-heading { margin-top:3px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-console-header .ops-console-title {
  line-height:1.12!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-console-header .ops-header-tools {
  height:32px!important; min-height:32px!important;
  margin-top:5px!important; gap:4px!important;
  grid-template-columns:minmax(74px,1fr) 104px 68px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-console-header :is(.ops-header-map-mode,.ops-header-map-mode #mode-toggle,.ops-policy-badge,#ops-language-switch) {
  height:32px!important; min-height:32px!important; max-height:32px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-console-header #mode-toggle {
  margin:0!important; padding:2px!important; gap:2px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-console-header #ops-language-switch { padding:2px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-console-header #ops-language-switch button { height:26px!important; padding:2px 4px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-console-header .ops-policy-badge { padding:2px 5px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) .ops-live-strip {
  margin-top:5px!important; padding-top:5px!important; gap:5px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) :is(#ops-map-intro,#ops-time-intro,#ops-cases-intro) { margin:0 0 5px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) .row[data-ops-section] {
  margin:0 0 5px!important; padding:6px 7px!important; gap:3px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) .row.navis-basemap-row>label { margin:0!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #baseTog { margin:0!important; padding:2px!important; gap:2px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #baseTog button { height:30px!important; min-height:30px!important; padding:0 2px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #min-cluster-row label { margin:0!important; gap:2px 6px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #min-cluster-row label::after { margin:0!important; padding:0!important; line-height:1.2!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #min-cluster-val { min-height:20px!important; padding:2px 6px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #min-cluster-row input { margin:0!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-adsb-view-mode {
  margin-top:5px!important; padding-top:6px!important; gap:4px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) .ops-track-heading { margin:0!important; min-height:28px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-track-toggle { height:28px!important; min-height:28px!important; padding:3px 8px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) .ops-view-segments { padding:2px!important; gap:3px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) .ops-view-segments button { height:32px!important; min-height:32px!important; padding:3px 5px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) .ops-view-help { margin:0!important; padding:0!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) :is(#ops-cluster-legend,#ops-jump-layer-controls) {
  margin-top:5px!important; padding:6px 7px!important; gap:4px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) .ops-cluster-legend-row { gap:3px 6px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) :is(.ops-cluster-key,.ops-jump-key) {
  min-height:28px!important; padding:2px 4px!important; gap:5px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-timezone-switch { margin-top:4px!important; padding:3px!important; gap:4px!important; }
@media(pointer:coarse) {
  html body #panel.ops-console-active:not(.ops-rfi-mode) :is(#baseTog button,.ops-view-segments button,#ops-track-toggle) { min-height:34px!important; }
}

/* Match date controls and secondary settings to the same compact rhythm. */
html body #panel.ops-console-active.ops-rfi-mode { padding:0!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) .row.navis-date-row {
  flex-direction:row!important; align-items:center!important;
  height:auto!important; min-height:44px!important; gap:4px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) .row.navis-date-row>label {
  position:absolute!important; width:1px!important; height:1px!important;
  margin:0!important; padding:0!important; overflow:hidden!important;
  clip-path:inset(50%); white-space:nowrap;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) .date-nav-container {
  position:static!important; flex:1 1 0!important; min-width:0!important;
  grid-template-columns:20px minmax(78px,1fr) 20px auto!important;
  gap:3px!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) .date-nav-btn { width:20px!important; height:30px!important; padding:0!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) .date-pill { height:30px!important; min-height:30px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #tz-badge { padding:2px 4px!important; }
html body #panel.ops-console-active:not(.ops-rfi-mode) #navis-archive-auto {
  position:static!important; inset:auto!important; flex:0 0 auto!important;
  height:28px!important; padding:3px 6px!important; margin:0!important;
}
html body #panel.ops-console-active:not(.ops-rfi-mode) #ops-cases-intro { padding-top:6px!important; }
html body .navis-map-settings .navis-map-settings__panel { padding:12px!important; }
html body .navis-map-settings__panel .navis-map-settings__hint { margin:5px 0 8px!important; }
html body .navis-map-settings__panel .navis-map-settings__language { margin-bottom:8px!important; padding:6px 8px!important; gap:8px!important; }
html body .navis-map-settings__panel .navis-map-settings__presets { margin-bottom:8px!important; gap:4px!important; }
html body .navis-map-settings__panel .navis-map-settings__controls { padding:8px!important; gap:8px!important; }
html body .navis-map-settings__panel .navis-map-settings__group { padding-top:7px!important; margin-top:2px!important; }
html body .navis-map-settings__panel .navis-map-settings__range>span { margin-bottom:4px!important; }
html body .navis-map-settings__panel .navis-map-settings__switches { gap:5px!important; margin-top:8px!important; }
html body .navis-map-settings__panel .navis-map-settings__toggle { padding:7px 8px!important; gap:10px!important; }
html body .navis-map-settings__panel .navis-map-settings__footer { margin-top:8px!important; }
