/* Evergreen at night: surfaces, controls, graphs and the first-run guide. */
:root[data-theme=dark]{color-scheme:dark;--bg:#101813;--white:#1b2822;--ink:#e5eee7;--muted:#aabbaf;--green:#396f52;--mint:#cbeab0;--line:#3c4b40;--soft:#27392e;--lavender:#302d3c;--accent-text:#b6dfbe}
html{background:var(--bg,#f5f5ef)}
:root[data-theme=dark] .rhythm a{color:var(--accent-text)}
:root[data-theme=dark] .rhythm .button:not(.quiet){color:white}
:root[data-theme=dark] .rhythm .brand{color:var(--ink)}
:root[data-theme=dark] .rhythm summary,:root[data-theme=dark] .rhythm .estimate-heading{color:var(--accent-text)}
:root[data-theme=dark] .rhythm button:hover,:root[data-theme=dark] .rhythm .button:hover{background:#477d5f}
:root[data-theme=dark] .rhythm button:disabled{background:#344238;color:#b0bbaf}
:root[data-theme=dark] .rhythm button.quiet,:root[data-theme=dark] .rhythm .button.quiet{background:var(--soft);color:var(--accent-text)}
:root[data-theme=dark] .rhythm button.quiet:hover{background:#354c3d}
:root[data-theme=dark] .rhythm .danger{color:#f2ad98!important}
:root[data-theme=dark] .rhythm .card,:root[data-theme=dark] .rhythm .panel{border-color:#2d3d32}
:root[data-theme=dark] .rhythm .avatar,:root[data-theme=dark] .rhythm .account-card .avatar{background:#354c39;color:var(--accent-text)}
:root[data-theme=dark] .rhythm .calorie-card{background:#234b39}
:root[data-theme=dark] .rhythm .pill,:root[data-theme=dark] .rhythm .tag{background:var(--soft);color:var(--accent-text)}
:root[data-theme=dark] .rhythm .calorie-card .pill{background:#ffffff17;color:#d9edcd}
:root[data-theme=dark] .rhythm .macro,:root[data-theme=dark] .rhythm .meal-list,:root[data-theme=dark] .rhythm details,:root[data-theme=dark] .rhythm .weight-hero,:root[data-theme=dark] .rhythm #answer:not(:empty),:root[data-theme=dark] .rhythm .metric-tile,:root[data-theme=dark] .rhythm .app-main:has(#profile)>form,:root[data-theme=dark] .rhythm .app-main:has(#goal)>form,:root[data-theme=dark] .rhythm .app-main:has(#finish)>form{background:var(--white)}
:root[data-theme=dark] .rhythm .vital,:root[data-theme=dark] .rhythm .coach-hero,:root[data-theme=dark] .rhythm .account-card{background:#27382a}
:root[data-theme=dark] .rhythm .meal-tile,:root[data-theme=dark] .rhythm .coach-mark,:root[data-theme=dark] .rhythm .connection-heading .icon-box{background:var(--soft);color:var(--accent-text)}
:root[data-theme=dark] .rhythm progress,:root[data-theme=dark] .rhythm progress::-webkit-progress-bar{background:#415239}
:root[data-theme=dark] .rhythm progress::-webkit-progress-value{background:#b3cf91}
:root[data-theme=dark] .rhythm .icon-button{color:#b8c7b6!important}
:root[data-theme=dark] .rhythm .bottom-nav{background:#18241df5;border-color:var(--line);box-shadow:0 -4px 30px #0003}
:root[data-theme=dark] .rhythm .bottom-nav a{color:#a9b7aa}
:root[data-theme=dark] .rhythm .bottom-nav a[aria-current=page]{background:#2d4233;color:#d1ebc2}
:root[data-theme=dark] .rhythm input,:root[data-theme=dark] .rhythm select,:root[data-theme=dark] .rhythm textarea{background:#152019;color:var(--ink);border-color:var(--line);accent-color:#aad498}
:root[data-theme=dark] .rhythm input::placeholder,:root[data-theme=dark] .rhythm textarea::placeholder{color:#a1afa3}
:root[data-theme=dark] .rhythm input[readonly]{background:var(--soft);color:var(--accent-text)}
:root[data-theme=dark] .rhythm .segmented{background:#142019}
:root[data-theme=dark] .rhythm .segmented button[aria-selected=true]{background:#35483a;color:#d7edcd}
:root[data-theme=dark] .rhythm .photo-drop{background:#233126;border-color:#607456}
:root[data-theme=dark] .rhythm .photo-drop .icon{color:#bed6a7}
:root[data-theme=dark] .rhythm #estimate:not(:empty),:root[data-theme=dark] .rhythm #user-invite,:root[data-theme=dark] .rhythm .nutrition-estimate,:root[data-theme=dark] .rhythm .training-suggestion{background:#26362a}
:root[data-theme=dark] .rhythm .coach-hero p,:root[data-theme=dark] .rhythm .composition-explanation,:root[data-theme=dark] .rhythm .training-suggestion p,:root[data-theme=dark] .rhythm .training-calories>span,:root[data-theme=dark] .rhythm .training-calories>b{color:#b7c7b0}
:root[data-theme=dark] .rhythm .error{background:#472e29;color:#ffc5af}
:root[data-theme=dark] .rhythm .wizard-progress span{background:#3b4b3b}
:root[data-theme=dark] .rhythm .wizard-progress .done{background:#a6cb91}
:root[data-theme=dark] .rhythm #watch-card details,:root[data-theme=dark] .rhythm #scales-card details,:root[data-theme=dark] .rhythm .scale-preview-list .check,:root[data-theme=dark] .rhythm .macro-goals .macro,:root[data-theme=dark] .rhythm .training-applied{border-color:var(--line)}
:root[data-theme=dark] .rhythm .macro-goals .macro-remaining{color:#b5d5a3}
:root[data-theme=dark] .rhythm .macro-goals .macro-over .macro-remaining{color:#efb38b}
:root[data-theme=dark] .rhythm .macro-track{stroke:#3c4c3e}
:root[data-theme=dark] .rhythm .macro-donut>span{color:var(--ink)}
:root[data-theme=dark] .rhythm .training-efforts span{border-color:var(--line);background:#152019}
:root[data-theme=dark] .rhythm .training-efforts input:checked+span{background:#396f52;color:white;border-color:#7fa68b}
:root[data-theme=dark] .rhythm .weight-chart path[stroke="#edf0e7"]{stroke:var(--line)}
:root[data-theme=dark] .rhythm .weight-chart path[stroke="#587b43"]{stroke:#b3d295}
:root[data-theme=dark] .rhythm .weight-chart circle{fill:#badc9d;stroke:var(--white)}
:root[data-theme=dark] .rhythm .chart-bars text{fill:var(--muted)}
:root[data-theme=dark] .rhythm .chart-bars rect[fill="#214d3b"]{fill:#8db87e}
:root[data-theme=dark] .rhythm .intro-guide{background:var(--bg);color:var(--ink);box-shadow:0 28px 100px #0008}
:root[data-theme=dark] .rhythm .intro-guide .intro-skip,:root[data-theme=dark] .rhythm .intro-copy .intro-label,:root[data-theme=dark] .rhythm .intro-copy #intro-description,:root[data-theme=dark] .rhythm .intro-demo,:root[data-theme=dark] .rhythm .intro-bottom>small,:root[data-theme=dark] .rhythm .intro-quiet{color:var(--muted)}
:root[data-theme=dark] .rhythm .intro-art{background:radial-gradient(ellipse at 50% 90%,#3d5132,transparent 70%),#213025}
:root[data-theme=dark] .rhythm .intro-mini-plan,:root[data-theme=dark] .rhythm .intro-meal-note,:root[data-theme=dark] .rhythm .intro-device,:root[data-theme=dark] .rhythm .intro-device-receipt,:root[data-theme=dark] .rhythm .intro-notification{background:var(--white)}
:root[data-theme=dark] .rhythm .intro-device-receipt>span,:root[data-theme=dark] .rhythm .intro-notification small{color:var(--muted)}
:root[data-theme=dark] .rhythm .intro-guide .intro-back{border-color:var(--line);color:var(--accent-text)}
:root[data-theme=dark] .rhythm .intro-progress button::after{background:#6c7e64}
:root[data-theme=dark] .rhythm .intro-progress button[aria-current]::after{background:#c3e3a8}
:root[data-theme=dark] .rhythm .intro-photo-frame>.icon{background:var(--white)}

/* Desktop layout: mobile rules remain authoritative below 1024px. */
@media (min-width:1024px) {
 .rhythm{--desktop-rail:190px}
 .rhythm .app-header{max-width:1440px;height:104px;padding:26px 40px;margin:auto}
 .rhythm #connection{max-width:180px;font-size:13px}
 .rhythm .app-main{max-width:1180px;margin:0 auto;padding:16px 40px 64px 230px;min-height:calc(100vh - 104px)}
 .rhythm:has(#nav:not([hidden])) .bottom-nav{position:fixed;top:126px;bottom:auto;left:max(24px,calc((100vw - 1440px)/2 + 40px));transform:none;width:174px;max-width:none;display:flex;flex-direction:column;align-items:stretch;padding:10px;gap:6px;border:1px solid var(--line);border-radius:22px;box-shadow:none;background:var(--white)}
 .rhythm .bottom-nav a{flex:none;flex-direction:row;justify-content:flex-start;gap:12px;padding:13px 12px;font-size:12px;min-height:50px;letter-spacing:0}
 .rhythm .bottom-nav .icon{width:21px;height:21px}
 .rhythm .app-main:has(.home-heading){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px 24px;align-items:start}
 .rhythm .home-heading{grid-column:1/-1;margin:0 0 6px}
 .rhythm .home-heading h1{font-size:34px;max-width:none}
 .rhythm .home-food{grid-column:1;grid-row:2 / span 2;margin:0;padding:28px}
 .rhythm [data-weight-insight]{grid-column:2;grid-row:2;min-width:0}
 .rhythm [data-weight-insight] .card{margin:0}
 .rhythm .home-vitals{grid-column:2;grid-row:3;margin:0}
 .rhythm .home-next{grid-column:1/-1;margin:0}
 .rhythm .home-shortcuts{grid-column:1/-1;margin:0}
 .rhythm .home-freshness,.rhythm .home-details{grid-column:1/-1;margin:0}
 .rhythm .home-food-number>strong{font-size:52px}
 .rhythm .app-main:has(.composer-card){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px 24px;align-items:start}
 .rhythm .app-main:has(.composer-card)>.page-intro{grid-column:1/-1;margin-bottom:0}
 .rhythm .app-main:has(.composer-card)>.composer-card{grid-column:1;grid-row:3 / span 3;position:sticky;top:24px;margin:0}
 .rhythm .app-main:has(.composer-card)>#estimate{grid-column:2;min-width:0}
 .rhythm #estimate:empty{display:none}
 .rhythm .app-main:has(.composer-card)>.macro-grid{grid-column:2;margin:0}
 .rhythm .app-main:has(.composer-card)>.section-head{grid-column:2;margin:0}
 .rhythm .app-main:has(.composer-card)>.section-head+div{grid-column:2;min-width:0}
 .rhythm .app-main:has(.composer-card)>:not(.composer-card):not(#estimate):not(.macro-grid):not(.section-head):not(.section-head+div){grid-column:1/-1}
 .rhythm textarea{min-height:110px;resize:vertical}
 .rhythm .segmented button{padding-left:10px;padding-right:10px}
 .rhythm .app-main:has(#login-form){max-width:600px;padding:30px 40px;margin:auto}
}
@media (min-width:1440px){.rhythm .app-main{max-width:1360px;padding-left:250px;padding-right:60px}.rhythm .bottom-nav{width:190px!important}}
@media (min-width:1024px) and (max-height:650px){.rhythm:has(#nav:not([hidden])) .bottom-nav{top:100px;max-height:calc(100vh - 120px);overflow-y:auto}}
@media(min-width:1024px){
 .rhythm .app-main:has(.composer-card)>.macro-section{grid-column:2!important;grid-row:3;margin:0;min-width:0}
 .rhythm .app-main:has(.composer-card)>.section-head{grid-column:2;grid-row:4;margin:0}
 .rhythm .app-main:has(.composer-card)>.section-head+div{grid-column:2;grid-row:5}
 .rhythm .app-main:has(.composer-card)>#estimate{grid-column:1;grid-row:6}
}

/* Dreeve: meaning before abbreviations; details use the shared metric dialog. */
.dreeve-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
.dreeve-metric{min-width:0;padding:18px 16px;border:1px solid var(--line,#526052);border-radius:18px;cursor:pointer}
.dreeve-metric strong{display:block;font-size:32px;font-weight:400;line-height:1.3;margin:10px 0}
.dreeve-metric p{font-size:13px;line-height:1.5;margin:0}
.dreeve-metric small{display:flex;justify-content:space-between;gap:6px}
.dreeve-metric:focus-visible{outline:2px solid var(--accent,#b7cd8b);outline-offset:3px}
.dreeve-open{display:flex;margin-top:20px;justify-content:space-between}
@media(max-width:600px){.dreeve-metrics{grid-template-columns:1fr}.dreeve-metric strong{font-size:30px;margin:6px 0}}

/* Training: mobile analytics in Rhythm, without embedding the desktop dashboard. */
.rhythm .training-tabs{display:flex;gap:6px;background:var(--soft);border-radius:16px;padding:5px;margin:0 0 24px}
.rhythm .training-tabs button{flex:1;min-height:44px;border-radius:12px;background:transparent;color:var(--muted);font-size:13px}
.rhythm .training-tabs button[aria-pressed=true]{background:var(--white);color:var(--ink);box-shadow:0 2px 10px #0000000a}
.rhythm .dreeve-card{padding:24px;background:var(--white)}
.rhythm .dreeve-card h2{font-size:26px;font-weight:400;line-height:1.15;letter-spacing:-.8px;max-width:24ch;margin:14px 0}
.rhythm .training-insight{font-size:13px;line-height:1.7;color:var(--muted)}
.rhythm .dreeve-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-block:1px solid var(--line);margin:22px 0 12px}
.rhythm .dreeve-metric{padding:16px 10px;border:0;border-right:1px solid var(--line);border-radius:0;position:relative}
.rhythm .dreeve-metric:first-child{padding-left:0}.rhythm .dreeve-metric:last-child{border-right:0}
.rhythm .dreeve-metric small{font-size:10px;line-height:1.5;min-height:30px;padding-right:9px;display:block}
.rhythm .dreeve-metric small span{display:none}.rhythm .dreeve-metric[data-metric-help]:after{right:6px;top:17px;font-size:10px}
.rhythm .dreeve-metric strong{font-size:30px;font-weight:400;letter-spacing:-1px;margin:6px 0 0}
.rhythm .dreeve-metric p{display:none}
.rhythm .dreeve-open{background:transparent!important;border-top:1px solid var(--line);border-radius:0;margin:18px 0 -4px;padding:17px 0 0;min-height:44px;justify-content:flex-start;font-size:11px;color:var(--muted)!important}
.rhythm .training-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rhythm .training-section-heading h2{font-size:20px;margin:7px 0 0;font-weight:500;letter-spacing:-.5px}
.rhythm .training-section-heading .eyebrow{margin:0;font-size:8px}
.rhythm .training-periods{display:flex;gap:2px;flex-shrink:0}
.rhythm .training-periods button{padding:6px 8px;min-height:44px;font-size:10px;background:transparent;color:var(--muted);border-radius:10px}
.rhythm .training-periods button[aria-pressed=true]{background:var(--soft);color:var(--ink)}
.rhythm .training-volume-total{margin:24px 0 12px;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.rhythm .training-volume-total strong{font-size:38px;font-weight:400;letter-spacing:-1.5px}
.rhythm .training-volume-total span{color:var(--muted);font-size:11px}
.rhythm .training-volume-chart{display:block;width:100%;height:auto;color:var(--green);overflow:visible}
:root[data-theme=dark] .rhythm .training-volume-chart{color:#b3cf91}
.rhythm .training-volume-chart text{fill:var(--muted);font-size:9px}
.rhythm .training-volume-chart [data-volume-bin]{cursor:pointer;outline-offset:3px}
.rhythm .training-chart-empty{padding:32px 0;font-size:13px;color:var(--muted)}
.rhythm .training-sports{margin-top:22px;display:grid;gap:16px;border-top:1px solid var(--line);padding-top:20px}
.rhythm .training-sport{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:11px}
.rhythm .training-sport span{display:flex;align-items:center;gap:7px}.rhythm .training-sport strong{font-weight:500}
.rhythm .training-sport i{width:6px;height:6px;border-radius:50%;background:var(--green);opacity:calc(1 - var(--sport-index)*.22)}
.rhythm .training-sport progress{grid-column:1/-1;width:100%;height:3px}
.rhythm .training-volume .source-note{font-size:10px;line-height:1.7}
@media(max-width:360px){.rhythm .dreeve-card,.rhythm .training-volume{padding:18px}.rhythm .training-section-heading{gap:5px}.rhythm .training-periods button{padding:5px 6px}.rhythm .dreeve-metric strong{font-size:26px}}
@media(min-width:1024px){.rhythm .app-main[data-page=training]{max-width:1180px}.rhythm .dreeve-card h2{max-width:none}.rhythm .dreeve-metric p{display:block;font-size:12px}.rhythm .dreeve-metric small{font-size:12px;min-height:0}.rhythm .dreeve-metric strong{font-size:38px}.rhythm .training-volume-chart{max-height:240px}}
/* A readable week on phones: exercises stay visible, calendar days do not collapse. */
.rhythm .program-entry{margin:0 0 22px;justify-content:space-between;font-size:13px;text-align:left}
.rhythm .program-preferences fieldset{border:0;padding:0;margin:18px 0}.rhythm .program-preferences legend{font-size:12px;margin-bottom:10px}
.rhythm .program-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.rhythm .program-weekdays label{margin:0;position:relative}
.rhythm .program-weekdays input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.rhythm .program-weekdays span{display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;min-height:44px;font-size:12px}
.rhythm .program-weekdays input:checked+span{background:var(--green);color:white;border-color:var(--green)}.rhythm .program-weekdays input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.rhythm .program-session-time{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;color:var(--muted);font-size:11px}.rhythm .program-session-time strong{color:var(--ink);font-weight:500}
.rhythm .program-session h2{font-size:24px;font-weight:400;letter-spacing:-.7px;line-height:1.2;margin:16px 0}
.rhythm .program-blocks{padding-left:22px;margin:24px 0}.rhythm .program-blocks li{padding:0 0 18px 5px;border-bottom:1px solid var(--line);margin-bottom:20px}
.rhythm .program-blocks h3{font-size:16px;font-weight:600;margin:0 0 9px}.rhythm .program-blocks p{font-size:12px;line-height:1.7;margin:6px 0}.rhythm .program-blocks small{font-size:11px;line-height:1.7}
.rhythm .program-result{border-top:1px solid var(--line);margin-top:24px;padding-top:15px}.rhythm .program-rest{padding:18px 8px;display:flex;flex-direction:column;gap:6px;border-bottom:1px solid var(--line);margin-bottom:20px}
.rhythm .program-rest span{font-size:11px;color:var(--muted)}.rhythm .program-rest strong{font-size:13px;font-weight:500}
.rhythm .program-phase{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}.rhythm .program-phase h3{font-size:16px;margin:8px 0}.rhythm .program-phase p{font-size:12px}

.rhythm .program-goal{border-left:2px solid var(--line);padding:0 0 0 14px;margin:0 0 22px}.rhythm .program-goal p{font-size:13px;line-height:1.6;margin:0 0 8px}.rhythm .program-goal small{font-size:10px}.rhythm #program-edit{margin-bottom:22px}.rhythm [data-page=program]>.section-head{align-items:flex-start;gap:10px}.rhythm [data-page=program]>.section-head small{font-size:9px}

.rhythm .ai-style-preview{background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:16px;margin:12px 0 24px}.rhythm .ai-style-preview p{font-size:14px;line-height:1.6;margin:10px 0}.rhythm .ai-style-preview small{font-size:10px;line-height:1.6}

/* Assistant: quiet data rows instead of large disclosure panels. */
:root .rhythm .coach-data{margin:28px 0 16px;border-top:1px solid var(--line);padding-top:22px}
:root .rhythm .coach-data>h2{font-size:10px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
:root .rhythm .coach-data details.coach-tools{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:0;margin:0}
:root .rhythm .coach-data details.coach-tools>summary,:root .rhythm .coach-data-link{display:flex;align-items:center;gap:14px;min-height:80px;padding:17px 0;background:transparent;border:0;border-radius:0;box-shadow:none;list-style:none;color:var(--ink);text-decoration:none;cursor:pointer}
:root .rhythm .coach-data details.coach-tools>summary::-webkit-details-marker{display:none}
:root .rhythm .coach-data details.coach-tools>summary::after{display:none}
:root .rhythm .coach-data-icon{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;color:var(--muted);border:1px solid var(--line);border-radius:50%}
:root .rhythm .coach-data-icon svg{width:18px;height:18px}
:root .rhythm .coach-data-label{flex:1;min-width:0;display:grid;gap:5px}
:root .rhythm .coach-data-label strong{font-size:14px;font-weight:500;line-height:1.35}
:root .rhythm .coach-data-label small{font-size:11px;color:var(--muted);line-height:1.5;margin:0}
:root .rhythm .coach-chevron{font-size:20px;line-height:1;color:var(--muted);transition:transform .2s}
:root .rhythm .coach-tools[open] .coach-chevron{transform:rotate(180deg)}
:root .rhythm .coach-data-link>svg{width:17px;height:17px;color:var(--muted)}
:root .rhythm .coach-data-empty{font-size:12px;color:var(--muted);padding:0 0 18px}
:root .rhythm .coach-data .watch-analysis{margin:0 0 20px}
:root .rhythm .coach-assistant details.coach-facts>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:5px 0;background:transparent;border:0;box-shadow:none;list-style:none;font-size:10px;font-weight:400;color:var(--muted)}
:root .rhythm .coach-assistant details.coach-facts>summary::-webkit-details-marker{display:none}
:root .rhythm .coach-assistant details.coach-facts>summary::after{content:'⌄';position:static;font-size:14px;color:var(--muted)}
:root .rhythm .coach-assistant details.coach-facts[open]>summary::after{content:'⌃'}
:root .rhythm .coach-facts-meta{margin-left:auto;font-size:9px}
:root .rhythm .coach-data summary:focus-visible,:root .rhythm .coach-data-link:focus-visible{outline:2px solid var(--accent-text,var(--green));outline-offset:3px}

/* Exercise technique: contained, accessible visual reference. */
:root .rhythm button.technique-open{display:inline-flex;align-items:center;gap:8px;min-height:44px;background:transparent;color:var(--accent-text,var(--green));border:1px solid var(--line);border-radius:24px;padding:8px 14px;margin:14px 0 0;font-size:12px;font-weight:600;box-shadow:none}
:root .rhythm .technique-open svg{width:18px;height:18px}
:root .rhythm dialog.technique-dialog{width:min(650px,calc(100vw - 28px));max-width:650px;max-height:calc(100dvh - 40px);margin:auto;padding:26px;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:24px;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;box-shadow:0 24px 80px #0005}
:root .rhythm dialog.technique-dialog::backdrop{background:#07120bd9;backdrop-filter:blur(4px)}
:root .rhythm .technique-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
:root .rhythm .technique-heading small{font-size:9px;letter-spacing:.14em;color:var(--muted)}
:root .rhythm .technique-heading h2{font-size:24px;line-height:1.25;margin:10px 0 0;letter-spacing:-.04em}
:root .rhythm .technique-close{flex:none;display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;background:var(--soft);color:var(--ink);font-size:25px}
:root .rhythm .technique-plan-name{font-size:11px;line-height:1.6;color:var(--muted);margin:14px 0}
:root .rhythm .technique-picker{font-size:11px;margin:0 0 16px}
:root .rhythm .technique-picker select{font-size:13px;width:100%;margin-top:7px;min-height:44px}
:root .rhythm .technique-visual{border-radius:18px;background:#d9effb;overflow:hidden;max-width:420px;margin:0 auto}
:root .rhythm .technique-visual img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;max-height:40dvh}
:root .rhythm .technique-visual img[hidden]{display:none}
:root .rhythm .technique-phases{display:flex;gap:8px;justify-content:center;margin:14px 0 20px}
:root .rhythm .technique-phases button{flex:1;max-width:210px;border-radius:12px;min-height:44px;padding:10px 8px;font-size:12px;background:var(--soft);color:var(--muted);border:1px solid transparent}
:root .rhythm .technique-phases button[aria-pressed=true]{color:var(--ink);border-color:var(--accent-text,var(--green));font-weight:600}
:root .rhythm .technique-steps{padding-left:22px;margin:18px 0;font-size:13px;line-height:1.7}
:root .rhythm .technique-steps li{padding-left:5px;margin:10px 0}
:root .rhythm .technique-variant,:root .rhythm .technique-unmatched{font-size:12px;line-height:1.65;padding:12px 14px;background:var(--soft);border-radius:12px;margin:16px 0}
:root .rhythm .technique-errors{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}
:root .rhythm .technique-errors h3{font-size:13px;margin:0 0 8px}
:root .rhythm .technique-errors p{font-size:12px;line-height:1.7;margin:0}
:root .rhythm .technique-footnote,:root .rhythm .technique-credit,:root .rhythm .technique-image-error{font-size:10px;line-height:1.65;color:var(--muted);margin:16px 0 0}
:root .rhythm .technique-credit{border-top:1px solid var(--line);padding-top:14px}
:root .rhythm .technique-image-error{padding:18px}
:root .rhythm .technique-dialog button:focus-visible,:root .rhythm .technique-open:focus-visible{outline:2px solid var(--accent-text,var(--green));outline-offset:3px}
@media(max-width:600px){:root .rhythm dialog.technique-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 20px);padding:20px;border-radius:20px}:root .rhythm .technique-heading h2{font-size:22px}}

:root .rhythm .technique-motion{background:#080c09;border-radius:16px;overflow:hidden}
:root .rhythm .technique-motion video{display:block;width:100%;height:auto;max-height:42dvh;object-fit:contain;background:#080c09}
:root .rhythm .technique-motion video[hidden]{display:none}
:root .rhythm .technique-motion-hint,:root .rhythm .technique-motion-credit,:root .rhythm .technique-video-error{font-size:10px;line-height:1.65;color:var(--muted);margin:10px 0 16px}
:root .rhythm .technique-video-error{padding:14px}
:root .rhythm details.technique-static{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 10px;margin:12px 0 18px;box-shadow:none}
:root .rhythm details.technique-static>summary{background:transparent;padding:10px 0;font-size:12px;min-height:44px;color:var(--accent-text,var(--green));border:0;border-radius:0;box-shadow:none;cursor:pointer}
:root .rhythm details.technique-static[open]>summary{margin-bottom:12px}

:root .rhythm .program-save-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
:root .rhythm .program-save-feedback{font-size:11px;line-height:1.55;margin:0;color:var(--accent-text,var(--green));flex:1;min-width:145px}
:root .rhythm .program-save-feedback.is-unsaved{color:var(--muted)}
:root .rhythm .program-save-feedback.is-error{color:#c76a52}
:root .rhythm .program-status{font-size:11px;line-height:1.6;color:var(--muted);margin:14px 0}
:root .rhythm .program-status.is-done{display:inline-flex;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:24px;padding:7px 12px;color:var(--accent-text,var(--green))}

:root .rhythm .program-result-review:not(:empty){border-top:1px solid var(--line);margin-top:22px;padding-top:20px}
:root .rhythm .program-review-heading{display:flex;align-items:center;gap:9px;color:var(--ink)}
:root .rhythm .program-review-heading h3{font-size:15px;margin:0;font-weight:600}
:root .rhythm .program-review-heading svg{width:19px;height:19px;color:var(--accent-text,var(--green))}
:root .rhythm .program-result-review>small{font-size:10px;color:var(--muted);display:block;margin:8px 0 14px}
:root .rhythm .program-result-review p,:root .rhythm .program-result-review .assistant-prose{font-size:13px;line-height:1.75}
:root .rhythm .program-result-review .program-review-error{font-size:12px;color:var(--muted)}
:root .rhythm .program-review-consent{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:12px}

/* Account-local tape measurements. */
:root .rhythm .body-measurements{margin-top:32px;padding-top:26px;border-top:1px solid var(--line);min-width:0}
:root .rhythm .measure-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:22px}
:root .rhythm .measure-heading h2{font-size:22px}
:root .rhythm .measure-heading p{font-size:12px;color:var(--muted);margin:7px 0 0}
:root .rhythm .measure-heading button{font-size:12px;padding:10px 14px;min-height:44px}
:root .rhythm .measure-stats,:root .rhythm .measure-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
:root .rhythm .measure-stat{min-width:0;padding-bottom:16px;border-bottom:1px solid var(--line)}
:root .rhythm .measure-stat>span{font-size:12px;color:var(--muted)}
:root .rhythm .measure-stat>strong{display:block;font-size:30px;font-weight:500;line-height:1.4;margin:6px 0}
:root .rhythm .measure-stat>strong small{display:inline;font-size:12px;margin-left:6px;font-weight:400}
:root .rhythm .measure-stat>small{font-size:10px}
:root .rhythm .measure-empty{font-size:12px;color:var(--muted);grid-column:1/-1;margin:0;padding:16px 0}
:root .rhythm .measure-editor,:root .rhythm .measure-history{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0;margin:20px 0}
:root .rhythm .measure-editor>summary,:root .rhythm .measure-history>summary{padding:16px 0;font-size:13px}
:root .rhythm .measure-editor form{padding:8px 0 20px}
:root .rhythm .measure-editor input{width:100%;min-width:0}
:root .rhythm .measure-editor label{min-width:0;font-size:12px}
:root .rhythm .measure-editor form>small{font-size:11px;margin:12px 0 18px}
:root .rhythm .measure-date-hint,:root .rhythm .measure-notice{font-size:12px;line-height:1.6;margin:12px 0}
:root .rhythm .measure-notice:empty{display:none}
:root .rhythm .measure-trend{margin-top:24px}
:root .rhythm .measure-trend>label{font-size:12px;max-width:320px}
:root .rhythm .measure-chart{display:block;width:100%;height:auto;color:var(--accent-text,var(--green));margin-top:20px}
:root .rhythm .measure-line{fill:none;stroke:currentColor;stroke-width:2}
:root .rhythm .measure-chart circle{fill:currentColor}
:root .rhythm .measure-grid{fill:none;stroke:var(--line);stroke-width:1}
:root .rhythm .measure-chart-dates{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted)}
:root .rhythm .measure-history-row{padding:16px 0;border-top:1px solid var(--line)}
:root .rhythm .measure-history-row strong{font-size:13px}
:root .rhythm .measure-history-row p{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0 12px;overflow-wrap:anywhere}
:root .rhythm .measure-history-actions{display:flex;gap:10px;flex-wrap:wrap}
:root .rhythm .measure-history-actions button{min-height:40px;padding:9px 13px;font-size:11px}
@media(min-width:1024px){:root .rhythm .measure-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:340px){:root .rhythm .measure-fields{grid-template-columns:1fr}}

:root .rhythm .cumulative-card{padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:18px 0 24px;min-width:0}
:root .rhythm .cumulative-card h3{font-size:18px;margin:0 0 12px}
:root .rhythm .cumulative-card h4{font-size:13px;font-weight:600;margin:22px 0 10px}
:root .rhythm .cumulative-card p,:root .rhythm .cumulative-card li{font-size:12px;line-height:1.75;margin:8px 0}
:root .rhythm .cumulative-intro,:root .rhythm .cumulative-metrics span{color:var(--muted)}
:root .rhythm .cumulative-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}
:root .rhythm .cumulative-metrics>div{min-width:0}
:root .rhythm .cumulative-metrics strong{font-size:12px}
:root .rhythm .cumulative-card small{font-size:10px;line-height:1.7}
:root .rhythm .cumulative-card details{background:none;border:0;border-radius:0;padding:16px 0 0;margin:0}
:root .rhythm .cumulative-card summary{font-size:12px;min-height:44px}
:root .rhythm .cumulative-card details a{font-size:11px}
@media(max-width:600px){:root .rhythm .cumulative-metrics{grid-template-columns:1fr;gap:14px}}

:root .rhythm .cumulative-eyebrow{display:block;color:var(--muted);font-size:10px;letter-spacing:1px;text-transform:uppercase;margin-bottom:12px}
:root .rhythm .cumulative-card>h3{font-size:24px;line-height:1.3;letter-spacing:-.7px;font-weight:600;max-width:560px;margin:0 0 16px}
:root .rhythm .cumulative-explanation p{font-size:13px;line-height:1.8;margin:10px 0}
:root .rhythm .cumulative-action{margin:20px 0;padding:16px 18px;border-left:2px solid var(--accent-text,var(--green));background:var(--soft);border-radius:0 12px 12px 0}
:root .rhythm .cumulative-action>strong{font-size:11px}
:root .rhythm .cumulative-action p{font-size:13px;margin:8px 0 0}
:root .rhythm .cumulative-discuss{font-size:12px;max-width:100%;white-space:normal;text-align:left}
:root .rhythm .cumulative-evidence{margin-top:16px!important;border-top:1px solid var(--line)!important}

:root .rhythm .coach-support:empty{display:none}
:root .rhythm .coach-support:not(:empty){border:1px solid var(--line);border-radius:18px;background:var(--soft);padding:20px;margin:18px 0 24px;overflow-wrap:anywhere}
:root .rhythm .coach-support-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;margin-bottom:12px;flex-wrap:wrap}
:root .rhythm .coach-support-label .icon{width:18px;height:18px}
:root .rhythm .coach-support-label small{margin-left:auto;font-size:10px;font-weight:400}
:root .rhythm .coach-support .assistant-prose{font-size:13px;line-height:1.75}
:root .rhythm .coach-support-context{font-size:10px;margin-top:12px}

/* Account entry and recovery, shared by browser and Android. */
.rhythm .app-main[data-page=login]{max-width:560px;margin-inline:auto;min-width:0}
.auth-shell{min-width:0}
.auth-shell input,.auth-receipt input{min-width:0;width:100%;box-sizing:border-box}
.auth-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.auth-links button{flex:1 1 140px}
.auth-legacy{margin-top:24px}
.auth-message{overflow-wrap:anywhere}
.auth-receipt{padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--white)}
.auth-receipt .check{display:flex;gap:10px;align-items:flex-start;margin-block:20px}
.auth-receipt .check input{width:auto;flex-shrink:0;margin-top:4px}
.auth-recovery{font-size:14px;letter-spacing:0;font-variant-ligatures:none}

.signup-check{min-width:0;margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:16px}
.signup-check legend{padding-inline:6px;color:var(--ink)}
.signup-check-image{min-height:86px;margin-bottom:8px;overflow-wrap:anywhere}
.signup-check-image img{display:block;width:264px;max-width:100%;height:auto;border-radius:10px}
.signup-check [data-refresh-check]{margin-bottom:12px}
