/* Christmas HQ: "Snow Day". Badger cardinal, Cyclone gold, a golden retriever. */
:root {
  --cardinal: #b8081a;
  --cardinal-deep: #8f0716;
  --gold: #f1be48;
  --gold-deep: #e0a526;
  --gold-soft: #fdf1d6;
  --gold-ink: #8a5a00;
  --pine: #1f8a4c;
  --ink: #221517;
  --muted: #7a6c6e;
  --snow: #fbf8f4;
  --oat: #efe7dc;
  --card: #ffffff;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 10px 24px -14px rgba(80, 20, 20, 0.35);
  --radius: 20px;
  --display: "DM Serif Display", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* DM Serif Display has one weight; don't fake a bold. */
  font-synthesis-weight: none;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.app { max-width: 560px; margin: 0 auto; min-height: 100vh; }
.app.with-nav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.page { padding: 0 16px; display: flex; flex-direction: column; gap: 14px; }

.title { font-family: var(--display); font-weight: 800; font-size: 2.15rem; line-height: 1.02; letter-spacing: -0.01em; }
.title em { font-style: normal; color: var(--gold); }
.title.small { font-size: 1.8rem; }
.sec { font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-top: 4px; }
.sec.small { font-size: 1.05rem; }
.sub { color: var(--muted); font-size: 0.86rem; }

/* Snow-dot texture for cardinal panels */
.hero, .band, .gate {
  background-color: var(--cardinal);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 1.4px, transparent 1.7px),
    linear-gradient(160deg, var(--cardinal) 0%, var(--cardinal-deep) 75%);
  background-size: 22px 22px, 100% 100%;
  color: #fff;
}

/* ---------- Avatars, pills, buttons ---------- */
.av {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.05rem;
}
.av.xs { width: 26px; height: 26px; font-size: 0.72rem; }
.av.sm { width: 32px; height: 32px; font-size: 0.85rem; }
.av.lg { width: 52px; height: 52px; font-size: 1.25rem; }
.av.xl { width: 64px; height: 64px; font-size: 1.6rem; }
.av.ring { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9); }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 800; padding: 5px 10px; border-radius: 999px;
  background: var(--oat); color: var(--ink);
}
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.green { background: #e2f3e8; color: #17663a; }

.btn {
  border: 0; border-radius: 999px; padding: 11px 18px;
  background: var(--cardinal); color: #fff; font-weight: 800; font-size: 0.92rem;
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--cardinal) 80%, transparent);
}
.btn.green { background: var(--pine); box-shadow: 0 8px 18px -10px rgba(31, 138, 76, 0.8); }
.btn.danger { background: #7a0613; }
.run-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; }
.run-by > span { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.invite-row { display: flex; gap: 8px; align-items: center; flex-basis: 100%; margin-top: 4px; }
.invite-row input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1.5px solid #e2d6c6; border-radius: 12px; background: #fff; font: inherit; font-size: 0.9rem; color: var(--ink); }
.invite-row input:focus { outline: none; border-color: var(--cardinal); box-shadow: 0 0 0 3px rgba(184, 8, 26, 0.12); }
.invite-row .btn.small { flex: none; height: 38px; padding: 0 14px; font-size: 0.82rem; }
.gate.pin .btn { margin-top: 14px; }
.update-ready { margin: 0; border-radius: 0; }
.btn.small { padding: 8px 14px; font-size: 0.85rem; }
.btn.wide { width: 100%; padding: 14px; font-size: 1rem; }
.btn:disabled { opacity: 0.6; }
.ghost {
  border: 1.5px solid #e2d6c6; background: #fff; border-radius: 999px;
  padding: 9px 16px; font-weight: 700; font-size: 0.88rem;
}
.text-btn { border: 0; background: none; padding: 6px 4px; font-weight: 700; color: var(--cardinal); font-size: 0.88rem; }
.text-btn.tiny { padding: 0; font-size: inherit; text-decoration: underline; color: var(--muted); }
.back-btn { border: 0; background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 0.85rem; }
.back-btn.light { color: #fff; }
.linkish { font-weight: 700; color: var(--cardinal); text-decoration: none; font-size: 0.88rem; }

.banner {
  border-radius: 16px; padding: 12px 14px; font-size: 0.9rem;
  background: var(--gold-soft); color: #5a3d00;
}
.banner.error { background: #fde4e4; color: #8f0716; }
.banner.good { background: #e2f3e8; color: #17663a; }
.banner.soft { background: #fff; box-shadow: var(--shadow); color: var(--ink); }
.banner.install { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Sign in & PIN ---------- */
.gate {
  min-height: 100vh; padding: 28px 20px calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  max-width: 560px; margin: 0 auto;
}
.gate-pup .mascot {
  width: 148px; height: 148px; border-radius: 50%; object-fit: cover; object-position: center 40%;
  border: 6px solid #fff; box-shadow: 0 16px 34px rgba(60, 0, 8, 0.4); background: #fdf6ea;
}
.gate-lede { opacity: 0.88; font-size: 0.95rem; max-width: 300px; }
.gate .banner { width: 100%; text-align: left; }
.code-card { width: 100%; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 14px 16px; text-align: left; box-shadow: 0 16px 30px -16px rgba(40, 0, 6, 0.6); }
.gate-ask { font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold); margin-top: 6px; }
.pick-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.pick {
  border: 0; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 14px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 12px 24px -16px rgba(40, 0, 6, 0.7);
}
.pick .name { font-weight: 800; }
.pick .sub { font-size: 0.8rem; }

.gate.pin { justify-content: flex-start; }
.gate.pin .back-btn { align-self: flex-start; }
.gate.pin .av.xl { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9); margin-top: 18px; }
.dots { display: flex; gap: 12px; margin: 10px 0 6px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.8); }
.dots i.on { background: var(--gold); border-color: var(--gold); }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; margin-top: 8px; }
.pad button {
  width: 76px; height: 76px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.7rem; font-weight: 600;
}
.pad button:active { background: rgba(255, 255, 255, 0.3); }
.pad .key-back { background: transparent; font-size: 1.4rem; }

.gate.boot { justify-content: center; }

/* ---------- Home ---------- */
.hero { position: relative; padding: calc(22px + env(safe-area-inset-top)) 20px 78px; overflow: hidden; }
.hero .hi { font-weight: 600; font-size: 0.9rem; opacity: 0.9; }
.hero .title { margin-top: 6px; }
.hero-text { position: relative; z-index: 1; max-width: 62%; }
.hero-out {
  position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 16px; z-index: 3;
  border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 0.78rem; font-weight: 700;
}
.hero-pup { position: absolute; right: -8px; bottom: -22px; z-index: 2; }
.hero-pup .mascot {
  width: 164px; height: 164px; border-radius: 50%; object-fit: cover; object-position: center 40%;
  border: 6px solid #fff; background: #fdf6ea; box-shadow: 0 14px 30px rgba(60, 0, 8, 0.35);
}
.count-card {
  position: relative; z-index: 3; margin: -50px 16px 18px; width: 220px;
  background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 14px 32px -10px rgba(80, 10, 20, 0.3);
}
.count-card > b { display: block; font-family: var(--display); font-size: 2.5rem; line-height: 1; color: var(--cardinal); }
.count-card > span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-top: 3px; }
.meter { height: 8px; border-radius: 9px; background: #f3ebe0; margin-top: 10px; overflow: hidden; }
.count-card .mine-line { display: block; margin-top: 8px; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.count-card .mine-line b { color: var(--cardinal); }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 9px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; border: 0; text-align: left; background: var(--card); border-radius: var(--radius);
  padding: 14px; min-height: 132px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow);
}
.tile .av { margin-bottom: 8px; }
.tile .name { font-weight: 800; font-size: 1rem; }
.tile .sub { font-size: 0.78rem; }
.tile .pill { position: absolute; top: 12px; right: 10px; }
.tile.me { background: linear-gradient(160deg, #fff 0%, #fff6e4 100%); outline: 2px dashed #ecc66d; outline-offset: -6px; }

/* ---------- Person page ---------- */
.band {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.4px, transparent 1.7px),
    linear-gradient(160deg, var(--tone, var(--cardinal)) 0%, color-mix(in srgb, var(--tone, var(--cardinal)) 70%, #000) 100%);
  padding: calc(16px + env(safe-area-inset-top)) 18px 22px; margin-bottom: 16px;
  border-radius: 0 0 28px 28px;
}
.band-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.band h1 { font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1.05; }
.band p { opacity: 0.88; font-size: 0.88rem; margin-top: 2px; }

.gifts { display: flex; flex-direction: column; gap: 12px; }
.gift { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
/* Product photos are usually square on white: show the whole thing, never crop. */
.gift-img { width: 100%; height: 220px; object-fit: contain; background: #fff; padding: 14px; border-bottom: 1px solid var(--oat); }
.gift-img.ph { display: grid; place-items: center; font-size: 2.6rem; height: 60px; padding: 0; border: 0; background: linear-gradient(135deg, #fdf1d6, #fbe3e3); }
.gift .body { padding: 14px 16px 16px; }
.gift .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.gift h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.gift .price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--cardinal); margin-top: 4px; }
.gift .notes { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.gift .actions { margin-top: 12px; }
.gift.done { opacity: 0.75; }
.prio { flex: none; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; padding: 4px 8px; border-radius: 999px; background: var(--oat); color: var(--muted); }
.prio.high { background: #fde4e4; color: var(--cardinal); }
.prio.low { background: #eef3ef; color: #3d6b4f; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.empty { background: var(--card); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.empty .mascot { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.empty h3 { font-weight: 800; }
.empty p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
/* ---------- Buying desk ---------- */
.desk-top { background: var(--cardinal-deep); color: #fff; padding: calc(22px + env(safe-area-inset-top)) 20px 20px; border-radius: 0 0 28px 28px; margin-bottom: 14px; }
.kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.desk-top h1 { font-family: var(--display); font-weight: 800; font-size: 2rem; margin-top: 2px; }
.desk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; font-size: 0.72rem; }
.desk-stats div { background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 10px; color: rgba(255, 255, 255, 0.75); }
.desk-planned { font-size: 0.78rem; opacity: 0.7; margin-top: 10px; }
.desk-stats b { display: block; font-size: 1.2rem; color: #fff; }


.kid { display: flex; flex-direction: column; gap: 6px; }
.kh { display: flex; align-items: center; gap: 10px; }
.kh .n { font-weight: 800; font-size: 1.02rem; }
.kname { display: flex; flex-direction: column; min-width: 0; }
.kstats { font-size: 0.76rem; color: var(--muted); }
.kstats b { color: var(--ink); }
.group { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.add-stocking { border: 1.5px dashed #d9c9b3; background: transparent; border-radius: 16px; padding: 11px; font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.secret { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-soft); padding: 3px 7px; border-radius: 6px; }
.prog { height: 5px; border-radius: 9px; background: var(--oat); overflow: hidden; display: flex; margin-bottom: 2px; }
.prog i { display: block; height: 100%; }
.prog .b { background: var(--pine); }
.prog .c { background: var(--gold); }

.drow-wrap { background: var(--card); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.drow { display: flex; align-items: center; gap: 10px; }
.dthumb { flex: none; width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--oat); padding: 3px; }
.dthumb.ph { display: grid; place-items: center; font-size: 1.35rem; padding: 0; border: 0; background: linear-gradient(135deg, #fdf1d6, #fbe3e3); }
.dtext { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.dtext .g { font-weight: 700; font-size: 0.93rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtext .m { font-size: 0.8rem; color: var(--muted); }
.dright { flex: none; display: flex; align-items: center; gap: 8px; }
.drow-wrap.done .drow { opacity: 0.7; }
.drow-wrap.gone .drow { opacity: 0.55; }
.drow-wrap.gone .g { text-decoration: line-through; }
.grab { border: 1.5px solid var(--cardinal); color: var(--cardinal); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 0.78rem; font-weight: 800; }
.none { color: var(--muted); font-size: 0.85rem; padding: 4px 2px; }

.export { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-top: 6px; }
.export .actions { margin-top: 10px; }

/* ---------- Bottom nav ---------- */
.nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(528px, calc(100% - 24px)); height: 64px; border-radius: 22px;
  background: var(--ink); display: flex; align-items: center; justify-content: space-around; z-index: 20;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
}
.nav button {
  border: 0; background: none; color: #fff; opacity: 0.6; font-size: 0.74rem; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 14px;
}
.nav button i { font-style: normal; font-size: 1.25rem; }
.nav button[aria-current="page"] { opacity: 1; color: var(--gold); }

/* ---------- Forms & sheet ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field > span { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid #e6dccf; border-radius: 14px; padding: 12px 14px; background: #fff; font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cardinal); box-shadow: 0 0 0 3px rgba(184, 8, 26, 0.12); }
.field textarea { min-height: 84px; resize: vertical; }
.segments { display: flex; gap: 6px; background: var(--oat); padding: 4px; border-radius: 14px; }
.segments button { flex: 1; border: 0; background: none; border-radius: 10px; padding: 9px 4px; font-weight: 700; font-size: 0.8rem; color: #6b5e60; }
.segments button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--cardinal); }
.preview img { border-radius: 14px; height: 180px; object-fit: contain; width: 100%; background: #fff; padding: 8px; }

.foot-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.sheet-back { position: fixed; inset: 0; background: rgba(34, 21, 23, 0.5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: var(--snow);
  border-radius: 26px 26px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
}
.sheet header { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; }

@media (min-width: 600px) {
  .app { box-shadow: 0 0 0 1px #eee3d6; background: var(--snow); }
  .hero, .band, .desk-top { border-radius: 0 0 28px 28px; }
}

/* ---------- Shopping stages ---------- */
.stage {
  border: 0; border-radius: 999px; padding: 6px 10px; font-size: 0.76rem; font-weight: 800; white-space: nowrap;
  background: var(--oat); color: var(--ink);
}
.stage.claimed { background: var(--gold-soft); color: var(--gold-ink); }
.stage.bought { background: #e3ecfb; color: #1f4b99; }
.stage.arrived { background: #efe4fb; color: #5b2b99; }
.stage.wrapped { background: #e2f3e8; color: #17663a; }
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--snow); border-radius: 12px; padding: 8px; }
.picker.warn { background: #fde4e4; color: #6d0612; font-size: 0.84rem; font-weight: 600; }
.picker.warn span { flex-basis: 100%; }
.stage-opt { border: 1.5px solid #e2d6c6; background: #fff; border-radius: 999px; padding: 7px 11px; font-size: 0.8rem; font-weight: 700; }
.stage-opt.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.ghost.small, .text-btn.small { padding: 7px 12px; font-size: 0.8rem; }
.gift .picker { margin-top: 10px; }

/* ---------- Needs-a-look notices ---------- */
.notice { border-radius: 12px; padding: 10px 12px; font-size: 0.84rem; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.notice p { font-weight: 700; }
.notice ul { margin: 0; padding-left: 18px; }
.notice s { color: var(--muted); }
.notice.changed { background: #fff4d6; color: #5a3d00; }
.notice.removed { background: #fde4e4; color: #6d0612; }
.gift .notice { margin-top: 10px; }

/* ---------- Desk extras ---------- */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1.5px solid #e2d6c6; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.82rem; color: #6b5e60; }
.chips button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.stage-line { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }
.stage-line b { color: #fff; }
.desk-planned b { color: #fff; }
.desk-stats.three { grid-template-columns: repeat(3, 1fr); }
.pill.new { background: var(--cardinal); color: #fff; }
.season summary { font-weight: 800; cursor: pointer; }
.season .sub { margin-top: 8px; }
.season .actions { margin-top: 10px; }
.empty .btn { margin-top: 12px; }

/* ---------- Undo toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 30;
  width: min(520px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #33292b; color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.6);
}
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast button { flex: none; border: 0; background: none; color: var(--gold); font-weight: 800; }

/* ---------- Size, quantity, photos, paid & hidden ---------- */
.gift .price small { font-family: var(--body); font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.gift .size { font-size: 0.85rem; font-weight: 700; margin-top: 2px; }
.hidden-at { font-size: 0.82rem; font-weight: 700; color: #5b2b99; margin-top: 4px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.field-row .field.small { flex: 0 0 96px; }
.photo-row { display: flex; align-items: center; gap: 10px; }
.paste summary { font-size: 0.8rem; color: var(--muted); cursor: pointer; margin-top: 6px; }
.paste input { margin-top: 6px; }
.picker.details { align-items: flex-end; }
.picker.details label { display: flex; flex-direction: column; gap: 3px; font-size: 0.8rem; font-weight: 700; color: var(--muted); width: 90px; }
.picker.details label.grow { flex: 1; min-width: 140px; }
.picker.details input { border: 1.5px solid #e6dccf; border-radius: 10px; padding: 8px 10px; font-size: 0.9rem; width: 100%; background: #fff; }
.picker.details .sub { flex-basis: 100%; font-size: 0.8rem; }

/* ---------- Surprises from anyone ---------- */
.vis { background: #eef7f1; color: #17663a; border-radius: 12px; padding: 10px 12px; font-size: 0.82rem; font-weight: 600; }
.segments.wrap { flex-wrap: wrap; }
.segments.wrap button { flex: 1 0 28%; }

/* ---------- Daily fun fact & version ---------- */
.foot { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 10px 0 4px; }
.foot.light { color: rgba(255, 255, 255, 0.7); }


/* ---------- Fun tab: movies and Most Christmassy ---------- */
.nav button { padding: 6px 8px; }

.fun-top { background: var(--cardinal-deep); color: #fff; padding: calc(22px + env(safe-area-inset-top)) 20px 18px; border-radius: 0 0 28px 28px; margin-bottom: 14px; }
.fun-top h1 { font-family: var(--display); font-weight: 800; font-size: 2rem; margin-top: 2px; }
.subtabs { display: flex; gap: 6px; margin-top: 12px; }
.subtabs button { flex: 1; border: 0; padding: 9px 0; border-radius: 12px; font-weight: 700; font-size: 0.84rem; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); }
.subtabs button[aria-selected="true"] { background: var(--gold); color: var(--ink); }

.upnext { position: relative; background: linear-gradient(135deg, var(--cardinal), var(--cardinal-deep)); color: #fff; border-radius: var(--radius); padding: 14px 40px 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.upnext .poster { width: 52px; height: 70px; border-radius: 10px; background: rgba(255, 255, 255, 0.15); display: grid; place-items: center; font-size: 1.8rem; flex: none; }
.upnext .k { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.upnext b { display: block; font-size: 1.05rem; margin-top: 2px; }
.upnext small { font-size: 0.78rem; opacity: 0.85; }
.upnext .clear { position: absolute; top: 8px; right: 8px; border: 0; background: rgba(255, 255, 255, 0.15); color: #fff; width: 28px; height: 28px; border-radius: 50%; font-size: 0.8rem; }

.movie { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
.movie .poster { width: 44px; height: 60px; border-radius: 9px; display: grid; place-items: center; font-size: 1.5rem; flex: none; background: linear-gradient(160deg, #fdf1d6, #fbe3e3); }
.movie.watched .poster { background: linear-gradient(160deg, #e2f3e8, #d3ecdc); }
.movie .mtext { min-width: 0; flex: 1; }
.movie .t { font-weight: 800; font-size: 0.95rem; line-height: 1.25; }
.movie .m { font-size: 0.8rem; color: var(--muted); }
.movie .faces { display: flex; margin-top: 5px; }
.movie .faces .av { margin-right: -6px; box-shadow: 0 0 0 2px #fff; }
.movie .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.stars { color: var(--gold-deep); font-size: 0.82rem; letter-spacing: 1px; }
.seen { border: 1.5px solid #e2d6c6; background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 0.8rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.seen.on { background: var(--pine); border-color: var(--pine); color: #fff; }

.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.who { border: 2px solid #e6dccf; background: #fff; border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; font-size: 0.85rem; position: relative; }
.who small { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.who.on { border-color: var(--pine); background: #eef7f1; }
.who.on::after { content: "✓"; position: absolute; top: 6px; right: 8px; color: var(--pine); font-weight: 900; }
.rate { display: flex; gap: 4px; }
.rate button { border: 0; background: none; font-size: 1.9rem; line-height: 1; color: var(--gold-deep); padding: 2px; }
.rate button.off { color: #e2d6c6; }
.pts { font-size: 0.82rem; font-weight: 700; color: #17663a; background: #eef7f1; border-radius: 12px; padding: 9px 12px; }
.sheet-extra { justify-content: space-between; }

.board { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rank { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.rank + .rank { border-top: 1px solid var(--oat); }
.rank .pos { width: 24px; font-weight: 800; color: var(--muted); text-align: center; font-size: 0.95rem; flex: none; }
.rank .n { font-weight: 800; }
.rank .lvl { font-size: 0.8rem; color: var(--muted); }
.rank .score { margin-left: auto; text-align: right; flex: none; }
.rank .score b { font-family: var(--display); font-size: 1.3rem; color: var(--cardinal); }
.rank .score small { display: block; font-size: 0.68rem; color: var(--muted); }
.rank.first { background: linear-gradient(90deg, #fff6e4, #fff); }
.rank .bar { height: 5px; background: var(--oat); border-radius: 9px; margin-top: 5px; overflow: hidden; width: 120px; }
.rank .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.sub.center { text-align: center; line-height: 1.6; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act { border: 0; text-align: left; background: var(--card); border-radius: 14px; padding: 11px 10px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.act i { font-style: normal; font-size: 1.3rem; }
.act.done { background: #eef7f1; color: #17663a; }
.act .tick { margin-left: auto; font-weight: 900; }

/* ---------- Plans: the family schedule ---------- */
.nav button { padding: 6px 4px; font-size: 0.68rem; }
.nav button i { font-size: 1.15rem; }

.plan-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-actions .btn { flex: 1; }
.day { display: flex; flex-direction: column; gap: 8px; }
.day-head { font-family: var(--display); font-weight: 800; font-size: 1.05rem; margin-top: 6px; }
.day.today .day-head { color: var(--cardinal); }
.event { display: flex; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.ev-time { flex: none; width: 62px; font-weight: 800; font-size: 0.85rem; color: var(--cardinal); line-height: 1.3; }
.ev-time small { display: block; font-weight: 600; color: var(--muted); font-size: 0.8rem; }
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.ev-head { display: flex; width: 100%; justify-content: space-between; gap: 8px; }
.ev-head h3 { font-size: 1rem; font-weight: 800; line-height: 1.25; }
.whom { font-size: 0.8rem; font-weight: 800; color: var(--whom); background: color-mix(in srgb, var(--whom) 12%, #fff); border-radius: 999px; padding: 3px 9px; }
.ev-line { font-size: 0.84rem; color: var(--ink); }
.ev-line a { color: var(--ink); }
.ev-line.notes { color: var(--muted); }
.clash { font-size: 0.8rem; font-weight: 700; color: #8a5a00; background: var(--gold-soft); border-radius: 10px; padding: 6px 9px; }
.ev-going { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.ev-going .faces { display: flex; }
.ev-going .faces .av { margin-right: -6px; box-shadow: 0 0 0 2px #fff; }
.bring { width: 100%; border-top: 1px solid var(--oat); padding-top: 8px; margin-top: 2px; display: flex; flex-direction: column; gap: 6px; }
.bring .group { margin-top: 0; }
.bring-row { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; }
.bring-row > span:first-child { flex: 1; }
.bring-who { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--muted); }
.grab.small { padding: 4px 10px; font-size: 0.8rem; }
.bring-row .x { border: 0; background: none; color: #c9bba9; font-size: 0.8rem; padding: 2px 4px; }
.bring-add { display: flex; gap: 6px; }
.bring-add input { flex: 1; border: 1.5px solid #e6dccf; border-radius: 10px; padding: 8px 10px; font-size: 0.9rem; }
.past summary { font-weight: 800; color: var(--muted); cursor: pointer; padding: 6px 0; }
.btn.center { text-align: center; text-decoration: none; display: block; }

/* ---------- Platform: family themes ---------- */
:root[data-theme="evergreen"] { --cardinal: #1f6f5c; --cardinal-deep: #164f42; --gold: #f6d77a; }
:root[data-theme="snowy"] { --cardinal: #1f4b99; --cardinal-deep: #163a78; --gold: #cfe3ff; }
:root[data-theme="plum"] { --cardinal: #5b2b99; --cardinal-deep: #43206f; --gold: #e0a526; }

.mascot.emoji { display: grid; place-items: center; background: #fdf6ea; font-size: 4.5rem; line-height: 1; }
.gate-pup .mascot.emoji { width: 148px; height: 148px; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 16px 34px rgba(60, 0, 8, 0.4); }
.hero-pup .mascot.emoji { width: 164px; height: 164px; border-radius: 50%; border: 6px solid #fff; font-size: 5rem; }
.empty .mascot.emoji { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; font-size: 3rem; }

/* ---------- Platform: sign-in and setup ---------- */
.card-title { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; }
.code-card { display: flex; flex-direction: column; gap: 10px; }
.code-card .sub { color: var(--muted); }
.text-btn.light { color: #fff; opacity: 0.9; text-decoration: underline; }
.card { background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.card h3 { font-size: 0.95rem; font-weight: 800; }
.card.form { display: flex; flex-direction: column; gap: 12px; }
.steps { display: flex; gap: 6px; margin-top: 12px; }
.steps i { flex: 1; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.2); }
.steps i.on { background: var(--gold); }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swatch { border: 2px solid #e6dccf; border-radius: 14px; padding: 9px; font-size: 0.8rem; font-weight: 700; display: flex; gap: 8px; align-items: center; background: #fff; color: var(--ink); }
.swatch.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.dots2 { display: flex; }
.dots2 i { width: 16px; height: 16px; border-radius: 50%; margin-right: -4px; border: 2px solid #fff; }
.mascots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mascots button { aspect-ratio: 1; border-radius: 14px; border: 2px solid #e6dccf; display: grid; place-items: center; font-size: 1.9rem; background: #fdf6ea; overflow: hidden; padding: 0; }
.mascots button.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.mascots img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Platform: people and settings ---------- */
.member { display: flex; align-items: center; gap: 10px; padding: 10px 0 4px; }
.card > .member:first-child { padding-top: 2px; }
.member-text { min-width: 0; flex: 1; }
.member .n { font-weight: 800; font-size: 0.92rem; }
.member .s { font-weight: 600; color: var(--muted); font-size: 0.8rem; }
.member .status { font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 0 10px 42px; border-bottom: 1px solid var(--oat); }
.card > .member-actions:last-child { border-bottom: 0; padding-bottom: 2px; }
.role { flex: none; font-size: 0.7rem; font-weight: 800; border-radius: 999px; padding: 4px 9px; white-space: nowrap; background: var(--oat); }
.role.organizer, .role.buyer { background: var(--gold-soft); color: var(--gold-ink); }
.role.member { background: #e3ecfb; color: #1f4b99; }
.role.kid { background: #e2f3e8; color: #17663a; }
.chip-btn { border: 1.5px solid #e2d6c6; background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 0.8rem; font-weight: 700; color: #6b5e60; }
.chip-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.danger-text { color: var(--cardinal); }
.toggle { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 0; border: 0; background: none; text-align: left; }
.toggle + .toggle { border-top: 1px solid var(--oat); }
.toggle .t { display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.toggle .d { display: block; font-size: 0.8rem; color: var(--muted); }
.sw { margin-left: auto; width: 44px; height: 26px; border-radius: 999px; background: #d9cfc2; position: relative; flex: none; transition: background 0.15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.sw.on { background: var(--pine); }
.sw.on::after { left: 21px; }
.banner.reveal { background: #fff; border: 2px solid var(--pine); color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.big-pin { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.15em; color: var(--pine); }
.card.join { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card.join .code { font-family: var(--display); font-weight: 800; font-size: 1.05rem; background: var(--gold-soft); color: var(--gold-ink); border-radius: 10px; padding: 8px 12px; white-space: nowrap; }
.switcher { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-actions { position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 16px; z-index: 3; display: flex; gap: 6px; }
.hero-actions .hero-out { position: static; }

/* ---------- Plans: locks and upgrade ---------- */
.upgrade { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 2px dashed #e6dccf; }
.upgrade .lock-emoji { font-size: 2.4rem; }
.upgrade h3 { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.upgrade p { color: var(--muted); font-size: 0.9rem; max-width: 320px; }
.stage-opt.locked, .swatch.locked { opacity: 0.55; }
.mascots button.locked { opacity: 0.55; position: relative; }
.lock-badge { position: absolute; bottom: 2px; right: 4px; font-size: 0.8rem; }
.locked-line { font-size: 0.78rem; }
.locked-line a, .upgrade a { color: var(--cardinal); font-weight: 700; }
.plan-table { display: flex; flex-direction: column; }
.plan-row { display: grid; grid-template-columns: 1fr 64px 92px; gap: 8px; align-items: center; padding: 9px 0; font-size: 0.85rem; border-top: 1px solid var(--oat); }
.plan-row.head { border-top: 0; font-size: 0.8rem; }
.plan-row span:not(:first-child), .plan-row b { text-align: center; }
.price-card { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.price-card b { font-family: var(--display); font-size: 2rem; color: var(--cardinal); }
.price-card .btn:disabled { opacity: 0.6; }
.price-card h3 { font-family: var(--display); font-size: 1.25rem; }
.price-card.current { border: 2px solid var(--cardinal); }
.trial-card { display: flex; flex-direction: column; gap: 10px; }
.btn.ghost-light { background: #fff; color: var(--cardinal); box-shadow: 0 16px 30px -16px rgba(40, 0, 6, 0.6); }
.tour-lede { margin: 6px 0 0; opacity: 0.85; font-size: 0.92rem; }
.tour-people { display: flex; gap: 8px; margin: 16px -20px 0; padding: 0 20px 2px; overflow-x: auto; scrollbar-width: none; scroll-margin-top: 12px; }
.tour-people::-webkit-scrollbar { display: none; }
.tour-people button { flex: none; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 5px 14px 5px 5px; background: rgba(255, 255, 255, 0.1); color: #fff; font: inherit; font-weight: 700; font-size: 0.9rem; }
.tour-people button[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.tour-people .av { width: 32px; height: 32px; font-size: 0.85rem; }
.tour { display: flex; flex-direction: column; gap: 16px; }
.tour-intro { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.tour-intro h2 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin: 0; line-height: 1.1; }
.tour-role { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.tour-person-lede { margin: 0; line-height: 1.5; }
.tour-swipe { margin: -6px 0 -8px; text-align: right; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
/* Swipe through one person's screens; on wide screens they sit side by side. */
.tour-reel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: thin; }
.tour-shot { flex: 0 0 min(78%, 280px); scroll-snap-align: center; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tour-shot img { width: 100%; height: auto; border-radius: 28px; border: 6px solid #1f1416; box-shadow: var(--shadow); background: var(--oat); }
.tour-shot figcaption { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.tour-shot figcaption b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.tour-shot figcaption span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.tour-features { margin-top: 10px; }
.tour-features h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; text-align: center; margin: 0 0 12px; }
.tour-features > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tour-features p { margin: 0; background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow); font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.tour-features p span { display: block; font-size: 1.4rem; margin-bottom: 4px; }
.tour-features p b { display: block; color: var(--ink); font-size: 0.92rem; }
@media (min-width: 960px) {
  .app.tour-app { max-width: 1040px; }
  .tour-app .fun-top { padding-left: 40px; padding-right: 40px; }
  .tour-app .tour-people { margin: 18px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .tour-app .page { padding: 0 40px; }
  .tour-swipe { display: none; }
  .tour-reel { overflow: visible; margin: 0; padding: 4px 0 12px; justify-content: center; gap: 28px; }
  .tour-shot { flex: 0 1 220px; }
  .tour-app .btn.wide { max-width: 420px; align-self: center; }
  .tour-features > div { grid-template-columns: repeat(4, 1fr); }
}
.trial-card p { margin: 0; font-size: 0.9rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.split .btn, .split .ghost { width: 100%; }
.public-plans { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; text-align: left; }
.public-plans h2 { font-family: var(--display); font-size: 1.35rem; text-align: center; margin: 6px 0 2px; }
.public-plan { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; box-shadow: 0 16px 30px -16px rgba(40, 0, 6, 0.6); }
.public-plan h3 { font-family: var(--display); font-size: 1.1rem; margin: 0; }
.public-plan span { font-size: 0.8rem; color: var(--muted); }
.public-plan b { font-family: var(--display); font-size: 1.3rem; color: var(--cardinal); }
.public-plan p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 0.85rem; color: var(--ink); }
.public-plans .sub { text-align: center; color: rgba(255, 255, 255, 0.8); font-size: 0.8rem; }

/* Privacy policy and terms (public/privacy.html, public/terms.html). */
.legal { max-width: 720px; margin: 0 auto; padding: 28px 16px 60px; line-height: 1.6; }
.legal h1 { font-family: var(--display); font-size: 2.2rem; margin: 10px 0 0; }
.legal h2 { font-family: var(--display); font-size: 1.35rem; margin: 28px 0 6px; }
.legal h3 { font-size: 1rem; margin: 16px 0 4px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--cardinal); font-weight: 600; }
.legal-date { color: var(--muted); margin-top: 2px; }
.legal-links { margin-top: 32px; }
.foot a { color: inherit; }
.sub.small { font-size: 0.78rem; }

/* Parents' guide to children under 13 (public/kids.html). */
.guide-wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.guide-hero { background: linear-gradient(160deg, #c20c1f, var(--cardinal-deep)); color: #fff; padding: 22px 0 28px; }
.guide-hero a { color: #fff; font-weight: 600; }
.guide-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.04; margin: 4px 0 0; }
.guide-hero h1 em { color: var(--gold); }
.guide-lede { font-size: 1.05rem; max-width: 560px; opacity: 0.92; line-height: 1.55; }
.guide-cover { display: grid; gap: 22px; margin-top: 18px; }
.guide-promises { display: flex; flex-direction: column; gap: 12px; }
.guide-promises div { background: #fff; color: var(--ink); border-radius: 16px; padding: 13px 15px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; box-shadow: 0 18px 30px -20px rgba(40, 0, 6, 0.7); }
.guide-promises span { font-size: 1.4rem; line-height: 1; }
.guide-promises p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.guide-promises b { display: block; color: var(--ink); font-size: 1rem; }
.guide-note { font-size: 0.85rem; opacity: 0.85; margin: 18px 0 0; }
.guide-phone { display: block; width: min(100%, 300px); height: auto; margin: 0 auto; border-radius: 28px; border: 6px solid #1f1416; background: #fff; box-shadow: var(--shadow); }
.guide-card { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; border-radius: 16px; border: 1px solid #eadfd2; background: #fff; box-shadow: var(--shadow); }
.guide { padding-bottom: 48px; }
.guide-step { padding: 34px 0 6px; border-bottom: 1px solid #e7dccf; }
.guide-step h2 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1.15; margin: 0 0 6px; }
.guide-step h2 span { color: var(--cardinal); margin-right: 12px; }
.guide-step h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin: 22px 0 4px; }
.guide-step .kicker { color: var(--cardinal); margin: 0 0 4px; }
.guide-step .muted { color: var(--muted); line-height: 1.55; margin: 0 0 12px; }
.guide-split { display: grid; gap: 22px; align-items: start; margin-top: 8px; }
.guide-shots { display: grid; gap: 16px; }
.guide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.guide-pair figure { margin: 0; }
.guide-pair figcaption { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 10px; }
.guide-pair figcaption b { display: block; color: var(--ink); font-size: 0.92rem; }
.guide-ticks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.guide-ticks li { position: relative; padding-left: 24px; line-height: 1.5; }
.guide-ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--pine); font-weight: 800; }
.guide-callout { background: #fff; border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 14px; margin: 18px 0; line-height: 1.5; box-shadow: var(--shadow); }
.guide-step .guide-card { margin: 14px 0 0; }
.guide-table { width: 100%; border-collapse: collapse; margin-top: 8px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-size: 0.92rem; }
.guide-table th, .guide-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #efe5d8; vertical-align: top; }
.guide-table th { background: var(--ink); color: #fff; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table .yes { color: var(--pine); font-weight: 800; }
.guide-table .no { color: var(--cardinal); font-weight: 800; }
.guide-faq { display: grid; gap: 14px; margin: 10px 0 24px; }
.guide-faq p { margin: 3px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.guide-end { text-align: center; margin: 32px 0 8px; }
.guide .legal-links { text-align: center; color: var(--muted); font-size: 0.85rem; }
.guide .legal-links a { color: var(--cardinal); font-weight: 600; }
@media (min-width: 760px) {
  .guide-cover { grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
  .guide-split { grid-template-columns: 1fr 320px; gap: 48px; }
  .guide-pair { grid-template-columns: repeat(2, 300px); justify-content: center; gap: 48px; }
  .guide-faq { grid-template-columns: 1fr 1fr; gap: 18px 36px; }
}

/* Front page: one column on phones; on wide screens, sign-in beside the app, plans in a row. */
.gate-main { display: contents; }
.gate-side { display: none; }
@media (min-width: 960px) {
  .gate.front {
    max-width: none; display: grid; grid-template-columns: minmax(0, 460px) 400px;
    justify-content: center; align-content: start; column-gap: 80px; row-gap: 28px; padding: 56px 40px 40px; text-align: left;
  }
  .gate.front .gate-main { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
  .gate.front .gate-pup .mascot { width: 96px; height: 96px; border-width: 4px; }
  .gate.front .title { font-size: 3.4rem; }
  .gate.front .gate-lede { max-width: 420px; font-size: 1.08rem; }
  .gate.front .gate-side { display: block; position: relative; height: 640px; }
  .gate-phone { position: absolute; width: 270px; height: auto; border-radius: 34px; border: 7px solid #1f1416; background: #fff; box-shadow: 0 30px 60px -24px rgba(30, 0, 4, 0.75); }
  .gate-phone { right: 0; top: 0; }
  .gate-phone.back { left: 0; right: auto; top: 70px; transform: rotate(-6deg); opacity: 0.95; }
  .gate.front .public-plans, .gate.front > .banner, .gate.front > .foot { grid-column: 1 / -1; width: 100%; max-width: 1000px; justify-self: center; }
  .gate.front .public-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gate.front .public-plans h2, .gate.front .public-plans .sub { grid-column: 1 / -1; }
  .gate.front .public-plans h2 { font-size: 1.7rem; }
  .gate.front .public-plan { align-content: start; padding: 18px 20px; }
  .gate.front > .foot { text-align: center; }
}

/* Personal emojis: an emoji on a soft circle ringed in the person's color. */
.av.emoji { background: #fff7ea; box-shadow: inset 0 0 0 2px var(--tone); font-size: 1.45rem; line-height: 1; }
.av.emoji.xs { font-size: 0.9rem; }
.av.emoji.sm { font-size: 1.05rem; }
.av.emoji.lg { font-size: 1.75rem; }
.av.emoji.xl { font-size: 2.2rem; }
.av.emoji.ring { box-shadow: inset 0 0 0 3px var(--tone), 0 0 0 4px rgba(255, 255, 255, 0.9); }
.emoji-open { align-self: flex-start; border: 1px dashed #d9cbb9; background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: 0.85rem; }
.emoji-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.emoji-card .sub { margin: 2px 0 10px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-bottom: 12px; }
.emoji-grid button { aspect-ratio: 1; border: 2px solid #eee3d6; background: #fdf8f1; border-radius: 12px; font-size: 1.5rem; padding: 0; line-height: 1; }
.emoji-grid button.on { border-color: var(--ink); background: #fff; }
.mascots { grid-template-columns: repeat(5, 1fr); }

/* Shopping run (#/run): your claims grouped by shop, Amazon first. */
.run-start { display: flex; justify-content: space-between; align-items: center; font-size: 1.02rem; }
.run-summary { margin-top: -6px; }
.run-prog { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); overflow: hidden; margin-top: 10px; }
.run-prog i { display: block; height: 100%; background: var(--gold); transition: width 0.3s; }
.run-money { margin: 8px 0 0; font-size: 0.85rem; opacity: 0.8; }
.run-group { display: flex; flex-direction: column; gap: 8px; }
.run-group-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px; }
.run-group-head span { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.run-shop { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.btn.amazon-cart { background: var(--cardinal); color: #fff; text-align: center; text-decoration: none; display: block; }
.run-list { padding: 0 14px; }
.run-row { padding: 12px 0; }
.run-row + .run-row { border-top: 1px solid #f1e8dc; }
.run-head, .run-row.done { display: flex; gap: 10px; align-items: center; }
.run-row .ph { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; background: linear-gradient(135deg, #fdf1d6, #fbe3e1); }
.run-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.run-text b { font-size: 0.95rem; }
.run-text > span { color: var(--muted); font-size: 0.8rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.run-price { font-family: var(--display); color: var(--cardinal); font-size: 1.1rem; }
.run-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.run-acts .ghost { text-align: center; text-decoration: none; color: var(--ink); }
.run-row.done { opacity: 0.6; }
.run-row.done b { text-decoration: line-through; }
.run-check { color: var(--pine); font-weight: 800; }
.run-finished { text-align: center; background: #fffbeb; border: 1.5px solid #f5d46a; }
.run-finished div { font-size: 2rem; }
.run-finished h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 4px 0; }
.run-finished p { margin: 0; color: var(--muted); }

/* Family settings: the family sign-in link (#/join/<code>). */
.join-link { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.join-link code { display: block; width: 100%; padding: 8px 10px; border-radius: 10px; background: #fdf6ea; font-size: 0.82rem; overflow-wrap: anywhere; user-select: all; }

/* Home: the one "Today" card (next event, Most Christmassy, fun fact), a slim row each. */
.card.today { padding: 2px 14px; }
.today-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 11px 0; text-align: left; font: inherit; color: var(--ink); }
.today-row + .today-row { border-top: 1px solid #f1e8dc; }
.today-emoji { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; background: #fdf6ea; }
.today-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.today-text small { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.today-text b { font-size: 0.92rem; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-text > span { font-size: 0.78rem; color: var(--muted); }
.fact-row.open .today-text b { white-space: normal; font-weight: 600; }
.today-go { color: var(--muted); font-weight: 800; }

/* ---------- Wide screens (laptops): a sidebar instead of the bottom bar, and wider screens ---------- */
/* On phones these wrappers vanish, so everything keeps its phone order and spacing. */
.person-cards, .run-groups, .settings-codes, .settings-people, .settings-look { display: contents; }

@media (min-width: 1000px) {
  body:has(.app.with-nav) { background: #f4ede4; }
  .app.with-nav { max-width: none; margin: 0; padding: 0 32px 48px 252px; box-shadow: none; background: transparent; }
  .app.with-nav > :where(:not(.nav, .sheet-back, .toast)) { max-width: 1120px; margin-left: auto; margin-right: auto; }

  /* The bottom bar becomes a sidebar. */
  /* The sidebar takes the family's look (its deeper shade); the phone bar stays dark. */
  .nav { left: 0; top: 0; bottom: 0; transform: none; width: 220px; height: auto; border-radius: 0 26px 26px 0; background: var(--cardinal-deep);
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px; padding: 26px 12px; }
  .nav::before { content: "Christmas HQ"; font-family: var(--display); font-size: 1.35rem; color: #fff; padding: 0 12px 18px; }
  .nav button { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 0.95rem; padding: 12px 14px; border-radius: 14px; }
  .nav button:hover { opacity: 0.9; background: rgba(255, 255, 255, 0.05); }
  .nav button[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }
  .nav button i { font-size: 1.2rem; }
  .toast { left: calc(50% + 110px); }

  /* Headers run across the top with rounded bottoms. */
  .hero, .band, .desk-top, .fun-top { border-radius: 0 0 30px 30px; }
  .desk-top, .fun-top { padding-left: 32px; padding-right: 32px; }

  /* Screens that read best as a column (your list, someone's list, Fun, the wish form) stay one, centred. */
  .app.with-nav:is(.view-person, .view-show, .view-fun, .view-upgrade) > :is(main.page, header) { max-width: 720px; }

  /* Home: the banner across the top; the countdown and Today on the left, the family tiles on the right. */
  .view-lists.app.with-nav { display: grid; grid-template-columns: clamp(320px, 30vw, 400px) minmax(0, 1fr); column-gap: 28px; row-gap: 14px; align-content: start; }
  .view-lists.app.with-nav > :where(:not(.nav, .sheet-back, .toast)) { max-width: none; margin: 0; }
  .view-lists > .hero { grid-column: 1 / -1; padding: 30px 40px 70px; }
  .view-lists .hero .title { font-size: 2.7rem; }
  .view-lists .hero-pup { right: 40px; bottom: -30px; }
  .view-lists > main.page { display: contents; }
  /* Two real columns: the countdown tucks into the banner, then the day's cards on the left; the family and
     the settings cards on the right. Each column stacks on its own, so neither leaves gaps in the other. */
  .view-lists.app.with-nav > .count-card { grid-column: 1; grid-row: 2; width: auto; margin: -46px 0 0 28px; align-self: start; }
  .view-lists .home-side { display: flex; flex-direction: column; gap: 14px; grid-column: 1; grid-row: 3; margin: 0 0 0 28px; align-self: start; min-width: 0; }
  .view-lists .home-main { display: flex; flex-direction: column; gap: 14px; grid-column: 2; grid-row: 2 / span 2; align-self: start; min-width: 0; }
  .view-lists .home-side > *, .view-lists .home-main > *, .view-lists .home-extras > * { margin: 0; }
  .view-lists .home-main > h2.sec { margin-top: 22px; }
  .view-lists .tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
  .view-lists .home-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: stretch; }
  .view-lists .tile:hover { transform: translateY(-2px); }
  .view-lists > main > .foot { grid-column: 1 / -1; margin-top: 24px; }

  /* Santa's Desk and the Shopping tab: each person is a card, stacked tightly in columns. */
  .person-cards { display: block; columns: 2; column-gap: 18px; }
  .person-cards > .kid { break-inside: avoid; margin-bottom: 18px; background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
  .person-cards .drow-wrap { box-shadow: none; background: #fbf8f4; }
  .view-dash .chips, .view-shopping .chips { margin: 0; padding: 0; flex-wrap: wrap; }
  .view-dash .run-start, .view-shopping .run-start { max-width: 420px; }
  .view-dash .run-summary, .view-shopping .run-summary { text-align: left; margin-top: -8px; }

  /* Shopping run: one column of shops beside the next. */
  .run-groups { display: block; columns: 2; column-gap: 18px; }
  .run-groups > .run-group { break-inside: avoid; margin-bottom: 18px; }
  .view-run > main.page > .run-finished, .view-run > main.page > .banner { max-width: 640px; }

  /* Family settings: people on the left; codes, look and features on the right. */
  .view-family > main.page { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-auto-flow: row dense; gap: 14px 28px; align-items: start; }
  .view-family > main.page > * { grid-column: 1 / -1; }
  .settings-people, .settings-codes, .settings-look { display: flex; flex-direction: column; gap: 14px; }
  .view-family > main.page > .settings-people { grid-column: 1; grid-row: span 2; }
  .view-family > main.page > .settings-codes { grid-column: 2; }
  .view-family > main.page > .settings-look { grid-column: 2; }

  /* Plans: a wider schedule. */
  .app.with-nav.view-plans > :is(main.page, header) { max-width: 880px; }
}
@media (min-width: 1400px) {
  .person-cards { columns: 3; }
}
.affiliate-foot { display: block; margin-bottom: 4px; }

/* Gift ideas (#/ideas) */
.ideas-card { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; font: inherit; color: var(--ink); border-radius: var(--radius); padding: 12px 14px; background: linear-gradient(135deg, #fff7e6, #ffe9ec); box-shadow: var(--shadow); }
.ideas-card > span:first-child { font-size: 1.6rem; }
.ideas-card b { display: block; font-size: 0.95rem; }
.ideas-card small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.ideas-card > span:nth-child(2) { flex: 1; }
.ideas-top { background: linear-gradient(160deg, var(--cardinal), var(--cardinal-deep)); }
.idea-chips { flex-wrap: wrap; margin: 0; padding: 0; }
.idea-list { padding: 0 14px; }
.idea { padding: 14px 0; }
.idea + .idea { border-top: 1px solid #f1e8dc; }
.idea-head { display: flex; gap: 12px; align-items: center; }
.idea-emoji { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, #fdf1d6, #fbe3e1); }
.idea-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.idea-text b { font-size: 1rem; font-weight: 800; }
.idea-text span { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.idea-band { font-family: var(--display); color: var(--cardinal); font-size: 0.95rem; white-space: nowrap; }
.idea-acts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; margin-top: 10px; }
.idea-acts .ghost { text-align: center; text-decoration: none; color: var(--ink); white-space: nowrap; font-size: 0.88rem; padding-left: 8px; padding-right: 8px; }
.idea-added { display: grid; place-items: center; border-radius: 999px; background: #e9f6ee; color: var(--pine); font-weight: 800; font-size: 0.9rem; }
@media (min-width: 1000px) {
  .app.with-nav.view-ideas > :is(main.page, header) { max-width: 720px; }
}
/* Six buttons on a phone (with Ideas): tighter spacing so they all fit. */
@media (max-width: 999px) {
  .nav:has(> button:nth-of-type(6)) button { padding: 6px 6px; font-size: 0.7rem; }
}
/* Gift ideas: the fun reason, as a little gold speech bubble under the name. */
.idea-why { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: #fdf6ea; color: #6b5a48; font-weight: 500; font-size: 0.86rem; line-height: 1.45; }

/* Christmas checklist tab (#/fun/checklist) and its row on the home Today card. */
.check-progress { display: flex; flex-direction: column; gap: 8px; }
.check-progress > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.check-progress b { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--cardinal); }
.check-progress span { color: var(--muted); font-weight: 700; }
.check-progress .meter { margin-top: 0; }
.check-progress .sub { margin: 0; }
.acts.big .act { padding: 16px 12px; font-size: 0.9rem; min-height: 64px; }
.acts.big .act i { font-size: 1.7rem; }
.today-row.check-row { gap: 10px; }
.check-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: var(--ink); }
.check-done { flex: none; border: 0; border-radius: 999px; padding: 8px 12px; background: var(--pine); color: #fff; font-weight: 800; font-size: 0.82rem; }
.subtabs button { font-size: 0.8rem; }
@media (min-width: 1000px) {
  .acts.big { grid-template-columns: repeat(3, 1fr); }
}
.check-row .today-text b { white-space: normal; }

/* Christmas favorites and the "Who said it?" quiz (#/fun/quiz, 2.22.0). */
.favorites { display: flex; flex-direction: column; gap: 12px; }
.favorites textarea { resize: vertical; }
.quiz-who { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.quiz-who .faces { display: flex; flex-wrap: wrap; gap: 6px; }
.quiz-card { display: flex; flex-direction: column; gap: 14px; text-align: center; padding: 24px 18px; }
.quiz-count { margin: 0; color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.quiz-q { margin: 0; font-weight: 800; color: var(--cardinal); }
.quiz-a { margin: 0; font-family: var(--display); font-size: 1.6rem; line-height: 1.25; }
.quiz-reveal { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.15rem; }

/* "Where to watch" on movies (2.22.1). */
.watch-link { display: inline-block; margin-top: 2px; font-size: 0.8rem; font-weight: 700; color: var(--cardinal); text-decoration: none; }
.upnext .watch-link { color: var(--gold); font-size: inherit; margin-top: 0; }

/* Family settings people list: small pill actions, a new PIN shown under its person (2.22.3). */
.act-btn { border: 1.5px solid #e2d6c6; background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.act-btn.danger { color: var(--cardinal); }
.act-btn.danger.confirm { background: var(--cardinal); border-color: var(--cardinal); color: #fff; }
.member .status.warn { color: #a15c00; font-weight: 700; }
.pin-reveal { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: #e9f6ee; border: 1.5px solid var(--pine); }
.pin-reveal p { margin: 0; font-weight: 700; font-size: 0.86rem; }
.pin-reveal .sub { font-weight: 500; font-size: 0.78rem; }

/* "A new version is ready" sits above the screen, outside .app: give it the page gutters, and clear the sidebar on wide screens (2.22.6). */
.banner.update-ready { width: min(528px, calc(100% - 32px)); margin: calc(10px + env(safe-area-inset-top)) auto 10px; box-sizing: border-box; }
@media (min-width: 1000px) {
  body:has(.app.with-nav) .banner.update-ready { width: auto; max-width: 1120px; margin: 16px 32px 14px 252px; }
}

/* The 6-digit code from a sign-in email (2.23.0): big and spaced, easy to type. */
.code-input { font-size: 1.5rem !important; letter-spacing: 0.2em; text-align: center; }

/* The Sunday email switch on the home screen (2.24.0). */
.weekly-email { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.weekly-email > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.weekly-email small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.weekly-email button { flex: none; }

/* Text size on this phone: A, A+, A++ (2.25.0). Nearly every size is in rem, so this scales the whole app. */
html[data-text="large"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }
.text-size { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.text-size > span { flex: 1; font-weight: 800; color: var(--ink); }
.text-size .seg { display: flex; gap: 6px; }
.text-size .seg button { min-width: 48px; height: 44px; border: 1.5px solid #e2d6c6; background: #fff; border-radius: 14px; font-weight: 800; color: var(--ink); }
.text-size .seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.text-size .seg button:nth-child(1) { font-size: 0.9rem; }
.text-size .seg button:nth-child(2) { font-size: 1.05rem; }
.text-size .seg button:nth-child(3) { font-size: 1.2rem; }
.gate .text-size { width: 100%; text-align: left; }
/* Bigger text: the Fun tabs stay on one line and swipe if they don't fit. */
.subtabs { overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { flex: 1 0 auto; white-space: nowrap; padding-left: 10px; padding-right: 10px; }


/* The plain-HTML front page in index.html (2.30.0): shown only when the app's code isn't running
   (search engines, link previews, Amazon's reviewers). boot.js adds .js before anything is drawn. */
.js .static-front { display: none; }
html:not(.js) .gate.boot { display: none; }
.static-front .btn { text-decoration: none; }
.static-front .guide-hero .btn { display: inline-block; margin-top: 6px; background: #fff; color: var(--cardinal); }

/* Home's column wrappers (2.32.1): boxes only on wide screens, so phones keep one plain column. */
.home-side, .home-main, .home-extras { display: contents; }

/* Gift idea of the day, on Home (2.31.0). */
.idea-card { padding: 16px; }
.idea-card-head { display: flex; gap: 12px; align-items: center; }
.idea-big { font-size: 2rem; width: 52px; height: 52px; display: grid; place-items: center; background: #fff4e0; border-radius: 14px; flex: none; }
.idea-kick { margin: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.idea-card h3 { margin: 0; font-size: 1.05rem; }
.idea-card-why { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.idea-card-why b { color: var(--ink); font-weight: 700; }
.idea-card-acts { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.idea-card-acts > * { flex: 1; text-align: center; }
.idea-card-acts a.btn { text-decoration: none; }
.idea-card-note { margin: 10px 0 0; font-size: 0.8rem; color: var(--muted); text-align: center; line-height: 1.45; }

/* The public Gift ideas page, /gift-ideas (2.32.0; src/giftpage.ts). Same pieces as the app's Gift ideas tab. */
.public-ideas .app { max-width: 760px; }
.public-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.public-brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.35rem; }
.public-brand img { border-radius: 50%; background: #fff; }
.public-signin { color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.idea-chips a { flex: none; border: 1.5px solid #e2d6c6; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.82rem; color: #6b5e60; text-decoration: none; }
.idea-chips a[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.public-ideas .idea-acts a { text-align: center; text-decoration: none; }
.idea-group { display: flex; flex-direction: column; gap: 8px; }
.idea-group-title { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 6px 0 0; }
/* With the script running, the chips are tabs: one category at a time, no headings (like the app). */
html.js:not([data-ideas-ready]) .idea-group:not(:first-of-type) { display: none; }
html[data-ideas-ready] .idea-group-title, html.js .idea-group-title { display: none; }
.idea-group[hidden] { display: none; }
.public-ideas-foot { margin: 4px 0 0; }
.banner.idea-pending { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.idea-pending-acts { display: flex; align-items: center; gap: 6px; }
.banner.idea-pending.light { margin: 10px 0 0; }
