/* Focused calculator workspace; clinical content keeps its source-specific rules. */
.ems-math-layout{padding-bottom:88px}.ems-math-layout header{position:relative;inset:auto;width:auto;padding:16px 24px;border-right:0;border-bottom:1px solid var(--line)}.ems-math-layout .headrow{max-width:1120px;flex-wrap:nowrap}.ems-math-layout .logo{flex:0 0 40px;width:40px;height:40px}.ems-math-layout .sub{font-size:12px}.ems-math-layout header .report-toolbar{position:static;max-width:1120px;margin:10px auto 0;padding:0;text-align:right}.ems-math-layout header .report-toolbar button{width:auto;font-size:12px;padding:6px 10px;background:transparent;min-height:32px}.ems-math-layout .offline{margin-left:auto;font-size:10px;max-width:180px;line-height:1.5}.ems-math-layout main{margin:0 auto;max-width:1120px;padding:30px 24px}.workspace-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:24px}.workspace-heading h2{font-size:clamp(25px,4vw,36px);letter-spacing:-.035em;margin:7px 0 10px;line-height:1.15}.workspace-heading p{color:var(--muted);font-size:14px;line-height:1.6;margin:0}.workspace-heading .eyebrow{font-size:10px;letter-spacing:.18em;font-weight:800;color:var(--purple)}.workspace-heading a{white-space:nowrap;margin-top:22px;color:var(--purple);font-size:13px}#workspaceTitle:focus{outline:none}.ems-math-layout .notice{background:var(--panel);border-color:var(--line);color:var(--muted);font-size:12px;margin-bottom:22px}.safety-details summary{cursor:pointer;min-height:28px;line-height:1.7;color:var(--text)}.safety-details p{margin:10px 0 2px}.ems-math-layout .patient-card{padding:18px 22px;border-left:3px solid var(--purple);margin-bottom:24px}.patient-card .grid{margin-top:14px}.patient-card h2{font-size:17px!important}.patient-card #weightTrail{padding-top:10px;font-size:12px}.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tool-card{display:flex;flex-direction:column;gap:15px;text-align:left;text-decoration:none;background:var(--panel);color:var(--text);border:1px solid var(--line);padding:26px;border-radius:18px;min-height:200px;line-height:1.5;transition:border-color .15s}.tool-card:hover{border-color:var(--purple)}.tool-card:focus-visible{outline:3px solid var(--purple);outline-offset:3px}.tool-card.featured{border-top:3px solid var(--purple)}.tool-card strong{font-size:22px;letter-spacing:-.025em;line-height:1.2}.tool-card span:not(.tool-number){font-size:14px;color:var(--muted);font-weight:400;max-width:45ch}.tool-card .tool-number{font-size:10px;letter-spacing:.13em;color:var(--purple);font-weight:800}.tool-card b{margin-top:auto;font-size:13px;color:var(--purple)}.home-links{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:24px 0 16px}.home-links button,.home-links a{font-size:13px}.home-links a{color:var(--purple);padding:10px 0}.calculator-picker{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:center;padding:16px 0 22px;max-width:760px}.calculator-picker label{margin:0;font-size:13px}.ems-math-layout #dose>.card,.ems-math-layout #drips>.card{max-width:760px}.ems-math-layout input:not([type=checkbox]),.ems-math-layout select{min-height:46px;background:var(--panel2);color:var(--text);border-color:var(--line)}.ems-math-layout input[type=checkbox]{width:20px;height:20px;vertical-align:middle;accent-color:var(--purple2);margin-right:8px}.ems-math-layout label{font-size:13px}.ems-math-layout .card h2{font-size:20px}.recalculate-note{color:var(--warn);font-size:13px;border-left:3px solid var(--warn);padding:12px}.ems-math-layout .tabs{position:fixed;inset:auto 0 0;width:auto;max-height:none;overflow:visible;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px max(18px,calc((100vw - 1050px)/2)) calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--panel)}.ems-math-layout .tabbtn{text-align:center;padding:12px 8px;font-size:13px;min-width:0;min-height:46px}.ems-math-layout [hidden]{display:none!important}.ems-math-layout #pediatrics .ped-heading h2{font-size:20px}.ems-math-layout #pediatrics .ped-kicker{display:none}.ems-math-layout .ped-controls{gap:14px}.ems-math-layout #pedTapeDetails{border-top:1px solid var(--line);margin-top:14px}.ems-math-layout .ped-tape{grid-template-columns:repeat(9,minmax(0,1fr))}.ems-math-layout .ped-search{margin-top:0}.ems-math-layout .ped-help{font-size:13px}.ems-math-layout .ped-note{font-size:12px}.ems-math-layout .quickhead{flex-wrap:wrap}.ems-math-layout .qs{padding-right:48px}.ems-math-layout a{overflow-wrap:anywhere}
@media(min-width:1000px){.ems-math-layout .patient-card .grid{max-width:720px}.ems-math-layout main{padding-bottom:45px}}
@media(max-width:650px){.ems-math-layout header{padding:14px 16px}.ems-math-layout .headrow{flex-wrap:wrap;gap:10px}.ems-math-layout .headrow>div:nth-child(2){flex:1}.ems-math-layout .offline{margin:0;max-width:none;font-size:9px}.ems-math-layout header .report-toolbar{margin-top:6px;text-align:left}.ems-math-layout main{padding:22px 16px}.workspace-heading{display:block;margin-bottom:18px}.workspace-heading a{display:inline-block;margin-top:12px}.tool-grid{grid-template-columns:1fr;gap:12px}.tool-card{padding:20px;min-height:165px;gap:12px}.tool-card strong{font-size:21px}.ems-math-layout .patient-card .grid{grid-template-columns:1fr 1fr;gap:12px}.ems-math-layout .patient-card{padding:16px}.ems-math-layout .tabs{gap:3px;padding:8px 6px calc(8px + env(safe-area-inset-bottom))}.ems-math-layout .tabbtn{font-size:11px;padding:10px 2px}.calculator-picker{grid-template-columns:1fr;gap:7px}.ems-math-layout .ped-tape{grid-template-columns:repeat(3,minmax(0,1fr))}.ems-math-layout .ped-controls{grid-template-columns:1fr}.ems-math-layout .home-links{align-items:stretch}.ems-math-layout .home-links>button{flex:1}.ems-math-layout .home-links>a{width:100%}.ems-math-layout .patient-card .row>button{min-width:0}}

.ems-math-layout input[aria-invalid="true"]{border-color:var(--danger);outline:2px solid var(--danger);outline-offset:2px}

