:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1e3029;background:#f6f8f6;--accent:#236348;--line:#d4ddd7;--muted:#56675e;--surface:#fff}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,select,input{min-height:44px}button,select{cursor:pointer}button{background:white;border:1px solid var(--line);border-radius:9px;padding:9px 15px;font-weight:550}button:hover{background:#edf3ef;border-color:#879d8f}button:disabled{cursor:not-allowed;opacity:.6}a{color:var(--accent)}button.primary{background:var(--accent);color:white;border-color:var(--accent)}button.primary:hover{background:#174c35}.quiet{border-color:transparent;background:transparent}.wide{width:100%;margin-top:20px}.sr{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.skip{position:absolute;left:12px;top:-80px;z-index:10;background:white;padding:12px}.skip:focus{top:10px}:focus-visible{outline:3px solid #4a8062;outline-offset:3px}header{height:84px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 32px;border-bottom:1px solid var(--line);background:white}.brand{font-size:20px;color:inherit;text-decoration:none;font-weight:650;white-space:nowrap}.brand span{display:block;font-size:12px;color:var(--muted);font-weight:450;margin-top:4px}nav{display:flex;gap:4px;border:1px solid var(--line);padding:3px;border-radius:12px}nav button{border:0;background:transparent;min-width:100px}nav button[aria-pressed=true]{background:#e5efe8;color:#194c34}main{display:grid;grid-template-columns:minmax(0,1fr) 410px;min-height:calc(100dvh - 137px)}#specimen{position:relative;background:#edf1ee;min-height:600px;overflow:hidden}#viewport{position:absolute;inset:0;touch-action:none}#viewport canvas{display:block;width:100%;height:100%}#load-state{position:absolute;top:22px;left:24px;right:24px;background:#fffef5;padding:12px 16px;border-radius:8px;font-size:14px}#load-state:empty{display:none}.model-status{position:absolute;top:22px;left:24px;right:24px;font-size:13px;color:#3d5547;pointer-events:none}.model-status:empty{display:none}.viewer-tools{position:absolute;bottom:48px;left:24px;right:24px;display:flex;justify-content:center;align-items:center;gap:12px}.view-buttons{display:flex;gap:4px}.viewer-tools select{max-width:170px;padding:8px;border-radius:9px;border:1px solid var(--line);background:white}.gesture{position:absolute;bottom:8px;width:100%;text-align:center;color:var(--muted);font-size:12px;pointer-events:none}#study-panel{background:white;padding:30px 30px 24px;min-width:0;overflow-wrap:anywhere}.panel-top{font-size:12px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;min-height:30px;margin-bottom:22px}h1{font-size:28px;line-height:1.15;letter-spacing:-.6px;margin:22px 0 12px;font-weight:620}h2{font-size:16px;margin:26px 0 8px}p{font-size:15px;line-height:1.6;margin:10px 0;max-width:70ch}.cue{color:var(--muted);font-size:14px;margin-bottom:26px}.muted{color:var(--muted);font-size:13px}select,input,textarea{width:100%;border:1px solid #aebeb3;border-radius:8px;background:white;padding:10px 12px;font-size:16px}label{display:block;font-size:14px;font-weight:550;margin:18px 0 7px}textarea{resize:vertical;min-height:90px}details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:28px;padding:6px 0}summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:14px;font-weight:550}#detail-content h2{font-size:14px;margin-top:18px}#detail-content p{font-size:14px}#detail-content{padding-bottom:16px}.browse{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-top:24px;font-size:12px}.browse button{font-size:12px;padding:8px}.source-note{font-size:12px;color:var(--muted);padding-top:20px;margin-top:24px;border-top:1px solid var(--line)}.source-note a{display:inline}.practice-secondary{display:flex;justify-content:space-between;gap:4px;margin-top:12px}.practice-secondary button{font-size:12px;padding:8px;border:0}.ratings{display:flex;gap:8px}.ratings button{flex:1;font-size:13px}#feedback{margin-top:22px;padding:18px;background:#edf3ef;border-radius:10px}#feedback h2{margin-top:0}#feedback p{font-size:14px}.wrong{color:#a52d25}footer{min-height:53px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 30px;font-size:12px;border-top:1px solid var(--line)}footer span{color:var(--muted)}footer button{font-size:12px}dialog{border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 80px #18322430;width:min(580px,calc(100vw - 24px));max-height:85dvh;padding:26px;color:inherit;overscroll-behavior:contain}dialog::backdrop{background:#15251b60}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-head h2{font-size:22px;margin:0}.dialog-head button{font-size:22px;line-height:1;padding:8px 14px}.muscle-list{margin-top:16px}.muscle-list button{width:100%;border-radius:0;border-width:0 0 1px;display:flex;text-align:left;justify-content:space-between;align-items:center;gap:16px;padding:14px 4px}.muscle-list small{display:block;color:var(--muted);font-weight:400;font-size:12px;margin-top:5px}.badge{font-size:11px;white-space:nowrap;color:var(--muted)}#source-content li{margin-bottom:10px;line-height:1.5;font-size:14px}[hidden]{display:none!important}
@media(max-width:950px){header{padding:0 18px}main{grid-template-columns:minmax(0,1fr) 340px}#study-panel{padding:24px 20px}.viewer-tools{left:12px;right:12px;flex-wrap:wrap}#library-button{font-size:12px}nav button{min-width:80px}}
@media(max-width:700px){header{height:auto;min-height:78px;padding:12px 16px;gap:8px;flex-wrap:wrap}.brand{font-size:18px}.brand span{font-size:11px}nav{margin-left:auto}nav button{min-width:65px;font-size:13px;padding:8px 10px}#library-button{width:100%;border-top:1px solid var(--line);border-radius:0;min-height:36px;padding:5px}main{display:block;min-height:0}#specimen{height:48dvh;min-height:320px;max-height:550px}#study-panel{padding:18px 22px 28px}.panel-top{margin-bottom:8px}h1{font-size:25px;margin-top:16px}.cue{margin-bottom:18px}.viewer-tools{bottom:34px;gap:6px}.viewer-tools button,.viewer-tools select{font-size:12px;min-height:44px;padding:8px 10px}.gesture{bottom:0;font-size:11px}footer{padding:8px 16px calc(8px + env(safe-area-inset-bottom));flex-wrap:wrap;gap:3px 12px}footer span{order:3;width:100%;text-align:center;font-size:11px}footer button{margin-left:auto}.model-status{top:12px;font-size:12px}dialog{padding:20px}#answer{font-size:16px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}dialog[open]{animation:appear .15s ease-out}@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}}
header .area-picker{width:170px;font-size:13px}@media(max-width:700px){header .area-picker{order:3;width:calc(100% - 95px)}header #library-button{order:4;width:85px;border:0}header nav{margin-left:auto}} 

#guided-route{display:flex;flex-wrap:wrap;gap:6px;font-size:11px;color:var(--muted)}#guided-route span{padding:5px 8px;border-radius:6px;background:#f1f4f1}#guided-route .active{color:#194c34;background:#e5efe8;font-weight:650}#guided-feedback{margin-top:22px;padding:18px;background:#edf3ef;border-radius:10px}#guided-feedback h2{margin-top:0}#guided-feedback p{font-size:14px}.check-label{display:flex;gap:10px;align-items:center}.check-label input{width:22px;flex:none}#guided-content details p{font-size:13px}#guided-storage{margin-top:16px}header nav button{min-width:75px}header{gap:10px}@media(max-width:700px){header nav{order:2;width:100%;justify-content:space-between}header nav button{flex:1}header .brand{width:100%}#focus-target{font-size:11px}.viewer-tools .view-buttons{flex-wrap:wrap;justify-content:center}}
