/* ═══════════════════════════════════════════════════════════════════
   Dashboard — R&D 커맨드 센터 (pages/dashboard.js)
   모든 클래스는 dash-* 접두사. 공용 토큰/컴포넌트는 app.css 를 따른다.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 헤더 ─────────────────────────────────────────────────────────── */
.dash-head { margin-bottom: 20px; }
.dash-head h1 { font-size: 26px; }
.dash-head .sub { margin-top: 2px; }
.dash-sub-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 14.5px; color: var(--text-3); }
.dash-sub-part { white-space: nowrap; }
.dash-sub-part:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--slate-300); font-weight: 400; }
.dash-sub-live:not(:last-child)::after { margin-left: 3px; }
.dash-sub-live { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.dash-dot-sep { color: var(--slate-300); }
.dash-sk-text { display: inline-block; width: 340px; max-width: 70vw; height: 14px; vertical-align: middle; }

/* ─── KPI ─────────────────────────────────────────────────────────── */
.dash-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.dash-kpi { padding: 16px 18px; display: flex; flex-direction: column; min-height: 132px; }
.dash-kpi .stat-label { margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-kpi .stat-label .ico { color: var(--primary); opacity: .85; }
/* 큰 단독 숫자는 비례폭 숫자 (tabular 는 표 정렬용) */
.dash-kpi .stat-value { font-size: 28px; font-variant-numeric: normal; font-feature-settings: normal; margin-bottom: 8px; }
.dash-kpi .stat-value .unit { font-size: 14px; }
.dash-kpi .stat-desc { font-size: 12.5px; line-height: 1.45; margin-top: auto; }
.dash-kpi .stat-delta { font-size: 12px; padding: 1px 6px; }
.dash-kpi.clickable:focus-visible { box-shadow: var(--focus); border-color: var(--brand-400); }
.dash-kpi.warn .stat-desc { color: #b45309; font-weight: 600; }
.dash-kpi.is-loading { pointer-events: none; }

/* ─── 메인 그리드 ─────────────────────────────────────────────────── */
.dash-grid {
  display: grid; gap: 20px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-areas: "decision next" "reports side";
  align-items: stretch;
}
.dash-grid.has-running { grid-template-areas: "running running" "decision next" "reports side"; }
.dash-card { margin-bottom: 0; min-width: 0; }
.dash-area-decision { grid-area: decision; container-type: inline-size; display: flex; flex-direction: column; }
.dash-area-next { grid-area: next; }
.dash-link.btn { gap: 6px; color: var(--primary); padding: 0 10px; }
.dash-link.btn:hover { color: var(--primary-hover); background: var(--primary-soft); }
.dash-link .ico { transition: transform .15s; }
.dash-link:hover .ico { transform: translateX(2px); }
.dash-area-reports { grid-area: reports; align-self: start; }
.dash-side { grid-area: side; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dash-span-all { grid-column: 1 / -1; margin-bottom: 0; }
.dash-card.is-loading { pointer-events: none; }
.dash-card .card-head { margin-bottom: 16px; }
.dash-card .card-sub { margin: 4px 0 0; font-size: 13.5px; }
.dash-card .empty-state { padding: 28px 16px 20px; }

/* ─── 의사결정 현황 ───────────────────────────────────────────────── */
.dash-dec-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; margin-bottom: 24px; }
.dash-dec-right { border-left: 1px solid var(--line); padding-left: 28px; display: flex; flex-direction: column; }
@container (max-width: 600px) {
  .dash-dec-body { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .dash-dec-right { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}
.dash-hero-row { display: flex; align-items: center; gap: 14px; }
.dash-hero-num { font-family: var(--font-sans); font-size: 48px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--text); }
.dash-hero-num span { font-size: 22px; font-weight: 650; color: var(--text-3); margin-left: 2px; letter-spacing: 0; }
.dash-hero-cap { display: flex; flex-direction: column; line-height: 1.35; }
.dash-hero-cap b { font-size: 14px; color: var(--text); }
.dash-hero-cap span { font-size: 13px; color: var(--text-3); }

.dash-vbar { display: flex; gap: 2px; height: 22px; margin: 18px 0 14px; }
.dash-vseg {
  min-width: 8px; display: flex; align-items: center; justify-content: center;
  transition: filter .15s, transform .15s; cursor: default; outline: none;
}
.dash-vseg:first-child { border-radius: 5px 0 0 5px; }
.dash-vseg:last-child { border-radius: 0 5px 5px 0; }
.dash-vseg:only-child { border-radius: 5px; }
.dash-vseg:hover, .dash-vseg:focus-visible { filter: brightness(1.1) saturate(1.05); }
.dash-vseg:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-400); }
.dash-vseg-lbl { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; padding: 0 8px; }
.dash-vseg-lbl.is-hidden { visibility: hidden; }

.dash-vlegend { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.dash-vlegend li {
  display: grid; grid-template-columns: 10px 64px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--slate-100); font-size: 13.5px;
}
.dash-vlegend li:last-child { border-bottom: none; }
.dash-sw { width: 10px; height: 10px; border-radius: 3px; }
.dash-vlegend-k { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; color: var(--text); }
.dash-vlegend-d { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-vlegend-n { font-family: var(--font-display); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.dash-vlegend-n small { font-size: 12px; font-weight: 600; color: var(--text-4); margin-left: 6px; display: inline-block; min-width: 32px; }

.dash-mini-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.dash-mini-head .text-faint { font-size: 12px; font-weight: 500; }
.dash-funnel { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dash-funnel-row { padding: 6px 8px 8px; margin: 0 -8px; border-radius: 8px; outline: none; }
.dash-funnel-row:hover, .dash-funnel-row:focus-visible { background: var(--surface-2); }
.dash-funnel-row:focus-visible { box-shadow: var(--focus); }
.dash-funnel-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dash-funnel-k { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); min-width: 0; }
.dash-funnel-i { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--text-3); background: var(--surface-3); font-family: var(--font-display); }
.dash-funnel-n { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-funnel-n small { font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--text-4); margin-left: 8px; display: inline-block; min-width: 34px; text-align: right; }
.dash-funnel-track { height: 10px; background: var(--surface-3); border-radius: 0 4px 4px 0; display: flex; }
.dash-funnel-bar { display: block; height: 100%; border-radius: 0 4px 4px 0; transition: width .6s var(--ease); }
.dash-nudge {
  margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: var(--r-md);
  background: var(--warning-light); border: 1px solid #fde68a; color: #92400e; font-size: 13px; line-height: 1.45;
}
.dash-dec-right .dash-nudge { margin-top: 16px; }
.dash-dec-foot {
  display: flex; align-items: flex-start; gap: 10px;
  margin: auto -24px -24px; padding: 14px 24px;
  border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg);
  font-size: 12.5px; color: var(--text-3); line-height: 1.5;
}
.dash-dec-foot > .ico { color: var(--text-4); margin-top: 2px; }
.dash-dec-rules { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.dash-dec-rules b { color: var(--text-2); font-weight: 650; }
.dash-dec-rules > span { display: inline-flex; align-items: center; gap: 6px; }
.dash-dec-rules .dash-sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.dash-dec-foot .dash-link.btn { height: 26px; margin: -3px -8px -3px 0; }
.dash-nudge > .ico { color: var(--warning); }
.dash-nudge > span:not(.ico) { flex: 1; min-width: 160px; }

/* ─── 시작 가이드 ─────────────────────────────────────────────────── */
.dash-count { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.dash-count b { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.dash-ob-bar { margin: -4px 0 12px; }
.dash-steps { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.dash-step {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; margin: 0 -10px; border-radius: var(--r-md);
  cursor: pointer; transition: background .12s; outline: none;
}
.dash-step:hover { background: var(--surface-2); }
.dash-step:focus-visible { box-shadow: var(--focus); }
.dash-step-mark {
  width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line-strong); color: var(--text-3); background: var(--surface);
}
.dash-step-mark.done { background: var(--success-light); border-color: #a7f3d0; color: var(--success); }
.dash-step.is-next .dash-step-mark { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(13,148,136,.14); }
.dash-step-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.dash-step-t { font-size: 14px; font-weight: 600; color: var(--text); }
.dash-step-s { font-size: 12.5px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-step.is-done .dash-step-t { color: var(--text-3); font-weight: 550; }
.dash-step.is-done .dash-step-s { color: var(--success); font-weight: 600; }
.dash-step-go { color: var(--text-4); }
.dash-area-next { display: flex; flex-direction: column; }
.dash-help {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: auto -24px -24px; padding: 12px 24px;
  border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg);
  font-size: 13px; color: var(--text-3);
}
.dash-help > .ico { color: var(--text-4); }
.dash-help .dash-link.btn { height: 28px; margin-left: auto; margin-right: -8px; }
.dash-step:hover .dash-step-go { color: var(--primary); }

/* ─── 최근 리포트 ─────────────────────────────────────────────────── */
.dash-card-head-pad { padding: 20px 20px 16px; margin: 0 !important; border-bottom: 1px solid var(--line); }
.dash-reps .dash-rep {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "ic main verdict actions";
  align-items: center; gap: 14px; padding: 14px 20px; outline: none;
}
.dash-rep > .ico-tile { grid-area: ic; align-self: start; margin-top: 2px; }
.dash-rep:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-400); }
.dash-rep-main { grid-area: main; min-width: 0; }
.dash-rep-title { font-size: 14.5px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.dash-rep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.dash-rep-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dash-metric {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px;
  border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 12px; white-space: nowrap;
}
.dash-metric b { font-family: var(--font-display); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.dash-metric .ico { color: var(--text-4); }
.dash-metric.good { background: var(--success-light); color: #065f46; }
.dash-metric.good b, .dash-metric.good .ico { color: #047857; }
.dash-metric.bad { background: var(--danger-light); color: #991b1b; }
.dash-metric.bad b, .dash-metric.bad .ico { color: #b91c1c; }
.dash-rep-verdict { grid-area: verdict; justify-self: end; }
.dash-rep-actions { grid-area: actions; display: flex; align-items: center; gap: 2px; }
.dash-rep-actions .btn.icon.sm { color: var(--text-3); }
.dash-rep-actions .btn.icon.sm:hover { color: var(--text); }

/* ─── 진행 중 작업 ────────────────────────────────────────────────── */
.dash-area-running .card-title .badge { margin-left: 4px; }
.dash-runs { display: flex; flex-direction: column; gap: 10px; }
.dash-area-running.is-strip { grid-area: running; }
.dash-area-running.is-strip .card-head { margin-bottom: 14px; align-items: center; }
.dash-area-running.is-strip .dash-runs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.dash-runs-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.dash-runs-note .ico { color: var(--text-4); }
.dash-runs > .btn { align-self: flex-start; }
.dash-runs-empty { display: flex; align-items: flex-start; gap: 12px; }
.dash-runs-empty-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.dash-runs-empty-t { font-size: 14px; font-weight: 600; color: var(--text); }
.dash-runs-empty-s { font-size: 13px; color: var(--text-3); line-height: 1.5; margin-top: 2px; }
.dash-run {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; outline: none;
}
.dash-run:hover { border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.dash-run:focus-visible { box-shadow: var(--focus); }
.dash-run-top { display: flex; align-items: center; gap: 10px; }
.dash-run-main { flex: 1; min-width: 0; }
.dash-run-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-run-stage { font-size: 12.5px; color: var(--primary); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-run-pct { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.dash-run .progress-bar { margin: 10px 0 6px; }
.dash-run-foot { font-size: 12px; color: var(--text-4); }

/* ─── Watch List ──────────────────────────────────────────────────── */
.dash-area-watch .card-title .badge { margin-left: 4px; }
.dash-watch { display: flex; flex-direction: column; margin: -4px -10px 0; }
.dash-watch-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md);
  cursor: pointer; outline: none; transition: background .12s;
}
.dash-watch-row + .dash-watch-row { border-top: 1px solid var(--slate-100); }
.dash-watch-row:hover { background: var(--surface-2); }
.dash-watch-row:focus-visible { box-shadow: var(--focus); }
.dash-watch-name { font-size: 14px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dash-watch-target { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); background: var(--surface-3); padding: 1px 7px; border-radius: 5px; white-space: nowrap; }
.dash-watch-state { margin-left: auto; font-size: 12.5px; color: var(--text-4); white-space: nowrap; }
.dash-watch-state.is-new { color: #b45309; font-weight: 650; }
.dash-watch-more { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.dash-area-watch > .btn { margin-top: 12px; }

/* ─── 월별 완료 리포트 ────────────────────────────────────────────── */
.dash-monthly { width: 100%; min-height: 176px; position: relative; }
.dash-col-svg { display: block; overflow: visible; }
.dash-monthly-empty { position: absolute; left: 28px; right: 0; top: 40%; transform: translateY(-50%); text-align: center; font-size: 13px; color: var(--text-3); padding: 0 12px; }
.dash-col-svg text { font-family: var(--font-sans); }
.dash-tick { font-size: 12px; fill: var(--text-4); font-variant-numeric: tabular-nums; }
.dash-tick.is-cur { fill: var(--text); font-weight: 700; }
.dash-grid-l { stroke: #edf1f5; stroke-width: 1; shape-rendering: crispEdges; }
.dash-axis { stroke: var(--line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.dash-col { fill: var(--brand-600); }
.dash-col-v { font-size: 12px; font-weight: 700; fill: var(--text-2); }
.dash-hit { fill: transparent; outline: none; cursor: default; }
.dash-hit:hover, .dash-hit:focus { fill: rgba(13,148,136,.07); }

/* ─── 툴팁 ────────────────────────────────────────────────────────── */
.dash-tip {
  position: fixed; z-index: 1300; display: none; pointer-events: none;
  max-width: 280px; padding: 8px 11px; border-radius: 9px;
  background: var(--slate-900); color: #fff; box-shadow: var(--sh-lg);
  font-size: 12.5px; line-height: 1.45;
}
.dash-tip-v { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.dash-tip-l { color: #cbd5e1; }

/* ─── AgingAtlas 데이터 레이크 ────────────────────────────────────── */
.dash-lake { margin-top: 20px; }
.dash-lake-inner {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 22px 24px 16px; border-radius: var(--r-xl);
  color: #e2e8f0; border: 1px solid var(--ink-700); box-shadow: var(--sh-md);
  background:
    radial-gradient(560px 240px at 100% 0%, rgba(20,184,166,.20), transparent 70%),
    radial-gradient(460px 220px at 0% 120%, rgba(8,145,178,.16), transparent 70%),
    var(--ink-950);
}
.dash-lake-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-lake-ic {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0f766e, #0891b2); color: #fff;
  box-shadow: 0 8px 22px -10px rgba(20,184,166,.7);
}
.dash-lake-id { flex: 1 1 220px; min-width: 0; }
.dash-lake-eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-300); }
.dash-lake-status { display: inline-flex; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: #94a3b8; }
.dash-lake-status.ok { color: #6ee7b7; }
.dash-lake-status.off { color: #fca5a5; }
.dash-lake-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #f8fafc; letter-spacing: -0.02em; margin-top: 3px; }
.dash-lake-facts { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.dash-lake-total { font-family: var(--font-sans); font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -0.025em; line-height: 1.2; }
.dash-lake-total small { font-size: 13px; font-weight: 600; color: #94a3b8; letter-spacing: 0; }
.dash-lake-meta { font-size: 13px; color: #94a3b8; }
.dash-lake-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-lake-open.btn { background: var(--brand-500); border-color: var(--brand-500); color: #04221f; box-shadow: none; }
.dash-lake-open.btn:hover { background: var(--brand-400); border-color: var(--brand-400); }
.dash-lake-ghost.btn { color: #cbd5e1; }
.dash-lake-ghost.btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash-lake-cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.dash-lake-cell {
  position: relative; display: flex; flex-direction: column; padding: 10px 12px 11px; border-radius: 10px; min-width: 0;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08);
  transition: background .15s, border-color .15s; outline: none;
}
.dash-lake-cell:hover, .dash-lake-cell:focus-visible { background: rgba(255,255,255,.08); border-color: rgba(45,212,191,.35); }
.dash-lake-cell-k { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; font-weight: 600; color: #a5b4c8; line-height: 1.3; min-height: 16px; }
.dash-lake-cell-k > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.dash-lake-cell-ic { display: inline-flex; color: var(--brand-300); margin-top: 0; flex-shrink: 0; }
.dash-lake-cell-v { font-family: var(--font-sans); font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-top: auto; padding-top: 6px; }
.dash-lake-offline { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 13px; color: #cbd5e1; }
.dash-lake-offline .ico { color: #fcd34d; }
.dash-lake-foot { margin-top: 12px; font-size: 12px; color: #73839b; }
.dash-sk-dark { display: block; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.06) 0, rgba(255,255,255,.13) 160px, rgba(255,255,255,.06) 320px); background-size: 800px 100%; animation: shimmer 1.3s linear infinite; }

/* ─── 시스템 상태 (관리자) ────────────────────────────────────────── */
.dash-sys-slot { margin-top: 20px; }
.dash-sys { margin-bottom: 0; box-shadow: none; background: var(--surface-2); }
.dash-sys > summary { list-style: none; }
.dash-sys > summary::-webkit-details-marker { display: none; }
.dash-sys-sum { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 12px 18px; cursor: pointer; font-size: 13.5px; border-radius: var(--r-lg); }
.dash-sys-sum:focus-visible { box-shadow: var(--focus); }
.dash-sys-t { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text-2); }
.dash-sys-t .ico { color: var(--text-3); }
.dash-sys-sum .badge .ico { display: inline-flex; }
.dash-sys-inline { margin-left: auto; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dash-sys-chev { color: var(--text-4); transition: transform .2s; }
.dash-sys[open] .dash-sys-chev { transform: rotate(180deg); }
.dash-sys-body { padding: 16px 18px 18px; border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.dash-sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 24px; }
.dash-sys-k { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.dash-sys-k .ico { color: var(--text-4); }
.dash-sys-p { margin-left: auto; font-family: var(--font-display); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.dash-sys-item .meter-val { display: none; }
.dash-sys-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; overflow-wrap: anywhere; }
.dash-sys-note { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; color: var(--text-3); }

/* ─── 반응형 ─────────────────────────────────────────────────────── */
@media (max-width: 1360px) {
  .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-kpi { min-height: 0; }
}
@media (max-width: 1240px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "decision decision" "next side" "reports reports"; }
  .dash-grid.has-running { grid-template-areas: "running running" "decision decision" "next side" "reports reports"; }
  .dash-lake-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dash-grid { display: flex; flex-direction: column; gap: 16px; }
  .dash-side { display: contents; }
  .dash-area-running { order: 1; }
  .dash-area-reports { order: 2; }
  .dash-area-decision { order: 3; }
  .dash-area-next { order: 4; }
  .dash-area-monthly { order: 5; }
  .dash-area-watch { order: 6; }
  .dash-dec-foot { margin: 20px -18px -18px; padding: 12px 18px; flex-wrap: wrap; }
  .dash-help { margin: 18px -18px -18px; padding: 10px 18px; }
  .dash-dec-foot > .ico { display: none !important; }
  .dash-dec-rules { flex: 1 1 100%; flex-direction: column; align-items: flex-start; }
  .dash-dec-rules > span { align-items: flex-start; }
  .dash-dec-rules .dash-sw { margin-top: 6px; flex-shrink: 0; }
  .dash-dec-foot .dash-link.btn { margin: 4px 0 0 -10px; }
  .dash-runs-note { display: none; }
  .dash-sys-sum .dash-sys-t { order: 0; }
  .dash-sys-sum > .badge { order: 1; }
  .dash-sys-chev { order: 2; margin-left: auto; }
  .dash-sys-inline { order: 3; }
  .dash-reps .dash-rep { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic main main" "ic verdict actions"; row-gap: 10px; padding: 14px 16px; }
  .dash-rep-verdict { justify-self: start; }
  .dash-card-head-pad { padding: 16px 16px 14px; }
  .dash-sys-inline { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .dash-head h1 { font-size: 22px; }
  .dash-head .page-head-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .dash-head .page-head-actions .btn.primary { grid-column: 1 / -1; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
  .dash-kpi { padding: 14px; }
  .dash-kpi .stat-value { font-size: 24px; }
  .dash-hero-num { font-size: 40px; }
  .dash-vlegend li { grid-template-columns: 10px 58px minmax(0, 1fr) auto; gap: 8px; }
  .dash-funnel-row { grid-template-columns: 92px minmax(0, 1fr) 26px 36px; gap: 8px; }
  .dash-lake-inner { padding: 18px 16px 14px; border-radius: var(--r-lg); }
  .dash-lake-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-lake-actions { width: 100%; }
  .dash-lake-actions .btn { flex: 1; }
}
