/* 31-context-pipeline.css — [맥락 관리] 탭(#1419 T6). 파이프라인 개요 + 단계별 관리 화면.
 *
 *  토큰만 쓴다(리터럴 색·radius 0). radius 스케일 6/9/12/16/999, 상태색은 blue/mint/coral 삼각.
 *  컬러 예산: 채운 블루 1(primary CTA — 버튼 컴포넌트가 이미 소유) + 상태 점 3색 + 선택 틴트.
 *  카드 안 카드 중첩 금지 규칙에 따라, 단계 카드 내부는 카드가 아니라 평면 블록으로 짠다.
 */

/* ── 레이아웃(#1584) — 위계 2단(단계 ▸ 화면)을 좌측 사이드바 하나가 전담한다. ──
 *  종전엔 페이지 안에 가로 탭이 2층으로 쌓여 있었다(단계 바 + 세그먼티드 바). 다른 탭
 *  (프로젝트·WIKI·관리)이 전부 좌측 내비인데 이 탭만 달랐고, 2층 아래에서 본문이 시작해 그만큼 밀렸다.
 *  사이드바 마크업·스타일은 관리탭·사용 가이드의 .docs-side 를 그대로 쓴다(26-docs-guide.css) —
 *  여기서는 이 탭 사정(본문 폭·단계 번호·권한 배지)만 덧쓴다. */
body[data-route="context"] main { max-width: none; }   /* 관리탭과 같다 — 폭은 아래 .ctx-body 가 잡는다 */
/* 2단 골격(반응형 세로 스택 포함)은 .docs-layout/.docs-side 가 갖는다(26-docs-guide.css) — 마크업이 두
   클래스를 함께 단다. 여기 .ctx-layout 은 그 위에 이 탭 사정만 덧쓰는 자리다(관리탭 .admin-layout 과 같은 짝). */
/* 본문 읽기 폭 — 전폭이면 27인치에서 카드 한 줄이 너무 길어 한눈에 안 들어온다(#1085 관리탭과 같은 처방).
   1160 은 종전 .ctx-layout 컬럼과 같은 값이라 탭을 옮겨도 화면이 넓어졌다 좁아졌다 하지 않는다. */
.ctx-body { flex: 1; min-width: 0; max-width: 1160px; padding: 4px 0 48px; }

/* ── 단계 레일(#1584) — 번호 원을 세로선으로 이어 '수집 → 증류 → 분류 → 관리'를 흐름으로 읽히게. ──
 *  왜: 좌측으로 옮기고 번호만 붙였더니 **지금 어느 단계인지 감각이 죽었다**(사용자 지적). 가로 배열이
 *  공짜로 주던 순서·진행을 세로에서 되찾으려면 선이 있어야 한다. 상태는 셋 — 지나온(is-done) ·
 *  현재(is-current) · 아직(is-todo). 개요를 보는 중이면 현재 단계가 없어 넷 다 '아직'으로 물러난다.
 *  ⚠ 칠하는 건 레일과 머리글뿐이다 — 항목(.docs-item)까지 흐리게 하면 갈 수 있는 화면이 잠긴 것처럼 보인다. */
.ctx-side .docs-side-title { display: flex; align-items: center; gap: 7px; }
.ctx-side .ctx-stage { position: relative; padding-left: 26px; margin-bottom: 22px; }
.ctx-side .ctx-stage > .docs-side-title { padding: 0; margin-bottom: 4px; }
.ctx-side .ctx-stage .docs-item { padding-left: 11px; }
/* 번호 원 — 사용 가이드의 단계 배지(06-learn.css)와 같은 문법(원형 필 + 흰 숫자)을 작게 쓴다. */
.ctx-side-step {
  position: absolute; left: 0; top: 1px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 17px; height: 17px; border-radius: 999px; box-sizing: border-box;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--muted-2);
  font-size: 10.5px; font-weight: 700; line-height: 1;
}
/* 레일 — 원 아래에서 다음 그룹의 원까지(그룹 간격 22px 를 건너뛴다). 마지막 단계는 항목 끝에서 끊는다. */
.ctx-side .ctx-stage::before {
  content: ''; position: absolute; left: 7.5px; top: 20px; bottom: -22px;
  width: 2px; border-radius: 1px; background: var(--line);
}
.ctx-side .ctx-stage:last-child::before { bottom: 10px; }

/* 지나온 단계 · 개요(강조 없음) — 또렷하되 주장하지 않는 톤. 둘을 같이 칠하는 이유는 위 buildSide 주석 참조. */
.ctx-side .ctx-stage.is-done::before,
.ctx-side .ctx-stage.is-idle::before { background: var(--line-net-2); }
.ctx-side .ctx-stage.is-done .ctx-side-step,
.ctx-side .ctx-stage.is-idle .ctx-side-step { border-color: var(--muted-2); color: var(--ink-sub); }
/* 현재 단계 — 채운 원 + 굵은 블루 레일. 좌측에서 눈이 먼저 닿는 유일한 지점이다. */
.ctx-side .ctx-stage.is-current::before { background: var(--blue-fill); width: 3px; left: 7px; }
.ctx-side .ctx-stage.is-current .ctx-side-step { background: var(--blue-fill); border-color: var(--blue); color: var(--on-fill); }
.ctx-side .ctx-stage.is-current > .docs-side-title { color: var(--blue); }
/* 아직 오지 않은 단계 — 머리글까지 흐리게(레일 기본값 그대로). */
.ctx-side .ctx-stage.is-todo > .docs-side-title { color: var(--muted-head); }

/* ── 개요 입구 카드(#1584) — 사이드바 맨 위. ──
 *  왜 카드인가: 굵은 잉크 한 줄로 뒀더니 아래 단계 머리글(수집·증류…)과 **같은 모양**이라 라벨로 읽혔다
 *  ("누를 수 있는 버튼 같지가 않다" — 사용자). 머리글은 안 눌리는 텍스트이므로, 같은 모양이면 안 눌리는
 *  것으로 학습된다. 테두리·틴트가 클릭 대상임을 말하고, 아이콘이 '이어진 전체'를, 부제가 '눌러서 무엇을
 *  보는지'를 말한다. 개요는 이 탭에서 유일하게 '설정이 아니라 상태를 보는' 화면이라 모양도 달라야 맞다. */
.ctx-side-ov {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 20px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-tint); color: var(--ink); text-decoration: none;
  transition: border-color .12s ease, background .12s ease;
}
.ctx-side-ov:hover { border-color: var(--line-net-2); background: var(--bg-punch); }
.ctx-side-ov:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ctx-side-ov.active { border-color: var(--blue); background: var(--bg-punch); }
.ctx-side-ov-ic { flex: none; color: var(--ink-sub); }
.ctx-side-ov.active .ctx-side-ov-ic { color: var(--blue); }
.ctx-side-ov-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ctx-side-ov-label { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.ctx-side-ov.active .ctx-side-ov-label { color: var(--blue); }
.ctx-side-ov-sub { font-size: 11.5px; line-height: 1.35; color: var(--muted-head); }
.ctx-side-ov-go { margin-left: auto; flex: none; font-size: 15px; color: var(--muted-2); }
.ctx-side-ov:hover .ctx-side-ov-go, .ctx-side-ov.active .ctx-side-ov-go { color: var(--blue); }

/* ── 본문 위치 한 줄 — '맥락 관리 › ③ 분류'. 증류기 설정 페이지의 .dst-crumb 과 같은 시각 언어. ──
 *  좌측 레일이 '어느 단계'를 말해도 시선이 본문에 있으면 그 정보가 화면 밖이다. 제목 바로 위 한 줄이
 *  그 간극을 메운다(종전 가로 탭이 본문 바로 위에서 하던 일). */
.ctx-crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 0 0 10px; font-size: 13px; color: var(--muted-head); }
.ctx-crumb a { color: var(--ink-sub); text-decoration: none; border-radius: 6px; padding: 2px 4px; }
.ctx-crumb a:hover { color: var(--blue); background: var(--bg-tint); }
.ctx-crumb .ctx-crumb-stage { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink); }
.ctx-crumb-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 999px; flex: none;
  background: var(--blue-fill); color: var(--on-fill); font-size: 10px; font-weight: 700; line-height: 1;
}
.ctx-crumb-sep { color: var(--muted-2); }

/* ── 파이프라인 개요 ── */
.ctxp { display: grid; gap: 16px; }
.ctxp-loading { padding: 28px 0; }

.ctxp-summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px;
  background: var(--bg-success); border: 1px solid var(--line);
}
.ctxp-summary-warn { background: var(--bg-note); border-color: var(--line-note); }
.ctxp-summary-badge {
  font-size: 13px; font-weight: 700; color: var(--coral-text);
  padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  white-space: nowrap;
}
.ctxp-summary-ok { color: var(--mint-deep); }
.ctxp-summary-txt { font-size: 14px; color: var(--ink-sub); }

/* 4단계 트랙 — 가로 나열이 요점(단계 '사이'를 비교하려면 나란히 놓여야 한다). */
.ctxp-track {
  display: grid; align-items: stretch; gap: 0;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
}

.ctxp-stage {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg);
  color: inherit; min-width: 0;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.ctxp-stage:hover { border-color: var(--line-net-2); background: var(--bg-tint); }
.ctxp-stage:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* 상태별 좌측 강조 — 채운 배경 대신 얇은 띠(컬러 예산 절약 + 스캔 용이). */
.ctxp-stage.ctxp-warn { border-left: 3px solid var(--coral); }
.ctxp-stage.ctxp-off  { border-left: 3px solid var(--muted-2); }
.ctxp-stage.ctxp-note { border-left: 3px solid var(--node-blue-soft); }
.ctxp-stage.ctxp-ok   { border-left: 3px solid var(--mint); }

.ctxp-stage-head { display: flex; align-items: center; gap: 8px; }
.ctxp-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 999px; flex: none;
  background: var(--bg-punch); color: var(--ink-note);
  font-size: 12px; font-weight: 700;
}
.ctxp-stage-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.ctxp-state { margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--ink-sub); white-space: nowrap; }

/* 상태 점 — 채운 컬러 필 금지 규칙에 따른 표준 표기(점 + 라벨). */
.ctxp-dot { width: 7px; height: 7px; border-radius: 999px; flex: none; display: inline-block; }
.ctxp-dot-ok   { background: var(--mint); }
.ctxp-dot-note { background: var(--node-blue-soft); }
.ctxp-dot-warn { background: var(--coral); }
.ctxp-dot-off  { background: var(--muted-2); }

.ctxp-what { margin: 0; font-size: 13px; color: var(--muted-head); line-height: 1.5; }
.ctxp-line { margin: 0; font-size: 13.5px; color: var(--ink-sub); line-height: 1.55; }
.ctxp-warn .ctxp-line, .ctxp-off .ctxp-line { color: var(--ink-note); font-weight: 600; }

.ctxp-metrics { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--line-row); }
.ctxp-metric { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ctxp-metric-v { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.ctxp-metric-l { font-size: 11.5px; color: var(--muted-head); white-space: nowrap; }

.ctxp-goto { font-size: 12.5px; font-weight: 600; color: var(--blue); }

/* 단계 사이 흐름 — 무엇이 넘어가는지. */
.ctxp-flow { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 0 10px; min-width: 64px; }
.ctxp-flow-line { flex: 1; width: 1px; background: var(--line-net); min-height: 12px; }
.ctxp-flow-label { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* 검토 대기 · 자동 실행 — 개요 하단 보조 정보. */
.ctxp-gates, .ctxp-jobs {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-tint);
}
.ctxp-gates-title, .ctxp-jobs-title { font-size: 13px; font-weight: 700; color: var(--ink-sub); }
.ctxp-gate { display: inline-flex; align-items: baseline; gap: 6px; color: inherit;
  padding: 4px 10px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.ctxp-gate:hover { border-color: var(--line-net-2); }
.ctxp-gate-n { font-size: 15px; font-weight: 700; color: var(--ink); }
.ctxp-gate-l { font-size: 12.5px; color: var(--ink-sub); }
.ctxp-job { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-sub); }
.ctxp-job-n { font-weight: 600; color: var(--ink); }
.ctxp-job-v { color: var(--muted-head); }
.ctxp-jobs-link { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--blue); }

/* ── 단계별 관리 화면 공통 ──
 *  (구 세그먼티드 바(.ctx-seg)는 #1584 에서 폐지 — 2층이던 하위 탭이 좌측 사이드바 항목이 됐다.) */
.ctx-row { margin-top: 12px; }
.ctx-row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctx-row-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.ctx-row-meta { font-size: 13px; color: var(--muted-head); margin-top: 6px; line-height: 1.5; }
.ctx-row-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ctx-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  font-weight: 600; color: var(--ink-sub); }

.ctx-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  background: var(--bg-tint-2); color: var(--ink-sub); font-size: 12px; font-weight: 600;
  white-space: nowrap; }
.ctx-tag-warn { background: var(--bg-note); color: var(--coral-text); }

.ctx-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ctx-sub { font-size: 13px; font-weight: 700; color: var(--ink-sub); margin: 14px 0 8px; }

.ctx-empty { margin-top: 12px; text-align: center; padding: 32px 20px; }
.ctx-empty-t { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }

.ctx-cov { margin-top: 12px; }
.ctx-cov-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ctx-warn-line { margin-top: 10px; color: var(--ink-note); }

/* ── 편집기 ── */
.ctx-editor { margin-top: 12px; border-left: 3px solid var(--blue); }
.ctx-field { margin: 0 0 14px; }
.ctx-field .field-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.ctx-field-hint { margin: 2px 0 6px; }
.ctx-pick-row { display: flex; gap: 8px; align-items: center; }
.ctx-pick-row input { flex: 1; min-width: 0; }
.ctx-pick-list { display: grid; gap: 2px; max-height: 340px; overflow: auto; }
.ctx-pick-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px;
  font-size: 13.5px; cursor: pointer; }
.ctx-pick-item:hover { background: var(--bg-tint); }

/* 프리셋 고르기 — 만들기의 첫 결정. */
.ctx-preset-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ctx-preset { display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 13px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg);
  cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.ctx-preset:hover { border-color: var(--blue); background: var(--bg-tint); }
.ctx-preset:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ctx-preset-t { font-size: 14px; font-weight: 700; color: var(--ink); }
.ctx-preset-d { font-size: 12.5px; color: var(--muted-head); line-height: 1.45; }

/* 안내 접이식 */
.ctx-guide { margin: 0 0 16px; padding: 12px 14px; border-radius: 9px;
  background: var(--bg-note); border: 1px solid var(--line-note); }
.ctx-guide > summary { font-size: 13.5px; font-weight: 700; color: var(--ink-note); cursor: pointer; }
.ctx-guide-steps { margin: 10px 0 0; padding-left: 20px; font-size: 13px; color: var(--ink-sub); line-height: 1.7; }
.ctx-guide-link { font-size: 13px; font-weight: 600; color: var(--blue); }

/* 미리보기 · 실행 기록 */
.ctx-preview-list { display: grid; gap: 6px; margin-top: 10px; }
.ctx-preview-row { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); }
.ctx-preview-t { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
a.ctx-preview-t:hover { color: var(--blue); }
.ctx-preview-m { font-size: 12px; color: var(--muted-head); margin-top: 2px; }
.ctx-preview-b { font-size: 12.5px; color: var(--ink-sub); margin-top: 6px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ctx-run-row { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 9px;
  cursor: pointer; }
.ctx-run-row:hover { background: var(--bg-tint); }
.ctx-run-t { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ctx-run-m { font-size: 12.5px; color: var(--muted-head); margin-left: auto; }

/* ── 발견 큐 ── */
.ctx-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ctx-chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-sub); font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease; }
.ctx-chip:hover { border-color: var(--line-net-2); color: var(--ink); }
.ctx-chip-on { background: var(--bg-sel); border-color: var(--blue); color: var(--blue); }
.ctx-filter-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

.ctx-findings { display: grid; gap: 10px; }
.ctx-finding { margin-top: 0; }
.ctx-sev-high { border-left: 3px solid var(--coral); }
.ctx-sev-warn { border-left: 3px solid var(--node-blue-soft); }
.ctx-sev-note { border-left: 3px solid var(--muted-3-line); }
.ctx-finding-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctx-sev { font-size: 12px; font-weight: 700; color: var(--ink-sub); }
.ctx-sev-high .ctx-sev { color: var(--coral-text); }
.ctx-finding-when { margin-left: auto; font-size: 12px; color: var(--muted); }
.ctx-finding-sum { margin: 8px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.ctx-finding-target { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--blue); }
.ctx-evidence { margin-top: 8px; }
.ctx-evidence > summary { font-size: 12.5px; font-weight: 600; color: var(--ink-sub); cursor: pointer; }
.ctx-evidence-b { margin: 8px 0 0; padding: 10px 12px; border-radius: 9px;
  background: var(--bg-tint); font-size: 12.5px; color: var(--ink-sub); line-height: 1.6;
  white-space: pre-wrap; word-break: break-word; }

/* 종류별 현황 */
.ctx-kind-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ctx-kind { padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); }
.ctx-kind-h { display: flex; align-items: center; gap: 6px; }
.ctx-kind-t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ctx-kind-m { font-size: 12.5px; color: var(--muted-head); margin-top: 3px; }

/* ── 반응형 ──
 *  파이프라인은 가로 비교가 요점이라 최대한 유지하다가, 좁아지면 2×2 → 세로로 접는다.
 *  접힐 때 흐름 표시(자료·지식…)는 숨긴다 — 세로에선 화살표가 오히려 읽기를 방해한다. */
@media (max-width: 1100px) {
  .ctxp-track { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ctxp-flow { display: none; }
}
/* 세로 스택(사이드바가 위로)될 땐 본문 폭을 명시한다 — .docs-layout 의 align-items:flex-start 가
   세로 모드에선 '내용 폭'으로 줄여, 표·그리드가 넓은 본문이 화면 밖으로 삐져나온다(관리탭과 같은 처방). */
@media (max-width: 960px) {
  .ctx-body { width: 100%; }
  /* 사이드바가 위로 올라가 가로로 흐르는 모드 — 세로 레일은 뜻을 잃으므로 걷고 번호 원만 남긴다
     (번호가 인라인으로 돌아가 '1 수집 · 2 증류 …'가 가로 순서로 읽힌다). */
  .ctx-side .ctx-stage { padding-left: 0; margin-bottom: 0; }
  .ctx-side .ctx-stage::before { display: none; }
  .ctx-side-step { position: static; }
  /* 개요 카드는 가로 줄의 첫 칸 — 아래 여백을 걷고 폭은 내용만큼만(단계들과 한 줄에 선다). */
  .ctx-side-ov { margin: 0; align-self: flex-start; }
}
@media (max-width: 640px) {
  .ctxp-track { grid-template-columns: 1fr; }
  .ctxp-summary { align-items: flex-start; flex-direction: column; gap: 6px; }
  .ctxp-jobs-link { margin-left: 0; }
  .ctx-finding-when { margin-left: 0; }
  .ctx-preset-grid { grid-template-columns: 1fr; }
}

/* 제안된 조치 묶음 적용(#1419 T9) — action_level='propose' 의 실체가 화면에 드러나는 자리.
   report 는 목록만 쌓이고, propose 면 이 바가 뜬다(라벨만 다른 게 아니라 할 수 있는 일이 다르다). */
.ctx-bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 12px; border-radius: 12px;
  background: var(--bg-punch); border: 1px solid var(--line-note); }
.ctx-bulk-t { font-size: 13px; font-weight: 700; color: var(--ink-note); }
.ctx-bulk-d { font-size: 13px; color: var(--ink-sub); flex: 1; min-width: 200px; }
.ctx-tag-ready { background: var(--bg-punch); color: var(--ink-note); }

/* ── 관리자 전용 표식(#1419) — '보는 건 누구나, 고치는 건 관리자'인 단계를 권한과 무관하게 늘 알린다. ──
   왜 늘 보이나: 배지를 비관리자에게만 보이면 관리자는 자기 화면과 남의 화면이 다르다는 걸 모른 채
   "그냥 만드세요"라고 말하게 되고, 아예 안 보이면 막힌 사람이 "나만 고장났나"로 읽는다.
   문구는 '관리자' 하나로 통일한다(#1085) — admin·memory 같은 내부 scope 이름은 보는 사람에게 뜻이 없다. */
.ctx-side .docs-side-title .admin-only-badge {
  padding: 0 6px; border-radius: 999px; flex: none;
  font-size: 10px; font-weight: 700; line-height: 15px; white-space: nowrap;
  background: var(--bg-tint-2); color: var(--muted-head); border: 1px solid var(--line);
}

/* 단계 본문 첫 줄의 권한 안내 — 배지·[읽기 전용] pill 과 설명이 한 줄에서 끝나게(줄바꿈되면 두 조각으로 읽힌다). */
.ctx-perm-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.ctx-perm-line .admin-only-badge {
  padding: 0 6px; border-radius: 999px; flex: none;
  font-size: 10px; font-weight: 700; line-height: 16px; white-space: nowrap;
  background: var(--bg-tint-2); color: var(--muted-head); border: 1px solid var(--line);
}
.ctx-perm-line .pill { flex: none; }

/* ══ #1841 — 머리 3층(프로젝트 탭 동형) 안에 단계 줄 ══
 *  좌측 단계 사이드바(.ctx-side, #1584)는 더 이상 그리지 않는다(규칙은 check-css-drops 때문에 남긴다).
 *  단계 줄 = 탭이자 다이어그램: [번호 원][이름][건강 점] › [번호 원][이름][건강 점] › … 탭 사이 '›' 가 흐름이다.
 *  건강 점의 색·판정은 개요 카드(.ctxp-dot-*)와 같은 한 벌 — 탭에서 본 점과 카드에서 본 띠가 어긋나지 않는다. */
.ctx-board-wrap { max-width: none; }
.ctx-board { margin-bottom: 18px; }
.ctx-board .ctx-body { max-width: none; padding: 6px 0 28px; }
.ctx-board .ctx-body > .section-head:first-child { margin-top: 8px; }
.ctx-crumb-leaf { display: inline-flex; align-items: center; gap: 7px; }
.ctx-crumb-ic { width: 17px; height: 17px; color: var(--ink-sub); flex: none; }
.ctx-crumb-sub { font-size: 12.5px; color: var(--muted); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ctx-vtabs { gap: 0; }
.ctx-vtab { text-decoration: none; gap: 8px; padding: 9px 10px 10px; }
.ctx-vtab:hover .ctx-vtab-step { border-color: var(--ink-sub); color: var(--ink); }
.ctx-vtab-ov { padding-left: 6px; }
.ctx-vtab-ov-ic { width: 18px; height: 18px; flex: none; color: var(--muted-2); }
.ctx-vtab-ov.active .ctx-vtab-ov-ic, .ctx-vtab-ov:hover .ctx-vtab-ov-ic { color: var(--ink); }
.ctx-vtab-step {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 19px; height: 19px; border-radius: 999px; box-sizing: border-box;
  border: 1.5px solid var(--line-net-2); color: var(--ink-sub);
  font-size: 11px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.ctx-vtab.active .ctx-vtab-step { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ctx-vtab-label { white-space: nowrap; }
.ctx-vtab-flow { flex: none; color: var(--muted-2); font-size: 15px; font-weight: 600; line-height: 1; padding-bottom: 2px; margin: 0 -2px; user-select: none; }
.ctx-vtab-dot { width: 7px; height: 7px; border-radius: 999px; flex: none; display: inline-block; background: var(--line-net-2); transition: background .2s ease; }
.ctx-vtab-dot.is-ok   { background: var(--mint); }
.ctx-vtab-dot.is-note { background: var(--node-blue-soft); }
.ctx-vtab-dot.is-warn { background: var(--coral); }
.ctx-vtab-dot.is-off  { background: var(--muted-2); }
.ctx-vtab-lock { display: inline-flex; flex: none; color: var(--muted-2); }
.ctx-vtab-lock svg { width: 12px; height: 12px; }
.ctx-vtab.active .ctx-vtab-lock { color: var(--ink-sub); }

.ctx-board .pjv-board-toolbar { min-height: 42px; padding-top: 4px; }
.ctx-pill { text-decoration: none; }
.ctx-pill:not(.active) { color: var(--ink-sub); }
.ctx-tb-link { font-size: 12.5px; font-weight: 600; color: var(--blue); text-decoration: none; padding: 0 6px; }
.ctx-tb-link:hover { text-decoration: underline; }
/* 툴바가 없는 개요에서 탭 줄과 본문 사이 숨 */
.ctx-board .ctx-vtabs + .ctx-body { padding-top: 18px; }

/* 개요 다이어그램의 번호 원을 탭의 번호 원과 같은 꼴로 — 한 화면에 번호 원이 두 꼴이면 둘 중 하나는 장식으로 보인다. */
.ctx-board .ctxp-step { width: 19px; height: 19px; box-sizing: border-box; border: 1.5px solid var(--line-net-2); background: none; color: var(--ink-sub); font-size: 11px; font-weight: 800; }
.ctx-board .ctxp-stage:hover .ctxp-step { border-color: var(--ink-sub); color: var(--ink); }

@media (max-width: 960px) { .ctx-crumb-sub { display: none; } }
@media (max-width: 720px) { .ctx-vtab-label { font-size: 13px; } .ctx-vtab { padding: 9px 7px 10px; } }

/* ══ #1841 — 맥락 관리 첫 화면(현황). 지표가 아니라 '아는 것 + 할 일'을 말한다 ══ */
.cxh { display: flex; flex-direction: column; gap: 30px; max-width: 1080px; padding: 6px 0 40px; }
.cxh-sec { display: flex; flex-direction: column; gap: 12px; }
.cxh-h { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.2px; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.cxh-h-n { font-size: 12px; font-weight: 800; color: var(--on-fill); background: var(--coral); border-radius: 999px; padding: 1px 8px; }

/* 아는 것 — 큰 숫자 셋 */
.cxh-know { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cxh-know-card { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: inherit; }
.cxh-know-card:hover { border-color: var(--line-net-2); background: var(--bg-tint); }
.cxh-know-n { font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cxh-know-l { font-size: 13.5px; font-weight: 700; color: var(--ink-sub); }
.cxh-know-s { font-size: 12px; color: var(--muted-head); line-height: 1.45; }

/* 할 일 — 막힌 것만. 색은 심각도에만 쓴다(§0.5 컬러 예산). */
.cxh-todos { display: flex; flex-direction: column; gap: 8px; }
.cxh-todo { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--muted-2); border-radius: 12px; background: var(--surface); }
.cxh-todo.is-off { border-left-color: var(--coral); }
.cxh-todo.is-warn { border-left-color: var(--warn); }
.cxh-todo.is-note { border-left-color: var(--node-blue-soft); }
.cxh-todo-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cxh-todo-t { font-size: 14px; font-weight: 800; letter-spacing: -.1px; color: var(--ink); }
.cxh-todo-l { margin: 0; font-size: 13px; color: var(--ink-sub); line-height: 1.5; }
.cxh-todo .btn { flex: none; }
.cxh-allok { display: flex; flex-direction: column; gap: 3px; padding: 18px 20px; border: 1px solid var(--ok-line); border-radius: 12px; background: var(--ok-bg); }
.cxh-allok b { font-size: 14px; color: var(--mint-deep); }
.cxh-allok span { font-size: 13px; color: var(--ink-sub); }

/* 흐름 네 칸 — 자료가 AI 에 닿기까지. 칸을 누르면 그 탭. */
.cxh-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; }
.cxh-step { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: inherit; min-width: 0; }
.cxh-step:hover { border-color: var(--line-net-2); background: var(--bg-tint); }
.cxh-step-n { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 999px; border: 1.5px solid var(--line-net-2); color: var(--ink-sub); font-size: 11px; font-weight: 800; box-sizing: border-box; }
.cxh-step-l { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.cxh-step-v { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.cxh-step-vl { font-size: 11.5px; color: var(--muted-head); }
.cxh-step-dot { position: absolute; top: 14px; right: 14px; width: 7px; height: 7px; border-radius: 999px; background: var(--mint); }
.cxh-step.is-note .cxh-step-dot { background: var(--node-blue-soft); }
.cxh-step.is-warn .cxh-step-dot { background: var(--warn); }
.cxh-step.is-off .cxh-step-dot { background: var(--coral); }
.cxh-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 10px; min-width: 72px; }
.cxh-arrow-l { font-size: 11px; color: var(--muted); white-space: nowrap; }
.cxh-arrow-a { font-size: 14px; color: var(--muted-2); }

/* 자동 실행 — '설정했다'와 '돌고 있다'는 다르다 */
.cxh-jobs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-tint); }
.cxh-jobs-t { font-size: 12.5px; font-weight: 700; color: var(--ink-sub); }
.cxh-job { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-head); }
.cxh-job b { color: var(--ink); font-weight: 700; }
.cxh-job-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--mint); flex: none; }
.cxh-job.is-off .cxh-job-dot { background: var(--muted-2); }
.cxh-job.is-off b { color: var(--ink-sub); }

@media (max-width: 900px) {
  .cxh-know { grid-template-columns: 1fr; }
  .cxh-flow { grid-template-columns: 1fr 1fr; }
  .cxh-arrow { display: none; }
}

/* ══ #762 전면 재구성 — 표지 = 흐름 지도(cxm) + 탭 1층 + 확인할 것 트레이 ══════════════
 *  프로토타입 v5(2026-08-31 원준 확정)의 구현. 토큰만 쓴다(리터럴 색 0). 역·게이트·미니어처는
 *  전부 HTML/CSS — SVG 프레젠테이션 속성에 CSS 변수를 쓰면 무효가 되는 함정(v4 실측)을 피한다. */

/* 탭 줄 — 알약 층이 사라졌으므로 탭 줄이 곧 목차다. 오른쪽 끝 트레이(확인할 것). */
.ctx-vtabs-sp { flex: 1 1 0; min-width: 8px; }
.ctx-vtab-tray { margin-left: auto; }
.ctx-tray-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 17px;
  padding: 0 5px; border-radius: 999px; background: var(--coral); color: var(--on-fill, #fff);
  font-size: 10.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

/* 화면 안 섹션 쌓기 — 한 탭 = 한 화면, 패널 사이 숨 고르기. */
.ctx-stacked + .ctx-stacked { margin-top: 26px; }
.ctx-crosslink { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ctx-crosslink b { font-size: 13.5px; }
.ctx-crosslink .admin-hint { margin: 0; }

/* ══ 흐름 지도(#762 → #3830 고도화) ═══════════════════════════════════════════
 *  원준 2026-09-09: *"순서가 [외부앱] -수집기-> [자료] -증류기-> [지식] -주입규칙-> [AI 세션] 이거라는게 잘
 *   드러나게 … 사이즈감·덩어리감·진행되는 느낌은 좋고, 근데 약간 산만 … 슬랙이랑 노션 아이콘은 어디 갔어."*
 *
 *  산만함의 네 원인을 걷는다(dev 실측): ①역마다 다른 테두리 색 ②알약 3색 ③미니어처 재질 4종 ④글자 크기 7종.
 *   · **재질이 층을 말한다** — 장소는 흰 카드(--surface), 기계는 선로 위 어두운 칩(--chip-dark). 종전엔 수집기가
 *     역이어서 "앱과 자료 사이에서 도는 기계"라는 사용자 모델과 어긋났다.
 *   · **상태는 말 배지로만**. 역 테두리는 문제가 있을 때만 한 톤 짙어진다(면을 칠하지 않는다 — 지도가 경보판이 된다).
 *   · **글자 다섯 단**: 22(수) / 15(이름) / 12.5(정의·메타) / 11.5(실물) / 11(배지).
 *   · **선로는 그 기계가 도는 구간만 흐른다** — 진행감이 사실에만 붙는다(꺼진 구간은 멎어 있다).
 *  ⚠ 종전 판(#762)의 셀렉터는 아래 「폐기」 블록에 빈 규칙으로 남긴다(scripts/check-css-drops.mjs — 삭제 금지).
 * ═════════════════════════════════════════════════════════════════════════ */
.cxm { display: flex; flex-direction: column; gap: 14px; }
.cxm .num { font-variant-numeric: tabular-nums; }
.cxm-cap { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cxm-cap > b { flex: none; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.cxm-cap > span { font-size: 13px; color: var(--muted); word-break: keep-all; }
/* 바닥 한 판 — 지도 전체를 한 덩어리로 묶는다(카드 일곱이 허공에 흩어져 있던 것이 산만함의 절반이었다). */
.cxm-floor { padding: 20px; border-radius: 16px; background: var(--bg-tint); }
.cxm-lane { display: flex; align-items: stretch; gap: 0; overflow-x: auto; }

/* ── 역(장소) — 흰 카드. 해부 4칸: 문패(유리 아이콘·이름·수) / 정의 / 실물 / 발치 ── */
.cxm-st { flex: 1 1 0; min-width: 176px; display: flex; flex-direction: column; align-items: stretch;
  padding: 14px 14px 12px; border: 1px solid var(--line-net); border-radius: 12px; background: var(--surface);
  text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.cxm-st:hover { border-color: var(--blue); box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 8%, transparent); }
.cxm-st:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* 문제가 있는 역만 테두리가 한 톤 짙어진다 — 면·글자는 그대로다(상태는 아래 기계 칩의 말 배지가 말한다). */
.cxm-st.is-warn { border-color: var(--warn-line); }
.cxm-st.is-off { border-color: var(--danger-line); }
.cxm-st-h { display: flex; align-items: center; gap: 9px; min-height: 32px; }
.cxm-st-gi { width: 30px; height: 30px; flex: none; }
.cxm-st-t { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 800; color: var(--ink); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cxm-st-n { flex: none; font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.cxm-st-n small { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.cxm-st-def { margin-top: 7px; min-height: 34px; font-size: 12px; line-height: 1.45; color: var(--muted-head); word-break: keep-all; }
/* 실물 칸 — 재질을 하나로 통일한다(움푹한 판 하나). 종전엔 점선 상자·종이 더미·파란 왼선 카드·말풍선 넷이었다. */
.cxm-st-x { margin-top: 9px; height: 118px; padding: 7px; border-radius: 10px; background: var(--gray-bg);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; overflow: hidden; }
.cxm-st-more { margin-top: auto; padding-top: 10px; font-size: 11.5px; font-weight: 700; line-height: 1.45; color: var(--muted); word-break: keep-all; }
.cxm-empty { font-size: 11.5px; color: var(--muted); text-align: center; word-break: keep-all; }

/* 실물 ① 외부 앱 — **공식 서비스 로고**(svc-icons .svc-tile). 글자 한 자로 흉내내지 않는다(원준 2026-08-21 그 지적). */
.cxm-svts { display: grid; grid-template-columns: repeat(3, 30px); gap: 8px; justify-content: center; align-content: center; height: 100%; }
.cxm-svts .svc-tile { width: 30px; height: 30px; border-radius: 9px; }
.cxm-svts .svc-tile svg { width: 18px; height: 18px; }
/* 실물 ② 자료 — 출처별 원문 수(자료 앱 나무와 같은 숫자). */
.cxm-srcs { display: flex; flex-direction: column; gap: 4px; justify-content: center; height: 100%; }
.cxm-src-row { display: flex; align-items: center; gap: 7px; height: 22px; padding: 0 6px; min-width: 0;
  font-size: 11.5px; font-weight: 600; color: var(--ink); }
.cxm-src-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cxm-src-row > b { flex: none; font-size: 11.5px; font-weight: 800; color: var(--ink-sub); }
.cxm-src-mk { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-net-2);
  display: inline-flex; align-items: center; justify-content: center; font-style: normal;
  font-size: 10.5px; font-weight: 800; color: var(--ink-sub); background: var(--bg-tint); }
.cxm-src-mk--logo { background: var(--bg); border-color: var(--line); }
.cxm-src-mk--logo svg { display: block; width: 11px; height: 11px; }
/* 실물 ③ 지식 — 최근 갱신된 진짜 지식 세 줄. */
.cxm-kns { display: flex; flex-direction: column; gap: 6px; justify-content: center; height: 100%; }
.cxm-kn-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
  height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.cxm-kn-t { font-size: 11.5px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cxm-kn-m { font-size: 11px; font-weight: 600; color: var(--muted-2); white-space: nowrap; }
/* 실물 ④ AI 세션 — 대화 한 토막. 답하는 쪽에 그 AI 의 마크가 선다. */
.cxm-sess { display: flex; flex-direction: column; gap: 6px; justify-content: center; height: 100%; }
.cxm-sess-u { align-self: flex-end; max-width: 88%; padding: 5px 9px; border-radius: 9px 9px 2px 9px;
  background: var(--bg-tint-2); font-size: 11px; font-weight: 700; color: var(--ink); }
.cxm-sess-row { display: flex; align-items: flex-start; gap: 6px; }
.cxm-sess-ai { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: var(--bg-tint); font-style: normal; font-size: 9px; font-weight: 800; color: var(--muted-head); }
.cxm-sess-ai svg { display: block; width: 12px; height: 12px; }
.cxm-sess-a { min-width: 0; padding: 5px 9px; border-radius: 9px 9px 9px 2px; border: 1px solid var(--line);
  background: var(--bg); font-size: 11px; color: var(--ink-sub); line-height: 1.45; }
.cxm-sess-ref { display: inline-block; margin-left: 2px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--blue); white-space: nowrap; }

/* ── 관(선로) + 기계 칩 ── */
.cxm-duct { flex: none; width: 134px; position: relative; }
.cxm-wire { position: absolute; left: -2px; right: -2px; top: calc(50% - 1px); height: 3px; border-radius: 2px; }
.cxm-wire.is-still { background: repeating-linear-gradient(90deg, var(--line-net-2) 0 8px, transparent 8px 14px); }
/*  도는 구간 — 파선이 오른쪽으로 흐른다. 장식 모션이 아니라 **상태의 표현**이라 이 규칙만 애니메이션을 갖는다. */
.cxm-wire.is-flow { background: var(--line-net-2); overflow: hidden; }
.cxm-wire.is-flow::after { content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--mint) 0 10px, transparent 10px 22px);
  opacity: .75; animation: cxm-flow 1.8s linear infinite; }
@keyframes cxm-flow { from { background-position: 0 0; } to { background-position: 22px 0; } }
.cxm-arr { position: absolute; right: -3px; top: calc(50% - 6px); width: 13px; height: 13px;
  fill: none; stroke: var(--node-blue-soft); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cxm-duct-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; }
/*  기계 — 어두운 판 위 밝은 글자(--chip-dark 는 라이트·다크 양쪽에서 '떠 있는 판'이다, ui-design-system-v2 §2.7). */
.cxm-mc { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 116px;
  padding: 10px 8px 9px; border-radius: 11px; background: var(--chip-dark); color: var(--on-fill);
  text-align: center; text-decoration: none; box-shadow: 0 4px 14px rgba(var(--shadow-ink), .14);
  transition: box-shadow .15s, transform .15s; }
.cxm-mc:hover { box-shadow: 0 6px 18px rgba(var(--shadow-ink), .22); transform: translateY(-1px); }
.cxm-mc:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cxm-mc-n { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--on-fill); white-space: nowrap; }
.cxm-mc-ic { width: 13px; height: 13px; flex: none; fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cxm-mc-s { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.cxm-mc-p { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
/*  ⚠ 어두운 판 위 상태 글자는 **밝은 계열**이어야 한다. 처음엔 --ok-ink/--warn-ink/--danger-ink 를 썼는데
    그건 «틴트 배경 위 진한 글자» 토큰이라 라이트에서 #8C2020(진한 적) on #15233B(딥네이비) = 읽히지 않았다
    (실측). --chip-dark 는 **양 테마에서 어두운 판**이므로, 양 테마에서 밝게 남는 글자 토큰을 쓴다. */
.cxm-mc-p.is-ok { color: var(--mint-bright); }
.cxm-mc-p.is-warn { color: var(--warn); }
.cxm-mc-p.is-dn { color: var(--coral); }
.cxm-mc-e { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .62); white-space: nowrap; }
.cxm-mc-x { margin-top: 2px; padding: 1px 7px; border: 1px dashed var(--warn); border-radius: 8px;
  font-size: 10px; font-weight: 800; color: var(--warn-2); white-space: nowrap; }
.cxm-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--mint-bright); }
.cxm-dot.is-off { background: var(--coral); }
.cxm-dot.is-live { animation: cxm-pulse 2.8s ease-out infinite; }
@keyframes cxm-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint-bright) 45%, transparent); }
  70% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--mint-bright) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint-bright) 0%, transparent); }
}

/* ── 지도 아래 한 줄 — 같은 재질의 셀 둘(확인할 것 · 자동 실행). ── */
.cxm-strip { display: flex; gap: 16px; }
.cxm-cell { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 56px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font-size: 13px; color: var(--ink); text-decoration: none; }
.cxm-cell > b { flex: none; font-weight: 800; }
.cxm-cell-inbox:hover { border-color: var(--blue); }
.cxm-cell-s { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted-head); }
.cxm-cell .btn { flex: none; }

/* 확인할 것 화면 */
.cxm-inbox .cxh-h { margin: 22px 0 10px; }

/*  창이 좁아지면 **관을 먼저 줄인다**(정보가 가장 적은 칸) — 역 넷이 먼저 눌리면 실물이 잘린다.
    1280·1180 실측에서 각각 40px·140px 씩 넘치던 것이 이 두 단계로 0 이 된다. */
@media (max-width: 1400px) { .cxm-duct { width: 112px; } .cxm-st { min-width: 168px; } }
/*  ⚠ 좁아질 때 **이름은 절대 줄이지 않는다** — 처음엔 이름·수가 한 줄이라 1180 에서 「지.」·「AI …」로 잘렸다
    (실측). 이름은 그 역의 정체다. 그래서 문패를 두 줄로 접는다: [아이콘 이름] / [수]. */
@media (max-width: 1240px) {
  .cxm-duct { width: 96px; }
  .cxm-st { min-width: 156px; padding: 12px 12px 10px; }
  .cxm-mc { width: 104px; }
  .cxm-st-h { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 8px; align-items: center; min-height: 0; }
  .cxm-st-gi { width: 24px; height: 24px; grid-row: 1; }
  .cxm-st-t { grid-column: 2; grid-row: 1; }
  .cxm-st-n { grid-column: 1 / -1; grid-row: 2; font-size: 20px; }
}

/* 좁은 화면 — 지도는 가로 스크롤(cxm-lane 이 이미 overflow), 아래 두 셀은 세로로. */
@media (max-width: 900px) {
  .cxm-floor { padding: 14px; }
  .cxm-strip { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .cxm-wire.is-flow::after, .cxm-dot.is-live { animation: none; }
}

/* ── 폐기 — #762 판의 자리(규칙은 비웠고 셀렉터만 남긴다: check-css-drops 는 삭제를 유실로 본다). ── */
.cxm-stack { }
.cxm-jam { }
.cxm-st.is-warn, .cxm-jam { }
.cxm-jam .cxm-st-n { }
.cxm-mrow { }
.cxm-mrow-empty { }
.cxm-mrow-tx { }
.cxm-mrow-w { }
.cxm-sic { }
.cxm-paperz { }
.cxm-paperz i { }
.cxm-paperz i::before, .cxm-paperz i::after { }
.cxm-paperz i::before { }
.cxm-paperz i::after { }
.cxm-paperz i:nth-child(1) { }
.cxm-paperz i:nth-child(2) { }
.cxm-paperz i:nth-child(3) { }
.cxm-know { }
.cxm-know-t { }
.cxm-know-s { }
.cxm-gate { }
.cxm-gate:hover { }
.cxm-gate b { }
.cxm-gate-s { }
.cxm-gate-warn { }
.cxm-leak { }
.cxm-leak:hover { }
.cxm-line { }
.cxm-line-inbox { }
.cxm-line-inbox:hover { }
.cxm-line-inbox > b { }
.cxm-line-s { }
.cxm-line-inbox .btn { }

/* ── #3830 머리 한 줄 — [▽ 맥락 관리 │ 현황 수집기 … ‖ 확인할 것 n]. 종전 3층(빵부스러기/탭/캡션)을 접었다. ── */
.ctx-hd-app { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 20px;
  padding-right: 14px; margin-right: 6px; border-right: 1px solid var(--line);
  font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.ctx-board .ctx-vtabs { align-items: center; }
/* 정의 한 줄이 머리에서 화면 안으로 내려온 자리(현황은 지도 캡션이 대신한다). */
.ctx-hint { margin: 0 0 14px; font-size: 13px; color: var(--muted); word-break: keep-all; }
@media (max-width: 720px) { .ctx-hd-app { font-size: 14px; padding-right: 10px; } }
.cxm-src-gl { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
