/* SkyOps ACARS : démo interactive (styles)
 *
 * Pourquoi : la page publique /skyops montre l'application Windows « SkyOps ACARS »
 * dans un iframe, pour qu'un visiteur voie l'outil avant de le télécharger.
 * Cette feuille reproduit la fenêtre WPF (Views/MainWindow.xaml du dépôt
 * LibertyFly-ACARS) : les couleurs hexadécimales sont celles de l'app, à
 * dessein (c'est une réplique), et non les jetons --lf-* du site.
 * Aucune ressource externe : polices système (Segoe UI, Consolas en repli).
 */

:root {
  /* Window.Resources du XAML */
  --bg-primary: #0D1117;
  --bg-card: #161B22;
  --bg-input: #21262D;
  --border: #30363D;
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --accent-blue: #58A6FF;
  --accent-green: #3FB950;
  --accent-red: #F85149;
  --accent-orange: #D29922;
  --accent-purple: #BC8CFF;
  --btn-primary: #238636;
  --btn-primary-hover: #2EA043;
  --btn-danger: #DA3633;
  --muted-blue: #6A8AAA;
  --banner-bg: #1A2332;
  --banner-border: #1F4068;
  --inset: #11161D;
  --mono: Consolas, "Cascadia Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 13px;
}

button, input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.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;
}

[hidden] { display: none !important; }

.mono { font-family: var(--mono); }
.c-blue { color: var(--accent-blue); }
.c-green { color: var(--accent-green); }
.c-red { color: var(--accent-red); }
.c-orange { color: var(--accent-orange); }
.c-purple { color: var(--accent-purple); }
.c-sec { color: var(--text-secondary); }
.c-pri { color: var(--text-primary); }
.small { font-size: 11px; }
.tiny { font-size: 10px; }
.bold { font-weight: 700; }
.semi { font-weight: 600; }

/* ───────────── Fenêtre ───────────── */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
}

.titlebar {
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  background: var(--bg-primary);
  min-width: 0;
}
.titlebar-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.demo-note {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  color: var(--muted-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.lang-switch { display: flex; gap: 2px; flex: 0 0 auto; }
.lang-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--bg-input); color: var(--text-primary); border-color: var(--accent-blue); }
.winbtns { display: flex; flex: 0 0 auto; }
.winbtn {
  width: 46px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 11px; user-select: none;
}
.winbtn:hover { background: var(--bg-input); }
.winbtn.close:hover { background: #C42B1C; color: #fff; }

.content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 16px 12px;
}

/* ───────────── Carte (style Card) ───────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.card.tight { padding: 8px 12px; }

/* ───────────── En-tête ───────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 12px 16px;
}
.brand { display: flex; align-items: baseline; gap: 0; white-space: nowrap; }
.brand-va { font-size: 20px; font-weight: 700; color: var(--accent-blue); }
.brand-acars { font-size: 20px; font-weight: 300; color: var(--text-primary); }
.brand-ver { font-size: 11px; color: var(--text-secondary); margin-left: 8px; }
.simconn { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-red); flex: 0 0 auto; }
.dot.on { background: var(--accent-green); }

/* ───────────── Boutons ───────────── */
.btn {
  border: 0; border-radius: 6px; cursor: pointer;
  font-weight: 600; font-size: 13px; padding: 8px 16px;
  background: var(--btn-primary); color: #fff;
  white-space: nowrap;
}
.btn:hover { background: var(--btn-primary-hover); }
.btn.secondary { background: var(--bg-input); color: var(--text-primary); }
.btn.secondary:hover { background: var(--border); }
.btn.danger { background: var(--btn-danger); }
.btn.danger:hover { background: var(--accent-red); }
.btn.sm { font-size: 11px; padding: 4px 12px; }
.btn.xs { font-size: 10px; padding: 4px 10px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.5; cursor: default; }

/* ───────────── Onglets ───────────── */
.tablist {
  display: flex;
  flex: 0 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--bg-input);
}
.tablist::-webkit-scrollbar { display: none; }
.tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
  padding: 8px 16px; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--text-primary); }
.tab[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--accent-blue); }

.panels { flex: 1 1 auto; min-height: 0; position: relative; }
.panel {
  position: absolute; inset: 0;
  overflow-y: auto;
  padding-top: 12px;
  scrollbar-color: var(--border) transparent;
}
.panel:focus-visible { outline-offset: -2px; }

/* ───────────── Barre d'état ───────────── */
.statusbar {
  flex: 0 0 auto;
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding: 6px 12px;
  background: var(--bg-card); border-radius: 0 0 8px 8px;
  font-size: 11px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden;
}
.statusbar span:first-child { overflow: hidden; text-overflow: ellipsis; }

/* ───────────── Champs ───────────── */
.input {
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border); padding: 4px 8px; font-size: 13px;
  min-width: 0;
}
.input:hover { background: var(--border); }
.input::placeholder { color: #484F58; font-style: italic; }
.input:disabled { opacity: 0.6; }
.select {
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border); padding: 3px 6px; font-size: 12px; max-width: 100%;
}
.field-label { color: var(--text-secondary); font-size: 11px; margin-bottom: 4px; display: block; }
.check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-primary); }
.check input { margin: 2px 0 0; accent-color: var(--accent-blue); flex: 0 0 auto; }
.range { accent-color: var(--accent-blue); width: 220px; max-width: 100%; }

/* ═════════════ HUB ═════════════ */
.hub { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; padding-bottom: 8px; }
.hub-col > * { margin-bottom: 10px; }
.hub-refresh { display: flex; justify-content: flex-end; margin-bottom: 8px !important; }
.profile { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.callsign { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent-blue); }
.pilot-name { font-size: 14px; color: var(--text-secondary); margin-left: 12px; }
.rank-line { font-size: 12px; margin-top: 4px; }
.rp-big { font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--accent-green); }
.rp-unit { font-size: 12px; color: var(--text-secondary); margin-left: 4px; }
.right { text-align: right; }
.bar { height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--btn-primary); border-radius: 3px; }
.bar.thin { height: 4px; border-radius: 2px; }
.bar.thin > i { border-radius: 2px; }
.row-between { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 12px; text-align: center; }
.gv { font-family: var(--mono); font-weight: 700; color: var(--text-primary); font-size: 20px; display: block; }
.gv.sm { font-size: 16px; }
.gl { font-size: 10px; color: var(--text-secondary); display: block; }
.card-title { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.task { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 4px; align-items: center; margin-bottom: 6px; }
.task .lbl { font-size: 11px; color: var(--text-primary); }
.task .bar { margin: 3px 8px 0 0; }
.task .pd { font-family: var(--mono); font-size: 10px; margin: 0 4px; }
.task .rp { font-size: 9px; color: var(--text-secondary); }
.item {
  background: var(--bg-input); border-radius: 6px; padding: 8px 10px; margin-bottom: 6px;
}
.flight-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { border-radius: 3px; padding: 2px 6px; font-size: 9px; font-weight: 700; color: #fff; }
.daily {
  background: var(--banner-bg); border: 1px solid var(--banner-border);
  border-radius: 8px; padding: 10px 12px;
}
.stars { color: var(--accent-orange); font-size: 11px; margin-left: 10px; letter-spacing: 1px; }
.mini-nav { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--text-secondary); }
.mini-nav .btn { font-size: 9px; padding: 1px 6px; }
.award { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 4px; }

/* ═════════════ VOL ═════════════ */
.flight { position: relative; display: flex; flex-direction: column; gap: 0; min-height: 100%; padding-bottom: 4px; }
.dispatch-bar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dispatch-bar .grow { flex: 1 1 auto; min-width: 0; }
.disp-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.disp-fields .gt { color: var(--text-secondary); margin: 0 4px; }
.strip {
  border-radius: 6px; border: 1px solid var(--border); background: var(--bg-card);
  padding: 4px 8px; margin-bottom: 6px; font-size: 10px;
}
.strip.banner { background: var(--banner-bg); border-color: var(--banner-border); border-radius: 8px; padding: 6px 12px; }
.wx { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 8px; }
.wx .sep { background: var(--border); }
.wx .metar { font-family: var(--mono); font-size: 9px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat { display: inline-block; border-radius: 3px; padding: 1px 4px; font-size: 8px; font-weight: 700; color: #fff; background: var(--accent-green); margin-left: 6px; }
.simctl { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: 2px 0 6px; font-size: 10px; color: var(--muted-blue); }
.simctl .btn { font-size: 10px; padding: 2px 8px; font-weight: 600; }

.flight-main { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; flex: 1 1 auto; min-height: 330px; }
.flight-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.phase-card { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.phase { font-size: 22px; font-weight: 700; color: var(--accent-blue); white-space: nowrap; }
.acft { flex: 1 1 auto; min-width: 0; font-size: 12px; display: flex; gap: 8px; align-items: center; }
.acft .cat2 { font-size: 10px; color: var(--accent-purple); }
.ftime { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--accent-green); }
.gauges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0; padding: 6px 10px; }
.gauge { text-align: center; margin: 0 8px; min-width: 44px; }
.gauge .gv { font-size: 16px; }
.vsep { width: 1px; align-self: stretch; background: var(--border); margin: 2px 10px; }
.infr { display: inline-block; border-radius: 3px; padding: 2px 6px; font-size: 9px; font-weight: 700; color: #fff; background: var(--bg-input); margin: 0 2px; }
.infr.ground { background: var(--accent-green); }
.map { padding: 0; overflow: hidden; flex: 1 1 auto; min-height: 180px; position: relative; background: #0B1220; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.log { display: flex; flex-direction: column; min-height: 0; }
.log-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; min-height: 120px; max-height: 100%; }
.log-list li { display: grid; grid-template-columns: 58px 22px minmax(0, 1fr); gap: 2px; padding: 2px; font-size: 12px; }
.log-list .ts { font-family: var(--mono); font-size: 11px; color: var(--text-secondary); }
.log-list .msg { color: var(--text-primary); overflow-wrap: break-word; }

.debrief-overlay {
  position: absolute; inset: 0;
  background: rgba(13, 17, 23, 0.88);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 5;
}
.debrief { max-width: 580px; width: 100%; max-height: 100%; overflow-y: auto; padding: 20px; text-align: center; }
.db-title { font-size: 16px; font-weight: 700; color: var(--accent-blue); margin-bottom: 12px; }
.db-route { font-family: var(--mono); font-size: 20px; font-weight: 700; }
.db-acft { font-size: 11px; color: var(--text-secondary); margin-bottom: 12px; }
.db-landing { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; text-align: left; flex-wrap: wrap; }
.score-ring {
  --p: 0; --c: var(--accent-green);
  width: 96px; height: 96px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--bg-input) 0);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.score-ring > div {
  width: 78px; height: 78px; border-radius: 50%; background: var(--bg-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-ring b { font-family: var(--mono); font-size: 24px; }
.score-ring small { font-size: 9px; color: var(--text-secondary); }
.db-fpm { font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--accent-green); }
.db-grade { font-size: 14px; font-weight: 600; color: var(--accent-green); margin-bottom: 6px; }
.db-grid { display: grid; gap: 4px; margin-bottom: 8px; }
.db-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.db-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.db-grid .gv { font-size: 14px; }
.db-chart { width: 100%; height: 80px; display: block; margin: 4px 0 8px; background: var(--bg-primary); border-radius: 6px; }
.pill { display: inline-block; border-radius: 6px; padding: 5px 10px; background: var(--bg-input); font-size: 11px; margin: 0 4px 8px; }
.db-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ═════════════ RADIO FM ═════════════ */
.radio { background: #0A0E14; border-radius: 12px; padding: 16px; margin-top: -4px; }
.headunit {
  background: var(--bg-primary); border: 2px solid #1B2838; border-radius: 10px;
  padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.lcd {
  background: #0C1A0C; border: 1px solid #1A3A1A; border-radius: 6px;
  padding: 12px 16px; margin-bottom: 12px; font-family: var(--mono); position: relative;
}
.lcd-top { display: flex; justify-content: space-between; color: #2A6A2A; font-size: 11px; font-weight: 700; margin-bottom: 6px; white-space: pre; }
.lcd-top span:last-child { font-size: 10px; font-weight: 400; }
.lcd-name { color: #00E676; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; padding-right: 64px; }
.lcd-bottom { display: flex; justify-content: space-between; color: #2A8A2A; font-size: 12px; }
.lcd-bottom span:last-child { color: #2A6A2A; font-size: 11px; }
.vu { position: absolute; right: 16px; top: 26px; height: 28px; display: flex; align-items: flex-end; gap: 3px; }
.vu i { width: 5px; height: 3px; background: #00E676; opacity: 0.85; border-radius: 1px; transition: height 0.12s linear; }
.transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.tp-btns { display: flex; justify-content: center; gap: 6px; }
.rbtn {
  background: var(--bg-card); color: #C9D1D9; border: 1px solid var(--border);
  border-radius: 6px; width: 48px; height: 40px; font-size: 16px; cursor: pointer;
}
.rbtn:hover { background: #1F2A3D; }
.rbtn.play { width: 64px; height: 48px; border-radius: 8px; background: #1A3A1A; color: #00E676; font-size: 22px; }
.rbtn.scan { width: auto; height: auto; padding: 8px 16px; background: var(--bg-input); color: var(--accent-blue); font-size: 11px; font-weight: 600; }
.vol { display: flex; align-items: center; gap: 8px; color: var(--muted-blue); }
.vol .range { width: 100%; }
.rcount { text-align: center; font-family: var(--mono); font-size: 10px; color: #484F58; }
.presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 10px; }
.preset {
  background: var(--bg-card); color: var(--accent-blue); border: 1px solid var(--border);
  padding: 6px 4px; cursor: pointer; font-size: 9px; min-width: 0;
}
.preset:hover { background: #1F2A3D; }
.preset b { display: block; color: var(--muted-blue); font-size: 9px; }
.preset span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preset[aria-pressed="true"] { border-color: #2A8A2A; }
.rsearch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 6px 4px; }
.rsearch .sbox { position: relative; flex: 1 1 220px; min-width: 0; }
.rsearch .sbox input {
  width: 100%; background: var(--bg-primary); color: #C9D1D9; border: 1px solid var(--border);
  padding: 6px 28px 6px 8px; font-size: 11px;
}
.rsearch .sbox input::placeholder { color: #484F58; font-style: italic; }
.rsearch .sclear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--muted-blue); cursor: pointer; font-size: 11px; width: 20px; height: 20px;
}
.rsearch .api { background: var(--bg-input); color: var(--accent-blue); border: 1px solid var(--border); padding: 6px 8px; font-size: 10px; cursor: pointer; }
.rsearch .lbl { color: #484F58; font-size: 9px; font-weight: 600; }
.rsearch .select { background: var(--bg-primary); color: #C9D1D9; font-size: 10px; }
.rsearch label { color: #C9D1D9; font-size: 10px; display: flex; gap: 4px; align-items: center; }
.stations { background: var(--bg-primary); border: 1px solid #1B2838; border-radius: 8px; padding: 4px; max-height: 280px; overflow-y: auto; }
.station {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 6px; margin: 1px 0;
  background: var(--inset); cursor: pointer;
}
.station:nth-child(even) { background: var(--bg-primary); }
.station:hover, .station:focus-visible { background: #1F2A3D; }
.station.current { box-shadow: inset 2px 0 0 #00E676; }
.station .fav { background: transparent; border: 0; color: #484F58; font-size: 14px; width: 24px; height: 24px; cursor: pointer; flex: 0 0 auto; }
.station .fav[aria-pressed="true"] { color: #F97583; }
.station .info { flex: 1 1 auto; min-width: 0; }
.station .nm { font-size: 12px; font-weight: 600; color: #C9D1D9; }
.station .meta { font-size: 10px; color: #484F58; margin-top: 2px; }
.station .km { background: var(--bg-input); border-radius: 4px; padding: 2px 6px; font-family: var(--mono); font-size: 9px; color: var(--muted-blue); flex: 0 0 auto; }
.empty { text-align: center; color: var(--text-secondary); font-size: 11px; padding: 10px; }

/* ═════════════ PARAMÈTRES ═════════════ */
.settings { max-width: 760px; padding-bottom: 24px; }
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.num {
  width: 20px; height: 20px; border-radius: 50%; background: var(--bg-input);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-secondary); flex: 0 0 auto;
}
.sec-title { font-size: 14px; font-weight: 700; color: var(--accent-blue); }
.sec-title.purple { color: var(--accent-purple); }
.beta-tag { border: 1px solid var(--accent-orange); border-radius: 4px; padding: 0 5px; font-size: 10px; font-weight: 700; color: var(--accent-orange); }
.settings > .card { margin-bottom: 18px; }
.tools-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tools-head .btns { display: flex; gap: 8px; }
.tools-grid { display: grid; grid-template-columns: 180px 110px 110px minmax(0, 1fr); row-gap: 6px; font-size: 12px; align-items: baseline; }
.tools-grid .h { font-size: 11px; color: var(--text-secondary); }
.form-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 10px; align-items: center; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field-label { margin: 0; }
.hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0 12px; }
.token { display: flex; gap: 4px; width: 340px; max-width: 100%; }
.token .input { flex: 1 1 auto; }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack > * + * { margin-top: 8px; }
.sub { margin: 4px 0 6px 24px; }
.sub-row { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin: 2px 0 6px; }
.sub-row > .k { font-size: 11px; color: var(--muted-blue); min-width: 70px; }
.hint { font-size: 11px; color: var(--text-secondary); line-height: 1.45; }
.status-line { font-size: 11px; color: var(--muted-blue); margin-top: 2px; }
.keycap { background: var(--bg-primary); border: 1px solid var(--border); padding: 3px 10px; font-family: var(--mono); font-size: 12px; color: #E0E6F0; }
.tx { font-size: 11px; font-weight: 700; color: var(--accent-red); }
.vhf-demo {
  margin-top: 12px; padding: 12px; border-radius: 6px;
  background: var(--inset); border: 1px dashed var(--border);
}
.vhf-demo .cap { font-size: 10px; font-weight: 700; color: var(--muted-blue); letter-spacing: 0.5px; margin-bottom: 8px; }
.coms { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.com {
  font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 6px;
  background: var(--bg-primary); border: 1px solid var(--border); color: var(--text-secondary);
}
.com b { color: #E0E6F0; font-size: 14px; }
.com.mic { border-color: var(--accent-purple); }
.com.mic .m { color: var(--accent-purple); font-size: 10px; font-weight: 700; margin-left: 6px; }
.com.rx { border-color: var(--accent-green); box-shadow: 0 0 0 1px var(--accent-green) inset; }
.ptt {
  background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 18px; font-weight: 700; font-size: 12px; cursor: pointer;
  user-select: none; touch-action: none;
}
.ptt[aria-pressed="true"] { background: #3A1414; border-color: var(--accent-red); color: var(--accent-red); }
.rx-line { font-size: 12px; color: var(--text-secondary); min-height: 18px; }
.rx-line.on { color: var(--accent-green); font-weight: 600; }
.adv-toggle {
  background: transparent; border: 0; cursor: pointer; color: var(--text-secondary);
  font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 10px; display: flex; gap: 8px; align-items: center;
}
.adv-toggle:hover { color: var(--text-primary); }
.warn { background: #1C1606; border: 1px solid #4D3B0A; border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; font-size: 11px; color: #E3C46B; }
.adv .card { margin-bottom: 12px; }
.offset { margin-left: 160px; }
.saved { text-align: center; font-size: 11px; color: var(--accent-green); min-height: 16px; margin: 8px 0 10px; }
.about { text-align: center; font-size: 11px; color: var(--text-secondary); }

/* ═════════════ STREAMER ═════════════ */
.streamer { background: var(--bg-card); padding: 24px; min-height: 100%; }
.streamer-inner { max-width: 900px; }
.st-title { font-size: 18px; font-weight: 700; color: var(--accent-orange); margin-bottom: 4px; }
.box { background: var(--inset); border: 1px solid var(--border); border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; }
.box.gold { border-color: var(--accent-orange); }
.box.tips { background: #0D1520; margin-top: 8px; }
.st-toggle { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.st-toggle .check { font-size: 14px; font-weight: 700; }
.st-toggle .btns { margin-left: auto; display: flex; gap: 6px; }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ov-grid .box { padding: 14px; margin-bottom: 12px; }
.ov-title { font-size: 14px; font-weight: 700; color: var(--accent-orange); margin-bottom: 4px; }
.ov-desc { font-size: 11px; color: var(--text-secondary); margin-bottom: 10px; }
.pre { white-space: pre-line; }

/* ═════════════ Responsive (iframe étroit) ═════════════ */
@media (max-width: 860px) {
  .hub { grid-template-columns: minmax(0, 1fr); }
  .flight-main { grid-template-columns: minmax(0, 1fr); }
  .log { max-height: 260px; }
  .offset { margin-left: 0; }
}
@media (max-width: 640px) {
  .content { padding: 6px 8px 8px; }
  .titlebar { gap: 6px; padding-left: 8px; }
  .winbtns { display: none; }
  .demo-note { text-align: left; }
  .header { padding: 10px 12px; }
  .brand-va, .brand-acars { font-size: 17px; }
  .card { padding: 12px; }
  .tab { padding: 8px 10px; font-size: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .phase-card { flex-wrap: wrap; gap: 6px 12px; }
  .phase { font-size: 19px; }
  .gauge { margin: 0 5px; }
  .vsep { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tools-grid { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 8px; }
  .tools-grid .st { grid-column: 1 / -1; margin-bottom: 4px; }
  .tools-grid .h.blank { display: none; }
  .transport { grid-template-columns: 1fr; justify-items: center; }
  .vol { width: 100%; }
  .presets { grid-template-columns: repeat(3, 1fr); }
  .ov-grid { grid-template-columns: 1fr; }
  .streamer { padding: 14px; }
  .st-toggle .btns { margin-left: 0; }
  .db-grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .wx { grid-template-columns: 1fr; }
  .wx .sep { display: none; }
  .lcd-name { font-size: 18px; }
  .statusbar { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .vu i { transition: none; }
}
