/* Skylane customer app. Light theme, one accent, tabular numbers for money. */
:root {
  /* App aliases onto the shared tokens in /tokens.css (imported first in index.html). */
  --bg: var(--neutral-50); --surface: var(--neutral-0); --surface-2: var(--neutral-25); --ink: var(--neutral-900); --ink-2: var(--neutral-700); --muted: var(--neutral-500); --line: var(--neutral-200); --line-2: var(--neutral-100);
  --brand: var(--brand-600); --brand-strong: var(--brand-700); --brand-deep: var(--brand-900); --brand-soft: var(--brand-100); --brand-line: var(--brand-200);
  --good: var(--success-fg); --good-soft: var(--success-bg); --bad: var(--danger-fg); --bad-soft: var(--danger-bg); --warn: var(--warning-fg); --warn-soft: var(--warning-bg); --info: var(--info-fg); --info-soft: var(--info-bg);
  --radius: var(--r-lg); --radius-sm: var(--r-sm); --shadow: var(--e-1); --shadow-pop: var(--e-3);
  --nav-h: 60px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--t-base)/1.5 var(--font); /* 16/24, unitless so small text keeps a proportional line height */ -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.12rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
h4 { font-size: .9rem; font-weight: 600; }
p { margin: 0 0 .75em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.center { text-align: center; }
.r { text-align: right; }
.bad { color: var(--bad); }
.good, .good-text { color: var(--good); }
.warn-text { color: var(--warn); }
.big { font-size: 1.25rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plain { list-style: none; margin: 0; padding: 0; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; }
.narrow-md { max-width: 820px; }
.app { flex: 1; padding-bottom: 48px; outline: none; }
.app > .wrap:first-child:not(.search-wrap) { padding-top: 24px; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: var(--r-md); background: var(--brand); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: var(--r-md); color: var(--ink-2); font-weight: 500; font-size: .92rem; }
.nav-item:hover { background: var(--surface-2); text-decoration: none; }
.nav-item.active { color: var(--brand); background: var(--brand-soft); }
.footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .8rem; }
.footer-in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.section-h { margin: 24px 0 10px; font-size: 1rem; color: var(--ink-2); }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; margin-bottom: 10px; color: var(--muted); }
.back-link .ic { width: 16px; height: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.grid-name { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow); }
.card + .card, section.card + section.card { margin-top: 14px; }
.empty { text-align: center; padding: 40px 20px; }
.empty-ic { width: 40px; height: 40px; color: var(--brand); margin-bottom: 10px; }
.empty h1, .empty h3 { margin-bottom: 6px; }
.tbl-wrap { overflow-x: auto; margin: 0 -2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap; transition: background var(--m-fast), border-color var(--m-fast), color var(--m-fast); text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-strong); }
.btn-secondary { background: var(--surface); color: var(--brand); border-color: var(--brand-line); }
.btn-secondary:hover:not(:disabled) { background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #93201a; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .86rem; }
.btn-lg { min-height: 50px; font-size: 1rem; padding: 0 24px; }
.btn-block { width: 100%; }
.btn.is-busy { cursor: progress; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: var(--r-sm); cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-weight: 500; }
.linkish:hover { text-decoration: underline; }
.linkish:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field > .label, .label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
.input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--neutral-300); border-radius: var(--radius-sm); background: var(--surface); transition: border-color var(--m-fast), box-shadow var(--m-fast); }
.input:hover { border-color: #aeb9c4; }
.input:focus { outline: var(--focus); outline-offset: 1px; border-color: var(--brand); }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.45; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--neutral-500) 50%), linear-gradient(135deg, var(--neutral-500) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.caps { text-transform: uppercase; }
.caps::placeholder { text-transform: none; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px; gap: 2px; }
.seg-btn { border: 0; background: transparent; padding: 7px 14px; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--muted); }
.seg-btn[aria-checked="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgba(20, 32, 43, .12); }
.seg-sm .seg-btn { padding: 8px 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 6px 12px; font-size: .85rem; font-weight: 500; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.chip:hover { border-color: var(--brand-line); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }
.chip-sub { color: var(--muted); font-weight: 400; }
.tb-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin-right: 4px; }
.pill { display: inline-flex; align-items: center; border-radius: var(--r-pill); padding: 2px 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-muted { background: var(--neutral-100); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 2px 8px; }
.tag .ic { width: 14px; height: 14px; }
.tag-good { color: var(--good); background: var(--good-soft); border-color: transparent; }
.tag-warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.tag-info { color: var(--info); background: var(--info-soft); border-color: transparent; }
.tag-muted { color: var(--muted); }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: .92rem; border: 1px solid transparent; }
.alert .ic { margin-top: 2px; }
.alert-body { flex: 1; min-width: 0; }
.alert-error { background: var(--bad-soft); color: #7d1a14; border-color: var(--danger-border); }
.alert-warn { background: var(--warn-soft); color: #5e3d00; border-color: var(--warning-border); }
.alert-info { background: var(--info-soft); color: var(--brand-deep); border-color: var(--brand-line); }
.alert-good { background: var(--good-soft); color: #14553a; border-color: var(--success-border); }
.alert .btn { margin-top: 10px; }
.err-list { margin: 6px 0 0; padding-left: 18px; }
.form-err { color: var(--bad); font-size: .85rem; margin-top: 6px; }
.form-err:empty { display: none; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 40px 0; justify-content: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--brand-line); border-top-color: var(--brand); animation: spin .8s linear infinite; display: inline-block; vertical-align: -4px; }
.spinner.sm { width: 13px; height: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-md); font-size: .9rem; box-shadow: var(--shadow-pop); transition: opacity .3s, transform .3s; }
.toast-good { background: #155e3a; }
.toast.out { opacity: 0; transform: translateY(8px); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-weight: 700; flex: none; }
.avatar.lg { width: 52px; height: 52px; font-size: 1.3rem; }
.al-mark { width: 38px; height: 38px; border-radius: var(--r-md); display: grid; place-items: center; font-weight: 700; font-size: .8rem; letter-spacing: .02em; flex: none; }
.dev-hint { background: var(--warn-soft); border: 1px dashed #d9b75e; color: #5e3d00; border-radius: var(--r-md); padding: 8px 12px; font-size: .85rem; margin-bottom: 14px; }
.dev-hint code { font-family: var(--mono); font-weight: 700; letter-spacing: .15em; }

/* ---------- search ---------- */
.hero { background: var(--brand-strong); color: #fff; padding: 44px 0 92px; }
.hero h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.hero-sub { color: #cfe0ec; max-width: 620px; margin: 0; }
.search-wrap { margin-top: -64px; }
.search-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 20px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); }
.route-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: start; }
.swap { margin-top: 26px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--brand); cursor: pointer; display: grid; place-items: center; }
.swap:hover { background: var(--brand-soft); }
.ap { position: relative; }
.ap-input { font-size: 1.05rem; font-weight: 600; min-height: 50px; }
.ap-sub { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.ap-list { position: absolute; top: 76px; left: 0; right: 0; min-width: 280px; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); margin: 0; padding: 4px; list-style: none; max-height: 380px; overflow-y: auto; }
.ap-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; }
.ap-opt.active, .ap-opt:hover { background: var(--brand-soft); }
.ap-main { display: flex; flex-direction: column; min-width: 0; }
.ap-city { font-weight: 600; }
.ap-name { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iata { font-family: var(--mono); font-weight: 700; font-size: .85rem; color: var(--brand-strong); background: var(--surface); border: 1px solid var(--brand-line); border-radius: 5px; padding: 1px 6px; align-self: center; }
.ap-near { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); }
.ap-near .linkish { font-family: var(--mono); font-size: .78rem; }
.ap-empty { padding: 12px; color: var(--muted); font-size: .88rem; }
.pax { position: relative; }
.pax-btn { text-align: left; cursor: pointer; }
.pax-panel { position: absolute; top: 72px; right: 0; width: min(340px, calc(100vw - 32px)); z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 14px 16px; }
.step-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); gap: 10px; }
.step-label { font-weight: 600; }
.step-row .hint { margin: 0; }
.stepper { display: flex; align-items: center; gap: 10px; }
.step-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--brand-line); background: var(--surface); color: var(--brand); font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.step-btn:disabled { color: #b7c1ca; border-color: var(--line); cursor: not-allowed; }
.step-val { min-width: 18px; text-align: center; font-weight: 600; }
.cabin-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 4px; }
.pax-foot { display: flex; justify-content: flex-end; padding-top: 10px; }
.search-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.search-go { min-width: 220px; }
.usp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; }
.usp-item { display: flex; gap: 12px; align-items: flex-start; }
.usp-item .ic { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.usp-item strong { display: block; font-size: .92rem; }
.usp-item span { font-size: .85rem; color: var(--muted); }

/* ---------- results ---------- */
.res-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.res-route { font-size: 1.2rem; font-weight: 700; letter-spacing: .01em; }
.res-route .arrow { color: var(--muted); font-weight: 400; }
.steps { list-style: none; display: flex; gap: 8px; margin: 16px 0 0; padding: 0; flex-wrap: wrap; }
.steps li .linkish { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .88rem; }
.steps li.on .linkish { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.steps li.done .step-n { background: var(--good); color: #fff; }
.step-n { width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink-2); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.steps li.on .step-n { background: var(--brand); color: #fff; }
.picked { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; flex-wrap: wrap; border-color: var(--success-border); }
.picked-main { flex: 1; min-width: 200px; }
.leg-title { margin: 22px 0 10px; font-size: 1.1rem; }
.leg-title .muted { font-weight: 400; font-size: .92rem; }
.toolbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.toolbar .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.toolbar .chips::-webkit-scrollbar { display: none; }
.offers { display: flex; flex-direction: column; gap: 10px; }
.offers > .small { margin-bottom: 2px; }
.offer { display: grid; grid-template-columns: 190px minmax(0, 1fr) 170px; grid-template-areas: "air times price" "tags tags price" "foot foot foot" "det det det"; gap: 12px 18px; align-items: center; padding: 16px 18px; transition: border-color var(--m-fast); }
.offer:hover { border-color: var(--brand-line); }
.offer.is-selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(11, 92, 138, .15); }
.offer + .offer { margin-top: 0; }
.offer-air { grid-area: air; display: flex; gap: 10px; align-items: center; min-width: 0; }
.offer-al { font-weight: 600; font-size: .92rem; }
.offer-times { grid-area: times; display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 12px; }
.ot-end { text-align: center; }
.ot-time { font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.ot-code { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.ot-code.nearby { color: var(--warn); }
.ot-mid { text-align: center; }
.ot-line { position: relative; height: 2px; background: var(--line); margin: 5px 0; display: flex; justify-content: space-evenly; align-items: center; }
.ot-line::before, .ot-line::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 2px solid #b7c1ca; }
.ot-line::before { left: -2px; } .ot-line::after { right: -2px; }
.ot-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.plus { font-size: .7rem; color: var(--bad); font-weight: 700; margin-left: 2px; }
.offer-price { grid-area: price; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.op-total { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.deal { font-size: .76rem; color: var(--good); font-weight: 600; }
.offer-price .btn { margin-top: 4px; min-width: 110px; }
.offer-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.offer-meta { margin-left: 2px; }
.offer-foot { grid-area: foot; display: flex; justify-content: flex-start; align-items: center; border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: -2px; }
.price-note { font-weight: 600; }
.ot-code abbr { text-decoration: none; border-bottom: 1px dotted currentColor; cursor: help; }
.offer-details { grid-area: det; border-top: 1px solid var(--line-2); padding-top: 12px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.seglist { list-style: none; margin: 0; padding: 0; }
.seglist .seg { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 6px 0; }
.layover { font-size: .8rem; color: var(--warn); background: var(--warn-soft); border-radius: var(--r-sm); padding: 4px 10px; margin: 4px 0; }
.rules ul li { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; padding: 3px 0; border-bottom: 1px dashed var(--line-2); }
.rules h4 { margin-top: 0; }
.selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20, 32, 43, .08); }
.selbar-in { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.selbar-info { flex: 1; min-width: 0; }
.selbar-route { font-weight: 600; }
.selbar-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; position: relative; }
.selbar-price strong { font-size: 1.3rem; }
body.has-selbar .app { padding-bottom: 110px; }
.pb-pop summary { font-size: .8rem; color: var(--brand); cursor: pointer; list-style: none; }
.pb-pop summary::-webkit-details-marker { display: none; }
.pb-pop[open] .pb { position: absolute; bottom: 100%; right: 0; width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 12px 14px; margin-bottom: 8px; text-align: left; }
.only-mobile { display: none; }

/* ---------- price breakdown ---------- */
.pb { display: flex; flex-direction: column; gap: 2px; }
.pb-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .9rem; }
.pb-label { display: flex; flex-direction: column; }
.pb-label small, .pb-row small { color: var(--muted); font-size: .76rem; display: block; }
.pb-sub { color: var(--muted); font-size: .8rem; padding: 0 0 4px 10px; }
.pb-good { color: var(--good); }
.pb-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.1rem; }
.pb-note { font-size: .8rem; margin-top: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--good-soft); }

/* ---------- auth ---------- */
.auth { padding-top: 40px !important; }
.auth-card { padding: 28px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-head { margin-bottom: 18px; }
.auth-head h1 { font-size: 1.4rem; }
.auth-ic { width: 44px; height: 44px; border-radius: var(--r-lg); background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.auth-ic .ic { width: 24px; height: 24px; }
.otp { font-family: var(--mono); font-size: 1.5rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.auth-foot { margin-top: 16px; font-size: .88rem; text-align: center; }

/* ---------- booking ---------- */
.book h1 { margin-bottom: 6px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; margin-top: 12px; }
.book-main > * + * { margin-top: 14px; }
.book-side > * + * { margin-top: 14px; }
.sticky { position: sticky; top: 76px; }
.pax-list { display: flex; flex-direction: column; gap: 14px; }
.pax-list .card + .card { margin-top: 0; }
.pax-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pax-head h3 { margin: 0; }
.saved-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.saved-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--brand-soft); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px; }
.tform { display: flex; flex-direction: column; gap: 12px; }
.pp { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px; margin: 0; }
.pp legend { font-size: .8rem; font-weight: 600; padding: 0 6px; color: var(--ink-2); }
.pax-card .check { margin-top: 12px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.seat-panel { display: flex; flex-direction: column; gap: 12px; }
.seat-pax { flex-wrap: nowrap; overflow-x: auto; }
.seatmap-wrap { overflow: auto; background: var(--surface-2); border-radius: var(--r-lg); padding: 16px 8px; max-height: 460px; overflow-y: auto; }
.seatmap { width: max-content; margin: 0 auto; display: flex; flex-direction: column; gap: 5px; padding: 12px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 40px 40px 12px 12px; }
.seat-row { display: flex; gap: 5px; align-items: center; justify-content: center; }
.seat-head { position: sticky; top: 0; background: var(--surface); z-index: 1; padding: 4px 0; }
.row-n { width: 30px; text-align: center; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.seat-letter { width: 40px; text-align: center; font-size: .72rem; color: var(--muted); font-weight: 600; }
.aisle { width: 18px; flex: none; }
.exit-tag { font-size: .58rem; font-weight: 700; color: var(--bad); letter-spacing: .04em; }
.seat { width: 40px; height: 42px; border-radius: 8px 8px 5px 5px; border: 1px solid var(--brand-line); background: var(--surface); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; line-height: 1.05; }
.seat:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.seat-code { font-size: .64rem; color: var(--muted); font-weight: 600; }
.seat-price { font-size: .64rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.seat.free .seat-price { color: var(--good); }
.seat.exit { border-color: #e7b6b1; }
.seat.unavail { background: #e6eaee; border-color: #e6eaee; cursor: not-allowed; }
.seat.unavail .seat-code { color: #a3adb7; }
.seat.sel { background: var(--brand); border-color: var(--brand); }
.seat.sel .seat-code, .seat.sel .seat-price { color: #fff; }
.seat.taken { background: #cfe0ec; border-color: #cfe0ec; }
.seat:disabled:not(.unavail):not(.taken) { opacity: .45; cursor: not-allowed; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.seat-key { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--brand-line); background: var(--surface); display: inline-block; }
.seat-key.sel { background: var(--brand); border-color: var(--brand); }
.seat-key.unavail { background: #e6eaee; border-color: #e6eaee; }
.seat-key.exit { border-color: #e7b6b1; }
.anc-list { display: flex; flex-direction: column; gap: 16px; }
.anc-group h4 { margin-bottom: 8px; }
.anc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: center; padding: 6px 0; }
.anc-row label { font-size: .9rem; }
.trip-sum { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ts-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ts-main { display: flex; gap: 10px; align-items: center; }
.ts-main .al-mark { width: 32px; height: 32px; font-size: .72rem; }
.side-h { margin: 14px 0 6px; font-size: .95rem; }
.promo-row { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.promo-row .input { flex: 1; min-width: 120px; }
.promo-row .hint { flex-basis: 100%; margin: 0; }
.submit-err:empty { display: none; }
.book-side .btn-block { margin-top: 8px; }

/* ---------- checkout ---------- */
.co-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.co-head h1 { margin: 0; }
.timer { display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--warn-soft); color: var(--warn); font-weight: 600; font-variant-numeric: tabular-nums; }
.timer.bad { background: var(--bad-soft); color: var(--bad); }
.price-change { border-color: var(--warning-border); background: #fffbf1; margin-top: 14px; }
.pc-compare { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 12px 0; }
.pc-old { font-size: 1.1rem; color: var(--muted); }
.pc-new { font-size: 1.5rem; }
.pc-delta { font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid currentColor; font-variant-numeric: tabular-nums; }
.promo-box { margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.promo-box .promo-row { margin: 0; }
.promo-applied { display: flex; align-items: center; gap: 8px; color: var(--good); }
.promo-applied .linkish { margin-left: auto; }
.promo-err { margin-top: 6px; }

/* ---------- trip ---------- */
.trip-hero { border-radius: var(--r-lg); padding: 22px; color: #fff; background: var(--brand-strong); margin-bottom: 16px; }
.trip-hero h1 { color: #fff; margin: 4px 0 8px; font-size: 1.5rem; }
.trip-hero.tone-good { background: #165c3b; }
.trip-hero.tone-bad { background: #8f2019; }
.trip-hero.tone-muted { background: #3d4b58; }
.trip-hero .pill { background: rgba(255, 255, 255, .16); color: #fff; }
.th-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.th-kicker { opacity: .8; letter-spacing: .02em; }
.th-note { margin: 14px 0 0; opacity: .92; }
.th-note .spinner { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.pnr { text-align: right; }
.pnr .small { opacity: .8; }
.pnr-code { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; letter-spacing: .12em; background: rgba(255, 255, 255, .12); color: #fff; border: 1px dashed rgba(255, 255, 255, .5); border-radius: var(--r-md); padding: 4px 12px; cursor: copy; }
.progress { list-style: none; display: flex; gap: 0; padding: 0; margin: 18px 0 0; max-width: 460px; }
.progress li { flex: 1; position: relative; font-size: .8rem; padding-top: 18px; opacity: .7; }
.progress li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, .3); }
.progress li .dot { position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.progress li.done, .progress li.now { opacity: 1; }
.progress li.done::before { background: #fff; }
.progress li.done .dot { background: #fff; }
.progress li.now .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, .08); } }
.itin { display: flex; flex-direction: column; gap: 18px; }
.itin-j.is-cancelled { opacity: .6; }
.itin-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.itin-seg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 10px 0; }
.is-times { display: grid; grid-template-columns: auto minmax(50px, 1fr) auto; gap: 12px; align-items: center; }
.is-times > div:last-child { text-align: right; }
.is-mid { text-align: center; }
.is-meta { grid-column: 2; }
.itin-bag { display: flex; align-items: center; gap: 6px; }
.itin .layover { margin-left: 52px; }
.pax-table { display: flex; flex-direction: column; }
.pax-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.pax-line:last-child { border-bottom: 0; }
.pax-lines { display: flex; flex-direction: column; gap: 2px; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.sc-card { border-color: var(--warning-border); background: #fffbf1; margin-bottom: 16px; }
.sc-card h2 { display: flex; align-items: center; gap: 6px; color: var(--warn); }
.sc-segs { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.flow { border-color: var(--brand-line); }
.flow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.flow-head h2 { margin: 0; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input { margin-top: 3px; accent-color: var(--brand); }
.pick-list { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-md); margin-bottom: 8px; }
.badge-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.flow .pb { margin-top: 12px; max-width: 420px; margin-left: auto; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { min-width: 180px; }
.opt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.opt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); }

/* ---------- trips, travellers, help, profile ---------- */
.trip-list, .trav-list, .case-list { display: flex; flex-direction: column; gap: 10px; }
.trip-list .card + .card, .trav-list .card + .card, .case-list .card + .card { margin-top: 0; }
.trip-card, .case-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: inherit; }
.trip-card:hover, .case-card:hover { text-decoration: none; border-color: var(--brand-line); }
.tc-route { font-size: 1.1rem; font-weight: 700; }
.tc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.tc-side .ic { color: var(--muted); }
.trav-main { display: flex; align-items: center; gap: 12px; }
.trav-main > div:nth-child(2) { flex: 1; min-width: 0; }
.trav-actions { display: flex; gap: 6px; }
.confirm-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 10px; background: var(--bad-soft); border-radius: var(--r-md); }
.help-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.help-tiles .card + .card { margin-top: 0; }
.tile { display: flex; gap: 12px; align-items: flex-start; color: inherit; }
.tile:hover { text-decoration: none; border-color: var(--brand-line); }
.tile .ic { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }
.thread { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: var(--r-lg); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--brand-soft); border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-meta { color: var(--muted); margin-bottom: 4px; font-size: .75rem; }
.reply textarea { margin-bottom: 4px; }
.acct { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.switches { display: flex; flex-direction: column; margin: 8px 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.switch { appearance: none; width: 44px; height: 26px; border-radius: var(--r-pill); background: var(--neutral-300); position: relative; cursor: pointer; flex: none; transition: background var(--m-fast); margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform var(--m-fast); }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(18px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .offer { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "air price" "times price" "tags tags" "foot foot" "det det"; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  .topbar-in { height: 54px; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 4px 4px env(safe-area-inset-bottom); justify-content: space-around; gap: 0; }
  .nav-item { flex-direction: column; gap: 2px; font-size: .7rem; padding: 6px 4px; flex: 1; justify-content: center; border-radius: var(--r-lg); }
  .nav-item .ic { width: 20px; height: 20px; }
  .nav-item.active { background: transparent; }
  .footer { display: none; }
  .selbar { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  /* Funnel pages (results with a selection bar, book, checkout): no tab bar, so ~64 px less fixed chrome. */
  body.has-selbar .nav, body.funnel .nav { display: none; }
  body.has-selbar, body.funnel { padding-bottom: 0; }
  body.has-selbar .selbar, body.funnel .selbar { bottom: 0; }
  body.has-selbar .selbar-in, body.funnel .selbar-in { padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .only-mobile { display: block; }
  body.has-selbar .app { padding-bottom: 96px; }
  .hero { padding: 26px 0 76px; }
  .hero h1 { font-size: 1.45rem; }
  .hero-sub { font-size: .9rem; }
  .search-card { padding: 16px; gap: 14px; }
  .route-row { grid-template-columns: minmax(0, 1fr); gap: 4px; position: relative; }
  .swap { position: absolute; right: 10px; top: 62px; margin: 0; z-index: 2; width: 38px; height: 38px; transform: rotate(90deg); }
  .grid-3, .grid-2, .grid-name { grid-template-columns: minmax(0, 1fr); }
  .grid-name { grid-template-columns: 100px minmax(0, 1fr); }
  .grid-name > :last-child { grid-column: 1 / -1; }
  .search-go { width: 100%; min-width: 0; }
  .usp { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ap-list { top: 74px; }
  .pax-panel { left: 0; right: auto; }
  h1 { font-size: 1.35rem; }
  .card { padding: 14px; }
  .offer { grid-template-columns: minmax(0, 1fr); grid-template-areas: "air" "times" "tags" "price" "foot" "det"; gap: 10px; padding: 14px; }
  .offer-price { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line-2); padding-top: 10px; gap: 6px 10px; }
  .offer-price .op-total { margin-right: auto; order: -1; }
  .offer-price s { order: -2; }
  .offer-price .btn { margin: 0; }
  .offer-details { grid-template-columns: minmax(0, 1fr); }
  .ot-time { font-size: 1.15rem; }
  .selbar-in { gap: 10px; }
  .selbar-price strong { font-size: 1.1rem; }
  .pb-pop[open] .pb, .pb-pop[open] .pb-host { position: fixed; left: 16px; right: 16px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e-3); padding: 12px 14px; z-index: 36; }
  .pb-pop[open] .pb-host .pb { position: static; border: 0; box-shadow: none; padding: 0; max-height: none; }
  .book-side .sticky > .submit-main { display: none; }
  .help-tiles { grid-template-columns: minmax(0, 1fr); }
  .pax-line { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .anc-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .opt-row { grid-template-columns: minmax(0, 1fr) auto; }
  .opt-row > .r { grid-column: 1; text-align: left; }
  .opt-row > .btn { grid-row: 1 / span 2; grid-column: 2; }
  .trip-hero { padding: 18px; }
  .pnr { text-align: left; }
  .pnr-code { font-size: 1.35rem; }
  .msg { max-width: 92%; }
  .seat, .seat-letter { width: 36px; }
  .seat { height: 40px; }
  .aisle { width: 12px; }
  .row-n { width: 24px; }
  .trav-main { flex-wrap: wrap; }
  .trav-actions { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.search-card > .seg { align-self: flex-start; }
@media (max-width: 720px) { .search-foot .check small { display: none; } }
@media (max-width: 720px) { #toasts { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); } body.has-selbar #toasts, body.funnel #toasts { bottom: calc(96px + env(safe-area-inset-bottom)); } }
/* ---------- parity additions ---------- */
.special { display: flex; flex-direction: column; gap: 4px; }
.special .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.special .chips::-webkit-scrollbar { display: none; }
.search-opts { display: flex; flex-direction: column; gap: 8px; }
.tag-work { color: #5b3b00; background: #f6ecd6; border-color: transparent; }
.op-total .from { font-size: .75rem; font-weight: 500; color: var(--muted); }
.offer-price .price-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.offer.has-dual { grid-template-columns: 190px minmax(0, 1fr) 300px; }
.offer.has-dual .offer-price { flex-direction: row; align-items: stretch; gap: 10px; }
.offer.has-dual .price-col { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); }
.work-col { background: #fbf6ea; border-color: #ecdcb6 !important; }
.work-label { font-weight: 600; color: #5b3b00; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(15, 25, 35, .45); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { background: var(--surface); border-radius: var(--r-lg); width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-pop); outline: none; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.sheet-head h2 { margin-bottom: 4px; }
.fare-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.fare-opt { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fare-opt.is-work { background: #fffcf4; border-color: #ecdcb6; }
.fo-head strong { margin-right: 6px; }
.fo-head .tag { margin-right: 4px; }
.svc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; flex: 1; }
.svc li { display: flex; gap: 6px; align-items: flex-start; }
.svc .ic { width: 15px; height: 15px; margin-top: 2px; }
.svc .inc .ic { color: var(--good); }
.svc .exc { color: var(--muted); }
.svc .exc .ic { color: #b7c1ca; }
.fo-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 10px; }
@media (max-width: 960px) { .offer.has-dual { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 720px) {
  .offer.has-dual { grid-template-columns: minmax(0, 1fr); }
  .offer-price .price-col { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; width: 100%; }
  .offer-price .price-col .op-total { margin-right: auto; order: -1; }
  .offer.has-dual .offer-price { flex-direction: column; }
  .sheet-wrap { align-items: flex-end; padding: 0; }
  .sheet { border-radius: 14px 14px 0 0; max-height: 88vh; }
  .fare-opts { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 20px; }
}
.docs { margin-top: 12px; }
.prot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.prot { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; cursor: pointer; }
.prot:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.prot.is-off { cursor: default; background: var(--surface-2); }
.prot-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.prot-head input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.prot-price { text-align: right; }
.toast-bad { background: #8f2019; }
.doc-list { display: flex; flex-direction: column; margin-top: 10px; }
.doc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.checkin { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); }
.checkin-open { background: var(--good-soft); border-color: var(--success-border); }
body.sheet-open { overflow: hidden; }

/* ---------- design audit 2026-10-11 (W items) ---------- */
.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; }
/* W3: field-level errors */
.field-err { display: flex; gap: 6px; align-items: flex-start; color: var(--danger-fg); font-size: var(--t-sm); line-height: var(--t-sm-lh); font-weight: 500; }
.field-err .ic { width: 15px; height: 15px; margin-top: 1px; }
.input[aria-invalid="true"], .input[aria-invalid="true"]:hover { border-color: var(--danger-600); box-shadow: 0 0 0 3px var(--danger-100); }
.input[aria-invalid="true"]:focus { outline-color: var(--danger-600); }
.seg[aria-invalid="true"] { border-color: var(--danger-600); box-shadow: 0 0 0 3px var(--danger-100); }
.err-summary { margin: 0 0 14px; }
.err-summary:focus { outline: var(--focus); outline-offset: var(--focus-offset); }
.err-summary .err-list a { color: inherit; text-decoration: underline; }
.submit-err:empty { display: none; }
/* W10: card header with an action */
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-head h2 { margin-bottom: .5em; }
.rules-sum { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.rules-sum h3 { font-size: .95rem; margin-bottom: 6px; }
.rules-sum li { padding: 2px 0; }
.rs-j + .rs-j { margin-top: 8px; }
/* W2 */
.refund-pb { max-width: 460px; margin: 12px 0 4px auto; }
/* W8: compact trip card above travellers on mobile */
.trip-mini { padding: 0; }
.trip-mini > summary { display: flex; flex-direction: column; gap: 2px; padding: 12px 40px 12px 14px; cursor: pointer; list-style: none; position: relative; }
.trip-mini > summary::-webkit-details-marker { display: none; }
.trip-mini > summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform var(--m-fast) var(--m-ease); }
.trip-mini[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.trip-mini > .trip-sum { padding: 0 14px 14px; border-bottom: 0; }
.selbar-price-l { position: relative; }
.selbar-price-l .pb-pop summary { margin-top: 2px; }
/* W11: trip page order on narrow screens, stacked tables */
@media (max-width: 960px) {
  .trip-grid { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .trip-grid > .book-main, .trip-grid > .book-side { display: contents; }
  .trip-grid .card + .card, .trip-grid > * > * + * { margin-top: 0; }
  .trip-grid .o-docs { order: 1; } .trip-grid .o-manage { order: 2; } .trip-grid .o-panel { order: 3; } .trip-grid .o-itin { order: 4; } .trip-grid .o-trav { order: 5; }
  .trip-grid .o-extras { order: 6; } .trip-grid .o-addons { order: 7; } .trip-grid .o-pay { order: 8; } .trip-grid .o-activity { order: 9; }
}
@media (max-width: 720px) {
  .tbl-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl-stack, .tbl-stack tbody, .tbl-stack tr, .tbl-stack td { display: block; width: 100%; }
  .tbl-stack tr { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
  .tbl-stack tr:last-child { border-bottom: 0; }
  .tbl-stack td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .tbl-stack td.r { text-align: right; }
  .tbl-stack td::before { content: attr(data-label); color: var(--muted); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .03em; text-align: left; font-weight: 600; padding-top: 2px; }
  .hide-mobile { display: none !important; }
  .book .trip-mini { display: block; }
}
/* W12: search error above the button */
.search-foot .search-err { flex-basis: 100%; order: -1; }
.search-err:empty { display: none; }
.search-err .alert { margin: 0; }
.search-err .alert:focus { outline: var(--focus); outline-offset: var(--focus-offset); }
/* W14: one date row, fare type in the travellers popover, recent searches */
.date-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px 16px; }
.fare-type { padding: 12px 0 4px; border-top: 1px solid var(--line-2); margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.fare-type .chips { flex-wrap: wrap; }
.recent { margin-top: 16px; }
.recent h2 { margin: 0 0 8px; }
.recent .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.recent-chip { background: var(--surface); }
/* W15: results layout, sticky toolbar, filters */
.res-layout { position: relative; }
.toolbar { position: sticky; top: 60px; z-index: 20; background: var(--bg); padding: 8px 16px 10px; margin: 0 -16px 8px; }
.sortbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.filters { display: flex; align-items: center; gap: 6px 14px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; }
.filters::-webkit-scrollbar, .sortbar::-webkit-scrollbar { display: none; }
.f-head { display: none; }
.fgroup { display: flex; align-items: center; gap: 6px; border: 0; margin: 0; padding: 0; flex: none; }
.fgroup legend { float: left; padding: 0; margin-right: 2px; }
.fchip { position: relative; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); min-height: 32px; padding: 4px 12px; font-size: .85rem; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fchip:hover { border-color: var(--brand-line); }
.fchip:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }
.fchip:has(input:focus-visible) { outline: var(--focus); outline-offset: var(--focus-offset); }
.fchip-sub { color: var(--muted); font-weight: 400; font-size: .8rem; }
.fchip-price { display: none; }
.err-summary, .search-err .alert, .input, .seg, .card { scroll-margin-top: 76px; }
@media (min-width: 1200px) {
  .res-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "rail sort" "rail list"; gap: 8px 20px; align-items: start; }
  .res-layout > .toolbar { display: contents; }
  .sortbar { grid-area: sort; position: sticky; top: 60px; z-index: 20; background: var(--bg); padding: 8px 0; }
  .res-layout > .offers, .res-layout > .empty { grid-area: list; }
  .filters { grid-area: rail; position: sticky; top: 76px; flex-direction: column; align-items: stretch; gap: 14px; margin: 0; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
  .f-head { display: flex; justify-content: space-between; align-items: baseline; }
  .f-title { font-weight: 600; }
  .fgroup { flex-direction: column; align-items: stretch; gap: 2px; }
  .fgroup legend { float: none; margin-bottom: 4px; }
  .fchip { border: 0; background: none; border-radius: var(--r-sm); padding: 6px 4px; min-height: 36px; white-space: normal; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0 10px; align-items: center; }
  .fchip-sub { grid-column: 2; }
  .fchip-price { display: inline !important; }
  .fchip input { position: static; opacity: 1; width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
  .fchip:has(input:checked) { background: none; color: var(--ink); }
  .fchip:hover { background: var(--surface-2); }
  .fchip:has(input:focus-visible) { outline: none; }
  .fchip input:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
  .fchip-sub { font-size: .78rem; }
}
/* W16 */
.case-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.sheet-sub { margin-top: 4px; }
@media (max-width: 720px) {
  .toolbar { top: 54px; }
  .date-row { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .search-foot .search-err { order: 0; }
  .search-foot .search-go { order: 1; }
  .case-status { align-items: flex-start; text-align: left; }
}
