:root {
  --bg: #040a13;
  --bg-raised: #07111f;
  --panel: rgba(8, 19, 34, 0.94);
  --panel-2: rgba(10, 25, 43, 0.96);
  --line: rgba(133, 175, 220, 0.16);
  --line-strong: rgba(133, 175, 220, 0.30);
  --text: #e8f2ff;
  --muted: #7f96af;
  --dim: #50657c;
  --blue: #025ADD;
  --blue-bright: #2f82ff;
  --cyan: #26d9ff;
  --green: #31d39a;
  --amber: #ffbd4a;
  --orange: #ff7a3d;
  --red: #ff4768;
  --critical: #ff315a;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
  --radius: 10px;
  --mono: "IBM Plex Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(2, 90, 221, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(38, 217, 255, 0.08), transparent 28rem),
    var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }

#app-shell { min-height: 100vh; }
.topbar {
  min-height: 76px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(3, 9, 17, 0.92);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto minmax(330px, 1fr);
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand-block { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; position: relative; display: grid; align-items: center; }
.brand-mark span { height: 3px; background: var(--blue); display: block; box-shadow: 0 0 14px rgba(2,90,221,.75); transform-origin: left center; }
.brand-mark span:nth-child(1) { width: 31px; transform: rotate(-35deg) translateY(-2px); }
.brand-mark span:nth-child(2) { width: 24px; transform: translateX(4px); background: var(--cyan); }
.brand-mark span:nth-child(3) { width: 31px; transform: rotate(35deg) translateY(2px); }
.brand-line { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.brand-line strong { font-size: 19px; letter-spacing: .18em; color: white; }
.brand-line span { font-size: 15px; font-weight: 650; letter-spacing: .11em; color: #b9cce2; }
.brand-subtitle { margin-top: 4px; color: var(--muted); font: 10px/1.2 var(--mono); letter-spacing: .14em; white-space: nowrap; }
.topbar-center { display: flex; align-items: center; justify-content: center; gap: 8px; }
.system-chip {
  min-height: 30px;
  border: 1px solid var(--line);
  background: rgba(10, 23, 39, .72);
  border-radius: 4px;
  padding: 0 10px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font: 10px var(--mono);
  letter-spacing: .12em;
  white-space: nowrap;
}
.system-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px currentColor; }
.system-chip i.ok { background: var(--green); }
.system-chip i.bad { background: var(--red); }
.system-chip.mobility { color: #b8dcff; }
.system-chip.mode { color: #d7e9ff; border-color: rgba(47,130,255,.28); }
.system-chip.advisory { color: var(--amber); border-color: rgba(255,189,74,.26); }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.control-button, .text-button, .scope-filter, .icon-button {
  border: 1px solid var(--line-strong);
  background: rgba(11, 26, 44, .82);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, color .15s ease;
}
.control-button {
  height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  font: 10px var(--mono);
  letter-spacing: .1em;
  white-space: nowrap;
}
.control-button:hover, .scope-filter:hover, .text-button:hover { border-color: rgba(47,130,255,.75); background: rgba(2,90,221,.16); }
.control-button:active, .scope-filter:active { transform: translateY(1px); }
.control-button.accent { border-color: rgba(2,90,221,.9); background: linear-gradient(180deg, rgba(2,90,221,.95), rgba(2,72,177,.94)); box-shadow: 0 0 20px rgba(2,90,221,.18); }
.control-button.accent:hover { background: linear-gradient(180deg, #1270f0, #025add); }
.control-button.secured { border-color: rgba(49,211,154,.48); color: #aaf0d6; background: rgba(49,211,154,.07); }
.control-button.warning { border-color: rgba(255,189,74,.55); color: #ffd995; background: rgba(255,189,74,.08); }
.clock-block { display: grid; justify-items: end; min-width: 104px; }
.clock-block span { color: var(--muted); font: 9px var(--mono); letter-spacing: .12em; }
.clock-block strong { margin-top: 2px; font: 15px var(--mono); letter-spacing: .07em; color: #dceaff; }

.module-nav {
  height: 44px;
  display: flex;
  align-items: stretch;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 24, .93);
  position: sticky;
  top: 76px;
  z-index: 45;
  overflow-x: auto;
}
.nav-item {
  min-width: max-content;
  padding: 0 17px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: .12em;
  cursor: pointer;
}
.nav-item:hover { color: #d7e8fc; background: rgba(2,90,221,.06); }
.nav-item.active { color: white; border-bottom-color: var(--blue-bright); background: linear-gradient(180deg, transparent, rgba(2,90,221,.12)); }

main { padding: 16px 18px 30px; }
.view { display: none; }
.view.active { display: block; animation: view-in .18s ease-out; }
@keyframes view-in { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.summary-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.summary-card {
  min-height: 76px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(11, 27, 47, .9), rgba(5, 15, 28, .92));
  position: relative;
  overflow: hidden;
}
.summary-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--blue); opacity: .85; }
.summary-card.warning::before { background: var(--amber); }
.summary-card.critical::before { background: var(--red); }
.summary-card.good::before { background: var(--green); }
.summary-label { color: var(--muted); font: 9px var(--mono); letter-spacing: .12em; }
.summary-value { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.summary-value strong { font: 25px var(--mono); letter-spacing: -.04em; color: white; }
.summary-value span { color: var(--dim); font: 10px var(--mono); }
.summary-foot { position: absolute; right: 10px; bottom: 9px; color: var(--dim); font: 8px var(--mono); }

.deck-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(330px, 1fr);
  grid-template-rows: minmax(540px, 62vh) auto;
  gap: 10px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(9, 22, 39, .95), rgba(5, 15, 27, .96));
  box-shadow: 0 8px 30px rgba(0,0,0,.13);
  min-width: 0;
  overflow: hidden;
}
.panel-header {
  min-height: 64px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(9, 22, 39, .52);
}
.panel-header.compact { min-height: 56px; padding-top: 9px; padding-bottom: 9px; }
.panel-header h2 { margin: 3px 0 0; font-size: 16px; line-height: 1; letter-spacing: .015em; }
.eyebrow { margin: 0; color: var(--blue-bright); font: 9px var(--mono); letter-spacing: .15em; }
.scope-panel { min-height: 0; }
.scope-controls { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.scope-filter { height: 27px; border-radius: 3px; padding: 0 8px; color: var(--dim); font: 9px var(--mono); letter-spacing: .08em; }
.scope-filter.active { color: #dff3ff; border-color: rgba(47,130,255,.48); background: rgba(2,90,221,.12); }
.scope-filter.warning { color: var(--amber); border-color: rgba(255,189,74,.3); }
.scope-wrap { height: calc(100% - 64px); min-height: 470px; position: relative; background: #030912; overflow: hidden; }
#scope-canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.scope-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.011) 0, rgba(255,255,255,.011) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: screen;
}
.scope-corner { position: absolute; z-index: 2; color: rgba(165,204,240,.65); font: 8px var(--mono); letter-spacing: .12em; pointer-events: none; }
.scope-corner.top-left { left: 12px; top: 10px; display: flex; gap: 8px; }
.scope-corner.top-left span { padding: 3px 5px; border: 1px solid rgba(133,175,220,.14); background: rgba(4,10,19,.62); }
.scope-corner.bottom-left { left: 13px; bottom: 12px; }
.scope-legend { position: absolute; z-index: 2; right: 13px; bottom: 11px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; max-width: 70%; color: #8da7c2; font: 8px var(--mono); pointer-events: none; }
.scope-legend span { display: inline-flex; gap: 5px; align-items: center; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend-dot.friend { background: var(--cyan); box-shadow: 0 0 8px rgba(38,217,255,.6); }
.legend-dot.unknown { background: var(--amber); box-shadow: 0 0 8px rgba(255,189,74,.5); }
.legend-line { width: 15px; height: 0; border-top: 1px dashed; display: inline-block; }
.legend-line.prediction { border-color: rgba(75,175,255,.85); }
.legend-box { width: 9px; height: 7px; display: inline-block; }
.legend-box.restricted { background: rgba(255,71,104,.3); border: 1px solid rgba(255,71,104,.8); }
.legend-box.weather { background: rgba(255,122,61,.28); border: 1px solid rgba(255,189,74,.7); }
.track-inspector {
  position: absolute;
  z-index: 4;
  left: 14px;
  top: 46px;
  width: 250px;
  border: 1px solid rgba(47,130,255,.45);
  border-radius: 6px;
  background: rgba(4, 12, 23, .94);
  box-shadow: var(--shadow);
  padding: 12px;
  backdrop-filter: blur(12px);
}
.track-inspector.hidden { display: none; }
.inspector-title { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.inspector-title strong { font: 17px var(--mono); }
.inspector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.data-cell { border-top: 1px solid var(--line); padding-top: 7px; }
.data-cell span { display: block; color: var(--muted); font: 8px var(--mono); letter-spacing: .1em; }
.data-cell strong { display: block; margin-top: 4px; font: 12px var(--mono); font-weight: 500; }
.inspector-actions { display: flex; gap: 6px; margin-top: 12px; }

.alert-panel { min-height: 0; }
.count-badge { min-width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,71,104,.42); border-radius: 50%; color: #ffd9e1; background: rgba(255,49,90,.1); font: 12px var(--mono); }
.alert-stack { height: calc(100% - 56px); overflow: auto; padding: 8px; }
.alert-card {
  padding: 11px 11px 10px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 5px;
  background: rgba(11, 25, 42, .76);
  margin-bottom: 7px;
  cursor: pointer;
  transition: .15s ease;
}
.alert-card:hover { border-color: rgba(133,175,220,.36); background: rgba(13, 31, 53, .9); }
.alert-card.critical { border-left-color: var(--critical); background: linear-gradient(90deg, rgba(255,49,90,.095), rgba(11,25,42,.78) 35%); }
.alert-card.warning { border-left-color: var(--orange); }
.alert-card.advisory { border-left-color: var(--amber); }
.alert-card.info { border-left-color: var(--blue-bright); }
.alert-card.acknowledged { opacity: .72; }
.alert-head { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.alert-kind { color: var(--muted); font: 8px var(--mono); letter-spacing: .1em; }
.alert-card h3 { margin: 5px 0 0; font-size: 13px; line-height: 1.25; }
.alert-time { color: var(--red); font: 11px var(--mono); white-space: nowrap; }
.alert-card p { margin: 8px 0 0; color: #9eb1c5; font-size: 11px; line-height: 1.4; }
.alert-evidence { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; color: #8db4d7; font: 9px var(--mono); }
.alert-actions { display: flex; gap: 6px; margin-top: 9px; }
.mini-button { height: 25px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(2,90,221,.08); color: #bbd8f7; padding: 0 8px; font: 8px var(--mono); letter-spacing: .08em; cursor: pointer; }
.mini-button:hover { border-color: var(--blue-bright); color: white; }
.mini-button.danger { color: #ffc2ce; border-color: rgba(255,71,104,.32); }
.empty-list { min-height: 160px; display: grid; place-items: center; text-align: center; padding: 25px; color: var(--muted); }
.empty-list strong { color: var(--green); display: block; margin-bottom: 6px; }

.strips-panel { grid-column: 1; }
.posture-panel { grid-column: 2; }
.text-button { height: 28px; border-radius: 3px; padding: 0 9px; color: #b5d4f2; font: 9px var(--mono); letter-spacing: .08em; }
.table-wrap { width: 100%; overflow: auto; }
.table-wrap.tall { max-height: calc(100vh - 250px); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { position: sticky; top: 0; z-index: 2; height: 34px; padding: 0 11px; text-align: left; background: #081525; color: #6f8aa5; border-bottom: 1px solid var(--line); font: 8px var(--mono); letter-spacing: .1em; }
td { padding: 10px 11px; border-bottom: 1px solid rgba(133,175,220,.09); color: #a9bbcd; font-size: 11px; vertical-align: middle; }
tbody tr { transition: background .12s ease; cursor: pointer; }
tbody tr:hover { background: rgba(2,90,221,.08); }
td.primary { color: white; font: 12px var(--mono); font-weight: 650; }
td.mono { font-family: var(--mono); }
.status-pill { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border: 1px solid var(--line); border-radius: 999px; color: #9fb3c7; font: 8px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.status-pill.active, .status-pill.acknowledged, .status-pill.open { color: #9ff5d3; border-color: rgba(49,211,154,.28); background: rgba(49,211,154,.06); }
.status-pill.cleared, .status-pill.issued, .status-pill.assigned { color: #a9d3ff; border-color: rgba(47,130,255,.35); background: rgba(2,90,221,.08); }
.status-pill.warning, .status-pill.held, .status-pill.proposed { color: #ffe0a1; border-color: rgba(255,189,74,.32); background: rgba(255,189,74,.07); }
.status-pill.critical, .status-pill.cancelled, .status-pill.closed { color: #ffc2ce; border-color: rgba(255,71,104,.34); background: rgba(255,71,104,.07); }

#posture-content { padding: 13px; }
.posture-metric { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.posture-metric:first-child { padding-top: 0; }
.posture-metric header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.posture-metric header span { color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; }
.posture-metric header strong { font: 20px var(--mono); }
.meter { height: 5px; margin-top: 9px; background: rgba(128,170,210,.1); overflow: hidden; border-radius: 4px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 12px rgba(2,90,221,.55); }
.meter.severity i { background: linear-gradient(90deg, var(--green), var(--amber), var(--red)); }
.posture-list { margin-top: 11px; }
.posture-row { padding: 7px 0; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted rgba(133,175,220,.11); color: #9fb2c5; font-size: 10px; }
.posture-row strong { color: #dceafa; font: 9px var(--mono); font-weight: 500; }

.page-heading { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 7px 2px 18px; }
.page-heading h1 { margin: 5px 0 5px; font-size: 27px; letter-spacing: -.025em; }
.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); max-width: 800px; line-height: 1.5; }
.heading-actions { display: flex; gap: 8px; }
.content-grid { display: grid; gap: 10px; align-items: start; }
.content-grid.two-thirds { grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr); }
.content-grid.half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-panel { min-height: 480px; }
.empty-state { min-height: 430px; padding: 40px; display: grid; place-content: center; gap: 7px; text-align: center; color: var(--muted); }
.empty-state strong { color: #dceaff; font-size: 17px; }
.detail-content { padding: 17px; }
.detail-title { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.detail-title h2 { margin: 4px 0 0; font: 22px var(--mono); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.detail-section { margin-top: 18px; }
.detail-section h3 { margin: 0 0 8px; color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; }
.route-line { padding: 10px; background: rgba(2,90,221,.06); border: 1px solid var(--line); border-radius: 4px; color: #bcd7f3; font: 10px/1.6 var(--mono); }
.clearance-card { border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 4px; padding: 10px; margin-top: 7px; background: rgba(10,24,41,.62); }
.clearance-card p { margin: 6px 0 0; color: #aec0d1; font-size: 11px; line-height: 1.4; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.airspace-card { min-height: 225px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, rgba(10,25,43,.93), rgba(5,15,27,.96)); padding: 15px; position: relative; overflow: hidden; }
.airspace-card::after { content: ""; position: absolute; right: -30px; bottom: -45px; width: 150px; height: 150px; border: 1px solid rgba(47,130,255,.12); border-radius: 50%; box-shadow: 0 0 0 24px rgba(47,130,255,.03), 0 0 0 48px rgba(47,130,255,.02); }
.airspace-card.restricted { border-color: rgba(255,71,104,.25); }
.airspace-card.weather { border-color: rgba(255,189,74,.27); }
.airspace-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; position: relative; z-index: 2; }
.airspace-head h2 { margin: 5px 0 0; font-size: 15px; }
.volume-type { color: var(--cyan); font: 9px var(--mono); letter-spacing: .1em; }
.airspace-card.restricted .volume-type { color: var(--red); }
.volume-block { margin-top: 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; position: relative; z-index: 2; }
.volume-alt { padding: 10px; border: 1px solid var(--line); background: rgba(3,9,18,.45); text-align: center; }
.volume-alt span { display: block; color: var(--muted); font: 8px var(--mono); }
.volume-alt strong { display: block; margin-top: 5px; font: 15px var(--mono); }
.volume-bar { width: 40px; height: 2px; background: var(--blue); box-shadow: 0 0 12px rgba(2,90,221,.5); }
.volume-meta { margin-top: 14px; display: grid; gap: 6px; position: relative; z-index: 2; }
.volume-meta div { display: flex; justify-content: space-between; gap: 10px; color: #98acc0; font-size: 10px; }
.volume-meta strong { color: #d1e2f4; font: 9px var(--mono); font-weight: 500; text-align: right; }

.conflict-list { max-height: calc(100vh - 240px); overflow: auto; padding: 8px; }
.conflict-row { padding: 12px; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 7px; cursor: pointer; background: rgba(10,24,41,.6); }
.conflict-row:hover, .conflict-row.selected { border-color: rgba(47,130,255,.6); background: rgba(2,90,221,.1); }
.conflict-row header { display: flex; justify-content: space-between; gap: 10px; }
.conflict-row h3 { margin: 5px 0 0; font-size: 13px; }
.conflict-row p { margin: 8px 0 0; color: #93a8bd; font-size: 11px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.evidence-card { padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: rgba(4,12,22,.52); }
.evidence-card span { color: var(--muted); font: 8px var(--mono); letter-spacing: .08em; display: block; }
.evidence-card strong { margin-top: 5px; display: block; font: 12px var(--mono); word-break: break-word; }
.recommendation { border-left: 3px solid var(--blue); padding: 9px 11px; margin: 7px 0; background: rgba(2,90,221,.06); color: #c6d9eb; font-size: 11px; line-height: 1.45; }

.airport-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 10px; }
.airport-card { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); overflow: hidden; }
.airport-card-header { padding: 15px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.airport-card-header h2 { margin: 4px 0 0; }
.airport-body { padding: 15px; }
.runway-graphic { height: 120px; position: relative; border: 1px solid var(--line); border-radius: 6px; background: radial-gradient(circle, rgba(2,90,221,.08), transparent 60%), #050d18; overflow: hidden; }
.runway-line { position: absolute; width: 70%; height: 17px; left: 15%; top: 50%; transform: translateY(-50%) rotate(-10deg); background: #dce7f3; border: 3px solid #6d7c8d; box-shadow: 0 0 18px rgba(220,231,243,.15); }
.runway-line::after { content: ""; position: absolute; inset: 6px 8px; border-top: 2px dashed #29394a; }
.runway-label-a, .runway-label-b { position: absolute; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: white; z-index: 2; }
.runway-label-a { left: 16%; }
.runway-label-b { right: 16%; }
.runway-status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 10px; }

.flow-panel { margin-bottom: 10px; }
.advisory-tag { padding: 5px 8px; border: 1px solid rgba(255,189,74,.3); color: var(--amber); font: 8px var(--mono); letter-spacing: .1em; border-radius: 3px; }
.flow-timeline { min-height: 210px; padding: 25px 22px 20px; overflow-x: auto; display: flex; align-items: center; gap: 14px; position: relative; }
.flow-timeline::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; height: 1px; background: rgba(133,175,220,.3); }
.flow-slot { min-width: 140px; padding: 12px; border: 1px solid var(--line-strong); border-top: 3px solid var(--blue); border-radius: 5px; background: #09182a; position: relative; z-index: 2; }
.flow-slot.arrival { border-top-color: var(--cyan); }
.flow-slot.departure { border-top-color: var(--green); }
.flow-slot strong { display: block; font: 13px var(--mono); }
.flow-slot span { display: block; margin-top: 5px; color: var(--muted); font: 9px var(--mono); }

.integration-architecture { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1.2fr auto 1fr; gap: 10px; align-items: stretch; margin-bottom: 12px; }
.architecture-node { min-height: 120px; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, rgba(10,25,43,.95), rgba(5,15,27,.96)); display: grid; align-content: center; text-align: center; gap: 8px; }
.architecture-node strong { font: 12px var(--mono); letter-spacing: .08em; }
.architecture-node span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.architecture-node.mobility { border-color: rgba(38,217,255,.30); box-shadow: inset 0 0 30px rgba(38,217,255,.03); }
.architecture-node.atc { border-color: rgba(2,90,221,.55); box-shadow: inset 0 0 35px rgba(2,90,221,.08), 0 0 25px rgba(2,90,221,.08); }
.architecture-arrow { display: grid; place-items: center; color: var(--blue-bright); font: 21px var(--mono); }
.integration-grid { margin-bottom: 10px; }
.status-list, .endpoint-list { padding: 12px 15px 15px; }
.status-row, .endpoint-row { min-height: 45px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-row:last-child, .endpoint-row:last-child { border-bottom: 0; }
.status-row div strong, .endpoint-row div strong { display: block; font-size: 11px; }
.status-row div span, .endpoint-row div span { display: block; margin-top: 4px; color: var(--muted); font: 8px var(--mono); }
.status-light { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(49,211,154,.7); }
.status-light.off { background: var(--amber); box-shadow: 0 0 10px rgba(255,189,74,.5); }
.endpoint-row code { max-width: 56%; color: #9ec9f1; background: rgba(2,90,221,.07); border: 1px solid var(--line); border-radius: 3px; padding: 5px 7px; font: 9px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.event-stream-list { max-height: 300px; overflow: auto; padding: 8px 13px 13px; }
.event-row { display: grid; grid-template-columns: 135px minmax(180px, 1fr) 2fr; gap: 12px; padding: 8px 3px; border-bottom: 1px solid var(--line); font: 9px var(--mono); }
.event-row time { color: var(--muted); }
.event-row strong { color: #b9d9f7; font-weight: 500; }
.event-row span { color: #7189a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(5px); }
.modal-backdrop.hidden { display: none; }
.modal { width: min(780px, 100%); max-height: min(760px, 90vh); overflow: hidden; border: 1px solid rgba(47,130,255,.45); border-radius: 10px; background: #071321; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.modal > header { min-height: 68px; padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal h2 { margin: 5px 0 0; }
.icon-button { width: 34px; height: 34px; border-radius: 4px; color: var(--muted); font-size: 22px; }
.icon-button:hover { color: white; border-color: var(--blue); }
.modal-content { padding: 14px; max-height: calc(90vh - 68px); overflow: auto; }
.resolution-card { border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 5px; padding: 13px; margin-bottom: 9px; background: rgba(10,25,43,.78); }
.resolution-card header { display: flex; justify-content: space-between; gap: 12px; }
.resolution-card h3 { margin: 3px 0 0; text-transform: uppercase; font: 13px var(--mono); }
.resolution-card p { color: #a2b6c9; font-size: 11px; line-height: 1.45; }
.resolution-command { padding: 9px; border: 1px solid rgba(2,90,221,.25); background: rgba(2,90,221,.07); color: #d8ebff; font: 10px/1.5 var(--mono); }
.resolution-actions { margin-top: 11px; display: flex; gap: 7px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 120; max-width: 420px; padding: 12px 15px; border: 1px solid rgba(47,130,255,.55); border-radius: 5px; background: rgba(6,18,32,.96); box-shadow: var(--shadow); color: #d9eaff; font: 10px/1.45 var(--mono); }
.toast.hidden { display: none; }

@media (max-width: 1220px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar-center { display: none; }
  .summary-strip { grid-template-columns: repeat(4, 1fr); }
  .deck-grid { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
  .integration-architecture { grid-template-columns: 1fr; }
  .architecture-arrow { transform: rotate(90deg); min-height: 20px; }
}

@media (max-width: 900px) {
  .topbar { position: relative; top: auto; grid-template-columns: 1fr; padding: 12px; }
  .topbar-actions { justify-content: flex-start; flex-wrap: wrap; }
  .module-nav { top: 0; }
  main { padding: 10px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .deck-grid { display: block; }
  .deck-grid > * { margin-bottom: 10px; }
  .scope-wrap { min-height: 470px; }
  .alert-panel { height: 520px; }
  .content-grid.two-thirds, .content-grid.half { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .airport-grid { grid-template-columns: 1fr; }
  .scope-controls { display: none; }
}

@media (max-width: 560px) {
  .brand-line span { display: none; }
  .brand-subtitle { white-space: normal; font-size: 8px; }
  .topbar-actions .control-button { flex: 1; }
  .clock-block { width: 100%; justify-items: start; }
  .summary-card { min-height: 69px; }
  .summary-value strong { font-size: 21px; }
  .scope-wrap { min-height: 430px; }
  .scope-legend { left: 10px; right: 10px; max-width: none; justify-content: flex-start; }
  .track-inspector { width: calc(100% - 28px); }
  .detail-grid, .evidence-grid { grid-template-columns: 1fr; }
  .heading-actions { flex-wrap: wrap; }
  .airport-grid { min-width: 0; }
  .runway-status-grid { grid-template-columns: 1fr 1fr; }
}

/* Explicit, controller-owned airspace authorization workflow. */
.authority-list { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 5px; position: relative; z-index: 2; }
.authority-list span { padding: 5px 7px; border: 1px solid rgba(49,211,154,.30); border-radius: 3px; background: rgba(49,211,154,.06); color: #aaf0d6; font: 8px var(--mono); letter-spacing: .05em; }
.control-form { display: grid; gap: 12px; }
.authority-banner { padding: 13px; border: 1px solid rgba(2,90,221,.38); border-left: 3px solid var(--blue); border-radius: 5px; background: rgba(2,90,221,.07); display: grid; gap: 5px; }
.authority-banner span { color: var(--blue-bright); font: 8px var(--mono); letter-spacing: .12em; }
.authority-banner strong { font-size: 15px; }
.authority-banner small { color: var(--muted); font: 9px var(--mono); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.control-form label { display: grid; gap: 6px; }
.control-form label > span { color: var(--muted); font: 8px var(--mono); letter-spacing: .10em; }
.control-form input, .control-form select, .control-form textarea { width: 100%; min-height: 38px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 8px 10px; color: var(--text); background: #050f1c; outline: none; }
.control-form textarea { resize: vertical; line-height: 1.45; }
.control-form input:focus, .control-form select:focus, .control-form textarea:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 2px rgba(2,90,221,.12); }
.control-form option { background: #071321; color: var(--text); }
.form-wide { grid-column: 1 / -1; }
.assurance-note { padding: 10px 12px; border: 1px solid rgba(255,189,74,.25); background: rgba(255,189,74,.05); display: grid; gap: 4px; }
.assurance-note strong { color: var(--amber); font: 8px var(--mono); letter-spacing: .10em; }
.assurance-note span { color: #b7c5d3; font-size: 10px; line-height: 1.45; }
@media (max-width: 680px) { .field-grid { grid-template-columns: 1fr; } }
