/* Från → Till: select current treatments, then read the target beside them. */
.op-mode-switch{display:flex;gap:4px;flex-wrap:wrap;width:fit-content;background:var(--chip);border-radius:9px;padding:4px;margin:0 0 24px}.op-mode-switch button{border:0;border-radius:6px;background:transparent;color:var(--muted);font:500 12px/1.5 Geist,Arial,sans-serif;min-height:42px;padding:10px 15px;cursor:pointer}.op-mode-switch button.selected{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #0f172a0c}.op-mode-switch button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.op-model-label{font-size:11px;color:var(--muted);white-space:nowrap}.op-combination .op-heading{margin-bottom:12px}.op-combination .op-panel-heading{margin-bottom:12px}.op-row-count{margin-left:auto;white-space:nowrap}.op-combination .op-input-note{font-size:11px;line-height:1.65;color:var(--muted);margin:10px 0 16px}.op-treatment{position:relative;min-width:0;margin:20px 0 0;padding:20px 0 4px;border:0;border-top:1px solid var(--line)}.op-treatment legend{padding:0 10px 0 0;font-size:11px;font-weight:650;color:var(--brand)}.op-treatment .op-control{margin:0 0 14px}.op-treatment .op-control>label{font-size:11px;margin-bottom:6px}.op-treatment .select-trigger{min-height:46px;font-size:12px}.op-treatment .op-remove{position:absolute;right:0;top:-27px;border:0;background:var(--surface);color:var(--muted);min-height:40px;padding:6px 0 6px 10px;font:500 11px Geist,Arial,sans-serif;cursor:pointer}.op-remove[hidden]{display:none}.op-dose-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.op-dose-fields:has(.op-count-field:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.op-combination input[type=text]{width:100%;min-width:0;height:48px;padding:11px 13px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font:550 16px/1.4 Geist,Arial,sans-serif;font-variant-numeric:tabular-nums}.op-combination input[type=text]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.op-number-wrap{position:relative}.op-number-wrap input[type=text]{padding-right:92px}.op-input-unit{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--muted);pointer-events:none}.op-combination .op-patch-help{margin:-3px 0 12px}.opioid-workspace .op-add{width:100%;min-height:45px;margin:12px 0 0;background:var(--bg);border:1px dashed var(--line);color:var(--brand);font-size:12px}.op-add:disabled{opacity:.6;cursor:default}.op-total{margin-top:21px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.op-total>span{display:block;font-size:11px;color:var(--muted);line-height:1.6}.op-total>strong{display:block;font-size:20px;font-weight:650;color:var(--brand);margin-top:4px;font-variant-numeric:tabular-nums}.op-contributions{list-style:none;margin:0;padding:0}.op-contributions li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:11px}.op-contributions li>span{min-width:0}.op-contributions li strong{font-size:11px;font-weight:550;line-height:1.6}.op-contributions li small{display:block;font-size:11px;color:var(--muted);line-height:1.65;margin-top:3px}.op-contributions li b{font-size:12px;font-weight:600;white-space:nowrap;line-height:1.6;font-variant-numeric:tabular-nums}.op-result-card .op-clinical-note{border-left:2px solid var(--brand);padding-left:10px;margin-top:15px}.op-table-wrap .op-factor-table{min-width:540px}.op-factor-table caption{text-align:left;font-weight:550;padding:0 0 10px}.op-factor-table tbody th{text-align:left;font-weight:500}.dark .op-total>strong{color:#BDE3F1}@media(max-width:520px){.op-mode-switch{width:100%;gap:2px}.op-mode-switch button{flex:1;font-size:11px;padding:9px 10px}.op-model-label{display:block;margin-top:10px}.op-combination .op-heading{display:block}.op-combination .op-panel{padding:18px}.op-contributions li{gap:8px}.op-number-wrap input[type=text]{padding-right:83px}}@media print{.op-mode-switch,.op-add,.op-remove{display:none!important}}
.main:has(#opioid-root)>.breadcrumb{margin:0 0 16px}.opioid-workspace{width:100%;margin:0}.op-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.op-heading .page-heading{margin:0}.op-heading h1{font-size:27px;line-height:1.25;letter-spacing:-.8px;margin:0}.op-heading .page-heading p{font-size:12px;line-height:1.6;color:var(--muted);margin:5px 0 0}.op-source-field{width:255px;flex-shrink:0}.op-source-field>label{display:block;font-size:10px;font-weight:500;color:var(--muted);margin:0 0 5px}.op-source-field select{width:100%}.op-source-field .select-trigger{font-size:12px;min-height:44px;background:var(--surface);border-color:transparent;border-radius:8px;box-shadow:0 1px 4px #0f172a07}
.opioid-workspace .op-population{display:flex;align-items:center;gap:12px;max-width:none;border:0;background:#EFF6FB;border-radius:10px;margin:0 0 20px;padding:14px 18px;cursor:pointer;color:var(--ink)}.op-population>svg{width:21px;height:21px;flex-shrink:0;color:#38758C}.opioid-workspace .op-population input{height:20px;width:20px;flex-shrink:0;margin:0;accent-color:var(--brand)}.op-population>span{min-width:0}.op-population strong{display:block;font-size:12px;line-height:1.6;font-weight:550}.op-population small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:1px}
.opioid-workspace .op-flow{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:start;gap:14px}.op-panel{min-width:0;border:0;border-radius:12px;background:var(--surface);padding:22px;box-shadow:0 4px 6px -1px #0f172a08,0 2px 4px -2px #0f172a08}.op-panel-heading{display:flex;align-items:baseline;gap:9px;margin-bottom:21px}.op-panel-heading h2{font-size:12px;font-weight:700;line-height:1.5;letter-spacing:.9px;text-transform:uppercase;color:var(--brand);margin:0}.op-panel-heading>span{font-size:11px;line-height:1.5;color:var(--muted)}.op-control>label{display:block;font-size:12px;font-weight:550;line-height:1.5;margin:0 0 8px}.op-control>select{width:100%}.op-control .select-trigger{min-height:52px;border-color:var(--line);border-radius:8px;background:var(--bg);font-size:13px}.select-control-opioid .select-trigger{display:flex;align-items:center;gap:10px}.select-value-title{flex:1;min-width:0;font-weight:550}.select-route-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;white-space:nowrap;background:var(--chip);color:var(--chip-ink);border-radius:5px;padding:3px 7px;font-size:10px;font-weight:550;line-height:1.5}
.op-flow-arrow{display:flex;align-items:center;justify-content:center;padding-top:126px;color:#94A3B8}.op-flow-arrow svg{width:26px;height:26px;flex-shrink:0}.opioid-workspace .op-dose{margin-top:23px;padding:0;border:0}.op-dose h3{font-size:12px;line-height:1.5;font-weight:550;margin:0}.opioid-workspace .op-dose>p{font-size:11px;line-height:1.6;color:var(--muted);margin:5px 0 12px}.opioid-workspace .op-dose-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.opioid-workspace .op-dose-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:74px;margin:0;padding:12px 5px;border:0;border-radius:8px;background:var(--bg);box-shadow:0 1px 3px #0f172a05;color:var(--ink);transition:background .16s,color .16s,box-shadow .16s,transform .16s}.op-dose-options button>strong{font:700 20px/1.2 Geist,Arial,sans-serif;letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.opioid-workspace .op-dose-options button>span{font-size:11px;font-weight:400;line-height:1.4;color:var(--muted)}.opioid-workspace .op-dose-options button:hover{background:#EAF2F6;transform:translateY(-1px);box-shadow:0 4px 8px #0f172a0b}.opioid-workspace .op-dose-options button.selected,.opioid-workspace .op-dose-options button.selected:hover{background:var(--brand);color:#FFFFFF;box-shadow:0 3px 8px #0f4c5c20}.opioid-workspace .op-dose-options button.selected>span{color:#E0F2FE}.op-dose-options .op-dose-empty{grid-column:1/-1;padding:18px 0 8px;font-size:12px;line-height:1.7;color:var(--muted);margin:0}.opioid-workspace button:focus-visible,.op-guidance>summary:focus-visible,.op-full-table>summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.op-result-card{margin-top:22px;padding:22px;border:0;border-radius:10px;background:#EAF3F7;color:var(--ink)}.op-result-eyebrow{display:block;font-size:10px;font-weight:550;letter-spacing:.5px;text-transform:uppercase;color:#507083;margin-bottom:13px}.op-result-card h3{font-size:16px;line-height:1.45;letter-spacing:-.2px;margin:0 0 7px}.op-result-card p{font-size:12px;line-height:1.65;margin:7px 0 0;color:var(--muted)}.op-value-line{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.op-result-card .op-big{display:block;font:700 clamp(36px,3.5vw,48px)/1.1 Geist,Arial,sans-serif;color:var(--brand);letter-spacing:-1.7px;margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.op-value-unit{font-size:13px;line-height:1.5;color:#507083}.op-result-card .op-target-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:600;color:var(--ink);margin-top:13px}.op-route-label{font-size:11px;font-weight:400;color:var(--muted)}.op-result-card .op-result-meta{font-size:11px;margin-top:6px}.op-result-card .op-result-detail{font-size:11px}.op-result-card .op-placeholder{font-size:35px;color:#93A9B4;letter-spacing:0;margin-bottom:13px}.op-result-card .op-copy{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;margin:20px 0 0;padding:11px 15px;border:0;border-radius:7px;background:var(--brand);color:#FFFFFF;font-size:12px;font-weight:550;box-shadow:none;transition:background .15s,color .15s}.op-result-card .op-copy[hidden]{display:none!important}.op-copy svg{width:17px;height:17px;flex-shrink:0}.op-result-card .op-copy:hover{background:#126176}.op-result-card .op-copy:disabled{background:#DCE8EE;color:#78909F;opacity:1;cursor:default}.op-result-card .op-copy.is-copied{background:#E0EEE7;color:#20734E}.op-result-card .op-confirm{min-height:46px;border:0;border-radius:7px;font-size:12px;margin-top:14px;background:var(--brand);color:#FFFFFF}.op-result-card.is-guide{background:#F8F1E4}.op-result-card .op-product-link{display:inline-flex;min-height:44px;margin:14px 0 4px;border-color:transparent;background:#FFFFFF;font-size:12px}.op-result-card.is-waiting .op-copy{margin-top:16px}
.op-brief-note{font-size:11px;line-height:1.7;color:var(--muted);margin:15px 0 0;max-width:70ch}.op-reference-area{margin-top:19px}.op-guidance,.opioid-workspace .op-full-table{border:0;margin:0;padding:0;font-size:12px;line-height:1.7}.op-guidance>summary,.opioid-workspace .op-full-table>summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;gap:16px;list-style:none;cursor:pointer;font-size:11px;color:var(--muted);font-weight:500}.op-guidance>summary::-webkit-details-marker,.op-full-table>summary::-webkit-details-marker{display:none}.op-guidance>summary:after,.op-full-table>summary:after{content:'+';font-size:17px;font-weight:400}.op-guidance[open]>summary:after,.op-full-table[open]>summary:after{content:'−'}.op-guidance-content{padding:4px 0 12px}.op-guidance-content>p,.op-full-table>p{max-width:70ch;font-size:12px;line-height:1.75;margin:0 0 13px}.op-guidance .source-list{max-width:75ch;margin:0 0 14px}.op-guidance .source-list a{font-size:12px;line-height:1.7}.op-guidance .source-meta{font-size:10px;line-height:1.7;color:var(--muted)}.op-table-wrap{overflow-x:auto;max-width:100%;margin:0 0 14px}.op-table-wrap .reference-table{min-width:850px;margin-top:4px;font-size:11px}
.select-popover-opioid{padding:6px;border:0;border-radius:12px;box-shadow:0 14px 45px #0f172a1c,0 2px 8px #0f172a0d}.select-popover-opioid .select-option{display:flex;align-items:center;gap:12px;min-height:48px;border-radius:7px;padding:10px 12px}.select-popover-opioid .select-option[aria-selected=true]{box-shadow:none;background:var(--chip)}.select-popover-opioid .select-option:hover,.select-popover-opioid .select-option:focus{box-shadow:none;background:var(--hover)}.select-popover-opioid .select-filter{top:-6px;padding:6px 5px 10px}.select-popover-opioid .select-filter input{height:46px;border:1px solid var(--line);border-radius:8px;padding:10px 12px 10px 37px;background:var(--bg);outline:0;box-shadow:none;font-size:14px}.select-popover-opioid .select-filter input:focus{border-color:#BADEED;box-shadow:0 0 0 2px #0284c70a}.select-filter-icon{position:absolute;left:17px;top:20px;width:17px;height:17px;color:#7B8D9D;pointer-events:none}
.dark .op-population{background:#1B303D}.dark .op-population>svg{color:#93BCCF}.dark .op-result-card{background:#1B3541}.dark .op-result-eyebrow,.dark .op-value-unit{color:#A7C1CF}.dark .op-result-card .op-big{color:#BDE3F1}.dark .op-result-card .op-copy{background:#235D72}.dark .op-result-card .op-copy:disabled{background:#294550;color:#829DAA}.dark .op-result-card .op-copy.is-copied{background:#234336;color:#A9DEBB}.dark .op-result-card.is-guide{background:#3A3020}.dark .op-result-card .op-product-link{background:#2D3941}.dark .op-dose-options button:hover{background:#293F4A}.dark .op-dose-options button.selected,.dark .op-dose-options button.selected:hover{background:#235D72}.dark .op-dose-options button.selected>span{color:#D5EAF3}
@media(max-width:1000px){.opioid-workspace .op-flow{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:10px}.op-panel{padding:19px}.op-result-card{padding:19px}.op-panel-heading{gap:7px;flex-wrap:wrap}.op-dose-options button>strong{font-size:19px}}
@media(max-width:760px){.op-heading{align-items:flex-start;gap:16px;margin-bottom:17px}.op-heading h1{font-size:24px}.op-source-field{width:220px}.opioid-workspace .op-flow{grid-template-columns:minmax(0,1fr);gap:14px}.op-flow-arrow{display:none}.op-panel{padding:20px}.op-panel-heading{margin-bottom:17px}.op-result-card{margin-top:19px}.opioid-workspace .op-population{padding:13px 15px;margin-bottom:16px;gap:10px}.op-dose-options button>strong{font-size:21px}.op-result-card .op-big{font-size:44px}.op-brief-note{margin-top:13px}.op-reference-area{margin-top:14px}.op-dose-options .op-dose-empty{padding-bottom:0}}
@media(max-width:520px){.op-heading{display:block}.op-heading .page-heading p{font-size:11px}.op-source-field{width:100%;margin-top:15px}.op-source-field .select-trigger{min-height:46px}.op-panel{padding:18px}.op-panel-heading{gap:8px}.op-population>svg{display:none}.op-population strong{font-size:11px}.op-population small{font-size:10px}.op-dose-options button>strong{font-size:20px}.op-result-card{padding:19px}.op-result-card .op-big{font-size:42px}.op-guidance>summary,.opioid-workspace .op-full-table>summary{font-size:11px}.select-popover-opioid .select-option{gap:8px;font-size:13px}.select-route-badge{font-size:10px;padding:3px 6px}}
@media(max-width:370px){.opioid-workspace .op-dose-options{grid-template-columns:repeat(3,minmax(0,1fr))}.op-panel{padding:15px}.op-control .select-trigger{font-size:12px}.op-result-card .op-big{font-size:38px}}
@media(prefers-reduced-motion:reduce){.opioid-workspace .op-dose-options button,.op-result-card .op-copy{transition:none}.opioid-workspace .op-dose-options button:hover{transform:none}}
@media print{.op-source-field,.op-population,.op-copy,.op-flow-arrow{display:none!important}.opioid-workspace .op-flow{grid-template-columns:1fr 1fr}.op-panel{box-shadow:none}.op-reference-area{display:none}}
@media(min-width:761px){.op-combination .op-to-panel{position:sticky;top:24px;align-self:start}}

/* Compact opioid workspace. All selectors stay inside the opioid tool. */
#opioid-root .op-mode-switch{margin-bottom:12px;padding:3px}
#opioid-root .op-mode-switch button{min-height:34px;padding:7px 12px;font-size:11px}
.op-compact .op-heading{gap:16px;margin-bottom:8px}
.op-compact .op-heading h1{font-size:26px}
.op-compact .op-heading .page-heading p{margin-top:3px;font-size:11px}
.op-compact .op-source-link{padding:8px 0;border:0;background:none;font:500 10px/1.6 Geist,Arial,sans-serif;color:var(--muted);cursor:pointer;white-space:nowrap}
.op-compact-population{display:flex;align-items:center;gap:8px;min-height:36px;margin:0 0 10px;color:var(--ink)}
.op-compact-population>label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:500;cursor:pointer;margin:0}
.op-compact-population input{height:17px;width:17px;accent-color:var(--brand);margin:0}
.op-compact .op-flow{grid-template-columns:minmax(0,1.25fr) 20px minmax(0,1fr);gap:12px}
.op-compact .op-panel{padding:17px;border-radius:11px}
.op-compact .op-panel-heading{gap:7px;margin-bottom:8px;align-items:center;flex-wrap:nowrap}
.op-compact .op-panel-heading h2{font-size:11px}
.op-compact .op-panel-heading>span{font-size:10px}
.op-compact .op-panel-heading .op-row-count{margin-left:auto;font-size:10px;white-space:nowrap}
.op-compact .op-flow-arrow{padding-top:76px}
.op-compact .op-treatment{margin:0;padding:10px 0 12px;border-top:1px solid var(--line);min-width:0}
.op-compact .op-treatment:last-child{padding-bottom:8px}
.op-compact .op-row-toolbar{display:flex;align-items:center;gap:8px;min-height:29px;margin-bottom:7px}
.op-compact .op-row-title{font-size:10px;font-weight:650;white-space:nowrap;color:var(--muted);margin-right:auto}
.op-compact .op-treatment .op-remove{position:static;min-height:28px;padding:4px 0 4px 6px;background:none;font-size:10px;margin:0;line-height:1.5}
.op-compact .op-treatment .op-remove[hidden]{display:none}
.op-compact .op-treatment-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:10px;align-items:end}
.op-compact .op-control{margin:0;min-width:0}
.op-compact .op-control>label,.op-compact .op-field-heading>label{display:block;font-size:10px;font-weight:550;line-height:1.5;margin:0 0 5px}
.op-compact .op-field-heading{display:flex;align-items:center;gap:4px;height:20px;margin-bottom:0}
.op-compact .op-field-heading>label{margin:0}
.op-compact .op-control .select-trigger{min-height:44px;border-radius:7px;font-size:12px;padding:9px 10px;gap:6px}
.op-compact .select-value-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.op-compact .select-route-badge{font-size:9px;padding:2px 5px}
.op-compact .op-dose-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
.op-compact .op-dose-fields.with-count{grid-template-columns:minmax(0,1.35fr) minmax(0,.8fr)}
.op-compact input[type=text]{height:44px;padding:8px 10px;border-radius:7px;font-size:16px;line-height:1.4}
.op-compact .op-number-wrap input[type=text]{padding-right:67px}
.op-compact .with-count .op-number-wrap input[type=text]{padding-right:49px}
.op-compact .op-input-unit{font-size:9px;right:9px}
.op-compact .op-segment{display:flex;gap:2px;padding:3px;border:0;background:var(--bg);border-radius:7px}
.op-compact .op-segment[hidden]{display:none}
.op-compact .op-segment button{border:0;background:transparent;border-radius:5px;padding:5px 8px;min-height:27px;font:500 10px/1.5 Geist,Arial,sans-serif;color:var(--muted);cursor:pointer;white-space:nowrap}
.op-compact .op-segment button.selected{background:var(--surface);color:var(--brand);box-shadow:0 1px 4px #0f172a13}
.op-compact .op-segment button:disabled{opacity:.45;cursor:default}
.op-compact .op-entry-actions{display:flex;align-items:center;gap:12px;margin-top:5px}
.op-compact .op-add{flex:1;width:auto;margin:0;min-height:38px;font-size:11px;padding:7px 10px;border-radius:7px}
.op-compact .op-reset{min-height:38px;background:none;border:0;color:var(--muted);font:500 10px Geist,Arial,sans-serif;padding:8px 0;cursor:pointer}
.op-compact .op-reduction{margin:12px 0 0}
.op-compact .op-reduction-heading{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:550;margin-bottom:5px}
.op-compact .op-reduction-options button{flex:1;min-height:32px;font-size:11px}
.op-compact .op-reduction-options button.selected{background:var(--brand);color:#fff;box-shadow:none}
.op-compact .op-result-card{padding:16px;margin-top:12px;border-radius:9px}
.op-compact .op-result-eyebrow{font-size:9px;letter-spacing:.55px;margin-bottom:8px;line-height:1.6}
.op-compact .op-result-card .op-big{font-size:42px;line-height:1.05;letter-spacing:-1.4px}
.op-compact .op-value-unit{font-size:11px}
.op-compact .op-result-card .op-target-name{font-size:12px;margin-top:7px;line-height:1.5;gap:6px}
.op-compact .op-result-card .op-route-label{font-size:10px}
.op-compact .op-result-card .op-reduction-equation,.op-compact .op-result-card .op-reduction-hint{font-size:10px;line-height:1.6;margin-top:5px}
.op-compact .op-total{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:10px 0;margin-top:12px}
.op-compact .op-total>span{font-size:10px;line-height:1.6}
.op-compact .op-total>strong{font-size:13px;color:var(--ink);margin:0;white-space:nowrap;font-weight:650}
.op-compact .op-contributions li{padding:8px 0;gap:7px;font-size:10px}
.op-compact .op-contributions li strong{font-size:10px;line-height:1.45}
.op-compact .op-contributions li small{font-size:10px;line-height:1.6;margin-top:2px}
.op-compact .op-contributions li b{font-size:11px;line-height:1.5}
.op-compact .op-clinical-comments{border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:9px 10px;margin-top:12px}
.op-compact .op-clinical-comments>strong{display:block;font-size:10px;font-weight:650;line-height:1.6;color:var(--ink)}
.op-compact .op-result-card .op-clinical-comments>p{font-size:10px;line-height:1.65;margin:3px 0 0;color:var(--muted)}
.op-compact .op-result-card .op-copy{min-height:40px;padding:9px 12px;margin-top:12px;font-size:11px;border-radius:7px}
.op-compact .op-copy svg{height:15px;width:15px}
.op-compact .op-empty-result{padding:8px 0;min-height:64px}
.op-compact .op-empty-result .op-empty-dash{font-size:26px;line-height:1;color:var(--muted)}
.op-compact .op-empty-result p{font-size:11px;line-height:1.65;margin-top:8px}
.op-compact .op-empty-result h3{font-size:13px}
.op-compact .op-result-card .op-confirm{margin-top:8px;min-height:38px;padding:8px 12px;font-size:11px}
.op-compact .op-reference-area{margin-top:8px}
.op-compact .op-guidance>summary{min-height:36px;font-size:10px}
.op-compact .op-help{position:relative;display:inline-flex;align-items:center;flex-shrink:0;vertical-align:middle;font-weight:400;letter-spacing:normal;text-transform:none}
.op-compact .op-help-trigger{position:relative;display:inline-flex;align-items:center;justify-content:center;height:24px;width:24px;padding:0;border:0;background:transparent;color:var(--muted);font:600 11px/1 Geist,Arial,sans-serif;cursor:help;border-radius:50%}
/* The help button has its own SVG; an absolute pseudo-element can outline the whole sticky panel before compact styles load. */
.op-compact .op-help-trigger:before{display:none;content:none}
.op-compact .op-help-pop{display:none;position:fixed;z-index:1000;width:min(304px,calc(100vw - 24px));padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);box-shadow:0 8px 30px #0f172a20;font:400 11px/1.7 Geist,Arial,sans-serif;max-height:calc(100vh - 32px);overflow:auto;white-space:normal;text-align:left}
.op-compact .op-help:hover>.op-help-pop,.op-compact .op-help:focus-within>.op-help-pop,.op-compact .op-help.is-open>.op-help-pop{display:block}
.op-compact .op-help.is-dismissed>.op-help-pop{display:none}
.op-compact [hidden]{display:none!important}
.dark .op-compact .op-segment button.selected{color:var(--ink)}
.dark .op-compact .op-reduction-options button.selected{background:#235D72;color:#fff}
@media(max-width:1000px) and (min-width:761px){.op-compact .op-treatment-grid{grid-template-columns:1fr}.op-compact .op-dose-fields.with-count{grid-template-columns:1fr 1fr}.op-compact .op-number-wrap input[type=text]{padding-right:74px}}
@media(max-width:760px){.op-compact .op-flow{grid-template-columns:1fr;gap:12px}.op-compact .op-heading{display:flex;align-items:center}.op-compact .op-heading h1{font-size:24px}.op-compact .op-to-panel{position:static}.op-compact .op-panel{padding:16px}.op-compact .op-flow-arrow{display:none}}
@media(max-width:520px){.op-compact .op-treatment-grid:has(.with-count){grid-template-columns:1fr}.op-compact .op-dose-fields.with-count{grid-template-columns:1fr 1fr}.op-compact .op-treatment-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px}.op-compact .op-source-link{font-size:9px}.op-compact .op-panel-heading>span{font-size:10px}.op-compact .op-heading .page-heading p{font-size:10px}.op-compact .op-number-wrap input[type=text]{padding-left:9px;padding-right:57px}.op-compact .op-control .select-trigger{font-size:11px}.op-compact .select-route-badge{display:none}.op-compact .op-help-trigger{height:28px;width:26px}.op-compact .op-field-heading{height:23px}.op-compact .op-row-toolbar{gap:5px}.op-compact .op-segment button{min-height:30px;padding:5px 7px}.op-compact .op-reduction-options button{min-height:38px;font-size:11px}.op-compact .op-result-card .op-big{font-size:40px}.op-compact .op-result-card .op-copy{min-height:44px}.op-compact .op-total>span{max-width:60%}}
@media print{.op-compact .op-help,.op-compact .op-reset,.op-compact .op-segment,.op-compact .op-source-link{display:none!important}.op-compact .op-flow{grid-template-columns:1fr 1fr}.op-compact .op-to-panel{position:static}.op-compact .op-clinical-comments{break-inside:avoid}}
/* Keep copying within reach even when three audit rows are visible. */
.op-compact .op-result-card{position:relative}
.op-compact .op-result-card.has-result .op-result-eyebrow{min-height:32px;padding-right:135px;margin-bottom:8px}
.op-compact .op-result-card .op-copy{position:absolute;right:12px;top:12px;width:132px;min-height:34px;margin:0;padding:7px 9px;font-size:10px;gap:5px}
@media(max-width:520px){.op-compact .op-result-card.has-result .op-result-eyebrow{min-height:40px;padding-right:132px}.op-compact .op-result-card .op-copy{width:128px;min-height:40px;font-size:10px}}
