:root {
  --cream: #f7efe2;
  --paper: #fffaf1;
  --sage: #5f735f;
  --sage-dark: #435948;
  --sage-soft: #dfe8d7;
  --terracotta: #c9754f;
  --terracotta-dark: #9f5538;
  --ink: #2c2a24;
  --muted: #756f63;
  --line: rgba(77, 70, 57, .16);
  --shadow: 0 18px 48px rgba(55, 41, 24, .16);
  --radius: 18px;
  --base-font-size: 16px;
  --nav-height: 88px;
}

* { box-sizing: border-box; }
html { min-height: 100%; font-size: var(--base-font-size); scroll-behavior: smooth; }
html.font-small { --base-font-size: 14.5px; }
html.font-large { --base-font-size: 18.5px; }
body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 18%, rgba(95,115,95,.12) 0 7rem, transparent 7.1rem),
    radial-gradient(circle at 88% 56%, rgba(201,117,79,.12) 0 8rem, transparent 8.1rem),
    linear-gradient(180deg, #fff8eb 0%, var(--cream) 42%, #f2eadc 100%);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

body.font-small { --base-font-size: 14.5px; }
body.font-large { --base-font-size: 18.5px; }

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { color: var(--muted); font-size: .9rem; }
.overline { margin: 0; color: var(--sage-dark); font-size: .83rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }

.font-tools {
  position: fixed;
  z-index: 20;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255, 250, 241, .86);
  box-shadow: 0 10px 28px rgba(34, 30, 24, .16);
  backdrop-filter: blur(14px);
  font-size: .78rem;
}

.font-tools button {
  min-width: 30px;
  width: auto;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sage-dark);
  background: white;
  font-weight: 800;
}

.font-tools button.active {
  color: white;
  background: var(--sage);
}

.font-tools button:nth-child(4) { font-size: 1rem; }

.template-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor-net {
  position: absolute;
  width: 190px;
  height: 120px;
  opacity: .26;
  background:
    repeating-linear-gradient(28deg, transparent 0 14px, rgba(67,89,72,.34) 15px 16px),
    repeating-linear-gradient(152deg, transparent 0 14px, rgba(67,89,72,.28) 15px 16px);
  border-radius: 52% 48% 44% 56%;
  filter: blur(.1px);
}

.decor-net-top { top: 7.5rem; left: -58px; transform: rotate(-11deg); }
.decor-net-bottom { right: -54px; bottom: calc(var(--nav-height) + 3rem); transform: rotate(14deg); }

.decor-board {
  position: absolute;
  width: 40px;
  height: 148px;
  opacity: .48;
  border: 2px solid rgba(67,89,72,.34);
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(67,89,72,.34) 48% 52%, transparent 53%),
    radial-gradient(circle at 50% 28%, rgba(201,117,79,.34) 0 8px, transparent 9px),
    linear-gradient(180deg, rgba(164,206,205,.72), rgba(255,250,241,.78) 55%, rgba(201,117,79,.28));
  box-shadow: 0 12px 26px rgba(55, 41, 24, .12);
}

.decor-board-left { left: 14px; top: 17rem; transform: rotate(8deg); }
.decor-board-right { right: 12px; bottom: calc(var(--nav-height) + 8rem); transform: rotate(-13deg); }

.decor-planks {
  position: absolute;
  width: 170px;
  height: 70px;
  opacity: .34;
  border-radius: 20px;
  background:
    repeating-linear-gradient(90deg, rgba(154,111,72,.32) 0 14px, rgba(255,250,241,.22) 14px 17px),
    linear-gradient(180deg, rgba(105,72,44,.18), rgba(105,72,44,.08));
  transform: rotate(-7deg);
}

.decor-planks-top { right: -46px; top: 11.5rem; }
.decor-planks-bottom { left: -52px; bottom: calc(var(--nav-height) + 6rem); transform: rotate(9deg); }

.invite-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + 30px + env(safe-area-inset-bottom));
}

.app-page:not(.active) {
  display: none !important;
}

.app-page.active {
  display: block;
}

.rsvp-panel.app-page.active {
  display: grid;
}

.hero {
  min-height: calc(100svh - 86px);
  display: grid;
  place-items: center;
  padding: 74px 16px 38px;
  position: relative;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 25, 18, .04), rgba(35, 28, 20, .24)),
    url("/assets/hero-garden.png") center / cover no-repeat;
}

.hero::after,
.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 130px;
  opacity: .46;
  background:
    radial-gradient(ellipse at 40% 25%, rgba(95,115,95,.45) 0 10%, transparent 11%),
    radial-gradient(ellipse at 68% 42%, rgba(95,115,95,.36) 0 10%, transparent 11%),
    radial-gradient(ellipse at 35% 62%, rgba(201,117,79,.28) 0 8%, transparent 9%);
  border-left: 2px solid rgba(95,115,95,.28);
  border-radius: 60% 0 0 60%;
}

.hero::after { right: 10px; bottom: 8px; transform: rotate(-18deg); }

.invite-card {
  position: relative;
  width: min(100%, 520px);
  margin: auto;
  padding: 30px 22px 26px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,250,241,.96), rgba(247,239,226,.94)),
    radial-gradient(circle at bottom left, rgba(95,115,95,.12), transparent 18rem);
  box-shadow: var(--shadow);
}

.invite-card h1,
.section-title h2,
.script-label,
.admin-login h1,
.admin-header h1 {
  margin: 4px 0 0;
  color: #3a3830;
  font-family: "Allura", "Segoe Print", "Bradley Hand", "Snell Roundhand", cursive;
  font-weight: 500;
  letter-spacing: 0;
}

.invite-card h1 { font-size: clamp(3.8rem, 20vw, 7rem); line-height: .82; }
.subtitle { margin: 2px 0 14px; color: #4a4740; font-family: "Allura", "Segoe Print", cursive; font-size: clamp(2.7rem, 13vw, 4.8rem); line-height: .9; }
.font-small .invite-card h1 { font-size: clamp(3.35rem, 17vw, 6.2rem); }
.font-large .invite-card h1 { font-size: clamp(4.35rem, 23vw, 7.8rem); }
.font-small .subtitle { font-size: clamp(2.3rem, 11vw, 4.1rem); }
.font-large .subtitle { font-size: clamp(3.05rem, 15vw, 5.5rem); }
.font-small .section-title h2 { font-size: clamp(2.2rem, 10vw, 3.6rem); }
.font-large .section-title h2 { font-size: clamp(3rem, 14vw, 4.7rem); }
.intro { max-width: 34rem; margin: 0 auto 16px; color: #4b473f; }
.personal { min-height: 1.4em; margin: 0 0 16px; color: var(--terracotta-dark); font-weight: 800; }

.countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--sage);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  font-weight: 800;
}

.home-cta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.home-menu {
  width: min(1120px, calc(100% - 28px));
  margin: -18px auto 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 2;
}

.home-tile {
  min-height: 116px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 18px;
  padding: 8px;
  color: var(--paper);
  background: var(--sage-dark);
  box-shadow: 0 14px 34px rgba(55, 41, 24, .18);
  overflow: hidden;
  position: relative;
  display: grid;
  align-content: end;
  text-align: left;
}

.home-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}

.home-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(43, 53, 42, .78) 100%);
}

.home-tile span {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.section {
  position: relative;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 24px;
  padding-top: 34px;
}

.info-grid-section::before,
.info-grid-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.info-grid-section::before {
  left: -34px;
  top: 90px;
  width: 140px;
  height: 92px;
  opacity: .22;
  background:
    repeating-linear-gradient(30deg, transparent 0 13px, rgba(67,89,72,.34) 14px 15px),
    repeating-linear-gradient(150deg, transparent 0 13px, rgba(67,89,72,.28) 14px 15px);
  border-radius: 48%;
  transform: rotate(-8deg);
}

.info-grid-section::after {
  right: -20px;
  top: 145px;
  width: 34px;
  height: 124px;
  opacity: .42;
  border: 2px solid rgba(67,89,72,.34);
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(67,89,72,.34) 48% 52%, transparent 53%),
    linear-gradient(180deg, rgba(164,206,205,.72), rgba(255,250,241,.78) 55%, rgba(201,117,79,.28));
  transform: rotate(-12deg);
}

.section-title,
.info-grid,
.extras,
.gallery-strip {
  position: relative;
  z-index: 1;
}

.section-title {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  text-align: center;
}

.section-title h2 { font-size: clamp(2.6rem, 12vw, 4.1rem); }
.section-title span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67,89,72,.34), transparent);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,250,241,.86);
  box-shadow: 0 10px 24px rgba(76, 55, 32, .08);
}

.timeline-card button {
  all: unset;
  cursor: pointer;
  display: contents;
}

.timeline-art {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  grid-row: span 2;
  border: 1px solid rgba(67,89,72,.18);
  box-shadow: 0 8px 18px rgba(60,40,20,.1);
}

.time-badge {
  display: grid;
  place-items: center;
  width: max-content;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--sage-dark);
  background: radial-gradient(circle, #fff 0%, #efe4d4 100%);
  border: 1px solid rgba(67,89,72,.18);
  font-weight: 900;
}

.timeline-card h3 { margin: 4px 0; }
.timeline-card p { margin: 0; color: var(--muted); }

.rsvp-panel {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 26px;
  display: grid;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 24px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(67,89,72,.96), rgba(95,115,95,.92)),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.14), transparent 18rem);
  box-shadow: var(--shadow);
}

.rsvp-panel.app-page {
  padding-top: 26px;
}

.script-label { color: white; font-size: 2.45rem; }
.rsvp-panel .muted { color: rgba(255,250,241,.78); }

label {
  display: grid;
  gap: 7px;
  color: inherit;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(67, 89, 72, .18);
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(201,117,79,.25); }

.rsvp-form,
.invite-form {
  display: grid;
  gap: 12px;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice,
.filters button {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 12px;
  color: var(--paper);
  background: rgba(255,255,255,.11);
  font-weight: 900;
}

.choice.active,
.filters button.active {
  color: var(--ink);
  background: var(--paper);
}

.people-stepper {
  display: grid;
  grid-template-columns: 1fr 44px 54px 44px;
  align-items: center;
  gap: 8px;
}

.people-stepper button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.12);
  font-size: 1.25rem;
}

.people-stepper strong {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 10px;
  color: var(--ink);
  background: white;
}

.primary,
.secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 0;
  text-decoration: none;
  font-weight: 900;
}

.primary { color: white; background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark)); }
.secondary { color: var(--sage-dark); background: var(--paper); border: 1px solid var(--line); }
.small-button { min-height: 40px; padding: 0 14px; }
.form-message { min-height: 1.4em; margin: 0; font-weight: 800; }
.form-message.ok { color: #fff3d7; }
.form-message.error { color: #ffd9d2; }

.info-grid {
  display: grid;
  gap: 16px;
}

.info-card,
.admin-card,
.admin-login {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,250,241,.94);
  box-shadow: 0 12px 28px rgba(76, 55, 32, .08);
}

.info-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.info-card h3,
.admin-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.48rem;
  line-height: 1.08;
}
.info-card a { color: var(--terracotta-dark); font-weight: 900; }

.info-art {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center center;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid rgba(67,89,72,.12);
}

.info-card p {
  margin: 0;
}

.garden-map {
  min-height: 220px;
  position: relative;
  border: 1px solid rgba(67,89,72,.18);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,250,241,.02), rgba(255,250,241,.1)),
    url("/assets/app-crops/info-map.jpg") center 55% / cover no-repeat;
}

.map-pin {
  position: absolute;
  min-width: 74px;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid rgba(67,89,72,.2);
  border-radius: 999px;
  background: rgba(255,250,241,.92);
  color: var(--sage-dark);
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(60,40,20,.1);
}

.stack-list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(67,89,72,.08);
  border-radius: 14px;
  background: rgba(95,115,95,.06);
}

.list-thumb {
  width: 78px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center center;
}

.list-item h4 { margin: 0 0 3px; }
.list-item p { margin: 0; color: var(--muted); font-size: .88rem; }

.list-more {
  display: grid;
  gap: 10px;
}

.list-more summary {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(67,89,72,.12);
  border-radius: 999px;
  color: var(--sage-dark);
  background: rgba(255,250,241,.74);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.list-more summary::-webkit-details-marker { display: none; }
.list-more[open] summary { margin-bottom: 10px; }

.extras {
  display: grid;
  gap: 12px;
}

.extra-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,250,241,.78);
  border: 1px solid var(--line);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 100%;
  margin: 18px auto 10px;
  overflow: hidden;
  border-radius: 18px;
}

.gallery-strip img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center center;
}

.timeline-card:nth-child(1) .timeline-art { object-position: 48% 52%; }
.timeline-card:nth-child(2) .timeline-art { object-position: 42% 54%; }
.timeline-card:nth-child(3) .timeline-art { object-position: 50% 42%; }
.timeline-card:nth-child(4) .timeline-art { object-position: 51% 44%; }
.timeline-card:nth-child(5) .timeline-art { object-position: 50% 48%; }
.stack-list .list-item:nth-child(1) .list-thumb { object-position: 50% 48%; }
.stack-list .list-item:nth-child(2) .list-thumb { object-position: 54% 50%; }
.stack-list .list-item:nth-child(3) .list-thumb { object-position: 48% 50%; }
.gallery-strip img:nth-child(1) { object-position: 50% 58%; }
.gallery-strip img:nth-child(2) { object-position: 44% 50%; }
.gallery-strip img:nth-child(3) { object-position: 58% 45%; }
.gallery-strip img:nth-child(4) { object-position: 50% 48%; }
.gallery-strip img:nth-child(5) { object-position: 50% 42%; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(67,89,72,.12);
  border-radius: 24px;
  background: rgba(255,250,241,.97);
  box-shadow: 0 14px 36px rgba(55, 41, 24, .16);
  backdrop-filter: blur(18px);
  transform: translateZ(0);
}

.bottom-nav button {
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 17px;
  color: rgba(67,89,72,.74);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .7rem;
  font-weight: 900;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.bottom-nav .nav-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--sage-dark);
}

.bottom-nav svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav button.active {
  color: var(--terracotta-dark);
  background: rgba(201,117,79,.12);
  box-shadow: inset 0 0 0 1px rgba(201,117,79,.16);
}

.bottom-nav button.active .nav-icon {
  color: var(--terracotta-dark);
}

.detail-dialog {
  width: min(92vw, 420px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.detail-dialog::backdrop { background: rgba(35,28,20,.35); backdrop-filter: blur(4px); }
.detail-dialog h3 { margin: 8px 0; }
.icon-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--sage-dark);
  background: rgba(95,115,95,.1);
}

.fade-in { animation: fadeIn .55s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.admin-body {
  background:
    linear-gradient(180deg, rgba(255,248,235,.96), rgba(242,234,220,.98)),
    url("/assets/hero-garden.png") center / cover fixed;
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.admin-login {
  width: min(100%, 430px);
  margin: 72px auto 0;
}

.admin-login h1,
.admin-header h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 800;
  line-height: 1;
}

.admin-body .form-message.ok {
  color: var(--sage-dark);
}

.admin-body .form-message.error {
  color: var(--terracotta-dark);
}

.admin-body .form-message a {
  color: var(--terracotta-dark);
  font-weight: 900;
}

.admin-header,
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.stat-card {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  box-shadow: 0 12px 24px rgba(67,89,72,.14);
}

.stat-card strong { font-size: 1.75rem; }
.stat-card span { color: rgba(255,255,255,.78); font-size: .78rem; font-weight: 900; text-transform: uppercase; }

.chart-grid {
  display: grid;
  gap: 18px;
}

.chart-grid canvas {
  width: 100% !important;
  max-height: 280px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.filters button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  color: var(--sage-dark);
  border-color: var(--line);
  background: rgba(95,115,95,.08);
}

.filters button.active { color: white; background: var(--sage); }
.search { margin: 4px 0 12px; background: white; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 980px; background: white; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid rgba(67,89,72,.12); vertical-align: top; font-size: .88rem; }
th { color: var(--sage-dark); background: #f5efe3; font-size: .78rem; text-transform: uppercase; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-weight: 900; font-size: .78rem; }
.status-yes { color: #315c35; background: #dff0d9; }
.status-no { color: #8a3f32; background: #f7d5ca; }
.status-seen { color: #8a5a20; background: #fae4c1; }
.status-unseen { color: #6d6a63; background: #ece7dd; }

.admin-whatsapp {
  min-height: 38px;
  width: max-content;
  padding: 0 12px;
  color: white;
  background: #2f6f45;
  border-color: rgba(47,111,69,.24);
}

@media (min-width: 760px) {
  .hero { min-height: 86vh; padding-top: 80px; }
  .rsvp-panel { grid-template-columns: .8fr 1.2fr; padding: 30px; }
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .timeline-card { grid-template-columns: 1fr; text-align: center; }
  .timeline-art { margin: 0 auto; grid-row: auto; }
  .time-badge { width: 82px; margin: 0 auto; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .chart-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-nav {
    left: 50%;
    right: auto;
    width: min(520px, calc(100% - 24px));
    transform: translateX(-50%) translateZ(0);
  }
}

@media (min-width: 1100px) {
  .info-grid { grid-template-columns: 1.05fr 1.25fr 1fr 1fr; }
  .invite-card { padding: 38px 48px 34px; }
}

@media (max-width: 430px) {
  :root { --nav-height: 96px; }
  .font-tools span { display: none; }
  .invite-card { padding: 28px 18px 24px; }
  .people-stepper { grid-template-columns: 1fr 40px 48px 40px; }
  .gallery-strip img { height: 92px; }
  .bottom-nav { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); border-radius: 21px; }
  .bottom-nav button { min-height: 58px; font-size: .65rem; }
  .bottom-nav .nav-icon { width: 30px; height: 30px; }
  .bottom-nav svg { width: 25px; height: 25px; }
  .info-grid-section { width: min(100% - 18px, 1120px); }
  .info-grid { gap: 10px; }
  .info-card { padding: 14px; border-radius: 16px; }
  .info-art { height: 132px; }
  .garden-map { min-height: 190px; }
  .list-item { grid-template-columns: 70px 1fr; padding: 8px; }
  .list-thumb { width: 70px; height: 66px; }
  .home-menu { width: min(100% - 20px, 1120px); gap: 7px; }
  .home-tile { min-height: 96px; border-radius: 15px; }
  .decor-net { width: 150px; height: 98px; }
  .decor-board { width: 34px; height: 126px; }
  .decor-board-left { left: 4px; top: 16rem; }
  .decor-board-right { right: 2px; bottom: calc(var(--nav-height) + 5rem); }
}

@media (max-width: 700px) {
  .admin-shell {
    width: min(100% - 20px, 520px);
    padding: 18px 0 36px;
  }

  .admin-login {
    margin-top: 34px;
    padding: 20px;
  }

  .admin-header {
    align-items: flex-start;
  }

  .admin-header h1 {
    font-size: 2rem;
  }

  .admin-header .secondary {
    min-height: 42px;
    padding: 0 12px;
  }

  .admin-card,
  .admin-login {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(76, 55, 32, .08);
  }

  .admin-card {
    padding: 14px;
  }

  .admin-card-head {
    align-items: flex-start;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-card {
    min-height: 78px;
    padding: 12px;
    border-radius: 14px;
  }

  .stat-card strong {
    font-size: 1.35rem;
  }

  .chart-grid {
    gap: 10px;
  }

  .chart-grid canvas {
    height: 160px !important;
    max-height: 160px;
  }

  .invite-form {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(67,89,72,.12);
    border-radius: 14px;
    background: rgba(95,115,95,.05);
  }

  .filters button {
    flex: 1 1 calc(50% - 6px);
    min-height: 40px;
    padding: 0 10px;
    font-size: .82rem;
  }

  .search {
    margin-top: 0;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  table {
    min-width: 0;
    background: transparent;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 20px rgba(76, 55, 32, .08);
  }

  td {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 0;
    border: 0;
    font-size: .9rem;
    overflow-wrap: anywhere;
  }

  td::before {
    content: attr(data-label);
    color: var(--sage-dark);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  td:first-child {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
  }

  td:first-child::before {
    display: none;
  }

  .admin-whatsapp {
    width: 100%;
  }
}
