/* Registryup design tokens (from the design system: tokens/tokens.ts) */
:root {
  --ivory: #F0F5F1;
  --surface: #FFFFFF;
  --sand: #EFE9DF;
  --sand-deep: #E6DED0;
  --line: #E7E0D4;
  --line-strong: #D2C8B8;
  --ink: #292D29;
  --ink-2: #4B4F4B;
  --ink-3: #6A6E69;
  --accent: #244C3A;
  --accent-hover: #1A3A2C;
  --accent-tint: #E4ECE6;
  --gold: #C5A46D;
  --sage: #EFE9DF;
  --heading: var(--ink);  /* headings are near-black like the text; green is kept for buttons, links and accents */
  --reserved: #8A5A12;
  --reserved-tint: #FBF0DC;
  --danger: #A23B2A;
  --danger-tint: #F8E4DF;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, .05);
  --shadow-md: 0 1px 2px rgba(31, 27, 22, .04), 0 8px 24px rgba(31, 27, 22, .06);
  --shadow-lg: 0 2px 6px rgba(31, 27, 22, .05), 0 24px 48px rgba(31, 27, 22, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
/* A photo that fails to load leaves its empty box, not alt text. */
img { color: transparent; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: #7A7066; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--heading); }
button { font: inherit; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

[hidden] { display: none !important; }  /* our display rules must never un-hide hidden elements */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap.wide { max-width: 1200px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--ink-2); }
.meta { color: var(--ink-3); font-size: 14px; }
.small { font-size: 14px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spacer { flex: 1; }
.label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.label.accent { color: var(--accent); }

/* Type */
.display { font: 400 clamp(38px, 5.4vw, 66px)/1.02 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.h1 { font: 400 clamp(32px, 4vw, 48px)/1.08 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.h2 { font: 400 clamp(28px, 3vw, 38px)/1.1 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.h3 { font: 400 22px/1.25 var(--serif); letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
em.accent, .accent-text { color: var(--accent); }
.section { padding-top: clamp(72px, 10vw, 120px); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head p { margin-top: 8px; color: var(--ink-2); }

/* Logo */
/* The brand lockup (an <img>): set its height per place with --logo-h; the width follows. */
.logo { display: block; flex: none; line-height: 0; text-decoration: none; }
.logo img { height: var(--logo-h, 34px); width: auto; max-width: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 6px; border: 0; background: var(--accent); color: var(--ivory); font: 600 15px var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-hover); color: var(--ivory); }
.btn.lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn.md { height: 52px; padding: 0 24px; font-size: 16px; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.outline:hover { background: var(--sand-deep); color: var(--ink); }
.btn.quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn.quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--ivory); }
.btn.dark:hover { background: #000; }
.btn.danger { background: var(--danger); }
.btn.ghost { background: transparent; color: var(--ink); font-weight: 500; }
.btn.ghost:hover { background: var(--sand); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); font: 500 14px var(--sans); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; min-height: 40px; }
.linkbtn.danger { color: var(--danger); }

.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 600 14px var(--sans); cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--sand); color: var(--ink-2); white-space: nowrap; }
.badge.reserved { background: var(--reserved-tint); color: var(--reserved); }
.badge.purchased { background: var(--accent-tint); color: var(--accent); }
.badge.solid { background: var(--accent); color: var(--ivory); }
.badge.outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.field .help { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.field .error, .error { color: var(--danger); font-weight: 500; font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 14px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search],
select, textarea { width: 100%; min-height: 52px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface);
  padding: 0 16px; font: 500 16px var(--sans); color: var(--ink); }
textarea { padding: 14px 16px; min-height: 96px; resize: vertical; line-height: 1.5; }
/* Same look as text inputs in every browser (Safari draws its own otherwise), with our own arrow. */
select { -webkit-appearance: none; appearance: none; height: 52px; padding: 0 44px 0 16px; cursor: pointer; line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B6157' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
select::-ms-expand { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(36, 76, 58, .25); outline-offset: 0; border-color: var(--accent); }
textarea.is-locked, textarea[readonly].is-locked, [data-shipping-box].is-locked textarea {
  background-color: var(--sand);
  color: var(--ink-2);
  border-color: var(--line);
  cursor: not-allowed;
  opacity: 0.85;
}
textarea.is-locked:focus, textarea[readonly].is-locked:focus, [data-shipping-box].is-locked textarea:focus {
  outline: none;
  border-color: var(--line);
}
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: 15px; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 8px; border: 2px solid var(--line);
  background: var(--surface); cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.choice input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.choice strong { display: block; font-weight: 600; }
.choice small { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* Messages (shown as toasts) */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px;
  width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 0; list-style: none; }
.toasts li { background: var(--ink); color: var(--ivory); padding: 14px 20px; border-radius: 6px; font-size: 15px; overflow-wrap: anywhere;
  box-shadow: 0 12px 24px rgba(31, 27, 22, .25); transition: opacity .4s, transform .4s; }
.toasts li.warning { background: var(--reserved-tint); color: var(--reserved); }
.toasts li.error { background: var(--danger-tint); color: var(--danger); }
.toasts li.hide { opacity: 0; transform: translateY(8px); }
.has-sticky .toasts, .has-flow-actions .toasts { bottom: 96px; }

/* Site nav */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-nav .bar { height: 68px; display: flex; align-items: center; gap: 28px; }
.site-nav .links { display: flex; gap: 6px; flex: 1; justify-content: center; }
.site-nav .links .nav-link { position: relative; font-size: 14px; padding: 0 12px; }
.site-nav .links .nav-link:hover { background: none; color: var(--accent); }
.site-nav .links .nav-link[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav .links .nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
  border-radius: 2px; background: var(--accent); }
.nav-link { height: 44px; padding: 0 14px; display: flex; align-items: center; border-radius: 999px; font-weight: 500; font-size: 15px;
  color: var(--ink); text-decoration: none; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.nav-link:hover { background: var(--sand); color: var(--ink); }
.site-nav .actions { display: flex; align-items: center; gap: 6px; flex: none; }
.site-nav .actions .btn { height: 42px; padding: 0 20px; font-size: 14px; }
.site-nav .actions .nav-link { font-size: 14px; }
.site-nav .nav-link .icon { width: 18px; height: 18px; margin-right: 7px; color: #C85A32; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
  cursor: pointer; font-size: 18px; color: var(--ink); margin-left: auto; place-items: center; }
.drawer { display: none; }
/* The open menu's page doesn't scroll behind it. Only <html>: overflow on <body> would make it the sticky header's
   scroll container, and a menu opened after scrolling would then jump off the top of the screen with the header. */
.menu-open { overflow: hidden; }
@media (max-width: 819px) {
  .site-nav .logo { --logo-h: 30px; }
  .site-nav .links, .site-nav .actions { display: none; }
  .menu-toggle { display: grid; }
  /* The nav's backdrop-filter makes it the drawer's containing block, so the height must be explicit. */
  .drawer.open { display: flex; position: fixed; inset: 68px 0 auto; height: calc(100dvh - 68px); overflow-y: auto; background: var(--surface); padding: 16px; z-index: 60; flex-direction: column; gap: 4px; }
  .drawer .nav-link { height: auto; min-height: 56px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 18px; padding: 0; width: 100%; }
  .drawer .nav-link:hover { background: none; }
  .drawer .btn { margin-top: 20px; height: 52px; }
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: clamp(64px, 9vw, 104px);
  font-size: 14px;
  color: var(--ink-2);
}
.site-footer .top {
  padding-top: clamp(48px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 48px);
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.site-footer .brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 320px;
}
.site-footer .brand .logo {
  --logo-h: 32px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.site-footer .brand p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}
.site-footer .footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.site-footer .footer-contact .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.site-footer .footer-contact:hover {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.site-footer h2 {
  font: 600 12px/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.site-footer nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-3);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .15s ease, transform .15s ease;
}
.site-footer nav a:hover {
  color: var(--accent);
  transform: translateX(2px);
}
.socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.socials .icon { width: 17px; height: 17px; }
.site-footer label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.site-footer select {
  height: 44px;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  padding: 0 12px;
  font: 14px var(--sans);
  color: var(--ink);
  max-width: 240px;
}
.site-footer .bottom {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.site-footer .bottom .bottom-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.site-footer .bottom .bottom-left p { margin: 0; }
.site-footer .bottom .bottom-dot { color: var(--line-strong); font-size: 14px; }
.site-footer .bottom .bottom-note { color: var(--ink-3); }
.site-footer .bottom .legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.site-footer .bottom .legal a {
  min-height: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .15s ease;
}
.site-footer .bottom .legal a:hover {
  color: var(--accent);
}
@media (max-width: 900px) {
  .site-footer .top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }
  .site-footer .brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}
@media (max-width: 540px) {
  .site-footer .top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer .bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .site-footer .bottom .bottom-dot { display: none; }
  .site-footer .bottom .bottom-note { display: block; width: 100%; }
}
@media (max-width: 759px) { .has-sticky .site-footer { padding-bottom: 80px; } }

/* Sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 759px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(240, 245, 241, .96); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .sticky-cta .copy { flex: 1; min-width: 0; }
  .sticky-cta strong { display: block; font-size: 15px; }
  .sticky-cta span { display: block; font-size: 13px; color: var(--ink-3); }
}

/* Home */
.hero { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--gutter) 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero .display { max-width: 860px; }
.hero .lead { max-width: 560px; }
.search-pill { position: relative; display: flex; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-md); }
.search-pill input { flex: 1; min-width: 0; height: 52px; min-height: 52px; border: 0; border-radius: 999px; background: transparent; padding: 0 20px; font-size: 17px; }
.search-pill input:focus { outline: none; }
.search-pill:focus-within { outline: 3px solid rgba(36, 76, 58, .25); }
.search-pill .btn { height: 52px; border-radius: 999px; }
.search-results { position: absolute; left: 0; right: 0; top: 76px; z-index: 20; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow-lg); padding: 8px; text-align: left; }
.search-results[hidden] { display: none; }
.result-row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 14px; border-radius: 6px;
  text-decoration: none; color: var(--ink); }
.result-row:hover, .result-row:focus { background: var(--sand); color: var(--ink); }
.result-row .text { flex: 1; min-width: 0; }
.result-row strong { display: block; font-weight: 600; }
.result-row small { display: block; font-size: 13px; color: var(--ink-3); }
.search-results p { padding: 16px 14px; color: var(--ink-2); font-size: 15px; }
.wide-photo { aspect-ratio: 21 / 9; border-radius: 8px; overflow: hidden; background: var(--sand-deep); }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .wide-photo { aspect-ratio: 4 / 3; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(24px, 4vw, 48px); }
.steps li { display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.steps .num { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid;
  place-items: center; font: 600 18px var(--sans); }
.steps p { color: var(--ink-2); max-width: 300px; }

.tile-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.tile-grid.sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.tile-grid.lg { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 6px; padding-bottom: 22px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), border-color .25s; }
a.tile:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; background: var(--sand); }
.tile h3, .tile p, .tile .more { margin-left: 22px; margin-right: 22px; }
.tile h3 { font: 400 24px/1.2 var(--serif); }
.tile p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.tile .more { margin-top: 10px; font-weight: 600; font-size: 15px; color: var(--accent); }
.tile.compact { padding-bottom: 0; border-radius: 8px; gap: 0; }
.tile.compact img { margin-bottom: 0; }
.tile.compact .body { padding: 12px 14px 14px; }
.tile.compact h3 { margin: 0; font: 600 15px var(--sans); }
.tile.compact p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.tile.ideas { padding-bottom: 0; }
.tile.ideas img { aspect-ratio: 3 / 2; margin-bottom: 0; }
.tile.ideas .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.tile.ideas h3, .tile.ideas p { margin: 0; }

.stores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.stores li { min-height: 64px; padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; }
.stores li strong { font: 600 16px var(--sans); }
.stores li span { font-size: 13px; color: var(--ink-3); }
.store-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.store-panel[hidden] { display: none; }

.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature p { color: var(--ink-2); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 0; cursor: pointer; font: 500 18px/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px; color: var(--accent); background: var(--surface); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 48px 22px 0; line-height: 1.65; color: var(--ink-2); }

.cta-band { background: var(--sand-deep); border-radius: 8px; padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 56px); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-band .h2 { font-size: clamp(32px, 4vw, 50px); max-width: 640px; }

.crumbs { padding-top: 20px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink-3); font-size: 14px; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--line-strong); min-height: 32px; display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; color: #A9A094; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.idea-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.idea-list li { padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-weight: 500; }

/* Public registry */
.registry-bar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.registry-bar .bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.registry-bar .logo { --logo-h: 30px; }
.registry-bar .btn { height: 44px; padding: 0 18px; }
@media (max-width: 420px) { .registry-bar .make-own { display: none; } }
.owner-note { margin-top: 16px; padding: 12px 16px; border-radius: 6px; background: var(--accent-tint); color: var(--accent); font-weight: 500; font-size: 15px; }
.gifts { margin-top: clamp(40px, 6vw, 64px); }
.gifts-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.gifts-head h2 { font: 400 clamp(26px, 2.8vw, 34px)/1.1 var(--serif); letter-spacing: -.015em; }
.filters { position: sticky; top: 64px; z-index: 20; background: var(--ivory); padding: 10px 0 14px; margin-bottom: 14px; display: flex;
  flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line); }
.filters .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.filters .chips::-webkit-scrollbar { display: none; }
.filters .selects { display: flex; flex-wrap: wrap; gap: 8px; }
.filters label { flex: 1 1 150px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.filters select { height: 44px; min-height: 44px; border-radius: 6px; border: 1px solid var(--line-strong); font-size: 15px; padding: 0 38px 0 12px; background-position: right 14px center; }
.filters .check { flex: 1 1 150px; flex-direction: row; align-self: flex-end; color: var(--ink); font-size: 15px; font-weight: 500; }
@media (max-width: 640px) { .filters { position: static; } }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.item-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-md); scroll-margin-top: 240px; }
.item-card[hidden] { display: none; }
.item-card .photo { position: relative; aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, #F2ECE3 0 10px, #EEE7DA 10px 20px); }
.item-card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.item-card.purchased .photo::after { content: ""; position: absolute; inset: 0; background: rgba(240, 245, 241, .6); }
.item-card .tags { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.item-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-card h3 { font: 500 17px/1.35 var(--sans); text-wrap: pretty; }
.item-card .price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 2px; }
.item-card .price { font: 600 19px var(--sans); }
.item-card .actions { margin-top: auto; padding-top: 12px; display: grid; gap: 8px; }
.item-card .actions form { margin: 0; display: grid; }
.item-card .actions .btn { height: 48px; white-space: normal; text-align: center; line-height: 1.2; }
.item-card .actions .btn.quiet { height: 44px; font-size: 14px; }
.state { min-height: 48px; border-radius: 999px; display: grid; place-items: center; font-weight: 600; font-size: 14px; text-align: center; padding: 0 12px; }
.state.reserved { background: var(--reserved-tint); color: var(--reserved); }
.state.purchased { background: var(--sand); color: var(--ink-2); }
.empty { text-align: center; padding: 64px 20px; background: var(--sand); border: 0; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty[hidden] { display: none; }
.empty .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font: 400 28px var(--serif); color: var(--ink-3); }
.empty h3 { font: 400 22px var(--serif); }
.empty p { color: var(--ink-2); max-width: 380px; }
.registry-foot { border-top: 1px solid var(--line); padding: 28px var(--gutter) 100px; text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 80px; }

/* Dialog */
dialog.sheet { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 32px)); width: 100%; color: var(--ink); }
dialog.sheet::backdrop { background: rgba(31, 27, 22, .45); }
dialog.sheet .panel { background: var(--ivory); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); }
dialog.sheet h2 { font: 400 28px/1.15 var(--serif); }
dialog.sheet .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
dialog.sheet .field { margin-bottom: 4px; }
dialog.sheet .btn { height: 52px; font-size: 16px; }
/* A dialog that takes the whole screen ("Add a gift"): the form sits in a centred column. */
dialog.sheet.page { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; }
dialog.sheet.page .panel { min-height: 100%; border-radius: 0; box-shadow: none; gap: 16px;
  padding: clamp(16px, 4vw, 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
dialog.sheet.page .panel > * { width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; }
dialog.sheet.page .head { align-items: center; margin-bottom: clamp(8px, 6vh, 64px); }
dialog.sheet.page h2 { font-size: clamp(30px, 3.4vw, 38px); }
dialog.sheet.page input[type=text] { height: 56px; }
.page-intro { margin-top: -6px; color: var(--ink-2); font-size: 16px; }
.page-stores { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.page-stores ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.page-stores li { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.page-stores img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }

/* Product preview card in Add a gift dialog */
.add-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 4px;
  margin-bottom: 4px;
  text-align: left;
}
.add-preview-thumb-wrap {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ivory);
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.add-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.add-preview-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
.add-preview-store {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.add-preview-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.add-preview-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.add-preview-loading {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 4px;
}
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: 16px; color: var(--ink); display: grid; place-items: center; text-decoration: none; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }

/* Create flow */
.flow-bar { border-bottom: 1px solid var(--line); background: var(--ivory); }
.flow-bar .bar { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.flow-bar .logo { --logo-h: 30px; }
.flow-bar .exit { min-height: 44px; display: flex; align-items: center; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.flow { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 140px; }
.progress-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.progress-head span:last-child { color: var(--ink-3); }
.progress-head .hp-label { margin: 0; }
.progress { list-style: none; margin: 0 0 clamp(28px, 4vw, 40px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress li { height: 6px; border-radius: 999px; background: var(--line); }
.progress li.done { background: var(--accent); }
.flow h1 { font: 400 clamp(30px, 3.6vw, 40px)/1.1 var(--serif); letter-spacing: -.01em; margin-bottom: 8px; }
.flow .intro { color: var(--ink-2); font-size: 17px; margin-bottom: 28px; }
.flow h2.part { font: 400 22px var(--serif); margin: 28px 0 12px; }
.occasion-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.occasion-grid label { min-height: 76px; padding: 16px 20px; justify-content: center; border-radius: 8px; border: 2px solid var(--line); background: var(--surface);
  cursor: pointer; display: flex; flex-direction: column; gap: 4px; position: relative; }
.occasion-grid label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.occasion-grid label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.occasion-grid input { position: absolute; opacity: 0; pointer-events: none; }
.occasion-grid strong { font: 400 22px var(--serif); }
.occasion-grid span { font-size: 14px; color: var(--ink-2); }
fieldset { border: 0; margin: 6px 0 0; padding: 0; min-width: 0; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.flow-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(240, 245, 241, .96); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
.flow-actions .inner { max-width: 696px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.flow-actions .btn { height: 52px; font-size: 16px; }
.flow-actions .skip { height: 52px; padding: 0 16px; color: var(--ink-2); font-weight: 500; font-size: 15px; display: flex; align-items: center; }
/* Small phones: the bar's buttons share the width instead of running off the screen. */
@media (max-width: 420px) {
  .flow-actions .inner { gap: 8px; }
  .flow-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 15px; }
  .flow-actions .spacer { display: none; }
  .flow-actions .skip { padding: 0 6px; font-size: 14px; }
}
.paste { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.paste input { flex: 1 1 280px; min-width: 0; height: 56px; }
.paste .btn { height: 56px; border-radius: 6px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.list-row { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.list-row .thumb { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; flex: none; background: var(--sand); }
.list-row .info { flex: 1; min-width: 0; }
.list-row .label { font-size: 11px; }
.list-row .name { margin-top: 2px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .price { font: 600 16px var(--sans); white-space: nowrap; }
.list-row form { margin: 0; }
.share-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.share-card > * { min-width: 0; }  /* a long address shrinks (and is cut) instead of widening the card past the screen */
.share-link { display: flex; flex-wrap: wrap; gap: 8px; }
.share-link .url { flex: 1 1 240px; min-width: 0; height: 52px; display: flex; align-items: center; border-radius: 6px; border: 1.5px solid var(--line-strong);
  background: var(--ivory); padding: 0 16px; font-weight: 500; overflow: hidden; white-space: nowrap; }
.share-link .url .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.share-link .url .txt > span { color: var(--ink-3); }
/* "Copy link" sits inside the link's box, small. */
.share-link .url:has(.copy-in) { padding-right: 7px; gap: 10px; }
.copy-in { flex: none; height: 36px; padding: 0 12px; border: 0; border-radius: 5px; background: var(--accent); color: #fff;
  font: 600 13px var(--sans); cursor: pointer; }
.copy-in:hover { background: var(--accent-hover); }
.share-link .btn { height: 52px; border-radius: 6px; }
.share-label { font-size: 14px; font-weight: 600; margin-bottom: -6px; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.channels a { height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px; border-radius: 6px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 15px var(--sans); text-decoration: none;
  white-space: nowrap; transition: transform .15s var(--ease), border-color .2s, background .2s, box-shadow .2s; }
.channels a:hover { border-color: var(--accent); color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.channels a:active { transform: scale(.97); box-shadow: none; }
.channels .icon { width: 22px; height: 22px; }
.channels a.ch-whatsapp { background: #128C4A; border-color: #128C4A; color: #fff; }
.channels a.ch-whatsapp .icon { color: #fff; }
.channels a.ch-whatsapp:hover { background: #0E7A40; border-color: #0E7A40; color: #fff; box-shadow: 0 8px 18px rgba(18, 140, 74, .25); }
.channels a.ch-facebook .icon { color: #1877F2; }
.channels a.ch-facebook:hover { border-color: #1877F2; background: #F0F6FF; color: #1877F2; }
.channels a.ch-pinterest .icon { color: #E60023; }
.channels a.ch-pinterest:hover { border-color: #E60023; background: #FEF0F2; color: #E60023; }
.channels a.ch-x .icon { color: #0F1419; }
.channels a.ch-x:hover { border-color: #0F1419; background: #F3F4F6; color: #0F1419; }
.channels a.ch-mail .icon { color: #EA4335; }
.channels a.ch-mail:hover { border-color: #EA4335; background: #FDF2F0; color: #EA4335; }
.channels a.ch-message .icon { color: #2563EB; }
.channels a.ch-message:hover { border-color: #2563EB; background: #EFF6FF; color: #2563EB; }
@media (max-width: 520px) { .channels { grid-template-columns: 1fr; } }
.qr { display: flex; gap: 16px; align-items: center; padding-top: 16px; border-top: 1px solid var(--sand); }
.qr svg { width: 132px; height: 132px; flex: none; display: block; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 6px; box-sizing: border-box; }
.qr p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.qr strong { color: var(--ink); }
.qr-first .qr { padding: 0 0 18px; border-top: 0; border-bottom: 1px solid var(--sand); }

/* Dashboard */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .3s var(--ease); }
.sidebar { border-right: 1px solid var(--line); background: var(--sand); padding: 20px 16px; display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { --logo-h: 30px; padding: 0 8px; }
.who { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.who:hover { color: var(--ink); border-color: var(--line-strong); }
.who .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); flex: none; display: grid; place-items: center; font: 400 16px var(--serif); }
.who .text { min-width: 0; }
.who p { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who p + p { font-weight: 400; font-size: 12px; color: var(--ink-3); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { height: 44px; padding: 0 12px; border-radius: 6px; color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none;
  display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.side-nav a .icon { width: 20px; height: 20px; color: var(--ink-2); }
.side-nav a[aria-current="page"] .icon { color: var(--accent); }
.side-nav .lbl { flex: 1; }
.side-nav a:hover { background: rgba(240, 245, 241, .7); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--surface); font-weight: 600; }
.side-nav small { font-size: 12px; color: var(--ink-3); }
.side-nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 4px; }
.sidebar .bottom { margin-top: auto; display: grid; gap: 8px; }
.sidebar .bottom .btn { height: 44px; font-size: 14px; }
.sidebar .bottom form { margin: 0; display: grid; }
.dash-top { display: none; }
.dash-main { max-width: 1080px; padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) 80px; }
@media (max-width: 859px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .dash-top { display: block; background: var(--surface); border-bottom: 1px solid var(--line); }  /* scrolls away with the page */
  .dash-top .bar { height: 68px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
  .dash-top .logo { --logo-h: 30px; }
  .dash-top .menu-toggle { display: grid; }
}
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.dash-head h1 { font: 400 clamp(30px, 3.4vw, 42px)/1.1 var(--serif); letter-spacing: -.01em; }
.dash-head p { margin-top: 6px; color: var(--ink-2); }
.stats { margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr)); gap: 12px; }
@media (max-width: 520px) { .stats div { padding: 12px 14px; } .stats dd { font-size: 26px; } }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.stats dt { font-size: 13px; color: var(--ink-3); }
.stats dd { margin: 4px 0 0; font: 400 30px var(--serif); }
.items-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1180px) { .items-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.item-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.item-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow-sm); scroll-margin-top: 120px; }
.item-rows li.dragging { opacity: .45; }
.item-rows li.over { border-color: var(--accent); }
.item-rows .grip { cursor: grab; width: 28px; text-align: center; color: #A9A094; font-size: 18px; letter-spacing: -2px; user-select: none; flex: none; }
.item-rows .ph { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; flex: none; background: var(--sand); }
.item-rows .info { flex: 1; min-width: 0; }
.item-rows .info a { color: var(--ink); text-decoration: none; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-rows .info a:hover { text-decoration: underline; }
.item-rows .sub { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-rows .by { font-size: 13px; font-weight: 600; margin-top: 3px; }
.item-rows .by.reserved { color: var(--reserved); }
.item-rows .by.purchased { color: var(--accent); }
.item-rows .move { display: flex; flex-direction: column; margin: 0; }
.item-rows .move button { width: 36px; height: 24px; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); font-size: 12px; }
@media (max-width: 520px) { .item-rows .badge { display: none; } }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.panel-card h2 { font: 400 20px var(--serif); margin-bottom: 14px; }
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.activity li { display: flex; gap: 12px; font-size: 14px; line-height: 1.45; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sand); flex: none; display: grid; place-items: center; font-weight: 600;
  font-size: 12px; color: var(--ink-2); }
.activity .when { display: block; font-size: 12px; color: var(--ink-3); }
.activity-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.activity-list li { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--sand); }
.activity-list li:last-child { border-bottom: 0; }
.activity-list .avatar { width: 40px; height: 40px; font-size: 13px; }
.activity-list .text { flex: 1; font-size: 15px; }
.activity-list .text q { display: block; color: var(--ink-2); font-style: italic; font-size: 14px; margin-top: 2px; }
.activity-list .when { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.gift-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gift-rows li { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.gift-rows .ph { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex: none; background: var(--sand); }
.gift-rows .who-col { flex: 1 1 220px; min-width: 0; }
.gift-rows .who-col p:first-child { font-weight: 600; }
.gift-rows .who-col p + p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.gift-rows .where { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-3); min-width: 150px; }
.gift-rows .where strong { color: var(--ink); }
.gift-rows .thank-col { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; min-width: 130px; margin-left: auto; }
.thank-sent { color: var(--accent); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.sent-msg-preview { margin-top: 6px; }
.sent-msg-preview summary { cursor: pointer; color: var(--ink-3); font-size: 12px; text-decoration: underline; }
.sent-msg-preview .sent-msg-text { margin-top: 6px; padding: 8px 12px; background: var(--sand-tint, #f9f8f5); border-left: 2px solid var(--accent); border-radius: 4px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
@media (max-width: 720px) {
  .gift-rows .thank-col { width: 100%; align-items: flex-start; margin-left: 0; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--sand); }
}
.progressbar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 20px; }
.progressbar div { height: 100%; background: var(--accent); transition: width .4s; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(18px, 3vw, 28px); }
.danger-zone { margin-top: 24px; padding: 20px; border-radius: 8px; border: 1px solid var(--danger-tint); background: var(--surface); }
.registry-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }

/* Auth & simple pages */
.auth { max-width: 480px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) 0; }
.auth h1 { font: 400 clamp(30px, 3.6vw, 40px)/1.1 var(--serif); letter-spacing: -.01em; margin-bottom: 8px; }
.auth .intro { color: var(--ink-2); margin-bottom: 24px; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(31, 27, 22, .05);
}
.btn-google:hover {
  background: var(--ivory);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-google:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn-google svg {
  flex-shrink: 0;
}
.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line);
}
.auth-divider span {
  padding: 0 12px;
}

/* Gift photo with "upload your own" camera button */
.photo-edit { position: relative; flex: none; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--sand); }
.list-row .photo-edit { width: 60px; height: 60px; border-radius: 6px; }
.photo-edit.lg { width: 120px; height: 120px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.photo-edit img { width: 100%; height: 100%; object-fit: cover; }
.photo-edit.lg img { object-fit: contain; }
.photo-edit form { margin: 0; }
.photo-edit .cam { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(31, 27, 22, .5); color: var(--ivory); cursor: pointer; opacity: 0; transition: opacity .15s; font-weight: 600; font-size: 14px; }
.photo-edit .cam input { display: none; }
.photo-edit:hover .cam, .photo-edit .cam:focus-visible { opacity: 1; }
.photo-edit .cam:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.photo-edit.no-photo { border: 1.5px dashed var(--line-strong); background: var(--surface); }
.photo-edit.no-photo .cam { opacity: 1; background: transparent; color: var(--ink-3); }
.photo-edit.no-photo:hover .cam { color: var(--accent); }
.photo-edit.uploading .cam { opacity: 1; cursor: progress; }
.photo-edit.uploading .cam svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
/* Touch screens have no hover: keep a small camera badge visible. */
@media (hover: none) {
  .photo-edit:not(.no-photo):not(.uploading) .cam { opacity: 1; inset: auto 3px 3px auto; width: 24px; height: 24px; border-radius: 50%; background: rgba(31, 27, 22, .65); }
  .photo-edit:not(.no-photo):not(.uploading) .cam svg { width: 14px; height: 14px; }
}

/* Dashboard v2: open layout, grouped lists instead of a box per row */
/* Names on the left; Share / Add gift on the right. */
.dash-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 24px; margin-bottom: 32px; }
.dash-hero h1 { font: 400 clamp(32px, 4vw, 48px)/1.05 var(--serif); letter-spacing: -.01em; margin: 6px 0 6px; }
.dash-hero .meta a { color: var(--accent); }
.notice { margin: 0 0 20px; padding: 12px 16px; border-radius: 6px; background: var(--reserved-tint); color: var(--reserved); font-weight: 500; font-size: 15px; }
.summary { margin-bottom: 36px; }
.summary p { font-size: 15px; margin-bottom: 10px; }
.summary strong { font: 400 20px var(--serif); }
.summary .progressbar { margin: 0; height: 6px; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.list-head h2 { font: 400 22px var(--serif); }
.items-layout { gap: 40px; }
@media (min-width: 1180px) { .items-layout { grid-template-columns: minmax(0, 1fr) 280px; } }

.item-rows { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.item-rows li { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 14px 14px 14px 6px;
  border-top: 1px solid var(--sand); transition: background .15s; }
.item-rows li:first-child { border-top: 0; }
.item-rows li:hover { background: var(--sand); }
.item-rows li.over { box-shadow: inset 0 2px 0 var(--accent); }
.item-rows .grip, .item-rows .move { opacity: 0; transition: opacity .15s; }
.item-rows li:hover .grip, .item-rows li:hover .move, .item-rows .move:focus-within { opacity: 1; }
@media (hover: none) { .item-rows .grip, .item-rows .move { opacity: 1; } }
.item-rows .photo-edit { border-radius: 6px; }
.item-rows .info a { font-size: 16px; }
.item-rows .sub { margin-top: 2px; }
.item-rows .star { color: var(--reserved); font-weight: 600; }
.item-rows .status { flex: none; font-size: 13px; color: var(--ink-3); text-align: right; max-width: 190px; }
.item-rows .status .gifted { color: var(--accent); font-weight: 600; }
.item-rows li.purchased .info a { color: var(--ink-2); }
@media (max-width: 640px) {
  .item-rows li { padding-left: 12px; }
  .item-rows .grip, .drag-hint { display: none; }
  .item-rows .move { opacity: 1; }
  .item-rows .status { display: none; }
  .item-rows li.purchased .sub::after { content: " · Bought"; color: var(--accent); font-weight: 600; }
}

.feed .activity { gap: 18px; border-left: 1px solid var(--line); padding-left: 16px; margin-left: 4px; }
.feed .activity li { position: relative; }
.feed .avatar { width: 30px; height: 30px; font-size: 11px; background: var(--accent-tint); color: var(--accent); }

.gift-rows, .activity-list { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gift-rows li { border: 0; border-radius: 0; border-top: 1px solid var(--sand); background: transparent; }
.gift-rows li:first-child { border-top: 0; }

/* Underline tabs (settings) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 12px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-2);
  font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

/* Public registry v2: simple banner + toolbar + gift rows (list or grid) */
.banner { position: relative; overflow: hidden; margin-top: clamp(16px, 3vw, 28px); border-radius: 8px; background: var(--sand);
  min-height: clamp(220px, 28vw, 320px); display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.banner-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner-text { position: relative; }
.banner h1 { font: 400 clamp(32px, 4.6vw, 54px)/1.08 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.banner h1 em { color: var(--accent); }
.banner p { margin-top: 14px; font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; }
.banner .sep { width: 1.5px; height: 22px; background: var(--ink); opacity: .6; }
@media (max-width: 560px) { .banner p { flex-direction: column; gap: 4px; } .banner .sep { display: none; } }

/* Registry description card on public page */
.registry-story {
  width: fit-content;
  max-width: 520px;
  min-width: 240px;
  margin: 18px auto 0;
  padding: 14px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(36, 76, 58, .04);
  text-align: center;
  box-sizing: border-box;
}
.registry-story-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
  opacity: .9;
}
.registry-story-icon {
  color: var(--accent);
  flex-shrink: 0;
}
.registry-story-body {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  text-wrap: pretty;
  word-break: break-word;
}
.registry-story-body p {
  margin: 0 0 6px;
}
.registry-story-body p:last-child {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .registry-story {
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 14px 12px 0;
    padding: 12px 18px;
  }
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 18px; }
.toolbar select { width: auto; min-width: 200px; height: 48px; min-height: 48px; border-radius: 6px; }
.toolbar .btn.quiet { height: 48px; }
.view-switch { display: flex; gap: 4px; }
.view-switch button { width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.view-switch button[aria-pressed="true"] { color: var(--accent); background: var(--accent-tint); }
@media (max-width: 640px) { .toolbar select { flex: 1 1 140px; min-width: 0; } .view-switch { display: none; } }

.gift-list { display: grid; gap: 12px; }
.gift { display: grid; grid-template-columns: 150px minmax(0, 1fr) 240px; align-items: center; gap: 24px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; scroll-margin-top: 90px; }
.gift[hidden] { display: none; }
.g-photo { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--sand-deep); }
.g-photo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.photo-edit img, .item-rows .ph, .gift-rows .ph, .list-row .thumb { background: var(--sand-deep); }
.g-tag { position: absolute; top: 8px; left: 8px; }
.g-store { font-weight: 700; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.g-wanted { font-size: 12px; font-weight: 600; color: var(--reserved); background: var(--reserved-tint); padding: 2px 8px; border-radius: 999px; }
.gift h3 { font: 500 18px/1.35 var(--sans); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-price { margin-top: 10px; font: 600 17px var(--sans); color: var(--ink-2); }
.g-action { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.g-action .btn { width: 100%; white-space: normal; line-height: 1.2; text-align: center; }
.g-done { background: #A9BEB2; cursor: pointer; color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: background var(--ease); }
.g-done:hover { background: #96AC9F; color: #fff; }
.g-done[aria-disabled="true"] { cursor: default; }
.g-done[aria-disabled="true"]:hover { background: #A9BEB2; }
.g-purchased-tag { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--sand-deep); padding: 2px 8px; border-radius: 999px; }
.g-by { font-size: 13px; color: var(--ink-3); }
.g-already { font-size: 13px; color: var(--ink-2); }
.gift.purchased .g-photo img, .gift.purchased .g-info { opacity: .6; }
@media (max-width: 860px) {
  .gift { grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; }
  .g-action { grid-column: 1 / -1; }
}

/* Grid view */
.gift-list.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.gift-list.grid .gift { grid-template-columns: 1fr; gap: 12px; align-items: stretch; }
.gift-list.grid .g-photo { aspect-ratio: 4 / 3; }
.gift-list.grid .g-action { grid-column: auto; margin-top: auto; }

/* Home */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.home .site-nav { border-bottom-color: transparent; }
.hp-label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--heading); margin-bottom: 14px; }
.hp-display { font: 400 clamp(40px, 4.8vw, 64px)/1.04 var(--serif); letter-spacing: -.02em; color: var(--heading); }
.hp-display em { color: var(--accent); }
.hp-h2 { font: 400 clamp(30px, 3.4vw, 44px)/1.08 var(--serif); letter-spacing: -.015em; color: var(--heading); text-wrap: balance; }
.hp-lead { margin-top: 20px; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 440px; }
.hp-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.hp-link:hover { text-decoration: underline; }
.hp-section { padding-top: clamp(48px, 6vw, 64px); }
/* An empty photo slot shows as a soft block until a photo is set in content.HOME_IMAGES. */
.hp-hero-img, .hp-life-img, .hp-circle, .hp-guide-img, .hp-avatar { background: var(--sand-deep); overflow: hidden; }
.hp-hero-img img, .hp-life-img img, .hp-circle img, .hp-guide-img img, .hp-avatar img, .hp-tile img, .hp-banner > img {
  width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hp-hero { position: relative; min-height: clamp(400px, 34vw, 460px); display: flex; align-items: center; overflow: hidden; background: var(--sand); }
.hp-hero-in { position: relative; z-index: 2; width: 100%; padding-top: 48px; padding-bottom: 48px; }
.hp-hero-text { max-width: min(480px, 46%); }
.hp-hero-img { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 58%; }
.hp-hero-img::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--sand) 0%, rgba(239, 233, 223, .55) 12%, rgba(239, 233, 223, 0) 30%),
    linear-gradient(rgba(24, 28, 24, .34), rgba(24, 28, 24, .34)); }
.hp-search { position: relative; margin-top: 30px; display: flex; align-items: center; gap: 6px; max-width: 470px; padding: 6px 6px 6px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-md); }
.hp-search > .icon { width: 18px; height: 18px; color: var(--ink-3); }
.hp-search input { flex: 1; min-width: 0; height: 46px; min-height: 46px; border: 0; background: transparent; padding: 0 6px; font-size: 15px; }
.hp-search input:focus { outline: none; }
.hp-search:focus-within { outline: 3px solid rgba(36, 76, 58, .25); }
.hp-search .btn { height: 46px; padding: 0 26px; font-size: 14px; border-radius: 999px; }
.hp-search .search-results { top: 66px; }
@media (max-width: 820px) {
  .hp-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hp-hero-img { position: relative; width: 100%; height: 280px; order: -1; }
  .hp-hero-img::before { background: linear-gradient(0deg, var(--sand) 0%, rgba(239, 233, 223, 0) 35%),
    linear-gradient(rgba(24, 28, 24, .3), rgba(24, 28, 24, .3)); }
  .hp-hero-in { padding-top: 8px; }
  .hp-hero-text { max-width: none; }
}

/* Dark hero: the photo runs behind the text under a charcoal gradient; type turns light. */
.hp-hero.dark { background: #1C211D; }
.hp-hero.dark .hp-hero-img { width: 72%; }
.hp-hero.dark .hp-hero-img::before { background: linear-gradient(90deg, #1C211D 0%, rgba(28, 33, 29, .82) 16%,
  rgba(28, 33, 29, .45) 42%, rgba(28, 33, 29, .25) 100%); }
.hp-hero.dark .hp-hero-img img { object-position: 50% 22%; }
.hp-hero.dark .hp-label { color: var(--gold); }
.hp-hero.dark .hp-display { color: #fff; }
.hp-hero.dark .hp-display em { color: var(--gold); }
.hp-hero.dark .hp-lead { color: rgba(255, 255, 255, .82); }
.hp-hero.dark .hp-search { border-color: transparent; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
@media (max-width: 820px) {
  .hp-hero.dark .hp-hero-img { width: 100%; height: 300px; }
  .hp-hero.dark .hp-hero-img::before { background: linear-gradient(0deg, #1C211D 0%, rgba(28, 33, 29, 0) 50%),
    linear-gradient(rgba(22, 26, 23, .3), rgba(22, 26, 23, .3)); }
  .hp-hero.dark .hp-hero-in { padding-bottom: 40px; }
}

/* Features */
.hp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 44px; padding-bottom: 44px; }
.hp-feature { padding-left: clamp(0px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; }
.hp-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.hp-feature:hover .hp-feature-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}
.hp-feature:nth-child(1) .hp-feature-icon {
  background: #FEF2ED;
  color: #C85A32;
  border: 1px solid rgba(200, 90, 50, .14);
}
.hp-feature:nth-child(2) .hp-feature-icon {
  background: #FDF0F4;
  color: #D14968;
  border: 1px solid rgba(209, 73, 104, .14);
}
.hp-feature:nth-child(3) .hp-feature-icon {
  background: #EEF2FD;
  color: #3B5BDB;
  border: 1px solid rgba(59, 91, 219, .14);
}
.hp-feature-icon .icon, .hp-feature > .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.hp-feature h2 { margin-top: 14px; font: 400 24px/1.25 var(--serif); color: var(--heading); }
.hp-feature p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); max-width: 310px; }
.hp-feature .btn, .hp-feature-btn { border-radius: 999px; height: 42px; padding: 0 22px; font-size: 13.5px; font-weight: 600; gap: 8px; margin-top: auto; }
@media (max-width: 760px) { .hp-features { grid-template-columns: 1fr; gap: 28px; } }

/* More than gifts */
.hp-life { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--sand); padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 48px); padding-right: var(--gutter); }
.hp-life-img { margin-left: max(var(--gutter), calc((100vw - 1120px) / 2 - 40px)); aspect-ratio: 19 / 10; }
.hp-life-text { padding: 32px 0; max-width: 400px; }
.hp-life-text p:not(.hp-label) { margin: 14px 0 18px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
@media (max-width: 820px) {
  .hp-life { grid-template-columns: 1fr; padding: 0 var(--gutter) 24px; gap: 0; }
  .hp-life-img { margin: 0 calc(var(--gutter) * -1); }
  .hp-life-text { padding: 28px 0 12px; max-width: none; }
}

/* Stats */
.hp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; text-align: center; }
.hp-stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hp-stats .icon { width: 24px; height: 24px; color: var(--accent); stroke-width: 1.4; margin-bottom: 4px; }
.hp-stats div:nth-child(1) .icon { color: #C85A32; }
.hp-stats div:nth-child(2) .icon { color: #168B83; }
.hp-stats div:nth-child(3) .icon { color: #D14968; }
.hp-stats div:nth-child(4) .icon { color: #3B5BDB; }
.hp-stats strong { font: 400 40px/1.05 var(--serif); color: var(--heading); }
.hp-stats span { font-size: 12px; color: var(--ink-2); }
@media (max-width: 640px) { .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }

/* Stores banner */
.hp-banner { position: relative; overflow: hidden; background: #2B2A24; min-height: 220px; display: flex; align-items: center; }
.hp-banner > img { position: absolute; inset: 0; }
.hp-banner::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20, 20, 16, .78) 0%, rgba(20, 20, 16, .45) 40%, rgba(20, 20, 16, 0) 75%); }
.hp-banner-in { position: relative; z-index: 2; width: 100%; padding-top: 40px; padding-bottom: 40px; }
.hp-banner .hp-h2 { color: #fff; font-size: clamp(30px, 3vw, 38px); }
.hp-banner .btn { margin-top: 22px; height: 44px; padding: 0 20px; font-size: 13px; border-radius: 4px; }
#all-stores { padding-top: 24px; }
.hp-stores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hp-stores li { min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 500; }
.hp-stores img { width: 24px; height: 24px; flex: none; border-radius: 6px; object-fit: contain; }
.hp-stores li.any { justify-content: center; color: var(--accent); font-weight: 600; border-style: dashed; }
@media (max-width: 960px) { .hp-stores { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hp-stores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Categories */
.hp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 960px; margin: 8px auto 0; }
.hp-tile { position: relative; aspect-ratio: 16 / 9.5; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 14px; text-decoration: none; background: linear-gradient(160deg, #B9AE9E, #7B6F60); }
.hp-tile img { position: absolute; inset: 0; transition: transform .5s var(--ease); }
.hp-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20, 16, 12, .38); transition: background .3s var(--ease); }
.hp-tile:hover::before { background: rgba(20, 16, 12, .48); }
.hp-tile span { position: relative; z-index: 2; font: 400 16px/1.25 var(--serif); letter-spacing: -.01em; color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); max-width: 90%; }
.hp-tile:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .hp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hp-tile span { font-size: 14px; } }

/* Curated collections */
.hp-collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin: 8px auto 0; }
.hp-collection { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hp-circle { width: min(150px, 100%); aspect-ratio: 1; border-radius: 50%; }
.hp-collection h3 { margin-top: 16px; font: 400 21px/1.25 var(--serif); color: var(--heading); }
.hp-collection p { margin: 4px 0 10px; font-size: 12px; line-height: 1.5; color: var(--ink-3); max-width: 170px; }
.hp-collection .hp-link { font-size: 12px; }
@media (max-width: 760px) { .hp-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }

/* Testimonials */
.hp-quotes { background: var(--sand); margin-top: clamp(48px, 6vw, 64px); padding: 44px 0 36px; }
.hp-quotes-in { display: flex; align-items: center; justify-content: center; gap: 24px; }
.hp-quote-track { flex: 1; max-width: 640px; }
.hp-quote { margin: 0; text-align: center; }
.hp-quote blockquote { margin: 0; font: 400 clamp(21px, 2vw, 25px)/1.35 var(--serif); color: var(--heading); text-wrap: balance; }
.hp-quote figcaption { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; }
.hp-avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.hp-quote strong { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--heading); }
.hp-quote small { display: block; font-size: 11px; color: var(--ink-3); }
.hp-stars { margin-left: 24px; color: var(--gold); letter-spacing: .12em; font-size: 14px; }
.hp-arrow-btn { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow-md);
  color: var(--heading); font-size: 22px; line-height: 1; cursor: pointer; }
.hp-arrow-btn:hover { color: var(--accent); }
.hp-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.hp-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.hp-dots span.on { background: var(--accent); }

/* Guides */
.hp-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.hp-guide-img { aspect-ratio: 16 / 7; border-radius: 4px; }
.hp-tag { margin-top: 16px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hp-guide h3 { margin-top: 4px; font: 400 22px/1.25 var(--serif); color: var(--heading); }
.hp-guide p:not(.hp-tag) { margin: 8px 0 10px; font-size: 13px; line-height: 1.55; color: var(--ink-3); max-width: 260px; }
.hp-guide .hp-link { font-size: 12px; }
/* Home "Love, ideas & inspiration": blog posts (blog/_card.html). One or two still look like a row, not a gap. */
.hp-posts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hp-posts .hp-guide-img { display: block; }
.hp-posts .hp-guide p:not(.hp-tag) { max-width: none; }
.hp-posts h3 a { color: inherit; text-decoration: none; }
.hp-posts h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.blog-card-meta .hp-tag { margin: 0; }
.blog-card-reading { font-size: 12px; color: var(--ink-3); }
.blog-card-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.blog-card-more { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.hp-posts.count-1 { grid-template-columns: minmax(0, 560px); }
.hp-posts.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.hp-posts-more { text-align: center; margin-top: 28px; }
@media (max-width: 768px) {
  .hp-guides,
  .hp-posts,
  .hp-posts.count-1,
  .hp-posts.count-2 {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 32px;
  }
}

/* FAQ */
.hp-faq { background: var(--sage); margin-top: clamp(48px, 6vw, 64px); padding: clamp(40px, 5vw, 56px) 0; }
.hp-faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.hp-faq .faq { border-top: 0; }
.hp-faq .faq summary { min-height: 46px; font-size: 14px; font-weight: 500; }
.hp-faq .faq summary::after { border: 0; background: none; width: 20px; height: 20px; color: var(--accent); font-size: 18px; }
.hp-faq .faq details p { font-size: 14px; }
.hp-faq-img { margin-top: 24px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--sand-deep); }
.hp-faq-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .hp-faq-in { grid-template-columns: 1fr; }
  .hp-faq-img { margin-top: 18px; aspect-ratio: 16 / 9; }
  .hp-faq-img img { object-position: 50% 30%; }
}

/* Inner pages built from the home page sections */
.hp-hero.sm { min-height: clamp(300px, 26vw, 380px); }
.hp-hero.sm .hp-display { font-size: clamp(36px, 4.4vw, 54px); }
.hp-hero .crumbs { padding: 0; margin-bottom: 14px; }
.hp-hero-text > .btn { margin-top: 28px; }
.hp-banner.cta { margin-top: clamp(48px, 6vw, 64px); }
main:has(> .hp-faq:last-child, > .hp-banner:last-child) + .site-footer { margin-top: 0; }
.hp-banner.cta + .hp-faq { margin-top: 0; }
.hp-guides.cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-guides.cats .hp-guide-img { aspect-ratio: 4 / 3; }
.hp-guides.cats h3 { margin-top: 14px; }
@media (max-width: 900px) { .hp-guides.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Home hero: results of a submitted search, under the search box (the live list floats; this one doesn't) */
.hp-search-results { margin-top: 12px; max-width: 470px; padding: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow-lg); text-align: left; }
.hp-search-results[hidden] { display: none; }
.hp-search input { scroll-margin-top: 120px; } /* /#q lands with the box below the sticky header */
.hp-search-results p { padding: 12px 10px; color: var(--ink-2); font-size: 15px; }

/* Gift ideas: idea cards, the empty state and the idea page */
.hp-ideas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 28px) clamp(14px, 2vw, 24px); }
.hp-idea-card { display: flex; flex-direction: column; min-width: 0; }
.hp-idea { display: block; flex: 1; color: inherit; text-decoration: none; }
/* "Add to my registry" under each card: at the bottom, so cards in a row line up whatever their name's length. */
.hp-idea-add { margin-top: 12px; }
.hp-idea-add form { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.hp-idea-add select { width: 100%; min-width: 0; height: 38px; min-height: 38px; font-size: 13.5px; }
.hp-idea-add > .btn { width: 100%; padding: 6px 10px; white-space: normal; height: auto; min-height: 40px; line-height: 1.25; }
.hp-idea-actions-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 6px; width: 100%; align-items: stretch; }
.hp-idea-actions-row .btn { height: 38px; min-height: 38px; padding: 0 8px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1; letter-spacing: -0.15px; }
.hp-btn-store {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); text-decoration: none; width: 100%;
}
.hp-btn-store:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.hp-btn-add {
  background: var(--accent); color: #fff; border: 1px solid var(--accent); cursor: pointer; width: 100%;
}
.hp-btn-add:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.hp-btn-add .icon { width: 13px; height: 13px; stroke-width: 2.4; color: #fff; flex-shrink: 0; }
.hp-btn-add.is-added, .hp-btn-add.is-added:hover { background: var(--accent-tint) !important; border-color: var(--accent) !important; color: var(--accent) !important; }
.hp-btn-lbl-short { display: none; }
@media (max-width: 768px) {
  .hp-idea-actions-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 5px; }
  .hp-idea-actions-row .btn { padding: 0 4px; font-size: 11.5px; }
  .hp-btn-lbl-text, .hp-btn-lbl-full { display: none; }
  .hp-btn-lbl-short { display: inline; }
}
.hp-idea-img, .hp-idea-photo { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.hp-idea-img img, .hp-idea-photo img { width: 100%; height: 100%; object-fit: contain; }
.hp-idea-img img { transition: transform .5s var(--ease); }
.hp-idea:hover .hp-idea-img img { transform: scale(1.03); }
.hp-idea h3 { margin-top: 10px; font: 400 16px/1.3 var(--serif); color: var(--heading); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.hp-idea:hover h3 { color: var(--accent); }
.hp-idea p { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) { .hp-ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hp-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hp-idea h3 { font-size: 14px; } }
.hp-empty { max-width: 560px; padding: clamp(24px, 4vw, 36px); background: var(--sand); border-radius: 8px; }
.hp-empty p:first-child { font: 400 24px/1.25 var(--serif); color: var(--heading); }
.hp-empty p + p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.hp-empty .btn { margin-top: 22px; }
.hp-idea-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: 12px; }
.hp-idea-text .hp-lead { margin-top: 16px; }
.hp-idea-meta { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.hp-idea-meta strong { font-size: 20px; font-weight: 600; color: var(--ink); }
.hp-idea-actions, .hp-idea-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hp-idea-actions { margin-top: 26px; }
.hp-idea-actions select { width: auto; max-width: 260px; height: 48px; min-height: 48px; }
.hp-idea-hint { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
/* An idea with several gifts: one row each, with its own store link. */
.idea-gifts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.idea-gifts li { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.idea-gift-img { width: 84px; height: 84px; flex: none; border-radius: 8px; overflow: hidden; background: var(--sand); }
.idea-gift-img img { width: 100%; height: 100%; object-fit: cover; }
.idea-gift-text { flex: 1; min-width: 0; }
.idea-gift-text h3 { font: 500 17px/1.35 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.idea-gift-text p { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 600px) {
  .idea-gifts li { flex-wrap: wrap; }
  .idea-gifts .btn { width: 100%; }
  .idea-gift-img { width: 64px; height: 64px; }
}
@media (max-width: 820px) {
  .hp-idea-page { grid-template-columns: 1fr; gap: 24px; }
  .hp-idea-actions .btn, .hp-idea-actions form, .hp-idea-actions select { width: 100%; max-width: none; }
}

/* Log in / sign up: form beside an image box */
.auth-split { max-width: 1120px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) 0; display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.auth-split .auth { max-width: none; margin: 0; padding: 0; }
.auth-photo { aspect-ratio: 4 / 5; max-height: 600px; width: 100%; border-radius: 8px; overflow: hidden; background: var(--sand-deep); }
.auth-photo img { width: 100%; height: 100%; object-fit: cover; }
.auth-split.photo-left { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.auth-split.photo-left .auth-photo { grid-column: 1; grid-row: 1; }
.auth-split.photo-left .auth { grid-column: 2; grid-row: 1; }
@media (max-width: 820px) {
  .auth-split, .auth-split.photo-left { grid-template-columns: 1fr; }
  .auth-split.photo-left .auth { grid-column: 1; }
  .auth-photo { display: none; }
}

/* Cover photo: settings preview and guest banner */
.photo-edit.cover { width: 100%; height: auto; aspect-ratio: 16 / 6; border-radius: 8px; background: var(--sand-deep); }
.photo-edit.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-edit.cover .cam { font-size: 15px; flex-direction: column; gap: 8px; }
.photo-edit.cover.no-photo { border: 1.5px dashed var(--line-strong); }
@media (hover: none) { .photo-edit.cover:not(.no-photo):not(.uploading) .cam { inset: auto 12px 12px auto; width: auto; height: 40px;
  padding: 0 14px; border-radius: 6px; flex-direction: row; } }
/* Same shape as the preview in settings, so couples see exactly what guests see. */
.banner.has-photo { background: #1F1B16; color: #fff; aspect-ratio: 16 / 6; min-height: 260px; }
@media (max-width: 700px) { .banner.has-photo { aspect-ratio: auto; } }
.banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 15, .25), rgba(20, 18, 15, .55)); }
.banner.has-photo .banner-art { display: none; }
.banner.has-photo .banner-text { z-index: 1; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.banner.has-photo h1 { color: #fff; }
.banner.has-photo h1 em { color: #E3CD9F; }
.banner.has-photo .sep { background: #fff; }
/* Settings › Shipping: the code step of an address change */
.code-step { display: grid; gap: 16px; max-width: 560px; }
.code-step-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.code-step-addresses > div { padding: 14px; border-radius: 8px; background: var(--ivory); overflow-wrap: anywhere; font-size: 15px; }
.code-step-addresses .hp-label { margin-bottom: 6px; }
.code-step input[name=code] { max-width: 220px; font-size: 22px; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.code-step-more { gap: 20px; }
.code-step-more form { margin: 0; }
@media (max-width: 520px) { .code-step-addresses { grid-template-columns: 1fr; } }
.cover-position { margin-top: 18px; }
.cover-position label { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.cover-position input[type=range] { flex: 1; accent-color: var(--accent); min-width: 120px; }
.cover-position .row { flex-wrap: wrap; }
@media (max-width: 520px) { .cover-position .btn { flex: 1 1 100%; } }

/* Registry switcher (sidebar) and "Your registries" page */
.switcher { position: relative; }
.switcher summary { list-style: none; cursor: pointer; }
.switcher summary::-webkit-details-marker { display: none; }
.switcher .chev { margin-left: auto; color: var(--ink-3); font-size: 16px; }
.switcher-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; }
.switcher-menu a { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.switcher-menu a small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.switcher-menu a:hover { background: var(--sand); color: var(--ink); }
.switcher-menu a[aria-current="page"] { background: var(--accent-tint); }
.switcher-menu a.new { color: var(--accent); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.registry-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), border-color .2s; }
.registry-card:hover { border-color: var(--accent); color: var(--ink); }
.rc-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.rc-link:hover { color: inherit; }
.rc-actions { display: flex; align-items: center; gap: 18px; padding: 10px 18px 14px; border-top: 1px solid var(--sand); font-size: 14px; font-weight: 600; }
.rc-actions a { color: var(--ink); text-decoration: none; }
.rc-actions a:hover { color: var(--accent); }
.rc-actions form { margin: 0 0 0 auto; }
.rc-actions .linkbtn { font-weight: 600; text-decoration: none; }
.rc-photo { position: relative; aspect-ratio: 16 / 7; background: var(--sand-deep); }
.rc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc-body { padding: 16px 18px 20px; display: grid; gap: 4px; }
.rc-body h3 { font: 400 24px/1.2 var(--serif); }
.registry-card.new { align-items: center; justify-content: center; gap: 8px; min-height: 200px; border-style: dashed; color: var(--accent); font-weight: 600; }
.registry-card.new span { font-size: 32px; line-height: 1; }

/* Motion & feedback: pages fade between each other, controls answer the hand, slow actions show progress.
   Everything here switches off with "reduce motion" (see the rule near the top). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; animation-timing-function: var(--ease); }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fill-in { from { transform: scaleX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.flow > * { animation: rise-in .45s var(--ease) both; }
.flow > :nth-child(3) { animation-delay: .04s; } .flow > :nth-child(4) { animation-delay: .08s; } .flow > :nth-child(n+5) { animation-delay: .12s; }
.flow form > * { animation: rise-in .45s var(--ease) both; }
.flow form > :nth-child(2) { animation-delay: .05s; } .flow form > :nth-child(3) { animation-delay: .1s; } .flow form > :nth-child(n+4) { animation-delay: .15s; }
.occasion-grid label { animation: rise-in .4s var(--ease) both; }
.occasion-grid label:nth-child(2) { animation-delay: .04s; } .occasion-grid label:nth-child(3) { animation-delay: .08s; }
.occasion-grid label:nth-child(4) { animation-delay: .12s; } .occasion-grid label:nth-child(5) { animation-delay: .16s; } .occasion-grid label:nth-child(6) { animation-delay: .2s; }

.btn { transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s var(--ease), opacity .2s; }
.btn:not(.quiet):not(.ghost):not(.outline):hover { box-shadow: 0 8px 18px rgba(36, 76, 58, .2); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none !important; }
.btn.is-busy { pointer-events: none; opacity: .88; }
.btn.is-busy::before { content: ""; width: 15px; height: 15px; flex: none; border-radius: 50%; border: 2px solid currentColor;
  border-right-color: transparent; animation: spin .7s linear infinite; }
.nav-link, .site-footer a, a { transition: color .15s, background .15s; }
input, select, textarea { transition: border-color .15s, outline-color .15s, box-shadow .15s; }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--ink-3); }

.choice, .occasion-grid label { transition: border-color .2s, background .2s, transform .15s var(--ease), box-shadow .2s; }
.choice:hover, .occasion-grid label:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.choice:has(input:checked):hover, .occasion-grid label:has(input:checked):hover { border-color: var(--accent); }
.choice:active, .occasion-grid label:active { transform: scale(.99); }
.occasion-grid label::after { content: "✓"; position: absolute; right: 18px; top: 50%; margin-top: -14px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 14px var(--sans); opacity: 0; }
.occasion-grid label:has(input:checked)::after { opacity: 1; animation: pop-in .3s var(--ease) both; }

.progress li { position: relative; overflow: hidden; }
.progress li.now { background: var(--line); }
.progress li.now::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: fill-in .7s var(--ease) .15s both; }

.toasts li { animation: toast-in .35s var(--ease) both; }

/* A thin bar at the top while the next page loads. */
.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; opacity: 0;
  box-shadow: 0 0 8px rgba(36, 76, 58, .35); pointer-events: none; }
.nav-progress.go { opacity: 1; width: 82%; transition: width 6s cubic-bezier(.08, .8, .2, 1), opacity .2s; }

/* Home sections ease in as they scroll into view (only when JavaScript can reveal them). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hp-stores li { transition: border-color .2s, box-shadow .2s; }
.hp-stores li:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.ready-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
  font: 700 26px var(--sans); margin: 8px auto 24px; box-shadow: 0 0 0 8px var(--accent-tint); animation: pop-in .45s var(--ease) .1s both; }

/* Guided tour (registry page, first visit) */
.tour-shade { position: fixed; inset: 0; z-index: 300; opacity: 0; transition: opacity .25s; }
.tour-shade.in { opacity: 1; } .tour-shade.out { opacity: 0; }
.tour-spot { position: fixed; z-index: 301; border-radius: 8px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(16, 41, 31, .58), 0 0 0 3px var(--gold);
  transition: top .35s var(--ease), left .35s var(--ease), width .35s var(--ease), height .35s var(--ease), opacity .25s, box-shadow .35s; }
.tour-spot.none { top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(16, 41, 31, .58); }
.tour-spot.out { opacity: 0; }
.tour-card { position: fixed; z-index: 302; width: min(360px, calc(100vw - 24px)); background: var(--surface); border-radius: 8px; padding: 20px 20px 16px;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), top .35s var(--ease), left .35s var(--ease); }
.tour-card.in { opacity: 1; transform: none; }
.tour-card.center { top: 50%; left: 50%; transform: translate(-50%, calc(-50% + 8px)); width: min(400px, calc(100vw - 24px)); text-align: center; padding: 28px 24px 18px; }
.tour-card.center.in { transform: translate(-50%, -50%); }
.tour-count { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.tour-card h2 { font: 400 24px/1.2 var(--serif); color: var(--heading); margin-bottom: 6px; }
.tour-text { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.tour-dots { display: flex; gap: 6px; margin: 16px 0 14px; }
.tour-card.center .tour-dots { justify-content: center; }
.tour-dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--line-strong); transition: width .25s var(--ease), background .25s; }
.tour-dots span.on { width: 18px; background: var(--accent); }
.tour-actions { display: flex; align-items: center; gap: 8px; }
.tour-actions .btn { height: 40px; }
.tour-skip { font-size: 13px; }
.touring { overflow: hidden; }
.tour-again { font-size: 13px; text-align: left; }

/* Collapsible dashboard sidebar (desktop). The choice is kept in this browser. */
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.side-toggle { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 6px; border: 0; background: none;
  color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, transform .3s var(--ease); }
.side-toggle:hover { background: rgba(240, 245, 241, .8); color: var(--ink); }
.side-toggle .icon { width: 20px; height: 20px; }
.sidebar .bottom .btn .icon { width: 18px; height: 18px; }
.side-link { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border: 0; background: none; border-radius: 6px;
  color: var(--ink-2); font: 500 14px var(--sans); text-decoration: none; cursor: pointer; width: 100%; text-align: left; }
.side-link:hover { background: rgba(240, 245, 241, .7); color: var(--ink); }
.side-link .icon { width: 18px; height: 18px; }
.sidebar .lbl, .sidebar .who .text, .sidebar .chev, .sidebar .logo, .side-nav small { transition: opacity .2s; }

.side-collapsed .shell { grid-template-columns: 76px minmax(0, 1fr); }
.side-collapsed .sidebar { padding: 20px 12px; overflow: visible; }
.side-collapsed .side-head { justify-content: center; }
.side-collapsed .sidebar .logo { display: none; }
.side-collapsed .side-toggle { transform: scaleX(-1); }
.side-collapsed .sidebar .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.side-collapsed .side-nav small, .side-collapsed .sidebar .who .text, .side-collapsed .sidebar .chev { display: none; }
.side-collapsed .sidebar .who { justify-content: center; padding: 8px; }
.side-collapsed .side-nav a, .side-collapsed .side-link { justify-content: center; padding: 0; }
.side-collapsed .sidebar .bottom .btn { padding: 0; }
.side-collapsed .switcher-menu { right: auto; width: 240px; }
/* Names appear beside the icons on hover when collapsed. */
.side-collapsed .sidebar [data-tip] { position: relative; }
.side-collapsed .sidebar [data-tip]:hover::after, .side-collapsed .sidebar [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 40;
  background: var(--heading); color: #fff; font: 500 13px var(--sans); padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  pointer-events: none; box-shadow: var(--shadow-md); }
.side-collapsed .switcher[open] .who::after { display: none; }
:root:not(.side-collapsed) .side-toggle[data-tip]::after { display: none; }

/* Dashboard v3: a white sidebar beside the content panel; each gift is its own card. */
:root { --card-shadow: 0 1px 2px rgba(31, 27, 22, .04), 0 6px 20px rgba(31, 27, 22, .06); }
.shell { grid-template-columns: 300px minmax(0, 1fr); background: var(--ivory); }
.sidebar { position: sticky; top: 0; z-index: 2; height: 100vh; border: 0; border-right: 1px solid var(--line); border-radius: 0;
  padding: 28px 18px 22px; gap: 22px; background: var(--surface); color: var(--ink); }
.dash-panel { min-width: 0; min-height: 100vh; background: var(--ivory); }
/* The sidebar column runs the page's full height, however long the page (its background and border), and its
   contents stay in view as the page scrolls. Phones: see the slide-in menu below. */
@media (min-width: 860px) {
  .sidebar, .side-collapsed .sidebar { position: relative; display: block; align-self: stretch; height: auto; min-height: 100vh;
    padding: 0; overflow: visible; }
  .side-inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 28px 18px 22px;
    overflow-y: auto; }
  .side-collapsed .side-inner { padding: 20px 12px; overflow: visible; }  /* the icons' labels show beside them */
}
@media (max-width: 859px) { .side-inner { display: contents; } }
.side-head { padding: 0 6px; }
.side-brand { display: flex; align-items: center; gap: 12px; color: var(--heading); text-decoration: none; font: 400 26px var(--serif); }
.side-brand:hover { color: var(--heading); }
.side-brand img { height: 32px; width: auto; max-width: none; }
.sidebar .side-toggle { color: var(--ink-3); }
.sidebar .side-toggle:hover { background: var(--ivory); color: var(--ink); }
.sidebar .who { background: var(--ivory); border: 0; border-radius: 10px; padding: 14px 14px 14px 16px; gap: 14px; color: var(--ink); }
.sidebar .who:hover { background: var(--accent-tint); color: var(--ink); }
.sidebar .who .dot { width: 40px; height: 40px; background: var(--accent); color: #fff; font: 600 17px var(--sans); }
.sidebar .who p { color: var(--ink); }
.sidebar .who p + p { color: var(--ink-3); }
.sidebar .switcher .chev { color: var(--ink-3); display: grid; transition: transform .2s var(--ease); }
.sidebar .switcher .chev .icon { width: 18px; height: 18px; }
.sidebar .switcher[open] .chev { transform: rotate(90deg); }
.side-nav { gap: 6px; }
.side-nav a { height: 54px; padding: 0 16px; gap: 16px; border-radius: 10px; color: var(--ink-2); }
.side-nav a .icon { width: 22px; height: 22px; color: var(--ink-3); transition: color .15s, transform .15s; }
.side-nav a:hover { background: var(--ivory); color: var(--ink); }
.side-nav a:hover .icon { transform: scale(1.08); }
.side-nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent); }
.side-nav a[aria-current="page"] .icon { color: var(--accent); }
.side-nav a[data-tip="Items"] .icon { color: #2B7A4B; }
.side-nav a[data-tour="activity"] .icon { color: #3B5BDB; }
.side-nav a[data-tip="Analytics"] .icon { color: #B37D28; }
.side-nav a[data-tip="Details & settings"] .icon { color: #5B616E; }
.side-nav a.mobile-only .icon { color: #C85A32; }
.side-link[data-tip="Chrome Extension"] .icon { color: #1A73E8; }
.side-link.tour-again .icon { color: #7C3AED; }
.sidebar form button.side-link[data-tip="Log out"]:hover .icon { color: #E11D48; }
.side-nav small { min-width: 26px; height: 26px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px;
  background: var(--ivory); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.side-nav a[aria-current="page"] small { background: var(--accent); color: #fff; }
.side-nav hr { display: none; }
.sidebar .bottom { gap: 12px; padding: 0 6px; }
.sidebar .bottom hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 12px; }
.sidebar .bottom .btn { height: 52px; border-radius: 999px; font-size: 15px; }
.sidebar .bottom .btn.outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.sidebar .bottom .btn.outline:hover { background: var(--accent-tint); color: var(--accent); }
.sidebar .bottom .btn.soft { background: var(--accent); color: #fff; }
.sidebar .bottom .btn.soft:hover { background: var(--accent-hover); color: #fff; }
.btn.soft { background: var(--accent-tint); color: var(--accent); }
.btn.soft:hover { background: #fff; color: var(--accent); }
.sidebar .side-link { min-height: 34px; color: var(--ink-3); font-size: 13px; }
.sidebar .side-link:hover { background: var(--ivory); color: var(--ink); }
.side-collapsed .shell { grid-template-columns: 92px minmax(0, 1fr); }
.side-collapsed .side-brand { display: none; }
.side-collapsed .sidebar .who { padding: 8px; }

.dash-main { max-width: 1240px; padding: 44px 40px 64px; }  /* capped: rows stay readable on 1920px screens */
.dash-panel .hp-label { color: var(--accent); font-size: 13px; letter-spacing: .06em; margin-bottom: 8px; }
.dash-hero h1, .dash-head h1 { font: 400 clamp(32px, 3.4vw, 44px)/1.08 var(--serif); letter-spacing: -.01em; color: var(--heading); margin: 0; }
.dash-main .btn { border-radius: 999px; }
.dash-hero .row { gap: 16px !important; }
.dash-hero .btn { height: 54px; padding: 0 28px; gap: 12px; font-size: 16px; }
.dash-hero .btn.quiet { background: var(--surface); color: var(--accent); border: 1px solid var(--line-strong); }
.dash-hero .btn.quiet:hover { border-color: var(--accent); }
.dash-hero .btn .icon { width: 20px; height: 20px; }
.drag-hint { font-size: 14px; }

.item-rows { gap: 16px; background: none; border: 0; border-radius: 0; overflow: visible; }
.item-rows li, .item-rows li:first-child { position: relative; gap: 22px; padding: 20px 20px 20px 22px; border: 0; border-radius: 12px;
  background: var(--surface); box-shadow: var(--card-shadow); }
.item-rows li:hover { background: var(--surface); box-shadow: 0 1px 2px rgba(31, 27, 22, .05), 0 10px 28px rgba(31, 27, 22, .09); }
.item-rows .grip { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 22px; font-size: 14px; }
.item-rows .photo-edit { border-radius: 10px; }
.item-rows .info a { font-size: 16px; line-height: 1.6; color: var(--heading); white-space: normal; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-rows .sub { display: flex; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--ink-3); white-space: normal; }
.item-rows .sub .icon { width: 18px; height: 18px; margin-right: 12px; }
.item-rows .sub span + span::before { content: "•"; margin: 0 12px; color: var(--line-strong); }
.item-rows .star { color: #B7701B; font-weight: 500; }
.item-rows .status { max-width: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill .icon { width: 18px; height: 18px; stroke-width: 2; }
.pill.open { background: var(--accent); color: #fff; }  /* white on #244C3A: 10:1 */
.pill.open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.pill.gifted { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.item-rows .go { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); }
.item-rows .go:hover { background: var(--sand); color: var(--accent); }
.item-rows .go .icon { width: 20px; height: 20px; }

/* "View registry": a small centered button under the gift list. */
.view-registry { margin-top: 28px; display: flex; justify-content: center; }
.view-registry .btn { height: 44px; padding: 0 22px; gap: 8px; font-size: 14px; color: var(--accent); background: var(--surface);
  border: 1px solid var(--line-strong); }
.view-registry .btn:hover { border-color: var(--accent); color: var(--accent); }
.view-registry .btn .icon { width: 18px; height: 18px; }

/* A gift without a photo: a gift icon in a soft box; the camera appears on hover, as on a real photo. */
.ph-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); opacity: .5; }
.ph-empty .icon { width: 42%; height: 42%; stroke-width: 1.3; }
.photo-edit.no-photo:not(.cover) { border: 0; background: var(--sand); }
.photo-edit.no-photo:not(.cover) .cam { opacity: 0; background: rgba(31, 27, 22, .5); color: var(--ivory); }
.photo-edit.no-photo:not(.cover):hover .cam, .photo-edit.no-photo:not(.cover) .cam:focus-visible { opacity: 1; color: var(--ivory); }

/* Other dashboard pages: the same floating cards on the panel. */
.dash-panel .form-card, .dash-panel .share-card, .dash-panel .empty { border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--card-shadow); }
.dash-panel .gift-rows { gap: 16px; background: none; border: 0; border-radius: 0; overflow: visible; }
.dash-panel .gift-rows li, .dash-panel .gift-rows li:first-child { padding: 20px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--card-shadow); }

/* Fluffy App-like Extension Callout Card */
html[data-extension-installed="true"] [data-browser-ext],
body[data-extension-installed="true"] [data-browser-ext] {
  display: none !important;
}
.ext-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8F5 100%);
  border: 1px solid rgba(36, 76, 58, 0.14);
  border-radius: 18px;
  box-shadow: 0 4px 20px -2px rgba(36, 76, 58, 0.07), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  margin-bottom: 28px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ext-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -4px rgba(36, 76, 58, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.ext-card.cf-ext {
  margin: 24px auto 28px;
}

/* Centralized App-like Extension Card (compact & sleek) */
.ext-card.is-centered {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 360px;
  width: 100%;
  margin: 24px auto 16px;
  padding: 18px 20px 16px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F5F9F6 50%, #EDF5F0 100%);
  border: 1px solid rgba(36, 76, 58, 0.14);
  border-radius: 18px;
  box-shadow: 0 8px 24px -4px rgba(36, 76, 58, 0.07), 0 2px 6px rgba(0, 0, 0, 0.02);
  transform-origin: center center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.ext-card.is-centered:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 76, 58, 0.25);
  box-shadow: 0 12px 28px -4px rgba(36, 76, 58, 0.12), 0 3px 8px rgba(0, 0, 0, 0.03);
}
.ext-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: rgba(36, 76, 58, 0.07);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ext-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .7; }
}
.ext-card.is-centered .ext-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #FFFFFF;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px -2px rgba(36, 76, 58, 0.1), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(36, 76, 58, 0.08);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ext-card.is-centered:hover .ext-card-icon {
  transform: scale(1.08) rotate(3deg);
}
.ext-card.is-centered .ext-card-icon img.browser-icon {
  width: 22px;
  height: 22px;
}
.ext-card.is-centered .ext-card-content {
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: 12px;
}
.ext-card.is-centered .ext-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
}
.ext-card.is-centered .ext-card-desc {
  font-size: 12px;
  line-height: 1.42;
  color: var(--ink-2);
  max-width: 290px;
}
.ext-card.is-centered .ext-card-btn {
  height: 34px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(36, 76, 58, 0.2);
}
.ext-card.is-centered .ext-card-btn .icon {
  width: 13px;
  height: 13px;
}
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(36, 76, 58, 0.24);
}

/* Notification Shake Animation */
@keyframes notif-shake {
  0% { transform: translateY(0) rotate(0deg); }
  15% { transform: translateY(-4px) rotate(-3deg) scale(1.02); }
  30% { transform: translateY(-1px) rotate(2.5deg) scale(1.02); }
  45% { transform: translateY(-3px) rotate(-2deg); }
  60% { transform: translateY(0) rotate(1.5deg); }
  75% { transform: translateY(-2px) rotate(-0.8deg); }
  90% { transform: translateY(0) rotate(0.4deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.ext-card-shake {
  animation: notif-shake 0.85s cubic-bezier(.36, .07, .19, .97) both !important;
}

.ext-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}
.ext-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(135deg, #E7F1EB 0%, #D8EAE0 100%);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 3px 8px rgba(36, 76, 58, 0.1);
}
.ext-card-icon .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.8;
  color: var(--accent);
}
.ext-card-icon img.browser-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.ext-card.compact .ext-card-icon img.browser-icon {
  width: 22px;
  height: 22px;
}
.side-link img.side-browser-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 2px;
}
.btn img.btn-browser-icon, .ext-card-btn img.btn-browser-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
  flex: none;
}
.ext-card-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ext-card-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.35;
}
.ext-card-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.ext-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(36, 76, 58, 0.24);
  transition: all .2s var(--ease);
}
.ext-card-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(36, 76, 58, 0.32);
}
.ext-card-btn .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

/* Compact version for the add gift dialog */
.ext-card.compact {
  padding: 14px 18px;
  border-radius: 14px;
  margin-top: 18px;
  margin-bottom: 0;
  gap: 14px;
}
.ext-card.compact .ext-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.ext-card.compact .ext-card-icon .icon {
  width: 20px;
  height: 20px;
}
.ext-card.compact .ext-card-title {
  font-size: 14px;
}
.ext-card.compact .ext-card-desc {
  font-size: 12.5px;
}
.ext-card.compact .ext-card-btn {
  height: 36px;
  padding: 0 16px;
  font-size: 12.5px;
}

@media (max-width: 680px) {
  .ext-card {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
    gap: 16px;
  }
  .ext-card-left {
    min-width: 0;
  }
  .ext-card-btn {
    width: 100%;
    height: 44px;
  }
}

@media (max-width: 859px) {
  .shell, .side-collapsed .shell { padding: 0; grid-template-columns: minmax(0, 1fr); background: var(--ivory); }
  .dash-panel { margin: 0; padding: 0; border-radius: 0; box-shadow: none; min-height: 100vh; background: var(--ivory); }
  .dash-main { padding: 24px 16px 64px; }
  .dash-hero .btn { height: 48px; padding: 0 20px; font-size: 15px; }
  .item-rows li, .item-rows li:first-child { gap: 14px; padding: 14px; }
  .item-rows .photo-edit { width: 72px !important; height: 72px !important; }
  .item-rows .sub { margin-top: 6px; font-size: 13px; }
  .item-rows .sub .icon { display: none; }
  .item-rows .sub span + span::before { margin: 0 6px; }
  .item-rows li.purchased .sub::after { margin-left: 6px; }
  .item-rows .go { width: 28px; }
  /* The sidebar as a menu sliding in from the left (where it sits on desktop), under the bar, over a dimmed page. */
  .sidebar, .side-collapsed .sidebar { display: flex; position: fixed; z-index: 61; top: 0; left: 0; bottom: 0; right: auto;
    width: min(360px, 88vw); height: auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); gap: 18px;
    overflow-y: auto; overscroll-behavior: contain; border: 0; box-shadow: var(--shadow-lg);
    transform: translateX(-100%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s linear .25s; }
  .sidebar.open { transform: none; visibility: visible; transition: transform .25s var(--ease); }
  .menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 -2px; }
  .menu-head .logo { --logo-h: 28px; }
  .sidebar .side-head { display: none; }
  .dash-backdrop { position: fixed; z-index: 60; inset: 0; background: rgba(31, 27, 22, .45); }
  /* The desktop's collapsed (icons only) choice doesn't apply to the menu. */
  .side-collapsed .sidebar .lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .side-collapsed .side-nav small { display: grid; }
  .side-collapsed .sidebar .who .text { display: block; }
  .side-collapsed .sidebar .chev { display: grid; }
  .side-collapsed .sidebar .who { justify-content: flex-start; padding: 14px 14px 14px 16px; }
  .side-collapsed .side-nav a, .side-collapsed .side-link { justify-content: flex-start; padding: 0 16px; }
  .side-collapsed .switcher-menu { width: auto; }
  .side-collapsed .sidebar [data-tip]::after { display: none !important; }
}
@media (min-width: 860px) { .mobile-only { display: none !important; } .dash-backdrop { display: none; } }

/* Create flow v2: a progress rail with a live guest-page preview beside the form. App type (sans), quiet controls. */
.cf { display: grid; grid-template-columns: 360px minmax(0, 1fr); min-height: 100vh; }
.cf-rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 44px;
  padding: 32px 32px 28px; background: var(--surface); border-right: 1px solid var(--line); }
.cf-rail .logo { --logo-h: 32px; }
.cf-steps { list-style: none; margin: 0; padding: 0; }
.cf-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 28px; }
.cf-steps li:last-child { padding-bottom: 0; }
.cf-steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 6px; width: 1.5px; background: var(--line); }
.cf-steps li.done::before { background: var(--accent); }
.cf-steps .num { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink-3); font: 600 13px var(--sans); transition: box-shadow .2s, background .2s; }
.cf-steps .num .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.cf-steps li.now .num { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.cf-steps li.done .num { border-color: var(--accent); background: var(--accent); color: #fff; }
.cf-steps strong { display: block; margin-top: 5px; font: 600 14px var(--sans); color: var(--ink); }
.cf-steps li:not(.now):not(.done) strong { color: var(--ink-3); }
.cf-steps small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }

.cf-preview { margin: auto 0 0; }
.cf-preview figcaption { margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.cf-preview-card { padding: 10px 10px 14px; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; }
.cf-preview-url { display: block; padding: 2px 4px 9px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-preview-banner { padding: 28px 12px; border-radius: 8px; background: var(--accent-tint); text-align: center; }
.cf-preview-banner strong { display: block; font: 400 24px/1.15 var(--serif); color: var(--heading); overflow-wrap: anywhere; }
.cf-preview-banner strong.is-empty { color: var(--ink-3); }
/* Step 2's cover picker: a slim drop area until a photo is chosen, then the guest page's banner shape. */
.cf [data-cover-pick].no-photo { aspect-ratio: auto; height: 112px; background: var(--surface); }
.cf-preview-banner.has-photo { background: #1F1B16 center / cover no-repeat;
  box-shadow: inset 0 0 0 100vmax rgba(20, 18, 15, .45); }  /* darkened, as on the guest page */
.cf-preview-banner.has-photo strong, .cf-preview-banner.has-photo strong.is-empty, .cf-preview-banner.has-photo small { color: #fff; }
.cf-preview-banner small { display: block; margin-top: 8px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.cf-preview-row { display: block; height: 9px; margin: 12px 4px 0; border-radius: 4px; background: var(--line); }
.cf-preview-row.short { width: 58%; margin-top: 8px; }
.cf-note { font-size: 13px; color: var(--ink-3); }

.cf-main { min-width: 0; display: flex; flex-direction: column; }
.cf-top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 24px 56px 0; }
.cf-top .logo, .cf-count, .cf-bar { display: none; }
.cf-top .exit { min-height: 40px; display: flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.cf-top .exit:hover { color: var(--ink); text-decoration: underline; }
.cf .flow { width: 100%; padding: 32px 56px 64px; }
.cf .flow h1 { margin-bottom: 8px; font: 400 36px/1.12 var(--serif); letter-spacing: -.01em; color: var(--heading); }
.cf .flow .intro { margin-bottom: 32px; font-size: 15px; color: var(--ink-2); }

.cf .field { gap: 8px; font-size: 13px; color: var(--ink-2); }
.cf input[type=text], .cf input[type=email], .cf input[type=password], .cf input[type=url] { height: 48px; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: 8px; font-size: 15px; font-weight: 400; }
.cf input::placeholder { color: #93A09A; }
.cf input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.cf .grid-2 { gap: 0 16px; }
.cf fieldset { margin-top: 6px; }
.cf legend { margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }

.cf .occasion-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.cf .occasion-grid label { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 2px 14px; min-height: 0;
  padding: 18px 44px 18px 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.cf .occasion-grid label:hover { border-color: var(--ink-3); box-shadow: none; }
.cf .occasion-grid .oc-icon { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  background: var(--ivory); color: var(--ink-2); transition: transform .15s var(--ease), background .15s, color .15s; }
.cf .occasion-grid label:hover .oc-icon { transform: scale(1.05); }
.oc-icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }

/* Distinct beautiful palettes for each occasion */
.cf .occasion-grid .oc-wedding { background: #FBF5EB; color: #B37D28; }
.cf .occasion-grid label:has(input[value="wedding"]:checked) { border-color: #B37D28; background: var(--surface); box-shadow: 0 0 0 3px rgba(179, 125, 40, .18); }
.cf .occasion-grid label:has(input[value="wedding"]:checked) .oc-wedding { background: #F5E7CD; color: #946419; }
.cf .occasion-grid label:has(input[value="wedding"]:checked)::after { border-color: #B37D28; }

.cf .occasion-grid .oc-baby { background: #EDF7F6; color: #168B83; }
.cf .occasion-grid label:has(input[value="baby"]:checked) { border-color: #168B83; background: var(--surface); box-shadow: 0 0 0 3px rgba(22, 139, 131, .18); }
.cf .occasion-grid label:has(input[value="baby"]:checked) .oc-baby { background: #D5EFEB; color: #0F6B65; }
.cf .occasion-grid label:has(input[value="baby"]:checked)::after { border-color: #168B83; }

.cf .occasion-grid .oc-housewarming { background: #FEF2ED; color: #C85A32; }
.cf .occasion-grid label:has(input[value="housewarming"]:checked) { border-color: #C85A32; background: var(--surface); box-shadow: 0 0 0 3px rgba(200, 90, 50, .18); }
.cf .occasion-grid label:has(input[value="housewarming"]:checked) .oc-housewarming { background: #FBDDD0; color: #A34320; }
.cf .occasion-grid label:has(input[value="housewarming"]:checked)::after { border-color: #C85A32; }

.cf .occasion-grid .oc-birthday { background: #FCEDF2; color: #C03666; }
.cf .occasion-grid label:has(input[value="birthday"]:checked) { border-color: #C03666; background: var(--surface); box-shadow: 0 0 0 3px rgba(192, 54, 102, .18); }
.cf .occasion-grid label:has(input[value="birthday"]:checked) .oc-birthday { background: #F8D1DE; color: #9B264F; }
.cf .occasion-grid label:has(input[value="birthday"]:checked)::after { border-color: #C03666; }

.cf .occasion-grid .oc-graduation { background: #EEF0FC; color: #4A56C4; }
.cf .occasion-grid label:has(input[value="graduation"]:checked) { border-color: #4A56C4; background: var(--surface); box-shadow: 0 0 0 3px rgba(74, 86, 196, .18); }
.cf .occasion-grid label:has(input[value="graduation"]:checked) .oc-graduation { background: #D9DCF8; color: #3741A6; }
.cf .occasion-grid label:has(input[value="graduation"]:checked)::after { border-color: #4A56C4; }

.cf .occasion-grid .oc-other { background: #FDF0F2; color: #D04860; }
.cf .occasion-grid label:has(input[value="other"]:checked) { border-color: #D04860; background: var(--surface); box-shadow: 0 0 0 3px rgba(208, 72, 96, .18); }
.cf .occasion-grid label:has(input[value="other"]:checked) .oc-other { background: #F9DDE2; color: #A83348; }
.cf .occasion-grid label:has(input[value="other"]:checked)::after { border-color: #D04860; }

.cf .occasion-grid strong { align-self: end; font: 600 15px var(--sans); color: var(--ink); }
.cf .occasion-grid label > span:last-child { align-self: start; font-size: 13px; color: var(--ink-3); }
.cf .occasion-grid label::after { content: ""; top: 16px; right: 16px; width: 18px; height: 18px; margin: 0; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--surface); opacity: 1; animation: none; transition: border .15s; }
.cf .occasion-grid label:has(input:checked)::after { border: 5.5px solid var(--accent); animation: none; }

.cf .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cf .choice { padding: 16px; border: 1px solid var(--line-strong); border-radius: 10px; }
.cf .choice:has(input:checked) { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-tint); }
.cf .choice input { width: 18px; height: 18px; }
.cf .choice strong { font-size: 14px; }
.cf .choice small { font-size: 13px; color: var(--ink-3); }
.cf .flow h2.part { margin: 36px 0 4px; padding-top: 28px; border-top: 1px solid var(--line); font: 400 24px var(--serif); color: var(--heading); }
.cf .part-sub { margin-bottom: 18px; font-size: 14px; color: var(--ink-3); }

.cf .paste { gap: 8px; }
.cf .paste input { height: 48px; }
.cf .paste .btn { height: 48px; border-radius: 8px; }
.cf .list { gap: 8px; }
.cf .list-row { gap: 16px; padding: 10px 12px 10px 10px; border-radius: 10px; }
.cf .list-row .label { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.cf .list-row .name a { text-decoration: none; font-size: 15px; }
.cf .list-row .name a:hover { color: var(--accent) !important; }
.cf .list-row .price { font: 600 15px var(--sans); color: var(--ink); }
.cf .list-row .icon-btn { width: 36px; height: 36px; color: var(--ink-3); }
.cf .list-row .icon-btn:hover { color: var(--danger); }
.cf-empty { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface); }
.cf-empty .oc-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #FEF2ED; color: #C85A32; }
.cf-empty strong { font-size: 14px; }
.cf-empty p { font-size: 13px; color: var(--ink-3); }
.cf .ready-badge { width: 48px; height: 48px; margin: 0 0 20px; box-shadow: 0 0 0 6px var(--accent-tint); }
.cf .ready-badge .icon { width: 24px; height: 24px; stroke-width: 2.4; color: #fff; }
.cf .share-card { border-radius: 10px; }

.cf .flow-actions .btn { gap: 8px; }
.cf .flow-actions .btn .icon { width: 18px; height: 18px; }
.btn.back { background: none; color: var(--ink-2); padding: 0 6px; }
.btn.back:hover { background: none; color: var(--ink); box-shadow: none !important; transform: none; text-decoration: underline; }
@media (min-width: 901px) {
  .cf .flow-actions { position: static; margin-top: 32px; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line);
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cf .flow-actions .inner { max-width: none; }
  .cf .flow-actions .btn { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 8px; }
  .cf .flow-actions .btn.back { padding: 0 6px; }
  .has-flow-actions .toasts { bottom: 24px; }
}
@media (max-width: 900px) {
  .cf { grid-template-columns: minmax(0, 1fr); }
  .cf-rail { display: none; }
  .cf-top { position: sticky; top: 0; z-index: 20; height: 60px; padding: 0 16px; justify-content: space-between;
    background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .cf-top .logo { display: block; --logo-h: 28px; }
  .cf-count { display: block; margin-left: auto; font-size: 13px; color: var(--ink-3); }
  .cf-bar { display: block; position: sticky; top: 60px; z-index: 20; height: 3px; background: var(--line); }
  .cf-bar span { display: block; height: 100%; background: var(--accent); transition: width .4s var(--ease); }
  .cf .flow { padding: 24px 16px 120px; }
  .cf .flow h1 { font-size: 32px; }
}
@media (max-width: 560px) { .cf .occasion-grid, .cf .choices { grid-template-columns: minmax(0, 1fr); } }

/* "Before you buy" page: the address to copy, three steps, then a countdown to the store */
.buy-page { padding: clamp(20px, 5vw, 56px) var(--gutter) clamp(40px, 6vw, 72px); }
.buy-card { max-width: 740px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: clamp(22px, 5vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.buy-item { display: flex; align-items: center; gap: 16px; }
.buy-thumb { width: 76px; height: 76px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.buy-thumb img { width: 100%; height: 100%; object-fit: contain; }
.buy-item h1 { font: 400 clamp(23px, 3.4vw, 28px)/1.2 var(--serif); color: var(--heading); text-wrap: balance; }
.buy-item h1 b { font-weight: 400; font-style: italic; color: var(--ink); }
.buy-store { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.store-mark { width: 22px; height: 22px; flex: none; border-radius: 6px; object-fit: contain; }
.store-mark.mono { display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font: 600 12px/1 var(--sans); }
.buy-note { padding: 10px 14px; border-radius: 8px; background: var(--reserved-tint); color: var(--reserved); font-size: 14px; }
.buy-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: step; }
.buy-steps li { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-radius: 10px; background: var(--ivory);
  font-size: 13px; line-height: 1.4; color: var(--ink-2); counter-increment: step; }
.buy-steps strong { display: block; color: var(--ink); font-weight: 600; }
.buy-steps strong::before { content: counter(step) ". "; color: var(--ink-3); font-weight: 500; }
.buy-steps li.key { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.buy-steps li.key strong { color: var(--accent); }
.buy-step-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #FEF2ED; color: #C85A32; }
.buy-steps li.key .buy-step-icon { background: #E8F5ED; color: #1E7B48; }
.buy-step-icon .icon { width: 18px; height: 18px; }
.buy-address { padding: 18px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--ivory); }
.buy-address .hp-label { margin-bottom: 8px; }
.buy-address-text { font-size: 17px; line-height: 1.55; color: var(--ink); user-select: all; -webkit-user-select: all; }
.buy-address .btn { margin-top: 16px; }
.buy-address .btn.done { background: var(--accent-hover); }
.buy-go { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 16px; }
.buy-ring { position: relative; width: 52px; height: 52px; grid-row: span 2; }
.buy-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.buy-ring circle { fill: none; stroke-width: 3.5; }
.buy-ring .track { stroke: var(--line); }
.buy-ring .bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--progress, 0)); transition: stroke-dashoffset 1s linear; }
.buy-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 16px var(--sans); color: var(--ink); }
.buy-go-text { font-size: 15px; color: var(--ink-2); }
.buy-go-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.buy-ring[hidden] + .buy-go-text, .buy-ring[hidden] ~ .buy-go-actions { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .buy-ring .bar { transition: none; } }
@media (max-width: 520px) {
  .buy-steps { grid-template-columns: 1fr; }
  .buy-steps li { flex-direction: row; align-items: center; gap: 12px; }
  .buy-go-actions { grid-column: 1 / -1; }
  .buy-go-actions .btn { flex: 1 1 100%; }
}

/* Registry page: after "Buy at…", the card waits for the guest to say they bought it */
.g-pending { border: 0; border-radius: 999px; padding: 6px 12px; background: var(--accent-tint); color: var(--accent);
  font: 600 13px/1.3 var(--sans); cursor: pointer; }
.g-pending:hover { background: #D6E3D9; }
.gift.pending { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bought-sheet .bought-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.bought-sheet .bought-item img { width: 56px; height: 56px; flex: none; border-radius: 8px; object-fit: contain; background: #fff; }
.bought-sheet .bought-item p { font-weight: 600; line-height: 1.35; }
.bought-sheet .bought-item small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.bought-sheet .bought-why { font-size: 15px; color: var(--ink-2); }
.bought-sheet .bought-actions { display: grid; gap: 8px; margin-top: 4px; }

/* Dashboard: "Where should gifts be sent?" (a dialog; an inline card without JavaScript) */
.ship-sheet { max-width: min(460px, calc(100vw - 32px)); }
.ship-prompt { text-align: center; align-items: stretch; }
.ship-prompt-icon { width: 52px; height: 52px; margin: 0 auto 2px; border-radius: 50%; display: grid; place-items: center;
  background: #FEF2ED; color: #C85A32; }
.ship-prompt-icon .icon { width: 24px; height: 24px; }
.ship-prompt h2 { font: 400 28px/1.15 var(--serif); }
.ship-prompt-why { margin-top: -4px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ship-prompt .field { text-align: left; margin-top: 4px; }
.ship-prompt textarea { min-height: 112px; resize: vertical; }
.ship-prompt .error { text-align: left; }
.ship-prompt-later { align-self: center; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.ship-inline { max-width: 460px; margin: 24px auto 0; }
.ship-inline .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px; }

/* ── Responsive pass (360–1920px) ───────────────────────────────────────────
   Tap targets of at least 44px, long names that wrap instead of spilling, and line lengths capped on wide screens. */
.logo, .side-brand { min-height: 44px; display: flex; align-items: center; }
.site-nav .actions .btn { height: 44px; }
.btn.sm { height: 44px; }
@media (max-width: 759px) { .site-footer nav a { min-height: 44px; } }
.crumbs a, .hp-link, .g-already, .cf-top .exit { min-height: 44px; display: inline-flex; align-items: center; }
.linkbtn { min-height: 44px; }
.icon-btn, .cf .list-row .icon-btn, .item-rows .go { width: 44px; height: 44px; }
.side-toggle { width: 44px; height: 44px; }
.side-link, .sidebar .side-link { min-height: 44px; }
.switcher-menu a { min-height: 44px; justify-content: center; }
summary { min-height: 44px; align-content: center; cursor: pointer; }  /* stays a list item, so its ▶ marker shows */
input[type=file] { min-height: 44px; padding: 10px 0; font-size: 14px; }
.item-rows .move button { width: 44px; height: 22px; }  /* the pair stacks to 44px; drag is the main way to reorder */
/* A 150-character name or a long product title wraps rather than pushing the page wider. */
/* Headings break between words when they can (beside buttons), and inside a word only when it can't fit at all. */
h1, h2, h3 { overflow-wrap: break-word; }
.who .text p, .bought-item p, .list-row .name, .item-rows .info a, .switcher-menu a, .owner-note { overflow-wrap: anywhere; }
.dash-hero > div, .item-rows .info, .buy-item > div { min-width: 0; }
/* Readable line lengths on wide screens. */
.form-card { max-width: 760px; }
.dash-head p, .muted { max-width: 72ch; }
@media (max-width: 420px) {
  .registry-bar .logo { --logo-h: 26px; }
  .registry-bar .btn { padding: 0 14px; font-size: 14px; }
}
/* Small text links in rows: a 44px tall hit area without changing the layout (padding in, margin out). */
.rc-actions a, .rc-actions .linkbtn, .site-footer .bottom .legal a { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; }
.hp-label { overflow-wrap: anywhere; }
.dash-head > div { min-width: 0; }
/* Dialogs fit the visible screen, also with a phone's keyboard open (dvh shrinks with it); long ones scroll inside. */
dialog.sheet { max-height: calc(100dvh - 32px); overflow-y: auto; }
dialog.sheet.page { height: 100dvh; max-height: 100dvh; }
/* Links to #sections land below the sticky header, not under it. */
html { scroll-padding-top: 84px; }
/* Manage page on phones: photo beside the title and store, then a row with the status and ▲▼ (touch can't drag).
   The chevron goes: the two-line title opens the same page. */
@media (max-width: 640px) {
  .item-rows li, .item-rows li:first-child { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas: "photo info info" "photo status move"; gap: 8px 14px; align-items: center; padding: 14px; }
  .item-rows .photo-edit { grid-area: photo; align-self: start; }
  .item-rows .info { grid-area: info; }
  .item-rows .status { grid-area: status; display: block; justify-self: start; min-width: 0; }
  .item-rows .status .pill { height: auto; min-height: 32px; padding: 5px 12px; gap: 6px; font-size: 13px; line-height: 1.3;
    white-space: normal; overflow-wrap: anywhere; }
  .item-rows .status .pill .icon { width: 15px; height: 15px; flex: none; }
  .item-rows .move { grid-area: move; flex-direction: row; gap: 4px; }
  .item-rows .move button { width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); font-size: 13px; }
  .item-rows .go { display: none; }
  .item-rows li.purchased .sub::after { content: none; }
  .item-rows .sub { margin-top: 4px; }
  .item-rows .status .pill { text-align: left; }
  .item-rows .sub .star { flex-basis: 100%; }  /* its own line, without a leading "•" */
  .item-rows .sub .star::before { content: none; }
}
.item-rows li:only-child .move { visibility: hidden; }  /* nothing to reorder */
/* Settings tabs scroll sideways on phones: fade the edge so the rest of the tabs look reachable. */
@media (max-width: 640px) {
  .tabs { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent);
    padding-right: 32px; }
}
@media (hover: none) { .drag-hint { display: none; } }  /* touch can't drag; ▲▼ are the way there */
/* Share card: "Copy link" matches the link box beside/under it (not the dashboard's round buttons); full width on phones. */
.dash-main .share-link .btn { border-radius: 6px; }
@media (max-width: 520px) { .share-link .btn { flex: 1 1 100%; } }

/* Dashboard Analytics: stat tiles, single-series daily bars (thin, 2px gaps, rounded tops, recessive axis), tables. */
.an-periods { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.an-periods .chip { text-decoration: none; display: inline-flex; align-items: center; }
.an-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.an-tile, .an-card { background: var(--surface); border-radius: 12px; box-shadow: var(--card-shadow); padding: 20px; }
.an-tile p { color: var(--ink-3); font-size: 14px; }
.an-tile .an-num { font: 400 40px/1.1 var(--serif); color: var(--ink); margin-bottom: 4px; }
.an-card { margin-bottom: 16px; }
.an-card h2 { font: 400 22px/1.2 var(--serif); margin-bottom: 4px; }
.an-bars { margin-top: 16px; }
.an-none { margin-top: 16px; padding: 28px 16px; border-radius: 8px; background: var(--ivory); color: var(--ink-3); text-align: center; font-size: 14px; }
.an-plot { height: 160px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 50%; }
.an-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; outline: none; }
.an-bar i { width: 100%; height: max(var(--h), 2px); background: var(--accent); border-radius: 4px 4px 0 0; }
.an-bar:hover i, .an-bar:focus-visible i { background: var(--accent-hover); }
.an-bar:hover::after, .an-bar:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(var(--h) + 8px); left: 50%;
  transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 8px; white-space: nowrap;
  pointer-events: none; z-index: 2; }
.an-bar:first-child:hover::after, .an-bar:first-child:focus-visible::after { left: 0; transform: none; }
.an-bar:last-child:hover::after, .an-bar:last-child:focus-visible::after { left: auto; right: 0; transform: none; }
.an-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.an-tableview { margin-top: 12px; font-size: 14px; }
.an-tableview summary { cursor: pointer; color: var(--ink-3); }
.an-tableview .an-table { margin-top: 8px; }
.an-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.an-table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.an-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.an-table th:last-child, .an-table td:last-child { text-align: right; }
.an-table td:first-child { padding-right: 12px; overflow-wrap: anywhere; }
.an-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.an-split .an-card { margin-bottom: 0; }
@media (max-width: 700px) {
  .an-tiles, .an-split { grid-template-columns: minmax(0, 1fr); }
  .an-tile .an-num { font-size: 32px; }
}

/* Guest activity: thank-you emails */
.thank-row { margin-top: 8px; }
.thank-row .btn { height: 36px; min-height: 36px; font-size: 13px; }
.thank-sent { color: var(--accent); font-weight: 500; }
.crumb-back { margin-bottom: 8px; font-size: 14px; }
.thank-form { display: grid; gap: 14px; max-width: 640px; }
.thank-form .field { margin: 0; }
.thank-form .btn { justify-self: start; }
.thank-recipient-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; max-width: 640px; }
.thank-recipient-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.guest-original-message { font-style: italic; color: var(--ink-2); margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--accent); font-size: 14px; }

/* "Add to my registry" after it's done (app.js): a green tick, not pressable again for that registry. */
.btn.is-added, .btn.is-added:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); cursor: default; }
