/* Only the live examination viewer follows the page. Controls and full keys stay readable. */
.ward-layout.follows-patient{grid-template-columns:minmax(0,1.3fr) minmax(350px,.9fr);align-items:start;gap:24px}
.ward-exam-flow{display:flex;flex-direction:column;gap:16px;min-width:0}
.ward-exam-flow>.mentor,.ward-exam-flow>.nerve-workbench{margin:0}
.ward-exam-flow>.exam-toolbar{margin:0;flex-shrink:0}
.ward-exam-flow .field-observation{min-height:0;margin:0;padding:8px 0}
.ward-exam-flow .case-history{margin:0}
.ward-exam-flow .evidence-board #evidence-list{display:flex;flex-direction:column;gap:9px}
.ward-exam-flow .evidence-note{margin:0}
body.in-ward .ward-layout.follows-patient>.patient-stage{position:sticky;top:12px;z-index:6;grid-row:auto;align-self:start;height:min(700px,calc(100svh - 24px));margin:0}
body.in-ward .ward-layout.follows-patient>.patient-stage.has-anatomy-labels .patient-canvas{top:110px;height:calc(100% - 150px);bottom:auto}
body.in-ward .ward-layout.follows-patient>.patient-stage.has-anatomy-labels.head-with-anatomy .patient-canvas{top:225px;height:calc(100% - 260px)}
.follows-patient .head-with-anatomy .head-motion-status{bottom:34px}
.follows-patient .anatomy-leader.bone,.follows-patient .anatomy-leader.structure{display:none}
.anatomy-label-record{min-width:0}
.anatomy-label-record>.anatomy-number-key{position:relative;inset:auto;margin:0;width:100%;pointer-events:auto}
.anatomy-label-record .vertebral-section{grid-template-columns:90px minmax(0,1fr)}
.anatomy-label-record .vertebra-numbers{gap:4px}
.anatomy-label-record .vertebra-numbers button{min-width:30px;min-height:30px;font-size:11px}
.anatomy-label-record .structure-name-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.anatomy-label-record .structure-name-grid button{font-size:11px;min-height:38px}
.anatomy-label-record .vertebra-limit,.anatomy-label-record .vertebra-insight{font-size:10px}
@media(min-width:851px) and (max-width:1100px){.ward-layout.follows-patient{grid-template-columns:minmax(0,1.1fr) minmax(330px,.9fr);gap:16px}.follows-patient .anatomy-region-name{font-size:10px;max-width:145px}}
@media(max-width:850px){
 .ward-layout.follows-patient{display:block;--patient-follow-height:clamp(270px,42svh,430px)}
 body.in-ward .ward-layout.follows-patient>.patient-stage{height:var(--patient-follow-height);top:8px;margin-bottom:16px;box-shadow:0 5px 20px #102e2a66}
 .ward-exam-flow{gap:15px}
 .ward-exam-flow :is(button,select,input,summary,section,.exam-toolbar,.head-exam-controls){scroll-margin-top:calc(var(--patient-follow-height) + 24px)}
 .ward-exam-flow>.mentor{display:block;padding:17px}
 .ward-exam-flow .mentor .guide-action{width:100%;margin-top:12px}
 body.in-ward .ward-layout.follows-patient>.patient-stage.has-anatomy-labels .patient-canvas,body.in-ward .ward-layout.follows-patient>.patient-stage.has-anatomy-labels.head-with-anatomy .patient-canvas{top:164px;height:calc(100% - 193px)}
 body.in-ward .ward-layout.follows-patient>.patient-stage.has-anatomy-labels.anatomy-macro .patient-canvas{top:100px;height:calc(100% - 130px)}
 .follows-patient .patient-ident{top:12px;left:15px}
 .follows-patient .patient-ident h1{font-size:28px;margin:5px 0}
 .follows-patient .patient-ident .eyebrow{font-size:7px}
 .follows-patient .patient-ident p.patient-exam-status{font-size:10px;max-width:190px}
 .follows-patient .anatomy-region-labels,.follows-patient .head-with-anatomy .anatomy-region-labels{top:83px;gap:4px;left:8px;right:8px}
 .follows-patient .anatomy-region-name{padding:4px;font-size:9px;min-height:22px}
 .follows-patient .scene-view-controls{right:9px;bottom:49px;top:auto;gap:3px;flex-direction:column}
 .follows-patient .has-anatomy-labels .scene-view-controls{top:12px;bottom:auto;flex-direction:row}
 .follows-patient .scene-view-controls button{min-height:30px;min-width:30px;font-size:8px;padding:4px 6px}
 .follows-patient .scene-view-controls button:first-child{font-size:14px}
 .follows-patient .scene-mode{bottom:30px;padding:5px 7px;left:11px;right:auto;max-width:calc(100% - 22px)}
 .follows-patient .scene-caption{bottom:9px;left:12px;font-size:6px}
 .follows-patient .head-context-label{top:58px;right:10px}
 .follows-patient .head-with-anatomy .head-motion-status{bottom:28px;font-size:7px}
 .anatomy-label-record .vertebral-section{grid-template-columns:80px minmax(0,1fr)}
 .anatomy-label-record .vertebra-numbers button{font-size:10px}
}
@media(max-height:620px) and (max-width:850px){.ward-layout.follows-patient{--patient-follow-height:255px}.follows-patient .anatomy-region-labels{top:71px}.follows-patient .anatomy-region-name{font-size:9px;padding:2px}.follows-patient .patient-ident h1{font-size:23px}.follows-patient .patient-ident p.patient-exam-status{margin:0}body.in-ward .ward-layout.follows-patient>.patient-stage.has-anatomy-labels .patient-canvas{top:145px;height:calc(100% - 173px)}}
