@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Crimson+Text:wght@400;600;700&family=Inter:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&family=Nunito:wght@400;600;700;800&family=Playfair+Display:wght@500;600;700&family=Source+Sans+3:wght@400;600;700;800&display=swap');

:root {
  --white: #ffffff;
  --ivory: #fffdf9;
  --soft-ivory: #fbf7f1;
  --blush: #f7eceb;
  --blush-2: #f2dddd;
  --rose: #b98286;
  --rose-deep: #8f5d62;
  --champagne: #d7c49e;
  --champagne-soft: #eee4cf;
  --ink: #2f2926;
  --muted: #786c66;
  --line: rgba(143, 93, 98, 0.16);
  --line-gold: rgba(215, 196, 158, 0.42);
  --shadow-soft: 0 14px 34px rgba(80, 60, 52, 0.07);
  --shadow-hover: 0 18px 42px rgba(80, 60, 52, 0.10);
  --header-ornament-bg: var(--ivory);
  --font-body: 'Inter', Arial, sans-serif;
  --font-wedding-body: 'Crimson Text', Georgia, serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --card-radius: 28px;
  --control-radius: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-wedding-body);
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(247, 236, 235, 0.72), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(238, 228, 207, 0.62), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fffdf9 42%, #fbf7f1 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(215, 196, 158, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 196, 158, 0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  opacity: 0.22;
  z-index: -1;
}

header {
  position: relative;
  overflow: hidden;
  padding: 66px 18px 58px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,253,249,0.9)),
    radial-gradient(circle at center top, rgba(247, 236, 235, 0.9), transparent 42%);
  border-bottom: 1px solid var(--line-gold);
}

header::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(460px, 72vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

header::after {
  content: '\2661';
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  color: var(--rose);
  background: var(--header-ornament-bg);
  padding: 0 12px;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1;
}

header h1 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  color: var(--ink);
  letter-spacing: 0.4px;
}

header p {
  display: inline-block;
  margin: 0;
  color: var(--muted);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(18px, 2.4vw, 24px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.6px;
}

main {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 28px auto 36px;
  padding: 0 18px;
}

.card {
  position: relative;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 247, 0.84));
  border: 1px solid var(--line-gold);
  border-radius: min(var(--card-radius), 20px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(247, 236, 235, 0.9);
  border-radius: 22px;
  pointer-events: none;
}

h2,
h3 {
  margin-top: 0;
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 600;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(31px, 5vw, 46px);
  line-height: 1.04;
}

h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--rose), transparent);
}

h3 {
  font-size: 23px;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.card > p,
.card > div > p {
  text-wrap: pretty;
}

button,
.nav-link,
.big-button {
  -webkit-tap-highlight-color: transparent;
}

button {
  margin: 5px 6px 5px 0;
  padding: 13px 20px;
  border: 1px solid rgba(143, 93, 98, 0.22);
  border-radius: var(--control-radius);
  background: var(--white);
  color: var(--rose-deep);
  box-shadow: 0 8px 18px rgba(80, 60, 52, 0.06);
  cursor: pointer;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

button:hover {
  transform: translateY(-2px);
  background: #fff8f8;
  box-shadow: var(--shadow-hover);
}

input {
  width: 100%;
  max-width: 500px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(215, 196, 158, 0.52);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.9);
  color: var(--ink);
  box-shadow: inset 0 2px 9px rgba(80, 60, 52, 0.035);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  outline: none;
}

input:focus {
  border-color: rgba(185, 130, 134, 0.58);
  box-shadow: 0 0 0 4px rgba(247, 236, 235, 0.9);
}

input[type='file'] {
  max-width: none;
  border-radius: 18px;
  background: #fff;
}

textarea {
  width: 100%;
  min-height: 180px;
  margin: 8px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(215, 196, 158, 0.52);
  border-radius: 12px;
  background-color: rgba(255, 253, 249, 0.92);
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 31px,
    rgba(215, 196, 158, 0.18) 31px 32px
  );
  color: var(--ink);
  box-shadow: inset 0 2px 9px rgba(80, 60, 52, 0.035);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.72;
  resize: vertical;
  outline: none;
}

textarea:focus {
  border-color: rgba(185, 130, 134, 0.58);
  box-shadow: 0 0 0 4px rgba(247, 236, 235, 0.9);
}

label,
.wish-form label {
  display: block;
  margin: 18px 0 8px;
  color: var(--rose-deep);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

label input,
label textarea,
label select {
  margin-top: 7px;
}

select {
  min-height: 50px;
  padding: 12px 40px 12px 16px;
  border: 1px solid rgba(215, 196, 158, 0.52);
  border-radius: 10px;
  background-color: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
}

.wishbook-card {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.wishbook-heading h2 {
  margin-bottom: 4px;
}

.wishbook-heading p {
  margin: 0;
}

.wishbook-motion {
  position: relative;
  width: 76px;
  height: 56px;
  flex: 0 0 auto;
}

.wishbook-heart {
  position: absolute;
  color: var(--rose-deep);
  opacity: 0.72;
  animation: wishbookHeartPulse 3s ease-in-out infinite;
}

.wishbook-heart-one {
  left: 6px;
  bottom: 6px;
  font-size: 12px;
}

.wishbook-heart-two {
  left: 24px;
  bottom: 13px;
  font-size: 16px;
  animation-delay: 0.8s;
}

.wishbook-heart-three {
  right: 2px;
  top: -6px;
  font-size: 24px;
  animation-delay: 1.5s;
}

.wish-page-preview {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line-gold);
  text-align: center;
}

.wish-page-preview[hidden] {
  display: none;
}

.wish-page-preview h3,
.wish-page-preview p {
  margin-bottom: 10px;
}

.wish-page-preview img {
  display: block;
  width: min(100%, 620px);
  height: auto;
  margin: 18px auto;
  border: 8px solid var(--white);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(80, 60, 52, 0.14);
}

.wish-page-preview-frame {
  display: block;
  width: min(100%, 760px);
  aspect-ratio: 1 / 1.414;
  margin: 18px auto;
  border: 1px solid var(--line-gold);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(80, 60, 52, 0.12);
}

.wish-page-preview .nav-link {
  width: fit-content;
  margin: 0 auto;
}

.video-wish-cta {
  display: block;
  margin: 16px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--rose-deep);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(80, 60, 52, 0.045);
}

.video-wish-cta:hover {
  transform: translateY(-2px);
  background: var(--white);
  box-shadow: var(--shadow-hover);
}

@keyframes wishbookHeartPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.62;
  }
  50% {
    transform: translateY(-4px) scale(1.08);
    opacity: 0.98;
  }
}

.camera-panel {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px dashed rgba(185, 130, 134, 0.42);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.upload-helper-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
}

.upload-helper-row .small-note {
  flex: 1 1 260px;
  margin: 0;
}

.camera-preview {
  display: none;
  width: 100%;
  max-height: 360px;
  margin-top: 12px;
  border: 8px solid var(--white);
  border-radius: 22px;
  background: #111;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(80, 60, 52, 0.09);
}

.camera-preview.active {
  display: block;
}

.hidden-canvas {
  display: none;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 24px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-decoration: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(80, 60, 52, 0.045);
  transition: 0.18s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  color: var(--rose-deep);
  background: var(--white);
  box-shadow: var(--shadow-hover);
}

.top-nav .nav-link:not([href="/guest"]),
.extras-launcher .nav-link {
  margin: 0;
  min-height: 50px;
  padding: 15px 24px;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--white);
  color: var(--rose-deep);
  box-shadow: 0 8px 18px rgba(80, 60, 52, 0.06);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.top-nav .nav-link:not([href="/guest"]):hover,
.top-nav .nav-link:not([href="/guest"]):focus-visible,
.extras-launcher .nav-link:hover,
.extras-launcher .nav-link:focus-visible {
  transform: translateY(-2px);
  background: #fff8f8;
  box-shadow: var(--shadow-hover);
}

.top-nav .nav-link-current:not([href="/guest"]),
.top-nav .nav-link[aria-current="page"]:not([href="/guest"]) {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(80, 60, 52, 0.12);
}

.top-nav .nav-link[href="/guest"] {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  min-height: 36px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.82);
}

.front-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.front-menu a.big-button,
.big-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 136px;
  padding: 26px 18px;
  border: 1px solid var(--line-gold);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,250,250,0.92)),
    radial-gradient(circle at top, rgba(247,236,235,0.8), transparent 70%);
  color: var(--rose-deep);
  box-shadow: var(--shadow-soft);
  text-align: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: clamp(27px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.05;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.front-menu a.big-button:hover,
.big-button:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 130, 134, 0.38);
  box-shadow: var(--shadow-hover);
}

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

.myevent-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line-gold);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(80, 60, 52, 0.05);
}

.myevent-copy h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.myevent-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.myevent-button {
  min-height: 88px;
  font-size: 28px;
}

.guestlist-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.guestlist-primary-heading { margin-bottom: 8px; }

.guestlist-status-line { margin: 10px 2px 0; min-height: 18px; }

.guestlist-main-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.guestlist-main-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 83, 91, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.guestlist-main-action:hover,
.guestlist-main-action:focus-visible {
  background: rgba(126, 83, 91, 0.12);
  border-color: rgba(126, 83, 91, 0.42);
}

.guestlist-invitation-link {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(126, 83, 91, 0.2);
}

.guestlist-link-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.guestlist-link-heading h3,
.guestlist-link-heading p { margin: 0; }
.guestlist-link-heading p { margin-top: 4px; font-size: 13px; }

.guest-import-dialog-form { display: grid; gap: 15px; }
.guestlist-settings-card { max-width: 760px; }
.invitation-pdf-heading { margin-top: 28px; }
.guestlist-pdf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.guestlist-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guestlist-link-grid {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.guestlist-link-output input[readonly] {
  background: rgba(255, 255, 255, 0.82);
}

.guestlist-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(15 * 42px + 48px);
  margin-top: 18px;
  padding-bottom: 8px;
  scrollbar-gutter: stable;
}

.guestlist-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0 3px;
}

.guestlist-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0 6px 5px;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.guestlist-table td {
  padding: 7px 6px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.55);
}

.guestlist-table td:first-child {
  border-radius: 8px 0 0 8px;
}

.guestlist-table td:last-child {
  border-radius: 0 8px 8px 0;
}

.guestlist-id-cell code {
  font-size: 12px;
  word-break: break-all;
}

.guestlist-number {
  text-align: center;
  white-space: nowrap;
  font-size: 11px;
}

.guestlist-table td:first-child {
  font-size: 12px;
  font-weight: 600;
}

.guestlist-number strong {
  font-weight: 700;
  font-size: 11px;
}

.guestlist-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.guestlist-badge.on {
  background: rgba(84, 139, 95, 0.14);
  color: #2d6a38;
}

.guestlist-badge.off {
  background: rgba(180, 79, 79, 0.12);
  color: #8d3232;
}

.guestlist-badge.pending {
  background: rgba(215, 196, 158, 0.22);
  color: #7b6428;
}

.guestlist-badge.accepted {
  background: rgba(84, 139, 95, 0.14);
  color: #2d6a38;
}

.guestlist-badge.rejected {
  background: rgba(180, 79, 79, 0.12);
  color: #8d3232;
}

.guestlist-stack {
  display: grid;
  gap: 8px;
}

.guestlist-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guestlist-action-button {
  min-width: 0;
  margin: 0;
  padding: 7px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.guestlist-action-button.active {
  background: var(--rose-deep);
  color: white;
}

.guestlist-csv-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 18px;
  margin-top: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}

.guestlist-csv-import h3,
.guest-extra-heading h3 {
  margin: 0 0 5px;
}

.guestlist-csv-import p,
.guest-extra-heading + p {
  margin: 0;
}

.guestlist-csv-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guestlist-csv-controls button {
  flex: 0 0 auto;
  margin: 0;
}

.guestlist-csv-import > .small-note {
  grid-column: 1 / -1;
}

.guest-action-cell {
  position: relative;
}

.guest-action-menu {
  position: relative;
}

.guest-action-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line-gold);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.guest-action-menu summary::-webkit-details-marker {
  display: none;
}

.guest-action-menu summary::after {
  content: "▾";
  margin-left: 7px;
  font-size: 10px;
}

.guest-action-popover {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 6px);
  right: 0;
  display: grid;
  width: 220px;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.guest-action-popover button {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
}

.guest-action-popover hr {
  width: 100%;
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--line-gold);
}

.guest-action-label,
.guest-action-meta {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.guest-delete-button {
  color: #8d3232;
}

.guest-details-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(45, 34, 32, 0.28);
}

.guest-details-dialog::backdrop {
  background: rgba(35, 27, 28, 0.58);
  backdrop-filter: blur(4px);
}

.guest-action-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(45, 34, 32, 0.28);
}

.guest-action-dialog::backdrop {
  background: rgba(35, 27, 28, 0.58);
  backdrop-filter: blur(4px);
}

.guest-action-sheet {
  padding: 22px;
}

.guest-action-sheet-content {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.guest-action-sheet-content section {
  display: grid;
  gap: 9px;
  padding-top: 15px;
  border-top: 1px solid var(--line-gold);
}

.guest-action-sheet-content h3 {
  margin: 0;
  font-size: 17px;
}

.guest-action-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.guest-action-sheet-list {
  display: grid;
  gap: 7px;
}

.guest-action-sheet button {
  width: 100%;
  min-height: 44px;
  margin: 0;
}

.guest-action-sheet .guest-dialog-close {
  width: 38px;
  min-height: 38px;
}

.guest-details-dialog form {
  padding: 24px;
}

.guest-details-heading,
.guest-extra-heading,
.guest-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.guest-details-heading h2,
.guest-details-kicker {
  margin: 0;
}

.guest-details-kicker {
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.guest-dialog-close,
.guest-extra-remove {
  width: 38px;
  min-width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.guest-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.guest-details-wide {
  grid-column: 1 / -1;
}

.guest-extra-heading {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-gold);
}

.guest-extra-fields {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.guest-extra-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(180px, 1.3fr) 38px;
  gap: 8px;
}

.guest-operational-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.guest-operational-info div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.guest-operational-info span {
  color: var(--muted);
  font-size: 11px;
}

.guest-operational-info strong,
.guest-operational-info code {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.guest-dialog-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .guestlist-main-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .guestlist-main-action { min-height: 38px; font-size: 12px; }

  .guestlist-table-wrap {
    max-height: calc(15 * 34px + 42px);
    margin-top: 14px;
  }

  .guestlist-table {
    min-width: 100%;
    border-spacing: 0 2px;
  }

  .guestlist-table th {
    padding: 0 4px 4px;
    font-size: 10px;
  }

  .guestlist-table td {
    padding: 6px 4px;
  }

  .guestlist-table td:first-child {
    font-size: 11px;
  }

  .guestlist-number,
  .guestlist-number strong {
    font-size: 10px;
  }

  .guestlist-badge {
    min-width: 56px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .guestlist-action-button {
    padding: 5px 7px;
    font-size: 10px;
    min-height: 0;
  }

  .guestlist-csv-import {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .guestlist-csv-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .guest-details-dialog form {
    padding: 18px;
  }

  .guest-action-dialog {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 16px);
    margin: 0;
    border-radius: 8px;
  }

  .guest-action-sheet {
    padding: 18px;
  }

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

  .guest-details-grid,
  .guest-operational-info {
    grid-template-columns: 1fr;
  }

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

  .guest-extra-row .guest-extra-name {
    grid-column: 1 / -1;
  }

  .guest-dialog-close,
  .guest-extra-remove,
  .guest-extra-heading .guestlist-action-button,
  .guest-dialog-actions button {
    width: auto;
  }
}

.guestlist-note-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
}

.guestlist-note-row .guestlist-button-row {
  width: 100%;
}

.welcome-photo {
  display: none;
  width: min(92%, 760px);
  max-height: 380px;
  margin: 0 auto 12px;
  border: 10px solid var(--white);
  border-radius: 30px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.guest-home-hero {
  text-align: center;
}

.welcome-note {
  position: relative;
  padding: 20px 22px;
  border: 1px solid rgba(215, 196, 158, 0.38);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,253,249,0.9));
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500;
  line-height: 1.52;
  text-align: center;
  white-space: pre-line;
  text-wrap: balance;
}

.wish-message,
.rsvp-status-note,
#welcomeNote,
#writtenWishMessage,
#videoWishMessage {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.wish-message {
  font-size: 20px;
  line-height: 1.65;
}

table,
code,
.guestlist-table,
.guest-operational-info,
.admin-media-card-footer,
.slideshow-command-status {
  font-family: 'Inter', Arial, sans-serif;
}

.welcome-note::before {
  content: '\201C';
  display: block;
  height: 24px;
  margin-bottom: 8px;
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 0.8;
  opacity: 0.72;
}

.welcome-note::after {
  content: '';
  display: block;
  width: 64px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.top-nav:not(.admin-home-grid) .nav-link:not([href="/guest"]) {
  min-height: 50px;
  padding: 12px 20px;
  font-size: 20px;
}

.top-nav:not(.admin-home-grid) .nav-link[href="/guest"] {
  min-height: 30px;
  padding: 7px 12px;
}

.welcome-popup-open {
  overflow: hidden;
}

.welcome-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(40, 28, 30, 0.34);
  backdrop-filter: blur(5px);
}

.welcome-popup-overlay[hidden] {
  display: none !important;
}

.welcome-popup {
  position: relative;
  width: min(680px, calc(100vw - 24px));
  padding: 30px 26px 24px;
  border: 1px solid rgba(215, 196, 158, 0.42);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,251,247,0.95));
  box-shadow: 0 24px 64px rgba(48, 33, 35, 0.18);
}

.welcome-popup h2 {
  margin: 0 0 14px;
  padding-left: 26px;
  text-align: center;
}

.welcome-popup-close {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 12px;
  right: 12px;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--rose-deep);
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  z-index: 2;
}

.welcome-popup-note {
  margin: 0;
}

@media (max-width: 760px) {
  .top-nav:not(.admin-home-grid) .nav-link:not([href="/guest"]) {
    min-height: 44px;
    padding: 9px 14px;
    font-size: 17px;
  }

  .top-nav:not(.admin-home-grid) .nav-link[href="/guest"] {
    min-height: 25px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .guest-home-page .welcome-photo {
    width: min(94%, 660px);
    max-height: 320px;
  }

  .welcome-popup {
    width: min(680px, calc(100vw - 20px));
    padding: 26px 18px 18px;
  }

  .welcome-popup h2 {
    padding-left: 18px;
    font-size: 28px;
  }

  .welcome-popup-close {
    top: 10px;
    right: 10px;
  }
}

.guest-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.guest {
  padding: 14px 16px;
  border: 1px solid rgba(215, 196, 158, 0.38);
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 8px 20px rgba(80, 60, 52, 0.045);
}

.guest.found {
  border-color: rgba(185, 130, 134, 0.42);
  background: #fff7f7;
  color: var(--rose-deep);
  font-weight: 700;
}

.table-names-grid,
.sitting-plan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.table-name-card {
  padding: 18px;
  border: 1px solid var(--line-gold);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(80, 60, 52, 0.045);
}

.table-name-card h3 {
  margin: 0 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(215, 196, 158, 0.32);
  color: var(--rose-deep);
  font-size: 22px;
}

.table-name-card ul {
  margin: 0;
  padding-left: 18px;
}

.table-name-card li {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
}

.seat {
  min-height: 96px;
  padding: 21px 12px;
  border: 1px solid var(--line-gold);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(80, 60, 52, 0.045);
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: 0.18s ease;
}

.seat:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 130, 134, 0.38);
  background: #fffafa;
  box-shadow: var(--shadow-hover);
}

.seat.vip {
  border-color: rgba(215, 196, 158, 0.68);
  background: linear-gradient(180deg, #fffdf9, #fff9ec);
}

.seat.selected {
  border-color: rgba(185, 130, 134, 0.65);
  background: #fff4f4;
  color: var(--rose-deep);
  box-shadow: 0 14px 30px rgba(185, 130, 134, 0.13);
}

.seat small {
  color: var(--muted);
  font-weight: 500;
}

#tableInfo {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  color: var(--rose-deep);
  font-weight: 700;
}

.upload-box {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(215, 196, 158, 0.52);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.76), rgba(255,248,247,0.62));
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.44);
}

.upload-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.upload-heading h2 {
  margin-bottom: 4px;
}

.upload-heading p {
  margin: 0;
}

.upload-motion {
  position: relative;
  width: 84px;
  height: 54px;
  flex: 0 0 auto;
}

.upload-motion-camera {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 44px;
  height: 28px;
  border: 2px solid rgba(143, 93, 98, 0.7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.upload-motion-camera::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 8px;
  width: 16px;
  height: 8px;
  border: 2px solid rgba(143, 93, 98, 0.7);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.72);
}

.upload-motion-lens {
  position: absolute;
  top: 6px;
  left: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(143, 93, 98, 0.78);
  background: rgba(245, 238, 231, 0.92);
}

.upload-motion-flash {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(143, 93, 98, 0.46);
  animation: uploadFlashPulse 2.8s ease-in-out infinite;
}

.upload-motion-spark {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 228, 151, 0.95);
  box-shadow: 0 0 12px rgba(255, 228, 151, 0.65);
  opacity: 0;
  animation: uploadSparkFlash 2.8s ease-in-out infinite;
}

.upload-motion-spark-one {
  top: 2px;
  right: 22px;
  width: 10px;
  height: 10px;
}

.upload-motion-spark-two {
  top: 12px;
  right: 8px;
  width: 7px;
  height: 7px;
  animation-delay: 0.18s;
}

.global-upload-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 14, 16, 0.42);
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.global-upload-overlay[hidden] {
  display: none;
}

.global-upload-panel {
  width: min(100%, 420px);
  padding: 24px 22px 20px;
  border: 1px solid rgba(215, 196, 158, 0.62);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,246,0.95));
  box-shadow: 0 24px 60px rgba(42, 28, 31, 0.28);
  text-align: center;
}

.global-upload-spinner {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border: 4px solid rgba(215, 196, 158, 0.25);
  border-top-color: var(--rose-deep);
  border-right-color: var(--champagne);
  border-radius: 50%;
  animation: globalUploadSpin 1s linear infinite;
}

.global-upload-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.06;
}

.global-upload-detail {
  margin: 0;
  color: var(--muted);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
}

body.upload-overlay-open {
  overflow: hidden;
}

@keyframes globalUploadSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.upload-activity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.upload-activity[hidden] {
  display: none;
}

.upload-activity-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 42px;
}

.upload-activity-icon span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--rose-deep);
  animation: uploadPulse 900ms ease-in-out infinite;
}

.upload-activity-icon span:nth-child(2) {
  animation-delay: 120ms;
}

.upload-activity-icon span:nth-child(3) {
  animation-delay: 240ms;
}

.upload-activity .small-note {
  margin: 0;
}

@keyframes uploadPulse {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

@keyframes uploadFlashPulse {
  0%, 68%, 100% {
    transform: scale(1);
    background: rgba(143, 93, 98, 0.46);
    box-shadow: none;
  }
  74% {
    transform: scale(1.35);
    background: rgba(255, 245, 210, 1);
    box-shadow: 0 0 12px rgba(255, 233, 168, 0.9);
  }
  82% {
    transform: scale(1);
    background: rgba(143, 93, 98, 0.58);
    box-shadow: none;
  }
}

@keyframes uploadSparkFlash {
  0%, 66%, 100% {
    opacity: 0;
    transform: scale(0.7);
  }
  74% {
    opacity: 1;
    transform: scale(1.15);
  }
  84% {
    opacity: 0;
    transform: scale(0.85);
  }
}

.preview-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.gallery-view-switch {
  display: inline-flex;
  gap: 8px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 16px 0 10px;
}

.gallery-metonight-wrap {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.gallery-metonight-link {
  min-height: 46px;
  margin: 0;
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: rgba(255, 253, 249, 0.94);
}

.gallery-refresh-button {
  min-width: 138px;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
}

.gallery-view-switch .view-toggle {
  width: 46px;
  min-width: 46px;
  padding: 0;
}

.view-toggle.active {
  background: var(--rose-deep);
  color: var(--white);
}

.view-icon {
  display: grid;
  gap: 3px;
}

.view-icon-single {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.view-icon-grid-four {
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
}

.view-icon-grid-nine {
  grid-template-columns: repeat(3, 5px);
  grid-template-rows: repeat(3, 5px);
  gap: 2px;
}

.view-icon-grid-four span,
.view-icon-grid-nine span {
  display: block;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.view-icon-grid-nine span {
  border-width: 1.5px;
  border-radius: 2px;
}

.gallery-grid.feed-view {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  scroll-snap-type: y proximity;
}

.gallery-grid.feed-view .gallery-feed-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  scroll-snap-align: start;
  padding: 0;
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(80, 60, 52, 0.06);
}

.gallery-grid.feed-view img,
.gallery-grid.feed-view video {
  height: 100%;
  max-height: none;
  border-width: 0;
  border-radius: 14px;
  object-fit: cover;
}

.gallery-grid.grid-view {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  max-width: none;
}

.gallery-grid.grid-two-view {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-width: none;
}

.gallery-grid.grid-view .gallery-feed-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gallery-grid.grid-two-view .gallery-feed-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gallery-grid.grid-view img,
.gallery-grid.grid-two-view img,
.gallery-grid.grid-view video {
  height: 100%;
  border-width: 0;
  border-radius: 14px;
}

.gallery-grid.grid-two-view video {
  height: 100%;
  border-width: 0;
  border-radius: 14px;
}

.preview-grid img,
.preview-grid video,
.gallery-grid img,
.gallery-grid video {
  width: 100%;
  height: 205px;
  border: 8px solid var(--white);
  border-radius: 24px;
  background: #151515;
  box-shadow: 0 12px 28px rgba(80, 60, 52, 0.09);
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.gallery-grid img:hover,
.gallery-grid video:hover {
  transform: translateY(-3px);
  opacity: 0.92;
  box-shadow: var(--shadow-hover);
}

body.gallery-viewer-open {
  overflow: hidden;
}

.gallery-viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 36px);
  background: rgba(250, 247, 244, 0.96);
  backdrop-filter: blur(12px);
}

.gallery-viewer.active {
  display: flex;
}

.gallery-viewer-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1120px);
  height: min(84vh, 780px);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  perspective: 1400px;
}

.gallery-viewer-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  filter: blur(1px) saturate(0.98);
  transition:
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease,
    filter 560ms ease;
}

.gallery-viewer-layer.is-current {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1);
}

.gallery-viewer-layer.is-next {
  opacity: 0;
  transform: translateY(34px) scale(0.97);
}

.gallery-viewer-layer.is-next.is-current {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1);
}

.gallery-viewer-layer.is-outgoing {
  opacity: 0;
  transform: translateY(-24px) scale(0.975) rotateX(7deg);
  filter: blur(1.2px) saturate(0.96);
}

.gallery-viewer-media {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 18px 50px rgba(80, 60, 52, 0.16);
  object-fit: contain;
  touch-action: pan-x pan-y pinch-zoom;
}

.gallery-viewer-stage img {
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-viewer-close,
.gallery-viewer-nav {
  position: fixed;
  z-index: 9001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--rose-deep);
  box-shadow: 0 10px 24px rgba(80, 60, 52, 0.12);
}

.gallery-viewer-close {
  top: 18px;
  right: 18px;
}

.gallery-viewer-nav {
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
}

.gallery-viewer-prev {
  top: 18px;
}

.gallery-viewer-next {
  bottom: 18px;
}

.gallery-viewer-counter {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 700;
}

.slideshow-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line-gold);
  border-radius: 26px;
  background: rgba(255,255,255,0.70);
}

#slideshowContent {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 250px;
  color: var(--muted);
  text-align: center;
}

#slideshowContent img,
#slideshowContent video {
  max-width: 100%;
  max-height: 540px;
  border-radius: 24px;
  background: black;
  box-shadow: 0 14px 34px rgba(80, 60, 52, 0.10);
}

.slideshow-controls {
  margin-top: 16px;
  text-align: center;
}

.status-ok {
  color: #6a8e6a;
  font-weight: 700;
}

.status-info {
  color: var(--rose-deep);
  font-weight: 700;
}

.small-note {
  color: var(--muted);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
}

.language-switch {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  gap: 6px;
}

.lang-button {
  width: auto !important;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(143, 93, 98, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--rose-deep);
  box-shadow: none;
  font-size: 12px;
  letter-spacing: 0.8px;
}

.lang-button:hover {
  box-shadow: none;
  transform: translateY(-1px);
  background: var(--white);
}

.lang-button.active {
  background: var(--rose-deep);
  color: white;
}

.fullscreen-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: black;
  cursor: none;
}

.fullscreen-overlay.active {
  display: flex;
}

.fullscreen-media {
  width: 100vw;
  height: 100vh;
  background: black;
  object-fit: contain;
}

.fullscreen-qr {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10001;
  padding: 8px;
  border-radius: 10px;
  background: white;
  opacity: 0.85;
}

.fullscreen-qr-text {
  margin-top: 4px;
  color: black;
  font-size: 10px;
  text-align: center;
}

.fullscreen-hint {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 10001;
  color: white;
  font-size: 12px;
  opacity: 0.35;
}

footer {
  padding: 30px 20px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.3px;
  text-align: center;
}

@media (max-width: 900px) {
  .sitting-plan,
  .table-names-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  header {
    padding: 54px 14px 48px;
  }

  header h1 {
    font-size: 48px;
  }

  header p {
    font-size: 12px;
    letter-spacing: 2.4px;
  }

  main {
    margin-top: 18px;
    padding: 0 12px;
  }

  .card {
    padding: 20px;
    border-radius: 22px;
  }

  .front-menu,
  .guest-list,
  .sitting-plan,
  .table-names-grid,
  .preview-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-controls {
    align-items: stretch;
    justify-content: flex-start;
  }

  .gallery-view-switch {
    width: 100%;
    justify-content: center;
  }

  .gallery-metonight-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 0;
    border-left: 0;
    justify-content: center;
  }

  .gallery-metonight-link {
    width: 100%;
  }

  .gallery-refresh-button {
    width: 100%;
  }

  .gallery-grid.grid-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .gallery-viewer-stage {
    width: min(94vw, 1120px);
    height: min(78vh, 780px);
  }

  .gallery-viewer-layer {
    padding: 10px;
  }

  .front-menu a.big-button,
  .big-button {
    min-height: 110px;
    font-size: 28px;
  }

  .myevent-grid {
    grid-template-columns: 1fr;
  }

  .myevent-button {
    min-height: 82px;
  }

  .guestlist-form-grid {
    grid-template-columns: 1fr;
  }

  .guestlist-link-grid {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
  }

  .language-switch {
    top: 10px;
    right: 10px;
  }

  .top-nav {
    gap: 8px;
  }

  .extras-launcher .nav-link {
    min-height: 52px;
    padding: 14px 16px;
    font-size: 16px;
  }

  .top-nav .nav-link[href="/guest"] {
    top: 10px;
    left: 10px;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px;
  }

  .lang-button {
    width: auto !important;
    padding: 7px 9px;
    font-size: 11px;
  }

  .fullscreen-qr {
    right: 10px;
    bottom: 10px;
    transform: scale(0.85);
    transform-origin: bottom right;
  }
}

/* Sitting plan: compact search beside subtitle */
.sitting-subtitle-search-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
}

.sitting-subtitle-search-row .sitting-subtitle {
  flex: 1 1 320px;
  margin: 0;
}

.sitting-inline-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 420px;
}

.sitting-inline-search input {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 420px;
  margin-bottom: 0;
  padding: 12px 16px;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.search-result {
  margin-top: 12px;
  color: var(--rose-deep);
  font-weight: 700;
}

@media (max-width: 900px) {
  .sitting-subtitle-search-row {
    flex-direction: column;
  }

  .sitting-inline-search {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sitting-inline-search input {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .sitting-inline-search {
    display: grid;
    grid-template-columns: 1fr;
  }

}


/* Sitting plan: title + search in one clean top row */
.sitting-title-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.sitting-title-search-row h2 {
  margin-bottom: 0;
}

.sitting-title-search-row p {
  margin: 6px 0 0;
}

.sitting-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 250, 0.82));
  box-shadow: 0 12px 28px rgba(80, 60, 52, 0.06);
}

.sitting-mode-button {
  min-width: 0;
  margin: 0;
  padding: 10px 16px;
  border: none;
  outline: none;
  border-radius: 999px;
  background: transparent;
  color: var(--rose-deep);
  font-size: 13px;
  box-shadow: none;
  white-space: nowrap;
}

.sitting-mode-button.active {
  background: var(--rose-deep);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(122, 70, 79, 0.22);
}

.sitting-layout-link {
  margin-left: 2px;
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--rose-deep);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  box-shadow: none;
  text-decoration: none;
  white-space: nowrap;
}

.sitting-table-block[hidden],
.sitting-alphabetical-block[hidden] {
  display: none;
}

.sitting-alpha-search {
  margin-top: 12px;
}

.personal-sitting-card {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(185, 130, 134, 0.38);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 250, 250, 0.96), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at top right, rgba(215, 196, 158, 0.22), transparent 42%);
  box-shadow: 0 14px 32px rgba(185, 130, 134, 0.12);
}

.personal-sitting-card p {
  margin: 0;
  color: var(--rose-deep);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

.table-name-card.search-match,
.seat.search-match {
  border-color: rgba(185, 130, 134, 0.72);
  background: linear-gradient(180deg, #fffafa, #fff6f6);
  box-shadow: 0 14px 34px rgba(185, 130, 134, 0.18);
}

.seat.search-match {
  transform: translateY(-2px);
}

.table-name-card li.matched-name {
  color: var(--rose-deep);
  font-weight: 800;
}

.table-name-card mark {
  padding: 1px 4px;
  border-radius: 7px;
  background: rgba(215, 196, 158, 0.44);
  color: var(--rose-deep);
}

@media (max-width: 900px) {
  .sitting-title-search-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .sitting-mode-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .sitting-mode-button {
    flex: 1 1 0;
  }

  .personal-sitting-card p {
    font-size: 23px;
  }
}


/* WishBook split forms */
.wishbook-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.wish-type-card {
  padding: 22px;
  border: 1px solid var(--line-gold);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(80, 60, 52, 0.045);
}

.wish-type-card h3 {
  color: var(--rose-deep);
}

.possible-match-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.possible-match-chip {
  width: auto;
  margin: 0;
  padding: 9px 13px;
  border-color: rgba(185, 130, 134, 0.36);
  background: #fffafa;
  font-size: 13px;
}

@media (max-width: 900px) {
  .wishbook-split {
    grid-template-columns: 1fr;
  }
}

/* Mobile sitting-plan search cleanup */
@media (max-width: 760px) {
  .sitting-title-search-row {
    display: block;
    margin-bottom: 12px;
    gap: 0;
  }

  .sitting-title-search-row h2 {
    margin: 0 0 8px;
    line-height: 1.15;
  }

  .sitting-inline-search {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .sitting-inline-search input {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 11px 13px;
    font-size: 15px;
    box-sizing: border-box;
  }

  .search-result {
    margin-top: 8px;
    margin-bottom: 10px;
  }

  .sitting-mode-switch {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
    justify-content: stretch;
  }

  .sitting-mode-button {
    width: 100%;
    padding: 11px 10px;
  }

  .possible-match-list {
    margin-top: 8px;
  }
}

/* Shared aesthetic options */
html[data-theme='classic-gold'] {
  --font-body: 'Inter', Arial, sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
}

html[data-theme='classic-ink'] {
  --white: #ffffff;
  --ivory: #ffffff;
  --soft-ivory: #f6f6f3;
  --blush: #eeeeea;
  --blush-2: #deded8;
  --rose: #383838;
  --rose-deep: #111111;
  --champagne: #b8b8ad;
  --champagne-soft: #ededE8;
  --ink: #121212;
  --muted: #5a5a55;
  --line: rgba(18, 18, 18, 0.12);
  --line-gold: rgba(18, 18, 18, 0.18);
  --shadow-soft: 0 12px 32px rgba(18, 18, 18, 0.06);
  --shadow-hover: 0 16px 38px rgba(18, 18, 18, 0.10);
  --header-ornament-bg: #f8f8f5;
  --font-body: 'Inter', Arial, sans-serif;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --card-radius: 18px;
  --control-radius: 999px;
}

html[data-theme='classic-ink'] body {
  background:
    radial-gradient(circle at 10% 0%, rgba(238, 238, 234, 0.7), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8f8f5 48%, #eeeeea 100%);
}

html[data-theme='classic-ink'] header {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,248,245,0.94));
}

html[data-theme='minimal'] {
  --white: #ffffff;
  --ivory: #ffffff;
  --soft-ivory: #f8f8f6;
  --blush: #f0f0ec;
  --blush-2: #e6e5df;
  --rose: #77746b;
  --rose-deep: #393832;
  --champagne: #c9c5b8;
  --champagne-soft: #efeee9;
  --ink: #252522;
  --muted: #686862;
  --line: rgba(90, 90, 82, 0.14);
  --line-gold: rgba(90, 90, 82, 0.18);
  --shadow-soft: none;
  --shadow-hover: 0 12px 28px rgba(40, 40, 36, 0.08);
  --header-ornament-bg: #ffffff;
  --font-body: 'Inter', Arial, sans-serif;
  --font-heading: 'Inter', Arial, sans-serif;
  --card-radius: 12px;
  --control-radius: 8px;
}

html[data-theme='minimal'] body {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f4 100%);
}

html[data-theme='minimal'] header h1,
html[data-theme='minimal'] h2,
html[data-theme='minimal'] h3 {
  font-weight: 500;
  letter-spacing: 0;
}

html[data-theme='minimal'] header h1 {
  font-size: clamp(36px, 6vw, 62px);
}

html[data-theme='minimal'] header,
html[data-theme='minimal'] .card,
html[data-theme='minimal'] .table-name-card,
html[data-theme='minimal'] .seat,
html[data-theme='minimal'] .upload-box,
html[data-theme='minimal'] .slideshow-box,
html[data-theme='minimal'] .welcome-note {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

html[data-theme='minimal-editorial'] {
  --white: #fffefa;
  --ivory: #fbfaf4;
  --soft-ivory: #f3f0e7;
  --blush: #eee8dd;
  --blush-2: #ded3c5;
  --rose: #7d6957;
  --rose-deep: #2f2923;
  --champagne: #a99477;
  --champagne-soft: #e8decf;
  --ink: #221f1b;
  --muted: #675f55;
  --line: rgba(47, 41, 35, 0.14);
  --line-gold: rgba(169, 148, 119, 0.28);
  --shadow-soft: 0 10px 26px rgba(47, 41, 35, 0.055);
  --shadow-hover: 0 14px 30px rgba(47, 41, 35, 0.09);
  --font-body: 'Inter', Arial, sans-serif;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --card-radius: 4px;
  --control-radius: 2px;
}

html[data-theme='minimal-editorial'] body {
  background: linear-gradient(180deg, #fffefa 0%, #f3f0e7 100%);
}

html[data-theme='minimal-editorial'] header h1,
html[data-theme='minimal-editorial'] h2,
html[data-theme='minimal-editorial'] h3 {
  letter-spacing: 0;
}

html[data-theme='pastel-blush'] {
  --ivory: #fffdfd;
  --soft-ivory: #fbf9ff;
  --blush: #ffe8f0;
  --blush-2: #e5f4ff;
  --rose: #c67aa0;
  --rose-deep: #815277;
  --champagne: #a6d8cc;
  --champagne-soft: #e6f7f2;
  --ink: #342b3c;
  --muted: #70677a;
  --line: rgba(129, 82, 119, 0.15);
  --line-gold: rgba(166, 216, 204, 0.46);
  --shadow-soft: 0 16px 36px rgba(129, 82, 119, 0.09);
  --shadow-hover: 0 18px 44px rgba(129, 82, 119, 0.14);
  --font-body: 'Nunito', Arial, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --card-radius: 30px;
  --control-radius: 999px;
}

html[data-theme='pastel-blush'] body {
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 232, 240, 0.82), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(229, 244, 255, 0.82), transparent 30%),
    linear-gradient(180deg, #fffdfd 0%, #fbf9ff 48%, #eefaf7 100%);
}

html[data-theme='pastel-blush'] header h1 {
  font-weight: 700;
}

html[data-theme='pastel-garden'] {
  --white: #ffffff;
  --ivory: #fcfffb;
  --soft-ivory: #f4fbf2;
  --blush: #e8f7e5;
  --blush-2: #efe7ff;
  --rose: #8493c8;
  --rose-deep: #526548;
  --champagne: #b7d8a8;
  --champagne-soft: #e8f5e2;
  --ink: #263326;
  --muted: #667260;
  --line: rgba(82, 101, 72, 0.14);
  --line-gold: rgba(132, 147, 200, 0.32);
  --shadow-soft: 0 16px 36px rgba(82, 101, 72, 0.08);
  --shadow-hover: 0 18px 44px rgba(82, 101, 72, 0.13);
  --font-body: 'Nunito', Arial, sans-serif;
  --font-heading: 'Crimson Text', Georgia, serif;
  --card-radius: 18px;
  --control-radius: 14px;
}

html[data-theme='pastel-garden'] body {
  background:
    radial-gradient(circle at 12% 4%, rgba(232, 247, 229, 0.9), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(239, 231, 255, 0.74), transparent 30%),
    linear-gradient(180deg, #fcfffb 0%, #f4fbf2 48%, #f8f3ff 100%);
}

html[data-theme='soft-paper'] {
  --white: #ffffff;
  --ivory: #fffdf8;
  --soft-ivory: #f7f1e8;
  --blush: #f1e7db;
  --blush-2: #e2d3c1;
  --rose: #9b8263;
  --rose-deep: #5a4632;
  --champagne: #c7ab79;
  --champagne-soft: #efe1c9;
  --ink: #2a241c;
  --muted: #6b5d4d;
  --line: rgba(90, 70, 50, 0.12);
  --line-gold: rgba(199, 171, 121, 0.35);
  --shadow-soft: 0 12px 28px rgba(90, 70, 50, 0.06);
  --shadow-hover: 0 16px 34px rgba(90, 70, 50, 0.09);
  --font-body: 'Source Sans 3', Arial, sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --card-radius: 22px;
  --control-radius: 12px;
}

html[data-theme='soft-paper'] body {
  background:
    radial-gradient(circle at 12% 4%, rgba(241, 231, 219, 0.84), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(239, 225, 201, 0.66), transparent 28%),
    linear-gradient(180deg, #fffefb 0%, #f7f1e8 52%, #efe1c9 100%);
}

html[data-theme='soft-paper'] header h1,
html[data-theme='soft-paper'] h2,
html[data-theme='soft-paper'] h3 {
  letter-spacing: 0;
  font-weight: 600;
}

html[data-theme='blue-hour'] {
  --white: #ffffff;
  --ivory: #fcfdff;
  --soft-ivory: #eef3fb;
  --blush: #dde8f7;
  --blush-2: #c6d8ee;
  --rose: #49678d;
  --rose-deep: #20334d;
  --champagne: #8ca9c8;
  --champagne-soft: #d8e6f4;
  --ink: #182433;
  --muted: #5d6c7f;
  --line: rgba(32, 51, 77, 0.12);
  --line-gold: rgba(73, 103, 141, 0.28);
  --shadow-soft: 0 14px 32px rgba(32, 51, 77, 0.08);
  --shadow-hover: 0 18px 42px rgba(32, 51, 77, 0.12);
  --header-ornament-bg: #eef3fb;
  --font-body: 'Source Sans 3', Arial, sans-serif;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --card-radius: 16px;
  --control-radius: 10px;
}

html[data-theme='blue-hour'] body {
  background:
    radial-gradient(circle at 14% 6%, rgba(221, 232, 247, 0.9), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(140, 169, 200, 0.58), transparent 28%),
    linear-gradient(180deg, #fcfdff 0%, #eef3fb 48%, #d8e6f4 100%);
}

html[data-theme='blue-hour'] header {
  background:
    linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(238, 243, 251, 0.94)),
    radial-gradient(circle at center top, rgba(140, 169, 200, 0.28), transparent 42%);
}

html[data-theme='blue-hour'] header h1,
html[data-theme='blue-hour'] h2,
html[data-theme='blue-hour'] h3 {
  letter-spacing: 0;
}

html[data-theme='rose-ink'] {
  --white: #ffffff;
  --ivory: #fffdfd;
  --soft-ivory: #f7eef0;
  --blush: #eedde1;
  --blush-2: #ddc1c9;
  --rose: #8d5f6a;
  --rose-deep: #35262d;
  --champagne: #b08a95;
  --champagne-soft: #ead8dc;
  --ink: #251d21;
  --muted: #6c5960;
  --line: rgba(53, 38, 45, 0.12);
  --line-gold: rgba(141, 95, 106, 0.28);
  --shadow-soft: 0 14px 34px rgba(53, 38, 45, 0.08);
  --shadow-hover: 0 18px 42px rgba(53, 38, 45, 0.13);
  --header-ornament-bg: #f7eef0;
  --font-body: 'Inter', Arial, sans-serif;
  --font-heading: 'Crimson Text', Georgia, serif;
  --card-radius: 26px;
  --control-radius: 18px;
}

html[data-theme='rose-ink'] body {
  background:
    radial-gradient(circle at 10% 4%, rgba(238, 221, 225, 0.82), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(232, 216, 220, 0.8), transparent 28%),
    linear-gradient(180deg, #fffdfd 0%, #f7eef0 48%, #ead8dc 100%);
}

html[data-theme='rose-ink'] header {
  background:
    linear-gradient(180deg, rgba(255, 253, 253, 0.98), rgba(247, 238, 240, 0.95)),
    radial-gradient(circle at center top, rgba(141, 95, 106, 0.18), transparent 42%);
}

html[data-theme='birthday-confetti'] {
  --white: #ffffff;
  --ivory: #fffdf8;
  --soft-ivory: #fff4e8;
  --blush: #ffe5ef;
  --blush-2: #e5f5ff;
  --rose: #ff6a8c;
  --rose-deep: #7b3450;
  --champagne: #ffcb5d;
  --champagne-soft: #fff0c6;
  --ink: #2f2530;
  --muted: #6f6070;
  --line: rgba(123, 52, 80, 0.12);
  --line-gold: rgba(255, 203, 93, 0.32);
  --shadow-soft: 0 16px 36px rgba(123, 52, 80, 0.08);
  --shadow-hover: 0 20px 42px rgba(123, 52, 80, 0.14);
  --font-body: 'Nunito', Arial, sans-serif;
  --font-heading: 'Fredoka', 'Nunito', Arial, sans-serif;
  --card-radius: 24px;
  --control-radius: 999px;
}

html[data-theme='birthday-confetti'] body {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 203, 93, 0.34), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(117, 201, 255, 0.30), transparent 24%),
    linear-gradient(180deg, #fffdf8 0%, #fff4e8 52%, #ffe5ef 100%);
}

html[data-theme='birthday-cake'] {
  --white: #ffffff;
  --ivory: #fffaf6;
  --soft-ivory: #fff0e6;
  --blush: #ffd9cf;
  --blush-2: #fff2d7;
  --rose: #d1786f;
  --rose-deep: #6f3d39;
  --champagne: #f3b87a;
  --champagne-soft: #ffe8c9;
  --ink: #312521;
  --muted: #745d55;
  --line: rgba(111, 61, 57, 0.12);
  --line-gold: rgba(243, 184, 122, 0.34);
  --shadow-soft: 0 14px 32px rgba(111, 61, 57, 0.08);
  --shadow-hover: 0 18px 42px rgba(111, 61, 57, 0.12);
  --font-body: 'Source Sans 3', Arial, sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --card-radius: 28px;
  --control-radius: 999px;
}

html[data-theme='birthday-cake'] body {
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 242, 215, 0.85), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(255, 217, 207, 0.84), transparent 26%),
    linear-gradient(180deg, #fffaf6 0%, #fff0e6 50%, #ffe8cc 100%);
}

html[data-theme='birthday-balloon'] {
  --white: #ffffff;
  --ivory: #fcffff;
  --soft-ivory: #eef8ff;
  --blush: #e5f2ff;
  --blush-2: #efe5ff;
  --rose: #6c89c8;
  --rose-deep: #2b426d;
  --champagne: #96c7e8;
  --champagne-soft: #ddecfa;
  --ink: #20304f;
  --muted: #5f708f;
  --line: rgba(43, 66, 109, 0.12);
  --line-gold: rgba(150, 199, 232, 0.34);
  --shadow-soft: 0 14px 34px rgba(43, 66, 109, 0.08);
  --shadow-hover: 0 18px 42px rgba(43, 66, 109, 0.12);
  --font-body: 'Nunito', Arial, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --card-radius: 20px;
  --control-radius: 14px;
}

html[data-theme='birthday-balloon'] body {
  background:
    radial-gradient(circle at 10% 8%, rgba(230, 242, 255, 0.92), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(239, 229, 255, 0.84), transparent 26%),
    linear-gradient(180deg, #fcffff 0%, #eef8ff 52%, #e5f2ff 100%);
}

html[data-theme='business-slate'] {
  --white: #ffffff;
  --ivory: #fbfcfd;
  --soft-ivory: #eef2f6;
  --blush: #dce4eb;
  --blush-2: #cfd9e3;
  --rose: #5e7487;
  --rose-deep: #1f2d3a;
  --champagne: #8da0b1;
  --champagne-soft: #dfe8ef;
  --ink: #18222d;
  --muted: #5e6c78;
  --line: rgba(31, 45, 58, 0.11);
  --line-gold: rgba(94, 116, 135, 0.24);
  --shadow-soft: 0 12px 30px rgba(31, 45, 58, 0.07);
  --shadow-hover: 0 16px 36px rgba(31, 45, 58, 0.1);
  --font-body: 'Inter', Arial, sans-serif;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --card-radius: 12px;
  --control-radius: 8px;
}

html[data-theme='business-slate'] body {
  background:
    radial-gradient(circle at 12% 4%, rgba(220, 228, 235, 0.85), transparent 26%),
    linear-gradient(180deg, #fbfcfd 0%, #eef2f6 52%, #dde6ed 100%);
}

html[data-theme='business-cobalt'] {
  --white: #ffffff;
  --ivory: #fbfdff;
  --soft-ivory: #eef4ff;
  --blush: #d7e2f6;
  --blush-2: #c6d6f1;
  --rose: #4f78c8;
  --rose-deep: #213a68;
  --champagne: #6f95d8;
  --champagne-soft: #dbe7fb;
  --ink: #18253a;
  --muted: #5c6e89;
  --line: rgba(33, 58, 104, 0.12);
  --line-gold: rgba(111, 149, 216, 0.28);
  --shadow-soft: 0 14px 32px rgba(33, 58, 104, 0.08);
  --shadow-hover: 0 18px 42px rgba(33, 58, 104, 0.12);
  --font-body: 'Source Sans 3', Arial, sans-serif;
  --font-heading: 'Inter', Arial, sans-serif;
  --card-radius: 16px;
  --control-radius: 10px;
}

html[data-theme='business-cobalt'] body {
  background:
    radial-gradient(circle at 10% 8%, rgba(219, 231, 251, 0.86), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(111, 149, 216, 0.36), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #eef4ff 52%, #dbe7fb 100%);
}

html[data-theme='business-graphite'] {
  --white: #ffffff;
  --ivory: #fcfcfc;
  --soft-ivory: #f1f3f5;
  --blush: #e0e4e8;
  --blush-2: #d0d6db;
  --rose: #6a7077;
  --rose-deep: #1e2328;
  --champagne: #9fa6ad;
  --champagne-soft: #e4e8ec;
  --ink: #1d2227;
  --muted: #626b74;
  --line: rgba(30, 35, 40, 0.11);
  --line-gold: rgba(159, 166, 173, 0.24);
  --shadow-soft: 0 12px 28px rgba(30, 35, 40, 0.07);
  --shadow-hover: 0 16px 34px rgba(30, 35, 40, 0.1);
  --font-body: 'Inter', Arial, sans-serif;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --card-radius: 14px;
  --control-radius: 10px;
}

html[data-theme='business-graphite'] body {
  background:
    radial-gradient(circle at 12% 6%, rgba(224, 228, 232, 0.86), transparent 26%),
    linear-gradient(180deg, #fcfcfc 0%, #f1f3f5 52%, #e0e4e8 100%);
}

html[data-theme='general-sand'] {
  --white: #ffffff;
  --ivory: #fffdf9;
  --soft-ivory: #f6eee2;
  --blush: #eadcc6;
  --blush-2: #dfcfb1;
  --rose: #9a7d5f;
  --rose-deep: #4f4031;
  --champagne: #c3a67a;
  --champagne-soft: #efe2cc;
  --ink: #2b241c;
  --muted: #6d5f51;
  --line: rgba(79, 64, 49, 0.12);
  --line-gold: rgba(195, 166, 122, 0.28);
  --shadow-soft: 0 12px 30px rgba(79, 64, 49, 0.07);
  --shadow-hover: 0 16px 36px rgba(79, 64, 49, 0.11);
  --font-body: 'Source Sans 3', Arial, sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --card-radius: 20px;
  --control-radius: 14px;
}

html[data-theme='general-sand'] body {
  background:
    radial-gradient(circle at 10% 6%, rgba(242, 231, 214, 0.8), transparent 26%),
    linear-gradient(180deg, #fffdf9 0%, #f6eee2 52%, #eadcc6 100%);
}

html[data-theme='general-forest'] {
  --white: #ffffff;
  --ivory: #fbfef9;
  --soft-ivory: #eef5ea;
  --blush: #dbe6d7;
  --blush-2: #cddcc7;
  --rose: #6f8b67;
  --rose-deep: #243426;
  --champagne: #9db68f;
  --champagne-soft: #deead8;
  --ink: #1e2b21;
  --muted: #5d6f60;
  --line: rgba(36, 52, 38, 0.12);
  --line-gold: rgba(157, 182, 143, 0.28);
  --shadow-soft: 0 12px 30px rgba(36, 52, 38, 0.07);
  --shadow-hover: 0 16px 36px rgba(36, 52, 38, 0.11);
  --font-body: 'Inter', Arial, sans-serif;
  --font-heading: 'Crimson Text', Georgia, serif;
  --card-radius: 18px;
  --control-radius: 12px;
}

html[data-theme='general-forest'] body {
  background:
    radial-gradient(circle at 12% 6%, rgba(222, 234, 216, 0.88), transparent 28%),
    linear-gradient(180deg, #fbfef9 0%, #eef5ea 52%, #dbe6d7 100%);
}

html[data-theme='general-ink'] {
  --white: #ffffff;
  --ivory: #fcfcfc;
  --soft-ivory: #f5f5f5;
  --blush: #ececec;
  --blush-2: #dedede;
  --rose: #666666;
  --rose-deep: #111111;
  --champagne: #999999;
  --champagne-soft: #e9e9e9;
  --ink: #141414;
  --muted: #5b5b5b;
  --line: rgba(17, 17, 17, 0.12);
  --line-gold: rgba(17, 17, 17, 0.18);
  --shadow-soft: 0 12px 30px rgba(17, 17, 17, 0.06);
  --shadow-hover: 0 16px 36px rgba(17, 17, 17, 0.09);
  --font-body: 'Inter', Arial, sans-serif;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --card-radius: 10px;
  --control-radius: 8px;
}

html[data-theme='general-ink'] body {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

/* Admin Page */
.admin-home-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  width: 96px;
  min-width: 96px;
  min-height: 29px;
  padding: 6px 14px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
}

.admin-return-home {
  position: fixed;
  top: 49px;
  left: 16px;
  z-index: 10;
  width: 96px;
  min-width: 96px;
  min-height: 29px;
  padding: 6px 14px;
  font-size: 19px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.86);
}

.admin-logout-button {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-login-card {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.admin-shell {
  max-width: 1240px;
}

.admin-home-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.admin-home-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-home-row-pair,
.admin-home-row-tools {
  flex-wrap: nowrap;
}

.admin-tabs {
  align-items: center;
}

.admin-subtabs {
  margin: 18px 0 22px;
  justify-content: flex-start;
}

.admin-tab {
  width: auto;
  margin: 0;
}

.admin-tab-compact,
.admin-tab-link-compact {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 13px;
}

.top-nav .admin-tab-link.admin-tab-link-compact {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 13px;
}

.admin-home-grid > .admin-tab-compact,
.admin-home-row > .admin-tab-compact,
.admin-home-row > .admin-tab-link-compact {
  box-sizing: border-box;
}

.admin-home-row-pair > .admin-tab-compact {
  min-width: 108px;
}

.admin-home-row-tools > .admin-tab-compact,
.admin-home-row-tools > .admin-tab-link-compact {
  min-width: 118px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 12px;
}

.top-nav .admin-home-row-tools > .admin-tab-link.admin-tab-link-compact {
  min-width: 118px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 12px;
}

.admin-subtab {
  min-height: 44px;
}

.admin-tab-link {
  min-height: 45px;
  margin: 0;
}

.admin-tab.active,
.theme-choice.active {
  background: var(--rose-deep);
  color: white;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-subpanel {
  display: none;
  padding: 22px 22px 18px;
  border: 1px solid var(--line-gold);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.32);
}

.admin-subpanel.active {
  display: block;
}

.admin-subpanel > :first-child {
  margin-top: 0;
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-heading p {
  margin-bottom: 0;
}

.admin-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-media-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

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

.admin-media-card,
.video-wish-card,
.admin-detail {
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(80, 60, 52, 0.045);
}

.admin-media-card img,
.video-wish-card video,
.admin-wish-media img,
.admin-welcome-preview {
  width: 100%;
  border: 8px solid var(--white);
  background: #111;
  object-fit: cover;
}

.admin-media-card img {
  height: 190px;
}

.gallery-media-card {
  border: 3px solid rgba(63, 148, 78, 0.72);
  box-shadow: 0 10px 24px rgba(63, 148, 78, 0.14);
}

.gallery-media-card img {
  border-color: #3f944e;
}

.filtered-media-card {
  border: 3px solid rgba(190, 65, 65, 0.72);
  box-shadow: 0 10px 24px rgba(190, 65, 65, 0.14);
}

.filtered-media-card img {
  border-color: #be4141;
}

.admin-media-columns > div:first-child h3 {
  color: #4f8d52;
}

.admin-media-columns > div:last-child h3 {
  color: #b44a4a;
}

.admin-media-card-footer {
  padding: 12px;
}

.admin-media-card-footer small {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.admin-media-card-footer button {
  width: 100%;
  margin-top: 10px;
}

.admin-split-view {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.admin-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.wish-list-item {
  width: 100%;
  margin: 0;
  border-radius: 18px;
  text-align: left;
}

.wish-list-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.wish-list-item.active {
  background: #fff4f4;
  color: var(--rose-deep);
}

.admin-detail {
  min-height: 260px;
  padding: 22px;
}

.empty-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.wish-message {
  margin: 14px 0;
  color: var(--ink);
  line-height: 1.7;
}

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

.admin-wish-media img {
  height: 220px;
  border-radius: 20px;
}

.admin-video-grid {
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-wish-card {
  padding: 14px;
}

.video-wish-card video {
  height: 220px;
  border-radius: 18px;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-setting-group {
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.admin-setting-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--rose-deep);
  font-weight: 700;
}

.admin-inline-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.admin-inline-edit input {
  max-width: none;
  margin: 0;
}

.admin-inline-edit button {
  margin: 0;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.admin-settings-grid label,
.admin-checkbox-row {
  display: grid;
  gap: 7px;
  color: var(--rose-deep);
  font-weight: 700;
}

.admin-settings-grid input {
  max-width: none;
  margin: 0;
}

.admin-seating-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-seating-stat,
.admin-seating-table-card,
.admin-seating-guest-card,
.admin-seating-create {
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(80, 60, 52, 0.045);
}

.admin-seating-stat {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.admin-seating-stat strong {
  font-size: 28px;
  color: var(--rose-deep);
}

.admin-seating-stat span {
  color: var(--muted);
  font-size: 13px;
}

.admin-seating-create {
  margin-top: 18px;
  padding: 18px;
}

.admin-seating-create-grid {
  margin-bottom: 12px;
}

.admin-seating-create-note {
  grid-column: 1 / -1;
}

.admin-seating-search {
  margin-bottom: 12px;
}

.admin-seating-search input {
  max-width: none;
  margin: 0;
}

.admin-seating-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-seating-guest-assign {
  margin-top: 0;
  margin-bottom: 16px;
  padding: 14px 15px;
}

.admin-seating-guest-assign-grid {
  margin-bottom: 10px;
}

.admin-seating-table-grid,
.admin-seating-guest-list {
  display: grid;
  gap: 10px;
}

.admin-seating-table-card {
  padding: 14px 15px;
}

.admin-seating-table-card.drop-target {
  border-color: rgba(63, 148, 78, 0.72);
  box-shadow: 0 12px 28px rgba(63, 148, 78, 0.16);
}

.admin-seating-table-card.over-capacity {
  border-color: rgba(190, 65, 65, 0.72);
  box-shadow: 0 10px 24px rgba(190, 65, 65, 0.12);
}

.admin-seating-table-card.pseudo-table {
  background: rgba(251, 248, 244, 0.94);
}

.admin-seating-table-header h4 {
  margin: 0 0 4px;
  color: var(--rose-deep);
}

.admin-seating-table-header p {
  margin: 0;
}

.admin-seating-table-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.admin-seating-table-header-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.admin-seating-table-header h4 {
  margin: 0;
}

.admin-seating-table-occupancy {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 238, 231, 0.92);
  border: 1px solid rgba(215, 196, 158, 0.28);
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 700;
}

.admin-seating-table-note-inline {
  margin: 0;
  color: var(--muted);
  line-height: 1.3;
  min-width: 0;
}

.admin-seating-table-header button,
.admin-seating-guest-actions button {
  min-height: 31px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.1;
}

.admin-seating-table-controls {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.admin-seating-table-controls label,
.admin-seating-guest-actions label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.admin-seating-table-controls input,
.admin-seating-guest-actions input,
.admin-seating-guest-actions select {
  margin: 0;
}

.admin-seating-table-guests {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.admin-seating-table-guests li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(215, 196, 158, 0.24);
  font-size: 13px;
}

.admin-seating-draggable {
  cursor: grab;
}

.admin-seating-draggable.dragging {
  opacity: 0.55;
  transform: scale(0.985);
}

.admin-seating-table-guests li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-seating-text-link {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rose-deep);
  font-size: 13px;
  text-align: left;
  width: fit-content;
}

.admin-seating-text-link:hover {
  text-decoration: underline;
}

.admin-seating-guest-overflow {
  margin-top: 6px;
}

.admin-seating-guest-overflow summary {
  cursor: pointer;
  color: var(--rose-deep);
  font-size: 12px;
  width: fit-content;
}

.admin-seating-guest-overflow[open] summary {
  margin-bottom: 8px;
}

.admin-seating-table-guests-extra {
  margin-top: 0;
}

.admin-seating-inline-guest-form {
  display: none;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 100px) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(215, 196, 158, 0.18);
}

.admin-seating-table-card.new-guest-open .admin-seating-inline-guest-form {
  display: grid;
}

.admin-seating-inline-guest-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-seating-inline-guest-form input {
  margin: 0;
}

.admin-seating-inline-guest-form .admin-button-group {
  gap: 8px;
}

.admin-seating-empty {
  color: var(--muted);
  justify-content: flex-start !important;
}

.admin-seating-guest-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}

.admin-seating-guest-card.table-picker-open {
  align-items: start;
}

.admin-seating-guest-card.unseated {
  border-color: rgba(190, 65, 65, 0.42);
  background: rgba(255, 247, 247, 0.8);
}

.admin-seating-guest-copy {
  display: grid;
  gap: 5px;
}

.admin-seating-guest-copy strong {
  color: var(--ink);
  line-height: 1.25;
}

.admin-seating-table-picker {
  display: none;
  margin-top: 2px;
}

.admin-seating-guest-card.table-picker-open .admin-seating-table-picker {
  display: block;
}

.admin-seating-guest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-seating-guest-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.admin-seating-guest-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 238, 231, 0.92);
  border: 1px solid rgba(215, 196, 158, 0.28);
}

.admin-seating-table-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 238, 231, 0.92);
  border: 1px solid rgba(215, 196, 158, 0.28);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.admin-seating-table-chip:hover {
  background: rgba(239, 228, 219, 0.96);
}

.admin-seating-table-picker select {
  width: min(100%, 180px);
  margin: 0;
  min-height: 34px;
  border-radius: 12px;
  font-size: 12px;
}

.admin-seating-guest-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.admin-seating-guest-actions button {
  width: auto;
}

.admin-checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  width: fit-content;
  margin: 12px 0 14px;
}

.admin-checkbox-row input {
  width: auto;
  margin: 0;
}

.theme-choice {
  min-height: 128px;
  margin: 0;
  border-radius: 22px;
  text-align: left;
}

.theme-options {
  display: grid;
  gap: 16px;
}

.theme-choice span,
.theme-choice small {
  display: block;
}

.theme-choice span {
  font-size: 18px;
}

.theme-choice small {
  margin-top: 8px;
  color: inherit;
  opacity: 0.76;
  font-weight: 500;
}

.theme-classic-gold {
  background: linear-gradient(135deg, #fffdf9, #f7eceb);
}

.theme-classic-ink {
  background: linear-gradient(135deg, #ffffff, #eeeeea);
  color: #111;
}

.theme-minimal {
  background: linear-gradient(135deg, #ffffff, #efeee9);
}

.theme-minimal-editorial {
  background: linear-gradient(135deg, #fffefa, #ded3c5);
}

.theme-pastel-blush {
  background: linear-gradient(135deg, #ffe8f0, #e5f4ff);
}

.theme-pastel-garden {
  background: linear-gradient(135deg, #e8f7e5, #efe7ff);
}

.theme-soft-paper {
  background: linear-gradient(135deg, #fffefb, #efe1c9);
}

.theme-blue-hour {
  background: linear-gradient(135deg, #fcfdff, #d8e6f4);
}

.theme-rose-ink {
  background: linear-gradient(135deg, #fffdfd, #ead8dc);
}

.theme-birthday-confetti {
  background:
    linear-gradient(135deg, rgba(255, 248, 231, 0.92), rgba(255, 219, 231, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 111, 145, 0.18) 0 8px, rgba(117, 201, 255, 0.14) 8px 16px, rgba(255, 214, 91, 0.16) 16px 24px);
}

.theme-birthday-cake {
  background: linear-gradient(135deg, #fff7ec, #ffe6d0);
}

.theme-birthday-balloon {
  background: linear-gradient(135deg, #eef8ff, #f6e8ff);
}

.theme-business-slate {
  background: linear-gradient(135deg, #f4f7fa, #dfe7ee);
}

.theme-business-cobalt {
  background: linear-gradient(135deg, #eef5ff, #cfdcf4);
}

.theme-business-graphite {
  background: linear-gradient(135deg, #f4f5f7, #d7dbe1);
}

.theme-general-sand {
  background: linear-gradient(135deg, #fffdf8, #efe0c8);
}

.theme-general-forest {
  background: linear-gradient(135deg, #eff7ef, #dfe8db);
}

.theme-general-ink {
  background: linear-gradient(135deg, #ffffff, #e8e8ea);
}

.extras-tabs {
  margin-bottom: 16px;
}

.extras-panel {
  margin-top: 18px;
}

.extras-launcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.extras-launcher .nav-link {
  min-height: 56px;
  width: 100%;
}

.menu-page {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.menu-preview-shell {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line-gold);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.36);
}

.menu-preview-shell img {
  display: block;
  width: min(100%, 900px);
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(80, 60, 52, 0.14);
}

.menu-preview-wide img {
  width: min(100%, 980px);
}

.admin-menu-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-menu-upload-card {
  padding: 16px;
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-menu-upload-card h4 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--rose-deep);
}

.admin-menu-preview-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(215, 196, 158, 0.34);
  background: rgba(255, 255, 255, 0.88);
}

.song-request-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.song-request-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.song-request-heading h2 {
  margin-bottom: 4px;
}

.song-request-heading .small-note {
  margin: 0;
}

.song-request-motion {
  position: relative;
  width: 78px;
  height: 54px;
  flex: 0 0 auto;
}

.song-request-note {
  position: absolute;
  color: var(--rose-deep);
  opacity: 0.7;
  transform-origin: center;
  animation: song-note-float 3.6s ease-in-out infinite;
}

.song-request-note-one {
  left: 2px;
  bottom: 4px;
  font-size: 22px;
  animation-delay: 0s;
}

.song-request-note-two {
  left: 28px;
  top: 2px;
  font-size: 28px;
  animation-delay: 0.7s;
}

.song-request-note-three {
  right: 2px;
  bottom: 8px;
  font-size: 20px;
  animation-delay: 1.4s;
}

.song-request-form {
  display: grid;
  gap: 12px;
}

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

.song-request-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
  text-align: left;
}

.song-request-item:disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
}

.song-request-item.voted {
  background: rgba(143, 93, 98, 0.09);
  border-color: rgba(143, 93, 98, 0.26);
}

.song-request-count {
  min-width: 52px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--rose-deep);
  color: var(--white);
  text-align: center;
  font-weight: 700;
}

.song-request-title {
  font-weight: 700;
}

.song-request-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

@keyframes song-note-float {
  0%, 100% {
    transform: translateY(0) rotate(-6deg) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-8px) rotate(6deg) scale(1.06);
    opacity: 0.95;
  }
}

.admin-voter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.song-voter-chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line-gold);
  font-size: 12px;
  word-break: break-all;
}

.sitting-alphabetical-block {
  margin: 18px 0 20px;
}

.sitting-alphabetical-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.sitting-alpha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(185, 130, 134, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
}

.sitting-alpha-row.alpha-muted {
  opacity: 0.78;
}

.sitting-alpha-name {
  font-weight: 700;
}

.sitting-alpha-table {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.dj-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.dj-column {
  padding: 16px;
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.dj-column-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dj-column-header h3 {
  margin-bottom: 2px;
}

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

.dj-song-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(185, 130, 134, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.dj-song-copy {
  display: grid;
  gap: 4px;
}

.dj-song-copy strong {
  font-size: 16px;
  line-height: 1.25;
}

.dj-song-copy span {
  color: var(--muted);
  font-size: 12px;
}

.dj-song-actions {
  display: flex;
  gap: 8px;
}

.dj-action-button {
  min-width: 0;
  padding: 10px 12px;
}

.dj-paid {
  background: rgba(84, 139, 95, 0.12);
  border-color: rgba(84, 139, 95, 0.3);
}

.dj-rejected {
  background: rgba(180, 79, 79, 0.12);
  border-color: rgba(180, 79, 79, 0.3);
}

@media (max-width: 900px) {
  .wishbook-heading {
    align-items: start;
  }

  .wishbook-motion {
    width: 62px;
    height: 46px;
  }

  .upload-heading {
    align-items: start;
  }

  .upload-motion {
    width: 62px;
    height: 44px;
  }

  .song-request-heading {
    align-items: start;
  }

  .song-request-motion {
    width: 60px;
    height: 46px;
  }

  .song-request-layout {
    grid-template-columns: 1fr;
  }

  .sitting-alphabetical-list {
    grid-template-columns: 1fr;
  }

  .dj-board {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wishbook-heart {
    animation: none;
  }

  .wishbook-heart {
    opacity: 0.82;
  }

  .upload-motion-flash,
  .upload-motion-spark {
    animation: none;
  }

  .upload-motion-spark {
    opacity: 0.78;
  }

  .song-request-note {
    animation: none;
    opacity: 0.82;
  }
}

.admin-divider {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line-gold);
}

.welcome-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-welcome-preview {
  display: none;
  max-height: 260px;
  border-radius: 24px;
}

@media (max-width: 900px) {
  .admin-media-columns,
  .admin-split-view,
  .welcome-admin-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .admin-home-link {
    top: 10px;
    left: 10px;
    width: 82px;
    min-width: 82px;
    min-height: 27px;
    padding: 5px 11px;
    font-size: 11px;
    justify-content: center;
  }

  .admin-return-home {
    top: 42px;
    left: 10px;
    width: 82px;
    min-width: 82px;
    min-height: 27px;
    padding: 5px 11px;
    font-size: 17px;
  }

  .admin-logout-button {
    top: 10px;
    right: 10px;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px;
  }

  .admin-section-heading {
    display: block;
  }

  .admin-tab,
  .admin-section-heading button {
    width: 100%;
  }

  .admin-home-grid,
  .admin-home-row {
    gap: 8px;
  }

  .admin-home-row-pair {
    flex-wrap: nowrap;
    width: 100%;
  }

  .admin-home-row-pair > .admin-tab,
  .admin-home-row-pair > .admin-tab-compact {
    width: calc(50% - 4px);
    min-width: 0;
    flex: 1 1 0;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
  }

  .admin-home-row-tools {
    flex-wrap: nowrap;
    width: 100%;
  }

  .admin-home-row-tools > .admin-tab,
  .admin-home-row-tools > .admin-tab-compact,
  .admin-home-row-tools > .admin-tab-link,
  .admin-home-row-tools > .admin-tab-link-compact {
    width: calc(33.333% - 6px);
    min-width: 0;
    flex: 1 1 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 11px;
  }

  .admin-tab-link-compact {
    width: auto;
  }

  .admin-subtabs {
    gap: 8px;
  }

  .admin-subpanel {
    padding: 18px 16px 14px;
    border-radius: 18px;
  }

  .admin-media-grid,
  .admin-video-grid,
  .admin-wish-media,
  .theme-options {
    grid-template-columns: 1fr;
  }

  .admin-seating-summary,
  .admin-seating-layout {
    grid-template-columns: 1fr;
  }

  .admin-seating-table-controls,
  .admin-seating-guest-card,
  .admin-seating-guest-controls,
  .admin-seating-inline-guest-form {
    grid-template-columns: 1fr;
  }

  .admin-seating-guest-card {
    gap: 8px;
    padding: 11px 12px;
    align-items: start;
  }

  .admin-seating-guest-copy {
    gap: 6px;
  }

  .admin-seating-guest-meta {
    gap: 5px;
  }

  .admin-seating-table-chip,
  .admin-seating-guest-meta span {
    min-height: 22px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .admin-seating-table-picker select {
    width: 100%;
  }

  .admin-seating-guest-actions {
    justify-content: flex-start;
  }

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

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

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

  .sitting-mode-switch {
    width: 100%;
  }

  .sitting-layout-link {
    margin-left: 0;
  }

}

/* Protected slideshow display page */
.admin-open-slideshow {
  width: fit-content;
}

.slideshow-page-body {
  overflow-x: hidden;
  background: var(--soft-ivory);
}

.slideshow-page {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.slideshow-page-body .top-nav,
.slideshow-page-body footer {
  display: none;
}

.slideshow-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, var(--white) 0%, var(--ivory) 48%, var(--soft-ivory) 100%);
  color: var(--ink);
  cursor: pointer;
}

.slideshow-stage::before {
  content: '';
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 1px solid var(--line-gold);
  pointer-events: none;
}

.slideshow-stage:fullscreen {
  min-height: 100vh;
}

.slideshow-display {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  color: var(--muted);
  font-size: 22px;
  text-align: center;
}

.slideshow-page-media {
  width: 100vw;
  height: 100%;
  max-height: 100vh;
  object-fit: contain;
  background: transparent;
}

.slideshow-qr-panel {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 30;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line-gold);
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.slideshow-qr-panel.small {
  right: 14px;
  bottom: 92px;
  padding: 7px;
  font-size: 9px;
}

.slideshow-qr-panel.large {
  right: 24px;
  bottom: 104px;
  padding: 14px;
  border-radius: 16px;
  font-size: 13px;
}

.slideshow-qr-panel.hidden {
  display: none;
}

.slideshow-counter {
  position: fixed;
  left: 18px;
  bottom: 96px;
  z-index: 30;
  color: var(--muted);
  font-size: 13px;
}

.slideshow-toolbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line-gold);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(12px);
}

.slideshow-toolbar button,
.slideshow-toolbar .nav-link {
  width: auto;
  margin: 0;
  border-color: var(--line-gold);
  background: var(--white);
  color: var(--rose-deep);
  box-shadow: none;
}

.slideshow-remote-page {
  width: min(760px, 100%);
  margin: 28px auto;
}

.slideshow-remote-card {
  display: grid;
  gap: 24px;
}

.slideshow-remote-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slideshow-remote-status h2,
.slideshow-remote-status p {
  margin: 0;
}

.slideshow-connection-dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b8aaa3;
  box-shadow: 0 0 0 6px rgba(184, 170, 163, 0.14);
}

.slideshow-connection-dot.connected {
  background: #6f9b73;
  box-shadow: 0 0 0 6px rgba(111, 155, 115, 0.15);
}

.slideshow-remote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.slideshow-remote-grid button,
.slideshow-remote-grid .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin: 0;
}

.slideshow-command-status {
  min-height: 24px;
  margin: 0;
  color: var(--rose-deep);
}

@media (max-width: 760px) {
  .slideshow-toolbar button,
  .slideshow-toolbar .nav-link {
    width: 100%;
  }

  .slideshow-qr-panel,
  .slideshow-counter {
    bottom: 176px;
  }

  .slideshow-stage::before {
    inset: 8px;
  }

  .slideshow-remote-grid {
    grid-template-columns: 1fr;
  }
}

/* v32 — compact mobile guestlist */
@media (max-width: 760px) {
  .guestlist-table-wrap {
    overflow-x: hidden;
    padding-bottom: 4px;
  }

  .guestlist-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-spacing: 0 2px;
  }

  .guestlist-table th,
  .guestlist-table td {
    padding-left: 2px;
    padding-right: 2px;
  }

  .guestlist-table th {
    font-size: 8.5px;
    letter-spacing: 0;
  }

  .guestlist-table th:nth-child(1),
  .guestlist-table td:nth-child(1) { width: 38%; }
  .guestlist-table th:nth-child(2),
  .guestlist-table td:nth-child(2) { width: 18%; text-align: center; }
  .guestlist-table th:nth-child(3),
  .guestlist-table td:nth-child(3) { width: 14%; text-align: center; }
  .guestlist-table th:nth-child(4),
  .guestlist-table td:nth-child(4),
  .guestlist-table th:nth-child(5),
  .guestlist-table td:nth-child(5) { width: 15%; text-align: center; }

  .guestlist-table td:first-child {
    padding-left: 5px;
    padding-right: 3px;
    font-size: 11px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .guestlist-number,
  .guestlist-number strong {
    font-size: 9px;
  }

  .guestlist-badge {
    min-width: 0;
    max-width: 100%;
    padding: 4px 4px;
    font-size: 8.5px;
    line-height: 1;
    white-space: nowrap;
  }

  .guestlist-action-button {
    width: auto;
    min-width: 0;
    min-height: 24px;
    padding: 3px 5px;
    border-radius: 7px;
    font-size: 8.5px;
    line-height: 1;
  }
}

@media (max-width: 390px) {
  .guestlist-table td:first-child { font-size: 10.5px; }
  .guestlist-action-button { padding-inline: 4px; font-size: 8px; }
  .guestlist-badge { font-size: 8px; }
}

/* v33 — strict no-horizontal-scroll guestlist on phones */
@media (max-width: 760px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body > main,
  body main,
  body main > .card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body main {
    padding-left: 6px;
    padding-right: 6px;
  }

  body main > .card {
    padding-left: 5px;
    padding-right: 5px;
    overflow: hidden;
  }

  .guestlist-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }

  .guestlist-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .guestlist-table th,
  .guestlist-table td {
    min-width: 0 !important;
    max-width: none;
    padding: 5px 1px !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  .guestlist-table th:nth-child(1),
  .guestlist-table td:nth-child(1) { width: 43% !important; }
  .guestlist-table th:nth-child(2),
  .guestlist-table td:nth-child(2) { width: 15% !important; text-align: center; }
  .guestlist-table th:nth-child(3),
  .guestlist-table td:nth-child(3) { width: 12% !important; text-align: center; }
  .guestlist-table th:nth-child(4),
  .guestlist-table td:nth-child(4) { width: 15% !important; text-align: center; }
  .guestlist-table th:nth-child(5),
  .guestlist-table td:nth-child(5) { width: 15% !important; text-align: center; }

  .guestlist-table th {
    font-size: 7.5px !important;
    line-height: 1;
    white-space: nowrap;
    text-overflow: clip;
  }

  .guestlist-table td:first-child {
    padding-left: 4px !important;
    padding-right: 2px !important;
    font-size: 11px !important;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .guestlist-number,
  .guestlist-number strong {
    font-size: 8px !important;
    white-space: nowrap;
  }

  .guestlist-badge {
    width: 12px;
    min-width: 12px !important;
    height: 12px;
    max-width: 12px;
    padding: 0 !important;
    border-radius: 50%;
    font-size: 0 !important;
    overflow: hidden;
    vertical-align: middle;
  }

  .guestlist-action-button {
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    display: inline-grid;
    place-items: center;
  }

  .guestlist-table td:nth-child(4) .guestlist-action-button::before {
    content: "i";
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
  }

  .guestlist-table td:nth-child(5) .guestlist-action-button::before {
    content: "⋯";
    font-size: 14px;
    font-weight: 800;
    line-height: .7;
    transform: translateY(-1px);
  }
}

@media (max-width: 360px) {
  body main { padding-left: 3px; padding-right: 3px; }
  body main > .card { padding-left: 3px; padding-right: 3px; }
  .guestlist-table td:first-child { font-size: 10.5px !important; }
  .guestlist-table th { font-size: 7px !important; }
}

/* v34 — denser mobile guestlist with two-line names and near-edge layout */
@media (max-width: 760px) {
  body.eventprep-guestlist-page main {
    width: calc(100% - 4px) !important;
    max-width: calc(100% - 4px) !important;
    margin-left: 2px !important;
    margin-right: 2px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.eventprep-guestlist-page main > .card {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    border-radius: 11px !important;
  }

  body.eventprep-guestlist-page .guestlist-table-wrap {
    border-radius: 9px !important;
  }

  body.eventprep-guestlist-page .guestlist-table th,
  body.eventprep-guestlist-page .guestlist-table td {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.eventprep-guestlist-page .guestlist-table th:nth-child(1),
  body.eventprep-guestlist-page .guestlist-table td:nth-child(1) { width: 38% !important; }
  body.eventprep-guestlist-page .guestlist-table th:nth-child(2),
  body.eventprep-guestlist-page .guestlist-table td:nth-child(2) { width: 16% !important; }
  body.eventprep-guestlist-page .guestlist-table th:nth-child(3),
  body.eventprep-guestlist-page .guestlist-table td:nth-child(3) { width: 12% !important; }
  body.eventprep-guestlist-page .guestlist-table th:nth-child(4),
  body.eventprep-guestlist-page .guestlist-table td:nth-child(4) { width: 16% !important; }
  body.eventprep-guestlist-page .guestlist-table th:nth-child(5),
  body.eventprep-guestlist-page .guestlist-table td:nth-child(5) { width: 18% !important; }

  body.eventprep-guestlist-page .guestlist-table td:first-child {
    padding: 4px 2px !important;
    font-size: 11px !important;
    line-height: 1.12 !important;
    overflow: hidden !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: 2.35em;
  }

  body.eventprep-guestlist-page .guestlist-column-sort {
    min-height: 30px !important;
    gap: 1px !important;
    padding: 4px 0 !important;
    justify-content: center !important;
    font-size: 7px !important;
    letter-spacing: .035em !important;
  }

  body.eventprep-guestlist-page .guestlist-table th:first-child .guestlist-column-sort {
    justify-content: flex-start !important;
    padding-left: 2px !important;
  }

  body.eventprep-guestlist-page .sort-arrow {
    width: 10px !important;
    height: 10px !important;
    font-size: 7px !important;
    box-shadow: none !important;
  }

  body.eventprep-guestlist-page .guestlist-action-button {
    width: 19px !important;
    min-width: 19px !important;
    max-width: 19px !important;
    height: 19px !important;
    min-height: 19px !important;
  }

  body.eventprep-guestlist-page .guestlist-table td:nth-child(4) .guestlist-action-button::before {
    font-size: 9px !important;
  }

  body.eventprep-guestlist-page .guestlist-table td:nth-child(5) .guestlist-action-button::before {
    font-size: 12px !important;
  }
}


/* Guest home looping animation — same width as welcome message box */
.guest-home-page .welcome-video {
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:0 0 12px;
  border-radius:inherit;
  object-fit:cover;
}
