/* 들녘마루 사전 기획·설계 시안 (village) */

.vl {
  --bg: #E9EDE7;
  --surface: #FFFFFF;
  --text: #1B2420;
  --muted: #56635B;
  --line: #D2D9D3;
  --line-strong: #B3BEB5;
  --primary: #22604D;
  --primary-ink: #184A3B;
  --primary-soft: #E2EEE8;
  --accent: #D6336C;
  --accent-soft: #FCE8F0;
  --gold: #E3B23C;
  --gold-soft: #FBF1D9;
  --ok: #2B7A4B;
  --warn: #9A6A12;
  --danger: #B42318;
  --wf-ink: #3A443F;
  --wf-line: #9AA49E;
  --wf-fill: #F4F6F4;
  --radius: 5px;
  --font: "IBM Plex Sans KR", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

.vl {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:where(.vl) :where(p, h1, h2, h3, ol, ul, dl, dd) { margin: 0; }
:where(.vl) :where(ul, ol) { padding: 0; list-style: none; }
:where(.vl) :where(a) { color: inherit; }
:where(.vl) :where(button) { font: inherit; color: inherit; }
.vl [hidden] { display: none !important; }
.vl :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 안내 띠 */
.vl .demo-notice {
  order: -1;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #DDE3DC;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 헤더 ─────────────────────────── */
.vl-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.vl-top__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 32px 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.vl-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; flex: 1; }
.vl-brand__mark { flex: none; }
.vl-brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.vl-brand__text strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.vl-brand__text small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.vl-btn:hover { background: var(--wf-fill); }

.vl-nav { border-top: 1px solid transparent; }
.vl-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.vl-nav__inner::-webkit-scrollbar { display: none; }
.vl-nav__item {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 3px solid transparent;
}
.vl-nav__item:hover { color: var(--text); }
.vl-nav__item.is-on { color: var(--primary-ink); border-bottom-color: var(--primary); font-weight: 600; }

/* ── 본문 공통 ─────────────────────── */
.vl-main { flex: 1; padding: 32px 0 120px; }
.vl-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.vl-head { max-width: 760px; margin-bottom: 24px; }
.vl-head h1 { font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.vl-head p { color: var(--muted); font-size: 15.5px; }
.vl-h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.vl-code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.vl-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.vl-tag--nf { border-style: dashed; color: var(--muted); }
.vl-tag--hw { background: var(--gold-soft); border-color: #E6CB86; color: #6B4A06; }
.vl-assume {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--gold-soft);
  color: #6B4A06;
  font-size: 12.5px;
  font-weight: 600;
}

/* ── 기능 정의: 산출물 ─────────────── */
.vl-deliv { margin-bottom: 28px; }
.vl-deliv .vl-h2 { margin-bottom: 10px; }
.vl-deliv__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.vl-deliv__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "no name" "no fmt" "note note";
  column-gap: 10px;
  row-gap: 2px;
  height: 100%;
  padding: 14px 16px 16px;
  background: var(--surface);
  text-decoration: none;
}
.vl-deliv__item:hover { background: #F7FAF7; }
.vl-deliv__no {
  grid-area: no;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  color: var(--primary-ink);
  font-size: 13px;
  font-weight: 700;
}
.vl-deliv__name { grid-area: name; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.vl-deliv__fmt { grid-area: fmt; font-size: 12.5px; color: var(--muted); }
.vl-deliv__note { grid-area: note; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── 기능 정의: 레일 + 문서 ─────────── */
.vl-srs { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 20px; align-items: start; }
.vl-srs__rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 128px; }
.vl-fn {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "code count" "name name";
  align-items: center;
  gap: 2px 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.vl-fn:hover { background: rgba(255, 255, 255, 0.6); }
.vl-fn.is-on { background: var(--surface); border-color: var(--line); box-shadow: inset 3px 0 0 var(--primary); }
.vl-fn__code { grid-area: code; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vl-fn__name { grid-area: name; font-weight: 600; font-size: 15px; }
.vl-fn__count { grid-area: count; font-size: 12px; color: var(--muted); }

.vl-sheet-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px 24px;
}
.vl-doc-head { padding-bottom: 20px; border-bottom: 2px solid var(--text); margin-bottom: 4px; }
.vl-doc-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 6px; }
.vl-doc-head p { color: var(--muted); max-width: 70ch; }
.vl-doc-sec { padding: 20px 0 4px; }
.vl-doc-sec h3 { font-size: 14px; font-weight: 600; color: var(--primary-ink); margin-bottom: 10px; }
.vl-doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.vl-req { width: 100%; border-collapse: collapse; font-size: 14px; }
.vl-req th {
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 10px;
  background: var(--wf-fill);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.vl-req td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vl-req__id { width: 84px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vl-req td:nth-child(3), .vl-req td:nth-child(4) { width: 80px; }
.vl-pri { font-size: 13px; font-weight: 600; }
.vl-pri--must { color: var(--primary-ink); }
.vl-pri--must::before { content: "● "; font-size: 9px; vertical-align: 2px; }
.vl-pri--opt { color: var(--muted); }
.vl-pri--opt::before { content: "○ "; font-size: 9px; vertical-align: 2px; }

.vl-exc li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; display: flex; flex-direction: column; }
.vl-exc li:last-child { border-bottom: 0; }
.vl-exc strong { font-weight: 600; }
.vl-exc span { color: var(--muted); }

.vl-link li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.vl-link li:last-child { border-bottom: 0; }
.vl-link__type { font-size: 12px; font-weight: 600; padding: 0 6px; border-radius: 3px; border: 1px solid var(--line-strong); }
.vl-link__type--ext { background: var(--gold-soft); border-color: #E6CB86; color: #6B4A06; }
.vl-link__type--int { color: var(--muted); }
.vl-link__name { font-weight: 500; }
.vl-link__note { flex-basis: 100%; font-size: 13px; color: var(--muted); }

.vl-erd { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.vl-ent { width: 220px; border: 1.5px solid var(--text); border-radius: 3px; background: var(--surface); font-size: 13px; }
.vl-ent__head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 6px 10px; background: var(--text); color: #fff; }
.vl-ent__head span { font-weight: 600; }
.vl-ent__head small { font-size: 12px; opacity: 0.8; }
.vl-ent li { padding: 4px 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.vl-ent li:first-child { border-top: 0; }
.vl-ent li.is-key { font-weight: 600; }
.vl-ent li.is-key::before { content: "PK "; color: var(--primary); font-size: 11px; font-weight: 700; }
.vl-ent li.is-fk::before { content: "FK "; color: var(--warn); font-size: 11px; font-weight: 700; }
.vl-ent li.is-uq { font-weight: 600; }
.vl-ent li.is-uq::before { content: "UQ "; color: var(--accent); font-size: 11px; font-weight: 700; }

.vl-doc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.vl-chip-link {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  color: var(--primary-ink);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}
.vl-chip-link:hover { background: var(--primary-soft); }

/* ── 세그먼트 ─────────────────────── */
.vl-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: calc(var(--radius) + 3px);
  background: #DCE2DB;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.vl-seg::-webkit-scrollbar { display: none; }
.vl-seg__item {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.vl-seg__item.is-on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(27, 36, 32, 0.12); }
.vl-seg--wide { margin-bottom: 14px; }
.vl-seg--wide .vl-seg__item { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.3; padding: 6px 16px; }
.vl-seg--wide small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ── 메뉴 구조 ─────────────────────── */
.vl-ia-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.vl-ia-count { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.vl-ia-count strong { color: var(--text); font-size: 16px; margin-left: 2px; font-variant-numeric: tabular-nums; }

.vl-tree { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.vl-tree__root {
  display: flex; align-items: baseline; gap: 10px;
  width: fit-content;
  margin: 0 auto 22px;
  padding: 10px 18px;
  border: 2px solid var(--text);
  border-radius: 3px;
  font-weight: 700;
  position: relative;
}
.vl-tree__root small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.vl-tree__root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 12px; background: var(--text); }
.vl-tree__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--text);
}
.vl-tree__group h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15.5px; font-weight: 700;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--line-strong);
}
.vl-node {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.vl-node__id { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vl-sync {
  display: inline-block;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  color: #6B4A06;
  background: var(--gold-soft);
  border-radius: 3px;
  padding: 0 6px;
  margin-left: 4px;
  white-space: nowrap;
}
.vl-acc { display: none; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
.vl-node[data-acc="full"] .vl-acc--full { display: inline-block; background: var(--primary); color: #fff; }
.vl-node[data-acc="view"] .vl-acc--view { display: inline-block; border: 1px solid var(--primary); color: var(--primary-ink); }
.vl-node[data-acc="none"] .vl-acc--none { display: inline-block; color: #8A958E; border: 1px dashed #B8C1BA; }
.vl-node[data-acc="none"] .vl-node__name { color: #8A958E; text-decoration: line-through; text-decoration-color: #B8C1BA; }

.vl-note-box { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.vl-note-box .vl-h2 { margin-bottom: 12px; }
.vl-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.vl-spec dt { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.vl-spec dd { font-size: 14px; color: var(--muted); }

/* ── 화면설계서 ─────────────────────── */
.vl-scr { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.vl-scr__list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 128px; }
.vl-scr__item {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.vl-scr__item:hover { background: rgba(255, 255, 255, 0.6); }
.vl-scr__item.is-on { background: var(--surface); border-color: var(--line); box-shadow: inset 3px 0 0 var(--primary); }
.vl-scr__id { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vl-scr__name { font-weight: 600; }
.vl-scr__more { margin-top: 10px; padding: 0 14px; font-size: 12.5px; color: var(--muted); }

.vl-sds { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.vl-sds__meta { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vl-sds__meta th, .vl-sds__meta td { border-bottom: 1px solid var(--line-strong); padding: 8px 12px; text-align: left; }
.vl-sds__meta th { width: 84px; background: var(--wf-fill); font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); white-space: nowrap; }
.vl-sds__meta td { border-right: 1px solid var(--line); font-weight: 500; }
.vl-sds__meta td:last-child { border-right: 0; }
.vl-sds__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.vl-sds__canvas {
  padding: 28px 20px;
  display: flex;
  justify-content: center;
  background-color: #FAFBFA;
  background-image: radial-gradient(#D8DED9 1px, transparent 1px);
  background-size: 14px 14px;
  border-right: 1px solid var(--line-strong);
}
.vl-sds__desc { padding: 18px 20px 22px; }
.vl-desc-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 6px; }
.vl-desc li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 9px 8px;
  margin: 0 -8px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: default;
  transition: background-color 0.15s;
}
.vl-desc li.is-hl { background: var(--accent-soft); }
.vl-desc__no {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.vl-desc-foot { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.vl-variants__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.vl-variants__group > span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.vl-variants__btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13.5px;
  cursor: pointer;
}
.vl-variants__btn.is-on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }

/* 와이어프레임 */
.wf {
  width: 300px;
  min-height: 600px;
  border: 2px solid var(--wf-ink);
  border-radius: 28px;
  background: #fff;
  padding: 10px 14px 18px;
  color: var(--wf-ink);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 10px 0 -6px rgba(58, 68, 63, 0.12);
}
.wf__status { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px 8px; font-size: 11.5px; font-weight: 600; }
.wf__bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.wf__bars i { display: block; width: 3px; background: var(--wf-ink); border-radius: 1px; }
.wf__bars i:nth-child(1) { height: 5px; } .wf__bars i:nth-child(2) { height: 8px; } .wf__bars i:nth-child(3) { height: 11px; }
.wf-bar { display: flex; align-items: center; gap: 8px; padding: 6px 2px 12px; border-bottom: 1px solid var(--wf-line); margin-bottom: 12px; font-size: 15px; }
.wf-back { font-size: 20px; line-height: 1; }
.wf-rel { position: relative; }
.wf-pin {
  position: absolute;
  top: -9px; left: -12px;
  z-index: 2;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 2px #fff;
  transition: transform 0.15s;
}
.wf-pin::before { content: ""; position: absolute; inset: -11px; }
.wf-pin.is-hl { transform: scale(1.25); }
.wf-label { font-size: 12px; color: #6B756F; margin: 10px 0 6px; }

.wf-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--wf-line); border-radius: 4px; }
.wf-tabs span:first-child { border-radius: 3px 0 0 3px; }
.wf-tabs span:last-child { border-radius: 0 3px 3px 0; }
.wf-tabs span { text-align: center; padding: 8px 2px; font-size: 12px; border-left: 1px solid var(--wf-line); }
.wf-tabs span:first-child { border-left: 0; }
.wf-tabs .is-on { background: var(--wf-ink); color: #fff; font-weight: 600; }
.wf-dates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.wf-dates span { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border: 1px solid var(--wf-line); border-radius: 4px; }
.wf-dates b { font-size: 14px; }
.wf-dates small { font-size: 11px; }
.wf-dates .is-on { border: 2px solid var(--wf-ink); }
.wf-dates .is-off { background: repeating-linear-gradient(135deg, #fff 0 4px, #E8EBE9 4px 6px); color: #8A948E; }

.wf-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wf-slot {
  display: flex; flex-direction: column; align-items: center;
  min-height: 44px;
  padding: 4px 0;
  border: 1px solid var(--wf-line);
  border-radius: 4px;
  background: #fff;
  color: var(--wf-ink);
  cursor: pointer;
  line-height: 1.25;
}
.wf-slot b { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wf-slot small { font-size: 10.5px; }
.wf-slot.is-booked { background: #E3E7E4; color: #7D8781; cursor: not-allowed; }
.wf-slot.is-held { background: repeating-linear-gradient(135deg, #fff 0 4px, #E3E7E4 4px 7px); color: #6B756F; cursor: not-allowed; }
.wf-slot.is-picked { background: var(--wf-ink); border-color: var(--wf-ink); color: #fff; }
.wf-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 16px; padding: 10px 12px; border: 1px dashed var(--wf-line); border-radius: 4px; }
.wf-sum span { font-size: 12.5px; }
.wf-sum b { font-size: 15px; font-variant-numeric: tabular-nums; }

.wf-cta {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 6px;
  background: var(--wf-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.wf-cta:disabled { background: #C5CCC7; cursor: not-allowed; }
.wf-cta--sm { width: auto; min-height: 40px; padding: 0 16px; margin: 0; }
.wf-ghost { width: 100%; min-height: 44px; margin-top: 10px; border: 1.5px solid var(--wf-ink); border-radius: 6px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.wf-link { border: 0; background: none; padding: 8px 0; font-size: 12.5px; text-decoration: underline; color: #6B756F; cursor: pointer; min-height: 44px; }
.wf-cancel { text-align: center; }

/* 결제 대기 */
.wf-hold { border: 2px solid var(--wf-ink); border-radius: 6px; padding: 12px; }
.wf-hold__live { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 8px; }
.wf-hold__live span:first-child { font-size: 12.5px; }
.wf-hold__live b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.wf-hold__track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #E3E7E4; overflow: hidden; }
.wf-hold__track i { display: block; height: 100%; background: var(--wf-ink); transform-origin: left center; transition: transform 1s linear; }
.wf-hold__expired { display: none; flex-direction: column; gap: 4px; }
.wf-hold__expired b { font-size: 14px; }
.wf-hold__expired span { font-size: 12px; color: #6B756F; }
.wf[data-variant="expired"] .wf-hold__live { display: none; }
.wf[data-variant="expired"] .wf-hold__expired { display: flex; }
.wf[data-variant="expired"] .wf-hold { border-style: dashed; }
.wf-cta--expired { display: none; }
.wf[data-variant="expired"] .wf-cta--live { display: none; }
.wf[data-variant="expired"] .wf-cta--expired { display: block; }
.wf[data-variant="expired"] .wf-pay, .wf[data-variant="expired"] .wf-split, .wf[data-variant="expired"] .wf-card { opacity: 0.4; }

.wf-card { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--wf-line); border-radius: 4px; font-size: 12.5px; }
.wf-card__t { font-weight: 600; font-size: 13.5px; }
.wf-card__p { font-weight: 700; font-size: 15px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wf-pay { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.wf-pay label { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--wf-line); border-radius: 4px; font-size: 12.5px; }
.wf-pay label.is-on { border: 2px solid var(--wf-ink); font-weight: 600; }
.wf-radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--wf-ink); }
.wf-pay label.is-on .wf-radio { background: radial-gradient(var(--wf-ink) 0 3px, #fff 3.5px); }
.wf-split { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wf-split div { display: flex; flex-direction: column; padding: 8px 10px; background: var(--wf-fill); border-radius: 4px; }
.wf-split span { font-size: 11.5px; }
.wf-split b { font-variant-numeric: tabular-nums; }

/* 출입 PIN */
.wf-done { font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.wf-pinbox { border: 2px solid var(--wf-ink); border-radius: 8px; padding: 16px 12px; text-align: center; }
.wf-pinbox__ok span { display: block; font-size: 12px; }
.wf-pinbox__ok b { display: block; font-size: 34px; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.wf-pinbox__ok em { font-style: normal; color: #8A948E; }
.wf-pinbox__fail { display: none; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; }
.wf[data-variant="fail"] .wf-pinbox__ok { display: none; }
.wf[data-variant="fail"] .wf-pinbox__fail { display: flex; }
.wf[data-variant="fail"] .wf-pinbox { border-style: dashed; }

/* 경매 */
.wf-prod { display: flex; gap: 10px; align-items: center; }
.wf-img { flex: none; width: 64px; height: 64px; border: 1px solid var(--wf-line); border-radius: 4px; background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--wf-line), transparent calc(50% + 0.5px)), linear-gradient(to top left, transparent calc(50% - 0.5px), var(--wf-line), transparent calc(50% + 0.5px)); }
.wf-prod b { display: block; font-size: 14px; }
.wf-prod small { font-size: 12px; color: #6B756F; }
.wf-auc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.wf-auc div { display: flex; flex-direction: column; padding: 10px; border: 2px solid var(--wf-ink); border-radius: 6px; }
.wf-auc span { font-size: 11.5px; }
.wf-auc b { font-size: 18px; font-variant-numeric: tabular-nums; }
.wf-auc__ext { display: none; }
.wf[data-variant="extended"] .wf-auc__live { display: none; }
.wf[data-variant="extended"] .wf-auc__ext { display: inline; }
.wf-ext-note { display: none; margin-top: 8px; padding: 8px 10px; background: var(--wf-fill); border-left: 3px solid var(--wf-ink); font-size: 12px; }
.wf[data-variant="extended"] .wf-ext-note { display: block; }
.wf-step { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 8px 8px 12px; border: 1px solid var(--wf-line); border-radius: 6px; }
.wf-step span { font-size: 12px; }
.wf-step b { flex: 1; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.wf-bids { margin-top: 14px; border-top: 1px solid var(--wf-line); }
.wf-bids li { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px dashed var(--wf-line); font-size: 12.5px; }
.wf-bids b { font-variant-numeric: tabular-nums; }
.wf-bids li.is-mine { font-weight: 700; }
.wf-hint { margin-top: 12px; padding-left: 14px; font-size: 12px; color: #6B756F; }
.wf-hint .wf-pin { left: -12px; }

/* 역경매 */
.wf-cond { border: 1px solid var(--wf-line); border-radius: 6px; }
.wf-cond div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--wf-line); font-size: 12.5px; }
.wf-cond div:first-child { border-top: 0; }
.wf-cond b { text-align: right; }
.wf-close { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--wf-fill); border-radius: 6px; }
.wf-close span { font-size: 12px; }
.wf-close b { font-size: 13.5px; }
.wf-close__open { display: none; }
.wf[data-variant="open"] .wf-close__sealed { display: none; }
.wf[data-variant="open"] .wf-close__open { display: block; }
.wf-quotes { margin-top: 12px; }
.wf-quotes li { display: flex; justify-content: space-between; gap: 6px; padding: 9px 2px; border-bottom: 1px dashed var(--wf-line); font-size: 12.5px; }
.wf-quotes em { font-style: normal; font-variant-numeric: tabular-nums; }
.wf-amt { display: none; }
.wf[data-variant="open"] .wf-seal { display: none; }
.wf[data-variant="open"] .wf-amt { display: inline; }
.wf[data-variant="open"] .wf-quotes li.is-over { color: #8A948E; text-decoration: line-through; }
.wf-seal { color: #8A948E; letter-spacing: 0.04em; }
.wf-cta--open { display: none; }
.wf[data-variant="open"] .wf-cta--open { display: block; }
.wf[data-variant="open"] .wf-cta--sealed { display: none; }

/* ── 이용 흐름 ─────────────────────── */
.vl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.vl-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 22px; height: 14px; border: 1.5px solid var(--text); background: var(--surface); }
.lg--start { border-radius: 8px; background: var(--text); }
.lg--proc { border-radius: 2px; }
.lg--dec { clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%); background: var(--primary); border: 0; }
.lg--ext { border-style: solid; border-color: #B88A1E; background: var(--gold-soft); border-radius: 2px; border-left-width: 4px; }
.lg--exc { border-style: dashed; border-color: var(--accent); }

.vl-flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.vl-flow__list { max-width: 900px; margin: 0 auto; }
.vl-step {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  position: relative;
  padding-bottom: 26px;
}
.vl-step:last-child { padding-bottom: 0; }
.vl-step::after {
  content: "";
  position: absolute;
  left: calc(128px + 16px + 140px);
  top: 44px;
  bottom: 2px;
  width: 2px;
  background: var(--text);
}
.vl-step:last-child::after { display: none; }
.vl-step::before {
  content: "";
  position: absolute;
  left: calc(128px + 16px + 136px);
  bottom: 0;
  border: 5px solid transparent;
  border-top: 7px solid var(--text);
  border-bottom: 0;
}
.vl-step:last-child::before { display: none; }
.vl-step__actor { padding-top: 11px; font-size: 12.5px; color: var(--muted); text-align: right; line-height: 1.35; }
.vl-step__main { display: flex; align-items: flex-start; gap: 0; }
.vl-shape {
  position: relative;
  flex: none;
  width: 282px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px solid var(--text);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.vl-shape__n { flex: none; font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 14px; }
.vl-shape--start, .vl-shape--end { background: var(--text); color: #fff; border-radius: 22px; }
.vl-shape--start .vl-shape__n, .vl-shape--end .vl-shape__n { color: rgba(255, 255, 255, 0.7); }
.vl-shape--ext { background: var(--gold-soft); border-color: #B88A1E; border-left-width: 5px; }
.vl-shape--dec {
  border: 0;
  background: var(--primary);
  color: #fff;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  padding: 10px 26px;
  font-weight: 600;
}
.vl-shape--dec .vl-shape__n { color: rgba(255, 255, 255, 0.75); }

.vl-branch { display: flex; align-items: center; min-width: 0; padding-top: 4px; }
.vl-branch__label {
  position: relative;
  flex: none;
  width: 70px;
  padding-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  border-bottom: 2px dashed var(--accent);
  margin-right: 8px;
}
.vl-branch__label::after { content: ""; position: absolute; right: -6px; bottom: -6px; border: 5px solid transparent; border-left: 7px solid var(--accent); border-right: 0; }
.vl-branch__exc, .vl-branch__alt {
  padding: 8px 12px;
  border: 1.5px dashed var(--accent);
  border-radius: 3px;
  background: var(--accent-soft);
  font-size: 13.5px;
  line-height: 1.4;
}
.vl-branch__yes {
  flex: none;
  padding: 8px 12px;
  margin-left: 16px;
  margin-right: 8px;
  border: 1.5px solid var(--primary);
  border-radius: 3px;
  font-size: 13.5px;
  color: var(--primary-ink);
  font-weight: 600;
}
.vl-branch__alt { background: transparent; border-color: var(--line-strong); color: var(--muted); }

.vl-split { display: grid; grid-template-columns: 282px 282px; gap: 12px; }
.vl-step--split::after { left: calc(128px + 16px + 140px); }

.vl-foot-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ── 개발 산출 ─────────────────────── */
.vl-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.vl-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vl-panel > .vl-h2 { margin-bottom: 14px; }
.vl-panel__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.vl-fp-wrap { overflow-x: auto; }
.vl-fp { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.vl-fp th, .vl-fp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.vl-fp thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; background: var(--wf-fill); }
.vl-fp thead th small { display: block; font-weight: 400; font-size: 11.5px; }
.vl-fp th[scope="row"] { text-align: left; font-weight: 600; }
.vl-fp thead th:first-child { text-align: left; }
.vl-fp__fpcol { width: 34%; text-align: left !important; }
.vl-fp__fp { position: relative; text-align: left !important; }
.vl-fp__fp b { position: relative; font-weight: 700; }
.vl-fp__bar {
  display: inline-block;
  vertical-align: middle;
  height: 10px;
  width: calc(var(--w) * 0.7);
  margin-right: 10px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}
.vl-fp tfoot th, .vl-fp tfoot td { border-bottom: 0; border-top: 2px solid var(--text); }

.vl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vl-two .vl-panel { margin-bottom: 0; }
.vl-split-h { margin: 14px 0 6px; }
.vl-split-h:first-of-type { margin-top: 0; }
.vl-cost li { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.vl-cost li:last-child { border-bottom: 0; }
.vl-cost b { font-weight: 600; }
.vl-cost span { color: var(--muted); font-size: 13px; }

.vl-gantt { font-size: 13px; }
.vl-gantt__scale, .vl-gantt__row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; }
.vl-gantt__scale div { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line-strong); }
.vl-gantt__scale i { font-style: normal; font-size: 11.5px; color: var(--muted); padding: 0 0 4px 4px; border-left: 1px solid var(--line); }
.vl-gantt__row { min-height: 36px; border-bottom: 1px dashed var(--line); }
.vl-gantt__row span { line-height: 1.3; }
.vl-gantt__track {
  position: relative;
  height: 100%;
  min-height: 36px;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.vl-gantt__track i { position: absolute; top: 50%; left: var(--s); width: var(--l); height: 12px; margin-top: -6px; background: var(--primary); border-radius: 4px; }

/* ── 공고 대응표 ───────────────────── */
.vl-fab {
  position: fixed;
  right: 20px;
  bottom: 44px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(24, 74, 59, 0.28);
}
.vl-sheet { width: min(620px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 0; border: 0; border-radius: 8px; background: var(--surface); color: var(--text); }
.vl-sheet::backdrop { background: rgba(27, 36, 32, 0.45); }
.vl-sheet__body { padding: 22px 24px 24px; }
.vl-sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vl-sheet__head h2 { font-size: 20px; font-weight: 700; }
.vl-icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: var(--radius); cursor: pointer; }
.vl-icon-btn:hover { background: var(--wf-fill); }
.vl-map li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.vl-map__show { color: var(--primary-ink); font-weight: 600; text-align: right; text-decoration: none; }
.vl-map__show:hover { text-decoration: underline; }
.vl-sheet__foot { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ── 반응형 ───────────────────────── */
@media (max-width: 1080px) {
  .vl-deliv__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vl-sds__body { grid-template-columns: 1fr; }
  .vl-sds__canvas { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .vl-tree__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vl-two { grid-template-columns: 1fr; }
  .vl-two .vl-panel { margin-bottom: 0; }
}

@media (max-width: 860px) {
  .vl-top__inner { padding: 10px 16px 6px; }
  .vl-nav__inner { padding: 0 8px; }
  .vl-wrap { padding: 0 16px; }
  .vl-main { padding-top: 22px; }
  .vl-head h1 { font-size: 23px; }
  .vl-head p { font-size: 14.5px; }

  .vl-deliv__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: transparent; border: 0; gap: 8px; border-radius: 0; scrollbar-width: none; }
  .vl-deliv__list::-webkit-scrollbar { display: none; }
  .vl-deliv__list li { flex: 0 0 232px; scroll-snap-align: start; }
  .vl-deliv__item { border: 1px solid var(--line); border-radius: var(--radius); }

  .vl-srs, .vl-scr { grid-template-columns: 1fr; }
  .vl-srs__rail, .vl-scr__list {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }
  .vl-srs__rail::-webkit-scrollbar, .vl-scr__list::-webkit-scrollbar { display: none; }
  .vl-fn, .vl-scr__item { flex: none; background: rgba(255, 255, 255, 0.55); border-color: var(--line); }
  .vl-fn { grid-template-areas: "code" "name"; grid-template-columns: auto; padding: 8px 14px; }
  .vl-fn__count { display: none; }
  .vl-fn.is-on, .vl-scr__item.is-on { box-shadow: inset 0 -3px 0 var(--primary); }
  .vl-scr__more { display: none; }

  .vl-sheet-doc { padding: 20px 16px 18px; }
  .vl-doc-head h2 { font-size: 21px; }
  .vl-doc-cols { grid-template-columns: 1fr; gap: 0; }
  .vl-req thead { display: none; }
  .vl-req, .vl-req tbody, .vl-req tr, .vl-req td { display: block; width: auto !important; }
  .vl-req tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .vl-req td { padding: 0; border: 0; }
  .vl-req__id { grid-column: 1; }
  .vl-req__text { grid-column: 1 / -1; grid-row: 2; }
  .vl-req td:nth-child(3) { grid-column: 2; justify-self: end; }
  .vl-req td:nth-child(4) { grid-column: 3; }
  .vl-erd { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .vl-ent { width: auto; font-size: 12.5px; }
  .vl-ent__head { flex-direction: column; gap: 0; }

  .vl-ia-bar { flex-direction: column; align-items: stretch; }
  .vl-seg { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .vl-seg__item { white-space: normal; }
  .vl-tree { padding: 16px; }
  .vl-tree__groups { grid-template-columns: 1fr; }
  .vl-node { grid-template-columns: 40px 1fr auto; }
  .vl-spec { grid-template-columns: 1fr; }
  .vl-note-box { padding: 18px 16px; }

  .vl-sds__meta th { width: 64px; padding: 7px 8px; }
  .vl-sds__meta td { padding: 7px 8px; }
  .vl-sds__meta tr { display: grid; grid-template-columns: 64px 1fr; }
  .vl-sds__meta th, .vl-sds__meta td { display: block; }
  .vl-sds__meta td { border-right: 0; }
  .vl-sds__canvas { padding: 22px 12px; }
  .vl-sds__desc { padding: 16px; }

  .vl-flow { padding: 18px 14px; }
  .vl-step { grid-template-columns: 1fr; gap: 4px; padding-left: 0; }
  .vl-step__actor { text-align: left; padding-top: 0; font-weight: 600; }
  .vl-step::after { left: 22px; top: 70px; }
  .vl-step::before { left: 18px; }
  .vl-step__main { flex-direction: column; }
  .vl-shape { width: 100%; }
  .vl-branch { padding: 8px 0 0 44px; flex-wrap: wrap; gap: 6px; }
  .vl-branch__label { width: auto; border-bottom: 0; padding: 0; margin: 0; text-align: left; }
  .vl-branch__label::after { display: none; }
  .vl-branch__label::before { content: "↳ "; }
  .vl-branch__exc, .vl-branch__alt { flex: 1 1 100%; }
  .vl-branch__yes { margin: 0; flex: 1 1 100%; }
  .vl-split { grid-template-columns: 1fr; gap: 8px; }
  .vl-seg--wide .vl-seg__item { padding: 6px 12px; }

  .vl-panel { padding: 18px 16px; }
  .vl-fp thead { display: none; }
  .vl-fp, .vl-fp tbody, .vl-fp tfoot { display: block; }
  .vl-fp tr { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .vl-fp th, .vl-fp td { display: block; padding: 0; border: 0; text-align: left; }
  .vl-fp th[scope="row"] { grid-column: 1 / -1; }
  .vl-fp td[data-label] { font-size: 13px; }
  .vl-fp td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: 11.5px; }
  .vl-fp__fp { grid-column: 1 / -1; display: flex !important; align-items: center; margin-top: 4px; }
  .vl-fp__bar { width: calc(var(--w) * 0.75); }
  .vl-fp tfoot tr { border-top: 2px solid var(--text); border-bottom: 0; }
  .vl-fp tfoot th, .vl-fp tfoot td { border-top: 0; }
  .vl-fp tfoot td[colspan] { display: none; }
  .vl-gantt__scale, .vl-gantt__row { grid-template-columns: 112px 1fr; }
  .vl-unit { display: none; }

  .vl-fab { right: 12px; bottom: 40px; }
}

@media (max-width: 420px) {
  .vl-brand__text small { display: none; }
  .vl-top__reset { padding: 0 10px; }
}

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