@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url(/sya/fonts/geist-400-v1.woff2) format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+20AC, U+20B9, U+2122, U+2190-2194, U+2212; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url(/sya/fonts/geist-500-v1.woff2) format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+20AC, U+20B9, U+2122, U+2190-2194, U+2212; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url(/sya/fonts/geist-600-v1.woff2) format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+20AC, U+20B9, U+2122, U+2190-2194, U+2212; }
:root {
  --gray-1: #fdfcfd; --gray-2: #faf9fb; --gray-3: #f2eff3; --gray-4: #eae7ec; --gray-5: #e3dfe6; --gray-6: #dbd8e0;
  --gray-7: #d0cdd7; --gray-8: #bcbac7; --gray-9: #8e8c99; --gray-10: #84828e; --gray-11: #65636d; --gray-12: #211f26;
  --bg: var(--gray-2); --surface: #ffffff; --surface-2: var(--gray-3); --surface-3: var(--gray-4);
  --border: rgba(33, 31, 38, 0.11); --border-strong: rgba(33, 31, 38, 0.2);
  --text: var(--gray-12); --text-2: var(--gray-11); --text-3: #75737f;
  --accent: #3A1FB8; --accent-solid: #3A1FB8; --accent-hover: #2E1899; --accent-text: #3A1FB8; --accent-subtle: #EFECFC;
  --green-subtle: #e6f6eb; --green-text: #18794e; --amber-subtle: #fff4c4; --amber-text: #9a5b00;
  --red-subtle: #feebec; --red-text: #ce2c31;
  --shadow-float: 0 0 0 1px var(--border), 0 10px 28px -8px rgba(17, 16, 24, 0.18);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-title: 600 24px/32px var(--font); --text-heading: 600 16px/24px var(--font);
  --text-body: 400 14px/20px var(--font); --text-label: 500 13px/18px var(--font); --text-caption: 500 12px/16px var(--font);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 12px;
  --ease: cubic-bezier(0.2, 0, 0, 1); --fast: 150ms; --medium: 200ms; --slow: 250ms;

  --rule: var(--border); --rule-2: var(--border-strong);
  --accent-deep: var(--accent-hover); --accent-soft: #6D55F2; --accent-wash: var(--accent-subtle);
  --ok: var(--green-text); --ok-wash: var(--green-subtle); --warn: var(--amber-text); --warn-wash: var(--amber-subtle);
  --bad: var(--red-text); --bad-wash: var(--red-subtle); --paid: var(--accent-text); --paid-wash: var(--accent-subtle);
  --pink: #FF3D8B; --orange: #FF6A2B; --yellow: #FFD23F; --cyan: #2CE6FF; --lime: #B8F25B;
  --grad-brand: var(--accent-solid); --grad-hero: var(--surface-2);
  --shadow: none; --shadow-lift: var(--shadow-float);
  --cmd-bg: var(--gray-12); --cmd-text: var(--gray-2);
  --display: var(--font); --serif: var(--font); --mono: var(--font);
  --out: var(--ease); --radius: var(--r-md); --radius-sm: var(--r-sm);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --gray-1: #121113; --gray-2: #1a191b; --gray-3: #232225; --gray-4: #2b292d; --gray-5: #323035; --gray-6: #3c393f;
    --gray-7: #49474e; --gray-8: #625f69; --gray-9: #6f6d78; --gray-10: #7c7a85; --gray-11: #b5b2bc; --gray-12: #eeeef0;
    --bg: var(--gray-1); --surface: var(--gray-2); --surface-2: var(--gray-3); --surface-3: var(--gray-4);
    --border: rgba(238, 238, 240, 0.1); --border-strong: rgba(238, 238, 240, 0.18);
    --text-3: #8e8c99;
    --accent: #A897FF; --accent-text: #B9AAFF; --accent-subtle: rgba(168, 151, 255, 0.14);
    --green-subtle: #132d21; --green-text: #3dd68c; --amber-subtle: #302008; --amber-text: #ffca16;
    --red-subtle: #3b1219; --red-text: #ff9592;
    --shadow-float: 0 0 0 1px var(--border), 0 14px 32px -8px rgba(0, 0, 0, 0.7);
    --cmd-bg: #0b0a0c; --cmd-text: var(--gray-12);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  background: radial-gradient(1100px 520px at 100% -10%, var(--glow-1), transparent 62%), radial-gradient(900px 480px at -12% -8%, var(--glow-2), transparent 60%), var(--bg);
  background-repeat: no-repeat;
  font: 400 16px/1.55 var(--display); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.app { background: var(--bg); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--rule-2); }
a:hover { text-decoration-color: var(--accent); color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--surface); }
.mono, code { font-family: var(--mono); font-size: 0.86em; }
code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); overflow-wrap: anywhere; }
pre { margin: 10px 0 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); font: 400 13px/1.6 var(--mono); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.muted { color: var(--text-2); }
.hint { color: var(--text-3); font-size: 14px; margin: 8px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--rule); }
header.site .inner, main, footer.site { max-width: 1100px; margin: 0 auto; padding-inline: 24px; }
header.site .inner { display: flex; align-items: center; gap: 30px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 6px 16px -8px rgba(58, 31, 184, 0.8); }
.brand em { margin-left: -3px; font: 400 17px var(--display); letter-spacing: -0.01em; color: var(--text-3); }
.brand:hover { color: var(--text); }
nav.primary { display: flex; gap: 6px; flex: 1; }
nav.primary a { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; transition: background .15s, color .15s; }
nav.primary a:hover { color: var(--text); background: var(--accent-wash); }
nav.primary a[aria-current="page"] { color: var(--accent); background: var(--accent-wash); }
.account { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 14px; color: var(--text-3); }
.account form { margin: 0; }
main { padding-block: 34px 84px; }
footer.site { padding-block: 26px 44px; color: var(--text-3); font-size: 14px; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
footer.site a { color: var(--text-2); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

h1 { margin: 0 0 12px; font-weight: 600; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
h2 { margin: 0 0 14px; font-weight: 600; font-size: 20px; letter-spacing: -0.015em; text-wrap: balance; }
h3 { margin: 22px 0 8px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.lede { max-width: 60ch; color: var(--text-2); font-size: 18px; margin: 0 0 32px; }

.card { background: var(--surface); border-radius: var(--radius); padding: 26px; border: 1px solid var(--rule); box-shadow: var(--shadow); margin-bottom: 22px; min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 52px 0 16px; }
.section-title h2 { margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }

label { display: block; margin: 18px 0 7px; font-weight: 600; font-size: 14.5px; }
label .hint { display: inline; margin: 0 0 0 6px; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--rule-2); border-radius: var(--radius-sm);
  font: 500 16px var(--display); color: var(--text); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
input[readonly] { color: var(--text-2); background: var(--surface-2); }
textarea { min-height: 140px; line-height: 1.5; resize: vertical; }
input.code-input { font: 600 30px/1 var(--mono); letter-spacing: 0.32em; text-align: center; padding-inline: 8px; }
input.code-input::placeholder { opacity: .35; letter-spacing: .04em; font-size: 18px; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }

button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 12px; color: #fff; background: #3A1FB8;
  box-shadow: 0 1px 2px rgba(23, 22, 30, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font: 600 15px var(--display); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, color .15s;
}
button:hover, .button:hover { color: #fff; background: #2A1590; text-decoration: none; }
button:active, .button:active { transform: translateY(1px); }
button[disabled] { cursor: default; filter: grayscale(.5) opacity(.55); transform: none; }
button.secondary, .button.secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--rule-2); }
button.secondary:hover, .button.secondary:hover { background: var(--surface-2); color: var(--text); filter: none; }
button.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 40%, transparent); }
button.danger:hover { background: var(--bad-wash); color: var(--bad); filter: none; }
button.small, .button.small { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
button.link { min-height: 0; padding: 0; border: 0; box-shadow: none; background: none; color: var(--text-2); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
button.link:hover { color: var(--accent); background: none; filter: none; transform: none; }
.button .logo, button .logo { margin-left: -8px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.actions a:not(.button) { color: var(--text-2); }
.actions.tight { margin-top: 0; }

.notice { padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-weight: 550; border: 1px solid transparent; }
.notice.ok { background: var(--ok-wash); color: var(--ok); }
.notice.warn { background: var(--warn-wash); color: var(--warn); }
.notice.bad { background: var(--bad-wash); color: var(--bad); }

.badge { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 4px 11px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--text-2); background: var(--surface-2); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-wash); }
.badge.warn, .badge.awaiting { color: var(--warn); background: var(--warn-wash); }
.badge.held { color: var(--warn); background: var(--warn-wash); }
.badge.held::before { animation: hold-pulse 1.6s ease-in-out infinite; }
.badge.paid { color: var(--paid); background: var(--paid-wash); }
.badge.bad { color: var(--bad); background: var(--bad-wash); }
.badge.expired { color: var(--text-3); background: var(--surface-2); }

.logo { position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 7px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(22, 15, 51, 0.1), 0 6px 14px -10px rgba(22, 15, 51, 0.45); }
.logo img, .logo svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo.own { padding: 0; background: none; box-shadow: none; border-radius: 11px; }
.logo.own img { border-radius: inherit; }
.logo.own img[src*="/vscode-"], .logo.own img[src*="/hermes-"] { width: 80%; height: 80%; margin: auto; border-radius: 22%; }
.logo-sm { width: 26px; height: 26px; padding: 4px; border-radius: 8px; }
.logo-sm.own { border-radius: 7px; }
.logo-lg { width: 48px; height: 48px; padding: 9px; border-radius: 14px; }
.logo-lg.own { border-radius: 13px; }
.logo-xl { width: 60px; height: 60px; padding: 11px; border-radius: 17px; }
.logo-xl.own { border-radius: 16px; }
.logo-app { color: var(--text); background: var(--surface-2); font: 750 20px/1 var(--display); }
.logo-sm.logo-app { font-size: 13px; }
.logo-xl.logo-app { font-size: 26px; }
.logo-other { color: #fff; background: var(--grad-brand); box-shadow: 0 8px 18px -10px rgba(58, 31, 184, 0.9); }
.av { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; font: 700 13px/1 var(--display); font-style: normal; color: var(--text); background: var(--surface-2); border: 1px solid var(--rule); }

.oauth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.oauth-link { width: 44px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent-soft) 0 6px, transparent 6px 11px); }
.oauth-scopes { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; }
.oauth-scopes li { position: relative; padding-left: 28px; color: var(--text-2); }
.oauth-scopes li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 10px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.oauth-unverified { vertical-align: middle; letter-spacing: 0; }
.oauth-warn { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-wash); color: var(--warn); font-size: 14.5px; font-weight: 550; }

.picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker legend { padding: 0; font-weight: 650; font-size: 14.5px; margin-bottom: 2px; }
.picker-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.picker-group > span { flex-basis: 100%; color: var(--text-3); font-size: 13.5px; }
.picker label { position: relative; margin: 0; font-weight: 600; }
.picker input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.picker label > span { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 6px 16px 6px 8px; border-radius: 999px; font-size: 15px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule-2); transition: box-shadow .15s, background .15s; }
.picker input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-wash); }
.picker input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.agents { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.agent-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 18px 18px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); min-width: 0; }
.agent-card .logo { grid-row: span 2; }
.agent-card h3 { margin: 0; font-size: 17.5px; font-weight: 720; overflow-wrap: anywhere; }
.agent-card .agent-meta { color: var(--text-3); font-size: 13.5px; }
.agent-card .agent-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rule-2); }
.agent-card .agent-key { font: 500 12px var(--mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-card form { margin: 0; flex: none; }
.confirm { flex: none; text-align: right; }
.confirm > summary { list-style: none; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--rule-2); }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm > summary:hover, .confirm[open] > summary { color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-wash); }
.confirm[open] { flex: 1 1 100%; }
.confirm form { display: grid; justify-items: end; gap: 10px; margin-top: 12px; }
.confirm form p { margin: 0; color: var(--text-2); font-size: 14px; text-align: left; justify-self: stretch; }
.agent-card .agent-foot { flex-wrap: wrap; }
.agent-card .agent-foot .confirm button { color: #fff; background: var(--bad); box-shadow: none; }
.agent-card .agent-foot .confirm button:hover { color: #fff; background: var(--bad); filter: brightness(1.08); }
.agent-card .agent-foot button { min-height: 36px; padding: 6px 14px; font-size: 13.5px; background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--rule-2); }
.agent-card .agent-foot button:hover { color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-wash); filter: none; }
.agent-card.recent::after { content: ""; position: absolute; top: 18px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-wash); }
.agent-card.issued { max-width: 560px; margin-bottom: 22px; }
.empty-pass { display: grid; place-items: center; min-height: 120px; padding: 24px; border-radius: var(--radius); text-align: center; color: var(--text-2); border: 1.5px dashed var(--rule-2); }
.revoked { margin-top: 18px; color: var(--text-2); }
.revoked summary { cursor: pointer; font-weight: 600; }
.revoked ul { margin: 10px 0 0; padding-left: 20px; }

.secret { display: flex; gap: 8px; align-items: stretch; }
.secret input { font: 500 14px var(--mono); min-width: 0; }
.secret button { flex: none; }

.tickets { list-style: none; margin: 0; padding: 0; }
.ticket { display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ticket:first-child { padding-top: 4px; }
.ticket:last-child { border-bottom: 0; padding-bottom: 4px; }
.ticket-route { font-weight: 780; font-size: clamp(22px, 3vw, 28px); font-stretch: 82%; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.ticket-meta { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.ticket-meta .mono { color: var(--text-3); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--text-2); font-size: 14.5px; font-weight: 550; text-decoration: none; }
.back::before { content: "←"; }

.hold { display: inline-flex; align-items: center; gap: 7px; font: 600 13px var(--display); color: var(--warn); font-variant-numeric: tabular-nums; }
.hold.over { color: var(--text-3); }
@keyframes hold-pulse { 50% { opacity: .3; } }

dl.kv { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 12px 20px; margin: 0; }
dl.kv dt { color: var(--text-2); font-size: 14.5px; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--text-3); font-weight: 600; font-size: 13px; }
.block { margin-top: 18px; }
.block .block { padding-left: 14px; border-left: 1px solid var(--rule); }
.block h3 { margin-top: 0; }
details summary { cursor: pointer; font-weight: 600; }

.guide-group { margin-top: 36px; }
.guide-group > p { color: var(--text-2); max-width: 60ch; }
.guide { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
.guide h3 { margin-top: 10px; }
.guide ol { padding-left: 20px; }
.guide li { margin-bottom: 8px; }

.sheet-wrap { min-height: calc(100vh - 230px); display: grid; place-items: center; padding-block: 12px; }
.sheet { position: relative; width: 100%; max-width: 500px; padding: 36px 32px 30px; border-radius: 26px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-lift); overflow: hidden; }
.sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #3A1FB8, #FF3D8B 60%, #FF6A2B); }
.sheet h1 { font-size: clamp(30px, 6vw, 38px); }
.sheet h2 { font-size: 19px; margin-top: 30px; }
.sheet .actions + h2 { margin-top: 34px; }
.sheet .lede { font-size: 16.5px; margin-bottom: 22px; }
.inline-sign-in-title { margin: 8px 0 6px; font-size: 18px; }
.inline-sign-in-title + p { margin: 0 0 18px; color: var(--text-2); }
.sheet .actions button { flex: 1 1 auto; }
.sheet-foot { margin: 22px 0 0; font-size: 14.5px; color: var(--text-2); }
.sheet-summary { margin: 0 0 20px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface-2); }
.sheet-summary .ticket-route { font-size: 26px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50; max-width: calc(100vw - 32px); padding: 12px 22px; border-radius: 999px; color: var(--bg); background: var(--text); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6); font-weight: 650; font-size: 15px; text-align: center; transform: translateX(-50%); animation: toast-in .4s var(--out) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }
button.copied { background: var(--ok); box-shadow: none; color: #fff; }

.faq { display: grid; gap: 10px; margin: 0 0 22px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--rule); padding: 0 18px; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font-weight: 700; transition: transform .2s var(--out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--text-2); }
.sheet .faq details { background: var(--surface-2); border-color: transparent; }

@media (max-width: 680px) {
  body { font-size: 16px; }
  header.site .inner, main, footer.site { padding-inline: 16px; }
  main { padding-block: 20px 60px; }
  .ticket { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 10px; }
  .sheet { padding: 30px 20px 24px; border-radius: 22px; }
  .sheet .actions > * { flex: 1 1 100%; }
  .account > span { display: none; }
  header.site .inner { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 10px; }
  header.site .account { margin-left: auto; }
  nav.primary { flex-basis: 100%; order: 3; gap: 4px; margin: 6px -6px 6px; overflow-x: auto; scrollbar-width: none; }
  nav.primary a { min-height: 44px; flex: none; }
  button.small, .button.small { min-height: 44px; }
  footer.site a { padding-block: 10px; }
  .lede { font-size: 17px; margin-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

body.auth-body { background: var(--bg); }
body.auth-body main { padding: 0; max-width: none; }
body.auth-body header.site .inner { max-width: none; padding-inline: clamp(16px, 6vw, 88px); }
body.auth-body footer.site { display: none; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: calc(100vh - 67px); }
.auth-board { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 56px clamp(28px, 5vw, 64px); color: #E8EBF0; overflow: hidden; background: var(--grad-hero); }
.auth-board .board-title { font: 500 13px var(--mono); color: rgba(255,255,255,.72); display: flex; justify-content: space-between; gap: 12px; }
.orb, .auth-orb { position: relative; display: block; flex: none; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff 0 7%, #FFE0F0 13%, #FF8AC4 30%, #9A6BFF 60%, #3A1FB8 100%);
  box-shadow: inset -10px -16px 28px rgba(30,0,90,.5), inset 6px 8px 18px rgba(255,255,255,.35), 0 24px 48px -16px rgba(255,61,139,.85); }
.auth-orb { margin: 34px 0 22px; }
.orb-visor, .auth-visor { position: absolute; left: 17%; right: 17%; top: 34%; height: 33%; display: flex; align-items: center; justify-content: center; gap: 20%; border-radius: 44% / 52%; background: linear-gradient(180deg, #221453, #0B0620); }
.orb-visor i, .auth-visor i { width: 13%; height: 46%; border-radius: 999px; background: #2CE6FF; box-shadow: 0 0 8px #2CE6FF; }
@media (prefers-reduced-motion: no-preference) {
  .orb, .auth-orb { animation: authBob 7s ease-in-out infinite; }
  .orb-visor i, .auth-visor i { animation: authBlink 5.2s infinite; }
  @keyframes authBob { 50% { transform: translateY(-4px); } }
  @keyframes authBlink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
}
.auth-board h2 { margin: 0; font-weight: 740; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.04; letter-spacing: -0.035em; max-width: 16ch; color: #F4F5F7; }
.auth-board h2 em { font: italic 400 1.08em var(--serif); color: var(--yellow); letter-spacing: -0.01em; }
.auth-board p { color: rgba(255,255,255,.8); max-width: 44ch; margin: 14px 0 0; }
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.works > span { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-right: 4px; }
.works .logo { box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); }
.board { display: grid; gap: 1px; background: rgba(232, 235, 240, 0.08); border-radius: 14px; overflow: hidden; font-family: var(--mono); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.board-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 84px 92px; gap: 10px; align-items: center; padding: 11px 14px; background: #0C0C11; font-size: 13px; color: #FFD23F; }
.board-row.head { color: rgba(255,255,255,.45); font-size: 11.5px; background: #0A0A0E; }
.board-row b { font: 700 15px var(--display); font-stretch: 78%; letter-spacing: .02em; color: #FFD23F; }
.board-row .st { justify-self: end; color: #FF8A4C; }
.board-row .st.ok { color: #B8F25B; }
.board-tag { padding: 1px 8px; border-radius: 6px; color: #160F33; background: rgba(255,255,255,.72); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.flap { display: inline-block; animation: flap .7s var(--out) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes flap { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-pane { display: grid; align-content: center; justify-items: center; padding: 56px clamp(20px, 6vw, 88px); min-width: 0; }
.auth-form { width: 100%; max-width: 420px; min-width: 0; }
.auth-form h1 { font-size: clamp(32px, 4vw, 44px); }
.auth-form .lede { font-size: 16.5px; margin-bottom: 24px; }
.auth-form .actions { margin-top: 16px; }
.auth-form .actions button, .auth-form .actions .button { flex: 1 1 auto; }
.auth-pair { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0 4px; color: var(--text-3); font-size: 13.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.google-slot { display: flex; justify-content: center; min-height: 44px; margin-top: 14px; max-width: 100%; overflow: hidden; color-scheme: light; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile iframe { margin-top: 12px; }
.legal { margin: 18px 0 0; color: var(--text-3); font-size: 13.5px; }
.auth-foot { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--text-2); font-size: 14.5px; }
.code-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 16px; color: var(--text-3); font-size: 14px; }
.code-help form { margin: 0; }
.code-help button.link { font-size: 14px; }
.code-help button.link[disabled] { text-decoration: none; color: var(--text-3); filter: none; }
.mail-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.wa-confirm { display: grid; gap: 14px; justify-items: center; }
.wa-qr { display: none; margin: 0; text-align: center; color: var(--text-3); font-size: 13.5px; }
.wa-qr-code { display: block; width: 196px; height: 196px; margin: 0 auto 8px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule); }
.wa-open { width: 100%; }
.wa-code { margin: 0; color: var(--text-2); font-size: 15px; text-align: center; }
.wa-code strong { font-family: var(--mono); letter-spacing: .03em; color: var(--text); white-space: nowrap; }
.wa-status { margin: 18px 0 0; color: var(--text-3); font-size: 14px; text-align: center; }
.wa-step.expired .wa-confirm { display: none; }
@media (min-width: 881px) and (hover: hover) and (pointer: fine) { .wa-qr { display: block; } }
/* OnArrival on WhatsApp: one button, and on a computer the same link as a QR code for the phone. */
.wa-link { display: grid; gap: 18px; }
.wa-link-main { display: grid; gap: 14px; min-width: 0; }
.wa-link h2 { margin: 0; }
.wa-link p { margin: 0; }
.wa-link form { margin: 0; }
.wa-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; width: 100%; max-width: 22rem; }
.wa-button svg { width: 20px; height: 20px; flex: none; }
.wa-link[data-state="loading"] .wa-button { opacity: .7; cursor: progress; }
.wa-sent, .wa-replacing { color: var(--text-2); font-size: 14.5px; }
.wa-linked { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 17px; }
.wa-linked strong { font-family: var(--mono); letter-spacing: .02em; white-space: nowrap; }
.wa-tick { color: var(--green-text); font-weight: 700; }
.wa-change { justify-self: start; font-size: 15px; }
/* At the top of Home: the quickest way to book, so it stands out a little, and its actions sit side by side. */
.card.wa-home { margin-bottom: var(--s-4); border-color: color-mix(in srgb, #25d366 50%, var(--border)); box-shadow: inset 4px 0 0 #25d366; }
.wa-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wa-actions .button { flex: 1 1 10rem; max-width: 22rem; min-height: 48px; }
.ob-ai-note { font: var(--text-caption); color: var(--text-3); }
.wa-link-qr { display: none; margin: 0; text-align: center; color: var(--text-3); font-size: 13.5px; }
.wa-link-code { width: 184px; height: 184px; margin: 0 auto 8px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.wa-link-code .qr { display: block; width: 100%; height: 100%; }
.wa-link-qr [data-wa-again] { margin-top: 10px; }
.wa-more > summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.wa-more[open] > summary { margin-bottom: 16px; }
body.onboard .wa-link { margin-top: var(--s-8); text-align: left; }
@media (min-width: 881px) and (hover: hover) and (pointer: fine) {
  .wa-link[data-js] { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 32px; }
  .wa-link[data-js] .wa-link-qr { display: block; }
}
@media (max-width: 680px) {
  .code-help button.link, .mail-open { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 880px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-board { order: 2; padding: 34px 20px 42px; gap: 26px; }
  .auth-pane { padding: 30px 16px 40px; align-content: start; }
  .board-row { grid-template-columns: 50px minmax(0, 1fr) 70px; }
  .board-row > :nth-child(4) { display: none; }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--medium); }
header.site { view-transition-name: site-header; isolation: isolate; }
header.site .brand img { view-transition-name: oa-mark; }
header.site::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; background: linear-gradient(100deg, #1a0b4a, #6b4bff 45%, #ff3d8b 78%, #ff6a2b); }
.from-home header.site::before { animation: handoff 1.2s var(--ease) both; }
.from-home header.site .brand, .from-home header.site .brand em { animation: handoff-ink 1.2s var(--ease) both; }
@keyframes handoff { 0%, 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes handoff-ink { 0%, 40% { color: #fff; } }
.tabs { view-transition-name: tabs; }

/* Base: one face, hairlines, small radii. */
[hidden] { display: none !important; }
body { background: var(--bg); font: var(--text-body); color: var(--text); }
.num, .label, .live-meta, .trip-amount, .lrow-price, .w-end span, .w-total b, .hold, time { font-variant-numeric: tabular-nums; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
h1 { font: var(--text-title); letter-spacing: -0.02em; margin: 0 0 var(--s-3); }
h2 { font: var(--text-heading); letter-spacing: -0.01em; margin: 0 0 var(--s-3); }
h3 { font: var(--text-heading); margin: var(--s-5) 0 var(--s-2); }
.lede { font-size: 15px; line-height: 22px; color: var(--text-2); margin: 0 0 var(--s-6); }
.brand em, .auth-board h2 em, .bp-brand em, .kc-name { font-style: normal; }
label { margin: var(--s-4) 0 var(--s-2); font: var(--text-label); color: var(--text); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
  min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); font: 400 14px/20px var(--font); background: var(--surface); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
input.code-input { font: 500 24px/1 var(--font); letter-spacing: .3em; min-height: 52px; }
button, .button {
  min-height: 40px; padding: 0 var(--s-4); gap: var(--s-2); border-radius: var(--r-sm); font: 500 14px/20px var(--font); letter-spacing: 0;
  color: #fff; background: var(--accent-solid); box-shadow: none; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
button:hover, .button:hover { color: #fff; background: var(--accent-hover); filter: none; transform: none; }
button:active, .button:active { transform: none; }
button.secondary, .button.secondary { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
button.secondary:hover, .button.secondary:hover { color: var(--text); background: var(--surface-2); }
button.small, .button.small { min-height: 32px; padding: 0 var(--s-3); font-size: 13px; border-radius: var(--r-sm); }
button.link { color: var(--text-2); }
.notice { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font: var(--text-label); border: 1px solid var(--border); }
.badge { padding: 0 var(--s-2); height: 20px; border-radius: var(--r-xs); font: var(--text-caption); }
.badge::before { display: none; }
.logo { border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--border); }
.card { border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: none; padding: var(--s-6); }
.toast { border-radius: var(--r-md); font: var(--text-label); padding: 10px 16px; box-shadow: var(--shadow-float); }
pre { border-radius: var(--r-sm); font: 400 13px/20px ui-monospace, SFMono-Regular, Menlo, monospace; }
code { border-radius: var(--r-xs); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* App frame: a left-aligned product layout. */
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
header.site .inner, main, footer.site { max-width: 1200px; padding-inline: var(--s-8); }
header.site .inner { min-height: 56px; gap: var(--s-6); }
.brand { gap: var(--s-2); font: 600 15px/20px var(--font); letter-spacing: -0.01em; }
.brand img { width: 24px; height: 24px; border-radius: var(--r-sm); box-shadow: none; }
.brand em { margin-left: -2px; font: 400 15px/20px var(--font); color: var(--text-3); }
nav.primary { gap: var(--s-1); }
nav.primary a { min-height: 32px; padding: 0 var(--s-3); border-radius: var(--r-sm); font: 500 14px/20px var(--font); color: var(--text-2); }
nav.primary a:hover { color: var(--text); background: var(--surface-2); }
nav.primary a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
footer.site { font: var(--text-label); border-top: 1px solid var(--border); }
main { padding-block: var(--s-8) var(--s-16); }
body.app main { padding-top: var(--s-6); }
.sky { background: none; }
.sky header.site { position: sticky; }
.sky-inner { max-width: 1200px; margin: 0 auto; padding: var(--s-8) var(--s-8) 0; }
.greeting, .page-title { margin: 0; font: var(--text-title); letter-spacing: -0.02em; color: var(--text); }
.sky-line { margin: var(--s-1) 0 0; color: var(--text-2); font-size: 14px; }
.crumbs { display: flex; align-items: center; gap: var(--s-2); font: var(--text-label); color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.back { color: var(--text-2); font: var(--text-label); text-decoration: none; }

.me { position: relative; margin-left: auto; }
.me > summary { list-style: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 600 13px/1 var(--font); color: var(--text); background: var(--surface-3); cursor: pointer; }
.me > summary::-webkit-details-marker { display: none; }
.me-menu { position: absolute; right: 0; top: calc(100% + var(--s-2)); z-index: 30; display: grid; gap: var(--s-3); min-width: 240px; padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-float); }
.me-menu span { font: var(--text-label); color: var(--text-2); overflow-wrap: anywhere; }
.me-menu a { font: 500 14px/20px var(--font); color: var(--text); text-decoration: none; }
.me-menu form { margin: 0; }
.me-menu button { width: 100%; }
.tabs { display: none; }

/* Status labels: one size, tinted, never a pill. */
.label { display: inline-grid; align-items: center; height: 20px; padding: 0 6px; overflow: hidden; border-radius: var(--r-xs); font: var(--text-caption); white-space: nowrap; color: var(--text-2); background: var(--surface-2); }
.label > span { grid-area: 1 / 1; }
.label > span:empty { width: 48px; }
.label > span.in { animation: roll-in var(--slow) var(--ease) both; }
.label > span.out { animation: roll-out var(--slow) var(--ease) both; }
@keyframes roll-in { from { transform: translateY(100%); opacity: 0; } }
@keyframes roll-out { to { transform: translateY(-100%); opacity: 0; } }
.tone-hold .label, .label.tone-hold { color: var(--amber-text); background: var(--amber-subtle); }
.tone-pay .label, .label.tone-pay { color: var(--accent-text); background: var(--accent-subtle); }
.tone-ok .label, .label.tone-ok { color: var(--green-text); background: var(--green-subtle); }
.tone-bad .label, .label.tone-bad { color: var(--red-text); background: var(--red-subtle); }
.tone-off .label, .label.tone-off { color: var(--text-3); }
.label.hold.over { color: var(--text-3); background: var(--surface-2); }

.airline { position: relative; display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; background: var(--surface-3); vertical-align: middle; }
.airline b { font: 600 8px/1 var(--font); color: var(--text-2); }
.airline img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Home: the activity table beside a side column. */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); align-items: start; }
.home-grid.first { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-main, .g-side { min-width: 0; display: grid; gap: var(--s-6); align-content: start; }
.sec-title { margin: 0 0 var(--s-3); font: var(--text-heading); }

.live { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.live-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--s-3); }
.live-head h2 { margin: 0; font: var(--text-heading); }
.live-meta { font: var(--text-label); color: var(--text-3); }
.live-meta[data-offline]::after { content: " · Reconnecting…"; color: var(--warn); }
.live-cols, .lrow { display: grid; grid-template-columns: 24px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) 104px 88px; align-items: center; column-gap: var(--s-4); }
.live-cols .num, .trips-cols .num { text-align: right; }
.live-cols { padding: var(--s-2) var(--s-4); border-block: 1px solid var(--border); font: var(--text-label); color: var(--text-3); background: var(--gray-2); }
.live-rows { margin: 0; padding: 0; list-style: none; }
.lrow { position: relative; min-height: 52px; padding: var(--s-2) var(--s-4); border-top: 1px solid var(--border); }
.lrow:first-child { border-top: 0; }
.lrow[hidden] { display: none; }
.lrow:has(.lrow-hit:hover) { background: var(--gray-2); }
.lrow-hit { position: absolute; inset: 0; z-index: 1; }
.lrow-hit:focus-visible { outline-offset: -2px; border-radius: 0; }
.lrow-logo { display: grid; place-items: center; width: 24px; height: 24px; padding: 3px; border-radius: var(--r-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.lrow-logo img, .lrow-logo svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.lrow-logo.own { padding: 0; background: none; box-shadow: none; }
.lrow-logo.own img { border-radius: var(--r-sm); }
.lrow-logo.other { color: #fff; background: var(--accent-solid); box-shadow: none; }
.lrow-logo.initial { color: var(--text); background: var(--surface-2); font: 750 12px/1 var(--display); }
.lrow-trip { min-width: 0; }
.lrow-trip b { display: block; font: 500 14px/20px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow-trip small { display: none; }
.lrow-when, .lrow-flight { min-width: 0; font: var(--text-body); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow-flight { display: flex; align-items: center; gap: var(--s-2); }
.lrow-price { font: 500 14px/20px var(--font); text-align: right; white-space: nowrap; }
.tone-off .lrow-trip b, .tone-off .lrow-price { color: var(--text-3); }
.lrow.enter { animation: row-in var(--medium) var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(4px); } }
.lrow.glow { animation: row-glow 1.6s var(--ease) 1; }
@keyframes row-glow { 15% { background: var(--green-subtle); } }

/* The held fare: a flat pass with an accent rule. */
.print-slot:empty { display: none; }
.printed { position: relative; }
.printed[data-printing] { animation: pass-in var(--slow) var(--ease) both; }
@keyframes pass-in { from { opacity: 0; transform: translateY(8px); } }
.printed-link { position: absolute; inset: 0 0 auto; height: 50%; z-index: 1; }
.wallet { position: relative; padding: var(--s-4); border: 1px solid var(--border); border-top: 2px solid var(--accent); border-radius: var(--r-md); background: var(--surface); }
.wallet.tone-ok { border-top-color: var(--green-text); }
.wallet.tone-off, .wallet.expired { border-top-color: var(--border-strong); }
.w-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.w-carrier { display: flex; align-items: center; gap: var(--s-2); min-width: 0; font: 500 14px/20px var(--font); }
/* The status is never cut short: on a narrow pass the airline's name wraps instead. */
.w-head .w-status { flex: none; }
.w-carrier small { font: var(--text-body); color: var(--text-3); }
.w-carrier .airline { width: 24px; height: 24px; }
.w-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); margin: var(--s-5) 0 var(--s-4); }
.w-end b { display: block; font: 600 28px/32px var(--font); letter-spacing: -0.02em; }
.w-end span { display: block; margin-top: 2px; font: var(--text-label); color: var(--text-2); }
.w-end.to { text-align: right; }
.w-path { display: flex; align-items: center; gap: var(--s-1); padding-bottom: 20px; color: var(--text-3); }
.w-path i { flex: 1; height: 1px; background: var(--border-strong); }
.w-path svg { flex: none; width: 16px; height: 16px; }
.w-stay { margin: var(--s-4) 0 2px; font: 600 18px/24px var(--font); letter-spacing: -0.01em; }
.w-where { margin: 0 0 var(--s-3); font: var(--text-label); color: var(--text-2); }
.w-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--s-3) var(--s-4); margin: 0; padding-top: var(--s-3); border-top: 1px solid var(--border); }
.w-facts dt { font: var(--text-caption); color: var(--text-3); }
.w-facts dd { margin: 2px 0 0; font: 500 14px/20px var(--font); overflow-wrap: anywhere; }
.w-facts dd small { display: block; font: 400 13px/18px var(--font); color: var(--text-2); }
.w-fee { display: flex; justify-content: space-between; gap: var(--s-3); margin: var(--s-3) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--border); font: var(--text-label); color: var(--text-2); }
.w-fee s { color: var(--text-3); }
.w-fee + .w-foot { margin-top: var(--s-2); padding-top: 0; border-top: 0; }
.w-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.w-total { display: grid; margin: 0; }
.w-total span { font: var(--text-caption); color: var(--text-3); }
.w-total b { font: 600 20px/28px var(--font); letter-spacing: -0.01em; }
.w-pay { position: relative; z-index: 2; min-height: 40px; padding: 0 var(--s-5); }
.w-note { margin: var(--s-3) 0 0; font: var(--text-caption); color: var(--text-3); }
.wallet.expired .w-note:not([data-expired-note]) { display: none; }

/* First run and setup. */
.setup { display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.steps { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0; padding: 0; list-style: none; font: var(--text-label); color: var(--text-3); }
.steps li { display: flex; align-items: center; gap: var(--s-2); white-space: nowrap; }
.steps i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.steps .now { color: var(--text); }
.steps .now i { box-shadow: inset 0 0 0 4.5px var(--accent-solid); }
.steps .done i { color: #fff; background: var(--green-text); box-shadow: none; }
.steps .done i svg { width: 10px; height: 10px; }
.g-main > .steps { padding: 0 var(--s-1); }

.pick-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.pick-panel { display: none; }
.pick:has(.pick-input:checked) .pick-none { display: none; }
.panel-title { margin: 0 0 var(--s-3); font: var(--text-heading); }
.pick-more { margin-top: var(--s-3); }
.pick-more > summary, .how-more > summary, .connect-more > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; font: var(--text-label); color: var(--text-2); cursor: pointer; }
.pick-more > summary::-webkit-details-marker, .how-more > summary::-webkit-details-marker { display: none; }
.pick-more > summary::after, .how-more > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.pick-more[open] > summary::after, .how-more[open] > summary::after { transform: rotate(-135deg); }
.pick-group + .pick-group { margin-top: var(--s-3); }
.pick-group > h4 { margin: var(--s-1) 0 var(--s-2); font: var(--text-caption); color: var(--text-3); }
.tiles { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.tile { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; margin: 0; padding: var(--s-2); border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 400; }
.tile:hover { background: var(--gray-2); }
.tile .logo { width: 28px; height: 28px; padding: 4px; }
.tile .logo.own { padding: 0; }
.tile-text { display: grid; min-width: 0; line-height: 1.2; }
.tile-text b { font: 500 13px/18px var(--font); }
.tile-text small { font: var(--text-caption); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-text small.on { color: var(--green-text); }
.tile-text small.soon { justify-self: start; margin: 2px 0 0; color: var(--amber-text); }
.panel { min-width: 0; }
.panel-body { display: grid; gap: var(--s-3); }
.panel-body > * { min-width: 0; }
.panel-line { margin: 0; font: var(--text-body); color: var(--text-2); }
.panel-line em { font-style: normal; font-weight: 500; color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.cta-row .button, .cta-row button { min-height: 48px; padding: 0 var(--s-5) 0 var(--s-3); font: 500 15px/20px var(--font); border-radius: var(--r-sm); }
.cta-row .logo { width: 28px; height: 28px; padding: 4px; margin: 0; box-shadow: none; border-radius: var(--r-sm); }
.cta-row .logo.own { padding: 0; }
.how-more > div, .how-open { display: grid; gap: var(--s-3); }
.how { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: var(--s-3); }
.how li { counter-increment: how; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0 var(--s-2); font: var(--text-body); color: var(--text-2); }
.how li::before { content: counter(how); grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: var(--text-caption); color: var(--text-2); background: var(--surface-2); }
.how li b { font-weight: 500; color: var(--text); }
.how em { font-style: normal; font-weight: 500; color: var(--text); }
.heads-up { margin: 0; padding: var(--s-3); border-radius: var(--r-sm); font: var(--text-label); color: var(--text-2); background: var(--surface-2); }
.cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-1) var(--s-1) var(--s-3); border-radius: var(--r-sm); background: var(--cmd-bg); color: var(--cmd-text); }
.cmd pre { margin: 0; padding: 6px 0; background: none; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd button { min-height: 32px; padding: 0 var(--s-3); font-size: 13px; color: var(--cmd-text); background: rgba(255, 255, 255, .1); }
.cmd button:hover { background: rgba(255, 255, 255, .18); }
.cmd-label { margin: 0 0 var(--s-2); font: var(--text-label); color: var(--text-2); }
.link-box { display: flex; gap: var(--s-2); }
.link-box input { font: 400 13px/20px ui-monospace, SFMono-Regular, Menlo, monospace; min-width: 0; }
.link-box button { flex: none; }
.panel-foot { font: var(--text-label); color: var(--text-3); }
.panel-foot p { margin: 0 0 var(--s-1); }
.panel-foot a { color: var(--text-2); }
.done-line { display: flex; align-items: center; gap: var(--s-2); margin: 0; font: 500 14px/20px var(--font); }
.done-mark { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--green-text); }
.done-mark svg { width: 10px; height: 10px; }
.prompt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--surface-2); }
.try { display: grid; gap: var(--s-2); }
.try > span { font: var(--text-caption); color: var(--text-3); }
label.flush { margin-top: 0; }
.panel:not(.pick-panel) { margin-top: var(--s-3); padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.panel-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.panel-head h3 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-1); }
.chip { height: 20px; padding: 0 6px; border-radius: var(--r-xs); font: var(--text-caption); line-height: 20px; color: var(--text-2); background: var(--surface-2); }
.chip.ok { color: var(--green-text); background: var(--green-subtle); }
.chip.soon, .soon { color: var(--amber-text); background: var(--amber-subtle); }
.soon { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: var(--r-xs); font: var(--text-caption); line-height: 18px; vertical-align: middle; white-space: nowrap; }
.panel-soon { margin: 0 0 var(--s-3); }
.panel-soon .soon { margin: 0 6px 0 0; }
.picker label .soon { margin-left: 0; }
.ob-ai .soon { margin: 0; }

/* Side column. */
.side-sec { min-width: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.sec-head a { font: var(--text-label); color: var(--accent-text); text-decoration: none; }
.sec-head a:hover { text-decoration: underline; }
.asks { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.asks li + li { border-top: 1px solid var(--border); }
.ask { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; min-height: 48px; padding: var(--s-2) var(--s-3) var(--s-2) var(--s-4); border: 0; border-radius: 0; font: 400 14px/20px var(--font); text-align: left; color: var(--text); background: none; text-decoration: none; white-space: normal; cursor: pointer; }
.asks li:first-child .ask { border-radius: var(--r-md) var(--r-md) 0 0; }
.asks li:last-child .ask { border-radius: 0 0 var(--r-md) var(--r-md); }
.ask:hover { color: var(--text); background: var(--gray-2); }
.ask-text { min-width: 0; }
.ask-go { flex: none; font: var(--text-label); color: var(--accent-text); white-space: nowrap; }
.ais { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.ai { position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); }
.ai + .ai { border-top: 1px solid var(--border); }
.ai .logo { width: 24px; height: 24px; padding: 3px; }
.ai .logo.own { padding: 0; }
.ai > div { flex: 1; min-width: 0; }
.ai b { display: block; font: 500 14px/20px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai small { display: block; font: var(--text-caption); color: var(--text-3); }
.ai small.on { color: var(--text-3); }
.unverified-app { margin: 0 6px; padding: 1px 8px; font-size: 12px; vertical-align: middle; }
.ai small .unverified-app { margin: 0 6px 0 0; }
.confirm > summary { list-style: none; display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: var(--r-sm); color: var(--text-3); box-shadow: none; cursor: pointer; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm > summary svg { width: 14px; height: 14px; }
.confirm > summary:hover, .confirm[open] > summary { color: var(--red-text); background: var(--red-subtle); box-shadow: none; }
.confirm form { position: absolute; right: var(--s-2); top: calc(100% - 4px); z-index: 20; display: grid; gap: var(--s-3); width: min(280px, 80vw); padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-float); }
.confirm form p { margin: 0; font: var(--text-label); color: var(--text-2); text-align: left; }
.confirm button { min-height: 32px; font-size: 13px; color: #fff; background: var(--red-text); }
.confirm button:hover { background: var(--red-text); filter: brightness(.95); }
.revoked { margin-top: var(--s-2); font: var(--text-label); color: var(--text-3); }
.revoked summary { cursor: pointer; }
.revoked ul { margin: var(--s-2) 0 0; padding-left: var(--s-5); }
.connect-more { margin-top: var(--s-2); }
.connect-more .more-body { padding: var(--s-3) 0 0; }

.more { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.more + .more { margin-top: var(--s-2); }
.more > summary { list-style: none; display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-4); font: 500 14px/20px var(--font); cursor: pointer; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; margin-left: auto; flex: none; width: 6px; height: 6px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg) translateY(-2px); }
.more[open] > summary::after { transform: rotate(-135deg); }
.more-body { padding: 0 var(--s-4) var(--s-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.more-body > p { margin: 0; font: var(--text-body); color: var(--text-2); }
.more-icon { display: none; }
.dev-list { display: grid; gap: var(--s-3); margin: 0; }
.dev-list dt { font: 500 14px/20px var(--font); }
.dev-list dd { margin: var(--s-1) 0 0; font: var(--text-body); color: var(--text-2); }
.quiet { display: grid; gap: var(--s-2); }
.quiet .more + .more { margin-top: 0; }

/* Sign-in: a quiet panel beside the form. */
.auth-board { color: var(--text); background: var(--gray-2); border-right: 1px solid var(--border); }
.auth-board .board-title { font: var(--text-label); color: var(--text-3); }
.auth-board h2 { font: 600 24px/32px var(--font); letter-spacing: -0.02em; color: var(--text); max-width: 22ch; }
.auth-board h2 em { color: inherit; font: inherit; }
.auth-board p { color: var(--text-2); }
.auth-orb, .board-tag { display: none; }
.auth-form h1, .sheet h1 { font: var(--text-title); letter-spacing: -0.02em; }
.auth-form .lede, .sheet .lede { font-size: 14px; line-height: 20px; }
.works .logo { box-shadow: inset 0 0 0 1px var(--border); }
.board-row b { text-transform: none; }
.works > span { font: var(--text-label); text-transform: none; letter-spacing: 0; color: var(--text-3); }
.board { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: none; gap: 0; font-family: var(--font); }
.board-row { background: var(--surface); color: var(--text); font: var(--text-body); border-top: 1px solid var(--border); padding: var(--s-3) var(--s-4); }
.board-row.head { background: var(--gray-2); color: var(--text-3); font: var(--text-label); border-top: 0; }
.board-row b { font: 500 14px/20px var(--font); color: var(--text); letter-spacing: 0; }
.board-row .st { font: var(--text-caption); color: var(--amber-text); }
.board-row .st.ok { color: var(--green-text); }
.flap { animation: none; }
.sheet { border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: none; }
.sheet::before { display: none; }

/* In the narrow first-run column the activity list is stacked, as on phones. */
.home-grid.first .live-cols, .home-grid.first .lrow-when, .home-grid.first .lrow-flight { display: none; }
.home-grid.first .lrow { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "logo trip status" "logo trip price"; row-gap: 2px; }
.home-grid.first .lrow-logo { grid-area: logo; align-self: start; width: 28px; height: 28px; margin-top: 2px; }
.home-grid.first .lrow-trip { grid-area: trip; }
.home-grid.first .lrow-trip small { display: block; margin-top: 2px; font: 400 13px/18px var(--font); color: var(--text-3); }
.home-grid.first .lrow-status { grid-area: status; justify-self: end; }
.home-grid.first .lrow-price { grid-area: price; }

/* Offer: a quiet note, never a banner ad. */
.offer { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-left: 2px solid var(--green-text); border-radius: var(--r-md); background: var(--surface); }
.offer b { font: 500 14px/20px var(--font); }
.offer span { font: var(--text-label); color: var(--text-3); }
.w-offer { margin: var(--s-2) 0 0; font: var(--text-label); color: var(--green-text); }

/* Onboarding: one step at a time, in a focused column. */
body.onboard main { max-width: 600px; padding-top: var(--s-6); }
.ob { display: grid; gap: var(--s-5); }
.ob-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-1); }
.ob-progress i { height: 3px; border-radius: 2px; background: var(--surface-3); }
.ob-progress i.on { background: var(--accent-solid); }
.ob-nav { display: flex; justify-content: space-between; margin-top: calc(-1 * var(--s-3)); font: var(--text-label); color: var(--text-3); }
.ob-back { color: var(--text-2); text-decoration: none; }
.ob-back::before { content: "← "; }
.ob-title { margin: var(--s-2) 0 0; font: 600 28px/36px var(--font); letter-spacing: -0.03em; }
.ob-sub { margin: calc(-1 * var(--s-3)) 0 0; color: var(--text-2); font-size: 15px; line-height: 22px; }
.ob-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.ob-ai { display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-4) var(--s-2); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text); text-decoration: none; font: 500 13px/18px var(--font); text-align: center; transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.ob-ai:hover { color: var(--text); background: var(--gray-2); border-color: var(--border-strong); }
.ob-ai.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-subtle); }
.ob-ai .logo { width: 44px; height: 44px; padding: 8px; border-radius: var(--r-md); }
.ob-ai .logo.own { padding: 0; }
.ob-next { width: 100%; min-height: 48px; font-size: 15px; }
.ob-actions { display: grid; gap: var(--s-2); }
.ob-tag { height: 20px; padding: 0 6px; border-radius: var(--r-xs); font: var(--text-caption); line-height: 20px; color: var(--text-2); background: var(--surface-3); }
body.onboard.wide main { max-width: 920px; }
.ob-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.duo-pane { display: grid; gap: var(--s-3); min-width: 0; padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.duo-head { display: flex; align-items: center; gap: var(--s-2); font: 500 14px/20px var(--font); }
.duo-head .logo { width: 24px; height: 24px; padding: 3px; }
.duo-head .logo.own { padding: 0; }
.duo-head .ob-tag, .duo-live { margin-left: auto; }
.duo-live { display: inline-flex; align-items: center; gap: 6px; font: var(--text-caption); color: var(--green-text); }
.duo-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chat-body { display: grid; gap: var(--s-3); align-content: start; min-height: 196px; }
.msg { margin: 0; max-width: 92%; padding: var(--s-2) var(--s-3); border-radius: var(--r-lg); font: 400 14px/20px var(--font); }
.msg.me { justify-self: end; color: var(--text); background: var(--surface-2); border-bottom-right-radius: var(--r-xs); }
.msg.me.typing::after { content: ""; display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -2px; background: var(--text-2); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.msg.ai { justify-self: start; padding-inline: 0; color: var(--text); }
.duo-empty { display: none; margin: 0; font: var(--text-label); color: var(--text-3); }
.duo-pane:has([data-demo-row][hidden]) .duo-empty { display: block; }
.duo-pane:has([data-demo-row][hidden]) .live-rows { display: none; }
.ob-duo .live-rows { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-md); }
.ob-duo .lrow { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "logo trip status" "logo trip price"; row-gap: 2px; min-height: 64px; border: 0; }
.ob-duo .lrow-logo { grid-area: logo; align-self: start; width: 28px; height: 28px; margin-top: 2px; }
.ob-duo .lrow-trip { grid-area: trip; }
.ob-duo .lrow-trip small { display: block; margin-top: 2px; font: 400 13px/18px var(--font); color: var(--text-3); }
.ob-duo .lrow-status { grid-area: status; justify-self: end; }
.ob-duo .lrow-price { grid-area: price; }
.ob-duo .wallet .w-note { display: none; }
.ob-demo-pass.staged:not(.in) { display: none; }
.ob-demo-pass.staged.in { animation: pass-in var(--slow) var(--ease) both; }
body.onboard.wide .ob-title, body.onboard.wide .ob-sub { text-align: center; }
body.onboard.wide .ob-actions, body.onboard.wide .offer { width: min(100%, 560px); justify-self: center; }

.pair { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4) 0; }
.pair .logo { width: 56px; height: 56px; padding: 10px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--border); }
.pair .logo.own { padding: 0; box-shadow: none; }
.pair .logo.own img { border-radius: 16px; }
.pair-line { position: relative; display: grid; place-items: center; height: 28px; }
.pair-line i { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px); }
.pair-line i::after { content: ""; position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-subtle); animation: pair-run 1.6s var(--ease) infinite; }
@keyframes pair-run { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 6px); opacity: 0; } }
.pair-check { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--green-text); transform: scale(0); opacity: 0; }
.pair-check svg { width: 16px; height: 16px; stroke-dasharray: 24; }
.connected .pair-line i, [data-connected] .pair-line i { background: var(--green-text); transition: background var(--medium) var(--ease); }
.connected .pair-line i::after, [data-connected] .pair-line i::after { display: none; }
.connected .pair-check, [data-connected] .pair-check { transform: none; opacity: 1; animation: ob-pop .5s cubic-bezier(.175, .885, .32, 1.275) .1s both; }
.connected .pair-check svg { animation: ob-draw .45s var(--ease) .3s both; }
.pair-status { margin: 0; text-align: center; font: var(--text-label); color: var(--text-2); }
.ob-connect .ob-ok { justify-items: center; text-align: center; border-top: 0; padding-top: 0; }

.city { display: grid; gap: var(--s-2); margin: 0; }
.ask-sec .city { margin-top: var(--s-3); }
.city-q { margin: 0; font: var(--text-label); color: var(--text-2); }
.city-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.city-chips button { min-height: 32px; padding: 0 var(--s-3); border: 1px solid var(--border); border-radius: 999px; font: 500 13px/18px var(--font); color: var(--text-2); background: var(--surface); }
.city-chips button:hover { color: var(--text); background: var(--gray-2); }
.city-chips button[aria-pressed="true"] { color: var(--surface); background: var(--text); border-color: var(--text); }
.city.compact .city-q { font: var(--text-caption); color: var(--text-3); }
.city.compact .city-chips button { min-height: 28px; padding: 0 var(--s-2); font-size: 12px; }

.mirror { position: relative; display: grid; gap: 0; margin: 0; padding: var(--s-2) var(--s-4); list-style: none; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.mirror li { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-2) 0; }
.mirror li + li::before { content: ""; position: absolute; left: 9px; top: -10px; height: 18px; width: 2px; background: var(--border); }
.mirror li[data-state="done"] + li::before { background: var(--green-text); }
.mirror p { margin: 0; min-width: 0; }
.mirror b { display: block; font: 500 14px/20px var(--font); }
.mirror small { display: block; font: 400 13px/18px var(--font); color: var(--text-3); }
.mirror small:empty { display: none; }
.m-dot { position: relative; width: 20px; height: 20px; margin-top: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border-strong); background: var(--surface); }
.mirror li[data-state="todo"] b { color: var(--text-3); font-weight: 400; }
.mirror li[data-state="now"] .m-dot { box-shadow: inset 0 0 0 2px var(--accent-subtle); }
.mirror li[data-state="now"] .m-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: spin .8s linear infinite; }
.mirror li[data-state="done"] .m-dot { background: var(--green-text); box-shadow: none; }
.mirror li[data-state="done"] .m-dot::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.mirror li[data-tone="bad"] small { color: var(--red-text); }
.mirror b[data-hold], .mirror b.over { font-variant-numeric: tabular-nums; }
@keyframes spin { to { transform: rotate(360deg); } }
.ob-pair-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--s-2); }

.ob-connect { display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.ob-connect .pick-panel { display: block; }
.ob-connect.connected .pick-panels, .ob-connect[data-connected] .pick-panels { display: none; }
.ob-connect.connected .ob-ok, .ob-connect[data-connected] .ob-ok { border-top: 0; padding-top: 0; }
.ob-wait[hidden], .ob-ok[hidden] { display: none; }
.ob-wait { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border); font: var(--text-label); color: var(--text-2); }
.ob-pulse { display: inline-flex; gap: 4px; }
.ob-pulse i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .3; animation: ob-dot 1.2s var(--ease) infinite; }
.ob-pulse i:nth-child(2) { animation-delay: .15s; }
.ob-pulse i:nth-child(3) { animation-delay: .3s; }
@keyframes ob-dot { 40% { opacity: 1; transform: translateY(-2px); } }
.ob-ok { display: grid; justify-items: start; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.ob-ok b { font: 600 18px/24px var(--font); }
.ob-check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--green-text); }
.ob-check svg { width: 22px; height: 22px; stroke-dasharray: 24; stroke-dashoffset: 0; }
.ob-check.big { width: 56px; height: 56px; }
.ob-check.big svg { width: 30px; height: 30px; }
.connected .ob-check, .ob-booked .ob-check { animation: ob-pop .5s cubic-bezier(.175, .885, .32, 1.275) both; }
.connected .ob-check svg, .ob-booked .ob-check svg { animation: ob-draw .45s var(--ease) .15s both; }
.connected .ob-pane, .connected { animation: ob-nudge .35s var(--ease) 1; }
@keyframes ob-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes ob-draw { from { stroke-dashoffset: 24; } }
@keyframes ob-nudge { 30% { transform: translateY(-2px); } 60% { transform: translateY(1px); } }
.ob-other, .ob-home { justify-self: center; font: var(--text-label); color: var(--text-2); }
.ob-own label { margin-top: 0; }
.ob-own .link-box input { font: 400 14px/20px var(--font); }
.ob-mirror { margin: var(--s-3) 0 calc(-1 * var(--s-2)); font: var(--text-heading); }
.ob .live-cols, .ob .lrow-when, .ob .lrow-flight { display: none; }
.ob .lrow { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "logo trip status" "logo trip price"; row-gap: 2px; }
.ob .lrow-logo { grid-area: logo; align-self: start; width: 28px; height: 28px; margin-top: 2px; }
.ob .lrow-trip { grid-area: trip; }
.ob .lrow-trip small { display: block; margin-top: 2px; font: 400 13px/18px var(--font); color: var(--text-3); }
.ob .lrow-status { grid-area: status; justify-self: end; }
.ob .lrow-price { grid-area: price; }
.ob-booked { display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-6) 0 var(--s-2); text-align: center; }
.ob-booked .ob-sub { margin: 0; }
.pw-back { margin: var(--s-4) 0 0; text-align: center; font: var(--text-label); }

@media (max-width: 860px) {
  .home-grid, .home-grid.first { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-5); }
  .g-main, .g-side { display: contents; }
  .home-grid .print-slot { order: 1; }
  .home-grid .setup { order: 1; }
  .home-grid .g-main > * { order: 2; }
  .home-grid .live { order: 3; }
  .home-grid .side-sec { order: 4; }
  .home-grid .quiet { order: 5; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  body.app { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  header.site .inner, main, footer.site, .sky-inner { padding-inline: var(--s-4); }
  body.app header.site nav.primary { display: none; }
  .sky-inner { padding-top: var(--s-5); }
  .greeting, .page-title { font: 600 22px/28px var(--font); }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); padding: var(--s-1) var(--s-2) calc(var(--s-2) + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border); }
  .tabs a { display: grid; justify-items: center; gap: 2px; min-height: 48px; padding-top: 6px; font: var(--text-caption); color: var(--text-3); text-decoration: none; }
  .tabs a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .tabs a[aria-current="page"] { color: var(--text); }
  .live-cols { display: none; }
  .lrow { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "logo trip status" "logo trip price"; row-gap: 2px; min-height: 60px; padding: var(--s-3) var(--s-4); }
  .lrow-logo { grid-area: logo; align-self: start; width: 28px; height: 28px; margin-top: 2px; }
  .lrow-trip { grid-area: trip; }
  .lrow-trip b { font-size: 15px; white-space: normal; }
  .lrow-trip small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 2px; font: 400 13px/18px var(--font); color: var(--text-3); }
  .lrow-when, .lrow-flight { display: none; }
  .lrow-status { grid-area: status; justify-self: end; }
  .lrow-price { grid-area: price; font-size: 13px; color: var(--text-2); }
  .cta-row .button, .cta-row button { flex: 1 1 100%; justify-content: center; }
  .cmd { grid-template-columns: minmax(0, 1fr); }
  .cmd button { justify-self: end; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ask { min-height: 52px; }
  .steps { gap: var(--s-2) var(--s-3); }
  .confirm > summary, .me > summary { width: 40px; height: 40px; }
  .w-end b { font-size: 26px; }
  .ob-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ob-title { font-size: 24px; line-height: 32px; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

.filters { display: flex; gap: var(--s-1); margin: var(--s-4) 0 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.filters a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s-3); margin-bottom: -1px; border-bottom: 2px solid transparent; font: 500 14px/20px var(--font); color: var(--text-2); text-decoration: none; white-space: nowrap; }
.filters a:hover { color: var(--text); }
.filters a[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); }
.filters a span { font: var(--text-caption); color: var(--text-3); }

.table { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.trips-cols, .trip { display: grid; grid-template-columns: 24px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .8fr) 112px 96px 64px; align-items: center; column-gap: var(--s-4); }
.trips-cols { padding: var(--s-2) var(--s-4); font: var(--text-label); color: var(--text-3); background: var(--gray-2); border-bottom: 1px solid var(--border); }
.trips { margin: 0; padding: 0; list-style: none; }
.trip { position: relative; min-height: 52px; padding: var(--s-2) var(--s-4); }
.trip + .trip { border-top: 1px solid var(--border); }
.trip:has(.trip-title:hover) { background: var(--gray-2); }
.trip-logo .logo { width: 24px; height: 24px; padding: 3px; }
.trip-logo .logo.own { padding: 0; }
.trip-main { min-width: 0; }
.trip-title { display: block; font: 500 14px/20px var(--font); color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-title::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.trip-title:hover { color: var(--text); }
.trip-line { display: none; }
.trip-note { display: block; font: var(--text-caption); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-when, .trip-flight { min-width: 0; font: var(--text-body); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-flight { display: flex; align-items: center; gap: var(--s-2); }
.trip-amount { font: 500 14px/20px var(--font); text-align: right; white-space: nowrap; }
.trip-act { display: flex; justify-content: flex-end; }
.trip-pay { position: relative; z-index: 1; }
.trip.expired .trip-title, .trip[data-state="cancelled"] .trip-title, .trip.expired .trip-amount { color: var(--text-3); }
.trip-empty { padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.trip-empty h2 { margin: 0 0 var(--s-1); }
.trip-empty p { margin: 0 0 var(--s-4); color: var(--text-2); }
.sk { display: block; height: 10px; width: 70%; border-radius: 999px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk-shine 1.4s ease-in-out infinite; }
.sk.wide { width: 80%; height: 12px; }
.sk.thin { width: 45%; margin-top: 6px; }
.sk.short { width: 48px; }
.sk.pill { width: 72px; height: 20px; }
.sk.round { width: 24px; height: 24px; }
.trip.skeleton .trip-amount .sk { margin-left: auto; }
.sk-count { display: inline-block; width: 12px; height: 8px; margin-left: 6px; border-radius: 999px; background: currentColor; opacity: .25; }
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.trip-filter-empty { padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--r-md); text-align: center; color: var(--text-2); background: var(--surface); }

.doc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; max-width: 960px; }
.doc-side { display: grid; gap: var(--s-4); }
.doc-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.doc-facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.doc-facts > div { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 44px; padding: 0 var(--s-4); }
.doc-facts > div + div { border-top: 1px solid var(--border); }
.doc-facts dt { font: var(--text-label); color: var(--text-3); }
.doc-facts dd { display: flex; align-items: center; gap: var(--s-2); margin: 0; font: 500 14px/20px var(--font); text-align: right; overflow-wrap: anywhere; }
.doc-facts .logo { width: 20px; height: 20px; padding: 2px; }
.doc-facts .logo.own { padding: 0; }

@media (max-width: 860px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
}
@media (max-width: 700px) {
  .filters { margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); }
  .table { border-radius: var(--r-md); }
  .trips-cols { display: none; }
  .trip { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "logo main status" "logo main amount" "logo act act"; row-gap: 2px; padding: var(--s-3) var(--s-4); }
  .trip-logo { grid-area: logo; align-self: start; }
  .trip-logo .logo { width: 28px; height: 28px; }
  .trip-main { grid-area: main; }
  .trip-title { font-size: 15px; white-space: normal; }
  .trip-line { display: block; margin-top: 2px; font: 400 13px/18px var(--font); color: var(--text-3); }
  .trip-note { margin-top: 2px; white-space: normal; }
  .trip-when, .trip-flight { display: none; }
  .trip-status { grid-area: status; justify-self: end; }
  .trip-amount { grid-area: amount; font-size: 13px; color: var(--text-2); }
  .trip-act { grid-area: act; justify-content: flex-start; }
  .trip-act:empty { display: none; }
  .trip-pay { margin-top: var(--s-2); }
  /* On a phone the two Pay buttons are big enough for a thumb. */
  .button.small.trip-pay { min-height: 44px; padding-inline: var(--s-4); }
  .button.w-pay { min-height: 44px; }
}
/* On the narrowest phones the trip and its note take the whole row; the state and amount sit under them. */
@media (max-width: 340px) {
  .trip { grid-template-areas: "logo main main" "logo status amount" "logo act act"; row-gap: var(--s-1); }
  .trip-status { justify-self: start; }
}

.filter-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; margin-bottom: var(--s-5); }
.seg { display: flex; gap: 2px; padding: 2px; border-radius: var(--r-sm); background: var(--surface-2); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 var(--s-3); border-radius: var(--r-xs); font: 500 13px/18px var(--font); color: var(--text-2); text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--text); }
.seg a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(0, 0, 0, 0.04); }
.seg .logo { width: 16px; height: 16px; padding: 1px; }
.seg .logo.own { padding: 0; }
.day + .day { margin-top: var(--s-6); }
.day-title { margin: 0 0 var(--s-2); font: var(--text-label); color: var(--text-3); }
.feed { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.feed-row { position: relative; display: grid; grid-template-columns: 44px 24px minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-3); min-height: 52px; padding: var(--s-2) var(--s-4); }
.feed-row + .feed-row { border-top: 1px solid var(--border); }
.feed-row time { font: var(--text-label); color: var(--text-3); }
.feed-row .logo { width: 24px; height: 24px; padding: 3px; }
.feed-row .logo.own { padding: 0; }
.feed-main { min-width: 0; }
.feed-main b { display: block; font: 500 14px/20px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-main small { display: block; font: 400 13px/18px var(--font); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-hit { position: absolute; inset: 0; z-index: 1; }
.feed-row:has(.feed-hit:hover) { background: var(--gray-2); }
.feed-hit:focus-visible { outline-offset: -2px; border-radius: 0; }
.tone-live.label { color: var(--text-2); }
.empty-note { padding: var(--s-6); border: 1px dashed var(--border-strong); border-radius: var(--r-md); text-align: center; color: var(--text-2); }
.fine { margin: var(--s-2) 0 0; font: var(--text-caption); color: var(--text-3); }

.ai-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.ai-row { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--s-4); padding: var(--s-4); }
.ai-row + .ai-row { border-top: 1px solid var(--border); }
.ai-row > .logo { width: 32px; height: 32px; padding: 4px; }
.ai-row > .logo.own { padding: 0; }
.ai-main { min-width: 0; }
.ai-main p { margin: 0; }
.ai-name { font: 600 15px/22px var(--font); letter-spacing: -0.01em; }
.ai-meta { font: 400 13px/18px var(--font); color: var(--text-3); }
.ai-latest { display: flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-1) !important; font: 400 13px/18px var(--font); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-latest > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ai-latest small { font: inherit; color: var(--text-3); }
.dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); transform: translateY(-1px); }
.dot.tone-hold { background: var(--amber-text); }
.dot.tone-pay { background: var(--accent); }
.dot.tone-bad { background: var(--red-text); }
.ai-stats { display: grid; grid-template-columns: repeat(3, 64px); margin: 0; text-align: right; }
.ai-stats dt { font: var(--text-caption); color: var(--text-3); }
.ai-stats dd { margin: 0; font: 500 15px/22px var(--font); }
.ai-acts { position: relative; display: flex; align-items: center; gap: var(--s-1); }
.ai-acts .confirm { position: static; }
.ai-acts .confirm:first-of-type > summary:hover, .ai-acts .confirm:first-of-type[open] > summary { color: var(--text); background: var(--surface-2); }
.ai-acts .confirm form { right: 0; }
.ai-acts .confirm label { justify-self: start; margin: 0; font: var(--text-caption); color: var(--text-3); }
.ai-acts .confirm input { min-height: 36px; padding: 6px 10px; font: 500 14px/20px var(--font); }
.ai-acts .confirm:first-of-type button { color: var(--surface); background: var(--text); }
.ai-acts .confirm input[aria-invalid="true"] { border-color: var(--red-text); }
.confirm form .field-error, .field-error { margin: calc(-1 * var(--s-1)) 0 0; font: var(--text-label); color: var(--red-text); }
.ai-add { margin-top: var(--s-8); }
.plain { margin: 0; padding: var(--s-2) var(--s-4) var(--s-4); list-style: none; display: grid; gap: var(--s-2); font: var(--text-body); }
.plain small { color: var(--text-3); }

.doc { display: grid; gap: var(--s-6); min-width: 0; }
.doc-sec .sec-title { margin-bottom: var(--s-2); }
.doc-side { position: sticky; top: 80px; }
.doc-rows { display: grid; margin: 0; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.doc-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); min-height: 44px; padding: var(--s-3) var(--s-4); }
.doc-rows > div + div { border-top: 1px solid var(--border); }
.doc-rows dt { flex: none; font: var(--text-label); color: var(--text-3); }
.doc-rows dd { margin: 0; font: 500 14px/20px var(--font); text-align: right; overflow-wrap: anywhere; }
.doc-rows s { color: var(--text-3); font-weight: 400; }
.price-total dd { font: 600 16px/24px var(--font); }
.price .sub dt, .price .sub dd { font-weight: 400; color: var(--text-3); }
.price .saved dt, .price .saved dd { color: var(--green-text); }
.by { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; }
.by .logo { width: 20px; height: 20px; padding: 2px; }
.by .logo.own { padding: 0; }
.doc-main { width: 100%; }
.doc-links { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.doc-links li + li { border-top: 1px solid var(--border); }
.doc-links a, .doc-links button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 var(--s-4); border: 0; border-radius: 0; font: 500 14px/20px var(--font); color: var(--text); background: none; text-decoration: none; text-align: left; cursor: pointer; }
.doc-links a::after, .doc-links button::after { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--text-3); border-right: 1.5px solid var(--text-3); transform: rotate(45deg); }
.doc-links li:first-child > * { border-radius: var(--r-md) var(--r-md) 0 0; }
.doc-links li:last-child > * { border-radius: 0 0 var(--r-md) var(--r-md); }
.doc-links li:only-child > * { border-radius: var(--r-md); }
.doc-links a:hover, .doc-links button:hover { color: var(--text); background: var(--gray-2); }
.legs { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.leg { padding: var(--s-4); }
.leg + .leg { border-top: 1px solid var(--border); }
.leg-top { display: flex; align-items: center; gap: var(--s-2); margin: 0; font: 500 14px/20px var(--font); }
.leg-top small { font: var(--text-body); color: var(--text-3); }
.leg-day { margin-left: auto; font: var(--text-label); color: var(--text-2); white-space: nowrap; }
.leg-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); margin-top: var(--s-3); }
.leg-end { margin: 0; }
.leg-end b { display: block; font: 600 20px/28px var(--font); letter-spacing: -0.01em; }
.leg-end b sup { margin-left: 2px; font: 500 11px/1 var(--font); color: var(--amber-text); vertical-align: top; }
.leg-end span { font: var(--text-label); color: var(--text-2); }
.leg-end.to { text-align: right; }
.leg-path { display: grid; gap: 4px; justify-items: center; margin: 0; font: var(--text-caption); color: var(--text-3); text-align: center; }
.leg-path i { width: 100%; height: 1px; background: var(--border-strong); }
.leg-pnr { margin: var(--s-3) 0 0; font: var(--text-label); color: var(--text-3); }
.leg-pnr b { margin-left: var(--s-1); color: var(--text); letter-spacing: 0.04em; }
.stay-head { display: grid; gap: 2px; justify-items: start; margin-bottom: var(--s-3); }
.stay-name { margin: 0; font: 600 18px/24px var(--font); letter-spacing: -0.01em; }
.stay-where { margin: 0 0 var(--s-2); font: var(--text-body); color: var(--text-2); }
.story { position: relative; margin: 0; padding: 0 0 0 var(--s-5); list-style: none; }
.story::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.story li { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-2) 0; }
.story li::before { content: ""; position: absolute; left: calc(-1 * var(--s-5) + 1px); top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1.5px var(--text-3); }
.story li.tone-hold::before { box-shadow: 0 0 0 1.5px var(--amber-text); }
.story li.tone-pay::before { box-shadow: 0 0 0 1.5px var(--accent); }
.story li.tone-bad::before { box-shadow: 0 0 0 1.5px var(--red-text); }
.story li.now::before { background: var(--text); box-shadow: none; }
.story li.now.tone-ok::before { background: var(--green-text); }
.story li.now.tone-pay::before { background: var(--accent); }
.story li.now.tone-hold::before { background: var(--amber-text); }
.story time { font: var(--text-label); color: var(--text-3); padding-top: 1px; }
.story p { margin: 0; min-width: 0; }
.story b { display: block; font: 500 14px/20px var(--font); }
.story small { display: block; font: 400 13px/18px var(--font); color: var(--text-3); }

/* A hotel stay: photos, rooms, cancellation, amenities and the hotel's rules. */
.gallery { min-width: 0; }
.gal { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 132px); grid-auto-columns: 176px; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); }
.gal::-webkit-scrollbar { display: none; }
.gal li { overflow: hidden; scroll-snap-align: start; background: var(--surface-2); }
.gal li:first-child { grid-row: span 2; grid-column: span 2; }
.gal.one { grid-template-rows: 268px; grid-auto-columns: 100%; }
.gal.one li:first-child { grid-row: auto; grid-column: auto; }
.gal img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal-count { margin: var(--s-2) 0 0; font: var(--text-caption); color: var(--text-3); }
.stars { margin-left: var(--s-2); font-size: 11px; letter-spacing: 1px; color: var(--amber-text); }
.room { display: grid; gap: var(--s-2); padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.room + .room { margin-top: var(--s-2); }
.room-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.room-head b { font: 600 15px/22px var(--font); letter-spacing: -0.01em; }
.room-facts, .room-guests { margin: 0; font: var(--text-label); color: var(--text-2); }
.room-guests { margin-bottom: var(--s-2); }
.room-rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-1) var(--s-4); margin: 0; }
.room-rows > div { display: contents; }
.room-rows dt { font: var(--text-label); color: var(--text-3); }
.room-rows dd { margin: 0; font: 400 14px/20px var(--font); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 2px var(--s-2); border-radius: 999px; font: var(--text-caption); color: var(--text-2); background: var(--surface-2); }
.fold > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; font: var(--text-label); color: var(--text-2); cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary span { color: var(--text-3); }
.fold > summary::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg) translateY(-2px); }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold > p { margin: var(--s-2) 0 0; font: 400 13px/20px var(--font); color: var(--text-2); }
.cancel-head { margin: 0 0 var(--s-2); font: 500 14px/20px var(--font); }
.cancel-head.ok { color: var(--green-text); }
.cancel-room + .cancel-room { margin-top: var(--s-4); }
.cancel-room h3 { margin: 0 0 var(--s-1); font: var(--text-label); color: var(--text-2); }
.cancel { position: relative; margin: 0; padding: 0 0 0 var(--s-5); list-style: none; }
.cancel::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.cancel li { position: relative; padding: var(--s-2) 0; }
.cancel li::before { content: ""; position: absolute; left: calc(-1 * var(--s-5) + 1px); top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1.5px var(--amber-text); }
.cancel li.ok::before { box-shadow: 0 0 0 1.5px var(--green-text); }
.cancel-row { display: flex; justify-content: space-between; gap: var(--s-4); margin: 0; font: 500 14px/20px var(--font); }
.cancel-row b { flex: none; font-weight: 600; }
.cancel li.ok .cancel-row b { color: var(--green-text); }
.cancel small { display: block; font: 400 13px/18px var(--font); color: var(--text-3); }
.amen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-5); margin: 0; }
.amen dt { font: var(--text-label); color: var(--text-3); }
.amen dd { margin: 2px 0 0; font: 400 14px/20px var(--font); }
.fold .amen { margin-top: var(--s-3); }
.policies h3 { margin: var(--s-4) 0 var(--s-1); font: 500 13px/18px var(--font); color: var(--text); }
.policies ul { margin: 0; padding-left: var(--s-5); font: 400 13px/18px var(--font); color: var(--text-2); }
.policies li + li { margin-top: 2px; }
.bags { display: grid; gap: var(--s-1); margin: var(--s-3) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--border); }
.bags > div { display: flex; justify-content: space-between; gap: var(--s-4); font: var(--text-label); }
.bags dt { color: var(--text-3); }
.bags dd { margin: 0; text-align: right; }
.layovers { margin: var(--s-2) 0 0; padding: 0; list-style: none; font: var(--text-label); color: var(--amber-text); }
.leg-line[hidden] + .segs { margin-top: var(--s-2); }
.segs { margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.hop { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: var(--s-3); }
.seg-time { margin: 0; }
.seg-time b { display: block; font: 600 15px/20px var(--font); }
.seg-time sup { margin-left: 2px; font: 500 11px/1 var(--font); color: var(--amber-text); vertical-align: top; }
.seg-time small { display: block; font: var(--text-caption); color: var(--text-3); }
.seg-place { position: relative; margin: 0; padding-left: var(--s-4); font: 400 13px/20px var(--font); color: var(--text-2); }
.seg-place::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1.5px var(--text-3); }
.seg-place b { margin-right: var(--s-1); font: 600 14px/20px var(--font); color: var(--text); }
.seg-meta { grid-column: 2; margin: 0 0 0 3px; padding: var(--s-2) 0 var(--s-2) 13px; border-left: 1px solid var(--border-strong); font: 400 13px/18px var(--font); color: var(--text-3); }
.term { display: inline-block; padding: 0 5px; border-radius: var(--r-xs); font: var(--text-caption); line-height: 18px; color: var(--text-2); background: var(--surface-2); }
.segs .layover { margin: var(--s-2) 0 var(--s-2) calc(52px + var(--s-3)); padding: var(--s-1) var(--s-3); border-radius: var(--r-sm); font: var(--text-label); color: var(--amber-text); background: var(--amber-subtle); }
.segs .layover small { color: inherit; opacity: .8; }
.fare-rules + .fare-rules { margin-top: var(--s-5); }
.rules-head { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.rules-head:empty { display: none; }
.rules-head b { font: 500 14px/20px var(--font); }
.fare-rules h3 { margin: var(--s-3) 0 var(--s-1); font: 500 13px/18px var(--font); color: var(--text-2); }
.rules { margin: 0; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.rules > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-2) var(--s-3); }
.rules > div + div { border-top: 1px solid var(--border); }
.rules dt { font: var(--text-label); color: var(--text-2); }
.rules dd { margin: 0; text-align: right; font: 500 14px/20px var(--font); }
.rules dd small { display: block; font: var(--text-caption); color: var(--text-3); }
.rules-note { margin: var(--s-3) 0 0; font: 400 13px/18px var(--font); color: var(--text-3); }
.rules-terms { margin: var(--s-2) 0 0; padding-left: var(--s-5); font: 400 13px/18px var(--font); color: var(--text-2); }
.layovers small { margin-left: var(--s-1); font: inherit; color: var(--text-3); }

@media (max-width: 860px) {
  .doc-side { position: static; }
  /* One column: photos, the pass and its legs; what to do with it; the stay; contacts; the story. */
  .doc-page .doc-grid { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-5); }
  .doc-page .doc, .doc-page .doc-side { display: contents; }
  .doc-page .doc > * { order: 1; }
  .doc-page .doc-side > * { order: 2; }
  .doc-page .doc > .doc-sec { order: 3; }
  .doc-page .doc > [aria-labelledby="itinerary-title"] { order: 1; }
  .doc-page .doc-side > [aria-labelledby="hotel-title"], .doc-page .doc-side > [aria-labelledby="contact-title"] { order: 4; }
  .doc-page .doc > [aria-labelledby="story-title"] { order: 5; }
}
@media (max-width: 700px) {
  .feed-row { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "logo main status" "logo time status"; column-gap: var(--s-3); padding: var(--s-3) var(--s-4); }
  .feed-row .logo { grid-area: logo; align-self: start; margin-top: 2px; }
  .feed-main { grid-area: main; }
  .feed-main b, .feed-main small { white-space: normal; }
  .feed-row time { grid-area: time; font: var(--text-caption); }
  .feed-row .label { grid-area: status; align-self: start; }
  .filter-row { margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); }
  .ai-row { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "logo main" "logo stats" "logo acts"; row-gap: var(--s-3); }
  .ai-row > .logo { grid-area: logo; align-self: start; }
  .ai-main { grid-area: main; }
  .ai-latest, .ai-latest > span:last-child { white-space: normal; }
  .ai-stats { grid-area: stats; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-6); text-align: left; }
  .ai-acts { grid-area: acts; }
  .story li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gal { grid-template-rows: repeat(2, 96px); grid-auto-columns: 128px; margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); border-radius: 0; scroll-padding-inline: var(--s-4); }
  .gal.one { grid-template-rows: 220px; }
  .gal li { border-radius: var(--r-sm); }
  .amen { grid-template-columns: minmax(0, 1fr); }
  .leg-end b { font-size: 18px; }
  .ob-duo { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .duo-pane { padding: var(--s-3); }
  .chat-body { min-height: 132px; }
  body.onboard.wide .ob-title, body.onboard.wide .ob-sub { text-align: left; }
  .pair { padding-inline: 0; }
}

.pw { max-width: 780px; margin: 0 auto; display: grid; gap: 22px; }
/* A name or a fare with no space in it breaks rather than widening the page. */
.pw-head h1 { margin: 0 0 8px; overflow-wrap: anywhere; }
/* The pass is its own paint layer (its entrance animation); what follows it sits above its shadow. */
.pw-cta, .pw-methods, .pw-trust, .pw-actions, .pw-handoff form, .pw-passports, .pw-rules { position: relative; z-index: 1; }
.pw-head p { margin: 0; color: var(--text-2); font-size: 17.5px; max-width: 54ch; overflow-wrap: anywhere; }
/* Each way's fare rules and bags, under the pass and before Pay: the booking page's own rows, on a card. */
.pw-rules { padding: 18px 22px 20px; border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); }
.pw-rules .sec-title { margin: 0 0 12px; }

.pw-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 500 13px var(--mono); color: var(--text-3); }
.pw-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px var(--warn-wash); }
.pw-was { color: var(--text-3); font-weight: 400; }
.pw-price { margin: 18px 0 4px; }
.pw-kicker.ok::before { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-wash); }
.pw-kicker.live::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); animation: pw-pulse 1.3s ease-in-out infinite; }

.bp {
  --paper: var(--surface); --paper-ink: var(--text); --paper-soft: var(--text-2); --paper-line: var(--rule-2);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 216px; min-width: 0;
  background: var(--paper); color: var(--paper-ink); border-radius: 22px; isolation: isolate; overflow: hidden;
  border: 1px solid var(--rule); box-shadow: 0 40px 80px -56px rgba(16, 20, 27, 0.55);
  animation: bp-rise .95s var(--out) both;
}
.bp-main { min-width: 0; padding-bottom: 26px; }
.bp-band {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 26px; color: var(--bg);
  background: var(--text);
}
.bp-brand { font-weight: 800; font-size: 18px; letter-spacing: -0.03em; white-space: nowrap; }
.bp-brand em { font: italic 400 19px var(--serif); opacity: .88; margin-left: 3px; }
.bp-state { padding: 5px 12px; border-radius: 999px; font: 600 12.5px var(--display); background: color-mix(in srgb, var(--bg) 16%, transparent); white-space: nowrap; }
.bp-state.ok { background: #fff; color: var(--paper-ink); }

.bp-leg { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px 14px; padding: 26px 26px 4px; }
.bp-leg + .bp-leg { border-top: 1.5px dashed var(--paper-line); margin-top: 18px; }
.bp-place { min-width: 0; }
.bp-place.to { text-align: right; }
.bp-code { display: block; font-weight: 800; font-stretch: 75%; font-size: clamp(56px, 13vw, 96px); line-height: .86; letter-spacing: -0.02em; }
.bp-when { display: block; margin-top: 10px; font: 600 17px var(--mono); letter-spacing: -0.01em; }
.bp-day { display: block; margin-top: 2px; font-size: 14px; color: var(--paper-soft); }
.bp-path { width: clamp(76px, 17vw, 150px); height: 58px; color: var(--accent); overflow: visible; }
.bp-path .arc { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .75; }
.bp-path .plane { fill: var(--paper-ink); }
.bp-path .dot { fill: currentColor; }
.bp-stops { grid-column: 1 / -1; justify-self: center; margin-top: 10px; padding: 4px 12px; border-radius: 999px; font: 600 12.5px var(--mono); letter-spacing: .02em; color: var(--paper-soft); background: var(--surface-2); }
.bp-stops.via { color: var(--warn); background: var(--warn-wash); }
.bp-leg-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 14.5px; color: var(--paper-soft); }
.bp-leg-meta strong { color: var(--paper-ink); font-weight: 700; }
.bp-leg-meta .pnr { margin-left: auto; font: 700 14px var(--mono); letter-spacing: .04em; color: var(--paper-ink); }
.bp-leg-meta .pnr small { font: 500 11px var(--mono); color: var(--paper-soft); margin-right: 6px; }

.bp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 16px 20px; margin: 22px 26px 0; padding-top: 20px; border-top: 1.5px dashed var(--paper-line); }
.bp-fields dt { font: 500 11px var(--mono); color: var(--paper-soft); }
.bp-fields dd { margin: 5px 0 0; font-weight: 700; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.bp-fields dd.code { font: 700 23px var(--mono); letter-spacing: .04em; }
.bp-fields dd.pending { font-weight: 600; color: var(--paper-soft); }
.bp-fields .wide { grid-column: 1 / -1; }

.bp-stub {
  position: relative; display: grid; align-content: space-between; gap: 20px; padding: 24px 22px; min-width: 0;
  border-left: 1.5px dashed var(--paper-line); background: var(--surface-2);
}
.bp-stub::before, .bp-stub::after { content: ""; position: absolute; left: -17px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); z-index: 2; }
.bp-stub::before { top: -16px; }
.bp-stub::after { bottom: -16px; }
.bp-stub-label { font: 500 11px var(--mono); color: var(--paper-soft); }
.bp-total { margin-top: 4px; font-weight: 800; font-size: clamp(26px, 4vw, 34px); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bp-by { margin-top: 14px; font-size: 13.5px; color: var(--paper-soft); }
.bp-by strong { color: var(--paper-ink); }
.bp-total.paid { color: var(--ok); }
.bp-barcode { display: block; width: 100%; height: 66px; fill: var(--paper-ink); }
.bp-ref { margin-top: 8px; font: 500 11px var(--mono); color: var(--paper-soft); overflow-wrap: anywhere; }

.kc {
  position: relative; margin: 22px 26px 0; padding: 22px 22px 0; border-radius: 18px; color: var(--bg); overflow: hidden; isolation: isolate;
  background: var(--text);
}
.kc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, color-mix(in srgb, var(--bg) 5%, transparent) 0 1px, transparent 1px 9px); }
.kc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kc-chip { width: 48px; height: 36px; border-radius: 9px; flex: none;
  background: color-mix(in srgb, var(--bg) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 30%, transparent); }
.kc-tap { font: 500 12px var(--mono); opacity: .75; }
.kc-name { margin: 26px 0 6px; font: italic 400 clamp(34px, 7vw, 54px)/0.98 var(--serif); letter-spacing: -0.02em; overflow-wrap: anywhere; text-wrap: balance; }
.kc-where { font-size: 14.5px; opacity: .88; }
.kc-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; margin-top: 22px; }
.kc-dates .to { text-align: right; }
.kc-date { display: block; font-weight: 800; font-size: clamp(22px, 4.5vw, 30px); letter-spacing: -0.03em; line-height: 1; }
.kc-dates small { display: block; margin-bottom: 6px; font: 500 11px var(--mono); opacity: .7; }
.kc-nights { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 14%, transparent); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.kc-stripe { height: 30px; margin: 22px -22px 0; background: var(--accent); }

.pw-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.pw-step { display: grid; gap: 9px; color: var(--text-3); font-weight: 600; font-size: 14px; line-height: 1.25; }
.pw-step::before { content: ""; height: 4px; border-radius: 999px; background: var(--rule-2); }
.pw-step.done { color: var(--text-2); }
.pw-step.done::before { background: var(--text); }
.pw-step.now { color: var(--text); }
.pw-step.now::before { background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--accent)); background-size: 300% 100%; animation: pw-flow 1.6s linear infinite; }
.pw-step.bad::before { background: var(--bad); }

.pw-payer { display: grid; gap: 8px; margin-top: 18px; }
.pw-payer label { font-weight: 600; font-size: 14px; }
.pw-payer .pw-cta { margin-top: 10px; }
.pw-passports { display: grid; gap: var(--s-4); padding: var(--s-5) var(--s-4); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface); }
.pw-passports h2, .pw-passports p, .pw-passports .pw-actions { margin: 0; }
.pw-passports > p { color: var(--text-2); font-size: 15px; line-height: 22px; }
.pw-passports form { display: grid; gap: var(--s-4); margin: 0; }
.pw-passport { min-width: 0; margin: 0; padding: var(--s-4); border: 1px solid var(--rule-2); border-radius: var(--r-md); }
.pw-passport.wrong { border-color: var(--bad); }
/* A floated legend sits inside the box rather than across its border. */
.pw-passport legend { float: left; width: 100%; margin-bottom: var(--s-2); padding: 0; font: var(--text-heading); overflow-wrap: anywhere; }
.pw-passport legend + * { clear: both; }
.pw-passport legend .hint { display: block; margin: 0; font: var(--text-caption); color: var(--text-3); }
.pw-passport .field-error { margin: var(--s-2) 0 0; }
.pw-passport label { margin: var(--s-3) 0 var(--s-1); }
.pw-passport input, .pw-passport select {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  font: 400 16px/22px var(--font); color: var(--text); background: var(--surface);
}
.pw-passport [aria-invalid="true"] { border-color: var(--bad); }
.pw-passport-fields { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s-3); }
.pw-gst-field .hint { margin: 0 0 var(--s-1); font: var(--text-caption); color: var(--text-3); }
@media (min-width: 560px) { .pw-passport-fields { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
/* A long fare wraps inside the button: on a 280px screen "Pay ₹1,23,456.78 securely" takes two lines. */
.pw-cta {
  width: 100%; min-height: 60px; font-size: 18px; letter-spacing: -0.015em;
  white-space: normal; text-align: center; text-wrap: balance;
}
.pw-cta .lock { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pw-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pw-methods li { padding: 5px 11px; border-radius: 8px; font: 500 12.5px var(--mono); color: var(--text-2); background: var(--surface-2); }
.pw-trust { margin: 0; color: var(--text-3); font-size: 14px; text-align: center; text-wrap: balance; }
.pw-hold { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--text-2); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.pw-hold::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.pw-hold .pw-left { font: 600 14px var(--mono); color: var(--text); }
.pw-dismissed-note, .pw-failed-note, .pw-hosted-note { display: none; margin: 0; text-align: center; font-size: 14.5px; color: var(--text-2); }
.pw-dismissed .pw-dismissed-note, .pw-failed .pw-failed-note, .pw-hosted .pw-hosted-note { display: block; }
.pw-failed .pw-dismissed-note { display: none; }
.pw-changed-note { display: none; margin: 0; text-align: center; font-size: 14.5px; color: var(--text-2); }
.pw-changed .pw-changed-note { display: block; }
.pw-changed .pw-dismissed-note, .pw-changed .pw-failed-note { display: none; }
.pw-slow { margin: 0; text-align: center; font-size: 14.5px; color: var(--text-2); text-wrap: balance; }
.pw-note { margin: var(--s-3) 0 0; text-align: center; font-size: 14.5px; color: var(--text-2); text-wrap: balance; }
.pw-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
/* Every way on from a pay page is big enough for a thumb: 44px at the least, a button more. */
.pw-actions .button { min-height: 48px; }
.pw-actions a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; }
/* A choice between not paying and paying: the safe one first and full, the other quiet under it. */
.pw-choice { position: relative; z-index: 1; display: grid; gap: 12px; }
.pw-choice form { margin: 0; }
.pw-choice .pw-cta, .pw-choice .pw-second { width: 100%; height: auto; padding-block: 12px; white-space: normal; text-align: center; text-wrap: balance; }
.pw-choice .pw-second { min-height: 52px; }
.pw-head h1:focus { outline: none; }

.pw-handoff { display: grid; justify-items: center; gap: 18px; padding: clamp(28px, 8vh, 72px) 0 12px; text-align: center; }
.pw-handoff .pw-kicker { margin: 0; }
.pw-amount {
  font-weight: 800; font-stretch: 78%; font-size: clamp(64px, 14vw, 112px); line-height: .9; letter-spacing: -0.03em; color: var(--text);
  font-variant-numeric: tabular-nums;
  animation: bp-rise .8s var(--out) both;
}
.pw-route { font-weight: 700; font-size: 18px; color: var(--text-2); }
.pw-track { position: relative; width: min(440px, 82vw); height: 40px; margin: 6px 0; }
.pw-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--rule-2); }
.pw-track .plane { position: absolute; top: 7px; left: 0; width: 26px; height: 26px; fill: var(--accent); animation: pw-fly 1.9s var(--out) infinite; }
.pw-track .end { position: absolute; right: -4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px var(--ok-wash); }
.pw-handoff form { margin: 0; }

.pw-confetti { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.pw-confetti i { position: absolute; top: -16px; width: 9px; height: 15px; border-radius: 2px; opacity: 0; animation: pw-fall 3.1s cubic-bezier(.22, .61, .36, 1) forwards; }
.pw-confetti i:nth-child(1) { left: 11%; --dx: -20vw; --r: 240deg; animation-delay: 0s; background: var(--accent); border-radius: 50%; height: 9px; }
.pw-confetti i:nth-child(2) { left: 48%; --dx: -8vw; --r: 311deg; animation-delay: 0.2s; background: var(--text);  }
.pw-confetti i:nth-child(3) { left: 85%; --dx: 4vw; --r: 382deg; animation-delay: 0.4s; background: var(--ok);  }
.pw-confetti i:nth-child(4) { left: 22%; --dx: 16vw; --r: 453deg; animation-delay: 0.6s; background: var(--accent-soft); border-radius: 50%; height: 9px; }
.pw-confetti i:nth-child(5) { left: 59%; --dx: -13vw; --r: 524deg; animation-delay: 0.8s; background: var(--accent);  }
.pw-confetti i:nth-child(6) { left: 96%; --dx: -1vw; --r: 595deg; animation-delay: 0.1s; background: var(--text);  }
.pw-confetti i:nth-child(7) { left: 33%; --dx: 11vw; --r: 666deg; animation-delay: 0.3s; background: var(--ok); border-radius: 50%; height: 9px; }
.pw-confetti i:nth-child(8) { left: 70%; --dx: -18vw; --r: 257deg; animation-delay: 0.5s; background: var(--accent-soft);  }
.pw-confetti i:nth-child(9) { left: 7%; --dx: -6vw; --r: 328deg; animation-delay: 0.7s; background: var(--accent);  }
.pw-confetti i:nth-child(10) { left: 44%; --dx: 6vw; --r: 399deg; animation-delay: 0s; background: var(--text); border-radius: 50%; height: 9px; }
.pw-confetti i:nth-child(11) { left: 81%; --dx: 18vw; --r: 470deg; animation-delay: 0.2s; background: var(--ok);  }
.pw-confetti i:nth-child(12) { left: 18%; --dx: -11vw; --r: 541deg; animation-delay: 0.4s; background: var(--accent-soft);  }
.pw-confetti i:nth-child(13) { left: 55%; --dx: 1vw; --r: 612deg; animation-delay: 0.6s; background: var(--accent); border-radius: 50%; height: 9px; }
.pw-confetti i:nth-child(14) { left: 92%; --dx: 13vw; --r: 683deg; animation-delay: 0.8s; background: var(--text);  }
.pw-confetti i:nth-child(15) { left: 29%; --dx: -16vw; --r: 274deg; animation-delay: 0.1s; background: var(--ok);  }
.pw-confetti i:nth-child(16) { left: 66%; --dx: -4vw; --r: 345deg; animation-delay: 0.3s; background: var(--accent-soft); border-radius: 50%; height: 9px; }
.pw-confetti i:nth-child(17) { left: 3%; --dx: 8vw; --r: 416deg; animation-delay: 0.5s; background: var(--accent);  }
.pw-confetti i:nth-child(18) { left: 40%; --dx: 20vw; --r: 487deg; animation-delay: 0.7s; background: var(--text);  }
.pw-confetti i:nth-child(19) { left: 77%; --dx: -9vw; --r: 558deg; animation-delay: 0s; background: var(--ok); border-radius: 50%; height: 9px; }
.pw-confetti i:nth-child(20) { left: 14%; --dx: 3vw; --r: 629deg; animation-delay: 0.2s; background: var(--accent-soft);  }
.pw-confetti i:nth-child(21) { left: 51%; --dx: 15vw; --r: 700deg; animation-delay: 0.4s; background: var(--accent);  }
.pw-confetti i:nth-child(22) { left: 88%; --dx: -14vw; --r: 291deg; animation-delay: 0.6s; background: var(--text); border-radius: 50%; height: 9px; }
.pw-confetti i:nth-child(23) { left: 25%; --dx: -2vw; --r: 362deg; animation-delay: 0.8s; background: var(--ok);  }
.pw-confetti i:nth-child(24) { left: 62%; --dx: 10vw; --r: 433deg; animation-delay: 0.1s; background: var(--accent-soft);  }
.pw-confetti i:nth-child(25) { left: 99%; --dx: -19vw; --r: 504deg; animation-delay: 0.3s; background: var(--accent); border-radius: 50%; height: 9px; }
.pw-confetti i:nth-child(26) { left: 36%; --dx: -7vw; --r: 575deg; animation-delay: 0.5s; background: var(--text);  }
.pw-confetti i:nth-child(27) { left: 73%; --dx: 5vw; --r: 646deg; animation-delay: 0.7s; background: var(--ok);  }
.pw-confetti i:nth-child(28) { left: 10%; --dx: 17vw; --r: 717deg; animation-delay: 0s; background: var(--accent-soft); border-radius: 50%; height: 9px; }

@keyframes bp-rise { from { opacity: 0; transform: translateY(26px) rotate(-1.2deg) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pw-flow { to { background-position: -300% 0; } }
@keyframes pw-pulse { 50% { box-shadow: 0 0 0 8px transparent; transform: scale(.85); } }
@keyframes pw-fly { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(calc(min(440px, 82vw) - 30px)); opacity: 0; } }
@keyframes pw-fall {
  0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx), 108vh, 0) rotate(var(--r)); }
}

@media (prefers-color-scheme: dark) {
  .bp-band, .kc { color: #F4F1FF; background: #2A1F5E; }
  .bp-state { background: rgba(244, 241, 255, .14); }
  .bp-state.ok { color: #160F33; background: var(--lime); }
  .kc::after { background: repeating-linear-gradient(115deg, rgba(244, 241, 255, .05) 0 1px, transparent 1px 9px); }
  .kc-chip { background: rgba(244, 241, 255, .16); box-shadow: inset 0 0 0 1px rgba(244, 241, 255, .28); }
  .kc-nights { background: rgba(244, 241, 255, .14); }
}
@media (max-width: 680px) {
  .bp { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .bp-band, .bp-leg { padding-inline: 20px; }
  .bp-fields, .kc { margin-inline: 20px; }
  .bp-stub { border-left: 0; border-top: 1.5px dashed var(--paper-line); grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 18px; padding: 22px 20px; }
  .bp-stub::before { top: -17px; left: -16px; }
  .bp-stub::after { top: -17px; bottom: auto; left: auto; right: -16px; }
  .pw-steps { gap: 8px; }
  .pw-step { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .bp, .pw-amount, .pw-step.now::before, .pw-track .plane, .pw-kicker.live::before { animation: none !important; }
  .pw-track .plane { left: auto; right: 12px; }
  .pw-confetti { display: none; }
}

.fa-fare {
  display: grid; gap: 10px; min-width: 0; padding: 22px 22px 20px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 40px 80px -56px rgba(16, 20, 27, 0.55);
  animation: bp-rise .95s var(--out) both;
}
.fa .pw-head h1 { text-wrap: balance; }
.fa-fare p, .fa-over p, .fa-elsewhere p { margin: 0; }
.fa-codes { font: 600 13px var(--mono); letter-spacing: .04em; color: var(--text-3); }
.fa-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.fa-now { font-weight: 800; font-stretch: 78%; font-size: clamp(48px, 13vw, 76px); line-height: .95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fa-now small { margin-right: 2px; font: 600 18px var(--font); letter-spacing: 0; color: var(--text-2); }
.fa-was { font-size: 17px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.fa-was s { text-decoration-thickness: 1.5px; }
.fa-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.fa-facts li { padding: 5px 11px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface-2); }
.fa-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.fa-photo.none { display: grid; place-items: center; font-size: clamp(40px, 12vw, 64px); font-weight: 700; letter-spacing: .04em; color: var(--accent-text); background: linear-gradient(135deg, var(--accent-subtle), var(--surface-2)); }
.fa-stay { font-size: 22px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.fa-facts li.ok { color: var(--green-text); background: var(--green-subtle); }
.fa-facts li.bad { color: var(--red-text); background: var(--red-subtle); }
.fa-elsewhere > a.pw-cta, .fa-elsewhere > a.pw-cta:hover { color: #fff; }
.fa-elsewhere > button.link { justify-self: center; font-size: 15px; }
.fa .pw-hold[hidden], .fa-over[hidden] { display: none; }
.fa-over, .fa-elsewhere { position: relative; z-index: 1; display: grid; justify-items: start; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--surface-2); }
.fa-over p { font-weight: 600; }
.fa-elsewhere p { color: var(--text-2); }
.fa-elsewhere p strong { color: var(--text); font-size: 17px; }
.fa-elsewhere .pw-cta { justify-self: stretch; }
.fa-elsewhere > a { color: var(--text-2); font-weight: 600; }
.fa-copied { font-weight: 600; color: var(--ok); }
.fa-message { display: block; justify-self: stretch; width: 100%; margin: 0; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); font: 400 16px/22px var(--font); color: var(--text); background: var(--surface); resize: none; }
.fa-message[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .fa-fare { animation: none !important; }
}
