:root {
  --gold: #b08d4f;
  --gold-deep: #8a6d3c;
  --gold-light: #e6d6ae;
  --sage: #8a9678;
  --sage-deep: #5f6b53;
  --sage-light: #e6ebe0;
  --ink: #38362f;
  --charcoal: #211f1a;
  --cream: #f9f9f7;
  --paper: #fffdf9;
  --error: #9b4438;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  /* Guest page theme — customizable per-wedding via the admin "Personnaliser" panel. */
  --guest-bg: #f9f9f7;
  --guest-card-bg: #fffdf9;
  --guest-text: #38362f;
  --guest-title: #5f6b53;
  --guest-accent: #b08d4f;
  --guest-input-bg: #e6ebe0;
  --guest-input-text: #38362f;
  --guest-input-border: #e6d6ae;
  --guest-table-color: #b08d4f;
  --guest-chair-color: #5f6b53;
  --guest-canvas-bg: #e6ebe0;
  --guest-font-title: 'Playfair Display', serif;
  --guest-font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background: var(--cream);
  background-image: radial-gradient(circle at 50% 0%, #ffffff 0%, var(--cream) 60%);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.page.page-wide {
  max-width: 1080px;
}

.page.poster-page {
  padding-top: 24px;
}

header.hero {
  position: relative;
  text-align: center;
  margin-bottom: 44px;
  padding: 12px 50px;
}

header.hero::before,
header.hero::after {
  content: '';
  position: absolute;
  width: 68px;
  height: 68px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.55;
}

header.hero::before {
  top: -10px;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M14 92 C 34 70, 22 42, 54 10' stroke='%238a9678' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3Cellipse cx='32' cy='62' rx='11' ry='5.5' fill='%238a9678' transform='rotate(-45 32 62)'/%3E%3Cellipse cx='42' cy='42' rx='10' ry='5' fill='%238a9678' transform='rotate(-35 42 42)'/%3E%3Cellipse cx='53' cy='22' rx='8.5' ry='4.5' fill='%23b08d4f' transform='rotate(-22 53 22)'/%3E%3C/svg%3E");
}

header.hero::after {
  bottom: -10px;
  right: 0;
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M14 92 C 34 70, 22 42, 54 10' stroke='%238a9678' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3Cellipse cx='32' cy='62' rx='11' ry='5.5' fill='%238a9678' transform='rotate(-45 32 62)'/%3E%3Cellipse cx='42' cy='42' rx='10' ry='5' fill='%238a9678' transform='rotate(-35 42 42)'/%3E%3Cellipse cx='53' cy='22' rx='8.5' ry='4.5' fill='%23b08d4f' transform='rotate(-22 53 22)'/%3E%3C/svg%3E");
}

.guest-decoration-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.guest-decoration-item {
  position: absolute;
  width: 130px;
  height: 130px;
  color: var(--guest-accent);
  opacity: 0.85;
}

.guest-decoration-item svg,
.guest-decoration-item img {
  width: 100%;
  height: 100%;
  display: block;
}

.guest-decoration-item img {
  object-fit: contain;
}

.guest-decoration-fireworks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 640px) {
  .guest-decoration-item {
    width: 88px;
    height: 88px;
  }
}

header.hero.invite-hero {
  padding: 96px 20px 16px;
  margin-bottom: 36px;
}

/* The corner branches used to be hardcoded here — now superseded by the
   couple's own choice of decoration (.guest-decoration-layer), so this
   header no longer draws its own. */
header.hero.invite-hero::before,
header.hero.invite-hero::after {
  content: none;
}

.script-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  min-height: 3.4rem;
}

.script-word {
  font-family: 'Parisienne', cursive;
  font-size: 3.4rem;
  font-weight: 400;
  color: var(--sage-deep);
  line-height: 1;
}

.title-heart {
  font-size: 1.8rem;
  color: var(--gold-light);
  transform: translateY(2px);
}

.tracked-subtitle {
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 0.78rem;
  font-weight: 500;
  font-style: normal !important;
  font-family: var(--guest-font-body) !important;
  color: #8a7e6e;
  margin: 16px 0 0 !important;
}

header.hero .eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 18px;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  background: var(--sage-light);
  border-radius: var(--radius-pill);
}

header.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.25;
}

header.hero p:not(.eyebrow) {
  color: #8a7e6e;
  margin: 14px 0 0;
  font-size: 1.02rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0;
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 46px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}

.divider::after {
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

.divider span {
  font-size: 0.9rem;
  color: var(--gold);
  line-height: 1;
}

.divider span::after {
  content: '♥';
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 22px;
  box-shadow: 0 20px 44px rgba(138, 109, 60, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(176, 141, 79, 0.18);
  border-radius: calc(var(--radius) - 7px);
  pointer-events: none;
}

input, select, textarea {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 0 14px;
  height: 42px;
  border: 1px solid rgba(176, 141, 79, 0.3);
  border-radius: var(--radius-sm);
  background: var(--sage-light);
  color: var(--ink);
  width: 100%;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  height: auto;
  min-height: 90px;
  padding: 10px 14px;
  line-height: 1.5;
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  color: var(--sage-deep);
  opacity: 0.75;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(176, 141, 79, 0.14);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sage-deep);
  pointer-events: none;
}

.search-field input {
  padding-left: 42px;
  padding-right: 42px;
}

.search-clear-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  margin-top: -15px;
}

.icon-btn.search-clear-btn {
  width: 30px;
  height: 30px;
}

.search-clear-btn[hidden] {
  display: none;
}

button, a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
  font-weight: 600;
  padding: 0 22px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #c8a868, var(--gold-deep));
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(138, 109, 60, 0.22);
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

button:hover, a.secondary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(138, 109, 60, 0.3);
}

/* `button { display: inline-flex }` above is an author rule, which beats the
   browser's own `[hidden] { display: none }` regardless of specificity —
   without this, setting `.hidden = true` on any button silently does
   nothing and it stays visible. */
button[hidden], a[hidden] {
  display: none;
}

button:active, a.secondary:active {
  transform: translateY(0);
}

button.secondary, a.secondary {
  background: transparent;
  color: var(--sage-deep);
  border: 1.5px solid var(--sage-deep);
  text-decoration: underline;
  text-decoration-color: rgba(95, 107, 83, 0.5);
  text-underline-offset: 3px;
  box-shadow: none;
}

button.secondary:hover, a.secondary:hover {
  background: var(--sage-light);
  color: var(--charcoal);
  filter: none;
  box-shadow: none;
}

.result {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result .table-number {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 16px 30px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-pill);
  background: var(--sage-light);
}

.result .guest-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--ink);
}

.result .table-sep {
  width: 1px;
  height: 30px;
  background: var(--gold-light);
}

.result .table-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.result .table-label {
  font-size: 0.62rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}

.result .table-value {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--gold-deep);
}

.guest-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  background: var(--paper);
  border: 1px solid rgba(176, 141, 79, 0.18);
  transition: background 0.15s ease, transform 0.1s ease;
}

.guest-match:last-child {
  margin-bottom: 0;
}

.guest-match .match-table {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-deep);
}

.guest-match:hover {
  background: var(--gold-light);
  transform: translateX(2px);
}

.muted {
  color: #998c77;
  font-size: 0.88rem;
}

.error-msg {
  color: var(--sage-deep);
  margin-top: 6px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.98rem;
  text-align: center;
  line-height: 1.5;
}

nav.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  font-size: 0.85rem;
}

nav.admin-nav strong {
  letter-spacing: 0.4px;
  font-size: 0.95rem;
  color: var(--charcoal);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

nav.admin-nav a {
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 600;
}

nav.admin-nav a:hover {
  color: var(--charcoal);
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Specificity note: `nav.admin-nav a` (element+class+element) already sets a
   plain text color with no background, and would otherwise win over a bare
   `.admin-nav-chip` rule — scoping through the parent class here is what lets
   this pill styling actually take effect instead of looking like plain text. */
.admin-nav-actions .admin-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-teal-light);
  color: var(--accent-teal-deep);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-nav-actions .admin-nav-chip:hover {
  color: var(--accent-teal-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(27, 36, 64, 0.18);
}

nav.admin-nav:not(.admin-nav-stacked) .admin-nav-actions {
  margin-top: 14px;
}

nav.admin-nav.admin-nav-stacked {
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.wedding-countdown {
  text-align: center;
  margin-bottom: 32px;
}

.wedding-countdown-units {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.wedding-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold-light) 55%, transparent);
}

.wedding-countdown-value {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}

.wedding-countdown-label {
  margin-top: 2px;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
}

.wedding-countdown-caption {
  margin-top: 8px;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--ink);
}

.poster-workspace {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.poster-toolbox {
  flex: 0 0 auto;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.poster-toolbox-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}

.poster-bg-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(245, 248, 249, 0.92);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  font-size: 0.78rem;
  color: var(--ink);
  white-space: nowrap;
}

.poster-bg-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.poster-bg-swatch svg {
  pointer-events: none;
}

.poster-bg-swatch input[type='color'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  opacity: 0;
  cursor: pointer;
}

.color-hex-input {
  width: 78px;
  height: 28px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-family: 'Inter', monospace;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.icon-number-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.icon-number-field-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  pointer-events: none;
  color: var(--ink);
  opacity: 0.6;
}

.poster-text-toolbar .icon-number-field input[type='number'] {
  padding-left: 26px;
}

.poster-toolbox-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poster-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 62px;
  height: 62px;
  padding: 6px;
  font-size: 0.62rem;
  white-space: normal;
  text-align: center;
  border-radius: var(--radius-sm);
  background: none;
  box-shadow: none;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.poster-tool-btn:hover {
  background: rgba(15, 23, 42, 0.04);
  box-shadow: none;
  transform: none;
}

.poster-canvas-area {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  overflow: auto;
}

#poster-content nav.admin-nav {
  margin-bottom: 16px;
}

.poster-sheet {
  position: relative;
  flex: 0 0 auto;
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.poster-sheet-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.poster-guide {
  position: absolute;
  background: var(--gold-deep);
  opacity: 0.45;
  pointer-events: none;
  z-index: 50;
}

.poster-guide:not([hidden]) {
  display: block;
}

.poster-guide-v {
  top: 0;
  bottom: 0;
  width: 1px;
}

.poster-guide-h {
  left: 0;
  right: 0;
  height: 1px;
}

.poster-text-el {
  position: absolute;
}

.poster-text-content {
  min-width: 24px;
  min-height: 1.2em;
  padding: 2px 6px;
  outline: none;
  cursor: text;
  white-space: pre-wrap;
}

.poster-el.selected {
  outline: 1.5px dashed var(--gold-deep);
}

.poster-text-drag-handle {
  position: absolute;
  top: 50%;
  left: -28px;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--gold-deep);
  color: #fff;
  cursor: move;
  user-select: none;
}

.poster-el.selected .poster-text-drag-handle {
  display: flex;
}

.poster-qr-el,
.poster-icon-el,
.poster-image-el {
  position: absolute;
  cursor: move;
}

.poster-image-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.poster-qr-canvas {
  width: 100%;
  height: 100%;
}

.poster-qr-canvas canvas,
.poster-qr-canvas img {
  width: 100%;
  height: 100%;
  display: block;
}

.poster-resize-handle {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--gold-deep);
  cursor: nwse-resize;
}

.poster-el.selected .poster-resize-handle {
  display: block;
}

.poster-rotate-handle {
  position: absolute;
  left: -6px;
  bottom: -6px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-deep);
  color: #fff;
  cursor: grab;
  user-select: none;
}

.poster-el.selected .poster-rotate-handle {
  display: flex;
}

.poster-divider-resize-handle {
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--gold-deep);
  cursor: ew-resize;
}

.poster-el.selected .poster-divider-resize-handle {
  display: block;
}

.poster-divider-el {
  position: absolute;
  display: flex;
  align-items: center;
  height: 24px;
  cursor: move;
}

.poster-divider-line {
  flex: 1;
  height: 1px;
  background: currentColor;
}

.poster-divider-ornament {
  padding: 0 8px;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.poster-icon-glyph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.poster-image-menu {
  position: fixed;
  z-index: 60;
  flex-direction: column;
  gap: 6px;
  width: 220px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.25);
}

.poster-image-menu:not([hidden]) {
  display: flex;
}

.poster-image-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  text-align: left;
  background: none;
  box-shadow: none;
  border: 1px solid transparent;
  color: var(--ink);
}

.poster-image-menu-item:hover {
  background: rgba(15, 23, 42, 0.05);
  box-shadow: none;
  transform: none;
}

.poster-image-menu-url {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  color: var(--ink);
}

.poster-image-menu-url input[type='text'] {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  font-size: 0.8rem;
}

.poster-image-menu-url button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.poster-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.poster-text-toolbar {
  position: fixed;
  z-index: 60;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 86px 6px 8px;
  max-width: calc(100vw - 16px);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.25);
}

#poster-delete-text-btn {
  position: absolute;
  top: 6px;
  right: 8px;
}

#poster-duplicate-btn {
  position: absolute;
  top: 6px;
  right: 46px;
}

.poster-text-toolbar:not([hidden]) {
  display: flex;
}

.poster-text-toolbar select {
  width: auto;
  height: 32px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.poster-text-toolbar input[type='number'] {
  width: 56px;
  height: 32px;
  padding: 0 6px;
}

.poster-text-toolbar input[type='color'] {
  width: 32px;
  height: 32px;
  padding: 2px;
}

.poster-text-toolbar .color-hex-input {
  width: 70px;
  height: 32px;
}

.poster-text-toolbar .icon-btn {
  width: 32px;
  height: 32px;
}

.poster-text-toolbar .icon-btn.active {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--gold-deep);
}

@media print {
  body * {
    visibility: hidden;
  }

  .poster-sheet,
  .poster-sheet * {
    visibility: visible;
  }

  .poster-sheet {
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: none;
  }

  .poster-text-drag-handle,
  .poster-resize-handle,
  .poster-divider-resize-handle,
  .poster-rotate-handle {
    display: none !important;
  }

  .poster-el.selected {
    outline: none !important;
  }
}

@media (max-width: 760px) {
  .poster-workspace {
    flex-direction: column;
    align-items: center;
  }

  .poster-toolbox {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .poster-toolbox-tools {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .poster-canvas-area {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .wedding-countdown-units {
    gap: 8px;
  }

  .wedding-countdown-unit {
    min-width: 52px;
    padding: 8px 10px;
  }

  .wedding-countdown-value {
    font-size: 1.3rem;
  }
}

.admin-tools {
  margin-bottom: 28px;
}

.admin-tools-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}

.admin-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.admin-tool-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  height: 132px;
  padding: 18px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--gold-deep) 25%, transparent);
  white-space: normal;
  text-align: left;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-tool-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px color-mix(in srgb, var(--gold-deep) 32%, transparent);
}

.admin-tool-tile-icon {
  position: absolute;
  bottom: -8px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.4);
}

.admin-tool-tile-icon svg {
  width: 56px;
  height: 56px;
}

.admin-tool-tile-label {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.admin-tool-tile-desc {
  position: relative;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

.admin-tool-tile.is-disabled {
  cursor: default;
  opacity: 0.55;
}

.admin-tool-tile.is-disabled:hover {
  transform: none;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--gold-deep) 25%, transparent);
}

.admin-tool-tile-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
}

/* Defensive cap only — with the shortened "contact us" wording this badge
   is normally as narrow as the existing coming-soon one, but very tight
   tile widths (small screens) could still force it onto two lines. */
#poster-tile-badge {
  max-width: 62%;
  text-align: right;
  line-height: 1.3;
}

.admin-tool-tile.tile-accent-blue {
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--sage-deep) 25%, transparent);
}

.admin-tool-tile.tile-accent-blue:hover {
  box-shadow: 0 16px 30px color-mix(in srgb, var(--sage-deep) 32%, transparent);
}

.admin-tool-tile.tile-accent-teal {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-deep));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent-teal-deep) 25%, transparent);
}

.admin-tool-tile.tile-accent-teal:hover {
  box-shadow: 0 16px 30px color-mix(in srgb, var(--accent-teal-deep) 32%, transparent);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 32px rgba(138, 109, 60, 0.1);
}

.partner-card-media-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.partner-card-photo {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--sage-light);
  cursor: pointer;
  box-shadow: none;
}

.partner-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partner-card-photo:hover,
.partner-card-photo:active {
  filter: none;
  transform: none;
  box-shadow: 0 0 0 2px var(--gold-light);
}

.partner-card-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 20px;
  padding: 3px 10px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-light);
  border-radius: var(--radius-pill);
}

.partner-card-category svg {
  width: 13px;
  height: 13px;
}

.partner-card-category.cat-blue {
  color: var(--sage-deep);
  background: var(--sage-light);
}

.partner-card-category.cat-teal {
  color: var(--accent-teal-deep);
  background: var(--accent-teal-light);
}

.partner-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
  min-height: 2.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.partner-card-desc {
  font-size: 0.84rem;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  white-space: pre-line;
}

.partner-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.photo-lightbox-panel {
  max-width: 90vw;
  max-height: 90vh;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.photo-lightbox-panel img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
}

.photo-lightbox-panel .modal-close {
  top: -14px;
  right: -14px;
  background: var(--paper);
  box-shadow: 0 6px 16px rgba(33, 31, 26, 0.25);
}

.admin-quick-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-login-card {
  max-width: 380px;
  margin: 60px auto;
}

.form-error-text {
  margin: -6px 0 4px;
  font-size: 0.82rem;
  color: var(--error);
}

.google-signin-btn {
  width: 100%;
  gap: 10px;
  background: #fff;
  color: #3c4043;
  border: 1px solid rgba(60, 64, 67, 0.3);
  box-shadow: none;
}

.google-signin-btn:hover {
  background: #f7f7f7;
  filter: none;
  box-shadow: none;
  transform: none;
}

.partner-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 8px;
  max-width: 420px;
  min-width: 0;
}

.partner-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.partner-contacts-grid .field label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.partner-stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0 24px;
}

.partner-stat-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold-light) 60%, transparent);
}

.partner-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal);
}

.partner-stat-label {
  font-size: 0.78rem;
  color: var(--ink);
}

.partner-stats-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.partner-stats-bar-row {
  display: grid;
  grid-template-columns: minmax(100px, 160px) 1fr 32px;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.partner-stats-bar-label {
  color: var(--charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-stats-bar-track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--gold-light) 70%, transparent);
  overflow: hidden;
}

.partner-stats-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}

.partner-stats-bar-count {
  text-align: right;
  font-weight: 600;
  color: var(--charcoal);
}

.partner-stats-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

.partner-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.partner-stats-table th,
.partner-stats-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 18%, transparent);
  white-space: nowrap;
}

.partner-stats-table th {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.partner-stats-table td {
  color: var(--charcoal);
}

.partner-icon-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--sage-light);
  box-shadow: none;
  color: var(--sage-deep);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.partner-icon-option:hover {
  background: var(--paper);
}

.partner-icon-option.active {
  border-color: var(--gold);
  background: var(--paper);
  color: var(--gold-deep);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Longer forms (e.g. the partner form, with a textarea/icon-grid/multiple
   sections) opt out of the 640px+ multi-column layout below, which was
   designed for the compact 3-field "new wedding" form and otherwise squashes
   wider field types into narrow columns. */
.field-grid.field-grid-single {
  grid-template-columns: 1fr;
}

.field-grid[hidden] {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage-deep);
}

.field-grid > button {
  margin-top: 4px;
  width: 100%;
}

@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: end;
  }

  .field-grid.field-grid-guest {
    grid-template-columns: 2fr 1fr auto;
  }

  .field-grid > button {
    grid-column: auto;
    margin-top: 0;
    width: auto;
    justify-self: start;
  }

  #wedding-form {
    grid-template-columns: 1.6fr 1.3fr 1fr auto;
  }

  #wedding-form .field label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #wedding-form .field-date {
    min-width: 150px;
  }
}

.mode-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--radius-pill);
  background: var(--sage-light);
  flex: 0 0 auto;
}

.mode-btn {
  height: 30px;
  padding: 0 14px;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--sage-deep);
  border: none;
  box-shadow: none;
}

.mode-btn svg {
  flex: 0 0 auto;
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  filter: none;
  transform: none;
  box-shadow: none;
}

.mode-btn.active {
  background: var(--paper);
  color: var(--charcoal);
  box-shadow: 0 2px 8px rgba(138, 109, 60, 0.18);
}

.view-switch {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  margin-bottom: 28px;
  border-radius: var(--radius-pill);
  background: var(--sage-light);
}

.view-switch-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--sage-deep);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

a.view-switch-tab:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--charcoal);
}

.view-switch-tab.active {
  background: var(--paper);
  color: var(--charcoal);
  box-shadow: 0 2px 8px rgba(138, 109, 60, 0.18);
  cursor: default;
}

.muted.small {
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.bulk-textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--sage-light);
  border: none;
  border-radius: var(--radius-sm);
  resize: vertical;
}

.bulk-textarea::placeholder {
  color: #7c8a6c;
}

#bulk-add-submit {
  margin-top: 12px;
}

.bulk-add-feedback {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--sage-deep);
}

#download-template-btn {
  margin-bottom: 14px;
}

.file-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 20px;
  text-align: center;
  color: var(--sage-deep);
  background: var(--sage-light);
  border: 2px dashed rgba(138, 150, 120, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.file-dropzone p {
  margin: 0;
  font-size: 0.85rem;
}

.file-dropzone:hover,
.file-dropzone:focus-visible {
  border-color: var(--gold);
}

.file-dropzone.dragover {
  background: var(--gold-light);
  border-color: var(--gold-deep);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(33, 31, 26, 0.55);
  z-index: 100;
}

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

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 320px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(33, 31, 26, 0.3);
  overflow: hidden;
}

.modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

body.modal-open {
  overflow: hidden;
}

.modal-panel h3 {
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sage-deep);
  border: none;
  box-shadow: none;
  font-size: 1.3rem;
  line-height: 1;
}

.modal-close:hover {
  background: var(--sage-light);
  filter: none;
  transform: none;
  box-shadow: none;
}

.qr-canvas-wrap {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: var(--paper);
  border-radius: var(--radius-sm);
}

.qr-canvas-wrap canvas {
  display: block;
  max-width: 100%;
}

.qr-modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.wedding-list, .guest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wedding-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--sage-light);
  gap: 12px;
  transition: background 0.15s ease;
}

.wedding-item:hover {
  background: #dde5d3;
}

.wedding-item:last-child {
  margin-bottom: 0;
}

.wedding-item .info {
  flex: 1;
  min-width: 160px;
}

.wedding-item .actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.18s ease;
}

.wedding-item:hover .actions,
.wedding-item:focus-within .actions,
.wedding-item.revealed .actions {
  max-width: 400px;
}

.wedding-item-location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  min-width: 0;
}

.wedding-item-location svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.wedding-item-location-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wedding-item .info strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
}

.feature-toggle-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.feature-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(100, 116, 139, 0.15);
}

.feature-toggle-item:last-child {
  border-bottom: none;
}

.feature-toggle-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.feature-toggle-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--gold-deep);
}

.feature-toggle-label {
  font-size: 0.92rem;
  color: var(--charcoal);
  text-align: left;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.3);
  transition: background 0.18s ease;
}

.toggle-switch-track::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
  transition: transform 0.18s ease;
}

.toggle-switch input:checked + .toggle-switch-track {
  background: var(--gold-deep);
}

body.admin-theme .toggle-switch input:checked + .toggle-switch-track {
  background: var(--gold);
}

.toggle-switch input:checked + .toggle-switch-track::before {
  transform: translateX(18px);
}

.toggle-switch input:focus-visible + .toggle-switch-track {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 40%, transparent);
}

.table-group {
  margin-bottom: 22px;
}

.table-group:last-child {
  margin-bottom: 0;
}

.table-group-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.table-group-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.table-group-count {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: #998c77;
}

.table-group-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.table-group-title-row:hover .table-group-actions,
.table-group-title-row:focus-within .table-group-actions,
.table-group-title-row.revealed .table-group-actions {
  opacity: 1;
  pointer-events: auto;
}

.table-guest-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  min-height: 12px;
  border-radius: var(--radius-sm);
  background: rgba(138, 150, 120, 0.08);
}

.table-guest-list-empty {
  padding: 10px 8px;
  font-size: 0.85rem;
  font-style: italic;
  color: #998c77;
}

.guest-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(176, 141, 79, 0.18);
  box-shadow: 0 6px 16px rgba(138, 109, 60, 0.06);
  cursor: grab;
  transition: background 0.15s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.guest-row:last-child {
  margin-bottom: 0;
}

.guest-row-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  border: 1px dashed rgba(176, 141, 79, 0.35);
  background: transparent;
  color: #998c77;
  font-size: 0.85rem;
  font-style: italic;
}

.guest-row-empty:last-child {
  margin-bottom: 0;
}

.guest-row-empty-label {
  flex: 1;
}

.guest-row-empty-delete {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.guest-row-empty:hover .guest-row-empty-delete,
.guest-row-empty:focus-within .guest-row-empty-delete,
.guest-row-empty.revealed .guest-row-empty-delete {
  opacity: 1;
  pointer-events: auto;
}

.guest-row-add-seat {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.guest-row-add-seat .icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px dashed rgba(176, 141, 79, 0.4);
  color: #998c77;
  background: transparent;
}

.guest-row-add-seat .icon-btn:hover {
  border-style: solid;
  border-color: var(--gold-deep);
  color: var(--gold-deep);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

body.admin-theme .guest-row-add-seat .icon-btn {
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
}

body.admin-theme .guest-row-add-seat .icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.guest-row:hover {
  background: var(--sage-light);
  box-shadow: 0 10px 22px rgba(138, 109, 60, 0.1);
}

.guest-row.dragging {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 18px 32px rgba(138, 109, 60, 0.28);
  background: var(--sage-light);
  cursor: grabbing;
  z-index: 5;
}

/* While reordering, the row under the cursor keeps changing as the list
   reshuffles — letting :hover and the transition react to that made rows
   flicker constantly and made it hard to tell where a drop would land. */
body.dragging-guest-row .guest-row,
body.dragging-guest-row .guest-row-empty {
  transition: none;
}

body.dragging-guest-row .guest-row:not(.dragging):hover {
  background: var(--paper);
  box-shadow: 0 6px 16px rgba(138, 109, 60, 0.06);
}

body.admin-theme.dragging-guest-row .guest-row:not(.dragging):hover {
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* The row currently under the pointer while dragging — this is the seat the
   guest would land in if dropped right now. */
.guest-row-drop-target {
  border-color: var(--gold-deep) !important;
  background: color-mix(in srgb, var(--gold) 16%, var(--paper)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 40%, transparent) !important;
}

body.admin-theme .guest-row-drop-target {
  border-color: var(--gold) !important;
  background: color-mix(in srgb, var(--gold) 14%, var(--paper)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent) !important;
}

.guest-row-drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -130%);
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3);
}

.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.guest-row-name {
  flex: 1;
  min-width: 120px;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
}

.guest-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.18s ease;
}

.guest-table-edit {
  width: 56px;
  flex: 0 0 auto;
  padding: 6px 8px;
  font-size: 16px;
  text-align: center;
  border-radius: var(--radius-sm);
}

.row-arrows {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
}

.guest-row .guest-table-edit,
.guest-row .icon-btn {
  opacity: 0;
  pointer-events: none;
}

.guest-row:hover .guest-table-edit,
.guest-row:hover .icon-btn,
.guest-row:focus-within .guest-table-edit,
.guest-row:focus-within .icon-btn,
.guest-row.revealed .guest-table-edit,
.guest-row.revealed .icon-btn {
  opacity: 1;
  pointer-events: auto;
}

.guest-row:hover .guest-row-actions,
.guest-row:focus-within .guest-row-actions,
.guest-row.revealed .guest-row-actions {
  max-width: 220px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(138, 150, 120, 0.3);
  color: var(--sage-deep);
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--sage-light);
  color: var(--charcoal);
  transform: none;
  box-shadow: none;
  filter: none;
}

.icon-btn.icon-btn-danger {
  color: var(--error);
  border-color: #e3c9c4;
}

.icon-btn.icon-btn-danger:hover {
  background: #f8eeec;
}

.icon-btn.icon-btn-large {
  width: 52px;
  height: 52px;
  background: var(--sage-light);
  border-color: transparent;
}

.icon-btn.icon-btn-large:hover {
  background: var(--gold-light);
  color: var(--charcoal);
}

.wedding-item .icon-btn,
.wedding-item .mini-lang-select {
  opacity: 0;
  pointer-events: none;
}

.wedding-item:hover .icon-btn,
.wedding-item:hover .mini-lang-select,
.wedding-item:focus-within .icon-btn,
.wedding-item:focus-within .mini-lang-select,
.wedding-item.revealed .icon-btn,
.wedding-item.revealed .mini-lang-select {
  opacity: 1;
  pointer-events: auto;
}

h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--charcoal);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.card-header-row h2 {
  margin-bottom: 0;
}

.empty-state {
  text-align: center;
  color: #998c77;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  padding: 24px 0;
}

.lang-switcher-mount {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
}

.lang-switcher {
  position: relative;
}

.lang-switcher-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-light);
  background: var(--paper);
  color: var(--sage-deep);
  box-shadow: 0 4px 12px rgba(138, 109, 60, 0.1);
  cursor: pointer;
}

.lang-switcher-trigger:hover {
  background: var(--sage-light);
}

.lang-switcher-chevron {
  font-size: 0.6rem;
  color: var(--gold);
  transition: transform 0.15s ease;
}

.lang-switcher-trigger[aria-expanded='true'] .lang-switcher-chevron {
  transform: rotate(180deg);
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 36px rgba(138, 109, 60, 0.16);
  z-index: 20;
}

.lang-switcher-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: calc(var(--radius-sm) - 5px);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease;
}

.lang-switcher-option:hover {
  background: var(--sage-light);
}

.lang-switcher-option[aria-selected='true'] {
  color: var(--sage-deep);
  font-weight: 700;
}

.lang-switcher-option .check {
  width: 14px;
  flex-shrink: 0;
  display: inline-block;
  color: var(--gold-deep);
  font-size: 0.72rem;
}

select.mini-lang-select {
  width: auto;
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: var(--sage-light);
  color: var(--sage-deep);
  border: 1px solid rgba(138, 150, 120, 0.3);
}

.empty-state.small {
  font-size: 0.82rem;
  padding: 6px 0;
}

.theme-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.theme-preset-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: auto;
  padding: 18px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--sage-light);
  box-shadow: none;
  white-space: normal;
  cursor: pointer;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.theme-preset-option:hover {
  background: var(--paper);
}

.theme-preset-option.active {
  border-color: var(--gold);
  background: var(--paper);
}

.theme-preset-swatches {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.theme-preset-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.theme-font-heading {
  margin: 18px 0 10px;
  font-size: 0.85rem;
}

.theme-font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.theme-font-option {
  height: auto;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--sage-light);
  box-shadow: none;
  white-space: normal;
  cursor: pointer;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.theme-font-option:hover {
  background: var(--paper);
}

.theme-font-option.active {
  border-color: var(--gold);
  background: var(--paper);
}

.theme-custom-toggle {
  display: block;
  width: max-content;
  margin: 8px auto 4px;
}

.theme-custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.theme-custom-grid[hidden] {
  display: none;
}

.theme-color-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--sage-light);
}

.theme-color-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-deep);
  text-transform: none;
  letter-spacing: 0;
}

.theme-color-field-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-color-field input[type='color'] {
  width: 40px;
  height: 32px;
  padding: 2px;
  border: 1px solid rgba(138, 150, 120, 0.3);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.theme-color-field .color-hex-input {
  width: 76px;
  height: 32px;
}

.theme-decoration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.theme-decoration-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--sage-light);
  box-shadow: none;
  white-space: normal;
  cursor: pointer;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.theme-decoration-option:hover {
  background: var(--paper);
}

.theme-decoration-option.active {
  border-color: var(--gold);
  background: var(--paper);
}

.theme-decoration-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  color: var(--gold-deep);
}

.theme-decoration-preview-box svg {
  width: 40px;
  height: 40px;
}

body.admin-theme .theme-decoration-preview-box {
  color: var(--gold);
}

.theme-decoration-upload {
  margin-top: 14px;
}

.theme-decoration-upload .secondary {
  margin-top: 6px;
}

.theme-decoration-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.theme-decoration-preview img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--sage-light);
  padding: 6px;
}

.theme-decoration-position-field {
  margin: 14px 0 22px;
}

.theme-decoration-position-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.theme-decoration-position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "top-left top-center top-right"
    "bottom-left . bottom-right";
  gap: 8px;
  max-width: 320px;
  margin: 8px auto 0;
}

.theme-decoration-position-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--sage-light);
  box-shadow: none;
  white-space: normal;
  cursor: pointer;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.theme-decoration-position-arrow {
  display: inline-flex;
  color: var(--gold-deep);
}

body.admin-theme .theme-decoration-position-arrow {
  color: var(--gold);
}

.theme-decoration-position-option:hover {
  background: var(--paper);
}

.theme-decoration-position-option.active {
  border-color: var(--gold);
  background: var(--paper);
}

#add-table-btn {
  flex: 0 0 auto;
}

.landmark-picker-wrap {
  position: relative;
  flex: 0 0 auto;
}

#add-landmark-btn {
  flex: 0 0 auto;
}

.landmark-picker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 4px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid rgba(176, 141, 79, 0.3);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 26px rgba(138, 109, 60, 0.22);
}

.landmark-picker[hidden] {
  display: none;
}

.landmark-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  box-shadow: none;
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.landmark-picker-option:hover {
  background: var(--sage-light);
  transform: none;
  box-shadow: none;
}

.landmark-picker-option svg {
  flex: 0 0 auto;
  color: var(--sage-deep);
}

.landmark-unit {
  position: absolute;
  width: 0;
  height: 0;
}

.landmark-shape {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  background: var(--paper);
  border: 1px solid rgba(138, 150, 120, 0.4);
  border-radius: var(--radius-sm);
  color: var(--sage-deep);
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 1;
}

.landmark-shape:hover {
  border-color: var(--gold);
  color: var(--charcoal);
}

.landmark-shape.dragging-landmark {
  border-color: var(--gold-deep);
  box-shadow: 0 10px 22px rgba(138, 109, 60, 0.25);
  z-index: 5;
  cursor: grabbing;
}

.landmark-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
}

.landmark-delete-btn {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  z-index: 2;
  cursor: pointer;
  touch-action: auto;
}

.landmark-delete-btn svg {
  width: 11px;
  height: 11px;
}

.floor-plan-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--paper);
  border: 1px solid rgba(176, 141, 79, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.zoom-controls .icon-btn {
  width: 28px;
  height: 28px;
}

.zoom-reset-btn {
  min-width: 44px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  color: var(--sage-deep);
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  padding: 4px 2px;
}

.zoom-reset-btn:hover {
  color: var(--charcoal);
  transform: none;
}

.floor-canvas-viewport {
  position: relative;
  margin-top: 18px;
  height: 60vh;
  min-height: 420px;
  max-height: 640px;
  overflow: auto;
  border: 1px solid rgba(176, 141, 79, 0.25);
  border-radius: var(--radius-sm);
  background: var(--sage-light);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.fullscreen-close-btn {
  z-index: 5;
}

.floor-plan-card.fullscreen-active {
  position: fixed;
  inset: 0;
  z-index: 50;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.floor-plan-card.fullscreen-active::before {
  display: none;
}

.floor-plan-card.fullscreen-active .floor-canvas-viewport {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  margin-top: 0;
  border: none;
  border-radius: 0;
}

.floor-plan-card.fullscreen-active .card-header-row h2,
.floor-plan-card.fullscreen-active > .muted.small {
  display: none;
}

.floor-plan-card.fullscreen-active .card-header-row {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin-bottom: 0;
  width: auto;
  max-width: calc(100vw - 80px);
}

.floor-plan-card.fullscreen-active #fullscreen-btn {
  display: none;
}

.floor-plan-card.fullscreen-active .floor-plan-toolbar {
  background: rgba(255, 253, 249, 0.94);
  padding: 6px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(138, 109, 60, 0.18);
}

.floor-canvas-viewport.panning {
  cursor: grabbing;
}

.floor-canvas-sizer {
  position: relative;
}

.floor-canvas {
  position: relative;
  width: 1500px;
  height: 900px;
  background-image: radial-gradient(circle, rgba(138, 109, 60, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  transform-origin: 0 0;
  overflow: visible;
}

.table-unit {
  position: absolute;
  width: 0;
  height: 0;
}

.chair {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  margin: -11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--sage-deep);
  transform: rotate(var(--chair-angle, 0deg)) translate(0, var(--chair-radius, -60px));
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chair.occupied {
  background: var(--gold);
  border-color: var(--gold-deep);
}

#floor-canvas .chair {
  pointer-events: auto;
  transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#floor-canvas .chair.occupied {
  cursor: pointer;
  touch-action: none;
}

#floor-canvas .chair.picked {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 55%, transparent);
  animation: chair-pick-pulse 1.1s ease-in-out infinite;
  z-index: 3;
}

#floor-canvas .chair.just-dropped {
  animation: chair-drop-pop 0.6s ease;
}

#floor-canvas .chair.drop-target {
  border-style: solid;
  border-color: var(--gold-deep);
  background: color-mix(in srgb, var(--gold) 35%, var(--paper));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent);
}

.chair-drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  margin: -15px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3);
}

@keyframes chair-pick-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 55%, transparent);
  }
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--gold) 25%, transparent);
  }
}

@keyframes chair-drop-pop {
  0% {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 70%, transparent);
  }
  40% {
    box-shadow: 0 0 0 9px color-mix(in srgb, var(--gold) 35%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.chair.chair-you {
  box-shadow: 0 0 0 3px rgba(176, 141, 79, 0.45);
}

.chair.chair-fixed {
  transform: none;
}

.chair-initials {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  user-select: none;
  transform: rotate(var(--chair-counter-angle, 0deg));
}

.table-shape {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: translate(-50%, -50%);
  background: var(--paper);
  border: 2px solid var(--gold);
  box-shadow: 0 8px 18px rgba(138, 109, 60, 0.18);
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 1;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.table-shape.round {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.table-shape.rectangle {
  border-radius: var(--radius-sm);
}

.table-shape:hover {
  border-color: var(--gold-deep);
  box-shadow: 0 12px 26px rgba(138, 109, 60, 0.26);
}

.table-shape:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.table-shape.dragging-table {
  border-color: var(--gold-deep);
  box-shadow: 0 16px 32px rgba(138, 109, 60, 0.32);
  z-index: 5;
  cursor: grabbing;
}

.table-shape-label {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--charcoal);
}

.table-shape-count {
  font-size: 0.7rem;
  color: var(--sage-deep);
}

.table-rotate-overlay-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  z-index: 2;
  cursor: pointer;
  touch-action: auto;
}

.table-rotate-overlay-btn svg {
  width: 13px;
  height: 13px;
}

.table-preview {
  width: 100%;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(176, 141, 79, 0.18);
}

.table-preview-title {
  margin: 0 0 14px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
}

.table-preview-canvas[hidden] {
  display: none;
}

.table-preview-switch {
  display: flex;
  width: fit-content;
  margin: 0 auto 18px;
}

.table-preview-canvas {
  position: relative;
  height: 180px;
  margin: 0 auto 18px;
}

.table-preview-canvas .table-shape {
  cursor: default;
  touch-action: auto;
}

.table-preview-canvas .table-shape:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 18px rgba(138, 109, 60, 0.18);
}

.table-preview-canvas .chair.occupied {
  pointer-events: auto;
  cursor: pointer;
}

.chair-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 8px));
  white-space: nowrap;
  background: var(--charcoal);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(33, 31, 26, 0.25);
  z-index: 10;
}

.chair-tooltip[hidden] {
  display: none;
}

.table-preview-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.table-preview-names[hidden] {
  display: none;
}

.table-preview-name {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid rgba(176, 141, 79, 0.25);
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  color: var(--ink);
}

.table-preview-name.you {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
}

.wayfinding-panel {
  width: 100%;
}

.wayfinding-panel[hidden] {
  display: none;
}

.wayfinding-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.wayfinding-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wayfinding-field label {
  font-size: 0.7rem;
  color: var(--sage-deep);
}

.wayfinding-field select {
  font-size: 0.85rem;
  padding: 7px 10px;
}

.wayfinding-arrow-sep {
  margin-top: 16px;
  color: var(--gold-deep);
  font-size: 1.1rem;
}

.wayfinding-map {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 100 / 60;
  margin: 0 auto;
  background: var(--sage-light);
  border: 1px solid rgba(176, 141, 79, 0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.wayfinding-marker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.wayfinding-marker-shape {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--sage-deep);
}

.wayfinding-marker-table.rectangle .wayfinding-marker-shape {
  width: 22px;
  height: 13px;
  border-radius: 3px;
}

.wayfinding-marker-table.rectangle.rotated .wayfinding-marker-shape {
  width: 13px;
  height: 22px;
}

.wayfinding-marker-icon {
  display: flex;
  color: var(--sage-deep);
}

.wayfinding-marker-icon svg {
  width: 17px;
  height: 17px;
}

.wayfinding-marker-label {
  font-family: var(--guest-font-body);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  line-height: 1;
  text-shadow: 0 0 3px var(--sage-light), 0 0 3px var(--sage-light), 0 0 3px var(--sage-light);
}

.wayfinding-marker.active-from .wayfinding-marker-shape,
.wayfinding-marker.active-from .wayfinding-marker-icon {
  color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(95, 107, 83, 0.3);
}

.wayfinding-marker.active-from .wayfinding-marker-shape {
  box-shadow: 0 0 0 3px rgba(95, 107, 83, 0.3);
}

.wayfinding-marker.active-to .wayfinding-marker-shape {
  background: var(--gold);
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(176, 141, 79, 0.35);
}

.wayfinding-marker.active-to .wayfinding-marker-icon {
  color: var(--gold-deep);
}

.wayfinding-arrow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wayfinding-arrow-line {
  fill: none;
  stroke: #8a6d3c;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unassigned-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unassigned-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid rgba(176, 141, 79, 0.18);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(138, 109, 60, 0.06);
}

.unassigned-row select {
  width: auto;
  flex: 0 0 auto;
}

.modal-panel-wide {
  max-width: 460px;
  text-align: left;
}

.modal-panel-wide h3 {
  text-align: left;
}

.table-modal {
  padding: 38px 22px 20px;
}

.table-modal > .field {
  margin-bottom: 16px;
}

.table-modal > .field:last-child {
  margin-bottom: 0;
}

.table-modal-top-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.table-modal-top-row .field {
  flex: 1;
  margin-bottom: 0;
}

.table-name-field input {
  height: 38px;
}

.table-label-input {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  background: var(--sage-light);
}

.table-modal-top-row .icon-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
}

.table-modal-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(176, 141, 79, 0.2);
}

.table-modal-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.table-modal-row .field {
  margin-bottom: 0;
}

.table-modal-row .field:first-child {
  flex: 1.4;
}

.table-modal-row .field:last-child {
  flex: 1;
}

.shape-picker-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shape-picker {
  display: flex;
  flex: 1;
  gap: 6px;
}

.table-rotate-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
}

.table-rotate-btn[hidden] {
  display: none;
}

.shape-option {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 6px;
  border: 1.5px solid rgba(176, 141, 79, 0.25);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--sage-deep);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.shape-option input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.shape-option:hover {
  border-color: var(--gold);
}

.shape-option:has(input:checked) {
  border-color: var(--gold-deep);
  background: var(--sage-light);
  color: var(--charcoal);
}

.shape-option-icon {
  flex: 0 0 auto;
  border: 2px solid var(--sage-deep);
  background: var(--paper);
  transition: border-color 0.15s ease;
}

.shape-option-icon-round {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.shape-option-icon-rectangle {
  width: 20px;
  height: 13px;
  border-radius: 3px;
}

.shape-option:has(input:checked) .shape-option-icon {
  border-color: var(--gold-deep);
}

.seats-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seats-stepper .icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.seats-stepper input {
  width: 44px;
  height: 38px;
  padding: 0 4px;
  text-align: center;
  flex: 0 0 auto;
}

.table-modal-guests-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.table-modal-subtitle {
  margin-bottom: 0;
  font-family: 'Playfair Display', serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--charcoal);
}

.table-modal-guest-count {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--sage-light);
  color: var(--sage-deep);
  font-size: 0.74rem;
  font-weight: 700;
}

.table-modal-guest-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  max-height: 130px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.table-modal-guest-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--sage-light);
  border-radius: var(--radius-sm);
}

.table-modal-guest-row .guest-row-name {
  flex: 1;
  font-size: 0.86rem;
}

.table-modal-guest-row select {
  width: 72px;
  height: 32px;
  padding: 0 8px;
  flex: 0 0 auto;
}

.table-modal-guest-row .icon-btn {
  width: 28px;
  height: 28px;
}

.table-modal-add {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-modal-add select,
.table-modal-add input {
  flex: 1;
  height: 42px;
}

.table-modal-add button {
  flex: 0 0 auto;
}

.table-modal-add .icon-btn {
  width: 42px;
  height: 42px;
}

@media (max-width: 600px) {
  .page {
    padding: 64px 14px 56px;
  }

  .card {
    padding: 20px;
  }

  header.hero {
    padding: 12px 8px;
  }

  header.hero.invite-hero {
    padding: 90px 16px 16px;
  }

  header.hero h1 {
    font-size: 1.7rem;
  }

  .script-word {
    font-size: 2.4rem;
  }

  .lang-switcher-mount {
    top: 12px;
    right: 12px;
  }

  .lang-switcher-trigger {
    padding: 5px 10px;
    font-size: 0.66rem;
  }

  .table-preview-switch .mode-btn {
    padding: 0 9px;
    font-size: 0.68rem;
  }

  .wedding-item .actions,
  .table-group .actions {
    width: 100%;
    max-width: none;
    flex-wrap: wrap;
  }

  .wedding-item .info strong {
    font-size: 1rem;
  }

  .guest-row {
    padding: 10px 12px;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .guest-row-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .guest-row-actions {
    width: auto;
    flex: 0 0 auto;
    gap: 4px;
  }

  .guest-table-edit {
    width: 38px;
    padding: 6px 4px;
    font-size: 16px;
  }

  .row-arrows {
    gap: 0;
  }

  .guest-row .icon-btn {
    width: 28px;
    height: 28px;
  }

  .drag-handle {
    min-width: 22px;
    min-height: 28px;
  }

  nav.admin-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .floor-canvas-viewport {
    height: 70vh;
    min-height: 360px;
  }

  .modal-panel-wide {
    max-width: 100%;
  }

  .table-modal-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* Admin theme: repurposes the shared --gold/--sage slots as a violet (primary) +
   sky-blue (secondary) accent duo for admin.html/wedding-admin.html/etc., scoped
   via body.admin-theme so the guest-facing pages keep their wedding styling. */
body.admin-theme {
  --gold: #1aafaa;
  --gold-deep: #0e7c78;
  --gold-light: #dff6f5;
  --sage: #f4a261;
  --sage-deep: #e07b39;
  --sage-light: #fdeedd;
  --ink: #6b7280;
  --charcoal: #2c4363;
  --cream: #f0f4f6;
  --paper: #ffffff;
  --accent-teal: #2e3a59;
  --accent-teal-deep: #1b2440;
  --accent-teal-light: #e7e9f0;
}

/* Admin theme uses Inter instead of the guest theme's wedding-style Playfair
   Display serif — !important since Playfair is hardcoded on many unscoped
   selectors (h1/h3/.modal-panel h3/etc.) throughout this file. Inter (not
   Lato) specifically because Lato's diacritic glyphs (ă, â, î, ș, ț) render
   with a detached/misplaced breve mark — Inter is built for broad Unicode
   coverage and renders Romanian diacritics correctly. */
body.admin-theme,
body.admin-theme * {
  font-family: 'Inter', sans-serif !important;
}

body.admin-theme header.hero::before,
body.admin-theme header.hero::after {
  display: none;
}

body.admin-theme header.hero p:not(.eyebrow) {
  color: var(--gold);
}

body.admin-theme .divider span::after {
  content: '';
}

body.admin-theme .card {
  background: rgba(245, 248, 249, 0.92);
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

body.admin-theme .card::before {
  display: none;
}

body.admin-theme input,
body.admin-theme select,
body.admin-theme textarea {
  background: var(--paper);
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.admin-theme input:focus,
body.admin-theme select:focus,
body.admin-theme textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-deep) 15%, transparent);
}

body.admin-theme button:not([class]) {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--gold-deep) 35%, transparent);
}

body.admin-theme button:not([class]):hover {
  background: linear-gradient(135deg, var(--gold-deep), color-mix(in srgb, var(--gold-deep) 75%, black));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--gold-deep) 45%, transparent);
  filter: none;
}

body.admin-theme button.secondary,
body.admin-theme a.secondary {
  text-decoration-color: color-mix(in srgb, var(--gold-deep) 50%, transparent);
}

body.admin-theme .mode-btn.active,
body.admin-theme .view-switch-tab.active {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

body.admin-theme .view-switch-tab {
  color: var(--charcoal);
}

body.admin-theme .file-dropzone {
  border-color: color-mix(in srgb, var(--gold) 35%, transparent);
}

body.admin-theme .table-guest-list {
  background: color-mix(in srgb, var(--gold) 7%, transparent);
}

body.admin-theme .guest-row {
  border-color: color-mix(in srgb, var(--gold) 18%, transparent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

body.admin-theme .guest-row:hover {
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

body.admin-theme .guest-row.dragging {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}

body.admin-theme .guest-row-empty {
  border-color: color-mix(in srgb, var(--gold) 30%, transparent);
}

body.admin-theme .wedding-item:hover {
  background: color-mix(in srgb, var(--gold) 8%, var(--paper));
}

body.admin-theme .modal-overlay {
  background: rgba(15, 23, 42, 0.5);
}

body.admin-theme .modal-panel:not(.photo-lightbox-panel) {
  background: rgba(245, 248, 249, 0.92);
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
}

body.admin-theme .lang-switcher-trigger {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

body.admin-theme .lang-switcher-menu {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.15);
}

body.admin-theme .lang-switcher-chevron,
body.admin-theme .lang-switcher-option,
body.admin-theme .lang-switcher-option[aria-selected='true'],
body.admin-theme .lang-switcher-option .check {
  color: var(--charcoal);
}

body.admin-theme select.mini-lang-select,
body.admin-theme .modal-close,
body.admin-theme .partner-icon-option:not(.active),
body.admin-theme .bulk-add-feedback,
body.admin-theme .table-shape-count,
body.admin-theme .landmark-picker-option svg,
body.admin-theme .shape-option,
body.admin-theme .table-modal-guest-count,
body.admin-theme .theme-color-field label {
  color: var(--charcoal);
}

body.admin-theme .muted,
body.admin-theme .table-group-count,
body.admin-theme .table-guest-list-empty,
body.admin-theme .guest-row-empty,
body.admin-theme .empty-state {
  color: var(--charcoal);
}

body.admin-theme nav.admin-nav a,
body.admin-theme .admin-tools-label,
body.admin-theme .field label,
body.admin-theme .mode-btn,
body.admin-theme .icon-btn:not(.icon-btn-danger),
body.admin-theme .lang-switcher-trigger {
  color: var(--charcoal);
}

body.admin-theme button.secondary,
body.admin-theme a.secondary {
  color: var(--charcoal);
  border-color: var(--charcoal);
  text-decoration-color: color-mix(in srgb, var(--charcoal) 50%, transparent);
}

body.admin-theme input::placeholder,
body.admin-theme textarea::placeholder {
  color: var(--charcoal);
}

/* Floor-plan canvas: the --gold/--sage variables above already neutralize most of this,
   but a few shadows/borders use hardcoded warm-tinted rgba() values. */
body.admin-theme .landmark-picker {
  border-color: color-mix(in srgb, var(--gold) 30%, transparent);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

body.admin-theme .landmark-shape.dragging-landmark {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

body.admin-theme .zoom-controls {
  border-color: color-mix(in srgb, var(--gold) 30%, transparent);
}

body.admin-theme .zoom-reset-btn {
  color: var(--charcoal);
}

body.admin-theme .floor-plan-card.fullscreen-active .floor-plan-toolbar {
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

body.admin-theme .floor-canvas-viewport {
  border-color: color-mix(in srgb, var(--gold) 25%, transparent);
}

body.admin-theme .floor-canvas {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--gold) 18%, transparent) 1px, transparent 1px);
}

body.admin-theme .chair.chair-you {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-deep) 40%, transparent);
}

body.admin-theme .table-shape {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

body.admin-theme .table-shape:hover {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

body.admin-theme .table-shape.dragging-table {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
}

body.admin-theme .unassigned-row {
  border-color: color-mix(in srgb, var(--gold) 18%, transparent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

body.admin-theme .table-modal-divider {
  background: color-mix(in srgb, var(--gold) 20%, transparent);
}

body.admin-theme .shape-option {
  border-color: color-mix(in srgb, var(--gold) 25%, transparent);
}

/* Guest theme: index.html reads colors from the --guest-* variables (set above, and
   overridden per-wedding at runtime by js/guest.js) instead of the shared --gold/--sage scheme. */
body.guest-theme {
  background: var(--guest-bg);
  background-image: radial-gradient(circle at 50% 0%, #ffffff 0%, var(--guest-bg) 60%);
  color: var(--guest-text);
  font-family: var(--guest-font-body);
}

body.guest-theme input,
body.guest-theme select,
body.guest-theme button,
body.guest-theme a.secondary,
body.guest-theme .lang-switcher-trigger,
body.guest-theme .lang-switcher-option,
body.guest-theme .chair-tooltip,
body.guest-theme .chair-initials {
  font-family: var(--guest-font-body);
}

body.guest-theme header.hero h1,
body.guest-theme header.hero p:not(.eyebrow) {
  font-family: var(--guest-font-title);
}

body.guest-theme .muted,
body.guest-theme .empty-state {
  color: var(--guest-text);
  opacity: 0.75;
}

body.guest-theme .card {
  background: var(--guest-card-bg);
  border-color: var(--guest-input-border);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.06);
}

body.guest-theme .card::before {
  border-color: rgba(0, 0, 0, 0.06);
}

body.guest-theme input,
body.guest-theme select {
  background: var(--guest-input-bg);
  color: var(--guest-input-text);
  border-color: var(--guest-input-border);
}

body.guest-theme input::placeholder {
  color: var(--guest-input-text);
  opacity: 0.6;
}

body.guest-theme input:focus,
body.guest-theme select:focus {
  border-color: var(--guest-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--guest-accent) 16%, transparent);
}

body.guest-theme .search-field .search-icon {
  color: var(--guest-accent);
}

body.guest-theme .icon-btn.search-clear-btn {
  background: var(--guest-card-bg);
  color: var(--guest-accent);
  border-color: var(--guest-input-border);
}

body.guest-theme .mode-switch {
  background: var(--guest-input-bg);
}

body.guest-theme .mode-btn {
  color: var(--guest-text);
}

body.guest-theme .mode-btn.active {
  background: var(--guest-card-bg);
  color: var(--guest-title);
}

.script-word {
  color: var(--guest-title);
}

.title-heart {
  color: var(--guest-accent);
}

.result .table-number {
  border-color: var(--guest-input-border);
  background: var(--guest-input-bg);
}

.result .guest-name {
  color: var(--guest-text);
  font-family: var(--guest-font-title);
}

.result .table-sep {
  background: var(--guest-input-border);
}

.result .table-label {
  color: var(--guest-text);
  opacity: 0.7;
}

.result .table-value {
  color: var(--guest-accent);
  font-family: var(--guest-font-title);
}

.guest-match {
  background: var(--guest-card-bg);
  border-color: var(--guest-input-border);
}

.guest-match .match-table {
  color: var(--guest-accent);
}

.guest-match:hover {
  background: var(--guest-input-bg);
}

.error-msg {
  color: var(--guest-text);
  font-family: var(--guest-font-body);
}

.table-preview {
  border-top-color: color-mix(in srgb, var(--guest-text) 15%, transparent);
}

.table-preview-title {
  color: var(--guest-text);
  font-family: var(--guest-font-title);
}

.table-preview-canvas {
  background: var(--guest-canvas-bg);
  border-radius: var(--radius-sm);
}

.table-preview-canvas .table-shape {
  background: var(--guest-card-bg);
  border-color: var(--guest-table-color);
}

.table-preview-canvas .table-shape-label,
.table-preview-canvas .table-shape-count {
  color: var(--guest-text);
}

.table-preview-canvas .table-shape-label {
  font-family: var(--guest-font-title);
}

.table-preview-canvas .chair {
  background: var(--guest-card-bg);
  border-color: var(--guest-chair-color);
}

.table-preview-canvas .chair.occupied {
  background: var(--guest-accent);
  border-color: var(--guest-accent);
}

.table-preview-canvas .chair.chair-you {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--guest-accent) 45%, transparent);
}

.table-preview-canvas .chair-initials {
  color: var(--guest-card-bg);
}

.table-preview-switch.mode-switch {
  background: var(--guest-input-bg);
}

.table-preview-name {
  background: var(--guest-card-bg);
  border-color: var(--guest-input-border);
  color: var(--guest-text);
  font-family: var(--guest-font-title);
}

.table-preview-name.you {
  background: var(--guest-input-bg);
  border-color: var(--guest-accent);
  color: var(--guest-text);
}

.chair-tooltip {
  background: var(--guest-text);
  color: var(--guest-card-bg);
}

.wayfinding-field label {
  color: var(--guest-text);
  opacity: 0.75;
}

.wayfinding-map {
  background: var(--guest-canvas-bg);
}

.wayfinding-marker-shape {
  background: var(--guest-card-bg);
  border-color: var(--guest-chair-color);
}

.wayfinding-marker-icon {
  color: var(--guest-chair-color);
}

.wayfinding-marker-label {
  color: var(--guest-text);
}

.wayfinding-marker.active-from .wayfinding-marker-shape,
.wayfinding-marker.active-from .wayfinding-marker-icon {
  color: var(--guest-table-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--guest-table-color) 35%, transparent);
}

.wayfinding-marker.active-to .wayfinding-marker-shape {
  background: var(--guest-accent);
  border-color: var(--guest-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--guest-accent) 35%, transparent);
}

.wayfinding-marker.active-to .wayfinding-marker-icon {
  color: var(--guest-accent);
}

.wayfinding-arrow-line {
  stroke: var(--guest-accent);
}
