@layer reset, base, components;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, dl, dd { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
}
@layer base {
  :root { --paper: #fbfaf6; --surface: #fff; --ink: #25342e; --muted: #59665d; --green: #355642; --line: #dce2d8; --control: #839284; --accent: #879878; --blush: #f0e3dd; --serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif; --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --motion-fast: 180ms; --motion-leaf: 1100ms; --motion-draw: 2400ms; }
  html { scroll-behavior: smooth; scroll-padding-top: 24px; }
  body { background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
  /* Guest invitations keep the neutral root palette; application identity is shell-only. */
  body:has(> .site-header, > .unavailable) {
    --paper: #fffdfd; --ink: #32283d; --muted: #6d5c72;
    --green: #75426f; --line: #e1d2df; --control: #9c809c; --accent: #a36391;
    --action-hover: #583052; --hover-surface: #f1e5ef; --selection: #e8cfe3; --focus: #8b487f;
    --hero-surface: #f9edf2; --process-surface: #362a40; --process-ink: #fffafe;
    --process-muted: #e1cce0; --process-copy: #f2e5f0; --process-line: #a58aa5; --process-accent: #d59fc2;
  }
  h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
  h1 { font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -1.2px; }
  h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.5px; }
  h3 { font-size: 26px; }
  p + p { margin-top: 12px; }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
  a:hover { color: var(--green); }
  button, summary { cursor: pointer; }
  button { border: 0; }
  :focus-visible { outline: 3px solid var(--focus, #875124); outline-offset: 4px; }
  ::selection { background: var(--selection, #dae5d5); }
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--control); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.5; }
  textarea { resize: vertical; }
  input[type=checkbox], input[type=radio] { accent-color: var(--green); width: 20px; height: 20px; vertical-align: middle; margin: 0 10px 0 0; flex-shrink: 0; }
  fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
  fieldset[disabled] input, fieldset[disabled] select, fieldset[disabled] textarea { background: #eef0e9; color: #526151; cursor: not-allowed; }
  button:disabled { color: #59665d; background: #e7ebe3; border-color: #98a493; cursor: not-allowed; }
  small, .small { font-size: 14px; line-height: 1.6; }
  [hidden] { display: none !important; }
  section[id], h2[id] { scroll-margin-top: 24px; }
}
@layer components {
  .skip-link { position: absolute; left: 16px; top: 8px; z-index: 20; padding: 12px 18px; background: var(--ink); color: #fff; transform: translateY(-150%); }
  .skip-link:focus { transform: none; color: #fff; }
  .site-header { max-width: 1440px; margin: auto; padding: 24px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
  .wordmark { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; flex-shrink: 0; font: 32px/1.1 var(--serif); letter-spacing: -1px; }
  .wordmark-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .wordmark small { display: block; font: 12px/1.5 var(--sans); letter-spacing: .1px; color: var(--muted); margin-top: 4px; }
  .brand-bud { width: 27px; height: 38px; color: var(--green); }
  .site-header nav { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
  .site-header nav > a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; border-bottom: 1px solid transparent; }
  .site-header nav > a[aria-current=page], .site-header nav > a:hover { border-color: var(--green); }
  .language-form { display: flex; align-items: center; }
  .language-form select { width: 72px; min-height: 44px; padding: 9px; border-color: transparent; background: transparent; font-size: 14px; }
  .studio-main { width: min(1280px, 100%); padding: 0 40px; margin: auto; min-height: 70vh; }
  .site-footer { width: min(1280px, 100%); margin: 80px auto 0; border-top: 1px solid var(--line); padding: 28px 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; }
  .eyebrow { font: 14px/1.6 var(--sans); color: var(--muted); letter-spacing: .5px; }
  .muted { color: var(--muted); }
  .button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 20px; gap: 12px; border: 1px solid var(--green); border-radius: 4px; background: var(--green); color: #fff; font-size: 16px; line-height: 1.5; text-decoration: none; font-weight: 500; transition: background var(--motion-fast), border-color var(--motion-fast); text-align: center; }
  .button:hover { background: var(--action-hover, #294533); color: #fff; }
  .button.secondary { background: transparent; color: var(--ink); border-color: var(--control); }
  .button.secondary:hover { background: var(--hover-surface, #edf1e8); }
  .button.google-sign-in { background: #fff; border-color: #747775; color: #1f1f1f; gap: 12px; }
  .button.google-sign-in:hover { background: #f2f6fc; color: #1f1f1f; border-color: #4285f4; }
  .google-sign-in img { flex-shrink: 0; }
  .button.full, .full { width: 100%; }
  .text-button, .text-link { display: inline-flex; align-items: center; justify-content: center; padding: 10px 8px; min-height: 44px; border-radius: 3px; font-size: 14px; line-height: 1.6; color: var(--green); background: transparent; text-decoration: underline; text-underline-offset: 5px; }
  .text-button:hover, .text-link:hover { background: var(--hover-surface, #edf1e8); }
  .inline-form { display: inline-block; }
  .danger { color: #8b3b2a; }
  .botanical-artwork { display: block; flex-shrink: 0; color: var(--accent); pointer-events: none; overflow: visible; }
  .botanical-artwork path { vector-effect: non-scaling-stroke; stroke-dasharray: none; stroke-dashoffset: 0; }
  .botanical-artwork.drawing path { stroke-dasharray: 1; animation: grow-line var(--motion-draw) cubic-bezier(.4, 0, .2, 1) both; }
  .botanical-artwork[data-drawing=divider] { --motion-draw: var(--motion-leaf); }
  .botanical-artwork[data-drawing=medallion] { --motion-draw: 2000ms; }
  .botanical-artwork[data-drawing=bud] { --motion-draw: 1200ms; }
  .botanical-artwork.drawing path:nth-child(2) { animation-delay: 140ms; }
  .botanical-artwork.drawing path:nth-child(3) { animation-delay: 280ms; }
  .botanical-artwork.drawing path:nth-child(n+4) { animation-delay: 420ms; }
  @keyframes grow-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .home-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .home-header .wordmark { grid-column: 2; grid-row: 1; }
  .home-header .home-sections { grid-column: 1; grid-row: 1; justify-content: start; }
  .home-header .account-navigation { grid-column: 3; grid-row: 1; }
  .studio-main.marketing-main { width: 100%; padding: 0; }
  .marketing-main > .flash-group:has(.flash) { max-width: 1160px; margin: 0 auto 24px; padding: 0 24px; }
  .gathering-hero { position: relative; overflow: hidden; padding: 64px 24px 64px; text-align: center; background: var(--hero-surface); border-bottom: 1px solid var(--line); }
  .gathering-hero h1 { font-size: clamp(52px, 7.5vw, 108px); line-height: 1.06; letter-spacing: -2.8px; max-width: 18ch; margin: 24px auto; }
  .gathering-hero h1 span { display: block; }
  .gathering-intro { max-width: 43ch; margin: auto; color: var(--muted); font-size: 18px; }
  .gathering-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin: 28px 0 16px; }
  .gathering-hero > :not(.botanical-artwork) { position: relative; z-index: 1; }
  .gathering-sprig { position: absolute; width: 110px; height: auto; right: max(32px, calc((100vw - 1200px)/2)); bottom: 100px; transform: rotate(10deg); }
  .gathering-divider { position: absolute; width: 120px; height: 32px; left: max(32px, calc((100vw - 1200px)/2)); bottom: 180px; transform: rotate(-32deg); }
  .design-collection { width: min(1160px, calc(100% - 80px)); margin: auto; padding: 72px 0; }
  .collection-heading { max-width: 650px; margin-bottom: 48px; }
  .collection-heading h2 { font-size: clamp(36px, 4.5vw, 56px); margin: 16px 0 20px; }
  .collection-heading > p:last-child { max-width: 60ch; color: var(--muted); }
  .design-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 64px; padding: 40px 0; border-top: 1px solid var(--line); }
  .design-story { max-width: 36ch; }
  .design-number { color: var(--muted); font-size: 14px; }
  .design-story h3 { font-size: 40px; margin: 20px 0; }
  .design-story > p:not(.design-number) { color: var(--muted); }
  .design-story .text-link { margin: 24px 0 0 -8px; }
  .design-study { position: relative; display: block; padding: 64px 40px 40px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
  .design-study:hover { color: var(--ink); border-color: var(--control); }
  .design-study p { font-size: 14px; }
  .study-label { position: absolute; left: 20px; top: 16px; font-size: 12px; color: var(--muted); }
  .design-study.study-collage { display: block; aspect-ratio: 16 / 9; min-height: 0; padding: 0; overflow: hidden; container-type: inline-size; }
  .study-collage .study-label { z-index: 5; left: 14px; top: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 253, 253, .82); color: var(--ink); }
  .study-piece { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: auto; rotate: var(--r, 0deg); }
  img.study-piece, .study-piece > img { display: block; height: auto; }
  .study-envelope > img:first-child, .study-photo-frame { position: relative; width: 100%; }
  .study-seal { position: absolute; }
  .study-photo-image { position: absolute; transform-origin: 0 0; object-fit: cover; }
  .study-photo-edge { position: absolute; left: 0; top: 0; width: 100.3%; }
  .swan-study { background: #fcfbf8; }
  .daydream-study { background: url("/images/daydream/sky-5e5646cd0ae38b3daf12f683e8328088.webp?vsn=d") center 30% / cover no-repeat, #e9d9ee; }
  .seaside-study { background: url("/images/seaside/backdrop-089b3c20755552a06a07c52036bc9bac.webp?vsn=d") center 40% / cover no-repeat, #f1ece3; }
  .burgundy-study { background: url("/images/burgundy/backdrop-3e309563244794e6e33ade86ac644017.webp?vsn=d") center 30% / cover no-repeat, #d8ccbf; }
  .st-swan-lace { --x: 11; --y: 3; --w: 23; --r: -8deg; }
  .st-swan-envelope { --x: 30; --y: 16; --w: 40; filter: drop-shadow(0 6px 10px rgba(43, 40, 30, .16)); }
  .st-swan-envelope .study-seal { left: 41%; top: 42%; width: 18%; }
  .st-swan-calla { --x: 73; --y: -6; --w: 14; --r: 14deg; }
  .st-swan-peony { --x: 70; --y: 50; --w: 23; }
  .st-swan-heart { --x: 56; --y: 64; --w: 15; --r: -10deg; }
  .st-swan-swan { --x: 7; --y: 54; --w: 18; --r: -6deg; }
  .st-daydream-tulips { --x: 2; --y: 15; --w: 17; --r: -8deg; }
  .st-daydream-flower { --x: 19; --y: -8; --w: 15; }
  .st-daydream-envelope { --x: 30; --y: 16; --w: 38; filter: drop-shadow(0 8px 12px rgba(120, 80, 90, .18)); }
  .st-daydream-frame { --x: 68; --y: 4; --w: 21; }
  .st-daydream-frame .study-photo-image { left: 33.02%; top: 13.73%; width: 52.58%; height: 64.33%; rotate: 12.958deg; }
  .st-daydream-cherub { --x: 84; --y: -2; --w: 12; --r: 6deg; }
  .st-daydream-glasses { --x: 48; --y: 68; --w: 26; --r: -4deg; }
  .st-daydream-kiss { --x: 9; --y: 66; --w: 15; --r: -12deg; }
  .st-daydream-cake { --x: 86; --y: 62; --w: 10; }
  .st-seaside-bouquet { --x: -3; --y: 30; --w: 18; }
  .st-seaside-hydrangea { --x: 16; --y: -12; --w: 17; }
  .st-seaside-envelope { --x: 30; --y: 24; --w: 40; filter: drop-shadow(0 8px 12px rgba(40, 70, 90, .2)); }
  .st-seaside-envelope .study-seal { left: 39.4%; top: 48.8%; width: 19.7%; }
  .st-seaside-polaroid { --x: 70; --y: -2; --w: 24; }
  .st-seaside-polaroid .study-photo-image { left: 31.55%; top: 4.53%; width: 67.42%; height: 60.13%; rotate: 20.02deg; }
  .st-seaside-shell { --x: 74; --y: 58; --w: 18; }
  .st-seaside-locket { --x: 16; --y: 70; --w: 18; --r: -4deg; }
  .st-seaside-starfish { --x: 60; --y: 70; --w: 12; --r: -10deg; }
  .st-burgundy-leaves { --x: -4; --y: 22; --w: 16; }
  .st-burgundy-bouquet { --x: 16; --y: -20; --w: 18; }
  .st-burgundy-envelope { --x: 30; --y: 24; --w: 40; filter: drop-shadow(0 8px 12px rgba(70, 20, 30, .25)); }
  .st-burgundy-envelope .study-seal { left: 41.7%; top: 51.4%; width: 16%; }
  .st-burgundy-record { --x: 72; --y: -8; --w: 18; }
  .st-burgundy-polaroid { --x: 76; --y: 26; --w: 20; }
  .st-burgundy-polaroid .study-photo-image { left: 4.35%; top: 22.98%; width: 70.05%; height: 61.71%; rotate: -16.49deg; }
  .st-burgundy-locket { --x: 44; --y: 76; --w: 14; }
  .st-burgundy-anthurium { --x: 62; --y: 66; --w: 15; }
  .st-burgundy-plate { --x: 5; --y: 60; --w: 17; }
  .invitation-process { background: var(--process-surface); color: var(--process-ink); padding: 64px 40px 40px; }
  .process-inner { max-width: 1160px; margin: auto; }
  .process-heading { max-width: 680px; margin-bottom: 48px; }
  .process-bud { width: 34px; height: 48px; color: var(--process-accent); margin-bottom: 24px; }
  .process-heading .eyebrow { color: var(--process-muted); }
  .process-heading h2 { font-size: clamp(36px, 4.5vw, 56px); margin-top: 16px; }
  .process-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: decimal-leading-zero; padding: 0; margin: 0; }
  .process-steps li { list-style-position: inside; padding: 24px 0; border-top: 1px solid var(--process-line); }
  .process-steps li::marker { color: var(--process-muted); font: 14px var(--sans); }
  .process-steps h3 { font: 500 20px/1.4 var(--sans); margin: 20px 0 16px; }
  .process-steps p { color: var(--process-copy); }
  .editing-term { border-top: 1px solid var(--process-line); padding-top: 24px; margin-top: 16px; color: var(--process-muted); font-size: 14px; max-width: 80ch; }
  .marketing-footer { width: 100%; max-width: none; margin-top: 0; padding-left: max(40px, calc((100vw - 1160px)/2)); padding-right: max(40px, calc((100vw - 1160px)/2)); background: var(--process-surface); border-color: var(--process-line); color: var(--process-muted); }
  .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0 28px; }
  .page-heading > div { min-width: 0; }
  .page-heading .eyebrow { margin-bottom: 10px; }
  .project-name { overflow-wrap: anywhere; }
  .page-heading > .small { overflow-wrap: anywhere; }
  .breadcrumb { display: inline-flex; min-height: 44px; align-items: center; margin-top: 20px; color: var(--muted); font-size: 14px; }
  .breadcrumb + .page-heading { padding-top: 12px; }
  .tabs { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
  .tabs a { display: inline-flex; align-items: center; padding: 12px 0; min-height: 48px; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
  .tabs a[aria-current=page] { border-color: var(--green); font-weight: 600; }
  .tabs .preview-action { margin-left: auto; text-decoration: underline; color: var(--green); font-size: 14px; }
  .badge { display: inline-block; padding: 5px 10px; margin: 2px 4px 2px 0; border: 1px solid #aeb9a8; border-radius: 3px; background: #edf0e9; color: #3c4e3d; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
  .badge.yes, .badge.sent { background: #e7f0e2; border-color: #99af8e; color: #2e542b; }
  .badge.no { background: #f6eae5; border-color: #c4a396; color: #743a2d; }
  .badge.pending { background: #f5f0df; border-color: #b8ad81; color: #655529; }
  .badge.not-sent { background: #f5f5ef; color: #59665d; }
  .empty-state { text-align: center; padding: 48px 24px; margin: 24px 0; background: #fff; border: 1px solid var(--line); }
  .empty-bud { width: 48px; height: 64px; margin: 0 auto 24px; }
  .empty-state p { color: var(--muted); max-width: 50ch; margin: 18px auto 0; }
  .invitation-selector { margin-bottom: 24px; }
  .wedding-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .wedding-card a { text-decoration: none; }
  .wedding-thumbnail { padding: 28px 24px; min-height: 230px; text-align: center; background: #ece6d9; border: 1px solid var(--line); }
  .thumbnail-art { width: 55px; height: 60px; margin: 0 auto 18px; }
  .wedding-thumbnail h2 { font-size: 30px; margin-bottom: 16px; }
  .wedding-thumbnail p { font-size: 14px; }
  .wedding-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
  .wedding-card-footer a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; }
  .purchase-panel { margin-top: 48px; padding: 32px; background: #edf1e7; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr); gap: 48px; align-items: center; }
  .purchase-panel h2 { margin: 12px 0 20px; }
  .purchase-actions form { margin: 8px 0; }
  .panel { padding: 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff; margin-bottom: 24px; }
  .panel-title { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
  .panel-title > span { color: var(--muted); font-size: 14px; }
  .panel-title h2 { font-size: 30px; }
  .editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
  .editor-aside { position: sticky; top: 24px; }
  .editor-aside h2 { font-size: 30px; margin: 16px 0; }
  .editor-aside p { margin-bottom: 18px; font-size: 14px; }
  .editor-aside .inline-form { width: 100%; margin-top: 12px; }
  .access-summary { border-left: 2px solid #b8c4ac; padding-left: 18px; color: var(--muted); }
  .fieldset { margin-bottom: 22px; }
  .fieldset label { display: block; }
  .label { display: block; margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
  .fieldset:has(input[type=checkbox]) label { min-height: 44px; display: flex; align-items: center; }
  .fieldset:has(input[type=checkbox]) .label { display: flex; align-items: center; margin: 0; font-weight: 500; }
  .form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .field-help { font-size: 14px; color: var(--muted); margin: 12px 0 20px; }
  .section-editor { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
  .photo-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 22px; }
  .photo-field:has(.photo-preview[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .photo-field .fieldset { margin-bottom: 8px; }
  .photo-preview { width: 96px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); }
  .photo-field input[type=file] { padding: 7px; cursor: pointer; }
  .photo-field input[type=file]::file-selector-button { margin-right: 14px; min-height: 32px; padding: 4px 16px; border: 1px solid var(--control); border-radius: 4px; background: transparent; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
  .photo-field input[type=file]:hover::file-selector-button { background: var(--hover-surface, #edf1e8); }
  .picker-art { width: 72px; height: 82px; margin-bottom: 8px; }
  .design-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
  .design-option { position: relative; min-width: 0; cursor: pointer; }
  .design-option input { position: absolute; top: 14px; left: 14px; width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
  .design-option-card { display: grid; justify-items: center; gap: 2px; height: 100%; padding: 18px 16px 16px; background: #f4f0e8; border: 1px solid var(--line); border-radius: 4px; text-align: center; }
  .design-option-card strong { font: 400 26px/1.2 var(--serif); }
  .design-option-card span { color: var(--muted); font-size: 14px; }
  .design-option input:checked + .design-option-card { background: #ece6d9; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
  .design-option input:focus-visible + .design-option-card { outline: 3px solid var(--green); outline-offset: 3px; }
  .picker-art, .thumbnail-art { object-fit: contain; }
  .save-bar { padding: 8px 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
  .save-bar > p { max-width: 36ch; }
  .notice { margin: 24px 0; padding: 20px 24px; border-left: 3px solid #8c936b; background: #f2f1e5; font-size: 15px; }
  .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 16px; }
  .stat { padding: 20px; border: 1px solid var(--line); background: #fff; }
  .stat span, .stat small { color: var(--muted); font-size: 14px; }
  .stat strong { display: block; font: 40px/1.3 var(--serif); margin: 8px 0; }
  .add-guest { margin: 28px 0; }
  .add-guest summary { min-height: 44px; padding: 8px 0; font-weight: 500; }
  .add-guest[open] summary { margin-bottom: 20px; }
  .filter-bar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 28px 0 12px; }
  .filter-bar .search-label { flex: 1; min-width: 180px; }
  .filter-label { display: block; width: 205px; min-width: 0; }
  .filter-bar select { width: 100%; }
  .filter-actions { flex-basis: 100%; display: flex; justify-content: end; gap: 12px; }
  #guest-results { border-top: 2px solid transparent; }
  #guest-results[aria-busy=true] { border-top-color: var(--control); }
  #guest-results[data-stale=true] { border-left: 3px solid #927c3e; padding-left: 16px; }
  .search-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 12px; }
  #guest-search-feedback { min-height: 24px; margin-bottom: 12px; }
  #sent-summary { margin-bottom: 8px; }
  .guest-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(260px, 340px); align-items: start; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
  .guest-avatar { border: 1px solid var(--line); background: #eef2e8; height: 40px; width: 40px; display: grid; place-items: center; font: 24px var(--serif); }
  .guest-details { min-width: 0; overflow-wrap: anywhere; }
  .guest-details h3 { font-size: 26px; margin-bottom: 10px; }
  .guest-actions { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; justify-content: end; }
  .guest-actions .button { font-size: 14px; padding: 10px 16px; }
  .guest-actions details { position: relative; }
  .guest-actions summary { display: grid; place-items: center; list-style: none; min-width: 44px; min-height: 44px; color: var(--green); border: 1px solid var(--control); border-radius: 3px; }
  .guest-actions summary::-webkit-details-marker { display: none; }
  .more-actions { position: absolute; right: 0; top: 100%; margin-top: 8px; width: 230px; max-width: 80vw; padding: 16px; z-index: 4; background: #fff; border: 1px solid var(--control); }
  .more-actions a, .more-actions form { display: block; font-size: 14px; }
  .more-actions a { padding: 10px 8px; min-height: 44px; }
  .sent-form { display: flex; flex-direction: column; align-items: start; }
  .sent-toggle[aria-pressed=true] { color: #355642; }
  .sent-error { color: #8b3b2a; font-size: 14px; max-width: 250px; }
  .private-notes { margin-top: 16px; padding: 12px 16px; border-left: 2px solid #b5c1aa; background: #f0f3e9; color: var(--muted); font-size: 14px; }
  .private-notes p { margin-top: 6px; }
  .response-detail { font-size: 14px; color: var(--muted); margin-top: 16px; }
  .response-detail small { display: block; margin-top: 10px; }
  .response-detail strong { font-weight: 500; }
  .pagination { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 24px 0; }
  .pagination a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--control); border-radius: 4px; text-decoration: none; }
  .narrow { max-width: 760px; }
  .flash-group:empty { display: none; }
  .flash { margin-top: 24px; padding: 16px 20px; border: 1px solid #9dac91; border-left-width: 3px; background: #eef4e9; color: #2e542b; border-radius: 3px; }
  .flash.error, .error-message { color: #813526; background: #fff1ea; border: 1px solid #b57962; }
  .error-message { padding: 18px; margin: 20px 0; }
  .text-error { color: #813526; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
  .preview-banner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px max(24px, calc((100vw - 1100px)/2)); background: #eaf0e3; border-bottom: 1px solid #b7c4ab; color: var(--ink); font-size: 14px; }
  .preview-banner a { display: inline-flex; align-items: center; min-height: 32px; }
  .unavailable { min-height: 85vh; max-width: 720px; margin: auto; padding: 12vh 24px 48px; text-align: center; }
  .unavailable-bud { width: 50px; height: 70px; margin: 0 auto 24px; }
  .unavailable h1 { font-size: 40px; margin: 20px 0; }
  .unavailable > p:last-child { color: var(--muted); }
  @media (max-width: 1000px) {
    .site-header { padding: 20px 24px; align-items: start; }
    .site-header nav { gap: 8px 14px; }
    .studio-main { padding: 0 24px; }
    .gathering-sprig { width: 72px; right: 24px; bottom: 110px; }
    .gathering-divider { width: 80px; left: 24px; bottom: 140px; }
    .design-feature { gap: 32px; }
    .design-study { padding: 64px 24px 32px; }
    .editor-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; }
    .panel { padding: 24px; }
    .guest-row { grid-template-columns: 40px minmax(0, 1fr); }
    .guest-actions { grid-column: 2; justify-content: start; }
    .wedding-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 760px) {
    .photo-field { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .site-header { flex-direction: column; gap: 16px; }
    .site-header nav { justify-content: start; width: 100%; gap: 8px 18px; }
    .wordmark { font-size: 30px; }
    .wordmark small { font-size: 12px; }
    .home-header { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
    .home-header .wordmark { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
    .home-header .home-sections { grid-column: 1; grid-row: 2; }
    .home-header .account-navigation { grid-column: 2; grid-row: 2; }
    .home-header.has-account .account-navigation { grid-column: 1 / -1; grid-row: 3; justify-content: center; }
    .marketing-main { padding: 0; }
    .gathering-hero { padding: 40px 24px 24px; }
    .gathering-hero h1 { font-size: clamp(48px, 9.5vw, 72px); letter-spacing: -1.8px; }
    .gathering-intro { font-size: 17px; }
    .gathering-sprig { position: static; width: 56px; height: 90px; margin: 28px auto 0; transform: none; }
    .gathering-divider { display: none; }
    .design-collection { width: calc(100% - 48px); padding: 48px 0; }
    .collection-heading { margin-bottom: 32px; }
    .design-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 0; }
    .design-story { max-width: 55ch; }
    .design-story h3 { font-size: 36px; margin: 16px 0; }
    .design-story .text-link { margin-top: 16px; }
    .invitation-process { padding: 48px 24px 32px; }
    .process-heading { margin-bottom: 32px; }
    .process-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .site-footer { padding: 24px; margin-top: 48px; }
    .site-footer.marketing-footer { margin-top: 0; }
    .page-heading { padding: 28px 0; flex-wrap: wrap; align-items: start; }
    .page-heading h1 { font-size: 38px; }
    .tabs { gap: 8px 24px; }
    .tabs .preview-action { margin-left: 0; }
    .editor-layout { grid-template-columns: 1fr; }
    .editor-aside { position: static; }
    .editor-aside .panel { margin-bottom: 24px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .picker-art { width: 54px; height: 68px; }
    .panel { padding: 24px 20px; }
    .panel-title h2 { font-size: 28px; }
    .save-bar > p { max-width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat { padding: 16px; }
    .stat strong { font-size: 36px; }
    .filter-bar .search-label { flex: 1 1 100%; min-width: 0; }
    .filter-label { flex: 1; width: auto; min-width: 0; }
    .filter-bar select { width: 100%; }
    .guest-row { gap: 16px; }
    .guest-actions { gap: 8px; }
    .guest-actions details { margin-left: auto; }
    .guest-details h3 { font-size: 24px; }
    .purchase-panel { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
    .purchase-actions .inline-form, .purchase-actions .button { width: 100%; }
    .wedding-grid { grid-template-columns: 1fr; }
    .preview-banner { padding: 12px 24px; }
  }
  @media (max-width: 390px) {
    .studio-main { padding: 0 16px; }
    .site-header { padding: 20px 16px; }
    .site-header nav { gap: 8px 12px; }
    .site-header nav > a { font-size: 14px; }
    .marketing-main { padding: 0; }
    .home-header .home-sections { gap: 8px 14px; }
    .gathering-hero { padding-left: 16px; padding-right: 16px; }
    .gathering-hero h1 { font-size: 44px; }
    .gathering-actions { gap: 8px 16px; }
    .design-collection { width: calc(100% - 32px); }
    .design-study { padding: 60px 20px 28px; }
    .panel { padding: 20px 16px; }
    .filter-label { flex-basis: 100%; }
    .guest-row { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
    .guest-avatar { width: 32px; height: 36px; }
    .guest-actions { grid-column: 1 / -1; }
  }
  @media (max-height: 850px) {
    .editor-aside { position: static; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .botanical-artwork path { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
  }
}
