/* ==========================================================================
   비디아 디자인 시스템 — 단일 강조색(#1E4FD8) + 중성 회색. 접두사 vd-.
   빌드 도구 없이 이 파일 하나로 전 화면을 그린다. 순서: 토큰 → 리셋 → 타이포 → 레이아웃 → 컴포넌트 → 페이지 → 반응형.
   ========================================================================== */

:root {
	--accent: #1E4FD8;
	--accent-hover: #173FB0;
	--accent-soft: #E8EEFF;
	--accent-soft-2: #D6E0FF;
	--accent-ink: #12307F;
	--ink: #111827;
	--ink-2: #374151;
	--muted: #5B6472;
	--muted-2: #8B94A3;
	--line: #E5E7EB;
	--line-2: #D1D5DB;
	--canvas: #F7F8FA;
	--surface: #FFFFFF;
	--surface-2: #F3F4F6;
	--ok: #137A4A; --ok-soft: #E3F5EC;
	--warn: #9A5A05; --warn-soft: #FDF1DC;
	--danger: #B42318; --danger-soft: #FCE8E6;
	--info: #1E4FD8; --info-soft: #E8EEFF;
	--r-1: 8px; --r-2: 12px; --r-3: 16px; --r-pill: 999px;
	--sh-1: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .04);
	--sh-2: 0 8px 24px rgba(17, 24, 39, .10), 0 2px 6px rgba(17, 24, 39, .06);
	--s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 56px; --s-10: 72px;
	--font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--container: 1200px;
	--gutter: 24px;
	--header-h: 64px;
	--tap: 44px;
	--tr: .18s ease;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--accent: #6B8DFF; --accent-hover: #86A2FF; --accent-soft: #1B2A55; --accent-soft-2: #24397A; --accent-ink: #C8D6FF;
		--ink: #F3F4F6; --ink-2: #D1D5DB; --muted: #A1A8B5; --muted-2: #6B7280;
		--line: #2A3140; --line-2: #3A4252; --canvas: #0F1319; --surface: #171C25; --surface-2: #1F2530;
		--ok: #4ADE80; --ok-soft: #12301F; --warn: #FBBF24; --warn-soft: #3A2B0A; --danger: #F87171; --danger-soft: #3B1513; --info: #6B8DFF; --info-soft: #1B2A55;
		--sh-1: 0 1px 2px rgba(0, 0, 0, .4); --sh-2: 0 10px 30px rgba(0, 0, 0, .5);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--accent: #6B8DFF; --accent-hover: #86A2FF; --accent-soft: #1B2A55; --accent-soft-2: #24397A; --accent-ink: #C8D6FF;
	--ink: #F3F4F6; --ink-2: #D1D5DB; --muted: #A1A8B5; --muted-2: #6B7280;
	--line: #2A3140; --line-2: #3A4252; --canvas: #0F1319; --surface: #171C25; --surface-2: #1F2530;
	--ok: #4ADE80; --ok-soft: #12301F; --warn: #FBBF24; --warn-soft: #3A2B0A; --danger: #F87171; --danger-soft: #3B1513; --info: #6B8DFF; --info-soft: #1B2A55;
	--sh-1: 0 1px 2px rgba(0, 0, 0, .4); --sh-2: 0 10px 30px rgba(0, 0, 0, .5);
	color-scheme: dark;
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft-2); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.vd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------- 타이포 ---------- */
.vd-h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.vd-h2 { font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.vd-h3 { font-size: 16px; font-weight: 700; }
.vd-lead { font-size: 17px; color: var(--muted); line-height: 1.6; }
.vd-muted { color: var(--muted); }
.vd-small { font-size: 13px; }
.vd-strong { font-weight: 700; }
.vd-num { font-variant-numeric: tabular-nums; }
.vd-prewrap { white-space: pre-wrap; }
.vd-link { color: var(--accent); font-weight: 600; }
.vd-link:hover { text-decoration: underline; }
.vd-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 레이아웃 ---------- */
.vd-container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.vd-main { min-height: calc(100vh - var(--header-h)); padding-block: var(--s-6) var(--s-9); }
body.vd-body--botnav .vd-main { padding-bottom: calc(var(--s-9) + 64px); }
.vd-page { display: grid; gap: var(--s-6); }
.vd-page__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3) var(--s-5); }
.vd-page__head p { color: var(--muted); margin-top: var(--s-2); max-width: 70ch; }
.vd-stack { display: grid; gap: var(--s-4); }
.vd-stack--lg { gap: var(--s-6); }
.vd-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.vd-row--between { justify-content: space-between; }
.vd-row--end { justify-content: flex-end; }
.vd-grid { display: grid; gap: var(--s-4); }
.vd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vd-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-7); align-items: start; }
.vd-split__side { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.vd-divider { border: 0; border-top: 1px solid var(--line); margin: var(--s-2) 0; }
.vd-hide-sm { }
.vd-show-sm { display: none; }

/* ---------- 상단 헤더 ---------- */
.vd-announce { background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.vd-announce__inner { display: flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 40px; padding-block: var(--s-2); text-align: center; }
.vd-announce a { text-decoration: underline; text-underline-offset: 3px; }
.vd-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.vd-header__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.vd-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 20px; color: var(--ink); }
.vd-brand__mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: #fff; flex: none; }
.vd-brand__mark svg { width: 16px; height: 16px; fill: currentColor; }
.vd-brand__word small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; line-height: 1.1; }
.vd-search { display: flex; align-items: center; max-width: 560px; width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); padding-left: var(--s-4); transition: box-shadow var(--tr), border-color var(--tr); }
.vd-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vd-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 15px; }
.vd-search input::placeholder { color: var(--muted-2); }
.vd-search button { width: 42px; height: 42px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--muted); }
.vd-search button:hover { color: var(--accent); }
.vd-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.vd-header__tools { display: flex; align-items: center; gap: var(--s-2); }
.vd-tool { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-2); color: var(--ink-2); font-weight: 600; font-size: 14px; transition: background var(--tr), color var(--tr); }
.vd-tool:hover { background: var(--surface-2); color: var(--ink); }
.vd-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vd-tool--icon { width: var(--tap); padding: 0; }
.vd-dot { position: absolute; top: 8px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.vd-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.vd-avatar--lg { width: 56px; height: 56px; font-size: 20px; }
.vd-avatar--xl { width: 80px; height: 80px; font-size: 28px; }
.vd-menu { position: relative; }
.vd-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--sh-2); padding: var(--s-2); z-index: 70; }
.vd-menu__panel a, .vd-menu__panel button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border-radius: var(--r-1); font-size: 14px; color: var(--ink-2); text-align: left; }
.vd-menu__panel a:hover, .vd-menu__panel button:hover { background: var(--surface-2); color: var(--ink); }
.vd-menu__head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.vd-menu__head strong { display: block; font-size: 14px; }
.vd-menu__head small { color: var(--muted); font-size: 12px; }
.vd-menu__sep { border-top: 1px solid var(--line); margin: 6px 0; }
.vd-menu__danger { color: var(--danger) !important; }

/* 2단 분류 탭 */
.vd-tabbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.vd-tabbar__list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vd-tabbar__list::-webkit-scrollbar { display: none; }
.vd-tab { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; transition: color var(--tr), border-color var(--tr); }
.vd-tab:hover { color: var(--ink); }
.vd-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.vd-tabbar__sep { width: 1px; height: 20px; background: var(--line); align-self: center; margin: 0 6px; flex: none; }

/* 모바일 전체 메뉴 시트 */
.vd-sheet { position: fixed; inset: 0; z-index: 90; }
.vd-sheet__scrim { position: absolute; inset: 0; background: rgba(17, 24, 39, .5); width: 100%; height: 100%; }
.vd-sheet__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); background: var(--surface); overflow-y: auto; padding: var(--s-4); box-shadow: var(--sh-2); animation: vd-slide .22s ease; }
@keyframes vd-slide { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.vd-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.vd-sheet__close { width: var(--tap); height: var(--tap); border-radius: var(--r-2); display: grid; place-items: center; font-size: 24px; color: var(--muted); }
.vd-sheet__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin: var(--s-5) 0 var(--s-2); }
.vd-sheet__links a { display: flex; align-items: center; min-height: var(--tap); padding: 0 10px; border-radius: var(--r-1); font-size: 15px; font-weight: 500; }
.vd-sheet__links a:hover, .vd-sheet__links a.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.vd-sheet__account { display: flex; align-items: center; gap: 10px; padding: var(--s-3); border-radius: var(--r-2); background: var(--surface-2); }
.vd-sheet__account strong { flex: 1; font-size: 14px; }

/* 하단 고정 메뉴(모바일) */
.vd-botnav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.vd-botnav__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; font-size: 11px; font-weight: 600; color: var(--muted); }
.vd-botnav__item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vd-botnav__item.is-active { color: var(--accent); }
.vd-botnav__item--cta svg { stroke: #fff; background: var(--accent); border-radius: 50%; padding: 3px; }

/* ---------- 푸터 ---------- */
.vd-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: var(--s-8); padding: var(--s-8) 0 var(--s-7); color: var(--muted); font-size: 14px; }
.vd-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-7); }
.vd-footer h3 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: var(--s-3); }
.vd-footer li + li { margin-top: 8px; }
.vd-footer a:hover { color: var(--accent); }
.vd-footer__pitch { margin: var(--s-3) 0 var(--s-4); max-width: 44ch; line-height: 1.6; }
.vd-footer__legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); display: grid; gap: 6px; }
.vd-footer__legal p { line-height: 1.7; }
.vd-footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.vd-theme { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 12px; font-weight: 600; color: var(--muted); }
.vd-theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- 버튼 ---------- */
.vd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: var(--r-2); font-weight: 700; font-size: 15px; line-height: 1; border: 1px solid transparent; transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr); white-space: nowrap; }
.vd-btn:active { transform: translateY(1px); }
.vd-btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(30, 79, 216, .3); }
.vd-btn--primary:hover { background: var(--accent-hover); }
.vd-btn--secondary { background: var(--accent-soft); color: var(--accent-ink); }
.vd-btn--secondary:hover { background: var(--accent-soft-2); }
.vd-btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.vd-btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.vd-btn--text { color: var(--muted); padding: 0 10px; }
.vd-btn--text:hover { color: var(--ink); background: var(--surface-2); }
.vd-btn--danger { background: var(--danger-soft); color: var(--danger); }
.vd-btn--danger:hover { background: var(--danger); color: #fff; }
.vd-btn--danger-solid { background: var(--danger); color: #fff; }
.vd-btn--ok { background: var(--ok); color: #fff; }
.vd-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: var(--r-1); }
.vd-btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.vd-btn--block { width: 100%; }
.vd-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vd-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.vd-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: vd-spin .7s linear infinite; }
.vd-btn--ghost.is-loading::after, .vd-btn--secondary.is-loading::after, .vd-btn--text.is-loading::after { border-color: var(--line-2); border-top-color: var(--accent); }
@keyframes vd-spin { to { transform: rotate(360deg); } }
.vd-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.vd-actions--end { justify-content: flex-end; }
.vd-actions--between { justify-content: space-between; }
.vd-iconbtn { width: var(--tap); height: var(--tap); border-radius: var(--r-2); display: inline-grid; place-items: center; color: var(--muted); }
.vd-iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.vd-iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vd-iconbtn[aria-pressed="true"] { color: var(--danger); }
.vd-iconbtn[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- 배지·상태 ---------- */
.vd-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.vd-badge--accent { background: var(--accent-soft); color: var(--accent-ink); }
.vd-badge--ok, .vd-tone-ok { background: var(--ok-soft); color: var(--ok); }
.vd-badge--wait, .vd-tone-wait { background: var(--warn-soft); color: var(--warn); }
.vd-badge--reserved, .vd-tone-reserved { background: var(--accent-soft); color: var(--accent-ink); }
.vd-badge--danger, .vd-tone-danger { background: var(--danger-soft); color: var(--danger); }
.vd-badge--muted, .vd-tone-muted, .vd-tone-done { background: var(--surface-2); color: var(--muted); }
.vd-badge--dark { background: var(--ink); color: var(--canvas); }
.vd-badge--lg { height: 30px; padding: 0 12px; font-size: 13px; }
.vd-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all var(--tr); }
.vd-chip:hover { border-color: var(--accent); color: var(--accent); }
.vd-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.vd-chip--sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
.vd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vd-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vd-chips--scroll::-webkit-scrollbar { display: none; }
.vd-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r-1); background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.vd-tag:hover { background: var(--accent-soft); color: var(--accent-ink); }
.vd-tag::before { content: "#"; color: var(--muted-2); margin-right: 2px; }

/* ---------- 카드·패널 ---------- */
.vd-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-6); }
.vd-panel--sm { padding: var(--s-4); }
.vd-panel--accent { background: var(--accent-soft); border-color: transparent; }
.vd-panel--flat { border: 0; background: var(--surface-2); }
.vd-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.vd-panel__head h2, .vd-panel__head h3 { font-size: 17px; font-weight: 700; }
.vd-panel__head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.vd-panel + .vd-panel { margin-top: var(--s-4); }
.vd-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-2); font-size: 14px; line-height: 1.5; border: 1px solid transparent; }
.vd-alert--info { background: var(--info-soft); color: var(--accent-ink); }
.vd-alert--ok { background: var(--ok-soft); color: var(--ok); }
.vd-alert--warn { background: var(--warn-soft); color: var(--warn); }
.vd-alert--danger { background: var(--danger-soft); color: var(--danger); }
.vd-alert strong { font-weight: 700; }
.vd-alert a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.vd-note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.vd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3); }
.vd-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 16px 18px; display: grid; gap: 4px; }
.vd-kpi__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.vd-kpi__value { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vd-kpi__sub { font-size: 12px; color: var(--muted-2); }
.vd-kpi--accent { background: var(--accent-soft); border-color: transparent; }
.vd-kpi--accent .vd-kpi__value { color: var(--accent-ink); }
.vd-kpi--danger .vd-kpi__value { color: var(--danger); }
.vd-kpi a { display: contents; }
.vd-stat-row { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7); }
.vd-stat-row div { display: grid; gap: 2px; }
.vd-stat-row dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.vd-stat-row dd { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 20px; }
.vd-facts div { display: grid; gap: 2px; }
.vd-facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.vd-facts dd { font-size: 15px; font-weight: 600; }
.vd-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 14px; }
.vd-dl dt { color: var(--muted); font-weight: 600; }
.vd-dl dd { font-weight: 500; min-width: 0; }
.vd-checklist { display: grid; gap: 10px; font-size: 14.5px; }
.vd-checklist li { position: relative; padding-left: 26px; line-height: 1.55; }
.vd-checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231E4FD8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.vd-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); counter-reset: step; }
.vd-step { display: grid; gap: 8px; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); }
.vd-step::before { counter-increment: step; content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.vd-step strong { font-size: 15px; }
.vd-step p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.vd-progress-steps { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.vd-progress-steps li { display: inline-flex; align-items: center; gap: 8px; }
.vd-progress-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; }
.vd-progress-steps li.is-active { color: var(--accent); }
.vd-progress-steps li.is-active span { background: var(--accent); color: #fff; }
.vd-progress-steps li + li::before { content: ""; width: 20px; height: 1px; background: var(--line-2); }
.vd-timeline { display: grid; gap: 14px; }
.vd-timeline li { position: relative; padding-left: 22px; font-size: 14px; }
.vd-timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.vd-timeline li.is-accent::before { background: var(--accent); }
.vd-timeline li.is-danger::before { background: var(--danger); }
.vd-timeline time { display: block; font-size: 12px; color: var(--muted-2); }
.vd-empty { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: var(--s-9) var(--s-4); color: var(--muted); }
.vd-empty img { width: min(220px, 50vw); opacity: .95; }
.vd-empty strong { font-size: 17px; color: var(--ink); }
.vd-empty p { max-width: 44ch; }

/* ---------- 작품 카드 ---------- */
.vd-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.vd-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vd-card { position: relative; display: grid; gap: 10px; border-radius: var(--r-3); transition: transform var(--tr); }
.vd-card:hover { transform: translateY(-2px); }
.vd-card__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-2); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.vd-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vd-card:hover .vd-card__media img { transform: scale(1.03); }
.vd-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); font-size: 13px; font-weight: 600; }
.vd-card__play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(17, 24, 39, .55); backdrop-filter: blur(4px); display: grid; place-items: center; opacity: 0; transition: opacity var(--tr); }
.vd-card__play::after { content: ""; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.vd-card:hover .vd-card__play { opacity: 1; }
.vd-card__topleft { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.vd-card__bottom { position: absolute; bottom: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: end; gap: 6px; }
.vd-card__duration { padding: 2px 7px; border-radius: 6px; background: rgba(17, 24, 39, .75); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vd-card__reserved { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .55); backdrop-filter: blur(2px); font-weight: 800; color: var(--accent-ink); font-size: 14px; }
.vd-card__body { display: grid; gap: 4px; padding: 0 2px; }
.vd-card__title { font-size: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-card__meta { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.vd-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.vd-card__price strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.vd-card__price span { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; }
.vd-card__foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted-2); }
.vd-card__link { position: absolute; inset: 0; z-index: 1; border-radius: var(--r-3); }
.vd-card__link:focus-visible { outline-offset: 4px; }
.vd-card__fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink-2); display: grid; place-items: center; box-shadow: var(--sh-1); }
.vd-card__fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.vd-card__fav[aria-pressed="true"] { color: var(--danger); }
.vd-card__fav[aria-pressed="true"] svg { fill: currentColor; }
.vd-card__rank { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.vd-rail { display: grid; gap: var(--s-4); }
.vd-rail__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-3); }
.vd-rail__head h2 { font-size: clamp(19px, 2.2vw, 22px); font-weight: 800; letter-spacing: -.01em; }
.vd-rail__head p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.vd-rail__more { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.vd-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.vd-rail__track > * { scroll-snap-align: start; }
.vd-list-cards { display: grid; gap: var(--s-3); }
.vd-list-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.vd-list-card__thumb { aspect-ratio: 16 / 9; border-radius: var(--r-1); overflow: hidden; background: var(--surface-2); }
.vd-list-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vd-list-card__body { display: grid; gap: 4px; min-width: 0; }
.vd-list-card__title { font-weight: 700; font-size: 15px; }
.vd-list-card__meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.vd-list-card__side { display: grid; gap: 8px; justify-items: end; text-align: right; }

/* ---------- 폼 ---------- */
.vd-form { display: grid; gap: var(--s-5); }
.vd-field { display: grid; gap: 6px; }
.vd-field > span, .vd-field > legend, .vd-label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.vd-field em { font-style: normal; font-weight: 500; color: var(--muted-2); font-size: 12px; margin-left: 4px; }
.vd-field small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.vd-input, .vd-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .vd-field select, .vd-field textarea {
	width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); color: var(--ink); font-size: 15px; transition: border-color var(--tr), box-shadow var(--tr);
}
.vd-field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.vd-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%235B6472' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.vd-input:focus, .vd-field input:focus, .vd-field select:focus, .vd-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vd-field input[aria-invalid="true"], .vd-field textarea[aria-invalid="true"], .vd-field select[aria-invalid="true"] { border-color: var(--danger); }
.vd-field input[type="file"] { padding: 10px; border: 1px dashed var(--line-2); border-radius: var(--r-2); background: var(--surface-2); width: 100%; font-size: 14px; }
.vd-field-error { font-size: 13px; color: var(--danger); font-weight: 600; }
.vd-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.vd-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-2); cursor: pointer; transition: border-color var(--tr), background var(--tr); background: var(--surface); }
.vd-choice:hover { border-color: var(--accent); }
.vd-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.vd-choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.vd-choice strong { display: block; font-size: 14.5px; }
.vd-choice small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.vd-choice--inline { padding: 8px 12px; align-items: center; }
.vd-choices { display: grid; gap: 8px; }
.vd-choices--row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.vd-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.vd-fieldset legend { padding: 0; margin-bottom: 4px; }
.vd-dropzone { display: grid; place-items: center; gap: 8px; padding: var(--s-7) var(--s-4); border: 2px dashed var(--line-2); border-radius: var(--r-3); background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color var(--tr), background var(--tr); }
.vd-dropzone:hover, .vd-dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.vd-dropzone strong { font-size: 15px; }
.vd-dropzone small { color: var(--muted); font-size: 13px; }
.vd-dropzone input { display: none; }
.vd-dropzone svg { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vd-file { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); font-size: 14px; }
.vd-file strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-file span { color: var(--muted); font-size: 13px; }
.vd-progress { width: 100%; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); appearance: none; border: 0; }
.vd-progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.vd-progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; transition: width .2s; }
.vd-progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.vd-readout { font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.vd-tagbox { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: var(--tap); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); }
.vd-tagbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vd-tagbox__tag { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.vd-tagbox__tag button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: inherit; }
.vd-tagbox input { flex: 1; min-width: 120px; border: 0; outline: none; background: transparent; font-size: 14px; min-height: 28px; }
.vd-suggest { position: absolute; z-index: 30; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--sh-2); padding: 6px; display: grid; gap: 2px; min-width: 200px; }
.vd-suggest button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 6px; font-size: 14px; text-align: left; }
.vd-suggest button:hover, .vd-suggest button.is-active { background: var(--surface-2); }
.vd-suggest small { color: var(--muted-2); }
.vd-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.vd-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.vd-switch__track { width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: background var(--tr); flex: none; }
.vd-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--tr); box-shadow: var(--sh-1); }
.vd-switch input:checked + .vd-switch__track { background: var(--accent); }
.vd-switch input:checked + .vd-switch__track::after { transform: translateX(18px); }
.vd-switch input:focus-visible + .vd-switch__track { outline: 3px solid var(--accent-soft-2); }
.vd-code { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); font-size: 12.5px; word-break: break-all; }
.vd-contract-text { white-space: pre-wrap; font-family: var(--font); font-size: 13.5px; line-height: 1.7; max-height: 360px; overflow: auto; padding: var(--s-4); background: var(--surface-2); border-radius: var(--r-2); color: var(--ink-2); }

/* ---------- 표 ---------- */
.vd-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.vd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vd-table th, .vd-table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.vd-table th { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.vd-table tbody tr:last-child td { border-bottom: 0; }
.vd-table tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.vd-table td.is-num, .vd-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.vd-table .vd-actions { flex-wrap: nowrap; }
.vd-table a.vd-link { font-weight: 600; }
.vd-table td small { display: block; color: var(--muted-2); font-size: 12px; }

/* ---------- 페이저·필터 ---------- */
.vd-pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.vd-pager a, .vd-pager span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r-1); display: inline-grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); border: 1px solid transparent; }
.vd-pager a:hover { background: var(--surface-2); }
.vd-pager .is-active { background: var(--accent); color: #fff; }
.vd-pager .is-disabled { color: var(--muted-2); pointer-events: none; }
.vd-pager__info { font-size: 13px; color: var(--muted); margin-left: 8px; }
.vd-toolbar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }
.vd-toolbar__left, .vd-toolbar__right { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.vd-select { min-height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%235B6472' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center/16px; appearance: none; font-size: 14px; font-weight: 600; }
.vd-subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.vd-subtabs a { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.vd-subtabs a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.vd-subtabs a .vd-badge { height: 20px; font-size: 11px; padding: 0 6px; }
.vd-searchbox { display: flex; gap: 8px; }
.vd-searchbox input { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); min-width: 200px; font-size: 14px; }
.vd-searchbox input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- 토스트·다이얼로그·드롭다운 ---------- */
.vd-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
body.vd-body--botnav .vd-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
.vd-toast__item { pointer-events: auto; padding: 12px 16px; border-radius: var(--r-2); background: var(--ink); color: var(--canvas); font-size: 14px; font-weight: 600; box-shadow: var(--sh-2); animation: vd-up .2s ease; }
.vd-toast__item.is-ok { background: var(--ok); color: #fff; }
.vd-toast__item.is-danger { background: var(--danger); color: #fff; }
@keyframes vd-up { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.vd-dialog { border: 0; padding: 0; border-radius: var(--r-3); background: var(--surface); color: var(--ink); width: min(92vw, 440px); box-shadow: var(--sh-2); }
.vd-dialog::backdrop { background: rgba(17, 24, 39, .55); backdrop-filter: blur(2px); }
.vd-dialog__body { padding: var(--s-6); display: grid; gap: var(--s-4); }
.vd-dialog__body h2 { font-size: 18px; font-weight: 800; }
.vd-dialog__body p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.vd-dialog--wide { width: min(94vw, 720px); }
.vd-disclosure { border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.vd-disclosure summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); }
.vd-disclosure summary::-webkit-details-marker { display: none; }
.vd-disclosure summary::after { content: "+"; font-size: 18px; color: var(--muted); }
.vd-disclosure[open] summary::after { content: "−"; }
.vd-disclosure__body { padding: 0 16px 16px; font-size: 14px; color: var(--ink-2); display: grid; gap: 10px; line-height: 1.6; }
.vd-skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: vd-shimmer 1.2s infinite; border-radius: var(--r-1); }
@keyframes vd-shimmer { to { background-position: -200% 0; } }
.vd-timer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.vd-timer.is-expired { background: var(--danger-soft); color: var(--danger); }

/* ---------- 홈 ---------- */
.vd-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-7); align-items: center; padding: var(--s-8) var(--s-7); border-radius: 24px; background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 60%); border: 1px solid var(--line); overflow: hidden; }
.vd-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--surface); border: 1px solid var(--accent-soft-2); padding: 6px 12px; border-radius: var(--r-pill); }
.vd-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; letter-spacing: -.03em; line-height: 1.15; margin: var(--s-4) 0; }
.vd-hero h1 em { font-style: normal; color: var(--accent); }
.vd-hero p { font-size: 17px; color: var(--muted); max-width: 52ch; line-height: 1.6; }
.vd-hero__acts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.vd-hero__stats { display: flex; gap: var(--s-6); margin-top: var(--s-6); }
.vd-hero__stats div { display: grid; }
.vd-hero__stats strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vd-hero__stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
.vd-hero__art { position: relative; }
.vd-hero__art img { border-radius: 20px; box-shadow: var(--sh-2); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.vd-hero__art--fallback { aspect-ratio: 3 / 2; border-radius: 20px; background: radial-gradient(circle at 30% 30%, var(--accent-soft-2), var(--accent-soft) 60%, transparent 100%); display: grid; place-items: center; }
.vd-hero__art--fallback svg { width: 40%; fill: var(--accent); opacity: .9; }
.vd-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); }
.vd-cat { display: grid; gap: 8px; padding: var(--s-3); border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line); text-align: center; transition: border-color var(--tr), transform var(--tr); }
.vd-cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.vd-cat img, .vd-cat__ph { width: 100%; aspect-ratio: 1; border-radius: var(--r-2); object-fit: cover; background: var(--accent-soft); }
.vd-cat strong { font-size: 14px; }
.vd-cat small { font-size: 12px; color: var(--muted); }
.vd-sellers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.vd-seller { display: grid; gap: 12px; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); }
.vd-seller__head { display: flex; align-items: center; gap: 12px; }
.vd-seller__head strong { font-size: 15px; display: block; }
.vd-seller__head small { font-size: 12.5px; color: var(--muted); }
.vd-seller__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vd-seller__thumbs img, .vd-seller__thumbs span { aspect-ratio: 16 / 10; border-radius: 6px; object-fit: cover; background: var(--surface-2); width: 100%; display: block; }
.vd-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.vd-trust div { display: grid; gap: 6px; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); }
.vd-trust strong { font-size: 15px; }
.vd-trust p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.vd-trust svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vd-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-7); border-radius: 20px; background: var(--ink); color: var(--canvas); }
.vd-cta-band h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.vd-cta-band p { color: var(--muted-2); margin-top: 6px; font-size: 14.5px; }
:root[data-theme="dark"] .vd-cta-band, :root:not([data-theme="light"]) .vd-cta-band { }
.vd-notice-strip { display: grid; gap: 8px; }
.vd-notice-strip a { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.vd-notice-strip time { color: var(--muted-2); font-size: 12px; margin-left: auto; white-space: nowrap; }

/* ---------- 목록·검색 ---------- */
.vd-filters { display: grid; gap: var(--s-3); }
.vd-facets { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.vd-facets__side { position: sticky; top: calc(var(--header-h) + var(--s-4)); display: grid; gap: var(--s-5); }
.vd-facet { display: grid; gap: 8px; }
.vd-facet h3 { font-size: 13px; font-weight: 700; color: var(--muted); }
.vd-facet label { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; cursor: pointer; }
.vd-facet input { accent-color: var(--accent); width: 18px; height: 18px; }
.vd-facet__range { display: flex; gap: 6px; align-items: center; }
.vd-facet__range input { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-1); font-size: 13px; }
.vd-applied { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vd-applied a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.vd-applied a::after { content: "×"; font-size: 15px; }
.vd-result-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.vd-result-head strong { font-size: 15px; }
.vd-result-head strong b { color: var(--accent); }
.vd-facets__toggle { display: none; }

/* ---------- 상세 ---------- */
.vd-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-7); align-items: start; }
.vd-player { position: relative; border-radius: var(--r-3); overflow: hidden; background: #0b0f17; aspect-ratio: 16 / 9; }
.vd-player--vertical { aspect-ratio: 16 / 9; }
.vd-player--vertical .cl-player, .vd-player--vertical video { max-height: 100%; }
.vd-player__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa3b2; font-size: 14px; }
.vd-player__note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.vd-detail__head { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.vd-detail__head h1 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.vd-detail__section { padding-top: var(--s-6); margin-top: var(--s-6); border-top: 1px solid var(--line); display: grid; gap: var(--s-4); }
.vd-detail__section h2 { font-size: 18px; font-weight: 800; }
.vd-price { display: flex; align-items: baseline; gap: 10px; }
.vd-price span { font-size: 13px; color: var(--muted); font-weight: 600; }
.vd-price strong { font-size: 28px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vd-buy { display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--sh-1); position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.vd-buy__sub { display: flex; gap: 8px; }
.vd-buy__sub .vd-btn { flex: 1; }
.vd-buybar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--surface); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 12px; }
.vd-buybar strong { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.vd-buybar .vd-btn { flex: 1; }
.vd-seller-card { display: flex; align-items: center; gap: 14px; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.vd-seller-card__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vd-seller-card__body strong { font-size: 15px; }
.vd-seller-card__body small { color: var(--muted); font-size: 13px; }
.vd-report { display: grid; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-2); }

/* ---------- 결제 ---------- */
.vd-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-7); align-items: start; }
.vd-summary { display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.vd-summary__item { display: flex; gap: 12px; align-items: center; }
.vd-summary__item img { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-1); }
.vd-summary__item strong { font-size: 14px; display: block; }
.vd-summary__item small { color: var(--muted); font-size: 12.5px; }
.vd-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.vd-total strong { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.vd-result { display: grid; justify-items: center; text-align: center; gap: var(--s-4); padding: var(--s-9) var(--s-4); max-width: 560px; margin: 0 auto; }
.vd-result__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.vd-result__icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vd-result__icon--wait { background: var(--warn-soft); color: var(--warn); }
.vd-result__icon--danger { background: var(--danger-soft); color: var(--danger); }
.vd-result h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.vd-result p { color: var(--muted); }

/* ---------- 보관함·스튜디오·관리자 공통(사이드바 레이아웃) ---------- */
.vd-console { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.vd-console__nav { position: sticky; top: calc(var(--header-h) + var(--s-4)); display: grid; gap: 2px; padding: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); }
.vd-console__nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--r-1); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.vd-console__nav a:hover { background: var(--surface-2); }
.vd-console__nav a.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.vd-console__nav .vd-badge { height: 20px; font-size: 11px; padding: 0 6px; }
.vd-console__title { padding: 10px 12px 6px; font-size: 12px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.vd-console__body { display: grid; gap: var(--s-5); min-width: 0; }
.vd-console__nav--scroll { display: flex; overflow-x: auto; position: static; padding: 6px; scrollbar-width: none; }
.vd-console__nav--scroll a { white-space: nowrap; }
.vd-purchase { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); }
.vd-purchase__thumb { aspect-ratio: 16 / 9; border-radius: var(--r-2); overflow: hidden; background: var(--surface-2); }
.vd-purchase__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vd-purchase__body { display: grid; gap: 8px; min-width: 0; }
.vd-purchase__title { font-size: 16px; font-weight: 700; }
.vd-purchase__meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.vd-status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.vd-thread { display: grid; gap: var(--s-3); }
.vd-msg { display: grid; gap: 6px; padding: var(--s-4); border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line); max-width: 92%; }
.vd-msg--admin { background: var(--accent-soft); border-color: transparent; justify-self: start; }
.vd-msg--user { justify-self: end; }
.vd-msg__head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); font-weight: 600; }
.vd-msg__body { font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.vd-notifs { display: grid; gap: 6px; }
.vd-notif { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.vd-notif.is-unread { border-left: 3px solid var(--accent); }
.vd-notif__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.vd-notif strong { font-size: 14px; display: block; }
.vd-notif p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.vd-notif time { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.vd-auth { max-width: 440px; margin: var(--s-6) auto; display: grid; gap: var(--s-5); }
.vd-auth .vd-panel { padding: var(--s-7); }
.vd-auth__head { display: grid; gap: 6px; text-align: center; margin-bottom: var(--s-5); }
.vd-auth__head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.vd-auth__head p { color: var(--muted); font-size: 14px; }
.vd-auth__links { display: flex; justify-content: center; gap: 16px; font-size: 13.5px; color: var(--muted); }
.vd-auth__links a { font-weight: 600; color: var(--ink-2); }
.vd-legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.vd-legal__doc { font-size: 15px; line-height: 1.8; }
.vd-legal__doc h1, .vd-legal__doc h2, .vd-legal__doc h3 { margin: 1.4em 0 .5em; font-weight: 800; }
.vd-legal__doc h2 { font-size: 19px; }
.vd-legal__doc h3 { font-size: 16px; }
.vd-legal__doc p { margin: .6em 0; }
.vd-legal__doc ul, .vd-legal__doc ol { padding-left: 1.4em; margin: .6em 0; }
.vd-legal__doc ul { list-style: disc; }
.vd-legal__doc ol { list-style: decimal; }
.vd-legal__doc table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 1em 0; }
.vd-legal__doc th, .vd-legal__doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.vd-legal__meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.vd-notice-body { font-size: 15px; line-height: 1.8; }
.vd-notice-body img { border-radius: var(--r-2); margin: 1em 0; }
.vd-notice-body p { margin: .6em 0; }
.vd-notice-body ul { list-style: disc; padding-left: 1.4em; }
.vd-notice-body ol { list-style: decimal; padding-left: 1.4em; }
.vd-notice-body a { color: var(--accent); text-decoration: underline; }
.vd-print { max-width: 820px; margin: var(--s-6) auto; padding: var(--s-7); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); display: grid; gap: var(--s-4); }
.vd-print__title { font-size: 22px; font-weight: 800; }
.vd-print__meta { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.vd-print__actions { display: flex; gap: 8px; justify-content: flex-end; }
.vd-receipt { width: 100%; border-collapse: collapse; font-size: 14px; }
.vd-receipt th, .vd-receipt td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vd-receipt th { width: 150px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.vd-error-page { display: grid; justify-items: center; text-align: center; gap: var(--s-4); padding: var(--s-9) var(--s-4); }
.vd-error-page img { width: min(260px, 60vw); }
.vd-error-page h1 { font-size: 26px; font-weight: 800; }
.vd-error-page p { color: var(--muted); max-width: 46ch; }
.vd-upload-preview { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-2); overflow: hidden; background: #0b0f17; }
.vd-upload-preview video { width: 100%; height: 100%; object-fit: contain; }
.vd-manifest { display: grid; gap: 6px; font-size: 14px; }
.vd-manifest li { display: flex; gap: 8px; align-items: center; }
.vd-manifest li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.vd-manifest li.is-on::before { background: var(--ok); }
.vd-manifest li.is-off::before { background: var(--danger); }
.vd-mini-thumb { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--surface-2); }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
	.vd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vd-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.vd-sellers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vd-footer__grid { grid-template-columns: 1fr 1fr; }
	.vd-detail { grid-template-columns: minmax(0, 1fr) 320px; }
	.vd-console { grid-template-columns: 1fr; }
	.vd-console__nav { position: static; display: flex; overflow-x: auto; padding: 6px; scrollbar-width: none; }
	.vd-console__nav a { white-space: nowrap; }
	.vd-console__title { display: none; }
	.vd-facets { grid-template-columns: 220px minmax(0, 1fr); }
	.vd-legal { grid-template-columns: 1fr; }
	.vd-legal__nav { display: flex; overflow-x: auto; gap: 6px; }
	.vd-split { grid-template-columns: 1fr; }
	.vd-split__side { position: static; }
	.vd-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
	:root { --gutter: 16px; --header-h: 56px; }
	.vd-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); }
	.vd-search { height: 38px; }
	.vd-brand__word small { display: none; }
	.vd-tool .vd-tool__text { display: none; }
	.vd-tool--cta { display: none; }
	.vd-hide-sm { display: none !important; }
	.vd-show-sm { display: initial; }
	.vd-botnav { display: flex; }
	.vd-buybar { display: flex; }
	.vd-buy { display: none; }
	.vd-detail { grid-template-columns: 1fr; }
	.vd-checkout { grid-template-columns: 1fr; }
	.vd-summary { position: static; }
	.vd-hero { grid-template-columns: 1fr; padding: var(--s-6) var(--s-5); gap: var(--s-5); }
	.vd-hero__art { order: -1; }
	.vd-hero__stats { gap: var(--s-4); }
	.vd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
	.vd-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vd-trust { grid-template-columns: 1fr; }
	.vd-facets { grid-template-columns: 1fr; }
	.vd-facets__side { position: static; display: none; }
	.vd-facets__side.is-open { display: grid; }
	.vd-facets__toggle { display: inline-flex; }
	.vd-field-row { grid-template-columns: 1fr; }
	.vd-grid--2, .vd-grid--3, .vd-grid--4 { grid-template-columns: 1fr 1fr; }
	.vd-list-card { grid-template-columns: 96px minmax(0, 1fr); }
	.vd-list-card__side { grid-column: 1 / -1; justify-items: start; text-align: left; }
	.vd-purchase { grid-template-columns: 1fr; }
	.vd-purchase__thumb { max-width: 240px; }
	.vd-rail__track { grid-auto-columns: minmax(200px, 1fr); }
	.vd-table--cards thead { display: none; }
	.vd-table--cards, .vd-table--cards tbody, .vd-table--cards tr, .vd-table--cards td { display: block; width: 100%; }
	.vd-table--cards tr { padding: 10px 4px; border-bottom: 1px solid var(--line); }
	.vd-table--cards td { border: 0; padding: 4px 10px; display: flex; gap: 10px; justify-content: space-between; text-align: right; }
	.vd-table--cards td::before { content: attr(data-th); font-weight: 700; color: var(--muted); font-size: 12.5px; text-align: left; flex: none; }
	.vd-table--cards td.is-num { text-align: right; }
	.vd-table--cards td[data-th=""]::before { display: none; }
	.vd-table--cards .vd-actions { justify-content: flex-end; }
	.vd-page__head { align-items: start; }
	.vd-sheet__panel { width: min(92vw, 360px); }
	.vd-dl { grid-template-columns: 1fr; gap: 2px 0; }
	.vd-dl dt { margin-top: 8px; }
	.vd-print { padding: var(--s-4); }
	.vd-receipt th { width: 110px; }
	.vd-main { padding-top: var(--s-4); }
}
@media (max-width: 560px) {
	.vd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) 10px; }
	.vd-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vd-sellers { grid-template-columns: 1fr; }
	.vd-footer__grid { grid-template-columns: 1fr; gap: var(--s-5); }
	.vd-hero h1 { font-size: 28px; }
	.vd-hero p { font-size: 15px; }
	.vd-steps { grid-template-columns: 1fr; }
	.vd-kpis { grid-template-columns: repeat(2, 1fr); }
	.vd-grid--2, .vd-grid--3, .vd-grid--4 { grid-template-columns: 1fr; }
	.vd-panel { padding: var(--s-4); }
	.vd-actions .vd-btn { flex: 1 1 auto; }
	.vd-auth .vd-panel { padding: var(--s-5); }
	.vd-card__title { font-size: 14px; }
	.vd-card__price strong { font-size: 15px; }
	.vd-tool--search { display: none; }
	.vd-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (max-width: 390px) {
	:root { --gutter: 14px; }
	.vd-cards { grid-template-columns: 1fr 1fr; gap: 12px 8px; }
	.vd-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vd-kpis { grid-template-columns: 1fr 1fr; }
	.vd-hero__acts .vd-btn { flex: 1 1 100%; }
	.vd-search { display: none; }
	.vd-tool--search { display: inline-flex; }
}
@media (max-width: 320px) {
	.vd-cards { grid-template-columns: 1fr; }
	.vd-kpis { grid-template-columns: 1fr; }
}
@media print {
	.vd-header, .vd-footer, .vd-botnav, .vd-buybar, .vd-print__actions, .vd-announce, .vd-toast { display: none !important; }
	body { background: #fff; color: #000; }
	.vd-print { border: 0; box-shadow: none; max-width: none; margin: 0; padding: 0; }
	.vd-contract-text { max-height: none; overflow: visible; background: none; padding: 0; }
	.vd-main { padding: 0; }
}
