:root {
  color-scheme: light;
  --forest: #143e32;
  --forest-deep: #0f2f26;
  --cranberry: #7c2838;
  --gold: #d4b36c;
  --gold-soft: #e6d3a3;
  --cream: #fbf5e9;
  --cream-dark: #f3ead6;
  --paper: #fffaf1;
  --ink: #21392f;
  --muted: #59665d;
  --line: #d7c9b0;
  --danger: #8a2a2a;
  --ok: #2b6b4f;
  --shadow: 0 8px 24px rgba(20, 62, 50, 0.08);
  --theme-accent: var(--gold);
  --header-overlay: 20, 62, 50;
  --page-tint: #fbf5e9;
  --theme-mark: none;
  --tabbar: 64px;
  --toptabs-z: 35;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --radius: 14px;
}

/* Per-holiday themes. Variables also apply on body.theme-* when a holiday is open. */
html[data-holiday="christmas"],
body.theme-christmas {
  --forest: #143e32;
  --forest-deep: #0f2f26;
  --cranberry: #8b1e2d;
  --gold: #c9a227;
  --gold-soft: #e6d3a3;
  --cream: #fbf5e9;
  --cream-dark: #f3ead6;
  --paper: #fffaf1;
  --ink: #21392f;
  --muted: #59665d;
  --line: #d7c9b0;
  --danger: #8a2a2a;
  --ok: #2b6b4f;
  --shadow: 0 8px 24px rgba(20, 62, 50, 0.08);
  --theme-accent: #c9a227;
  --header-overlay: 20, 62, 50;
  --page-tint: #f0f5ef;
}

html[data-holiday="halloween"],
body.theme-halloween {
  --forest: #1c1224;
  --forest-deep: #0d0a12;
  --cranberry: #d45a16;
  --gold: #e8a838;
  --gold-soft: #f0d49a;
  --cream: #faf3e6;
  --cream-dark: #f0e4cd;
  --paper: #fffaf2;
  --ink: #1c1224;
  --muted: #6a5a4e;
  --line: #e0d0b6;
  --danger: #8a2a2a;
  --ok: #8a5a16;
  --shadow: 0 8px 24px rgba(28, 18, 36, 0.12);
  --theme-accent: #d45a16;
  --header-overlay: 28, 18, 36;
  --page-tint: #f9e8d0;
}

html[data-holiday="thanksgiving"],
body.theme-thanksgiving {
  --forest: #7a2a1d;
  --forest-deep: #5c1c14;
  --cranberry: #c45c1c;
  --gold: #c9923a;
  --gold-soft: #e6c98a;
  --cream: #faf3e6;
  --cream-dark: #efe4ce;
  --paper: #fffaf2;
  --ink: #2c2418;
  --muted: #6a5346;
  --line: #dccbb0;
  --danger: #8a2a2a;
  --ok: #7a2a1d;
  --shadow: 0 8px 24px rgba(122, 42, 29, 0.1);
  --theme-accent: #c9923a;
  --header-overlay: 122, 42, 29;
  --page-tint: #f7e8d0;
}

html[data-holiday="thanksgivingUs"],
body.theme-thanksgivingUs {
  --forest: #5c3518;
  --forest-deep: #3f240f;
  --cranberry: #c46212;
  --gold: #d4a03a;
  --gold-soft: #e6c98a;
  --cream: #faf4e8;
  --cream-dark: #efe4ce;
  --paper: #fffaf2;
  --ink: #2c2418;
  --muted: #6a5646;
  --line: #dccbb0;
  --danger: #8a2a2a;
  --ok: #5c3518;
  --shadow: 0 8px 24px rgba(92, 53, 24, 0.1);
  --theme-accent: #d4a03a;
  --header-overlay: 92, 53, 24;
  --page-tint: #f6e6cc;
}

html[data-holiday="easter"],
body.theme-easter {
  --forest: #5a4a80;
  --forest-deep: #463a66;
  --cranberry: #c47a8a;
  --gold: #d4b24a;
  --gold-soft: #efe0b5;
  --cream: #faf6fb;
  --cream-dark: #efe6f2;
  --paper: #fffdfb;
  --ink: #2d2a3a;
  --muted: #5e586c;
  --line: #ddd4e4;
  --danger: #8a2a2a;
  --ok: #2f6f5e;
  --shadow: 0 8px 24px rgba(90, 74, 128, 0.1);
  --theme-accent: #7eb8a4;
  --header-overlay: 90, 74, 128;
  --page-tint: #efeaf8;
}

html[data-holiday="valentine"],
body.theme-valentine {
  --forest: #7a2434;
  --forest-deep: #5a1a26;
  --cranberry: #b03a4a;
  --gold: #d4a0a8;
  --gold-soft: #edcfd4;
  --cream: #fdf6f4;
  --cream-dark: #f5e6e4;
  --paper: #fffafa;
  --ink: #3a1f24;
  --muted: #7a5a60;
  --line: #e8d0d3;
  --danger: #8a2a2a;
  --ok: #8a3a48;
  --shadow: 0 8px 24px rgba(122, 36, 52, 0.1);
  --theme-accent: #b03a4a;
  --header-overlay: 122, 36, 52;
  --page-tint: #f9e8eb;
}

html[data-holiday="birthdays"],
body.theme-birthdays {
  --forest: #8a2458;
  --forest-deep: #6a1a42;
  --cranberry: #c45b7a;
  --gold: #e0b04a;
  --gold-soft: #f0d591;
  --cream: #fff8f0;
  --cream-dark: #f5ead8;
  --paper: #fffdfb;
  --ink: #2a1f28;
  --muted: #5a4a5e;
  --line: #e4d4c8;
  --danger: #8a2a2a;
  --ok: #1a5c62;
  --shadow: 0 8px 24px rgba(138, 36, 88, 0.1);
  --theme-accent: #e0b04a;
  --header-overlay: 185, 163, 227;
  --page-tint: #e8f3fb;
}

html[data-holiday="custom"],
body.theme-custom {
  --forest: #2c3e50;
  --forest-deep: #1b2836;
  --cranberry: #7c2838;
  --gold: #c9a15a;
  --gold-soft: #e4d0a6;
  --cream: #f7f3ea;
  --cream-dark: #ebe4d4;
  --paper: #fffdf7;
  --ink: #22303a;
  --muted: #5c6b72;
  --line: #d5cebf;
  --danger: #8a2a2a;
  --ok: #2c3e50;
  --shadow: 0 8px 24px rgba(44, 62, 80, 0.1);
  --theme-accent: #c9a15a;
  --header-overlay: 44, 62, 80;
  --page-tint: #f2f4f7;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: calc(var(--safe-bottom) + 16px);
}
body[data-view="cover"] { height: 100%; }
body[data-view="holiday"] { height: auto; min-height: 100%; background-color: var(--page-tint); }
button, input, textarea, select { font: inherit; color: inherit; }
button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--forest);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
}
button:hover { background: var(--cream-dark); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.primary {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.primary:hover { background: var(--forest-deep); color: var(--cream); }
.danger {
  background: transparent;
  color: var(--danger);
  border-color: #e0b4b4;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 8px;
}
h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 10px; }
[hidden] { display: none !important; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  overflow: hidden;
}
.header-content {
  position: relative;
  z-index: 1;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px;
}
.header-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.9);
}
body.theme-birthdays .header-banner img {
  object-position: center 4%;
}
.header-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--header-overlay), .42) 0%, rgba(var(--header-overlay), .72) 55%, rgba(var(--header-overlay), .90) 100%);
}
body[data-view="holiday"] .app-header { position: relative; z-index: 10; }
body[data-view="holiday"] .app-header,
body[data-view="holiday"] .header-content { min-height: 148px; }
body[data-view="holiday"] .wordmark { display: none; }
body[data-view="holiday"] .holiday-row { margin-top: 2px; }
.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.brand-row .wordmark { flex: 1; text-align: center; }
.wordmark {
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 700;
  opacity: .9;
}
.icon-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-color: transparent;
  color: var(--cream);
  border-radius: 50%;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.holiday-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.holiday-heading {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.holiday-page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  color: var(--cream);
  text-shadow: 0 1px 10px rgba(0,0,0,.28);
  overflow-wrap: break-word;
  cursor: pointer;
}
.holiday-btn {
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-color: transparent;
  color: var(--cream);
  padding: 0;
  border-radius: 50%;
}
.holiday-btn:hover { background: rgba(255,255,255,.14); }
.holiday-btn .chev { opacity: .85; font-size: 16px; }
.countdown-pill {
  flex-shrink: 0;
  background: var(--cranberry);
  color: #fff8e9;
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 72px;
  text-align: center;
  line-height: 1.1;
}
.countdown-pill .num { font-family: Georgia, serif; font-size: 1.35rem; }
.countdown-pill .lbl { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }

/* Birthdays header: soft light purple instead of burgundy/rose. Dark text for contrast. */
body.theme-birthdays .app-header {
  background: #c9b6ec;
  color: #3a2460;
}
body.theme-birthdays .icon-btn,
body.theme-birthdays .holiday-page-title,
body.theme-birthdays .holiday-btn {
  color: #3a2460;
}
body.theme-birthdays .holiday-page-title {
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.55);
}
body.theme-birthdays .icon-btn:hover,
body.theme-birthdays .holiday-btn:hover {
  background: rgba(58, 36, 96, 0.12);
}
body.theme-birthdays .header-banner:after {
  background: linear-gradient(180deg, rgba(var(--header-overlay), .55) 0%, rgba(var(--header-overlay), .80) 55%, rgba(var(--header-overlay), .94) 100%);
}
body.theme-birthdays .countdown-pill {
  background: #5c3d9e;
  color: #f8f4ff;
}


main {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px 24px;
}
.banner {
  background: #fff4d6;
  border: 1px solid var(--gold);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.banner button.linkish { margin-left: auto; min-height: 32px; padding: 4px 8px; border: 0; background: transparent; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin: 4px 0 12px;
}
.eyebrow {
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 4px;
}
.small, .hint { font-size: 13px; color: var(--muted); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
body[data-view="holiday"] .card:not(.flat) {
  border-left: 3px solid var(--theme-accent);
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.spread { justify-content: space-between; }
.stack { display: grid; gap: 10px; }
.totals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat {
  background: var(--cream-dark);
  border-radius: 10px;
  padding: 10px 12px;
}
.stat .lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat .val { font-family: Georgia, serif; font-size: 1.35rem; }
.stat.over .val { color: var(--danger); }
.stat.ok .val { color: var(--ok); }
/* Tappable totals on the Gifts summary */
button.stat-edit {
  display: block;
  position: relative;
  width: 100%;
  min-height: 0;
  text-align: left;
  border: 1px solid transparent;
  background: var(--cream-dark);
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  padding: 10px 12px;
}
button.stat-edit:hover { background: var(--cream-dark); border-color: var(--gold-soft); }
.stat-edit .lbl, .stat-edit .val { display: block; }
.stat-edit-hint {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
  text-decoration: underline;
}
.amount-btn {
  min-height: 32px;
  padding: 2px 6px;
  margin: -2px -6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.amount-btn:hover { background: var(--cream-dark); }
.amount-btn.add-price { color: var(--muted); font-size: 13px; }
.person-budget .hint { flex: 1 1 auto; }
.spend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 104px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.spend-name { font-weight: 600; overflow-wrap: anywhere; }
.spend-row input, .spend-row select { width: 100%; min-height: 40px; }

.bar {
  height: 8px;
  background: #e8deca;
  border-radius: 99px;
  overflow: hidden;
  margin: 8px 0 0;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--forest);
  border-radius: 99px;
  max-width: 100%;
}
.bar.over > span { background: var(--cranberry); }

.person-type {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--cream-dark);
  color: var(--muted);
  border-radius: 99px;
  padding: 3px 8px;
  font-weight: 700;
}
.person-type.child { background: #e8f0ea; color: var(--forest); }

.gift {
  border-top: 1px solid var(--line);
  padding: 10px 0 2px;
  margin-top: 10px;
}
.gift:first-of-type { margin-top: 8px; }
.gift-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.gift-name { font-weight: 650; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.status-row, .chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.status-chip, .chip {
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 13px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.status-chip[aria-pressed="true"], .chip[aria-pressed="true"], .chip.on {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.hidden-where { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hidden-where strong { color: var(--ink); font-weight: 650; }

.even-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.even-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 0 6px 6px 0; }
.even-table td { padding: 6px 6px 6px 0; vertical-align: middle; }
.even-table .behind { color: var(--danger); font-weight: 650; }
.even-table .even { color: var(--ok); font-weight: 650; }
.spent-table td:first-child { width: 44%; }
.spent-table td:not(:first-child), .spent-table th:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.spent-table th:not(:first-child) { padding-right: 0; padding-left: 6px; }
.spent-table td:not(:first-child) { padding-right: 0; padding-left: 6px; }
.spent-table .who { display: block; font-weight: 650; overflow-wrap: anywhere; }
.spent-table .who-type { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spent-table .behind, .spent-table .even { display: block; font-size: 12px; }

.add-btn { width: 100%; margin-top: 4px; }
.mini {
  min-height: 44px;
  padding: 4px 10px;
  font-size: 13px;
}
.linkish { background: transparent; border: 0; color: var(--forest); text-decoration: underline; min-height: 36px; padding: 4px; }

.menu-item h3 { margin-bottom: 2px; }
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cranberry);
  font-weight: 700;
}
.ing-list, .step-list, .todo-list, .check-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ing-list li, .check-list li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid #eee4d2; font-size: 14px; }
.check-list li:first-child, .ing-list li:first-child { border-top: 0; }
.check-list input, .todo input[type="checkbox"], .idea-done { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--forest); }
.check-list .bought { text-decoration: line-through; color: var(--muted); }
.grocery-section { margin-top: 4px; }
.timeline { position: relative; padding-left: 16px; border-left: 2px solid var(--gold); margin: 8px 0 0 6px; }
.timeline .event { margin: 0 0 14px; padding-left: 10px; }
.timeline .when { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cranberry); font-weight: 700; }
.date-time {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
label.field { display: block; font-size: 13px; font-weight: 650; margin: 0 0 12px; }
label.field > span { display: block; margin-bottom: 5px; }
input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="search"], textarea, select {
  width: 100%;
  border: 1px solid #9dada2;
  background: #fffdf7;
  border-radius: 8px;
  padding: 12px;
  line-height: 1.4;
  min-height: 44px;
  font-size: 16px;
}
textarea { min-height: 88px; resize: vertical; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.countdown-hero {
  text-align: center;
  padding: 18px 10px 8px;
}
.countdown-hero .big {
  font-family: Georgia, serif;
  font-size: clamp(3rem, 16vw, 5rem);
  line-height: 1;
  color: var(--forest);
}
.countdown-hero .sub { color: var(--muted); margin-top: 4px; }

.todo {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.todo.done .todo-title { text-decoration: line-through; color: var(--muted); }
.todo-meta { font-size: 12px; color: var(--muted); }
.todo-meta .overdue { color: var(--danger); font-weight: 700; }
.group-title {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 750;
  margin: 16px 0 0;
}

.day-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.day-pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 56px;
  min-height: 64px;
  padding: 8px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  color: var(--ink);
}
.day-pill .d { font-family: Georgia, serif; font-size: 1.2rem; }
.day-pill .m { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.day-pill[aria-pressed="true"] {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.day-pill[aria-pressed="true"] .m { color: var(--gold-soft); }
.day-pill.done { box-shadow: inset 0 0 0 2px var(--gold); }
.day-pill.today { border-color: var(--cranberry); }
.idea-hero h2 { font-size: 1.6rem; margin-top: 4px; }
.idea-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.idea-bank .idea {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.idea-bank .idea strong { display: block; }

.toptabs {
  position: sticky;
  top: var(--safe-top);
  z-index: var(--toptabs-z);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(20, 62, 50, 0.08);
}
.toptabs::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: var(--safe-top);
  background: var(--cream);
  pointer-events: none;
}
.toptabs[hidden] { display: none !important; }
.toptabs-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 8px 16px;
  scroll-padding-inline: 16px;
  touch-action: pan-x;
}
.toptabs-scroll::-webkit-scrollbar { display: none; }
.toptabs-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .15s ease;
}
.toptabs-fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(251, 245, 233, 0) 100%);
}
.toptabs-fade-right {
  right: 0;
  background: linear-gradient(270deg, var(--cream) 0%, rgba(251, 245, 233, 0) 100%);
}
.toptabs.can-left .toptabs-fade-left,
.toptabs.can-right .toptabs-fade-right { opacity: 1; }
.toptab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--forest);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.toptab .toptab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-size: 16px;
  line-height: 1;
}
.toptab .toptab-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.theme-icon svg { width: 1em; height: 1em; display: block; fill: currentColor; }
.toptab[aria-selected="true"] {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.toptab[aria-selected="true"]:hover {
  background: var(--forest-deep);
  color: var(--cream);
}

/* Sheets / modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 24, .45);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  background: var(--cream);
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, 760px);
  border-radius: 18px 18px 0 0;
  padding: 10px 16px calc(20px + var(--safe-bottom));
  overflow: auto;
  box-shadow: 0 -8px 32px rgba(0,0,0,.2);
}
.grab {
  width: 40px; height: 4px; border-radius: 4px;
  background: var(--line);
  margin: 4px auto 10px;
}
.sheet h2 { margin-bottom: 12px; }
.sheet-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.sheet-actions .primary { flex: 1; }
.holiday-choice {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  min-height: 56px;
  padding: 10px 14px;
}
.holiday-choice[aria-pressed="true"] {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.holiday-choice { align-items: flex-start; }
.holiday-choice .choice-text { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.holiday-choice .choice-name { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 400; }
.holiday-choice .meta { font-size: 12px; font-weight: 500; opacity: .8; }

.empty {
  text-align: center;
  padding: 22px 10px;
  color: var(--muted);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 16px);
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 50;
  box-shadow: var(--shadow);
  max-width: 90%;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -100px; background: #fff; padding: 10px; z-index: 60;
}
.skip:focus { top: 10px; }

@media (min-width: 700px) {
  body { background: var(--cream-dark); }
  .app-header, main, .toptabs { max-width: 560px; margin-left: auto; margin-right: auto; }
  .app-header { border-radius: 0 0 16px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .bar > span { transition: background .15s ease, color .15s ease, width .2s ease; }
}

/* Cover / home */
.cover { padding: 8px 0 16px; }
.cover-intro { margin: 4px 0 16px; }
.cover-intro h1 { font-size: 1.85rem; margin-bottom: 6px; }
.cover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cover-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #1a2a22;
  min-height: 0;
  box-shadow: var(--shadow);
}
.cover-tile.hero {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
  min-height: 180px;
}
.cover-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-tile.hero img { object-position: center 42%; }
.cover-tile .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(12, 20, 16, .72) 70%);
  color: #fff8e9;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 500;
}
.cover-tile .caption .name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.cover-tile.hero .caption .name { font-size: 1.55rem; letter-spacing: 0; }
.cover-tile .caption .meta {
  font-size: 12px;
  letter-spacing: .02em;
  opacity: .9;
}
.cover-tile:focus-visible { outline-offset: 3px; }
body[data-view="cover"] { padding-bottom: 24px; }
body[data-view="cover"] .tab-panel { display: none; }

/* Segmented switches (Gifts/Wishlists, Decor/Inspiration) */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--cream-dark);
  padding: 4px;
  border-radius: 12px;
  margin: 0 0 14px;
}
.seg button {
  border: 0;
  background: transparent;
  min-height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.seg button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 1px 3px rgba(20, 62, 50, 0.1);
}

/* Decorations */
.decor-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.decor-item:first-child { border-top: 0; padding-top: 2px; }
.decor-item.status-up { box-shadow: inset 3px 0 0 var(--gold); padding-left: 10px; }
.decor-item.status-stored .decor-name { color: var(--muted); }
.decor-item.status-need .decor-name { color: var(--ink); }
.decor-name { font-weight: 650; }
.decor-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.decor-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Inspiration board: even 4:5 tiles; tap a photo to see it uncropped. */
.inspo-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.inspo-card {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.wish-thumb, .gift-thumb {
  display: block;
  width: 100%;
  object-fit: cover;
}
.inspo-photo {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--cream-dark);
  cursor: zoom-in;
}
.inspo-photo:hover { background: var(--cream-dark); }
.inspo-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  image-orientation: from-image;
}
.lightbox img, .wish-thumb, .gift-thumb, .outfit-thumb, .receipt-thumb { image-orientation: from-image; }
.inspo-card .body { padding: 10px 12px 12px; }
.inspo-card .caption { font-weight: 650; margin: 0 0 4px; }
.inspo-empty {
  text-align: center;
  padding: 32px 16px 24px;
  color: var(--muted);
}
.inspo-empty .frame {
  width: 72px;
  height: 88px;
  margin: 0 auto 14px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--cream-dark), var(--paper));
  position: relative;
}
.inspo-empty .frame:after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  height: 8px;
  border-radius: 8px;
  background: var(--gold-soft);
}
.inspo-empty .frame:before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  top: 16px; left: 16px;
}

/* Christmas Eve traditions */
.eve-card { border-color: var(--gold); }
.eve-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.eve-item:first-of-type { border-top: 0; }
.eve-item.done .eve-title { text-decoration: line-through; color: var(--muted); }
.eve-title { font-weight: 650; }
.eve-meta { font-size: 12px; color: var(--muted); }
.eve-item input[type="checkbox"] {
  width: 22px; height: 22px; margin-top: 2px;
  flex-shrink: 0; accent-color: var(--forest);
}

/* Wishlists */
.wish-item {
  border-top: 1px solid var(--line);
  padding: 10px 0 2px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}
.wish-item.got { opacity: .72; }
.wish-item.got .wish-name { text-decoration: line-through; color: var(--muted); }
.wish-name { font-weight: 650; }
.wish-thumb, .gift-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.gift .gift-thumb { width: 48px; height: 48px; }
.priority {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 750;
  border-radius: 99px;
  padding: 2px 8px;
}
.priority.must { background: #f3e0e2; color: var(--cranberry); }
.priority.love { background: #e8f0ea; color: var(--forest); }
.priority.maybe { background: var(--cream-dark); color: var(--muted); }
.size-line { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.existing-people { display: grid; gap: 8px; margin-bottom: 12px; }

.meal-block { margin-bottom: 8px; }
.grocery-source { font-size: 11px; color: var(--muted); font-weight: 500; }

.assignee {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  color: var(--forest);
  background: var(--cream-dark);
  border-radius: 99px;
  padding: 2px 8px;
}
.claimed-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cranberry);
  background: #f3e0e2;
  border-radius: 99px;
  padding: 2px 8px;
}
.task-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.task-row.overdue .task-due { color: var(--danger); font-weight: 700; }
.task-row.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-title { font-weight: 650; }
.task-due, .task-group { font-size: 12px; color: var(--muted); }
.share-preview {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.45;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
}
.share-pick {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.share-pick input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--forest); }

.cost-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 750;
  border-radius: 99px;
  padding: 2px 8px;
}
.cost-badge.free { background: #e8f0ea; color: var(--forest); }
.cost-badge.under5 { background: #f3ead6; color: #7a5a16; }
.cost-badge.custom { background: var(--cream-dark); color: var(--muted); }
a.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--forest);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
a.button-link:hover { background: var(--cream-dark); }
.gift-top { align-items: center; }
.gift-top .gift-thumb { margin-right: 0; }

.seg.seg-3 { grid-template-columns: 1fr 1fr 1fr; }
.seg.seg-3 button { font-size: 13px; padding-left: 6px; padding-right: 6px; }

.thumb-btn {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}
.thumb-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gift-thumb, .outfit-thumb, .receipt-thumb {
  display: block;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream-dark);
}
.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.receipt-mini { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-pill {
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--cream-dark);
  border-radius: 99px;
  padding: 3px 8px;
}
.outfit-entry {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.outfit-event { font-weight: 700; }
.check-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  font-weight: 600;
}
.check-inline input { width: 22px; height: 22px; accent-color: var(--forest); }
.file-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--cream-dark);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
}
.receipt-card.due-soon { box-shadow: inset 3px 0 0 #c47b16; }
.receipt-card.due-overdue { box-shadow: inset 3px 0 0 #a33; }
.due-flag { color: #8a4b00; font-weight: 700; margin: 6px 0 0; }
.due-flag.overdue { color: #8a1f1f; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 18, 16, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 44px;
}

/* --- Holiday theme patterns, heading marks, empty-state icons --- */
body.theme-christmas { --theme-mark: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22black%22%20d=%22M12%201.8%207%208.2h2.1L5.2%2014h2.6L3.5%2021h17l-4.3-7h2.6L14.9%208.2H17L12%201.8z%22/%3E%3Cpath%20fill=%22black%22%20d=%22M11.1%2020.2h1.8V23h-1.8z%22/%3E%3C/svg%3E"); }
body.theme-easter { --theme-mark: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22black%22%20d=%22M12%202.2c3.8%200%206.8%205.7%206.8%2010.8%200%204.2-2.9%207.8-6.8%207.8s-6.8-3.6-6.8-7.8C5.2%207.9%208.2%202.2%2012%202.2z%22/%3E%3C/svg%3E"); }
body.theme-halloween { --theme-mark: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22black%22%20d=%22M12%205.2c.6-1.6%201.7-2.6%202.8-2.9-.8%201.3-1.5%202.2-2.2%202.9%202.8.3%206.7%202.8%206.7%207.4%200%204.4-3.3%207.4-7.3%207.4S4.7%2017%204.7%2012.6c0-4.6%203.9-7.1%206.7-7.4z%22/%3E%3C/svg%3E"); }
body.theme-thanksgiving { --theme-mark: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22black%22%20d=%22M12%202.2%2014%207l4.2-2.2-1%204.6%204.6.2-3.6%203.2%202.4%203.6-4.6-.8L16%2020H8l.6-4.4-4.6.8%202.4-3.6L2.8%209.6l4.6-.2-1-4.6L10.6%207z%22/%3E%3C/svg%3E"); }
body.theme-thanksgivingUs { --theme-mark: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22black%22%20d=%22M14.5%205c2.6%200%205%202.6%205.8%205.6.7%202.6.1%205.2-1.7%206.4l-1.4-1.6c1-.6%201.4-2.2%201-4-.6-2.2-2.3-4-3.7-4V5zm-3%203.2c3%200%205.5%202.6%205.5%206.2S14.5%2020.6%2011.5%2020.6%206%2018%206%2014.4s2.5-6.2%205.5-6.2zM8.2%208.6%206.4%205.8c1.4-.6%202.7-.4%203.8.5L8.2%208.6z%22/%3E%3C/svg%3E"); }
body.theme-valentine { --theme-mark: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22black%22%20d=%22M12%2021S3.2%2014.6%203.2%208.8C3.2%205.9%205.4%204%208%204c1.7%200%203.2%201%204%202.4C12.8%205%2014.3%204%2016%204c2.6%200%204.8%201.9%204.8%204.8C20.8%2014.6%2012%2021%2012%2021z%22/%3E%3C/svg%3E"); }
body.theme-birthdays { --theme-mark: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22black%22%20d=%22M12%202.2c3.4%200%206.2%203.2%206.2%207.2%200%203.6-2.2%206.6-5.4%207.1L14%2018h-4l1.2-1.5C8%2016%205.8%2013%205.8%209.4c0-4%202.8-7.2%206.2-7.2zM11.2%2018.6h1.6L12%2022.2z%22/%3E%3C/svg%3E"); }
body.theme-custom { --theme-mark: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22black%22%20d=%22M12%202.4%2014.6%209H21l-5.2%204%202%206.8L12%2016.6%206.2%2019.8l2-6.8L3%209h6.4z%22/%3E%3C/svg%3E"); }

body[data-view="holiday"].theme-christmas,
body[data-view="holiday"].theme-easter,
body[data-view="holiday"].theme-halloween,
body[data-view="holiday"].theme-thanksgiving,
body[data-view="holiday"].theme-thanksgivingUs,
body[data-view="holiday"].theme-valentine {
  background-color: var(--page-tint);
  background-repeat: repeat;
  background-size: 160px 160px;
}
body[data-view="holiday"].theme-christmas { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22160%22%20height=%22160%22%20viewBox=%220%200%20160%20160%22%3E%3Cg%20fill=%22none%22%20stroke=%22%23143e32%22%20stroke-width=%221.1%22%20stroke-linecap=%22round%22%20opacity=%220.16%22%3E%3Cg%20transform=%22translate%2824%2022%29%22%3E%3Cpath%20d=%22M0-8v16M-7-4l14%208M-7%204l14-8%22/%3E%3Cpath%20d=%22M0-5l-2-2.4M0-5l2-2.4M0%205l-2%202.4M0%205l2%202.4M-5-2.2l-2.6.4M-5-2.2l-1.2%202.4M5%202.2l2.6-.4M5%202.2l1.2-2.4%22/%3E%3C/g%3E%3Cg%20transform=%22translate%28108%2030%29%22%3E%3Cpath%20d=%22M0-8v16M-7-4l14%208M-7%204l14-8%22/%3E%3C/g%3E%3Cg%20transform=%22translate%2880%20100%29%22%20fill=%22%23143e32%22%20stroke=%22none%22%20opacity=%220.9%22%3E%3Cpath%20d=%22M0-11%206-3h-2.4L8%206H5.2L11%2016H-11l5.8-10H-8L-3.6-3H-6z%22/%3E%3Crect%20x=%22-1.2%22%20y=%2215%22%20width=%222.4%22%20height=%224%22/%3E%3C/g%3E%3Cg%20transform=%22translate%2828%20118%29%22%3E%3Cpath%20d=%22M0-7v14M-6-3.5%206%203.5M-6%203.5%206-3.5%22/%3E%3C/g%3E%3Cg%20transform=%22translate%28132%20108%29%22%3E%3Cpath%20d=%22M0-7v14M-6-3.5%206%203.5M-6%203.5%206-3.5%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
body[data-view="holiday"].theme-easter { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22160%22%20height=%22160%22%20viewBox=%220%200%20160%20160%22%3E%3Cg%20opacity=%220.2%22%3E%3Cg%20fill=%22none%22%20stroke=%22%235a4a80%22%20stroke-width=%221.2%22%3E%3Cellipse%20cx=%2232%22%20cy=%2236%22%20rx=%228%22%20ry=%2211%22/%3E%3Cpath%20d=%22M26%2036c2-2%204-2%206%200s4%202%206%200%22/%3E%3C/g%3E%3Cg%20fill=%22none%22%20stroke=%22%232f6f5e%22%20stroke-width=%221.2%22%20transform=%22translate%28108%2028%29%22%3E%3Cpath%20d=%22M0%2010c2.4-5%206-6.5%206-11%200-3-2.4-5-4.4-5S-2.6-4-2.6%200c0%204%203.6%206%206%2011z%22/%3E%3Cpath%20d=%22M0%2010v10%22/%3E%3Cpath%20d=%22M0%2016c-4%201-6%205-6%208%22/%3E%3C/g%3E%3Cg%20fill=%22none%22%20stroke=%22%23c47a8a%22%20stroke-width=%221.2%22%3E%3Cellipse%20cx=%2286%22%20cy=%22110%22%20rx=%228%22%20ry=%2211%22/%3E%3Cpath%20d=%22M80%20110c2-2%204-2%206%200s4%202%206%200%22/%3E%3C/g%3E%3Cg%20fill=%22none%22%20stroke=%22%23d4b24a%22%20stroke-width=%221.2%22%20transform=%22translate%2830%20118%29%22%3E%3Cpath%20d=%22M0%208c2.2-4%205.4-6%205.4-10%200-2.6-2-4.4-3.8-4.4S-2%204.6-2%207.2c0%203.4%203.2%205.2%205.4%2010z%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
body[data-view="holiday"].theme-halloween { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22160%22%20height=%22160%22%20viewBox=%220%200%20160%20160%22%3E%3Cg%20fill=%22%231c1224%22%20opacity=%220.14%22%3E%3Cpath%20d=%22M28%2034c4-6%2010-8%2014-6-2%204-2%207%200%2010%204-2%2010-1%2014%206-6-1-10%201-14%205-4-4-8-6-14-5%202-3%202-6%200-10z%22/%3E%3Cpath%20d=%22M112%2044c3-5%208-6%2011-5-1.5%203-1.5%205.5%200%208%203-1.5%208-1%2011%205-5-1-8%201-11%204-3-3-6.5-5-11-4%201.5-2.5%201.5-5%200-8z%22/%3E%3Cellipse%20cx=%2240%22%20cy=%22116%22%20rx=%2211%22%20ry=%228%22/%3E%3Crect%20x=%2238%22%20y=%22104%22%20width=%224%22%20height=%228%22%20rx=%221%22/%3E%3Cpath%20d=%22M118%20118c3-4%208-5%2011-3-2%203-1%206%201%208%203-2%208-1%2011%205-5%200-8%202-11%205-3-3-7-4-12-3%202-3%202-6%200-12z%22/%3E%3C/g%3E%3C/svg%3E"); }
body[data-view="holiday"].theme-thanksgiving { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22160%22%20height=%22160%22%20viewBox=%220%200%20160%20160%22%3E%3Cg%20fill=%22%237a2a1d%22%20opacity=%220.14%22%3E%3Cpath%20transform=%22translate%2830%2028%29%20scale%28.7%29%22%20d=%22M12%202l2%204.6%204.2-2.2-1%204.6%204.6.2-3.6%203.2%202.4%203.6-4.6-.8L16.2%2020H7.8l.6-4.4-4.6.8%202.4-3.6L2.6%209.6l4.6-.2-1-4.6L10.4%207z%22/%3E%3Cpath%20transform=%22translate%28100%2046%29%20scale%28.55%29%20rotate%2825%29%22%20d=%22M12%202l2%204.6%204.2-2.2-1%204.6%204.6.2-3.6%203.2%202.4%203.6-4.6-.8L16.2%2020H7.8l.6-4.4-4.6.8%202.4-3.6L2.6%209.6l4.6-.2-1-4.6L10.4%207z%22/%3E%3Cpath%20transform=%22translate%2848%20100%29%20scale%28.6%29%20rotate%28-20%29%22%20d=%22M12%202l2%204.6%204.2-2.2-1%204.6%204.6.2-3.6%203.2%202.4%203.6-4.6-.8L16.2%2020H7.8l.6-4.4-4.6.8%202.4-3.6L2.6%209.6l4.6-.2-1-4.6L10.4%207z%22/%3E%3Cpath%20transform=%22translate%28118%20112%29%20scale%28.5%29%22%20d=%22M12%202l2%204.6%204.2-2.2-1%204.6%204.6.2-3.6%203.2%202.4%203.6-4.6-.8L16.2%2020H7.8l.6-4.4-4.6.8%202.4-3.6L2.6%209.6l4.6-.2-1-4.6L10.4%207z%22/%3E%3C/g%3E%3C/svg%3E"); }
body[data-view="holiday"].theme-thanksgivingUs { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22160%22%20height=%22160%22%20viewBox=%220%200%20160%20160%22%3E%3Cg%20fill=%22none%22%20stroke=%22%235c3518%22%20stroke-width=%221.15%22%20opacity=%220.18%22%3E%3Cpath%20d=%22M34%2024c8%208%2010%2018%208%2028M28%2032c8%206%2012%2016%2010%2024M40%2030c6%208%208%2016%206%2024%22/%3E%3Cellipse%20cx=%22112%22%20cy=%2240%22%20rx=%2210%22%20ry=%227%22/%3E%3Cpath%20d=%22M102%2040h20M112%2033v14%22/%3E%3Cpath%20d=%22M36%20112c2-8%208-12%2012-12%203%200%205%203%205%206%200%208-8%2012-17%2016%22/%3E%3Cpath%20d=%22M118%20108c8%208%2010%2018%208%2028M112%20116c8%206%2012%2016%2010%2024%22/%3E%3C/g%3E%3C/svg%3E"); }
body[data-view="holiday"].theme-valentine { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22160%22%20height=%22160%22%20viewBox=%220%200%20160%20160%22%3E%3Cg%20fill=%22%237a2434%22%20opacity=%220.12%22%3E%3Cpath%20d=%22M32%2028c-3.8-4.2-10-3.4-12.4%201.6-2.4%205%201.2%2010.4%2012.4%2017.4%2011.2-7%2014.8-12.4%2012.4-17.4C42%2024.6%2035.8%2023.8%2032%2028z%22/%3E%3Cpath%20d=%22M108%2044c-2.6-3-7-2.4-8.6%201.2-1.7%203.6.8%207.4%208.6%2012.4%207.8-5%2010.3-8.8%208.6-12.4-1.6-3.6-6-4.2-8.6-1.2z%22/%3E%3Cpath%20d=%22M48%20112c-3.8-4.2-10-3.4-12.4%201.6-2.4%205%201.2%2010.4%2012.4%2017.4%2011.2-7%2014.8-12.4%2012.4-17.4C58%20108.6%2051.8%20107.8%2048%20112z%22/%3E%3Cpath%20d=%22M124%20116c-2.6-3-7-2.4-8.6%201.2-1.7%203.6.8%207.4%208.6%2012.4%207.8-5%2010.3-8.8%208.6-12.4-1.6-3.6-6-4.2-8.6-1.2z%22/%3E%3C/g%3E%3C/svg%3E"); }

body[data-view="holiday"].theme-birthdays {
  background-color: var(--page-tint);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22160%22%20height=%22160%22%20viewBox=%220%200%20160%20160%22%3E%3Ccircle%20cx=%2222%22%20cy=%2224%22%20r=%229%22%20fill=%22%23f6b7ce%22%20fill-opacity=%220.85%22/%3E%3Ccircle%20cx=%2280%22%20cy=%2216%22%20r=%227%22%20fill=%22%23f0ce4a%22%20fill-opacity=%220.8%22/%3E%3Ccircle%20cx=%22132%22%20cy=%2230%22%20r=%228%22%20fill=%22%239ee0c0%22%20fill-opacity=%220.8%22/%3E%3Ccircle%20cx=%2250%22%20cy=%2268%22%20r=%228%22%20fill=%22%23d2c0f0%22%20fill-opacity=%220.8%22/%3E%3Ccircle%20cx=%22112%22%20cy=%2276%22%20r=%2210%22%20fill=%22%23f7c08a%22%20fill-opacity=%220.85%22/%3E%3Ccircle%20cx=%2222%22%20cy=%22120%22%20r=%228%22%20fill=%22%238ec4e8%22%20fill-opacity=%220.75%22/%3E%3Ccircle%20cx=%2290%22%20cy=%22126%22%20r=%229%22%20fill=%22%23ffffff%22%20fill-opacity=%220.95%22/%3E%3Ccircle%20cx=%22148%22%20cy=%22108%22%20r=%226%22%20fill=%22%23f6b7ce%22%20fill-opacity=%220.85%22/%3E%3Ccircle%20cx=%2260%22%20cy=%2238%22%20r=%225%22%20fill=%22%238ec4e8%22%20fill-opacity=%220.75%22/%3E%3Ccircle%20cx=%22142%22%20cy=%2266%22%20r=%225%22%20fill=%22%23f0ce4a%22%20fill-opacity=%220.8%22/%3E%3Ccircle%20cx=%2210%22%20cy=%2276%22%20r=%225%22%20fill=%22%23ffffff%22%20fill-opacity=%220.95%22/%3E%3Ccircle%20cx=%2272%22%20cy=%22152%22%20r=%226%22%20fill=%22%239ee0c0%22%20fill-opacity=%220.8%22/%3E%3Ccircle%20cx=%22154%22%20cy=%22152%22%20r=%227%22%20fill=%22%23d2c0f0%22%20fill-opacity=%220.8%22/%3E%3Ccircle%20cx=%2238%22%20cy=%22148%22%20r=%225%22%20fill=%22%23f7c08a%22%20fill-opacity=%220.85%22/%3E%3Ccircle%20cx=%22118%22%20cy=%22148%22%20r=%225%22%20fill=%22%23f6b7ce%22%20fill-opacity=%220.8%22/%3E%3Ccircle%20cx=%2296%22%20cy=%2252%22%20r=%226%22%20fill=%22%23ffffff%22%20fill-opacity=%220.9%22/%3E%3Ccircle%20cx=%224%22%20cy=%2250%22%20r=%226%22%20fill=%22%23f7c08a%22%20fill-opacity=%220.85%22/%3E%3Ccircle%20cx=%22128%22%20cy=%228%22%20r=%225%22%20fill=%22%23d2c0f0%22%20fill-opacity=%220.8%22/%3E%3Ccircle%20cx=%2270%22%20cy=%2296%22%20r=%226%22%20fill=%22%239ee0c0%22%20fill-opacity=%220.8%22/%3E%3Ccircle%20cx=%2248%22%20cy=%22100%22%20r=%226%22%20fill=%22%238ec4e8%22%20fill-opacity=%220.75%22/%3E%3C/svg%3E");
  background-size: 160px 160px;
  background-position: 0 0;
  background-repeat: repeat;
}

/* Keep chrome and content cards solid so patterns never sit behind text */
body[data-view="holiday"] .toptabs,
body[data-view="holiday"] .toptabs::before,
body[data-view="holiday"] .app-header,
body[data-view="holiday"] .card,
body[data-view="holiday"] .banner,
body[data-view="holiday"] .toast,
body[data-view="holiday"] .sheet,
body[data-view="holiday"] .overlay,
body[data-view="holiday"] .lightbox {
  background-image: none;
}
body[data-view="holiday"] .toptabs {
  background-color: var(--cream);
}

/* A single holiday motif on section headings and empty states — light, not busy */
body[data-view="holiday"] .tab-panel h2::before {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.4em;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask: var(--theme-mark) center / contain no-repeat;
  mask: var(--theme-mark) center / contain no-repeat;
}
body[data-view="holiday"] .card.empty::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  background-color: var(--forest);
  opacity: 0.4;
  -webkit-mask: var(--theme-mark) center / contain no-repeat;
  mask: var(--theme-mark) center / contain no-repeat;
}


/* ---------- Batch 2: people, birthdays, gift ideas, plans, Thanksgiving choice ---------- */
.check-field { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: -4px 0 12px; font-size: 14px; font-weight: 600; }
.check-field input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--forest); }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.sheet-actions .danger, .sheet-actions button.danger { color: var(--danger); }
.bday-line { display: flex; gap: 6px; align-items: baseline; margin: 6px 0 0; font-size: 13px; color: var(--ink); }
.bday-line strong { color: var(--cranberry); font-weight: 700; }
.bday-icon { flex: 0 0 auto; }
.fav-line { overflow-wrap: anywhere; }
.person-notes { margin: 6px 0 0; font-style: italic; }
.idea-link { margin: 4px 0 0; }
.idea-link .linkish { min-height: 44px; padding: 4px 0; font-weight: 650; }
.empty-people { padding: 24px 16px; }
.empty-people .empty-title { font-family: inherit; font-size: 1.15rem; font-weight: 750; color: var(--forest); margin: 0 0 6px; }
.empty-people button { margin-top: 12px; min-height: 48px; min-width: 180px; }
.bday-banner { background: #fff4d6; border: 1px solid var(--gold); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; color: var(--ink); }
.bday-banner .eyebrow { margin: 0 0 4px; }
.bday-banner ul { margin: 0 0 6px; padding-left: 18px; font-size: 14px; }
.bday-banner li { margin: 2px 0; }
.bday-card .bday-count { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.bday-card .bday-count .num { font-size: 1.9rem; font-weight: 800; color: var(--forest); line-height: 1; }
.bday-card .bday-count .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.bday-card.today { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow); }
.bday-missing { padding: 6px 0; border-top: 1px solid #eee4d2; }
.bday-missing:first-child { border-top: 0; }
.notify-card .mini { margin-top: 4px; }
.tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--cranberry); color: #fff; font-size: 11px; font-weight: 800; }
.tile-badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(255, 244, 214, .95); color: var(--ink); border-radius: 99px; padding: 4px 9px; font-size: 12px; font-weight: 750; }
.region-card .chip-row { gap: 8px; }
.region-chip { min-height: 44px; }
.plan-card h3 { margin: 0; }
.plan-card.done { opacity: .7; }
.plan-card.done h3 { text-decoration: line-through; }
.plan-when { margin: 6px 0 0; font-weight: 700; color: var(--cranberry); font-size: 14px; }
.plan-line { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.plan-line .lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-right: 4px; }
.grocery-row { align-items: center !important; }
.grocery-row label { flex: 1 1 auto; }
.grocery-row .mini { flex: 0 0 auto; }
.task-row { grid-template-columns: 28px 1fr auto; align-items: center; }
.totals-card > .row { margin-bottom: 8px; }
.wish-item.no-photo { grid-template-columns: 1fr; }
.person-card .bday-line { margin-bottom: 4px; }

/* ---------- Batch 3: Boo Basket + Stocking Stuffers ---------- */
.little-list { list-style: none; margin: 8px 0 0; padding: 0; }
.little-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.little-item:first-child { border-top: 0; }
.little-item.idea { grid-template-columns: 1fr auto; }
.little-item input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--forest); }
.little-item.done .todo-title { text-decoration: line-through; opacity: .7; }
.little-body { min-width: 0; overflow-wrap: anywhere; }
.little-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.little-actions .mini { margin: 0; }
.little-empty { margin: 8px 0 0; }
.little-table td:nth-child(2) { text-align: center; }
.check-inline { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.check-inline input { width: 20px !important; min-height: 20px !important; accent-color: var(--forest); }
.fill-my-stocking { background: linear-gradient(160deg, #fff4f1 0%, var(--paper) 70%); border: 1px solid #ecc9c2; }
.fill-my-stocking h3 { margin: 2px 0 6px; color: var(--cranberry); }
.fill-my-stocking .send-stocking-btn { width: 100%; min-height: 48px; font-size: 16px; margin: 6px 0 4px; }
.fill-my-stocking .small { font-size: 12px; margin-top: 4px; }
.whos-who { margin-top: 10px; }
.person-type.me-tag { background: #fbe3df; color: var(--cranberry); }
.person-type.spouse-tag { background: #f3ead6; color: #7a5a16; }
.stocking-card h3, .basket-card h3 { overflow-wrap: anywhere; }
a.button-link.primary { background: var(--forest); color: #fff; border-color: var(--forest); }
