/* airport3d.live's look, in NS colours. */
:root {
  --ink: #0f172a;
  --quiet: #475569;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(15, 23, 42, 0.12);
  --blue: #003082;
  --yellow: #ffc917;
  --orange: #ff8a1f;
  --green: #2fbf71;
  font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #dbe9fb; }

.stage { position: fixed; inset: 0; overflow: hidden; }
.stage__canvas { position: absolute; inset: 0; touch-action: none; }
.stage__labels { position: absolute; inset: 0; pointer-events: none; }

.tag {
  position: absolute; left: 0; top: 0;
  padding: 1px 6px; border-radius: 6px;
  background: rgba(15, 23, 42, 0.85); color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  border-left: 4px solid var(--yellow);
}

.panel {
  position: absolute; z-index: 1;
  background: var(--panel); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}
.panel--top {
  top: 16px; left: 16px; right: 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px;
}
.panel--top h1 { margin: 0; font-size: 18px; }
.panel--top h1 span { color: var(--blue); }

.status { display: inline-flex; align-items: center; gap: 6px; color: var(--quiet); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.dot[data-state='live'] { background: var(--green); box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.2); }
.dot[data-state='demo'] { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.2); }

.panel--top .field { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--quiet); }
.panel--top .field--grow { margin-left: auto; }
.panel--top .field select, .panel--top .field input {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px;
}
.panel--top .field input { width: 12rem; }
.panel--top .field select:focus-visible, .panel--top .field input:focus-visible, .panel button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.panel button {
  font: inherit; font-weight: 600; color: #fff; background: var(--blue);
  border: 0; border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.panel--follow { top: 84px; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 10px 8px 16px; display: flex; gap: 10px; align-items: center; }
.panel--follow span { font-weight: 600; }
.panel--follow[hidden], .panel--warn[hidden] { display: none; }
.panel--warn { left: 16px; bottom: 80px; max-width: 520px; padding: 12px 16px; margin: 0; }

.legend {
  position: absolute; z-index: 1; left: 12px; bottom: 40px;
  display: flex; gap: 12px; margin: 0; padding: 6px 10px; list-style: none;
  border-radius: 8px; background: rgba(15, 23, 42, 0.85); color: #fff;
  font-size: 12px; font-weight: 600;
}
.legend li { display: flex; align-items: center; gap: 6px; }
.legend__line { width: 16px; height: 3px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); }
.legend__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--blue); box-shadow: 0 0 0 1px #fff; }

.credits {
  position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1;
  color: var(--quiet); font-size: 12px;
}
.credits a { color: inherit; }

@media (max-width: 640px) {
  .panel--top { left: 8px; right: 8px; top: 8px; gap: 8px 12px; padding: 8px 12px; }
  .panel--top .field--grow { margin-left: 0; }
  .panel--top .field input { width: 9rem; }
  .legend { flex-wrap: wrap; left: 8px; right: 8px; bottom: 56px; gap: 8px; }
  .credits { left: 8px; right: 8px; bottom: 6px; font-size: 11px; }
}

.panel__link { color: var(--blue); font-weight: 600; text-decoration: none; }
.panel__link:hover { text-decoration: underline; }
