/* ══════════════════════════════════════════════════════════════════
   Travel People — Agency Portal
   Evergreen chrome · paper workspace · lime used sparingly
   Display: Bricolage Grotesque · UI: Figtree
   ══════════════════════════════════════════════════════════════════ */

:root {
  --forest: #10261C;
  --forest-2: #17372A;
  --forest-3: #21493A;
  --lime: #C6F04D;
  --leaf: #7DB83A;
  --leaf-strong: #4E8A1E;
  --leaf-ink: #335E11;
  --leaf-wash: #EEF6E2;

  --paper: #F5F7F1;
  --surface: #FFFFFF;
  --surface-2: #FAFBF8;
  --sunken: #EEF1EA;
  --line: #E1E6DA;
  --line-strong: #CBD3C2;
  --ink: #15211A;
  --ink-2: #344238;
  --muted: #5E6C63;
  --faint: #8A968E;

  --amber: #B86E0A;
  --amber-wash: #FDF1DE;
  --red: #B9381F;
  --red-wash: #FCE9E4;
  --sky: #24649C;
  --sky-wash: #E6F0F9;
  --violet: #6A4FB3;
  --violet-wash: #EFEBFA;

  --focus: 0 0 0 3px rgba(125, 184, 58, .45);
  --shadow-1: 0 1px 2px rgba(16, 38, 28, .06), 0 1px 1px rgba(16, 38, 28, .04);
  --shadow-2: 0 10px 30px -12px rgba(16, 38, 28, .25), 0 2px 6px rgba(16, 38, 28, .06);
  --shadow-3: 0 24px 60px -20px rgba(16, 38, 28, .45);

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px;
  --font-ui: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --side-w: 252px;
  --top-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0D1611; --surface: #142019; --surface-2: #17251D; --sunken: #101B15;
  --line: #233428; --line-strong: #2F4536; --ink: #E7EEE5; --ink-2: #C7D3C8; --muted: #98AA9D; --faint: #6F8275;
  --leaf-ink: #B6E07A; --leaf-wash: #1B2C1F; --leaf-strong: #8FCB4A;
  --amber: #F0AE4B; --amber-wash: #2B2112; --red: #F08A72; --red-wash: #2E1712; --sky: #7DB6EA; --sky-wash: #12222F; --violet: #B9A6F2; --violet-wash: #1F1A2E;
  --shadow-2: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1611; --surface: #142019; --surface-2: #17251D; --sunken: #101B15;
    --line: #233428; --line-strong: #2F4536; --ink: #E7EEE5; --ink-2: #C7D3C8; --muted: #98AA9D; --faint: #6F8275;
    --leaf-ink: #B6E07A; --leaf-wash: #1B2C1F; --leaf-strong: #8FCB4A;
    --amber: #F0AE4B; --amber-wash: #2B2112; --red: #F08A72; --red-wash: #2E1712; --sky: #7DB6EA; --sky-wash: #12222F; --violet: #B9A6F2; --violet-wash: #1F1A2E;
    --shadow-2: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.5 var(--font-ui); font-feature-settings: 'ss01', 'tnum' 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100dvh;
}
img { display: block; max-width: 100%; }
svg { display: inline-block; vertical-align: -0.15em; max-width: 100%; }
:where(svg) { width: 1em; height: 1em; flex: none; }
.chart { display: block; }
.layover > svg, .small > svg, .xs > svg, .sub > svg, .fare .small > svg, .notif b > svg { display: inline-block; vertical-align: -0.15em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--leaf-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--lime); color: var(--forest); }
.num, .tabular { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -0.01em; font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
.xs { font-size: .78rem; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hide-sm { }
.boot { min-height: 100dvh; display: grid; place-items: center; background: var(--forest); }
.boot img { animation: boot 1.4s var(--ease) infinite alternate; }
@keyframes boot { from { transform: translateY(2px) rotate(-4deg); opacity: .6; } to { transform: translateY(-4px) rotate(3deg); opacity: 1; } }

/* ── App shell ──────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--forest); color: #D7E3D5; display: flex; flex-direction: column; padding: 18px 14px 14px;
  border-right: 1px solid rgba(255,255,255,.04);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: #fff; }
.brand img { width: 40px; height: auto; }
.brand b { font: 700 1.08rem/1 var(--font-display); letter-spacing: -.01em; display: block; }
.brand small { display: block; color: #93AE98; font-size: .72rem; margin-top: 3px; }
.nav-group { margin-top: 14px; }
.nav-group > span { display: block; color: #7F9A85; font-size: .74rem; font-weight: 600; padding: 0 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: #C6D4C5;
  text-decoration: none; font-weight: 500; font-size: .93rem; position: relative;
}
.nav a svg { width: 18px; height: 18px; opacity: .8; flex: none; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.active { background: var(--forest-3); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lime); }
.nav a.active svg { opacity: 1; color: var(--lime); }
.nav .count { margin-left: auto; font-size: .72rem; font-weight: 700; background: var(--amber); color: #fff; padding: 1px 7px; border-radius: 99px; }
.side-foot { margin-top: auto; padding-top: 16px; }
.side-card { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; font-size: .8rem; color: #A9BFAC; line-height: 1.45; }
.side-card b { color: #fff; font-weight: 600; }
.side-card a { color: var(--lime); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 12px;
  padding: 0 28px; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .menu-btn { display: none; }
.top-search { flex: 1; max-width: 460px; position: relative; }
.top-search input { width: 100%; height: 40px; padding: 0 70px 0 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.top-search input::placeholder { color: var(--faint); }
.top-search svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--faint); }
.top-search kbd { position: absolute; right: 10px; top: 9px; }
kbd { font: 600 .72rem var(--font-ui); background: var(--sunken); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mode-pill { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); white-space: nowrap; text-decoration: none; }
.mode-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-wash); }
.mode-pill.live i { background: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-wash); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2); position: relative; }
.icon-btn:hover { background: var(--sunken); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--paper); }
.kofi-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--forest); color: #fff; font-weight: 600; font-size: .9rem;
}
.kofi-btn .orb { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #E6FF9B, var(--lime) 45%, var(--leaf) 100%); color: var(--forest); }
.kofi-btn .orb svg { width: 15px; height: 15px; }
.kofi-btn:hover { background: var(--forest-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-wash); color: var(--leaf-ink); font-weight: 700; font-size: .82rem; border: 0; cursor: pointer; flex: none; }

.page { padding: 28px; max-width: 1440px; width: 100%; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: flex-end; gap: 16px; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mobile-nav { display: none; }

/* ── Buttons & controls ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s;
}
.btn:hover { background: var(--sunken); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.primary:hover { background: var(--forest-2); }
:root[data-theme="dark"] .btn.primary { background: var(--lime); border-color: var(--lime); color: var(--forest); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--lime); border-color: var(--lime); color: var(--forest); } }
.btn.accent { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.btn.accent:hover { filter: brightness(.96); }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.btn.danger.solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--sunken); }
.btn.sm { height: 32px; padding: 0 11px; font-size: .84rem; border-radius: 8px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 1rem; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--muted); }
.field .err { font-size: .78rem; color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.input:hover { border-color: var(--faint); }
.input:focus { outline: none; border-color: var(--leaf); box-shadow: var(--focus); }
.input.invalid { border-color: var(--red); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235E6C63' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--leaf-strong); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.seg { display: inline-flex; padding: 3px; background: var(--sunken); border-radius: 10px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: .86rem; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* ── Panels ─────────────────────────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.panel-h h3 { font-size: 1rem; }
.panel-b { padding: 16px 18px 18px; }
.panel.flush .panel-b { padding: 0; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: .76rem; font-weight: 600; white-space: nowrap; background: var(--sunken); color: var(--muted); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.booked { background: var(--amber-wash); color: var(--amber); }
.pill.ticketed { background: var(--leaf-wash); color: var(--leaf-ink); }
.pill.cancelled, .pill.voided { background: var(--sunken); color: var(--faint); }
.pill.failed { background: var(--red-wash); color: var(--red); }
.pill.pending { background: var(--sky-wash); color: var(--sky); }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: .74rem; font-weight: 600; background: var(--sunken); color: var(--ink-2); }
.tag.lime { background: var(--leaf-wash); color: var(--leaf-ink); }
.tag.sky { background: var(--sky-wash); color: var(--sky); }
.tag.violet { background: var(--violet-wash); color: var(--violet); }
.tag.amber { background: var(--amber-wash); color: var(--amber); }
.countdown { font-weight: 600; font-variant-numeric: tabular-nums; }
.countdown.urgent { color: var(--red); }
.countdown.soon { color: var(--amber); }

/* ── Dashboard ──────────────────────────────────────────────────── */
.hello { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin-bottom: 18px; }
.hello-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px 26px 22px; color: #EAF2E7;
  background: var(--forest);
  background-image: radial-gradient(120% 140% at 100% 0%, rgba(198, 240, 77, .16), transparent 55%), linear-gradient(160deg, var(--forest-2), var(--forest));
}
.hello-card h1 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); max-width: 18ch; }
.hello-card p { color: #A9C0AC; margin-top: 8px; }
.hello-card .route-art { position: absolute; right: 8px; top: 10px; width: 230px; opacity: .45; pointer-events: none; }
.hello-card h1, .hello-card p { position: relative; }
.quick { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 8px; border-radius: 14px; position: relative; z-index: 1; }
.quick input { height: 44px; border-radius: 10px; border: 0; padding: 0 12px; background: #fff; color: #15211A; color-scheme: light; min-width: 0; font: inherit; font-size: 1rem; }
.quick input::placeholder { color: #6B7A70; opacity: 1; }
.quick input[type="date"]::-webkit-datetime-edit { color: #15211A; }
.quick input[type="date"]::-webkit-calendar-picker-indicator { opacity: .75; cursor: pointer; }
.quick input:focus { outline: 3px solid var(--lime, #C8E63C); outline-offset: 1px; }
.quick > * { min-width: 0; }
.quick input { width: 100%; }
.quick .btn { height: 42px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; text-decoration: none; color: inherit; }
.kpi .k-label { font-size: .82rem; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .k-label svg { width: 15px; height: 15px; }
.kpi .k-value { font: 600 1.55rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi .k-value small { font: 500 .8rem var(--font-ui); color: var(--muted); margin-right: 4px; letter-spacing: 0; }
.kpi .k-foot { font-size: .78rem; color: var(--muted); }
.kpi.warn { border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); background: linear-gradient(180deg, var(--amber-wash), var(--surface) 70%); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.dash-grid > .stack { gap: 18px; }

.chart { width: 100%; height: 220px; }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 2 4; }
.chart .axis { fill: var(--faint); font-size: 11px; font-family: var(--font-ui); }
.chart .area { fill: url(#areaFill); }
.chart .line { fill: none; stroke: var(--leaf-strong); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .bar { fill: color-mix(in srgb, var(--leaf) 30%, transparent); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:hover + .tip, .chart .tipg:hover .tip { opacity: 1; }
.chart-tip { position: absolute; pointer-events: none; background: var(--forest); color: #fff; font-size: .78rem; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow-2); }
.chart-wrap { position: relative; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list > li.clickable { cursor: pointer; }
.list > li.clickable:hover { background: var(--surface-2); }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 34px; height: 34px; color: var(--faint); }
.empty b { color: var(--ink); font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bars .b-row { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 10px; font-size: .85rem; }
.bars .b-track { height: 8px; background: var(--sunken); border-radius: 99px; overflow: hidden; }
.bars .b-fill { height: 100%; border-radius: 99px; background: var(--leaf); }
.activity li { align-items: flex-start; }
.activity .a-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--sunken); display: grid; place-items: center; flex: none; color: var(--muted); }
.activity .a-dot svg { width: 14px; height: 14px; }

/* Airline badge (code mark, not a logo reproduction) */
.al { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 .78rem/1 var(--font-ui); letter-spacing: .02em; color: #fff; flex: none; }
.al.sm { width: 26px; height: 26px; border-radius: 8px; font-size: .68rem; }

/* ── Flight search ──────────────────────────────────────────────── */
.search-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px; box-shadow: var(--shadow-1); }
.search-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) minmax(0, .72fr) minmax(0, .72fr) minmax(0, .9fr) auto; gap: 8px; align-items: end; }
.search-row.multi { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) minmax(0, .8fr) 40px; }
.swap { width: 36px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.swap:hover { color: var(--ink); background: var(--sunken); }
.swap svg { width: 16px; height: 16px; }
.f-dates { display: contents; }
.pax-btn { height: 42px; width: 100%; text-align: left; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popover { position: absolute; z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); padding: 14px; min-width: 280px; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; gap: 16px; }
.stepper .ctl { display: inline-flex; align-items: center; gap: 10px; }
.stepper .ctl button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.stepper .ctl button:disabled { opacity: .35; cursor: default; }
.stepper .ctl span { min-width: 18px; text-align: center; font-weight: 700; }

.ac { position: relative; }
.ac-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-3); padding: 4px; max-height: 320px; overflow: auto; min-width: 260px; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ac-item.on, .ac-item:hover { background: var(--leaf-wash); }
.ac-item .code { font-weight: 700; width: 38px; color: var(--leaf-ink); }
.ac-item .nm { font-size: .88rem; }
.ac-item .ct { font-size: .76rem; color: var(--muted); }

.results { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.filters { position: sticky; top: calc(var(--top-h) + 16px); }
.filters .panel-b { display: flex; flex-direction: column; gap: 18px; }
.filters h4 { font: 600 .82rem var(--font-ui); color: var(--ink-2); margin-bottom: 8px; }
.filters .opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: .88rem; }
.filters .opt .check { font-size: .88rem; }
.time-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 9px; padding: 6px 8px; font-size: .8rem; cursor: pointer; text-align: left; line-height: 1.25; }
.chip b { display: block; font-size: .82rem; }
.chip.on { border-color: var(--leaf-strong); background: var(--leaf-wash); color: var(--leaf-ink); }
input[type=range] { width: 100%; accent-color: var(--leaf-strong); }
.sort-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.sort-bar button { border: 0; background: transparent; padding: 10px 12px; text-align: left; cursor: pointer; border-right: 1px solid var(--line); }
.sort-bar button:last-child { border-right: 0; }
.sort-bar button span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.sort-bar button b { font: 600 1rem var(--font-display); font-variant-numeric: tabular-nums; }
.sort-bar button.on { background: var(--forest); color: #fff; }
.sort-bar button.on span { color: #A9C0AC; }

/* The boarding pass — signature element */
.pass {
  --notch: 11px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 210px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); margin-bottom: 12px; transition: border-color .15s, box-shadow .2s;
}
.pass:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.pass.open { border-color: var(--leaf); box-shadow: var(--shadow-2); }
.pass-main { padding: 16px 20px; min-width: 0; }
.pass-stub {
  position: relative; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  border-left: 2px dashed var(--line-strong); background: var(--surface-2); border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.pass-stub::before, .pass-stub::after {
  content: ''; position: absolute; left: calc(var(--notch) * -1 - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
}
.pass-stub::before { top: calc(var(--notch) * -1 - 1px); clip-path: inset(50% 0 0 0); }
.pass-stub::after { bottom: calc(var(--notch) * -1 - 1px); clip-path: inset(0 0 50% 0); }
.pass-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pass-head .carrier { font-weight: 600; font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-head .tags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.leg { display: grid; grid-template-columns: 104px minmax(0, 1fr) 104px; align-items: center; gap: 14px; padding: 8px 0; }
.leg + .leg { border-top: 1px dashed var(--line); }
.leg .end { min-width: 0; }
.leg .end.r { text-align: right; }
.leg .t { font: 600 1.35rem/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.leg .t sup { font: 600 .7rem var(--font-ui); color: var(--amber); margin-left: 2px; vertical-align: top; }
.leg .c { font-size: .8rem; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg .c b { color: var(--ink); font-weight: 700; }
.route { position: relative; text-align: center; font-size: .78rem; color: var(--muted); }
.route .line { position: relative; height: 2px; margin: 7px 0; background: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%) 0 0 / 8px 2px repeat-x; }
.route .line::before, .route .line::after { content: ''; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--leaf-strong); background: var(--surface); }
.route .line::before { left: 0; } .route .line::after { right: 0; background: var(--leaf-strong); }
.route .stopdot { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); transform: translateX(-50%); box-shadow: 0 0 0 2px var(--surface); }
.route .plane { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); background: var(--surface); padding: 0 4px; color: var(--leaf-strong); }
.route .plane svg { width: 16px; height: 16px; transform: rotate(90deg); }
.route .st { color: var(--ink-2); font-weight: 600; }
.route .st.direct { color: var(--leaf-ink); }
.price-big { font: 600 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price-big small { font: 600 .78rem var(--font-ui); color: var(--muted); margin-right: 3px; letter-spacing: 0; }
.pass-stub .per { font-size: .78rem; color: var(--muted); }
.pass-foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.pass-foot span { display: inline-flex; align-items: center; gap: 5px; }
.pass-foot svg { width: 14px; height: 14px; }
.linkish { border: 0; background: none; padding: 0; color: var(--leaf-ink); font-weight: 600; cursor: pointer; font-size: .82rem; display: inline-flex; align-items: center; gap: 4px; }
.linkish svg { width: 14px; height: 14px; transition: transform .2s; }
.pass.open .linkish svg { transform: rotate(180deg); }
.fares { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 16px 20px 18px; background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.fare-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.fare { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fare.best { border-color: var(--leaf); box-shadow: inset 0 3px 0 var(--leaf); }
.fare h4 { font: 600 .98rem var(--font-display); }
.fare ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .82rem; }
.fare li { display: flex; align-items: center; gap: 7px; }
.fare li svg { width: 15px; height: 15px; flex: none; }
.fare li.inc svg { color: var(--leaf-strong); }
.fare li.chg { color: var(--ink-2); } .fare li.chg svg { color: var(--amber); }
.fare li.no { color: var(--faint); text-decoration: line-through; } .fare li.no svg { color: var(--faint); }
.fare .f-price { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.seg-detail { margin-top: 14px; display: flex; flex-direction: column; gap: 0; }
.seg-line { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; font-size: .86rem; }
.seg-line .rail { display: flex; flex-direction: column; align-items: center; }
.seg-line .rail i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--leaf-strong); background: var(--surface); }
.seg-line .rail em { flex: 1; width: 2px; background: var(--line-strong); margin: 3px 0; }
.layover { margin: 2px 0 2px 38px; font-size: .8rem; color: var(--amber); background: var(--amber-wash); padding: 5px 10px; border-radius: 8px; width: fit-content; }

.skeleton { position: relative; overflow: hidden; background: var(--sunken); border-radius: 8px; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: shimmer 1.3s infinite; }
:root[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.searching { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--forest); color: #DDE8DA; border-radius: 14px; margin-bottom: 12px; }
.searching .radar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(198,240,77,.25); position: relative; flex: none; }
.searching .radar::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--lime); animation: spin 1s linear infinite; }

/* ── Booking wizard ─────────────────────────────────────────────── */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.steps .st { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; font-size: .84rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.steps .st i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--sunken); font-size: .78rem; }
.steps .st.on { color: var(--ink); border-color: var(--leaf); }
.steps .st.on i { background: var(--forest); color: var(--lime); }
.steps .st.done i { background: var(--leaf-wash); color: var(--leaf-ink); }
.pax-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px; }
.pax-card .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pax-card .ph .n { width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: var(--lime); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.summary { position: sticky; top: calc(var(--top-h) + 16px); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .88rem; }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1rem; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: .86rem; align-items: flex-start; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice.warn { background: var(--amber-wash); color: color-mix(in srgb, var(--amber) 80%, var(--ink)); }
.notice.info { background: var(--sky-wash); color: color-mix(in srgb, var(--sky) 85%, var(--ink)); }
.notice.ok { background: var(--leaf-wash); color: var(--leaf-ink); }
.notice.err { background: var(--red-wash); color: color-mix(in srgb, var(--red) 85%, var(--ink)); }

/* Confirmation boarding pass */
.ticket-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; background: var(--forest); color: #EAF2E7; border-radius: var(--r-xl); overflow: visible; position: relative; margin-bottom: 18px; }
.ticket-hero .th-main { padding: 26px 28px; }
.ticket-hero .th-stub { padding: 26px 24px; border-left: 2px dashed rgba(255,255,255,.18); position: relative; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.ticket-hero .th-stub::before, .ticket-hero .th-stub::after { content: ''; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); }
.ticket-hero .th-stub::before { top: -12px; } .ticket-hero .th-stub::after { bottom: -12px; }
.ticket-hero .lbl { font-size: .78rem; color: #93AE98; }
.ticket-hero .pnr { font: 700 2.6rem/1 var(--font-display); letter-spacing: .06em; color: var(--lime); }
.ticket-hero .big-route { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.ticket-hero .big-route b { font: 700 2.4rem/1 var(--font-display); color: #fff; letter-spacing: .02em; }
.ticket-hero .big-route svg { width: 26px; height: 26px; color: var(--lime); }
.ticket-hero .meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin-top: 20px; }
.ticket-hero .meta div b { display: block; color: #fff; font-weight: 600; margin-top: 2px; }

/* ── Tables ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.t th { text-align: left; font-weight: 600; font-size: .78rem; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr.clickable { cursor: pointer; }
table.t tbody tr.clickable:hover td { background: var(--surface-2); }
table.t .pnr { font-weight: 700; letter-spacing: .04em; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 12px; font-weight: 600; font-size: .88rem; color: var(--muted); text-decoration: none; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs .on { color: var(--ink); border-bottom-color: var(--leaf-strong); }
.tabs .c { font-size: .72rem; background: var(--sunken); padding: 1px 7px; border-radius: 99px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .input { max-width: 340px; }
.cards-m { display: none; }

/* Booking detail */
.bk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.bk-head .pnr-big { font: 700 2rem/1 var(--font-display); letter-spacing: .05em; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: .86rem; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-strong); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.failed::before, .timeline li.cancelled::before, .timeline li.voided::before { background: var(--red); }
.timeline time { display: block; font-size: .76rem; color: var(--faint); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .88rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ── Copilot ────────────────────────────────────────────────────── */
.copilot {
  position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-3); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .32s var(--ease);
}
.copilot.on { transform: none; }
.cp-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--forest); color: #fff; }
.cp-head .orb { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #E6FF9B, var(--lime) 45%, var(--leaf) 100%); display: grid; place-items: center; color: var(--forest); flex: none; }
.cp-head .orb svg { width: 18px; height: 18px; }
.cp-head b { font: 600 1.05rem var(--font-display); display: block; }
.cp-head small { color: #A9C0AC; font-size: .76rem; }
.cp-head .icon-btn { color: #C6D4C5; }
.cp-head .icon-btn:hover { background: rgba(255,255,255,.08); }
.cp-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; background: var(--paper); }
.msg { max-width: 92%; font-size: .92rem; line-height: 1.5; }
.msg.user { align-self: flex-end; background: var(--forest); color: #fff; padding: 10px 14px; border-radius: 16px 16px 4px 16px; }
.msg.ai { align-self: flex-start; width: 100%; max-width: 100%; }
.msg.ai .bubble { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; border-radius: 4px 16px 16px 16px; }
.msg.ai .bubble p + p, .msg.ai .bubble ul { margin-top: 8px; }
.msg.ai .bubble ul { padding-left: 18px; margin-bottom: 0; }
.msg.ai .bubble code { background: var(--sunken); padding: 1px 5px; border-radius: 4px; font-size: .85em; }
.cp-steps { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.cp-step { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.cp-step svg { width: 14px; height: 14px; color: var(--leaf-strong); }
.cp-step.error svg { color: var(--red); }
.cp-step.run svg { animation: spin 1s linear infinite; }
.cp-card { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cp-card .cc-h { padding: 10px 12px; font-size: .8rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.mini-pass { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; }
.mini-pass:first-of-type { border-top: 0; }
.mini-pass .mp-legs { font-size: .82rem; min-width: 0; }
.mini-pass .mp-legs div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-pass .mp-legs b { font-variant-numeric: tabular-nums; }
.mini-pass .mp-price { text-align: right; }
.mini-pass .mp-price b { font: 600 1.05rem var(--font-display); font-variant-numeric: tabular-nums; display: block; }
.confirm-card { border-color: var(--leaf); }
.confirm-card.danger { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); }
.confirm-card .cc-b { padding: 12px; font-size: .88rem; display: flex; flex-direction: column; gap: 10px; }
.cp-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-suggest button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 99px; padding: 7px 12px; font-size: .84rem; cursor: pointer; text-align: left; }
.cp-suggest button:hover { border-color: var(--leaf); background: var(--leaf-wash); }
.cp-intro { padding: 4px 2px 6px; }
.cp-intro h3 { font-size: 1.35rem; margin-bottom: 6px; }
.cp-input { padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.cp-input form { display: flex; align-items: flex-end; gap: 8px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px 6px 6px 12px; }
.cp-input form:focus-within { border-color: var(--leaf); box-shadow: var(--focus); }
.cp-input textarea { flex: 1; border: 0; background: transparent; resize: none; max-height: 140px; min-height: 24px; padding: 7px 0; outline: none; line-height: 1.4; }
.cp-input .send { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--forest); color: var(--lime); display: grid; place-items: center; cursor: pointer; flex: none; }
.cp-input .send svg { width: 18px; height: 18px; }
.cp-input .mic { width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.cp-input .mic.on { color: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.cp-input .foot { font-size: .72rem; color: var(--faint); margin-top: 6px; text-align: center; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-strong); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }

/* ── Overlays ───────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(8, 20, 14, .48); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-3); animation: rise .22s var(--ease); }
.modal.wide { width: min(860px, 100%); }
@keyframes rise { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-b { padding: 16px 20px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 18px; flex-wrap: wrap; }
.drawer-scrim { position: fixed; inset: 0; z-index: 85; background: rgba(8, 20, 14, .35); animation: fade .15s; }
.drawer { position: fixed; z-index: 86; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: slidein .25s var(--ease); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer .modal-b { flex: 1; overflow-y: auto; }
#toasts { position: fixed; z-index: 120; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 24px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--forest); color: #fff; padding: 11px 14px; border-radius: 12px; box-shadow: var(--shadow-3); font-size: .9rem; animation: rise .25s var(--ease); width: 100%; }
.toast svg { width: 18px; height: 18px; flex: none; color: var(--lime); }
.toast.err svg { color: #FF9C86; }
.menu { position: absolute; z-index: 70; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-3); padding: 6px; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; text-decoration: none; color: var(--ink); font-size: .9rem; }
.menu a:hover, .menu button:hover { background: var(--sunken); }
.menu svg { width: 16px; height: 16px; color: var(--muted); }
.menu .mh { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.notif { width: 360px; max-height: 70vh; overflow: auto; }
.notif .ni { padding: 10px; border-radius: 8px; font-size: .86rem; cursor: pointer; }
.notif .ni:hover { background: var(--sunken); }
.notif .ni.unread { background: var(--leaf-wash); }
.palette { width: min(620px, 100%); align-self: start; margin-top: 12vh; }
.palette input { width: 100%; height: 56px; border: 0; border-bottom: 1px solid var(--line); padding: 0 20px; font-size: 1.05rem; background: transparent; outline: none; }
.palette .pl { max-height: 50vh; overflow: auto; padding: 6px; }
.palette .pi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.palette .pi.on { background: var(--leaf-wash); }
.palette .pi svg { width: 18px; height: 18px; color: var(--muted); }
.palette .pi small { margin-left: auto; color: var(--faint); }

/* JSON viewer */
pre.json { margin: 0; background: var(--forest); color: #D8E6D4; border-radius: 12px; padding: 14px; font: 12px/1.55 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; overflow: auto; max-height: 420px; white-space: pre; }
pre.json .k { color: #C6F04D; } pre.json .s { color: #F4D7A1; } pre.json .n { color: #8CC8FF; } pre.json .b { color: #FF9C86; }
code.inline { font: 12.5px ui-monospace, Menlo, Consolas, monospace; background: var(--sunken); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* Login */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-art { position: relative; overflow: hidden; background: var(--forest); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 70% at 85% 15%, rgba(198,240,77,.18), transparent 60%), radial-gradient(60% 50% at 0% 100%, rgba(125,184,58,.2), transparent 60%); }
.login-art > * { position: relative; }
.login-art img.logo { width: min(360px, 80%); }
.login-art h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.3rem); color: #fff; max-width: 14ch; font-weight: 600; letter-spacing: -.025em; }
.login-art .pass-demo { margin-top: 26px; max-width: 460px; }
.login-art p { color: #A9C0AC; max-width: 44ch; margin-top: 14px; }
.login-art .contact { color: #93AE98; font-size: .84rem; line-height: 1.7; }
.login-art .contact a { color: #C6D4C5; }
.login-form { display: grid; place-items: center; padding: 32px 22px; background: var(--paper); }
.login-form form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; }
.login-form h2 { font-size: 1.7rem; }

/* Print (itinerary / e-ticket) */
.print-doc { max-width: 820px; margin: 0 auto; padding: 32px; background: #fff; color: #15211A; }
.print-doc header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 18px; border-bottom: 2px solid #15211A; }
.print-doc header img { width: 230px; }
.print-doc h2 { margin: 22px 0 10px; font-size: 1.1rem; }
.print-doc table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.print-doc th, .print-doc td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #DDE3D7; vertical-align: top; }
.print-doc th { font-size: .76rem; color: #5E6C63; }
.print-doc .pnr { font: 700 1.8rem var(--font-display); letter-spacing: .06em; }
.print-doc footer { margin-top: 26px; padding-top: 14px; border-top: 1px solid #DDE3D7; font-size: .8rem; color: #5E6C63; }
.print-bar { position: sticky; top: 0; display: flex; justify-content: center; gap: 8px; padding: 12px; background: var(--forest); }
@media print {
  .print-bar, #toasts { display: none !important; }
  body { background: #fff; }
  .print-doc { padding: 0; }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hello { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .wizard { grid-template-columns: 1fr; }
  .summary { position: static; }
  .bk-grid { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
  .search-row > .f-date, .search-row > .f-pax { grid-column: span 1; }
  .search-row > .f-go { grid-column: 1 / -1; }
  .search-row .f-dates { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
}
@media (max-width: 960px) {
  :root { --top-h: 58px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 95; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .28s var(--ease); }
  .side.on { transform: none; box-shadow: var(--shadow-3); }
  .top { padding: 0 14px; gap: 6px; }
  .top .menu-btn { display: inline-grid; }
  .top-search { display: none; }
  .kofi-btn span.lbl { display: none; }
  .kofi-btn { padding: 0 6px; }
  .page { padding: 18px 14px 96px; }
  .results { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.on { display: block; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav a, .mobile-nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--muted); text-decoration: none; border: 0; background: none; padding: 4px 0; cursor: pointer; }
  .mobile-nav svg { width: 22px; height: 22px; }
  .mobile-nav .on { color: var(--leaf-ink); }
  .mobile-nav .kofi-tab .orb { width: 40px; height: 40px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #E6FF9B, var(--lime) 45%, var(--leaf) 100%); color: var(--forest); box-shadow: 0 6px 16px -6px rgba(16,38,28,.6); border: 3px solid var(--surface); }
  .mobile-nav .kofi-tab .orb svg { width: 18px; height: 18px; }
  .copilot { width: 100vw; border-left: 0; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 22px; min-height: auto; }
  .login-art .pass-demo, .login-art p.lead { display: none; }
  .login-art h1 { font-size: 1.8rem; margin-top: 18px; }
  .ticket-hero { grid-template-columns: 1fr; }
  .ticket-hero .th-stub { border-left: 0; border-top: 2px dashed rgba(255,255,255,.18); }
  .ticket-hero .th-stub::before { top: -13px; left: -12px; } .ticket-hero .th-stub::after { top: -13px; bottom: auto; left: auto; right: -12px; }
  .table-wrap.collapse { display: none; }
  .cards-m { display: flex; flex-direction: column; gap: 10px; }
  .hide-sm { display: none !important; }
  #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .hello-card .route-art { display: none; }
}
@media (max-width: 680px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi .k-value { font-size: 1.25rem; }
  .quick { grid-template-columns: 1fr; }
  .quick .btn { grid-column: 1 / -1; }
  .pass { grid-template-columns: 1fr; }
  .pass-stub { border-left: 0; border-top: 2px dashed var(--line-strong); flex-direction: row; align-items: center; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .pass-stub::before { top: calc(var(--notch) * -1 - 1px); left: calc(var(--notch) * -1 - 1px); clip-path: inset(0 0 0 50%); }
  .pass-stub::after { top: calc(var(--notch) * -1 - 1px); bottom: auto; left: auto; right: calc(var(--notch) * -1 - 1px); clip-path: inset(0 50% 0 0); }
  .pass.open .pass-stub { border-radius: 0; }
  .leg { grid-template-columns: 84px minmax(0, 1fr) 84px; gap: 8px; }
  .leg .t { font-size: 1.15rem; }
  .sort-bar { grid-template-columns: repeat(2, 1fr); }
  .sort-bar button:nth-child(2) { border-right: 0; }
  .sort-bar button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .search-row, .search-row.multi { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
  .search-row .f-dates { grid-template-columns: 1fr 1fr; }
  .search-row .f-dates .f-pax { grid-column: 1 / -1; }
  .search-row.multi > .f-date { grid-column: 1 / 3; }
  .ticket-hero .pnr { font-size: 2rem; }
  .ticket-hero .big-route b { font-size: 1.8rem; }
  .bk-head .pnr-big { font-size: 1.6rem; }
  .modal-f .btn { flex: 1; }
  .page-head .actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── Hotels ─────────────────────────────────────────────────────── */
.stars { color: #C98A12; letter-spacing: 1px; font-size: .85em; }
.hotel-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) 190px; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px; }
.hotel-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.hc-img { border-radius: 12px; min-height: 110px; display: grid; place-items: center; background: linear-gradient(135deg, var(--forest-2), var(--forest)); color: var(--lime); font: 700 1.6rem var(--font-display); letter-spacing: .04em; }
.hc-main h3 { font-size: 1.05rem; }
.hc-price { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; text-align: right; border-left: 1px dashed var(--line-strong); padding-left: 16px; }
.score { display: flex; flex-direction: column; align-items: flex-end; }
.score b { background: var(--forest); color: var(--lime); border-radius: 8px 8px 8px 2px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.score small { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.room-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.room-row .grow { flex: 1; min-width: 0; }
details.rule { border-top: 1px solid var(--line); padding-top: 8px; }
details.rule summary { cursor: pointer; }
a.notice { color: inherit; }

.hotel-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .45fr) minmax(0, .45fr) auto; gap: 8px; align-items: end; }
@media (max-width: 1180px) { .hotel-row { grid-template-columns: 1fr 1fr 1fr; } .hotel-row > :first-child { grid-column: 1 / -1; } }
@media (max-width: 680px) { .hotel-row { grid-template-columns: 1fr 1fr; } .hotel-row .f-go { grid-column: 1 / -1; } }

/* ── Seat map ───────────────────────────────────────────────────── */
.seatmap { max-height: 52vh; overflow: auto; padding: 8px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--line); }
.cabin { display: flex; flex-direction: column; align-items: center; }
.srow { display: flex; align-items: center; gap: 4px; margin: 2px 0; }
.srow.exit { margin-top: 10px; }
.srow .rn { width: 26px; text-align: right; font-size: .72rem; color: var(--faint); margin-right: 4px; }
.seat { width: 30px; height: 30px; border-radius: 7px 7px 4px 4px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .68rem; font-weight: 700; color: var(--muted); cursor: pointer; padding: 0; }
.seat:hover:not(:disabled) { border-color: var(--leaf); }
.seat.preferred { background: var(--sky-wash); border-color: color-mix(in srgb, var(--sky) 40%, var(--line)); }
.seat.extra-legroom { background: var(--violet-wash); border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); }
.seat.na { background: var(--sunken); color: transparent; cursor: not-allowed; border-style: dashed; }
.seat.mine { background: var(--forest); color: var(--lime); border-color: var(--forest); }
.aisle { width: 18px; }
.seat-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--surface); margin-right: 6px; vertical-align: -2px; }
.seat-key.preferred { background: var(--sky-wash); } .seat-key.extra-legroom { background: var(--violet-wash); } .seat-key.na { background: var(--sunken); border-style: dashed; }

@media (max-width: 680px) {
  .hotel-card { grid-template-columns: 1fr; }
  .hc-img { min-height: 70px; }
  .hc-price { border-left: 0; border-top: 1px dashed var(--line-strong); padding: 12px 0 0; flex-direction: row; align-items: center; text-align: left; }
  .seat { width: 26px; height: 26px; }
}

/* Travelport connection test */
.diag-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.diag-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.diag-steps li.bad { border-color: var(--red); background: var(--red-wash); }
.diag-steps .diag-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-wash); color: var(--leaf-ink); }
.diag-steps li.bad .diag-ico { background: var(--red); color: #fff; }
.diag-steps .diag-ico svg { width: 14px; height: 14px; }
.diag-steps .small { word-break: break-word; }

/* ── Responsive hardening (PC · laptop · tablet · phone) ───────────────── */
/* Grid/flex children may shrink below their content so wide tables scroll inside their panel instead of the page */
.grid > *, .panel, .panel-b, .panel-h > *, .stack > *, .row > *, .main > *, .page-head > * { min-width: 0; }
.panel-h { flex-wrap: wrap; row-gap: 8px; }
.panel-h h3 { margin-right: auto; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; flex: none; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.page-head { flex-wrap: wrap; row-gap: 10px; }
p, .small, .xs, .notice span, .notice div, .panel-b, .kv dd, .sub, .title { overflow-wrap: anywhere; }
.print-doc { overflow-wrap: anywhere; }
img, svg, video, canvas { max-width: 100%; }
/* Notification badge: readable in both themes */
.icon-btn .dot { background: #D92D20; color: #fff; }
/* Touch screens: comfortable tap targets */
@media (pointer: coarse), (max-width: 760px) {
  .linkish { min-height: 36px; padding: 6px 2px; }
  .contact a, .side-foot a { display: inline-block; padding: 8px 2px; }
  .btn.sm { min-height: 36px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  .input, select.input { min-height: 44px; font-size: 16px; } /* 16px stops iOS zooming into fields */
  .row.wrap, .actions { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .panel-h { padding: 14px 14px 0; }
  .panel-b { padding-left: 14px; padding-right: 14px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1 1 auto; justify-content: center; }
  .modal { width: calc(100vw - 20px); max-width: calc(100vw - 20px); }
  .kv { grid-template-columns: minmax(84px, auto) 1fr; }
  .row { flex-wrap: wrap; }
  .row.nowrap { flex-wrap: nowrap; }
}
[class$="-grid"] > *, [class*="-grid "] > *, .hotel-card > *, section > *, .list > li > .grow { min-width: 0; }
@media (max-width: 900px) { .bk-grid, .dash-grid { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 420px) {
  .leg { grid-template-columns: 78px minmax(0, 1fr) 78px; gap: 8px; }
  .leg .t { font-size: 1.15rem; }
}
.page section, .page aside, .page article { min-width: 0; } .seg { flex-shrink: 1; }
[data-opt] { max-width: 220px; }
@media (max-width: 760px) {
  [data-opt], form select.input, form .input { max-width: none !important; }
  .page form .row > select.input, .page form .row > .input { flex: 1 1 100%; }
}
