@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400;font-display:swap;src:url('/static/assets/fonts/source-sans-3/400.ttf') format('truetype')}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:500;font-display:swap;src:url('/static/assets/fonts/source-sans-3/500.ttf') format('truetype')}
:root{--ink:#20212c;--muted:#787986;--accent:#5856d6;--accent-light:#eeedfc;--line:#e5e5ed;--bg:#f2f2f7;--white:#fff;--soft:#f7f7fb;--nav:#ffffffed;--red:#b24343;color-scheme:light;font-family:'Source Sans 3',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);font-size:15px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #efb452;outline-offset:3px}a{color:var(--accent)}button{border:0;background:none;color:inherit}input,select,textarea{width:100%;border:1px solid var(--line);background:var(--soft);border-radius:10px;min-height:44px;padding:10px 12px;color:var(--ink)}input[type=checkbox]{width:20px;min-height:20px;height:20px;accent-color:var(--accent)}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent)}label{font-size:13px;font-weight:400;display:block}label input,label select{margin-top:7px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;margin-bottom:8px}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:16px;margin-bottom:8px}.muted,small{color:var(--muted)}small{font-size:12px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.6px;font-weight:400;color:var(--muted);margin-bottom:8px}.app-layout{max-width:1600px;margin:auto;display:grid;grid-template-columns:228px 1fr;min-height:100dvh}.sidebar{padding:34px 22px;position:sticky;top:0;height:100dvh;background:var(--white);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:32px}.brand{font-size:22px;letter-spacing:-1px;font-weight:400;display:flex;gap:9px;align-items:center}.brand-mark{display:grid;place-items:center;background:var(--accent);color:white;width:34px;height:34px;border-radius:10px;font-size:23px}.sidebar nav{display:grid;gap:8px}.nav-item{padding:13px 14px;text-align:left;border-radius:12px;display:flex;align-items:center;gap:12px;font-weight:400;color:var(--muted)}.nav-item.active{background:var(--accent-light);color:var(--accent)}.sidebar .account{margin-top:auto;border-top:1px solid var(--line);padding-top:20px}.avatar{width:38px;height:38px;border-radius:50%;background:var(--accent-light);color:var(--accent);display:grid;place-items:center;font-weight:400;flex-shrink:0}.content{padding:32px 42px 70px;max-width:1220px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:28px}.page-title{display:flex;align-items:center;gap:12px}.page-title h1{margin:0}.icon-btn{height:42px;min-width:42px;border-radius:12px;display:inline-grid;place-items:center;background:var(--white);border:1px solid var(--line);font-size:22px;flex-shrink:0}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:20px;background:var(--soft);padding:6px 10px;font-size:12px;color:var(--muted)}.pill.teal{color:var(--accent);background:var(--accent-light)}.stack{display:grid;gap:18px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.card{background:var(--white);border:1px solid var(--line);border-radius:19px;padding:24px}.primary{background:var(--accent);color:white;border-radius:12px;padding:13px 18px;font-weight:400;min-height:46px}.secondary{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:12px 16px;font-weight:400;min-height:44px}.danger{color:var(--red)}.text-btn{padding:10px 2px;color:var(--accent);font-weight:400}.wide{width:100%}.home-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px}.hero-start{min-height:94px;width:100%;border-radius:18px;padding:24px;background:var(--accent);color:white;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:20px;font-weight:400}.hero-start small{display:block;color:#e5e4ff;margin-top:7px;font-size:13px;font-weight:400}.start-split{display:grid;grid-template-columns:1fr 1fr;gap:8px}.start-split .hero-start{font-size:16px}.shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shortcut{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:18px;text-align:left;font-weight:400;display:flex;align-items:center;gap:12px}.shortcut .symbol{color:var(--accent);font-size:23px}.calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.calendar-head h2{font-size:18px;margin:0;text-transform:capitalize}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekday{text-align:center;color:var(--muted);font-size:11px;padding-bottom:8px}.day{position:relative;min-height:61px;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 0;font-size:14px;background:var(--soft)}.day.outside{opacity:.35}.day.selected{outline:2px solid var(--accent)}.dots{display:flex;gap:3px;min-height:5px}.dot{width:5px;height:5px;border-radius:50%;background:var(--accent)}.dot.complete{background:#b49d68}.day.today .dot{background:var(--white)}.legend{display:flex;gap:16px;align-items:center;margin-top:16px;font-size:11px;color:var(--muted)}.legend span{display:flex;gap:5px;align-items:center}.empty{text-align:center;padding:28px 14px;color:var(--muted);line-height:1.7}.empty strong{display:block;color:var(--ink);font-size:17px;margin-bottom:5px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat{background:var(--soft);border-radius:12px;padding:16px}.stat strong{display:block;font-size:27px;letter-spacing:-1px;margin-top:8px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-head h2{margin:0}.searchbar{display:flex;gap:10px;margin-bottom:14px}.searchbar input{background:var(--white)}.chips{display:flex;gap:8px;overflow:auto;padding:1px 0 12px}.chip{white-space:nowrap;border:1px solid var(--line);border-radius:22px;padding:9px 14px;background:var(--white);font-size:13px}.chip.active{background:var(--accent);border-color:var(--accent);color:white}.filters{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:18px;background:var(--soft);border-radius:15px;margin-bottom:16px}.switches{grid-column:1/-1;display:flex;gap:18px;flex-wrap:wrap}.switch{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px}.switch input{margin:0}.catalog-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.exercise-row{display:flex;align-items:center;gap:13px;background:var(--white);border:1px solid var(--line);border-radius:14px;padding:12px;text-align:left;min-height:90px}.exercise-name{font-size:14px;font-weight:400;line-height:1.4;display:block}.exercise-row small{display:block;line-height:1.4;margin-top:4px}.exercise-row.hidden-ex{opacity:.6}.star{color:var(--muted);font-size:25px;min-width:36px;min-height:40px}.star.on{color:#b49550}.hidden-badge{font-size:10px;color:var(--muted)}.pagination{display:flex;justify-content:center;gap:16px;align-items:center;margin-top:24px}.modal-backdrop{position:fixed;inset:0;background:#14132280;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(3px)}.modal{background:var(--bg);border-radius:23px;max-height:90dvh;overflow:auto;width:min(100%,680px);padding:25px;box-shadow:0 25px 100px #1234}.modal h2{margin:0}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .full{grid-column:1/-1}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.checkline{display:flex;gap:9px;align-items:center}.checkline input{margin:0}.menu-actions{display:grid;gap:10px}.menu-actions button{text-align:left}.list-item{padding:15px 0;border-bottom:1px solid var(--line)}.list-item:last-child{border:0}.template-card{padding:20px;text-align:left}.template-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.template-name{font-size:20px;font-weight:400;margin-bottom:9px}.template-examples{font-size:12px;color:var(--muted);line-height:1.7}.drag-handle{cursor:grab;color:var(--muted);user-select:none;font-size:21px}.draggable.dragging{opacity:.4}.workout-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px}.workout-header{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:20px;display:flex;align-items:center;gap:18px;margin-bottom:20px}.timer{font-variant-numeric:tabular-nums;font-size:42px;font-weight:400;letter-spacing:-2px;white-space:nowrap}.timer-controls{display:flex;gap:8px}.timer-controls button{border-radius:50%;height:46px;min-width:46px}.workout-card{padding:20px;margin-bottom:16px}.workout-card .exercise-name{font-size:18px}.set-table{width:100%;border-collapse:separate;border-spacing:0 8px;margin-top:15px;table-layout:fixed}.set-table th{font-size:11px;color:var(--muted);font-weight:400;text-align:center}.set-table th:first-child{width:42px}.set-table th:last-child{width:44px}.set-table td{padding:3px;text-align:center;font-variant-numeric:tabular-nums}.set-table input{padding:8px 2px;text-align:center;min-height:42px;border:1px solid var(--line);border-radius:8px;min-width:0}.set-table .done td{background:var(--accent-light)}.set-table .done td:first-child{border-radius:10px 0 0 10px}.set-table .done td:last-child{border-radius:0 10px 10px 0}.set-table .done input{background:transparent;border-color:transparent}.check-set{height:36px;width:36px;border:1px solid var(--line);border-radius:10px;font-size:20px}.done .check-set{background:var(--accent);color:white;border-color:var(--accent)}.set-no{color:var(--muted);font-size:13px;cursor:pointer}.rest{display:flex;align-items:center;gap:14px;padding:16px 20px;border:1px solid var(--line);border-radius:14px;background:var(--accent-light);margin-bottom:18px}.rest strong{font-size:23px;font-variant-numeric:tabular-nums}.chart{width:100%;height:180px;display:block}.chart text{fill:var(--muted);font-size:11px}.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.chart-summary{font-size:32px;font-weight:400;letter-spacing:-1px;margin:12px 0}.chart-summary small{font-size:14px;font-weight:400;letter-spacing:0}.tabs{display:flex;gap:5px;background:var(--line);padding:4px;border-radius:12px}.tabs button{padding:8px 12px;border-radius:9px;font-size:12px}.tabs button.active{background:var(--white);box-shadow:0 2px 4px #193c3210}.profile-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:22px}.notice-dot{width:8px;height:8px;background:#d6a651;border-radius:50%;position:absolute;right:7px;top:6px}.offline-banner{background:#fff0d7;color:#815e23;border-radius:10px;padding:10px 15px;margin-bottom:18px;font-size:12px}.conflict{background:#fff1ef;border:1px solid #edb6ac;padding:15px;border-radius:12px;margin-bottom:16px}.auth-wrap{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.auth-visual{background:#27264d;color:white;padding:60px;display:flex;flex-direction:column;justify-content:space-between}.auth-visual h1{font-size:56px;line-height:1.05;max-width:500px}.auth-visual p{color:#c7c5ec;line-height:1.7}.auth-form{display:flex;align-items:center;justify-content:center;padding:32px}.auth-box{max-width:380px;width:100%}.auth-box label{margin:20px 0}.auth-box .brand{margin-bottom:45px}.auth-box h1{font-size:28px}.loading{display:grid;place-content:center;min-height:100dvh;text-align:center;font-size:28px;font-weight:400;gap:10px}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);z-index:200;background:#303044;color:white;padding:13px 20px;border-radius:12px;max-width:90%;box-shadow:0 8px 30px #0002;display:none;font-size:13px;line-height:1.5}.mobile-nav{display:none}.week-buttons{display:flex;gap:6px;flex-wrap:wrap}.week-buttons label{display:flex;gap:4px;align-items:center;background:var(--soft);border-radius:8px;padding:8px}.week-buttons input{margin:0}code{overflow-wrap:anywhere}.auth-error{color:var(--red);line-height:1.5;margin-bottom:15px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1400px){.content{padding:40px 55px}.home-grid{grid-template-columns:1.4fr 1fr}.day{min-height:70px}}
@media(max-width:1100px){.app-layout{grid-template-columns:190px 1fr}.content{padding:25px}.sidebar{padding:28px 15px}.home-grid,.workout-layout{grid-template-columns:1fr}.home-aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.workout-aside{display:none}.catalog-list{grid-template-columns:1fr}.chart-grid{grid-template-columns:1fr}}
@media(max-width:700px){:root{font-size:14px}.app-layout{display:block}.sidebar{display:none}.content{padding:22px 16px calc(95px + env(safe-area-inset-bottom))}.topbar{margin-bottom:22px}h1{font-size:25px}h2{font-size:18px}.card{padding:18px;border-radius:16px}.home-grid{gap:18px}.home-aside{display:none}.hero-start{min-height:84px;padding:20px;font-size:18px}.shortcut{padding:16px 13px;font-size:13px}.day{min-height:45px;padding:7px 0;font-size:12px;gap:3px}.calendar-grid{gap:4px}.calendar-head{margin-bottom:13px}.legend{margin-top:13px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--nav);backdrop-filter:blur(15px);border-top:1px solid var(--line);padding:10px 12px calc(10px + env(safe-area-inset-bottom));justify-content:space-around;z-index:30}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--muted);font-size:10px;min-width:70px}.mobile-nav .nav-symbol{font-size:23px}.mobile-nav button.active{color:var(--accent)}.exercise-row{padding:10px;gap:10px}.exercise-name{font-size:13px}.filters{grid-template-columns:1fr 1fr;padding:14px}.switches{gap:12px}.modal-backdrop{padding:0;align-items:flex-end}.modal{max-height:94dvh;border-radius:22px 22px 0 0;padding:22px 18px calc(24px + env(safe-area-inset-bottom));width:100%}.form-grid{gap:13px}.template-grid{grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr}.workout-header{padding:15px;gap:12px;flex-wrap:wrap}.timer{font-size:37px}.workout-header .select-template{width:100%;text-align:center}.workout-card{padding:14px}.workout-card .exercise-name{font-size:16px}.rest{padding:12px 15px}.auth-wrap{display:block}.auth-visual{display:none}.auth-form{min-height:100dvh;padding:28px}.stat{padding:12px}.stat strong{font-size:24px}.page-title{gap:8px}.chart{height:160px}}

.drop-target{outline:2px dashed var(--accent);outline-offset:3px}.draggable{ -webkit-touch-callout:none }.draggable.dragging{opacity:.55}
.stack,.home-grid>*{min-width:0}.start-split,.shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-start{min-width:0}.hero-start>span{min-width:0}.start-split .hero-start{padding:17px 12px;gap:4px;font-size:14px;overflow-wrap:anywhere}

:root[data-theme="dark"]{color-scheme:dark;--ink:#f3f2fa;--muted:#aaa8ba;--accent:#aaa5ff;--accent-light:#302d50;--line:#353440;--bg:#111113;--white:#000000;--soft:#2a2932;--nav:#000000;--red:#ff929c}
:root[data-theme="dark"] .primary,:root[data-theme="dark"] .hero-start,:root[data-theme="dark"] .brand-mark,:root[data-theme="dark"] .check-set[aria-pressed="true"]{background:#6863e5;color:#fff}
:root[data-theme="dark"] .offline-banner{background:#403324;color:#f4d394}
:root[data-theme="dark"] .conflict{background:#3a272c;border-color:#75424c}
:root[data-theme="dark"] .star.on{color:#e9c77f}
.theme-toggle{font-size:19px}

.exercise-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:0 0 30px;color:var(--accent)}.exercise-icon svg{width:26px;height:26px;overflow:visible}.workout-card>.row{gap:12px}.exercise-row{min-height:72px}.workout-card .exercise-icon{align-self:flex-start;margin-top:3px}

.native-sets{display:none}
@media(max-width:700px){
 :root{--bg:#f2f2f7;--white:#fff;--line:#dcdce3;--soft:#eeeef3;font-size:16px}
 :root[data-theme="dark"]{--bg:#111113;--white:#000000;--soft:#2c2c2e;--line:#38383a;--muted:#929296;--ink:#f5f5f7;--accent:#8481ff;--accent-light:#2b2b48}
 .content{padding:12px 16px 112px}.topbar{position:relative;min-height:44px;margin-bottom:18px;gap:6px}.topbar .eyebrow{display:none}.page-title h1{font-size:17px;letter-spacing:0;font-weight:400}.page-title h1 button{font-size:17px}.topbar .icon-btn{background:transparent;border:0;width:32px;min-width:32px;height:38px;color:var(--accent)}.topbar>.row{gap:2px}.topbar .page-title{flex:1;justify-content:center}.topbar .page-title>.icon-btn{position:absolute;left:0;font-size:30px}
 .card{border:0;border-radius:12px;padding:16px}.stack{gap:16px}.hero-start{min-height:56px;border-radius:16px;padding:14px 18px;justify-content:center;font-size:17px}.hero-start>span:last-child{display:none}.hero-start small{font-size:12px;text-align:center}.shortcuts{gap:10px}.shortcut{border:0;background:var(--accent-light);color:var(--accent);border-radius:10px;min-height:54px;padding:10px;font-size:14px;justify-content:center;gap:7px}.shortcut .symbol{font-size:18px}.calendar-head h2{font-size:18px}.day{background:transparent;min-height:42px}.calendar-grid{gap:4px}.calendar-head{margin-bottom:12px}.day.outside{opacity:.3}.legend{font-size:10px}
 .workout-header{border:0;border-radius:12px;padding:16px;margin-bottom:28px}.timer{font-size:34px}.workout-header .pill{background:transparent;padding:0;color:var(--muted);font-size:11px}.workout-header .select-template{text-align:left;border-top:1px solid var(--line);padding:13px 0 0;font-size:16px}.timer-controls{margin-left:auto}.timer-controls button{height:42px;width:42px;min-width:42px;padding:0;border-radius:50%}.timer-controls .secondary{background:var(--soft);border:0;color:var(--accent)}
 .native-exercises{background:var(--white);border-radius:20px;padding:0 16px}.workout-card{position:relative;border:0;border-radius:0;background:transparent!important;margin:0;padding:24px 0}.workout-card+.workout-card:before{content:'';position:absolute;top:0;left:44px;right:0;height:1px;background:var(--line)}.workout-card>.row{gap:12px;align-items:center;margin-bottom:17px}.workout-card .exercise-icon{align-self:center;margin:0;width:26px;flex-basis:26px}.workout-card .exercise-icon svg{width:23px;height:23px}.workout-card .exercise-name{font-size:17px;font-weight:400;line-height:1.25}.workout-card>.row .grow small{font-size:13px;margin-top:5px}.workout-card>.row .grow small:last-child{display:none!important}.workout-card>.row>.icon-btn{width:24px;min-width:24px;height:28px;font-size:16px;background:none;border:0;color:var(--muted)}
 .set-table{display:none}.native-sets{display:block}.native-set{display:flex;align-items:center;gap:2px;min-height:37px}.native-set-edit{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-align:left;padding:5px 0;font-size:17px;font-variant-numeric:tabular-nums}.native-set-number{width:18px;flex-shrink:0;font-size:12px;color:var(--muted)}.native-pencil{margin-left:auto;color:var(--muted);font-size:15px}.native-set-delete{color:#ff453a;min-width:32px;height:36px;font-size:25px;padding:0}.failure{color:#e8a052;font-size:10px;white-space:nowrap}.workout-card>.text-btn{border-radius:20px;background:var(--accent-light);color:var(--accent);margin-top:10px;padding:8px;font-size:16px;min-height:36px}.workout-main>.secondary{margin-top:20px;border:0;background:var(--white);color:var(--accent)}
 .mobile-nav{left:20px;right:20px;bottom:14px;border:1px solid #8883;border-radius:40px;background:var(--nav);padding:5px;gap:0;box-shadow:0 3px 15px #0002}.mobile-nav button{flex:1;border-radius:32px;min-height:62px;font-size:10px;gap:3px;justify-content:center}.mobile-nav button.active{background:var(--accent-light)}.mobile-nav .nav-symbol{display:flex;height:28px}.mobile-nav svg{width:28px;height:28px}
 :root[data-theme="dark"] .mobile-nav{background:#000000;border-color:#38383a}:root[data-theme="dark"] .mobile-nav button.active{background:#18181a}
}

.equipment-image{display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;flex:0 0 72px}.equipment-image img{width:100%;height:100%;object-fit:contain}.workout-card .equipment-image{align-self:center}

/* Neutral home shortcuts keep labels readable in the dark palette. */
:root[data-theme="dark"] .shortcut{background:#252527;color:#f5f5f7}
:root[data-theme="dark"] .shortcut .symbol{color:#a6a1ff}

/* A quiet hierarchy: regular text and medium headings. */
h1,h2,h3,strong,b,.brand,.page-title h1,.workout-card .exercise-name{font-weight:500}
.snapshot-list{margin:12px 0;padding-left:24px}.snapshot-list li{padding:10px 0 10px 4px;border-bottom:1px solid var(--line)}.snapshot-list small{display:block;margin-top:4px}.snapshot-list li:last-child{border-bottom:0}

/* Player controls remain circular at every viewport and font size. */
.timer-controls{flex:0 0 auto;align-items:center}
.timer-controls button{box-sizing:border-box;flex:0 0 46px;width:46px;min-width:46px;max-width:46px;height:46px;min-height:46px;max-height:46px;aspect-ratio:1;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.timer-controls svg{display:block;width:20px;height:20px;flex:none}
@media(max-width:700px){.timer-controls button{flex-basis:42px;width:42px;min-width:42px;max-width:42px;height:42px;min-height:42px;max-height:42px}}


.equipment-image { position:relative; }
.equipment-image .equipment-fallback { display:grid; place-items:center; width:100%; height:100%; color:var(--accent); }
.equipment-fallback svg { width:64%; height:64%; }
.equipment-image img[data-equipment-image] { position:absolute; inset:0; visibility:hidden; }
.equipment-image.image-loaded img[data-equipment-image] { visibility:visible; }
.equipment-image.image-loaded .equipment-fallback { visibility:hidden; }
