/* 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: var(--sans);  /* one type family: headings are the sans in bold */
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: var(--sans);
  --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; max-width: 100%; overflow-x: clip; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; max-width: 100%; overflow-x: clip; }
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, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; }
h2, h3, h4, h5, h6 { font-family: var(--heading-font); }
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: 700 clamp(38px, 5.4vw, 66px)/1.02 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.h1 { font: 700 clamp(32px, 4vw, 48px)/1.08 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.h2 { font: 700 clamp(28px, 3vw, 38px)/1.1 var(--heading-font); letter-spacing: -.015em; text-wrap: balance; }
.h3 { font: 700 22px/1.25 var(--heading-font); letter-spacing: -.01em; }
.h4 { font: 700 18px/1.3 var(--heading-font); }
.h5 { font: 700 15px/1.3 var(--heading-font); }
.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 .char-count { align-self: flex-end; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.field .char-count.is-low { color: var(--accent); }
.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);
}
.blog-search input,
.blog-search input[type="search"] {
  flex: 1; min-width: 0; height: 44px; min-height: 0 !important;
  border: 0 !important; border-width: 0 !important; border-style: none !important; border-color: transparent !important;
  border-radius: 0 !important; outline: none !important; outline-width: 0 !important; outline-style: none !important;
  box-shadow: none !important; -webkit-box-shadow: none !important;
  background: transparent !important; background-color: transparent !important;
  padding: 0 !important; margin: 0 !important; font-size: 15.5px; font-family: var(--sans); color: var(--ink);
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
}
.blog-search input:hover,
.blog-search input:active,
.blog-search input:focus,
.blog-search input:focus-visible,
.blog-search input[type="search"]:hover,
.blog-search input[type="search"]:active,
.blog-search input[type="search"]:focus,
.blog-search input[type="search"]:focus-visible {
  outline: none !important; outline-width: 0 !important; outline-offset: 0 !important;
  box-shadow: none !important; -webkit-box-shadow: none !important;
  border: 0 !important; border-width: 0 !important; border-style: none !important; border-color: transparent !important;
}
.blog-search input::-webkit-search-decoration,
.blog-search input::-webkit-search-cancel-button,
.blog-search input::-webkit-search-results-button,
.blog-search input::-webkit-search-results-decoration {
  -webkit-appearance: none !important; display: none !important;
}
.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; }
.my-registry-btn .icon { width: 18px; height: 18px; color: currentColor; }
.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: 820px) {
  .site-nav .logo { --logo-h: 26px; }
  .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; top: 64px; left: 0; right: 0; bottom: 0; height: calc(100dvh - 64px); 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; width: 100%; justify-content: center; }
  .drawer .my-registry-btn { margin-top: 16px; height: 50px; font-size: 16px; }
}

/* 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: 700 12px/1.2 var(--heading-font);
  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; }
/* The couple's cover photo in a small circle (their initials when there's none) */
.result-photo { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.result-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* While search results are open, the phone's sticky "Create registry" bar steps aside so it can't cover them */
body:has(.search-results:not([hidden])) .sticky-cta { display: none; }
.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: 700 24px/1.2 var(--heading-font); }
.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: 700 15px var(--heading-font); }
.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 {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.registry-bar .logo {
  --logo-h: 28px;
  flex-shrink: 0;
}

.registry-bar-actions,
.registry-bar .bar > .row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.registry-bar .btn {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

@media (max-width: 520px) {
  .registry-bar .logo {
    --logo-h: 22px;
  }

  .registry-bar-actions,
  .registry-bar .bar > .row {
    gap: 6px;
  }

  .registry-bar .btn {
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .registry-bar .btn {
    padding: 0 8px;
    font-size: 12px;
  }
}
  .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: 700 clamp(26px, 2.8vw, 34px)/1.1 var(--heading-font); 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: 700 17px/1.35 var(--heading-font); 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: 700 28px var(--serif); color: var(--ink-3); }
.empty h3 { font: 700 22px var(--heading-font); }
.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: 700 28px/1.15 var(--heading-font); }
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; }
/* "Add a gift": tabs for link / manual, and a details check after an import. */
.add-gift [hidden] { display: none !important; }
.add-gift .field { margin: 0; gap: 8px; color: var(--ink); }
.add-gift .field .optional { font-weight: 400; color: var(--ink-2); }
.add-gift input[type=text], .add-gift input[type=url], .add-gift input[type=number], .add-gift select { height: 52px; min-height: 52px;
  border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 400; }
.add-gift input::placeholder { color: #8A938D; }
.add-gift input:focus, .add-gift select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

.add-gift-ext { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: var(--accent); color: var(--surface); }
.add-gift-ext-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.add-gift-ext-icon .icon,
.add-gift-ext-icon img,
.add-gift-ext-icon .browser-icon { width: 22px; height: 22px; object-fit: contain; display: block; }
.add-gift-ext p { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.add-gift-ext strong { display: block; font-size: 15px; color: var(--surface); }
.add-gift-ext-btn { flex: none; padding: 9px 18px; border-radius: 999px; background: var(--surface); color: var(--accent); font: 600 14px var(--sans);
  text-decoration: none; white-space: nowrap; }
.add-gift-ext-btn:hover { background: var(--accent-tint); color: var(--accent); }

.add-gift-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ivory); }
.add-gift-tabs button { height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: 600 15px var(--sans); cursor: pointer; }
.add-gift-tabs button[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(31, 27, 22, .1); }

.add-gift-fields { display: flex; flex-direction: column; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.add-gift-url { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 16px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: var(--surface); }
.add-gift-url:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.add-gift-url > .icon { width: 20px; height: 20px; color: var(--ink-3); }
.add-gift .add-gift-url input { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.add-gift-url-status { display: inline-flex; align-items: center; gap: 4px; padding-right: 8px; color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
.add-gift-url-status:empty { display: none; }
.add-gift-url-status.is-loading { color: var(--ink-3); font-weight: 400; }
.add-gift-url-status .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.add-gift-url.is-imported .add-gift-paste { display: none; }
.add-gift-paste { flex: none; height: 42px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--accent-tint); color: var(--accent);
  font: 600 14px var(--sans); cursor: pointer; }
.add-gift-paste:hover { background: #D6E3DA; }

.add-gift-review { display: flex; flex-direction: column; gap: 18px; }
.add-gift-warn { display: flex; gap: 12px; padding: 16px; border: 1px solid #F0D9A8; border-radius: 12px; background: var(--reserved-tint);
  color: var(--reserved); font-size: 14px; line-height: 1.55; }
.add-gift-warn > .icon { width: 20px; height: 20px; margin-top: 1px; }
.add-gift-warn p { margin: 0; }
.add-gift-warn strong { font-weight: 700; }
.add-gift-warn .btn { height: 40px; margin-top: 12px; padding: 0 18px; border-radius: 999px; font-size: 14px; }
.add-gift-found { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 20px; }
.add-gift-photo { display: flex; flex-direction: column; gap: 10px; }
.add-gift-photo-tile { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: 12px;
  background: var(--ivory); }
.add-gift-photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.add-gift-photo-tile span { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; text-align: center; }
.add-gift .add-gift-photo-btn { height: 40px; border-color: var(--accent); border-radius: 8px; color: var(--accent); font-size: 14px; cursor: pointer; }
.add-gift .add-gift-photo-btn:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.add-gift-found-fields { display: flex; flex-direction: column; gap: 16px; }
.add-gift-money { position: relative; display: block; }
.add-gift-money > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 400; font-size: 15px; pointer-events: none; }
.add-gift .add-gift-money input { padding-left: 56px; }
.add-gift .add-gift-money input.is-missing { border-color: #D9A44A; }
.add-gift .add-gift-nudge { color: var(--reserved); }

.add-gift-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; }
.add-gift-drop { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 12px;
  background: var(--ivory); font-weight: 400; cursor: pointer; }
.add-gift-drop.is-over, .add-gift-drop:focus-within { border-color: var(--accent); background: var(--accent-tint); }
.add-gift-drop-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--accent-tint); color: var(--accent); }
.add-gift-drop-icon .icon { width: 20px; height: 20px; }
.add-gift-drop-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--ink-3); }
.add-gift-drop-copy strong { overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.add-gift .add-gift-drop .btn { height: 40px; padding: 0 18px; border-color: var(--accent); border-radius: 8px; color: var(--accent); font-size: 14px; }

.add-gift-wanted { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.add-gift-wanted-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #FCEBD6; color: #A3530B; transition: background .15s ease, color .15s ease; }
.add-gift-wanted-icon img.icon,
.add-gift-wanted-icon .icon { width: 18px !important; height: 18px !important; max-width: 18px !important; max-height: 18px !important; background: transparent !important; background-color: transparent !important; object-fit: contain !important; display: block; }
.add-gift-wanted:has(input:checked) { border-color: #E9B27C; background: #FFFAF4; }
.add-gift-wanted:has(input:checked) .add-gift-wanted-icon { background: #C2570C; color: #fff; }
.add-gift-wanted:has(input:checked) .add-gift-wanted-icon img.icon { filter: brightness(0) invert(1); }
.add-gift-wanted-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.add-gift-wanted-copy strong { color: var(--ink); font-size: 15px; }
.add-gift-wanted input { -webkit-appearance: none; appearance: none; position: relative; width: 48px; height: 28px; flex: none; margin: 0;
  border-radius: 999px; background: #8A9A90; cursor: pointer; transition: background .15s; }
.add-gift-wanted input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s var(--ease); }
.add-gift-wanted input:checked { background: #C2570C; }
.add-gift-wanted input:checked::after { transform: translateX(20px); }

.add-gift-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 4px; }
.add-gift .add-gift-actions .btn { height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; }
.add-gift .add-gift-actions .btn.ghost { font-weight: 600; }

@media (max-width: 600px) {
  .add-gift-ext { flex-wrap: wrap; }
  .add-gift-ext p { flex-basis: calc(100% - 54px); }
  .add-gift-ext-btn { margin-left: 54px; }
  .add-gift-found { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .add-gift-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .add-gift-drop .btn { display: none; }
  .add-gift-actions .btn:not(.ghost) { flex: 1; }
}

/* 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: 700 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: 700 22px var(--heading-font); 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: 700 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 .need-gift { color: var(--ink-2); font-size: 14px; }
.flow-actions .skip { height: 52px; padding: 0 16px; border: 0; background: none; color: var(--ink-2); font: 500 15px var(--sans); cursor: pointer; }
.flow-actions .skip:hover { color: var(--ink); text-decoration: underline; }
/* 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 .need-gift { flex: 1 1 0; min-width: 0; font-size: 13px; line-height: 1.3; }
  .flow-actions .skip { padding: 0 6px; font-size: 14px; white-space: nowrap; }
}
/* "Add your first gifts": the link box and its button on one row (the manual fields below keep their own sizes) */
.paste { margin-bottom: 18px; }
.paste [data-link-entry] { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.paste [data-link-entry] > input { flex: 1 1 280px; min-width: 0; height: 56px; }
.paste [data-link-entry] > .btn { height: 56px; border-radius: 6px; }
.paste [data-link-entry] > :is(.product-import-note, .add-preview-card, .add-preview-loading) { flex: 1 1 100%; margin: 0; }
.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; }
.share-email-form { gap: 12px !important; }
.share-email-form .field { width: 100%; margin: 0; }
.share-email-form textarea { min-height: 120px; resize: vertical; }
.share-email-form .btn { min-width: 180px; align-self: flex-start; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.channels a, .channels button { 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; cursor: pointer; }
.channels a:hover, .channels button:hover { border-color: var(--accent); color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.channels a:active, .channels button: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 :is(a, button).ch-mail .icon { color: #EA4335; }
.channels :is(a, button).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: 700 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: 700 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: 700 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: 700 20px var(--heading-font); 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-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.auth-back .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
  transition: transform .15s var(--ease);
}
.auth-back:hover {
  color: var(--ink);
  border-color: var(--ink-3);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  text-decoration: none;
}
.auth-back:hover .icon {
  transform: rotate(180deg) translateX(2px);
}
.auth h1 { font: 700 clamp(30px, 3.6vw, 40px)/1.1 var(--serif); letter-spacing: -.01em; margin-bottom: 8px; }
.auth .intro { color: var(--ink-2); margin-bottom: 24px; }
.auth .form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(22px, 3.5vw, 30px);
  box-shadow: 0 4px 20px rgba(31, 27, 22, .05);
}
.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: 700 clamp(32px, 4vw, 48px)/1.05 var(--serif); letter-spacing: -.01em; margin: 6px 0 6px; }
.dash-hero-title { flex: 1 1 420px; min-width: 0; }
.dash-hero-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin-top: 8px; }
.dash-hero-title-row h1 { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-hero-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.dash-registry-toggle { margin: 0; }
.registry-switch { display: inline-flex; align-items: center; gap: 9px; min-height: 30px; padding: 0; border: 0; background: transparent; color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; }
.registry-switch-track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #9CA3AF; transition: background .18s ease; }
.registry-switch-track span { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s ease; }
.registry-switch.is-on .registry-switch-track { background: var(--accent); }
.registry-switch.is-on .registry-switch-track span { transform: translateX(16px); }
.registry-switch:hover { color: var(--ink); }
.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: 700 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: 700 22px var(--heading-font); }
.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; 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%; border-radius: inherit; }
.banner-text { position: relative; }
.banner h1 { font: 700 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; } }

/* The owner's note for guests, under the names on the banner */
.banner .banner-note { max-width: 560px; margin: 16px auto 0; font-size: 15px; line-height: 1.6; text-wrap: pretty; overflow-wrap: anywhere; }
.banner .banner-note p { margin: 0 0 6px; display: block; font-weight: 400; font-size: inherit; letter-spacing: 0; text-transform: none; }
.banner .banner-note p:last-child { margin-bottom: 0; }
.banner:not(.has-photo) .banner-note { color: var(--ink-2); }

.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:not(.icon), .g-photo img:not(.icon) { 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: 700 18px/1.35 var(--heading-font); 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:not(.icon), .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; }
img.icon {
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  border: 0;
  box-sizing: content-box;
  background: transparent !important;
  background-color: transparent !important;
}
.btn:not(.quiet):not(.ghost):not(.back) img.icon:is(.icon-arrow, .icon-plus, .icon-check, .icon-chevron, .icon-search, .icon-upload, .icon-camera, .icon-link, .icon-edit, .icon-copy, .icon-panel) {
  filter: brightness(0) invert(1);
}
.cf-steps li.done .num img.icon {
  filter: brightness(0) invert(1);
}
.dash-shipping-head .btn .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
  margin-right: 4px;
}
.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: 700 clamp(28px, 4.4vw, 56px)/1.08 var(--serif); letter-spacing: -.02em; color: var(--heading); }
.hp-display em { color: var(--accent); }
.hp-h2 { font: 700 clamp(30px, 3.4vw, 44px)/1.08 var(--heading-font); 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(620px, 54%); }
.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;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}


.hp-feature-icon .icon, .hp-feature > .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.hp-feature-icon img { width: 32px; height: 32px; object-fit: contain; display: block; }
.hp-feature h2 { margin-top: 14px; font: 700 24px/1.25 var(--heading-font); 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: 700 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 {
    width: fit-content;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 24px;
}
#all-stores { padding-top: 24px; }
/* "What is Registryup?" video under the features */
.hp-video { background: var(--accent); padding: clamp(44px, 6vw, 64px) 0; }  /* a green band between the light sections */
.hp-video-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hp-video .hp-h2 { color: #fff; }
.hp-video-text p:not(.hp-label) { margin: 14px 0 22px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .85); }
.hp-video .btn { background: #fff; color: var(--accent); border-color: #fff; }
.hp-video .btn:hover { background: var(--ivory); color: var(--accent-hover); }
.hp-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1F1B16;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .28); }
.hp-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hp-video-play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.hp-video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-video-btn { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.hp-video-btn svg { margin-left: 4px; }  /* the triangle looks centred a little right of the middle */
.hp-video-play:hover .hp-video-btn, .hp-video-play:focus-visible .hp-video-btn { transform: scale(1.08); }
@media (max-width: 560px) { .hp-video-btn { width: 60px; height: 60px; } }
@media (max-width: 820px) { .hp-video-in { grid-template-columns: 1fr; } }  /* text, then the video, like the section below */
.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)); } }

/* 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: 700 21px/1.25 var(--heading-font); 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: 700 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-home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.hp-home-gift-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-home-tile { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; padding: 12px; border-radius: 8px; background: var(--sand-deep); text-align: center; text-decoration: none; }
.hp-more-occasions .hp-home-tile { border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.hp-more-occasions .hp-home-tile { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; aspect-ratio: auto; padding: 0; background: var(--surface); text-align: left; }
.hp-more-occasions .hp-home-tile > img { position: relative; inset: auto; flex: none; aspect-ratio: 16 / 10; height: auto; }
.hp-more-occasions .hp-home-tile::before { display: none; }
.hp-more-occasions .hp-home-tile span { max-width: none; padding: 12px 14px 14px; color: var(--heading); background: var(--surface); text-align: left; text-shadow: none; font-size: 16px; }
.hp-home-tile > img:not(.icon) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.hp-home-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20, 16, 12, .4); transition: background .2s ease; }
.hp-home-tile:hover::before { background: rgba(20, 16, 12, .5); }
.hp-home-tile span { position: relative; z-index: 2; max-width: 90%; color: #fff; font: 600 18px/1.25 var(--heading-font); text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.hp-home-tile:hover > img:not(.icon) { transform: scale(1.04); }
.hp-home-blog-posts .hp-guide h3 { font-weight: 700; }
.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: 700 22px/1.25 var(--heading-font); 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;
  }
}
@media (max-width: 768px) { .hp-home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .hp-home-tile span { font-size: 16px; } }

/* 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.ideas-category .hp-display { font-size: clamp(30px, 3.6vw, 44px); }
.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,
.hp-idea-add form > .btn {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  height: auto;
  min-height: 40px;
  line-height: 1.25;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.blog-card.hp-idea-card form.hp-idea-add {
  margin-top: auto;
  padding: 0 16px 16px;
  box-sizing: border-box;
}
.hp-idea-actions-row { display: grid; grid-template-columns: auto 1fr; gap: 6px; width: 100%; align-items: center; }
.hp-idea-actions-row .btn,
.hp-idea-actions-row a.btn,
.hp-idea-actions-row button.btn {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 8px !important;
  font-size: 12px !important;
  font-weight: 600;
  border-radius: 6px;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.15px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hp-btn-store {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); text-decoration: none; width: auto;
}
.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: 12px; height: 12px; stroke-width: 2.4; color: currentColor; 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: 1024px) {
  .hp-idea-actions-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .hp-idea-actions-row .btn,
  .hp-idea-actions-row a.btn,
  .hp-idea-actions-row button.btn {
    width: 100% !important;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hp-idea-actions-row .hp-btn-add {
    order: 1;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 600;
    border-radius: 6px;
    gap: 6px;
  }
  .hp-idea-actions-row .hp-btn-add .icon {
    width: 13px;
    height: 13px;
    stroke-width: 2.4;
  }
  .hp-idea-actions-row .hp-btn-store {
    order: 2;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 6px;
    gap: 4px;
  }
  .hp-btn-lbl-text, .hp-btn-lbl-full { display: inline !important; }
  .hp-btn-lbl-short { display: none !important; }
  .hp-idea-add .btn,
  .hp-idea-add form > .btn,
  .hp-idea-add > .btn {
    width: 100% !important;
    min-height: 40px !important;
    height: auto !important;
    font-size: 13.5px !important;
    padding: 8px 12px !important;
  }
  .blog-card.hp-idea-card form.hp-idea-add {
    padding: 0 14px 14px;
  }
}
@media (max-width: 600px) {
  .hp-idea-actions-row {
    gap: 5px;
  }
  .hp-idea-actions-row .hp-btn-add {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 12.5px !important;
  }
  .hp-idea-actions-row .hp-btn-store {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
  }
  .hp-btn-lbl-text, .hp-btn-lbl-full { display: inline !important; }
  .hp-btn-lbl-short { display: none !important; }
}
@media (max-width: 480px) {
  .ideas-category-gifts .hp-idea-add { padding: 0 8px 8px; }
  .ideas-category-gifts .hp-idea h3 { margin: 8px 8px 0; }
  .ideas-category-gifts .hp-idea p { margin: 4px 8px 8px; }
}
.hp-idea-img { aspect-ratio: 16 / 7; border-radius: 4px; overflow: hidden; background: var(--sand-deep); }
.ideas-category-gifts .hp-idea-card { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); }
.ideas-category-gifts .hp-idea-img { aspect-ratio: 1; border: 0; border-radius: 0; background: #fff; }
.hp-idea-photo { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.hp-idea-img img { width: 100%; height: 100%; object-fit: cover; }
.ideas-category-gifts .hp-idea-img img { object-fit: contain; }
.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: 4px; font: 700 22px/1.25 var(--heading-font); color: var(--heading); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.ideas-category-gifts .hp-idea h3 { margin: 10px 12px 0; font-size: 16px; }
.hp-idea:hover h3 { color: var(--accent); }
.hp-idea p { margin: 8px 0 10px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.ideas-category-gifts .hp-idea p { margin: 4px 12px 10px; }
.ideas-category-gifts .hp-idea-add { margin-top: auto; padding: 0 12px 12px; }
@media (max-width: 1080px) { .hp-ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hp-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } .hp-idea h3 { font-size: 17px; } .ideas-category-gifts .hp-idea h3 { font-size: 14px; } }
@media (max-width: 380px) { .hp-ideas { grid-template-columns: 1fr; } }
/* Featured gifts on the home page: the occasion gift cards in one row that scrolls sideways when they don't fit */
.ideas-featured .hp-lead.center { margin: 6px auto 0; text-align: center; }
.ideas-featured-row { display: flex; gap: clamp(14px, 2vw, 24px); margin-top: 20px; padding: 2px 2px 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; }
.ideas-featured-row > .hp-idea-card { flex: 0 0 calc((100% - 3 * clamp(14px, 2vw, 24px)) / 4); scroll-snap-align: start; }
@media (max-width: 1080px) { .ideas-featured-row > .hp-idea-card { flex-basis: calc((100% - 2 * 14px) / 2.6); } }
@media (max-width: 600px) { .ideas-featured-row > .hp-idea-card { flex-basis: calc((100% - 14px) / 1.7); } }
.hp-empty { max-width: 560px; padding: clamp(24px, 4vw, 36px); background: var(--sand); border-radius: 8px; }
.hp-empty p:first-child { font: 700 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: 700 17px/1.35 var(--heading-font); 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: 1024px) {
  .hp-idea-page { grid-template-columns: 1fr; gap: 28px; }
  .hp-idea-actions { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .hp-idea-actions form { display: flex; flex-direction: column; width: 100%; gap: 10px; }
  .hp-idea-actions .btn,
  .hp-idea-actions a.btn,
  .hp-idea-actions form button.btn,
  .hp-idea-actions select {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    justify-content: center;
    height: 48px;
    font-size: 15px;
  }
}

/* Log in / sign up: form beside an image box */
.auth-split { max-width: 1120px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 80px); 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 { position: relative; aspect-ratio: 4 / 5; max-height: 580px; width: 100%; border-radius: 14px; overflow: hidden; background: var(--sand-deep); box-shadow: 0 10px 32px rgba(31, 27, 22, .08); }
.auth-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-photo .auth-back {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  margin: 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  border: 1px solid rgba(255, 255, 255, .85);
  color: var(--ink);
}
.auth-photo .auth-back:hover {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.auth-back.mobile-only { display: none; }
.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; }
  .auth-back.mobile-only { display: inline-flex; margin-bottom: 20px; }
}

/* 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; border-radius: inherit; }
.banner.has-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; 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 a.rc-delete { margin-left: auto; color: var(--danger); }
.rc-actions a.rc-delete:hover { color: #A52D2D; }
.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: 700 24px/1.2 var(--heading-font); }
.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). */
@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); } }


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

.hp-stores li { transition: border-color .2s, box-shadow .2s; }
.hp-stores li:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

/* 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: 700 24px/1.2 var(--heading-font); 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: 700 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"] { width: 100%; justify-self: stretch; justify-content: center; padding: 0 12px; background: #dc2626; color: #fff; }
.sidebar form button.side-link[data-tip="Log out"] .icon,
.sidebar form button.side-link[data-tip="Log out"]:hover .icon { color: #fff; }
.sidebar form button.side-link[data-tip="Log out"]:hover { background: #b91c1c; color: #fff; }
.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: 700 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 .dash-hero-actions .btn { height: 48px; padding: 0 20px; gap: 8px; font-size: 14px; }
.dash-hero .dash-hero-actions .btn .icon { width: 18px; height: 18px; }
.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 { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: #FCEBD6; color: #A3530B; font-size: 11px; font-weight: 600; line-height: 1.4; vertical-align: middle; }
.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 */
.extension-notice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 7px 56px;
  background: #E5F3E9;
  border-top: 3px solid #1E7B48;
  border-bottom: 1px solid #B9D9C3;
  color: #293D30;
}
.extension-notice[hidden] { display: none; }
.extension-notice p { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; line-height: 1.4; }
.extension-notice p > img { width: 20px; height: 20px; flex: none; }
.extension-notice-copy { display: inline-flex; align-items: baseline; gap: 8px; }
.extension-notice strong { color: #173D26; font-weight: 700; }
.extension-notice-title-short { display: none; }
.extension-notice-detail { color: #45584B; }
.extension-notice a { padding: 5px 11px; border-radius: 999px; background: #1E7B48; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.extension-notice a:hover { background: #155D35; color: #fff; }
.extension-notice-close {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  font: 400 22px/1 var(--sans);
  cursor: pointer;
}
.extension-notice-close:hover { background: rgba(31, 27, 22, .07); color: var(--ink); }
.manual-gift-details { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.manual-gift-details summary { color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.manual-gift-fields { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 14px 0 0; border: 0; }
.manual-gift-fields .field, .manual-gift-fields .check { margin: 0; }
.product-import-note { margin: 6px 0 12px; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.product-import-note.is-extension { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--ink-2); }
.product-import-note.is-extension p { margin: 0; }
.product-import-note.is-extension strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .extension-notice { display: none !important; }
}

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;
}
img.btn-browser-icon, [data-browser-btn] img, .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 .row { width: calc(100% + 32px); box-sizing: border-box; margin-inline: -16px; padding-inline: 10px; flex-wrap: nowrap; gap: 5px !important; overflow-x: auto; scrollbar-width: none; }
  .dash-hero .row::-webkit-scrollbar { display: none; }
  .dash-hero .row > form { display: flex; flex: none; margin: 0; }
  .dash-hero .btn { height: 40px; flex: none; gap: 6px; padding: 0 7px; font-size: 12px; white-space: nowrap; }
  .dash-hero .dash-hero-actions .btn { height: 40px; padding: 0 12px; gap: 6px; font-size: 13px; }
  .dash-hero .btn .icon { width: 16px; height: 16px; }
  .dash-hero-title-row { gap: 8px; }
  .dash-hero-title-row h1 { font-size: clamp(20px, 5vw, 30px); }
  .dash-hero-actions { gap: 5px; }
  .registry-switch { gap: 7px; font-size: 12px; }
  .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: 700 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: 700 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], .cf input[type=number], .cf select { 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: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 0;
  padding: 16px 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 input[type="radio"],
.occasion-grid input[type="radio"] { position: static !important; opacity: 1 !important; pointer-events: auto !important;
  width: 20px !important; height: 20px !important; min-width: 20px !important; accent-color: var(--accent, #1B4D3E) !important; flex: none !important; margin: 0 0 0 auto !important; order: 3 !important; cursor: pointer !important; }
.cf .occasion-grid .oc-icon,
.occasion-grid .oc-icon { order: 1 !important; }
.cf .occasion-grid .oc-copy,
.occasion-grid .oc-copy { order: 2 !important; }
.cf .occasion-grid .oc-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; flex: 1 1 auto; min-width: 0; text-align: left; gap: 2px; }
.cf .occasion-grid .oc-copy strong { font: 600 15px var(--sans); color: var(--ink); margin: 0; align-self: flex-start; text-align: left; line-height: 1.2; }
.cf .occasion-grid .oc-copy span { font-size: 13px; color: var(--ink-3); margin: 0; align-self: flex-start; text-align: left; line-height: 1.3; }
.cf .occasion-grid .oc-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 0;
  background: transparent !important; color: var(--ink-2); transition: transform .15s var(--ease); flex: none; }
.cf .occasion-grid label:hover .oc-icon { transform: scale(1.08); }
.oc-icon .icon { width: 24px; height: 24px; stroke-width: 1.6; }
.oc-icon img { width: 34px; height: 34px; object-fit: contain; display: block; }

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

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

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

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

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

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

.cf .occasion-grid label::after,
.occasion-grid label::after { display: none !important; content: none !important; }

.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: 700 24px var(--heading-font); color: var(--heading); }
.cf .part-sub { margin-bottom: 18px; font-size: 14px; color: var(--ink-3); }

.cf .paste [data-link-entry] { gap: 8px; }
.cf .paste [data-link-entry] > input { height: 48px; }
.cf .paste [data-link-entry] > .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 .share-card { border-radius: 10px; }

.cf .flow-actions .btn { gap: 8px; }
.cf .flow-actions .btn .icon { width: 18px; height: 18px; }
.btn.back {
  background: #ffffff !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 8px !important;
  padding: 0 20px !important;
  height: 48px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: background .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease) !important;
}
.btn.back .icon {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
  transition: transform .15s var(--ease);
}
.btn.back:hover {
  background: #fdfdfd !important;
  border-color: var(--ink-3) !important;
  color: var(--ink) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .08) !important;
  text-decoration: none !important;
}
.btn.back:hover .icon {
  transform: rotate(180deg) translateX(2px);
}
@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 20px !important; }
  .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: inline-flex; align-items: center; gap: 8px; white-space: nowrap; --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: 700 16px/1.35 var(--sans);
  color: var(--heading);
  text-wrap: pretty;
}

.buy-item h1 b {
  font-weight: 700;
  color: var(--ink);
}
.buy-store { margin-top: 2px; display: flex; align-items: center; gap: 8px; font: 400 13px/1.35 var(--sans); color: var(--ink-3); }
.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; }
.shipping-address-display { font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.address-spoiler { display: inline; margin: 0; padding: 0 2px; border: 0; border-radius: 3px; background: #8b8d91; color: transparent; font: inherit; line-height: inherit; vertical-align: baseline; cursor: pointer; box-shadow: none; filter: blur(4px); transition: filter .18s ease, color .18s ease, background .18s ease; }
.address-spoiler:hover { background: #777a80; }
.address-spoiler.revealed { background: transparent; color: inherit; filter: none; cursor: text; }
.address-spoiler:focus-visible { outline: none; }
.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: 700 28px/1.15 var(--heading-font); }
.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; }

/* Dashboard shipping banner & dedicated page */
.ship-banner {
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 18px 24px;
}
.ship-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.ship-banner-copy h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}
.ship-banner-copy p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}
.ship-banner-btn {
  flex: none;
}
.dash-shipping-view {
  max-width: 600px;
  margin: 0 auto;
}
.dash-shipping-head {
  margin-bottom: 20px;
}
.dash-shipping-head .btn {
  font-size: 14px;
}
.ship-page-card {
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(31, 27, 22, .05);
}
.ship-page-card .ship-prompt-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-tint, #E3EFE6);
}
.ship-page-card h1 {
  font-size: clamp(24px, 4vw, 30px);
  margin-bottom: 8px;
  color: var(--ink);
}
.ship-page-card .ship-prompt-why {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.ship-page-form {
  text-align: left;
}
.ship-page-form textarea {
  min-height: 120px;
  resize: vertical;
}
.ship-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── 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, h4, h5, h6 { 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: 22px; }
  .registry-bar .btn { padding: 0 9px; font-size: 12px; height: 36px; }
}
/* 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. */
/* Analytics */
.an-periods { display: inline-flex; gap: 4px; margin: 18px 0 20px; padding: 4px; border-radius: 10px; background: var(--sand); max-width: 100%; overflow-x: auto; }
.an-period { flex: none; min-height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 7px;
  color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.an-period:hover { color: var(--ink); background: rgba(255, 255, 255, .55); }
.an-period.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 27, 22, .12); }
.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 22px; }
.an-tile-label { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.an-tile .an-num { margin: 6px 0 4px; font: 700 44px/1.05 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.an-hint { color: var(--ink-3); font-size: 13px; }
.an-hint a { color: var(--accent); font-weight: 600; text-decoration: none; }
.an-key { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.an-key.visits { background: #9DC3AE; }
.an-key.clicks { background: var(--accent); }
.an-card { margin-bottom: 16px; }
.an-card h2 { font: 700 22px/1.2 var(--heading-font); }
.an-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; }
.an-sub { margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.an-legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); }
.an-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.an-bars { margin-top: 28px; }
.an-plot { height: 190px; display: flex; align-items: stretch; gap: clamp(1px, .5vw, 6px); border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%; }
.an-col { flex: 1; min-width: 0; display: flex; align-items: flex-end; justify-content: center; gap: 1px; position: relative; outline: none; border-radius: 4px; }
.an-col i { flex: 1; max-width: 18px; height: max(var(--h), 2px); border-radius: 3px 3px 0 0; transition: filter .15s; }
.an-col i.v { background: #9DC3AE; }
.an-col i.c { background: var(--accent); }
.an-col i[style*="--h: 0%"] { opacity: .35; }
.an-col:hover, .an-col:focus-visible { background: rgba(36, 76, 58, .06); }
.an-col:hover i, .an-col:focus-visible i { filter: brightness(.9); }
.an-col:hover::after, .an-col:focus-visible::after { content: attr(data-tip); position: absolute; top: -10px; left: 50%;
  transform: translate(-50%, -100%); background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px;
  white-space: nowrap; pointer-events: none; z-index: 2; }
.an-col:nth-child(-n+3):hover::after, .an-col:nth-child(-n+3):focus-visible::after { left: 0; transform: translateY(-100%); }
.an-col:nth-last-child(-n+3):hover::after, .an-col:nth-last-child(-n+3):focus-visible::after { left: auto; right: 0; transform: translateY(-100%); }
.an-x { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.an-ticks { gap: clamp(1px, .5vw, 6px); }
.an-ticks span { flex: 1; text-align: center; }
.an-none { margin-top: 20px; padding: 32px 16px; border-radius: 10px; background: var(--ivory); color: var(--ink-3); text-align: center; font-size: 14px; }
.an-none strong { color: var(--ink); font-weight: 600; font-size: 15px; }
.an-none p + p { margin-top: 4px; }
.an-none .btn { margin-top: 14px; }
.an-tableview { margin-top: 14px; 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:not(:first-child), .an-table td:not(:first-child) { text-align: right; }
.an-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.an-split .an-card { margin-bottom: 0; }
.an-rank { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.an-rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 14px; }
.an-rank-name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-rank-n { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.an-rank-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--sand);
  background-image: linear-gradient(var(--accent), var(--accent)); background-size: var(--w) 100%; background-repeat: no-repeat; }
.an-empty { margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.an-foot { margin-top: 20px; color: var(--ink-3); font-size: 13px; }
@media (max-width: 700px) {
  .an-tiles, .an-split { grid-template-columns: minmax(0, 1fr); }
  .an-tiles { gap: 10px; }
  .an-tile .an-num { font-size: 34px; }
  .an-plot { height: 150px; }
}

/* 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: 700; 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; }

/* ==========================================================================
   Registry Up look (v3): Roboto in bold for headings, square-cornered buttons, a green "celebration" band
   (static/img/pattern-celebrate.svg) at the top of the dashboard pages and the guest page, white cards that sit
   over its lower edge, and dark green footers. Kept last so it wins over the earlier layers above.
   ========================================================================== */
:root {
  --line: #E1E7E3;
  --line-strong: #CBD4CE;
  --ink: #1F2A24;
  --ink-2: #4A544E;
  --ink-3: #66706A;
  --band: #234D3B;
  --band-deep: #1B3F31;
  --card-shadow: 0 1px 2px rgba(20, 40, 30, .05), 0 8px 24px rgba(20, 40, 30, .06);
}
body { -webkit-font-smoothing: antialiased; }
.btn { border-radius: 6px; font-weight: 700; }
.btn.quiet { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent); }
.btn.quiet:hover { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }
.dash-main .btn, .dash-hero .btn { border-radius: 6px; }

/* Logo: the gift mark and the name in type */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); line-height: 1; }
.logo:hover { color: var(--ink); }
.logo-mark { height: var(--logo-h, 34px); width: auto; flex: none; fill: var(--accent); }
.logo-word { font: 700 calc(var(--logo-h, 34px) * .84) var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.logo-word em { color: var(--accent); font-style: italic; }
.logo.reversed, .logo.reversed:hover, .logo.reversed .logo-word em { color: #fff; }
.logo.reversed .logo-mark { fill: #fff; }
.site-nav .logo, .registry-bar .logo { --logo-h: 28px; }

/* Site nav */
.site-nav { background: #fff; border-bottom: 1px solid var(--line); }
.site-nav .bar { height: 64px; }
.site-nav .links .nav-link { height: 64px; padding: 0 16px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: 0; }
.site-nav .links .nav-link[aria-current="page"] { color: var(--accent); font-weight: 700; }
.site-nav .links .nav-link[aria-current="page"]::after { left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--accent); }
.site-nav .actions .btn { height: 42px; padding: 0 18px; font-size: 15px; }

/* Site footer: dark green, with a darker strip for the copyright */
.site-footer { background: var(--band); border-top: 0; color: rgba(255, 255, 255, .9); }
.site-footer .brand .logo { --logo-h: 30px; }
.site-footer .brand p { color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.6; }
.site-footer h2 { color: rgba(255, 255, 255, .72); font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.site-footer nav a { color: #fff; font-size: 14px; font-weight: 500; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .bottom { max-width: none; margin: 0; padding: 20px max(var(--gutter), calc((100% - 1200px) / 2)); background: var(--band-deep);
  border-top: 0; color: #fff; font-weight: 500; font-size: 13px; }
.site-footer .bottom .bottom-note, .site-footer .bottom .bottom-dot { color: #fff; }
.site-footer .bottom .bottom-dot { display: none; }
.site-footer .bottom .legal a { color: #fff; text-decoration: underline; }

/* ---------- Dashboard shell ---------- */
.shell { grid-template-columns: 264px minmax(0, 1fr); background: var(--ivory); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); }
@media (min-width: 860px) {
  .side-inner { gap: 0; padding: 22px 16px 18px; }
}
.sidebar .side-head { padding: 0 4px; margin-bottom: 20px; }
.sidebar .side-head .logo { --logo-h: 26px; }
.side-back { display: flex; align-items: center; gap: 8px; padding: 4px 8px; margin-bottom: 12px; color: var(--accent); font-weight: 700;
  font-size: 14px; text-decoration: none; }
.side-back:hover { color: var(--accent-hover); text-decoration: underline; }
.side-back .icon { width: 16px; height: 16px; stroke-width: 2.2; transform: scaleX(-1); }
.side-label { margin: 0 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.side-back + .side-label { margin-top: 18px; }
.side-nav { gap: 2px; }
.side-nav a { height: 46px; padding: 0 10px 0 8px; gap: 12px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 400; }
.side-nav a .icon { width: 32px; height: 32px; padding: 8px; border-radius: 8px; background: #EEF1EF; color: #5B616E; }
.side-nav a:hover .icon { transform: none; }
.side-nav a[data-tip="Items"] .icon { background: #E3EFE6; color: #2B7A4B; }
.side-nav a[data-tour="activity"] .icon { background: #E8EDFC; color: #3B5BDB; }
.side-nav a[data-tip="Analytics"] .icon { background: #FCEEE2; color: #C2671E; }
.side-nav a.mobile-only .icon { background: #FBEAE3; color: #C85A32; }
.side-nav a:hover { background: var(--ivory); color: var(--ink); }
.side-nav a[aria-current="page"], .side-nav a[aria-current="page"]:hover { background: var(--accent); color: #fff; font-weight: 700; }
.side-nav a[aria-current="page"] .icon { background: rgba(255, 255, 255, .14); color: #fff; }
.side-nav a[aria-current="page"] .dash-icon { filter: brightness(0) invert(1); }
.side-nav small { min-width: 22px; height: 22px; padding: 0 6px; background: #EEF1EF; color: var(--ink); font-size: 11px; font-weight: 700; }
.side-nav a[aria-current="page"] small { background: #fff; color: var(--ink); }
.dash-icon { display: inline-block; vertical-align: middle; object-fit: contain; flex: none; }
.side-nav a .dash-icon { width: 24px; height: 24px; margin: 0 4px; background: transparent !important; transition: transform .15s var(--ease), filter .15s var(--ease); }
.side-nav a:hover .dash-icon { transform: scale(1.08); }
.sidebar .bottom { padding: 0; gap: 10px; }
.sidebar .bottom hr { margin: 0 0 4px; }
.sidebar .side-link { min-height: 34px; padding: 0 10px; gap: 10px; color: var(--ink-2); font-size: 14px; }
.sidebar .side-link .icon { width: 18px; height: 18px; }
.sidebar .side-link .dash-icon { width: 18px; height: 18px; }
.side-link.tour-again .icon { color: #7C3AED; }
.btn .dash-icon { width: 18px; height: 18px; flex: none; }
.side-collapsed .side-nav a .dash-icon { margin: 0; }
.sidebar form button.side-link[data-tip="Log out"],
.sidebar form .side-logout {
  height: 38px;
  width: 100%;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: #DC2626;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.sidebar form button.side-link[data-tip="Log out"] .icon,
.sidebar form .side-logout .icon,
.sidebar form button.side-link[data-tip="Log out"]:hover .icon,
.sidebar form .side-logout:hover .icon {
  color: #fff;
}
.sidebar form button.side-link[data-tip="Log out"]:hover,
.sidebar form .side-logout:hover {
  background: #B91C1C;
  color: #fff;
}
/* Collapsed (icons only) */
.side-collapsed .shell { grid-template-columns: 80px minmax(0, 1fr); }
.side-collapsed .sidebar .side-head .logo { display: none; }
.side-collapsed .side-back { justify-content: center; }
.side-collapsed .side-label { display: none; }
.side-collapsed .side-nav a { justify-content: center; padding: 0; }

/* The extension notice spans the content column, above the band */
.dash-panel > .extension-notice { margin: 0; border-radius: 0; }

/* ---------- The band and the cards on it ---------- */
.dash-main { max-width: none; padding: 0 40px 56px; }
.dash-main > .dash-head { display: block; margin: 0 -40px; padding: 36px 40px 84px; text-align: center; color: #fff;
  background: var(--band) url("../img/pattern-celebrate.ac3aace8ea64.svg") 0 0 / 420px 300px; }
.dash-main > .dash-head .hp-label { max-width: none; margin: 0 0 8px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.dash-main > .dash-head h1 { margin: 0; color: #fff; font: 700 clamp(26px, 2.6vw, 36px)/1.2 var(--sans); letter-spacing: -.01em; }
.dash-main > .dash-head p:not(.hp-label) { margin: 8px auto 0; max-width: 600px; color: rgba(255, 255, 255, .9); font-size: 15px; }
.dash-main > .dash-head p a { color: #fff; }
.dash-main > .dash-head + * { position: relative; margin-top: -56px; }
.dash-main > .dash-head .tabs { justify-content: center; gap: 8px; margin: 20px 0 -46px; border: 0; }
.dash-main > .dash-head .tabs a { padding: 8px 14px 10px; border-bottom: 3px solid transparent; color: #fff; font-size: 14px; font-weight: 500; }
.dash-main > .dash-head .tabs a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .35); }
.dash-main > .dash-head .tabs a.on { color: #fff; font-weight: 700; border-bottom-color: #fff; }
.dash-main > .dash-head:has(.tabs) { padding-bottom: 100px; }
.dash-panel .form-card, .dash-panel .share-card, .dash-card { border: 0; border-radius: 6px; background: var(--surface); box-shadow: var(--card-shadow); }
.dash-panel .form-card { max-width: none; padding: 28px 32px; }
.dash-panel .form-card > p.muted:first-child, .dash-panel .form-card > .muted { font-size: 15px; color: var(--ink-2); }
.dash-panel .form-card .field { font-size: 14px; font-weight: 500; color: var(--ink); }
.dash-panel .form-card input[type=text], .dash-panel .form-card input[type=email], .dash-panel .form-card input[type=url],
.dash-panel .form-card select, .dash-panel .form-card textarea { border: 1.5px solid #D5DBD7; border-radius: 4px; font-size: 15px; font-weight: 400; }
.dash-panel .form-card input[type=text], .dash-panel .form-card select { height: 44px; min-height: 44px; }
.dash-panel .form-card textarea { min-height: 110px; }
.dash-panel .form-card .btn { height: 44px; padding: 0 28px; font-size: 15px; }
.dash-panel .sharing-settings .share-link { align-items: stretch; gap: 8px; }
.dash-panel .sharing-settings .share-link .url { height: 40px; flex-basis: 220px; padding: 0 12px; border-width: 1px; border-radius: 4px; font-size: 14px; }
.dash-panel .sharing-settings .share-link > .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.dash-panel .sharing-settings fieldset { margin-top: 20px; }
.dash-panel .sharing-settings legend { margin-bottom: 8px; }
.dash-panel .sharing-settings .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dash-panel .sharing-settings .choice { gap: 10px; padding: 10px 12px; border-width: 1px; border-radius: 6px; }
.dash-panel .sharing-settings .choice input { width: 18px; height: 18px; }
.dash-panel .sharing-settings .choice strong { font-size: 14px; }
.dash-panel .sharing-settings .choice small { font-size: 13px; line-height: 1.4; }
@media (max-width: 620px) { .dash-panel .sharing-settings .choices { grid-template-columns: minmax(0, 1fr); } }

/* Gift list card */
.dash-card { padding: 24px 28px 28px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.card-head-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-head-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.card-head h2 { font: 700 20px/1.2 var(--sans); color: var(--ink); margin: 0; }
/* "Gifts bought, 3 of 7" compact pill badge */
.gift-progress { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); background: #F3F4F6; padding: 3px 10px; border-radius: 999px; border: 1px solid #E5E7EB; white-space: nowrap; margin: 0; }
.gift-progress-label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.gift-progress > span:first-child, .gift-progress strong { flex: none; white-space: nowrap; }
.gift-progress strong { color: var(--ink); font-weight: 600; font-size: 12px; }
.gift-progress-bar { display: inline-block; width: 64px; height: 6px; overflow: hidden; border-radius: 999px; background: #DCE4DE; flex: none; }
.gift-progress-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.card-head .drag-hint { margin: 1px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.card-head .dash-hero-actions { gap: 10px; }
.card-head .btn { height: 38px; padding: 0 16px; gap: 6px; font-size: 14px; }
.card-head .btn .icon { width: 16px; height: 16px; }
.card-head .registry-switch { font-size: 13px; color: var(--ink-2); }
.card-head .registry-switch-track { width: 38px; height: 22px; }
.card-head .registry-switch-track span { width: 16px; height: 16px; }
.card-head .registry-switch.is-on .registry-switch-track span { transform: translateX(16px); }
.dash-card .notice { margin-bottom: 16px; }
.dash-card .item-rows { gap: 0; border-top: 1px solid var(--line); }
.dash-card .item-rows li, .dash-card .item-rows li:first-child { gap: 16px; padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line);
  background: none; box-shadow: none; }
.dash-card .item-rows li:hover { background: #FAFCFB; box-shadow: none; }
.dash-card .item-rows .grip { left: -26px; }
.dash-card .item-rows .photo-edit { width: 56px !important; height: 56px !important; border-radius: 4px; }
.dash-card .item-rows .info a, .dash-card .item-rows li.purchased .info a { font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.dash-card .item-rows .sub { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.dash-card .item-rows .sub .icon { width: 15px; height: 15px; margin-right: 8px; color: var(--ink-3); }
.dash-card .item-rows .sub span + span::before { content: "·"; margin: 0 8px; color: var(--ink-3); }
.dash-card .item-rows .star { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: #FCEBD6; color: #A3530B; font-size: 11px; font-weight: 600; line-height: 1.4; vertical-align: middle; }
.dash-card .pill { height: 32px; padding: 0 14px; gap: 6px; border-radius: 4px; font-size: 13px; font-weight: 700; }
.dash-card .pill.gifted { background: #E4ECE6; color: var(--accent); font-weight: 600; }
.dash-card .item-rows .go { width: 36px; color: var(--ink-2); }
.dash-card .view-registry { margin-top: 24px; }
.dash-card .view-registry .btn { height: 40px; padding: 0 20px; gap: 8px; border: 1.5px solid var(--accent); font-size: 14px; font-weight: 500; }
.dash-card .view-registry .btn .icon { width: 16px; height: 16px; }
.dash-card .empty { box-shadow: none; background: var(--ivory); }

/* Guest activity: one card per guest */
.dash-panel .gift-rows { gap: 12px; }
.dash-panel .gift-rows li, .dash-panel .gift-rows li:first-child { gap: 12px 20px; padding: 18px 20px; border-radius: 6px; box-shadow: var(--card-shadow); }
.dash-panel .gift-rows .ph { width: 56px; height: 56px; border-radius: 4px; background: var(--ivory); }
.dash-panel .gift-rows .ph-gift { display: grid; place-items: center; color: var(--accent); }
.dash-panel .gift-rows .ph-gift .icon { width: 24px; height: 24px; }
.dash-panel .gift-rows .who-col p:first-child { font-size: 16px; font-weight: 500; color: var(--ink); }
.dash-panel .gift-rows .who-col p + p { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.dash-panel .gift-rows .who-col strong { color: var(--ink) !important; }
.dash-panel .gift-rows .who-col a { color: var(--accent); text-decoration: underline; }
.dash-panel .gift-rows .where { gap: 4px; min-width: 180px; font-size: 13px; color: var(--ink-2); }
.dash-panel .gift-rows .where strong { font-weight: 500; }
.dash-panel .gift-rows .thank-col { min-width: 150px; }
.dash-panel .gift-rows .thank-col .btn { height: 38px; padding: 0 16px; gap: 6px; font-size: 14px; }
.dash-panel .gift-rows .thank-col .btn .icon { width: 16px; height: 16px; }
.dash-panel .thank-sent { gap: 6px; font-size: 14px; font-weight: 500; }
.dash-panel .thank-sent .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.dash-panel .sent-msg-preview summary { color: var(--ink-2); font-size: 12px; text-decoration: none; }


/* ---------- The guest page ---------- */
.registry-bar { background: #fff; border-bottom: 1px solid var(--line); }
.registry-bar .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.owner-note { padding: 12px 16px; border-radius: 4px; background: #E3EBE5; color: var(--ink); font-size: 14px; }
.owner-note a { color: var(--accent); }
.owner-note a[data-browser-btn] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: baseline;
}
.owner-note a[data-browser-btn] img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: -2px;
  display: inline-block;
  flex: none;
}
.banner:not(.has-photo) { border-radius: 0; background: var(--band) url("../img/pattern-celebrate.ac3aace8ea64.svg") 0 0 / 420px 300px; color: #fff; }
.banner:not(.has-photo) .banner-art { display: none; }
.banner:not(.has-photo) h1, .banner:not(.has-photo) h1 em { color: #fff; }
.banner h1 { font: 700 clamp(28px, 3.6vw, 44px)/1.15 var(--sans); }
.banner h1 em { font-style: normal; }
.banner .banner-text > p { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.banner:not(.has-photo) .banner-note { color: rgba(255, 255, 255, .88); }
.toolbar select { border: 1.5px solid #D5DBD7; border-radius: 4px; min-width: 180px; }
.toolbar .btn.quiet { border: 1.5px solid #D5DBD7; color: var(--ink); font-weight: 500; }
.gift-list { gap: 10px; }
.gift { padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: none; }
.gift.purchased { border-color: #E0E3E1; background: #F3F4F3; }
.gift.purchased .g-photo { background: #E9ECEA; }
.gift.purchased .g-photo img:not(.icon), .gift.purchased .g-info { opacity: .62; filter: grayscale(1); }
.g-photo { border-radius: 4px; background: var(--ivory); }
.g-store { font-size: 13px; color: var(--ink); }
.gift h3 { font: 700 16px/1.4 var(--sans); color: var(--ink); }
.g-price { margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--ink-3); }
.g-purchased-tag { padding: 2px 8px; border-radius: 999px; background: #E3EBE5; color: var(--ink-2); font-size: 11px; font-weight: 500; }
.g-wanted { color: #A3530B; background: #FCEBD6; font-weight: 500; }
/* Most wanted gifts stand out in the list: a warm card and a star on the photo (the label next to the store says what it means). */
.gift.is-wanted { border-color: #E9B27C; background: #FFFAF4; }
.g-wanted-badge { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: #C2570C; color: #fff; box-shadow: 0 2px 6px rgba(31, 27, 22, .28); pointer-events: none; }
.g-wanted-badge img.icon,
.g-wanted-badge .icon { width: 18px !important; height: 18px !important; max-width: 18px !important; max-height: 18px !important;
  background: transparent !important; background-color: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important;
  object-fit: contain !important; filter: brightness(0) invert(1) !important; display: block !important; }
@media (max-width: 860px) {
  .g-wanted-badge { top: 6px; left: 6px; width: 28px; height: 28px; }
  .g-wanted-badge img.icon,
  .g-wanted-badge .icon { width: 15px !important; height: 15px !important; max-width: 15px !important; max-height: 15px !important; }
}
.g-action .btn { height: 42px; border-radius: 4px; font-size: 14px; }
.gift .g-done, .gift.purchased .g-done { background: #ECEEEC; color: #737B76; font-weight: 500; opacity: 1; cursor: default; }
.gift .g-done[aria-disabled="true"]:hover { background: #ECEEEC; color: #737B76; }
.g-already { color: var(--ink); }
.g-by { color: var(--ink-2); font-size: 13px; }
.registry-foot { background: var(--ivory); color: var(--ink-2); font-size: 13px; }
.registry-foot a { color: var(--accent); }

/* ---------- Home ---------- */
.hp-display { font-weight: 700; letter-spacing: -.02em; }
.hp-display em { font-style: italic; }
.hp-hero.dark { overflow: hidden; }
.hp-hero.dark::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: -1px; height: 28px;
  background: radial-gradient(circle at 28px 28px, var(--ivory) 27.5px, transparent 28.5px) 0 0 / 56px 56px repeat-x; }
.hp-features { gap: 20px; padding-top: 40px; padding-bottom: 48px; }
.hp-feature { padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.hp-feature-icon { border-radius: 8px; }
.hp-feature h2 { font: 700 19px/1.3 var(--sans); margin-top: 14px; }
.hp-feature p { font-size: 14px; color: var(--ink-2); max-width: none; }
.blog-card { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); overflow: hidden; }
.blog-card .hp-guide-img { border-radius: 0; }
.blog-card-body { padding: 16px 20px 22px; }
.hp-guide h3 { font: 700 19px/1.35 var(--sans); }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 859px) {
  .shell, .side-collapsed .shell { grid-template-columns: minmax(0, 1fr); }
  .side-nav a { height: 46px; }
  .dash-main { padding: 0 16px 48px; }
  .dash-main > .dash-head { margin: 0 -16px; padding: 26px 16px 76px; }
  .dash-main > .dash-head:has(.tabs) { padding-bottom: 92px; }
  .dash-main > .dash-head h1 { font-size: clamp(24px, 7vw, 30px); }
  .dash-main > .dash-head p:not(.hp-label) { font-size: 14px; }
  .dash-main > .dash-head + * { margin-top: -52px; }
  .dash-main > .dash-head .tabs { justify-content: flex-start; gap: 0; margin: 16px -16px -40px; padding: 0 8px; }
  .dash-main > .dash-head .tabs a { padding: 8px 10px 10px; font-size: 14px; }
  .dash-card { padding: 18px 14px 20px; }
  .card-head { align-items: flex-start; }
  .card-head h2 { font-size: 18px; }
  .card-head .dash-hero-actions { width: 100%; flex-wrap: wrap; gap: 10px; }
  .card-head .dash-registry-toggle { flex-basis: 100%; }
  .card-head .btn { flex: 1; height: 40px; padding: 0 12px; font-size: 14px; }
  .dash-card .item-rows li, .dash-card .item-rows li:first-child { padding: 14px 0; }
  .dash-card .item-rows .photo-edit { width: 60px !important; height: 60px !important; }
  .dash-card .item-rows .info a { font-size: 15px; }
  .dash-card .item-rows .sub { font-size: 13px; }
  .dash-card .item-rows .sub .star::before { content: none; }
  .dash-card .pill { height: auto; min-height: 30px; padding: 5px 10px; font-size: 13px; white-space: normal; }
  .dash-card .view-registry .btn { width: 100%; justify-content: center; }
  .dash-panel .form-card { padding: 18px 14px 20px; }
  .dash-panel .form-card .btn { width: 100%; height: 44px; font-size: 15px; }
  .dash-panel .gift-rows li, .dash-panel .gift-rows li:first-child { padding: 14px; align-items: flex-start; }
  .dash-panel .gift-rows .ph { width: 48px; height: 48px; }
  .dash-panel .gift-rows .who-col { flex: 1 1 calc(100% - 64px); }
  .dash-panel .gift-rows .who-col p:first-child { font-size: 15px; }
  .dash-panel .gift-rows .who-col p + p { font-size: 13px; overflow-wrap: anywhere; }
  .dash-panel .gift-rows .where { min-width: 0; margin-left: 60px; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
  .dash-panel .gift-rows .thank-col { width: 100%; min-width: 0; align-items: stretch; margin-left: 0; }
  .dash-panel .gift-rows .thank-col .btn { width: 100%; justify-content: center; }
  .dash-panel .gift-rows .thank-col .thank-sent { justify-content: flex-start; margin-left: 60px; }
  .dash-top .logo { --logo-h: 24px; }
}
@media (max-width: 820px) {
  .site-nav .links .nav-link { height: auto; font-size: 16px; }
  .site-nav .links .nav-link[aria-current="page"]::after { display: none; }
  .site-nav .actions .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .site-nav .logo, .registry-bar .logo { --logo-h: 24px; }
}
@media (max-width: 760px) {
  .hp-features { grid-template-columns: 1fr; gap: 16px; }
  .hp-feature { padding: 22px; }
  .hp-hero.dark::after { height: 18px; background-size: 36px 36px;
    background-image: radial-gradient(circle at 18px 18px, var(--ivory) 17.5px, transparent 18.5px); }
  .gift h3 { font-size: 15px; }
  .g-action .btn { height: 42px; font-size: 14px; }
  .owner-note { font-size: 14px; padding: 12px 14px; }
  .registry-bar .btn { height: 38px; padding: 0 12px; font-size: 13.5px; }
  .site-footer .bottom { padding: 20px var(--gutter); }
}
@media (max-width: 640px) {
  .hp-hero-br { display: none; }
  .toolbar { gap: 8px; margin: 18px 0 14px; }
  .toolbar select {
    flex: 1 1 calc(50% - 4px);
    min-width: 0 !important;
    max-width: 100%;
    width: auto;
    height: 42px;
    min-height: 42px;
    font-size: 14px;
    padding: 0 28px 0 10px;
  }
  .toolbar .btn.quiet {
    width: 100%;
    justify-content: center;
    height: 40px;
    font-size: 14px;
  }
  .toolbar .spacer { display: none; }
  .view-switch { display: none; }
  .hp-quotes-in { gap: 10px; }
  .hp-arrow-btn { width: 32px; height: 32px; font-size: 18px; }
  .hp-quote blockquote { font-size: clamp(16px, 4.5vw, 19px); line-height: 1.4; }
  .hp-quote figcaption { flex-wrap: wrap; justify-content: center; gap: 8px; text-align: center; }
  .hp-stars { margin-left: 0; width: 100%; text-align: center; }
  .hp-search { padding: 4px 4px 4px 14px; }
  .hp-search input { font-size: 14px; }
  .hp-search .btn { height: 42px; padding: 0 16px; font-size: 14px; }
}
@media (max-width: 600px) {
  .registry-bar .logo { --logo-h: 22px; }
  .registry-bar-actions, .registry-bar .bar > .row { gap: 6px; }
  .registry-bar .btn { height: 36px; padding: 0 10px; font-size: 13px; }
}
@media (max-width: 560px) {
  .hp-hero.dark .hp-hero-img { height: 210px; }
  .hp-banner .hp-h2 { font-size: clamp(22px, 5.5vw, 28px); }
}
@media (max-width: 480px) {
  .auth-split { padding: 24px var(--gutter) 40px; }
  .auth .form-card { padding: 20px 14px; }
}
@media (max-width: 440px) {
  .gift {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 10px;
  }
  .gift h3 { font-size: 15px; line-height: 1.3; }
  .g-store { font-size: 12px; }
  .g-price { font-size: 14px; margin-top: 4px; }
  .g-action .btn { height: 38px; font-size: 13.5px; }
}
@media (max-width: 400px) {
  .toolbar select { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 380px) {
  .registry-bar .btn { padding: 0 8px; font-size: 12px; }
  .registry-bar .logo-word { font-size: 18px; }
}

/* v3, home and page widths (after the phone rules above, so the desktop-only ones are scoped) */
.wrap { max-width: 1184px; }
.wrap.wide { max-width: 1040px; }
.hp-display em { position: relative; display: inline-block; padding-bottom: .08em; }
.hp-display em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c14-5 26 3 40-1s26-5 40-1 24 3 36-1' fill='none' stroke='%23C5A46D' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.hp-lead { font-size: 16px; line-height: 1.6; }
.hp-hero.dark .hp-lead { color: #fff; }
.hp-faq .faq summary { min-height: 60px; font: 500 16px/1.4 var(--sans); color: var(--ink); }
.hp-faq .faq summary::after { width: 28px; height: 28px; border: 0; background: none; font-size: 26px; font-weight: 300; }
.hp-faq .faq details, .hp-faq .faq { border-color: #DDD6CA; }
@media (min-width: 821px) {
  .hp-hero-text { max-width: min(650px, 56%); }
  .hp-hero .hp-display { font-size: clamp(36px, 3.5vw, 48px); line-height: 1.12; }
}
@media (max-width: 520px) {
  .hp-hero .hp-display { font-size: clamp(25px, 6.8vw, 32px); line-height: 1.14; }
}
@media (max-width: 820px) {
  .hp-faq .faq summary { font-size: 15px; min-height: 54px; }
}
.hp-search input { font-size: 15px; }
.hp-search .btn { font-size: 15px; }
/* Dashboard pages: the shell fills the screen (no footer) */
body:has(> main > .shell) { display: flex; flex-direction: column; min-height: 100vh; }
body:has(> main > .shell) > main { flex: 1; display: flex; flex-direction: column; }
main > .shell { flex: 1; min-height: 0; }
main > .shell .dash-panel { min-height: 0; }
@media (min-width: 860px) { main > .shell .sidebar { min-height: 0; } }
@media (min-width: 860px) { main > .shell .side-inner { height: min(100vh, 100%); } }
/* Analytics: the period switcher sits in the band, so the stat tiles overlap its edge like the other pages' cards */
.dash-main > .dash-head .an-periods {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 20px 0 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .2);
}
.dash-main > .dash-head .an-period {
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 16px;
  min-height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: transparent;
  transition: background .15s ease, color .15s ease;
}
.dash-main > .dash-head .an-period:hover {
  color: #fff;
  background: rgba(255, 255, 255, .2);
  text-decoration: none;
}
.dash-main > .dash-head .an-period.on,
.dash-main > .dash-head .an-period[aria-current="page"] {
  background: #fff;
  color: #1B4D3E;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.dash-main > .dash-head .an-period.on:focus,
.dash-main > .dash-head .an-period.on:focus-visible,
.dash-main > .dash-head .an-period[aria-current="page"]:focus,
.dash-main > .dash-head .an-period[aria-current="page"]:focus-visible {
  background: #fff !important;
  color: #1B4D3E !important;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.dash-main > .dash-head .an-period:not(.on):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  color: #fff;
  text-decoration: none;
}
.dash-main > .dash-head + .an-tiles { margin-bottom: 16px; }
/* Edit gift: the photo and the form share one card on the band */
.dash-panel .item-edit-card { max-width: none; }
.dash-panel .item-edit-card .form-card { max-width: none; padding: 0; box-shadow: none; border-radius: 0; }
.banner:not(.has-photo) { min-height: clamp(170px, 18vw, 230px); padding: 32px 24px; }
.dash-panel .form-card.thank-form { max-width: none; }
/* Sidebar card: the cover photo in the circle when there is one, else the first letter */
.sidebar .who .dot.has-photo { overflow: hidden; background: var(--ivory); }
.sidebar .who .dot.has-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Settings tabs in the band: the current one is white and bold with a white underline, the rest dimmed */
.dash-main > .dash-head .tabs { position: relative; z-index: 1; gap: 6px; }
.dash-main > .dash-head .tabs a { padding: 8px 12px 10px; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  color: rgba(255, 255, 255, .72); font-weight: 500; }
.dash-main > .dash-head .tabs a:hover { color: #fff; background: none; border-bottom-color: rgba(255, 255, 255, .35); }
.dash-main > .dash-head .tabs a.on, .dash-main > .dash-head .tabs a.on:hover { color: #fff; font-weight: 700; border-bottom-color: #fff; }
.dash-main > .dash-head .tabs { margin-bottom: -34px; }
@media (max-width: 859px) { .dash-main > .dash-head .tabs { margin-bottom: -28px; } }

/* "Copy this list" (registries/_copy_list.html): on a guest page and on /featured/ */
.copy-list { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 20px 0 4px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.copy-list-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--accent-tint); color: var(--accent); }
.copy-list-icon .icon { width: 20px; height: 20px; }
.copy-list-text { flex: 1 1 260px; min-width: 0; }
.copy-list-text strong { display: block; font-size: 15px; color: var(--ink); }
.copy-list-text p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.copy-list-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.copy-list-form select { width: auto; min-width: 190px; height: 40px; min-height: 40px; border: 1.5px solid #D5DBD7; border-radius: 4px; font-size: 14px; }
.copy-list-form .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.ideas-category-gifts .copy-list { margin: 0 0 24px; }
@media (max-width: 960px) {
  .copy-list-form { width: 100%; }
  .copy-list-form select { flex: 1 1 220px; width: 100%; }
  .copy-list-form .btn { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 600px) {
  .copy-list-form, .copy-list-form select, .copy-list-form .btn { width: 100%; }
}

/* Ready-made lists on step 3 of creating a registry (registries/_starter_lists.html) */
.starter-lists { margin: 24px 0 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-width: 100%; box-sizing: border-box; }
.starter-lists h2 { font: 700 17px/1.3 var(--sans); color: var(--ink); }
.starter-sub { margin: 2px 0 12px; font-size: 13px; color: var(--ink-2); }
.starter-lists ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.starter-lists li { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.starter-lists img, .starter-ph { width: 48px; height: 48px; flex: none; border-radius: 6px; object-fit: cover; background: var(--ivory); }
.starter-ph { display: grid; place-items: center; color: var(--accent); }
.starter-ph .icon { width: 22px; height: 22px; }
.starter-text { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.starter-text a { overflow: hidden; color: var(--ink); font-weight: 500; font-size: 14px; text-decoration: none; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; word-break: break-word; }
.starter-text a:hover { text-decoration: underline; }
.starter-text span { font-size: 12px; color: var(--ink-3); }
.starter-lists form { margin: 0; flex-shrink: 0; }
.starter-lists .btn { height: 36px; padding: 0 14px; gap: 6px; font-size: 13px; white-space: nowrap; }
.starter-lists .btn .icon { width: 15px; height: 15px; }

/* The same form in place, on step 3 of creating a registry: the same card, a little tighter on phones. */
.add-gift-page { margin-bottom: 20px; animation: none; } /* not the page's rise-in, which would replay on every open */
.js .add-gift-page:not(.is-open), html:not(.js) [data-add-open], html:not(.js) [data-add-cancel] { display: none; }
.add-gift-page.is-open ~ [data-no-gifts] { display: none; }
.dash-card .add-gift-inline { margin-top: 4px; padding: 24px; border-radius: 12px; box-shadow: none; }
@media (max-width: 719px) { .dash-card .add-gift-inline { padding: 16px; } }
.add-gift-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-bottom: 14px; }
.add-gift-bar h2 { margin: 0; font: 700 20px/1.2 var(--sans); color: var(--heading); }
.add-gift-bar .btn { gap: 6px; height: 44px; padding: 0 18px; border-radius: 8px; font-size: 15px; }
.add-gift-bar .btn .icon { width: 16px; height: 16px; }
.add-gift-inline { display: flex; flex-direction: column; gap: 18px; padding: 20px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); box-shadow: 0 1px 2px rgba(31, 27, 22, .04), 0 16px 40px rgba(31, 27, 22, .07); }
.cf .add-gift-url input, .cf .add-gift-url input:focus { border: 0; outline: 0; background: none; box-shadow: none; }
@media (min-width: 720px) {
  .add-gift-inline { padding: 36px 40px 32px; border-radius: 20px; }
}

/* The registry's photo (or first letter) in the band's top right corner; it opens Details & settings. */
.dash-main > .dash-head { position: relative; }
.dash-avatar { position: absolute; top: 20px; right: 40px; display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden;
  border: 2px solid #fff; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font: 700 18px var(--sans); text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: transform .15s var(--ease); }
.dash-avatar:hover { color: #fff; transform: scale(1.05); }
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 859px) { .dash-avatar { top: 14px; right: 16px; width: 40px; height: 40px; font-size: 16px; } }

/* No short link yet: what it's for and a button to create one (Share, settings, the "you're done" step). */
.short-create { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 0;
  padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.short-create > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; }
.short-create strong { font-size: 14px; color: var(--ink); }
.short-create span { font-size: 13px; color: var(--ink-2); }
.short-create .btn { flex: none; height: 38px; padding: 0 16px; font-size: 14px; }

/* Home › Gift ideas: photo tiles, the title bottom left over a dark fade and a round arrow bottom right. */
.hp-home-gift-tiles { gap: clamp(16px, 1.6vw, 20px); }
.hp-home-gift-tiles .hp-home-tile { align-items: flex-end; justify-content: space-between; gap: 16px; aspect-ratio: 35 / 18;
  padding: 0 20px 20px; border-radius: 6px; text-align: left; box-shadow: 0 2px 3px rgba(31, 27, 22, .22); }
.hp-home-gift-tiles .hp-home-tile::before { background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .7) 100%); }
.hp-home-gift-tiles .hp-home-tile:hover::before { background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .78) 100%); }
.hp-home-gift-tiles .hp-home-tile span { max-width: none; flex: 1; min-width: 0; font: 500 19px/1.3 var(--sans); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.hp-tile-go { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; transition: background .2s ease, transform .2s var(--ease); box-sizing: border-box; }
.hp-tile-go .icon,
.hp-tile-go img.icon { position: static !important; inset: auto !important; width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important;
  object-fit: contain !important; display: block !important; margin: 0 !important; padding: 0 !important; filter: brightness(0) invert(1) !important; border-radius: 0 !important; transform: none !important; }
.hp-home-tile:hover .hp-tile-go { background: rgba(255, 255, 255, .34); transform: translateX(2px); }
@media (max-width: 768px) {
  .hp-home-gift-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-home-gift-tiles .hp-home-tile { padding: 0 14px 14px; gap: 10px; }
  .hp-home-gift-tiles .hp-home-tile span { font-size: 15px; }
  .hp-tile-go { width: 32px; height: 32px; }
  .hp-tile-go .icon,
  .hp-tile-go img.icon { width: 14px !important; height: 14px !important; max-width: 14px !important; max-height: 14px !important; }
}
@media (max-width: 480px) { .hp-home-gift-tiles { grid-template-columns: 1fr; } .hp-home-gift-tiles .hp-home-tile span { font-size: 17px; } }
#ideas > .hp-label { margin-bottom: 32px; color: #6B6F6C; font-weight: 600; }

/* Home › Featured gifts: the photo sits inside the card with space around it, not edge to edge. */
.ideas-featured .hp-idea-card { padding: 10px; }
.ideas-featured .hp-idea-img { border-radius: 6px; background: #F4F6F4; }
.ideas-featured .hp-idea-img img { mix-blend-mode: multiply; }  /* a store photo's white background takes the tint */
.ideas-featured .hp-idea h3 { margin: 12px 4px 0; }
.ideas-featured .hp-idea p { margin: 4px 4px 10px; }
.ideas-featured .hp-idea-add { padding: 0 4px 4px; }

/* The dashboard (its pages and "Your registries") is set in DM Sans; the rest of the site stays Roboto. */
body.dash-font { --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --serif: var(--sans); --heading-font: var(--sans);
  font-family: var(--sans); }

/* A gift just added without reloading: a soft highlight that fades, so the eye finds it. */
.item-rows li.just-added { animation: just-added 2.4s var(--ease) both; }
@keyframes just-added { from { background: var(--accent-tint); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .item-rows li.just-added { animation: none; } }

/* Home search: the live results float over the sections below. The hero clips its photo and scalloped edge, so while
   the list is open it stops clipping and sits above them (on phones the box is at the hero's very bottom). */
.hp-hero:has(.hp-search .search-results:not([hidden])) { overflow: visible; z-index: 30; }
.hp-hero:has(.hp-search .search-results:not([hidden])) .hp-hero-in { z-index: 4; }
.hp-search .search-results { box-shadow: var(--shadow-lg); }

/* "What is Registry up?" on phones: heading and text, then the video, then the button last */
@media (max-width: 820px) {
  .hp-video-in { gap: 0; }
  .hp-video-text { display: contents; }
  .hp-video-frame { order: 1; }
  .hp-video-text .btn { order: 2; justify-self: start; margin-top: 24px; }
}

/* "Show more" under lists of ten (templates/partials/more.html); the next ten usually load before it's reached */
.more { display: flex; justify-content: center; margin: 32px auto 0; }
.more:not(:has(a)) { margin: 0; }
.more .btn { min-width: 160px; }
.dash-panel .registry-delete-card { max-width: none; border: 1px solid var(--danger-tint); }
.registry-delete-card h2 { margin: 0 0 10px; font: 700 18px/1.3 var(--sans); color: var(--heading); }
.registry-delete-card ul { display: grid; gap: 6px; margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.registry-delete-card .registry-delete-form { margin-top: 18px; }
.registry-delete-card .registry-delete-form .row { justify-content: flex-end; gap: 8px; }
.registry-delete-card .registry-delete-form .field { margin-bottom: 16px; }

.panel-login-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--ivory); }
.panel-login-card { width: min(100%, 420px); padding: 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-md); }
.panel-login-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--heading); font: 700 20px var(--serif); text-decoration: none; }
.panel-login-brand span { padding: 3px 7px; border-radius: 4px; background: var(--accent-tint); color: var(--accent); font: 600 11px var(--sans); }
.panel-login-card .hp-label { margin-bottom: 6px; }
.panel-login-card h1 { margin: 0; font: 700 30px/1.15 var(--sans); color: var(--heading); }
.panel-login-intro { margin: 8px 0 22px; color: var(--ink-2); font-size: 14px; }
.panel-login-card .field { margin-bottom: 14px; font-size: 13px; }
.panel-login-card input[type=email], .panel-login-card input[type=password] { height: 42px; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 14px; }
.panel-login-forgot { margin: -4px 0 14px; text-align: right; font-size: 13px; }
.panel-login-forgot a { color: var(--accent); }
.panel-login-card .captcha-row { margin: 4px 0 14px !important; }
.panel-login-card .btn { height: 42px; border-radius: 5px; font-size: 14px; }
@media (max-width: 480px) { .panel-login-card { padding: 24px 18px; } }

/* Compact dashboard scale shared by pages and their cards and controls. */
.dash-main { padding: 32px 32px 48px; }
.dash-head { gap: 12px; margin-bottom: 18px; }
.dash-panel .dash-head h1, .dash-panel .dash-hero h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.dash-panel .dash-head .hp-label { margin-bottom: 6px; }
.dash-hero { gap: 14px 20px; margin-bottom: 24px; }
.dash-hero .btn { height: 44px; padding: 0 20px; gap: 8px; font-size: 14px; }
.dash-hero .btn .icon { width: 18px; height: 18px; }
.dash-hero .dash-hero-actions .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.dash-panel .form-card, .dash-panel .share-card, .dash-panel .empty, .dash-panel .dash-card,
.dash-panel .an-tile, .dash-panel .an-card { border-radius: 8px; }
.dash-panel .form-card { padding: 20px 22px; }
.dash-panel .form-card > p.muted:first-child, .dash-panel .form-card > .muted { font-size: 14px; }
.dash-panel .form-card .field { gap: 6px; margin-bottom: 14px; font-size: 14px; }
.dash-panel .form-card input[type=text], .dash-panel .form-card input[type=email], .dash-panel .form-card input[type=url],
.dash-panel .form-card select { height: 40px; min-height: 40px; font-size: 14px; }
.dash-panel .form-card textarea { min-height: 96px; font-size: 14px; }
.dash-panel .form-card .btn { height: 40px; padding: 0 20px; font-size: 14px; }
.dash-panel .sharing-settings .share-link .url { height: 40px; }
.dash-panel .sharing-settings .share-link > .btn { width: auto; flex: none; }
.dash-panel .add-gift-inline { gap: 12px; padding: 16px 18px; border-radius: 8px; }
.dash-panel .add-gift .field { gap: 6px; font-size: 13px; }
.dash-panel .add-gift input[type=text], .dash-panel .add-gift input[type=url], .dash-panel .add-gift input[type=number], .dash-panel .add-gift select { height: 40px; min-height: 40px; border-radius: 6px; font-size: 14px; }
.dash-panel .add-gift-ext { gap: 10px; padding: 12px; border-radius: 8px; }
.dash-panel .add-gift-ext-icon { width: 34px; height: 34px; border-radius: 8px; }
.dash-panel .add-gift-ext-icon img,
.dash-panel .add-gift-ext-icon .browser-icon { width: 18px; height: 18px; }
.dash-panel .add-gift-ext p { font-size: 12px; }
.dash-panel .add-gift-ext strong { font-size: 14px; }
.dash-panel .add-gift-ext-btn { padding: 8px 14px; font-size: 13px; }
.dash-panel .add-gift-tabs { border-radius: 8px; }
.dash-panel .add-gift-tabs button { height: 38px; border-radius: 6px; font-size: 14px; }
.dash-panel .add-gift-fields, .dash-panel .add-gift-review { gap: 12px; }
.dash-panel .add-gift-url { height: 44px; gap: 8px; padding-left: 12px; border-radius: 6px; }
.dash-panel .add-gift-url > .icon { width: 18px; height: 18px; }
.dash-panel .add-gift-paste { height: 34px; padding: 0 12px; border-radius: 6px; font-size: 13px; }
.dash-panel .add-gift-warn { gap: 10px; padding: 12px; border-radius: 8px; font-size: 13px; }
.dash-panel .add-gift-found { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
.dash-panel .add-gift-photo { gap: 8px; }
.dash-panel .add-gift-photo-tile { border-radius: 8px; }
.dash-panel .add-gift-photo-tile span { gap: 6px; font-size: 12px; }
.dash-panel .add-gift-found-fields { gap: 10px; }
.dash-panel .add-gift-money > span { left: 12px; font-size: 14px; }
.dash-panel .add-gift .add-gift-money input { padding-left: 44px; }
.dash-panel .add-gift-row { grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; }
.dash-panel .add-gift-drop { gap: 10px; padding: 12px 14px; border-radius: 8px; }
.dash-panel .add-gift-drop-icon { width: 38px; height: 38px; }
.dash-panel .add-gift-drop-copy strong, .dash-panel .add-gift-wanted-copy strong { font-size: 14px; }
.dash-panel .add-gift .add-gift-drop .btn, .dash-panel .add-gift .add-gift-photo-btn { height: 36px; padding: 0 14px; font-size: 13px; }
.dash-panel .add-gift-wanted { gap: 10px; padding: 10px 12px; border-radius: 8px; }
.dash-panel .add-gift-wanted-icon { width: 32px; height: 32px; }
.dash-panel .add-gift-wanted-icon img.icon { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; }
.dash-panel .add-gift-wanted input { width: 42px; height: 24px; }
.dash-panel .add-gift-wanted input::after { width: 18px; height: 18px; }
.dash-panel .add-gift-wanted input:checked::after { transform: translateX(18px); }
.dash-panel .add-gift-actions { gap: 8px; margin-top: 0; }
.dash-panel .add-gift .add-gift-actions .btn { height: 38px; padding: 0 18px; border-radius: 6px; font-size: 14px; }
.dash-panel .dash-card { padding: 20px 22px; }
.dash-panel .item-rows { gap: 10px; }
.dash-panel .item-rows li, .dash-panel .item-rows li:first-child { gap: 14px; padding: 14px 16px; border-radius: 8px; }
.dash-panel .item-rows .photo-edit { border-radius: 6px; }
.dash-panel .item-rows .info a { font-size: 15px; line-height: 1.4; }
.dash-panel .item-rows .sub { margin-top: 6px; font-size: 13px; }
.dash-panel .pill { height: 34px; padding: 0 12px; font-size: 13px; }
.dash-panel .gift-rows { gap: 10px; }
.dash-panel .gift-rows li, .dash-panel .gift-rows li:first-child { gap: 10px 16px; padding: 14px 16px; border-radius: 8px; }
.dash-panel .gift-rows .who-col p:first-child { font-size: 15px; }
.dash-panel .gift-rows .who-col p + p { font-size: 13px; }
.dash-panel .gift-rows .ph { width: 48px; height: 48px; }
.dash-panel .an-periods { margin: 14px 0 16px; padding: 3px; border-radius: 7px; }
.dash-panel .an-period { min-height: 34px; padding: 0 12px; font-size: 13px; }
.dash-panel .an-tiles, .dash-panel .an-split { gap: 12px; }
.dash-panel .an-tiles { margin-bottom: 12px; }
.dash-panel .an-tile, .dash-panel .an-card { padding: 16px 18px; }
.dash-panel .an-tile-label { font-size: 13px; }
.dash-panel .an-tile .an-num { font-size: 36px; }
.dash-panel .an-card { margin-bottom: 12px; }
.dash-panel .an-card h2 { font-size: 19px; }
.dash-panel .an-sub { font-size: 13px; }
.dash-panel .an-bars { margin-top: 20px; }
.dash-panel .an-plot { height: 170px; }
.dash-panel .an-rank { gap: 10px; margin-top: 12px; }
.dash-panel .an-none { margin-top: 14px; padding: 24px 14px; border-radius: 8px; }
.dash-panel .share-card { padding: 20px 22px; gap: 14px; }
.dash-panel .gift-rows .thank-col .btn { height: 34px; padding: 0 14px; font-size: 13px; }
@media (max-width: 859px) {
  .dash-main { padding: 0 16px 40px; }
  .dash-main > .dash-head { padding: 24px 16px 76px; }
  .dash-panel .form-card, .dash-panel .dash-card { padding: 16px 14px 18px; }
  .dash-panel .form-card .btn { width: 100%; }
  .dash-panel .add-gift-inline { padding: 14px; }
  .dash-panel .add-gift-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dash-panel .add-gift-found { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .dash-panel .add-gift-actions .btn:not(.ghost) { flex: 1; }
  .dash-panel .dash-card .dash-hero-actions { gap: 8px; }
  .dash-panel .item-rows li, .dash-panel .item-rows li:first-child { padding: 12px 0; }
  .dash-panel .gift-rows li, .dash-panel .gift-rows li:first-child { padding: 12px; }
  .dash-panel .an-tile, .dash-panel .an-card { padding: 14px; }
  .dash-panel .share-card { padding: 16px 14px; }
}

/* Analytics page: tighten the summary and reporting cards further. */
.dash-main > .dash-head .an-periods { margin: 12px 0 0; }
.dash-main > .dash-head + .an-tiles { gap: 10px; margin-bottom: 10px; }
.dash-panel .an-tile { padding: 12px 14px; }
.dash-panel .an-tile-label { gap: 6px; font-size: 12px; }
.dash-panel .an-tile .an-num { margin: 3px 0 2px; font-size: 30px; }
.dash-panel .an-hint { font-size: 12px; line-height: 1.4; }
.dash-panel .an-card { padding: 14px 16px; }
.dash-panel .an-card h2 { font-size: 17px; }
.dash-panel .an-card-head { gap: 8px 12px; }
.dash-panel .an-sub { font-size: 12px; }
.dash-panel .an-legend { gap: 10px; font-size: 12px; }
.dash-panel .an-bars { margin-top: 16px; }
.dash-panel .an-plot { height: 140px; }
.dash-panel .an-table { font-size: 13px; }
.dash-panel .an-table th { font-size: 12px; padding: 6px 0; }
.dash-panel .an-table td { padding: 7px 0; }
.dash-panel .an-split { gap: 10px; }
.dash-panel .an-rank { gap: 8px; margin-top: 10px; }
.dash-panel .an-rank li { font-size: 13px; }
.dash-panel .an-none { margin-top: 12px; padding: 18px 12px; font-size: 13px; }
@media (max-width: 859px) {
  .dash-panel .an-tile, .dash-panel .an-card { padding: 12px; }
  .dash-panel .an-tile .an-num { font-size: 28px; }
  .dash-panel .an-plot { height: 120px; }
}

/* Tablet & touch adjustments (<= 1024px) for registry actions and forms */
@media (max-width: 1024px) {
  .dash-panel .form-card .btn { width: 100%; }
  .dash-panel .add-gift-actions .btn:not(.ghost) { flex: 1; }
  .add-gift-actions .btn:not(.ghost) { flex: 1; }
}


/* ==========================================================================
   App look (v4), from the client's mobile mockups: a deep green app bar with the white lockup (lime "Up"),
   light grey screens with a rounded "sheet" under the bar, white 16px cards, 12px controls, Inter, line icons,
   and a five-tab bar on phones (Home, Registry, Add Gift, Ideas, Account). Kept last so it wins.
   ========================================================================== */
:root {
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --accent: #1E5631;
  --accent-hover: #17462A;
  --accent-tint: #E7F1EA;
  --band: #1D5030;
  --band-deep: #163F26;
  --lime: #A3D365;
  --ivory: #F4F6F4;
  --line: #E4E8E5;
  --line-strong: #D3DAD5;
  --ink: #1B231E;
  --ink-2: #4A534D;
  --ink-3: #6B746E;
  --orange: #F29B38;
  --orange-tint: #FFF5EA;
  --app-bar: linear-gradient(180deg, #1F5734 0%, #1B4C2D 100%);
  --r-card: 16px;
  --r-ctl: 12px;
  --card-shadow: 0 1px 2px rgba(20, 40, 28, .04), 0 6px 20px rgba(20, 40, 28, .06);
}
body { font-family: var(--sans); letter-spacing: -.005em; }
.dash-font { --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-family: var(--sans); }
h1, h2, h3, h4 { letter-spacing: -.015em; }

/* Lockup: white with a lime "Up" on the green bar */
.logo-word em { color: var(--accent); font-style: italic; }
.logo.reversed .logo-word { color: #fff; }
.logo.reversed .logo-word em { color: var(--lime); }
.logo.reversed .logo-mark { fill: #fff; }

/* Controls */
.btn { border-radius: var(--r-ctl); font-weight: 600; letter-spacing: -.005em; }
.btn .ui-icon { width: 20px; height: 20px; flex: none; }
.btn.quiet { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent); }
.btn.quiet:hover { background: var(--accent-tint); color: var(--accent); }
.btn.ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search],
select, textarea { border-radius: var(--r-ctl); border: 1.5px solid var(--line-strong); font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(30, 86, 49, .18); border-color: var(--accent); }
.chip { border-radius: 10px; }
.toasts li { border-radius: var(--r-ctl); }
.ui-icon { display: inline-block; flex: none; vertical-align: middle; }

/* App bar (the site header): green on every width */
.site-nav { background: var(--app-bar); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-nav .logo .logo-word { color: #fff; }
.site-nav .logo .logo-word em { color: var(--lime); }
.site-nav .logo .logo-mark { fill: #fff; }
.site-nav .links .nav-link { color: rgba(255, 255, 255, .8); }
.site-nav .links .nav-link:hover, .site-nav .links .nav-link[aria-current="page"] { color: #fff; }
.site-nav .links .nav-link[aria-current="page"]::after { background: var(--lime); }
.site-nav .actions .nav-link { color: #fff; }
.site-nav .actions .nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-nav .actions .btn { background: #fff; color: var(--accent); }
.site-nav .actions .btn:hover { background: var(--accent-tint); color: var(--accent); }
.app-back, .app-title, .app-back-spacer { display: none; }

/* Footer */
.site-footer { background: var(--band); }
.site-footer .bottom { background: var(--band-deep); }

/* Shared app pieces: cards, list rows, chips, badges */
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--card-shadow); padding: 18px; }
.app-section-title { margin: 26px 4px 10px; font: 700 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.app-list { display: grid; gap: 10px; }
.app-row { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(20, 40, 28, .03);
  transition: border-color .15s, transform .15s var(--ease); }
.app-row:hover { color: var(--ink); border-color: var(--line-strong); }
.app-row:active { transform: scale(.99); }
.app-row > .ui-chevron { width: 20px; height: 20px; color: var(--ink-3); margin-left: auto; }
.app-row-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--ink); overflow: hidden;
  font: 700 14px var(--sans); }
.app-row-icon .ui-icon { width: 24px; height: 24px; }
.app-row-icon.photo { background: var(--accent-tint); color: var(--accent); border-radius: 50%; }
.app-row-icon.photo img { width: 100%; height: 100%; object-fit: cover; }
.app-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.app-row-text strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.app-row-text small { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.app-row.danger, .app-row.danger:hover { color: #B42318; }
.app-row.danger small { color: #C4554A; }
.app-badge { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 12px; font-weight: 600; }
.app-badge.off { background: #FDECEA; color: #B42318; }
.app-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 18px 0 22px; padding-bottom: 2px; }
.app-chips::-webkit-scrollbar { display: none; }
.app-chip { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.app-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.app-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* The tab bar: phones only */
.app-bottom-nav { display: none; }

/* Account */
.app-sheet { padding: 28px 0 40px; }
.account-head { display: flex; align-items: center; gap: 14px; }
.account-head h1 { font-size: 20px; }
.account-head p { color: var(--ink-3); font-size: 14px; overflow-wrap: anywhere; }
.app-avatar { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font: 700 20px var(--sans); }
.account-logout { margin-top: 26px; }
.account-logout .btn { color: #B42318; border-color: #E7B4AE; }
.account-logout .btn:hover { background: #FDECEA; color: #B42318; border-color: #B42318; }

/* ---------- Home: the welcome screen ---------- */
.app-hero { background: var(--app-bar); color: #fff; overflow: hidden; }
.app-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.app-hero-logo { display: none; }
.app-hero-title { color: #fff; font: 800 clamp(34px, 4.6vw, 56px)/1.08 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
.app-hero-lead { margin-top: 16px; max-width: 480px; color: rgba(255, 255, 255, .88); font-size: 18px; line-height: 1.55; }
.app-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.app-hero-cta .btn:not(.ghost-light) { background: #fff; color: var(--accent); }
.app-hero-cta .btn:not(.ghost-light):hover { background: var(--accent-tint); }
.app-hero-perks { display: flex; gap: 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.app-hero-perks li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.3; color: rgba(255, 255, 255, .9); }
.app-hero-perks .ui-icon { width: 26px; height: 26px; color: #fff; }
.app-hero-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); background: rgba(255, 255, 255, .08); }
.app-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.app-find { margin-top: -36px; position: relative; z-index: 2; }
.app-find-card { max-width: 720px; margin: 0 auto; padding: 22px 24px; }
.app-find-card h2 { font-size: 20px; }
.app-find-card > p { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.app-find .hp-search { margin-top: 14px; max-width: none; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; box-shadow: none; }
.app-find .hp-search .ui-icon { width: 20px; height: 20px; color: var(--ink-3); }
.app-find .hp-search .btn { border-radius: 10px; }
.app-find .hp-search-results { max-width: none; }
.app-home .hp-features { padding-top: 48px; }

/* ---------- Dashboard (all widths) ---------- */
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; padding: 16px 18px; gap: 0; }
.dash-stats > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dash-stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.dash-stats p { display: flex; flex-direction: column; min-width: 0; }
.dash-stats strong { font-size: 22px; line-height: 1.1; font-weight: 700; }
.dash-stats small { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.dash-stat-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-tint); color: var(--accent); }
.dash-stat-icon .ui-icon { width: 24px; height: 24px; }
.dash-hero-heart { display: inline-flex; vertical-align: middle; color: var(--lime); }
.dash-hero-heart .ui-icon { width: 24px; height: 24px; }
.dash-hero-photo { display: none; }
.ship-banner-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ship-banner-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--accent-tint); color: var(--accent); }
.ship-banner-icon .ui-icon { width: 28px; height: 28px; }
.ship-banner-copy { flex: 1; min-width: 220px; }
.ship-banner-copy h2 { font-size: 17px; }
.ship-banner-copy p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.gift-list-card .card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 20px; }
.gift-list-card .card-head-info { gap: 10px; }
.gift-list-card .card-head-title-row { justify-content: space-between; }
.gift-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.gift-list-card .gift-progress-bar { display: block; height: 6px; width: 100%; border-radius: 99px; background: #E9EDEA; overflow: hidden; }
.gift-list-card .gift-progress-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s var(--ease); }
.gift-list-card .dash-registry-toggle { grid-column: 1 / -1; grid-row: 2; }
.gift-list-card .dash-hero-actions { grid-column: 2; grid-row: 1; display: flex; gap: 10px; }
.gift-list-card .drag-hint { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
.registry-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 0; border: 0; background: none;
  color: var(--ink); font: 500 14.5px var(--sans); cursor: pointer; text-align: left; }
.registry-switch .registry-switch-track { position: relative; width: 46px; height: 28px; flex: none; border-radius: 99px; background: #D7DCD9; transition: background .2s; }
.registry-switch .registry-switch-track > span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.card-head .registry-switch-track, .registry-switch.is-on .registry-switch-track { width: 46px; height: 28px; background: #D7DCD9; }
.card-head .registry-switch-track > span { width: 22px; height: 22px; }
.registry-switch.is-on .registry-switch-track > span { transform: none; }
.registry-switch.is-off .registry-switch-track { background: #E0A43A; }
.registry-switch.is-off .registry-switch-track > span { transform: translateX(18px); }

/* Settings menu: phones only (desktop keeps the tabs) */
.settings-menu { display: none; }

/* Share */
.share-ready { text-align: center; padding: 8px 12px 4px; }
.share-ready-art { width: 120px; height: 90px; margin: 0 auto 8px; }
.share-ready h1 { font-size: 22px; color: var(--ink); }
.share-ready p { max-width: 360px; margin: 8px auto 0; color: var(--ink-2); font-size: 15px; }
.dash-main > .dash-head + .share-ready { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--card-shadow); padding: 26px 20px 22px; margin-bottom: 16px; }
.share-card { display: grid; gap: 16px; }
.share-card .share-link .url { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 8px 0 16px; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-ctl); background: #fff; font-size: 15px; }
.share-card .share-link .url .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-card .copy-in { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); font: 600 13px var(--sans); cursor: pointer; }
.share-card .copy-in:hover { background: var(--ivory); }
.share-card .copy-in span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.share-card .share-now { height: 54px; font-size: 16px; }
.share-card .channels { display: grid; gap: 10px; grid-template-columns: none; }
.share-card .channels > a, .share-card .channels > button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; color: var(--ink); font: 500 15px var(--sans); text-decoration: none; cursor: pointer; text-align: left; }
.share-card .channels > a:hover, .share-card .channels > button:hover { border-color: var(--line-strong); color: var(--ink); }
.share-card .channels > * > span { flex: 1; }
.share-card .channels .ui-chevron { width: 18px; height: 18px; color: var(--ink-3); }
.share-card .channels .ui-whatsapp { color: #25A244; }
.share-card .channels .ui-icon:first-child { width: 24px; height: 24px; }
.share-card .share-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }

/* Add a gift: three ways in, then the link box and the stores that work */
.add-gift-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.add-gift-modes .add-gift-tabs { display: contents; }
.add-gift-modes .add-gift-tabs button, .add-gift-ideas-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 74px; padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; color: var(--ink);
  font: 500 12.5px/1.25 var(--sans); text-align: center; text-decoration: none; cursor: pointer; box-shadow: none; }
.add-gift-modes .add-gift-tabs button .ui-icon, .add-gift-ideas-tab .ui-icon { width: 24px; height: 24px; }
.add-gift-modes .add-gift-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.add-gift-ideas-tab:hover, .add-gift-modes .add-gift-tabs button:hover { border-color: var(--line-strong); color: var(--ink); }
.add-gift-modes .add-gift-tabs button[aria-selected="true"]:hover { color: #fff; }
.add-gift-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--ink-3); font-size: 13px; }
.add-gift-or::before, .add-gift-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.add-gift-stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.add-gift-stores li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; }
.add-gift-stores li img { width: 26px; height: 26px; object-fit: contain; }
.add-gift-stores li .ui-icon { width: 22px; height: 22px; }
.add-gift-auto { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.add-gift-auto .ui-icon { width: 26px; height: 26px; color: var(--accent); }

/* Gift ideas: a round "+" to add */
.hp-idea-card { border-radius: var(--r-card); }

/* ==========================================================================
   Phones and small tablets: the app
   ========================================================================== */
.mobile-only { display: none !important; }
@media (max-width: 860px) {
  .mobile-only { display: block !important; }
  span.mobile-only { display: inline !important; }
  .desktop-only, span.desktop-only { display: none !important; }
  html, body { overflow-x: clip; }
  body { background: var(--ivory); padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  body.has-flow-actions { padding-bottom: 0; }

  /* Things that don't belong on a phone */
  .menu-toggle, .drawer, .sticky-cta,
  .extension-notice, .ext-card, .add-gift-ext, .add-gift-ext-hint, .product-import-note.is-extension,
  [data-browser-btn], [data-browser-link], [data-browser-ext], [data-extension-notice] { display: none !important; }
  .toasts, .has-sticky .toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .has-flow-actions .toasts { bottom: 96px; }

  /* The app bar: logo, or back + title on inner pages. The page below starts as a rounded sheet over it. */
  .site-nav { position: sticky; top: 0; z-index: 50; padding-bottom: 14px; margin-bottom: -14px; }
  .site-nav .bar { height: 58px; gap: 8px; justify-content: center; }
  .site-nav .links, .site-nav .actions { display: none; }
  .site-nav .logo { --logo-h: 24px; }
  .site-nav .bar:has(.app-title:not(:empty)) .logo { display: none; }
  .site-nav .bar:has(.app-title:not(:empty)) .app-back { display: grid; }
  .site-nav .bar:has(.app-title:not(:empty))::after { content: ""; width: 40px; flex: none; }
  .app-back { width: 40px; height: 40px; flex: none; place-items: center; margin-left: -8px; border-radius: 50%; color: #fff; }
  .app-back:hover { color: #fff; background: rgba(255, 255, 255, .1); }
  .app-back .ui-icon, .app-back svg { width: 24px; height: 24px; }
  .app-title { display: block; flex: 1; min-width: 0; text-align: center; color: #fff; font: 700 18px/1.2 var(--sans); letter-spacing: -.01em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-title:empty { display: none; }
  main { position: relative; z-index: 1; background: var(--ivory); border-radius: 22px 22px 0 0; min-height: calc(100dvh - 58px - 68px); }

  /* The tab bar */
  .app-bottom-nav { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(20, 40, 28, .06); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .app-bottom-nav-inner { display: flex; max-width: 560px; height: 64px; margin: 0 auto; }
  .app-tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0;
    color: #59625C; text-decoration: none; font-size: 11.5px; font-weight: 500; -webkit-tap-highlight-color: transparent; }
  .app-tab:hover { color: var(--ink); }
  .app-tab-icon { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .app-tab.is-active { color: var(--accent); font-weight: 700; }
  .app-tab.is-active .app-tab-icon { stroke-width: 2; fill: rgba(30, 86, 49, .14); }
  .app-tab-label { white-space: nowrap; }

  /* Shared */
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hp-section { padding-top: 24px; }
  .crumbs { display: none; }
  .hp-display { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
  .btn { height: 50px; }
  .btn.sm { height: 40px; }
  .app-sheet { padding: 22px 0 32px; }
  .app-section-title { margin-top: 22px; }

  /* ---------- Home ---------- */
  .app-home .site-nav { display: none; }
  .app-home main { border-radius: 0; background: var(--ivory); }
  .app-hero { border-radius: 0 0 28px 28px; }
  .app-hero-in { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: calc(28px + env(safe-area-inset-top, 0px)); padding-bottom: 28px; text-align: center; }
  .app-hero-text { display: contents; }
  .app-hero-logo { display: flex; justify-content: center; order: 1; }
  .app-hero-logo .logo { --logo-h: 34px; }
  .app-hero-title { order: 2; margin-top: 30px; font-size: clamp(28px, 8.2vw, 36px); line-height: 1.12; }
  .app-hero-lead { order: 3; margin: 12px auto 0; font-size: 15.5px; max-width: 330px; }
  .app-hero-photo { order: 4; margin: 26px -16px 0; aspect-ratio: 16 / 11; border-radius: 0; box-shadow: none; background: none;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #000 55%, transparent 100%); mask-image: radial-gradient(120% 90% at 50% 45%, #000 55%, transparent 100%); }
  .app-hero-cta { order: 5; flex-direction: column; gap: 12px; margin-top: 18px; }
  .app-hero-cta .btn { width: 100%; height: 52px; font-size: 16px; }
  .app-hero-cta .btn:not(.ghost-light) { background: #fff; color: var(--accent); }
  .app-hero-perks { order: 6; justify-content: space-around; gap: 8px; margin-top: 24px; }
  .app-hero-perks li { flex-direction: column; gap: 6px; font-size: 12px; text-align: center; }
  .app-find { margin-top: 18px; }
  .app-find-card { padding: 18px 16px; }
  .app-find .hp-search { padding: 4px 4px 4px 12px; }
  .app-find .hp-search .btn { height: 42px; padding: 0 16px; }
  .app-home .hp-features { padding-top: 24px; }

  /* ---------- Create your registry ---------- */
  .cf { display: block; min-height: 100dvh; background: var(--app-bar); }
  .cf-rail { display: none; }
  .cf-main { min-height: 100dvh; display: flex; flex-direction: column; }
  .cf-top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px; align-items: center; height: 58px; padding: 0 16px; background: var(--app-bar); border: 0; }
  .cf-back-btn { width: 40px; height: 40px; margin-left: -8px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
  .cf-back-btn:hover { color: #fff; background: rgba(255, 255, 255, .1); }
  .cf-top-logo { flex: 1; display: flex; justify-content: center; }
  .cf-top .logo { --logo-h: 24px; display: inline-flex; }
  .cf-top .logo-word { font-size: 20px; }
  .cf-count { display: block; text-align: right; font-size: 12px; color: rgba(255, 255, 255, .75); white-space: nowrap; }
  .cf-bar { display: block; position: relative; top: auto; z-index: 2; height: 4px; margin: 2px 22px 0; border-radius: 4px; background: rgba(255, 255, 255, .18); }
  .cf-bar span { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
  .cf .flow { flex: 1; max-width: none; margin: 10px 0 0; padding: 24px 16px 120px; background: var(--ivory); border-radius: 22px 22px 0 0; }
  .cf .flow > :not(.flow-actions) { max-width: 640px; margin-left: auto; margin-right: auto; }
  .flow-actions .inner { max-width: 640px; }
  .cf .flow h1 { font-size: 23px; line-height: 1.2; color: var(--ink); }
  .cf .flow .intro { margin-top: 6px; margin-bottom: 18px; font-size: 14.5px; color: var(--ink-2); }
  .occasion-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .occasion-grid label { position: relative; display: flex; flex-direction: row; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px;
    border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; box-shadow: none; }
  .occasion-grid label:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); box-shadow: 0 0 0 3px rgba(242, 155, 56, .12); }
  .occasion-grid input { order: 3; position: static; width: 22px; height: 22px; margin: 0 0 0 auto; accent-color: var(--orange); opacity: 1; flex: none; }
  .occasion-grid .oc-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 0; background: none; margin: 0; }
  .occasion-grid .oc-icon img, .occasion-grid .oc-icon .icon { width: 38px; height: 38px; }
  .occasion-grid .oc-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
  .occasion-grid strong { font-size: 16px; font-weight: 700; color: var(--ink); }
  .occasion-grid .oc-copy span { font-size: 13px; color: var(--ink-2); margin-top: 1px; }
  .cf .field { font-size: 14px; font-weight: 600; color: var(--ink); }
  .cf input[type=text], .cf input[type=email], .cf input[type=url], .cf textarea, .cf select { min-height: 50px; border-radius: var(--r-ctl); border: 1.5px solid var(--line-strong);
    background: #fff; font-size: 15px; }
  .cf [data-cover-pick], .cf .photo-edit.cover.no-photo[data-cover-pick] { aspect-ratio: auto; height: 150px; border-radius: var(--r-card); overflow: hidden; position: relative; display: flex; align-items: flex-end; justify-content: center;
    border: 0; background: linear-gradient(135deg, #DDEBDD, #F3E7D6); }
  .cf [data-cover-pick] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .cf [data-cover-pick] .cam { position: relative; z-index: 1; margin-bottom: 12px; display: inline-flex; flex-direction: row; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
    border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); opacity: 1;
    width: auto; min-height: 0; border: 0; }
  .cf [data-cover-pick] .cam svg { width: 18px; height: 18px; }
  .cf .choices .choice { border-radius: var(--r-ctl); border-width: 1.5px; }
  .flow-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(20, 40, 28, .06); }
  .flow-actions .inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 0; }
  .flow-actions .spacer { display: none; }
  .flow-actions .btn { flex: 1; height: 52px; border-radius: var(--r-ctl); font-size: 16px; }
  .flow-actions .btn.back { flex: 0 0 auto; padding: 0 16px; background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); }
  .flow-actions .btn.back .icon { transform: scaleX(-1); }

  /* ---------- Dashboard ---------- */
  .shell { display: block; background: var(--app-bar); min-height: 100dvh; }
  .sidebar { display: none; }
  .sidebar.open { display: block; }
  .dash-panel { min-height: 100dvh; background: var(--app-bar); }
  .dash-top { display: block; position: sticky; top: 0; z-index: 40; background: var(--app-bar); border: 0; }
  .dash-top .bar { display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 16px; }
  .dash-top .logo { --logo-h: 24px; }
  .dash-top-left { flex: 1; display: flex; align-items: center; }
  .dash-top-right { display: flex; align-items: center; gap: 12px; }
  .dash-top-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: none; }
  .dash-top-btn:hover { color: #fff; background: rgba(255, 255, 255, .1); }
  .dash-top-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #F05A47; box-shadow: 0 0 0 2px #1D5030; }
  .dash-top-avatar { width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #fff; color: var(--accent);
    border: 0; font: 700 13px var(--sans); text-decoration: none; }
  .dash-top-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .dash-top .menu-toggle { display: none; }
  .dash-top .app-back { display: grid; }
  .dash-top .app-back-spacer { display: block; width: 40px; flex: none; }
  .dash-main { position: relative; max-width: none; min-height: calc(100dvh - 58px); margin: 4px 0 0; padding: 20px 16px 28px; background: var(--ivory); border-radius: 22px 22px 0 0; }

  /* Inner dashboard pages: the title is in the app bar, so the old band shrinks to its tabs/period switcher (if any) */
  .dash-main > .dash-head:not(.dash-hero) { display: block; margin: 0 0 14px; padding: 0; background: none; color: var(--ink); text-align: left; }
  .dash-main > .dash-head:not(.dash-hero) > div > h1, .dash-main > .dash-head:not(.dash-hero) > div > .hp-label,
  .dash-main > .dash-head:not(.dash-hero) > h1, .dash-main > .dash-head:not(.dash-hero) > .hp-label { display: none; }
  .dash-main > .dash-head:not(.dash-hero) p:not(.hp-label) { margin: 0; color: var(--ink-2); font-size: 14px; }
  .dash-main > .dash-head:not(.dash-hero):not(:has(.tabs, .an-periods, p:not(.hp-label))) { display: none; }
  .dash-main > .dash-head + * { margin-top: 0; }
  .dash-main > .dash-head .tabs { display: flex; justify-content: flex-start; gap: 8px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; border: 0; }
  .dash-main > .dash-head .tabs a { flex: none; height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-bottom: 1px solid var(--line);
    border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; }
  .dash-main > .dash-head .tabs a.on, .dash-main > .dash-head .tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
  .dash-main > .dash-head .an-periods { display: flex; gap: 6px; overflow-x: auto; margin: 0; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); }
  .dash-main > .dash-head .an-period { flex: 1; text-align: center; color: var(--ink-2); border-radius: 9px; }
  .dash-main > .dash-head .an-period.on, .dash-main > .dash-head .an-period[aria-current="page"] { background: var(--accent); color: #fff; }

  .dash-card, .dash-panel .form-card, .dash-panel .share-card:not(.qr-first) { border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--card-shadow); background: #fff; }
  .dash-card { padding: 16px; margin-bottom: 14px; }
  .dash-panel .form-card { padding: 18px 16px; }
  .dash-panel .form-card input[type=text], .dash-panel .form-card input[type=email], .dash-panel .form-card input[type=url],
  .dash-panel .form-card select, .dash-panel .form-card textarea { border-radius: var(--r-ctl); min-height: 50px; }
  .dash-panel .form-card .btn { width: 100%; height: 50px; border-radius: var(--r-ctl); }

  /* The registry home: the green band carries on under the bar with the names, then the cards ride over its edge */
  body:has(.dash-hero) .dash-main { margin-top: 0; padding-top: 0; background: none; border-radius: 0; }
  body:has(.dash-hero) .dash-main::before { content: ""; position: absolute; left: 0; right: 0; top: 150px; bottom: 0; background: var(--ivory); z-index: -1; }
  body:has(.dash-hero) .dash-panel { background: linear-gradient(var(--band) 0 260px, var(--ivory) 260px); }
  .dash-main { isolation: isolate; }
  .dash-main > .dash-hero { position: relative; display: block; margin: 0 -16px; padding: 6px 16px 54px; overflow: hidden; background: var(--app-bar); color: #fff; text-align: left; border-radius: 0; }
  .dash-hero .dash-avatar { display: none; }
  .dash-hero-photo { display: block; position: absolute; right: -10px; top: -20px; width: 46%; height: calc(100% + 20px); object-fit: cover; opacity: .9;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%); }
  .dash-hero-text { position: relative; max-width: 64%; }
  .dash-main > .dash-hero .hp-label { margin: 0 0 2px; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .dash-main > .dash-hero h1 { color: #fff; font: 800 clamp(24px, 7vw, 30px)/1.15 var(--sans); letter-spacing: -.02em; overflow-wrap: anywhere; }
  .dash-hero-note { margin-top: 4px; color: rgba(255, 255, 255, .85); font-size: 13.5px; line-height: 1.4; }
  .dash-main > .dash-hero + .dash-stats { margin-top: -38px; position: relative; }
  .dash-stats { padding: 14px; }
  .dash-stats > div + div { padding-left: 14px; }
  .dash-stats strong { font-size: 20px; }

  .ship-banner { padding: 16px; }
  .ship-banner-inner { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
  .ship-banner-icon { width: 44px; height: 44px; border-radius: 12px; }
  .ship-banner-copy { min-width: 0; }
  .ship-banner-copy h2 { font-size: 16px; line-height: 1.3; }
  .ship-banner-copy p { font-size: 13.5px; line-height: 1.45; }
  .ship-banner-btn { grid-column: 1 / -1; margin-top: 12px; }
  .ship-banner-btn .btn { width: 100%; height: 48px; }
  .ship-banner-btn .ui-icon { width: 20px; height: 20px; }

  .gift-list-card .card-head { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
  .gift-list-card .card-head h2 { font-size: 19px; }
  .gift-list-card .dash-registry-toggle { grid-row: auto; padding: 2px 0; }
  .gift-list-card .dash-hero-actions { grid-column: 1; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .gift-list-card .dash-hero-actions .btn { width: 100%; height: 46px; padding: 0 10px; font-size: 14.5px; }
  .gift-list-card .dash-hero-actions .btn[hidden] { display: none; }
  .gift-list-card .dash-hero-actions:has(.btn[hidden]) { grid-template-columns: 1fr; }
  .gift-list-card .drag-hint { display: none; }

  /* Gift rows: a card each, photo left; status and ▲▼ along the bottom */
  .dash-card .item-rows { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
  .dash-card .item-rows > li, .dash-card .item-rows > li:first-child { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "photo info go" "photo status move";
    align-items: center; gap: 4px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .dash-card .item-rows .grip { display: none; }
  .dash-card .item-rows .photo-edit { grid-area: photo; width: 72px !important; height: 72px !important; border-radius: 12px; overflow: hidden; align-self: start; }
  .dash-card .item-rows .info { grid-area: info; min-width: 0; }
  .dash-card .item-rows .info a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
  .dash-card .item-rows .sub { margin-top: 2px; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 2px 8px; }
  .dash-card .item-rows .sub .icon { display: none; }
  .dash-card .item-rows .status { grid-area: status; justify-self: start; }
  .dash-card .item-rows .pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; min-height: 0; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
  .dash-card .item-rows .pill.open { background: var(--accent-tint); color: var(--accent); }
  .dash-card .item-rows .pill.open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .dash-card .item-rows .move { grid-area: move; display: flex; gap: 6px; }
  .dash-card .item-rows .move button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff;
    color: var(--ink); font-size: 11px; cursor: pointer; }
  .dash-card .item-rows .go { grid-area: go; align-self: start; width: 32px; height: 32px; display: grid; place-items: center; margin: -4px -4px 0 0; color: var(--ink); font-size: 20px; text-decoration: none; }
  .dash-card .view-registry { margin-top: 14px; }
  .dash-card .view-registry .btn { width: 100%; }
  .dash-card .empty { padding: 26px 8px; }

  /* Add a gift, opened over the list */
  .add-gift-page { padding: 0; margin: 0 0 14px; }
  .add-gift-page .add-gift-actions { display: flex; gap: 10px; margin-top: 16px; }
  .add-gift-page .add-gift-actions .btn { height: 50px; }
  .add-gift-url { border-radius: var(--r-ctl); }

  /* Settings */
  .settings-home .settings-menu { display: grid; }
  .settings-home .dash-main > :not(.settings-menu) { display: none; }
  body:not(.settings-home) .dash-main > .dash-head:has(> div > .tabs) { display: none; }
  .dash-panel .sharing-settings .choices { grid-template-columns: minmax(0, 1fr); }

  /* Share */
  .dash-panel .share-card.qr-first { background: none; border: 0; box-shadow: none; padding: 0; }
  .share-ready { padding: 4px 8px 6px; }
  .dash-main > .dash-head + .share-ready { background: none; box-shadow: none; padding: 0 8px 8px; }
  .share-card .qr { display: flex; gap: 14px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
  .share-card .qr svg { width: 88px; height: 88px; flex: none; }
  .share-card .qr p { font-size: 13.5px; }
  .share-card .short-create { padding: 14px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }

  /* ---------- Gift ideas: two columns, a round + to add ---------- */
  .ideas-category.hp-hero { display: none; }
  .ideas-category-gifts > .hp-label, .ideas-category-gifts > h2 { margin-bottom: 12px; }
  .hp-ideas, .ideas-category-gifts .hp-ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hp-idea-card { position: relative; display: flex; flex-direction: column; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: none; }
  .hp-idea-card .hp-idea { display: block; padding: 8px 8px 0; color: var(--ink); text-decoration: none; }
  .hp-idea-card .hp-idea-img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #F1F3F1; }
  .hp-idea-card .hp-idea-img img { width: 100%; height: 100%; object-fit: cover; }
  .hp-idea-card h3 { margin: 8px 40px 0 2px; font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hp-idea-card .hp-idea p { margin: 2px 40px 10px 2px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
  .hp-idea-card .hp-idea-add { position: absolute; right: 8px; bottom: 10px; margin: 0; padding: 0; }
  .hp-idea-card .hp-idea-add form { margin: 0; }
  .hp-idea-card .hp-idea-add select { display: none; }
  .hp-idea-card .hp-idea-actions-row { display: block; margin: 0; }
  .hp-idea-card .hp-btn-store { display: none; }
  .hp-idea-card .hp-btn-add { width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
  .hp-idea-card .hp-btn-add .hp-btn-lbl-text, .hp-idea-card .hp-btn-add .hp-btn-lbl-short { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hp-idea-card .hp-btn-add .icon { width: 16px; height: 16px; filter: brightness(0) invert(1); margin: 0; }
  .hp-idea-card .hp-btn-add.is-added { background: var(--accent-tint); color: var(--accent); }
  .blog-grid.hp-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .blog-grid .blog-card { border-radius: 14px; overflow: hidden; }
  .blog-grid .blog-card-body h3 { font-size: 15px; }
  .hp-home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hp-home-tile { border-radius: 14px; }

  /* ---------- A gift giver's view of a registry ---------- */
  .registry-bar { position: sticky; top: 0; z-index: 50; background: var(--app-bar); border: 0; }
  .registry-bar .logo-word { color: #fff; }
  .registry-bar .logo-word em { color: var(--lime); }
  .registry-bar .logo-mark { fill: #fff; }
  .registry-bar .btn.quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
  .registry-bar .btn.make-own { background: #fff; color: var(--accent); }
  .banner { border-radius: var(--r-card); }
  .gift { border-radius: 14px; border: 1px solid var(--line); box-shadow: none; }
  .gift .g-action .btn { border-radius: var(--r-ctl); }
  .toolbar select { border-radius: var(--r-ctl); }

  /* ---------- Sign in and the rest ---------- */
  .auth-split { padding: 22px 16px 40px; }
  .auth-photo, .auth-back { display: none !important; }
  .auth .form-card, .form-card { border-radius: var(--r-card); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
  .registry-cards .registry-card { border-radius: var(--r-card); }
}

@media (max-width: 380px) {
  .app-hero-perks li { font-size: 11px; }
  .add-gift-modes .add-gift-tabs button, .add-gift-ideas-tab { font-size: 11.5px; }
  .dash-stats small { font-size: 11.5px; }
}
@media (max-width: 860px) {
  /* The app bar already names these pages */
  #ideas-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #ideas-h + .app-chips { margin-top: 4px; }
}
.add-gift-url > .ui-icon { width: 20px; height: 20px; color: var(--ink-3); }
@media (max-width: 860px) {
  /* Idea cards: the older ≤1024px rules size these buttons with !important, so these must too */
  .hp-idea-card .hp-idea-add { position: absolute !important; right: 8px; bottom: 10px; width: auto !important; margin: 0 !important; }
  .hp-idea-card .hp-idea-add form { width: auto !important; }
  .hp-idea-card .hp-idea-actions-row { display: block !important; width: auto !important; }
  .hp-idea-card .hp-idea-actions-row .hp-btn-store { display: none !important; }
  .hp-idea-card .hp-idea-actions-row .hp-btn-add { width: 32px !important; height: 32px !important; min-height: 32px !important; padding: 0 !important; border-radius: 50% !important; }
  .hp-idea-card .hp-btn-add .hp-btn-lbl-text, .hp-idea-card .hp-btn-add .hp-btn-lbl-short { display: block !important; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hp-idea-card .hp-idea h3, .hp-idea-card .hp-idea p { margin-left: 2px; margin-right: 44px; }
  /* Links in the shrunken band on inner dashboard pages sit on grey now, not green */
  .dash-main > .dash-head:not(.dash-hero) a:not(.btn) { color: var(--accent); }
}

/* ---------- v4.1: green tab bar with a raised "+", no rubber-band bounce, dashboard header tools ---------- */
/* The page never slides sideways or rubber-bands past its edges (iOS/Android overscroll). */
html, body { overscroll-behavior: none; overflow-x: clip; }
body { position: relative; width: 100%; }
img, video, iframe, table, pre { max-width: 100%; }

.dash-hero-tools { display: none; }

@media (max-width: 860px) {
  .app-bottom-nav { background: var(--app-bar); border-top: 0; box-shadow: 0 -8px 24px rgba(14, 40, 24, .18); border-radius: 20px 20px 0 0; }
  .app-bottom-nav-inner { height: 66px; align-items: stretch; }
  .app-tab { color: rgba(255, 255, 255, .72); }
  .app-tab:hover { color: #fff; }
  .app-tab-icon { stroke-width: 1.8; }
  .app-tab.is-active { color: #fff; }
  .app-tab.is-active .app-tab-icon { fill: rgba(163, 211, 101, .28); stroke: var(--lime); }
  .app-tab.is-active .app-tab-label { color: #fff; }
  .app-tab.is-active::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--lime); }
  .app-tab { position: relative; }
  .app-tab-add { justify-content: flex-end; padding-bottom: 9px; }
  .app-tab-plus { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; display: grid; place-items: center;
    border-radius: 50%; background: var(--lime); color: var(--band-deep); box-shadow: 0 0 0 5px #fff, 0 8px 18px rgba(14, 40, 24, .3);
    transition: transform .15s var(--ease); }
  .app-tab-add:active .app-tab-plus { transform: translateX(-50%) scale(.94); }
  .app-tab-plus svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
  .app-tab-add .app-tab-label { color: #fff; font-weight: 600; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* Dashboard home: share + settings as round icons in the green band; the list's main action is one wide "+ Add Gift" */
  .dash-hero-tools { position: absolute; top: 6px; right: 16px; z-index: 2; display: flex; gap: 8px; }
  .dash-hero-tools a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .dash-hero-tools a:hover { background: rgba(255, 255, 255, .24); color: #fff; }
  .dash-hero-tools .ui-icon { width: 20px; height: 20px; }
  .gift-list-card .dash-hero-actions { grid-template-columns: 1fr; }
  .account-logout .btn { height: 52px; gap: 8px; background: #FDECEA; border-color: #F3C3BD; }
  .account-logout .btn .ui-icon { width: 20px; height: 20px; }
}

/* ---------- Create your registry on tablets (landscape) and desktops: a green step rail, the form in a white card ---------- */
@media (min-width: 861px) {
  .cf { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 100vh; background: var(--ivory); }
  .cf-rail { display: flex; position: sticky; top: 0; height: 100vh; padding: 32px 28px 28px; gap: 40px; background: var(--app-bar); border: 0; color: #fff; }
  .cf-rail .logo { --logo-h: 30px; }
  .cf-rail .logo-word { color: #fff; }
  .cf-rail .logo-word em { color: var(--lime); }
  .cf-rail .logo-mark { fill: #fff; }
  .cf-steps li:not(:last-child)::before { background: rgba(255, 255, 255, .22); }
  .cf-steps li.done::before { background: var(--lime); }
  .cf-steps .num { background: transparent; border-color: rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .85); }
  .cf-steps li.now .num { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 0 4px rgba(163, 211, 101, .2); }
  .cf-steps li.done .num { background: var(--lime); border-color: var(--lime); color: var(--band-deep); }
  .cf-steps strong, .cf-steps li:not(.now):not(.done) strong { color: #fff; }
  .cf-steps li:not(.now):not(.done) strong { opacity: .75; }
  .cf-steps small { color: rgba(255, 255, 255, .7); }
  .cf-preview figcaption { color: rgba(255, 255, 255, .7); }
  .cf-preview-card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
  .cf-preview-url { color: rgba(255, 255, 255, .7); }
  .cf-preview-banner { background: rgba(255, 255, 255, .92); }
  .cf-preview-row { background: rgba(255, 255, 255, .18); }

  .cf-main { min-width: 0; padding: 0 clamp(24px, 4vw, 56px) 48px; }
  .cf-top { position: static; display: flex; align-items: center; justify-content: space-between; height: auto; padding: 28px 0 0;
    max-width: 780px; width: 100%; margin: 0 auto; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cf-top-logo, .cf-top .logo, .cf-bar { display: none; }
  .cf-back-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); }
  .cf-back-btn:hover { border-color: var(--line-strong); color: var(--ink); }
  .cf-count { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .cf .flow { width: 100%; max-width: 780px; margin: 16px auto 0; padding: clamp(28px, 3vw, 40px); background: #fff; border: 1px solid var(--line);
    border-radius: 20px; box-shadow: var(--card-shadow); }
  .cf .flow h1 { font: 800 clamp(26px, 2.4vw, 32px)/1.15 var(--sans); letter-spacing: -.02em; color: var(--ink); }
  .cf .flow .intro { margin: 6px 0 24px; color: var(--ink-2); }
  .cf .occasion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cf .occasion-grid label { border-radius: 14px; border-width: 1.5px; min-height: 76px; }
  .cf input[type=text], .cf textarea, .cf select { border-radius: var(--r-ctl); min-height: 50px; }
  .cf [data-cover-pick] { border-radius: var(--r-card); }
  .cf .flow-actions { position: static; margin-top: 28px; padding: 22px 0 0; border-top: 1px solid var(--line); background: none; box-shadow: none; }
  .cf .flow-actions .inner { max-width: none; padding: 0; }
  .cf .flow-actions .btn { height: 50px; padding: 0 26px; border-radius: var(--r-ctl); }
}
@media (min-width: 861px) and (max-width: 1023px) { .cf .occasion-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1500px) { .cf .occasion-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 861px) {
  .cf .occasion-grid label { gap: 12px; padding: 12px 14px; }
  .cf .occasion-grid input { flex: none; margin-left: auto; }
  .cf .occasion-grid .oc-copy { min-width: 0; flex: 1; }
  .cf [data-cover-pick].no-photo, .cf .photo-edit.cover.no-photo[data-cover-pick] { height: 150px; border: 0; background: linear-gradient(135deg, #DDEBDD, #F3E7D6); }
  .cf [data-cover-pick].no-photo .cam { flex-direction: row; align-self: flex-end; margin: 0 auto 12px; height: 38px; padding: 0 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
  .cf [data-cover-pick].no-photo .cam svg { width: 18px; height: 18px; }
}
@media (min-width: 861px) {
  .cf [data-cover-pick].no-photo { display: flex; justify-content: center; align-items: flex-end; }
  .cf [data-cover-pick].no-photo .cam { position: relative; inset: auto; width: auto; flex: none; }
}

/* ==========================================================================
   v4.2: strictly the client's design (supersedes v4.1's green tab bar and raised "+")
   ========================================================================== */
/* The lockup reads "RegistryUp": one word, a bold upright lime "Up" on green */
.logo-word em { font-style: normal; font-weight: 800; }

/* Home: green top with the photo; a white panel with dots, Get Started, I already have an account, three perks */
.app-welcome { background: #fff; }
.app-welcome-in { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 22px; padding-bottom: 28px; max-width: 560px; }
.app-dots { display: flex; gap: 7px; }
.app-dots span { width: 7px; height: 7px; border-radius: 50%; background: #CFD6D1; }
.app-dots span.on { background: var(--accent); }
.app-welcome .app-hero-cta { display: grid; gap: 12px; width: 100%; margin: 0; }
.app-welcome .app-hero-cta .btn { width: 100%; height: 52px; font-size: 16px; }
.app-welcome .app-hero-cta .btn:not(.quiet) { background: var(--accent); color: #fff; }
.app-welcome .app-hero-cta .btn:not(.quiet):hover { background: var(--accent-hover); }
.app-welcome .app-hero-cta .btn.quiet { height: 46px; font-size: 15px; }
.app-welcome .app-hero-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; margin: 6px 0 0; }
.app-welcome .app-hero-perks li { flex-direction: column; justify-content: flex-start; gap: 6px; text-align: center; color: var(--ink); font-size: 12.5px; line-height: 1.3; }
.app-welcome .app-hero-perks .ui-icon { width: 28px; height: 28px; color: var(--accent); }
.app-hero { border-radius: 0; }
.app-find { margin-top: 24px; }

/* Create step 2 ("Set up your … registry") */
.details-form .field > span:first-child { font-size: 14px; font-weight: 600; color: var(--ink); }
.details-form .req { color: #C0392B; }
.details-form .cover-field { margin-bottom: 20px; }
.details-form [data-cover-pick] { position: relative; height: 170px; border: 0; border-radius: var(--r-card); overflow: hidden;
  background-color: #E9EFEA; background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: center; }
.details-form [data-cover-pick] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.details-form [data-cover-pick] .cam { position: relative; inset: auto; z-index: 1; width: auto; height: 36px; margin: 0 0 12px; padding: 0 14px; display: inline-flex;
  flex-direction: row; align-items: center; gap: 8px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14); opacity: 1; cursor: pointer; }
.details-form [data-cover-pick] .cam .ui-icon { width: 18px; height: 18px; }
.details-form textarea { min-height: 96px; }
.input-with-icon { position: relative; display: block; }
.input-with-icon > .ui-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-2); pointer-events: none; }
.input-with-icon input, .input-with-icon select { padding-left: 44px; }

/* Dashboard band */
.dash-hero-heart { color: #E8C35A; }
.dash-hero-note { display: flex; align-items: center; gap: 6px; }
.dash-hero-note .ui-icon { width: 16px; height: 16px; }

/* Settings: the notifications switch (green when on) */
.app-row-switch { margin: 0; }
.app-switch { position: relative; width: 48px; height: 28px; flex: none; margin-left: auto; padding: 0; border: 0; border-radius: 99px; background: #D7DCD9; cursor: pointer; transition: background .2s; }
.app-switch > span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.app-switch.is-on { background: var(--accent); }
.app-switch.is-on > span { transform: translateX(20px); }

/* Add a Gift */
.add-gift-bar { display: none; }
.add-gift-eg { display: block; font-weight: 400; color: var(--ink); }
.add-gift-store-block { margin-top: 4px; }

/* Gift ideas search */
.app-search { position: relative; display: flex; align-items: center; margin: 6px 0 0; }
.app-search > .ui-icon { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--ink-2); pointer-events: none; }
.app-search input[type=search] { min-height: 48px; padding-left: 44px; border-radius: var(--r-ctl); border: 1.5px solid var(--line-strong); background: #fff; font-size: 14.5px; }
.ideas-index .app-chips { margin-top: 14px; }

@media (max-width: 860px) {
  /* The tab bar, as drawn: white, grey line icons, the current tab in green with a filled icon */
  .app-bottom-nav { background: #fff; border-top: 1px solid var(--line); border-radius: 0; box-shadow: 0 -4px 16px rgba(20, 40, 28, .05); }
  .app-bottom-nav-inner { height: 62px; align-items: center; }
  .app-tab { color: #5E6660; }
  .app-tab:hover { color: var(--ink); }
  .app-tab.is-active, .app-tab.is-active .app-tab-label { color: var(--accent); }
  .app-tab.is-active .app-tab-icon { fill: var(--accent); stroke: var(--accent); }
  .app-tab.is-active::before { content: none; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

  /* Home */
  .app-hero-in { padding-bottom: 0; }
  .app-hero-photo { margin-top: 18px; margin-bottom: 0; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  .app-hero-title { font-size: clamp(28px, 8vw, 34px); }
  .app-welcome { margin-top: -18px; position: relative; z-index: 2; border-radius: 22px 22px 0 0; }
  .app-welcome-in { padding: 18px 20px 26px; gap: 16px; }

  /* Create: the bar is just back + logo; no step count or progress line */
  .cf-count, .cf-bar { display: none; }
  .cf .flow { margin-top: 0; }
  .cf-top { grid-template-columns: 40px minmax(0, 1fr) 40px; }

  /* Dashboard band: names, heart, tagline; the occasion's photo bleeds off the right corner */
  .dash-main > .dash-hero { padding-bottom: 56px; }
  .dash-main > .dash-hero h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .dash-hero-photo { right: -24px; top: -60px; width: 52%; height: calc(100% + 60px); border-radius: 0 0 0 60%;
    -webkit-mask-image: radial-gradient(120% 100% at 100% 30%, #000 45%, transparent 80%); mask-image: radial-gradient(120% 100% at 100% 30%, #000 45%, transparent 80%); }
  .dash-hero-tools { display: none; }
  .gift-list-card .dash-hero-actions { grid-template-columns: 1fr 1fr; }
  .gift-list-card .dash-hero-actions .btn.quiet { display: inline-flex; }

  /* Add a Gift: its own full screen with the green bar */
  .add-gift-page.is-open { position: fixed; inset: 0; z-index: 120; margin: 0; padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto;
    background: var(--ivory); border: 0; border-radius: 0; box-shadow: none; overscroll-behavior: contain; }
  .add-gift-page .add-gift-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; height: 58px; padding: 0 16px 0 8px; background: var(--app-bar); color: #fff; }
  .add-gift-bar .app-back { display: grid; margin-left: 0; border: 0; background: none; cursor: pointer; }
  .add-gift-bar h2 { flex: 1; text-align: center; color: #fff; font: 700 18px var(--sans); }
  .add-gift-bar .app-back-spacer { display: block; width: 40px; }
  .add-gift-page .add-gift-inline { padding: 18px 16px 0; border-radius: 22px 22px 0 0; background: var(--ivory); }
  .add-gift-page .add-gift-actions { display: block; margin-top: 4px; }
  .add-gift-page .add-gift-actions [data-add-cancel] { display: none; }
  .add-gift-page .add-gift-actions .btn { width: 100%; height: 50px; }
  .add-gift-page .add-gift-wanted { margin-top: 4px; }
  body:has(.add-gift-page.is-open) { overflow: hidden; }

  /* Share: the design ends at "Share on social media" */
  .share-card .short-create, .share-card .qr, .share-card > .field:not(.share-main-link) { display: none; }

  /* Gift ideas: name, then price; a round + */
  .hp-idea-card .hp-idea-store { display: none; }
  .hp-idea-card .hp-idea p { color: var(--ink); font-weight: 600; }
  .hp-idea-card .hp-idea h3 { -webkit-line-clamp: 1; }
}

@media (min-width: 861px) {
  .app-welcome { background: transparent; margin-top: -40px; position: relative; z-index: 2; }
  .app-welcome-in { background: #fff; border-radius: 20px; box-shadow: var(--card-shadow); padding: 24px 28px; }
  .app-hero-in { padding-bottom: 88px; }
  .add-gift-eg { display: inline; }
}
@media (max-width: 860px) {
  body:has(.add-gift-page.is-open) .dash-main { z-index: 130; }
  .details-form select { font-size: 14px; text-overflow: ellipsis; }
}
@media (max-width: 860px) { body:has(.add-gift-page.is-open) .app-bottom-nav { display: none; } }

/* ---------- v4.3 ---------- */
/* Search boxes: the field inside the rounded box has no border or outline of its own; the box shows focus */
.hp-search input[type=search], .hp-search input[type=search]:focus, .app-find .hp-search input[type=search] {
  border: 0; outline: none; box-shadow: none; background: transparent; min-height: 46px; border-radius: 0; padding: 0 6px; -webkit-appearance: none; appearance: none; }
.hp-search input[type=search]::-webkit-search-decoration, .hp-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.hp-search:focus-within, .app-find .hp-search:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 86, 49, .12); }
.app-search input[type=search] { -webkit-appearance: none; appearance: none; }
.app-search input[type=search]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 86, 49, .12); }

/* "Add gifts to" (ideas pages, several registries): one picker; the per-card choosers step aside */
.ideas-picker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 10px 12px 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.ideas-picker label { display: flex; align-items: center; gap: 8px; flex: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.ideas-picker label .ui-icon { width: 20px; height: 20px; color: var(--accent); }
.ideas-picker select { flex: 1; min-width: 0; height: 42px; min-height: 42px; font-size: 14.5px; font-weight: 600; }
body:has([data-ideas-registry]) .hp-idea-card .hp-idea-add select { display: none !important; }

@media (max-width: 860px) {
  /* The sticky tab bar: green, white line icons; the current tab in lime with a filled icon */
  .app-bottom-nav { background: var(--app-bar); border-top: 0; box-shadow: 0 -6px 20px rgba(14, 40, 24, .18); }
  .app-tab { color: rgba(255, 255, 255, .75); }
  .app-tab:hover { color: #fff; }
  .app-tab.is-active, .app-tab.is-active .app-tab-label { color: #fff; font-weight: 700; }
  .app-tab.is-active .app-tab-icon { fill: rgba(163, 211, 101, .3); stroke: var(--lime); }
}
.rc-initials { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); font: 800 28px var(--sans); background: var(--accent-tint); }
@media (max-width: 860px) {
  /* Your registries: compact rows with the photo (or initials) beside the name */
  .registry-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .registry-card { border-radius: var(--r-card); border: 1px solid var(--line); box-shadow: var(--card-shadow); overflow: hidden; background: #fff; }
  .registry-card .rc-link { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; text-decoration: none; }
  .registry-card .rc-photo { width: 72px; height: 72px; aspect-ratio: auto; border-radius: 14px; overflow: hidden; }
  .registry-card .rc-photo img { width: 100%; height: 100%; object-fit: cover; }
  .registry-card .rc-body { padding: 0; }
  .registry-card .rc-body h3 { font-size: 17px; line-height: 1.25; }
  .registry-card .rc-actions { padding: 10px 14px; }
  .registry-card.new { min-height: 64px; flex-direction: row; border-style: dashed; }
  .registry-card.new span { font-size: 24px; }
  body.dash-font > main > .wrap > .dash-head h1 { font-size: 24px; }
}

/* ---------- v4.4 ---------- */
/* Your registries: the title on the left, "+ New registry" on the right */
.registries-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: nowrap; }
.registries-head > div { min-width: 0; }
.registries-head .btn { flex: none; }
@media (max-width: 860px) {
  .registries-head { margin-bottom: 16px; }
  .registries-head h1 { font-size: 24px; }
  .registries-head p { font-size: 14px; }
  .registries-head .btn { height: 42px; padding: 0 14px; font-size: 14px; }
}

/* Home hero: the owner's own copy and photo, in the green of the app (was charcoal) */
.hp-hero.dark.brand { background: var(--band); }
.hp-hero.dark.brand .hp-hero-img::before { background: linear-gradient(90deg, var(--band) 0%, rgba(29, 80, 48, .85) 18%,
  rgba(29, 80, 48, .45) 45%, rgba(29, 80, 48, .15) 100%); }
.hp-hero.dark.brand .hp-display em { color: var(--lime); font-style: normal; }
.hp-hero.dark.brand .hp-display em::after { background: rgba(163, 211, 101, .35); }
.hp-hero.dark.brand .hp-search { border: 0; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.hp-hero.dark.brand .hp-search .btn { border-radius: 10px; }
.hp-hero.dark.brand::after { display: none; }
@media (max-width: 860px) {
  .home .site-nav { display: block; }
  .hp-hero.dark.brand { border-radius: 0 0 24px 24px; }
  .hp-hero.dark.brand .hp-hero-img { height: 240px; }
  .hp-hero.dark.brand .hp-hero-img::before { background: linear-gradient(0deg, var(--band) 0%, rgba(29, 80, 48, .35) 45%, rgba(29, 80, 48, .1) 100%); }
  .hp-hero.dark.brand .hp-hero-in { padding-top: 4px; padding-bottom: 28px; }
  .hp-hero.dark.brand .hp-display { font-size: clamp(28px, 8vw, 34px); line-height: 1.15; }
  .hp-hero.dark.brand .hp-lead { font-size: 15.5px; }
  .hp-hero.dark.brand .hp-search { margin-top: 20px; padding: 4px 4px 4px 14px; }
  .home main { border-radius: 0; }
}

/* Log in / sign up: one compact card, centred on a short green band (no full-page photo) */
.auth-split, .auth-split.photo-left { display: block; max-width: 440px; margin: 0 auto; padding: 28px 16px 48px; }
.auth-split .auth-photo, .auth-split .auth-back { display: none !important; }
main:has(> .auth-split) { background: linear-gradient(var(--band) 0 150px, var(--ivory) 150px); }
.auth-split .auth { max-width: none; margin: 0; padding: 26px 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--card-shadow); }
.auth-split .auth h1 { font: 800 24px/1.2 var(--sans); letter-spacing: -.02em; text-align: center; margin: 0 0 4px; }
.auth-split .auth .intro { text-align: center; font-size: 14px; margin: 0 0 18px; }
.auth-split .auth .form-card { padding: 0; border: 0; box-shadow: none; background: none; }
.auth-split .auth .field { margin-bottom: 14px; font-size: 13.5px; }
.auth-split .auth input[type=text], .auth-split .auth input[type=email], .auth-split .auth input[type=password] { min-height: 46px; height: 46px; font-size: 15px; }
.auth-split .auth .btn { height: 48px; }
.auth-split .auth > .meta { margin-top: 14px !important; }
@media (max-width: 860px) {
  main:has(> .auth-split) { background: var(--ivory); }
  .auth-split, .auth-split.photo-left { padding: 20px 16px 32px; }
  .auth-split .auth { padding: 22px 18px 18px; }
  .auth-split .auth h1 { font-size: 22px; }
}

/* ---------- v4.5: the owner's logo files; headers that scroll away and sit tighter ---------- */
.logo { display: inline-flex; align-items: center; gap: 0; line-height: 0; }
.logo .logo-img { display: block; height: var(--logo-h, 30px); width: auto; max-width: none; }
.logo .logo-on-dark, .logo.reversed .logo-on-light { display: none; }
.logo.reversed .logo-on-dark { display: block; }
.site-nav .logo, .registry-bar .logo { --logo-h: 30px; }
.cf-rail .logo { --logo-h: 32px; }
.sidebar .side-head .logo { --logo-h: 26px; }
.site-footer .brand .logo { --logo-h: 32px; }

/* Headers are not sticky (any width) */
.site-nav, .registry-bar, .dash-top, .cf-top { position: relative !important; top: auto !important; }

@media (max-width: 860px) {
  /* A slimmer bar, with the page starting right under it (no green overlap) */
  .site-nav { padding-bottom: 0; margin-bottom: 0; }
  .site-nav .bar { height: 52px; }
  .site-nav .logo, .dash-top .logo, .cf-top .logo, .registry-bar .logo { --logo-h: 26px; }
  .app-title { font-size: 17px; }
  main { border-radius: 0; min-height: calc(100dvh - 52px - 62px); }
  .dash-top .bar, .cf-top { height: 52px; }
  .dash-main { margin-top: 0; padding-top: 16px; border-radius: 0; }
  body:has(.dash-hero) .dash-main { padding-top: 0; }
  .cf { background: var(--ivory); }
  .cf .flow { margin-top: 0; padding-top: 18px; border-radius: 0; }
  .hp-section { padding-top: 16px; }
  .app-sheet { padding-top: 16px; }
  .auth-split, .auth-split.photo-left { padding-top: 16px; }
  body.dash-font > main > .wrap[style] { padding-top: 16px !important; }
  /* The guest page's bar turns green on phones: the white logo there */
  .registry-bar .logo .logo-on-light { display: none; }
  .registry-bar .logo .logo-on-dark { display: block; }
  .add-gift-page .add-gift-bar { height: 52px; }
}

/* ---------- v4.6 ---------- */
/* Gift ideas: the categories first, each a photo tile that opens its gifts */
.ideas-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.ideas-cat { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(20, 40, 28, .04); transition: border-color .15s, transform .15s var(--ease); }
.ideas-cat:hover { color: var(--ink); border-color: var(--line-strong); }
.ideas-cat:active { transform: scale(.99); }
.ideas-cat-img { display: block; aspect-ratio: 4 / 3; background: var(--accent-tint); }
.ideas-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.ideas-cat-name { padding: 12px 40px 14px 14px; font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.ideas-cat > .ui-chevron { position: absolute; right: 12px; bottom: 15px; width: 18px; height: 18px; color: var(--ink-3); }
.ideas-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 12px; font-size: 15px; }
.ideas-results-head a { font-size: 14px; font-weight: 600; }

@media (max-width: 860px) {
  .ideas-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
  .ideas-cat-name { padding: 10px 30px 12px 12px; font-size: 14.5px; }
  .ideas-cat > .ui-chevron { right: 8px; bottom: 12px; width: 16px; height: 16px; }

  /* Idea cards: a labelled "+ Add to registry" button along the bottom (was a bare round +) */
  .hp-idea-card .hp-idea-add { position: static !important; padding: 0 8px 10px !important; width: auto !important; margin: 0 !important; }
  .hp-idea-card .hp-idea-add form, .hp-idea-card .hp-idea-actions-row { width: 100% !important; }
  .hp-idea-card .hp-idea-actions-row .hp-btn-add { width: 100% !important; height: 36px !important; min-height: 36px !important; padding: 0 8px !important;
    border-radius: 10px !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; font-size: 13px !important; font-weight: 600; }
  .hp-idea-card .hp-btn-add .hp-btn-lbl-text { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; display: inline !important; white-space: nowrap; }
  .hp-idea-card .hp-btn-add .hp-btn-lbl-short { display: none !important; }
  .hp-idea-card .hp-idea h3, .hp-idea-card .hp-idea p { margin-right: 2px; }
  .hp-idea-card .hp-idea p { margin-bottom: 8px; }
  .hp-idea-card { justify-content: space-between; }

  /* A compact tab bar */
  .app-bottom-nav-inner { height: 52px; }
  .app-tab { gap: 2px; font-size: 10.5px; }
  .app-tab-icon { width: 21px; height: 21px; }
  .app-tab-label { font-size: 10.5px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  main { min-height: calc(100dvh - 52px - 52px); }
  .toasts, .has-sticky .toasts { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- v4.7: analytics ---------- */
/* Visits, Store clicks and Gifts bought side by side, at every width */
.an-tiles, .dash-panel .an-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .dash-panel .an-tiles { gap: 8px; }
  .an-tile { padding: 12px 10px; min-width: 0; }
  .an-tile-label { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .an-num { font-size: 24px; }
  .an-hint { font-size: 11.5px; }

  /* The period switcher on phones: white pills, the chosen one solid green with white text */
  .dash-main > .dash-head:not(.dash-hero) .an-periods { display: flex; width: 100%; gap: 4px; margin: 12px 0 0; padding: 4px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); }
  .dash-main > .dash-head:not(.dash-hero) .an-periods .an-period { flex: 1; min-height: 34px; padding: 0 6px; border-radius: 9px;
    background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 500; box-shadow: none; }
  .dash-main > .dash-head:not(.dash-hero) .an-periods .an-period.on,
  .dash-main > .dash-head:not(.dash-hero) .an-periods .an-period[aria-current="page"],
  .dash-main > .dash-head:not(.dash-hero) .an-periods .an-period.on:focus,
  .dash-main > .dash-head:not(.dash-hero) .an-periods .an-period[aria-current="page"]:focus-visible {
    background: var(--accent) !important; color: #fff !important; font-weight: 700; outline: none; }
}
@media (max-width: 380px) { .an-tile { padding: 10px 8px; } .an-tile-label { font-size: 11px; } .an-tile-label .an-key { margin-right: 4px; } }

/* ---------- v4.8: iPhone fixes, share page, gift card menu ---------- */
@media (max-width: 860px) {
  /* Tab bar: a rounded bar floating just above the bottom edge. Touching the edge, iPhone Safari stretches its
     colour down behind the address bar; with a gap it stays the size it is. */
  .app-bottom-nav { left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding-bottom: 0;
    border-radius: 18px; box-shadow: 0 8px 24px rgba(14, 40, 24, .28); }
  .app-bottom-nav-inner { height: 54px; padding: 0 4px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  main { min-height: 0; }
  .toasts, .has-sticky .toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* iPhone zooms the page in when a field with text under 16px is tapped, and then it looks wider than the screen */
  input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date],
  input[type=search], input[type=tel], select, textarea,
  .hp-search input[type=search], .app-search input[type=search], .details-form select, .ideas-picker select,
  .toolbar select, .dash-panel .form-card input, .dash-panel .form-card select, .dash-panel .form-card textarea { font-size: 16px !important; }

  /* Share page: the short link and QR code are back under the share options */
  .share-card .short-create, .share-card > .field:not(.share-main-link) { display: block; }
  .share-card .short-create { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .share-card .short-create .btn { height: 40px; }
  .share-card .qr { display: flex; }

  /* Dashboard: smaller Share Registry / Add Gift */
  .gift-list-card .dash-hero-actions .btn { height: 40px; padding: 0 10px; font-size: 14px; gap: 6px; }
  .gift-list-card .dash-hero-actions .btn .ui-icon { width: 18px; height: 18px; }

  /* Gift cards: the ⋮ menu sits in the top right corner */
  .dash-card .item-rows .go { justify-self: end; margin: -6px -8px 0 0; }
  .dash-card .item-rows .move { justify-self: end; }
}
@media (max-width: 860px) {
  .share-card .short-create { gap: 10px; min-height: 0; }
  .share-card .short-create > div { display: flex; flex-direction: column; gap: 4px; min-height: 0; height: auto; }
  .share-card .short-create > div strong { font-size: 15px; }
  .share-card .short-create > div span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
}
@media (max-width: 860px) { .share-card .short-create > div { flex: none; } }

/* ---------- v4.9: the tab bar attached to the bottom again (not floating), sized for the iPhone home indicator ---------- */
@media (max-width: 860px) {
  .app-bottom-nav { left: 0; right: 0; bottom: 0; border-radius: 0; box-shadow: 0 -4px 16px rgba(14, 40, 24, .14);
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  .app-bottom-nav-inner { height: 52px; padding: 0; }
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
  .toasts, .has-sticky .toasts { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  /* Pages without the bar (the guest's registry, buying, log in…) don't keep room for it */
  body:not(:has(.app-bottom-nav)) { padding-bottom: env(safe-area-inset-bottom, 0px); }
  body:not(:has(.app-bottom-nav)) .toasts { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
/* viewport-fit=cover: keep bars and content clear of the notch / rounded corners (zero in a normal browser tab) */
.site-nav, .dash-top, .cf-top, .registry-bar { padding-top: env(safe-area-inset-top, 0px); }
.site-nav .bar, .dash-top .bar, .registry-bar .bar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (max-width: 860px) {
  .add-gift-page.is-open { padding-top: env(safe-area-inset-top, 0px); }
  .cf-top { height: calc(52px + env(safe-area-inset-top, 0px)); }
}

/* ---------- v4.10: the footer on phones (public pages only; the app's own pages leave it out) ---------- */
@media (max-width: 860px) {
  .site-footer { display: block; margin-top: 32px; font-size: 13.5px; }
  .has-sticky .site-footer { padding-bottom: 0; }
  .site-footer .top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; padding-top: 28px; padding-bottom: 22px; }
  .site-footer .brand { grid-column: 1 / -1; max-width: none; gap: 10px; }
  .site-footer .brand .logo { --logo-h: 28px; }
  .site-footer .brand p { font-size: 13px; line-height: 1.5; }
  .site-footer h2 { margin-bottom: 6px; font-size: 11px; }
  .site-footer nav a { min-height: 34px; font-size: 13px; line-height: 1.3; }
  .site-footer .bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; font-size: 12px; }
  .site-footer .bottom-left { flex-wrap: wrap; gap: 4px 8px; }
  .site-footer .legal { gap: 14px; }
}
@media (max-width: 380px) { .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- v4.11: Add a Gift: the form sits in a white card (the store grid is gone) ---------- */
@media (max-width: 860px) {
  .add-gift-page .add-gift-inline { margin: 16px; padding: 18px 16px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-card); box-shadow: var(--card-shadow); }
  .add-gift-page .add-gift-inline .add-gift-modes .add-gift-tabs button:not([aria-selected="true"]), .add-gift-page .add-gift-ideas-tab { background: var(--ivory); }
  .add-gift-page .add-gift-actions { margin-top: 14px; }
}

/* ---------- v4.12: date fields stay inside their box (iPad/iPhone Safari gives the native date field a minimum width
   and ignores width:100% unless its own look is turned off) ---------- */
input[type=date], input[type=datetime-local], input[type=time] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%;
  box-sizing: border-box; line-height: 1.2; text-align: left; background-color: #fff; }
input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.4em; }
input[type=date]::-webkit-datetime-edit { padding: 0; }
input[type=date]::-webkit-calendar-picker-indicator { margin-left: auto; }
.field, .field > *, .input-with-icon, .details-form .field { min-width: 0; max-width: 100%; }
.input-with-icon { width: 100%; }
.input-with-icon input[type=date] { padding-right: 12px; }

/* ---------- v4.13: the event date on the guest's banner (right side; under the names on phones) ---------- */
.banner-date { position: absolute; z-index: 2; right: clamp(16px, 3vw, 32px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; min-width: 108px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; text-align: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.banner-date-day { font: 800 34px/1 var(--sans); letter-spacing: -.02em; }
.banner-date-month { margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.banner-date small { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 12px; font-weight: 500; opacity: .92; }
.banner:has(.banner-date) .banner-text { padding-left: 140px; padding-right: 140px; }
@media (max-width: 700px) {
  .banner-date { position: relative; right: auto; top: auto; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: center;
    gap: 4px 8px; width: fit-content; min-width: 0; margin: 16px auto 0; padding: 8px 14px; border-radius: 999px; }
  .banner-date-day { font-size: 15px; font-weight: 700; }
  .banner-date-month { margin: 0; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 700; }
  .banner-date small { margin: 0; padding: 0 0 0 8px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .4); font-size: 13px; }
  .banner:has(.banner-date) .banner-text { padding-left: 0; padding-right: 0; }
}
