/* IMS — 판매점 암행점검 통합운영시스템
   토큰(문서 05): ink #1A2233 · navy #1F3A68 · teal #0F8A7E · amber #B7791F · red #C53030 · bg #F5F7FA · radius 12 · tap 48
   글꼴: Pretendard(SIL OFL 1.1) KS X 1001 하위 집합 자체 호스팅 — CSP font-src 'self' */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("../fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap; src: url("../fonts/Pretendard-Medium.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("../fonts/Pretendard-SemiBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("../fonts/Pretendard-Bold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 800; font-display: swap; src: url("../fonts/Pretendard-ExtraBold.subset.woff2") format("woff2"); }

:root {
  --ink: #1A2233; --ink-2: #485267; --ink-3: #657087; --line: #E1E6EE; --line-2: #EDF0F5;
  --bg: #F4F6F9; --card: #FFFFFF; --wash: #F8FAFC;
  --navy: #1F3A68; --navy-2: #2C5294; --navy-bg: #E9EFF9; --navy-mid: #9DB3D9;
  --teal: #0F8A7E; --teal-2: #0B6F65; --teal-bg: #E3F4F1; --teal-mid: #7CC6BA; --teal-light: #CFEAE5;
  --amber: #B7791F; --amber-2: #8A5A12; --amber-bg: #FBF1E0;
  --red: #C53030; --red-2: #9B2424; --red-bg: #FCE8E8;
  --gray-bg: #EEF1F5;
  --r: 12px; --r-sm: 8px; --tap: 48px;
  --sh-1: 0 1px 2px rgba(20, 30, 55, .06), 0 1px 1px rgba(20, 30, 55, .03);
  --sh-2: 0 6px 16px -4px rgba(20, 30, 55, .12), 0 2px 4px rgba(20, 30, 55, .05);
  --sh-pop: 0 28px 56px -16px rgba(14, 22, 40, .38), 0 10px 20px -10px rgba(14, 22, 40, .22);
  --sh: var(--sh-1);
  --ring: 0 0 0 3px rgba(44, 82, 148, .22);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --d1: 120ms; --d2: 200ms; --d3: 360ms;
  --font: "Pretendard", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", system-ui, sans-serif;
  --mono: "D2Coding", Consolas, "SFMono-Regular", monospace;
}

/* ── 기본·브라우저 표면 ─────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scrollbar-color: #C3CBD8 transparent; scrollbar-width: thin; -webkit-text-size-adjust: 100%; }
body { font: 14px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; word-break: keep-all; font-feature-settings: "ss06"; }
::selection { background: rgba(15, 138, 126, .2); color: inherit; }
a { color: var(--navy-2); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 23px; font-weight: 800; } h2 { font-size: 18px; font-weight: 700; } h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 .6em; }
code { font-family: var(--mono); font-size: .92em; background: var(--gray-bg); padding: 1px 5px; border-radius: 4px; }
code.big { font-size: 20px; padding: 4px 10px; letter-spacing: .08em; }
time, .num, td.r, .tbl td { font-variant-numeric: tabular-nums; }
[hidden], .hidden { display: none !important; }
.muted { color: var(--ink-3); } .sm { font-size: 12px; } .center { text-align: center; } .nowrap { white-space: nowrap; } .wrap { word-break: break-all; }
.mt { margin-top: 18px; } .mb { margin-bottom: 12px; }
.txt-red { color: var(--red); } .txt-amber { color: var(--amber); } .txt-teal { color: var(--teal); }
.r { text-align: right; }
.i-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 아이콘 */
.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.i-xs { width: 14px; height: 14px; vertical-align: -2px; }

/* ── 버튼·폼 ─────────────────────────────── */
.btn, .btn-ghost, .btn-red, .btn-amber { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; font: 600 14px var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background var(--d2), border-color var(--d2), box-shadow var(--d2), color var(--d2), transform var(--d1) var(--ease); }
.btn:active:not([disabled]), .btn-ghost:active:not([disabled]), .btn-red:active:not([disabled]), .btn-amber:active:not([disabled]) { transform: translateY(1px) scale(.985); }
.btn:focus-visible, .btn-ghost:focus-visible, .btn-red:focus-visible, .btn-amber:focus-visible { outline: none; box-shadow: var(--ring); }
.btn { background: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(20, 30, 55, .18), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn:hover { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #B9C2D0; background: var(--wash); }
.btn-red, .btn.btn-red { background: var(--red); color: #fff; } .btn-red:hover, .btn.btn-red:hover { background: var(--red-2); }
.btn-amber, .btn.btn-amber { background: var(--amber); color: #fff; } .btn-amber:hover { background: var(--amber-2); }
.btn[disabled], .btn-ghost[disabled], .btn-red[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn .i, .btn-ghost .i, .btn-red .i { width: 16px; height: 16px; }
.sm.btn, .sm.btn-ghost, .sm.btn-red, .btn.sm, .btn-ghost.sm, .btn-red.sm { min-height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; border-radius: var(--r); }
.link { background: none; border: 0; padding: 0; color: var(--navy-2); cursor: pointer; font: inherit; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.kbd { font: 11px var(--mono); background: rgba(255, 255, 255, .18); padding: 1px 5px; border-radius: 4px; }
input, select, textarea { font: 14px var(--font); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; background: #fff; width: 100%; caret-color: var(--navy-2); transition: border-color var(--d2), box-shadow var(--d2); }
input::placeholder, textarea::placeholder { color: #8A93A6; }
input:hover, select:hover, textarea:hover { border-color: #C9D1DD; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: var(--ring); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; padding: 0; accent-color: var(--navy); flex: none; box-shadow: none; }
label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-2); }
label > input, label > select, label > textarea { margin-top: 5px; font-weight: 400; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.check, .radio { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); cursor: pointer; }
.check input, .radio input { margin-top: 2px; }
.inline { display: inline; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { min-width: 140px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-weight: 700; font-size: 13px; padding: 0 4px; }

/* ── 배지·칩 ─────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--gray-bg); color: var(--ink-2); white-space: nowrap; vertical-align: 1px; line-height: 1.5; }
.tone-navy.badge { background: var(--navy-bg); color: var(--navy); }
.tone-teal.badge { background: var(--teal-bg); color: var(--teal-2); }
.tone-amber.badge { background: var(--amber-bg); color: var(--amber-2); }
.tone-red.badge { background: var(--red-bg); color: var(--red-2); }
.sev-critical.badge { background: var(--red); color: #fff; } .sev-high.badge { background: var(--red-bg); color: var(--red); } .sev-medium.badge { background: var(--amber-bg); color: var(--amber-2); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--gray-bg); color: var(--ink-2); white-space: nowrap; transition: background var(--d2), color var(--d2); }
.chip-amber { background: var(--amber-bg); color: var(--amber-2); } .chip-navy { background: var(--navy-bg); color: var(--navy); } .chip-teal { background: var(--teal-bg); color: var(--teal-2); } .chip-red { background: var(--red-bg); color: var(--red); }
.chip-lock { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9); }
.chip-demo { background: rgba(251, 241, 224, .14); color: #F4D49B; box-shadow: inset 0 0 0 1px rgba(244, 212, 155, .3); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: #F4C26B; }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
a.chip:hover { text-decoration: none; background: var(--navy-bg); color: var(--navy); }

/* ── 알림(플래시) ─────────────────────────────── */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; border: 1px solid; animation: drop-in var(--d3) var(--ease) both; }
.flash .i { margin-top: 1px; }
.flash-ok { background: var(--teal-bg); border-color: #BFE3DD; color: #0B6158; }
.flash-error { background: var(--red-bg); border-color: #F3C4C4; color: var(--red-2); }
.flash-warn { background: var(--amber-bg); border-color: #EBD3A8; color: #84560F; }
.flash.issued { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ── PC 레이아웃 ─────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 30; height: 58px; display: flex; align-items: center; gap: 18px; padding: 0 18px; background: #141B2B; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 4px 14px -6px rgba(10, 16, 30, .5); }
.topbar-agency { background: #16305A; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; }
.brand-mark { display: inline-flex; align-items: center; gap: 6px; font: 800 15px var(--font); letter-spacing: .05em; color: #fff; }
.brand-mark .bm-ic { width: 26px; height: 26px; color: #4FD1C1; vertical-align: 0; }
.brand-mark.bm-xl { font-size: 24px; gap: 10px; margin-bottom: 26px; }
.brand-mark.bm-xl .bm-ic { width: 40px; height: 40px; }
.brand-sub { font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .86); padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .16); }
.cycle-pick select { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .16); padding: 6px 10px; width: auto; font-weight: 600; }
.cycle-pick select:hover { border-color: rgba(255, 255, 255, .32); }
.cycle-pick select option { color: var(--ink); }
.crumb { font-weight: 600; color: rgba(255, 255, 255, .6); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.who { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.who-t { display: flex; flex-direction: column; line-height: 1.25; }
.who .muted { color: rgba(255, 255, 255, .58); font-size: 11.5px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: linear-gradient(140deg, #2C5294, #0F8A7E); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
.topbar .btn-ghost { background: transparent; color: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .2); }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); }
.topnav { display: flex; gap: 2px; }
.topnav a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .74); padding: 8px 12px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: background var(--d2), color var(--d2); }
.topnav a .i { width: 16px; height: 16px; opacity: .8; }
.topnav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.topnav a.on { background: rgba(255, 255, 255, .14); color: #fff; }
.shell { display: flex; min-height: calc(100vh - 58px); }
.side { width: 216px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 1px; position: sticky; top: 58px; height: calc(100vh - 58px); overflow-y: auto; }
.side-g { font-size: 11.5px; font-weight: 600; color: #8891A4; padding: 14px 12px 5px; letter-spacing: .02em; }
.side-g:first-child { padding-top: 6px; }
.side a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 600; text-decoration: none; transition: background var(--d2), color var(--d2); }
.side a .i { color: #8A93A6; transition: color var(--d2); }
.side a:hover { background: var(--bg); color: var(--ink); }
.side a:hover .i { color: var(--ink-2); }
.side a.on { background: var(--navy-bg); color: var(--navy); }
.side a.on .i { color: var(--navy); }
.side-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 1px; }
.side-foot a { font-size: 12.5px; font-weight: 500; padding: 7px 12px; }
.side-foot a .i { width: 16px; height: 16px; }
.side-foot a .i-xs { width: 12px; height: 12px; margin-left: auto; opacity: .7; }
.main { flex: 1; min-width: 0; padding: 24px 28px 64px; }
.main-agency { max-width: 1560px; margin: 0 auto; width: 100%; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-h h1 { margin-bottom: 4px; }
.page-h p { max-width: 860px; margin: 0; }
.page-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.upd { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }
.upd b { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ── 카드·그리드 ─────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-1); margin-bottom: 16px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-h h3 > .i { color: var(--ink-3); width: 17px; height: 17px; }
.card-warn { border-color: #EBD3A8; background: #FFFCF6; }
.card-red { border-color: #F3C4C4; background: #FFFAFA; }
.card-focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px var(--navy-bg), var(--sh-1); }
.empty-card { background: #fff; border: 1px dashed #CDD4DF; border-radius: var(--r); padding: 44px; text-align: center; color: var(--ink-3); }
.col-stack { display: flex; flex-direction: column; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.grid-dash { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1.25fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.more .i { transition: transform var(--d2) var(--ease); }
.more:hover .i { transform: translateX(3px); }
.card-h .more { margin-top: 0; }
.empty { color: var(--ink-3); text-align: center; padding: 18px; }

/* ── 표 ─────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--wash); }
.tbl th:first-child { border-top-left-radius: 8px; } .tbl th:last-child { border-top-right-radius: 8px; }
.tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; transition: background var(--d2); }
.tbl tbody tr:hover td { background: #FAFBFD; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-sm td { padding: 7px 8px; font-size: 13px; } .tbl-sm th { padding: 6px 8px; }
.tbl tr.dim td { color: var(--ink-3); }
.tbl tr.row-bad td { background: #FFF6F6; }
.tbl tr.row-warn td { background: #FFFBF2; }
.tbl tr.row-focus td { background: #FFF7F7; }
.tbl tr.row-today td { background: var(--navy-bg); }
.tbl-wrap { overflow-x: auto; }
.tbl .vt, .vt { font-size: 15px; letter-spacing: .04em; color: var(--navy); }
.tbl .hash code { font-size: 11px; color: var(--ink-3); }
.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.filters input, .filters select { width: auto; min-width: 150px; padding: 7px 10px; }

/* ── 측정 막대(공통) ─────────────────────────────── */
.meter { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--navy-2); border-radius: 2px; transition: width .9s var(--ease); }
.meter-none { background: transparent; }
.stack { display: flex; height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.stack i { display: block; height: 100%; width: 0; transition: width .9s var(--ease); }
.stack i + i { box-shadow: -1px 0 0 #fff; }
.s-rev { background: var(--teal); } .s-done { background: var(--teal-mid); } .s-asg { background: var(--navy-mid); }

/* ── 상황판: 지표 흐름 ─────────────────────────────── */
.kpis { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr); gap: 12px; margin-bottom: 16px; }
.kpi-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.kpi-risk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { position: relative; padding: 14px 16px 12px; min-width: 0; }
.kpi-flow .kpi + .kpi { border-left: 1px solid var(--line-2); }
.kpi-flow .kpi + .kpi::before { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.kpi-flow .kpi:first-child { border-radius: var(--r) 0 0 var(--r); }
.kpi-flow .kpi:last-child { border-radius: 0 var(--r) var(--r) 0; }
.kpi-risk .kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.kpi-l { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.kpi-l .i { width: 15px; height: 15px; color: #8A93A6; }
.kpi-v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 4px 0 7px; font-variant-numeric: tabular-nums; }
.kpi .meter, .kpi .stack { margin-bottom: 7px; }
.kpi[data-k=done] .meter i, .kpi[data-k=reviewed] .meter i { background: var(--teal); }
.kpi-s { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-red .kpi-l .i, .kpi-red .kpi-v { color: var(--red); }
.kpi-amber .kpi-l .i, .kpi-amber .kpi-v { color: var(--amber); }
.kpi-red.is-hot { background: #FFF8F8; border-color: #F3CFCF; }
.kpi-amber.is-hot { background: #FFFBF4; border-color: #EEDCB8; }
.kpi.flash-up { animation: kpi-up 1.4s var(--ease); }
@keyframes kpi-up { 0% { background-color: var(--teal-bg); } 100% { background-color: transparent; } }
.live-pip { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--teal); animation: pulse 1.8s infinite; }

/* ── 상황판: 타일맵 ─────────────────────────────── */
.tilemap { width: 100%; height: auto; display: block; }
.tile { cursor: default; outline: none; }
.tile .t-bg { fill: #EEF1F5; stroke: #fff; stroke-width: 2; transition: fill .5s var(--ease), stroke var(--d2); }
.tile.lv1 .t-bg { fill: var(--teal-light); } .tile.lv2 .t-bg { fill: var(--teal-mid); } .tile.lv3 .t-bg { fill: var(--teal); }
.tile:hover .t-bg, .tile:focus-visible .t-bg { stroke: var(--navy); stroke-width: 2.5; }
.tile text { font: 700 13px var(--font); fill: var(--ink); pointer-events: none; }
.tile .t-num { font: 600 12px var(--font); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.tile.lv0 .t-name { fill: var(--ink-3); }
.tile.lv3 text { fill: #fff; }
.tile .t-track { fill: rgba(26, 34, 51, .1); }
.tile .t-fill { fill: var(--navy); }
.tile.lv2 .t-track { fill: rgba(255, 255, 255, .45); }
.tile.lv3 .t-track { fill: rgba(255, 255, 255, .28); } .tile.lv3 .t-fill { fill: #fff; }
.tile .t-dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.tile .t-ring { fill: none; stroke: var(--red); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .75; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
/* 실제 경계 지도(kmap): 면은 .tile 색 체계를 그대로, 경계선만 얇게 */
.kmap .km-land .t-bg { stroke: #fff; stroke-width: 1; stroke-linejoin: round; }
.kmap .km-land .tile:hover .t-bg, .kmap .km-land .tile:focus-visible .t-bg { stroke: var(--navy); stroke-width: 1.6; }
.kmap .km-labels { pointer-events: none; }
.kmap .km-pl text { text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .7); stroke-width: 3px; stroke-linejoin: round; }
.kmap .km-pl .t-name { font: 700 12.5px var(--font); fill: var(--ink); }
.kmap .km-pl .t-num { font: 600 11px var(--font); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.kmap .km-pl.lv0 .t-name { fill: var(--ink-3); }
.kmap .km-pl.lv3 text { fill: #fff; stroke: rgba(14, 90, 82, .55); }
.kmap .km-pl .t-dot { fill: var(--red); stroke: #fff; stroke-width: 1.5; }
.kmap .km-pl .t-ring { fill: none; stroke: var(--red); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.4s var(--ease) infinite; }
.kmap .km-note { font: 500 9.5px var(--font); fill: var(--ink-3); text-anchor: middle; }
.kmap .km-pill .t-bg { stroke: var(--line); stroke-width: 1; }
.kmap .km-pill.lv0 .t-bg { fill: #fff; }
.kmap .km-pill:hover .t-bg, .kmap .km-pill:focus-visible .t-bg { stroke: var(--navy); stroke-width: 1.6; }
.kmap .km-pill .t-name { font: 700 11.5px var(--font); }
.kmap .km-pill .t-num { font: 600 10.5px var(--font); text-anchor: end; }
.kmap .km-lead { stroke: var(--ink-3); stroke-width: .8; stroke-dasharray: 2 2; }
.kmap .km-pin { fill: var(--navy); stroke: #fff; stroke-width: 1; }
/* 지도 보기 전환: 진행률 ↔ 판매점 분포(공개 목록) */
.km-card .km-dist { display: none; }
.km-card.km-mode-dist .km-dist { display: inline; }
.km-card.km-mode-dist .km-prog { display: none; }
.km-card.km-mode-dist .legend.km-dist { display: flex; }
.km-card.km-mode-dist .km-src.km-dist { display: block; }
.km-card.km-mode-dist .kmap .km-land .t-bg { fill: #E7ECF3; }
.km-card.km-mode-dist .kmap .km-pill .t-bg { fill: #fff; }
.km-card.km-mode-dist .kmap text, .km-card.km-mode-dist .kmap .km-pl text { fill: var(--ink); }
.km-card.km-mode-dist .kmap .t-num { fill: var(--navy); }
.km-card.km-mode-dist .kmap .km-pl text { stroke: rgba(255, 255, 255, .85); }
.kmap .km-dots { pointer-events: none; }
.kmap .t-sub { font: 500 9.5px var(--font); fill: var(--ink-3); }
.km-card.km-mode-dist .kmap .t-sub { fill: var(--ink-3); }
.lg.lg-pt { width: 7px; height: 7px; border-radius: 50%; background: rgba(31, 58, 104, .55); }
.km-src { margin: 6px 0 0; font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.seg-mini { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--line-2); }
.seg-mini button { border: 0; background: transparent; font: 600 12px var(--font); color: var(--ink-3); padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: background var(--d2), color var(--d2); }
.seg-mini button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: var(--sh-1); }
.seg-mini button:focus-visible { outline: none; box-shadow: var(--ring); }
.kmap .km-pill:hover .km-lead, .kmap .km-pill:focus-visible .km-lead { stroke: var(--navy); stroke-dasharray: none; }
.legend { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); align-items: center; margin-top: 10px; }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; background: var(--line-2); }
.lg-scale { display: inline-flex; margin-right: 4px; }
.lg-scale .lg { margin: 0; border-radius: 0; width: 14px; }
.lg-scale .lg:first-child { border-radius: 3px 0 0 3px; } .lg-scale .lg:last-child { border-radius: 0 3px 3px 0; }
.lg.lv0 { background: #EEF1F5; } .lg.lv1 { background: var(--teal-light); } .lg.lv2 { background: var(--teal-mid); } .lg.lv3 { background: var(--teal); } .lg.dot { background: var(--red); border-radius: 50%; }
.lg.s-rev { background: var(--teal); } .lg.s-done { background: var(--teal-mid); } .lg.s-asg { background: var(--navy-mid); }
.lg-sep { width: 1px; height: 12px; background: var(--line); margin: 0 4px; }

/* ── 상황판: 권역·일정·경보·피드 ─────────────────────────────── */
.regions td:first-child { white-space: nowrap; }
.reg-code { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--navy-bg); color: var(--navy); font-weight: 800; font-size: 12px; margin-right: 8px; }
.regions .prog { min-width: 150px; }
.regions .stack { margin-bottom: 4px; }
.prog-n { font-size: 11.5px; color: var(--ink-3); }
.prog-n b { color: var(--ink); font-weight: 700; margin-right: 2px; }
.n-bad { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-weight: 700; }
td.txt-amber .i { margin-right: 3px; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tl-col { background: var(--wash); border-radius: 10px; padding: 9px; min-height: 84px; }
.tl-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; margin-bottom: 8px; color: var(--ink-2); }
.tl-h .i { width: 16px; height: 16px; color: var(--amber); }
.tl-n { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--ink-3); background: #fff; border: 1px solid var(--line); padding: 0 7px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.tl-item { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 8px; margin-bottom: 5px; font-size: 12.5px; background: #fff; box-shadow: var(--sh-1); }
.tl-st { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.tl-st .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.tl-item.tone-navy .dot { background: var(--navy-2); } .tl-item.tone-teal .dot { background: var(--teal); } .tl-item.tone-amber .dot { background: var(--amber); } .tl-item.tone-red .dot { background: var(--red); }
.tl-item.is-live .dot { animation: pulse-navy 1.6s infinite; }
.tl-empty { font-size: 12px; color: var(--ink-3); padding: 6px 2px; }
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.alerts li { display: flex; gap: 11px; padding: 10px 11px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.alerts li.sev-critical { background: #FFF6F6; border-color: #F3CFCF; }
.alerts li.sev-high { background: #FFFBFB; border-color: #F6DDDD; }
.alerts li.sev-medium { background: #FFFCF6; border-color: #F1E2C6; }
.sev-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--gray-bg); color: var(--ink-2); position: relative; }
.sev-ic .i { width: 17px; height: 17px; }
.sev-critical .sev-ic { background: var(--red); color: #fff; }
.sev-critical .sev-ic::after { content: ""; position: absolute; inset: 0; border-radius: 8px; box-shadow: 0 0 0 0 rgba(197, 48, 48, .45); animation: alarm 1.8s var(--ease) 3; }
.sev-high .sev-ic { background: var(--red-bg); color: var(--red); }
.sev-medium .sev-ic { background: var(--amber-bg); color: var(--amber); }
.al-b { min-width: 0; flex: 1; }
.al-t { display: flex; align-items: center; gap: 6px; margin-bottom: 1px; }
.alerts .sev { flex: none; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--gray-bg); color: var(--ink-2); }
.alerts .sev-critical .sev { background: var(--red-bg); color: var(--red); } .alerts .sev-high .sev { background: var(--red-bg); color: var(--red); } .alerts .sev-medium .sev { background: var(--amber-bg); color: var(--amber-2); }
.al-m { color: var(--ink-2); }
.al-meta { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.alerts li.empty { background: var(--teal-bg); border-color: transparent; color: var(--teal-2); justify-content: center; align-items: center; gap: 7px; padding: 16px; }
@keyframes alarm { 0% { box-shadow: 0 0 0 0 rgba(197, 48, 48, .45); } 100% { box-shadow: 0 0 0 9px rgba(197, 48, 48, 0); } }
.feed-card .feed { list-style: none; margin: 0; padding: 0; max-height: 470px; overflow-y: auto; }
.feed li { display: flex; align-items: baseline; gap: 10px; padding: 8px 6px; font-size: 13px; border-bottom: 1px solid var(--line-2); border-radius: 6px; --dot: #C3CBD8; }
.feed li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); transform: translateY(-1px); }
.feed li time { flex: none; font: 12px var(--mono); color: var(--ink-3); padding-top: 1px; }
.feed li.tone-navy { --dot: var(--navy-2); } .feed li.tone-teal { --dot: var(--teal); } .feed li.tone-amber { --dot: var(--amber); } .feed li.tone-red { --dot: var(--red); background: #FFF8F8; } .feed li.tone-gray { color: var(--ink-2); }
.feed li.new { animation: feed-in .7s var(--ease) both; }
@keyframes feed-in { 0% { opacity: 0; transform: translateY(-8px); background-color: var(--navy-bg); } 40% { opacity: 1; transform: none; } 100% { background-color: transparent; } }
.feed li.tone-red.new { animation-name: feed-in-red; }
@keyframes feed-in-red { 0% { opacity: 0; transform: translateY(-8px); background-color: var(--red-bg); } 40% { opacity: 1; transform: none; } 100% { background-color: #FFF8F8; } }
.live-dot { font: 700 11px var(--font); letter-spacing: .06em; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--gray-bg); transition: background var(--d3), color var(--d3); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.live-dot.on { color: var(--teal-2); background: var(--teal-bg); } .live-dot.on::before { background: var(--teal); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15, 138, 126, .5); } 70% { box-shadow: 0 0 0 7px rgba(15, 138, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 138, 126, 0); } }
@keyframes pulse-navy { 0% { box-shadow: 0 0 0 0 rgba(44, 82, 148, .5); } 70% { box-shadow: 0 0 0 6px rgba(44, 82, 148, 0); } 100% { box-shadow: 0 0 0 0 rgba(44, 82, 148, 0); } }

/* ── 보안 지표 ─────────────────────────────── */
.sec-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.card .sec-kpis { margin-bottom: 0; }
.sk { padding: 13px 15px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.card .sk { background: var(--wash); border-color: var(--line-2); }
.sk-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sk-h .i { width: 15px; height: 15px; color: var(--teal); }
.sk-v { display: flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.sk-v small { font-size: 14px; font-weight: 700; color: var(--ink-3); margin-left: -3px; }
.sk-word { font-size: 22px; color: var(--teal-2); }
.sk-ok { width: 20px; height: 20px; color: var(--teal); }
.sk .meter i { background: var(--teal); }
.sk-l { font-size: 12px; color: var(--ink-3); }
.sk-bad { background: var(--red-bg) !important; border-color: #F3C4C4 !important; }
.sk-bad .sk-v, .sk-bad .sk-h .i { color: var(--red); }
.sk-idle .sk-word { color: var(--ink-3); }

/* ── 공단 결과 파이프라인 ─────────────────────────────── */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px; filter: drop-shadow(0 1px 1px rgba(20, 30, 55, .06)); }
.pipe { position: relative; padding: 14px 18px 12px 30px; background: #fff; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.pipe:first-child { padding-left: 18px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: var(--r) 0 0 var(--r); }
.pipe:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); border-radius: 0 var(--r) var(--r) 0; background: var(--teal); color: #fff; }
.pipe:nth-child(2) { background: #F3F6FB; } .pipe:nth-child(3) { background: var(--navy-bg); } .pipe:nth-child(4) { background: #DCE6F4; }
.pipe-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.pipe-top .i { width: 15px; height: 15px; opacity: .75; }
.pipe:last-child .pipe-top { color: rgba(255, 255, 255, .9); }
.pipe-n { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pipe-l { font-size: 12px; color: var(--ink-3); }
.pipe:last-child .pipe-l { color: rgba(255, 255, 255, .8); }

/* ── 업로드 단계 ─────────────────────────────── */
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: st; }
.steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); counter-increment: st; }
.steps li::before { content: counter(st); position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 12.5px; transition: background var(--d3), border-color var(--d3), color var(--d3); }
.steps li + li::after { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.steps li.on { color: var(--navy); } .steps li.on::before { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 4px var(--navy-bg); }
.steps li.done { color: var(--teal-2); } .steps li.done::before { content: ""; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--teal); }
.steps li.done + li::after, .steps li.on::after { background: var(--teal); }
.map-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.map-act { display: flex; align-items: end; }
.form-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.drop input[type=file] { padding: 22px 18px; border: 1.5px dashed #C3CBD8; background: var(--wash); cursor: pointer; }
.drop input[type=file]:hover { border-color: var(--navy-2); background: var(--navy-bg); }
.drop input[type=file]::file-selector-button { font: 600 13px var(--font); border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 12px; margin-right: 12px; cursor: pointer; }
.demo-box { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--amber-bg); border: 1px dashed #E2C48E; font-size: 13px; }
.demo-head { font-weight: 700; color: #84560F; margin-bottom: 6px; }
.demo-list { margin: 0; padding-left: 18px; }

/* ── 배정 보드 ─────────────────────────────── */
.board-stats { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.board-stats .stat { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 13px; color: var(--ink-2); box-shadow: var(--sh-1); }
.board-stats .stat b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.board-stats .stat .i { width: 16px; height: 16px; color: var(--ink-3); }
.board-stats .stat-cycle b { font-size: 15px; }
.pool { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; box-shadow: var(--sh-1); }
.pool-h { width: 100%; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.pool-h .i { width: 15px; height: 15px; }
.insp { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; align-items: center; min-width: 118px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--wash); font-size: 12px; cursor: default; transition: transform var(--d2) var(--ease), border-color var(--d2), background var(--d2), box-shadow var(--d2); }
.insp-av { grid-row: span 4; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-bg); color: var(--navy); font-weight: 800; font-size: 11px; }
.insp b { font-size: 13px; }
.insp .ld { grid-column: 2; height: 4px; background: var(--line); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.insp .ld i { display: block; height: 100%; background: var(--navy-2); width: 0; transition: width .8s var(--ease); }
.insp.full .ld i { background: var(--red); }
.insp.trained { opacity: .55; border-style: dashed; }
.insp.over { border-color: var(--navy-2); background: var(--navy-bg); transform: scale(1.05); box-shadow: var(--sh-2); }
.insp.ok-drop { border-color: var(--teal); }
.insp.bad-drop { border-color: var(--red); background: var(--red-bg); animation: shake .4s; }
.board-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--wash); padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 12px; font: 600 12.5px var(--font); color: var(--ink-2); cursor: pointer; border-radius: 7px; transition: background var(--d2), color var(--d2), box-shadow var(--d2); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--navy); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.cases { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 330px); min-height: 300px; overflow-y: auto; padding: 2px 4px 2px 2px; }
.reg-h { font-size: 12px; font-weight: 700; color: var(--ink-3); margin: 10px 0 2px; }
.case { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color var(--d2), box-shadow var(--d2), transform var(--d2) var(--ease), opacity var(--d2); }
.case:hover { border-color: #B9C2D0; box-shadow: var(--sh-1); }
.case.sel { border-color: var(--navy-2); box-shadow: 0 0 0 3px var(--navy-bg); }
.case[draggable=true] { cursor: grab; }
.case[draggable=true]:active { cursor: grabbing; }
.case.dragging { opacity: .5; transform: scale(.98); }
.case .c1 { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.case .c2 { font-size: 12px; color: var(--ink-3); }
.case .c3 { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; justify-content: center; }
.case .who-asg { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--navy); }
.case .who-asg .insp-av { width: 22px; height: 22px; font-size: 10px; }
.case .c3 .muted { display: inline-flex; align-items: center; gap: 4px; }
.case.st-draft { background: #FAFBFE; border-style: dashed; border-color: #C5D2E8; }
.case.st-draft.sel { border-style: solid; }
.case.st-fixed { background: #FBFDFC; cursor: default; }
.cand-ctl { display: flex; gap: 10px; margin-bottom: 10px; }
.cand-ctl label { flex: 1; }
.cand { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 360px); overflow-y: auto; padding: 2px; }
.cand-row { display: grid; grid-template-columns: 34px 1fr 72px auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; animation: rise var(--d3) var(--ease) both; }
.cand-row:nth-child(2) { animation-delay: 30ms; } .cand-row:nth-child(3) { animation-delay: 60ms; } .cand-row:nth-child(4) { animation-delay: 90ms; } .cand-row:nth-child(5) { animation-delay: 120ms; } .cand-row:nth-child(n+6) { animation-delay: 150ms; }
.cand-row .rk { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gray-bg); font-weight: 800; color: var(--ink-2); font-size: 13px; justify-self: center; }
.cand-row.top .rk { background: var(--teal); color: #fff; }
.cand-row .sc-w { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cand-row .sc { font: 800 16px var(--font); color: var(--teal-2); font-variant-numeric: tabular-nums; line-height: 1; }
.cand-row .sc small { font-size: 10.5px; font-weight: 600; color: var(--ink-3); margin-left: 1px; }
.cand-row .sc-w .meter { width: 100%; } .cand-row .sc-w .meter i { background: var(--teal); }
.cand-row .why { font-size: 12px; color: var(--ink-3); }
.cand-row.top { border-color: #9ED3CB; background: #F6FCFB; box-shadow: var(--sh-1); }
.cand-sec { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); margin: 10px 0 2px; }
.cand-sec .i { width: 15px; height: 15px; }
.cand-row.ex { grid-template-columns: 1fr auto; background: #FFFAFA; border-color: #F3D7D7; }
.viol { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.viol span { font: 700 11px var(--font); background: var(--red); color: #fff; padding: 1px 6px; border-radius: 4px; }
.viol span.exc { background: var(--amber); }
.prev-note { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; padding: 8px 10px; border-radius: 8px; background: var(--amber-bg); color: #84560F; }
.prev-note .i { width: 15px; height: 15px; margin-top: 1px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; margin: 12px 0; font-size: 13px; }
.rules b { color: var(--red); margin-right: 6px; } .rules .exc b { color: var(--amber); }
.rules-card summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.rules-card summary::-webkit-details-marker { display: none; }
.rules-card summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform var(--d2) var(--ease); }
.rules-card[open] summary::before { transform: rotate(45deg); }
.ex-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.ex-row:last-child { border-bottom: 0; }
.modal-block { border-top: 4px solid var(--red); }
.block-head { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--red); margin-bottom: 6px; }
.block-head .i { width: 22px; height: 22px; }
.block-list { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.block-list li { padding: 9px 11px; border-radius: 8px; background: var(--red-bg); font-size: 13.5px; }
.block-list li b { color: var(--red); margin-right: 6px; }
.block-list li.exc { background: var(--amber-bg); } .block-list li.exc b { color: var(--amber); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ── 모달·토스트 ─────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(14, 20, 34, .48); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade var(--d2) ease-out both; }
.modal-box { background: #fff; border-radius: 16px; width: min(480px, 100%); padding: 22px 24px; box-shadow: var(--sh-pop); max-height: 90vh; overflow-y: auto; animation: pop var(--d3) var(--ease) both; }
.modal-box.shake { animation: pop var(--d3) var(--ease) both, shake .4s .1s; }
.modal-title { font-size: 17px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-reason-wrap { margin-top: 10px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 130; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { display: flex; align-items: center; gap: 9px; background: #182134; color: #fff; padding: 11px 16px 11px 13px; border-radius: 12px; font-weight: 600; box-shadow: 0 12px 28px -8px rgba(10, 16, 30, .45); animation: toast-in var(--d3) var(--ease) both; pointer-events: auto; }
.toast .i { width: 18px; height: 18px; color: #9FB3D6; }
.toast.ok .i { color: #5FE0CF; } .toast.err { background: #8E1F1F; } .toast.err .i { color: #FFC9C9; }
.toast.out { animation: toast-out 180ms ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ── 검수 ─────────────────────────────── */
.review { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.review-queue { position: sticky; top: 74px; max-height: calc(100vh - 92px); overflow-y: auto; }
.q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.q-list a { display: block; padding: 9px 11px; border-radius: 9px; color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: background var(--d2), border-color var(--d2); }
.q-list a:hover { background: var(--bg); }
.q-list a.on { background: var(--navy-bg); border-color: #C9D6EE; }
.review-empty { text-align: center; padding: 64px; }
.review-empty .i { width: 40px; height: 40px; color: var(--navy-mid); margin-bottom: 10px; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rh-no { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 20px; font-weight: 800; }
.rh-sub { margin: 6px 0; }
.reveal { display: inline-flex; align-items: center; gap: 6px; background: var(--amber-bg); color: #84560F; padding: 4px 10px; border-radius: 7px; font-weight: 600; }
.masked { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.review-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ph { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding: 0; background: #0E1422; cursor: zoom-in; display: flex; flex-direction: column; transition: transform var(--d2) var(--ease), box-shadow var(--d2); }
.ph:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ph span { background: #fff; font-size: 12px; padding: 6px 8px; text-align: left; font-weight: 600; }
.ph-lock { aspect-ratio: 4 / 3; border-radius: 10px; background: repeating-linear-gradient(135deg, #EEF1F5 0 8px, #F4F6F9 8px 16px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); }
.ph-lock .i { width: 22px; height: 22px; }
.ac-list { list-style: none; margin: 0; padding: 0; }
.ac-list li { display: grid; grid-template-columns: 52px 170px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.ac-list li:last-child { border-bottom: 0; }
.ac-code { display: inline-flex; align-items: center; gap: 5px; font: 700 12px var(--mono); color: var(--ink-3); }
.ac-code .i { width: 16px; height: 16px; }
.ac-list li.tone-teal .ac-code .i { color: var(--teal); } .ac-list li.tone-amber .ac-code .i { color: var(--amber); } .ac-list li.tone-red .ac-code .i { color: var(--red); } .ac-list li.tone-gray .ac-code .i { color: var(--ink-3); }
.ac-list li.tone-red { background: #FFF6F6; } .ac-list li.tone-amber { background: #FFFBF2; }
.ac-d { color: var(--ink-3); font-size: 12.5px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 7px 12px; margin: 0 0 10px; font-size: 13px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.answers { margin-top: 8px; }
.report { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--gray-bg); font-size: 13.5px; }
.report-v { background: var(--red-bg); }
.report-h { font-weight: 700; margin-bottom: 6px; }
.finding { padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.finding:last-child { border-bottom: 0; }
.f-name { font-weight: 700; margin-bottom: 6px; }
.seg-radio { display: flex; border: 0; gap: 6px; flex-wrap: wrap; background: none; padding: 0; }
.seg-radio label { flex: 1; margin: 0; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--ink-2); background: #fff; cursor: pointer; white-space: nowrap; transition: background var(--d2), border-color var(--d2), color var(--d2), transform var(--d1) var(--ease); }
.seg-radio span:hover { border-color: #B9C2D0; }
.seg-radio label:active span { transform: scale(.98); }
.seg-radio input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg-radio input:checked + span.r-red { background: var(--red); border-color: var(--red); }
.seg-radio input:checked + span.r-teal { background: var(--teal); border-color: var(--teal); }
.seg-radio input:checked + span.r-amber { background: var(--amber); border-color: var(--amber); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.hold-reason { margin-top: 6px; }
.fix-box { margin-top: 12px; } .fix-box summary { cursor: pointer; font-weight: 600; color: var(--amber); }
.fix-box form { margin-top: 10px; }
.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.checks li .i { color: var(--teal); margin-top: 1px; }
.hist { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.hist li { padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.hist time { font: 12px var(--mono); color: var(--ink-3); margin-right: 6px; }
.chk4 .check { padding: 4px 0; }
.chain-state { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 10px; background: var(--gray-bg); margin-bottom: 14px; font-weight: 600; }
.chain-state.ok { background: var(--teal-bg); color: #0B6158; } .chain-state.bad { background: var(--red-bg); color: var(--red); }
.tabs { display: flex; gap: 4px; margin-bottom: -1px; position: relative; z-index: 1; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 9px 9px 0 0; font-weight: 700; color: var(--ink-3); text-decoration: none; border: 1px solid transparent; border-bottom: 0; transition: color var(--d2), background var(--d2); }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: #fff; border-color: var(--line); color: var(--navy); }
.tabs + .card { border-top-left-radius: 0; }
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 20, .92); display: flex; align-items: center; justify-content: center; animation: fade var(--d2) ease-out both; }
.viewer img { max-width: 88vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); animation: pop var(--d3) var(--ease) both; }
.viewer button { position: absolute; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; transition: background var(--d2); }
.viewer button:hover { background: rgba(255, 255, 255, .2); }
.viewer button .i { width: 24px; height: 24px; }
.v-close { top: 18px; right: 18px; } .v-prev { left: 18px; } .v-next { right: 18px; }
.v-cap { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0, 0, 0, .45); padding: 6px 12px; border-radius: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── 워터마크 ─────────────────────────────── */
.wm { position: fixed; inset: 0; pointer-events: none; z-index: 70; background-repeat: repeat; opacity: .035; }

/* ── 인증 ─────────────────────────────── */
.auth-body { min-height: 100vh; background: radial-gradient(1200px 600px at 15% 0%, #2A4F8C 0%, transparent 60%), linear-gradient(160deg, #111A2C 0%, #1A3260 100%); display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-agency { background: radial-gradient(1200px 600px at 15% 0%, #138A7E 0%, transparent 60%), linear-gradient(160deg, #0A2724 0%, #0D4A44 100%); }
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; max-width: 940px; width: 100%; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); animation: pop .5s var(--ease) both; }
.auth-side { position: relative; overflow: hidden; background: linear-gradient(170deg, #17223A 0%, #111827 100%); color: #fff; padding: 44px 40px 40px; min-height: 560px; }
.auth-agency .auth-side { background: linear-gradient(170deg, #0F4F48 0%, #0A2E2A 100%); }
.auth-side h1 { position: relative; z-index: 1; font-size: 27px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.025em; }
.auth-lead { position: relative; z-index: 1; color: rgba(255, 255, 255, .78); font-size: 14.5px; }
.auth-lead b { color: #fff; }
.auth-points { position: relative; z-index: 1; list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; max-width: 300px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, .7); }
.auth-points b { display: block; color: #fff; font-size: 13.5px; margin-bottom: 1px; }
.ap-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #5FE0CF; }
.auth-map { position: absolute; right: -28px; top: 448px; width: 220px; pointer-events: none; }
.auth-map svg { display: block; width: 100%; height: auto; }
.am-t { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.am-t:nth-child(3n+1) { fill: rgba(79, 209, 193, .22); stroke: rgba(79, 209, 193, .45); }
.auth-card { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-title { font-size: 21px; font-weight: 800; }
.auth-alt { margin-top: 22px; font-size: 13px; text-align: center; color: var(--ink-3); }
.otp-input { font: 700 26px var(--mono); letter-spacing: .35em; text-align: center; }
.otp-hint { text-align: center; margin: 6px 0; }
.otp-code { font: 800 30px var(--mono); letter-spacing: .2em; color: var(--navy); }
.bare-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.error-card { background: #fff; border-radius: 16px; padding: 40px; text-align: center; max-width: 440px; box-shadow: var(--sh-2); border: 1px solid var(--line); animation: pop var(--d3) var(--ease) both; }
.error-code { font-size: 52px; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.error-msg { font-size: 15px; margin: 8px 0 20px; }

/* ── 모바일 ─────────────────────────────── */
body.m { background: var(--bg); font-size: 15px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.m-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; background: var(--navy); color: #fff; box-shadow: 0 4px 14px -8px rgba(10, 20, 40, .6); }
.m-brand { text-decoration: none !important; }
.m-brand .brand-mark .bm-ic { width: 24px; height: 24px; }
.m-who { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; margin-left: auto; font-variant-numeric: tabular-nums; }
.m-who .i { opacity: .7; }
.m-logout { display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 9px; min-height: 36px; padding: 0 12px; font: 600 13px var(--font); cursor: pointer; transition: background var(--d2); }
.m-logout:active { background: rgba(255, 255, 255, .22); }
.m-logout .i { width: 16px; height: 16px; }
.m-main { padding: 16px 14px 24px; }
.m-tab { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: flex; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 30; }
.m-tab a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.m-tab-ic { width: 56px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background var(--d3) var(--ease), color var(--d2); }
.m-tab-ic .i { width: 22px; height: 22px; }
.m-tab a.on { color: var(--navy); }
.m-tab a.on .m-tab-ic { background: var(--navy-bg); }
.m-tab a:active .m-tab-ic { background: var(--line-2); }
.m-h1 { font-size: 22px; font-weight: 800; margin: 4px 0 12px; }
.m-h2 { display: flex; align-items: center; gap: 6px; font-size: 16px; margin: 22px 0 9px; }
.m-h2 .muted { font-weight: 600; }
.m-h3 { font-size: 14.5px; margin: 16px 0 8px; }
.m-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); background: var(--navy-bg); padding: 10px 12px; border-radius: 10px; margin: 8px 0; }
.m-hint > .i { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--navy-2); }
.m-hello { background: #fff; border-radius: 14px; padding: 15px 16px 14px; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.m-hello-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.m-month { font-size: 13.5px; color: var(--ink-2); }
.m-month b { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.m-slots { display: flex; gap: 4px; }
.m-slots i { flex: 1; height: 7px; border-radius: 4px; background: var(--line-2); }
.m-slots i.on { background: var(--navy-2); animation: slot-in .5s var(--ease) both; transform-origin: left center; }
.m-slots i.on:nth-child(2) { animation-delay: .06s; } .m-slots i.on:nth-child(3) { animation-delay: .12s; } .m-slots i.on:nth-child(4) { animation-delay: .18s; } .m-slots i.on:nth-child(5) { animation-delay: .24s; } .m-slots i.on:nth-child(n+6) { animation-delay: .3s; }
@keyframes slot-in { from { transform: scaleX(0); } to { transform: none; } }
.m-slots-l { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.m-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; color: var(--ink); text-decoration: none !important; box-shadow: var(--sh-1); min-height: var(--tap); transition: transform var(--d1) var(--ease), background var(--d2), box-shadow var(--d2); }
a.m-card:active { transform: scale(.985); background: var(--wash); }
.m-card-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.m-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 58px; border-radius: 11px; background: var(--navy-bg); color: var(--navy); line-height: 1.1; }
.m-date small { font-size: 10.5px; font-weight: 600; opacity: .8; }
.m-date b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-date.is-today { background: var(--navy); color: #fff; }
.m-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.m-card-main { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; margin: 3px 0 2px; }
.m-card-main .i { width: 16px; height: 16px; color: var(--amber); }
.m-card-sub { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); }
.m-cta { display: inline-flex; align-items: center; gap: 2px; color: var(--navy); font-weight: 700; }
.m-cta .i { width: 16px; height: 16px; transition: transform var(--d2) var(--ease); }
a.m-card:active .m-cta .i { transform: translateX(2px); }
.m-card-static { box-shadow: none; }
.m-empty { text-align: center; padding: 40px 10px; }
.m-empty-ic { width: 68px; height: 68px; border-radius: 50%; background: var(--teal-bg); color: var(--teal); display: grid; place-items: center; margin: 0 auto 12px; }
.m-empty-ic .i { width: 32px; height: 32px; }
.m-rule { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; font-size: 12.5px; color: var(--ink-2); background: #fff; border: 1px dashed #CDD4DF; border-radius: 12px; padding: 12px 13px; }
.m-rule > .i { flex: none; width: 18px; height: 18px; color: var(--teal); margin-top: 1px; }
.m-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: var(--sh-1); }
.m-big { font-size: 20px; font-weight: 800; margin: 8px 0 4px; }
.m-back { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; margin-bottom: 4px; font-weight: 600; color: var(--ink-2); }
.m-back .i { width: 18px; height: 18px; }
.m-outlet { border: 2px solid var(--amber); box-shadow: 0 8px 22px -12px rgba(183, 121, 31, .5); animation: rise .45s var(--ease) both; }
.m-outlet-name { font-size: 22px; font-weight: 800; margin-top: 10px; letter-spacing: -.02em; }
.m-outlet-addr { display: flex; gap: 5px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.m-outlet-addr .i { width: 16px; height: 16px; margin-top: 3px; color: var(--amber); }
.m-countdown { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.m-countdown.is-low { color: var(--amber-2); } .m-countdown.is-over { color: var(--red); }
.consent { padding-left: 20px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; }
.sign-wrap { margin: 14px 0; }
.sign-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.sign-h span { display: inline-flex; align-items: center; gap: 5px; }
.sign { width: 100%; height: 160px; border: 1.5px dashed #A9B3C3; border-radius: 12px; background: var(--wash) linear-gradient(transparent calc(100% - 44px), #D5DBE5 calc(100% - 44px), #D5DBE5 calc(100% - 43px), transparent calc(100% - 43px)); touch-action: none; display: block; }
.decline summary { cursor: pointer; font-weight: 600; color: var(--ink-2); min-height: 32px; }
.decline form { margin-top: 12px; }
.radio { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-height: var(--tap); align-items: center; transition: border-color var(--d2), background var(--d2); }
.radio:has(input:checked) { border-color: var(--navy-2); background: var(--navy-bg); }
.todo { padding: 0; list-style: none; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.todo li { display: flex; align-items: center; gap: 10px; }
.todo-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-bg); color: var(--navy); }
.todo-ic .i { width: 18px; height: 18px; }
.btn-block.btn-lg { margin-top: 6px; }

/* 현장 */
.field-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.btn-red.sm { min-height: 36px; }
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 16px; }
.stepper li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.st-ic { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); color: var(--ink-3); transition: background var(--d3) var(--ease), border-color var(--d3), color var(--d3), box-shadow var(--d3); }
.st-ic .i { width: 17px; height: 17px; }
.st-ic .st-done { display: none; }
.stepper li + li::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.stepper li + li::after { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--ease); }
.stepper li.on, .stepper li.done { color: var(--ink); }
.stepper li.on .st-ic { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 4px var(--navy-bg); }
.stepper li.done .st-ic { background: var(--teal); border-color: var(--teal); color: #fff; }
.stepper li.done .st-ic .i:not(.st-done) { display: none; } .stepper li.done .st-ic .st-done { display: block; }
.stepper li.on::after, .stepper li.done::after { transform: none; }
.f-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--sh-1); animation: step-in var(--d3) var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.f-step > .m-h2:first-child { margin-top: 2px; }
.f-nav { display: flex; gap: 8px; margin-top: 16px; }
.f-nav > * { flex: 1; min-height: var(--tap); }
.shots { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.shot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; min-height: 66px; transition: border-color var(--d3), background var(--d3); }
.shot-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gray-bg); color: var(--ink-2); transition: background var(--d3), color var(--d3); }
.shot-ic .i { width: 20px; height: 20px; }
.shot.req { border-color: #E9D2A5; background: #FFFCF6; }
.shot.req .shot-ic { background: var(--amber-bg); color: var(--amber); }
.shot.got { border-color: #9ED3CB; background: #F6FCFB; }
.shot.got .shot-ic { background: var(--teal); color: #fff; }
.shot .thumbs { display: flex; gap: 4px; margin-left: auto; }
.shot .thumbs i { width: 34px; height: 34px; border-radius: 8px; background: var(--teal-bg); display: grid; place-items: center; color: var(--teal-2); font-style: normal; font-weight: 800; font-size: 13px; animation: pop var(--d3) var(--ease) both; }
.shot .thumbs i.up { background: var(--navy-bg); color: var(--navy); animation: pulse-navy 1s infinite; }
.shot .nm { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-weight: 700; } .shot .st { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); }
.shot.got .st { color: var(--teal-2); font-weight: 600; }
.shot button { min-height: 44px; }
.cam { position: fixed; inset: 0; z-index: 120; background: #000; display: flex; flex-direction: column; animation: fade var(--d2) ease-out both; }
.cam video { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.cam-label { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 700; }
.cam-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); background: #000; }
.cam-bar .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.shutter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: rgba(255, 255, 255, .2); cursor: pointer; box-shadow: inset 0 0 0 4px #000; transition: transform var(--d1) var(--ease), background var(--d1); }
.shutter:active { transform: scale(.92); background: #fff; }
.cam-note { color: rgba(255, 255, 255, .75); font-size: 12px; width: 80px; text-align: right; }
.q { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.q-t { font-weight: 700; margin-bottom: 8px; }
.q-t .vt { margin-right: 4px; }
.q .seg-radio span { min-height: 46px; white-space: normal; text-align: center; line-height: 1.3; padding: 6px 8px; }
.q-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.v-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.v-photos label { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-weight: 500; }
.review-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.review-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: var(--teal-bg); font-size: 14px; animation: rise var(--d3) var(--ease) both; }
.review-list li b { display: inline-flex; align-items: center; gap: 5px; text-align: right; }
.review-list li .i { width: 16px; height: 16px; color: var(--teal); }
.review-list li.miss { background: var(--red-bg); color: var(--red); font-weight: 600; }
.review-list li.miss .i { color: var(--red); }
.review-list li.miss { padding: 0; }
.review-list li.miss button { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; cursor: pointer; border-radius: 10px; }
.review-list li.miss button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.review-list li:nth-child(2) { animation-delay: 40ms; } .review-list li:nth-child(3) { animation-delay: 80ms; } .review-list li:nth-child(4) { animation-delay: 120ms; } .review-list li:nth-child(n+5) { animation-delay: 160ms; }
.f-done { text-align: center; }
.f-done h2 { animation: rise .4s .5s var(--ease) both; }
/* 완료 봉인: 원이 그려지고 체크가 그어진다 — 제출 → 단말 삭제의 한 장면 */
.seal { width: 84px; height: 84px; margin: 4px auto 10px; display: block; }
.seal-c { fill: var(--teal); stroke: var(--teal); stroke-width: 4; stroke-dasharray: 227; stroke-dashoffset: 227; fill-opacity: 0; transform: rotate(-90deg); transform-origin: center; animation: seal-ring .6s var(--ease-io) forwards, seal-fill .3s .5s ease-out forwards; }
.seal-k { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: seal-check .35s .62s var(--ease) forwards; }
@keyframes seal-ring { to { stroke-dashoffset: 0; } }
@keyframes seal-fill { to { fill-opacity: 1; } }
@keyframes seal-check { to { stroke-dashoffset: 0; } }
.receipt { font: 800 24px var(--mono); color: var(--navy); margin: 6px 0 16px; letter-spacing: .04em; animation: rise .4s .6s var(--ease) both; }
.receipt small { display: block; font: 500 13px var(--font); color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.wipe-list { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.wipe-list li { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; background: var(--gray-bg); font-size: 14px; color: var(--ink-3); transition: background var(--d3), color var(--d3); }
.w-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #C3CBD8; transition: background var(--d2), border-color var(--d2); }
.w-ic .i { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity var(--d2), transform var(--d3) var(--ease); }
.wipe-list li:first-child:not(.ok) .w-ic, .wipe-list li.ok + li:not(.ok) .w-ic { border-color: var(--navy-2); border-top-color: transparent; animation: spin .7s linear infinite; }
.wipe-list li.ok { background: var(--teal-bg); color: var(--ink); }
.wipe-list li.ok .w-ic { background: var(--teal); border-color: var(--teal); animation: none; }
.wipe-list li.ok .w-ic .i { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-auth { padding-bottom: 20px; }
.m-auth-wrap { padding: 28px 18px; }
.m-auth-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 20px; color: var(--ink-2); }
.m-auth-brand .brand-mark { color: var(--navy); }
.m-auth-brand .brand-mark .bm-ic { color: var(--teal); }
.pin-input { font: 800 30px var(--mono); letter-spacing: .5em; text-align: center; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pinpad button { display: grid; place-items: center; min-height: 58px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: 700 22px var(--font); color: var(--ink); cursor: pointer; box-shadow: var(--sh-1); transition: background var(--d1), transform var(--d1) var(--ease); }
.pinpad button:active { background: var(--navy-bg); transform: scale(.96); }
.pinpad button[data-k=clr], .pinpad button[data-k=back] { font-size: 15px; color: var(--ink-3); background: var(--wash); box-shadow: none; }
.pinpad button .i { width: 24px; height: 24px; }

/* ── 반응형 ─────────────────────────────── */
@media (max-width: 1400px) {
  .grid-dash { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
  .grid-dash > :last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .kpis { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .side { width: 68px; padding: 10px 8px; } .side a { justify-content: center; padding: 10px; } .side-t, .side-g, .side-foot .i-xs { display: none; }
  .side-n { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .brand-sub, .who-t { display: none; }
  .review { grid-template-columns: 1fr; } .review-queue { position: static; max-height: 260px; }
  .review-cols, .board-main, .grid-2, .grid-2-1 { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-kpis { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: 1fr; }
  .kpi-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-flow .kpi:nth-child(4) { border-left: 0; } .kpi-flow .kpi:nth-child(4)::before { display: none; }
  .kpi-flow .kpi:nth-child(n+4) { border-top: 1px solid var(--line-2); }
  .topnav a span { display: none; }
}
@media (max-width: 760px) {
  .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-card { padding: 32px 24px; }
  .kpi-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-flow .kpi::before { display: none; }
  .kpi-flow .kpi:nth-child(odd) { border-left: 0; } .kpi-flow .kpi:nth-child(4) { border-left: 1px solid var(--line-2); } .kpi-flow .kpi:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .grid-dash, .grid-dash > :last-child { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .main { padding: 14px; } .page-h { flex-direction: column; align-items: flex-start; }
  .topbar .crumb, .topbar .chip, .btn-ic span { display: none; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
}
@media print { .side, .topbar, .wm, .toasts { display: none; } }

/* ── 모션 줄이기: 이동·반복은 멈추고 색·투명도 변화로 상태만 전한다 ─────────────────────────────── */
.hd-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.reg-pub { display: block; margin: 1px 0 0 28px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ── 권역 반장(LDR) ─────────────────────────────── */
.m-h2-first { margin-top: 2px; }
.ldr-prog .m-month { margin-bottom: 8px; }
.ldr-meter { height: 8px; border-radius: 4px; }
.ldr-meter i { background: var(--teal); border-radius: 4px; }
.ldr-todo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.ldr-todo-i { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none !important; font-size: 12px; min-height: var(--tap); transition: transform var(--d1) var(--ease), background var(--d2); }
.ldr-todo-i b { font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ldr-todo-i.is-hot { background: var(--red-bg); border-color: #F3CFCF; color: var(--red); }
.ldr-todo-i.is-hot b { color: var(--red); }
.ldr-todo-i.is-ok b { color: var(--teal); }
a.ldr-todo-i:active { transform: scale(.97); }
.ldr-h3 { display: flex; align-items: center; gap: 6px; margin: 18px 0 8px; }
.ldr-row .m-card-sub { margin-top: 6px; color: var(--ink-2); }
.ldr-alert-msg { margin: 6px 0 2px; font-size: 14px; color: var(--ink); }
.ldr-alert.is-done { background: var(--wash); }
.ldr-alert.is-done .ldr-alert-msg { color: var(--ink-3); }
.ldr-need { border-color: #EDB9B9; background: #FFF8F8; }
.ldr-need .m-card-sub { margin-top: 4px; color: var(--ink-2); gap: 8px; }
.ldr-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ldr-btns form { margin: 0; }
.ldr-btns .btn-ghost.sm { min-height: 36px; }
.ldr-act { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.ldr-act summary { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--navy); list-style: none; min-height: 32px; }
.ldr-act summary::-webkit-details-marker { display: none; }
.ldr-act[open] summary { margin-bottom: 8px; }
.ldr-act .form-stack { gap: 8px; }
.ldr-done { display: flex; align-items: center; gap: 5px; margin: 10px 0 0; font-size: 12.5px; color: var(--teal-2); font-weight: 600; }
.ldr-list { list-style: none; margin: 0 0 6px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ldr-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; font-size: 14px; }
.ldr-list li + li { border-top: 1px solid var(--line-2); }
.ldr-env.is-late { border-color: #EDB9B9; background: #FFF8F8; }
.ldr-env-sub { margin-top: 6px; color: var(--ink-2); flex-wrap: wrap; gap: 4px 10px; }
.ldr-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ldr-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--gray-bg); color: var(--ink-2); }
.ldr-av.grade-a { background: var(--teal-bg); color: var(--teal-2); }
.ldr-av.grade-c { background: var(--amber-bg); color: var(--amber-2); }
.ldr-team .btn-ghost.sm { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
  .meter i, .stack i, .insp .ld i, .stepper li + li::after { transition: none !important; }
  .btn:active, .btn-ghost:active, .pinpad button:active, a.m-card:active, .shutter:active { transform: none !important; }
  .t-ring, .live-pip, .live-dot.on::before, .sev-critical .sev-ic::after { animation: none !important; }
  .wipe-list li:first-child:not(.ok) .w-ic, .wipe-list li.ok + li:not(.ok) .w-ic { animation: none !important; border-top-color: var(--navy-2); }
  .seal-c { stroke-dashoffset: 0; fill-opacity: 1; } .seal-k { stroke-dashoffset: 0; }
  .modal-box, .toast, .flash, .f-step { animation-name: fade !important; }
}
