/* 호시담 Agent — HTML 임상 테스트 UI */
:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface2: #243044;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --accent: #3d8bfd;
  --accent-dim: #2a5f9e;
  --success: #3fb950;
  --warning: #d29922;
  --danger: #f85149;
  --border: #30363d;
  --radius: 10px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

[data-theme="light"] {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface2: #eef1f6;
  --text: #1f2328;
  --muted: #57606a;
  --accent: #0969da;
  --accent-dim: #dbeafe;
  --success: #1a7f37;
  --warning: #9a6700;
  --danger: #cf222e;
  --border: #d0d7de;
}

[data-theme="light"] .success-banner { color: #1a7f37; background: rgba(26,127,55,0.1); border-color: rgba(26,127,55,0.3); }
[data-theme="light"] .error-banner   { color: #cf222e; background: rgba(207,34,46,0.08); border-color: rgba(207,34,46,0.3); }
[data-theme="light"] .warning-banner { color: #9a6700; background: rgba(154,103,0,0.08); border-color: rgba(154,103,0,0.3); }
[data-theme="light"] .utterance-tagged-tags,
[data-theme="light"] .utterance-tagged-evidence .tag-id-ref,
[data-theme="light"] .report-table .report-tag-id { color: #0550ae; }
[data-theme="light"] .nav-btn.active { color: #0969da; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  transition: background 0.2s, color 0.2s;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar h1 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.sidebar .caption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.nav-btn:hover {
  background: var(--surface2);
}

.nav-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.sidebar .notice {
  margin-top: 1.5rem;
  padding: 0.75rem;
  font-size: 0.78rem;
  color: var(--warning);
  background: rgba(210, 153, 34, 0.12);
  border-radius: var(--radius);
  border: 1px solid rgba(210, 153, 34, 0.35);
}

main {
  flex: 1;
  padding: 1.75rem 2rem 3rem;
  max-width: 1200px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

main h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

main .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

details.guide {
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
}

details.guide summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.35rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .app {
    flex-direction: column;
  }
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

textarea,
input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

.side-panel label {
  margin-top: 0.75rem;
}

.side-panel label:first-child {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
/* author CSS의 display 프로퍼티는 UA 기본 [hidden]{display:none} 보다 우선순위가 높아
   .btn 요소는 hidden 속성만으로는 실제로 숨겨지지 않는다 — 명시적으로 되돌린다. */
.btn[hidden] { display: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 1.5rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.75rem 0;
}

.result-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.result-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.metric {
  background: var(--surface2);
  padding: 0.75rem;
  border-radius: var(--radius);
  text-align: center;
}

.metric .val {
  font-size: 1.25rem;
  font-weight: 700;
}

.metric .lbl {
  font-size: 0.75rem;
  color: var(--muted);
}

.risk-flag {
  border-left: 4px solid var(--warning);
  padding-left: 0.85rem;
  margin-bottom: 0.75rem;
}

.risk-flag.grade-a {
  border-left-color: var(--danger);
}

ul.clean {
  margin: 0;
  padding-left: 1.2rem;
}

ul.clean li {
  margin-bottom: 0.35rem;
}

.result-download-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.6rem;
}

.code-line {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  background: var(--bg);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  margin: 0.35rem 0;
  border: 1px solid var(--border);
}

.success-banner {
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: #7ee787;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.error-banner {
  background: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.4);
  color: #ff7b72;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.info-banner {
  background: rgba(61, 139, 253, 0.12);
  border: 1px solid rgba(61, 139, 253, 0.35);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.warning-banner {
  background: rgba(210, 153, 34, 0.12);
  border: 1px solid rgba(210, 153, 34, 0.4);
  color: #e3b341;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.chat-log {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 320px;
  overflow-y: auto;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.chat-msg {
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  max-width: 92%;
}

.chat-msg.client {
  background: var(--surface2);
  margin-right: auto;
}

.chat-msg.counselor {
  background: rgba(61, 139, 253, 0.2);
  margin-left: auto;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
}

.chat-input-row input {
  flex: 1;
}

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 800px) {
  .cols-2 {
    grid-template-columns: 1fr;
  }
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  cursor: pointer;
}

.file-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.inline-actions .btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

/* 루브릭 태깅: 문구 + 옆쪽 [tag] 나열 */
.utterance-tagged {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  background: var(--surface);
}

.utterance-tagged-speaker {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

/* 태깅 결과: 한 줄 한 발화 (본문 끝 [tag_id]…) */
.utterance-tagged-oneline {
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.utterance-tagged-line-full {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.utterance-tagged-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.85rem;
}

.utterance-tagged-text {
  flex: 1 1 220px;
  min-width: 0;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.utterance-tagged-tags {
  flex: 0 1 auto;
  max-width: 100%;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #79c0ff;
}

.utterance-tagged-rationale {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.utterance-tagged-rationale strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.35rem;
}

.utterance-tagged-evidence {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.utterance-tagged-evidence .tag-id-ref {
  color: #79c0ff;
  font-size: 0.78rem;
}

.tag-bracket {
  display: inline;
  margin-right: 0.2rem;
  white-space: nowrap;
}

.tag-none {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

.tagged-plain-wrap {
  margin-top: 1rem;
}

.tagged-plain-wrap label {
  margin-bottom: 0.35rem;
}

.tagged-plain-export {
  width: 100%;
  min-height: 140px;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-word;
}

.tagged-plain-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* 루브릭 태깅 결과 리포트 (회기 분석 페이지 하단 포함) */
.session-rubric-report {
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.report-embed-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.report-toolbar label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.session-intermediate-ta {
  width: 100%;
  min-height: 4rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Agent3 · 결과 페이지 초안 미리보기 (접수/종결) */
.report-draft-json-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  background: var(--surface);
}

.report-draft-json-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.report-draft-json-details[open] .report-draft-json-summary {
  margin-bottom: 0.5rem;
}

.report-draft-host {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0.85rem 1rem;
}

.report-draft-host .report-draft-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.report-draft-host .report-draft-section {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.report-draft-host .report-draft-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.report-draft-host .report-draft-h5 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.report-draft-host .report-draft-h4 {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.report-draft-host .report-draft-body {
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.report-draft-host .report-draft-muted {
  font-size: 0.82rem;
  color: var(--muted);
}

.report-draft-host .report-draft-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 0.4rem 0 0;
}

.report-draft-host .report-draft-table th,
.report-draft-host .report-draft-table td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.report-draft-host .report-draft-table th {
  background: var(--surface2);
  color: var(--muted);
  font-weight: 600;
}

.report-draft-host .report-draft-kv th {
  width: 28%;
  white-space: nowrap;
}

.report-draft-host .report-draft-narrative {
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.5rem 0;
}

.report-draft-host .report-draft-narrative h4 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.report-draft-host .report-draft-narrative p {
  margin: 0.25rem 0 0.5rem;
}

.report-draft-host ul.report-draft-ul {
  margin: 0.25rem 0 0.5rem 1.1rem;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.report-subtitle {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.report-summary-body {
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.report-major-table {
  max-width: 720px;
}

.report-selection-reason {
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  max-height: 14rem;
  overflow-y: auto;
}

td.report-reason {
  min-width: 180px;
  max-width: 320px;
  vertical-align: top;
}

.report-tables-host {
  margin-top: 0.5rem;
}

.report-section {
  margin-bottom: 1.75rem;
}

.report-section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.report-section-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.report-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.report-table th,
.report-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.report-table th {
  background: var(--surface2);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.report-table tr:last-child td {
  border-bottom: none;
}

.report-table .report-tag-id {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: #79c0ff;
  white-space: nowrap;
}

.report-table .report-desc {
  max-width: 28rem;
  line-height: 1.45;
  color: var(--text);
}

.report-table .report-count {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 4.5rem;
}

.report-table .report-phrases {
  min-width: 12rem;
  max-width: 36rem;
}

.report-no-phrases {
  color: var(--muted);
  font-style: italic;
}

.report-utterance-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.45;
  font-size: 0.78rem;
  color: var(--text);
}

.report-utterance-list li {
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.report-utterance-list li:last-child {
  margin-bottom: 0;
}

.report-phrase-more {
  list-style: none;
  margin-left: -1.1rem;
  padding-left: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.75rem;
}

.report-table .report-empty {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 1rem;
}

/* Agent 3 — 회기 정보(구분 선택) */
.session-info-block {
  padding: 0.75rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.session-info-block .session-info-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.session-info-block .file-hint {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* Agent 3 — 사용자 정의 화자 라벨 → [상담사]/[내담자] 치환 */
.speaker-label-grid {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.speaker-label-grid label {
  font-size: 0.85rem;
  color: var(--muted);
}

.speaker-label-grid input {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
}

/* 서버 단계별 처리 시간 */
.process-timing-wrap .report-subtitle {
  margin-bottom: 0.35rem;
}
.process-timing-table .process-timing-sec {
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.process-timing-table tr.process-timing-total td {
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

/* Framework result tabs */
.fw-tab-bar {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1rem;
}

.fw-tab-btn {
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s;
}

.fw-tab-btn:hover {
  background: var(--accent-dim);
}

.fw-tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.fw-tab-panel.hidden {
  display: none;
}

.sup-custom-subpanel[hidden] {
  display: none;
}

/* ── 루브릭 리포트 v2 (회기 분석 리포트 프로토타입 톤: 밝은 카드 영역) ── */
.session-rubric-report-v2 {
  --rpt-bg: #f5f0eb;
  --rpt-bg2: #ede8e2;
  --rpt-card: #fafaf8;
  --rpt-text: #2c2a27;
  --rpt-text2: #7a756d;
  --rpt-text3: #aea89f;
  --rpt-border: #ddd8d1;
  --rpt-green: #4a7c59;
  --rpt-amber: #a0763a;
  --rpt-red: #9b3b3b;
  --rpt-blue: #3b6b9b;
  --rpt-radius: 12px;
  --rpt-radius-sm: 8px;
}

.session-rubric-report-v2 .report-tables-host {
  background: var(--rpt-bg);
  border: 1px solid var(--border);
  border-radius: var(--rpt-radius);
  padding: 1.25rem 1.35rem 1.5rem;
  max-width: 720px;
}

.session-rubric-report-v2 .fw-tab-bar {
  border-bottom-color: var(--rpt-border);
  margin-bottom: 0.85rem;
}

.session-rubric-report-v2 .fw-tab-btn {
  background: var(--rpt-card);
  color: var(--rpt-text2);
  border-color: var(--rpt-border);
}

.session-rubric-report-v2 .fw-tab-btn.active {
  background: var(--rpt-text);
  color: #fff;
  border-color: var(--rpt-text);
}

.rpt-report-root {
  color: var(--rpt-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.rpt-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.rpt-summary-stack .rpt-block-rubric {
  margin-top: 0;
}

.rpt-summary-table-wrap {
  margin-bottom: 0.25rem;
}

.rpt-table-hint {
  margin: 0 0 0.5rem;
}

.rpt-report-root .report-table .rpt-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rpt-detail-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.rpt-detail-sec-head .rpt-block-title.rpt-detail-sec-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  flex: 1;
  min-width: 0;
}

.rpt-detail-sec-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--rpt-bg2);
  color: var(--rpt-text2);
  white-space: nowrap;
}

.rpt-block-detail-sec {
  margin-bottom: 1.25rem;
}

.rpt-detail-table-wrap {
  overflow-x: auto;
}

.rpt-detail-table .rpt-td-item {
  font-weight: 600;
  max-width: 14rem;
}

.rpt-detail-table .rpt-td-major {
  color: var(--rpt-text2);
  font-size: 0.8rem;
  max-width: 10rem;
}

.rpt-detail-table .rpt-td-center {
  text-align: center;
  white-space: nowrap;
}

.rpt-detail-table .rpt-td-detail {
  min-width: 5rem;
  max-width: 18rem;
}

.rpt-dash {
  color: var(--rpt-text3);
}

.rpt-z {
  color: var(--rpt-text3);
  font-weight: 600;
}

.rpt-detail-tr-miss {
  background: rgba(0, 0, 0, 0.02);
}

.rpt-inline-details {
  margin: 0;
}

.rpt-inline-details summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rpt-blue);
  user-select: none;
}

.rpt-inline-details summary::-webkit-details-marker {
  display: none;
}

.rpt-inline-sum::before {
  content: "▶ ";
  font-size: 0.65em;
  color: var(--rpt-text3);
}

.rpt-inline-details[open] .rpt-inline-sum::before {
  content: "▼ ";
}

.rpt-inline-detail-body {
  margin-top: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--rpt-radius-sm);
  background: var(--rpt-bg);
  border: 1px solid var(--rpt-border);
  text-align: left;
}

.rpt-block-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--rpt-text);
  margin: 0 0 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--rpt-border);
  letter-spacing: -0.02em;
}

.rpt-detail-lead {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--rpt-text2);
  line-height: 1.55;
}

.rpt-detail-stack .rpt-detail-lead strong {
  color: var(--rpt-text);
  font-weight: 700;
}

.rpt-sec-items-hd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.2rem 0.4rem 0.55rem;
  margin-bottom: 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--rpt-text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--rpt-border);
}

.rpt-sec-items-hd-n {
  text-align: right;
  white-space: nowrap;
}

/* 헤더 직후 첫 항목: 이중 구분선 방지 */
.rpt-sec-inner > .rpt-tag-row:first-of-type,
.rpt-sec-inner > .rpt-tag-fold:first-of-type {
  border-top: none;
}

.rpt-tag-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rpt-tag-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rpt-dl-row {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.4rem 0.75rem;
  align-items: start;
}

.rpt-dl-row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rpt-text2);
  line-height: 1.45;
}

.rpt-dl-row dd {
  margin: 0;
  font-size: 0.8rem;
  color: var(--rpt-text);
  line-height: 1.55;
}

.rpt-dd-reason {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 14rem;
  overflow-y: auto;
  color: var(--rpt-text2);
}

.rpt-tag-quotes-block {
  margin: 0;
  padding: 0;
  border: 0;
}

.rpt-tag-quotes-h {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rpt-text2);
  letter-spacing: 0.02em;
}

.rpt-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.rpt-section-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rpt-text2);
}

.rpt-view-btns {
  display: flex;
  gap: 0.25rem;
}

.rpt-view-btn {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--rpt-border);
  border-radius: var(--rpt-radius-sm);
  background: transparent;
  color: var(--rpt-text2);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.rpt-view-btn:hover {
  background: var(--rpt-bg2);
}

.rpt-view-btn.active {
  background: var(--rpt-text);
  color: #fff;
  border-color: var(--rpt-text);
}

.rpt-stats-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.rpt-stats-3 {
  grid-template-columns: repeat(3, 1fr);
}

.rpt-stat-card {
  background: var(--rpt-card);
  border: 1px solid var(--rpt-border);
  border-radius: var(--rpt-radius);
  padding: 0.85rem 1rem;
}

.rpt-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rpt-text2);
  margin-bottom: 0.35rem;
}

.rpt-stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.rpt-stat-sub {
  font-size: 0.72rem;
  color: var(--rpt-text3);
  margin-top: 0.25rem;
}

.rpt-section-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.rpt-section-card {
  background: var(--rpt-card);
  border: 1px solid var(--rpt-border);
  border-radius: var(--rpt-radius);
  padding: 0.75rem 1rem;
}

.rpt-section-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.rpt-section-card-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.rpt-section-card-meta {
  font-size: 0.78rem;
  color: var(--rpt-text2);
  font-weight: 600;
}

.rpt-progress-track {
  height: 6px;
  background: var(--rpt-bg2);
  border-radius: 3px;
  overflow: hidden;
}

.rpt-progress-fill {
  height: 100%;
  border-radius: 3px;
}

.rpt-progress-text {
  font-size: 0.72rem;
  color: var(--rpt-text3);
  margin-top: 0.25rem;
}

/* 대분류 테이블 — 리포트 톤에 맞춤 */
.rpt-report-root .report-major-block,
.rpt-pdf-wrap .report-major-block {
  margin-top: 0.5rem;
}

.rpt-report-root .report-subtitle,
.rpt-pdf-wrap .report-subtitle {
  color: var(--rpt-text);
}

.rpt-report-root .file-hint,
.rpt-pdf-wrap .file-hint {
  color: var(--rpt-text2);
}

.rpt-report-root .report-table-wrap,
.rpt-pdf-wrap .report-table-wrap {
  background: var(--rpt-card);
  border-color: var(--rpt-border);
}

.rpt-report-root .report-table th,
.rpt-pdf-wrap .report-table th {
  background: var(--rpt-bg2);
  color: var(--rpt-text2);
  border-color: var(--rpt-border);
}

.rpt-report-root .report-table td,
.rpt-pdf-wrap .report-table td {
  border-color: var(--rpt-border);
  color: var(--rpt-text);
}

.rpt-report-root .report-table .report-tag-id,
.rpt-pdf-wrap .report-table .report-tag-id {
  color: var(--rpt-blue);
}

.rpt-report-root .report-empty,
.rpt-pdf-wrap .report-empty {
  color: var(--rpt-text3);
}

/* 상세: 단계·항목 접기 */
.rpt-sec-fold {
  background: var(--rpt-card);
  border: 1px solid var(--rpt-border);
  border-radius: var(--rpt-radius);
  margin-bottom: 0.55rem;
  overflow: hidden;
}

.rpt-sec-sum {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.88rem;
  user-select: none;
}

.rpt-sec-sum::-webkit-details-marker {
  display: none;
}

.rpt-chev {
  font-size: 0.55rem;
  color: var(--rpt-text3);
  transition: transform 0.15s;
  flex-shrink: 0;
}

.rpt-sec-fold[open] > .rpt-sec-sum .rpt-chev-sec {
  transform: rotate(90deg);
}

.rpt-sec-title {
  flex: 1;
}

.rpt-sec-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--rpt-bg2);
  color: var(--rpt-text2);
}

.rpt-sec-inner {
  padding: 0 0.65rem 0.65rem;
  border-top: 1px solid var(--rpt-border);
}

.rpt-tag-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.35rem;
  border-top: 1px solid var(--rpt-bg2);
}

.rpt-tag-row-miss {
  opacity: 0.85;
}

.rpt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rpt-tag-fold {
  border-top: 1px solid var(--rpt-bg2);
}

.rpt-tag-sum {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.35rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.rpt-tag-sum::-webkit-details-marker {
  display: none;
}

.rpt-tag-fold[open] > .rpt-tag-sum .rpt-chev {
  transform: rotate(90deg);
}

.rpt-tag-inline {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
}

.rpt-tag-title {
  font-size: 0.84rem;
  font-weight: 600;
}

.rpt-req-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  vertical-align: middle;
  background: #f5e4e4;
  color: var(--rpt-red);
}

.rpt-mini-code {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  background: var(--rpt-bg2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--rpt-blue);
}

.rpt-tag-major-soft {
  font-size: 0.74rem;
  color: var(--rpt-text3);
  width: 100%;
}

.rpt-tag-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rpt-text2);
  flex-shrink: 0;
}

.rpt-tag-count.z {
  color: var(--rpt-text3);
}

.rpt-tag-body {
  padding: 0 0.35rem 0.65rem 1.85rem;
}

.rpt-tag-desc {
  font-size: 0.8rem;
  color: var(--rpt-text2);
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.rpt-tag-majorline {
  font-size: 0.74rem;
  color: var(--rpt-text3);
  margin-bottom: 0.35rem;
}

.rpt-tag-reason {
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
}

.rpt-tag-reason strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--rpt-text);
}

.rpt-tag-reason-txt {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--rpt-text2);
  line-height: 1.5;
  max-height: 14rem;
  overflow-y: auto;
}

.rpt-utt-panel {
  margin-top: 0.25rem;
}

.rpt-utt-row {
  margin-bottom: 0.35rem;
}

.rpt-utt-text {
  background: var(--rpt-bg2);
  border-radius: var(--rpt-radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  color: var(--rpt-text2);
  line-height: 1.55;
  border-left: 2.5px solid var(--rpt-border);
}

.rpt-more-phrases {
  margin-top: 0.35rem;
}

.rpt-more-sum {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rpt-blue);
  list-style: none;
}

.rpt-more-sum::-webkit-details-marker {
  display: none;
}

.rpt-utt-panel-nested {
  margin-top: 0.35rem;
  padding-left: 0.25rem;
}

.rpt-cap-note,
.rpt-no-utt {
  font-size: 0.74rem;
  color: var(--rpt-text3);
  font-style: italic;
  margin: 0.35rem 0 0;
}

/* ── 파일 chip 목록 ──────────────────────────────────────────────────────────── */
.file-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 0;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.18rem 0.55rem 0.18rem 0.65rem;
  font-size: 0.8rem;
  color: var(--text);
  max-width: 260px;
}

.file-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary, #6b7280);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
}

.file-chip-remove:hover {
  color: var(--error, #dc2626);
}

/* ── 보고서 수퍼비전 스플릿 뷰 ──────────────────────────────────────────────── */
.report-split-view {
  display: flex;
  flex-direction: row;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 78vh;
  min-height: 480px;
}

.report-split-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.report-split-pane + .report-split-pane {
  border-left: 1px solid var(--border);
}

.report-split-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.report-split-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.report-split-body.report-text {
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-family: inherit;
}

.report-split-body.report-md {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text);
}
.report-split-body.report-md h3,
.report-split-body.report-md h4,
.report-split-body.report-md h5 {
  color: var(--accent);
  margin-top: 1.1rem;
  margin-bottom: 0.25rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--border);
}
.report-split-body.report-md p { margin: 0.2rem 0; }
.report-split-body.report-md ul,
.report-split-body.report-md ol { margin: 0.3rem 0 0.3rem 1.2rem; padding: 0; }
.report-split-body.report-md li { margin: 0.15rem 0; }
.report-split-body.report-md hr {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 0.8rem 0;
}
.report-split-body.report-md code {
  background: var(--surface2);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.82rem;
}
/* 파일 구분 헤더 (멀티 파일) */
.report-split-body.report-md .file-section-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
  margin: 1.2rem 0 0.6rem;
}
/* 마크다운 표 */
.md-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.82rem;
  margin: 0.7rem 0;
}
.md-table th,
.md-table td {
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}
.md-table th {
  background: var(--surface2);
  font-weight: 600;
  white-space: nowrap;
}

/* 다운로드 바를 우측 패널 상단에 부착 */
.report-split-pane .result-download-bar {
  padding: 0.45rem 0.8rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .rpt-stats-3 {
    grid-template-columns: 1fr;
  }
}

/* ── Agent 7 · 검사 수행 ────────────────────────────────────── */
.tr-question-block {
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.45rem;
  transition: border-color 0.15s, background 0.15s;
}
.tr-question-block.answered {
  border-color: var(--accent);
  background: var(--surface2);
}
.tr-question-num {
  min-width: 2rem;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 0.15rem;
  flex-shrink: 0;
}
.tr-question-body {
  flex: 1;
}
.tr-question-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.45rem;
}
.tr-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tr-choice-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.83rem;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  user-select: none;
}
.tr-choice-label:hover {
  background: var(--surface2);
  border-color: var(--accent);
}
.tr-choice-label.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tr-choice-label input[type=radio] {
  display: none;
}

/* ── Agent 4 · 가상 내방인 훈련 ───────────────────────── */
.vc-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.vc-tag-label {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  user-select: none;
}
.vc-tag-label:hover { background: var(--surface2); }
.vc-tag-label.selected {
  border-color: var(--accent);
  background: var(--surface2);
  color: var(--text);
  font-weight: 500;
}
.vc-tag-label input[type=checkbox] { display: none; }

.vc-stage-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  margin-bottom: 0.4rem;
}
.vc-stage-pill.explore { background: rgba(61,139,253,0.15); color: #3d8bfd; }
.vc-stage-pill.insight { background: rgba(157,91,225,0.15); color: #9d5be1; }
.vc-stage-pill.action  { background: rgba(249,115,22,0.15);  color: #f97316; }

.vc-skills-group { margin-bottom: 0.75rem; }
.vc-skill-label {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.2rem 0.2rem 0 0;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  user-select: none;
}
.vc-skill-label:hover { background: var(--surface2); }
.vc-skill-label.selected {
  border-color: #34d399;
  background: rgba(52,211,153,0.12);
  color: var(--text);
  font-weight: 500;
}
.vc-skill-label input[type=checkbox] { display: none; }

.vc-chat-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .vc-chat-layout { grid-template-columns: 1fr; }
}
.vc-chat-log-tall { height: 420px !important; }

.vc-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.28rem 0;
  font-size: 0.81rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
}
.vc-checklist-item:last-child { border-bottom: none; }
.vc-checklist-item input[type=checkbox] { width: auto; flex-shrink: 0; margin-top: 0.18rem; }
.vc-checklist-item.done > span { text-decoration: line-through; color: var(--muted); }

.vc-skill-chip {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 12px;
  font-size: 0.78rem;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.35);
  color: var(--text);
  margin: 0.15rem 0.15rem 0 0;
}

/* ── 로그인 오버레이 ──────────────────────────────────────────────────────────── */
#login-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#login-overlay[hidden] { display: none; }

/* ── 관리자 계정 관리 패널 ────────────────────────────────────────────────────── */
#admin-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#admin-panel-overlay[hidden] { display: none; }

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.login-logo { font-size: 2.5rem; }

.login-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.login-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 1rem;
  margin-top: 0.5rem;
  box-sizing: border-box;
}
.login-input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.login-btn { width: 100%; margin-top: 0.25rem; }

.login-error {
  font-size: 0.83rem;
  color: var(--danger, #f85149);
  margin: 0;
  min-height: 1.2em;
  text-align: center;
}

/* ── 보호자 코칭 카드 ─────────────────────────────────────────── */
.coaching-card {
  margin: 0.4rem 0 0.6rem;
  border: 1.5px solid #a5b4fc;
  border-radius: 8px;
  background: #f5f3ff;
  font-size: 0.85rem;
}
.coaching-card > summary {
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
  color: #4c1d95;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}
.coaching-card > summary::-webkit-details-marker { display: none; }
.coaching-card[open] > summary { border-bottom: 1px solid #c4b5fd; }
.coaching-level-hint { font-weight: 400; font-size: 0.78rem; color: #6d28d9; }
.coaching-card-body {
  padding: 0.7rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.coaching-area1 {
  line-height: 1.7;
  color: #1e1b4b;
  white-space: pre-line;
}
.coaching-area2 {
  background: #ede9fe;
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  line-height: 1.65;
  color: #3730a3;
  white-space: pre-line;
}
.coaching-section { display: flex; flex-direction: column; gap: 0.35rem; }
.coaching-section h6 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5b21b6;
  letter-spacing: 0.01em;
}
.coaching-section ul {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #374151;
}
.coaching-section ul li { line-height: 1.55; }
.coaching-avoid li { color: #b91c1c; }
.coaching-better li { color: #15803d; }
.coaching-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.coaching-tag {
  background: #ddd6fe;
  color: #4c1d95;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 0.78rem;
  font-weight: 600;
}
.coaching-tag-career {
  background: #d1fae5;
  color: #065f46;
}
.coaching-guide-item {
  border-left: 3px solid #a78bfa;
  padding-left: 0.65rem;
  margin-top: 0.3rem;
}
.coaching-guide-title {
  font-weight: 700;
  color: #4c1d95;
  font-size: 0.83rem;
  margin-bottom: 0.15rem;
}
.coaching-guide-desc {
  color: #374151;
  line-height: 1.6;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}
.coaching-examples {
  margin: 0;
  padding-left: 1.2rem;
  color: #1d4ed8;
  font-size: 0.82rem;
}
.coaching-examples li { line-height: 1.5; }
.coaching-area3-text {
  line-height: 1.65;
  color: #374151;
  white-space: pre-line;
  border-left: 3px solid #a78bfa;
  padding-left: 0.65rem;
}
.coaching-closing {
  background: #4c1d95;
  color: #f5f3ff;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  line-height: 1.65;
  font-weight: 500;
  white-space: pre-line;
}
.coaching-area5 {
  font-style: italic;
  color: #6d28d9;
  line-height: 1.6;
  font-size: 0.82rem;
  white-space: pre-line;
}

/* ── 상담사 코칭 카드 ─────────────────────────────────────────── */
.counselor-card {
  margin: 0.4rem 0 0.6rem;
  border: 1.5px solid #7dd3fc;
  border-radius: 8px;
  background: #f0f9ff;
  font-size: 0.85rem;
}
.counselor-card > summary {
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
  color: #0c4a6e;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}
.counselor-card > summary::-webkit-details-marker { display: none; }
.counselor-card[open] > summary { border-bottom: 1px solid #7dd3fc; }
.counselor-level-hint { font-weight: 400; font-size: 0.78rem; color: #0369a1; }
.counselor-card-body {
  padding: 0.7rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.counselor-area {
  line-height: 1.7;
  color: #0c2a47;
  white-space: pre-line;
  padding: 0.55rem 0;
  border-bottom: 1px dashed #bae6fd;
}
.counselor-area:last-child { border-bottom: none; }
