.live-body,
.admin-body {
  min-height: 100vh;
  background: var(--parchment);
}

.live-body { min-height: 100dvh; }
.live-body button,
.live-body a,
.live-body input,
.live-body textarea,
.live-body select { touch-action: manipulation; }

.live-botanical {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(234,228,204,.92) 0%, rgba(234,228,204,.72) 38%, rgba(234,228,204,.38) 66%, rgba(234,228,204,.58) 100%),
    url("/assets/jeffrey-andrea-beach.jpg") center 72% / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

.live-header,
.admin-topbar {
  min-height: 82px;
  padding: 14px clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(234, 228, 204, .92);
  backdrop-filter: blur(18px);
}

.live-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.live-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.live-brand > span:last-child strong { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.live-brand > span:last-child small { margin-top: 4px; color: rgba(45,39,31,.62); font-size: 12px; }
.live-header > p { margin: 0; color: rgba(45,39,31,.66); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

.live-layout {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(540px, 1.22fr);
  position: relative;
  z-index: 1;
}

.live-story {
  padding: clamp(60px, 8vw, 120px) clamp(28px, 6vw, 90px);
  align-self: center;
}

.live-story h1 { margin-bottom: 28px; font-size: clamp(54px, 6vw, 92px); }
.live-story > p:not(.eyebrow):not(.live-contact) { max-width: 550px; color: rgba(45,39,31,.76); font-size: 18px; }
.live-story dl { max-width: 550px; margin: 40px 0 0; border-top: 1px solid var(--line); }
.live-story dl div { display: grid; grid-template-columns: 116px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.live-story dt { color: rgba(45,39,31,.6); font-size: 14px; }
.live-story dd { margin: 0; font-size: 15px; font-weight: 700; }
.live-contact { max-width: 550px; margin: 30px 0 0; color: rgba(45,39,31,.68); font-size: 14px; }
.live-contact a,
.admin-contact a { color: var(--brown); text-underline-offset: 3px; }

.live-workspace {
  min-height: calc(100vh - 82px);
  padding: clamp(30px, 5vw, 68px);
  display: grid;
  align-content: center;
  background: rgba(255,253,247,.76);
  backdrop-filter: blur(4px);
  border-left: 1px solid var(--line);
}

.live-progress {
  width: min(700px, 100%);
  margin: 0 auto 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  list-style: none;
}

.live-progress li {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(45,39,31,.14);
  color: transparent;
}

.live-progress li.active,
.live-progress li.complete { background: var(--matcha); }
.live-progress li.active { background: var(--berry); }

.live-card {
  width: min(700px, 100%);
  min-height: 540px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  background: var(--paper);
  border: 1px solid rgba(109,83,42,.22);
  box-shadow: var(--shadow);
}

.live-card h2 { margin: 7px 0 18px; font-size: clamp(42px, 5vw, 62px); letter-spacing: -.035em; }
.live-card > p,
.live-copy { color: rgba(45,39,31,.72); font-size: 16px; line-height: 1.65; }
.live-card .step-kicker { margin-bottom: 8px; }
.live-form { margin-top: 30px; }
.live-label { display: block; margin: 20px 0 8px; font-size: 14px; font-weight: 800; }
.live-input,
.live-textarea,
.live-select,
.admin-search input {
  width: 100%;
  border: 1px solid rgba(45,39,31,.28);
  border-radius: 0;
  background: white;
  color: var(--ink);
  font-size: 16px;
}
.live-input,
.live-select { min-height: 52px; padding: 12px 14px; }
.live-textarea { min-height: 92px; padding: 12px 14px; resize: vertical; }
.live-helper { margin: 8px 0 0; color: rgba(45,39,31,.57); font-size: 13px; line-height: 1.5; }
.live-error { margin: 16px 0; padding: 13px 15px; border-left: 3px solid var(--berry); background: var(--berry-soft); color: #6b2630; font-size: 14px; }
.live-notice { margin: 22px 0; padding: 16px; border: 1px solid rgba(107,123,76,.36); background: var(--matcha-soft); font-size: 14px; }
.live-actions { margin-top: 30px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.live-actions .primary-button { min-width: 190px; }
.live-actions .text-button { margin-right: auto; }
.live-card button[aria-busy="true"] { cursor: wait; opacity: .65; }

.invitation-summary {
  margin: 28px 0 22px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(107,123,76,.38);
  background: var(--matcha-soft);
}
.invitation-summary .seat-count { font-family: var(--serif); color: var(--matcha); font-size: 48px; line-height: 1; }
.invitation-summary strong,
.invitation-summary span { display: block; }
.invitation-summary strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.invitation-summary span { color: rgba(45,39,31,.66); font-size: 13px; }

.live-guest-list { display: grid; gap: 8px; }
.live-guest-row { min-height: 48px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.live-guest-row strong { font-size: 15px; }
.live-guest-row span { color: rgba(45,39,31,.58); font-size: 13px; }

.attendance-list,
.details-list { display: grid; gap: 14px; margin-top: 28px; }
.attendance-card,
.detail-card { padding: 18px; border: 1px solid var(--line); background: rgba(234,228,204,.16); }
.attendance-card legend { width: 100%; margin-bottom: 12px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.segmented-live { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.segmented-live label,
.transport-option { position: relative; cursor: pointer; }
.segmented-live input,
.transport-option input { position: absolute; opacity: 0; }
.segmented-live span,
.transport-option span { min-height: 48px; padding: 11px 13px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: white; font-size: 14px; font-weight: 700; text-align: center; }
.segmented-live input:focus-visible + span,
.transport-option input:focus-visible + span { outline: 3px solid rgba(201,76,92,.42); outline-offset: 2px; }
.segmented-live input:checked + span,
.transport-option input:checked + span { border-color: var(--ink); color: white; background: var(--ink); }
.detail-card h3 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.detail-card .child-note { display: inline-block; margin-left: 7px; color: var(--berry); font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.transport-options { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.transport-option span { min-height: 72px; flex-direction: column; gap: 3px; }
.transport-option span small { color: inherit; opacity: .65; font-size: 11px; font-weight: 500; }
.coach-fields { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.review-block { margin-top: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.review-block header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.review-block h3 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.review-block button { border: 0; background: transparent; color: var(--brown); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.review-block ul { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.review-block li { display: flex; justify-content: space-between; gap: 18px; color: rgba(45,39,31,.7); font-size: 14px; }
.review-block li span:last-child { text-align: right; font-weight: 700; }
.final-check { margin: 22px 0 0; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.final-check input { width: 20px; height: 20px; accent-color: var(--matcha); }

.live-success { text-align: center; padding: 20px 0; }
.live-success-mark { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--matcha); font-size: 28px; }
.live-success h2 { margin-inline: auto; }
.live-success-summary { max-width: 480px; margin: 28px auto; padding: 20px; border: 1px solid rgba(107,123,76,.38); background: var(--matcha-soft); }
.live-success-summary strong { display: block; margin-bottom: 5px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.live-success .live-contact { margin-inline: auto; }
.noscript-note { position: fixed; inset: auto 16px 16px; z-index: 30; padding: 14px; background: white; border: 1px solid var(--berry); }

/* Live host dashboard */
.admin-topbar { position: sticky; top: 0; }
.admin-topbar .text-button { color: var(--ink); }
.admin-main { width: min(1500px, 100%); margin: 0 auto; padding: clamp(40px, 6vw, 84px) clamp(18px, 5vw, 70px); }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.admin-heading h1 { margin-bottom: 14px; font-size: clamp(58px, 7vw, 96px); }
.admin-heading > div:first-child > p:last-child { margin: 0; color: rgba(45,39,31,.62); font-size: 14px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.admin-metrics { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-metrics article { min-height: 170px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--paper); }
.admin-metrics article.green { background: var(--matcha-soft); }
.admin-metrics article.pink { background: var(--berry-soft); }
.admin-metrics small { font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.admin-metrics strong { margin: auto 0 2px; font-family: var(--serif); font-size: 54px; font-weight: 500; line-height: 1; }
.admin-metrics span { color: rgba(45,39,31,.62); font-size: 13px; }
.admin-secondary { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-secondary article { min-height: 86px; padding: 16px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); background: rgba(255,253,247,.72); }
.admin-secondary strong,
.admin-secondary small { display: block; }
.admin-secondary strong { font-size: 18px; }
.admin-secondary small { color: rgba(45,39,31,.6); font-size: 12px; }
.admin-secondary .follow-up { background: #fff6f6; }
.admin-table-panel { margin-top: 30px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); background: var(--paper); }
.admin-table-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.admin-table-heading h2 { margin: 0; font-size: 38px; }
.admin-search { width: min(330px, 100%); }
.admin-search input { min-height: 46px; padding: 10px 13px; }
.admin-table-panel table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table-panel th { padding: 10px 12px; color: rgba(45,39,31,.56); border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.admin-table-panel td { padding: 15px 12px; border-bottom: 1px solid rgba(45,39,31,.1); vertical-align: middle; }
.admin-table-panel td:first-child { font-weight: 700; }
.admin-table-panel .status { white-space: nowrap; }
.row-details { margin-top: 6px; font-weight: 400; }
.row-details summary { width: fit-content; color: var(--brown); cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.row-details ul { min-width: 290px; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.row-details li { padding-left: 10px; border-left: 2px solid var(--matcha-soft); }
.row-details li strong,
.row-details li span,
.row-details li small { display: block; }
.row-details li span,
.row-details li small { margin-top: 2px; color: rgba(45,39,31,.62); font-size: 12px; font-weight: 400; }
.admin-contact { margin: 24px 0 0; color: rgba(45,39,31,.62); font-size: 13px; text-align: right; }
.admin-error { padding: 20px; border-left: 4px solid var(--berry); background: var(--berry-soft); }

@media (max-width: 980px) {
  .live-botanical {
    background:
      linear-gradient(180deg, rgba(234,228,204,.84) 0%, rgba(234,228,204,.52) 38%, rgba(234,228,204,.76) 100%),
      url("/assets/jeffrey-andrea-beach.jpg") center 72% / cover no-repeat;
  }
  .live-layout { grid-template-columns: 1fr; }
  .live-story { grid-row: 2; padding-bottom: 45px; }
  .live-story h1 { font-size: 64px; }
  .live-workspace { grid-row: 1; min-height: calc(100dvh - 82px); align-content: start; border-bottom: 1px solid var(--line); border-left: 0; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-secondary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .live-header,
  .admin-topbar { min-height: calc(64px + env(safe-area-inset-top)); padding: calc(8px + env(safe-area-inset-top)) 14px 8px; }
  .live-header { position: sticky; top: 0; }
  .live-header > p { display: none; }
  .live-brand > span:last-child small { display: none; }
  .live-brand { gap: 10px; }
  .live-brand .header-logo { width: 62px; min-height: 42px; }
  .live-brand > span:last-child strong { font-size: 17px; }
  .live-layout { min-height: calc(100dvh - 64px); }
  .live-story { padding: 40px 21px calc(36px + env(safe-area-inset-bottom)); background: rgba(234,228,204,.9); backdrop-filter: blur(8px); }
  .live-story h1 { margin-bottom: 20px; font-size: 44px; }
  .live-story > p:not(.eyebrow):not(.live-contact) { font-size: 16px; }
  .live-story dl { margin-top: 24px; }
  .live-story dl div { grid-template-columns: 92px 1fr; }
  .live-workspace {
    min-height: calc(100dvh - 64px);
    padding: 0 0 calc(20px + env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr);
    background: rgba(255,253,247,.92);
    backdrop-filter: none;
  }
  .live-workspace::before {
    content: "";
    width: 100%;
    height: clamp(112px, 31vw, 148px);
    background:
      linear-gradient(180deg, rgba(45,39,31,.02), rgba(45,39,31,.24)),
      url("/assets/jeffrey-andrea-beach.jpg") center 74% / cover no-repeat;
    border-bottom: 1px solid rgba(109,83,42,.2);
  }
  .live-progress {
    width: auto;
    margin: 14px 18px 10px;
    row-gap: 8px;
  }
  .live-progress::after {
    content: attr(data-progress-label);
    grid-column: 1 / -1;
    color: rgba(45,39,31,.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
  }
  .live-progress li { height: 5px; }
  .live-card {
    min-height: 0;
    padding: 24px 18px 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: none;
  }
  .live-card h2 { margin-bottom: 14px; font-size: 36px; line-height: 1.04; scroll-margin-top: calc(84px + env(safe-area-inset-top)); }
  .live-card > p,
  .live-copy { font-size: 16px; line-height: 1.52; }
  .live-form { margin-top: 22px; }
  .live-label { margin-top: 18px; }
  .live-input,
  .live-select { min-height: 54px; border-radius: 8px; }
  .live-textarea { border-radius: 8px; }
  .live-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 26px -18px 0;
    padding: 11px 18px calc(11px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,253,247,.94), var(--paper) 28%);
    border-top: 1px solid rgba(45,39,31,.12);
  }
  .live-actions .primary-button { grid-column: 2; width: 100%; min-width: 0; min-height: 52px; }
  .live-actions .primary-button:only-child { grid-column: 1 / -1; }
  .live-actions .text-button { min-width: 70px; min-height: 48px; margin: 0; padding-inline: 7px; text-align: left; }
  .invitation-summary { margin: 22px 0 18px; padding: 16px; }
  .invitation-summary .seat-count { font-size: 42px; }
  .live-guest-row { padding-inline: 8px; }
  .attendance-list,
  .details-list { gap: 10px; margin-top: 22px; }
  .attendance-card,
  .detail-card { padding: 15px; }
  .attendance-card legend { margin-bottom: 10px; }
  .segmented-live span { min-height: 54px; padding: 9px; font-size: 13px; line-height: 1.25; }
  .transport-options { grid-template-columns: 1fr; }
  .transport-option span { min-height: 56px; }
  .coach-fields { grid-template-columns: 1fr; }
  .review-block li { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: start; gap: 12px; }
  .review-block li span:last-child { text-align: right; overflow-wrap: anywhere; }
  .final-check { min-height: 48px; align-items: center; font-size: 15px; }
  .final-check input { width: 24px; height: 24px; }
  .live-success { padding-top: 8px; }
  .live-success-summary { margin-block: 22px; }
  .admin-topbar .text-button { font-size: 12px; }
  .admin-main { padding: 35px 14px; }
  .admin-heading h1 { font-size: 54px; }
  .admin-actions { width: 100%; flex-direction: column; }
  .admin-metrics { gap: 8px; }
  .admin-metrics article { min-height: 145px; padding: 16px; }
  .admin-metrics strong { font-size: 43px; }
  .admin-secondary { grid-template-columns: 1fr; gap: 8px; }
  .admin-table-heading { align-items: flex-start; flex-direction: column; }
  .admin-search { width: 100%; }
  .admin-table-panel { padding: 16px; }
  .admin-table-panel .table-wrap { overflow-x: auto; }
  .admin-table-panel table { min-width: 850px; }
  .admin-contact { text-align: left; }
}

@media (max-width: 380px) {
  .live-card { padding-inline: 14px; }
  .live-card h2 { font-size: 34px; }
  .live-actions { margin-inline: -14px; padding-inline: 14px; }
  .segmented-live { gap: 5px; }
  .segmented-live span { padding-inline: 6px; }
}
