/* 바로회신: 외주 CS–제조 현장 실시간 회신 시연 (verdict). 인상: 작업대 옆에 붙은 호출등 */

.vd {
  --bg: #E8E9E5;
  --surface: #FFFFFF;
  --surface-2: #F3F4F1;
  --text: #17191B;
  --muted: #5C6266;
  --line: #CDD0CA;
  --line-soft: #E2E4DF;
  --primary: #B9E61C;
  --primary-hover: #A9D514;
  --primary-soft: #F1F9D2;
  --accent: #23282C;
  --accent-2: #2E3438;
  --accent-3: #3D454A;
  --dev-text: #EEF0EF;
  --dev-muted: #A3ABB0;
  --ok: #1B7F4B;
  --ok-soft: #E2F1E8;
  --warn: #A86200;
  --warn-soft: #FBEEDC;
  --danger: #CF2E25;
  --danger-soft: #FBE6E4;
  --num: "Teko", "Pretendard Variable", Pretendard, sans-serif;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.vd {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:where(.vd) :where(p, h1, h2, h3, h4, ol, ul, dl, dd, figure) { margin: 0; }
:where(.vd) :where(ol, ul) { padding: 0; list-style: none; }
:where(.vd) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.vd [hidden] { display: none !important; }
.vd :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); }
.vd a { color: var(--accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.vd-num { font-family: var(--num); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1; }
.vd-num-s { font-variant-numeric: tabular-nums; }
.vd-eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); }
.vd-h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.vd-h2 { font-size: 20px; font-weight: 800; }
.vd-h3 { font-size: 16px; font-weight: 800; }
.vd-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.vd-muted { color: var(--muted); font-size: 13px; }
.vd-empty { color: var(--muted); font-size: 14px; padding: 12px 0; }
.vd-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px dashed var(--muted); border-radius: 999px; padding: 0 8px; line-height: 20px; white-space: nowrap; }
.vd-r { text-align: right; }

/* ---------- 버튼 ---------- */
.vd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: var(--r);
  border: 1.5px solid #AEB3AB; background: var(--surface); color: var(--text) !important;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.vd-btn:hover { background: var(--surface-2); }
.vd-btn--primary { background: var(--primary); border-color: var(--accent); color: var(--accent) !important; }
.vd-btn--primary:hover { background: var(--primary-hover); }
.vd-btn--danger { border-color: var(--danger); color: var(--danger) !important; }
.vd-btn--danger:hover { background: var(--danger-soft); }
.vd-btn--sm { padding: 0 12px; font-size: 14px; }
.vd-btn--lg { width: 100%; min-height: 56px; font-size: 18px; font-weight: 800; }
.vd-btn small { font-size: 11.5px; font-weight: 700; margin-left: 2px; padding: 0 6px; border-radius: 999px; border: 1px dashed currentColor; line-height: 18px; }
.vd-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vd-icon-btn { width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; }

/* ---------- 배지 ---------- */
.vd-type { display: inline-block; flex: none; font-size: 12.5px; font-weight: 700; line-height: 22px; padding: 0 8px; border-radius: 4px; white-space: nowrap; }
.vd-type--defect { background: #F7E1DC; color: #8E2A22; }
.vd-type--ship { background: #F0E8D4; color: #6A4E12; }
.vd-badge { display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.vd-badge--warn { background: var(--warn-soft); color: #774500; border-color: #E8C690; }
.vd-badge--info { background: #E6E9EB; color: #333E46; border-color: #C9CFD3; }
.vd-badge--ok { background: var(--ok-soft); color: #125C36; border-color: #A9D5BA; }
.vd-badge--danger { background: var(--danger-soft); color: #9C1E17; border-color: #EDB0AB; }
.vd-badge--fix { background: #FFF4C9; color: #5F4A00; border: 1px dashed #BFA43A; }
.vd-priv { display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 22px; padding: 0 9px; border-radius: 999px; white-space: nowrap; }
.vd-priv--keep { border: 1px solid var(--line); color: var(--muted); }
.vd-priv--soon { background: var(--warn-soft); color: #774500; border: 1px solid #E8C690; }
.vd-priv--purged { background: var(--accent); color: #fff; }
.vd-priv--none { color: var(--muted); font-weight: 500; padding: 0; }

/* ---------- 안내 띠·머리말 ---------- */
.vd-band { height: 28px; line-height: 28px; text-align: center; padding: 0 12px; background: #D7D9D3; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.vd-head { background: var(--accent); color: #fff; position: sticky; top: 0; z-index: 30; }
.vd-head__inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vd-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff !important; text-decoration: none; min-height: 40px; }
.vd-brand__lamp { width: 16px; height: 16px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(185, 230, 28, .22), 0 0 14px rgba(185, 230, 28, .55); }
.vd-brand__name { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.vd-brand__sub { font-size: 13px; color: var(--dev-muted); font-weight: 600; }
.vd-head__tools { display: flex; align-items: center; gap: 8px; }
.vd-role { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dev-muted); }
.vd-role select { min-height: 40px; padding: 0 28px 0 10px; border-radius: var(--r); border: 1px solid #4F585D; background: var(--accent-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23C9CED1' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 8px center / 12px; color: #fff; font-size: 14px; font-weight: 700; appearance: none; -webkit-appearance: none; }
.vd-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 8px; border-radius: var(--r); border: 1px solid #4F585D; background: var(--accent-2); color: #fff; cursor: pointer; font-size: 14px; font-weight: 700; }
.vd-switch__track { width: 34px; height: 20px; border-radius: 999px; background: #59625F; position: relative; flex: none; transition: background .15s; }
.vd-switch__thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.vd-switch[aria-checked="true"] .vd-switch__track { background: var(--primary); }
.vd-switch[aria-checked="true"] .vd-switch__thumb { transform: translateX(14px); background: var(--accent); }
.vd-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--r); border: 1px solid #4F585D; background: transparent; color: #fff; cursor: pointer; font-size: 14px; font-weight: 700; }
.vd-reset:hover, .vd-switch:hover { border-color: #7C868B; }
.vd-nav { border-top: 1px solid #343B40; }
.vd-nav__inner { max-width: 1200px; margin: 0 auto; padding: 0 10px; display: flex; overflow-x: auto; scrollbar-width: none; }
.vd-nav__item { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; color: #C3C9CC !important; text-decoration: none; font-size: 15px; font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.vd-nav__item:hover { color: #fff !important; }
.vd-nav__item.is-on { color: #fff !important; border-bottom-color: var(--primary); }
.vd-nav__badge { font-size: 12px; line-height: 20px; padding: 0 7px; border-radius: 999px; background: var(--danger); color: #fff; font-weight: 800; }

.vd-main { max-width: 1200px; margin: 0 auto; padding: 16px 16px 24px; }
.vd--field .vd-main { max-width: none; padding: 0; }

/* ---------- 나란히 보기 ---------- */
.vd-flow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; }
.vd-flow__paths { display: grid; gap: 6px; min-width: 0; }
.vd-flow__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.vd-flow__k { flex: none; width: 58px; text-align: center; font-size: 12.5px; line-height: 22px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.vd-flow__row.is-after .vd-flow__k { background: var(--primary); border-color: var(--accent); color: var(--accent); }
.vd-flow__path { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vd-flow__path i { font-style: normal; color: var(--muted); }
.vd-flow__mid { padding: 0 6px; border: 1.5px dashed var(--warn); border-radius: 4px; color: var(--warn); }
.vd-flow__wire { display: inline-block; width: 64px; height: 4px; border-radius: 2px; background: var(--primary); box-shadow: 0 0 0 1px var(--accent); position: relative; }
.vd-flow__wire::after { content: ""; position: absolute; right: -2px; top: -4px; border: 6px solid transparent; border-left-color: var(--accent); border-right: 0; }
.vd-flow__note { font-size: 13px; font-weight: 500; color: var(--muted); }
.vd-flow__stats { display: flex; gap: 18px; }
.vd-flow__stats div { display: grid; gap: 2px; }
.vd-flow__stats dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.vd-flow__stats dd { font-size: 14px; font-weight: 700; display: flex; align-items: baseline; gap: 2px; }
.vd-flow__stats .vd-num { font-size: 32px; }
.vd-flow__stats small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 2px; }

.vd-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 900px) {
  .vd-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 44px; }
}
.vd-wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 6; opacity: 0; }
.vd-wire.is-on { opacity: 1; }
.vd-wire.is-fade { opacity: 0; transition: opacity .4s; }
.vd-wire path { fill: none; stroke: var(--primary); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 1.2px rgba(35, 40, 44, .95)); transition: stroke-dashoffset .42s ease-out; }
.vd-wire circle { fill: var(--primary); stroke: var(--accent); stroke-width: 2; opacity: 0; }
.vd-wire.is-drawn circle { opacity: 1; }
.vd-wire__label { position: absolute; z-index: 7; transform: translate(calc(-100% - 14px), -50%); padding: 4px 10px 2px; box-shadow: 0 0 0 2px var(--primary), 0 6px 16px rgba(23, 25, 27, .3); border-radius: var(--r); background: var(--accent); color: var(--primary); font-family: var(--num); font-size: 26px; font-weight: 600; line-height: 1.1; white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; }
.vd-wire__label.is-on { opacity: 1; }

/* 외주 CS 패널 */
.vd-cs { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.vd-cs__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.vd-cs__role { font-size: 13px; font-weight: 800; color: var(--muted); }
.vd-cs__who { font-size: 14px; }
.vd-dot { display: inline-block; vertical-align: middle; width: 8px; height: 8px; margin-top: -2px; border-radius: 50%; background: var(--ok); }
.vd-cs__inner { padding: 14px 16px 16px; display: grid; gap: 12px; }
.vd-field { display: grid; gap: 5px; min-width: 0; }
.vd-field__k { font-size: 13px; font-weight: 700; color: var(--muted); }
.vd-field__k em { font-style: normal; font-size: 11.5px; color: var(--danger); margin-left: 4px; }
.vd-field__k small { font-weight: 600; margin-left: 4px; }
.vd-field input, .vd-field select, .vd-field textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #B9BDB5; border-radius: var(--r);
  background: var(--surface); font-size: 16px; line-height: 1.4;
}
.vd-field textarea { resize: vertical; min-height: 64px; }
.vd-field--row { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; }
.vd-field--row .vd-error { grid-column: 2; }
.vd-grid2--wide { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.vd-field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); }
.vd-error { font-size: 13px; font-weight: 700; color: var(--danger); }
.vd-tabs { display: flex; border-bottom: 2px solid var(--line-soft); }
.vd-tab { flex: 1 1 auto; min-height: 46px; padding: 0 12px; border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.vd-tab.is-on { color: var(--text); border-bottom-color: var(--accent); }
.vd-form, .vd-pane { display: grid; gap: 10px; }
.vd-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vd-paste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; border: 1.5px dashed #A9AEA6; border-radius: var(--r); background: var(--surface-2); }
.vd-paste .vd-thumbs { flex: 1 1 160px; min-width: 0; padding-top: 6px; }
.vd-paste:focus-within, .vd-paste:focus { border-color: var(--accent); }
.vd-paste__row { flex: 1 1 220px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.vd-paste__hint { font-size: 14px; font-weight: 700; }
.vd-paste__hint span { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
kbd { font-family: var(--font); font-size: 12px; font-weight: 700; padding: 1px 6px; border: 1px solid #A9AEA6; border-bottom-width: 2px; border-radius: 4px; background: var(--surface); }
.vd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.vd-thumbs__empty { font-size: 13px; color: var(--muted); line-height: 54px; }
.vd-thumb { position: relative; display: block; width: 84px; height: 63px; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #ddd; cursor: zoom-in; }
.vd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vd-thumb--form { width: 72px; height: 54px; cursor: default; overflow: visible; }
.vd-thumb--form img { border-radius: 4px; }
.vd-thumb__x { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--surface); font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.vd-cs__send { display: grid; gap: 8px; margin-top: 2px; }
.vd-cs__sent { font-size: 14px; font-weight: 600; }
.vd-cs__sent-k { font-family: var(--num); font-size: 20px; font-weight: 600; }
.vd-cs__list { border-top: 1px solid var(--line); padding-top: 12px; }
.vd-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.vd-sub h3 { font-size: 16px; font-weight: 800; }
.vd-sub__n { font-size: 13px; color: var(--muted); font-weight: 700; }
.vd-sub__n .vd-num { font-size: 22px; color: var(--text); margin-right: 1px; }
.vd-sub--bar { align-items: center; margin: 18px 0 8px; flex-wrap: wrap; }
.vd-rows { display: grid; }
.vd-row { padding: 10px 0; border-top: 1px solid var(--line-soft); display: grid; gap: 4px; }
.vd-row:first-child { border-top: 0; }
.vd-row__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vd-row__title { font-size: 15px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-row__status { display: flex; flex-wrap: wrap; gap: 6px; }
.vd-row__meta, .vd-row__done { font-size: 13px; color: var(--muted); }
.vd-row__done { color: #2D3337; }
.vd-row.is-flash { background: var(--primary-soft); box-shadow: -10px 0 0 var(--primary-soft), 10px 0 0 var(--primary-soft); animation: vd-flash 1.2s ease-out; }
@keyframes vd-flash { from { background: var(--primary); } to { background: var(--primary-soft); } }
.vd-lock { position: absolute; inset: 0; z-index: 4; background: rgba(232, 233, 229, .97); display: grid; place-items: start center; padding: 64px 16px 16px; }
.vd-lock__box { max-width: 420px; background: var(--surface); border: 2px solid var(--danger); border-radius: var(--r); padding: 22px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.vd-lock__icon { color: var(--danger); }
.vd-lock__box h3 { font-size: 20px; font-weight: 800; }
.vd-lock__box p { font-size: 14px; }
.vd-lock__keep { font-weight: 700; background: var(--surface-2); border-radius: var(--r); padding: 8px 10px; }

/* ---------- 현장 기기(태블릿 패널 공통) ---------- */
.vd-device { min-width: 0; scroll-margin-top: 110px; }
.vd-tablet { position: relative; background: var(--accent); color: var(--dev-text); border: 10px solid #121517; border-radius: 18px; padding: 14px 14px 12px; box-shadow: 0 10px 30px rgba(23, 25, 27, .18); }
.vd-tablet__cam { position: absolute; top: -7px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #3A4146; }
.vd-tablet__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vd-lamp { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #3A4146; border: 2px solid #4F585D; }
.vd-lamp.is-new { background: var(--primary); border-color: #E2F79A; box-shadow: 0 0 0 5px rgba(185, 230, 28, .2), 0 0 22px rgba(185, 230, 28, .75); animation: vd-blink 1.1s steps(2, start) infinite; }
.vd-lamp.is-late { background: #FF4A3F; border-color: #FFB0AA; box-shadow: 0 0 0 5px rgba(255, 74, 63, .22), 0 0 22px rgba(255, 74, 63, .8); animation: vd-blink .6s steps(2, start) infinite; }
.vd-lamp.is-ack { background: #E39B2E; border-color: #F4CB86; }
@keyframes vd-blink { to { opacity: .35; } }
.vd-lamp__text { font-size: 18px; font-weight: 800; white-space: nowrap; }
.vd-tablet__device { margin-left: auto; min-width: 0; }
.vd-tablet__device select { max-width: 100%; min-height: 40px; padding: 0 28px 0 10px; border-radius: var(--r); border: 1px solid #4F585D; background: var(--accent-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23C9CED1' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 8px center / 12px; color: #fff; font-size: 15px; font-weight: 700; appearance: none; -webkit-appearance: none; }
.vd-tablet__name { margin-left: auto; font-size: 18px; font-weight: 800; text-align: right; }
.vd-tablet__status { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.vd-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; line-height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid #4F585D; color: #C9CED1; }
.vd-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #79838A; }
.vd-st--ok { color: #A8E6BF; border-color: #2E6A48; }
.vd-st--ok::before { background: #4BD486; }
.vd-st--off { color: #FFB8B2; border-color: #7E302A; }
.vd-st--off::before { background: #FF5B50; }
.vd-soundon { width: 100%; min-height: 64px; display: grid; gap: 2px; justify-items: center; padding: 10px 14px; margin-bottom: 12px; border: 2px solid var(--primary); border-radius: 10px; background: var(--primary); color: var(--accent); cursor: pointer; text-align: center; }
.vd-soundon b { font-size: 20px; font-weight: 800; }
.vd-soundon small { font-size: 13.5px; font-weight: 600; }
.vd-queue { display: grid; gap: 12px; }
.vd-queue .vd-empty { color: var(--dev-muted); font-size: 16px; padding: 18px 4px; text-align: center; border: 1.5px dashed #4F585D; border-radius: 10px; }

.vd-card { background: var(--accent-2); border: 2px solid #48515A; border-radius: 12px; padding: 14px; display: grid; gap: 8px; min-width: 0; }
.vd-card.is-pending { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(185, 230, 28, .18); }
.vd-card.is-late { border-color: #FF4A3F; box-shadow: 0 0 0 3px rgba(255, 74, 63, .22); }
.vd-card.is-acked { border-color: #E39B2E; }
.vd-card.is-arrived { animation: vd-arrive .6s ease-out; }
@keyframes vd-arrive { from { transform: translateY(-6px); box-shadow: 0 0 0 10px rgba(185, 230, 28, .4); } }
.vd-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vd-flag { font-size: 14px; font-weight: 800; line-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--primary); color: var(--accent); white-space: nowrap; }
.vd-flag--late { background: #FF4A3F; color: #fff; }
.vd-flag--ack { background: #4A3A1E; color: #FFD18A; border: 1px solid #E39B2E; }
.vd-clock { margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; }
.vd-clock small { font-size: 13px; color: var(--dev-muted); font-weight: 700; }
.vd-clock .vd-num { font-size: 32px; color: var(--primary); }
.vd-card.is-late .vd-clock .vd-num { color: #FF8A80; }
.vd-card__title { font-size: 22px; font-weight: 800; line-height: 1.3; color: #fff; }
.vd-card__body { font-size: 17px; color: #D7DCDD; line-height: 1.5; }
.vd-card__meta { font-size: 14px; color: var(--dev-muted); }
.vd-card__meta .vd-num { font-size: 22px; color: var(--primary); }
.vd-card__ms { font-size: 12.5px; margin-left: 4px; }
.vd-card .vd-thumb, .vd-done .vd-thumb { width: 104px; height: 78px; border-color: #4F585D; }
.vd-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.vd-dl div { min-width: 0; }
.vd-dl dt { font-size: 13px; color: var(--dev-muted); font-weight: 700; }
.vd-dl dd { font-size: 17px; font-weight: 700; color: #fff; }
.vd-dl div:first-child { grid-column: 1 / -1; }
.vd-confirm { width: 100%; min-height: 64px; border: 0; border-radius: 10px; background: var(--primary); color: var(--accent); font-size: 24px; font-weight: 800; cursor: pointer; letter-spacing: .02em; }
.vd-confirm:hover { background: var(--primary-hover); }
.vd-decide { display: grid; gap: 10px; padding-top: 4px; }
.vd-decide__k { font-size: 15px; font-weight: 800; }
.vd-memo { display: grid; gap: 4px; }
.vd-memo span { font-size: 13.5px; color: var(--dev-muted); font-weight: 700; }
.vd-memo input { width: 100%; min-width: 0; min-height: 52px; padding: 0 12px; border-radius: 8px; border: 1.5px solid #59636A; background: #1B1F22; color: #fff; font-size: 18px; }
.vd-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vd-result { min-height: 64px; padding: 6px 8px; border-radius: 10px; font-size: 17px; font-weight: 800; line-height: 1.25; cursor: pointer; color: #fff; background: transparent; border: 2.5px solid #E6E9E8; }
.vd-result--fill { background: var(--primary); border-color: var(--primary); color: var(--accent); }
.vd-result--fill:hover { background: var(--primary-hover); }
.vd-result--line:hover, .vd-result--dash:hover { background: #3A4248; }
.vd-result--dash { border-style: dashed; }
.vd-result.is-sel { outline: 3px solid #fff; outline-offset: 3px; }
.vd-result.is-sel::before { content: "✓ "; }
.vd-decide__note { font-size: 13px; color: var(--dev-muted); }
.vd-decide__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.vd-decide--fix { background: #262B2F; border: 1.5px solid #4F585D; border-radius: 10px; padding: 12px; }
.vd-decide--fix .vd-btn:not(.vd-btn--primary) { background: transparent; color: #fff !important; border-color: #8A9398; }

.vd-recent { margin-top: 14px; }
.vd-recent__h { font-size: 14px; font-weight: 800; color: var(--dev-muted); margin-bottom: 2px; }
.vd-dones { display: grid; }
.vd-done { padding: 10px 0; border-top: 1px solid #3A4248; display: grid; gap: 5px; min-width: 0; }
.vd-done:first-child { border-top: 0; }
.vd-done .vd-empty, .vd-dones > .vd-empty { color: var(--dev-muted); }
.vd-done__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vd-done__title { font-size: 17px; font-weight: 800; color: #fff; min-width: 0; }
.vd-done__result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vd-res { font-size: 14px; font-weight: 800; line-height: 26px; padding: 0 10px; border-radius: 6px; border: 2px solid #E6E9E8; color: #fff; white-space: nowrap; }
.vd-res--fill { background: var(--primary); border-color: var(--primary); color: var(--accent); }
.vd-res--dash { border-style: dashed; }
.vd-done__memo { font-size: 15px; color: #D7DCDD; }
.vd-done__meta { font-size: 14px; color: var(--dev-muted); }
.vd-fixlog { font-size: 14px; color: #FFD18A; font-weight: 700; }
.vd-done__fix { justify-self: start; background: transparent; color: #fff !important; border-color: #8A9398; }
.vd-done__fix:hover { background: #3A4248; }
.vd-done .vd-dl dd { font-size: 15px; }
.vd-tablet__foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid #3A4248; display: grid; gap: 4px; }
.vd-tablet__foot a { color: var(--primary); font-size: 15px; font-weight: 800; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.vd-tablet__foot p { font-size: 13px; color: var(--dev-muted); }
.vd-revoked { position: absolute; inset: 56px 0 0; z-index: 3; background: rgba(21, 24, 26, .95); border-radius: 0 0 8px 8px; display: grid; place-items: start center; padding: 40px 16px; }
.vd-revoked__box { display: grid; gap: 8px; justify-items: center; text-align: center; max-width: 420px; }
.vd-revoked__icon { font-size: 30px; }
.vd-revoked__box b { font-size: 22px; color: #fff; }
.vd-revoked__box span { font-size: 16px; color: #D7DCDD; }
.vd-revoked__box .vd-btn { margin-top: 6px; white-space: normal; text-align: center; }

/* 좁은 화면: 현장에 도착 띠 */
.vd-arrive { position: fixed; left: 12px; right: 12px; bottom: 70px; z-index: 40; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--primary); background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(23, 25, 27, .3); }
.vd-arrive .vd-num { font-size: 24px; color: var(--primary); }
.vd-arrive__lamp { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px rgba(185, 230, 28, .8); }
@media (min-width: 900px) { .vd-arrive { display: none !important; } }

/* ---------- 현장 기기 전체 화면 ---------- */
.vd-fieldpage { background: var(--accent); color: var(--dev-text); min-height: calc(100vh - 118px); }
.vd-soundbar { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; border: 0; background: var(--danger); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; text-align: center; }
.vd-soundbar b { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.vd-soundbar__icon { display: inline-grid; flex: none; }
.vd-fieldpage__inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 16px 20px 28px; }
.vd-fieldpage__addr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 700; color: #D7DCDD; margin-bottom: 14px; }
.vd-fieldpage__addr code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; padding: 2px 8px; border-radius: 4px; background: var(--accent-2); border: 1px solid #4F585D; color: var(--primary); }
.vd-fieldpage .vd-lamp { width: 36px; height: 36px; }
.vd-fieldpage .vd-lamp__text { font-size: 22px; }
.vd-fieldpage .vd-tablet__name { font-size: 22px; }
.vd-ftabs { display: flex; gap: 6px; border-bottom: 2px solid #3A4248; margin-bottom: 14px; }
.vd-ftab { flex: 0 1 220px; min-height: 58px; padding: 0 16px; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; background: none; color: var(--dev-muted); font-size: 20px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.vd-ftab .vd-num { font-size: 28px; }
.vd-ftab.is-on { color: #fff; border-bottom-color: var(--primary); background: var(--accent-2); border-radius: 8px 8px 0 0; }
.vd-fieldpage .vd-queue { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.vd-fieldpage .vd-card__title { font-size: 26px; }
.vd-fieldpage .vd-card__body { font-size: 18px; }
.vd-fieldpage .vd-card .vd-thumb { width: 120px; height: 90px; }
.vd-fieldpage .vd-revoked { inset: 0; border-radius: 0; padding-top: 80px; }
.vd-fieldpage.is-revoked .vd-fieldpage__inner { min-height: 60vh; }
.vd-fieldpage__foot { margin-top: 18px; font-size: 14px; color: var(--dev-muted); }
.vd-dones--history .vd-done { padding: 14px 0; }
@media (min-width: 1000px) {
  .vd-fieldpage [data-fpane="queue"] { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .vd-fieldpage [data-fpane="queue"] .vd-queue { grid-template-columns: minmax(0, 1fr); }
  .vd-fieldpage .vd-recent { margin-top: 0; background: #1E2326; border: 1px solid #3A4248; border-radius: 12px; padding: 12px 16px; }
}
@media (min-width: 900px) {
  .vd-dones--history { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .vd-dones--history .vd-done:nth-child(2) { border-top: 0; }
}

/* ---------- 본사 관리자 ---------- */
.vd-alert { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; margin-bottom: 14px; border: 2px solid var(--danger); border-radius: var(--r); background: var(--danger-soft); color: #86160F; font-size: 16px; font-weight: 800; text-align: left; cursor: pointer; }
.vd-alert__lamp { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--danger); box-shadow: 0 0 10px rgba(207, 46, 37, .6); animation: vd-blink .8s steps(2, start) infinite; }
.vd-alert__text { flex: 1; min-width: 0; }
.vd-alert__go { flex: none; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.vd-admin__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.vd-ref { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.vd-ref__k { font-size: 13px; font-weight: 700; color: var(--muted); }
.vd-ref .vd-num { font-size: 30px; }
.vd-ref__tag { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.vd-ref__tag.is-shift { color: #774500; background: var(--warn-soft); border: 1px solid #E8C690; padding: 0 8px; border-radius: 999px; }
.vd-tabs--admin { margin-bottom: 14px; }
.vd-tabs--admin .vd-tab { flex: 0 0 auto; padding: 0 16px; }
.vd-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.vd-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.vd-filter { display: grid; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.vd-filter select { min-height: 44px; padding: 0 30px 0 10px; border: 1px solid #B9BDB5; border-radius: var(--r); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235C6266' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 9px center / 12px; color: var(--text); font-size: 15px; font-weight: 600; appearance: none; -webkit-appearance: none; max-width: 100%; }
.vd-toolbar__acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vd-toolbar__n { font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.vd-toolbar__n .vd-num { font-size: 26px; color: var(--text); margin-right: 2px; }
.vd-btn--shift { border-style: dashed; }
.vd-btn--shift.is-on { background: var(--warn-soft); border-color: var(--warn); border-style: solid; color: #774500 !important; }

.vd-tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.vd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vd-table th { text-align: left; font-size: 12.5px; font-weight: 800; color: var(--muted); background: var(--surface-2); padding: 9px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.vd-table td { padding: 10px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.vd-table tbody tr:first-child td { border-top: 0; }
.vd-table td small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.vd-table td .vd-type { margin-right: 6px; }
.vd-table td .vd-badge + .vd-badge { margin-left: 4px; }
.vd-cell-title { display: block; margin-top: 3px; font-weight: 700; }
.vd-table--hist { font-size: 13.5px; }
.vd-table--hist td:nth-child(1), .vd-table--hist td:nth-child(3), .vd-table--hist td:nth-child(7), .vd-table--hist td:nth-child(8), .vd-table--hist td:nth-child(9) { white-space: nowrap; }
.vd-table--hist td:nth-child(2) { min-width: 170px; }
.vd-table--hist td:nth-child(5) .vd-badge { white-space: normal; line-height: 1.4; padding-top: 2px; padding-bottom: 2px; }
.vd-gone { display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 22px; padding: 0 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.vd-table tr.is-late td { background: var(--danger-soft); }
.vd-table tr.is-late td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
.vd-table tr.is-flash td { animation: vd-rowflash 2.4s ease-out; }
@keyframes vd-rowflash { 0%, 40% { background: var(--primary); } }
.vd-table tr.is-off td { color: var(--muted); }
.vd-table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.vd-table code.is-dead { text-decoration: line-through; }
.vd-table tfoot td { border-top: 2px solid var(--accent); font-weight: 800; }
.vd-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.vd-keep { margin-top: 10px; font-size: 14px; font-weight: 700; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); }
.vd-purge { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; }
.vd-purge__rule { font-size: 14px; color: #2D3337; }
.vd-purge__log { display: grid; gap: 4px; font-size: 14px; }
.vd-purge__log li { padding-left: 14px; position: relative; }
.vd-purge__log li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.vd-purge__log small { color: var(--muted); margin-left: 4px; }
.vd-purge__total { font-size: 14px; font-weight: 800; }
.vd-purge__total .vd-num { font-size: 26px; }
.vd-newdev { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 320px; justify-content: flex-end; }
.vd-newdev input { flex: 1 1 200px; min-width: 0; max-width: 320px; min-height: 44px; padding: 0 12px; border: 1px solid #B9BDB5; border-radius: var(--r); font-size: 15px; background: var(--surface); }
.vd-settings { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; max-width: 760px; }
.vd-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vd-unit { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.vd-unit input { max-width: 120px; }
.vd-checks { display: grid; gap: 8px; }
.vd-checkbox { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 15px; font-weight: 600; }
.vd-checkbox input { width: 20px; height: 20px; accent-color: var(--accent); }
.vd-checkbox small { font-size: 12.5px; color: var(--muted); }
.vd-checkbox.is-off { color: var(--muted); }
.vd-settings .vd-btn { justify-self: start; }
.vd-denied { max-width: 560px; margin: 40px auto; background: var(--surface); border: 2px solid var(--danger); border-radius: var(--r); padding: 28px 22px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.vd-denied__icon { color: var(--danger); }

/* ---------- 검수표 ---------- */
.vd-check__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.vd-lead { font-size: 15px; color: #2D3337; margin-top: 4px; max-width: 680px; }
.vd-check__sum { display: flex; gap: 10px; }
.vd-check__sum div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 14px; min-width: 128px; }
.vd-check__sum dt { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.vd-check__sum dd { display: flex; align-items: baseline; gap: 4px; }
.vd-check__sum .vd-num { font-size: 40px; }
.vd-check__sum small { font-size: 13px; color: var(--muted); font-weight: 700; }
.vd-table--check td:nth-child(2) { font-weight: 700; min-width: 260px; }
.vd-table--check td:nth-child(3) { color: #2D3337; min-width: 200px; }
.vd-table--check td:nth-child(4) a { font-weight: 700; white-space: nowrap; }
.vd-table--check td:nth-child(5) { min-width: 170px; }
.vd-check__no .vd-num { font-size: 22px; }
.vd-table--check tr.is-done td { background: #F5FAE4; }
.vd-cstate { display: inline-block; font-size: 12.5px; font-weight: 800; line-height: 22px; padding: 0 9px; border-radius: 999px; white-space: nowrap; }
.vd-cstate--done { background: var(--primary); color: var(--accent); border: 1.5px solid var(--accent); }
.vd-cstate--example { background: var(--surface); color: var(--text); border: 1.5px solid var(--accent); }
.vd-cstate--todo { color: var(--muted); border: 1.5px dashed #A9AEA6; }
.vd-check__line { margin: 12px 0 22px; font-size: 14px; font-weight: 600; color: #2D3337; }
.vd-cost { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.vd-cost__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.vd-cost__total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vd-cost__total .vd-num { font-size: 40px; }
.vd-cost__total span { font-size: 14px; font-weight: 700; color: var(--muted); }
.vd-cost__grid { display: grid; gap: 18px; }
@media (min-width: 1000px) { .vd-cost__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.vd-cost .vd-tablewrap { background: transparent; border: 0; overflow: visible; }
.vd-table--cost td { white-space: normal; }
.vd-table--cost td.vd-r { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vd-cost .vd-h3 { margin-top: 14px; margin-bottom: 6px; }
.vd-opts { display: grid; gap: 8px; font-size: 14px; }
.vd-opts li { border: 1.5px dashed #A9AEA6; border-radius: var(--r); padding: 8px 10px; }
.vd-opts small { display: block; color: var(--muted); font-size: 12.5px; }
.vd-opts .vd-num-s { margin-left: 6px; font-weight: 700; }
.vd-gantt { display: grid; gap: 10px; align-content: start; }
.vd-gantt__scale { position: relative; height: 18px; margin-left: 132px; font-size: 12px; color: var(--muted); font-weight: 700; }
.vd-gantt__scale span { position: absolute; left: var(--at); transform: translateX(-50%); white-space: nowrap; }
.vd-gantt__rows { display: grid; gap: 10px; }
.vd-gantt__row { display: grid; grid-template-columns: 124px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-items: center; }
.vd-gantt__k { font-size: 14px; font-weight: 800; }
.vd-gantt__k .vd-num { font-size: 20px; margin-right: 2px; }
.vd-gantt__k small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.vd-gantt__track { position: relative; height: 24px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 calc(4% - 1px), var(--line-soft) calc(4% - 1px) 4%); }
.vd-gantt__bar { position: absolute; top: 0; bottom: 0; left: var(--from); width: var(--len); background: var(--primary); border: 1.5px solid var(--accent); border-radius: 4px; }
.vd-gantt__out { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.vd-gantt__marks { display: grid; gap: 4px; font-size: 14px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }
.vd-gantt__marks .vd-num { font-size: 22px; margin-right: 2px; }

/* ---------- 공고 대응표·사진 확대·알림 ---------- */
.vd-fab { position: fixed; right: 16px; bottom: 16px; z-index: 35; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--primary); background: var(--accent); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 22px rgba(23, 25, 27, .28); }
.vd-dialog { width: min(720px, calc(100% - 24px)); max-height: calc(100vh - 48px); border: 0; border-radius: 12px; padding: 0; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(23, 25, 27, .35); }
.vd-dialog::backdrop { background: rgba(23, 25, 27, .55); }
.vd-dialog__body { padding: 20px; }
.vd-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.vd-dialog__title { font-size: 22px; font-weight: 800; }
.vd-map { display: grid; }
.vd-map li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.vd-map__need { font-weight: 700; }
.vd-map__show { color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .vd-map li { grid-template-columns: minmax(0, 1fr); } }
.vd-dialog__foot { margin-top: 12px; font-size: 13px; color: var(--muted); }

.vd-zoom { width: min(980px, calc(100% - 16px)); height: min(86vh, 760px); max-width: none; max-height: none; border: 0; border-radius: 12px; padding: 0; background: #111416; color: #fff; overflow: hidden; }
.vd-zoom[open] { display: flex; flex-direction: column; }
.vd-zoom::backdrop { background: rgba(10, 12, 13, .8); }
.vd-zoom__stage { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.vd-zoom__stage.is-zoomed { cursor: grab; }
.vd-zoom__img { max-width: 100%; max-height: 100%; transform-origin: center; transition: transform .12s ease-out; -webkit-user-drag: none; }
.vd-zoom__bar { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px auto; align-items: center; justify-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #2A2F33; }
@media (max-width: 640px) {
  .vd-zoom__bar { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .vd-zoom__close { grid-column: 1 / -1; width: 100%; }
}
.vd-zoom__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #59636A; background: #22272A; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.vd-zoom__count { display: grid; justify-items: center; text-align: center; min-width: 0; }
.vd-zoom__count .vd-num { font-size: 26px; }
.vd-zoom__hint { font-size: 12px; color: #A3ABB0; }
.vd-zoom__close { min-height: 44px; padding: 0 16px; border-radius: var(--r); border: 1.5px solid var(--primary); background: transparent; color: var(--primary); font-weight: 800; cursor: pointer; }

.vd-toast { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 60; max-width: min(560px, calc(100% - 32px)); padding: 12px 16px; border-radius: var(--r); background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 10px 28px rgba(23, 25, 27, .3); border-left: 5px solid #79838A; }
.vd-toast[data-tone="ok"] { border-left-color: var(--primary); }
.vd-toast[data-tone="warn"] { border-left-color: #F2A33A; }
.demo-notice { max-width: 1200px; margin: 0 auto; padding: 10px 16px 84px; font-size: 12px; color: var(--muted); }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 760px) {
  .vd-table thead { display: none; }
  .vd-tablewrap { background: transparent; border: 0; overflow: visible; }
  .vd-table, .vd-table tbody, .vd-table tfoot { display: block; }
  .vd-table tr { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 12px; margin-bottom: 10px; }
  .vd-table td { display: block; position: relative; min-height: 34px; padding: 7px 0 7px 104px; border-top: 1px solid var(--line-soft); white-space: normal !important; min-width: 0 !important; }
  .vd-table td:first-child { border-top: 0; }
  .vd-table td::before { content: attr(data-k); position: absolute; left: 0; top: 8px; width: 96px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .vd-table td[data-k=""]::before { content: none; }
  .vd-table td[data-k=""] { padding-left: 0; }
  .vd-table td.vd-r { text-align: left; }
  .vd-table tr.is-late { border: 2px solid var(--danger); }
  .vd-table tr.is-late td { background: transparent; }
  .vd-table tr.is-late td:first-child { box-shadow: none; }
  .vd-table tr.is-late { background: var(--danger-soft); }
  .vd-table tfoot tr { border: 2px solid var(--accent); }
  .vd-table tfoot td { border-top: 1px solid var(--line-soft); }
  .vd-table--check td:nth-child(n) { min-width: 0; }
  .vd-table--check td:nth-child(4) a { white-space: normal; }
  .vd-table--check tr.is-done { background: #F5FAE4; }
  .vd-table--check tr.is-done td { background: transparent; }
  .vd-cost .vd-table tr { border-color: var(--line); }
  .vd-grid3 { grid-template-columns: minmax(0, 1fr); }
  .vd-gantt__scale { margin-left: 0; }
  .vd-gantt__row { grid-template-columns: minmax(0, 1fr); }
  .vd-gantt__out { grid-column: 1; }
}
@media (max-width: 640px) {
  .vd-band__long { display: none; }
  .vd-head__inner { padding: 8px 12px 4px; gap: 6px; }
  .vd-brand__sub { display: none; }
  .vd-role__k { display: none; }
  .vd-reset__label { display: none; }
  .vd-reset { padding: 0 10px; }
  .vd-role select { font-size: 13px; padding-right: 24px; background-position: right 6px center; }
  .vd-switch { font-size: 13px; padding: 0 8px 0 6px; }
  .vd-nav__inner { padding: 0 4px; }
  .vd-nav__item { padding: 0 8px; font-size: 14px; }
  .vd-main { padding: 12px 12px 20px; }
  .vd-flow { padding: 10px 12px; }
  .vd-flow__note { display: none; }
  .vd-flow__stats { width: 100%; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 8px; }
  .vd-cs__inner { padding: 12px; }
  .vd-tablet { border-width: 7px; padding: 12px 10px 10px; }
  .vd-tablet__top { flex-wrap: wrap; }
  .vd-tablet__device { margin-left: 0; flex: 1 1 100%; }
  .vd-tablet__device select { width: 100%; }
  .vd-results { grid-template-columns: minmax(0, 1fr); }
  .vd-result { min-height: 58px; }
  .vd-card__title { font-size: 20px; }
  .vd-fieldpage__inner { padding: 12px 12px 24px; }
  .vd-fieldpage .vd-card__title { font-size: 22px; }
  .vd-soundbar { font-size: 18px; }
  .vd-ftab { flex: 1 1 0; font-size: 18px; }
  .vd-h1 { font-size: 22px; }
  .vd-alert { font-size: 15px; flex-wrap: wrap; }
  .vd-alert__go { width: 100%; padding-left: 26px; }
  .vd-toolbar__acts { width: 100%; }
  .vd-toolbar__acts .vd-btn { flex: 1 1 auto; }
  .vd-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .vd-filter select { width: 100%; }
  .vd-newdev { justify-content: stretch; flex-basis: 100%; }
  .vd-newdev input { max-width: none; }
  .vd-check__sum { width: 100%; }
  .vd-check__sum div { flex: 1; min-width: 0; }
  .vd-fab { right: 12px; bottom: 12px; }
  .vd-zoom { height: min(80vh, 640px); }
}

@media (prefers-reduced-motion: reduce) {
  .vd-lamp.is-new, .vd-lamp.is-late, .vd-alert__lamp { animation: none; }
  .vd-card.is-arrived, .vd-row.is-flash, .vd-table tr.is-flash td { animation: none; }
  .vd-wire path { transition: none; }
  .vd-zoom__img { transition: none; }
}
