/* Shared finishing details for pages, anatomy, and dialogs. */
main{padding-top:24px;padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}main>h1{margin:0 0 28px;font-size:24px}h2{margin:0 0 16px}h3{margin-top:0}.page-intro{margin:0 0 24px;font-size:14px;line-height:1.6}
.settings-list{display:grid;gap:12px}.settings-list a{display:flex;align-items:center;gap:16px;padding:20px 18px;min-height:60px;border:1px solid var(--app-border);border-radius:12px;background:var(--app-surface);color:var(--app-text);text-decoration:none}.settings-list a:hover{background:var(--app-raised);border-color:var(--app-accent)}.settings-list strong{display:block;font-size:16px;font-weight:600}.settings-list small{display:block;margin-top:4px;font-size:12px;color:var(--app-muted);line-height:1.5}.settings-icon{width:28px;color:var(--app-accent);font-size:25px;text-align:center;font-weight:400}.settings-arrow{margin-left:auto;color:var(--app-muted);font-size:24px}
.bodygraph{margin-top:0}.bodygraph svg>image{filter:url(#bodygraph-background-key);opacity:1}.bodygraph .muscle{stroke:#6d8178;stroke-width:1.8;stroke-linejoin:round}.bodygraph .muscle[data-level="0"]{fill:#bac3bd}.bodygraph .muscle.group-highlight{stroke:var(--app-accent);stroke-width:5}.bodygraph .muscle:focus-visible{stroke:var(--app-accent);stroke-width:5;outline:none}#rank-color-legend{gap:10px 14px;padding:16px 0;margin-bottom:8px;border-top:1px solid var(--app-border);border-bottom:1px solid var(--app-border);font-size:11px}#rank-color-legend i{width:10px;height:10px}.rank-color-key{font-size:12px}
.muscle-dialog{padding:max(24px,env(safe-area-inset-top)) 24px max(28px,env(safe-area-inset-bottom))}.muscle-dialog-header{gap:16px;margin-bottom:24px;align-items:center}.muscle-dialog-header h2{margin:0;font-size:24px}.muscle-dialog-header button{margin:0;padding:10px 0 10px 14px;font-size:14px;flex-shrink:0}.muscle-dialog-content{max-width:520px}.exercise-card,.run-rank-card,.run-goal-card,.run-entry,.run-benchmarks,.rotation-card,.history-card,section{border-radius:12px!important}.exercise-card{border:1px solid var(--app-border)}.exercise-card summary{font-size:18px;padding:20px 18px;gap:12px}.exercise-icon{font-size:24px}.exercise-rank{padding:20px 18px}.rest-controls{padding:16px 18px}.rest-options{gap:8px}.rest-options button{min-height:44px}.workout-top{margin:0 0 24px}.workout-clock{font-size:28px}.finish-workout{width:48px;height:48px;padding:0!important;font-size:26px!important}.workout-sets th{font-size:11px;letter-spacing:0}.workout-sets td{font-size:13px}.workout-sets input{min-height:48px;font-size:16px}.set-check{min-height:44px;width:38px;padding:4px}.workout-status{line-height:1.6}.rank-track span{background:var(--app-accent)}
.run-dialog .run-rank-card,.run-dialog .run-goal-card,.run-entry,.rotation-game .rotation-card{border:1px solid var(--app-border);padding:20px}.run-dialog .run-close{padding:10px 0 10px 14px}.run-dialog .run-entry input,.history-editor input,#profile-form input,#profile-form select{min-height:48px;border-radius:8px}.history-actions{gap:8px}.history-card{padding:20px}.history-card h3{font-size:18px;line-height:1.4}.history-set-editor{border-color:var(--app-border)}.history-editor{padding-top:16px;border-top:1px solid var(--app-border)}#profile-form label{font-size:14px;font-weight:500}#profile-save{margin-top:12px}#profile-status.save-confirmation{bottom:calc(80px + env(safe-area-inset-bottom))}section{border:1px solid var(--app-border)}.rotation-game .rotation-actions{gap:10px}.rotation-game .rotation-target>span,.run-eyebrow{text-transform:none;letter-spacing:.02em}.rotation-game .rotation-chips span{border-radius:6px}.rotation-game .rotation-options button{border-radius:10px}.rotation-game .rotation-meta{font-size:13px}
@media(max-width:420px){.muscle-dialog,.run-dialog.muscle-dialog{padding:max(20px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom))}.muscle-dialog-header h2{font-size:22px}.exercise-card summary{font-size:17px}.settings-list a{padding:18px 16px;gap:12px}.workout-sets{border-spacing:4px 10px}.workout-sets th:first-child,.workout-sets th:last-child{width:32px}.workout-sets td{font-size:12px}.set-check{width:32px}.run-dialog .run-rank-card,.run-dialog .run-goal-card,.run-entry,.rotation-game .rotation-card{padding:18px}}
@media(prefers-reduced-motion:reduce){.muscle{transition:none}}
body:has(dialog[open]){overflow:hidden}.exercise-rank>.flat-workout-indicator{align-self:flex-start;margin-top:5px}.run-progress-track{height:3px!important}.add-set+.add-set{margin-top:8px}.muscle-dialog-row{border:1px solid var(--app-border)}

.rotation-game progress{height:3px!important}
