:root {
  --bg-main: #f7f2ea;
  --bg-soft: #fbe7dd;
  --card-bg: #fffaf4;
  --text-main: #213028;
  --text-soft: #5b6a63;
  --line: #decec0;
  --accent: #7f9a75;
  --accent-deep: #5f7860;
  --blush: #f3d7c9;
  --shadow: 0 18px 36px rgba(68, 55, 37, 0.12);
  --card-ornament-line: rgba(127, 154, 117, 0.35);
  --card-ornament-dot: rgba(127, 154, 117, 0.22);
  --card-ornament-petal: rgba(243, 215, 201, 0.38);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 8%, rgba(243, 215, 201, 0.5), transparent 42%),
    radial-gradient(circle at 84% 4%, rgba(219, 232, 206, 0.48), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 241, 230, 0.7), transparent 48%),
    var(--bg-main);
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 12%, rgba(243, 215, 201, 0.48), transparent 36%),
    radial-gradient(circle at 86% 8%, rgba(219, 232, 206, 0.44), transparent 34%),
    var(--bg-main);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader-text {
  margin: 0;
  color: var(--accent-deep);
  font-family: "Edu NSW ACT Cursive", cursive;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: 0.07em;
}

.page-loader-text span {
  display: inline-block;
  animation: loader-bounce 1.05s ease-in-out infinite;
  animation-delay: var(--char-delay, 0ms);
}

.page-loader-text.is-exit span {
  animation: loader-word-out 280ms ease both;
}

.page-loader-text.is-enter span {
  animation: loader-word-in 320ms ease both;
}

@keyframes loader-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(-7px); opacity: 1; }
}

@keyframes loader-word-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
}

@keyframes loader-word-in {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 0.62s ease,
    transform 0.62s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 250, 244, 0) 0%, rgba(127, 154, 117, 0.1) 100%);
}

.background-glow::before,
.background-glow::after {
  content: "";
  position: absolute;
  width: min(40vw, 460px);
  height: min(40vw, 460px);
  border-radius: 44% 56% 60% 40%;
  opacity: 0.24;
  filter: blur(1px);
}

.background-glow::before {
  left: -9vw;
  top: 12vh;
  background: radial-gradient(circle at 30% 35%, #f6dfd0, transparent 60%);
}

.background-glow::after {
  right: -10vw;
  bottom: 8vh;
  background: radial-gradient(circle at 60% 45%, #dce8cb, transparent 62%);
}

.site-header {
  width: min(1060px, 92vw);
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: flex-end;
}

.language-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 30, 26, 0.42);
  backdrop-filter: blur(7px);
}

.language-overlay.is-hidden {
  display: none;
}

.language-overlay-card {
  width: min(500px, 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 1.7rem;
  text-align: center;
}

.language-overlay-card h2 {
  margin-bottom: 0.45rem;
}

.language-overlay-card p {
  margin-bottom: 1.2rem;
}

.language-overlay-actions {
  display: grid;
  gap: 0.65rem;
}

.overlay-lang-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-main);
  font-weight: 600;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.overlay-lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.25rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.page {
  width: min(1060px, 92vw);
  margin: 1.2rem auto 2.8rem;
  display: grid;
  gap: 1rem;
}

.public-page .card,
.public-page p,
.public-page h1,
.public-page h2 {
  text-align: center;
}

.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0, transparent 28%),
    radial-gradient(circle at 86% 80%, rgba(250, 232, 221, 0.55) 0, transparent 30%);
}

.card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--card-ornament-line) 70%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-ornament-dot) 35%, transparent);
  background:
    radial-gradient(circle at 14px 14px, var(--card-ornament-dot) 0 2px, transparent 2.5px) top left / 100% 100% no-repeat,
    radial-gradient(circle at calc(100% - 14px) 14px, var(--card-ornament-dot) 0 2px, transparent 2.5px) top left / 100% 100% no-repeat,
    radial-gradient(circle at 14px calc(100% - 14px), var(--card-ornament-dot) 0 2px, transparent 2.5px) top left / 100% 100% no-repeat,
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--card-ornament-dot) 0 2px, transparent 2.5px) top left / 100% 100% no-repeat,
    radial-gradient(circle at 22px 22px, var(--card-ornament-petal) 0 8px, transparent 9px) top left / 100% 100% no-repeat,
    radial-gradient(circle at calc(100% - 22px) 22px, var(--card-ornament-petal) 0 8px, transparent 9px) top left / 100% 100% no-repeat,
    radial-gradient(circle at 22px calc(100% - 22px), var(--card-ornament-petal) 0 8px, transparent 9px) top left / 100% 100% no-repeat,
    radial-gradient(circle at calc(100% - 22px) calc(100% - 22px), var(--card-ornament-petal) 0 8px, transparent 9px) top left / 100% 100% no-repeat;
}

.map-card::before {
  display: none;
}

.admin-auth-card::before,
.admin-page .card::before {
  display: none;
}

.map-card::after,
.countdown::after {
  background: none;
}

.hero {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.8rem) clamp(1.2rem, 4vw, 4rem);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.95), rgba(255, 244, 236, 0.95));
}

.eyebrow {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

h1,
h2 {
  margin-top: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.1;
}

.hero h1,
.countdown h2,
.schedule h2,
#rsvp > h2,
h2[data-i18n="howToGetTitle"],
.site-footer p {
  font-family: "Edu NSW ACT Cursive", cursive;
  font-weight: 400;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.1rem);
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.8vw, 3.2rem);
}

h1 span {
  color: var(--accent);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin-bottom: 0.9rem;
}

p {
  margin-top: 0;
  color: var(--text-soft);
}

.hero-date {
  font-size: 1.05rem;
}

.hero-message {
  margin-bottom: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--accent), #89a97e);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.button:hover {
  background: linear-gradient(135deg, var(--accent-deep), #73906e);
  border-color: var(--accent-deep);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
}

.admin-row-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .overlay-lang-btn:hover,
  .lang-btn:hover,
  .admin-row-btn:hover,
  a[href]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(68, 55, 37, 0.12);
  }
}

.button:focus-visible,
.overlay-lang-btn:focus-visible,
.lang-btn:focus-visible,
.admin-row-btn:focus-visible,
a[href]:focus-visible {
  outline: 2px solid rgba(125, 148, 119, 0.55);
  outline-offset: 2px;
}

.countdown p {
  margin-bottom: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.countdown-unit {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.75rem 0.35rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(251, 231, 221, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 20px rgba(68, 55, 37, 0.08);
}

.countdown-value {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--accent-deep);
  font-weight: 700;
}

.countdown-label {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.details-grid .card {
  min-height: 100%;
}

.map-frame-wrap {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.schedule ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.2rem 0;
  position: relative;
}

.schedule ul::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(127, 154, 117, 0.75) 0 8px,
      rgba(127, 154, 117, 0.15) 8px 16px
    );
  border-radius: 999px;
}

.schedule li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  align-items: center;
  gap: 1rem;
  justify-content: start;
  width: calc(50% - 1.2rem);
  margin: 0.5rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(68, 55, 37, 0.08);
  position: relative;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.schedule li:last-child {
  border-bottom: 0;
}

.schedule li:nth-child(odd) {
  margin-right: auto;
  border-radius: 18px 18px 18px 8px;
}

.schedule li:nth-child(even) {
  margin-left: auto;
  border-radius: 18px 18px 8px 18px;
}

.schedule li::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(127, 154, 117, 0.18);
}

.schedule li.is-visible::before {
  animation: timeline-pulse 3.2s ease-in-out infinite;
}

.schedule li:nth-child(2).is-visible::before {
  animation-delay: 0.35s;
}

.schedule li:nth-child(3).is-visible::before {
  animation-delay: 0.7s;
}

.schedule li:nth-child(4).is-visible::before {
  animation-delay: 1.05s;
}

@keyframes timeline-pulse {
  0%, 78%, 100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 4px rgba(127, 154, 117, 0.18);
  }
  86% {
    transform: translateY(-50%) scale(1.16);
    box-shadow:
      0 0 0 4px rgba(127, 154, 117, 0.2),
      0 0 0 10px rgba(127, 154, 117, 0.16);
  }
}

.schedule li:nth-child(odd)::before {
  right: -1.5rem;
}

.schedule li:nth-child(even)::before {
  left: -1.5rem;
}

.schedule li::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 18px;
  border-top: 2px dotted rgba(127, 154, 117, 0.5);
  border-radius: 40px;
  transform: translateY(-50%);
}

.schedule li:nth-child(odd)::after {
  right: -1.25rem;
}

.schedule li:nth-child(even)::after {
  left: -1.25rem;
}

.schedule li.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.schedule span {
  min-width: 0;
  font-weight: 700;
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.26rem;
  line-height: 1;
}

.schedule strong {
  color: var(--text-main);
  font-size: 0.98rem;
}

.public-page .schedule,
.public-page .schedule h2,
.public-page .schedule li,
.public-page .schedule strong {
  text-align: left;
}

.public-page .details-grid .schedule {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rsvp-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.transport-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.transport-list li {
  color: var(--text-main);
  padding: 0.35rem 0;
}

.rsvp-form {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.rsvp-form label {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: min(100%, 640px);
  max-width: min(100%, 640px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--text-main);
  background: #fff;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: 2px solid rgba(125, 148, 119, 0.38);
  border-color: var(--accent);
}

.rsvp-form button {
  margin-top: 0.35rem;
  justify-self: center;
}

.rsvp-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  width: min(100%, 640px);
}

.rsvp-code-row .button {
  white-space: nowrap;
  border-radius: 999px;
}

.rsvp-guests-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin-top: 0.25rem;
  width: min(100%, 640px);
}

.rsvp-party-name {
  margin: 0 0 0.55rem;
  color: var(--text-main);
  font-weight: 600;
}

.rsvp-guests-list {
  display: grid;
  gap: 0.55rem;
  text-align: left;
}

.rsvp-guest-option {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  align-items: center;
  column-gap: 0.55rem;
  color: var(--text-main);
  justify-content: flex-start;
  text-align: left;
}

.rsvp-guest-option input[type="checkbox"],
.rsvp-guest-option input[type="radio"] {
  margin: 0;
}

.rsvp-guest-option span {
  white-space: nowrap;
}

.rsvp-single-choice {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.rsvp-single-choice label {
  margin: 0;
  font-weight: 500;
}

.public-page .rsvp-guests-panel,
.public-page .rsvp-guests-list,
.public-page .rsvp-guest-option,
.public-page .rsvp-party-name,
.public-page .rsvp-single-choice {
  text-align: left;
  justify-content: flex-start;
}

.rsvp-status {
  margin: 0.45rem 0 0;
  min-height: 1.4rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.rsvp-status.is-success-animated {
  animation: rsvp-success-pop 0.62s ease;
}

.rsvp-status.is-success-animated::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #89a97e);
  box-shadow: 0 6px 12px rgba(68, 55, 37, 0.12);
}

@keyframes rsvp-success-pop {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.rsvp-form.is-complete > :not(#rsvp-status) {
  display: none !important;
}

.rsvp-form.is-complete #rsvp-status {
  margin-top: 0;
  text-align: center;
}

.rsvp-message-separator {
  display: block;
  width: 84px;
  height: 1px;
  margin: 0.7rem auto 0.7rem;
  background: var(--line);
}

.rsvp-contact-note {
  display: inline;
  font-weight: 400;
  color: var(--text-soft);
}

#rsvp.is-complete > h2,
#rsvp.is-complete > p {
  display: none;
}

.admin-page {
  margin-top: 2rem;
}

.admin-auth-card {
  width: min(460px, 92vw);
  margin: 2.4rem auto 0;
  font-size: 0.92rem;
}

.admin-auth-card h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  margin-bottom: 0.45rem;
}

.admin-auth-card > p {
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.admin-auth-form {
  display: grid;
  gap: 0.55rem;
}

.admin-auth-form label {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.58rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #fff;
}

.admin-auth-form .button {
  font-size: 0.9rem;
  padding: 0.62rem 1rem;
}

.admin-auth-status {
  margin: 0.5rem 0 0;
  min-height: 1.2rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.admin-header h1 {
  margin-bottom: 0.45rem;
}

.admin-form {
  display: grid;
  gap: 0.55rem;
}

.admin-form label {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.68rem 0.8rem;
  font: inherit;
  color: var(--text-main);
  background: #fff;
}

.admin-form input[readonly] {
  background: #f6f6f4;
  color: #6a726d;
  cursor: not-allowed;
}

.guest-fields {
  display: grid;
  gap: 0.45rem;
}

.plus-one-option-row {
  margin-top: 0.25rem;
}

.plus-one-option-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
}

.guest-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.55rem;
}

.guest-status-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  background: #fff;
  color: var(--text-main);
}

.admin-form-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-status {
  margin: 0.75rem 0 0;
  min-height: 1.2rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.admin-duplicate-alert {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e0b4b4;
  border-radius: 10px;
  background: #fff3f3;
  color: #8a3b3b;
  font-weight: 600;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.metric-card p {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--accent-deep);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.7rem;
  text-align: left;
  color: var(--text-main);
}

.admin-table th {
  font-weight: 700;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line);
}

.admin-table td {
  border-bottom: 0;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.admin-table tr.invitation-start-row td {
  border-top: 1px solid var(--line);
}

.admin-row-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  padding: 0.35rem 0.55rem;
  margin-right: 0.25rem;
  cursor: pointer;
}

.admin-row-btn.danger {
  color: #8a3b3b;
  border-color: #deb4b4;
}

.guest-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0.1rem 0.2rem 0.1rem 0;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.2;
}

.guest-badge.is-attending {
  border-color: #9ccba7;
  background: #edf8f0;
  color: #2f6a3d;
}

.guest-badge.is-not-attending {
  border-color: #e2b4b4;
  background: #fff1f1;
  color: #8a3b3b;
}

.guest-badge.is-unknown {
  border-color: #e2d49a;
  background: #fff9e8;
  color: #7a6727;
}

.site-footer {
  width: min(1060px, 92vw);
  margin: 0 auto 2rem;
  text-align: right;
  color: var(--text-soft);
}

.site-footer p {
  font-size: clamp(0.5rem, 4vw, 1.7rem);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .page-loader-text span,
  .reveal-on-scroll,
  .schedule li {
    transition: none;
    animation: none;
  }

  .reveal-on-scroll,
  .schedule li {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 850px) {
  .details-grid {
    grid-template-columns: 1fr;
  }

  .schedule ul::before {
    left: 9px;
    transform: none;
  }

  .schedule li {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 14px;
    grid-template-columns: 4.3rem 1fr;
    padding-left: 1rem;
  }

  .schedule li:nth-child(odd),
  .schedule li:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
    border-radius: 14px;
  }

  .schedule li::before {
    left: -8px;
    right: auto;
  }

  .schedule li::after {
    left: -2px;
    right: auto;
  }

  .map-frame {
    min-height: 480px;
  }

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

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

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

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