/* One dense workspace, with room where fingers and entered values need it. */
body{--bg:#F8FAFC;--surface:#FFFFFF;--ink:#0F172A;--muted:#475569;--line:#E2E8F0;--green:#0F4C5C;--brand:#0F4C5C;--accent:#0284C7;--chip:#E0F2FE;--chip-ink:#0369A1;--soft:#E0F2FE;--hover:#F1F5F9;--shadow:none;color-scheme:light}
body.dark{--bg:#091522;--surface:#112235;--ink:#E2E8F0;--muted:#A9BBCC;--line:#2A4055;--green:#89CFDF;--brand:#89CFDF;--accent:#38BDF8;--chip:#123A50;--chip-ink:#7DD3FC;--soft:#123A50;--hover:#173047;color-scheme:dark}
.sidebar{width:218px;padding:23px 12px 16px}
.brand{padding:0 12px 20px}
.brand-text{font-size:21px;letter-spacing:-.8px}
.brand-text span{font-size:8px;letter-spacing:1.2px;margin-top:6px}
.nav-label{padding:13px 12px 6px;font-size:9px;letter-spacing:1.1px}
.nav-item{min-height:44px;padding:10px 12px;font-size:12px;border-radius:5px}
.nav-count{font-size:11px}
.nav-divider{margin:10px 12px 0}
.app-frame{margin-left:218px}
.topbar{height:60px;min-height:60px;padding:0 30px;gap:12px}
.topbar-left{font-size:12px}
.topbar-tools{gap:6px}
.top-link{font-size:11px;margin-right:10px}
.icon-button,.heading-actions .icon-button{width:auto;height:auto;min-height:44px;min-width:48px;padding:9px 12px;font-size:12px;border-radius:5px;white-space:nowrap}
.menu-button{display:none}
.main{max-width:1510px;padding:24px 30px 36px}
.search-box{height:54px;border-radius:7px;padding:0 16px;gap:12px;box-shadow:none}
.search-box input{font-size:16px}
.clear-search{min-height:44px;padding:8px;font-size:12px}
.quick-access{margin:8px 0 0;gap:6px;padding:0;flex-wrap:wrap;overflow:visible}
.quick-access>span{display:block;font-size:11px;margin-right:4px}
.quick-access a,.quick-access a:last-child{display:flex;min-height:44px;padding:9px 13px;font-size:12px;white-space:nowrap;border-radius:5px}
.browse-toolbar{margin:10px 0 4px;display:block}
.filters{gap:3px}
.filter{min-height:44px;padding:11px 12px;font-size:12px;border-radius:5px}
.filter.active{border-color:var(--line);box-shadow:none;font-weight:600}
.section-title{margin:22px 0 8px;gap:12px}
.section-title h2{font-size:14px;letter-spacing:0}
.section-title p{font-size:11px}
#catalog-content>section:first-child .section-title{margin-top:12px}
.tool-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;border-top:1px solid var(--line)}
.tool-row{display:flex;align-items:center;gap:8px;min-width:0;border-bottom:1px solid var(--line);position:relative;transition:background .15s}
.tool-row:hover,.tool-row:focus-within{background:var(--hover)}
.tool-link{display:flex;flex:1;min-width:0;flex-direction:column;justify-content:center;gap:4px;min-height:80px;padding:13px 8px}
.tool-link h3{font-size:16px;font-weight:600;letter-spacing:-.25px}
.tool-link p{font-size:12px;color:var(--muted);line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.save-tool,.row-action{display:flex;align-items:center;justify-content:center;min-height:46px;min-width:60px;flex-shrink:0;padding:10px 9px;font-size:11px;border:1px solid transparent;border-radius:5px;color:var(--muted);margin-right:2px}
.save-tool:hover,.save-tool:focus-visible,.row-action:hover{border-color:var(--line);background:var(--surface);color:var(--green)}
.save-tool.selected{color:var(--green);background:var(--soft);font-weight:600}
.st-banner{margin:22px 0 0;padding:16px 18px;border-radius:7px;gap:16px;flex-wrap:nowrap}
.st-banner h2{font-size:14px}
.st-banner p{font-size:12px;line-height:1.6}
.st-banner>div{max-width:none!important}
.st-banner .btn{margin-left:auto;font-size:12px}
.btn{min-height:48px;font-size:13px;padding:11px 15px;border-radius:5px}
.home-notice{margin-top:18px;font-size:11px}
.notice{font-size:11px;line-height:1.65}
.footer{margin:0 30px;padding:16px 0 20px;font-size:11px}
.footer a{display:inline-flex;align-items:center;min-height:44px}
.breadcrumb{margin-bottom:12px;gap:8px;flex-wrap:wrap;font-size:11px;line-height:1.5}
.breadcrumb a{padding:5px 0}
.page-heading,.compact-heading{margin-bottom:16px;max-width:900px}
.page-heading h1,.compact-heading h1{font-size:30px;letter-spacing:-.9px;line-height:1.2;margin:0 0 8px;font-weight:600}
.page-heading>p{font-size:13px;line-height:1.65;max-width:720px}
.heading-row{gap:20px}
.heading-actions{padding-top:0;gap:6px}
.calc-layout{grid-template-columns:minmax(0,1fr) 310px;gap:20px}
.form-panel{padding:0 18px;border-radius:7px}
.field{padding:14px 0}
.field-label{gap:8px;font-size:14px;line-height:1.5;flex-wrap:nowrap}
.field-number{min-width:20px;font-size:10px}
.field-help{margin:5px 0 0 28px;font-size:12px;line-height:1.65}
.choices{gap:6px;margin:9px 0 0 28px}
.choice span{min-height:50px;padding:11px 14px;font-size:14px;border-radius:5px;line-height:1.45}
.choice input:checked+span{border-width:2px;padding:10px 13px;font-weight:600}
.choice input:checked+span:before{content:none}
.point{font-size:11px}
.number-field{margin:9px 0 0 28px;gap:12px}
.number-field input{height:52px;font-size:18px;max-width:300px;padding:0 14px;border-radius:5px}
.number-field span{font-size:13px;white-space:normal}
.field-error{font-size:12px;margin:6px 0 0 28px}
.compact-choice{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,240px);column-gap:16px;align-items:center}
.compact-choice>.field-label{grid-column:1;grid-row:1}
.compact-choice>.field-help{grid-column:1;grid-row:2}
.compact-choice>.choices{grid-column:2;grid-row:1 / span 2;margin:0}
.calc-aside{top:18px}
.result-panel{border-radius:7px}
.result-top{padding:16px 18px}
.result-label{font-size:10px;letter-spacing:.7px;gap:10px}
.result-number{margin-top:10px}
.result-number strong{font-size:52px}
.result-number span{font-size:12px}
.result-bottom{padding:16px 18px}
.result-bottom h2{font-size:16px;margin-bottom:7px}
.result-bottom p{font-size:12px;line-height:1.7}
.progress-track{margin-top:12px}
.result-actions{margin-top:12px;gap:7px}
.result-actions .btn{font-size:13px;min-height:46px;padding:10px 12px}
.calc-note{padding:12px 0;font-size:12px;line-height:1.7}
.calc-note strong{font-size:12px}
.related{margin-top:10px}
.related a{min-height:44px;padding:10px 0;font-size:12px;border-bottom:1px solid var(--line)}
.intro-box{font-size:12px;line-height:1.7;padding:13px 15px;margin-bottom:12px;border-radius:6px}
.source-panel{margin-top:18px;padding:16px 0}
.source-panel h2{font-size:13px;margin-bottom:10px}
.source-list{gap:8px}
.source-list a{font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.source-meta{font-size:10px;margin-top:12px}
.source-note{margin-top:12px}
.source-note summary{min-height:44px;display:flex;align-items:center;font-size:12px}
.mobile-result{display:none}
.prose article{padding:18px 0}
.prose article p{line-height:1.8}
.local-pill{font-size:11px;margin-bottom:4px;padding:5px 8px}
.empty-state{padding:32px 16px;border-radius:7px}
.rx-tabs{margin-bottom:14px;gap:8px}
.rx-tabs button{min-height:50px;padding:12px 14px;font-size:14px;text-align:left}
.rx-layout{gap:20px;grid-template-columns:minmax(0,1fr) 320px}
.rx-form{padding:0 18px 16px;border-radius:7px}
.rx-field{padding:13px 0}
.rx-field label{font-size:13px;margin-bottom:7px}
.rx-field input,.rx-field select{height:52px;font-size:18px;border-radius:5px}
.rx-field input[type=date]{font-size:16px}
.rx-field p{font-size:12px;margin-top:6px;line-height:1.6}
.rx-input-row>select{width:115px;font-size:13px}
.rx-input-row>span{font-size:12px}
.rx-fields-grid{gap:14px}
.rx-quick{margin-top:7px;gap:6px}
.rx-quick button{min-height:44px;min-width:44px;padding:9px 11px;font-size:12px;border-radius:5px}
.rx-field p.rx-parsed{margin-top:6px;font-size:12px}
.rx-dates summary{min-height:48px;padding:13px 0 5px;font-size:13px}
.rx-dates summary span{font-size:11px}
.rx-bottom{padding-top:12px}
.rx-bottom>span{font-size:11px}
.rx-aside{top:18px}
.rx-answer{padding:18px;border-radius:7px}
.rx-result-kicker{font-size:10px;letter-spacing:.7px}
.rx-answer>h2{font-size:20px;margin-top:12px}
.rx-answer>p:not(.rx-result-kicker){font-size:12px;line-height:1.7;margin-top:8px}
.rx-big{font-size:48px;margin-top:10px}
.rx-stats{gap:12px 8px;padding-top:12px;margin-top:14px}
.rx-stats span,.rx-date-answer>span,.rx-refill>span{font-size:11px}
.rx-stats strong{font-size:13px}
.rx-date-answer{margin-top:16px;padding:12px}
.rx-date-answer small,.rx-refill small{font-size:11px;line-height:1.65}
.rx-refill{margin-top:12px}
.rx-answer p.rx-advisory{font-size:11px;padding-top:12px}
.rx-assumptions{font-size:11px;padding:12px 0;line-height:1.7}
.rx-copy{min-height:48px;margin-top:8px}
.op-source{gap:10px;margin-bottom:12px;font-size:12px}
.op-source select,.op-columns select{min-height:50px;font-size:15px;border-radius:5px}
.op-source a{font-size:12px;min-height:44px;display:flex;align-items:center}
.op-population{padding:12px 14px;margin-bottom:14px;font-size:12px;border-radius:6px}
.op-layout{grid-template-columns:minmax(0,1fr) 310px;gap:20px}
.op-inputs{padding:18px;border-radius:7px}
.op-columns{gap:12px}
.op-columns label{font-size:12px;margin-bottom:7px}
.op-columns select{font-size:13px}
.op-dose{margin-top:16px;padding-top:14px}
.op-dose h2{font-size:13px}
.op-dose>p{font-size:12px;line-height:1.65;margin:7px 0 12px}
.op-dose-options{gap:6px}
.op-dose-options button{min-height:52px;padding:10px;font-size:19px;border-radius:5px}
.op-dose-options button span{font-size:10px}
.op-confirm{width:100%;margin-top:14px;white-space:normal;line-height:1.5;text-align:center}
.op-full-table summary{min-height:48px;display:flex;align-items:center}
.st-page{--st-ink:var(--ink);--st-muted:var(--muted);--st-green:var(--green);--st-line:var(--line)}
.st-privacy{background:var(--soft);border-color:var(--line);border-radius:6px;padding:12px 14px;font-size:12px;margin:12px 0 16px}
.st-privacy>span:first-child{font-size:inherit;color:inherit}
.st-layout{grid-template-columns:minmax(0,1fr) 290px;gap:20px}
.st-instructions{padding:0 16px;background:var(--surface);border-radius:7px;font-size:13px}
.st-instructions summary{min-height:50px;display:flex;align-items:center}
.st-instructions p{margin:8px 0}
.st-instructions a{display:inline-flex;min-height:44px;align-items:center}
.st-section{background:var(--surface);padding:18px;margin-top:14px;border-radius:7px}
.st-section-heading{gap:9px;margin-bottom:15px;padding-bottom:12px}
.st-section-heading>span{font-size:10px;background:var(--soft);border-color:var(--line);padding:5px}
.st-section h2{font-size:17px!important}
.st-section-note{font-size:12px;background:var(--bg);padding:10px;margin-bottom:15px}
.st-field{margin-bottom:18px}
.st-hint{margin-bottom:8px}
.st-field input[type=text],.st-field input[type=date],.st-field input[type=number],.st-field textarea{min-height:52px;font-size:16px;padding:11px 12px;border-radius:5px;background:var(--surface);border-color:var(--line)}
.st-field textarea{min-height:110px}
.st-meta-grid{gap:14px}
.st-options{gap:6px}
.st-option,.st-options-long:has(small) .st-option{min-height:48px;padding:11px 12px;background:var(--surface);border-color:var(--line);border-radius:5px;align-items:center}
.st-option:has(input:checked){background:var(--soft)}
.st-option input{width:18px;height:18px;min-width:18px;margin:0}
.st-option strong{font-size:13px}
.st-option small{font-size:12px}
.st-clear-choice{min-height:44px;padding:8px 5px;font-size:12px}
.st-export{top:18px}
.st-export-card{padding:18px;border-radius:7px;background:var(--soft);border-color:var(--line)}
.st-export h2{font-size:22px!important}
.st-export p{line-height:1.7}
.st-progress{padding:12px 0;font-size:12px}
.st-download{min-height:52px;font-size:14px;border-radius:5px}
.st-draft-actions{gap:6px;padding-top:12px;margin-top:12px}
.st-draft-actions button{min-height:48px;background:var(--surface);border-color:var(--line);font-size:12px;padding:10px 8px}
.st-reset{min-height:44px;padding:8px 0;font-size:12px;color:var(--muted)}
.st-small{font-size:11px!important}
@media(max-width:1150px){
 .sidebar{width:195px}.app-frame{margin-left:195px}.brand-text{font-size:19px}.nav-item{font-size:11px}
 .main{padding:22px}.topbar{padding:0 22px}.footer{margin:0 22px}
 .tool-rows{column-gap:20px}.tool-link h3{font-size:15px}
 .calc-layout,.rx-layout,.op-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}
 .compact-choice{grid-template-columns:minmax(0,1fr) 180px;column-gap:12px}
 .compact-choice .choice span{padding:10px 8px;font-size:13px}
 .compact-choice .choice input:checked+span{padding:9px 7px}
 .st-layout{grid-template-columns:minmax(0,1fr) 260px;gap:16px}
}
@media(max-width:1000px){
 .calc-layout,.rx-layout,.op-layout{grid-template-columns:1fr}
 .calc-layout>.calc-aside{grid-row:1;display:block;position:static}
 .calc-layout .form-content{grid-row:2}
 .calc-aside .related{display:none}
 .calc-aside .calc-note{padding:8px 0 0;font-size:11px}
 .result-top{display:flex;justify-content:space-between;align-items:center;gap:16px}
 .result-number{margin:0}.result-number strong{font-size:40px}
 .result-bottom{padding:12px 16px}.result-top{padding:12px 16px}
 .result-panel.waiting .result-number,.result-panel.waiting .result-bottom>h2,.result-panel.waiting .result-bottom>p,.result-panel.waiting .progress-track{display:none}
 .result-panel.waiting .result-actions{margin:0}
 .result-panel.waiting>div{display:flex;align-items:center;justify-content:space-between}
 .result-panel.waiting .result-label{display:block;line-height:1.8}
 .result-panel.waiting .result-label span{display:block}
 .result-panel.waiting .result-actions .btn{min-width:90px}
 .rx-aside,.op-result{position:static}
 .rx-stats{grid-template-columns:repeat(4,1fr)}
 .heading-actions .icon-button{font-size:11px;padding:9px 10px}
 .st-layout{grid-template-columns:minmax(0,1fr) 240px}
 .st-options-long:has(small){grid-template-columns:1fr}
}
@media(max-width:760px){
 .sidebar{width:250px;padding:24px 15px}.nav-item{font-size:13px;min-height:46px}.sidebar .brand-text{font-size:22px}
 .app-frame{margin-left:0}.topbar{padding:0 14px;height:60px;min-height:60px}
 .topbar-left{display:none}.mobile-brand{display:flex;font-size:18px;letter-spacing:-.6px}
 .topbar-tools{gap:4px}.topbar-tools .icon-button{min-height:44px;min-width:44px;width:auto;height:auto;padding:8px 9px;font-size:12px}
 .menu-button{display:inline-flex}.topbar-tools .desktop-search{display:inline-flex}.topbar-tools .top-link{display:none}
 .main{padding:16px 16px 28px}.search-box{height:54px;padding:0 13px}.search-box input{font-size:16px}
 .quick-access{margin-top:7px;gap:5px;flex-wrap:wrap;overflow:visible;padding:0;margin-right:0}
 .quick-access{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 .quick-access>span{display:none}.quick-access a,.quick-access a:last-child{display:flex;justify-content:center;font-size:11px;min-height:44px;padding:9px 4px}
 .browse-toolbar{margin:7px 0 2px}.filters{gap:1px}.filter{font-size:11px;padding:11px 9px;min-height:44px}
 .tool-rows{grid-template-columns:1fr;column-gap:0}
 .tool-link{min-height:76px;padding:12px 3px;gap:3px}
 .tool-link h3{font-size:16px}.tool-link p{font-size:12px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .save-tool,.row-action{min-width:62px;min-height:48px;font-size:12px}
 .section-title{margin:18px 0 5px}.section-title h2{font-size:14px}
 .st-banner{padding:14px;gap:12px;flex-wrap:wrap}.st-banner .btn{margin:0}.st-banner>div{max-width:100%!important}
 .footer{margin:0 16px;font-size:10px;padding:12px 0;gap:0;flex-direction:row;align-items:center}
 .footer-links{gap:12px}.footer a{min-height:44px}
 .breadcrumb{margin-bottom:9px;font-size:11px;gap:7px}
 .heading-row{flex-wrap:wrap;gap:0}.heading-row .page-heading{margin-bottom:10px;width:100%}
 .heading-actions{margin:0 0 12px}.heading-actions .icon-button{font-size:12px;min-height:44px;padding:8px 12px}
 .page-heading h1,.compact-heading h1{font-size:27px;letter-spacing:-.8px;margin:0 0 6px}
 .page-heading>p{font-size:13px;line-height:1.6}.page-heading{margin-bottom:14px}
 .calc-layout{gap:12px}.calc-aside .calc-note{font-size:11px;line-height:1.6}
 .form-panel{padding:0 13px}.field{padding:13px 0}.field-label{font-size:14px;gap:7px}
 .field-number{min-width:18px;font-size:10px}.field-help{margin-left:25px;font-size:12px}
 .choices{margin:8px 0 0 25px;gap:5px}.choice span{font-size:14px;min-height:50px;padding:11px 12px}
 .choice input:checked+span{padding:10px 11px}.number-field{margin:8px 0 0 25px}
 .number-field input{height:52px;font-size:18px}.number-field span{font-size:12px}
 .compact-choice{grid-template-columns:1fr;display:block}
 .compact-choice>.choices{margin:8px 0 0 25px}.compact-choice .choice span{font-size:14px;padding:11px 12px}
 .compact-choice .choice input:checked+span{padding:10px 11px}
 .result-label{font-size:10px;display:block;line-height:1.8}.result-label span{display:block;margin-top:0}
 .result-actions .btn{font-size:12px;min-height:46px}.result-bottom h2{font-size:15px}.result-bottom p{font-size:12px}
 .result-panel.waiting .result-actions .btn{min-width:0;padding:9px 10px;font-size:12px}
 .result-panel.waiting .result-top{padding-right:0;flex:1}.result-panel.waiting .result-bottom{padding-left:8px}
 .mobile-result{display:flex;position:fixed;z-index:35;inset:auto 0 0;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px calc(9px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid #9fb9aa;box-shadow:0 -3px 14px #173c2b0b}
 .mobile-result>div{min-width:0}.mobile-result span{display:block;font-size:10px;color:var(--muted)}.mobile-result strong{display:block;font-size:17px;font-weight:600;color:var(--green);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:65vw}
 .mobile-result .btn{min-height:44px;font-size:12px;padding:9px 12px;white-space:nowrap}
 .main:has(.mobile-result:not([hidden])){padding-bottom:90px}
 .choice span{scroll-margin-bottom:90px}.number-field input{scroll-margin-bottom:90px}
 .source-panel{margin-top:16px;padding:14px 0}.source-list a{font-size:12px}.source-meta{font-size:10px}
 .rx-tabs{gap:4px;margin-bottom:12px}.rx-tabs button{font-size:13px;min-height:50px;padding:11px 9px;flex:1}
 .rx-form{padding:0 14px 14px}.rx-fields-grid{gap:12px}.rx-field{padding:13px 0}
 .rx-field input,.rx-field select{font-size:18px;height:52px}.rx-field input[type=date]{font-size:16px;padding:0 8px}
 .rx-input-row>select{font-size:13px;width:108px}.rx-quick{gap:5px}.rx-quick button{min-height:44px;font-size:12px;padding:9px 10px}
 .rx-stats{grid-template-columns:1fr 1fr}.rx-answer{padding:17px}.rx-big{font-size:46px}
 .rx-mobile-summary{padding:10px 14px calc(10px + env(safe-area-inset-bottom));gap:8px}
 .rx-mobile-summary span{font-size:10px}.rx-mobile-summary strong{font-size:12px}.rx-mobile-summary .btn{min-height:44px;font-size:12px;padding:9px}
 .rx-method{padding-bottom:85px}.rx-layout{padding-bottom:12px;gap:14px}.rx-answer{scroll-margin-top:12px}
 .op-source{margin-bottom:10px}.op-source select{font-size:15px;width:auto;max-width:100%}
 .op-population{font-size:12px;padding:12px;margin-bottom:12px;gap:9px}.op-population input{width:20px;height:20px}
 .op-inputs{padding:14px}.op-columns{grid-template-columns:1fr;gap:13px}.op-columns select{font-size:16px}
 .op-dose{margin-top:14px}.op-dose-options button{font-size:20px;min-height:54px}.op-note{margin-top:12px}
 .st-layout{display:flex;gap:14px}.st-section{padding:14px;margin-top:12px}.st-instructions{padding:0 14px}
 .st-privacy{margin:10px 0 12px;padding:11px 13px}.st-meta-grid{grid-template-columns:1fr;gap:14px}
 .st-field>label,.st-field legend{font-size:14px}.st-field{margin-bottom:16px}.st-hint{font-size:12px}
 .st-option{min-height:48px;padding:11px}.st-option strong{font-size:13px}.st-option small{font-size:12px}
 .st-options-long:not(:has(small)) .st-option{min-width:48px}.st-section-heading{margin-bottom:14px}
 .st-export{position:static}.st-export-card{padding:17px}.st-export h2{font-size:22px!important}
 .toast{left:50%;bottom:20px;font-size:12px}
}
@media(max-width:370px){.mobile-brand{font-size:16px}.topbar{padding:0 10px}.topbar-tools .icon-button{padding:8px 7px;font-size:11px}.main{padding-left:12px;padding-right:12px}.quick-access a,.quick-access a:last-child{padding:9px 3px;font-size:10px}.result-panel.waiting .result-top{padding-left:12px}.result-panel.waiting .result-label{font-size:9px}.result-panel.waiting .result-bottom{padding-right:10px}}
@media print{.save-tool,.row-action,.mobile-result{display:none!important}.app-frame{margin:0}.main{padding:0}.tool-rows{grid-template-columns:repeat(2,minmax(0,1fr))}.calc-layout{display:block}}

/* Klinisk Petrol & Skiffer: clinical risk colors retain their meaning. */
.brand-text,.mobile-brand{color:var(--brand)}
.nav-item.active{color:var(--brand);background:var(--chip);box-shadow:inset 3px 0 var(--brand)}
.filter.active,.save-tool.selected{color:var(--chip-ink);background:var(--chip)}
.tool-row{background:var(--surface)}
.tool-row:hover,.tool-row:focus-within{background:var(--hover)}
.tool-link:hover h3,.source-list a,.source-note summary,.related a,.op-source a,.inline-links a{color:var(--accent)}
.btn{background:var(--accent);border-color:var(--accent);color:#FFFFFF}
.btn.secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}
.dark .btn{color:#061827}.dark .btn.secondary{color:var(--ink)}
.choice input:checked+span,.op-dose-options button.selected,.op-dose-options button:hover{background:var(--chip);border-color:var(--accent);color:var(--chip-ink)}
.st-option:has(input:checked){background:var(--chip);border-color:var(--accent)}
.st-download{background:var(--accent);border-color:var(--accent)}
.st-download:hover{background:#0369A1}.st-option input,.op-population input{accent-color:var(--accent)}
.search-box{border-color:var(--line)}.search-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #0284C724}
:is(a,button,input,select,textarea,summary):focus-visible,.choice input:focus-visible+span,.st-option:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:3px}
.st-field input:focus,.st-field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #0284C724}
.progress-fill{background:var(--accent)}.rx-answer{border-top-color:var(--brand)}
.quick-access a:hover{background:var(--chip);border-color:var(--accent)}
.st-section-heading{border-bottom-color:var(--line)}
.unit-form select{height:52px;width:100%;border:1px solid var(--line);background:var(--surface);border-radius:5px;padding:10px 12px;font-size:16px;margin-top:8px}.unit-direction{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.unit-direction strong{font-size:16px;color:var(--brand)}.unit-form .number-field{margin-left:0}.unit-form .field-label{display:block}
.result-panel.green .result-number strong{color:#15803D}.result-panel.green .result-top{background:#F0FDF4}.dark .result-panel.green .result-number strong{color:#86EFAC}.dark .result-panel.green .result-top{background:#142E26}
::selection{background:#BAE6FD;color:#0F172A}.search-box input::placeholder{color:#64748B}.rx-field input:focus{border-color:var(--accent)}.rx-quick button:hover{border-color:var(--accent)}.st-clear-choice{color:var(--muted)}.mobile-result,.rx-mobile-summary{border-top-color:var(--line)}

/* Start the BAT interview directly; the mobile result bar stays within reach. */
@media(max-width:1100px){.bat-layout>.form-content{grid-row:1}.bat-layout>.calc-aside{grid-row:2}}
.choice .point{flex-shrink:0}

/* A small mark with a full touch target, shared by tools and diagnosis codes. */
.bookmark-button,.save-tool.bookmark-button,.heading-actions .bookmark-button,.code-row-actions .bookmark-button,.code-detail-actions .bookmark-button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:11px;margin:0;color:var(--muted);background:transparent;border:0;border-radius:5px;cursor:pointer}
.bookmark-icon{display:block;width:16px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.bookmark-button[aria-pressed="true"],.code-row-actions .bookmark-button[aria-pressed="true"]{color:var(--brand);background:transparent}
.bookmark-button[aria-pressed="true"] .bookmark-icon{fill:currentColor}
.bookmark-button:hover,.bookmark-button:focus-visible{color:var(--brand);background:var(--hover)}
.topbar-left{min-width:0;line-height:1.45}
.result-panel.red .result-number strong{color:#B91C1C}.result-panel.red .result-top{background:#FEF2F2}.dark .result-panel.red .result-number strong{color:#FCA5A5}.dark .result-panel.red .result-top{background:#351D25}
@media(max-width:760px){
 .quick-access{grid-template-columns:repeat(6,minmax(0,1fr))}
 .quick-access a,.quick-access a:last-child{grid-column:span 2;white-space:normal;text-align:center;line-height:1.3;min-height:48px;font-size:11px}
 .quick-access a:nth-last-child(-n+2){grid-column:span 3}
}
@media print{.bookmark-button{display:none!important}}
