/* BagBack design system — Material Design 3 (M3), light scheme, sized up for readability.
   One file for every page: the claim builder, the airport checklist, airline and guide pages, case and signing pages,
   the reviewer queue, and error pages. Tokens follow the M3 naming (md-sys-*); components follow the M3 specs with
   touch targets held at 48px or more and body text at 18px, because the audience skews older.
   Type: Roboto (M3 default) / Roboto Mono for references and figures. */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light only;
  /* Color roles (seed: teal #00696F; tertiary: brand orange) */
  --md-sys-color-primary: #00696F;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #9CF0F7;
  --md-sys-color-on-primary-container: #002022;
  --md-sys-color-secondary: #4A6365;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #CDE7EA;
  --md-sys-color-on-secondary-container: #051F21;
  --md-sys-color-tertiary: #A8421A;
  --md-sys-color-on-tertiary: #FFFFFF;
  --md-sys-color-tertiary-container: #FFDBCF;
  --md-sys-color-on-tertiary-container: #380D00;
  --md-sys-color-error: #B3261E;
  --md-sys-color-on-error: #FFFFFF;
  --md-sys-color-error-container: #F9DEDC;
  --md-sys-color-on-error-container: #410E0B;
  --md-sys-color-success: #1E6B3A;                 /* custom role: M3 has no success color */
  --md-sys-color-success-container: #C8F0D2;
  --md-sys-color-on-success-container: #00210B;
  --md-sys-color-warning: #6F5000;                 /* custom role */
  --md-sys-color-warning-container: #FFE08D;
  --md-sys-color-on-warning-container: #231A00;
  --md-sys-color-surface: #F7FAFA;
  --md-sys-color-surface-dim: #D7DBDB;
  --md-sys-color-surface-bright: #F7FAFA;
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #F1F4F4;
  --md-sys-color-surface-container: #EBEEEF;
  --md-sys-color-surface-container-high: #E5E9E9;
  --md-sys-color-surface-container-highest: #E0E3E4;
  --md-sys-color-on-surface: #191C1D;
  --md-sys-color-on-surface-variant: #3F4849;
  --md-sys-color-outline: #6F7979;
  --md-sys-color-outline-variant: #BEC8C9;
  --md-sys-color-inverse-surface: #2E3132;
  --md-sys-color-inverse-on-surface: #EFF1F1;
  --md-sys-color-scrim: #000000;
  /* Shape */
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 999px;
  /* Elevation (M3 levels 1–3) */
  --md-sys-elevation-1: 0 1px 2px rgba(0,0,0,.30), 0 1px 3px 1px rgba(0,0,0,.15);
  --md-sys-elevation-2: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px 2px rgba(0,0,0,.15);
  --md-sys-elevation-3: 0 4px 8px 3px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.30);
  /* Type (M3 scale, sized up ~12% for readability) */
  --md-sys-typescale-font: "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
  --md-sys-typescale-mono: "Roboto Mono", Menlo, Consolas, monospace;
  --md-sys-typescale-display-small: 500 40px/1.15 var(--md-sys-typescale-font);
  --md-sys-typescale-headline-large: 500 34px/1.2 var(--md-sys-typescale-font);
  --md-sys-typescale-headline-medium: 500 30px/1.2 var(--md-sys-typescale-font);
  --md-sys-typescale-headline-small: 500 26px/1.25 var(--md-sys-typescale-font);
  --md-sys-typescale-title-large: 500 24px/1.3 var(--md-sys-typescale-font);
  --md-sys-typescale-title-medium: 600 20px/1.35 var(--md-sys-typescale-font);
  --md-sys-typescale-title-small: 600 18px/1.4 var(--md-sys-typescale-font);
  --md-sys-typescale-body-large: 400 18px/1.55 var(--md-sys-typescale-font);
  --md-sys-typescale-body-medium: 400 16px/1.5 var(--md-sys-typescale-font);
  --md-sys-typescale-body-small: 400 14px/1.45 var(--md-sys-typescale-font);
  --md-sys-typescale-label-large: 500 16px/1.4 var(--md-sys-typescale-font);
  --md-sys-typescale-label-medium: 500 14px/1.4 var(--md-sys-typescale-font);
  --md-sys-typescale-label-small: 500 12px/1.4 var(--md-sys-typescale-font);
  /* State layers */
  --md-sys-state-hover: 8%;
  --md-sys-state-focus: 12%;
  --md-sys-state-pressed: 12%;
  /* Legacy aliases kept so page-specific inline styles keep working */
  --ground: var(--md-sys-color-surface); --surface: var(--md-sys-color-surface-container-lowest); --sunk: var(--md-sys-color-surface-container);
  --ink: var(--md-sys-color-on-surface); --muted: var(--md-sys-color-on-surface-variant); --line: var(--md-sys-color-outline-variant); --line-strong: var(--md-sys-color-outline);
  --accent: var(--md-sys-color-tertiary); --accent-ink: var(--md-sys-color-on-tertiary); --teal: var(--md-sys-color-primary); --teal-soft: var(--md-sys-color-primary-container);
  --good: var(--md-sys-color-success); --good-soft: var(--md-sys-color-success-container); --warn: var(--md-sys-color-warning); --warn-soft: var(--md-sys-color-warning-container);
  --crit: var(--md-sys-color-error); --crit-soft: var(--md-sys-color-error-container);
  --display: var(--md-sys-typescale-font); --body: var(--md-sys-typescale-font); --mono: var(--md-sys-typescale-mono);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 0; background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); font: var(--md-sys-typescale-body-large); padding-block: 0 56px; padding-inline: clamp(16px, 4vw, 40px); }
h1, h2, h3, h4 { margin: 0; color: var(--md-sys-color-on-surface); text-wrap: balance; }
h1 { font: var(--md-sys-typescale-headline-large); }
h2 { font: var(--md-sys-typescale-headline-small); }
h3 { font: var(--md-sys-typescale-title-medium); }
p { margin: 0 0 14px; }
a { color: var(--md-sys-color-primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--md-sys-color-on-primary-container); }
button, input, select, textarea { font: inherit; color: inherit; }
small { font: var(--md-sys-typescale-body-small); color: var(--md-sys-color-on-surface-variant); }
:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- 3. Text fields (M3 outlined) ---------- */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
  background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface);
  border: 1px solid var(--md-sys-color-outline); border-radius: var(--md-sys-shape-corner-extra-small);
  padding: 14px 16px; width: 100%; min-width: 0; min-height: 56px; font: var(--md-sys-typescale-body-large);
}
input:not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover { border-color: var(--md-sys-color-on-surface); }
input:not([type=checkbox]):not([type=radio]):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border: 2px solid var(--md-sys-color-primary); padding: 13px 15px; }
input.bad, select.bad { border: 2px solid var(--md-sys-color-error); padding: 13px 15px; }
input::placeholder, textarea::placeholder { color: var(--md-sys-color-outline); opacity: 1; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--md-sys-color-primary); flex: none; }
label.f { display: flex; flex-direction: column; gap: 6px; color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-body-medium); }
label.f b { color: var(--md-sys-color-on-surface); font: var(--md-sys-typescale-label-large); }
label.chk { display: flex; gap: 14px; align-items: flex-start; font: var(--md-sys-typescale-body-large); padding: 10px 0; }
label.chk input { margin-top: 4px; }
label.chk small.why, .why { display: block; font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); margin-top: 4px; }
.hint { font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); margin: 8px 0 0; }
.row { display: grid; gap: 16px 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row.one { grid-template-columns: 1fr; }

/* ---------- 4. Buttons (M3 common buttons; 48px+ targets) ---------- */
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px; border-radius: var(--md-sys-shape-corner-full);
  font: var(--md-sys-typescale-label-large); text-decoration: none; cursor: pointer; white-space: normal; text-align: center;
  background: transparent; color: var(--md-sys-color-primary); border: 1px solid var(--md-sys-color-outline); /* outlined */
  transition: background-color .15s, box-shadow .15s;
}
.btn:hover { background: color-mix(in srgb, var(--md-sys-color-primary) var(--md-sys-state-hover), transparent); color: var(--md-sys-color-primary); }
.btn:active { background: color-mix(in srgb, var(--md-sys-color-primary) var(--md-sys-state-pressed), transparent); }
.btn.primary { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); border-color: transparent; box-shadow: none; } /* filled */
.btn.primary:hover { background: color-mix(in srgb, var(--md-sys-color-on-primary) var(--md-sys-state-hover), var(--md-sys-color-primary)); color: var(--md-sys-color-on-primary); box-shadow: var(--md-sys-elevation-1); }
.btn.tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); border-color: transparent; } /* filled tonal */
.btn.text { border-color: transparent; padding-inline: 12px; } /* text button */
.btn.big { width: 100%; min-height: 60px; font-size: 20px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .38; cursor: default; box-shadow: none; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.rm { background: none; border: 0; color: var(--md-sys-color-on-surface-variant); cursor: pointer; font: var(--md-sys-typescale-label-large); padding: 8px 12px; min-height: 44px; border-radius: var(--md-sys-shape-corner-full); }
.rm:hover { background: color-mix(in srgb, var(--md-sys-color-error) var(--md-sys-state-hover), transparent); color: var(--md-sys-color-error); }

/* ---------- 5. Cards & sections (M3 filled / outlined cards) ---------- */
section.step, .card, .tier, section, .about > div, .how > div, .faq details, .grid li {
  background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium); padding: 22px 22px 24px; margin-bottom: 18px;
}
.tier.mid { border: 2px solid var(--md-sys-color-primary); background: var(--md-sys-color-surface-container-low); }
.sign { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.sign h2 { font: var(--md-sys-typescale-headline-small); }
.sign span { font: var(--md-sys-typescale-label-medium); color: var(--md-sys-color-primary); text-transform: none; letter-spacing: .02em; }
.lead { margin: 0 0 16px; color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-body-large); max-width: 66ch; }
.q { margin: 20px 0 0; }
.q > b { display: block; font: var(--md-sys-typescale-title-small); margin-bottom: 10px; }

/* Choice cards (selectable outlined cards; selected = secondary container + check) */
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 16px 14px 48px;
  border: 1px solid var(--md-sys-color-outline); border-radius: var(--md-sys-shape-corner-medium); background: var(--md-sys-color-surface-container-lowest);
  cursor: pointer; font: var(--md-sys-typescale-body-large); transition: background-color .15s; }
.choice::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid var(--md-sys-color-on-surface-variant); background: var(--md-sys-color-surface-container-lowest); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.choice:hover { background: color-mix(in srgb, var(--md-sys-color-primary) var(--md-sys-state-hover), var(--md-sys-color-surface-container-lowest)); }
.choice:has(input:checked) { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); border-color: var(--md-sys-color-secondary-container); }
.choice:has(input:checked)::before { border-color: var(--md-sys-color-primary); background: radial-gradient(circle, var(--md-sys-color-primary) 0 45%, transparent 50%); }
.choice:has(input:focus-visible) { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.choice small { display: block; font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); }

/* Chips (assist / status) */
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: var(--md-sys-shape-corner-small);
  font: var(--md-sys-typescale-label-large); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); white-space: nowrap; text-transform: none; letter-spacing: 0; }
.chip.warn { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-on-warning-container); }
.chip.good { background: var(--md-sys-color-success-container); color: var(--md-sys-color-on-success-container); }
.chip.crit { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.chip.teal { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }

/* Banners & inline messages (M3 banner / supporting text) */
.msg, .ok, .err, .note, .say, .warnbox, .critbox, .example {
  display: block; margin: 12px 0 0; padding: 14px 16px; border-radius: var(--md-sys-shape-corner-small); font: var(--md-sys-typescale-body-large); border: 0; }
.msg { display: none; background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.msg.show { display: block; }
.msg.ok, .ok { background: var(--md-sys-color-success-container); color: var(--md-sys-color-on-success-container); }
.err, .critbox { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.note, .warnbox, .example { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-on-warning-container); }
.say { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.say b { display: block; font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-primary); margin-bottom: 4px; text-transform: none; letter-spacing: 0; }
.example { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.example button { margin-left: auto; }
.fine { font: var(--md-sys-typescale-body-small); color: var(--md-sys-color-on-surface-variant); max-width: 80ch; margin-top: 24px; }

/* ---------- 6. Top app bar & header, footer ---------- */
.brand { display: inline-flex; align-items: center; gap: .3em; color: inherit; text-decoration: none; }
.brand b { color: var(--md-sys-color-primary); font-weight: inherit; }
.brand .mark { width: 1em; height: 1em; flex: none; }
.tag h1 .brand { gap: .28em; }
small.brand .mark, .top h1 small .mark { width: 1.4em; height: 1.4em; vertical-align: -.35em; margin-right: .3em; }
.tag { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-block: 26px 20px; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.tag h1 { font: var(--md-sys-typescale-display-small); }
.tag h1 small { display: block; font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-primary); margin-bottom: 6px; text-transform: none; letter-spacing: 0; }
.tag p { margin: 10px 0 0; max-width: 58ch; font: var(--md-sys-typescale-body-large); }
.refline { margin: 0; align-self: center; text-align: right; font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface); font-family: var(--md-sys-typescale-mono); }
.refline small { display: block; font: var(--md-sys-typescale-body-small); color: var(--md-sys-color-on-surface-variant); font-family: var(--md-sys-typescale-font); }
.topline { margin: 14px 0 0; font: var(--md-sys-typescale-body-medium); }
nav.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 16px 0 14px; border-bottom: 1px solid var(--md-sys-color-outline-variant); font: var(--md-sys-typescale-label-large); }
nav.top .logo { font: var(--md-sys-typescale-title-large); font-weight: 700; color: var(--md-sys-color-on-surface); text-decoration: none; margin-right: auto; }
nav.top a { color: var(--md-sys-color-primary); text-decoration: none; padding: 8px 0; }
nav.top a:hover { text-decoration: underline; }
.crumbs { font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); margin: 18px 0 8px; }
.crumbs a { color: var(--md-sys-color-on-surface-variant); }
footer.site { margin-top: 40px; padding: 20px 22px; background: var(--md-sys-color-surface-container); border-radius: var(--md-sys-shape-corner-medium); display: flex; flex-wrap: wrap; gap: 8px 22px; font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); }

/* ---------- 7. Lists, tables, tabs ---------- */
table.items { width: 100%; border-collapse: collapse; font: var(--md-sys-typescale-body-medium); margin-top: 4px; }
table.items th { font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface-variant); text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--md-sys-color-outline-variant); text-transform: none; letter-spacing: 0; }
table.items td { padding: 8px; border-bottom: 1px solid var(--md-sys-color-outline-variant); vertical-align: middle; }
table.items td.num, table.items th.num { text-align: right; font-family: var(--md-sys-typescale-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.items input[type=number] { text-align: right; font-family: var(--md-sys-typescale-mono); }
table.items input:not([type=checkbox]), table.items select { min-height: 48px; padding: 10px 12px; font: var(--md-sys-typescale-body-medium); }
.tblwrap { overflow-x: auto; }
.tblwrap table { min-width: 640px; }
@media (max-width: 640px) {
  .tblwrap table { min-width: 0; }
  table.items thead { display: none; }
  table.items tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
  table.items td { display: block; border: 0; padding: 0; }
  table.items td[data-l]::before { content: attr(data-l); display: block; font: var(--md-sys-typescale-label-medium); color: var(--md-sys-color-on-surface-variant); margin-bottom: 4px; }
  table.items td.full { grid-column: 1 / -1; }
  table.items td.rmcell { grid-column: 1 / -1; text-align: right; }
}
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 18px; min-height: 48px; cursor: pointer; font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface-variant); margin-bottom: -1px; text-transform: none; letter-spacing: 0; border-radius: 3px 3px 0 0; }
.tabs button:hover { background: color-mix(in srgb, var(--md-sys-color-primary) var(--md-sys-state-hover), transparent); }
.tabs button[aria-selected="true"] { color: var(--md-sys-color-primary); border-bottom-color: var(--md-sys-color-primary); }
.panel { padding: 20px 22px 24px; }
.out { margin-top: 8px; background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-medium); }
.out > h2 { padding: 20px 22px 0; }
.out > p { margin: 6px 22px 14px; color: var(--md-sys-color-on-surface-variant); }
pre.letter { font: 15px/1.6 var(--md-sys-typescale-mono); white-space: pre-wrap; background: var(--md-sys-color-surface-container-low); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-small); padding: 18px 20px; margin: 0; max-width: 80ch; }
.strat { margin: 0 0 16px; padding-left: 22px; max-width: 70ch; }
.strat li { margin-bottom: 8px; }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.check li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-small); }
.check li input { margin-top: 4px; }
.check li small { display: block; }
ol.esc { padding-left: 22px; max-width: 70ch; margin: 0; }
ol.esc li { margin-bottom: 12px; }
ol.esc b { font: var(--md-sys-typescale-title-small); }
.cites { font: var(--md-sys-typescale-body-small); color: var(--md-sys-color-on-surface-variant); max-width: 75ch; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--md-sys-color-outline-variant); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; font: var(--md-sys-typescale-body-medium); }
.kv dt { color: var(--md-sys-color-on-surface-variant); margin: 0; }
.kv dd { margin: 0; font-family: var(--md-sys-typescale-mono); font-variant-numeric: tabular-nums; text-align: right; }
.kv dd.cap { color: var(--md-sys-color-on-surface); font-weight: 500; }
.faq details { padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font: var(--md-sys-typescale-title-small); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 26px/1 var(--md-sys-typescale-font); color: var(--md-sys-color-primary); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; max-width: 70ch; }
.grid.airlines, ul.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; padding: 0; }
ul.grid li { padding: 16px 18px; margin: 0; }
ul.grid li a { font: var(--md-sys-typescale-title-small); text-decoration: none; }
ul.grid li small { display: block; margin-top: 4px; }
.chan { list-style: none; padding: 0; margin: 0; }
.chan li { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.chan li:last-child { border-bottom: 0; }
.chan li b { font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-primary); text-transform: none; letter-spacing: 0; padding-top: 2px; }
.chan li small { display: block; }
.cta { margin: 24px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; color: var(--md-sys-color-on-surface-variant); }
.cta .btn { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); border-color: transparent; }
@media (max-width: 640px) { .chan li { grid-template-columns: 1fr; } } /* .kv keeps two columns: its values are short and read best beside their labels */

/* ---------- 8. Claim builder ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 24px; align-items: start; }
.flow > section.step { grid-column: 1; }
.flow > aside.ticket { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: 16px; }
@media (max-width: 920px) { .flow { grid-template-columns: 1fr; } .flow > section.step, .flow > aside.ticket { grid-column: 1; grid-row: auto; } .flow > aside.ticket { position: static; } }
.how { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 22px; }
.how > div { margin: 0; padding: 18px 20px; background: var(--md-sys-color-surface-container-low); border: 0; }
.how b { display: block; font: var(--md-sys-typescale-title-medium); margin-bottom: 6px; }
.how b span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); font: var(--md-sys-typescale-label-large); margin-right: 10px; vertical-align: middle; }
.how p { margin: 0; color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-body-medium); }
.ticket { background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-large); box-shadow: var(--md-sys-elevation-1); overflow: hidden; margin-bottom: 18px; padding: 0; }
.ticket .head { padding: 18px 20px 12px; border-bottom: 1px solid var(--md-sys-color-outline-variant); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ticket .head h2 { font: var(--md-sys-typescale-title-large); }
.big { padding: 16px 20px 8px; }
.big .lbl { font: var(--md-sys-typescale-label-medium); color: var(--md-sys-color-on-surface-variant); text-transform: none; letter-spacing: 0; }
.big .n { font: 500 clamp(30px, 8.5vw, 44px)/1.05 var(--md-sys-typescale-mono); color: var(--md-sys-color-tertiary); font-variant-numeric: tabular-nums; margin-top: 6px; }
.big .sub { font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); margin-top: 6px; }
.ticket .kv { padding: 10px 20px 16px; }
.meter { height: 8px; background: var(--md-sys-color-surface-container-highest); margin: 0 20px 14px; border-radius: var(--md-sys-shape-corner-full); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--md-sys-color-primary); transition: width .3s; }
.meter i.over { background: var(--md-sys-color-warning); }
.dl { border-top: 1px solid var(--md-sys-color-outline-variant); padding: 16px 20px; }
.dl h3 { font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface-variant); margin-bottom: 10px; text-transform: none; letter-spacing: 0; }
.dl ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dl li { display: grid; grid-template-columns: 6px 1fr auto; gap: 0 12px; font: var(--md-sys-typescale-body-medium); align-items: start; }
.dl li i { display: block; width: 6px; height: 100%; min-height: 32px; border-radius: 3px; background: var(--md-sys-color-success); }
.dl li.urgent i { background: var(--md-sys-color-warning); } .dl li.passed i { background: var(--md-sys-color-error); }
.dl li .d { font-family: var(--md-sys-typescale-mono); font-variant-numeric: tabular-nums; color: var(--md-sys-color-on-surface-variant); white-space: nowrap; text-align: right; }
.dl li.passed .d { color: var(--md-sys-color-error); } .dl li.urgent .d { color: var(--md-sys-color-warning); }
.dl li small { display: block; line-height: 1.35; }
.price { margin-top: 32px; }
.price h2 { margin-bottom: 4px; }
.price p.lead { margin: 0 0 16px; }
.tiers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tier { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.tier h3 { font: var(--md-sys-typescale-title-large); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tier h3 span { font: 500 26px/1 var(--md-sys-typescale-mono); color: var(--md-sys-color-on-surface); }
.tier ul { margin: 0; padding-left: 20px; font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); flex: 1; }
.tier .btn { align-self: stretch; }
.whatyouget { margin-top: 32px; padding: 0; border: 0; background: none; }
.whatyouget h2 { margin-bottom: 14px; }
.whatyouget li b { display: block; font: var(--md-sys-typescale-title-small); margin-bottom: 4px; }
.whatyouget li small { display: block; font: var(--md-sys-typescale-body-medium); }
.faq { margin-top: 32px; }
.faq h2, .about h2 { margin-bottom: 12px; }
.about { margin-top: 32px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.about > div { margin: 0; }
.about h2 { font: var(--md-sys-typescale-title-large); }
.about p { margin: 0 0 10px; max-width: 60ch; }
.about p:last-child { margin-bottom: 0; }
.about a.mail { font: var(--md-sys-typescale-title-small); }

/* ---------- 9. Airport checklist (belt) ---------- */
body.belt { padding-inline: 16px; }
.top { position: sticky; top: 0; z-index: 2; background: var(--md-sys-color-surface); padding-block: 12px 12px; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.top .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.top .row > * { min-width: 0; }
.top h1 { font: var(--md-sys-typescale-headline-medium); }
.top h1 small { display: block; font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-primary); margin-bottom: 4px; }
.clock { text-align: right; }
.clock .lbl { font: var(--md-sys-typescale-label-medium); color: var(--md-sys-color-on-surface-variant); text-transform: none; letter-spacing: 0; }
.clock .n { font: 500 32px/1 var(--md-sys-typescale-mono); color: var(--md-sys-color-tertiary); font-variant-numeric: tabular-nums; margin-top: 4px; }
.clock .n.over { color: var(--md-sys-color-error); } .clock .n.calm { color: var(--md-sys-color-primary); }
.clock .sub { font: var(--md-sys-typescale-body-small); color: var(--md-sys-color-on-surface-variant); }
.card h2 { display: flex; gap: 12px; align-items: baseline; }
.card h2 .k { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 10px; border-radius: 50%; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); font: var(--md-sys-typescale-label-large); text-transform: none; letter-spacing: 0; }
.card p { margin: 10px 0 0; }
.card label.f { margin-top: 14px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 8px; border: 1px solid var(--md-sys-color-outline); border-radius: var(--md-sys-shape-corner-full); overflow: hidden; }
.seg button { background: var(--md-sys-color-surface-container-lowest); border: 0; border-left: 1px solid var(--md-sys-color-outline); padding: 12px 6px; min-height: 48px; font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface); cursor: pointer; min-width: 0; line-height: 1.2; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.ck { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ck li { display: grid; grid-template-columns: 28px minmax(0, 1fr); overflow-wrap: anywhere; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-small); }
.ck li input { margin-top: 3px; }
.ck li.done { background: var(--md-sys-color-success-container); border-color: var(--md-sys-color-success-container); }
.ck li b { display: block; font: var(--md-sys-typescale-label-large); }
.ck li small { display: block; margin-top: 2px; }
.ref { font: 500 22px/1.2 var(--md-sys-typescale-mono); letter-spacing: .08em; text-transform: uppercase; }
.bad { color: var(--md-sys-color-error); font: var(--md-sys-typescale-body-medium); } .hm { color: var(--md-sys-color-warning); font: var(--md-sys-typescale-body-medium); }
p.ok { background: none; color: var(--md-sys-color-success); padding: 0; font: var(--md-sys-typescale-body-medium); }
.chan a { word-break: break-all; }

/* ---------- 10. Case, signing, approval, reviewer pages ---------- */
.next { margin-top: 20px; background: var(--md-sys-color-surface-container-low); border: 0; border-radius: var(--md-sys-shape-corner-large); padding: 20px 22px; }
.next h2 { margin-top: 10px; }
.next p { margin: 8px 0 0; max-width: 70ch; }
.grid.case, .case .grid, .grid:not(ul):not(.airlines) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 20px; align-items: start; }
@media (max-width: 900px) { .grid:not(ul):not(.airlines) { grid-template-columns: 1fr; } }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 6px 1fr; gap: 0 14px; padding: 12px 0; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.tl li:last-child { border-bottom: 0; }
.tl i { display: block; width: 6px; border-radius: 3px; background: var(--md-sys-color-outline-variant); }
.tl li.outbound i { background: var(--md-sys-color-primary); } .tl li.inbound i { background: var(--md-sys-color-tertiary); } .tl li.system i { background: var(--md-sys-color-success); }
.tl .h { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font: var(--md-sys-typescale-body-medium); }
.tl .h b { font: var(--md-sys-typescale-title-small); }
.tl .h time { font: var(--md-sys-typescale-body-small); font-family: var(--md-sys-typescale-mono); color: var(--md-sys-color-on-surface-variant); }
.tl details { margin-top: 6px; } .tl summary { cursor: pointer; font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-primary); }
.tl pre { font: 14px/1.55 var(--md-sys-typescale-mono); white-space: pre-wrap; background: var(--md-sys-color-surface-container-low); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-small); padding: 12px 14px; margin: 8px 0 0; }
.up { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.up li { display: grid; grid-template-columns: 1fr auto; gap: 10px; font: var(--md-sys-typescale-body-medium); align-items: start; }
.up small, .docs li span { display: block; }
.up .d { font: var(--md-sys-typescale-body-small); font-family: var(--md-sys-typescale-mono); color: var(--md-sys-color-on-surface-variant); white-space: nowrap; }
.docs { list-style: none; margin: 0 0 12px; padding: 0; font: var(--md-sys-typescale-body-medium); }
.docs li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.opts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.opts li a { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; border: 1px solid var(--md-sys-color-outline); border-radius: var(--md-sys-shape-corner-medium); text-decoration: none; color: var(--md-sys-color-on-surface); font: var(--md-sys-typescale-label-large); }
.opts li a:hover { background: color-mix(in srgb, var(--md-sys-color-primary) var(--md-sys-state-hover), transparent); border-color: var(--md-sys-color-primary); }
.seq { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.seq li { border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-small); padding: 14px 16px; }
.seq label { display: flex; gap: 12px; align-items: flex-start; font: var(--md-sys-typescale-body-medium); }
.seq input { margin-top: 3px; }
.seq details { margin: 6px 0 0 34px; } .seq summary { font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-primary); cursor: pointer; }
.pk, .props { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.props li { border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-small); padding: 12px 14px; }
main.page { max-width: 760px; margin: 24px auto; background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-medium); padding: 24px 26px; }
main.page h1 { font: var(--md-sys-typescale-headline-small); margin: 0 0 12px; }
.who { color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-body-medium); }
@media print { .tag, .flow > section.step, .tabs, .price, .example, .btns, .fine, .topline, .msg, .next, .btn, form, nav.top, footer.site, .how { display: none !important; } .flow { grid-template-columns: 1fr; } .ticket { position: static; box-shadow: none; } body { background: #fff; color: #000; } }
