:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef4f7;
  background: #101820;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --surface: #18232d;
  --surface-light: #202e39;
  --line: #33434f;
  --muted: #91a0aa;
  --teal: #54d6bf;
  --lime: #b6e774;
  --orange: #ff9a45;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 50% -30%, #263944 0, #101820 50%); }
button { font: inherit; }
.app-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 28px; }
.topbar, .brand, .topbar-note, .intro, .device-topline, .lcd-topline, .lcd-footer, .power-row, .pad-connection-row, .panel-heading, .placement-legend, .pad-check, .instructor-tools, .instructor-tools > div, .instructor-actions, .page-footer { display: flex; align-items: center; }
.topbar { justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid rgba(154,180,192,.13); }
.brand { gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: #1d645c; border-radius: 11px; }
.brand-mark svg { width: 22px; fill: #b6f2de; }
.brand strong { display: block; font-size: 15px; letter-spacing: .13em; }
.brand small { display: block; margin-top: 2px; color: #92a4ae; font-size: 8px; letter-spacing: .15em; }
.topbar-note { gap: 8px; color: #9cabb4; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.status-dot, .lcd-dot { width: 7px; height: 7px; border-radius: 50%; background: #5bd3ae; box-shadow: 0 0 10px #5bd3ae88; }
.intro { justify-content: space-between; align-items: flex-end; padding: 32px 0 25px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.04em; font-weight: 650; }
.intro-copy { margin-bottom: 0; color: #a4b2bb; font-size: 13px; }
.training-tag { padding: 8px 11px; border: 1px solid #53644c; border-radius: 30px; color: #cae9a1; font-size: 8px; font-weight: 800; letter-spacing: .11em; white-space: nowrap; }
.training-tag span { margin-right: 5px; }
.simulator-layout { display: grid; grid-template-columns: minmax(330px, .87fr) minmax(0, 1.13fr); gap: 19px; align-items: stretch; }
.aed-device, .patient-panel { min-width: 0; border: 1px solid #34434e; border-radius: 19px; background: linear-gradient(145deg, #202c36, #17222b 70%); box-shadow: 0 18px 45px #0003, inset 0 1px #ffffff08; }
.aed-device { padding: 19px; }
.device-topline { justify-content: space-between; margin: 0 3px 12px; color: #d3e2e8; font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.brand-x { color: #65d8c1; }
.device-model { color: #7e909a; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.device-display { position: relative; overflow: hidden; min-height: 236px; padding: 14px 15px 12px; border: 8px solid #0b1115; border-radius: 11px; color: #d3f0b4; background: #121f1b; box-shadow: inset 0 0 25px #0009, 0 1px #ffffff12; font-family: "Courier New", monospace; }
.device-display:not(.is-on) { background: #0a1110; }
.device-display:not(.is-on) .lcd-topline, .device-display:not(.is-on) .lcd-main { visibility: hidden; }
.lcd-topline { justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid #395342; color: #a7c996; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.lcd-state { display: inline-flex; gap: 6px; align-items: center; font-size: 8px; }
.lcd-dot { width: 6px; height: 6px; background: #76967c; box-shadow: none; }
.device-display.is-on .lcd-dot { background: #b8ef73; box-shadow: 0 0 8px #b8ef73; }
.lcd-main { position: relative; display: flex; min-height: 179px; flex-direction: column; }
.lcd-message { z-index: 1; min-height: 52px; padding: 14px 2px 6px; color: #e0f6c2; font-size: clamp(13px, 1.55vw, 16px); font-weight: 700; line-height: 1.4; }
.ecg-area { display: none; height: 45px; margin: -1px 0 2px; }
.ecg-area svg { width: 100%; height: 100%; }
.ecg-grid { fill: none; stroke: #355039; stroke-width: .5; }
.ecg-line { fill: none; stroke: #b5eb8b; stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 500; animation: ecg 1.1s linear infinite; }
.device-display.is-analyzing .ecg-area { display: block; }
.device-display.is-analyzing .ecg-line { animation: ecg 1.1s linear infinite; }
.lcd-counts { display: grid; grid-template-columns: 1fr 1.3fr .8fr; margin-top: auto; padding: 8px 0 6px; border-top: 1px solid #344c37; }
.lcd-counts > div { display: flex; flex-direction: column; gap: 4px; }
.lcd-counts > div + div { padding-left: 9px; border-left: 1px solid #344c37; }
.lcd-counts span { color: #86a17c; font-size: 7px; letter-spacing: .06em; }
.lcd-counts strong { color: #d7edbd; font-size: 11px; }
.lcd-counts strong small { font-size: 8px; }
.progress-track { height: 4px; overflow: hidden; background: #30402f; border-radius: 4px; }
.progress-track span { display: block; width: 0; height: 100%; background: #b5ea82; transition: width .2s ease; }
.lcd-footer { justify-content: space-between; padding-top: 7px; color: #8ca980; font-size: 7px; letter-spacing: .07em; }
.lcd-footer span:last-child { color: #b5ea82; letter-spacing: .25em; }
.compression-visual { position: absolute; top: 54px; right: 3px; display: none; align-items: center; gap: 8px; color: #b5ea82; font-size: 8px; }
.compression-ring { width: 14px; height: 14px; border: 2px solid #b5ea82; border-radius: 50%; }
.device-display.is-compressing .compression-visual { display: flex; }
.device-display.is-compressing .compression-ring { animation: compress .54s ease-in-out infinite alternate; }
.lcd-flash { position: absolute; inset: 0; z-index: 2; background: #fff; opacity: 0; pointer-events: none; }
.device-display.shock-flash .lcd-flash { animation: flash .55s ease-out; }
.device-controls { padding: 17px 2px 0; }
.power-row { justify-content: space-between; align-items: flex-end; gap: 12px; }
.physical-button { border: 0; cursor: pointer; color: #eff8f5; font-weight: 850; letter-spacing: .07em; transition: transform .12s, filter .15s, opacity .15s; }
.physical-button:not(:disabled):active { transform: translateY(2px); }
.physical-button:disabled { cursor: not-allowed; }
.power-button { display: flex; min-width: 102px; height: 48px; align-items: center; justify-content: center; gap: 8px; border: 1px solid #7eefa9; border-radius: 10px; background: linear-gradient(#46c886, #218855); box-shadow: 0 4px 0 #15573b, 0 8px 20px #0003; font-size: 10px; }
.power-symbol { font-size: 22px; line-height: 1; }
.mode-control { flex: 1; }
.control-caption { display: block; margin-bottom: 6px; color: #8fa0aa; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.segmented { display: flex; padding: 3px; border: 1px solid #34434c; border-radius: 8px; background: #111a20; }
.segmented button { flex: 1; min-height: 31px; border: 0; border-radius: 5px; background: transparent; color: #85959d; cursor: pointer; font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.segmented button.is-selected { color: #dcf4e9; background: #2a5248; box-shadow: inset 0 0 0 1px #3a7667; }
.segmented button:disabled { cursor: not-allowed; opacity: .48; }
.pad-connection-row { gap: 10px; margin-top: 17px; padding: 11px 9px; border: 1px solid #35444d; border-radius: 10px; background: #18242c; }
.port-visual { display: flex; width: 34px; height: 30px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 4px; border: 1px solid #43545d; border-radius: 6px; background: #111a20; }
.port-visual span { width: 7px; height: 12px; border: 1px solid #768892; border-radius: 2px; background: #28363d; }
.port-copy { min-width: 0; flex: 1; }
.port-copy strong, .port-copy small { display: block; }
.port-copy strong { color: #c6d3d9; font-size: 8px; letter-spacing: .08em; }
.port-copy small { overflow: hidden; margin-top: 4px; color: #83939b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.connect-button { display: flex; min-height: 34px; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid #4b6664; border-radius: 7px; background: #24413e; color: #c8ece3; font-size: 7px; white-space: nowrap; }
.connect-button:disabled { opacity: .38; }
.connect-led { width: 6px; height: 6px; border-radius: 50%; background: #65756f; }
.connect-button.is-blinking .connect-led { background: #c2f78b; box-shadow: 0 0 9px #c2f78b; animation: led 1s steps(2, start) infinite; }
.shock-button { display: flex; width: 100%; min-height: 57px; align-items: center; justify-content: center; gap: 9px; margin-top: 13px; border: 1px solid #8a4b2e; border-radius: 11px; background: linear-gradient(#733c29, #562c20); box-shadow: 0 4px 0 #3b211a; color: #d49b7b; font-size: 12px; letter-spacing: .16em; }
.shock-button:disabled { filter: grayscale(.6); opacity: .38; }
.shock-button.is-ready { border-color: #ffc078; background: linear-gradient(#fa873c, #d75124); box-shadow: 0 4px 0 #8e361b, 0 0 24px #fa743f99; color: #fff; animation: shockPulse .65s ease-in-out infinite alternate; opacity: 1; }
.shock-icon { font-size: 25px; line-height: 1; }
.device-disclaimer { margin: 12px 0 0; color: #72828a; font-size: 8px; text-align: center; }
.patient-panel { display: flex; flex-direction: column; padding: 21px 22px 18px; }
.panel-heading { justify-content: space-between; gap: 10px; }
.panel-heading .eyebrow { margin-bottom: 6px; }
h2 { margin-bottom: 0; font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.step-badge { padding: 6px 8px; border: 1px solid #3a665c; border-radius: 20px; color: #a8e3d2; font-size: 8px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.placement-hint { margin: 10px 0 3px; color: #94a4ad; font-size: 11px; }
.mannequin-stage { display: flex; min-height: 270px; flex: 1; align-items: center; justify-content: center; overflow: hidden; padding: 5px 0; }
.mannequin-stage svg { display: block; width: min(100%, 375px); height: 285px; overflow: visible; }
.mannequin-stage.is-child svg { width: 100%; height: 245px; }
.view-divider { width: 1px; height: 190px; flex: 0 0 1px; background: linear-gradient(transparent, #48585e, transparent); }
.mannequin-skin { fill: #d7aa82; stroke: #ebc7a2; stroke-width: 1.5; }
.mannequin-line { fill: none; stroke: #aa7c61; stroke-width: 1.4; stroke-linecap: round; opacity: .85; }
.mannequin-shirt { fill: #59717a; stroke: #7b929a; stroke-width: 1.3; }
.mannequin-shorts { fill: #3a5059; }
.mannequin-label { fill: #91a0a8; font: 700 8px system-ui, sans-serif; letter-spacing: 1px; }
.pad-cable { fill: none; stroke: #f0c55e; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 3; opacity: .85; }
.pad-target { cursor: pointer; }
.pad-target .target-halo { fill: #59dec3; fill-opacity: .12; stroke: #6ae1c9; stroke-width: 1.5; stroke-dasharray: 3 2; animation: target 1.6s ease-in-out infinite; }
.pad-target .target-center { fill: #80ecd5; }
.pad-target:hover .target-halo, .pad-target:focus .target-halo { fill-opacity: .3; stroke-width: 2.5; }
.pad-target:focus { outline: none; }
.placed-pad { display: none; }
.placed-pad rect { fill: #e5e8df; stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 2px 4px #0008); }
.placed-pad path { fill: none; stroke: #849497; stroke-width: 1; }
.placed-pad text { fill: #35474a; font: 800 7px system-ui, sans-serif; }
.placed-pad.is-placed { display: block; }
.pad-target.is-placed { display: none; }
.placement-legend { justify-content: center; gap: 20px; margin: 0 0 13px; color: #92a2aa; font-size: 9px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.target-dot { border: 1px solid #68dcc5; background: #23564e; }
.placed-dot { background: #e6e8df; box-shadow: 0 0 4px #fff6; }
.pad-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pad-check { min-width: 0; gap: 8px; padding: 9px; border: 1px solid #34434e; border-radius: 8px; background: #17222a; }
.check-number { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: #293943; color: #b8c9ce; font-size: 9px; font-weight: 800; }
.pad-check strong, .pad-check small { display: block; }
.pad-check strong { color: #ced9de; font-size: 9px; }
.pad-check small { overflow: hidden; max-width: 145px; margin-top: 3px; color: #82919a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.pad-check i { width: 7px; height: 7px; flex: 0 0 auto; margin-left: auto; border: 1px solid #61727a; border-radius: 50%; }
.pad-check.is-done { border-color: #427769; background: #1b322e; }
.pad-check.is-done .check-number { background: #327564; color: white; }
.pad-check.is-done i { border-color: #8ce3c1; background: #8ce3c1; box-shadow: 0 0 8px #8ce3c177; }
.child-controls { margin-top: 15px; }
.child-controls[hidden] { display: none; }
.rescuer-segmented { gap: 4px; }
.rescuer-segmented button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 8px; }
.rescuer-segmented button b { font-size: 9px; }
.instructor-tools { justify-content: space-between; gap: 14px; margin-top: 17px; padding: 12px 15px; border: 1px solid #303e48; border-radius: 12px; background: #17222b; }
.instructor-tools > div:first-child { gap: 10px; }
.instructor-icon { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #45535b; border-radius: 8px; color: #a6b6bd; }
.instructor-tools strong, .instructor-tools small { display: block; }
.instructor-tools strong { color: #c7d2d7; font-size: 9px; }
.instructor-tools small { margin-top: 3px; color: #819099; font-size: 8px; }
.instructor-actions { gap: 7px; flex-wrap: wrap; }
.instructor-actions button { padding: 7px 9px; border: 1px solid #41545d; border-radius: 6px; background: #202f38; color: #a8bec3; cursor: pointer; font-size: 8px; font-weight: 700; }
.instructor-actions button:disabled { cursor: not-allowed; opacity: .4; }
.instructor-actions button:not(:disabled):hover { border-color: #65bba7; color: #d0f0e5; }
.random-note { color: #82919a; font-size: 8px; white-space: nowrap; }
.page-footer { justify-content: space-between; gap: 12px; padding-top: 18px; color: #77868e; font-size: 8px; letter-spacing: .06em; }
.page-footer strong { color: #d8e6e9; }
.options-menu { position: relative; z-index: 5; }
.options-menu summary { list-style: none; padding: 8px 11px; border: 1px solid #3c5159; border-radius: 8px; background: #19262e; color: #c6d8d9; cursor: pointer; font-size: 9px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.options-menu summary::-webkit-details-marker { display: none; }
.options-menu summary span { margin-right: 4px; color: var(--teal); }
.options-menu[open] summary { border-color: #5cae9c; }
.options-panel { position: absolute; top: calc(100% + 7px); right: 0; display: grid; width: min(320px, calc(100vw - 24px)); gap: 12px; padding: 13px; border: 1px solid #3b505a; border-radius: 11px; background: #17232c; box-shadow: 0 14px 35px #0009; }
.voice-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #c6d3d9; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.voice-setting select { min-width: 130px; padding: 7px 9px; border: 1px solid #455b64; border-radius: 6px; background: #10191f; color: #e2ecee; font: inherit; letter-spacing: normal; }
.skip-button { min-height: 34px; border: 1px solid #4d8177; border-radius: 7px; background: #24443d; color: #d1eee4; cursor: pointer; font-size: 10px; font-weight: 800; }
.skip-button:disabled { cursor: not-allowed; opacity: .4; }
.instructor-setting { padding-top: 10px; border-top: 1px solid #34434c; }
.instructor-setting > strong, .instructor-setting > small { display: block; }
.instructor-setting > strong { color: #c7d2d7; font-size: 9px; }
.instructor-setting > small { margin-top: 3px; color: #819099; font-size: 8px; }

@keyframes led { to { opacity: .25; } }
@keyframes target { 50% { opacity: .55; } }
@keyframes shockPulse { to { filter: brightness(1.35); } }
@keyframes compress { to { transform: scale(.65); box-shadow: 0 0 0 3px #b5ea8240; } }
@keyframes flash { 0% { opacity: .92; } 100% { opacity: 0; } }
@keyframes ecg { from { stroke-dashoffset: 500; } to { stroke-dashoffset: 0; } }

@media (max-width: 760px) {
  body { overflow: hidden; }
  .app-shell { display: flex; width: min(100% - 20px, 540px); height: 100vh; height: 100dvh; flex-direction: column; gap: 6px; overflow: hidden; padding: 7px 0; }
  .topbar { flex: 0 0 auto; padding-bottom: 4px; }
  .brand { gap: 7px; }
  .brand-mark { width: 27px; height: 27px; border-radius: 8px; }
  .brand-mark svg { width: 17px; }
  .brand strong { font-size: 12px; }
  .brand small, .intro .eyebrow, .intro-copy, .training-tag { display: none; }
  .intro { flex: 0 0 auto; padding: 0; }
  h1 { margin: 0; font-size: 17px; white-space: nowrap; }
  .options-menu summary { padding: 6px 8px; font-size: 8px; }
  .options-panel { max-height: calc(100dvh - 55px); overflow-y: auto; }
  .simulator-layout { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 6px; }
  .aed-device { flex: 0 0 auto; order: 0; padding: 7px; border-radius: 12px; }
  .device-topline { display: none; }
  .device-display { min-height: 126px; padding: 6px 8px 5px; border-width: 5px; border-radius: 8px; }
  .lcd-topline { padding-bottom: 4px; font-size: 8px; }
  .lcd-state { font-size: 7px; }
  .lcd-main { min-height: 96px; }
  .lcd-message { min-height: 31px; padding: 6px 2px 3px; font-size: clamp(11px, 3vw, 13px); line-height: 1.15; }
  .ecg-area { height: 28px; }
  .lcd-counts { padding: 4px 0 3px; }
  .lcd-counts > div { gap: 2px; }
  .lcd-counts > div + div { padding-left: 6px; }
  .lcd-counts span { font-size: 6px; }
  .lcd-counts strong { font-size: 9px; }
  .lcd-footer { padding-top: 4px; font-size: 6px; }
  .device-controls { padding: 6px 1px 0; }
  .power-row { gap: 8px; }
  .power-button { min-width: 77px; height: 37px; font-size: 8px; }
  .power-symbol { font-size: 18px; }
  .control-caption { margin-bottom: 3px; font-size: 7px; }
  .segmented { padding: 2px; }
  .segmented button { min-height: 26px; font-size: 7px; }
  .pad-connection-row { gap: 6px; margin-top: 6px; padding: 5px; border-radius: 7px; }
  .port-visual { width: 25px; height: 23px; gap: 2px; }
  .port-visual span { width: 6px; height: 10px; }
  .port-copy strong { font-size: 7px; }
  .port-copy small { display: none; }
  .connect-button { min-height: 28px; gap: 4px; padding: 0 6px; font-size: 6px; }
  .connect-led { width: 5px; height: 5px; }
  .shock-button { min-height: 37px; margin-top: 6px; border-radius: 8px; font-size: 10px; }
  .shock-icon { font-size: 19px; }
  .device-disclaimer { display: none; }
  .patient-panel { min-height: 0; flex: 1; order: 1; overflow: hidden; padding: 7px 9px; border-radius: 12px; }
  .panel-heading .eyebrow { margin-bottom: 3px; font-size: 7px; }
  h2 { font-size: 14px; }
  .step-badge { padding: 4px 6px; font-size: 7px; }
  .placement-hint, .placement-legend { display: none; }
  .mannequin-stage { height: clamp(105px, 17vh, 140px); height: clamp(105px, 17svh, 140px); min-height: 0; flex: 1 1 auto; padding: 2px 0; }
  .mannequin-stage svg { width: min(100%, 165px); height: 132px; }
  .mannequin-stage.is-child svg { width: min(27vw, 95px); height: 132px; }
  .view-divider { height: 105px; }
  .pad-checklist { gap: 6px; }
  .pad-check { gap: 6px; padding: 5px; }
  .check-number { width: 20px; height: 20px; font-size: 8px; }
  .pad-check strong { font-size: 8px; }
  .pad-check small { display: none; }
  .child-controls { margin-top: 5px; }
  .rescuer-segmented { gap: 3px; }
  .rescuer-segmented button { min-height: 28px; gap: 1px; font-size: 7px; }
  .rescuer-segmented button b { font-size: 8px; }
  .page-footer { display: none; }
}
@media (max-width: 410px) {
  .app-shell { width: calc(100% - 20px); }
  .connect-button { padding: 0 5px; font-size: 6px; }
  .pad-checklist { gap: 6px; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .app-shell { gap: 4px; padding: 5px 0; }
  .topbar { padding-bottom: 2px; }
  .brand-mark { width: 24px; height: 24px; }
  h1 { font-size: 15px; }
  .simulator-layout { gap: 4px; }
  .aed-device { padding: 5px; }
  .device-display { min-height: 112px; padding: 5px 7px 4px; }
  .lcd-main { min-height: 82px; }
  .lcd-message { min-height: 27px; padding-top: 4px; }
  .device-controls { padding-top: 4px; }
  .pad-connection-row { margin-top: 4px; padding: 4px; }
  .shock-button { min-height: 33px; margin-top: 4px; }
  .patient-panel { padding: 5px 7px; }
  .mannequin-stage { height: clamp(90px, 15vh, 115px); height: clamp(90px, 15svh, 115px); }
  .mannequin-stage svg, .mannequin-stage.is-child svg { height: min(108px, 15vh); height: min(108px, 15svh); }
  .view-divider { height: min(85px, 15vh); height: min(85px, 15svh); }
  .child-controls { margin-top: 3px; }
  .rescuer-segmented button { min-height: 25px; }
}
@media (max-height: 500px) and (max-width: 1000px) {
  body { overflow: hidden; }
  .app-shell { display: flex; width: calc(100% - 18px); height: 100vh; height: 100dvh; flex-direction: column; gap: 4px; overflow: hidden; padding: 4px 0; }
  .topbar { flex: 0 0 auto; padding-bottom: 2px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand small, .intro, .page-footer { display: none; }
  .simulator-layout { display: grid; min-height: 0; flex: 1; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 7px; }
  .aed-device, .patient-panel { min-height: 0; padding: 7px; overflow: hidden; }
  .device-topline { display: none; }
  .device-display { min-height: 100px; padding: 5px; border-width: 4px; }
  .lcd-main { min-height: 72px; }
  .lcd-message { min-height: 25px; padding: 4px 2px; font-size: 11px; }
  .lcd-counts { padding: 3px 0; }
  .device-controls { padding-top: 4px; }
  .power-button { min-width: 65px; height: 31px; font-size: 7px; }
  .power-symbol { font-size: 15px; }
  .segmented button { min-height: 23px; font-size: 6px; }
  .pad-connection-row { gap: 4px; margin-top: 4px; padding: 4px; }
  .port-visual { display: none; }
  .connect-button { padding: 0 4px; font-size: 5px; }
  .shock-button { min-height: 30px; margin-top: 4px; }
  .device-disclaimer, .placement-hint, .placement-legend { display: none; }
  .patient-panel { padding: 7px; }
  .panel-heading .eyebrow { display: none; }
  h2 { font-size: 12px; }
  .mannequin-stage { height: 175px; min-height: 0; }
  .mannequin-stage svg { width: min(100%, 180px); height: 172px; }
  .mannequin-stage.is-child svg { width: min(14vw, 78px); height: 172px; }
  .view-divider { height: 130px; }
  .pad-check { padding: 4px; }
  .pad-check small { display: none; }
  .child-controls { margin-top: 3px; }
  .rescuer-segmented button { min-height: 24px; font-size: 6px; }
  .options-menu summary { padding: 5px 7px; }
  .options-panel { max-height: calc(100dvh - 42px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
