/* MUSQON design system · obsidian, paper, electric orange. */
:root{--bg:#0b1117;--panel:#f5f6f9;--panel2:#fff;--text:#f9fafb;--muted:#929ba7;--gold:#ff7919;--gold2:#ff963f;--line:#29333e;--radius:24px;color-scheme:dark;font-family:Inter,'Arial',sans-serif}
body{background:#0b1117;background-image:radial-gradient(ellipse at 90% 0,#19212c66,transparent 50%)}
.app-shell{max-width:1160px;padding:0 36px 120px}.topbar{height:94px;margin-bottom:22px;border-color:#ffffff0c}.brand{gap:10px;font-weight:900;letter-spacing:.16em;font-size:19px}.brand strong{color:white}.brand small{font-size:8px;letter-spacing:.22em;color:#ff7919;margin-top:4px}.brand-mark{font-size:33px!important;color:#ff7919;background:transparent!important;border:0!important;font-style:italic;font-weight:1000;box-shadow:none!important;width:35px!important}.sync-badge{border:1px solid #36404a;border-radius:99px;padding:7px 10px;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#b9c1ca;background:transparent}.icon-btn{width:38px;height:38px;border:1px solid #36404a;background:transparent;border-radius:50%;color:#e6edf5}.top-actions{display:flex;align-items:center;gap:10px}
h1,.section-title h1{font-size:clamp(2.8rem,6vw,4.5rem);line-height:.99;text-transform:uppercase;letter-spacing:-.065em;font-weight:950}h1 em{font-style:normal;color:#ff7919}h2{font-size:1.15rem;font-weight:850;letter-spacing:-.04em}h3{font-weight:800}.eyebrow{color:#ff8b38;font-size:10px;font-weight:800;letter-spacing:.2em;margin-bottom:18px}.eyebrow:before{content:'';display:inline-block;width:15px;height:2px;background:#ff7919;vertical-align:middle;margin-right:8px}.muted{font-size:14px;line-height:1.65}.subtle,.smalltext{font-size:12px}.section-title{margin:32px 0 28px}.section-title p{max-width:580px;margin:16px 0 0}
.sport-context{display:flex;align-items:center;gap:14px;margin-bottom:28px;min-width:0}.sport-context>span{font-size:9px;letter-spacing:.15em;font-weight:800;color:#9ca7b4}.sport-context select{max-width:230px;min-width:0;background:#19222c;border:1px solid #34404e;border-radius:99px;color:white;padding:10px 30px 10px 15px;font-size:13px;font-weight:750}.sport-context .text-btn{margin-left:auto;font-size:11px;white-space:nowrap}
.hero{position:relative;overflow:hidden;display:flex;align-items:center;min-height:350px;padding:30px 0;background:transparent;border:0;border-radius:0;margin-bottom:20px}.hero>div:first-child{position:relative;z-index:2;max-width:65%}.hero h1{font-size:clamp(3.5rem,7vw,5.8rem);margin-bottom:20px}.hero p{color:#a9b1bd;font-size:14px;margin-bottom:25px}.hero-athlete{position:absolute;right:0;top:0;width:45%;height:100%;background:radial-gradient(ellipse at 70% 75%,#ff791933,transparent 67%);transform:rotate(-4deg)}.hero-athlete svg{width:90%;height:100%;fill:#303c48;stroke:#536170;stroke-width:.6;filter:drop-shadow(10px 10px 0 #0004)}.hero-athlete .athlete-bar{fill:none;stroke:#ff7919;stroke-width:7;stroke-linecap:round}.hero-athlete>span{position:absolute;bottom:30px;right:0;color:#ffffff08;font-size:clamp(24px,6vw,65px);font-weight:950;line-height:.9;letter-spacing:-.07em;transform:rotate(4deg)}
.primary-btn{background:#ff7919;color:#14191e;box-shadow:0 6px 22px #ff791922;border:1px solid #ff8c32;border-radius:9px;padding:15px 20px;font-size:12px;text-transform:uppercase;letter-spacing:.035em}.secondary-btn,.ghost-btn,.danger-btn{border-radius:10px;font-size:13px}.text-btn{color:#e57420;font-size:11px;text-transform:uppercase;font-weight:850}.mini-btn{color:#c4590e;background:#fff0e3;border-color:#ffdec1;border-radius:8px;font-size:12px}.mini-btn.alt{background:#ecedf1;color:#55606e;border-color:#dce0e6}.chip{background:transparent;border-color:#34414f;font-size:12px;padding:10px 14px}.chip.active{background:#ff7919;color:#12181e;border-color:#ff7919;font-weight:850}
.stats-grid{gap:12px}.stat{background:#f6f7fa;border:1px solid #e7e9ee;border-radius:12px;color:#111923;padding:18px}.stat small{color:#747d89;text-transform:uppercase;font-size:10px;letter-spacing:.045em;font-weight:800;margin-bottom:8px}.stat strong{font-size:29px;font-weight:950;letter-spacing:-.06em;line-height:1.1;overflow-wrap:anywhere}.stat em{font-size:11px;color:#8b929c;margin-top:8px;line-height:1.4}
.panel{background:#f5f6f9;color:#101923;border:1px solid #eceef2;padding:25px;border-radius:24px;box-shadow:none}.panel .muted,.panel .subtle,.panel .sport-help{color:#727c88}.panel h2,.panel h3{color:#111923}.panel .eyebrow{color:#d76819}.panel-head{align-items:center}.split-grid{gap:20px}.panel .stat{background:#fff;border-color:#e3e6ec}.panel .empty{background:#edeff3;border-color:#d7dce3;color:#7a8491}.panel input,.panel select,.panel textarea{color-scheme:light;color:#17212c;background:#fff;border:1px solid #d9dfe6;border-radius:10px;min-height:44px;padding:12px}.form-grid label,.filters-grid label{font-size:12px}.panel label{color:#626c7a}.panel .secondary-btn{background:#14202c;color:white;border-color:#14202c}.panel .ghost-btn{color:#53606f;border-color:#d2d8e0}.panel .chip{color:#69727e;border-color:#d8dce3;background:white}.panel .chip.active{background:#ff7919;color:#151a20;border-color:#ff7919}.panel .insight{background:#fff0e5;color:#835025;border-color:#ff7919}.insight{font-size:12px}.chart-line{stroke:#ff7919;stroke-width:3}.chart-fill{fill:#ff79190b}.chart-grid{stroke:#d7dde4}.chart-text{fill:#929ba7}.chart-empty{color:#9ca4af}.chart-wrap svg circle{fill:#ff7919}.chart-wrap{height:200px}
.week-strip{margin:26px 0 30px}.week-strip h2{font-size:15px}.week-strip .panel-head{margin-bottom:14px}#week-days{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.week-day{border:1px solid #2b3744;background:#141d27;border-radius:10px;text-align:center;padding:12px 4px;display:grid;gap:7px;font-size:12px}.week-day small{font-size:10px;color:#919daa}.week-day.today{border-color:#ff7919;background:#ff791912}.week-day b{font-size:16px}.week-day i{font-size:10px;color:#ff7919;font-style:normal}.week-day.today b{color:#ff7919}
#dashboard .split-grid>.panel:first-child,.anatomy-panel{background:#131c26;border:1px solid #2e3a47;color:#f9fafc}#dashboard .split-grid>.panel:first-child h2,.anatomy-panel h2{color:#f9fafc}#dashboard .split-grid>.panel:first-child .muted,.anatomy-panel .subtle{color:#929fad}.body-wrap.anatomical{flex-wrap:nowrap;gap:16px;padding:12px 5px}.anatomical .body-figure{flex:1 1 0;max-width:210px;min-width:0}.anatomical .body-figure svg{height:auto;max-height:420px;display:block}.anatomy-silhouette{fill:#17212b;stroke:#98a4af;stroke-width:1.5;stroke-linejoin:round}.muscle-shape{stroke:#101a24;stroke-width:1.4;stroke-linejoin:round;transition:fill .25s,filter .25s}.muscle-shape:hover,.muscle-shape.selected{stroke:#fff;stroke-width:1.7;filter:drop-shadow(0 0 3px #ffffff25)}.anatomy-tendon{fill:none;stroke:#8d9ba9;stroke-width:1;opacity:.6;pointer-events:none}.body-figure small{font-size:9px;letter-spacing:.2em;color:#8694a3;margin-top:8px}.legend span{font-size:11px}.legend-dot.under{background:#3b4652}.legend-dot.balanced{background:#ff9a50}.legend-dot.over{background:#ff661c}.rank-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin:0 0 22px}.rank-legend>span{font-size:11px;color:var(--rank-color);display:flex;align-items:center;gap:5px}.rank-legend b{font-size:20px;filter:drop-shadow(0 0 5px color-mix(in srgb,var(--rank-color),transparent 70%))}.rank-legend p{flex-basis:100%;color:#82909f;font-size:11px;margin:0;line-height:1.5}#muscle-bars{display:grid;gap:18px}.muscle-bar-heading{font-size:12px}.muscle-bar-heading strong{font-size:11px;color:#7a8490}.bar-track{height:6px;background:#e4e7ed}.bar-progress{background:#ff7919}.bar-progress.low{background:#b5c0cb}.bar-progress.high{background:#e96012}.muscle-detail-grid>div{background:white;border:1px solid #e1e5eb}.muscle-detail-grid small{color:#8a939e}.muscle-evidence{border-top:1px solid #dce1e8;padding-top:20px;margin-top:24px}.record{border-color:#e1e5eb;gap:14px;font-size:12px;line-height:1.5}.record span:last-child{color:#cd6115;text-align:right}.profile-monogram{display:grid;place-items:center;background:#ff7919;border:3px solid #ffb981;color:#171b22;border-radius:50%;width:48px;height:48px;font-size:25px;font-weight:950}
.exercise-card,.routine-card,.workout-row{background:#fff;border:1px solid #e3e7ed;color:#17212c;border-radius:13px}.exercise-card{padding:18px;min-height:145px}.exercise-card strong{font-size:15px}.exercise-card small,.routine-card small,.workout-row small{color:#89929e;font-size:12px}.ex-tags span{color:#7c8794;background:#eff1f5;font-size:10px}.ex-tags .gold-tag{color:#d66816;background:#fff0e4}.routine-card b,.workout-row b{font-size:14px}.workout-row .right strong{color:#e06b16}.searchbar{background:#f9fafc;border-color:#e1e5eb;border-radius:12px}.searchbar input{color:#121c27;min-height:49px}.searchbar span{color:#929ca8}.filters-grid select,.form-grid input,.form-grid select{font-size:14px}.gear-item{border-color:#e1e6ec;background:white;color:#65717f;font-size:12px}.gear-item:has(input:checked){color:#c45f16;border-color:#ffbc8d;background:#fff0e5}
.sport-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.sport-tile{padding:16px 9px!important;border:1px solid #e0e5eb!important;background:white!important;color:#17212c!important;border-radius:12px!important;transition:border .2s,transform .2s;text-align:left}.sport-tile>span{font-size:24px!important}.sport-tile strong{font-size:13px!important}.sport-tile small{font-size:10px!important;color:#8b949f!important;line-height:1.5}.sport-tile.selected{border-color:#ff7919!important;background:#fff0e6!important;box-shadow:inset 0 0 0 1px #ff7919}.sport-fields{gap:16px}.sport-fields label{font-size:12px;color:#73808d}.sport-help{font-size:12px;line-height:1.6}.sport-log{background:#fff;color:#18212d;border-color:#e1e5eb;padding:15px;border-radius:12px}.sport-log small{font-size:12px;color:#7c8795}.sport-dashboard-icon{font-size:36px}.sport-dashboard-summary{color:#727f8f;font-size:13px;line-height:1.6}.sport-bars{display:flex;gap:7px;align-items:flex-end;height:110px;border-bottom:1px solid #dce2e9;margin:24px 0 12px}.sport-bars span{flex:1;background:#ff7919;border-radius:5px 5px 0 0;min-height:3px}.athlete-sport-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #e0e5eb}.athlete-sport-row b{font-size:13px}.athlete-sport-row span{font-size:12px;color:#7f8a98}.athlete-sport-row .text-btn{padding:8px}.confidence-note{font-size:12px;line-height:1.6;color:#788491;background:#eaeef3;border-radius:12px;padding:13px;margin-top:18px}
.bottom-nav{bottom:0;width:min(650px,100%);border:1px solid #25313c;border-bottom:0;border-radius:18px 18px 0 0;background:#0c141def;box-shadow:0 -15px 50px #0002;padding:9px 8px max(12px,env(safe-area-inset-bottom));gap:0}.bottom-nav button{font-size:10px;gap:7px;padding:10px 2px;color:#7b8998;border-radius:8px}.bottom-nav button.active{color:#ff7919;background:transparent}.bottom-nav button span{font-size:20px}.bottom-nav svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7}.view.active{animation:arrive .3s ease-out}.view:not(.active){display:none}.modal-surface{background:#f5f6f9;color:#121b25;border-color:#fff}.modal-surface .muted,.modal-surface .subtle{color:#7f8996}.modal-surface .icon-btn{color:#606c7c;border-color:#d4dce5}.active-exercise{background:white;border-color:#e0e6ed}.set-line input{color:#17222f;background:#f8f9fc;border-color:#dce1e8;font-size:16px}.set-line button.done{background:#ff7919;color:white;border-color:#ff7919}.set-line button{background:#eef1f5;border-color:#dfe5ec}.set-labels{color:#939ba5}.set-line .set-index{color:#7f8996}.modal-footer{background:#f5f6f9;border-color:#dce2e9}.modal .ghost-btn{color:#727b89;border-color:#d6dce4}.modal label{color:#7b8795}.modal input{color:#17212e;background:white;border-color:#d9e0e9}.choice{border-color:#e0e5ec}.choice-list{border-color:#d6dfe9}.motion-stage{background:#111922}.motion-warning{background:#fff0e6;color:#99622e}.session-subtitle>span,.timer-display{color:#e9741c}.modal .secondary-btn{color:white;background:#17222f}.set-add{color:#7d8997;border-color:#cbd4df}.modal-surface textarea{font:inherit}.modal input:focus-visible,input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid #ff7919;outline-offset:3px}#toast{background:#ff8a2c;color:#161b23;font-size:13px}.sport-route svg polyline{stroke:#ff7919}
@keyframes arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:900px){.hero{min-height:390px}.hero-athlete{right:5%;width:38%}#overview-stats{max-width:100%}.sport-context{max-width:100%}.sport-context select{width:200px}.anatomical.large .body-figure svg{max-height:440px}}
@media(max-width:650px){.app-shell{padding:0 20px 110px;max-width:500px}.topbar{height:76px;margin-bottom:18px}.brand{font-size:16px}.brand small{font-size:7px}.sync-badge{display:inline-block;font-size:8px;padding:5px 7px}.top-actions{gap:7px}.icon-btn{width:32px;height:32px}.sport-context{gap:9px;margin-bottom:26px}.sport-context>span{font-size:8px}.sport-context select{max-width:165px;font-size:12px;padding:9px 12px}.sport-context .text-btn{font-size:9px;padding:0}.hero{min-height:340px;padding:10px 0 30px;margin-bottom:0;align-items:flex-start}.hero h1{font-size:48px}.hero>div:first-child{max-width:76%}.hero p{font-size:12px;max-width:225px}.hero-athlete{top:60px;right:-35px;width:64%;height:290px;opacity:.55}.hero .primary-btn{margin-top:42px;font-size:10px;padding:15px 17px}.hero-athlete>span{display:none}.eyebrow{font-size:9px;margin-bottom:16px}h1,.section-title h1{font-size:38px}.section-title{margin:30px 0 25px}.section-title p{font-size:13px}.panel{padding:20px;border-radius:21px;margin-bottom:18px}.panel-head{gap:8px}h2{font-size:16px}.panel-head .subtle{font-size:10px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{padding:14px 11px;border-radius:10px}.stat strong,.compact .stat strong{font-size:25px}.stat small{font-size:9px;line-height:1.4}.stat em{font-size:10px}.split-grid{grid-template-columns:1fr;gap:18px}#overview-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#overview-stats .stat{padding:13px 8px}#overview-stats .stat strong{font-size:21px}#overview-stats .stat small{font-size:8px}#overview-stats .stat em{font-size:9px}.week-strip{margin:27px 0}.week-day{padding:11px 3px;gap:6px}.week-day b{font-size:13px}#week-days{gap:5px}.body-wrap.anatomical{gap:12px}.anatomical .body-figure{max-width:170px}.anatomical .body-figure svg{max-height:350px}.body-figure small{font-size:8px}.legend{gap:9px}.legend span{font-size:9px}.rank-legend{gap:8px 13px}.rank-legend>span{font-size:10px}.rank-legend b{font-size:17px}.muscle-detail-grid>div{padding:10px 8px}.muscle-detail-grid small{font-size:10px}.muscle-detail-grid strong{font-size:20px}.sport-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.sport-tile{padding:12px 9px!important}.sport-tile small{font-size:9px!important}.sport-tile strong{font-size:12px!important}.sport-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.sport-fields label{font-size:11px}.sport-fields input,.sport-fields select{width:100%;min-width:0;font-size:16px}.sport-fields textarea{width:100%;min-width:0}.sport-fields .sport-field-wide{grid-column:1/-1}.routine-card{padding:15px}.routine-card b{font-size:14px}.routine-actions{justify-content:flex-start}.exercise-grid{grid-template-columns:1fr;gap:9px}.exercise-card{min-height:0}.filters-grid{gap:10px}.filters-grid label{font-size:11px}.filters-grid select{font-size:12px}.bottom-nav{width:100%;border-radius:0;bottom:0}.bottom-nav button{font-size:9px}.gear-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-surface,.modal-surface.narrow{padding:20px}.form-grid{grid-template-columns:1fr}.sport-log{gap:8px}.sport-log .ghost-btn{padding:6px;font-size:11px}.sport-log small{font-size:11px}.muted{font-size:13px}.sport-help{font-size:11px}.record{font-size:11px}.text-btn{font-size:10px}.muscle-bar-heading{font-size:12px}.muscle-bar-heading strong{font-size:10px}}
@media(max-width:360px){.app-shell{padding-left:15px;padding-right:15px}.sport-context>span{display:none}.hero h1{font-size:44px}#overview-stats{grid-template-columns:repeat(2,1fr)}.sport-fields{grid-template-columns:1fr}.sport-picker{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}

.sport-catalog summary{cursor:pointer;color:#d76716;font-size:13px;font-weight:750;padding:12px 0}.sport-catalog[open] .sport-picker{margin:14px 0}.panel .sport-fields select{font:inherit;width:100%}.hero-athlete{background:linear-gradient(145deg,transparent 20%,#ff791908 20%,#ff791914 80%,transparent 80%)}

.hero-athlete .body-wrap{height:100%;padding:0;transform:rotate(4deg)}.hero-athlete .body-figure{height:100%;max-width:100%}.hero-athlete .body-figure:nth-child(2),.hero-athlete .body-figure small{display:none}.hero-athlete .body-figure svg{height:100%;max-height:none;width:100%;filter:drop-shadow(12px 8px 0 #0003)}.hero-athlete .muscle-shape{pointer-events:none;stroke:#131e28;stroke-width:1}.hero-athlete .anatomy-silhouette{stroke:#72808b;fill:#14202b}.hero-athlete .anatomy-tendon{opacity:.3}
