/* Cogniva family demo — report */

.report-shell { max-width: 980px; margin-inline: auto; padding-inline: var(--gutter); }
.report-cover { padding-block: 46px 30px; border-bottom: 1px solid var(--fg); }
.report-title { font-family: var(--font-display); font-size: clamp(44px, 6vw, 66px); line-height: 1.02; letter-spacing: -0.028em; margin: 14px 0 0; font-weight: 600; }
.report-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cover-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); flex-wrap: wrap; margin-top: 20px; }
.cover-meta .meta { font-size: 12px; }

.report-summary { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 60px); padding-block: 38px; border-bottom: 1px solid var(--border); align-items: start; }
.score-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.score-num { font-family: var(--font-display); font-size: clamp(76px, 9vw, 104px); line-height: .86; letter-spacing: -0.05em; color: var(--accent); font-weight: 600; margin: 12px 0 10px; }
.score-num span { font-size: .32em; letter-spacing: -0.01em; color: var(--muted); }
.score-band { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.score-scale { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.score-scale .track { flex: 1; margin: 0; height: 4px; }
.report-summary .lead { font-size: 17px; max-width: 54ch; }
.summary-facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.summary-facts div { min-width: 104px; }
.summary-facts dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.summary-facts dd { margin: 3px 0 0; font-size: 14px; }

.participants { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-block: 18px; border-bottom: 1px solid var(--border); }
.participant { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.participant .avatar { width: 26px; height: 26px; font-size: 9.5px; }
.participant .meta { font-size: 10px; }

.r-section { padding-block: 44px; border-bottom: 1px solid var(--border); }
.r-head { display: grid; grid-template-columns: 44px 1fr; gap: 10px; margin-bottom: 28px; align-items: baseline; }
.r-idx { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.r-head h2 { font-size: clamp(26px, 3vw, 34px); }
.r-head .lead { margin-top: 10px; font-size: 15px; }

.dim-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.7fr) 56px 78px; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border); }
.dim-row:first-of-type { border-top: 1px solid var(--fg); }
.dim-name h3 { font-size: 16px; font-weight: 600; }
.dim-name p { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.dim-track { height: 9px; background: var(--fg-soft); border-radius: 1px; overflow: hidden; }
.dim-fill { height: 100%; background: var(--fg); border-radius: 1px; width: 0; transition: width .5s ease; }
.dim-score { font-family: var(--font-mono); font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.dim-band { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); text-align: right; }

.heat-wrap { overflow-x: auto; padding-bottom: 4px; }
.heat { display: grid; grid-template-columns: 150px repeat(4, minmax(84px, 1fr)); gap: 5px; min-width: 560px; }
.heat-head { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 0 2px 8px; line-height: 1.4; }
.heat-head:first-child { padding-left: 0; }
.heat-row-label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding-right: 6px; }
.heat-row-label .meta { font-size: 9.5px; display: block; }
.heat-cell { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 12px 10px; border-radius: 2px; font-family: var(--font-mono); font-size: 14px; }
.heat-cell small { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.heat-legend { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.heat-legend .swatch { width: 44px; height: 8px; border-radius: 1px; background: linear-gradient(to right, color-mix(in oklch, var(--fg) 10%, var(--surface)), color-mix(in oklch, var(--fg) 56%, var(--surface))); }

.gap { margin-top: 30px; padding: 22px 0 24px; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.gap .kicker { color: var(--fg); padding-top: 4px; }
.gap h3 { font-family: var(--font-display); font-size: 25px; line-height: 1.2; letter-spacing: -0.012em; margin: 0 0 8px; font-weight: 600; }
.gap p { margin: 0; font-size: 14px; color: var(--muted); max-width: 62ch; }

.finding { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 24px 0; border-top: 1px solid var(--border); }
.finding:first-child { border-top: 1px solid var(--fg); }
.finding .f-idx { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding-top: 5px; }
.finding h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.22; letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 600; }
.finding p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--fg-mid); max-width: 66ch; }

.plan-row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); }
.plan-row:first-child { border-top: 1px solid var(--fg); }
.plan-row .p-idx { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding-top: 4px; }
.plan-row h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.plan-row p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 64ch; }

.limits { margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.limits .kicker { color: var(--fg); margin-bottom: 8px; }
.limits p { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

.report-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--gap-md); flex-wrap: wrap; padding-block: 30px 56px; }
.report-foot p { margin: 0; font-size: 11.5px; color: var(--muted); max-width: 52ch; line-height: 1.6; }

/* locked report */
.lock-wrap { max-width: 620px; margin-inline: auto; padding-block: clamp(48px, 8vw, 96px); }
.lock-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 44px); }
.lock-mark { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 22px; color: var(--muted); }
.lock-card h1 { margin-bottom: 14px; font-size: clamp(32px, 4vw, 46px); }
.lock-card .lead { margin-bottom: var(--gap-lg); }
.lock-actions { display: flex; flex-wrap: wrap; gap: var(--gap-sm); margin-top: var(--gap-lg); }
.lock-people { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.lock-people li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.lock-people .voice-name { flex: 1; font-size: 13.5px; }
.lock-people .status { font-size: 10px; }

@media (max-width: 820px) {
  .report-summary { grid-template-columns: 1fr; gap: 24px; }
  .gap { grid-template-columns: 1fr; gap: 10px; }
  .dim-row { grid-template-columns: minmax(0, 1fr) 70px; gap: 8px 16px; }
  .dim-track { grid-column: 1 / -1; grid-row: 2; }
  .dim-score { grid-row: 1; }
  .dim-band { display: none; }
  .participants { gap: 8px 18px; }
}
@media (max-width: 680px) {
  .report-cover { padding-top: 28px; }
  .r-section { padding-block: 32px; }
  .r-head { grid-template-columns: 1fr; gap: 4px; }
  .r-idx { padding-top: 0; }
  .finding { grid-template-columns: 1fr; gap: 4px; }
  .plan-row { grid-template-columns: 1fr; gap: 4px; }
  .heat { grid-template-columns: 104px repeat(4, 74px); min-width: 470px; }
  .heat-cell { padding: 10px 8px; font-size: 13px; }
  .heat-cell small { display: none; }
}

/* ── print / save PDF ─────────────────────────────────────────── */
@page { margin: 16mm 14mm; }

@media print {
  html, body { background: var(--surface); }
  body { font-size: 12pt; line-height: 1.5; }
  .topnav, .no-print, .toast, dialog, .demo-foot, .banner { display: none !important; }
  .app-main { padding: 0; }
  .report-shell { max-width: none; padding: 0; }
  .report-cover { padding-top: 0; }
  .report-title { font-size: 34pt; }
  h1, .h1 { font-size: 30pt; }
  h2, .h2, .r-head h2 { font-size: 18pt; }
  h3, .h3 { font-size: 13pt; }
  .lead { font-size: 12pt; }
  .meta, .kicker, .tag, .status, .num, dt, dd, .score-label, .score-band,
  .dim-band, .heat-head, .heat-cell small, .heat-row-label .meta,
  .participant .meta, .r-idx, .f-idx, .p-idx, .score-scale,
  .heat-legend, .report-foot p, .limits p, .summary-facts dt {
    font-size: 12pt;
  }
  .summary-facts dd, .participant, .answer-row p { font-size: 12pt; }
  .score-num { font-size: 64pt; }
  .dim-row, .finding, .plan-row, .gap, .limits { break-inside: avoid; }
  .r-section { break-inside: auto; }
  .r-head h2 { break-after: avoid; }
  .finding h3, .plan-row h3, .gap h3 { break-after: avoid; }
  .dim-fill, .tile-bar span, .heat-cell, .mini-fill, .voice-track span, .score-num {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  a { text-decoration: none; }
  .report-foot { padding-bottom: 0; }
}