/* CLINICAL QUEST V4 — immersive interactive resuscitation theatre.
   All selectors are scoped to the scenario route; dashboard v3 is unchanged. */
.game-v4{display:flex!important;flex-direction:column;gap:7px;height:100%;min-height:0;overflow:hidden;isolation:isolate}
.game-v4 *{box-sizing:border-box}
.v4-game-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:0 0 56px;min-width:0;padding:2px 7px 0;border-bottom:1px solid rgba(42,178,204,.22)}
.v4-heading-info{min-width:0}.v4-heading-info h1{font-size:clamp(16px,1.38vw,21px);margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:1.5;text-shadow:0 0 15px #1db5b55e}.v4-heading-info p{font-size:10px;color:#a2d0dd;margin:0}.v4-eyebrow{font-size:9px;color:#42e9e2;letter-spacing:.1em;font-weight:800}
.v4-heading-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.v4-live-indicator,.v4-hud-score,.v4-hud-time{height:34px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:10px;border:1px solid #2d769381;background:linear-gradient(125deg,#0f3352be,#06192bdc);padding:0 11px;color:#d4f9ff;font-weight:800;white-space:nowrap}
.v4-live-indicator{color:#53edcc;font-size:10px}.v4-live-indicator i{width:7px;height:7px;border-radius:50%;background:#45ffe0;box-shadow:0 0 11px #15fac1;animation:v4blink 2.6s ease-in-out infinite}.v4-hud-score svg{color:#ffd26a}.v4-hud-time svg{color:#40f0ed}.v4-hud-time strong{font-size:16px;direction:ltr}.v4-stage-steps{flex:0 0 35px;min-height:0;position:relative}
.game-v4 .steps{height:35px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.game-v4 .step{height:35px;border:1px solid #2b799670;background:linear-gradient(140deg,#10334baf,#061b30a6);border-radius:9px;font-size:11px;justify-content:center;min-width:0}
.game-v4 .step.current{background:linear-gradient(100deg,#146c7a,#0e455f);border-color:#2cf4e2cc;box-shadow:0 0 18px #2be9d637,inset 0 0 12px #10e8de20}.game-v4 .step.current i{box-shadow:0 0 14px #26f9db}.game-v4 .step.done{border-color:#36ab9991}
.v4-theatre{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:19px;border:1px solid #3591a2aa;background:#061a2d;box-shadow:inset 0 0 65px #020812cf,0 20px 45px #0209157a;isolation:isolate}
.v4-room-photo{position:absolute;inset:0;background-image:linear-gradient(90deg,#03122239 0%,#052c4244 27%,#03263a46 57%,#00101db5 100%),linear-gradient(0deg,#00111ff4 0%,#041d2a32 27%,transparent 60%),url('assets/resuscitation-room.webp');background-size:cover,cover,cover;background-position:center,center,center 43%;filter:brightness(.83) saturate(1.25)}
.v4-theatre:after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:19px;box-shadow:inset 0 0 90px 22px #00101ab8,inset 0 1px #77fff448}
.v4-theatre:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent,transparent 3px,#81f3e404 4px);z-index:2;pointer-events:none;opacity:.37}
.v4-ceiling-light{position:absolute;left:34%;width:34%;height:48%;top:-37%;border-radius:50%;box-shadow:0 0 90px 70px #4fffe01f;pointer-events:none;z-index:1;animation:v4Light 8s ease-in-out infinite}
/* The transparent patient photo is independent of all controls. */
.v4-person-stage{position:absolute;z-index:3;left:22%;right:21%;top:0;bottom:54px;pointer-events:none;filter:drop-shadow(0 5px 12px #001a27)}
.v4-bed-frame{position:absolute;left:50%;top:10%;bottom:-19%;width:min(63%,370px);transform:translateX(-50%);background:linear-gradient(90deg,#0c2d42 0%,#3e7898 8%,#96c5d5 23%,#b5d4df 50%,#679db7 79%,#1d4a68 94%,#052037 100%);border:9px solid #2a5971;border-radius:33% 33% 22% 22% / 16% 16% 10% 10%;box-shadow:0 0 0 5px #061b2bdc,0 15px 40px #000b;opacity:.92}
.v4-bed-pillow{position:absolute;left:13%;right:13%;top:3%;height:26%;background:linear-gradient(140deg,#c4e0e8,#669eb5 72%,#457894);border-radius:34%;box-shadow:inset -9px 5px 17px #4d6e859c,0 10px 13px #082a485c}
.v4-bed-cover{position:absolute;left:3%;right:3%;bottom:-1%;height:13%;background:linear-gradient(130deg,#c4dce8,#6293ad 65%,#2e647e);border-radius:18px 18px 24px 24px;box-shadow:0 -4px 14px #0a47624a}
.v4-bed-rail{position:absolute;top:33%;height:65%;width:12px;border-radius:12px;background:linear-gradient(90deg,#254558,#c0e4ef,#295f7b);border:1px solid #a3d7e7;opacity:.75;box-shadow:0 0 12px #62dced8a}
.v4-bed-rail-left{left:17%}.v4-bed-rail-right{right:16%}
.v4-person-figure{height:113%;aspect-ratio:2/3;position:absolute;left:50%;bottom:-23%;transform:translateX(-50%);pointer-events:none}
.v4-person-figure img{display:block;height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 13px 13px #0009) saturate(.88) contrast(1.06)}
.v4-spot{position:absolute;left:var(--sx);top:var(--sy);width:34px;height:34px;display:grid;place-items:center;transform:translate(-50%,-50%);border:1px solid #77ffed;border-radius:50%;color:#dcfffa;background:radial-gradient(circle,#137b839e 9%,#05374eac 60%,#032437c9);box-shadow:0 0 0 5px #00decf19,0 0 18px #37f9e6b0,inset 0 0 12px #40ffeb39;pointer-events:auto;cursor:pointer;z-index:5;animation:v4SpotPulse 2.5s ease-in-out infinite;transition:background .2s,border .2s,filter .2s}
.v4-spot span{display:grid;place-items:center}.v4-spot svg{filter:drop-shadow(0 0 3px #0ff)}.v4-spot:hover,.v4-spot:focus-visible{background:#057d8c;filter:brightness(1.33);outline:2px solid #b1fff7;outline-offset:2px}.v4-spot.checked{background:#15836a;border-color:#9dffe0}.v4-spot.pad-spot{width:48px;height:58px;border:2px dashed #ffdd95;border-radius:13px;color:#fff1c2;background:#a97c395f;box-shadow:0 0 0 4px #edbe6f29,0 0 19px #ffce7195;animation:v4PadGlow 2.2s infinite}.v4-spot.pad-spot.placed{background:#1b8577cc;border-color:#79ffe6;border-style:solid;animation:none}.v4-spot.wrong{opacity:.94;width:32px;height:32px;animation:none;box-shadow:0 0 0 4px #0df5e512,0 0 12px #12f9e433}
.v4-clinical-floating{position:absolute;left:50%;top:7%;transform:translateX(-50%);padding:5px 12px;color:#cbf6ff;letter-spacing:.13em;font-size:9px;font-weight:800;text-shadow:0 0 7px #6affff;white-space:nowrap;opacity:.8}
/* On-scene 3D-looking medical hardware */
.v4-left-dock{position:absolute;z-index:6;left:1.4%;top:2.7%;bottom:56px;width:clamp(210px,21.6%,310px);display:flex;flex-direction:column;align-items:stretch;gap:8px;pointer-events:auto}
.v4-hardware-monitor{position:relative;flex:0 0 clamp(115px,25%,167px);min-height:0;filter:drop-shadow(8px 14px 12px #0008)}
.v4-monitor-bezel{height:100%;padding:7px 9px 10px;border:7px solid #607f99;border-right-color:#96bfd2;border-top-color:#9fbccc;border-left-color:#43617b;border-bottom-color:#294b61;border-radius:16px;background:#0d1727;box-shadow:inset 0 0 0 2px #0e334d,0 0 0 2px #1b4057,inset 0 0 18px #000}
.v4-monitor-label{display:flex;justify-content:space-between;align-items:center;direction:ltr;gap:6px;color:#65d9df;font-size:8px;font-weight:800;letter-spacing:.055em;margin-bottom:2px}.v4-monitor-label b{color:#ff668a;background:#67284298;border-radius:4px;padding:1px 7px;font-size:10px}
.v4-monitor-bezel .monitor{padding:0;border:0;box-shadow:none;background:#00111b}.v4-monitor-bezel .monitor-top{font-size:8px;padding:0 3px}.v4-monitor-bezel .monitor-wave{height:clamp(42px,8.5vh,79px);background:repeating-linear-gradient(90deg,#07383034 0 1px,transparent 1px 17px),#00151c}.v4-monitor-bezel .monitor-wave svg{filter:drop-shadow(0 0 6px #0f8)}.v4-monitor-bezel .monitor-values{font-size:9px;color:#44ecb7}.v4-monitor-stand{position:absolute;left:46%;right:46%;height:16px;bottom:-13px;background:linear-gradient(90deg,#5e8aa0,#bbd6e3,#557789);border-radius:2px;box-shadow:0 0 0 2px #113247}
.v4-defib-unit{position:relative;flex:1;min-height:214px;max-height:360px;display:flex;flex-direction:column;gap:4px;border:7px solid #668aa6;border-top-color:#d5e0ea;border-left-color:#9dafc7;border-right-color:#3b5e7a;border-bottom-color:#2d4e6a;border-radius:22px;background:linear-gradient(145deg,#718fa5 0%,#3a576e 14%,#183b54 48%,#213c51 95%);box-shadow:inset 0 0 20px #00111e,0 9px 0 #153148,0 16px 25px #000b;padding:10px 11px 7px;isolation:isolate}
.v4-device-handle{position:absolute;left:28%;right:28%;top:-17px;height:22px;border:8px solid #6f8aa2;border-bottom:none;border-radius:14px 14px 0 0;box-shadow:0 -2px 0 #acd7e5;z-index:-1}.v4-device-handle span{position:absolute;left:10%;right:10%;top:-3px;height:3px;background:#c5d9e3}
.v4-device-head{display:flex;align-items:center;justify-content:space-between;gap:5px;direction:ltr;color:#f4ffff;font-weight:900;font-size:9px}.v4-device-head>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.v4-power{border:1px solid #15f1c5;color:#9bffe9;border-radius:7px;padding:3px 8px;background:#073c3e;display:inline-flex;align-items:center;gap:3px;font-size:9px;font-weight:900}.v4-power.on{background:#137d67;box-shadow:0 0 12px #38f6bf63}.v4-power-pulse{animation:v4Power 2s infinite}
.v4-device-lcd{display:grid;grid-template-columns:1fr auto;align-items:end;gap:0 7px;background:radial-gradient(ellipse at 55% 40%,#0a4c61,#031621 90%);border:2px solid #133344;box-shadow:inset 0 0 20px #0009,0 0 5px #30cde16b;border-radius:8px;padding:5px 8px;direction:ltr;min-height:61px}.v4-device-lcd strong{font-size:30px;line-height:1;color:#5dfcf0;letter-spacing:-.07em;text-shadow:0 0 15px #41f6db8c}.v4-device-lcd small{font-size:11px;letter-spacing:0}.v4-device-small{font-size:7px;grid-column:1/-1;color:#58c5d2;letter-spacing:.065em}.v4-device-lcd>span{font-size:8px;color:#b5e1ed}.v4-charge-track{grid-column:1/-1;height:4px;background:#0a2637;border-radius:7px;margin-top:2px;overflow:hidden}.v4-charge-track i{display:block;height:100%;background:linear-gradient(90deg,#f9af3b,#ffefac);border-radius:7px;box-shadow:0 0 8px #ffc456;transition:width .55s ease}
.v4-device-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;direction:ltr}.v4-device-choices button{border:1px solid #386880;border-radius:7px;min-height:26px;background:#0b2a43;color:#d5f4fb;font-size:10px;font-weight:700}.v4-device-choices button.selected{background:#06687b;border-color:#57fdec;color:white;box-shadow:0 0 10px #30f2df47}.v4-device-choices button:hover,.v4-device-actions button:hover{filter:brightness(1.22)}
.v4-device-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}.v4-device-actions button{min-height:34px;border-radius:8px;font-size:10px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:5px}.v4-charge{background:linear-gradient(#ffc653,#ba741e);color:#332200;border:1px solid #ffe9a4}.v4-clear{background:linear-gradient(#165c83,#07374b);color:#deffff;border:1px solid #63d7e7}.v4-shock{grid-column:1/-1;background:linear-gradient(110deg,#f35b79,#9b1541);border:1px solid #ff759d;color:white;box-shadow:0 0 16px #f32f704d;letter-spacing:.04em}.v4-device-actions button.ready{box-shadow:0 0 12px #fff6,inset 0 0 9px #fff3}.v4-device-caption{color:#cee1ed;text-align:center;font-size:8px;line-height:1.3;max-height:25px;overflow:hidden}
.v4-padtray{display:flex;gap:5px;flex:0 0 31px;min-height:0}.v4-pad-chip{min-width:0;flex:1;display:flex;justify-content:center;align-items:center;gap:4px;border-radius:7px;border:1px dashed #7dd5ed;background:#0b364ec2;color:#ddfaff;font-size:9px;cursor:grab}.v4-pad-chip.chosen{border-color:#fff2b4;color:#fff7be;box-shadow:inset 0 0 10px #d6a74f4d}.v4-pad-chip.placed{border-color:#35ddae;color:#7affe6}
/* Translucent HUD on room's right */
.v4-right-dock{position:absolute;z-index:7;right:1.2%;top:2.7%;bottom:56px;width:clamp(219px,22.5%,308px);min-height:0;display:flex;flex-direction:column;gap:7px;pointer-events:auto}
.v4-floating-card,.v4-actions-container>.card{background:linear-gradient(135deg,#082a42e9,#041729e8 88%);border:1px solid #43a2b3a8;border-radius:14px;backdrop-filter:blur(16px);box-shadow:0 8px 27px #00131cbb,0 0 20px #14d1ce1c,inset 0 1px #79eff827;color:#e9fcff}
.v4-floating-card{padding:10px 12px;flex-shrink:0}.v4-card-head{display:flex;align-items:center;justify-content:space-between;gap:4px;border-bottom:1px solid #2e78946b;padding-bottom:7px;margin-bottom:7px}.v4-card-head h3{display:inline-flex;align-items:center;gap:7px;color:#e6fcff;font-size:12px}.v4-card-head h3 svg{color:#52f8ea}.v4-kicker{font-size:8px;color:#5cc8d1;letter-spacing:.035em}
.v4-patient-list{display:grid;grid-template-columns:1fr 1fr;gap:5px}.v4-patient-list>div{background:#082b45a9;border:1px solid #174c6585;border-radius:7px;padding:3px 6px;display:flex;flex-direction:column;gap:2px}.v4-patient-list small{font-size:8px;color:#99c1cf}.v4-patient-list strong{font-size:10px;color:#ebf8ff;font-weight:700}
.v4-actions-container{flex:1;min-height:145px;display:flex;overflow:hidden}.v4-actions-container>.card{padding:9px 10px!important;flex:1;min-width:0;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#296e86 transparent}
.v4-actions-container .cardhead{margin-bottom:4px}.v4-actions-container .cardhead h3{font-size:12px}.v4-actions-container .subhint{font-size:9px;margin:5px 0;line-height:1.4}.v4-actions-container .actiongroup{gap:4px;margin:4px 0}.v4-actions-container .actiongroup .btn{min-height:30px;font-size:10px;padding:4px 6px}.v4-actions-container .divider{margin:5px 0}.v4-actions-container p.small{font-size:9px;line-height:1.45}.v4-actions-container .notice{font-size:9px;line-height:1.35;padding:6px}.v4-actions-container .progressbar{height:5px}.v4-actions-container .cardhead .pill{font-size:8px}
.v4-goals{flex:0 0 auto;max-height:167px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#266d85 transparent}.v4-goals .v4-card-head{margin-bottom:5px}.v4-objectives{display:grid;grid-template-columns:1fr;gap:4px}.v4-goal{display:flex;gap:7px;align-items:center;min-width:0}.v4-goal span{flex:0 0 13px;height:13px;border:1px solid #377993;border-radius:4px;display:grid;place-items:center;background:#082b45}.v4-goal.complete span{background:#15c39d;border-color:#26ffd5;color:#022d32}.v4-goal small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#b8d6e6}.v4-goal.complete small{color:#70f2d7}
.v4-lower-hud{position:absolute;z-index:9;bottom:8px;right:1.5%;left:1.5%;height:41px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:8px;pointer-events:none}.v4-brief,.v4-eventbar{display:flex;align-items:center;gap:9px;padding:5px 11px;background:#06263bdc;border:1px solid #2b95a9aa;border-radius:10px;backdrop-filter:blur(12px);box-shadow:0 0 18px #053043a1;min-width:0}.v4-label,.v4-eventbar-caption{white-space:nowrap;color:#5dfff0;font-size:10px;display:flex;gap:4px;align-items:center;font-weight:800}.v4-brief>span:last-child,.v4-latest{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#d3e9f4;font-size:10px}.v4-eventbar-caption span{color:#7baebf;font-size:9px}.v4-eventbar-caption strong{color:#adf6f3}.v4-latest{flex:1}
.v4-bottom-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex:0 0 28px;color:#a2c5d0;font-size:9px}.v4-bottom-actions>span{display:flex;align-items:center;gap:5px}.v4-bottom-actions>.btn{min-height:24px}
/* Action-triggered microanimations. No breathing animation on pulseless patient. */
.v4-shock-flash{position:absolute;inset:0;z-index:15;background:#f6ffff;opacity:0;pointer-events:none}.v4-charge-signal,.v4-clear-signal{position:absolute;top:38%;left:43%;z-index:15;padding:10px 18px;border-radius:12px;border:1px solid #ffc057;background:#3d2a13e8;color:#ffeba7;font-weight:900;letter-spacing:.09em;opacity:0;pointer-events:none;text-shadow:0 0 8px #e9c364;box-shadow:0 0 32px #e9b14146}.v4-clear-signal{top:25%;left:37%;color:#ffffff;background:#7e1437eb;border-color:#ff829f}
.cq-charge-event .v4-charge-signal{animation:v4ChargeMsg .88s both}.cq-clear-event .v4-clear-signal{animation:v4ChargeMsg .86s both}.cq-shock-event .v4-shock-flash{animation:v4Flash .82s both}.cq-shock-event .v4-person-figure{animation:v4ShockMotion .45s ease-out}.cq-charge-event .v4-defib-unit{animation:v4DeviceHum .5s both}.cq-power-event .v4-monitor-bezel{animation:v4MonitorOn .65s}.cq-clear-event .v4-defib-unit{box-shadow:0 0 20px #f23d72b0}
@keyframes v4SpotPulse{0%,100%{box-shadow:0 0 0 4px #00decf1a,0 0 13px #37f9e69a}50%{box-shadow:0 0 0 9px #00decf0d,0 0 23px #37f9e6ea}}
@keyframes v4PadGlow{0%,100%{box-shadow:0 0 0 4px #edbe6f29,0 0 11px #ffce71a3}50%{box-shadow:0 0 0 7px #edbe6f18,0 0 22px #ffce71df}}
@keyframes v4Blink{0%,100%{opacity:1}50%{opacity:.35}}@keyframes v4blink{0%,100%{opacity:1}50%{opacity:.4}}
@keyframes v4Power{0%,100%{box-shadow:0 0 7px #0effd25e}50%{box-shadow:0 0 18px #0effd2cb}}
@keyframes v4Light{0%,100%{opacity:.78}50%{opacity:1}}
@keyframes v4Flash{0%,10%{opacity:0}14%{opacity:.92}24%{opacity:0}34%{opacity:.45}48%,100%{opacity:0}}
@keyframes v4ShockMotion{0%,30%,80%,100%{transform:translateX(-50%)}38%{transform:translateX(calc(-50% - 3px))}47%{transform:translateX(calc(-50% + 3px))}}
@keyframes v4ChargeMsg{0%,100%{opacity:0;transform:translateY(15px) scale(.92)}20%,74%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes v4DeviceHum{0%,100%{filter:brightness(1)}45%{filter:brightness(1.4)}}
@keyframes v4MonitorOn{0%{filter:brightness(.2)}30%{filter:brightness(1.65)}100%{filter:brightness(1)}}
@media (min-width:1600px){.v4-left-dock{width:min(21%,300px)}.v4-right-dock{width:min(22%,315px)}.v4-person-figure{height:118%;bottom:-26%}.v4-hardware-monitor{flex-basis:165px}.v4-defib-unit{max-height:385px;gap:6px;padding:12px}.v4-device-choices button{min-height:30px}.v4-device-actions button{min-height:39px}.v4-goals{max-height:195px}.v4-actions-container .actiongroup .btn{min-height:35px}.v4-heading-info h1{font-size:22px}}
@media (max-width:1250px) and (min-width:841px){.v4-game-heading{gap:6px}.v4-heading-info p{display:none}.v4-heading-actions{gap:4px}.v4-heading-actions .v4-live-indicator{display:none}.v4-hud-score,.v4-hud-time{padding:0 7px;font-size:10px}.v4-left-dock{left:.8%;width:clamp(195px,22.7%,245px)}.v4-right-dock{right:.8%;width:clamp(200px,24%,250px)}.v4-person-stage{left:21%;right:23%}.v4-spot{width:28px;height:28px}.v4-spot.pad-spot{width:38px;height:45px}.v4-patient-card{padding:7px}.v4-objectives{gap:2px}}
@media (max-height:785px) and (min-width:841px){.v4-game-heading{flex-basis:44px}.v4-heading-info h1{font-size:16px}.v4-stage-steps{flex-basis:28px}.game-v4 .steps,.game-v4 .step{height:28px;font-size:9px}.v4-bottom-actions{flex-basis:25px}.v4-hardware-monitor{flex-basis:120px}.v4-left-dock{gap:5px}.v4-defib-unit{padding:6px 8px;min-height:190px;gap:3px}.v4-device-lcd{min-height:50px;padding:3px 5px}.v4-device-lcd strong{font-size:23px}.v4-device-actions button{min-height:28px}.v4-device-choices button{min-height:23px}.v4-device-caption{font-size:7px}.v4-padtray{flex-basis:26px}.v4-right-dock{gap:5px}.v4-floating-card{padding:7px 9px}.v4-goals{max-height:138px}.v4-patient-list{gap:3px}.v4-actions-container .actiongroup .btn{min-height:26px}.v4-lower-hud{height:35px}.v4-brief,.v4-eventbar{padding:4px 7px}}
@media (max-width:840px){
 .game-v4{height:auto;overflow:visible;display:flex!important;gap:10px}
 .v4-game-heading{flex-wrap:wrap;align-items:flex-start;flex-basis:auto;padding:3px 0 8px}.v4-heading-info p{font-size:9px}.v4-heading-actions{flex-wrap:wrap;justify-content:flex-start}
 .v4-stage-steps{flex-basis:auto}.game-v4 .steps{grid-template-columns:repeat(5,minmax(0,1fr));height:34px}.game-v4 .step{font-size:0}.game-v4 .step span{display:none}
 .v4-theatre{height:auto;min-height:0;display:flex;flex-direction:column;gap:12px;padding:12px;overflow:visible}
 .v4-room-photo{inset:0;background-position:30% top}.v4-ceiling-light{top:-10%;height:200px}
 .v4-person-stage{order:0;position:relative;left:auto;right:auto;top:auto;bottom:auto;height:510px;min-height:510px;z-index:4;flex:0 0 auto}
 .v4-person-figure{height:118%;bottom:-21%}.v4-bed-frame{top:13%;bottom:-4%;width:min(68%,330px)}.v4-bed-rail{height:53%}.v4-clinical-floating{top:2%}
 .v4-left-dock{order:1;position:relative;left:auto;right:auto;top:auto;bottom:auto;width:100%;height:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;z-index:5;gap:10px}
 .v4-hardware-monitor{height:220px;flex:auto}.v4-monitor-bezel .monitor-wave{height:90px}.v4-defib-unit{max-height:none;min-height:270px;flex:auto}.v4-padtray{grid-column:1/-1;height:34px}
 .v4-right-dock{order:2;position:relative;left:auto;right:auto;top:auto;bottom:auto;width:100%;min-height:0;z-index:5;display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .v4-patient-card{grid-column:1}.v4-actions-container{grid-column:2;grid-row:1/3;min-height:260px}.v4-goals{grid-column:1;max-height:300px}
 .v4-lower-hud{order:3;position:relative;left:auto;right:auto;top:auto;bottom:auto;height:auto;display:flex;flex-direction:column;z-index:4;gap:8px}.v4-brief,.v4-eventbar{min-height:42px}
 .v4-bottom-actions{flex-basis:auto;flex-wrap:wrap}.v4-shock-flash{z-index:15}
}
@media (max-width:540px){.v4-game-heading{gap:8px}.v4-heading-actions>.btn{font-size:9px}.v4-live-indicator{display:none}.v4-hud-time strong{font-size:13px}.v4-person-stage{height:390px;min-height:390px}.v4-person-figure{height:111%;bottom:-16%}.v4-bed-frame{width:74%}.v4-spot{width:27px;height:27px}.v4-spot.pad-spot{width:37px;height:44px}.v4-left-dock{display:flex;flex-direction:column}.v4-hardware-monitor{height:160px;flex:none}.v4-monitor-bezel .monitor-wave{height:55px}.v4-defib-unit{min-height:270px}.v4-right-dock{display:flex;flex-direction:column}.v4-goals{max-height:none}.v4-actions-container{min-height:270px}.v4-theatre{padding:9px}.v4-clinical-floating{font-size:8px}}
@media (prefers-reduced-motion: reduce){.game-v4 *, .game-v4 *::before, .game-v4 *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Final interaction polish. */
.v4-defib-unit:after{content:"";position:absolute;bottom:23px;left:27%;right:27%;height:15px;border-top:1px solid #8fafb75a;border-bottom:1px solid #0118267a;opacity:.55;background:repeating-linear-gradient(90deg,#081e30 0 4px,#7393a6 4px 6px,#10293f 6px 9px);border-radius:5px;pointer-events:none}
.v4-actions-container>.card{display:flex;flex-direction:column}
.v4-actions-container>.card>.notice:last-child{margin-top:auto}
.v4-spot[data-tooltip]:hover:after,.v4-spot[data-tooltip]:focus-visible:after{content:attr(data-tooltip);position:absolute;bottom:calc(100% + 13px);left:50%;transform:translateX(-50%);width:max-content;max-width:190px;white-space:normal;line-height:1.5;text-align:center;padding:6px 9px;border-radius:8px;border:1px solid #4ef7e4b8;color:#eafffc;background:#042438eb;box-shadow:0 0 13px #1ad2ce8a;z-index:20;font-size:10px;font-weight:700;direction:rtl;pointer-events:none}
.cq-compress-event .v4-spot[data-spot="cpr"]{animation:v4ChestCompress .44s ease-in-out both}
.cq-start_cpr-event .v4-spot[data-spot="cpr"],.cq-resume-event .v4-spot[data-spot="cpr"]{animation:v4ChestCompress .44s ease-in-out both}
@keyframes v4ChestCompress{0%,100%{scale:1}40%{scale:1.4;box-shadow:0 0 0 13px #47e9dc20,0 0 27px #47e9dce0}}
@media (prefers-reduced-motion:reduce){.v4-spot{animation:none!important}}
