.test-animation-open{overflow:hidden}
.test-animation-inspector{position:fixed;inset:0;z-index:2900;overflow-y:auto;overscroll-behavior:contain;background:var(--cream,#faf9f0);color:#283c32;padding:20px clamp(12px,3vw,40px) 32px;font-size:15px;line-height:1.5}
.test-animation-heading{max-width:1400px;margin:0 auto 16px;display:block;height:auto;min-height:0;padding:0;border:0;background:none}
.test-animation-heading h2{font-size:26px;margin:4px 0}
.test-animation-heading p{margin:0;color:#62745e}
.test-animation-layout{max-width:1400px;margin:auto;display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:24px;align-items:start}
.test-animation-fields{grid-column:1;grid-row:1;background:#f0f4e9;border:1px solid #ced9c2;border-radius:8px;padding:16px;display:block;min-width:0}
.test-animation-inspector h3{font-size:18px;margin:0 0 8px}
.test-animation-inspector label{display:grid;gap:5px;margin:0;font-size:13px;font-weight:700;min-width:0}
.test-animation-inspector select{display:block;width:100%;min-width:0;max-width:100%;min-height:44px;border:1px solid #afbea6;border-radius:5px;padding:9px 30px 9px 10px;background:#fffef8;color:#314830;font:inherit;font-size:14px;text-overflow:ellipsis}
.test-animation-inspector select:disabled{opacity:.65}
.test-animation-inspector :focus-visible{outline:3px solid #527652;outline-offset:3px}
.test-animation-stage{grid-column:2;grid-row:1;min-width:0}
.test-animation-stage canvas{display:block;width:100%;height:auto;max-height:60vh;object-fit:contain;aspect-ratio:8/5;background:#d7e2d1;border:1px solid #b1c3a9;border-radius:8px}
.test-animation-stage p{font-size:14px;margin:10px 0;color:#576c53}
.test-animation-stage small,.test-animation-fields small{display:block;font-size:12px;color:#63735b}
.test-animation-playback{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:12px 0}
.test-animation-playback button{flex:0 0 auto;width:auto;min-height:44px;padding:8px 13px;font-size:13px}
.test-animation-playback label{width:82px}
.test-animation-playback select{padding-right:15px}
.test-animation-scrub input{width:100%;min-height:32px;margin:0;accent-color:#577a50}
#testAnimationPhase{min-height:24px;font-variant-numeric:tabular-nums;font-weight:700}
#testAnimationNotice{margin:0;font-size:12px;color:#506947}
#testAnimationNotice:empty{display:none}
@media(max-width:760px){
 .test-animation-inspector{padding:12px 12px 24px}
 .test-animation-heading{margin-bottom:12px}
 .test-animation-heading h2{font-size:20px}
 .test-animation-heading p{font-size:13px}
 .test-animation-layout{display:flex;flex-direction:column;gap:18px}
 .test-animation-stage,.test-animation-fields{width:100%;box-sizing:border-box}
 .test-animation-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .test-animation-fields h3,.test-animation-fields label:has(#testAnimationEquipment),.test-animation-fields label:has(#testAnimationTechnique),#testAnimationCount,#testAnimationNotice{grid-column:1/-1}
 .test-animation-playback{gap:6px}
 .test-animation-playback button{padding:8px 10px}
 .test-animation-stage canvas{max-height:none}
}

.test-animation-fields>summary{cursor:pointer;font-size:16px;font-weight:700;min-height:36px;padding:0;line-height:1.5}
.test-animation-fields>summary small{font-weight:400;font-size:12px}
.test-animation-inputs{display:grid;gap:12px;margin-top:14px;min-width:0}
[data-test-animation-watch]{display:none}
@media(max-width:760px){
 .test-animation-fields{order:-1;padding:12px}
 .test-animation-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .test-animation-inputs label:has(#testAnimationEquipment),.test-animation-inputs label:has(#testAnimationTechnique),#testAnimationCount,#testAnimationNotice,[data-test-animation-watch]{grid-column:1/-1}
 [data-test-animation-watch]{display:block;width:auto;min-height:44px;font-size:14px}
}

.test-animation-inspector label[hidden]{display:none}
