/* Bounded pilot: only the selected eye lesson receives data-eye-compact. */
#anatomy-eye[data-eye-compact] [data-an-workspace]{container:eye-workspace / inline-size;}
#anatomy-eye[data-eye-compact] .an-shell{overflow:visible;}
#anatomy-eye[data-eye-compact] .an-top{padding:10px 14px;gap:12px;}
#anatomy-eye[data-eye-compact] .an-top strong{font-size:14px;}
#anatomy-eye[data-eye-compact] .an-top small{font-size:11px;margin-top:2px;}
#anatomy-eye[data-eye-compact] .an-review{font-size:10px;background:#f4f7fa;border-color:#c9d7e5;color:#123e68;}
#anatomy-eye[data-eye-compact] .an-scenes{padding:6px;gap:6px;}
#anatomy-eye[data-eye-compact] .an-scenes button{min-height:48px;padding:7px 10px;font-size:12px;}
#anatomy-eye[data-eye-compact] .an-scenes small{font-size:10px;margin-top:2px;}
#anatomy-eye[data-eye-compact] .an-body{padding:12px;}
#anatomy-eye[data-eye-compact] .an-workbench{grid-template-columns:minmax(0,1fr);grid-template-areas:"visual" "choices";gap:14px;align-items:start;}
#anatomy-eye[data-eye-compact] .an-visual{grid-area:visual;min-width:0;scroll-margin-top:64px;}
#anatomy-eye[data-eye-compact] .an-stage{height:clamp(280px,39dvh,360px);min-height:280px;scroll-margin-top:14px;}
#anatomy-eye[data-eye-compact] .an-toolbar{margin:0 0 8px;gap:6px;}
#anatomy-eye[data-eye-compact] .an-toolbar button{font-size:11px;min-height:44px;padding:7px 10px;}
#anatomy-eye[data-eye-compact] .an-lesson-caption{display:flex;flex-direction:column;gap:8px;min-height:0;padding:12px;margin:8px 0 0;border-top:2px solid #123e68;border-radius:6px;box-shadow:none;background:#fff;}
#anatomy-eye[data-eye-compact] .an-lesson-caption>div:first-child{flex:0 0 auto;width:100%;}
#anatomy-eye[data-eye-compact] .an-lesson-caption strong{font-size:14px;line-height:1.45;}
#anatomy-eye[data-eye-compact] .an-lesson-caption small{font-size:10px;margin:0 0 2px;}
#anatomy-eye[data-eye-compact] .an-lesson-caption>.an-caption-actions{display:flex;flex:0 0 auto;flex-direction:row;flex-wrap:wrap;gap:6px;width:100%;min-width:0;}
#anatomy-eye[data-eye-compact] .an-caption-navigation{display:contents;}
#anatomy-eye[data-eye-compact] .an-caption-actions button{flex:1 1 70px;min-height:44px;padding:7px 8px;font-size:11px;}
#anatomy-eye[data-eye-compact] [data-an-caption-tools]:empty{display:none;}
#anatomy-eye[data-eye-compact] .aec-fold{width:100%;min-width:0;margin:0;border:0;border-top:1px solid #d5e0e9;background:#fff;padding:0;}
#anatomy-eye[data-eye-compact] .aec-fold>summary{min-height:44px;padding:11px 0;cursor:pointer;color:#123e68;font:700 12px/1.6 Arial,sans-serif;}
#anatomy-eye[data-eye-compact] .aec-fold>summary:focus-visible{outline:3px solid #ef1b2d;outline-offset:3px;}
#anatomy-eye[data-eye-compact] .aec-camera{padding-inline:12px;border:1px solid #d5e0e9;border-top:0;border-radius:0 0 6px 6px;}
#anatomy-eye[data-eye-compact] .aec-camera .an-camera{margin-top:0;}
#anatomy-eye[data-eye-compact] .aec-console{grid-area:choices;padding:12px;border:1px solid #d5e0e9;border-radius:6px;background:#f4f7fa;min-width:0;}
#anatomy-eye[data-eye-compact] .aec-console>h3{font-size:14px!important;line-height:1.4!important;text-transform:none;margin:0 0 10px!important;color:#092744;}
#anatomy-eye[data-eye-compact] .aec-current-explanation{margin:0 0 14px;padding:14px;background:#fff;border:1px solid #c9d7e5;border-top:3px solid #ef1b2d;border-radius:6px;min-width:0;overflow-wrap:normal;word-break:normal;}
#anatomy-eye[data-eye-compact] .aec-current-explanation .aec-explanation-label{font:800 10px/1.5 Arial,sans-serif!important;letter-spacing:.06em;text-transform:uppercase;color:#a51b35!important;margin:0 0 8px!important;}
#anatomy-eye[data-eye-compact] .aec-current-explanation .aec-explanation-count{font:700 10px/1.5 Arial,sans-serif!important;color:#526e87!important;margin:0 0 5px!important;}
#anatomy-eye[data-eye-compact] .aec-current-explanation h4{font:700 16px/1.4 Arial,sans-serif!important;color:#092744!important;margin:0 0 9px!important;text-transform:none;}
#anatomy-eye[data-eye-compact] .aec-current-explanation [data-aec-current-copy]{font:15px/1.65 Arial,sans-serif!important;color:#102236!important;margin:0!important;}
#anatomy-eye[data-eye-compact] .aec-console .aec-fold{background:transparent;}
#anatomy-eye[data-eye-compact] .aec-console .an-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 12px;}
#anatomy-eye[data-eye-compact] .aec-console .an-details button{min-width:0;font-size:11px;min-height:44px;padding:7px 6px;}
#anatomy-eye[data-eye-compact] .aec-console .an-process{padding:0;margin:0;border:0;}
#anatomy-eye[data-eye-compact] .aec-console .an-process h3{font-size:14px!important;}
#anatomy-eye[data-eye-compact] .aec-console .an-steps{grid-template-columns:1fr;gap:5px;margin:8px 0;}
#anatomy-eye[data-eye-compact] .aec-console .an-steps button{font-size:11px;min-height:44px;padding:7px 9px;}
#anatomy-eye[data-eye-compact] .aec-console .an-step-copy{min-height:0;padding:10px;}
#anatomy-eye[data-eye-compact] .aec-console .an-damage{margin:0;}
#anatomy-eye[data-eye-compact] .aec-console .an-mechanisms{display:grid;grid-template-columns:1fr;gap:6px;margin:0 0 8px;}
#anatomy-eye[data-eye-compact] .aec-console .an-mechanisms button{font-size:12px;min-height:44px;}
#anatomy-eye[data-eye-compact] .aec-console .an-parts{margin:0;border-top:1px solid #d5e0e9;}
#anatomy-eye[data-eye-compact] .aec-console .an-parts-list{grid-template-columns:1fr 1fr;}
#anatomy-eye[data-eye-compact] .aec-console .an-panel{position:static;display:block;grid-area:auto;}
#anatomy-eye[data-eye-compact] .aec-console .an-selected-reading{margin:0;border:0;border-top:1px solid #d5e0e9;padding:0;background:transparent;}
#anatomy-eye[data-eye-compact] .aec-console .an-panel h3{font-size:17px!important;}
#anatomy-eye[data-eye-compact] .aec-console .an-practice{margin:0;padding:0;border:0;}
#anatomy-eye[data-eye-compact] .aec-console .an-practice h3{font-size:15px!important;}
#anatomy-eye[data-eye-compact] .aec-console .an-scenario-tabs{display:grid;grid-template-columns:1fr;gap:6px;}
#anatomy-eye[data-eye-compact] .aec-console .an-harm-player{padding:10px;}
#anatomy-eye[data-eye-compact] .aec-console .an-harm-steps{grid-template-columns:1fr 1fr;}
#anatomy-eye[data-eye-compact] .aec-console .an-harm-reading{min-height:0;}
#anatomy-eye[data-eye-compact] .aec-console .an-more{padding:8px;margin:10px 0;}
#anatomy-eye[data-eye-compact] .an-dialog .an-stage{height:clamp(400px,57dvh,660px);min-height:400px;}
@container eye-workspace (min-width:680px){
 #anatomy-eye[data-eye-compact] .an-workbench{grid-template-columns:minmax(0,1fr) minmax(260px,31%);grid-template-areas:"visual choices";}
 #anatomy-eye[data-eye-compact] .an-visual{position:sticky;top:12px;}
}
#anatomy-eye[data-eye-compact] .aec-console .an-step-copy p{font-size:14px!important;line-height:1.75!important;}
@container eye-workspace (max-width:420px){
 #anatomy-eye[data-eye-compact] .an-caption-actions button{flex-basis:calc(50% - 6px);}
 #anatomy-eye[data-eye-compact] .an-top{align-items:start;flex-wrap:wrap;}
 #anatomy-eye[data-eye-compact] .an-stage{height:300px;min-height:280px;}
}
@container eye-workspace (max-width:679px){
 #anatomy-eye[data-eye-compact] .an-visual>.aec-current-explanation{margin:8px 0 0;}
 #anatomy-eye[data-eye-compact] .an-lesson-caption>div:first-child{display:none;}
 #anatomy-eye[data-eye-compact] .an-lesson-caption{padding-block:9px;}
}
@media print{#anatomy-eye[data-eye-compact] .an-workbench{display:block;}#anatomy-eye[data-eye-compact] .an-visual{position:static;}#anatomy-eye[data-eye-compact] .aec-fold>*{display:block;}#anatomy-eye[data-eye-compact] .an-stage{height:400px;}}
