:root{color-scheme:dark;--bg:#111312;--sidebar:#171a18;--surface:#1a1e1b;--panel:#222622;--edge:#30362e;--text:#f4f6ed;--muted:#a9b0a2;--lime:#d8fa67;--radius:17px;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;font-size:16px}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}
button,input,select{font:inherit}
button,a,input,select{outline-offset:4px}
:focus-visible{outline:2px solid var(--lime)}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
.shell{min-height:100vh;display:grid;grid-template-columns:230px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100dvh;background:var(--sidebar);border-right:1px solid var(--edge);padding:30px 19px 24px;display:flex;flex-direction:column;gap:42px}
.brand{color:var(--text);background:none;border:0;display:flex;align-items:center;gap:11px;font-size:1.26rem;font-weight:790;letter-spacing:-.06em;padding:0 6px}
.logo,.record{display:grid;place-items:center;width:37px;height:37px;background:var(--lime);color:#171e0d;border-radius:10px;font-weight:900;flex:none}
.brand-accent{color:var(--lime)}
nav{display:grid;gap:7px}
nav button,.tab,.filter,.subtle,.icon-button,.back,.track-title{border:0;background:none;color:var(--muted)}
nav button{display:flex;align-items:center;gap:12px;padding:12px;text-align:left;border-radius:10px;font-weight:600;white-space:nowrap}
nav button span{font-size:1.2rem;width:21px;text-align:center}
nav button.selected,nav button:hover,.filter:hover,.tab:hover,.icon-button:hover,.back:hover{color:var(--text);background:var(--panel)}
nav button.selected{color:var(--lime)}
.side-footer{margin-top:auto;display:flex;align-items:center;gap:9px;border-top:1px solid var(--edge);padding:18px 4px 0}
.side-footer strong{font-size:.875rem}
.side-footer small,.now small,.track-text small{display:block;color:var(--muted);font-size:.82rem;margin-top:3px}
.side-footer button{margin-left:auto}
.dot{width:7px;height:7px;border-radius:50%;background:var(--lime);flex:none}
.icon-button{border-radius:8px;min-width:36px;min-height:36px;color:var(--text);font-size:1.1rem}
main{width:100%;max-width:1700px;margin:0 auto;padding:24px clamp(18px,4vw,58px) 140px}
.top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}
.top p{color:var(--muted);font-weight:620;font-size:.92rem;margin:0}
.search{width:min(395px,60%);display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--edge);border-radius:10px;padding:0 12px;color:var(--muted)}
.search span{font-size:1.4rem}
.search input{color:var(--text);border:0;background:none;width:100%;padding:11px 0;font-size:.91rem}
.search input:focus{outline:none}
.search:focus-within{outline:2px solid var(--lime)}
.hero{background:#242d20;border:1px solid #3c492b;border-radius:23px;position:relative;overflow:hidden;padding:38px clamp(22px,4.7vw,64px) 42px;isolation:isolate;min-height:252px;display:flex;flex-direction:column;justify-content:center}
.hero::before{content:"";position:absolute;z-index:-1;right:-4%;top:50%;width:52%;height:220%;transform:translateY(-50%) rotate(-24deg);background:repeating-linear-gradient(90deg,transparent 0 25px,#b6dc572e 26px 28px,transparent 29px 42px);mask-image:linear-gradient(to right,transparent,#000 38%,#000 85%,transparent)}
.hero::after{content:"";position:absolute;z-index:-2;inset:0;background:radial-gradient(ellipse at 86% 37%,#47562e,transparent 57%)}
.eyebrow{color:var(--lime);font-weight:750;font-size:.82rem;letter-spacing:.085em;text-transform:uppercase;margin:0 0 12px}
h1,h2,h3,p{overflow-wrap:anywhere}
h1,h2,h3{margin:0}
h1{font-size:clamp(2.4rem,5.1vw,4.8rem);letter-spacing:-.067em;line-height:1.02}
.hero p:last-child,.lead{margin:15px 0 0;color:#d2dbc8;line-height:1.5}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:31px 0 16px}
.section-heading h2{font-size:1.47rem;letter-spacing:-.035em}
.section-heading small{color:var(--muted);white-space:nowrap}
.programs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:9px}
.filter{border:1px solid var(--edge);border-radius:9px;text-align:left;padding:10px 11px;min-height:46px;color:var(--text);font-size:.88rem;display:flex;align-items:center;justify-content:space-between;gap:8px}
.filter small{color:var(--muted);font-size:.8rem}
.filter.active,.tab.active{border-color:var(--lime);background:#292f1e;color:var(--lime)}
.editions{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:13px}
.card{--accent:#b5ed9d;--tint:#28382a;text-align:left;background:var(--surface);color:var(--text);border:1px solid var(--edge);border-radius:var(--radius);padding:17px 16px 15px;display:grid;gap:10px;min-height:127px}
.card:hover{background:#232822;border-color:var(--accent)}
.card[data-program="attack"]{--accent:#ffa581;--tint:#422b24}
.card[data-program="core"],.card[data-program="strength"]{--accent:#d8fa67;--tint:#333d20}
.card[data-program="balance"],.card[data-program="yoga"]{--accent:#b6adfc;--tint:#312843}
.card[data-program="pump"],.card[data-program="step"]{--accent:#fbce75;--tint:#3d3222}
.card[data-program="pilates"]{--accent:#f6afd1;--tint:#3c2935}
.card h3{font-size:1.06rem}
.card small{color:var(--muted);font-size:.83rem}
.badge{justify-self:start;display:inline-flex;align-items:center;gap:8px;border-radius:7px;padding:5px 8px;background:var(--tint);color:var(--accent);font-size:.78rem;font-weight:700}
.back{border-radius:8px;padding:8px 10px;margin:0 0 17px -10px;font-weight:600}
.edition-title{font-size:clamp(2.15rem,4vw,3.8rem)}
.tabs,.actions,.playlist-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tabs{margin:25px 0 17px}
.tab,.button,.subtle{padding:10px 13px;border:1px solid var(--edge);border-radius:9px;color:var(--text);font-weight:650;font-size:.9rem}
.button{background:var(--lime);color:#18210e;border-color:var(--lime)}
.button:hover{background:#e8ff9d}
.subtle:hover{background:var(--panel)}
.actions{margin-bottom:13px}
.rows{display:grid;gap:6px}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--edge);background:var(--surface);border-radius:11px;padding:7px 10px}
.track-title{display:flex;align-items:center;gap:12px;text-align:left;min-width:0;color:var(--text);padding:5px 4px;flex:1}
.track-title:hover strong{color:var(--lime)}
.track-text{min-width:0;overflow-wrap:anywhere}
.file-mark{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;background:#303925;color:var(--lime);border-radius:8px;font-size:1.08rem}
.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px;flex-wrap:wrap}
.empty{border:1px dashed var(--edge);border-radius:var(--radius);padding:22px;color:var(--muted);line-height:1.55}
.more{margin:17px 0}
.playlist-head{justify-content:space-between;margin-bottom:20px}
.player{position:fixed;z-index:5;left:230px;right:0;bottom:0;background:#1a1f19;border-top:1px solid #414a3b;display:flex;justify-content:space-between;gap:13px;align-items:center;padding:11px clamp(10px,2.4vw,30px)}
.now{min-width:0;display:flex;align-items:center;gap:10px}
.now div:last-child{min-width:0}
.now strong,.now small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-controls{display:flex;gap:4px;align-items:center;width:min(52%,430px);flex-shrink:0}
audio{width:100%;min-width:70px;height:36px}
dialog{background:var(--sidebar);color:var(--text);border:1px solid var(--edge);border-radius:18px;padding:22px;width:min(92vw,510px);max-height:90dvh}
dialog.wide{width:min(94vw,1050px)}
dialog::backdrop{background:#090b08c9}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}
.dialog-head h2{font-size:1.25rem}
dialog video,dialog iframe{width:100%;display:block;background:#0b0c0a;border:0;border-radius:9px}
dialog video{max-height:68dvh}
dialog iframe{height:65dvh}
dialog form{display:grid;gap:13px}
dialog input,dialog select{width:100%;color:var(--text);background:var(--surface);border:1px solid var(--edge);padding:10px;border-radius:8px}
dialog label{display:grid;gap:7px}
#notice{position:fixed;z-index:10;bottom:82px;right:16px;max-width:min(90vw,440px);padding:12px 16px;border:1px solid var(--edge);background:#2d3723;color:var(--text);border-radius:10px;box-shadow:0 6px 26px #0005}
@media(max-width:850px){.shell{grid-template-columns:177px minmax(0,1fr)}.sidebar{padding-inline:13px}.player{left:177px}}
@media(max-width:620px){.shell{display:block}.sidebar{height:auto;position:static;border-right:0;border-bottom:1px solid var(--edge);padding:12px;gap:7px;display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;justify-content:space-between}.brand{font-size:1rem}.logo{width:30px;height:30px}nav{display:flex;gap:0}nav button{gap:4px;font-size:.82rem;padding:8px 5px}nav button span{display:none}.side-footer{border:0;padding:0;margin:0}.side-footer>span{display:none}main{padding-top:16px}.top .search{width:100%}.top:has(.search:not([hidden])) p{display:none}.hero{min-height:190px}.player{left:0;display:grid;grid-template-columns:minmax(0,1fr) 36px}.now{grid-column:1}.player-controls{grid-row:2;grid-column:1/-1;width:100%}.player #closePlayer{grid-row:1;grid-column:2}.row .file-mark{display:none}}
.brand{font-size:1.04rem;letter-spacing:-.04em;text-align:left}
.logo{font-size:.87rem;letter-spacing:.025em}
.source-settings{color:var(--text);background:none;border:0;border-radius:8px;display:flex;align-items:center;text-align:left;gap:8px;padding:4px}
.source-settings:hover{background:var(--panel)}
.source-settings.disconnected .dot{background:#ffbb70}
.side-footer #refresh{margin-left:auto}
.empty p{margin:0}
button:disabled{opacity:.42;cursor:default}
@media(max-width:620px){.brand{font-size:.9rem}.source-settings{min-height:36px}.source-settings small{display:none}.side-footer .dot{width:5px;height:5px}}

.setup-note{color:var(--muted);font-size:.92rem;line-height:1.55;margin:0}
::file-selector-button{border:0;border-radius:6px;padding:5px 8px;margin-right:8px;background:var(--panel);color:var(--text);cursor:pointer}
dialog details{border:1px solid var(--edge);border-radius:10px;padding:12px}
dialog summary{cursor:pointer;color:var(--text);font-weight:620}
dialog details label{margin-top:12px}
.account-shell{display:grid;place-items:center;min-height:100svh;max-width:none;padding:26px 18px}
.account-card{width:min(100%,480px);padding:clamp(22px,6vw,42px);border:1px solid var(--edge);background:var(--surface);border-radius:var(--radius)}
.account-brand{display:flex;align-items:center;gap:12px;margin:0 0 30px;font-weight:700}
.account-card h1{font-size:clamp(1.75rem,5vw,2.4rem);line-height:1.08;margin:0 0 14px}
.account-prompt{color:var(--muted);line-height:1.5;margin:0 0 24px}
.account-card form{display:grid;gap:9px}
.account-card input:not([type=checkbox]){width:100%;margin-bottom:7px;border:1px solid var(--edge);background:var(--bg);color:var(--text);border-radius:8px;padding:12px}
.account-remember{display:flex;align-items:center;gap:8px;margin:3px 0 10px}
.account-remember input{accent-color:var(--accent)}
.account-alert{border-left:3px solid #fc9d88;color:#ffc8bb;padding-left:12px;line-height:1.45}
.program-logo{--mark:#d8fa67;--ground:#323c22;display:inline-grid;flex:none;place-items:center;width:34px;height:34px;color:var(--mark);background:var(--ground);border:1px solid currentColor;border-radius:9px;font-size:.81rem;line-height:1;font-weight:850;font-style:oblique;letter-spacing:-.08em}
.program-logo[data-program="attack"]{--mark:#ffac92;--ground:#3d2824}
.program-logo[data-program="core"]{--mark:#d8fa67;--ground:#333d20}
.program-logo[data-program="balance"]{--mark:#c8b7ff;--ground:#332946}
.program-logo[data-program="pump"]{--mark:#ffd17a;--ground:#3d3021}
.program-logo[data-program="step"]{--mark:#8fe2fa;--ground:#223943}
.program-logo[data-program="tone"]{--mark:#b1edac;--ground:#243d31}
.program-logo[data-program="strength"]{--mark:#f2afb9;--ground:#412934}
.program-logo[data-program="pilates"]{--mark:#f9b9e5;--ground:#3c2935}
.program-logo[data-program="yoga"]{--mark:#abc5ff;--ground:#2c3448}
.program-filter-name,.card-top,.edition-heading{display:flex;align-items:center;gap:8px;min-width:0}
.program-filter-name .program-logo{width:26px;height:26px;font-size:.68rem;border-radius:6px}
.edition-heading{gap:14px}
.edition-heading .program-logo{width:clamp(34px,6vw,48px);height:clamp(34px,6vw,48px);font-size:clamp(.85rem,2vw,1.1rem)}
.profile-header{margin-bottom:20px}
.profile-header h1{font-size:clamp(2rem,4vw,3rem)}
.profile-header p:last-child{margin:12px 0 0;color:var(--muted)}
.profile-list{display:grid;gap:12px;margin:18px 0}
.profile-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--edge);border-radius:var(--radius);background:var(--surface)}
.profile-row p{margin:4px 0 0;color:var(--muted);font-size:.875rem}
.profile-row .actions{margin:0}
#libraryNavLabel{width:auto;text-align:left;font-size:inherit}
@media(max-width:620px){#libraryNavLabel{display:inline}.profile-row{align-items:flex-start;flex-direction:column}}
.program-logo[data-program="pump-heavy"]{--mark:#ff9968;--ground:#482c20}
.program-logo[data-program="combat"]{--mark:#ff9b9b;--ground:#46252a}
.program-logo[data-program="shapes"]{--mark:#efb9f1;--ground:#412d47}
.program-logo[data-program="rpm"]{--mark:#8cddff;--ground:#203644;font-size:.73rem}
.program-logo[data-program="shbam"]{--mark:#ffbb74;--ground:#462e20}
.program-logo[data-program="power-jump"]{--mark:#aff0c9;--ground:#233c34}
.program-filter-name .program-logo[data-program="rpm"]{font-size:.60rem}

.profile-invite-content{display:grid;gap:12px}

.subtle.profile-danger{color:#ffb6a8;border-color:#805146}
.button.profile-danger{color:#2c100d;background:#ffb6a8;border-color:#ffb6a8}
.button.profile-danger:hover{background:#ffccbf}

.program-logo[data-program="reformer"]{--mark:#c7eccc;--ground:#2c3b30}
.program-logo[data-program="grit"]{--mark:#f9af7a;--ground:#442b24}
.program-logo[data-program="body-jam"]{--mark:#e8a7ff;--ground:#3d2849}
.program-logo[data-program="dance"]{--mark:#f8adce;--ground:#442b3d}

.program-logo[data-program="barre"]{--mark:#c8b7ff;--ground:#392d48}
.program-logo[data-program="sprint"]{--mark:#f8d491;--ground:#433326}

.profile-history{list-style:none;padding:0;margin:0;display:grid;gap:8px;max-height:45dvh;overflow:auto}
.profile-history li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;border-bottom:1px solid var(--edge)}
.profile-history span{color:var(--muted);font-size:.875rem}
