.arrest-workspace{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px;padding:22px;margin-bottom:24px;color:var(--ui-text);min-width:0}.arrest-heading{display:flex;align-items:start;justify-content:space-between;gap:14px}.arrest-heading h2{font-size:25px;margin:5px 0 12px}.arrest-workspace p{font-size:14px;line-height:1.6}.arrest-local,.arrest-timer-note{color:var(--ui-muted);font-size:12px!important}.arrest-storage{padding:12px;background:var(--ui-warning-bg);border:1px solid var(--ui-warning);border-radius:8px}.arrest-patient{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.arrest-workspace label:not(.arrest-check){display:grid;gap:6px;font-size:13px;font-weight:600}.arrest-workspace input,.arrest-workspace select{width:100%;min-width:0;min-height:44px;background:var(--ui-surface);border:1px solid var(--ui-border-strong);border-radius:7px;padding:10px;color:var(--ui-text);font-size:16px}.arrest-rhythm{margin-top:14px}.arrest-timer{display:flex;gap:22px;align-items:center;padding:24px 0 10px;--arrest-color:#25658d}.arrest-timer[data-arrest-tone=yellow]{--arrest-color:#bc8500}.arrest-timer[data-arrest-tone=red]{--arrest-color:#bd302c}.arrest-ring{position:relative;width:180px;flex:0 0 180px;aspect-ratio:1}.arrest-ring svg{width:100%;height:100%;transform:rotate(-90deg)}.arrest-ring circle{fill:none;stroke-width:8}.arrest-ring-track{stroke:var(--ui-text)}.arrest-ring-progress{stroke:var(--arrest-color);transition:stroke-dashoffset .24s linear,stroke .2s}.arrest-digits{position:absolute;inset:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:50%;text-align:center}.arrest-digits strong{font-size:37px;font-variant-numeric:tabular-nums;color:var(--arrest-color)}.arrest-digits span{font-size:11px;margin-top:5px;max-width:100px;line-height:1.3}.arrest-last-five{animation:arrest-pulse 1s ease-in-out infinite}.arrest-timer-content{min-width:0;flex:1}.arrest-timer h3{font-size:22px;margin:0 0 8px}.arrest-actions{display:flex;gap:8px;flex-wrap:wrap}.arrest-workspace .button{min-height:44px;white-space:normal;text-align:center;justify-content:center;font-size:14px}.arrest-workspace .primary{background:var(--ui-brand);color:var(--ui-on-accent);border-color:var(--ui-brand-text)}.arrest-workspace .arrest-shock{background:var(--ui-surface);border:2px solid var(--ui-warning);color:var(--ui-text);display:inline-flex;align-items:center;gap:8px}.arrest-shock svg{width:22px;height:22px;flex-shrink:0;fill:var(--ui-warning);stroke:var(--ui-warning);stroke-width:.6}.arrest-epi,.arrest-checklist,.arrest-causes,.arrest-summary{padding:18px;background:var(--ui-canvas);border:1px solid var(--ui-border);border-radius:10px;margin:18px 0}.arrest-workspace h3{margin-top:0}.arrest-epi[data-epi-tone=yellow]{background:var(--ui-warning-bg);border-color:var(--ui-warning)}.arrest-epi[data-epi-tone=red]{background:var(--ui-canvas);border-color:var(--ui-brand-text)}.arrest-epi strong{display:block;font-size:24px;font-variant-numeric:tabular-nums}.arrest-epi small{display:block;color:var(--ui-muted);line-height:1.5;margin:8px 0}.arrest-epi label{margin-top:14px}.arrest-check{display:flex!important;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--ui-border);cursor:pointer}.arrest-check input{width:22px;height:22px;min-height:22px;flex:0 0 22px;accent-color:#246452;margin:0}.arrest-check strong{display:block;font-size:14px}.arrest-check small{display:block;font-size:12px;line-height:1.5;color:var(--ui-muted);margin-top:5px}.arrest-causes summary{font-weight:700;cursor:pointer;min-height:32px}.arrest-causes summary span{font-size:12px;color:var(--ui-muted);margin-left:8px}.arrest-log{margin-top:28px}.arrest-log h3 small{display:block;font-size:12px;color:var(--ui-muted);font-weight:400;margin-top:6px}.arrest-log ol{list-style:none;padding:0;max-height:340px;overflow:auto}.arrest-log li{display:flex;gap:14px;padding:11px 0;border-bottom:1px solid var(--ui-border);font-size:13px;line-height:1.5}.arrest-log time{font-variant-numeric:tabular-nums;color:var(--ui-muted);flex-shrink:0}.arrest-reset{padding-top:8px}.arrest-reset .text-button{color:var(--ui-brand-text);min-height:44px}.arrest-reset [role=alert]{border:1px solid var(--ui-brand-text);padding:14px;border-radius:8px}.arrest-summary p{overflow-wrap:anywhere}.arrest-workspace :focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}.arrest-workspace [hidden]{display:none!important}.dose-card summary .medication-route-label{font-size:12px;font-weight:600;color:var(--ui-link);white-space:normal;margin-left:10px}.dose-card summary>span{min-width:0}.dose-card summary{gap:10px}
@keyframes arrest-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--ui-shadow) 0%, transparent);background:color-mix(in srgb, var(--ui-danger-bg) 2%, transparent)}45%{box-shadow:0 0 18px 5px color-mix(in srgb, var(--ui-shadow) 24%, transparent);background:var(--ui-danger-bg)}}
@media(max-width:1100px){.arrest-timer{flex-direction:column;align-items:stretch}.arrest-ring{width:180px;flex-basis:auto;align-self:center}.arrest-timer-content{text-align:center}.arrest-actions{justify-content:center}}
@media(max-width:600px){.arrest-workspace{padding:16px}.arrest-heading{display:block}.arrest-heading .source-link{display:inline-block;margin-bottom:8px}.arrest-actions .button{flex:1 1 125px}.arrest-patient{gap:8px}.arrest-digits strong{font-size:36px}}
@media(prefers-reduced-motion:reduce){.arrest-ring-progress{transition:none}.arrest-last-five{animation:none;background:var(--ui-danger-bg)}}

.arrest-procedure-entry{display:flex;gap:12px;align-items:end}.arrest-procedure-entry label{flex:1}@media(max-width:600px){.arrest-procedure-entry{display:grid}}

.medication-summary-name>small{display:block;font-size:12px;line-height:1.4;font-weight:400;color:var(--ui-muted);margin-top:5px}.dose-card summary .medication-route-label{max-width:45%;text-align:right;flex-shrink:0}

.arrest-session{background:var(--ui-canvas);border-left:3px solid var(--ui-info);padding:10px 12px;font-size:12px!important}

.arrest-causes.is-complete,.arrest-main-checklist.is-complete{background:var(--ui-canvas);border-color:var(--ui-success)}.arrest-causes.is-complete h3,.arrest-main-checklist.is-complete h3{color:var(--ui-success)}.arrest-amiodarone{padding:18px;background:var(--ui-warning-bg);border:1px solid var(--ui-warning);border-radius:10px;margin:18px 0}.arrest-on-scene{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:14px}.arrest-on-scene label{flex:1 0 100%;min-width:0}.arrest-on-scene small{width:100%;color:var(--ui-brand-text)}.arrest-summary dl{margin:0 0 18px}.arrest-summary dl>div{padding:12px 0;border-bottom:1px solid var(--ui-border);display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:10px}.arrest-summary dt{font-size:14px;font-weight:600}.arrest-summary dd{margin:0;font-size:14px;overflow-wrap:anywhere}.arrest-summary dd small{display:block;margin-top:5px;color:var(--ui-muted);font-size:12px;font-variant-numeric:tabular-nums}@media(max-width:600px){.arrest-summary dl>div{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}.arrest-on-scene .button{width:100%}}

.arrest-energy{padding:16px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-canvas);margin:16px 0}.arrest-energy h3{margin:0 0 8px}.arrest-energy-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.arrest-energy-values>div{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px;padding:12px}.arrest-energy-values span{display:block;font-size:12px;line-height:1.5}.arrest-energy-values strong{display:block;font-size:27px;color:var(--ui-link);margin-top:4px}.arrest-energy small{display:block;color:var(--ui-muted);font-size:12px;line-height:1.5}.arrest-magnesium .source-link{display:inline-block;margin:12px 0 0 10px}

.arrest-fold-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.arrest-fold-heading>div{min-width:0}.arrest-fold-heading h3{margin:0;font-size:18px;line-height:1.35}.arrest-fold-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;padding:10px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-surface);color:var(--ui-text);cursor:pointer}.arrest-fold-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.arrest-fold-count{font-size:12px;color:var(--ui-muted);line-height:1.6}.arrest-epi-since{display:block;font-size:14px;font-variant-numeric:tabular-nums;margin-top:5px;color:var(--ui-link)}.arrest-epi-status{font-size:12px!important;margin:8px 0 0!important}.arrest-epi #arrest-epi-content{margin-top:14px}.arrest-workspace .is-complete .arrest-fold-count{color:var(--ui-success)}

.arrest-shock-dialog{position:fixed;inset:0;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;margin:auto;padding:24px;border:1px solid var(--ui-warning);box-shadow:0 18px 70px color-mix(in srgb, var(--ui-shadow) 25%, transparent)}.arrest-shock-dialog::backdrop{background:color-mix(in srgb, var(--ui-strong) 60%, transparent)}.arrest-shock-dialog h3{font-size:23px;line-height:1.3;margin:0 0 10px}.arrest-shock-dialog p{color:var(--ui-muted);font-variant-numeric:tabular-nums;margin:0 0 20px}.arrest-shock-rhythms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.arrest-shock-dialog .button{min-height:52px}.arrest-shock-dialog .arrest-shock-cancel{width:100%;margin-top:16px}.arrest-shock-dialog h3:focus{outline:none}
