/* i2r 외주관리 — 디자인 시스템. 외부 폰트·CDN 없음(시스템 글꼴). */
:root {
  /* 잉크(무채 남색 기운) + 코발트 포인트 */
  --brand: #3B54E0; --brand-600: #2F45C8; --brand-700: #263AA6; --brand-50: #EEF1FE; --brand-100: #DDE3FD; --on-brand: #fff;
  --grad: linear-gradient(145deg, #5E74F4, #3B54E0 55%, #2C3FBE);
  --grad-ink: linear-gradient(140deg, #1B1F2B, #262D4A 55%, #33459E);
  --glow: rgba(59, 84, 224, .28);
  --bg: #F4F5F7; --bg-2: #EBEDF1; --surface: #FFFFFF; --surface-2: #F9FAFB; --surface-3: #F1F3F6;
  --border: #E6E8EC; --border-2: #D6DAE0; --text: #14161B; --text-2: #4B5260; --text-3: #8A909C; --text-inv: #fff;
  --focus: 0 0 0 3px rgba(59, 84, 224, .28);
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 1px rgba(16, 24, 40, .03);
  --shadow-2: 0 4px 14px rgba(16, 24, 40, .07), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-3: 0 18px 50px rgba(16, 24, 40, .16), 0 4px 12px rgba(16, 24, 40, .07);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 64px; --top-h: 56px; --side-w: 236px;
  --ok: #15803D; --warn: #B45309; --danger: #DC2626;
  /* 단계·상태 색 */
  --slate: #5B6B82; --slate-b: #EEF2F7; --sky: #0278B8; --sky-b: #E0F2FE; --violet: #7034D9; --violet-b: #EFE9FE;
  --indigo: #4743D6; --indigo-b: #E3E6FE; --brand-t: #2F45C8; --brand-b: #E8ECFD; --amber: #A55306; --amber-b: #FEF1C7;
  --pink: #C81E6E; --pink-b: #FCE7F3; --teal: #0D6E66; --teal-b: #D3F7F0; --green: #16763A; --green-b: #DCF5E4;
  --gray: #676B73; --gray-b: #F0F0F1; --red: #CC2222; --red-b: #FDE5E5;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8396FF; --brand-600: #98A8FF; --brand-700: #B2BEFF; --brand-50: rgba(131, 150, 255, .1); --brand-100: rgba(131, 150, 255, .2); --on-brand: #0B1030;
    --grad: linear-gradient(145deg, #8E9FFF, #6479F5 55%, #4A5FDF); --grad-ink: linear-gradient(140deg, #1D2234, #28325C 55%, #3A4FB8); --glow: rgba(100, 121, 245, .3);
    --bg: #0E1014; --bg-2: #0A0B0E; --surface: #16181D; --surface-2: #1B1E24; --surface-3: #23262E;
    --border: #2A2E37; --border-2: #383D48; --text: #EEF0F4; --text-2: #B3B9C5; --text-3: #868D9A;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 6px 18px rgba(0, 0, 0, .45); --shadow-3: 0 20px 60px rgba(0, 0, 0, .6);
    --ok: #4ADE80; --warn: #FBBF24; --danger: #F87171;
    --slate: #A9B7CB; --slate-b: rgba(148, 163, 184, .14); --sky: #7DD3FC; --sky-b: rgba(56, 189, 248, .14); --violet: #C4B5FD; --violet-b: rgba(167, 139, 250, .16);
    --indigo: #A5B4FC; --indigo-b: rgba(129, 140, 248, .16); --brand-t: #A9B5FF; --brand-b: rgba(131, 150, 255, .16); --amber: #FCD34D; --amber-b: rgba(251, 191, 36, .15);
    --pink: #F9A8D4; --pink-b: rgba(244, 114, 182, .15); --teal: #5EEAD4; --teal-b: rgba(45, 212, 191, .14); --green: #86EFAC; --green-b: rgba(74, 222, 128, .14);
    --gray: #A8A29E; --gray-b: rgba(168, 162, 158, .14); --red: #FCA5A5; --red-b: rgba(248, 113, 113, .15);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #FF7A24; --brand-600: #FF8B3D; --brand-700: #FFA366; --brand-50: rgba(255, 122, 36, .1); --brand-100: rgba(255, 122, 36, .2); --on-brand: #1A0E04;
  --bg: #0E1014; --bg-2: #0D0C0B; --surface: #1B1A18; --surface-2: #211F1D; --surface-3: #2A2724;
  --border: #2F2C28; --border-2: #3D3934; --text: #F2EFEB; --text-2: #BDB7AF; --text-3: #8E8880;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 6px 18px rgba(0, 0, 0, .45); --shadow-3: 0 20px 60px rgba(0, 0, 0, .6);
  --ok: #4ADE80; --warn: #FBBF24; --danger: #F87171;
  --slate: #A9B7CB; --slate-b: rgba(148, 163, 184, .14); --sky: #7DD3FC; --sky-b: rgba(56, 189, 248, .14); --violet: #C4B5FD; --violet-b: rgba(167, 139, 250, .16);
  --indigo: #A5B4FC; --indigo-b: rgba(129, 140, 248, .16); --brand-t: #A9B5FF; --brand-b: rgba(131, 150, 255, .16); --amber: #FCD34D; --amber-b: rgba(251, 191, 36, .15);
  --pink: #F9A8D4; --pink-b: rgba(244, 114, 182, .15); --teal: #5EEAD4; --teal-b: rgba(45, 212, 191, .14); --green: #86EFAC; --green-b: rgba(74, 222, 128, .14);
  --gray: #A8A29E; --gray-b: rgba(168, 162, 158, .14); --red: #FCA5A5; --red-b: rgba(248, 113, 113, .15);
  color-scheme: dark;
}
.tone-slate { --tc: var(--slate); --tb: var(--slate-b); } .tone-sky { --tc: var(--sky); --tb: var(--sky-b); } .tone-violet { --tc: var(--violet); --tb: var(--violet-b); }
.tone-indigo { --tc: var(--indigo); --tb: var(--indigo-b); } .tone-brand { --tc: var(--brand-t); --tb: var(--brand-b); } .tone-amber { --tc: var(--amber); --tb: var(--amber-b); }
.tone-pink { --tc: var(--pink); --tb: var(--pink-b); } .tone-teal { --tc: var(--teal); --tb: var(--teal-b); } .tone-green { --tc: var(--green); --tb: var(--green-b); }
.tone-gray { --tc: var(--gray); --tb: var(--gray-b); } .tone-red { --tc: var(--red); --tb: var(--red-b); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; letter-spacing: -.01em; overflow-x: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.num, .tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-3); } .sub { color: var(--text-2); } .small { font-size: 13px; } .xs { font-size: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; min-width: 0; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .grow { flex: 1; min-width: 0; } .gap-4 { gap: 4px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; } .ic.lg { width: 24px; height: 24px; }

/* ── 부팅·로그인 ── */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-logo { width: 64px; height: 64px; border-radius: 18px; background: var(--brand); box-shadow: var(--shadow-2); animation: pulse 1.2s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 50% -10%, var(--brand-100), transparent 70%), var(--bg); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 32px 28px 28px; box-shadow: var(--shadow-3); }
.login-card h1 { font-size: 22px; margin: 18px 0 4px; letter-spacing: -.03em; }
.login-card p { margin: 0 0 22px; color: var(--text-2); font-size: 14px; }

/* ── 브랜드 마크 ── */
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad-ink); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: -.04em; box-shadow: 0 4px 12px rgba(16, 24, 40, .22), inset 0 1px 0 rgba(255, 255, 255, .14); flex: none; }
.mark.xl { width: 56px; height: 56px; border-radius: 17px; font-size: 19px; }

/* ── 레이아웃 ── */
.shell { min-height: 100vh; }
.side { display: none; }
.topbar { position: sticky; top: 0; z-index: 30; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0 16px; display: flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar h1 { font-size: 19px; margin: 0; letter-spacing: -.03em; font-weight: 750; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { padding: 8px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); max-width: 1480px; margin: 0 auto; }
.bottomnav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--border); }
.bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--text-3); text-decoration: none; background: none; border: 0; min-height: 44px; }
.bottomnav .active { color: var(--brand); }
.bottomnav .fab-slot { position: relative; }
.bottomnav .fab, .fab { width: 54px; height: 54px; min-height: 54px; border-radius: 18px; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px var(--glow); transform: translateY(-12px); transition: transform .2s var(--ease); }
.bottomnav .fab:active, .fab:active { transform: translateY(-10px) scale(.96); }
.bottomnav .fab .ic, .fab .ic { color: #fff; width: 26px; height: 26px; stroke-width: 2.2; }
@media (min-width: 960px) {
  body { font-size: 14.5px; }
  .side { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--side-w); padding: 18px 12px 14px; background: var(--surface); border-right: 1px solid var(--border); z-index: 35; overflow-y: auto; }
  .shell { padding-left: var(--side-w); }
  .bottomnav { display: none; }
  .topbar { padding: 0 24px 0 28px; height: 64px; }
  .topbar h1 { font-size: 21px; }
  .main { padding: 8px 28px 48px; }
  .m-only { display: none !important; }
}
@media (max-width: 959.98px) { .d-only { display: none !important; } }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.side-brand b { display: block; font-size: 15px; letter-spacing: -.03em; } .side-brand span { font-size: 12px; color: var(--text-3); }
.side-group { font-size: 11.5px; font-weight: 700; color: var(--text-3); padding: 14px 12px 6px; letter-spacing: .02em; }
.side a.nav { display: flex; align-items: center; gap: 11px; padding: 0 12px; height: 40px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.side a.nav:hover { background: var(--surface-3); color: var(--text); }
.side a.nav.active { background: var(--brand-50); color: var(--brand-t); }
.side a.nav.active .ic { color: var(--brand); }
.side a.nav .count { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--text-3); background: var(--surface-3); border-radius: 99px; padding: 1px 8px; }
.side a.nav.active .count { background: var(--brand-100); color: var(--brand-t); }
.side-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-weight: 650; font-size: 14.5px; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; user-select: none; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 2px 6px var(--glow); }
.btn.primary:hover { background: var(--brand-600); }
.btn.soft { background: var(--brand-50); border-color: transparent; color: var(--brand-t); }
.btn.soft:hover { background: var(--brand-100); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.danger { color: var(--danger); } .btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.xs { min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); flex: none; -webkit-tap-highlight-color: transparent; }
.iconbtn:hover { background: var(--surface-3); color: var(--text); }
.iconbtn.sm { width: 36px; height: 36px; border-radius: 10px; }
.iconbtn.bordered { border: 1px solid var(--border-2); background: var(--surface); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 카드 ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-width: 0; }
.card.pad { padding: 16px; } .card.pad-lg { padding: 20px; }
.card-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; min-height: 52px; }
.card-h h2, .card-h h3 { margin: 0; font-size: 15.5px; font-weight: 750; letter-spacing: -.02em; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.card-h .ic { color: var(--brand); }
.card-b { padding: 0 16px 16px; }
.card-b.flush { padding: 0 0 6px; }
.section-title { font-size: 13px; font-weight: 750; color: var(--text-3); margin: 22px 2px 8px; display: flex; align-items: center; gap: 6px; letter-spacing: .01em; }
.grid { display: grid; gap: 14px; }
.grid.dash { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.dash { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1240px) { .grid.dash { grid-template-columns: 1.15fr 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .span-2 { grid-column: span 2; } }
@media (min-width: 720px) and (max-width: 1239.98px) { .span-2-md { grid-column: span 2; } }

/* ── KPI ── */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.kpi { position: relative; overflow: hidden; padding: 14px 14px 13px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); text-decoration: none; display: block; min-width: 0; }
.kpi .k-label { font-size: 12.5px; color: var(--text-2); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.kpi .k-val { font-size: 22px; font-weight: 800; letter-spacing: -.035em; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .k-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.accent { background: var(--grad-ink); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(16, 24, 40, .18); }
.kpi.accent .k-label, .kpi.accent .k-sub { color: rgba(255, 255, 255, .88); }
.kpi .k-ic { position: absolute; right: -6px; bottom: -8px; width: 56px; height: 56px; opacity: .08; }
.kpi.accent .k-ic { opacity: .18; color: #fff; }
@media (min-width: 900px) { .kpi { padding: 16px 18px; } .kpi .k-val { font-size: 25px; } }

/* ── 배지·칩 ── */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--tc, var(--text-2)); background: var(--tb, var(--surface-3)); white-space: nowrap; flex: none; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.sm { height: 20px; font-size: 11px; padding: 0 7px; }
.badge.outline { background: transparent; border: 1px solid currentColor; }
.badge.sample { --tc: var(--violet); --tb: var(--violet-b); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--border-2); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--text-3); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .n { font-size: 12px; opacity: .7; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.dday { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 7px; white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
.dday.ok { color: var(--text-2); background: var(--surface-3); } .dday.warn { color: var(--amber); background: var(--amber-b); } .dday.danger { color: var(--red); background: var(--red-b); } .dday.over { color: #fff; background: var(--danger); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; }

/* ── 목록 ── */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; min-height: 56px; text-decoration: none; color: inherit; border-top: 1px solid var(--border); transition: background .12s; cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.li:first-child { border-top: 0; }
.li:hover { background: var(--surface-2); }
.li .li-main { flex: 1; min-width: 0; }
.li .li-title { font-weight: 650; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .li-sub { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.li .li-end { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.li .amt { font-weight: 750; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.li.selected { background: var(--brand-50); }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; color: var(--tc); background: var(--tb); }
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--border-2); display: grid; place-items: center; flex: none; background: var(--surface); transition: all .15s; cursor: pointer; padding: 0; }
.check.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.check .ic { width: 14px; height: 14px; stroke-width: 3; opacity: 0; } .check.on .ic { opacity: 1; }
.checkwrap { display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -8px -10px -12px; background: none; border: 0; flex: none; }
.done-text { text-decoration: line-through; color: var(--text-3); }

/* ── 폼 ── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label.lbl { font-size: 13px; font-weight: 650; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); font-weight: 500; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); transition: border-color .15s, box-shadow .15s; font-size: 16px; }
@media (min-width: 960px) { .input, .select, .textarea { font-size: 14.5px; min-height: 42px; } }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A909C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input.sm, .select.sm { min-height: 36px; padding: 6px 10px; border-radius: 9px; font-size: 14px; }
.input.num { text-align: right; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; font-weight: 600; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 44px; height: 26px; border-radius: 99px; background: var(--border-2); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-3); gap: 2px; flex: none; }
.seg button { border: 0; background: none; min-height: 36px; padding: 0 13px; border-radius: 9px; font-weight: 650; font-size: 13.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.searchbox { position: relative; flex: 1; min-width: 0; }
.searchbox .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.searchbox .input { padding-left: 40px; }
.toolbar { display: flex; gap: 8px; align-items: center; margin: 4px 0 12px; flex-wrap: wrap; }
.dup-warn { padding: 10px 12px; border-radius: 12px; background: var(--amber-b); color: var(--amber); font-size: 13px; font-weight: 600; }

/* ── 알림 띠 ── */
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--tb, var(--surface-3)); color: var(--tc, var(--text-2)); font-size: 13.5px; font-weight: 550; line-height: 1.5; }
.callout .ic { margin-top: 1px; }
.callout b { font-weight: 750; }
.offline-bar { position: sticky; top: 0; z-index: 60; background: var(--text); color: var(--bg); text-align: center; font-size: 13px; font-weight: 650; padding: 6px 12px; }

/* ── 단계 진행 바 ── */
.steps { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.steps::-webkit-scrollbar { display: none; }
.step { flex: 1 0 auto; min-width: 58px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--text-3); background: none; border: 0; padding: 4px 2px; }
.step i { display: block; width: 100%; height: 6px; border-radius: 99px; background: var(--surface-3); }
.step.done i { background: var(--brand-100); } .step.done { color: var(--text-2); }
.step.cur i { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); } .step.cur { color: var(--brand-t); }
.step.can { cursor: pointer; } .step.can:hover { color: var(--text); }
.step:not(.can) { cursor: default; }

/* ── 칸반 ── */
.board { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 16px; }
@media (min-width: 960px) { .board { margin: 0; padding-left: 2px; padding-right: 2px; scroll-snap-type: none; } }
.lane { flex: 0 0 82%; max-width: 320px; scroll-snap-align: start; background: color-mix(in srgb, var(--surface-3) 75%, var(--border)); border-radius: var(--r-lg); padding: 10px 8px 8px; display: flex; flex-direction: column; min-height: 220px; transition: background .15s, box-shadow .15s; }
@media (min-width: 600px) { .lane { flex-basis: 280px; } }
@media (min-width: 960px) { .lane { flex-basis: 232px; min-height: calc(100vh - 250px); } }
@media (min-width: 1500px) { .lane { flex-basis: 248px; } }
.lane.drop-ok { background: var(--brand-50); box-shadow: inset 0 0 0 2px var(--brand-100); }
.lane.drop-bad { opacity: .45; }
.lane.drop-hover { background: var(--brand-100); box-shadow: inset 0 0 0 2px var(--brand); }
.lane-h { display: flex; align-items: center; gap: 8px; padding: 2px 6px 10px; font-weight: 750; font-size: 14px; }
.lane-h .n { font-size: 12px; font-weight: 700; color: var(--text-3); background: var(--surface); border-radius: 99px; padding: 0 8px; }
.lane-h .sum { margin-left: auto; font-size: 12px; color: var(--text-3); font-weight: 650; }
.lane-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 60px; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 11px 12px; box-shadow: var(--shadow-1); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: box-shadow .15s, transform .15s, opacity .15s; text-decoration: none; color: inherit; display: block; position: relative; }
.kcard:hover { box-shadow: var(--shadow-2); }
.kcard.dragging { opacity: .35; }
.kcard .k-title { font-weight: 700; font-size: 14px; line-height: 1.35; margin: 2px 0 2px; overflow-wrap: anywhere; }
.kcard .k-cust { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard .k-foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.kcard .k-amt { margin-left: auto; font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--text-2); }
.kcard .prio { position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; }
.prio.high { background: var(--danger); } .prio.low { background: var(--border-2); }
.drag-ghost { position: fixed; z-index: 1000; pointer-events: none; box-shadow: var(--shadow-3); transform: rotate(2deg) scale(1.03); opacity: .96; }
.lane-empty { border: 1.5px dashed var(--border-2); border-radius: 12px; color: var(--text-3); font-size: 12.5px; display: grid; place-items: center; min-height: 64px; text-align: center; padding: 8px; }
.kmini { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.kmini.warn { color: var(--amber); } .kmini.bad { color: var(--red); }

/* ── 진행 요약 막대 ── */
.stackbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.stackbar span { display: block; height: 100%; background: var(--tc); min-width: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.legend a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); text-decoration: none; font-weight: 600; min-height: 28px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--tc); display: block; }

/* ── 차트 ── */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { fill: var(--brand-100); transition: fill .15s; } .chart .bar.cur { fill: var(--brand); }
.chart .bar:hover { fill: var(--brand-600); }
.chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .val { fill: var(--text-2); font-weight: 700; font-size: 10.5px; }
.chart .grid-l { stroke: var(--border); stroke-dasharray: 3 4; }
.hbar { display: grid; grid-template-columns: minmax(70px, 1fr) 2fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 7px 0; }
.hbar .track { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; position: relative; }
.hbar .fill { height: 100%; border-radius: 99px; background: var(--brand); }
.hbar .fill.below { background: var(--amber); }
.hbar .target { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text-2); border-radius: 2px; }

/* ── 타임라인 ── */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 2px; }
.tl { position: relative; padding: 6px 0 12px; }
.tl .tl-dot { position: absolute; left: -26px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-2); color: var(--text-3); }
.tl .tl-dot .ic { width: 11px; height: 11px; stroke-width: 2.4; }
.tl.pay .tl-dot { border-color: var(--green); color: var(--green); } .tl.quote .tl-dot { border-color: var(--violet); color: var(--violet); } .tl.status .tl-dot { border-color: var(--brand); color: var(--brand); } .tl.note .tl-dot { border-color: var(--sky); color: var(--sky); }
.tl .tl-text { font-size: 13.5px; font-weight: 550; overflow-wrap: anywhere; }
.tl .tl-at { font-size: 11.5px; color: var(--text-3); }

/* ── 표 ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text-3); padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr:hover td { background: var(--surface-2); }

/* ── 시트·모달 ── */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 24, .42); backdrop-filter: blur(2px); animation: fade .2s var(--ease); }
.sheet { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 92vh; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: up .28s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--border-2); margin: 8px auto 0; flex: none; }
.sheet-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 20px; flex: none; }
.sheet-h h2 { flex: 1; margin: 0; font-size: 18px; letter-spacing: -.03em; min-width: 0; }
.sheet-b { padding: 4px 20px 16px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sheet-f { display: flex; gap: 8px; padding: 12px 20px 14px; border-top: 1px solid var(--border); flex: none; flex-wrap: wrap; }
.sheet-f .btn { flex: 1; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(560px, calc(100vw - 48px)); transform: translate(-50%, -50%); border-radius: 20px; max-height: 86vh; animation: pop .22s var(--ease); padding-bottom: 0; }
  .sheet.wide { width: min(860px, calc(100vw - 48px)); }
  .sheet::before { display: none; }
  .sheet-h { padding: 16px 12px 6px 24px; }
  .sheet-b { padding: 6px 24px 18px; }
  .sheet-f { padding: 14px 24px 18px; justify-content: flex-end; }
  .sheet-f .btn { flex: 0 0 auto; min-width: 96px; }
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 650; font-size: 13px; color: var(--text); text-decoration: none; cursor: pointer; transition: all .15s; text-align: center; }
.qa:hover { border-color: var(--brand-100); background: var(--brand-50); }
.qa .qa-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--tc); background: var(--tb); }
.qa .qa-ic .ic { width: 24px; height: 24px; }

/* ── 토스트 ── */
#toast-root { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 24px)); }
@media (min-width: 960px) { #toast-root { bottom: 24px; left: calc(50% + var(--side-w) / 2); } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 8px 8px 16px; border-radius: 14px; background: #1A1D24; color: #F1F3F7; box-shadow: var(--shadow-3); font-size: 14px; font-weight: 600; animation: toastin .25s var(--ease); max-width: 100%; }
.toast.err { background: #B91C1C; color: #fff; }
.toast .t-msg { flex: 1; min-width: 0; padding: 4px 0; }
.toast button { background: rgba(255, 255, 255, .12); border: 0; color: #A9B5FF; font-weight: 750; border-radius: 10px; min-height: 36px; padding: 0 12px; }
.toast.leaving { animation: toastout .2s var(--ease) forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toastout { to { opacity: 0; transform: translateY(8px); } }

/* ── 빈 상태·스켈레톤 ── */
.empty { text-align: center; padding: 28px 16px 26px; color: var(--text-2); }
.empty svg { width: 132px; height: auto; margin: 0 auto 10px; display: block; }
.empty h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); letter-spacing: -.02em; }
.empty p { margin: 0 auto 14px; font-size: 13.5px; max-width: 320px; }
.empty.sm { padding: 16px; } .empty.sm svg { width: 84px; }
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── 상세 레이아웃 ── */
.detail { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .detail { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); align-items: start; } .detail .aside { position: sticky; top: 76px; } }
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .split { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); align-items: start; } .split .split-list { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; } }
.hero { padding: 18px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.hero h2 { margin: 6px 0 4px; font-size: 21px; letter-spacing: -.035em; line-height: 1.3; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--text-3); font-weight: 600; white-space: nowrap; } .kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.money-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.money-box > div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.money-box span { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 650; }
.money-box b { display: block; font-size: 15.5px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s var(--ease); }
.counter { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); }
.counter b { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; font-size: 15px; }
.counter b.over { color: var(--danger); }
.mat { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--border); }
.mat:first-child { border-top: 0; }
.statepick { display: inline-flex; gap: 2px; background: var(--surface-3); padding: 2px; border-radius: 10px; flex: none; }
.statepick button { border: 0; background: none; font-size: 12px; font-weight: 700; padding: 0 9px; min-height: 32px; border-radius: 8px; color: var(--text-3); }
.statepick button.on.needed { background: var(--red-b); color: var(--red); } .statepick button.on.received { background: var(--green-b); color: var(--green); } .statepick button.on.na { background: var(--surface); color: var(--text-2); }

/* ── 견적 편집 ── */
.qitems { display: flex; flex-direction: column; gap: 8px; }
.qitem { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.qitem .qi-row { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 6px; grid-column: 1 / -1; align-items: center; }
.qitem .qi-amt { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; font-size: 15px; white-space: nowrap; }
.qitem.expense { background: var(--surface); border-style: dashed; }
@media (min-width: 900px) { .qitem { grid-template-columns: 80px minmax(0, 1fr) 120px auto; align-items: center; } .qitem > .col { grid-column: 1 / -1; flex-direction: row; } .qitem > .col > input:first-child { flex: 1.3; } .qitem > .col > input:last-child { flex: 1; } .qitem .qi-row { display: contents; } }
.catpick { display: flex; flex-direction: column; gap: 6px; }
.catrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; width: 100%; min-height: 56px; }
.catrow:hover { border-color: var(--brand-100); background: var(--brand-50); }
.catrow .price { margin-left: auto; font-weight: 800; color: var(--brand-t); font-size: 13.5px; white-space: nowrap; }
.totals { display: flex; flex-direction: column; gap: 2px; }
.totals .t-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; font-variant-numeric: tabular-nums; gap: 12px; }
.totals .t-row span:first-child { color: var(--text-2); }
.totals .t-total { border-top: 2px solid var(--text); margin-top: 6px; padding-top: 10px; font-size: 18px; font-weight: 800; }
.totals .t-total span:last-child { color: var(--brand-t); }
.sticky-bar { position: sticky; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 20; margin-top: 14px; display: flex; gap: 8px; align-items: center; padding: 10px 10px 10px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: var(--shadow-2); }
@media (min-width: 960px) { .sticky-bar { bottom: 16px; } }
.save-state { font-size: 12.5px; color: var(--text-3); font-weight: 600; }

/* ── 캘린더 ── */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--border); gap: 1px; }
.cal .dow { background: var(--surface-2); text-align: center; font-size: 12px; font-weight: 700; color: var(--text-3); padding: 8px 0; }
.cal .dow.sun { color: var(--red); } .cal .dow.sat { color: var(--sky); }
.cal .day { background: var(--surface); min-height: 74px; padding: 5px 4px 4px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; border: 0; text-align: left; position: relative; }
@media (min-width: 900px) { .cal .day { min-height: 112px; padding: 7px 7px 6px; } }
.cal .day.out { background: var(--surface-2); } .cal .day.out .dn { opacity: .45; }
.cal .day .dn { font-size: 12.5px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.cal .day.today .dn b { background: var(--brand); color: #fff; border-radius: 99px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 5px; }
.cal .day.sel { box-shadow: inset 0 0 0 2px var(--brand); }
.cal .day .avail { position: absolute; right: 5px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); opacity: .65; }
.cal .day .avail.full { width: 14px; border-radius: 4px; }
.cal .ev { font-size: 11px; font-weight: 650; line-height: 1.25; padding: 2px 5px; border-radius: 5px; color: var(--tc); background: var(--tb); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.done { opacity: .5; text-decoration: line-through; }
.cal .more { font-size: 10.5px; color: var(--text-3); font-weight: 700; padding-left: 4px; }
@media (max-width: 599.98px) { .cal .ev { font-size: 0; height: 5px; padding: 0; border-radius: 3px; background: var(--tc); } .cal .more { display: none; } }
.week { display: grid; gap: 10px; }
@media (min-width: 900px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; } }
.wday { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; min-height: 90px; min-width: 0; }
.wday.today { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.wday h4 { margin: 0 0 6px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.wday .slot { font-size: 11px; color: var(--green); font-weight: 700; }
.wday .ev { display: block; font-size: 12px; font-weight: 650; padding: 5px 7px; border-radius: 7px; margin-top: 4px; color: var(--tc); background: var(--tb); text-decoration: none; overflow-wrap: anywhere; }

/* ── 검색 팔레트 ── */
.palette { position: fixed; z-index: 90; left: 50%; top: 10vh; transform: translateX(-50%); width: min(620px, calc(100vw - 24px)); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-3); border: 1px solid var(--border); overflow: hidden; animation: fade .15s; }
.palette .p-in { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-bottom: 1px solid var(--border); }
.palette .p-in input { flex: 1; border: 0; background: none; min-height: 52px; font-size: 17px; outline: none; }
.palette .p-res { max-height: 56vh; overflow-y: auto; padding: 6px; }
.palette .p-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; text-decoration: none; color: inherit; min-height: 48px; }
.palette .p-item.on, .palette .p-item:hover { background: var(--brand-50); }
.palette .p-grp { font-size: 11.5px; font-weight: 750; color: var(--text-3); padding: 10px 12px 4px; }
kbd { font-family: inherit; font-size: 11.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text-2); }

/* ── 온보딩 ── */
.onb { background: linear-gradient(140deg, var(--brand-50), transparent 70%), var(--surface); }
.onb-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; font-weight: 600; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.onb-item:first-child { border-top: 0; }
.onb-item .check { cursor: default; }

/* ── 타이머 칩 ── */
.timerchip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 10px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-weight: 750; font-size: 13px; border: 0; font-variant-numeric: tabular-nums; box-shadow: 0 3px 10px var(--glow); }
.timerchip .rec { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.timer-big { font-size: 40px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; text-align: center; margin: 4px 0; }

/* ── 보관함 ── */
.vault-locked { text-align: center; padding: 22px 16px; }
.secret { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13.5px; background: var(--surface-3); padding: 6px 10px; border-radius: 8px; overflow-wrap: anywhere; }

/* ── 문서(인쇄 미리보기) ── */
#print-root:empty { display: none; }
.print-overlay { position: fixed; inset: 0; z-index: 95; background: var(--bg-2); overflow: auto; }
.print-bar { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-1); }
.print-bar .title { flex: 1; font-weight: 750; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paper-wrap { padding: 20px 12px 60px; overflow-x: auto; }
.paper { width: 210mm; min-height: 297mm; margin: 0 auto; background: #fff; color: #14161B; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); padding: 18mm 17mm 16mm; font-size: 10.5pt; line-height: 1.55; position: relative; }
@media (max-width: 830px) { .paper { zoom: .5; } }
@media (max-width: 830px) and (min-width: 600px) { .paper { zoom: .75; } }
.doc-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #3B54E0; padding-bottom: 10px; margin-bottom: 16px; gap: 16px; }
.doc-head h1 { font-size: 26pt; letter-spacing: .32em; margin: 0; font-weight: 800; color: #14161B; }
.doc-head .doc-no { text-align: right; font-size: 9.5pt; color: #4B5260; line-height: 1.6; }
.doc-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12pt; }
.doc-brand .mark { width: 30px; height: 30px; font-size: 10.5px; border-radius: 9px; box-shadow: none; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.doc-box { border: 1px solid #E3E6EB; border-radius: 8px; padding: 10px 12px; }
.doc-box h4 { margin: 0 0 6px; font-size: 9pt; color: #8A909C; font-weight: 700; letter-spacing: .05em; }
.doc-box .big { font-size: 14pt; font-weight: 800; }
.doc-box table { width: 100%; font-size: 9.5pt; border-collapse: collapse; }
.doc-box td { padding: 1.5px 0; vertical-align: top; } .doc-box td:first-child { color: #8A909C; width: 70px; white-space: nowrap; }
table.doc-tbl { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 10pt; }
.doc-tbl th { background: #EEF1FE; border-top: 2px solid #3B54E0; border-bottom: 1px solid #E3E6EB; padding: 7px 8px; text-align: left; font-size: 9pt; color: #4B5260; }
.doc-tbl td { border-bottom: 1px solid #EDEFF2; padding: 7px 8px; vertical-align: top; }
.doc-tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-tbl .spec { display: block; font-size: 8.5pt; color: #8A909C; }
.doc-tbl tr.sec td { background: #F7F8FA; font-weight: 700; font-size: 9pt; color: #4B5260; }
.doc-sum { margin-left: auto; width: 82mm; font-size: 10pt; }
.doc-sum div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #EDEFF2; font-variant-numeric: tabular-nums; }
.doc-sum .tot { font-size: 14pt; font-weight: 800; color: #2F45C8; border-bottom: 2px solid #3B54E0; padding: 8px 0; }
.doc-sum .pay { background: #EEF1FE; padding: 6px 8px; border-radius: 6px; border: 0; margin-top: 4px; font-weight: 700; }
.doc-note { margin-top: 16px; font-size: 9pt; color: #4B5260; background: #F7F8FA; border-radius: 8px; padding: 10px 12px; white-space: pre-line; line-height: 1.75; }
.doc-foot { position: absolute; left: 17mm; right: 17mm; bottom: 10mm; display: flex; justify-content: space-between; font-size: 8.5pt; color: #8A909C; border-top: 1px solid #EDEFF2; padding-top: 6px; }
.doc-sign { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-sign div { border-top: 1px solid #14161B; padding-top: 6px; font-size: 9.5pt; color: #4B5260; min-height: 40px; }
.doc-agree ol { padding-left: 18px; margin: 8px 0; } .doc-agree li { margin: 6px 0; }
.doc-stamp { display: inline-block; border: 2px solid #3B54E0; color: #2F45C8; font-weight: 800; padding: 4px 12px; border-radius: 6px; transform: rotate(-4deg); font-size: 11pt; }
.doc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 14px; }
.doc-kpis div { border: 1px solid #E3E6EB; border-radius: 8px; padding: 8px 10px; }
.doc-kpis span { display: block; font-size: 8.5pt; color: #8A909C; } .doc-kpis b { font-size: 12.5pt; font-variant-numeric: tabular-nums; }

/* ── 기타 ── */
.pill-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.linkish { color: var(--brand-t); font-weight: 650; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.code-ver { font-size: 11px; color: var(--text-3); padding: 0 12px; }
.help-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; align-items: center; }
.fade-in { animation: fadein .28s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.65; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0; font-family: inherit; }
.tpl-card .pre { max-height: 180px; overflow: auto; }
.port-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.port-card { overflow: hidden; }
.port-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, var(--tb), var(--surface-3)); color: var(--tc); }
.port-cover .ic { width: 40px; height: 40px; stroke-width: 1.4; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }

.hero-row > .grow { flex: 1 1 280px; }
@media (max-width: 600px) { .hero h2 { font-size: 19px; } }
.cal .ev { display: block; }
.side a.nav .count:empty { display: none; }
@media (max-width: 600px) { .adj-row > input[data-qa="label"] { flex-basis: 100%; } }
/* ── 현장 원스톱 ── */
.fd { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 84px; }
.fd-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px 6px; box-shadow: var(--shadow-1); }
.fd-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; font-size: 11px; font-weight: 700; color: var(--text-3); min-height: 48px; padding: 0; }
.fd-dot i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); font-size: 12px; }
.fd-dot.done i { background: var(--brand-100); color: var(--brand-t); } .fd-dot.cur i { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-50); } .fd-dot.cur { color: var(--brand-t); }
.fd-dot[disabled] { cursor: default; }
.fd-body { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-1); }
.fd-h { font-size: 20px; letter-spacing: -.03em; margin: 2px 0 14px; }
.fd-custs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fd-cust { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 650; font-size: 14px; text-align: left; }
.fd-cust.on { border-color: var(--brand); background: var(--brand-50); }
.fd-prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fd-prod { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 12px; min-height: 112px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); text-align: left; }
.fd-prod b { font-size: 15px; } .fd-prod small { color: var(--text-3); font-size: 12px; font-weight: 600; }
.fd-prod.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 2px var(--brand-100); }
.fd-preview { border-radius: 14px; overflow: hidden; background: repeating-conic-gradient(var(--surface-3) 0% 25%, var(--surface-2) 0% 50%) 50% / 16px 16px; padding: 12px; display: grid; place-items: center; }
.fd-preview svg { width: 100%; height: auto; max-height: 260px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); background: #fff; }
.fd-preview.big svg { max-height: 62vh; }
.fd-sign { position: relative; border: 2px dashed var(--border-2); border-radius: 14px; background: #fff; }
.fd-sign canvas { display: block; width: 100%; height: 150px; touch-action: none; cursor: crosshair; }
.fd-sign .btn { position: absolute; right: 6px; top: 6px; }
.fd-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 8px; padding: 10px 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.fd-bar .btn { min-height: 52px; font-size: 16px; }
@media (min-width: 960px) { .fd-bar { left: var(--side-w); bottom: 0; justify-content: center; } .fd-bar .btn.grow { flex: 0 1 380px; } }
.fd-done { text-align: center; } .fd-done .col { text-align: left; }
.fd-check { width: 72px; height: 72px; border-radius: 50%; background: var(--green-b); color: var(--green); display: grid; place-items: center; margin: 6px auto 8px; }
.fd-check .ic { width: 38px; height: 38px; stroke-width: 2.6; }
.start-big { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 18px; border: 0; border-radius: 20px; background: var(--grad-ink); color: #fff; text-align: left; box-shadow: 0 10px 26px rgba(16, 24, 40, .2); margin-bottom: 12px; text-decoration: none; }
.start-big .ic { width: 30px; height: 30px; flex: none; }
.start-big b { display: block; font-size: 18px; letter-spacing: -.03em; } .start-big span { font-size: 13px; opacity: .92; }