/* Advent with Friends: cream paper, forest ink, ribbon red and antique gold. */

:root {
  --cream: #fbf6eb;
  --cream-2: #f6edd9;
  --paper: #fffdf7;
  --ink: #17382f;
  --ink-soft: #3f574d;
  --muted: #6c7b71;
  --muted-2: #8a978d;
  --forest: #17382f;
  --forest-2: #1f4a3c;
  --forest-3: #28543f;
  --red: #b8463c;
  --red-2: #9c352d;
  --gold: #c9a45f;
  --gold-2: #d7b568;
  --gold-3: #e8d3a0;
  --line: #e6ddca;
  --line-strong: #d8cbae;
  --shadow: 0 24px 60px -34px rgba(23, 56, 47, 0.4);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --theme-paper: #fffdf7;
  --theme-halo: #f7efda;
  --theme-ribbon: #b8463c;
  --theme-accent: #28543f;
  --theme-gold: #d7b568;
}

body[data-theme="pine"] {
  --theme-paper: #fffdf7;
  --theme-halo: #f4f0da;
  --theme-ribbon: #b8463c;
  --theme-accent: #28543f;
  --theme-gold: #d7b568;
}

body[data-theme="dawn"] {
  --theme-paper: #fff9ee;
  --theme-halo: #f8ead3;
  --theme-ribbon: #a86f49;
  --theme-accent: #7a4a2c;
  --theme-gold: #e0b877;
}

body[data-theme="midnight"] {
  --theme-paper: #f9fcfc;
  --theme-halo: #eaf1f3;
  --theme-ribbon: #547889;
  --theme-accent: #2f4a56;
  --theme-gold: #a9c4cd;
}

.calendar-card[data-theme="pine"] {
  --theme-paper: #fffdf7;
  --theme-halo: #f4f0da;
  --theme-ribbon: #b8463c;
  --theme-accent: #28543f;
  --theme-gold: #d7b568;
}

.calendar-card[data-theme="dawn"] {
  --theme-paper: #fff9ee;
  --theme-halo: #f8ead3;
  --theme-ribbon: #a86f49;
  --theme-accent: #7a4a2c;
  --theme-gold: #e0b877;
}

.calendar-card[data-theme="midnight"] {
  --theme-paper: #f9fcfc;
  --theme-halo: #eaf1f3;
  --theme-ribbon: #547889;
  --theme-accent: #2f4a56;
  --theme-gold: #a9c4cd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--forest);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--forest-3);
  outline-offset: 2px;
}

.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;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* ---------- top strip and header ---------- */

.topline {
  background: var(--forest);
  color: #f1e6cd;
  text-align: center;
  padding: 8px 16px;
  font-size: 12.5px;
  letter-spacing: 0.055em;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 235, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--forest);
  color: var(--gold-2);
  font-size: 15px;
  line-height: 1;
  flex: none;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 26px);
}

.navlinks a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}

.navlinks a:hover {
  color: var(--red);
  border-color: rgba(184, 70, 60, 0.55);
}

.music-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 247, 0.65);
  color: var(--forest);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.14s;
  -webkit-tap-highlight-color: transparent;
}

.music-toggle:hover {
  border-color: var(--forest-3);
}

.music-toggle:active {
  transform: scale(0.95);
}

.music-toggle.is-on {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--gold-2);
}

.music-toggle .music-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-2);
  opacity: 0;
  transition: opacity 0.2s;
}

.music-toggle.is-on .music-dot {
  opacity: 1;
  animation: music-pulse 1.8s ease-in-out infinite;
}

@keyframes music-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.5); opacity: 0.45; }
}

/* ---------- buttons and fields ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--forest);
  color: #fdf7e9;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover:not(:disabled) {
  background: var(--forest-2);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.small,
.btn-small {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 13px;
  border-radius: 9px;
}

.btn.dark {
  background: var(--forest);
}

.btn.outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--forest);
}

.btn.outline:hover:not(:disabled) {
  border-color: var(--forest-3);
  background: rgba(40, 84, 63, 0.06);
}

.btn-primary {
  background: var(--forest);
  color: #fdf7e9;
}

.btn-primary:hover:not(:disabled) {
  background: var(--forest-2);
}

.btn-secondary {
  background: var(--forest-2);
  color: #fdf7e9;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--forest);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--forest);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--forest-3);
  background: rgba(40, 84, 63, 0.06);
}

.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 8px 6px;
  min-height: 0;
}

.btn-quiet:hover:not(:disabled) {
  background: transparent;
  color: var(--red);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: var(--red-2);
}

.btn-wide {
  width: 100%;
}

.field {
  display: grid;
  gap: 5px;
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  min-width: 0;
}

.field > span,
.field > label,
.field legend {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}

.field small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted-2);
}

.field input[type="text"],
.field input[type="date"],
.field input[type="url"],
.field textarea,
.field select,
.find-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.find-form input:focus {
  border-color: var(--forest-3);
  box-shadow: 0 0 0 3px rgba(40, 84, 63, 0.13);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a3a08f;
}

.form-error {
  margin: 2px 0 10px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid #e5b1a2;
  background: #fbeae4;
  color: #8d3a2a;
  font-size: 13px;
}

.fine-print {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.55;
}

/* Wrapping-style chips (shared by owner dashboard and hero preview) */

.theme-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.theme {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fffdf7;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.theme[aria-pressed="true"] {
  border-color: var(--forest-3);
  background: #f1f6f0;
  color: var(--forest);
  box-shadow: 0 0 0 2px rgba(40, 84, 63, 0.13);
}

.theme-dots {
  display: inline-flex;
  gap: 2.5px;
  flex: none;
}

.theme-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 40px;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(44, 90, 68, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(216, 179, 108, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(53, 108, 86, 0.12), transparent 60%),
    linear-gradient(180deg, #f3ecda 0%, #fbf6eb 55%, #f6f1e4 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  background-image:
    radial-gradient(#fff 1.2px, transparent 1.6px),
    radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1.4px),
    radial-gradient(rgba(216, 179, 108, 0.35) 1px, transparent 1.4px);
  background-size: 120px 120px, 90px 90px, 150px 150px;
  background-position: 10px 20px, 50px 60px, 30px 80px;
  animation: snowdrift 14s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  z-index: 0;
  background-image: radial-gradient(#a98d5a 1px, transparent 1px);
  background-size: 24px 24px;
}

@keyframes snowdrift {
  from { background-position: 10px 20px, 50px 60px, 30px 80px; }
  to { background-position: 10px 150px, 50px 160px, 30px 180px; }
}

.hero .wrap {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin: auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero .bauble {
  position: absolute;
  border-radius: 50%;
  box-shadow:
    inset -3px -4px 6px rgba(0, 0, 0, 0.22),
    inset 3px 4px 6px rgba(255, 255, 255, 0.25),
    0 6px 12px rgba(60, 40, 20, 0.18);
}

.hero .bauble::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 2px;
  height: 7px;
  background: #8a6d3b;
}

.hero .bauble::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 22%;
  width: 26%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(0.5px);
}

.hero .b1 {
  width: 34px;
  height: 34px;
  top: 28px;
  left: 3.5%;
  background: radial-gradient(circle at 35% 30%, #d96a5e, #a83e37);
}

.hero .b2 {
  width: 26px;
  height: 26px;
  top: 70px;
  left: 8%;
  background: radial-gradient(circle at 35% 30%, #e3c276, #bd9350);
}

.hero .b3 {
  width: 30px;
  height: 30px;
  top: 32px;
  right: 4%;
  background: radial-gradient(circle at 35% 30%, #4a8a6c, #24523f);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid #d8e6d4;
  background: #eef3e7;
  color: #3d654b;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(185, 71, 62, 0.18);
}

.hero .season-note {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  color: #7b7868;
}

.hero .hero-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
  align-items: stretch;
}

.hero .intro {
  padding: 8px 10px 8px 0;
}

.hero .intro h1 {
  max-width: 530px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--forest);
}

.hero .intro h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 13px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--gold-2));
}

.hero .intro > p {
  max-width: 510px;
  margin: 0 0 13px;
  color: #657168;
  font-size: 0.95rem;
  line-height: 1.65;
}

.hero .quick-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.hero .quick-points span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #e6dcc2;
  border-radius: 99px;
  background: #fff;
  color: #4f6156;
  font-size: 0.75rem;
  font-weight: 750;
  box-shadow: 0 2px 5px rgba(60, 45, 20, 0.07);
}

.hero .quick-points span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--red);
  font-size: inherit;
  font-weight: 900;
}

.hero .createbox {
  position: relative;
  max-width: 480px;
  margin-top: 0;
  padding: 18px 18px 15px;
  border: 1px solid #e5dccb;
  border-radius: 19px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 14px 32px rgba(36, 60, 46, 0.12);
}

.hero .createbox::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--red), var(--gold-2), #3f7a5e, var(--red));
}

.hero .createbox::after {
  content: none;
}

.hero .createhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.hero .createhead strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: normal;
  color: var(--forest);
}

.hero .freepill {
  flex: none;
  padding: 4px 9px;
  border: 0;
  border-radius: 99px;
  background: #e8f0e5;
  color: #3d654b;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
}

.hero .formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero .field {
  display: block;
  margin: 0;
  min-width: 0;
}

.hero .field > label {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  color: #536258;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.hero .field input,
.hero .field select {
  width: 100%;
  min-height: 0;
  height: 39px;
  padding: 7px 10px;
  border: 1px solid #ded8c9;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 0.83rem;
}

.hero .theme-picker {
  display: flex;
  gap: 7px;
  margin: 10px 0;
}

.hero .theme {
  flex: 1;
  display: block;
  padding: 7px 5px;
  border: 1px solid #e3dac9;
  border-radius: 9px;
  background: #fff;
  color: #4e5c51;
  font-size: 0.71rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.hero .theme[aria-pressed="true"] {
  padding: 6px 4px;
  border: 2px solid var(--forest-2);
  background: #f1f6ed;
  box-shadow: none;
}

.hero .theme-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 4px;
}

.hero .theme-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.hero .create-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 0;
  flex-wrap: nowrap;
}

.hero .create-actions .btn {
  flex: 1;
  min-height: 41px;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 850;
  box-shadow: 0 7px 17px rgba(185, 71, 62, 0.14);
}

.hero .create-actions .btn:hover:not(:disabled) {
  background: var(--red-2);
  transform: translateY(-1px);
}

.hero .create-note {
  margin: 6px 0 0;
  color: #7b8278;
  font-size: 0.68rem;
}

.hero .demo-alert {
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: #8b6940;
  font-size: 0.68rem;
  line-height: 1.5;
}

.hero .returning-line {
  margin-top: 8px;
  color: #8b8377;
  font-size: 0.68rem;
}

.linklike {
  border: 0;
  padding: 0;
  background: none;
  color: var(--red);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.linklike:hover {
  color: var(--red-2);
}

/* hero calendar card */

.hero .calendar-card {
  --hero-card-bg: #fbf3e2;
  --hero-bough-1: #2c5a44;
  --hero-bough-2: #1c402f;
  --hero-bough-line: #14301f;
  --hero-gift-red-1: #c65a4e;
  --hero-gift-red-2: #a23d35;
  --hero-gift-green-1: #356b53;
  --hero-gift-green-2: #214a39;
  --hero-gift-green-line: #24523f;
  position: relative;
  border-radius: 24px;
  border: 1px solid #e2d3b2;
  padding: 0 17px 15px;
  background:
    radial-gradient(circle at 10% 4%, rgba(216, 179, 108, 0.14), transparent 30%),
    radial-gradient(circle at 92% 96%, rgba(53, 108, 86, 0.14), transparent 34%),
    var(--hero-card-bg);
  box-shadow:
    0 26px 60px rgba(24, 49, 39, 0.18),
    inset 0 1px 0 #fff;
  overflow: hidden;
}

.hero .calendar-card[data-theme="dawn"] {
  --hero-card-bg: #fbf1e0;
  --hero-bough-1: #4d4a2d;
  --hero-bough-2: #33321c;
  --hero-bough-line: #262617;
  --hero-gift-red-1: #b57a4e;
  --hero-gift-red-2: #8d5731;
  --hero-gift-green-1: #8a613c;
  --hero-gift-green-2: #64452a;
  --hero-gift-green-line: #6b4a2c;
}

.hero .calendar-card[data-theme="midnight"] {
  --hero-card-bg: #f3f7f7;
  --hero-bough-1: #2e5561;
  --hero-bough-2: #1f3d47;
  --hero-bough-line: #17323a;
  --hero-gift-red-1: #7d9aa4;
  --hero-gift-red-2: #5a7883;
  --hero-gift-green-1: #3f6d7a;
  --hero-gift-green-2: #2c505b;
  --hero-gift-green-line: #2f5b67;
}

.hero .calendar-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed #d3bd8d;
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
}

.hero .cal-bough {
  position: relative;
  z-index: 1;
  margin: 0 -17px 14px;
  padding: 14px 17px 17px;
  border-bottom: 1px solid var(--hero-bough-line);
  border-radius: 23px 23px 0 0;
  background:
    radial-gradient(circle at 12% 62%, #3f7a5e 2px, transparent 3px),
    radial-gradient(circle at 30% 30%, #2f6550 2px, transparent 3px),
    radial-gradient(circle at 52% 70%, #3f7a5e 2px, transparent 3px),
    radial-gradient(circle at 74% 35%, #2f6550 2px, transparent 3px),
    radial-gradient(circle at 90% 62%, #3f7a5e 2px, transparent 3px),
    linear-gradient(180deg, var(--hero-bough-1), var(--hero-bough-2));
}

.hero .cal-bough::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  border-radius: 23px 23px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

.hero .lights {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 6px;
}

.hero .lights i {
  position: relative;
  width: 8px;
  height: 11px;
  border-radius: 50% 50% 55% 55%;
  background: #f0c568;
  box-shadow: 0 0 10px 3px rgba(240, 197, 104, 0.55);
}

.hero .lights i::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 1px;
  height: 7px;
  background: #0e2a1d;
}

.hero .lights i:nth-child(2n) {
  background: #cf5a4e;
  box-shadow: 0 0 10px 3px rgba(207, 90, 78, 0.5);
}

.hero .lights i:nth-child(3n) {
  background: #7fb89a;
  box-shadow: 0 0 10px 3px rgba(127, 184, 154, 0.5);
}

.hero .cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.hero .cal-title {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.01em;
  line-height: normal;
}

.hero .cal-sub {
  margin-top: 2px;
  font-size: 0.7rem;
  line-height: 1.65;
  color: #7a7c6d;
}

.hero .cal-tree {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid #dbe6d3;
  border-radius: 13px;
  background: #eef3e7;
  font-size: 1.35rem;
}

.hero .statusline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative;
  z-index: 1;
  margin: 0 0 11px;
}

.hero .stat {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e7dcc2;
  border-radius: 12px;
  background: #f3ecdb;
  text-align: center;
  box-shadow: inset 0 1px 0 #fff;
}

.hero .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
}

.hero .stat span {
  display: inline;
  margin-top: 0;
  font-size: 0.62rem;
  line-height: 1.65;
  color: #6d756b;
}

.hero .progress {
  position: relative;
  z-index: 1;
  height: 7px;
  margin: 0 0 12px;
  border-radius: 99px;
  background: #eadfc6;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(120, 90, 40, 0.18);
}

.hero .progress span {
  display: block;
  width: 4.166%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #b94b40, #d5aa59);
  box-shadow: 0 0 6px rgba(213, 170, 89, 0.6);
}

.hero .gift-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  position: relative;
  z-index: 1;
}

.hero .gift {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1.14;
  padding: 0;
  border: 1px solid rgba(90, 55, 30, 0.22);
  border-radius: 7px 7px 15px 15px;
  background: linear-gradient(160deg, var(--hero-gift-red-1, #c65a4e), var(--hero-gift-red-2, #a23d35));
  color: #fff4e2;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow:
    inset 0 -7px 12px rgba(60, 25, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 3px 6px rgba(70, 50, 25, 0.18);
  outline: 1.5px dashed rgba(255, 240, 214, 0.5);
  outline-offset: -7px;
  transition: transform 0.18s, filter 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.hero .gift::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 6px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
}

.hero .gift::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 14px;
  height: 8px;
  transform: translateX(-50%);
  background: #f0d68f;
  border: 1px solid rgba(120, 88, 30, 0.25);
  border-radius: 3px 3px 0 0;
}

.hero .gift .num {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(120, 72, 40, 0.18);
  border-radius: 50%;
  background: #fbf3e2;
  color: #7a352d;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(60, 35, 15, 0.25), inset 0 1px 0 #fff;
}

.hero .gift .bow {
  display: none;
}

.hero .gift:nth-child(3n) {
  background: linear-gradient(160deg, #d3ab63, #b0883f);
  border-color: rgba(110, 80, 25, 0.22);
}

.hero .gift:nth-child(3n) .num {
  color: #6b5226;
}

.hero .gift:nth-child(4n) {
  background: linear-gradient(160deg, var(--hero-gift-green-1, #356b53), var(--hero-gift-green-2, #214a39));
  border-color: var(--hero-gift-green-line, #24523f);
}

.hero .gift:nth-child(4n) .num {
  color: #214a39;
}

.hero .gift.filled {
  background: linear-gradient(165deg, #f6e7c4, #e6cd95);
  border-color: #c9a866;
  outline-color: rgba(120, 88, 30, 0.32);
}

.hero .gift.filled::before {
  content: "";
  position: absolute;
  top: 17%;
  left: 24%;
  right: 24%;
  height: 50%;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 42%, #f0d68f 42%, #f0d68f 58%, transparent 58%),
    linear-gradient(180deg, transparent 40%, #f0d68f 40%, #f0d68f 60%, transparent 60%),
    linear-gradient(160deg, #c8564b, #a83e37);
  box-shadow: 0 2px 5px rgba(80, 45, 20, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero .gift.filled::after {
  content: "";
  position: absolute;
  top: 13%;
  left: 50%;
  width: 16px;
  height: 9px;
  transform: translateX(-50%) rotate(-18deg);
  background: transparent;
  border: 2px solid #f7e2a6;
  border-radius: 100% 0 100% 0;
}

.hero .gift.filled .num {
  width: 18px;
  height: 18px;
  font-size: 0.6rem;
  color: #7a352d;
  background: #fff6e3;
}

.hero .gift:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 -7px 12px rgba(60, 25, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 15px rgba(70, 50, 25, 0.22);
}

.hero .gift:focus-visible {
  outline: 2px solid var(--forest-3);
  outline-offset: 2px;
}

.hero .gift .tiny-sticker {
  position: absolute;
  right: 4px;
  top: 6px;
  z-index: 4;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 400;
}

.hero .gift-label {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 5px;
  z-index: 4;
  padding: 1px 3px;
  border-radius: 5px;
  background: rgba(255, 248, 228, 0.85);
  color: #5a4726;
  font-family: var(--sans);
  font-size: 0.5rem;
  font-weight: 800;
  text-align: center;
}

.hero .cal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  color: #6e756a;
}

.hero .activity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #dce6d3;
  border-radius: 12px;
  background: #eef3e7;
  color: #425b49;
  font-size: 0.74rem;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.hero .activity b {
  color: var(--forest);
}

.hero .avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(150deg, #e3bd78, #c99a4e);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero .sharebar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: none;
  position: relative;
  z-index: 1;
}

.hero .share-url {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #e2d9c8;
  border-radius: 10px;
  background: #fff;
  color: #647067;
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero .sharebar button {
  flex: none;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
  transition: 0.16s;
}

.hero .sharebar button:hover {
  background: #102a24;
}

.hero .demo-label {
  margin-top: 5px;
  color: #97866a;
  font-size: 0.58rem;
  font-style: normal;
  text-align: right;
  position: relative;
  z-index: 1;
}

@media (max-width: 920px) {
  .hero .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .hero .gift-grid {
    gap: 5px;
  }
  .hero .gift {
    font-size: 0.72rem;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 18px 0 25px;
  }
  .hero .wrap {
    width: calc(100% - 28px);
  }
  .hero-top {
    margin-bottom: 9px;
  }
  .hero .season-note {
    display: none;
  }
  .hero .b1,
  .hero .b2 {
    display: none;
  }
  .hero .b3 {
    width: 22px;
    height: 22px;
    top: 18px;
    right: 3%;
  }
  .hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero .intro {
    padding: 0;
  }
  .hero .intro > p {
    font-size: 0.87rem;
    margin-bottom: 8px;
  }
  .hero .intro h1 {
    font-size: 2rem;
    max-width: 100%;
    margin-bottom: 7px;
  }
  .hero .quick-points {
    margin: 8px 0 11px;
    font-size: 0.7rem;
    gap: 6px 11px;
  }
  .hero .createbox {
    padding: 12px;
  }
  .hero .calendar-card {
    padding: 0 12px 12px;
  }
  .hero .cal-title {
    font-size: 1rem;
  }
  .hero .cal-bough {
    margin: 0 -12px 11px;
    padding: 12px 12px 13px;
  }
  .hero .gift-grid {
    gap: 6px;
  }
  .hero .gift {
    font-size: 0.75rem;
  }
  .hero .gift .num {
    width: 23px;
    height: 23px;
    font-size: 0.72rem;
  }
  .hero .gift-label {
    font-size: 0.42rem;
  }
  .hero .statusline {
    gap: 5px;
  }
  .hero .stat {
    padding: 5px;
  }
  .hero .stat b {
    font-size: 0.9rem;
  }
}

@media (max-width: 390px) {
  .hero .formrow {
    grid-template-columns: 1fr;
  }
  .hero .gift-grid {
    gap: 4px;
  }
  .hero .gift {
    font-size: 0.68rem;
  }
  .hero .cal-footer {
    font-size: 0.58rem;
  }
}

/* ---------- sections ---------- */

.section {
  position: relative;
  padding: clamp(52px, 7.5vw, 88px) 0;
  scroll-margin-top: 84px;
}

body.modal-open {
  overflow: hidden;
}

.section.white {
  background: var(--paper);
}

.section.pale {
  background: var(--cream);
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.kicker::before {
  content: "✦ ";
  color: var(--gold);
  letter-spacing: 0;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  transition: transform 0.18s ease, box-shadow 0.18s, border-color 0.18s;
}

.section.pale .info-card {
  background: var(--paper);
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 36px -30px rgba(23, 56, 47, 0.5);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #eadfc6;
  background: #f6ecd8;
  font-size: 19px;
  line-height: 1;
}

.info-card h3 {
  margin-top: 12px;
  font-size: 17px;
}

.info-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* screenshot flow */

.screenshot-flow {
  display: grid;
  gap: clamp(34px, 5vw, 56px);
  max-width: 1000px;
  margin: 0 auto;
}

.screen-row {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
}

.screen-row:nth-child(even) .screen-copy {
  order: 2;
}

.step-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5864a;
}

.screen-copy h3 {
  font-size: clamp(21px, 2.4vw, 27px);
  margin-bottom: 10px;
}

.screen-copy > p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.screen-copy ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 7px;
}

.screen-copy li {
  position: relative;
  padding-left: 17px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.screen-copy li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 9px;
  color: var(--gold);
}

.screen-shot {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 26px 50px -32px rgba(23, 56, 47, 0.55);
  transform: rotate(-0.7deg);
  transition: transform 0.22s ease, box-shadow 0.22s;
}

.screen-row:nth-child(even) .screen-shot {
  transform: rotate(0.7deg);
}

.screen-shot:hover {
  transform: rotate(0);
  box-shadow: 0 30px 58px -32px rgba(23, 56, 47, 0.6);
}

.shot-top {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid #e6dac0;
  background: #f3ead8;
}

.shot-top i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8c9ac;
  flex: none;
}

.shot-url {
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: #9a8f76;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 900;
  object-fit: cover;
  object-position: top center;
  background: #f7f1e4;
}

/* ideas */

.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.idea {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}

.idea h3 {
  font-size: 16.5px;
}

.idea p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.example-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--gold-2);
  border-radius: 0 8px 8px 0;
  background: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.55;
  color: #5f5a45;
}

/* memories */

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.memory-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.memory-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  border: 1px solid #eadfc6;
  background: #f7eeda;
  font-size: 17px;
  line-height: 1;
}

.memory-card h3 {
  font-size: 15.5px;
  margin-top: 1px;
}

.memory-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.58;
}

.panel {
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
}

.panel h3 {
  font-size: 17px;
}

.panel > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
}

/* comments */

.comment-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.comment-intro h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.comment-intro p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 46ch;
}

.comment-intro p b {
  color: var(--ink-soft);
}

.comment-form {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 20px 44px -36px rgba(23, 56, 47, 0.55);
}

.comment-form label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.comment-form textarea {
  min-height: 108px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--forest-3);
  box-shadow: 0 0 0 3px rgba(40, 84, 63, 0.12);
}

.comment-form .btn {
  margin-top: 8px;
  justify-self: start;
}

.comment-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.comment {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 3px;
  background: var(--paper);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.comment b {
  color: var(--forest);
}

.comment a {
  color: #8c322a;
  text-underline-offset: 2px;
}

.comment-empty {
  border-style: dashed;
  background: var(--cream);
  color: var(--muted);
  font-size: 13px;
}

.form-note {
  margin: 9px 0 0;
  color: var(--forest-3);
  font-size: 12.5px;
  line-height: 1.55;
}

/* faq */

.faq {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--forest);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.2s;
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 2px 15px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* resources */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.resource {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s;
}

.resource b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest);
}

.resource span {
  font-size: 12px;
  color: var(--muted-2);
}

.resource:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

/* final call */

.final {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 88px) 0;
  background:
    radial-gradient(700px 340px at 50% -20%, rgba(215, 181, 104, 0.24), transparent 62%),
    radial-gradient(500px 280px at 8% 110%, rgba(184, 70, 60, 0.16), transparent 60%),
    var(--forest);
  text-align: center;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 40px 40px, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(1.2px 1.2px at 160px 90px, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(2px 2px at 260px 30px, rgba(255, 255, 255, 0.6), transparent 100%),
    radial-gradient(1.3px 1.3px at 360px 120px, rgba(255, 255, 255, 0.45), transparent 100%);
  background-size: 430px 180px;
}

.final .wrap {
  position: relative;
}

.final h2 {
  color: #fdf5e3;
  font-size: clamp(27px, 3.6vw, 40px);
}

.final p {
  margin: 12px auto 22px;
  max-width: 56ch;
  color: #c8d6cb;
  font-size: 14.5px;
  line-height: 1.65;
}

.final .btn {
  background: var(--gold-2);
  color: #2a2410;
}

.final .btn:hover:not(:disabled) {
  background: #e6c785;
}

/* ---------- footer ---------- */

#site-foot {
  background: #122e27;
  color: #b9c9bd;
  padding: 46px 0 26px;
}

.footgrid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1fr;
  gap: 30px;
}

#site-foot .brand {
  color: #fff;
  font-size: 17px;
}

#site-foot .brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
}

#site-foot .footgrid > div:first-child p {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.62;
  color: #94ab9e;
}

#site-foot h3 {
  color: #f2e7cf;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

#site-foot .footgrid a:not(.brand) {
  display: block;
  margin-top: 7px;
  color: #9fb3a6;
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.15s;
}

#site-foot .footgrid a:not(.brand):hover {
  color: var(--gold-2);
}

.copy {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 11px;
  color: #7f968a;
}

/* ---------- modal and toast ---------- */

.modalback {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 32, 27, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modalback.open {
  display: flex;
}

.modal {
  position: relative;
  width: min(400px, 100%);
  padding: 26px 24px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(10, 30, 24, 0.8);
  text-align: center;
}

.modal h3 {
  font-size: 21px;
}

.modal p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.modal .btn {
  width: 100%;
}

.modalclose {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modalclose:hover {
  color: var(--forest);
  background: var(--cream-2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 200;
  transform: translate(-50%, 16px);
  max-width: min(440px, calc(100vw - 32px));
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: var(--forest);
  color: #fdf5e3;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 18px 36px -18px rgba(10, 30, 24, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-on,
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- app shell ---------- */

#app[hidden] {
  display: none;
}

#app {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) clamp(16px, 4vw, 28px) 72px;
}

body.is-app {
  background: var(--cream);
}

body.is-app .topline,
body.is-app #landing,
body.is-app #site-foot,
body.is-app .navlinks {
  display: none;
}

body.is-app header {
  background: rgba(251, 246, 235, 0.95);
}

body.is-app .nav {
  min-height: 62px;
}

body.is-app .nav > .btn {
  display: none;
}

.page {
  animation: page-in 0.3s ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.page-head {
  max-width: 70ch;
  margin: 6px 0 26px;
}

.page-kicker {
  margin-bottom: 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5864a;
}

.page-kicker::before {
  content: "✦ ";
  color: var(--gold);
  letter-spacing: 0;
}

.page-title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.07;
}

.page-title em {
  font-style: italic;
  color: var(--red);
}

.page-sub {
  margin-top: 10px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.62;
}

.page-sub strong {
  color: var(--ink);
  font-weight: 600;
}

.page-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}

.page-foot a {
  color: var(--red);
  text-decoration: none;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.loading {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 40vh;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.loading .dots {
  display: flex;
  gap: 6px;
}

.loading .dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: dot-bounce 1s ease-in-out infinite;
}

.loading .dots span:nth-child(2) { animation-delay: 0.12s; }
.loading .dots span:nth-child(3) { animation-delay: 0.24s; }

@keyframes dot-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.empty-state {
  padding: 30px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
  color: var(--muted);
  text-align: center;
}

.notice {
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.notice.is-warm {
  border-color: rgba(201, 164, 95, 0.5);
  background: #fbf3e1;
  color: #8a6a34;
}

.notice.is-bad {
  border-color: #e3b8ac;
  background: #fbeae4;
  color: #8d3a2a;
}

/* ---------- shared calendar pages ---------- */

body.is-app:not(.view-manage) {
  background:
    radial-gradient(ellipse 60% 42% at 0% 0%, rgba(44, 90, 68, 0.12), transparent 60%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(216, 179, 108, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(53, 108, 86, 0.1), transparent 60%),
    linear-gradient(180deg, #f4eddc 0%, var(--cream) 55%, #f6f1e4 100%);
}

body.is-app:not(.view-manage)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(#fff 1.2px, transparent 1.6px),
    radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1.4px),
    radial-gradient(rgba(216, 179, 108, 0.35) 1px, transparent 1.4px);
  background-size: 120px 120px, 90px 90px, 150px 150px;
  background-position: 10px 20px, 50px 60px, 30px 80px;
}

body.is-app #app {
  position: relative;
  z-index: 1;
}

.cal-panel {
  --win-red-1: #c65a4e;
  --win-red-2: #a23d35;
  --win-green-1: #356b53;
  --win-green-2: #214a39;
  --win-green-line: #24523f;
  --bough-1: #1f4a3a;
  --bough-2: #123025;
  --bough-line: #0f2a20;
  --panel-bg: #fdf7e7;
  position: relative;
  padding: 0 clamp(12px, 2vw, 17px) 15px;
  border: 1px solid #e2d3b2;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 4%, rgba(216, 179, 108, 0.14), transparent 30%),
    radial-gradient(circle at 92% 96%, rgba(53, 108, 86, 0.14), transparent 34%),
    var(--panel-bg);
  box-shadow: 0 26px 60px rgba(24, 49, 39, 0.16), inset 0 1px 0 #fff;
  overflow: hidden;
}

.cal-panel[data-theme="dawn"] {
  --panel-bg: #fbf1e0;
  --win-red-1: #b57a4e;
  --win-red-2: #8d5731;
  --win-green-1: #8a613c;
  --win-green-2: #64452a;
  --win-green-line: #6b4a2c;
  --bough-1: #4d4a2d;
  --bough-2: #33321c;
  --bough-line: #262617;
}

.cal-panel[data-theme="midnight"] {
  --panel-bg: #f3f7f7;
  --win-red-1: #7d9aa4;
  --win-red-2: #5a7883;
  --win-green-1: #3f6d7a;
  --win-green-2: #2c505b;
  --win-green-line: #2f5b67;
  --bough-1: #2e5561;
  --bough-2: #1f3d47;
  --bough-line: #17323a;
}

.cal-panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed #d3bd8d;
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
}

.cal-bough {
  position: relative;
  z-index: 1;
  margin: 0 calc(-1 * clamp(12px, 2vw, 17px)) 14px;
  padding: 14px clamp(12px, 2vw, 17px) 17px;
  border-bottom: 1px solid var(--bough-line);
  border-radius: 23px 23px 0 0;
  background:
    radial-gradient(circle at 12% 62%, #3f7a5e 2px, transparent 3px),
    radial-gradient(circle at 30% 30%, #2f6550 2px, transparent 3px),
    radial-gradient(circle at 52% 70%, #3f7a5e 2px, transparent 3px),
    radial-gradient(circle at 74% 35%, #2f6550 2px, transparent 3px),
    radial-gradient(circle at 90% 62%, #3f7a5e 2px, transparent 3px),
    linear-gradient(180deg, var(--bough-1), var(--bough-2));
}

.cal-bough::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  border-radius: 23px 23px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

.cal-bough .lights {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 6px;
}

.cal-bough .lights i {
  position: relative;
  width: 8px;
  height: 11px;
  border-radius: 50% 50% 55% 55%;
  background: #f0c568;
  box-shadow: 0 0 10px 3px rgba(240, 197, 104, 0.55);
}

.cal-bough .lights i::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 1px;
  height: 7px;
  background: #0e2a1d;
}

.cal-bough .lights i:nth-child(2n) {
  background: #cf5a4e;
  box-shadow: 0 0 10px 3px rgba(207, 90, 78, 0.5);
}

.cal-bough .lights i:nth-child(3n) {
  background: #7fb89a;
  box-shadow: 0 0 10px 3px rgba(127, 184, 154, 0.5);
}

.cal-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cal-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--forest);
}

.cal-sub {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: #7a7c6d;
}

.cal-tree {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid #dbe6d3;
  border-radius: 13px;
  background: #eef3e7;
  font-size: 21px;
}

.cal-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 11px;
}

.cal-stat {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e7dcc2;
  border-radius: 12px;
  background: #f3ecdb;
  text-align: center;
  box-shadow: inset 0 1px 0 #fff;
}

.cal-stat b {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
}

.cal-stat span {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #6d756b;
}

.cal-progress {
  position: relative;
  z-index: 1;
  height: 7px;
  margin: 0 0 12px;
  border-radius: 99px;
  background: #eadfc6;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(120, 90, 40, 0.18);
}

.cal-progress span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #b94b40, #d5aa59);
  box-shadow: 0 0 6px rgba(213, 170, 89, 0.6);
  transition: width 0.25s ease;
}

.cal-panel .door-grid {
  position: relative;
  z-index: 1;
}

.cal-panel-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  font-size: 11px;
  color: #6e756a;
}

.calendar-page > .cal-panel {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.calendar-page .editor-card {
  border: 1px solid #e2d3b2;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 20px 50px rgba(24, 49, 39, 0.12);
}

.calendar-page .editor-card h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.calendar-page .btn {
  border-radius: 999px;
  font-weight: 800;
}

.calendar-page .btn-primary {
  background: var(--red);
  box-shadow: 0 7px 17px rgba(185, 71, 62, 0.16);
}

.calendar-page .btn-primary:hover:not(:disabled) {
  background: #943a33;
}

.calendar-page .btn-secondary {
  background: var(--forest);
}

.calendar-page .btn-ghost {
  background: #fff;
  border-color: #e8dfce;
}

/* ---------- gift doors ---------- */

.door-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}

.window {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1.14;
  padding: 0;
  border: 1px solid rgba(90, 55, 30, 0.22);
  border-radius: 7px 7px 15px 15px;
  background: linear-gradient(160deg, var(--win-red-1, #c65a4e), var(--win-red-2, #a23d35));
  color: #fff4e2;
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 800;
  box-shadow:
    inset 0 -7px 12px rgba(60, 25, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 3px 6px rgba(70, 50, 25, 0.18);
  outline: 1.5px dashed rgba(255, 240, 214, 0.5);
  outline-offset: -7px;
  transition: transform 0.18s, filter 0.18s, box-shadow 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 6px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.window::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 14px;
  height: 8px;
  transform: translateX(-50%);
  background: #f0d68f;
  border: 1px solid rgba(120, 88, 30, 0.25);
  border-radius: 3px 3px 0 0;
  pointer-events: none;
}

.window:nth-child(3n) {
  background: linear-gradient(160deg, #d3ab63, #b0883f);
  border-color: rgba(110, 80, 25, 0.22);
}

.window:nth-child(4n) {
  background: linear-gradient(160deg, var(--win-green-1, #356b53), var(--win-green-2, #214a39));
  border-color: var(--win-green-line, #24523f);
}

.window:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 -7px 12px rgba(60, 25, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 15px rgba(70, 50, 25, 0.22);
}

.window:focus-visible {
  outline: 2px solid var(--forest-3);
  outline-offset: 2px;
}

.window .win-frame {
  display: none;
}

.window .win-date {
  position: absolute;
  z-index: 3;
  top: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 247, 228, 0.8);
  text-shadow: 0 1px 1px rgba(60, 30, 15, 0.35);
}

.window:nth-child(3n) .win-date {
  color: rgba(90, 62, 20, 0.72);
  text-shadow: none;
}

.window .win-num {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(120, 72, 40, 0.18);
  border-radius: 50%;
  background: #fbf3e2;
  color: #7a352d;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(60, 35, 15, 0.25), inset 0 1px 0 #fff;
}

.window .win-badge {
  position: absolute;
  z-index: 4;
  bottom: 4px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--gold-2);
  color: #3a2c0e;
  font-size: 10px;
  font-weight: 800;
}

.window .win-lock {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 247, 228, 0.75);
}

.window .win-lock svg {
  width: 15px;
  height: 15px;
}

.window:not(.is-claimed) .win-lock {
  inset: auto;
  bottom: 4px;
  left: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(18, 40, 30, 0.55);
  color: #f6ecd8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.window:not(.is-claimed) .win-lock svg {
  width: 9px;
  height: 9px;
}

.window .win-sticker {
  position: absolute;
  z-index: 4;
  top: 6px;
  right: 5px;
  font-size: 16px;
  line-height: 1;
}

/* ===== wrapped present · luxury gift box ===== */

.window.is-lit {
  background: radial-gradient(120% 95% at 50% 6%, #fffdf5 0%, #f9efdb 42%, #efdcb7 100%);
  border-color: #c9a866;
  outline-color: rgba(150, 110, 45, 0.34);
  box-shadow:
    inset 0 0 0 1px #fffdf6,
    inset 0 -10px 18px rgba(150, 110, 50, 0.16),
    0 4px 10px rgba(70, 50, 25, 0.2);
}

.window.is-lit::before,
.window.is-lit::after {
  content: none;
}

.window.is-lit .win-date {
  display: none;
}

.window.is-lit .win-num {
  left: 6px;
  top: 6px;
  transform: none;
  z-index: 7;
  width: 17px;
  height: 17px;
  font-size: 9px;
  color: #7a352d;
  background: #fff9ea;
  box-shadow: 0 1px 2px rgba(90, 55, 20, 0.28), inset 0 1px 0 #fff;
}

.giftwrap {
  position: absolute;
  inset: 3% 2% 9%;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.giftwrap svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gift-shine {
  position: absolute;
  top: -25%;
  left: -70%;
  width: 34%;
  height: 150%;
  z-index: 6;
  pointer-events: none;
  transform: skewX(-16deg);
  background: linear-gradient(100deg, transparent, rgba(255, 247, 222, 0.55), transparent);
  animation: sheen 6s ease-in-out infinite;
}

@keyframes sheen {
  0%, 58% {
    left: -70%;
  }
  80%, 100% {
    left: 140%;
  }
}

.window.is-open {
  box-shadow:
    inset 0 0 0 1px #fffdf6,
    inset 0 -10px 18px rgba(150, 110, 50, 0.16),
    0 0 0 2px rgba(201, 164, 95, 0.45),
    0 6px 14px -8px rgba(120, 88, 30, 0.5);
}

.window.is-today {
  border-color: var(--red);
  animation: today-glow 2.6s ease-in-out infinite;
}

@keyframes today-glow {
  0%, 100% {
    box-shadow:
      inset 0 -7px 12px rgba(60, 25, 18, 0.22),
      0 0 0 1px rgba(184, 70, 60, 0.35),
      0 3px 6px rgba(70, 50, 25, 0.18);
  }
  50% {
    box-shadow:
      inset 0 -7px 12px rgba(60, 25, 18, 0.22),
      0 0 0 4px rgba(184, 70, 60, 0.24),
      0 3px 6px rgba(70, 50, 25, 0.18);
  }
}

.window.is-lit.is-today {
  animation: today-glow-lit 2.6s ease-in-out infinite;
}

@keyframes today-glow-lit {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px #fffdf6,
      inset 0 -10px 18px rgba(150, 110, 50, 0.16),
      0 0 0 1px rgba(184, 70, 60, 0.35),
      0 4px 10px rgba(70, 50, 25, 0.2);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px #fffdf6,
      inset 0 -10px 18px rgba(150, 110, 50, 0.16),
      0 0 0 4px rgba(184, 70, 60, 0.24),
      0 4px 10px rgba(70, 50, 25, 0.2);
  }
}

.window.is-claimed {
  background: linear-gradient(160deg, #f4eee0, #e8dfca);
  border-color: #d7cbb2;
  outline-color: rgba(120, 100, 60, 0.25);
  opacity: 0.9;
  cursor: default;
}

.window.is-claimed::before {
  background: rgba(23, 56, 47, 0.1);
}

.window.is-claimed::after {
  background: #d8c9a8;
}

.window.is-claimed:hover {
  transform: none;
  filter: none;
  box-shadow:
    inset 0 -7px 12px rgba(60, 25, 18, 0.08),
    0 3px 6px rgba(70, 50, 25, 0.12);
}

.window.is-claimed .win-lock {
  color: #8a957f;
}

.window.is-claimed .win-num {
  top: auto;
  bottom: 7px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.window.is-claimed .win-date {
  color: #8a7a55;
  text-shadow: none;
}

.window.is-mine {
  border-color: var(--forest-3);
  box-shadow: 0 0 0 2px rgba(40, 84, 63, 0.22), 0 3px 6px rgba(70, 50, 25, 0.18);
  opacity: 1;
}

/* ---------- fill editor ---------- */

.fill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 24px;
  align-items: start;
}

.fill-layout > * {
  min-width: 0;
}

.editor-card {
  position: sticky;
  top: 84px;
  scroll-margin-top: 74px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.editor-card h2 {
  font-size: 22px;
  line-height: 1.15;
}

.editor-card .editor-sub {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.editor-card .page-kicker {
  margin-bottom: 5px;
  color: #a5864a;
}

.editor-card .fine-print {
  color: var(--muted-2);
}

.editor-card .btn-quiet {
  color: var(--muted);
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.media-box {
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: #fbf5e8;
}

.media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.media-head strong {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.media-head small {
  font-size: 10.5px;
  color: var(--muted-2);
}

.media-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.media-preview img {
  margin-top: 9px;
  max-width: 100%;
  max-height: 220px;
  width: auto;
  border-radius: 9px;
}

.media-preview audio {
  margin-top: 9px;
  width: 100%;
}

.file-note {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted-2);
}

.record-btn.is-recording {
  border-color: #d19a8c;
  background: #f7ddd6;
  color: #9c352d;
}

.record-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--red);
}

.charcount {
  margin: -6px 0 10px;
  text-align: right;
  font-size: 11px;
  color: var(--muted-2);
}

.sticker-field {
  margin: 12px 0 10px;
}

.sticker-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.sticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sticker-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.sticker-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

.sticker-btn.is-active {
  border-color: var(--forest-3);
  background: #f1f6f0;
  box-shadow: 0 0 0 2px rgba(40, 84, 63, 0.16);
  transform: scale(1.06);
}

.suggest-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 4px 0 10px;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.suggest-row::-webkit-scrollbar {
  display: none;
}

.suggest-row button {
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fbf5e8;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.suggest-row button:hover {
  border-color: var(--gold);
  background: #fdf8ec;
}

.anon-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.anon-row input {
  margin-top: 2px;
  accent-color: var(--forest-3);
  flex: none;
}

/* ---------- dashboard (post-creation manager, matches the shared dashboard design) ---------- */

body.view-manage {
  line-height: 1.65;
}

body.view-manage::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1.4px),
    radial-gradient(rgba(216, 179, 108, 0.3) 1px, transparent 1.4px);
  background-size: 120px 120px, 150px 150px;
  background-position: 20px 30px, 60px 80px;
}

body.view-manage #app {
  position: relative;
  z-index: 1;
  max-width: none;
  padding: 0;
}

.dash-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 40px) 0;
}

.dash :focus-visible {
  outline: 3px solid #e3bd70;
  outline-offset: 3px;
}

.dash .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 7px 17px rgba(185, 71, 62, 0.14);
  transition: background 0.18s, transform 0.18s, color 0.18s;
}

.dash .btn:hover:not(:disabled) {
  background: #943a33;
  transform: translateY(-1px);
}

.dash .btn.dark {
  background: var(--forest);
  box-shadow: none;
}

.dash .btn.dark:hover:not(:disabled) {
  background: #102a24;
}

.dash .btn.outline {
  background: #fff;
  border: 1px solid #e8dfce;
  color: var(--forest);
  box-shadow: none;
}

.dash .btn.outline:hover:not(:disabled) {
  background: #f7f1e4;
}

.dash .btn.danger {
  background: #943a33;
  box-shadow: none;
}

.dash .btn.danger:hover:not(:disabled) {
  background: #7f322c;
}

.dash .btn.small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13.3px;
}

.dash .btn.wide {
  width: 100%;
}

/* celebrate strip */

.dash .celebrate {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid #dbe5d6;
  border-radius: 22px;
  background: linear-gradient(150deg, #eef3e7, #f7f1e4);
}

.dash .celebrate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--red), var(--gold-2), #3f7a5e, var(--red));
}

.dash .celebrate h1 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30.4px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.dash .celebrate p {
  margin: 0 0 15px;
  max-width: 560px;
  color: #5d6b60;
  font-size: 14.7px;
  line-height: 1.6;
}

.dash .celebrate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash .celebrate .fine-print {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: #7b8278;
}

/* head */

.dash .dash-head {
  margin: 4px 0 18px;
}

.dash .page-kicker {
  margin: 0 0 5px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #9b7140;
}

.dash .page-kicker::before {
  content: none;
}

.dash .dash-head h2 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: clamp(25.6px, 2.6vw, 33.6px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--forest);
}

.dash .dash-head .page-sub {
  margin: 0;
  color: #7a8278;
  font-size: 13.6px;
  line-height: 1.6;
}

.dash .head-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.dash .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e6dcc7;
  border-radius: 99px;
  background: #f1ead8;
  color: #5d6b60;
  font-family: var(--sans);
  font-size: 12.8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.dash .chip:hover {
  background: #ead9b8;
  color: var(--forest);
}

/* stats */

.dash .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.dash .stats .stat {
  padding: 14px;
  border: 1px solid #e8dfce;
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
  box-shadow: 0 6px 18px rgba(36, 60, 46, 0.04);
}

.dash .stats .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--forest);
}

.dash .stats .stat span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #6d756b;
}

/* per-gift wrapping picker (fill page) */

.wrap-field {
  margin: 12px 0 10px;
}

.wrap-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.wrap-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 0;
  padding: 8px 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.wrap-opt:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

.wrap-opt.is-active {
  border-color: var(--forest-3);
  background: #f1f6f0;
  box-shadow: 0 0 0 2px rgba(40, 84, 63, 0.16);
}

.wrap-opt-art {
  position: relative;
  display: block;
  width: 100%;
  height: 48px;
  overflow: hidden;
}

.wrap-opt-art .giftwrap {
  inset: 0 5% 0;
}

.wrap-opt-art .giftwrap svg {
  width: 100%;
  height: 46px;
}

.wrap-opt-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.wrap-opt-price {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #9b7140;
}

.wrap-opt.is-locked .wrap-opt-name {
  color: var(--ink-soft);
}

.wrap-opt.is-locked .wrap-opt-price {
  color: var(--forest-3);
}

/* two-column manage layout */

.dash .manage-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  align-items: start;
}

.dash .stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dash .panel {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid #e8dfce;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(36, 60, 46, 0.04);
}

.dash .panel h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 19.2px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
}

.dash .panel .panel-sub {
  margin: 0 0 15px;
  color: #6c786f;
  font-size: 13.6px;
  line-height: 1.6;
}

/* progress */

.dash .progress-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 9px;
  font-size: 13.1px;
  color: #5d6b60;
}

.dash .progress-line strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--forest);
}

.dash .progress-bar {
  height: 8px;
  border-radius: 99px;
  background: #eadfc6;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(120, 90, 40, 0.18);
}

.dash .progress-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #b94b40, #d5aa59);
  transition: width 0.25s ease;
}

/* felt pocket grid */

.dash .pocket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.dash .pocket {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1.12;
  padding: 0;
  border: 1px solid rgba(90, 55, 30, 0.22);
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(160deg, #c65a4e, #a23d35);
  color: #fff4e2;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 14.4px;
  font-weight: 800;
  line-height: normal;
  box-shadow:
    inset 0 -7px 12px rgba(60, 25, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 3px 6px rgba(70, 50, 25, 0.18);
  outline: 1.5px dashed rgba(255, 240, 214, 0.5);
  outline-offset: -7px;
  transition: transform 0.18s, filter 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.dash .pocket::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
  border-radius: 0 0 5px 5px;
}

.dash .pocket::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 14px;
  height: 8px;
  transform: translateX(-50%);
  background: #f0d68f;
  border: 1px solid rgba(120, 88, 30, 0.25);
  border-radius: 3px 3px 0 0;
}

.dash .pocket .num {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fbf3e2;
  color: #7a352d;
  border: 1px solid rgba(120, 72, 40, 0.18);
  box-shadow: 0 1px 3px rgba(60, 35, 15, 0.25), inset 0 1px 0 #fff;
  font-family: var(--serif);
  font-size: 12.8px;
  font-weight: 800;
  line-height: 1;
}

.dash .pocket .pdate {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  font-size: 8.8px;
  font-weight: 700;
  opacity: 0.85;
}

.dash .pocket .pstate {
  position: relative;
  z-index: 2;
  margin-top: 1px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
}

.dash .pocket:nth-child(3n) {
  background: linear-gradient(160deg, #e9d9b4, #d3bd8d);
  color: #4a3f2a;
  border-color: rgba(110, 80, 25, 0.22);
}

.dash .pocket:nth-child(3n) .num {
  color: #6b5226;
}

.dash .pocket:nth-child(3n) .pdate,
.dash .pocket:nth-child(3n) .pstate {
  color: #5a4a2c;
}

.dash .pocket:nth-child(4n) {
  background: linear-gradient(160deg, #356b53, #214a39);
  border-color: #24523f;
}

.dash .pocket:nth-child(4n) .num {
  color: #214a39;
}

.dash .pocket.filled {
  background: radial-gradient(120% 95% at 50% 6%, #fffdf5 0%, #f9efdb 42%, #efdcb7 100%);
  border-color: #c9a866;
  outline-color: rgba(150, 110, 45, 0.34);
  box-shadow:
    inset 0 0 0 1px #fffdf6,
    inset 0 -10px 18px rgba(150, 110, 50, 0.16),
    0 4px 10px rgba(70, 50, 25, 0.2);
}

.dash .pocket.filled::before,
.dash .pocket.filled::after {
  content: none;
}

.dash .pocket.filled .num {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 7;
  width: 17px;
  height: 17px;
  font-size: 9px;
  color: #7a352d;
  background: #fff9ea;
  box-shadow: 0 1px 2px rgba(90, 55, 20, 0.28), inset 0 1px 0 #fff;
}

.dash .pocket.filled .pdate {
  display: none;
}

.dash .pocket .pname {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 4px;
  transform: translateX(-50%);
  z-index: 4;
  max-width: 88%;
  padding: 1px 7px;
  border: 1px solid #d9bd83;
  border-radius: 5px;
  background: linear-gradient(180deg, #fffaee, #f0dcae);
  color: #5f451f;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(90, 55, 20, 0.22);
}

.dash .pocket:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 -7px 12px rgba(60, 25, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 15px rgba(70, 50, 25, 0.22);
}

.dash .pocket.filled:hover {
  box-shadow:
    inset 0 0 0 1px #fffdf6,
    inset 0 -10px 18px rgba(150, 110, 50, 0.16),
    0 8px 15px rgba(70, 50, 25, 0.22);
}

.dash .pocket-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
  font-size: 11.5px;
  color: #6e756a;
}

/* link cards */

.dash .link-card {
  padding: 15px 16px;
  border: 1px solid #e2d9c8;
  border-radius: 15px;
  background: #fffefa;
}

.dash .link-card + .link-card {
  margin-top: 12px;
}

.dash .link-card header {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 4px;
  padding: 0;
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dash .link-card header h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 14.7px;
  font-weight: 800;
  color: var(--forest);
}

.dash .link-card > p {
  margin: 0 0 10px;
  color: #7a8278;
  font-size: 12.2px;
  line-height: 1.6;
}

.dash .link-value {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.dash .link-value input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #e2d9c8;
  border-radius: 10px;
  background: #fff;
  color: #5d6b60;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.2px;
  outline: none;
}

.dash .link-value input:focus {
  border-color: var(--forest-3);
}

.dash .share-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dash .share-row a,
.dash .share-row button {
  padding: 0;
  border: 0;
  background: none;
  color: #244d40;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.dash .share-row a:hover,
.dash .share-row button:hover {
  color: var(--red);
}

.dash .invite-block {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed #d4c8aa;
  border-radius: 13px;
  background: #f4f0e4;
  color: #5b5340;
  font-size: 13.1px;
  line-height: 1.55;
}

.dash .invite-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* memory and reuse */

.dash .price {
  margin: 2px 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
}

.dash .price small {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.dash .note {
  margin: 10px 0 0;
  font-size: 11.8px;
  line-height: 1.6;
  color: #7a8278;
}

/* settings */

.dash .field {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
}

.dash .field > span {
  display: block;
  margin: 0;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #536258;
}

.dash .field input {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #ded8c9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14.1px;
  outline: none;
}

.dash .field input:focus {
  border-color: var(--forest-3);
  box-shadow: 0 0 0 3px rgba(40, 84, 63, 0.13);
}

.dash .theme-picker {
  display: flex;
  gap: 8px;
}

.dash .theme {
  flex: 1;
  display: block;
  padding: 10px 6px;
  border: 1px solid #e3dac9;
  border-radius: 10px;
  background: #fff;
  color: #4e5c51;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

.dash .theme[aria-pressed="true"] {
  padding: 9px 5px;
  border: 2px solid var(--forest-2);
  background: #f1f6ed;
  color: var(--forest);
  box-shadow: none;
}

.dash .theme-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 5px;
}

.dash .theme-dots i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dash .switch-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  font-size: 13.3px;
  line-height: 1.6;
  color: #5d6b60;
}

.dash .switch-row input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--forest);
}

.dash .switch-row b {
  color: var(--forest);
}

.dash .switch-row small {
  display: block;
  margin-top: 2px;
  color: #7a8278;
  font-size: 11.8px;
  line-height: 1.5;
}

.dash .danger-zone {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid #e3c4bf;
  border-radius: 15px;
  background: #fdf4f1;
}

.dash .danger-zone h4 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 15.2px;
  font-weight: 800;
  color: var(--red-2);
}

.dash .danger-zone p {
  margin: 0 0 11px;
  color: #8a5a52;
  font-size: 12.8px;
  line-height: 1.6;
}

/* dashboard footer */

.dash .dash-foot {
  position: relative;
  z-index: 1;
  margin: 60px 0 0;
  padding: 24px 0 18px;
  background: #102a24;
  color: #d7e1d8;
}

.dash .dash-foot-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dash .dash-foot .brand {
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.dash .dash-foot .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--gold-2);
  color: var(--forest);
  font-size: 18px;
}

.dash .dash-foot .copy {
  font-size: 11.8px;
  color: #93aa9a;
}

/* dashboard responsive */

@media (max-width: 920px) {
  .dash .manage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dash-inner {
    padding-top: 22px;
  }
  .dash .stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .dash .pocket-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dash .dash-foot {
    margin-top: 50px;
  }
}

/* ---------- keepsake ---------- */

.keepsake-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
}

.keepsake-bar .bar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-panel {
  margin-bottom: 22px;
  padding: clamp(20px, 3.5vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(420px 200px at 92% -10%, rgba(215, 181, 104, 0.35), transparent 65%),
    linear-gradient(160deg, #fdf7e9, #f6ead1);
}

.pay-panel h2 {
  font-size: clamp(23px, 3vw, 30px);
}

.pay-panel p {
  margin-top: 8px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pay-panel .price {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
  color: var(--red);
}

.pay-panel .price small {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

.pay-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.info-bullets {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.info-bullets li {
  position: relative;
  padding-left: 15px;
  line-height: 1.5;
}

.info-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.book-title-block {
  padding: 18px 0 26px;
  text-align: center;
}

.book-for {
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.book-title-block h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.book-dates {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.book-sort {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 660px;
  margin: 0 auto 14px;
}

.book-sort > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.book-sort button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  background: var(--paper);
  color: var(--ink-soft);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.book-sort button[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: #fdf7e9;
}

.book {
  display: grid;
  gap: 12px;
  max-width: 660px;
  margin: 0 auto;
}

.book-card {
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 16px 34px -30px rgba(23, 56, 47, 0.5);
}

.book-card header {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.book-day {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--forest);
  color: #f0d9a4;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
}

.book-who {
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--muted);
}

.book-who strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
}

.book-sticker {
  margin-left: auto;
  flex: none;
  font-size: 22px;
  line-height: 1;
}

.book-text {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
  color: #2f3f37;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.book-card img {
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 10px;
}

.book-card audio {
  width: 100%;
  margin-top: 12px;
}

.voice-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 99px;
  background: #f4ead6;
  color: var(--ink-soft);
  font-size: 11px;
}

.voice-chip svg {
  width: 13px;
  height: 13px;
}

.watermark-note {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: var(--muted-2);
}

.export-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 10px 0;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
}

.check-row input {
  accent-color: var(--forest-3);
}

.export-img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.preview-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid #e6d4a6;
  border-radius: 999px;
  background: #fbf3e1;
  color: #8a6a34;
  font-size: 11px;
}

.preview-ribbon .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- sheet ---------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 32, 27, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fade-in 0.2s ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet {
  width: min(540px, 100%);
  max-height: 86vh;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(10, 30, 24, 0.75);
  animation: sheet-in 0.25s cubic-bezier(0.2, 0.8, 0.25, 1) both;
  -webkit-overflow-scrolling: touch;
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 0;
}

.sheet-head .day-tag {
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #a5864a;
}

.sheet-head h2 {
  font-size: 23px;
  line-height: 1.15;
}

.sheet-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fdf8ec;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.sheet-close:hover {
  border-color: var(--gold);
  color: var(--forest);
}

.sheet-body {
  padding: 14px 20px 20px;
}

.sheet-body .book-text {
  margin-top: 0;
  font-size: 17px;
}

.sheet-body img {
  width: 100%;
  margin-top: 10px;
  border-radius: 10px;
}

.sheet-body audio {
  width: 100%;
  margin-top: 12px;
}

.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 20px 20px;
}

.sheet-foot > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.sheet-foot .byline {
  font-size: 12px;
  color: var(--muted);
}

.react-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 2px;
}

.react-hint {
  font-size: 12.5px;
  color: var(--muted);
}

.react-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.react-chip b {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.react-chip:hover:not(:disabled) {
  border-color: var(--gold);
}

.react-chip.is-mine {
  border-color: var(--gold);
  background: rgba(215, 181, 104, 0.18);
}

.react-chip:disabled {
  cursor: default;
  opacity: 0.75;
}

.reply-zone {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.reply-heading {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.reply-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.reply-list li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}

.reply-list strong {
  font-size: 12.5px;
  color: var(--forest);
}

.reply-list p {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.reply-form {
  display: grid;
  gap: 7px;
}

.reply-form input,
.reply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  font: inherit;
  font-size: 13.5px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}

.reply-form input:focus,
.reply-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 95, 0.16);
}

.reply-form .btn {
  justify-self: start;
}

.reveal-sticker {
  margin-bottom: 6px;
  text-align: center;
  font-size: 34px;
  line-height: 1;
}

/* ---------- returning sheet ---------- */

.find-form {
  display: flex;
  gap: 8px;
}

.find-form input {
  flex: 1;
  min-width: 0;
}

.device-list {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.device-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fdf8ec;
  color: var(--forest);
  font-size: 13px;
  text-decoration: none;
}

.device-list li a:hover {
  border-color: var(--gold);
}

.device-list li a span {
  color: var(--muted-2);
  font-size: 11.5px;
}

.device-list .device-heading {
  list-style: none;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
}

.qr-wrap {
  display: grid;
  place-items: center;
}

.qr-img {
  width: 230px;
  max-width: 100%;
  height: auto;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fffdf7;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .explain-grid,
  .idea-grid,
  .memory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fill-layout {
    grid-template-columns: 1fr;
  }
  .editor-card {
    position: static;
  }
  .comment-wrap {
    grid-template-columns: 1fr;
  }
  .footgrid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .footgrid > div:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 860px) {
  .navlinks {
    display: none;
  }
  .screen-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .screen-row:nth-child(even) .screen-copy {
    order: 0;
  }
  .screen-shot,
  .screen-row:nth-child(even) .screen-shot {
    transform: none;
  }
}

@media (max-width: 720px) {
  .door-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .window .win-sticker {
    top: 5px;
    right: 4px;
    font-size: 13px;
  }
  .formrow {
    grid-template-columns: 1fr;
  }
  .theme-picker {
    grid-template-columns: 1fr;
  }
  .theme {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .topline {
    font-size: 10.5px;
    padding: 7px 12px;
    letter-spacing: 0.03em;
  }
  .nav {
    min-height: 60px;
    gap: 10px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .nav > .btn {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11.5px;
  }
  .explain-grid,
  .idea-grid,
  .memory-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    text-align: left;
  }
  .section-head p {
    font-size: 14px;
  }
  .footgrid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footgrid > div:last-child {
    grid-column: auto;
  }
  #app {
    padding: 16px 16px 56px;
  }
  .page-title {
    font-size: clamp(26px, 7.6vw, 34px);
  }
  .sheet-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .sheet {
    width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    animation-name: sheet-up;
  }
  @keyframes sheet-up {
    from { transform: translateY(36px); opacity: 0.6; }
    to { transform: none; opacity: 1; }
  }
  .keepsake-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-foot {
    flex-direction: column;
  }
  .find-form {
    flex-direction: column;
  }
  .window .win-date {
    top: 5px;
    font-size: 7px;
  }
  .window .win-num {
    width: 22px;
    height: 22px;
    font-size: 10.5px;
  }
  .window.is-claimed .win-num {
    width: 18px;
    height: 18px;
    font-size: 9.5px;
  }
}

@media (max-width: 380px) {
  .door-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- print: keepsake only ---------- */

@media print {
  body {
    background: #fff !important;
    color: #111;
  }
  .topline, header, #site-foot, #landing, .keepsake-bar, .pay-panel, .preview-ribbon,
  .page-head, .page-foot, .watermark-note, .toast, .sheet-backdrop, .export-options {
    display: none !important;
  }
  #app {
    max-width: none;
    padding: 0;
  }
  .book-title-block {
    padding: 0 0 16px;
  }
  .book-title-block h1 {
    font-size: 28px;
    color: #111;
  }
  .book-for,
  .book-dates {
    color: #555;
  }
  .book {
    max-width: none;
    gap: 9px;
  }
  .book-card {
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 13px;
  }
  .book-day {
    background: #111;
    color: #fff;
  }
  .book-who strong,
  .book-text {
    color: #111;
  }
  .book.hide-names .book-who strong {
    display: none;
  }
  .book.hide-messages .book-text {
    display: none;
  }
  .book-card audio {
    display: none;
  }
}

audio {
  accent-color: var(--gold);
}

/* Guide routes render full-width inside the app shell. */

body.view-guide #app {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Guide routes keep the homepage header and footer. */

body.view-guide .topline {
  display: block;
}

body.view-guide header {
  background: rgba(251, 246, 235, 0.92);
}

body.view-guide .nav {
  min-height: 70px;
}

body.view-guide .nav > .btn {
  display: inline-flex;
}

body.view-guide #site-foot {
  display: block;
}

@media (min-width: 861px) {
  body.view-guide .navlinks {
    display: flex;
  }
}

/* Calendar colours: the dashboard follows the chosen theme. */

.dash .page-kicker {
  color: var(--theme-ribbon);
}

.dash .stats .stat b {
  color: var(--theme-accent);
}

.dash .chip {
  background: var(--theme-halo);
}

.dash .chip:hover {
  background: var(--theme-gold);
  color: var(--forest);
}

.dash .btn {
  background: var(--theme-ribbon);
}

.dash .btn:hover:not(:disabled) {
  background: var(--theme-ribbon);
  filter: brightness(0.92);
}

.dash .celebrate::before {
  background: linear-gradient(90deg, var(--theme-ribbon), var(--theme-gold), var(--theme-accent), var(--theme-ribbon));
}

.dash .progress-bar i {
  background: linear-gradient(90deg, var(--theme-ribbon), var(--theme-gold));
}

.dash .dash-foot {
  background: var(--theme-accent);
}

body[data-theme="dawn"] .dash .celebrate {
  background: linear-gradient(150deg, #f8ead3, #f7f1e4);
}

body[data-theme="midnight"] .dash .celebrate {
  background: linear-gradient(150deg, #eaf1f3, #f7f1e4);
}

body[data-theme="dawn"] .dash .pocket {
  background: linear-gradient(160deg, #b57a4e, #8d5731);
  border-color: rgba(105, 65, 30, 0.28);
}

body[data-theme="dawn"] .dash .pocket:nth-child(3n) {
  background: linear-gradient(160deg, #ecd3a6, #d9b97f);
}

body[data-theme="dawn"] .dash .pocket:nth-child(4n) {
  background: linear-gradient(160deg, #8a613c, #64452a);
}

body[data-theme="midnight"] .dash .pocket {
  background: linear-gradient(160deg, #7d9aa4, #5a7883);
  border-color: rgba(45, 80, 91, 0.35);
}

body[data-theme="midnight"] .dash .pocket:nth-child(3n) {
  background: linear-gradient(160deg, #dbe7ea, #bfd2d7);
}

body[data-theme="midnight"] .dash .pocket:nth-child(4n) {
  background: linear-gradient(160deg, #3f6d7a, #2c505b);
}

body[data-theme="midnight"] .dash .pocket .num {
  color: #2c505b;
}
