/* November 18 approved design system. Last in the cascade; no tracker geometry. */
@font-face{font-family:Barlow;src:url('/fonts/Barlow-Regular.ttf');font-weight:400;font-display:swap}
@font-face{font-family:Barlow;src:url('/fonts/Barlow-Medium.ttf');font-weight:500;font-display:swap}
@font-face{font-family:Barlow;src:url('/fonts/Barlow-SemiBold.ttf');font-weight:600;font-display:swap}
@font-face{font-family:Barlow;src:url('/fonts/Barlow-Bold.ttf');font-weight:700;font-display:swap}
:root,html[data-theme=dark]{--bg:#0b0b0b;--surface:#161616;--soft:#202020;--ink:#f4f3ee;--muted:#b5b5b0;--line:#2a2a2a;--accent:#ff5458;--success:#d4f36b;--purple:#a99bff;--refresh-bg:var(--bg);--refresh-card:var(--surface);--refresh-text:var(--ink);--refresh-muted:var(--muted);--refresh-line:var(--line);--refresh-blue:var(--accent);--refresh-green:var(--success);--refresh-coral:var(--accent);--refresh-dock:72px}
html[data-theme=light]{--bg:#f5f5f3;--surface:#fff;--soft:#e8e8e5;--ink:#171717;--muted:#62625e;--line:#d7d7d2;--accent:#b92b35;--success:#496516;--purple:#67519b;--refresh-bg:var(--bg);--refresh-card:var(--surface);--refresh-text:var(--ink);--refresh-muted:var(--muted);--refresh-line:var(--line);--refresh-blue:var(--accent);--refresh-green:var(--success)}
html,body{font:400 16px/1.45 Barlow,Arial,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
body>main{max-width:620px;padding:8px max(20px,env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
body>header{max-width:620px;height:84px;padding:14px max(20px,env(safe-area-inset-right)) 14px max(20px,env(safe-area-inset-left));gap:12px}
h1,h2,h3,h4,button,input,select,textarea,.metrics strong{font-family:Barlow,Arial,sans-serif}
h1{font-size:32px;line-height:1.08;letter-spacing:-.8px;margin:12px 0 24px}
h2{font-size:21px;letter-spacing:-.3px}h3{font-size:18px;letter-spacing:-.2px}
p{font-size:16px;line-height:1.5}.small,.small.muted{font-size:14px}.eyebrow{font:600 13px/1.4 Barlow,Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}
button{font-size:16px;line-height:1.25;border-radius:13px;min-height:44px;font-weight:600}button:hover{background:var(--soft)}
button.primary,.primary,.create-footer>button,#tracker-save:not(:disabled){background:var(--accent)!important;color:#0b0b0b!important;border:0;border-radius:15px;min-height:54px;padding:14px 16px;font-size:17px;font-weight:700}
html[data-theme=light] button.primary,html[data-theme=light] .primary{color:#fff!important}
input,textarea,select{font:400 16px/1.4 Barlow,Arial,sans-serif;min-height:49px;max-width:100%;border:1px solid var(--line);border-radius:13px;padding:13px 14px;background:var(--surface);color:var(--ink)}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a4a4a0' stroke-width='1.7'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:42px}
input[type=checkbox],input[type=radio]{min-height:0;width:20px;height:20px;accent-color:var(--accent);flex-shrink:0}
label,legend{font-size:14px;color:var(--muted)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
.card,.challenge,.review-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:none}
#refresh-settings,#refresh-friends,#refresh-back{width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:var(--surface);display:grid;place-items:center;color:var(--ink)}
#refresh-settings svg,#refresh-friends svg,#refresh-back svg{width:22px;height:22px}.header-actions{display:flex!important;flex-direction:row!important;gap:8px!important;align-items:center}
body>header .logo,body>header .logo img{width:64px;height:43px}body:not([data-page=challenges]):not([data-page=home])>header .logo{height:39px}
.app-navigation{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:620px;height:calc(72px + env(safe-area-inset-bottom));padding:9px max(8px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:0;background:var(--bg);border-top:1px solid var(--line);align-items:center}
.app-navigation>button{flex:1 1 0;min-width:0!important;max-width:none!important;width:100%!important;min-height:50px;padding:0;display:grid;place-items:center;color:var(--muted)!important}
.app-navigation>button.selected{color:var(--accent)!important}.app-navigation>button.selected:before{display:none}.app-navigation .nav-symbol{width:28px;height:28px;display:grid;place-items:center}.app-navigation .nav-symbol svg{width:26px;height:26px}
.app-navigation [data-view=workout] .nav-symbol{width:46px;height:46px;background:var(--accent);color:#0b0b0b;border-radius:50%;margin-top:-14px;box-shadow:0 0 0 6px var(--bg)}
.app-navigation [data-nav-avatar]{width:30px;height:30px;border-radius:50%;overflow:hidden;border:1px solid var(--line)}.app-navigation .selected [data-nav-avatar]{border:2px solid var(--accent)}.app-navigation [data-nav-avatar] img{width:100%;height:100%;object-fit:cover}
#home-create-dock{max-width:620px;bottom:calc(72px + env(safe-area-inset-bottom));padding:10px 20px;background:linear-gradient(transparent,var(--bg) 15%)}
#home-create-dock .home-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}#home-create-dock button{min-height:48px;border:1px solid var(--line);border-radius:13px;background:var(--surface);font-size:16px;padding:12px}
#home-create-dock button:first-child{background:var(--accent);border-color:transparent;color:#0b0b0b}#all-challenges{padding-bottom:64px}
#all-challenges h1{max-width:300px;font-size:36px;letter-spacing:-1px}.challenge-overview-summary{font-size:16px;margin:20px 0 14px}#all-challenges-summary small{font:500 13px Barlow,sans-serif}
.challenge-card-group{margin:0 0 14px}.challenge-overview-tile{padding:20px;text-align:left;width:100%;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:22px!important;color:var(--ink)}
.refresh-card-head{align-items:flex-start;gap:12px}.refresh-card-head strong{font-size:19px;font-weight:600;line-height:1.2;letter-spacing:-.2px}.refresh-card-head small{font:500 13px/1.3 Barlow,sans-serif;color:var(--muted);white-space:nowrap}
.challenge-overview-amount{font:700 42px/1.1 Barlow,sans-serif;letter-spacing:-1px;color:var(--ink);margin:18px 0 14px}.challenge-overview-amount small{font:400 16px/1.3 Barlow,sans-serif;letter-spacing:0;color:var(--muted)}.challenge-overview-amount.is-label{font-size:22px;letter-spacing:-.3px}
.challenge-overview-track{height:6px;background:var(--soft);border-radius:6px;margin:16px 0}.challenge-overview-track>span{background:var(--accent);border-radius:6px}.refresh-card-foot{font-size:14px;line-height:1.35;gap:12px}.refresh-card-foot>span:last-child{color:var(--accent);font-weight:600}
.challenge-overview-tile.is-complete{background:var(--surface)!important;border-color:#414a2d!important}.is-complete .challenge-overview-amount,.is-complete .refresh-card-foot>span{color:var(--success)}.is-complete .challenge-overview-track>span{background:var(--success)}
.card-today-label,.card-weekly-total{font-size:14px}.card-weekly-total small{font-size:13px}.completion-photo-action{border-radius:0 0 16px 16px;color:var(--accent);font-size:14px}
/* Keep the Home photo action within its card, with independent button semantics. */
.challenge-card-group:has(>.completion-photo-action){background:var(--surface);border:1px solid var(--line);border-radius:22px}
.challenge-card-group:has(>.completion-photo-action):has(>.is-complete){border-color:color-mix(in srgb,var(--success) 22%,var(--line))}
.challenge-card-group:has(>.completion-photo-action)>.challenge-overview-tile{border:0!important;margin:0;padding-bottom:14px}
.challenge-card-group>.completion-photo-action:not(.primary){display:inline-flex;width:auto;max-width:calc(100% - 40px);min-height:44px;margin:0 20px 18px;padding:10px 14px;gap:8px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--ink);font:600 14px/1.3 Barlow,Arial,sans-serif;text-align:left}
.challenge-card-group>.completion-photo-action svg{width:18px;height:18px;color:var(--success)}
.challenge-card-group>.completion-photo-action:hover{background:color-mix(in srgb,var(--soft) 88%,var(--ink));border-color:var(--muted)}
@media(max-width:360px){.challenge-card-group>.completion-photo-action:not(.primary){margin-inline:16px;max-width:calc(100% - 32px)}}
#challenge-page-heading{font-size:30px;line-height:1.1;margin:18px 46px 24px 0}.challenge-social-tabs{gap:0;margin:0 0 22px;border-bottom:1px solid var(--line)}.challenge-social-tabs button{flex:1;min-width:0;font-size:15px;padding:12px 2px;color:var(--muted)}.challenge-social-tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--accent)}
.today-first .challenge{padding:20px;border:1px solid var(--line);border-radius:22px}#daylabel{font:500 14px Barlow,sans-serif}.home-target{margin:24px 0 6px}.home-target #home-goal-value{font:700 72px/1 Barlow,sans-serif;color:var(--coral,var(--accent));letter-spacing:-2px}.home-target #home-goal-target{font:400 21px Barlow,sans-serif;color:var(--muted)}#home-exercise{font-size:17px;margin:6px 0 16px}.home-goal-progress{height:6px;margin:20px 0;border-radius:6px;background:var(--soft)}.home-goal-progress span{background:var(--accent)}
.daily-done .home-target #home-goal-value{color:var(--success)!important}.daily-done .home-goal-progress span{background:var(--success)}.daily-done #workout{background:var(--success)!important;color:var(--bg)!important}.camera-privacy{font-size:13px!important;line-height:1.5;color:var(--muted);max-width:350px;margin:14px auto 0}
.challenge-schedule-link{border:1px solid var(--line);border-radius:13px}.challenge-schedule-link svg{color:var(--accent)}.challenge-schedule-link span{font-size:16px}.schedule-day{border-radius:12px}
.today-first #organizer-pot{border:1px solid var(--line);border-radius:18px;padding:18px;margin:18px 0;background:var(--surface)}
#organizer-pot summary{padding:0}
.today-first #organizer-pot>.pot-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 18px;grid-template-rows:auto auto auto;align-items:start;gap:6px 12px}
#organizer-pot .pot-total,#organizer-pot .pot-payout{display:contents}
#organizer-pot .pot-summary small{font:500 13px/1.35 Barlow,Arial,sans-serif!important;letter-spacing:0!important;text-transform:none;color:var(--muted)}
#organizer-pot .pot-total small{grid-column:1;grid-row:1}
#organizer-pot .pot-payout small{grid-column:2;grid-row:1}
#organizer-pot .pot-summary strong{font:600 clamp(22px,6vw,30px)/1.15 Barlow,Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.6px;margin:0;min-width:0;overflow-wrap:anywhere}
#organizer-pot .pot-total strong{grid-column:1;grid-row:2;color:var(--ink)}
#organizer-pot .pot-payout strong{grid-column:2;grid-row:2;color:var(--success)}
#organizer-pot .pot-payout>span{grid-column:1/-1;grid-row:3;border-top:1px solid var(--line);padding-top:12px;margin-top:8px;font:400 14px/1.4 Barlow,Arial,sans-serif;letter-spacing:0;color:var(--muted)}
#organizer-pot .pot-chevron{grid-column:3;grid-row:1/3;align-self:center;width:18px;height:18px;color:var(--muted)}
.challenge-payment-card{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:16px}.challenge-payment-card strong{font-size:16px}.challenge-payment-card p,.challenge-payment-card button{font-size:14px}
.challenge-standings-tabs{padding:4px;background:var(--surface);border-radius:12px;border:1px solid var(--line)}.challenge-standings-tabs button{font-size:14px;min-height:40px;border-radius:9px}.challenge-standings-tabs [aria-pressed=true]{background:var(--soft);color:var(--ink)}
.standings-row{gap:12px;padding:18px 0}.standings-avatar{width:44px;height:44px;flex:0 0 44px;font-size:15px}.standings-name{font:600 17px/1.2 Barlow,sans-serif!important}.standings-identity{min-width:0;flex:1}.standings-awards{font-size:13px}.standings-progress{font:600 20px/1.2 Barlow,sans-serif;min-width:0}.standings-progress small{font:500 13px/1.4 Barlow,sans-serif}.standings-record-link{font-size:14px;color:var(--accent)}.standings-group-label{font-size:14px;color:var(--muted);letter-spacing:0;text-transform:none}.standings-row.is-complete .standings-progress{color:var(--success)}
#profile-view .pa-hero{display:flex;align-items:center;gap:16px;margin:18px 0 20px;text-align:left}#profile-view .pa-story-avatar,#profile-view .pa-avatar{width:78px;height:78px;flex:0 0 78px}#profile-view .pa-identity{min-width:0;flex:1;text-align:left}#profile-view .pa-identity h1{font:700 27px/1.1 Barlow,sans-serif!important;letter-spacing:-.5px;margin:0 0 6px;overflow-wrap:anywhere}#profile-view .pa-identity p{font-size:14px;margin:0}#profile-view .pa-edit{width:40px;height:40px;min-width:40px;border-radius:50%;background:var(--surface);padding:10px}#profile-view .pa-edit svg{width:20px;height:20px}
#profile-view .pa-bio{font-size:16px;line-height:1.45;margin:12px 0 22px}#profile-view .pa-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:17px;background:var(--surface);padding:16px 6px;gap:0}#profile-view .pa-stats>div{min-width:0;text-align:center;padding:0 6px;border-right:1px solid var(--line)}#profile-view .pa-stats>div:last-child{border:0}#profile-view .pa-stats strong{font:600 28px Barlow,sans-serif;color:var(--ink)}#profile-view .pa-stats span{font:400 13px/1.3 Barlow,sans-serif;display:block;margin-top:3px}
#profile-view .pa-section-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}#profile-view .pa-section-tabs button{min-width:0;font-size:14px;padding:13px 2px;border-radius:0}.pa-tabs{display:flex;gap:4px;background:var(--surface);padding:4px;border-radius:12px}.pa-tabs button{font:500 14px Barlow,sans-serif;min-height:38px;border-radius:9px;flex:1}.pa-tabs [aria-selected=true]{background:var(--soft);color:var(--ink)}#profile-view .pa-total{padding:18px 0;font-size:16px}#profile-view .pa-total strong{font:600 25px Barlow,sans-serif}.profile-step-card{border:1px solid var(--line);border-radius:17px;background:var(--surface);padding:17px}.profile-step-card strong{font:700 38px Barlow,sans-serif}.profile-step-card small{font-size:13px}
#profile-view .pa-awards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#profile-view .pa-award{border:1px solid var(--line);border-radius:17px;padding:20px 12px;background:var(--surface)}#profile-view .pa-award strong{font-size:16px}#profile-view .pa-award small{font-size:13px}.pa-history-row strong{font-size:16px}.pa-history-row small{font-size:13px}
.refresh-sheet{padding:22px;border:1px solid var(--line);border-radius:23px;max-width:520px;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));background:var(--bg)}.refresh-sheet>.spread:first-child{align-items:center;margin-bottom:20px}.refresh-sheet>.spread:first-child h2{margin:0;font:600 22px/1.2 Barlow,sans-serif}.refresh-sheet>.spread:first-child>button[aria-label^=Close]{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:10px;border:0;border-radius:50%;background:var(--surface)}.refresh-sheet>.spread:first-child>button svg{height:20px;width:20px}.refresh-sheet p{font-size:16px}.refresh-sheet .small{font-size:14px}.refresh-sheet form label{margin:18px 0}.refresh-sheet [role=status]:empty{display:none}
.refresh-switch{font-size:16px;padding:15px 0;min-height:60px}.switch-value small{font-size:13px}.switch-value i{width:40px;height:24px}.switch-value i:after{width:18px;height:18px}.refresh-switch[aria-checked=true] .switch-value i{background:var(--accent)}.refresh-switch[aria-checked=true] .switch-value i:after{transform:translateX(16px)}
#settings-view>h1{font-size:30px}.settings-account{border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:18px}.settings-account strong{font-size:21px}.settings-account p{font-size:14px;margin:4px 0 14px}.settings-account .account-actions button{min-height:43px;font-size:14px;border-radius:11px}.settings-section-label{font:600 13px Barlow,sans-serif;letter-spacing:.1em;margin:28px 0 10px}.settings-row{font-size:16px;min-height:70px;gap:14px;padding:15px 2px;line-height:1.3}.settings-row small{font:400 13px/1.4 Barlow,sans-serif;margin-top:5px}.settings-row svg{width:20px;height:20px;flex-shrink:0;color:var(--muted)}
.friends-dialog,.chat-dialog{background:var(--bg);color:var(--ink);max-width:620px}.friends-dialog h2,.chat-heading-copy h2{font:600 22px/1.2 Barlow,sans-serif}.friends-dialog button,.chat-dialog button{font-family:Barlow,sans-serif}.friends-dialog input,.friends-dialog textarea{font-size:16px}.friends-tabs button,.friends-dialog small{font-size:14px}.friend-row strong{font-size:17px}.friend-row small{font-size:13px}.chat-avatar{width:42px;height:42px;font:600 14px Barlow,sans-serif;background:var(--soft)}.chat-inbox-row{gap:13px;padding:18px 0;border-bottom:1px solid var(--line)}.chat-inbox-copy strong{font:600 17px Barlow,sans-serif}.chat-inbox-copy small{font:400 14px Barlow,sans-serif;margin-top:5px}.chat-inbox-count,.chat-unread{background:var(--accent);color:#0b0b0b}.chat-new{background:var(--surface);border:1px solid var(--line);border-radius:14px;font-size:16px}
.chat-row{gap:8px;margin:15px 0}.chat-row .chat-avatar{width:28px;height:28px;font-size:11px;flex-shrink:0;align-self:flex-end}.chat-row .chat-avatar img{width:100%;height:100%;object-fit:cover}.chat-bubble{font:400 16px/1.45 Barlow,sans-serif;background:var(--surface);color:var(--ink);border-radius:17px 17px 17px 5px;padding:12px 15px}.chat-row.mine .chat-bubble{background:#353535;color:#f4f3ee;border-radius:17px 17px 5px 17px}.chat-name{font-size:13px;margin:0 0 5px}.chat-meta{font-size:12px;color:var(--muted)}.chat-composer{gap:10px}.chat-composer textarea{background:var(--surface);border:1px solid var(--line);border-radius:25px;font-size:16px;min-height:49px}.chat-send{background:var(--ink)!important;color:var(--bg)!important;width:46px;height:46px;padding:11px;border-radius:50%}
.create-refresh{max-width:620px}.create-refresh>header{padding:14px 20px;height:70px}.create-refresh>header button{font-size:15px;min-width:44px}.create-body{padding:12px 20px 24px}.create-body h1{font-size:30px}.create-steps{font:500 14px Barlow,sans-serif;gap:8px;margin-bottom:22px}.create-steps .current{color:var(--accent)}.create-footer{padding:12px 20px calc(16px + env(safe-area-inset-bottom))}.goal-schedule-options button{font-size:16px}.goal-schedule-options [aria-pressed=true]{border-color:var(--accent);background:var(--soft);color:var(--ink)}.create-unit-input>span{font-size:14px}.create-pacing-preview{background:var(--surface);border:1px solid var(--line);border-radius:14px}.create-pacing-preview p{font-size:14px}.review-row{font-size:16px;padding:14px 0;gap:16px}.review-card h2{font-size:20px}.review-card p{font-size:14px}
.exercise-chooser .exercise-search{position:sticky;top:0;z-index:1;background:var(--bg);padding-bottom:12px}.exercise-list{display:grid;gap:7px}.exercise-option{display:flex;align-items:center;gap:13px;width:100%;text-align:left;min-height:66px;padding:13px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.exercise-option.selected{border-color:var(--accent)}.exercise-option .exercise-icon{width:38px;height:38px;display:grid;place-items:center;background:var(--soft);border-radius:10px;color:var(--accent)}.exercise-option svg{width:22px;height:22px}.exercise-option strong{font-size:16px;display:block}.exercise-option small{font-size:13px;color:var(--muted);display:block;margin-top:4px}.exercise-choose-button{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--surface);border:1px solid var(--line);padding:15px;border-radius:14px;font-size:17px;min-height:58px;text-align:left}.exercise-choose-button svg{width:20px;height:20px;flex-shrink:0}.exercise-select-native{display:none!important}
#workout-view .studio-setup-goal strong{font:600 25px/1.2 Barlow,sans-serif;letter-spacing:-.5px}.studio-setup-goal small{font-size:14px}.guide-label{font-size:14px}#guide-caption,#tracker-guide{font-size:14px;line-height:1.45}.studio-report{font-size:14px!important}.audio-settings label,.recording-settings label{font-size:14px}
#saved-workout-result h1{font-size:34px}.refresh-saved .result-card{border:1px solid var(--line);border-radius:22px;padding:22px}.refresh-saved .result-value{font:700 64px/1 Barlow,sans-serif;letter-spacing:-2px;color:var(--success)}.refresh-saved .saved-actions{gap:11px}.refresh-saved .saved-actions button{font-size:16px;border-radius:14px;min-height:52px}.refresh-saved .saved-actions button.primary{background:var(--accent)!important}
.camera-focus .focus-counter,.camera-focus #reps,.camera-focus #tracker-value{font-family:Barlow,sans-serif}.camera-focus .focus-action-save{background:var(--accent)!important}.goal-complete #reps,.goal-complete #tracker-value{color:var(--success)!important}.goal-complete #finish,.goal-complete #tracker-save{background:var(--success)!important;color:#0b0b0b!important}
.goal-celebrate{animation:goal-celebration .6s ease-out}.goal-celebrate #reps,.goal-celebrate #tracker-value{animation:goal-number .6s ease-out}@keyframes goal-celebration{30%{box-shadow:inset 0 0 0 4px var(--success)}100%{box-shadow:inset 0 0 0 0 transparent}}@keyframes goal-number{35%{text-shadow:0 0 28px color-mix(in srgb,var(--success) 55%,transparent)}100%{text-shadow:none}}
.completion-photo-page{max-width:620px}.photo-page-header h2{font:600 20px Barlow,sans-serif}.photo-page-header button{font-size:16px}.photo-page-dock .primary{border-radius:14px}.photo-page-dock p,.photo-audience-note{font-size:14px}.photo-page-dock button:not(.primary){font-size:15px}.photo-style-sheet .small{font-size:14px}
@media(max-width:360px){body>main{padding-inline:16px}body>header{padding-inline:16px}.challenge-overview-tile{padding:16px}.refresh-card-head strong{font-size:17px}.refresh-card-head small{font-size:12px}.challenge-overview-amount{font-size:38px}.refresh-card-foot{font-size:13px}.standings-name{font-size:16px!important}.standings-progress{font-size:18px}.standings-avatar{width:38px;height:38px;flex-basis:38px}#profile-view .pa-hero{gap:12px}#profile-view .pa-story-avatar,#profile-view .pa-avatar{width:64px;height:64px;flex-basis:64px}#profile-view .pa-identity h1{font-size:23px!important}#profile-view .pa-stats span{font-size:12px}.create-body,.create-footer{padding-inline:16px}.refresh-sheet{padding:18px}.pot-total strong,.pot-payout strong{font-size:25px}}
@media(prefers-reduced-motion:reduce){.goal-celebrate,.goal-celebrate #reps,.goal-celebrate #tracker-value{animation:none}}

/* Keep legacy theme selectors from restoring the former blue counters. */
html[data-theme] .challenge-overview-amount{color:var(--ink)}
html[data-theme] .is-complete .challenge-overview-amount{color:var(--success)}

dialog.chat-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.chat-dialog .chat-header{flex:none;position:static}
.chat-dialog .chat-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto}
.chat-dialog .chat-thread{flex:1;min-height:0}
.chat-dialog .chat-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.chat-dialog .chat-composer{position:static;flex:none;margin-top:0}
.chat-dialog .chat-status{flex:none}
.create-refresh .goal-schedule-choice button[aria-pressed=true]{background:var(--soft);color:var(--ink);box-shadow:inset 0 0 0 1px var(--accent)}
.create-refresh .create-steps .current{display:inline-flex;gap:4px}
.create-refresh .create-goal-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.create-refresh .create-unit-input{flex-direction:column;align-items:stretch;gap:0;padding:0}
.create-refresh .create-unit-input>input{width:100%;padding:12px 14px 2px;font-size:26px;flex:none}
.create-refresh .create-unit-input>span{padding:0 14px 12px;font-size:13px}
.create-refresh .create-unit-input:focus-within{outline-color:var(--accent)}
.create-refresh form>label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:10px;line-height:1.5}
.create-refresh form>label:has(input[type=checkbox]) input{margin:2px 0 0}
.create-refresh .create-footer>button{text-align:center;justify-content:center}

#friends-dialog.friends-screen{--friends-bg:var(--bg);--friends-panel:var(--surface);--friends-line:var(--line);--friends-ink:var(--ink);--friends-muted:var(--muted);--friends-blue:var(--accent);font-family:Barlow,Arial,sans-serif;max-width:620px}
#friends-dialog h2{font:700 30px/1.1 Barlow,sans-serif}
#friends-dialog .friends-person strong{font-size:17px}#friends-dialog .friends-person small{font-size:13px}#friends-dialog .friends-action{font-size:14px;border-radius:12px;min-height:44px}
#friends-dialog .friends-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#friends-dialog .friends-tabs button{font-size:14px}
#friends-dialog .friends-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:9px max(8px,env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-right));min-height:calc(72px + env(safe-area-inset-bottom))}
#friends-dialog .friends-nav button{min-width:0;width:100%;height:50px}
#friends-dialog [data-friends-nav=workout] .nav-symbol{width:46px;height:46px;margin-top:-14px;border-radius:50%;background:var(--accent);color:#0b0b0b;box-shadow:0 0 0 6px var(--bg)}
@media(max-width:360px){#home-create-dock button{font-size:14px;padding:10px 8px}}
#workout-picker.card{border:0;padding:0;background:none}
#workout-picker .fields{grid-template-columns:minmax(0,1fr);display:grid}
#workout-picker .fields>label{width:100%;display:block}
#workout-picker .exercise-choose-button{margin-top:8px}
#workout-view .eyebrow{color:var(--muted)}

/* Center the completed-workout label independently of its trailing arrow. */
.daily-done #workout{position:relative;align-items:center;justify-content:center;text-align:center;padding-inline:32px;line-height:1.25}
.daily-done #workout>span[aria-hidden="true"]{position:absolute;right:12px;top:50%;transform:translateY(-50%);line-height:1}
