:root {
  color-scheme: dark;
  --ink: #101419;
  --ink-2: #191d22;
  --paper: #fff8ed;
  --paper-soft: #f6ead8;
  --blush: #f08ea3;
  --rose: #c94f6b;
  --gold: #f1c96d;
  --sea: #69c6d6;
  --mint: #9ed7bf;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 22px 68px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    linear-gradient(120deg, rgba(105, 198, 214, 0.22), transparent 34%),
    linear-gradient(240deg, rgba(240, 142, 163, 0.24), transparent 38%),
    var(--ink);
  color: var(--white);
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

[hidden] {
  display: none !important;
}

.wedding-app {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  padding: 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.camera-shell {
  min-width: 0;
  min-height: calc(100dvh - 36px);
  height: calc(100dvh - 36px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-radius: 8px;
  overflow: hidden;
  background: #080a0d;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.camera-stage {
  --capture-ratio: 4 / 5;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 28%, transparent 70%, rgba(0, 0, 0, 0.48)),
    #080a0d;
  display: grid;
  place-items: center;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.camera-stage.is-captured {
  aspect-ratio: var(--capture-ratio);
  height: 100%;
  width: auto;
  max-width: 100%;
  justify-self: center;
  align-self: center;
}

.camera-preview,
.photo-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #080a0d;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.camera-stage.is-captured .photo-preview {
  background: transparent;
  object-fit: contain;
}

.camera-stage.is-captured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--captured-backdrop);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(22px) brightness(0.62) saturate(1.08);
  pointer-events: none;
}

.camera-stage.is-selfie .camera-preview {
  transform: scaleX(-1);
}

.camera-stage.is-snap-lens-active:not(.is-captured) .camera-preview {
  opacity: 0;
}

.camera-stage.is-captured .camera-preview {
  display: none;
}

.camera-stage:not(.is-captured) .photo-preview {
  display: none;
}

.camera-stage.is-filter-warm .camera-preview,
.camera-stage.is-filter-warm .photo-preview {
  filter: sepia(0.16) saturate(1.16) contrast(1.04) brightness(1.04);
}

.camera-stage.is-filter-bright .camera-preview,
.camera-stage.is-filter-bright .photo-preview {
  filter: brightness(1.1) contrast(1.05) saturate(1.12);
}

.camera-stage.is-filter-confetti .camera-preview,
.camera-stage.is-filter-confetti .photo-preview {
  filter: brightness(1.06) contrast(1.04) saturate(1.18);
}

.camera-stage.is-filter-hearts .camera-preview,
.camera-stage.is-filter-hearts .photo-preview {
  filter: brightness(1.05) saturate(1.16);
}

.camera-stage.is-filter-sparkle .camera-preview,
.camera-stage.is-filter-sparkle .photo-preview {
  filter: brightness(1.08) contrast(1.03) saturate(1.22);
}

.camera-stage.is-filter-fireworks .camera-preview,
.camera-stage.is-filter-fireworks .photo-preview {
  filter: contrast(1.1) saturate(1.24) brightness(0.98);
}

.camera-stage.is-filter-petals .camera-preview,
.camera-stage.is-filter-petals .photo-preview {
  filter: brightness(1.05) sepia(0.08) saturate(1.12);
}

.camera-stage.is-filter-disco .camera-preview,
.camera-stage.is-filter-disco .photo-preview {
  filter: contrast(1.12) saturate(1.42) hue-rotate(-8deg);
}

.camera-stage.is-filter-bubbles .camera-preview,
.camera-stage.is-filter-bubbles .photo-preview {
  filter: brightness(1.06) saturate(1.16) hue-rotate(5deg);
}

.camera-stage.is-filter-gold-rain .camera-preview,
.camera-stage.is-filter-gold-rain .photo-preview {
  filter: sepia(0.22) brightness(1.05) saturate(1.3);
}

.camera-stage.is-filter-crown-booth .camera-preview,
.camera-stage.is-filter-crown-booth .photo-preview,
.camera-stage.is-filter-long-face-live .camera-preview,
.camera-stage.is-filter-long-face-live .photo-preview,
.camera-stage.is-filter-big-eyes-live .camera-preview,
.camera-stage.is-filter-big-eyes-live .photo-preview,
.camera-stage.is-filter-squish-face-live .camera-preview,
.camera-stage.is-filter-squish-face-live .photo-preview,
.camera-stage.is-filter-mega-grin-live .camera-preview,
.camera-stage.is-filter-mega-grin-live .photo-preview,
.camera-stage.is-filter-beard-booth-live .camera-preview,
.camera-stage.is-filter-beard-booth-live .photo-preview,
.camera-stage.is-filter-toon-pop-live .camera-preview,
.camera-stage.is-filter-toon-pop-live .photo-preview,
.camera-stage.is-filter-heart-glasses .camera-preview,
.camera-stage.is-filter-heart-glasses .photo-preview,
.camera-stage.is-filter-youth-glow-live .camera-preview,
.camera-stage.is-filter-youth-glow-live .photo-preview,
.camera-stage.is-filter-old-booth-live .camera-preview,
.camera-stage.is-filter-old-booth-live .photo-preview,
.camera-stage.is-filter-bald-cap-live .camera-preview,
.camera-stage.is-filter-bald-cap-live .photo-preview,
.camera-stage.is-filter-face-swap-live .camera-preview,
.camera-stage.is-filter-face-swap-live .photo-preview,
.camera-stage.is-filter-halo-glow .camera-preview,
.camera-stage.is-filter-halo-glow .photo-preview,
.camera-stage.is-filter-glam-sparkle .camera-preview,
.camera-stage.is-filter-glam-sparkle .photo-preview,
.camera-stage.is-filter-no-mouth-live .camera-preview,
.camera-stage.is-filter-no-mouth-live .photo-preview {
  filter: brightness(1.05) contrast(1.02) saturate(1.14);
}

.camera-stage.is-filter-film .camera-preview,
.camera-stage.is-filter-film .photo-preview {
  filter: sepia(0.18) contrast(1.12) saturate(0.9);
}

.camera-stage.is-filter-bw .camera-preview,
.camera-stage.is-filter-bw .photo-preview {
  filter: grayscale(1) contrast(1.08);
}

.camera-stage.is-filter-dreamy .camera-preview,
.camera-stage.is-filter-dreamy .photo-preview {
  filter: brightness(1.06) contrast(0.94) saturate(1.18);
}

.camera-stage.is-filter-party .camera-preview,
.camera-stage.is-filter-party .photo-preview {
  filter: contrast(1.08) saturate(1.36) hue-rotate(-5deg);
}

.camera-stage.is-filter-gold .camera-preview,
.camera-stage.is-filter-gold .photo-preview {
  filter: sepia(0.22) brightness(1.04) saturate(1.26);
}

.camera-stage.is-filter-cool .camera-preview,
.camera-stage.is-filter-cool .photo-preview {
  filter: brightness(1.02) contrast(1.03) saturate(1.05) hue-rotate(8deg);
}

.wedding-app.is-comparing-original .camera-stage.is-captured .photo-preview {
  filter: none !important;
}

.wedding-app.is-comparing-original .camera-stage.is-captured::before {
  opacity: 0 !important;
}

.wedding-app.is-comparing-original .camera-stage.is-captured::after {
  content: "Original";
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 8;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #201607;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 56%),
    var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  font-weight: 920;
  letter-spacing: 0;
  pointer-events: none;
}

.wedding-app.is-comparing-original .live-effect-canvas,
.wedding-app.is-comparing-original .stickers-layer,
.wedding-app.is-comparing-original .alignment-guides,
.wedding-app.is-comparing-original .composition-grid,
.wedding-app.is-comparing-original .control-dock,
.wedding-app.is-comparing-original .edit-tabs,
.wedding-app.is-comparing-original .filter-strip,
.wedding-app.is-comparing-original .send-panel,
.wedding-app.is-comparing-original .pending-panel,
.wedding-app.is-comparing-original .remix-panel,
.wedding-app.is-comparing-original .sticker-editor,
.wedding-app.is-comparing-original .sticker-category-strip,
.wedding-app.is-comparing-original .sticker-tray,
.wedding-app.is-comparing-original .status-toast {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

.wedding-app.is-comparing-original .control-dock,
.wedding-app.is-comparing-original .filter-strip,
.wedding-app.is-comparing-original .send-panel,
.wedding-app.is-comparing-original .pending-panel,
.wedding-app.is-comparing-original .remix-panel,
.wedding-app.is-comparing-original .sticker-editor,
.wedding-app.is-comparing-original .sticker-category-strip,
.wedding-app.is-comparing-original .sticker-tray {
  transform: translate(-50%, 118%) !important;
}

.wedding-app.is-comparing-original .control-dock {
  height: 0 !important;
  transform: translateY(118%) !important;
}

.live-effect-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.camera-stage[data-live-effect="crown-booth"] .live-effect-canvas,
.camera-stage[data-live-effect="long-face-live"] .live-effect-canvas,
.camera-stage[data-live-effect="big-eyes-live"] .live-effect-canvas,
.camera-stage[data-live-effect="squish-face-live"] .live-effect-canvas,
.camera-stage[data-live-effect="mega-grin-live"] .live-effect-canvas,
.camera-stage[data-live-effect="beard-booth-live"] .live-effect-canvas,
.camera-stage[data-live-effect="toon-pop-live"] .live-effect-canvas,
.camera-stage[data-live-effect="heart-glasses"] .live-effect-canvas,
.camera-stage[data-live-effect="youth-glow-live"] .live-effect-canvas,
.camera-stage[data-live-effect="old-booth-live"] .live-effect-canvas,
.camera-stage[data-live-effect="bald-cap-live"] .live-effect-canvas,
.camera-stage[data-live-effect="face-swap-live"] .live-effect-canvas,
.camera-stage[data-live-effect="halo-glow"] .live-effect-canvas,
.camera-stage[data-live-effect="glam-sparkle"] .live-effect-canvas,
.camera-stage[data-live-effect="no-mouth-live"] .live-effect-canvas {
  mix-blend-mode: normal;
}

.live-effect-canvas[hidden] {
  display: none;
}

.snap-lens-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  background: #080a0d;
}

.snap-lens-canvas[hidden],
.camera-stage.is-captured .snap-lens-canvas {
  display: none;
}

.stickers-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.alignment-guides {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.alignment-guide {
  position: absolute;
  display: block;
  background: rgba(241, 201, 109, 0.9);
  box-shadow: 0 0 18px rgba(241, 201, 109, 0.36);
  opacity: 0;
  transition: opacity 90ms ease;
}

.alignment-guide--x {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.alignment-guide--y {
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.wedding-app.is-moving-sticker.is-snapping-x .alignment-guides,
.wedding-app.is-moving-sticker.is-snapping-y .alignment-guides {
  opacity: 1;
}

.wedding-app.is-snapping-x .alignment-guide--x,
.wedding-app.is-snapping-y .alignment-guide--y {
  opacity: 1;
}

.composition-grid {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      to right,
      transparent calc(33.333% - 0.5px),
      rgba(255, 255, 255, 0.42) calc(33.333% - 0.5px),
      rgba(255, 255, 255, 0.42) calc(33.333% + 0.5px),
      transparent calc(33.333% + 0.5px)
    ),
    linear-gradient(
      to right,
      transparent calc(66.666% - 0.5px),
      rgba(255, 255, 255, 0.42) calc(66.666% - 0.5px),
      rgba(255, 255, 255, 0.42) calc(66.666% + 0.5px),
      transparent calc(66.666% + 0.5px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(33.333% - 0.5px),
      rgba(255, 255, 255, 0.42) calc(33.333% - 0.5px),
      rgba(255, 255, 255, 0.42) calc(33.333% + 0.5px),
      transparent calc(33.333% + 0.5px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(66.666% - 0.5px),
      rgba(255, 255, 255, 0.42) calc(66.666% - 0.5px),
      rgba(255, 255, 255, 0.42) calc(66.666% + 0.5px),
      transparent calc(66.666% + 0.5px)
    );
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.38));
  transition: opacity 160ms ease;
}

.wedding-app.has-composition-grid .composition-grid {
  opacity: 1;
}

.camera-stage.is-captured .composition-grid,
.camera-stage:not(.has-camera) .composition-grid {
  display: none;
}

.focus-reticle {
  --focus-x: 50%;
  --focus-y: 50%;
  position: absolute;
  left: var(--focus-x);
  top: var(--focus-y);
  z-index: 8;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  border: 2px solid rgba(241, 201, 109, 0.94);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(8, 10, 13, 0.32),
    0 0 0 12px rgba(241, 201, 109, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

.focus-reticle::before,
.focus-reticle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(241, 201, 109, 0.94);
  transform: translate(-50%, -50%);
}

.focus-reticle::after {
  width: 2px;
  height: 18px;
}

.focus-reticle.is-visible {
  animation: focus-pop 980ms ease forwards;
}

.focus-reticle.is-auto {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 1px rgba(8, 10, 13, 0.32),
    0 0 0 12px rgba(255, 255, 255, 0.07),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

.focus-reticle.is-auto::before,
.focus-reticle.is-auto::after {
  background: rgba(255, 255, 255, 0.78);
}

.camera-stage.is-captured .focus-reticle,
.camera-stage:not(.has-camera) .focus-reticle {
  display: none;
}

@keyframes focus-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.22);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.9);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .focus-reticle.is-visible {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.sticker-object {
  position: absolute;
  width: var(--sticker-width);
  min-width: 27px;
  transform: translate(-50%, -50%) rotate(var(--sticker-rotation));
  transform-origin: center;
  cursor: grab;
  pointer-events: auto;
  transition: opacity 140ms ease;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.photo-sticker {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 13px 20px rgba(0, 0, 0, 0.34));
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.sticker-object.is-frame-sticker .photo-sticker {
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

.frame-caption {
  position: absolute;
  left: 50%;
  top: 79%;
  width: 70%;
  transform: translate(-50%, -50%);
  color: #24201c;
  font-size: clamp(0.72rem, 2.6vw, 1.35rem);
  font-weight: 850;
  line-height: 1.06;
  text-align: center;
  text-wrap: balance;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

.sticker-object.is-frame-sticker:has(img[src*="gold-polaroid-frame"]) .frame-caption {
  color: #251807;
  text-shadow: 0 1px 0 rgba(255, 232, 171, 0.28);
}

.sticker-object:active {
  cursor: grabbing;
}

.sticker-object.is-selected .photo-sticker {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
  border-radius: 8px;
}

.sticker-handle {
  position: absolute;
  z-index: 2;
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--gold);
  color: #201607;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
  cursor: grab;
  touch-action: none;
}

.sticker-handle svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
  pointer-events: none;
}

.sticker-object.is-selected .sticker-handle {
  display: grid;
}

.sticker-object:active .photo-sticker {
  outline: 0;
}

.sticker-object.is-gesture-target .photo-sticker {
  outline: 0 !important;
}

.sticker-object.is-controls-suppressed .photo-sticker,
.sticker-object[data-gesture-mode] .photo-sticker {
  outline: 0 !important;
  outline-offset: 0 !important;
}

.sticker-object.is-controls-suppressed .sticker-handle,
.sticker-object.is-controls-suppressed .delete-handle,
.sticker-object.is-controls-suppressed .resize-handle,
.sticker-object.is-controls-suppressed .rotate-handle,
.sticker-object[data-gesture-mode] .sticker-handle,
.sticker-object[data-gesture-mode] .delete-handle,
.sticker-object[data-gesture-mode] .resize-handle,
.sticker-object[data-gesture-mode] .rotate-handle,
.sticker-object.is-gesture-target .sticker-handle,
.sticker-object.is-gesture-target .delete-handle,
.sticker-object.is-gesture-target .resize-handle,
.sticker-object.is-gesture-target .rotate-handle,
.sticker-object:active .sticker-handle {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.wedding-app.is-moving-sticker .control-dock,
.wedding-app.is-moving-sticker .edit-tabs,
.wedding-app.is-moving-sticker .capture-row,
.wedding-app.is-moving-sticker .filter-strip,
.wedding-app.is-moving-sticker .send-panel,
.wedding-app.is-moving-sticker .pending-panel,
.wedding-app.is-moving-sticker .remix-panel,
.wedding-app.is-moving-sticker .utility-sheet,
.wedding-app.is-moving-sticker .qr-sheet,
.wedding-app.is-moving-sticker .discard-sheet,
.wedding-app.is-moving-sticker .stage-topbar,
.wedding-app.is-moving-sticker .install-panel,
.wedding-app.is-moving-sticker .link-panel,
.wedding-app.is-moving-sticker .guest-badge,
.wedding-app.is-moving-sticker .readiness-chip,
.wedding-app.is-moving-sticker .sticker-editor,
.wedding-app.is-moving-sticker .sticker-category-strip,
.wedding-app.is-moving-sticker .sticker-tray,
.wedding-app.is-moving-sticker .status-toast,
.wedding-app.is-moving-sticker .sticker-handle {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

.wedding-app.is-moving-sticker .control-dock,
.wedding-app.is-moving-sticker .filter-strip,
.wedding-app.is-moving-sticker .send-panel,
.wedding-app.is-moving-sticker .pending-panel,
.wedding-app.is-moving-sticker .remix-panel,
.wedding-app.is-moving-sticker .utility-sheet,
.wedding-app.is-moving-sticker .qr-sheet,
.wedding-app.is-moving-sticker .discard-sheet,
.wedding-app.is-moving-sticker .sticker-editor,
.wedding-app.is-moving-sticker .sticker-category-strip,
.wedding-app.is-moving-sticker .sticker-tray {
  max-height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transition: none !important;
}

.wedding-app.is-moving-sticker .control-dock {
  height: 0 !important;
  transform: translateY(118%) !important;
}

.wedding-app.is-edit-mode.is-moving-sticker .filter-strip,
.wedding-app.is-edit-mode.is-moving-sticker .send-panel,
.wedding-app.is-edit-mode.is-moving-sticker .pending-panel,
.wedding-app.is-edit-mode.is-moving-sticker .remix-panel,
.wedding-app.is-edit-mode.is-moving-sticker .sticker-editor,
.wedding-app.is-edit-mode.is-moving-sticker .sticker-category-strip,
.wedding-app.is-edit-mode.is-moving-sticker .sticker-tray {
  transform: translate(-50%, 118%) !important;
}

.wedding-app.is-moving-sticker .status-toast {
  transform: translate(-50%, 18px) !important;
}

.wedding-app.is-moving-sticker .sticker-object.is-selected .photo-sticker {
  outline: 0;
}

.wedding-app.is-moving-sticker .photo-sticker {
  outline: 0 !important;
  outline-offset: 0 !important;
}

.wedding-app.is-moving-sticker .sticker-object.is-selected .sticker-handle,
.wedding-app.is-moving-sticker .sticker-object.is-gesture-target .sticker-handle,
.wedding-app.is-moving-sticker .delete-handle,
.wedding-app.is-moving-sticker .resize-handle,
.wedding-app.is-moving-sticker .rotate-handle {
  display: none !important;
}

.wedding-app.is-placing-sticker .control-dock,
.wedding-app.is-placing-sticker .edit-tabs,
.wedding-app.is-placing-sticker .capture-row,
.wedding-app.is-placing-sticker .filter-strip,
.wedding-app.is-placing-sticker .send-panel,
.wedding-app.is-placing-sticker .pending-panel,
.wedding-app.is-placing-sticker .remix-panel,
.wedding-app.is-placing-sticker .utility-sheet,
.wedding-app.is-placing-sticker .qr-sheet,
.wedding-app.is-placing-sticker .discard-sheet,
.wedding-app.is-placing-sticker .stage-topbar,
.wedding-app.is-placing-sticker .install-panel,
.wedding-app.is-placing-sticker .link-panel,
.wedding-app.is-placing-sticker .guest-badge,
.wedding-app.is-placing-sticker .readiness-chip,
.wedding-app.is-placing-sticker .sticker-editor,
.wedding-app.is-placing-sticker .sticker-category-strip,
.wedding-app.is-placing-sticker .sticker-tray,
.wedding-app.is-placing-sticker .status-toast,
.wedding-app.is-placing-sticker .sticker-handle {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

.wedding-app.is-placing-sticker .control-dock,
.wedding-app.is-placing-sticker .filter-strip,
.wedding-app.is-placing-sticker .send-panel,
.wedding-app.is-placing-sticker .pending-panel,
.wedding-app.is-placing-sticker .remix-panel,
.wedding-app.is-placing-sticker .utility-sheet,
.wedding-app.is-placing-sticker .qr-sheet,
.wedding-app.is-placing-sticker .discard-sheet,
.wedding-app.is-placing-sticker .sticker-editor,
.wedding-app.is-placing-sticker .sticker-category-strip,
.wedding-app.is-placing-sticker .sticker-tray {
  max-height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transition: none !important;
}

.wedding-app.is-placing-sticker .control-dock {
  height: 0 !important;
  transform: translateY(118%) !important;
}

.wedding-app.is-edit-mode.is-placing-sticker .filter-strip,
.wedding-app.is-edit-mode.is-placing-sticker .send-panel,
.wedding-app.is-edit-mode.is-placing-sticker .pending-panel,
.wedding-app.is-edit-mode.is-placing-sticker .remix-panel,
.wedding-app.is-edit-mode.is-placing-sticker .sticker-editor,
.wedding-app.is-edit-mode.is-placing-sticker .sticker-category-strip,
.wedding-app.is-edit-mode.is-placing-sticker .sticker-tray {
  transform: translate(-50%, 118%) !important;
}

.wedding-app.is-placing-sticker .status-toast {
  transform: translate(-50%, 18px) !important;
}

.wedding-app.is-placing-sticker .sticker-object.is-selected .photo-sticker,
.wedding-app.is-placing-sticker .photo-sticker {
  outline: 0 !important;
  outline-offset: 0 !important;
}

.wedding-app.is-placing-sticker .sticker-object.is-selected .sticker-handle,
.wedding-app.is-placing-sticker .sticker-object.is-gesture-target .sticker-handle,
.wedding-app.is-placing-sticker .delete-handle,
.wedding-app.is-placing-sticker .resize-handle,
.wedding-app.is-placing-sticker .rotate-handle {
  display: none !important;
}

.wedding-app:has(.sticker-object:active) .control-dock,
.wedding-app:has(.sticker-object:active) .edit-tabs,
.wedding-app:has(.sticker-object:active) .capture-row,
.wedding-app:has(.sticker-object:active) .filter-strip,
.wedding-app:has(.sticker-object:active) .send-panel,
.wedding-app:has(.sticker-object:active) .pending-panel,
.wedding-app:has(.sticker-object:active) .remix-panel,
.wedding-app:has(.sticker-object:active) .utility-sheet,
.wedding-app:has(.sticker-object:active) .qr-sheet,
.wedding-app:has(.sticker-object:active) .discard-sheet,
.wedding-app:has(.sticker-object:active) .stage-topbar,
.wedding-app:has(.sticker-object:active) .install-panel,
.wedding-app:has(.sticker-object:active) .link-panel,
.wedding-app:has(.sticker-object:active) .guest-badge,
.wedding-app:has(.sticker-object:active) .readiness-chip,
.wedding-app:has(.sticker-object:active) .sticker-editor,
.wedding-app:has(.sticker-object:active) .sticker-category-strip,
.wedding-app:has(.sticker-object:active) .sticker-tray,
.wedding-app:has(.sticker-object:active) .status-toast,
.wedding-app:has(.sticker-object:active) .sticker-handle {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

.wedding-app:has(.sticker-object:active) .control-dock,
.wedding-app:has(.sticker-object:active) .filter-strip,
.wedding-app:has(.sticker-object:active) .send-panel,
.wedding-app:has(.sticker-object:active) .pending-panel,
.wedding-app:has(.sticker-object:active) .remix-panel,
.wedding-app:has(.sticker-object:active) .utility-sheet,
.wedding-app:has(.sticker-object:active) .qr-sheet,
.wedding-app:has(.sticker-object:active) .discard-sheet,
.wedding-app:has(.sticker-object:active) .sticker-editor,
.wedding-app:has(.sticker-object:active) .sticker-category-strip,
.wedding-app:has(.sticker-object:active) .sticker-tray {
  max-height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transition: none !important;
}

.wedding-app:has(.sticker-object:active) .control-dock {
  height: 0 !important;
  transform: translateY(118%) !important;
}

.wedding-app.is-edit-mode:has(.sticker-object:active) .filter-strip,
.wedding-app.is-edit-mode:has(.sticker-object:active) .send-panel,
.wedding-app.is-edit-mode:has(.sticker-object:active) .pending-panel,
.wedding-app.is-edit-mode:has(.sticker-object:active) .remix-panel,
.wedding-app.is-edit-mode:has(.sticker-object:active) .sticker-editor,
.wedding-app.is-edit-mode:has(.sticker-object:active) .sticker-category-strip,
.wedding-app.is-edit-mode:has(.sticker-object:active) .sticker-tray {
  transform: translate(-50%, 118%) !important;
}

.wedding-app:has(.sticker-object:active) .status-toast {
  transform: translate(-50%, 18px) !important;
}

.wedding-app:has(.sticker-object:active) .sticker-object.is-selected .photo-sticker {
  outline: 0;
}

.wedding-app:has(.sticker-object:active) .photo-sticker {
  outline: 0 !important;
  outline-offset: 0 !important;
}

.wedding-app:has(.sticker-object:active) .sticker-object.is-selected .sticker-handle,
.wedding-app:has(.sticker-object:active) .delete-handle,
.wedding-app:has(.sticker-object:active) .resize-handle,
.wedding-app:has(.sticker-object:active) .rotate-handle {
  display: none !important;
}

.delete-handle {
  right: -24px;
  top: -24px;
  background: #8f3146;
  color: #fff8ed;
  cursor: pointer;
}

.resize-handle {
  right: -24px;
  bottom: -24px;
  cursor: nwse-resize;
}

.rotate-handle {
  top: -58px;
  left: 50%;
  transform: translateX(-50%);
}

.rotate-handle::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 50%;
  width: 2px;
  height: 20px;
  transform: translateX(-50%);
  background: rgba(241, 201, 109, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.stage-topbar {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  z-index: 8;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: start;
  gap: 12px;
  pointer-events: none;
}

.stage-topbar > * {
  pointer-events: auto;
}

#start-camera {
  grid-column: 1;
  display: none;
}

#switch-camera {
  grid-column: 3;
  justify-self: end;
}

.camera-stage:not(.has-camera) #switch-camera,
.camera-stage.is-captured #switch-camera {
  display: none;
}

.couple-mark {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  max-width: min(42vw, 210px);
  padding: 6px 12px 8px;
  border-radius: 8px;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.68);
  background: rgba(12, 14, 17, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.couple-mark strong {
  display: block;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(1rem, 1.9vw, 1.55rem);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.couple-mark span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.68rem, 1.25vw, 0.78rem);
  font-weight: 700;
  white-space: nowrap;
}

.wedding-app.is-camera-mode {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 0;
}

.wedding-app.is-camera-mode .camera-shell {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  justify-self: center;
}

.wedding-app.is-camera-mode .camera-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
}

.wedding-app.is-camera-mode .memory-strip,
.wedding-app.is-camera-mode .couple-mark,
.wedding-app.is-edit-mode .couple-mark {
  display: none;
}

.wedding-app.is-camera-mode .stage-topbar {
  display: none;
}

.utility-button {
  z-index: 36;
}

.utility-button svg {
  width: 22px;
  height: 22px;
}

.icon-button,
.round-tool,
.mini-tool {
  border: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.icon-button {
  width: 48px;
  height: 48px;
  border-radius: 999px;
}

.icon-button svg,
.round-tool svg,
.mini-tool svg {
  width: 23px;
  height: 23px;
}

.glass-button {
  background: rgba(13, 15, 18, 0.38);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.camera-empty {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.5), rgba(10, 12, 15, 0.78)),
    url("./assets/engagement-day.jpg") center / cover;
}

.camera-stage.has-camera-error .camera-empty {
  align-content: end;
  padding-bottom: calc(146px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.34), rgba(10, 12, 15, 0.88)),
    url("./assets/engagement-day.jpg") center / cover;
}

.camera-stage.has-camera .camera-empty,
.camera-stage.is-captured .camera-empty {
  display: none;
}

.camera-empty img {
  width: min(42vw, 160px);
  transform: rotate(-5deg);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.34));
}

.camera-empty strong {
  font-size: clamp(1.8rem, 8vw, 4rem);
  line-height: 0.95;
  font-family: Georgia, "Times New Roman", serif;
}

.camera-stage.has-camera-error .camera-empty strong {
  font-family: inherit;
  font-size: clamp(1.35rem, 6vw, 2.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.camera-empty span {
  max-width: 27rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
}

.camera-stage.has-camera-error .camera-empty span {
  max-width: 20rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.camera-stage.has-camera-error .empty-actions {
  width: min(100%, 320px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.primary-button,
.secondary-button {
  border: 0;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: var(--gold);
  color: #201607;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.secondary-button input,
.round-tool input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.guest-sheet {
  position: absolute;
  left: 50%;
  bottom: max(82px, env(safe-area-inset-bottom));
  z-index: 42;
  width: min(calc(100% - 28px), 420px);
  display: grid;
  gap: 10px;
  padding: 12px;
  transform: translateX(-50%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(241, 201, 109, 0.12), transparent 56%),
    rgba(12, 14, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.guest-sheet label {
  display: grid;
  gap: 7px;
}

.guest-sheet-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: start;
  gap: 2px;
}

.guest-sheet-intro > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.guest-sheet-close {
  justify-self: end;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.guest-sheet-intro strong {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 900;
}

.guest-sheet-intro span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: none;
}

.guest-sheet span,
.guest-badge span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guest-sheet small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.68rem;
  font-weight: 780;
  text-transform: uppercase;
}

.guest-sheet input {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: #191f23;
  padding: 0 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 760;
}

.guest-sheet input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.camera-stage.is-captured .guest-sheet {
  top: 50%;
  bottom: auto;
  max-height: calc(100% - 24px);
  overflow-y: auto;
  transform: translate(-50%, -50%);
}

.camera-stage.is-asking-name::after,
.camera-stage.is-showing-qr::after,
.camera-stage.is-confirming-discard::after,
.camera-stage.is-choosing-draft::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.wedding-app:has(.camera-stage.is-asking-name) .control-dock,
.wedding-app:has(.camera-stage.is-asking-name) .edit-tabs,
.wedding-app:has(.camera-stage.is-asking-name) .capture-row,
.wedding-app:has(.camera-stage.is-asking-name) .filter-strip,
.wedding-app:has(.camera-stage.is-asking-name) .send-panel,
.wedding-app:has(.camera-stage.is-asking-name) .pending-panel,
.wedding-app:has(.camera-stage.is-asking-name) .remix-panel,
.wedding-app:has(.camera-stage.is-asking-name) .sticker-category-strip,
.wedding-app:has(.camera-stage.is-asking-name) .sticker-editor,
.wedding-app:has(.camera-stage.is-asking-name) .sticker-tray,
.wedding-app:has(.camera-stage.is-asking-name) .status-toast {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

.wedding-app:has(.camera-stage.is-asking-name) .control-dock,
.wedding-app:has(.camera-stage.is-asking-name) .filter-strip,
.wedding-app:has(.camera-stage.is-asking-name) .send-panel,
.wedding-app:has(.camera-stage.is-asking-name) .pending-panel,
.wedding-app:has(.camera-stage.is-asking-name) .remix-panel,
.wedding-app:has(.camera-stage.is-asking-name) .sticker-category-strip,
.wedding-app:has(.camera-stage.is-asking-name) .sticker-editor,
.wedding-app:has(.camera-stage.is-asking-name) .sticker-tray {
  max-height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.wedding-app:has(.camera-stage.is-asking-name) .control-dock {
  height: 0 !important;
  transform: translateY(118%) !important;
}

.wedding-app.is-edit-mode:has(.camera-stage.is-asking-name) .filter-strip,
.wedding-app.is-edit-mode:has(.camera-stage.is-asking-name) .send-panel,
.wedding-app.is-edit-mode:has(.camera-stage.is-asking-name) .pending-panel,
.wedding-app.is-edit-mode:has(.camera-stage.is-asking-name) .remix-panel,
.wedding-app.is-edit-mode:has(.camera-stage.is-asking-name) .sticker-category-strip,
.wedding-app.is-edit-mode:has(.camera-stage.is-asking-name) .sticker-editor,
.wedding-app.is-edit-mode:has(.camera-stage.is-asking-name) .sticker-tray {
  transform: translate(-50%, 118%) !important;
}

.discard-sheet,
.draft-sheet {
  position: absolute;
  left: 50%;
  bottom: max(82px, env(safe-area-inset-bottom));
  z-index: 42;
  width: min(calc(100% - 28px), 420px);
  display: grid;
  gap: 9px;
  padding: 13px;
  transform: translateX(-50%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(241, 201, 109, 0.14), transparent 58%),
    rgba(12, 14, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.qr-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 42;
  width: min(calc(100% - 28px), 360px);
  display: grid;
  gap: 12px;
  padding: 14px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(105, 198, 214, 0.14), transparent 56%),
    rgba(12, 14, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.utility-sheet {
  position: absolute;
  top: max(62px, calc(env(safe-area-inset-top) + 58px));
  right: max(10px, env(safe-area-inset-right));
  z-index: 43;
  width: min(calc(100% - 20px), 330px);
  display: grid;
  gap: 12px;
  max-height: min(calc(100dvh - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(241, 201, 109, 0.12), transparent 58%),
    rgba(12, 14, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.wedding-app.is-camera-mode .utility-sheet {
  position: fixed;
  top: auto;
  right: auto;
  bottom: calc(164px + env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100vw - 24px), 330px);
  max-height: min(62dvh, 520px);
  transform: translateX(-50%);
}

.utility-sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.utility-sheet-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.utility-sheet-head strong {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.08;
}

.utility-sheet-head span,
.utility-sheet small {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.utility-action {
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.utility-action svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  stroke-width: 2.15;
}

.utility-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.install-help {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(105, 198, 214, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.install-help strong {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.05;
}

.install-help ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.24;
}

.install-help li::marker {
  color: var(--gold);
  font-weight: 920;
}

.install-help small {
  overflow: visible;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 740;
  line-height: 1.24;
  text-overflow: clip;
  white-space: normal;
}

.utility-link-fallback {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.utility-link-fallback span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.utility-link-fallback input {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #161b20;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 760;
}

.utility-link-fallback input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.timer-control,
.assist-control,
.zoom-control {
  display: grid;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.timer-control,
.assist-control {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.timer-control > span,
.assist-control > span,
.zoom-control label span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.zoom-control {
  grid-template-columns: minmax(0, 1fr);
}

.zoom-control label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.zoom-control label strong {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.zoom-control input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.zoom-control input[type="range"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.timer-options,
.assist-options {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.timer-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.assist-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timer-option,
.assist-option {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 840;
}

.timer-option.is-active,
.timer-option[aria-pressed="true"],
.assist-option.is-active,
.assist-option[aria-pressed="true"] {
  color: #201607;
  background: var(--gold);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 2px rgba(241, 201, 109, 0.14);
}

.assist-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.utility-sheet .assist-hint {
  margin-top: -4px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.capture-countdown {
  position: absolute;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(8, 10, 13, 0.08), rgba(8, 10, 13, 0.34) 72%),
    linear-gradient(180deg, rgba(8, 10, 13, 0.08), rgba(8, 10, 13, 0.26));
}

.capture-countdown__badge {
  width: clamp(128px, 34vw, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 999px;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 62%, transparent),
    rgba(8, 10, 13, 0.44);
  border: 2px solid rgba(241, 201, 109, 0.58);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    inset 0 0 0 8px rgba(241, 201, 109, 0.08);
  backdrop-filter: blur(12px);
}

.capture-countdown strong {
  font-size: clamp(4.9rem, 18vw, 8.4rem);
  font-weight: 920;
  line-height: 0.88;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

.capture-countdown span {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.72rem, 1.2vw, 0.92rem);
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.camera-stage.is-counting-down .camera-preview,
.camera-stage.is-counting-down .photo-preview {
  filter: brightness(0.96) saturate(1.06);
}

.qr-sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.qr-sheet-head div {
  display: grid;
  gap: 2px;
}

.qr-sheet-head strong {
  font-size: 1.04rem;
  font-weight: 900;
}

.qr-sheet-head span,
.qr-sheet-url {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 760;
}

.qr-sheet img {
  justify-self: center;
  width: min(68vw, 270px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.qr-sheet-url {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discard-sheet strong,
.draft-sheet strong {
  font-size: 0.98rem;
  font-weight: 880;
}

.discard-sheet span,
.draft-sheet span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

.discard-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.discard-confirm-button {
  border-color: rgba(255, 210, 218, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 210, 218, 0.16), transparent 54%),
    rgba(143, 49, 70, 0.68);
  color: #fff8ed;
}

.discard-confirm-button:focus-visible {
  outline: 2px solid #ffd2da;
  outline-offset: 2px;
}

.guest-badge {
  justify-self: center;
  width: min(100%, 460px);
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.guest-badge strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.readiness-chip {
  width: min(100%, 460px);
  min-height: 44px;
  display: grid;
  grid-template-columns: 12px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  justify-self: center;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.readiness-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(241, 201, 109, 0.12);
}

.readiness-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 860;
}

.readiness-chip small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 740;
}

.readiness-chip[data-state="ready"] .readiness-dot {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(158, 215, 191, 0.14);
}

.readiness-chip[data-state="queued"] .readiness-dot {
  background: var(--sea);
  box-shadow: 0 0 0 5px rgba(105, 198, 214, 0.14);
}

.readiness-chip[data-state="offline"] .readiness-dot,
.readiness-chip[data-state="warning"] .readiness-dot {
  background: var(--rose);
  box-shadow: 0 0 0 5px rgba(201, 79, 107, 0.15);
}

.edit-tabs {
  display: none;
}

.edit-tab {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  display: grid;
  grid-template-rows: 17px auto;
  place-items: center;
  gap: 2px;
  padding: 5px 4px 4px;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

.edit-tab__icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.edit-tab__label {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-tab.is-active {
  color: #201607;
  background: var(--gold);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 2px rgba(241, 201, 109, 0.15);
}

.status-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 12;
  width: fit-content;
  min-width: min(176px, calc(100% - 28px));
  max-width: min(calc(100% - 28px), 540px);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  min-height: 42px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(12, 14, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 750;
  line-height: 1.18;
  text-align: center;
  backdrop-filter: blur(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.status-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.control-dock {
  display: grid;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(28, 30, 35, 0.96), rgba(13, 15, 18, 0.98)),
    var(--ink-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wedding-app.is-camera-mode .edit-tabs,
.wedding-app.is-camera-mode .install-panel,
.wedding-app.is-camera-mode .link-panel,
.wedding-app.is-camera-mode .guest-badge,
.wedding-app.is-camera-mode .readiness-chip,
.wedding-app.is-camera-mode .remix-panel,
.wedding-app.is-camera-mode .sticker-category-strip,
.wedding-app.is-camera-mode .sticker-editor,
.wedding-app.is-camera-mode .sticker-tray,
.wedding-app.is-camera-mode #retake-button,
.wedding-app.is-camera-mode #upload-button,
.wedding-app.is-camera-mode #download-button {
  display: none;
}

.wedding-app.is-camera-mode .control-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  min-height: 112px;
  height: auto;
  align-content: end;
  justify-items: center;
  gap: 8px;
  padding: 0 14px max(14px, env(safe-area-inset-bottom));
  background:
    linear-gradient(0deg, rgba(8, 10, 13, 0.86), rgba(8, 10, 13, 0.62) 70%, transparent);
  border-top: 0;
  pointer-events: none;
}

.wedding-app.is-camera-mode.is-camera-filter-open .control-dock {
  min-height: 164px;
}

.wedding-app.is-camera-mode .control-dock > * {
  pointer-events: auto;
}

.wedding-app.is-camera-mode .filter-strip {
  width: min(calc(100vw - 24px), 430px);
  display: none;
  gap: 8px;
  padding: 0 2px 3px;
  scrollbar-width: none;
}

.wedding-app.is-camera-mode.is-camera-filter-open .filter-strip {
  display: flex;
}

.wedding-app.is-camera-mode .filter-strip::-webkit-scrollbar {
  display: none;
}

.wedding-app.is-camera-mode .filter-category-switch {
  gap: 5px;
}

.wedding-app.is-camera-mode .filter-category-button {
  min-width: 66px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.7rem;
}

.wedding-app.is-camera-mode .filter-category-button small {
  min-width: 18px;
  height: 18px;
  font-size: 0.6rem;
}

.wedding-app.is-camera-mode .filter-category-button.has-selected-filter:not(.is-active)::after {
  right: 7px;
  top: 7px;
}

.wedding-app.is-camera-mode .filter-button {
  min-width: 78px;
  min-height: 42px;
  border-radius: 999px;
}

.wedding-app.is-camera-mode .filter-button__label {
  place-items: center;
  padding: 0 10px;
  font-size: 0.72rem;
}

.wedding-app.is-camera-mode .filter-button.has-live-effect .filter-button__label,
.wedding-app.is-camera-mode .filter-button.is-live-fx-off .filter-button__label {
  place-items: end center;
  padding: 20px 8px 6px;
  font-size: 0.68rem;
}

.wedding-app.is-camera-mode .filter-button__icon {
  top: 5px;
  width: 19px;
  height: 19px;
  font-size: 0.76rem;
}

.wedding-app.is-camera-mode.has-camera-unavailable .filter-strip {
  display: none;
}

.wedding-app.is-camera-mode.has-camera-unavailable .control-dock {
  min-height: 112px;
}

.wedding-app.is-camera-mode .pending-panel {
  width: min(100%, 460px);
}

.wedding-app.is-camera-mode .send-panel {
  display: none;
}

.wedding-app.is-camera-mode .optional-message-row,
.wedding-app.is-camera-mode .send-actions {
  display: none;
}

.wedding-app.is-camera-mode .send-status {
  padding-left: 96px;
}

.wedding-app.is-edit-mode .install-panel {
  display: none;
}

.wedding-app.is-edit-mode .link-panel {
  display: none;
}

.wedding-app.is-edit-mode .guest-badge {
  display: none;
}

.wedding-app.is-edit-mode .edit-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.wedding-app.is-edit-mode .filter-strip,
.wedding-app.is-edit-mode .send-panel,
.wedding-app.is-edit-mode .remix-panel,
.wedding-app.is-edit-mode .sticker-category-strip,
.wedding-app.is-edit-mode .sticker-tray {
  display: none;
}

.wedding-app.is-edit-mode[data-edit-panel="send"] .send-panel {
  display: grid;
}

.wedding-app.is-edit-mode[data-edit-panel="look"] .filter-strip,
.wedding-app.is-edit-mode[data-edit-panel="fx"] .filter-strip {
  display: flex;
}

.wedding-app.is-edit-mode .filter-category-switch {
  display: none;
}

.wedding-app.is-edit-mode[data-edit-panel="ai"] .remix-panel {
  display: grid;
}

.wedding-app.is-edit-mode[data-edit-panel="stickers"] .sticker-category-strip,
.wedding-app.is-edit-mode[data-edit-panel="stickers"] .sticker-tray {
  display: flex;
}

.wedding-app.is-edit-mode:not([data-edit-panel="stickers"]) .sticker-editor {
  display: none;
}

.wedding-app.is-delivered-mode .filter-strip,
.wedding-app.is-delivered-mode .edit-tabs,
.wedding-app.is-delivered-mode .remix-panel,
.wedding-app.is-delivered-mode .sticker-category-strip,
.wedding-app.is-delivered-mode .sticker-editor,
.wedding-app.is-delivered-mode .sticker-tray,
.wedding-app.is-saving-photo .filter-strip,
.wedding-app.is-saving-photo .edit-tabs,
.wedding-app.is-saving-photo .remix-panel,
.wedding-app.is-saving-photo .sticker-category-strip,
.wedding-app.is-saving-photo .sticker-editor,
.wedding-app.is-saving-photo .sticker-tray,
.wedding-app.is-delivered-mode #shutter-button,
.wedding-app.is-delivered-mode #upload-button {
  display: none !important;
}

.wedding-app.is-delivered-mode .send-panel,
.wedding-app.is-save-finishing .send-panel,
.wedding-app.is-save-finishing .edit-tabs {
  display: none !important;
}

.install-panel {
  width: min(100%, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.install-button {
  min-height: 38px;
  white-space: nowrap;
}

.install-panel span {
  min-width: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
}

.link-panel {
  width: min(100%, 460px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.link-action {
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.link-action svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  stroke-width: 2.15;
}

.link-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wedding-app.is-camera-mode .capture-row {
  width: min(calc(100vw - 28px), 344px);
  grid-template-columns: 52px 78px 52px 52px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(8, 10, 13, 0.62);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.wedding-app.is-camera-mode .dock-switch-camera {
  display: grid;
  place-items: center;
}

.wedding-app.is-camera-mode .utility-button {
  display: grid;
  place-items: center;
}

.wedding-app.is-camera-mode .shutter-button {
  width: 78px;
  height: 78px;
}

.wedding-app.is-camera-mode .status-toast {
  bottom: calc(112px + env(safe-area-inset-bottom));
}

.wedding-app.is-camera-mode.is-camera-filter-open .status-toast {
  bottom: calc(164px + env(safe-area-inset-bottom));
}

.wedding-app.is-camera-mode.has-camera-unavailable .capture-row {
  width: auto;
  grid-template-columns: 52px 52px;
  gap: 10px;
  padding: 8px;
}

.wedding-app.is-camera-mode.has-camera-unavailable #shutter-button,
.wedding-app.is-camera-mode.has-camera-unavailable .camera-filter-button,
.wedding-app.is-camera-mode.has-camera-unavailable .dock-switch-camera {
  display: none;
}

.wedding-app.is-edit-mode .capture-row {
  grid-template-columns: minmax(112px, 1fr) minmax(120px, 1.1fr);
}

.wedding-app.is-edit-mode .capture-row .round-tool:not(#upload-button),
.wedding-app.is-edit-mode #shutter-button {
  display: none;
}

.wedding-app.is-edit-mode .utility-button {
  display: none;
}

.filter-strip,
.sticker-tray {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  padding-bottom: 3px;
}

.sticker-category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  padding-bottom: 2px;
}

.sticker-category-button {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 38px;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 820;
  line-height: 1;
}

.sticker-category-button small {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.66rem;
  font-weight: 850;
}

.sticker-category-button.is-active {
  color: #201607;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 52%),
    var(--gold);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 2px rgba(241, 201, 109, 0.16);
}

.sticker-category-button.is-active small {
  color: #201607;
  background: rgba(255, 255, 255, 0.42);
}

.filter-category-switch {
  position: sticky;
  left: 0;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding-right: 2px;
  background: linear-gradient(90deg, rgba(15, 17, 21, 0.94) 0 86%, rgba(15, 17, 21, 0));
}

.filter-category-button {
  position: relative;
  flex: 0 0 auto;
  min-width: 78px;
  min-height: 54px;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
}

.filter-category-button small {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.66rem;
  font-weight: 850;
}

.filter-category-button.is-active {
  color: #201607;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 52%),
    var(--gold);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 2px rgba(241, 201, 109, 0.16);
}

.filter-category-button.is-active small {
  color: #201607;
  background: rgba(255, 255, 255, 0.42);
}

.filter-category-button.has-selected-filter:not(.is-active)::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(241, 201, 109, 0.7);
}

.filter-button {
  position: relative;
  flex: 0 0 auto;
  scroll-margin-left: 188px;
  scroll-margin-right: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  min-width: 94px;
  min-height: 54px;
  overflow: hidden;
  background: #22282c;
  color: var(--white);
  cursor: pointer;
}

.filter-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(105, 198, 214, 0.74), transparent 36%),
    linear-gradient(45deg, rgba(240, 142, 163, 0.8), rgba(241, 201, 109, 0.78));
  opacity: 0.96;
}

.filter-button[data-filter="natural"]::before {
  background:
    linear-gradient(135deg, rgba(105, 198, 214, 0.86), transparent 42%),
    linear-gradient(45deg, rgba(246, 234, 216, 0.9), rgba(241, 201, 109, 0.84));
}

.filter-button.is-live-fx-off::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 44%),
    linear-gradient(45deg, rgba(35, 39, 45, 0.94), rgba(101, 111, 124, 0.84));
}

.filter-button.is-live-fx-off::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 248, 237, 0.9);
  border-radius: 999px;
  box-shadow: inset 0 0 0 4px rgba(18, 20, 24, 0.72);
}

.filter-undo-button {
  min-width: 76px;
  border-color: rgba(241, 201, 109, 0.42);
}

.filter-undo-button::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 48%),
    linear-gradient(45deg, rgba(35, 39, 45, 0.96), rgba(83, 72, 45, 0.9));
}

.filter-button[data-filter="film"]::before {
  filter: sepia(0.34) contrast(1.12);
}

.filter-button[data-filter="bw"]::before {
  filter: grayscale(1);
}

.filter-button[data-filter="confetti"]::before {
  background:
    radial-gradient(circle at 25% 28%, rgba(255, 248, 237, 0.92) 0 5%, transparent 6%),
    radial-gradient(circle at 66% 34%, rgba(105, 198, 214, 0.95) 0 6%, transparent 7%),
    linear-gradient(135deg, rgba(240, 142, 163, 0.92), rgba(241, 201, 109, 0.86));
}

.filter-button[data-filter="hearts"]::before {
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.92) 0 8%, transparent 9%),
    radial-gradient(circle at 62% 52%, rgba(255, 144, 180, 0.96) 0 12%, transparent 13%),
    linear-gradient(135deg, rgba(240, 142, 163, 0.9), rgba(105, 198, 214, 0.72));
}

.filter-button[data-filter="sparkle"]::before {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0 7%, transparent 8%),
    radial-gradient(circle at 70% 38%, rgba(241, 201, 109, 0.98) 0 8%, transparent 9%),
    linear-gradient(135deg, rgba(105, 198, 214, 0.82), rgba(241, 201, 109, 0.88));
}

.filter-button[data-filter="fireworks"]::before {
  background:
    radial-gradient(circle at 26% 32%, rgba(241, 201, 109, 0.98) 0 4%, transparent 18%),
    radial-gradient(circle at 70% 48%, rgba(240, 142, 163, 0.95) 0 4%, transparent 20%),
    linear-gradient(135deg, rgba(18, 22, 35, 0.98), rgba(70, 41, 103, 0.88));
}

.filter-button[data-filter="petals"]::before {
  background:
    radial-gradient(ellipse at 34% 30%, rgba(255, 241, 246, 0.94) 0 10%, transparent 11%),
    radial-gradient(ellipse at 68% 56%, rgba(243, 165, 185, 0.92) 0 12%, transparent 13%),
    linear-gradient(135deg, rgba(246, 234, 216, 0.9), rgba(240, 142, 163, 0.76));
}

.filter-button[data-filter="disco"]::before {
  background:
    linear-gradient(70deg, rgba(105, 198, 214, 0.86), transparent 28%),
    linear-gradient(130deg, transparent 42%, rgba(240, 142, 163, 0.88) 64%, transparent 82%),
    linear-gradient(45deg, rgba(241, 201, 109, 0.84), rgba(38, 44, 58, 0.92));
}

.filter-button[data-filter="bubbles"]::before {
  background:
    radial-gradient(circle at 32% 34%, rgba(223, 250, 255, 0.88) 0 10%, transparent 11%),
    radial-gradient(circle at 66% 54%, rgba(255, 255, 255, 0.68) 0 12%, transparent 13%),
    linear-gradient(135deg, rgba(105, 198, 214, 0.82), rgba(158, 215, 191, 0.82));
}

.filter-button[data-filter="gold-rain"]::before {
  background:
    linear-gradient(100deg, transparent 12%, rgba(255, 244, 202, 0.9) 14%, transparent 20%),
    linear-gradient(75deg, transparent 48%, rgba(241, 201, 109, 0.9) 51%, transparent 58%),
    linear-gradient(135deg, rgba(86, 58, 21, 0.9), rgba(241, 201, 109, 0.9));
}

.filter-button[data-filter="long-face-live"]::before {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255, 248, 237, 0.86) 0 14%, transparent 15%),
    radial-gradient(ellipse at 50% 50%, rgba(105, 198, 214, 0.86) 0 28%, transparent 29%),
    linear-gradient(135deg, rgba(32, 48, 58, 0.94), rgba(105, 198, 214, 0.76));
}

.filter-button[data-filter="big-eyes-live"]::before {
  background:
    radial-gradient(circle at 35% 42%, rgba(255, 248, 237, 0.96) 0 13%, transparent 14%),
    radial-gradient(circle at 65% 42%, rgba(255, 248, 237, 0.96) 0 13%, transparent 14%),
    linear-gradient(135deg, rgba(105, 198, 214, 0.86), rgba(240, 142, 163, 0.78));
}

.filter-button[data-filter="squish-face-live"]::before {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 248, 237, 0.9) 0 24%, transparent 25%),
    linear-gradient(90deg, rgba(240, 142, 163, 0.9), rgba(241, 201, 109, 0.78), rgba(105, 198, 214, 0.82));
}

.filter-button[data-filter="mega-grin-live"]::before {
  background:
    radial-gradient(ellipse at 50% 58%, rgba(255, 248, 237, 0.95) 0 8%, transparent 9%),
    radial-gradient(ellipse at 50% 58%, rgba(240, 142, 163, 0.92) 0 22%, transparent 23%),
    linear-gradient(135deg, rgba(241, 201, 109, 0.86), rgba(105, 198, 214, 0.74));
}

.filter-button[data-filter="beard-booth-live"]::before {
  background:
    radial-gradient(ellipse at 50% 58%, rgba(45, 30, 22, 0.96) 0 21%, transparent 22%),
    radial-gradient(ellipse at 50% 38%, rgba(255, 226, 210, 0.88) 0 18%, transparent 19%),
    linear-gradient(135deg, rgba(246, 234, 216, 0.82), rgba(67, 43, 31, 0.82));
}

.filter-button[data-filter="toon-pop-live"]::before {
  background:
    linear-gradient(0deg, transparent 42%, rgba(31, 22, 28, 0.78) 43% 46%, transparent 47%),
    radial-gradient(circle at 34% 38%, rgba(255, 248, 237, 0.9) 0 8%, transparent 9%),
    radial-gradient(circle at 66% 38%, rgba(255, 248, 237, 0.9) 0 8%, transparent 9%),
    linear-gradient(135deg, rgba(105, 198, 214, 0.9), rgba(240, 142, 163, 0.88), rgba(241, 201, 109, 0.78));
}

.filter-button[data-filter="crown-booth"]::before {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 248, 237, 0.94) 0 6%, transparent 7%),
    linear-gradient(135deg, rgba(241, 201, 109, 0.94), rgba(41, 27, 10, 0.88));
}

.filter-button[data-filter="heart-glasses"]::before {
  background:
    radial-gradient(circle at 35% 42%, rgba(255, 143, 177, 0.95) 0 13%, transparent 14%),
    radial-gradient(circle at 65% 42%, rgba(255, 143, 177, 0.95) 0 13%, transparent 14%),
    linear-gradient(135deg, rgba(255, 248, 237, 0.78), rgba(240, 142, 163, 0.9));
}

.filter-button[data-filter="youth-glow-live"]::before {
  background:
    radial-gradient(circle at 36% 44%, rgba(255, 143, 177, 0.9) 0 9%, transparent 10%),
    radial-gradient(circle at 64% 44%, rgba(255, 143, 177, 0.86) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 30%, rgba(255, 248, 237, 0.96) 0 8%, transparent 9%),
    linear-gradient(135deg, rgba(255, 248, 237, 0.86), rgba(105, 198, 214, 0.76));
}

.filter-button[data-filter="old-booth-live"]::before {
  background:
    linear-gradient(0deg, transparent 34%, rgba(92, 65, 50, 0.72) 35% 37%, transparent 38%),
    linear-gradient(0deg, transparent 46%, rgba(92, 65, 50, 0.62) 47% 49%, transparent 50%),
    linear-gradient(135deg, rgba(246, 234, 216, 0.9), rgba(123, 96, 79, 0.74));
}

.filter-button[data-filter="bald-cap-live"]::before {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 232, 211, 0.96) 0 24%, rgba(232, 184, 154, 0.82) 25% 36%, transparent 37%),
    radial-gradient(circle at 44% 24%, rgba(255, 248, 237, 0.9) 0 5%, transparent 6%),
    linear-gradient(135deg, rgba(246, 234, 216, 0.86), rgba(241, 201, 109, 0.66));
}

.filter-button[data-filter="face-swap-live"]::before {
  background:
    radial-gradient(ellipse at 32% 46%, rgba(105, 198, 214, 0.92) 0 13%, transparent 14%),
    radial-gradient(ellipse at 68% 46%, rgba(240, 142, 163, 0.92) 0 13%, transparent 14%),
    linear-gradient(110deg, transparent 38%, rgba(241, 201, 109, 0.92) 40% 45%, transparent 47%),
    linear-gradient(135deg, rgba(18, 22, 35, 0.94), rgba(105, 198, 214, 0.74));
}

.filter-button[data-filter="halo-glow"]::before {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 248, 237, 0.96) 0 18%, transparent 19%),
    linear-gradient(135deg, rgba(241, 201, 109, 0.82), rgba(105, 198, 214, 0.78));
}

.filter-button[data-filter="glam-sparkle"]::before {
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 248, 237, 0.96) 0 7%, transparent 8%),
    radial-gradient(circle at 68% 54%, rgba(241, 201, 109, 0.96) 0 8%, transparent 9%),
    linear-gradient(135deg, rgba(105, 198, 214, 0.8), rgba(240, 142, 163, 0.86));
}

.filter-button[data-filter="no-mouth-live"]::before {
  background:
    radial-gradient(ellipse at 50% 58%, rgba(255, 226, 210, 0.92) 0 16%, transparent 17%),
    linear-gradient(135deg, rgba(246, 234, 216, 0.9), rgba(105, 198, 214, 0.72));
}

.filter-button[data-filter="dreamy"]::before {
  filter: saturate(1.3) brightness(1.12);
}

.filter-button[data-filter="cool"]::before {
  background:
    linear-gradient(135deg, rgba(64, 155, 190, 0.86), rgba(143, 220, 196, 0.76)),
    #28333d;
}

.filter-button__label {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  place-items: end center;
  padding: 0 8px 8px;
  font-size: 0.78rem;
  font-weight: 850;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.56);
}

.filter-button__icon {
  position: absolute;
  left: 50%;
  top: 7px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 248, 237, 0.42);
  border-radius: 999px;
  color: #fff8ed;
  background: rgba(12, 14, 17, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}

.filter-button__icon::before,
.filter-button__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform: translate(-50%, -50%);
}

.filter-button__icon::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.96);
  box-shadow: 0 0 0 4px rgba(255, 248, 237, 0.12);
}

.filter-button__icon--off::before {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 248, 237, 0.92);
  background: transparent;
  box-shadow: none;
}

.filter-button__icon--off::after {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.92);
  transform: translate(-50%, -50%) rotate(-42deg);
}

.filter-button__icon--undo::before {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 248, 237, 0.96);
  border-right-color: transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.filter-button__icon--undo::after {
  width: 7px;
  height: 7px;
  border-left: 2px solid rgba(255, 248, 237, 0.96);
  border-bottom: 2px solid rgba(255, 248, 237, 0.96);
  transform: translate(-74%, -78%) rotate(18deg);
}

.filter-button__icon--confetti::before {
  width: 5px;
  height: 5px;
  background: #fff8ed;
  box-shadow:
    -6px -4px 0 rgba(105, 198, 214, 0.96),
    6px -2px 0 rgba(241, 201, 109, 0.96),
    -2px 7px 0 rgba(240, 142, 163, 0.96);
}

.filter-button__icon--confetti::after,
.filter-button__icon--sparkle::before,
.filter-button__icon--glam-sparkle::before,
.filter-button__icon--youth-glow-live::before {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: rgba(255, 248, 237, 0.96);
  box-shadow: 0 0 13px rgba(255, 248, 237, 0.66);
  transform: translate(-50%, -50%) rotate(45deg) scale(0.72);
}

.filter-button__icon--hearts::before,
.filter-button__icon--heart-glasses::before {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 197, 215, 0.96);
  border-radius: 999px;
  background: rgba(240, 142, 163, 0.28);
  box-shadow: 9px 0 0 -1px rgba(18, 20, 24, 0.28), 9px 0 0 1px rgba(255, 197, 215, 0.96);
}

.filter-button__icon--hearts::after,
.filter-button__icon--heart-glasses::after {
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 197, 215, 0.96);
}

.filter-button__icon--fireworks::before {
  width: 4px;
  height: 4px;
  background: rgba(241, 201, 109, 0.96);
  box-shadow:
    0 -8px 0 rgba(255, 248, 237, 0.9),
    7px 0 0 rgba(240, 142, 163, 0.92),
    0 8px 0 rgba(105, 198, 214, 0.92),
    -7px 0 0 rgba(241, 201, 109, 0.96);
}

.filter-button__icon--fireworks::after {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.78);
  box-shadow: 0 0 10px rgba(255, 248, 237, 0.34);
  transform: translate(-50%, -50%) rotate(45deg);
}

.filter-button__icon--petals::before {
  width: 8px;
  height: 14px;
  border-radius: 999px 999px 4px 4px;
  background: rgba(255, 226, 235, 0.96);
  transform: translate(-50%, -50%) rotate(28deg);
}

.filter-button__icon--petals::after {
  width: 8px;
  height: 14px;
  border-radius: 999px 999px 4px 4px;
  background: rgba(240, 142, 163, 0.82);
  transform: translate(-50%, -50%) rotate(-34deg);
}

.filter-button__icon--disco::before {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(255, 248, 237, 0.8) 1px, transparent 1px),
    linear-gradient(rgba(255, 248, 237, 0.8) 1px, transparent 1px),
    rgba(105, 198, 214, 0.86);
  background-size: 5px 5px;
  box-shadow: 0 0 14px rgba(105, 198, 214, 0.56);
  transform: translate(-50%, -50%) rotate(45deg);
}

.filter-button__icon--bubbles::before,
.filter-button__icon--halo-glow::before {
  width: 15px;
  height: 10px;
  border: 2px solid rgba(223, 250, 255, 0.92);
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 0 13px rgba(223, 250, 255, 0.42);
}

.filter-button__icon--gold-rain::before {
  width: 3px;
  height: 17px;
  border-radius: 999px;
  background: rgba(241, 201, 109, 0.96);
  box-shadow:
    -6px -2px 0 rgba(255, 248, 237, 0.74),
    6px 2px 0 rgba(241, 201, 109, 0.8);
  transform: translate(-50%, -50%) rotate(16deg);
}

.filter-button__icon--snap-camera-kit::before,
.filter-button__icon--snap-lens::before {
  width: 16px;
  height: 14px;
  border-radius: 7px 7px 9px 9px;
  background: rgba(255, 248, 237, 0.96);
  box-shadow:
    inset 0 -3px 0 rgba(241, 201, 109, 0.35),
    0 0 14px rgba(241, 201, 109, 0.36);
}

.filter-button__icon--snap-camera-kit::after,
.filter-button__icon--snap-lens::after {
  width: 18px;
  height: 9px;
  border-radius: 0 0 10px 10px;
  border-bottom: 2px solid rgba(255, 248, 237, 0.9);
  transform: translate(-50%, -16%);
}

.filter-button__icon--long-face-live::before {
  width: 10px;
  height: 18px;
  border-radius: 999px;
  background: rgba(105, 198, 214, 0.94);
  box-shadow: inset 0 -4px 0 rgba(255, 248, 237, 0.3);
}

.filter-button__icon--big-eyes-live::before {
  width: 7px;
  height: 7px;
  border: 2px solid rgba(255, 248, 237, 0.96);
  border-radius: 999px;
  background: rgba(105, 198, 214, 0.42);
  box-shadow: 10px 0 0 -1px rgba(105, 198, 214, 0.42), 10px 0 0 1px rgba(255, 248, 237, 0.96);
}

.filter-button__icon--squish-face-live::before {
  width: 18px;
  height: 11px;
  border-radius: 999px;
  background: rgba(240, 142, 163, 0.94);
  box-shadow: inset 0 3px 0 rgba(255, 248, 237, 0.28);
}

.filter-button__icon--mega-grin-live::before {
  width: 17px;
  height: 10px;
  border-radius: 0 0 999px 999px;
  border: 2px solid rgba(255, 248, 237, 0.96);
  border-top: 0;
  background: rgba(240, 142, 163, 0.34);
  box-shadow: none;
}

.filter-button__icon--beard-booth-live::before {
  width: 17px;
  height: 12px;
  border-radius: 4px 4px 999px 999px;
  background: rgba(45, 30, 22, 0.96);
  box-shadow: inset 0 4px 0 rgba(255, 248, 237, 0.14);
  transform: translate(-50%, -38%);
}

.filter-button__icon--toon-pop-live::before {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: rgba(241, 201, 109, 0.96);
  box-shadow:
    inset 0 0 0 2px rgba(31, 22, 28, 0.48),
    0 0 12px rgba(241, 201, 109, 0.46);
}

.filter-button__icon--toon-pop-live::after {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(31, 22, 28, 0.62);
}

.filter-button__icon--crown-booth::before {
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background: rgba(241, 201, 109, 0.96);
  clip-path: polygon(0 100%, 0 34%, 28% 58%, 50% 12%, 72% 58%, 100% 34%, 100% 100%);
  box-shadow: none;
}

.filter-button__icon--old-booth-live::before {
  width: 15px;
  height: 12px;
  border-radius: 999px;
  background: rgba(246, 234, 216, 0.92);
  box-shadow: inset 0 -3px 0 rgba(92, 65, 50, 0.5);
}

.filter-button__icon--old-booth-live::after {
  width: 16px;
  height: 1px;
  border-radius: 999px;
  background: rgba(92, 65, 50, 0.72);
  box-shadow: 0 4px 0 rgba(92, 65, 50, 0.56);
}

.filter-button__icon--bald-cap-live::before {
  width: 16px;
  height: 12px;
  border-radius: 999px 999px 7px 7px;
  background: rgba(255, 226, 210, 0.94);
  box-shadow: inset 0 3px 0 rgba(255, 248, 237, 0.34);
}

.filter-button__icon--face-swap-live::before {
  width: 18px;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(105, 198, 214, 0.92) 0 50%, rgba(240, 142, 163, 0.92) 50% 100%);
  box-shadow: 0 0 14px rgba(255, 248, 237, 0.32);
}

.filter-button__icon--face-swap-live::after {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.86);
  transform: translate(-50%, -50%) rotate(-24deg);
}

.filter-button__icon--no-mouth-live::before {
  width: 15px;
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 226, 210, 0.94);
  box-shadow: inset 0 3px 0 rgba(255, 248, 237, 0.28);
}

.filter-button__icon--no-mouth-live::after {
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(105, 198, 214, 0.72);
}

.filter-button.has-live-effect .filter-button__label,
.filter-button.is-live-fx-off .filter-button__label {
  padding-top: 28px;
}

.filter-button.is-live-fx-off .filter-button__icon {
  color: rgba(255, 248, 237, 0.9);
  background: rgba(18, 20, 24, 0.48);
}

.filter-button.has-live-effect::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff8ed;
  box-shadow:
    0 0 0 3px rgba(255, 248, 237, 0.18),
    0 0 18px rgba(255, 248, 237, 0.86);
}

.filter-button.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(241, 201, 109, 0.2);
}

.capture-row {
  display: grid;
  grid-template-columns: 56px 56px 86px 56px 56px;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
}

.round-tool {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.camera-filter-button.is-active {
  color: #201607;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 52%),
    var(--gold);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 0 0 2px rgba(241, 201, 109, 0.16),
    inset 0 0 18px rgba(255, 248, 237, 0.28);
}

.photo-import-button,
.photo-import-tool {
  position: relative;
}

.round-tool:disabled,
.shutter-button:disabled,
.remix-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wedding-app.is-importing-photo .photo-import-button,
.wedding-app.is-importing-photo .photo-import-tool {
  opacity: 0.72;
  pointer-events: none;
}

.wedding-app.is-importing-photo .photo-import-tool svg {
  animation: import-pulse 760ms ease-in-out infinite alternate;
}

.wedding-app.is-capturing-still .shutter-button {
  opacity: 0.9;
  animation: shutter-hold 760ms ease-in-out infinite alternate;
}

.wedding-app.is-capturing-still .camera-stage:not(.is-captured)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18) 38%, transparent 68%),
    rgba(255, 255, 255, 0.28);
  animation: stage-shutter-flash 760ms ease-out both;
}

.new-photo-button {
  min-height: 52px;
  padding: 0 14px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.new-photo-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.upload-tool {
  color: #201607;
  background: var(--gold);
  border-color: rgba(255, 255, 255, 0.32);
}

.upload-tool__label {
  display: none;
}

.wedding-app.is-edit-mode .upload-tool {
  width: 100%;
  min-width: 0;
  height: 52px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.wedding-app.is-edit-mode .upload-tool svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.wedding-app.is-edit-mode .upload-tool__label {
  display: inline;
}

.dock-switch-camera {
  display: none;
}

.shutter-button {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 7px solid var(--gold);
  background: radial-gradient(circle at center, #ffffff 0 56%, #f5f1ea 57% 100%);
  box-shadow:
    inset 0 0 0 5px rgba(16, 20, 25, 0.18),
    0 15px 30px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

@keyframes shutter-hold {
  from {
    box-shadow:
      inset 0 0 0 5px rgba(16, 20, 25, 0.18),
      0 15px 30px rgba(0, 0, 0, 0.28);
  }

  to {
    box-shadow:
      inset 0 0 0 9px rgba(16, 20, 25, 0.2),
      0 0 0 7px rgba(241, 201, 109, 0.2),
      0 15px 30px rgba(0, 0, 0, 0.28);
  }
}

@keyframes stage-shutter-flash {
  0% {
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes import-pulse {
  from {
    opacity: 0.68;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.send-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.send-detail-fields {
  display: grid;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.field-row span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.field-row input {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: #191f23;
  padding: 0 12px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
}

.field-row input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.send-status {
  min-height: 18px;
  margin: 0;
  padding-left: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}

.send-panel[data-state="ready"] .send-status {
  color: rgba(190, 235, 214, 0.9);
}

.send-panel[data-state="busy"] .send-status {
  color: rgba(241, 201, 109, 0.95);
}

.send-panel[data-state="queued"] .send-status {
  color: rgba(241, 201, 109, 0.95);
}

.send-panel[data-state="error"] .send-status {
  color: #ffd2da;
}

.send-panel[data-state="success"] {
  border-color: rgba(190, 235, 214, 0.36);
  background:
    linear-gradient(135deg, rgba(190, 235, 214, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.08);
}

.send-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding-left: 0;
}

.send-actions[data-state="done"] {
  grid-template-columns: minmax(0, 1fr);
}

.send-now-button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.pending-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(241, 201, 109, 0.24);
  background:
    linear-gradient(135deg, rgba(241, 201, 109, 0.1), transparent 52%),
    rgba(255, 255, 255, 0.07);
}

.pending-panel[hidden] {
  display: none;
}

.pending-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pending-panel span,
.pending-panel small {
  min-width: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
}

.pending-panel small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  font-weight: 700;
}

.pending-panel small[hidden] {
  display: none;
}

.pending-panel[data-state="sending"] {
  border-color: rgba(190, 235, 214, 0.32);
  background:
    linear-gradient(135deg, rgba(190, 235, 214, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.07);
}

.pending-panel[data-state="waiting"] .queue-button,
.pending-panel[data-state="error"] .queue-button {
  border-color: rgba(241, 201, 109, 0.62);
  background: var(--gold);
  color: #17130f;
}

.pending-panel[data-state="blocked"] {
  border-color: rgba(255, 210, 218, 0.34);
}

.pending-panel[data-state="error"] {
  border-color: rgba(255, 210, 218, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 210, 218, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.07);
}

.pending-panel[data-state="error"] small {
  color: #ffd2da;
}

.queue-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.remix-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "status status"
    "styles action";
  align-items: center;
  gap: 10px;
}

.ai-status {
  grid-area: status;
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: 10px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

.ai-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.ai-status strong {
  min-width: 0;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 880;
  line-height: 1.1;
}

.ai-status small {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-status[data-state="ready"] .ai-status-dot {
  background: #b9efd5;
  box-shadow: 0 0 0 4px rgba(185, 239, 213, 0.14);
}

.ai-status[data-state="checking"] .ai-status-dot {
  background: #69c6d6;
  box-shadow: 0 0 0 4px rgba(105, 198, 214, 0.14);
}

.ai-status[data-state="offline"] .ai-status-dot,
.ai-status[data-state="warning"] .ai-status-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(241, 201, 109, 0.14);
}

.style-picker {
  grid-area: styles;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  padding: 0 0 3px;
}

.style-option {
  flex: 0 0 auto;
  min-width: 118px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(105, 198, 214, 0.22), transparent 48%),
    rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.05;
  white-space: normal;
}

.style-option.is-active {
  color: #201607;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 52%),
    var(--gold);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 2px rgba(241, 201, 109, 0.18);
}

.remix-button {
  grid-area: action;
  align-self: stretch;
  min-height: 44px;
  white-space: normal;
}

.remix-restore-button {
  grid-column: 1 / -1;
  min-height: 40px;
  justify-content: center;
  white-space: normal;
}

.remix-restore-button[hidden] {
  display: none !important;
}

.sticker-editor {
  display: grid;
  grid-template-columns: 42px 42px minmax(0, 1fr) 42px 42px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sticker-editor[hidden] {
  display: none;
}

.sticker-editor label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
}

.frame-caption-control {
  grid-column: 1 / -1;
  grid-template-columns: 68px minmax(0, 1fr) !important;
  min-height: 40px;
}

.frame-caption-control[hidden] {
  display: none !important;
}

.frame-caption-control input[type="text"] {
  min-width: 0;
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.94);
  color: #191f23;
  padding: 0 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 760;
}

.frame-caption-control input[type="text"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.sticker-editor input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.mini-tool {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mini-tool:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.danger-tool {
  color: #ffd9df;
  background: rgba(201, 79, 107, 0.24);
}

.sticker-button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 82px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
}

.sticker-button img {
  display: block;
  max-width: 72px;
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.memory-strip {
  min-height: calc(100dvh - 36px);
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 24px 18px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.96), rgba(246, 234, 216, 0.92)),
    var(--paper);
  color: #261d19;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.memory-strip img {
  width: 100%;
  max-width: 260px;
  justify-self: center;
  transform: rotate(-4deg);
  filter: drop-shadow(0 18px 28px rgba(61, 35, 24, 0.24));
}

.memory-strip span {
  justify-self: center;
  max-width: 14rem;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.04;
}

@media (min-width: 981px) {
  .control-dock {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
    grid-template-areas:
      "readiness readiness"
      "filters stickerCategories"
      "actions stickers"
      "send stickers"
      "pending stickers"
      "remix editor";
    align-items: center;
  }

  .readiness-chip {
    grid-area: readiness;
  }

  .filter-strip {
    grid-area: filters;
  }

  .capture-row {
    grid-area: actions;
  }

  .send-panel {
    grid-area: send;
  }

  .pending-panel {
    grid-area: pending;
  }

  .remix-panel {
    grid-area: remix;
  }

  .sticker-category-strip {
    grid-area: stickerCategories;
  }

  .sticker-editor {
    grid-area: editor;
  }

  .sticker-tray {
    grid-area: stickers;
    flex-wrap: wrap;
    align-content: start;
    max-height: 176px;
    overflow-y: auto;
    padding-right: 4px;
  }

  .wedding-app.is-camera-mode .control-dock {
    grid-template-columns: minmax(0, 344px);
    grid-template-areas: "actions";
    justify-content: center;
  }

  .wedding-app.is-camera-mode .install-panel {
    grid-area: install;
  }

  .wedding-app.is-camera-mode .link-panel {
    grid-area: link;
  }

  .wedding-app.is-camera-mode .guest-badge {
    grid-area: guest;
  }

  .wedding-app.is-camera-mode .readiness-chip {
    grid-area: readiness;
  }

  .wedding-app.is-camera-mode .pending-panel {
    grid-area: pending;
  }

  .wedding-app.is-camera-mode .capture-row {
    grid-area: actions;
  }

  .wedding-app.is-edit-mode {
    --desktop-bottom-safe: max(12px, env(safe-area-inset-bottom));
    --desktop-nav-height: 58px;
    --desktop-sheet-bottom: calc(var(--desktop-nav-height) + var(--desktop-bottom-safe) + 8px);
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding: 0;
  }

  .wedding-app.is-edit-mode .camera-shell {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    justify-self: center;
  }

  .wedding-app.is-edit-mode .camera-stage,
  .wedding-app.is-edit-mode .camera-stage.is-captured {
    aspect-ratio: auto;
    width: 100%;
    height: 100dvh;
    max-width: none;
  }

  .wedding-app.is-edit-mode .camera-stage.is-captured::before {
    opacity: 1;
  }

  .wedding-app.is-edit-mode .memory-strip,
  .wedding-app.is-edit-mode .install-panel,
  .wedding-app.is-edit-mode .link-panel,
  .wedding-app.is-edit-mode .guest-badge,
  .wedding-app.is-edit-mode .readiness-chip {
    display: none;
  }

  .wedding-app.is-edit-mode .control-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    width: auto;
    height: calc(var(--desktop-nav-height) + var(--desktop-bottom-safe));
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(178px, 224px) minmax(300px, 460px);
    grid-template-areas: "actions tabs";
    justify-content: center;
    align-content: end;
    align-items: end;
    gap: 10px;
    padding: 8px 18px var(--desktop-bottom-safe);
    background:
      linear-gradient(0deg, rgba(8, 10, 13, 0.9), rgba(8, 10, 13, 0.66) 72%, transparent);
    border-top: 0;
    pointer-events: none;
  }

  .wedding-app.is-edit-mode .control-dock > * {
    pointer-events: auto;
  }

  .wedding-app.is-edit-mode .capture-row {
    grid-area: actions;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 8px;
    padding: 0;
  }

  .wedding-app.is-edit-mode .capture-row .round-tool:not(#upload-button),
  .wedding-app.is-edit-mode .capture-row #shutter-button {
    display: none;
  }

  .wedding-app.is-edit-mode .new-photo-button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    padding: 0 12px;
  }

  .wedding-app.is-edit-mode .upload-tool {
    min-height: 46px;
    height: 46px;
  }

  .wedding-app.is-edit-mode .edit-tabs {
    grid-area: tabs;
    width: 100%;
    max-width: 520px;
  }

  .wedding-app.is-edit-mode .filter-strip,
  .wedding-app.is-edit-mode .send-panel,
  .wedding-app.is-edit-mode .remix-panel,
  .wedding-app.is-edit-mode .sticker-category-strip,
  .wedding-app.is-edit-mode .sticker-editor,
  .wedding-app.is-edit-mode .sticker-tray,
  .wedding-app.is-edit-mode .pending-panel {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: var(--desktop-sheet-bottom);
    z-index: 31;
    transform: translateX(-50%);
    width: min(calc(100vw - 48px), 640px);
    max-height: min(18dvh, 160px);
    overflow-y: auto;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
  }

  .wedding-app.is-edit-mode .send-panel {
    max-height: min(16dvh, 142px);
  }

  .wedding-app.is-edit-mode .filter-strip,
  .wedding-app.is-edit-mode .sticker-tray {
    max-height: 68px;
    overflow-y: hidden;
  }

  .wedding-app.is-edit-mode .sticker-category-strip {
    bottom: calc(var(--desktop-sheet-bottom) + 76px);
    max-height: 36px;
    overflow-y: hidden;
  }

  .wedding-app.is-edit-mode .sticker-editor {
    bottom: calc(var(--desktop-sheet-bottom) + 118px);
    max-height: 50px;
  }

  .wedding-app.is-edit-mode .status-toast {
    bottom: calc(var(--desktop-sheet-bottom) + 2px);
  }

  .wedding-app.is-edit-mode:not([data-edit-panel="none"]) .status-toast {
    bottom: calc(var(--desktop-sheet-bottom) + 176px);
  }

  .wedding-app.is-edit-mode[data-edit-panel="stickers"]:has(.frame-caption-control:not([hidden])) .status-toast {
    bottom: calc(var(--desktop-sheet-bottom) + 276px);
  }

}

@media (max-width: 980px) {
  body {
    overflow: hidden;
  }

  .wedding-app {
    --mobile-bottom-safe: max(10px, env(safe-area-inset-bottom));
    --mobile-nav-height: 50px;
    --mobile-sheet-bottom: calc(var(--mobile-nav-height) + var(--mobile-bottom-safe) + 4px);
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .camera-shell {
    position: relative;
    display: block;
    min-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    overflow: hidden;
  }

  .camera-stage {
    width: 100%;
    height: 100dvh;
    min-height: 0;
  }

  .camera-stage.is-captured::before {
    opacity: 1;
  }

  .camera-stage.is-captured {
    aspect-ratio: auto;
    height: 100%;
    width: 100%;
    max-width: none;
  }

  .control-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr;
    align-content: end;
    justify-items: center;
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding: 0 10px var(--mobile-bottom-safe);
    background:
      linear-gradient(0deg, rgba(8, 10, 13, 0.86), rgba(8, 10, 13, 0.62) 70%, transparent);
    border-top: 0;
    pointer-events: none;
  }

  .control-dock > * {
    pointer-events: auto;
  }

  .wedding-app.is-edit-mode .stage-topbar {
    display: none;
  }

  .wedding-app.is-camera-mode .stage-topbar {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    top: max(8px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
  }

  .wedding-app.is-camera-mode .stage-topbar #start-camera,
  .wedding-app.is-camera-mode .stage-topbar #switch-camera {
    display: none;
  }

  .wedding-app.is-camera-mode .couple-mark {
    grid-column: 1;
    max-width: min(62vw, 190px);
    padding: 5px 10px 7px;
  }

  .wedding-app.is-camera-mode .install-panel,
  .wedding-app.is-camera-mode .link-panel,
  .wedding-app.is-camera-mode .guest-badge {
    display: none;
  }

  .wedding-app.is-camera-mode .readiness-chip {
    position: fixed;
    top: max(10px, calc(env(safe-area-inset-top) + 8px));
    left: 12px;
    right: 12px;
    z-index: 31;
    width: min(calc(100vw - 24px), 430px);
    margin: 0 auto;
  }

  .wedding-app.is-camera-mode .pending-panel {
    position: fixed;
    top: max(68px, calc(env(safe-area-inset-top) + 66px));
    left: 12px;
    right: 12px;
    z-index: 31;
    width: min(calc(100vw - 24px), 430px);
    margin: 0 auto;
  }

  .wedding-app.is-camera-mode .capture-row {
    width: min(calc(100vw - 20px), 374px);
    grid-template-columns: 48px 48px 72px 48px 48px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(8, 10, 13, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  }

  .wedding-app.is-camera-mode .dock-switch-camera {
    display: grid;
    place-items: center;
  }

  .wedding-app.is-camera-mode .round-tool {
    width: 48px;
    height: 48px;
  }

  .wedding-app.is-camera-mode .shutter-button {
    width: 72px;
    height: 72px;
    border-width: 5px;
  }

  .wedding-app.is-edit-mode .control-dock {
    grid-template-columns: minmax(118px, 136px) minmax(0, 1fr);
    align-items: end;
    max-height: none;
    overflow: visible;
    gap: 6px;
    height: calc(var(--mobile-nav-height) + var(--mobile-bottom-safe));
    min-height: 0;
    padding: 5px 8px var(--mobile-bottom-safe);
    background: linear-gradient(0deg, rgba(8, 10, 13, 0.9), rgba(8, 10, 13, 0.72) 72%, transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.32);
  }

  .wedding-app.is-edit-mode .readiness-chip {
    display: none;
  }

  .wedding-app.is-edit-mode .capture-row {
    grid-column: 1;
    order: 10;
    position: static;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    border-radius: 999px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    box-shadow: none;
  }

  .wedding-app.is-edit-mode .capture-row .round-tool:not(#upload-button),
  .wedding-app.is-edit-mode .capture-row #shutter-button {
    display: none;
  }

  .wedding-app.is-edit-mode .new-photo-button {
    width: 100%;
    min-height: 42px;
    padding: 0;
    border-radius: 999px;
    font-size: 0.68rem;
  }

  .wedding-app.is-edit-mode .new-photo-button span {
    display: none;
  }

  .wedding-app.is-edit-mode .new-photo-button::after {
    content: "New";
  }

  .wedding-app.is-edit-mode .upload-tool {
    height: 42px;
    min-height: 42px;
    padding: 0 6px;
    font-size: 0.68rem;
  }

  .wedding-app.is-edit-mode .upload-tool svg {
    display: none;
  }

  .wedding-app.is-edit-mode .edit-tabs {
    grid-column: 2;
    order: 10;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    box-shadow: none;
  }

  .wedding-app.is-edit-mode .edit-tab {
    min-height: 42px;
    grid-template-rows: 17px auto;
    padding: 5px 3px 4px;
    font-size: 0.62rem;
    border-radius: 999px;
  }

  .wedding-app.is-edit-mode .edit-tab__label {
    max-width: 9ch;
  }

  .wedding-app.is-edit-mode.is-delivered-mode .edit-tabs {
    display: none;
  }

  .wedding-app.is-edit-mode .filter-strip,
  .wedding-app.is-edit-mode .send-panel,
  .wedding-app.is-edit-mode .remix-panel,
  .wedding-app.is-edit-mode .sticker-category-strip,
  .wedding-app.is-edit-mode .sticker-editor {
    grid-column: 1 / -1;
    order: 3;
  }

  .wedding-app.is-edit-mode .sticker-editor {
    grid-column: 1 / -1;
    order: 4;
  }

  .wedding-app.is-edit-mode .sticker-tray {
    grid-column: 1 / -1;
    order: 5;
  }

  .wedding-app.is-edit-mode .pending-panel {
    grid-column: 1 / -1;
    order: 6;
  }

  .wedding-app.is-edit-mode .filter-strip,
  .wedding-app.is-edit-mode .send-panel,
  .wedding-app.is-edit-mode .remix-panel,
  .wedding-app.is-edit-mode .sticker-category-strip,
  .wedding-app.is-edit-mode .sticker-tray {
    display: none;
  }

  .wedding-app.is-edit-mode .filter-strip,
  .wedding-app.is-edit-mode .send-panel,
  .wedding-app.is-edit-mode .remix-panel,
  .wedding-app.is-edit-mode .sticker-category-strip,
  .wedding-app.is-edit-mode .sticker-editor,
  .wedding-app.is-edit-mode .sticker-tray,
  .wedding-app.is-edit-mode .pending-panel {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: var(--mobile-sheet-bottom);
    z-index: 31;
    transform: translateX(-50%);
    width: min(calc(100vw - 16px), 430px);
    max-height: min(16dvh, 136px);
    overflow-y: auto;
    pointer-events: auto;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
  }

  .wedding-app.is-edit-mode .send-panel,
  .wedding-app.is-edit-mode .remix-panel {
    max-height: min(18dvh, 150px);
  }

  .wedding-app.is-edit-mode .send-panel {
    background:
      linear-gradient(135deg, rgba(241, 201, 109, 0.08), transparent 48%),
      rgba(15, 17, 21, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .wedding-app.is-edit-mode .send-panel {
    gap: 6px;
    max-height: min(15dvh, 126px);
  }

  .wedding-app.is-edit-mode .filter-strip {
    max-height: 58px;
  }

  .wedding-app.is-edit-mode .filter-strip,
  .wedding-app.is-edit-mode .sticker-category-strip,
  .wedding-app.is-edit-mode .sticker-tray {
    overflow-y: hidden;
  }

  .wedding-app.is-edit-mode .sticker-tray {
    bottom: var(--mobile-sheet-bottom);
    max-height: 58px;
  }

  .wedding-app.is-edit-mode .sticker-category-strip {
    bottom: calc(var(--mobile-sheet-bottom) + 64px);
    max-height: 32px;
  }

  .wedding-app.is-edit-mode .sticker-editor {
    bottom: calc(var(--mobile-sheet-bottom) + 102px);
    min-height: 42px;
  }

  .wedding-app.is-edit-mode .send-panel .send-actions {
    position: sticky;
    bottom: -4px;
    z-index: 4;
    padding: 6px 0 0;
    margin: 0;
    background: linear-gradient(180deg, transparent, rgba(18, 20, 24, 0.92) 42%);
  }

  .wedding-app.is-edit-mode .status-toast {
    bottom: calc(var(--mobile-sheet-bottom) + 2px);
  }

  .wedding-app.is-edit-mode[data-edit-panel="look"] .status-toast,
  .wedding-app.is-edit-mode[data-edit-panel="fx"] .status-toast {
    bottom: calc(var(--mobile-sheet-bottom) + 66px);
  }

  .wedding-app.is-edit-mode[data-edit-panel="ai"] .status-toast,
  .wedding-app.is-edit-mode[data-edit-panel="send"] .status-toast {
    bottom: calc(var(--mobile-sheet-bottom) + 158px);
  }

  .wedding-app.is-edit-mode[data-edit-panel="stickers"] .status-toast {
    bottom: calc(var(--mobile-sheet-bottom) + 112px);
  }

  .wedding-app.is-edit-mode[data-edit-panel="stickers"]:has(.sticker-editor:not([hidden])) .status-toast {
    bottom: calc(var(--mobile-sheet-bottom) + 210px);
  }

  .wedding-app.is-edit-mode[data-edit-panel="stickers"]:has(.frame-caption-control:not([hidden])) .status-toast {
    bottom: calc(var(--mobile-sheet-bottom) + 252px);
  }

  .wedding-app.is-edit-mode[data-edit-panel="look"] .filter-strip,
  .wedding-app.is-edit-mode[data-edit-panel="fx"] .filter-strip {
    display: flex;
  }

  .wedding-app.is-edit-mode.is-delivered-mode[data-edit-panel="look"] .filter-strip,
  .wedding-app.is-edit-mode.is-delivered-mode[data-edit-panel="fx"] .filter-strip {
    display: none;
  }

  .wedding-app.is-edit-mode[data-edit-panel="send"] .send-panel {
    display: grid;
  }

  .wedding-app.is-edit-mode[data-edit-panel="ai"] .remix-panel {
    display: grid;
  }

  .wedding-app.is-edit-mode.is-delivered-mode[data-edit-panel="ai"] .remix-panel {
    display: none;
  }

  .wedding-app.is-edit-mode[data-edit-panel="stickers"] .sticker-category-strip {
    display: flex;
  }

  .wedding-app.is-edit-mode[data-edit-panel="stickers"] .sticker-tray {
    display: flex;
  }

  .wedding-app.is-edit-mode.is-delivered-mode[data-edit-panel="stickers"] .sticker-category-strip,
  .wedding-app.is-edit-mode.is-delivered-mode[data-edit-panel="stickers"] .sticker-tray {
    display: none;
  }

  .wedding-app.is-edit-mode:not([data-edit-panel="stickers"]) .sticker-editor {
    display: none;
  }

  .memory-strip {
    display: none;
  }
}

@media (max-width: 520px) {
  .stage-topbar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    left: 10px;
    right: 10px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .couple-mark {
    max-width: 150px;
    padding: 5px 9px 7px;
  }

  .couple-mark strong {
    font-size: 1.04rem;
  }

  .couple-mark span {
    font-size: 0.66rem;
  }

  .camera-empty:has(+ .guest-sheet:not([hidden])) {
    align-content: start;
    gap: 10px;
    padding-top: max(38px, calc(env(safe-area-inset-top) + 28px));
  }

  .camera-empty:has(+ .guest-sheet:not([hidden])) img {
    width: min(38vw, 132px);
  }

  .camera-empty:has(+ .guest-sheet:not([hidden])) strong {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .camera-empty:has(+ .guest-sheet:not([hidden])) .empty-actions {
    display: none;
  }

  .capture-row {
    grid-template-columns: 48px 48px 78px 48px 48px;
    gap: 8px;
  }

  .readiness-chip {
    grid-template-columns: 10px minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 7px;
  }

  .readiness-chip strong {
    font-size: 0.76rem;
  }

  .readiness-chip small {
    font-size: 0.68rem;
  }

  .wedding-app.is-camera-mode .install-panel {
    order: 1;
  }

  .wedding-app.is-camera-mode .guest-badge {
    order: 3;
  }

  .wedding-app.is-camera-mode .readiness-chip {
    order: 4;
  }

  .wedding-app.is-camera-mode .pending-panel {
    order: 5;
  }

  .wedding-app.is-camera-mode .capture-row {
    order: 6;
    width: min(calc(100vw - 18px), 354px);
    grid-template-columns: 46px 46px 68px 46px 46px;
    gap: 8px;
    padding: 6px 8px;
  }

  .wedding-app.is-camera-mode.has-camera-unavailable .capture-row {
    width: auto;
    grid-template-columns: 46px 46px;
    gap: 9px;
    padding: 6px;
  }

  .wedding-app.is-camera-mode .round-tool {
    width: 46px;
    height: 46px;
  }

  .wedding-app.is-camera-mode .shutter-button {
    width: 68px;
    height: 68px;
    border-width: 5px;
  }

  .wedding-app.is-camera-mode .utility-sheet {
    bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .wedding-app.is-camera-mode.is-camera-filter-open .utility-sheet {
    bottom: calc(152px + env(safe-area-inset-bottom));
  }

  .wedding-app.is-camera-mode .link-panel {
    order: 2;
  }

  .wedding-app.is-edit-mode .capture-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wedding-app.is-edit-mode .new-photo-button {
    min-height: 42px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .wedding-app.is-edit-mode .upload-tool {
    min-height: 42px;
    height: 42px;
    font-size: 0.74rem;
  }

  .round-tool {
    width: 48px;
    height: 48px;
  }

  .new-photo-button {
    min-height: 48px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .new-photo-button svg {
    width: 19px;
    height: 19px;
  }

  .shutter-button {
    width: 78px;
    height: 78px;
  }

  .remix-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "status"
      "styles"
      "action";
  }

  .wedding-app.is-edit-mode .remix-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    max-height: min(22dvh, 164px);
    overflow-y: hidden;
  }

  .wedding-app.is-edit-mode .remix-panel:has(.remix-restore-button:not([hidden])) {
    max-height: min(28dvh, 206px);
    overflow-y: auto;
  }

  .ai-status {
    grid-template-columns: 10px minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 7px;
  }

  .wedding-app.is-edit-mode .remix-panel .style-picker {
    padding-bottom: 0;
  }

  .wedding-app.is-edit-mode .remix-panel .style-option {
    min-height: 40px;
  }

  .wedding-app.is-edit-mode .remix-panel .remix-button {
    min-height: 38px;
  }

  .wedding-app.is-edit-mode .remix-panel .remix-restore-button {
    min-height: 36px;
  }

  .sticker-editor {
    grid-template-columns: 38px minmax(0, 1fr) 38px 38px;
    gap: 8px;
  }

  .field-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .send-now-button {
    min-height: 40px;
    padding: 0 10px;
  }

  .mini-tool {
    width: 38px;
    height: 38px;
  }

  .filter-button {
    min-width: 82px;
  }

  .sticker-button {
    width: 72px;
    height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

.wedding-app.is-edit-mode .sticker-editor:has(.frame-caption-control:not([hidden])) {
  max-height: 148px;
  overflow-y: visible;
}

.wedding-app .send-detail-fields {
  display: grid !important;
}

.wedding-app .send-status,
.wedding-app .send-actions {
  padding-left: 0 !important;
}

.wedding-app .send-actions {
  grid-template-columns: minmax(0, 1fr) !important;
}

.wedding-app.is-saving-photo .control-dock,
.wedding-app.is-save-finishing .control-dock {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}

.wedding-app.is-saving-photo .control-dock > *,
.wedding-app.is-save-finishing .control-dock > * {
  display: none !important;
}

.wedding-app.is-saving-photo .sticker-object.is-selected .photo-sticker,
.wedding-app.is-save-finishing .sticker-object.is-selected .photo-sticker {
  outline: 0 !important;
}

.wedding-app.is-saving-photo .sticker-handle,
.wedding-app.is-save-finishing .sticker-handle {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.wedding-app.is-saving-photo .status-toast,
.wedding-app.is-save-finishing .status-toast {
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
}
