#panel:not(.ops-console-active) #ops-console-header,
#panel:not(.ops-console-active) #ops-console-nav,
#panel:not(.ops-console-active) #ops-adsb-view-mode,
#panel:not(.ops-console-active) #ops-jump-layer-controls,
#panel:not(.ops-console-active) #ops-cluster-legend,
#panel:not(.ops-console-active) #ops-time-intro,
#panel:not(.ops-console-active) #ops-cases-intro,
#panel:not(.ops-console-active) #ops-map-intro,
#panel:not(.ops-console-active) #ops-map-archive-badge {
  display: none !important;
}

#panel.ops-console-active {
  --ops-serif: "Times New Roman", Times, "Batang", "바탕", serif;
  width: min(372px, calc(100vw - 28px));
  background: linear-gradient(180deg, rgba(8, 15, 31, .98), rgba(6, 12, 26, .97));
  border: 1px solid rgba(99, 179, 237, .25);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46), inset 0 1px rgba(255,255,255,.04);
}

#panel.ops-console-active,
#panel.ops-console-active button,
#panel.ops-console-active input,
#panel.ops-console-active label,
#panel.ops-console-active small,
#panel.ops-console-active b,
#panel.ops-console-active strong,
#panel.ops-console-active em,
#panel.ops-console-active span,
#panel.ops-console-active p,
#panel.ops-console-active td,
#panel.ops-console-active th,
#panel.ops-console-active [style*="monospace"] {
  font-family: var(--ops-serif) !important;
}

#panel.ops-console-active > .panel-body {
  padding: 0 14px 14px;
}

#panel.ops-console-active > .panel-header {
  display: none;
}

/* Desktop operations panels should grow to their content and only consume the
   full viewport when the case list actually needs it. */
@media (min-width: 769px) and (min-height: 521px) {
  html body #panel.ops-console-active.ops-console-active,
  html body #panel.ops-console-active.ops-console-active:not(.expanded),
  html body #panel.ops-console-active.ops-console-active.expanded {
    height: auto !important;
    max-height: calc((100vh - 76px) / var(--panel-ui-scale, .82)) !important;
  }
  html body #panel.ops-console-active.ops-console-active > .panel-body {
    flex: 0 1 auto;
  }
}

#panel.ops-console-active #ops-console-header {
  margin: 0 -14px;
  padding: 15px 16px 12px;
  background:
    radial-gradient(circle at 90% 5%, rgba(34, 211, 238, .13), transparent 42%),
    linear-gradient(135deg, rgba(17, 33, 57, .96), rgba(8, 18, 38, .96));
  border-bottom: 1px solid rgba(125, 211, 252, .17);
}

.ops-console-eyebrow,
.ops-section-kicker {
  color: #38bdf8;
  font: 700 9px/1.3 "Geist", sans-serif;
  letter-spacing: .16em;
}

#panel.ops-console-active .date-pill { position:relative; }
#panel.ops-console-active .ops-date-display {
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#f8fafc;
  font:750 13px/1 "Geist",sans-serif;
  letter-spacing:.045em;
  font-variant-numeric:tabular-nums;
  pointer-events:none;
  text-shadow:0 1px 5px rgba(0,0,0,.85);
}
#panel.ops-console-active .date-pill #date-picker { color:transparent !important; -webkit-text-fill-color:transparent !important; }
#panel.ops-console-active .row:has(#date-picker) {
  align-items:stretch !important;
  width:100% !important;
  min-height:78px !important;
  position:relative !important;
}
#panel.ops-console-active .date-nav-container {
  display:grid !important;
  grid-template-columns:28px minmax(112px,1fr) 28px auto !important;
  align-items:center !important;
  justify-content:stretch !important;
  gap:7px !important;
  position:absolute !important;
  left:10px !important;
  right:10px !important;
  bottom:10px !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
}
#panel.ops-console-active .date-nav-container .date-pill {
  min-width:0 !important;
  width:100% !important;
}
#panel.ops-console-active .date-nav-container #tz-badge {
  margin-left:0 !important;
  justify-self:end;
}


.ops-console-heading {
  display: block;
  margin-top: 5px;
  min-height: 0;
}

.ops-header-tools {
  display: grid;
  grid-template-columns: auto auto minmax(88px,1fr);
  align-items: center;
  gap: 6px;
  margin-top: 11px;
}

#panel.ops-console-active .ops-header-map-mode {
  position: static;
  width: auto;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
}
#panel.ops-console-active .ops-header-map-mode > label {
  display: none;
}
#panel.ops-console-active .ops-header-map-mode #mode-toggle {
  height: 29px;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid rgba(100,144,191,.3);
  border-radius: 10px;
  background: rgba(3,12,27,.62) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}
#panel.ops-console-active .ops-header-map-mode #mode-toggle span {
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #71839c;
  font: 750 9px/1 "Geist",sans-serif;
  transition: color .18s ease,background .18s ease,box-shadow .18s ease;
}
#panel.ops-console-active .ops-header-map-mode #mode-toggle span.is-active {
  color: #06111f;
  background: #45c7f4;
  box-shadow: 0 3px 10px rgba(14,165,233,.25);
}

#ops-language-switch {
  position: static;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(100,144,191,.25);
  border-radius: 8px;
  background: rgba(3,12,27,.46);
}
#ops-language-switch [data-lang] {
  width: 30px;
  height: 22px;
  padding: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667b96;
  font-size: 9px !important;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  text-decoration:none;
}
#ops-language-switch [data-lang].is-active {
  color: #06111f;
  background: #45c7f4;
  box-shadow: 0 3px 10px rgba(14,165,233,.22);
}
#ops-language-switch [data-lang]:not(.is-active):hover { color:#c9d8e8; background:rgba(56,189,248,.07); }

@media (max-width: 520px) {
  .ops-header-tools { grid-template-columns:auto auto minmax(82px,1fr); gap:5px; }
}

.ops-console-title {
  color: #f8fafc;
  font: 600 19px/1.15 "Newsreader", serif;
}

.ops-console-subtitle {
  margin-top: 3px;
  color: #94a3b8;
  font: 500 10px/1.4 "Geist", sans-serif;
}

.ops-policy-badge {
  flex: none;
  padding: 5px 7px;
  border: 1px solid rgba(52, 211, 153, .42);
  border-radius: 999px;
  background: rgba(16, 185, 129, .12);
  color: #6ee7b7;
  font: 750 8px/1 "Geist", sans-serif;
  letter-spacing: .08em;
}

.ops-live-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 9px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(148,163,184,.13);
  color: #94a3b8;
  font: 650 9px/1 "Geist", sans-serif;
  letter-spacing: .04em;
}

.ops-live-strip span:not(:first-child) { color: #dbeafe; }
.ops-live-dot { display:inline-block; width:6px; height:6px; margin-right:5px; border-radius:50%; background:#38bdf8; box-shadow:0 0 10px #38bdf8; }

#ops-console-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 10px 0 14px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 12px;
  background: rgba(2, 8, 23, .7);
}

#panel.ops-console-active #ops-console-nav {
  display: none;
}

#ops-console-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 5px 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #718096;
  cursor: pointer;
}

#ops-console-nav button span { font-size: 16px; line-height: 1; }
#ops-console-nav button b { font: 650 9px/1 "Geist", sans-serif; letter-spacing: .04em; }
#ops-console-nav button:hover { color: #dbeafe; background: rgba(59,130,246,.08); }
#ops-console-nav button.is-active { color: #e0f2fe; background: linear-gradient(180deg, rgba(14,165,233,.24), rgba(37,99,235,.15)); box-shadow: inset 0 0 0 1px rgba(56,189,248,.26); }

#panel.ops-console-active [data-ops-section] { display: none !important; }
#panel.ops-console-active #min-cluster-row[hidden],
#panel.ops-console-active [data-ops-section][hidden] { display: none !important; }
#panel.ops-console-active[data-ops-tab="time"] [data-ops-section="time"],
#panel.ops-console-active[data-ops-tab="layers"] [data-ops-section="layers"],
#panel.ops-console-active[data-ops-tab="cases"] [data-ops-section="cases"],
#panel.ops-console-active[data-ops-tab="map"] [data-ops-section="map"] { display: flex !important; }

#panel.ops-console-active[data-ops-tab="all"] [data-ops-section] { display: flex !important; }
#panel.ops-console-active[data-ops-tab="all"] .ops-empty-row { display: none !important; }

#panel.ops-console-active[data-ops-tab="all"] > .panel-body {
  display: flex;
  flex-direction: column;
}

#panel.ops-console-active[data-ops-tab="all"] #ops-console-header { order: -100; margin-bottom: 12px; }
#panel.ops-console-active[data-ops-tab="all"] #ops-map-intro { order: -90; }
#panel.ops-console-active[data-ops-tab="all"] [data-ops-section="map"] { order: -89; }
#panel.ops-console-active[data-ops-tab="all"] #ops-layer-controls { order: -80; }
#panel.ops-console-active[data-ops-tab="all"] #ops-adsb-view-mode { order: -81; }
#panel.ops-console-active[data-ops-tab="all"] #ops-jump-layer-controls { order: -80; }
#panel.ops-console-active[data-ops-tab="all"] #ops-cluster-legend { order: -80; }
#panel.ops-console-active[data-ops-tab="all"] [data-ops-section="layers"] { order: -79; }
#panel.ops-console-active[data-ops-tab="all"] #ops-time-intro { order: -70; }
#panel.ops-console-active[data-ops-tab="all"] [data-ops-section="time"] { order: -69; }
#panel.ops-console-active[data-ops-tab="all"] #ops-cases-intro { order: -60; }
#panel.ops-console-active[data-ops-tab="all"] [data-ops-section="cases"] { order: -59; }

#panel.ops-console-active[data-ops-tab="all"] #ops-map-intro p,
#panel.ops-console-active[data-ops-tab="all"] #ops-time-intro p,
#panel.ops-console-active[data-ops-tab="all"] #ops-cases-intro p {
  display: none;
}

#panel.ops-console-active[data-ops-tab="all"] #ops-map-intro,
#panel.ops-console-active[data-ops-tab="all"] #ops-time-intro,
#panel.ops-console-active[data-ops-tab="all"] #ops-cases-intro {
  margin-top: 9px;
  margin-bottom: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,.14);
}

#panel.ops-console-active[data-ops-tab="all"] #ops-map-intro {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#panel.ops-console-active[data-ops-tab="all"] #ops-layer-controls {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,.14);
}

#panel.ops-console-active[data-ops-tab="all"] .ops-target-hidden,
#panel.ops-console-active[data-ops-tab="all"] .ops-mode-hidden { display: none !important; }
#panel.ops-console-active[data-ops-tab="all"] #ops-layer-controls.ops-mode-hidden,
#panel.ops-console-active[data-ops-tab="all"] #adsb-legend.ops-mode-hidden { display: none !important; }

#panel.ops-console-active.ops-jump-mode #ops-layer-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#ops-adsb-view-mode {
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,.14);
}

.ops-view-segments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 11px;
  background: rgba(2,8,23,.68);
}

.ops-view-segments button {
  padding: 9px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #718096;
  font: 650 9px/1 "Geist", sans-serif;
  cursor: pointer;
}

.ops-view-segments button span { margin-right: 5px; color: #38bdf8; }
.ops-view-segments button.is-active {
  border-color: rgba(56,189,248,.32);
  background: linear-gradient(180deg, rgba(14,165,233,.24), rgba(37,99,235,.14));
  color: #e0f2fe;
}

.ops-view-help { color:#718096; font:450 8px/1.35 "Geist",sans-serif; }

#ops-jump-layer-controls,
#ops-cluster-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 11px;
  background: rgba(15,23,42,.4);
}
.ops-jump-legend {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}
.ops-jump-key { display:flex; align-items:center; gap:7px; color:#cbd5e1; }
.ops-jump-key b { font:600 9px/1.1 "Geist",sans-serif; }
.ops-jump-key i { display:inline-flex; align-items:center; justify-content:center; width:25px; font-style:normal; }
.ops-plane-before { color:#22d3ee; font-size:16px; transform:rotate(-20deg); text-shadow:0 0 1px #000; }
.ops-plane-after { color:#f472b6; font-size:16px; transform:rotate(-20deg); text-shadow:0 0 1px #000; }
.ops-plane-before.ops-vessel-key,.ops-plane-after.ops-vessel-key { transform:none; }
.ops-jump-line { color:#f5b82e; font-size:18px; text-shadow:0 0 8px rgba(245,184,46,.32); }
.ops-cluster-legend-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:center; gap:7px; }
.ops-cluster-key { display:flex; align-items:center; gap:7px; color:#cbd5e1; }
.ops-cluster-key b { font:600 9px/1.1 "Geist",sans-serif; }
.ops-cluster-key i { position:relative; display:inline-block; flex:0 0 24px; width:24px; height:24px; }
.ops-cluster-zone-key { border:3px solid #ef4444; border-radius:50%; box-shadow:inset 0 0 0 5px rgba(239,68,68,.12); }
.ops-cluster-before-key,.ops-cluster-after-key { display:inline-flex!important; align-items:center; justify-content:center; font-style:normal; font-size:23px; transform:rotate(-20deg); }
.ops-cluster-before-key { color:#3b82f6; }
.ops-cluster-after-key { color:#ff4fd8; }
.ops-cluster-before-key.ops-vessel-key,.ops-cluster-after-key.ops-vessel-key { transform:none; }
.ops-vessel-legend-svg { display:block; width:24px; height:24px; filter:drop-shadow(0 0 1px #000); }
.ops-cluster-jump-key { display:inline-flex!important; align-items:center; justify-content:center; color:#f5b82e; font:800 26px/1 sans-serif; font-style:normal; }

#panel.ops-console-active[data-ops-tab="all"] #ops-layer-controls .ops-section-kicker {
  grid-column: 1 / -1;
}

#panel.ops-console-active[data-ops-tab="all"] .ops-layer-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 68px;
  padding: 8px 5px;
  text-align: center;
}

#panel.ops-console-active[data-ops-tab="all"] .ops-layer-toggle small { display: none; }
#panel.ops-console-active[data-ops-tab="all"] .ops-layer-toggle b { font-size: 8px; }
#panel.ops-console-active[data-ops-tab="all"] .ops-layer-toggle i { font-size: 7px; }

#panel.ops-console-active[data-ops-tab="all"] .row[data-ops-section] {
  margin-bottom: 7px;
  padding: 9px;
}

#panel.ops-console-active[data-ops-tab="all"] #adsb-legend[data-ops-section="layers"] {
  max-height: 170px;
  overflow: auto;
}

#panel.ops-console-active #ops-time-intro,
#panel.ops-console-active #ops-cases-intro,
#panel.ops-console-active #ops-map-intro,
#panel.ops-console-active #ops-layer-controls {
  flex-direction: column;
  width: 100%;
}

#ops-time-intro p,
#ops-cases-intro p,
#ops-map-intro p {
  margin: 5px 0 12px;
  color: #94a3b8;
  font: 450 10px/1.45 "Geist", sans-serif;
}

#panel.ops-console-active .row[data-ops-section] {
  margin: 0 0 10px;
  padding: 11px;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 12px;
  background: rgba(15, 23, 42, .56);
}

#panel.ops-console-active #dashboard-content[data-ops-section="cases"] {
  flex-direction: column;
  padding: 0;
  overflow: visible;
}

#panel.ops-console-active #adsb-top-container {
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

#panel.ops-console-active .cluster-list-item,
#panel.ops-console-active #cluster-summary-card {
  border-color: rgba(248,113,113,.2) !important;
  background: linear-gradient(135deg, rgba(127,29,29,.22), rgba(15,23,42,.82)) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

#ops-layer-controls { gap: 7px; }
#ops-layer-controls .ops-section-kicker { margin-bottom: 3px; }
.ops-layer-toggle {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 11px;
  background: rgba(15,23,42,.5);
  color: #94a3b8;
  text-align: left;
  cursor: pointer;
}
.ops-layer-toggle.is-on { border-color: rgba(56,189,248,.24); color:#e2e8f0; background:rgba(14,165,233,.07); }
.ops-layer-toggle span:nth-child(2) { display:flex; flex-direction:column; gap:2px; }
.ops-layer-toggle b { font: 650 10px/1.2 "Geist",sans-serif; }
.ops-layer-toggle small { color:#718096; font: 450 9px/1.2 "Geist",sans-serif; }
.ops-layer-toggle i { color:#64748b; font: 750 8px/1 "Geist",sans-serif; font-style:normal; }
.ops-layer-toggle.is-on i { color:#38bdf8; }
.ops-layer-symbol { width:18px; height:18px; position:relative; display:block; }
.ops-cluster-symbol { border:2px solid #fb7185; border-radius:50%; box-shadow:inset 0 0 0 4px rgba(251,113,133,.15); }
.ops-member-symbol:before { content:""; position:absolute; inset:5px; border-radius:50%; background:#38bdf8; box-shadow:-6px 4px #60a5fa,6px 4px #c084fc; }
.ops-track-symbol:before { content:""; position:absolute; left:1px; right:1px; top:8px; height:2px; background:linear-gradient(90deg,#38bdf8,#f472b6); transform:rotate(-18deg); }

#panel.ops-console-active #adsb-legend[data-ops-section="layers"] {
  flex-direction: column;
  margin-top: 3px;
  padding: 10px;
  border-radius: 11px;
  background: rgba(15,23,42,.4);
}

#panel.ops-console-active #min-cluster-row label:after {
  content: " · filters both clusters and displayed members";
  color: #38bdf8;
  font-size: 8px;
}

@media (max-width: 768px) {
  #panel.ops-console-active { width: calc(100vw - 12px); }
  #panel.ops-console-active > .panel-body { padding-left: 11px; padding-right: 11px; }
  #panel.ops-console-active #ops-console-header { margin-left: -11px; margin-right: -11px; }
}

/* RFI intelligence charts: scalable bars replace low-information donut charts. */
body #panel.ops-console-active.ops-rfi-mode .dash-distribution-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
  color:#8fa4bf;
  font-size:12px;
  letter-spacing:.025em;
}
body #panel.ops-console-active.ops-rfi-mode .dash-distribution-head > span:first-child {
  color:#e8f4ff;
  font-size:14px;
  font-weight:700;
}
body #panel.ops-console-active.ops-rfi-mode .dash-distribution-head b {
  color:#f8fbff;
  font-size:15px;
}
body #panel.ops-console-active.ops-rfi-mode .sat-bar-list {
  display:grid;
  gap:9px;
}
body #panel.ops-console-active.ops-rfi-mode .sat-bar-row {
  display:grid;
  gap:8px;
  width:100%;
  padding:11px 12px;
  border:1px solid rgba(112,145,183,.17);
  border-radius:11px;
  color:#dcecff;
  background:linear-gradient(140deg,rgba(15,29,51,.88),rgba(6,16,32,.92));
  text-align:left;
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
body #panel.ops-console-active.ops-rfi-mode .sat-bar-row:hover,
body #panel.ops-console-active.ops-rfi-mode .sat-bar-row:focus-visible {
  border-color:rgba(56,189,248,.48);
  transform:translateY(-1px);
  outline:none;
}
body #panel.ops-console-active.ops-rfi-mode .sat-bar-row.is-active {
  border-color:#38bdf8;
  background:linear-gradient(140deg,rgba(10,71,99,.72),rgba(7,27,48,.94));
  box-shadow:0 0 0 1px rgba(56,189,248,.12),0 9px 24px rgba(0,0,0,.18);
}
body #panel.ops-console-active.ops-rfi-mode .sat-bar-head {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
}
body #panel.ops-console-active.ops-rfi-mode .sat-bar-head b { color:#eff8ff; font-size:13px; }
body #panel.ops-console-active.ops-rfi-mode .sat-bar-head span { color:#8fa4bf; white-space:nowrap; }
body #panel.ops-console-active.ops-rfi-mode .sat-bar-head strong { color:#fff; font-variant-numeric:tabular-nums; }
body #panel.ops-console-active.ops-rfi-mode .sat-bar-track {
  display:block;
  width:100%;
  height:10px;
  overflow:hidden;
  border:1px solid rgba(125,162,202,.13);
  border-radius:999px;
  background:rgba(2,8,20,.76);
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);
}
body #panel.ops-console-active.ops-rfi-mode .sat-bar-fill {
  display:block;
  min-width:4px;
  height:100%;
  border-radius:inherit;
  background:var(--sat-color);
  box-shadow:0 0 12px rgba(56,189,248,.28);
  transition:width .28s ease;
}
body #panel.ops-console-active.ops-rfi-mode .dash-empty-state {
  padding:24px 12px;
  border:1px dashed rgba(125,162,202,.22);
  border-radius:12px;
  color:#8194ad;
  text-align:center;
}
body #panel.ops-console-active.ops-rfi-mode .coh-stack-bar {
  display:flex;
  width:100%;
  height:44px;
  overflow:hidden;
  margin:0 0 12px;
  border:1px solid rgba(125,162,202,.22);
  border-radius:12px;
  background:#091426;
  box-shadow:inset 0 1px 4px rgba(0,0,0,.42);
}
body #panel.ops-console-active.ops-rfi-mode .coh-stack-segment {
  width:var(--segment-width,50%);
  min-width:0;
  border:0;
  color:#06111e;
  font:700 11px/1 system-ui,sans-serif;
  cursor:pointer;
  transition:width .3s ease,filter .18s ease,opacity .18s ease;
}
body #panel.ops-console-active.ops-rfi-mode .coh-stack-segment.is-ms { background:linear-gradient(90deg,#0ea5c9,#38bdf8); }
body #panel.ops-console-active.ops-rfi-mode .coh-stack-segment.is-ss { background:linear-gradient(90deg,#f59e0b,#fb923c); }
body #panel.ops-console-active.ops-rfi-mode .coh-stack-segment:hover { filter:brightness(1.12); }
body #panel.ops-console-active.ops-rfi-mode .coh-stack-segment.is-active { box-shadow:inset 0 0 0 3px rgba(255,255,255,.72); }
body #panel.ops-console-active.ops-rfi-mode .coh-stack-segment span { display:block; overflow:hidden; text-overflow:ellipsis; }
body #panel.ops-console-active.ops-rfi-mode .coh-stat-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:13px;
}
body #panel.ops-console-active.ops-rfi-mode .coh-stat-card {
  display:grid;
  grid-template-columns:1fr auto;
  gap:5px 8px;
  padding:12px;
  border:1px solid rgba(125,162,202,.17);
  border-radius:11px;
  color:#dcecff;
  background:rgba(6,16,32,.72);
  text-align:left;
  cursor:pointer;
}
body #panel.ops-console-active.ops-rfi-mode .coh-stat-card:hover,
body #panel.ops-console-active.ops-rfi-mode .coh-stat-card:focus-visible { border-color:rgba(56,189,248,.48); outline:none; }
body #panel.ops-console-active.ops-rfi-mode .coh-stat-title { grid-column:1 / -1; color:#a9bdd5; font-size:12px; font-weight:700; }
body #panel.ops-console-active.ops-rfi-mode .coh-stat-title i { display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; }
body #panel.ops-console-active.ops-rfi-mode .coh-stat-card.is-ms .coh-stat-title i { background:#38bdf8; }
body #panel.ops-console-active.ops-rfi-mode .coh-stat-card.is-ss .coh-stat-title i { background:#fb923c; }
body #panel.ops-console-active.ops-rfi-mode .coh-stat-card strong { color:#f6fbff; font-size:12px; }
body #panel.ops-console-active.ops-rfi-mode .coh-stat-card > b { color:#fff; font-size:14px; font-variant-numeric:tabular-nums; }

@media (max-width:768px) {
  body #panel.ops-console-active.ops-rfi-mode .dash-distribution-head { align-items:flex-start; flex-direction:column; gap:3px; }
  body #panel.ops-console-active.ops-rfi-mode .sat-bar-row { padding:10px; }
}

/* Intelligence charts: one visual system for trend, bar and circular charts. */
#panel.ops-console-active {
  --chart-cyan: #38bdf8;
  --chart-cyan-soft: rgba(56,189,248,.18);
  --chart-indigo: #818cf8;
  --chart-green: #34d399;
  --chart-grid: rgba(148,163,184,.12);
  --chart-surface: rgba(3,10,24,.72);
}

#panel.ops-console-active.ops-rfi-mode #dashboard-content > .daily-summary {
  position: relative;
  overflow: hidden;
  padding: 14px !important;
  border-color: rgba(56,189,248,.17);
  background:
    radial-gradient(circle at 96% 0, rgba(56,189,248,.12), transparent 42%),
    linear-gradient(145deg, rgba(12,28,51,.82), rgba(5,13,29,.72));
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.16);
}

#panel.ops-console-active.ops-rfi-mode .daily-summary .panel-header {
  position: relative;
  margin: -3px -3px 10px !important;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(125,211,252,.14);
  background: none !important;
}

#panel.ops-console-active.ops-rfi-mode .daily-summary .panel-title {
  font-size: 22px !important;
  letter-spacing: -.025em;
}

#panel.ops-console-active.ops-rfi-mode .sum-grid { gap: 7px; }
#panel.ops-console-active.ops-rfi-mode .sum-item {
  position: relative;
  padding: 10px 7px 9px;
  border-color: rgba(125,211,252,.1);
  background: linear-gradient(155deg, rgba(15,31,54,.76), rgba(3,10,23,.64));
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}
#panel.ops-console-active.ops-rfi-mode .sum-item::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103,232,249,.38), transparent);
}

#panel.ops-console-active.ops-rfi-mode #dashboard-content > .panel-header {
  padding: 4px !important;
  border-color: rgba(56,189,248,.17);
  background: linear-gradient(145deg, rgba(12,29,51,.78), rgba(5,13,28,.72));
}

#panel.ops-console-active.ops-rfi-mode #dash-tab-tog {
  gap: 3px;
  padding: 2px;
  border: 0;
  border-radius: 10px;
  background: rgba(2,8,23,.55);
}
#panel.ops-console-active.ops-rfi-mode #dash-tab-tog button {
  border: 0 !important;
  border-radius: 8px !important;
  color: #7f90a8;
  background: transparent !important;
}
#panel.ops-console-active.ops-rfi-mode #dash-tab-tog button.on {
  color: #03111f !important;
  background: linear-gradient(135deg, #67e8f9, #38bdf8) !important;
  box-shadow: 0 5px 14px rgba(14,165,233,.24), inset 0 1px rgba(255,255,255,.38);
}

#panel.ops-console-active.ops-rfi-mode #dashboard-content > #dashboard-body {
  padding: 13px !important;
  border-color: rgba(56,189,248,.14);
  background:
    radial-gradient(circle at 50% 0, rgba(56,189,248,.055), transparent 48%),
    linear-gradient(155deg, rgba(8,20,39,.78), rgba(3,10,23,.76));
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}

#panel.ops-console-active #hex-timeseries-title {
  margin-bottom: 8px;
  color: #9eb0c7;
  font-size: 11px !important;
  letter-spacing: .01em;
}

#panel.ops-console-active .dash-chart {
  height: 136px;
  overflow: visible;
  border: 1px solid rgba(125,211,252,.1);
  border-radius: 11px;
  background:
    linear-gradient(rgba(56,189,248,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.018) 1px, transparent 1px),
    rgba(2,8,23,.45);
  background-size: 100% 25%, 25% 100%, auto;
  box-shadow: inset 0 1px 14px rgba(2,6,23,.44);
}
#panel.ops-console-active #hex-timeseries-chart line { stroke: var(--chart-grid) !important; }
#panel.ops-console-active #hex-timeseries-chart text { fill: #8394aa !important; font-size: 9px; }
#panel.ops-console-active #hex-timeseries-chart polyline {
  stroke: url(#navis-line-gradient) !important;
  stroke-width: 2.6 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#navis-line-glow);
}
#panel.ops-console-active #hex-timeseries-chart .navis-chart-area {
  fill: url(#navis-area-gradient);
  stroke: none;
  pointer-events: none;
}
#panel.ops-console-active #hex-timeseries-chart .hex-point {
  stroke: #071426 !important;
  stroke-width: 1.5 !important;
  transition: r .15s ease, filter .15s ease;
  filter: drop-shadow(0 0 2px rgba(56,189,248,.8));
}
#panel.ops-console-active #hex-timeseries-chart .hex-point:hover,
#panel.ops-console-active #hex-timeseries-chart .hex-point:focus { r: 5px; filter: drop-shadow(0 0 5px rgba(103,232,249,.95)); outline: none; }

#panel.ops-console-active .dash-donut-wrap {
  width: 126px !important;
  height: 126px !important;
  padding: 8px;
  border: 1px solid rgba(125,211,252,.11);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,35,59,.72) 0 43%, rgba(3,10,23,.58) 44% 100%);
  box-shadow: inset 0 0 24px rgba(56,189,248,.055), 0 12px 28px rgba(0,0,0,.22);
}
#panel.ops-console-active .navis-donut-chart { overflow: visible; filter: drop-shadow(0 0 5px rgba(56,189,248,.12)); }
#panel.ops-console-active .navis-donut-chart circle,
#panel.ops-console-active .navis-donut-chart path {
  stroke-linecap: round;
  filter: url(#navis-donut-glow);
  transition: stroke-dasharray .45s cubic-bezier(.22,.8,.3,1), opacity .18s ease;
}
#panel.ops-console-active .navis-donut-chart circle:not(:first-of-type):hover { opacity: .72; }

#panel.ops-console-active #sat-detail-list {
  display: grid;
  gap: 6px;
  margin-top: 13px !important;
}
#panel.ops-console-active #sat-detail-list .sat-item {
  min-height: 38px;
  margin: 0 !important;
  padding: 7px 9px !important;
  border: 1px solid rgba(148,163,184,.09) !important;
  border-left-width: 2px !important;
  border-radius: 9px !important;
  background: rgba(3,10,23,.48) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.02);
}
#panel.ops-console-active #sat-detail-list .sat-item > div:first-child > div {
  width: 70px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: rgba(148,163,184,.12) !important;
}
#panel.ops-console-active #sat-detail-list .sat-item > div:first-child > div > div {
  border-radius: inherit;
  box-shadow: 0 0 7px currentColor;
}

#panel.ops-console-active #hex-detail-list > div:not(:first-child) {
  border: 1px solid rgba(148,163,184,.08);
  background: linear-gradient(145deg, rgba(15,27,47,.7), rgba(4,11,24,.68)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
#panel.ops-console-active #hex-detail-list > div:not(:first-child):hover {
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.2);
  background: linear-gradient(145deg, rgba(16,35,58,.78), rgba(5,14,29,.72)) !important;
}

/* Readability pass: keep the compact layout, but make labels and symbols legible. */
#panel.ops-console-active .ops-console-eyebrow,
#panel.ops-console-active .ops-section-kicker { font-size: 11px; line-height: 1.35; }
#panel.ops-console-active .ops-console-title { font-size: 23px; line-height: 1.08; }
#panel.ops-console-active .ops-console-subtitle { font-size: 12px; line-height: 1.4; }
#panel.ops-console-active .ops-policy-badge { padding: 6px 9px; font-size: 9px; }
#panel.ops-console-active .ops-live-strip { font-size: 10px; }

#panel.ops-console-active #baseTog button { font-size: 12px !important; }
#panel.ops-console-active #mode-toggle { height: 36px; font-size: 20px !important; }
#panel.ops-console-active .row[data-ops-section] .sum-label,
#panel.ops-console-active .row[data-ops-section] > label,
#panel.ops-console-active #min-cluster-row label { font-size: 12px !important; line-height: 1.25; }

#panel.ops-console-active .ops-view-segments button {
  min-height: 40px;
  padding: 10px 7px;
  font-size: 11px;
}
#panel.ops-console-active .ops-view-segments button span { font-size: 14px; }
#panel.ops-console-active .ops-view-help { font-size: 10px; line-height: 1.45; }

#panel.ops-console-active[data-ops-tab="all"] .ops-layer-toggle {
  min-height: 84px;
  gap: 7px;
  padding: 10px 6px;
}
#panel.ops-console-active[data-ops-tab="all"] .ops-layer-toggle b { font-size: 11px; line-height: 1.15; }
#panel.ops-console-active[data-ops-tab="all"] .ops-layer-toggle i { font-size: 10px; }
#panel.ops-console-active .ops-layer-symbol { width: 30px; height: 30px; }
#panel.ops-console-active .ops-member-symbol:before { inset: 8px; box-shadow: -9px 6px #60a5fa, 9px 6px #c084fc; }

#panel.ops-console-active .ops-jump-key b { font-size: 11px; }
#panel.ops-console-active .ops-cluster-key b { font-size: 11px; }
#panel.ops-console-active .ops-plane-before,
#panel.ops-console-active .ops-plane-after { font-size: 28px; }
#panel.ops-console-active .ops-jump-line { font-size: 30px; }

#panel.ops-console-active #adsb-legend,
#panel.ops-console-active #adsb-legend .adsb-item,
#panel.ops-console-active #dashboard-content { font-size: 12px; }

/* The map overlays are fixed policy now; remove redundant controls. */
#panel.ops-console-active #ops-layer-controls { display: none !important; }

/* Jump investigation is organized by qualified anomaly cluster. */
.ops-jump-cluster-group {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(56,189,248,.16);
  border-radius: 12px;
  background: rgba(15,23,42,.55);
}
.ops-jump-cluster-group.is-open { border-color: rgba(56,189,248,.36); background: rgba(14,165,233,.055); }
.ops-jump-cluster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
}
.ops-jump-cluster-header:hover,.ops-jump-cluster-header:focus-visible { background:rgba(56,189,248,.055); }
.ops-jump-cluster-header:hover b { color:#7dd3fc; }
.ops-jump-cluster-header > span:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ops-jump-cluster-header small { color: #38bdf8; font: 750 8px/1 "Geist",sans-serif; letter-spacing: .1em; }
.ops-jump-cluster-header b { color: #f8fafc; font: 750 14px/1.1 "Geist",sans-serif; }
.ops-jump-cluster-header em { color: #64748b; font: 500 9px/1.1 monospace; font-style: normal; }
.ops-jump-cluster-header .ops-cluster-location,
#panel.ops-console-active .cluster-list-item .ops-cluster-location {
  color: #7dd3fc;
  font: 600 9px/1.2 "Geist",sans-serif;
  letter-spacing: .01em;
}
#panel.ops-console-active .cluster-list-item .ops-cluster-location { margin: 1px 0 5px; }
.ops-jump-cluster-stats { display: grid; grid-template-columns: auto 18px; gap: 4px 8px; align-items: center; justify-items: end; }
.ops-jump-cluster-stats strong { color: #93c5fd; font: 750 8px/1 "Geist",sans-serif; }
.ops-jump-cluster-stats i { grid-column: 2; grid-row: 1 / span 2; color: #94a3b8; font: 700 17px/1 sans-serif; font-style: normal; transition: transform .2s; }
.ops-jump-cluster-group.is-open .ops-jump-cluster-stats i { transform: rotate(180deg); }
.ops-cluster-map-context {
  margin: 0 12px;
  padding: 10px 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(125,211,252,.11);
}
.ops-cluster-map-copy { min-width:0; display:grid; gap:5px; }
.ops-cluster-map-copy > small { color:#526985; font:800 7px/1 "Geist",sans-serif; letter-spacing:.14em; }
.ops-cluster-map-copy > span { min-width:0; display:flex; align-items:center; gap:6px; }
.ops-cluster-map-context b { flex:none; color:#38bdf8; font-size:11px; line-height:1; }
.ops-cluster-map-context em { min-width:0; overflow:hidden; color:#a7b8cd; font:590 9px/1.25 "Geist",sans-serif; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.ops-cluster-map-context a { flex:none; height:27px; padding:0 8px; display:inline-flex; align-items:center; gap:5px; border:0; border-radius:7px; background:rgba(56,189,248,.08); color:#67cdf6; font:800 8px/1 "Geist",sans-serif; letter-spacing:.06em; text-decoration:none; }
.ops-cluster-map-context a span { font-size:11px; transform:translateY(-1px); }
.ops-cluster-map-context a:hover,.ops-cluster-map-context a:focus-visible { color:#e0f2fe; background:rgba(56,189,248,.16); }
.ops-jump-cluster-group.is-open .ops-cluster-map-context { border-top-color:rgba(56,189,248,.2); }
.ops-jump-cluster-members { display: none; padding: 0 9px 2px; }
.ops-jump-cluster-group.is-open .ops-jump-cluster-members { display: block; }
.ops-jump-cluster-members .adsb-item-group { margin-bottom: 8px !important; }
.ops-jump-empty { padding: 18px 12px; border: 1px dashed rgba(148,163,184,.18); border-radius: 10px; color: #64748b; text-align: center; }

/* Keep long historical archives useful without turning the panel into a date wall. */
#panel.ops-console-active .ops-history-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px !important;
}
#panel.ops-console-active .ops-history-hidden { display: none !important; }
.ops-history-toggle {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(56,189,248,.38);
  border-radius: 999px;
  background: rgba(14,165,233,.08);
  color: #7dd3fc;
  font: 700 9px/1 "Geist", sans-serif;
  cursor: pointer;
}
.ops-history-toggle:hover { background: rgba(14,165,233,.16); color: #e0f2fe; }

#panel.ops-console-active .ops-history-card-header { padding: 13px 14px !important; }
#panel.ops-console-active .ops-history-card-left { gap: 11px !important; }
#panel.ops-console-active .ops-history-card-left > span:first-child { font-size: 19px !important; }
#panel.ops-console-active .ops-history-date-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
#panel.ops-console-active .ops-history-date-copy > span {
  font-size: 15px !important;
  line-height: 1.1;
}
#panel.ops-console-active .ops-history-date-copy > div {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #60a5fa !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: .02em;
  text-transform: uppercase;
}
#panel.ops-console-active .ops-history-card-right { margin-left: auto; }
#panel.ops-console-active .ops-history-card-right .toggle-icon { font-size: 14px !important; }

/* Shared console language: LEO/RFI uses the same hierarchy as ADS-B and AIS. */
#panel.ops-console-active.ops-rfi-mode .ops-policy-badge {
  border-color: rgba(56,189,248,.42);
  background: rgba(14,165,233,.12);
  color: #7dd3fc;
}

#panel.ops-console-active.ops-rfi-mode .ops-live-strip {
  gap: 6px;
  font-size: 9px;
  letter-spacing: .02em;
}

#panel.ops-console-active #baseTog {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}

#panel.ops-console-active #baseTog button {
  width: 100%;
  min-width: 0;
  padding-inline: 4px !important;
  font-size: 9px !important;
  letter-spacing: 0;
}

#panel.ops-console-active.ops-rfi-mode #ops-adsb-view-mode {
  margin-top: 10px;
  padding-top: 10px;
}

#panel.ops-console-active.ops-rfi-mode #ops-adsb-view-mode .ops-view-segments {
  display: none;
}

#panel.ops-console-active.ops-rfi-mode #ops-adsb-view-mode .ops-view-help {
  display: block;
  padding: 0 1px;
  color: #94a3b8;
}

#panel.ops-console-active.ops-rfi-mode #hexbin-legend,
#panel.ops-console-active.ops-rfi-mode #raw-legend {
  order: -79;
  width: 100%;
  margin: 0 0 8px;
  padding: 11px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 12px;
  background: rgba(15,23,42,.56);
}

#panel.ops-console-active.ops-rfi-mode #hexbin-legend .bar,
#panel.ops-console-active.ops-rfi-mode #raw-legend .bar {
  height: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(2,6,23,.45);
}

#panel.ops-console-active.ops-rfi-mode #hexbin-legend .unit,
#panel.ops-console-active.ops-rfi-mode #raw-legend .unit {
  margin: 7px 0;
  color: #94a3b8;
  font-size: 11px;
}

#panel.ops-console-active.ops-rfi-mode #hexbin-legend .hexbin-status {
  padding-top: 7px;
  border-top: 1px solid rgba(148,163,184,.13);
}

#panel.ops-console-active.ops-rfi-mode .rfi-click-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(56,189,248,.25);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(14,165,233,.13), rgba(8,47,73,.08));
  color: #e0f2fe;
}

#panel.ops-console-active.ops-rfi-mode .rfi-click-hint__icon {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: rgba(56,189,248,.16);
  color: #38bdf8;
  font: 700 18px/1 system-ui, sans-serif;
}

#panel.ops-console-active.ops-rfi-mode .rfi-click-hint b,
#panel.ops-console-active.ops-rfi-mode .rfi-click-hint small {
  display: block;
}

#panel.ops-console-active.ops-rfi-mode .rfi-click-hint b {
  margin-bottom: 2px;
  color: #7dd3fc;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#panel.ops-console-active.ops-rfi-mode .rfi-click-hint small {
  color: #a8bdd4;
  font-size: 10px;
  line-height: 1.35;
}

#panel.ops-console-active.ops-rfi-mode .time-row {
  padding: 11px 12px 13px !important;
  border-color: rgba(148,163,184,.13) !important;
  background: rgba(15,23,42,.56) !important;
}

#panel.ops-console-active.ops-rfi-mode #dashboard-content[data-ops-section="cases"] {
  gap: 9px;
}

#panel.ops-console-active.ops-rfi-mode #dashboard-content > .daily-summary,
#panel.ops-console-active.ops-rfi-mode #dashboard-content > .panel-header,
#panel.ops-console-active.ops-rfi-mode #dashboard-content > #dashboard-body {
  width: 100%;
  margin: 0 !important;
  padding: 11px;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 12px;
  background: rgba(15,23,42,.56);
}

#panel.ops-console-active.ops-rfi-mode #dashboard-content > .panel-divider {
  display: none;
}

#panel.ops-console-active.ops-rfi-mode .daily-summary .panel-title,
#panel.ops-console-active.ops-rfi-mode #dashboard-body h3,
#panel.ops-console-active.ops-rfi-mode #dashboard-body h4 {
  color: #f8fafc;
}

#panel.ops-console-active.ops-rfi-mode .daily-summary .panel-title {
  font-size: 21px;
  line-height: 1.1;
}

#panel.ops-console-active.ops-rfi-mode .sum-grid {
  gap: 8px;
  margin-top: 10px;
}

#panel.ops-console-active.ops-rfi-mode .sum-item {
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid rgba(148,163,184,.1);
  border-radius: 9px;
  background: rgba(2,8,23,.34);
}

#panel.ops-console-active.ops-rfi-mode .sum-label {
  font-size: 9px !important;
  letter-spacing: .04em;
}

#panel.ops-console-active.ops-rfi-mode .sum-value {
  margin-top: 4px;
  font-size: 16px;
}

#panel.ops-console-active.ops-rfi-mode #dash-tab-tog {
  flex: 1 1 auto;
}

#panel.ops-console-active.ops-rfi-mode #dash-tab-tog button {
  min-height: 30px;
  font-size: 10px !important;
}

#panel.ops-console-active.ops-rfi-mode .panel-reset-btn {
  min-height: 28px;
  padding: 4px 9px;
}

#panel.ops-console-active.ops-rfi-mode .date-nav-container {
  width: 100%;
}

#panel.ops-console-active.ops-rfi-mode .date-pill {
  min-height: 34px;
  background: rgba(2,8,23,.5);
  border-color: rgba(148,163,184,.22);
  box-shadow: none;
}

#panel.ops-console-active.ops-rfi-mode .date-nav-btn {
  width: 32px;
  height: 32px;
}

/* 2026 console refinement: quieter surfaces, clearer hierarchy. */
#panel.ops-console-active {
  border-color: rgba(125,211,252,.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(14,165,233,.055), transparent 32%),
    linear-gradient(180deg, rgba(7,14,29,.985), rgba(4,10,23,.98));
  box-shadow: 0 26px 80px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.035);
}

#panel.ops-console-active #ops-console-header {
  padding: 17px 17px 13px;
  background:
    radial-gradient(circle at 92% -8%, rgba(45,212,191,.12), transparent 38%),
    radial-gradient(circle at 12% 0, rgba(56,189,248,.1), transparent 44%),
    linear-gradient(145deg, rgba(15,36,61,.94), rgba(7,18,38,.97));
}

#panel.ops-console-active .ops-console-eyebrow {
  color: #67e8f9;
  letter-spacing: .14em;
}

#panel.ops-console-active .ops-console-title {
  max-width: none;
  font-size: 22px !important;
  line-height: 1.05 !important;
  letter-spacing: -.018em;
  text-wrap: balance;
}

#panel.ops-console-active .ops-policy-badge {
  min-height: 26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 6px 18px rgba(2,6,23,.22);
}

#panel.ops-console-active .ops-live-strip {
  align-items: center;
  padding-top: 10px;
}

#panel.ops-console-active .ops-section-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4fd1ff;
  letter-spacing: .14em;
}

#panel.ops-console-active .ops-section-kicker::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 9px rgba(56,189,248,.8);
}

#panel.ops-console-active[data-ops-tab="all"] #ops-map-intro,
#panel.ops-console-active[data-ops-tab="all"] #ops-time-intro,
#panel.ops-console-active[data-ops-tab="all"] #ops-cases-intro {
  margin-top: 14px;
  margin-bottom: 8px;
  padding-top: 13px;
  border-color: rgba(148,163,184,.1);
}

#panel.ops-console-active[data-ops-tab="all"] #ops-map-intro {
  margin-top: 0;
  padding-top: 0;
}

#panel.ops-console-active .row[data-ops-section] {
  border-color: rgba(148,163,184,.12);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(17,27,48,.66), rgba(8,16,33,.54));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

#panel.ops-console-active .row[data-ops-section]:hover {
  border-color: rgba(125,211,252,.18);
}

#panel.ops-console-active #baseTog {
  padding: 3px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 999px;
  background: rgba(2,8,23,.55);
}

#panel.ops-console-active #baseTog button {
  height: 33px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #94a3b8 !important;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

#panel.ops-console-active #baseTog button.on {
  color: #03111f !important;
  background: linear-gradient(135deg, #67e8f9, #38bdf8) !important;
  box-shadow: 0 5px 15px rgba(14,165,233,.26), inset 0 1px rgba(255,255,255,.38);
}

#panel.ops-console-active #mode-toggle {
  width: 112px !important;
  min-width: 112px !important;
  height: 48px !important;
  padding: 4px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px !important;
  border-color: rgba(148,163,184,.14) !important;
  border-radius: 14px !important;
  background: rgba(2,8,23,.44) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

#panel.ops-console-active .ops-header-map-mode #mode-toggle span {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
}

#panel.ops-console-active .ops-header-map-mode #mode-toggle span.is-active {
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
  box-shadow: 0 4px 13px rgba(14,165,233,.3), inset 0 1px rgba(255,255,255,.4);
}

#panel.ops-console-active .ops-view-segments {
  gap: 3px;
  padding: 3px;
  border-color: rgba(148,163,184,.12);
  border-radius: 13px;
  background: rgba(2,8,23,.58);
}

#panel.ops-console-active .ops-view-segments button {
  border-radius: 10px;
  color: #64748b;
}

#panel.ops-console-active .ops-view-segments button.is-active {
  border-color: rgba(56,189,248,.28);
  background: linear-gradient(135deg, rgba(14,165,233,.25), rgba(8,47,73,.32));
  box-shadow: inset 0 1px rgba(255,255,255,.045), 0 5px 16px rgba(2,8,23,.22);
  color: #f0f9ff;
}

#panel.ops-console-active .ops-view-help {
  padding-left: 2px;
  color: #64748b;
}

#panel.ops-console-active #ops-cluster-legend,
#panel.ops-console-active #ops-jump-layer-controls {
  padding: 11px 12px 12px;
  border-color: rgba(148,163,184,.13);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(15,25,45,.66), rgba(6,14,29,.52));
}

#panel.ops-console-active .ops-cluster-legend-row {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 5px 8px;
}

#panel.ops-console-active .ops-cluster-key,
#panel.ops-console-active .ops-jump-key {
  min-width: 0;
  padding: 6px 7px;
  border-radius: 9px;
  background: rgba(2,8,23,.3);
}

#panel.ops-console-active .ops-cluster-key b,
#panel.ops-console-active .ops-jump-key b {
  color: #dbe7f4;
  line-height: 1.15;
}

#panel.ops-console-active .ops-jump-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 6px;
}

#panel.ops-console-active .ops-jump-key {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

#panel.ops-console-active #min-cluster-row {
  padding: 11px 12px 12px;
  border-color: rgba(148,163,184,.11);
  background: rgba(9,18,35,.56);
}

#panel.ops-console-active #min-cluster-row label {
  align-items: center;
  flex-wrap: wrap;
}

#panel.ops-console-active #min-cluster-val {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 999px;
  background: rgba(14,165,233,.08);
  color: #7dd3fc;
}

#panel.ops-console-active #min-cluster-row label::after {
  display: block;
  flex: 0 0 100%;
  margin-top: 2px;
  letter-spacing: .03em;
}

#panel.ops-console-active .date-nav-container {
  gap: 7px;
}

#panel.ops-console-active .date-pill {
  min-height: 38px;
  border-color: rgba(148,163,184,.15);
  background: rgba(2,8,23,.48);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

#panel.ops-console-active .date-nav-btn {
  width: 32px;
  height: 32px;
  color: #7c8ca5;
}

#panel.ops-console-active .date-nav-btn:hover {
  background: rgba(56,189,248,.1);
  color: #7dd3fc;
}

#panel.ops-console-active #tz-badge {
  padding: 3px 7px !important;
  border-radius: 999px !important;
  background: rgba(37,99,235,.14) !important;
}

#panel.ops-console-active #adsb-top-container > div[style*="dashed"],
#panel.ops-console-active .ops-jump-empty {
  position: relative;
  min-height: 84px;
  padding: 28px 18px 18px !important;
  border: 1px solid rgba(56,189,248,.12) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 50% 0, rgba(56,189,248,.075), transparent 55%),
    rgba(5,12,26,.44) !important;
  color: #708198 !important;
}

#panel.ops-console-active #adsb-top-container > div[style*="dashed"]::before,
#panel.ops-console-active .ops-jump-empty::before {
  content: "· · ·";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #38bdf8;
  font: 700 10px/1 "Geist",sans-serif;
  letter-spacing: .25em;
  opacity: .55;
}

#panel.ops-console-active .cluster-list-item,
#panel.ops-console-active #cluster-summary-card {
  border-radius: 14px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.025);
}

#ops-map-archive-badge {
  position: fixed;
  left: calc(50% + var(--sidebar-live-width, 0px) / 2);
  bottom: 18px;
  z-index: 520;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 999px;
  background: rgba(5,12,28,.88);
  box-shadow: 0 10px 28px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  color: #cbd5e1;
  pointer-events: none;
  transform: translateX(-50%);
}
#ops-map-archive-badge.is-visible { display: flex; }
#ops-map-archive-badge span { color: #38bdf8; font: 750 9px/1 "Geist", sans-serif; letter-spacing: .12em; }
#ops-map-archive-badge b { color: #f8fafc; font: 700 10px/1 "Geist", sans-serif; white-space: nowrap; }
#ops-map-archive-badge i { width: 3px; height: 3px; border-radius: 50%; background: #475569; }

@media (max-width: 768px) {
  #ops-map-archive-badge { left: 50%; bottom: 10px; gap: 7px; padding: 8px 10px; }
  #ops-map-archive-badge span { display: none; }
}

/* The calendar is the archive: daily anomaly counts live directly below each date. */
#panel.ops-console-active .ops-history-replaced,
#ops-map-archive-badge { display: none !important; }

.flatpickr-calendar.ops-anomaly-calendar {
  overflow: hidden;
  border: 1px solid rgba(56,189,248,.28) !important;
  border-radius: 14px !important;
  background: #081225 !important;
  box-shadow: 0 20px 55px rgba(0,0,0,.58), inset 0 1px rgba(255,255,255,.04) !important;
  color: #e2e8f0 !important;
}
.flatpickr-calendar.ops-anomaly-calendar.arrowTop:before { border-bottom-color: rgba(56,189,248,.28) !important; }
.flatpickr-calendar.ops-anomaly-calendar.arrowTop:after { border-bottom-color: #081225 !important; }
.flatpickr-calendar.ops-anomaly-calendar.arrowBottom:before { border-top-color: rgba(56,189,248,.28) !important; }
.flatpickr-calendar.ops-anomaly-calendar.arrowBottom:after { border-top-color: #081225 !important; }
.ops-anomaly-calendar .flatpickr-months,
.ops-anomaly-calendar .flatpickr-month,
.ops-anomaly-calendar .flatpickr-weekdays,
.ops-anomaly-calendar .flatpickr-weekday,
.ops-anomaly-calendar .flatpickr-days,
.ops-anomaly-calendar .dayContainer {
  background: #081225 !important;
}
.ops-anomaly-calendar .flatpickr-months {
  padding: 8px 8px 2px;
  border-bottom: 1px solid rgba(148,163,184,.1);
}
.ops-anomaly-calendar .flatpickr-current-month,
.ops-anomaly-calendar .flatpickr-current-month input.cur-year,
.ops-anomaly-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
  color: #f8fafc !important;
  fill: #f8fafc !important;
  background: transparent !important;
  font-weight: 650 !important;
}
.ops-anomaly-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option {
  background: #081225;
  color: #f8fafc;
}
.ops-anomaly-calendar .flatpickr-prev-month,
.ops-anomaly-calendar .flatpickr-next-month { top: 8px !important; color: #94a3b8 !important; fill: #94a3b8 !important; }
.ops-anomaly-calendar .flatpickr-prev-month:hover svg,
.ops-anomaly-calendar .flatpickr-next-month:hover svg { fill: #38bdf8 !important; }
.ops-anomaly-calendar .flatpickr-weekdays { padding-top: 5px; }
.ops-anomaly-calendar span.flatpickr-weekday {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: .04em;
}
.ops-anomaly-calendar .flatpickr-day {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 48px !important;
  max-width: 14.285714% !important;
  padding: 5px 1px 4px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
.ops-anomaly-calendar .flatpickr-day:hover,
.ops-anomaly-calendar .flatpickr-day:focus {
  border-color: rgba(56,189,248,.2) !important;
  background: rgba(56,189,248,.09) !important;
}
.ops-anomaly-calendar .flatpickr-day.ops-has-count { background: rgba(15,23,42,.58); }
.ops-anomaly-calendar .flatpickr-day.today { border-color: rgba(56,189,248,.42) !important; }
.ops-anomaly-calendar .flatpickr-day.selected,
.ops-anomaly-calendar .flatpickr-day.selected:hover,
.ops-anomaly-calendar .flatpickr-day.selected:focus {
  border-color: #38bdf8 !important;
  background: linear-gradient(145deg,#0ea5e9,#2563eb) !important;
  color: #fff !important;
  box-shadow: 0 5px 16px rgba(14,165,233,.3);
}
.ops-anomaly-calendar .flatpickr-day.prevMonthDay,
.ops-anomaly-calendar .flatpickr-day.nextMonthDay { color: #334155 !important; }
.ops-anomaly-calendar .flatpickr-day.flatpickr-disabled,
.ops-anomaly-calendar .flatpickr-day.flatpickr-disabled:hover {
  background: transparent !important;
  color: #263247 !important;
  opacity: .6;
}
.ops-calendar-count {
  color: #38bdf8;
  font: 800 8px/1 "Geist", sans-serif;
  letter-spacing: .035em;
  white-space: nowrap;
  pointer-events: none;
}
.flatpickr-day.selected .ops-calendar-count { color: #e0f2fe; }
.flatpickr-day.flatpickr-disabled .ops-calendar-count { color: #334155; }

/* Shared LEO / ADS-B / AIS map quality settings */
:root {
  --navis-map-brightness: 1;
  --navis-map-contrast: 1;
  --navis-map-saturation: 1;
  --navis-map-sharpness: 0;
}
#map .leaflet-tile-pane,
#cesiumContainer canvas {
  filter: none;
}
html.navis-map-filter-active #map .leaflet-tile-pane,
html.navis-map-filter-active #cesiumContainer canvas {
  filter: brightness(var(--navis-map-brightness)) contrast(var(--navis-map-contrast)) saturate(var(--navis-map-saturation)) drop-shadow(0 0 calc(var(--navis-map-sharpness) * 1px) rgba(255,255,255,.22));
}
.navis-map-settings {
  position: fixed;
  z-index: 13000;
  top: 108px !important;
  right: 14px !important;
  color: #eaf2ff;
  font-family: Inter, "Segoe UI", sans-serif;
}

/* Camera recovery and collision-free top-right controls. */
#cursor-ll {
  top: 64px !important;
  right: 14px !important;
  z-index: 12990 !important;
}
#navis-top-view {
  position: fixed;
  z-index: 13000;
  top: 108px;
  right: 140px;
  width: 126px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(120,159,211,.38);
  border-radius: 13px;
  background: linear-gradient(145deg,rgba(14,29,52,.94),rgba(7,16,33,.94));
  box-shadow: 0 12px 34px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.05);
  color: #eaf2ff;
  font: 750 12px/1 Inter,"Segoe UI",sans-serif;
  letter-spacing: .05em;
  cursor: pointer;
  backdrop-filter: blur(14px);
}
#navis-top-view span { color:#38bdf8; font-size:20px; line-height:1; }
#navis-top-view:hover,
#navis-top-view:focus-visible { border-color:#38bdf8; background:#0b2945; }

.ops-location-intelligence {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(56,189,248,.25);
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(8,31,53,.78),rgba(6,15,31,.72));
  cursor: default;
}
.ops-location-intelligence__head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.ops-location-intelligence__head span { color:#38bdf8; font-size:9px; font-weight:850; letter-spacing:.14em; }
.ops-location-intelligence__head small { color:#7f93af; font:650 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:nowrap; }
.ops-location-intelligence__primary { display:block; color:#f3f8ff; font-size:12px; line-height:1.35; }
.ops-location-intelligence__secondary { margin:4px 0 10px; color:#a9b8cc; font-size:10px; line-height:1.45; }
.ops-location-intelligence__actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.ops-location-intelligence__actions a { min-height:32px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(56,189,248,.3); border-radius:8px; background:rgba(14,116,144,.14); color:#7dd3fc; font-size:10px; font-weight:750; text-decoration:none; }
.ops-location-intelligence__actions a:hover,.ops-location-intelligence__actions a:focus-visible { border-color:#38bdf8; background:rgba(14,116,144,.28); color:#e0f2fe; }
.ops-location-intelligence__source { display:block; margin-top:8px; color:#5f728e; font-size:8px; text-align:right; }

#no-data-popup .popup-content,
#no-data-popup #no-data-msg,
.navis-map-settings,
.navis-map-settings * {
  font-family: "Times New Roman", Times, serif !important;
}
#no-data-popup .popup-content {
  position: relative;
  width: min(360px, calc(100vw - 32px));
  min-height: 112px;
  padding: 18px 20px !important;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(103,232,249,.3) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 8% 18%,rgba(34,211,238,.14),transparent 36%),
    linear-gradient(145deg,rgba(9,25,45,.97),rgba(5,13,28,.98)) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.05) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
  text-align: left !important;
}
#no-data-popup .popup-content::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,transparent 46%,rgba(125,211,252,.055) 50%,transparent 54%);
  transform: translateX(-100%);
  animation: navis-clear-sweep 2.8s ease-out both;
}
#no-data-popup .no-data-signal {
  position: relative;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(103,232,249,.45);
  border-radius: 50%;
  background:
    radial-gradient(circle,rgba(52,211,153,.96) 0 3px,transparent 4px),
    radial-gradient(circle,transparent 0 16px,rgba(56,189,248,.16) 17px 18px,transparent 19px),
    rgba(8,47,73,.32);
  box-shadow: inset 0 0 22px rgba(34,211,238,.1), 0 0 24px rgba(34,211,238,.09);
}
#no-data-popup .no-data-signal::before,
#no-data-popup .no-data-signal::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(125,211,252,.28);
  transform: translate(-50%,-50%);
}
#no-data-popup .no-data-signal::before { width: 1px; height: 44px; }
#no-data-popup .no-data-signal::after { width: 44px; height: 1px; }
#no-data-popup .no-data-signal span {
  position: absolute;
  inset: 8px;
  border-top: 2px solid #67e8f9;
  border-right: 2px solid transparent;
  border-radius: 50%;
  opacity: .78;
  animation: navis-radar-turn 2.2s linear infinite;
}
#no-data-popup .no-data-copy { min-width: 0; display: grid; gap: 6px; }
#no-data-popup .no-data-eyebrow {
  color: #67e8f9;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .18em;
}
#no-data-popup #no-data-msg { display: grid; gap: 5px; letter-spacing: 0; }
#no-data-popup #no-data-msg strong {
  color: #f1f5f9;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
#no-data-popup #no-data-msg small {
  color: #8fa4bd;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
#no-data-popup #no-data-msg time {
  color: #6ee7b7;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@keyframes navis-radar-turn { to { transform: rotate(360deg); } }
@keyframes navis-clear-sweep { 0% { transform:translateX(-100%); } 70%,100% { transform:translateX(100%); } }
@media (max-width: 520px) {
  #no-data-popup { top: 42%; }
  #no-data-popup .popup-content {
    width: min(330px, calc(100vw - 28px));
    min-height: 96px;
    grid-template-columns: 50px minmax(0,1fr);
    gap: 13px !important;
    padding: 15px 16px !important;
  }
  #no-data-popup .no-data-signal { width: 48px; height: 48px; }
  #no-data-popup #no-data-msg strong { font-size: 15px; }
  #no-data-popup #no-data-msg small { font-size: 10px; }
}

/* Final font authority: later component shorthand must not reintroduce Geist or Newsreader. */
#panel.ops-console-active,
#panel.ops-console-active *:not(svg):not(path) {
  font-family: "Times New Roman", Times, "Batang", "바탕", serif !important;
}
#panel.ops-console-active .ops-console-subtitle { font-size:11px !important; line-height:1.35 !important; }
#panel.ops-console-active .ops-section-kicker { font-size:10px !important; }
#panel.ops-console-active .ops-view-segments button,
#panel.ops-console-active .ops-cluster-key b,
#panel.ops-console-active .ops-jump-key b { font-size:10px !important; }
#panel.ops-console-active .ops-view-help,
#panel.ops-console-active #min-cluster-row small { font-size:9px !important; line-height:1.35 !important; }
.navis-map-settings__trigger {
  min-width: 112px;
  height: 42px;
  padding: 0 14px 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #eaf2ff;
  border: 1px solid rgba(120,159,211,.38);
  border-radius: 13px;
  background: linear-gradient(145deg,rgba(14,29,52,.94),rgba(7,16,33,.94));
  box-shadow: 0 12px 34px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-weight: 750;
}
.navis-map-settings__trigger:hover,
.navis-map-settings__trigger[aria-expanded="true"] { border-color: #38bdf8; background: #0b2945; }
.navis-map-settings__gear { font-size: 22px; line-height: 1; color: #38bdf8; }
.navis-map-settings__label { font-size: 13px; letter-spacing: .01em; }
.navis-map-settings__panel {
  width: min(360px, calc(100vw - 28px));
  margin-top: 9px;
  padding: 18px;
  border: 1px solid rgba(83,129,185,.42);
  border-radius: 18px;
  background: linear-gradient(155deg,rgba(9,23,43,.98),rgba(5,13,28,.98));
  box-shadow: 0 22px 65px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
}
.navis-map-settings__head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.navis-map-settings__head h2 { margin:2px 0 0; color:#f8fafc; font:750 21px/1.2 Inter,"Segoe UI",sans-serif; }
.navis-map-settings__eyebrow { color:#38bdf8; font-size:10px; font-weight:850; letter-spacing:.18em; }
.navis-map-settings__close { width:30px; height:30px; padding:0; border:1px solid rgba(148,163,184,.22); border-radius:9px; background:#0c172a; color:#9fb0c7; font-size:23px; line-height:1; cursor:pointer; }
.navis-map-settings__hint { margin:8px 0 15px; color:#8fa2bd; font-size:12px; }
.navis-map-settings__presets { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-bottom:16px; }
.navis-map-settings__presets button { height:34px; padding:0 4px; border:1px solid rgba(107,135,173,.3); border-radius:9px; background:#0a1528; color:#9eacc1; font-size:11px; font-weight:750; cursor:pointer; }
.navis-map-settings__presets button:hover { border-color:rgba(56,189,248,.62); color:#dff5ff; }
.navis-map-settings__presets button.is-active { border-color:#38bdf8; color:#e8f8ff; background:linear-gradient(145deg,#075985,#0c4a6e); box-shadow:0 4px 16px rgba(14,165,233,.2); }
.navis-map-settings__controls { display:grid; gap:13px; padding:15px; border:1px solid rgba(71,99,136,.24); border-radius:13px; background:rgba(6,15,31,.55); }
.navis-map-settings__range > span { display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; }
.navis-map-settings__range strong { color:#cbd5e1; font-size:12px; font-weight:680; }
.navis-map-settings__range output { color:#38bdf8; font:750 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace; }
.navis-map-settings__range input { width:100%; height:4px; accent-color:#38bdf8; cursor:pointer; }
.navis-map-settings__toggle { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:13px; padding:12px 13px; border:1px solid rgba(71,99,136,.24); border-radius:12px; background:rgba(6,15,31,.42); cursor:pointer; }
.navis-map-settings__toggle span { display:grid; gap:3px; }
.navis-map-settings__toggle strong { color:#d8e2f0; font-size:12px; }
.navis-map-settings__toggle small { color:#71839c; font-size:10px; }
.navis-map-settings__toggle input { position:absolute; opacity:0; pointer-events:none; }
.navis-map-settings__toggle i { width:38px; height:21px; flex:none; position:relative; border-radius:999px; background:#26354b; transition:.18s ease; }
.navis-map-settings__toggle i:after { content:""; position:absolute; width:15px; height:15px; left:3px; top:3px; border-radius:50%; background:#94a3b8; transition:.18s ease; }
.navis-map-settings__toggle input:checked + i { background:#075985; box-shadow:inset 0 0 0 1px #38bdf8; }
.navis-map-settings__toggle input:checked + i:after { transform:translateX(17px); background:#e0f2fe; }
.navis-map-settings__footer { display:flex; align-items:center; justify-content:space-between; margin-top:14px; color:#5f728e; font-size:10px; }
.navis-map-settings__footer button { padding:7px 10px; border:1px solid rgba(248,113,113,.3); border-radius:8px; background:transparent; color:#f87171; font-size:10px; font-weight:700; cursor:pointer; }

/* Mobile: keep the map primary and present controls as a two-stage bottom sheet. */
@media (max-width: 768px) {
  .side-stack,
  html.chrome-off .side-stack {
    inset: auto 8px calc(8px + env(safe-area-inset-bottom, 0px)) 8px !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  #panel.ops-console-active,
  #panel.ops-console-active.expanded {
    width: 100% !important;
    max-width: none !important;
    zoom: 1 !important;
    border-radius: 20px 20px 16px 16px;
    transition: height .24s ease, max-height .24s ease, box-shadow .24s ease !important;
  }

  #panel.ops-console-active[data-ops-tab="map"] #ops-map-intro .ops-header-map-mode {
    width: 100% !important;
    margin: 11px 0 0 !important;
  }

  #panel.ops-console-active[data-ops-tab="map"] #ops-map-intro .ops-header-map-mode #mode-toggle {
    width: 100% !important;
    height: 42px !important;
  }

  #panel.ops-console-active:not(.expanded) {
    height: min(34dvh, 300px) !important;
    min-height: 218px;
    max-height: min(34dvh, 300px) !important;
    box-shadow: 0 -12px 44px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.05);
  }

  #panel.ops-console-active.expanded {
    height: calc(100dvh - 82px - env(safe-area-inset-top, 0px)) !important;
    min-height: 0;
    max-height: calc(100dvh - 82px - env(safe-area-inset-top, 0px)) !important;
  }

  #panel.ops-console-active::before {
    content: "";
    position: absolute;
    z-index: 30;
    top: 7px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148,163,184,.5);
    transform: translateX(-50%);
    pointer-events: none;
  }

  #panel.ops-console-active #ops-console-header { padding-top: 22px; }

  #panel.ops-console-active #panel-expand {
    right: 45px;
    top: 10px;
    width: 58px;
    height: 30px;
    border-color: rgba(56,189,248,.28);
    background: rgba(8,47,73,.82);
    color: #7dd3fc;
    font-size: 0 !important;
  }

  #panel.ops-console-active #panel-expand::after {
    content: "EXPAND";
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
  }

#panel.ops-console-active.expanded #panel-expand::after { content: "COMPACT"; }
}

/* Keep all three header controls inside the panel at every supported width. */
@media (min-width: 769px) and (min-height: 521px) {
  #panel.ops-console-active {
    width: min(372px, calc(100vw - 28px)) !important;
  }
}
#panel.ops-console-active #ops-console-header .ops-header-tools {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(92px, 1fr) 104px 68px;
  gap: 5px;
}
#panel.ops-console-active #ops-console-header .ops-header-map-mode {
  grid-column: 1;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#panel.ops-console-active #ops-console-header .ops-header-map-mode #mode-toggle {
  width: 100% !important;
  min-width: 0 !important;
}
#panel.ops-console-active #ops-console-header .ops-policy-badge {
  grid-column: 2;
  width: 104px;
  min-width: 0;
  padding-inline: 7px;
  text-align: center;
  white-space: normal;
}
#panel.ops-console-active #ops-console-header #ops-language-switch {
  grid-column: 3;
  width: 68px;
  min-width: 68px;
  overflow: visible;
}

/* Language changes must not reflow the operations header. */
#panel.ops-console-active #ops-console-header .ops-console-eyebrow {
  height: 14px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#panel.ops-console-active #ops-console-header .ops-console-heading > div:first-child {
  height: 47px;
  min-height: 47px;
  display: grid;
  grid-template-rows: 28px 16px;
  align-content: start;
  overflow: hidden;
}
#panel.ops-console-active #ops-console-header .ops-console-title,
#panel.ops-console-active #ops-console-header .ops-console-subtitle {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#panel.ops-console-active #ops-console-header .ops-console-title {
  height: 28px;
  line-height: 28px !important;
}
#panel.ops-console-active #ops-console-header .ops-console-subtitle {
  height: 16px;
  margin-top: 0;
  line-height: 16px;
}
#panel.ops-console-active #ops-console-header .ops-header-tools {
  height: 48px;
  min-height: 48px;
  align-items: stretch;
}
#panel.ops-console-active #ops-console-header .ops-header-map-mode,
#panel.ops-console-active #ops-console-header .ops-header-map-mode #mode-toggle,
#panel.ops-console-active #ops-console-header .ops-policy-badge,
#panel.ops-console-active #ops-console-header #ops-language-switch {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  box-sizing: border-box;
}
#panel.ops-console-active #ops-console-header .ops-policy-badge {
  line-height: 1.05;
  word-break: keep-all;
  overflow-wrap: normal;
}
#panel.ops-console-active #ops-console-header #ops-language-switch {
  align-self: stretch;
  align-items: center;
}

/* The mobile MAP sheet reuses this control outside the header. Keep both
   view choices inside one clipped track so the active 3D surface cannot
   protrude past its rounded container on narrow phones. */
#panel.ops-console-active .ops-header-map-mode #mode-toggle {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  justify-content:stretch !important;
  overflow:hidden !important;
  isolation:isolate;
}
#panel.ops-console-active .ops-header-map-mode #mode-toggle > span {
  min-width:0 !important;
  width:auto !important;
  height:100% !important;
  box-sizing:border-box;
}
@media (max-width:768px) {
  #panel.ops-console-active[data-ops-tab="map"] #ops-map-intro .ops-header-map-mode,
  #panel.ops-console-active[data-ops-tab="map"] #ops-map-intro .ops-header-map-mode #mode-toggle {
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
}

#panel.ops-console-active.ops-rfi-mode #layerTog {
  width: 100%;
  min-width: 0;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 999px;
  background: rgba(2,8,23,.52);
}
#panel.ops-console-active.ops-rfi-mode #layerTog button {
  width: 100%;
  min-width: 0;
  height: 34px !important;
  padding: 0 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: visible;
  border-radius: 999px;
}

/* Final chart surface overrides stay last so legacy dashboard rules cannot flatten them. */
body #panel.ops-console-active.ops-rfi-mode #dashboard-content > .daily-summary {
  padding: 14px !important;
  border-color: rgba(56,189,248,.17) !important;
  background:
    radial-gradient(circle at 96% 0, rgba(56,189,248,.12), transparent 42%),
    linear-gradient(145deg, rgba(12,28,51,.82), rgba(5,13,29,.72)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.16) !important;
}

body #panel.ops-console-active.ops-rfi-mode #dashboard-content > .panel-header {
  padding: 4px !important;
  border-color: rgba(56,189,248,.17) !important;
  background: linear-gradient(145deg, rgba(12,29,51,.78), rgba(5,13,28,.72)) !important;
}

body #panel.ops-console-active.ops-rfi-mode #dashboard-content > #dashboard-body {
  padding: 13px !important;
  border-color: rgba(56,189,248,.14) !important;
  background:
    radial-gradient(circle at 50% 0, rgba(56,189,248,.055), transparent 48%),
    linear-gradient(155deg, rgba(8,20,39,.78), rgba(3,10,23,.76)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.03) !important;
}
@media (max-width: 768px), ((max-height: 520px) and (pointer: coarse)) {
  .navis-map-settings { top:72px !important; right:10px !important; display:flex !important; flex-direction:column; align-items:flex-end !important; }
  #navis-top-view { top:72px; right:62px; width:42px; height:42px; padding:0; border-radius:12px; }
  #navis-top-view b { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .navis-map-settings__trigger { min-width:42px; width:42px; height:42px; padding:0; border-radius:12px; }
  .navis-map-settings__label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .navis-map-settings__panel { width:min(340px,calc(100vw - 20px)) !important; max-height:calc(100dvh - 136px) !important; padding:15px; overflow:auto !important; overscroll-behavior:contain; scrollbar-gutter:stable; box-sizing:border-box; }
}

/* Keep desktop map controls separated and the settings sheet fully on-screen. */
@media (min-width: 769px) and (min-height: 521px) {
  .navis-map-settings {
    top: 108px !important;
    right: 14px !important;
  }
  .navis-map-settings__trigger {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    box-sizing: border-box;
  }
  #navis-top-view {
    top: 108px !important;
    right: 156px !important;
    width: 126px !important;
    box-sizing: border-box;
  }
  .navis-map-settings__panel {
    position: fixed !important;
    top: 159px !important;
    right: 14px !important;
    width: min(360px, calc(100vw - 28px)) !important;
    max-height: calc(100dvh - 173px) !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    box-sizing: border-box;
  }
}

/* Let the WebGL surface itself be the loading state; never block first paint with a curtain. */
#boot-splash {
  display: none !important;
}

#cesiumContainer {
  background: #101827;
}

/* Progressive first paint: a local Eurasia globe is visible while Cesium's 5 MB
   runtime is being parsed. The real canvas is stacked above it as soon as it exists. */
#cesiumContainer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(94vh, 76vw);
  aspect-ratio: 1;
  transform: translate(-46%, -50%);
  border-radius: 50%;
  background:
    linear-gradient(rgba(8, 17, 30, .43), rgba(8, 17, 30, .43)),
    url("assets/dark-overview.jpg?v=20260813-first-frame6") center / cover no-repeat;
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, .42),
    0 0 28px rgba(56, 189, 248, .28),
    inset -38px -18px 70px rgba(0, 0, 0, .58);
  pointer-events: none;
}

#cesiumContainer > .cesium-viewer {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  #cesiumContainer::before {
    width: min(84vh, 126vw);
    transform: translate(-50%, -50%);
  }
}

html[lang="ko"] #panel.ops-console-active #min-cluster-row label:after {
  content: " · 클러스터와 표시 개체에 함께 적용";
}
