/* 주요 화면 전환과 팀 대시보드 */
.main-view-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.main-view-shell > .chat-panel {
  height: auto;
  min-height: 0;
}

.personal-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

.personal-panel .workspace-modal-header { gap: 12px; }
.personal-panel .workspace-modal-header > div:first-of-type { flex: 1; }
/* 대시보드 맨 아래: 팀 브리핑은 내 업무 › 주간 보고에서 보도록 안내만 둔다. */
.dashboard-brief-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 21px;
}
.dashboard-brief-link b { color: var(--text); font-weight: 600; }
.dashboard-brief-link .secondary-button { width: auto; min-height: 36px; padding: 0 12px; flex-shrink: 0; font-size: 13px; font-weight: 600; cursor: pointer; }

.dashboard-clickable:focus-visible,
.dashboard-issue-button:focus-visible,
.dashboard-chip:focus-visible,
.dashboard-filter-jump:focus-visible,
.dashboard-priority-section:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.dashboard-panel {
  /* 머리·필터 줄·본문이 같은 1240px 칸 안에서 왼쪽 선을 맞춘다. */
  --dashboard-gutter: max(32px, calc(50% - 620px));
  position: relative;
  display: grid;
  /* 헤더 · 보기 탭 · 적용 필터 줄 · 스크롤 본문. 필터 줄이 숨겨져도 본문이 남은 높이를 쓰도록 행을 고정한다. */
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

.dashboard-header {
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 26px var(--dashboard-gutter) 10px;
  background: var(--bg);
}

.dashboard-heading { display: grid; min-width: 180px; gap: 2px; }
.dashboard-heading h2 { margin: 0; color: var(--text); font-size: var(--font-title); }
.dashboard-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 19.5px; }

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 10px;
}

.dashboard-new-change { margin: 0; color: var(--muted); font-size: 12px; }

/* 비교 기간: 드롭다운 대신 단추 묶음. fieldset이라 불러오는 동안 한 번에 비활성화된다. */
.dashboard-period {
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: var(--control-radius);
  background: color-mix(in srgb, var(--line) 70%, var(--surface-alt));
}

.dashboard-period button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 19.5px;
  font-weight: 500;
  white-space: nowrap;
}

.dashboard-period button:hover:not(:disabled) { color: var(--text); }

.dashboard-period button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(25, 31, 40, 0.08);
}

.dashboard-period button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.dashboard-period:disabled button { cursor: wait; opacity: 0.55; }

.dashboard-body {
  grid-row: 4;
  display: grid;
  /* 높이가 고정된 스크롤 grid에서는 overflow: hidden 섹션의 최소 높이가 0이 되어,
     위 내용이 화면을 넘치면 아래 섹션이 테두리만 남기고 눌린다. 행을 내용 높이에 맞춘다. */
  grid-auto-rows: max-content;
  align-content: start;
  gap: 16px;
  min-height: 0;
  padding: 16px var(--dashboard-gutter) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.35fr); }
.dashboard-metrics .workspace-metric { padding:18px 20px; gap:6px; }
.dashboard-metrics .workspace-metric > strong { font-size:26px; }
.dashboard-intake .dashboard-metric-top { flex-wrap:wrap; gap:4px 8px; }
.dashboard-intake .is-closed { color: var(--success); }
.dashboard-intake .is-open { color: var(--blue); }
.dashboard-intake small b { font-weight: 700; }
button.workspace-metric {
  width: 100%;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
/* 지표 띠 안에서 눌린 지표는 연한 바탕과 아래 파랑 선으로 표시한다. */
button.workspace-metric:hover { background: var(--surface-alt); }
button.workspace-metric.is-active { background: color-mix(in srgb, var(--blue-soft) 60%, var(--surface)); box-shadow: inset 0 -2px 0 var(--blue); }

.dashboard-metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* 상태 점은 머리 줄 끝이 아니라 지표 이름 바로 앞에 붙인다. */
.workspace-metric:is(.is-danger, .is-warning) > .dashboard-metric-top::before { content: none; }
.dashboard-metric-top > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.workspace-metric:is(.is-danger, .is-warning) .dashboard-metric-top > span:first-child::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; }
.workspace-metric.is-danger .dashboard-metric-top > span:first-child::before { background: var(--danger); }
.workspace-metric.is-warning .dashboard-metric-top > span:first-child::before { background: var(--warning); }
.dashboard-delta { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; }
.dashboard-delta.is-up { color: var(--danger); }
.dashboard-delta.is-down { color: var(--success); }

.dashboard-filterbar {
  grid-row: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 44px;
  /* 필터 줄의 아래 선은 머리와 같은 칸 안에서만 긋는다. */
  margin: 0 var(--dashboard-gutter);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.dashboard-filterbar[hidden] { display: none; }
.dashboard-filterbar-label { margin-right: 2px; color: var(--muted); font-size: 13px; font-weight: 700; }
.dashboard-filterbar-hint { color: var(--muted); font-size: 12px; }
.dashboard-chip,
.dashboard-filter-jump {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 적용한 필터는 하나씩 지울 수 있는 파랑 칩, '전체 해제'는 글자 버튼 */
.dashboard-chip {
  min-height: var(--chip-height);
  padding: 0 8px 0 11px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  cursor: pointer;
  font-size: var(--chip-font-size);
  font-weight: 600;
}
.dashboard-chip:hover { background: color-mix(in srgb, var(--blue) 18%, var(--surface)); }
.dashboard-chip-clear { padding: 0 8px; background: transparent; color: var(--text-soft); }
.dashboard-chip-clear:hover { background: var(--surface-alt); }
.dashboard-filter-jump {
  min-height: var(--chip-height);
  margin-left: auto;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: var(--chip-font-size);
  font-weight: 700;
}

.dashboard-priority-section.is-filtered { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); }
.dashboard-priority-section:focus:not(:focus-visible) { outline: none; }
.dashboard-clickable.is-selected {
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 45%, transparent);
}

/* 운영 판단: 요약과 근거·행동을 구분해 모바일에서 접을 수 있게 한다. */
/* 운영 판단은 화면 맨 위의 결론이다. 단계는 꽉 찬 배지 대신 점과 글자로, 카드는 단계 색으로만 옅게 칠한다. */
.dashboard-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--line));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--success) 4%, var(--surface));
}
.dashboard-decision.is-high { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.dashboard-decision.is-attention { border-color: color-mix(in srgb, var(--warning) 40%, var(--line)); background: color-mix(in srgb, var(--warning) 6%, var(--surface)); }
.dashboard-decision-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 12px; font-weight: 700; }
.dashboard-decision-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dashboard-decision.is-high .dashboard-decision-badge { color: var(--danger); }
.dashboard-decision.is-attention .dashboard-decision-badge { color: var(--warning-strong); }
.dashboard-decision.is-attention .dashboard-decision-badge::before { background: var(--warning); }
.dashboard-decision.is-unknown { border-color: var(--line); background: var(--surface-alt); }
.dashboard-decision.is-unknown .dashboard-decision-badge { color: var(--muted); }
.dashboard-decision-main { display: grid; min-width: 0; gap: 6px; }
.dashboard-decision-heading { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.dashboard-decision-support { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.dashboard-decision-toggle { display:none; align-items:center; justify-self:start; gap:4px; padding:4px 0; border:0; background:transparent; color:var(--text-soft); font:inherit; font-size:13px; cursor:pointer; }
.dashboard-decision-toggle .when-open, .dashboard-decision-toggle[aria-expanded="true"] .when-closed { display:none; }
.dashboard-decision-toggle[aria-expanded="true"] .when-open { display:inline; }
.dashboard-decision-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
.dashboard-decision-toggle:focus-visible { outline:none; box-shadow:var(--focus-ring); }
.dashboard-decision-period { color: var(--muted); font-size: 12px; font-weight: 600; }
.dashboard-decision h3 { margin: 0; color: var(--text); font-size: var(--font-headline); line-height: 1.45; word-break: keep-all; }
.dashboard-decision ul { display: flex; flex:1; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dashboard-decision li { padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-soft); font-size: 12px; }
.dashboard-decision-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
/* 첫 행동이 추천, 나머지는 보조 버튼 */
.dashboard-decision-action {
  min-height: var(--button-height);
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: var(--button-font-size);
  font-weight: var(--button-weight);
  white-space: nowrap;
}
.dashboard-decision-action:first-child { border-color: var(--text); background: var(--text); color: var(--surface); }
.dashboard-decision-action:hover { border-color: var(--blue); }
.dashboard-decision-action:first-child:hover { border-color: var(--text); filter: brightness(1.15); }

/* 분포 차트: 막대는 지연 → 장기(지연 제외) → 그 외 순으로 겹치지 않게 쌓는다. */
/* 분포 제목 옆에 범례를 한 번만 둔다. 세 색은 색상뿐 아니라 밝기로도 구분된다(진한 빨강 · 중간 주황 · 연한 파랑). */
.dashboard-dist-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 6px; }
.dashboard-dist-head h3 { margin: 0; color: var(--text); font-size: var(--font-section); }
.dashboard-chart { display: grid; grid-template-rows: auto 1fr; }
.dashboard-chart-body { display: grid; align-content: start; gap: 10px; padding: 14px 16px 16px; }
.dashboard-chart-legend { display: flex; gap: 14px; color: var(--text-soft); font-size: 12px; }
.dashboard-chart-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.dashboard-chart-legend .is-overdue, .dashboard-track .is-overdue { background: color-mix(in srgb, var(--danger) 88%, #000); }
.dashboard-chart-legend .is-aging, .dashboard-track .is-aging { background: var(--warning); }
.dashboard-chart-legend .is-rest, .dashboard-track .is-rest { background: color-mix(in srgb, var(--blue) 28%, var(--surface)); }
/* 어두운 배경에서는 연한 파랑이 배경에 묻히지 않게 조금 밝게 섞는다. */
body.theme-dark :is(.dashboard-chart-legend, .dashboard-track) .is-rest,
body.theme-dark .dashboard-column:is(.is-fresh, .is-rest) i { background: color-mix(in srgb, var(--blue) 55%, var(--surface)); }
/* 고객사 막대·범례·대체 화면은 같은 옅은 색을 써 다른 분포 차트와 농도를 맞춘다. */
.dashboard-customer-chart {
  --distribution-customer-overdue: color-mix(in srgb, var(--danger) 55%, white);
  --distribution-customer-aging: color-mix(in srgb, var(--warning) 55%, white);
  --distribution-customer-rest: color-mix(in srgb, var(--chart-1) 55%, white);
}
.dashboard-customer-chart .dashboard-track i.is-overdue { background: var(--distribution-customer-overdue); }
.dashboard-customer-chart .dashboard-track i.is-aging { background: var(--distribution-customer-aging); }
.dashboard-customer-chart .dashboard-track i.is-rest { background: var(--distribution-customer-rest); }
.dashboard-chart-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dashboard-chart-note b { color: var(--text-soft); }
/* 모든 행이 열 너비를 공유해 배지 유무와 숫자 자릿수에 관계없이 끝선을 맞춘다. */
.dashboard-bars {
  display: grid;
  grid-template-columns: minmax(84px, 112px) minmax(0, 1fr) max-content max-content;
  gap: 4px 10px;
}
.dashboard-bar {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.dashboard-bar-name { display: flex; align-items: center; min-width: 0; gap: 6px; color: var(--text); font-size: 13px; font-weight: 600; }
.dashboard-bar-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-track { display: block; height: 10px; }
.dashboard-track > span { display: flex; gap: 2px; height: 100%; min-width: 2px; }
.dashboard-track i { display: block; height: 100%; border-radius: 3px; }
.dashboard-bar-value {
  display: grid;
  grid-column: span 2;
  grid-template-columns: subgrid;
  align-items: center;
  column-gap: 4px;
  color: var(--text-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.dashboard-spike-badge { padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: 12px; font-weight: 700; text-align: center; }
.dashboard-spikes { margin-top: 0; }
.dashboard-spikes > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 14px 20px; cursor: pointer; font-size: 13px; }
.dashboard-spikes > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.dashboard-spikes[open] > summary::before { transform: rotate(45deg); }
.dashboard-spikes > summary > span { color: var(--muted); font-size: 12px; }
.dashboard-spikes > summary > .dashboard-spikes-toggle { margin-left: auto; color: var(--blue); }
.dashboard-spikes-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; padding: 0 20px 14px; }
.dashboard-spikes-groups > section { min-width: 0; }
@media (max-width: 680px) { .dashboard-spikes-groups { grid-template-columns: 1fr; } }
.dashboard-spikes h3 { margin: 0 0 8px; color: var(--text-soft); font-size: 13px; font-weight: 600; }
.dashboard-spikes ul { margin: 0; padding: 0; list-style: none; }
.dashboard-spikes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 13px; }
.dashboard-spikes li + li { border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.dashboard-spike-name { color: var(--text-soft); overflow-wrap: anywhere; }
.dashboard-spike-counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.dashboard-spike-counts strong { color: var(--text); font-weight: 600; }
.dashboard-spike-counts > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.dashboard-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dashboard-column {
  display: grid;
  grid-template-rows: auto 120px auto;
  justify-items: center;
  gap: 6px;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 12px;
}
.dashboard-column b { color: var(--text); font-size: 14px; }
.dashboard-column small { font-size: 12px; }
.dashboard-column-bar { display: flex; align-items: flex-end; width: 100%; max-width: 48px; height: 100%; }
.dashboard-column-bar i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; }
/* 경과일 막대도 분포 범례와 같은 세 색을 쓴다: 30일 미만은 연한 파랑, 30–59일 주황, 60일 이상 진한 빨강. */
.dashboard-column.is-fresh i,
.dashboard-column.is-rest i { background: color-mix(in srgb, var(--blue) 28%, var(--surface)); }
.dashboard-column.is-aging i { background: var(--warning); }
.dashboard-column.is-overdue i { background: color-mix(in srgb, var(--danger) 88%, #000); }
.dashboard-more {
  display: block;
  width: 100%;
  padding: 11px;
  border: 0;
  border-top: 1px solid var(--surface-alt);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.dashboard-more:hover { background: color-mix(in srgb, var(--blue) 4%, var(--surface)); }
.dashboard-more:focus-visible, .dashboard-decision-action:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.dashboard-ai-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--button-height-compact);
  padding: 0 11px;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--blue);
  color: var(--on-accent);
  cursor: pointer;
  font-size: var(--button-font-size-compact);
  font-weight: var(--button-weight);
  white-space: nowrap;
}
.dashboard-ai-button:hover { background: var(--blue-pressed); }
.dashboard-ai-button.is-secondary { border: 1px solid var(--line); background: var(--surface); color: var(--blue); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.dashboard-grid.is-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.dashboard-clickable { cursor: pointer; }

/* 행·막대 안의 실제 버튼. 버튼 기본 모양을 지우고 놓인 자리의 글자 모양을 따른다. */
button.dashboard-bar,
button.dashboard-column,
.dashboard-issue-button {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}


.dashboard-issue-button { display: block; max-width: 100%; padding: 0; border-radius: 6px; }
.dashboard-issue-button:hover .dashboard-issue-title { color: var(--blue); }

.dashboard-clickable:hover { background: color-mix(in srgb, var(--blue) 4%, var(--surface)); }

.health-status { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--success); }
.health-status.is-attention { background: var(--warning); }
.health-status.is-high { background: var(--danger); }
.health-status.is-unknown { background: var(--muted); }

.workspace-section.dashboard-priority-section > header { align-items: center; padding:24px 24px 16px; border-bottom:0; }
.dashboard-priority-section > header em { padding:5px 10px; border-radius:999px; background:var(--surface-alt); color:var(--text-soft); font-variant-numeric:tabular-nums; }
.dashboard-priority-overview { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 16px; margin:0 24px 18px; padding:12px 14px; border-radius:var(--control-radius); background:color-mix(in srgb, var(--surface-alt) 65%, var(--surface)); }
.dashboard-priority-overview > div, .dashboard-priority-overview ul { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; }
.dashboard-priority-overview ul { margin:0; padding:0; list-style:none; }
.dashboard-priority-scope, .dashboard-priority-preview { color:var(--muted); font-size:12px; }
.dashboard-priority-count { display:inline-flex; align-items:center; gap:6px; color:var(--text-soft); font-size:12px; }
.dashboard-priority-count b { color:var(--text); font-size:13px; font-variant-numeric:tabular-nums; }
.dashboard-priority-count i { width:6px; height:6px; border-radius:50%; background:var(--muted); }
.dashboard-priority-count.is-high i { background:var(--danger); }
.dashboard-priority-count.is-attention i { background:var(--warning); }
.dashboard-priority-section > .workspace-table-wrap { max-height:none; margin:0 12px; }
.dashboard-priority-section:has(.dashboard-more[aria-expanded="true"]) > .workspace-table-wrap { max-height:660px; }
.dashboard-priority-table { min-width:0; table-layout:fixed; color:var(--text); font-size:13px; }
.dashboard-priority-table th { position:sticky; top:0; z-index:1; padding:10px 12px; border-bottom-color:var(--line); background:var(--surface); text-align:left; }
.dashboard-priority-table td { padding:18px 12px; border-bottom-color:var(--surface-alt); text-align:left; vertical-align:middle; }
.dashboard-priority-table th:first-child { width:46%; }
.dashboard-priority-table th:nth-child(2) { width:14%; }
.dashboard-priority-table th:nth-child(3) { width:11%; }
.dashboard-priority-table th:nth-child(4) { width:11%; }
.dashboard-priority-table th:nth-child(5) { width:8%; }
.dashboard-priority-table th:nth-child(6) { width:10%; }
.dashboard-priority-table tr:last-child td { border-bottom:0; }
.dashboard-priority-table .dashboard-priority-main { padding-left:16px; }
.dashboard-priority-main.is-high { box-shadow:inset 3px 0 color-mix(in srgb, var(--danger) 65%, var(--surface)); }
.dashboard-priority-main.is-attention { box-shadow:inset 3px 0 color-mix(in srgb, var(--warning) 65%, var(--surface)); }
.dashboard-issue-eyebrow { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:6px; font-size:12px; line-height:18px; }
.dashboard-issue-id { color:var(--muted); font-variant-numeric:tabular-nums; }
.dashboard-issue-status { padding:0 6px; border-radius:6px; background:var(--surface-alt); color:var(--text-soft); }
.dashboard-priority-table .dashboard-issue-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--text); font-size:14px; font-weight:600; line-height:1.55; overflow-wrap:anywhere; }
.dashboard-priority-table .dashboard-issue-reason { margin-top:6px; overflow:hidden; color:var(--muted); font-size:12px; line-height:1.5; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-priority-customer { overflow-wrap:anywhere; }
.dashboard-priority-customer > span { display:inline-flex; align-items:center; gap:8px; }
.dashboard-handler { overflow-wrap:anywhere; }
.dashboard-priority-age { white-space:nowrap; color:var(--muted); font-size:12px; }
.dashboard-priority-age b { margin-right:3px; color:var(--text-soft); font-size:13px; font-weight:500; }
.dashboard-priority-risk { position:relative; white-space:nowrap; }
.dashboard-priority-arrow { position:absolute; top:50%; right:8px; display:flex; color:var(--muted); transform:translateY(-50%); }
.dashboard-priority-section > .dashboard-more { padding:16px; color:var(--blue); }

@media (max-width: 1100px) {
  .dashboard-priority-table th:first-child { width:38%; }
  .dashboard-priority-table th:nth-child(2) { width:16%; }
  .dashboard-priority-table th:nth-child(3) { width:13%; }
  .dashboard-priority-table th:nth-child(4) { width:12%; }
  .dashboard-priority-table th:nth-child(5) { width:9%; }
  .dashboard-priority-table th:nth-child(6) { width:12%; }
  .dashboard-priority-arrow { display:none; }
}
@media (max-width: 680px) {
  .workspace-section.dashboard-priority-section > header { padding:20px 16px 14px; }
  .dashboard-priority-overview { margin:0 16px 10px; padding:10px 12px; }
  .dashboard-priority-preview { display:none; }
  .dashboard-priority-overview > div, .dashboard-priority-overview ul { gap:8px 14px; }
  .dashboard-priority-section > .workspace-table-wrap { margin:0 16px; }
  .dashboard-priority-section:has(.dashboard-more[aria-expanded="true"]) > .workspace-table-wrap { max-height:none; }
  .dashboard-priority-table, .dashboard-priority-table tbody { display:block; width:100%; }
  .dashboard-priority-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .dashboard-priority-table tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px 16px; padding:18px 0; border-bottom:1px solid var(--line); }
  .dashboard-priority-table tr:last-child { border-bottom:0; }
  .dashboard-priority-table td { display:flex; align-items:center; justify-content:space-between; gap:6px; min-width:0; padding:0; border:0; font-size:12px; }
  .dashboard-priority-table td[data-label]::before { content:attr(data-label); color:var(--muted); font-size:12px; flex-shrink:0; }
  .dashboard-priority-table .dashboard-priority-main { display:block; grid-column:1 / -1; padding:0; box-shadow:none; }
  .dashboard-priority-table tr.dashboard-group-row { display:block; padding:10px 0; }
  .dashboard-priority-table tr.dashboard-group-row th { display:block; width:auto; }
  .dashboard-priority-table .dashboard-issue-title { -webkit-line-clamp:3; }
  .dashboard-priority-table .dashboard-issue-reason { white-space:normal; }
  .dashboard-priority-customer > span { text-align:right; }
}
/* 위험도는 꽉 찬 배지 대신 점이 붙은 옅은 배지. 주황 글자는 대비가 충분한 진한 단계를 쓴다. */
.dashboard-risk-badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: var(--radius-sm); background: var(--surface-alt); color: var(--text-soft); font-size: 12px; font-weight: 600; line-height: 20px; }
.dashboard-risk-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.dashboard-risk-badge.is-high { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.dashboard-risk-badge.is-high::before { background: var(--danger); }
.dashboard-risk-badge.is-attention { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning-strong); }
.dashboard-risk-badge.is-attention::before { background: var(--warning); }

.dashboard-detail {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(440px, 100vw);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -22px 0 60px rgba(25, 31, 40, .18);
}
.dashboard-detail:not([hidden]) { display:flex; flex-direction:column; }
.dashboard-detail > header { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 24px; border-bottom:1px solid var(--line); background:var(--surface); }
.dashboard-detail > header div { display: grid; gap: 4px; }
.dashboard-detail > header span { color: var(--muted); font-size: 12px; font-weight: 600; }
.dashboard-detail h3 { margin:0; color:var(--text); font-size: var(--font-title); }
.dashboard-detail-body { display:flex; flex-direction:column; flex:1; min-height:0; }
.dashboard-detail-content { display:flex; flex-direction:column; gap:24px; flex:1; min-height:0; padding:18px 24px 24px; overflow-y:auto; overscroll-behavior:contain; }
.dashboard-detail-content > * { flex-shrink:0; }
.dashboard-detail-hero { display:grid; gap:12px; }
.dashboard-detail-labels { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:12px; }
.dashboard-detail-labels > .dashboard-issue-status { padding:2px 7px; line-height:20px; }
.dashboard-detail-age { margin-left:auto; color:var(--muted); font-variant-numeric:tabular-nums; }
.dashboard-detail-age b { margin-right:3px; color:var(--text-soft); font-size:13px; font-weight:500; }
.dashboard-detail-summary { margin:0; color:var(--text); font-size:20px; font-weight:700; line-height:1.5; word-break:keep-all; overflow-wrap:anywhere; }
.dashboard-detail-section-title { display:block; margin:0 0 12px; color:var(--text); font-size:13px; font-weight:600; }
.dashboard-detail-info { padding-top:20px; border-top:1px solid var(--line); }
.dashboard-detail-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 20px; }
.dashboard-detail-meta div { display:grid; align-content:start; gap:5px; }
.dashboard-detail-meta span { display:flex; align-items:center; flex-wrap:wrap; gap:6px; color:var(--muted); font-size:12px; }
.dashboard-detail-meta strong { color:var(--text-soft); font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.dashboard-detail-meta .is-overdue strong { color:var(--danger); }
.dashboard-detail-meta em { padding:0 5px; border-radius:6px; background:color-mix(in srgb,var(--danger) 8%,var(--surface)); color:var(--danger); font-size:12px; font-style:normal; }
.dashboard-detail-reason { --detail-risk:var(--muted); padding:16px; border:1px solid var(--line); border-left:3px solid var(--detail-risk); border-radius:var(--control-radius); background:var(--surface); }
.dashboard-detail-reason.is-high { --detail-risk:var(--danger); }
.dashboard-detail-reason.is-attention { --detail-risk:var(--warning); }
.dashboard-detail-reason ul { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.dashboard-detail-reason li { position:relative; padding-left:12px; color:var(--text-soft); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.dashboard-detail-reason li::before { content:""; position:absolute; top:9px; left:0; width:4px; height:4px; border-radius:50%; background:var(--detail-risk); }
.dashboard-detail-next { padding:16px; border-radius:var(--control-radius); background:var(--blue-soft); }
.dashboard-detail-next .dashboard-detail-section-title { margin-bottom:6px; color:var(--blue); }
.dashboard-detail-next p { margin:0; color:var(--text-soft); font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.dashboard-detail-footer { display:grid; flex-shrink:0; gap:8px; padding:14px 24px 18px; border-top:1px solid var(--line); background:var(--surface); }
.dashboard-detail-footer .secondary-button { min-height:36px; padding:8px; font-size:13px; font-weight:500; }
.dashboard-detail-footer > .dashboard-ai-button { width:100%; min-height:40px; padding:10px; font-size:13px; white-space:normal; }

.dashboard-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 420px;
  color: var(--muted);
  text-align: center;
}
.dashboard-state strong { color: var(--text); font-size: 15px; }
.dashboard-state p { max-width: 420px; margin: 0; font-size: 13px; line-height: 1.5; }
.dashboard-state.is-error { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.dashboard-state.is-error strong { color: var(--danger); }
/* 일부만 확인한 지표: 숫자 옆 '건 이상'으로 하한값임을 알린다. */
.workspace-metric .dashboard-lower-bound { margin-left: 4px; color: var(--warning-strong); font-size: 13px; font-weight: 600; }

/* 처음 불러오는 중: 상태 한 줄 + 실제 화면과 같은 자리의 뼈대(판단 배너 · 지표 띠 · 차트 3칸 · 표) */
.dashboard-loading { display: grid; gap: 16px; }
.dashboard-loading-status { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--radius-card); background: var(--surface); color: var(--muted); font-size: 13px; }
.dashboard-loading-status strong { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.dashboard-loading-status .dashboard-spinner { width: 18px; height: 18px; flex-shrink: 0; border-width: 2px; }
.dashboard-skel { display: grid; gap: 14px; }
.dashboard-skel i { display: block; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.dashboard-skel .is-banner { height: 112px; border-radius: var(--radius-lg); }
.dashboard-skel .is-strip { height: 104px; }
.dashboard-skel > span { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashboard-skel > span i { height: 210px; }
.dashboard-skel .is-table { height: 240px; }
@media (prefers-reduced-motion: no-preference) {
  .dashboard-skel i { animation: dashboard-skel-pulse 1.4s ease-in-out infinite; }
}
@keyframes dashboard-skel-pulse { 50% { opacity: 0.55; } }

/* 상세 드로어 위쪽 '우선 확인 이슈 n / N'과 이전·다음 버튼 */
.dashboard-detail-nav { display:flex; align-items:center; gap:6px; margin-bottom:-8px; color:var(--muted); font-size:12px; font-weight:500; }
.dashboard-detail-nav span { margin-right: auto; font-variant-numeric: tabular-nums; }
.dashboard-detail-step { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--surface); color: var(--text-soft); cursor: pointer; }
.dashboard-detail-step:hover:not(:disabled) { background: var(--surface-alt); color: var(--text); }
.dashboard-detail-step:disabled { cursor: default; opacity: 0.4; }
.dashboard-detail-step:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.dashboard-spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: dashboard-spin .75s linear infinite; }
@keyframes dashboard-spin { to { transform: rotate(360deg); } }

.dashboard-refresh-status {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--line));
  border-radius: var(--control-radius);
  background: color-mix(in srgb, var(--blue-soft) 94%, var(--surface));
  color: var(--blue);
  font-size: 12px;
  box-shadow: 0 5px 18px rgba(25, 31, 40, .06);
}

.dashboard-refresh-status .dashboard-spinner { width: 16px; height: 16px; border-width: 2px; }
.dashboard-refresh-status.is-warning {
  flex-wrap: wrap;
  gap: 4px 8px;
  border-color: color-mix(in srgb, var(--warning) 25%, var(--line));
  background: color-mix(in srgb, var(--warning) 10%, var(--surface));
  color: var(--warning-strong);
}
.dashboard-refresh-status.is-error { border-color: color-mix(in srgb, var(--danger) 22%, var(--line)); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--danger); }

:is(.dashboard-ai-button, .dashboard-chip, button.workspace-metric):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (max-width: 1180px) {
  .dashboard-header { align-items: flex-start; }
  .dashboard-toolbar { flex-wrap: wrap; }
  .dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-intake { grid-column: 1 / -1; border-top: 1px solid var(--surface-alt); border-left: 0; }
  .dashboard-metrics > .dashboard-intake { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 20px; padding:12px 20px; }
  .dashboard-intake > .dashboard-metric-top { grid-column:1; grid-row:1; justify-content:flex-start; gap:12px; }
  .dashboard-intake > strong { grid-column:2; grid-row:1 / 3; }
  .dashboard-intake > .dashboard-new-change { grid-column:1; grid-row:2; }
  .dashboard-grid, .dashboard-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid > :nth-child(3) { grid-column: 1 / -1; }
  .dashboard-decision-support { align-items:flex-start; flex-direction:column; gap:12px; }
  .dashboard-decision-actions { justify-content:flex-start; }
}

@media (max-width: 860px) {
  .dashboard-skel > span { grid-template-columns: 1fr; }
  .dashboard-skel > span i:not(:first-child) { display: none; }
  /* 높이는 아래 탭바를 뺀 값으로 responsive.css에서 정한다. */
  .main-view-shell > .chat-panel { min-height: 0; }
  .dashboard-panel { --dashboard-gutter: 16px; }
  .dashboard-header { padding-top: 18px; }
  .dashboard-heading { min-width: 0; }
  .dashboard-toolbar { gap: 7px; }
  .dashboard-header .workspace-refresh-button { display: inline-flex; }
  .dashboard-body { padding-bottom: 30px; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 지표 띠가 2열로 접히면 구분선을 줄 기준으로 다시 긋는다. */
  .dashboard-metrics .workspace-metric:nth-child(odd) { border-left: 0; }
  .dashboard-metrics .workspace-metric:nth-child(n + 3) { border-top: 1px solid var(--surface-alt); }
  .dashboard-grid, .dashboard-grid.is-two { grid-template-columns: 1fr; }
  .dashboard-grid > :nth-child(3) { grid-column: auto; }
  .dashboard-decision { align-items: flex-start; }
  .dashboard-panel .dashboard-decision { padding:16px; gap:10px; }
  .dashboard-decision-toggle { display:inline-flex; min-height:32px; }
  .dashboard-decision-toggle[aria-expanded="false"] + .dashboard-decision-support { display:none; }
}

@media (max-width: 560px) {
  .dashboard-header { gap: 10px; flex-wrap: wrap; }
  .dashboard-heading { margin-right: auto; }
  .dashboard-heading h2 { font-size: 17px; }
  /* 데이터 배지는 한 줄, 비교 기간과 새로고침은 다음 줄에 둔다. */
  .dashboard-toolbar {
    flex: 1 0 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "search search" "source source" "period refresh";
    gap: 8px;
  }
  /* 검색은 한 줄을 통째로 쓰니 좁은 화면에서 감추는 '검색' 글자를 다시 보인다. */
  .dashboard-toolbar .search-pill { grid-area: search; }
  .dashboard-toolbar .search-pill span { display: inline; }
  /* 고객사·공수·화면번호 탭의 도구 칸은 한 줄을 통째로 쓰고 안에서 줄바꿈한다. */
  .dashboard-toolbar .dashboard-tab-tools { grid-column: 1 / -1; justify-content: flex-start; }
  .dashboard-toolbar .data-badge-slot { grid-area: source; justify-self: start; }
  .dashboard-toolbar .data-badge-pop { right: auto; left: 0; }
  .dashboard-toolbar .dashboard-period { grid-area: period; justify-self: start; }
  .dashboard-toolbar .workspace-refresh-button { grid-area: refresh; }
  .dashboard-header .workspace-refresh-button { display: inline-flex; width: 36px; padding: 0; justify-content: center; }
  .dashboard-header .workspace-refresh-button > span { display: none; }
  .dashboard-filterbar-hint { font-size: 12px; }
  .dashboard-filter-jump { margin-left: 0; }
  .dashboard-body { gap: 13px; padding-bottom: 26px; }
  .dashboard-metrics .workspace-metric { padding: 13px; }
  .dashboard-metrics > .dashboard-intake { padding:12px 13px; gap:4px 12px; }
  .dashboard-metrics .workspace-metric strong { font-size: 22px; }
  .dashboard-detail > header { padding:16px 20px; }
  .dashboard-detail-content { padding:16px 20px 24px; gap:20px; }
  .dashboard-detail-footer { padding:12px 20px 16px; }
}

/* 토~금 업무 날짜 집계: 선택 기간 지표와 별도의 구역. */
.dashboard-weekly { display: grid; gap: 12px; min-width: 0; margin: 12px 0 8px; }
.dashboard-weekly-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dashboard-weekly-heading h3 { margin: 0 0 5px; font-size: var(--font-section); }
.dashboard-weekly-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.dashboard-weekly-heading > span { border-radius: 999px; padding: 6px 10px; background: var(--surface-alt); color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.dashboard-weekly-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.dashboard-weekly-card { min-width: 0; overflow: hidden; grid-template-rows: auto 1fr auto; }
.dashboard-weekly-card > .dashboard-weekly-card-head { display: block; padding: 20px 20px 0; }
.dashboard-weekly-card-head h4 { margin: 0; font-size: 14px; font-weight: 600; }
.dashboard-weekly-card-head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dashboard-weekly-card-head .dashboard-weekly-total { font-size: 26px; letter-spacing: -1px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.dashboard-weekly-card .bklit-legend { flex-wrap: wrap; }
.dashboard-weekly-card .bklit-cohort { min-height: 220px; }
.dashboard-weekly-card .bklit-cohort .bklit-legend { flex-basis: 100%; }
.dashboard-weekly-table { overflow-x: auto; }
.dashboard-weekly-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dashboard-weekly-table th, .dashboard-weekly-table td { padding: 7px; text-align: left; border-bottom: 1px solid var(--line); }
.dashboard-weekly-table tr > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.dashboard-weekly-missing { margin: 0 20px 16px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.dashboard-weekly-missing summary { cursor: pointer; }
.dashboard-weekly-missing p { margin-bottom: 0; }
.bklit-grouped-labels { fill: var(--text-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .dashboard-weekly-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-weekly-grid > :last-child { grid-column: 1 / -1; } }
@media (max-width: 680px) { .dashboard-weekly-grid { grid-template-columns: minmax(0, 1fr); } .dashboard-weekly-heading { align-items: start; } .dashboard-weekly-heading > span { display: none; } }

/* 미종료 이슈 목록: 상태 칩 · 묶어 보기 · 묶음 머리 줄 · 목표일 배지 */
.dashboard-list-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; }
.dashboard-list-tools .analytics-segments { margin:0; }
.dashboard-list-chips { display:flex; flex-wrap:wrap; gap:8px; }
.dashboard-list-chip { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--text-soft); font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.dashboard-list-chip i { width:8px; height:8px; border-radius:50%; background:var(--chip,var(--muted)); }
.dashboard-list-chip.is-all i,.dashboard-list-chip.is-people-all i { display:none; }
.dashboard-list-chip b { min-width:20px; padding:0 6px; border-radius:999px; background:var(--surface-alt); color:var(--text); font-size:12px; text-align:center; }
.dashboard-list-chip[aria-pressed="true"] { border-color:var(--text); background:var(--text); color:var(--surface); }
.dashboard-list-chip[aria-pressed="true"] i { background:var(--surface); }
.dashboard-list-chip[aria-pressed="true"] b { background:color-mix(in srgb,var(--surface) 22%,transparent); color:var(--surface); }
.dashboard-list-chip:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.dashboard-list-chip.is-overdue,.dashboard-list-chip.is-people-late { --chip:var(--danger); }
.dashboard-list-chip.is-aging,.dashboard-list-chip.is-nodue,.dashboard-list-chip.is-people-aging { --chip:var(--warning-strong); }
.dashboard-list-chip.is-progress { --chip:var(--blue); }
.dashboard-list-chip.is-validation { --chip:var(--purple); }
.dashboard-group-row th { padding:10px 16px !important; background:var(--surface-alt) !important; color:var(--text); font-size:13px; font-weight:700; position:static !important; }
.dashboard-group-row th span { margin-left:4px; color:var(--muted); font-weight:500; }
.dashboard-due { display:inline-flex; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; background:var(--surface-alt); color:var(--text-soft); }
.dashboard-due.is-late { background:color-mix(in srgb,var(--danger) 12%,var(--surface)); color:var(--danger); }
.dashboard-due.is-today,.dashboard-due.is-none { background:color-mix(in srgb,var(--warning-strong) 12%,var(--surface)); color:var(--warning-strong); }
.dashboard-due.is-soon { background:color-mix(in srgb,var(--blue) 10%,var(--surface)); color:var(--blue); }
.dashboard-issue-status.is-progress { background:color-mix(in srgb,var(--blue) 12%,var(--surface)); color:var(--blue); }
.dashboard-issue-status.is-validation { background:color-mix(in srgb,var(--purple) 12%,var(--surface)); color:var(--purple); }
/* 신규 등록 추이 카드 위: 신규 이슈의 지금 상태 한 줄 */
.dashboard-trend-grid { grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); }
.dashboard-cohort { display:grid; gap:6px; margin-bottom:12px; }
.dashboard-cohort p { margin:0; color:var(--muted); font-size:12px; }
.dashboard-cohort p b { color:var(--text); }
.dashboard-cohort-bar { display:flex; gap:2px; height:10px; overflow:hidden; border-radius:5px; }
.dashboard-cohort-bar .is-closedNow { background:var(--success); }
.dashboard-cohort-bar .is-newOpen { background:var(--blue); }
.dashboard-cohort-bar .is-unknownStatus { background:var(--line-strong); }
@media (max-width: 900px) { .dashboard-trend-grid { grid-template-columns:1fr; } }
.dashboard-members-chart > header h3 { white-space:nowrap; }
