/*!
 * wedding.css — Codemaru 웨딩 모듈 전용 스타일
 * 네임스페이스: .w-* (기존 Codemaru 스타일과 충돌 방지)
 */

/* ── 변수 ──────────────────────────────────────────── */
:root {
    --w-primary: #c8a882;
    --w-dark: #3a2e28;
    --w-text: #3a2e28;
    --w-bg: #f4e8d4;
    --w-panel-bg: rgba(255,252,243,0.88);
    --w-border: rgba(200,168,130,0.32);
    --w-radius: 12px;
    --w-shadow: 0 4px 24px rgba(58,46,40,.12);
}

/* 전역 가로 스크롤 방지 + box-sizing 표준화 */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
*, *::before, *::after {
    box-sizing: border-box;
}

/* 테마 변수가 body에 적용되면 배경·텍스트 전반에 반영 */
body {
    background-color: var(--w-bg);
    color: var(--w-text);
    transition: background-color .4s, color .4s;
}

/* 레이아웃/테마 토큰은 현재 청첩장 루트에만 적용합니다. */
.w-runtime-layout {
    min-height: 100vh;
    color: var(--w-text);
    background: var(--w-bg);
}
.w-runtime-layout .w-btn--primary {
    background: var(--w-button-bg, var(--w-primary));
    color: var(--w-button-text, #fff);
    border-color: var(--w-button-bg, var(--w-primary));
}
.w-runtime-layout .w-invite-tabs-bar {
    background: var(--w-nav-bg, var(--w-panel-bg));
    color: var(--w-nav-text, var(--w-text));
}

/* ── LayoutDefinition 블록 렌더러 ─────────────────────
   클래스와 변수 값은 Contracts enum/숫자에서만 생성됩니다. */
.w-dynamic-layout, .w-db--page { min-height: 100vh; }
.w-db {
    min-width: 0;
    grid-column: span var(--w-db-span-mobile, 1);
}
.w-db--page, .w-db--section, .w-db--container, .w-db--grid, .w-db--card {
    display: grid;
    grid-template-columns: repeat(var(--w-db-columns-mobile, 1), minmax(0, 1fr));
    gap: var(--w-db-gap-mobile, 1rem);
}
.w-db--stack {
    display: flex;
    flex-direction: column;
    gap: var(--w-db-gap-mobile, 1rem);
}
.w-db--page {
    width: min(100%, 1120px);
    margin-inline: auto;
    background: var(--w-bg);
}
.w-db--section, .w-db--container {
    width: min(100%, 960px);
    margin-inline: auto;
    padding: clamp(1rem, 4vw, 3rem);
}
.w-db--grid {
    width: 100%;
}
.w-db--card {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    background: var(--w-panel-bg);
}
.w-db--wrap { flex-wrap: wrap; }
.w-db--justify-start { justify-content: flex-start; }
.w-db--justify-center { justify-content: center; }
.w-db--justify-end { justify-content: flex-end; }
.w-db--justify-spacebetween { justify-content: space-between; }
.w-db--justify-spacearound { justify-content: space-around; }
.w-db--mobile-align-start { align-items: flex-start; }
.w-db--mobile-align-center { align-items: center; }
.w-db--mobile-align-end { align-items: flex-end; }
.w-db--mobile-align-stretch { align-items: stretch; }
.w-db--variant-muted { background: color-mix(in srgb, var(--w-bg) 72%, var(--w-panel-bg)); }
.w-db--variant-accent { background: color-mix(in srgb, var(--w-primary) 12%, var(--w-panel-bg)); }
.w-db--variant-outlined { border: 1px solid var(--w-border); }
.w-db--variant-elevated {
    background: var(--w-panel-bg);
    box-shadow: var(--w-shadow);
}
.w-db--hero {
    position: relative;
    display: grid;
    min-height: min(88svh, 900px);
    overflow: hidden;
    place-items: center;
    color: var(--w-button-text, #fff);
    background: color-mix(in srgb, var(--w-primary) 55%, var(--w-dark));
}
.w-db-hero__image, .w-db-hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.w-db-hero__image {
    object-fit: var(--w-hero-image-fit-desktop, contain);
    object-position: var(--w-hero-image-position-desktop, 50% 50%);
}
@media (max-width: 640px) {
    .w-db-hero__image {
        object-fit: var(--w-hero-image-fit-mobile, var(--w-hero-image-fit-desktop, contain));
        object-position: var(--w-hero-image-position-mobile, var(--w-hero-image-position-desktop, 50% 50%));
    }
}
.w-db-hero__overlay { background: linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.5)); }
.w-db-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(var(--w-db-columns-mobile, 1), minmax(0, 1fr));
    width: min(92%, 760px);
    align-items: center;
    gap: var(--w-db-gap-mobile, .75rem);
    padding: clamp(1.5rem, 6vw, 4rem);
    text-align: center;
}
.w-db-hero__content h1 {
    margin: 0;
    font: 700 clamp(2rem, 8vw, 4.5rem)/1.15 'Noto Serif KR', Georgia, serif;
}
.w-db-kicker {
    margin: 0;
    color: var(--w-accent, currentColor);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.w-db--heading, .w-db--text { margin: 0; white-space: pre-line; }
.w-db--text-small { font-size: .82rem; }
.w-db--text-body { font-size: 1rem; }
.w-db--text-lead { font-size: clamp(1.05rem, 3vw, 1.35rem); line-height: 1.8; }
.w-db--text-title { font-size: clamp(1.5rem, 5vw, 2.4rem); line-height: 1.3; }
.w-db--text-display { font-size: clamp(2rem, 8vw, 4.5rem); line-height: 1.12; }
.w-db--weight-regular { font-weight: 400; }
.w-db--weight-medium { font-weight: 500; }
.w-db--weight-semibold { font-weight: 600; }
.w-db--weight-bold { font-weight: 700; }
.w-db--text-align-start { text-align: start; }
.w-db--text-align-center { text-align: center; }
.w-db--text-align-end { text-align: end; }
.w-db--text-align-stretch { text-align: start; }
.w-db--image { margin: 0; overflow: hidden; }
.w-db--image img { display: block; width: 100%; height: 100%; }
.w-db--fit-contain img { object-fit: contain; }
.w-db--fit-cover img { object-fit: cover; }
.w-db--aspect-square { aspect-ratio: 1; }
.w-db--aspect-portrait { aspect-ratio: 3 / 4; }
.w-db--aspect-landscape { aspect-ratio: 4 / 3; }
.w-db--aspect-wide { aspect-ratio: 16 / 9; }
.w-db--radius-small { border-radius: .35rem; }
.w-db--radius-medium { border-radius: .75rem; }
.w-db--radius-large { border-radius: 1.5rem; }
.w-db--radius-round { border-radius: 999px; }
.w-db--countdown, .w-db--calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: clamp(1rem, 4vw, 2rem);
    text-align: center;
}
.w-db--countdown strong {
    color: var(--w-primary);
    font: 700 clamp(2rem, 8vw, 4rem)/1 Georgia, serif;
}
.w-db--navigation {
    position: sticky;
    z-index: 20;
    bottom: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(4rem, 1fr);
    overflow-x: auto;
    border-top: 1px solid var(--w-border);
    background: var(--w-nav-bg, var(--w-panel-bg));
    box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
.w-db--navigation button {
    display: grid;
    min-height: 3.5rem;
    place-content: center;
    gap: .15rem;
    padding: .45rem;
    border: 0;
    color: var(--w-nav-text, var(--w-text));
    background: transparent;
    cursor: pointer;
}
.w-db--navigation small { white-space: nowrap; }
.w-db--button {
    width: fit-content;
    min-height: 2.75rem;
    padding: .7rem 1.1rem;
    border: 1px solid var(--w-button-bg, var(--w-primary));
    border-radius: 999px;
    color: var(--w-button-text, #fff);
    background: var(--w-button-bg, var(--w-primary));
    cursor: pointer;
}
.w-db--divider { width: 100%; border: 0; border-top: 1px solid var(--w-border); }
.w-db--spacer { min-height: var(--w-db-gap-mobile, 1rem); }
.w-db-contact-list { display: grid; gap: .75rem; }
.w-db-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    background: var(--w-panel-bg);
}

@media (max-width: 639px) {
    .w-db--mobile-hidden { display: none !important; }
}
@media (min-width: 640px) {
    .w-db { grid-column: span var(--w-db-span-tablet, 1); }
    .w-db--page, .w-db--section, .w-db--container, .w-db--grid, .w-db--card {
        grid-template-columns: repeat(var(--w-db-columns-tablet, 1), minmax(0, 1fr));
        gap: var(--w-db-gap-tablet, 1rem);
    }
    .w-db--stack {
        gap: var(--w-db-gap-tablet, 1rem);
    }
    .w-db-hero__content {
        grid-template-columns: repeat(var(--w-db-columns-tablet, 1), minmax(0, 1fr));
        gap: var(--w-db-gap-tablet, 1rem);
    }
    .w-db--tablet-align-start { align-items: flex-start; }
    .w-db--tablet-align-center { align-items: center; }
    .w-db--tablet-align-end { align-items: flex-end; }
    .w-db--tablet-align-stretch { align-items: stretch; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .w-db--tablet-hidden { display: none !important; }
}
@media (min-width: 1024px) {
    .w-db { grid-column: span var(--w-db-span-desktop, 1); }
    .w-db--page, .w-db--section, .w-db--container, .w-db--grid, .w-db--card {
        grid-template-columns: repeat(var(--w-db-columns-desktop, 1), minmax(0, 1fr));
        gap: var(--w-db-gap-desktop, 1rem);
    }
    .w-db--stack {
        gap: var(--w-db-gap-desktop, 1rem);
    }
    .w-db-hero__content {
        grid-template-columns: repeat(var(--w-db-columns-desktop, 1), minmax(0, 1fr));
        gap: var(--w-db-gap-desktop, 1rem);
    }
    .w-db--desktop-align-start { align-items: flex-start; }
    .w-db--desktop-align-center { align-items: center; }
    .w-db--desktop-align-end { align-items: flex-end; }
    .w-db--desktop-align-stretch { align-items: stretch; }
    .w-db--desktop-hidden { display: none !important; }
}

/* ── 로딩 / 404 ────────────────────────────────────── */
.w-loading {
    display: flex; align-items: center; justify-content: center;
    min-height: 60vh;
}
.w-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--w-border);
    border-top-color: var(--w-primary);
    border-radius: 50%;
    animation: w-spin .8s linear infinite;
}
@keyframes w-spin { to { transform: rotate(360deg); } }

.w-notfound {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 60vh; gap: 1rem;
    font-family: serif; color: var(--w-text);
}
.w-notfound h1 { font-size: 5rem; margin: 0; }

/* ── 히어로 ────────────────────────────────────────── */
.w-hero {
    position: relative;
    min-height: 85svh;
    display: flex; align-items: stretch; justify-content: center;
    overflow: hidden;
    font-family: 'Noto Serif KR', 'Georgia', serif;
}
.w-hero--thankyou {
    min-height: 70svh;
}
.w-hero__bg {
    position: absolute; inset: 0;
    background-size: var(--w-hero-image-fit-desktop, contain);
    background-position: var(--w-hero-image-position-desktop, 50% 50%);
    background-repeat: no-repeat;
    background-color: var(--w-bg);
    background-attachment: scroll;
}
@media (max-width: 640px) {
    .w-hero__bg {
        background-size: var(--w-hero-image-fit-mobile, var(--w-hero-image-fit-desktop, contain));
        background-position: var(--w-hero-image-position-mobile, var(--w-hero-image-position-desktop, 50% 50%));
    }
}
/* 감사장 히어로는 인물이 위쪽에 오는 사진이 많아 상단 위주로 보이도록 조정 */
.w-hero--thankyou .w-hero__bg {
    background-position: center top;
}
.w-hero__bg--default {
    background: linear-gradient(135deg, #f5ede0 0%, #e8d5c0 50%, #d4b896 100%);
}
.w-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(30,20,10,.3) 0%,
        rgba(30,20,10,.1) 40%,
        rgba(30,20,10,.5) 100%);
}
.w-hero__content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: space-between;
    width: 100%; max-width: 520px;
    min-height: 85svh;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    gap: 0;
}
.w-hero--thankyou .w-hero__content { min-height: 70svh; }

.w-hero--invite-positioned .w-hero__content {
    position: relative;
    justify-content: initial;
}
.w-hero--invite-positioned .w-panel {
    position: absolute;
    max-width: calc(100% - 3rem);
}
.w-hero--style-tabs .w-hero__bottom {
    display: block;
}
.w-invite-tabs-bar {
    position: fixed;
    left: 1rem;
    right: 1rem;
    max-width: min(560px, calc(100vw - 2rem));
    margin: 0 auto;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: flex-start;
    gap: .1rem;
    padding: .65rem .55rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(200, 168, 130, .28);
    box-shadow: 0 12px 32px rgba(58, 46, 40, .18);
    overflow-x: auto;
    scrollbar-width: none;
    z-index: 880;
}
.w-invite-tabs-bar::-webkit-scrollbar {
    display: none;
}
.w-invite-tabs-bar button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    border: 0;
    background: transparent;
    color: var(--w-dark);
    font: inherit;
    cursor: pointer;
    min-width: 0;
    flex: 0 0 3.35rem;
}
.w-invite-tabs-bar button.active span {
    background: var(--w-primary);
    color: #fff;
}
.w-invite-tabs-bar ~ .w-invite-tab-page,
.w-invite-tabs-bar ~ .w-video.w-invite-tab-page,
.w-invite-tabs-bar ~ .w-gallery.w-invite-tab-page,
.w-invite-tabs-bar ~ .w-gift.w-invite-tab-page,
.w-invite-tabs-bar ~ .w-guestbook.w-invite-tab-page {
    position: fixed;
    inset: 0;
    isolation: isolate;
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: 5rem clamp(1rem, 5vw, 5rem) 9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden auto;
    border-top: 0;
    background: var(--w-bg);
    z-index: 1;
}
.w-invite-tabs-bar ~ .w-invite-tab-page::before,
.w-invite-tabs-bar ~ .w-video.w-invite-tab-page::before,
.w-invite-tabs-bar ~ .w-gallery.w-invite-tab-page::before,
.w-invite-tabs-bar ~ .w-gift.w-invite-tab-page::before,
.w-invite-tabs-bar ~ .w-guestbook.w-invite-tab-page::before {
    content: "";
    position: absolute;
    inset: -1rem;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 12%, color-mix(in srgb, var(--w-primary) 30%, transparent), transparent 32%),
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--w-primary) 18%, transparent), transparent 30%),
        linear-gradient(145deg, var(--w-bg), color-mix(in srgb, var(--w-primary) 18%, #fff));
    opacity: .95;
}
.w-invite-tabs-bar ~ .w-invite-tab-page::after,
.w-invite-tabs-bar ~ .w-video.w-invite-tab-page::after,
.w-invite-tabs-bar ~ .w-gallery.w-invite-tab-page::after,
.w-invite-tabs-bar ~ .w-gift.w-invite-tab-page::after,
.w-invite-tabs-bar ~ .w-guestbook.w-invite-tab-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.72)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 1px, transparent 1px 18px);
}
.w-invite-tabs-bar ~ .w-invite-tab-page > * {
    position: relative;
    width: min(100%, 760px);
    z-index: 1;
}
.w-invite-tabs-bar ~ .w-invite-tab-page > .w-section-title {
    width: min(100%, 760px);
}
.w-invite-tabs-bar ~ .w-invite-tab-page > :not(.w-section-title):not(.w-gallery__controls):not(.w-copy-feedback):not(.w-divider) {
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(200,168,130,.22);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(58,46,40,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.25rem;
}
.w-invite-tabs-bar span {
    display: inline-flex;
    width: 2.1rem;
    height: 2.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 168, 130, .16);
    color: #9b754a;
    font-size: 1rem;
}
.w-invite-tabs-bar small {
    font-size: .7rem;
    white-space: nowrap;
}

/* ── 히어로 문구 패널 위치 (PC/모바일 별도 지정, 어드민에서 설정) ──
   가로(좌/중/우)는 .w-hero의 justify-content로, 세로(상/중/하)는
   .w-hero__content의 justify-content로 제어합니다. */
@media (min-width: 769px) {
    .w-hero-panel--dv-top { top: 2rem; bottom: auto; }
    .w-hero-panel--dv-middle { top: 50%; bottom: auto; transform: translateY(-50%); }
    .w-hero-panel--dv-bottom { top: auto; bottom: 2rem; }
    .w-hero-panel--dh-left { left: 1.5rem; right: auto; }
    .w-hero-panel--dh-center { left: 50%; right: auto; transform: translateX(-50%); }
    .w-hero-panel--dh-right { left: auto; right: 1.5rem; }
    .w-hero-panel--dv-middle.w-hero-panel--dh-center { transform: translate(-50%, -50%); }
    .w-hero--dh-left { justify-content: flex-start; }
    .w-hero--dh-center { justify-content: center; }
    .w-hero--dh-right { justify-content: flex-end; }
    .w-hero--dh-left .w-hero__content { margin-left: 0; margin-right: auto; }
    .w-hero--dh-center .w-hero__content { margin-left: auto; margin-right: auto; }
    .w-hero--dh-right .w-hero__content { margin-left: auto; margin-right: 0; }
    .w-hero__content.w-hero__content--dv-top { justify-content: flex-start; }
    .w-hero__content.w-hero__content--dv-middle { justify-content: center; }
    .w-hero__content.w-hero__content--dv-bottom { justify-content: flex-end; }
}
@media (max-width: 768px) {
    .w-hero-panel--mv-top { top: 1.2rem; bottom: auto; }
    .w-hero-panel--mv-middle { top: 50%; bottom: auto; transform: translateY(-50%); }
    .w-hero-panel--mv-bottom { top: auto; bottom: 1.2rem; }
    .w-hero-panel--mh-left { left: 1rem; right: auto; }
    .w-hero-panel--mh-center { left: 50%; right: auto; transform: translateX(-50%); }
    .w-hero-panel--mh-right { left: auto; right: 1rem; }
    .w-hero-panel--mv-middle.w-hero-panel--mh-center { transform: translate(-50%, -50%); }
    .w-hero--mh-left { justify-content: flex-start; }
    .w-hero--mh-center { justify-content: center; }
    .w-hero--mh-right { justify-content: flex-end; }
    .w-hero--mh-left .w-hero__content { margin-left: 0; margin-right: auto; }
    .w-hero--mh-center .w-hero__content { margin-left: auto; margin-right: auto; }
    .w-hero--mh-right .w-hero__content { margin-left: auto; margin-right: 0; }
    .w-hero__content.w-hero__content--mv-top { justify-content: flex-start; }
    .w-hero__content.w-hero__content--mv-middle { justify-content: center; }
    .w-hero__content.w-hero__content--mv-bottom { justify-content: flex-end; }

    .w-hero--style-tabs {
        min-height: 100svh;
        max-height: none;
    }

    .w-hero--style-tabs .w-hero__bg {
        filter: saturate(.95) brightness(.96);
        transform: none;
    }

    .w-hero--style-tabs .w-hero__overlay {
        background: linear-gradient(to bottom,
            rgba(255,255,255,.18) 0%,
            rgba(30,20,10,.14) 46%,
            rgba(30,20,10,.44) 100%);
    }

    .w-hero--style-tabs .w-hero__content {
        min-height: 100svh;
        max-width: 430px;
        justify-content: flex-start;
        gap: .65rem;
        padding: 1rem 1rem 8.4rem;
    }

    .w-hero--style-tabs.w-hero--invite-positioned .w-panel {
        position: absolute;
        max-width: calc(100% - 2rem);
    }

    .w-hero--style-tabs .w-hero__top {
        padding: .7rem .9rem;
    }

    .w-hero--style-tabs .w-hero__bottom {
        margin-top: auto;
        padding: .65rem .85rem;
    }

    .w-hero--style-tabs .w-hero__title {
        font-size: 1.25rem;
        letter-spacing: .16em;
        margin-bottom: .3rem;
    }

    .w-hero--style-tabs .w-hero__names {
        font-size: .95rem;
        margin-bottom: .1rem;
    }

    .w-hero--style-tabs .w-hero__date,
    .w-hero--style-tabs .w-hero__venue,
    .w-hero--style-tabs .w-hero__addr {
        font-size: .76rem;
        line-height: 1.35;
    }

    .w-hero--style-tabs .w-hero__cta {
        margin-top: .45rem;
        gap: .35rem;
    }

    .w-hero--style-tabs .w-hero__cta .w-btn {
        padding: .45rem .65rem;
        font-size: .78rem;
    }

    .w-invite-tabs-bar ~ .w-invite-tab-page,
    .w-invite-tabs-bar ~ .w-video.w-invite-tab-page,
    .w-invite-tabs-bar ~ .w-gallery.w-invite-tab-page,
    .w-invite-tabs-bar ~ .w-gift.w-invite-tab-page,
    .w-invite-tabs-bar ~ .w-guestbook.w-invite-tab-page {
        height: 100dvh;
        min-height: 0;
        padding-top: 4.25rem;
        padding-bottom: 9rem;
    }
}
.w-panel {
    background: var(--w-panel-bg);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    padding: 1.1rem 1.5rem;
    text-align: center;
    box-shadow: var(--w-shadow);
    width: 100%;
}
.w-hero__top { padding: .9rem 1.5rem; }
.w-hero__bottom { padding: 1rem 1.5rem; }
.w-hero__title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 300; letter-spacing: .25em;
    color: var(--w-dark); margin: 0 0 .5rem;
}
.w-hero__names {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 600; margin: 0 0 .25rem;
}
.w-hero__date, .w-hero__venue, .w-hero__addr {
    font-size: .9rem; color: #6b5a4e; margin: .2rem 0;
}
.w-hero__cta { margin-top: 1rem; }

/* ── 버튼 ──────────────────────────────────────────── */
.w-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .55rem 1.2rem;
    border: 1px solid var(--w-primary);
    border-radius: 6px;
    background: transparent;
    color: var(--w-dark);
    font-size: .9rem; cursor: pointer;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.w-btn:hover { background: var(--w-primary); color: #fff; }
.w-btn--primary { background: var(--w-primary); color: #fff; border-color: var(--w-primary); }
.w-btn--primary:hover { background: #b4905e; }
.w-btn--danger { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.w-btn--sm { font-size: .78rem; padding: .3rem .7rem; }

/* ── 섹션 공통 ─────────────────────────────────────── */
.w-story, .w-details, .w-gallery, .w-guestbook, .w-thankyou-msg {
    max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem;
}
.w-section-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.5rem; font-weight: 600;
    color: var(--w-dark); margin: 0 0 1.5rem;
    text-align: center;
}
.w-divider {
    border: none; border-top: 1px solid var(--w-border);
    margin: 1.5rem 0;
}
.w-info-list {
    list-style: none; padding: 0; margin: 0 0 1.5rem;
    display: flex; flex-direction: column; gap: .5rem;
}
.w-info-list li { display: flex; gap: .75rem; }
.w-info-list strong { min-width: 3.5rem; color: var(--w-primary); }

/* ── 탭 ────────────────────────────────────────────── */
.w-tabs {
    display: flex; gap: .5rem; margin-bottom: 1rem;
}
.w-tab {
    flex: 1; padding: .5rem;
    border: 1px solid var(--w-border); border-radius: 6px;
    background: transparent; cursor: pointer;
    font-size: .9rem; transition: background .2s;
}
.w-tab.active { background: var(--w-primary); color: #fff; border-color: var(--w-primary); }

/* ── 지도 버튼 ─────────────────────────────────────── */
.w-map-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.w-map-btn {
    display: inline-block; padding: .6rem 1.2rem;
    border-radius: 6px; font-size: .9rem;
    text-decoration: none; color: #fff;
}
.w-map-btn--kakao  { background: #fee500; color: #3a1d1d; }
.w-map-btn--naver  { background: #03c75a; }
.w-map-btn--atlan  { background: #f04e37; }
.w-map-btn--tmap   { background: #3182f6; }
.w-map-links { margin-top: .75rem; }
.w-ceremony-note { margin-top: 1.5rem; }
.w-ceremony-note--markdown {
    padding: 1.5rem;
    background: var(--w-bg);
    border-radius: var(--w-radius);
}
.w-ceremony-note--html {
    max-width: 100%;
}
.w-ceremony-note--html img,
.w-ceremony-note--html video {
    max-width: 100%;
    height: auto;
}
.w-ceremony-note--html table {
    max-width: 100%;
}
.w-road-placeholder {
    border: 2px dashed var(--w-border);
    border-radius: var(--w-radius);
    padding: 2rem; text-align: center;
    color: #999;
}

/* ── 갤러리 ────────────────────────────────────────── */
.w-gallery__controls { text-align: center; margin-bottom: 1rem; }
.w-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .5rem;
}
.w-gallery__item {
    aspect-ratio: 1; overflow: hidden;
    border: none; padding: 0; cursor: pointer;
    border-radius: 6px; background: #f0e8de;
}
.w-gallery__item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s;
}
.w-gallery__item:hover img { transform: scale(1.05); }

/* ── 프리미엄 레이아웃: Gallery / Story ───────────── */
.wedding-layout-gallery,
.wedding-layout-story {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 24px 16px 96px;
}

.wedding-layout-gallery > section,
.wedding-layout-story > section {
    margin: 0 auto 28px;
}

.wedding-layout-kicker {
    margin: 0 0 .45rem;
    color: var(--w-primary);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wedding-layout-muted {
    color: color-mix(in srgb, var(--w-text) 64%, transparent);
}

.wedding-layout-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wedding-layout-heading h2,
.wedding-story-section h2 {
    margin: 0;
    color: var(--w-dark);
}

.wedding-layout-heading span {
    color: color-mix(in srgb, var(--w-text) 58%, transparent);
    font-size: .9rem;
}

.wedding-gallery-cover,
.wedding-story-cover {
    display: grid;
    gap: 1rem;
    align-items: stretch;
}

.wedding-gallery-cover {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
}

.wedding-gallery-cover__media,
.wedding-story-cover__image {
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--w-radius);
    background: color-mix(in srgb, var(--w-primary) 12%, var(--w-bg));
    box-shadow: var(--w-shadow);
}

.wedding-gallery-cover__media {
    position: relative;
}

.wedding-gallery-cover__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: var(--w-hero-image-fit-desktop, contain);
    object-position: var(--w-hero-image-position-desktop, 50% 50%);
}

.wedding-story-cover__image {
    width: 100%;
    object-fit: var(--w-hero-image-fit-desktop, contain);
    object-position: var(--w-hero-image-position-desktop, 50% 50%);
}

.wedding-gallery-cover__image--empty {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--w-primary) 16%, var(--w-bg)), var(--w-bg));
}

.wedding-gallery-cover__panel,
.wedding-story-cover__text,
.wedding-story-section,
.wedding-gallery-section,
.wedding-gallery-empty {
    background: var(--w-panel-bg);
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    box-shadow: var(--w-shadow);
}

.wedding-gallery-cover__panel,
.wedding-story-cover__text {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 5vw, 44px);
}

.wedding-gallery-cover__panel h1,
.wedding-story-cover__text h1 {
    margin: 0 0 .75rem;
    color: var(--w-dark);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
}

.wedding-gallery-section,
.wedding-story-section {
    padding: clamp(22px, 4vw, 36px);
}

.wedding-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.wedding-gallery-tile {
    margin: 0;
    aspect-ratio: 1;
    overflow: hidden;
    border: 0;
    padding: 0;
    border-radius: calc(var(--w-radius) - 4px);
    background: color-mix(in srgb, var(--w-primary) 12%, var(--w-bg));
}

.wedding-gallery-tile img,
.wedding-story-photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wedding-gallery-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: color-mix(in srgb, var(--w-text) 64%, transparent);
}

.wedding-story-cover {
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.1fr);
    max-width: 900px;
}

.wedding-story-section {
    max-width: 760px;
    line-height: 1.9;
}

.wedding-story-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.wedding-story-photo-grid figure,
.wedding-story-photo-grid button {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 0;
    padding: 0;
    border-radius: calc(var(--w-radius) - 4px);
    background: transparent;
}

/* Story 흐름 중간에 배치되는 대표 사진 (본문 텍스트 사이 삽입) */
.wedding-story-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
    margin: 1.25rem 0 1.5rem;
}
.wedding-story-feature-grid figure {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: calc(var(--w-radius) - 4px);
    background: color-mix(in srgb, var(--w-primary) 10%, var(--w-bg));
}
.wedding-story-feature-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* "사진 더 보기" 버튼 컨테이너 (Gallery/Story 공용) */
.wedding-layout-more {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
.wedding-layout-more .w-btn {
    min-width: 12rem;
}

@media (max-width: 760px) {
    .wedding-layout-gallery,
    .wedding-layout-story {
        padding: 16px 12px 96px;
    }

    .wedding-gallery-cover,
    .wedding-story-cover {
        grid-template-columns: 1fr;
    }

    /* 폰에서는 2열 그리드로 (요구사항: 1~2열 자연스럽게) */
    .wedding-gallery-grid,
    .wedding-story-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wedding-story-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wedding-gallery-cover__media,
    .wedding-story-cover__image {
        min-height: 320px;
    }

    .wedding-layout-heading {
        display: block;
    }
}

@media (max-width: 640px) {
    .wedding-gallery-cover__image,
    .wedding-story-cover__image {
        object-fit: var(--w-hero-image-fit-mobile, var(--w-hero-image-fit-desktop, contain));
        object-position: var(--w-hero-image-position-mobile, var(--w-hero-image-position-desktop, 50% 50%));
    }
}

/* ═══════════════════════════════════════════════════════════
 * Story 레이아웃 — 챕터/타임라인 흐름형 (Gallery와 시각 구분)
 * ═══════════════════════════════════════════════════════════ */

.wedding-layout-story {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 6rem);
    padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 4vw, 3rem) 6rem;
    max-width: 960px;
    margin: 0 auto;
}

.wedding-story-chapter {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    position: relative;
    padding-top: 2rem;
    border-top: 1px solid color-mix(in srgb, var(--w-primary) 22%, transparent);
}
.wedding-story-chapter:first-of-type {
    border-top: 0;
    padding-top: 0;
}
/* 짝수 챕터는 좌우 반전 (지그재그 타임라인 느낌) */
.wedding-story-chapter--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.wedding-story-chapter--reverse .wedding-story-hero-photo {
    order: 2;
}
.wedding-story-chapter--reverse .wedding-story-text-block {
    order: 1;
}
/* 마지막 챕터 (마무리 문구) — 사진 없이 텍스트만 크게 */
.wedding-story-chapter--closing {
    grid-template-columns: 1fr;
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem) 0;
}
.wedding-story-chapter--closing .wedding-story-chapter-label {
    justify-content: center;
    text-align: center;
}

.wedding-story-chapter-label {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1.25rem;
    font-family: 'Noto Serif KR', serif;
}
.wedding-story-chapter-label__no {
    font-size: .8rem;
    letter-spacing: .32em;
    color: var(--w-primary);
    font-weight: 600;
}
.wedding-story-chapter-label__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--w-dark);
    font-weight: 600;
    letter-spacing: .05em;
}

.wedding-story-hero-photo {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--w-radius);
    background: color-mix(in srgb, var(--w-primary) 8%, var(--w-bg));
    box-shadow: 0 10px 30px rgba(58, 46, 40, .12);
}
.wedding-story-hero-photo--portrait {
    aspect-ratio: 3 / 4;
}
.wedding-story-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wedding-story-text-block {
    font-family: 'Noto Serif KR', serif;
    line-height: 1.9;
    font-size: clamp(.95rem, 1.5vw, 1.05rem);
    color: var(--w-text);
}
.wedding-story-text-block--wide {
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}
.wedding-story-text-block p {
    margin: 0 0 1rem;
}
.wedding-story-text-block p:last-child {
    margin-bottom: 0;
}
.wedding-story-text-block h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: .25rem 0 .75rem;
    font-weight: 300;
    letter-spacing: .1em;
    color: var(--w-dark);
}

.wedding-story-kicker {
    font-size: .78rem;
    letter-spacing: .3em;
    color: var(--w-primary);
    text-transform: uppercase;
    margin: 0 0 .35rem;
    font-weight: 600;
}
.wedding-story-lede {
    color: color-mix(in srgb, var(--w-text) 74%, transparent);
    font-size: .95rem;
    margin: 0 0 1.25rem;
}

.wedding-story-facts {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.wedding-story-facts > div {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1rem;
    align-items: baseline;
}
.wedding-story-facts dt {
    font-size: .8rem;
    letter-spacing: .2em;
    color: var(--w-primary);
    margin: 0;
    font-weight: 600;
}
.wedding-story-facts dd {
    margin: 0;
    color: var(--w-text);
}

/* 하단 보조 사진 영역 — Story의 메인처럼 보이지 않도록 여백/투명도로 낮춤 */
.wedding-story-moment-strip {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed color-mix(in srgb, var(--w-primary) 32%, transparent);
    opacity: .92;
}
.wedding-story-moment-strip .wedding-layout-heading {
    margin-bottom: 1rem;
}
.wedding-story-moment-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
}
.wedding-story-moment-strip__grid figure {
    margin: 0;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: color-mix(in srgb, var(--w-primary) 6%, var(--w-bg));
}
.wedding-story-moment-strip__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wedding-photo-thumb {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: inherit;
}

.wedding-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wedding-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    outline: none;
}

.wedding-photo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
}

.wedding-photo-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(94vw, 1080px);
    height: min(88svh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wedding-photo-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
    background: #111;
}

.wedding-photo-lightbox-close,
.wedding-photo-lightbox-nav {
    position: absolute;
    z-index: 2;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #222;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    cursor: pointer;
}

.wedding-photo-lightbox-close {
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    line-height: 1;
}

.wedding-photo-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 2rem;
    line-height: 1;
}

.wedding-photo-lightbox-nav--prev { left: 0; }
.wedding-photo-lightbox-nav--next { right: 0; }

.wedding-photo-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 2;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .9rem;
}

.wedding-layout-story > .w-video {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.wedding-layout-story > .w-video .w-section-title {
    text-align: center;
}

.wedding-layout-story > .w-video .w-video__grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
    justify-content: center;
}

.wedding-layout-gallery > .w-details,
.wedding-layout-gallery > .w-gift,
.wedding-layout-gallery > .w-guestbook,
.wedding-layout-story > .w-details,
.wedding-layout-story > .w-gift,
.wedding-layout-story > .w-guestbook {
    width: min(100%, 820px);
    max-width: 820px;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    border-top: 1px solid var(--w-border);
    background: var(--w-panel-bg);
    box-shadow: var(--w-shadow);
}

.wedding-layout-gallery > .w-details .w-tabs,
.wedding-layout-story > .w-details .w-tabs {
    max-width: 420px;
    margin-inline: auto;
}

.wedding-layout-gallery > .w-details .w-map-links,
.wedding-layout-story > .w-details .w-map-links {
    justify-content: center;
}

.wedding-layout-gallery > .w-details .w-osm__frame,
.wedding-layout-story > .w-details .w-osm__frame {
    height: clamp(280px, 42vw, 420px);
    border-radius: calc(var(--w-radius) - 4px);
    box-shadow: var(--w-shadow);
}

.wedding-layout-gallery > .w-gift .w-gift__cards,
.wedding-layout-story > .w-gift .w-gift__cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
}

.wedding-layout-gallery > .w-guestbook .w-gb__form,
.wedding-layout-gallery > .w-guestbook .w-gb__list,
.wedding-layout-story > .w-guestbook .w-gb__form,
.wedding-layout-story > .w-guestbook .w-gb__list {
    width: min(100%, 640px);
    margin-inline: auto;
}

.wedding-layout-gallery > .w-guestbook .w-gb__list,
.wedding-layout-story > .w-guestbook .w-gb__list {
    margin-block: 0;
}

/* Story 레이아웃 반응형 — 모바일은 단일 컬럼 흐름 */
@media (max-width: 760px) {
    .wedding-layout-story {
        padding: 1.5rem 1rem 6rem;
        gap: 2.5rem;
    }
    .wedding-story-chapter,
    .wedding-story-chapter--reverse {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    /* 모바일에서는 사진 위, 텍스트 아래 순서로 통일 */
    .wedding-story-chapter--reverse .wedding-story-hero-photo { order: 0; }
    .wedding-story-chapter--reverse .wedding-story-text-block { order: 1; }

    .wedding-story-hero-photo {
        aspect-ratio: 4 / 3;
    }
    .wedding-story-hero-photo--portrait {
        aspect-ratio: 4 / 5;
    }

    .wedding-story-moment-strip__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wedding-layout-gallery > .w-details,
    .wedding-layout-gallery > .w-gift,
    .wedding-layout-gallery > .w-guestbook,
    .wedding-layout-story > .w-details,
    .wedding-layout-story > .w-gift,
    .wedding-layout-story > .w-guestbook {
        padding: 1.2rem;
    }

    .wedding-layout-gallery > .w-details .w-osm__frame,
    .wedding-layout-story > .w-details .w-osm__frame {
        height: 300px;
    }
}

/* ── 라이트박스 ────────────────────────────────────── */
.w-lb__backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 1000;
}
.w-lightbox {
    position: fixed; inset: 0;
    z-index: 1001;
    display: flex; align-items: center; justify-content: center;
    outline: none;
}
.w-lb__img {
    max-width: 90vw; max-height: 90svh;
    object-fit: contain; border-radius: 4px;
}
.w-lb__close {
    position: fixed; top: 1rem; right: 1rem;
    background: rgba(255,255,255,.15); border: none;
    color: #fff; font-size: 1.6rem; cursor: pointer;
    border-radius: 50%; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    z-index: 1002;
}
.w-lb__prev, .w-lb__next {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none;
    color: #fff; font-size: 2.5rem; cursor: pointer;
    border-radius: 50%; width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    z-index: 1002;
}
.w-lb__prev { left: 1rem; }
.w-lb__next { right: 1rem; }
.w-lb__counter {
    position: fixed; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.8); font-size: .9rem;
    z-index: 1002;
}

/* ── 방명록 ────────────────────────────────────────── */
.w-guestbook { border-top: 1px solid var(--w-border); }
.w-gb__form {
    display: flex; flex-direction: column; gap: .75rem;
    margin-bottom: 2rem;
}
.w-input {
    width: 100%; padding: .65rem .9rem;
    border: 1px solid var(--w-border);
    border-radius: 6px; font-size: .95rem;
    background: #fff; color: var(--w-text);
    box-sizing: border-box;
}
.w-input:focus { outline: none; border-color: var(--w-primary); }
.w-textarea { resize: vertical; min-height: 90px; }
.w-gb__actions { display: flex; gap: .5rem; }
.w-status { font-size: .9rem; color: #6b8e5a; margin: 0; }
.w-status--error { color: #c0392b; }
.w-gb__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.w-gb__entry {
    background: #fff;
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    padding: 1rem 1.2rem;
}
.w-gb__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.w-gb__date { font-size: .8rem; color: #999; }
.w-gb__msg { font-size: .95rem; line-height: 1.6; white-space: pre-wrap; }

/* ── 감사장 ────────────────────────────────────────── */
.w-thankyou-msg {
    background: var(--w-panel-bg);
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    padding: 2.5rem; text-align: center;
    line-height: 1.9;
    box-shadow: var(--w-shadow);
}
.w-thankyou-msg p { margin: 0 0 1rem; }

/* ── 어드민 ────────────────────────────────────────── */
.w-admin {
    font-family: system-ui, sans-serif;
}
/* 로그인 / 로딩 화면(3컬럼 셸이 아닐 때)만 좁게 감쌈 */
.w-admin:not(:has(.w-admin-shell)):not(.wedding-admin-shell) {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.w-admin__title { margin-bottom: 2rem; }
.w-admin__login {
    max-width: 360px; margin: 4rem auto;
    display: flex; flex-direction: column; gap: 1rem;
    padding: 2rem;
    background: #fff; border: 1px solid var(--w-border);
    border-radius: var(--w-radius); box-shadow: var(--w-shadow);
}
.w-admin__section {
    margin-bottom: 2.5rem; padding-bottom: 2rem;
    border-bottom: 1px solid var(--w-border);
}
.w-admin__section h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.w-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; color: #555; }
.w-hint  { font-size: .8rem; color: #888; margin: .25rem 0 .75rem; }
.w-admin-users { display: flex; flex-direction: column; gap: .65rem; }
.w-admin-users__item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .85rem 1rem;
    border: 1px solid var(--w-border); border-radius: 8px;
    background: #fff;
}
.w-admin-users__item > div { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.w-admin-users__item span,
.w-admin-users__item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-admin-users__item small { color: #999; font-size: .76rem; }
.w-range { width: 100%; accent-color: #c8a882; margin: .3rem 0 .2rem; cursor: pointer; }
.w-file-input { display: block; margin-bottom: .75rem; }
.w-textarea--code { font-family: 'Courier New', monospace; font-size: .85rem; }
.w-textarea--notice { min-height: 360px; resize: vertical; }
.w-note-toolbar { display: flex; gap: .5rem; margin-bottom: .5rem; }
.w-note-toolbar button { padding: .3rem .8rem; font-size: .8rem; border: 1px solid var(--w-border); border-radius: 4px; cursor: pointer; background: #fff; }
.w-note-toolbar button.active { background: var(--w-primary); color: #fff; border-color: var(--w-primary); }
.w-note-examples { display: flex; flex-wrap: wrap; gap: .45rem; margin: .6rem 0 1rem; }
.w-note-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 1rem;
    align-items: stretch;
}
.w-note-editor { min-width: 0; }
.w-note-preview {
    min-width: 0;
    border: 1px solid var(--w-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.w-note-preview__head {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--w-border);
    color: #6f5a43;
    font-size: .85rem;
    font-weight: 700;
    background: #fbf7f0;
}
.w-note-preview__body {
    min-height: 360px;
    max-height: 560px;
    overflow: auto;
    padding: 1.25rem;
}
.w-note-preview__empty { color: #aaa; font-size: .9rem; }
@media (max-width: 920px) {
    .w-note-editor-grid { grid-template-columns: 1fr; }
    .w-note-preview__body { min-height: 240px; }
}
.w-uploading { font-size: .85rem; color: var(--w-primary); }

.w-story-admin-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.w-story-admin-card {
    border: 1px solid var(--w-border);
    border-radius: 8px;
    padding: 1rem;
    background: color-mix(in srgb, var(--w-bg) 82%, #fff);
}

.w-story-admin-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.w-admin-section-title-row,
.w-story-admin-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.w-story-admin-photo {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .75rem;
    font-size: .85rem;
    color: var(--w-muted);
}

.w-story-admin-photo img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--w-border);
}

.w-admin__photo-order {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .25rem;
    width: 100%;
}

.w-admin__photo-order .w-btn {
    min-width: 0;
    padding-inline: .35rem;
}

/* ── 동영상 (초대장 페이지) ── */
/* 작은 썸네일 그리드로 표시하고, 클릭하면 라이트박스로 크게 재생 */
.w-video { padding: 3rem 1.5rem; text-align: center; }
.w-video__wrap { max-width: 720px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.w-video__player { width: 100%; display: block; background: #000; }
.w-video__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .5rem;
    max-width: 720px; margin: 0 auto;
}
.w-video__item {
    position: relative; aspect-ratio: 9 / 16; overflow: hidden;
    border: none; padding: 0; cursor: pointer;
    border-radius: 8px; background: #000;
}
.w-video__item video {
    width: 100%; height: 100%; object-fit: cover;
    pointer-events: none; /* 썸네일은 재생 컨트롤 없이 클릭만 */
}
.w-video__play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2.2rem;
    background: rgba(0,0,0,.15);
    transition: background .2s;
}
.w-video__item:hover .w-video__play { background: rgba(0,0,0,.3); }
.w-lb__video { max-width: 90vw; max-height: 90svh; background: #000; border-radius: 4px; }

/* ── 동영상 (어드민) ── */
.w-admin__video-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.w-admin__video-item { border: 1px solid var(--w-border); border-radius: 8px; overflow: hidden; }
.w-admin__video-player { width: 100%; max-height: 300px; display: block; background: #000; }
.w-admin__video-meta { display: flex; align-items: center; justify-content: space-between; padding: .5rem .75rem; gap: .5rem; }
.w-admin__video-meta .w-hint {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w-admin__video-meta .w-btn { flex-shrink: 0; }
@media (max-width: 480px) {
    .w-admin__video-meta { flex-wrap: wrap; }
    .w-admin__video-meta .w-hint { flex-basis: 100%; white-space: normal; word-break: break-all; }
}
.w-maplink-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.w-coord-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.w-btn--danger { background: #e53e3e; color: #fff; border-color: #e53e3e; }
.w-btn--danger:hover { background: #c53030; }
.w-btn--sm { padding: .25rem .75rem; font-size: .8rem; }
.w-admin__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .5rem; margin-top: 1rem;
}
.w-admin__gallery-item {
    display: flex; flex-direction: column; gap: .3rem;
    align-items: center;
}
.w-admin__gallery-item img {
    width: 100%; aspect-ratio: 1;
    object-fit: cover; border-radius: 4px;
    border: 1px solid var(--w-border);
}
.w-admin__fname {
    font-size: .7rem; color: #999;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; max-width: 110px;
}
.w-admin__hero-preview {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1rem;
}
.w-admin__hero-preview img {
    width: 120px; height: 80px;
    object-fit: cover; border-radius: 6px;
    border: 1px solid var(--w-border);
}
.w-admin__hero-preview--button {
    width: 100%;
    padding: .65rem;
    cursor: pointer;
    color: var(--w-text);
    text-align: left;
    border: 1px solid var(--w-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
}
.w-admin__hero-preview--button:hover,
.w-admin__hero-preview--button:focus-visible {
    border-color: var(--w-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-primary) 15%, transparent);
    outline: none;
}
.w-admin__hero-preview--button span {
    display: grid;
    min-width: 0;
    gap: .22rem;
}
.w-admin__hero-preview--button b,
.w-admin__hero-preview--button small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.w-admin__hero-preview--button small {
    color: color-mix(in srgb, var(--w-text) 62%, transparent);
}
.w-admin__links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── 푸터 ──────────────────────────────────────────── */
.w-footer {
    text-align: center; padding: 1.2rem 1rem;
    border-top: 1px solid var(--w-border);
}
.w-admin-link {
    color: transparent; font-size: .75rem; text-decoration: none;
    user-select: none; transition: color .3s;
}
.w-admin-link:hover { color: #bbb; }

/* ── 슈퍼 어드민 대시보드 ───────────────────────────── */
.w-sa-hint { font-size: .82rem; color: #aaa; margin: 0 0 .5rem; }
.w-sa-field { display: flex; flex-direction: column; gap: .35rem; }
.w-sa-preview { font-size: .78rem; color: var(--w-primary); margin-top: .15rem; }
.w-sa-create-btn { align-self: end; min-height: 42px; }
.w-sa-slug { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86rem; color: #43382f; }
.w-sa-empty { color: #8e8276; text-align: center; padding: 2.5rem 1rem; }

.wedding-admin-shell {
    --wa-bg: #f7f3eb;
    --wa-card: rgba(255, 253, 249, .96);
    --wa-card-strong: #fff;
    --wa-border: rgba(178, 151, 111, .22);
    --wa-border-strong: rgba(178, 151, 111, .34);
    --wa-text: #332b25;
    --wa-muted: #8b8075;
    --wa-gold: #c6a47a;
    --wa-gold-dark: #9a7448;
    --wa-sage: #6d9276;
    --wa-blue: #466a8e;
    --wa-danger: #d85959;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr) 330px;
    background:
        radial-gradient(circle at 16% 10%, rgba(198, 164, 122, .12), transparent 28%),
        linear-gradient(180deg, #fbfaf7 0%, var(--wa-bg) 100%);
    color: var(--wa-text);
}
.wedding-admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.35rem 1rem;
    border-right: 1px solid var(--wa-border);
    background: rgba(255, 253, 249, .78);
    backdrop-filter: blur(16px);
}
.wedding-admin-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .35rem .45rem 1rem;
    border-bottom: 1px solid var(--wa-border);
}
.wedding-admin-brand__mark,
.wedding-admin-profile > span,
.wedding-admin-stat-card__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(198, 164, 122, .16);
    color: var(--wa-gold-dark);
    font-weight: 800;
}
.wedding-admin-brand__mark { width: 40px; height: 40px; }
.wedding-admin-brand strong { display: block; font-size: 1.05rem; }
.wedding-admin-brand span { display: block; font-size: .78rem; color: var(--wa-muted); margin-top: .1rem; }
.wedding-admin-nav { display: flex; flex-direction: column; gap: .35rem; }
.wedding-admin-nav__item {
    border: 0;
    background: transparent;
    color: #5d5147;
    text-align: left;
    border-radius: 8px;
    padding: .72rem .8rem;
    font: inherit;
    font-size: .94rem;
    cursor: pointer;
}
.wedding-admin-nav__item:hover { background: rgba(198, 164, 122, .1); }
.wedding-admin-nav__item.is-active {
    background: rgba(198, 164, 122, .16);
    color: var(--wa-gold-dark);
    font-weight: 700;
}
.wedding-admin-sidebar__meter {
    margin-top: auto;
    border: 1px solid var(--wa-border);
    background: var(--wa-card);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(79, 64, 45, .06);
}
.wedding-admin-sidebar__meter span,
.wedding-admin-sidebar__meter small {
    display: block;
    color: var(--wa-muted);
    font-size: .78rem;
}
.wedding-admin-sidebar__meter strong {
    display: block;
    margin: .35rem 0 .15rem;
    font-size: 1.2rem;
}
.wedding-admin-content {
    min-width: 0;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.wedding-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding-bottom: .4rem;
}
.wedding-admin-eyebrow {
    margin: 0 0 .2rem;
    font-size: .78rem;
    color: var(--wa-gold-dark);
    font-weight: 700;
    text-transform: uppercase;
}
.wedding-admin-header h1 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
    letter-spacing: 0;
}
.wedding-admin-header span { color: var(--wa-muted); font-size: .92rem; }
.wedding-admin-header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .7rem;
    min-width: min(620px, 58%);
}

.w-local-file {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 2.25rem;
    overflow: hidden;
    color: var(--wa-text, #243047);
    background: var(--wa-input, #fff);
    border: 1px solid var(--wa-border, #d8dee9);
    border-radius: .45rem;
    cursor: pointer;
}

.w-local-file__native {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.w-local-file__button {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding: .45rem .7rem;
    color: var(--wa-button-text, #fff);
    background: var(--wa-primary, #826a50);
    font-weight: 700;
    white-space: nowrap;
}

.w-local-file__name {
    min-width: 0;
    padding: .45rem .7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.w-local-file:focus-within {
    outline: 2px solid var(--wa-focus, #5a8dee);
    outline-offset: 2px;
}

.w-local-file:has(.w-local-file__native:disabled) {
    cursor: not-allowed;
    opacity: .58;
}
.wedding-admin-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .65rem;
    border: 1px solid var(--wa-border);
    background: var(--wa-card-strong);
    border-radius: 8px;
    padding: .55rem .75rem;
}
.wedding-admin-search span {
    color: var(--wa-muted);
    font-size: .78rem;
    white-space: nowrap;
}
.wedding-admin-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--wa-text);
    font: inherit;
}
.wedding-admin-icon-button,
.wedding-admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 36px;
    border: 1px solid var(--wa-border-strong);
    background: var(--wa-card-strong);
    color: var(--wa-text);
    border-radius: 8px;
    padding: .45rem .75rem;
    font: inherit;
    font-size: .88rem;
    line-height: 1.35;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.wedding-admin-icon-button {
    width: 36px;
    padding: 0;
    font-weight: 700;
}
.wedding-admin-action-button:hover,
.wedding-admin-icon-link:hover { border-color: rgba(154, 116, 72, .48); color: var(--wa-gold-dark); }
.wedding-admin-action-button.is-primary {
    background: var(--wa-gold);
    border-color: var(--wa-gold);
    color: #fff;
    font-weight: 700;
}
.wedding-admin-action-button.is-danger {
    border-color: rgba(216, 89, 89, .36);
    color: var(--wa-danger);
}
.wedding-admin-action-button.is-compact {
    min-height: 30px;
    padding: .25rem .55rem;
    font-size: .8rem;
}
.wedding-admin-action-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.wedding-admin-profile {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-left: .25rem;
}
.wedding-admin-profile > span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #526f63;
    color: #fff;
}
.wedding-admin-profile strong,
.wedding-admin-profile small { display: block; white-space: nowrap; }
.wedding-admin-profile small { color: var(--wa-muted); font-size: .76rem; }
.wedding-admin-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: .85rem;
}
.wedding-admin-stat-card,
.wedding-admin-card,
.wedding-admin-detail-panel {
    border: 1px solid var(--wa-border);
    background: var(--wa-card);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(79, 64, 45, .07);
}
.wedding-admin-stat-card {
    display: flex;
    gap: .85rem;
    align-items: center;
    min-height: 108px;
    padding: 1rem;
}
.wedding-admin-stat-card__icon {
    width: 44px;
    height: 44px;
    font-size: .75rem;
}
.wedding-admin-stat-card__icon.is-green { background: rgba(109, 146, 118, .15); color: #477356; }
.wedding-admin-stat-card__icon.is-gold { background: rgba(198, 164, 122, .18); color: var(--wa-gold-dark); }
.wedding-admin-stat-card__icon.is-sage { background: rgba(119, 154, 138, .16); color: #527a68; }
.wedding-admin-stat-card__icon.is-blue { background: rgba(70, 106, 142, .14); color: var(--wa-blue); }
.wedding-admin-stat-card small,
.wedding-admin-stat-card em {
    display: block;
    color: var(--wa-muted);
    font-style: normal;
    font-size: .78rem;
}
.wedding-admin-stat-card strong {
    display: block;
    margin: .2rem 0;
    font-size: 1.55rem;
    font-weight: 800;
}
.wedding-admin-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, .9fr);
    gap: .85rem;
}
.wedding-admin-card-grid.is-single { grid-template-columns: 1fr; }
.wedding-admin-card { padding: 1rem; }
.wedding-admin-section-summary h2 {
    margin: 0;
    letter-spacing: 0;
}
.wedding-admin-section-summary p {
    margin: .35rem 0 0;
    color: var(--wa-muted);
}
.wedding-admin-card__header,
.wedding-admin-table-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.wedding-admin-card h2,
.wedding-admin-table-card h2,
.wedding-admin-panel-section h3 {
    margin: 0;
    letter-spacing: 0;
}
.wedding-admin-card p,
.wedding-admin-table-card p {
    margin: .25rem 0 0;
    color: var(--wa-muted);
    font-size: .84rem;
}
.wedding-admin-layout-upload__form {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.4fr);
    gap: .85rem;
    align-items: start;
}
.wedding-admin-layout-upload__form .w-label {
    display: grid;
    gap: .4rem;
    margin: 0;
}
.wedding-admin-layout-upload__form .w-hint {
    color: var(--wa-muted);
    font-size: .76rem;
    line-height: 1.45;
}
.wedding-admin-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    align-items: end;
}
.wedding-admin-form .w-sa-create-btn { grid-column: auto; }
.wedding-admin-card--settings {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.wedding-admin-card--settings .w-btn { margin-top: auto; }
.wedding-admin-policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: .85rem;
}
.wedding-admin-policy-grid section {
    border: 1px solid rgba(178, 151, 111, .18);
    background: rgba(255, 255, 255, .52);
    border-radius: 8px;
    padding: .85rem;
}
.wedding-admin-policy-grid h3 {
    margin: 0 0 .75rem;
    font-size: .92rem;
    letter-spacing: 0;
}
.wedding-admin-checkline {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .6rem;
    color: #5f5145;
    font-size: .86rem;
}
.wedding-admin-table-card { padding: 0; overflow: hidden; }
.wedding-admin-table-card__header {
    padding: 1rem 1rem 0;
    align-items: center;
}
.wedding-admin-table-card h2 span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(198, 164, 122, .14);
    color: var(--wa-gold-dark);
    padding: .18rem .5rem;
    font-size: .8rem;
    vertical-align: middle;
}
.wedding-admin-table-tools {
    display: flex;
    gap: .5rem;
    align-items: center;
}
.wedding-admin-select {
    min-height: 36px;
    border: 1px solid var(--wa-border);
    border-radius: 8px;
    background: #fff;
    color: var(--wa-text);
    padding: .35rem .65rem;
    font: inherit;
}
.wedding-admin-table-wrap { overflow-x: auto; }
.wedding-admin-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    font-size: .88rem;
}
.wedding-admin-table th,
.wedding-admin-table td {
    padding: .82rem .9rem;
    border-top: 1px solid rgba(178, 151, 111, .16);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}
.wedding-admin-table th {
    color: #827568;
    font-size: .78rem;
    font-weight: 700;
    background: rgba(250, 247, 241, .8);
}
.wedding-admin-table tbody tr { cursor: pointer; transition: background .15s ease; }
.wedding-admin-table tbody tr:hover,
.wedding-admin-table tbody tr.is-selected { background: rgba(198, 164, 122, .08); }
.wedding-admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 999px;
    background: rgba(70, 106, 142, .1);
    color: var(--wa-blue);
    padding: .18rem .55rem;
    margin: .08rem .18rem .08rem 0;
    font-size: .76rem;
    font-weight: 700;
}
.wedding-admin-badge.is-success { background: rgba(109, 146, 118, .14); color: #477356; }
.wedding-admin-badge.is-muted { background: rgba(139, 128, 117, .12); color: #786d62; }
.wedding-admin-badge.is-gold { background: rgba(198, 164, 122, .16); color: var(--wa-gold-dark); }
.wedding-admin-badge.is-blue { background: rgba(70, 106, 142, .12); color: var(--wa-blue); }
.wedding-admin-badge.is-danger { background: rgba(216, 89, 89, .12); color: var(--wa-danger); }
.wedding-admin-icon-link {
    color: var(--wa-gold-dark);
    text-decoration: none;
    font-weight: 700;
}
.wedding-admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem 1rem;
    border-top: 1px solid rgba(178, 151, 111, .16);
    color: var(--wa-muted);
    font-size: .86rem;
}
.wedding-admin-pagination > div,
.wedding-admin-pagination label {
    display: flex;
    align-items: center;
    gap: .45rem;
}
.wedding-admin-detail-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 1.1rem;
}
.wedding-admin-detail-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wa-border);
}
.wedding-admin-detail-panel__header span {
    color: var(--wa-muted);
    font-size: .78rem;
    font-weight: 700;
}
.wedding-admin-detail-panel__header h2 {
    margin: .4rem 0 .2rem;
    font-size: 1.15rem;
}
.wedding-admin-detail-panel__header p {
    margin: 0;
    color: var(--wa-muted);
    font-size: .86rem;
}
.wedding-admin-detail-list {
    display: grid;
    gap: .7rem;
    margin: 1rem 0;
}
.wedding-admin-detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.wedding-admin-detail-list dt {
    color: var(--wa-muted);
    font-size: .82rem;
}
.wedding-admin-detail-list dd { margin: 0; font-weight: 700; }
.wedding-admin-switch {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
}
.wedding-admin-number-input {
    width: 68px;
    min-height: 32px;
    border: 1px solid var(--wa-border);
    border-radius: 8px;
    padding: .25rem .45rem;
    text-align: center;
}
.wedding-admin-panel-section {
    padding: 1rem 0;
    border-top: 1px solid var(--wa-border);
}
.wedding-admin-panel-section h3 {
    font-size: .92rem;
    margin-bottom: .75rem;
}
.wedding-admin-panel-section .w-label { margin-top: .7rem; }
.wedding-admin-panel-section > .wedding-admin-action-button {
    width: 100%;
    margin-top: .45rem;
}
.wedding-admin-panel-section > .wedding-admin-action-button + .wedding-admin-action-button {
    margin-top: .45rem;
}
.wedding-admin-usage-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
    padding: .65rem;
    border-radius: 8px;
    background: rgba(250, 247, 241, .75);
    color: #6f6255;
    font-size: .78rem;
}
.wedding-admin-migration-state {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .7rem;
}
.wedding-admin-migration-state small {
    color: var(--wa-muted);
    line-height: 1.4;
}
.wedding-admin-permission-list {
    display: grid;
    gap: .45rem;
    margin-bottom: .8rem;
}
.wedding-admin-permission {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem;
    align-items: start;
    padding: .65rem;
    border: 1px solid rgba(178, 151, 111, .18);
    background: rgba(255, 255, 255, .58);
    border-radius: 8px;
}
.wedding-admin-permission strong,
.wedding-admin-permission small {
    display: block;
}
.wedding-admin-permission small {
    color: var(--wa-muted);
    font-size: .76rem;
    line-height: 1.45;
    margin-top: .12rem;
}
.wedding-admin-quick-actions {
    display: grid;
    gap: .5rem;
}
.wedding-admin-detail-empty {
    display: grid;
    place-items: center;
    min-height: 240px;
    text-align: center;
    color: var(--wa-muted);
    gap: .4rem;
}
.wedding-admin-detail-empty strong { color: var(--wa-text); }

@media (max-width: 1440px) {
    .wedding-admin-shell { grid-template-columns: 220px minmax(0, 1fr) 310px; }
    .wedding-admin-stats { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
    .wedding-admin-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
    .wedding-admin-shell {
        grid-template-columns: 1fr;
    }
    .wedding-admin-sidebar,
    .wedding-admin-detail-panel {
        position: static;
        height: auto;
        border: 0;
        border-bottom: 1px solid var(--wa-border);
    }
    .wedding-admin-sidebar {
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
    }
    .wedding-admin-nav {
        flex-direction: row;
        min-width: max-content;
    }
    .wedding-admin-sidebar__meter { margin-left: auto; margin-top: 0; min-width: 180px; }
    .wedding-admin-detail-panel { border-top: 1px solid var(--wa-border); }
}
@media (max-width: 760px) {
    .wedding-admin-content { padding: .85rem; }
    .wedding-admin-header,
    .wedding-admin-header__tools,
    .wedding-admin-table-card__header,
    .wedding-admin-pagination {
        align-items: stretch;
        flex-direction: column;
    }
    .wedding-admin-header__tools { min-width: 0; width: 100%; }
    .wedding-admin-profile { display: none; }
    .wedding-admin-stats,
    .wedding-admin-form,
    .wedding-admin-layout-upload__form,
    .wedding-admin-policy-grid {
        grid-template-columns: 1fr;
    }
    .wedding-admin-sidebar {
        padding: .8rem;
    }
}

/* ── 테마 변수 (body에 class 적용) ─────────────────── */
/* rose (기본) — body에 명시해 다른 테넌트의 인라인 변수를 지운 직후에도 확실히 복원 */
body.w-theme-rose {
    --w-primary: #c8a882; --w-dark: #3a2e28; --w-text: #3a2e28; --w-bg: #f4e8d4;
    --w-panel-bg: rgba(255,252,243,.88); --w-border: rgba(200,168,130,.32);
    --w-shadow: 0 4px 24px rgba(58,46,40,.12);
}
body.w-theme-ivory {
    --w-primary: #b8a99a; --w-dark: #4a3f38; --w-text: #4a3f38; --w-bg: #ebe0d0;
    --w-panel-bg: rgba(253,250,244,.9); --w-border: rgba(184,169,154,.35);
}
body.w-theme-forest {
    --w-primary: #6b8f71; --w-dark: #2d4a32; --w-text: #2d4a32; --w-bg: #d9e8dd;
    --w-panel-bg: rgba(238,246,240,.9); --w-border: rgba(107,143,113,.35);
}
body.w-theme-navy {
    --w-primary: #3d5a80; --w-dark: #1a2a3a; --w-text: #1a2a3a; --w-bg: #dae2f0;
    --w-panel-bg: rgba(238,242,251,.9); --w-border: rgba(61,90,128,.32);
}
body.w-theme-blush {
    --w-primary: #d4a5a5; --w-dark: #5a3535; --w-text: #5a3535; --w-bg: #f7dede;
    --w-panel-bg: rgba(253,242,242,.9); --w-border: rgba(212,165,165,.38);
}

/* ── 배경음 바 ──────────────────────────────────────── */
/* 기본은 화면 하단 고정. 어드민에서 "상단 고정"으로 바꾸면 .w-music-bar--top 클래스가 추가됨 */
.w-music-bar {
    position: fixed;
    bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
    right: 1.2rem; z-index: 900;
    display: flex; align-items: center; gap: .5rem;
    background: var(--w-panel-bg);
    border: 1px solid var(--w-border);
    border-radius: 999px;
    padding: .4rem .9rem .4rem .5rem;
    box-shadow: var(--w-shadow);
    backdrop-filter: blur(8px);
}
.w-music-bar--top {
    top: calc(1.2rem + env(safe-area-inset-top, 0px));
    bottom: auto;
}
.w-music-bar--with-tabs:not(.w-music-bar--top) {
    bottom: calc(6.4rem + env(safe-area-inset-bottom, 0px));
}
.w-draggable-positioned {
    left: var(--w-drag-x, 50%);
    top: var(--w-drag-y, 50%);
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
}
.w-design-draggable {
    cursor: move;
    touch-action: none;
    outline: 2px dashed color-mix(in srgb, var(--w-primary) 58%, transparent);
    outline-offset: 4px;
    user-select: none;
}
.w-design-draggable.is-dragging {
    opacity: .9;
    z-index: 1200;
}
.w-hero .w-design-draggable {
    z-index: 5;
}
.w-music-btn {
    background: var(--w-primary); border: none; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.w-music-label { font-size: .8rem; color: var(--w-dark); white-space: nowrap; }

@media (max-width: 640px) {
    .w-draggable-positioned {
        left: var(--w-drag-mobile-x, var(--w-drag-x, 50%));
        top: var(--w-drag-mobile-y, var(--w-drag-y, 50%));
    }
}

/* ── 테마 피커 (어드민) ─────────────────────────────── */
.w-theme-picker { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.w-theme-btn {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .9rem; border-radius: 999px;
    border: 2px solid var(--w-border); background: #fff;
    cursor: pointer; font-size: .85rem; transition: border-color .2s;
}
.w-theme-btn.active { border-color: var(--tc, var(--w-primary)); }
.w-theme-btn.is-locked,
.w-theme-btn:disabled {
    opacity: .58;
    cursor: not-allowed;
}
.w-theme-btn .w-layout-lock {
    margin-left: .25rem;
}

.w-custom-theme {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    background: rgba(255, 255, 255, .72);
}
.w-custom-theme.is-active {
    border-color: var(--w-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--w-primary) 18%, transparent);
}
.w-custom-theme__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
}
.w-custom-theme__head p {
    margin: .25rem 0 0;
}
.w-custom-theme__generator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .75rem 1rem;
    margin-top: .85rem;
    padding: .85rem;
    border: 1px solid color-mix(in srgb, var(--w-primary) 24%, var(--w-border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--w-primary) 7%, #fff);
}
.w-custom-theme__generator-copy {
    min-width: 0;
}
.w-custom-theme__generator-copy strong {
    display: block;
    margin-bottom: .18rem;
    font-size: .9rem;
}
.w-custom-theme__generator-copy p {
    margin: 0;
    line-height: 1.5;
}
.w-custom-theme__base {
    grid-row: span 2;
    display: grid;
    grid-template-columns: auto minmax(4.8rem, auto);
    align-items: center;
    gap: .22rem .55rem;
    min-width: 148px;
    padding: .55rem .65rem;
    border: 1px solid var(--w-border);
    border-radius: 10px;
    background: #fff;
}
.w-custom-theme__base > span {
    grid-column: 1 / -1;
    color: #746c64;
    font-size: .74rem;
    font-weight: 700;
}
.w-custom-theme__base input[type="color"] {
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.w-custom-theme__base code {
    font-size: .76rem;
}
.w-custom-theme__generator > .w-btn {
    width: fit-content;
}
.w-custom-theme__palette {
    display: flex;
    min-height: 34px;
    overflow: hidden;
    margin-top: .7rem;
    border: 1px solid var(--w-border);
    border-radius: 9px;
    background: #fff;
}
.w-custom-theme__palette span {
    flex: 1 1 0;
    min-width: 28px;
    background: var(--w-custom-swatch);
}
.w-custom-theme__contrast {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .55rem 0 .75rem;
}
.w-custom-theme__contrast span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}
.w-custom-theme__contrast .is-good {
    color: #2d6544;
    background: #e5f3ea;
}
.w-custom-theme__contrast .is-warning {
    color: #8a5427;
    background: #fff0dd;
}
.w-custom-theme__details {
    margin: .75rem 0 1rem;
    border: 1px solid var(--w-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .72);
}
.w-custom-theme__details summary {
    padding: .75rem .85rem;
    color: #554c44;
    font-size: .82rem;
    font-weight: 750;
    cursor: pointer;
}
.w-custom-theme__details[open] summary {
    border-bottom: 1px solid var(--w-border);
}
.w-custom-theme__details > p {
    margin: .75rem .85rem 0;
}
.w-custom-theme__details .w-custom-theme__colors {
    margin: .75rem;
}
.w-custom-theme__colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .65rem;
    margin: .75rem 0 1rem;
}
.w-custom-theme__colors label {
    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: center;
    gap: .2rem .55rem;
    padding: .65rem;
    border: 1px solid var(--w-border);
    border-radius: 10px;
    background: #fff;
}
.w-custom-theme__colors label > span {
    grid-column: 1 / -1;
    font-size: .78rem;
    color: color-mix(in srgb, var(--w-text) 72%, transparent);
}
.w-custom-theme__colors input[type="color"] {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.w-custom-theme__colors code {
    font-size: .76rem;
}

@media (max-width: 639px) {
    .w-custom-theme__generator {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .w-custom-theme__base {
        grid-row: auto;
    }
    .w-custom-theme__generator > .w-btn {
        width: 100%;
    }
}

.w-section-order-list {
    display: grid;
    gap: .55rem;
}
.w-section-order-item {
    display: grid;
    grid-template-columns: 2.2rem 1fr auto;
    align-items: center;
    gap: .65rem;
    padding: .65rem .75rem;
    border: 1px solid var(--w-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
}
.w-section-order-item.is-fixed {
    opacity: .72;
}
.w-section-order-item.is-hidden {
    background: repeating-linear-gradient(
        135deg,
        rgba(200, 168, 130, 0.06) 0 8px,
        rgba(255, 255, 255, 0.72) 8px 16px
    );
    opacity: .68;
}
.w-section-order-item.is-hidden .w-section-order-item__label {
    text-decoration: line-through;
    text-decoration-color: rgba(120, 90, 55, 0.45);
    color: #8a7455;
}
.w-btn--muted {
    background: #efe6d5 !important;
    color: #8a6339 !important;
    border-color: #d9c9ac !important;
}
.w-section-order-item__icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--w-primary) 14%, #fff);
    color: var(--w-primary);
}
.w-section-order-item__label {
    font-weight: 700;
    color: var(--w-dark);
}
.w-section-order-item__actions {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.w-drag-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.w-drag-control-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .85rem;
    border: 1px solid var(--w-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
}
.w-drag-control-card > span {
    font-size: .86rem;
    color: color-mix(in srgb, var(--w-text) 72%, transparent);
}
.w-drag-control-device {
    display: grid;
    gap: .4rem;
    padding-top: .55rem;
    border-top: 1px solid color-mix(in srgb, var(--w-border) 70%, transparent);
}
.w-drag-control-device > span {
    font-size: .82rem;
    color: color-mix(in srgb, var(--w-text) 72%, transparent);
}
.w-drag-control-device > div {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.w-hero-crop-modal__backdrop {
    position: fixed;
    z-index: 3200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 2svh 2vw;
    background: rgba(28, 22, 17, .72);
    backdrop-filter: blur(5px);
}
.w-hero-crop-modal {
    width: min(960px, 96vw);
    max-height: 96svh;
    padding: clamp(1rem, 2.6vw, 1.6rem);
    overflow-y: auto;
    color: var(--w-text);
    border: 1px solid var(--w-border);
    border-radius: 16px;
    background: #fffdf9;
    box-shadow: 0 28px 80px rgba(24, 15, 8, .34);
}
.w-hero-crop-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.w-hero-crop-modal__head h3 {
    margin: 0;
    color: var(--w-dark);
    font-size: 1.2rem;
}
.w-hero-crop-modal__head p {
    margin: .35rem 0 0;
    color: color-mix(in srgb, var(--w-text) 68%, transparent);
    font-size: .86rem;
}
.w-hero-crop-guide {
    display: grid;
    gap: .25rem;
    margin: 1rem 0;
    padding: .8rem 1rem;
    border: 1px solid color-mix(in srgb, var(--w-primary) 35%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--w-primary) 9%, #fff);
}
.w-hero-crop-guide span,
.w-hero-crop-guide small {
    color: color-mix(in srgb, var(--w-text) 72%, transparent);
    line-height: 1.55;
}
.w-hero-crop-modal__tabs,
.w-hero-crop-modal__modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin-bottom: .7rem;
}
.w-hero-crop-modal__tabs button,
.w-hero-crop-modal__modes button {
    display: grid;
    gap: .15rem;
    min-height: 2.8rem;
    padding: .55rem .8rem;
    cursor: pointer;
    color: var(--w-text);
    border: 1px solid var(--w-border);
    border-radius: 9px;
    background: #fff;
}
.w-hero-crop-modal__tabs button.active,
.w-hero-crop-modal__modes button.active {
    color: var(--w-dark);
    border-color: var(--w-primary);
    background: color-mix(in srgb, var(--w-primary) 12%, #fff);
    box-shadow: inset 0 0 0 1px var(--w-primary);
}
.w-hero-crop-modal__modes small {
    color: color-mix(in srgb, currentColor 64%, transparent);
}
.w-hero-crop-editor {
    position: relative;
    display: grid;
    width: 100%;
    min-height: min(58svh, 580px);
    overflow: hidden;
    cursor: crosshair;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, .06) 25%, transparent 25% 75%, rgba(255, 255, 255, .06) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, .06) 25%, transparent 25% 75%, rgba(255, 255, 255, .06) 75%),
        #211c18;
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    touch-action: none;
    user-select: none;
}
.w-hero-crop-editor > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(58svh, 580px);
    pointer-events: none;
    object-fit: contain;
}
.w-hero-crop-editor--full {
    cursor: default;
}
.w-hero-crop-editor--full > span {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    left: .75rem;
    padding: .55rem .75rem;
    color: #fff;
    font-size: .78rem;
    text-align: center;
    border-radius: 8px;
    background: rgba(24, 18, 13, .72);
}
.w-hero-crop-editor__selection {
    position: absolute;
    z-index: 2;
    cursor: move;
    border: 2px solid #fff;
    background:
        linear-gradient(90deg, transparent 33%, rgba(255,255,255,.5) 33% calc(33% + 1px), transparent calc(33% + 1px) 66%, rgba(255,255,255,.5) 66% calc(66% + 1px), transparent calc(66% + 1px)),
        linear-gradient(0deg, transparent 33%, rgba(255,255,255,.5) 33% calc(33% + 1px), transparent calc(33% + 1px) 66%, rgba(255,255,255,.5) 66% calc(66% + 1px), transparent calc(66% + 1px)),
        rgba(200, 168, 130, .08);
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, .56),
        0 0 0 1px rgba(0, 0, 0, .45);
}
.w-hero-crop-editor__label {
    position: absolute;
    top: .35rem;
    left: .35rem;
    padding: .18rem .38rem;
    color: #fff;
    font-size: .7rem;
    border-radius: 5px;
    background: rgba(24, 18, 13, .72);
}
.w-hero-crop-editor__selection i {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--w-primary);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
}
.w-hero-crop-editor__selection i[data-crop-handle="nw"] { top: -9px; left: -9px; cursor: nwse-resize; }
.w-hero-crop-editor__selection i[data-crop-handle="ne"] { top: -9px; right: -9px; cursor: nesw-resize; }
.w-hero-crop-editor__selection i[data-crop-handle="sw"] { bottom: -9px; left: -9px; cursor: nesw-resize; }
.w-hero-crop-editor__selection i[data-crop-handle="se"] { right: -9px; bottom: -9px; cursor: nwse-resize; }
.w-hero-crop-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
    margin-top: 1rem;
}
@media (max-width: 700px) {
    .w-drag-control-grid {
        grid-template-columns: 1fr;
    }
    .w-hero-crop-modal__backdrop {
        padding: 0;
    }
    .w-hero-crop-modal {
        width: 100vw;
        max-height: 100svh;
        min-height: 100svh;
        border-radius: 0;
    }
    .w-hero-crop-editor {
        min-height: 48svh;
    }
    .w-hero-crop-editor > img {
        max-height: 48svh;
    }
}
.w-theme-swatch {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--tc, #c8a882);
    border: 2px solid var(--tca, #a07850);
}

/* ── 계좌 편집기 (어드민) ───────────────────────────── */
.w-acc-editor {
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    background: #fafafa;
}
.w-acc-editor__header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .85rem;
}
.w-acc-editor__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}
.w-acc-editor__full { grid-column: 1 / -1; }
.w-admin__music-preview { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }

/* ── OSM 지도 ──────────────────────────────────────── */
.w-osm { margin: .75rem 0; border-radius: var(--w-radius); overflow: hidden; box-shadow: var(--w-shadow); }
.w-osm__frame { width: 100%; height: 280px; border: none; display: block; }

/* ── 약도 이미지 ────────────────────────────────────── */
.w-roadmap { margin-top: 1rem; text-align: center; }
.w-roadmap img { max-width: 100%; border-radius: var(--w-radius); box-shadow: var(--w-shadow); }

/* ── 마음 전하실 곳 ─────────────────────────────────── */
.w-gift { border-top: 1px solid var(--w-border); }
.w-gift__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.w-gift__card {
    background: #fff;
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    padding: 1.5rem;
    display: flex; flex-direction: column; gap: .75rem;
    box-shadow: var(--w-shadow);
}
.w-gift__who {
    font-size: 1rem; font-weight: 700;
    color: var(--w-dark); margin: 0;
    border-bottom: 1px solid var(--w-border); padding-bottom: .5rem;
}
.w-gift__account { display: flex; flex-direction: column; gap: .2rem; }
.w-gift__bank { font-size: .85rem; color: #888; }
.w-gift__num  { font-size: 1.05rem; font-weight: 600; letter-spacing: .05em; color: var(--w-dark); }
.w-gift__holder { font-size: .8rem; color: #aaa; }
.w-gift__contact { display: flex; gap: .5rem; }
.w-btn--gb      { background: rgba(255,255,255,.22); color: var(--w-dark); border: 1.5px solid rgba(255,255,255,.6); backdrop-filter: blur(6px); font-size: .9rem; }
.w-btn--gb:hover { background: var(--w-primary); color: #fff; border-color: var(--w-primary); }
.w-hero__cta    { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: .75rem; }
.w-btn--copy    { background: var(--w-primary); color: #fff; }
.w-btn--kakaopay { background: #fee500; color: #3c1e1e; }
.w-btn--tel     { background: #4caf50; color: #fff; flex: 1; text-align: center; }
.w-btn--sms     { background: #2196f3; color: #fff; flex: 1; text-align: center; }
.w-copy-feedback {
    text-align: center; font-size: .9rem;
    color: #4caf50; margin-top: 1rem;
    animation: w-fade-in .2s ease;
}
@keyframes w-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ── 모바일 ────────────────────────────────────────── */
@media (max-width: 480px) {
    .w-hero__content { padding: 1.2rem 1rem; }
    .w-panel { padding: .85rem 1rem; }
    .w-hero__top, .w-hero__bottom { padding: .8rem 1rem; }
    .w-hero__title { font-size: 1.4rem; letter-spacing: .15em; }
    .w-hero__names { font-size: 1rem; }
    .w-gallery__grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .w-lb__prev, .w-lb__next { width: 38px; height: 38px; font-size: 1.8rem; }
    .w-acc-editor__grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════
   홈(랜딩) 페이지  .wh-*
════════════════════════════════════════════════════ */
.wh-page {
    font-family: system-ui, 'Noto Sans KR', sans-serif;
    color: #2d2d2d; background: #fff;
    min-height: 100vh;
    padding-top: 62px;
}

#create,
#my-invites {
    scroll-margin-top: 74px;
}

/* ── CodeMaru 공통 Nav (통일 규격, 라이트 테마) ── */
.wh-topnav {
    --dreamine-portal-background: rgba(253, 246, 238, .88);
    --dreamine-portal-panel: #fdf6ee;
    --dreamine-portal-border: rgba(107, 78, 42, .18);
    --dreamine-portal-text: #6b4e2a;
    --dreamine-portal-strong: #3a2e28;
    --dreamine-portal-muted: #7a6a5e;
    --dreamine-portal-hover: rgba(107, 78, 42, .08);
    --dreamine-portal-active-background: rgba(107, 78, 42, .12);
    --dreamine-portal-active-text: #2d211b;
    --dreamine-portal-icon-background: #fffdf8;
    --dreamine-portal-icon-border: rgba(107, 78, 42, .14);
    --cm-header-bg: rgba(253, 246, 238, .88);
    --cm-header-border: rgba(107, 78, 42, .12);
    --cm-header-text: #6b4e2a;
    --cm-header-active-bg: rgba(107, 78, 42, .08);
    --cm-header-active-text: #3a2e28;
    --cm-header-menu-bg: #fdf6ee;
    position: sticky;
    top: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    background: rgba(253, 246, 238, .88);
    border-bottom: 1px solid rgba(107, 78, 42, .12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.wh-topnav a {
    color: #6b4e2a;
    text-decoration: none;
}
.wh-topnav__brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
    font-weight: 800;
    color: #3a2e28;
}
.wh-topnav__mark {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}
.wh-topnav__links {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
}
.wh-topnav__links::-webkit-scrollbar { display: none; }
.wh-topnav__links a,
.wh-topnav__auth {
    flex: 0 0 auto;
    padding: .35rem .6rem;
    border-radius: .5rem;
    font-weight: 650;
    white-space: nowrap;
    color: #6b4e2a;
}
.wh-topnav__links a:hover,
.wh-topnav__links a.active {
    background: rgba(107, 78, 42, .08);
    color: #3a2e28;
}
.wh-topnav__auth {
    border: 1px solid rgba(107, 78, 42, .2);
    color: #7a5d3a;
}
.wh-topnav__auth:hover { background: rgba(107, 78, 42, .08); }
.wh-topnav__auth--pending {
    width: 4rem;
    min-height: 2rem;
    visibility: hidden;
}
.wh-topnav__burger {
    display: none;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.wh-topnav__burger span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #6b4e2a;
}

/* ── 히어로 ── */
.wh-hero {
    background: linear-gradient(135deg, #fdf6ee 0%, #f5e8d8 50%, #eedcc8 100%);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}
.wh-hero__inner { max-width: 600px; margin: 0 auto; }
.wh-hero__badge {
    display: inline-block;
    background: #c8a882; color: #fff;
    font-size: .8rem; font-weight: 600;
    padding: .3rem .9rem; border-radius: 999px;
    margin-bottom: 1.2rem; letter-spacing: .05em;
}
.wh-hero__title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700; line-height: 1.3;
    color: #3a2e28; margin: 0 0 .9rem;
    font-family: 'Noto Serif KR', serif;
}
.wh-hero__sub {
    font-size: 1rem; color: #7a6a5e; margin: 0 0 2rem;
}
.wh-hero__actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
}

/* ── 버튼 ── */
.wh-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .75rem 1.8rem; border-radius: 999px;
    font-size: 1rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.wh-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.wh-btn--primary { background: #c8a882; color: #fff; }
.wh-btn--secondary { background: #fff; color: #7a5d3a; border: 1px solid #e4d6c5; }
.wh-btn--full { width: 100%; margin-top: .5rem; font-size: 1.05rem; border-radius: 10px; }

/* ── 기능 소개 ── */
.wh-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    max-width: 860px; margin: 0 auto;
    padding: 3.5rem 1.5rem;
}
.wh-feature {
    background: #fdfcf9;
    border: 1px solid #ede5d8;
    border-radius: 14px;
    padding: 1.4rem 1rem;
    text-align: center;
}
.wh-feature__icon { font-size: 2rem; display: block; margin-bottom: .6rem; }
.wh-feature h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .4rem; color: #3a2e28; }
.wh-feature p { font-size: .81rem; color: #8a7a6e; margin: 0; line-height: 1.55; }

/* ── 가입 폼 ── */
.wh-create {
    background: #faf7f3;
    border-top: 1px solid #ede5d8;
    padding: 3.5rem 1.5rem;
}
.wh-create__box {
    max-width: 520px; margin: 0 auto;
    background: #fff;
    border: 1px solid #ede5d8;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 32px rgba(58,46,40,.08);
}
.wh-create__title {
    font-size: 1.5rem; font-weight: 700;
    color: #3a2e28; margin: 0 0 .4rem;
    font-family: 'Noto Serif KR', serif;
}
.wh-create__desc { font-size: .9rem; color: #7a6a5e; margin: 0 0 1.5rem; }
.wh-create__notice {
    font-size: .8rem; color: #aaa;
    margin: 1.2rem 0 0; line-height: 1.6; text-align: center;
}
.wh-create__notice code {
    background: #f4f0eb; padding: .1rem .4rem;
    border-radius: 4px; font-size: .78rem;
}
.wh-account {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    background: #f9f4ed; border: 1px solid #eadfce;
    border-radius: 12px; padding: .75rem .9rem; margin-bottom: 1.25rem;
    font-size: .85rem; color: #7a6a5e;
}
.wh-account strong { color: #3a2e28; margin-right: auto; }
.wh-account--guest { align-items: flex-start; }
.wh-account__link {
    color: #a17443; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.wh-account__link:hover { text-decoration: underline; }

.wh-form { display: flex; flex-direction: column; gap: 1.1rem; }
.wh-form__row { display: flex; flex-direction: column; gap: .3rem; }
.wh-label { font-size: .85rem; font-weight: 600; color: #555; }
.wh-label__hint { font-weight: 400; color: #aaa; font-size: .78rem; margin-left: .4rem; }
.wh-input {
    width: 100%; padding: .7rem .95rem;
    border: 1.5px solid #e0d6cc;
    border-radius: 8px; font-size: .95rem;
    background: #fff; color: #2d2d2d;
    box-sizing: border-box; transition: border-color .2s;
}
.wh-input:focus { outline: none; border-color: #c8a882; }

.wh-input-prefix { display: flex; align-items: stretch; }
.wh-prefix {
    background: #f4f0eb; border: 1.5px solid #e0d6cc;
    border-right: none; border-radius: 8px 0 0 8px;
    padding: .7rem .7rem; font-size: .78rem; color: #999;
    white-space: nowrap; display: flex; align-items: center;
    max-width: 240px; overflow: hidden; text-overflow: ellipsis;
}
.wh-input-prefix .wh-input {
    border-radius: 0 8px 8px 0; flex: 1;
}
.wh-slug-preview { font-size: .8rem; color: #c8a882; margin: .2rem 0 0; word-break: break-all; }

.wh-status { font-size: .9rem; padding: .7rem 1rem; border-radius: 8px; margin-bottom: .5rem; }
.wh-status--ok { background: #edf7ed; color: #2e7d32; }
.wh-status--err { background: #fdecea; color: #c0392b; }

/* ── 서비스 안내 ── */
.wh-service-notice {
    max-width: 800px; margin: 0 auto; padding: .75rem 1.4rem;
    background: #fdf8f2; border-bottom: 1px solid #ede5d8;
    font-size: .78rem; color: #999; line-height: 1.6;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .6rem;
}
.wh-service-notice a { color: #c8a882; text-decoration: none; }
.wh-service-notice a:hover { text-decoration: underline; }
.wh-notice-sep { color: #d8ccc0; }

/* ── 공개 청첩장 목록 ── */
.wh-invites { padding: 3rem 1.5rem; max-width: 800px; margin: 0 auto; }
.wh-invites--mine { padding-top: 2rem; }
.wh-invites__title { font-family: 'Noto Serif KR', serif; font-size: 1.4rem; color: #6b4e2a; text-align: center; margin-bottom: 1.5rem; }
.wh-invites__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.wh-invite-card {
    display: block; text-decoration: none;
    background: #fff; border: 1.5px solid #e8ddd0;
    border-radius: 14px; overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.wh-invite-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.13); transform: translateY(-3px); }
.wh-invite-card__thumb {
    width: 100%; aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f5e6d3 0%, #e8c9a8 100%);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
}
.wh-invite-card__no-img { font-size: 2.5rem; }
.wh-invite-card__body { padding: .9rem 1rem; }
.wh-invite-card__name { font-family: 'Noto Serif KR', serif; font-size: 1rem; color: #4a3020; font-weight: 600; margin-bottom: .25rem; }
.wh-invite-card__date { font-size: .8rem; color: #b08060; margin-bottom: .15rem; }
.wh-invite-card__venue { font-size: .75rem; color: #aaa; }
.wh-invite-card--manage { border-color: #d7c4ac; }
.wh-manage-link {
    display: inline-block; margin-top: .75rem;
    font-size: .82rem; color: #a17443; font-weight: 700;
}
.wh-empty {
    max-width: 560px; margin: 0 auto; text-align: center;
    color: #8a7a6e; font-size: .9rem; line-height: 1.7;
}
.wh-empty code {
    background: #f4f0eb; padding: .1rem .4rem;
    border-radius: 4px; font-size: .82rem;
}

/* ── 어드민 토글 ── */
.w-toggle { display: flex; align-items: center; gap: .7rem; cursor: pointer; user-select: none; margin: .3rem 0 .8rem; }
.w-toggle input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.w-toggle__track {
    width: 44px; height: 24px; background: #ddd; border-radius: 12px;
    position: relative; transition: background .2s; flex-shrink: 0;
}
.w-toggle__track::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; background: #fff; border-radius: 50%;
    transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.w-toggle input:checked ~ .w-toggle__track { background: #c8a882; }
.w-toggle input:checked ~ .w-toggle__track::after { transform: translateX(20px); }
.w-toggle__label { font-size: .88rem; color: #666; }

/* ── 하단 ── */
.wh-ad { width: 100%; max-width: 800px; margin: 1.5rem auto; padding: 0 1rem; }
.wh-ad--top { margin-top: 2rem; }
.wh-ad--bottom { margin-bottom: 1rem; }

.wh-footer {
    text-align: center; padding: 2rem 1rem;
    font-size: .8rem; color: #bbb;
    border-top: 1px solid #ede5d8;
    display: flex; justify-content: center; align-items: center; gap: 1.5rem;
}
.wh-footer__contact { color: #c8a882; text-decoration: none; font-size: .8rem; }
.wh-footer__contact:hover { text-decoration: underline; }
.wh-admin-link { color: transparent; font-size: .7rem; text-decoration: none; }
.wh-admin-link:hover { color: #ccc; }

@media (max-width: 960px) {
    .wh-topnav__burger { display: flex; }
    .wh-topnav__links {
        display: none;
        position: absolute;
        top: 60px;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: .35rem;
        min-width: 200px;
        max-height: calc(100vh - 80px);
        margin-left: 0;
        padding: 1rem;
        overflow-x: visible;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid rgba(107, 78, 42, .12);
        border-radius: 12px;
        background: rgba(253, 246, 238, .98);
        box-shadow: 0 10px 30px rgba(58, 46, 40, .18);
    }
    .wh-topnav__links.open {
        display: flex;
    }
}
@media (max-width: 480px) {
    .wh-hero { padding: 3.5rem 1rem 2.5rem; }
    .wh-create__box { padding: 1.8rem 1.2rem; }
    .wh-account { flex-direction: column; align-items: flex-start; }
    .wh-prefix { display: none; }
    .wh-input-prefix .wh-input { border-radius: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
 * Admin Shell — 3컬럼 레이아웃 (사이드바 + 콘텐츠 + 프리뷰)
 * ═══════════════════════════════════════════════════════════════ */

.w-admin-shell {
    --w-preview-width: 420px;
    display: grid;
    grid-template-columns: 240px 1fr 6px var(--w-preview-width);
    gap: 0;
    height: 100vh;
    background: #f7f5f0;
}

/* 프리뷰 접힘 (데스크톱) — 프리뷰/스플리터 숨기고 콘텐츠 확장 */
.w-admin-shell.is-preview-collapsed {
    grid-template-columns: 240px 1fr;
}
.w-admin-shell.is-preview-collapsed .w-admin-splitter,
.w-admin-shell.is-preview-collapsed .w-admin-preview {
    display: none;
}
/* 접힌 상태에선 데스크톱에서도 topbar 미리보기 버튼 표시 */
.w-admin-shell.is-preview-collapsed .w-admin-preview__toggle {
    display: inline-flex;
    align-items: center;
}

/* ── 스플리터 ── */
.w-admin-splitter {
    background: transparent;
    border-left: 1px solid var(--w-border);
    cursor: col-resize;
    position: relative;
    transition: background .15s;
    touch-action: none;
}
.w-admin-splitter:hover,
.w-admin-splitter:active {
    background: rgba(200, 168, 130, 0.35);
}
.w-admin-splitter::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 40px;
    background: var(--w-border);
    border-radius: 2px;
    pointer-events: none;
}
.w-admin-splitter:hover::after {
    background: var(--w-primary);
}

/* ── 사이드바 ── */
.w-admin-nav {
    background: #fff;
    border-right: 1px solid var(--w-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
}

.w-admin-nav__head {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--w-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.w-admin-nav__brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
}

.w-admin-nav__brand-icon {
    font-size: 1.4rem;
}

.w-admin-nav__brand strong {
    display: block;
    font-size: 1rem;
}

.w-admin-nav__brand small {
    display: block;
    font-size: .75rem;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.w-admin-nav__brand code {
    font-family: 'Courier New', monospace;
    color: var(--w-primary);
}

.w-admin-nav__close {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: .3rem .5rem;
    border-radius: 4px;
}
.w-admin-nav__close:hover { background: #eee; }

.w-admin-nav__list {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .75rem .5rem;
    flex: 1;
}

.w-admin-nav__item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .85rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: .92rem;
    text-align: left;
    cursor: pointer;
    color: #444;
    transition: background .15s, color .15s;
}

.w-admin-nav__item:hover {
    background: rgba(200, 168, 130, 0.08);
    color: var(--w-primary);
}

.w-admin-nav__item.active {
    background: rgba(200, 168, 130, 0.15);
    color: var(--w-primary);
    font-weight: 600;
}

.w-admin-nav__icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 168, 130, .32);
    border-radius: 10px;
    color: #a98158;
    background: rgba(255, 255, 255, .72);
}

.w-admin-nav__icon svg,
.w-admin-title__icon svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.w-admin-nav__item.active .w-admin-nav__icon {
    background: linear-gradient(135deg, rgba(200,168,130,.22), rgba(255,255,255,.92));
    border-color: rgba(200, 168, 130, .7);
    color: #8f683c;
}

.w-admin-nav__label {
    flex: 1;
}

.w-admin-nav__foot {
    padding: 1rem;
    border-top: 1px solid var(--w-border);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.w-admin-nav__link {
    display: block;
    padding: .4rem .5rem;
    font-size: .82rem;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
}
.w-admin-nav__link:hover { background: #f5f0e5; color: var(--w-primary); }

.w-btn--block { width: 100%; display: block; }

/* ── 콘텐츠 ── */
.w-admin-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.w-admin-content__topbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--w-border);
    position: sticky;
    top: 0;
    z-index: 5;
}

.w-admin-nav__toggle,
.w-admin-preview__toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--w-border);
    border-radius: 6px;
    padding: .35rem .7rem;
    font-size: .9rem;
    cursor: pointer;
}
.w-admin-nav__toggle:hover,
.w-admin-preview__toggle:hover {
    background: #f7f5f0;
    border-color: var(--w-primary);
}

.w-admin-content__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.w-admin-title__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.w-admin-preview__toggle-icon { font-size: 1rem; line-height: 1; }
.w-admin-preview__toggle-text { white-space: nowrap; }

.w-admin-title__icon {
    display: inline-flex;
    width: 1.8rem;
    height: 1.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #9b754a;
    background: rgba(200, 168, 130, .14);
}

.w-admin-content__body {
    padding: 1.5rem 2rem 3rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    width: 100%;
}
.w-admin-content__body > * {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.w-admin__section-h {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--w-border);
    color: #333;
}

.w-admin__sub-h {
    margin: 1.15rem 0 .65rem;
    font-size: .92rem;
    font-weight: 700;
    color: #5f4b3c;
}

.w-status--compact {
    padding: .5rem .75rem;
    font-size: .82rem;
    border-radius: 4px;
    background: #f5f5f5;
    margin: 0 0 1rem;
}

/* ── 프리뷰 ── */
.w-admin-preview {
    background: #f0ebe0;
    border-left: 1px solid var(--w-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 1rem;
    gap: .75rem;
}

.w-admin-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 0 .25rem;
    flex-wrap: wrap;
}

.w-admin-preview__actions {
    display: flex;
    gap: .35rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.w-admin-preview__mode {
    border: 1px solid var(--w-border);
    background: rgba(255, 255, 255, .7);
    color: #6b5a4e;
    border-radius: 6px;
    padding: .28rem .55rem;
    font-size: .75rem;
    cursor: pointer;
}
.w-admin-preview__mode.active {
    background: var(--w-primary);
    border-color: var(--w-primary);
    color: #fff;
}

.w-admin-preview__device {
    max-width: 11.5rem;
    border: 1px solid var(--w-border);
    background: rgba(255, 255, 255, .78);
    color: #6b5a4e;
    border-radius: 6px;
    padding: .28rem .45rem;
    font-size: .75rem;
}

.w-admin-preview__actions .w-btn {
    padding: .3rem .55rem;
    text-decoration: none;
}

.w-admin-preview__close {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #666;
    padding: .3rem .5rem;
    border-radius: 4px;
}
.w-admin-preview__close:hover { background: rgba(0,0,0,.06); }

.w-admin-preview__frame {
    flex: 1;
    background: #000;
    border-radius: 24px;
    padding: .35rem;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    min-height: 0;
}

.w-admin-preview__frame--phone {
    max-width: min(100%, var(--w-preview-device-width, 393px));
    width: var(--w-preview-device-width, 393px);
    height: min(var(--w-preview-device-height, 852px), calc(100dvh - 7.5rem));
    flex: 0 1 auto;
    align-self: center;
}

.w-admin-preview__frame--pc {
    border-radius: 12px;
    padding: .25rem;
    overflow: auto;
}

.w-admin-preview__frame.w-admin-preview__frame--pc iframe {
    width: 1000px;
    min-width: 1000px;
    max-width: none;
    border-radius: 8px;
}

.w-admin-preview__frame.w-admin-preview__frame--phone iframe {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.w-admin-preview__frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
    background: #fff;
    display: block;
}

.w-admin-preview__hint {
    font-size: .75rem;
    color: #888;
    text-align: center;
    margin: 0;
}

/* ── 스타일 선택 카드 (디자인 탭) ── */
.w-style-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .85rem;
    margin: .5rem 0;
}

.w-style-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: .85rem;
    border: 2px solid var(--w-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
}
.w-style-card:hover:not(.is-disabled):not(.is-locked) {
    border-color: var(--w-primary);
    transform: translateY(-2px);
}
.w-style-card.active {
    border-color: var(--w-primary);
    background: rgba(200, 168, 130, 0.06);
}
.w-style-card.is-disabled {
    opacity: .5;
    cursor: not-allowed;
}
.w-style-card.is-locked {
    opacity: .72;
    cursor: not-allowed;
}
.w-style-card.is-locked .w-style-card__preview {
    filter: grayscale(.45);
}
.w-style-card input[type="radio"] { display: none; }

.w-style-card__preview {
    display: block;
    aspect-ratio: 3 / 2;
    background: #f7f5f0;
    border: 1px dashed var(--w-border);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.w-style-card__preview--onepage::before {
    content: "";
    position: absolute;
    inset: 15% 25% 15% 25%;
    background:
        linear-gradient(#c8a882 20%, transparent 20%, transparent 40%, #ddd 40%, #ddd 60%, transparent 60%, transparent 80%, #c8a882 80%);
    border-radius: 4px;
}

.w-style-card__preview--tabs::before {
    content: "";
    position: absolute;
    inset: 15% 25%;
    background: #fff;
    border-radius: 4px;
    box-shadow: inset 0 -12px 0 #ddd, inset 0 -14px 0 #c8a882;
}

.w-style-card__preview--gallery::before {
    content: "";
    position: absolute;
    inset: 15% 18%;
    background:
        linear-gradient(#c8a882, #c8a882) left top / 30% 45% no-repeat,
        linear-gradient(#ddd, #ddd) center top / 30% 45% no-repeat,
        linear-gradient(#c8a882, #c8a882) right top / 30% 45% no-repeat,
        linear-gradient(#ddd, #ddd) left bottom / 30% 45% no-repeat,
        linear-gradient(#c8a882, #c8a882) center bottom / 30% 45% no-repeat,
        linear-gradient(#ddd, #ddd) right bottom / 30% 45% no-repeat;
    border-radius: 4px;
}

.w-style-card__preview--story::before {
    content: "";
    position: absolute;
    inset: 15% 20%;
    background:
        linear-gradient(#c8a882, #c8a882) left top / 45% 40% no-repeat,
        linear-gradient(#ddd, #ddd) right top / 45% 12% no-repeat,
        linear-gradient(#ddd, #ddd) right 0 top 22% / 45% 12% no-repeat,
        linear-gradient(#ddd, #ddd) right bottom / 45% 40% no-repeat,
        linear-gradient(#c8a882, #c8a882) left 0 bottom 22% / 45% 12% no-repeat,
        linear-gradient(#c8a882, #c8a882) left bottom / 45% 12% no-repeat;
    border-radius: 4px;
}

.w-style-card__preview--card::before {
    content: "";
    position: absolute;
    inset: 12% 22%;
    background: #fff;
    border-radius: 6px;
    box-shadow:
        0 0 0 1px #e6d9c0,
        6px 6px 0 -1px #f2e7d8,
        12px 12px 0 -2px #eadfc9;
}

.w-style-card__preview--photobook::before {
    content: "";
    position: absolute;
    inset: 18% 15%;
    background:
        linear-gradient(90deg, #c8a882 0 48%, #b28f6a 48% 52%, #ddd 52% 100%);
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.w-style-card__preview--photobook::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.w-style-card__meta strong {
    display: block;
    font-size: .95rem;
    margin-bottom: .2rem;
}
.w-style-card__meta strong em {
    font-style: normal;
    font-weight: 400;
    font-size: .8rem;
    color: #999;
}
.w-style-card__meta small {
    display: block;
    font-size: .78rem;
    color: #777;
    line-height: 1.4;
}
.w-layout-lock {
    display: inline-flex;
    align-items: center;
    margin-left: .35rem;
    padding: .1rem .38rem;
    border-radius: 999px;
    background: #f2e7d8;
    color: #8a6339;
    font-size: .68rem;
    font-weight: 700;
}
.w-layout-lock-hint {
    color: #a77b4a !important;
}

/* ── 검색형 레이아웃 선택기 ── */
.w-layout-picker {
    display: grid;
    gap: 1rem;
    margin-top: .75rem;
}

.w-layout-combobox {
    position: relative;
    z-index: 4;
}

.w-layout-combobox__trigger {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem .9rem;
    border: 1px solid var(--w-border);
    border-radius: 12px;
    color: #2e2b28;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.w-layout-combobox__trigger:hover,
.w-layout-combobox__trigger:focus-visible {
    border-color: var(--w-primary);
    box-shadow: 0 0 0 3px rgba(200, 168, 130, .15);
    outline: none;
}

.w-layout-combobox__value {
    min-width: 0;
    display: grid;
    gap: .15rem;
}

.w-layout-combobox__value small {
    color: #7e7770;
    font-size: .72rem;
}

.w-layout-combobox__value strong {
    overflow: hidden;
    font-size: .95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.w-layout-combobox__chevron {
    flex: 0 0 auto;
    color: #806548;
    font-size: 1rem;
}

.w-layout-combobox__popover {
    position: absolute;
    top: calc(100% + .4rem);
    right: 0;
    left: 0;
    padding: .75rem;
    border: 1px solid var(--w-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(57, 45, 33, .16);
}

.w-layout-combobox__search-label {
    display: block;
    margin: 0 0 .35rem;
    color: #5f5953;
    font-size: .76rem;
    font-weight: 700;
}

.w-layout-combobox__search {
    min-height: 42px;
    margin-bottom: .55rem;
}

.w-layout-options {
    max-height: 360px;
    display: grid;
    gap: .35rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.w-layout-options__empty {
    margin: 1rem;
    color: #827b74;
    text-align: center;
}

.w-layout-option {
    width: 100%;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    padding: .55rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.w-layout-option:hover,
.w-layout-option:focus-visible,
.w-layout-option.is-selected {
    border-color: #dcc5a8;
    background: #faf6f0;
    outline: none;
}

.w-layout-option.is-locked {
    background: #fbfaf8;
}

.w-layout-option.is-locked .w-style-card__preview {
    filter: grayscale(.5);
    opacity: .7;
}

.w-layout-option .w-style-card__preview {
    width: 74px;
    border-radius: 7px;
}

.w-layout-option__meta {
    min-width: 0;
    display: grid;
    gap: .16rem;
}

.w-layout-option__meta strong {
    font-size: .88rem;
}

.w-layout-option__meta small {
    display: -webkit-box;
    overflow: hidden;
    color: #77716b;
    font-size: .74rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.w-layout-option__badges,
.w-layout-detail__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .3rem;
}

.w-layout-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: .15rem .45rem;
    border-radius: 999px;
    color: #725b42;
    background: #f2e7d8;
    font-size: .67rem;
    font-weight: 700;
    white-space: nowrap;
}

.w-layout-badge--active {
    color: #345f4a;
    background: #e2f0e8;
}

.w-layout-detail {
    display: grid;
    grid-template-columns: minmax(210px, .9fr) minmax(240px, 1.1fr);
    gap: 1.1rem;
    padding: 1rem;
    border: 1px solid var(--w-border);
    border-radius: 14px;
    background: #fff;
}

.w-layout-detail__visual {
    width: 100%;
    min-height: 210px;
    align-self: stretch;
}

.w-layout-detail__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.w-layout-detail__badges {
    justify-content: flex-start;
    margin-bottom: .55rem;
}

.w-layout-detail__content h4 {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
}

.w-layout-detail__content > p {
    margin: 0 0 .75rem;
    color: #6f6861;
    font-size: .84rem;
    line-height: 1.55;
}

.w-layout-detail__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin: 0 0 .8rem;
}

.w-layout-detail__facts > div {
    padding: .55rem .65rem;
    border-radius: 9px;
    background: #f8f6f2;
}

.w-layout-detail__facts dt {
    margin-bottom: .12rem;
    color: #8a837c;
    font-size: .68rem;
}

.w-layout-detail__facts dd {
    margin: 0;
    color: #403b36;
    font-size: .78rem;
    font-weight: 700;
}

.w-layout-detail__notice,
.w-layout-detail__success {
    padding: .55rem .65rem;
    border-radius: 9px;
    color: #8a6339 !important;
    background: #fff5e6;
    font-size: .76rem !important;
}

.w-layout-detail__success {
    color: #345f4a !important;
    background: #edf7f1;
}

.w-layout-version-policy {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 0 0 .8rem;
    padding: .65rem;
    border: 1px solid #e8e1d8;
    border-radius: 9px;
    background: #fffdf9;
    cursor: pointer;
}
.w-layout-version-policy input { margin-top: .15rem; accent-color: var(--w-primary); }
.w-layout-version-policy span { display: grid; gap: .15rem; }
.w-layout-version-policy strong { font-size: .78rem; }
.w-layout-version-policy small { color: #746d66; font-size: .7rem; line-height: 1.45; }

.w-layout-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: auto;
}

.w-layout-detail__actions .w-btn {
    min-height: 40px;
}

/* ── 반응형: 태블릿 (프리뷰 접힘) ── */
@media (max-width: 1279px) {
    .w-admin-shell {
        grid-template-columns: 220px 1fr;
    }

    .w-admin-splitter { display: none; }

    .w-admin-preview__toggle {
        display: inline-flex;
        align-items: center;
    }

    .w-admin-preview {
        position: fixed;
        top: 0;
        right: 0;
        width: min(420px, 92vw);
        height: 100vh;
        z-index: 30;
        transform: translateX(100%);
        transition: transform .25s ease;
        box-shadow: -8px 0 24px rgba(0,0,0,.15);
    }
    .w-admin-preview.is-open {
        transform: translateX(0);
    }
    .w-admin-preview__close {
        display: inline-block;
    }
}

/* ── 반응형: 모바일 (사이드바도 접힘) ── */
@media (max-width: 767px) {
    .w-admin {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .w-admin-shell,
    .w-admin-shell.is-preview-collapsed {
        grid-template-columns: 1fr;
        height: 100svh;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .w-admin-nav__toggle {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
    }

    .w-admin-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: min(280px, 82vw);
        height: 100vh;
        z-index: 40;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 8px 0 24px rgba(0,0,0,.15);
    }
    .w-admin-nav.is-open {
        transform: translateX(0);
    }
    .w-admin-nav__close {
        display: inline-block;
    }

    .w-admin-content__topbar {
        gap: .5rem;
        padding: .75rem .85rem;
        align-items: center;
    }

    .w-admin-content__title {
        min-width: 0;
        flex: 1 1 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1rem;
    }

    .w-admin-title__icon {
        width: 1.6rem;
        height: 1.6rem;
        flex: 0 0 auto;
    }

    .w-admin-preview__toggle {
        flex: 0 0 auto;
        padding: .4rem .55rem;
        line-height: 1;
        white-space: nowrap;
        justify-content: center;
        text-align: center;
    }
    /* 모바일에서는 아이콘만, 텍스트 숨김 */
    .w-admin-preview__toggle-text { display: none; }

    .w-admin-content__body {
        padding: 1rem .85rem 3rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .w-admin-content__body > * {
        max-width: none;
        width: max(100%, 360px);
    }

    .w-admin__section {
        padding: 1.15rem;
        border-radius: 10px;
    }

    .w-admin-preview {
        width: 100vw;
        max-width: 100vw;
        left: 0;
        right: auto;
        transform: translateX(100%);
        box-sizing: border-box;
    }

    .w-admin-preview.is-open {
        transform: translateX(0);
    }

    .w-admin-shell.is-preview-collapsed .w-admin-preview {
        display: none;
    }

    .w-admin-preview__frame {
        border-radius: 12px;
        padding: .25rem;
    }

    .w-admin-preview__frame--pc {
        overflow: auto;
    }

    .w-layout-combobox__popover {
        position: static;
        margin-top: .45rem;
        box-shadow: 0 8px 24px rgba(57, 45, 33, .12);
    }

    .w-layout-options {
        max-height: min(360px, 48svh);
    }

    .w-layout-option {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .w-layout-option .w-style-card__preview {
        width: 64px;
    }

    .w-layout-option__badges {
        grid-column: 2;
        justify-content: flex-start;
    }

    .w-layout-detail {
        grid-template-columns: 1fr;
    }

    .w-layout-detail__visual {
        min-height: 190px;
    }

    .w-layout-detail__actions .w-btn {
        flex: 1 1 150px;
    }
}

/* ═══════════════════════════════════════════════════════════════
 * 모바일 청첩장 메뉴 — FAB + 슬라이드업 시트
 * 폰에서만 하단 탭바 대신 표시. 640px 초과에선 기존 탭바 유지.
 * ═══════════════════════════════════════════════════════════════ */

.w-invite-menu-fab { display: none; }

@media (max-width: 640px) {
    .w-invite-tabs-bar { display: none !important; }
    /* 탭바 존재 여부에 따른 페이지 하단 여백 규칙 무력화 (탭바 숨겼으므로 불필요) */
    .w-invite-tabs-bar ~ .w-invite-tab-page {
        padding-bottom: 5.5rem;
    }
    /* 폰에선 음악 컨트롤을 우상단으로 + 라벨 숨김 아이콘만 */
    .w-music-bar {
        top: calc(1rem + env(safe-area-inset-top, 0px)) !important;
        bottom: auto !important;
        right: calc(1rem + env(safe-area-inset-right, 0px)) !important;
        left: auto !important;
        padding: .35rem !important;
        gap: 0 !important;
    }
    .w-music-bar.w-draggable-positioned {
        left: var(--w-drag-mobile-x, var(--w-drag-x, 50%)) !important;
        top: var(--w-drag-mobile-y, var(--w-drag-y, 50%)) !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
    }
    .w-music-label {
        display: none !important;
    }

    /* 하단 CTA 카드(방명록/Thank You)를 뷰포트 최하단으로 밀기 */
    .w-hero__content {
        min-height: 100svh !important;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .w-invite-menu-fab {
        display: inline-flex;
        position: fixed;
        right: calc(1rem + env(safe-area-inset-right, 0px));
        top: 42vh;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 1px solid rgba(200, 168, 130, .35);
        background: #fff;
        color: var(--w-dark);
        font-size: 1.5rem;
        line-height: 1;
        box-shadow: 0 10px 28px rgba(58, 46, 40, .28);
        z-index: 900;
        cursor: grab;
        align-items: center;
        justify-content: center;
        transition: transform .2s ease, background .2s;
        touch-action: none;
    }
    .w-invite-menu-fab.is-dragging {
        cursor: grabbing;
        transition: none;
    }
    .w-invite-menu-fab:active { transform: scale(.94); }
    .w-invite-menu-fab.is-open {
        background: var(--w-primary);
        color: #fff;
    }

    .w-invite-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 895;
        animation: wInviteMenuFade .18s ease-out;
    }

    .w-invite-menu-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        border-radius: 22px 22px 0 0;
        z-index: 897;
        padding: .55rem 1.15rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -10px 32px rgba(58, 46, 40, .25);
        animation: wInviteMenuSlideUp .22s ease-out;
        max-height: 82vh;
        overflow-y: auto;
    }

    .w-invite-menu-sheet__handle {
        width: 44px;
        height: 4px;
        background: rgba(0, 0, 0, .18);
        border-radius: 2px;
        margin: 0 auto .85rem;
    }

    .w-invite-menu-sheet__grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: .75rem;
    }

    .w-invite-menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .4rem;
        padding: .8rem .35rem;
        border: 1px solid var(--w-border);
        border-radius: 14px;
        background: #fff;
        font: inherit;
        color: var(--w-dark);
        cursor: pointer;
        font-size: .78rem;
        text-align: center;
        min-height: 5rem;
    }
    .w-invite-menu-item.active {
        background: rgba(200, 168, 130, .12);
        border-color: var(--w-primary);
        color: var(--w-primary);
        font-weight: 600;
    }
    .w-invite-menu-item__ico {
        display: inline-flex;
        width: 2.2rem;
        height: 2.2rem;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(200, 168, 130, .15);
        color: var(--w-primary);
        font-size: 1.15rem;
    }
    .w-invite-menu-item.active .w-invite-menu-item__ico {
        background: var(--w-primary);
        color: #fff;
    }

    @keyframes wInviteMenuSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    @keyframes wInviteMenuFade {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* =========================================================
   Card 레이아웃 — 세로 스택형 카드 프레임
   ========================================================= */
.wedding-layout-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0 3rem;
    background: linear-gradient(180deg, #f8f4ec 0%, #fbf7f0 100%);
}

.wedding-card-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0 1rem;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 32px rgba(90, 60, 20, 0.12);
}

.wedding-card-hero__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f0e8d8;
}

.wedding-card-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wedding-card-hero__panel {
    padding: 1.5rem 1.4rem 1.75rem;
    text-align: center;
}

.wedding-card-hero__panel h1 {
    font-size: 1.65rem;
    margin: .35rem 0 .55rem;
    letter-spacing: .04em;
}

.wedding-card-hero__when {
    font-size: .95rem;
    color: #6b5033;
    margin: 0 0 .35rem;
}

.wedding-card-frame {
    margin: 0 1rem;
    padding: 1.4rem 1.2rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(90, 60, 20, 0.08);
}

.wedding-card-frame > section {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.wedding-card-frame .w-section-title {
    margin-top: 0;
}

@media (min-width: 720px) {
    .wedding-layout-card {
        max-width: 720px;
        margin: 0 auto;
        gap: 1.25rem;
    }
    .wedding-card-hero {
        margin: 0;
        flex-direction: row;
    }
    .wedding-card-hero__media {
        width: 55%;
        aspect-ratio: auto;
    }
    .wedding-card-hero__panel {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        padding: 2rem 2rem;
    }
    .wedding-card-frame {
        margin: 0;
        padding: 1.75rem 1.75rem;
    }
}

/* =========================================================
   PhotoBook 레이아웃 — 앨범 페이지 스타일 세로 스크롤
   ========================================================= */
.wedding-layout-photobook {
    background: #f3ece0;
    padding: 0 0 4rem;
}

.wedding-photobook-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 88vh;
    overflow: hidden;
    background: #1b140a;
}

.wedding-photobook-cover__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
}

.wedding-photobook-cover__image--empty {
    background: linear-gradient(135deg, #2b1e10, #4a331b);
}

.wedding-photobook-cover__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.5rem 2.25rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.wedding-photobook-cover__panel .wedding-layout-kicker {
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: .3em;
}

.wedding-photobook-cover__panel h1 {
    font-size: 2rem;
    margin: .4rem 0 .5rem;
    letter-spacing: .05em;
}

.wedding-photobook-cover__panel p {
    margin: .15rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.wedding-photobook-cover__panel .wedding-layout-muted {
    color: rgba(255, 255, 255, 0.7);
    font-size: .9rem;
}

.wedding-photobook-heading {
    padding: 1.75rem 1.25rem .25rem;
    text-align: center;
}

.wedding-photobook-pages {
    padding: 0 0 1rem;
}

.wedding-photobook-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #7b6144;
    background: #fff;
    margin: 0 1rem;
    border-radius: 12px;
}

.wedding-photobook-scroller {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.wedding-photobook-page {
    position: relative;
    margin: 0;
    background: #fff;
    padding: .9rem;
    border-radius: 4px;
    box-shadow:
        0 10px 24px rgba(60, 40, 15, 0.14),
        inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.wedding-photobook-page img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    background: #f8f4ec;
    border-radius: 2px;
}

.wedding-photobook-page__caption {
    text-align: right;
    font-size: .78rem;
    color: #8a6c4a;
    letter-spacing: .12em;
    padding: .55rem .25rem 0;
    margin: 0;
}

.wedding-photobook-chapters {
    padding: 0 0 1rem;
}

.wedding-photobook-chapter {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1rem;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(60, 40, 15, 0.12);
}

.wedding-photobook-chapter__photo {
    margin: 0;
    background: #f0e8d8;
}

.wedding-photobook-chapter__photo img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    display: block;
}

.wedding-photobook-chapter__body {
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: center;
}

.wedding-photobook-chapter__label {
    letter-spacing: .3em;
    font-size: .75rem;
    color: #a37c4b;
    margin: 0 0 .35rem;
}

.wedding-photobook-chapter__body h3 {
    margin: 0 0 .75rem;
    font-size: 1.25rem;
}

.wedding-photobook-chapter__body p {
    margin: 0;
    color: #4a3720;
    line-height: 1.7;
}

.wedding-photobook-generic {
    margin: 1rem;
    padding: 1.25rem 1.1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(60, 40, 15, 0.10);
}

.wedding-photobook-generic > section {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

@media (min-width: 720px) {
    .wedding-layout-photobook {
        max-width: 720px;
        margin: 0 auto;
    }
}

/* PhotoBook — 지정 페이지(featured) 전용 스타일 */
.wedding-photobook-page--featured {
    background: #fff;
    padding: 1rem 1rem 1.25rem;
    box-shadow:
        0 14px 32px rgba(60, 40, 15, 0.16),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.wedding-photobook-page__body {
    margin: .75rem .25rem 0;
    color: #4a3720;
    line-height: 1.7;
    text-align: center;
    font-size: .95rem;
}

.wedding-photobook-page__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f4ec;
    color: #a5896a;
    font-size: .85rem;
    padding: 3rem 1rem;
    border-radius: 2px;
}

/* Card — 강조 카드 리스트 */
.wedding-card-highlights {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin: 0 1rem;
}

.wedding-card-highlight {
    display: grid;
    grid-template-columns: 3rem 1fr;
    align-items: start;
    gap: .9rem;
    padding: 1.1rem 1.1rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(90, 60, 20, 0.08);
}

.wedding-card-highlight__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--w-primary, #c8a882) 16%, #fff);
    font-size: 1.4rem;
    line-height: 1;
}

.wedding-card-highlight__text h3 {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
    color: var(--w-dark, #3a2c17);
}

.wedding-card-highlight__text p {
    margin: 0;
    color: #5a4326;
    line-height: 1.6;
    font-size: .92rem;
}

@media (min-width: 720px) {
    .wedding-card-highlights {
        margin: 0;
    }
}

/* Card 레이아웃 — 각 섹션 카드 프레임 위의 오버라이드 헤더 */
.wedding-card-frame__head {
    display: grid;
    grid-template-columns: 2.6rem 1fr;
    align-items: center;
    gap: .85rem;
    padding: 0 0 .9rem;
    margin: 0 0 .85rem;
    border-bottom: 1px solid rgba(200, 168, 130, 0.18);
}
.wedding-card-frame__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--w-primary, #c8a882) 16%, #fff);
    font-size: 1.2rem;
    line-height: 1;
}
.wedding-card-frame__title h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--w-dark, #3a2c17);
    letter-spacing: .01em;
}
.wedding-card-frame__title p {
    margin: .2rem 0 0;
    font-size: .88rem;
    color: #6b5033;
    line-height: 1.5;
}

/* 오버라이드 헤더가 그려질 때는 InvitationSections 내부 기본 제목을 숨겨 이중 헤더를 방지한다. */
.wedding-card-frame--has-header .w-section-title {
    display: none !important;
}
/* Shared CodeMaru language/theme controls. Tenant invitation palettes remain intact. */
.wp-preferences { display: flex; align-items: center; gap: .35rem; margin-left: .2rem; font: 600 .75rem/1.2 system-ui,sans-serif; }
.wp-preferences label { display: flex; align-items: center; gap: .3rem; }
.wp-preferences select { min-height: 2rem; max-width: 9.5rem; border: 1px solid rgba(128,128,128,.35); border-radius: .5rem; padding: .25rem .45rem; background: Canvas; color: CanvasText; font: inherit; }
.wh-user-menu { position: relative; flex: 0 0 auto; }
.wh-user-menu summary { list-style: none; }
.wh-user-menu summary::-webkit-details-marker { display: none; }
.wh-user-badge { cursor: pointer; white-space: nowrap; padding: .45rem .65rem; border: 1px solid rgba(128,128,128,.35); border-radius: .65rem; font-weight: 700; }
.wh-user-popover { position: absolute; z-index: 1000; top: calc(100% + .55rem); right: 0; width: 13.5rem; padding: .75rem; border: 1px solid rgba(128,128,128,.25); border-radius: .8rem; background: Canvas; color: CanvasText; box-shadow: 0 .7rem 2rem rgba(0,0,0,.18); }
.wh-user-menu-label { margin: 0 0 .55rem; color: color-mix(in srgb, CanvasText 65%, transparent); font-size: .75rem; font-weight: 700; }
.wh-user-popover .wp-preferences { display: grid; margin: 0; }
.wh-user-popover .wp-preferences label { display: grid; grid-template-columns: auto 1fr; }
.wh-user-popover .wp-preferences select { grid-column: 1 / -1; width: 100%; max-width: none; }
.wh-user-menu-divider { height: 1px; margin: .7rem 0; background: rgba(128,128,128,.22); }
.wh-user-popover > a { display: block; padding: .55rem .35rem; border-radius: .45rem; }
.wh-user-popover > a:hover { background: color-mix(in srgb, CanvasText 8%, transparent); }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
.w-admin-preferences {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 1rem auto;
    position: relative;
    z-index: 20;
}

/* Normal tenant administration follows the shared portal theme. */
.w-admin {
    --wa-bg: #f7f5f0;
    --wa-panel: #ffffff;
    --wa-panel-soft: #f8f6f2;
    --wa-panel-muted: #f0ebe0;
    --wa-text: #342f2a;
    --wa-strong: #211d1a;
    --wa-muted: #756d66;
    --wa-border: #e4ddd3;
    --wa-hover: rgba(200, 168, 130, .13);
    --wa-active: rgba(200, 168, 130, .22);
    min-height: 100vh;
    color: var(--wa-text);
    background: var(--wa-bg);
}
.w-admin .w-admin-preferences {
    margin-bottom: 0;
    padding: .55rem 1rem;
    color: var(--wa-text);
    background: var(--wa-panel);
    border-bottom: 1px solid var(--wa-border);
}
.w-admin .w-admin-shell { color: var(--wa-text); background: var(--wa-bg); }
.w-admin .w-admin-nav,
.w-admin .w-admin-content__topbar { color: var(--wa-text); background: var(--wa-panel); border-color: var(--wa-border); }
.w-admin .w-admin-content,
.w-admin .w-admin-content__body { color: var(--wa-text); background: var(--wa-bg); }
.w-admin .w-admin-preview { color: var(--wa-text); background: var(--wa-panel-muted); border-color: var(--wa-border); }
.w-admin .w-admin-nav__head,
.w-admin .w-admin-nav__foot,
.w-admin .w-admin__section-h,
.w-admin .w-admin__sub-h,
.w-admin .w-admin-splitter { border-color: var(--wa-border); }
.w-admin .w-admin-nav__brand small,
.w-admin .w-admin-nav__link,
.w-admin .w-admin-preview__hint,
.w-admin .w-hint { color: var(--wa-muted); }
.w-admin .w-admin-nav__item,
.w-admin .w-admin-nav__close,
.w-admin .w-admin-preview__close,
.w-admin .w-admin-nav__toggle,
.w-admin .w-admin-preview__toggle { color: var(--wa-text); }
.w-admin .w-admin-nav__item:hover,
.w-admin .w-admin-nav__link:hover,
.w-admin .w-admin-nav__close:hover,
.w-admin .w-admin-preview__close:hover,
.w-admin .w-admin-nav__toggle:hover,
.w-admin .w-admin-preview__toggle:hover { color: var(--wa-strong); background: var(--wa-hover); }
.w-admin .w-admin-nav__item.active { color: var(--wa-strong); background: var(--wa-active); }
.w-admin .w-admin-nav__icon { color: var(--w-primary); background: var(--wa-panel-soft); border-color: var(--wa-border); }
.w-admin .w-admin-nav__item.active .w-admin-nav__icon { color: var(--wa-strong); background: var(--wa-active); border-color: var(--w-primary); }
.w-admin .w-admin-title__icon { color: var(--wa-strong); background: var(--wa-active); }
.w-admin .w-admin__section-h,
.w-admin .w-admin__sub-h,
.w-admin .w-label,
.w-admin .w-admin-content__title { color: var(--wa-strong); }
.w-admin .w-status--compact { color: var(--wa-text); background: var(--wa-panel-soft); border: 1px solid var(--wa-border); }
.w-admin .w-input,
.w-admin input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
.w-admin select,
.w-admin textarea,
.w-admin .w-admin-preview__mode,
.w-admin .w-admin-preview__device,
.w-admin .w-layout-combobox__trigger,
.w-admin .w-layout-combobox__popover,
.w-admin .w-note-toolbar button {
    color: var(--wa-text);
    background: var(--wa-panel);
    border-color: var(--wa-border);
}
.w-admin .w-style-card,
.w-admin .w-layout-detail,
.w-admin .w-layout-version-policy,
.w-admin .w-note-preview,
.w-admin .w-note-editor,
.w-admin .w-story-admin-card,
.w-admin .w-admin__hero-preview,
.w-admin .w-admin__music-preview,
.w-admin .w-admin__video-item,
.w-admin .w-acc-editor,
.w-admin .w-layout-detail__notice,
.w-admin .w-layout-detail__success,
.w-admin .w-theme-builder,
.w-admin .w-theme-color-editor,
.w-admin .w-theme-custom,
.w-admin .w-admin-card,
.w-admin .w-media-card,
.w-admin .w-gallery-item,
.w-admin .w-account-editor,
.w-admin .w-share-panel { color: var(--wa-text); background: var(--wa-panel); border-color: var(--wa-border); }
.w-admin .w-layout-detail__facts > div,
.w-admin .w-layout-option:hover,
.w-admin .w-layout-option:focus-visible,
.w-admin .w-layout-option.is-selected,
.w-admin .w-style-card__preview,
.w-admin .w-note-preview__head,
.w-admin .w-layout-detail__notice,
.w-admin .w-layout-detail__success { color: var(--wa-text); background: var(--wa-panel-soft); border-color: var(--wa-border); }
.w-admin .w-note-preview__body,
.w-admin .w-note-preview__body :is(h1,h2,h3,h4,h5,h6,p,li,strong,em),
.w-admin .w-story-admin-card,
.w-admin .w-story-admin-card :is(h1,h2,h3,h4,h5,h6,p,span,strong,small),
.w-admin .w-admin__hero-preview,
.w-admin .w-admin__music-preview,
.w-admin .w-admin__video-meta { color: var(--wa-text); }
.w-admin .w-btn:not(.w-btn--primary):not(.w-btn--danger) {
    color: var(--wa-text);
    background: var(--wa-panel-soft);
    border-color: var(--wa-border);
}
.w-admin .w-btn:not(.w-btn--primary):not(.w-btn--danger):hover:not(:disabled) {
    color: var(--wa-strong);
    background: var(--wa-hover);
    border-color: var(--w-primary);
}
.w-admin .w-btn:disabled,
.w-admin button:disabled { color: var(--wa-muted); opacity: .72; }
.w-admin input::placeholder,
.w-admin textarea::placeholder { color: color-mix(in srgb, var(--wa-muted) 82%, transparent); opacity: 1; }
.w-admin .w-layout-detail__content > p,
.w-admin .w-layout-detail__facts dt,
.w-admin .w-layout-combobox__value small,
.w-admin .w-layout-option__meta small,
.w-admin .w-style-card__meta small { color: var(--wa-muted); }
.w-admin .w-layout-detail__facts dd,
.w-admin .w-layout-combobox__trigger,
.w-admin .w-layout-combobox__search-label { color: var(--wa-text); }

html[data-theme="dark"] .w-admin {
    --wa-bg: #0b1220;
    --wa-panel: #111b2d;
    --wa-panel-soft: #17243a;
    --wa-panel-muted: #0e192b;
    --wa-text: #d8e2f0;
    --wa-strong: #f5f8fc;
    --wa-muted: #aebbd0;
    --wa-border: #34445f;
    --wa-hover: #1c2a42;
    --wa-active: #203453;
}
html[data-theme="dark"] body { background: #0b1220; color: #e5edf8; }
html[data-theme="dark"] .wh-page { background: #0b1220; color: #e5edf8; }
html[data-theme="dark"] .wh-topnav, html[data-theme="dark"] .wh-create__box, html[data-theme="dark"] .wh-feature, html[data-theme="dark"] .wh-invite-card { background: #111b2d; color: #e5edf8; border-color: #2b3b55; }
html[data-theme="dark"] .wh-input, html[data-theme="dark"] .wh-input-prefix { background: #0e1728; color: #f3f6fb; border-color: #34445f; }
html[data-theme="dark"] .wh-topnav {
    --dreamine-portal-background: rgba(11,18,32,.96);
    --dreamine-portal-panel: #111b2d;
    --dreamine-portal-border: #34445f;
    --dreamine-portal-text: #d8e2f0;
    --dreamine-portal-strong: #f5f8fc;
    --dreamine-portal-muted: #aebbd0;
    --dreamine-portal-hover: #1c2a42;
    --dreamine-portal-active-background: #203453;
    --dreamine-portal-active-text: #ffffff;
    --dreamine-portal-icon-background: #17243a;
    --dreamine-portal-icon-border: #34445f;
    --cm-header-bg: rgba(11,18,32,.96);
    --cm-header-border: #2b3b55;
    --cm-header-text: #e6edf7;
    --cm-header-active-bg: #1c2a42;
    --cm-header-active-text: #fff;
    --cm-header-menu-bg: #111b2d;
    background: rgba(11,18,32,.96);
}
html[data-theme="dark"] .wh-topnav a,
html[data-theme="dark"] .wh-topnav__links a,
html[data-theme="dark"] .wh-topnav__auth,
html[data-theme="dark"] .wh-user-badge { color: #e6edf7; }
html[data-theme="dark"] .wh-topnav__links a:hover,
html[data-theme="dark"] .wh-topnav__links a.active { background: #1c2a42; color: #fff; }
html[data-theme="dark"] .wh-topnav__burger span { background: #e6edf7; }
html[data-theme="dark"] .wh-hero { background: linear-gradient(135deg,#101b2e 0%,#16233a 52%,#1c2b45 100%); }
html[data-theme="dark"] .wh-hero__title,
html[data-theme="dark"] .wh-create__title,
html[data-theme="dark"] .wh-feature h3,
html[data-theme="dark"] .wh-invites__title,
html[data-theme="dark"] .wh-invite-card__name,
html[data-theme="dark"] .wh-account strong { color: #f4f7fb; }
html[data-theme="dark"] .wh-hero__sub,
html[data-theme="dark"] .wh-create__desc,
html[data-theme="dark"] .wh-feature p,
html[data-theme="dark"] .wh-empty,
html[data-theme="dark"] .wh-label,
html[data-theme="dark"] .wh-label__hint,
html[data-theme="dark"] .wh-create__notice,
html[data-theme="dark"] .wh-invite-card__venue { color: #b8c4d6; }
html[data-theme="dark"] .wh-create { background: #0d1627; border-color: #2b3b55; }
html[data-theme="dark"] .wh-service-notice,
html[data-theme="dark"] .wh-account { background: #152238; color: #c8d3e3; border-color: #2b3b55; }
html[data-theme="dark"] .wh-btn--secondary { background: #17243a; color: #edf3fb; border-color: #354663; }
html[data-theme="dark"] .wh-prefix,
html[data-theme="dark"] .wh-create__notice code,
html[data-theme="dark"] .wh-empty code { background: #17243a; color: #c8d3e3; border-color: #34445f; }
html[data-theme="dark"] .wh-footer { border-color: #2b3b55; color: #9cabc0; }
html[data-theme="dark"] .wh-user-popover { background: #111b2d; color: #e5edf8; border-color: #34445f; }
html[data-theme="dark"] .wedding-admin-shell {
    --wa-bg: #0b1220;
    --wa-card: rgba(17, 27, 45, .96);
    --wa-card-strong: #162238;
    --wa-border: rgba(123, 148, 183, .24);
    --wa-border-strong: rgba(148, 170, 201, .38);
    --wa-text: #e7eef8;
    --wa-muted: #a8b6ca;
    --wa-gold: #e0bd8c;
    --wa-gold-dark: #f0cc98;
    --wa-sage: #77b18a;
    --wa-blue: #83b5e8;
    background: radial-gradient(circle at 16% 10%, rgba(83, 119, 166, .17), transparent 30%), #0b1220;
}
html[data-theme="dark"] .wedding-admin-sidebar,
html[data-theme="dark"] .wedding-admin-detail { background: rgba(13, 22, 39, .96); }
html[data-theme="dark"] .wedding-admin-nav__item { color: #c4d0e0; }
html[data-theme="dark"] .wedding-admin-nav__item:hover,
html[data-theme="dark"] .wedding-admin-nav__item.is-active { background: #1a2941; color: #fff; }
html[data-theme="dark"] .wedding-admin-shell input,
html[data-theme="dark"] .wedding-admin-shell select,
html[data-theme="dark"] .wedding-admin-shell textarea { background: #0d1728; color: #edf3fb; border-color: #344760; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) { color-scheme: dark; }
  html:not([data-theme]) .w-admin {
    --wa-bg: #0b1220;
    --wa-panel: #111b2d;
    --wa-panel-soft: #17243a;
    --wa-panel-muted: #0e192b;
    --wa-text: #d8e2f0;
    --wa-strong: #f5f8fc;
    --wa-muted: #aebbd0;
    --wa-border: #34445f;
    --wa-hover: #1c2a42;
    --wa-active: #203453;
  }
  html:not([data-theme]) body, html:not([data-theme]) .wh-page { background: #0b1220; color: #e5edf8; }
  html:not([data-theme]) .wedding-admin-shell {
    --wa-bg: #0b1220; --wa-card: rgba(17,27,45,.96); --wa-card-strong: #162238;
    --wa-border: rgba(123,148,183,.24); --wa-border-strong: rgba(148,170,201,.38);
    --wa-text: #e7eef8; --wa-muted: #a8b6ca; --wa-gold: #e0bd8c; --wa-gold-dark: #f0cc98;
    --wa-sage: #77b18a; --wa-blue: #83b5e8;
    background: radial-gradient(circle at 16% 10%, rgba(83,119,166,.17), transparent 30%), #0b1220;
  }
  html:not([data-theme]) .wedding-admin-sidebar,
  html:not([data-theme]) .wedding-admin-detail { background: rgba(13,22,39,.96); }
  html:not([data-theme]) .wedding-admin-nav__item { color: #c4d0e0; }
  html:not([data-theme]) .wedding-admin-nav__item:hover,
  html:not([data-theme]) .wedding-admin-nav__item.is-active { background: #1a2941; color: #fff; }
  html:not([data-theme]) .wh-topnav, html:not([data-theme]) .wh-create__box, html:not([data-theme]) .wh-feature, html:not([data-theme]) .wh-invite-card { background: #111b2d; color: #e5edf8; border-color: #2b3b55; }
  html:not([data-theme]) .wh-topnav {
    --dreamine-portal-background: rgba(11,18,32,.96);
    --dreamine-portal-panel: #111b2d;
    --dreamine-portal-border: #34445f;
    --dreamine-portal-text: #d8e2f0;
    --dreamine-portal-strong: #f5f8fc;
    --dreamine-portal-muted: #aebbd0;
    --dreamine-portal-hover: #1c2a42;
    --dreamine-portal-active-background: #203453;
    --dreamine-portal-active-text: #ffffff;
    --dreamine-portal-icon-background: #17243a;
    --dreamine-portal-icon-border: #34445f;
    --cm-header-bg: rgba(11,18,32,.96);
    --cm-header-border: #2b3b55;
    --cm-header-text: #e6edf7;
    --cm-header-active-bg: #1c2a42;
    --cm-header-active-text: #fff;
    --cm-header-menu-bg: #111b2d;
    background: rgba(11,18,32,.96);
  }
  html:not([data-theme]) .wh-topnav a, html:not([data-theme]) .wh-topnav__links a, html:not([data-theme]) .wh-topnav__auth, html:not([data-theme]) .wh-user-badge { color: #e6edf7; }
  html:not([data-theme]) .wh-topnav__links a:hover, html:not([data-theme]) .wh-topnav__links a.active { background: #1c2a42; color: #fff; }
  html:not([data-theme]) .wh-topnav__burger span { background: #e6edf7; }
  html:not([data-theme]) .wh-hero { background: linear-gradient(135deg,#101b2e 0%,#16233a 52%,#1c2b45 100%); }
  html:not([data-theme]) .wh-hero__title, html:not([data-theme]) .wh-create__title, html:not([data-theme]) .wh-feature h3, html:not([data-theme]) .wh-invites__title, html:not([data-theme]) .wh-invite-card__name, html:not([data-theme]) .wh-account strong { color: #f4f7fb; }
  html:not([data-theme]) .wh-hero__sub, html:not([data-theme]) .wh-create__desc, html:not([data-theme]) .wh-feature p, html:not([data-theme]) .wh-empty, html:not([data-theme]) .wh-label, html:not([data-theme]) .wh-label__hint, html:not([data-theme]) .wh-create__notice, html:not([data-theme]) .wh-invite-card__venue { color: #b8c4d6; }
  html:not([data-theme]) .wh-create { background: #0d1627; border-color: #2b3b55; }
  html:not([data-theme]) .wh-service-notice, html:not([data-theme]) .wh-account { background: #152238; color: #c8d3e3; border-color: #2b3b55; }
  html:not([data-theme]) .wh-btn--secondary { background: #17243a; color: #edf3fb; border-color: #354663; }
  html:not([data-theme]) .wh-input, html:not([data-theme]) .wh-input-prefix { background: #0e1728; color: #f3f6fb; border-color: #34445f; }
  html:not([data-theme]) .wh-prefix, html:not([data-theme]) .wh-create__notice code, html:not([data-theme]) .wh-empty code { background: #17243a; color: #c8d3e3; border-color: #34445f; }
  html:not([data-theme]) .wh-footer { border-color: #2b3b55; color: #9cabc0; }
  html:not([data-theme]) .wh-user-popover { background: #111b2d; color: #e5edf8; border-color: #34445f; }
}
@media (max-width: 720px) { .wp-preferences { width: 100%; margin: .4rem 0 0; padding-top: .65rem; border-top: 1px solid rgba(128,128,128,.2); justify-content: stretch; } .wp-preferences label { flex: 1; } .wp-preferences__label { display: none; } .wp-preferences select { width: 100%; max-width: none; } .wh-user-menu { width: 100%; } .wh-user-badge { display: block; } .wh-user-popover { position: static; width: auto; margin-top: .45rem; box-shadow: none; } }
.wh-hero__title { white-space: pre-line; }

/* Theme-token pass for tenant and super-administration surfaces. */
.wedding-admin-shell,
.w-admin {
    color-scheme: light;
}
html[data-theme="dark"] .wedding-admin-shell,
html[data-theme="dark"] .w-admin {
    color-scheme: dark;
}
.wedding-admin-shell .wedding-admin-policy-grid section,
.wedding-admin-shell .wedding-admin-usage-mini,
.wedding-admin-shell .wedding-admin-permission,
.wedding-admin-shell .wedding-admin-table th {
    color: var(--wa-text);
    background: var(--wa-card-strong);
    border-color: var(--wa-border);
}
.wedding-admin-shell .wedding-admin-checkline,
.wedding-admin-shell .wedding-admin-table td,
.wedding-admin-shell .wedding-admin-number-input,
.wedding-admin-shell .w-sa-slug,
.wedding-admin-shell .w-label {
    color: var(--wa-text);
}
.wedding-admin-shell .wedding-admin-select,
.wedding-admin-shell .wedding-admin-number-input {
    color: var(--wa-text);
    background: var(--wa-card-strong);
    border-color: var(--wa-border);
}
.wedding-admin-shell .wedding-admin-table tbody tr:hover,
.wedding-admin-shell .wedding-admin-table tbody tr.is-selected {
    background: color-mix(in srgb, var(--wa-gold) 13%, transparent);
}
html[data-theme="dark"] .wedding-admin-shell .wedding-admin-badge.is-muted {
    color: #d1dbea;
    background: #27354a;
}
html[data-theme="dark"] .wedding-admin-shell .wedding-admin-badge.is-success {
    color: #bce8c9;
    background: #193729;
}
html[data-theme="dark"] .wedding-admin-shell .wedding-admin-badge.is-gold {
    color: #ffe0ad;
    background: #453620;
}
html[data-theme="dark"] .wedding-admin-shell .wedding-admin-card,
html[data-theme="dark"] .wedding-admin-shell .wedding-admin-stat-card,
html[data-theme="dark"] .wedding-admin-shell .wedding-admin-detail-panel {
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
}

.w-admin .w-theme-btn,
.w-admin .w-custom-theme,
.w-admin .w-custom-theme__generator,
.w-admin .w-custom-theme__base,
.w-admin .w-custom-theme__details,
.w-admin .w-custom-theme__colors label,
.w-admin .w-section-order-item,
.w-admin .w-drag-control-card,
.w-admin .w-admin-users__item,
.w-admin .wedding-admin-usage-mini,
.w-admin .wedding-admin-permission {
    color: var(--wa-text);
    background: var(--wa-panel);
    border-color: var(--wa-border);
}
.w-admin .w-custom-theme__generator,
.w-admin .w-section-order-item.is-fixed,
.w-admin .w-section-order-item.is-hidden,
.w-admin .w-custom-theme__details[open] summary,
.w-admin .w-drag-control-card > span {
    color: var(--wa-text);
    background: var(--wa-panel-soft);
    border-color: var(--wa-border);
}
.w-admin .w-custom-theme__base > span,
.w-admin .w-custom-theme__details summary,
.w-admin .w-custom-theme__colors label > span,
.w-admin .w-section-order-item__label,
.w-admin .w-admin-users__item small {
    color: var(--wa-muted);
}
.w-admin .w-custom-theme__palette,
.w-admin .w-section-order-item__icon {
    background: var(--wa-panel-soft);
    border-color: var(--wa-border);
}
html[data-theme="dark"] .w-admin .w-custom-theme__contrast .is-good {
    color: #bce8c9;
    background: #193729;
}
html[data-theme="dark"] .w-admin .w-custom-theme__contrast .is-warning {
    color: #ffd0a4;
    background: #452c18;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme]) .wedding-admin-shell,
    html:not([data-theme]) .w-admin { color-scheme: dark; }
    html:not([data-theme]) .wedding-admin-shell .wedding-admin-policy-grid section,
    html:not([data-theme]) .wedding-admin-shell .wedding-admin-usage-mini,
    html:not([data-theme]) .wedding-admin-shell .wedding-admin-permission,
    html:not([data-theme]) .wedding-admin-shell .wedding-admin-table th {
        color: var(--wa-text);
        background: var(--wa-card-strong);
        border-color: var(--wa-border);
    }
    html:not([data-theme]) .w-admin .w-theme-btn,
    html:not([data-theme]) .w-admin .w-custom-theme,
    html:not([data-theme]) .w-admin .w-custom-theme__generator,
    html:not([data-theme]) .w-admin .w-custom-theme__base,
    html:not([data-theme]) .w-admin .w-custom-theme__details,
    html:not([data-theme]) .w-admin .w-custom-theme__colors label,
    html:not([data-theme]) .w-admin .w-section-order-item,
    html:not([data-theme]) .w-admin .w-drag-control-card,
    html:not([data-theme]) .w-admin .w-admin-users__item {
        color: var(--wa-text);
        background: var(--wa-panel);
        border-color: var(--wa-border);
    }
}
