/* Statistics tools extend the established Math components. */
.statistics-lab{min-width:0}.statistics-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.statistics-controls label,.statistics-lab>label,#statistics-ticket>label{display:grid;gap:7px;font-weight:650;margin:14px 0}.statistics-controls label:first-child,.statistics-whole{grid-column:1/-1}.statistics-controls input:not([type=checkbox]),.statistics-controls select,.statistics-controls textarea,.statistics-lab>label textarea,#statistics-ticket>label input,#statistics-ticket>label select,#statistics-ticket>label textarea,.statistics-pathway .optics-guided textarea{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #8197b0;border-radius:9px;background:var(--surface,#fff);color:var(--ink,#102640);font:inherit;min-width:0}.statistics-controls .statistics-whole{display:flex;gap:10px;align-items:flex-start;font-weight:500}.statistics-chart{margin:20px 0;background:#fff;border:1px solid #ccd9e7;border-radius:12px;overflow:hidden}.statistics-chart svg{display:block;width:100%;height:auto}.statistics-chart:empty{display:none}.statistics-insight{border-left:4px solid #008476;padding:10px 16px;line-height:1.7}.statistics-insight:empty{display:none}.statistics-table{overflow-x:auto}.statistics-table table{width:100%;border-collapse:collapse;font-size:14px}.statistics-table caption{text-align:left;font-weight:700;margin:12px 0}.statistics-table th,.statistics-table td{padding:10px;text-align:left;border-bottom:1px solid #c8d5e3}.statistics-case-brand{display:block;max-width:100%;height:auto;margin:10px auto 22px}.statistics-evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.statistics-evidence-grid figure{margin:0;border:1px solid #c9d8e7;border-radius:12px;overflow:hidden}.statistics-evidence-grid img{display:block;width:100%;height:auto;background:#fff}.statistics-evidence-grid figcaption{padding:12px;font-size:13px}.statistics-question{border:1px solid #c5d3e2;border-radius:14px;padding:22px;margin:20px 0}.statistics-question fieldset,#statistics-ticket fieldset{border:0;padding:0;margin:0}.statistics-question legend,#statistics-ticket legend{font-weight:750;margin-bottom:12px}.statistics-question fieldset label,#statistics-ticket fieldset label{display:flex;gap:11px;align-items:flex-start;padding:10px 0;cursor:pointer}.statistics-question input,#statistics-ticket [type=checkbox],.statistics-whole input{width:20px;height:20px;flex:0 0 20px;accent-color:#1464ed}.statistics-pathway .note-actions{gap:12px;display:flex;flex-wrap:wrap;align-items:center;margin:18px 0}.statistics-pathway button,.statistics-pathway .note-actions a{min-height:44px}.statistics-pathway :focus-visible{outline:3px solid #1464ed;outline-offset:4px}.statistics-pathway [role=status]{line-height:1.6;min-height:1.6em}.statistics-pathway .resource-grid .resource{padding:20px;display:grid;gap:12px}.statistics-pathway .proficiency-levels{grid-template-columns:repeat(2,minmax(0,1fr))}#statistics-ticket{padding:22px;border:1px solid #c5d3e2;border-radius:14px}#statistics-ticket textarea{resize:vertical}.statistics-pathway .inline-notes{margin:24px 0}.statistics-pathway .optics-prose p{overflow-wrap:anywhere}
.statistics-lab[data-mode=scale] .statistics-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.statistics-lab[data-mode=scale] .statistics-controls label:has([data-field=data], [data-field=type], [data-field=title], [data-field=x], [data-field=y], [data-field=whole]){display:none}.statistics-lab[data-mode=scale] .statistics-controls label{grid-column:auto}.statistics-chart{overflow-x:auto}.statistics-chart svg{min-width:520px}
@media(max-width:640px){.statistics-controls,.statistics-evidence-grid,.statistics-pathway .proficiency-levels,.statistics-lab[data-mode=scale] .statistics-controls{grid-template-columns:1fr}.statistics-controls label{grid-column:1}.statistics-question,#statistics-ticket{padding:16px}.statistics-pathway .note-actions{align-items:stretch}.statistics-pathway .note-actions .primary,.statistics-pathway .note-actions .secondary{width:100%;text-align:center}.statistics-chart{margin-left:-8px;margin-right:-8px}}
@media print{.statistics-controls,.statistics-lab .note-actions,.statistics-pathway button,.statistics-pathway .subject-rail,.statistics-pathway .unit-companion,.statistics-pathway .optics-picker{display:none!important}.statistics-evidence-grid{grid-template-columns:1fr}.statistics-chart,.statistics-table{break-inside:avoid}.statistics-pathway .reference-columns{display:block}}
