.analysis-report-shell {
  --report-scroll-offset: 88px;
  display: grid;
  grid-template-columns: minmax(210px, 238px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  overflow-anchor: none;
}

.report-nav {
  position: sticky;
  top: 82px;
  z-index: 4;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, .88);
  padding: 8px;
  box-shadow: var(--panel-shadow);
  overflow-anchor: none;
}

/* 브랜드·경쟁·콘텐츠 탭은 `자세히` 뒤로 접는다(6장, R3). 접힌 상태에서도 무엇이
 * 들어 있는지 요약 한 줄이 알려 준다. */
.report-nav-more {
  display: grid;
  gap: 6px;
}

.report-nav-more > summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-2);
  font-weight: 600;
  color: var(--muted);
}

.report-nav-more > summary small {
  font-size: var(--fs-1);
  font-weight: 400;
}

.report-nav-more[open] > summary { color: var(--ink, #142b27); }

.report-nav-more > button { width: 100%; }

.report-panels,
.report-panel {
  overflow-anchor: none;
}

.report-panels {
  min-height: 940px;
}

.report-nav button {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: var(--control-radius);
  padding: 9px;
  color: var(--muted-strong);
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.report-nav button:hover,
.report-nav button.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.report-nav b {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  border-radius: 7px;
  color: #fff;
  background: var(--brand-dark);
  font-size: var(--fs-1);
}

.report-nav span {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: var(--fs-2);
  font-weight: 800;
}

.report-nav small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--fs-1);
  font-weight: 500;
}

.module-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface-muted);
  padding: 10px;
}

.module-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--muted-strong);
  font-size: var(--fs-1);
}

.module-summary b {
  color: var(--brand-dark);
  font-size: var(--fs-1);
  text-transform: uppercase;
  letter-spacing: 0;
}

.report-panels {
  display: grid;
  gap: 16px;
}

.report-panel {
  scroll-margin-top: var(--report-scroll-offset, 88px);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: rgba(255, 255, 255, .66);
  padding: 20px 22px;
  box-shadow: var(--panel-shadow);
}

.report-panel.result-section {
  margin-top: 0;
}

.report-grid {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

/* U-10: was a hard-locked 2 columns always -- on a narrow window that just
 * squeezed 12px text into a narrower column instead of reflowing (reports.css
 * had exactly one media query in 1739 lines, docs/plans/ROADMAP.md §2.1).
 * auto-fit degrades to 1 column once two 320px cards no longer fit, no
 * breakpoint needed. */
.report-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.report-card {
  min-width: 0;
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  padding: 16px 18px;
  box-shadow: var(--panel-shadow);
}

.report-card.wide {
  grid-column: 1 / -1;
}

.report-card > p {
  margin: 0 0 12px;
  /* U-6: this is a report card's actual body paragraph (e.g. the deep-dive
   * explainer, a response excerpt) wherever a card uses a bare <p> instead of
   * a named body class -- real content, not a caption. */
  color: var(--text);
  font-size: var(--fs-3);
  line-height: var(--lh-base);
}

.report-feature-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(10, 189, 163, .28);
  border-radius: var(--card-radius);
  background: var(--brand-soft);
  padding: 14px;
}

.report-feature-copy {
  display: grid;
  gap: 6px;
}

.report-feature-copy b {
  width: fit-content;
  border-radius: 999px;
  background: #fff;
  padding: 4px 8px;
  color: var(--brand-dark);
  font-size: var(--fs-1);
}

.report-feature-copy strong {
  color: var(--text);
  font-size: var(--fs-4);
  line-height: 1.35;
}

.report-feature-copy p {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-3);
  line-height: var(--lh-loose);
}

.report-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-feature-list span {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid rgba(10, 189, 163, .18);
  border-radius: var(--row-radius);
  background: rgba(255, 255, 255, .66);
  padding: 10px;
}

.report-feature-list b {
  color: var(--text);
  font-size: var(--fs-2);
}

.report-feature-list small {
  color: var(--muted);
  font-size: var(--fs-1);
  line-height: 1.45;
}

.card-title {
  margin-bottom: 12px;
}

.card-title h3 {
  margin: 0;
  font-size: var(--fs-5);
  line-height: var(--lh-tight);
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-list.compact {
  gap: 8px;
}

.bar-row {
  display: grid;
  gap: 6px;
}

.bar-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-strong);
  font-size: var(--fs-1);
}

.bar-row b {
  color: var(--brand-dark);
  font-weight: 800;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #58d7c8);
}

.analysis-history-panel {
  display: grid;
  gap: 14px;
}

/* 과거 리포트는 스냅샷 작성 화면의 결과 마크업을 재사용하되, 작성 단계와 결과 탭은
 * 기록 페이지에서 보이지 않는다. 같은 리포트 컴포넌트를 두 벌로 복제하지 않고도
 * 라우팅 책임(새 측정/과거 열람)을 분리한다. */
.analysis-history-report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.analysis-history-report-head span {
  color: var(--muted);
  font-size: var(--fs-2);
}

.analysis-history-report-detail .testing-steps,
.analysis-history-report-detail .testing-screen[data-testing-step="setup"],
.analysis-history-report-detail .testing-screen[data-testing-step="review"],
.analysis-history-report-detail .testing-history-pointer {
  display: none !important;
}

.analysis-history-report-detail .testing-screen[data-testing-step="result"] {
  display: block !important;
}

.analysis-history-list {
  display: grid;
  gap: 8px;
}

.analysis-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface);
  padding: 12px;
}

.analysis-history-row.active {
  border-color: rgba(36, 133, 121, .45);
  background: var(--brand-soft);
}

.history-row-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.history-row-title strong {
  min-width: 0;
  color: var(--text);
  font-size: var(--fs-3);
}

.history-row-title span,
.history-row-title em {
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--surface-muted);
  color: var(--muted-strong);
  font-size: var(--fs-1);
  font-style: normal;
  font-weight: 800;
}

/* :last-of-type, not a bare `span` -- the row always has two spans (the constant
   "실행" label, then the status label). Selecting both painted "실행" the same
   red/green as the status next to it, so a failed run showed two red pills. */
.analysis-history-row[data-status="finished"] .history-row-title span:last-of-type {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.analysis-history-row[data-status="failed"] .history-row-title span:last-of-type {
  color: var(--danger);
  background: #fff1f2;
}

.history-row-title em {
  color: var(--warning);
  background: var(--warning-soft);
}

.history-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-1);
}

.history-row-meta code {
  color: var(--muted-strong);
  font-size: var(--fs-1);
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.history-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: 8px 10px;
  color: var(--text);
  background: var(--surface-strong);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.history-actions button:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.live-run-progress {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(10, 189, 163, .35);
  border-radius: var(--card-radius);
  padding: 20px;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-soft) 100%);
  box-shadow: 0 14px 34px rgba(31, 41, 51, .06);
}

.analysis-progress-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  padding: 12px 14px;
  background: var(--surface);
}

.analysis-progress-actions > div,
.analysis-progress-empty {
  display: grid;
  gap: 4px;
}

.analysis-progress-actions > div:last-child {
  display: flex;
  flex: none;
  gap: 8px;
}

.analysis-progress-actions span,
.analysis-progress-empty p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-2);
}

.analysis-progress-empty button {
  width: max-content;
  margin-top: 8px;
}

.live-run-title,
.live-run-progress-copy,
.live-run-provider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-run-title small {
  color: var(--brand-dark);
  font-weight: 850;
}

.live-run-title h2 {
  margin: 3px 0;
  font-size: var(--fs-6);
}

.live-run-title p,
.live-run-progress-copy span,
.live-run-provider small,
.live-run-questions .section-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-1);
}

.live-run-status {
  flex: none;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: var(--fs-1);
  font-weight: 850;
}

.live-run-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.live-run-metrics > span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  padding: 11px 12px;
  background: var(--surface);
}

.live-run-metrics small,
.live-run-metrics b {
  display: block;
}

.live-run-metrics small {
  color: var(--muted);
  font-size: var(--fs-1);
}

.live-run-metrics b {
  margin-top: 3px;
  color: var(--text);
  font-size: var(--fs-5);
}

.live-run-metrics [data-tone="success"] b { color: var(--brand-dark); }
.live-run-metrics [data-tone="active"] b { color: #2563a6; }
.live-run-metrics [data-tone="danger"] b { color: var(--danger); }
.live-run-metrics [data-tone="remaining"] b { color: var(--warning); }

.live-run-progress-copy strong {
  font-size: var(--fs-3);
}

.live-run-track {
  display: flex;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--line);
}

.live-run-track i {
  height: 100%;
  transition: width .3s ease;
}

.live-run-track [data-status="succeeded"] { background: var(--brand); }
.live-run-track [data-status="failed"] { background: var(--danger); }
.live-run-track [data-status="running"] {
  background: #4d8fcb;
  background-image: linear-gradient(135deg, rgba(255,255,255,.25) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.25) 50%, rgba(255,255,255,.25) 75%, transparent 75%);
  background-size: 18px 18px;
  animation: live-run-stripes 1s linear infinite;
}

.live-run-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: -10px;
  color: var(--muted);
  font-size: var(--fs-1);
}

.live-run-legend span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.live-run-legend [data-status="succeeded"]::before { background: var(--brand); }
.live-run-legend [data-status="running"]::before { background: #4d8fcb; }
.live-run-legend [data-status="failed"]::before { background: var(--danger); }

.live-run-questions {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}

.live-run-questions .section-head {
  margin-bottom: 2px;
}

.live-run-question {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface);
}

.live-run-question[open] {
  border-color: rgba(77, 143, 203, .36);
}

.live-run-question summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
}

.live-run-question summary::after {
  content: '›';
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform .2s ease;
}

.live-run-question[open] summary::after { transform: rotate(-90deg); }

.live-run-question summary > span {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
}

.live-run-question summary b {
  display: grid;
  width: 23px;
  height: 23px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: var(--fs-1);
}

.live-run-question summary strong {
  min-width: 0;
  line-height: 1.5;
}

.live-run-question summary em {
  color: var(--muted);
  font-size: var(--fs-1);
  font-style: normal;
  white-space: nowrap;
}

.live-run-provider-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
  background: var(--surface-muted);
}

.live-run-provider {
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.live-run-provider[data-status="running"],
.live-run-provider[data-status="retrying"] { border-left-color: #4d8fcb; }
.live-run-provider[data-status="succeeded"] { border-left-color: var(--brand); }
.live-run-provider[data-status="failed"] { border-left-color: var(--danger); }

.live-run-provider-head strong { font-size: var(--fs-2); }
.live-run-provider-head span {
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--muted-strong);
  background: var(--surface-muted);
  font-size: var(--fs-1);
  font-weight: 800;
}

.live-run-provider[data-status="running"] .live-run-provider-head span,
.live-run-provider[data-status="retrying"] .live-run-provider-head span {
  color: #1e5f91;
  background: #e7f2fb;
}
.live-run-provider[data-status="succeeded"] .live-run-provider-head span { color: var(--brand-dark); background: var(--brand-soft); }
.live-run-provider[data-status="failed"] .live-run-provider-head span { color: var(--danger); background: #fff1f2; }

.live-run-answer {
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-size: var(--fs-1);
  line-height: 1.55;
  white-space: pre-wrap;
}

.live-run-answer.is-error { color: var(--danger); }

@keyframes live-run-stripes {
  to { background-position: 18px 0; }
}

@container content-col (width < 760px) {
  .live-run-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-run-title, .live-run-progress-copy { align-items: flex-start; }
  .analysis-progress-actions { align-items: flex-start; flex-direction: column; }
  .analysis-progress-actions > div:last-child { flex-wrap: wrap; }
  .live-run-question summary { grid-template-columns: minmax(0, 1fr) 18px; }
  .live-run-question summary em { grid-column: 1 / -1; padding-left: 32px; white-space: normal; }
  .live-run-question summary::after { grid-column: 2; grid-row: 1; }
  .analysis-history-row { grid-template-columns: 1fr; }
  .history-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .live-run-track [data-status="running"] { animation: none; }
}

.report-comparison {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  padding: 14px;
}

.report-comparison small {
  color: var(--brand-dark);
  font-size: var(--fs-1);
  font-weight: 800;
  letter-spacing: 0;
}

.report-comparison h3 {
  margin: 4px 0;
  font-size: var(--fs-4);
}

.report-comparison p {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-3);
}

.report-timeline {
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
  align-items: end;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface-muted);
  padding: 14px;
}

.report-timeline-point {
  min-width: 0;
  min-height: 168px;
  display: grid;
  grid-template-rows: minmax(96px, 1fr) auto auto;
  align-items: end;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--row-radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.report-timeline-point:hover:not(:disabled),
.report-timeline-point.active {
  border-color: rgba(10, 189, 163, .42);
  background: rgba(223, 248, 244, .72);
}

.report-timeline-point:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.report-timeline-point span {
  width: 18px;
  min-height: 14px;
  justify-self: center;
  border-radius: 999px 999px 4px 4px;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(10, 189, 163, .22);
}

.report-timeline-point.active span {
  background: var(--brand-dark);
}

.report-timeline-point b,
.report-timeline-point small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-timeline-point b {
  font-size: var(--fs-1);
}

.report-timeline-point small {
  color: var(--muted);
  font-size: var(--fs-1);
}

.trend-dashboard {
  scroll-margin-top: var(--report-scroll-offset, 88px);
  display: grid;
  gap: 14px;
}

.trend-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trend-summary-strip span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface-muted);
  padding: 10px;
}

.trend-summary-strip b,
.trend-summary-strip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-summary-strip b {
  color: var(--brand-dark);
  font-size: var(--fs-5);
}

.trend-summary-strip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--fs-1);
}

.trend-narrative {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(10, 189, 163, .24);
  border-radius: var(--card-radius);
  background: var(--brand-soft);
  padding: 13px;
}

.trend-narrative strong {
  color: var(--text);
  font-size: var(--fs-4);
  line-height: 1.45;
}

.trend-narrative div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.trend-narrative span {
  border: 1px solid rgba(10, 189, 163, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  padding: 5px 8px;
  color: var(--muted-strong);
  font-size: var(--fs-1);
}

.trend-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.trend-section-title small {
  color: var(--brand-dark);
  font-size: var(--fs-1);
  font-weight: 800;
}

.trend-section-title b {
  color: var(--text);
  font-size: var(--fs-3);
}

.trend-series-grid {
  display: grid;
  gap: 9px;
}

.trend-series-row {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface);
  padding: 10px;
}

.trend-series-label {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

.trend-series-label b,
.trend-series-label span,
.trend-series-label small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-series-label b {
  color: var(--text);
  font-size: var(--fs-2);
}

.trend-series-label span {
  color: var(--brand-dark);
  font-size: var(--fs-5);
  font-weight: 800;
}

.trend-series-label small {
  color: var(--muted);
  font-size: var(--fs-1);
}

.trend-series-row[data-direction="declined"] .trend-series-label span {
  color: var(--danger);
}

.trend-bars {
  min-height: 72px;
  display: grid;
  gap: 5px;
  align-items: end;
  border-radius: var(--row-radius);
  background:
    repeating-linear-gradient(to top, transparent 0 23px, rgba(100, 116, 111, .08) 24px),
    var(--surface-muted);
  padding: 8px;
}

.trend-bar {
  min-width: 0;
  height: 56px;
  display: grid;
  align-items: end;
}

.trend-bar i {
  display: block;
  min-height: 4px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  box-shadow: 0 8px 18px rgba(10, 189, 163, .18);
}

.trend-bar.active i {
  background: linear-gradient(180deg, #122b27, var(--brand-dark));
}

/* 질문 세트가 바뀐 회차. 막대 왼쪽에 선을 세워 앞뒤 구간을 가른다 -- 대시보드
 * 추이의 세로 점선과 같은 뜻이므로 같은 모양으로 그린다. */
.trend-bar.is-boundary {
  position: relative;
}
.trend-bar.is-boundary::before {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -5px;
  border-left: 1.5px dashed var(--notice);
}

.trend-phase-roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.trend-phase-roadmap article {
  min-width: 0;
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface-muted);
  padding: 10px;
}

.trend-phase-roadmap article.active {
  border-color: rgba(36, 133, 121, .45);
  background: var(--brand-soft);
}

.trend-phase-roadmap article > span {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 7px;
  color: #fff;
  background: var(--brand-dark);
  font-size: var(--fs-1);
  font-weight: 800;
}

.trend-phase-roadmap div {
  min-width: 0;
}

.trend-phase-roadmap b,
.trend-phase-roadmap small,
.trend-phase-roadmap p {
  display: block;
  min-width: 0;
}

.trend-phase-roadmap b {
  color: var(--text);
  font-size: var(--fs-2);
}

.trend-phase-roadmap small {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--fs-1);
}

.trend-phase-roadmap p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: var(--fs-3);
  line-height: var(--lh-base);
}

.trend-change-list {
  display: grid;
  gap: 8px;
}

.trend-change-list article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface);
  padding: 11px;
}

.trend-change-list article > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.trend-change-list b {
  color: var(--text);
  font-size: var(--fs-2);
}

.trend-change-list small {
  color: var(--muted);
  font-size: var(--fs-1);
}

.trend-change-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.trend-change-list li {
  border-radius: 999px;
  background: var(--surface-muted);
  padding: 5px 8px;
  color: var(--muted-strong);
  font-size: var(--fs-2);
}

.trend-change-list p {
  margin: 9px 0 0;
  color: var(--text);
  font-size: var(--fs-3);
  line-height: var(--lh-base);
}

.trend-raw-timeline {
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface);
  padding: 10px;
}

.trend-raw-timeline summary {
  color: var(--brand-dark);
  cursor: pointer;
  font-size: var(--fs-2);
  font-weight: 800;
}

.trend-raw-timeline .report-timeline {
  margin-top: 10px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.comparison-grid span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface-muted);
  padding: 10px;
}

.comparison-grid b {
  color: var(--muted);
  font-size: var(--fs-1);
  font-weight: 700;
}

.comparison-grid strong {
  color: var(--brand-dark);
  font-size: var(--fs-5);
}

.slot-empty {
  border: 1px dashed var(--line);
  border-radius: var(--row-radius);
  padding: 14px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: var(--fs-1);
  line-height: 1.6;
}

.position-map,
.source-cloud {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  /* Flat tint under the graph paper. The repeating layers are the grid itself,
   * so they stay; only the wash they sat on stopped being a ramp. */
  background-color: #f8fdfc;
  background-image:
    repeating-linear-gradient(0deg, rgba(100, 116, 111, .06) 0, rgba(100, 116, 111, .06) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, rgba(100, 116, 111, .05) 0, rgba(100, 116, 111, .05) 1px, transparent 1px, transparent 32px);
}

.report-3d-map {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.report-3d-map.empty-map {
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
}

.report-3d-stage {
  position: relative;
  min-height: 250px;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.report-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.report-3d-canvas.is-dragging {
  cursor: grabbing;
}

.cloud-map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.position-map .map-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(260px, 70%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: var(--control-radius);
  padding: 7px 10px;
  color: #fff;
  background: var(--brand-dark);
  font-size: var(--fs-1);
  box-shadow: 0 10px 24px rgba(10, 189, 163, .25);
  z-index: 2;
}

.cloud-map-tooltip {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(10, 189, 163, .22);
  border-radius: var(--control-radius);
  padding: 7px 9px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, .84);
  font-size: var(--fs-1);
  box-shadow: 0 8px 18px rgba(20, 43, 39, .08);
}

.cloud-map-guides {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cloud-map-guides span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(100, 116, 111, .18);
  border-radius: 999px;
  padding: 5px 7px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, .78);
  font-size: var(--fs-1);
  white-space: nowrap;
}

.cloud-map-guides span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2563eb;
}

.cloud-map-guides span:nth-child(2)::before {
  background: #d97706;
}

.cloud-map-guides span:nth-child(3)::before {
  background: #be123c;
}

.cloud-map-inspector {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 1fr);
  gap: 8px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  padding: 9px 10px;
  background: var(--surface-muted);
}

.cloud-map-inspector div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cloud-map-inspector small,
.cloud-map-inspector span,
.cloud-map-inspector b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-map-inspector small {
  color: var(--muted);
  font-size: var(--fs-1);
}

.cloud-map-inspector b {
  color: var(--text);
  font-size: var(--fs-2);
}

.cloud-map-inspector span {
  color: var(--brand-dark);
  font-size: var(--fs-1);
  font-weight: 800;
  text-align: right;
}

.cloud-map-inspector small[data-map-inspector-terms] {
  grid-column: 1 / -1;
  color: var(--muted-strong);
}

.cloud-map-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 7px;
}

.cloud-map-summary span {
  min-width: 0;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, .74);
  padding: 7px 8px;
}

.cloud-map-summary small,
.cloud-map-summary b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-map-summary small {
  color: var(--muted);
  font-size: var(--fs-1);
}

.cloud-map-summary b {
  color: var(--text);
  font-size: var(--fs-1);
}

.cloud-map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cloud-map-control {
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: 6px 8px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, .86);
  font-size: var(--fs-1);
  cursor: pointer;
}

.cloud-map-control:hover,
.cloud-map-control[aria-pressed="true"] {
  border-color: rgba(10, 189, 163, .45);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.report-3d-map .axis {
  position: absolute;
  color: var(--muted);
  font-size: var(--fs-1);
  font-weight: 700;
  letter-spacing: 0;
}

.report-3d-map .axis.x {
  right: 14px;
  top: calc(50% + 8px);
}

.report-3d-map .axis.y {
  left: calc(50% + 8px);
  top: 14px;
}

.report-3d-map .axis.z {
  right: 14px;
  bottom: 14px;
}

.cloud-map-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 34px;
}

.cloud-map-chip {
  min-width: 0;
  max-width: 190px;
  display: inline-grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 2px 7px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: 6px 8px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, .86);
  text-align: left;
  cursor: pointer;
}

.cloud-map-chip i {
  grid-row: 1 / span 2;
  align-self: stretch;
  min-height: 24px;
  border-radius: 999px;
  background: var(--map-point-color, var(--brand));
}

.cloud-map-chip:hover,
.cloud-map-chip.active {
  border-color: rgba(10, 189, 163, .45);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.cloud-map-chip b,
.cloud-map-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-map-chip b {
  font-size: var(--fs-1);
}

.cloud-map-chip span {
  color: var(--muted);
  font-size: var(--fs-1);
}

/* 2026-08-11: 뷰포트 대신 main 컬럼 폭(@container content-col, css/layout.css)
 * 기준으로 이관 -- 레일이 선 채 창만 좁아지는 구간에서도 접힌다. */
@container content-col (width < 720px) {
  .cloud-map-inspector {
    grid-template-columns: 1fr;
  }

  .cloud-map-inspector span {
    text-align: left;
  }
}

.analysis-map-hidden {
  display: none !important;
}

.score-grid,
.strategy-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.strategy-score-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.score-grid div,
.strategy-score-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface-muted);
  padding: 12px;
}

.score-grid small,
.strategy-score-grid small {
  display: block;
  color: var(--muted);
  font-size: var(--fs-1);
}

.score-grid strong,
.strategy-score-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: var(--fs-6);
}

.strategy-score-grid span {
  color: var(--muted);
  font-size: var(--fs-1);
  line-height: 1.5;
}

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.slot-list span {
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted-strong);
  background: var(--surface-muted);
  font-size: var(--fs-1);
}

.report-chip-list {
  margin-top: 12px;
}

.report-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--fs-1);
}

.report-card:has(.report-table) {
  overflow-x: auto;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 4px;
  text-align: left;
}

.report-table th {
  color: var(--muted);
  font-weight: 800;
}

.report-table td:last-child,
.report-table th:last-child {
  text-align: right;
}

.action-list {
  display: grid;
  gap: 9px;
}

.action-list div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface-muted);
  padding: 10px;
}

.action-list b {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  border-radius: 7px;
  color: #fff;
  background: var(--brand-dark);
  font-size: var(--fs-1);
}

.action-list span {
  color: var(--muted-strong);
  font-size: var(--fs-2);
  line-height: 1.55;
}

.report-insight-list strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-2);
}

.report-insight-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--fs-1);
  line-height: 1.45;
}

.export-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface);
  padding: 12px;
}

.export-panel .form-hint {
  margin: 0;
}

.new-analysis-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(10, 189, 163, .34);
  border-radius: var(--card-radius);
  background: var(--brand-soft);
  padding: 18px;
  color: var(--brand-dark);
  text-align: left;
  cursor: pointer;
}

.new-analysis-card span {
  font-size: var(--fs-4);
  font-weight: 800;
}

.new-analysis-card small {
  color: var(--muted-strong);
  font-size: var(--fs-1);
}

.method-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  overflow: hidden;
}

.method-card summary {
  padding: 13px 15px;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: var(--fs-2);
  font-weight: 800;
}

.method-card div {
  display: grid;
  gap: 6px;
  padding: 0 15px 14px;
}

.method-card p {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-3);
  line-height: var(--lh-loose);
}

.ops-stack {
  display: grid;
  gap: 20px;
}

.ops-stack .result-section {
  margin-top: 0;
}

.ops-module-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ops-module-details {
  margin-top: 12px;
}

.ops-module-details .module-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding: 0 15px 15px;
}

.ops-module-details .module-card {
  min-height: 0;
  padding: 12px;
}

.ops-module-details .module-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ops-stack .provider-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ops-stack .provider-card {
  min-height: 0;
}

.ops-stack .provider-card > p {
  min-height: 0;
  max-height: 88px;
}

.citation-overflow {
  padding: 6px 2px 0;
  color: var(--muted);
  font-size: var(--fs-1);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card,
.row {
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface);
  box-shadow: var(--panel-shadow);
}

.card {
  padding: 18px;
}

.card strong {
  display: block;
  margin-top: 10px;
  font-size: var(--fs-6);
}

.card p,
.card small,
.row small {
  color: var(--muted);
  line-height: 1.45;
}

.list {
  display: grid;
  gap: 8px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 15px;
}

.row h3 {
  margin: 0 0 3px;
  font-size: var(--fs-4);
  line-height: 1.3;
}

.row[data-availability] {
  grid-template-columns: minmax(0, 1fr) auto;
}

.row[data-availability] form {
  grid-column: 1 / -1;
}

.role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.member-row {
  align-items: center;
}

.member-controls {
  min-width: min(100%, 470px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.member-controls form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.member-controls .test-control-grid {
  display: contents;
}

.member-controls label {
  gap: 4px;
  font-size: var(--fs-1);
}

.member-controls select {
  min-height: 40px;
  padding: 8px 34px 8px 10px;
  font-size: var(--fs-2);
}

.member-controls button[type="submit"] {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.member-controls .role-actions {
  flex: 1 1 100%;
}

.question-copy {
  min-width: 0;
}

.question-copy h3 {
  overflow-wrap: anywhere;
}

/* Which project a question belongs to decides whether it shows up in that
   project's counters, so the list has to state it on every row. */
.question-project-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--brand-soft);
  padding: 3px 8px;
  color: var(--brand-dark);
  font-size: var(--fs-1);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.question-project-tag[data-empty="true"] {
  border-color: var(--line);
  border-style: dashed;
  background: var(--surface-muted);
  color: var(--muted);
}

.question-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.question-filter-tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--muted-strong);
  padding: 7px 10px;
  font: inherit;
  font-size: var(--fs-2);
  font-weight: 800;
  cursor: pointer;
}

.question-filter-tabs button:hover,
.question-filter-tabs button.active {
  border-color: rgba(10, 189, 163, .42);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.question-filter-note {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: var(--fs-2);
}

.question-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.question-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-2);
  white-space: nowrap;
}

.question-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.question-history {
  display: grid;
  gap: 9px;
  max-height: 55vh;
  overflow: auto;
}

.question-history article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  background: var(--surface-muted, #f5f8f7);
}

.question-history article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.question-history p {
  margin: 8px 0;
  line-height: 1.5;
}

.question-history time,
.question-history small {
  color: var(--muted);
  font-size: var(--fs-1);
}

.form-actions.single {
  grid-template-columns: 1fr;
}

#audit-filter-form {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

#audit-filter-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#response-filter-form {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

#response-filter-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-1);
  line-height: 1.5;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: var(--fs-2);
}

/* 빈 상태는 콘솔에 세 군데 있다(여기, .panel-empty, 어드민의 .empty). 세 곳이
 * 10·11·8px으로 갈라져 있었고, 같은 "아직 아무것도 없다"를 서로 다른 상자로
 * 말했다. 줄 층위 하나로 모은다 -- 점선과 --line-strong 테두리는 이미 같았다. */
.empty {
  padding: 40px 32px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--row-radius);
  color: var(--muted);
  background: rgba(255, 255, 255, .55);
}

.empty b {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: var(--fs-4);
}

.empty span {
  display: block;
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.55;
  word-break: keep-all;
}

.empty [data-empty-action] {
  margin-top: 18px;
  white-space: nowrap;
}

/* 업종 상세 -- 업종 모듈이 정의한 확인 항목의 커버리지와 근거 문장.
 * 서버가 미결제 응답의 근거 문장을 먼저 지우고, 화면은 남은 구조 전체를 흐려
 * 로딩 중인 스켈레톤이 아니라 잠긴 미리보기임을 분명하게 보여 준다. */
/* 머리글은 부르는 화면이 만든다(결과지 block-head · 콘솔 panel) -- 여기는 본문만 든다. */
.domain-detail {
  display: grid;
  gap: 14px;
}

.domain-detail.is-locked {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--row-radius);
  background: var(--surface-muted);
  isolation: isolate;
}

.domain-detail-locked-preview {
  display: grid;
  gap: 14px;
  padding: 6px;
  filter: blur(5px);
  opacity: .42;
  transform: scale(1.015);
  user-select: none;
  pointer-events: none;
}

.domain-detail.is-locked::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: '';
  background: rgba(247, 250, 249, .4);
}

.domain-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.domain-detail-section h4 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted-strong);
  font-size: var(--fs-2);
}

.domain-detail-section h4 span {
  color: var(--brand-dark);
  font-weight: 700;
}

.domain-detail-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.domain-detail-section li {
  border: 1px solid var(--line);
  border-radius: var(--row-radius);
  padding: 9px 11px;
  background: var(--surface);
}

.domain-detail-section li.is-missing {
  background: var(--surface-muted);
}

/* 이름으로 잡는다. li > div로 잡던 동안 같은 항목의 근거 블록(.domain-detail-quotes)까지
   함께 걸려 display:grid를 이겼고, 인용문 세 개가 한 줄에 눌린 채 카드 밖으로 넘쳐
   이웃 카드에 가려졌다. */
.domain-detail-field-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-2);
}

.domain-detail-field-line span {
  color: var(--muted);
  font-size: var(--fs-1);
  white-space: nowrap;
}

.domain-detail-section li.is-found .domain-detail-field-line span {
  color: var(--brand-dark);
}

.domain-detail-section li.is-missing .domain-detail-field-line b {
  color: var(--muted);
  font-weight: 600;
}

.domain-detail-quotes {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.domain-detail-quotes q {
  color: var(--text);
  font-size: var(--fs-3);
  line-height: var(--lh-loose);
  word-break: keep-all;
}

.domain-detail-quotes.is-locked span {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px dashed var(--line-strong);
}

.domain-detail-quotes.is-locked span:last-child {
  width: 62%;
}

.domain-detail-note {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-3);
  line-height: var(--lh-loose);
  word-break: keep-all;
}

.domain-detail-lock {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  width: min(340px, calc(100% - 32px));
  justify-items: center;
  gap: 5px;
  margin: 0;
  padding: 20px 24px;
  border: 1px solid rgba(14, 116, 104, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 36px rgba(15, 30, 28, .12);
  color: var(--muted-strong);
  text-align: center;
  transform: translate(-50%, -50%);
}

.domain-detail-lock strong {
  color: var(--text);
  font-size: var(--fs-4);
}

.domain-detail-lock > span:last-child {
  font-size: var(--fs-2);
  line-height: var(--lh-loose);
  word-break: keep-all;
}

.domain-detail-lock-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.domain-detail-lock-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* ==========================================================================
 * 리포트 탭 결과지 (A4 2장) -- /dev/report-print 시안(InBody 결과지 구조)을
 * 실데이터로 옮긴 화면. 선택자는 전부 .report-sheets 아래로 스코프해 앱의 다른
 * 화면과 이름이 겹치지 않게 한다. 색은 tokens.css(--brand, --prism-*, --pos …)만
 * 쓴다. 인쇄 규칙은 이 파일 맨 아래 @media print. */

.report-sheets { display: grid; gap: 32px; max-width: 830px; margin: 0 auto; }
.report-sheets .sheet-scroll { overflow-x: auto; }
.report-sheets .sheet {
  width: 100%; max-width: 794px; margin: 0 auto;
  background: #fff; color: var(--text);
  box-shadow: 0 30px 56px -22px rgba(15, 30, 28, .28), 0 2px 8px rgba(15, 30, 28, .08);
  overflow: hidden;
}

.report-sheets .masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 40px;
  background: var(--brand-dark);
  border-top: 4px solid var(--brand);
  color: #fff;
}
.report-sheets .brand-lockup { display: flex; align-items: center; gap: 12px; }
/* 콘솔 레일과 같은 로고 자산 -- 어두운 masthead 위라 레일과 같은 흰 칩에 얹는다. */
.report-sheets .aide-mark {
  width: 34px; height: 34px; flex: none;
  padding: 3px; border-radius: 8px; background: #fff;
}
.report-sheets .brand-lockup h2 { margin: 0; font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.report-sheets .brand-lockup p {
  margin: 2px 0 0; font-size: 11px; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .72);
}
.report-sheets .masthead-right {
  text-align: right; font-size: 11px; font-weight: 650; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .68); line-height: 1.9;
}
.report-sheets .masthead-right b {
  display: block; font-size: 13px; letter-spacing: 0; text-transform: none;
  color: #fff; font-weight: 800;
}
.report-sheets .masthead-right b.axis-list { font-size: 10px; font-weight: 750; letter-spacing: .02em; max-width: 220px; }

.report-sheets .id-strip { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; border-bottom: 1px solid var(--line); }
.report-sheets .id-cell { padding: 13px 16px; border-right: 1px solid var(--line); }
.report-sheets .id-cell:last-child { border-right: none; }
.report-sheets .id-cell dt {
  font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.report-sheets .id-cell dd {
  margin: 0; font-size: var(--fs-3); font-weight: 800; letter-spacing: -.01em; word-break: keep-all;
}

.report-sheets .sheet-body { padding: 26px 40px 22px; }
.report-sheets section.block + section.block { margin-top: 22px; }
.report-sheets .block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; padding-bottom: 7px; border-bottom: 2px solid var(--text);
}
.report-sheets .block-head h3 { margin: 0; font-size: var(--fs-5); font-weight: 850; letter-spacing: -.01em; }
.report-sheets .block-head small { font-size: var(--fs-1); font-weight: 650; color: var(--muted); }

.report-sheets .score-trio { display: grid; grid-template-columns: 1fr 1.35fr 1fr; align-items: center; gap: 8px; padding: 4px 0 2px; }
.report-sheets .score-cell { display: grid; justify-items: center; gap: 7px; text-align: center; }
.report-sheets .score-cell .ring-wrap { position: relative; }
.report-sheets .score-cell .ring-wrap svg { display: block; }
.report-sheets .ring-track { fill: none; stroke: var(--surface-muted); }
.report-sheets .ring-value { fill: none; stroke-linecap: round; }
.report-sheets .ring-num { position: absolute; inset: 0; display: grid; justify-items: center; align-content: center; gap: 2px; }
.report-sheets .ring-num b { font-size: 28px; font-weight: 850; letter-spacing: -.03em; }
.report-sheets .score-cell.is-hero .ring-num b { font-size: 50px; }
.report-sheets .ring-num em {
  font-style: normal; font-size: 10px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.report-sheets .score-cell-label { font-size: var(--fs-2); font-weight: 800; }
.report-sheets .score-cell-grade { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.report-sheets .grade-good { background: var(--brand-soft); color: var(--brand-dark); }
.report-sheets .grade-pos { background: #e5f3ee; color: var(--pos); }
.report-sheets .grade-notice { background: #f7efe0; color: var(--notice); }
.report-sheets .grade-neg { background: #fbe8e0; color: var(--neg); }
.report-sheets .score-cell-note { max-width: 15em; font-size: 11px; line-height: 1.5; color: var(--muted); }
/* 고리·큰 숫자·등급이 전부 지수 위에 서므로, 원점수는 이 한 줄이 들고 있는다 -- 인쇄물에서
   리포트 본문의 같은 지표 숫자와 대조할 값이 사라지면 안 된다. */
.report-sheets .score-cell-raw { font-size: 10px; line-height: 1.5; color: var(--muted); font-weight: 700; }

.report-sheets .band-rows { display: grid; gap: 12px; }
.report-sheets .band-row { display: grid; grid-template-columns: 96px 1fr 70px; align-items: center; gap: 12px; }
.report-sheets .band-axis { display: flex; align-items: center; gap: 7px; font-size: var(--fs-2); font-weight: 750; }
.report-sheets .band-axis > span:last-child { display: grid; gap: 1px; }
.report-sheets .band-axis small { color: var(--muted); font-size: var(--fs-1); font-weight: 650; }
.report-sheets .axis-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.report-sheets .band-track { position: relative; height: 13px; border-radius: 7px; background: var(--surface-muted); }
.report-sheets .band-fill { position: absolute; inset: 0 auto 0 0; width: 0; height: 100%; border-radius: 7px; }
.report-sheets .band-avg-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--muted-strong); }
.report-sheets .band-avg-tick.with-label::after {
  content: '업계평균'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 750; color: var(--muted); white-space: nowrap;
}
.report-sheets .band-value { text-align: right; font-size: var(--fs-3); font-weight: 850; }
.report-sheets .band-row.is-empty .band-axis,
.report-sheets .band-row.is-empty .band-value { color: var(--muted); }
.report-sheets .band-row.is-empty .band-track { opacity: .55; }
.report-sheets .band-row.is-empty .band-axis,
.report-sheets .band-row.is-empty .band-value { color: var(--muted); }
.report-sheets .band-row.is-empty .band-track { opacity: .55; }
.report-sheets .band-value small { display: block; font-size: 10px; font-weight: 750; margin-top: 1px; }
.report-sheets .band-value small.up { color: var(--pos); }
.report-sheets .band-value small.down { color: var(--neg); }

.report-sheets .insight-box {
  margin-top: 14px; padding: 10px 13px; border-left: 3px solid var(--muted-strong);
  background: var(--surface-soft); font-size: var(--fs-2); line-height: 1.55; color: var(--muted-strong);
}
.report-sheets .insight-box b { color: var(--text); }

.report-sheets .mini-bars { display: grid; gap: 8px; }
.report-sheets .mini-bar-row { display: grid; gap: 3px; }
.report-sheets .mini-bar-row > div { display: flex; align-items: baseline; justify-content: space-between; font-size: var(--fs-2); }
.report-sheets .mini-bar-row > div span { font-weight: 700; }
.report-sheets .mini-bar-row > div b { font-weight: 850; }
.report-sheets .mini-bar-track { height: 7px; border-radius: 4px; background: var(--surface-muted); }
.report-sheets .mini-bar-fill { height: 100%; border-radius: 4px; background: var(--brand); }
/* 채널은 6개 안팎이라 1열이면 목록이 시트 세로를 잡아먹는다 -- 2열로 접는다. */
.report-sheets .channel-bars { margin-top: 12px; grid-template-columns: 1fr 1fr; column-gap: 26px; }

.report-sheets .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.report-sheets .stat-cell { padding: 10px 11px; border: 1px solid var(--line); border-radius: var(--row-radius); background: #fff; }
.report-sheets .stat-cell small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .02em; }
.report-sheets .stat-cell strong { display: block; font-size: var(--fs-5); font-weight: 850; letter-spacing: -.02em; }
.report-sheets .stat-cell span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }

/* 평균선 라벨이 첫 행 브랜드명과 겹치지 않도록 라벨 높이만큼 위 여백을 확보한다. */
.report-sheets .comp-field { position: relative; display: grid; gap: 9px; padding-top: 18px; }
.report-sheets .comp-avg-line { position: absolute; top: 18px; bottom: 20px; border-left: 2px dashed var(--muted); }
.report-sheets .comp-avg-line::after {
  content: attr(data-label); position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 750; color: var(--muted); white-space: nowrap;
}
.report-sheets .comp-row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; }
.report-sheets .comp-name { font-size: var(--fs-2); font-weight: 750; word-break: keep-all; }
.report-sheets .comp-row.is-self .comp-name { color: var(--brand-dark); font-weight: 850; }
.report-sheets .comp-track { height: 18px; border-radius: 5px; background: var(--surface-muted); position: relative; }
.report-sheets .comp-fill { height: 100%; border-radius: 5px; background: var(--muted-strong); }
.report-sheets .comp-row.is-self .comp-fill { background: var(--brand); }
.report-sheets .comp-pct { font-size: var(--fs-3); font-weight: 850; text-align: right; }

.report-sheets .trend-strip { display: flex; gap: 18px; padding: 10px 14px; border-radius: var(--row-radius); background: var(--surface-soft); margin-bottom: 10px; }
.report-sheets .trend-strip > div { display: flex; flex-direction: column; }
.report-sheets .trend-strip b { font-size: var(--fs-4); font-weight: 850; }
.report-sheets .trend-strip small { font-size: 10px; color: var(--muted); font-weight: 700; }
.report-sheets .trend-headline { margin: 0 0 12px; font-size: var(--fs-2); font-weight: 750; }
.report-sheets .spark-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 12px; }
.report-sheets .spark-card small { display: block; font-size: 10px; font-weight: 750; color: var(--muted); margin-bottom: 2px; }
.report-sheets .spark-card svg { display: block; width: 100%; height: auto; }
.report-sheets .spark-card text { fill: var(--text); }
.report-sheets .spark-card text.spark-date { fill: var(--muted); }
.report-sheets .change-list { display: grid; gap: 6px; }
.report-sheets .change-item { display: flex; gap: 8px; font-size: var(--fs-2); line-height: 1.5; }
.report-sheets .change-item::before { content: '—'; color: var(--muted); flex: none; }

.report-sheets .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.report-sheets .action-num-list { display: grid; gap: 9px; }
.report-sheets .action-num-item { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; }
.report-sheets .action-num-item i {
  font-style: normal; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px;
  border-radius: 50%; background: var(--surface-muted); color: var(--muted-strong);
  font-size: 10px; font-weight: 850;
}
.report-sheets .action-num-item.sev-high i { background: #fbe8e0; color: var(--neg); }
.report-sheets .action-num-item.sev-mid i { background: #f7efe0; color: var(--notice); }
.report-sheets .action-num-item div { font-size: var(--fs-2); line-height: 1.5; }
.report-sheets .action-num-item b { font-weight: 850; }

.report-sheets .risk-list { display: grid; gap: 8px; }
.report-sheets .risk-item { display: flex; align-items: flex-start; gap: 9px; font-size: var(--fs-2); line-height: 1.55; }
.report-sheets .risk-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.report-sheets .risk-item b { font-weight: 850; }
.report-sheets .risk-item small { color: var(--muted); }

.report-sheets .sheet-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 40px; border-top: 1px solid var(--line); background: var(--surface-muted);
  font-size: 10px; font-weight: 650; color: var(--muted);
}
.report-sheets .sheet-foot code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: 0; }

.report-sheets .method-note {
  margin: 22px 0 0; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 10px; line-height: 1.6; color: var(--muted);
}
.report-sheets .method-note code { font-family: ui-monospace, Menlo, monospace; }

@container content-col (width < 580px) {
  .report-sheets .two-col, .report-sheets .spark-row { grid-template-columns: 1fr; }
  .report-sheets .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .report-sheets .id-strip { grid-template-columns: repeat(3, 1fr); }
  .report-sheets .id-cell:nth-child(3) { border-right: none; }
}

/* 결과지 인쇄: 앱 크롬(레일·제목 줄·알림 패널)을 걷어내고 시트만 A4로 넘긴다.
 * header/.report-toolbar 숨김은 css/dashboard.css의 공용 @media print가 이미 처리한다. */
@media print {
  #workspace .title, #active-run-banner, .notification-panel { display: none !important; }
  body { background: #fff; }
  .report-sheets { width: 794px; max-width: 794px; gap: 0; }
  .report-sheets .sheet-scroll { overflow: visible; }
  .report-sheets .sheet { box-shadow: none; width: 794px; max-width: 794px; page-break-after: always; }
  /* 마지막 시트 뒤에는 넘길 페이지가 없다 -- 남겨 두면 빈 마지막 장이 붙는다. */
  .report-sheets .sheet-scroll:last-child .sheet { page-break-after: auto; }
  .report-sheets .masthead, .report-sheets .sheet-foot, .report-sheets .aide-mark,
  .report-sheets .band-fill, .report-sheets .mini-bar-fill, .report-sheets .comp-fill {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }

  /* 화면 밀도 그대로는 시트 한 장이 A4 인쇄 영역(297mm - 여백 ≈ 1046px)을 넘겨
   * 목록이 페이지 경계에서 잘리고 넘친 꼬리가 거의 빈 페이지를 만든다(실측: 시트 1
   * 1065px · 시트 2 1245px). 인쇄에서만 여백·링 크기를 조이고 시트 전체를 균일하게
   * 줄여(zoom) 시트 = A4 한 장을 맞춘다. 데이터가 많아 그래도 넘치면 아래
   * break-inside 규칙이 블록 단위로 통째로 넘긴다. */
  .report-sheets .sheet { zoom: 0.94; }
  .report-sheets .masthead { padding: 12px 28px; }
  .report-sheets .masthead-right { line-height: 1.5; }
  .report-sheets .id-cell { padding: 7px 13px; }
  .report-sheets .sheet-body { padding: 14px 28px 12px; }
  .report-sheets section.block + section.block { margin-top: 11px; }
  .report-sheets .block-head { margin-bottom: 6px; padding-bottom: 4px; }
  .report-sheets .score-trio { padding: 2px 0 0; }
  .report-sheets .score-cell { gap: 4px; }
  .report-sheets .score-cell .ring-wrap svg { width: 96px; height: 96px; }
  .report-sheets .score-cell.is-hero .ring-wrap svg { width: 128px; height: 128px; }
  .report-sheets .ring-num b { font-size: 22px; }
  .report-sheets .score-cell.is-hero .ring-num b { font-size: 36px; }
  .report-sheets .band-rows { gap: 8px; }
  .report-sheets .insight-box { margin-top: 8px; padding: 7px 12px; }
  .report-sheets .two-col { gap: 20px; }
  .report-sheets .mini-bars { gap: 5px; }
  .report-sheets .mini-bar-track { height: 6px; }
  .report-sheets .comp-field { gap: 7px; }
  .report-sheets .stat-grid { gap: 6px; }
  .report-sheets .stat-cell { padding: 7px 10px; }
  .report-sheets .trend-strip { padding: 6px 12px; margin-bottom: 8px; }
  .report-sheets .spark-row { gap: 14px; margin-bottom: 8px; }
  .report-sheets .spark-card svg { max-width: 200px; }
  .report-sheets .action-num-list { gap: 6px; }
  .report-sheets .risk-list { gap: 6px; }
  .report-sheets .method-note { margin-top: 10px; }
  .report-sheets .sheet-foot { padding: 7px 28px; }

  /* 업종 상세 장. 화면에서는 항목마다 근거를 세 문장까지 쌓지만, 인쇄본에서 그러면 여섯
   * 항목이 A4 한 장을 또 넘긴다(실측 1128px, 인쇄 영역 1046px). 종이에는 항목마다 첫
   * 문장 하나만 남기고 -- 나머지는 콘솔에서 읽는다 -- 간격을 함께 조인다. */
  .report-sheets .domain-detail { gap: 9px; }
  .report-sheets .domain-detail-grid { gap: 10px; }
  .report-sheets .domain-detail-section ul { gap: 5px; }
  .report-sheets .domain-detail-section li { padding: 6px 9px; }
  .report-sheets .domain-detail-quotes { margin-top: 4px; }
  .report-sheets .domain-detail-quotes q:nth-of-type(n+2) { display: none; }

  /* 페이지 경계가 목록·카드 한가운데를 지나지 않게 한다. */
  .report-sheets .domain-detail-section, .report-sheets .domain-detail-section li,
  .report-sheets section.block, .report-sheets .id-strip, .report-sheets .score-trio,
  .report-sheets .band-row, .report-sheets .insight-box, .report-sheets .mini-bar-row,
  .report-sheets .comp-row, .report-sheets .stat-cell, .report-sheets .trend-strip,
  .report-sheets .spark-card, .report-sheets .action-num-item, .report-sheets .risk-item,
  .report-sheets .method-note, .report-sheets .sheet-foot {
    break-inside: avoid; page-break-inside: avoid;
  }
  .report-sheets .block-head { break-after: avoid; }

  @page { size: A4; margin: 10mm; }
}
