/* KCE Logistics · Immersion 2027
   Layout: navy brand band on top, a boarding-pass status card, then a
   checklist rail beside one card per section (stacks on phones). */
:root {
  --navy: #0d1b2a;
  --orange: #F15A22;
  --band: #0d1b2a;
  --band-ink: #f4f7fa;
  --band-muted: #9fb2c6;
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --ink: #0d1b2a;
  --muted: #56677a;
  --line: #d6dee7;
  --accent: #F15A22;
  --accent-ink: #b8400f;      /* orange dark enough for text on light */
  --on-accent: #ffffff;
  --ok: #1d7a4f;
  --ok-bg: #e3f4ea;
  --warn: #9a5b00;
  --warn-bg: #fff1d6;
  --bad: #b3261e;
  --bad-bg: #fde7e5;
  --focus: #F15A22;
  --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px rgba(13, 27, 42, .06);

  /* Avenir: nativa em Mac/iPhone; Nunito Sans é a substituta mais próxima no Windows/Android */
  --f-display: "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --f-body: "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --band: #07111b; --band-ink: #eef3f8; --band-muted: #8ea3b8;
    --bg: #0a1520; --surface: #102131; --surface-2: #0d1b29;
    --ink: #e7eef5; --muted: #95a8bb; --line: #213a52;
    --accent: #ff6a33; --accent-ink: #ff8a5c; --on-accent: #1a0a03;
    --ok: #6fd3a0; --ok-bg: #12352a; --warn: #f2c165; --warn-bg: #3a2c10;
    --bad: #ff8f86; --bad-bg: #3d1916; --focus: #ff8a5c;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --band: #07111b; --band-ink: #eef3f8; --band-muted: #8ea3b8;
  --bg: #0a1520; --surface: #102131; --surface-2: #0d1b29;
  --ink: #e7eef5; --muted: #95a8bb; --line: #213a52;
  --accent: #ff6a33; --accent-ink: #ff8a5c; --on-accent: #1a0a03;
  --ok: #6fd3a0; --ok-bg: #12352a; --warn: #f2c165; --warn-bg: #3a2c10;
  --bad: #ff8f86; --bad-bg: #3d1916; --focus: #ff8a5c;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--band);
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.wrap {
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- brand band ---------- */
.band {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--band); color: var(--band-ink);
  border-bottom: 3px solid var(--orange);
}
.band .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; padding-block: 8px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-logo { display: block; height: 30px; width: auto; max-width: 46vw; }
@media (max-width: 480px) { .brand-logo { height: 24px; } .brand-divider, .brand-event { display: none; } }
.brand-mark {
  font: 700 26px/1 var(--f-display); letter-spacing: .02em;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.brand-mark b { color: var(--orange); font-weight: 700; }
.brand-mark span { font-size: 13px; letter-spacing: .28em; font-weight: 600; color: var(--band-muted); }
.brand-divider { width: 1px; height: 28px; background: rgba(255,255,255,.18); }
.brand-event { font: 600 13px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); }
.brand-event strong { display: block; color: var(--band-ink); letter-spacing: .08em; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; }
.lang button {
  background: transparent; color: var(--band-muted); border: 0; cursor: pointer;
  font: 600 12px/1 var(--f-body); letter-spacing: .1em; padding: 8px 11px;
}
.lang button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.band .btn.ghost { color: var(--band-ink); border-color: rgba(255,255,255,.28); }
.band .btn.ghost:hover { background: rgba(255,255,255,.08); }

.demo-strip {
  background: var(--warn-bg); color: var(--warn);
  font: 600 13px/1.4 var(--f-body); text-align: center; padding-block: 8px;
}

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--f-body); padding: 12px 18px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--line); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.doc-confirm { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
.field > span { font: 600 13px/1.3 var(--f-body); color: var(--muted); letter-spacing: .02em; }
.field > span em { color: var(--accent-ink); font-style: normal; }
.field small { color: var(--muted); font-size: 12.5px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=search], select, textarea {
  width: 100%; font: 400 16px/1.4 var(--f-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
input.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .06em; font-weight: 500; }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 12.5px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font: 500 15px/1.2 var(--f-body); cursor: pointer;
}
.choice input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- login ---------- */
.login { min-height: calc(100vh - 67px); display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero {
  background: var(--band); color: var(--band-ink); position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.login-hero .wrap { padding-block: 56px; max-width: 560px; margin: 0 0 0 auto; display: grid; gap: 18px; }
.route { display: flex; align-items: center; gap: 14px; font: 800 clamp(40px, 7vw, 72px)/1 var(--f-display); letter-spacing: .02em; }
.route i { flex: 1; height: 2px; min-width: 40px; background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 18px); position: relative; }
.route i::after { content: "✈"; position: absolute; right: -4px; top: 50%; transform: translateY(-55%); font-style: normal; font-size: 22px; color: var(--orange); }
.login-hero h1 { font-size: clamp(26px, 3.6vw, 38px); }
.login-hero p { color: var(--band-muted); max-width: 44ch; }
.login-hero .meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.login-hero .meta div { display: grid; gap: 2px; }
.login-hero .meta small { font: 600 11px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--band-muted); }
.login-hero .meta strong { font: 600 18px/1.25 var(--f-display); }
.login-panel { display: flex; align-items: center; }
.login-panel .wrap { max-width: 460px; padding-block: 48px; display: grid; gap: 18px; margin: 0 auto 0 0; }
.login-panel h2 { font-size: 30px; }
.login-panel p { color: var(--muted); }
.login-panel form { display: grid; gap: 14px; }
.notice { padding: 12px 14px; border-radius: 8px; font-size: 14.5px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.fine { font-size: 13px; color: var(--muted); }
@media (max-width: 820px) {
  .login { grid-template-columns: minmax(0,1fr); }
  .login-hero .wrap { margin: 0 auto; padding-block: 36px; }
  .login-panel .wrap { margin: 0 auto; }
}

/* ---------- boarding pass ---------- */
.pass {
  margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 240px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid var(--line);
}
.pass-main { padding: 22px 24px; display: grid; gap: 18px; min-width: 0; }
.pass-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.eyebrow { font: 600 11.5px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.pass-name { font-size: clamp(24px, 3.4vw, 32px); overflow-wrap: anywhere; }
.pass-legs { display: flex; gap: 28px; flex-wrap: wrap; }
.pass-legs div { display: grid; gap: 4px; }
.pass-legs strong { font: 600 17px/1.25 var(--f-display); }
.pass-stub {
  position: relative; padding: 22px 20px; background: var(--band); color: var(--band-ink);
  display: grid; gap: 10px; align-content: center; justify-items: start;
}
.pass-stub::before {
  content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px;
  border-left: 2px dashed var(--line);
}
.pass-stub .eyebrow { color: var(--band-muted); }
.pass-pct { font: 800 50px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.pass-pct small { font-size: 24px; color: var(--band-muted); }
.meter { width: 100%; height: 8px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--orange); border-radius: 99px; transition: width .4s; }
.pass-stub p { font-size: 13px; color: var(--band-muted); }
@media (max-width: 720px) {
  .pass { grid-template-columns: minmax(0,1fr); }
  .pass-stub::before { left: 12px; right: 12px; top: -1px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line); }
}

/* ---------- layout: rail + sections ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding-block: 24px 64px; align-items: start; }
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 4px; }
.rail a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font: 500 15px/1.3 var(--f-body);
}
.rail a:hover { background: var(--surface); }
.rail a[aria-current="true"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.dot { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2px solid var(--line); display: grid; place-items: center; }
.dot.done { background: var(--ok); border-color: var(--ok); }
.dot.done::after { content: ""; width: 7px; height: 4px; border: 2px solid var(--surface); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.dot.part { border-color: var(--accent); background: conic-gradient(var(--accent) 0 50%, transparent 50% 100%); }
.dot.na { border-style: dashed; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0,1fr); }
  .rail { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .rail a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); }
  .rail a[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--accent); }
}

.sections { display: grid; gap: 20px; min-width: 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; display: grid; gap: 20px; scroll-margin-top: 96px; min-width: 0;
}
.card-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.card-head h2 { font-size: 22px; letter-spacing: -.005em; }
.card-head p { color: var(--muted); margin-top: 6px; max-width: 62ch; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px;
  font: 600 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.card-foot { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.card-foot .status { margin-right: auto; font-size: 14px; color: var(--muted); }
.card-foot .status.ok { color: var(--ok); }
.card-foot .status.bad { color: var(--bad); }

.sign {
  display: grid; gap: 12px; padding: 16px; border-radius: 10px;
  background: var(--surface-2); border: 1px dashed var(--line);
}
.sign .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.sign .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.sign .signed { font-size: 13.5px; color: var(--ok); }
.sign-name { font-family: "Caveat", "Segoe Script", cursive; font-size: 22px !important; }

.hint { font-size: 14px; color: var(--muted); padding: 12px 14px; background: var(--surface-2); border-radius: 8px; border-left: 3px solid var(--accent); }

/* ---------- documents ---------- */
.docs { display: grid; gap: 12px; }
.doc {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.doc-icon {
  width: 44px; height: 52px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font: 700 11px/1 var(--f-mono); color: var(--muted); letter-spacing: .02em;
}
.doc.has .doc-icon { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-ink); border-color: transparent; }
.doc-body { min-width: 0; display: grid; gap: 3px; }
.doc-body strong { font-weight: 600; }
.doc-body small { color: var(--muted); }
.doc-files { display: grid; gap: 4px; margin-top: 4px; }
.doc-file { display: flex; gap: 8px; align-items: center; font-size: 13.5px; min-width: 0; }
.doc-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.doc-file button { background: none; border: 0; color: var(--bad); cursor: pointer; font: 600 12.5px/1 var(--f-body); padding: 4px; }
.doc-actions { display: flex; gap: 8px; align-items: center; }
.doc input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.doc.dragover { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 560px) {
  .doc { grid-template-columns: 36px minmax(0,1fr); }
  .doc-icon { width: 36px; height: 44px; }
  .doc-actions { grid-column: 1 / -1; }
}

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px;
  font: 500 15px/1.3 var(--f-body); box-shadow: var(--shadow); max-width: calc(100% - 32px);
  border-left: 4px solid var(--orange);
}

.foot { padding-block: 24px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- admin ---------- */
.admin-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; padding-block: 28px 8px; }
.admin-head h1 { font-size: clamp(28px, 3.6vw, 36px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding-block: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.tile strong { font: 800 32px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.tile small { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 8px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; padding: 12px 14px; cursor: pointer; color: var(--muted);
  font: 600 15px/1 var(--f-body); border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; padding-block: 16px; align-items: center; }
.toolbar input[type=search] { max-width: 320px; }
.toolbar select { width: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--muted); font-size: 12.5px; }
.bar { width: 90px; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--accent); }

.drawer-back { position: fixed; inset: 0; background: rgba(5, 12, 20, .5); z-index: 30; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 31;
  background: var(--bg); overflow-y: auto; box-shadow: var(--shadow);
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) 20px;
  display: grid; gap: 16px; align-content: start;
}
.drawer header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.drawer h2 { font-size: 26px; overflow-wrap: anywhere; }
.kv { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 16px; }
.kv h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); padding: 12px 0 4px; }
.kv dl { display: grid; grid-template-columns: minmax(120px, 40%) minmax(0, 1fr); margin: 0; }
.kv dt, .kv dd { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { overflow-wrap: anywhere; }
.kv dl > :nth-last-child(-n+2) { border-bottom: 0; }

.invite-form { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-block: 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- viagem (admin: edição; portal: leitura) ---------- */
.trip-form { display: grid; gap: 14px; }
.trip-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; background: var(--surface); min-width: 0; }
.trip-form legend { font: 800 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); padding: 0 6px; }
.trip-form .grid { gap: 12px; }
.trip-form input, .trip-form select, .trip-form textarea { min-height: 40px; padding: 8px 10px; font-size: 15px; }
.leg { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; background: var(--surface-2); }
.leg-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.leg-head strong { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trip-files { display: grid; gap: 8px; }
.trip-up { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.trip-up select { width: auto; }
.trip-up input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.flight { display: grid; gap: 12px; }
.flight-dir { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flight-dir h3 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.flight-dir .route-txt { font: 800 18px/1.2 var(--f-display); letter-spacing: .04em; }
.leg-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.leg-end { display: grid; gap: 2px; min-width: 0; }
.leg-end:last-child { text-align: right; }
.leg-code { font: 800 30px/1 var(--f-display); letter-spacing: .02em; }
.leg-time { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.leg-mid { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--muted); font-size: 12.5px; }
.leg-mid b { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.leg-line { width: 72px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px); }
.leg-meta { grid-column: 1 / -1; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.leg-meta span b { color: var(--ink); font-weight: 600; }
.trip-pending { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line); color: var(--muted); font-size: 14.5px; }
.trip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .trip-grid { grid-template-columns: minmax(0, 1fr); } .leg-code { font-size: 24px; } .leg-line { width: 40px; } }
.ref { display: inline-flex; gap: 6px; align-items: baseline; }
.ref b { font-variant-numeric: tabular-nums; letter-spacing: .08em; }

/* ---------- minha viagem + carta convite ---------- */
#trip { margin-top: 20px; }
#trip .kv { padding: 2px 14px; }
.flight .route-txt { overflow-wrap: anywhere; }
.pass-ask {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
}
.pass-ask.todo { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.pass-ask-q { font-weight: 600; font-size: 15px; }
.pass-ask .choice span { min-height: 36px; padding: 6px 16px; }
.pass-ask small { flex-basis: 100%; color: var(--muted); font-size: 13px; }

/* ---------- trip policy ---------- */
.policy { display: grid; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.policy h3 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.policy-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.policy ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.policy li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.policy .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.policy .inc .mark { background: var(--ok-bg); color: var(--ok); }
.policy .own .mark { background: var(--warn-bg); color: var(--warn); }
.policy-rules { border-top: 1px solid var(--line); padding-top: 12px !important; margin: 0 !important; }
.policy-rules li { display: list-item; list-style: none; padding-left: 18px; position: relative; font-weight: 600; }
.policy-rules li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
@media (max-width: 520px) { .policy-cols { grid-template-columns: minmax(0, 1fr); } }


/* ---------- sign-in hero photo ---------- */
.login-hero {
  background-color: var(--band);
  background-image:
    linear-gradient(180deg, rgba(13, 27, 42, .62) 0%, rgba(13, 27, 42, .72) 45%, rgba(13, 27, 42, .94) 100%),
    url("miami.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  min-height: 560px;
}
.login-hero .welcome {
  font: 800 clamp(40px, 6.4vw, 68px)/1 var(--f-display); letter-spacing: -.01em; color: #fff;
  text-wrap: balance; max-width: none !important;
}
.login-hero .welcome::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 18px; border-radius: 2px; background: var(--orange); }
@media (max-width: 820px) {
  .login-hero { min-height: 520px; }
}

.login-panel .ms-btn { width: 100%; padding-block: 14px; }
