/* =========================================================================
 * diagnosis.css — BY 무료 사업점검
 * 명세서의 '점수화 금지 · 사람 중심 판단' 원칙에 맞춰,
 * 숫자 등급이 아니라 상태와 근거가 눈에 들어오도록 만든다.
 * =======================================================================*/

/* 원칙 배지 — 화면 어디서든 이 시스템이 점수를 내지 않는다는 걸 상기시킨다 */
.principle-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-2);
  border: 1px dashed var(--line); border-radius: 99px; padding: 5px 11px;
}
.principle-chip .ico { width: 13px; height: 13px; }

/* 상태 배지 — 색은 보조수단이고 글자가 본체다 */
.st {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}
.st.danger { border-color: #e0b4ae; background: #fdf2f1; color: #a3342c; }
.st.warn   { border-color: #e6cfa6; background: #fdf8ee; color: #8a6416; }
.st.info   { border-color: #b8cdf2; background: #f0f5fd; color: #1d4ed8; }
.st.ok     { border-color: #a9d5bf; background: #f0f9f4; color: #0f7a4d; }
.st.muted  { border-style: dashed; color: var(--ink-3); }

/* 파이프라인 */
.pipe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .pipe { grid-template-columns: repeat(3, 1fr); } }
.pipe-step {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); padding: 12px 10px; text-align: center;
}
.pipe-step b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.pipe-step span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.pipe-step.hot { border-color: var(--primary); border-width: 2px; }

/* 신청 목록 행 */
.app-row {
  display: grid; grid-template-columns: 118px 1fr 120px 130px 96px 92px;
  gap: 10px; align-items: center;
  padding: 13px 16px; border-bottom: 1px dashed var(--line-soft);
  cursor: pointer;
}
.app-row:last-child { border-bottom: none; }
.app-row:hover { background: var(--surface-2); }
.app-id { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.app-biz { font-size: 14.5px; font-weight: 600; }
.app-sub { font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 900px) {
  .app-row { grid-template-columns: 1fr auto; }
  .app-id { grid-column: 1 / -1; }
}

/* 분야별 결과 카드 */
.field-card {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); padding: 15px 17px; margin-bottom: 10px;
}
.field-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.field-name { font-size: 14.5px; font-weight: 700; margin: 0; }
.field-desc { font-size: 11.5px; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--ink-3); font-size: 12px; }
.kv dd { margin: 0; color: var(--ink); }
@media (max-width: 700px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; } }

/* 핵심 문제 TOP 3 */
.issue {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); padding: 16px 18px; margin-bottom: 12px;
}
.issue-rank {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.issue-title { font-size: 15.5px; font-weight: 700; margin: 0 0 8px; }

/* 실행과제 */
.task-card {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 15px 17px; margin-bottom: 10px;
}
.task-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.task-name { font-size: 14.5px; font-weight: 700; margin: 0; }
.task-when { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.task-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* 참고 신호 */
.signal {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px;
}
.signal:last-child { border-bottom: none; }
.signal.resolved { color: var(--ink-3); }
.signal.resolved .sig-text { text-decoration: line-through; }
.sig-type {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px;
  white-space: nowrap; border: 1px solid var(--line); color: var(--ink-2);
}
.sig-type.risk, .sig-type.conflict { border-color: #e0b4ae; color: #a3342c; background: #fdf2f1; }
.sig-type.needimp, .sig-type.needfile, .sig-type.neediv { border-color: #e6cfa6; color: #8a6416; background: #fdf8ee; }
.sig-type.chance { border-color: #b8cdf2; color: #1d4ed8; background: #f0f5fd; }

/* 문진 답변 */
.qa { padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
.qa:last-child { border-bottom: none; }
.qa-q { font-size: 13px; color: var(--ink-2); margin: 0 0 5px; }
.qa-a { font-size: 14px; margin: 0; }

/* 고객 리포트 */
.report-wrap { max-width: 860px; margin: 0 auto; }
.report-cover {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 34px 32px; margin-bottom: 18px;
}
.report-brand { font-size: 12px; letter-spacing: .16em; color: var(--primary); font-weight: 700; }
.report-title { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 6px; }
.report-sub { color: var(--ink-3); font-size: 13.5px; margin: 0; }
.report-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
@media (max-width: 760px) { .report-facts { grid-template-columns: repeat(2, 1fr); } }
.report-facts > div { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.report-facts dt { font-size: 11.5px; color: var(--ink-3); }
.report-facts dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 600; }
.sec-h { font-size: 16px; font-weight: 700; margin: 26px 0 12px; display: flex; align-items: center; gap: 9px; }
.sec-h .num {
  width: 24px; height: 24px; border-radius: 6px; background: var(--primary-weak);
  color: var(--primary-ink); display: inline-flex; align-items: center;
  justify-content: center; font-size: 12.5px; font-weight: 700;
}

/* 진행상태 스텝 */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.step-mark { display: flex; flex-direction: column; align-items: center; }
.step-dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.step-dot .ico { width: 12px; height: 12px; color: transparent; }
.step.done .step-dot { background: var(--primary); border-color: var(--primary); }
.step.done .step-dot .ico { color: #fff; }
.step.now .step-dot { border-color: var(--primary); border-width: 3px; }
.step-line { flex: 1; width: 2px; background: var(--line-soft); min-height: 22px; }
.step.done .step-line { background: var(--primary); }
.step:last-child .step-line { display: none; }
.step-body { padding-bottom: 18px; }
.step-name { font-size: 14.5px; font-weight: 600; }
.step.now .step-name { color: var(--primary-ink); }
.step-note { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.pick-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
