/* trenē unified neutral design, V46 preview. Anatomical SVG red muscle highlights remain intentionally unchanged. */
:root{--stretch-surface:#171719;--stretch-line:#424246;--stretch-muted:#c2c2c7}
body{background:#0b0b0c;color:#f4f4f3;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;line-height:1.68;letter-spacing:-.012em}
.top{max-width:none;margin:0;padding:0 max(18px,calc((100vw - 1120px)/2));min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#0b0b0c;border-bottom:1px solid #333}
.top .brand{flex:none}.top .brand img{width:124px!important}.top nav{display:flex;align-items:center;justify-content:flex-end;gap:23px;flex-wrap:wrap}
.top nav a{font-size:12px;letter-spacing:.025em;text-transform:none;font-weight:650;color:#d4d4d7}
.top nav a:hover,.top nav a:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:4px}
main{width:100%;max-width:none;margin:0}
.hero{max-width:1120px;margin:auto;padding:66px 0 55px;background:none;border-bottom:1px solid #303034}
.hero h1{font-size:clamp(41px,6.5vw,76px);letter-spacing:-.07em;line-height:1.03;font-weight:780;max-width:930px}
.hero h1 em{color:#99999d;font-style:normal}
.eyebrow{font-size:11px;letter-spacing:.11em;font-weight:650;color:#b6b6bc;text-transform:uppercase}
.hero p{font-size:17px;color:#c8c8ce;line-height:1.72}
.hero-meta span{font-size:12px;color:#cfcfd3;border-color:#4b4b51;background:#171719}
.atlas-workspace{max-width:1160px;margin:0 auto;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:22px}
.atlas-panel{border-color:#424246;background:#171719;border-radius:22px}
.atlas-intro h2{font-weight:700;letter-spacing:-.045em}
.atlas-intro p{color:#c6c6ca}
.real-model{border-color:#424246;background:#0c0c0e;border-radius:18px}
.real-model h3{font-weight:650}
.group-buttons button{background:#242428;border:1px solid #53535a;color:#f2f2f3;border-radius:11px}
.group-buttons button:hover,.group-buttons button:focus-visible{background:#343439;border-color:#d3d3d7}
.group-buttons button.active,.group-buttons button[aria-pressed="true"]{background:#eee;color:#141416;border-color:#fff}
.atlas-results-link{border-color:#66666c;background:transparent;color:#f2f2f4;border-radius:11px;min-height:43px;font-weight:650}
.atlas-results-link:hover,.atlas-results-link:focus-visible{border-color:#fff;background:#29292e;color:#fff}
.results-head h2{font-size:30px;font-weight:700}
.results-head button{border-color:#626267;border-radius:11px}
.results-head button:hover{border-color:#eee;background:#2b2b30}
.exercise{border-color:#424246;background:#171719;border-radius:22px}
.exercise small{color:#bdbdc4;letter-spacing:.075em;font-size:11px;font-weight:650}
.exercise h3{font-size:17px;font-weight:650;letter-spacing:-.025em}
.exercise button{border:1px solid #f4f4f4;border-radius:11px;background:#f4f4f4;color:#111113;font-weight:700;min-height:48px}
.exercise button:hover,.exercise button:focus-visible{background:#dedee2;border-color:#dedee2;color:#111113}
dialog{border:1px solid #55555b;background:#18181b;border-radius:22px}
.detail-grid a{color:#f1f1f3;text-decoration:underline;text-underline-offset:3px}
.close{background:#303035;color:#fff;border:1px solid #55555a}
.safety,footer{border-color:#35353a}
@media(max-width:1160px){.hero{margin-left:24px;margin-right:24px}}
@media(max-width:950px){.atlas-workspace{grid-template-columns:1fr}}
@media(max-width:620px){.top{min-height:66px;padding:13px 16px;gap:12px}.top .brand img{width:102px!important}.top nav{gap:12px}.top nav a{font-size:11px}.hero{margin:0 16px;padding:43px 0 39px}.hero h1{font-size:clamp(39px,10.3vw,56px);letter-spacing:-.045em}.hero p{font-size:15px}.atlas-workspace{padding:20px 12px 46px}.atlas-panel{padding:16px}.atlas-intro h2{font-size:27px}}
@media(max-width:390px){.top{flex-wrap:wrap}.top nav{width:100%;justify-content:space-between}.top nav a{font-size:10px}}

/* Modal layout: outer dialog stays fixed; only its contents scroll. */
#detail{position:fixed;inset:0;margin:auto;padding:0;width:min(790px,calc(100% - 24px));max-height:min(88dvh,900px);overflow:visible;border:1px solid #545459;background:#18181b;border-radius:20px;box-shadow:0 18px 72px #000b}
#detail::backdrop{background:rgba(0,0,0,.80)}
#detail .detail-scroll{max-height:min(88dvh,900px);overflow:auto;overscroll-behavior:contain;padding:25px 28px;scrollbar-color:#777 #212124;scrollbar-width:thin}
#detail .close{position:absolute;z-index:12;float:none;right:14px;top:14px;margin:0;padding:0;width:42px;height:42px;border:1px solid #626267;border-radius:50%;background:#2e2e33;color:#fff;font-size:0;line-height:0;display:block;cursor:pointer}
#detail .close::before,#detail .close::after{content:"";display:block;position:absolute;left:50%;top:50%;width:17px;height:2px;background:currentColor;border-radius:2px;transform:translate(-50%,-50%) rotate(45deg);pointer-events:none}
#detail .close::after{transform:translate(-50%,-50%) rotate(-45deg)}
#detail .close:hover{background:#45454b;border-color:#dedee2}
#detail .close:focus-visible{outline:3px solid #f4f4f4;outline-offset:3px}
#detail .detail-grid{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:24px;align-items:start}
#detail .detail-grid>img{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;border-radius:13px;background:#050505;align-self:start}
#detail .detail-text{min-width:0;padding:1px 36px 0 0}
#detail .detail-text>small{color:#bdbdc4;font-size:11px;letter-spacing:.09em;font-weight:650}
#detail .detail-text h2{font-size:clamp(21px,2.8vw,28px);letter-spacing:-.04em;line-height:1.22;margin:7px 0 10px;overflow-wrap:anywhere}
#detail .detail-groups{font-size:13px;color:#bcbcc2;margin:0 0 20px;line-height:1.55}
#detail .detail-step{margin:0 0 16px}
#detail .detail-step h3{font-size:14px;font-weight:720;letter-spacing:0;text-transform:none;margin:0 0 4px;color:#f4f4f4}
#detail .detail-step p{margin:0;font-size:14px;line-height:1.6;color:#d6d6db;overflow-wrap:anywhere}
@media(max-width:640px){
 #detail{width:calc(100% - 18px);max-height:90dvh;border-radius:15px}
 #detail .detail-scroll{max-height:90dvh;padding:17px 17px 22px}
 #detail .detail-grid{grid-template-columns:1fr;gap:14px}
 #detail .detail-grid>img{width:100%;max-height:34dvh;object-fit:contain}
 #detail .detail-text{padding:0}
 #detail .detail-text h2{padding-right:44px;font-size:23px}
 #detail .close{top:11px;right:11px;width:39px;height:39px}
}
