.stat-scroll{max-width:100%;overflow-x:auto;margin:.75rem 0}
.stat-table{border-collapse:separate;border-spacing:0;margin:0 auto;min-width:520px;max-width:100%;background:#fff;border:2px solid #b8c5de;border-radius:9px;overflow:hidden}
.stat-table th,.stat-table td{border-right:1px solid #a9cbd8;border-bottom:1px solid #a9cbd8;padding:.42rem .65rem;text-align:center;white-space:nowrap}
.stat-table th{background:#e7f4f3;font-weight:700}
.stat-table tr:last-child>*{border-bottom:0}.stat-table tr>*:last-child{border-right:0}
.data-matrix{border-collapse:collapse;margin:.75rem auto;font-variant-numeric:tabular-nums}
.data-matrix td{padding:.1rem .7rem;text-align:center;border:0}
.stat-figure{max-width:760px}
.stat-figure text{font-family:Arial,sans-serif;fill:#263442}
.stat-figure .axis{stroke:#435466;stroke-width:2}
.stat-figure .grid{stroke:#d9e1e8;stroke-width:1}
.stat-figure .bar{fill:#e68eb0;stroke:#d94c7d;stroke-width:2}
.stat-figure .bar-green{fill:#b9d990;stroke:#6ea33d;stroke-width:2}
.stat-figure .box-a{fill:#cfe5ae;stroke:#73a745;stroke-width:2.5}
.stat-figure .box-b{fill:#ffd1ab;stroke:#ef8b2c;stroke-width:2.5}
.stat-figure .whisker-a{stroke:#73a745;stroke-width:2.5}
.stat-figure .whisker-b{stroke:#ef8b2c;stroke-width:2.5}
.chart-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:.8rem 0}
.chart-card{border:1px solid #e5eaf0;background:#fbfcfe;border-radius:9px;padding:.6rem;min-width:0}
.chart-card h4{margin:0 0 .25rem;text-align:center;color:var(--primary-dark)}
.chart-card .figura{margin:.25rem auto}
.stat-note{background:#f4f9ff;border-left:4px solid var(--primary);border-radius:7px;padding:.65rem .8rem;margin:.65rem 0}
.stat-answer{color:#164e78;font-weight:700}
.formula-line{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:.45rem 0}
.skew-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:.75rem 0}
.skew-card{border:1px solid #e5eaf0;background:#fff;border-radius:8px;padding:.45rem;min-width:0}
.skew-card strong{color:var(--accent)}
.skew-card svg{display:block;width:100%;height:auto}
.box-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.4rem;margin:.65rem 0}
.box-summary div{background:#f8fafc;border:1px solid var(--border);border-radius:7px;padding:.45rem;text-align:center}
.box-summary strong{display:block;color:var(--primary-dark)}
@media(max-width:760px){
  .data-matrix td{padding:.08rem .35rem;font-size:.84rem}
  .chart-pair,.skew-grid{grid-template-columns:1fr}
  .box-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media print{
  .chart-card,.skew-card{break-inside:avoid}
  .stat-table th{background:#eee!important}
}
