@layer reset, tokens, base, components, layouts, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  [hidden] { display: none !important; }
}
@layer tokens {
  :root {
    color-scheme: light;
    --ink: #183b38; --muted: #5c716c; --brand: #163f3b; --brand-hover: #25564f;
    --paper: #f7f8f4; --white: #fff; --line: #dce4dc; --coral: #e5856d;
    --mint: #e3efdf; --peach: #f9e4d9; --lavender: #e9e4f5; --cream: #f8eedc;
    --danger: #9b3541; --success: #29613d; --radius: 20px; --radius-sm: 12px;
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
    --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
    --font: "Aptos", "Segoe UI", system-ui, sans-serif;
    --shadow: 0 14px 40px #183b380a;
  }
}
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 30px; }
  body { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
  h1, h2, h3 { line-height: 1.13; font-weight: 650; text-wrap: balance; }
  h1 { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -.045em; }
  h2 { font-size: 24px; letter-spacing: -.03em; }
  h3 { font-size: 17px; letter-spacing: -.015em; }
  p { color: var(--muted); }
  button { color: inherit; }
  :focus-visible { outline: 3px solid #9b5828; outline-offset: 4px; }
  ::selection { background: var(--peach); color: var(--ink); }
  input, textarea, select { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid #bacbc0; border-radius: var(--radius-sm); background: white; color: var(--ink); }
  input::placeholder, textarea::placeholder { color: #6c7f78; opacity: 1; }
  textarea { resize: vertical; }
  label, legend { font-size: 14px; font-weight: 600; }
  input[aria-invalid="true"] { border-color: var(--danger); }
  fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
  button:disabled { opacity: .6; cursor: not-allowed; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 14px; background: white; }
  .skip-link:focus { top: 10px; }
  .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .13em; color: #4f6960; margin-bottom: 12px; }
  .small { font-size: 14px; }
  .muted { color: var(--muted); }
  .centered { text-align: center; }
  .coral-dot { color: #ad503b; }
  .mint { background: var(--mint); color: #315b35; }
  .peach { background: var(--peach); color: #834c3a; }
  .lavender { background: var(--lavender); color: #69518c; }
  .full { width: 100%; }
  .mobile-only { display: none; }
}
@layer components {
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent; border-radius: 12px; background: var(--brand); color: white; min-height: 48px; padding: 12px 20px; font-size: 15px; font-weight: 600; line-height: 1.4; transition: background .15s, transform .15s; text-align: center; }
  .button:hover:not(:disabled) { background: var(--brand-hover); transform: translateY(-1px); }
  .button.secondary { background: transparent; color: var(--brand); border-color: #bdcec4; }
  .button.secondary:hover:not(:disabled) { background: #edf1e9; }
  .button.cream { background: var(--cream); color: var(--brand); }
  .button.cream:hover { background: white; }
  .text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 650; }
  .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
  .back-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
  .card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 50px; padding: 6px 12px; font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .025em; }
  .pill.light { color: #deead7; border: 1px solid #769180; background: transparent; font-size: 10px; letter-spacing: .13em; }
  .section-heading { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
  .section-heading h2 { font-size: 21px; }
  .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
  .page-heading p:not(.eyebrow) { margin-top: 16px; }
  .info-strip { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; background: #edf1e8; border-radius: 14px; margin-top: 24px; font-size: 14px; }
  .info-strip > span { font-size: 22px; line-height: 1; }
  .info-strip strong { display: block; color: var(--ink); }
  .field { margin-bottom: 22px; }
  .field label { display: block; margin-bottom: 8px; }
  .field-hint { font-size: 13px; margin-top: 7px; line-height: 1.5; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .optional { font-weight: 400; color: var(--muted); margin-left: 4px; }
  .icon-button { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 21px; }
  .icon-button:hover { background: var(--paper); }
  .status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
  .status::before, .status-dot { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .status.yes, .status-dot.yes { color: #376a43; }
  .status.pending, .status-dot.pending { color: #90632c; }
  .status.no, .status-dot.no { color: #976078; }
  .large-star { font-size: 64px; line-height: 1; color: #54704c; }
  .brand { display: inline-flex; align-items: center; font-size: 31px; font-weight: 800; letter-spacing: -.065em; line-height: 1; }
  .brand span { color: #aa563e; font-size: 30px; margin-left: 7px; font-weight: 400; }
  .invitation-card { width: 100%; aspect-ratio: 4/5; position: relative; overflow: hidden; background-position: center; background-size: cover; border-radius: 16px; color: white; box-shadow: 0 14px 32px #0e1f2430; }
  .theme-space { background-image: linear-gradient(#172b4233, #172b424d), url('/assets/images/space.jpg'); background-color: #152b48; }
  .theme-dino { background-image: linear-gradient(#18382744, #18382777), url('/assets/images/dino.jpg'); background-color: #34593a; }
  .theme-unicorn { background-image: linear-gradient(#47395755, #47395766), url('/assets/images/unicorn.jpg'); background-color: #906bb1; }
  .invitation-card-inner { min-height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 25px 20px 22px; text-shadow: 0 2px 12px #07112a; background: linear-gradient(90deg, transparent, #101a3666 50%, transparent); }
  .invite-kicker { font-size: 10px; font-weight: 800; letter-spacing: .18em; }
  .invite-star { font-size: 38px; line-height: 1.3; color: #f6d78e; }
  .invitation-card h2 { font-family: Georgia, serif; font-size: clamp(42px, 4vw, 64px); letter-spacing: -.065em; line-height: 1; color: #fff8df; }
  .invitation-card h2 span { font-size: .72em; letter-spacing: -.04em; }
  .invitation-card p { color: white; font-size: 13px; margin: 14px 0; }
  .invite-date { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 5px; font-size: 12px; }
  .invite-date strong { font-size: 15px; letter-spacing: .12em; }
  .invite-footer { margin-top: 18px; font-size: 10px; letter-spacing: .04em; }
  dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; color: var(--ink); border: 0; border-radius: 24px; padding: 36px; box-shadow: 0 20px 100px #0003; }
  dialog::backdrop { background: #102b3466; backdrop-filter: blur(4px); }
  dialog h2 { margin-right: 10px; }
  dialog p { margin: 16px 0; }
  dialog .eyebrow { margin-top: 12px; font-size: 10px; }
  .dialog-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 27px; }
  .toast { position: fixed; z-index: 60; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: var(--brand); color: white; border-radius: 14px; padding: 16px 20px; box-shadow: 0 8px 40px #0002; font-size: 14px; }
  .notice { border-radius: 16px; padding: 28px; }
  .notice p { margin: 12px 0; color: inherit; }
  .error-notice { background: #fae9e7; color: #843b39; border: 1px solid #e9c0ba; }
  .success-notice { background: var(--mint); color: #315b35; border: 1px solid #c0d5b8; }
  .skeleton { height: 28px; border-radius: 8px; background: #edf0e9; margin-bottom: 18px; animation: pulse 1.8s ease-in-out infinite alternate; }
  .skeleton.short { width: 64%; }
  @keyframes pulse { to { opacity: .4; } }
}
@layer layouts {
  .fixture-bar { min-height: 34px; padding: 4px 36px; background: #edeedc; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #526044; gap: 8px; }
  .fixture-bar > span { display: flex; gap: 7px; align-items: center; }
  .fixture-bar i { width: 5px; height: 5px; border-radius: 100%; background: #73854a; }
  .fixture-bar button { border: 0; background: transparent; padding: 0 10px; min-height: 32px; font-size: 11px; font-weight: 600; }
  .app-header { height: 88px; display: flex; justify-content: space-between; align-items: center; padding: 0 36px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .header-right { display: flex; align-items: center; gap: 30px; }
  .header-tag { font-size: 13px; color: var(--muted); }
  .avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 100%; background: #eddec7; border: 3px solid white; font-size: 15px; font-weight: 650; }
  .side-nav { position: absolute; top: 126px; bottom: 0; left: 0; width: 228px; padding: 40px 22px; }
  .side-nav > .eyebrow { font-size: 10px; margin-left: 16px; margin-bottom: 16px; }
  .side-nav > a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 6px; border-radius: 12px; font-size: 14px; font-weight: 550; color: var(--muted); }
  .side-nav > a[aria-current] { background: #e4ecdf; color: var(--brand); }
  .side-nav > a:hover { background: #edf1e8; }
  .nav-icon { font-size: 23px; width: 25px; text-align: center; line-height: 1; }
  .side-note { margin-top: 64px; border-top: 1px solid var(--line); padding: 28px 16px 20px; }
  .small-star { display: block; font-size: 38px; color: #ba6a4f; margin-bottom: 10px; }
  .side-note strong { font-size: 19px; line-height: 1.2; letter-spacing: -.03em; }
  .side-note p { font-size: 12px; margin-top: 12px; }
  .side-nav > .component-link { font-size: 11px; font-weight: 400; }
  .main { max-width: 1480px; margin-left: 228px; padding: 42px 48px 64px; min-width: 0; }
  .bottom-nav { display: none; }
  .dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: 24px; }
  .celebration-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: var(--brand); border-radius: 24px; padding: 30px 30px 30px 32px; color: white; overflow: hidden; }
  .hero-copy { flex: 1; position: relative; z-index: 1; min-width: 0; }
  .hero-copy h2 { font-size: clamp(28px, 2.7vw, 39px); letter-spacing: -.04em; margin: 20px 0 14px; }
  .hero-copy h2 .coral-dot { color: #f0b08a; }
  .hero-copy p { color: #ccddd2; font-size: 12px; line-height: 1.7; margin-bottom: 24px; }
  .hero-copy .button { font-size: 13px; padding: 12px 14px; gap: 12px; }
  .hero-footnote { display: block; color: #b6cdbf; font-size: 10px; margin-top: 14px; max-width: 230px; }
  .hero-art { width: 39%; min-width: 140px; max-width: 210px; transform: rotate(7deg); flex-shrink: 0; }
  .hero-art .invitation-card { border: 5px solid #eee5cc; border-radius: 6px; aspect-ratio: 3/4.4; }
  .hero-art .invitation-card-inner { padding: 17px 8px; }
  .hero-art .invitation-card h2 { font-size: 37px; }
  .hero-art .invitation-card p { font-size: 9px; }
  .hero-art .invite-star { font-size: 23px; }
  .hero-art .invite-kicker { font-size: 7px; }
  .hero-art .invite-date, .hero-art .invite-footer { font-size: 7px; }
  .hero-art .invite-date strong { font-size: 10px; }
  .next-step { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
  .step-marker { font-size: 28px; letter-spacing: -.04em; color: #496541; margin-bottom: 24px; }
  .step-marker span { font-size: 14px; color: #86937d; letter-spacing: 0; }
  .next-step .eyebrow { font-size: 9px; }
  .next-step h2 { font-size: 23px; }
  .next-step p:not(.eyebrow) { font-size: 13px; margin-top: 14px; margin-bottom: 10px; }
  .next-step .text-link { margin-top: auto; font-size: 13px; }
  .progress-track { width: 100%; height: 5px; background: #e8ecdf; border-radius: 10px; margin-top: 20px; }
  .progress-track span { display: block; width: 75%; height: 100%; background: #6b8a55; border-radius: inherit; }
  .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
  .stat { position: relative; padding: 24px; transition: border-color .15s; }
  .stat:hover { border-color: #94ae98; }
  .stat-icon { position: absolute; right: 20px; top: 20px; display: grid; place-items: center; height: 36px; width: 36px; border-radius: 10px; font-size: 23px; }
  .stat strong { display: block; font-size: 30px; letter-spacing: -.04em; padding-right: 34px; margin-bottom: 10px; }
  .stat strong small { font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
  .stat > span:last-child { color: var(--muted); font-size: 11px; display: block; }
  .planning-list { padding: 28px; }
  .planning-list > a { display: flex; align-items: center; gap: 16px; padding: 17px 0; border-top: 1px solid #e9ede5; }
  .planning-list > a > span:nth-child(2) { flex: 1; }
  .planning-list strong { font-size: 14px; font-weight: 600; }
  .planning-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
  .check-circle { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; background: var(--mint); border-radius: 100%; color: #4f6e43; font-size: 13px; }
  .check-circle.pending { background: var(--peach); color: #9d5c45; }
  .wizard-steps { display: flex; list-style: none; padding: 0 0 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); gap: 32px; }
  .wizard-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
  .wizard-steps b { display: grid; place-items: center; width: 30px; height: 30px; background: #e8ede4; border-radius: 100%; font-weight: 500; }
  .wizard-steps [aria-current] { color: var(--brand); font-weight: 700; }
  .wizard-steps [aria-current] b { background: var(--brand); color: white; }
  .wizard-steps a { display: inline-flex; align-items: center; min-height: 44px; }
  .form-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(230px, 1fr); gap: 32px; align-items: start; }
  .form-card { padding: 32px; }
  .form-card .section-heading { flex-wrap: wrap; }
  .form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 24px; }
  .form-footer > span { max-width: 180px; font-size: 12px; }
  .tip-card { background: #edf0df; border-radius: 24px; padding: 36px; }
  .tip-card h2 { margin: 25px 0 15px; }
  .tip-card p { font-size: 14px; }
  .tip-card a { margin-top: 20px; }
  .guest-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 28px; padding-bottom: 28px; }
  .guest-summary > div { border-right: 1px solid var(--line); padding-left: 28px; }
  .guest-summary > div:first-child { padding-left: 0; }
  .guest-summary > div:last-child { border-right: 0; }
  .guest-summary b { font-size: 32px; font-weight: 600; letter-spacing: -.04em; display: block; }
  .guest-summary span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
  .guest-list { padding: 0 28px; }
  .list-toolbar { display: flex; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .search-field { flex: 1; }
  .search-field input { background: var(--paper); border-color: transparent; font-size: 14px; }
  .filter-group { display: flex; gap: 4px; }
  .filter { border: 0; background: transparent; border-radius: 10px; padding: 10px 16px; min-height: 44px; font-size: 13px; }
  .filter.active { background: var(--mint); }
  .guest-row { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid #e9ede6; }
  .guest-row:last-child { border-bottom: 0; }
  .guest-avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 100%; font-size: 18px; font-weight: 500; }
  .guest-details { flex: 1; min-width: 0; }
  .guest-details h3 { margin-bottom: 5px; }
  .guest-details h3 small { font-size: 12px; font-weight: 400; }
  .private-note { font-size: 13px; margin-top: 8px; }
  .empty-filter { padding: 32px 0; }
  .page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; }
  .wishlist-intro { display: flex; align-items: center; gap: 18px; background: #eaf0e2; padding: 24px 28px; border-radius: 18px; margin-bottom: 30px; }
  .child-badge { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; background: #cad8b9; border-radius: 100%; font-family: Georgia, serif; font-size: 25px; }
  .wishlist-intro strong { font-size: 16px; }
  .wishlist-intro p { margin-top: 3px; font-size: 13px; }
  .wishlist-spark { margin-left: auto; font-size: 60px; color: #648454; line-height: 1; }
  .wish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .wish-card { overflow: hidden; }
  .wish-art { height: 175px; display: grid; place-items: center; position: relative; margin: 8px 8px 0; border-radius: 14px; }
  .wish-art > span:first-child { font-size: 76px; font-family: Georgia, serif; }
  .wish-art .favorite { position: absolute; bottom: 12px; left: 12px; background: #fffc; color: #70566b; backdrop-filter: blur(3px); }
  .wish-content { padding: 20px; }
  .wish-content h2 { font-size: 20px; min-height: 48px; }
  .wish-content p { font-size: 13px; margin-top: 12px; min-height: 42px; }
  .wish-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 12px; }
  .theme-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 40px; align-items: start; }
  .theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .theme-option { padding: 6px 6px 14px; border: 2px solid transparent; background: white; border-radius: 16px; text-align: left; }
  .theme-option.selected { border-color: var(--brand); background: #eff3e9; }
  .theme-image { display: block; aspect-ratio: 3/4; border-radius: 9px; overflow: hidden; position: relative; }
  .theme-image img { width: 100%; height: 100%; object-fit: cover; }
  .theme-check { display: none; position: absolute; top: 8px; right: 8px; height: 26px; width: 26px; place-items: center; background: var(--brand); color: white; border: 2px solid white; border-radius: 100%; font-size: 12px; }
  .selected .theme-check { display: grid; }
  .theme-option strong, .theme-option small { display: block; padding: 0 5px; }
  .theme-option strong { font-size: 13px; margin-top: 12px; }
  .theme-option small { color: var(--muted); font-size: 10px; margin-top: 4px; }
  .theme-preview { background: #ebeede; border-radius: 24px; padding: 24px; }
  .preview-label { font-size: 11px; color: #536649; display: flex; justify-content: center; gap: 6px; align-items: center; margin-bottom: 18px; }
  .theme-preview > p { font-size: 11px; margin-top: 20px; }
  .custom-background { margin-top: 24px; padding: 24px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
  .custom-symbol { font-size: 30px; color: #7c8f6a; }
  .custom-background > div { flex: 1; min-width: 180px; }
  .custom-background h2 { font-size: 19px; }
  .custom-background p { font-size: 13px; margin: 8px 0; }
  .custom-background .small { font-size: 11px; }
  .custom-background .button { font-size: 13px; }
  .preview-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .preview-stage { background: #e9ecdf; border-radius: 24px; padding: 28px 45px 20px; text-align: center; }
  .preview-stage .invitation-card { max-width: 330px; margin: 0 auto 20px; }
  .theme-preview .invitation-card, .preview-stage .invitation-card { aspect-ratio: 3 / 4.5; min-height: 390px; }
  .preview-stage .text-link { font-size: 12px; }
  .unlock-card { padding: 36px; }
  .unlock-card h2 { margin: 20px 0 16px; font-size: 31px; }
  .unlock-card > p { font-size: 14px; }
  .feature-list { list-style: none; padding: 0; margin: 24px 0; }
  .feature-list li { display: flex; gap: 12px; margin: 14px 0; font-size: 14px; }
  .feature-list span { color: #53774a; }
  .checkout-note { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 24px; }
  .checkout-note strong { font-size: 14px; }
  .checkout-note p { font-size: 13px; margin-top: 6px; }
  .unlock-card > .small { font-size: 11px; margin-top: 14px; }
  .preview-disclaimer { margin-top: 26px; font-size: 12px; }
  .main-public { margin: 0 auto; padding: 36px 32px; max-width: 1100px; }
  .guest-view { background: #f3f3e9; }
  .guest-view .header-tag, .guest-view .avatar { display: none; }
  .guest-view .app-header { justify-content: center; background: transparent; height: 76px; border-bottom: 0; }
  .public-heading { text-align: center; margin-bottom: 28px; }
  .public-heading p { margin-top: 14px; font-size: 14px; }
  .public-heading .pill { font-size: 10px; }
  .public-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .public-invitation { position: sticky; top: 24px; }
  .public-invitation .invitation-card { aspect-ratio: 3/4.2; border: 8px solid #fffaf0; transform: rotate(-2deg); }
  .public-invitation .invitation-card-inner { padding: 40px 20px; }
  .public-invitation .invitation-card h2 { font-size: 80px; }
  .public-invitation .invite-star { font-size: 70px; margin: 10px 0; }
  .public-invitation .invitation-card p { font-size: 16px; margin: 24px 0; }
  .public-invitation .invite-date strong { font-size: 19px; }
  .public-welcome, .rsvp-card { padding: 32px; }
  .public-welcome h1 { font-size: 37px; }
  .public-welcome > p:not(.eyebrow) { font-size: 14px; margin-top: 18px; }
  .event-details { margin: 24px 0; font-size: 14px; }
  .event-details > div { padding: 16px 0; border-top: 1px solid var(--line); }
  .event-details dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
  .event-details dt span { margin-right: 5px; }
  .rsvp-card { margin-top: 24px; scroll-margin-top: 24px; }
  .rsvp-card h2 { font-size: 27px; margin: 12px 0; }
  .rsvp-card > p { font-size: 14px; margin-bottom: 22px; }
  .rsvp-card .eyebrow { font-size: 10px; }
  .rsvp-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
  .rsvp-options legend { margin-bottom: 10px; }
  .rsvp-options label { display: block; position: relative; }
  .rsvp-options input { position: absolute; opacity: 0; width: 1px; min-height: 1px; }
  .rsvp-options span { display: grid; place-items: center; min-height: 52px; padding: 10px 6px; border-radius: 12px; border: 1px solid #bacbc0; font-size: 13px; font-weight: 500; }
  .rsvp-options input:checked + span { border-color: var(--brand); background: var(--mint); box-shadow: inset 0 0 0 1px var(--brand); }
  .rsvp-options input:focus-visible + span { outline: 3px solid #9b5828; outline-offset: 3px; }
  .rsvp-card form > .small { font-size: 11px; margin-top: 12px; }
  .public-wishes { margin-top: 64px; }
  .public-wishes .section-heading { margin-bottom: 12px; }
  .public-wishes h2 { font-size: 31px; }
  .public-wishes > p { margin-bottom: 26px; font-size: 14px; }
  .compact-wish { padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; }
  .wish-mini { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; font-size: 30px; }
  .compact-wish > div { flex: 1; min-width: 125px; }
  .compact-wish h3 { font-size: 17px; margin-bottom: 10px; }
  .compact-wish .button { font-size: 13px; margin-top: auto; }
  .public-footer { text-align: center; color: var(--muted); font-size: 12px; margin: 48px 0 24px; }
  .public-footer a { display: inline-block; font-weight: 750; font-size: 18px; letter-spacing: -.04em; margin-left: 4px; padding: 10px 0; }
  .states-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .state-demo { padding: 32px; }
  .state-demo h2 { margin: 16px 0; }
  .state-demo p { margin: 16px 0 24px; }
  .button-stack { display: flex; flex-wrap: wrap; gap: 12px; }
  .error-page { max-width: 680px; padding: 60px 24px; margin: auto; }
  .error-page h1 { font-size: 34px; margin: 40px 0 20px; }
  .error-page .button { margin-top: 24px; }
  .no-script { margin: 20px; padding: 20px; border: 1px solid var(--line); font-size: 14px; }
}
@layer responsive {
  @media (min-width: 1600px) { .main { margin-right: auto; } }
  @media (max-width: 1200px) {
    .side-nav { width: 195px; padding-inline: 16px; }
    .main { margin-left: 195px; padding: 36px 30px 60px; }
    .main-public { margin-inline: auto; }
    .dashboard-grid { grid-template-columns: minmax(0, 1.7fr) minmax(205px, 1fr); gap: 18px; }
    .celebration-hero { padding: 25px; gap: 16px; }
    .hero-art { width: 36%; min-width: 125px; }
    .hero-copy h2 { font-size: 30px; }
    .hero-footnote { font-size: 9px; }
    .next-step { padding: 24px; }
    .stat { padding: 20px; }
    .stat strong { font-size: 25px; }
    .stat-icon { right: 14px; top: 14px; width: 30px; height: 30px; font-size: 20px; }
    .theme-layout { gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); }
    .theme-preview { padding: 18px; }
    .theme-grid { gap: 8px; }
    .theme-option strong { font-size: 12px; }
    .theme-option small { display: none; }
    .wish-grid { gap: 16px; }
    .unlock-card { padding: 28px; }
  }
  @media (max-width: 1000px) {
    .side-nav { width: 174px; padding-inline: 12px; }
    .side-nav > a { padding-inline: 12px; gap: 10px; }
    .main { margin-left: 174px; padding-inline: 24px; }
    .main-public { margin-inline: auto; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .celebration-hero { padding: 30px; }
    .hero-art { width: 33%; }
    .hero-copy h2 { font-size: 38px; }
    .next-step { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; }
    .next-step .step-marker { grid-row: 1/5; margin: 0; }
    .next-step .eyebrow, .next-step h2, .next-step p, .next-step a, .next-step .progress-track { grid-column: 2; }
    .next-step h2 br { display: none; }
    .stats-grid { gap: 12px; }
    .stat strong small { display: block; margin-top: 3px; }
    .stat-icon { width: 28px; height: 28px; }
    .form-layout { grid-template-columns: 1fr; }
    .tip-card { padding: 24px; }
    .tip-card .large-star { float: right; }
    .tip-card h2 { margin-top: 0; }
    .theme-layout { grid-template-columns: 1fr; }
    .theme-grid { gap: 16px; }
    .theme-option strong { font-size: 14px; }
    .theme-option small { display: block; }
    .theme-preview { max-width: 360px; margin: auto; padding: 24px; }
    .preview-layout { gap: 24px; grid-template-columns: 1fr; }
    .preview-stage .invitation-card { max-width: 320px; }
    .wish-grid { grid-template-columns: 1fr; }
    .wish-card { display: grid; grid-template-columns: 135px 1fr; }
    .wish-art { margin: 8px; height: auto; min-height: 170px; }
    .wish-art > span:first-child { font-size: 58px; }
    .wish-art .favorite { font-size: 8px; left: 6px; bottom: 8px; padding: 5px 8px; }
    .wish-content h2, .wish-content p { min-height: 0; }
    .public-layout { gap: 24px; }
    .public-welcome, .rsvp-card { padding: 24px; }
    .public-invitation .invitation-card h2 { font-size: 66px; }
    .public-wishes .wish-grid { grid-template-columns: repeat(3, 1fr); }
    .compact-wish { padding: 18px; }
  }
  @media (max-width: 760px) {
    .fixture-bar { padding: 2px 20px; min-height: 44px; font-size: 10px; }
    .fixture-bar button { min-height: 44px; padding-right: 0; }
    .app-header { height: 74px; padding: 0 22px; }
    .brand { font-size: 30px; }
    .header-tag, .side-nav { display: none; }
    .main { margin: 0; padding: 30px 20px calc(110px + env(safe-area-inset-bottom)); }
    .bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fffef9f5; backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -6px 26px #163f3b06; }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; font-size: 10px; color: #667667; border-radius: 12px; }
    .bottom-nav a > span { font-size: 23px; line-height: 1.1; }
    .bottom-nav a[aria-current] { background: #e9efdf; color: var(--brand); font-weight: 700; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
    .page-heading .desktop-action { display: none; }
    h1 { font-size: 38px; letter-spacing: -.05em; }
    .page-heading p:not(.eyebrow) { font-size: 14px; margin-top: 13px; }
    .eyebrow { font-size: 10px; margin-bottom: 10px; }
    .mobile-only { display: initial; }
    .celebration-hero { padding: 24px; border-radius: 20px; min-height: 313px; gap: 10px; }
    .hero-copy h2 { font-size: 28px; margin-top: 17px; }
    .hero-copy p { font-size: 11px; margin-bottom: 20px; max-width: 175px; }
    .hero-copy .pill { font-size: 8px; padding: 5px 8px; }
    .hero-copy .button { font-size: 11px; padding: 11px 12px; gap: 7px; min-height: 46px; white-space: nowrap; }
    .hero-footnote { font-size: 8px; max-width: 155px; }
    .hero-art { min-width: 103px; width: 34%; transform: rotate(8deg) translateX(4px); }
    .hero-art .invitation-card { aspect-ratio: 3/5.2; min-height: 225px; border-width: 3px; }
    .hero-art .invitation-card-inner { padding: 12px 5px; }
    .hero-art .invitation-card h2 { font-size: 29px; }
    .hero-art .invitation-card p { font-size: 7px; margin: 9px 0; }
    .hero-art .invite-kicker { font-size: 5px; }
    .hero-art .invite-star { font-size: 24px; margin-top: 5px; }
    .hero-art .invite-date strong { font-size: 7px; }
    .hero-art .invite-date, .hero-art .invite-footer { font-size: 6px; }
    .hero-art .invite-footer { margin-top: 9px; }
    .next-step { padding: 22px; column-gap: 18px; }
    .next-step h2 { font-size: 21px; }
    .next-step p:not(.eyebrow) { font-size: 12px; margin-top: 10px; }
    .next-step .step-marker { font-size: 26px; }
    .next-step .step-marker span { display: block; font-size: 11px; }
    .next-step .eyebrow { font-size: 8px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
    .stat { padding: 18px; }
    .stat strong { font-size: 29px; padding-right: 20px; }
    .stat strong small { font-size: 13px; }
    .stat > span:last-child { font-size: 10px; }
    .stat:last-child { grid-column: 1 / -1; padding: 18px 20px; }
    .stat:last-child strong { font-size: 22px; margin-bottom: 5px; }
    .stat:last-child strong small { display: inline; font-size: 14px; }
    .stat:last-child .stat-icon { width: 36px; height: 36px; top: 22px; right: 20px; }
    .planning-list { padding: 22px; }
    .planning-list .section-heading { align-items: start; margin-bottom: 18px; }
    .planning-list .section-heading > span { display: none; }
    .planning-list .section-heading h2 { font-size: 21px; max-width: 230px; }
    .planning-list > a { gap: 12px; }
    .planning-list strong { font-size: 13px; }
    .planning-list small { font-size: 11px; }
    .check-circle { width: 28px; height: 28px; flex-basis: 28px; font-size: 11px; }
    .back-link { margin-top: -14px; margin-bottom: 18px; font-size: 12px; }
    .wizard-steps { gap: 0; justify-content: space-between; margin-bottom: 24px; padding-bottom: 20px; }
    .wizard-steps li { flex-direction: column; gap: 5px; font-size: 10px; }
    .wizard-steps a { min-height: 44px; min-width: 44px; justify-content: center; }
    .wizard-steps b { width: 30px; height: 30px; }
    .form-card { padding: 22px; }
    .form-card .section-heading { gap: 12px; }
    .form-card .section-heading h2 { font-size: 21px; }
    .form-card .pill { font-size: 9px; }
    .field-row { gap: 12px; }
    .form-footer { flex-direction: column; align-items: stretch; gap: 16px; }
    .form-footer > span { max-width: unset; text-align: center; font-size: 11px; }
    .field label { font-size: 13px; }
    .field-hint { font-size: 12px; }
    .tip-card { border-radius: 20px; }
    .tip-card h2 { font-size: 23px; }
    .guest-summary { margin-bottom: 24px; padding-bottom: 22px; }
    .guest-summary > div { padding-left: 12px; }
    .guest-summary b { font-size: 28px; }
    .guest-summary span { font-size: 10px; gap: 4px; }
    .guest-summary .status-dot { width: 4px; height: 4px; }
    .guest-list { padding-inline: 20px; }
    .list-toolbar { flex-wrap: wrap; gap: 12px; padding: 20px 0 12px; }
    .search-field { flex-basis: 100%; }
    .filter { padding: 9px 15px; font-size: 12px; }
    .guest-row { gap: 12px; padding: 19px 0; }
    .guest-avatar { width: 39px; height: 39px; flex-basis: 39px; font-size: 16px; }
    .guest-details h3 { font-size: 16px; }
    .guest-details .status { font-size: 11px; }
    .private-note { font-size: 12px; line-height: 1.45; }
    .guest-row .icon-button { border-color: transparent; width: 44px; flex-basis: 44px; }
    .info-strip { padding: 18px; font-size: 12px; gap: 10px; }
    .page-footer { flex-direction: column; align-items: stretch; gap: 18px; }
    .page-footer .text-link { justify-content: center; font-size: 12px; }
    .page-footer > .small { font-size: 12px; }
    .wishlist-intro { padding: 20px; gap: 12px; margin-bottom: 24px; }
    .wishlist-intro strong { font-size: 14px; }
    .wishlist-intro p { font-size: 12px; }
    .wishlist-spark { display: none; }
    .child-badge { width: 44px; height: 44px; flex-basis: 44px; font-size: 22px; }
    .wish-card { grid-template-columns: 105px 1fr; }
    .wish-art { min-height: 170px; margin: 7px 0 7px 7px; }
    .wish-art > span:first-child { font-size: 49px; }
    .wish-art .favorite { font-size: 7px; left: 5px; padding: 5px; }
    .wish-content { padding: 20px 16px; }
    .wish-content h2 { font-size: 18px; }
    .wish-content p { font-size: 12px; margin-top: 9px; }
    .wish-footer { margin-top: 12px; gap: 4px; }
    .wish-footer .pill { font-size: 9px; padding: 5px 9px; }
    .wish-footer .icon-button { width: 44px; flex-basis: 44px; height: 44px; border-color: transparent; }
    .theme-layout > section > .section-heading { flex-direction: column; align-items: start; gap: 5px; }
    .theme-layout > section > .section-heading h2 { font-size: 21px; }
    .theme-layout .section-heading .small { font-size: 11px; }
    .theme-grid { gap: 7px; }
    .theme-option { padding: 4px 4px 12px; border-radius: 12px; }
    .theme-option strong { font-size: 11px; padding-inline: 2px; margin-top: 10px; }
    .theme-option small { display: none; }
    .theme-check { width: 22px; height: 22px; top: 5px; right: 5px; font-size: 10px; }
    .custom-background { padding: 20px; gap: 14px; }
    .custom-background > div { min-width: 170px; }
    .custom-background h2 { font-size: 18px; }
    .custom-background .button { width: 100%; }
    .theme-preview { max-width: 100%; width: 100%; padding: 24px 28px; }
    .invitation-card h2 { font-size: 59px; }
    .invitation-card-inner { padding: 24px 16px; }
    .invite-star { font-size: 42px; }
    .invitation-card p { font-size: 12px; }
    .preview-stage { padding: 22px 25px 15px; }
    .preview-stage .text-link { font-size: 11px; }
    .preview-label { font-size: 10px; }
    .unlock-card { padding: 25px; }
    .unlock-card h2 { font-size: 29px; }
    .unlock-card .feature-list { font-size: 13px; }
    .preview-disclaimer { font-size: 11px; }
    .main-public { padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); }
    .guest-view .app-header { height: 70px; }
    .public-heading { margin-bottom: 22px; }
    .public-heading .pill { font-size: 8px; padding: 7px 11px; }
    .public-heading p { font-size: 12px; padding-inline: 10px; }
    .public-layout { grid-template-columns: 1fr; gap: 28px; }
    .public-invitation { position: static; padding: 0 7px; }
    .public-invitation .invitation-card { aspect-ratio: 3/4.2; border-width: 6px; }
    .public-invitation .invitation-card-inner { padding: 25px 18px; }
    .public-invitation .invitation-card h2 { font-size: 70px; }
    .public-invitation .invite-star { font-size: 44px; margin: 6px 0; }
    .public-invitation .invitation-card p { font-size: 13px; margin: 18px 0; }
    .public-invitation .invite-date strong { font-size: 16px; }
    .public-invitation .invite-kicker { font-size: 9px; }
    .public-invitation .invite-footer { margin-top: 16px; }
    .public-welcome { padding: 26px; }
    .public-welcome h1 { font-size: 36px; }
    .rsvp-card { padding: 25px; }
    .rsvp-card h2 { font-size: 26px; }
    .rsvp-card .optional { display: inline-block; margin-left: 0; font-size: 12px; }
    .rsvp-options span { font-size: 12px; }
    .public-wishes { margin-top: 40px; }
    .public-wishes h2 { font-size: 27px; }
    .public-wishes .large-star { font-size: 44px; }
    .public-wishes .wish-grid { grid-template-columns: 1fr; }
    .public-wishes > p { font-size: 13px; }
    .compact-wish { padding: 22px; }
    .public-footer { margin-top: 30px; }
    .states-grid { grid-template-columns: 1fr; }
    .state-demo, .notice { padding: 24px; }
    dialog { margin: auto 0 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 60px); border-radius: 24px 24px 0 0; padding: 30px 24px calc(28px + env(safe-area-inset-bottom)); }
    dialog h2 { font-size: 26px; }
    dialog p { font-size: 14px; }
  }
  @media (max-width: 374px) {
    .main { padding-inline: 16px; }
    h1 { font-size: 35px; }
    .celebration-hero { padding: 22px 18px; }
    .hero-copy h2 { font-size: 26px; }
    .hero-art { min-width: 100px; width: 33%; }
    .hero-copy .button { padding-inline: 10px; }
    .guest-summary > div { padding-left: 8px; }
    .guest-summary span { font-size: 9px; }
    .wish-card { grid-template-columns: 94px 1fr; }
    .wish-content { padding: 18px 14px; }
    .wish-content h2 { font-size: 17px; }
    .theme-option strong { font-size: 10px; }
    .form-card { padding: 20px; }
    .rsvp-card { padding: 22px; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
  @media print { .fixture-bar, .app-header, .side-nav, .bottom-nav, button { display: none; } .main { margin: 0; padding: 0; } body { background: white; } }
}
