:root {
  --bg: #0a0e1a;
  --surface: #131826;
  --surface-2: #1a2033;
  --border: #2a3148;
  --text: #e8eaf0;
  --text-dim: #8a92a8;
  --text-muted: #5b6480;
  --accent: #4a9eff;
  --green: #4ade80;
  --amber: #fbbf24;
  --orange: #fb923c;
  --red: #f87171;
  --blue: #60a5fa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 24px 16px;
}
.container { max-width: 1280px; margin: 0 auto; }
header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.brand h1 {
  font-size: 22px; font-weight: 500; letter-spacing: -0.3px;
}
.brand-logo { height: 48px; width: auto; display: block; }
.brand .subtitle {
  font-size: 11px; letter-spacing: 2px; color: var(--text-muted);
  text-transform: uppercase; margin-top: 2px;
}
.clock {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 24px; font-weight: 500; color: #ffffff;
}
.clock-date { font-size: 11px; color: var(--text-muted); text-align: right; text-transform: uppercase; letter-spacing: 1px; }

.nav-links { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  padding: 10px 18px; font-size: 13px;
  border-bottom: 2px solid transparent; transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom-color: var(--accent); }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.panel-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.panel-header .icon { font-size: 16px; }
.panel-header h2 {
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
}
.panel-header .count {
  margin-left: auto; font-size: 11px; color: var(--text-muted);
  background: var(--surface-2); padding: 3px 8px; border-radius: 999px;
}
.fids-window {
  font-size: 11px; color: var(--text-muted); font-family: ui-monospace, monospace;
  margin-bottom: 14px; text-align: center; letter-spacing: 0.5px;
}

.flight-row {
  display: grid;
  grid-template-columns: 55px 60px 72px 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 10px 12px; margin-bottom: 6px;
  background: var(--surface-2); border-radius: 8px;
  border-left: 3px solid transparent;
  transition: border-color 0.15s;
}
.flight-row:hover { border-left-color: var(--accent); }
.flight-row.flight-past { opacity: 0.5; }
.flight-row.flight-past:hover { opacity: 0.8; }
.flight-time { font-family: ui-monospace, monospace; font-size: 15px; font-weight: 500; }
.flight-time-est { font-size: 10px; color: var(--amber); font-family: ui-monospace, monospace; }
.airline-logo-wrap { display: flex; align-items: center; justify-content: center; width: 60px; height: 40px; }
.airline-logo { width: 60px; height: 40px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.airline-code-badge {
  width: 60px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700;
  color: var(--text-dim); letter-spacing: 0.5px;
}
.flight-number { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 600; color: var(--text); }
.flight-airline { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.flight-city { font-size: 14px; font-weight: 500; }
.flight-city-code { font-size: 10px; color: var(--text-muted); font-family: ui-monospace, monospace; letter-spacing: 1px; }
.flight-resource { font-size: 11px; color: var(--text-dim); font-family: ui-monospace, monospace; }
.flight-status {
  font-size: 10px; padding: 3px 8px; border-radius: 4px;
  font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  white-space: nowrap;
}
.status-on { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.status-checkin { background: rgba(251, 146, 60, 0.22); color: var(--orange); border: 1px solid rgba(251, 146, 60, 0.5); }
.status-delayed { background: rgba(251, 191, 36, 0.15); color: var(--amber); }
.status-cancelled { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.status-arrived { background: rgba(96, 165, 250, 0.15); color: var(--blue); }
.status-default { background: rgba(138, 146, 168, 0.15); color: var(--text-dim); }

.empty, .loading, .error {
  text-align: center; padding: 30px 0; font-size: 13px;
}
.empty { color: var(--text-muted); }
.loading { color: var(--text-dim); }
.error { color: var(--red); }

footer {
  margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted); text-align: center;
}
.footer-meta { font-family: ui-monospace, monospace; }
