@import url("https://fonts.googleapis.com/css2?family=Gamja+Flower&family=Gowun+Dodum&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --paper: #fbfaf8;
  --pink: #f5e7e4;
  --rose: #de917d;
  --rose-deep: #cb7862;
  --accent: #de917d;
  --accent-soft: #f7e8e3;
  --ink: #141923;
  --button-label: #5b5552;
  --muted: #939193;
  --line: #ead9d4;
  --card: #ffffff;
  --field: #ffffff;
  --field-muted: #f8f5f4;
  --control-border: #eadedb;
  --focus-ring: rgba(222, 145, 125, .2);
  --shadow: 0 14px 34px rgba(48, 39, 34, 0.12);
  --control-shadow: 0 10px 24px rgba(48, 39, 34, 0.08);
  --action-shadow: 0 8px 16px rgba(48, 39, 34, 0.065);
  --control-height: 62px;
  --section-y: 108px;
  --section-x: 40px;
  --body-font: "Gowun Dodum", "Apple SD Gothic Neo", "Pretendard", system-ui, sans-serif;
  --hand-font: "Gamja Flower", "Apple SD Gothic Neo", cursive;
  --ui-font: "Pretendard", "Apple SD Gothic Neo", system-ui, sans-serif;
  --ui-weight: 500;
  --admin-font: "Pretendard", "Apple SD Gothic Neo", system-ui, sans-serif;

  /* Admin System: shadcn/ui-inspired semantic tokens */
  --admin-background: #ffffff;
  --admin-foreground: #09090b;
  --admin-card: #ffffff;
  --admin-card-foreground: #09090b;
  --admin-popover: #ffffff;
  --admin-popover-foreground: #09090b;
  --admin-primary: #18181b;
  --admin-primary-foreground: #fafafa;
  --admin-secondary: #f4f4f5;
  --admin-secondary-foreground: #18181b;
  --admin-muted-bg: #f4f4f5;
  --admin-muted-foreground: #71717a;
  --admin-accent-bg: #f4f4f5;
  --admin-accent-foreground: #18181b;
  --admin-destructive: #dc2626;
  --admin-destructive-foreground: #fef2f2;
  --admin-border: #e4e4e7;
  --admin-input: #d4d4d8;
  --admin-ring: #a1a1aa;
  --admin-bg: #ffffff;
  --admin-surface: var(--admin-card);
  --admin-surface-muted: var(--admin-muted-bg);
  --admin-surface-tint: #fafafa;
  --admin-control-border: var(--admin-input);
  --admin-text: var(--admin-foreground);
  --admin-muted: var(--admin-muted-foreground);
  --admin-label: #3f3f46;
  --admin-accent: var(--admin-primary);
  --admin-accent-strong: var(--admin-primary);
  --admin-accent-soft: var(--admin-accent-bg);
  --admin-danger: var(--admin-destructive);
  --admin-danger-soft: #fef2f2;
  --admin-success: #16a34a;
  --admin-success-soft: #f0fdf4;
  --admin-success-border: #bbf7d0;
  --admin-focus-ring: rgba(161, 161, 170, .28);
  --admin-radius-xs: 6px;
  --admin-radius-sm: 8px;
  --admin-radius-md: 8px;
  --admin-radius-lg: 8px;
  --admin-radius-pill: 999px;
  --admin-space-1: 6px;
  --admin-space-2: 8px;
  --admin-space-3: 10px;
  --admin-space-4: 12px;
  --admin-space-5: 14px;
  --admin-space-6: 16px;
  --admin-space-7: 18px;
  --admin-space-8: 22px;
  --admin-space-9: 26px;
  --admin-control-h: 40px;
  --admin-control-h-sm: 36px;
  --admin-shadow-action: 0 1px 2px rgba(24, 24, 27, .06);
  --admin-shadow-sticky: 0 8px 20px rgba(24, 24, 27, .10);
  --admin-weight-label: 500;
  --admin-weight-action: 600;
  --admin-weight-title: 700;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  background: var(--admin-bg);
}

button,
input,
textarea,
select {
  font: inherit;
  font-family: var(--ui-font);
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

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

.shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 20px 80px rgba(34, 26, 23, .16);
  overflow-x: clip;
}

.maintenance-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(226, 143, 119, .13), transparent 32%),
    var(--paper);
  box-shadow: 0 20px 80px rgba(34, 26, 23, .16);
}

.maintenance-screen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(40px, env(safe-area-inset-top)) 28px max(40px, env(safe-area-inset-bottom));
  text-align: center;
}

.maintenance-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  color: var(--rose);
}

.maintenance-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.maintenance-screen h1 {
  margin: 0;
  font-family: var(--hand-font);
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.maintenance-screen p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.maintenance-reload {
  min-width: 128px;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  box-shadow: var(--action-shadow);
  font-size: 15px;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.maintenance-reload:hover {
  border-color: var(--rose);
  background: #fff;
}

.maintenance-reload:active {
  transform: translateY(1px);
}

.admin-shell {
  --admin-sticky-bleed: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 56px;
  color: var(--admin-foreground);
  font-family: var(--admin-font);
  line-height: 1.5;
}

.admin-shell button,
.admin-shell input,
.admin-shell textarea,
.admin-shell select {
  font-family: inherit;
}

.admin-shell h1,
.admin-shell h2,
.admin-shell h3,
.admin-shell h4 {
  font-family: var(--admin-font);
}

.admin-shell button:disabled,
.admin-shell input:disabled,
.admin-shell textarea:disabled,
.admin-shell select:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.admin-shell a:focus-visible,
.admin-shell button:focus-visible,
.admin-shell input:focus-visible,
.admin-shell textarea:focus-visible,
.admin-shell select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--admin-focus-ring);
}

.component-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 24px auto 60px;
  background: transparent;
  box-shadow: none;
}

.component-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  margin-bottom: 28px;
  background: transparent;
  box-shadow: none;
}

.component-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
}

.component-header .btn {
  min-width: 0;
}

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

.component-panel {
  padding: var(--admin-space-9);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-md);
  background: var(--admin-surface);
  box-shadow: none;
}

.component-panel h2 {
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.component-grid,
.component-form {
  display: grid;
  gap: 14px;
}

.component-share {
  width: 100%;
  margin: 0;
}

.component-icon-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.component-static {
  position: static;
  flex: 0 0 auto;
  background: rgba(28, 28, 30, .82);
}

.gallery-controls-demo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--field-muted);
  color: var(--muted);
  transition: transform .18s ease, background .18s ease;
}

.gallery-controls-demo:active {
  transform: translateY(3px) scale(.98);
}

.gallery-controls-demo svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.component-segmented,
.component-count {
  margin-top: 0;
}

.component-account {
  color: var(--ink);
  text-align: left;
}

.component-panel .component-share {
  width: 100%;
  margin: 0;
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  color: white;
  clip-path: inset(0 0 0 0);
  transition: visibility .25s ease;
  will-change: clip-path;
}

.opening.is-closing {
  animation: openingInvitationWipe .96s cubic-bezier(.68, 0, .2, 1) forwards;
}

.opening.is-hidden {
  display: none;
}

.opening-slide {
  position: absolute;
  inset: -5vh -5vw;
  background-position: center;
  background-size: cover;
  opacity: 1;
  transform: scale(1.05);
  clip-path: inset(0 0 0 100%);
  will-change: clip-path, transform;
}

.opening-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.1) 44%, rgba(0,0,0,.66));
}

.slide-one {
  z-index: 1;
  background-image: url("/assets/doljanchi-baby-1.png");
  animation: introWipeFromRight .96s cubic-bezier(.68, 0, .2, 1) .12s forwards;
}

.slide-two {
  z-index: 2;
  background-image: url("/assets/doljanchi-baby-2.png");
  clip-path: inset(0 100% 0 0);
  transform: scale(1.08) translateX(-7%);
  animation: introWipeFromLeft .96s cubic-bezier(.68, 0, .2, 1) 1.08s forwards;
}

.slide-three {
  z-index: 3;
  background-image: url("/assets/doljanchi-baby-3.png");
  clip-path: inset(0 0 100% 0);
  transform: scale(1.08) translateY(-7%);
  animation: introWipeFromTop .96s cubic-bezier(.68, 0, .2, 1) 2.04s forwards;
}

.opening-copy {
  position: relative;
  z-index: 4;
  width: min(420px, calc(100% - 48px));
  margin-bottom: max(clamp(112px, 16vh, 138px), calc(env(safe-area-inset-bottom) + 96px));
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,.42);
  animation: introCopy 3.95s ease forwards;
}

.opening-copy span {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.opening-copy strong {
  display: block;
  font-family: var(--hand-font);
  font-size: clamp(32px, 9vw, 52px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 400;
  white-space: pre-line;
}

.skip-btn {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 6;
  min-width: 72px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 999px;
  background: rgba(0,0,0,.32);
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: transform .18s ease, background .18s ease;
}

.skip-btn:active {
  transform: translateY(3px);
}

@keyframes introWipeFromLeft {
  0% {
    clip-path: inset(0 100% 0 0);
    transform: scale(1.08) translateX(-7%);
  }

  100% {
    clip-path: inset(0 0 0 0);
    transform: scale(1.03) translateX(0);
  }
}

@keyframes introWipeFromRight {
  0% {
    clip-path: inset(0 0 0 100%);
    transform: scale(1.08) translateX(7%);
  }

  100% {
    clip-path: inset(0 0 0 0);
    transform: scale(1.03) translateX(0);
  }
}

@keyframes introWipeFromTop {
  0% {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.08) translateY(-7%);
  }

  100% {
    clip-path: inset(0 0 0 0);
    transform: scale(1.03) translateY(0);
  }
}

@keyframes openingInvitationWipe {
  0% {
    clip-path: inset(0 0 0 0);
    visibility: visible;
  }

  100% {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
}

@keyframes introCopy {
  0% { opacity: 0; transform: translateY(16px); }
  16%, 100% { opacity: 1; transform: translateY(0); }
}

.floating-party {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-party {
  z-index: 2;
}

.party-piece {
  position: absolute;
  width: var(--size, 10px);
  height: var(--size, 10px);
  left: var(--left);
  top: var(--top);
  opacity: .82;
  background: var(--color);
  border-radius: var(--radius, 2px);
  transform: rotate(var(--rotate, 0deg));
  animation: partyFloat var(--duration, 8s) ease-in-out var(--delay, 0s) infinite;
}

.party-piece::after {
  content: "";
  position: absolute;
  inset: 35% -45%;
  border-radius: 999px;
  background: inherit;
  opacity: .72;
}

.party-dot,
.party-ring {
  border-radius: 999px;
}

.party-star {
  clip-path: polygon(50% 0, 61% 33%, 96% 35%, 68% 55%, 79% 91%, 50% 70%, 21% 91%, 32% 55%, 4% 35%, 39% 33%);
}

.party-ribbon {
  width: calc(var(--size) * 1.5);
  height: calc(var(--size) * .7);
  clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%, 20% 50%);
}

.party-line {
  width: calc(var(--size) * 2.2);
  height: 3px;
  border-radius: 999px;
}

.party-plus {
  background: transparent;
}

.party-plus::before,
.party-plus::after {
  content: "";
  position: absolute;
  inset: 44% -20%;
  border-radius: 999px;
  background: var(--color);
}

.party-plus::after {
  transform: rotate(90deg);
}

.party-plus::before {
  transform: rotate(0deg);
}

.party-plus::after,
.party-plus::before {
  opacity: .92;
}

.party-plus::after {
  opacity: .92;
}

.party-diamond {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.party-ring {
  background: transparent;
  border: 2px solid var(--color);
}

.party-capsule {
  width: calc(var(--size) * 1.8);
  height: calc(var(--size) * .62);
  border-radius: 999px;
}

.party-dot::after,
.party-star::after,
.party-ribbon::after,
.party-line::after,
.party-plus::after,
.party-diamond::after,
.party-ring::after,
.party-capsule::after {
  display: none;
}

.piece-1 { --left: 9%; --top: 18%; --size: 9px; --color: #f0a59a; --rotate: 18deg; --duration: 8.2s; --delay: -.4s; }
.piece-2 { --left: 21%; --top: 31%; --size: 8px; --color: #ffe0a3; --duration: 9.8s; --delay: -1.6s; }
.piece-3 { --left: 79%; --top: 16%; --size: 13px; --color: #a6d8c7; --rotate: 48deg; --duration: 8.7s; --delay: -.9s; }
.piece-4 { --left: 88%; --top: 36%; --size: 9px; --color: #b8d7f4; --duration: 9.2s; --delay: -2.2s; }
.piece-5 { --left: 14%; --top: 62%; --size: 12px; --color: #e7c7f1; --rotate: -24deg; --duration: 10.4s; --delay: -1.1s; }
.piece-6 { --left: 72%; --top: 66%; --size: 10px; --color: #f7c1ae; --rotate: 72deg; --duration: 9.4s; --delay: -.3s; }
.piece-7 { --left: 45%; --top: 19%; --size: 8px; --color: #f5d36d; --duration: 8.5s; --delay: -2.8s; }
.piece-8 { --left: 58%; --top: 42%; --size: 11px; --color: #ef8f98; --rotate: 30deg; --duration: 10s; --delay: -1.9s; }
.piece-9 { --left: 33%; --top: 75%; --size: 8px; --color: #d9eedf; --duration: 9.2s; --delay: -.8s; }
.piece-10 { --left: 91%; --top: 77%; --size: 12px; --color: #fff1cf; --rotate: -42deg; --duration: 10.8s; --delay: -3.1s; }
.piece-11 { --left: 5%; --top: 45%; --size: 8px; --color: #cbdff4; --duration: 8.9s; --delay: -2.4s; }
.piece-12 { --left: 66%; --top: 27%; --size: 7px; --color: #f6b5ad; --duration: 9.7s; --delay: -1.4s; }
.piece-13 { --left: 39%; --top: 53%; --size: 11px; --color: #ffdca6; --rotate: 64deg; --duration: 10.2s; --delay: -.6s; }
.piece-14 { --left: 83%; --top: 55%; --size: 8px; --color: #b4dfd2; --duration: 8.6s; --delay: -2.7s; }
.piece-15 { --left: 28%; --top: 13%; --size: 7px; --color: #f8c9bd; --rotate: -12deg; --duration: 9.6s; --delay: -3.3s; }
.piece-16 { --left: 53%; --top: 73%; --size: 10px; --color: #d5c1f1; --rotate: 26deg; --duration: 10.6s; --delay: -2s; }
.piece-17 { --left: 73%; --top: 10%; --size: 6px; --color: #f7e8b8; --duration: 8.4s; --delay: -1.2s; }
.piece-18 { --left: 18%; --top: 83%; --size: 9px; --color: #bddfd8; --rotate: 54deg; --duration: 9.9s; --delay: -2.5s; }

.hero-party .party-piece {
  opacity: .58;
}

.hero-party .piece-7,
.hero-party .piece-8,
.hero-party .piece-9,
.hero-party .piece-12,
.hero-party .piece-13,
.hero-party .piece-16 {
  display: none;
}

.profile-party {
  z-index: 1;
  overflow: hidden;
}

.profile-party .party-piece {
  width: calc(var(--size, 10px) * .9);
  height: calc(var(--size, 10px) * 1.35);
  top: -12%;
  border-radius: 70% 30% 72% 28%;
  clip-path: none;
  opacity: .42;
  animation: profilePetalFall var(--duration, 8s) linear var(--delay, 0s) infinite;
}

.profile-party .party-piece::before,
.profile-party .party-piece::after {
  display: none;
}

.profile-party .party-piece:nth-child(odd) {
  opacity: .36;
}

.profile-party .party-piece:nth-child(3n) {
  border-radius: 999px 999px 999px 12px;
}

@keyframes partyFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--rotate, 0deg)) scale(.94);
  }

  28% {
    transform: translate3d(12px, -18px, 0) rotate(calc(var(--rotate, 0deg) + 48deg)) scale(1.04);
  }

  58% {
    transform: translate3d(-10px, -34px, 0) rotate(calc(var(--rotate, 0deg) + 116deg)) scale(.98);
  }

  100% {
    transform: translate3d(10px, -56px, 0) rotate(calc(var(--rotate, 0deg) + 190deg)) scale(1.02);
  }
}

@keyframes profilePetalFall {
  0% {
    transform: translate3d(0, -18px, 0) rotate(var(--rotate, 0deg)) scale(.86);
  }

  35% {
    transform: translate3d(18px, 32vh, 0) rotate(calc(var(--rotate, 0deg) + 74deg)) scale(.98);
  }

  70% {
    transform: translate3d(-14px, 68vh, 0) rotate(calc(var(--rotate, 0deg) + 142deg)) scale(.9);
  }

  100% {
    transform: translate3d(12px, 110vh, 0) rotate(calc(var(--rotate, 0deg) + 220deg)) scale(.98);
  }
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  height: 100svh;
  position: sticky;
  top: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: #1f1a17;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  background: #fff;
  opacity: var(--hero-white-opacity, 0);
  pointer-events: none;
  transition: opacity .08s linear;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 21, 19, .22), rgba(28, 21, 19, .3) 46%, rgba(28, 21, 19, .48));
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: -4vh -4vw;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .8s ease-in-out, transform 6s ease-out;
}

.hero-bg.is-active {
  opacity: 1;
  transform: scale(1.02);
}

.hero-video {
  inset: 0;
  width: 100%;
  height: 100%;
  background: #d8d2cc;
  object-fit: cover;
  object-position: center;
  transform: none;
  transition: opacity .8s ease-in-out;
}

.hero-video.is-active {
  transform: none;
}

.hero-bg-one {
  background-image: url("/assets/doljanchi-baby-1.png");
}

.hero-bg-two {
  background-image: url("/assets/doljanchi-baby-2.png");
}

.hero-bg-three {
  background-image: url("/assets/doljanchi-baby-3.png");
}

.top-actions {
  position: fixed;
  z-index: 2147483000;
  top: calc(env(safe-area-inset-top) + 12px);
  right: max(12px, env(safe-area-inset-right));
  display: flex;
  gap: 8px;
  isolation: isolate;
  transform: translateZ(0);
}

body.modal-open .top-actions {
  z-index: 80;
  pointer-events: none;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 28, 30, .64);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  backdrop-filter: blur(6px);
}

.music-control.is-playing {
  background: rgba(28, 28, 30, .58);
}

.youtube-music-player,
.audio-music-player {
  position: fixed;
  width: 1px;
  height: 1px;
  right: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.dohyeok-guide {
  position: fixed;
  right: calc(max((100vw - 520px) / 2, 0px) + 8px);
  bottom: 0;
  z-index: 70;
  width: min(300px, calc(100vw - 20px));
  height: 174px;
  pointer-events: none;
  opacity: 0;
  transform: none;
  transition: opacity .24s ease;
}

.dohyeok-guide[hidden] {
  display: none;
}

.dohyeok-guide.is-visible {
  opacity: 1;
}

.dohyeok-guide-character {
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 124px;
  height: 156px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(68px);
  transition: opacity .3s ease, transform .48s cubic-bezier(.16, 1, .3, 1), bottom .48s cubic-bezier(.16, 1, .3, 1), height .48s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

.dohyeok-guide.is-visible .dohyeok-guide-character {
  opacity: 1;
  transform: translateY(0);
}

.dohyeok-guide.is-visible.is-peeking .dohyeok-guide-character {
  bottom: 0;
  height: 90px;
  transform: translateY(0);
}

.dohyeok-guide.is-peeking .dohyeok-guide-frame-stack {
  position: absolute;
  top: 0;
  right: 0;
  width: 124px;
  height: 156px;
  animation: dohyeokPeekBounce 5.2s ease-in-out infinite;
}

.dohyeok-guide.is-peeking .dohyeok-guide-bubble-wrap {
  opacity: 0;
  transform: translateY(40px);
}

.dohyeok-guide.is-visible .dohyeok-guide-character:hover,
.dohyeok-guide.is-visible .dohyeok-guide-character:focus-visible {
  transform: translateY(0);
}

.dohyeok-guide.is-visible.is-peeking .dohyeok-guide-character:hover,
.dohyeok-guide.is-visible.is-peeking .dohyeok-guide-character:focus-visible {
  transform: translateY(0);
}

@keyframes dohyeokPeekBounce {
  0%, 68%, 100% { transform: translateY(0); }
  76% { transform: translateY(-7px); }
  83% { transform: translateY(0); }
  89% { transform: translateY(-3px); }
  94% { transform: translateY(0); }
}

.dohyeok-guide-character:focus-visible {
  border-radius: 40% 40% 12px 12px;
  outline: 3px solid var(--rose-deep);
  outline-offset: 2px;
  box-shadow: none;
}

.dohyeok-guide-frame-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  filter: contrast(.9) saturate(.9) brightness(1.02) drop-shadow(0 8px 12px rgba(41, 28, 24, .18));
  pointer-events: none;
}

.dohyeok-guide-character.is-tapped .dohyeok-guide-frame-stack {
  animation: dohyeokGuideTapBounce .38s cubic-bezier(.22, 1, .36, 1);
}

@keyframes dohyeokGuideTapBounce {
  0%, 100% { transform: translateY(0); }
  44% { transform: translateY(-9px); }
}

.dohyeok-guide-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: none;
}

.dohyeok-guide-frame:not(.is-active) {
  display: none;
}

.dohyeok-guide-bubble-wrap {
  position: absolute;
  right: 118px;
  bottom: 38px;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .3s ease .12s, transform .44s cubic-bezier(.16, 1, .3, 1) .12s;
}

.dohyeok-guide.is-visible .dohyeok-guide-bubble-wrap {
  opacity: 1;
  transform: none;
}


.dohyeok-guide-bubble {
  position: relative;
  width: max-content;
  min-width: 0;
  max-width: none;
  min-height: 54px;
  padding: 13px 15px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: saturate(1.08) blur(12px);
  backdrop-filter: saturate(1.08) blur(12px);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(48, 39, 34, .16);
  font-family: var(--hand-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: nowrap;
  pointer-events: auto;
  opacity: 0;
  transform: none;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.dohyeok-guide-bubble.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.dohyeok-guide-bubble:hover {
  border-color: var(--rose);
  background: rgba(255, 250, 248, .9);
}

.dohyeok-guide-bubble:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 10px 28px rgba(48, 39, 34, .16);
}

.dohyeok-guide-close {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8c817e;
  box-shadow: none;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .24s ease .1s, transform .4s cubic-bezier(.16, 1, .3, 1) .1s;
}

.dohyeok-guide-close[hidden] {
  display: none;
}

.dohyeok-guide.is-visible .dohyeok-guide-close {
  opacity: 1;
  transform: translateY(0);
}

.dohyeok-guide .dohyeok-guide-close svg {
  width: 20px;
  height: 20px;
}

.dohyeok-guide-close:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

body.modal-open .dohyeok-guide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.music-bars {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(4, 3px);
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.music-bars i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  animation: musicBar 1.05s ease-in-out infinite;
}

.music-bars i:nth-child(2) {
  height: 16px;
  animation-delay: -.22s;
}

.music-bars i:nth-child(3) {
  height: 12px;
  animation-delay: -.42s;
}

.music-bars i:nth-child(4) {
  height: 19px;
  animation-delay: -.62s;
}

@keyframes musicBar {
  0%,
  100% {
    transform: scaleY(.55);
    opacity: .68;
  }

  50% {
    transform: scaleY(1.08);
    opacity: 1;
  }
}

.icon-btn svg,
.gallery-controls button svg,
.modal-close svg,
.modal-nav svg,
.dohyeok-guide-close svg,
.message-edit svg,
.account-copy-icon svg,
.share-btn svg,
.ghost-share-btn svg,
.hero-scroll-cue svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-edit svg {
  width: 20px;
  height: 20px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 0 28px max(162px, calc(env(safe-area-inset-bottom) + 152px));
  text-align: center;
  transform: translate3d(0, var(--hero-copy-shift, 0px), 0);
  will-change: transform;
}

.eyebrow {
  display: block;
  margin-bottom: 22px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: var(--hand-font);
  font-size: clamp(42px, 12vw, 66px);
  line-height: .92;
  letter-spacing: 0;
  font-weight: 400;
}

.hero-meta {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  color: rgba(255,255,255,.94);
  font-size: 15px;
  font-weight: 700;
}

.date-line,
.venue-line {
  margin: 0;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 86px));
  z-index: 6;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(29, 24, 22, .22);
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
}

.hero-scroll-cue svg {
  display: block;
  stroke-width: 2.4;
  transform: translateY(-3px);
  animation: scrollCueBounce 1.45s ease-in-out infinite;
}

@keyframes scrollCueBounce {
  0%,
  100% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(3px);
  }
}

section {
  position: relative;
  z-index: 2;
  padding: var(--section-y) var(--section-x);
  background: var(--paper);
}

#mainContent > section:nth-of-type(odd) {
  background: var(--card);
}

#mainContent > section:nth-of-type(even) {
  background: var(--paper);
}

#mainContent > .ending-section {
  background: var(--card);
}

.reveal-content {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .72s ease,
    transform .72s cubic-bezier(.2, .72, .18, 1);
  will-change: opacity, transform;
}

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

.date-section,
.profile-section,
.gallery-section,
.map-wrap,
.rsvp-section,
.message-section,
.account-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.tint-section {
  background: var(--pink);
}

.quiet-section {
  position: relative;
  min-height: 560px;
  display: grid;
  align-content: center;
  gap: 44px;
  margin-top: 0;
  background: #fff;
  text-align: center;
}

.quiet-section::before {
  content: "";
  position: absolute;
  left: -80px;
  right: -80px;
  top: -56px;
  height: 57px;
  pointer-events: none;
  background:
    radial-gradient(67px 57px at 67px 57px, #fff 98%, transparent 100%)
    0 0 / 134px 57px repeat-x;
}

.doodle {
  position: relative;
  width: 110px;
  height: 78px;
  margin: 0 auto;
}

.doodle::before {
  content: "1st";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(203, 120, 98, .62);
  font-family: var(--hand-font);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  transform: rotate(-8deg);
}

.intro p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 2.1;
}

.parents-line {
  display: block;
  font-size: 16px;
  line-height: 1.8;
}

.profile-section {
  position: relative;
  min-height: auto;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0;
  background: #f8eeee;
  text-align: center;
}

.profile-section > .section-title {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.baby-portrait {
  position: relative;
  z-index: 3;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: url("/assets/doljanchi-baby-1.png") center / cover;
  background-position: var(--profile-image-x, 50%) var(--profile-image-y, 50%);
  background-size: var(--profile-image-scale, 198%) auto;
}

.crown {
  position: absolute;
  right: 10px;
  top: -36px;
  width: 92px;
  height: 70px;
  background: #ffdf3f;
  clip-path: polygon(8% 34%, 36% 65%, 50% 22%, 66% 65%, 94% 28%, 88% 88%, 84% 94%, 18% 100%, 13% 94%);
  transform: rotate(12deg);
  transform-origin: 38% 88%;
  filter: drop-shadow(0 8px 10px rgba(120, 82, 25, .1));
  animation: crownWiggle 2.6s ease-in-out infinite;
}

.crown::before,
.crown::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.crown::before {
  left: 3px;
  top: 11px;
  width: 21px;
  height: 21px;
  background: #ffdf3f;
  box-shadow:
    36px -9px 0 0 #ffdf3f,
    70px -14px 0 0 #ffdf3f;
}

.crown::after {
  left: 15px;
  right: 10px;
  bottom: 8px;
  height: 15px;
  background: #ffdf3f;
  border-radius: 10px 10px 12px 12px;
  transform: rotate(-5deg);
}

@keyframes crownWiggle {
  0%,
  100% {
    transform: rotate(8deg) translateX(-2px);
  }

  50% {
    transform: rotate(17deg) translateX(4px);
  }
}

.baby-info-card {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: -92px;
  padding: 120px 0 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.baby-info-card h2,
.baby-info-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.1;
  text-align: center;
}

.baby-info-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-align: center;
}

.baby-facts {
  display: grid;
  gap: 18px;
  margin: 0;
}

.baby-facts div {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.baby-facts dt {
  color: #e58d91;
  font-size: 15px;
  font-weight: 800;
}

.baby-facts dd {
  max-width: 330px;
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  word-break: keep-all;
}

.wide-cta,
.share-btn {
  width: 100%;
  min-height: var(--control-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--rose);
  color: #fff;
  box-shadow: var(--action-shadow);
  font-family: var(--ui-font);
  font-size: 18px;
  font-weight: var(--ui-weight);
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.wide-cta span,
.share-btn span {
  display: grid;
  place-items: center;
  line-height: 1;
}

.wide-cta:active,
.share-btn:active {
  transform: translateY(5px) scale(.985);
}

.account-title {
  margin: 0 0 16px;
}

.account-section {
  background: #f2f2f0;
}

.account-list {
  width: 100%;
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.account-item {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--action-shadow);
}

.account-toggle {
  width: 100%;
  min-height: var(--control-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border: 0;
  background: #fff;
  color: #4a4746;
  box-shadow: none;
  font-family: var(--ui-font);
  font-weight: var(--ui-weight);
  text-align: left;
  transition: transform .18s ease, background .18s ease;
}

.account-toggle:active {
  transform: translateY(3px);
}

.chevron {
  width: 12px;
  height: 12px;
  display: block;
  flex: 0 0 auto;
  margin-right: 7px;
  border-right: 2px solid #969696;
  border-bottom: 2px solid #969696;
  color: #969696;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .2s ease;
}

.account-item.is-open .chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.account-body {
  display: none;
  padding: 0 24px 30px;
  background: #fff;
}

.account-item.is-open .account-body {
  display: block;
}

.account-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-number-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.account-holder {
  color: #625d5b;
  font-size: 15px;
  font-weight: 400;
}

.account-number {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--control-border);
  background: var(--field-muted);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--ui-font);
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.account-number:focus-visible {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.account-number-text {
  flex: 1;
  text-align: left;
}

.account-bank {
  color: #9c9999;
  font-size: 14px;
  font-weight: var(--ui-weight);
}

.account-number-value {
  display: block;
  font-size: 18px;
  font-weight: var(--ui-weight);
}

.account-copy-icon {
  width: 44px;
  height: 44px;
  color: #777170;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
}

.account-number:active,
.message-edit:active,
.icon-btn:active,
.gallery-controls button:active,
.photo:active {
  transform: translateY(3px) scale(.98);
}

.modal-close:active {
  transform: translateY(3px) scale(.98);
}

.modal-nav:active {
  transform: translateY(calc(-50% + 3px)) scale(.98);
}

.section-title {
  margin: 0 0 38px;
  text-align: center;
  font-family: var(--hand-font);
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 400;
}

.section-subtitle {
  margin: -20px 0 42px;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: normal;
}

.date-section {
  padding-bottom: var(--section-y);
}

.calendar-box {
  padding: 0;
}

.date-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 54px;
  text-align: center;
}

.date-card strong {
  font-family: var(--ui-font);
  font-style: normal;
  font-size: 18px;
  font-weight: var(--ui-weight);
}

.date-location {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
  font-family: var(--ui-font);
  text-align: center;
}

.date-venue {
  color: var(--ink);
  font-size: 16px;
  font-weight: var(--ui-weight);
  line-height: 1.4;
}

.date-address {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  word-break: keep-all;
}

.calendar-save-chip {
  margin-top: 2px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(226, 202, 198, .68);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: var(--ui-weight);
  box-shadow: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.calendar-save-chip:hover {
  border-color: rgba(222, 145, 125, .52);
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
}

.calendar-save-chip:active {
  transform: translateY(3px) scale(.98);
}

.calendar-save-chip svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-cal {
  width: 94%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 18px;
  margin: 0 auto;
  text-align: center;
}

.mini-cal b,
.mini-cal span {
  min-height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 17px;
  font-weight: var(--ui-weight);
}

.mini-cal b:first-child,
.mini-cal span.weekend:first-child,
.mini-cal .weekend {
  color: #ff6f73;
}

.mini-cal .mark {
  position: relative;
  width: 46px;
  height: 46px;
  margin: -4px auto;
  border-radius: 50%;
  background: #da969b;
  color: #fff;
  animation: partyPulse 1.9s ease-in-out infinite;
}

.mini-cal .mark::before,
.mini-cal .mark::after {
  content: none;
}

.mini-cal .mark::before {
  top: -6px;
  right: 5px;
}

.mini-cal .mark::after {
  left: -4px;
  bottom: 8px;
  animation-delay: .65s;
}

@keyframes partyPulse {
  0%, 100% {
    transform: scale(.96);
  }
  50% {
    transform: scale(1.08);
  }
}

.countdown {
  width: 92%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 54px auto 0;
}

.count-card {
  min-height: 104px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 14px 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.count-card strong {
  font-family: var(--ui-font);
  font-size: 24px;
  font-weight: var(--ui-weight);
}

.count-card span {
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: var(--ui-weight);
}

.dday-note {
  display: grid;
  gap: 4px;
  margin: 46px 0 0;
  font-family: var(--body-font);
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.65;
}

.dday-note-line {
  display: block;
}

.dday-note [data-countdown-note-days] {
  color: var(--rose-deep);
}

.gallery-section {
  padding-top: calc(var(--section-y) + 12px);
  padding-left: 0;
  padding-right: 0;
}

.gallery {
  position: relative;
  overflow: visible;
  padding: 0 24px;
}

.gallery-note {
  width: min(360px, calc(100% - 48px));
  margin: -24px auto 34px;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  word-break: keep-all;
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.photo {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: none;
  overflow: hidden;
}

.gallery-photo {
  display: block;
  aspect-ratio: 1 / 1;
  min-height: 0;
  cursor: pointer;
}

.gallery-track > .gallery-photo.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-photo.is-gallery-hidden {
  display: none;
}

.gallery-photo.is-gallery-revealing {
  animation: gallery-photo-reveal .48s ease both;
}

.gallery-more-layer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  min-height: 144px;
  margin-top: -104px;
  padding-top: 96px;
  background: linear-gradient(to bottom, rgba(251, 250, 248, 0), rgba(251, 250, 248, .92) 48%, var(--paper) 72%);
  pointer-events: none;
}

.gallery-more-layer[hidden],
.gallery-toggle[hidden] {
  display: none;
}

.gallery-toggle {
  min-width: 148px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--button-label);
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: var(--ui-weight);
  box-shadow: var(--action-shadow);
  cursor: pointer;
}

.gallery-more {
  pointer-events: auto;
}

.gallery-collapse {
  display: block;
  margin: 34px auto 0;
}

.gallery-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

@keyframes gallery-photo-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 34px 34px 0;
  color: var(--muted);
}

.gallery-controls button {
  width: 54px;
  height: 54px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.gallery-controls b {
  color: var(--ink);
  font-size: 18px;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(14, 12, 12, .88);
  padding: 58px 20px 70px;
}

.gallery-modal.is-hidden {
  display: none;
}

.gallery-modal img {
  max-width: min(100%, 520px);
  max-height: 78vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.36);
}

.modal-close,
.modal-nav {
  position: fixed;
  z-index: 121;
  border: 0;
  background: rgba(255,255,255,.14);
  color: white;
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}

.modal-close {
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.modal-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.modal-nav.prev {
  left: 16px;
}

.modal-nav.next {
  right: 16px;
}

.modal-count {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  color: white;
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: var(--ui-weight);
}

body.modal-open {
  overflow: hidden;
}

.location-head {
  display: grid;
  gap: 12px;
  margin-bottom: 48px;
  text-align: center;
}

.location-head strong {
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 19px;
  font-weight: var(--ui-weight);
  line-height: 1.35;
}

.location-head > span {
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.location-phone {
  width: max-content;
  max-width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
  padding: 6px 12px;
  border: 1px solid rgba(226, 202, 198, .68);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: var(--ui-weight);
  text-decoration: none;
}

.location-phone svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-wrap {
  padding-left: 0;
  padding-right: 0;
  background: var(--pink);
}

.map-wrap .section-title,
.map-wrap .location-head,
.map-wrap .kakao-map,
.map-wrap .route-list,
.map-wrap .map-action-row,
.map-wrap .map-address-copy {
  margin-left: var(--section-x);
  margin-right: var(--section-x);
}

.kakao-map {
  position: relative;
  width: auto;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .56), rgba(244, 222, 218, .48));
}

.kakao-map.is-fallback::before {
  content: "";
  position: absolute;
  inset: -18px;
  background:
    radial-gradient(circle at 52% 50%, rgba(229, 141, 145, .54) 0 8px, transparent 9px),
    linear-gradient(26deg, transparent 0 43%, rgba(255, 255, 255, .86) 44% 48%, transparent 49%),
    linear-gradient(112deg, transparent 0 34%, rgba(255, 255, 255, .72) 35% 39%, transparent 40%),
    linear-gradient(0deg, rgba(150, 173, 159, .42) 0 9px, transparent 10px),
    repeating-linear-gradient(90deg, rgba(197, 186, 177, .34) 0 1px, transparent 1px 66px),
    repeating-linear-gradient(0deg, rgba(197, 186, 177, .34) 0 1px, transparent 1px 58px),
    linear-gradient(145deg, #fbf6f2, #eaded7);
  filter: blur(2.5px) saturate(.78);
  opacity: .72;
  transform: scale(1.04);
}

.kakao-map.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(51, 41, 39, .2);
  backdrop-filter: blur(1.5px);
}

.map-fallback {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 36px var(--section-x);
  color: var(--muted);
  text-align: center;
}

.kakao-map.is-loaded .map-fallback {
  display: none;
}

.map-venue-overlay {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  pointer-events: none;
  transform: translateY(-2px);
}

.map-venue-bubble {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  padding: 11px 16px 12px;
  border: 1px solid rgba(78, 59, 55, .12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow:
    0 10px 24px rgba(79, 55, 50, .16),
    0 0 0 4px rgba(255, 255, 255, .42);
  pointer-events: none;
  white-space: nowrap;
}

.map-venue-bubble strong {
  position: relative;
  z-index: 1;
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: var(--ui-weight);
  line-height: 1.2;
}

.map-venue-pin {
  position: relative;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--rose-deep);
  box-shadow: 0 8px 18px rgba(79, 55, 50, .24);
  transform: rotate(-45deg);
}

.map-venue-pin::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

.map-pin {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--rose);
}

.map-pin svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-fallback strong {
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 22px;
  font-weight: var(--ui-weight);
}

.map-fallback small {
  margin: 0;
  font-family: var(--ui-font);
  font-weight: 400;
}

.map-fallback small {
  max-width: 280px;
  color: #8f8581;
  font-size: 14px;
  line-height: 1.55;
}

.map-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.map-action-row .btn,
.rsvp-complete-card .rsvp-edit-open {
  min-height: 54px;
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  box-shadow: var(--action-shadow);
}

.map-address-copy {
  width: calc(100% - (var(--section-x) * 2));
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid rgba(226, 202, 198, .72);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 17px;
  font-weight: var(--ui-weight);
  box-shadow: var(--action-shadow);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.map-address-copy:active {
  transform: translateY(5px) scale(.985);
  box-shadow: 0 8px 18px rgba(110, 91, 86, .1);
}

.map-address-copy svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-list {
  display: grid;
  gap: 38px;
  margin-top: 42px;
}

.route-list article {
  padding: 0;
  border-bottom: 0;
}

.route-list article + article {
  padding-top: 0;
}

.route-list h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--rose);
  font-family: var(--ui-font);
  font-size: 17px;
  font-weight: var(--ui-weight);
}

.route-list p {
  margin: 0;
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
}

.route-list svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: var(--control-height);
  display: grid;
  place-items: center;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  background: var(--field);
  color: var(--button-label);
  box-shadow: var(--action-shadow);
  font-family: var(--ui-font);
  font-size: 18px;
  font-weight: var(--ui-weight);
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.btn.primary {
  border-color: var(--rose);
  background: var(--rose);
  color: white;
}

.btn.is-loading,
.admin-ui-button.is-loading,
.admin-mini-btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: .82;
}

.btn.is-loading::before,
.admin-ui-button.is-loading::before,
.admin-mini-btn.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rsvp-submit-spin .8s linear infinite;
}

.admin-ui-button.is-loading::before,
.admin-mini-btn.is-loading::before {
  width: 13px;
  height: 13px;
}

@keyframes rsvp-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn:active {
  transform: translateY(3px);
}

.stepper {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  height: var(--control-height);
  min-height: var(--control-height);
  border: 1px solid var(--control-border);
  border-radius: 12px;
  background: var(--field);
  box-shadow: var(--action-shadow);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.stepper:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--focus-ring), var(--action-shadow);
}

.stepper input {
  height: 100%;
  border-radius: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none !important;
  padding: 0;
  font-family: var(--ui-font);
  text-align: center;
  font-size: 18px;
}

.stepper input:focus,
.stepper input:focus-visible {
  border: 0;
  outline: 0;
  box-shadow: none !important;
}

.stepper button {
  height: 100%;
  border: 0;
  background: var(--field);
  color: #b98278;
  font-family: var(--ui-font);
  font-size: 24px;
  font-weight: var(--ui-weight);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.stepper button:active {
  background: var(--field-muted);
  color: var(--rose-deep);
  transform: translateY(3px);
}

.share-section {
  padding: 0 0 var(--section-y);
}

.share-photo {
  height: 390px;
  background: url("/assets/doljanchi-baby-2.png") center / cover;
}

.share-copy {
  display: grid;
  gap: 34px;
  padding: 76px 40px;
  background: var(--rose-deep);
  color: white;
  text-align: center;
}

.share-copy p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.share-btn {
  width: calc(100% - 80px);
  margin: 32px 40px 0;
}

.share-btn.kakao {
  background: #ffe66d;
  color: var(--ink);
}

.ghost-share-btn {
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3f3a38;
  box-shadow: none;
  font-family: var(--ui-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.ghost-share-btn:hover {
  background: rgba(222, 145, 125, .08);
  color: var(--rose-deep);
}

.ghost-share-btn:active {
  transform: translateY(3px);
}

.ghost-share-btn span {
  display: inline-block;
}

.rsvp-section {
  min-height: auto;
}

.rsvp-form-shell {
  position: relative;
}

.rsvp-form-shell[hidden],
.rsvp-edit-cancel[hidden],
.rsvp-complete-card[hidden] {
  display: none;
}

.rsvp-complete-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 28px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.rsvp-complete-card:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.rsvp-complete-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--rose-deep);
  color: #fff;
  font-family: var(--ui-font);
  font-size: 24px;
  font-weight: 700;
}

.rsvp-complete-card .rsvp-complete-description {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  white-space: pre-line;
  word-break: keep-all;
}

.rsvp-complete-title {
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.rsvp-complete-card .rsvp-edit-open {
  min-width: 160px;
  margin-top: 8px;
}

.rsvp-edit-cancel {
  margin-top: -12px;
}

.rsvp-form-shell.is-closed {
  overflow: hidden;
  border-radius: 16px;
}

.rsvp-form-shell.is-closed .rsvp-form {
  filter: blur(2px);
  opacity: .45;
  pointer-events: none;
  user-select: none;
}

.rsvp-closed-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 32px 24px;
  border-radius: inherit;
  background: rgba(251, 250, 248, .58);
  color: var(--ink);
  text-align: center;
}

.rsvp-closed-overlay strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.rsvp-closed-overlay p {
  max-width: 360px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.rsvp-card {
  display: grid;
  gap: 34px;
  margin-bottom: 58px;
  padding: 44px 38px;
  border-radius: 10px;
  background: #f8efed;
  text-align: center;
}

.rsvp-card strong {
  font-family: var(--ui-font);
  font-size: 17px;
  font-weight: var(--ui-weight);
}

.rsvp-card strong span {
  display: inline-block;
  margin: 0 18px;
  color: #444;
}

.rsvp-card hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.rsvp-card p {
  margin: 0;
  color: #666;
  font-family: var(--ui-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 2;
}

.rsvp-helper-card {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: var(--ink);
  text-align: left;
}

.rsvp-helper-card p {
  position: relative;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  word-break: keep-all;
}

.rsvp-helper-card p::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted);
  transform: translateY(-50%);
}

.form {
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 10px;
}

.field label {
  color: #6e6e72;
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: var(--ui-weight);
}

.field label.required::after {
  content: "*";
  margin-left: 6px;
  color: #e15f5f;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--control-border);
  border-radius: 10px;
  background: var(--field);
  box-shadow: var(--control-shadow);
  padding: 17px 18px;
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 18px;
  font-weight: 400;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field input,
.field select {
  min-height: var(--control-height);
}

.field input::placeholder,
.field textarea::placeholder,
.field select::placeholder {
  color: #b7b0ae;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.textarea-wrap {
  position: relative;
}

.textarea-wrap textarea {
  padding-bottom: 46px;
}

.textarea-wrap span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: var(--ui-weight);
}

.limit-alert {
  min-height: 20px;
  color: #e15f5f;
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: var(--ui-weight);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--focus-ring), var(--control-shadow);
}

.segmented,
.count-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.segmented {
  gap: 0;
  min-height: var(--control-height);
  overflow: hidden;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  background: var(--field);
  box-shadow: var(--action-shadow);
}

.segmented label {
  min-height: var(--control-height);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 18px;
  font-weight: var(--ui-weight);
  line-height: 1.2;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease, color .18s ease;
}

.segmented label + label {
  border-left: 1px solid var(--control-border);
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented label:has(input:checked) {
  background: var(--rose);
  color: #fff;
}

.segmented label:active {
  transform: translateY(3px);
}

.guestbook-list {
  display: grid;
  gap: 12px;
  overflow: visible;
  background: transparent;
}

.message-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 12px;
  background: var(--paper);
  border: 0;
  box-shadow: none;
}

.message-edit {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-family: var(--ui-font);
  font-weight: var(--ui-weight);
}

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

.message-meta {
  display: flex;
  align-items: center;
  gap: 2px;
}

.message-head strong {
  color: var(--button-label);
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 400;
}

.message-head time {
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 400;
}

.message-card p {
  margin: 0;
  color: var(--button-label);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.guestbook-footer {
  display: grid;
  gap: 24px;
  margin-top: 12px;
}

.guestbook-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.guestbook-pagination:empty {
  display: none;
}

.guestbook-pagination button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #c7bcba;
  font-family: var(--ui-font);
  font-size: 18px;
  font-weight: var(--ui-weight);
}

.guestbook-pagination button.is-active {
  color: #8c7472;
}

.guestbook-write-btn {
  width: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  top: max(24px, env(safe-area-inset-top));
  z-index: 140;
  width: min(430px, calc(100% - 28px));
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-family: var(--ui-font);
  font-size: 18px;
  font-weight: var(--ui-weight);
  transform: translateX(-50%) translateY(-140%);
  transition: transform .2s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-check {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #151515;
  color: #fff;
  font-size: 18px;
}

.delete-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 18, 20, .58);
}

.delete-modal.is-hidden {
  display: none;
}

.guestbook-delete-confirm-modal {
  z-index: 140;
}

.delete-dialog {
  position: relative;
  width: min(430px, 100%);
  display: grid;
  gap: 18px;
  padding: 34px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.delete-dialog h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--hand-font);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 400;
}

.delete-dialog p {
  margin: 0;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.delete-dialog p b {
  color: var(--ink);
  font-weight: var(--ui-weight);
}

.rsvp-update-dialog {
  gap: 18px;
}

.rsvp-update-dialog p {
  line-height: 1.8;
}

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

.modal-actions .btn {
  width: 100%;
  min-height: var(--control-height);
}

.delete-dialog input {
  min-height: var(--control-height);
  border: 1px solid var(--control-border);
  border-radius: 12px;
  background: var(--field);
  box-shadow: none;
  padding: 0 16px;
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.delete-dialog input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.delete-dialog small {
  min-height: 20px;
  color: #e15f5f;
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: var(--ui-weight);
}

.guestbook-write-modal {
  background: rgba(18, 18, 20, .58);
}

.guestbook-write-dialog {
  gap: 18px;
  padding: 34px 28px 28px;
}

.guestbook-write-dialog h3 {
  padding: 0;
  border-bottom: 0;
  font-size: 30px;
}

.guestbook-write-form {
  display: grid;
  gap: 14px;
}

.guestbook-write-form input,
.guestbook-write-form textarea {
  width: 100%;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  background: var(--field);
  box-shadow: none;
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.guestbook-write-form input:focus,
.guestbook-write-form textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.guestbook-write-form input {
  min-height: var(--control-height);
  padding: 0 16px;
}

.guestbook-write-form textarea {
  min-height: 150px;
  padding: 16px 16px 40px;
  resize: vertical;
}

.guestbook-write-form input::placeholder,
.guestbook-write-form textarea::placeholder {
  color: #b8b2b0;
}

.guestbook-write-form .textarea-wrap span {
  right: 16px;
  bottom: 14px;
}

.guestbook-write-form .limit-alert,
.guestbook-write-error {
  min-height: 20px;
  margin: 0;
  color: #e15f5f;
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: var(--ui-weight);
}

.guestbook-write-form .limit-alert:empty,
.guestbook-write-error:empty {
  display: none;
}

.guestbook-write-form .btn {
  width: 100%;
  min-height: var(--control-height);
  border-radius: 12px;
}

.guestbook-form-actions {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 10px;
}

.guestbook-form-actions .btn[hidden] {
  display: none;
}

.guestbook-write-form.is-editing .guestbook-form-actions {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
}

.guestbook-delete-btn {
  border-color: rgba(198, 112, 104, .5);
  background: #fff;
  color: #a4514a;
}

.guestbook-delete-btn:hover,
.guestbook-delete-btn:focus-visible {
  border-color: #c67068;
  background: #fff7f6;
}

.delete-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  color: #777;
  box-shadow: none;
}

.ending-section {
  padding: 0 0 var(--section-y);
  background: #fff;
}

.ending-photo {
  position: relative;
  height: 390px;
  background: url("/assets/ending-hands.png") center / cover;
}

.ending-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 190px;
  background: linear-gradient(180deg, rgba(203, 120, 98, 0), rgba(203, 120, 98, .74) 58%, var(--rose-deep) 100%);
  pointer-events: none;
}

.ending-copy {
  display: grid;
  gap: 34px;
  min-height: 460px;
  align-content: center;
  padding: 104px var(--section-x);
  background: var(--rose-deep);
  color: white;
  text-align: center;
}

.ending-copy p {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.ending-share-actions {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 56px var(--section-x) 0;
}

.ending-share-actions .ghost-share-btn {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.share-assist {
  max-width: 320px;
  margin: 2px auto 0;
  color: rgba(63, 58, 56, .62);
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  word-break: keep-all;
}

.share-manual-copy {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(226, 202, 198, .66);
  border-radius: 8px;
  background: rgba(255, 251, 249, .86);
}

.share-manual-copy[hidden] {
  display: none;
}

.share-manual-copy span {
  color: rgba(63, 58, 56, .68);
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.share-manual-copy input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(226, 202, 198, .78);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.admin-quiet-link {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: calc(100% - 64px);
  margin: 42px auto 0;
  padding: 8px 14px;
  color: rgba(20, 25, 35, .34);
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  letter-spacing: .02em;
  word-break: keep-all;
}

.admin-quiet-link:hover {
  color: rgba(20, 25, 35, .52);
}

.admin-header {
  display: flex;
  position: sticky;
  top: var(--admin-sticky-top, 0px);
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  gap: var(--admin-space-6);
  margin-bottom: var(--admin-space-8);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
}

.admin-header::before {
  content: "";
  position: absolute;
  inset: -8px calc(var(--admin-sticky-bleed) * -1);
  z-index: -1;
  background: rgba(255, 255, 255, .96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.admin-tabs::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--admin-sticky-bleed) * -1);
  z-index: -1;
  background: rgba(255, 255, 255, .96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.admin-header.is-stuck::before,
.admin-tabs.is-stuck::before {
  opacity: 1;
}

.admin-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.admin-header-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-visit-count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  width: fit-content;
  margin: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--admin-muted-bg);
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.admin-visit-count strong {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: var(--admin-weight-action);
}

.admin-panel-intro p,
.admin-module-title p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--admin-space-4);
  margin-bottom: 22px;
}

.stat-card,
.table-card {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
  color: var(--admin-card-foreground);
  box-shadow: none;
}

.stat-card {
  padding: var(--admin-space-5);
}

.stat-card b {
  display: block;
  color: var(--admin-muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  font-weight: var(--admin-weight-action);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 14px;
}

.table-card {
  overflow: visible;
}

.table-card h2 {
  margin: 0;
  padding: 0 0 var(--admin-space-4);
  border-bottom: 1px solid var(--admin-border);
  font-size: 17px;
  font-weight: var(--admin-weight-title);
}

.admin-data-card {
  display: grid;
  gap: var(--admin-space-4);
  padding: var(--admin-space-6);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--admin-secondary);
  color: var(--admin-secondary-foreground);
  font-weight: var(--admin-weight-action);
}

.badge.no {
  background: var(--admin-danger-soft);
  color: var(--admin-danger);
}

.hero-copy h1 {
  font-size: clamp(36px, 9.2vw, 48px);
  line-height: 1.12;
  white-space: normal;
}

.hero-copy h1 span {
  display: inline-block;
  white-space: pre-line;
}

.opening-copy strong {
  font-size: clamp(28px, 7.8vw, 38px);
  line-height: 1.15;
  white-space: pre-line;
}

.btn,
.wide-cta,
.share-btn,
.segmented label,
.account-toggle,
.account-number,
.stepper button,
.admin-mini-btn,
.admin-export-btn,
.admin-text-btn,
.message-edit,
.icon-btn,
.ghost-share-btn,
.gallery-controls button,
.gallery-controls-demo {
  touch-action: manipulation;
}

.btn:active,
.account-toggle:active,
.admin-mini-btn:active {
  transform: translateY(5px) scale(.985);
}

.stepper {
  grid-template-columns: minmax(44px, 52px) minmax(48px, 1fr) minmax(44px, 52px);
  box-shadow: var(--action-shadow);
}

.stepper:focus-within {
  box-shadow: 0 0 0 3px var(--focus-ring), var(--action-shadow);
}

.stepper input {
  width: 100%;
  min-width: 48px;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 20px;
  line-height: 1.1;
  padding: 0 4px;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: textfield;
  -webkit-appearance: none;
  font-variant-numeric: tabular-nums;
}

.stepper input:focus,
.stepper input:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.stepper button {
  border: 0 !important;
  background: transparent;
  box-shadow: none;
  font-size: 26px;
}

.stepper button:active {
  transform: translateY(5px) scale(.95);
}

.segmented {
  box-shadow: var(--action-shadow);
}

.segmented label:active {
  transform: translateY(4px) scale(.985);
}

.rsvp-card {
  background: #fbf3f1;
}

.rsvp-form.is-not-attending .count-row {
  display: none;
}

.account-number:active,
.message-edit:active,
.icon-btn:active,
.gallery-controls button:active,
.gallery-controls-demo:active,
.modal-close:active {
  transform: translateY(5px) scale(.985);
}

.modal-nav:active {
  transform: translateY(calc(-50% + 5px)) scale(.985);
}

.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--admin-space-3);
  margin-left: auto;
}

.admin-header-actions {
  flex-wrap: nowrap;
  gap: var(--admin-space-2);
}

.admin-header-actions .admin-icon-action {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-color: var(--admin-border);
  background: var(--admin-background);
  color: var(--admin-label);
}

.admin-header-actions .admin-icon-action:hover {
  border-color: var(--admin-control-border);
  background: var(--admin-muted-bg);
  color: var(--admin-text);
}

.admin-header-actions .admin-icon-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-text-btn {
  min-height: var(--admin-control-h-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--admin-space-5);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-xs);
  background: var(--admin-secondary);
  color: var(--admin-secondary-foreground);
  font-size: 13px;
  font-weight: var(--admin-weight-action);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.admin-text-btn:hover {
  background: var(--admin-accent-bg);
}

.admin-text-btn:active {
  transform: translateY(2px);
}

.admin-ui-button {
  min-height: var(--admin-control-h-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--admin-space-2);
  padding: 0 var(--admin-space-4);
  border: 1px solid transparent;
  border-radius: var(--admin-radius-xs);
  background: var(--admin-primary);
  color: var(--admin-primary-foreground);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.admin-ui-button:active {
  transform: translateY(2px);
}

.admin-ui-button-primary {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
  color: var(--admin-primary-foreground);
}

.admin-ui-button-primary:hover {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
}

.admin-ui-button-outline,
.admin-ui-button-default {
  border-color: var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
}

.admin-ui-button-outline:hover,
.admin-ui-button-default:hover {
  background: var(--admin-surface-muted);
}

.admin-ui-button-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--admin-label);
}

.admin-ui-button-ghost:hover {
  background: var(--admin-surface-muted);
  color: var(--admin-text);
}

.admin-shell .btn {
  min-height: var(--admin-control-h);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-xs);
  background: var(--admin-background);
  color: var(--admin-foreground);
  box-shadow: none;
  font-size: 14px;
  font-weight: var(--admin-weight-action);
}

.admin-shell .btn:hover {
  background: var(--admin-accent-bg);
}

.admin-shell .btn.primary {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
  color: var(--admin-primary-foreground);
}

.admin-shell .btn.primary:hover {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--admin-space-3);
  padding-top: var(--admin-space-1);
}

.admin-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(160px, .7fr);
  gap: var(--admin-space-5);
  margin-bottom: var(--admin-space-8);
}

.admin-filter-row.single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-export-btn {
  height: var(--admin-control-h-sm);
  padding: 0 var(--admin-space-4);
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-xs);
  background: var(--admin-surface);
  color: var(--admin-text);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.admin-export-btn:hover,
.admin-export-btn.admin-ui-button-primary:hover,
.admin-export-btn.admin-ui-button-outline:hover {
  border-color: var(--admin-control-border);
  background: var(--admin-muted-bg);
  color: var(--admin-text);
}

.admin-tabs {
  display: grid;
  position: sticky;
  top: var(--admin-sticky-tabs-top, 92px);
  z-index: 39;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 34px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--admin-border);
  border-radius: 0;
  background: transparent;
  isolation: isolate;
  scroll-padding: 0 16px;
  transition: background-color .16s ease, border-radius .16s ease, box-shadow .16s ease;
}

.admin-tabs.is-stuck {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-tabs button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--admin-space-4);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--admin-muted-foreground);
  font-family: var(--admin-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-tabs button:hover {
  background: rgba(244, 244, 245, .72);
  color: var(--admin-foreground);
}

.admin-tabs button.is-active {
  background: transparent;
  color: var(--admin-text);
  font-weight: var(--admin-weight-title);
  box-shadow: inset 0 -2px 0 var(--admin-accent-strong);
}

.admin-tabs button.has-unsaved::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--admin-accent-strong);
  vertical-align: middle;
}

.admin-panel {
  display: none;
  padding: 0;
  background: transparent;
}

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

.admin-panel-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--admin-space-6);
  margin-bottom: var(--admin-space-7);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-panel-intro > div {
  display: grid;
  gap: var(--admin-space-3);
}

.admin-panel-intro h2 {
  margin: 0;
  color: var(--admin-text);
  font-size: 18px;
  line-height: 1.3;
}

#adminPreparationSummary {
  margin-bottom: var(--admin-space-4);
}

.admin-preparation-summary {
  display: grid;
  gap: var(--admin-space-4);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.admin-preparation-heading {
  min-width: 0;
  padding: 0 2px;
}

.admin-event-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--admin-space-3);
}

.admin-event-dday {
  flex: 0 0 auto;
  min-width: 56px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 12px;
  font-weight: var(--admin-weight-title);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.admin-event-identity > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-event-identity strong,
.admin-event-identity p {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-event-identity strong {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: var(--admin-weight-action);
  line-height: 1.35;
}

.admin-event-identity p {
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-preparation-stats {
  display: flex;
  gap: var(--admin-space-2);
  margin: 0;
  padding: 0 2px 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}

.admin-preparation-stats::-webkit-scrollbar {
  display: none;
}

.admin-preparation-stats > div {
  flex: 0 0 auto;
  width: max-content;
  min-width: 112px;
  max-width: min(280px, calc(100vw - 48px));
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 82px;
  padding: 10px var(--admin-space-3);
  border: 0;
  border-radius: var(--admin-radius-sm);
  background: var(--admin-muted-bg);
  scroll-snap-align: start;
}

.admin-preparation-stats dt {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: var(--admin-weight-label);
  line-height: 1.35;
  white-space: nowrap;
}

.admin-preparation-stats dd {
  margin: 0;
  color: var(--admin-text);
  font-size: 19px;
  font-weight: var(--admin-weight-title);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}

.admin-preparation-stats dd span {
  margin-left: 3px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: var(--admin-weight-label);
}

.admin-preparation-stat-body {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--admin-space-2);
}

.admin-preparation-stat-body dd {
  flex: 0 0 auto;
}

.admin-preparation-stat-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding-left: var(--admin-space-2);
  border-left: 1px solid var(--admin-border);
}

.admin-preparation-stats small,
.admin-preparation-stats time {
  display: block;
  margin: 0;
  color: var(--admin-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-preparation-stats time {
  white-space: nowrap;
}

.admin-preparation-stat-meta-label {
  color: var(--admin-text) !important;
  font-weight: var(--admin-weight-label) !important;
  white-space: nowrap;
}

.admin-data-tools {
  display: grid;
  gap: var(--admin-space-5);
  margin-bottom: var(--admin-space-9);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.admin-data-tools .stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 0;
  gap: var(--admin-space-3);
}

.admin-data-tools .stat-card {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--admin-space-4);
  padding: var(--admin-space-4) var(--admin-space-5);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-surface);
}

.admin-data-tools .stat-card b {
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: var(--admin-weight-label);
}

.admin-data-tools .stat-card strong {
  margin-top: 0;
  color: var(--admin-text);
  font-size: 24px;
  line-height: 1;
}

.admin-data-tools .admin-filter-row {
  margin-bottom: 0;
}

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.admin-login-card {
  width: min(430px, 100%);
  display: grid;
  gap: var(--admin-space-6);
  padding: 30px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
  color: var(--admin-card-foreground);
  box-shadow: 0 1px 2px rgba(24, 24, 27, .04);
}

.admin-login-card h1 {
  margin: 0;
  font-size: 30px;
}

.admin-login-card p {
  margin: 0;
  color: var(--admin-muted);
  line-height: 1.7;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.admin-login-form small {
  min-height: 20px;
  color: #e15f5f;
  font-size: 14px;
  font-weight: var(--admin-weight-action);
}

.admin-grid.single {
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}

.admin-form {
  display: grid;
  gap: var(--admin-space-5);
  padding: 0 0 100px;
}

.admin-module {
  display: grid;
  gap: var(--admin-space-5);
  padding: var(--admin-space-7);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
  color: var(--admin-card-foreground);
}

.admin-module-title {
  display: grid;
  gap: var(--admin-space-2);
  padding-bottom: var(--admin-space-5);
  border-bottom: 1px solid var(--admin-border);
}

.admin-module h2 {
  margin: 0;
  font-size: 16px;
  font-weight: var(--admin-weight-title);
}

.admin-form-grid,
.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--admin-space-5);
}

.admin-field,
.admin-check-field,
.admin-edit-card label {
  min-width: 0;
  display: grid;
  gap: var(--admin-space-2);
  color: var(--admin-label);
  font-size: 13px;
  font-weight: var(--admin-weight-label);
}

.admin-field-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-required-mark {
  color: var(--admin-accent-strong);
  font-size: 11px;
  font-style: normal;
  font-weight: var(--admin-weight-action);
}

.admin-check-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: var(--admin-control-h);
  padding: var(--admin-space-4) var(--admin-space-5);
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-background);
  color: var(--admin-text);
}

.admin-check-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--admin-accent);
}

.admin-check-field span {
  display: grid;
  gap: 4px;
}

.admin-check-field strong {
  font-size: 15px;
  font-weight: var(--admin-weight-action);
}

.admin-check-field small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
}

.admin-toggle-field {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--admin-space-4);
  min-height: 70px;
  padding: var(--admin-space-4) var(--admin-space-5);
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-background);
  color: var(--admin-text);
  cursor: pointer;
}

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

.admin-toggle-control {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--admin-input);
  transition: background .18s ease;
}

.admin-toggle-control::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(17, 24, 39, .2);
  transition: transform .18s ease;
}

.admin-toggle-field input:checked + .admin-toggle-control {
  background: var(--admin-accent-strong);
}

.admin-toggle-field input:checked + .admin-toggle-control::after {
  transform: translateX(20px);
}

.admin-toggle-field input:focus-visible + .admin-toggle-control {
  box-shadow: 0 0 0 3px var(--admin-focus-ring);
}

.admin-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-toggle-copy strong {
  font-size: 15px;
  font-weight: var(--admin-weight-action);
}

.admin-toggle-copy small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
}

.admin-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--admin-space-3);
}

.admin-music-settings {
  display: grid;
  gap: var(--admin-space-5);
}

.admin-music-settings[hidden],
.admin-music-source-panel[hidden],
.admin-music-disabled-note[hidden] {
  display: none;
}

.admin-music-disabled-note {
  margin: 0;
  padding: var(--admin-space-5);
  border: 1px dashed var(--admin-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-muted-bg);
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-music-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--admin-space-3);
}

.admin-music-preset-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--admin-space-3);
  min-height: 68px;
  padding: var(--admin-space-4);
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-background);
  cursor: pointer;
}

.admin-music-preset-card:has(input:checked) {
  border-color: var(--admin-accent);
  background: var(--admin-accent-bg);
}

.admin-music-preset-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--admin-accent);
}

.admin-music-preset-card span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-music-preset-card strong {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: var(--admin-weight-action);
}

.admin-music-preset-card small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.admin-radio-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--admin-space-3);
  min-height: var(--admin-control-h);
  padding: var(--admin-space-4);
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-background);
  color: var(--admin-text);
  cursor: pointer;
}

.admin-radio-card:has(input:checked) {
  border-color: var(--admin-accent);
  background: var(--admin-accent-bg);
}

.admin-radio-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--admin-accent);
}

.admin-radio-card span {
  display: grid;
  gap: 4px;
}

.admin-radio-card strong {
  font-size: 14px;
  font-weight: var(--admin-weight-action);
}

.admin-radio-card small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
}

.admin-field input,
.admin-field textarea,
.admin-field select,
.admin-edit-card input,
.admin-edit-card textarea,
.admin-edit-card select {
  width: 100%;
  min-height: var(--admin-control-h);
  padding: 8px 12px;
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-background);
  color: var(--admin-text);
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
  outline: none;
}

.admin-field input[type="datetime-local"] {
  min-width: 0;
  max-width: 100%;
  inline-size: 100%;
}

.admin-field .admin-radio-card input {
  width: 18px;
  min-height: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--admin-accent);
}

.admin-field input::placeholder,
.admin-field textarea::placeholder,
.admin-edit-card input::placeholder,
.admin-edit-card textarea::placeholder,
.admin-table-cell input::placeholder,
.admin-table-cell textarea::placeholder {
  color: var(--admin-muted-foreground);
}

.admin-field small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus,
.admin-edit-card input:focus,
.admin-edit-card textarea:focus,
.admin-edit-card select:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-focus-ring);
}

.admin-input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--admin-space-3);
}

.admin-input-action .admin-ui-button {
  min-height: var(--admin-control-h);
  white-space: nowrap;
}

.admin-address-field small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.admin-audio-picker {
  display: grid;
  gap: var(--admin-space-4);
  padding: var(--admin-space-5);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
}

.admin-audio-preview {
  display: grid;
  gap: var(--admin-space-3);
  padding: var(--admin-space-4);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-muted-bg);
}

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

.admin-audio-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--admin-space-3);
}

.admin-audio-name {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: var(--admin-weight-action);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-map-preview {
  display: grid;
  gap: var(--admin-space-3);
}

.admin-map-preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--admin-space-3);
}

.admin-map-preview-head strong {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: var(--admin-weight-label);
}

.admin-map-preview-head small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}

.admin-kakao-map {
  width: 100%;
  height: 168px;
  margin: 0;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-md);
  background: var(--admin-muted-bg);
}

.admin-kakao-map .map-fallback {
  padding: var(--admin-space-5);
  color: var(--admin-muted);
  font-family: var(--admin-font);
}

.admin-kakao-map .map-fallback strong {
  color: var(--admin-text);
  font-size: 14px;
}

.admin-kakao-map .map-fallback small {
  max-width: 360px;
  font-size: 12px;
  line-height: 1.5;
}

.admin-kakao-map .map-pin {
  width: 42px;
  height: 42px;
}

.admin-account-field {
  gap: var(--admin-space-2);
}

.admin-account-control {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(0, 1.25fr);
  gap: var(--admin-space-3);
}

.admin-account-custom[hidden] {
  display: none;
}

.address-search-layer {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(17, 24, 39, .42);
}

.address-search-panel {
  width: min(480px, 100%);
  height: min(640px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--admin-shadow-lg);
}

.address-search-header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--admin-space-3);
  padding: 0 18px;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-foreground);
  font-family: var(--admin-font);
  font-size: 16px;
  font-weight: 600;
}

.address-search-close {
  --icon-button-size: 36px;
}

.address-search-body {
  height: calc(100% - 58px);
}

.volume-control {
  min-height: var(--admin-control-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  gap: var(--admin-space-5);
  padding: 10px 14px;
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-background);
}

.volume-control:focus-within {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-focus-ring);
}

.volume-control input[type="range"] {
  width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  accent-color: var(--admin-accent-strong);
}

.volume-control output {
  min-width: 46px;
  display: inline-grid;
  place-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--admin-muted-bg);
  color: var(--admin-text);
  font-size: 13px;
  font-weight: var(--admin-weight-action);
  line-height: 1;
}

.admin-field textarea,
.admin-edit-card textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-edit-list {
  display: grid;
  gap: var(--admin-space-4);
  padding: 0;
}

.admin-table-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
}

.admin-table-header,
.admin-table-row {
  display: grid;
  align-items: stretch;
  gap: 10px;
}

.admin-table-header {
  padding: 11px 14px;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-muted-bg);
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: var(--admin-weight-action);
}

.admin-table-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table-row:hover {
  background: var(--admin-accent-bg);
}

.admin-table-row.is-dirty,
.admin-table-row.is-dirty:hover {
  background: var(--admin-accent-soft);
}

.admin-table-row:last-child {
  border-bottom: 0;
}

.rsvp-table-list .admin-table-header,
.rsvp-table-row {
  grid-template-columns: 92px minmax(96px, .8fr) minmax(130px, 1fr) 60px 60px minmax(144px, 1fr) 112px;
}

.guestbook-table-list .admin-table-header,
.guestbook-table-row {
  grid-template-columns: minmax(118px, .75fr) minmax(132px, .8fr) minmax(260px, 1.8fr) 112px;
}

.admin-table-cell,
.admin-table-actions {
  min-width: 0;
}

.admin-table-cell {
  display: grid;
  align-content: start;
  gap: 6px;
}

.admin-table-cell::before,
.admin-table-actions::before {
  content: none;
}

.admin-edit-card {
  padding: var(--admin-space-6);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
  color: var(--admin-card-foreground);
  box-shadow: none;
}

.admin-readonly {
  display: grid;
  gap: var(--admin-space-2);
  color: var(--admin-label);
  font-size: 13px;
  font-weight: var(--admin-weight-label);
}

.admin-readonly strong {
  min-height: var(--admin-control-h);
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-muted-bg);
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 400;
}

.admin-table-cell input,
.admin-table-cell textarea,
.admin-table-cell select {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-xs);
  background: var(--admin-background);
  color: var(--admin-text);
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  outline: none;
}

.admin-table-cell textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.55;
}

.admin-table-cell input:focus,
.admin-table-cell textarea:focus,
.admin-table-cell select:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-focus-ring);
}

.admin-table-cell.admin-readonly strong {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-row-dirty-label {
  flex: 0 0 100%;
  color: var(--admin-accent-strong);
  font-size: 12px;
  font-weight: var(--admin-weight-action);
  line-height: 1.2;
  text-align: right;
}

.admin-row-dirty-label[hidden] {
  display: none;
}

.admin-table-actions .admin-mini-btn {
  min-height: 38px;
  padding: 0 12px;
}

.admin-image-grid {
  display: grid;
  gap: var(--admin-space-5);
}

.admin-image-manager {
  display: grid;
  gap: var(--admin-space-4);
  padding: var(--admin-space-5);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
}

.admin-single-image {
  display: grid;
  gap: var(--admin-space-4);
  padding: var(--admin-space-5);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
}

.admin-image-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--admin-space-4);
}

.admin-image-head strong,
.admin-image-head span {
  display: block;
}

.admin-image-head strong {
  font-size: 14px;
  font-weight: var(--admin-weight-action);
}

.admin-image-head span {
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
}

.admin-upload-btn {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  height: var(--admin-control-h-sm);
  padding: 0 var(--admin-space-5);
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-xs);
  background: var(--admin-background);
  color: var(--admin-text);
  font-size: 13px;
  font-weight: var(--admin-weight-action);
  cursor: pointer;
}

.admin-upload-btn:hover {
  background: var(--admin-accent-bg);
}

.admin-image-head .admin-upload-label-text {
  margin-top: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.admin-upload-btn.is-disabled,
.admin-upload-btn.is-disabled:hover {
  border-color: var(--admin-border);
  background: var(--admin-muted-bg);
  color: var(--admin-muted);
  cursor: not-allowed;
}

.admin-upload-btn input,
.admin-image-store,
.admin-single-image input[type="hidden"] {
  display: none;
}

.admin-upload-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--admin-space-2);
}

.admin-single-preview {
  width: min(190px, 100%);
  display: grid;
  gap: 9px;
  min-width: 0;
}

.admin-single-preview.is-empty {
  width: 100%;
}

.admin-single-image-centered .admin-single-preview:not(.is-empty) {
  justify-self: center;
}

.admin-profile-image-editor {
  display: flex;
  align-items: center;
  gap: var(--admin-space-5);
}

.admin-profile-image-editor .admin-single-preview {
  flex: 0 0 min(170px, 38vw);
}

.admin-profile-image-stage {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-position: var(--profile-image-x, 50%) var(--profile-image-y, 50%);
  background-size: var(--profile-image-scale, 198%) auto;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .08);
}

.admin-profile-image-actions {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--admin-space-3);
}

.admin-profile-image-actions .admin-upload-btn,
.admin-profile-image-actions .admin-mini-btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.admin-profile-image-actions small {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.55;
}

.admin-profile-crop-modal {
  z-index: 210;
  overflow-y: auto;
  background: rgba(15, 17, 21, .76);
}

.admin-profile-crop-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  display: grid;
  gap: var(--admin-space-5);
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
  box-shadow: var(--admin-shadow-lg);
}

.admin-profile-crop-heading {
  display: grid;
  gap: 7px;
  padding-right: 42px;
}

.admin-profile-crop-heading h3,
.admin-profile-crop-heading p {
  margin: 0;
  font-family: var(--admin-font);
}

.admin-profile-crop-heading h3 {
  color: var(--admin-text);
  font-size: 19px;
  font-weight: var(--admin-weight-title);
}

.admin-profile-crop-heading p {
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-profile-crop-canvas {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 30px);
  overflow: hidden;
  border-radius: var(--admin-radius-md);
  background: #181b21;
}

.admin-profile-crop-stage {
  position: relative;
  width: min(360px, 72vw, 52dvh);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  background-color: #282c34;
  background-position: var(--profile-image-x, 50%) var(--profile-image-y, 50%);
  background-repeat: no-repeat;
  background-size: var(--profile-image-scale, 198%) auto;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .2);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.admin-profile-crop-stage.is-dragging {
  cursor: grabbing;
}

.admin-profile-crop-stage:focus-visible {
  outline: 3px solid var(--admin-accent);
  outline-offset: 4px;
}

.admin-profile-crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, transparent 33%, rgba(255, 255, 255, .52) 33%, rgba(255, 255, 255, .52) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255, 255, 255, .52) 66%, rgba(255, 255, 255, .52) calc(66% + 1px), transparent calc(66% + 1px)),
    linear-gradient(to bottom, transparent 33%, rgba(255, 255, 255, .52) 33%, rgba(255, 255, 255, .52) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255, 255, 255, .52) 66%, rgba(255, 255, 255, .52) calc(66% + 1px), transparent calc(66% + 1px));
}

.admin-profile-crop-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--admin-space-4);
}

.admin-profile-crop-zoom {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: var(--admin-label);
  font-size: 13px;
  font-weight: var(--admin-weight-label);
}

.admin-profile-crop-zoom > span {
  display: flex;
  justify-content: space-between;
  gap: var(--admin-space-3);
}

.admin-profile-crop-zoom output {
  color: var(--admin-text);
  font-weight: var(--admin-weight-action);
}

.admin-profile-crop-zoom input[type="range"] {
  width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--admin-accent-strong);
}

.admin-profile-crop-controls .admin-mini-btn {
  min-height: 44px;
}

.admin-profile-crop-actions {
  margin-top: 2px;
}

.admin-image-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: var(--admin-space-5);
}

.admin-image-row {
  position: relative;
  display: grid;
  gap: 9px;
  align-content: start;
  min-width: 0;
  padding: 8px 8px 0;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
  cursor: default;
  touch-action: pan-y;
  user-select: none;
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

.admin-image-order {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  min-width: 28px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border: 1px solid rgba(17, 24, 39, .16);
  border-radius: 6px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 12px;
  font-weight: var(--admin-weight-action);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.admin-image-feature-badge {
  position: absolute;
  z-index: 2;
  left: 6px;
  bottom: 6px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 6px;
  background: rgba(17, 24, 39, .82);
  color: #fff;
  font-size: 11px;
  font-weight: var(--admin-weight-action);
  line-height: 1;
  backdrop-filter: blur(6px);
}

.admin-image-row.is-dragging {
  opacity: .45;
  transform: scale(.98);
}

.admin-image-row.is-drop-target {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-focus-ring);
}

.admin-image-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 108px;
  border-radius: var(--admin-radius-xs);
  background-color: var(--admin-muted-bg);
  background-position: center;
  background-size: cover;
  overflow: visible;
}

.admin-media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 108px;
  border-radius: var(--admin-radius-xs);
  background: var(--admin-muted-bg);
  overflow: visible;
}

.admin-media-thumb .admin-image-thumb {
  min-height: 100%;
}

.admin-media-preview {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--admin-radius-xs);
  object-fit: cover;
  background: #111827;
}

.admin-media-open {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  border: 0;
  border-radius: var(--admin-radius-xs);
  background: transparent;
}

.admin-media-open:focus-visible {
  box-shadow: inset 0 0 0 3px var(--admin-accent), 0 0 0 3px var(--admin-focus-ring);
}

.admin-media-viewer {
  z-index: 200;
}

.admin-media-viewer-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  display: grid;
  gap: var(--admin-space-4);
  padding: 28px;
  border-radius: var(--admin-radius-lg);
  background: #fff;
  box-shadow: var(--admin-shadow-lg);
}

.admin-media-viewer-dialog h3 {
  margin: 0;
  padding-right: 42px;
  color: var(--admin-text);
  font-family: var(--admin-font);
  font-size: 18px;
  font-weight: var(--admin-weight-title);
}

.admin-media-viewer-stage {
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--admin-radius-md);
  background: #111827;
}

.admin-media-viewer-stage img,
.admin-media-viewer-stage video {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.admin-media-viewer-stage img[hidden],
.admin-media-viewer-stage video[hidden] {
  display: none;
}

.admin-media-type {
  position: absolute;
  z-index: 2;
  left: 6px;
  bottom: 6px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 6px;
  background: rgba(17, 24, 39, .82);
  color: #fff;
  font-size: 11px;
  font-weight: var(--admin-weight-action);
  line-height: 1;
  backdrop-filter: blur(6px);
}

@media (hover: hover) and (pointer: fine) {
  .admin-image-thumb[data-image-drag-surface] {
    cursor: grab;
  }

  .admin-media-thumb[data-image-drag-surface] {
    cursor: grab;
  }

  .admin-image-row.is-dragging .admin-image-thumb[data-image-drag-surface] {
    cursor: grabbing;
  }

  .admin-image-row.is-dragging .admin-media-thumb[data-image-drag-surface] {
    cursor: grabbing;
  }
}

.admin-image-name {
  display: block;
  min-width: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
}

.admin-image-name > span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.admin-image-name.is-marquee > span {
  animation: filename-slide 7.5s ease-in-out 1.1s infinite alternate;
  max-width: none;
  min-width: 100%;
  overflow: visible;
  text-overflow: clip;
}

.admin-image-order-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 -8px;
}

.admin-image-order-actions button {
  min-width: 0;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-xs);
  background: var(--admin-background);
  color: var(--admin-text);
  font-size: 16px;
  font-weight: var(--admin-weight-action);
  border-radius: 0;
}

.admin-image-drag-handle {
  border-right-width: 0 !important;
  border-radius: 0 0 0 var(--admin-radius-xs) !important;
}

.admin-image-order-actions button[data-image-move="-1"],
.admin-image-order-actions button[data-hero-media-move="-1"] {
  border-right-width: 0;
}

.admin-image-order-actions button[data-image-move="1"],
.admin-image-order-actions button[data-hero-media-move="1"] {
  border-radius: 0 0 var(--admin-radius-xs) 0;
}

.admin-image-order-actions button:hover:not(:disabled) {
  background: var(--admin-accent-bg);
}

.admin-image-order-actions button:disabled {
  color: var(--admin-muted);
  cursor: not-allowed;
  opacity: 1;
}

.admin-image-order-actions button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--admin-focus-ring);
}

.admin-image-drag-handle {
  cursor: grab;
  touch-action: none;
}

.admin-image-drag-handle:active {
  cursor: grabbing;
}

@keyframes filename-slide {
  0%,
  24% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(var(--filename-shift, 0));
  }
}

.admin-image-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: var(--admin-control-h-sm);
  height: var(--admin-control-h-sm);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--admin-primary);
  color: var(--admin-primary-foreground);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
  transition: transform .18s ease, background .18s ease;
}

.admin-image-remove svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
}

.admin-image-remove:active {
  transform: scale(.92);
}

.admin-image-remove:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--admin-focus-ring), 0 8px 18px rgba(0, 0, 0, .16);
}

@media (prefers-reduced-motion: reduce) {
  .admin-image-name.is-marquee > span {
    animation: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.ai-studio {
  display: grid;
  gap: var(--admin-space-5);
  padding: 0;
  background: transparent;
}

.ai-studio-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--admin-space-6);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ai-studio-hero h2 {
  margin: 0;
}

.ai-studio-hero p {
  margin: 8px 0 0;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.ai-studio-hero > span {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--admin-radius-pill);
  background: var(--admin-secondary);
  color: var(--admin-secondary-foreground);
  font-size: 12px;
  font-weight: var(--admin-weight-action);
}

.ai-readiness {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--admin-space-6);
  padding: var(--admin-space-5) var(--admin-space-6);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
}

.ai-readiness strong {
  display: block;
  color: var(--admin-text);
  font-size: 15px;
  font-weight: var(--admin-weight-action);
}

.ai-readiness span {
  display: block;
  margin-top: 5px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ai-readiness dl {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
  margin: 0;
}

.ai-readiness dl div {
  min-width: 76px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--admin-muted-bg);
}

.ai-readiness dt,
.ai-readiness dd {
  margin: 0;
}

.ai-readiness dt {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: var(--admin-weight-action);
}

.ai-readiness dd {
  margin-top: 4px;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: var(--admin-weight-action);
}

.ai-readiness.is-ready {
  border-color: var(--admin-success-border);
  background: var(--admin-success-soft);
}

.ai-readiness.is-ready strong {
  color: var(--admin-success);
}

.ai-readiness.is-blocked {
  border-color: var(--admin-danger-soft);
  background: var(--admin-danger-soft);
}

.ai-readiness.is-blocked strong {
  color: var(--admin-danger);
}

.ai-readiness.is-checking strong {
  color: var(--admin-accent);
}

.ai-status-refresh {
  white-space: nowrap;
}

.ai-studio.is-generating .ai-step {
  pointer-events: none;
}

.ai-studio.is-generating .ai-generate-step {
  pointer-events: auto;
  border-color: var(--admin-ring);
  box-shadow: 0 0 0 3px var(--admin-focus-ring);
}

.ai-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-progress::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--admin-border);
}

.ai-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: var(--admin-weight-action);
  text-align: center;
}

.ai-progress span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--admin-border);
  border-radius: 50%;
  background: var(--admin-background);
  color: var(--admin-muted);
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(65, 50, 43, .05);
}

.ai-progress .is-current span,
.ai-progress .is-done span {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
  color: var(--admin-primary-foreground);
}

.ai-progress .is-done span::after {
  content: "✓";
  font-size: 13px;
}

.ai-progress .is-done span {
  font-size: 0;
}

.ai-progress .is-current strong {
  color: var(--admin-text);
}

.ai-progress .is-locked {
  opacity: .48;
}

.ai-step {
  display: grid;
  gap: 0;
  padding: var(--admin-space-6);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
  transition: border-color .18s ease, background .18s ease;
}

.ai-step.is-disabled {
  background: var(--admin-muted-bg);
}

.ai-step-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ai-step-head::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border-right: 2px solid var(--admin-muted);
  border-bottom: 2px solid var(--admin-muted);
  transform: rotate(45deg);
  transition: transform .18s ease, border-color .18s ease;
}

.ai-step.is-open {
  border-color: var(--admin-control-border);
  background: var(--admin-surface);
}

.ai-step.is-open .ai-step-head::after {
  border-color: var(--admin-accent);
  transform: rotate(225deg);
}

.ai-step.is-disabled .ai-step-head {
  cursor: not-allowed;
  opacity: .72;
}

.ai-step-body {
  display: none;
  gap: 14px;
  padding-top: 16px;
}

.ai-step.is-open .ai-step-body {
  display: grid;
}

.ai-step-head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.ai-step-head strong,
.ai-step-head span {
  display: block;
}

.ai-step-head strong {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: var(--admin-weight-action);
}

.ai-step-head span {
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.ai-step-number {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--admin-primary);
  color: var(--admin-primary-foreground);
  font-size: 0;
  font-weight: var(--admin-weight-action);
  line-height: 1;
}

.ai-step-head .ai-step-number {
  display: inline-grid;
  margin-top: 0;
  color: var(--admin-primary-foreground);
  font-size: 0;
}

.ai-step-number::before {
  content: attr(data-step);
  font-size: 13px;
}

.ai-step-status {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  margin-top: 0;
  padding: 0 10px;
  border-radius: var(--admin-radius-pill);
  background: var(--admin-secondary);
  color: var(--admin-secondary-foreground);
  font-size: 12px;
  font-weight: var(--admin-weight-action);
}

.ai-step-head .ai-step-status {
  display: inline-grid;
  color: var(--admin-accent);
}

.ai-upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 132px;
  padding: 22px 18px;
  border: 1px dashed var(--admin-input);
  border-radius: var(--admin-radius-md);
  background: var(--admin-muted-bg);
  color: var(--admin-text);
  text-align: center;
  cursor: pointer;
}

.ai-upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ai-upload-zone.is-disabled {
  border-style: solid;
  border-color: var(--admin-border);
  color: var(--admin-muted);
  cursor: not-allowed;
}

.ai-upload-zone.is-disabled input {
  pointer-events: none;
  cursor: not-allowed;
}

.ai-upload-zone.is-disabled .ai-upload-icon {
  background: var(--admin-secondary);
  color: var(--admin-secondary-foreground);
}

.ai-upload-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--admin-primary);
  color: var(--admin-primary-foreground);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.ai-upload-zone strong {
  font-size: 15px;
  font-weight: var(--admin-weight-action);
}

.ai-upload-zone span:last-of-type {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.ai-source-list,
.ai-result-grid {
  display: grid;
  gap: 10px;
}

.ai-source-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
}

.ai-source-card.needs-attention {
  border-color: var(--admin-danger-soft);
  background: var(--admin-danger-soft);
}

.ai-source-card strong,
.ai-result-copy strong {
  display: block;
  color: var(--admin-text);
  font-size: 14px;
  font-weight: var(--admin-weight-action);
}

.ai-source-card p,
.ai-result-copy span {
  margin: 4px 0 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.ai-concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ai-concept-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ai-concept-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ai-concept-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--admin-secondary);
  color: var(--admin-secondary-foreground);
}

.ai-concept-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-concept-check {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--admin-border);
  color: var(--admin-muted-foreground);
  font-size: 13px;
  font-weight: var(--admin-weight-action);
}

.ai-concept-card strong {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: var(--admin-weight-action);
}

.ai-concept-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-right: 22px;
}

.ai-concept-copy span {
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.ai-concept-card.is-selected {
  border-color: var(--admin-ring);
  background: var(--admin-accent-bg);
  box-shadow: 0 0 0 3px var(--admin-focus-ring);
  transform: translateY(-1px);
}

.ai-concept-card.is-selected .ai-concept-icon,
.ai-concept-card.is-selected .ai-concept-check {
  background: var(--admin-primary);
  color: var(--admin-primary-foreground);
}

.ai-generate-btn {
  width: 100%;
}

.ai-generate-note {
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.ai-result-tools {
  display: flex;
  justify-content: flex-end;
}

.ai-generate-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--admin-space-3);
}

.ai-generate-summary > div {
  display: grid;
  gap: var(--admin-space-1);
  padding: var(--admin-space-5);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-muted-bg);
}

.ai-generate-summary span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: var(--admin-weight-label);
}

.ai-generate-summary strong {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: var(--admin-weight-action);
}

.ai-generate-btn:disabled,
.ai-step-head .admin-mini-btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.ai-result-card {
  display: grid;
  gap: var(--admin-space-5);
  padding: var(--admin-space-5);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
}

.ai-result-preview {
  min-height: 320px;
  border-radius: var(--admin-radius-sm);
  background-color: var(--admin-surface-muted);
  background-position: center;
  background-size: cover;
}

.ai-result-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-apply-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--admin-space-2);
}

.ai-apply-btn {
  min-height: var(--admin-control-h-sm);
  border-color: var(--admin-control-border);
  background: var(--admin-background);
  color: var(--admin-text);
}

.ai-apply-btn.is-applied {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
  color: var(--admin-primary-foreground);
}

.ai-result-empty {
  display: grid;
  place-items: center;
  gap: var(--admin-space-1);
  min-height: 150px;
  padding: 20px;
  border: 1px dashed var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-card);
  text-align: center;
}

.ai-result-empty strong {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: var(--admin-weight-action);
}

.ai-result-empty span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.admin-save-bar {
  width: 100%;
  display: grid;
  gap: var(--admin-space-3);
  justify-content: center;
  margin-top: var(--admin-space-7);
  padding: 0;
  background: transparent;
}

.admin-config-save-bar {
  position: fixed;
  right: max(14px, calc((100% - 1120px) / 2));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(360px, calc(100% - 28px));
  margin-top: 0;
  padding: var(--admin-space-4);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-popover);
  color: var(--admin-popover-foreground);
  box-shadow: 0 16px 32px rgba(24, 24, 27, .12);
}

.admin-save-bar > span {
  color: var(--admin-label);
  font-size: 12px;
  font-weight: var(--admin-weight-label);
  text-align: center;
}

.ai-save-bar {
  position: sticky;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  padding-top: 12px;
}

.ai-studio.has-save-action {
  padding-bottom: 82px;
}

.admin-config-save-bar .btn,
.ai-save-bar .btn {
  box-shadow: 0 8px 16px rgba(24, 24, 27, .10);
}

.admin-save-bar .btn {
  width: 100%;
  min-height: 54px;
  box-shadow: var(--admin-shadow-action);
}

.admin-save-bar.is-hidden {
  display: none;
}

.admin-confirm-dialog h3 {
  font-family: var(--admin-font);
  font-size: 23px;
  font-weight: var(--admin-weight-title);
}

.admin-confirm-dialog .danger-btn {
  border-color: var(--admin-destructive);
  background: var(--admin-destructive);
  color: var(--admin-destructive-foreground);
}

.admin-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--admin-space-2);
  margin-top: var(--admin-space-4);
}

.admin-mini-btn {
  min-height: var(--admin-control-h-sm);
  padding: 0 16px;
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-radius-xs);
  background: var(--admin-background);
  color: var(--admin-text);
  box-shadow: var(--admin-shadow-action);
  font-size: 14px;
  font-weight: var(--admin-weight-action);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.admin-mini-btn:hover {
  background: var(--admin-accent-bg);
}

.admin-mini-btn.danger {
  color: var(--admin-danger);
}

.admin-suggestions {
  margin-top: 14px;
}

.admin-suggestions ul {
  margin: 0;
  padding: 16px 30px 20px;
  color: var(--admin-muted);
  line-height: 1.8;
}

.empty-note {
  margin: 0;
  padding: var(--admin-space-7);
  border: 1px dashed var(--admin-border);
  border-radius: var(--admin-radius-lg);
  background: var(--admin-muted-bg);
  color: var(--admin-muted);
  font-size: 14px;
  font-weight: 400;
  text-align: center;
}

@media (max-width: 720px) {
  .message-head {
    align-items: center;
  }

  .admin-shell {
    --admin-sticky-bleed: 12px;
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 14px;
  }

  .admin-header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--admin-space-4);
    margin-bottom: var(--admin-space-7);
    padding: 0;
  }

  .admin-header-copy {
    flex: 1 1 auto;
  }

  .admin-header h1 {
    font-size: 24px;
  }

  .admin-panel-intro {
    margin-bottom: var(--admin-space-6);
    padding: 0;
  }

  .admin-panel-intro h2 {
    font-size: 18px;
  }

  .admin-preparation-stats {
    display: flex;
    gap: var(--admin-space-2);
    padding: 0 2px 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .admin-preparation-stats::-webkit-scrollbar {
    display: none;
  }

  .admin-preparation-stats > div {
    flex: 0 0 auto;
  }

  .admin-data-tools {
    padding: var(--admin-space-6) 0 var(--admin-space-7);
  }

  .admin-data-tools .stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--admin-space-2);
  }

  .admin-data-tools .stat-card:nth-child(-n + 2) {
    grid-column: span 3;
  }

  .admin-data-tools .stat-card:nth-child(n + 3) {
    grid-column: span 2;
  }

  .admin-data-tools .stat-card {
    min-width: 0;
    min-height: 70px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--admin-space-2);
    padding: var(--admin-space-3);
  }

  .admin-data-tools .stat-card b {
    line-height: 1.35;
  }

  .admin-grid {
    display: grid;
  }

  .admin-form-grid,
  .admin-edit-grid,
  .admin-image-row,
  .admin-filter-row {
    grid-template-columns: 1fr;
  }

  .admin-filter-row.rsvp-filter-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(112px, .65fr);
    gap: var(--admin-space-3);
  }

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

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

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

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

  .admin-account-control {
    grid-template-columns: minmax(118px, .8fr) minmax(0, 1.2fr);
    gap: var(--admin-space-2);
  }

  .admin-input-action .admin-ui-button {
    width: 100%;
  }

  .admin-map-preview-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--admin-space-1);
  }

  .admin-map-preview-head small {
    text-align: left;
  }

  .address-search-layer {
    align-items: stretch;
    padding: 0;
  }

  .address-search-panel {
    width: 100%;
    height: 100%;
    border-width: 0;
    border-radius: 0;
  }

  .admin-data-card {
    padding: 22px;
  }

  .admin-table-list {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 12px;
  }

  .admin-table-header {
    display: none;
  }

  .admin-table-row {
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-md);
    background: var(--admin-surface);
  }

  .rsvp-table-row,
  .guestbook-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-table-cell,
  .admin-table-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px;
  }

  .admin-table-cell::before,
  .admin-table-actions::before {
    content: attr(data-cell-label);
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: var(--admin-weight-action);
  }

  .rsvp-table-row [data-cell-label="상태"],
  .guestbook-table-row [data-cell-label="메시지"],
  .admin-table-actions {
    grid-column: 1 / -1;
  }

  .admin-table-cell textarea {
    min-height: 92px;
  }

  .admin-table-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .admin-row-dirty-label {
    grid-column: 1 / -1;
    text-align: left;
  }

  .admin-table-actions::before {
    content: none;
  }

  .admin-table-actions .admin-mini-btn {
    width: 100%;
  }

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

  .admin-actions {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--admin-space-2);
    margin-left: auto;
  }

  .admin-actions .admin-ui-button {
    min-height: 44px;
    padding: 0 var(--admin-space-3);
    font-size: 12px;
  }

  .admin-text-btn {
    min-height: 36px;
    font-size: 12px;
  }

  .admin-tabs {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    margin-bottom: 30px;
    margin-right: 0;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--admin-border);
    border-radius: 0;
    background: transparent;
    scrollbar-width: none;
  }

  .admin-tabs.is-stuck {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    background: transparent;
  }

  .admin-tabs button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 6px var(--admin-space-2);
    border: 0;
    background: transparent;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }

  .admin-tabs button.is-active {
    background: transparent;
    color: var(--admin-text);
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-toolbar .admin-ui-button,
  .admin-table-actions .admin-mini-btn {
    min-height: 44px;
  }

  .admin-image-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-profile-image-editor {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-profile-image-editor .admin-single-preview {
    width: min(190px, 64vw);
    flex-basis: auto;
    justify-self: center;
    align-self: center;
  }

  .admin-profile-image-actions {
    width: 100%;
  }

  .admin-profile-crop-modal {
    align-items: end;
    padding: 0;
  }

  .admin-profile-crop-dialog {
    width: 100%;
    max-height: 94dvh;
    padding: 24px 18px max(20px, env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }

  .admin-profile-crop-canvas {
    min-height: 0;
    padding: 18px;
  }

  .admin-profile-crop-stage {
    width: min(320px, 74vw, 46dvh);
  }

  .admin-profile-crop-controls {
    grid-template-columns: 1fr;
  }

  .admin-profile-crop-controls .admin-mini-btn {
    width: 100%;
  }

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

  .admin-image-thumb,
  .admin-media-thumb {
    min-height: 0;
  }

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

  .admin-image-order-actions button {
    min-width: 44px;
    min-height: 44px;
    border-radius: 0;
  }

  .admin-image-order-actions button[data-image-move="-1"],
  .admin-image-order-actions button[data-hero-media-move="-1"] {
    border-radius: 0 0 0 var(--admin-radius-xs);
  }

  .admin-image-order-actions button[data-image-move="1"],
  .admin-image-order-actions button[data-hero-media-move="1"] {
    border-radius: 0 0 var(--admin-radius-xs) 0;
  }

  .admin-image-drag-handle {
    display: none !important;
  }

  .ai-concept-grid,
  .ai-result-card,
  .ai-apply-grid {
    grid-template-columns: 1fr;
  }

  .ai-studio-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-readiness {
    grid-template-columns: 1fr;
  }

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

  .ai-status-refresh {
    width: 100%;
    min-height: 44px;
  }

  .ai-step-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ai-step-head > div {
    flex: 1 1 calc(100% - 44px);
  }

  .ai-progress {
    gap: 4px;
  }

  .ai-progress strong {
    font-size: 11px;
  }

  .ai-step-status {
    align-self: flex-start;
    margin-left: 42px;
  }

  .ai-result-tools .admin-mini-btn {
    width: 100%;
  }

  .ai-concept-card {
    min-height: 0;
  }

  .ai-generate-summary {
    grid-template-columns: 1fr;
  }

  .ai-source-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .ai-source-card .admin-mini-btn {
    grid-column: 1 / -1;
  }

  .ai-result-preview {
    min-height: 220px;
  }

  .admin-module {
    padding: 22px;
  }

  .admin-config-save-bar {
    right: 14px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .admin-wide {
    grid-column: auto;
  }

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

  table {
    min-width: 720px;
  }

  .table-scroll {
    overflow-x: auto;
  }
}

@media (max-width: 430px) {
  :root {
    --section-y: 93px;
    --section-x: 28px;
  }

  .admin-header {
    align-items: center;
    flex-direction: row;
  }

  .admin-header-copy {
    width: auto;
  }

  .admin-header .admin-actions {
    width: auto;
    display: flex;
    margin-left: auto;
  }

  .admin-header .admin-actions .admin-ui-button {
    width: 44px;
    padding: 0;
  }

  .admin-image-manager {
    padding: 14px;
  }

  .admin-media-viewer {
    padding: 10px;
  }

  .admin-media-viewer-dialog {
    max-height: calc(100vh - 20px);
    padding: 20px 14px 14px;
  }

  .admin-media-viewer-stage img,
  .admin-media-viewer-stage video {
    max-height: calc(100vh - 120px);
  }

  .admin-image-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-image-thumb,
  .admin-media-thumb {
    min-height: 0;
  }

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

  .admin-image-drag-handle {
    display: none !important;
  }

  .component-shell {
    width: min(100%, calc(100% - 20px));
    margin-top: 10px;
  }

  .component-panel {
    padding: 22px;
  }

  .component-header {
    align-items: stretch;
    flex-direction: column;
    padding: 0;
  }

  .map-action-row {
    gap: 10px;
  }

  .map-action-row .btn,
  .rsvp-complete-card .rsvp-edit-open {
    min-height: 50px;
    font-size: 15px;
  }

  .kakao-map {
    height: 300px;
  }

  .admin-kakao-map {
    height: 154px;
  }

  .map-address-copy {
    width: calc(100% - 56px);
    font-size: 16px;
  }

  .section-subtitle {
    font-size: 16px;
    line-height: 1.7;
  }

  .count-row {
    gap: 10px;
  }

  .stepper {
    grid-template-columns: minmax(42px, 46px) minmax(50px, 1fr) minmax(42px, 46px);
  }

  .stepper input {
    min-width: 50px;
    font-size: 19px;
  }

  .stepper button {
    font-size: 24px;
  }

  .gallery-note {
    font-size: 16px;
    line-height: 1.7;
  }

  .countdown {
    gap: 8px;
  }

  .count-card strong {
    font-size: 26px;
  }

  .photo {
    min-height: 390px;
  }

  .gallery-photo {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .gallery-modal {
    place-items: stretch;
    padding: 0;
    background: #111;
  }

  .gallery-modal img {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
  }

  .modal-close {
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    width: 48px;
    height: 48px;
    background: rgba(18, 18, 18, .46);
  }

  .modal-nav {
    width: 50px;
    height: 50px;
    background: rgba(18, 18, 18, .38);
  }

  .modal-nav.prev {
    left: 12px;
  }

  .modal-nav.next {
    right: 12px;
  }

  .modal-count {
    bottom: max(18px, env(safe-area-inset-bottom));
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(18, 18, 18, .38);
    backdrop-filter: blur(10px);
  }

  .share-btn {
    width: calc(100% - 56px);
    margin-left: 28px;
    margin-right: 28px;
  }

  .ending-share-actions {
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* Mobile compact scale: keep the hierarchy while avoiding oversized UI on smaller devices. */
@media (max-width: 720px) {
  :root {
    --control-height: 54px;
    --section-y: 88px;
    --admin-space-4: 10px;
    --admin-space-5: 12px;
    --admin-space-6: 14px;
    --admin-space-7: 16px;
    --admin-space-8: 20px;
    --admin-space-9: 24px;
  }

  .hero-meta {
    font-size: 14px;
  }

  .opening-skip,
  .eyebrow {
    font-size: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 8.4vw, 44px);
  }

  .doodle::before {
    font-size: 50px;
  }

  .intro p {
    font-size: 16px;
  }

  .parents-line,
  .section-subtitle,
  .gallery-note {
    font-size: 15px;
  }

  .section-title {
    font-size: 32px;
  }

  .baby-info-card h2,
  .baby-info-card h3 {
    font-size: 30px;
  }

  .baby-info-card > p,
  .count-card span {
    font-size: 11px;
  }

  .baby-facts dt,
  .calendar-save-chip,
  .location-phone,
  .rsvp-helper-card p {
    font-size: 14px;
  }

  .baby-facts dd,
  .date-card strong,
  .share-copy p,
  .rsvp-card strong,
  .rsvp-card p {
    font-size: 16px;
  }

  .dday-note {
    font-size: 18px;
  }

  .date-venue,
  .mini-cal b,
  .mini-cal span,
  .location-head > span,
  .route-list h3,
  .route-list p,
  .map-address-copy,
  .message-head strong,
  .message-card p {
    font-size: 15px;
  }

  .date-address,
  .account-bank,
  .message-head time,
  .textarea-wrap span,
  .limit-alert {
    font-size: 13px;
  }

  .location-head strong {
    font-size: 17px;
  }

  .count-card {
    min-height: 92px;
    padding: 12px 4px;
  }

  .count-card strong {
    font-size: 22px;
  }

  .wide-cta,
  .share-btn,
  .btn,
  .ghost-share-btn,
  .segmented label {
    font-size: 16px;
  }

  .gallery-toggle {
    min-height: 48px;
    padding: 0 20px;
    font-size: 14px;
  }

  .account-toggle {
    padding-right: 18px;
    padding-left: 18px;
  }

  .account-holder {
    font-size: 14px;
  }

  .account-number {
    min-height: 68px;
    padding: 13px 16px;
  }

  .account-number-value {
    font-size: 16px;
  }

  .map-action-row .btn,
  .rsvp-complete-card .rsvp-edit-open,
  .map-address-copy {
    min-height: 48px;
  }

  .map-action-row .btn,
  .rsvp-complete-card .rsvp-edit-open {
    font-size: 14px;
  }

  .route-list {
    gap: 32px;
    margin-top: 36px;
  }

  .form {
    gap: 20px;
  }

  .field {
    gap: 8px;
  }

  .field label {
    font-size: 15px;
  }

  .field input,
  .field textarea,
  .field select {
    padding: 14px 16px;
    font-size: 16px;
  }

  .field textarea {
    min-height: 140px;
  }

  .stepper {
    grid-template-columns: minmax(44px, 48px) minmax(48px, 1fr) minmax(44px, 48px);
  }

  .stepper input {
    min-width: 48px;
    font-size: 16px;
  }

  .stepper button {
    font-size: 22px;
  }

  .message-card {
    gap: 16px;
    padding: 20px;
  }

  .guestbook-pagination button {
    font-size: 16px;
  }

  .toast {
    min-height: 64px;
    gap: 12px;
    padding: 14px 18px;
    font-size: 16px;
  }

  .delete-dialog,
  .guestbook-write-dialog {
    gap: 16px;
    padding: 28px 24px 24px;
  }

  .delete-dialog h3,
  .guestbook-write-dialog h3 {
    font-size: 27px;
  }

  .delete-dialog p,
  .delete-dialog input,
  .guestbook-write-form input,
  .guestbook-write-form textarea {
    font-size: 15px;
  }

  .guestbook-write-form textarea {
    min-height: 136px;
    padding: 14px 14px 38px;
  }

  .admin-shell {
    padding: 12px;
    font-size: 14px;
  }

  .admin-header h1 {
    font-size: 22px;
  }

  .admin-panel-intro h2 {
    font-size: 17px;
  }

  .admin-panel-intro p,
  .admin-module-title p,
  .ai-studio-hero p {
    font-size: 12px;
  }

  .admin-tabs {
    margin-bottom: 24px;
  }

  .admin-tabs button {
    min-height: 44px;
    font-size: 12px;
  }

  .admin-module,
  .admin-data-card {
    padding: 18px;
  }

  .admin-module h2 {
    font-size: 15px;
  }

  .admin-field,
  .admin-check-field,
  .admin-edit-card label {
    font-size: 12px;
  }

  .admin-field input,
  .admin-field textarea,
  .admin-field select,
  .admin-edit-card input,
  .admin-edit-card textarea,
  .admin-edit-card select {
    padding: 7px 10px;
    font-size: 13px;
  }

  .admin-field textarea,
  .admin-edit-card textarea {
    min-height: 104px;
  }

  .admin-check-field,
  .admin-radio-card {
    padding: 9px 10px;
  }

  .admin-check-field strong,
  .admin-toggle-copy strong,
  .admin-music-preset-card strong,
  .admin-radio-card strong {
    font-size: 13px;
  }

  .admin-check-field small,
  .admin-toggle-copy small,
  .admin-music-preset-card small,
  .admin-radio-card small,
  .admin-field small,
  .admin-address-field small {
    font-size: 11px;
  }

  .admin-toggle-field {
    min-height: 62px;
    padding: 10px 12px;
  }

  .admin-toggle-control {
    width: 42px;
    height: 24px;
  }

  .admin-toggle-control::after {
    width: 18px;
    height: 18px;
  }

  .admin-toggle-field input:checked + .admin-toggle-control::after {
    transform: translateX(18px);
  }

  .admin-music-preset-card {
    min-height: 60px;
    padding: 10px;
  }

  .admin-data-tools .stat-card {
    min-height: 64px;
    padding: 10px;
  }

  .admin-data-tools .stat-card b {
    font-size: 12px;
  }

  .admin-data-tools .stat-card strong {
    font-size: 22px;
  }

  .admin-table-row {
    gap: 10px;
    padding: 12px;
  }

  .admin-table-cell::before,
  .admin-table-actions::before,
  .admin-table-header {
    font-size: 11px;
  }

  .admin-table-cell input,
  .admin-table-cell textarea,
  .admin-table-cell select,
  .admin-table-cell.admin-readonly strong {
    padding: 8px 10px;
    font-size: 12px;
  }

  .admin-table-cell textarea {
    min-height: 82px;
  }

  .admin-ui-button,
  .admin-text-btn,
  .admin-export-btn,
  .admin-upload-btn {
    font-size: 12px;
  }

  .admin-mini-btn,
  .admin-shell .btn {
    font-size: 13px;
  }

  .admin-image-head strong,
  .admin-readonly,
  .empty-note,
  .ai-source-card strong,
  .ai-result-copy strong {
    font-size: 13px;
  }

  .admin-image-head span,
  .admin-image-name,
  .ai-step-head span,
  .ai-source-card p,
  .ai-result-copy span,
  .ai-result-empty span {
    font-size: 11px;
  }

  .ai-step,
  .ai-concept-card,
  .ai-result-card,
  .ai-generate-summary > div {
    padding: 12px;
  }

  .ai-step-head strong,
  .ai-upload-zone strong,
  .ai-concept-card strong,
  .ai-generate-summary strong,
  .ai-result-empty strong {
    font-size: 14px;
  }

  .ai-upload-zone {
    min-height: 116px;
    padding: 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dohyeok-guide,
  .dohyeok-guide-character,
  .dohyeok-guide-bubble-wrap,
  .dohyeok-guide-bubble,
  .dohyeok-guide-close,
  .dohyeok-guide-frame {
    transition: none;
  }

  .dohyeok-guide.is-peeking .dohyeok-guide-frame-stack {
    animation: none;
  }

  .dohyeok-guide-character.is-tapped .dohyeok-guide-frame-stack {
    animation: none;
  }

  .reveal-content {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gallery-photo.is-gallery-revealing {
    animation: none;
  }
}
