.learning-model { margin: 1rem 0; }
.learning-model p { line-height: 1.6; }
.learning-model-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1.2rem 0 .8rem; }
.learning-model-control { display: grid; grid-template-columns: minmax(0,1fr); gap: .4rem; padding: .8rem; border: 1px solid #cbd5e1; border-radius: .65rem; background: #f8fafc; }
.learning-model-control label { font-weight: 650; overflow-wrap: anywhere; }
.learning-model-control output { font-variant-numeric: tabular-nums; color: #1e40af; }
.learning-model-control input { display: block; width: 100%; min-width: 0; margin: .2rem 0; accent-color: #2563eb; cursor: pointer; min-height: 2rem; }
.learning-model-control input:focus-visible, .learning-model-reset:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 4px; }
.learning-model-reset { min-height: 2.75rem; padding: .5rem 1rem; margin-bottom: 1rem; border: 1px solid #94a3b8; border-radius: .5rem; background: white; color: #1e293b; cursor: pointer; font: inherit; }
.learning-model-comparisons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
.learning-model-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.learning-model-comparison { min-width: 0; padding: 1rem; border: 1px solid #cbd5e1; border-radius: .65rem; background: white; }
.learning-model-comparison h4 { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.learning-model-comparison p { margin: .5rem 0; }
.learning-model-row { margin-top: .8rem; }
.learning-model-row-label { display: block; font-size: .95rem; color: #475569; }
.learning-model-value { display: block; font-variant-numeric: tabular-nums; font-weight: 650; overflow-wrap: anywhere; }
.learning-model-bar { display: block; width: 100%; height: 1.5rem; margin: .25rem 0; }
.learning-model-track { fill: #e2e8f0; }
.learning-model-fill { fill: #2563eb; }
.learning-model-row[data-series="reference"] .learning-model-fill { fill: #64748b; }
.learning-model-limit { stroke: #0f172a; stroke-width: 3; }
.learning-model-comparison[data-exceeded="true"] .learning-model-fill { fill: #b91c1c; }
.learning-model-comparison[data-exceeded="true"] .learning-model-capacity-note { color: #991b1b; font-weight: 650; }
.learning-model-formula { padding: .8rem 0; color: #475569; overflow-wrap: anywhere; }
.learning-model-result { padding: 1rem; border-left: 4px solid #2563eb; background: #eff6ff; border-radius: .3rem; }
@media (max-width: 720px) {
 .learning-model-controls, .learning-model-comparisons, .learning-model-two { grid-template-columns: minmax(0,1fr); }
}
