.dose-tool .fields{align-items:end}
.dose-tool .fields.pair{grid-template-columns:repeat(2,minmax(0,1fr));max-width:30rem}
.dose-tool fieldset .fields+.fields{margin-top:.8rem}
.dose-tool #custom-fields .text-link{min-height:44px}
.dose-tool .dose-fold{max-width:46rem;margin:.8rem 0 0}
.dose-tool .dose-fold summary{width:fit-content;min-height:44px;display:flex;align-items:center;color:var(--accent);font-weight:650;cursor:pointer}
.dose-tool .dose-fold summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.dose-tool .dose-fold>p,.dose-tool .dose-fold>ul{max-width:64ch;margin:.4rem 0}
.dose-tool .dose-fold li+li{margin-top:.35rem}
.dose-tool #result{border-top:2px solid var(--muted);padding:1.6rem 0}
.dose-tool #result h2{font-size:1.5rem}
.dose-tool .dose-bar{max-width:46rem;margin:.2rem 0 1rem}
.dose-tool .dose-bar svg{display:block;width:100%;height:20px}
.dose-tool .dose-bar figcaption{margin-top:.35rem;color:var(--muted);font-size:14px}
.dose-tool #result .status{margin-top:.6rem;max-width:64ch}
.dose-tool .dose-alert{max-width:64ch;margin:.6rem 0;font-weight:650;border-inline-start:3px solid var(--accent);padding-inline-start:.7rem}
.dose-tool .dose-steps{margin-top:1.2rem}
/* Phones: no header word or value may split. The shared docs rule lets long words break at any letter, so the table
   resets that, and a rare too-wide table scrolls inside its own box instead of widening the page. */
.dose-tool .dose-steps .steps-table{max-width:40rem;margin-top:.6rem;overflow-x:auto}
.dose-tool .dose-steps table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;overflow-wrap:normal;word-break:normal}
.dose-tool .dose-steps :is(th,td){padding:.5rem .4rem;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap}
.dose-tool .dose-steps thead th{background:var(--hover)}
@media(max-width:600px){.dose-tool .fields{grid-template-columns:minmax(0,1fr)}.dose-tool .fields.pair{grid-template-columns:repeat(2,minmax(0,1fr))}}
