/* YOLO Travel Club — colour tokens only below :root. scripts/css-tokens.mjs
   fails the build on a raw colour anywhere outside a token block. */

:root {
  --bg: #f4f6f8;
  --bg-2: #e6ecf1;
  --card: #ffffff;
  --ink: #16202a;
  --ink-2: #4b5866;
  --ink-3: #5f6d7b;
  --line: #dde4ea;
  --accent: #0c4266;
  --accent-ink: #ffffff;
  --accent-soft: #e0eaf2;
  --ok: #15803d;
  --ok-soft: #dcf2e3;
  --warn: #b45309;
  --warn-soft: #fdf0d8;
  --bad: #b91c1c;
  --bad-soft: #fde2e2;
  --mine: #0e7490;
  --mine-soft: #d9f0f4;
  --shadow: 0 1px 2px rgba(12, 40, 64, .06), 0 8px 24px rgba(12, 40, 64, .08);
  --arrow: #e11d48;
  --arrow-halo: #ffffff;
  --gold: #b08d57;
  /* the opening animation (always dark) */
  --intro-bg: #06090d; --intro-gold: #f2d58a; --intro-white: #ffffff; --intro-dim: rgba(255, 255, 255, .85); --intro-line: rgba(255, 255, 255, .35);
  --intro-shade: rgba(0, 0, 0, .55); --intro-shade-2: rgba(0, 0, 0, .25); --intro-shade-3: rgba(0, 0, 0, .35); --intro-shadow: rgba(0, 0, 0, .6);
  --gold-soft: #f3e9d8;
  --gold-text: #7d5d2a;
  --gold-ink: #1b1206;
  --scrim: rgba(8, 20, 32, .45);
  --hero-fade: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72) 100%);
  --on-hero: #ffffff;
  --cat-transfer: #6d28d9;
  --cat-meal: #c2410c;
  --cat-activity: #0369a1;
  --cat-free: #15803d;
  --cat-spa: #be185d;
  --tag-chill: #0e7490;
  --tag-adrenaline: #dc2626;
  --tag-food: #9d174d;
  --tag-culture: #7c3aed;
  --radius: 16px;
  --radius-s: 10px;
  --font-display: 'Alegreya', Georgia, serif;
  --font: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tabbar-h: 0px;
  --nav-w: 264px;
  --appbar-h: 56px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b131b;
    --bg-2: #101b26;
    --card: #142230;
    --ink: #eef3f7;
    --ink-2: #b6c2cd;
    --ink-3: #7d8b98;
    --line: #233446;
    --accent: #8cc0e6;
    --accent-ink: #06182a;
    --accent-soft: #16334d;
    --ok: #4ade80;
    --ok-soft: #173222;
    --warn: #fbbf24;
    --warn-soft: #3a2d12;
    --bad: #f87171;
    --bad-soft: #3b1a1a;
    --mine: #22d3ee;
    --mine-soft: #0f2d33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --scrim: rgba(0, 0, 0, .6);
    --gold: #d6b47c;
    --gold-soft: #3a3020;
    --gold-text: #e2c48f;
    --gold-ink: #1b1206;
    --cat-transfer: #a78bfa;
    --cat-meal: #fb923c;
    --cat-activity: #38bdf8;
    --cat-free: #4ade80;
    --cat-spa: #f472b6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b131b; --bg-2: #101b26; --card: #142230; --ink: #eef3f7; --ink-2: #b6c2cd; --ink-3: #7d8b98; --line: #233446;
  --accent: #8cc0e6; --accent-ink: #06182a; --accent-soft: #16334d; --ok: #4ade80; --ok-soft: #173222; --warn: #fbbf24; --warn-soft: #3a2d12;
  --bad: #f87171; --bad-soft: #3b1a1a; --mine: #22d3ee; --mine-soft: #0f2d33; --scrim: rgba(0, 0, 0, .6); --gold: #d6b47c; --gold-soft: #3a3020;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --cat-transfer: #a78bfa; --cat-meal: #fb923c; --cat-activity: #38bdf8; --cat-free: #4ade80; --cat-spa: #f472b6;
  color-scheme: dark;
}

/* Trip skins — a trip's accent follows you through its screens. */
/* A chosen trip theme (data-pack) brings its own palette, so skins step aside. */
:root:not([data-pack]) [data-trip="portugal"] { --accent: #1d4ed8; --accent-soft: #dde7fb; --accent-ink: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-pack]) [data-trip="portugal"] { --accent: #60a5fa; --accent-soft: #172a4a; --accent-ink: #0b1526; } }
:root:not([data-pack]) [data-trip="iceland"] { --accent: #0f766e; --accent-soft: #d5f0ec; --accent-ink: #ffffff; }
:root:not([data-pack]) [data-trip="tropics"] { --accent: #0e7490; --accent-soft: #d6eff4; --accent-ink: #ffffff; }
:root:not([data-pack]) [data-trip="weihnacht"] { --accent: #0f4d33; --accent-soft: #dbeadf; --accent-ink: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-pack]) [data-trip="weihnacht"] { --accent: #7fc9a0; --accent-soft: #15301f; --accent-ink: #07130c; } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  min-height: 100vh; min-height: 100dvh;
}
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
p { margin: 0 0 .75em; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); font-size: 13px; }
.small { font-size: 14px; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
#main { max-width: 760px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
.boot { padding: 40vh 0; text-align: center; color: var(--ink-3); }
#main > .boot:empty { position: fixed; inset: 0; background: var(--intro-bg); padding: 0; }
.topbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.topbar .grow { flex: 1; min-width: 0; }
.topbar h1 { font-size: 26px; }
.back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; flex: none; }
.section { margin: 26px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.section h2 { font-size: 20px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- left-hand menu ---------- */
.sidenav {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 45; width: var(--nav-w);
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  padding: max(22px, env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
  background: var(--card); border-right: 1px solid var(--line);
  transform: translateX(-105%); transition: transform .22s ease;
}
.sidenav.open { transform: none; box-shadow: var(--shadow); }
.navhead { padding: 4px 10px 18px; color: var(--accent); }
.navhead .logo { width: 150px; }
.navhead .club { font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.navlist { display: flex; flex-direction: column; gap: 2px; }
.navlist button { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 10px 12px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-align: left; position: relative; }
.navlist button svg { width: 22px; height: 22px; flex: none; }
.navlist button:hover { background: var(--bg); }
.navlist button.on { background: var(--accent-soft); color: var(--accent); }
.navlist .count { margin-left: auto; font-style: normal; font-size: 12px; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); text-align: center; }
.navlist.trips button { font-size: 14px; padding: 8px 10px; }
.navlist.trips button.pastnav { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: 10px; }
.navlist.trips button.pastnav .ph { display: grid; place-items: center; font-size: 16px; }
.navlist.trips img, .navlist.trips .ph { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-2); }
.navlist.trips small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.navsec { margin: 18px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.navfoot { margin-top: auto; padding: 18px 12px 0; font-size: 13px; }
.navscrim { position: fixed; inset: 0; background: var(--scrim); z-index: 44; opacity: 0; pointer-events: none; transition: opacity .2s; }
.navscrim.on { opacity: 1; pointer-events: auto; }
.appbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: calc(var(--appbar-h) + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: env(safe-area-inset-top) 12px 0; background: var(--card); border-bottom: 1px solid var(--line); color: var(--accent);
}
.appbar .logo { width: 104px; }
.appbar .iconbtn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; }
.appbar .avatar { width: 34px; height: 34px; font-size: 13px; }
body.authed #main { padding-top: calc(var(--appbar-h) + 16px + env(safe-area-inset-top)); }
body.authed .tabs { top: calc(var(--appbar-h) + env(safe-area-inset-top)); }
body.authed .brandbar { display: none; }
@media (min-width: 900px) {
  .sidenav { transform: none; }
  .navscrim, .appbar { display: none !important; }
  body.authed { padding-left: var(--nav-w); }
  body.authed #main { padding-top: 28px; max-width: 860px; }
  body.authed .tabs { top: 0; }
  body.authed .dock { left: var(--nav-w); }
  body.authed .hero { margin: -10px 0 0; border-radius: 22px; }
}
/* ---------- weather ---------- */
.wx { display: flex; align-items: center; gap: 14px; }
.wx .ic { font-size: 38px; line-height: 1; }
.wx .now { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.wx .hl { font-weight: 600; }
.wxchip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.wxdays { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.wxdays > div { flex: none; min-width: 58px; text-align: center; padding: 8px 6px; border-radius: 12px; background: var(--bg); font-size: 12px; }
.wxdays b { display: block; font-size: 20px; margin: 2px 0; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.tight { padding: 12px 14px; }
.card.flat { box-shadow: none; }
.card.accent { background: var(--accent-soft); border-color: transparent; }
.card.warn { background: var(--warn-soft); border-color: transparent; }

.tripcard { position: relative; border-radius: 20px; overflow: hidden; min-height: 210px; display: flex; align-items: flex-end; background: var(--bg-2); box-shadow: var(--shadow); border: 0; width: 100%; padding: 0; text-align: left; }
.tripcard img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tripcard .fade { position: absolute; inset: 0; background: var(--hero-fade); }
.tripcard .txt { position: relative; padding: 18px; color: var(--on-hero); width: 100%; }
.tripcard h2 { font-size: 26px; }
.tripcard .meta { font-size: 14px; opacity: .92; margin-top: 4px; }
.tripcard.noimg .txt { color: var(--ink); }
.tripcard.noimg .fade { display: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--accent); color: var(--accent-ink); }
.pill.soft { background: var(--accent-soft); color: var(--accent); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.countdown { font-family: var(--font-display); font-size: 40px; line-height: 1; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px;
}
.btn.block { width: 100%; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; flex: none; }
.iconbtn svg { width: 20px; height: 20px; }

label.f { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 12px 0 6px; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 90px; }
.codebox { font-size: 28px; letter-spacing: 10px; text-align: center; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- join ---------- */
.join-hero { margin: -16px -16px 0; padding: calc(44px + env(safe-area-inset-top)) 24px 34px; background: var(--accent); color: var(--accent-ink); border-radius: 0 0 28px 28px; }
.join-hero .logo { width: min(260px, 70vw); }
.join-hero .brand { font-family: var(--font-display); font-size: 40px; line-height: 1; margin-top: 22px; }
.join-hero .brand span { display: block; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; opacity: .8; margin-top: 8px; }
.join-hero p { opacity: .85; margin-top: 14px; max-width: 34ch; }
.join-body { padding: 24px 0; }

/* ---------- trip hub ---------- */
.hero { position: relative; margin: -16px -16px 0; min-height: 260px; display: flex; align-items: flex-end; background: var(--bg-2); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .fade { position: absolute; inset: 0; background: var(--hero-fade); }
.hero .txt { position: relative; padding: 20px 18px 18px; color: var(--on-hero); width: 100%; }
.hero.noimg .txt { color: var(--ink); } .hero.noimg .fade { display: none; }
.hero .back { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; background: var(--card); color: var(--ink); z-index: 2; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1px solid var(--line); background: var(--card); padding: 10px 16px; min-height: 42px; border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.tabs button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px 12px; text-align: center; min-width: 58px; }
.days button b { display: block; font-size: 18px; font-family: var(--font-display); }
.days button small { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; }
.days button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.days button.on small { color: var(--accent-ink); opacity: .8; }
.days button.today:not(.on) { border-color: var(--accent); }

.dayhead { margin: 6px 0 14px; }
.dayhead .hotel { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.timeline { position: relative; }
.item { display: flex; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 0; margin-bottom: 12px; }
.item .time { width: 58px; flex: none; text-align: right; font-size: 13px; font-weight: 700; color: var(--ink-2); padding-top: 14px; }
.item .body { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--cat, var(--accent)); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.item .body .t { font-weight: 700; }
.item .body .l { font-size: 13px; color: var(--ink-3); }
.item .thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-2); }
.item.mine .body { background: var(--mine-soft); border-color: transparent; border-left-color: var(--mine); }
.item.past { opacity: .55; }
.item.now .body { box-shadow: 0 0 0 2px var(--accent); }
.cat-transfer { --cat: var(--cat-transfer); } .cat-meal { --cat: var(--cat-meal); } .cat-activity { --cat: var(--cat-activity); } .cat-free { --cat: var(--cat-free); } .cat-spa { --cat: var(--cat-spa); }
.catlabel { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cat); }

/* ---------- sheet (detail cards, forms) ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; touch-action: none; }
body.sheeting { overflow: hidden; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  background: var(--card); border-radius: 22px 22px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .25s ease; max-width: 760px; margin: 0 auto; overscroll-behavior: contain;
}
.sheet.on { transform: translateY(0); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet .close { position: sticky; top: 0; float: right; }
.gallery { display: flex; gap: 8px; overflow-x: auto; margin: 12px -18px; padding: 0 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery img { height: 220px; width: auto; max-width: 85vw; border-radius: 14px; object-fit: cover; scroll-snap-align: start; flex: none; background: var(--bg-2); }
.md h1, .md h2, .md h3 { margin: 14px 0 6px; font-size: 18px; }
.md ul, .md ol { padding-left: 20px; margin: 6px 0 12px; }
.md li { margin: 3px 0; }
.md p:last-child { margin-bottom: 0; }

/* ---------- board, chat ---------- */
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 46px; max-height: 160px; padding: 11px 14px; border-radius: 22px; }
.composer .send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); flex: none; display: grid; place-items: center; }
.composer .send svg, .composer .iconbtn svg { width: 20px; height: 20px; }
.composer .iconbtn { width: 46px; height: 46px; border-radius: 50%; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.post { padding: 14px; }
.post.pinned { border-color: var(--accent); }
.who { display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.post .text { margin: 10px 0 0; white-space: pre-wrap; word-wrap: break-word; }
.post .pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin-top: 10px; }
.post .pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.comments { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.comment { display: flex; gap: 8px; margin: 8px 0; font-size: 14px; }
.comment .bubble { background: var(--bg-2); border-radius: 12px; padding: 7px 11px; }

.chat { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.msg { max-width: 80%; display: flex; gap: 8px; align-items: flex-end; }
.msg .b { background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 8px 12px; white-space: pre-wrap; word-wrap: break-word; }
.msg .n { font-size: 11px; font-weight: 700; color: var(--ink-3); margin: 6px 0 2px 46px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .b { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); border-radius: 18px 18px 6px 18px; }
.msg img { border-radius: 12px; max-height: 240px; margin-top: 4px; }
.stamp { text-align: center; font-size: 12px; color: var(--ink-3); margin: 10px 0 4px; }
.dock { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 20; background: var(--bg); padding: 8px 16px; border-top: 1px solid var(--line); }
.dock > div { max-width: 728px; margin: 0 auto; }
.dock.kb { padding-bottom: 8px; }
.composer textarea { max-height: 160px; }
.loadmore { text-align: center; padding: 4px 0 10px; }
/* Long-press on a photo card should not pop the iOS image menu. */
.tripcard img, .hero img, .navlist.trips img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* A photo in the viewer can be pinched. */
.zoomwrap { touch-action: pinch-zoom; overflow: auto; -webkit-overflow-scrolling: touch; max-height: 80dvh; }
.typing { font-size: 12px; color: var(--ink-3); height: 16px; }

.list > button, .list > a, .list > div.li { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-align: left; margin-bottom: 8px; color: var(--ink); }
.list .unread { font-weight: 800; }
.people-card { padding: 12px 14px 4px; }
.people-card .list.flat > button { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 10px 2px; }
.people-card .list.flat > button:last-child { border-bottom: 0; }
.people-card .chev { color: var(--ink-3); font-size: 20px; }
.online { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; transition: all .2s; z-index: 60; max-width: 90vw; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.empty { text-align: center; color: var(--ink-3); padding: 30px 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 600; }
.bubbles { display: flex; flex-direction: column; gap: 10px; }
.bubbles .q { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-radius: 16px 16px 4px 16px; padding: 9px 13px; max-width: 85%; }
.bubbles .a { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 14px; max-width: 92%; white-space: pre-wrap; }

/* ---------- admin ---------- */
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wired { display: flex; flex-wrap: wrap; gap: 6px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t td, table.t th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.adminitem { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.adminitem:last-child { border-bottom: 0; }
.envbar { position: fixed; top: 0; left: 0; right: 0; z-index: 70; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; background: var(--warn); color: var(--card); padding: 2px 0 2px; padding-top: max(2px, env(safe-area-inset-top)); }

.notimes .item .time { display: none; }
.thumbs:empty { display: none; }
.typing:empty { height: 6px; }
body.staging #main { padding-top: calc(max(16px, env(safe-area-inset-top)) + 26px); }
body.staging .hero { margin-top: -42px; }

/* ---------- Amy & Derek Travel brand ---------- */
.logo { display: block; aspect-ratio: 1200 / 492; background: currentColor; -webkit-mask: url(brand/logo.png) center / contain no-repeat; mask: url(brand/logo.png) center / contain no-repeat; }
.brandbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 6px; color: var(--accent); }
.brandbar .logo { width: 118px; }
.brandbar .club { font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); }
.signoff { color: var(--ink-3); text-align: center; margin: 28px auto 6px; }
.signoff .logo { width: 120px; margin: 0 auto 6px; color: var(--ink-2); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }

/* ---------- next up / nudges ---------- */
.nextup { border-left: 4px solid var(--accent); }
.nextup .when { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }

/* ---------- documents ---------- */
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.doc:first-child { border-top: 0; }
.doc .ic { width: 38px; height: 46px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.pickrow { display: flex; flex-wrap: wrap; gap: 6px; }
.pickrow label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 14px; background: var(--card); cursor: pointer; }
.pickrow input { width: auto; margin: 0; }
.pickrow label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.t td.r { text-align: right; white-space: nowrap; }
details.card summary { cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: '＋'; float: right; color: var(--ink-3); }
details.card[open] summary::after { content: '－'; }

/* ---------- concierge ---------- */
.czbubble { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 35; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); display: grid; place-items: center; }
.czbubble svg { width: 28px; height: 28px; }
/* On screens with a message box at the bottom, the bubble sits above it instead of on the Send button. */
body:has(.dock) .czbubble { bottom: calc(var(--tabbar-h) + 92px + env(safe-area-inset-bottom)); width: 46px; height: 46px; right: 14px; }
body:has(.dock) .czbubble svg { width: 22px; height: 22px; }
.czbubble.open { transform: scale(.9); opacity: .0; pointer-events: none; }
.czpanel { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 42; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 90px)); display: none; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.czpanel.on { display: flex; }
.czhead { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line); }
.czhead select { margin-top: 4px; padding: 6px 8px; font-weight: 600; }
.czhead .iconbtn { width: 36px; height: 36px; border: 0; background: var(--bg); border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.czbody { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.czmsg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.czmsg.q { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.czmsg.a { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 4px; }
.czmsg a { font-weight: 700; }
.czmsg .md p:last-child, .czmsg .md ul:last-child { margin-bottom: 0; }
.czmsg .md ul { padding-left: 18px; margin: 6px 0; }
.czmsg .md li + li { margin-top: 4px; }
.czform { margin: 0 12px; }
.czfoot { padding: 6px 16px 12px; }
@media (max-width: 899px) { .czfoot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); } }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 899px) {
  .czpanel { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); }
}

/* ---------- free-day ideas ---------- */
.seg { display: inline-flex; background: var(--bg-2); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 10px; font-weight: 700; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.ideagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.idea { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ideaimg { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bg-2); }
.ideaimg { overflow: hidden; }
.ideaimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ideaimg .pill { z-index: 1; }
.ideaimg .pill { position: absolute; left: 10px; top: 10px; }
.ideatxt { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.ideatxt .row { margin-top: auto !important; padding-top: 10px; }
.card.ideas { display: block; width: 100%; text-align: left; margin: 4px 0 12px; border-left: 4px solid var(--gold); }
.ideathumbs { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.ideathumbs img { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; }
.ideathumbs span { margin-left: 6px; font-weight: 700; color: var(--accent); font-size: 14px; }

/* ---------- view as ---------- */
.vabar { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; justify-content: center; gap: 10px; padding: calc(6px + env(safe-area-inset-top)) 12px 6px; background: var(--gold); color: var(--ink); font-size: 14px; }
body.viewas .appbar { top: calc(40px + env(safe-area-inset-top)); }
body.viewas #main { margin-top: 40px; }
@media (min-width: 900px) { body.viewas .sidenav { top: 40px; } }

/* ---------- activity tags ---------- */
.pill.tag { color: var(--on-hero); border: 0; }
.tag-chill { --tagc: var(--tag-chill); } .tag-adrenaline { --tagc: var(--tag-adrenaline); } .tag-food-wine { --tagc: var(--tag-food); } .tag-culture { --tagc: var(--tag-culture); }
.pill.tag { background: var(--tagc, var(--accent)); }
.chip.tagchip { color: var(--tagc); border-color: var(--tagc); }
.chip.tagchip.on { background: var(--tagc); color: var(--on-hero); }
/* ---------- trip cards: Open For Booking ---------- */
.tripwrap { position: relative; }
.tripwrap + .tripwrap { margin-top: 12px; }
.bookbadge { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--card); color: var(--accent); font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 99px; box-shadow: var(--shadow); }
/* ---------- booking card in an item ---------- */
.bookingcard { background: var(--accent-soft); border: 0; margin: 12px 0 4px; }
.ccnote { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); font-size: 14px; line-height: 1.35; }
.pfiles { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.pfile { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.pfile .ic, .fchip .ic { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 4px 6px; border-radius: 6px; background: var(--bad-soft); color: var(--bad); }
.pfile b { display: block; font-size: 14px; word-break: break-word; } .pfile small { color: var(--ink-3); font-size: 12px; }
.pfile .chev { color: var(--ink-3); }
.filechips { display: flex; flex-direction: column; gap: 6px; }
.filechips:not(:empty) { margin-top: 8px; }
.fchip { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px 10px 12px; border: 1px solid var(--accent); border-radius: 12px; font-size: 14px; background: var(--accent-soft); color: var(--ink); }
.fchip b { display: block; font-size: 14px; word-break: break-word; } .fchip small { color: var(--ink-2); font-size: 12px; }
.fchip button { flex: none; border: 0; background: var(--card); color: var(--ink-2); width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.bookingcard .conf { font-size: 22px; font-weight: 800; letter-spacing: .5px; margin: 4px 0 2px; color: var(--accent); }
/* ---------- board hub ---------- */
.tripchips { margin-bottom: 6px; }
.chip.locked { opacity: .45; }
/* ---------- smart add ---------- */
.smartcard { border-left: 4px solid var(--gold); margin-top: 18px; }
.smartitem { padding: 12px; }
/* ---------- profile ---------- */
.avwrap { position: relative; }
.avedit { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 13px; }
/* ---------- invites ---------- */
.invitesms { white-space: normal; line-height: 1.5; margin-top: 6px; }
.invitemail { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; background: var(--card); }
.howto { padding-left: 20px; line-height: 1.6; margin: 12px 0 16px; }
.howto li + li { margin-top: 10px; }

/* ---------- roles ---------- */
.role { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; padding: 2px 7px; border-radius: 99px; vertical-align: middle; }
.role.host { background: var(--gold-soft); color: var(--gold-text); }
.role.guide { background: var(--accent-soft); color: var(--accent); }
.pill.gold { background: var(--gold); color: var(--gold-ink); }
/* ---------- looks (wallpapers) ---------- */
:root[data-look] body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--wall) center / cover no-repeat fixed; opacity: .34; pointer-events: none; }
:root[data-look] body { background: var(--bg); }
:root[data-look] .sidenav, :root[data-look] .appbar { background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); }
:root[data-look] .tabs { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(8px); }
@media (prefers-color-scheme: dark) { :root[data-look]:not([data-theme="light"]) body::before { opacity: .16; } }
.hero .lookbtn { left: auto; right: 14px; font-size: 18px; }
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.look { border: 0; background: none; padding: 0; text-align: center; font-size: 13px; }
.look .sw { display: block; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--bg-2) center / cover; border: 3px solid transparent; margin-bottom: 6px; }
.look .sw.classic { background: linear-gradient(135deg, var(--card), var(--bg-2)); }
.look.on .sw { outline: 3px solid var(--accent); outline-offset: 2px; }
/* ---------- home quick view ---------- */
.quick { margin: 0 0 14px; }
@media (max-width: 560px) { .quick { grid-template-columns: 1fr; } }
.qcard { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.qrow { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.qrow .avatar.sm { flex: none; }
.qrow.ann { border-left: 3px solid var(--gold); padding-left: 8px; display: block; }
.qrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.qmore { margin-top: auto; font-weight: 700; color: var(--accent); font-size: 14px; }
/* ---------- announcements on the board ---------- */
.card.announce { border-left: 4px solid var(--gold); margin: 4px 0 14px; background: var(--gold-soft); }
.annrow + .annrow { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }

/* ---------- photo album ---------- */
.albumgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.shot { border: 0; padding: 0; background: var(--bg-2); aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.viewer img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 14px; background: var(--bg-2); }
/* ---------- checklist ---------- */
.checklist .ring { --p: 0; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--bg-2) 0); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.checklist .ring span { width: 42px; height: 42px; border-radius: 50%; background: var(--card); display: grid; place-items: center; }
.chksec h3 { font-size: 15px; margin: 14px 0 6px; }
.chk { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.chk.done span { color: var(--ink-3); text-decoration: line-through; }
/* ---------- phrasebook + translator ---------- */
.phrase { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.phrase b { font-size: 16px; }
.say, .trresult .say { font-size: 13px; color: var(--ink-3); font-style: italic; }
.speak { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 18px; flex: none; }
.trresult { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); }
.trresult .big { font-size: 20px; font-weight: 700; line-height: 1.35; }
.speakbtn { font-size: 16px; }
.smartcard.top { margin: 0 0 14px; border-left: 4px solid var(--gold); }
.speakbtn.xl { font-size: 20px; padding: 16px; }
.showcard { text-align: center; padding: 10px 4px 6px; }
.showbig { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.25; color: var(--ink); }
/* ---------- trip themes (whole-app colour, pattern and type) ---------- */
:root[data-pack="azulejo"] {
  --bg: #f2f5fb;
  --bg-2: #e3eaf6;
  --card: #ffffff;
  --ink: #0f1f3d;
  --ink-2: #3c4f73;
  --ink-3: #5a6d92;
  --line: #d2dcef;
  --accent: #1c3f94;
  --accent-soft: #e2e9f8;
  --accent-ink: #ffffff;
  --gold: #c8a24a;
  --gold-soft: #f5ecd6;
  --gold-text: #6f5212;
  --gold-ink: #1b1206;
  --pat-o: .13;
  --pat-size: 96px;
  --ribbon: linear-gradient(90deg, #1c3f94 0 25%, #ffffff 25% 30%, #1c3f94 30% 55%, #ffffff 55% 60%, #1c3f94 60% 85%, #ffffff 85% 90%, #1c3f94 90%);
  --band: #1c3f94;
  --band-ink: #ffffff;
  --head-font: 'Alegreya', Georgia, serif;
  --head-style: normal;
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%23ffffff'/%3E%3Cg fill='none' stroke='%231c3f94' stroke-width='2.2'%3E%3Crect x='1' y='1' width='94' height='94'/%3E%3Ccircle cx='48' cy='48' r='17'/%3E%3Cpath d='M48 6Q63 30 48 48Q33 30 48 6ZM48 90Q63 66 48 48Q33 66 48 90ZM6 48Q30 33 48 48Q30 63 6 48ZM90 48Q66 33 48 48Q66 63 90 48Z'/%3E%3Cpath d='M22 22L32 32M74 22L64 32M22 74L32 64M74 74L64 64'/%3E%3C/g%3E%3Cg fill='%231c3f94'%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3Cpath d='M0 0h15L0 15zM96 0v15L81 0zM0 96V81L15 96zM96 96H81L96 81z'/%3E%3Ccircle cx='48' cy='20' r='2.5'/%3E%3Ccircle cx='48' cy='76' r='2.5'/%3E%3Ccircle cx='20' cy='48' r='2.5'/%3E%3Ccircle cx='76' cy='48' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root[data-pack="azulejo"]:not([data-theme="light"]) {
    --bg: #0a1226;
    --bg-2: #0f1a33;
    --card: #121f3d;
    --ink: #eaf0ff;
    --ink-2: #b3c1e3;
    --ink-3: #7c8cb3;
    --line: #22325a;
    --accent: #8fb1ff;
    --accent-soft: #1b2d57;
    --accent-ink: #081028;
    --gold: #d9b560;
    --gold-soft: #2a2413;
    --gold-text: #e6c77a;
    --gold-ink: #1b1206;
    --pat-o: .10;
    --band: #1c3f94;
    --band-ink: #ffffff;
    --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%230a1226'/%3E%3Cg fill='none' stroke='%238fb1ff' stroke-width='2.2'%3E%3Crect x='1' y='1' width='94' height='94'/%3E%3Ccircle cx='48' cy='48' r='17'/%3E%3Cpath d='M48 6Q63 30 48 48Q33 30 48 6ZM48 90Q63 66 48 48Q33 66 48 90ZM6 48Q30 33 48 48Q30 63 6 48ZM90 48Q66 33 48 48Q66 63 90 48Z'/%3E%3Cpath d='M22 22L32 32M74 22L64 32M22 74L32 64M74 74L64 64'/%3E%3C/g%3E%3Cg fill='%238fb1ff'%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3Cpath d='M0 0h15L0 15zM96 0v15L81 0zM0 96V81L15 96zM96 96H81L96 81z'/%3E%3Ccircle cx='48' cy='20' r='2.5'/%3E%3Ccircle cx='48' cy='76' r='2.5'/%3E%3Ccircle cx='20' cy='48' r='2.5'/%3E%3Ccircle cx='76' cy='48' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  }
}
:root[data-pack="azulejo"][data-theme="dark"] {
  --bg: #0a1226;
    --bg-2: #0f1a33;
    --card: #121f3d;
    --ink: #eaf0ff;
    --ink-2: #b3c1e3;
    --ink-3: #7c8cb3;
    --line: #22325a;
    --accent: #8fb1ff;
    --accent-soft: #1b2d57;
    --accent-ink: #081028;
    --gold: #d9b560;
    --gold-soft: #2a2413;
    --gold-text: #e6c77a;
    --gold-ink: #1b1206;
    --pat-o: .10;
    --band: #1c3f94;
    --band-ink: #ffffff;
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%230a1226'/%3E%3Cg fill='none' stroke='%238fb1ff' stroke-width='2.2'%3E%3Crect x='1' y='1' width='94' height='94'/%3E%3Ccircle cx='48' cy='48' r='17'/%3E%3Cpath d='M48 6Q63 30 48 48Q33 30 48 6ZM48 90Q63 66 48 48Q33 66 48 90ZM6 48Q30 33 48 48Q30 63 6 48ZM90 48Q66 33 48 48Q66 63 90 48Z'/%3E%3Cpath d='M22 22L32 32M74 22L64 32M22 74L32 64M74 74L64 64'/%3E%3C/g%3E%3Cg fill='%238fb1ff'%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3Cpath d='M0 0h15L0 15zM96 0v15L81 0zM0 96V81L15 96zM96 96H81L96 81z'/%3E%3Ccircle cx='48' cy='20' r='2.5'/%3E%3Ccircle cx='48' cy='76' r='2.5'/%3E%3Ccircle cx='20' cy='48' r='2.5'/%3E%3Ccircle cx='76' cy='48' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-pack="porto"] {
  --bg: #f7f0e6;
  --bg-2: #eee2d0;
  --card: #fffbf4;
  --ink: #2b1215;
  --ink-2: #5e3b3d;
  --ink-3: #7d5f5b;
  --line: #e6d7c2;
  --accent: #6e1a2a;
  --accent-soft: #f2e0dc;
  --accent-ink: #fff6ea;
  --gold: #b8862f;
  --gold-soft: #f4e7cc;
  --gold-text: #734e12;
  --gold-ink: #1b1206;
  --pat-o: .22;
  --pat-size: 140px 70px;
  --ribbon: linear-gradient(90deg, #6e1a2a 0 40%, #b8862f 40% 60%, #6e1a2a 60%);
  --band: #6e1a2a;
  --band-ink: #f4e7cc;
  --head-font: 'Playfair Display', Georgia, serif;
  --head-style: italic;
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70' viewBox='0 0 140 70'%3E%3Cg fill='none' stroke='%23b8862f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M0 18Q35 6 70 18T140 18'/%3E%3Cpath d='M0 30Q35 18 70 30T140 30' stroke-dasharray='2 6'/%3E%3Cpath d='M0 52Q35 40 70 52T140 52'/%3E%3Cpath d='M0 64Q35 52 70 64T140 64' stroke-dasharray='2 6'/%3E%3C/g%3E%3Cg fill='%236e1a2a'%3E%3Ccircle cx='104' cy='37' r='2.6'/%3E%3Ccircle cx='109' cy='37' r='2.6'/%3E%3Ccircle cx='106.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='101.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='111.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='104' cy='46' r='2.6'/%3E%3Ccircle cx='109' cy='46' r='2.6'/%3E%3Ccircle cx='106.5' cy='50.5' r='2.6'/%3E%3C/g%3E%3Cpath d='M106 34q2-5 7-5' stroke='%23b8862f' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root[data-pack="porto"]:not([data-theme="light"]) {
    --bg: #170b0d;
    --bg-2: #1f1013;
    --card: #26141a;
    --ink: #f7ebe4;
    --ink-2: #d3b9b0;
    --ink-3: #9c7f78;
    --line: #3a2127;
    --accent: #e6b566;
    --accent-soft: #3a2519;
    --accent-ink: #1e0d10;
    --gold: #e6b566;
    --gold-soft: #33230f;
    --gold-text: #eec27d;
    --gold-ink: #1b1206;
    --pat-o: .16;
    --band: #4a1019;
    --band-ink: #f4e7cc;
    --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70' viewBox='0 0 140 70'%3E%3Cg fill='none' stroke='%23e6b566' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M0 18Q35 6 70 18T140 18'/%3E%3Cpath d='M0 30Q35 18 70 30T140 30' stroke-dasharray='2 6'/%3E%3Cpath d='M0 52Q35 40 70 52T140 52'/%3E%3Cpath d='M0 64Q35 52 70 64T140 64' stroke-dasharray='2 6'/%3E%3C/g%3E%3Cg fill='%23c7485f'%3E%3Ccircle cx='104' cy='37' r='2.6'/%3E%3Ccircle cx='109' cy='37' r='2.6'/%3E%3Ccircle cx='106.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='101.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='111.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='104' cy='46' r='2.6'/%3E%3Ccircle cx='109' cy='46' r='2.6'/%3E%3Ccircle cx='106.5' cy='50.5' r='2.6'/%3E%3C/g%3E%3Cpath d='M106 34q2-5 7-5' stroke='%23e6b566' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  }
}
:root[data-pack="porto"][data-theme="dark"] {
  --bg: #170b0d;
    --bg-2: #1f1013;
    --card: #26141a;
    --ink: #f7ebe4;
    --ink-2: #d3b9b0;
    --ink-3: #9c7f78;
    --line: #3a2127;
    --accent: #e6b566;
    --accent-soft: #3a2519;
    --accent-ink: #1e0d10;
    --gold: #e6b566;
    --gold-soft: #33230f;
    --gold-text: #eec27d;
    --gold-ink: #1b1206;
    --pat-o: .16;
    --band: #4a1019;
    --band-ink: #f4e7cc;
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70' viewBox='0 0 140 70'%3E%3Cg fill='none' stroke='%23e6b566' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M0 18Q35 6 70 18T140 18'/%3E%3Cpath d='M0 30Q35 18 70 30T140 30' stroke-dasharray='2 6'/%3E%3Cpath d='M0 52Q35 40 70 52T140 52'/%3E%3Cpath d='M0 64Q35 52 70 64T140 64' stroke-dasharray='2 6'/%3E%3C/g%3E%3Cg fill='%23c7485f'%3E%3Ccircle cx='104' cy='37' r='2.6'/%3E%3Ccircle cx='109' cy='37' r='2.6'/%3E%3Ccircle cx='106.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='101.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='111.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='104' cy='46' r='2.6'/%3E%3Ccircle cx='109' cy='46' r='2.6'/%3E%3Ccircle cx='106.5' cy='50.5' r='2.6'/%3E%3C/g%3E%3Cpath d='M106 34q2-5 7-5' stroke='%23e6b566' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
}
:root[data-pack="weihnacht"] {
  --bg: #f5f1e8;
  --bg-2: #eae3d4;
  --card: #fffdf8;
  --ink: #14231a;
  --ink-2: #3c5244;
  --ink-3: #5d7265;
  --line: #ddd5c4;
  --accent: #0f4d33;
  --accent-soft: #dbeadf;
  --accent-ink: #f3fbf5;
  --gold: #b8862f;
  --gold-soft: #f4e7cc;
  --gold-text: #734e12;
  --gold-ink: #1b1206;
  --pat-o: .22;
  --pat-size: 120px 120px;
  --ribbon: linear-gradient(90deg, #0f4d33 0 40%, #b8862f 40% 60%, #7a1b22 60%);
  --band: #7a1b22;
  --band-ink: #f4e7cc;
  --head-font: 'Playfair Display', Georgia, serif;
  --head-style: normal;
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23b8862f' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M30 20v20M20 30h20M23 23l14 14M37 23L23 37'/%3E%3Cpath d='M90 70v20M80 80h20M83 73l14 14M97 73L83 87'/%3E%3C/g%3E%3Cg fill='%237a1b22'%3E%3Ccircle cx='75' cy='25' r='1.8'/%3E%3Ccircle cx='15' cy='85' r='1.8'/%3E%3Ccircle cx='105' cy='105' r='1.8'/%3E%3Ccircle cx='55' cy='60' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root[data-pack="weihnacht"]:not([data-theme="light"]) {
    --bg: #0d1a13;
    --bg-2: #122319;
    --card: #172a1f;
    --ink: #f0f4ee;
    --ink-2: #c9d6cb;
    --ink-3: #93a797;
    --line: #253b2e;
    --accent: #e6b566;
    --accent-soft: #2a3a24;
    --accent-ink: #10180f;
    --gold: #e6b566;
    --gold-soft: #33230f;
    --gold-text: #eec27d;
    --gold-ink: #1b1206;
    --pat-o: .16;
    --band: #4a1019;
    --band-ink: #f4e7cc;
    --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e6b566' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M30 20v20M20 30h20M23 23l14 14M37 23L23 37'/%3E%3Cpath d='M90 70v20M80 80h20M83 73l14 14M97 73L83 87'/%3E%3C/g%3E%3Cg fill='%23c7485f'%3E%3Ccircle cx='75' cy='25' r='1.8'/%3E%3Ccircle cx='15' cy='85' r='1.8'/%3E%3Ccircle cx='105' cy='105' r='1.8'/%3E%3Ccircle cx='55' cy='60' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  }
}
:root[data-pack="weihnacht"][data-theme="dark"] {
    --bg: #0d1a13;
    --bg-2: #122319;
    --card: #172a1f;
    --ink: #f0f4ee;
    --ink-2: #c9d6cb;
    --ink-3: #93a797;
    --line: #253b2e;
    --accent: #e6b566;
    --accent-soft: #2a3a24;
    --accent-ink: #10180f;
    --gold: #e6b566;
    --gold-soft: #33230f;
    --gold-text: #eec27d;
    --gold-ink: #1b1206;
    --pat-o: .16;
    --band: #4a1019;
    --band-ink: #f4e7cc;
    --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e6b566' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M30 20v20M20 30h20M23 23l14 14M37 23L23 37'/%3E%3Cpath d='M90 70v20M80 80h20M83 73l14 14M97 73L83 87'/%3E%3C/g%3E%3Cg fill='%23c7485f'%3E%3Ccircle cx='75' cy='25' r='1.8'/%3E%3Ccircle cx='15' cy='85' r='1.8'/%3E%3Ccircle cx='105' cy='105' r='1.8'/%3E%3Ccircle cx='55' cy='60' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-pack="lisboa"] {
  --bg: #fbf5e9;
  --bg-2: #f3e8d2;
  --card: #ffffff;
  --ink: #1c2429;
  --ink-2: #4a555c;
  --ink-3: #66716f;
  --line: #eadfc8;
  --accent: #b8452a;
  --accent-soft: #f8e3da;
  --accent-ink: #ffffff;
  --gold: #f2b705;
  --gold-soft: #fdf1c7;
  --gold-text: #735500;
  --gold-ink: #1c2429;
  --pat-o: .08;
  --pat-size: 80px 40px;
  --ribbon: linear-gradient(90deg, #f2b705 0 34%, #b8452a 34% 67%, #1f7a8c 67%);
  --band: #f2b705;
  --band-ink: #1c2429;
  --head-font: 'Alegreya', Georgia, serif;
  --head-style: normal;
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Crect width='80' height='40' fill='%23fbf5e9'/%3E%3Cpath d='M0 14Q20 2 40 14T80 14V26Q60 14 40 26T0 26Z' fill='%231c2429'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root[data-pack="lisboa"]:not([data-theme="light"]) {
    --bg: #0f1417;
    --bg-2: #151c20;
    --card: #1a2327;
    --ink: #f4efe4;
    --ink-2: #c7c2b6;
    --ink-3: #8b918c;
    --line: #2a353a;
    --accent: #f2b705;
    --accent-soft: #3a3112;
    --accent-ink: #1c2429;
    --gold: #f2b705;
    --gold-soft: #332a0a;
    --gold-text: #f5c842;
    --gold-ink: #1b1206;
    --pat-o: .07;
    --band: #f2b705;
    --band-ink: #1c2429;
    --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Crect width='80' height='40' fill='%230f1417'/%3E%3Cpath d='M0 14Q20 2 40 14T80 14V26Q60 14 40 26T0 26Z' fill='%23f4efe4'/%3E%3C/svg%3E");
  }
}
:root[data-pack="lisboa"][data-theme="dark"] {
  --bg: #0f1417;
    --bg-2: #151c20;
    --card: #1a2327;
    --ink: #f4efe4;
    --ink-2: #c7c2b6;
    --ink-3: #8b918c;
    --line: #2a353a;
    --accent: #f2b705;
    --accent-soft: #3a3112;
    --accent-ink: #1c2429;
    --gold: #f2b705;
    --gold-soft: #332a0a;
    --gold-text: #f5c842;
    --gold-ink: #1b1206;
    --pat-o: .07;
    --band: #f2b705;
    --band-ink: #1c2429;
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Crect width='80' height='40' fill='%230f1417'/%3E%3Cpath d='M0 14Q20 2 40 14T80 14V26Q60 14 40 26T0 26Z' fill='%23f4efe4'/%3E%3C/svg%3E");
}
:root[data-pack] body { background: var(--bg); }
:root[data-pack] body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--pat) 0 0 / var(--pat-size) repeat; opacity: var(--pat-o); pointer-events: none; }
:root[data-pack][data-look] body::before { background: var(--wall) center / cover no-repeat fixed; opacity: .3; }
:root[data-pack] .sidenav, :root[data-pack] .appbar { background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); }
:root[data-pack] .navhead { position: relative; padding-bottom: 24px; }
:root[data-pack] .navhead::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 6px; border-radius: 3px; background: var(--ribbon); }
:root[data-pack] .navlist button.on { background: var(--band); color: var(--band-ink); }
:root[data-pack] .navlist button.on svg { color: var(--band-ink); }
:root[data-pack] h1, :root[data-pack] h2 { font-family: var(--head-font); font-style: var(--head-style); }
:root[data-pack] .topbar h1::after { content: ''; display: block; width: 72px; height: 5px; border-radius: 3px; margin-top: 8px; background: var(--ribbon); }
:root[data-pack] .hero { box-shadow: inset 0 -7px 0 0 var(--band); }
:root[data-pack] .card { border-color: var(--line); }
:root[data-pack="azulejo"] .hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--pat) 0 0 / 14px 14px repeat-x; opacity: .95; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pack { border: 0; background: none; padding: 0; text-align: center; font-size: 13px; color: var(--ink); }
.pack .sw { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; margin-bottom: 6px; border: 1px solid var(--line); }
.pack .sw i { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; }
.pack.on .sw { outline: 3px solid var(--accent); outline-offset: 2px; }
.pack small { display: block; color: var(--ink-3); font-size: 11px; }
:root {
  --sw-azulejo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%23ffffff'/%3E%3Cg fill='none' stroke='%231c3f94' stroke-width='2.2'%3E%3Crect x='1' y='1' width='94' height='94'/%3E%3Ccircle cx='48' cy='48' r='17'/%3E%3Cpath d='M48 6Q63 30 48 48Q33 30 48 6ZM48 90Q63 66 48 48Q33 66 48 90ZM6 48Q30 33 48 48Q30 63 6 48ZM90 48Q66 33 48 48Q66 63 90 48Z'/%3E%3Cpath d='M22 22L32 32M74 22L64 32M22 74L32 64M74 74L64 64'/%3E%3C/g%3E%3Cg fill='%231c3f94'%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3Cpath d='M0 0h15L0 15zM96 0v15L81 0zM0 96V81L15 96zM96 96H81L96 81z'/%3E%3Ccircle cx='48' cy='20' r='2.5'/%3E%3Ccircle cx='48' cy='76' r='2.5'/%3E%3Ccircle cx='20' cy='48' r='2.5'/%3E%3Ccircle cx='76' cy='48' r='2.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 40px 40px;
  --sw-azulejo-band: #1c3f94;
  --sw-porto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70' viewBox='0 0 140 70'%3E%3Cg fill='none' stroke='%23b8862f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M0 18Q35 6 70 18T140 18'/%3E%3Cpath d='M0 30Q35 18 70 30T140 30' stroke-dasharray='2 6'/%3E%3Cpath d='M0 52Q35 40 70 52T140 52'/%3E%3Cpath d='M0 64Q35 52 70 64T140 64' stroke-dasharray='2 6'/%3E%3C/g%3E%3Cg fill='%236e1a2a'%3E%3Ccircle cx='104' cy='37' r='2.6'/%3E%3Ccircle cx='109' cy='37' r='2.6'/%3E%3Ccircle cx='106.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='101.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='111.5' cy='41.5' r='2.6'/%3E%3Ccircle cx='104' cy='46' r='2.6'/%3E%3Ccircle cx='109' cy='46' r='2.6'/%3E%3Ccircle cx='106.5' cy='50.5' r='2.6'/%3E%3C/g%3E%3Cpath d='M106 34q2-5 7-5' stroke='%23b8862f' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") 0 0 / 70px 35px, #f7f0e6;
  --sw-porto-band: linear-gradient(90deg, #6e1a2a 0 40%, #b8862f 40% 60%, #6e1a2a 60%);
  --sw-lisboa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Crect width='80' height='40' fill='%23fbf5e9'/%3E%3Cpath d='M0 14Q20 2 40 14T80 14V26Q60 14 40 26T0 26Z' fill='%231c2429'/%3E%3C/svg%3E") 0 0 / 40px 20px;
  --sw-lisboa-band: linear-gradient(90deg, #f2b705 0 34%, #b8452a 34% 67%, #1f7a8c 67%);
  --sw-classic: linear-gradient(135deg, #ffffff, #e6ecf1);
  --sw-classic-band: #0c4266;
}
.pack .sw.azulejo { background: var(--sw-azulejo); } .pack .sw.azulejo i { background: var(--sw-azulejo-band); }
.pack .sw.porto { background: var(--sw-porto); } .pack .sw.porto i { background: var(--sw-porto-band); }
.pack .sw.lisboa { background: var(--sw-lisboa); } .pack .sw.lisboa i { background: var(--sw-lisboa-band); }
.pack .sw.classic { background: var(--sw-classic); } .pack .sw.classic i { background: var(--sw-classic-band); }
.navstyle { display: flex; align-items: center; gap: 10px; margin: 14px 4px 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.navstyle:hover { border-color: var(--accent); color: var(--accent); }

/* Checkboxes follow the theme (iPhone dark mode drew them as black squares). */
input[type="checkbox"] { accent-color: var(--accent); width: 20px; height: 20px; }

/* ---------- Chat Board, Facebook-style ---------- */
.post.fb { margin-bottom: 14px; padding: 14px 14px 10px; }
.post.fb .text { font-size: 16px; line-height: 1.5; }
.post.fb .pics { margin: 10px -14px 0; gap: 2px; grid-template-columns: 1fr 1fr; }
.post.fb .pics img { border-radius: 0; }
.post.fb .pics.n1 { grid-template-columns: 1fr; }
.post.fb .pics.n1 img { aspect-ratio: auto; max-height: 520px; }
.post.fb .pics.n3 img:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.psum { display: flex; align-items: center; gap: 8px; padding: 10px 2px 8px; font-size: 13px; color: var(--ink-2); }
.psum .linkbtn { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; }
.rstack { letter-spacing: -2px; font-size: 16px; }
.pactions { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -4px; }
.rbtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: transparent; border: 0; padding: 9px 6px; border-radius: 8px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.rbtn:hover { background: var(--bg-2); }
.rbtn.on { color: var(--accent); }
.rbtn .em { font-size: 18px; line-height: 1; }
.rbtn.sm { flex: none; padding: 8px 6px; margin: -8px -2px; min-height: 36px; font-size: 12px; color: var(--ink-3); background: none; }
.rbtn.sm.on { color: var(--accent); }
.rbtn.sm .em { font-size: 14px; }
.tray { display: flex; gap: 4px; justify-content: space-around; background: var(--card); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: 6px 8px; margin: 8px 0 4px; max-width: 340px; }
.tray button { border: 0; background: transparent; font-size: 26px; line-height: 1; padding: 4px; border-radius: 50%; transition: transform .12s; }
.tray button:hover, .tray button:active { transform: scale(1.3) translateY(-3px); }
.tray button.on { background: var(--accent-soft); }
.post.fb .comments { border-top: 0; margin-top: 4px; padding-top: 4px; }
.post.fb .comment { margin: 10px 0 2px; }
.post.fb .comment.child { margin-left: 40px; }
.post.fb .comment .bubble { position: relative; display: inline-block; max-width: 100%; border-radius: 16px; padding: 8px 12px; background: var(--bg-2); color: var(--ink); }
.post.fb .comment .ctext { white-space: pre-wrap; word-wrap: break-word; }
.rchip { position: absolute; right: -8px; bottom: -10px; background: var(--card); color: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 1px 6px; font-size: 12px; box-shadow: var(--shadow); }
.cmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 4px 0 0 10px; font-size: 12px; color: var(--ink-3); }
.cmeta button { background: none; border: 0; padding: 8px 6px; margin: -8px -2px; min-height: 36px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.cmeta button:hover { color: var(--accent); }
.cform { align-items: center; margin-top: 10px; }
.cform input[name="body"] { flex: 1; border-radius: 20px; padding: 9px 14px; background: var(--bg-2); border-color: transparent; color: var(--ink); }
.cform .send { width: 38px; height: 38px; }
.cform.child { margin-left: 40px; }
.rwho { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ethumb { position: relative; display: inline-block; }
.ethumb button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: var(--card); font-weight: 800; }
.annrow { position: relative; }
.annx { position: absolute; top: -8px; right: -10px; width: 40px; height: 40px; font-size: 22px; color: var(--ink-3); background: transparent; border: 0; }
/* Bottom-left account block: opens Me (profile, notifications, trip style, settings). */
.navme { margin-top: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-align: left; }
.navme:hover, .navme.on { border-color: var(--accent); }
.navme .grow { min-width: 0; }
.navme b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navme small { display: block; font-size: 12px; color: var(--ink-3); }
.navme .chev { color: var(--ink-3); font-size: 20px; }
.navme .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); flex: none; }

/* ---------- Messages: one clean list ---------- */
.searchbar { margin: 0 0 14px; }
.searchbar input { width: 100%; border-radius: 22px; padding: 11px 16px; background: var(--card); }
.convs { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.conv { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); }
.conv:last-child { border-bottom: 0; }
button.conv:hover { background: var(--bg-2); }
.conv .grow { min-width: 0; }
.conv .nm { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .lst { display: block; font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .unread { font-weight: 800; color: var(--ink); }
.conv .tm { flex: none; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.udot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.gav { position: relative; display: inline-flex; flex: none; width: 44px; height: 40px; }
.gav .avatar { position: absolute; border: 2px solid var(--card); }
.gav .avatar:first-child { left: 0; top: 0; }
.gav .avatar:nth-child(2) { right: 0; bottom: 0; }
.gav .avatar:nth-child(3) { right: 0; top: 0; }
.empty-dm { text-align: center; padding: 28px 18px; }
.empty-dm .btn { margin-top: 8px; }
.pickedrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.picklist { max-height: 46vh; overflow-y: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; }
.pickp { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pickp:last-child { border-bottom: 0; }
.pickp small { display: block; color: var(--ink-3); font-size: 12px; }
.pickp input { flex: none; }
.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- welcome tour ---------- */
#tour { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 16px; background: var(--scrim); backdrop-filter: blur(6px); }
#tour.on { display: flex; }
body.touring { overflow: hidden; }
.tcard { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); color: var(--ink); border-radius: 24px; padding: 26px 22px 18px; box-shadow: var(--shadow); text-align: center; }
.tcard h2 { font-size: 26px; margin: 16px 0 6px; }
.tcard .tbody { color: var(--ink-2); margin: 0 0 6px; line-height: 1.5; }
.tart { width: 92px; height: 92px; margin: 6px auto 0; border-radius: 28px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tart.hot { background: var(--accent); color: var(--accent-ink); }
.tart.photo { width: 100%; height: 150px; border-radius: 18px; background: var(--bg-2) center / cover; }
.tart.photo.round { width: 96px; height: 96px; border-radius: 50%; }
.tart.logo { width: auto; background: none; }
.tart.logo .logo { width: 180px; }
.tlist, .tsteps { text-align: left; margin: 10px 0 0; padding-left: 0; list-style: none; }
.tlist li { padding: 9px 12px; margin: 6px 0; border-radius: 12px; background: var(--bg-2); color: var(--ink); line-height: 1.4; }
.tsteps { counter-reset: s; }
.tsteps li { counter-increment: s; position: relative; padding: 9px 12px 9px 44px; margin: 6px 0; border-radius: 12px; background: var(--bg-2); }
.tsteps li::before { content: counter(s); position: absolute; left: 10px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; }
.tdots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 12px; }
.tdots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tdots i.on { width: 22px; border-radius: 4px; background: var(--accent); }
.tnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tnav .btn { min-width: 120px; }
.tnav .btn:last-child { flex: 1; }
.tskip { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--ink-3); font-weight: 700; font-size: 14px; }
.tlater { display: block; margin: 10px auto 0; color: var(--ink-3); font-size: 13px; }
.tok { margin-top: 12px; padding: 10px; border-radius: 12px; background: var(--ok-soft); color: var(--ink); font-weight: 700; }
.twarn { margin-top: 12px; padding: 10px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); text-align: left; }
.tdemo { position: absolute; top: 14px; left: 16px; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--gold-text); }
.tourcard { margin-bottom: 14px; border-left: 4px solid var(--accent); }

/* ---------- in-app guidance: spotlight tips ---------- */
#guide { position: fixed; inset: 0; z-index: 110; display: none; }
#guide.on { display: block; }
#guide .gmask { position: absolute; inset: 0; width: 100%; height: 100%; }
#guide .gmask > rect { fill: var(--scrim); }
#guide.nohole .gmask > rect { fill: var(--scrim); }
#guide .gring { position: absolute; border-radius: 18px; pointer-events: none; display: none; box-shadow: 0 0 0 3px var(--accent); }
#guide .gring.on { display: block; animation: gpulse 1.6s ease-out infinite; }
@keyframes gpulse { 0% { box-shadow: 0 0 0 3px var(--accent); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 14px transparent; } }
.gcard { position: absolute; background: var(--card); color: var(--ink); border-radius: 20px; padding: 14px 16px 12px; box-shadow: var(--shadow); animation: gin .22s ease-out; }
@keyframes gin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gcard h3 { font-size: 19px; margin: 8px 0 4px; }
.gcard p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.45; font-size: 15px; }
.gtop { display: flex; align-items: center; justify-content: space-between; }
.gstep { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.gx { border: 0; background: var(--bg-2); color: var(--ink-2); width: 36px; height: 36px; border-radius: 50%; font-size: 14px; }
.gnav { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.gskipall { color: var(--ink-3); font-size: 12px; }
.ghelp { position: absolute; right: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-3); font-weight: 800; font-size: 14px; }
.topbar { position: relative; padding-right: 36px; }
.ghelp.onhero { right: 58px; top: 14px; border: 0; background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--ink-2); }
body.guiding .czbubble { z-index: 105; }
#gdemobar { position: fixed; left: 0; right: 0; top: 0; z-index: 130; background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-align: center; padding: 6px 12px calc(6px + env(safe-area-inset-top)); }
#gdemobar .linkbtn { color: var(--gold-ink); text-decoration: underline; margin-left: 8px; }

/* Getting started card */
.starter { margin-bottom: 14px; border-left: 4px solid var(--accent); }
.stlist { margin-top: 10px; }
.strow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 4px; background: transparent; border: 0; border-top: 1px solid var(--line); text-align: left; color: var(--ink); }
.strow small { display: block; color: var(--ink-3); font-size: 12px; }
.strow.done { opacity: .55; }
.strow.done b { text-decoration: line-through; }
.stchk { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; color: var(--accent-ink); }
.strow.done .stchk { background: var(--ok); border-color: var(--ok); }
.strow .chev { color: var(--ink-3); font-size: 20px; }

/* ---------- animated demos inside a tip ---------- */
.gdemo { position: relative; height: 150px; margin: 8px 0 4px; border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.gfinger { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 35%, transparent); border: 2px solid var(--accent); z-index: 3; pointer-events: none; }
.gline { display: block; height: 8px; border-radius: 4px; background: var(--line); margin: 6px 0; }
.gline.w40 { width: 40%; } .gline.w50 { width: 50%; } .gline.w60 { width: 60%; } .gline.w70 { width: 70%; } .gline.w80 { width: 80%; }
.gbtn { display: inline-block; padding: 7px 12px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
/* react */
.gpost { position: absolute; left: 12px; right: 12px; top: 10px; padding: 10px 12px 12px; border-radius: 12px; background: var(--card); }
.gacts { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.gact.on { animation: gact 4s infinite; }
@keyframes gact { 0%, 20% { color: var(--ink-3); } 26%, 100% { color: var(--accent); } }
.gtray { position: absolute; left: 22px; bottom: 30px; display: flex; gap: 6px; padding: 5px 8px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); font-size: 18px; opacity: 0; animation: gtray 4s infinite; }
.gtray i { font-style: normal; display: inline-block; }
.gtray i.pick { animation: gpick 4s infinite; }
@keyframes gtray { 0%, 24% { opacity: 0; transform: translateY(6px); } 30%, 70% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; } }
@keyframes gpick { 0%, 50% { transform: scale(1); } 58%, 66% { transform: scale(1.5) translateY(-4px); } 74%, 100% { transform: scale(1); } }
.gheart { position: absolute; right: 16px; top: 10px; font-size: 20px; opacity: 0; animation: gheart 4s infinite; }
@keyframes gheart { 0%, 74% { opacity: 0; transform: scale(.4); } 82%, 100% { opacity: 1; transform: scale(1); } }
.gd-react .gfinger { animation: gfreact 4s infinite; }
@keyframes gfreact { 0% { left: 60%; top: 90%; opacity: 0; } 10% { opacity: 1; } 20% { left: 26px; top: 58px; } 26% { transform: scale(.8); } 32% { transform: scale(1); } 50% { left: 66px; top: 62px; } 58% { transform: scale(.8); } 66% { transform: scale(1); opacity: 1; } 80%, 100% { opacity: 0; } }
/* compose */
.gsheet { position: absolute; left: 14px; right: 14px; bottom: -4px; top: 14px; padding: 10px 12px; border-radius: 14px 14px 0 0; background: var(--card); }
.gsheet.up { top: auto; height: 78px; animation: gsheetup 4s infinite; }
@keyframes gsheetup { 0%, 30% { transform: translateY(110%); } 40%, 100% { transform: none; } }
.gtitle { font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.gdrow { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.gav { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); flex: none; }
.gav.b { background: var(--gold-soft); }
.gchk { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line); font-size: 10px; text-align: center; line-height: 14px; color: transparent; margin-left: auto; }
.gchk.c1 { animation: gchk1 4s infinite; } .gchk.c2 { animation: gchk2 4s infinite; }
@keyframes gchk1 { 0%, 22% { color: transparent; background: transparent; } 28%, 100% { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); } }
@keyframes gchk2 { 0%, 46% { color: transparent; background: transparent; } 52%, 100% { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); } }
.gd-compose .gbtn { position: absolute; left: 12px; right: 12px; bottom: 10px; text-align: center; opacity: .5; animation: gbtnon 4s infinite; }
@keyframes gbtnon { 0%, 50% { opacity: .5; } 56%, 100% { opacity: 1; } }
.gd-compose .gfinger { animation: gfcompose 4s infinite; }
@keyframes gfcompose { 0% { left: 70%; top: 95%; opacity: 0; } 12% { opacity: 1; } 22% { left: 78%; top: 30px; } 26% { transform: scale(.8); } 30% { transform: scale(1); } 46% { left: 78%; top: 56px; } 50% { transform: scale(.8); } 54% { transform: scale(1); } 72% { left: 48%; top: 96px; } 76% { transform: scale(.8); } 80% { transform: scale(1); opacity: 1; } 90%, 100% { opacity: 0; } }
/* speak */
.gfield { position: absolute; left: 12px; right: 12px; top: 12px; padding: 8px 10px; border-radius: 10px; background: var(--card); font-size: 12px; color: var(--ink-2); }
.gout { position: absolute; left: 12px; right: 12px; top: 50px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); font-weight: 800; font-size: 13px; color: var(--ink); opacity: 0; animation: gout 4s infinite; }
@keyframes gout { 0%, 20% { opacity: 0; transform: translateY(4px); } 28%, 100% { opacity: 1; transform: none; } }
.gbtn.spk { position: absolute; left: 12px; bottom: 10px; }
.gw { display: inline-flex; gap: 2px; margin-left: 8px; vertical-align: middle; }
.gw i { width: 3px; height: 8px; border-radius: 2px; background: var(--accent-ink); display: inline-block; opacity: 0; animation: gwave 4s infinite; }
.gw i:nth-child(2) { animation-delay: .12s; } .gw i:nth-child(3) { animation-delay: .24s; }
@keyframes gwave { 0%, 58% { opacity: 0; transform: scaleY(.4); } 62% { opacity: 1; transform: scaleY(1.4); } 70% { transform: scaleY(.6); } 78% { transform: scaleY(1.3); } 86%, 100% { opacity: 0; transform: scaleY(.4); } }
.gd-speak .gfinger { animation: gfspeak 4s infinite; }
@keyframes gfspeak { 0%, 36% { left: 70%; top: 95%; opacity: 0; } 42% { opacity: 1; } 52% { left: 60px; top: 98px; } 56% { transform: scale(.8); } 60% { transform: scale(1); } 80% { opacity: 1; } 90%, 100% { opacity: 0; } }
/* share (Add to Home Screen) */
.gbar { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: var(--card); display: flex; justify-content: space-around; align-items: center; }
.gbar span { width: 18px; height: 18px; border-radius: 4px; background: var(--line); }
.gshare { color: var(--accent); font-size: 18px; }
.gline.hl { background: var(--accent-soft); height: 16px; font-size: 11px; line-height: 16px; padding: 0 6px; color: var(--ink); font-weight: 700; width: auto; display: inline-block; }
.gd-share .gfinger { animation: gfshare 4s infinite; }
@keyframes gfshare { 0% { left: 60%; top: 10%; opacity: 0; } 10% { opacity: 1; } 22% { left: calc(50% - 13px); top: 96px; } 26% { transform: scale(.8); } 30% { transform: scale(1); } 60% { left: 50%; top: 60px; } 64% { transform: scale(.8); } 70% { transform: scale(1); opacity: 1; } 84%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gdemo *, #guide .gring.on { animation: none !important; } .gtray, .gout, .gheart { opacity: 1; } }
/* tour: big primary action, inline forms, Android demo */
.tbig { font-size: 18px; padding: 16px; margin-top: 14px; }
.tform { text-align: left; margin-top: 12px; }
.tform .f { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 10px 0 4px; }
.tform .f small { font-weight: 500; color: var(--ink-3); }
.tform .row { gap: 10px; }
.tform .btn { margin-top: 14px; }
.tform textarea { width: 100%; }
#tour .seg { display: flex; }
.gtopbar { position: absolute; left: 0; right: 0; top: 0; height: 34px; background: var(--card); display: flex; align-items: center; padding: 0 12px; gap: 10px; }
.gurl { flex: 1; height: 14px; border-radius: 7px; background: var(--line); }
.gdots { color: var(--accent); font-size: 20px; }
.gmenu { position: absolute; right: 12px; top: 38px; width: 150px; padding: 8px 10px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); opacity: 0; animation: gmenu 4s infinite; }
@keyframes gmenu { 0%, 30% { opacity: 0; transform: translateY(-6px); } 40%, 100% { opacity: 1; transform: none; } }
.gd-android .gfinger { animation: gfandroid 4s infinite; }
@keyframes gfandroid { 0% { left: 40%; top: 80%; opacity: 0; } 10% { opacity: 1; } 22% { left: calc(100% - 30px); top: 4px; } 26% { transform: scale(.8); } 30% { transform: scale(1); } 60% { left: calc(100% - 110px); top: 62px; } 64% { transform: scale(.8); } 70% { transform: scale(1); opacity: 1; } 84%, 100% { opacity: 0; } }

.stagecard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 14px 12px; text-align: center; }
.join-body.tight { padding-top: 8px; }
.stagecard h2 { font-size: 22px; }
.stagecard .tsteps li { padding: 7px 10px 7px 40px; margin: 5px 0; font-size: 14px; }
.stagecard .slides { margin: 8px 0 2px; }
.stagecard .slides figcaption { min-height: 0; font-size: 13px; margin-top: 6px; }
.stagecard .sdots { margin-top: 6px; }
.stagecard h2 { margin: 6px 0 4px; }
.stagecard .tsteps { margin-top: 12px; }
/* Stage A on a phone browser: compact header, real-screenshot slideshow */
.join-mini { text-align: center; padding: 18px 0 6px; }
.join-mini .logo { width: 150px; }
.slides { position: relative; margin: 12px 0 4px; }
.slides figure { display: none; margin: 0; }
.slides figure.on { display: block; animation: gin .3s ease-out; }
.slides img { width: 100%; aspect-ratio: 640 / 440; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); display: block; }
.slides figcaption { min-height: 42px; }
.slides figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.slides .frame { position: relative; }
.slides .arrow { position: absolute; width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 24px solid var(--arrow); filter: drop-shadow(0 0 2px var(--arrow-halo)) drop-shadow(0 0 2px var(--arrow-halo)); animation: bounce 1.1s ease-in-out infinite; transform: translateX(-50%); }
@keyframes bounce { 0%, 100% { margin-top: 0; } 50% { margin-top: 8px; } }
.slides .arrow.up { border-top: 0; border-bottom: 24px solid var(--arrow); animation-name: bounceup; }
.slides .arrow.left { border-top: 15px solid transparent; border-bottom: 15px solid transparent; border-left: 0; border-right: 24px solid var(--arrow); transform: none; animation-name: bounceleft; }
@keyframes bounceleft { 0%, 100% { margin-left: 0; } 50% { margin-left: -8px; } }
@keyframes bounceup { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
.sdots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.sdots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.sdots i.on { width: 20px; border-radius: 4px; background: var(--accent); }

/* profile photo cropper */
.cropwrap { position: relative; width: max-content; margin: 14px auto 0; border-radius: 16px; overflow: hidden; touch-action: none; }
.cropwrap canvas { display: block; cursor: grab; }
.cropmask { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--ink) 55%, transparent); border-radius: 16px; -webkit-mask: radial-gradient(circle at center, transparent 49.5%, black 50%); mask: radial-gradient(circle at center, transparent 49.5%, black 50%); }
/* the cropper (and any sheet) must sit above the tour and the guide */
body.touring .sheet, body.guiding .sheet { z-index: 125; }
body.touring .scrim, body.guiding .scrim { z-index: 124; }

/* ---------- the opening: "LET'S YOLO / Bitch." ---------- */
#intro { position: fixed; inset: 0; z-index: 300; background: var(--intro-bg); color: var(--intro-white); overflow: hidden; display: grid; place-items: center; cursor: pointer; -webkit-user-select: none; user-select: none; }
body.introing { overflow: hidden; }
#intro .ibg { position: absolute; inset: -6%; }
#intro .ipic, #intro .ivid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(1.15) contrast(1.05); transform: scale(1.02); }
#intro .ipic.on { opacity: 1; animation: ipunch 1.1s ease-out both; }
#intro .ivid { opacity: 1; animation: idrift 5s ease-out both; }
@keyframes ipunch { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes idrift { from { transform: scale(1.12); } to { transform: scale(1.0); } }
#intro .ivig { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, var(--intro-shade) 100%), linear-gradient(to top, var(--intro-shade), transparent 45%, var(--intro-shade-2)); }
#intro .igrain { position: absolute; inset: 0; opacity: .18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: igrain .25s steps(2) infinite; }
@keyframes igrain { to { transform: translate(-6px, 4px); } }
#intro .iwords { position: relative; text-align: center; line-height: .9; padding: 0 16px; transform: translateY(-4vh); }
#intro .ilets { font: 700 clamp(14px, 3.2vw, 22px) var(--font-body, 'Quicksand', sans-serif); letter-spacing: .55em; text-indent: .55em; text-transform: uppercase; opacity: .92; }
#intro .ilets span, #intro .iyolo span { display: inline-block; opacity: 0; }
#intro .iyolo { font: 700 clamp(104px, 28vw, 260px) var(--font-display); letter-spacing: -.02em; line-height: .86; margin-top: 2px; filter: drop-shadow(0 12px 40px var(--intro-shade)); }
#intro .iyolo span { background: linear-gradient(180deg, var(--intro-white) 30%, var(--intro-gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .01em; }
#intro .ibitch { font: italic 700 clamp(40px, 10vw, 92px) 'Playfair Display', Georgia, serif; color: var(--intro-gold); margin-top: 10px; opacity: 0; transform: translateY(30px) rotate(-4deg); text-shadow: 0 6px 30px var(--intro-shadow); }
#intro .iclub { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); text-align: center; font: 700 11px 'Quicksand', sans-serif; letter-spacing: .3em; text-transform: uppercase; opacity: 0; color: var(--intro-dim); }
#intro .iskip { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--intro-line); background: var(--intro-shade-3); color: var(--intro-white); font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .3s; }
#intro .iflash { position: absolute; inset: 0; background: var(--intro-white); opacity: 0; pointer-events: none; }
/* timeline (starts when .go lands) */
#intro.go .ilets span { animation: iup .35s cubic-bezier(.2, .9, .3, 1.2) both; }
#intro.go .ilets span:nth-child(1) { animation-delay: .25s } #intro.go .ilets span:nth-child(2) { animation-delay: .3s } #intro.go .ilets span:nth-child(3) { animation-delay: .35s } #intro.go .ilets span:nth-child(4) { animation-delay: .4s } #intro.go .ilets span:nth-child(5) { animation-delay: .45s }
#intro.go .iyolo span { animation: islam .42s cubic-bezier(.15, 1, .3, 1) both; }
#intro.go .iyolo span:nth-child(1) { animation-delay: .55s } #intro.go .iyolo span:nth-child(2) { animation-delay: .64s } #intro.go .iyolo span:nth-child(3) { animation-delay: .73s } #intro.go .iyolo span:nth-child(4) { animation-delay: .82s }
#intro.go .ibitch { animation: ibitch .5s cubic-bezier(.2, .9, .3, 1.15) 1.05s both; }
#intro.go .iclub { animation: iup .45s ease-out 1.3s both; }
#intro.go .iskip { opacity: 1; transition-delay: .9s; }
#intro.go .iwords { animation: ishake .18s linear .55s 4; }
@keyframes iup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes islam { from { opacity: 0; transform: scale(2.6) translateY(-10px); filter: blur(6px); } 70% { opacity: 1; transform: scale(.96); filter: blur(0); } to { opacity: 1; transform: none; } }
@keyframes ibitch { from { opacity: 0; transform: translateY(30px) rotate(-4deg); } to { opacity: 1; transform: translateY(0) rotate(-4deg); } }
@keyframes ishake { 0% { transform: translate(-4vh) } 25% { transform: translate(3px, -4vh) } 50% { transform: translate(-3px, -4vh) } 75% { transform: translate(2px, -4vh) } 100% { transform: translateY(-4vh) } }
#intro.flash .iflash { animation: iflash .45s ease-out both; }
@keyframes iflash { 0% { opacity: 0 } 15% { opacity: .95 } 100% { opacity: 0 } }
/* the ending: the words burst apart, the picture rushes forward and dissolves into the app */
#intro.out { pointer-events: none; animation: ifade .9s ease-in both; }
#intro.out .ibg { animation: irush .9s cubic-bezier(.6, 0, .9, .4) both; }
#intro.out .iwords { animation: none; }
#intro.out .iyolo span, #intro.out .ilets span { opacity: 1; animation: iburst .8s cubic-bezier(.5, 0, .9, .5) both; }
#intro.out .ibitch { opacity: 1; transform: translateY(0) rotate(-4deg); animation: iburst .8s cubic-bezier(.5, 0, .9, .5) both; }
#intro.out .iyolo span:nth-child(1) { --dx: -1.4; --dy: -.6; --r: -40deg } #intro.out .iyolo span:nth-child(2) { --dx: -.5; --dy: -1.3; --r: 25deg } #intro.out .iyolo span:nth-child(3) { --dx: .6; --dy: -1.2; --r: -20deg } #intro.out .iyolo span:nth-child(4) { --dx: 1.5; --dy: -.5; --r: 45deg }
#intro.out .ilets span { --dx: 0; --dy: -1.6; --r: 0deg } #intro.out .ibitch { --dx: .2; --dy: 1.4; --r: 30deg }
#intro.out .iclub, #intro.out .iskip { opacity: 0 !important; transition: opacity .3s; }
@keyframes ifade { 0% { opacity: 1 } 55% { opacity: 1 } 100% { opacity: 0 } }
@keyframes irush { to { transform: scale(1.35); filter: blur(14px) brightness(1.6); } }
@keyframes iburst { from { opacity: 1; } to { opacity: 0; transform: translate(calc(var(--dx, 0) * 60vw), calc(var(--dy, 0) * 50vh)) rotate(var(--r, 0deg)) scale(1.8); filter: blur(10px); } }
@media (prefers-reduced-motion: reduce) { #intro { display: none; } }
/* Admin → App intro */
.introcard { margin-bottom: 14px; }
.introgrid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.introgrid .ethumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }

/* ---------- voice notes ---------- */
.vnote { text-align: center; padding: 6px 0 4px; }
.vplay { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 0; width: 100%; max-width: 320px; padding: 18px 24px; border: 0; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 20px; font-weight: 800; box-shadow: var(--shadow); }
.vplay .vico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); font-size: 18px; }
.vplay.on { background: var(--gold); color: var(--gold-ink); } .vplay.on .vico { background: var(--gold-ink); color: var(--gold); }
.vtext { text-align: left; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); font-size: 15px; line-height: 1.55; }
.vcard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 14px; border-left: 4px solid var(--gold); color: var(--ink); }
.vmini { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 16px; }

/* Today's briefing pops: a soft pulsing gold glow, and the play dot breathes. */
.vcard { border: 1px solid var(--gold); background: linear-gradient(90deg, var(--gold-soft), var(--card) 70%); animation: vglow 2.4s ease-in-out infinite; }
.vcard .vmini { background: var(--gold); color: var(--gold-ink); animation: vbreathe 2.4s ease-in-out infinite; }
@keyframes vglow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 0%, transparent), var(--shadow); } 50% { box-shadow: 0 0 22px 4px color-mix(in srgb, var(--gold) 55%, transparent), var(--shadow); } }
@keyframes vbreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .vcard, .vcard .vmini { animation: none; } }
.vcard.glow {}
.varchive { margin: 8px 0 14px; }
.vrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.varchive .row + .vrow { border-top: 0; }
.vrow .vmain { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: var(--ink); }
.vrow .vmain b { display: block; font-size: 14px; } .vrow .vmain small { color: var(--ink-2); font-size: 12px; }
.vrow .vmini { width: 36px; height: 36px; font-size: 13px; }
.vrow .vsave { flex: none; }
.trcard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 12px; padding: 12px 14px; color: var(--ink); }
.trcard .tric { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); font-size: 20px; }
.trcard .chev { color: var(--ink-3); font-size: 20px; }

/* Check-in day hotel card on Home */
.cicard { margin-bottom: 14px; border-left: 4px solid var(--accent); }
.cicard .ciconf { font-size: 22px; font-weight: 800; letter-spacing: .5px; color: var(--accent); margin: 2px 0 4px; word-break: break-all; }

/* Chat Board videos */
.pvids { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.pvids video { width: 100%; max-height: 70vh; border-radius: 14px; background: var(--intro-bg); }
.pvid { position: relative; }
.pvid .vsave { position: absolute; right: 10px; top: 10px; background: var(--card); opacity: .92; }
.shot { position: relative; }
.shot video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.shot .play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--intro-white); font-size: 26px; text-shadow: 0 2px 8px var(--intro-shadow); }
.viewer video { width: 100%; max-height: 70vh; border-radius: 14px; background: var(--intro-bg); }
.vbar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.vbar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }

/* Chat Board composer: one tidy row on any phone */
.ctools { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: nowrap; }
.ctool { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; flex: none; }
.ctool i { font-style: normal; font-size: 17px; line-height: 1; }
.ctool svg { flex: none; }
.cpost { flex: none; height: 40px; padding: 0 20px; }
.pinopt { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.pinopt input { width: 20px; height: 20px; margin: 0; }
.pinopt.hidden { display: none; }
/* Phones: icon over a small label, so all three plus Post always fit on one line */
@media (max-width: 480px) {
  .ctools { gap: 6px; }
  .ctool { flex-direction: column; justify-content: center; gap: 2px; width: 58px; height: 50px; padding: 0; border-radius: 14px; font-size: 11px; }
  .ctool i { font-size: 19px; }
  .cpost { height: 50px; padding: 0 22px; border-radius: 14px; font-size: 15px; }
}
/* Trip chips: one row that scrolls sideways instead of three rows */
.tripchips { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; margin-right: -16px; padding-right: 16px; }
.tripchips::-webkit-scrollbar { display: none; }
.tripchips .chip { flex: none; white-space: nowrap; }

/* Announcements on Home + the ✓ corner button shared with the briefing card */
.anncard { position: relative; margin-bottom: 14px; padding-right: 54px; border: 1px solid var(--gold); background: linear-gradient(90deg, var(--gold-soft), var(--card) 75%); }
.anncard .eyebrow { color: var(--gold-text); }
.anntitle { display: block; font-size: 17px; margin-top: 4px; }
.annbody { margin-top: 4px; line-height: 1.45; }
.cardx { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 16px; font-weight: 800; display: grid; place-items: center; z-index: 1; }
.cardx:active { transform: scale(.94); }
.vcard { position: relative; padding: 0; }
.vcard .vmain { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 56px 14px 14px; text-align: left; background: none; border: 0; color: var(--ink); }
.annpop { text-align: center; padding: 6px 0 2px; }
.annpop .annico { font-size: 40px; line-height: 1; }
.annpop .annbody { text-align: left; }
