@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  --bg: #071221;
  --panel: #102746;
  --panel-2: #132f53;
  --panel-3: #0c2038;
  --line: #28476f;
  --line-bright: #38608e;
  --text: #f7fbff;
  --muted: #99b4d8;
  --soft: #74a7de;
  --lime: #d6ee00;
  --lime-soft: #a9c800;
  --orange: #f59e0b;
  --red: #ff434d;
  --green: #26d773;
  --cyan: #18b7dd;
  --purple: #ac8dff;
  --blue: #24a9eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: auto;
}

.control-page.container-fluid {
  padding: 0;
}

.app-shell {
  min-height: 100vh;
  min-width: 1180px;
  background:
    radial-gradient(circle at 74% 10%, rgba(180, 214, 0, 0.08), transparent 18rem),
    linear-gradient(180deg, #08203d 0, #081424 9rem, #08111e 100%);
}

.top-bar {
  height: 56px;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid #15355b;
  background: #062b55;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-tile {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #18b7dd, #24a9eb);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(24, 183, 235, 0.3);
}

.logo-tile svg {
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
}

.brand-title {
  font-size: 16px;
  line-height: 18px;
  font-weight: 800;
}

.brand-subtitle,
.footer-mid,
.hero-meta,
.card-label,
.terminal-subtitle,
.stand-section-subtitle,
.nav-subtitle,
.decision-kind,
.resolution-label {
  letter-spacing: 0.14em;
}

.brand-subtitle {
  margin-top: 2px;
  color: #96afce;
  font-size: 10px;
  font-weight: 800;
}

.center-mark {
  color: #ff5b14;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}

.top-status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c8dbef;
  font-size: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #315277;
  background: rgba(21, 49, 84, 0.86);
  color: #d8e9fb;
  border-radius: 999px;
  padding: 4px 11px;
  font-weight: 700;
  white-space: nowrap;
}

.api-chip::before,
.live-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(214, 238, 0, 0.9);
}

.op-day {
  gap: 8px;
}

.op-date {
  color: #fff;
}

.op-type {
  color: #8ea7c8;
}

.module-nav {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  background: #07284e;
  border-bottom: 1px solid #1e4169;
  overflow-x: auto;
  scrollbar-width: none;
}

.module-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  color: #b7c8df;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 1280px) {
  .module-nav {
    gap: 4px;
    padding: 0 12px;
  }
  .nav-item {
    gap: 4px;
    padding: 0 6px;
    font-size: 12px;
  }
  .nav-subtitle {
    font-size: 9px;
  }
}

.nav-item.active {
  background: var(--lime);
  color: #001a35;
}

.nav-icon {
  font-size: 14px;
}

.nav-dot {
  opacity: 0.5;
}

.nav-subtitle {
  font-size: 10px;
  font-weight: 800;
  opacity: 0.78;
}

.content {
  padding: 18px 16px 16px;
  position: relative;
}

.hero {
  max-width: 670px;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9fc2ea;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
}

.eyebrow {
  color: #a8c7ef;
}

.live-chip {
  padding-block: 2px;
  color: var(--lime);
  border-color: rgba(214, 238, 0, 0.55);
  background: rgba(70, 88, 0, 0.3);
}

.time-chip {
  padding-block: 3px;
  background: #1a3760;
}

.hero h1 {
  margin: 6px 0 2px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}

.hero p {
  margin: 0;
  color: #9ec4ef;
  font-size: 13px;
  line-height: 1.45;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 12px;
}

.kpi-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card {
  min-height: 105px;
  padding: 16px 17px;
  border: 1px solid #274775;
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 18%, rgba(214, 238, 0, 0.33), transparent 56px),
    linear-gradient(135deg, #122d50, #112849);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card-label {
  color: #9fc6ef;
  font-size: 11px;
  font-weight: 800;
}

.card-icon {
  color: var(--lime-soft);
  font-size: 18px;
}

.card-value {
  margin-top: 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.card-value.warning,
.kpi-card.warning .card-value {
  color: var(--orange);
}

.card-value.danger,
.kpi-card.danger .card-value {
  color: #ff525a;
}

.card-value.good,
.kpi-card.good .card-value {
  color: var(--green);
}

.card-subtitle {
  margin-top: 6px;
  color: #96c3f4;
  font-size: 11px;
}

.focus-layout {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 13px;
  align-items: end;
  margin-bottom: 12px;
}

.touchpoint-label {
  display: block;
  margin-bottom: 6px;
  color: #9fc6ef;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.touchpoint-control .form-group {
  margin: 0;
}

.touchpoint-control label.control-label {
  display: none;
}

.touchpoint-control select {
  width: 100%;
  height: 29px;
  padding: 0 13px;
  border: 1px solid #294a75;
  border-radius: 5px;
  background: #1a3760;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.focus-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.focus-card {
  min-height: 103px;
}

.time-panel {
  min-height: 61px;
  display: grid;
  grid-template-columns: 38px 84px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #284873;
  border-radius: 7px;
  background: linear-gradient(90deg, #112b4d, #0f2542);
  margin-bottom: 13px;
}

.play-button {
  width: 36px;
  height: 36px;
  border: 1px solid #315782;
  border-radius: 6px;
  background: #1a3760;
  color: #b8d2f0;
  font-size: 17px;
  cursor: pointer;
}

.current-time-label {
  color: var(--lime);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 21px;
  font-weight: 800;
}

.timeline-range {
  --progress: 28%;
  width: 100%;
  height: 7px;
  appearance: none;
  border-radius: 999px;
  border: 1px solid #abaf98;
  background: linear-gradient(90deg, var(--lime) 0 var(--progress), #868779 var(--progress) 100%);
  outline: none;
  cursor: pointer;
}

.timeline-range::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
}

.timeline-range::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
}

.time-marks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-mark {
  border: 1px solid #315782;
  border-radius: 999px;
  background: #18365e;
  color: #fff;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.time-mark.active {
  background: var(--lime);
  color: #001a35;
  border-color: var(--lime);
}

.airport-map {
  position: relative;
  min-height: 845px;
  padding: 22px 47px 26px;
  overflow: hidden;
  border: 1px solid #294a75;
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 45, 80, 0.96), rgba(16, 35, 61, 0.98));
  background-size: 32px 32px, 32px 32px, auto;
}

.airport-map.disruption-pulse {
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.8), 0 0 34px rgba(245, 158, 11, 0.24);
}

.map-actions {
  position: absolute;
  top: 13px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.map-action {
  height: 24px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.map-action.disruption {
  color: var(--orange);
  background: rgba(83, 55, 0, 0.66);
  border: 1px solid var(--orange);
}

.map-action.staff {
  color: var(--lime);
  background: rgba(56, 72, 0, 0.68);
  border: 1px solid var(--lime);
}

.map-action.staff:not(.active) {
  color: #a7b7cc;
  border-color: #4b6382;
  background: #142b4b;
}

.runway-bar {
  position: relative;
  height: 42px;
  margin: 2px 0 38px;
  border-radius: 6px;
  background: #252f45;
}

.runway-segment {
  position: absolute;
  top: 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b7d5fb;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.runway-left {
  left: 18px;
}

.runway-right {
  right: 12px;
}

.runway-caret {
  color: #9fb4d0;
  font-size: 14px;
}

.terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  max-width: 1315px;
}

.terminal-panel {
  position: relative;
  min-height: 425px;
  padding: 18px 18px 38px;
  border-radius: 12px;
  background: rgba(6, 19, 34, 0.35);
}

.terminal-panel.t1-frame {
  border: 2px solid rgba(24, 183, 221, 0.7);
}

.terminal-panel.t2-frame {
  border: 2px solid rgba(171, 197, 0, 0.68);
}

.terminal-heading {
  position: absolute;
  top: -25px;
  left: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.terminal-title {
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.terminal-subtitle {
  color: #85b1e5;
  font-size: 10px;
}

.zone-row {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
}

.zone-row.checkins {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.zone-row.security {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zone-row.piers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* T2 has fewer zones per row — override to prevent empty grid gaps */
.t2-frame .zone-row.checkins {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.t2-frame .zone-row.security {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.t2-frame .zone-row.piers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zone-card {
  grid-column: span var(--zone-span);
  min-height: 68px;
  padding: 10px 9px 28px;
  border: 1px solid #244260;
  border-radius: 6px;
  background: #0d2738;
  color: #f7fbff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  position: relative;
}

.zone-card.warning {
  background: rgba(121, 83, 24, 0.7);
  border-color: var(--orange);
}

.zone-card.danger {
  border: 2px solid var(--red);
  box-shadow: 0 0 0 2px rgba(255, 67, 77, 0.23), inset 0 0 0 1px rgba(255, 67, 77, 0.35);
}

.zone-card.normal {
  background: #0d2340;
  border-color: #2c4a6a;
}

.zone-card.selected {
  outline: 2px dashed var(--red);
  outline-offset: 4px;
}

.zone-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 4px;
}

.t2_preclearance .zone-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.zone-name {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.zone-badge {
  flex-shrink: 0;
  border-radius: 3px;
  background: rgba(8, 135, 153, 0.88);
  color: #d9ffff;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.zone-card.warning .zone-badge {
  background: rgba(185, 115, 20, 0.95);
  color: #fff8e0;
}

.zone-card.danger .zone-badge {
  background: #ff5b5d;
  color: #fff;
}

.zone-card.normal .zone-badge {
  background: #092c42;
  border: 1px solid #00bcd4;
  color: #00bcd4;
}

.zone-pax {
  position: absolute;
  left: 10px;
  bottom: 8px;
  color: #bde0ff;
  font-size: 10px;
  white-space: nowrap;
}

.zone-row.piers .zone-card {
  min-height: 148px;
}

.zone-row.piers .zone-pax {
  bottom: 44px;
}

.zone-row.security .zone-card {
  min-height: 82px;
}

.zone-card.t2_preclearance {
  min-height: 48px;
  padding: 8px 9px 8px;
}

.t2_preclearance .zone-pax {
  position: static;
  margin-top: 4px;
  font-size: 10px;
  color: #bde0ff;
}

.activity-strip {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.activity-bar {
  width: 9px;
  height: 25px;
  border-radius: 3px;
  background: #193a63;
  border: 1px solid #3570a4;
}

.activity-bar.inbound,
.legend-swatch.inbound {
  background: var(--blue);
  border-color: var(--blue);
}

.activity-bar.onstand,
.legend-swatch.onstand {
  background: var(--green);
  border-color: var(--green);
}

.activity-bar.departing,
.legend-swatch.departing {
  background: var(--orange);
  border-color: var(--orange);
}

.activity-bar.standby {
  background: var(--purple);
  border-color: var(--purple);
}

.landside-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 92px;
  color: var(--cyan);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  opacity: 0.9;
}

.remote-stand-wrap {
  margin-top: 24px;
  padding: 15px 16px 18px;
  border-radius: 8px;
  background: rgba(2, 12, 24, 0.82);
  border: 1px dashed rgba(50, 81, 120, 0.8);
}

.stand-heading {
  color: #6882a6;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  margin-bottom: 12px;
}

.stand-grid.remote {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 11px 34px;
  padding: 3px 32px 24px;
}

.stand-grid.cargo {
  display: flex;
  gap: 10px;
  padding: 0 32px;
}

.stand-pill {
  min-width: 44px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #315782;
  border-radius: 4px;
  background: #142d4f;
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
}

.stand-pill.onstand {
  background: var(--green);
  color: #08311b;
  border-color: #7af1a9;
  font-weight: 800;
}

.stand-pill.cargo {
  width: 28px;
  min-width: 28px;
  background: rgba(97, 52, 112, 0.36);
  border-color: rgba(147, 76, 165, 0.42);
}

.legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 0;
  color: #b9d6f3;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
}

.legend-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legend-title {
  color: #d8e9fb;
  margin-right: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid #3c5b82;
  background: #193a63;
}

.legend-swatch.util-low {
  background: rgba(38, 215, 115, 0.35);
  border-color: #26d773;
}

.legend-swatch.util-mid {
  background: rgba(245, 158, 11, 0.35);
  border-color: #f59e0b;
}

.legend-swatch.util-high {
  background: rgba(255, 67, 77, 0.35);
  border-color: #ff434d;
}

.decision-drawer {
  position: fixed;
  right: 18px;
  bottom: 16px;
  width: 420px;
  max-width: calc(100vw - 36px);
  z-index: 20;
  border: 1px solid #2c4b75;
  border-radius: 8px;
  background: #112746;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.decision-drawer.expanded {
  top: 226px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
}

.queue-header {
  min-height: 47px;
  padding: 7px 12px;
  display: grid;
  grid-template-columns: 28px 1fr 24px 24px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2b4a75;
}

.queue-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--red);
  color: var(--red);
  font-weight: 800;
}

.queue-toggle,
.queue-tool,
.queue-caret {
  border: 0;
  background: transparent;
  color: #b6cbe6;
  cursor: pointer;
}

.queue-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  line-height: 1.2;
}

.queue-toggle strong {
  color: #fff;
  font-size: 16px;
}

.queue-toggle span {
  color: #9aafcc;
  font-size: 11px;
}

.queue-content {
  display: none;
  overflow-y: auto;
  padding: 12px;
}

.decision-drawer.expanded .queue-content {
  display: block;
}

.decision-card {
  margin-bottom: 12px;
  border: 1px solid #2b4a75;
  border-left: 4px solid var(--orange);
  border-radius: 7px;
  background: #102541;
}

.decision-card.red {
  border-left-color: var(--red);
}

.decision-card-head {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  padding: 12px 12px 10px;
}

.decision-alert {
  color: var(--orange);
  font-size: 18px;
}

.decision-alert.red {
  color: var(--red);
}

.decision-kind {
  color: #9aadca;
  font-size: 10px;
  font-weight: 800;
}

.decision-title h3 {
  margin: 4px 0 5px;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.decision-title p {
  margin: 0;
  color: #9ab1cf;
  font-size: 11px;
  line-height: 1.4;
}

.decision-tools {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.decision-time {
  color: #9ab1cf;
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.decision-close {
  border: 0;
  background: transparent;
  color: #9ab1cf;
  cursor: pointer;
}

.resolution-label {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 8px;
  border-top: 1px solid #284873;
  color: #9eb2d0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
}

.solution-card {
  margin: 0 16px 8px;
  border: 1px solid #2b4a75;
  border-radius: 6px;
  background: #183152;
  overflow: hidden;
}

.solution-head {
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.solution-rank {
  width: 30px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #112642;
  color: #d9e9fb;
  font-weight: 800;
  font-size: 12px;
}

.solution-summary {
  display: flex;
  flex-direction: column;
}

.solution-summary strong {
  color: #fff;
  font-size: 14px;
}

.solution-summary strong::first-letter {
  color: var(--green);
}

.solution-meta {
  color: #9db4d4;
  font-size: 11px;
}

.solution-toggle {
  border: 0;
  background: transparent;
  color: #a4bad8;
  cursor: pointer;
}

.solution-card:not(.expanded) .move-list,
.solution-card:not(.expanded) .decision-buttons {
  display: none;
}

.move-list {
  margin: 0 10px 8px;
  border: 1px solid #294a75;
  border-radius: 5px;
  overflow: hidden;
}

.move-row {
  display: grid;
  grid-template-columns: 58px 1fr 68px;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #294a75;
  color: #dcecff;
  font-size: 11px;
  align-items: center;
}

.move-row:last-child {
  border-bottom: 0;
}

.move-id {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 800;
}

.move-name {
  font-weight: 700;
}

.move-role,
.move-time {
  justify-self: end;
  border-radius: 999px;
  background: #203f68;
  padding: 2px 8px;
  font-weight: 800;
}

.move-route {
  grid-column: 1 / span 2;
  color: #9eb6d8;
}

.move-arrow {
  color: var(--cyan);
  padding: 0 7px;
}

.move-time {
  grid-column: 3;
  grid-row: 2;
}

.decision-buttons {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 10px 10px;
}

.accept-button,
.reason-button,
.override-button {
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.accept-button {
  border: 0;
  background: var(--lime);
  color: #061322;
  padding: 9px 12px;
}

.reason-button {
  border: 1px solid #2b4a75;
  background: #183152;
  color: #9db2ce;
  padding: 9px 12px;
}

.override-button {
  margin: 8px 16px 12px;
  border: 1px solid var(--orange);
  background: transparent;
  color: var(--orange);
  padding: 4px 10px;
  font-size: 11px;
}

.app-footer {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  border-top: 1px solid #173555;
  color: #6487af;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.ops-panel {
  position: relative;
  border: 1px solid #294a75;
  border-radius: 7px;
  background: linear-gradient(135deg, #102746, #0f2440);
  padding: 16px;
  min-height: 88px;
  margin-bottom: 12px;
}

.panel-header {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-header h2 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.panel-subtitle,
.panel-note,
.panel-inline {
  color: #96c3f4;
  font-size: 11px;
}

.panel-note {
  margin: 12px 0 0;
}

.panel-note.lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
}

.three-panel-grid,
.two-panel-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.three-panel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-panel-grid.wide-left {
  grid-template-columns: 2fr 1fr;
}

.three-panel-grid.lower-panels {
  grid-template-columns: 0.9fr 1.85fr 0.9fr;
}

.long-layout {
  grid-template-columns: 0.65fr 1fr;
}

.stacked-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stacked-panels .ops-panel {
  margin-bottom: 0;
}

.panel-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.right-tabs {
  position: absolute;
  top: 16px;
  right: 16px;
}

.route-chip {
  padding: 3px 12px;
  color: #e8f4ff;
  background: #18365e;
  border-color: #315782;
  font-size: 12px;
}

.route-chip.active {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(61, 82, 0, 0.42);
}

.empty-state {
  min-height: 170px;
  display: grid;
  place-items: center;
  color: #9ec4ef;
  font-size: 14px;
}

.sparkline {
  min-height: 186px;
  border-bottom: 1px solid #7486a3;
  padding: 26px 8px 12px;
}

.spark-svg,
.forecast-svg {
  width: 100%;
  display: block;
}

.chart-line {
  fill: none;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.chart-line.p50 {
  stroke: #21d4ee;
  stroke-width: 2.2;
}

.chart-line.p95,
.chart-line.p5 {
  stroke: #31d6ff;
  stroke-dasharray: 2 2;
}

.chart-line.p80 {
  stroke: rgba(35, 174, 204, 0.45);
  stroke-width: 10;
}

.forecast-band {
  fill: rgba(31, 166, 197, 0.22);
}

.spark-labels,
.forecast-labels {
  display: flex;
  justify-content: space-between;
  color: #9fc6ef;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}

.micro-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.micro-card-row > div {
  border: 1px solid #294a75;
  border-radius: 6px;
  padding: 10px;
  min-height: 80px;
}

.micro-card-row strong {
  display: block;
  margin: 6px 0 3px;
  color: var(--orange);
  font-size: 20px;
}

.micro-card-row span:last-child {
  color: #96c3f4;
  font-size: 11px;
}

.risk-banner {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid #294a75;
  border-left: 4px solid var(--orange);
  border-radius: 7px;
  background: #102746;
}

.risk-icon {
  color: var(--orange);
  font-size: 20px;
}

.risk-banner strong {
  display: block;
  font-size: 15px;
}

.risk-banner p {
  margin: 4px 0 0;
  color: #9ec4ef;
  font-size: 12px;
}

.capacity-list {
  margin-top: 8px;
}

.capacity-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  color: #9bb7d9;
  border-bottom: 1px solid #294a75;
}

.capacity-row strong {
  color: #fff;
}

.ops-toolbar {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 12px;
  border: 1px solid #294a75;
  border-radius: 7px;
  background: #102746;
}

.toolbar-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9fc6ef;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.toolbar-icon {
  color: var(--lime);
  font-size: 14px;
  line-height: 1;
}

.outline-action {
  margin-left: auto;
  height: 26px;
  padding: 0 14px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: transparent;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.forecast-panel {
  min-height: 382px;
}

.forecast-chart {
  position: relative;
  min-height: 312px;
  padding: 16px 8px 0 62px;
}

.forecast-chart::before {
  content: "";
  position: absolute;
  left: 60px;
  right: 6px;
  top: 22px;
  bottom: 45px;
  background: repeating-linear-gradient(0deg, rgba(117, 134, 163, 0.28) 0 1px, transparent 1px 58px);
  border-left: 1px solid #7486a3;
  border-bottom: 1px solid #7486a3;
}

.forecast-svg {
  position: relative;
  height: 244px;
  overflow: visible;
}

.chart-axis {
  position: absolute;
  left: 12px;
  top: 13px;
  bottom: 49px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #9fc6ef;
  font-size: 11px;
}

.forecast-legend {
  display: flex;
  gap: 22px;
  margin-top: 11px;
  color: #b5d4f4;
  font-size: 11px;
}

.weights-chart {
  padding: 18px 32px 24px;
}

.weight-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.weight-label {
  justify-self: end;
  color: #9fc6ef;
  font-size: 11px;
}

.weight-bar {
  width: var(--weight);
  height: 34px;
  border-radius: 4px;
  display: block;
}

.weight-bar.lime {
  background: var(--lime);
}

.weight-bar.cyan {
  background: #25c7e5;
}

.weight-bar.orange {
  background: var(--orange);
}

.journey-filters {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
}

.dark-input {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #315782;
  border-radius: 5px;
  background: #1a3760;
  color: #fff;
  font: inherit;
}

.loading-line {
  color: #9ec4ef;
  font-size: 14px;
  padding: 8px 0;
}

.short-loader {
  min-height: 86px;
}

.short-term-page.content {
  min-height: calc(100vh - 144px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.data-table th {
  color: #9fb7d7;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 10px 0 13px;
  font-weight: 700;
}

.data-table td {
  padding: 10px 0;
  border-top: 1px solid #294a75;
  font-weight: 700;
}

.coverage-table td:not(:first-child),
.coverage-table th:not(:first-child) {
  text-align: right;
}

.coverage-table tbody tr:last-child {
  background: rgba(31, 56, 90, 0.45);
}

.roster-table tbody:empty::after {
  content: "";
  display: block;
  height: 10px;
}

.occupancy-chart {
  padding-top: 4px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.occ-axis {
  display: grid;
  grid-template-columns: 70px repeat(5, 1fr);
  color: #9fc6ef;
  font-size: 11px;
  margin-bottom: 8px;
}

.occ-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
}

.occ-stand {
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.occ-cells {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
  height: 20px;
  border-radius: 4px;
  background: #18365e;
  overflow: hidden;
}

.occ-cell {
  border-radius: 3px;
}

.occ-cell.inbound {
  background: #25a8c8;
}

.occ-cell.departing {
  background: #a87917;
}

.occ-cell.onstand {
  background: var(--green);
}

.occ-cell.idle {
  background: transparent;
}

.inventory-table tbody {
  display: block;
  max-height: 410px;
  overflow: auto;
}

.inventory-table thead,
.inventory-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.inventory-table td:last-child {
  color: var(--green);
}

.config-tabs {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px solid #294a75;
  border-radius: 7px;
  background: #102746;
}

.save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -32px;
  margin-bottom: 18px;
}

.save-action {
  margin-left: 0;
}

.shift-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shift-row {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr 0.7fr 1fr 0.8fr;
  gap: 14px;
  align-items: center;
}

.shift-head {
  color: #9fb7d7;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.config-input {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #294a75;
  border-radius: 5px;
  background: #1a3760;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.config-input.hours {
  text-align: center;
}

.config-check {
  width: 14px;
  height: 14px;
}

.remove-button {
  justify-self: end;
  height: 24px;
  padding: 0 12px;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  font-weight: 800;
}

.add-button {
  align-self: flex-start;
  height: 26px;
  padding: 0 12px;
  border: 1px solid #315782;
  border-radius: 999px;
  background: #1a3760;
  color: #fff;
  font-weight: 800;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9fc6ef;
  font-size: 12px;
}

.bar-value {
  color: #fff;
}

.bar-track {
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
  background: #18365e;
  overflow: hidden;
}

.bar-fill {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: #23c7e5;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}

.snapshot-cell {
  min-height: 76px;
  border: 1px solid #294a75;
  border-radius: 6px;
  padding: 12px;
  background: #122d50;
}

.snapshot-cell span,
.split-row span,
.journey-stage {
  color: #9fc6ef;
  font-size: 12px;
}

.snapshot-cell strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 22px;
}

.snapshot-cell.good strong,
.split-segment.lime {
  color: var(--green);
}

.snapshot-cell.warning strong {
  color: var(--orange);
}

.snapshot-cell.danger strong {
  color: var(--red);
}

.terminal-split-bar {
  display: flex;
  height: 30px;
  margin: 24px 0 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #18365e;
}

.split-segment {
  width: var(--share);
  display: block;
}

.split-segment.cyan {
  background: #23c7e5;
}

.split-segment.lime {
  background: var(--green);
}

.split-list,
.journey-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split-row {
  display: grid;
  grid-template-columns: 48px 1fr 46px;
  gap: 10px;
  align-items: center;
}

.demand-chart {
  position: relative;
  min-height: 195px;
  padding: 24px 18px 0 54px;
}

.demand-chart::before {
  content: "";
  position: absolute;
  left: 52px;
  right: 18px;
  top: 24px;
  bottom: 38px;
  border-left: 1px solid #7486a3;
  border-bottom: 1px solid #7486a3;
  background: repeating-linear-gradient(0deg, rgba(117, 134, 163, 0.28) 0 1px, transparent 1px 37px);
}

.demand-svg {
  position: relative;
  width: 100%;
  height: 144px;
  display: block;
}

.chart-axis.compact {
  top: 19px;
  bottom: 36px;
}

.demand-labels {
  display: flex;
  justify-content: space-between;
  color: #9fc6ef;
  font-size: 10px;
  margin-top: 4px;
}

.demand-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: #b5d4f4;
  font-size: 11px;
}

.segment-columns {
  min-height: 205px;
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 20px 10px 6px;
}

.segment-item {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 6px;
  height: 190px;
  color: #9fc6ef;
  font-size: 11px;
}

.segment-column {
  align-self: end;
  height: var(--height);
  min-height: 8px;
  border-radius: 5px 5px 0 0;
  background: #23c7e5;
}

.segment-column.lime {
  background: var(--green);
}

.segment-column.orange {
  background: var(--orange);
}

.segment-column.purple {
  background: var(--purple);
}

.segment-column.red {
  background: var(--red);
}

.coverage-heatmap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.heat-row {
  display: grid;
  grid-template-columns: 150px repeat(11, minmax(16px, 1fr));
  gap: 5px;
  align-items: center;
}

.heat-head {
  color: #9fc6ef;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.heat-label {
  color: #dcecff;
  font-size: 11px;
  white-space: nowrap;
}

.heat-cell {
  height: 18px;
  border-radius: 3px;
  border: 1px solid #315782;
  background: #18365e;
}

.heat-cell.good {
  background: rgba(38, 215, 115, 0.45);
  border-color: #26d773;
}

.heat-cell.warning {
  background: rgba(245, 158, 11, 0.55);
  border-color: #f59e0b;
}

.heat-cell.danger {
  background: rgba(255, 67, 77, 0.55);
  border-color: #ff434d;
}

.short-grid {
  grid-template-columns: 1.2fr 1fr;
}

.short-plan-table td:last-child {
  color: #9fc6ef;
  font-weight: 600;
}

.short-plan-table {
  table-layout: fixed;
}

.short-plan-table th,
.short-plan-table td {
  font-size: 12px;
  padding-right: 10px;
}

.short-plan-table th:nth-child(1),
.short-plan-table td:nth-child(1) {
  width: 23%;
}

.short-plan-table th:nth-child(2),
.short-plan-table td:nth-child(2),
.short-plan-table th:nth-child(3),
.short-plan-table td:nth-child(3),
.short-plan-table th:nth-child(4),
.short-plan-table td:nth-child(4) {
  width: 11%;
  text-align: right;
}

.short-plan-table th:nth-child(5),
.short-plan-table td:nth-child(5) {
  width: 44%;
}

.compact-table th,
.compact-table td {
  padding: 7px 0;
  font-size: 12px;
}

.journey-row {
  display: grid;
  grid-template-columns: 155px 1fr 70px;
  gap: 12px;
  align-items: center;
}

.journey-track {
  height: 14px;
  border-radius: 999px;
  background: #18365e;
  overflow: hidden;
  display: flex;
}

.journey-fill {
  display: block;
  width: var(--bar);
}

.journey-fill.t1 {
  background: #23c7e5;
}

.journey-fill.t2 {
  background: var(--green);
}

.staffing-gap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gap-row {
  display: grid;
  grid-template-columns: 120px repeat(12, minmax(48px, 1fr));
  gap: 5px;
  align-items: center;
}

.gap-head {
  color: #9fc6ef;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.gap-role {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.gap-cell {
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.gap-cell.negative {
  background: rgba(255, 67, 77, 0.32);
  color: #ffb7bc;
}

.gap-cell.positive {
  background: rgba(38, 215, 115, 0.25);
  color: #99f0bd;
}

.config-tab-panel {
  display: none;
}

.config-tab-panel.active {
  display: flex;
}

.config-detail-table {
  margin-top: 8px;
}

.footer-brand {
  color: #9dc3eb;
  font-weight: 800;
}

.footer-right {
  margin-left: auto;
}

.staff-overlay-off .activity-strip,
.staff-overlay-off .zone-badge {
  opacity: 0.22;
}

@media (max-width: 900px) {
  .app-shell {
    min-width: 1180px;
  }
}
