/* 온담 청첩장 · 모바일 청첩장 제작 플랫폼 */
:root {
  --bg: #FAF6EE;
  --surface: #FFFFFF;
  --line: #E7DED2;
  --text: #2E2826;
  --muted: #6B615C;
  --primary: #A0586A;
  --primary-ink: #7E4050;
  --primary-soft: #F3E3E3;
  --accent: #5E6B3C;
  --accent-soft: #E9ECDD;
  --ok: #3D7650;
  --ok-soft: #E2EFE5;
  --warn: #8A6100;
  --warn-soft: #F8EED6;
  --danger: #B0393A;
  --danger-soft: #F8E4E2;
  --r: 12px;
  --display: "Nanum Myeongjo", "Noto Serif KR", serif;
  --body: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.wd { margin: 0; min-height: 100vh; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); word-break: keep-all; overflow-wrap: anywhere; }
:where(.wd) button, :where(.wd) input, :where(.wd) select, :where(.wd) textarea { font: inherit; color: inherit; }
:where(.wd) button { cursor: pointer; }
:where(.wd) a { color: var(--primary-ink); }
.wd :focus-visible { outline: 3px solid rgba(160, 88, 106, .35); outline-offset: 2px; }
.wd [hidden] { display: none !important; }
.wd-sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.wd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wd-mono { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .01em; }
.wd-grow { flex: 1; }
.wd-mb { margin-bottom: 12px !important; }

/* 안내 띠·머리 */
.wd-band { display: flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 12px; background: #EFE7DA; color: var(--muted); font-size: 12px; text-align: center; }
.wd-top { position: sticky; top: 0; z-index: 30; background: rgba(250, 246, 238, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.wd-top__inner { max-width: 1160px; margin: 0 auto; padding: 8px 16px 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand reset" "nav nav"; gap: 4px 12px; align-items: center; }
.wd-brand { grid-area: brand; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.wd-brand__mark { width: 30px; height: 30px; flex: none; }
.wd-brand__name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.wd-reset { grid-area: reset; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.wd-reset:hover { color: var(--text); border-color: var(--muted); }
.wd-nav { grid-area: nav; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.wd-nav::-webkit-scrollbar { display: none; }
.wd-nav__item { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.wd-nav__item.is-active { color: var(--primary-ink); border-bottom-color: var(--primary); }
@media (min-width: 900px) {
  .wd-top__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav reset"; padding: 0 24px; gap: 24px; }
  .wd-nav { margin: 0; padding: 0; align-self: stretch; }
  .wd-nav__item { min-height: 60px; }
}

.wd-main { max-width: 1160px; margin: 0 auto; padding: 20px 16px 120px; }
@media (min-width: 900px) { .wd-main { padding: 30px 24px 120px; } }

.wd-eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--primary-ink); }
.wd-h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.3; letter-spacing: -.03em; }
.wd-h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.wd-lead { margin: 8px 0 0; color: var(--muted); max-width: 720px; }
.wd-intro { margin-bottom: 18px; }
.wd-help { margin: 0; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .wd-h1 { font-size: 30px; } }

.wd-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }

/* 버튼 */
.wd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.wd-btn:hover { border-color: var(--primary); }
.wd-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.wd-btn--primary:hover { background: var(--primary-ink); border-color: var(--primary-ink); }
.wd-btn--line { border-color: var(--primary); color: var(--primary-ink); }
.wd-btn--ghost { background: transparent; border-style: dashed; color: var(--muted); }
.wd-btn--ghost small { font-weight: 600; }
.wd-btn--quiet { color: var(--muted); }
.wd-btn--danger { border-color: #E4B8B6; color: var(--danger); }
.wd-btn--danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.wd-btn--danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }
.wd-btn--sm { min-height: 40px; padding: 0 12px; font-size: 14px; }
.wd-btn--block { width: 100%; }
.wd-btn:disabled { opacity: .45; cursor: not-allowed; }
.wd-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--muted); font-size: 20px; line-height: 1; }
.wd-icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--muted); }
.wd-icon-btn:disabled { opacity: .35; cursor: default; }
.wd-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; }
.wd-chip.is-on { background: var(--text); border-color: var(--text); color: #fff; }
.wd-chip:hover:not(.is-on) { border-color: var(--muted); color: var(--text); }
.wd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }

/* 상태 */
.wd-status { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.wd-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wd-status--published { background: var(--ok-soft); color: var(--ok); }
.wd-status--draft { background: var(--warn-soft); color: var(--warn); }
.wd-status--waiting { background: var(--warn-soft); color: var(--warn); }
.wd-status--hidden { background: #ECE8E4; color: #5E5651; }
.wd-status--ended { background: #ECE8E4; color: #5E5651; }
.wd-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.wd-tag--warn { background: var(--warn-soft); color: var(--warn); }
.wd-new { display: inline-flex; padding: 1px 6px; border-radius: 6px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--body); vertical-align: 2px; }

/* 입력 */
.wd-field { display: grid; gap: 5px; min-width: 0; }
.wd-field > span { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.wd-field input, .wd-field select, .wd-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 16px; }
.wd-field textarea { min-height: 120px; line-height: 1.7; resize: vertical; }
.wd-field input:focus, .wd-field select:focus, .wd-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(160, 88, 106, .15); }
.wd-field.is-req input, .wd-field.is-req select { border-color: var(--warn); background: var(--warn-soft); }
.wd-fields { display: grid; gap: 12px; margin-bottom: 12px; }
.wd-fields--2 { grid-template-columns: 1fr 1fr; }
.wd-fields--3 { grid-template-columns: 1fr 1fr 84px; }
@media (max-width: 420px) { .wd-fields--3 { grid-template-columns: 1fr 1fr 76px; gap: 10px 8px; } }

/* ── 제작 화면 ── */
.wd-ed-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.wd-ed-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.wd-ed-status__note { flex-basis: 100%; font-size: 13px; }
.wd-ed-actions { display: flex; gap: 8px; }
.wd-ed-actions .wd-btn { flex: 1; }
.wd-ed-actions--foot { margin-top: 4px; }
@media (max-width: 899px) { .wd-ed-head .wd-ed-actions { width: 100%; } }
.wd-ed-tabs { position: sticky; top: 101px; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; background: #EFE7DA; border-radius: var(--r); }
.wd-ed-tab { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; }
.wd-ed-tab.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.wd-ed-grid { display: block; }
.wd-ed-grid .wd-ed-preview { display: none; }
.wd-ed-grid.is-preview .wd-ed-form { display: none; }
.wd-ed-grid.is-preview .wd-ed-preview { display: block; }
@media (min-width: 900px) {
  .wd-ed-tabs { display: none; }
  .wd-ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 28px; align-items: start; }
  .wd-ed-grid .wd-ed-form, .wd-ed-grid.is-preview .wd-ed-form { display: block; }
  .wd-ed-grid .wd-ed-preview { display: block; position: sticky; top: 84px; }
  .wd-ed-head .wd-ed-actions .wd-btn { flex: none; }
}

.wd-step { margin: 0 0 14px; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-width: 0; }
.wd-step__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.wd-step > .wd-help { margin-bottom: 12px; }
.wd-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 13px var(--body); }
.wd-num--line { background: var(--accent); }
@media (min-width: 900px) { .wd-step { padding: 20px 22px; } }

/* 템플릿 선택 카드 */
.wd-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 420px) { .wd-tpls { grid-template-columns: 1fr 1fr; } }
.wd-tpl { position: relative; display: grid; gap: 4px; align-content: start; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; }
.wd-tpl:hover { border-color: var(--muted); }
.wd-tpl.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(160, 88, 106, .14); }
.wd-tpl__name { font-weight: 700; font-size: 15px; }
.wd-tpl__desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.wd-tpl__on { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; }
/* 템플릿 축소 그림: i=사진, b=이름 줄, em=장식 */
.wd-tpl__thumb { position: relative; display: block; height: 96px; border-radius: 8px; background: var(--c-bg); border: 1px solid rgba(0, 0, 0, .06); overflow: hidden; }
.wd-tpl__thumb i { position: absolute; left: 50%; top: 14px; width: 44%; height: 50px; transform: translateX(-50%); border-radius: 40px 40px 4px 4px; background: linear-gradient(160deg, var(--c-soft), var(--c-accent)); opacity: .85; }
.wd-tpl__thumb b { position: absolute; left: 50%; bottom: 14px; width: 54%; height: 7px; transform: translateX(-50%); border-radius: 4px; background: var(--c-ink, #333); opacity: .7; }
.wd-tpl__thumb em { position: absolute; left: 50%; top: 6px; width: 70%; height: 4px; transform: translateX(-50%); border-radius: 2px; background: var(--c-accent); opacity: .35; }
.wd-tpl__thumb--left i { left: 0; top: 0; width: 100%; height: 52px; transform: none; border-radius: 0; }
.wd-tpl__thumb--left b { left: 12px; transform: none; width: 46%; }
.wd-tpl__thumb--left em { left: 12px; top: auto; bottom: 28px; width: 30%; transform: none; }
.wd-tpl__thumb--frame { box-shadow: inset 0 0 0 5px var(--c-bg), inset 0 0 0 6px var(--c-accent), inset 0 0 0 9px var(--c-bg), inset 0 0 0 10px var(--c-accent); }
.wd-tpl__thumb--frame i { border-radius: 4px; top: 18px; height: 44px; }
.wd-tpl__thumb--frame em { top: auto; bottom: 28px; width: 30%; }

/* 사진 목록 */
.wd-photos { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.wd-photo { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 6px 6px 6px 6px; border: 1px solid var(--line); border-radius: var(--r); }
.wd-photo:first-child { border-color: var(--primary); background: #FFFBFA; }
.wd-photo__thumb { display: block; width: 52px; height: 64px; border-radius: 8px; overflow: hidden; }
.wd-photo__thumb svg { display: block; width: 100%; height: 100%; }
.wd-photo__meta { display: grid; min-width: 0; }
.wd-photo__meta b { font-size: 15px; }
.wd-photo__meta small { font-size: 12.5px; color: var(--muted); }
.wd-photo__ctl { display: flex; gap: 6px; }

/* 수정 기록 */
.wd-history { margin: 0; padding: 0; list-style: none; }
.wd-history li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.wd-history li:first-child { border-top: 0; }
.wd-history__at { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.wd-history__who { padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--primary-soft); color: var(--primary-ink); }
.wd-history__who--admin { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 420px) { .wd-history li { grid-template-columns: auto 1fr; } .wd-history li > span:last-child { grid-column: 1 / -1; } }

/* 미리보기 휴대폰 */
.wd-phone { margin: 0 auto; max-width: 392px; border-radius: 34px; padding: 10px; background: #2E2826; box-shadow: 0 18px 40px rgba(46, 40, 38, .18); }
.wd-phone__bar { display: flex; justify-content: center; padding: 2px 0 8px; }
.wd-phone__bar span { width: 80px; height: 6px; border-radius: 3px; background: #4A423F; }
.wd-phone__screen { height: min(720px, calc(100vh - 190px)); overflow-y: auto; border-radius: 24px; background: #fff; scrollbar-width: thin; }
.wd-phone__screen .wd-c { pointer-events: none; }
.wd-ed-preview__cap { margin-top: 10px; text-align: center; }
@media (max-width: 899px) {
  .wd-phone { padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .wd-phone__bar { display: none; }
  .wd-phone__screen { height: auto; overflow: visible; border-radius: var(--r); border: 1px solid var(--line); }
}

/* ── 청첩장(미리보기·하객 화면 공용) ── */
.wd-view__frame { max-width: 440px; margin: 0 auto; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(46, 40, 38, .08); }
@media (max-width: 480px) { .wd--card .wd-main { padding: 0 0 110px; } .wd-view__frame { border-radius: 0; border: 0; box-shadow: none; } }
.wd-c { background: var(--c-bg); color: var(--c-ink); font-family: var(--body); }
.wd-c-draft { margin: 0; padding: 10px 16px; background: #F8EED6; color: #6E4E00; font-size: 13px; text-align: center; }
.wd-c-cover { position: relative; padding: 28px 24px 30px; text-align: center; }
.wd-orn { display: block; width: 100%; height: auto; }
.wd-orn--petal, .wd-orn--olive { position: absolute; left: 0; right: 0; top: 6px; }
.wd-orn--frame { width: 70%; margin: 0 auto 12px; }
.wd-c-kicker { position: relative; margin: 10px 0 16px; font-family: var(--display); font-size: 14px; letter-spacing: .3em; color: var(--c-accent); }
.wd-c-photo { position: relative; width: 78%; aspect-ratio: 3 / 3.8; margin: 0 auto 22px; overflow: hidden; border-radius: 999px 999px 10px 10px; background: var(--c-soft); }
.wd-c-photo svg, .wd-c-tile svg, .wd-light__img svg, .wd-kakao__img svg { display: block; width: 100%; height: 100%; }
.wd-c-photo--empty { display: grid; place-items: center; padding: 20px; font-size: 13px; color: var(--c-ink); opacity: .7; }
.wd-c-names { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: .02em; }
.wd-c-names i { font-style: normal; font-weight: 400; font-size: 14px; color: var(--c-accent); }
.wd-c-when { margin: 0 0 4px; font-size: 15px; }
.wd-c-where { margin: 0; font-size: 14px; opacity: .8; }
.wd-c--left .wd-c-cover { padding: 0 0 28px; text-align: left; }
.wd-c--left .wd-orn--olive { position: relative; top: auto; width: 70%; margin: 14px 0 0 18px; }
.wd-c--left .wd-c-photo { width: 100%; aspect-ratio: 4 / 4.4; border-radius: 0; margin: 0; }
.wd-c--left .wd-c-cover__text { padding: 0 24px; }
.wd-c--left .wd-c-kicker { margin-top: 4px; }
.wd-c--left .wd-c-names { justify-content: flex-start; }
.wd-c--left .wd-c-cover { display: flex; flex-direction: column; }
.wd-c--left .wd-c-photo { order: 0; }
.wd-c--left .wd-c-cover > .wd-orn { order: 1; }
.wd-c--left .wd-c-cover__text { order: 2; }
.wd-c--frame .wd-c-cover { margin: 14px; padding: 22px 18px 26px; border: 1px solid var(--c-accent); outline: 1px solid var(--c-accent); outline-offset: -6px; }
.wd-c--frame .wd-c-photo { border-radius: 4px; width: 74%; }

.wd-c-sec { padding: 30px 24px; border-top: 1px solid rgba(0, 0, 0, .06); text-align: center; }
.wd-c-label { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .28em; color: var(--c-accent); }
.wd-c-greet { margin: 0 0 22px; font-family: var(--display); font-size: 15.5px; line-height: 2; }
.wd-c-family { display: grid; gap: 8px; justify-content: center; font-size: 15px; }
.wd-c-family p { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 0; }
.wd-c-family small { font-size: 13px; opacity: .75; }
.wd-c-family b { font-family: var(--display); font-weight: 800; font-size: 17px; }
.wd-c-strong { margin: 0 0 14px; font-weight: 700; font-size: 16px; }
.wd-c-text { margin: 0 0 16px; font-size: 14.5px; line-height: 1.75; }
.wd-c-hint { margin: 10px 0 0; font-size: 12.5px; opacity: .7; }
.wd-cal { max-width: 300px; margin: 0 auto; padding: 14px 10px 10px; border-radius: var(--r); background: rgba(255, 255, 255, .6); }
.wd-cal__month { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 17px; }
.wd-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; font-size: 13.5px; }
.wd-cal__grid b { font-weight: 600; font-size: 12px; opacity: .6; padding-bottom: 4px; }
.wd-cal__grid span { display: grid; place-items: center; height: 32px; }
.wd-cal__grid .is-sun { color: #B0393A; }
.wd-cal__grid .is-day { width: 32px; margin: 0 auto; border-radius: 50%; background: var(--c-accent); color: #fff; font-weight: 700; }
.wd-c-dday { margin: 14px 0 0; font-size: 14.5px; }
.wd-c-dday b { color: var(--c-accent); }
.wd-c-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.wd-c-tile { display: block; aspect-ratio: 3 / 3.8; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--c-soft); }
.wd-c-tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.wd-c-addr { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin: -6px 0 14px; font-size: 14px; }
.wd-c-mini { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 8px; background: rgba(255, 255, 255, .75); color: var(--c-ink); font-size: 12.5px; font-weight: 600; }
.wd-c-mapbox { border-radius: var(--r); overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); }
.wd-mapsvg { display: block; width: 100%; height: auto; font-family: var(--body); }
.wd-c-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 16px; }
.wd-c-app { min-height: 44px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px; background: rgba(255, 255, 255, .8); color: var(--c-ink); font-size: 13.5px; font-weight: 700; }
.wd-c-trans { display: grid; gap: 10px; margin: 0; text-align: left; }
.wd-c-trans div { display: grid; grid-template-columns: 58px 1fr; gap: 10px; font-size: 14px; }
.wd-c-trans dt { font-weight: 700; color: var(--c-accent); }
.wd-c-trans dd { margin: 0; }
.wd-c-acc { margin: 0 0 8px; border: 1px solid rgba(0, 0, 0, .1); border-radius: var(--r); background: rgba(255, 255, 255, .7); text-align: left; }
.wd-c-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.wd-c-acc summary::-webkit-details-marker { display: none; }
.wd-c-acc summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--c-accent); }
.wd-c-acc[open] summary::after { content: "−"; }
.wd-c-acc__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid rgba(0, 0, 0, .07); font-size: 14px; }
.wd-c-acc__row span { display: grid; }
.wd-c-acc__row b { font-size: 13px; opacity: .75; font-weight: 600; }
.wd-c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--c-accent); border-radius: var(--r); background: var(--c-accent); color: #fff; font-weight: 700; font-size: 15.5px; }
.wd-c-btn--line { background: transparent; color: var(--c-ink); border-color: rgba(0, 0, 0, .2); }
.wd-c-btn--kakao { background: #FEE500; border-color: #FEE500; color: #191600; }
.wd-c-share { display: grid; gap: 8px; }
.wd-c-done { padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, .8); border: 1px solid var(--c-accent); font-size: 14.5px; }
.wd-c-done p { margin: 0 0 6px; }
.wd-c-done__title { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; color: var(--c-accent); font-size: 16px; }
.wd-c-done__memo { font-family: var(--display); opacity: .85; }
.wd-c-done .wd-c-btn { margin-top: 8px; min-height: 44px; }
.wd-c-foot { margin: 0; padding: 18px 24px 26px; font-size: 12px; text-align: center; opacity: .6; }

/* 모달 */
.wd-modal, .wd-sheet, .wd-light { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; color: var(--text); }
.wd-modal::backdrop, .wd-sheet::backdrop { background: rgba(46, 40, 38, .45); }
.wd-modal { margin: auto; width: min(480px, calc(100vw - 24px)); }
.wd-modal__body, .wd-sheet__body { display: grid; gap: 12px; padding: 18px; background: var(--surface); border-radius: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.wd-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wd-modal__text { margin: 0; font-size: 14.5px; color: var(--muted); }
.wd-modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.wd-sheet { margin: auto auto 0; width: 100%; }
.wd-sheet__body { display: block; border-radius: 16px 16px 0 0; max-height: 86vh; }
@media (min-width: 700px) { .wd-sheet { margin: auto; width: 580px; } .wd-sheet__body { border-radius: 16px; } }
.wd-map { margin: 14px 0 0; padding: 0; list-style: none; }
.wd-map__row { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.wd-map__need { font-size: 14px; }
.wd-map__show { font-weight: 700; font-size: 14px; text-decoration: none; }
.wd-sheet__foot { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.wd-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 0; padding: 0; border: 0; }
.wd-seg legend { margin-bottom: 5px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.wd-seg label { position: relative; }
.wd-seg input { position: absolute; opacity: 0; inset: 0; }
.wd-seg span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--muted); }
.wd-seg input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.wd-seg input:focus-visible + span { outline: 3px solid rgba(160, 88, 106, .35); }
.wd-rsvp-more { display: grid; gap: 12px; }
.wd-stepper { display: flex; align-items: center; gap: 10px; }
.wd-stepper output { min-width: 28px; text-align: center; font-size: 18px; font-weight: 800; }
.wd-url { display: grid; gap: 2px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.wd-url span, .wd-url small { color: var(--muted); font-size: 12.5px; }
.wd-url b { font-size: 16px; }
.wd-kakao { padding: 16px; border-radius: 12px; background: #B9CCDA; }
.wd-kakao__card { width: 230px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.wd-kakao__img { height: 150px; overflow: hidden; }
.wd-kakao__txt { display: grid; gap: 4px; padding: 10px 12px; font-size: 14px; }
.wd-kakao__txt small { color: #6B6B6B; font-size: 12px; line-height: 1.45; }
.wd-kakao__btn { display: block; margin: 0 10px 10px; padding: 8px; border-radius: 6px; background: #F2F2F2; text-align: center; font-size: 13px; font-weight: 700; }
.wd-light { margin: auto; width: min(420px, calc(100vw - 24px)); }
.wd-light::backdrop { background: rgba(20, 16, 15, .86); }
.wd-light__img { aspect-ratio: 3 / 3.8; border-radius: 12px; overflow: hidden; background: #333; }
.wd-light__bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; color: #fff; font-variant-numeric: tabular-nums; }
.wd-light__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: #fff; font-size: 24px; line-height: 1; }
.wd-light__close { margin-left: 8px; }

/* 공고 대응표 버튼·알림 */
.wd-fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 6px 18px rgba(94, 107, 60, .35); }
.wd-toast { position: fixed; left: 50%; bottom: 72px; z-index: 50; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; background: #2E2826; color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.wd-toast.is-in { animation: wd-pop .2s ease-out; }
@keyframes wd-pop { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ── 관리자 ── */
.wd-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 16px; }
@media (min-width: 900px) { .wd-kpis { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.wd-kpi { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.wd-kpi dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.wd-kpi dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.wd-kpi dd b { margin-right: 2px; font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.wd-tabs { display: flex; gap: 2px; margin: 0 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.wd-tabs__item { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-weight: 700; font-size: 15px; }
.wd-tabs__item.is-on { color: var(--primary-ink); border-bottom-color: var(--primary); }
.wd-tabs__item b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--warn); color: #fff; font-size: 12px; }
@media (max-width: 420px) { .wd-tabs__item { padding: 0 10px; font-size: 14.5px; } }
.wd-panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.wd-panel__note { margin-bottom: 12px; }
.wd-search { flex: 1 1 220px; }
.wd-search input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 16px; }
.wd-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.wd-filters .wd-chip { flex: none; }
.wd-panel__head > .wd-btn { margin-left: auto; }
@media (max-width: 600px) { .wd-panel__head > .wd-btn { width: 100%; } }
.wd-rows { display: grid; gap: 10px; }
.wd-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.wd-row__thumb { width: 64px; height: 80px; }
.wd-row__main { min-width: 0; }
.wd-row__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 4px; font-size: 13px; }
.wd-row__title { margin: 0; font-weight: 800; font-size: 16.5px; }
.wd-row__title small { margin-left: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.wd-row__sub { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.wd-row__stat { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.wd-row__stat b { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.wd-row__stat small { margin-left: auto; font-size: 13px; }
.wd-row__act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.wd-row__act .wd-btn { flex: 1 1 auto; }
@media (min-width: 900px) {
  .wd-row { grid-template-columns: 64px minmax(0, 1fr) 120px 300px; align-items: center; }
  .wd-row__stat { grid-column: auto; display: grid; gap: 0; padding: 0 0 0 14px; border-top: 0; border-left: 1px dashed var(--line); }
  .wd-row__stat small { margin: 0; }
  .wd-row__act { grid-column: auto; flex-wrap: nowrap; justify-content: flex-end; }
  .wd-row__act .wd-btn { flex: none; }
  .wd-row.wd-row--cust { grid-template-columns: 48px minmax(0, 1fr) auto; }
}
.wd-row--cust { grid-template-columns: 44px minmax(0, 1fr); }
.wd-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-family: var(--display); font-weight: 800; font-size: 18px; }
.wd-empty { padding: 30px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); }
.wd-reqs { display: grid; gap: 10px; }
@media (min-width: 900px) { .wd-reqs { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.wd-req { display: grid; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--r); }
.wd-req.is-done { border-left-color: var(--ok); }
.wd-req__text { margin: 4px 0; padding: 10px 12px; border-radius: 8px; background: var(--bg); font-size: 14.5px; }
.wd-req .wd-btn { margin-top: 8px; }
.wd-req__done { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--ok); font-size: 13.5px; font-weight: 700; }
.wd-req-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: #5E4300; font-size: 13.5px; }
.wd-tpl-admin { display: grid; gap: 18px; }
@media (min-width: 900px) { .wd-tpl-admin { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } }
.wd-tpl-list { display: grid; gap: 10px; }
.wd-tpl-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.wd-tpl-row .wd-tpl__thumb { height: 92px; }
.wd-tpl-form { display: grid; gap: 12px; }
.wd-tpl-form .wd-fields { margin: 0; }
.wd-swatches, .wd-checks { margin: 0; padding: 0; border: 0; min-width: 0; }
.wd-swatches legend, .wd-checks legend { margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.wd-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-swatch { position: relative; display: grid; justify-items: center; gap: 3px; width: 58px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.wd-swatch input { position: absolute; opacity: 0; }
.wd-swatch span { width: 40px; height: 40px; border-radius: 50%; background: var(--sw); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.wd-swatch input:checked + span { box-shadow: 0 0 0 2px var(--text); }
.wd-swatch input:focus-visible + span { outline: 3px solid rgba(160, 88, 106, .35); }
.wd-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wd-checks label { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer; }
.wd-checks input { width: 18px; height: 18px; accent-color: var(--primary); }
.wd-tpl-form__foot { display: flex; align-items: center; gap: 12px; }
.wd-tpl-form__foot .wd-btn { flex: 1; }
.wd-tpl--mini { display: grid; gap: 4px; width: 96px; padding: 0; border: 0; text-align: center; }
.wd-tpl--mini .wd-tpl__thumb { height: 76px; }
.wd-tpl--mini .wd-tpl__name { font-size: 12.5px; }

.demo-notice { max-width: 1160px; margin: -96px auto 0; padding: 0 16px 96px; font-size: 12px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition: none !important; }
}

/* fieldset 제목을 테두리 안으로 */
.wd-step > legend.wd-step__title { float: left; width: 100%; }
.wd-step > legend.wd-step__title + * { clear: both; }
