.probabilities-lab-page .pr-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.probabilities-lab-page .pr-controls label,.probabilities-lab-page .pr-simulation label { display:flex; flex-direction:column; gap:7px; color:#173546; font-weight:650; font-size:.9rem; }
.probabilities-lab-page .pr-controls input[type=number],.probabilities-lab-page .pr-simulation input,.probabilities-lab-page .obs-answer-grid input,.probabilities-lab-page .obs-dialog input[type=text] { width:100%; min-width:0; min-height:44px; border:1px solid #718b90; border-radius:8px; background:#fff; color:#173546; padding:9px 11px; font:inherit; }
.probabilities-lab-page input[type=range] { width:100%; min-height:44px; accent-color:#006963; }
.probabilities-lab-page input[aria-invalid=true] { border:2px solid #8b332b; }
.pr-families,.pr-lens { display:flex; flex-wrap:wrap; gap:9px; margin:14px 0; }
.pr-families button,.pr-lens button { min-height:44px; border:1px solid #718b90; border-radius:8px; padding:9px 12px; color:#173546; background:#fff; font:inherit; cursor:pointer; }
.pr-families button[aria-pressed=true],.pr-lens button[aria-pressed=true] { color:#fff; background:#006963; border-color:#006963; }
.pr-note { font-size:.9rem; line-height:1.7; color:#4e6571; margin:12px 0; }
.pr-chart { display:block; width:100%; height:auto; max-height:410px; }
.pr-chart text { fill:#173546; font:14px system-ui,sans-serif; }
.pr-chart .pr-branch { fill:none; stroke:#718b90; stroke-width:2; }
.pr-chart .pr-node { fill:#fff; stroke:#006963; stroke-width:2; }
.pr-chart .pr-weight { paint-order:stroke; stroke:#fff; stroke-width:7px; stroke-linejoin:round; }
.pr-chart .pr-current { fill:#006963; }
.pr-chart .pr-compared { fill:none; stroke:#8c4936; stroke-width:3; stroke-dasharray:5 3; }
.pr-chart .pr-observed { fill:none; stroke:#8c4936; stroke-width:3; }
.pr-chart .pr-axis { stroke:#173546; stroke-width:1.5; }
.pr-chart .pr-grid { stroke:#d4dedd; stroke-width:1; }
.pr-legend { display:flex; flex-wrap:wrap; gap:12px; font-size:.88rem; color:#173546; margin:10px 0; }
.pr-legend span::before { content:""; display:inline-block; width:15px; height:13px; background:#006963; vertical-align:middle; margin-right:6px; }
.pr-legend .pr-legend-other::before { background:none; border:2px dashed #8c4936; }
.pr-legend .pr-legend-observed::before { background:none; border:2px solid #8c4936; }
.pr-calculations { display:grid; gap:16px; grid-template-columns:repeat(2,minmax(0,1fr)); margin:16px 0; }
.pr-calculations .obs-card { margin:0; min-width:0; }
.pr-calculations math { font-size:1.1em; }
.pr-calculations math[display=block] { display:block; max-width:100%; overflow-x:auto; padding:12px 0; }
.pr-table { overflow-x:auto; max-width:100%; }
.pr-table table { width:100%; border-collapse:collapse; font-size:.9rem; }
.pr-table caption { text-align:left; color:#173546; font-weight:650; padding-bottom:12px; }
.pr-table th,.pr-table td { text-align:left; border-bottom:1px solid #d4dedd; padding:10px 8px; overflow-wrap:anywhere; }
.pr-table th { color:#173546; }
.pr-table .pr-selected { background:#e4efea; font-weight:650; }
.pr-simulation { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:12px 0; }
.pr-simulation-actions { margin-top:12px; }
.pr-sim-result { border-left:3px solid #8c4936; padding-left:14px; }
.probabilities-lab-page .obs-why { display:grid; gap:9px; }
.probabilities-lab-page .obs-why label { min-height:44px; display:flex; align-items:flex-start; gap:10px; border:1px solid #718b90; padding:12px; border-radius:8px; background:#fff; color:#173546; }
.probabilities-lab-page .obs-why input { flex:0 0 auto; margin-top:5px; accent-color:#006963; }
.probabilities-lab-page fieldset { border:0; min-width:0; padding:0; margin:0; }
.probabilities-lab-page legend { font-weight:650; padding:0 0 12px; }
.probabilities-lab-page :focus-visible { outline:3px solid #006963; outline-offset:3px; }
@media(max-width:700px) { .pr-controls,.pr-calculations,.pr-simulation { grid-template-columns:1fr; } .pr-chart text { font-size:15px; } }
@media(prefers-reduced-motion:reduce) { .probabilities-lab-page * { scroll-behavior:auto!important; transition:none!important; } }
@media(forced-colors:active) { .pr-chart text { fill:CanvasText; stroke:none; } .pr-chart .pr-branch,.pr-chart .pr-node,.pr-chart .pr-axis,.pr-chart .pr-grid { stroke:CanvasText; } .pr-chart .pr-node { fill:Canvas; } .pr-chart .pr-current { fill:CanvasText; } .pr-chart .pr-compared,.pr-chart .pr-observed { stroke:LinkText; } .pr-table .pr-selected { outline:2px solid Highlight; } .pr-families button[aria-pressed=true],.pr-lens button[aria-pressed=true] { outline:2px solid Highlight; } }
