/* HeadOnOver: warm letterpress, no remote assets or runtime dependencies. */
:root {
  --paper: #f7f0df;
  --paper-light: #fffaf0;
  --paper-deep: #eadfc6;
  --ink: #2d1632;
  --ink-soft: #654f66;
  --plum: #4a214f;
  --poppy: #e9573f;
  --poppy-dark: #b5341f;
  /* Button fill: light text on it stays above 4.5:1 (--poppy is for accents). */
  --poppy-button: #c23f2a;
  --marigold: #f4b942;
  --sage: #94a888;
  --sky: #a7ccd8;
  --line: rgba(45, 22, 50, 0.18);
  --line-strong: rgba(45, 22, 50, 0.32);
  --success: #387052;
  --danger: #a93131;
  --danger-dark: #8a2626;
  --shadow-sm: 0 4px 0 rgba(45, 22, 50, 0.08);
  --shadow-card: 0 18px 48px rgba(45, 22, 50, 0.13);
  --radius-sm: 0.55rem;
  --radius: 1rem;
  --radius-lg: 1.75rem;
  --display: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --body: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --shell: min(1140px, calc(100vw - 2rem));
  --focus: 0 0 0 3px var(--paper-light), 0 0 0 6px var(--poppy);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.22;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
:focus-visible { outline: 0; box-shadow: var(--focus); }
::selection { color: var(--ink); background: var(--marigold); }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100; padding: 0.7rem 1rem; color: white; background: var(--ink); border-radius: var(--radius-sm); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0 0 0.55rem; color: var(--poppy-dark); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.muted, .field-hint, .form-footnote { color: var(--ink-soft); }
.quiet-line { margin: 0; padding: 1.5rem 0; color: var(--ink-soft); border-top: 1px solid var(--line); }
.tag { display: inline-flex; align-items: center; min-height: 1.7rem; padding: 0.2rem 0.55rem; color: var(--plum); background: rgba(167, 204, 216, 0.45); border-radius: 999px; font-size: 0.72rem; font-style: normal; font-weight: 700; }

/* Header, footer, navigation */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.025em; text-decoration: none; }
.wordmark-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--paper-light); background: var(--poppy); border-radius: 50% 50% 44% 56% / 55% 44% 56% 45%; font-size: 1.1rem; transform: rotate(-6deg); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a:not(.button), .site-nav .text-button { padding: 0.4rem 0; border-bottom: 2px solid transparent; font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.site-nav > a[aria-current="page"] { border-color: var(--poppy); }
.site-nav > a:hover { color: var(--poppy-dark); }
.nav-workspace { max-width: 12rem; padding-left: 1.5rem; overflow: hidden; color: var(--ink-soft); border-left: 1px solid var(--line); font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.inline-form { display: inline; margin: 0; }
.text-button { padding: 0; color: inherit; background: transparent; border: 0; }
.nav-toggle { display: none; width: 2.8rem; height: 2.8rem; background: transparent; border: 1px solid var(--line); border-radius: 50%; }
.nav-toggle span:not(.sr-only) { display: block; width: 1.1rem; height: 2px; margin: 4px auto; background: var(--ink); transition: transform 160ms ease; }
/* Purple-header pages (sign in, sign up, confirm): a light toggle. */
.auth-page .nav-toggle { color: var(--paper-light); border-color: rgba(255,250,240,.45); }
.auth-page .nav-toggle span:not(.sr-only) { background: var(--paper-light); }
.site-footer { padding: 4rem 0 2rem; color: var(--paper); background: var(--ink); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: start; }
.wordmark-footer { color: var(--paper-light); }
.footer-inner p { margin: 0.55rem 0 0; color: rgba(255, 250, 240, 0.65); font-size: 0.88rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.8rem 1.4rem; max-width: 30rem; font-size: 0.82rem; font-weight: 700; }
.footer-contact { color: var(--paper-light); font-weight: 700; overflow-wrap: anywhere; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { color: var(--marigold); }
.footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; align-items: baseline; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); }
.footer-meta p { margin: 0; }
.footer-preferences { color: rgba(255, 250, 240, 0.65); font-size: 0.82rem; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.footer-preferences:hover { color: var(--marigold); }

/* Buttons and common feedback */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 3rem; padding: 0.7rem 1.2rem; border: 2px solid var(--ink); border-radius: 999px; font-size: 0.84rem; font-weight: 800; letter-spacing: 0.01em; line-height: 1; text-decoration: none; transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(45, 22, 50, 0.18); }
.button:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.button-primary { color: var(--paper-light); background: var(--poppy-button); border-color: var(--poppy-dark); }
.button-primary:hover:not(:disabled) { background: var(--poppy-dark); }
/* Destructive actions: one solid style; the outline variant is for quieter headers. */
.button-danger { color: var(--paper-light); background: var(--danger); border-color: var(--danger); }
.button-danger:hover:not(:disabled) { background: var(--danger-dark); border-color: var(--danger-dark); }
.button-danger-outline { color: var(--danger); background: transparent; border-color: rgba(169, 49, 49, .45); }
.button-danger-outline:hover:not(:disabled) { background: #fff1eb; border-color: var(--danger); }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.button-secondary:hover:not(:disabled) { background: var(--paper-light); }
.button-ink { color: var(--paper-light); background: var(--ink); border-color: var(--ink); }
.button-small { min-height: 2.55rem; padding: 0.55rem 1rem; }
.button-large { min-height: 3.55rem; padding-inline: 1.55rem; font-size: 0.92rem; }
.button-full { width: 100%; }
.text-link, .back-link { color: var(--ink); font-size: 0.85rem; font-weight: 800; text-decoration-thickness: 2px; }
.text-link:hover, .back-link:hover { color: var(--poppy-dark); }
.flash-stack { position: relative; z-index: 30; margin-top: 1rem; }
.flash { display: grid; grid-template-columns: auto 1fr auto; gap: 0.8rem; align-items: center; max-width: 48rem; margin-left: auto; padding: 0.85rem 1rem; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line-strong); border-left: 5px solid var(--sky); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.flash-success { border-left-color: var(--success); }
.flash-error { border-left-color: var(--danger); }
.flash p { margin: 0; }
.flash-close { width: 2rem; height: 2rem; padding: 0; background: transparent; border: 0; border-radius: 50%; font-size: 1.4rem; }
.form-banner { padding: 0.85rem 1rem; color: var(--danger); background: #fff1eb; border: 1px solid rgba(169,49,49,.35); border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 700; }
.notice { display: flex; gap: 0.8rem; padding: 1rem; border-radius: var(--radius-sm); }
.notice p, .notice strong { margin: 0; }
.notice-review { display: block; margin-bottom: 2.5rem; background: #fff2ce; border: 1px solid #d69b26; }
.notice-review p { margin-top: 0.3rem; }
.notice-soft { background: rgba(167,204,216,.26); }
.notice-soft > span { color: var(--poppy); }

/* Marketing */
.marketing-page { overflow-x: hidden; }
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; min-height: calc(100vh - 5rem); padding-top: 4rem; padding-bottom: 5rem; }
.hero-slogan { max-width: 12ch; margin: 0; font-family: var(--display); font-size: clamp(3.8rem, 7.8vw, 7.3rem); font-weight: 500; letter-spacing: -0.065em; line-height: 0.87; }
.hero-slogan em { position: relative; color: var(--poppy); font-weight: 500; }
.hero-slogan em::after { position: absolute; right: -0.1em; bottom: -0.12em; left: 0.1em; height: 0.13em; content: ""; background: var(--marigold); border-radius: 50%; transform: rotate(-2deg); }
.hero-title { max-width: 30rem; margin: 2.8rem 0 0; color: var(--ink); font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.hero-lede { max-width: 35rem; margin: 2rem 0; color: var(--ink-soft); font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.hero-note { margin: 1.2rem 0 0; color: var(--ink-soft); font-size: 0.76rem; font-weight: 700; }
.hero-note span { margin-right: 0.45rem; color: var(--poppy); }
.hero-still-life { position: relative; min-height: 39rem; perspective: 1000px; }
.invitation-sample { position: absolute; top: 2rem; right: 2rem; width: min(27rem, 85%); min-height: 34rem; padding: 4rem 2.2rem 2.5rem; overflow: hidden; text-align: center; background-color: #fff9ec; background-image: radial-gradient(circle at 0 0, rgba(244,185,66,.4) 0 0.4rem, transparent .42rem), radial-gradient(circle at 100% 100%, rgba(233,87,63,.22) 0 0.6rem, transparent .62rem); background-size: 2.8rem 2.8rem, 4rem 4rem; border: 1px solid rgba(45,22,50,.18); border-radius: 55% 45% 48% 52% / 3% 4% 3% 4%; box-shadow: 1.3rem 1.3rem 0 var(--sky), var(--shadow-card); transform: rotate(2.5deg); }
.invitation-sample::before { position: absolute; inset: 0.8rem; content: ""; border: 1px solid var(--poppy); border-radius: 52% 48% 49% 51% / 2% 3% 2% 3%; pointer-events: none; }
.invitation-sample > p:first-of-type { margin: 0 0 2rem; color: var(--poppy-dark); font-size: .65rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.invitation-sample .sample-title { margin: 0; font-family: var(--display); font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 500; letter-spacing: -.055em; line-height: .9; }
.invitation-sample .sample-title em { color: var(--poppy); }
.sample-stamp { position: absolute; top: 1.2rem; left: 1.2rem; padding: .35rem .65rem; color: var(--poppy-dark); border: 1px solid var(--poppy); border-radius: 50%; font-family: var(--mono); font-size: .55rem; text-transform: uppercase; transform: rotate(-9deg); }
.sample-doodle { display: block; margin: 0 auto .5rem; color: var(--marigold); font-size: 2.5rem; }
.sample-rule { width: 3.5rem; height: 2px; margin: 1.8rem auto; background: var(--ink); }
.sample-details { font-family: var(--display); font-size: 1rem; line-height: 1.6; }
.sample-host { display: block; margin-top: 2rem; color: var(--ink-soft); font-size: .7rem; font-weight: 700; }
.rsvp-slip { position: absolute; right: -1.2rem; bottom: 1rem; z-index: 2; width: 14rem; padding: 1.25rem; background: var(--marigold); border: 1px solid var(--ink); box-shadow: -.6rem .6rem 0 var(--plum); transform: rotate(-5deg); }
.rsvp-slip span, .rsvp-slip i { display: block; font-size: .63rem; font-style: normal; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rsvp-slip strong { display: block; margin: .35rem 0; font-family: var(--display); font-size: 1.25rem; }
.paper-confetti { position: absolute; z-index: -1; width: 4rem; height: 4rem; }
.confetti-one { top: 0; left: 1rem; background: var(--marigold); border-radius: 50%; }
.confetti-two { right: 0; bottom: 12rem; background: var(--poppy); clip-path: polygon(50% 0, 61% 36%, 100% 50%, 62% 63%, 50% 100%, 38% 64%, 0 50%, 38% 37%); }
.confetti-three { bottom: 2rem; left: 2rem; width: 6rem; height: 2rem; border-top: .7rem solid var(--plum); border-radius: 50%; transform: rotate(-20deg); }
.marquee { overflow: hidden; padding: 1.1rem 0; color: var(--paper-light); background: var(--ink); }
.marquee > div { display: flex; gap: 2rem; justify-content: space-around; width: max-content; min-width: 100%; font-family: var(--display); font-size: 1.1rem; white-space: nowrap; }
.marquee i { color: var(--marigold); font-style: normal; }
.how-section { padding-top: 9rem; padding-bottom: 10rem; }
.section-heading h2, .closing-cta h2 { margin: 0; font-family: var(--display); font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.split-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 4rem; align-items: end; }
.split-heading > p { margin: 0 0 .4rem; color: var(--ink-soft); font-family: var(--display); font-size: 1.15rem; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: 0; margin: 4rem 0 0; list-style: none; }
.step-grid li { position: relative; min-height: 21rem; padding: 2rem; overflow: hidden; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step-grid li:nth-child(2) { background: var(--sky); transform: translateY(2rem) rotate(1deg); }
.step-grid li:nth-child(3) { background: var(--marigold); transform: rotate(-1deg); }
.step-number { color: var(--ink-soft); font-family: var(--mono); font-size: .7rem; }
.step-icon { display: grid; place-items: center; width: 5rem; height: 5rem; margin: 2rem 0; color: var(--paper-light); background: var(--poppy); border-radius: 42% 58% 65% 35% / 46% 39% 61% 54%; font-size: 2rem; transform: rotate(-5deg); }
.step-grid li:nth-child(2) .step-icon { color: var(--ink); background: var(--paper-light); }
.step-grid li:nth-child(3) .step-icon { background: var(--plum); }
.step-grid h3 { margin: 0; font-family: var(--display); font-size: 1.75rem; }
.step-grid p { color: var(--ink-soft); }
/* --ink-soft is under 4.5:1 on the sky and marigold cards. */
.step-grid li:nth-child(n+2) p, .step-grid li:nth-child(n+2) .step-number { color: var(--plum); }
.feature-band { padding: 8rem 0; color: var(--paper-light); background: var(--plum); }
.feature-band-inner { display: grid; grid-template-columns: 1fr 25rem; gap: 6rem; align-items: center; }
.feature-quote { position: relative; }
.feature-quote .feature-eyebrow { color: var(--marigold); }
.giant-quote { position: absolute; top: -6rem; left: -1rem; color: var(--marigold); font-family: var(--display); font-size: 13rem; line-height: 1; opacity: .23; }
.feature-quote blockquote { position: relative; max-width: 15ch; margin: 0; font-family: var(--display); font-size: clamp(2.8rem, 5vw, 5.2rem); letter-spacing: -.05em; line-height: .98; }
.feature-quote p { max-width: 34rem; color: rgba(255,250,240,.68); }
.feature-quote .text-link { color: var(--marigold); }
.feature-quote .text-link:hover { color: var(--paper-light); }
.message-demo { position: relative; padding: 2rem; color: var(--ink); background: var(--paper-light); border-radius: 2.5rem 2.5rem 2.5rem .5rem; box-shadow: 1rem 1rem 0 var(--poppy); }
.message-demo-top { display: flex; justify-content: space-between; padding-bottom: 1rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: .72rem; font-weight: 700; }
.message-demo p { margin: 1.2rem 0 0; }
.message-demo a { display: block; margin-top: .8rem; color: var(--poppy-dark); font-weight: 800; }
.message-demo small { display: block; margin-top: 1.5rem; color: var(--ink-soft); }
.message-demo-link { color: var(--poppy-dark); font-weight: 800; overflow-wrap: anywhere; }
.faq-section { padding-top: 2rem; padding-bottom: 8rem; }
.faq-section .section-heading { max-width: 52rem; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; margin: 3.5rem 0 0; }
.faq-item h3 { margin: 0 0 .6rem; font-family: var(--display); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.faq-item p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.guides-section { padding: 7rem 0; background: var(--paper-light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guides-section .section-heading { max-width: 52rem; }
.guides-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 4rem; margin-top: 3.5rem; }
.guides-title { margin: 0 0 1rem; color: var(--poppy-dark); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.guide-list { display: grid; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.guide-list li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.guide-list li:last-child { border-bottom: 1px solid var(--line); }
.guide-list a { color: var(--ink); font-family: var(--display); font-size: 1.25rem; font-weight: 500; line-height: 1.25; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.guide-list a:hover, .guide-list a:focus-visible { color: var(--poppy-dark); }
.guide-list p { margin: .35rem 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
.closing-cta { position: relative; padding-top: 10rem; padding-bottom: 10rem; text-align: center; }
.closing-cta p:not(.eyebrow) { color: var(--ink-soft); font-family: var(--display); font-size: 1.2rem; }
.closing-cta .button { margin-top: 1rem; }
.closing-flower { display: block; color: var(--poppy); font-size: 4rem; animation: slow-spin 14s linear infinite; }

/* App headings, cards and lists */
.app-page { background: var(--paper-light); }
.app-page::before { opacity: .12; }
.dashboard-hero, .page-hero { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-end; padding-top: 5rem; padding-bottom: 3rem; }
.dashboard-hero h1, .page-hero h1, .event-header h1 { margin: 0; font-family: var(--display); font-size: clamp(2.9rem, 6vw, 5.5rem); font-weight: 500; letter-spacing: -.06em; line-height: .95; }
.dashboard-hero .page-subtitle, .page-hero .page-subtitle { max-width: 40rem; margin: 1rem 0 0; color: var(--ink-soft); }
.page-hero { display: block; }
.page-hero .back-link { display: inline-block; margin-bottom: 3rem; }
.page-hero-compact { padding-bottom: 1.5rem; }
.page-hero-compact h1 { max-width: 16ch; }
.dashboard-section { padding-top: 2rem; padding-bottom: 6rem; }
.dashboard-section-muted { width: 100%; padding: 5rem 0; background: var(--paper-deep); }
.section-title-row { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.section-title-row h2 { margin: 0; font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -.035em; }
.count-lozenge { display: grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding-inline: .5rem; color: var(--paper-light); background: var(--plum); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.event-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 160ms ease, box-shadow 160ms ease; }
.event-card:hover { transform: translateY(-3px) rotate(-.2deg); box-shadow: var(--shadow-card); }
.event-card-link { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1.2rem; align-items: center; min-height: 11rem; padding: 1.25rem; text-decoration: none; }
.event-card-date { display: grid; place-items: center; min-height: 7.5rem; color: var(--paper-light); background: var(--poppy); border-radius: 50% 50% 45% 55% / 47% 44% 56% 53%; transform: rotate(-3deg); }
.event-card-date span { font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.event-card-date strong { margin-top: -.75rem; font-family: var(--display); font-size: 2.5rem; font-weight: 500; }
.event-card-kicker { display: flex; gap: .7rem; align-items: center; color: var(--ink-soft); font-size: .7rem; }
.event-card h3 { margin: .6rem 0 .25rem; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.event-card-body > p { margin: 0; color: var(--ink-soft); font-size: .82rem; }
.event-card-stats { display: flex; gap: 1rem; margin-top: 1.1rem; font-size: .73rem; }
.arrow-button { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: 50%; }
.status-badge { display: inline-flex; gap: .4rem; align-items: center; width: max-content; color: var(--ink-soft); font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.status-dot { width: .48rem; height: .48rem; background: var(--ink-soft); border-radius: 50%; }
.status-active .status-dot, .status-yes .status-dot, .status-delivered .status-dot { background: var(--success); }
.status-draft .status-dot, .status-pending .status-dot, .status-maybe .status-dot { background: var(--marigold); }
.status-failed .status-dot, .status-no .status-dot, .status-cancelled .status-dot { background: var(--danger); }
.past-event-list { border-top: 1px solid var(--line); }
.past-event-list a { display: grid; grid-template-columns: 8rem 1fr 1fr auto; gap: 1rem; align-items: center; min-height: 4.5rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.past-event-list a:hover strong { color: var(--poppy-dark); }
.past-event-date, .past-event-list a > span { color: var(--ink-soft); font-size: .78rem; }
.empty-state { padding: clamp(2.5rem, 7vw, 5rem); text-align: center; background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state .empty-spark { display: block; color: var(--poppy); font-size: 2.7rem; }
.empty-state h2, .empty-state h3 { margin: .2rem 0 .5rem; font-family: var(--display); font-size: 2rem; }
.empty-state > p:not(.eyebrow) { max-width: 35rem; margin: 0 auto 1.4rem; color: var(--ink-soft); }

/* Forms */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1.5rem; align-items: start; padding-bottom: 7rem; }
.editor-main, .editor-aside { display: grid; gap: 1.5rem; }
.form-section { min-width: 0; padding: clamp(1.3rem, 3vw, 2.2rem); margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.form-section legend { float: left; width: 100%; padding: 0 0 1.6rem; font-family: var(--display); font-size: 1.55rem; font-weight: 700; }
.form-section legend + * { clear: both; }
.form-section legend span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-right: .5rem; color: var(--paper-light); background: var(--plum); border-radius: 50%; font-family: var(--mono); font-size: .58rem; vertical-align: middle; }
.field-group { display: grid; gap: .45rem; align-content: start; margin-bottom: 1.2rem; }
.field-group:last-child { margin-bottom: 0; }
.field-group > label { font-size: .8rem; font-weight: 800; }
.field-group > label span, label > span > small { color: var(--ink-soft); font-size: .68rem; font-weight: 500; }
input, textarea, select { width: 100%; min-height: 3.2rem; padding: .8rem 1rem; background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: none; transition: border-color 140ms ease, box-shadow 140ms ease; }
textarea { min-height: 7rem; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--plum); }
input:focus, textarea:focus, select:focus { border-color: var(--poppy); box-shadow: 0 0 0 3px rgba(233,87,63,.15); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-hint, .field-error { margin: 0; font-size: .7rem; }
.field-error { color: var(--danger); font-weight: 700; }
/* Paired fields: the row owns the bottom spacing so both columns line up. */
.field-row { display: grid; gap: 1rem; align-items: start; margin-bottom: 1.2rem; }
.field-row:last-child { margin-bottom: 0; }
.field-row > .field-group { margin-bottom: 0; }
.field-row input:not([type="checkbox"], [type="radio"]) { height: 3.2rem; }
.field-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; padding: 1rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.choice-card input { width: 1.2rem; min-height: 1.2rem; margin-top: .15rem; accent-color: var(--poppy); }
.choice-card span { display: grid; gap: .2rem; }
.choice-card small { color: var(--ink-soft); }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.5rem; }
.theme-option { cursor: pointer; }
.theme-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-option > span { display: grid; gap: .35rem; place-items: center; min-height: 6rem; padding: .6rem; border: 2px solid transparent; border-radius: var(--radius-sm); }
.theme-option i { font-family: var(--display); font-size: 1.6rem; font-style: normal; }
.theme-option strong { font-size: .66rem; }
.theme-classic > span { background: #efe2cc; }
.theme-playful > span { background: var(--marigold); }
.theme-modern > span { color: var(--paper-light); background: var(--plum); }
.theme-option input:checked + span { border-color: var(--poppy); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--poppy); }
.color-field { display: flex; align-items: center; min-height: 3.2rem; padding: .4rem .7rem; background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.color-field input { width: 2.3rem; min-height: 2.3rem; padding: 0; background: transparent; border: 0; }
.color-field span { margin-left: .6rem; color: var(--ink-soft); font-size: .76rem; }
.upload-drop { display: grid; place-items: center; min-height: 9rem; padding: 1rem; text-align: center; background: var(--paper-light); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; }
.upload-drop:hover { border-color: var(--poppy); }
.upload-drop > svg { width: 2.2rem; height: 2.2rem; margin-bottom: .35rem; color: var(--poppy-dark); }
.upload-drop small { display: block; max-width: 15rem; margin-top: .25rem; color: var(--ink-soft); }
.visually-hidden-input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; }
.visually-hidden-input:focus + .file-name { box-shadow: var(--focus); }
.file-name { margin: .3rem 0 0; overflow-wrap: anywhere; color: var(--success); font-size: .72rem; font-weight: 700; }
/* The save panel stays in the aside's flow (after section 04) so it never
   covers fields; on tall desktop screens the whole aside follows the scroll. */
.sticky-actions { padding: 1rem; background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-card); }
@media (min-width: 901px) and (min-height: 880px) {
  .editor-layout > .editor-aside { position: sticky; top: 1rem; }
}
.sticky-actions p { margin: 0 0 .8rem; color: rgba(255,250,240,.7); font-size: .72rem; text-align: center; }
.narrow-form { display: grid; gap: 1.5rem; max-width: 47rem; padding-bottom: 7rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .8rem; }

/* Account settings */
.settings-stack > form { margin: 0; }
.settings-heading { margin: 0 0 1.2rem; font-family: var(--display); font-size: 1.55rem; }
.settings-heading span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-right: .5rem; color: var(--paper-light); background: var(--plum); border-radius: 50%; font-family: var(--mono); font-size: .58rem; vertical-align: middle; }
.settings-stack .form-section > p { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.6; }
.session-list { display: grid; gap: .6rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.session-list li { display: grid; gap: .2rem; padding: .8rem 1rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.session-list small { color: var(--ink-soft); }
.danger-zone { border-color: rgba(169,49,49,.45); }
input[readonly] { color: var(--ink-soft); background: var(--paper-deep); }

/* Auth and messages */
.auth-page { background: var(--plum); }
.auth-page .site-header { color: var(--paper-light); border-color: rgba(255,255,255,.16); }
.auth-shell { display: grid; grid-template-columns: 1fr .65fr; min-height: calc(100vh - 5rem); padding-top: 4rem; padding-bottom: 5rem; }
.auth-card { padding: clamp(2rem, 6vw, 5rem); background: var(--paper); border-radius: 2rem 0 0 2rem; }
.auth-shell.auth-shell-single { grid-template-columns: minmax(0, 1fr); max-width: 42rem; }
.auth-shell-single .auth-card { border-radius: clamp(1.5rem, 3vw, 2rem); }
.auth-card-copy { max-width: 37rem; }
.auth-card h1, .message-card h1 { margin: .3rem 0 1rem; font-family: var(--display); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.auth-card-copy > p:not(.eyebrow) { color: var(--ink-soft); font-family: var(--display); font-size: 1.1rem; }
.auth-seal { display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 2rem; color: var(--paper-light); background: var(--poppy); border-radius: 50%; font-family: var(--display); font-size: 2rem; transform: rotate(-7deg); }
.form-stack { display: grid; gap: .5rem; max-width: 31rem; margin-top: 2.4rem; }
.auth-fine-print { max-width: 31rem; color: var(--ink-soft); font-size: .7rem; text-align: center; }
.auth-aside { position: relative; display: grid; place-items: center; padding: 3rem; overflow: hidden; color: var(--paper-light); background: var(--poppy); border-radius: 0 2rem 2rem 0; text-align: center; }
.auth-aside::before { position: absolute; inset: -10%; content: ""; background: repeating-radial-gradient(circle at 30% 20%, transparent 0 2rem, rgba(255,255,255,.08) 2.05rem 2.1rem); }
.auth-aside blockquote { position: relative; margin: 0; font-family: var(--display); font-size: 2.2rem; line-height: 1.1; }
.auth-aside-star { position: absolute; top: 3rem; color: var(--marigold); font-size: 3.5rem; }
.auth-postmark { position: absolute; right: 2rem; bottom: 2rem; padding: 1rem; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-family: var(--mono); font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-10deg); }
.message-page { display: grid; min-height: calc(100vh - 5rem); place-items: center; padding-top: 4rem; padding-bottom: 5rem; }
.message-card { width: min(40rem, 100%); padding: clamp(2rem, 7vw, 5rem); background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 1rem 1rem 0 var(--sky); text-align: center; }
.message-icon { display: grid; place-items: center; width: 5rem; height: 5rem; margin: 0 auto 1.5rem; color: var(--paper-light); background: var(--poppy); border-radius: 50%; font-size: 2rem; transform: rotate(-7deg); }
.message-instructions { display: grid; grid-template-columns: auto 1fr; gap: .7rem 1rem; align-items: center; margin: 2rem 0; text-align: left; }
.message-instructions span { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--paper-light); background: var(--plum); border-radius: 50%; font-family: var(--mono); font-size: .65rem; }
.message-instructions p { margin: 0; }
.message-card .muted { font-size: .78rem; }
.error-code { display: inline-block; margin-bottom: 1.2rem; padding: .35rem .65rem; color: var(--paper-light); background: var(--danger); border-radius: 999px; font-family: var(--mono); font-size: .7rem; }
.message-actions { display: grid; gap: 1rem; justify-items: center; margin-top: 2rem; }

/* Event dashboard */
.event-header { padding-top: 3rem; padding-bottom: 1.5rem; }
.event-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.event-heading-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.event-heading-grid p { margin: .8rem 0 0; color: var(--ink-soft); }
.event-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.subnav { display: flex; flex-wrap: wrap; gap: clamp(.5rem, 2vw, 1.5rem); border-bottom: 1px solid var(--line); }
.subnav a { padding: 1rem .2rem; border-bottom: 3px solid transparent; font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.subnav a[aria-current="page"] { border-color: var(--poppy); }
.metric-section { padding-top: 2rem; padding-bottom: 3rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.metric-card { display: grid; min-height: 10rem; align-content: space-between; padding: 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.metric-card p, .metric-card span { margin: 0; color: var(--ink-soft); font-size: .7rem; }
.metric-card strong { font-family: var(--display); font-size: 2.7rem; font-weight: 500; }
.metric-going { color: var(--paper-light); background: var(--plum); }
.metric-going p, .metric-going span { color: rgba(255,250,240,.7); }
.capacity-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin-top: 1rem; padding: .9rem 1.2rem; background: rgba(148,168,136,.2); border-radius: var(--radius-sm); font-size: .75rem; }
.capacity-card p { margin: 0; color: var(--ink-soft); }
.progress-track { height: .55rem; overflow: hidden; background: rgba(45,22,50,.12); border-radius: 999px; }
.progress-track span { display: block; width: min(var(--progress), 100%); height: 100%; background: var(--success); border-radius: inherit; }
.event-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2rem; align-items: start; padding-top: 2rem; padding-bottom: 6rem; }
.event-workspace-main { scroll-margin-top: 1rem; }
.event-workspace-main .activity-section { margin-top: 2rem; padding: 2rem 0; background: transparent; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.guest-list { border-top: 1px solid var(--line); }
.guest-card { display: grid; grid-template-columns: auto minmax(9rem, 1fr) auto auto auto; gap: 1rem; align-items: center; min-height: 5rem; border-bottom: 1px solid var(--line); }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 2.3rem; height: 2.3rem; color: var(--paper-light); background: var(--plum); border-radius: 50%; font-family: var(--display); }
.avatar-large { width: 2.8rem; height: 2.8rem; }
.guest-card h3 { margin: 0; font-family: var(--display); font-size: 1.05rem; }
.guest-card p, .guest-card small { display: block; margin: 0; color: var(--ink-soft); font-size: .68rem; }
.guest-card-status, .guest-card-delivery { display: grid; gap: .2rem; }
.guest-card-delivery { min-width: 6rem; font-size: .75rem; }
.icon-link { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }
.event-side-stack { display: grid; gap: 1rem; }
.side-card { padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.side-card h2 { margin: 0; font-family: var(--display); font-size: 1.7rem; }
.side-card > p:not(.eyebrow) { color: var(--ink-soft); font-size: .76rem; }
.send-choices { display: grid; gap: .5rem; padding: 0; margin: 1.2rem 0; border: 0; }
.send-choices legend { margin-bottom: .6rem; font-size: .72rem; font-weight: 800; }
.send-choices label { display: grid; grid-template-columns: auto 1fr; gap: .6rem; padding: .7rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.send-choices input { width: 1rem; min-height: 1rem; accent-color: var(--poppy); }
.send-choices span { display: grid; font-size: .75rem; }
.send-choices small { color: var(--ink-soft); font-size: .62rem; }
.cost-breakdown .section-title-row { align-items: center; }
.cost-breakdown .section-title-row > span { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.cost-breakdown dl { margin: 0; }
.cost-breakdown dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dotted var(--line-strong); font-size: .75rem; }
.cost-breakdown dd { margin: 0; font-family: var(--mono); }
.activity-section { padding: 5rem 0; background: var(--paper-deep); }
.timeline { padding: 0; margin: 2rem 0 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; min-height: 4rem; }
.timeline-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--paper-light); background: var(--plum); border-radius: 50%; font-size: .7rem; }
.timeline li:not(:last-child) .timeline-mark::after { position: absolute; top: 2rem; bottom: -2rem; left: calc(50% - .5px); z-index: -1; width: 1px; content: ""; background: var(--line-strong); }
.timeline li strong { font-family: var(--display); }
.timeline li p { margin: .15rem 0; color: var(--ink-soft); font-size: .76rem; }
.timeline time { color: var(--ink-soft); font-size: .7rem; }
.dialog { width: min(36rem, calc(100vw - 2rem)); max-height: min(44rem, calc(100vh - 2rem)); padding: 2rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.dialog::backdrop { background: rgba(45,22,50,.68); backdrop-filter: blur(3px); }
.dialog h2 { margin: 0; font-family: var(--display); font-size: 2rem; }
.dialog > div > p:last-child { color: var(--ink-soft); }
.dialog-close-form { position: absolute; top: 1rem; right: 1rem; }
.dialog-close-form button { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 1.4rem; }
.selection-list { display: grid; max-height: 20rem; margin: 1rem 0; overflow: auto; border-top: 1px solid var(--line); }
.selection-list label { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.selection-list input { width: 1.1rem; min-height: 1.1rem; accent-color: var(--poppy); }
.selection-list span { display: grid; }
.selection-list small { color: var(--ink-soft); }
.dialog-actions { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }

/* Contacts */
.contact-tools { padding-bottom: 2rem; }
.search-form { position: relative; display: flex; align-items: center; max-width: 40rem; }
.search-form > span { position: absolute; left: 1rem; color: var(--ink-soft); font-size: 1.5rem; }
.search-form input { padding-left: 3rem; background: var(--paper); border-radius: 999px; }
.filter-chips { display: flex; gap: .5rem; margin-top: 1rem; overflow-x: auto; padding: .2rem; }
.filter-chips a { flex: 0 0 auto; padding: .5rem .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; font-weight: 800; text-decoration: none; }
.filter-chips a[aria-current="page"] { color: var(--paper-light); background: var(--plum); }
.filter-chips span { margin-left: .25rem; opacity: .65; }
.household-section { padding-bottom: 7rem; }
.household-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.household-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.household-card header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.3rem; border-bottom: 1px solid var(--line); }
.household-card h2 { margin: 0; font-family: var(--display); font-size: 1.45rem; }
.household-card ul { padding: 0 1.3rem; margin: 0; list-style: none; }
.person-row { display: flex; gap: .7rem; align-items: center; min-height: 4rem; border-bottom: 1px dotted var(--line-strong); }
.person-row:last-child { border: 0; }
.person-copy { display: grid; flex: 1; }
.person-copy strong { font-family: var(--display); font-size: .95rem; }
.person-copy small { color: var(--ink-soft); }
.household-card footer { display: flex; flex-wrap: wrap; gap: .4rem; padding: .8rem 1.3rem; background: rgba(234,223,198,.5); }
.contacts-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.section-heading-small { margin: 0 0 1.2rem; font-family: var(--display); font-size: 1.55rem; }
.danger-text { color: var(--danger); font-size: .75rem; font-weight: 800; text-decoration: underline; }
.danger-card { border-color: rgba(169,49,49,.35); }
.danger-card h2 { font-size: 1.35rem; }
.plain-list { display: grid; gap: .6rem; padding-left: 1.2rem; margin: 0 0 1rem; }
.household-people { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.household-people > li { border-bottom: 1px dotted var(--line-strong); }
.person-editor summary { display: flex; gap: .7rem; align-items: center; min-height: 4rem; cursor: pointer; list-style: none; }
.person-editor summary::-webkit-details-marker { display: none; }
.person-editor-toggle { padding: .35rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .7rem; font-weight: 800; }
.person-editor[open] .person-editor-toggle { color: var(--paper-light); background: var(--plum); border-color: var(--plum); }
.person-editor-form { display: grid; gap: .2rem; padding: .6rem 0 1rem; }
.person-editor-form .choice-card { margin-bottom: 1rem; }
.person-remove-form { padding: 0 0 1.2rem; }
.form-section > .choice-card { margin-bottom: 1.2rem; }
.format-list { display: grid; gap: .8rem; margin: 1rem 0; }
.format-list div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 1rem; }
.format-list dt { font-weight: 800; }
.format-list dd { margin: 0; color: var(--ink-soft); font-size: .8rem; }
.import-summary { padding-bottom: 2rem; }
.import-summary .metric-grid { grid-template-columns: repeat(3, 1fr); margin: 0 0 1rem; }
.import-summary .metric-card { min-height: 7rem; }
.import-summary dt { color: var(--ink-soft); font-size: .72rem; font-weight: 800; }
.import-summary dd { margin: 0; color: var(--ink-soft); font-size: .72rem; }
.import-summary dd strong { display: block; color: var(--ink); }
.import-row { padding: .6rem 0; }
.import-row .person-copy small { display: block; overflow-wrap: anywhere; }
.import-note { color: var(--ink-soft); font-style: italic; }
.import-status { flex: 0 0 auto; padding: .25rem .6rem; border-radius: 999px; font-size: .66rem; font-weight: 800; background: rgba(148,168,136,.25); }
.import-duplicate .import-status { background: rgba(45,22,50,.08); }
.import-error .import-status { color: var(--paper-light); background: var(--danger); }
.import-actions { display: flex; justify-content: flex-end; gap: .8rem; padding-bottom: 7rem; }
@media (max-width: 680px) {
  .contacts-actions { display: grid; width: 100%; }
  .format-list div { grid-template-columns: 1fr; gap: .2rem; }
  .import-summary .metric-grid { grid-template-columns: 1fr; }
  .import-summary .metric-card { min-height: auto; }
  .import-actions { flex-direction: column-reverse; }
  .import-actions .button { width: 100%; }
}

/* Legal */
.legal-page { background: var(--paper-light); }
.legal-copy { max-width: 46rem; padding-bottom: 7rem; }
.prose section { margin: 3rem 0; }
.prose h2 { margin: 0 0 .7rem; font-family: var(--display); font-size: 2rem; }
.prose p { color: var(--ink-soft); line-height: 1.8; }
.prose strong { color: var(--ink); }
.prose .legal-emphasis { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 1.2rem; color: var(--ink-soft); line-height: 1.8; }
.prose li + li { margin-top: .35rem; }
.policy-quote { margin: 1.2rem 0; padding: 1rem 1.2rem; color: var(--ink); background: var(--paper); border-left: 4px solid var(--poppy); border-radius: var(--radius-sm); font-family: var(--display); font-size: 1.1rem; line-height: 1.6; }
.sms-sample { margin: 1.2rem 0; padding: 1rem 1.2rem; overflow-x: auto; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--body); font-size: .95rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.legal-contact { padding-top: 2rem; border-top: 1px solid var(--line); }

/* Guest invitation */
.guest-page { color: var(--ink); background: var(--paper); }
.guest-page::before { opacity: .16; }
.guest-header, .guest-footer { display: flex; justify-content: space-between; gap: 1rem; align-items: center; width: min(100% - 2rem, 74rem); margin-inline: auto; padding: 1rem 0; }
.guest-header { position: relative; z-index: 5; }
.private-label { display: inline-flex; gap: .4rem; align-items: center; color: var(--ink-soft); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.private-label i { color: var(--success); font-size: .5rem; }
.guest-footer { padding-top: 2.5rem; padding-bottom: 2.5rem; border-top: 1px solid var(--line); font-size: .72rem; }
.guest-footer > a { font-family: var(--display); text-decoration: none; }
.guest-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1rem; }
.invitation-page { width: min(76rem, calc(100% - 1rem)); margin: 0 auto 3rem; overflow: hidden; background: var(--paper-light); border: 1px solid var(--line); border-radius: clamp(1rem, 3vw, 2.4rem); box-shadow: var(--shadow-card); }
.invitation-cover { position: relative; min-height: 38rem; display: grid; place-items: center; padding: 5rem 1rem; overflow: hidden; background: var(--marigold); }
.cover-art { position: absolute; inset: 0; }
.cover-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(45,22,50,.08), rgba(45,22,50,.5)); }
.cover-art img { width: 100%; height: 100%; object-fit: cover; }
.cover-decoration { position: absolute; inset: 0; }
.cover-decoration span { position: absolute; color: var(--poppy); font-size: clamp(2rem, 6vw, 5rem); }
.cover-decoration span:nth-child(1) { top: 9%; left: 10%; }
.cover-decoration span:nth-child(2) { right: 11%; bottom: 10%; color: var(--plum); }
.cover-decoration span:nth-child(3) { top: 18%; right: 17%; color: var(--paper-light); font-size: 1.5rem; }
.cover-decoration span:nth-child(4) { bottom: 13%; left: 8%; color: var(--sky); font-size: 7rem; transform: rotate(-12deg); }
.invitation-title-card { position: relative; z-index: 1; width: min(42rem, calc(100% - 1rem)); padding: clamp(2rem, 7vw, 5rem) 1.5rem; text-align: center; background: rgba(255,250,240,.94); border: 1px solid rgba(45,22,50,.22); border-radius: 52% 48% 51% 49% / 3% 4% 3% 4%; box-shadow: .8rem .8rem 0 rgba(74,33,79,.82); }
.invitation-kicker { margin: 0 0 1.2rem; color: var(--poppy-dark); font-size: .69rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.invitation-title-card h1 { max-width: 13ch; margin: 0 auto; font-family: var(--display); font-size: clamp(3.3rem, 9vw, 7.2rem); font-weight: 500; letter-spacing: -.065em; line-height: .86; text-wrap: balance; }
.invitation-date-lockup { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; align-items: center; margin-top: 2.2rem; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.invitation-date-lockup strong { padding: .4rem .8rem; border-block: 1px solid var(--ink); }
.invitation-content { width: min(51rem, calc(100% - 2rem)); margin-inline: auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.guest-greeting { max-width: 42rem; margin: 0 auto 4rem; text-align: center; }
.host-note { margin: .5rem 0; white-space: pre-line; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.4; }
.host-signoff { color: var(--poppy-dark); font-family: var(--display); font-size: 1.15rem; font-style: italic; }
.detail-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.detail-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; min-height: 10rem; align-items: start; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-card > span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: var(--paper-light); background: var(--poppy); border-radius: 50%; font-size: 1.2rem; }
.detail-card p { margin: 0 0 .3rem; color: var(--ink-soft); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-card strong, .detail-card small, .detail-card a { display: block; }
.detail-card strong { font-family: var(--display); font-size: 1.1rem; }
.detail-card small { margin-top: .25rem; color: var(--ink-soft); }
.detail-card a { margin-top: .7rem; color: var(--poppy-dark); font-size: .75rem; font-weight: 800; }
/* One smart button per card (directions, calendar) with the other app one tap away. */
.detail-card .detail-actions { display: grid; gap: .55rem; justify-items: start; margin-top: 1rem; padding-top: .95rem; border-top: 1px dashed var(--line); }
.detail-card a.detail-action { display: inline-flex; gap: .5rem; align-items: center; justify-content: center; min-width: min(100%, 13rem); min-height: 2.9rem; margin: 0; padding: .55rem 1.2rem; color: var(--ink); background: var(--paper-light); border: 1.5px solid var(--ink); border-radius: 999px; font-size: .88rem; font-weight: 800; line-height: 1.2; text-decoration: none; transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.detail-card a.detail-action svg { flex: 0 0 auto; color: var(--poppy-dark); }
.detail-card a.detail-action:hover { color: var(--paper-light); background: var(--ink); transform: translateY(-1px); }
.detail-card a.detail-action:hover svg { color: inherit; }
.detail-card a.detail-action:focus-visible, .detail-card a.detail-alt:focus-visible { outline: 3px solid var(--poppy); outline-offset: 2px; }
.detail-card a.detail-alt { display: inline-flex; align-items: center; min-height: 2.75rem; margin: 0; padding: 0 .1rem; color: var(--ink-soft); font-size: .78rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .detail-card a.detail-action { width: 100%; } }
.detail-card-grid { margin-bottom: 4rem; }
.rsvp-card { position: relative; padding: clamp(1.3rem, 5vw, 3rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.rsvp-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.rsvp-heading h2 { margin: 0; font-family: var(--display); font-size: 3rem; font-weight: 500; }
.rsvp-form { display: grid; gap: 1rem; }
.response-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; padding: 0; border: 0; }
.response-picker label { cursor: pointer; }
.response-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.response-picker label > span { display: grid; gap: .2rem; place-items: center; min-height: 6rem; padding: .8rem; background: var(--paper-light); border: 2px solid var(--line); border-radius: var(--radius); transition: transform 140ms ease, border-color 140ms ease; }
.response-picker label:hover > span { transform: translateY(-2px); border-color: var(--poppy); }
.response-picker i { color: var(--poppy); font-family: var(--display); font-size: 1.8rem; font-style: normal; }
.response-picker strong { font-size: .77rem; }
.response-picker input:checked + span { color: var(--paper-light); background: var(--plum); border-color: var(--plum); box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--poppy); }
.response-picker input:checked + span i { color: var(--marigold); }
.response-picker input:focus-visible + span { box-shadow: var(--focus); }
.attendance-fields { padding: 1.2rem; background: rgba(244,185,66,.16); border-radius: var(--radius); }
.attendance-fields[hidden] { display: none; }
.rsvp-card textarea { min-height: 5rem; }
.form-footnote { margin: 0; font-size: .7rem; text-align: center; }
.rsvp-closed { padding: 3rem 1rem; text-align: center; }
.rsvp-closed > span { color: var(--poppy); font-size: 2rem; }
.rsvp-closed h3 { margin: .5rem 0; font-family: var(--display); font-size: 1.7rem; }
.album-teaser { display: flex; justify-content: space-between; gap: 2rem; align-items: center; margin-top: 2rem; padding: 2rem; color: var(--paper-light); background: var(--plum); border-radius: var(--radius-lg); }
.album-teaser h2 { margin: 0; font-family: var(--display); font-size: 2rem; }
.album-teaser p:not(.eyebrow) { margin: .5rem 0 0; color: rgba(255,250,240,.68); }
.album-teaser .eyebrow { color: var(--marigold); }
.album-teaser .button { color: var(--paper-light); border-color: rgba(255,255,255,.5); }
.theme-classic .invitation-cover { background: #d8c5a3; }
.theme-classic .invitation-title-card { border-radius: 0; box-shadow: .7rem .7rem 0 #7d8666; }
.theme-classic .invitation-title-card h1 { font-style: italic; }
.theme-modern .invitation-cover { color: var(--paper-light); background: var(--plum); }
.theme-modern .invitation-title-card { color: var(--paper-light); background: rgba(45,22,50,.92); border-color: rgba(255,255,255,.25); border-radius: 0; box-shadow: .8rem .8rem 0 var(--poppy); }
.theme-modern .invitation-kicker { color: var(--marigold); }
.rsvp-thanks { display: grid; min-height: calc(100vh - 10rem); max-width: 42rem; align-content: center; justify-items: center; padding-top: 4rem; padding-bottom: 5rem; text-align: center; }
.thanks-burst { position: relative; display: grid; place-items: center; width: 8rem; height: 8rem; margin-bottom: 2rem; color: var(--paper-light); background: var(--poppy); border-radius: 42% 58% 63% 37% / 46% 39% 61% 54%; transform: rotate(-6deg); }
.thanks-burst strong { font-size: 3rem; }
.thanks-burst span { position: absolute; color: var(--marigold); font-size: 1.5rem; }
.thanks-burst span:nth-child(1) { top: -1rem; left: -.5rem; }
.thanks-burst span:nth-child(2) { top: 0; right: -1.5rem; }
.thanks-burst span:nth-child(3) { right: -.5rem; bottom: -1.2rem; }
.rsvp-thanks h1 { margin: 0; font-family: var(--display); font-size: clamp(3.2rem, 9vw, 6rem); font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.rsvp-thanks > p:not(.eyebrow, .muted) { max-width: 34rem; color: var(--ink-soft); font-family: var(--display); font-size: 1.2rem; }
.thanks-summary { display: grid; gap: .2rem; width: 100%; margin: 2rem 0; padding: 1.3rem; background: var(--paper-light); border-block: 1px solid var(--line); }
.thanks-summary strong { font-family: var(--display); font-size: 1.4rem; }
.thanks-summary span { color: var(--ink-soft); font-size: .72rem; }
.thanks-actions { display: flex; gap: 1.5rem; align-items: center; }

/* Motion and responsive behavior */
@keyframes slow-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 5rem; }
  .hero-slogan { font-size: clamp(3.8rem, 14vw, 7rem); }
  .faq-list, .guides-grid { grid-template-columns: 1fr; }
  .hero-still-life { width: min(100%, 36rem); margin-inline: auto; }
  .split-heading, .feature-band-inner { grid-template-columns: 1fr; gap: 3rem; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid li { min-height: auto; }
  .step-grid li:nth-child(2) { transform: rotate(1deg); }
  .feature-band-inner { max-width: 42rem; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-card { border-radius: 2rem 2rem 0 0; }
  .auth-aside { min-height: 20rem; border-radius: 0 0 2rem 2rem; }
  .editor-layout { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .event-workspace { grid-template-columns: 1fr; }
  .event-side-stack { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 1.25rem, 1140px); }
  .header-inner { min-height: 4.5rem; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + .5rem); right: .65rem; left: .65rem; display: none; padding: 1rem; color: var(--paper-light); background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-card); }
  .site-nav.is-open { display: grid; gap: .7rem; }
  .site-nav .nav-workspace { padding: .7rem 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .site-nav .button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { justify-content: flex-start; }
  .footer-meta { grid-column: auto; }
  .guest-footer { flex-direction: column; align-items: flex-start; }
  .guest-footer nav { justify-content: flex-start; }
  .hero { padding-top: 3.5rem; padding-bottom: 3rem; }
  .hero-slogan { font-size: clamp(3.5rem, 18vw, 5.3rem); }
  .hero-still-life { min-height: 31rem; }
  .invitation-sample { right: 1rem; min-height: 27rem; padding-top: 3rem; }
  .invitation-sample .sample-title { font-size: 3.2rem; }
  .rsvp-slip { right: 0; width: 12rem; }
  .how-section { padding-top: 6rem; padding-bottom: 7rem; }
  .section-heading h2, .closing-cta h2 { font-size: 3rem; }
  .feature-band { padding: 6rem 0; }
  .faq-section { padding-bottom: 6rem; }
  .guides-section { padding: 5rem 0; }
  .feature-quote blockquote { font-size: 3rem; }
  .closing-cta { padding-top: 7rem; padding-bottom: 7rem; }
  .dashboard-hero { display: grid; align-items: start; padding-top: 3rem; }
  .dashboard-hero .button { width: 100%; }
  .event-grid, .household-grid { grid-template-columns: 1fr; }
  .event-card-link { grid-template-columns: 4.5rem 1fr auto; gap: .8rem; min-height: 9rem; padding: .9rem; }
  .event-card-date { min-height: 6rem; }
  .event-card-stats { flex-direction: column; gap: .15rem; }
  .past-event-list a { grid-template-columns: 1fr auto; padding: .9rem 0; }
  .past-event-list a > span:not(.past-event-date) { grid-column: 1; }
  .past-event-date { grid-column: 1; }
  .past-event-list i { grid-column: 2; grid-row: 1 / span 3; }
  .field-row-2 { grid-template-columns: 1fr; }
  .page-hero { padding-top: 2rem; }
  .page-hero .back-link { margin-bottom: 2rem; }
  .form-actions { display: grid; }
  .form-actions .button-primary { grid-row: 1; }
  .auth-shell { width: calc(100% - 1rem); padding-top: 1rem; }
  .auth-card { padding: 2rem 1.2rem; border-radius: 1.5rem 1.5rem 0 0; }
  .auth-aside { min-height: 16rem; padding: 2rem; }
  .auth-aside blockquote { font-size: 1.7rem; }
  .event-heading-grid { display: grid; }
  .event-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 8.5rem; }
  .metric-card strong { font-size: 2rem; }
  .capacity-card { grid-template-columns: 1fr auto; }
  .capacity-card .progress-track { grid-column: 1 / -1; grid-row: 2; }
  .event-side-stack { grid-template-columns: 1fr; }
  .guest-card { grid-template-columns: auto 1fr auto; padding: .8rem 0; }
  .guest-card-status { grid-column: 2; }
  .guest-card-delivery { grid-column: 2; }
  .guest-card .icon-link { grid-column: 3; grid-row: 1 / span 3; }
  .dialog { padding: 1.2rem; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
  .dialog-actions .button { width: 100%; }
  .guest-header .wordmark-mark { width: 1.9rem; height: 1.9rem; }
  .guest-header .wordmark { font-size: 1.05rem; }
  .private-label { font-size: .55rem; }
  .invitation-page { width: calc(100% - .5rem); }
  .invitation-cover { min-height: 31rem; padding: 2.5rem .5rem; }
  .invitation-title-card { padding: 3rem 1rem; }
  .invitation-title-card h1 { font-size: clamp(3.3rem, 18vw, 5rem); }
  .invitation-content { width: calc(100% - 1.2rem); }
  .detail-card-grid { grid-template-columns: 1fr; }
  .response-picker { gap: .35rem; }
  .response-picker label > span { min-height: 5.2rem; padding: .5rem .25rem; }
  .response-picker strong { font-size: .67rem; }
  .album-teaser { align-items: flex-start; flex-direction: column; }
  .thanks-actions { width: 100%; align-items: stretch; flex-direction: column; }
}

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

@media print {
  .site-header, .site-footer, .guest-header, .guest-footer, .button, .rsvp-card, .detail-actions { display: none !important; }
  body, .invitation-page { background: white; box-shadow: none; }
  .invitation-page { width: 100%; border: 0; }
}

/* Event lifecycle, per-guest actions, reminders (LR-35/37/39/40) */
.event-actions .inline-form { display: contents; }
.cancelled-notice { margin-top: 1.5rem; margin-bottom: 0; }
.guest-card { grid-template-columns: auto minmax(9rem, 1fr) auto auto auto auto; }
.guest-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; }
.guest-more { position: relative; }
.guest-more summary { display: inline-flex; align-items: center; min-height: 2.55rem; padding: .55rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .78rem; font-weight: 800; cursor: pointer; list-style: none; }
.guest-more summary::-webkit-details-marker { display: none; }
.guest-more[open] summary { background: var(--paper-light); }
.guest-more form { position: absolute; z-index: 20; right: 0; top: calc(100% + .4rem); display: grid; gap: .7rem; width: min(18rem, 80vw); padding: 1rem; background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.guest-more form p { margin: 0; color: var(--ink-soft); font-size: .72rem; }
.send-representation { display: grid; grid-template-columns: auto 1fr; gap: .6rem; margin: 0 0 1rem; padding: .7rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .7rem; line-height: 1.45; }
.send-representation input { width: 1rem; min-height: 1rem; margin-top: .15rem; accent-color: var(--poppy); }
.reminder-card form { margin-top: 1rem; }
.reminder-card .form-footnote { margin: .8rem 0 0; font-size: .64rem; }
.notify-choice { margin-bottom: 1rem; }
.cancel-card h2 { margin-bottom: 1rem; }
.cancel-effects { display: grid; gap: .6rem; margin: 0 0 1.5rem; padding-left: 1.1rem; color: var(--ink-soft); font-size: .85rem; }
.cancel-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; }
.cancelled-banner { max-width: 42rem; margin: 0 auto 3rem; padding: 1.4rem 1.6rem; text-align: center; background: #fff2ce; border: 1px solid #d69b26; border-radius: var(--radius); }
.cancelled-banner h2 { margin: .3rem 0; font-family: var(--display); font-size: 1.6rem; }
.cancelled-banner p:last-child { margin: 0; color: var(--ink-soft); }

/* Browser-evidence fixes: labels that must not wrap, inline notices, muted states. */
.section-title-row > .button { flex-shrink: 0; white-space: nowrap; }
.event-actions .button { white-space: nowrap; }
.notice.notice-row { display: flex; align-items: baseline; }
.notice-row > span { flex: 0 0 auto; font-weight: 800; }
.waitlist-note, .rsvp-card > .form-banner { margin-bottom: 1.2rem; }
.waitlist-note strong { display: block; }
.waitlist-note p { margin-top: .25rem; color: var(--ink-soft); font-size: .85rem; }
.side-card > p.send-unreachable { margin: -.4rem 0 0; color: var(--danger); font-weight: 700; }
.dashboard-section-cancelled { padding-top: 0; }
.event-grid-muted .event-card { background: transparent; box-shadow: none; border-style: dashed; }
.event-grid-muted .event-card h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
.event-grid-muted .event-card-date { background: var(--ink-soft); }

@media (max-width: 680px) {
  .guest-card { grid-template-columns: auto 1fr auto; }
  .guest-card-actions { grid-column: 2 / span 2; justify-content: flex-start; padding-bottom: .4rem; }
  .guest-more form { right: auto; left: 0; }
  .cancel-actions .button { width: 100%; }
  /* The preview link is the longest label; give it the full row. */
  .event-actions > a[target="_blank"] { grid-column: 1 / -1; }
  .auth-aside { align-content: center; gap: .6rem; padding-bottom: 6rem; }
  .auth-aside-star { position: relative; top: auto; font-size: 2.6rem; line-height: 1; }
}

/* Blog and use-case pages */
.blog-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 5vw, 5rem); padding-bottom: 7rem; }
.post-section + .post-section { margin-top: 3.5rem; }
.post-section-title { margin: 0 0 1.2rem; font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.post-section-title .muted { font-size: 0.85rem; font-family: inherit; }
.post-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.post-card { padding: 1.6rem 1.7rem; background: var(--paper-light, #fffaf0); border: 1px solid rgba(45,22,50,.12); border-radius: var(--radius, 18px); }
.post-card h3 { margin: 0.35rem 0 0.6rem; font-family: var(--display); font-size: 1.65rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover, .post-card h3 a:focus-visible { color: var(--poppy-dark); text-decoration: underline; text-decoration-thickness: 2px; }
.post-card p:last-child { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.post-card-scheduled { border-style: dashed; background: #fff8e6; }
.post-card { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.post-card-image { display: block; width: 100%; height: auto; border-radius: var(--radius-sm, 10px); box-shadow: 0 0 0 1px rgba(45,22,50,.08); background: var(--paper); }
.article-figure { margin: 0 0 2.2rem; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm, 10px); box-shadow: 0 0 0 1px rgba(45,22,50,.08), var(--shadow-sm); background: var(--paper); }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; color: var(--ink-soft); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.post-badge { padding: 0.15rem 0.55rem; border-radius: 999px; background: #d69b26; color: var(--ink); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; }
.article-header .post-meta { margin-top: 1.2rem; }
.article-header .page-subtitle { font-family: var(--display); font-size: 1.25rem; line-height: 1.45; }
.blog-aside, .article-side { display: flex; flex-direction: column; gap: 2rem; }
.aside-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.aside-links a { color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; }
.aside-links a:hover { color: var(--poppy-dark); }
.aside-cta, .article-cta { padding: 1.6rem; background: rgba(167,204,216,.26); border-radius: var(--radius, 18px); }
.aside-cta p, .article-cta p { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.6; }
.aside-cta .eyebrow, .article-cta .eyebrow { margin-bottom: 0.4rem; }
.article-cta h2 { margin: 0 0 0.7rem; font-family: var(--display); font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.article-body { max-width: 44rem; }
.article-body h2 { margin: 2.6rem 0 0.8rem; font-family: var(--display); font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.article-body h3 { margin: 2rem 0 0.6rem; font-size: 1.2rem; }
.article-body > :first-child { margin-top: 0; }
.article-body p, .article-body li { color: var(--ink-soft); line-height: 1.8; }
.article-body ol { padding-left: 1.4rem; color: var(--ink-soft); line-height: 1.8; }
.article-body blockquote { margin: 1.6rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--marigold, #f2b632); background: var(--paper-light, #fffaf0); border-radius: 0 var(--radius-sm, 10px) var(--radius-sm, 10px) 0; }
.article-body blockquote p { margin: 0; color: var(--ink); }
.article-body pre { padding: 1rem 1.2rem; overflow-x: auto; background: var(--ink); color: var(--paper-light, #fffaf0); border-radius: var(--radius-sm, 10px); font-size: 0.9rem; line-height: 1.6; white-space: pre-wrap; }
.article-body code { font-size: 0.92em; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 0.95rem; }
.article-body th, .article-body td { padding: 0.6rem 0.7rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(45,22,50,.14); color: var(--ink-soft); line-height: 1.5; }
.article-body th { color: var(--ink); }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm, 10px); }
.article-body hr { margin: 2.5rem 0; border: 0; border-top: 1px solid rgba(45,22,50,.14); }
.use-case-hero .hero-actions { margin-top: 1.6rem; }
.use-case-body { padding-top: 1rem; }
.empty-copy { color: var(--ink-soft); }
@media (max-width: 900px) {
  .blog-layout, .article-layout { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 4rem; }
  .post-card { grid-template-columns: 1fr; gap: 1rem; }
  .article-body h2 { font-size: 1.6rem; }
  .article-body table { display: block; overflow-x: auto; }
}

/* Shared envelope identity and an in-flow, keyboard-accessible analytics choice. */
.wordmark-envelope { flex-shrink: 0; border-radius: 0.5rem; }
.analytics-choice { margin-block: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-light); }
.analytics-choice[hidden] { display: none; }
.analytics-choice h2 { margin: 0; font-size: 1.15rem; }
.analytics-choice p { max-width: 65ch; font-size: 0.9rem; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.analytics-status { font-weight: 700; }

.auth-email-address { overflow-wrap: anywhere; }

/* Host setup flow: event form, starters, look preview */
/* iOS renders date/time inputs with an intrinsic width and height, so they
   overflowed their card and stood taller than text fields. */
input[type="date"], input[type="time"] { display: block; min-width: 0; max-width: 100%; height: 3.2rem; -webkit-appearance: none; appearance: none; text-align: left; }
input::-webkit-date-and-time-value { min-height: 1.5em; text-align: left; }
input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.picker-field { position: relative; min-width: 0; }
.picker-field input { padding-right: 2.8rem; cursor: pointer; }
.picker-icon { position: absolute; top: 50%; right: .95rem; width: 1.2rem; height: 1.2rem; color: var(--poppy-dark); pointer-events: none; transform: translateY(-50%); }
.picker-placeholder { position: absolute; top: 50%; left: 1rem; display: none; color: #8b7a86; pointer-events: none; transform: translateY(-50%); }
/* Only iOS leaves an empty date/time field blank; other browsers show a format hint. */
@supports (-webkit-touch-callout: none) {
  .picker-field[data-empty] .picker-placeholder { display: block; }
}
.legend-optional { margin-left: .4rem; color: var(--ink-soft); font-family: var(--body); font-size: .7rem; font-weight: 500; }
.field-label { margin: 0; font-size: .8rem; font-weight: 800; }
select { padding-right: 2.6rem; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5341f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right .95rem center; background-repeat: no-repeat; background-size: 1.1rem; cursor: pointer; }
.inline-details { margin-top: .2rem; }
.inline-details summary { display: inline-block; padding: .2rem 0; color: var(--ink); font-size: .78rem; font-weight: 800; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.inline-details[open] summary { margin-bottom: .8rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-row[hidden] { display: none; }
.chip { min-height: 2.2rem; padding: .35rem .75rem; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: 999px; font-size: .72rem; font-weight: 700; cursor: pointer; }
.chip:hover { border-color: var(--poppy); }
.chip:focus-visible, .swatch:focus-visible, .starter-chip:focus-visible { outline: none; box-shadow: var(--focus); }
.setup-steps { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 1.2rem; padding: 0; color: var(--ink-soft); font-size: .75rem; font-weight: 800; list-style: none; }
.setup-steps li { display: inline-flex; gap: .45rem; align-items: center; }
.setup-steps span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--mono); font-size: .62rem; }
.setup-steps [aria-current] { color: var(--ink); }
.setup-steps [aria-current] span { color: var(--paper-light); background: var(--plum); border-color: var(--plum); }
.setup-steps .is-done span { color: var(--paper-light); background: var(--success); border-color: var(--success); }
.starter-strip { margin-bottom: 1.5rem; }
.starter-strip p { margin: 0 0 .6rem; font-size: .8rem; font-weight: 800; }
.starter-strip ul { display: flex; gap: .5rem; margin: 0; padding: 0 0 .3rem; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.starter-chip { display: inline-flex; gap: .45rem; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; white-space: nowrap; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; }
.starter-chip span { color: var(--poppy-dark); }
.starter-chip:hover { border-color: var(--poppy); }
.starter-chip[aria-current] { color: var(--paper-light); background: var(--plum); border-color: var(--plum); }
.starter-chip[aria-current] span { color: var(--marigold); }
.starter-chip-plain { background: transparent; border-style: dashed; }
.theme-option small { color: inherit; font-size: .6rem; font-weight: 500; opacity: .8; text-align: center; }
.theme-option input:focus-visible + span { box-shadow: var(--focus); }
.swatch-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.swatch-row[hidden] { display: none; }
.swatch { width: 2.4rem; height: 2.4rem; padding: 0; background: var(--swatch); border: 3px solid var(--paper-light); border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.look-intro { margin: -.8rem 0 1rem; color: var(--ink-soft); font-size: .75rem; }
.look-preview { position: relative; margin-bottom: 1.4rem; overflow: hidden; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.look-cover { position: relative; display: grid; place-items: center; min-height: 12rem; padding: 1.4rem .9rem; overflow: hidden; background: var(--marigold) center / cover no-repeat; }
.look-spark { position: absolute; color: var(--poppy); font-size: 1.6rem; }
.look-spark-1 { top: 8%; left: 8%; }
.look-spark-2 { right: 9%; bottom: 8%; color: var(--plum); font-size: 1.2rem; }
.look-cover.has-image .look-spark { display: none; }
.event-cover-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-top: .6rem; color: var(--ink-soft); font-size: .85rem; }
.event-cover-line img { width: 4rem; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.look-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look-art[hidden] { display: none; }
/* "The whole picture": the photo uncropped, the title card below it, as guests see it. */
.look-preview.is-full .look-cover.has-image { display: block; min-height: 0; padding: 0; background: var(--paper-light); }
.look-preview.is-full .look-cover.has-image .look-art { position: static; display: block; height: auto; object-fit: contain; }
.look-preview.is-full .look-cover.has-image .look-card { width: auto; margin: .8rem .8rem 0; box-shadow: none; }
.look-card { position: relative; z-index: 1; display: grid; gap: .45rem; width: 100%; padding: 1.1rem .8rem; text-align: center; background: rgba(255,250,240,.95); border: 1px solid rgba(45,22,50,.22); border-radius: 52% 48% 51% 49% / 5% 6% 5% 6%; box-shadow: .35rem .35rem 0 rgba(74,33,79,.82); }
.look-kicker { margin: 0; overflow: hidden; color: var(--poppy-dark); font-size: .55rem; font-weight: 800; letter-spacing: .12em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.look-card strong { overflow-wrap: anywhere; font-family: var(--display); font-size: 1.55rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.look-when { font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.look-button { display: block; margin: .8rem; padding: .55rem; color: var(--paper-light); background: var(--poppy-button); border-radius: 999px; font-size: .72rem; font-weight: 800; text-align: center; }
.look-preview.theme-classic .look-cover { background-color: #d8c5a3; }
.look-preview.theme-classic .look-card { border-radius: 0; box-shadow: .35rem .35rem 0 #7d8666; }
.look-preview.theme-classic .look-card strong { font-style: italic; }
.look-preview.theme-modern .look-cover { background-color: var(--plum); }
.look-preview.theme-modern .look-card { color: var(--paper-light); background: rgba(45,22,50,.92); border-color: rgba(255,255,255,.25); border-radius: 0; box-shadow: .35rem .35rem 0 var(--poppy); }
.look-preview.theme-modern .look-kicker { color: var(--marigold); }
.map-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.map-links a { display: inline-block; }

/* Guest step, import review, setup checklist */
.guests-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.5rem; align-items: start; padding-bottom: 7rem; }
.guests-main { display: grid; gap: 1.2rem; min-width: 0; }
.guests-aside { position: sticky; top: 1rem; }
.import-source { display: grid; gap: .2rem; }
.source-title { display: flex; gap: .6rem; align-items: center; margin: 0 0 1rem; font-family: var(--display); font-size: 1.45rem; font-weight: 700; }
.source-title span { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; color: var(--paper-light); background: var(--plum); border-radius: 50%; font-family: var(--body); font-size: .9rem; }
.source-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.source-actions [hidden] { display: none; }
.import-source textarea { min-height: 9rem; font-size: .92rem; line-height: 1.5; }
.saved-list { max-height: 18rem; margin: 0; }
.guest-tally h2 { margin-bottom: .4rem; }
.recent-guests { display: grid; gap: .3rem; margin: .6rem 0; padding: 0; list-style: none; font-size: .8rem; }
.recent-guests li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-guests li::before { margin-right: .4rem; color: var(--success); content: "✓"; }
.guest-tally .button { margin-top: .8rem; }
.setup-card { padding-top: 1.5rem; padding-bottom: 1rem; }
.first-send { padding-top: 1.5rem; }
.first-send-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1.4rem 1.5rem; background: var(--paper-light); border: 2px solid var(--success); border-radius: var(--radius); }
.first-send-mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: var(--paper-light); background: var(--success); border-radius: 50%; font-size: 1.2rem; }
.first-send-body h2 { margin: .1rem 0 .5rem; font-size: 1.6rem; }
.first-send-body h3 { margin: 1rem 0 .3rem; font-size: 1rem; }
.first-send-body p { margin: 0; }
.first-send-steps { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.first-send-steps li + li { margin-top: .25rem; }
.first-send-actions { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin-top: 1rem; }
.setup-checklist { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.setup-checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.setup-checklist li.is-current { background: var(--paper-light); border: 2px solid var(--poppy); }
.setup-checklist strong { font-family: var(--display); font-size: 1.2rem; }
.setup-checklist p { margin: .15rem 0 0; color: var(--ink-soft); font-size: .8rem; }
.setup-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--mono); font-size: .75rem; }
.setup-checklist .is-done .setup-mark { color: var(--paper-light); background: var(--success); border-color: var(--success); }
.setup-checklist .is-current .setup-mark { color: var(--paper-light); background: var(--plum); border-color: var(--plum); }
.action-menu { position: relative; }
.action-menu > summary { list-style: none; cursor: pointer; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu > summary::after { margin-left: .3rem; content: "⌄"; }
.action-menu-panel { position: absolute; z-index: 30; right: 0; top: calc(100% + .4rem); display: grid; min-width: 12rem; padding: .4rem; background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.action-menu-panel form { margin: 0; }
.action-menu-item { display: block; width: 100%; padding: .75rem .9rem; color: var(--ink); background: transparent; border: 0; border-radius: .4rem; font-size: .85rem; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.action-menu-item:hover, .action-menu-item:focus-visible { background: var(--paper); outline: none; }
.action-menu-danger { color: var(--danger); }
.mapping-section { padding-bottom: 1rem; }
.mapping-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.mapping-card > summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; list-style: none; cursor: pointer; }
.mapping-card > summary::-webkit-details-marker { display: none; }
.mapping-card > summary span { display: grid; gap: .15rem; }
.mapping-card > summary small { color: var(--ink-soft); font-size: .78rem; }
.mapping-card > summary i { font-style: normal; transition: transform 140ms ease; }
.mapping-card[open] > summary i { transform: rotate(180deg); }
.mapping-form { padding: 0 1.3rem 1.3rem; }
.mapping-grid { display: grid; gap: .6rem; }
.mapping-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem); gap: 1rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.mapping-source { display: grid; min-width: 0; }
.mapping-source small { overflow: hidden; color: var(--ink-soft); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.mapping-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: center; margin-top: 1rem; }
.import-row { flex-wrap: wrap; }
.import-row .person-copy { flex: 1 1 12rem; min-width: 0; }
.import-existing .import-status { color: var(--paper-light); background: var(--success); }
.import-note { color: var(--ink-soft); }
.row-fix { flex: 1 1 100%; padding-bottom: .6rem; }
.row-fix summary { display: inline-block; padding: .2rem 0; font-size: .75rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.row-fix-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; align-items: end; margin-top: .6rem; }
.row-fix-form .field-group { margin: 0; }
.row-fix-form input { min-height: 2.6rem; padding: .5rem .7rem; }
.row-fix-form .button { justify-self: start; }
@media (max-width: 900px) {
  .guests-layout { grid-template-columns: 1fr; }
  /* The running tally and next step stay in reach on phones. */
  .guests-aside { position: sticky; top: auto; bottom: 0; z-index: 20; margin: 0 -.6rem; }
  .guest-tally { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -8px 24px rgba(45,22,50,.12); }
  .guest-tally .eyebrow, .guest-tally .recent-guests, .guest-tally > p:not(.eyebrow) { display: none; }
  .guest-tally h2 { margin: 0; font-size: 1.2rem; }
  .guest-tally .button { width: auto; margin: 0; }
  .guests-add-page .guests-layout { padding-bottom: 2rem; }
}
@media (max-width: 680px) {
  .setup-checklist li { grid-template-columns: auto minmax(0, 1fr); }
  .first-send-card { grid-template-columns: 1fr; padding: 1.1rem; }
  .first-send-mark { width: 2.2rem; height: 2.2rem; }
  .setup-checklist li > .button, .setup-checklist li > .text-link { grid-column: 2; justify-self: start; }
  .mapping-row { grid-template-columns: 1fr; gap: .4rem; }
  .row-fix-form { grid-template-columns: 1fr; }
  .event-actions { grid-template-columns: 1fr 1fr; }
  .event-actions > :first-child { grid-column: 1 / -1; }
  .action-menu > summary { width: 100%; }
}
.place-search { position: relative; }
.place-results { position: absolute; z-index: 25; top: 5.1rem; right: 0; left: 0; display: grid; margin: 0; padding: .3rem; list-style: none; background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.place-results[hidden] { display: none; }
.place-results li { display: grid; gap: .1rem; padding: .65rem .75rem; border-radius: .4rem; cursor: pointer; }
.place-results li:hover, .place-results li[aria-selected="true"] { background: var(--paper); }
.place-results small { color: var(--ink-soft); font-size: .72rem; }
.rsvp-jump { display: none; }
@media (max-width: 680px) {
  .invitation-cover { min-height: 24rem; padding: 2rem .5rem; }
  .invitation-title-card { padding: 2.2rem 1rem; }
  .guest-page:has(.rsvp-jump) .guest-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .rsvp-jump { position: fixed; z-index: 40; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); left: .6rem; display: flex; gap: .8rem; justify-content: space-between; align-items: center; padding: .6rem .6rem .6rem 1rem; color: var(--paper-light); background: var(--ink); border-radius: 999px; box-shadow: var(--shadow-card); font-size: .8rem; transition: transform 200ms ease, opacity 200ms ease; }
  .rsvp-jump .button { min-height: 2.75rem; flex: 0 0 auto; }
  .rsvp-jump.is-hidden { opacity: 0; pointer-events: none; transform: translateY(150%); }
}
/* The error banner spans the form; it must not take the fields' column. */
.editor-layout > .form-banner { grid-column: 1 / -1; }

/* Contact-card guide: an illustrative phone, CSS-only, 16s loop of 4 scenes.
   The steps list is the real content; the phone is aria-hidden. */
.vcard-guide { margin: .4rem 0 .6rem; }
.vcard-guide > summary { display: inline-flex; gap: .45rem; align-items: center; min-height: 2.75rem; color: var(--ink); font-size: .8rem; font-weight: 800; list-style: none; cursor: pointer; }
.vcard-guide > summary::-webkit-details-marker { display: none; }
.vcard-guide > summary span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; color: var(--paper-light); background: var(--poppy-button); border-radius: 50%; font-size: .55rem; transition: transform 160ms ease; }
.vcard-guide[open] > summary span { transform: rotate(90deg); }
.vcard-guide > summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: .4rem; }
.vcard-guide-body { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: .6rem 1.6rem; align-items: start; margin-top: .6rem; padding: 1.2rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-tabs { grid-column: 1 / -1; display: flex; gap: .3rem; padding: .25rem; background: var(--paper); border-radius: 999px; justify-self: start; }
.guide-tabs[hidden] { display: none; }
.guide-tabs button { min-height: 2.4rem; padding: .4rem 1rem; color: var(--ink-soft); background: transparent; border: 0; border-radius: 999px; font-size: .78rem; font-weight: 800; cursor: pointer; }
.guide-tabs button[aria-selected="true"] { color: var(--paper-light); background: var(--plum); }
.guide-tabs button:focus-visible { outline: none; box-shadow: var(--focus); }
.guide-panel-title { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.15rem; }
.guide-panel[hidden] { display: none; }
.guide-steps { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; counter-reset: guide; }
.guide-steps li { position: relative; display: grid; grid-template-columns: 1.7rem 1fr; gap: .6rem; padding: .55rem .6rem; font-size: .8rem; line-height: 1.45; border-radius: .6rem; counter-increment: guide; isolation: isolate; }
.guide-steps li::before { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; color: var(--paper-light); background: var(--plum); border-radius: 50%; font-family: var(--mono); font-size: .66rem; content: counter(guide); }
.guide-steps li::after { position: absolute; z-index: -1; inset: 0; background: rgba(244,185,66,.3); border-radius: inherit; content: ""; opacity: 0; }
.guide-steps:not(.guide-steps-static) li:nth-child(1)::after { animation: guide-scene-1 16s infinite; }
.guide-steps:not(.guide-steps-static) li:nth-child(2)::after { animation: guide-scene-2 16s infinite; }
.guide-steps:not(.guide-steps-static) li:nth-child(3)::after { animation: guide-scene-3 16s infinite; }
.guide-steps:not(.guide-steps-static) li:nth-child(4)::after { animation: guide-scene-4 16s infinite; }
.guide-controls { grid-column: 2; }
.guide-controls[hidden] { display: none; }
.vcard-guide-body[data-guide-platform="computer"] { grid-template-columns: 1fr; }
.vcard-guide-body[data-guide-platform="computer"] .guide-stage, .vcard-guide-body[data-guide-platform="computer"] .guide-controls { display: none; }
.vcard-guide-body[data-guide-platform="ios"] .for-android, .vcard-guide-body[data-guide-platform="android"] .for-ios { display: none; }
.vcard-guide-body[data-guide-platform="ios"] .guide-share-android, .vcard-guide-body[data-guide-platform="android"] .guide-share-ios { display: none; }
.vcard-guide-body.is-paused *, .vcard-guide-body.is-paused *::after { animation-play-state: paused !important; }
/* Held on the first step until the phone is on screen (see initGuidePlayback). */
.vcard-guide-body.is-offscreen *, .vcard-guide-body.is-offscreen *::after { animation-play-state: paused !important; }
.vcard-guide-body.is-reset *, .vcard-guide-body.is-reset *::after { animation: none !important; }

.guide-stage { grid-row: span 2; display: grid; place-items: center; padding: .4rem 0; }
.guide-phone { position: relative; width: 12rem; height: 20rem; overflow: hidden; background: var(--paper-light); border: .55rem solid var(--ink); border-radius: 2rem; box-shadow: .5rem .5rem 0 var(--sky); }
.guide-notch { position: absolute; z-index: 5; top: .35rem; left: 50%; width: 3.2rem; height: .8rem; background: var(--ink); border-radius: 999px; transform: translateX(-50%); }
.guide-screen { position: absolute; inset: 0; padding: 1.7rem .7rem .7rem; font-size: .62rem; opacity: 0; }
.guide-scene-1 { animation: guide-scene-1 16s infinite; }
.guide-scene-2 { animation: guide-scene-2 16s infinite; }
.guide-scene-3 { animation: guide-scene-3 16s infinite; }
.guide-scene-4 { animation: guide-scene-4 16s infinite; }
.guide-app-title { display: flex; justify-content: space-between; margin: 0 0 .5rem; font-family: var(--display); font-size: .95rem; font-weight: 700; }
.guide-app-title em { color: var(--poppy-dark); font-family: var(--body); font-size: .6rem; font-style: normal; font-weight: 800; }
.guide-contacts { display: grid; margin: 0; padding: 0; list-style: none; }
.guide-contacts li { display: grid; grid-template-columns: 1.4rem 1fr 1rem; gap: .45rem; align-items: center; padding: .42rem .1rem; border-bottom: 1px solid var(--line); }
.guide-contacts i { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; color: var(--paper-light); background: var(--plum); border-radius: 50%; font-size: .55rem; font-style: normal; }
.guide-contacts b { display: grid; place-items: center; width: 1rem; height: 1rem; color: var(--paper-light); background: var(--poppy-button); border-radius: 50%; font-size: .5rem; transform: scale(0); }
.guide-contacts.is-selected b { transform: none; }
.guide-check-1 { animation: guide-check-1 16s infinite; }
.guide-check-2 { animation: guide-check-2 16s infinite; }
.guide-check-3 { animation: guide-check-3 16s infinite; }
.guide-check-4 { animation: guide-check-4 16s infinite; }
.guide-toolbar { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; padding: .6rem; background: var(--paper); border-top: 1px solid var(--line); }
.guide-share { display: inline-flex; gap: .3rem; align-items: center; padding: .35rem .8rem; color: var(--paper-light); background: var(--poppy-button); border-radius: 999px; font-weight: 800; }
.guide-share svg { width: .85rem; height: .85rem; }
.guide-sheet { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: .5rem; padding: .7rem; background: var(--paper); border-top: 1px solid var(--line-strong); border-radius: 1rem 1rem 0 0; box-shadow: 0 -8px 20px rgba(45,22,50,.15); transform: translateY(100%); animation: guide-sheet 16s infinite; }
.guide-file-chip { margin: 0; font-weight: 800; }
.guide-file-chip span { color: var(--poppy-dark); }
.guide-sheet-row { display: flex; justify-content: space-between; color: var(--ink-soft); }
.guide-sheet-row span { padding: .3rem .35rem; background: var(--paper-light); border-radius: .4rem; }
.guide-save { margin: 0; padding: .45rem; text-align: center; background: var(--paper-light); border: 2px solid transparent; border-radius: .5rem; font-weight: 800; animation: guide-save 16s infinite; }
.guide-browser { margin: -.6rem 0 .8rem; padding: .3rem .5rem; color: var(--ink-soft); text-align: center; background: var(--paper); border-radius: 999px; }
.guide-drop { display: grid; gap: .2rem; place-items: center; min-height: 6rem; padding: .6rem; text-align: center; background: var(--paper); border: 1px dashed var(--line-strong); border-radius: .6rem; }
.guide-picked { margin: .7rem 0 0; padding: .45rem; color: var(--paper-light); text-align: center; background: var(--success); border-radius: .5rem; font-weight: 800; opacity: 0; animation: guide-picked 16s infinite; }
.guide-tap { position: absolute; width: 1.6rem; height: 1.6rem; background: rgba(233,87,63,.35); border: 2px solid var(--poppy); border-radius: 50%; opacity: 0; pointer-events: none; }
.guide-tap-select { top: 5.4rem; right: .9rem; animation: guide-tap-select 16s infinite; }
.guide-tap-share { bottom: .45rem; left: calc(50% - .8rem); animation: guide-tap-share 16s infinite; }
.guide-tap-save { bottom: .55rem; left: calc(50% - .8rem); animation: guide-tap-save 16s infinite; }
.guide-tap-choose { top: 4.6rem; left: calc(50% - .8rem); animation: guide-tap-choose 16s infinite; }

/* Scene n is on screen for its quarter of the loop, with short cross-fades. */
@keyframes guide-scene-1 { 0%, 23% { opacity: 1; } 25%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes guide-scene-2 { 0%, 23% { opacity: 0; } 25%, 48% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes guide-scene-3 { 0%, 48% { opacity: 0; } 50%, 73% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes guide-scene-4 { 0%, 73% { opacity: 0; } 75%, 98% { opacity: 1; } 100% { opacity: 0; } }
@keyframes guide-check-1 { 0%, 4% { transform: scale(0); } 6%, 100% { transform: scale(1); } }
@keyframes guide-check-2 { 0%, 8% { transform: scale(0); } 10%, 100% { transform: scale(1); } }
@keyframes guide-check-3 { 0%, 12% { transform: scale(0); } 14%, 100% { transform: scale(1); } }
@keyframes guide-check-4 { 0%, 16% { transform: scale(0); } 18%, 100% { transform: scale(1); } }
@keyframes guide-tap-select { 0%, 3% { opacity: 0; top: 3rem; } 4% { opacity: 1; top: 3rem; } 8% { top: 5.1rem; } 12% { top: 7.2rem; } 16% { opacity: 1; top: 9.3rem; } 19%, 100% { opacity: 0; top: 9.3rem; } }
@keyframes guide-tap-share { 0%, 33% { opacity: 0; transform: scale(.6); } 36% { opacity: 1; transform: scale(1); } 41%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes guide-sheet { 0%, 50% { transform: translateY(100%); } 54%, 100% { transform: none; } }
@keyframes guide-save { 0%, 60% { border-color: transparent; } 63%, 100% { border-color: var(--poppy); background: #fff1eb; } }
@keyframes guide-tap-save { 0%, 61% { opacity: 0; transform: scale(.6); } 64% { opacity: 1; transform: scale(1); } 69%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes guide-tap-choose { 0%, 79% { opacity: 0; transform: scale(.6); } 82% { opacity: 1; transform: scale(1); } 87%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes guide-picked { 0%, 86% { opacity: 0; transform: translateY(.4rem); } 89%, 100% { opacity: 1; transform: none; } }

@media (max-width: 680px) {
  .vcard-guide-body { grid-template-columns: 1fr; padding: 1rem .8rem; }
  .guide-stage { grid-row: auto; }
  .guide-controls { grid-column: 1; }
}

/* Reduced motion: the same four scenes as a still storyboard. */
@media (prefers-reduced-motion: reduce) {
  .guide-stage { grid-row: auto; }
  .guide-phone { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; width: 100%; height: auto; padding: .4rem; border-width: 0; border-radius: var(--radius-sm); box-shadow: none; background: transparent; }
  .guide-notch, .guide-tap, .guide-controls { display: none !important; }
  .guide-screen { position: relative; min-height: 11rem; padding-top: .7rem; overflow: hidden; border: 3px solid var(--ink); border-radius: 1rem; opacity: 1 !important; animation: none !important; }
  .guide-contacts b, .guide-sheet, .guide-picked, .guide-save, .guide-steps li::after { animation: none !important; }
  .guide-contacts b { transform: none; }
  .guide-sheet { transform: none; }
  .guide-picked { opacity: 1; }
  .guide-save { border-color: var(--poppy); }
  .guide-steps li::after { opacity: 0; }
}
.guide-sheet-row { gap: .25rem; }
.guide-sheet-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Backstage: the hidden admin view of the welcome series . */
.backstage-page .bs-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-bottom: 2rem; }
.bs-hero-side { display: grid; justify-items: end; gap: 0.75rem; }
.bs-switch { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.bs-switch::before { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; content: ""; }
.bs-switch-on { color: #2c5a41; background: rgba(148, 168, 136, 0.28); }
.bs-switch-off { color: var(--danger); background: rgba(233, 87, 63, 0.14); }
.bs-range { display: flex; gap: 0.35rem; }
.bs-range a { padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.bs-range a[aria-current="page"] { color: var(--paper-light); background: var(--plum); border-color: var(--plum); }
.bs-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-bottom: 5rem; }
.bs-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8rem; }
.bs-kpi { display: grid; gap: 0.15rem; padding: 0.9rem 1rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius); }
.bs-kpi small, .bs-heading, .bs-facts dt { color: var(--ink-soft); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.bs-kpi strong { font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.bs-kpi span { color: var(--ink-soft); font-size: 0.8rem; }
.bs-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; }
.bs-panel { min-width: 0; padding: 1.4rem 1.5rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.bs-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0 0 1rem; }
.bs-funnel { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.bs-funnel li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 9.5rem; gap: 0.75rem; align-items: center; font-size: 0.9rem; }
.bs-bar { height: 0.85rem; overflow: hidden; background: var(--paper-deep); border-radius: 0.3rem; }
.bs-bar i { display: block; min-width: 2px; height: 100%; background: var(--plum); border-radius: 0.3rem; }
.bs-funnel-value { color: var(--ink-soft); font-size: 0.82rem; }
.bs-funnel-value strong { color: var(--ink); }
.bs-footnote, .bs-legend, .bs-empty { margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.bs-upcoming { margin: 0; padding: 0; list-style: none; }
.bs-upcoming li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem; }
.bs-upcoming li span:last-child { color: var(--ink-soft); white-space: nowrap; }
.bs-table-wrap { position: relative; overflow-x: auto; }
.bs-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.bs-table th, .bs-table td { padding: 0.7rem 0.6rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.bs-table thead th { color: var(--ink-soft); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.bs-table tbody th { font-weight: 700; }
.bs-table tbody th small { display: block; color: var(--ink-soft); font-weight: 400; }
.bs-table .bs-num { text-align: right; white-space: nowrap; }
.bs-table tbody th:has(.bs-stamp) { display: flex; align-items: center; gap: 0.7rem; min-width: 16rem; }
.bs-stamp { display: grid; flex: none; place-items: center; width: 2.1rem; height: 2.5rem; color: var(--plum); border: 2px dotted var(--plum); border-radius: 3px; font-family: var(--display); font-size: 1.05rem; }
.bs-card-name small { font-style: italic; }
.bs-actions { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; align-items: center; min-width: 13rem; }
.bs-actions form { display: inline; }
.bs-link-button { padding: 0; color: var(--poppy-dark); background: none; border: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.bs-muted { color: var(--ink-soft); }
.bs-warn { color: var(--danger); }
.bs-dots { display: inline-flex; gap: 0.3rem; vertical-align: middle; }
.bs-dot { display: inline-block; width: 0.8rem; height: 0.8rem; border: 2px solid var(--plum); border-radius: 50%; vertical-align: middle; }
.bs-dot-sent { background: var(--plum); }
.bs-dot-scheduled, .bs-dot-queued { background: linear-gradient(90deg, var(--marigold) 50%, transparent 50%); border-color: #b07d12; }
.bs-dot-skipped { border-color: #b9a98a; border-style: dashed; }
.bs-dot-failed { background: var(--poppy); border-color: var(--poppy-dark); }
.bs-dot-none { border-color: var(--line-strong); }
.bs-legend .bs-dot { margin-left: 0.6rem; }
.bs-legend .bs-dot:first-child { margin-left: 0; }
.bs-pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 800; white-space: nowrap; }
.bs-pill-waiting { background: rgba(167, 204, 216, 0.45); }
.bs-pill-active { background: rgba(244, 185, 66, 0.35); }
.bs-pill-completed { background: rgba(148, 168, 136, 0.4); }
.bs-pill-opted-out, .bs-pill-stopped { background: rgba(233, 87, 63, 0.16); }
.bs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin: 0; }
.bs-facts div { padding: 0.8rem 1rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius); }
.bs-facts dd { margin: 0.2rem 0 0; font-size: 0.92rem; }
.bs-timeline { margin: 0; padding: 0; list-style: none; }
.bs-timeline li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0 0.6rem 1.4rem; border-bottom: 1px dashed var(--line); font-size: 0.9rem; position: relative; }
.bs-timeline li::before { position: absolute; left: 0; top: 0.95rem; width: 0.65rem; height: 0.65rem; border: 2px solid var(--line-strong); border-radius: 50%; content: ""; }
.bs-timeline li.is-done::before { background: var(--plum); border-color: var(--plum); }
.bs-timeline li span:last-child { color: var(--ink-soft); text-align: right; }
@media (max-width: 960px) {
  .bs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bs-grid, .bs-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .backstage-page .bs-hero { display: block; }
  .bs-hero-side { justify-items: start; margin-top: 1rem; }
  .bs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-panel { padding: 1.1rem 1rem; }
  .bs-funnel li { grid-template-columns: 7rem minmax(0, 1fr); }
  .bs-funnel-value { grid-column: 2; }
  .bs-timeline li { display: grid; gap: 0.1rem; }
  .bs-timeline li span:last-child { text-align: left; }
}

/* Event plans (billing) */
.side-card > p.plan-note { margin: 0 0 1rem; padding: .7rem .8rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .72rem; line-height: 1.45; }
.side-card > p.plan-note-free { border-color: var(--poppy); }
.side-card > p.plan-note-warn { border-color: var(--danger); }
.plan-options { display: grid; gap: .5rem; padding: 0; margin: 0 0 1rem; border: 0; }
.plan-options legend { margin-bottom: .6rem; font-size: .72rem; font-weight: 800; }
.plan-options label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; padding: .7rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.plan-options label:has(input:checked) { border-color: var(--poppy); box-shadow: inset 0 0 0 1px var(--poppy); }
.plan-options input { width: 1rem; min-height: 1rem; accent-color: var(--poppy); }
.plan-options span { display: grid; font-size: .75rem; }
.plan-options small { color: var(--ink-soft); font-size: .62rem; }
.plan-options b { font-family: var(--display); font-size: 1.1rem; }
.plan-picker .form-footnote { margin: .7rem 0 0; font-size: .64rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; padding-bottom: 2.5rem; }
.pricing-card { padding: 1.4rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pricing-card-free { border-color: var(--poppy); box-shadow: inset 0 0 0 1px var(--poppy); }
.pricing-card h2 { margin: .3rem 0 0; font-family: var(--display); font-size: 2.6rem; font-weight: 500; letter-spacing: -.04em; }
.pricing-card .pricing-size { margin: .2rem 0 1rem; font-weight: 800; }
.pricing-card ul { margin: 0; padding-left: 1.1rem; font-size: .85rem; line-height: 1.6; }
.pricing-notes { padding-bottom: 4rem; }
.message-card form + form { margin-top: .6rem; }
.plan-payments { margin-top: 1rem; font-size: .72rem; }
.plan-payments summary { cursor: pointer; font-weight: 800; }
.plan-payments ul, .payment-list { margin: .6rem 0 0; padding: 0; list-style: none; }
.plan-payments li, .payment-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dotted var(--line-strong); }
.plan-payments li > span:first-child, .payment-list li > span:first-child { display: grid; }
.plan-payments small, .payment-list small { color: var(--ink-soft); }
.payment-amount { display: grid; justify-items: end; font-family: var(--mono); white-space: nowrap; }
.payment-refunded { color: var(--ink-soft); }
.payment-list + .field-hint { margin-top: .8rem; }
.verify-restart { margin-top: .6rem; }
.pay-shell { max-width: 44rem; padding-top: 2.5rem; padding-bottom: 4rem; }
.pay-summary { margin: 1.5rem 0; }
.pay-summary h1 { margin: .2rem 0 .4rem; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 500; letter-spacing: -.04em; }
.pay-frame { min-height: 24rem; padding: 1rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pay-loading { margin: 2rem 0; text-align: center; color: var(--ink-soft); }
.pay-footnote { margin-top: 1rem; text-align: center; }
.pay-cta { font-size: .9rem; }
.pay-trust { display: grid; gap: .25rem; margin: .8rem 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: .64rem; }
.pay-trust li::before { content: "✓ "; color: var(--poppy); font-weight: 800; }
.checkout-dialog { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-light); color: var(--ink); box-shadow: 0 1.5rem 4rem rgba(46, 21, 51, .25); }
.checkout-dialog::backdrop { background: rgba(46, 21, 51, .45); }
.checkout-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .6rem; }
.checkout-dialog-head h2 { margin: .2rem 0; font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.checkout-dialog-head p { margin: 0; color: var(--ink-soft); font-size: .8rem; }
.checkout-close { flex: none; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.checkout-close:focus-visible { outline: 3px solid var(--poppy); outline-offset: 2px; }
.checkout-mount { min-height: 20rem; }
@media (max-width: 560px) {
  .checkout-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
}
.pay-error[hidden], .pay-loading[hidden] { display: none; }
/* Analytics preferences: a floating card, visible wherever the footer button is. */
.analytics-choice { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 60; width: min(30rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem - env(safe-area-inset-bottom)); overflow: auto; margin: 0; box-shadow: 0 1rem 3rem rgba(46, 21, 51, .22); }
.analytics-choice-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.analytics-close { flex: none; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.analytics-close:focus-visible { outline: 3px solid var(--poppy); outline-offset: 2px; }
.analytics-choice .is-current::after { content: " ✓"; }
.analytics-choice .analytics-status { font-weight: 700; }
@media (max-width: 560px) { .analytics-choice { right: .5rem; bottom: calc(.5rem + env(safe-area-inset-bottom)); width: calc(100vw - 1rem); } }

/* Guest list groups, shared RSVP link, and replies recorded by the host */
.guest-group + .guest-group { margin-top: 2rem; }
.guest-group-head { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; justify-content: space-between; padding-bottom: .5rem; border-bottom: 1px solid var(--line-strong); }
.guest-group-head h3 { margin: 0; font-family: var(--display); font-size: 1.25rem; }
.guest-group-head h3 span { margin-left: .3rem; color: var(--ink-soft); font-family: var(--sans, inherit); font-size: .8rem; font-weight: 800; }
.guest-group-head p { flex-basis: 100%; margin: 0; color: var(--ink-soft); font-size: .76rem; }
.guest-card h4 { margin: 0; font-family: var(--display); font-size: 1.05rem; font-weight: inherit; }
.guest-card p.guest-card-note { margin-top: .25rem; font-size: .78rem; font-style: italic; }
.guest-group-matching { padding: 1rem; background: var(--paper); border: 1px solid var(--poppy); border-radius: var(--radius); }
.guest-card-matching { grid-template-columns: auto minmax(9rem, 1fr) auto; border-bottom: 0; }
.match-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.match-pick { display: flex; gap: .4rem; align-items: center; }
.match-pick select { min-height: 2.55rem; max-width: 14rem; padding: .4rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper-light); font-size: .78rem; }
.copy-names summary { color: var(--ink); font-size: .78rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.copy-names[open] { flex-basis: 100%; }
.copy-names p { margin: .5rem 0; color: var(--ink-soft); font-size: .74rem; }
.copy-names textarea { width: 100%; margin-bottom: .5rem; padding: .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-light); font: inherit; font-size: .82rem; }
.contact-alt { margin: -.25rem 0 1rem; }
.contact-alt summary { width: fit-content; color: var(--ink); font-size: .82rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.contact-alt[open] summary { margin-bottom: .6rem; }
.guest-contact { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; margin-top: .2rem; font-size: .82rem; }
.guest-contact a { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.record-reply-choices { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; border: 0; }
.record-reply-choices label { display: inline-flex; gap: .35rem; align-items: center; min-height: 2.55rem; padding: .4rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .78rem; font-weight: 800; cursor: pointer; }
.record-reply-choices label:has(input:checked) { background: var(--ink); color: var(--paper-light); }
.record-reply .field-row { gap: .6rem; }
.shared-qr { display: grid; place-items: center; margin: 1rem 0; padding: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.shared-qr img { width: min(100%, 12rem); height: auto; }
.shared-link-url { margin: 1rem 0 .6rem; }
.shared-link-url input { width: 100%; font-size: .74rem; }
.shared-link-url button { margin-top: .4rem; }
.shared-link-card .guest-more form { position: static; width: auto; margin-top: .6rem; box-shadow: none; }
.host-your-own { position: relative; margin-top: 2rem; padding: 3.1rem 1.4rem 1.5rem; overflow: hidden; text-align: center; background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: .5rem .5rem 0 var(--sky); }
.host-your-own::before { position: absolute; inset: .45rem; content: ""; border: 1px solid var(--poppy); border-radius: calc(var(--radius) - .2rem); pointer-events: none; }
.host-your-own-stamp { position: absolute; top: 1rem; right: 1.1rem; padding: .25rem .55rem; color: var(--poppy-dark); border: 1px solid var(--poppy); border-radius: 50%; font-family: var(--mono); font-size: .55rem; text-transform: uppercase; transform: rotate(8deg); }
.host-your-own h2 { margin: 0 0 .6rem; font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.host-your-own p { max-width: 30rem; margin: 0 auto 1.1rem; color: var(--ink-soft); line-height: 1.55; }
.host-your-own .button { position: relative; max-width: 22rem; margin-inline: auto; }
.host-your-own p.host-your-own-note { margin: .9rem auto 0; font-size: .82rem; }
.host-your-own p.host-your-own-note .text-link { white-space: nowrap; }
.field-hint { display: block; margin-top: .35rem; color: var(--ink-soft); font-size: .78rem; }
button[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 720px) {
  .match-pick { flex: 1 1 100%; }
  .match-pick select { flex: 1; max-width: none; }
}

/* A finished flyer shown whole, with the title below it */
.invitation-flyer { background: var(--marigold); }
.invitation-flyer img { display: block; width: 100%; max-height: 92vh; object-fit: contain; }
.invitation-flyer-caption { padding: 1.4rem 1rem 1.6rem; text-align: center; background: rgba(255,250,240,.94); border-bottom: 1px solid rgba(45,22,50,.22); }
.invitation-flyer-caption h1 { max-width: 16ch; margin: .2rem auto; font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; line-height: .95; text-wrap: balance; }
.invitation-flyer-when { margin: .4rem 0 0; font-weight: 800; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.theme-modern .invitation-flyer { background: var(--plum); }
.theme-modern .invitation-flyer-caption { color: var(--paper-light); background: rgba(45,22,50,.92); border-color: rgba(255,255,255,.25); }
.theme-classic .invitation-flyer { background: #d8c5a3; }
.cover-display-choice { display: grid; gap: .5rem; margin: .8rem 0 0; padding: 0; border: 0; }
.cover-display-choice legend { margin-bottom: .4rem; font-size: .8rem; font-weight: 800; }
.flyer-sizes { margin-top: .6rem; }
.flyer-links { display: grid; gap: .5rem; margin-top: .6rem; padding: .9rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .8rem; }
.flyer-links p { margin: 0; color: var(--ink-soft); font-size: .74rem; }
.flyer-links span { display: flex; justify-content: space-between; gap: .6rem; }
.flyer-links a[aria-disabled="true"] { opacity: .5; cursor: progress; }
.flyer-links a[aria-busy="true"] { opacity: 1; }
.flyer-links .flyer-status:empty { display: none; }
.flyer-links .flyer-status { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; }
.flyer-status[data-state="busy"]::before { content: ""; flex: none; width: .9rem; height: .9rem; border: 2px solid var(--line-strong); border-top-color: var(--poppy); border-radius: 50%; animation: flyer-spin .8s linear infinite; }
.flyer-status[data-state="error"] { color: var(--danger); }
@keyframes flyer-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .flyer-status[data-state="busy"]::before { animation: none; border-top-color: var(--line-strong); } }

/* Text your invitations from your own phone */
.text-queue { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; padding: 1.1rem 1.2rem; background: var(--paper); border: 2px solid var(--poppy); border-radius: var(--radius); }
.text-queue > div { flex: 1 1 18rem; }
.text-queue h3 { margin: .1rem 0 .3rem; font-family: var(--display); font-size: 1.5rem; }
.text-queue p:not(.eyebrow) { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.text-queue .button { flex: 0 0 auto; }
.shared-link-card .button-full + .button-full { margin-top: .5rem; }
@media (max-width: 720px) { .text-queue .button { flex: 1 1 100%; } }
/* In the send card the queue stacks: what is left, then the button. */
.send-card .text-queue { margin: 1.1rem 0 0; padding: 1rem; background: var(--paper-light); }
.send-card .text-queue > div { flex-basis: 100%; }
.send-card .text-queue .button { flex: 1 1 100%; }
.send-card > .form-footnote { margin: 0 0 .9rem; text-align: left; }

/* The guest's own opt-in to texts */
.texts-card { margin-top: 1.5rem; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.texts-card h2 { margin: .1rem 0 .6rem; font-family: var(--display); font-size: 1.6rem; }
.texts-card p { color: var(--ink-soft); font-size: .86rem; }
.texts-form { display: grid; gap: .8rem; }
.texts-number { margin: 0; }
.texts-masked { color: var(--ink); white-space: nowrap; }
.texts-choice { display: grid; gap: .55rem; margin: 0; padding: 0; border: 0; }
.texts-choice legend { margin-bottom: .55rem; padding: 0; font-size: .86rem; font-weight: 800; }
.texts-option { position: relative; display: flex; gap: .75rem; align-items: center; min-height: 3.5rem; padding: .7rem .95rem; background: var(--paper-light); border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.texts-option input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--poppy-dark); }
.texts-option span { display: grid; gap: .1rem; }
.texts-option strong { font-size: .95rem; }
.texts-option small { color: var(--ink-soft); font-size: .78rem; }
.texts-option:has(input:checked) { border-color: var(--poppy); box-shadow: 0 0 0 3px rgba(233,87,63,.14); }
.texts-option:has(input:focus-visible) { outline: 3px solid var(--poppy); outline-offset: 2px; }
.texts-other-number { margin: .2rem 0 0 2.15rem; }
.texts-choice:has(input[value="known"]:checked) .texts-other-number { display: none; }
.texts-on-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; }
.texts-on-actions form { margin: 0; }
.texts-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .8rem; line-height: 1.45; color: var(--ink); }
.texts-consent input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .1rem; }
.text-queue-progress { height: .45rem; margin: .2rem 0 .6rem; background: var(--line); border-radius: 999px; overflow: hidden; }
.text-queue-progress span { display: block; width: var(--progress); height: 100%; background: var(--poppy); }
.sent-check { width: min(24rem, calc(100% - 2rem)); padding: 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper-light); color: var(--ink); }
.sent-check::backdrop { background: rgba(45, 22, 50, .45); }
.sent-check h2 { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.5rem; }
.sent-check p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .85rem; }
.sent-check-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sent-check-actions .button { flex: 1 1 8rem; }

/* "Show me how on iPhone": AutoFill Contact, five scenes over 15 seconds. */
.autofill-guide { margin-top: .4rem; }
.autofill-guide-body { grid-template-columns: 13.5rem minmax(0, 1fr); }
.af-phone { background: #fffaf0; }
.af-scene { padding: 1.6rem .7rem .7rem; }
.af-scene-1 { animation: af-scene-1 15s infinite; }
.af-scene-2 { animation: af-scene-2 15s infinite; }
.af-scene-3 { animation: af-scene-3 15s infinite; }
.af-scene-4 { animation: af-scene-4 15s infinite; }
.af-scene-5 { animation: af-scene-5 15s infinite; }
.af-label { margin: .35rem 0 .15rem; font-size: .55rem; font-weight: 800; }
.af-field { position: relative; margin: 0; padding: .35rem .45rem; color: #a99ea8; background: #fffdf8; border: 1px solid var(--line-strong); border-radius: .4rem; font-size: .58rem; }
.af-field-focus { border-color: var(--poppy); box-shadow: 0 0 0 2px rgba(233,87,63,.2); }
.af-caret { display: inline-block; width: 1px; height: .65rem; margin-right: 1px; vertical-align: middle; background: #2b7cf6; animation: af-blink 1s steps(1) infinite; }
.af-filled { color: var(--ink); background: #fff3c4; }
.af-keyboard { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: .3rem; padding: .35rem .4rem .5rem; background: #2c2c2e; border-radius: .7rem .7rem 0 0; }
.af-bar { justify-self: center; padding: .2rem .6rem; color: #6cb4ff; background: #3a3a3c; border-radius: 999px; font-size: .58rem; font-weight: 700; }
.af-keys { height: 3.4rem; background: repeating-linear-gradient(90deg, #4a4a4c 0 1.1rem, transparent 1.1rem 1.25rem), repeating-linear-gradient(180deg, transparent 0 .2rem, #2c2c2e .2rem .3rem); border-radius: .3rem; opacity: .9; }
.af-dim { background: rgba(45,22,50,.35); }
.af-menu { position: absolute; top: 3.6rem; right: .8rem; left: .8rem; display: grid; gap: .3rem; padding: .55rem; background: rgba(60,60,64,.96); border-radius: .9rem; color: #fff; text-align: center; }
.af-menu-title { margin: 0 0 .1rem; font-size: .62rem; font-weight: 700; }
.af-menu-item { display: grid; margin: 0; padding: .32rem; background: rgba(255,255,255,.14); border-radius: 999px; font-size: .58rem; }
.af-menu-item small { font-size: .45rem; opacity: .8; }
.af-menu-hit { animation: af-hit-2 15s infinite; }
.af-dark { color: #fff; background: #1c1c1e; }
.af-dark-title { margin: 0 0 .4rem; text-align: center; font-size: .7rem; font-weight: 700; }
.af-list { display: grid; margin: 0; padding: 0; list-style: none; }
.af-phone .af-list li { flex-direction: row; display: flex; gap: .45rem; align-items: center; padding: .38rem .1rem; border-bottom: 1px solid #333; font-size: .62rem; font-weight: 600; }
.af-phone .af-list li:first-child { animation: af-hit-3 15s infinite; border-radius: .4rem; }
.af-phone .af-list i { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; background: #4a3a63; border-radius: 50%; font-size: .45rem; font-style: normal; }
.af-sheet-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 .5rem; }
.af-sheet-head span { padding: .25rem .5rem; background: #3a3a3c; border-radius: 999px; font-size: .55rem; }
.af-sheet-head b { padding: .25rem .6rem; background: #3d8bfd; border-radius: 999px; font-size: .58rem; animation: af-hit-4 15s infinite; }
.af-row { display: grid; grid-template-columns: .9rem 2.2rem 1fr; gap: .25rem; align-items: center; margin: 0; padding: .4rem 0; border-bottom: 1px solid #333; font-size: .55rem; }
.af-row span { grid-column: 2; color: #6cb4ff; }
.af-row em { grid-column: 1; display: grid; place-items: center; width: .8rem; height: .8rem; color: #fff; background: #3d8bfd; border-radius: 50%; font-size: .45rem; font-style: normal; }
.af-row:not(:has(em)) span { grid-column: 2; }
.af-add { margin: .6rem 0 0; padding: .4rem; color: #fff; text-align: center; background: var(--poppy-button); border-radius: 999px; font-size: .6rem; font-weight: 800; animation: af-hit-5 15s infinite; }
.af-tap-1 { bottom: 4.05rem; left: calc(50% - .8rem); animation: af-tap-1 15s infinite; }
.af-tap-2 { top: 9.35rem; left: calc(50% - .8rem); animation: af-tap-2 15s infinite; }
.af-tap-3 { top: 2.75rem; left: 3.4rem; animation: af-tap-3 15s infinite; }
.af-tap-4 { top: 1.35rem; right: .9rem; animation: af-tap-4 15s infinite; }
.af-tap-5 { top: 11.6rem; left: calc(50% - .8rem); animation: af-tap-5 15s infinite; }
.af-steps li:nth-child(1)::after { animation: af-scene-1 15s infinite; }
.af-steps li:nth-child(2)::after { animation: af-scene-2 15s infinite; }
.af-steps li:nth-child(3)::after { animation: af-scene-3 15s infinite; }
.af-steps li:nth-child(4)::after { animation: af-scene-4 15s infinite; }
.af-steps li:nth-child(5)::after { animation: af-scene-5 15s infinite; }
@keyframes af-scene-1 { 0%, 18.5% { opacity: 1; } 20%, 98.5% { opacity: 0; } 100% { opacity: 1; } }
@keyframes af-scene-2 { 0%, 18.5% { opacity: 0; } 20%, 38.5% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes af-scene-3 { 0%, 38.5% { opacity: 0; } 40%, 58.5% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes af-scene-4 { 0%, 58.5% { opacity: 0; } 60%, 78.5% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes af-scene-5 { 0%, 78.5% { opacity: 0; } 80%, 98.5% { opacity: 1; } 100% { opacity: 0; } }
@keyframes af-tap-1 { 0%, 10% { opacity: 0; transform: scale(.6); } 13%, 17% { opacity: 1; transform: scale(1); } 19%, 100% { opacity: 0; } }
@keyframes af-tap-2 { 0%, 30% { opacity: 0; transform: scale(.6); } 33%, 37% { opacity: 1; transform: scale(1); } 39%, 100% { opacity: 0; } }
@keyframes af-tap-3 { 0%, 50% { opacity: 0; transform: scale(.6); } 53%, 57% { opacity: 1; transform: scale(1); } 59%, 100% { opacity: 0; } }
@keyframes af-tap-4 { 0%, 70% { opacity: 0; transform: scale(.6); } 73%, 77% { opacity: 1; transform: scale(1); } 79%, 100% { opacity: 0; } }
@keyframes af-tap-5 { 0%, 90% { opacity: 0; transform: scale(.6); } 93%, 97% { opacity: 1; transform: scale(1); } 99%, 100% { opacity: 0; } }
@keyframes af-hit-2 { 0%, 32% { background: rgba(255,255,255,.14); } 34%, 39% { background: rgba(255,255,255,.4); } 40%, 100% { background: rgba(255,255,255,.14); } }
@keyframes af-hit-3 { 0%, 52% { background: transparent; } 54%, 59% { background: #3a3a3c; } 60%, 100% { background: transparent; } }
@keyframes af-hit-4 { 0%, 72% { filter: none; } 74%, 79% { filter: brightness(1.25); } 80%, 100% { filter: none; } }
@keyframes af-hit-5 { 0%, 92% { filter: none; } 94%, 99% { filter: brightness(1.2); } 100% { filter: none; } }
@keyframes af-blink { 50% { opacity: 0; } }
@media (max-width: 720px) {
  .autofill-guide-body { grid-template-columns: 1fr; }
  .autofill-guide-body .guide-stage { grid-row: auto; }
  .autofill-guide-body .guide-controls { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .af-scene, .af-tap, .af-caret, .af-menu-hit, .af-list li, .af-sheet-head b, .af-add, .af-steps li::after { animation: none !important; }
  .af-tap { display: none; }
}

/* Links and documents from the host: a waiver, a form, a parking map */
.guest-links { margin: 0 0 4rem; }
.detail-card-grid + .guest-links { margin-top: 2.5rem; }
.guest-links > .eyebrow { margin: 0; }
.guest-links h2 { margin: .2rem 0 1rem; font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 500; }
.guest-links ul { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.guest-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; min-height: 4.75rem; padding: 1rem 1.2rem; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.guest-link:hover { transform: translateY(-2px); border-color: var(--poppy); }
.guest-link:focus-visible { outline: none; box-shadow: var(--focus); }
.guest-link-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--poppy-dark); background: var(--paper-light); border: 1px solid var(--line); border-radius: 50%; }
.guest-link-todo { background: var(--paper-light); border-color: var(--poppy); border-left-width: 5px; }
.guest-link-todo .guest-link-icon { color: var(--paper-light); background: var(--poppy-button); border-color: transparent; }
.guest-link-text { display: grid; gap: .2rem; min-width: 0; }
.guest-link-text strong { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.guest-link-text small { display: flex; flex-wrap: wrap; gap: .25rem .6rem; color: var(--ink-soft); font-size: .72rem; }
.guest-link-text small > span:last-child { overflow-wrap: anywhere; }
.guest-link-flag { color: var(--poppy-dark); font-weight: 800; }
.guest-link-go { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 50%; }
.guest-link:hover .guest-link-go { color: var(--paper-light); background: var(--ink); border-color: var(--ink); }
.theme-modern .guest-link, .theme-modern .guest-link-todo { background: var(--paper-light); }
@media (prefers-reduced-motion: reduce) { .guest-link, .guest-link:hover { transform: none; transition: none; } }

.links-card .host-links { display: grid; gap: .5rem; margin: 1rem 0 .4rem; padding: 0; list-style: none; }
.host-links li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .7rem .8rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.host-link-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--poppy-dark); background: var(--paper); border-radius: 50%; }
.host-link-icon svg { width: 18px; height: 18px; }
.host-link-text { display: grid; gap: .1rem; min-width: 0; }
.host-link-text a { color: var(--ink); font-size: .85rem; font-weight: 800; overflow-wrap: anywhere; }
.host-link-text small { color: var(--ink-soft); font-size: .7rem; overflow-wrap: anywhere; }
.host-links form { margin: 0; }
.host-link-remove { min-height: 2.75rem; padding: 0 .3rem; background: none; border: 0; color: var(--ink-soft); font-size: .75rem; cursor: pointer; }
.host-link-remove:hover { color: var(--danger); }
.link-add { margin-top: .8rem; }
.link-add .form-banner { margin-top: .8rem; }
.link-form { display: grid; gap: .9rem; margin-top: .8rem; padding: 1rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.link-form .field-group { margin: 0; }
.link-form input, .link-form select { background: #fff; }
.link-form input[type="file"] { min-height: 0; padding: .7rem; font-size: .8rem; }
.link-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 3px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; }
.link-kind label { cursor: pointer; }
.link-kind input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.link-kind span { display: grid; place-items: center; min-height: 2.5rem; padding: 0 .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; text-align: center; }
.link-kind input:checked + span { color: var(--paper-light); background: var(--ink); }
.link-kind input:focus-visible + span { box-shadow: var(--focus); }
/* Show only the field for the chosen kind; without :has() both stay visible. */
.link-form:has(input[name="kind"][value="LINK"]:checked) .link-file-field,
.link-form:has(input[name="kind"][value="FILE"]:checked) .link-url-field { display: none; }

@media (max-width: 520px) {
  .guest-link { gap: .8rem; padding: .9rem 1rem; }
  .guest-link-icon { width: 2.4rem; height: 2.4rem; }
  .guest-link-go { display: none; }
  .guest-link { grid-template-columns: auto minmax(0, 1fr); }
}
.links-card .guest-more form { position: static; width: auto; box-shadow: none; }
.guest-edit-form .field-group { margin: 0; }
.guest-edit-form .form-banner { font-size: .78rem; }

/* Private host announcements: readable as a letter at every screen size. */
.guest-message-card { max-width: 44rem; margin: 2rem auto; padding: clamp(1.5rem,5vw,3.5rem); border: 1px solid var(--line-strong); border-radius: 1.5rem; background: var(--paper-light); box-shadow: 0 6px 0 rgba(45,22,50,.07); }
.guest-message-card h1 { font-size: clamp(2.2rem,6vw,3.8rem); line-height: 1.08; overflow-wrap: anywhere; }
.guest-message-card header { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.guest-message-body { font-size: 1.1rem; line-height: 1.7; overflow-wrap: anywhere; }
.guest-message-card .button { margin-top: 1.5rem; }
@media(max-width:760px) { .guest-message-card { margin: 1rem; } }

/* Guest-card popovers (Edit, Record reply, More) hang off the card, not their
   button: a button mid-row pushed an 18rem panel past a phone's right edge. */
.guest-card { position: relative; }
.guest-card .guest-more { position: static; }
.guest-card .guest-more form { top: calc(100% + .4rem); right: 0; width: min(20rem, 100%); padding: 1.1rem; box-shadow: var(--shadow-card); }
.guest-card .guest-more .form-footnote { text-align: left; }
.guest-card .guest-more[open] summary { border-color: var(--ink); }
/* The global input sizing stretched these radios into large circles. */
.record-reply-choices label { white-space: nowrap; }
.record-reply-choices input { flex: none; width: 1rem; min-height: 1rem; height: 1rem; margin: 0; padding: 0; accent-color: var(--ink); }

@media (max-width: 680px) {
  .guest-card .guest-more form { top: calc(100% - .5rem); left: 0; right: 0; width: auto; }
}

/* Co-hosts */
.cohost-list, .cohost-invites { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.cohost-list li { display: flex; flex-wrap: wrap; gap: .5rem .85rem; align-items: center; padding: .8rem .95rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cohost-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 2.4rem; height: 2.4rem; color: var(--paper-light); background: var(--poppy); border-radius: 50%; font-weight: 800; }
.cohost-who { display: grid; flex: 1 1 10rem; min-width: 0; }
.cohost-who small { overflow: hidden; color: var(--ink-soft); font-size: .8rem; text-overflow: ellipsis; }
.cohost-who strong small { color: var(--ink-soft); font-weight: 600; }
.cohost-list form { margin: 0; }
.cohost-remove { min-height: 2.75rem; padding: 0 .25rem; color: var(--poppy-dark); font-size: .82rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.cohost-invite-form { display: grid; gap: .8rem; justify-items: start; }
.cohost-invite { display: grid; gap: .8rem; padding: 1rem; background: var(--paper-light); border: 1.5px solid var(--line); border-radius: var(--radius-sm); scroll-margin-top: 6rem; }
.cohost-invite.is-new { border-color: var(--poppy); box-shadow: 0 0 0 3px rgba(233,87,63,.14); }
.cohost-invite-head { display: grid; gap: .15rem; }
.cohost-invite-head small { color: var(--ink-soft); font-size: .8rem; }
.cohost-invite-next { margin: 0; font-weight: 800; }
.cohost-share { display: flex; flex-wrap: wrap; gap: .5rem; }
.cohost-share .button { flex: 1 1 8rem; justify-content: center; }
.cohost-link { display: grid; grid-template-columns: 1fr auto; gap: .4rem .5rem; align-items: center; margin: 0; }
.cohost-link label { grid-column: 1 / -1; }
.cohost-link input { min-width: 0; font-size: .85rem; }
.cohost-cancel { margin: 0; }
.cohost-cancel .text-button { color: var(--ink-soft); font-size: .8rem; text-decoration: underline; cursor: pointer; }
.join-perks { display: grid; gap: .55rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.join-perks li { display: flex; gap: .6rem; align-items: baseline; }
.join-perks span { color: var(--poppy-dark); font-weight: 800; }
.join-status { font-weight: 800; }
.cohost-card .cohost-faces { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.cohost-card .cohost-faces li { display: inline-flex; gap: .4rem; align-items: center; padding: .25rem .65rem .25rem .25rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 700; }
.cohost-card .cohost-avatar { width: 1.7rem; height: 1.7rem; font-size: .75rem; }
.workspace-switcher { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1.5rem; padding: .75rem 1rem; background: rgba(167,204,216,.26); border-radius: var(--radius-sm); }
.workspace-switcher p { margin: 0 auto 0 0; font-size: .88rem; }
.workspace-switcher form { margin: 0; }
.texts-on-actions button.text-link { min-height: 2.75rem; padding: 0; color: var(--ink); background: none; border: 0; font: inherit; font-size: .86rem; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; cursor: pointer; }
/* Guest texts: unread badges and the "new texts" callout (dashboard, event page, inbox). */
.unread-badge { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding-inline: .45rem; color: var(--paper-light); background: var(--poppy-button); border-radius: 999px; font-size: .75rem; font-weight: 800; line-height: 1; }
.inbox-callout { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding: .8rem .9rem .8rem 1.2rem; background: var(--paper); border: 1px solid var(--line-strong); border-left: 6px solid var(--poppy-button); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.inbox-callout p { margin: 0; font-family: var(--display); font-size: 1.15rem; letter-spacing: -.01em; }
.inbox-callout ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.inbox-callout ul a { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; padding: .3rem .95rem .3rem .4rem; background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: 999px; font-size: .86rem; font-weight: 800; text-decoration: none; }
.inbox-callout ul a:hover { border-color: var(--ink); }
.event-header .inbox-callout { margin: 1.75rem 0 0; }
.next-step-callout > div > span { display: block; margin-top: .15rem; color: var(--ink-soft); font-size: .8rem; }
.event-workspace-main > .send-card { margin-bottom: 1.5rem; border: 2px solid var(--poppy); }
.event-card-texts { display: inline-flex; gap: .4rem; align-items: center; color: var(--poppy-dark); font-weight: 800; }
.subnav .unread-badge { min-width: 1.3rem; height: 1.3rem; margin-left: .3rem; font-size: .66rem; vertical-align: .05em; }

/* Guest rows: who, reply, and delivery on one line; the row's actions sit on
   their own line underneath instead of stacking into a ragged right column. */
.guest-card p, .guest-card small { font-size: .78rem; }
.guest-card-matching:last-child .match-actions { padding-bottom: .2rem; border-bottom: 0; }
@media (min-width: 681px) {
  .guest-card:not(.guest-card-matching) { grid-template-columns: auto minmax(0, 1fr) minmax(6.5rem, auto) minmax(7rem, auto) auto; gap: .55rem 1.1rem; padding: .95rem 0; }
  .guest-card:not(.guest-card-matching) .guest-card-actions { grid-column: 2 / -1; justify-content: flex-start; }
}

/* Free tools: invitation timing calculator. */
.tool-layout { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 3rem; align-items: start; padding-bottom: 7rem; }
.tool-card { display: grid; gap: .4rem; padding: clamp(1.3rem, 3vw, 2rem); background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius); }
.tool-result { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.tool-result dl { display: grid; gap: 1.2rem; margin: 0; }
.tool-result dt { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--poppy-dark); }
.tool-result dd { margin: .3rem 0 0; font-family: var(--display); font-size: 1.35rem; font-weight: 500; line-height: 1.25; }
.tool-result dd.tool-rule { font-family: inherit; font-size: .8rem; color: var(--ink-soft); }
.tool-note { margin: 1.2rem 0 0; padding: .8rem 1rem; background: #fff2ce; border-radius: var(--radius-sm); font-size: .85rem; line-height: 1.5; }
.tool-notes section { margin-top: 0; }
.tool-table-wrap { overflow-x: auto; }
.tool-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .9rem; }
.tool-table th, .tool-table td { padding: .55rem .6rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-soft); line-height: 1.45; }
.tool-table th { color: var(--ink); }
@media (max-width: 900px) { .tool-layout { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 4rem; } }

/* Free tools: headcount and food estimator. */
.estimator-layout { display: grid; grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); gap: 3rem; align-items: start; padding-bottom: 7rem; }
.estimator-card { display: grid; gap: 1.2rem; padding: clamp(1.3rem, 3vw, 2rem); background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius); }
.estimator-step { display: grid; gap: .7rem; min-width: 0; margin: 0; padding: 0 0 1.2rem; border: 0; border-bottom: 1px solid var(--line); }
.estimator-step legend { margin-bottom: .5rem; padding: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.estimator-step .field-row, .estimator-step .field-group { margin-bottom: 0; }
.estimator-choice { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.4; }
.estimator-choice input { flex: none; width: auto; min-height: 0; margin: .2rem 0 0; }
.estimator-result { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.estimator-label { margin: 0 0 .9rem; color: var(--poppy-dark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.estimator-result dl { display: grid; gap: 1rem; margin: 0; }
.estimator-result dt { font-size: .8rem; font-weight: 800; }
.estimator-result dd { margin: .2rem 0 0; font-family: var(--display); font-size: 1.35rem; font-weight: 500; line-height: 1.25; }
.estimator-result dd.estimator-detail { color: var(--ink-soft); font-family: inherit; font-size: .8rem; }
.estimator-note { margin: 1.2rem 0 0; padding: .8rem 1rem; background: #fff2ce; border-radius: var(--radius-sm); font-size: .85rem; line-height: 1.5; }
.estimator-notes section { margin-top: 0; }
@media (max-width: 900px) { .estimator-layout { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 4rem; } }

/* Free tools: whole-class invite decision helper. */
.ci-card { gap: 1.2rem; }
.ci-step { display: grid; gap: .6rem; min-width: 0; margin: 0; padding: 0 0 1.2rem; border: 0; border-bottom: 1px solid var(--line); }
.ci-step legend { margin-bottom: .5rem; padding: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.ci-choice { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.4; cursor: pointer; }
.ci-choice input { flex: none; width: 1rem; height: 1rem; min-height: 0; margin: .15rem 0 0; padding: 0; accent-color: var(--poppy); }
.ci-result { margin-top: 0; }
.ci-result p { margin: 0 0 .7rem; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.ci-result .ci-label { margin: 1.2rem 0 .6rem; color: var(--poppy-dark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ci-result .ci-label:first-child { margin-top: 0; }
.ci-result .ci-headline { color: var(--ink); font-family: var(--display); font-size: 1.35rem; font-weight: 500; line-height: 1.25; }
.ci-result .ci-link a { font-weight: 700; }
