/* SkyNetwork — quiet and precise, light or dark. One accent (chart blue); live data reads like ATC strips. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #f4f6f9;
  --ink: #0e1726;
  --slate: #5b6878;
  --line: #e2e7ee;
  --line-strong: #c8d0db;
  --field: #cfd6e0;
  --accent: #1f5fbf;
  --accent-ink: #174a96;
  --on-accent: #ffffff;
  --live: #1a9c5b;
  --warn: #c9851a;
  --danger: #c23b3b;
  --accent-soft: #eaf1fb; --accent-soft-line: #cfdef4;
  --ok-soft: #e9f6ef; --ok-soft-line: #cdebd9; --ok-text: #17683f;
  --warn-soft: #fbf3e5; --warn-soft-line: #f1dfbd;
  --danger-soft: #fbecec; --danger-soft-line: #f2d0d0; --danger-text: #8f2b2b;
  --dot-off: #a9b3c0;
  --header-bg: rgba(255,255,255,.92);
  --panel-bg: rgba(255,255,255,.96);
  --shadow: rgba(14,23,38,.08);
  --staff-bar-bg: #0e1726; --staff-bar-text: #c9d2de; --staff-bar-strong: #ffffff;
  /* Map: sector borders, the selected aircraft's route, airport diagrams when zoomed in. */
  --map-fir: rgba(91,104,120,.45);
  --map-route: #1f5fbf;
  --apt-apron: #dfe4eb; --apt-building: #c9d1dc; --apt-runway: #7d8899; --apt-taxiway: #aab4c1; --apt-label: #5b6878; --apt-rwy: #c2410c;

  /* Strip edges by facility, as on a controller's strip board. */
  --f-del: #7a8aa0;
  --f-gnd: #3a9a6a;
  --f-twr: #c9851a;
  --f-app: #1f5fbf;
  --f-ctr: #6b4fbf;
  --f-pilot: #9aa6b5;

  --display: "Manrope", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 8px;
  --wrap: 1120px;
}

/* Dark theme: chosen with the header switch (data-theme), otherwise the system setting. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f141b;
  --surface: #161d27;
  --ink: #e6ebf2;
  --slate: #97a4b6;
  --line: #243041;
  --line-strong: #34435a;
  --field: #34435a;
  --accent: #5b9bf0;
  --accent-ink: #8ab8f6;
  --on-accent: #07101d;
  --live: #3ccf85;
  --warn: #e3ab4a;
  --danger: #f07474;
  --accent-soft: rgba(91,155,240,.14); --accent-soft-line: rgba(91,155,240,.32);
  --ok-soft: rgba(60,207,133,.12); --ok-soft-line: rgba(60,207,133,.3); --ok-text: #7fe0ae;
  --warn-soft: rgba(227,171,74,.12); --warn-soft-line: rgba(227,171,74,.3);
  --danger-soft: rgba(240,116,116,.12); --danger-soft-line: rgba(240,116,116,.32); --danger-text: #f6a3a3;
  --dot-off: #5a687c;
  --header-bg: rgba(15,20,27,.9);
  --panel-bg: rgba(22,29,39,.96);
  --shadow: rgba(0,0,0,.4);
  --staff-bar-bg: #06090d; --staff-bar-text: #9aa7b8; --staff-bar-strong: #e6ebf2;
  --f-del: #8a9ab0; --f-gnd: #4fb482; --f-twr: #e3ab4a; --f-app: #5b9bf0; --f-ctr: #9a83e6; --f-pilot: #5a687c;
  --map-fir: rgba(148,161,178,.35); --map-route: #79abf6;
  --apt-apron: #1b222c; --apt-building: #29323f; --apt-runway: #66728a; --apt-taxiway: #465266; --apt-label: #9aa6b5; --apt-rwy: #f07a4a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f141b;
    --surface: #161d27;
    --ink: #e6ebf2;
    --slate: #97a4b6;
    --line: #243041;
    --line-strong: #34435a;
    --field: #34435a;
    --accent: #5b9bf0;
    --accent-ink: #8ab8f6;
    --on-accent: #07101d;
    --live: #3ccf85;
    --warn: #e3ab4a;
    --danger: #f07474;
    --accent-soft: rgba(91,155,240,.14); --accent-soft-line: rgba(91,155,240,.32);
    --ok-soft: rgba(60,207,133,.12); --ok-soft-line: rgba(60,207,133,.3); --ok-text: #7fe0ae;
    --warn-soft: rgba(227,171,74,.12); --warn-soft-line: rgba(227,171,74,.3);
    --danger-soft: rgba(240,116,116,.12); --danger-soft-line: rgba(240,116,116,.32); --danger-text: #f6a3a3;
    --dot-off: #5a687c;
    --header-bg: rgba(15,20,27,.9);
    --panel-bg: rgba(22,29,39,.96);
    --shadow: rgba(0,0,0,.4);
    --staff-bar-bg: #06090d; --staff-bar-text: #9aa7b8; --staff-bar-strong: #e6ebf2;
    --f-del: #8a9ab0; --f-gnd: #4fb482; --f-twr: #e3ab4a; --f-app: #5b9bf0; --f-ctr: #9a83e6; --f-pilot: #5a687c;
  --map-fir: rgba(148,161,178,.35); --map-route: #79abf6;
  --apt-apron: #1b222c; --apt-building: #29323f; --apt-runway: #66728a; --apt-taxiway: #465266; --apt-label: #9aa6b5; --apt-rwy: #f07a4a;
}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; font-weight: 800; }
h2 { font-size: 26px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: saturate(1.4) blur(8px); position: sticky; top: 0; z-index: 1000; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 18px var(--display); color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 0; flex: 1; white-space: nowrap; }
.nav a, .user-nav a { color: var(--slate); font-weight: 500; padding: 6px 9px; border-radius: 6px; }
.nav a:hover, .user-nav a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav a.active { color: var(--ink); }
.user-nav { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.user-nav .me { display: inline-flex; align-items: center; gap: 8px; }
.user-nav .me .initials { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font: 700 11px var(--display); color: var(--ink); }
/* On desktop the account link is just the initials (name in the tooltip): the menu stays on one line in every language. */
.user-nav .me .name { display: none; }
.site-header .nav-toggle { display: none; }

/* ---- language and theme switches ---- */
.prefs { display: flex; align-items: center; gap: 2px; margin-right: 4px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; color: var(--slate); padding: 6px 8px; border-radius: 6px; font-size: 13px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); background: var(--surface); }
.lang-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px; box-shadow: 0 8px 28px var(--shadow); z-index: 1100; }
.lang-menu .menu a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink); }
.lang-menu .menu a:hover { background: var(--surface); text-decoration: none; }
.lang-menu .menu a.active { color: var(--accent); font-weight: 600; }
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 6px; background: none; color: var(--slate); cursor: pointer; }
.theme-toggle:hover { background: var(--surface); color: var(--ink); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px var(--body); padding: 9px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
}
.btn:hover { border-color: var(--line-strong); text-decoration: none; color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.btn-danger { color: var(--danger); }
.btn-small { padding: 5px 10px; font-size: 13px; }
.user-nav .btn-primary { color: var(--on-accent); padding: 8px 14px; }
.user-nav .btn-primary:hover { background: var(--accent-ink); }

/* ---- page ---- */
main { min-height: calc(100vh - 64px - 120px); }
.page { padding-top: 48px; padding-bottom: 72px; }
.page-head { margin-bottom: 28px; }
.page-head p { color: var(--slate); max-width: 640px; }
.eyebrow { font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head > a { white-space: nowrap; }
.band { background: var(--surface); }

/* ---- hero ---- */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 18px; color: var(--slate); max-width: 520px; margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.live-line { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--slate); font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px var(--ok-soft); flex: none; }
.dot.off { background: var(--dot-off); box-shadow: none; }
.hero-map { height: 380px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }

/* ---- strips (live traffic) ---- */
.strips { display: grid; gap: 6px; }
.strips.two { grid-template-columns: 1fr 1fr; }
.strip {
  display: grid; grid-template-columns: 124px 1fr auto; align-items: center; gap: 14px;
  padding: 10px 14px 10px 16px; border: 1px solid var(--line); border-left: 4px solid var(--f-pilot);
  border-radius: 6px; background: var(--paper);
}
.strip .cs { font: 600 14px var(--mono); letter-spacing: .02em; color: var(--ink); }
.strip .who { color: var(--slate); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .freq { font: 500 14px var(--mono); color: var(--ink); }
.strip.DEL { border-left-color: var(--f-del); }
.strip.GND { border-left-color: var(--f-gnd); }
.strip.TWR { border-left-color: var(--f-twr); }
.strip.APP { border-left-color: var(--f-app); }
.strip.CTR, .strip.FSS { border-left-color: var(--f-ctr); }
.strip a.cs:hover { color: var(--accent); }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--slate); text-align: center; }

/* ---- cards / lists ---- */
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--paper); }
a.card { color: inherit; display: block; }
a.card:hover { border-color: var(--line-strong); text-decoration: none; }
.card h3 { margin-bottom: 6px; }
.card .meta { color: var(--slate); font-size: 13px; margin-bottom: 8px; }
.date-chip { display: inline-block; font: 600 12px var(--mono); color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 5px; margin-bottom: 10px; }
.news-list { display: grid; }
.news-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item h3 { margin-bottom: 4px; }
.prose { max-width: 720px; }
.prose p { white-space: pre-line; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 13px var(--display); margin-bottom: 12px; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--slate); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; background: var(--surface); }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font: 600 11.5px var(--body); padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--slate); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { color: var(--live); background: var(--ok-soft); border-color: var(--ok-soft-line); }
.badge.warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-soft-line); }
.badge.danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-soft-line); }
.badge.accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-soft-line); }

/* ---- forms ---- */
.form { display: grid; gap: 16px; max-width: 560px; align-content: start; }
.form.wide { max-width: 820px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }
label .hint { font-weight: 400; color: var(--slate); font-size: 12.5px; }
input, select, textarea {
  font: 15px var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--field); border-radius: var(--radius); padding: 9px 12px; width: 100%;
}
input.mono, textarea.mono { font-family: var(--mono); font-size: 14px; text-transform: uppercase; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 4px; }
.alert { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 18px; }
.alert.error { border-color: var(--danger-soft-line); background: var(--danger-soft); color: var(--danger-text); }
.alert.ok { border-color: var(--ok-soft-line); background: var(--ok-soft); color: var(--ok-text); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 400; }
.auth-box { max-width: 420px; margin: 0 auto; }
.big-cid { font: 700 40px var(--mono); letter-spacing: .04em; margin: 8px 0 16px; }

/* ---- profile ---- */
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font: 700 22px var(--display); color: var(--slate); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 28px; }
.stat { padding: 16px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 22px var(--display); }
.stat span { color: var(--slate); font-size: 13px; }

/* ---- ratings on profiles ---- */
.rating-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.rating-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: grid; gap: 4px; }
.rating-card .label { font: 600 11.5px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.rating-card b { font-weight: 600; font-size: 14px; }

/* ---- side navigation (account, docs, staff) ---- */
.with-side { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.side a { display: block; padding: 7px 12px; border-radius: 6px; color: var(--slate); font-weight: 500; }
.side a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.side a.active { background: var(--surface); color: var(--ink); }
.side .side-title { font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin: 18px 12px 6px; }
.side .side-title:first-child { margin-top: 0; }
.side .count { float: right; font: 600 12px var(--mono); color: var(--accent); }

/* ---- map page ---- */
.map-page { position: relative; height: calc(100vh - 64px); }
.map-page #map { position: absolute; inset: 0; }
.map-panel, .map-card {
  position: absolute; z-index: 1000; background: var(--panel-bg);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px var(--shadow); backdrop-filter: blur(6px);
}
.map-panel { top: 16px; left: 16px; padding: 14px 16px; width: 280px; display: grid; gap: 10px; }
.map-panel b { font: 700 20px var(--display); }
.map-panel input[type=search] { padding: 7px 10px; font-size: 14px; }
.map-panel .check { font-size: 13px; color: var(--slate); }
.map-card { top: 16px; right: 16px; width: 360px; max-height: calc(100% - 32px); overflow: auto; }
.map-card[hidden] { display: none; }
.mc-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.mc-head .cs { font: 700 20px var(--mono); letter-spacing: .02em; line-height: 1.2; }
.mc-head .who { color: var(--slate); font-size: 13px; }
.mc-head .close { margin-left: auto; border: 0; background: none; color: var(--slate); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.mc-head .close:hover { color: var(--ink); }
.mc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mc-body { padding: 12px 16px 16px; display: grid; gap: 14px; }
.mc-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; }
.mc-route .apt b { display: block; font: 700 18px var(--mono); }
.mc-route .apt span { display: block; color: var(--slate); font-size: 12px; line-height: 1.3; }
.mc-route .apt:last-child { text-align: right; }
.mc-route .arrow { color: var(--slate); padding-top: 4px; }
.mc-progress { height: 6px; border-radius: 3px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.mc-progress i { display: block; height: 100%; background: var(--accent); }
.mc-progress-text { display: flex; justify-content: space-between; color: var(--slate); font-size: 12px; margin-top: 4px; }
.mc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mc-grid div { padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mc-grid div:nth-child(3n) { border-right: 0; }
.mc-grid div:nth-last-child(-n+3) { border-bottom: 0; }
.mc-grid span { display: block; color: var(--slate); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.mc-grid b { font: 600 14px var(--mono); }
.mc-block .eyebrow { margin-bottom: 4px; }
.mc-text { font: 13px/1.5 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; word-break: break-word; }
.mc-list { display: grid; gap: 6px; }

.plane { color: var(--ink); }
.plane svg { display: block; transition: transform .3s; }
.plane.ground { opacity: .6; }
.plane.selected { color: var(--accent); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 60%, transparent)); }
.atc-label { font: 600 11px var(--mono); color: #fff; background: var(--f-ctr); padding: 1px 5px; border-radius: 4px; white-space: nowrap; cursor: pointer; }
.atc-label.APP { background: var(--f-app); }
.apt-badge { display: inline-flex; align-items: center; gap: 2px; font: 600 11px var(--mono); background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 3px 1px 5px; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 24px var(--shadow); }
.apt-badge i { font-style: normal; color: #fff; border-radius: 3px; padding: 0 3px; }
.apt-badge .DEL { background: var(--f-del); }
.apt-badge .GND { background: var(--f-gnd); }
.apt-badge .TWR { background: var(--f-twr); }
.apt-badge .APP { background: var(--f-app); }
.apt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--map-route); }
.fir-label { background: none; border: 0; box-shadow: none; font: 700 11px var(--mono); color: var(--f-ctr); text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper); }
.fir-label::before { display: none; }
:root .leaflet-tooltip.wp-label { background: none; border: 0; box-shadow: none; padding: 0; font: 600 10px var(--mono); color: var(--ink); text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper), 0 0 2px var(--paper); }
.leaflet-tooltip.wp-label::before { display: none; }
.wp-hide .wp-label { display: none; }
/* Airport codes as on radar screens: plain bold text, the bigger airports a little brighter. */
.apt-code { display: inline-block; transform: translate(-50%, 9px); font: 700 11px var(--body); letter-spacing: .02em; color: var(--slate);
  opacity: .8; white-space: nowrap; cursor: pointer; text-shadow: 0 0 3px var(--paper), 0 0 2px var(--paper); }
.apt-code.r0 { color: var(--ink); opacity: .75; font-size: 12px; }
.apt-code:hover { color: var(--accent); opacity: 1; }
.apt-lbl { display: inline-block; transform: translate(-50%, -50%); font: 600 10px var(--mono); color: var(--apt-label); white-space: nowrap;
  text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper); }
.apt-lbl.rwy { font-size: 12px; font-weight: 700; color: var(--apt-rwy); }
.apt-lbl.twy { font-size: 11px; color: var(--ink); }
.apt-lbl.gate { color: var(--accent); }
:root .leaflet-container { font: 13px var(--body); background: var(--surface); }
:root .leaflet-tooltip { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: 0 6px 24px var(--shadow); font: 600 12px var(--mono); }
:root .leaflet-tooltip-top::before { border-top-color: var(--paper); }
:root .leaflet-bar a, :root .leaflet-bar a:hover { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
:root .leaflet-bar { border-color: var(--line) !important; }
:root .leaflet-popup-content-wrapper, :root .leaflet-popup-tip { background: var(--paper); color: var(--ink); box-shadow: 0 6px 24px var(--shadow); }
:root .leaflet-container .leaflet-control-attribution { background: color-mix(in srgb, var(--paper) 80%, transparent); color: var(--slate); }
:root .leaflet-container .leaflet-control-attribution a { color: var(--slate); }
.labels-pane { pointer-events: none; }


/* ---- staff area ---- */
.staff-bar { background: var(--staff-bar-bg); color: var(--staff-bar-text); font-size: 13px; }
.staff-bar .wrap { display: flex; align-items: center; gap: 12px; height: 34px; }
.staff-bar b { color: var(--staff-bar-strong); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.staff-bar a { color: var(--staff-bar-text); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.kpi b { display: block; font: 700 26px var(--display); }
.kpi span { color: var(--slate); font-size: 13px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; }
.simbrief-box { display: grid; gap: 12px; max-width: 820px; margin-bottom: 24px; padding: 16px 18px; }
.simbrief-box input { min-width: 240px; }
.thread { display: grid; gap: 10px; margin-bottom: 20px; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.msg.staff { background: var(--accent-soft); border-color: var(--accent-soft-line); }
.msg .meta { font-size: 12.5px; color: var(--slate); margin-bottom: 4px; }
.msg p { white-space: pre-line; margin: 0; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--slate); font-size: 13.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--slate); }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .hero-grid, .with-side, .grid.three, .grid.two, .strips.two, .steps { grid-template-columns: 1fr; }
  .hero-map { height: 300px; }
  .stats, .kpis { grid-template-columns: repeat(2, 1fr); }
  .rating-cards { grid-template-columns: 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1060px) {
  .site-header .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-header .wrap { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
  .nav, .user-nav { display: none; width: 100%; flex: 0 0 100%; flex-direction: column; align-items: stretch; }
  .user-nav .me .name { display: inline; }
  .site-header.open .nav, .site-header.open .user-nav { display: flex; }
  .prefs { margin: 0 0 6px; }
}
@media (max-width: 760px) {
  .map-panel { left: 12px; right: 12px; top: 12px; width: auto; gap: 8px; padding: 10px 12px; }
  .map-card { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 55%; border-radius: 12px 12px 0 0; }
  .strip { grid-template-columns: 104px 1fr; }
  .strip .freq { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
