@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
  color-scheme: dark;
  --ink: #e7f5ef;
  --ink-2: #bed6cf;
  --muted: #8ea9a2;
  --line: #234242;
  --paper: #041315;
  --white: #071d1f;
  --green: #27a691;
  --green-2: #48cab0;
  --mint: #173e3b;
  --coral: #ef6c4d;
  --amber: #eeb34b;
  --danger: #a83c38;
  --shadow: 0 24px 70px rgba(13, 46, 49, 0.14);
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
}

/* Landing-page traffic simulation */
.landing-body .demo-map-section { padding-top: 46px; }
.demo-link-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(30px, 6vw, 90px); padding: clamp(32px, 5vw, 64px); border: 1px solid #dfe3eb; border-radius: 20px; background: #fff; box-shadow: 0 18px 55px rgba(31, 39, 57, 0.08); }
.demo-link-copy h2 { margin: 8px 0 16px; color: #1b2333; font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.demo-link-copy > p:last-child { max-width: 680px; margin: 0; color: #747d8e; line-height: 1.65; }
.demo-link-action { display: grid; justify-items: center; gap: 9px; }
.demo-launch-link { white-space: nowrap; }
.demo-launch-link span { margin-left: 8px; font-size: 1.05em; }
.demo-link-action small { color: #8a91a0; font-size: 0.72rem; }
.demo-page { min-height: 100vh; background: #f4f6f8; }
.demo-page-nav { position: relative; z-index: 700; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1400px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 14px; }
.demo-page-nav .brand { color: #242c3e; }
.demo-page-nav .secondary-link { margin-right: 130px; padding: 10px 14px; border-radius: 10px; }
.demo-page-main { width: min(1400px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 28px; }
.demo-page .demo-map-section { padding-top: 26px; }
.demo-page .demo-map-heading h1 { margin: 8px 0 15px; color: #1b2333; font-size: clamp(2.25rem, 4.5vw, 4rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.demo-page .demo-map-heading > p { color: #747d8e; line-height: 1.65; }
.demo-page .demo-map-shell { min-height: calc(100vh - 270px); }
.demo-map-heading { align-items: end; margin-bottom: 28px; }
.demo-map-heading > p { max-width: 470px; }
.demo-map-shell { position: relative; overflow: hidden; min-height: clamp(470px, 56vw, 650px); border: 1px solid rgba(163, 248, 216, 0.26); border-radius: 24px; background: #263d3e; box-shadow: 0 30px 80px rgba(8, 29, 31, 0.2); }
.demo-map { position: absolute; inset: 0; z-index: 1; background: #526b69; }
.demo-map .demo-basemap-image { image-rendering: auto; }
.demo-map .leaflet-overlay-pane { z-index: 450; }
.demo-map .leaflet-marker-pane { z-index: 650; }
.demo-map-toolbar, .demo-map-legend, .demo-recenter { position: absolute; z-index: 500; color: #f5fffb; border: 1px solid rgba(185, 244, 223, 0.2); background: rgba(5, 26, 28, 0.88); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18); backdrop-filter: blur(12px); }
.demo-map-toolbar { top: 18px; left: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: fit-content; max-width: calc(100% - 36px); padding: 10px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.02em; }
.demo-live-badge { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.demo-live-badge i { width: 9px; height: 9px; border-radius: 50%; background: #2ee6a6; box-shadow: 0 0 0 5px rgba(46, 230, 166, 0.15), 0 0 14px rgba(46, 230, 166, 0.8); }
.demo-map-legend { left: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 11px 14px; border-radius: 12px; font-size: 0.74rem; }
.demo-map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.demo-legend-aircraft { width: 8px; height: 8px; border-radius: 50%; background: #2ee6a6; box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.18); }
.demo-legend-route { width: 24px; border-top: 2px dashed #9de9cf; }
.demo-recenter { top: 74px; right: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 0.75rem; font-weight: 800; }
.demo-recenter:hover, .demo-recenter:focus-visible { color: #071a1c; background: #a3f8d8; }
.demo-aircraft-marker { background: transparent; border: 0; }
.demo-radar-target { --demo-aircraft: #2ee6a6; position: relative; width: 142px; height: 58px; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.85)); }
.demo-target-dot { position: absolute; top: 24px; left: 12px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--demo-aircraft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--demo-aircraft) 24%, transparent); }
.demo-track-vector { position: absolute; top: 3px; left: 15px; width: 2px; height: 25px; transform-origin: 50% 100%; background: var(--demo-aircraft); }
.demo-track-vector i { position: absolute; top: -1px; left: -3px; width: 8px; height: 8px; border-top: 2px solid var(--demo-aircraft); border-right: 2px solid var(--demo-aircraft); transform: rotate(-45deg); }
.demo-radar-data { position: absolute; top: 14px; left: 31px; display: grid; min-width: 99px; padding: 4px 7px 5px; border-left: 2px solid var(--demo-aircraft); border-radius: 0 5px 5px 0; background: rgba(3, 18, 20, 0.72); line-height: 1.08; white-space: nowrap; }
.demo-radar-data b { color: #fff; font-size: 0.77rem; letter-spacing: 0.04em; }
.demo-radar-data small { margin-top: 3px; color: #d9eee7; font-size: 0.64rem; }
.demo-aircraft-popup { display: grid; min-width: 155px; gap: 3px; color: #102729; font: 0.78rem/1.4 Inter, system-ui, sans-serif; }
.demo-aircraft-popup b { margin-bottom: 3px; color: #073d3a; font-size: 0.94rem; }
.demo-map-note { margin: 17px 0 0; color: #5f6e6e; font-size: 0.83rem; }
.demo-map-note b { color: #173c3a; }
.demo-map-fallback { display: grid; place-items: center; padding: 32px; color: #eafff7; text-align: center; }
.demo-map-fallback div { max-width: 420px; }
.demo-map-fallback b { font-size: 1.2rem; }
.demo-map .leaflet-control-zoom { overflow: hidden; border: 1px solid rgba(185, 244, 223, 0.2); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.demo-map .leaflet-control-zoom a { color: #f5fffb; border-color: rgba(185, 244, 223, 0.14); background: rgba(5, 26, 28, 0.9); }
.demo-map .leaflet-control-attribution { color: #c9d9d4; background: rgba(5, 26, 28, 0.76); }
.demo-map .leaflet-control-attribution a { color: #a3f8d8; }

@media (max-width: 720px) {
  .demo-link-card { grid-template-columns: 1fr; align-items: start; }
  .demo-link-action { justify-items: start; }
  .demo-page-nav, .demo-page-main { width: min(100% - 28px, 1400px); }
  .demo-page-nav { padding-top: 66px; }
  .demo-page-nav .secondary-link { margin-right: 0; padding: 8px 10px; font-size: 0.72rem; }
  .demo-map-heading { display: block; }
  .demo-map-heading > p { margin-top: 14px; }
  .demo-map-shell { min-height: 520px; border-radius: 18px; }
  .demo-map-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; border-radius: 13px; }
  .demo-recenter { top: 91px; }
  .demo-map-legend { right: 64px; gap: 7px 14px; }
  .demo-radar-target { transform: scale(0.9); transform-origin: left center; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-live-badge i { box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.15); }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); }

.language-switcher {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(23,28,43,.92);
  color: #fff;
  box-shadow: 0 8px 24px rgba(23,28,43,.18);
  backdrop-filter: blur(12px);
}

.language-switcher span { color: #a9a3ff; font-size: .95rem; }

.language-switcher select {
  width: auto;
  min-height: 28px;
  border: 0;
  padding: 0 22px 0 2px;
  background-color: transparent;
  color: #fff;
  font: 800 .72rem/1 "DM Sans", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.language-switcher select:focus {
  outline: 2px solid #a9a3ff;
  outline-offset: 2px;
  box-shadow: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .language-switcher {
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", system-ui, sans-serif; letter-spacing: -.035em; }

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 18%, rgba(238, 179, 75, .2), transparent 26rem),
    radial-gradient(circle at 82% 82%, rgba(58, 133, 128, .32), transparent 32rem),
    linear-gradient(145deg, #0a292c, #113f41);
}

.gate::before {
  content: "✈";
  position: fixed;
  right: 5vw;
  top: 4vh;
  color: rgba(255,255,255,.035);
  font-size: min(52vw, 600px);
  line-height: 1;
  transform: rotate(-18deg);
}

.gate-card {
  position: relative;
  z-index: 1;
  width: min(100%, 490px);
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(7,29,31,.97);
  box-shadow: 0 36px 100px rgba(0,0,0,.28);
}

.gate-card h1 { margin: 10px 0 18px; font-size: clamp(2.4rem, 8vw, 4.4rem); line-height: .98; }
.gate-card h1 em { color: var(--coral); font-style: normal; }
.intro { color: var(--muted); line-height: 1.6; }
.eyebrow { margin: 0 0 4px; color: var(--green-2); font-size: .69rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

form { display: grid; gap: 13px; margin-top: 22px; }
label { display: grid; gap: 7px; color: var(--ink-2); font-size: .79rem; font-weight: 700; }
input, select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #0a2527;
  color: var(--ink);
}
textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  resize: vertical;
  background: #0a2527;
  color: var(--ink);
  font: inherit;
}
textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(15,101,99,.14); }
input:focus, select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(15,101,99,.14); }

.primary-button, .secondary-button, .text-button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}
.primary-button { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(13,74,77,.18); }
.primary-button:hover { background: var(--green-2); }
.secondary-button { width: 100%; border: 1px solid var(--line); background: #0a2527; color: var(--green-2); }
.text-button { min-height: 38px; background: transparent; color: var(--green-2); }
.form-message { min-height: 1.25em; margin: 0; color: var(--danger); font-size: .82rem; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: 190px minmax(140px, .7fr) minmax(360px, 1.5fr) auto;
  align-items: center;
  gap: 24px;
  padding: max(12px, env(safe-area-inset-top)) 22px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,29,31,.94);
  backdrop-filter: blur(18px);
  z-index: 500;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--green); color: white; transform: rotate(-8deg); }
.brand b, .brand small { display: block; }
.brand b { font: 800 1.08rem "Manrope"; }
.brand small { color: var(--coral); font-size: .58rem; font-weight: 800; letter-spacing: .18em; }
.event-heading { text-align: center; }
.event-heading h1 { margin: 0; font-size: 1.18rem; }
.live-pill { width: 96px; display: flex; align-items: center; justify-content: center; justify-self: end; gap: 8px; padding: 9px 10px; border-radius: 99px; background: #0d302f; color: var(--green-2); font-size: .76rem; font-weight: 800; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #32a472; box-shadow: 0 0 0 4px rgba(50,164,114,.13); }
.live-pill.is-archive { background: #202c35; color: #b5c1ca; }
.live-pill.is-archive i { background: #7d8d99; box-shadow: 0 0 0 4px rgba(125,141,153,.14); }
.live-pill.is-scheduled { background: #342c1b; color: #e4bd70; }
.live-pill.is-scheduled i { background: #d89e43; box-shadow: 0 0 0 4px rgba(216,158,67,.14); }
.live-pill.is-offline { background: #362326; color: #d5a0a4; }
.live-pill.is-offline i { background: #b9666e; box-shadow: 0 0 0 4px rgba(185,102,110,.14); }

.layout { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) 380px; min-height: 0; }
.app-shell.is-traffic-list-hidden .layout { grid-template-columns: minmax(0, 1fr); }
.app-shell.is-traffic-list-hidden .panel { display: none; }
.map-wrap { position: relative; min-height: calc(100vh - 76px); overflow: hidden; background: #dbe4de; }
#map { position: absolute; inset: 0; z-index: 1; }
.map-wrap.is-3d-view #map { inset: -35%; }
.map-wrap.is-3d-view #map .leaflet-control-container { display: none; }
.map-wrap.is-3d-view #map .leaflet-marker-pane,
.map-wrap.is-3d-view #map .leaflet-tooltip-pane,
.map-wrap.is-3d-view #map .leaflet-popup-pane { display: none; }
.altitude-3d { position: absolute; inset: 0; z-index: 20; overflow: hidden; background: transparent; color: var(--ink); }
.altitude-3d[hidden] { display: none; }
.altitude-3d canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.altitude-3d canvas:active { cursor: grabbing; }
.altitude-3d-help, .altitude-3d-scale { position: absolute; z-index: 2; padding: 9px 11px; border: 1px solid rgba(120,205,187,.18); border-radius: 9px; background: rgba(5,25,28,.82); pointer-events: none; backdrop-filter: blur(9px); }
.altitude-3d-help { left: 18px; top: 18px; display: grid; gap: 2px; }
.altitude-3d-help b { font-size: .72rem; }
.altitude-3d-help span, .altitude-3d-scale { color: var(--muted); font-size: .61rem; font-weight: 700; }
.altitude-3d-scale { right: 74px; bottom: 18px; }
.altitude-3d > button { position: absolute; right: 18px; top: 18px; z-index: 3; min-height: 36px; padding: 0 12px; border: 1px solid rgba(120,205,187,.22); border-radius: 8px; background: rgba(5,25,28,.9); color: var(--green-2); font-size: .65rem; font-weight: 800; pointer-events: auto; }
.map-key {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 400;
  display: flex;
  gap: 15px;
  padding: 10px 13px;
  border: 1px solid rgba(16,45,48,.12);
  border-radius: 10px;
  background: rgba(7,29,31,.92);
  box-shadow: 0 12px 28px rgba(16,45,48,.12);
  font-size: .72rem;
  font-weight: 700;
}
.history-control {
  min-width: 0;
  width: 600px;
  max-width: 100%;
  justify-self: center;
  padding: 7px 10px;
  border: 1px solid rgba(120,205,187,.22);
  border-radius: 11px;
  background: #0a2527;
  color: var(--ink);
}
.history-control-row { display: grid; grid-template-columns: auto 34px 56px minmax(120px, 1fr) 142px; align-items: center; gap: 7px; }
.history-control-row b { font-size: .67rem; white-space: nowrap; }
.history-control-row button,
.history-control-row select { min-height: 28px; border: 1px solid var(--line); border-radius: 7px; background: #071d1f; color: var(--muted); font-size: .63rem; font-weight: 900; }
.history-control-row button { min-width: 34px; padding: 0 7px; color: var(--green-2); }
.history-control-row button:disabled,
.history-control-row select:disabled { cursor: default; opacity: .42; }
.history-speed select { width: 56px; padding: 0 7px; }
.history-control-row time { width: 142px; overflow: hidden; color: var(--green-2); font: 800 .65rem ui-monospace, monospace; white-space: nowrap; text-align: right; }
.history-control-row time.is-live { color: #34ddb0; }
.history-control-row time.is-live::before { content: "●"; margin-right: 6px; font-size: .62rem; text-shadow: 0 0 8px rgba(52,221,176,.9); }
.history-control input[type="range"] {
  --history-progress: 100%;
  width: 100%;
  min-width: 70px;
  min-height: 5px;
  height: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(to right, var(--green-2) 0 var(--history-progress), #314749 var(--history-progress) 100%);
}
.history-control input[type="range"]::-webkit-slider-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; appearance: none; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.history-control input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.history-control input[type="range"].is-live::-webkit-slider-thumb { background: #34ddb0; box-shadow: 0 0 0 4px rgba(52,221,176,.16), 0 0 12px rgba(52,221,176,.7); }
.history-control input[type="range"].is-live::-moz-range-thumb { background: #34ddb0; box-shadow: 0 0 0 4px rgba(52,221,176,.16), 0 0 12px rgba(52,221,176,.7); }
.dot { width: 8px; height: 8px; display: inline-block; margin-right: 5px; border-radius: 50%; }
.dot.live { background: #26a472; }
.dot.stale { background: #99a7a4; }
.map-button {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 400;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(16,45,48,.12);
  border-radius: 11px;
  background: #071d1f;
  color: var(--green-2);
  box-shadow: 0 10px 24px rgba(16,45,48,.13);
  font-size: 1.2rem;
}
.settings-button { top: 70px; font-size: 1rem; }
.recenter-button { font-size: 1.35rem; }
.traffic-button { top: 122px; display: grid; place-items: center; font-size: 1rem; }
.traffic-button span {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #071d1f;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: .54rem;
  font-weight: 900;
}
.traffic-button.is-active { border-color: var(--green-2); background: #0d302f; }
.settings-popover {
  position: absolute;
  right: 74px;
  top: 18px;
  z-index: 450;
  width: min(320px, calc(100% - 100px));
  max-height: calc(100% - 36px);
  overflow: auto;
  padding: 17px;
  border: 1px solid rgba(16,45,48,.13);
  border-radius: 15px;
  background: rgba(7,29,31,.97);
  box-shadow: 0 22px 58px rgba(16,45,48,.2);
  backdrop-filter: blur(18px);
}
.settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.settings-head h2 { margin: 0; font-size: 1.18rem; }
.settings-close { width: 34px; height: 34px; border: 0; border-radius: 8px; background: #0d302f; color: var(--green-2); font-size: 1.3rem; }
.settings-group { display: grid; gap: 7px; margin-top: 17px; color: var(--ink-2); font-size: .76rem; font-weight: 800; }
.settings-group > small { color: var(--muted); font-size: .65rem; text-align: center; }
.settings-group > select { width: 100%; min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #0a2527; color: var(--ink-2); }
.settings-segment { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #0a2527; }
.settings-segment-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-segment button { min-height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 800; }
.settings-segment button.is-active { background: var(--green); color: #031312; }
.settings-popover > p { margin: 16px 0 0; color: var(--muted); font-size: .67rem; }
.track-style-settings { padding: 0; border: 0; }
.track-style-settings legend { padding: 0; color: var(--ink-2); }
.track-style-settings label { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 9px; color: var(--muted); font-size: .68rem; }
.track-style-settings input[type="color"] { width: 100%; min-height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #0a2527; }
.track-style-settings input[type="range"] { width: 100%; accent-color: var(--green-2); }
.track-style-settings output { min-width: 30px; color: var(--ink-2); font: 700 .62rem ui-monospace, monospace; text-align: right; }
.track-style-settings select { min-height: 36px; border: 1px solid var(--line); border-radius: 7px; background: #0a2527; color: var(--ink-2); padding: 0 8px; }

.panel {
  min-height: calc(100vh - 76px);
  max-height: calc(100vh - 76px);
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--white);
  box-shadow: -12px 0 35px rgba(16,45,48,.06);
}
.pilot-login, .pilot-status, .traffic-section { padding: 24px; }
.pilot-login, .pilot-status { border-bottom: 1px solid var(--line); background: linear-gradient(160deg, #071d1f, #092526); }
.pilot-login h2, .pilot-status h2, .traffic-section h2 { margin: 0 0 8px; font-size: 1.35rem; }
.pilot-login > p:not(.eyebrow) { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.status-head, .section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.status-head span { color: var(--muted); font-size: .82rem; }
.reporting-card { display: flex; align-items: center; gap: 14px; margin: 20px 0; padding: 15px; border-radius: 12px; background: #0a2527; border: 1px solid var(--line); }
.reporting-card b, .reporting-card small { display: block; }
.reporting-card small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.pulse-ring { width: 13px; height: 13px; flex: 0 0 auto; border-radius: 50%; background: #a1aaa8; }
.is-transmitting .pulse-ring { background: #2aab75; box-shadow: 0 0 0 7px rgba(42,171,117,.12); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(42,171,117,0); } }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.metrics div { padding: 11px; border-radius: 10px; background: rgba(10,37,39,.82); border: 1px solid var(--line); }
.metrics span, .metrics b { display: block; }
.metrics span { color: var(--muted); font-size: .68rem; text-transform: uppercase; font-weight: 700; }
.metrics b { margin-top: 3px; font-size: .9rem; }
.section-head > b { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); }
.traffic-list { display: grid; gap: 7px; margin-top: 14px; }
.traffic-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.traffic-item:hover { border-color: var(--line); background: #0a2527; }
.traffic-item.is-track-visible,
.traffic-item.is-track-visible:hover { border-color: var(--track-colour); box-shadow: inset 0 0 0 1px var(--track-colour); background: color-mix(in srgb, var(--track-colour) 8%, transparent); }
.traffic-focus { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 8px; align-items: center; gap: 10px; padding: 7px 5px; border: 0; background: transparent; color: inherit; text-align: left; }
.traffic-track-settings { --track-colour: #6f63ff; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #071d1f; color: var(--track-colour); font-size: 1rem; }
.traffic-track-settings:hover { border-color: var(--track-colour); background: #0a2527; }

.track-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.track-modal[hidden] { display: none; }
.track-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgba(1,12,14,.72); backdrop-filter: blur(6px); }
.track-modal-card { position: relative; width: min(390px, 100%); display: grid; gap: 15px; padding: 22px; border: 1px solid rgba(120,205,187,.25); border-radius: 16px; background: #071d1f; box-shadow: 0 28px 80px rgba(0,0,0,.42); }
.track-modal-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.track-modal-card h2 { margin: 2px 0 0; color: var(--ink); font-size: 1.15rem; }
.track-modal-card > label { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; color: var(--ink-2); font-size: .72rem; font-weight: 800; }
.track-modal-card input[type="color"], .track-modal-card select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #0a2527; color: var(--ink-2); }
.track-modal-card input[type="color"] { padding: 3px; }
.track-modal-card .primary-button { margin-top: 3px; }
.has-track-modal { overflow: hidden; }
.traffic-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--green); transform: rotate(-8deg); }
.traffic-identity b, .traffic-identity small, .traffic-data b, .traffic-data small { display: block; }
.traffic-identity b { font-size: .87rem; }
.traffic-identity small, .traffic-data small { color: var(--muted); font-size: .69rem; }
.traffic-data { text-align: right; }
.traffic-data b { font-size: .78rem; }
.traffic-focus > i { width: 7px; height: 7px; border-radius: 50%; }
.traffic-focus > i.online { background: #28a874; box-shadow: 0 0 0 4px rgba(40,168,116,.1); }
.traffic-focus > i.offline { background: #a8b1af; }
.empty-state { padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .82rem; text-align: center; }
.safety-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .69rem; line-height: 1.5; }
.safety-note b { color: var(--ink-2); }
.login-safety { margin-top: 20px; }
.always-sharing { margin: 12px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.aircraft-marker { width: 56px !important; height: 56px !important; display: grid; place-items: center; border: 0 !important; background: transparent !important; cursor: pointer; }
.aircraft-marker span { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; color: white; pointer-events: none; filter: drop-shadow(0 5px 8px rgba(0,0,0,.25)); }
.aircraft-marker .is-live { background: var(--green); }
.aircraft-marker .is-stale { background: #8d9a97; }
.aircraft-marker .is-very-stale { opacity: .18; }
.own-aircraft-marker {
  display: grid;
  place-items: center;
  border: 0 !important;
  background: transparent !important;
}
.own-aircraft-marker span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #ffd166;
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.9));
}
.own-aircraft-marker .is-very-stale { opacity: .18; }
.map-wrap.is-radar-map { background: #60706d; }
.map-wrap.is-radar-map .leaflet-tile-pane {
  filter: grayscale(.88) invert(.84) sepia(.2) saturate(.58) hue-rotate(118deg) brightness(.76) contrast(1.08);
}
.map-wrap.is-radar-map .leaflet-control-zoom a {
  border-color: rgba(29,45,46,.24);
  background: rgba(240,245,243,.94);
  color: #203638;
}
.map-wrap.is-radar-map .leaflet-control-attribution {
  background: rgba(240,245,243,.82);
  color: #405956;
}
.map-wrap.is-radar-map .leaflet-control-attribution a { color: #254e4c; }
.relative-marker {
  width: 108px !important;
  height: 92px !important;
  border: 0 !important;
  background: transparent !important;
}
.relative-target {
  --traffic-color: #fff;
  position: relative;
  width: 108px;
  height: 92px;
  color: var(--traffic-color);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.95));
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}
.relative-target.is-stale { --traffic-color: #c2ccca; opacity: .7; }
.relative-target.is-very-stale { opacity: .18; }
.relative-target.is-own { --traffic-color: #ffd166; }
.relative-altitude {
  position: absolute;
  left: 14px;
  top: 0;
  width: 80px;
  color: var(--traffic-color);
  font-size: 1.22rem;
  line-height: 1;
  text-align: center;
}
.relative-vector {
  position: absolute;
  left: 36px;
  top: 23px;
  width: 36px;
  height: 45px;
  transform-origin: 50% 50%;
}
.relative-arrow {
  position: absolute;
  inset: 0 0 auto;
  width: 36px;
  height: 40px;
  color: transparent;
  -webkit-text-stroke: 2px var(--traffic-color);
  font: 900 2.2rem/1 system-ui, sans-serif;
  text-align: center;
}
.relative-tail {
  position: absolute;
  left: 16px;
  top: 32px;
  width: 4px;
  height: 13px;
  border-radius: 4px;
  background: #2ade79;
}
.relative-trend {
  position: absolute;
  left: 77px;
  top: 31px;
  width: 25px;
  color: var(--traffic-color);
  font-size: 1.45rem;
  line-height: 1;
  text-align: center;
}
.relative-callsign {
  position: absolute;
  left: 2px;
  top: 68px;
  width: 104px;
  overflow: hidden;
  color: var(--traffic-color);
  font-size: .9rem;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.radar-marker {
  width: 180px !important;
  height: 78px !important;
  border: 0 !important;
  background: transparent !important;
}
.radar-target {
  --radar-color: #bfffe8;
  position: relative;
  width: 180px;
  height: 78px;
  color: var(--radar-color);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.38));
}
.radar-target.is-stale { --radar-color: #d1d7d5; opacity: .74; }
.radar-target.is-very-stale { opacity: .18; }
.radar-target.is-own { --radar-color: #ffd166; }
.radar-dot {
  position: absolute;
  left: 4px;
  top: 35px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--radar-color);
  background: rgba(6,24,25,.84);
  transform: rotate(45deg);
}
.radar-heading {
  position: absolute;
  left: 8px;
  top: 39px;
  width: 24px;
  border-top: 2px solid var(--radar-color);
  transform-origin: left center;
}
.radar-leader {
  position: absolute;
  left: 10px;
  top: 39px;
  width: var(--radar-leader-length, 30px);
  border-top: 1px solid var(--radar-color);
  transform: rotate(var(--radar-leader-angle, -38deg));
  transform-origin: left center;
}
.radar-label {
  position: absolute;
  left: var(--radar-label-x, 31px);
  top: var(--radar-label-y, 0);
  width: 90px;
  box-sizing: border-box;
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--radar-color) 70%, transparent);
  border-radius: 3px;
  background: rgba(5,28,30,.9);
  color: var(--radar-color);
  font: 700 .7rem/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .035em;
  white-space: nowrap;
}
.radar-label b, .radar-label small { display: block; overflow: hidden; color: inherit; font: inherit; text-overflow: ellipsis; }
.radar-label b { margin-bottom: 2px; font-size: .76rem; }
.map-wrap:not(.is-radar-map) .radar-target { --radar-color: #172429; }
.map-wrap:not(.is-radar-map) .radar-target.is-stale { --radar-color: #59636a; }
.map-wrap:not(.is-radar-map) .radar-label {
  border-color: rgba(23,36,41,.5);
  background: rgba(255,255,255,.9);
}
.overview-section-head { padding-bottom: 4px; }
.panel .traffic-section:only-child { min-height: 100%; }

/* Admin */
.admin-body {
  color-scheme: light;
  --ink: #102d30;
  --ink-2: #315052;
  --muted: #6f8280;
  --line: #dce4df;
  --paper: #f4f5f1;
  --white: #fff;
  --green: #0d4a4d;
  --green-2: #0f6563;
  --mint: #d7eee7;
  background: #edf1ed;
}
.admin-shell { min-height: 100vh; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--green); color: white; }
.admin-topbar .brand { color: white; }
.admin-topbar .text-button { color: white; }
.admin-main { width: min(1180px, calc(100% - 32px)); margin: 28px auto; display: grid; gap: 20px; }
.admin-summary { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.admin-summary h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); }
.admin-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.admin-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 16px 40px rgba(13,46,49,.06); }
.admin-card h2 { margin-bottom: 4px; }
.admin-card > p { color: var(--muted); font-size: .85rem; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.admin-form-grid .wide { grid-column: 1/-1; }
.event-list, .aircraft-admin-list { display: grid; gap: 9px; margin-top: 18px; }
.event-row, .aircraft-row { display: grid; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.event-row { grid-template-columns: 1fr auto; }
.aircraft-row { grid-template-columns: 1.2fr 1fr 1fr auto; }
.event-row small, .aircraft-row small { color: var(--muted); }
.event-row b, .event-row small, .aircraft-row b, .aircraft-row small { display: block; }
.row-actions { display: flex; gap: 6px; }
.mini-button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9f6; color: var(--green); font-size: .73rem; font-weight: 800; }
.mini-button.danger { color: var(--danger); }
.code-badge { display: inline-block; padding: 5px 8px; border-radius: 7px; background: var(--ink); color: #f6c85d; font: 700 .8rem ui-monospace, monospace; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--green); }
.admin-login .gate-card { max-width: 420px; background: rgba(255,255,255,.96); }

/* Landing */
.landing-body {
  color-scheme: dark;
  --ink: #e7f5ef;
  --ink-2: #bed6cf;
  --muted: #8ea9a2;
  --line: #234242;
  --paper: #041315;
  --white: #071d1f;
  --green: #27a691;
  --green-2: #48cab0;
  --mint: #173e3b;
  background:
    radial-gradient(circle at 85% 8%, rgba(39,166,145,.13), transparent 28rem),
    #041315;
}
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(89,153,142,.2);
  background: rgba(4,19,21,.9);
  backdrop-filter: blur(18px);
}
.landing-nav nav { display: flex; align-items: center; gap: 24px; }
.landing-nav nav a, .landing-footer a, .manager-header-actions a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
}
.landing-nav nav a:hover, .landing-footer a:hover { color: white; }
.landing-nav .nav-live {
  padding: 11px 15px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
}
.landing-hero {
  width: min(1240px, calc(100% - 48px));
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(380px,.92fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  margin: auto;
  padding: 70px 0 82px;
}
.hero-copy h1 {
  max-width: 820px;
  margin: 14px 0 24px;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .96;
}
.hero-copy h1 em { color: var(--coral); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 680px; color: var(--ink-2); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 40px; }
.primary-link, .secondary-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-weight: 800;
}
.primary-link { background: var(--green); }
.secondary-link { border: 1px solid var(--line); background: rgba(10,37,39,.72); color: var(--green-2); }
.hero-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; list-style: none; background: var(--line); }
.hero-facts li { padding: 17px; background: rgba(7,29,31,.96); }
.hero-facts b, .hero-facts span { display: block; }
.hero-facts b { margin-bottom: 7px; font: 800 .84rem "Manrope"; color: white; }
.hero-facts span { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.hero-art { position: relative; margin: 0; }
.hero-art::before { content: ""; position: absolute; inset: 8% -5% -7% 8%; border-radius: 50%; background: rgba(39,166,145,.18); filter: blur(42px); }
.hero-art img { position: relative; width: 100%; display: block; border: 1px solid rgba(115,219,192,.24); border-radius: 28px; box-shadow: 0 38px 100px rgba(0,0,0,.42); transform: rotate(1.5deg); }
.hero-art figcaption { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.15); border-radius: 99px; background: rgba(4,19,21,.88); color: white; font-size: .72rem; font-weight: 800; backdrop-filter: blur(12px); }
.hero-art figcaption i { width: 8px; height: 8px; border-radius: 50%; background: #42d89a; box-shadow: 0 0 0 5px rgba(66,216,154,.13); }
.landing-section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0; }
.section-intro { max-width: 690px; margin-bottom: 42px; }
.section-intro h2, .section-headline h2, .create-copy h2, .form-panel h2 { margin: 8px 0 15px; font-size: clamp(2.25rem, 4.5vw, 4.2rem); line-height: 1; }
.section-intro > p:last-child, .section-headline > p, .create-copy > p { color: var(--muted); line-height: 1.65; }
.value-section { border-top: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.value-grid article { min-height: 260px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(160deg, rgba(13,48,47,.66), rgba(7,29,31,.94)); }
.value-grid article > span { color: var(--coral); font: 800 .74rem ui-monospace, monospace; }
.value-grid h3 { margin: 74px 0 12px; font-size: 1.25rem; }
.value-grid p, .type-card > p, .type-card li { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.event-types { padding-top: 44px; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.type-card { position: relative; overflow: hidden; min-height: 390px; padding: clamp(28px,4vw,48px); border: 1px solid var(--line); border-radius: 22px; background: #071d1f; }
.type-card::after { content: "✈"; position: absolute; right: -22px; bottom: -42px; color: rgba(255,255,255,.025); font-size: 210px; transform: rotate(-18deg); }
.open-card { background: linear-gradient(145deg, #0b3937, #071d1f 70%); }
.invite-card { background: linear-gradient(145deg, #2d2819, #071d1f 70%); }
.type-label { color: var(--green-2) !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.invite-card .type-label { color: var(--amber) !important; }
.type-card h3 { max-width: 460px; margin: 40px 0 18px; font-size: clamp(2rem,4vw,3.4rem); line-height: 1; }
.type-card ol { position: relative; z-index: 1; display: grid; gap: 9px; margin: 24px 0 0; padding-left: 20px; }
.open-events-section { padding-top: 70px; }
.section-headline { display: grid; grid-template-columns: 1fr minmax(280px,460px); align-items: end; gap: 40px; margin-bottom: 35px; }
.public-event-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.public-event-card { display: flex; flex-direction: column; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: rgba(7,29,31,.93); }
.event-card-date { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.event-card-date b { color: var(--coral); }
.event-card-date span { font-size: .75rem; }
.event-card-copy { flex: 1; }
.event-card-copy h3 { margin: 7px 0 8px; font-size: 1.45rem; }
.event-card-copy > p { color: var(--muted); font-size: .82rem; line-height: 1.55; }
.event-card-copy .event-place { color: var(--ink-2); font-weight: 800; }
.event-card-copy small { color: var(--green-2); font-size: .7rem; font-weight: 800; }
.landing-empty { grid-column: 1/-1; padding: 28px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.form-panel { padding: clamp(26px,5vw,52px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(150deg, #0a292b, #071d1f); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.registration-dialog .form-panel { position: relative; display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: start; }
.form-panel h2 { font-size: clamp(2rem,4vw,3.3rem); }
.form-panel > div > p:last-child { color: var(--muted); line-height: 1.6; }
.landing-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.landing-form-grid .wide { grid-column: 1/-1; }
.aviation-suggestion-host { position: relative; z-index: 460; }
.icao-type-suggestions {
  position: absolute;
  z-index: 470;
  top: calc(100% + 5px);
  left: 0;
  width: max(100%, 104px);
  max-height: 224px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(16, 24, 40, .2);
}
.icao-type-suggestions button {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1b2333;
  text-align: left;
  font-size: .78rem;
  font-weight: 800;
}
.icao-type-suggestions button:hover,
.icao-type-suggestions button[aria-selected="true"] { background: #efeeff; color: #4b43c5; }
.manager-body .icao-type-suggestions { background: #fff; }
.consent-line { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; line-height: 1.45; }
.consent-line input { width: 18px; min-height: 18px; margin-top: 2px; }
.success-message { color: var(--green-2); }
.code-result { padding: 13px; border: 1px solid rgba(72,202,176,.28); border-radius: 10px; background: rgba(39,166,145,.09); line-height: 1.55; }
.code-result b { display: inline-block; padding: 2px 6px; border-radius: 5px; background: #041315; color: var(--amber); font-family: ui-monospace, monospace; }
.code-result a { color: var(--green-2); }
.create-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px,7vw,90px); align-items: start; padding-top: 80px; }
.create-copy { position: sticky; top: 110px; }
.coming-later { margin-top: 35px; padding: 18px; border: 1px solid rgba(238,179,75,.25); border-radius: 13px; background: rgba(238,179,75,.07); }
.coming-later span { color: var(--amber); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.coming-later p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.create-form-panel { padding: clamp(25px,4vw,42px); }
.safety-band { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 100px; padding: 35px; border: 1px solid rgba(239,108,77,.28); border-radius: 18px; background: rgba(239,108,77,.06); }
.safety-band b { color: var(--coral); font: 800 clamp(1.5rem,3vw,2.3rem) "Manrope"; white-space: nowrap; }
.safety-band p { margin: 0; color: var(--ink-2); font-size: .82rem; line-height: 1.65; }
.landing-footer { min-height: 170px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 35px max(24px,calc((100vw - 1240px)/2)); border-top: 1px solid var(--line); background: #031012; }
.landing-footer > p { margin: 0; color: var(--muted); font-size: .78rem; }
.landing-footer > div { display: flex; justify-content: flex-end; gap: 20px; }

/* Event manager */
.manager-header-actions { display: flex; align-items: center; gap: 15px; }
.manager-header-actions a { color: white; }
.manager-code-strip { display: grid; grid-template-columns: auto auto 1fr; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 14px; background: #102d30; color: white; }
.manager-code-strip div { min-width: 150px; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.15); }
.manager-code-strip span, .manager-code-strip b { display: block; }
.manager-code-strip span { color: #9db9b1; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.manager-code-strip b { margin-top: 4px; color: #f6c85d; font: 800 1rem ui-monospace, monospace; }
.manager-code-strip p { margin: 0; color: #bed6cf; font-size: .78rem; }
.manager-grid { grid-template-columns: 380px 1fr; }
.manager-aircraft-row { grid-template-columns: 1.1fr 1.4fr .7fr auto; }
.admin-body textarea { background: white; color: var(--ink); }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 190px minmax(0, 1fr) auto; }
  .history-control { grid-column: 1/-1; grid-row: 2; }
  .map-wrap, .panel { min-height: 0; }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .event-heading { grid-column: 1/-1; grid-row: 2; padding-top: 5px; border-top: 1px solid var(--line); }
  .history-control { grid-column: 1/-1; grid-row: 3; }
  .layout { grid-template-columns: 1fr; grid-template-rows: 58vh auto; }
  .app-shell.is-traffic-list-hidden .layout { grid-template-rows: minmax(0, 1fr); }
  .app-shell.is-traffic-list-hidden .map-wrap { min-height: 100%; }
  .map-wrap, .panel { min-height: 0; }
  .panel { max-height: none; border-left: 0; }
  .admin-grid { grid-template-columns: 1fr; }
  .landing-nav nav a:not(.nav-live) { display: none; }
  .landing-hero { min-height: 0; grid-template-columns: 1fr; padding-top: 55px; }
  .hero-art { max-width: 650px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .public-event-grid { grid-template-columns: 1fr 1fr; }
  .registration-dialog .form-panel, .create-section { grid-template-columns: 1fr; }
  .create-copy { position: static; }
  .manager-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  html, body.overview-body { height: 100%; }
  body.overview-body { overflow: hidden; }
  .app-shell { height: 100dvh; min-height: 0; overflow: hidden; }
  .topbar {
    min-height: 0;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 7px 9px;
    padding: max(7px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 7px max(10px, env(safe-area-inset-left));
  }
  .topbar .brand { grid-column: 1; grid-row: 1; }
  .topbar .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .topbar .brand > span:last-child { display: none; }
  .event-heading {
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .event-heading .eyebrow {
    overflow: hidden;
    margin-bottom: 2px;
    font-size: .5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .event-heading h1 {
    overflow: hidden;
    font-size: .88rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .live-pill {
    width: auto;
    min-width: 68px;
    grid-column: 3;
    grid-row: 1;
    gap: 6px;
    padding: 8px 9px;
    font-size: .62rem;
  }
  .live-pill i { width: 7px; height: 7px; }
  .history-control {
    width: 100%;
    grid-column: 1/-1;
    grid-row: 2;
    padding: 5px 6px;
    border-radius: 9px;
  }
  .layout {
    min-height: 0;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 30dvh;
  }
  .app-shell.is-traffic-list-hidden .layout { grid-template-rows: minmax(0, 1fr); }
  .map-wrap { min-height: 0; height: 100%; }
  .panel {
    min-height: 0;
    max-height: 30dvh;
    overscroll-behavior: contain;
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -12px 32px rgba(3,18,20,.2);
  }
  .traffic-section {
    min-height: 100%;
    padding: 13px max(12px, env(safe-area-inset-right)) max(13px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .overview-section-head { align-items: center; }
  .overview-section-head .eyebrow { display: none; }
  .pilot-login h2, .pilot-status h2, .traffic-section h2 { margin: 0; font-size: 1rem; }
  .section-head > b { min-width: 28px; height: 28px; font-size: .7rem; }
  .traffic-list { gap: 4px; margin-top: 8px; }
  .traffic-item { padding: 2px; border-radius: 9px; }
  .traffic-focus { grid-template-columns: 32px minmax(0, 1fr) auto 7px; gap: 7px; padding: 5px 3px; }
  .traffic-icon { width: 30px; height: 30px; border-radius: 8px; }
  .traffic-identity b { font-size: .78rem; }
  .traffic-identity small, .traffic-data small { font-size: .61rem; }
  .traffic-data b { font-size: .7rem; }
  .traffic-track-settings { width: 36px; height: 36px; }
  .safety-note { margin-top: 12px; padding-top: 10px; font-size: .62rem; }
  .pilot-login, .pilot-status { padding: 19px 16px; }
  .map-key {
    left: max(8px, env(safe-area-inset-left));
    bottom: max(8px, env(safe-area-inset-bottom));
    gap: 8px;
    padding: 7px 9px;
    font-size: .58rem;
  }
  .map-button {
    right: max(9px, env(safe-area-inset-right));
    width: 42px;
    height: 42px;
  }
  .recenter-button { top: 9px; }
  .settings-button { top: 59px; }
  .traffic-button { top: 109px; display: grid; place-items: center; }
  .altitude-3d-help { display: none; }
  .altitude-3d > button { left: max(9px, env(safe-area-inset-left)); right: auto; top: 9px; min-height: 42px; }
  .altitude-3d-scale { right: max(9px, env(safe-area-inset-right)); bottom: max(9px, env(safe-area-inset-bottom)); }
  .history-control { padding-inline: 7px; }
  .history-control-row { grid-template-columns: 32px 52px minmax(74px, 1fr) 94px; gap: 5px; }
  .history-control-row b { display: none; }
  .history-control-row time { width: 94px; font-size: .56rem; }
  .history-speed select { width: 52px; padding-inline: 5px; }
  .track-modal { place-items: end center; padding: 0; }
  .track-modal-card {
    width: 100%;
    max-height: min(78dvh, 640px);
    overflow: auto;
    padding: 19px 19px max(19px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }
  .settings-popover {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    top: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    max-height: min(76dvh, calc(100% - 16px));
    padding: 15px;
  }
  .admin-summary { align-items: start; flex-direction: column; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .wide { grid-column: auto; }
  .aircraft-row { grid-template-columns: 1fr auto; }
  .aircraft-row > :nth-child(2), .aircraft-row > :nth-child(3) { grid-column: 1; }
  .aircraft-row .row-actions { grid-column: 2; grid-row: 1/4; flex-direction: column; }
  .landing-nav { padding-inline: 16px; }
  .landing-nav .brand small { display: block; }
  .landing-nav nav { gap: 8px; }
  .landing-nav .nav-live { padding: 10px; font-size: .72rem; }
  .landing-hero, .landing-section { width: min(100% - 28px, 1240px); }
  .landing-hero { padding-block: 45px 65px; }
  .hero-copy h1 { font-size: clamp(2.65rem,13vw,4rem); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-art figcaption { left: 12px; bottom: 12px; }
  .landing-section { padding-block: 68px; }
  .value-grid, .type-grid, .public-event-grid, .section-headline, .landing-form-grid { grid-template-columns: 1fr; }
  .landing-form-grid .wide { grid-column: auto; }
  .value-grid article { min-height: 220px; }
  .value-grid h3 { margin-top: 48px; }
  .registration-dialog .form-panel { gap: 22px; }
  .safety-band { grid-template-columns: 1fr; margin-bottom: 65px; }
  .landing-footer { grid-template-columns: 1fr; text-align: left; }
  .landing-footer > div { justify-content: flex-start; flex-wrap: wrap; }
  .manager-code-strip { grid-template-columns: 1fr 1fr; }
  .manager-code-strip p { grid-column: 1/-1; }
  .manager-aircraft-row { grid-template-columns: 1fr auto; }
}

@media (max-width: 900px) and (max-height: 600px) {
  html, body.overview-body { height: 100%; }
  body.overview-body { overflow: hidden; }
  .app-shell { height: 100dvh; min-height: 0; overflow: hidden; }
  .topbar {
    min-height: 0;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 6px 9px;
    padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  }
  .topbar .brand { grid-column: 1; grid-row: 1; }
  .topbar .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .topbar .brand > span:last-child { display: none; }
  .event-heading { min-width: 0; grid-column: 2; grid-row: 1; padding: 0; border: 0; text-align: left; }
  .event-heading .eyebrow { overflow: hidden; margin-bottom: 1px; font-size: .48rem; text-overflow: ellipsis; white-space: nowrap; }
  .event-heading h1 { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
  .live-pill { width: auto; min-width: 68px; grid-column: 3; grid-row: 1; padding: 7px 9px; font-size: .61rem; }
  .history-control { width: 100%; grid-column: 1/-1; grid-row: 2; padding: 4px 6px; }
  .layout { min-height: 0; overflow: hidden; grid-template-columns: minmax(0, 1fr) minmax(240px, 34vw); grid-template-rows: minmax(0, 1fr); }
  .app-shell.is-traffic-list-hidden .layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .map-wrap { min-height: 0; height: 100%; }
  .panel { min-height: 0; max-height: none; border-top: 0; border-left: 1px solid var(--line); border-radius: 0; }
  .traffic-section { padding: 12px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) 12px; }
  .traffic-button { display: grid; place-items: center; }
}

/* Landing page: visually aligned with book.flyin.dk */
.landing-body {
  color-scheme: light;
  --ink: #1b2333;
  --ink-2: #4e586b;
  --muted: #747d8e;
  --line: #dfe3eb;
  --paper: #f5f6fa;
  --white: #fff;
  --green: #6157e7;
  --green-2: #4b43c5;
  --mint: #efeeff;
  --coral: #6157e7;
  --amber: #f1b740;
  background:
    radial-gradient(circle at 76% 14%, rgba(97,87,231,.07), transparent 27rem),
    #f5f6fa;
  color: #1b2333;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-body .landing-nav,
.landing-body main,
.landing-body .landing-footer {
  width: min(1400px, calc(100% - 12vw));
  margin-inline: auto;
}

.landing-body .landing-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 92px;
  padding: 0;
  border-bottom: 1px solid #dfe3eb;
  background: rgba(245,246,250,.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(27,35,51,.055);
}

.landing-body .brand {
  gap: 10px;
  color: #171d2b;
}

.landing-body .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #766df7, #4c44ca);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  transform: skew(-7deg);
  box-shadow: 0 10px 30px rgba(98,89,231,.28);
}

.landing-body .brand b {
  color: #171d2b;
  font: 800 .9rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.landing-body .brand small {
  margin-top: 4px;
  color: #8b92a2;
  font-size: .45rem;
  letter-spacing: .2em;
}

.landing-body .landing-nav nav {
  gap: 8px;
}

.landing-body .landing-nav nav a,
.landing-body .landing-footer a {
  color: #626b7d;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: .7rem;
}

.landing-body .landing-nav nav a:hover {
  color: #242c3e;
  background: #fff;
}

.landing-body .landing-nav .nav-live {
  margin-left: 4px;
  border: 1px solid #d9dee8;
  background: #fff;
  color: #242c3e;
  box-shadow: 0 4px 12px rgba(27,35,51,.04);
}

.landing-body .landing-hero {
  width: 100%;
  min-height: 640px;
  grid-template-columns: 1fr minmax(420px,.9fr);
  gap: 8vw;
  padding: 68px 2vw;
}

.landing-body .eyebrow {
  color: #9299aa;
  font-size: .62rem;
  letter-spacing: .14em;
}

.landing-body .hero-copy h1 {
  margin: 13px 0 27px;
  max-width: 760px;
  color: #171d2b;
  font-family: inherit;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .93;
}

.landing-body .hero-copy h1 em {
  color: #6157e7;
}

.landing-body .hero-copy > p:not(.eyebrow) {
  max-width: 540px;
  color: #6e7789;
  font-size: 1rem;
  line-height: 1.7;
}

.landing-body .hero-actions {
  gap: 10px;
  margin: 31px 0 18px;
}

.landing-body .primary-link,
.landing-body .primary-button {
  border-radius: 10px;
  background: #6157e7;
  color: #fff;
  box-shadow: 0 9px 22px rgba(97,87,231,.22);
}

.landing-body .primary-link:hover,
.landing-body .primary-button:hover {
  background: #4b43c5;
}

.landing-body .secondary-link {
  border-color: #d9dee8;
  background: #fff;
  color: #4b43c5;
}

.landing-body .hero-facts {
  max-width: 660px;
  gap: 9px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.landing-body .hero-facts li {
  min-height: 84px;
  padding: 14px;
  border: 1px solid #dfe3eb;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(27,35,51,.035);
}

.landing-body .hero-facts b {
  color: #30384a;
  font-family: inherit;
  font-size: .7rem;
}

.landing-body .hero-facts span {
  color: #8a91a0;
  font-size: .58rem;
}

.landing-body .hero-art::before {
  background: rgba(97,87,231,.12);
}

.landing-body .hero-art img {
  border-color: #242a3d;
  border-radius: 20px;
  transform: rotate(1.5deg);
  box-shadow: 0 35px 70px rgba(34,41,59,.16);
}

.landing-body .hero-art figcaption {
  border-color: #303646;
  background: rgba(23,28,43,.94);
}

.landing-body .landing-section {
  width: 100%;
  padding: 82px 2vw;
}

.landing-body .section-intro h2,
.landing-body .section-headline h2,
.landing-body .create-copy h2,
.landing-body .form-panel h2 {
  color: #1b2333;
  font-family: inherit;
  font-size: clamp(2.25rem,4.5vw,4rem);
  font-weight: 500;
  letter-spacing: -.055em;
}

.landing-body .section-intro > p:last-child,
.landing-body .section-headline > p,
.landing-body .create-copy > p {
  color: #747d8e;
}

.landing-body .value-section {
  padding-inline: 0;
  border-top-color: #dfe3eb;
  border-bottom: 1px solid #dfe3eb;
}

.landing-body .value-section .section-intro {
  padding-inline: 2vw;
}

.landing-body .value-grid {
  gap: 0;
  border-top: 1px solid #dfe3eb;
}

.landing-body .value-grid article {
  min-height: 250px;
  padding: 35px;
  border: 0;
  border-right: 1px solid #dfe3eb;
  border-radius: 0;
  background: transparent;
}

.landing-body .value-grid article:last-child {
  border-right: 0;
}

.landing-body .value-grid article > span,
.landing-body .event-card-copy small {
  color: #6157e7;
}

.landing-body .value-grid h3 {
  margin-top: 68px;
  color: #242c3e;
  font-family: inherit;
  font-size: 1.1rem;
}

.landing-body .value-grid p,
.landing-body .type-card > p,
.landing-body .type-card li {
  color: #747d8e;
}

.landing-body .how-section {
  background: #fff;
  border-bottom: 1px solid #dfe3eb;
}

.landing-body .how-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: 34px;
}

.landing-body .how-top .section-intro {
  max-width: 690px;
  margin-bottom: 0;
}

.landing-body .how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.landing-body .how-grid article {
  min-height: 285px;
  padding: 28px;
  border: 1px solid #dfe3eb;
  border-radius: 16px;
  background: linear-gradient(155deg, #fff, #f8f8fc);
  box-shadow: 0 7px 24px rgba(27,35,51,.04);
}

.landing-body .how-grid article > span {
  color: #6157e7;
  font: 800 1.35rem/1 ui-monospace, monospace;
  letter-spacing: .08em;
}

.landing-body .how-grid h3 {
  margin: 62px 0 12px;
  color: #242c3e;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -.025em;
}

.landing-body .how-grid p {
  margin: 0;
  color: #747d8e;
  font-size: .82rem;
  line-height: 1.65;
}

.landing-body .how-visual {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid #25393f;
  border-radius: 18px;
  background: #061d23;
  box-shadow: 0 26px 58px rgba(20,35,48,.18);
  transform: rotate(1.5deg);
  transform-origin: center;
}

.landing-body .how-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-body .phone-requirement {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-top: 18px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid #d8d5fb;
  border-radius: 18px;
  background: #f1f0ff;
}

.landing-body .phone-requirement-mark {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 8px solid #6157e7;
  border-radius: 30px;
  background: #fff;
  color: #6157e7;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  box-shadow: inset 0 -12px 0 #e5e3ff, 0 12px 28px rgba(65,55,177,.12);
}

.landing-body .phone-requirement h3 {
  margin: 6px 0 10px;
  color: #242c3e;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 550;
  letter-spacing: -.045em;
}

.landing-body .phone-requirement > div:last-child > p:last-child {
  max-width: 850px;
  margin: 0;
  color: #626b7c;
  font-size: .87rem;
  line-height: 1.65;
}

.landing-body .type-card {
  display: flex;
  flex-direction: column;
  border-color: #dfe3eb;
  background: #fff;
  box-shadow: 0 8px 28px rgba(27,35,51,.045);
}

.landing-body .type-card::after {
  color: rgba(97,87,231,.035);
}

.landing-body .type-card h3 {
  color: #242c3e;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: -.05em;
}

.landing-body .type-card ol {
  margin-bottom: 34px;
}

.landing-body .type-create-link {
  position: relative;
  z-index: 1;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid #6157e7;
  border-radius: 9px;
  background: #6157e7;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(97,87,231,.18);
}

.landing-body .type-create-link:hover {
  background: #4b43c5;
}

.landing-body .type-create-link.is-closed {
  border-color: #d9dee8;
  background: #fff;
  color: #4b43c5;
  box-shadow: none;
}

.landing-body .type-create-link.is-closed:hover {
  border-color: #b9b4f2;
  background: #f1f0ff;
}

.landing-body .open-card {
  border-top: 4px solid #6157e7;
}

.landing-body .invite-card {
  border-top: 4px solid #f1b740;
}

.landing-body .type-label,
.landing-body .invite-card .type-label {
  color: #6157e7 !important;
}

.landing-body .invite-card .type-label {
  color: #a77411 !important;
}

.landing-body .public-event-card,
.landing-body .form-panel {
  border-color: #dfe3eb;
  background: #fff;
  color: #1b2333;
  box-shadow: 0 7px 25px rgba(27,35,51,.045);
}

.landing-body .public-event-card {
  scroll-margin-top: 120px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.landing-body .public-event-card:focus {
  outline: none;
}

.landing-body .public-event-card.is-shared-event {
  border-color: #6157e7;
  box-shadow: 0 0 0 4px rgba(97,87,231,.14), 0 18px 45px rgba(58,52,146,.13);
  transform: translateY(-2px);
}

.landing-body .registration-dialog {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #1b2333;
  box-shadow: 0 34px 100px rgba(20,25,39,.35);
}

.landing-body .registration-dialog::backdrop {
  background: rgba(16,22,34,.68);
  backdrop-filter: blur(5px);
}

.landing-body .registration-dialog .form-panel {
  border: 0;
  box-shadow: none;
}

.landing-body .registration-dialog-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #d9dee8;
  border-radius: 50%;
  background: #f7f7ff;
  color: #554cc8;
  font-size: 1.4rem;
  line-height: 1;
}

.landing-body .event-card-date {
  border-bottom-color: #e5e9f1;
  color: #747d8e;
}

.landing-body .event-card-date b {
  color: #6157e7;
}

.landing-body .event-card-copy h3,
.landing-body .event-card-copy .event-place {
  color: #30384a;
}

.landing-body .event-card-copy > p,
.landing-body .form-panel > div > p:last-child {
  color: #747d8e;
}

.landing-body .landing-empty {
  border-color: #d9dee8;
  background: rgba(255,255,255,.4);
  color: #7d8595;
}

.landing-body .secondary-button {
  border-color: #d9dee8;
  background: #f7f7ff;
  color: #554cc8;
}

.landing-body .event-card-actions {
  display: grid;
  gap: 9px;
}

.landing-body .event-live-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #6157e7;
  border-radius: 8px;
  background: #6157e7;
  color: #fff;
  font-size: .74rem;
  font-weight: 850;
  text-decoration: none;
}

.landing-body label {
  color: #747d8e;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.landing-body input,
.landing-body select,
.landing-body textarea {
  border-color: #dfe3eb;
  background: #fff;
  color: #293044;
  text-transform: none;
  letter-spacing: 0;
}

.landing-body input:focus,
.landing-body select:focus,
.landing-body textarea:focus {
  border-color: #aaa5ef;
  box-shadow: 0 0 0 3px rgba(97,85,232,.12);
}

.landing-body .consent-line {
  color: #4f586b;
  text-transform: none;
  letter-spacing: 0;
}

.landing-body .coming-later {
  border-color: #dedcf5;
  background: #f8f7ff;
}

.landing-body .coming-later span {
  color: #6157e7;
}

.landing-body .coming-later p {
  color: #747d8e;
}

.landing-body .code-result {
  border-color: #d6d2ff;
  background: #f3f2ff;
}

.landing-body .code-result b {
  background: #171c2b;
  color: #fff;
}

.landing-body .code-result a {
  color: #554cc8;
}

.landing-body .safety-band {
  border: 0;
  background: #171c2b;
  box-shadow: 0 24px 55px rgba(32,40,59,.13);
}

.landing-body .safety-band b {
  color: #8d85ff;
  font-family: inherit;
}

.landing-body .safety-band p {
  color: #b7bdcb;
}

.landing-body .landing-footer {
  min-height: 90px;
  padding: 0;
  border-top-color: #dfe3eb;
  background: transparent;
}

.landing-body .landing-footer > p {
  color: #8a91a0;
}

@media (max-width: 900px) {
  .landing-body .how-grid {
    grid-template-columns: 1fr 1fr;
  }

  .landing-body .landing-nav,
  .landing-body main,
  .landing-body .landing-footer {
    width: min(100% - 40px, 1400px);
  }

  .landing-body .landing-hero {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 70px;
  }

  .landing-body .hero-art {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 1100px) {
  .landing-body .how-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-body .how-visual {
    max-width: 680px;
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .landing-body .how-grid,
  .landing-body .phone-requirement {
    grid-template-columns: 1fr;
  }

  .landing-body .how-grid article {
    min-height: 225px;
  }

  .landing-body .how-grid h3 {
    margin-top: 45px;
  }

  .landing-body .phone-requirement-mark {
    width: 105px;
  }

  .landing-body .landing-nav,
  .landing-body main,
  .landing-body .landing-footer {
    width: min(100% - 32px, 1400px);
  }

  .landing-body .landing-nav {
    min-height: 78px;
    padding-inline: 0;
  }

  .landing-body .registration-dialog {
    width: min(100% - 20px, 960px);
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }

  .landing-body .registration-dialog .form-panel {
    padding: 52px 20px 24px;
    border-radius: 16px;
  }

  .landing-body .landing-hero {
    width: 100%;
    gap: 50px;
    padding: 50px 0 68px;
  }

  .landing-body .hero-copy h1 {
    font-size: 3rem;
  }

  .landing-body .hero-actions {
    flex-direction: column;
  }

  .landing-body .hero-facts {
    grid-template-columns: 1fr;
  }

  .landing-body .landing-section {
    width: 100%;
    padding: 64px 0;
  }

  .landing-body .value-section .section-intro {
    padding-inline: 0;
  }

  .landing-body .value-grid article {
    border-right: 0;
    border-bottom: 1px solid #dfe3eb;
    padding: 28px 5px;
  }

  .landing-body .value-grid article:last-child {
    border-bottom: 0;
  }
}

/* Event manager: same visual system as book.flyin.dk and the Track landing */
.manager-body {
  color-scheme: light;
  --ink: #1b2333;
  --ink-2: #4e586b;
  --muted: #747d8e;
  --line: #dfe3eb;
  --paper: #f5f6fa;
  --white: #fff;
  --green: #6157e7;
  --green-2: #4b43c5;
  --mint: #efeeff;
  --danger: #b84c46;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 8%, rgba(97,87,231,.07), transparent 27rem),
    #f5f6fa;
  color: #1b2333;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.manager-body h1,
.manager-body h2,
.manager-body h3 {
  font-family: inherit;
}

.manager-body .admin-login {
  position: relative;
  background:
    radial-gradient(circle at 76% 18%, rgba(97,87,231,.11), transparent 25rem),
    #f5f6fa;
}

.manager-body .manager-login-brand {
  position: absolute;
  top: 27px;
  left: 6vw;
}

.manager-body .brand {
  gap: 10px;
  color: #171d2b;
}

.manager-body .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #766df7, #4c44ca);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  transform: skew(-7deg);
  box-shadow: 0 10px 30px rgba(98,89,231,.28);
}

.manager-body .brand b {
  color: #171d2b;
  font: 800 .9rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.manager-body .brand small {
  margin-top: 4px;
  color: #8b92a2;
  font-size: .45rem;
  letter-spacing: .2em;
}

.manager-body .admin-login .gate-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid #dfe3eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(27,35,51,.08);
}

.manager-body .admin-login .gate-card h1 {
  margin: 10px 0 15px;
  color: #171d2b;
  font-size: clamp(2.35rem,6vw,3.6rem);
  font-weight: 500;
  letter-spacing: -.06em;
}

.manager-body .eyebrow {
  color: #9299aa;
  font-size: .62rem;
  letter-spacing: .14em;
}

.manager-body .intro,
.manager-body .admin-card > p,
.manager-body .admin-summary > p {
  color: #747d8e;
}

.manager-body label {
  color: #747d8e;
  font-size: .66rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.manager-body input,
.manager-body select,
.manager-body textarea {
  border-color: #dfe3eb;
  background: #fff;
  color: #293044;
  text-transform: none;
  letter-spacing: 0;
}

.manager-body input:focus,
.manager-body select:focus,
.manager-body textarea:focus {
  border-color: #aaa5ef;
  box-shadow: 0 0 0 3px rgba(97,85,232,.12);
}

.manager-body .primary-button {
  background: #6157e7;
  box-shadow: 0 9px 22px rgba(97,87,231,.2);
}

.manager-body .primary-button:hover {
  background: #4b43c5;
}

.manager-body .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 92px;
  padding: 0 6vw;
  border-bottom: 1px solid #dfe3eb;
  background: rgba(245,246,250,.92);
  color: #1b2333;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(27,35,51,.08);
}

.manager-body .admin-topbar .brand {
  color: #171d2b;
}

.manager-body .manager-header-actions {
  gap: 8px;
}

.manager-body .manager-header-actions a,
.manager-body .manager-header-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  padding: 0 13px;
  font-family: inherit;
  font-size: .7rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.manager-body .manager-header-actions .manager-live-button {
  border-color: #6157e7;
  background: #6157e7;
  color: #fff;
  box-shadow: 0 8px 18px rgba(97,87,231,.24);
}

.manager-body .manager-header-actions .manager-live-button:hover {
  background: #4b43c5;
}

.manager-body .manager-header-actions .manager-logout-button {
  border-color: #252b3e;
  background: #171c2b;
  color: #fff;
}

.manager-body .manager-header-actions .manager-logout-button:hover {
  background: #30384a;
}

.manager-body .admin-main {
  width: min(1240px, calc(100% - 12vw));
  margin: 42px auto 70px;
  gap: 24px;
}

.manager-body .admin-summary {
  min-height: 90px;
  padding: 0 2vw 18px;
  border-bottom: 1px solid #dfe3eb;
}

.manager-body .admin-summary h1 {
  color: #171d2b;
  font-size: clamp(2.5rem,5vw,4.4rem);
  font-weight: 500;
  letter-spacing: -.065em;
}

.manager-body .admin-summary > p {
  max-width: 430px;
  margin: 0 0 7px;
  line-height: 1.6;
  text-align: right;
}

.manager-body .manager-code-strip {
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 23px 26px;
  border: 1px solid #252b3e;
  border-radius: 16px;
  background: #171c2b;
  color: #fff;
  transform: rotate(.15deg);
  box-shadow: 0 22px 48px rgba(34,41,59,.13);
}

.manager-body .manager-code-strip div {
  min-width: 170px;
  border-right-color: #303646;
}

.manager-body .manager-code-strip span {
  color: #8e96a8;
}

.manager-body .manager-code-strip b {
  color: #a9a3ff;
  font-size: 1.15rem;
}

.manager-body .manager-code-strip p {
  color: #aeb5c5;
}

.manager-body .manager-share-panel {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(250px, .65fr) minmax(320px, 1.4fr);
  gap: 24px;
  align-items: center;
  padding: 25px 27px;
  border: 1px solid #dfe3eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 25px rgba(27,35,51,.045);
}

.manager-body .manager-share-copy h2 {
  margin: 3px 0 7px;
  color: #242c3e;
  font-size: 1.25rem;
  letter-spacing: -.035em;
}

.manager-body .manager-share-copy > p:last-child,
.manager-body .manager-share-toggle small {
  color: #747d8e;
  line-height: 1.55;
}

.manager-body .manager-share-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid #e0e4ec;
  border-radius: 12px;
  background: #f8f8fc;
  color: #2f3749;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.manager-body .manager-share-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #6157e7;
}

.manager-body .manager-share-toggle span,
.manager-body .manager-share-toggle small {
  display: block;
}

.manager-body .manager-share-toggle small {
  margin-top: 3px;
  font-size: .72rem;
}

.manager-body .manager-share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.manager-body .manager-share-link-row input {
  grid-column: 1 / -1;
  min-width: 0;
  border-color: #dfe3eb;
  background: #f8f8fc;
  color: #4e586b;
}

.manager-body .manager-share-link-row .secondary-button {
  grid-column: 1 / -1;
  justify-self: start;
  width: auto;
  border-color: #d9dee8;
  background: #f7f7ff;
  color: #554cc8;
}

.manager-body .manager-share-panel > .form-message {
  grid-column: 1 / -1;
  margin: -13px 0 0;
}

.manager-body .manager-registration-share-panel {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) auto minmax(360px, 1.25fr);
  gap: 26px;
  align-items: center;
  padding: 25px 27px;
  border: 1px solid #dfe3eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 25px rgba(27,35,51,.045);
}

.manager-body .manager-registration-share-panel[hidden] {
  display: none;
}

.manager-body .manager-registration-share-copy h2 {
  margin: 3px 0 7px;
  color: #242c3e;
  font-size: 1.25rem;
  letter-spacing: -.035em;
}

.manager-body .manager-registration-share-copy > p:last-child {
  color: #747d8e;
  line-height: 1.55;
}

.manager-body .manager-registration-qr {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  overflow: hidden;
  border: 1px solid #dfe3eb;
  border-radius: 13px;
  background: #fff;
}

.manager-body .manager-registration-qr svg {
  display: block;
  width: 146px;
  height: 146px;
}

.manager-body .manager-registration-tools {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.manager-body .manager-registration-tools > input {
  min-width: 0;
  border-color: #dfe3eb;
  background: #f8f8fc;
  color: #4e586b;
}

.manager-body .manager-registration-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manager-body .manager-registration-buttons button {
  width: auto;
  border-color: #d9dee8;
  background: #f7f7ff;
  color: #554cc8;
}

.manager-body .manager-registration-tools .form-message {
  margin: 0;
}

.manager-body .manager-grid {
  grid-template-columns: 380px minmax(0,1fr);
  gap: 18px;
}

.manager-body .admin-card {
  padding: 26px;
  border-color: #dfe3eb;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 25px rgba(27,35,51,.045);
}

.manager-body .admin-card h2 {
  color: #242c3e;
  font-size: 1.2rem;
  letter-spacing: -.035em;
}

.manager-body .aircraft-admin-list {
  padding-top: 4px;
  border-top: 1px solid #e8ebf1;
}

.manager-body .aircraft-row {
  border-color: #e1e5ed;
  background: #f8f9fc;
}

.manager-body .aircraft-row b {
  color: #30384a;
}

.manager-body .aircraft-row small {
  color: #858d9c;
}

.manager-body .mini-button {
  border-color: #d9d5ff;
  background: #f0efff;
  color: #554cc8;
}

.manager-body .mini-button.danger {
  border-color: #f1d5d2;
  background: #fff0ee;
  color: #b5413b;
}

.manager-body .code-badge {
  background: #171c2b;
  color: #fff;
}

.manager-body .form-message {
  color: #b5413b;
}

.manager-body .manager-danger-zone {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 27px;
  border: 1px solid #efcfcc;
  border-radius: 15px;
  background: #fff9f8;
}

.manager-body .manager-danger-zone h2 {
  margin: 3px 0 5px;
  color: #742c29;
  font-size: 1.15rem;
}

.manager-body .manager-danger-zone p:last-child {
  margin: 0;
  color: #7c6664;
}

.manager-delete-event-button {
  min-height: 42px;
  flex: none;
  border: 1px solid #a83c38;
  border-radius: 8px;
  padding: 0 16px;
  background: #a83c38;
  color: #fff;
  font: 800 .72rem/1 var(--sans);
  cursor: pointer;
}

.manager-delete-event-button:hover {
  background: #842e2a;
}

.manager-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: #fff;
  color: #293044;
  box-shadow: 0 30px 90px rgba(23,28,43,.32);
}

.manager-dialog::backdrop {
  background: rgba(23,28,43,.58);
  backdrop-filter: blur(3px);
}

.manager-dialog form {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.manager-dialog-header,
.manager-dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.manager-dialog-header h2 {
  margin: 3px 0 0;
  color: #242c3e;
  font-size: 1.5rem;
  letter-spacing: -.04em;
}

.manager-dialog-close {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid #dfe3eb;
  border-radius: 50%;
  background: #f8f9fc;
  color: #4e586b;
  font: 400 1.5rem/1 var(--sans);
  cursor: pointer;
}

.manager-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.manager-dialog-grid .manager-dialog-wide {
  grid-column: 1 / -1;
}

.manager-dialog label {
  display: grid;
  gap: 7px;
  color: #4e586b;
  font-size: .72rem;
  font-weight: 800;
}

.manager-dialog input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #293044;
  font: 500 .9rem/1.2 var(--sans);
}

.manager-dialog input[readonly] {
  background: #f5f6fa;
  color: #667084;
}

.manager-dialog-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.manager-dialog-actions .secondary-button,
.manager-dialog-actions .primary-button {
  width: auto;
}

.manager-delete-dialog {
  width: min(560px, calc(100% - 32px));
}

.manager-delete-dialog > form > p {
  margin: 0;
  color: #687185;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .manager-body .admin-main {
    width: min(100% - 40px, 1240px);
  }

  .manager-body .manager-grid {
    grid-template-columns: 1fr;
  }

  .manager-body .manager-share-panel {
    grid-template-columns: 1fr 1fr;
  }

  .manager-body .manager-share-link-row {
    grid-column: 1 / -1;
  }

  .manager-body .manager-registration-share-panel {
    grid-template-columns: 1fr auto;
  }

  .manager-body .manager-registration-tools {
    grid-column: 1 / -1;
  }

  .manager-body .manager-code-strip {
    grid-template-columns: 1fr 1fr;
  }

  .manager-body .manager-code-strip p {
    grid-column: 1/-1;
  }
}

@media (max-width: 600px) {
  .manager-body .manager-login-brand {
    top: 20px;
    left: 20px;
  }

  .manager-body .admin-login {
    padding: 88px 16px 24px;
  }

  .manager-body .admin-login .gate-card {
    padding: 28px 22px;
  }

  .manager-body .admin-topbar {
    min-height: 78px;
    padding: 0 16px;
  }

  .manager-body .admin-topbar .brand small {
    display: block;
  }

  .manager-body .admin-main {
    width: min(100% - 28px, 1240px);
    margin-top: 28px;
  }

  .manager-body .admin-summary {
    align-items: flex-start;
    padding-inline: 0;
  }

  .manager-body .admin-summary > p {
    text-align: left;
  }

  .manager-body .manager-code-strip {
    grid-template-columns: 1fr;
    transform: none;
  }

  .manager-body .manager-code-strip div {
    border-right: 0;
    border-bottom: 1px solid #303646;
    padding: 0 0 13px;
  }

  .manager-body .manager-code-strip p {
    grid-column: auto;
  }

  .manager-body .manager-share-panel {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .manager-body .manager-share-link-row {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .manager-body .manager-share-link-row input {
    grid-column: auto;
  }

  .manager-body .manager-registration-share-panel {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .manager-body .manager-registration-qr {
    justify-self: center;
  }

  .manager-body .manager-registration-tools {
    grid-column: auto;
  }

  .manager-body .admin-card {
    padding: 22px 18px;
  }

  .manager-body .manager-header-actions {
    gap: 6px;
  }

  .manager-body .manager-header-actions a,
  .manager-body .manager-header-actions button {
    min-height: 40px;
    padding: 0 10px;
  }

  .manager-body .manager-danger-zone {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
  }

  .manager-dialog form {
    gap: 18px;
    padding: 22px 18px;
  }

  .manager-dialog-grid {
    grid-template-columns: 1fr;
  }

  .manager-dialog-grid .manager-dialog-wide {
    grid-column: auto;
  }

  .manager-dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .manager-dialog-actions .secondary-button,
  .manager-dialog-actions .primary-button,
  .manager-dialog-actions .manager-delete-event-button {
    width: 100%;
  }
}

.gate-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.gate-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}

/* Core admin: system settings and event directory */
.core-admin-body {
  color-scheme: light;
  --ink: #1b2333;
  --ink-2: #4e586b;
  --muted: #747d8e;
  --line: #dfe3eb;
  --paper: #f5f6fa;
  --white: #fff;
  --green: #6157e7;
  --green-2: #4b43c5;
  --mint: #efeeff;
  --danger: #b84c46;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 8%, rgba(97,87,231,.07), transparent 27rem),
    #f5f6fa;
  color: #1b2333;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.core-admin-body h1,
.core-admin-body h2,
.core-admin-body h3 {
  font-family: inherit;
}

.core-admin-body .admin-login {
  background:
    radial-gradient(circle at 76% 18%, rgba(97,87,231,.11), transparent 25rem),
    #f5f6fa;
}

.core-admin-body .admin-login .gate-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid #dfe3eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(27,35,51,.08);
}

.core-admin-body .admin-login h1 {
  color: #171d2b;
  font-size: clamp(2.35rem,6vw,3.6rem);
  font-weight: 500;
  letter-spacing: -.06em;
}

.admin-2fa-setup {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #e5e9f1;
}

.admin-2fa-setup h2 {
  margin: 6px 0 14px;
  color: #242c3e;
  font-size: 1.35rem;
  letter-spacing: -.035em;
}

.admin-2fa-setup ol {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding-left: 20px;
  color: #747d8e;
  font-size: .75rem;
  line-height: 1.5;
}

.totp-secret-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.totp-secret-row code {
  overflow: hidden;
  padding: 12px;
  border: 1px solid #d9d5ff;
  border-radius: 9px;
  background: #f0efff;
  color: #4038a8;
  font: 800 .78rem/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .1em;
  text-overflow: ellipsis;
}

.totp-secret-row button {
  min-height: 41px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
  color: #554cc8;
  font-size: .66rem;
  font-weight: 800;
}

.totp-note {
  margin: 8px 0 0;
  color: #9299aa;
  font-size: .62rem;
}

.core-admin-body .eyebrow {
  color: #9299aa;
  font-size: .62rem;
}

.core-admin-body .intro,
.core-admin-body .admin-card > p,
.core-admin-body .admin-summary > p {
  color: #747d8e;
}

.core-admin-body .admin-topbar {
  min-height: 92px;
  padding: 0 6vw;
  border-bottom: 1px solid #dfe3eb;
  background: rgba(245,246,250,.92);
  color: #1b2333;
  backdrop-filter: blur(14px);
}

.core-admin-body .brand {
  gap: 10px;
  color: #171d2b;
}

.core-admin-body .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #766df7, #4c44ca);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  transform: skew(-7deg);
  box-shadow: 0 10px 30px rgba(98,89,231,.28);
}

.core-admin-body .brand b {
  color: #171d2b;
  font: 800 .9rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.core-admin-body .brand small {
  margin-top: 4px;
  color: #8b92a2;
  font-size: .45rem;
  letter-spacing: .2em;
}

.core-admin-body .admin-topbar .text-button {
  min-height: 38px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
  color: #4e586b;
}

.core-admin-body .admin-main {
  width: min(1240px, calc(100% - 12vw));
  margin: 42px auto 70px;
  gap: 24px;
}

.core-admin-body .admin-summary {
  min-height: 90px;
  padding: 0 2vw 18px;
  border-bottom: 1px solid #dfe3eb;
}

.core-admin-body .admin-summary h1 {
  color: #171d2b;
  font-size: clamp(2.5rem,5vw,4.4rem);
  font-weight: 500;
  letter-spacing: -.065em;
}

.core-admin-body .admin-summary > p {
  max-width: 450px;
  margin: 0 0 7px;
  line-height: 1.6;
  text-align: right;
}

.core-settings-grid {
  display: grid;
  grid-template-columns: minmax(0,1.8fr) minmax(260px,.7fr);
  gap: 18px;
  align-items: start;
}

.core-admin-body .admin-card {
  padding: 26px;
  border-color: #dfe3eb;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 25px rgba(27,35,51,.045);
}

.core-admin-body .admin-card h2 {
  color: #242c3e;
  font-size: 1.25rem;
}

.core-card-heading,
.history-heading,
.smtp-heading,
.core-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.core-card-heading h2,
.history-heading h3,
.smtp-heading h3 {
  margin: 2px 0 0;
}

.history-heading,
.smtp-heading {
  margin: 29px 0 3px;
  padding-top: 24px;
  border-top: 1px solid #e8ebf1;
}

.core-history-setting {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #e2e5ee;
  border-radius: 12px;
  background: #f8f9fc;
}

.core-history-setting > label {
  display: block;
  margin-bottom: 10px;
}

.core-admin-body .core-history-setting input[type="range"] {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #6157e7;
  box-shadow: none;
}

.core-history-scale,
.core-history-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.core-history-scale {
  margin-top: 7px;
  color: #7a8292;
  font-size: .67rem;
  font-weight: 700;
}

.core-history-summary {
  align-items: baseline;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e5ee;
  color: #596174;
}

.core-history-summary b {
  color: #293044;
  white-space: nowrap;
}

.core-history-summary span {
  font-size: .74rem;
  line-height: 1.45;
  text-align: right;
}

.core-history-setting > p {
  margin: 12px 0 0;
  color: #747d8e;
  font-size: .72rem;
  line-height: 1.55;
}

.core-timing-setting {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #e2e5ee;
  border-radius: 12px;
  background: #f8f9fc;
}

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

.core-timing-grid label {
  position: relative;
}

.core-timing-grid label small {
  position: absolute;
  right: 10px;
  bottom: 12px;
  color: #8a91a0;
  font-size: .58rem;
  pointer-events: none;
}

.core-timing-grid input {
  padding-right: 54px !important;
}

.core-timing-setting > p {
  margin: 12px 0 0;
  color: #747d8e;
  font-size: .72rem;
  line-height: 1.55;
}

.core-status-pill,
.core-event-type,
.core-event-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 9px;
  background: #e7f8f2;
  color: #27846a;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.core-status-pill.is-warning {
  background: #fff6dc;
  color: #9b6a00;
}

.core-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: #4f586b;
  letter-spacing: 0;
  text-transform: none;
}

.core-check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #6157e7;
}

.core-admin-body label {
  color: #747d8e;
  font-size: .66rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.core-admin-body input,
.core-admin-body select,
.core-admin-body textarea {
  border-color: #dfe3eb;
  background: #fff;
  color: #293044;
  text-transform: none;
  letter-spacing: 0;
}

.core-admin-body input:focus,
.core-admin-body select:focus,
.core-admin-body textarea:focus {
  border-color: #aaa5ef;
  box-shadow: 0 0 0 3px rgba(97,85,232,.12);
}

.core-form-actions {
  justify-content: flex-start;
  margin-top: 5px;
}

.core-form-actions .primary-button {
  background: #6157e7;
  box-shadow: 0 9px 22px rgba(97,87,231,.2);
}

.core-form-actions .secondary-button {
  width: auto;
  border-color: #d9d5ff;
  background: #f0efff;
  color: #554cc8;
}

.core-help-card {
  background: #171c2b !important;
  color: #fff;
  transform: rotate(.25deg);
  box-shadow: 0 22px 48px rgba(34,41,59,.13) !important;
}

.core-help-card .eyebrow {
  color: #8e96a8;
}

.core-help-card h2 {
  color: #fff !important;
}

.core-help-card > p,
.core-help-card li {
  color: #aeb5c5 !important;
  font-size: .78rem;
  line-height: 1.65;
}

.core-help-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 18px;
}

.core-help-card a {
  color: #a9a3ff;
}

.core-events-card {
  padding: 0 !important;
  overflow: hidden;
}

.core-events-card > .core-card-heading,
.core-events-card > p {
  padding-inline: 26px;
}

.core-events-card > .core-card-heading {
  padding-top: 26px;
}

.core-events-card > p {
  margin-bottom: 18px;
}

.core-event-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px 20px;
}

.core-event-search {
  min-width: 240px;
  flex: 1;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #e3e5ed;
  border-radius: 10px;
  background: #f5f6fa;
}

.core-event-search span {
  color: #858d9c;
  font-size: 1rem;
}

.core-admin-body .core-event-search input {
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.core-event-filter {
  display: block !important;
  grid-template-columns: none !important;
}

.core-admin-body .core-event-filter select {
  width: auto;
  min-width: 155px;
  min-height: 44px;
  background-color: #fff;
}

.core-card-heading > span:not(.core-status-pill) {
  color: #858d9c;
  font-size: .72rem;
  font-weight: 800;
}

.core-event-directory {
  border-top: 1px solid #e5e9f1;
}

.core-event {
  border-bottom: 1px solid #e5e9f1;
  background: #fff;
}

.core-event:last-child {
  border-bottom: 0;
}

.core-event > summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(220px,1fr) auto auto auto 24px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 26px;
  list-style: none;
}

.core-event > summary::-webkit-details-marker {
  display: none;
}

.core-event > summary:hover {
  background: #fafbfe;
}

.core-event-title b,
.core-event-title small {
  display: block;
}

.core-event-title b {
  color: #30384a;
  font-size: .86rem;
}

.core-event-title small {
  margin-top: 4px;
  color: #858d9c;
  font-size: .64rem;
}

.core-event-type.is-open {
  background: #efeeff;
  color: #554cc8;
}

.core-event-type.is-invite {
  background: #fff6dc;
  color: #9b6a00;
}

.core-event-status {
  background: #eef1f5;
  color: #6f7787;
}

.core-event-status.is-closed {
  background: #fcebe9;
  color: #a7443e;
}

.core-event-count {
  color: #626b7d;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.core-event-chevron {
  color: #6157e7;
  font-size: 1.1rem;
  transition: transform .2s;
}

.core-event[open] .core-event-chevron {
  transform: rotate(180deg);
}

.core-event-detail {
  padding: 0 26px 24px;
  background: #f8f9fc;
  border-top: 1px solid #edf0f4;
}

.core-event-access {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 10px;
  padding: 18px 0;
}

.core-event-access span {
  padding: 12px;
  border: 1px solid #e1e5ed;
  border-radius: 10px;
  background: #fff;
}

.core-event-access small,
.core-event-access b {
  display: block;
}

.core-event-access small {
  color: #9299aa;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.core-event-access b {
  margin-top: 5px;
  color: #30384a;
  font-size: .74rem;
}

.core-event-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #e1e5ed;
  border-radius: 10px;
  background: #fff;
}

.core-event-controls b,
.core-event-controls small {
  display: block;
}

.core-event-controls b {
  color: #30384a;
  font-size: .74rem;
}

.core-event-controls small {
  margin-top: 4px;
  color: #858d9c;
  font-size: .62rem;
}

.core-event-control-buttons,
.core-reactivate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.core-admin-body .core-event-control-buttons .mini-button {
  border-color: #d9dee8;
  background: #f7f7ff;
  color: #554cc8;
}

.core-admin-body .core-event-control-buttons .mini-button.danger {
  border-color: #efceca;
  background: #fff6f5;
  color: #b5413b;
}

.core-reactivate-form {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #d9d5ff;
  border-radius: 10px;
  background: #f4f3ff;
}

.core-reactivate-form > div:first-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.core-reactivate-form > p {
  margin: 12px 0;
  color: #697286;
  font-size: .66rem;
  line-height: 1.55;
}

.core-reactivate-form .primary-button {
  min-height: 38px;
  padding-inline: 14px;
  background: #6157e7;
}

.core-reactivate-form .text-button {
  color: #626b7d;
}

.core-event-database {
  margin: 0 0 14px;
  border: 1px solid #dfe3eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.core-database-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.core-database-heading small,
.core-database-heading b,
.core-database-heading span {
  display: block;
}

.core-database-heading small {
  color: #6157e7;
  font-size: .54rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.core-database-heading b {
  margin-top: 3px;
  color: #30384a;
  font-size: .74rem;
}

.core-database-heading span {
  margin-top: 3px;
  color: #858d9c;
  font-size: .6rem;
}

.core-database-content {
  padding: 14px;
  border-top: 1px solid #e7e9ef;
  background: #f8f9fc;
}

.core-database-message,
.core-database-period,
.core-database-active-note,
.core-database-result {
  margin: 0;
  color: #737b8c;
  font-size: .63rem;
  line-height: 1.5;
}

.core-database-message.is-error,
.core-database-preview.is-error {
  color: #a83f39;
}

.core-database-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.core-database-metrics span,
.core-database-aircraft span {
  padding: 11px 12px;
  border: 1px solid #e1e5ed;
  border-radius: 9px;
  background: #fff;
}

.core-database-metrics small,
.core-database-metrics b,
.core-database-aircraft small,
.core-database-aircraft b {
  display: block;
}

.core-database-metrics small,
.core-database-aircraft small {
  color: #8a91a0;
  font-size: .55rem;
}

.core-database-metrics b,
.core-database-aircraft b {
  margin-top: 4px;
  color: #30384a;
  font-size: .7rem;
}

.core-database-period {
  margin-top: 10px;
}

.core-database-aircraft {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.core-database-trim {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e2d6d3;
  border-radius: 9px;
  background: #fffafa;
}

.core-database-trim-copy b {
  color: #30384a;
  font-size: .72rem;
}

.core-database-trim-copy p {
  margin: 4px 0 0;
  color: #747c8c;
  font-size: .61rem;
  line-height: 1.5;
}

.core-database-trim-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  margin-top: 12px;
}

.core-database-trim-fields label {
  color: #666f81;
  font-size: .58rem;
  font-weight: 750;
}

.core-database-trim-fields input {
  width: 100%;
  min-height: 38px;
  margin-top: 5px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
  color: #30384a;
}

.core-database-active-note {
  margin-top: 9px;
}

.core-database-active-note.is-active {
  color: #a0611e;
  font-weight: 700;
}

.core-database-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #e7c9c5;
  border-radius: 8px;
  background: #fff;
  color: #4c5568;
}

.core-database-preview b,
.core-database-preview small {
  display: block;
}

.core-database-preview b {
  font-size: .66rem;
}

.core-database-preview small {
  margin-top: 3px;
  color: #7f8797;
  font-size: .58rem;
}

.core-database-result {
  margin-bottom: 10px;
  color: #188067;
  font-weight: 750;
}

.core-event-directory-message {
  min-height: 0 !important;
  margin-top: 8px !important;
  margin-bottom: 18px !important;
}

.core-aircraft-list {
  display: grid;
  gap: 7px;
}

.core-aircraft-row {
  display: grid;
  grid-template-columns: .7fr .8fr 1.5fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #e1e5ed;
  border-radius: 10px;
  background: #fff;
}

.core-aircraft-row span > b,
.core-aircraft-row span > small {
  display: block;
}

.core-aircraft-row span > b {
  color: #30384a;
  font-size: .72rem;
}

.core-aircraft-row span > small {
  margin-top: 3px;
  color: #8a91a0;
  font-size: .58rem;
}

.core-aircraft-row .code-badge {
  display: inline-block;
  background: #171c2b;
  color: #fff;
}

.core-aircraft-empty {
  margin: 0;
  padding: 20px;
  color: #8a91a0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

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

.core-admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 110;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 20px 22px;
  background: #171a2b;
  color: #fff;
}

.core-admin-sidebar .brand {
  margin-left: 8px;
  color: #fff;
}

.core-admin-sidebar .brand b {
  color: #fff;
}

.core-admin-sidebar .brand small {
  color: #9095ab;
}

.core-sidebar-label {
  margin: 42px 10px 10px;
  color: #8f94ac;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.flyin-app-switcher{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:16px 0 20px;padding:4px;border-radius:11px;background:rgba(255,255,255,.08)}
.flyin-app-switcher a{padding:8px 5px;border-radius:8px;color:rgba(255,255,255,.68);font-size:11px;font-weight:750;text-align:center;text-decoration:none;letter-spacing:.03em}
.flyin-app-switcher a:hover,.flyin-app-switcher a.active{background:#fff;color:#12304a}

.core-admin-sidebar nav {
  display: grid;
  gap: 7px;
}

.core-admin-sidebar button {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  background: transparent;
  color: #b9bdd0;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.core-admin-sidebar button:hover,
.core-admin-sidebar button.active {
  background: #2a2e45;
  color: #fff;
}

.core-admin-sidebar button span {
  width: 18px;
  color: #8f86ff;
  font-size: 1rem;
  text-align: center;
}

.core-admin-sidebar .core-sidebar-logout {
  border-top: 1px solid #30344a;
  border-radius: 0;
  padding-top: 20px;
}

.core-admin-body .core-admin-main {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 36px clamp(24px, 4vw, 64px) 70px;
  display: block;
}

.core-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.core-workspace-header h1 {
  margin: 4px 0 0;
  color: #171d2b;
  font-size: 2.2rem;
  font-weight: 650;
  letter-spacing: -.045em;
}

.core-admin-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 13px;
  border: 1px solid #e4e6ef;
  border-radius: 13px;
  background: #fff;
}

.core-admin-chip > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #6258e8;
  color: #fff;
  font-weight: 800;
}

.core-admin-chip div {
  display: grid;
  gap: 2px;
}

.core-admin-chip b {
  color: #30384a;
  font-size: .75rem;
}

.core-admin-chip small {
  color: #858d9c;
  font-size: .62rem;
}

.core-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.core-stat-grid article {
  display: grid;
  gap: 9px;
  padding: 19px;
  border: 1px solid #e5e7ef;
  border-radius: 15px;
  background: #fff;
}

.core-stat-grid span {
  color: #747d8e;
  font-size: .72rem;
  font-weight: 700;
}

.core-stat-grid strong {
  color: #242c3e;
  font-size: 1.8rem;
}

.core-tab-panel {
  min-width: 0;
}

@media (max-width: 900px) {
  .core-admin-shell {
    grid-template-columns: 1fr;
  }

  .core-admin-sidebar {
    position: static;
    height: auto;
    padding: 18px;
    flex-direction: row;
    align-items: center;
  }

  .core-admin-sidebar > div {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .core-sidebar-label {
    display: none;
  }

  .core-admin-sidebar nav {
    display: flex;
  }

  .core-admin-sidebar nav button span {
    display: none;
  }

  .core-admin-sidebar .core-sidebar-logout {
    border: 0;
    border-radius: 10px;
    padding-top: 12px;
  }

  .core-admin-body .core-admin-main {
    width: auto;
    padding: 28px 22px 60px;
  }

  .core-admin-body .admin-main {
    width: min(100% - 40px,1240px);
  }

  .core-admin-body .core-admin-main {
    width: auto;
  }

  .core-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .core-settings-grid {
    grid-template-columns: 1fr;
  }

  .core-help-card {
    transform: none;
  }
}

@media (max-width: 700px) {
  .history-heading,
  .core-history-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .core-history-summary span {
    text-align: left;
  }

  .core-timing-grid {
    grid-template-columns: 1fr;
  }

  .core-admin-sidebar {
    align-items: stretch;
    gap: 12px;
    flex-direction: column;
  }

  .core-admin-sidebar > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .core-admin-sidebar nav {
    width: 100%;
  }

  .core-admin-sidebar nav button {
    flex: 1;
  }

  .core-admin-sidebar .brand small,
  .core-admin-sidebar .core-sidebar-logout span {
    display: none;
  }

  .core-admin-sidebar button {
    min-height: 39px;
    padding: 9px 10px;
    font-size: .68rem;
  }

  .core-admin-sidebar .core-sidebar-logout {
    align-self: flex-end;
    position: absolute;
    right: 18px;
    top: 18px;
  }

  .core-workspace-header {
    align-items: flex-start;
  }

  .core-workspace-header h1 {
    font-size: 1.75rem;
  }

  .core-admin-chip div {
    display: none;
  }

  .core-admin-body .admin-topbar {
    min-height: 78px;
    padding: 0 16px;
  }

  .core-admin-body .admin-main {
    width: min(100% - 28px,1240px);
    margin-top: 28px;
  }

  .core-admin-body .core-admin-main {
    width: auto;
    margin: 0;
    padding: 24px 14px 50px;
  }

  .core-admin-body .admin-summary {
    align-items: flex-start;
    padding-inline: 0;
  }

  .core-admin-body .admin-summary > p {
    text-align: left;
  }

  .core-form-actions,
  .core-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .core-form-actions .secondary-button {
    width: 100%;
  }

  .core-event-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding-inline: 18px;
  }

  .core-event-search {
    min-width: 0;
  }

  .core-admin-body .core-event-filter select {
    width: 100%;
  }

  .core-event > summary {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 16px 18px;
  }

  .core-event-title {
    grid-column: 1;
  }

  .core-event-chevron {
    grid-column: 2;
    grid-row: 1;
  }

  .core-event-type,
  .core-event-status,
  .core-event-count {
    justify-self: start;
  }

  .core-event-count {
    grid-column: 1/-1;
  }

  .core-event-detail {
    padding: 0 14px 18px;
  }

  .core-event-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .core-event-control-buttons {
    width: 100%;
  }

  .core-event-control-buttons .mini-button {
    flex: 1;
  }

  .core-reactivate-form > div:first-child {
    grid-template-columns: 1fr;
  }

  .core-event-access,
  .core-aircraft-row {
    grid-template-columns: 1fr;
  }

  .core-database-heading,
  .core-database-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .core-database-metrics,
  .core-database-aircraft,
  .core-database-trim-fields {
    grid-template-columns: 1fr;
  }
}

/* Public privacy policy */
.privacy-body {
  background:
    radial-gradient(circle at 87% 7%, rgba(97,85,232,.1), transparent 25rem),
    #f5f6fa;
}

.privacy-main {
  width: min(1180px, calc(100% - 12vw));
  margin: 0 auto;
  padding: 84px 0 90px;
}

.privacy-hero {
  max-width: 940px;
  padding: 58px 0 68px;
}

.privacy-hero h1 {
  max-width: 850px;
  margin: 12px 0 24px;
  color: #171d2b;
  font-size: clamp(3.5rem, 8vw, 7.3rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .86;
}

.privacy-hero h1 em {
  color: #6157e7;
  font-family: Georgia, serif;
  font-weight: 400;
}

.privacy-hero > p:not(.eyebrow):not(.privacy-updated) {
  max-width: 760px;
  color: #626b7d;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.privacy-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.privacy-highlights span {
  min-height: 115px;
  padding: 20px;
  border: 1px solid #dfe3eb;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
}

.privacy-highlights b,
.privacy-highlights small {
  display: block;
}

.privacy-highlights b {
  color: #30384a;
  font-size: .9rem;
}

.privacy-highlights small {
  margin-top: 10px;
  color: #747d8e;
  font-size: .7rem;
  line-height: 1.5;
}

.privacy-updated {
  margin-top: 18px;
  color: #8a91a0;
  font-size: .68rem;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.privacy-index {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 3px;
  padding: 18px;
  border: 1px solid #dfe3eb;
  border-radius: 14px;
  background: #fff;
}

.privacy-index .eyebrow {
  margin: 0 0 10px;
}

.privacy-index a {
  padding: 9px 10px;
  border-radius: 7px;
  color: #626b7d;
  font-size: .7rem;
  font-weight: 750;
  text-decoration: none;
}

.privacy-index a:hover {
  background: #f1f0ff;
  color: #554cc8;
}

.privacy-policy {
  min-width: 0;
}

.privacy-policy > section {
  scroll-margin-top: 110px;
  padding: 10px 0 54px;
  border-bottom: 1px solid #dfe3eb;
}

.privacy-policy > section + section {
  padding-top: 52px;
}

.privacy-number {
  margin: 0 0 9px;
  color: #6157e7;
  font: 800 .7rem ui-monospace, monospace;
}

.privacy-policy h2 {
  margin: 0 0 18px;
  color: #242c3e;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 520;
  letter-spacing: -.045em;
}

.privacy-policy h3 {
  margin: 0 0 8px;
  color: #30384a;
  font-size: .85rem;
}

.privacy-policy p,
.privacy-policy li {
  color: #626b7d;
  font-size: .86rem;
  line-height: 1.75;
}

.privacy-policy a {
  color: #554cc8;
  font-weight: 750;
}

.privacy-policy ul {
  display: grid;
  gap: 9px;
  padding-left: 19px;
}

.privacy-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.privacy-card-grid > div {
  padding: 20px;
  border: 1px solid #dfe3eb;
  border-radius: 13px;
  background: #fff;
}

.privacy-card-grid p {
  margin: 0;
  font-size: .75rem;
}

.privacy-timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid #c9c5ff;
}

.privacy-timeline > div {
  position: relative;
  padding: 3px 0 24px 25px;
}

.privacy-timeline > div::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -7px;
  width: 10px;
  height: 10px;
  border: 2px solid #f5f6fa;
  border-radius: 50%;
  background: #6157e7;
}

.privacy-timeline b {
  color: #30384a;
  font-size: .8rem;
}

.privacy-timeline p {
  margin: 5px 0 0;
  font-size: .77rem;
}

.privacy-policy > .privacy-contact {
  margin-top: 50px;
  padding: 34px;
  border: 1px solid #252b3e;
  border-radius: 16px;
  background: #171c2b;
}

.privacy-contact h2 {
  color: #fff;
}

.privacy-contact p {
  color: #aeb5c5;
}

.privacy-contact a {
  color: #a9a3ff;
}

@media (max-width: 850px) {
  .privacy-main {
    width: min(100% - 40px, 1180px);
    padding-top: 40px;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .privacy-index {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .privacy-index .eyebrow {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .privacy-main {
    width: min(100% - 28px, 1180px);
  }

  .privacy-hero {
    padding: 38px 0 48px;
  }

  .privacy-highlights,
  .privacy-card-grid,
  .privacy-index {
    grid-template-columns: 1fr;
  }

  .privacy-policy > .privacy-contact {
    padding: 26px 21px;
  }
}

@media (min-width: 1101px) {
  .landing-body > .landing-nav,
  .manager-body .admin-topbar,
  body > .app-shell > .topbar {
    padding-right: max(180px, 6vw);
  }
}
