body.ws-drawer-open{overflow:hidden}
#ws-exercise-drawer{position:fixed;inset:16px 16px 16px auto;margin:0;width:min(436px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 32px);max-width:100vw;padding:0;border:2px solid #163b63;border-radius:17px;background:#fff;color:#062953;font-family:inherit;box-shadow:-18px 10px 55px #00285430;overflow:hidden;outline:none}
#ws-exercise-drawer[open]{display:flex;flex-direction:column;animation:ws-drawer-enter .28s ease-out}
#ws-exercise-drawer::backdrop{background:#12314b65;backdrop-filter:blur(4px)}
.ws-drawer-header{display:flex;justify-content:flex-end;padding:18px 17px 15px;flex-shrink:0}
#ws-exercise-drawer .icon-btn{width:36px;height:36px;border:1px solid #d5e3f1;border-radius:10px;background:white;color:#062953;display:grid;place-items:center;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
#ws-exercise-drawer .icon-btn:hover{background:#eaf5ff;border-color:#0086ff;transform:rotate(5deg)}
.ws-drawer-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 28px 24px;scrollbar-width:thin}
.ws-drawer-media{position:relative;aspect-ratio:5/3;overflow:hidden;border-radius:10px;background:#f0f6fc}
.ws-drawer-media img,.ws-drawer-media video{width:100%;height:100%;object-fit:cover;display:block}
.ws-drawer-badge{position:absolute;bottom:12px;left:12px;display:flex;align-items:center;gap:5px;padding:6px 9px;background:#eaf5ffeb;border-radius:9px;font-size:12px;font-weight:700}
.ws-drawer-badge svg{width:15px;height:15px}
.ws-drawer-media-note{position:absolute;right:12px;bottom:12px;max-width:72%;padding:6px 9px;border:1px solid #d6e7f5;border-radius:9px;background:#ffffffed;color:#47627d;font-size:10px;line-height:1.35}
.ws-drawer-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#607b97;font-size:13px}
.ws-drawer-placeholder svg{width:42px;height:42px}
.ws-drawer-heading{margin:20px 0}
#ws-exercise-drawer .eyebrow{color:#0086ff;font-size:12px;font-weight:700;margin:0 0 8px;letter-spacing:.04em}
.ws-drawer-heading h2{font-size:26px;line-height:1.2;letter-spacing:-.7px;margin:0;overflow-wrap:anywhere}
.ws-drawer-heading>p:last-child:not(.eyebrow){margin:7px 0 0;font-size:14px;color:#607694}
.ws-drawer-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ws-drawer-fact{display:flex;align-items:center;gap:9px;min-width:0;padding:16px 10px;border:1px solid #dfedfc;border-radius:10px;background:#f2f8ff}
.ws-drawer-fact>span{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;color:#007be8;background:#e0f1ff}
.ws-drawer-fact svg{width:21px;height:21px}
.ws-drawer-fact strong{display:block;font-size:23px;line-height:1.2;white-space:nowrap}
.ws-drawer-fact small{display:block;margin-top:5px;font-size:11px;color:#526d8d}
.ws-drawer-rest{grid-column:1/-1;padding:14px 16px}
.ws-drawer-instructions{display:flex;align-items:flex-start;gap:14px;padding:18px 16px;margin-top:20px;background:#f2f8ff;border-radius:10px}
.ws-drawer-instructions>span{color:#0074ce;flex-shrink:0}
.ws-drawer-instructions svg{width:25px;height:25px}
.ws-drawer-instructions h3{font-size:15px;margin:0 0 6px}
.ws-drawer-instructions p{font-size:14px;line-height:1.5;color:#526d8d;margin:0;overflow-wrap:anywhere}
.ws-drawer-video{display:flex;align-items:center;gap:8px;margin-top:16px;font-size:13px}
.ws-drawer-footer{margin-top:auto;padding:18px 28px 24px;background:#fff;flex-shrink:0}
#ws-exercise-drawer .ws-drawer-footer .btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:54px;border-radius:10px;background:#002b5b;color:#fff;font-size:15px;font-weight:700;text-decoration:none;transition:background .18s,box-shadow .18s,transform .18s}
#ws-exercise-drawer .ws-drawer-footer .btn:hover{background:#004580;box-shadow:0 6px 18px #0067c92b;transform:translateY(-2px)}
#ws-exercise-drawer .ws-drawer-footer .btn:active{transform:translateY(0)}
#ws-exercise-drawer :focus-visible{outline:3px solid #0086ff;outline-offset:3px}
#ws-exercise-drawer:focus-visible{outline:none}
.ws-drawer-handle{display:none}
@keyframes ws-drawer-enter{from{opacity:0;transform:translateX(35px) scale(.985)}to{opacity:1;transform:translateX(0) scale(1)}}
@media(max-width:640px){
#ws-exercise-drawer{inset:auto 0 calc(66px + env(safe-area-inset-bottom,0px)) 0;width:100%;height:72dvh;max-height:calc(100dvh - 84px - env(safe-area-inset-bottom,0px));border-width:1px 1px 0;border-color:#d7e5f2;border-radius:22px 22px 0 0;box-shadow:0 -14px 42px #0028542b;animation-name:ws-sheet-enter}
#ws-exercise-drawer::backdrop{background:linear-gradient(to bottom,#12314b65 0 calc(100% - 66px - env(safe-area-inset-bottom,0px)),transparent calc(100% - 66px - env(safe-area-inset-bottom,0px)));backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);mask-image:linear-gradient(to bottom,#000 0 calc(100% - 66px - env(safe-area-inset-bottom,0px)),transparent calc(100% - 66px - env(safe-area-inset-bottom,0px)));-webkit-mask-image:linear-gradient(to bottom,#000 0 calc(100% - 66px - env(safe-area-inset-bottom,0px)),transparent calc(100% - 66px - env(safe-area-inset-bottom,0px)))}
.ws-drawer-handle{display:block;position:absolute;top:11px;left:calc(50% - 24px);width:48px;height:5px;background:#d0dae5;border-radius:9px}
.ws-drawer-header{padding:14px 18px 3px}
.ws-drawer-scroll{flex:1 1 auto;min-height:0;padding:0 18px 16px}
.ws-drawer-media{aspect-ratio:1.71}
.ws-drawer-heading{margin:16px 0}
.ws-drawer-heading h2{font-size:23px}
.ws-drawer-fact{padding:9px 8px;gap:7px}
.ws-drawer-fact strong{font-size:19px}
.ws-drawer-fact>span{width:25px;height:25px}
.ws-drawer-fact small{font-size:10px}
.ws-drawer-rest{padding:9px 12px}
.ws-drawer-instructions{margin-top:12px;padding:13px}
.ws-drawer-instructions p{font-size:12px}
.ws-drawer-footer{padding:10px 18px 14px}
#ws-exercise-drawer .ws-drawer-footer .btn{min-height:50px}
#ws-exercise-drawer .ws-drawer-scroll{scrollbar-width:none}
#ws-exercise-drawer .ws-drawer-scroll::-webkit-scrollbar{display:none}
}
@keyframes ws-sheet-enter{from{opacity:0;transform:translateY(35px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#ws-exercise-drawer[open]{animation:none}#ws-exercise-drawer *{transition:none!important}}
@media(hover:hover){.ws-drawer-fact:not(.ws-drawer-rest){transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}.ws-drawer-fact:not(.ws-drawer-rest):hover{transform:translateY(-2px);border-color:#b7d9fa;background:#edf7ff;box-shadow:0 8px 20px #123e6612}.ws-drawer-instructions{transition:background .18s ease,box-shadow .18s ease}.ws-drawer-instructions:hover{background:#eaf5ff;box-shadow:0 6px 18px #123e660d}.ws-drawer-media img{transition:transform .35s ease}.ws-drawer-media:hover img{transform:scale(1.025)}}
.ws-drawer-fact:not(.ws-drawer-rest):active{transform:scale(.99)}
/* A referência reserva o topo e a base do canvas da aplicação no desktop. */
@media(min-width:641px){#ws-exercise-drawer{top:max(16px,13.7vh);bottom:max(16px,5.7vh)}}
/* Compacta a folha no celular como na referência, mantendo o CTA fixo e todo o conteúdo rolável. */
@media(max-width:640px){
 .ws-drawer-scroll{padding-bottom:10px}
 .ws-drawer-heading{margin:14px 0 12px}
 .ws-drawer-facts{gap:8px}
 .ws-drawer-fact{padding:8px 6px;gap:5px}
 .ws-drawer-fact>span{width:24px;height:24px}
 .ws-drawer-fact svg{width:18px;height:18px}
 .ws-drawer-fact strong{font-size:18px}
 .ws-drawer-fact small{font-size:9px;margin-top:3px}
 .ws-drawer-rest{padding:8px 11px}
 .ws-drawer-instructions{margin-top:10px;padding:11px 12px;gap:11px}
 .ws-drawer-instructions svg{width:22px;height:22px}
 .ws-drawer-instructions h3{font-size:14px;margin-bottom:4px}
 .ws-drawer-instructions p{font-size:11px;line-height:1.35}
 .ws-drawer-footer{padding:8px 18px 12px}
 #ws-exercise-drawer .ws-drawer-footer .btn{min-height:48px}
}
@media(max-width:640px) and (max-height:873px){
 #ws-exercise-drawer{height:min(calc(50.5dvh + 187px),calc(100dvh - 84px - env(safe-area-inset-bottom,0px)))}
}

/* Página de treino ao fundo: composição da referência 2, usando a prescrição conectada. */
html[data-screen='workout-id'] .sidebar.mh-sidebar{background:#062b56;color:#d6e4f4;border-right-color:#ffffff18}
html[data-screen='workout-id'] .sidebar.mh-sidebar .nav-label{color:#a9c3df}
html[data-screen='workout-id'] .sidebar.mh-sidebar .nav-link{color:#e1ebf7;transition:background .18s ease,color .18s ease,transform .18s ease}
html[data-screen='workout-id'] .sidebar.mh-sidebar .nav-link.active{background:#123e74;color:#fff}
html[data-screen='workout-id'] .sidebar.mh-sidebar .nav-link.active:before{background:#38b6ff}
html[data-screen='workout-id'] .sidebar.mh-sidebar .sidebar-bottom{border-top-color:#ffffff25}
html[data-screen='workout-id'] .main>.page-heading,html[data-screen='workout-id'] .ws-page{max-width:960px}
html[data-screen='workout-id'] .ws-page{grid-template-columns:minmax(0,1fr);gap:18px}
html[data-screen='workout-id'] .ws-page>.ws-sequence{grid-column:1/-1}
html[data-screen='workout-id'] .ws-sequence>header{margin-bottom:15px}
html[data-screen='workout-id'] .ws-sequence h2{text-transform:none;letter-spacing:-.3px;font-size:20px}
html[data-screen='workout-id'] .ws-sequence header span{text-transform:none;font-size:12px}
html[data-screen='workout-id'] .ws-list{gap:9px}
html[data-screen='workout-id'] .ws-exercise{grid-template-columns:62px 27px minmax(0,1fr) 70px 16px;gap:12px;min-height:78px;padding:8px 14px 8px 8px;border-radius:13px}
html[data-screen='workout-id'] .ws-thumb{width:62px;height:60px}
html[data-screen='workout-id'] .ws-thumb>img{object-fit:cover}
html[data-screen='workout-id'] .ws-index{width:27px;height:27px;font-size:14px}
html[data-screen='workout-id'] .ws-exercise-copy strong{font-size:15px}
html[data-screen='workout-id'] .ws-exercise-copy small{font-size:11px}
html[data-screen='workout-id'] .ws-exercise-right{padding-left:12px}
html[data-screen='workout-id'] .ws-exercise-right b,html[data-screen='workout-id'] .ws-exercise-right small{font-size:11px}
@media(hover:hover){
 html[data-screen='workout-id'] .sidebar.mh-sidebar .nav-link:hover{background:#ffffff17;color:#fff;transform:translateX(2px)}
}
@media(max-width:760px){
 html[data-screen='workout-id'] .main>.page-heading,html[data-screen='workout-id'] .ws-page{max-width:none}
 html[data-screen='workout-id'] .ws-page{gap:14px}
 html[data-screen='workout-id'] .ws-sequence h2{font-size:16px}
 html[data-screen='workout-id'] .ws-sequence header span{font-size:10px}
 html[data-screen='workout-id'] .ws-list{gap:7px}
 html[data-screen='workout-id'] .ws-exercise{grid-template-columns:52px 22px minmax(0,1fr) 44px 10px;gap:7px;min-height:68px;padding:7px;border-radius:11px}
 html[data-screen='workout-id'] .ws-thumb{width:52px;height:52px}
 html[data-screen='workout-id'] .ws-index{width:22px;height:22px;font-size:12px}
 html[data-screen='workout-id'] .ws-exercise-copy strong{font-size:12px}
 html[data-screen='workout-id'] .ws-exercise-copy small{font-size:9px}
 html[data-screen='workout-id'] .ws-exercise-right{padding-left:6px}
 html[data-screen='workout-id'] .ws-exercise-right b,html[data-screen='workout-id'] .ws-exercise-right small{font-size:9px}
}
