/* Scoped to prevention: existing semantic tokens provide both themes. No background changes. */
.prevention-workbench{margin-block:2rem;border:1px solid var(--theme-border);border-radius:var(--radius);background:var(--theme-surface);color:var(--theme-text);padding:clamp(1rem,3vw,2.5rem);min-width:0}
.prevention-workbench p{max-width:78ch;line-height:1.65}
.prevention-intro{border-bottom:1px solid var(--theme-border);padding-bottom:1.25rem;margin-bottom:1.5rem}
.prevention-intro h2{font-size:clamp(1.5rem,3vw,2.2rem)}
.prevention-options{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0 1.5rem}
.prevention-options button{min-height:44px;padding:.65rem .9rem;border:1px solid var(--theme-border-strong);border-radius:var(--radius);background:var(--theme-surface);color:var(--theme-text);font-size:1rem;line-height:1.3}
.prevention-options button[aria-pressed="true"]{background:var(--theme-accent-soft);color:var(--theme-accent);border-color:var(--theme-accent);box-shadow:inset 0 -3px var(--theme-accent);font-weight:700}
.prevention-evidence,.prevention-panel{padding:clamp(1rem,2.4vw,2rem);border:1px solid var(--theme-border);border-radius:var(--radius);background:var(--theme-raised);min-width:0}
.prevention-evidence{min-height:19rem}.prevention-flow{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:1.5rem 0;color:var(--theme-accent);font-weight:650}
.prevention-flow span:not([aria-hidden]){max-width:12rem;padding:.8rem;border-block:1px solid var(--theme-border-strong)}
.prevention-calculators{margin-top:2rem}.prevention-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:1.1rem;margin:1.5rem 0}
.prevention-fields label{display:block;font-weight:650;font-size:1rem;line-height:1.5}.prevention-fields input:not([type="checkbox"]),.prevention-fields select{display:block;margin-top:.45rem;width:100%;min-height:48px;background:var(--theme-input);color:var(--theme-text);border-color:var(--theme-border-strong)}
.prevention-fields fieldset{min-width:0;border:1px solid var(--theme-border-strong);border-radius:var(--radius);padding:1rem}.prevention-fields fieldset label+label{margin-top:.9rem}.prevention-fields legend{padding:0 .4rem;font-weight:700}
.prevention-fields .prevention-eligibility{grid-column:1/-1;display:flex;align-items:flex-start;gap:.7rem;font-weight:400}.prevention-eligibility input{width:20px;height:20px;flex:none;margin-top:.2rem}
.prevention-actions{display:flex;flex-wrap:wrap;gap:.8rem}.prevention-actions button{min-height:44px}.prevention-error{color:var(--theme-danger);margin-top:1rem;font-weight:650}
.prevention-empty{padding:1rem;border:1px dashed var(--theme-border-strong);border-radius:var(--radius);color:var(--theme-muted)}
.prevention-figure{margin:1.2rem 0;max-width:720px}.prevention-figure figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem}.prevention-figure figcaption strong{color:var(--theme-accent);font-variant-numeric:tabular-nums}
.prevention-figure svg,.prevention-interval{width:100%;max-width:720px;height:auto;display:block;overflow:visible}.prevention-workbench svg text{font-size:13px;fill:var(--theme-text);font-family:inherit}.prevention-track{fill:var(--theme-border)}.prevention-fill,.prevention-dot{fill:var(--theme-accent)}
.prevention-mark{stroke:var(--theme-text);stroke-width:2}.prevention-axis{stroke:var(--theme-border-strong);stroke-width:2}.prevention-reference{stroke:var(--theme-muted);stroke-width:1.5;stroke-dasharray:4 4}.prevention-ci{stroke:var(--theme-accent);stroke-width:4;fill:none}
.prevention-methods{margin-top:1.5rem;border-top:1px solid var(--theme-border);padding-top:1rem}.prevention-methods summary{min-height:44px;font-weight:650}.prevention-sources,.prevention-reading-note,.prevention-privacy{font-size:.9rem;color:var(--theme-muted);margin-top:1rem!important}.prevention-sources span:last-child{display:block;margin-top:.5rem}.prevention-launch{padding-top:1.25rem;border-top:1px solid var(--theme-border)}
@media(max-width:560px){.prevention-flow{flex-direction:column;align-items:stretch}.prevention-flow span:not([aria-hidden]){max-width:none}.prevention-flow [aria-hidden]{display:none}.prevention-options button{flex:1 1 42%}.prevention-evidence{min-height:0}.prevention-actions button{flex:1 1 auto}}
@media(forced-colors:active){.prevention-fill,.prevention-dot{fill:Highlight}.prevention-ci,.prevention-mark{stroke:CanvasText}.prevention-options button[aria-pressed="true"]{border:3px solid Highlight}}
@media print{.prevention-workbench{break-inside:auto}.prevention-options,.prevention-actions,.prevention-fields{display:none}.prevention-workbench details{display:block}}
