/* A quieter gym interface: clear actions, compact rows, real training first. */
/* Keep set boundaries subtle, including when a set is marked complete. */
.exercise-card .set-table tbody tr:not(:last-child)>td{border-bottom:1px solid #E6DFD5}
:root{--midnight:#FAF9F6;--bg:#FAF9F6;--midnight-2:#fff;--navy:#fff;--navy-2:#F5F1EB;--navy-3:#DED5C9;--ice:#322D28;--ink:#322D28;--muted:#6D6257;--muted-2:#6D6257;--accent:#70543E;--coral:#70543E;--cyan:#70543E;--coral-soft:#EFE5D8;--cyan-soft:#EFE5D8;--line:#E6DFD5;--shadow:none;--radius:12px}
body,.app-shell{background:#FAF9F6;color:#322D28}
h1,h2,h3,.brand,.brand-copy,.account-brand{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.025em}
.rail,.mobile-nav,.account-bar{background:#fff;border-color:#E6DFD5;backdrop-filter:none}
.rail-card{background:#FAF9F6;border-color:#E6DFD5;border-radius:10px}
.nav-button{border-radius:8px;font-weight:600;color:#6D6257}
.nav-button.active,.mobile-nav .nav-button.active{background:#EFE5D8;border-color:transparent;color:#70543E}
.page-title{font-size:26px;font-weight:750}.page-subtitle{display:none}
.eyebrow{color:#6D6257;letter-spacing:.08em;font-weight:650}
.card,.exercise-card,.source-card,.program-card,.profile-card,.active-program,.library-item{background:#fff;border-color:#E6DFD5;border-radius:12px;box-shadow:none}
.btn,.auth-card .primary{background:#70543E;color:#fff;border-radius:8px;font-weight:650;box-shadow:none}
.btn:hover,.auth-card .primary:hover{background:#523C2D}
.btn.secondary,.btn.ghost{background:#fff;border-color:#DED5C9;color:#70543E}
.btn.secondary:hover,.btn.ghost:hover{background:#EFE5D8}
.link-button{color:#70543E}.avatar{background:#70543E}
.tag{background:#F5F0E8;color:#6D6257;border-color:#E6DFD5}
.icon-button{background:#fff;border-color:#E6DFD5;border-radius:10px;color:#6D6257}
.text-input,.select-input,.set-input,.auth-card input{background:#FAF9F6;border-color:#DED5C9;border-radius:8px;color:#322D28}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#70543E}
.home-overview,.home-feed{max-width:860px;margin-inline:auto}
#home-choose-workout{padding:22px;border-left:3px solid #70543E}
#home-choose-workout h2{font-size:22px;margin:0 0 8px}
#home-choose-workout p{font-size:14px;line-height:1.5;color:#6D6257;max-width:480px}
.home-level-summary{padding:16px 0;background:transparent;border:0;border-bottom:1px solid #E6DFD5;border-radius:0;gap:12px}
.home-level-summary h2{font-size:16px}.home-level-summary .eyebrow{display:none}
.home-feed>.card-head{padding:20px 0 14px;align-items:center;gap:12px}
.home-feed>.card-head .eyebrow,.home-feed>.card-head p,.home-feed>.card-head h2 .tag{display:none}
.home-feed>.card-head h2{font-size:22px;margin:0}
.feed-tabs{background:transparent;border-bottom:1px solid #E6DFD5;border-radius:0;padding:0;gap:24px}
.feed-tabs button{background:transparent;border:0;border-radius:0;padding:12px 2px;color:#6D6257;box-shadow:none;font-weight:650}
.feed-tabs button[aria-pressed=true]{background:transparent;color:#70543E;border-bottom:2px solid #70543E;box-shadow:none}
.feed-empty{background:transparent;border:0;box-shadow:none;text-align:center;padding:38px 20px}
.feed-empty h3{font-size:18px}.feed-empty p{font-size:14px;color:#6D6257}
.feed-post{border-radius:10px;padding:20px;box-shadow:none}
.activity-stats>div{background:#FAF9F6;border-radius:8px}.activity-stats strong{color:#322D28}
.app-section,.home-training-details{background:#fff;border:1px solid #E6DFD5;border-radius:10px;box-shadow:none;margin:10px 0}
.app-section>summary{min-height:68px;color:#322D28}
.app-section>summary>span:not(.section-icon){color:#6D6257}
.app-section[open]{border-color:#DED5C9;box-shadow:none}
.app-section[open]>summary{border-bottom-color:#E6DFD5}
.section-icon{background:#F3ECE2;color:#70543E;border-radius:8px;width:36px;height:36px}
.app-section>summary::after{background:linear-gradient(#6D6257,#6D6257) center/10px 1.5px no-repeat,linear-gradient(#6D6257,#6D6257) center/1.5px 10px no-repeat;}
.app-section[open]>summary::after{background:linear-gradient(#6D6257,#6D6257) center/10px 1.5px no-repeat}
.session-banner{background:#322D28;border-radius:12px;box-shadow:none}
.session-banner .eyebrow,.session-banner p{color:#EDE4D7}
.session-banner .btn{background:#fff;color:#322D28}
.session-banner .btn.ghost{background:transparent;color:#fff;border-color:#A18B75}
.rest-card.inline-set-rest{background:#F3ECE2;border-color:#E6DFD5;border-radius:10px}
.stat-card{background:#fff;border:1px solid #E6DFD5;border-radius:10px;box-shadow:none}
.stat-card svg{color:#70543E}.stat-card strong{color:#322D28;font-weight:750}
.social-profile-banner{background:#322D28}.profile-counts{border-color:#E6DFD5}
.hero{background:#fff;border-color:#E6DFD5;border-radius:12px;box-shadow:none}.hero:after{display:none}
body:has(.auth-layout){background:#FAF9F6}
.auth-card{border-radius:14px;box-shadow:none;border-color:#E6DFD5}
.auth-story h2 span{color:#70543E}.brand-eyebrow,.auth-signature{color:#6D6257}
.auth-features p{border-color:#E6DFD5;color:#6D6257}.auth-features p span{color:#70543E}
.auth-card .tabs{background:#F5F0E8;border-color:#E6DFD5;border-radius:8px}
.auth-card .link,.auth-card .password-row button{color:#70543E}
@media(max-width:700px){.main{padding-inline:16px;padding-top:16px}.topbar{margin-bottom:18px}.page-title{font-size:24px}.mobile-nav{box-shadow:none}.mobile-nav .nav-button{border-radius:8px;background:transparent}.mobile-nav .nav-button.active{background:transparent;color:#70543E}.home-level-summary{flex-wrap:nowrap}.home-level-summary h2{font-size:15px}.home-level-summary .btn{font-size:12px;padding:9px 10px;white-space:nowrap}.home-feed>.card-head h2{font-size:20px}.home-feed>.card-head .btn{font-size:12px;padding:10px 12px}#home-choose-workout{padding:18px}.app-section>summary{min-height:68px}.feed-post{padding:16px}}

/* A warm welcome, with white remaining the main surface. */
.home-welcome{padding:8px 0 22px;border-bottom:1px solid var(--line);margin-bottom:20px}
.home-welcome .eyebrow{color:#70543E;margin:0 0 8px}
.home-welcome h1{font-size:clamp(26px,4vw,34px);line-height:1.18;margin:0 0 10px;font-weight:750}
.home-welcome>p:last-child{color:var(--muted);font-size:14px;line-height:1.6;margin:0;max-width:440px}
#home-choose-workout{background:#fff;border-left-color:#A18B75}
.home-level-summary .btn{background:#F5F0E8;border-color:transparent;color:#70543E}
.auth-card a{color:#70543E}
.auth-card input{accent-color:#70543E}
@media(max-width:700px){.home-welcome{padding:2px 0 20px;margin-bottom:18px}.home-welcome h1{font-size:28px}}

.auth-card input:-webkit-autofill,.auth-card input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px #FAF9F6 inset;-webkit-text-fill-color:#322D28;caret-color:#322D28}

/* Square-corner comparison; keep profile photos and avatars circular. */
.card,.exercise-card,.source-card,.program-card,.profile-card,.active-program,
.library-item,.app-section,.home-training-details,.session-banner,.hero,
.stat-card,.rail-card,.auth-card,.auth-card .tabs,.auth-card .tabs button,
.btn,.auth-card .primary,.icon-button,.section-icon,.exercise-index,
.text-input,.select-input,.set-input,.auth-card input,.rest-card.inline-set-rest,
.activity-stats,.activity-stats>div,.profile-counts,.profile-lift,
.notification-panel,.motion-card,.motion-emblem,.tag,.nav-button,
.mobile-nav .nav-button,.account-bar button{border-radius:0}

/* Lightweight social actions, with full-size touch targets. */
.feed-post .post-social-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:0;padding-top:8px}
.feed-post .post-social-actions .post-icon-action{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;min-width:44px;padding:6px 2px;background:transparent;border:0;border-radius:0;box-shadow:none;color:#322D28;font-family:inherit;font-size:13px;font-weight:600;flex:0 0 auto}
.feed-post .post-icon-action svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.feed-post .post-social-actions .post-icon-action[aria-pressed=true]{background:transparent;border:0;color:#70543E}
.feed-post .post-icon-action[aria-pressed=true] svg{fill:currentColor}
.feed-post .post-social-actions .post-icon-action:hover{color:#70543E;background:transparent}
.feed-post .post-social-actions [data-post-action=report]{margin-left:auto;color:#6D6257;font-size:12px}

/* Calm, readable first-use setup. */
.experience-dialog{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fff;border-color:#E6DFD5;border-radius:4px;padding:26px;box-shadow:0 12px 48px #322D2820}
.experience-dialog::backdrop{background:#322D2866}
.experience-dialog header h2{font-size:26px;line-height:1.2;letter-spacing:-.035em;font-weight:750;margin:0 0 14px}
.experience-dialog>p{font-size:14px;color:#6D6257;line-height:1.6;margin:0 0 22px}
.fitness-setup-dialog label{font-size:13px;line-height:1.5;font-weight:650;margin:0 0 20px;color:#51463C}
.fitness-setup-dialog input:not([type=checkbox]),.fitness-setup-dialog select{margin-top:8px;min-height:48px;padding:12px 14px;border:1px solid #DED5C9;border-radius:3px;background:#FAF9F6;color:#322D28;font-family:inherit;font-size:16px;font-weight:450;line-height:1.4;box-shadow:none}
.fitness-setup-dialog input:focus,.fitness-setup-dialog select:focus{outline:2px solid #A18B75;outline-offset:2px;background:#fff}
.fitness-setup-dialog .form-grid{gap:16px;margin:0}
.fitness-setup-dialog .muted{display:block;font-weight:400;font-size:12px;line-height:1.5;margin-top:7px}
.fitness-setup-dialog .experience-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;font-weight:400;padding:14px;background:#F5F0E8;margin-bottom:16px}
.fitness-setup-dialog .experience-consent input{flex:none;margin:2px 0 0;accent-color:#70543E}
.fitness-setup-dialog form>p{font-size:12px;margin:16px 0}
.fitness-setup-dialog form>.btn{width:100%;margin:6px 0;min-height:48px}
.fitness-setup-dialog form>.btn.ghost{border:0;background:transparent;font-size:13px}
.experience-dialog a{color:#70543E}
#app-tour .tour-dialog{background:#fff;border:1px solid #E6DFD5;border-radius:4px;box-shadow:0 12px 40px #322D2826;overflow:auto;max-height:48dvh}
#app-tour .tour-dialog::before{content:'';display:block;height:3px;width:var(--tour-progress,12.5%);background:#70543E;transition:width .3s ease}
#app-tour .dialog-head{padding:16px 20px 0;border:0;align-items:center}
#app-tour .dialog-head .eyebrow{font-size:10px;color:#70543E}
#app-tour #tour-skip{font-size:12px;color:#6D6257}
#app-tour .dialog-body{padding:8px 20px 20px}
#app-tour #tour-step{padding:0;background:transparent;color:#6D6257;font-size:11px}
#app-tour h2{font-size:23px;line-height:1.2;margin:12px 0 10px;font-weight:750}
#app-tour #tour-copy{font-size:14px;line-height:1.65;color:#6D6257;margin:0}
#app-tour #tour-location{font-size:11px;color:#70543E;margin:12px 0}
#app-tour .dialog-actions{display:flex;gap:12px;position:static;padding:0;margin-top:18px;background:#fff}
#app-tour .dialog-actions .btn{flex:1;min-height:44px}
#app-tour .tour-spotlight{border:2px solid #A18B75;border-radius:3px;box-shadow:0 0 0 9999px #322D2866;transition:top .22s ease,left .22s ease,width .22s ease,height .22s ease}
@media(max-width:700px){.fitness-setup-dialog{padding:22px}.fitness-setup-dialog .form-grid{grid-template-columns:1fr 1fr}.fitness-setup-dialog header h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){#app-tour .tour-spotlight,#app-tour .tour-dialog::before{transition:none}}

/* Anchor each tour step to the actual feature above the guide. */
#app-tour .tour-dialog{max-height:43dvh}
#app-tour .tour-spotlight{border:3px solid #70543E;box-shadow:0 0 0 9999px #322D2877;transition:width .18s,height .18s;pointer-events:none}
#app-tour #tour-location{display:none}
#app-tour .dialog-head{padding-top:12px}
#app-tour .dialog-body{padding-bottom:16px}
#app-tour #tour-copy{line-height:1.5}
#app-tour .dialog-actions{margin-top:14px}
body.tour-active{padding-bottom:70dvh}

.invite-friends-dialog label{font-size:12px;font-weight:650;margin-bottom:8px}
.invite-friends-dialog textarea{width:100%;resize:vertical;border:1px solid #DED5C9;background:#FAF9F6;color:#51463C;padding:14px;font-family:inherit;font-size:14px;line-height:1.6;border-radius:0}
.invite-friends-dialog .invite-handle{padding:14px;background:#F5F0E8;font-size:13px;display:flex;gap:12px;flex-wrap:wrap}
.invite-friends-dialog .invite-handle strong{color:#70543E}.invite-friends-dialog .help{font-size:12px;line-height:1.6;margin-top:18px}
.invite-friends-dialog [data-invite-status]{font-size:13px;color:#70543E;margin:12px 0 0}

/* Consistent rhythm across training, feed and progress. */
.card-head h2,.card-head h3,.program-section h2{font-size:20px;line-height:1.3;margin:0 0 6px}
.card-head p,.program-section p{font-size:13px;line-height:1.6;color:#6D6257}
.card-head{gap:16px}.button-row{gap:10px}
.btn{min-height:44px}.btn svg,.source-card svg{width:20px;height:20px;flex:none}
.home-week-summary{margin:18px 0 10px;padding:18px 0;border-bottom:1px solid #E6DFD5}
.home-week-summary h2{font-size:16px;margin:0}.home-week-summary .between>span{font-size:12px;color:#70543E}
.home-week-summary progress{display:block;width:100%;height:5px;margin:14px 0;border:0;accent-color:#70543E;background:#EFE5D8}
.home-week-summary progress::-webkit-progress-bar{background:#EFE5D8}.home-week-summary progress::-webkit-progress-value{background:#70543E}
.week-summary-values{display:flex;gap:24px;font-size:12px;color:#6D6257}.week-summary-values strong{font-size:16px;color:#322D28;margin-right:4px}
.home-week-summary>p{font-size:12px;color:#6D6257;margin:10px 0 0}
.next-set-card{position:sticky;top:8px;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;background:#fff;border:1px solid #DED5C9;border-left:3px solid #70543E;margin-bottom:14px;box-shadow:0 4px 12px #322D2808}
.next-set-card .eyebrow{font-size:10px;margin:0 0 4px;color:#70543E}.next-set-card strong{display:block;font-size:16px;line-height:1.4}.next-set-card [data-next-set-detail]{display:block;color:#6D6257;font-size:12px;margin-top:4px}
.next-set-actions{display:grid;justify-items:end;gap:6px;flex:none}.next-set-actions>span{font-size:12px;font-variant-numeric:tabular-nums;color:#6D6257}.next-set-actions .rest-running{color:#70543E;font-weight:700}
.exercise-card .set-table tr[data-next-set]>td{background:#F5F0E8}.exercise-card .set-table tr[data-next-set]>td:first-child{box-shadow:inset 3px 0 #A18B75}
.exercise-card .last-session{padding:12px;background:#FAF9F6;border:1px solid #E6DFD5;margin:10px 0 14px;font-size:12px}
.exercise-card .last-session summary{cursor:pointer;line-height:1.6}.exercise-card .last-session summary strong{display:block;font-size:14px;color:#70543E}
.exercise-card .exercise-title h3{font-size:19px;line-height:1.35}.exercise-card .exercise-title p{font-size:12px;line-height:1.6}
.exercise-card .set-table td{padding-top:10px;padding-bottom:10px}.exercise-card .set-input{font-size:16px;min-height:44px}
.exercise-card .set-table select{font-family:inherit;font-size:12px;min-height:32px;border:1px solid #DED5C9;background:#FAF9F6;color:#51463C;padding:4px;width:100%}
.training-empty{padding:22px;background:#fff;border:1px dashed #DED5C9;grid-column:1/-1}.training-empty h3{font-size:17px;margin:0 0 8px}.training-empty p{font-size:13px;line-height:1.6;color:#6D6257;margin:0 0 16px}
.feed-empty .btn{margin-top:14px}
@media(max-width:700px){.next-set-card{padding:12px;gap:10px;top:4px}.next-set-card strong{font-size:14px}.next-set-actions .btn{font-size:12px;padding:8px 10px}.training-empty{padding:18px}.exercise-card .exercise-title{align-items:flex-start}.exercise-card .set-table th{font-size:9px}.home-week-summary{margin-top:16px}}

.quick-rest{display:flex;align-items:center;gap:10px}.quick-rest span{font-size:12px;font-variant-numeric:tabular-nums;color:#6D6257}.quick-rest .link-button{font-size:11px;min-height:32px;padding:4px 0;color:#70543E}
.rest-controls{border:1px solid #E6DFD5;background:#fff;margin-bottom:14px}.rest-controls>summary{padding:13px 16px;font-size:12px;color:#6D6257;cursor:pointer}.rest-controls .inline-set-rest{border:0;border-top:1px solid #E6DFD5;margin:0}.rest-controls .inline-set-rest h3{display:none}

.exercise-card .exercise-index{display:none}.exercise-card .exercise-options{margin:10px 0 16px;font-size:12px}.exercise-card .exercise-options>summary{cursor:pointer;color:#6D6257;padding:6px 0}.exercise-card .exercise-options[open]{padding:12px;background:#FAF9F6;border:1px solid #E6DFD5}.exercise-options label{font-size:12px}.exercise-options .superset-controls{margin-top:12px}

.btn.small,.button-row .btn,.next-set-card .btn,.friend-actions .btn{border-radius:0}

.exercise-form{margin:12px 0;border-top:1px solid #E6DFD5;padding-top:10px}.exercise-form summary{cursor:pointer;font-size:13px;font-weight:600;color:#70543E}.exercise-form-points{margin:12px 0;padding-left:20px;font-size:14px;line-height:1.6;color:#4D443B}.exercise-form-points li{padding-left:3px;margin:7px 0}#video-form-tips{padding:12px 16px;background:#F5F0E8;margin-bottom:16px}#video-form-tips h3{font-size:15px;margin:0}.form-unavailable{font-size:13px}

.form-cue-label{font-size:11px!important;letter-spacing:1px;text-transform:uppercase;color:#70543E!important;margin:14px 0 0!important}.form-movement{border-top:1px solid #E6DFD5;padding-top:10px;margin-top:14px}.form-movement summary{font-weight:400}
