:root {
  --bg: #0b0d12;
  --panel: #12151c;
  --panel-2: #171b24;
  --border: #232838;
  --text: #e8eaf0;
  --text-soft: #c9cfda;
  --text-dim: #9aa2b1;
  --accent: #6ea8ff;
  --accent-2: #7ee7c7;
  --user-bubble: #23324a;
  --assistant-bubble: #171b24;
  /* The two zones. The conversation is Fina's: near-black with a mint edge.
     The board is the offers': blue-grey with a blue edge, its cards lighter
     than anything in the chat. Nothing from one ever sits inside the other. */
  --chat-bg: #0e1117;
  --chat-edge: #7ee7c7;
  --board-bg: #151b28;
  --board-card: #1c2333;
  --board-card-lead: #202a3d;
  --board-line: #2b3448;
  --board-edge: #6ea8ff;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* Day mode: the same layout in light colours. The page starts in the
   device's own setting; the sun/moon button in the top bar overrides it and
   is remembered per browser. */
:root { color-scheme: dark; }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fa;
  --panel: #ffffff;
  --panel-2: #eef1f6;
  --border: #d9dfe9;
  --text: #141824;
  --text-soft: #2f3747;
  --text-dim: #5d6678;
  --accent: #2563d6;
  --accent-2: #0f9d7a;
  --user-bubble: #dbe7fb;
  --assistant-bubble: #f1f4f9;
  --chat-bg: #ffffff;
  --chat-edge: #0f9d7a;
  --board-bg: #edf1f8;
  --board-card: #ffffff;
  --board-card-lead: #f4f8ff;
  --board-line: #d3dbe8;
  --board-edge: #2563d6;
}
:root[data-theme="light"] .mic-btn { color: #ffffff; }
.theme-btn { padding: 5px 10px; font-size: 14px; line-height: 1; }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); }
button { font-family: inherit; }

.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 1440px;
  margin: 0 auto;
  min-width: 0;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px; flex: none;
  border-bottom: 1px solid var(--border); background: var(--panel);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand-tag { font-weight: 400; font-size: 12px; color: var(--text-dim); }
.meta { display: flex; align-items: center; gap: 10px; }
.status { font-size: 12px; color: var(--text-dim); }
.ghost-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 8px; padding: 6px 12px; font-size: 12px; cursor: pointer; text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--text); }

.orb {
  border-radius: 50%; flex: none; display: inline-block;
  background: radial-gradient(circle at 35% 35%, #9df0da, #7ee7c7 45%, #2f6f63 100%);
}
.orb-xs { width: 12px; height: 12px; }
.orb-sm { width: 22px; height: 22px; }
.orb-md { width: 26px; height: 26px; }
.orb-lg { width: 64px; height: 64px; box-shadow: 0 0 0 10px rgba(126, 231, 199, 0.08); }

/* ---------- welcome ---------- */
.welcome {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 30px; padding: 24px 24px 32px;
}
.welcome-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 720px; text-align: center; }
.welcome-hero h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.welcome-hero p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-soft); text-wrap: balance; }
.welcome-examples { width: 100%; max-width: 920px; display: flex; flex-direction: column; gap: 10px; }
/* The writing box sits on the home page between the greeting and the
   examples, as in other assistants, and moves into the chat window after
   the first message. */
.home-dock { width: 100%; max-width: 760px; }
.home-dock .dock { border: none; background: transparent; padding: 0; }
.home-dock .input-pill { padding-top: 8px; padding-bottom: 8px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12); }
.eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); text-align: center; }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.example {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-align: left;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; color: var(--text); cursor: pointer;
  transition: border-color 0.15s;
}
.example:hover { border-color: var(--accent); }
.example b { font-size: 14.5px; font-weight: 600; }
.example span { font-size: 12.5px; color: var(--text-dim); }

/* ---------- zones ---------- */
.zone {
  display: grid; grid-template-columns: 4px minmax(0, 1fr);
  margin: 12px 24px 0; border-radius: 16px; overflow: hidden; min-height: 0;
}
.zone[hidden], .welcome[hidden] { display: none; }
.zone-inner { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.zone-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 16px; border-bottom: 1px solid var(--border); flex: none; flex-wrap: wrap;
}
.zone-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chat-edge); }
.zone-label-board { color: var(--board-edge); }
.zone-title-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.zone-sub { font-size: 12.5px; color: var(--text-dim); }
.zone-note { font-size: 11.5px; color: var(--accent-2); display: inline-flex; align-items: center; gap: 6px; }
.zone-note:empty { display: none; }
.zone-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }

/* After the first message: one chat window - questions, answers and the
   writing box together - and the results beside it while there are any
   (body.has-board). On a phone the results sit inside the conversation,
   under the answer that brought them. The old layout stacked a chat strip,
   an often-empty results area and a page-wide writing box: what you typed at
   the bottom appeared at the top. */
.stage { flex: 1 1 auto; min-height: 0; display: flex; gap: 14px; padding: 12px 24px; }
.stage[hidden] { display: none; }
.stage .zone { margin: 0; }
.zone-chat { flex: 1 1 auto; width: 100%; max-width: 880px; margin: 0 auto; background: var(--chat-bg); border: 1px solid var(--border); }
body.has-board .zone-chat { flex: 0 0 40%; max-width: 560px; min-width: 360px; margin: 0; }
.zone-chat .dock { border-top: 1px solid var(--border); padding: 10px 14px 10px; }
.stage .zone-chat { margin: 0 auto; }
body.has-board .stage .zone-chat { margin: 0; }
.zone-chat .zone-edge { background: var(--chat-edge); }
.zone-board { flex: 1 1 auto; min-width: 0; background: var(--board-bg); border: 1px solid var(--board-line); container-type: inline-size; }

.zone-board .zone-edge { background: var(--board-edge); }
.zone-board .zone-head { border-bottom-color: var(--board-line); }

/* ---------- journey rail ---------- */
.rail { display: flex; align-items: center; gap: 0; }
.rail-step { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.rail-step .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--board-line); display: flex; align-items: center; justify-content: center; }
.rail-step.done { color: var(--text); }
.rail-step.done .dot { border: none; background: var(--accent-2); }
.rail-step.done .dot::after { content: ""; width: 5px; height: 9px; border: solid #0b0d12; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.rail-step.now { color: var(--text); font-weight: 700; }
.rail-step.now .dot { border: none; background: var(--accent); box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.18); }
.rail-line { width: 26px; height: 2px; background: var(--board-line); margin: 0 6px; }

/* ---------- thread ---------- */
.thread { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.msg { display: flex; }
.msg-user { justify-content: flex-end; }
.msg-assistant { justify-content: flex-start; gap: 10px; align-items: flex-start; }
.msg-assistant .orb { margin-top: 6px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: var(--radius); line-height: 1.5; font-size: 15px; }
.bubble p { margin: 0; } .bubble p + p { margin-top: 6px; } .bubble ul { margin: 6px 0 0; padding-left: 18px; }
.bubble strong { color: var(--accent); }
.msg-user .bubble { background: var(--user-bubble); border-radius: 14px 4px 14px 14px; display: flex; gap: 8px; align-items: center; white-space: pre-wrap; }
.msg-user .bubble .spoken { color: var(--text-dim); display: inline-flex; }
.msg-assistant .bubble { background: var(--assistant-bubble); border: 1px solid var(--border); border-radius: 4px 14px 14px 14px; }
.typing .bubble { color: var(--text-dim); }
.turn { display: flex; flex-direction: column; gap: 8px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 36px; }
.chip {
  font-size: 13px; padding: 8px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.step-sep { display: flex; align-items: center; gap: 12px; }
.step-sep::before, .step-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.step-sep span {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--accent-2);
  padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(126, 231, 199, 0.35);
}

/* ---------- board ---------- */
.board { flex: 1; overflow-y: auto; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.board-empty { color: var(--text-dim); font-size: 13px; padding: 10px 2px; }
.row {
  display: grid; grid-template-columns: 96px 230px minmax(0, 1fr) 190px; gap: 16px; align-items: center;
  padding: 11px 16px; background: var(--board-card); border: 1px solid var(--board-line); border-radius: 12px;
}
.row.lead { background: var(--board-card-lead); border-color: var(--board-edge); }
/* A Rules/Terms panel opened inside a row card spans the whole card; as a
   plain grid item it fell into the 96px first column and spilled out. */
.row > .panel { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
.row-id { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.id-badge { font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(110, 168, 255, 0.12); padding: 3px 9px; border-radius: 6px; }
.row.lead .id-badge { color: #0b0d12; background: var(--accent); }
.pick-tag { font-size: 11px; font-weight: 700; color: var(--accent-2); letter-spacing: 0.04em; text-transform: uppercase; }
.alt-tag { font-size: 11px; color: var(--text-dim); }
.row-when { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.times { display: flex; align-items: baseline; gap: 8px; }
.times b { font-size: 21px; font-weight: 700; }
.times i { font-style: normal; color: var(--text-dim); font-size: 12px; }
.row-sub { font-size: 12px; color: var(--text-dim); }
/* A round trip shows both legs, each under its own label. */
.leg { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.leg + .leg { border-top: 1px dashed var(--board-line); padding-top: 6px; margin-top: 4px; }
.leg-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--board-edge); }
.leg-label span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-dim); margin-left: 6px; }
.leg .times b { font-size: 18px; }
.row-sub .ok { color: var(--accent-2); }
.row-sub .wait { color: var(--warn, #e6b45a); }
:root[data-theme="light"] .row-sub .wait { color: #9a5c00; }
.row-what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-what b { font-size: 13px; font-weight: 600; }
.why { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; }
.why em { font-style: normal; color: var(--accent-2); }
.row-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.price { font-size: 19px; font-weight: 700; white-space: nowrap; }
.price small { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.price-sub { font-size: 11.5px; color: var(--text-dim); }
.child-fares { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.child-fares .fact-warn { color: var(--warn, #e6b45a); }
.btns { display: flex; gap: 8px; }
.btn { border-radius: 8px; padding: 8px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; border: 1px solid var(--board-line); background: transparent; color: var(--text-dim); }
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn-pick { border-color: var(--accent); color: var(--accent); }
.btn-buy { background: var(--accent-2); border-color: var(--accent-2); color: #0b0d12; padding: 9px 14px; font-size: 13px; }
.btn-buy:hover { color: #0b0d12; opacity: 0.92; }
.btn:disabled { opacity: 0.5; cursor: default; }
.row-thumb { width: 96px; height: 64px; border-radius: 8px; object-fit: cover; background: linear-gradient(135deg, #2a3350, #1a1e29); display: block; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); color: var(--text-dim); }
.terms-wrap { grid-column: 1 / -1; }
.more { align-self: center; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--board-line); color: var(--text-dim); background: transparent; cursor: pointer; }
.more:hover { border-color: var(--accent); color: var(--text); }
.earlier-h { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }
.lite { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: var(--board-card); border: 1px solid var(--board-line); border-radius: 10px; font-size: 13px; }
.lite .id-badge { margin-right: 8px; }
.lite .dim { color: var(--text-dim); }

/* package tours. Fina's pick is the detailed card: photo left, every fact a
   buyer checks on the right, centred. The alternatives beneath are compact:
   photo on top, the essentials, a price per adult. */
.pkg-hero { display: flex; justify-content: center; flex: none; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; flex: none; }
.pkg { display: flex; flex-direction: column; max-width: 100%; background: var(--board-card); border: 1px solid var(--board-line); border-radius: 14px; overflow: hidden; min-width: 0; }
.pkg-media { position: relative; aspect-ratio: 4 / 3; flex: none; background: linear-gradient(160deg, #2a3350, #1a1e29 70%); overflow: hidden; }
.pkg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pkg-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(to top, rgba(11, 13, 18, 0.92) 0%, rgba(11, 13, 18, 0.45) 55%, rgba(11, 13, 18, 0) 100%); pointer-events: none; }
.pkg-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; z-index: 1; }
.pkg-top .id-badge { background: rgba(11, 13, 18, 0.75); color: var(--accent); backdrop-filter: blur(4px); font-size: 13px; }
.pkg-pick { background: var(--accent-2); color: #0b0d12; padding: 5px 10px; border-radius: 6px; font-size: 11.5px; letter-spacing: 0.06em; }
.pkg-alt { background: rgba(11, 13, 18, 0.75); color: var(--text); padding: 3px 8px; border-radius: 6px; }
.pkg-over { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; flex-direction: column; gap: 3px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.pkg-dest { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.pkg-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pkg-price .price { font-size: 18px; }
.pkg-body { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px 12px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pkg-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pkg-line { font-size: 12.5px; color: var(--text-dim); }
.fact-ok { color: var(--accent-2); border-color: rgba(126, 231, 199, 0.4); }
.fact-warn { color: #e6b45a; border-color: rgba(230, 180, 90, 0.4); }
.pkg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; }
.pkg .btns { width: 100%; }
.pkg .btns .btn { flex: 1; padding: 8px 8px; font-size: 12.5px; text-align: center; }
.pkg .btns .btn-pick, .pkg .btns .btn-buy { flex: 1.2; }
.pkg .terms-wrap { padding: 0 12px 12px; }

/* the detailed pick: a row (photo | facts) with a panel strip below it */
.pkg-detail { width: 100%; max-width: 1000px; min-width: 0; border: 2px solid var(--accent-2); background: var(--board-card-lead); box-shadow: 0 0 0 4px rgba(126, 231, 199, 0.16), 0 12px 32px rgba(0, 0, 0, 0.35); }
.pkg-main { display: flex; min-width: 0; }
.pkg-detail .pkg-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 250px; }
.pkg-panels { flex: none; }
.pkg-panels:empty { display: none; }
.pkg-panels .panel { margin: 0 12px 12px; }
.pkg-head { display: flex; flex-direction: column; gap: 6px; }
.fact-strong { color: var(--text); border-color: var(--board-line); background: var(--board-card); font-weight: 600; }
.badge-family { align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(230, 180, 90, 0.16); color: #e6b45a; border: 1px solid rgba(230, 180, 90, 0.4); }
.btn-on { border-color: var(--accent-2); color: var(--accent-2); }
.inc-full { grid-template-columns: minmax(0, 1fr); }
.exc { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-dim); }
.note-line { font-size: 12.5px; color: var(--text-dim); }
.terms { display: flex; flex-direction: column; gap: 8px; }
.key-term { border-radius: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--board-line); border-left: 3px solid var(--accent); }
.key-term-h { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.key-term-b { font-size: 13px; line-height: 1.45; color: var(--text); }
.key-cancel { border-left-color: #e6b45a; } .key-cancel .key-term-h { color: #e6b45a; }
.key-child { border-left-color: var(--accent-2); } .key-child .key-term-h { color: var(--accent-2); }
.next-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
/* history drawer */
.history { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--board-bg); border-left: 1px solid var(--board-line); transform: translateX(100%); transition: transform 0.2s; z-index: 30; display: flex; flex-direction: column; }
body.history-open .history { transform: none; }
.history-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--board-line); }
.history-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .history { transition: none; } }
.pkg-detail .pkg-top .id-badge { background: var(--accent); color: #0b0d12; }
.pkg-detail .pkg-dest { font-size: 26px; }
.pkg-detail .pkg-body { padding: 12px 16px 14px; gap: 8px; }
.pkg-detail .pkg-title { font-size: 15.5px; -webkit-line-clamp: 2; }
.pkg-detail .facts .fact { font-size: 12px; padding: 3px 9px; }
.alt-dates { font-size: 12.5px; color: var(--text-soft); }
.alt-dates-l { color: var(--text-dim); }
.inc { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; font-size: 12.5px; color: var(--text-soft); }
.inc li { display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; }
.inc li::before { content: "✓"; color: var(--accent-2); flex: none; }
.pkg-detail .why { -webkit-line-clamp: 3; font-size: 13px; color: var(--text); padding: 7px 10px; border-radius: 8px; background: rgba(126, 231, 199, 0.10); border-left: 3px solid var(--accent-2); }
.pkg-foot-detail { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pkg-price-detail { flex-direction: column; align-items: flex-start; gap: 2px; }
.pkg-price-detail .price { font-size: 24px; }
.pkg-detail .btns { width: auto; }
.pkg-detail .btns .btn { flex: none; padding: 9px 14px; }
.pkg-detail .btns .btn-buy { padding: 10px 18px; font-size: 13.5px; }
.pkg-detail .terms-wrap { width: 100%; padding: 0; }
.pkg .terms-wrap { padding: 0 12px 12px; }
.program-days { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 1.4; }

/* Fina's pick among flights: the same weight. */
.row.lead { border: 2px solid var(--accent-2); box-shadow: 0 0 0 4px rgba(126, 231, 199, 0.14); }
.row.lead .why { color: var(--text); font-size: 13px; }

/* ticket: after the pick, one card, three checks, one button */
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; }
.ticket-main { display: flex; flex-direction: column; padding: 14px 18px; background: var(--board-card-lead); border: 1px solid var(--board-edge); border-radius: 12px; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.ticket-head b { font-size: 14px; }
.check { display: grid; grid-template-columns: 22px 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--board-line); }
.check .cdot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); }
.check.ok .cdot { border: none; background: var(--accent-2); position: relative; }
.check.ok .cdot::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #0b0d12; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check .clabel { font-size: 13px; color: var(--text-dim); }
.check .cval { font-size: 13.5px; }
.check .cact { font-size: 12px; color: var(--accent); background: none; border: none; cursor: pointer; padding: 0; }
.ticket-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; margin-top: auto; flex-wrap: wrap; }
.ticket-foot .price { font-size: 24px; }
.ticket-side { display: flex; flex-direction: column; gap: 10px; }
.side-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--board-card); border: 1px solid var(--board-line); border-radius: 12px; font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.side-card .eyebrow { text-align: left; }

/* ---------- dock ---------- */
.dock { flex: none; padding: 10px 24px 12px; border-top: 1px solid var(--border); background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.composer { display: flex; align-items: center; gap: 12px; }
.input-pill { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 4px 6px 4px 16px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 24px; transition: border-color 0.15s; min-width: 0; }
.input-pill:focus-within { border-color: var(--accent); }
#input { flex: 1; resize: none; background: transparent; border: none; color: var(--text); padding: 10px 0; font-size: 15px; font-family: inherit; max-height: 160px; outline: none; line-height: 1.4; }
.send-btn { width: 38px; height: 38px; border-radius: 50%; border: none; background: transparent; color: var(--text-dim); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.send-btn:hover:not(:disabled) { color: var(--accent); }
.send-btn:disabled { opacity: 0.5; cursor: default; }
.mic-btn { width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--accent-2); color: #0b0d12; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; box-shadow: 0 0 0 7px rgba(126, 231, 199, 0.10); transition: box-shadow 0.2s; }
.mic-btn:hover { box-shadow: 0 0 0 9px rgba(126, 231, 199, 0.16); }
.mic-btn:disabled { opacity: 0.5; cursor: default; }
.mic-btn .ic-stop { display: none; width: 16px; height: 16px; border-radius: 3px; background: #0b0d12; }
body.recording .mic-btn .ic-mic { display: none; }
body.recording .mic-btn .ic-stop { display: block; }
body.recording .mic-btn { box-shadow: 0 0 0 9px rgba(126, 231, 199, 0.22); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(126, 231, 199, 0.10); } }
.listening { flex: 1; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--panel-2); border: 1px solid rgba(126, 231, 199, 0.55); border-radius: 24px; min-height: 50px; }
.listening[hidden] { display: none; }
body.recording .input-pill { display: none; }
.listening-text { font-size: 14.5px; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; border-radius: 2px; background: var(--accent-2); height: 8px; animation: wave 1s ease-in-out infinite; transform: scaleY(calc(0.35 + var(--mic-level, 0) * 1.4)); transform-origin: center; transition: transform 0.1s; }
.wave i:nth-child(2) { animation-delay: .1s } .wave i:nth-child(3) { animation-delay: .2s } .wave i:nth-child(4) { animation-delay: .3s }
.wave i:nth-child(5) { animation-delay: .4s } .wave i:nth-child(6) { animation-delay: .5s } .wave i:nth-child(7) { animation-delay: .6s }
@keyframes wave { 0%, 100% { height: 6px } 50% { height: 22px } }
@media (prefers-reduced-motion: reduce) { .wave i, body.recording .mic-btn { animation: none; } }
.dock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 4px; }
.dock-hint { font-size: 11.5px; color: var(--text-dim); }
.voice-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); cursor: pointer; }
.voice-toggle svg { color: var(--accent-2); }
.voice-toggle input { display: none; }
.voice-toggle .switch { width: 30px; height: 16px; border-radius: 8px; background: var(--border); position: relative; transition: background 0.15s; }
.voice-toggle .switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-dim); transition: transform 0.15s, background 0.15s; }
.voice-toggle input:checked + .switch { background: var(--accent-2); }
.voice-toggle input:checked + .switch::after { transform: translateX(14px); background: #0b0d12; }

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  .topbar { padding: 0 14px; }
  .brand-tag, .status { display: none; }
  .stage { padding: 8px 10px; }
  .zone-chat, body.has-board .zone-chat { flex: 1 1 auto; max-width: none; min-width: 0; }
  .zone-chat .dock { padding: 8px 10px 10px; }
  /* The results inside the conversation, under Fina's answer. */
  .thread > .zone-board { flex: none; display: block; border-radius: 14px; }
  .thread > .zone-board[hidden] { display: none; }
  .thread > .zone-board .zone-edge { display: none; }
  .thread > .zone-board .board { overflow: visible; flex: none; padding: 8px 10px 10px; }
  /* Fina's pick full width; the others a sideways swipe row under it. */
  .thread > .zone-board .pkg-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .thread > .zone-board .pkg-grid > * { scroll-snap-align: start; }
  .zone-head { padding: 8px 12px; }
  .rail { display: none; }
  .thread { padding: 10px 12px; }
  .bubble { max-width: 88%; font-size: 14.5px; }
  .quick { padding-left: 0; }
  .board { padding: 10px 12px 12px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 12px; }
  .row-id { flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; }
  .row-when { grid-column: 1; }
  .row-what { grid-column: 1 / -1; }
  .row-buy { grid-column: 2; grid-row: 2; }
  .row-thumb { display: none; }
  .times b { font-size: 19px; }
  /* One card per row on a phone; the pick stacks photo over details. */
  .pkg-detail { width: 100%; max-width: none; min-width: 0; }
  .pkg-main { flex-direction: column; }
  .pkg-detail .pkg-media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .pkg-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .inc { grid-template-columns: minmax(0, 1fr); }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .check { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .check .clabel { display: none; }
  .dock { padding: 8px 12px 12px; }
  .dock-hint { display: none; }
  .welcome { padding: 16px 14px 24px; gap: 18px; }
}

/* The cards answer to the width of the results panel, not the screen: the
   pick card kept a 600px minimum from the full-width layout and its text ran
   ~100px past its own border once the panel sat beside the chat. */
@container (max-width: 760px) {
  .pkg-main { flex-direction: column; }
  .pkg-detail .pkg-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg-foot-detail { flex-direction: column; align-items: stretch; }
  .pkg-detail .btns { width: 100%; flex-wrap: wrap; }
  .pkg-detail .btns .btn { flex: 1 1 auto; }
}
@container (max-width: 480px) {
  .pkg-grid { grid-template-columns: minmax(0, 1fr); }
}
