:root {
  --ink: #2f302c;
  --muted: #777267;
  --paper: #f3efe8;
  --surface: #fffdf9;
  --sage: #a8b7a1;
  --sage-deep: #5f7d65;
  --forest: #263f30;
  --forest-soft: #385844;
  --rose: #df8f85;
  --blush: #f8e9e3;
  --butter: #ead7ae;
  --lavender: #ded7cb;
  --sky: #dce8e1;
  --clay: #bd8b55;
  --gold: #c69655;
  --border: #e5ded3;
  --shadow: 0 10px 28px rgba(62, 50, 38, 0.08);
  --shadow-soft: 0 4px 12px rgba(62, 50, 38, 0.06);
  --max-width: 1420px;
  --radius: 14px;
}

html {
  background: #e8e2d9;
  scroll-padding-top: 92px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.8), transparent 35%),
    var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

body::selection {
  color: #fff;
  background: var(--forest-soft);
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

h3 {
  font-size: 1rem;
}

.eyebrow,
.tile-label {
  color: var(--forest-soft);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

.site-header {
  top: 10px;
  z-index: 50;
  width: calc(100% - 28px);
  max-width: 1600px;
  min-height: 62px;
  margin: 10px auto 0;
  padding: 10px 22px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(229, 222, 211, 0.88);
  border-radius: 13px 13px 0 0;
  box-shadow: 0 6px 20px rgba(62, 50, 38, 0.07);
}

.brand {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(198, 150, 85, 0.56);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
}

.main-nav {
  gap: 3px;
}

.main-nav a {
  position: relative;
  padding: 9px 10px;
  color: #504c46;
  border-radius: 0;
  font-size: 0.84rem;
  font-weight: 600;
}

.main-nav a::after {
  position: absolute;
  right: 10px;
  bottom: 2px;
  left: 10px;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 150ms ease, transform 150ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--forest);
  background: transparent;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  gap: 8px;
}

.is-guest-locked .site-header .main-nav,
.is-guest-locked .site-header .login-status,
.is-guest-locked .site-header .storage-status {
  display: none;
}

.login-gate {
  display: grid;
  width: calc(100% - 28px);
  max-width: 1600px;
  min-height: calc(100svh - 92px);
  margin: 0 auto 14px;
  padding: 34px;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 240, 229, 0.9), rgba(248, 240, 229, 0.54)),
    url("assets/hero-wedding.png") center / cover;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.login-gate-card {
  width: min(460px, 100%);
  padding: 34px;
  text-align: center;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(57, 45, 33, 0.16);
  backdrop-filter: blur(15px);
}

.login-gate-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  font-size: 1rem;
}

.login-gate-card h1 {
  margin: 4px 0 12px;
  color: var(--gold);
  font-family: "Segoe Script", "Bradley Hand", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.login-gate-card > p:not(.eyebrow) {
  margin: 0 auto 22px;
  color: var(--muted);
}

.login-gate-card form {
  text-align: left;
}

.login-gate-card small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
}

.login-status,
.storage-status {
  font-size: 0.74rem;
}

.storage-status {
  border-radius: 8px;
  box-shadow: none;
}

.button {
  min-height: 40px;
  padding: 9px 16px;
  color: #fff;
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  border-radius: 7px;
  box-shadow: 0 3px 8px rgba(38, 63, 48, 0.12);
  font-size: 0.88rem;
  font-weight: 650;
}

.button:hover {
  background: var(--forest-soft);
  border-color: var(--forest-soft);
}

.button-secondary {
  color: var(--forest);
  background: #fffdf9;
  border-color: var(--border);
}

.button-secondary:hover {
  color: var(--forest);
  background: #f5f0e8;
  border-color: #d8cdbd;
}

.button-ghost {
  color: var(--forest-soft);
  background: transparent;
  border-color: #b9c5b8;
  box-shadow: none;
}

.button-ghost:hover {
  color: #fff;
  background: var(--forest-soft);
  border-color: var(--forest-soft);
}

.danger-button {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
}

input,
select,
textarea {
  min-height: 40px;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(62, 50, 38, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(95, 125, 101, 0.12);
}

.guest-page .hero {
  width: calc(100% - 28px);
  max-width: 1600px;
  min-height: 470px;
  margin: 0 auto;
  color: var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.guest-page .hero::before {
  background-position: center 55%;
  filter: saturate(0.78) sepia(0.08);
}

.guest-page .hero::after {
  background:
    linear-gradient(90deg, rgba(250, 242, 231, 0.97) 0%, rgba(250, 242, 231, 0.91) 38%, rgba(250, 242, 231, 0.4) 58%, rgba(36, 32, 26, 0.08) 100%),
    linear-gradient(0deg, rgba(45, 39, 31, 0.13), transparent 50%);
}

.guest-page .hero-content {
  width: min(650px, 50%);
  margin: auto auto auto max(44px, calc((100% - 1320px) / 2));
  padding: 54px 0 78px;
  text-align: center;
}

.guest-page .hero .eyebrow {
  color: #6d675e;
  letter-spacing: 0.13em;
}

.guest-page .hero h1 {
  color: var(--gold);
  font-family: "Segoe Script", "Bradley Hand", Georgia, serif;
  font-size: clamp(3rem, 5vw, 5.4rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.07em;
  text-shadow: 0 2px 1px rgba(255, 255, 255, 0.7);
}

.guest-page .hero-copy {
  max-width: 540px;
  margin: 14px auto 0;
  color: #605b53;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.guest-page .hero-actions {
  justify-content: center;
  margin-top: 22px;
}

.guest-page .hero-strip {
  top: 30px;
  right: max(32px, calc((100% - 1360px) / 2));
  bottom: auto;
  left: auto;
  width: 160px;
  grid-template-columns: 1fr;
  gap: 0;
  color: #62584c;
  background: rgba(255, 253, 249, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.guest-page .hero-strip div {
  padding: 13px 16px;
  text-align: center;
}

.guest-page .hero-strip div + div {
  border-top: 1px solid var(--border);
}

.guest-page .hero-strip span {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.guest-page .hero-strip strong {
  color: #665b4e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  white-space: normal;
}

.guest-page main {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: row;
  align-items: stretch;
  gap: 14px;
  width: calc(100% - 52px);
  max-width: 1530px;
  margin: 16px auto 28px;
}

.guest-page main > .section {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.guest-page main > .section > .section-inner {
  width: 100%;
  height: 100%;
  padding: 20px;
  background: var(--guest-section-color, rgba(255, 253, 249, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 1241px) {
  .guest-page main > .section[data-row-columns] {
    grid-column: var(--guest-grid-column);
    grid-row: var(--guest-grid-row);
  }

  .guest-page main > .section[data-layout-size="compact"] > .section-inner {
    min-height: 230px;
  }

  .guest-page main > .section[data-layout-size="normal"] > .section-inner {
    min-height: 340px;
  }

  .guest-page main > .section[data-layout-size="tall"] > .section-inner {
    min-height: 500px;
  }
}

.guest-page .section-heading {
  max-width: 100%;
  margin-bottom: 18px;
}

.guest-page .section-heading p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-editor-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 115;
  display: flex;
  flex-wrap: wrap;
  max-width: min(980px, calc(100% - 36px));
  max-height: min(76vh, 520px);
  overflow-y: auto;
  padding: 10px;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(38, 63, 48, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(25, 42, 31, 0.26);
  backdrop-filter: blur(12px);
}

.inline-editor-toolbar[hidden] {
  display: none;
}

.inline-editor-summary {
  display: grid;
  min-width: 180px;
  margin-right: 5px;
  gap: 1px;
}

.inline-editor-toolbar strong {
  font-size: 0.78rem;
}

.inline-editor-toolbar span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.64rem;
}

.inline-editor-toolbar .button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.inline-text-style-controls {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(150px, 1.25fr) minmax(82px, 0.55fr) minmax(105px, 0.7fr) minmax(115px, 0.8fr) auto auto;
  align-items: end;
  gap: 8px;
}

.inline-text-style-controls label {
  display: grid;
  gap: 4px;
}

.inline-text-style-controls label > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.inline-text-emphasis {
  display: grid;
  gap: 4px;
}

.inline-text-emphasis > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.inline-text-emphasis > div {
  display: flex;
  gap: 4px;
}

.inline-text-emphasis .button {
  min-width: 35px;
  min-height: 35px;
  padding: 5px 9px;
}

#inlineItalic {
  font-style: italic;
}

#inlineUnderline {
  text-decoration: underline;
}

.inline-text-emphasis .button.is-active {
  color: #263f30;
  background: #fff;
  border-color: #fff;
}

.inline-text-style-controls select,
.inline-text-style-controls input[type="color"] {
  width: 100%;
  min-height: 35px;
  margin: 0;
  padding: 5px 8px;
  color: #2f2b27;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 7px;
  font: inherit;
}

.inline-text-style-controls input[type="color"] {
  padding: 3px;
}

.inline-text-style-controls :disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.is-inline-admin .inline-editable-text {
  min-height: 1em;
  border-radius: 4px;
  outline: 1px dashed rgba(183, 139, 70, 0.52);
  outline-offset: 4px;
  cursor: text;
  transition: background 150ms ease, outline-color 150ms ease, box-shadow 150ms ease;
}

.is-inline-admin .inline-editable-text:hover {
  background: rgba(255, 249, 225, 0.54);
  outline-color: var(--gold);
}

.is-inline-admin .inline-editable-text:focus {
  background: #fffdf4;
  outline: 2px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(183, 139, 70, 0.12);
}

.is-inline-admin .inline-editable-text.is-style-selected:not(:focus) {
  outline: 2px solid rgba(183, 139, 70, 0.76);
  box-shadow: 0 0 0 4px rgba(183, 139, 70, 0.1);
}

.inline-admin-placeholder {
  min-height: 210px;
  align-content: center;
}

.is-inline-admin main > .section {
  position: relative;
}

.is-inline-admin main > .section .section-heading {
  padding-right: 142px;
}

.tile-color-editor {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 12;
  display: flex;
  padding: 5px 6px;
  align-items: center;
  gap: 5px;
  color: #fff;
  background: rgba(38, 63, 48, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(25, 42, 31, 0.18);
}

.tile-color-editor label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
}

.tile-color-editor input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 2px;
  background: #fff;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.tile-color-editor button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: var(--forest-soft);
  background: #fff;
  border: 0;
  border-radius: 5px;
  font-size: 0.92rem;
}

.tile-color-editor button:disabled {
  opacity: 0.42;
}

.guest-page .portal-shell {
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
}

.guest-page .login-panel,
.guest-page .guest-portal,
.guest-page .info-tile,
.guest-page .feature-grid article,
.guest-page .gift-card,
.guest-page .song-card,
.guest-page .guestbook-card,
.guest-page .progress-card,
.guest-page .travel-list article,
.guest-page .upload-box,
.guest-page .weather-card {
  background: #fffdf9;
  border-color: var(--border);
  border-radius: 10px;
  box-shadow: none;
}

.guest-page .login-panel,
.guest-page .guest-portal {
  padding: 18px;
}

.guest-page .login-panel {
  background:
    linear-gradient(145deg, rgba(232, 215, 184, 0.28), rgba(255, 253, 249, 0.92)),
    #fffdf9;
}

.guest-page .rsvp-grid {
  gap: 10px;
}

.guest-page .guest-meal-row {
  padding: 13px;
  background: #faf7f1;
  border-color: var(--border);
  border-radius: 9px;
}

.guest-page .course-grid {
  gap: 8px;
}

.rsvp-wizard {
  display: grid;
  gap: 18px;
}

.rsvp-wizard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.rsvp-wizard-header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.rsvp-progress {
  display: flex;
  min-width: min(480px, 52%);
  margin: 2px 0 0;
  padding: 0;
  justify-content: flex-end;
  gap: 6px;
  list-style: none;
}

.rsvp-progress li {
  position: relative;
  flex: 1 1 0;
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.66rem;
  text-align: center;
}

.rsvp-progress li::before {
  position: absolute;
  top: 0;
  right: 3px;
  left: 3px;
  height: 5px;
  background: #e9e3da;
  border-radius: 99px;
  content: "";
}

.rsvp-progress li.is-active {
  color: var(--forest);
  font-weight: 700;
}

.rsvp-progress li.is-active::before,
.rsvp-progress li.is-complete::before {
  background: var(--sage-deep);
}

.rsvp-step {
  min-height: 350px;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(240, 233, 221, 0.38), rgba(255, 253, 249, 0.92)),
    #fffdf9;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.rsvp-step > h3 {
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 500;
}

.rsvp-step > p:not(.rsvp-question-number) {
  max-width: 720px;
  margin: 9px 0 24px;
  color: var(--muted);
}

.rsvp-question-number {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.attendance-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin-top: 25px;
}

.attendance-choice {
  position: relative;
  display: grid;
  min-height: 160px;
  padding: 20px;
  place-items: center;
  gap: 4px;
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 11px;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.attendance-choice:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.attendance-choice:has(input:checked) {
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(95, 125, 101, 0.13);
}

.attendance-choice.is-no:has(input:checked) {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(223, 143, 133, 0.14);
}

.attendance-choice.is-maybe:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 150, 85, 0.14);
}

.attendance-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.attendance-choice-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 5px;
  place-items: center;
  color: var(--forest-soft);
  background: #edf2ec;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.attendance-choice.is-no .attendance-choice-icon {
  color: #ad5b53;
  background: #fae7e4;
}

.attendance-choice.is-maybe .attendance-choice-icon {
  color: #9a713a;
  background: #f5ebdb;
}

.attendance-choice small {
  color: var(--muted);
}

.attendance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 920px;
}

.attendance-row {
  position: relative;
  display: grid;
  min-height: 82px;
  padding: 14px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.attendance-row:has(.guest-attending:checked) {
  background: #f2f6f1;
  border-color: #b9c9b7;
}

.attendance-row > .guest-attending {
  position: absolute;
  opacity: 0;
}

.attendance-check {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: transparent;
  background: #f4f0e9;
  border: 1px solid #d8d0c4;
  border-radius: 50%;
}

.attendance-row:has(.guest-attending:checked) .attendance-check {
  color: #fff;
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.attendance-person {
  display: grid;
  gap: 6px;
}

.attendance-person small {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.attendance-person input[type="text"] {
  min-height: 36px;
}

.guest-page .guest-meal-row {
  display: block;
  margin-bottom: 14px;
  padding: 16px;
}

.guest-meal-row > header {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
}

.guest-meal-row h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.meal-person-number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--sage-deep);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 750;
}

.guest-welcome {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  font-style: italic;
}

.guest-page .guest-meal-row .course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.meal-picker {
  min-width: 0;
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.meal-preview {
  width: 100%;
  aspect-ratio: 16 / 8;
  background-image: url("assets/menu-sprite.png");
  background-size: 400% 400%;
  background-repeat: no-repeat;
}

.meal-picker-copy {
  display: grid;
  padding: 11px;
  gap: 6px;
}

.meal-picker-copy label {
  color: var(--forest-soft);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meal-picker-copy small {
  min-height: 34px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.allergen-label {
  padding-top: 7px;
  color: #8d6542;
  border-top: 1px solid #eee7dc;
  font-size: 0.66rem;
  font-weight: 650;
}

.rsvp-wizard-actions {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr minmax(110px, auto);
  align-items: center;
  gap: 10px;
}

.rsvp-wizard-actions > span {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.rsvp-wizard-actions [data-rsvp-next],
.rsvp-wizard-actions [data-rsvp-save] {
  grid-column: 3;
}

.rsvp-review {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.review-status,
.review-block,
.review-meta {
  padding: 16px;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.review-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-status > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--sage-deep);
  border-radius: 50%;
  font-size: 1.3rem;
}

.review-status.status-nein > span {
  background: var(--rose);
}

.review-status.status-vielleicht > span {
  background: var(--gold);
}

.review-status small,
.review-block > small {
  display: block;
  color: var(--muted);
}

.review-status strong {
  display: block;
  font-size: 1.4rem;
}

.review-block ul,
.rsvp-result-guests {
  display: grid;
  margin: 11px 0 0;
  padding: 0;
  gap: 6px;
  list-style: none;
}

.review-block li,
.rsvp-result-guests li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
}

.review-block li span,
.rsvp-result-guests li span {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

.review-meta {
  display: flex;
  grid-column: 1 / -1;
  gap: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}

.rsvp-result {
  position: relative;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(95, 125, 101, 0.13), transparent 37%),
    #fffdf9;
  border: 1px solid #c9d6c7;
  border-radius: 13px;
}

.rsvp-result.is-no {
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 143, 133, 0.15), transparent 37%),
    #fffdf9;
  border-color: #e7bbb5;
}

.rsvp-result.is-maybe {
  background:
    radial-gradient(circle at 100% 0%, rgba(198, 150, 85, 0.15), transparent 37%),
    #fffdf9;
  border-color: #dfc59f;
}

.rsvp-result-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  background: var(--sage-deep);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.rsvp-result.is-no .rsvp-result-icon {
  background: var(--rose);
}

.rsvp-result.is-maybe .rsvp-result-icon {
  background: var(--gold);
}

.rsvp-result > h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.rsvp-result > p:not(.eyebrow) {
  color: var(--muted);
}

.rsvp-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
}

.rsvp-result-summary > div {
  padding: 13px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.rsvp-result-summary small,
.rsvp-result-summary strong {
  display: block;
}

.rsvp-result-summary small {
  color: var(--muted);
}

.rsvp-result .button {
  margin-top: 22px;
}

.guest-welcome-admin {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.guest-page .info-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.guest-page .info-tile {
  position: relative;
  min-height: 145px;
  padding: 18px 15px;
  overflow: hidden;
}

.guest-page .info-tile::before {
  display: block;
  width: 29px;
  height: 29px;
  margin-bottom: 13px;
  color: var(--forest-soft);
  font-size: 1.25rem;
  line-height: 29px;
  text-align: center;
  background: #edf2ec;
  border-radius: 50%;
  content: "✦";
}

.guest-page .info-tile:nth-child(2n)::before {
  color: #b3665f;
  background: #fae7e3;
}

.guest-page .info-tile:nth-child(3n)::before {
  color: #a07337;
  background: #f4ead7;
}

.guest-page .info-tile h3 {
  margin-bottom: 8px;
}

.guest-page .info-tile p,
.guest-page .feature-grid p,
.guest-page .travel-list p {
  color: var(--muted);
  font-size: 0.82rem;
}

.guest-page .weather-layout,
.guest-page .split-layout,
.guest-page .travel-layout,
.guest-page .horizontal-heading {
  grid-template-columns: 1fr;
  gap: 14px;
}

.guest-page .weather-card {
  gap: 10px;
  min-height: 210px;
  padding: 14px;
}

.guest-page .weather-card-heading {
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guest-page .weather-card-heading .tile-label {
  margin: 0;
}

.guest-page .weather-position {
  color: var(--muted);
  font-size: 0.7rem;
}

.guest-page .weather-day {
  display: grid;
  grid-template:
    "icon date" auto
    "icon temperature" auto
    "icon description" auto / 74px minmax(0, 1fr);
  gap: 2px 13px;
  min-height: 116px;
  padding: 12px;
  place-items: center start;
  text-align: left;
}

.guest-page .weather-day strong {
  grid-area: date;
  text-transform: capitalize;
}

.guest-page .weather-day .weather-icon {
  grid-area: icon;
  width: 62px;
  height: 62px;
}

.guest-page .weather-day p {
  grid-area: temperature;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.guest-page .weather-day small {
  grid-area: description;
}

.guest-page .weather-controls {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
}

.guest-page .weather-controls > span {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.guest-page .weather-button {
  display: grid;
  width: 34px;
  height: 32px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: var(--sage-deep);
  border: 0;
  border-radius: 7px;
  font-size: 1rem;
}

.guest-page .weather-button:hover:not(:disabled) {
  background: var(--forest-soft);
}

.guest-page .weather-button:disabled {
  color: #a29c92;
  background: #ebe6de;
  opacity: 1;
}

.guest-page .timeline li {
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 12px 0;
  background: transparent;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.guest-page .travel-list {
  gap: 8px;
}

.guest-page .travel-list article {
  padding: 14px;
}

.guest-page .card-grid,
.guest-page .photo-grid,
.guest-page .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guest-page .gift-card,
.guest-page .song-card,
.guest-page .guestbook-card {
  padding: 16px;
}

.guest-page .gift-card.reserved {
  background: #f2f5f0;
  border-color: #c7d3c4;
}

.guest-page #songList {
  display: grid;
  padding: 0;
  gap: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.song-group {
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.song-group > header {
  display: flex;
  padding: 11px 13px;
  align-items: center;
  gap: 8px;
  background: #f4f1ea;
  border-bottom: 1px solid var(--border);
}

.song-group > header h3 {
  flex: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
}

.song-group > header small {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--forest-soft);
  background: #e4ece3;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 750;
}

.song-group-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.song-group > div {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.song-group .song-card {
  padding: 13px;
  background: #fff;
}

.guest-page .photo-card {
  border-radius: 9px;
  box-shadow: none;
}

.guest-page .photo-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.guest-page .upload-box {
  padding: 17px;
  background: #fbf7f0;
  border-style: dashed;
}

.guest-page .progress-card {
  padding: 15px;
}

.guest-page .progress-bar {
  background: var(--sage-deep);
}

.guest-page .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guest-page .feature-grid article {
  min-height: 120px;
  padding: 16px;
}

.site-footer {
  width: calc(100% - 52px);
  max-width: 1530px;
  margin: 0 auto 24px;
  padding: 22px 8px 88px;
  color: var(--muted);
  background: transparent;
  border-top-color: var(--border);
}

.mobile-tabbar {
  display: none;
}

/* Admin dashboard */

.admin-page {
  background:
    radial-gradient(circle at 75% 0%, rgba(255, 255, 255, 0.74), transparent 42%),
    var(--paper);
}

.admin-page .site-header {
  position: fixed;
  top: 10px;
  bottom: 10px;
  left: 10px;
  width: 220px;
  min-height: 0;
  margin: 0;
  padding: 22px 14px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  color: #f5f1e8;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 42%),
    var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(28, 45, 34, 0.24);
}

.admin-page .brand {
  justify-content: flex-start;
  padding: 0 8px 19px;
  color: #f6e9cd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-page .brand-mark {
  color: #e3c78d;
  border-color: rgba(227, 199, 141, 0.55);
}

.admin-page .main-nav {
  width: 100%;
  margin-top: 16px;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}

.admin-page .main-nav a {
  padding: 11px 12px 11px 38px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 7px;
  font-size: 0.82rem;
}

.admin-page .main-nav a::before {
  position: absolute;
  left: 13px;
  width: 18px;
  color: #d8e2d8;
  text-align: center;
  content: "◇";
}

.admin-page .main-nav a:nth-child(2)::before {
  content: "♙";
}

.admin-page .main-nav a:nth-child(3)::before {
  content: "✓";
}

.admin-page .main-nav a:nth-child(4)::before {
  content: "♨";
}

.admin-page .main-nav a:nth-child(5)::before {
  content: "◎";
}

.admin-page .main-nav a:nth-child(6)::before {
  content: "♡";
}

.admin-page .main-nav a:nth-child(7)::before {
  content: "▧";
}

.admin-page .main-nav a:hover,
.admin-page .main-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-page .main-nav a::after {
  display: none;
}

.admin-sidebar-actions {
  display: grid;
  width: 100%;
  margin-top: auto;
  gap: 7px;
}

.admin-sidebar-actions .button {
  width: 100%;
  color: #f5f1e8;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-sidebar-actions .button-ghost {
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

.admin-sidebar-actions [hidden] {
  display: none;
}

.admin-main {
  width: auto;
  margin-left: 230px;
}

.admin-main .section {
  padding: 18px 22px;
  background: transparent;
}

.admin-main #adminDashboard > .section {
  background: var(--admin-section-a, #f7f3ec);
  border-top: 1px solid rgba(91, 75, 57, 0.08);
}

.admin-main #adminDashboard > .section:nth-child(even) {
  background: var(--admin-section-b, #edf2ec);
}

.admin-main .section-inner {
  width: min(1420px, 100%);
}

.admin-main #adminLogin {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.admin-main #adminDashboard > .section:first-child {
  padding-top: 28px;
}

.admin-page .section-heading {
  margin-bottom: 18px;
}

.admin-page .section-heading p:not(.eyebrow) {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-page .horizontal-heading {
  gap: 20px;
}

.admin-page .summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-page .summary-card {
  position: relative;
  min-height: 118px;
  padding: 17px;
  background: #fffdf9;
  border-color: var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.admin-page .summary-card::before {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 11px;
  color: var(--forest-soft);
  line-height: 30px;
  text-align: center;
  background: #e8efe8;
  border-radius: 50%;
  content: "✓";
}

.admin-page .summary-card:nth-child(3)::before {
  color: #bd665d;
  background: #fbe8e5;
  content: "×";
}

.admin-page .summary-card:nth-child(4)::before {
  color: #a77a3c;
  background: #f5ead8;
  content: "◎";
}

.admin-page .summary-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.admin-page .summary-card p {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-page .admin-jump-grid {
  margin-top: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-page .admin-jump-grid a {
  padding: 11px;
  color: var(--forest-soft);
  background: #eef2ec;
  border-color: #d9e1d7;
  border-radius: 8px;
  font-size: 0.8rem;
}

.admin-page .admin-table-wrap,
.admin-page .admin-panel,
.admin-page .admin-item,
.admin-page .photo-admin-card,
.admin-page .guest-family-card {
  background: rgba(255, 253, 249, 0.97);
  border-color: var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.admin-page .admin-table-wrap {
  margin-top: 13px;
  padding: 18px;
}

.admin-page .admin-panel {
  padding: 18px;
}

.guest-management-block {
  display: grid;
  padding: 14px;
  gap: 12px;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow-soft);
}

.guest-management-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.guest-management-heading p {
  margin: 4px 0 0;
}

.guest-management-block .guest-overview-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.guest-management-block .guest-overview-stats span {
  min-height: 56px;
  padding: 8px;
  background: #f7f3ec;
  border-radius: 7px;
  font-size: 0.7rem;
}

.guest-management-block .guest-overview-stats strong {
  font-size: 1.12rem;
}

.guest-editor-parking {
  display: grid;
  gap: 10px;
}

.guest-inline-form {
  display: grid;
  margin: 4px 0;
  padding: 14px !important;
  gap: 10px;
  background: #faf7f1 !important;
  border-color: #cbd7c8 !important;
  box-shadow: none !important;
}

.guest-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.guest-editor-grid label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.guest-editor-grid input,
.guest-editor-grid select,
.guest-editor-grid textarea {
  width: 100%;
  min-width: 0;
}

.guest-editor-wide {
  grid-column: span 2;
}

.guest-family-accordion-list {
  display: grid;
  gap: 8px;
}

.guest-family-accordion {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.guest-family-accordion[open] {
  border-color: #bdcdb9;
  box-shadow: 0 0 0 3px rgba(95, 125, 101, 0.08);
}

.guest-family-accordion > summary {
  display: grid;
  min-height: 66px;
  padding: 10px 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.guest-family-accordion > summary::-webkit-details-marker {
  display: none;
}

.guest-family-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--forest-soft);
  background: #e8efe8;
  border: 1px solid #d5dfd3;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.guest-family-accordion.is-unassigned .guest-family-avatar {
  color: #a77a3c;
  background: #f5ead8;
  border-color: #ead8b9;
}

.guest-family-summary-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.guest-family-summary-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-family-summary-toggle {
  color: var(--forest-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.guest-family-empty-badge {
  visibility: hidden;
}

.guest-family-accordion-content {
  display: grid;
  padding: 12px;
  gap: 12px;
  background: #faf8f3;
  border-top: 1px solid var(--border);
}

.guest-family-accordion-content .guest-family-meta {
  background: #fff;
  border-color: var(--border);
}

.guest-family-actions {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.guest-editor-slot:empty {
  display: none;
}

.compact-section-heading {
  max-width: 880px;
  margin-bottom: 13px !important;
}

.settings-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.settings-compact-form {
  display: grid;
  gap: 14px;
}

.admin-security-form {
  display: grid;
  gap: 12px;
  border-left: 3px solid var(--forest-soft);
}

.security-lock {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--forest-soft);
  background: #edf2ec;
  border: 1px solid #d7e1d5;
  border-radius: 50%;
  font-size: 1rem;
}

.admin-security-form > p {
  margin: 0;
}

.admin-security-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-security-fields label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-security-fields input {
  width: 100%;
  min-width: 0;
}

.settings-compact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-compact-heading .tile-label {
  display: block;
  margin-bottom: 4px;
}

.settings-weather-chip {
  padding: 6px 9px;
  color: var(--forest-soft);
  background: #edf2ec;
  border: 1px solid #d7e1d5;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
}

.settings-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 10px;
}

.settings-field-grid label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.settings-field-grid input {
  width: 100%;
  min-width: 0;
}

.section-color-settings {
  display: grid;
  margin: 0;
  padding: 12px;
  gap: 8px;
  background: #faf7f1;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.section-color-settings legend {
  padding: 0 5px;
  color: var(--forest-soft);
  font-size: 0.76rem;
  font-weight: 750;
}

.section-color-settings > p {
  margin: 0;
}

.section-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.section-color-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.section-color-grid input[type="color"] {
  width: 100%;
  min-height: 36px;
  padding: 3px;
  cursor: pointer;
}

.settings-form-footer {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.settings-form-footer .form-message {
  flex: 1;
  margin: 0;
}

.section-order-panel {
  display: grid;
  gap: 11px;
}

.section-order-panel > p {
  margin: 0;
}

.section-layout-preview-shell {
  display: grid;
  padding: 12px;
  gap: 10px;
  background: #f5f0e8;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.section-layout-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-layout-preview-heading span {
  color: var(--forest-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.section-layout-preview-heading small {
  color: var(--muted);
  font-size: 0.66rem;
}

.section-layout-preview {
  display: grid;
  min-height: 220px;
  padding: 10px;
  gap: 12px;
  background:
    linear-gradient(rgba(95, 125, 101, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 125, 101, 0.045) 1px, transparent 1px),
    #fff;
  background-size: 38px 38px;
  border: 1px dashed #bdcbb9;
  border-radius: 9px;
}

.section-layout-preview-row {
  display: grid;
  padding: 9px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(95, 125, 101, 0.16);
  border-radius: 8px;
}

.section-layout-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-layout-row-heading > strong {
  color: var(--forest-soft);
  font-size: 0.7rem;
}

.section-layout-row-heading label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.section-layout-row-heading select {
  min-height: 30px;
  padding: 4px 28px 4px 8px;
  font-size: 0.68rem;
}

.section-layout-preview-row-grid {
  display: grid;
  align-items: stretch;
  gap: 8px;
}

.section-layout-preview-slot {
  display: grid;
  min-width: 0;
  border-radius: 8px;
  outline: none;
  transition: box-shadow 160ms ease, background 160ms ease;
}

.section-layout-preview-slot.is-empty {
  min-height: 64px;
  padding: 10px;
  place-content: center;
  color: #758174;
  background: rgba(255, 255, 255, 0.56);
  border: 1px dashed #aebdaa;
  text-align: center;
  cursor: pointer;
}

.section-layout-preview-slot.is-empty > span {
  font-size: 0.7rem;
  font-weight: 750;
}

.section-layout-preview-slot.is-empty > small {
  font-size: 0.58rem;
}

.section-layout-preview-slot.is-drop-target,
.section-layout-preview-slot:focus-visible {
  background: rgba(223, 234, 220, 0.72);
  box-shadow: 0 0 0 3px rgba(95, 125, 101, 0.3);
}

.section-layout-preview-tile {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 9px 30px 9px 10px;
  align-content: center;
  gap: 2px;
  overflow: hidden;
  background: var(--preview-section-color, #fffdf9);
  border: 1px solid rgba(95, 125, 101, 0.28);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(38, 63, 48, 0.08);
  cursor: grab;
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.section-layout-preview-slot > .section-layout-preview-tile {
  height: 100%;
}

.section-layout-preview-tile[data-preview-size="compact"] {
  min-height: 64px;
}

.section-layout-preview-tile[data-preview-size="normal"] {
  min-height: 94px;
}

.section-layout-preview-tile[data-preview-size="tall"] {
  min-height: 124px;
}

.section-layout-preview-tile > span {
  position: absolute;
  top: 7px;
  left: 8px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: #fff;
  background: var(--forest-soft);
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 750;
}

.section-layout-preview-tile strong {
  margin-left: 24px;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.section-layout-preview-tile small {
  margin-left: 24px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-layout-preview-tile i {
  position: absolute;
  top: 50%;
  right: 10px;
  color: var(--forest-soft);
  font-size: 0.95rem;
  font-style: normal;
  letter-spacing: -4px;
  transform: translateY(-50%);
}

.section-layout-preview-tile.is-dragging {
  opacity: 0.42;
  transform: scale(0.98);
}

.section-layout-preview-tile.is-drop-target {
  box-shadow: 0 0 0 3px rgba(95, 125, 101, 0.3);
}

.section-layout-preview-tile.is-selected {
  box-shadow: 0 0 0 3px var(--gold);
}

.section-layout-details {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.section-layout-details > summary {
  padding: 11px 13px;
  color: var(--forest-soft);
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}

.section-layout-details .section-order-list {
  padding: 0 10px 10px;
}

.section-order-list {
  display: grid;
  gap: 6px;
}

.section-order-item {
  display: grid;
  min-height: 82px;
  padding: 9px;
  grid-template-columns: 24px minmax(120px, 0.8fr) minmax(240px, 1.6fr);
  align-items: center;
  gap: 8px;
  background: #faf7f1;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: grab;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.section-order-item.is-dragging {
  opacity: 0.48;
}

.section-order-item.is-drop-target {
  border-color: var(--forest-soft);
  box-shadow: inset 0 3px 0 var(--forest-soft);
}

.section-order-copy {
  display: grid;
  gap: 3px;
}

.section-order-copy strong {
  font-size: 0.78rem;
}

.section-order-copy small {
  color: var(--muted);
  font-size: 0.65rem;
}

.section-drag-handle {
  color: var(--forest-soft);
  font-size: 1.05rem;
  letter-spacing: -4px;
  cursor: grab;
}

.section-layout-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.section-layout-controls label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.section-layout-controls select {
  min-height: 32px;
  padding: 5px 25px 5px 7px;
  font-size: 0.68rem;
}

.meal-admin-content {
  display: grid;
  gap: 14px;
}

.meal-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.meal-summary-card {
  padding: 15px;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.meal-summary-card > strong {
  display: inline-block;
  margin-right: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.meal-summary-card > small {
  color: var(--muted);
}

.meal-summary-card > div {
  display: grid;
  margin-top: 10px;
  gap: 5px;
}

.meal-summary-card > div span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
}

.meal-summary-card em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-summary-card b {
  color: var(--forest);
}

.meal-course-list {
  display: grid;
  gap: 14px;
}

.meal-course-panel {
  padding: 14px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.meal-course-heading {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  justify-content: space-between;
}

.meal-course-heading span {
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-meal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.admin-meal-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.admin-meal-preview {
  width: 100%;
  aspect-ratio: 16 / 7;
  background-image: url("assets/menu-sprite.png");
  background-size: 400% 400%;
  background-repeat: no-repeat;
}

.admin-meal-fields {
  display: grid;
  padding: 12px;
  gap: 8px;
}

.admin-meal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-meal-title-row .tile-label {
  margin: 0;
}

.meal-order-badge {
  padding: 4px 7px;
  color: var(--forest-soft);
  background: #e8efe7;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 750;
}

.admin-meal-fields > label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-meal-fields textarea {
  min-height: 62px;
  resize: vertical;
}

.admin-meal-image-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-meal-image-row label {
  cursor: pointer;
}

.admin-meal-image-row input[type="file"] {
  display: none;
}

.admin-meal-image-row small {
  color: var(--muted);
}

.admin-meal-card > .admin-actions {
  padding: 0 12px 12px;
}

.admin-page .admin-row,
.admin-page .admin-item {
  border-color: var(--border);
}

.admin-page .admin-row {
  grid-template-columns: 0.8fr 1.5fr 0.7fr;
}

.admin-page .admin-layout {
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
}

.admin-page .admin-two-columns,
.admin-page .seating-designer {
  gap: 14px;
}

.admin-page .room-preview,
.admin-page .guest-palette,
.admin-page .list-panel {
  border-radius: 10px;
}

.admin-page .room-canvas {
  background-image:
    linear-gradient(rgba(38, 63, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 63, 48, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

.admin-page .table-preview {
  border-color: rgba(95, 125, 101, 0.42);
  box-shadow: 0 5px 14px rgba(38, 63, 48, 0.12);
}

.admin-page .seat-dot {
  border-color: #fff;
  box-shadow: 0 2px 6px rgba(38, 63, 48, 0.16);
}

.room-settings-disclosure {
  margin-bottom: 12px;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.room-settings-disclosure > summary {
  padding: 12px 15px;
  color: var(--forest-soft);
  font-weight: 750;
  cursor: pointer;
}

.room-settings-form {
  display: grid;
  padding: 14px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  border: 0 !important;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: none !important;
}

.room-settings-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.room-settings-form .room-notes-field {
  grid-column: span 2;
}

.room-settings-form .form-message {
  align-self: center;
  margin: 0;
}

.admin-page .seating-designer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.hall-preview-block {
  grid-column: 1 / -1;
  padding: 14px;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow-soft);
}

.hall-preview-heading,
.table-list-heading {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hall-preview-heading .eyebrow {
  margin-bottom: 4px;
}

.hall-preview-heading > span {
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-page .room-preview {
  width: 100%;
  padding: 10px;
  box-shadow: none;
}

.admin-page .room-label {
  top: 0;
  right: 0;
  left: 0;
  max-width: none;
  min-height: 58px;
  padding: 11px 16px;
  align-content: center;
  border-width: 0 0 1px;
  border-radius: 7px 7px 0 0;
  background: rgba(255, 253, 249, 0.9);
}

.admin-page .room-label strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.seating-guest-block,
.table-accordion-block {
  min-width: 0;
  padding: 14px;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow-soft);
}

.seating-guest-block .guest-palette {
  margin-bottom: 0;
}

.table-list-heading p {
  margin: 4px 0 0;
}

.table-editor-parking:empty {
  display: none;
}

.table-inline-form {
  display: grid;
  margin: 10px 0;
  gap: 10px;
  background: #faf7f1 !important;
  border-color: #cbd7c8 !important;
  box-shadow: none !important;
}

.table-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table-editor-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.1rem;
}

.table-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.table-editor-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.table-decoration-field {
  grid-column: span 2;
}

.table-accordion-list {
  display: grid;
  gap: 8px;
}

.table-accordion {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.table-accordion[open] {
  border-color: #bdcdb9;
  box-shadow: 0 0 0 3px rgba(95, 125, 101, 0.08);
}

.table-accordion > summary {
  display: grid;
  min-height: 62px;
  padding: 10px 12px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.table-accordion > summary::-webkit-details-marker {
  display: none;
}

.table-summary-shape {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(38, 63, 48, 0.2);
}

.table-summary-shape.is-round {
  border-radius: 50%;
}

.table-summary-shape.is-rect {
  height: 24px;
  border-radius: 5px;
}

.table-summary-copy {
  display: grid;
  gap: 2px;
}

.table-summary-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-summary-toggle {
  color: var(--forest-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.table-accordion-content {
  display: grid;
  padding: 12px;
  gap: 12px;
  background: #faf8f3;
  border-top: 1px solid var(--border);
}

.table-meal-disclosure {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.table-meal-disclosure > summary {
  display: flex;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--forest-soft);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.table-meal-disclosure > summary span {
  color: var(--muted);
  font-size: 0.68rem;
}

.table-meal-content {
  padding: 0 12px 12px;
}

.table-meal-list {
  display: grid;
  margin: 0 0 10px;
  padding: 0;
  gap: 6px;
  list-style: none;
}

.table-meal-list li {
  display: grid;
  padding: 9px;
  grid-template-columns: minmax(130px, 0.8fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: #faf7f1;
  border-radius: 7px;
  font-size: 0.7rem;
}

.table-meal-list li span {
  color: var(--muted);
}

.all-table-meals-disclosure {
  margin-bottom: 10px;
  overflow: hidden;
  background: #f2f6f0;
  border: 1px solid #cfdbcc;
  border-radius: 9px;
}

.all-table-meals-disclosure > summary {
  padding: 11px 13px;
  color: var(--forest-soft);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.all-table-meal-overview {
  display: grid;
  padding: 0 12px 12px;
  gap: 10px;
}

.all-table-meal-summary {
  display: flex;
  padding: 9px 11px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border-radius: 7px;
  font-size: 0.74rem;
}

.all-table-meal-summary span {
  color: var(--muted);
}

.all-table-meal-card {
  padding: 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.all-table-meal-card h4 {
  display: flex;
  margin: 0 0 8px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.all-table-meal-card h4 span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.table-editor-slot:empty {
  display: none;
}

.admin-toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: grid;
  width: min(380px, calc(100% - 32px));
  gap: 8px;
  pointer-events: none;
}

.admin-toast {
  display: flex;
  padding: 12px 14px;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(28, 45, 34, 0.24);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-toast.is-error {
  background: #9f554f;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--forest);
  background: #fff;
  border-radius: 50%;
  font-weight: 800;
}

.admin-toast strong {
  font-size: 0.82rem;
}

@media (max-width: 1240px) {
  .guest-page .main-nav a {
    padding-inline: 7px;
    font-size: 0.78rem;
  }

  .guest-page .storage-status {
    display: none;
  }

  .guest-page main {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .guest-page main > .section[data-row-columns] {
    grid-column: var(--guest-grid-column);
    grid-row: var(--guest-grid-row);
  }

  .guest-page main > .section[data-layout-size="compact"] > .section-inner {
    min-height: 220px;
  }

  .guest-page main > .section[data-layout-size="normal"] > .section-inner {
    min-height: 300px;
  }

  .guest-page main > .section[data-layout-size="tall"] > .section-inner {
    min-height: 420px;
  }

  .guest-page .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guest-page .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 78px;
  }

  .guest-page .site-header {
    top: 6px;
    width: calc(100% - 16px);
    min-height: 58px;
    margin-top: 6px;
    padding: 8px 14px;
    border-radius: 12px;
  }

  .login-gate {
    width: calc(100% - 16px);
    min-height: calc(100svh - 78px);
    margin-top: 8px;
    padding: 22px;
    border-radius: 12px;
  }

  .guest-page .site-header .main-nav {
    display: none;
  }

  .guest-page .site-header .header-actions {
    width: auto;
  }

  .guest-page .login-status {
    display: none;
  }

  .guest-page .hero {
    width: calc(100% - 16px);
    min-height: 560px;
    margin-top: 8px;
    border-radius: 12px;
  }

  .guest-page .hero::before {
    background-position: 61% center;
  }

  .guest-page .hero::after {
    background:
      linear-gradient(0deg, rgba(250, 242, 231, 0.97) 0%, rgba(250, 242, 231, 0.82) 38%, rgba(250, 242, 231, 0.05) 68%),
      linear-gradient(90deg, rgba(250, 242, 231, 0.1), rgba(38, 33, 28, 0.08));
  }

  .guest-page .hero-content {
    align-self: end;
    width: calc(100% - 30px);
    margin: 0 15px 112px;
    padding: 0;
  }

  .guest-page .hero h1 {
    font-size: clamp(2.6rem, 11vw, 4.2rem);
  }

  .guest-page .hero-copy {
    color: #575149;
    font-size: 0.9rem;
  }

  .guest-page .hero-actions {
    display: none;
  }

  .guest-page .hero-strip {
    top: auto;
    right: 15px;
    bottom: 15px;
    left: 15px;
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guest-page .hero-strip div {
    padding: 10px 7px;
  }

  .guest-page .hero-strip div + div {
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .guest-page main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .guest-page main > .section[data-row-columns="1"] {
    grid-column: span 2;
    grid-row: auto;
  }

  .guest-page main > .section[data-row-columns="2"],
  .guest-page main > .section[data-row-columns="3"] {
    grid-column: span 1;
    grid-row: auto;
  }

  .guest-page .portal-shell {
    grid-template-columns: 1fr;
  }

  .rsvp-wizard-header {
    flex-direction: column;
  }

  .rsvp-progress {
    width: 100%;
    min-width: 0;
    justify-content: stretch;
  }

  .guest-page .guest-meal-row .course-grid {
    grid-template-columns: 1fr;
  }

  .meal-picker {
    display: grid;
    grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  }

  .meal-preview {
    height: 100%;
    aspect-ratio: auto;
  }

  .admin-page .site-header {
    position: sticky;
    top: 6px;
    bottom: auto;
    left: auto;
    width: calc(100% - 16px);
    min-height: 58px;
    margin: 6px auto 0;
    padding: 8px 14px;
    flex-direction: row;
    align-items: center;
    color: var(--ink);
    background: rgba(255, 253, 249, 0.95);
    border-color: var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
  }

  .admin-page .brand {
    padding: 0;
    color: var(--gold);
    border: 0;
  }

  .admin-page .main-nav {
    display: none;
  }

  .admin-page .admin-sidebar-actions {
    display: flex;
    width: auto;
    margin: 0 0 0 auto;
    gap: 6px;
  }

  .admin-page .admin-sidebar-actions .button {
    width: auto;
    margin: 0;
    color: var(--forest);
    background: #f5f0e8;
    border-color: var(--border);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-main .section {
    padding: 16px 10px;
  }

  .admin-page .admin-layout,
  .admin-page .admin-login-layout {
    grid-template-columns: 1fr;
  }

  .settings-admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-meal-grid {
    grid-template-columns: 1fr;
  }

  .admin-page .room-settings-form,
  .admin-page .table-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-management-block .guest-overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guest-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-security-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .meal-order-summary {
    grid-template-columns: 1fr;
  }

  .admin-page .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .admin-jump-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .admin-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 70px;
  }

  .inline-editor-toolbar {
    right: 8px;
    bottom: 74px;
    left: 8px;
    max-width: none;
    max-height: min(68vh, 540px);
    padding: 8px;
    flex-wrap: wrap;
  }

  .inline-editor-summary {
    width: 100%;
    margin: 0;
  }

  .inline-editor-toolbar .button {
    flex: 1 1 auto;
  }

  .inline-text-style-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-text-style-controls > #inlineStyleReset {
    grid-column: 1 / -1;
  }

  .is-inline-admin main > .section .section-heading {
    padding-top: 42px;
    padding-right: 0;
  }

  .tile-color-editor label > span {
    display: none;
  }

  .site-header .brand span:last-child {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .guest-page .site-header .button {
    min-height: 36px;
    padding: 7px 12px;
  }

  .login-gate {
    padding: 14px;
  }

  .login-gate-card {
    padding: 25px 18px;
  }

  .login-gate-card .inline-form {
    flex-direction: column;
  }

  .login-gate-card .button {
    width: 100%;
  }

  .guest-page .hero {
    min-height: 590px;
  }

  .guest-page .hero::before {
    background-position: 66% center;
  }

  .guest-page .hero-content {
    margin-bottom: 118px;
  }

  .guest-page .hero h1 {
    font-size: 2.75rem;
  }

  .guest-page main {
    display: flex;
    gap: 8px;
    width: calc(100% - 12px);
    margin-bottom: 10px;
  }

  .guest-page main > .section {
    width: 100%;
  }

  .guest-page main > .section > .section-inner {
    height: auto;
    min-height: 0 !important;
    padding: 15px;
    border-radius: 11px;
  }

  .guest-page #wetter > .section-inner,
  .guest-page .travel-section > .section-inner,
  .guest-page .timeline-section > .section-inner {
    min-height: 0;
  }

  .guest-page .section-heading {
    margin-bottom: 14px;
    text-align: center;
  }

  .guest-page .section-heading h2 {
    font-size: 1.3rem;
    text-transform: uppercase;
  }

  .guest-page .section-heading p:not(.eyebrow) {
    font-size: 0.82rem;
  }

  .rsvp-step {
    min-height: 0;
    padding: 17px;
  }

  .attendance-choice-grid,
  .attendance-list {
    grid-template-columns: 1fr;
  }

  .attendance-choice {
    min-height: 118px;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    place-items: center start;
    text-align: left;
  }

  .attendance-choice-icon {
    grid-row: 1 / 3;
    margin: 0;
  }

  .meal-picker {
    display: block;
  }

  .meal-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8;
  }

  .rsvp-progress li {
    overflow: hidden;
    font-size: 0;
  }

  .rsvp-review {
    grid-template-columns: 1fr;
  }

  .review-meta {
    grid-column: auto;
    flex-direction: column;
    gap: 5px;
  }

  .rsvp-wizard-actions {
    grid-template-columns: auto 1fr auto;
  }

  .rsvp-result-summary {
    grid-template-columns: 1fr;
  }

  .review-block li,
  .rsvp-result-guests li {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .review-block li span,
  .rsvp-result-guests li span {
    text-align: left;
  }

  .guest-page .info-grid,
  .guest-page .feature-grid,
  .guest-page .card-grid,
  .guest-page .photo-grid {
    grid-template-columns: 1fr;
  }

  .guest-page .info-tile,
  .guest-page .feature-grid article {
    min-height: 0;
  }

  .guest-page .course-grid {
    grid-template-columns: 1fr;
  }

  .guest-page .horizontal-heading {
    text-align: left;
  }

  .guest-page .horizontal-heading .section-heading,
  .guest-page .upload-box {
    text-align: left;
  }

  .site-footer {
    display: none;
  }

  .mobile-tabbar {
    position: fixed;
    right: 8px;
    bottom: 7px;
    left: 8px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 58px;
    padding: 5px 3px max(5px, env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, 0.96);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 -4px 20px rgba(62, 50, 38, 0.12);
    backdrop-filter: blur(14px);
  }

  .mobile-tabbar a {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    color: #625e57;
    font-size: 0.58rem;
    font-weight: 650;
    text-decoration: none;
  }

  .mobile-tabbar a span {
    color: var(--forest-soft);
    font-size: 1rem;
    line-height: 1.2;
  }

  .admin-page {
    padding-bottom: 70px;
  }

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

  .admin-main .section {
    padding: 8px 6px;
  }

  .admin-main .section-inner {
    padding: 14px;
    background: rgba(255, 253, 249, 0.96);
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: var(--shadow-soft);
  }

  .admin-main #adminLogin {
    min-height: calc(100vh - 80px);
  }

  .admin-page .section-heading {
    text-align: left;
  }

  .admin-page .summary-grid {
    gap: 8px;
  }

  .admin-page .summary-card {
    min-height: 104px;
    padding: 13px;
  }

  .admin-page .summary-card strong {
    font-size: 1.65rem;
  }

  .admin-page .admin-jump-grid {
    display: none;
  }

  .admin-page .admin-actions-top {
    width: 100%;
  }

  .admin-page .admin-actions-top .button {
    flex: 1 1 auto;
  }

  .admin-page .admin-panel {
    padding: 14px;
  }

  .settings-field-grid {
    grid-template-columns: 1fr;
  }

  .guest-management-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .guest-management-heading .button {
    width: 100%;
  }

  .guest-management-block .guest-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-editor-grid {
    grid-template-columns: 1fr;
  }

  .guest-editor-wide {
    grid-column: auto;
  }

  .guest-family-accordion > summary {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .guest-family-accordion > summary .side-badge {
    display: none;
  }

  .guest-family-summary-toggle {
    font-size: 0;
  }

  .guest-family-summary-toggle::after {
    font-size: 0.8rem;
    content: "⌄";
  }

  .admin-security-fields {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-sidebar-actions a {
    display: none;
  }

  .section-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-order-item {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .section-layout-controls {
    grid-column: 1 / -1;
  }

  .settings-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-form-footer .button {
    width: 100%;
  }

  .admin-page .room-preview {
    overflow-x: auto;
  }

  .admin-page .room-canvas {
    min-width: 560px;
  }

  .admin-page .room-settings-form,
  .admin-page .table-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-page .room-notes-field,
  .admin-page .table-decoration-field {
    grid-column: auto;
  }

  .admin-page .hall-preview-heading,
  .admin-page .table-list-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page .table-list-heading > .admin-actions {
    width: 100%;
  }

  .admin-page .table-list-heading > .admin-actions .button {
    flex: 1 1 180px;
  }

  .admin-page .table-summary {
    align-items: flex-start;
  }

  .admin-page .table-summary-main {
    min-width: 0;
  }

  .admin-page .table-summary-meta {
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
  }

  .admin-page .table-meal-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .admin-toast-region {
    right: 14px;
    bottom: 82px;
    left: 14px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
