:root {
  color-scheme: light;
  --blue-50: #eaf4fd;
  --blue-100: #cfe6fa;
  --blue-500: #1683e0;
  --blue-600: #0e6bc0;
  --blue-700: #0d52a8;
  --nav-800: #0d3f73;
  --nav-900: #0a2b50;
  --ink-700: #122a45;
  --ink-600: #344150;
  --ink-500: #5a6776;
  --ink-400: #8a97a6;
  --line: #dde3e9;
  --line-soft: #eef2f6;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --page: #eef1f5;
  --success: #1e9e6a;
  --success-bg: #e4f4ec;
  --warning: #e0921a;
  --warning-bg: #fbf0dc;
  --danger: #d84a4a;
  --danger-bg: #fbe7e7;
  --purple: #7a5cc4;
  --purple-bg: #ece8f7;
  --term-bg: #04140c;
  --term-panel: #06190f;
  --term-line: #0c3a22;
  --term-green: #46e283;
  --shadow-sm: 0 1px 3px rgba(18, 42, 69, 0.08);
  --shadow-md: 0 8px 24px rgba(18, 42, 69, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-700);
  font-family: Mulish, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

input,
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-700);
  outline: none;
}

input,
select {
  min-height: 38px;
  padding: 8px 11px;
}

textarea {
  min-height: 76px;
  padding: 10px 11px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(22, 131, 224, 0.15);
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 800;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.muted {
  color: var(--ink-400);
}

.subtle {
  color: var(--ink-500);
}

.login-page {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(420px, 1.1fr);
  min-height: 100vh;
  background: #fff;
}

.login-form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: linear-gradient(180deg, #fbfcfd 0%, #eef1f5 100%);
}

.login-card {
  width: min(420px, 100%);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 54px;
}

.aero-mark {
  width: 30px;
  height: 23px;
  flex: none;
  background: linear-gradient(135deg, #6cc6ff, var(--blue-500));
  clip-path: polygon(0 0, 100% 50%, 0 100%, 26% 50%);
}

.aero-word {
  color: var(--nav-800);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.login-card h1 {
  margin: 0 0 8px;
  color: var(--nav-800);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.login-copy {
  margin: 0 0 28px;
  color: var(--ink-500);
}

.login-form {
  display: grid;
  gap: 17px;
}

.login-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.login-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(155deg, #0e4379 0%, #0a3360 52%, #06182f 100%);
  color: #fff;
}

.login-hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: 50%;
  width: 850px;
  height: 660px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(108, 198, 255, 0.16), rgba(22, 131, 224, 0.03));
  clip-path: polygon(0 0, 100% 50%, 0 100%, 24% 50%);
}

.login-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 48px;
  text-align: center;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 38px;
}

.hero-brand .aero-mark {
  width: 74px;
  height: 56px;
}

.hero-brand .aero-word {
  color: #fff;
  font-size: 84px;
  font-weight: 700;
  letter-spacing: 0;
}

.login-hero h2 {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
}

.login-foot {
  margin-top: 38px;
  color: #6cc6ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  background: linear-gradient(180deg, var(--nav-800), var(--nav-900));
  color: #fff;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 20px 14px;
}

.sidebar-brand .aero-word {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.module-badge {
  margin-left: auto;
  border: 1px solid #2b537f;
  border-radius: 4px;
  padding: 3px 5px;
  color: #8fc4f0;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 12px 10px;
}

.nav-section {
  padding: 13px 8px 6px;
  color: #6e9bc8;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a9c2dd;
  padding: 9px 11px;
  text-align: left;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.active {
  background: rgba(108, 198, 255, 0.16);
  color: #fff;
  font-weight: 800;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3d6491;
}

.nav-item.active .nav-dot {
  background: #6cc6ff;
}

.sidebar-user {
  padding: 14px 16px 16px;
}

.user-strip {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #1d4670;
  padding: 12px 6px 0;
}

.avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #6cc6ff, var(--blue-500));
  color: #fff;
  font-weight: 900;
}

.user-name {
  overflow: hidden;
  color: #eaf2fb;
  font-size: 12.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  color: #7fa6cd;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  border-bottom: 1px solid #e2e7ec;
  background: #fff;
  padding: 0 24px;
}

.context-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.context-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #e2e7ec;
  border-radius: 8px;
  background: #f7f9fb;
  padding: 4px 8px 4px 5px;
}

.context-select select {
  min-height: 26px;
  width: auto;
  min-width: 86px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink-700);
  font-weight: 900;
}

.carrier-chip {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: var(--nav-800);
  color: #6cc6ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.env-pill,
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  background: #e7f1fc;
  color: var(--blue-700);
  padding: 5px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.live-pill {
  border-color: transparent;
  background: var(--success-bg);
  color: #0f6e48;
  font-family: Mulish, sans-serif;
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.pulse {
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.top-search {
  position: relative;
  flex: 1;
  max-width: 420px;
  min-width: 180px;
  margin-left: 4px;
}

.top-search input {
  height: 38px;
  border-radius: 8px;
  background: var(--surface-soft);
  padding-left: 34px;
  font-size: 13px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
  border: 2px solid #9aa6b2;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: #9aa6b2;
  transform: rotate(45deg);
}

.content {
  padding: 24px 30px 60px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--ink-400);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  color: var(--ink-700);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

h2 {
  color: var(--ink-700);
  font-size: 17px;
  font-weight: 900;
}

h3 {
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 900;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--nav-800);
  padding: 8px 14px;
  font-weight: 800;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.btn.primary {
  border-color: var(--blue-500);
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 2px 6px rgba(22, 131, 224, 0.28);
}

.btn.primary:hover {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: #fff;
}

.btn.success {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.btn.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
}

.icon-btn {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-600);
  font-weight: 900;
}

.grid {
  display: grid;
  gap: 14px;
}

.kpi-grid {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  align-items: start;
}

.two-col {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  align-items: start;
}

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

.panel,
.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-header,
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-footer {
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
  background: #f7f9fb;
}

.panel-body {
  padding: 16px 18px;
}

.kpi-card {
  border-top: 3px solid var(--blue-500);
  padding: 14px 16px;
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-400);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.kpi-value {
  margin-top: 8px;
  color: var(--ink-700);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.kpi-sub {
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
}

.filters {
  display: grid;
  grid-template-columns: 148px 126px 128px 126px 126px 1fr 128px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th {
  height: 36px;
  border-bottom: 1px solid var(--line-soft);
  background: #f7f9fb;
  color: #7c8694;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: left;
  text-transform: uppercase;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table td {
  border-top: 1px solid #f1f4f7;
  color: var(--ink-600);
  font-size: 13px;
}

.data-table tr[data-action],
.clickable {
  cursor: pointer;
}

.data-table tr[data-action]:hover,
.clickable:hover {
  background: #f5f9fd;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--ink-600);
  background: #e9edf1;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.success,
.status-pill.open,
.status-pill.boarded,
.status-pill.on-time,
.status-pill.departed,
.status-pill.closed {
  background: var(--success-bg);
  color: #0f6e48;
}

.status-pill.info,
.status-pill.boarding,
.status-pill.check-in,
.status-pill.checked-in,
.status-pill.issued {
  background: #e7f1fc;
  color: var(--blue-700);
}

.status-pill.warn,
.status-pill.delayed,
.status-pill.pending,
.status-pill.needs-docs,
.status-pill.final-call {
  background: var(--warning-bg);
  color: #9a6610;
}

.status-pill.danger,
.status-pill.cancelled,
.status-pill.offloaded,
.status-pill.no-show {
  background: var(--danger-bg);
  color: #a83232;
}

.status-pill.purple,
.status-pill.diverted {
  background: var(--purple-bg);
  color: #553f96;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #f7f9fb;
  padding: 5px 9px;
  color: var(--ink-600);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.flight-hero {
  display: grid;
  grid-template-columns: auto minmax(250px, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
}

.flight-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flight-title strong {
  color: var(--ink-700);
  font-size: 30px;
  font-weight: 900;
}

.route-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.station-code {
  color: var(--ink-700);
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 900;
}

.route-arrow {
  width: 44px;
  height: 16px;
  display: flex;
  align-items: center;
}

.route-arrow::before {
  content: "";
  flex: 1;
  height: 2px;
  background: #c3ccd6;
}

.route-arrow::after {
  content: "";
  width: 13px;
  height: 10px;
  background: var(--blue-500);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 26% 50%);
}

.action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  background: #f7f9fb;
  padding: 12px 22px;
}

.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #e2e7ec;
  margin: 18px 0;
  overflow-x: auto;
}

.tab {
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: var(--ink-400);
  padding: 11px 0;
  font-weight: 800;
  white-space: nowrap;
}

.tab.active {
  border-bottom-color: var(--blue-500);
  color: var(--blue-500);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: var(--ink-500);
  font-size: 12.5px;
}

.metric-row strong {
  color: var(--ink-700);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
}

.progress {
  height: 7px;
  border-radius: 4px;
  background: var(--line-soft);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--blue-500);
}

.seat-map {
  display: grid;
  grid-template-columns: repeat(7, 34px);
  gap: 7px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #f7f9fb;
}

.seat {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border: 1px solid #c9d4df;
  border-radius: 6px;
  background: #fff;
  color: var(--ink-700);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
}

.seat.available:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.seat.assigned {
  border-color: var(--blue-500);
  background: #e7f1fc;
  color: var(--blue-700);
}

.seat.blocked {
  border-color: #d9b8b8;
  background: var(--danger-bg);
  color: #a83232;
}

.seat.held {
  border-color: #eacb88;
  background: var(--warning-bg);
  color: #9a6610;
}

.seat.aisle {
  border: 0;
  background: transparent;
  color: var(--ink-400);
}

.timeline {
  display: grid;
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px 14px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid #f4f6f9;
}

.timeline-time {
  color: var(--ink-500);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-align: right;
}

.timeline-pin {
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border: 2.5px solid var(--blue-100);
  border-radius: 50%;
  background: var(--blue-500);
}

.alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  background: #e7f1fc;
  padding: 12px 14px;
  color: var(--blue-700);
  font-weight: 700;
}

.alert-banner.warn {
  border-color: #f0dcb0;
  background: var(--warning-bg);
  color: #7a5410;
}

.alert-banner.danger {
  border-color: #eccaca;
  background: var(--danger-bg);
  color: #a83232;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 26, 48, 0.28);
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(520px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: -12px 0 32px rgba(18, 42, 69, 0.18);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 20px;
}

.drawer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-menu {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.admin-menu button {
  justify-content: flex-start;
  border-color: transparent;
}

.admin-menu button.active {
  background: #e7f1fc;
  color: var(--blue-700);
}

.terminal-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  height: 100vh;
  background: var(--term-bg);
}

.terminal-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
}

.term-status,
.term-input,
.term-hints {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--term-line);
  background: #051a0f;
  color: #1f8a4e;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 9px 22px;
}

.term-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px;
  background: var(--term-bg);
  color: #34c46e;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.term-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.term-prompt {
  color: var(--term-green);
  font-weight: 800;
}

.term-command {
  color: #e8fff2;
  font-weight: 700;
}

.term-input {
  border-top: 1px solid var(--term-line);
  border-bottom: 0;
  background: var(--term-panel);
}

.term-input input {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #e8fff2;
  font-family: "JetBrains Mono", monospace;
  box-shadow: none;
}

.term-input input:focus {
  box-shadow: none;
}

.term-hints {
  border-top: 1px solid var(--term-line);
  border-bottom: 0;
  color: #1f8a4e;
  font-size: 10.5px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(560px, calc(100vw - 32px));
  border-radius: 8px;
  background: var(--ink-700);
  color: #fff;
  box-shadow: var(--shadow-md);
  padding: 12px 18px;
  transform: translateX(-50%);
  font-weight: 700;
}

.empty {
  padding: 42px 20px;
  color: var(--ink-400);
  text-align: center;
}

.divider {
  height: 1px;
  background: var(--line-soft);
  margin: 10px 0;
}

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .dashboard-grid,
  .two-col,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }
}

@media (max-width: 820px) {
  .login-page,
  .app-shell,
  .terminal-layout {
    grid-template-columns: 1fr;
  }

  .login-hero {
    display: none;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    display: flex;
    overflow-x: auto;
  }

  .nav-section {
    display: none;
  }

  .nav-item {
    min-width: max-content;
  }

  .topbar,
  .context-controls {
    flex-wrap: wrap;
    height: auto;
    min-height: 62px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .content {
    padding: 18px 16px 48px;
  }

  .page-head,
  .flight-hero {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .kpi-grid,
  .three-col,
  .filters,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    min-width: 760px;
  }

  .panel {
    overflow-x: auto;
  }
}

/* ============================================================
   Polish layer - matches the Aero design mockups
   ============================================================ */

/* Sidebar CTA + footer */
.sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 9px;
  background: #6cc6ff;
  color: var(--nav-900);
  font-weight: 800;
  font-size: 13px;
}

.sidebar-cta:hover {
  background: #8ad3ff;
}

.sidebar-cta .plus {
  margin-top: -2px;
  font-size: 17px;
  line-height: 0;
}

/* Inline SVG icons inside square icon buttons */
.icon-btn svg {
  width: 16px;
  height: 16px;
}

.user-strip .icon-btn {
  border-color: transparent;
  background: transparent;
  color: #7fa6cd;
}

.user-strip .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Login hero headline must read white on the navy panel
   (the global h2 color rule would otherwise make it illegible) */
.login-hero h2 {
  color: #fff;
}

/* Keep topbar pills from collapsing into each other */
.context-select,
.env-pill,
.live-pill {
  flex: none;
}

/* Topbar date / time cluster */
.topbar-clock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding-left: 12px;
  border-left: 1px solid #e2e7ec;
  color: var(--ink-400);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.topbar-clock strong {
  color: var(--ink-700);
  font-weight: 800;
}

/* Arrow glyph for buttons (sign-in, dispatch) */
.btn-arrow {
  width: 15px;
  height: 11px;
  flex: none;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 26% 50%);
}

/* PNR record-locator hero */
.pnr-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 22px 24px;
}

.pnr-locator .pnr-code {
  margin-top: 5px;
  color: var(--nav-800);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
}

.pnr-locator .subtle {
  margin-top: 7px;
  font-size: 12.5px;
}

.pnr-route {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.pnr-stats {
  display: flex;
  gap: 12px;
}

.pnr-stat {
  min-width: 124px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.pnr-stat p {
  margin: 0 0 6px;
}

.pnr-stat strong {
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 800;
}

/* Seat map legend */
.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 14px;
}

.seat-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
}

.seat-swatch {
  width: 16px;
  height: 14px;
  flex: none;
  border: 1px solid #c9d4df;
  border-radius: 4px;
  background: #fff;
}

.seat-swatch.assigned {
  border-color: var(--blue-500);
  background: #e7f1fc;
}

.seat-swatch.held {
  border-color: #eacb88;
  background: var(--warning-bg);
}

.seat-swatch.blocked {
  border-color: #d9b8b8;
  background: var(--danger-bg);
}

@media (max-width: 980px) {
  .topbar-clock {
    display: none;
  }

  .pnr-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
