/* ==========================================================================
   offshorebr — versão "leitura fácil"
   Pensado para quem tem a vista cansada: letra grande, contraste alto,
   ícones grandes, alvos de toque de 56px+ e nada que dependa só de cor.
   ========================================================================== */

/* ---------- Tokens: tema CLARO (padrão) ---------- */
:root {
  --bg: #f6f4ef;            /* off-white quente: menos ofuscamento que branco puro */
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #14181f;          /* ~16:1 sobre --bg */
  --text-muted: #3a4350;    /* ~9:1  — nunca usamos cinza claro para texto */
  --border: #8a94a3;
  --border-strong: #14181f;
  --primary: #0a4fa8;       /* azul com 7.6:1 sobre branco */
  --primary-text: #ffffff;
  --focus: #ff8c00;

  --ok: #0b6b2e;      --ok-bg: #dff3e6;
  --info: #0a4fa8;    --info-bg: #dde9fb;
  --wait: #5a3e00;    --wait-bg: #fff0c7;
  --alert: #9b1c00;   --alert-bg: #ffe2d6;

  --radius: 14px;
  --shadow: 0 2px 0 rgba(20, 24, 31, .08), 0 6px 18px rgba(20, 24, 31, .06);
  --border-w: 2px;

  /* Tamanho de letra: 3 degraus controlados pelo usuário */
  --scale: 1;
  color-scheme: light;
}

/* ---------- Tema ESCURO ---------- */
:root[data-theme="escuro"] {
  --bg: #0e1218;
  --surface: #171c24;
  --surface-2: #212833;
  --text: #f3f6fa;
  --text-muted: #c9d2de;
  --border: #6b7686;
  --border-strong: #f3f6fa;
  --primary: #8cc0ff;
  --primary-text: #0b1220;
  --focus: #ffb347;
  --ok: #7be3a2;      --ok-bg: #12321f;
  --info: #8cc0ff;    --info-bg: #13294a;
  --wait: #ffd27a;    --wait-bg: #3a2c08;
  --alert: #ffab8f;   --alert-bg: #43170b;
  --shadow: none;
  color-scheme: dark;
}

/* ---------- Tema ALTO CONTRASTE (preto, branco e amarelo) ---------- */
:root[data-theme="contraste"] {
  --bg: #000000;
  --surface: #000000;
  --surface-2: #000000;
  --text: #ffffff;
  --text-muted: #ffffff;
  --border: #ffffff;
  --border-strong: #ffffff;
  --primary: #ffe500;
  --primary-text: #000000;
  --focus: #00e5ff;
  --ok: #7dff9e;      --ok-bg: #000000;
  --info: #7fd4ff;    --info-bg: #000000;
  --wait: #ffe500;    --wait-bg: #000000;
  --alert: #ff9b7a;   --alert-bg: #000000;
  --shadow: none;
  --border-w: 3px;
  color-scheme: dark;
}

:root[data-letra="grande"]      { --scale: 1.15; }
:root[data-letra="muito-grande"] { --scale: 1.32; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 140px;
  font-size: calc(100% * var(--scale) * var(--modo, 1));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", "Verdana", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.25rem;          /* 20px no tamanho normal (o site atual usa 14px) */
  line-height: 1.55;
  padding-bottom: 2rem;
}

img, svg { display: block; }
.icon { width: 1.5em; height: 1.5em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 2.2em; height: 2.2em; }

a { color: var(--primary); text-underline-offset: .2em; text-decoration-thickness: 2px; }

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--primary); color: var(--primary-text);
  padding: .75rem 1.25rem; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 12px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

/* ---------- Botões genéricos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 56px; padding: .6rem 1.2rem;
  font: inherit; font-weight: 700; font-size: 1.1rem;
  color: var(--text); background: var(--surface);
  border: var(--border-w) solid var(--border); border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  min-width: 0; white-space: normal; text-align: center; line-height: 1.2;
}
.btn:hover { border-color: var(--border-strong); }
.btn[aria-pressed="true"], .btn.is-active {
  background: var(--primary); color: var(--primary-text); border-color: var(--primary);
}
.btn-primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }

/* ---------- Cabeçalho ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;           /* fica fixo no topo ao rolar */
  background: var(--surface);
  border-bottom: var(--border-w) solid var(--border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}
.topbar-inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: .75rem; padding-bottom: .75rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.6rem; font-weight: 800; color: var(--text); text-decoration: none;
}
.brand-mark {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary); color: var(--primary-text);
}
.brand-mark .icon { width: 30px; height: 30px; }
.brand b { color: var(--primary); }

.clock {
  margin-left: auto; text-align: right;
  font-size: 1.05rem; color: var(--text-muted);
}
.clock strong { display: block; font-size: 1.8rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* Navegação principal (desktop) */
.mainnav { border-top: var(--border-w) solid var(--border); }
.mainnav ul { list-style: none; margin: 0 auto; padding: 0 16px; display: flex; gap: .25rem; }
.mainnav a {
  display: flex; align-items: center; gap: .5rem;
  min-height: 60px; padding: 0 1.1rem;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem;
  border-bottom: 5px solid transparent;
}
.mainnav a[aria-current="page"] { border-bottom-color: var(--primary); color: var(--primary); }
.mainnav a:hover { background: var(--surface-2); }



/* ---------- Seções ---------- */
main { padding-top: 1.5rem; }
.section { margin-bottom: 2rem; }

.intro {
  display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap;
  justify-content: space-between;
}
.intro p { margin: 0; color: var(--text-muted); max-width: 40ch; }
.updated {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; padding: .35rem .8rem; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok); border: 2px solid currentColor;
}
.dot { width: .75rem; height: .75rem; border-radius: 50%; background: currentColor; }

.step-title {
  display: flex; align-items: center; gap: .75rem; font-size: 1.45rem;
}
.step-title .icon { width: 1.8rem; height: 1.8rem; color: var(--primary); }
.step-num {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 800;
  background: var(--primary); color: var(--primary-text);
}

/* Dia */
.daynav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center;
}
.daynav .today { text-align: center; font-size: 1.5rem; font-weight: 800; }
.daynav .today small { display: block; font-size: 1rem; font-weight: 700; color: var(--text-muted); }
.daynav .btn:last-child { justify-self: end; }
.daynav .btn small { display: block; font-size: .95rem; font-weight: 700; opacity: .85; }
.daynav .btn span { text-align: left; }
.daynav .btn:last-child span { text-align: right; }

/* Bases (hubs) */
.hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.hub {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  min-height: 84px; padding: .75rem 1rem; text-align: left;
  font: inherit; color: var(--text); background: var(--surface);
  border: var(--border-w) solid var(--border); border-radius: var(--radius); cursor: pointer;
  box-shadow: var(--shadow);
}
.hub strong { font-size: 1.25rem; }
.hub span { font-size: 1rem; color: var(--text-muted); }
.hub[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.hub[aria-pressed="true"] span { color: inherit; }

/* Resumo */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.stat {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--surface); border: var(--border-w) solid var(--border); box-shadow: var(--shadow);
}
.stat-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; border: 2px solid currentColor;
}
.stat-icon .icon { width: 2rem; height: 2rem; }
.stat b { display: block; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 1.1rem; font-weight: 700; }
.is-ok    { color: var(--ok); }
.is-info  { color: var(--info); }
.is-wait  { color: var(--wait); }
.is-alert { color: var(--alert); }
.stat .is-ok, .stat .is-info, .stat .is-wait, .stat .is-alert { background: transparent; }

/* Busca + filtros */
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.8rem; height: 1.8rem; color: var(--text-muted); pointer-events: none; }
.search-box input {
  width: 100%; min-height: 68px; padding: .5rem 1rem .5rem 3.6rem;
  font: inherit; font-size: 1.3rem; color: var(--text);
  background: var(--surface); border: 3px solid var(--border-strong); border-radius: var(--radius);
}
.search-box input::placeholder { color: var(--text-muted); opacity: 1; }
.search-hint { margin: .4rem 0 0; font-size: 1.05rem; color: var(--text-muted); }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.filters .btn { font-size: 1.1rem; }
.filters .count {
  min-width: 2.1rem; padding: 0 .45rem; border-radius: 999px;
  background: var(--surface-2); color: var(--text); font-size: 1rem; line-height: 1.8;
}
.filters .btn[aria-pressed="true"] .count { background: var(--primary-text); color: var(--primary); }

/* ---------- Cartões de voo ---------- */
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.results-head p { margin: 0; font-size: 1.1rem; color: var(--text-muted); }

.flights { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

.flight {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  grid-template-areas: "time route status" "time plane actions" "obs obs obs";
  gap: .5rem 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-left: 10px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.flight.st-landed      { border-left-color: var(--ok); }
.flight.st-airborne    { border-left-color: var(--info); }
.flight.st-scheduled   { border-left-color: var(--wait); }
.flight.st-transferred { border-left-color: var(--alert); }
.flight.st-neutral     { border-left-color: var(--border); }
.flight.is-fav { outline: 3px solid var(--primary); outline-offset: 2px; }

.f-time { grid-area: time; }
.f-time .sched { font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.f-time .label { font-size: 1rem; color: var(--text-muted); font-weight: 700; }
.f-time .actual { white-space: nowrap; margin-top: .4rem; font-size: 1.1rem; font-weight: 700; color: var(--ok); }

.f-route { grid-area: route; display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .75rem; font-size: 1.45rem; }
.f-route .from { font-weight: 700; }
.f-route .arrow { width: 2rem; height: 2rem; color: var(--text-muted); }
.f-route .to { font-weight: 800; letter-spacing: .02em; }
.f-route .to-name { width: 100%; font-size: 1.15rem; color: var(--text-muted); }

.f-plane { grid-area: plane; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; font-size: 1.1rem; color: var(--text-muted); }
.f-plane .reg { font-weight: 800; color: var(--text); font-size: 1.2rem; letter-spacing: .03em; }
.f-plane .chip {
  border: 2px dashed var(--border); border-radius: 999px; padding: 0 .7rem; font-size: 1rem;
}

.f-status { grid-area: status; justify-self: end; text-align: right; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  font-weight: 800; font-size: 1.15rem;
  border: 2px solid currentColor;
}
.badge .icon { width: 1.6rem; height: 1.6rem; }
.badge.is-ok    { background: var(--ok-bg); }
.badge.is-info  { background: var(--info-bg); }
.badge.is-wait  { background: var(--wait-bg); }
.badge.is-alert { background: var(--alert-bg); }
.is-neutral { color: var(--text); }
.badge.is-neutral { background: var(--surface-2); border-style: dashed; }
.f-status .when { margin-top: .4rem; font-size: 1.1rem; font-weight: 700; }

.f-actions { grid-area: actions; justify-self: end; display: flex; gap: .5rem; flex-wrap: wrap; }
.icon-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 52px; min-width: 52px; padding: .35rem .8rem;
  font: inherit; font-size: 1rem; font-weight: 700;
  color: var(--text); background: var(--surface-2);
  border: 2px solid var(--border); border-radius: 12px; cursor: pointer;
}
.icon-btn .icon { width: 1.6rem; height: 1.6rem; }
.icon-btn[aria-pressed="true"] { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; }

.empty {
  padding: 2rem; text-align: center; font-size: 1.3rem;
  background: var(--surface); border: var(--border-w) dashed var(--border); border-radius: var(--radius);
}

/* Anúncio claramente sinalizado */
.ad {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  border: var(--border-w) dashed var(--border); background: var(--surface-2);
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.ad small { font-weight: 800; letter-spacing: .05em; border: 2px solid var(--border); border-radius: 6px; padding: 0 .4rem; }

/* Ajuda "como ler" */
details.help {
  background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius);
  padding: 0 1.25rem;
}
details.help summary {
  cursor: pointer; min-height: 64px; display: flex; align-items: center; gap: .75rem;
  font-weight: 800; font-size: 1.3rem; list-style: none;
}
details.help summary::-webkit-details-marker { display: none; }
details.help summary::after { content: "＋"; margin-left: auto; font-size: 1.6rem; }
details.help[open] summary::after { content: "－"; }
.legend { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .9rem; }
.legend li { display: flex; gap: 1rem; align-items: flex-start; }
.legend .badge { flex: none; min-width: 11rem; }

/* Rodapé */
.footer {
  margin-top: 3rem; padding: 2rem 0; border-top: var(--border-w) solid var(--border);
  background: var(--surface);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer a { display: inline-block; padding: .5rem 0; font-weight: 700; }
.footer p { color: var(--text-muted); }

/* Botão "voltar ao topo" */
.to-top {
  position: fixed; right: 16px; bottom: 20px; z-index: 40;
  width: 64px; height: 64px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--primary); color: var(--primary-text); border: 3px solid var(--surface);
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.to-top.show { display: grid; }
.to-top .icon { width: 34px; height: 34px; }

/* ---------- Página Tempo ---------- */
.layers, .places { display: flex; flex-wrap: wrap; gap: .6rem; }
.layers .btn { min-width: 9rem; }
.map-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 420px;
  border: var(--border-w) solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface-2);
}
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; margin: 0; text-align: center; font-size: 1.2rem; color: var(--text-muted); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-caption { margin-top: .6rem; font-size: 1.05rem; color: var(--text-muted); }
.note {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  background: var(--info-bg); border: 2px solid var(--info); color: var(--text);
}
.base-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.base-card {
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--surface); border: var(--border-w) solid var(--border);
}
.base-card h3 { margin-bottom: .2rem; }
.base-card p { margin: 0 0 .6rem; color: var(--text-muted); font-size: 1.05rem; }
.base-card .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .75rem; }
.base-card .metric { display: flex; align-items: center; gap: .4rem; font-size: 1.05rem; color: var(--text-muted); }
.base-card .metric b { color: var(--text); font-size: 1.2rem; }

/* ---------- Botão "Ajustar tela" e painel de ajustes ---------- */
.btn-ajustes { min-height: 52px; padding: .4rem .9rem; }
.btn-ajustes .icon { width: 1.8rem; height: 1.8rem; }
.link-btn { font: inherit; font-weight: 700; color: var(--primary); background: none; border: 0; padding: .5rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

dialog.painel {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
  padding: 0; border: var(--border-w) solid var(--border-strong); border-radius: 20px;
  background: var(--surface); color: var(--text);
}
dialog.painel::backdrop { background: rgba(0, 0, 0, .65); }
.painel-caixa { padding: 1.25rem 1.25rem 1.5rem; }
.painel h2 { font-size: 1.7rem; }
.aj-intro { font-size: 1.15rem; margin-top: 0; }
.aj-passo { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; margin: 1.25rem 0 .6rem; }
.op-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.op {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  min-height: 112px; padding: .6rem .4rem; text-align: center; line-height: 1.15;
  font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--text);
  background: var(--surface-2); border: 3px solid var(--border); border-radius: 16px; cursor: pointer;
}
.op[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary); background: var(--surface); }
.op[aria-pressed="true"]::after { content: "✓ escolhido"; font-size: .9rem; color: var(--primary); }
.op-aa { font-weight: 800; line-height: 1; }
.op-cor { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 12px; font-weight: 800; font-size: 1.3rem; border: 2px solid currentColor; }
.op-cor-claro { background: #f6f4ef; color: #14181f; }
.op-cor-escuro { background: #171c24; color: #f3f6fa; }
.op-cor-contraste { background: #000; color: #ffe500; }
.amostra { margin: 1.25rem 0; }
.amostra-rotulo { display: block; font-weight: 700; margin-bottom: .4rem; }
.amostra-cartao {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .9rem 1rem;
  border: var(--border-w) solid var(--border); border-left: 10px solid var(--ok); border-radius: var(--radius); background: var(--bg);
}
.amostra-cartao b { font-size: 2rem; }
.amostra-cartao span:not(.badge) { font-size: 1.3rem; font-weight: 700; }
.btn-largo { width: 100%; min-height: 64px; font-size: 1.25rem; }
.aj-dica { color: var(--text-muted); font-size: 1rem; margin-bottom: 0; }

/* ---------- Botão "Rota e radar" no cartão ---------- */
.btn-rota { background: var(--primary); color: var(--primary-text); border-color: var(--primary); text-decoration: none; font-size: 1.1rem; }
.flight { cursor: pointer; }

/* ---------- Tela de um voo ---------- */
.btn-voltar { margin-bottom: 1rem; text-decoration: none; }
.det-head {
  display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: start;
  padding: 1.1rem 1.25rem; margin-bottom: 1rem;
  background: var(--surface); border: var(--border-w) solid var(--border); border-left: 10px solid var(--border); border-radius: var(--radius);
}
.det-head.st-landed { border-left-color: var(--ok); }
.det-head.st-airborne { border-left-color: var(--info); }
.det-head.st-scheduled { border-left-color: var(--wait); }
.det-head.st-transferred { border-left-color: var(--alert); }
.det-head.st-neutral { border-left-color: var(--border); }
.det-hora span { display: block; font-size: 1rem; font-weight: 700; color: var(--text-muted); }
.det-hora b { display: block; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.det-hora .actual { color: var(--ok); font-size: 1.15rem; white-space: nowrap; }
.det-status { text-align: right; }
.det-status .when { display: block; margin-top: .4rem; font-weight: 700; }
.det-rota { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; font-size: 2rem; margin: .4rem 0 0; }
.det-rota .arrow { width: 2.2rem; height: 2.2rem; color: var(--text-muted); }
.det-nome { grid-column: 1 / -1; margin: 0; font-size: 1.3rem; color: var(--text-muted); }
.det-aeronave { grid-column: 1 / -1; margin: .5rem 0 0; font-size: 1.1rem; color: var(--text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; }
.det-aeronave b { color: var(--text); }
.det h2 { display: flex; align-items: center; gap: .5rem; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.tile {
  display: flex; flex-direction: column; gap: .15rem; padding: 1rem;
  background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius);
}
.tile .icon { width: 2.2rem; height: 2.2rem; color: var(--primary); }
.tile span { font-weight: 700; color: var(--text-muted); }
.tile b { font-size: 2rem; line-height: 1.1; }
.tile small { font-size: 1rem; color: var(--text-muted); }

.pernas { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.perna {
  display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem;
  background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius);
}
.perna-pts { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .6rem; font-size: 1.35rem; }
.perna-pts .arrow { width: 1.8rem; height: 1.8rem; color: var(--text-muted); }
.perna-nome { width: 100%; font-size: 1.1rem; color: var(--text-muted); }
.perna-num { font-size: 1.15rem; font-weight: 700; }
.perna-num.falta { color: var(--alert); }

.note-alerta { display: flex; gap: .75rem; align-items: flex-start; background: var(--alert-bg); border-color: var(--alert); margin-bottom: 1.5rem; }
.note-alerta .icon { width: 2rem; height: 2rem; color: var(--alert); }
.map-voo { margin-top: .75rem; }
.det-acoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.det-acoes .btn[aria-pressed="true"] .icon { fill: currentColor; }
#abrir-windy { margin-top: .5rem; text-decoration: none; }

@media (max-width: 760px) {
  .btn-ajustes { flex-direction: column; gap: 0; min-width: 64px; min-height: 52px; padding: .2rem .4rem; }
  .btn-ajustes span { font-size: .8rem; line-height: 1.1; }
  .btn-ajustes span::before { content: "Ajustar"; }
  .btn-ajustes span { font-size: 0; }
  .btn-ajustes span::before { font-size: .85rem; }
  .op { min-height: 100px; font-size: 1rem; }
  .f-actions .btn-rota { flex: 1 1 100%; min-height: 60px; font-size: 1.2rem; }
  .det-hora b { font-size: 2.6rem; }
  .det-rota { font-size: 1.7rem; }
  .det-acoes { grid-template-columns: 1fr; }
  .map-voo { aspect-ratio: 3 / 4; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .summary .stat:first-child { grid-column: 1 / -1; }
  .stat { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .8rem; }
  .stat-icon { width: 2.6rem; height: 2.6rem; }
  .stat-icon .icon { width: 1.5rem; height: 1.5rem; }
  .stat b { font-size: 2rem; }
  .stat span { font-size: 1rem; line-height: 1.25; }
}
@media (max-width: 380px) {
  .tiles { grid-template-columns: 1fr; }
}

/* ---------- Atualização, logos das empresas e avisos ---------- */
.atualizado {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .9rem 1.1rem; background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius);
}
.atual-txt { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; }
.atual-txt .icon { width: 1.8rem; height: 1.8rem; color: var(--ok); }
.falta { color: var(--alert); font-weight: 700; }
.selo {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; min-width: 76px; padding: 4px 8px; border-radius: 10px;
  background: #fff; border: 2px solid var(--border);
}
.selo-img img { display: block; max-height: 34px; max-width: 120px; width: auto; height: auto; }
.selo-txt { background: var(--cor-empresa, #555); border-color: var(--cor-empresa, #555); color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.selo-grande { height: 60px; min-width: 110px; }
.selo-grande.selo-img img { max-height: 48px; max-width: 170px; }
.f-obs {
  grid-area: obs; display: flex; gap: .6rem; align-items: flex-start; margin: .2rem 0 0;
  padding: .7rem .9rem; border-radius: 12px; background: var(--wait-bg); border: 2px solid var(--wait);
  font-size: 1.1rem; font-weight: 700; color: var(--text);
}
.f-obs .icon, .f-obs-grande .icon { width: 1.7rem; height: 1.7rem; color: var(--wait); }
.f-obs-grande { display: flex; gap: .75rem; align-items: flex-start; background: var(--wait-bg); border-color: var(--wait); font-size: 1.2rem; margin-bottom: 1.25rem; }
.f-time .nova, .det-hora .nova { display: block; margin-top: .3rem; font-size: 1.1rem; font-weight: 800; color: var(--alert); white-space: nowrap; }
.fonte { color: var(--text-muted); font-size: 1rem; }
.det-rota:focus { outline: none; }

/* ---------- Escolha da base (menu suspenso grande) ---------- */
.base-escolha {
  padding: 1rem 1.1rem; background: var(--surface);
  border: 3px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow);
}
.base-rotulo { display: block; font-size: 1.15rem; font-weight: 700; color: var(--text-muted); margin-bottom: .35rem; }
.base-linha { position: relative; display: flex; align-items: center; }
.base-pino { position: absolute; left: .8rem; color: var(--primary); pointer-events: none; display: grid; }
.base-pino .icon { width: 2rem; height: 2rem; }
.base-select {
  width: 100%; min-height: 72px; padding: .4rem 3.2rem .4rem 3.3rem;
  font: inherit; font-size: 1.6rem; font-weight: 800; color: var(--text);
  background: var(--surface-2); border: 3px solid var(--border-strong); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.6rem) 50%, calc(100% - 1.05rem) 50%;
  background-size: .6rem .6rem; background-repeat: no-repeat;
}
.base-origem { display: flex; align-items: flex-start; gap: .5rem; margin: .6rem 0 0; font-size: 1.05rem; color: var(--text-muted); }
.base-origem .icon { width: 1.5rem; height: 1.5rem; color: var(--ok); margin-top: .1rem; }

/* ---------- Nosso mapa e o tempo no caminho ---------- */
.mapa-proprio { position: absolute; inset: 0; z-index: 1; }
.map-voo { min-height: 420px; }
:root[data-theme="escuro"] .mapa-base, :root[data-theme="contraste"] .mapa-base { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
.leaflet-container { font: inherit; }
.leaflet-tooltip.rotulo-mapa {
  font-size: 1.1rem; font-weight: 800; color: #000; background: #fff;
  border: 2px solid #000; border-radius: 8px; padding: 2px 8px; box-shadow: none;
}
.leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 24px !important; }
.leaflet-control-attribution { font-size: 11px; }
.cond-titulo { display: flex; align-items: center; gap: .5rem; margin: 1.5rem 0 .75rem; font-size: 1.35rem; }
.cond-titulo span { white-space: nowrap; }
.cond-titulo .icon { width: 1.8rem; height: 1.8rem; color: var(--primary); }
.cond-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.cond, .metar {
  padding: 1rem; background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius);
}
.cond h4 { margin: 0 0 .5rem; font-size: 1.2rem; }
.cond dl, .metar dl { margin: 0; display: grid; gap: .35rem; }
.cond dl > div, .metar dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .25rem .4rem; border-radius: 8px; }
.cond dt, .metar dt { color: var(--text-muted); font-weight: 700; font-size: 1.05rem; }
.cond dd, .metar dd { margin: 0; font-weight: 800; font-size: 1.2rem; text-align: right; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0 .3rem; }
.cond dd small { width: 100%; font-weight: 700; font-size: .85rem; color: var(--text-muted); }
.atencao { background: var(--wait-bg); outline: 2px solid var(--wait); }
.seta-vento { display: inline-grid; width: 1.6rem; height: 1.6rem; }
.seta-vento .icon { width: 1.6rem; height: 1.6rem; stroke-width: 3; }
.metar { margin-top: 1rem; border-color: var(--info); }
.metar h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; margin-bottom: .25rem; }
.metar h3 .icon { width: 1.7rem; height: 1.7rem; color: var(--info); }
.metar-hora { margin: 0 0 .5rem; color: var(--text-muted); font-size: 1.05rem; }
.metar-cru { margin: .75rem 0 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; color: var(--text-muted); overflow-wrap: anywhere; }
.taf-rotulo { margin-top: 1rem; }
.taf-drop { margin-top: .85rem; }
.taf-drop > summary { cursor: pointer; list-style: none; width: fit-content; }
.taf-drop > summary::-webkit-details-marker { display: none; }
.taf-seta { margin-left: .5rem; transition: transform .15s; }
.taf-drop[open] .taf-seta { transform: rotate(180deg); }
.taf-conteudo { padding-top: 1rem; }
.taf-grupo { margin-bottom: 1rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.taf-grupo h4 { margin: 0 0 .5rem; }
.taf-grupo ul { list-style: none; padding: 0; margin: .5rem 0; }
.taf-grupo li { display: grid; grid-template-columns: minmax(6rem, auto) 1fr; gap: .35rem .75rem; padding: .4rem 0; }
.taf-grupo code { overflow-wrap: anywhere; }
@media (max-width: 500px) { .taf-grupo li { grid-template-columns: 1fr; } }
.cond-msg { margin: 0; padding: 1rem; color: var(--text-muted); }

/* ---------- Título do voo no alto (tela de um voo) ---------- */
.barra-voo { border-top: var(--border-w) solid var(--border); background: var(--primary); color: var(--primary-text); }
.barra-voo-inner { display: flex; align-items: center; gap: .75rem; min-height: 64px; padding-top: .4rem; padding-bottom: .4rem; }
.barra-voltar { min-height: 52px; padding: .3rem .8rem; background: var(--primary-text); color: var(--primary); border-color: var(--primary-text); flex: none; }
.barra-titulo { margin: 0; min-width: 0; line-height: 1.15; }
.barra-titulo span { display: block; font-size: 1rem; font-weight: 700; opacity: .9; }
.barra-titulo strong { display: block; font-size: 1.45rem; font-weight: 800; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

/* ---------- Posição digitada (unidades móveis) ---------- */
.form-posicao { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.form-pos-titulo { display: flex; gap: .6rem; align-items: flex-start; margin: 0; }
.form-pos-titulo .icon { width: 2rem; height: 2rem; color: var(--alert); }
.form-pos-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.form-pos-campos label { display: grid; gap: .3rem; font-weight: 700; }
.form-pos-campos input {
  min-height: 60px; padding: .4rem .8rem; font: inherit; font-size: 1.25rem; color: var(--text);
  background: var(--surface); border: 3px solid var(--border-strong); border-radius: var(--radius); width: 100%;
}
.form-posicao .btn .icon { color: inherit; }
.form-pos-erro { margin: 0; color: var(--alert); font-weight: 700; }
.form-pos-erro:empty { display: none; }
.posicao-minha { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.posicao-minha .icon { width: 1.8rem; height: 1.8rem; color: var(--info); }

/* ---------- Animação do mapa (radar e satélite) ---------- */
.animacao { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.anim-btn { min-height: 56px; min-width: 56px; padding: .3rem .7rem; }
.anim-btn .icon { width: 1.7rem; height: 1.7rem; }
.anim-play { background: var(--primary); color: var(--primary-text); border-color: var(--primary); min-width: 8.5rem; font-size: 1.15rem; }
.anim-barra { flex: 1 1 10rem; display: flex; align-items: center; min-height: 56px; }
.anim-barra input { width: 100%; height: 2.2rem; accent-color: var(--primary); }
.anim-hora { font-size: 1.15rem; color: var(--text-muted); white-space: nowrap; }
.anim-hora b { font-size: 1.4rem; color: var(--text); }

/* ---------- Menu fixo do alto, fino: páginas, hora, Ajustar e dados ---------- */
.barra-topo { display: flex; align-items: center; gap: .5rem; padding-top: .3rem; padding-bottom: .3rem; }
.barra-topo .mainnav { flex: 1; min-width: 0; border-top: 0; }
.barra-topo .mainnav ul { display: flex; gap: .25rem; padding: 0; margin: 0; list-style: none; }
.barra-topo .mainnav a { min-height: 50px; padding: 0 .9rem; border-bottom-width: 4px; border-radius: 8px 8px 0 0; }
.barra-topo .barra-voo { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; border: 0; background: none; color: var(--text); }
.barra-topo .barra-voltar { min-height: 50px; background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.barra-topo .barra-titulo strong { font-size: 1.25rem; color: var(--primary); }
.barra-topo .barra-titulo span { font-size: .95rem; color: var(--text-muted); opacity: 1; }
.barra-topo .btn-ajustes { min-height: 50px; flex: none; }
.barra-info {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding-top: .25rem; padding-bottom: .25rem; border-top: 1px solid var(--border); font-size: 1.05rem;
}
.barra-info .clock { margin: 0; display: flex; align-items: center; gap: .35rem; text-align: left; font-size: 1.05rem; color: var(--text-muted); }
.barra-info .clock .icon { display: none; }
.barra-info .clock strong { display: inline; font-size: 1.25rem; color: var(--text); }
.barra-info .atualizado { display: flex; flex-wrap: nowrap; align-items: center; gap: .4rem; padding: 0; border: 0; background: none; }
.barra-info .clock, .barra-info .clock span { white-space: nowrap; }
.barra-info .atual-txt { display: flex; align-items: center; gap: .35rem; font-size: 1.05rem; color: var(--text-muted); white-space: nowrap; }
.barra-info .atual-txt b { color: var(--text); font-size: 1.15rem; }
.barra-info .atual-txt .icon { width: 1.3rem; height: 1.3rem; }
.btn-atualizar { min-height: 44px; padding: .2rem .7rem; font-size: 1rem; gap: .35rem; }
.btn-atualizar .icon { width: 1.3rem; height: 1.3rem; }
.aviso-dados { display: flex; gap: .6rem; align-items: flex-start; font-weight: 700; }
html { scroll-padding-top: 120px; }

/* ---------- Responsivo ---------- */
@media (max-width: 760px) {
  body { font-size: 1.2rem; }
  /* Cabeçalho fixo compacto: marca + hora + Ajustar, e as abas logo abaixo */
  .topbar-inner { gap: .6rem; padding-top: .45rem; padding-bottom: .45rem; flex-wrap: nowrap; }
  .clock { font-size: .95rem; }
  .clock strong { font-size: 1.45rem; }
  .brand { font-size: 1.3rem; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark .icon { width: 26px; height: 26px; }
  .mainnav ul { padding: 0; gap: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .mainnav a { justify-content: center; min-height: 56px; padding: 0 .5rem; font-size: 1.1rem; border-bottom-width: 5px; }
  .mainnav a .icon { width: 1.6rem; height: 1.6rem; }

  .daynav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daynav .today { grid-column: 1 / -1; order: -1; }

  .flight {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "time status" "route route" "plane plane" "obs obs" "actions actions";
    padding: 1rem;
    border-left-width: 8px;
  }
  .f-time .sched { font-size: 2.3rem; }
  .f-actions { justify-self: stretch; }
  .f-route, .f-plane { overflow-wrap: anywhere; }
  .filters .btn { flex: 1 1 auto; }
  h1, h2 { overflow-wrap: anywhere; }
  .f-actions .icon-btn { flex: 1; justify-content: center; }
  .legend li { flex-direction: column; gap: .4rem; }
  .map-frame { aspect-ratio: 3 / 4; }
}

/* Letra grande ou muito grande no celular: a situação vai para baixo da hora */
@media (max-width: 760px) {
  :root[data-letra="grande"] .flight, :root[data-letra="muito-grande"] .flight { grid-template-columns: minmax(0, 1fr); grid-template-areas: "time" "status" "route" "plane" "obs" "actions"; }
  :root[data-letra="grande"] .f-status, :root[data-letra="muito-grande"] .f-status { justify-self: start; text-align: left; }
  :root[data-letra="grande"] .det-head, :root[data-letra="muito-grande"] .det-head { grid-template-columns: minmax(0, 1fr); }
  :root[data-letra="grande"] .det-status, :root[data-letra="muito-grande"] .det-status { text-align: left; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .hub, .icon-btn { transition: background-color .15s, border-color .15s, color .15s; }
}

@media (max-width: 760px) {
  .barra-topo { gap: .35rem; padding-top: .25rem; padding-bottom: .25rem; flex-wrap: nowrap; }
  .barra-topo .mainnav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .barra-topo .mainnav a { min-height: 48px; padding: 0 .3rem; font-size: 1.05rem; gap: .3rem; justify-content: center; }
  .barra-topo .mainnav a .icon { width: 1.4rem; height: 1.4rem; }
  .barra-topo .btn-ajustes { min-height: 48px; min-width: 58px; }
  .barra-topo .barra-titulo strong { font-size: 1.1rem; }
  .barra-topo .barra-voltar span { display: none; }
  .btn-atualizar span { font-size: 0; }
  .btn-atualizar span::before { content: "Atualizar"; font-size: 1rem; }
  .barra-info { font-size: 1rem; }
  .barra-info .clock { font-size: 1rem; }
  .barra-info .clock strong { font-size: 1.2rem; }
}
/* Letra muito grande no celular: a hora dos dados desce para a linha de baixo se precisar */
@media (max-width: 420px) {
  .barra-info .atual-txt .icon { display: none; }
  .btn-atualizar { padding: .2rem .5rem; }
  :root[data-letra="grande"] .barra-info, :root[data-letra="muito-grande"] .barra-info { flex-wrap: wrap; }
}

/* ---------- Menu "enxuto": ao rolar a página, tudo numa linha fina, só ícones e horas ---------- */
.topbar.enxuto { display: flex; align-items: center; gap: .35rem; padding: .15rem 16px; }
.topbar.enxuto > .wrap { display: contents; }
.topbar.enxuto .txt-menu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topbar.enxuto .mainnav { order: 1; flex: 0 0 auto; }
.topbar.enxuto .mainnav ul { display: flex; gap: .15rem; }
.topbar.enxuto .mainnav a { min-height: 44px; min-width: 48px; padding: 0 .55rem; border-bottom-width: 4px; justify-content: center; }
.topbar.enxuto .mainnav a .icon { width: 1.6rem; height: 1.6rem; }
.topbar.enxuto .barra-voo { order: 1; flex: 1 1 auto; min-width: 0; gap: .4rem; }
.topbar.enxuto .barra-voltar { min-height: 44px; min-width: 44px; padding: 0 .4rem; }
.topbar.enxuto .barra-titulo span { display: none; }
.topbar.enxuto .barra-titulo strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar.enxuto .clock { order: 2; margin-left: auto; }
.topbar.enxuto .clock .icon { display: inline-block; width: 1.3rem; height: 1.3rem; }
.topbar.enxuto .clock strong { font-size: 1.15rem; }
.topbar.enxuto .atualizado { order: 3; gap: .2rem; }
.topbar.enxuto .atual-txt .icon { display: inline-block; width: 1.3rem; height: 1.3rem; }
.topbar.enxuto .atual-txt b { font-size: 1.15rem; }
.topbar.enxuto .btn-atualizar { min-height: 44px; min-width: 44px; padding: 0 .35rem; }
.topbar.enxuto .btn-atualizar span::before { content: none; }
.topbar.enxuto .btn-atualizar .icon { width: 1.5rem; height: 1.5rem; }
.topbar.enxuto .btn-ajustes { order: 4; min-height: 44px; min-width: 44px; padding: 0 .4rem; flex-direction: row; }
.topbar.enxuto .btn-ajustes span::before { content: none; }
.topbar.enxuto .btn-ajustes .icon { width: 1.6rem; height: 1.6rem; }
.topbar.enxuto .barra-info { border: 0; }
.topbar.enxuto .barra-voo[hidden], .topbar.enxuto .mainnav[hidden] { display: none !important; }
.topbar.enxuto .tit-ini { display: none; }
.topbar.enxuto .barra-voo { flex: 0 0 auto; gap: .25rem; }
.topbar.enxuto .barra-voltar { min-width: 40px; padding: 0 .2rem; }
.topbar.enxuto .barra-titulo strong { font-size: 1.1rem; overflow: visible; text-overflow: clip; }
/* Letra grande ou muito grande: menos espaço entre os itens, mas os ícones continuam (eles dizem qual hora é qual) */
:root[data-letra="grande"] .topbar.enxuto, :root[data-letra="muito-grande"] .topbar.enxuto { gap: .15rem; padding-left: 8px; padding-right: 8px; }
:root[data-letra="grande"] .topbar.enxuto .mainnav a, :root[data-letra="muito-grande"] .topbar.enxuto .mainnav a { min-width: 44px; padding: 0 .25rem; }
:root[data-letra="muito-grande"] .topbar.enxuto .clock strong, :root[data-letra="muito-grande"] .topbar.enxuto .atual-txt b { font-size: .95rem; }
:root[data-letra="muito-grande"] .topbar.enxuto .clock .icon, :root[data-letra="muito-grande"] .topbar.enxuto .atual-txt .icon { width: 1rem; height: 1rem; }
/* Letra grande ou muito grande, na tela de um voo: não cabe tudo numa linha; a hora de Brasília sai do menu enxuto */
:root[data-letra="grande"] .topbar.enxuto:has(.barra-voo:not([hidden])) .clock, :root[data-letra="muito-grande"] .topbar.enxuto:has(.barra-voo:not([hidden])) .clock { display: none; }
:root[data-letra="grande"] .topbar.enxuto:has(.barra-voo:not([hidden])) .atualizado, :root[data-letra="muito-grande"] .topbar.enxuto:has(.barra-voo:not([hidden])) .atualizado { margin-left: auto; }

/* ---------- Hora dos dados da Petrobras: só num balão, ao passar o mouse ou tocar no ícone ---------- */
.atual-info {
  position: relative; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0;
  background: none; border: 0; border-radius: 50%; cursor: help; color: var(--ok);
}
.atual-info .icon { width: 1.6rem; height: 1.6rem; }
.atual-dica {
  display: none; position: absolute; top: calc(100% + 6px); right: -50px; z-index: 80;
  padding: .55rem .8rem; border-radius: 10px; width: max-content; max-width: min(300px, 75vw); text-align: left;
  background: var(--text); color: var(--bg); font: inherit; font-size: 1.05rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); pointer-events: none;
}
.atual-info:hover .atual-dica, .atual-info:focus-visible .atual-dica, .atual-info.aberto .atual-dica { display: block; }
.topbar.enxuto .atual-info .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- Relógio: GMT-3 ou ZULU (tocar troca) ---------- */
button.clock {
  font: inherit; color: var(--text-muted); background: none; border: 0; cursor: pointer;
  min-height: 44px; padding: 0 .35rem; border-radius: 10px; display: flex; align-items: center; gap: .4rem;
}
button.clock:hover { background: var(--surface-2); }
.clock .fuso {
  font-size: .85rem; font-weight: 800; letter-spacing: .02em; line-height: 1.3;
  padding: 0 .35rem; border: 2px solid currentColor; border-radius: 6px;
}
.clock.is-zulu .fuso { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.topbar.enxuto .clock .fuso { font-size: .75rem; padding: 0 .25rem; }
.topbar.enxuto .clock { gap: .25rem; padding: 0 .2rem; }

/* ---------- Filtros: situação numa lista suspensa ---------- */
.filtro-rotulo { margin-top: 1rem; }
.filtro-select { font-size: 1.35rem; }

/* ---------- Filtros numa caixa que abre e fecha, no alto da lista ---------- */
.filtros-drop {
  margin: .25rem 0 1rem; background: var(--surface);
  border: 3px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow);
}
.filtros-drop.ativo { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary); }
.filtros-drop summary {
  display: flex; align-items: center; gap: .7rem; min-height: 72px; padding: .4rem 3.2rem .4rem 1rem;
  cursor: pointer; list-style: none; position: relative;
}
.filtros-drop summary::-webkit-details-marker { display: none; }
.filtros-drop summary::after {   /* setinha, igual à das outras listas suspensas */
  content: ""; position: absolute; right: 1.3rem; top: 50%; width: .75rem; height: .75rem;
  border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-70%) rotate(45deg);
}
.filtros-drop[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.filtros-drop summary .icon { width: 2rem; height: 2rem; color: var(--primary); }
.fd-texto { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.fd-titulo { font-size: 1.05rem; font-weight: 700; color: var(--text-muted); }
.fd-estado { font-size: 1.4rem; font-weight: 800; overflow-wrap: anywhere; }
.filtros-drop.ativo .fd-estado { color: var(--primary); }
.fd-corpo { padding: .25rem 1rem 1rem; border-top: 2px solid var(--border); }
.fd-corpo .base-rotulo { margin-top: .75rem; }
.fd-acoes { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; margin-top: 1rem; }
.fd-acoes .btn .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- Marca offshorebr no menu fixo (no menu enxuto fica só o quadrado da logo) ---------- */
.barra-info { border-top: 0; border-bottom: 1px solid var(--border); justify-content: flex-start; }
.barra-info .clock { margin-left: auto; }
.marca { display: flex; align-items: center; gap: .5rem; flex: none; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.35rem; }
.marca b { color: var(--primary); }
.marca-sinal { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: var(--primary-text); flex: none; }
.marca-sinal .icon { width: 26px; height: 26px; }
.topbar.enxuto .marca { order: 0; min-height: 44px; }
.topbar.enxuto .marca-sinal { width: 34px; height: 34px; border-radius: 8px; }
.topbar.enxuto .marca-sinal .icon { width: 22px; height: 22px; }
.topbar.enxuto .barra-info { border: 0; }
/* Menu enxuto: a logo vale como a aba "Voos de hoje" (as duas levam à lista), então a aba repetida sai */
.topbar.enxuto .mainnav a[data-nav="voos"] { display: none; }
.topbar.enxuto .marca[aria-current="page"] .marca-sinal { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--primary); }
.topbar.enxuto .marca { margin: 0 .3rem 0 .15rem; }
/* Na tela de um voo não cabe tudo: a hora sai do menu enxuto (volta ao subir a página) */
.topbar.enxuto:has(.barra-voo:not([hidden])) .clock { display: none; }
.topbar.enxuto:has(.barra-voo:not([hidden])) .atualizado { margin-left: auto; }
@media (max-width: 760px) {
  .barra-info { gap: .3rem; }
  /* no celular, na linha da marca, o botão de atualizar fica só com o ícone */
  .barra-info .btn-atualizar span::before { content: none; }
  .barra-info .btn-atualizar { min-width: 44px; padding: 0 .4rem; }
  .barra-info .btn-atualizar .icon { width: 1.5rem; height: 1.5rem; }
  .marca { font-size: 1.2rem; gap: .4rem; }
  .marca-sinal { width: 36px; height: 36px; }
}

/* Celulares estreitos (360 px) e letra muito grande: tudo um pouco mais junto para caber */
@media (max-width: 380px) {
  .marca { font-size: 1.05rem; gap: .3rem; }
  .marca-sinal { width: 32px; height: 32px; }
  .marca-sinal .icon { width: 22px; height: 22px; }
  .barra-info { gap: .2rem; }
  .clock .fuso { font-size: .75rem; padding: 0 .25rem; }
  .barra-info .clock strong { font-size: 1.1rem; }
  .topbar.enxuto { gap: .2rem; padding-left: 8px; padding-right: 8px; }
  .topbar.enxuto .marca { margin: 0 .2rem 0 .1rem; }
  .topbar.enxuto .mainnav a { min-width: 44px; padding: 0 .3rem; }
}
:root[data-letra="muito-grande"] .topbar.enxuto .marca { margin: 0 .15rem 0 0; }
:root[data-letra="muito-grande"] .topbar.enxuto .marca-sinal { width: 30px; height: 30px; }
:root[data-letra="muito-grande"] .topbar.enxuto .clock .fuso { font-size: .65rem; padding: 0 .15rem; }

@media (max-width: 380px) {
  /* Celular estreito + letra grande: o botão de atualizar sai do menu enxuto (a página atualiza sozinha a cada 3 min) */
  :root[data-letra="grande"] .topbar.enxuto .btn-atualizar, :root[data-letra="muito-grande"] .topbar.enxuto .btn-atualizar { display: none; }
}

/* ---------- Posição de unidade móvel: caixa que abre e fecha dentro de "Rota" ---------- */
.pos-drop { margin-top: .75rem; background: var(--alert-bg); border: 3px solid var(--alert); border-radius: var(--radius); }
.pos-drop.pos-ok { background: var(--info-bg); border-color: var(--info); }
.pos-drop summary {
  display: flex; align-items: center; gap: .6rem; min-height: 64px; padding: .5rem 3rem .5rem .9rem;
  cursor: pointer; list-style: none; position: relative; font-size: 1.2rem; line-height: 1.3;
}
.pos-drop summary::-webkit-details-marker { display: none; }
.pos-drop summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: .7rem; height: .7rem;
  border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-70%) rotate(45deg);
}
.pos-drop[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.pos-drop summary .icon { width: 1.9rem; height: 1.9rem; color: var(--alert); flex: none; }
.pos-drop.pos-ok summary .icon { color: var(--info); }
.pos-drop summary small { font-size: 1rem; color: var(--text-muted); font-weight: 700; }
.pos-corpo { display: grid; gap: .8rem; padding: .25rem .9rem 1rem; border-top: 2px solid currentColor; }
.pos-corpo > p { margin: .5rem 0 0; }
.pos-corpo .form-pos-campos label small { font-weight: 700; font-size: .95rem; color: var(--text-muted); }
.pos-corpo input[inputmode="numeric"] { font-size: 1.6rem; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.pos-hemi { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-weight: 700; }
.pos-hemi legend { font-weight: 700; margin-bottom: .2rem; }
.pos-hemi label { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .45rem; min-height: 44px; }
.pos-hemi label small { flex-basis: 100%; padding-left: 1.95rem; font-weight: 700; color: var(--text-muted); }
.pos-hemi input { width: 1.5rem; height: 1.5rem; accent-color: var(--primary); }
.pos-confere { margin: 0; padding: .7rem .9rem; border-radius: 10px; background: var(--surface); border: 2px dashed var(--border); font-size: 1.15rem; }
.pos-graus { font-size: 1.5rem; letter-spacing: .03em; font-variant-numeric: tabular-nums; }

/* ---------- Ondas no mapa ---------- */
.onda-marca { background: none; border: 0; }
.onda { display: grid; justify-items: center; color: #000; }
.onda svg { width: 26px; height: 26px; fill: none; stroke: var(--cor); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1.5px #000); }
.onda b { font-size: 14px; line-height: 1; padding: 1px 5px; border-radius: 6px; background: var(--cor); color: #000; border: 2px solid #000; }

@media print {
  .topbar, .filters, .f-actions, .to-top, .ad { display: none !important; }
  .flight { break-inside: avoid; box-shadow: none; }
}

/* ---------- Dia da lista no menu: ‹ Hoje 08/11 › (pequeno, ao lado de "Voos") ---------- */
.dia-item { display: flex; align-items: center; }
.dia-nav { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); }
.dia-seta {
  display: grid; place-items: center; min-width: 40px; min-height: 44px; padding: 0;
  font: inherit; color: var(--primary); background: none; border: 0; cursor: pointer; border-radius: 10px;
}
.dia-seta .icon { width: 1.4rem; height: 1.4rem; stroke-width: 3; }
.dia-seta:disabled { color: var(--border); cursor: default; }
.dia-seta:not(:disabled):hover { background: var(--surface-2); }
.barra-topo .mainnav .dia-txt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-height: 44px; padding: 0 .15rem; border: 0; line-height: 1.05; font-size: .95rem; color: var(--text); white-space: nowrap;
}
.barra-topo .mainnav .dia-txt b { font-size: 1rem; }
.barra-topo .mainnav .dia-txt span { font-size: .85rem; font-weight: 700; color: var(--text-muted); }
/* Celular: as abas ficam com o ícone em cima e o nome embaixo, para caber o dia ao lado de "Voos" */
@media (max-width: 760px) {
  .barra-topo .mainnav ul { display: flex; gap: .2rem; align-items: center; }
  .barra-topo .mainnav a[data-nav] { flex-direction: column; gap: 0; min-height: 52px; padding: .1rem .35rem 0; font-size: .9rem; line-height: 1.1; }
  .barra-topo .mainnav a[data-nav] .icon { width: 1.5rem; height: 1.5rem; }
  .barra-topo .mainnav li:last-child { margin-left: auto; }
  .dia-seta { min-width: 34px; }
}
/* Letra muito grande em celular estreito: some a palavra (Hoje/Ontem); ficam a data e as setas */
@media (max-width: 420px) {
  :root[data-letra="muito-grande"] .barra-topo .mainnav .dia-txt b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  :root[data-letra="muito-grande"] .dia-seta { min-width: 30px; }
  :root[data-letra="muito-grande"] .barra-topo .mainnav a[data-nav] { padding: .1rem .2rem 0; font-size: .8rem; }
}
/* Menu enxuto (ao rolar) no celular: o dia sai para caber tudo numa linha (volta ao subir a página) */
@media (max-width: 760px) {
  .topbar.enxuto .dia-item { display: none; }
}
.topbar.enxuto .dia-seta { min-width: 34px; }
.topbar.enxuto .mainnav .dia-txt b { font-size: .9rem; }

/* ---------- Página de planejamento de um voo: aparência própria ---------- */
:root { --plano-bg: #e9f0fa; }
:root[data-theme="escuro"] { --plano-bg: #0b1626; }
:root[data-theme="contraste"] { --plano-bg: #000000; }
body.em-voo { background: var(--plano-bg); }
.plan-faixa {
  display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; margin-bottom: 1rem;
  background: var(--primary); color: var(--primary-text); border-radius: var(--radius);
}
:root[data-theme="contraste"] .plan-faixa { border: 3px solid var(--primary); }
.plan-faixa > .icon { width: 2.6rem; height: 2.6rem; }
.plan-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.plan-rotulo { font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.plan-txt b { font-size: 1.5rem; overflow-wrap: anywhere; }
.plan-txt small { font-size: 1rem; font-weight: 700; opacity: .95; }
.plan-check-atalho {
  display: flex; flex-direction: column; align-items: center; gap: .1rem; flex: none;
  min-width: 64px; min-height: 56px; padding: .3rem .5rem; border-radius: 12px;
  background: var(--primary-text); color: var(--primary); text-decoration: none; font-weight: 800; font-size: .95rem; white-space: nowrap;
}
.plan-check-atalho .icon { width: 1.5rem; height: 1.5rem; }
.plan-check-atalho.completo { background: var(--ok-bg); color: var(--ok); }
.em-voo .det-head, .em-voo .perna, .em-voo .tile, .em-voo .cond, .em-voo .metar { background: var(--surface); }
.det .step-title .icon { width: 1.7rem; height: 1.7rem; }
.btn-voltar { background: var(--surface); }

/* ---------- Checklist do voo ---------- */
.plan-check { padding: 1rem; background: var(--surface); border: 3px solid var(--primary); border-radius: var(--radius); }
.check-conta { margin: 0 0 .75rem; font-size: 1.2rem; font-weight: 800; }
.check-conta.completo { color: var(--ok); }
.checklist { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.check-item {
  position: relative; display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: .5rem .9rem;
  border: var(--border-w) solid var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer;
  font-size: 1.3rem; font-weight: 700;
}
.check-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-caixa {
  display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem;
  border: 3px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: transparent;
}
.check-caixa .icon { width: 2rem; height: 2rem; stroke-width: 3; }
.check-caixa .icon circle { display: none; }
.check-item:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); }
.check-item input:checked + .check-caixa { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.check-item input:checked ~ .check-txt { color: var(--ok); }
.check-item input:focus-visible + .check-caixa { outline: 4px solid var(--focus); outline-offset: 3px; }

/* ---------- Mapa do voo: lista suspensa de camadas por cima do mapa e escala de cores ---------- */
.mapa-camada {
  position: absolute; top: 10px; right: 8px; z-index: 500; max-width: calc(100% - 70px);
  display: flex; align-items: center;
}
.mapa-camada .icon { position: absolute; left: .55rem; width: 1.5rem; height: 1.5rem; color: var(--primary); pointer-events: none; }
.mapa-camada select {
  width: 100%; min-height: 50px; padding: .3rem 2rem .3rem 2.4rem;
  font: inherit; font-size: 1.05rem; font-weight: 800; color: var(--text);
  background-color: var(--surface); border: 3px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 50%, calc(100% - .85rem) 50%;
  background-size: .5rem .5rem; background-repeat: no-repeat;
}
.escala { margin-top: .5rem; padding: .6rem .8rem; background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius); }
.escala-titulo { margin: 0 0 .35rem; font-weight: 800; font-size: 1.05rem; }
.escala-itens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: 1rem; font-weight: 700; }
.escala-itens li { display: flex; align-items: center; gap: .35rem; }
.escala-cor { width: 1.4rem; height: 1rem; border-radius: 4px; border: 2px solid var(--border-strong); flex: none; }
.escala-grad { display: block; height: 1rem; border-radius: 4px; border: 2px solid var(--border-strong); }
.escala-pontas { display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; font-weight: 700; margin-top: .2rem; }
.escala-nota { margin: .35rem 0 0; font-size: 1rem; color: var(--text-muted); }
:root { --nuvem-fraca: rgba(120, 130, 145, .25); --nuvem-forte: rgb(40, 50, 75); }
:root[data-theme="escuro"], :root[data-theme="contraste"] { --nuvem-fraca: rgba(255, 255, 255, .15); --nuvem-forte: #fff; }
.ponto { display: grid; place-items: center; }
.ponto b { font-size: 14px; line-height: 1; padding: 3px 6px; border-radius: 6px; background: var(--cor); color: #000; border: 2px solid #000; white-space: nowrap; }

/* ==========================================================================
   Botões com cara de botão de painel (cockpit): relevo, brilho no alto e
   uma "borda de baixo" que afunda quando é apertado. Vale para tudo o que é clicável.
   ========================================================================== */
:root {
  --bt-cima: #ffffff; --bt-baixo: #e3e8ef;         /* degradê da face do botão */
  --bt-borda: #7d8796;                              /* a "lateral" do botão, que aparece embaixo */
  --bt-brilho: rgba(255, 255, 255, .95);            /* reflexo no alto */
  --bt-sombra: rgba(20, 24, 31, .18);
  --bt-pri-cima: #2a6fc9; --bt-pri-baixo: #0a4fa8; --bt-pri-borda: #06326b;
  --bt-afunda: 4px;
}
:root[data-theme="escuro"] {
  --bt-cima: #2c3542; --bt-baixo: #1b222c; --bt-borda: #05070a;
  --bt-brilho: rgba(255, 255, 255, .14); --bt-sombra: rgba(0, 0, 0, .5);
  --bt-pri-cima: #a9d0ff; --bt-pri-baixo: #78b2f7; --bt-pri-borda: #2c5d99;
}
:root[data-theme="contraste"] {
  --bt-cima: #000; --bt-baixo: #000; --bt-borda: #fff;
  --bt-brilho: rgba(255, 255, 255, .25); --bt-sombra: transparent;
  --bt-pri-cima: #ffe500; --bt-pri-baixo: #ffe500; --bt-pri-borda: #a39200;
}

/* Botão normal */
.btn, .icon-btn, .op, .hub, .dia-nav, .plan-check-atalho {
  background-image: linear-gradient(180deg, var(--bt-cima), var(--bt-baixo));
  box-shadow: 0 var(--bt-afunda) 0 var(--bt-borda), 0 calc(var(--bt-afunda) + 3px) 8px var(--bt-sombra), inset 0 2px 0 var(--bt-brilho);
  position: relative;
}
/* Botão principal (azul / amarelo no alto contraste) */
.btn-primary, .btn-rota, .anim-play, .barra-topo .barra-voltar,
.btn[aria-pressed="true"], .icon-btn[aria-pressed="true"], .btn.is-active {
  background-image: linear-gradient(180deg, var(--bt-pri-cima), var(--bt-pri-baixo));
  box-shadow: 0 var(--bt-afunda) 0 var(--bt-pri-borda), 0 calc(var(--bt-afunda) + 3px) 8px var(--bt-sombra), inset 0 2px 0 rgba(255, 255, 255, .35);
}
/* Escolhido no painel de ajustes: aceso, como uma tecla iluminada */
.op[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--primary), 0 var(--bt-afunda) 0 var(--bt-pri-borda), inset 0 2px 0 var(--bt-brilho);
}
/* Apertado: o botão desce e a borda de baixo some */
.btn:active, .icon-btn:active, .op:active, .hub:active, .plan-check-atalho:active, .dia-seta:active,
.flight:active, .check-item:active, .pos-drop > summary:active, .filtros-drop > summary:active, details.help > summary:active {
  transform: translateY(var(--bt-afunda));
}
.btn:active, .icon-btn:active, .op:active, .hub:active, .plan-check-atalho:active {
  box-shadow: 0 0 0 var(--bt-borda), inset 0 3px 6px rgba(0, 0, 0, .28);
}
.btn:disabled, .dia-seta:disabled { transform: none; }

/* Cartão de voo: um painel grande em relevo, que afunda ao tocar */
.flight {
  background-image: linear-gradient(180deg, var(--bt-cima), var(--bt-baixo));
  box-shadow: 0 5px 0 var(--bt-borda), 0 9px 14px var(--bt-sombra), inset 0 2px 0 var(--bt-brilho);
  margin-bottom: 5px;
}
.flight:active { box-shadow: 0 0 0 var(--bt-borda), inset 0 3px 8px rgba(0, 0, 0, .25); transform: translateY(5px); }
.flight:active .btn-rota:not(:active), .flight:active .icon-btn:not(:active) { transform: none; }

/* Caixas que abrem e fecham, itens do checklist e listas suspensas: também em relevo */
.filtros-drop, .pos-drop, details.help, .check-item {
  box-shadow: 0 var(--bt-afunda) 0 var(--bt-borda), 0 calc(var(--bt-afunda) + 3px) 8px var(--bt-sombra), inset 0 2px 0 var(--bt-brilho);
}
.filtros-drop.ativo { box-shadow: 0 0 0 3px var(--primary), 0 var(--bt-afunda) 0 var(--bt-pri-borda); }
.check-item { background-image: linear-gradient(180deg, var(--bt-cima), var(--bt-baixo)); }
.check-item:has(input:checked) { background-image: none; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .18); transform: translateY(2px); }
.base-select, .mapa-camada select {
  background-color: var(--bt-baixo);
  box-shadow: 0 var(--bt-afunda) 0 var(--bt-borda), 0 calc(var(--bt-afunda) + 3px) 8px var(--bt-sombra), inset 0 2px 0 var(--bt-brilho);
}
.to-top { box-shadow: 0 4px 0 var(--bt-pri-borda), 0 8px 16px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .35); }
.to-top:active { transform: translateY(4px); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .3); }
.dia-seta { background: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .icon-btn, .op, .hub, .flight, .check-item, .to-top, .plan-check-atalho { transition: transform .08s, box-shadow .08s, background-color .15s, border-color .15s; }
}
@media print { .flight { box-shadow: none; background-image: none; } }

/* ==========================================================================
   Modo "Botões menores": a página no tamanho normal, para quem enxerga bem.
   O modo "Baixa visibilidade" (padrão) é o de letra e botões grandes.
   ========================================================================== */
:root[data-modo="compacto"] { --modo: .8; --bt-afunda: 3px; }
:root[data-modo="compacto"] .btn { min-height: 42px; padding: .45rem .9rem; }
:root[data-modo="compacto"] .btn-largo { min-height: 48px; }
:root[data-modo="compacto"] .icon-btn { min-height: 40px; min-width: 40px; }
:root[data-modo="compacto"] .f-actions .btn-rota { min-height: 44px; }
:root[data-modo="compacto"] .search-box input { min-height: 48px; }
:root[data-modo="compacto"] .base-select { min-height: 50px; }
:root[data-modo="compacto"] .filtros-drop summary { min-height: 52px; }
:root[data-modo="compacto"] .pos-drop summary, :root[data-modo="compacto"] details.help summary { min-height: 48px; }
:root[data-modo="compacto"] .check-item { min-height: 48px; }
:root[data-modo="compacto"] .check-caixa { width: 1.9rem; height: 1.9rem; }
:root[data-modo="compacto"] .form-pos-campos input { min-height: 46px; }
:root[data-modo="compacto"] .anim-btn, :root[data-modo="compacto"] .anim-barra { min-height: 44px; min-width: 44px; }
:root[data-modo="compacto"] .mainnav a, :root[data-modo="compacto"] .barra-topo .mainnav a { min-height: 42px; }
:root[data-modo="compacto"] .btn-ajustes, :root[data-modo="compacto"] .barra-topo .btn-ajustes,
:root[data-modo="compacto"] .barra-voltar, :root[data-modo="compacto"] .barra-topo .barra-voltar { min-height: 42px; }
:root[data-modo="compacto"] .op { min-height: 80px; }
:root[data-modo="compacto"] .hub { min-height: 60px; }
:root[data-modo="compacto"] .plan-check-atalho { min-height: 44px; }
:root[data-modo="compacto"] .mapa-camada select { min-height: 40px; }
:root[data-modo="compacto"] .to-top { width: 52px; height: 52px; }
:root[data-modo="compacto"] .marca-sinal { width: 34px; height: 34px; }
:root[data-modo="compacto"] .selo { height: 36px; min-width: 60px; }
:root[data-modo="compacto"] .selo-img img { max-height: 28px; }
:root[data-modo="compacto"] .selo-grande { height: 46px; }

/* Escolha do modo, no primeiro acesso (e no botão Ajustar) */
.op-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.op-modo { min-height: 96px; }
.op-modo small { font-weight: 700; font-size: .9rem; color: var(--text-muted); }
.op-modo .op-aa { display: flex; align-items: flex-end; gap: .2rem; }

/* Painel de ajustes mais baixo: o exemplo fica no alto e as opções cabem sem rolar */
.painel .amostra { margin: .5rem 0 .25rem; }
.painel .aj-passo { margin: .9rem 0 .5rem; }
.painel .op { min-height: 84px; padding: .5rem .4rem; }
.painel .op[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 4px; right: 6px; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .95rem; background: var(--primary); color: var(--primary-text);
}

/* Aviso discreto: outras aeronaves para o mesmo destino no mesmo dia */
.outros {
  display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1.25rem; padding: .6rem .8rem;
  font-size: 1.05rem; color: var(--text-muted); background: var(--surface);
  border: 2px dashed var(--border); border-radius: var(--radius);
}
.outros > .icon { width: 1.5rem; height: 1.5rem; flex: none; margin-top: .1rem; color: var(--info); }
.outros b { color: var(--text); }
.outros ul { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .15rem; }
.outros a { color: var(--primary); font-weight: 700; }


/* Meus Voos: uma área própria acima da lista geral. */
.meus-voos-titulo { display:flex; align-items:center; gap:.6rem; }
.meus-voos-titulo .icon { color:var(--primary); width:1.6rem; height:1.6rem; fill:currentColor; }
.meus-voos-dia { margin:.2rem 0 1rem; color:var(--text-muted); font-size:1rem; }
.meus-voos-vazio { display:flex; align-items:center; justify-content:center; gap:1rem; min-height:110px; padding:1rem; border:2px dashed var(--border); border-radius:var(--radius); background:var(--surface); color:var(--text-muted); }
.meus-voos-vazio > .icon { width:2rem; height:2rem; flex-shrink:0; opacity:.65; }
.meus-voos-vazio p { margin:0; font-weight:700; }
.meus-voos-vazio span { display:block; font-size:1rem; font-weight:400; margin-top:.2rem; }
.meus-voos-lista { padding:5px; }
.flight.is-fav { background-color:#e5f0ff; border-color:var(--primary); border-width:3px; border-left-width:12px; outline:2px solid var(--primary); outline-offset:2px; }
:root[data-theme="escuro"] .flight.is-fav { background-color:#182f4d; }
:root[data-theme="contraste"] .flight.is-fav { background-color:#191900; border-color:#ffe500; outline-color:#ffe500; }
@media print { .meus-voos-vazio { display:none; } .flight.is-fav { background:#fff; outline:2px solid #000; } }
