/* ── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  --paper:         #f4ecd8;
  --ink:           #1a1a1a;
  --ink-soft:      #666;
  --ink-muted:     #999;
  --accent-yellow: #fcde5a;
  --accent-green:  #c0dd97;
  --accent-amber:  #fac775;
  --accent-pink:   #f7c1c1;
  --accent-orange: #d85a30;
  --white:         #ffffff;

  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif: "Times New Roman", Georgia, serif;

  --border: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);
  --shadow-md: 3px 3px 0 var(--ink);

  --page-pad: 16px;
  --card-pad: 14px;
}

/* ── Reset & base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--ink);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select {
  font-family: var(--font-mono);
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
  background: var(--white);
  border: var(--border);
  padding: 10px 12px;
  width: 100%;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, textarea:focus { border-color: var(--ink); background: #fffdf5; }
textarea { resize: vertical; }

/* ── Type helpers ───────────────────────────────────────────────────────────── */
.serif        { font-family: var(--font-serif); font-weight: 400; }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.mono         { font-family: var(--font-mono); }
.optional     { color: var(--ink-muted); font-size: 11px; }

/* ── Browser chrome titlebar ────────────────────────────────────────────────── */
.browser-chrome {
  background: var(--ink);
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 200;
  flex-shrink: 0;
}
.chrome-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.chrome-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.chrome-spacer {
  flex: 1;
}
.chrome-me-btn {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 4px 6px;
  min-height: 28px;
  display: flex;
  align-items: center;
}
.chrome-me-btn:active {
  color: rgba(255,255,255,0.9);
}

/* ── Page wrap ──────────────────────────────────────────────────────────────── */
.page-wrap {
  flex: 1;
  padding: 0 var(--page-pad) calc(var(--page-pad) + env(safe-area-inset-bottom));
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  padding: 16px var(--page-pad) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: auto;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  font-weight: 500;
  text-transform: uppercase;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 11px 18px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
  transition: transform 0.07s ease, box-shadow 0.07s ease;
  -webkit-user-select: none;
  user-select: none;
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}
.btn-primary    { background: var(--accent-yellow); }
.btn-secondary  { background: var(--white); }
.btn-destructive { background: var(--accent-pink); }
.btn-full { width: 100%; display: flex; }
.btn-sm { font-size: 11px; padding: 8px 12px; min-height: 36px; box-shadow: var(--shadow-sm); }
.btn-sm:active { transform: translate(2px, 2px); }

.btn-row {
  display: flex;
  gap: 10px;
}
.btn-row .btn { flex: 1; }

.link-btn {
  background: none;
  border: none;
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ── Section headers ────────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 12px;
}
.section-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-soft);
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.2;
}

/* ── Page header ────────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
  margin-bottom: 16px;
}
.back-link {
  font-size: 12px;
  color: var(--ink-soft);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ── Alert ──────────────────────────────────────────────────────────────────── */
.alert {
  padding: 10px 12px;
  border: var(--border);
  margin-bottom: 14px;
  font-size: 13px;
}
.alert-error { background: var(--accent-pink); }

/* ── Landing page ───────────────────────────────────────────────────────────── */
.landing-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 80px);
  padding: var(--page-pad);
}
.landing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.landing-title {
  font-size: 36px;
  line-height: 1.1;
}
.landing-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: -8px;
}
.landing-divider {
  width: 100%;
  height: 1px;
  background: var(--ink);
  opacity: 0.15;
}
.landing-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
#landing-signin,
#landing-rsvps {
  width: 100%;
  text-align: left;
}

/* ── Event page ─────────────────────────────────────────────────────────────── */
.event-page {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Hero */
.event-hero {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-bottom: var(--border);
  margin: 0 calc(-1 * var(--page-pad));
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.hero-tag-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-yellow);
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
}
.hero-title-marker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px 12px;
}
.event-title {
  font-size: 26px;
  line-height: 1.15;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Info block */
.info-block {
  margin: 16px 0;
}
.info-row {
  display: flex;
  gap: 14px;
  padding: 10px 0;
}
.info-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  width: 44px;
  flex-shrink: 0;
  padding-top: 2px;
}
.info-main {
  font-size: 14px;
  font-weight: 500;
}
.info-sub {
  font-size: 12px;
  color: var(--ink-soft);
}
.info-divider {
  height: 1px;
  border-top: 1px dashed rgba(0,0,0,0.2);
  margin: 0 0;
}

/* Description */
.event-description {
  margin: 4px 0 8px;
  padding: 0 2px;
}
.open-quote {
  font-size: 40px;
  line-height: 0;
  vertical-align: -14px;
  margin-right: 2px;
  color: var(--ink-soft);
}
.event-description p {
  display: inline;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ── Error pages ─────────────────────────────────────────────────────────────── */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 80px);
  padding: var(--page-pad);
}
.error-card {
  text-align: center;
  max-width: 300px;
  width: 100%;
}
.error-code {
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--ink-muted);
}
.error-title {
  font-size: 22px;
  margin-bottom: 6px;
}
.error-sub {
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.error-body {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ── Profile page ───────────────────────────────────────────────────────────── */
.profile-page { padding-top: 8px; }
.profile-card, .not-authed-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-card[hidden], .not-authed-card[hidden] { display: none; }

/* ── Profile pic tile (shared) ──────────────────────────────────────────────── */
.profile-pic-tile {
  width: 96px;
  height: 96px;
  border: 2px dashed var(--ink);
  background: var(--accent-yellow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-pic-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pic-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.camera-icon { font-size: 24px; }
.input-hint {
  font-size: 11px;
  color: var(--ink-muted);
}

/* ── Admin pages ────────────────────────────────────────────────────────────── */
.admin-page {
  padding-top: 12px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 80px);
  padding: var(--page-pad);
}
.admin-login-card {
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-login-card h1 { font-size: 28px; }

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.admin-greeting h1 { font-size: 28px; line-height: 1.1; }
.admin-stats { font-size: 12px; color: var(--ink-muted); margin-top: 4px; }

.btn-new-event { margin-bottom: 16px; }

/* Tabs */
.tabs {
  display: flex;
  border-bottom: var(--border);
  margin-bottom: 14px;
}
.tab {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border: none;
  background: none;
  padding: 8px 14px;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Event cards */
.event-card-link { display: block; margin-bottom: 12px; }
.event-card {
  display: flex;
  gap: 12px;
  padding: 10px;
}
.event-card.past { opacity: 0.7; }
.event-card-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: var(--border);
}
.event-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--accent-yellow);
}
.thumb-date {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 9px;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-card-body { flex: 1; min-width: 0; }
.event-card-title {
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-card-sub {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--ink);
}
.pill-green  { background: var(--accent-green); }
.pill-amber  { background: var(--accent-amber); }
.pill-pink   { background: var(--accent-pink); }

.empty-state {
  text-align: center;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.empty-state .serif-italic { font-size: 16px; color: var(--ink-soft); }

/* ── Create/Edit form ───────────────────────────────────────────────────────── */
.event-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}
.field-hint { font-size: 11px; color: var(--ink-muted); }
.field-error { font-size: 11px; color: #c0392b; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.serif-input {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-size: 20px !important;
  padding: 10px 12px;
}
.slug-row {
  display: flex;
  align-items: stretch;
}
.slug-prefix {
  background: var(--ink);
  color: var(--white);
  padding: 10px 10px;
  font-size: 14px;
  border: var(--border);
  border-right: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.slug-row input {
  border-left: none;
}
.upload-tile {
  width: 100%;
  height: 160px;
  border: 2px dashed var(--ink);
  background: var(--accent-yellow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.upload-icon { font-size: 28px; }
.upload-progress {
  height: 4px;
  background: rgba(0,0,0,0.1);
  margin-top: 4px;
}
.progress-bar {
  height: 100%;
  background: var(--accent-orange);
  width: 0%;
  transition: width 0.2s;
}
.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toggle-card-text { flex: 1; }
.toggle-title { font-size: 13px; font-weight: 500; }
.toggle-sub { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  border: var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--white);
  border: 1px solid var(--ink);
  top: 2px;
  left: 2px;
  transition: transform 0.15s;
}
.toggle-switch input:checked + .toggle-track { background: var(--accent-yellow); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(18px); }
.btn-publish { margin-top: 8px; }

/* ── Manage event ───────────────────────────────────────────────────────────── */
.manage-hero {
  height: 70px;
  overflow: hidden;
  position: relative;
  margin: 0 calc(-1 * var(--page-pad));
  border-bottom: var(--border);
}
.manage-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.manage-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.manage-hero-title {
  color: var(--white);
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.manage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin-bottom: 14px;
}
.manage-date { font-size: 11px; color: var(--ink-muted); }

.share-block {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--accent-yellow);
}
.share-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-url {
  font-size: 12px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
}
.share-actions { display: flex; gap: 8px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.stat-card {
  text-align: center;
  padding: 10px 6px;
  box-shadow: var(--shadow-sm);
}
.stat-card.green  { background: var(--accent-green); }
.stat-card.amber  { background: var(--accent-amber); }
.stat-card.pink   { background: var(--accent-pink); }
.stat-num {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1;
}
.stat-label { font-size: 9px; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 3px; }

.roster-section { margin-bottom: 24px; }
.roster-group { margin-bottom: 16px; }
.roster-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 8px;
}
.roster-group-header span:first-child { font-size: 10px; letter-spacing: 0.1em; color: var(--ink-muted); }
.roster-group-header span:last-child { font-family: var(--font-serif); font-style: italic; font-size: 14px; }
.roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 4px;
  background: var(--white);
  cursor: pointer;
  min-height: 44px;
}
.roster-row:active { background: #fffdf5; }
.roster-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-yellow);
}
.roster-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { font-family: var(--font-serif); font-size: 14px; }
.roster-info { flex: 1; display: flex; flex-direction: column; }
.roster-name { font-size: 13px; }
.roster-phone { font-size: 11px; color: var(--ink-muted); }

.manage-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-bottom: env(safe-area-inset-bottom);
}
.manage-actions .btn { flex: 1; }

/* ── Modal system ───────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.modal-backdrop[hidden] { display: none; }
.modal-sheet {
  background: var(--paper);
  border-top: var(--border);
  border-left: var(--border);
  border-right: var(--border);
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px var(--page-pad) calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: sheet-up 0.25s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 24px;
  line-height: 1.2;
}
.modal-sub { font-size: 13px; color: var(--ink-soft); }
.pretitle { font-size: 11px; color: var(--ink-muted); letter-spacing: 0.06em; }
.modal-error {
  font-size: 12px;
  color: #c0392b;
  padding: 8px 10px;
  background: var(--accent-pink);
  border: 1px solid var(--ink);
}
.modal-error[hidden] { display: none; }

/* Intent pill */
.intent-pill {
  background: var(--accent-green);
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  display: inline-block;
  align-self: flex-start;
}
.intent-pill:empty { display: none; }

/* Phone input */
.phone-input-row {
  display: flex;
  align-items: stretch;
}
.phone-prefix {
  background: var(--accent-yellow);
  border: var(--border);
  border-right: none;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.phone-input-row input {
  border-left: none;
  flex: 1;
}

/* OTP grid */
.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.otp-cell {
  aspect-ratio: 1;
  text-align: center;
  font-size: 22px;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 0;
  border: var(--border);
  background: var(--white);
  caret-color: transparent;
  transition: background 0.1s, border-width 0.1s;
}
.otp-cell:focus {
  background: var(--accent-yellow);
  border-width: 3px;
  outline: none;
}
.otp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
#resend-timer { color: var(--ink-muted); }

/* Celebration */
.stamp-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.stamp {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
  padding: 14px 20px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
  display: inline-block;
}
.stamp.green-stamp {
  background: var(--accent-green);
  color: var(--ink);
}
.celebration-sub {
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}
.cal-card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cal-row {
  display: block;
  padding: 13px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  text-align: center;
}
.cal-row:active { background: #fffdf5; }
.cal-divider { height: 1px; background: var(--ink); opacity: 0.15; }
#btn-see-guests { width: 100%; justify-content: center; }

/* Confetti */
.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .confetti-piece {
    animation: confetti-fall 0.6s ease-out backwards;
  }
}
@keyframes confetti-fall {
  from { opacity: 1; transform: translateY(-60px) rotate(0deg); }
  to   { opacity: 1; transform: translateY(0) rotate(var(--rot)); }
}

/* ── Tab panel ──────────────────────────────────────────────────────────────── */
.tab-panel[hidden] { display: none; }
