/*!
 * 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 {
    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;
}

/* ── 로딩 / 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: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--w-bg);
    background-attachment: scroll;
}
/* 감사장 히어로는 인물이 위쪽에 오는 사진이 많아 상단 위주로 보이도록 조정 */
.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--thankyou-positioned .w-hero__content {
    position: relative;
    justify-content: initial;
}
.w-hero--thankyou-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,
    .w-hero--style-tabs.w-hero--thankyou-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__image,
.wedding-story-cover__image {
    width: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: var(--w-radius);
    box-shadow: var(--w-shadow);
}

.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__image,
    .wedding-story-cover__image {
        min-height: 320px;
    }

    .wedding-layout-heading {
        display: block;
    }
}

/* ═══════════════════════════════════════════════════════════
 * 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);
}

.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;
}

@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-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-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__item--player {
    cursor: default;
}
.w-video__item--player video {
    object-fit: contain;
    pointer-events: auto;
}
.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__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;
    gap: .7rem;
    min-width: min(620px, 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: #5b4c40;
    border-radius: 8px;
    padding: .45rem .75rem;
    font: inherit;
    font-size: .88rem;
    line-height: 1.35;
    white-space: normal;
    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-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 {
        grid-template-columns: 1fr;
    }
    .wedding-admin-sidebar {
        padding: .8rem;
    }
}

/* ── 테마 변수 (body에 class 적용) ─────────────────── */
/* rose (기본) — :root 값 그대로 */
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-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__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-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-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;
}

/* ── CodeMaru 공통 Nav (통일 규격, 라이트 테마) ── */
.wh-topnav {
    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 {
    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__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;
}

/* ── 반응형: 태블릿 (프리뷰 접힘) ── */
@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;
    }
}

/* ═══════════════════════════════════════════════════════════════
 * 모바일 청첩장 메뉴 — 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; }
    }
}
