/* Vietnam 2027, version 2 — "My Khe morning"
   Deep sea teal (was twilight indigo in v1) + lacquer red + lantern gold on celadon paper.
   Yeseva One for display (used sparingly), Be Vietnam Pro for everything you read. */

:root {
  --paper: #eef2ec;
  --card: #ffffff;
  --ink: #13292b;
  --muted: #5d6472;
  --line: #dde4db;
  --indigo: #0c4a50;
  --indigo-2: #15676c;
  --lacquer: #b5231c;
  --gold: #f2b63d;
  --gold-soft: #fbedc9;
  --gold-ink: #6e4300;
  --jade: #2f7a64;
  --jade-soft: #d8ebe2;
  --red-soft: #f8dfdc;
  --shadow: 0 1px 2px rgba(12, 40, 43, .06), 0 8px 24px rgba(12, 40, 43, .08);
  --radius: 20px;
  --tabs-h: 74px;
  --display: "Yeseva One", Georgia, "Times New Roman", serif;
  --body: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1c1e;
    --card: #12292c;
    --ink: #f1eee6;
    --muted: #a3bfbd;
    --line: #21413f;
    --lacquer: #ef6b5f;
    --gold-soft: #3a2f16;
    --gold-ink: #f6cf7a;
    --jade: #6fc9a8;
    --jade-soft: #173a31;
    --red-soft: #3c1d24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 400 16px/1.5 var(--body);
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabs-h) + 18px + env(safe-area-inset-bottom));
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--lacquer); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  background: var(--indigo); color: #fff;
}
.top-title { font-family: var(--display); font-size: 22px; line-height: 1.1; letter-spacing: .2px; }
.sync {
  display: flex; align-items: center; gap: 6px; flex: none;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 11px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 500;
}
.sync[hidden] { display: none; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.deck { height: min(470px, 56vh) !important; }
.alt-pics { display: flex; gap: 6px; overflow-x: auto; margin: 6px -4px 8px; padding: 0 4px; scroll-snap-type: x mandatory; }
.alt-pics a { flex: none; width: 130px; height: 96px; border-radius: 12px; background: var(--line) center / cover no-repeat; scroll-snap-align: start; }
.setup-skip { display: block; width: 100%; text-align: center; margin: 8px auto 0; padding: 10px; min-height: 44px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #8fe0bd; box-shadow: 0 0 8px #8fe0bd; }
.dot.off { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dot.err { background: #ff9d92; box-shadow: none; }

main { padding: 18px 18px 28px; max-width: 720px; margin: 0 auto; outline: none; }
main.flush { padding-top: 0; }

/* ---------- type ---------- */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .1px; }
h2.sec { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 30px 0 12px; }
h2.sec small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
h3 { font-size: 16px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.sub { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.spread { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- cards & controls ---------- */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 12px;
}
.tap { cursor: pointer; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-ink); margin: 2px 4px 2px 0;
}
.chip.jade { background: var(--jade-soft); color: var(--jade); }
.chip.red { background: var(--red-soft); color: var(--lacquer); }
.chip.gold { background: rgba(232, 176, 60, .18); color: var(--gold-ink); }
.chip.ink { background: rgba(255,255,255,.16); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 14px; padding: 11px 16px; background: var(--lacquer); color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none;
}
.btn.gold { background: var(--gold); color: #3a1f00; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; color: var(--lacquer); box-shadow: inset 0 0 0 1.5px var(--lacquer); }
.link { background: none; border: 0; padding: 0; color: var(--lacquer); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.fab {
  position: fixed; right: 18px; bottom: calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom)); z-index: 5;
  width: 58px; height: 58px; border-radius: 20px; border: 0;
  background: var(--lacquer); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(181,35,28,.4); cursor: pointer;
}
.fab svg.i { width: 26px; height: 26px; stroke-width: 2.2; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

.seg { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px 10px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.seg button.on { background: var(--indigo); color: #fff; }

/* ---------- avatars (one colour per household) ---------- */
.av {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--indigo-2);
  box-shadow: 0 0 0 2px var(--card); flex: none;
}
.av.h0 { background: var(--jade); }
.av.h1 { background: #d08a12; }
.av.h2 { background: var(--lacquer); }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -8px; }
.av.lg { width: 56px; height: 56px; font-size: 20px; box-shadow: none; }

/* ---------- hero (Today) ---------- */
.hero {
  position: relative; margin: 0 -18px 4px; padding: 26px 22px 24px; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(12,74,80,.15) 0%, rgba(12,74,80,.55) 55%, var(--indigo) 100%),
              url("splash-v2.jpg") center 62% / cover no-repeat var(--indigo);
  min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero-num { font-family: var(--display); font-size: 88px; line-height: .9; color: var(--gold); text-shadow: 0 4px 30px rgba(4,28,30,.6); }
.hero-line { font-family: var(--display); font-size: 26px; line-height: 1.1; margin: 4px 0 10px; text-shadow: 0 2px 16px rgba(4,28,30,.6); }
.hero-meta { font-size: 14px; color: rgba(255,255,255,.88); }

/* ---------- next steps ---------- */
.steps { padding: 18px; }
.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--lacquer)); border-radius: 6px; }
.step { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.step:first-of-type { border-top: 0; }
.tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 2px var(--line); }
.step.done .tick { background: var(--jade); box-shadow: none; color: #fff; }
.step.done .t { color: var(--muted); text-decoration: line-through; }
.tick svg.i { width: 15px; height: 15px; stroke-width: 3; }
.step .go { color: var(--muted); }

/* ---------- boarding pass (the signature) ---------- */
.pass {
  position: relative; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden;
}
.pass-head { padding: 16px 18px 14px; background: var(--indigo); color: #fff; }
.pass-head .eyebrow { color: var(--gold); }
.pass-route { display: flex; align-items: center; gap: 6px; margin: 10px 0 8px; flex-wrap: wrap; }
.pass-route b { font-size: 28px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.pass-route.long { gap: 4px; }
.pass-route.long b { font-size: 23px; }
.pass-route .hop { color: var(--gold); display: inline-flex; }
.pass-route.long .hop svg.i { width: 15px; height: 15px; }
.pass-route .hop svg.i { width: 18px; height: 18px; }
.pass-when { font-size: 13px; color: rgba(255,255,255,.85); }
.pass-tear {
  height: 18px; position: relative;
  background: radial-gradient(circle at 0 50%, var(--paper) 9px, transparent 10px) left / 18px 18px no-repeat,
              radial-gradient(circle at 100% 50%, var(--paper) 9px, transparent 10px) right / 18px 18px no-repeat;
}
.pass-tear::after { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 2px dashed var(--line); }
.pass-legs { padding: 0 18px 16px; }
.leg { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.leg-rail { position: relative; display: flex; justify-content: center; }
.leg-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line); }
.leg:first-child .leg-rail::before { top: 14px; }
.leg:last-child .leg-rail::before { bottom: calc(100% - 14px); }
.leg-dot { position: relative; margin-top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 3px var(--lacquer); }
.leg.wait .leg-dot { width: 8px; height: 8px; margin-top: 12px; box-shadow: none; background: var(--line); }
.leg-body { padding: 4px 0 12px; }
.leg-times { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.leg-times b { font-size: 17px; font-weight: 800; }
.leg-times .arr { color: var(--muted); }
.leg-meta { font-size: 13px; color: var(--muted); }
.leg.wait .leg-body { padding: 6px 0 12px; }
.waitpill { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.waitpill.long { background: var(--gold-soft); color: var(--gold-ink); }
.together { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--jade); margin-top: 4px; }

/* ---------- idea cards ---------- */
.idea { padding: 0; overflow: hidden; }
.idea-art { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--indigo), var(--lacquer)); background-size: cover; background-position: center; }
.idea-art .chip { position: absolute; left: 12px; bottom: 10px; background: rgba(12, 40, 43,.72); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.idea-art .planned { left: auto; right: 12px; background: var(--jade); }
.idea-art.blank { display: grid; place-items: center; color: rgba(255,255,255,.85); }
.idea-art.blank svg { width: 64px; height: 64px; opacity: .9; }
.idea-body { padding: 14px 16px 16px; }
.idea-title { font-family: var(--display); font-size: 22px; line-height: 1.15; margin: 0 0 6px; }
.idea-notes { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.idea-foot { display: flex; align-items: center; gap: 10px; }
.keen {
  display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--paper); color: var(--ink);
  transition: background .2s, color .2s, box-shadow .2s;
}
.keen svg.i { width: 18px; height: 18px; }
.keen, .btn { white-space: nowrap; }
.ytcard .idea-foot { flex-wrap: wrap; row-gap: 10px; }
.keen.on { background: var(--gold); color: #3a1f00; box-shadow: 0 0 0 4px rgba(242,182,61,.25), 0 6px 18px rgba(242,182,61,.45); }
.keen.on svg.i { fill: #3a1f00; }
.keen.pop { animation: keen-pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes keen-pop { 40% { transform: scale(1.14); } }

.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 210px; scroll-snap-align: start; padding: 0; overflow: hidden; margin: 0; cursor: pointer; }
.mini .idea-art { aspect-ratio: 4 / 3; }
.mini .idea-body { padding: 10px 12px 12px; }
.mini .idea-title { font-size: 17px; margin: 0 0 4px; }

/* ---------- plan ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 14px; padding: 4px 18px 8px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 62px; padding: 8px 4px 9px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--card); box-shadow: var(--shadow); text-align: center; line-height: 1.1;
}
.day .dw { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day .dn { font-family: var(--display); font-size: 26px; margin: 3px 0 2px; }
.day .dc { font-size: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day.on { background: var(--indigo); color: #fff; }
.day.on .dw, .day.on .dc { color: rgba(255,255,255,.75); }
.day.travel .dc { color: var(--lacquer); }
.day.on.travel .dc { color: var(--gold); }

.dayhead { padding: 0; overflow: hidden; }
.dayhead-art { position: relative; height: 128px; background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); background-size: cover; background-position: center; }
.dayhead-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 40, 43,0) 30%, rgba(12, 40, 43,.75)); }
.dayhead-title { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; }
.dayhead-title .display { font-size: 26px; line-height: 1.05; display: block; }
.dayhead-title .sub { color: rgba(255,255,255,.88); }
.dayhead-body { padding: 12px 16px; display: flex; gap: 10px; align-items: center; }

.tl { padding: 6px 16px; }
.tl-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 0; }
.tl-time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--lacquer); font-size: 14px; padding-top: 1px; }
.tl-time.none { color: var(--muted); font-weight: 600; }
.tl-item.flight .tl-what b { display: inline-flex; gap: 6px; align-items: center; }
.tl-item.flight .tl-what svg.i { width: 16px; height: 16px; color: var(--lacquer); }

.draft { background: var(--gold-soft); box-shadow: none; }
.draft h3 { color: var(--gold-ink); }

/* ---------- stays ---------- */
.wants { background: var(--indigo); color: #fff; }
.wants .eyebrow { color: var(--gold); }
.wants .display { font-size: 22px; margin: 4px 0 12px; }
.wants .chip { background: rgba(255,255,255,.12); color: #fff; padding: 6px 12px; font-size: 13px; }
.amen { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.amen span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.amen span.yes { background: var(--jade-soft); color: var(--jade); }
.amen svg.i { width: 14px; height: 14px; stroke-width: 2.4; }

/* ---------- more ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { margin: 0; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 14px; min-height: 118px; }
.tile .ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--lacquer); }
.tile b { font-size: 15px; line-height: 1.25; }
.tile .sub { font-size: 12px; margin-top: 2px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px -4px; }

/* ---------- checklists ---------- */
.check { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check input { width: 22px; height: 22px; accent-color: var(--jade); flex: none; margin: 0; }
.check.done .t { text-decoration: line-through; color: var(--muted); }

.phrase { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.phrase:last-child { border-bottom: 0; }
.phrase .vi { font-weight: 800; font-size: 17px; }
.phrase .say { font-size: 13px; color: var(--muted); font-style: italic; }
.speak { border: 0; background: var(--paper); border-radius: 12px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--lacquer); flex: none; }
.money { font-variant-numeric: tabular-nums; }

/* ---------- idea detail ---------- */
.idea.detail .idea-art { aspect-ratio: 4 / 3; }
.idea.detail h1.idea-title { font-weight: 400; margin: 2px 0 8px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.facts .fv { font-size: 14px; font-weight: 500; margin-top: 3px; line-height: 1.4; }
.facts .fact.cost { grid-column: 1 / -1; }
.facts .sub { grid-column: 1 / -1; margin-top: 0 !important; }
.facts .home-money { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.facts .home-money span {
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--jade-soft); color: var(--jade); font-variant-numeric: tabular-nums;
}
.dl { margin: 8px 0 0; padding: 0; list-style: none; }
.dl li { position: relative; padding: 6px 0 6px 22px; line-height: 1.45; font-size: 15px; }
.dl li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pc .card { margin: 0; }
.pros .eyebrow { color: var(--jade); }
.pros .dl li::before { background: var(--jade); }
.cons .eyebrow { color: var(--lacquer); }
.cons .dl li::before { background: var(--lacquer); border-radius: 2px; }
@media (max-width: 420px) { .pc { grid-template-columns: 1fr; } }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.note > div { font-size: 15px; }
.noteform { display: flex; gap: 8px; margin-top: 12px; }
.noteform input { flex: 1; }

/* ---------- YouTube Top 20 ---------- */
.ideaswitch { margin-bottom: 14px; }
.yt-head .display { font-size: 26px; margin: 4px 0 6px; }
.ytcard { padding: 14px; }
.yt-top { display: flex; gap: 12px; align-items: flex-start; }
.yt-rank { flex: none; width: 34px; font-size: 32px; line-height: 1; color: var(--lacquer); text-align: center; padding-top: 4px; }
.yt-thumb { flex: none; width: 92px; height: 92px; border-radius: 14px; background: var(--indigo) center / cover no-repeat; }
.ytcard h3 { font-size: 16px; margin: 0 0 6px; }
.yt-score { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.yt-score b { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--lacquer); min-width: 24px; }
.yt-bar { flex: 1; height: 7px; border-radius: 7px; background: var(--line); overflow: hidden; }
.yt-bar span { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--gold), var(--lacquer)); }
.ytcard .chip { margin-top: 6px; }
.btn.yt { background: #e3241c; color: #fff; }
.yt-src { font-size: 12px; color: var(--muted); margin-top: 8px; }
.ytdetail .btn.yt { margin-top: 4px; }
.chip.ytrank { position: absolute; left: 12px; top: 10px; bottom: auto; background: #e3241c; color: #fff; }

/* ---------- Round 1 stay vote ---------- */
.stayopt { position: relative; padding: 14px; }
.stayopt.leading { box-shadow: 0 0 0 2.5px var(--gold), var(--shadow); }
.lead-flag { position: absolute; top: -10px; right: 14px; background: var(--gold); color: #3a1f00; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.so-top { display: flex; gap: 12px; align-items: flex-start; }
.so-art { flex: none; width: 84px; height: 84px; border-radius: 14px; background: var(--indigo) center / cover no-repeat; }
.so-top h3 { font-size: 16px; margin: 2px 0 4px; }
.so-list { list-style: none; margin: 10px 0 12px; padding: 0; font-size: 14px; }
.so-list li { position: relative; padding: 3px 0 3px 22px; line-height: 1.4; }
.so-list li.pro svg.i { position: absolute; left: 0; top: 5px; width: 15px; height: 15px; stroke-width: 3; color: var(--jade); }
.so-list li.con { color: var(--muted); }
.so-list li.con::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 2px; background: var(--lacquer); border-radius: 2px; }
.stayopt .idea-foot { flex-wrap: wrap; row-gap: 8px; }
.so-expert { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.so-expert .eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.so-expert .chip.ytrank { position: static; margin: 0; font-size: 10px; padding: 2px 8px; }
.so-expert .yt-score b { font-size: 18px; }
.so-clip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.so-clip .btn { white-space: nowrap; }
.so-advice { border-left: 4px solid var(--jade); }
.so-advice h3 { font-size: 18px; margin: 4px 0 0; }
.so-advice summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--indigo); }
.so-src { margin: 8px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.so-src a { color: var(--indigo); }
.so-fit { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.so-fit .chip { margin: 0; }
.so-fit .sub { flex-basis: 100%; }
.so-area { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.so-area h3 { font-size: 16px; margin: 0 0 4px; }
.so-bars { margin-top: 8px; }
.so-bars-h { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.so-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 3px 0; }
.so-bar > span { width: 48px; flex: none; }
.so-bar b { width: 36px; text-align: right; font-variant-numeric: tabular-nums; color: var(--lacquer); }
.so-areas { list-style: none; margin: 0; padding: 0; }
.so-areas li { padding: 6px 0; font-size: 14px; }
.so-areas li .chip { margin: 0 0 0 4px; font-size: 11px; padding: 1px 8px; }
.so-areas li.pick { border-left: 3px solid var(--jade); padding-left: 8px; }

/* ---------- Round 2 places ---------- */
.sp .eyebrow { margin-bottom: 2px; }
.sp-photo { position: relative; margin: -14px -14px 12px; height: 180px; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; background: var(--indigo) center / cover no-repeat; }
.sp-photo span { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 6px; }
.sp.leading .lead-flag { z-index: 1; }
.sp-photo b { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #fff; background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 999px; }
.sp-photo b svg.i { width: 14px; height: 14px; }
.sp-warn { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--red-soft); color: var(--lacquer); font-size: 13px; font-weight: 600; }
.gal { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.gal-i { flex: 0 0 88%; height: 240px; border-radius: 16px; scroll-snap-align: center; background: var(--indigo) center / cover no-repeat; }
.gal-cap { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); margin: 6px 2px 12px; }
.so-bar.sc > span { width: 96px; }

/* ---------- TripAdvisor ratings ---------- */
.ta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.ta-line b { color: var(--ink, inherit); }
.ta-dots { display: inline-flex; gap: 2px; }
.ta-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #00aa6c; }
.ta-dots i.on { background: #00aa6c; }
.ta-dots i.half { background: linear-gradient(90deg, #00aa6c 50%, transparent 50%); }
.ta-big { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; }
.ta-big b { font-size: 22px; }
.ta-big .ta-dots i { width: 14px; height: 14px; }
.ta-picks { margin: 4px 0 0; padding-left: 20px; font-size: 14px; }
.ta-picks li { padding: 4px 0; }
.ta-picks a { color: var(--indigo); font-weight: 600; }

/* ---------- Stays sections and folded research ---------- */
.stays-seg { position: sticky; top: calc(var(--top-h, 56px) + 4px); z-index: 5; margin: 0 -6px 14px; padding: 6px; width: fit-content; border-radius: 999px; background: var(--card, #fff); box-shadow: 0 4px 14px rgba(20, 20, 60, .12); }
.research { margin: 0 0 12px; }
.research > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px dashed var(--line); font-weight: 700; font-size: 14px; color: var(--indigo); }
.research > summary::-webkit-details-marker { display: none; }
.research > summary svg.i { width: 18px; height: 18px; flex: none; }
.research > summary::after { content: "Show"; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.research[open] > summary::after { content: "Hide"; }
.research[open] > summary { margin-bottom: 10px; }
.sp-rating { font-size: 13px; margin-top: 4px; }
.sp-rating b { color: var(--jade); }
.sp-price { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.sp-price > div:first-child b { font-size: 22px; color: var(--lacquer); font-variant-numeric: tabular-nums; }
.sp-cmp { font-size: 13px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.sp-price .chip { margin: 6px 0 0; }
.sp-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sp-flags .chip { margin: 0; }
.sp-combo { padding: 10px 0; border-top: 1px solid var(--line); }
.sp-combo:first-of-type { border-top: 0; }
.sp-combo-p { margin-top: 2px; font-weight: 700; color: var(--lacquer); }

/* ---------- app feedback ---------- */
.fb-form textarea { width: 100%; min-height: 90px; }
.fb { padding: 12px 0; border-top: 1px solid var(--line); }
.fb:first-child { border-top: 0; padding-top: 2px; }
.fb-text { font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.fb-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.fb-meta .av { width: 20px; height: 20px; font-size: 10px; box-shadow: none; }
.fb-meta .chip { margin: 0; }
.fb-reply { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--paper); font-size: 13px; border-left: 3px solid var(--jade); }

/* ---------- good to know ---------- */
.tip { padding: 12px 0; border-top: 1px solid var(--line); }
.tip:first-child { border-top: 0; padding-top: 2px; }
.tip b { font-size: 15px; }
.tip .sub { margin-top: 2px; line-height: 1.45; }
.tip-by { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.tip-by .av { width: 20px; height: 20px; font-size: 10px; box-shadow: none; }
.tipday { margin-top: 12px; border-left: 4px solid var(--gold); }
.tipday svg.i { color: var(--gold-ink); }

/* ---------- weather ---------- */
.hero-wx { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.85); }
.hero-wx b { color: var(--gold); }
.wxpill {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgba(12, 40, 43,.7); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- Today teasers ---------- */
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.teaser { margin: 0; padding: 0; overflow: hidden; }
.teaser-art { height: 92px; background: var(--gold-soft) center / cover no-repeat; }
.teaser-art.trophy { display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); }
.teaser-body { padding: 10px 12px 12px; }
.teaser-body b { display: block; font-size: 15px; margin-top: 2px; }
.teaser-body .sub { font-size: 12px; }

/* ---------- food passport ---------- */
.passport-cover {
  position: relative; border-radius: 22px; padding: 20px; margin-bottom: 14px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, var(--indigo-2), var(--indigo) 60%);
  box-shadow: inset 0 0 0 2px rgba(242,182,61,.55), inset 0 0 0 6px var(--indigo), inset 0 0 0 7px rgba(242,182,61,.35), var(--shadow);
}
.passport-cover::after {
  content: "★"; position: absolute; right: -10px; bottom: -40px; font-size: 180px; line-height: 1; color: rgba(242,182,61,.08);
}
.passport-cover .eyebrow { color: var(--gold); }
.pp-name { font-size: 30px; margin: 6px 0 2px; }
.pp-count { font-size: 15px; color: rgba(255,255,255,.88); }
.pp-count b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--gold); }
.passport-cover .progress { background: rgba(255,255,255,.15); }
.pp-fam { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 13px; font-weight: 700; }
.pp-fam > span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.1); }
.pp-fam .av { box-shadow: none; width: 24px; height: 24px; font-size: 11px; }
.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dish { margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.dish-art { position: relative; aspect-ratio: 1; background: var(--gold-soft) center / cover no-repeat; }
.dish-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.dish-body .row { margin-top: auto !important; padding-top: 8px; }
.dish-name { font-size: 18px; line-height: 1.1; }
.dish-en { font-size: 13px; font-weight: 600; margin-top: 2px; }
.dish-where { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stamp {
  position: absolute; right: 8px; bottom: 8px; width: 92px; height: 92px; border-radius: 50%;
  border: 3px solid rgba(181,35,28,.9); background: rgba(255,250,240,.82); color: #a51d16; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  transform: rotate(-14deg); box-shadow: inset 0 0 0 4px rgba(255,250,240,.82), inset 0 0 0 5.5px rgba(181,35,28,.75);
  font-family: var(--body); text-transform: uppercase;
}
.stamp span { font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.stamp b { font-family: var(--display); font-weight: 400; font-size: 20px; text-transform: none; }
.stamp small { font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.stamp.thud { animation: thud .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes thud { 0% { transform: rotate(-30deg) scale(2.2); opacity: 0; } 60% { transform: rotate(-12deg) scale(.92); opacity: 1; } 100% { transform: rotate(-14deg) scale(1); } }

/* ---------- challenges ---------- */
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.lb-row .rank { width: 22px; text-align: center; font-weight: 800; color: rgba(255,255,255,.55); }
.lb-row .crown { width: 22px; text-align: center; font-size: 18px; }
.lb-row .av { box-shadow: none; }
.lb-bar { flex: 0 0 34%; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.lb-bar span { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.ch-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ch-row:first-child { border-top: 0; }
.pts { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: var(--gold-soft); color: var(--gold-ink); }
.ch-row.done .pts { background: var(--jade); color: #fff; }
.ch-row .t { font-weight: 600; line-height: 1.3; }
.ch-row.done .t { color: var(--muted); }

/* ---------- photos ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pthumb { aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--line); cursor: pointer; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 45; background: rgba(12,11,30,.96); color: #fff; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; font-size: 14px; font-weight: 600; }
.lb-top span { display: inline-flex; align-items: center; gap: 8px; }
.lb-x { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.lb-img { flex: 1; display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.lb-cap { font-size: 16px; margin-bottom: 10px; min-height: 4px; }
.lightbox .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.lightbox .btn.danger { color: #ff9d92; box-shadow: inset 0 0 0 1.5px #ff9d92; }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 6;
  max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabs-h);
  background: rgba(12, 74, 80, .93); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 24px; box-shadow: 0 12px 30px rgba(12, 40, 43,.35);
}
.tabs button {
  border: 0; background: none; cursor: pointer; color: rgba(255,255,255,.62);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 600;
}
.tabs button.on { color: var(--gold); }
.tabs button.on svg.i { filter: drop-shadow(0 0 8px rgba(242,182,61,.7)); }

/* ---------- sheet ---------- */
dialog {
  border: 0; padding: 0; width: min(560px, 100vw); max-height: 92vh;
  border-radius: 26px 26px 0 0; margin: auto auto 0; background: var(--card); color: var(--ink);
}
dialog::backdrop { background: rgba(18,17,41,.55); backdrop-filter: blur(3px); }
#sheetForm { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
#sheetForm h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 4px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
input[type=text], input[type=date], input[type=time], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 13px; background: var(--paper);
  font-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 76px; resize: vertical; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ticks label { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 15px; font-weight: 500; margin: 0; }
.actions { display: flex; gap: 8px; margin-top: 18px; }
.actions .btn { flex: 1; }

/* ---------- toast & big text ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 24px rgba(12, 40, 43,.35); transition: opacity .25s, transform .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.bigtext {
  position: fixed; inset: 0; z-index: 40; background: #fff; color: #000;
  display: flex; flex-direction: column; justify-content: center; padding: 24px;
  font-size: 32px; font-weight: 800; line-height: 1.3; text-align: center;
}
.bigtext[hidden] { display: none; }
.bigtext small { display: block; font-size: 16px; font-weight: 400; margin-top: 16px; color: #555; }

/* ---------- join ---------- */
.joinwrap {
  position: fixed; inset: 0; z-index: 7; overflow-y: auto; color: #fff;
  background: linear-gradient(180deg, rgba(12,74,80,.35), rgba(12,74,80,.92) 55%), url("splash-v2.jpg") center top / cover no-repeat var(--indigo);
}
.join { max-width: 420px; margin: 0 auto; padding: calc(16vh + env(safe-area-inset-top)) 22px 40px; text-align: center; }
.join-star { width: 60px; height: 60px; }
.join-star circle { fill: var(--lacquer); }
.join-star path { fill: var(--gold); }
.join h1 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.05; margin: 12px 0 8px; }
.join p { color: rgba(255,255,255,.85); margin: 0 0 18px; }
.join input[type=text] { background: rgba(255,255,255,.95); color: #13292b; border: 0; text-align: center; font-weight: 700; letter-spacing: .08em; }
.join .err { color: #ffb4a9; font-weight: 600; min-height: 22px; margin: 8px 0; }
.house { margin: 18px 0 0; text-align: left; }
.house .eyebrow { color: var(--gold); margin-bottom: 8px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.people button {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px;
  border: 0; border-radius: 18px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.people button:hover { background: rgba(255,255,255,.18); }

/* ---------- splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  background: #0f5a5e; color: #fff; text-align: center; overflow: hidden;
}
#splash.gone { animation: splash-out .45s ease forwards; }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
/* Version 2: a daytime beach painting (the old app had Hoi An at night), so it's obvious this is the new one. */
.splash-art {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,42,48,.62) 0%, rgba(8,42,48,.38) 34%, rgba(8,42,48,0) 52%, rgba(8,42,48,0) 74%, rgba(8,42,48,.55) 100%),
              url("splash-v2.jpg") center top / cover no-repeat;
  animation: drift 3.4s ease-out both;
}
@keyframes drift { from { transform: scale(1.12); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.splash-body { position: relative; padding: 0 24px; margin-top: calc(9vh + env(safe-area-inset-top)); text-shadow: 0 2px 16px rgba(6,30,34,.7); }
.splash-v2 { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--gold); color: #3a1f00; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-shadow: none; box-shadow: 0 4px 18px rgba(0,0,0,.3); animation: pop .7s cubic-bezier(.2,1.6,.4,1) .2s both; }
.splash-v2 .splash-star { width: 22px; height: 22px; fill: #b3261e; filter: none; animation: none; }
.splash-new { list-style: none; margin: 18px auto 0; padding: 12px 16px; max-width: 320px; text-align: left; font-size: 14.5px; font-weight: 600; line-height: 1.5; border-radius: 18px; background: rgba(6,40,46,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-shadow: none; animation: rise .7s ease .8s both; }
.splash-new li + li { margin-top: 4px; }
.splash-new[hidden] { display: none; }
.splash-star { width: 52px; height: 52px; fill: var(--gold); filter: drop-shadow(0 0 12px rgba(246,195,67,.75)); animation: pop .7s cubic-bezier(.2,1.6,.4,1) .2s both; }
#splash h1 { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1.02; margin: 10px 0 10px; animation: rise .7s ease .35s both; }
#splash h1 span { color: var(--gold); }
.splash-dates { margin: 0; font-size: 18px; font-weight: 600; animation: rise .7s ease .5s both; }
.splash-crew { margin: 14px 0 0; font-size: 14px; opacity: .92; animation: rise .7s ease .65s both; }
.splash-enter {
  position: absolute; left: 50%; bottom: calc(9vh + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  min-width: 210px; padding: 16px 40px; border: 0; border-radius: 999px;
  background: var(--gold); color: #3a1f00; font-size: 18px; font-weight: 800; letter-spacing: .3px;
  box-shadow: 0 6px 24px rgba(4,28,30,.45), 0 0 0 4px rgba(242,182,61,.25);
  cursor: pointer; animation: rise-btn .7s ease .9s both;
}
@keyframes pop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
@keyframes rise-btn { from { transform: translate(-50%, 14px); opacity: 0; } }

/* ---------- motion ---------- */
.view-in > * { animation: rise .45s ease both; }
.view-in > *:nth-child(2) { animation-delay: .05s; }
.view-in > *:nth-child(3) { animation-delay: .1s; }
.view-in > *:nth-child(4) { animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- brought across from the Bali app (Oct 2026): photos, setup, Due soon, swipe deck, To-do, grouped More ---------- */
/* ---------- swipe deck ---------- */ .deck { position: relative; height: 470px; margin: 14px 0 0; touch-action: pan-y; }
.deck-card { position: absolute; inset: 0; background: var(--card); border-radius: 24px; box-shadow: 0 10px 30px rgba(23,48,44,.18); overflow: hidden; transition: transform .25s ease, opacity .25s ease; user-select: none; cursor: grab; }
.deck-card.back { transform: scale(.94) translateY(16px); opacity: .7; pointer-events: none; }
.deck-img { position: relative; height: 56%; background: var(--indigo) center / cover no-repeat; }
.deck-body { padding: 12px 16px; }
.deck-body h3 { font-size: 21px; margin: 8px 0 4px; }
.deck-body > .sub:first-of-type { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.deck-keen { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.stamp-yes, .stamp-no { position: absolute; top: 22px; font-family: var(--display); font-size: 30px; padding: 2px 12px; border: 4px solid; border-radius: 10px; opacity: 0; transition: opacity .12s; background: rgba(255,255,255,.85); }
.stamp-yes { left: 18px; color: var(--jade); transform: rotate(-12deg); }
.stamp-no { right: 18px; color: var(--lacquer); transform: rotate(12deg); }
.deck-card.lean-yes .stamp-yes, .deck-card.fly-yes .stamp-yes { opacity: 1; }
.deck-card.lean-no .stamp-no, .deck-card.fly-no .stamp-no { opacity: 1; }
.deck-card.fly-yes { transform: translateX(130%) rotate(18deg) !important; opacity: 0; }
.deck-card.fly-no { transform: translateX(-130%) rotate(-18deg) !important; opacity: 0; }
.deck-card.fly-later { transform: translateY(-40px) scale(.9) !important; opacity: 0; }
.deck-btns { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 16px 0 4px; }
.dbtn { border: 0; cursor: pointer; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); background: var(--card); }
.dbtn.no, .dbtn.yes { width: 64px; height: 64px; }
.dbtn.no { color: var(--lacquer); }
.dbtn.yes { color: #fff; background: radial-gradient(circle at 30% 25%, #4cc59a, var(--jade)); }
.dbtn.yes svg.i { fill: #fff; }
.dbtn svg.i { width: 30px; height: 30px; stroke-width: 2.6; }
.dbtn.later { width: 54px; height: 54px; font-size: 12px; font-weight: 700; color: var(--muted); }
.deck-done { text-align: center; padding: 26px 18px; margin-top: 14px; }
.deck-done .emo { font-size: 54px; }
/* ---------- photo avatars ---------- */ .av.pic { background-size: cover; background-position: center; color: transparent; }
.av.xl { width: 72px; height: 72px; font-size: 26px; box-shadow: 0 0 0 3px var(--gold); }
.avbtn { border: 0; background: none; padding: 0; border-radius: 50%; cursor: pointer; position: relative; }
.avbtn::after { content: "📷"; position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 13px; box-shadow: var(--shadow); }
.avprev { width: 180px; height: 180px; margin: 8px auto 12px; border-radius: 50%; background: center / cover no-repeat var(--line); box-shadow: 0 0 0 4px var(--gold); }
/* Today: the compact list */ .card.dlist { padding: 4px 14px; }
.dlrow { border-top: 1px solid var(--line); }
.dlrow:first-child { border-top: 0; }
.dlrow > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.dlrow > summary::-webkit-details-marker { display: none; }
.dlrow > summary > svg.i { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.dlrow[open] > summary > svg.i { transform: rotate(90deg); }
.dl-emo { font-size: 22px; width: 28px; text-align: center; flex: none; }
.dl-t { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.dl-you { font-size: 12px; padding: 1px 7px; }
.dlrow .sub { font-size: 13px; }
.dlrow.soon .dl-left { color: #b5801f; }
.dlrow.urgent .dl-left, .dlrow.late .dl-left { color: var(--lacquer); }
.dl-bar.mini { height: 4px; margin: 6px 0 0; }
.dlrow-body { padding: 0 0 14px 40px; }
.dlrow-body .dl-actions { border-top: 0; padding-top: 0; margin-top: 12px; }
.dl-group { margin-top: 10px; }
.dl-lab { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dl-actions:empty { display: none; }
.dl-tip { margin-top: 8px; }
.dl-bar { height: 6px; border-radius: 6px; background: var(--line); margin: 12px 0 2px; overflow: hidden; }
.dl-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--jade), var(--gold)); }
.dl-people { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dlp { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.dlp.done i { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: var(--jade); color: #fff; font-size: 12px; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); }
.dlp.miss { padding: 2px 3px 2px 2px; gap: 5px; border-radius: 999px; background: var(--line); font-size: 12.5px; font-weight: 700; }
.dlp.miss > span { padding-right: 2px; }
.dlp.miss .av { filter: grayscale(1); opacity: .6; }
.dlp.miss em { font-style: normal; font-size: 12px; color: var(--muted); padding-right: 6px; }
.nudge { border: 0; background: var(--card); border-radius: 999px; width: 24px; height: 24px; padding: 0; font-size: 13px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.nudge:active { transform: scale(.9); }
.todo-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tlink { font: inherit; font-size: 12px; font-weight: 700; color: var(--lacquer); background: var(--gold-soft, rgba(245,184,61,.18)); border: 0; border-radius: 999px; padding: 4px 10px; text-decoration: none; cursor: pointer; }
.deck-blank { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--gold); font-family: var(--display); font-size: 22px; background: radial-gradient(circle at 50% 40%, rgba(245,184,61,.25), transparent 60%), linear-gradient(160deg, #15676c, #0c4a50); }
.deck-blank span { font-size: 54px; }
.fab.wide { width: auto; height: 52px; padding: 0 18px 0 14px; border-radius: 26px; display: flex; gap: 6px; font-weight: 800; font-size: 15px; }
.fab.wide svg.i { width: 22px; height: 22px; }
/* Due soon icons */ .dl-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--lacquer); }
.dl-ic.money { background: var(--jade-soft); color: var(--jade); }
.dl-ic svg.i { width: 18px; height: 18px; }
.dlrow-body { padding-left: 44px; }
/* More: grouped rows */ .card.mlist { padding: 2px 14px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 60px; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow .ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--lacquer); }
.mrow .ico svg.i { width: 20px; height: 20px; }
.mrow b { font-size: 15px; }
.mrow .sub { font-size: 13px; }
.mrow > svg.i { width: 18px; height: 18px; color: var(--muted); }
.nudge { position: relative; width: 30px; height: 30px; font-size: 15px; }
.nudge::after { content: ""; position: absolute; inset: -7px; }
/* a 44px tap area around a small button */ .tlink { min-height: 32px; display: inline-flex; align-items: center; }
.setup-card { position: relative; width: min(420px, 100%); background: var(--paper); border-radius: 24px; padding: 22px 20px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.setup-card h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 4px 0 8px; }
.setup-card p { margin: 0 0 10px; color: var(--muted); }
.setup-step { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lacquer); }
.setup-steps { margin: 6px 0 12px; padding-left: 0; list-style: none; counter-reset: s; }
.setup-steps li { counter-increment: s; position: relative; padding: 8px 0 8px 40px; line-height: 1.4; border-top: 1px solid var(--line); }
.setup-steps li:first-child { border-top: 0; }
.setup-steps li::before { content: counter(s); position: absolute; left: 0; top: 7px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: #fff; font-weight: 800; font-size: 14px; }
.setup-glyph { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--paper); vertical-align: -7px; color: #2a7cff; }
.setup-glyph svg.i { width: 18px; height: 18px; }
.setup-code { background: var(--gold-soft); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.setup-code b { font-size: 18px; letter-spacing: .06em; }
.hdr-todo { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hdr-todo svg.i { width: 19px; height: 19px; stroke-width: 2; }
.hdr-todo.on { background: var(--gold); color: #3a1f00; }
.hdr-todo:active { transform: scale(.96); }
.hdr-todo b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--lacquer); color: #fff; font-size: 12px; line-height: 1; }
.hdr-todo b[hidden] { display: none; }
.hdr-todo.on b { background: #3a1f00; color: var(--gold); }
/* ---------- To-do list ---------- */ .todo-hero { display: flex; gap: 16px; align-items: center; padding: 18px; margin: 4px 0 14px; border-radius: 22px; background: var(--indigo); color: #fff; }
.todo-hero h2 { margin: 2px 0 4px; font-family: var(--display); font-size: 22px; line-height: 1.15; }
.todo-hero .eyebrow { color: var(--gold); }
.todo-hero .sub { color: rgba(255,255,255,.75); }
.ring { --p: 0; width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative; background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(255,255,255,.16) 0); }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--indigo); }
.ring b, .ring span { position: relative; line-height: 1.05; }
.ring b { font-size: 24px; font-weight: 800; }
.ring span { font-size: 12px; color: rgba(255,255,255,.75); }
.tlist { padding: 2px 16px; }
.titem { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.tlist > .titem:first-child, .tdone summary + .titem { border-top: 0; }
.tcheck { width: 32px; height: 32px; flex: none; margin-top: -3px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 2px var(--line); color: transparent; transition: background .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; position: relative; }
.tcheck::after { content: ""; position: absolute; inset: -6px; }
/* a 44px tap area */ .tcheck svg.i { width: 18px; height: 18px; stroke-width: 3; }
.tcheck:active { transform: scale(.9); }
.tcheck.on { background: var(--jade); box-shadow: none; color: #fff; }
.tcheck.ro { cursor: default; opacity: .7; }
.tcheck.ro:active { transform: none; }
.titem .tt { font-weight: 700; font-size: 16px; line-height: 1.3; }
.titem .tn { margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.titem.done .tt { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.titem.done .tn, .titem.done .todo-links { display: none; }
.todo-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tlink { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.tlink:active { background: var(--line); }
.tmeta { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.tprog { display: inline-flex; align-items: center; gap: 8px; }
.tprog .avs .av { width: 22px; height: 22px; font-size: 11px; }
.twho { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: var(--line); color: var(--ink); font-size: 12px; font-weight: 600; }
.tedit { width: 36px; height: 36px; flex: none; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.tedit svg.i { width: 17px; height: 17px; }
.tedit:active { background: var(--line); }
.tdone summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 50px; font-weight: 700; color: var(--jade); cursor: pointer; }
.tdone summary::-webkit-details-marker { display: none; }
.tdone summary svg.i { width: 18px; height: 18px; stroke-width: 3; }
.tdone summary span { margin-left: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--line); color: var(--ink); font-size: 13px; }
.tdone[open] summary { border-bottom: 1px solid var(--line); }
/* ---------- Getting set up (required steps) ---------- */ .gatewrap { display: flex; align-items: center; justify-content: center; padding: calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); }
.gate { width: min(440px, 100%); }
.gate .setup-card { text-align: left; color: var(--ink); }
.gate .setup-card h2 { font-size: 28px; }
.gate-note { text-align: center; margin: 12px 0 0 !important; }
.gate-av { width: 132px; height: 132px; margin: 8px auto 16px; border-radius: 50%; border: 3px dashed var(--gold); background: var(--gold-soft); color: var(--lacquer); display: grid; place-items: center; cursor: pointer; padding: 0; }
.gate-av svg.i { width: 46px; height: 46px; stroke-width: 1.6; }
.gate .setup-code .setup-steps { margin-bottom: 0; }
.gate .setup-code .row b { white-space: nowrap; font-size: 17px; }
.gate .setup-code > b:first-child { display: block; font-size: 16px; letter-spacing: 0; margin-bottom: 4px; }
.gate .setup-code .setup-steps b { font-size: inherit; letter-spacing: 0; }

/* Places to eat, shop and insurance rows (from the Bali app) */
.vfacts > div, .vnear > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.vfacts span, .vnear span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.vfacts b { font-weight: 600; }
.card.optlist { padding: 2px 14px; }
.optrow { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.optrow:first-child { border-top: 0; }
.optrow > svg.i { width: 18px; height: 18px; color: var(--muted); flex: none; }
.or-img { position: relative; width: 84px; height: 84px; flex: none; border-radius: 14px; background: center / cover no-repeat var(--line); display: grid; place-items: center; font-size: 30px; overflow: hidden; }
.or-img i { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: center; padding: 3px 0; background: rgba(198,47,58,.92); color: #fff; text-transform: uppercase; }
.or-img i.rank { left: 6px; right: auto; bottom: 6px; padding: 2px 7px; border-radius: 8px; background: rgba(13,36,33,.82); font-size: 12px; letter-spacing: 0; }
.or-body { min-width: 0; }
.or-k { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.or-t { font-size: 15px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.or-m { font-size: 13px; color: var(--muted); margin-top: 2px; }
.or-m b { color: var(--ink); }
.or-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.optrow .keen { padding: 7px 12px; font-size: 13px; min-height: 36px; }
.optrow .byline { margin: 4px 0 0; }
.optrow.leading .or-img { box-shadow: 0 0 0 2px var(--lacquer); }
.ideas-intro { margin: 0 4px 12px; }
.tap, .btn, .keen, .seg button, .vtab, .mrow, .optrow, .step, .dbtn, .fab { transition: transform .12s ease, background .2s, color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.tap:active, .btn:active, .keen:active, .seg button:active, .vtab:active, .mrow:active, .optrow:active, .step:active, .fab:active { transform: scale(.98); }
.or-img, .idea-art, .deck-img, .vopt-img, .dayhead-art, .dgal, .yt-thumb, .res-img, .dish-art { background-color: var(--line); }
.eat-tags { display: flex; flex-wrap: wrap; gap: 0; margin-top: 4px; }
.eat-tags .chip { font-size: 12px; padding: 2px 8px; }
.ptag { font-weight: 800; color: var(--jade); letter-spacing: .04em; }
h2.sec.eat-area { font-size: 20px; margin-top: 20px; }
.eatcard .vfacts > div:first-child { border-top: 0; }
.or-img.fam { background: linear-gradient(150deg, #154a45, #0c2c29); }
.seg.seg-small button { min-height: 34px; padding: 6px 12px; font-size: 13px; box-shadow: none; background: var(--line); }
.seg.seg-small button.on { background: var(--jade); color: #fff; }
.chip.val { background: #f8e1ea; color: #7a2e4a; }
.or-img.ins-badge { width: 48px; height: 48px; align-self: flex-start; margin-top: 4px; background: var(--gold-soft); border-radius: 12px; }
.ins-badge span { font-size: 15px; }
.chip.ins-yes { background: #dff3e6; color: #135c2e; }
.chip.ins-yes svg.i { width: 12px; height: 12px; vertical-align: -1px; }
.chip.ins-no { background: #f6e3e3; color: #8a2a2a; }
.ins-musts { list-style: none; margin: 8px 0 0; padding: 0; }
.ins-musts li { display: flex; gap: 10px; padding: 7px 0; align-items: flex-start; }
.ins-musts li svg.i { color: var(--lacquer); flex: none; margin-top: 2px; }
.chip.ins-ask { background: #eef0f3; color: #4a5260; }
.ins-badge span { font-weight: 800; color: var(--gold-ink); }
.ins-top { height: 52px; }
.ins-what { margin: 6px 0 8px; }
