.training-panel{margin-bottom:24px}.training-panel .section-head{flex-wrap:wrap;gap:16px}.training-panel .section-head p{font-size:13px;line-height:1.7}.training-scope{max-width:850px;font-size:14px;line-height:1.8}.training-boundary{max-width:950px;color:var(--theme-muted);font-size:12px;line-height:1.8}.training-run{border:1px solid var(--theme-edge);border-radius:10px;padding:22px;margin:20px 0;background:var(--theme-surface)}.training-run-heading{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:flex-start;gap:12px}.training-run h3{font-size:15px;overflow-wrap:anywhere}.training-run-heading p{font-size:12px;color:var(--theme-muted);line-height:1.8}.training-splits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px 0}.training-splits dt{font-size:11px;color:var(--theme-muted);margin-bottom:6px}.training-splits dd{margin:0;font-size:13px}.training-run table{width:100%;font-size:13px;border-collapse:collapse}.training-run caption{text-align:left;padding:12px 0;color:var(--theme-muted);font-size:12px}.training-run th,.training-run td{text-align:left;padding:12px;border-bottom:1px solid var(--theme-edge)}.training-footer{font-size:11px;color:var(--theme-muted);line-height:1.8;margin:14px 0 0}.training-empty{padding:24px 0;font-size:14px}.training-panel .form-error:empty{display:none}@media(max-width:680px){.training-run{padding:16px}.training-splits{grid-template-columns:1fr;gap:12px}.training-run table{min-width:430px}}
/* Private training-history visuals inherit the shared Montserrat/theme system. */
.training-panel{min-width:0;overflow-wrap:anywhere}.training-panel .th-actions{display:flex;flex-wrap:wrap;gap:10px}.training-panel .th-actions .btn{min-height:44px}.training-panel .th-muted{font-size:12px;line-height:1.8;color:var(--theme-muted);margin:8px 0}.training-panel .th-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:24px;margin-top:24px}.training-panel .th-selected{padding:26px;border:1px solid var(--theme-edge);border-radius:14px;background:var(--theme-accent-bg)}.training-panel .th-selected .eyebrow{color:var(--theme-accent);font-size:10px;letter-spacing:.13em}.training-panel .th-headline{display:block;color:var(--theme-accent);font-size:clamp(36px,5vw,66px);font-weight:600;line-height:1.2;margin:14px 0}.training-panel .th-selected h3{font-size:18px;margin:8px 0}.training-panel .th-selected>p{font-size:12px;line-height:1.8}.training-panel .th-selected .th-selection-rule{border-top:1px solid var(--theme-edge);padding-top:14px;margin-top:16px;color:var(--theme-ink)}.training-panel .th-goals{display:grid;grid-template-columns:1fr 1fr;gap:14px}.training-panel .th-goal{border:1px dashed var(--theme-edge);border-radius:12px;padding:16px;background:var(--theme-surface)}.training-panel .th-goal span,.training-panel .th-goal small{display:block;font-size:11px;line-height:1.6;color:var(--theme-muted)}.training-panel .th-goal strong{display:block;font-size:27px;font-weight:500;line-height:1.5;color:var(--theme-ink)}.training-panel .th-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:20px 0 10px;margin:0}.training-panel .th-counts dt,.training-panel .th-fit-facts dt{font-size:11px;line-height:1.6;color:var(--theme-muted)}.training-panel .th-counts dd{font-size:26px;margin:5px 0;color:var(--theme-ink)}.training-panel .th-section{margin-top:32px;padding-top:26px;border-top:1px solid var(--theme-line)}.training-panel .th-section h3{font-size:19px;line-height:1.5;margin:0 0 8px}.training-panel .th-experiments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}.training-panel .th-experiment{min-width:0;border:1px solid var(--theme-line);border-radius:12px;padding:18px;background:var(--theme-surface)}.training-panel .th-experiment h4,.training-panel .th-fit-heading h4{font-size:14px;line-height:1.7;margin:0}.training-panel figure{margin:18px 0}.training-panel figcaption{font-size:11px;line-height:1.7;color:var(--theme-muted);margin-top:10px}.training-panel .th-bar-row{display:grid;grid-template-columns:100px minmax(40px,1fr) 64px;align-items:center;gap:10px;margin:14px 0;font-size:11px;line-height:1.5}.training-panel .th-bar-row strong{text-align:right;font-variant-numeric:tabular-nums}.training-panel .th-bar{display:block;width:100%;height:24px;fill:var(--theme-accent);stroke:none}.training-panel .th-bar.th-classical{fill:var(--theme-info)}.training-panel .th-bar .th-bar-track{fill:var(--theme-soft)}.training-panel .th-table{max-width:100%;overflow-x:auto;margin-top:16px;border-radius:6px}.training-panel .th-table table{width:100%;font-size:11px;line-height:1.7;border-collapse:collapse;font-variant-numeric:tabular-nums}.training-panel .th-table th,.training-panel .th-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--theme-line);color:var(--theme-ink);vertical-align:top}.training-panel .th-table td{white-space:nowrap}.training-panel .th-table th{font-weight:600}.training-panel .th-table thead{background:var(--theme-soft)}.training-panel .th-table caption{text-align:left;font-size:11px;color:var(--theme-muted);padding:0 0 10px}.training-panel .th-badge{display:block;width:fit-content;font-size:9px;font-weight:500;line-height:1.5;border:1px solid var(--theme-edge);border-radius:4px;padding:3px 5px;margin-top:5px;background:var(--theme-accent-bg);color:var(--theme-accent)}.training-panel .th-badge-quiet{background:var(--theme-soft);color:var(--theme-muted)}.training-panel .th-fit-controls{display:grid;grid-template-columns:minmax(0,3fr) minmax(170px,1fr);gap:18px;margin:20px 0}.training-panel .th-fit-controls label{display:grid;gap:8px;font-size:12px;line-height:1.6;color:var(--theme-muted)}.training-panel .th-fit-controls select{width:100%;min-width:0;min-height:46px;font:inherit;line-height:1.5;padding:10px;border:1px solid var(--theme-edge);border-radius:8px;color:var(--theme-ink);background:var(--theme-input)}.training-panel .th-fit-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:start;gap:12px}.training-panel .th-fit-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0;padding:16px;background:var(--theme-soft);border-radius:8px}.training-panel .th-fit-facts dd{margin:6px 0 0;font-size:12px;line-height:1.7}.training-panel .th-learning-chart{max-width:100%;padding:12px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-surface)}.training-panel .th-plot-scroll{max-width:100%;overflow-x:auto;border-radius:6px}.training-panel .th-learning-chart svg{display:block;width:100%;min-width:640px;height:auto;aspect-ratio:64/25;max-height:none;overflow:visible;fill:none;stroke:none}.training-panel .th-learning-chart text{fill:var(--theme-muted);stroke:none;font:11px var(--font-ui,Montserrat,sans-serif)}.training-panel .th-grid-line{stroke:var(--theme-line);stroke-width:1;opacity:.5}.training-panel .th-series-training{fill:var(--theme-accent);stroke:var(--theme-accent)}.training-panel .th-series-validation{fill:var(--theme-info);stroke:var(--theme-info)}.training-panel .th-learning-chart path{fill:none;stroke-width:2;vector-effect:non-scaling-stroke}.training-panel .th-series-validation path{stroke-dasharray:7 4}.training-panel .th-learning-chart circle{stroke:none}.training-panel .th-selected-epoch{stroke:var(--theme-muted);stroke-width:1;stroke-dasharray:2 5}.training-panel .th-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 20px}.training-panel .th-legend span{display:inline-flex;align-items:center;gap:6px}.training-panel .th-legend span::before{content:'';display:inline-block;width:18px;border-top:3px solid var(--theme-accent)}.training-panel .th-legend .th-legend-validation::before{border-top:3px dashed var(--theme-info)}.training-panel .th-legend .th-legend-selected::before{border-top:2px dotted var(--theme-muted)}.training-panel details{margin-top:18px}.training-panel details>summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:12px;line-height:1.7;color:var(--theme-ink)}.training-panel .th-empty{padding:24px 16px;background:var(--theme-soft);border-radius:8px;font-size:13px;line-height:1.8}.training-panel .th-notice{padding:16px;background:var(--theme-warn-bg);color:var(--theme-warn);border:1px solid var(--theme-edge);border-radius:8px;font-size:12px;line-height:1.8}.training-panel .th-pilot{border-top-style:dashed}.training-panel [data-training-status]{min-height:20px}
@media(max-width:1100px){.training-panel .th-experiments{grid-template-columns:1fr}.training-panel .th-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.training-panel .th-fit-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.training-panel .th-overview{grid-template-columns:1fr}.training-panel .th-selected{padding:20px}.training-panel .th-fit-controls{grid-template-columns:1fr}.training-panel .th-actions{width:100%}.training-panel .th-actions .btn{flex:1;justify-content:center}.training-panel .th-table table{min-width:450px}.training-panel .th-bar-row{grid-template-columns:90px minmax(30px,1fr) 60px;gap:6px}.training-panel .th-experiment{padding:14px}.training-panel .th-fit-facts{padding:12px;gap:12px}.training-panel .th-learning-chart{padding:8px 0}.training-panel .th-goals{gap:10px}.training-panel .th-goal{padding:14px}.training-panel .th-goal strong{font-size:24px}.training-panel .th-legend{justify-content:start;padding:0 12px}}
@media(forced-colors:active){.training-panel .th-bar{fill:CanvasText}.training-panel .th-bar .th-bar-track{fill:Canvas;stroke:CanvasText}.training-panel .th-series-training,.training-panel .th-series-validation{fill:CanvasText;stroke:CanvasText}.training-panel .th-grid-line,.training-panel .th-selected-epoch{stroke:CanvasText}}

.training-panel .th-confusion-matrix{display:block;width:100%;max-width:700px;height:auto;fill:none;stroke:none;margin:20px 0;color:var(--theme-ink)}
