:root {
  color-scheme: light dark;
  --ink: #202522;
  --muted: #66706a;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: #dedbd0;
  --green: #23423b;
  --green-soft: #e4eee8;
  --terracotta: #b85a3a;
  --terracotta-deep: #823923;
  --terracotta-soft: #f7e7df;
  --gold: #f4b860;
  --gold-frame: #d7a449;
  --gold-frame-light: #ffe6a6;
  --gold-frame-dark: #9b6b1e;
  --coral: #d95d39;
  --red: #b3261e;
  --shadow: 0 16px 36px rgba(90, 61, 43, 0.14);
  --announcement-frame-lalou: url("/cadre-annonces-lalou-photoshop-sans-txt.png?v=293");
  --announcement-frame-ratio: 1774 / 803;
  --announcement-frame-source-height: 887;
  --announcement-frame-crop-height: 803;
  --announcement-frame-crop-top: 22;
  --announcement-frame-crop-bottom: 62;
  --z-photo-viewer: 9000;
  --z-photo-viewer-modal: 9100;
  --z-under-photo-viewer: 8990;
  --z-notification-nudge: 9500;
  --z-profile-request: 9600;
  --z-trombi-modal: 82;
  --z-profile-viewer: 83;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.86)),
    repeating-linear-gradient(0deg, rgba(32, 37, 34, 0.030) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(32, 37, 34, 0.024) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(45deg, rgba(184, 90, 58, 0.014) 0 1px, transparent 1px 9px),
    #ffffff;
  background-size: auto, 5px 5px, 6px 6px, 9px 9px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.photo-viewer-open {
  overflow: hidden;
  touch-action: none;
}

body.notification-nudge-open,
body.profile-request-open {
  overflow: hidden;
  touch-action: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.public-light-theme,
.public-light-theme button,
.public-light-theme input,
.public-light-theme textarea,
.public-light-theme select {
  color-scheme: light only;
}

.public-light-theme * {
  forced-color-adjust: none;
}

body.public-light-theme {
  background-color: #fff7ed;
  background-image: url("/fond-invite.png?v=302");
  background-position: top center;
  background-repeat: repeat-y;
  background-size: min(100vw, 852px) auto;
}

@media (prefers-color-scheme: dark) {
  .public-light-theme {
    color-scheme: light only;
    color: var(--ink);
    background-color: #fff7ed;
  }

  .public-light-theme img,
  .public-light-theme video {
    filter: none;
  }

  .admin-adaptive-theme {
    color-scheme: dark;
    --ink: #f5f0e8;
    --muted: #b9afa3;
    --paper: #111410;
    --panel: #1b201b;
    --line: #3a332b;
    --green: #8fc8b4;
    --green-soft: #20342c;
    --terracotta: #e58a68;
    --terracotta-deep: #f0a583;
    --terracotta-soft: #39231d;
    --red: #ff8d83;
    --shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
    background:
      linear-gradient(180deg, rgba(17, 20, 16, 0.96), rgba(17, 20, 16, 0.94)),
      repeating-linear-gradient(0deg, rgba(245, 240, 232, 0.035) 0 1px, transparent 1px 5px),
      repeating-linear-gradient(90deg, rgba(245, 240, 232, 0.028) 0 1px, transparent 1px 6px),
      #111410;
  }

  .admin-adaptive-theme .brand img {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }

  .admin-adaptive-theme .secondary-action,
  .admin-adaptive-theme .admin-input,
  .admin-adaptive-theme .admin-textarea,
  .admin-adaptive-theme .mini-action {
    border-color: rgba(229, 138, 104, 0.28);
    background: var(--panel);
    color: var(--ink);
  }

  .admin-adaptive-theme .admin-input::placeholder,
  .admin-adaptive-theme .admin-textarea::placeholder {
    color: rgba(245, 240, 232, 0.52);
  }

  .admin-adaptive-theme .admin-guests-panel,
  .admin-adaptive-theme .guest-row,
  .admin-adaptive-theme .audit-panel,
  .admin-adaptive-theme .admin-confirm-dialog {
    border-color: rgba(245, 240, 232, 0.14);
    background: rgba(27, 32, 27, 0.96);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  }

  .admin-adaptive-theme .photo-grid:empty::before,
  .admin-adaptive-theme .guest-list:empty::before,
  .admin-adaptive-theme .audit-list:empty::before,
  .admin-adaptive-theme .broadcast-history-list:empty::before {
    border-color: rgba(229, 138, 104, 0.26);
    background: rgba(27, 32, 27, 0.72);
    color: var(--muted);
  }

  .admin-adaptive-theme .broadcast-history-item,
  .admin-adaptive-theme .audit-item {
    border-color: rgba(245, 240, 232, 0.14);
    background: rgba(27, 32, 27, 0.86);
  }

  .admin-adaptive-theme .broadcast-history-summary {
    border-color: rgba(245, 240, 232, 0.14);
    background: rgba(27, 32, 27, 0.86);
  }

  .admin-adaptive-theme .broadcast-tabs {
    border-color: rgba(245, 240, 232, 0.14);
    background: rgba(17, 20, 16, 0.72);
  }

  .admin-adaptive-theme .broadcast-delete-button:hover,
  .admin-adaptive-theme .broadcast-delete-button:focus-visible {
    background: rgba(255, 141, 131, 0.12);
  }

  .admin-adaptive-theme .photo-card {
    box-shadow:
      0 0 0 1px rgba(255, 230, 166, 0.18) inset,
      0 8px 18px rgba(0, 0, 0, 0.28);
  }

  .admin-adaptive-theme .photo-credit {
    border-color: rgba(245, 240, 232, 0.16);
    background: rgba(27, 32, 27, 0.74);
    color: var(--ink);
    box-shadow: none;
  }

  .admin-adaptive-theme .photo-credit-compact-name,
  .admin-adaptive-theme .photo-credit-main,
  .admin-adaptive-theme .photo-credit-likes {
    color: var(--ink);
  }

  .admin-adaptive-theme .caption-dialog {
    border-color: rgba(245, 240, 232, 0.16);
    background:
      linear-gradient(180deg, rgba(27, 32, 27, 0.95), rgba(17, 20, 16, 0.96)),
      var(--paper);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  }

  .admin-adaptive-theme .caption-modal-input {
    border-color: rgba(245, 240, 232, 0.18);
    background: rgba(17, 20, 16, 0.84);
    color: var(--ink);
  }

  .admin-adaptive-theme .version-badge {
    border-color: rgba(245, 240, 232, 0.14);
    background: rgba(27, 32, 27, 0.72);
    color: rgba(245, 240, 232, 0.52);
  }
}

@media (min-width: 900px) {
  body.public-light-theme {
    background-size: 852px auto;
  }
}

.app-shell {
  width: min(760px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 22px;
}

.public-light-theme .topbar {
  position: relative;
  justify-content: center;
  min-height: 0;
  padding: 24px 0 0;
}

.public-light-theme .brand {
  width: 100%;
  justify-content: center;
}

.topbar-actions-toggle {
  display: none;
}

.public-light-theme .topbar-actions-toggle {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 24;
  display: grid;
  place-items: center;
  width: 44px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transform: translateX(-50%);
}

.public-light-theme .topbar-actions-toggle::before {
  width: 9px;
  height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  color: rgba(130, 57, 35, 0.72);
  content: "";
  filter: drop-shadow(0 1px 0 rgba(255, 253, 248, 0.9));
  transform: translateY(-4px) rotate(45deg);
}

.public-light-theme .topbar-actions-toggle[aria-expanded="true"]::before {
  transform: translateY(2px) rotate(225deg);
}

.public-light-theme .topbar-actions-toggle:focus-visible {
  outline: 3px solid rgba(244, 184, 96, 0.82);
  outline-offset: 3px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(184, 90, 58, 0.18);
}

.public-light-theme .brand .public-header-art {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 1 auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 7px 12px rgba(90, 61, 43, 0.10));
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.public-light-theme .topbar-actions {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 23;
  padding: 6px;
  border: 1px solid rgba(184, 90, 58, 0.16);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 16px 34px rgba(90, 61, 43, 0.18);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.public-light-theme .topbar-actions[hidden] {
  display: none;
}

.reload-action,
.notification-header-action,
.install-header-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(184, 90, 58, 0.20);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--terracotta-deep);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.notification-header-action {
  width: 54px;
  font-size: 0.78rem;
}

.install-header-action {
  width: 76px;
  padding: 0 8px;
  font-size: 0.72rem;
  text-align: center;
  white-space: normal;
}

.install-header-action.is-chrome-shortcut {
  width: 62px;
}

.notification-header-action:disabled,
.install-header-action:disabled {
  opacity: 0.58;
  cursor: default;
}

.counter {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 78px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(184, 90, 58, 0.20);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--terracotta-deep);
  font-weight: 800;
}

.counter span {
  min-width: 14px;
  text-align: center;
}

.capture-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 16px;
}

.public-light-theme .capture-panel {
  margin-top: -18px;
}

.admin-token-toggle {
  min-height: 34px;
  margin: -4px 0 14px;
  justify-self: start;
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  background: var(--terracotta-deep);
  color: white;
  box-shadow: var(--shadow);
}

#cameraButton {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#cameraButton:focus-visible {
  outline: 3px solid rgba(244, 184, 96, 0.82);
  outline-offset: 3px;
}

.photo-button-art,
.import-button-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(90, 61, 43, 0.18));
  transition: transform 160ms ease, filter 160ms ease;
}

#cameraButton:active .photo-button-art,
#galleryButton:active .import-button-art {
  transform: translateY(1px) scale(0.99);
  filter: drop-shadow(0 8px 16px rgba(90, 61, 43, 0.14));
}

#galleryButton {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#galleryButton:focus-visible {
  outline: 3px solid rgba(184, 90, 58, 0.36);
  outline-offset: 3px;
}

.audio-guestbook-action {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(100%, 520px);
  min-height: 102px;
  padding: 0 18px;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--terracotta-deep);
  font-size: 1.44rem;
  line-height: 1.05;
  box-shadow: none;
}

.audio-guestbook-action span {
  display: inline-block;
  max-width: 100%;
  color: #74301f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1em;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
  text-align: left;
  text-shadow:
    0 1px 0 rgba(255, 248, 234, 0.96),
    0 2px 0 rgba(255, 220, 145, 0.42),
    0 3px 4px rgba(90, 61, 43, 0.32),
    0 0 8px rgba(255, 253, 248, 0.76);
}

.audio-guestbook-action:focus-visible {
  outline: 3px solid rgba(244, 184, 96, 0.72);
  outline-offset: 3px;
}

.audio-guestbook-button-art {
  flex: 0 0 auto;
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
  filter: drop-shadow(0 10px 16px rgba(90, 61, 43, 0.22));
}

.profile-photo-action {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.88rem;
}

#profilePhotoButton {
  grid-column: 2;
  grid-row: 4;
  align-self: start;
  width: 100%;
  margin-top: -4px;
}

#adminProfilePhotoButton {
  grid-column: 2;
  grid-row: 2;
  min-height: 42px;
}

#trashButton {
  grid-column: 1;
  grid-row: 2;
}

#auditButton {
  grid-column: 1 / -1;
  min-height: 42px;
}

.trombi-action {
  width: 100%;
  min-height: 38px;
  margin: -2px 0 14px;
  padding: 0 16px;
  border: 1px solid rgba(184, 90, 58, 0.20);
  background: rgba(255, 253, 248, 0.86);
  color: var(--terracotta-deep);
  font-size: 0.9rem;
  box-shadow: 0 10px 22px rgba(90, 61, 43, 0.10);
}

.call-admin-action {
  width: 100%;
  min-height: 38px;
  margin: -6px 0 14px;
  padding: 0 16px;
  border: 1px solid rgba(31, 36, 42, 0.18);
  background: rgba(31, 36, 42, 0.92);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(31, 36, 42, 0.12);
}

.vows-action {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  width: min(100%, 520px);
  min-height: 82px;
  margin: -3px 0 0;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  column-gap: 12px;
  align-items: center;
  border: 1px solid rgba(154, 105, 35, 0.30);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 221, 138, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(250, 242, 229, 0.94));
  color: #8b4514;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.72rem, 5.5vw, 2.65rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 12px 24px rgba(90, 61, 43, 0.12);
}

.vows-action::after {
  content: "";
}

.vows-action-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(154, 105, 35, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  color: #9b6b1e;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(90, 61, 43, 0.10);
}

.vows-action-text {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  color: #8b4514;
  overflow-wrap: anywhere;
  text-shadow:
    0 1px 0 rgba(255, 249, 218, 0.98),
    0 2px 0 rgba(228, 159, 54, 0.76),
    0 3px 0 rgba(102, 38, 22, 0.70),
    0 5px 7px rgba(71, 25, 15, 0.46),
    0 0 12px rgba(255, 234, 160, 0.64);
  -webkit-text-stroke: 0.45px rgba(104, 39, 20, 0.76);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .vows-action-text {
    background: linear-gradient(180deg, #fff2ba 0%, #f6c85d 28%, #b56818 53%, #ffe07a 72%, #8f3d14 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.vows-action:focus-visible {
  outline: 3px solid rgba(244, 184, 96, 0.72);
  outline-offset: 3px;
}

.admin-trombi-action {
  margin: -8px 0 12px;
}

.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.danger-action:disabled {
  opacity: 0.68;
  cursor: progress;
}

.secondary-action {
  border: 1px solid rgba(184, 90, 58, 0.28);
  background: var(--panel);
  color: var(--terracotta-deep);
}

#vowsButton.vows-action {
  border: 1px solid rgba(154, 105, 35, 0.30);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 221, 138, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(250, 242, 229, 0.94));
  color: #8b4514;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 12px 24px rgba(90, 61, 43, 0.12);
}

#audioGuestbookButton.audio-guestbook-action {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.consultation-mode .photo-like-button,
.consultation-mode .photo-viewer-like-action,
.consultation-mode .photo-viewer-likes-button,
.consultation-mode .photo-viewer-comment-form,
.consultation-mode .photo-viewer-comments,
.consultation-mode .photo-viewer-download {
  display: none;
}

.secondary-action:disabled {
  opacity: 0.68;
  cursor: default;
}

.primary-action:disabled {
  opacity: 0.68;
  cursor: default;
  box-shadow: none;
}

.ghost-action {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  line-height: 1;
}

#galleryButton .button-icon {
  background: rgba(184, 90, 58, 0.14);
}

.secondary-action .button-icon {
  background: var(--terracotta-soft);
}

.notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 93, 57, 0.32);
  border-radius: 8px;
  background: #fff5ef;
  color: #7a2f1d;
  font-weight: 700;
}

.broadcast-banner {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  width: 100%;
  min-height: clamp(190px, 24vw, 280px);
  margin: 2px 0 18px;
  padding: clamp(34px, 5vw, 56px) clamp(38px, 12vw, 118px) clamp(34px, 5vw, 58px);
  overflow: visible;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 18px 38px rgba(90, 61, 43, 0.14);
  animation: announcement-pop 460ms ease-out both;
}

.announcement-frame-art {
  position: absolute;
  inset: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  clip-path: none;
  pointer-events: none;
  user-select: none;
}

.broadcast-banner::before,
.broadcast-banner::after {
  content: none;
}

.broadcast-banner h2 {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  color: var(--terracotta-deep);
  font-size: clamp(1.04rem, 2.2vw, 1.34rem);
  font-weight: 950;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 8px rgba(255, 255, 255, 0.70);
}

.broadcast-time {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  color: var(--terracotta-deep);
  font-size: clamp(0.82rem, 1.5vw, 0.98rem);
  font-weight: 850;
  line-height: 1.16;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 8px rgba(255, 255, 255, 0.70);
}

.broadcast-author {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  color: var(--terracotta-deep);
  font-size: clamp(0.78rem, 1.4vw, 0.94rem);
  font-weight: 850;
  line-height: 1.14;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 8px rgba(255, 255, 255, 0.70);
}

.broadcast-author.hidden {
  display: none;
}

.broadcast-banner p {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  color: var(--terracotta);
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  font-size: clamp(1.04rem, 2.2vw, 1.36rem);
  font-weight: 900;
  line-height: 1.38;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 8px rgba(255, 255, 255, 0.70);
  white-space: pre-wrap;
}

.broadcast-message-line {
  display: block;
}

.broadcast-message-line + .broadcast-message-line {
  margin-top: 0.22em;
}

.broadcast-message-line.is-empty {
  min-height: 0.72em;
}

.broadcast-banner p::-webkit-scrollbar,
.broadcast-dialog p::-webkit-scrollbar {
  width: 4px;
}

.broadcast-banner p::-webkit-scrollbar-thumb,
.broadcast-dialog p::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(130, 57, 35, 0.30);
}

.broadcast-banner p::-webkit-scrollbar-track,
.broadcast-dialog p::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes announcement-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  70% {
    opacity: 1;
    transform: translateY(-1px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(184, 90, 58, 0.28);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
}

.admin-message-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-vows-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(184, 90, 58, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

.admin-vows-head h2 {
  color: var(--terracotta-deep);
  font-size: 1rem;
  font-weight: 950;
}

.admin-vows-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.admin-vows-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-vows-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(184, 90, 58, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.admin-vows-card-head h3 {
  margin: 0;
  color: var(--terracotta-deep);
  font-size: 0.96rem;
  font-weight: 950;
}

.admin-vows-card-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-textarea.vows-textarea {
  min-height: 248px;
  line-height: 1.45;
}

.admin-vows-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.admin-vows-actions .primary-action,
.admin-vows-actions .secondary-action {
  min-height: 42px;
}

.vows-media-preview {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 8px;
  border: 1px solid rgba(35, 66, 59, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.vows-media-preview img,
.vows-media-preview video {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 7px;
}

.vows-media-preview span {
  min-width: 0;
  overflow: hidden;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-panel {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -8px 0 14px;
}

.install-action {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.admin-install-link-panel {
  display: grid;
  gap: 9px;
  margin: -4px 0 14px;
  padding: 12px;
  border: 1px solid rgba(184, 90, 58, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

.admin-install-link-copy {
  display: grid;
  gap: 2px;
}

.admin-install-link-copy h2 {
  color: var(--terracotta-deep);
  font-size: 0.96rem;
  font-weight: 950;
}

.admin-install-link-copy p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.24;
}

.admin-install-link-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.install-link-phone {
  min-height: 42px;
}

.install-link-action {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.broadcast-compose-actions {
  display: grid;
  gap: 8px;
}

.broadcast-compose-actions .primary-action,
.broadcast-compose-actions .secondary-action {
  min-height: 44px;
}

.broadcast-history-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.broadcast-history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(184, 90, 58, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  cursor: pointer;
  list-style: none;
}

.broadcast-history-summary::-webkit-details-marker {
  display: none;
}

.broadcast-history-summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  transition: transform 160ms ease;
}

.broadcast-history-panel[open] .broadcast-history-summary::after {
  transform: rotate(180deg);
}

.broadcast-history-summary h2 {
  font-size: 1rem;
}

.broadcast-history-summary p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.broadcast-history-content {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.broadcast-history-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.broadcast-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 0;
  padding: 3px;
  border: 1px solid rgba(184, 90, 58, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.66);
}

.broadcast-tab {
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.broadcast-tab.is-active {
  background: var(--green);
  color: white;
}

.broadcast-history-list {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.broadcast-history-list:empty::before {
  content: "Aucune annonce";
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px dashed rgba(184, 90, 58, 0.20);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-weight: 750;
}

.audio-guestbook-admin-panel {
  margin: 12px 0 14px;
  border: 1px solid rgba(130, 57, 35, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 24px rgba(90, 61, 43, 0.08);
}

.audio-guestbook-admin-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 12px;
  color: var(--terracotta-deep);
  cursor: pointer;
}

.audio-guestbook-admin-summary::-webkit-details-marker {
  display: none;
}

.audio-guestbook-admin-summary::after {
  content: "▾";
  color: rgba(130, 57, 35, 0.78);
  font-weight: 950;
}

.audio-guestbook-admin-panel[open] .audio-guestbook-admin-summary::after {
  transform: rotate(180deg);
}

.audio-guestbook-admin-summary h2 {
  font-size: 0.98rem;
  font-weight: 950;
}

.audio-guestbook-admin-summary p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.audio-guestbook-admin-content {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.audio-guestbook-admin-tools {
  display: flex;
  justify-content: flex-end;
}

.audio-guestbook-admin-list {
  display: grid;
  gap: 10px;
  max-height: 380px;
  overflow: auto;
  padding-right: 2px;
}

.audio-guestbook-admin-list:empty::before {
  content: "Aucun message audio";
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px dashed rgba(130, 57, 35, 0.18);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}

.audio-guestbook-admin-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(130, 57, 35, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.audio-guestbook-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.audio-guestbook-admin-head strong {
  color: var(--terracotta-deep);
  font-size: 0.92rem;
  font-weight: 950;
}

.audio-guestbook-admin-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.audio-guestbook-admin-item audio {
  width: 100%;
}

.audio-guestbook-admin-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.audio-guestbook-admin-action {
  width: 100%;
  min-height: 34px;
  justify-content: center;
  text-align: center;
  line-height: 1.12;
  white-space: normal;
}

.audio-guestbook-admin-transcript {
  margin: 0;
  padding: 9px 10px;
  border-left: 3px solid rgba(184, 90, 58, 0.42);
  border-radius: 6px;
  background: rgba(255, 248, 238, 0.82);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.36;
  white-space: pre-wrap;
}

.audio-guestbook-delete {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.audit-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(35, 66, 59, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
}

.audit-panel.hidden {
  display: none;
}

.audit-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.audit-panel-head h2 {
  font-size: 1rem;
}

.audit-panel-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.audit-panel-actions {
  display: flex;
  gap: 8px;
}

.audit-list {
  display: grid;
  gap: 7px;
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
}

.audit-list:empty::before {
  content: "Aucune action";
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px dashed rgba(184, 90, 58, 0.20);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-weight: 750;
}

.audit-item {
  padding: 10px 12px;
  border: 1px solid rgba(184, 90, 58, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

.audit-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.audit-body p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.audit-details {
  color: var(--terracotta-deep);
}

.broadcast-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(184, 90, 58, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

.broadcast-history-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.broadcast-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.broadcast-history-item.is-active .broadcast-history-meta span:first-child {
  color: var(--green);
}

.broadcast-history-item.is-draft .broadcast-history-meta span:first-child {
  color: var(--terracotta-deep);
}

.broadcast-history-item.is-expired {
  opacity: 0.72;
}

.broadcast-history-item p {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.broadcast-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.broadcast-history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.broadcast-edit-button,
.broadcast-publish-button {
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.broadcast-edit-button {
  background: var(--terracotta);
}

.broadcast-publish-button {
  background: var(--green);
}

.broadcast-cache-button {
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: var(--terracotta-deep);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.broadcast-delete-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.broadcast-delete-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.broadcast-delete-button:hover,
.broadcast-delete-button:focus-visible {
  background: rgba(179, 38, 30, 0.10);
}

.admin-textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid rgba(184, 90, 58, 0.28);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
}

.admin-guests-panel {
  position: fixed;
  top: max(92px, calc(env(safe-area-inset-top) + 76px));
  bottom: max(12px, env(safe-area-inset-bottom));
  right: 0;
  z-index: 18;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: min(460px, calc(100vw - 58px));
  max-height: calc(100svh - max(92px, calc(env(safe-area-inset-top) + 76px)) - max(12px, env(safe-area-inset-bottom)));
  border: 1px solid rgba(35, 66, 59, 0.16);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 42px rgba(32, 37, 34, 0.18);
  transform: translateX(0);
  transition: transform 220ms ease;
  backdrop-filter: blur(10px);
}

.admin-guests-panel.is-closed {
  transform: translateX(100%);
}

.admin-trash-panel {
  right: auto;
  left: 0;
  width: min(420px, calc(100vw - 58px));
  border-right: 1px solid rgba(35, 66, 59, 0.16);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.admin-trash-panel.is-closed {
  transform: translateX(-100%);
}

.guest-drawer-tab {
  position: absolute;
  top: 16px;
  left: -48px;
  display: grid;
  place-items: center;
  gap: 7px;
  width: 48px;
  min-height: 126px;
  padding: 10px 6px;
  border: 1px solid rgba(35, 66, 59, 0.16);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--green);
  color: white;
  box-shadow: 0 12px 24px rgba(32, 37, 34, 0.16);
  cursor: pointer;
}

.trash-drawer-tab {
  right: -48px;
  left: auto;
  border-right: 1px solid rgba(35, 66, 59, 0.16);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--red);
}

.guest-drawer-tab span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

.guest-drawer-tab strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  line-height: 1;
}

.guest-group-tabs {
  position: absolute;
  top: 154px;
  left: -48px;
  z-index: 1;
  display: grid;
  gap: 7px;
  width: 48px;
  max-height: calc(100% - 170px);
  overflow-y: auto;
  scrollbar-width: none;
}

.guest-group-tabs::-webkit-scrollbar {
  display: none;
}

.guest-group-tab {
  display: grid;
  place-items: center;
  gap: 6px;
  width: 48px;
  min-height: 92px;
  padding: 8px 5px;
  border: 1px solid rgba(35, 66, 59, 0.16);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #dcefe8;
  color: var(--green);
  box-shadow: 0 10px 20px rgba(32, 37, 34, 0.12);
  cursor: pointer;
}

.guest-group-tab.is-active {
  background: var(--green-soft);
  color: var(--green);
}

.guest-drawer-tab.is-group-view {
  background: #24423b;
}

.guest-group-tab span {
  max-height: 70px;
  overflow: hidden;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-overflow: ellipsis;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
}

.guest-group-tab strong {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border-radius: 999px;
  background: rgba(35, 66, 59, 0.1);
  font-size: 0.72rem;
  line-height: 1;
}

.guest-drawer-content {
  display: grid;
  grid-auto-rows: max-content;
  gap: 8px;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.trash-list {
  display: grid;
  gap: 9px;
}

.trash-photo-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(35, 66, 59, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.trash-photo-link,
.trash-photo-link img {
  display: block;
  width: 74px;
  aspect-ratio: 1;
}

.trash-photo-link img {
  border-radius: 6px;
  object-fit: cover;
  background: rgba(35, 66, 59, 0.08);
}

.trash-photo-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.trash-photo-body strong,
.trash-photo-body span {
  overflow: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-photo-body strong {
  font-size: 0.9rem;
}

.trash-photo-body span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.trash-photo-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.restore-photo,
.purge-photo {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.restore-photo {
  background: var(--green);
}

.purge-photo {
  background: #a73b2e;
}

.restore-photo:disabled,
.purge-photo:disabled {
  opacity: 0.58;
  cursor: progress;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-head h2 {
  font-size: 1rem;
}

.admin-section-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.admin-section-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.mini-action {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(35, 66, 59, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.mini-action:disabled {
  opacity: 0.62;
  cursor: progress;
}

.danger-mini-action {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(179, 38, 30, 0.10);
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.guest-list {
  display: grid;
  gap: 4px;
}

.guest-search-input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(35, 66, 59, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 820;
}

.guest-search-input::placeholder {
  color: rgba(35, 66, 59, 0.54);
}

.guest-search-input:focus-visible {
  outline: 2px solid rgba(184, 90, 58, 0.36);
  outline-offset: 2px;
}

.whisper-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.whisper-photo-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 8px;
  border: 1px solid rgba(35, 66, 59, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.whisper-photo-preview img,
.whisper-photo-preview video {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 7px;
}

.whisper-photo-preview span {
  min-width: 0;
  overflow: hidden;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whisper-actions {
  display: grid;
  gap: 6px;
  align-content: stretch;
}

.whisper-textarea {
  min-height: 52px;
  padding: 10px;
  font-size: 0.82rem;
}

.whisper-send-button {
  min-width: 116px;
  min-height: 52px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.whisper-photo-button {
  min-width: 116px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.whisper-group-button {
  min-width: 116px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.whisper-send-button:disabled,
.whisper-group-button:disabled {
  opacity: 0.58;
  cursor: default;
}

.whisper-clear-button {
  min-width: 116px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.72rem;
}

.whisper-clear-button:disabled {
  opacity: 0.58;
  cursor: progress;
}

.guest-list:empty::before {
  content: attr(data-empty-label);
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px dashed rgba(35, 66, 59, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  font-weight: 750;
}

.guest-gallery-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(100%, 760px);
  margin: 0 auto 10px;
  padding: 8px 10px;
  border: 1px solid rgba(35, 66, 59, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 8px 22px rgba(32, 37, 34, 0.08);
}

.guest-gallery-tools.hidden {
  display: none;
}

.guest-gallery-tools strong {
  min-width: 0;
  overflow: hidden;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-gallery-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.guest-gallery-actions .secondary-action {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.blocked-guests-head {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(35, 66, 59, 0.12);
}

.guest-groups-head {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(35, 66, 59, 0.12);
}

.ghost-guests-head {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(35, 66, 59, 0.12);
}

.guest-row {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(184, 90, 58, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
}

.guest-row.is-selectable {
  grid-template-columns: auto minmax(74px, 1fr) auto;
}

.ghost-guest-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.guest-select-checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--terracotta);
}

.guest-select-checkbox:disabled {
  opacity: 0.35;
}

.guest-row-body {
  display: grid;
  min-width: 0;
}

.guest-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.guest-row-body strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-row-body span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.guest-row-body .guest-photo-count {
  margin-top: 2px;
  color: var(--terracotta);
  font-weight: 950;
  line-height: 1.15;
}

.whisper-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 22px;
  margin-top: 4px;
  padding: 2px 7px 2px 4px;
  border: 1px solid rgba(95, 111, 122, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4f5b61;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.guest-row-body .whisper-status-chip {
  display: inline-flex;
  flex: 0 0 auto;
  margin-top: 0;
}

.whisper-status-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: currentColor;
  color: white;
  font-size: 0.66rem;
  font-weight: 950;
}

.whisper-status-chip.is-sent {
  border-color: rgba(95, 111, 122, 0.24);
  color: #5f6f7a;
}

.whisper-status-chip.is-received {
  border-color: rgba(184, 90, 58, 0.25);
  background: rgba(255, 241, 226, 0.82);
  color: var(--terracotta-deep);
}

.whisper-status-chip.is-seen {
  border-color: rgba(35, 66, 59, 0.22);
  background: var(--green-soft);
  color: var(--green);
}

.guest-notification-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.guest-notification-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.guest-notification-badge.is-on {
  background: var(--green-soft);
  color: var(--green);
}

.guest-notification-badge.is-off {
  background: #f9dfd7;
  color: var(--red);
}

.guest-notification-badge.is-pending {
  background: rgba(255, 241, 226, 0.92);
  color: var(--terracotta-deep);
}

.guest-notification-badge.is-received {
  background: var(--green-soft);
  color: var(--green);
}

.guest-notification-badge:disabled {
  opacity: 0.62;
  cursor: progress;
}

.guest-row-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-content: stretch;
  gap: 4px;
  width: min(214px, 50vw);
  flex: 0 0 auto;
}

.guest-row-actions > button {
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.guest-group-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(35, 66, 59, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.guest-group-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guest-group-card-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-group-card-head span {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.guest-group-members {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.guest-group-members span {
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.guest-group-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.guest-group-select-button,
.guest-group-delete-button {
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  color: white;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.guest-group-select-button {
  background: var(--green);
}

.guest-group-delete-button {
  background: var(--red);
}

.ghost-row-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 4px;
  align-items: center;
  margin-top: 6px;
}

.ghost-merge-select {
  min-width: 0;
  height: 28px;
  border: 1px solid rgba(184, 90, 58, 0.25);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.guest-merge-modal-body {
  display: grid;
  gap: 10px;
}

.guest-merge-modal-select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(184, 90, 58, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 850;
}

.guest-disconnect-button,
.guest-block-button,
.guest-unblock-button,
.guest-rename-button,
.guest-profile-request-button,
.guest-access-reset-button,
.guest-merge-button,
.guest-account-delete-button {
  min-height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  color: white;
  font-size: 0.66rem;
  font-weight: 900;
  cursor: pointer;
}

.guest-disconnect-button {
  background: var(--red);
}

.guest-block-button {
  background: var(--terracotta-deep);
}

.guest-unblock-button {
  background: var(--green);
}

.guest-rename-button {
  background: #5f6f7a;
}

.guest-profile-request-button {
  background: var(--green);
}

.guest-profile-request-button.is-pending {
  background: var(--terracotta-deep);
}

.guest-access-reset-button {
  background: #4f8378;
}

.guest-merge-button {
  background: var(--green);
}

.guest-account-delete-button {
  background: var(--red);
}

.guest-merge-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.hidden,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.queue-head h2 {
  font-size: 1rem;
}

.gallery-view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  margin: 14px 0 8px;
}

.gallery-view-tab {
  min-width: 0;
  min-height: 34px;
  padding: 5px 4px 7px;
  border: 0;
  border-bottom: 2px solid rgba(130, 57, 35, 0.20);
  background: rgba(255, 253, 248, 0.34);
  color: #5d2f20;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.gallery-view-tab.is-active {
  border-bottom-color: var(--terracotta-deep);
  background: rgba(255, 253, 248, 0.66);
  color: var(--terracotta-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.70) inset;
}

.gallery-view-tab:focus-visible {
  outline: 2px solid rgba(130, 57, 35, 0.48);
  outline-offset: 2px;
}

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

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

.queue-list:empty::before {
  content: "Aucun envoi";
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

.queue-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 10px;
  border: 1px solid rgba(184, 90, 58, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--terracotta-soft);
  background-size: cover;
  background-position: center;
}

.item-body {
  min-width: 0;
}

.item-title {
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.item-status {
  min-width: 78px;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--terracotta-soft);
  color: var(--terracotta-deep);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.queue-item[data-status="error"] .item-status {
  background: #f9dfd7;
  color: var(--red);
}

.queue-item[data-status="uploading"] .item-status {
  background: #fff1cd;
  color: #765211;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.photo-grid:empty::before {
  content: attr(data-empty-label);
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed rgba(184, 90, 58, 0.24);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.50);
}

.top-liked-card {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 390px);
}

.photo-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 248, 0.90) 46%, rgba(246, 238, 226, 0.82));
  box-shadow:
    0 0 0 1px rgba(130, 57, 35, 0.08) inset,
    0 8px 18px rgba(90, 61, 43, 0.12);
}

.photo-card.is-owned-photo {
  border-width: 3px;
  border-color: #8f321d;
  background:
    linear-gradient(135deg, #ffc09a, #d85f37 42%, #742817);
  box-shadow:
    0 0 0 2px rgba(255, 239, 222, 0.92) inset,
    0 0 0 3px rgba(154, 55, 28, 0.98),
    0 0 0 5px rgba(255, 214, 179, 0.96),
    0 10px 22px rgba(112, 40, 22, 0.36);
}

.photo-frame {
  position: relative;
  aspect-ratio: 1;
  margin: 3px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--terracotta-soft);
}

.photo-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--terracotta-soft);
}

.photo-link.is-video-link {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(80, 48, 34, 0.35), rgba(130, 57, 35, 0.16));
}

.photo-link.is-video-thumb-missing {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.44), transparent 38%),
    linear-gradient(135deg, rgba(105, 70, 50, 0.46), rgba(130, 57, 35, 0.22));
}

.photo-link img,
.photo-link video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-video-indicator {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.photo-video-indicator::before {
  content: "";
  width: clamp(48px, 30%, 78px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(35, 26, 20, 0.66);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.70),
    0 10px 24px rgba(32, 20, 16, 0.34);
  backdrop-filter: blur(4px);
}

.photo-video-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-34%, -50%);
  border-top: clamp(10px, 2.4vw, 15px) solid transparent;
  border-bottom: clamp(10px, 2.4vw, 15px) solid transparent;
  border-left: clamp(16px, 3.6vw, 24px) solid #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

.photo-caption-bubble {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 5px rgba(71, 35, 21, 0.64));
}

.photo-caption-bubble img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.photo-caption-bubble.has-caption {
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 7px rgba(255, 215, 104, 0.72))
    drop-shadow(0 0 5px rgba(71, 35, 21, 0.66));
}

.photo-caption-bubble:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.photo-like-button {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 6px rgba(0, 0, 0, 0.42));
}

.photo-like-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.photo-like-button.is-liked {
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 7px rgba(178, 29, 34, 0.72));
}

.photo-like-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.photo-like-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.photo-select-toggle {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 6;
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(35, 26, 20, 0.66);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42) inset,
    0 8px 16px rgba(35, 26, 20, 0.24);
  cursor: pointer;
  backdrop-filter: blur(5px);
  touch-action: manipulation;
}

.photo-card.is-selection-mode .photo-select-toggle,
.photo-card.is-selected .photo-select-toggle {
  display: grid;
}

.photo-select-toggle::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24) inset;
}

.photo-select-toggle::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 15px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  opacity: 0;
  transform: rotate(45deg) translate(-1px, -3px);
}

.photo-select-toggle[aria-pressed="true"]::before {
  border-color: #fff;
  background: #2f7b63;
  box-shadow:
    0 0 0 1px rgba(29, 70, 57, 0.58) inset,
    0 0 10px rgba(47, 123, 99, 0.48);
}

.photo-select-toggle[aria-pressed="true"]::after {
  opacity: 1;
}

.photo-select-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.96);
  outline-offset: 2px;
}

.photo-card.is-selection-mode .photo-like-button {
  display: none;
}

.photo-card.is-selection-mode .photo-link {
  cursor: pointer;
  -webkit-touch-callout: none;
}

.photo-card.is-selected {
  border-color: #2f7b63;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.94) inset,
    0 0 0 3px rgba(47, 123, 99, 0.78),
    0 10px 24px rgba(39, 91, 75, 0.24);
}

.photo-rank-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #301d12;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 2px 7px rgba(0, 0, 0, 0.28);
}

.photo-rank-badge.rank-gold {
  background: linear-gradient(180deg, #ffe99c, #e4a51f);
}

.photo-rank-badge.rank-silver {
  background: linear-gradient(180deg, #f8f8f8, #bfc4ca);
}

.photo-rank-badge.rank-bronze {
  background: linear-gradient(180deg, #f0b37a, #a8642d);
  color: #fffaf0;
  text-shadow: 0 1px 1px rgba(80, 38, 14, 0.58);
}

.photo-rank-badge.rank-white {
  background: rgba(255, 255, 255, 0.92);
}

.photo-credit {
  appearance: none;
  width: auto;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  column-gap: 8px;
  justify-self: stretch;
  min-width: 0;
  margin: -4px 6px 6px;
  min-height: 42px;
  padding: 5px 8px 5px 6px;
  border: 1px solid rgba(130, 57, 35, 0.18);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.78);
  color: #6f3a26;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.74) inset;
}

button.photo-credit {
  cursor: pointer;
}

.photo-credit.is-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 35px;
  padding: 5px 8px;
  white-space: nowrap;
  overflow: hidden;
}

.photo-credit.is-expanded {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 48px;
  padding: 5px 8px 5px 6px;
}

.photo-credit:focus-visible {
  outline: 2px solid rgba(130, 57, 35, 0.46);
  outline-offset: 2px;
}

.photo-credit-compact-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #62351f;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.12;
}

.photo-source-icon {
  justify-self: center;
  width: 31px;
  height: 31px;
  object-fit: contain;
  vertical-align: middle;
  filter:
    drop-shadow(0 1px 1px rgba(78, 39, 21, 0.24))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.42));
}

.photo-source-icon.is-camera {
  width: 34px;
}

.photo-credit-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.photo-credit-main,
.photo-credit-likes {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.photo-credit-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #62351f;
  font-size: 0.76rem;
  line-height: 1.16;
}

.photo-credit-likes {
  color: #6f3a26;
  font-size: 0.70rem;
  line-height: 1.12;
}

.photo-credit.is-compact .photo-credit-compact-name {
  flex: 0 1 auto;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-credit.is-compact .photo-credit-likes {
  flex: 0 0 auto;
  overflow-wrap: normal;
  white-space: nowrap;
}

.photo-credit.is-compact .photo-credit-likes::before {
  content: "- ";
}

.profile-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff6df, #d9a846);
  color: #6f3a26;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 2px 5px rgba(90, 61, 43, 0.18);
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar.is-clickable {
  cursor: pointer;
}

.photo-credit .profile-avatar {
  width: 20px;
  height: 20px;
  font-size: 0.62rem;
}

.photo-viewer-meta .profile-avatar,
.photo-viewer-comment-meta .profile-avatar,
.likes-modal-item .profile-avatar,
.guest-name-line .profile-avatar {
  width: 24px;
  height: 24px;
  font-size: 0.68rem;
}

.comment-author-with-avatar,
.like-author-with-avatar,
.guest-name-with-avatar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.photo-viewer {
  --photo-viewer-comments-peek: 82px;
  position: fixed;
  inset: 0;
  z-index: var(--z-photo-viewer);
  isolation: isolate;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  grid-template-rows: 58px minmax(0, 1fr) 58px;
  align-items: center;
  justify-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #080604;
  touch-action: pan-y;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.photo-viewer.hidden {
  display: none;
}

.photo-viewer-stage {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 54px 52px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  position: relative;
  z-index: 1;
}

.photo-viewer-main {
  flex: 0 0 calc(100% - var(--photo-viewer-comments-peek));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: center;
  justify-items: center;
  align-content: stretch;
  gap: 7px;
  width: 100%;
  height: calc(100% - var(--photo-viewer-comments-peek));
  min-height: 0;
  overflow: hidden;
}

.photo-viewer-image-box {
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  touch-action: pan-y;
}

.photo-viewer-stage img,
.photo-viewer-video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  transition: transform 180ms ease, opacity 180ms ease;
  -webkit-user-drag: none;
}

.photo-viewer-image-box.is-zoomed {
  cursor: grab;
}

.photo-viewer-stage img.is-zoomed {
  cursor: grab;
  transition: transform 80ms ease-out, opacity 180ms ease;
}

.photo-viewer-stage img.is-swapping {
  transition: none;
}

.photo-viewer-stage img.is-sliding-out-left {
  transform: translateX(-110%);
}

.photo-viewer-stage img.is-sliding-out-right {
  transform: translateX(110%);
}

.photo-viewer-stage img.is-sliding-in-left {
  animation: photo-slide-in-left 220ms ease both;
}

.photo-viewer-stage img.is-sliding-in-right {
  animation: photo-slide-in-right 220ms ease both;
}

@keyframes photo-slide-in-left {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes photo-slide-in-right {
  from {
    transform: translateX(110%);
  }
  to {
    transform: translateX(0);
  }
}

.photo-viewer-stage figcaption {
  grid-row: 2;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, auto) 48px;
  align-items: end;
  column-gap: 6px;
  gap: 5px;
  justify-items: center;
  min-height: 28px;
  width: min(100%, 720px);
  max-width: min(100%, 720px);
  padding-top: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

.photo-viewer-stage figcaption.has-caption {
  min-height: 0;
}

.photo-viewer-info-stack {
  grid-column: 2;
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 0;
  max-width: min(100%, 560px);
}

.photo-viewer-caption {
  display: block;
  max-height: 5.4em;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 7px 12px;
  border: 1px solid rgba(130, 57, 35, 0.22);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.92);
  color: #6f3a26;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.35;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 10px 24px rgba(0, 0, 0, 0.20);
}

.photo-viewer-caption-action,
.photo-viewer-like-action,
.photo-viewer-action-spacer {
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
}

.photo-viewer-caption-action,
.photo-viewer-like-action {
  align-self: end;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 6px rgba(0, 0, 0, 0.48));
}

.photo-viewer-caption-action {
  grid-column: 1;
}

.photo-viewer-like-action {
  grid-column: 3;
}

.photo-viewer-caption-action img,
.photo-viewer-like-action img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.photo-viewer-like-action.is-liked {
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 7px rgba(178, 29, 34, 0.78));
}

.photo-viewer-caption-action:disabled,
.photo-viewer-like-action:disabled {
  cursor: progress;
  opacity: 0.72;
}

.photo-viewer-caption-action:focus-visible,
.photo-viewer-like-action:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.photo-viewer-action-spacer {
  grid-column: 1;
  pointer-events: none;
}

.photo-viewer-meta {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  max-width: min(100%, 560px);
  min-height: 44px;
  padding: 5px 10px 5px 7px;
  border: 1px solid rgba(130, 57, 35, 0.18);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.88);
  color: #6f3a26;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.74) inset;
}

.photo-viewer-meta .photo-source-icon {
  width: 32px;
  height: 32px;
}

.photo-viewer-meta .photo-source-icon.is-camera {
  width: 35px;
}

.photo-viewer-meta .photo-credit-main {
  font-size: 0.78rem;
}

.photo-viewer-author-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.photo-viewer-author-button .profile-avatar {
  flex: 0 0 auto;
}

.photo-viewer-date {
  display: block;
  color: #8b5b40;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.18;
}

.photo-viewer-meta .photo-credit-likes {
  font-size: 0.72rem;
}

.photo-viewer-likes-button {
  appearance: none;
  min-height: 34px;
  padding: 7px 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.90);
  color: #6f3a26;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 10px 22px rgba(0, 0, 0, 0.20);
  cursor: pointer;
}

.photo-viewer-likes-button[hidden] {
  display: none;
}

.photo-viewer-likes-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.photo-viewer-comments {
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  width: min(100%, 720px);
  max-width: min(100%, 720px);
  margin: 20px auto 0;
  padding: 8px 0 18px;
  color: #ffffff;
}

.photo-viewer-comments-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 950;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.54);
}

.photo-viewer-comments-header h2 {
  color: inherit;
  font-size: 0.92rem;
  font-weight: 950;
}

.photo-viewer-comments-header span {
  font-size: 1.25rem;
  line-height: 1;
}

.photo-viewer-comments-list {
  display: grid;
  gap: 8px;
  padding: 2px 2px 2px 0;
  scrollbar-width: thin;
}

.photo-viewer-comments-list:empty::before {
  content: "Aucun commentaire pour l'instant.";
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.photo-viewer-comments-status {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.photo-viewer-comment {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: #4f2719;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.photo-viewer-comment.is-own {
  border-color: rgba(184, 90, 58, 0.40);
  box-shadow:
    0 0 0 1px rgba(184, 90, 58, 0.20) inset,
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.photo-viewer-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7a3c27;
  font-size: 0.74rem;
  font-weight: 950;
}

.photo-viewer-comment-text {
  color: #2f211b;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.32;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.photo-viewer-comment-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.photo-viewer-comment-edit,
.photo-viewer-comment-delete {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(130, 57, 35, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--terracotta-deep);
  font-size: 0.7rem;
  font-weight: 950;
  cursor: pointer;
}

.photo-viewer-comment-delete {
  border-color: rgba(168, 36, 29, 0.24);
  color: #a8241d;
}

.photo-viewer-comment-edit:disabled,
.photo-viewer-comment-delete:disabled {
  opacity: 0.62;
  cursor: progress;
}

.photo-viewer-comment-form {
  display: grid;
  gap: 8px;
}

.photo-viewer-comment-input {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.32;
}

.photo-viewer-comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.photo-viewer-comment-submit,
.photo-viewer-comment-cancel {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 950;
  cursor: pointer;
}

.photo-viewer-comment-submit {
  background: var(--terracotta-deep);
  color: #ffffff;
}

.photo-viewer-comment-cancel {
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.photo-viewer-comment-cancel[hidden] {
  display: none;
}

.photo-viewer-comment-submit:disabled,
.photo-viewer-comment-cancel:disabled {
  cursor: progress;
  opacity: 0.64;
}

.photo-viewer-close,
.photo-viewer-delete,
.photo-viewer-zoom,
.photo-viewer-download,
.photo-viewer-nav {
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.photo-viewer-top-actions {
  z-index: 5;
  grid-column: 1 / 3;
  grid-row: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  align-self: start;
  justify-self: start;
  min-width: 0;
}

.photo-viewer-close {
  z-index: 5;
  grid-column: 3;
  grid-row: 1;
  width: 46px;
  height: 46px;
  align-self: start;
  justify-self: end;
  font-size: 2rem;
  line-height: 1;
}

.photo-viewer-download {
  width: auto;
  min-width: 112px;
  height: 46px;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
}

.photo-viewer-zoom {
  width: auto;
  min-width: 68px;
  height: 46px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.photo-viewer-zoom[hidden] {
  display: none;
}

.photo-viewer-delete {
  width: 46px;
  height: 46px;
  padding: 0;
}

.photo-viewer-delete[hidden] {
  display: none;
}

.photo-viewer-delete svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: #ffffff;
  pointer-events: none;
}

.photo-viewer-delete:disabled {
  cursor: progress;
  opacity: 0.62;
}

.photo-viewer-delete:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.download-toast {
  position: fixed;
  left: 50%;
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 80;
  max-width: min(86vw, 360px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(23, 25, 22, 0.92);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

body.photo-viewer-open .download-toast {
  z-index: calc(var(--z-photo-viewer-modal) + 30);
}

body.photo-viewer-open .photo-card .photo-caption-bubble,
body.photo-viewer-open .photo-card .photo-like-button,
body.photo-viewer-open .photo-card .photo-rank-badge {
  display: none !important;
}

.download-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.photo-viewer-nav {
  position: absolute;
  width: 44%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  backdrop-filter: none;
  pointer-events: none;
}

.photo-viewer-prev {
  left: 0;
}

.photo-viewer-next {
  right: 0;
}

.photo-viewer-nav:disabled {
  cursor: default;
}

.admin-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.admin-photo-card {
  display: grid;
  gap: 8px;
  padding-bottom: 8px;
}

.delete-photo {
  width: calc(100% - 16px);
  min-height: 38px;
  margin: 0 8px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.delete-photo:disabled {
  opacity: 0.58;
  cursor: progress;
}

.photo-meta {
  min-height: 0;
}

.camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #080604;
}

.camera-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.camera-stage::after {
  content: attr(data-status);
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: #080604;
  color: white;
  font-weight: 900;
  text-align: center;
}

.camera-overlay video,
.camera-review-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.camera-overlay.is-selfie video {
  transform: scaleX(-1);
}

.camera-review-image {
  display: none;
}

.camera-overlay.is-review video,
.camera-overlay.is-review .camera-actions {
  display: none;
}

.camera-overlay.is-review .camera-review-image {
  display: block;
}

.camera-overlay.is-loading .camera-stage::after {
  display: grid;
}

.camera-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 18px max(22px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

.camera-close {
  justify-self: start;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 850;
}

.camera-flip {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 58px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
}

.camera-flip svg {
  width: 48px;
  height: 36px;
  overflow: visible;
}

.camera-flip path,
.camera-flip circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.camera-shutter {
  width: 74px;
  height: 74px;
  border: 6px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: var(--terracotta);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22);
}

.review-actions {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 14px max(18px, env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.96);
}

.camera-overlay.is-review .review-actions {
  display: grid;
}

.review-actions .primary-action,
.review-actions .secondary-action {
  min-height: 48px;
  padding: 0 8px;
  font-size: 0.9rem;
}

.guest-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32, 37, 34, 0.28);
  backdrop-filter: blur(8px);
}

.public-light-theme .guest-modal {
  background-color: #fff7ed;
  background-image:
    linear-gradient(180deg, rgba(255, 247, 237, 0.08), rgba(255, 247, 237, 0.16)),
    url("/fond-invite.png?v=302");
  background-position: top center;
  background-repeat: repeat-y;
  background-size: min(100vw, 852px) auto;
  backdrop-filter: none;
}

.notification-nudge-modal {
  z-index: var(--z-notification-nudge);
}

.notification-nudge-modal.is-forced {
  z-index: var(--z-notification-nudge);
  background: rgba(32, 37, 34, 0.44);
}

.profile-request-modal.is-forced {
  z-index: var(--z-profile-request);
  background: rgba(32, 37, 34, 0.52);
}

.public-light-theme .notification-nudge-modal.is-forced {
  background-color: rgba(255, 247, 237, 0.98);
}

.public-light-theme .profile-request-modal.is-forced {
  background-color: rgba(255, 247, 237, 0.99);
}

.broadcast-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #fff7ed;
  backdrop-filter: none;
}

.vows-modal {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: grid;
  place-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #fff7ed;
}

.vows-dialog {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(10px, 1.8svh, 18px);
  width: 100%;
  min-height: 100svh;
  padding:
    max(28px, env(safe-area-inset-top))
    clamp(18px, 7vw, 92px)
    max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.94), rgba(255, 253, 248, 0.98)),
    url("/fond-invite.png?v=302");
  background-position: top center;
  background-repeat: repeat-y;
  background-size: min(100vw, 852px) auto;
}

.vows-dialog h2 {
  width: 100%;
  color: var(--terracotta-deep);
  font-size: clamp(1.28rem, 3.2vw, 1.92rem);
  font-weight: 950;
  text-align: center;
}

.vows-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(130, 57, 35, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--terracotta-deep);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.vows-status {
  width: min(640px, 100%);
  padding: 12px 14px;
  border: 1px solid rgba(184, 90, 58, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
  text-align: center;
}

.vows-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.6vw, 20px);
  width: min(980px, 100%);
}

.vows-section {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(9px, 1.8vw, 14px);
  min-width: 0;
  padding: clamp(12px, 2.4vw, 18px);
  border: 1px solid rgba(154, 105, 35, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 221, 138, 0.24), transparent 64%),
    rgba(255, 253, 248, 0.72);
  box-shadow: 0 14px 30px rgba(90, 61, 43, 0.12);
}

.vows-section h3 {
  margin: 0;
  color: #8b4514;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.34rem, 4vw, 2.12rem);
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 249, 218, 0.98),
    0 2px 0 rgba(228, 159, 54, 0.62),
    0 3px 0 rgba(102, 38, 22, 0.45),
    0 5px 7px rgba(71, 25, 15, 0.26);
}

.vows-media {
  width: 100%;
  max-height: min(44svh, 440px);
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 12px 26px rgba(90, 61, 43, 0.18);
}

.vows-text {
  width: 100%;
  padding: clamp(12px, 2.4vw, 18px) clamp(14px, 3.2vw, 22px);
  border-left: 4px solid rgba(184, 90, 58, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.44);
  color: var(--terracotta);
  font-size: clamp(1.02rem, 3.4vw, 1.32rem);
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.vows-empty {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed rgba(184, 90, 58, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.42);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
  text-align: center;
}

.caption-modal,
.likes-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
  background: rgba(32, 37, 34, 0.34);
  backdrop-filter: blur(8px);
}

body.photo-viewer-open .caption-modal,
body.photo-viewer-open .likes-modal {
  z-index: var(--z-photo-viewer-modal);
}

.admin-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32, 37, 34, 0.36);
  backdrop-filter: blur(8px);
}

.camera-overlay.hidden,
.guest-modal.hidden,
.broadcast-modal.hidden,
.vows-modal.hidden,
.caption-modal.hidden,
.likes-modal.hidden,
.profile-source-modal.hidden,
.profile-viewer.hidden,
.trombi-modal.hidden,
.admin-confirm-modal.hidden {
  display: none;
}

.broadcast-banner.hidden {
  display: none;
}

.guest-dialog,
.broadcast-dialog,
.caption-dialog,
.likes-dialog,
.admin-confirm-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(184, 90, 58, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 253, 248, 0.97)),
    repeating-linear-gradient(0deg, rgba(184, 90, 58, 0.04) 0 1px, transparent 1px 7px),
    var(--paper);
  box-shadow: var(--shadow);
}

.public-light-theme .guest-dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 253, 248, 0.91)),
    repeating-linear-gradient(0deg, rgba(184, 90, 58, 0.035) 0 1px, transparent 1px 7px),
    var(--paper);
  box-shadow:
    0 18px 38px rgba(90, 61, 43, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.52) inset;
}

.audio-guestbook-dialog {
  width: min(460px, 100%);
  max-height: min(88svh, 720px);
  overflow: auto;
  justify-items: stretch;
}

.audio-guestbook-hero {
  justify-self: center;
  width: 112px;
  height: 112px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(90, 61, 43, 0.18));
  box-shadow: none;
}

.audio-guestbook-dialog h2 {
  color: var(--terracotta-deep);
  font-size: 1.12rem;
  font-weight: 950;
  text-align: center;
}

.audio-guestbook-status {
  min-height: 22px;
  color: var(--terracotta-deep);
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
}

.audio-guestbook-count {
  margin: -4px 0 0;
  padding: 7px 10px;
  border: 1px solid rgba(130, 57, 35, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.60);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.audio-guestbook-recorder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(130, 57, 35, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 1.26rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.audio-guestbook-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(130, 57, 35, 0.22);
}

.audio-guestbook-modal.is-recording .audio-guestbook-dot {
  background: #d02828;
  box-shadow: 0 0 0 6px rgba(208, 40, 40, 0.12);
  animation: audioPulse 900ms ease-in-out infinite alternate;
}

@keyframes audioPulse {
  from {
    transform: scale(0.92);
    opacity: 0.78;
  }
  to {
    transform: scale(1.08);
    opacity: 1;
  }
}

.audio-guestbook-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.audio-guestbook-actions .primary-action,
.audio-guestbook-actions .secondary-action,
#audioGuestbookSend {
  min-height: 46px;
  padding: 0 14px;
}

.audio-guestbook-actions .audio-guestbook-discard {
  background: var(--red);
  color: #fff;
  box-shadow: none;
}

.audio-guestbook-preview {
  width: 100%;
}

.audio-guestbook-mine {
  display: grid;
  gap: 10px;
  max-height: min(30svh, 240px);
  overflow: auto;
  padding-right: 2px;
}

.audio-guestbook-item {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(130, 57, 35, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.70);
}

.audio-guestbook-item strong {
  color: var(--terracotta-deep);
  font-size: 0.9rem;
  font-weight: 950;
}

.audio-guestbook-item-head {
  min-width: 0;
}

.audio-guestbook-item-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.audio-guestbook-edit,
.audio-guestbook-delete {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.audio-guestbook-edit {
  background: rgba(255, 255, 255, 0.86);
  color: var(--terracotta-deep);
  box-shadow: inset 0 0 0 1px rgba(130, 57, 35, 0.20);
}

.audio-guestbook-delete {
  background: var(--red);
  color: #fff;
}

.audio-guestbook-edit:disabled,
.audio-guestbook-delete:disabled {
  opacity: 0.68;
  cursor: progress;
}

.audio-guestbook-item audio {
  width: 100%;
}

.audio-guestbook-transcript {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
}

.caption-dialog {
  gap: 12px;
  width: min(420px, 100%);
  padding: 20px;
}

.caption-dialog h2,
.likes-dialog h2 {
  padding-right: 40px;
  color: var(--terracotta-deep);
  font-size: 1.08rem;
  font-weight: 950;
}

.caption-modal-close,
.likes-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(130, 57, 35, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--terracotta-deep);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.likes-dialog {
  width: min(420px, 100%);
  max-height: min(74vh, 560px);
  padding: 20px;
  overflow: hidden;
}

.likes-modal-summary {
  color: var(--terracotta-deep);
  font-size: 0.9rem;
  font-weight: 900;
}

.likes-modal-list {
  display: grid;
  gap: 8px;
  max-height: min(46vh, 360px);
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.likes-modal-item,
.likes-modal-status {
  padding: 10px 12px;
  border: 1px solid rgba(130, 57, 35, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.25;
}

.likes-modal-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-source-modal {
  position: fixed;
  inset: 0;
  z-index: 81;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(32, 37, 34, 0.36);
  backdrop-filter: blur(8px);
}

.profile-source-dialog {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(320px, 100%);
  padding: 22px;
  border: 1px solid rgba(184, 90, 58, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 253, 248, 0.98)),
    var(--paper);
  box-shadow: var(--shadow);
}

.profile-source-dialog h2 {
  padding-right: 38px;
  color: var(--terracotta-deep);
  font-size: 1.04rem;
  font-weight: 950;
}

.profile-source-dialog .primary-action,
.profile-source-dialog .secondary-action {
  width: 100%;
  min-height: 42px;
}

.profile-source-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(130, 57, 35, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--terracotta-deep);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.profile-viewer,
.trombi-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(8, 6, 4, 0.78);
  backdrop-filter: blur(10px);
}

.trombi-modal {
  z-index: var(--z-trombi-modal);
}

.profile-viewer {
  z-index: var(--z-profile-viewer);
}

.profile-viewer-dialog,
.trombi-dialog {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(460px, 100%);
  max-height: min(78vh, 720px);
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

.profile-viewer-close,
.trombi-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(130, 57, 35, 0.12);
  color: var(--terracotta-deep);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.profile-viewer-avatar {
  display: grid;
  place-items: center;
  width: min(72vw, 280px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff6df, #d9a846);
  color: #6f3a26;
  font-size: clamp(3rem, 18vw, 7rem);
  font-weight: 950;
  text-transform: uppercase;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.84) inset,
    0 16px 36px rgba(90, 61, 43, 0.22);
}

.profile-viewer-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-viewer-dialog h2,
.trombi-dialog h2 {
  color: var(--terracotta-deep);
  font-size: 1.12rem;
  font-weight: 950;
  text-align: center;
}

.trombi-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 12px;
  width: 100%;
  min-height: 86px;
}

.trombi-list:empty::before {
  content: "Aucun profil pour l'instant";
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 86px;
  color: var(--muted);
  font-weight: 800;
}

.trombi-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.trombi-card-main {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.trombi-card .profile-avatar {
  width: 64px;
  height: 64px;
  font-size: 1.24rem;
}

.trombi-card .trombi-name,
.trombi-card .trombi-photo-count {
  max-width: 100%;
  overflow: hidden;
  color: #62351f;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trombi-card .trombi-photo-count {
  color: var(--terracotta);
  font-size: 0.68rem;
  font-weight: 950;
}

.trombi-open-label {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid rgba(184, 90, 58, 0.26);
  border-radius: 999px;
  background: rgba(255, 241, 226, 0.9);
  color: var(--terracotta-deep);
  font-size: 0.67rem;
  font-weight: 950;
  line-height: 1;
}

.trombi-card .trombi-phone {
  max-width: 100%;
  overflow: hidden;
  color: #266455;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-whisper-dialog {
  gap: 10px;
}

.guest-whisper-recipient,
.guest-whisper-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  text-align: center;
}

.guest-whisper-message {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid rgba(35, 66, 59, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.guest-whisper-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.caption-modal-text {
  min-height: 48px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.caption-modal-form {
  display: grid;
  gap: 12px;
}

.caption-modal-form[hidden],
.caption-modal-text[hidden],
.caption-modal-delete[hidden] {
  display: none;
}

.caption-modal-input {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid rgba(130, 57, 35, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.35;
}

.caption-modal-input::placeholder {
  color: rgba(95, 50, 31, 0.58);
}

.caption-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.caption-modal-actions-single {
  grid-template-columns: 1fr;
}

.caption-modal-save,
.caption-modal-delete {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: white;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.caption-modal-save {
  background: var(--terracotta-deep);
}

.caption-modal-delete {
  background: rgba(179, 38, 30, 0.92);
}

.caption-modal-save:disabled,
.caption-modal-delete:disabled {
  opacity: 0.64;
  cursor: progress;
}

.admin-confirm-dialog h2 {
  color: var(--terracotta-deep);
  font-size: 1.08rem;
  font-weight: 950;
}

.admin-confirm-dialog p {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.42;
}

.admin-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.broadcast-dialog {
  grid-template-rows: auto auto auto auto auto auto;
  align-content: start;
  justify-items: center;
  gap: clamp(8px, 1.35svh, 14px);
  width: 100%;
  min-width: 0;
  min-height: 100svh;
  aspect-ratio: auto;
  overflow-y: auto;
  padding:
    max(26px, env(safe-area-inset-top))
    clamp(22px, 8vw, 96px)
    max(18px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.94), rgba(255, 253, 248, 0.98)),
    repeating-linear-gradient(0deg, rgba(184, 90, 58, 0.035) 0 1px, transparent 1px 8px),
    url("/fond-invite.png?v=302");
  background-position: top center;
  background-repeat: repeat-y;
  background-size: min(100vw, 852px) auto;
  box-shadow: none;
  animation: announcement-pop 460ms ease-out both;
}

.broadcast-dialog::before,
.broadcast-dialog::after {
  content: none;
}

.guest-dialog img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.guest-dialog .audio-guestbook-hero {
  width: 112px;
  height: 112px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(90, 61, 43, 0.18));
  box-shadow: none;
}

.broadcast-dialog img {
  display: none;
}

.broadcast-dialog .announcement-frame-art {
  display: none;
}

.guest-dialog p,
.broadcast-dialog p {
  color: var(--terracotta);
  font-size: 0.98rem;
  line-height: 1.42;
}

.broadcast-dialog p {
  align-self: start;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: min(760px, 100%);
  margin: clamp(10px, 2svh, 22px) auto clamp(6px, 1svh, 12px);
  padding: clamp(10px, 2.4vw, 16px) clamp(12px, 3.2vw, 20px);
  overflow: visible;
  font-size: clamp(1.02rem, 3.6vw, 1.32rem);
  white-space: pre-wrap;
  text-align: left;
  font-weight: 900;
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  border-left: 4px solid rgba(184, 90, 58, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.34);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 8px rgba(255, 255, 255, 0.70);
}

.broadcast-dialog .broadcast-image {
  display: block;
  width: min(100%, 760px);
  max-height: min(32svh, 340px);
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 12px 26px rgba(90, 61, 43, 0.18);
}

.broadcast-dialog h2 {
  width: 100%;
  min-width: 0;
  color: var(--terracotta-deep);
  font-size: clamp(1.18rem, 3vw, 1.72rem);
  font-weight: 950;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 8px rgba(255, 255, 255, 0.70);
}

.broadcast-dialog .broadcast-time {
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
}

.broadcast-dialog .broadcast-author {
  max-width: min(760px, 100%);
  font-size: clamp(0.86rem, 1.6vw, 1rem);
}

.broadcast-dialog .primary-action {
  min-width: min(220px, 100%);
  min-height: 46px;
  padding: 0 24px;
  font-size: 0.96rem;
}

.broadcast-dialog > :not(.announcement-frame-art) {
  position: relative;
  z-index: 1;
}

.guest-dialog label {
  color: var(--terracotta-deep);
  font-weight: 850;
}

.guest-input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(184, 90, 58, 0.30);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
}

.notification-nudge-dialog h2,
.profile-request-dialog h2 {
  color: var(--terracotta-deep);
  font-size: 1.1rem;
  font-weight: 950;
  text-align: center;
}

.notification-nudge-dialog p,
.profile-request-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.notification-action {
  width: 100%;
}

.version-badge {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 26;
  padding: 4px 7px;
  border: 1px solid rgba(32, 37, 34, 0.10);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: rgba(32, 37, 34, 0.46);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.version-badge.is-launcher {
  border-color: rgba(184, 90, 58, 0.28);
  background: rgba(255, 253, 248, 0.94);
  color: var(--terracotta-deep);
  box-shadow: 0 8px 18px rgba(90, 61, 43, 0.14);
}

.version-badge.is-version-mismatch {
  border-color: rgba(179, 38, 30, 0.28);
  color: var(--red);
}

@media (max-width: 520px) {
  .app-shell {
    padding-inline: 12px;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .public-light-theme .topbar-actions {
    gap: 6px;
    padding: 5px;
  }

  .notification-header-action {
    width: 50px;
  }

  .install-header-action {
    width: 68px;
    padding-inline: 6px;
    font-size: 0.68rem;
  }

  .install-header-action.is-chrome-shortcut {
    width: 58px;
  }

  .counter {
    min-width: 62px;
    padding-inline: 8px;
  }

  h1 {
    font-size: 1.16rem;
  }

  .capture-panel {
    grid-template-columns: 1fr;
  }

  #cameraButton,
  #galleryButton,
  #vowsButton,
  #audioGuestbookButton {
    grid-column: auto;
    grid-row: auto;
  }

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

  .admin-vows-grid,
  .vows-content {
    grid-template-columns: 1fr;
  }

  .audio-guestbook-item-actions {
    grid-template-columns: 1fr;
  }

  #profilePhotoButton,
  #adminProfilePhotoButton,
  #auditButton,
  #trashButton {
    grid-column: auto;
    grid-row: auto;
  }

  .public-light-theme .capture-panel {
    gap: 6px;
  }

  .public-light-theme #galleryButton {
    margin-top: clamp(-42px, -8vw, -26px);
  }

  .public-light-theme #vowsButton {
    margin-top: clamp(-18px, -3vw, -10px);
    margin-bottom: 0;
  }

  .public-light-theme #audioGuestbookButton {
    margin-top: -4px;
  }

  .audio-guestbook-action {
    width: min(100%, 410px);
    min-height: 92px;
    padding: 0 8px;
    gap: 12px;
    font-size: 1.33rem;
  }

  .audio-guestbook-button-art {
    width: 78px;
    height: 78px;
  }

  .queue-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .thumb {
    width: 56px;
    height: 56px;
  }

  .item-status {
    grid-column: 2;
    justify-self: start;
  }

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

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

  .photo-viewer {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    grid-template-rows: 54px minmax(0, 1fr) 54px;
  }

  .photo-viewer-stage {
    padding: 50px 0 14px;
  }

  .photo-viewer-stage img,
  .photo-viewer-video {
    max-height: 100%;
  }

  .photo-viewer-close {
    width: 42px;
    height: 42px;
  }

  .photo-viewer-download {
    min-width: 106px;
    height: 42px;
  }

  .photo-viewer-delete {
    width: 42px;
    height: 42px;
  }

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

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

  .install-panel {
    justify-content: stretch;
  }

  .install-action {
    flex: 1 1 0;
  }

  .admin-install-link-form {
    grid-template-columns: 1fr 1fr;
  }

  .install-link-phone {
    grid-column: 1 / -1;
  }

  .install-link-action {
    width: 100%;
  }

  .broadcast-compose-actions {
    grid-template-columns: 1fr 1fr;
  }

  .whisper-panel {
    grid-template-columns: 1fr;
  }

  .whisper-actions,
  .whisper-photo-button,
  .whisper-send-button,
  .whisper-clear-button {
    width: 100%;
  }

  .broadcast-history-tools {
    grid-template-columns: 1fr;
  }

  .broadcast-banner {
    gap: 5px;
    width: 100%;
    min-height: 184px;
    margin-left: 0;
    margin-right: 0;
    padding: clamp(32px, 8vw, 46px) clamp(30px, 10vw, 58px) clamp(32px, 8vw, 46px);
  }

  .broadcast-banner h2 {
    font-size: 1rem;
  }

  .broadcast-banner p {
    font-size: 0.98rem;
    line-height: 1.34;
  }

  .broadcast-banner .broadcast-author {
    font-size: 0.78rem;
  }

  .broadcast-dialog {
    gap: 8px;
    width: 100%;
    padding:
      max(22px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
  }

  .broadcast-modal {
    padding: 0;
  }

  .broadcast-dialog h2 {
    font-size: 1.1rem;
  }

  .broadcast-dialog p {
    margin-top: 8px;
    padding: 10px 12px;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .broadcast-dialog .broadcast-author {
    font-size: 0.82rem;
  }

  .broadcast-dialog .primary-action {
    min-width: min(190px, 100%);
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .admin-guests-panel {
    top: max(86px, calc(env(safe-area-inset-top) + 70px));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 54px);
    max-height: calc(100svh - max(86px, calc(env(safe-area-inset-top) + 70px)) - max(10px, env(safe-area-inset-bottom)));
  }

  .admin-trash-panel {
    width: calc(100vw - 54px);
  }

  .guest-drawer-tab {
    left: -44px;
    width: 44px;
    min-height: 112px;
  }

  .guest-group-tabs {
    top: 137px;
    left: -44px;
    width: 44px;
    max-height: calc(100% - 150px);
  }

  .guest-group-tab {
    width: 44px;
    min-height: 82px;
    padding: 7px 4px;
  }

  .guest-group-tab span {
    max-height: 61px;
    font-size: 0.62rem;
  }

  .trash-drawer-tab {
    right: -44px;
    left: auto;
  }

  .admin-section-head {
    align-items: flex-start;
  }

  .guest-gallery-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .guest-gallery-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .guest-notification-badge {
    width: 100%;
    padding: 0 5px;
    font-size: 0.58rem;
    justify-content: center;
  }

  .guest-notification-badge::before {
    margin: 0;
  }

  .guest-disconnect-button,
  .guest-block-button,
  .guest-unblock-button,
  .guest-merge-button,
  .guest-profile-request-button,
  .guest-access-reset-button,
  .guest-rename-button {
    padding: 0 4px;
    font-size: 0.62rem;
  }

  .guest-row-actions {
    width: min(190px, 50vw);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ghost-row-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .guest-row {
    grid-template-columns: minmax(56px, 1fr) auto;
  }

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

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