/* ═══════════════════════════════════════════════════════════
   Constellation RSVP — styles
   Celestial, editorial, privacy-forward. Self-hosted fonts,
   pure CSS/SVG motion. Tokens per the design handoff.
   ═══════════════════════════════════════════════════════════ */

/* ── Self-hosted fonts (variable woff2, latin) ── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url('/fonts/outfit.woff2') format('woff2');
}

/* ── Tokens ── */
:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;

  --sky-top: #0d1a33;
  --sky:     #0a1428;
  --sky-bot: #070f1f;

  --accent:  #D4E5FF;
  --ink:       rgba(255, 248, 232, 0.92);
  --ink-soft:  rgba(255, 248, 232, 0.62);
  --ink-faint: rgba(255, 248, 232, 0.40);

  --line:      rgba(212, 229, 255, 0.10);
  --line-soft: rgba(212, 229, 255, 0.06);
  --surface:   rgba(212, 229, 255, 0.035);
  --surface-2: rgba(212, 229, 255, 0.06);

  --attend:  #D4E5FF;
  --maybe:   #E8D5FF;
  --decline: #E0A98F;
  --pending: rgba(255, 248, 232, 0.42);

  --radius: 14px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; background: var(--sky); }
body { min-height: 100%; user-select: none; }
/* guest pages: lock to the viewport, no scroll (the sky is a fixed full-bleed layer) */
body.guest { height: 100%; overflow: hidden; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* admin: gradient scrolls with content (no background-attachment:fixed — it
   leaves a gap on mobile when the toolbar collapses). min-height keeps short
   pages full; the html dark base covers any overscroll. */
body.admin {
  background: linear-gradient(178deg, var(--sky-top) 0%, var(--sky) 50%, var(--sky-bot) 100%) no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
}
.muted { color: var(--ink-faint); }
.serif { font-family: var(--font-serif); font-weight: 300; }

/* ═══ Keyframes ═══ */
@keyframes greetingGlow {
  from { text-shadow: 0 0 30px rgba(212,229,255,0.2); }
  to   { text-shadow: 0 0 48px rgba(212,229,255,0.42); }
}
@keyframes greetFade {
  to { opacity: 0; transform: translateY(-18px); }
}
@keyframes newStarLabel { from { opacity: 0; } to { opacity: 0.65; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sfRippleRing { 0% { r: 8px; opacity: var(--sf-op, 0.34); } 100% { r: var(--sf-r, 300px); opacity: 0; } }
@keyframes sfRippleBloom { 0% { r: var(--sf-b0, 30px); opacity: 0.28; } 55% { opacity: 0.08; } 100% { r: var(--sf-b1, 120px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ═══ Constellation container (guest pages) ═══ */
/* inset:0 alone stretches the fixed layer to the full viewport. Do NOT also set
   an explicit height — combining height with top/bottom over-constrains the box
   and shrinks it to the smaller value on mobile, leaving a gap below. */
#constellation-container {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%, #0f2244 0%, #080e1c 68%);
}
#constellation-container.dimmed { opacity: 0.4; transition: opacity 0.8s ease; }
/* promote the two parallax layers to GPU compositing — their transform is
   rewritten every frame on pointer move */
#constellation-container .cz-bg,
#constellation-container .cz-mid { will-change: transform; }

/* faint static stardust (admin) */
.stardust { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stardust circle { fill: var(--accent); }


/* ═══ Public constellation chrome ═══ */
.cz-title {
  position: absolute; top: 70px; left: 0; right: 0; text-align: center;
  z-index: 5; pointer-events: none; animation: fadeIn 1.4s ease both;
}
.cz-title h1 {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(28px, 5vw, 42px); color: var(--accent);
  letter-spacing: 0.04em; opacity: 0.92;
  text-shadow: 0 0 60px rgba(212, 229, 255, 0.15);
}
.cz-tagline {
  margin-top: 6px; font-size: 13px; color: var(--accent); opacity: 0.35;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 300;
}
.cz-eventinfo {
  position: absolute; bottom: calc(32px + env(safe-area-inset-bottom)); left: calc(32px + env(safe-area-inset-left)); z-index: 5;
  font-family: var(--font-serif); color: var(--accent); opacity: 0.5;
  font-weight: 300; line-height: 1.8; letter-spacing: 0.02em;
  animation: fadeIn 1.8s ease both;
}
.cz-eventinfo .date { opacity: 0.85; font-size: 16px; margin-bottom: 4px; user-select: all; }
.cz-eventinfo .place { font-size: 14px; user-select: all; }
/* accessible / no-JS attendee fallback */
.sr-list {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.noscript-fallback {
  position: relative; z-index: 6; max-width: 480px; margin: 40vh auto 0;
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink);
}
.noscript-fallback h2 { font-family: var(--font-serif); font-weight: 400; margin-bottom: 0.5rem; }

/* ═══ Guest RSVP page ═══ */
.sky-scrim { position: fixed; inset: 0; z-index: 1; background: rgba(10, 20, 40, 0.18); transition: opacity 0.8s ease; }
.sky-scrim.is-clear { opacity: 0; pointer-events: none; }

.greeting {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
}
.greeting .hello {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(28px, 5vw, 48px); color: var(--accent);
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(212, 229, 255, 0.3);
  animation: greetingGlow 2s ease-in-out infinite alternate;
}
.greeting.is-active { animation: greetFade 0.7s ease 1.3s forwards; }

.rsvp-wrap {
  position: relative; z-index: 5; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
/* form waits below + invisible, then rises into place as the greeting dissolves */
.rsvp-wrap.js-greeting { opacity: 0; transform: translateY(20px); }
.rsvp-card {
  width: 100%; max-width: 420px;
  background: rgba(212, 229, 255, 0.04);
  border: 1px solid rgba(212, 229, 255, 0.07);
  border-radius: 16px; padding: 36px 32px;
  backdrop-filter: blur(6px);
  animation: fadeInUp 0.7s ease both;
}
.rsvp-card.fade-out { opacity: 0; transform: translateY(-26px); pointer-events: none; transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.4, 0, 0.2, 1); }
.rsvp-name { font-family: var(--font-serif); font-weight: 300; font-size: 30px; color: var(--accent); letter-spacing: 0.01em; margin-bottom: 4px; }
.rsvp-invited { font-size: 12px; color: var(--accent); opacity: 0.4; margin-bottom: 10px; font-weight: 300; }
.rsvp-eventinfo { font-size: 12px; color: var(--accent); opacity: 0.55; margin-bottom: 24px; font-weight: 300; }
.rsvp-eventinfo a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rsvp-dot { margin: 0 6px; opacity: 0.4; }
.decline-note { font-size: 12px; color: var(--accent); opacity: 0.55; margin-top: 4px; margin-bottom: 8px; font-style: italic; }

.field-label {
  display: block; font-size: 12px; color: var(--accent); opacity: 0.6;
  margin-bottom: 8px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400;
}
.fieldset { border: none; margin-bottom: 20px; }
.field-hint { display: block; font-size: 11px; color: var(--accent); opacity: 0.45; margin-top: 6px; }

/* Admin: dietary edit inline */
.diet-edit { list-style: none; }
.diet-summary { cursor: pointer; list-style: none; }
.diet-summary::-webkit-details-marker { display: none; }
.diet-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.diet-input { font-size: 12px; padding: 5px 8px; min-width: 140px; }
/* Admin: grow-actions stacks invite link + new link */
.grow-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
/* Admin: duplicate name error */
.add-error { font-size: 12px; color: var(--decline, #e0a98f); padding: 6px 0 2px; }

/* segmented RSVP control */
.seg { display: flex; gap: 8px; }
.seg label {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; border: 1px solid rgba(212, 229, 255, 0.1);
  background: transparent; border-radius: 8px; cursor: pointer;
  color: var(--accent); font-size: 13px; opacity: 0.5; transition: all 0.3s ease;
  text-align: center; line-height: 1.2;
}
.seg label .ico { font-size: 16px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + label,
.seg label.is-on {
  border-color: rgba(212, 229, 255, 0.4); background: rgba(212, 229, 255, 0.08);
  opacity: 1; font-weight: 500;
}

/* pill toggle (plus-one + visibility) */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; }
.toggle-row .t-label { font-size: 13px; color: var(--accent); opacity: 0.85; font-weight: 400; }
.toggle-row .t-sub { font-size: 11px; color: var(--accent); opacity: 0.4; font-weight: 300; margin-top: 3px; line-height: 1.4; }
.pill {
  position: relative; width: 40px; height: 22px; border-radius: 11px; padding: 2px;
  background: rgba(212, 229, 255, 0.08); border: 1px solid rgba(212, 229, 255, 0.15);
  flex-shrink: 0; transition: background 0.3s ease;
}
.pill i { display: block; width: 16px; height: 16px; border-radius: 50%; background: rgba(212, 229, 255, 0.3); transition: transform 0.3s ease, background 0.3s ease; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row input:checked ~ .pill { background: rgba(212, 229, 255, 0.3); }
.toggle-row input:checked ~ .pill i { background: var(--accent); transform: translateX(18px); }

.vis-divider { border-top: 1px solid rgba(212, 229, 255, 0.06); padding-top: 16px; margin-top: 4px; }

.rsvp-textarea {
  width: 100%; padding: 8px 14px; background: rgba(212, 229, 255, 0.03);
  border: 1px solid rgba(212, 229, 255, 0.1); border-radius: 8px; color: var(--accent);
  font-family: var(--font-sans); font-size: 14px; font-weight: 300; line-height: 1.5;
  outline: none; resize: vertical; transition: border-color 0.3s ease;
  min-height: 44px;
}
.rsvp-textarea:focus { border-color: rgba(212, 229, 255, 0.3); }

.btn-submit {
  width: 100%; margin-top: 20px; padding: 14px 24px; background: transparent;
  border: 1px solid rgba(212, 229, 255, 0.25); border-radius: 10px; cursor: pointer;
  color: var(--accent); font-family: var(--font-serif); font-size: 17px; font-weight: 400;
  letter-spacing: 0.03em; transition: all 0.3s ease;
}
.btn-submit:hover { background: rgba(212, 229, 255, 0.08); border-color: rgba(212, 229, 255, 0.4); }

/* confirmation headline anchored at the top */
.confirm-head {
  position: fixed; left: 0; right: 0; top: 5vh; z-index: 6; text-align: center; pointer-events: none;
  animation: fadeInDown 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.confirm-head .big { font-family: var(--font-serif); font-weight: 300; font-size: clamp(26px, 4.5vw, 38px); color: var(--accent); text-shadow: 0 0 44px rgba(212, 229, 255, 0.35); }
.confirm-footer {
  position: fixed; right: calc(24px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 6; animation: fadeInUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.confirm-footer a { color: var(--accent); opacity: 0.45; font-size: 12px; font-weight: 300; text-decoration: none; border-bottom: 1px solid rgba(212,229,255,0.2); padding-bottom: 1px; }
.confirm-footer a:hover { opacity: 0.8; }
.confirm-edit { margin-top: 12px; pointer-events: auto; }
.confirm-edit a { font-size: 12px; color: var(--accent); opacity: 0.45; text-decoration: none; border-bottom: 1px solid rgba(212,229,255,0.2); padding-bottom: 1px; }
.confirm-edit a:hover { opacity: 0.75; }
.cz-eventinfo a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(212,229,255,0.2); }
.cz-eventinfo a:hover { opacity: 1; }
.cz-cal { margin-top: 10px; font-size: 12px; opacity: 0.6; }

/* ═══ Shared admin surfaces (ported from admin.css) ═══ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(6px); }
.admin-root { position: relative; z-index: 1; }
.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 400; white-space: nowrap; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-family: var(--font-serif); font-weight: 400; font-size: 19px; color: var(--accent); letter-spacing: 0.02em; }
.wordmark .stari { color: var(--accent); opacity: 0.9; font-size: 15px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }
.input { width: 100%; padding: 12px 14px; background: rgba(212, 229, 255, 0.03); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 300; outline: none; transition: border-color .25s ease, background .25s ease; }
.input::placeholder { color: var(--ink-faint); }
.input:focus { border-color: rgba(212, 229, 255, 0.35); background: rgba(212, 229, 255, 0.05); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); font-size: 13.5px; font-weight: 400; padding: 11px 18px; border-radius: 9px; cursor: pointer; white-space: nowrap; border: 1px solid transparent; background: transparent; color: var(--ink); transition: background .25s ease, border-color .25s ease, color .25s ease, opacity .2s ease; letter-spacing: 0.01em; text-decoration: none; }
.btn-primary { border-color: rgba(212, 229, 255, 0.3); color: var(--accent); font-family: var(--font-serif); font-size: 16px; }
.btn-primary:hover { background: rgba(212, 229, 255, 0.08); border-color: rgba(212, 229, 255, 0.5); }
.btn-ghost { border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: rgba(212, 229, 255, 0.28); color: var(--ink); background: rgba(212,229,255,0.04); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: 0.4; cursor: default; }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 300; color: var(--ink); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status.attend  .dot { background: var(--attend); box-shadow: 0 0 8px rgba(212,229,255,.5); }
.status.maybe   .dot { background: var(--maybe); }
.status.decline .dot { background: var(--decline); }
.status.pending .dot { background: transparent; border: 1px solid var(--pending); }
.status.pending { color: var(--ink-faint); }

.toggle { position: relative; width: 38px; height: 21px; border-radius: 11px; padding: 2px; background: rgba(212, 229, 255, 0.08); border: 1px solid rgba(212, 229, 255, 0.15); cursor: pointer; transition: background .25s ease; flex-shrink: 0; }
.toggle i { display: block; width: 15px; height: 15px; border-radius: 50%; background: rgba(212, 229, 255, 0.35); transition: transform .25s ease, background .25s ease; }
.toggle[data-on="1"] { background: rgba(212, 229, 255, 0.28); }
.toggle[data-on="1"] i { background: var(--accent); transform: translateX(17px); }

/* ═══ Admin login ═══ */
.login-wrap { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left)); }
.login-card { width: 100%; max-width: 380px; padding: 40px 36px 32px; animation: rise .8s cubic-bezier(.2,.7,.3,1) both; }
.login-head { text-align: center; margin-bottom: 30px; }
.login-star { font-size: 22px; color: var(--accent); opacity: .9; display: block; margin-bottom: 14px; text-shadow: 0 0 26px rgba(212,229,255,.4); }
.login-title { font-size: 30px; color: var(--accent); letter-spacing: .02em; line-height: 1.15; }
.login-sub { margin-top: 8px; font-size: 13px; color: var(--ink-faint); font-weight: 300; }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-form .btn-primary { width: 100%; margin-top: 6px; }
.login-err { font-size: 13px; color: var(--decline); text-align: center; padding: 8px; border: 1px solid rgba(224,169,143,.3); border-radius: 8px; background: rgba(224,169,143,.06); }
.login-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--ink-faint); }
.login-foot a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.login-foot a:hover { color: var(--accent); border-color: rgba(212,229,255,.4); }

/* ═══ Admin dashboard (ported from Admin Dashboard.html <style>) ═══ */
.dash-wrap {
  max-width: 1080px; margin: 0 auto;
  /* keep content clear of notch / gesture-nav while the bg fills the safe area */
  padding: calc(30px + env(safe-area-inset-top)) calc(32px + env(safe-area-inset-right))
           calc(90px + env(safe-area-inset-bottom)) calc(32px + env(safe-area-inset-left));
}
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.dash-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 9px; font-size: 13px; color: var(--ink-soft); font-weight: 300; }
.dot-sep { color: var(--ink-faint); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.stat { position: relative; padding: 20px 22px; overflow: hidden; }
.statdot { position: absolute; top: 18px; right: 18px; width: 8px; height: 8px; border-radius: 50%; }
.statdot.attend { background: var(--attend); box-shadow: 0 0 12px rgba(212,229,255,.6); }
.statdot.maybe { background: var(--maybe); }
.statdot.decline { background: var(--decline); }
.statdot.pending { background: transparent; border: 1px solid var(--pending); }
.stat .num { font-family: var(--font-serif); font-weight: 300; font-size: 42px; line-height: 1; color: var(--ink); letter-spacing: 0.01em; }
.stat .statlabel { margin-top: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.summaryline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 4px 4px 0; margin-bottom: 26px; font-size: 13px; color: var(--ink-soft); font-weight: 300; }
.summaryline b { color: var(--accent); font-weight: 500; }

.dietary { padding: 18px 20px; margin-bottom: 18px; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.panel-h .muted { font-size: 12px; }
.diet-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 22px; }
.diet-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.diet-name { font-size: 13.5px; color: var(--ink); }
.diet-need { font-size: 12.5px; color: var(--maybe); font-weight: 300; text-align: right; white-space: nowrap; }

.glist-card { padding: 16px 16px 8px; }
.glist-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 4px 14px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; cursor: pointer; background: transparent; border: 1px solid var(--line); color: var(--ink-soft); font-family: var(--font-sans); font-size: 12.5px; font-weight: 300; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: rgba(212,229,255,.25); color: var(--ink); }
.chip.is-active { background: rgba(212,229,255,.08); border-color: rgba(212,229,255,.35); color: var(--accent); }
.chip-n { font-variant-numeric: tabular-nums; opacity: .65; font-size: 11.5px; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.search { width: 200px; padding: 9px 12px; font-size: 13px; }
.addbtn { font-family: var(--font-sans); font-size: 13px; }

.addrow { display: flex; gap: 10px; align-items: center; padding: 12px; margin: 0 4px 12px; background: rgba(212,229,255,.03); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.addrow .input { flex: 1; min-width: 140px; padding: 9px 12px; font-size: 13px; }
.addrow .couple-check { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 13px; white-space: nowrap; }

.glist-scroll { overflow-x: auto; }
.glist { min-width: 820px; }
.grow { display: grid; grid-template-columns: minmax(180px,1.5fr) 156px 132px minmax(120px,1fr) 132px 40px; align-items: center; gap: 14px; padding: 13px 8px; border-bottom: 1px solid var(--line-soft); }
.grow:last-child { border-bottom: none; }
.ghead { padding: 6px 8px 12px; border-bottom: 1px solid var(--line); }
.ghead > div { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.grow:not(.ghead):hover { background: rgba(212,229,255,.025); border-radius: 8px; }
.grow.is-hidden { display: none; }

.gname { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gname-main { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); }
.plusone { font-size: 10px; color: var(--accent); border: 1px solid rgba(212,229,255,.3); border-radius: 5px; padding: 1px 4px; letter-spacing: .02em; }
.solo-note { font-size: 12px; color: var(--ink-faint); font-weight: 300; }
.diet-partner { font-size: 11px; color: var(--ink-faint); }
.gemail { font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gdate { color: rgba(255,248,232,.3); }

.statusctl { position: relative; }
.statusctl > summary { list-style: none; display: inline-flex; }
.statusctl > summary::-webkit-details-marker { display: none; }
.statusbtn { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-family: var(--font-sans); transition: border-color .2s, background .2s; }
.statusbtn:hover { border-color: rgba(212,229,255,.28); background: rgba(212,229,255,.03); }
.statuscv { margin-left: 2px; color: var(--ink-faint); display: inline-flex; }
.statusmenu { position: absolute; top: calc(100% + 5px); left: 0; z-index: 20; min-width: 150px; padding: 5px; background: #0e1a30; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.5); display: none; flex-direction: column; gap: 2px; }
.statusctl[open] .statusmenu { display: flex; }
.statusopt-form { margin: 0; }
.statusopt { width: 100%; background: transparent; border: none; border-radius: 7px; padding: 8px 10px; cursor: pointer; text-align: left; font-family: var(--font-sans); }
.statusopt:hover { background: rgba(212,229,255,.07); }
.visform { margin: 0; display: inline-flex; }

/* add-guest disclosure */
.addwrap { padding: 0 4px 12px; }
.addwrap > summary { list-style: none; display: inline-flex; cursor: pointer; }
.addwrap > summary::-webkit-details-marker { display: none; }
.addwrap[open] > summary { margin-bottom: 12px; }

.gvis { display: flex; align-items: center; gap: 9px; }
.vis-label { font-size: 12px; }

.gdiet { min-width: 0; }
.diet-tag { display: inline-block; white-space: nowrap; font-size: 12px; color: var(--maybe); background: rgba(232,213,255,.08); border: 1px solid rgba(232,213,255,.16); border-radius: 6px; padding: 3px 8px; }

.copylink { color: var(--ink-soft); }
.copylink.is-done { color: var(--attend); border-color: rgba(212,229,255,.4); }

.iconbtn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 7px; border: none; background: transparent; color: var(--ink-faint); cursor: pointer; transition: background .2s, color .2s; }
.iconbtn.remove:hover { background: rgba(224,169,143,.12); color: var(--decline); }

.empty { text-align: center; padding: 34px; font-size: 13.5px; }

.dash-footer { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; align-items: center; }

/* ═══ Misc pages ═══ */
.centered-msg { text-align: center; padding: 18vh 24px; }
.centered-msg h1 { font-family: var(--font-serif); font-weight: 300; font-size: 40px; color: var(--accent); margin-bottom: 12px; }
.centered-msg p { color: var(--ink-soft); margin-bottom: 18px; }
.centered-msg a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ═══ Responsive ═══ */
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-wrap { padding: 22px 18px 70px; }
  .toolbar-right { width: 100%; }
  .search { flex: 1; width: auto; }
  .cz-title { top: 48px; }
  .cz-eventinfo { bottom: 20px; left: 16px; right: 16px; }
}
@media (max-width: 500px) {
  .rsvp-card { padding: 28px 20px; }
  .login-card { padding: 34px 22px 26px; }
  .login-title { font-size: 26px; }
}
