:root {
  --navy: #14213D;
  --lagoon: #1F7A8C;
  --gold: #E9B44C;
  --blush: #FBEFEA;
  --paper: #FFFFFF;
  --ink: #14213D;
  --muted: #56607A;
  --line: #E6D6CF;
  --danger: #A8322A;
  --display: 'Gloock', Georgia, serif;
  --body: 'Figtree', system-ui, sans-serif;
  --header-h: 68px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lagoon); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; padding: 16px 0;
  background: color-mix(in srgb, var(--blush) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, padding .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 24px -22px rgba(20,33,61,.6); padding: 11px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.brand { font-family: var(--display); font-size: 26px; color: var(--navy); text-decoration: none; letter-spacing: .01em; }
.brand span { color: var(--lagoon); transition: color .2s; }
.brand:hover span { color: var(--gold); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--navy); text-decoration: none; position: relative; padding: 4px 0; transition: color .15s; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease-out);
}
.nav a:hover { color: var(--lagoon); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin: -6px -8px -6px 0; padding: 0; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer; place-items: center; color: var(--navy);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .28s var(--ease-out), background-color .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(7px); }
.site-header.open .nav-toggle span { background: transparent; }
.site-header.open .nav-toggle span::before { transform: rotate(45deg); }
.site-header.open .nav-toggle span::after { transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--body); padding: 15px 24px; border-radius: 999px;
  border: 2px solid var(--navy); background: var(--navy); color: #fff;
  cursor: pointer; text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease-out), box-shadow .18s;
}
.btn:hover { background: var(--lagoon); border-color: var(--lagoon); transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgba(20,33,61,.7); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .06s; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #f2c66a; border-color: #f2c66a; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: 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); } }

/* ---------- hero ---------- */
.hero { padding: 40px 0 96px; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 92px); letter-spacing: -.01em; }
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 32ch; margin: 24px 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stack { position: relative; height: 440px; --px: 0; --py: 0; }
.stack .folder {
  position: absolute; width: 300px; left: 50%; top: 50%; --depth: 6;
  translate: calc(var(--px) * var(--depth) * 1px) calc(var(--py) * var(--depth) * 1px);
  transition: translate .5s var(--ease-out);
}
.stack .folder:nth-child(1) { transform: translate(-82%, -58%) rotate(-11deg); --depth: 5; }
.stack .folder:nth-child(2) { transform: translate(-50%, -48%) rotate(2deg); z-index: 1; --depth: 11; }
.stack .folder:nth-child(3) { transform: translate(-14%, -36%) rotate(12deg); z-index: 2; --depth: 18; }

/* ---------- the packet folder ---------- */
.folder { --c1: var(--lagoon); --c2: var(--gold); position: relative; padding-top: 30px; }
.folder .tab {
  position: absolute; top: 0; left: 18px; height: 34px; padding: 0 18px;
  background: var(--c1); color: #fff; font-size: 13px; font-weight: 600;
  border-radius: 10px 10px 0 0; display: flex; align-items: center;
  transition: transform .3s var(--ease-spring);
}
.folder .sheet {
  position: relative; background: var(--c1); color: #fff; border-radius: 4px 14px 14px 14px;
  padding: 26px 24px 24px; min-height: 230px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 30px -18px rgba(20,33,61,.55);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.folder .sheet::before {
  content: ''; position: absolute; inset: 10px 10px auto auto; width: 62%; height: 8px;
  background: repeating-linear-gradient(90deg, var(--c2) 0 14px, transparent 14px 22px); opacity: .9;
}
.folder .city { font-family: var(--display); font-size: 38px; line-height: 1; margin-top: 18px; }
.folder .country { opacity: .85; font-size: 15px; margin-top: 6px; }
.folder .days { position: absolute; left: 24px; bottom: 22px; font-size: 14px; opacity: .9; }
.stamp {
  position: absolute; right: -10px; bottom: -14px; width: 132px; height: 132px; color: var(--c2);
  transform: rotate(-14deg); opacity: .95; transition: rotate .5s var(--ease-spring), scale .5s var(--ease-spring);
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }

.on-paper { background: var(--paper); }
.on-navy { background: var(--navy); color: #fff; }
.on-navy .section-head p { color: #C7CEDD; }

/* packets grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  font: 500 15px var(--body); padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--navy);
  background: transparent; color: var(--navy); cursor: pointer;
  transition: background .18s, color .18s, transform .18s var(--ease-out);
}
.chip:hover { background: rgba(20,33,61,.08); transform: translateY(-1px); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.packets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 40px 28px; }
.packet-card { display: flex; flex-direction: column; gap: 18px; }
.packet-card .tagline { color: var(--muted); margin: 0; }
.peek { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.peek li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; }
.peek b { font-weight: 600; color: var(--lagoon); }
.peek .more { color: var(--muted); grid-column: 2; }
.packet-card .btn { align-self: flex-start; }
.packet-card [data-buy] .folder { cursor: pointer; }
.soon { align-self: flex-start; display: inline-block; font-weight: 600; font-size: 15px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 999px; padding: 12px 20px; }
.grid-note { grid-column: 1 / -1; color: var(--muted); }

/* loading placeholders */
.skeleton { display: flex; flex-direction: column; gap: 16px; }
.skeleton i {
  display: block; border-radius: 10px;
  background: linear-gradient(100deg, #f1e6e1 30%, #fbf5f2 50%, #f1e6e1 70%) 0 0 / 300% 100%;
}
.skeleton .sk-folder { height: 260px; border-radius: 4px 14px 14px 14px; margin-top: 30px; }
.skeleton .sk-line { height: 14px; width: 90%; }
.skeleton .sk-line.short { width: 55%; }
.skeleton .sk-btn { height: 50px; width: 70%; border-radius: 999px; }

/* steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--gold); padding-top: 20px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 48px; color: var(--gold); display: block; line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 26px; margin-bottom: 8px; }
.steps p { color: #C7CEDD; }

/* pricing */
.tiers { max-width: 960px; }
.tier {
  background: var(--paper); border: 2px solid var(--lagoon); border-radius: 18px; padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: start;
  transition: box-shadow .35s, transform .35s var(--ease-out);
}
.tier:hover { box-shadow: 0 26px 40px -30px rgba(20,33,61,.55); transform: translateY(-3px); }
.tier .btn { justify-self: start; }
.co-price { display: flex; justify-content: space-between; gap: 12px; border: 1.5px solid var(--lagoon); background: #EEF6F7; border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.empty-state { grid-column: 1 / -1; border: 2px dashed var(--line); border-radius: 18px; padding: 48px 32px; text-align: center; }
.empty-state h3 { font-size: 30px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 46ch; margin: 0 auto 20px; }
.tier h3 { font-size: 30px; }
.tier .price { font-family: var(--display); font-size: 58px; line-height: 1; margin: 18px 0 6px; }
.tier .price small { font: 500 16px var(--body); color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 6px 0 0; }
.tier li { margin-bottom: 10px; padding-left: 30px; position: relative; }
.tier li::before {
  content: ''; position: absolute; left: 2px; top: .42em; width: 14px; height: 7px;
  border-left: 2.5px solid var(--lagoon); border-bottom: 2.5px solid var(--lagoon); transform: rotate(-45deg);
}
.tier .note { font-size: 14px; color: var(--lagoon); font-weight: 600; }

/* planner */
.planner .wrap { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 200px 200px 18px 18px; background: var(--lagoon);
  display: grid; place-items: center; color: var(--gold); font-family: var(--display); font-size: 120px;
  position: relative; overflow: hidden;
}
.portrait::after { content: ''; position: absolute; inset: auto -20% -30% -20%; height: 60%; background: var(--gold); border-radius: 50%; opacity: .25; }
.planner blockquote { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); line-height: 1.25; margin: 0 0 20px; }
.planner .sig { color: var(--muted); }

/* privacy and terms pages */
.legal { max-width: 720px; padding: 24px 0 88px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); }
.legal .updated { color: var(--muted); margin: 12px 0 28px; }
.legal h2 { font-size: 28px; margin: 40px 0 12px; scroll-margin-top: calc(var(--header-h) + 12px); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.co-legal { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* footer */
footer { padding: 44px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- checkout dialog ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(520px, 100% - 32px); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(20,33,61,.7); }
dialog::backdrop { background: rgba(20,33,61,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog-body { padding: 30px; }
.dialog-body h2 { font-size: 32px; margin-bottom: 6px; padding-right: 34px; }
.dialog-body .sub { color: var(--muted); }
.close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1;
  transition: background .15s, color .15s, transform .25s var(--ease-out);
}
.close:hover { background: var(--blush); color: var(--navy); transform: rotate(90deg); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea, .field select {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--lagoon); outline: none; box-shadow: 0 0 0 3px rgba(31,122,140,.2); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(168,50,42,.14); }
.field .hint { font-size: 14px; color: var(--danger); min-height: 0; }
.tier-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.tier-pick label { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.tier-pick label:has(input:checked) { border-color: var(--lagoon); background: #EEF6F7; }
.tier-pick .amt { margin-left: auto; font-weight: 700; }
.error { color: var(--danger); font-size: 15px; min-height: 1.4em; margin: 4px 0 12px; }

.test-banner { background: var(--gold); color: var(--navy); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }

/* waiting dots (thanks page, loading states) */
.dots::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* chat bubbles shared by the trip page and the planner inbox */
.bubble.pending { opacity: .6; }
.bubble.failed { outline: 2px solid var(--danger); }

/* ---------- motion (skipped entirely for people who ask for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }

  /* hero cards are dealt, then each stamp is pressed on */
  .stack .folder { animation: deal .9s var(--ease-out) both; }
  .stack .folder:nth-child(2) { animation-delay: .12s; }
  .stack .folder:nth-child(3) { animation-delay: .24s; }
  @keyframes deal { from { opacity: 0; translate: 0 40px; rotate: -6deg; } }
  .stack .stamp { animation: press .5s var(--ease-spring) both; animation-delay: .75s; }
  .stack .folder:nth-child(2) .stamp { animation-delay: .9s; }
  .stack .folder:nth-child(3) .stamp { animation-delay: 1.05s; }
  @keyframes press { from { opacity: 0; scale: 1.9; rotate: 14deg; } }

  .hero h1, .hero .lede, .hero .actions { animation: rise .8s var(--ease-out) both; }
  .hero .lede { animation-delay: .1s; }
  .hero .actions { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; translate: 0 22px; } }

  /* things slide up as they scroll into view (site.js adds .pre, then .in) */
  [data-reveal] { transition: opacity .7s var(--ease-out), translate .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  [data-reveal].pre { opacity: 0; translate: 0 26px; }

  /* destination cards arrive one after another, and again when you filter */
  .packet-card, .empty-state { animation: rise .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .skeleton i { animation: shimmer 1.3s linear infinite; }
  @keyframes shimmer { to { background-position: -150% 0; } }

  dialog[open] { animation: dialog-in .32s var(--ease-spring); }
  dialog[open]::backdrop { animation: fade-in .25s ease-out; }
  @keyframes dialog-in { from { opacity: 0; translate: 0 24px; scale: .96; } }
  @keyframes fade-in { from { opacity: 0; } }
  .shake { animation: shake .36s; }
  @keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }

  .bubble.new { animation: bubble-in .34s var(--ease-spring) both; }
  @keyframes bubble-in { from { opacity: 0; translate: 0 10px; scale: .94; } }
  .badge { animation: badge-pop .4s var(--ease-spring); }
  @keyframes badge-pop { from { scale: .4; opacity: 0; } }
}

/* hover effects only where there is a real pointer, so phones don't get stuck states */
@media (hover: hover) {
  .packet-card:hover .sheet, .stack .folder:hover .sheet { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 30px 36px -20px rgba(20,33,61,.6); }
  .packet-card:hover .tab, .stack .folder:hover .tab { transform: translateY(-9px); }
  .packet-card:hover .stamp, .stack .folder:hover .stamp { rotate: 12deg; scale: 1.06; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap, .planner .wrap { grid-template-columns: 1fr; }
  .stack { height: 320px; overflow: hidden; margin-inline: -16px; }
  .stack .folder { width: 210px; }
  .stack .folder:nth-child(1) { transform: translate(-90%, -55%) rotate(-11deg); }
  .stack .folder:nth-child(3) { transform: translate(-8%, -38%) rotate(12deg); }
  .steps, .tier { grid-template-columns: 1fr; }
  .tier { padding: 28px; }
  .portrait { max-width: 280px; }
  section { padding: 64px 0; }

  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 8px;
    box-shadow: 0 24px 40px -24px rgba(20,33,61,.55); font-size: 17px;
    opacity: 0; visibility: hidden; translate: 0 -8px;
    transition: opacity .2s, translate .25s var(--ease-out), visibility 0s .25s;
  }
  .site-header.open .nav { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
  .nav a { padding: 13px 14px; border-radius: 10px; }
  .nav a::after { display: none; }
  .nav a:hover, .nav a[aria-current] { background: var(--blush); }
}
@media (max-width: 420px) {
  .folder .city { font-size: 32px; }
  .dialog-body { padding: 24px 20px; }
  .btn { padding: 14px 20px; }
}

/* ---------- AI travel assistant ---------- */
.assist { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.assist.left { right: auto; left: 20px; align-items: flex-start; }
.assist-launch {
  display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--body); padding: 14px 18px;
  border: 0; border-radius: 999px; background: var(--lagoon); color: #fff; cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(20,33,61,.75);
  transition: transform .2s var(--ease-out), background .18s, box-shadow .2s;
}
.assist-launch:hover { background: var(--navy); transform: translateY(-2px); }
.assist-launch:active { transform: scale(.96); }
.assist.open .assist-launch span { display: none; }
.assist.open .assist-launch { padding: 14px; }
.assist-panel {
  order: -1; padding: 0; width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100dvh - 120px));
  display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 34px 70px -30px rgba(20,33,61,.7);
}
.assist-panel header { display: flex; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 20px; background: var(--navy); color: #fff; position: relative; }
.assist-panel header h2 { font-size: 24px; }
.assist-panel header p { margin: 4px 0 0; font-size: 13px; color: #C7CEDD; line-height: 1.35; }
.assist-panel header .close { position: static; flex: none; color: #C7CEDD; }
.assist-panel header .close:hover { background: #24365E; color: #fff; }
.assist-bar { display: flex; gap: 8px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.assist-bar .chip { font-size: 13px; padding: 6px 12px; border-width: 1.5px; }
.assist-msg.bot a { color: var(--lagoon); font-weight: 600; overflow-wrap: anywhere; }
.assist-msg.bot a:hover { color: var(--navy); }
.assist-saved { flex: 1; overflow-y: auto; background: var(--blush); padding: 10px; scrollbar-width: thin; }
.assist-saved ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.assist-saved li { display: flex; gap: 6px; align-items: stretch; }
.assist-saved li.assist-note { display: block; padding: 18px 8px; }
.assist-saved-open {
  all: unset; box-sizing: border-box; flex: 1; min-width: 0; cursor: pointer; padding: 10px 12px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line); display: grid; gap: 2px; transition: border-color .15s, box-shadow .15s;
}
.assist-saved-open:hover, .assist-saved-open[aria-current] { border-color: var(--lagoon); }
.assist-saved-open[aria-current] { box-shadow: inset 4px 0 0 var(--lagoon); }
.assist-saved-open b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assist-saved-open span { font-size: 12px; color: var(--muted); }
.assist-saved-del { all: unset; cursor: pointer; width: 34px; text-align: center; font-size: 20px; color: var(--muted); border-radius: 10px; }
.assist-saved-del:hover { background: var(--paper); color: var(--danger); }
.assist-saved-open:focus-visible, .assist-saved-del:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.assist-thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--blush); scrollbar-width: thin; }
.assist-hello, .assist-note { font-size: 15px; color: var(--muted); margin: 0; }
.assist-note { align-self: center; text-align: center; font-size: 14px; }
.assist-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.assist-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.assist-msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.assist-msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.assist-typing { color: var(--muted); }
.assist-typing::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.4s steps(4, end) infinite; }
.assist-typing:empty::before { content: 'Thinking'; }
.assist-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.assist-sources span { color: var(--muted); width: 100%; }
.assist-sources a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--blush); }
.assist-sources a:hover { border-color: var(--lagoon); }
.assist-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 12px 8px; border-top: 1px solid var(--line); }
.assist-form textarea { flex: 1; font: inherit; font-size: 15px; resize: none; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; }
.assist-form textarea:focus { border-color: var(--lagoon); outline: none; box-shadow: 0 0 0 3px rgba(31,122,140,.2); }
.assist-form textarea:disabled { background: var(--blush); }
.assist-send { padding: 12px 18px; font-size: 15px; }
.assist-foot { padding: 0 14px 12px; font-size: 13px; color: var(--muted); }
.assist-foot p { margin: 0; }
.assist-meter { font-weight: 600; color: var(--navy); }
.assist-unlock-toggle { all: unset; cursor: pointer; color: var(--lagoon); text-decoration: underline; margin-top: 2px; }
.assist-unlock-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.assist-unlock { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.assist-unlock input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; }
.assist-unlock .chip { font-size: 14px; padding: 7px 14px; }
.assist-unlock-err { width: 100%; color: var(--danger); }
.assist-fine { margin-top: 8px !important; font-size: 12px; line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .assist-launch { animation: rise .6s var(--ease-out) .5s both; }
  .assist-panel:not([hidden]) { animation: dialog-in .28s var(--ease-spring); transform-origin: bottom right; }
  .assist-msg.new { animation: bubble-in .34s var(--ease-spring) both; }
}
@media (max-width: 520px) {
  .assist, .assist.left { right: 12px; left: 12px; bottom: 12px; align-items: flex-end; }
  .assist-panel { width: 100%; height: min(600px, calc(100dvh - 96px)); }
  .assist:not(.open) .assist-launch span { display: none; }
  .assist:not(.open) .assist-launch { padding: 16px; }
}
