/* V483 — full-screen exercise picker, designed for iPhone and OLED. */
body:has(#workoutAddExerciseModal){overflow:hidden}
body.eplan-redesign.client-ui .workout-library-screen{
 --library-bg:#f7f9fd;--library-card:#fff;--library-text:#172641;
 --library-muted:#74839c;--library-border:#e1e8f2;--library-accent:#3478f6;
 position:fixed!important;inset:0!important;z-index:6100!important;
 display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;
 background:var(--library-bg);color:var(--library-text);
 font-family:inherit;-webkit-overflow-scrolling:touch;
 padding:0 0 env(safe-area-inset-bottom,0px);
}
body.eplan-redesign.client-ui .workout-library-screen [hidden]{display:none!important}
body.eplan-redesign.client-ui .workout-library-header{
 position:sticky;top:0;z-index:4;flex:none;display:flex;align-items:center;
 justify-content:space-between;gap:12px;min-height:65px;
 padding:calc(9px + env(safe-area-inset-top,0px)) 17px 10px;
 background:var(--library-card);border-bottom:1px solid var(--library-border);
}
body.eplan-redesign.client-ui .workout-library-header strong{
 font-size:15px;line-height:1.25;letter-spacing:-.01em;text-align:center;
 color:var(--library-text);font-weight:750;
}
body.eplan-redesign.client-ui .workout-library-header button{
 display:grid;place-items:center;flex:none;width:40px;height:40px;
 background:var(--library-bg);border:1px solid var(--library-border);
 border-radius:50%;color:var(--library-text);padding:0;
}
body.eplan-redesign.client-ui .workout-library-header button:focus-visible,
body.eplan-redesign.client-ui .workout-library-screen button:focus-visible{
 outline:2px solid var(--library-accent);outline-offset:3px;
}
body.eplan-redesign.client-ui .workout-library-content{
 width:min(100%,720px);margin:0 auto;flex:1;min-height:0;
 padding:23px 16px 28px;box-sizing:border-box;
}
body.eplan-redesign.client-ui .workout-library-heading h1{
 font-size:26px;font-weight:800;line-height:1.12;letter-spacing:-.03em;
 margin:0 0 8px;color:var(--library-text);
}
body.eplan-redesign.client-ui .workout-library-heading p{
 color:var(--library-muted);font-size:13px;line-height:1.45;
 margin:0 0 19px;max-width:490px;
}
body.eplan-redesign.client-ui .workout-library-screen .workout-add-sources{
 display:grid;grid-template-columns:1fr 1fr;gap:4px;border-radius:13px;
 padding:4px;background:#e9eef6;margin:0 0 16px;
}
body.eplan-redesign.client-ui .workout-library-screen .workout-add-sources button{
 border:0;border-radius:10px;padding:12px 8px;min-height:44px;
 color:#74849b;background:transparent;font-size:14px;font-weight:750;
}
body.eplan-redesign.client-ui .workout-library-screen .workout-add-sources button.is-selected{
 background:var(--library-card);color:var(--library-accent);
 box-shadow:0 2px 7px rgba(26,54,90,.09);
}
body.eplan-redesign.client-ui .workout-library-search-wrap{
 display:flex;align-items:center;gap:9px;padding:0 13px;
 min-height:50px;border-radius:14px;background:var(--library-card);
 border:1px solid var(--library-border);color:var(--library-muted);
}
body.eplan-redesign.client-ui .workout-library-search-wrap .ui-icon{width:20px;height:20px}
body.eplan-redesign.client-ui .workout-library-search-wrap input{
 flex:1;min-width:0;min-height:48px;padding:9px 0;background:transparent;
 border:0!important;box-shadow:none!important;outline:0!important;
 font:inherit;font-size:15px;color:var(--library-text);border-radius:0;
}
body.eplan-redesign.client-ui .workout-library-search-wrap input::placeholder{color:#a0aabc}
body.eplan-redesign.client-ui .workout-library-categories{
 display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;
 padding:16px 1px 10px;margin:0 -1px;overscroll-behavior-x:contain;
 -webkit-overflow-scrolling:touch;
}
body.eplan-redesign.client-ui .workout-library-categories::-webkit-scrollbar{display:none}
body.eplan-redesign.client-ui .workout-library-categories button{
 flex:none;min-height:39px;padding:0 15px;border-radius:11px;
 background:var(--library-card);border:1px solid var(--library-border);
 color:var(--library-text);font-size:13px;font-weight:700;white-space:nowrap;
}
body.eplan-redesign.client-ui .workout-library-categories button.is-selected{
 background:var(--library-accent);border-color:var(--library-accent);color:#fff;
}
body.eplan-redesign.client-ui .workout-library-count{
 display:flex;justify-content:space-between;align-items:center;gap:12px;
 margin:14px 0 11px;
}
body.eplan-redesign.client-ui .workout-library-count strong{
 color:var(--library-text);font-size:15px;font-weight:750;
}
body.eplan-redesign.client-ui .workout-library-count span{
 color:var(--library-muted);font-size:12px;
}
body.eplan-redesign.client-ui .workout-library-results{display:grid;gap:9px}
body.eplan-redesign.client-ui .workout-library-item{
 display:flex;gap:12px;align-items:center;width:100%;min-width:0;
 text-align:left;border:1px solid var(--library-border);
 background:var(--library-card);border-radius:16px;padding:9px;
 box-shadow:0 2px 9px rgba(26,52,90,.035);
}
body.eplan-redesign.client-ui .workout-library-item:active{transform:scale(.993)}
body.eplan-redesign.client-ui .workout-library-thumb{
 width:74px;height:74px;flex:none;position:relative;overflow:hidden;
 display:grid;place-items:center;border-radius:12px;background:#eff4fa;
 color:#8ba6c7;
}
body.eplan-redesign.client-ui .workout-library-thumb>.ui-icon,
body.eplan-redesign.client-ui .workout-library-thumb>span .ui-icon{width:29px;height:29px}
body.eplan-redesign.client-ui .workout-library-thumb>img{
 position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
 background:#fff;z-index:1;
}
body.eplan-redesign.client-ui .workout-library-item-copy{
 flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;
}
body.eplan-redesign.client-ui .workout-library-item-copy strong{
 color:var(--library-text);font-size:14px;font-weight:750;line-height:1.26;
 overflow-wrap:anywhere;
}
body.eplan-redesign.client-ui .workout-library-item-copy small{
 color:var(--library-muted);font-size:12px;line-height:1.3;
}
body.eplan-redesign.client-ui .workout-library-item-copy em{
 width:max-content;color:#3378ec;font-size:11px;font-weight:720;
 font-style:normal;background:#edf4ff;padding:3px 7px;border-radius:7px;
}
body.eplan-redesign.client-ui .workout-library-item-arrow{
 color:#a5b1c4;font-size:25px;line-height:1;padding:0 5px;
}
body.eplan-redesign.client-ui .workout-library-empty{
 display:flex;flex-direction:column;gap:6px;align-items:center;
 justify-content:center;min-height:135px;padding:22px 14px;
 border:1px dashed var(--library-border);border-radius:16px;
 color:var(--library-muted);font-size:13px;text-align:center;
}
body.eplan-redesign.client-ui .workout-library-empty strong{font-size:15px;color:var(--library-text)}
body.eplan-redesign.client-ui .workout-library-more{
 width:100%;margin:13px 0 0;min-height:45px;border-radius:12px;
 color:var(--library-accent);background:#ecf3ff;
 border:1px solid #d8e6fb;font-size:13px;font-weight:750;
}
body.eplan-redesign.client-ui .workout-library-screen .workout-create-own{
 width:100%;margin:14px 0 0;min-height:46px;
 border-radius:12px;background:#edf4ff;border:1px solid #d9e7fb;
 color:#2c76ed;font-size:13px;font-weight:760;
}
body.eplan-redesign.client-ui .workout-library-detail-title{margin:1px 0 15px}
body.eplan-redesign.client-ui .workout-library-detail-title>span{
 font-size:12px;font-weight:720;letter-spacing:.01em;color:var(--library-accent);
}
body.eplan-redesign.client-ui .workout-library-detail-title h2{
 margin:6px 0 0;font-size:24px;line-height:1.16;letter-spacing:-.02em;
 font-weight:800;color:var(--library-text);
}
body.eplan-redesign.client-ui .workout-library-preview-video,
body.eplan-redesign.client-ui .workout-library-preview-pending{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 width:100%;max-height:410px;aspect-ratio:4/3;overflow:hidden;
 background:#fff;border:1px solid var(--library-border);border-radius:18px;
}
body.eplan-redesign.client-ui .workout-library-preview-video video{
 width:100%;height:100%;min-height:0;object-fit:contain;
 background:#fff;display:block;
}
body.eplan-redesign.client-ui .workout-library-video-error{display:none}
body.eplan-redesign.client-ui .workout-library-preview-video.is-unavailable video{display:none}
body.eplan-redesign.client-ui .workout-library-preview-video.is-unavailable .workout-library-video-error{
 display:block;color:#6f829b;font-size:13px;padding:16px;text-align:center;
}
body.eplan-redesign.client-ui .workout-library-preview-pending{
 gap:9px;background:var(--library-card);color:var(--library-muted);
 text-align:center;padding:24px;box-sizing:border-box;
}
body.eplan-redesign.client-ui .workout-library-preview-pending .ui-icon{
 width:40px;height:40px;color:#94accb;
}
body.eplan-redesign.client-ui .workout-library-preview-pending strong{
 font-size:15px;color:var(--library-text);
}
body.eplan-redesign.client-ui .workout-library-preview-pending span{font-size:12px;line-height:1.5}
body.eplan-redesign.client-ui .workout-library-info,
body.eplan-redesign.client-ui .workout-library-form{
 margin-top:14px;padding:16px;border-radius:16px;
 background:var(--library-card);border:1px solid var(--library-border);
}
body.eplan-redesign.client-ui .workout-library-info h3,
body.eplan-redesign.client-ui .workout-library-form h3{
 font-size:15px;color:var(--library-text);font-weight:800;margin:0 0 12px;
}
body.eplan-redesign.client-ui .workout-library-info p,
body.eplan-redesign.client-ui .workout-library-info li{
 color:var(--library-muted);font-size:13px;line-height:1.55;
}
body.eplan-redesign.client-ui .workout-library-info p{margin:8px 0}
body.eplan-redesign.client-ui .workout-library-info ol{
 margin:0;padding-left:21px;display:grid;gap:7px;
}
body.eplan-redesign.client-ui .workout-library-anatomy{
 display:grid;grid-template-columns:1fr 1fr;gap:8px;justify-items:center;
}
body.eplan-redesign.client-ui .workout-library-anatomy img{
 max-width:100%;max-height:235px;object-fit:contain;
}
body.eplan-redesign.client-ui .workout-library-dot{
 display:inline-block;width:9px;height:9px;border-radius:50%;
 margin-right:7px;vertical-align:middle;
}
body.eplan-redesign.client-ui .workout-library-dot.is-primary{background:#d84949}
body.eplan-redesign.client-ui .workout-library-dot.is-secondary{background:#eb923c}
body.eplan-redesign.client-ui .workout-library-form label{
 display:flex;flex-direction:column;gap:7px;margin:0 0 12px;
 color:var(--library-muted);font-size:12px;font-weight:700;
}
body.eplan-redesign.client-ui .workout-library-form-grid{
 display:grid;grid-template-columns:1fr 1fr;gap:0 10px;
}
body.eplan-redesign.client-ui .workout-library-form :is(input,select){
 display:block;width:100%;min-width:0;box-sizing:border-box;
 padding:10px 12px;min-height:46px;border-radius:11px;
 background:var(--library-bg);border:1px solid var(--library-border);
 color:var(--library-text);font-size:15px;font-weight:650;
}
body.eplan-redesign.client-ui .workout-library-add{
 width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;
 gap:7px;color:#fff;background:var(--library-accent);border:0;
 border-radius:13px;font-size:15px;font-weight:780;margin-top:3px;
}
body.eplan-redesign.client-ui .workout-library-add:disabled{opacity:.6}
body.eplan-redesign.client-ui #workoutOwnExerciseModal{z-index:7200!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-screen{
 --library-bg:#0d1119;--library-card:#19212d;--library-text:#eef5ff;
 --library-muted:#b0bed0;--library-border:#344155;--library-accent:#6aa7ff;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-screen .workout-add-sources{background:#101722}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-thumb{background:#23334a;color:#b0c5de}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-item-copy em{
 background:#233c58;color:#a2ccff;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-screen .workout-library-categories button.is-selected{
 color:#071522;background:#82b5ff;border-color:#82b5ff;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-more,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-screen .workout-create-own{
 color:#a9ceff;background:#1d344f;border-color:#315275;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-add{background:#3478f6;color:#fff}
@media(min-width:680px){
 body.eplan-redesign.client-ui .workout-library-results{grid-template-columns:1fr 1fr}
}
@media(max-width:359px){
 body.eplan-redesign.client-ui .workout-library-content{padding:18px 12px 26px}
 body.eplan-redesign.client-ui .workout-library-item{gap:9px}
 body.eplan-redesign.client-ui .workout-library-thumb{width:62px;height:62px}
 body.eplan-redesign.client-ui .workout-library-item-copy strong{font-size:13px}
 body.eplan-redesign.client-ui .workout-library-form{padding:12px}
}
@media(prefers-reduced-motion:reduce){
 body.eplan-redesign.client-ui .workout-library-item:active{transform:none}
}

/* V484 — exercise picker grid: approved two-column concept and multi-select. */
body.eplan-redesign.client-ui .workout-library-screen{
 --library-bg:#f3f6fb;--library-card:#fff;--library-text:#162740;
 --library-muted:#73819a;--library-border:#dfe6f1;--library-accent:#3478f6;
 padding-bottom:0!important;
}
body.eplan-redesign.client-ui .workout-library-header{
 min-height:65px;gap:9px;justify-content:flex-start;
 padding:calc(9px + env(safe-area-inset-top,0px)) 15px 10px;
}
body.eplan-redesign.client-ui .workout-library-header strong{
 flex:1;text-align:left;font-size:20px;letter-spacing:-.02em;
}
body.eplan-redesign.client-ui .workout-library-header-actions{display:flex;align-items:center;gap:8px}
body.eplan-redesign.client-ui .workout-library-header-actions button{
 display:grid;place-items:center;width:39px;height:39px;padding:9px;
}
body.eplan-redesign.client-ui .workout-library-header-actions .ui-icon{width:21px;height:21px}
body.eplan-redesign.client-ui .workout-library-content{
 padding:11px 13px 22px;min-width:0;max-width:620px;
}
body.eplan-redesign.client-ui .workout-library-screen .workout-add-sources{
 max-width:330px;margin:0 0 12px;background:rgba(114,135,166,.12);
}
body.eplan-redesign.client-ui .workout-library-screen .workout-add-sources button{
 min-height:37px;padding:8px;font-size:12px;border-radius:9px;
}
body.eplan-redesign.client-ui .workout-library-search-panel{margin:0 0 8px}
body.eplan-redesign.client-ui .workout-library-filters{
 border:1px solid var(--library-border);border-radius:13px;
 padding:10px 13px;margin-bottom:8px;background:var(--library-card);
 font-size:13px;color:var(--library-text);
}
body.eplan-redesign.client-ui .workout-library-filters label{
 display:flex;align-items:center;gap:9px;cursor:pointer;
}
body.eplan-redesign.client-ui .workout-library-filters input{accent-color:var(--library-accent);width:18px;height:18px}
body.eplan-redesign.client-ui .workout-library-categories{
 gap:8px;padding:4px 0 12px;margin:0 -13px;
 padding-left:13px;padding-right:13px;
 scroll-padding-inline:13px;
}
body.eplan-redesign.client-ui .workout-library-categories .workout-library-category{
 display:flex;align-items:center;flex-direction:column;justify-content:space-between;
 flex:0 0 85px;min-width:85px;width:85px;height:113px;
 gap:5px;padding:6px 4px 8px;border-radius:14px;
 border:1px solid var(--library-border);background:var(--library-card);
 box-shadow:none;color:var(--library-text);text-align:center;
}
body.eplan-redesign.client-ui .workout-library-categories .workout-library-category.is-selected{
 background:#e9f2ff;border:2px solid #2788ff;color:#1764db;
 box-shadow:0 0 0 1px rgba(47,137,255,.05);
}
body.eplan-redesign.client-ui .workout-library-category>span:last-child{font-size:11px;font-weight:730;line-height:1.18}
body.eplan-redesign.client-ui .workout-library-category-art{
 width:100%;height:79px;display:block;flex:none;
 background-repeat:no-repeat;background-size:auto 81px;background-position:center;
 filter:none;
}
body.eplan-redesign.client-ui .workout-library-category-art.is-male{
 background-image:url('/static/img/exercise-groups/focus-male-light.svg?v=325');
}
body.eplan-redesign.client-ui .workout-library-category-art.is-female{
 background-image:url('/static/img/exercise-groups/focus-female-light.svg?v=325');
}
body.eplan-redesign.client-ui .workout-library-category-art.is-back{background-position:2% center}
body.eplan-redesign.client-ui .workout-library-category-art.is-chest{background-position:21% center}
body.eplan-redesign.client-ui .workout-library-category-art.is-arms{background-position:40% center}
body.eplan-redesign.client-ui .workout-library-category-art.is-shoulders{background-position:60% center}
body.eplan-redesign.client-ui .workout-library-category-art.is-core{background-position:79% center}
body.eplan-redesign.client-ui .workout-library-category-art.is-legs{background-position:98% center}
body.eplan-redesign.client-ui .workout-library-category-icon{
 display:grid;place-items:center;flex:1;width:100%;color:#93a8c2;
}
body.eplan-redesign.client-ui .workout-library-category-icon .ui-icon{width:28px;height:28px}
body.eplan-redesign.client-ui .workout-library-count{margin:4px 0 11px}
body.eplan-redesign.client-ui .workout-library-results{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;
}
body.eplan-redesign.client-ui .workout-library-item{
 display:block;position:relative;padding:0;overflow:hidden;
 min-width:0;align-self:stretch;border:1.5px solid var(--library-border);
 border-radius:18px;background:var(--library-card);
 box-shadow:0 2px 12px rgba(30,52,83,.04);
}
body.eplan-redesign.client-ui .workout-library-item.is-selected{
 border:2px solid #2587ff;box-shadow:0 0 0 1px rgba(52,120,246,.10);
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-card-main{
 display:flex;flex-direction:column;align-items:stretch;width:100%;
 margin:0;padding:0;text-align:left;min-width:0;height:100%;
 border:0;background:transparent;color:var(--library-text);border-radius:0;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-card-main:disabled{opacity:1}
body.eplan-redesign.client-ui .workout-library-item .workout-library-thumb{
 width:100%;height:auto;aspect-ratio:1/1;display:grid;place-items:center;
 flex:none;position:relative;overflow:hidden;border-radius:0;
 background:linear-gradient(140deg,#313843,#252b36);
 color:#8f9bad;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-thumb>span .ui-icon{
 width:40px;height:40px;color:#788898;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-thumb img{
 width:100%;height:100%;object-fit:contain;background:transparent;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-item-copy{
 display:flex;align-items:flex-start;flex-direction:column;gap:5px;min-height:69px;
 padding:12px 11px 16px;box-sizing:border-box;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-item-copy strong{
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
 overflow:hidden;font-size:13px;line-height:1.3;font-weight:750;
 min-height:17px;color:var(--library-text);
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-item-copy small{
 display:block;color:var(--library-muted);font-size:11px;
}
body.eplan-redesign.client-ui .workout-library-card-check{
 position:absolute;top:10px;right:10px;z-index:2;
 display:grid;place-items:center;min-width:23px;height:23px;border-radius:50%;
 border:1px solid rgba(255,255,255,.55);
 color:#fff;background:rgba(15,22,33,.50);
 font-size:18px;font-weight:780;
}
body.eplan-redesign.client-ui .workout-library-item:not(.is-selected):not(.is-added) .workout-library-card-check{
 border-color:rgba(255,255,255,.40);color:transparent;
}
body.eplan-redesign.client-ui .workout-library-item.is-selected .workout-library-card-check{
 background:#2787fa;border-color:#2787fa;color:#fff;
}
body.eplan-redesign.client-ui .workout-library-item.is-added .workout-library-card-check{
 position:absolute;top:10px;right:10px;min-width:0;width:auto;
 height:24px;border-radius:7px;background:rgba(25,41,58,.88);
 padding:0 6px;color:#fff;font-size:10px;font-weight:750;
}
body.eplan-redesign.client-ui .workout-library-card-info,
body.eplan-redesign.client-ui .workout-library-card-bookmark{
 position:absolute;z-index:3;display:grid;place-items:center;
 padding:0;color:#fff;background:rgba(16,22,32,.55);
 border:1px solid rgba(255,255,255,.42);
}
body.eplan-redesign.client-ui .workout-library-card-info{
 width:32px;height:32px;right:9px;top:calc(100% - 109px);
 border-radius:50%;font-size:17px;font-weight:750;font-family:Georgia,serif;
}
body.eplan-redesign.client-ui .workout-library-card-bookmark{
 left:9px;top:9px;width:30px;height:30px;
 border:0;background:rgba(16,22,32,.22);border-radius:7px;
}
body.eplan-redesign.client-ui .workout-library-card-bookmark .ui-icon{width:22px;height:22px}
body.eplan-redesign.client-ui .workout-library-card-bookmark.is-favorite{
 color:#5ca5ff;background:rgba(21,60,112,.55);
}
body.eplan-redesign.client-ui .workout-library-footer{
 position:sticky;z-index:6;bottom:0;flex:none;
 display:flex;flex-direction:column;gap:7px;
 padding:11px 14px calc(12px + env(safe-area-inset-bottom,0px));
 background:var(--library-bg);border-top:1px solid var(--library-border);
 box-shadow:0 -10px 35px rgba(12,25,47,.08);
}
body.eplan-redesign.client-ui .workout-library-footer>div{
 color:var(--library-muted);font-size:11px;text-align:center;font-weight:650;
}
body.eplan-redesign.client-ui .workout-library-footer button{
 width:100%;min-height:52px;border-radius:30px;background:#287efa;border:0;
 color:#fff;font-size:16px;font-weight:780;
 box-shadow:0 8px 20px rgba(35,103,227,.15);
}
body.eplan-redesign.client-ui .workout-library-footer button:disabled{
 background:#cbd5e4;color:#7689a5;box-shadow:none;opacity:1;
}
body.eplan-redesign.client-ui .workout-library-footer p{
 margin:0;padding:8px 10px;border-radius:9px;
 font-size:12px;line-height:1.45;color:#a93838;background:#fff0f0;
}
body.eplan-redesign.client-ui .workout-library-detail-back{
 display:block;background:transparent;border:0;
 color:var(--library-accent);font-size:14px;font-weight:700;padding:4px 2px 14px;
}
body.eplan-redesign.client-ui .workout-library-detail-select{
 width:100%;min-height:48px;margin:16px 0 4px;
 background:#e8f1ff;border:1px solid #c8dcff;color:#2171d7;
 border-radius:13px;font-size:14px;font-weight:750;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-screen{
 --library-bg:#080b10;--library-card:#1b1e25;--library-text:#f4f7ff;
 --library-muted:#a9b2c3;--library-border:#333943;--library-accent:#55a3ff;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-header{
 background:#080b10;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-categories .workout-library-category{
 background:#191c23;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-categories .workout-library-category.is-selected{
 background:#102a47;border-color:#4ca5ff;color:#d8ecff;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-category-art.is-male{
 background-image:url('/static/img/exercise-groups/focus-male-dark.svg?v=325');
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-category-art.is-female{
 background-image:url('/static/img/exercise-groups/focus-female-dark.svg?v=325');
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-item .workout-library-thumb{
 background:linear-gradient(140deg,#30323a,#25262c);
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-footer{
 background:#080b10;border-color:#242b34;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-footer button:disabled{
 background:#313d51;color:#899bb4;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-detail-select{
 background:#173453;border-color:#375675;color:#b1d4ff;
}
@media(min-width:680px){
 body.eplan-redesign.client-ui .workout-library-results{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:359px){
 body.eplan-redesign.client-ui .workout-library-content{padding:9px 10px 18px}
 body.eplan-redesign.client-ui .workout-library-categories{margin:0 -10px;padding-left:10px;padding-right:10px}
 body.eplan-redesign.client-ui .workout-library-categories .workout-library-category{
  flex-basis:75px;min-width:75px;width:75px;height:106px;
 }
 body.eplan-redesign.client-ui .workout-library-category-art{height:70px;background-size:auto 72px}
 body.eplan-redesign.client-ui .workout-library-results{gap:8px}
 body.eplan-redesign.client-ui .workout-library-item .workout-library-item-copy{padding:10px 8px 13px;min-height:60px}
 body.eplan-redesign.client-ui .workout-library-card-info{width:29px;height:29px}
}


/* V485 — scroll containment, persistent CTA, clean source tabs, media-scoped action icons. */
body.eplan-redesign.client-ui .workout-library-screen{
 position:fixed!important;
 inset:0!important;
 display:flex!important;
 flex-direction:column!important;
 width:100%!important;
 height:100dvh!important;
 max-height:100dvh!important;
 overflow:hidden!important;
 padding:0!important;
 overscroll-behavior:contain;
}
body.eplan-redesign.client-ui .workout-library-screen .workout-library-header{
 flex:0 0 auto;
 position:relative;
 top:auto;
 min-height:62px;
}
body.eplan-redesign.client-ui .workout-library-sources{
 flex:0 0 auto;
 width:100%;
 box-sizing:border-box;
 background:var(--library-bg);
 padding:10px 13px 10px;
 border-bottom:1px solid var(--library-border);
}
body.eplan-redesign.client-ui .workout-library-sources .workout-add-sources{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:4px!important;
 width:min(100%,594px)!important;
 max-width:594px!important;
 margin:0 auto!important;
 padding:4px!important;
 box-sizing:border-box;
 border-radius:14px!important;
 background:#e6ebf3!important;
}
body.eplan-redesign.client-ui .workout-library-sources .workout-add-sources button{
 display:flex!important;
 align-items:center;
 justify-content:center;
 min-width:0!important;
 width:100%!important;
 min-height:44px!important;
 padding:10px 5px!important;
 margin:0!important;
 background:transparent!important;
 border:0!important;
 border-radius:11px!important;
 box-shadow:none!important;
 font-size:14px!important;
 font-weight:750!important;
 line-height:1.15;
 white-space:nowrap;
 color:#77869e!important;
}
body.eplan-redesign.client-ui .workout-library-sources .workout-add-sources button.is-selected{
 color:#2974e8!important;
 background:#fff!important;
 box-shadow:0 2px 8px rgba(35,57,92,.09)!important;
}
body.eplan-redesign.client-ui .workout-library-content{
 display:block!important;
 flex:1 1 auto!important;
 min-height:0!important;
 min-width:0!important;
 width:100%!important;
 max-width:620px!important;
 margin:0 auto!important;
 padding:13px 13px 18px!important;
 overflow-y:auto!important;
 overflow-x:hidden!important;
 box-sizing:border-box!important;
 -webkit-overflow-scrolling:touch;
 overscroll-behavior-y:contain;
 scrollbar-width:thin;
}
body.eplan-redesign.client-ui .workout-library-footer{
 position:relative!important;
 top:auto!important;
 bottom:auto!important;
 flex:0 0 auto!important;
 width:100%!important;
 box-sizing:border-box!important;
 margin:0!important;
 padding:8px 13px calc(10px + env(safe-area-inset-bottom,0px))!important;
 background:var(--library-bg);
 box-shadow:0 -4px 18px rgba(20,44,76,.08);
}
body.eplan-redesign.client-ui .workout-library-footer button{
 min-height:52px;
 font-size:16px!important;
 font-weight:800!important;
}
body.eplan-redesign.client-ui .workout-library-item{
 display:flex!important;
 flex-direction:column!important;
 position:relative!important;
 overflow:hidden!important;
 min-width:0;
 border-radius:18px!important;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-media{
 display:block;
 flex:0 0 auto;
 width:100%;
 aspect-ratio:1/1;
 position:relative;
 overflow:hidden;
 isolation:isolate;
 background:#292f39;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-media .workout-library-card-main{
 display:block!important;
 width:100%!important;
 height:100%!important;
 min-width:0!important;
 margin:0!important;
 padding:0!important;
 position:relative!important;
 border:0!important;
 border-radius:0!important;
 overflow:hidden!important;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-media .workout-library-thumb{
 display:grid!important;
 width:100%!important;
 height:100%!important;
 aspect-ratio:auto!important;
 border-radius:0!important;
 overflow:hidden!important;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-card-caption{
 display:flex;
 align-items:stretch;
 justify-content:stretch;
 flex:1 1 auto;
 width:100%;
 min-width:0;
 padding:0;
 margin:0;
 border:0;
 border-radius:0;
 background:var(--library-card);
 text-align:left;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-card-caption:disabled{
 opacity:1;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-card-caption .workout-library-item-copy{
 display:flex;
 width:100%;
 box-sizing:border-box;
 padding:11px 10px 13px;
 min-height:68px;
 gap:6px;
 justify-content:flex-start;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-card-info{
 position:absolute!important;
 top:auto!important;
 right:9px!important;
 bottom:9px!important;
 width:31px!important;
 height:31px!important;
 box-sizing:border-box!important;
 z-index:5!important;
 border:1px solid rgba(255,255,255,.6);
 background:rgba(17,23,34,.78);
 border-radius:50%!important;
 font-size:16px!important;
 line-height:1!important;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-card-bookmark{
 position:absolute!important;
 top:9px!important;
 left:9px!important;
 right:auto!important;
 bottom:auto!important;
 z-index:5!important;
 display:grid;
 place-items:center;
 width:31px!important;
 height:31px!important;
 border-radius:8px;
 color:#fff;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-card-bookmark.is-favorite{
 color:#78b9ff!important;
 background:rgba(10,39,77,.87)!important;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-card-bookmark.is-favorite .ui-icon{
 fill:#3c9dff!important;
 stroke:#d9edff!important;
}
body.eplan-redesign.client-ui .workout-library-item .workout-library-card-check{
 top:9px!important;
 right:9px!important;
 bottom:auto!important;
 z-index:4!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-sources .workout-add-sources{
 background:#222a37!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-sources .workout-add-sources button{
 color:#a8b8ce!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-sources .workout-add-sources button.is-selected{
 background:#354156!important;
 color:#a9d0ff!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-library-item .workout-library-card-caption{
 background:var(--library-card);
}
@media(max-width:359px){
 body.eplan-redesign.client-ui .workout-library-sources{
  padding:8px 10px;
 }
 body.eplan-redesign.client-ui .workout-library-content{
  padding:10px 10px 15px!important;
 }
 body.eplan-redesign.client-ui .workout-library-sources .workout-add-sources button{
  font-size:13px!important;
  min-height:42px!important;
 }
 body.eplan-redesign.client-ui .workout-library-footer{
  padding-left:10px!important;
  padding-right:10px!important;
 }
}
