@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0e13;
  --panel: #12171f;
  --panel-2: #171e28;
  --line: #29313b;
  --muted: #87909d;
  --soft: #b7bec8;
  --white: #f5f7fa;
  --lime: #d8ff62;
  --orange: #ff9f1c;
  --cyan: #61e7db;
  --red: #ff6b6b;
  --yellow: #ffcf67;
  --shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 2%, rgba(216, 255, 98, .08), transparent 22rem),
    linear-gradient(180deg, #0c1016 0%, #0b0e13 42%, #090c11 100%);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -.01em;
}
button, a { font: inherit; }
a { color: inherit; }
.shell { width: min(100%, 760px); margin: 0 auto; padding: 0 18px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 70px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.brand-mark { width: 20px; height: 20px; border: 1px solid var(--lime); border-radius: 50%; position: relative; display: grid; place-items: center; }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; inset: 4px; border: 1px solid var(--lime); border-radius: 50%; opacity: .48; }
.brand-mark::after { inset: 8px; background: var(--lime); border: 0; opacity: 1; }
.topbar-meta { display: flex; align-items: center; gap: 8px; color: var(--lime); font: 10px 'DM Mono', monospace; letter-spacing: .09em; }
.live-dot, .status-orb, .health-dot { border-radius: 50%; display: inline-block; background: var(--lime); box-shadow: 0 0 0 4px rgba(216,255,98,.08), 0 0 15px rgba(216,255,98,.62); }
.live-dot { width: 6px; height: 6px; }
.hero { padding: 31px 0 24px; border-bottom: 1px solid var(--line); }
.eyebrow, .section-kicker { color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .13em; }
.hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-top: 13px; }
h1, h2, p { margin: 0; }
h1 { color: var(--lime); font-size: clamp(45px, 13vw, 74px); line-height: .9; letter-spacing: -.07em; font-weight: 600; }
.route-title { display: flex; align-items: center; gap: 12px; margin-top: 10px; font: 600 clamp(20px, 5.8vw, 30px) 'DM Mono', monospace; letter-spacing: -.08em; }
.route-arrow { color: var(--orange); font-size: 22px; }
.route-caption { margin-top: 6px; color: var(--muted); font-size: 12px; }
.route-caption span { color: #5e6874; padding: 0 5px; }
.status-badge, .small-chip, .context-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(216,255,98,.28); color: var(--lime); padding: 7px 9px; font: 10px 'DM Mono', monospace; letter-spacing: .08em; white-space: nowrap; }
.status-badge { margin-top: 2px; }
.status-orb { width: 6px; height: 6px; }
.hero-foot { display: flex; gap: 9px; margin-top: 25px; color: var(--soft); font: 10px 'DM Mono', monospace; letter-spacing: .08em; }
.slash { color: var(--orange); }
.ping-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ping-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ping-main strong, .ping-main span { display: block; }
.ping-main strong { color: var(--lime); font: 11px 'DM Mono', monospace; letter-spacing: .03em; }
.ping-main > div > span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.ping-signal { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.ping-signal i { display: block; width: 3px; background: var(--lime); border-radius: 3px; animation: pingbars 1s ease-in-out infinite; }
.ping-signal i:nth-child(1) { height: 7px; animation-delay: -.3s; }
.ping-signal i:nth-child(2) { height: 13px; animation-delay: -.15s; }
.ping-signal i:nth-child(3) { height: 19px; }
@keyframes pingbars { 0%,100% { opacity: .28; transform: scaleY(.55); } 50% { opacity: 1; transform: scaleY(1); } }
.ghost-button { border: 1px solid var(--line); background: transparent; color: var(--white); padding: 10px 12px; font: 10px 'DM Mono', monospace; letter-spacing: .08em; cursor: pointer; }
.ghost-button:hover, .ghost-button:focus-visible { border-color: var(--lime); color: var(--lime); outline: none; }
.stats-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 15px 0 18px; }
.stats-line div { min-width: 0; }
.stats-line span, .telemetry-grid span, .boarding-item span, .passenger-line span { display: block; color: var(--muted); font: 9px 'DM Mono', monospace; letter-spacing: .11em; }
.stats-line strong { display: block; margin-top: 6px; overflow: hidden; color: var(--white); text-overflow: ellipsis; white-space: nowrap; font: 12px 'DM Mono', monospace; }
.panel { background: linear-gradient(140deg, rgba(23,30,40,.96), rgba(16,21,29,.96)); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 13px; }
.panel-heading, .sources-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading { padding: 17px 17px 15px; border-bottom: 1px solid var(--line); }
h2 { margin-top: 6px; font-size: 19px; letter-spacing: -.04em; font-weight: 500; }
.small-chip, .context-chip { padding: 5px 7px; font-size: 9px; color: var(--soft); border-color: var(--line); }
.context-chip { color: var(--cyan); border-color: rgba(97,231,219,.28); }
.route-visual { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 27px 17px 22px; }
.airport strong { display: block; color: var(--orange); font: 600 22px 'DM Mono', monospace; letter-spacing: -.08em; }
.airport span { display: block; margin-top: 4px; color: var(--muted); font: 8px 'DM Mono', monospace; letter-spacing: .06em; }
.airport.right { text-align: right; }
.route-track { position: relative; height: 45px; display: flex; align-items: center; }
.track-line { position: absolute; left: 0; right: 0; height: 1px; background: repeating-linear-gradient(to right, var(--line) 0 5px, transparent 5px 10px); }
.track-dot { position: absolute; left: 0; width: 7px; height: 7px; border: 2px solid var(--bg); background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,159,28,.14); }
.track-label { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); color: var(--muted); white-space: nowrap; font: 8px 'DM Mono', monospace; letter-spacing: .08em; }
.telemetry-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.telemetry-grid > div { padding: 13px 11px 14px; border-right: 1px solid var(--line); }
.telemetry-grid > div:last-child { border-right: 0; }
.telemetry-grid strong { display: block; margin-top: 7px; font: 13px 'DM Mono', monospace; color: var(--soft); }
.panel-note { padding: 13px 17px 15px; color: var(--muted); font-size: 11px; line-height: 1.42; border-top: 1px solid var(--line); }
.boarding-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.boarding-item { min-height: 73px; padding: 14px 11px; border-right: 1px solid var(--line); }
.boarding-item:first-child { padding-left: 17px; }
.boarding-item:last-child { border-right: 0; }
.boarding-item strong { display: block; margin-top: 8px; color: var(--orange); font: 600 18px 'DM Mono', monospace; letter-spacing: -.06em; }
.boarding-item.large strong { font-size: 16px; }
.passenger-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 17px 16px; }
.passenger-line strong { color: var(--white); font-size: 13px; font-weight: 500; }
.timeline { padding: 3px 17px 9px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 16px 1fr auto; gap: 11px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-rail { position: relative; display: flex; justify-content: center; }
.timeline-rail::before { content: ''; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--line); border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); z-index: 1; }
.timeline-item.context .timeline-rail::before { background: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 0 12px rgba(216,255,98,.4); }
.timeline-item.pending .timeline-rail::after { content: ''; position: absolute; top: 11px; bottom: -14px; width: 1px; background: var(--line); }
.timeline-item:last-child .timeline-rail::after { display: none; }
.timeline-copy strong, .timeline-copy span { display: block; }
.timeline-copy strong { font-size: 13px; font-weight: 500; }
.timeline-copy span, .timeline-source { margin-top: 3px; color: var(--muted); font-size: 10px; }
.timeline-value { color: var(--soft); text-align: right; font: 10px 'DM Mono', monospace; }
.sources-section { padding-top: 5px; }
.sources-heading { padding: 8px 0 10px; }
.sources-count { color: var(--lime); font: 10px 'DM Mono', monospace; white-space: nowrap; }
.sources-intro { color: var(--muted); font-size: 11px; line-height: 1.45; max-width: 600px; }
.source-list { margin-top: 13px; border-top: 1px solid var(--line); }
.source-item { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.health-dot { width: 7px; height: 7px; box-shadow: none; }
.health-dot.reachable { background: var(--lime); }
.health-dot.degraded, .health-dot.timeout { background: var(--yellow); }
.health-dot.unavailable { background: var(--red); }
.health-dot.checking { background: var(--muted); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.source-copy strong { display: block; font-size: 12px; font-weight: 500; }
.source-copy span { display: block; margin-top: 3px; color: var(--muted); font: 9px 'DM Mono', monospace; }
.source-link { color: var(--soft); text-decoration: none; font: 10px 'DM Mono', monospace; }
.source-link:hover, .source-link:focus-visible { color: var(--lime); outline: none; }
.footer-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 27px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: var(--bg); background: var(--lime); font: 700 9px 'DM Mono', monospace; }
.footer-note p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.footer-note strong { color: var(--soft); font-weight: 500; }
.weather-map-wrap { position: relative; background: #0c1720; }
#weatherMap { position: relative; height: 278px; width: 100%; overflow: hidden; background: radial-gradient(circle at 60% 42%, rgba(97,231,219,.12), transparent 28%), linear-gradient(150deg, #132b3b, #0e1823); }
#weatherMap::before { content: ''; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(126,171,187,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(126,171,187,.18) 1px, transparent 1px); background-size: 28px 28px; }
#radarImage { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; opacity: .68; mix-blend-mode: screen; }
.route-svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; }
.route-svg line { stroke: var(--orange); stroke-width: 1.15; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(255,159,28,.65)); }
.route-svg circle { fill: var(--lime); stroke: var(--bg); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.map-airport { position: absolute; z-index: 3; color: var(--white); font: 10px 'DM Mono', monospace; letter-spacing: .08em; text-shadow: 0 1px 4px var(--bg); }
.map-sfb { left: 9%; bottom: 8%; }
.map-ind { right: 9%; top: 8%; }
.map-route-tag, .radar-legend { position: absolute; z-index: 500; background: rgba(11,14,19,.88); border: 1px solid rgba(216,255,98,.25); color: var(--lime); padding: 7px 8px; font: 9px 'DM Mono', monospace; letter-spacing: .08em; pointer-events: none; }
.map-route-tag { top: 12px; left: 12px; }
.map-route-tag span { color: var(--orange); padding: 0 5px; }
.radar-legend { right: 12px; bottom: 12px; display: flex; align-items: center; gap: 5px; color: var(--soft); border-color: var(--line); font-size: 8px; }
.legend-low, .legend-high { width: 11px; height: 5px; display: inline-block; }
.legend-low { background: #56d7cc; }
.legend-high { background: #f54b7d; margin-left: 3px; }
.radar-meta { display: grid; grid-template-columns: 1.25fr 1fr 1.5fr; gap: 10px; padding: 13px 17px 14px; border-top: 1px solid var(--line); }
.radar-meta > div span, .radar-opacity { display: block; color: var(--muted); font: 9px 'DM Mono', monospace; letter-spacing: .11em; }
.radar-meta > div strong { display: block; margin-top: 7px; color: var(--soft); font: 11px 'DM Mono', monospace; }
.radar-opacity { align-self: center; }
.radar-opacity input { display: block; width: 100%; margin-top: 8px; accent-color: var(--lime); }
.weather-panel .panel-note strong { color: var(--cyan); font-weight: 500; }

@media (min-width: 700px) {
  .shell { padding-left: 30px; padding-right: 30px; }
  .hero { padding-top: 44px; }
  .panel { margin-bottom: 16px; }
  .route-visual { padding-top: 34px; padding-bottom: 29px; }
}
