:root{--app-bg:#171c1b;--app-surface:#222927;--app-raised:#2b3431;--app-input:#1b2220;--app-border:#46534e;--app-text:#f3eee3;--app-muted:#b5bdb5;--app-accent:#86bfae;--app-accent-ink:#122a22;--app-active:#304d42}
html,body{background:var(--app-bg)!important;color:var(--app-text)!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5}
h1,h2,h3{color:var(--app-text);font-weight:650;letter-spacing:-.025em;line-height:1.25}h1{font-size:27px}h2{font-size:24px}h3{font-size:20px}
p,label,small,output{color:inherit}p,.rank-note,.rank-color-key{color:var(--app-muted)}a{color:var(--app-accent)}
button,.upload{font-family:inherit!important;font-size:15px;font-weight:600;letter-spacing:0;min-height:44px;border:1px solid var(--app-border)!important;background:transparent!important;color:var(--app-text)!important;box-shadow:none!important;border-radius:10px;transition:background .15s,border-color .15s}
button:not(:disabled):hover,.upload:hover{background:var(--app-raised)!important;border-color:var(--app-accent)!important}button:disabled{opacity:.5;cursor:default}
button[type=submit],#profile-save,.finish-workout,.run-dialog .run-save,.rotation-game .rotation-primary{background:var(--app-accent)!important;color:var(--app-accent-ink)!important;border-color:var(--app-accent)!important;box-shadow:none!important}
button[type=submit]:not(:disabled):hover,#profile-save:not(:disabled):hover,.finish-workout:not(:disabled):hover,.run-dialog .run-save:not(:disabled):hover,.rotation-game .rotation-primary:not(:disabled):hover{background:#a3d3c3!important}
input,select,textarea,#profile-form input,#profile-form select,.history-editor input,.history-editor select,.workout-sets input,.run-dialog .run-entry input,.run-dialog .run-entry select{background:var(--app-input)!important;color:var(--app-text)!important;border-color:var(--app-border)!important;font-family:inherit!important;caret-color:var(--app-accent)}input::placeholder,textarea::placeholder{color:#8b9890!important}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--app-accent)!important;outline-offset:3px}
section,.rankings th,.rankings td,.history-card,.muscle-dialog-row,.exercise-card,.run-entry,.run-dialog .run-rank-card,.run-dialog .run-goal-card,.run-benchmarks,.rotation-game .rotation-card{background:var(--app-surface)!important;border-color:var(--app-border)!important}
.rank-category summary,.exercise-card summary{background:var(--app-raised)!important;color:var(--app-text)}.rank-category summary::after,.muscle-row::after,.run-benchmarks summary::after{border-color:var(--app-muted)!important}.rank-category summary:hover::after,.muscle-row:hover::after{border-color:var(--app-accent)!important}
.rank-muscle{background:var(--app-surface)!important;border-color:var(--app-border)!important}.muscle-row{color:var(--app-text)!important;border:0!important;background:transparent!important;font-weight:550}.muscle-row:hover{background:var(--app-raised)!important}
.rank-note,.rank-value,.workout-sets th,.workout-sets td,.exercise-rank small,.rest-controls,.run-card-heading,.run-targets span,.run-dialog .run-best,.run-dialog .run-footer,.run-benchmarks li{color:var(--app-muted)}.rank-icon{background:var(--app-raised);border-color:var(--app-border);color:var(--app-muted)}
.bottom-nav{background:var(--app-bg)!important;border-color:var(--app-border)!important}.bottom-nav a{color:var(--app-muted)!important}.bottom-nav a[aria-current=page]{background:var(--app-active)!important;color:var(--app-text)!important}
.muscle-dialog,.muscle-dialog::backdrop{background:var(--app-bg)!important;color:var(--app-text)!important}.muscle-dialog-header h2{color:var(--app-text)}.muscle-dialog-header button,.muscle-dialog-close,.run-dialog .run-close,#intelligence-page>button,.timer-control{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--app-muted)!important;font-weight:500}
.rest-controls{border-color:var(--app-border)}.rest-options button{background:transparent!important;color:var(--app-muted)!important;border-color:var(--app-border)!important;font-size:13px}.rest-options button[aria-pressed=true]{background:var(--app-active)!important;color:var(--app-text)!important;border-color:var(--app-accent)!important}.rest-controls [role=switch]:checked{background:var(--app-accent)!important}.rest-countdown,.exercise-icon,.exercise-history summary,.run-percent,.run-eyebrow,.run-icon,.run-field-heading,.run-dialog .run-entry .run-status{color:var(--app-accent)!important}.exercise-history{border-color:var(--app-border)}
.add-set{background:transparent!important;color:var(--app-muted)!important;font-weight:550}.set-complete input{background:#293d33!important}.set-complete .set-check{background:var(--app-active)!important;color:#b8dbc5!important;border-color:#729b85!important}
.run-icon{background:var(--app-active)!important;border-color:var(--app-border)}.run-entry label{color:var(--app-muted)!important}.run-targets>div+div,.run-benchmarks li{border-color:var(--app-border)}
.rotation-game p,.rotation-game .rotation-date,.rotation-game .rotation-session small{color:var(--app-muted)!important}.rotation-game .muscle-dialog-header{background:var(--app-bg)!important}.rotation-game .rotation-hero>p:first-child{color:var(--app-accent)!important;font-size:12px;letter-spacing:.04em}.rotation-game .rotation-chips span{background:var(--app-raised)!important;border-color:var(--app-border)!important;color:var(--app-muted)!important}.rotation-game .rotation-target{background:var(--app-input)!important;border-color:var(--app-border)!important}.rotation-game .rotation-target>span{color:var(--app-muted);letter-spacing:.05em}.rotation-game .rotation-options button{background:var(--app-surface)!important;border-color:var(--app-border)!important;color:var(--app-text)!important}.rotation-game .rotation-options button.correct{background:#263d31!important;border-color:#95cba5!important}.rotation-game .rotation-options button.wrong{background:#422d2b!important;border-color:#d2978b!important}.rotation-game .rotation-feedback,.rotation-game .rotation-meta,.rotation-game .rotation-session>strong{color:var(--app-accent)!important}.rotation-game summary{color:var(--app-text)}.rotation-game .rotation-session{border-color:var(--app-border)}.rotation-game .rotation-result{background:var(--app-active)!important;border-color:var(--app-border)!important;color:var(--app-text)!important}.rotation-game .rotation-warning{background:#362e20!important;border-color:#a78b50!important;color:#e8d5a5!important}.rotation-game .rotation-warning p{color:#e8d5a5!important}.rotation-game .rotation-next:disabled{background:var(--app-raised)!important;color:var(--app-muted)!important;border-color:var(--app-border)!important}
.rotation-game progress::-webkit-progress-bar{background:var(--app-raised)}.rotation-game progress::-webkit-progress-value{background:var(--app-accent)}.rotation-game progress::-moz-progress-bar{background:var(--app-accent)}.run-progress-track{background:var(--app-raised)}.run-progress-track span{background:var(--app-accent)}
@media(prefers-reduced-motion:reduce){button,.upload{transition:none}}
.rotation-game svg rect{fill:var(--app-accent);stroke:#263e34}.rotation-game svg circle{fill:#f3e4b6;stroke:#514532}.muscle-dialog-row strong{color:var(--app-muted)}.workout-sets th{font-size:12px;letter-spacing:.01em}.rank-track{background:var(--app-raised);border-color:var(--app-border)}
.exercise-card summary::after{border-color:var(--app-accent)!important}.bodygraph canvas:focus-visible{outline-color:var(--app-accent)}.rotation-game .rotation-target>span{text-transform:none}.run-eyebrow{letter-spacing:.04em;font-size:12px}
