@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

/* Three looks. No setting = the default dark blue. data-theme="dark" = black. data-theme="light" = white. */
:root {
  --bg: #0f1626;
  --surface: #17213a;
  --side: #121b30;
  --hover: #1d2a47;
  --ink: #e8edf8;
  --muted: #94a1bb;
  --line: #27334f;
  --blue: #6f9bff;
  --blue-soft: #1c2c55;
  --user: #1f315c;
  --green: #6fd29a;
  --green-soft: #15332a;
  --amber: #f2cf6b;
  --amber-soft: #3a3010;
  --danger: #ff9b92;
  color-scheme: dark;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #121212;
  --side: #0a0a0a;
  --hover: #1c1c1c;
  --ink: #f2f2f2;
  --muted: #9a9a9a;
  --line: #262626;
  --blue: #6f9bff;
  --blue-soft: #14203d;
  --user: #1b2a4a;
  --green: #6fd29a;
  --green-soft: #0f2a20;
  --amber: #f2cf6b;
  --amber-soft: #2e2608;
  --danger: #ff9b92;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --side: #f3f4f6;
  --hover: #e8ebf0;
  --ink: #14213d;
  --muted: #5f6b7e;
  --line: #e0e4ea;
  --blue: #2459e0;
  --blue-soft: #eaf0ff;
  --user: #e4ecff;
  --green: #17683a;
  --green-soft: #e3f6ea;
  --amber: #7a5a00;
  --amber-soft: #fff1cc;
  --danger: #a13b32;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  height: 100dvh;
  overflow: hidden;
}
.main { flex: 1; min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(12px, 3vw); height: 56px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none;
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.5px;
}
.brand-logo { width: 28px; height: 28px; flex: none; }
.topbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.top-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.pill {
  font-size: 11px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px;
}
.pill:empty { display: none; }
.pill-demo { color: var(--amber); background: var(--amber-soft); border-color: transparent; }

/* ---------- conversation ---------- */
.chat { overflow-y: auto; scroll-behavior: smooth; }
.thread {
  max-width: 760px; margin: 0 auto; padding: 28px 16px 24px;
  display: flex; flex-direction: column; gap: 22px;
}

.msg { display: flex; gap: 12px; max-width: 100%; }
.msg.user { justify-content: flex-end; }

.avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 14px; margin-top: 2px;
}
.body { min-width: 0; flex: 1; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }
.text.error { color: var(--danger); }

.bubble {
  background: var(--user); border-radius: 18px 18px 4px 18px;
  padding: 10px 15px; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere;
}

.typing { display: inline-flex; gap: 5px; padding: 10px 0; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: 0.5;
  animation: bounce 1.1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; } .chat { scroll-behavior: auto; } }

/* ---------- chips and notes ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip {
  background: var(--blue-soft); color: var(--blue); border-radius: 20px;
  padding: 4px 11px; font-size: 12px; font-weight: 600;
}
.note { color: var(--muted); font-size: 12.5px; margin-top: 8px; }

/* ---------- flight cards ---------- */
.cards { display: grid; gap: 10px; margin-top: 14px; }
.flight-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
}
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.airline { font-weight: 700; }
.tag { font-size: 10.5px; font-weight: 700; border-radius: 20px; padding: 2px 9px; }
.tag-sample { background: var(--amber-soft); color: var(--amber); }
.tag-match { background: var(--green-soft); color: var(--green); }
.sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.route { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.time { font-size: 18px; font-weight: 700; line-height: 1.1; }
.airport { color: var(--muted); font-size: 11.5px; }
.line { flex: 1; min-width: 28px; height: 1px; background: var(--line); position: relative; }
.line::after { content: "✈"; position: absolute; top: -9px; left: 45%; background: var(--surface); padding: 0 4px; color: var(--blue); font-size: 12px; }
.price-col { text-align: right; }
.price { font-size: 20px; font-weight: 800; white-space: nowrap; }
.price-sub { color: var(--muted); font-size: 11px; margin-bottom: 8px; }

button.primary {
  background: var(--blue); color: #fff; border: 0; border-radius: 9px;
  padding: 9px 16px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
button.primary:hover { filter: brightness(1.08); }
button.primary:disabled { opacity: 0.6; cursor: wait; }
button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- suggestions ---------- */
.suggest { margin-top: 18px; }
.suggest-title { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.suggest-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--green-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
}
.suggest-main { font-weight: 700; color: var(--green); }
.suggest-sub { font-size: 12.5px; color: var(--ink); }
button.ghost {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 13px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
button.ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- checkout card ---------- */
.checkout, .confirmation {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin-top: 14px;
}
.confirmation { background: var(--green-soft); border-color: transparent; }
.confirmation h3 { font-family: "Manrope", sans-serif; margin: 4px 0 8px; }
.confirmation p { margin-top: 6px; font-size: 14px; }
.confirmation .small { color: var(--muted); font-size: 12px; }
.confirmation .status { color: var(--green); font-weight: 700; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--green); }
.summary { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.summary-main { font-weight: 700; }
.summary-price { font-size: 19px; font-weight: 800; margin-top: 6px; }
fieldset { border: 0; margin-bottom: 14px; }
legend { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.field label { display: block; font-size: 10px; letter-spacing: 1px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 9px;
  padding: 0 11px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px;
}
.hint { color: var(--muted); font-size: 12px; margin: 10px 0 14px; }
.paypal-box { max-width: 380px; min-height: 52px; }
.inline-error { color: var(--danger); font-size: 13px; margin-top: 12px; }

/* ---------- composer ---------- */
.composer-wrap { background: linear-gradient(to top, var(--bg) 80%, transparent); padding: 6px 16px 12px; }
.composer-inner { max-width: 760px; margin: 0 auto; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.starters button {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
  padding: 7px 13px; font: inherit; font-size: 12.5px; cursor: pointer;
}
.starters button:hover { border-color: var(--blue); color: var(--blue); }
.composer {
  display: flex; align-items: flex-end; gap: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; padding: 8px 8px 8px 16px;
  box-shadow: 0 6px 24px rgba(20, 40, 80, 0.08);
}
.composer:focus-within { border-color: var(--blue); }
.composer textarea {
  flex: 1; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink);
  font: inherit; max-height: 140px; padding: 7px 0; line-height: 1.45;
}
.composer textarea::placeholder { color: var(--muted); }
#send {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--blue); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
#send:disabled { opacity: 0.35; cursor: default; }
.fineprint { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 8px; }

@media (max-width: 640px) {
  .flight-card { grid-template-columns: 1fr; }
  .price-col { display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .price-sub { display: none; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .bubble { max-width: 92%; }
}

/* ======================================================================
   Side panel
   ====================================================================== */
.sidebar {
  width: 272px; flex: none; display: flex; flex-direction: column; gap: 10px;
  background: var(--side); border-right: 1px solid var(--line); padding: 14px 12px 12px; height: 100dvh;
}
.side-head { padding: 2px 6px 6px; }
.side-icon { display: inline-flex; align-items: center; }
.side-new {
  display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font: inherit; font-weight: 600; padding: 9px 10px; cursor: pointer;
}
.side-new:hover { background: var(--hover); }
.side-new .side-icon { color: #fff; background: var(--blue); border-radius: 50%; width: 22px; height: 22px; justify-content: center; }
.side-search {
  display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 0 10px; height: 38px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.side-search:focus-within { border-color: var(--blue); }
.side-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
.side-search input::-webkit-search-cancel-button { cursor: pointer; }

.chat-list { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.side-group { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: var(--muted); padding: 12px 8px 4px; }
.chat-item { position: relative; display: flex; align-items: center; border-radius: 10px; }
.chat-item:hover, .chat-item.active { background: var(--hover); }
.chat-open {
  flex: 1; min-width: 0; text-align: left; background: transparent; border: 0; color: var(--ink);
  font: inherit; font-size: 14px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column;
}
.chat-title, .chat-snippet { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-snippet { font-size: 11.5px; color: var(--muted); }
.chat-del { opacity: 0; margin-right: 4px; }
.chat-item:hover .chat-del, .chat-del:focus-visible { opacity: 1; }
.side-note { color: var(--muted); font-size: 13px; padding: 10px 8px; }
.side-note strong { display: block; color: var(--ink); margin-bottom: 4px; }

.side-foot {
  display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px;
}
.profile-slot { flex: 1; min-width: 0; }
.profile { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.profile-who { min-width: 0; }
.profile-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-email { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-buttons { display: flex; gap: 8px; }
.auth-buttons button { flex: 1; padding: 8px 10px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn.big { width: 36px; height: 36px; }
.icon-btn.on { color: var(--blue); }
.icon-btn.done { color: var(--green); }

.backdrop { display: none; }
body.side-closed .sidebar { display: none; }

/* ======================================================================
   Messages: hover actions and time stamps
   ====================================================================== */
.msg.user .col { display: flex; flex-direction: column; align-items: flex-end; max-width: 85%; min-width: 0; }
.msg.user .bubble { max-width: 100%; }
.meta { display: flex; align-items: center; gap: 8px; min-height: 28px; margin-top: 2px; opacity: 0; transition: opacity 0.12s; }
.msg.user .meta { flex-direction: row-reverse; }
.msg:hover .meta, .meta:focus-within { opacity: 1; }
.actions { display: flex; gap: 2px; }
.stamp { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
@media (hover: none) { .meta { opacity: 1; } .chat-del { opacity: 1; } }
.welcome .meta { display: none; }

.edit-box { width: min(560px, 80vw); background: var(--surface); border: 1px solid var(--blue); border-radius: 14px; padding: 10px; }
.edit-box textarea {
  width: 100%; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--ink); font: inherit; line-height: 1.45;
}
.edit-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ======================================================================
   Airline logos
   ====================================================================== */
.airline-line { display: inline-flex; align-items: center; gap: 8px; }
.airline-inline { font-weight: 700; }
.airline-logo { width: 24px; height: 24px; border-radius: 6px; flex: none; object-fit: contain; background: #fff; }
.airline-logo.badge { display: inline-grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.3px; }

/* ======================================================================
   Multi-city trip
   ====================================================================== */
.leg { margin-top: 18px; }
.leg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.leg-num { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); }
.leg-route { font-weight: 700; }
.leg-date { color: var(--muted); font-size: 13px; }
.note.warn { color: var(--amber); background: var(--amber-soft); border-radius: 8px; padding: 6px 10px; }
.flight-card.selected { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.trip-bar {
  position: sticky; bottom: 8px; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--blue); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(20, 40, 80, 0.12);
}
.trip-text { font-weight: 600; font-size: 13.5px; }
.summary-flight { margin-bottom: 8px; }

/* ======================================================================
   Dialogs
   ====================================================================== */
.dialog {
  margin: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink);
  padding: 26px 24px 22px; width: min(420px, calc(100vw - 32px)); position: relative;
}
.dialog::backdrop { background: rgba(5, 10, 24, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog h2 { font-family: "Manrope", sans-serif; font-size: 21px; margin-bottom: 4px; }
.dialog h3 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.dialog-sub { color: var(--muted); margin-bottom: 16px; font-size: 14px; }
.dialog-close { position: absolute; top: 12px; right: 12px; }
.dialog .field { margin-bottom: 12px; }
.dialog-foot { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }
button.link { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }
button.wide { width: 100%; padding: 11px 16px; margin-top: 4px; }
.theme-options { display: grid; gap: 8px; font-size: 14px; }
.theme-options input { accent-color: var(--blue); margin-right: 8px; }
.settings-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
button.ghost.danger { color: var(--danger); }
button.ghost.danger:hover { border-color: var(--danger); color: var(--danger); }
#settingsAccount p { font-size: 14px; }

/* ======================================================================
   Small screens: the side panel slides over the chat
   ====================================================================== */
@media (max-width: 860px) {
  .sidebar { position: fixed; z-index: 30; left: 0; top: 0; transform: translateX(-100%); transition: transform 0.2s; }
  body.side-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.25); }
  body.side-open .backdrop { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(10, 18, 36, 0.45); }
  body.side-closed .sidebar { display: flex; }
  .top-title { max-width: 32vw; }
  .msg.user .col { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* ======================================================================
   Profile pop-up menu, verify step
   ====================================================================== */
.side-foot { position: relative; }
button.profile {
  width: 100%; text-align: left; background: transparent; border: 0; color: inherit; font: inherit;
  border-radius: 10px; padding: 6px; cursor: pointer;
}
button.profile:hover, button.profile[aria-expanded="true"] { background: var(--hover); }
.menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 10px 36px rgba(10, 18, 36, 0.22);
}
.menu-email { padding: 8px 10px 6px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink); font: inherit; font-size: 14px; padding: 9px 10px; cursor: pointer;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); }
.menu-item .mi { display: inline-flex; color: var(--muted); }
.menu-label { flex: 1; }
.menu-hint { color: var(--muted); font-size: 12px; }
.menu-item.disabled { cursor: default; opacity: 0.75; }
.menu-item.disabled:hover { background: transparent; }
.soon { font-size: 10.5px; font-weight: 700; color: var(--amber); background: var(--amber-soft); border-radius: 20px; padding: 2px 8px; }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.dev-code { background: var(--amber-soft); color: var(--amber); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; font-weight: 600; }
.inline-error.ok { color: var(--green); }
#verifyCode { letter-spacing: 8px; font-size: 20px; text-align: center; font-weight: 700; }

/* ======================================================================
   Extras, confirmation card, seats, check-in
   ====================================================================== */
.extras { margin: 14px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.extras > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.extras > summary::-webkit-details-marker { display: none; }
.extras > summary .sub { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.extras-body { padding: 0 14px 14px; display: grid; gap: 14px; }
.extras h4 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.stepper b { min-width: 18px; text-align: center; font-size: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.pill-opt input { accent-color: var(--blue); }
.pill-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.extras textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; padding: 8px 10px; resize: vertical; min-height: 44px; margin-top: 8px; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }

.ticket-card { background: var(--green-soft); border-radius: 14px; padding: 16px 18px; margin-top: 12px; }
.ticket-card .ref { font-family: "Manrope", sans-serif; font-size: 26px; font-weight: 800; letter-spacing: 2px; margin: 2px 0 10px; }
.tleg { padding: 10px 0; border-top: 1px dashed color-mix(in srgb, var(--green) 40%, transparent); }
.tleg .tr { font-weight: 800; font-size: 17px; }
.tleg .tw { font-size: 13.5px; color: var(--ink); margin-top: 2px; }
.tleg .ts { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tk-actions button, .tk-actions a.ghost { text-decoration: none; display: inline-block; }
.status-line { font-size: 12px; color: var(--muted); margin-top: 10px; }
.flyinfo { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px 16px; }
.flyinfo h4 { font-size: 14px; margin-bottom: 10px; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.times div { background: var(--bg); border-radius: 10px; padding: 10px 4px; }
.times b { display: block; font-size: 19px; font-family: "Manrope", sans-serif; }
.times span { font-size: 11.5px; color: var(--muted); }
.flyinfo details { margin-top: 10px; font-size: 13.5px; }
.flyinfo summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.flyinfo ul { margin: 8px 0 0 18px; display: grid; gap: 6px; }
.flyinfo .fi-leg { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.inline-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px; }
.inline-panel .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-panel input[type=email] { flex: 1; min-width: 180px; height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: var(--bg); color: var(--ink); font: inherit; }
.seat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.seat-tabs button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.seat-tabs button.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.seatmap { max-height: 250px; overflow: auto; margin: 10px 0; padding: 8px; background: var(--bg); border-radius: 12px; display: grid; gap: 4px; justify-content: center; }
.seat-row { display: grid; grid-template-columns: 22px repeat(3, 34px) 16px repeat(3, 34px); gap: 4px; align-items: center; }
.seat-row .rn { font-size: 11px; color: var(--muted); text-align: right; }
.seat { height: 30px; border-radius: 7px 7px 4px 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 11px; cursor: pointer; padding: 0; }
.seat:hover:not(:disabled) { border-color: var(--blue); }
.seat:disabled { opacity: 0.35; cursor: not-allowed; background: var(--line); }
.seat.mine { background: var(--blue); color: #fff; border-color: var(--blue); }
.seat.chosen { background: var(--green); color: #fff; border-color: var(--green); }
.profile-form { margin-top: 12px; }
.profile-form .grid { margin-bottom: 8px; }
@media (max-width: 520px) { .times { grid-template-columns: 1fr; } .times div { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; } }
a.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
a.ghost:hover { border-color: var(--blue); color: var(--blue); }
.tleg .tr .airline-inline { margin-right: 6px; }

/* ======================================================================
   Fresh chat: greeting and message box in the middle of the screen
   ====================================================================== */
.hero { display: none; text-align: center; padding: 0 20px; }
.hero-logo { width: 46px; height: 46px; margin-bottom: 14px; }
.hero h1 { font-family: "Manrope", sans-serif; font-size: clamp(24px, 4.2vw, 34px); font-weight: 700; letter-spacing: -0.3px; }
.hero p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.composer-inner { display: flex; flex-direction: column; }
.main.is-empty { grid-template-rows: auto 1fr auto 1.35fr; background: radial-gradient(ellipse 60% 45% at 50% 62%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%); }
.main.is-empty .chat { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 26px; overflow: hidden; }
.main.is-empty .hero { display: block; }
.main.is-empty .thread { display: none; }
.main.is-empty .composer-wrap { background: none; padding-top: 0; }
.main.is-empty .composer { padding: 12px 12px 12px 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); }
.main.is-empty .starters { order: 2; justify-content: center; margin: 16px 0 0; }
.main.is-empty .fineprint { order: 3; }
.main.is-empty .composer { order: 1; }
@media (max-width: 640px) { .main.is-empty { grid-template-rows: auto 1fr auto 1fr; } .main.is-empty .starters { gap: 6px; } }
@media (max-width: 520px) {
  .seat-row { grid-template-columns: 18px repeat(3, 30px) 10px repeat(3, 30px); gap: 3px; }
  .seatmap { padding: 8px 4px; }
}

.link-btn { background: none; border: 0; color: var(--blue); font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
