:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#102A43;background:#fff;font-synthesis:none;--ink:#102A43;--text:#334155;--muted:#5E6E7E;--blue:#0B6B42;--blue2:#0F8A56;--teal:#0F8A56;--surface:#fff;--canvas:#fff;--soft:#E7F6EC;--line:#E6ECE9;--field:#F1F5F2;--shadow:0 18px 50px rgba(27,66,104,.08)}
:root[data-theme=midnight]{--ink:#e6f4ff;--text:#cfe0ec;--muted:#a9c2d4;--blue:#86C99B;--blue2:#86C99B;--teal:#86C99B;--surface:#16293A;--canvas:#12222F;--soft:#1B3448;--line:#24394D;--field:#1B3448;--shadow:0 15px 50px #0004;background:#0b1421;color:#e6f4ff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(600px 300px at 0% 0%,rgba(15,138,86,.10),transparent 60%),radial-gradient(500px 300px at 100% 100%,rgba(230,126,34,.12),transparent 60%),#F4F7F5;color:var(--ink)}html[data-theme=midnight] body{background:radial-gradient(600px 300px at 0% 0%,rgba(15,138,86,.16),transparent 60%),radial-gradient(500px 300px at 100% 100%,rgba(230,126,34,.10),transparent 60%),#0b1421}button,input,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit;-webkit-tap-highlight-color:transparent;min-height:44px}button:disabled{cursor:not-allowed;opacity:.55}button:active:not(:disabled){transform:scale(.975)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #0F8A56;outline-offset:3px}#app{max-width:540px;margin:auto;background:linear-gradient(180deg,rgba(15,138,86,.05),rgba(15,138,86,0) 340px),linear-gradient(0deg,rgba(230,126,34,.04),rgba(230,126,34,0) 340px),var(--surface);min-height:100dvh;padding-bottom:140px;overflow:hidden}h1,h2,h3,p{letter-spacing:-.02em}h2{font-size:19px;margin:28px 0 14px;font-weight:800}h3{font-size:15px;margin:0 0 6px;font-weight:760}p{font-size:14px;line-height:1.6;color:var(--text)}small,.muted{color:var(--muted);font-size:13px;line-height:1.55}small{display:inline-block}a{color:var(--blue)}
.header{display:flex;align-items:center;gap:13px;padding:22px 21px 18px;background:var(--surface);position:sticky;top:0;z-index:3;border-bottom:1px solid var(--line)}.header h1{font-size:19px;letter-spacing:.04em;line-height:1.25;margin:0;flex:1;font-weight:850}.header button{width:44px;height:44px;font-size:27px;display:grid;place-items:center;border-radius:14px;background:var(--soft)}.page{padding:0 21px 28px}.page>h2{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.notice{border-radius:14px;background:#FEF3C7;padding:14px 16px;color:#92400E;font-size:13px;line-height:1.55;margin:17px 0}.tiny-note{padding:10px 12px;background:var(--canvas);border:1px solid var(--line);border-radius:12px;font-size:13px;color:var(--muted)}
.goal{background:var(--canvas);border:1px solid var(--line);border-radius:19px;padding:19px 18px;margin:7px 0 17px;box-shadow:0 4px 15px #00000003;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline}.goal .week{flex-basis:100%}.goal b{font-size:14px}.goal>span{font-weight:800;color:var(--blue);font-size:14px}.week{display:flex;justify-content:space-between;margin-top:16px;font-size:12px;color:var(--muted)}.week span{background:transparent;width:31px;height:31px;border:0;border-radius:0;display:grid;place-items:center;font-weight:750}
.banner{min-height:188px;padding:25px 22px;border-radius:23px;color:white;background:linear-gradient(117deg,#142433,#1d3a4d);margin:18px 0 22px;position:relative;overflow:hidden;box-shadow:0 14px 28px rgba(16,95,157,.15)}.banner>*:not(.banner-photo):not(.banner-shade){position:relative;z-index:1}.banner h2{color:#fff;margin:12px 0 9px;font-size:27px;line-height:1.1;max-width:50%;letter-spacing:-.05em}.banner p{color:#c9e7f5;margin:0;max-width:46%;font-size:13px}.banner .primary{margin-top:18px;width:auto;font-size:13px;display:inline-flex;padding:13px 18px}.banner .eyebrow{font-size:11px;font-weight:800;letter-spacing:.15em;color:#86C99B}
.chips{display:flex;gap:9px;overflow-x:auto;padding:2px 0 11px;scrollbar-width:none}.chip{padding:12px 18px;background:var(--canvas);border:1px solid var(--line);border-radius:99px;white-space:nowrap;font-size:13px;font-weight:700;color:var(--blue)}.chip.selected{color:#fff;background:#0F8A56;border-color:#0F8A56;box-shadow:0 5px 12px #0F8A5622}
.row{display:flex;align-items:center;gap:15px;width:100%;text-align:left;padding:13px 0;border-bottom:1px solid var(--line)}.row .grow{flex:1;min-width:0}.row .grow h3{font-size:15px}.row .grow small{font-size:13px}.row>span:last-child{color:var(--muted);font-size:23px}.tile{width:68px;height:65px;flex-shrink:0;display:grid;place-items:center;border-radius:16px;background:linear-gradient(140deg,#D3EDE0,#EAF7EF);color:#0B6B42;font-size:25px;font-weight:800}.bolt{color:var(--teal);font-size:13px;margin-top:5px}.primary,.secondary,.danger{display:block;width:100%;border-radius:99px;padding:15px 18px;font-size:14px;font-weight:800;transition:transform .15s,filter .2s}.primary{color:white;background:linear-gradient(135deg,#1DB271,#0B6B42);box-shadow:0 7px 18px #0F8A5625}.primary:hover{filter:brightness(1.05)}.secondary{color:var(--ink);background:#fff;border:1.5px solid #CBD5D1}.danger{color:#C0392B;background:#fff;border:1.5px solid #E8B4AC}.actions{display:flex;gap:10px;margin:17px 0}.actions>*{flex:1;min-width:0}
.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:540px;width:100%;display:flex;background:var(--surface);box-shadow:0 -8px 24px #182f4814;border-top:1px solid var(--line);padding:12px 7px max(12px,env(safe-area-inset-bottom));z-index:5}.nav button{width:20%;font-size:12px;font-weight:650;color:var(--muted);display:grid;justify-items:center;gap:7px}.nav b{font-size:21px;font-weight:500;line-height:1}.nav .selected{color:var(--blue)}.nav .selected b{background:var(--soft);border-radius:12px;min-width:38px;padding:4px}
.horizontal{display:flex;gap:12px;overflow-x:auto;padding-bottom:11px;scroll-snap-type:x proximity;scrollbar-width:none}.card{min-width:185px;max-width:185px;text-align:left;scroll-snap-align:start;background:var(--canvas);border:1px solid var(--line);padding:10px;border-radius:18px}.card .cover{height:106px;background:linear-gradient(120deg,#daeff6,#b7e0e4);border-radius:14px;display:flex;align-items:end;padding:14px;color:#145d79;font-size:24px;font-weight:bold;margin-bottom:11px}.card h3{line-height:1.35;font-size:13px}.card small{font-size:13px}.hero{background:linear-gradient(115deg,#D3EDE0,#F0F9F6);padding:31px 21px;border-radius:0 0 26px 26px;color:#102A43;position:relative;overflow:hidden;min-height:190px}.hero h2{position:relative;z-index:1;font-size:29px;margin:0 0 9px;max-width:52%;line-height:1.09;letter-spacing:-.05em}.hero small{color:#5E6E7E;position:relative;z-index:1;max-width:52%}.hero .meta{display:flex;gap:9px;font-size:13px;font-weight:750;margin:14px 0;flex-wrap:wrap;position:relative;z-index:1}.meta span{background:#ffffffb0;padding:7px 11px;border-radius:9px}.hero-figure{position:absolute;width:230px;height:210px;right:0;bottom:0}.hero-figure .coach-caption,.hero-figure .coach-halo{display:none}.hero-figure .coach-stage{background:transparent;border:0;box-shadow:none;height:210px}
.dock{position:sticky;bottom:78px;padding:14px 0;background:var(--surface);z-index:2}.media{width:100%;height:290px;object-fit:contain;background:var(--canvas);border-radius:20px}.tabs{display:flex;background:var(--canvas);border-radius:14px;margin:17px 0;padding:5px;border:1px solid var(--line)}.tabs button{flex:1;padding:12px 4px;border-radius:10px;font-size:13px;font-weight:750;color:var(--text)}.tabs .selected{background:var(--surface);color:var(--blue);box-shadow:0 3px 9px #0001}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:20px 0}.calendar button{aspect-ratio:1;min-height:44px;border-radius:11px;background:#F0F9F6;border:1px solid #D3EDE0;color:#0B6B42;font-weight:800;font-size:13px}.calendar .selected{background:#0F8A56;color:white}
.calendar .preview-day{border-style:dashed;border-color:#F2C89B;color:#B45309;background:#FFFBEB}
.rest-edit{display:flex;gap:9px;align-items:center;justify-content:center;margin:12px 0;color:#d8ecf7;font-size:13px}
.rest-edit input{width:82px;padding:12px 11px;border-radius:11px;border:1px solid #ffffff55;background:#ffffff22;color:#fff;text-align:center}
.rest-edit button{width:auto;padding:12px 16px;font-size:13px}.field{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:17px 0;font-size:14px;color:var(--text)}.field select,.field input:not([type=checkbox]):not([type=range]){max-width:220px;min-height:44px;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--canvas);color:var(--ink)}.field input[type=checkbox]{accent-color:#0F8A56;width:22px;height:22px}.field input[type=range]{accent-color:#0F8A56;width:160px}.editor-row{padding:14px 0;border-bottom:1px solid var(--line)}.editor-row input{width:84px;padding:12px;border:1px solid var(--line);border-radius:8px}.editor-row .controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.controls button{background:var(--soft);color:var(--blue);border-radius:10px;padding:12px 14px;font-size:13px}.onboard{padding:25px 23px 40px;min-height:100dvh;display:flex;flex-direction:column;background:var(--surface)}.onboard h1{font-size:31px;line-height:1.13;margin:38px 0 24px;letter-spacing:-.055em}.onboard .choices{display:grid;gap:12px}.choice{text-align:left;border:1px solid var(--line);padding:18px;border-radius:15px;font-weight:700;background:var(--canvas)}.choice.selected{background:#0F8A56;color:white;border-color:#0F8A56}.onboard .bottom{margin-top:32px;padding-top:24px}.intro-logo{width:72px;height:72px;border-radius:25px;background:linear-gradient(145deg,#0B6B42,#0F8A56);color:white;font-size:35px;font-weight:900;display:grid;place-items:center;box-shadow:0 16px 28px #0F8A5633}
.coach-stage{height:300px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:23px;background:radial-gradient(circle at 50% 46%,#f9fffe 0,#e7f7f8 48%,#ddf0fb 100%);border:1px solid #dff0f3;isolation:isolate}.coach-stage svg{height:100%;width:100%;max-width:390px;position:relative;z-index:1}.coach-halo{position:absolute;border:1px solid #62c4d133;border-radius:50%;width:240px;height:240px}.halo-b{width:310px;height:310px}.coach-compact{height:260px}.coach-caption{position:absolute;bottom:11px;z-index:2;padding:6px 10px;background:#ffffffb5;border:1px solid #ffffffee;border-radius:8px;color:#5E6E7E;font-size:11px;letter-spacing:.09em;font-weight:800;white-space:normal;text-align:center;max-width:calc(100% - 16px);line-height:1.35}.coach-caption span{opacity:.55}.coach-rest{background:radial-gradient(circle,#e4f4ff,#cfe6fa)}
.player{min-height:100dvh;display:flex;flex-direction:column;background:var(--surface)}.player .player-top{display:flex;justify-content:space-between;align-items:center;padding:10px 18px}.player-top button{border-radius:12px;background:var(--canvas);padding:11px 14px;font-size:13px;font-weight:750;color:var(--ink)}.player-top .exit-btn{width:44px;height:44px;padding:0;min-width:44px;font-size:24px;border:1px solid var(--line)}.player-top small{font-weight:800}.player .demo{padding:12px 20px 0;flex:1;min-height:34vh;display:flex;flex-direction:column;justify-content:center}.player .demo .coach-stage{height:clamp(230px,33vh,335px)}.player .demo .media{height:clamp(230px,33vh,335px)}.player .panel{text-align:center;padding:20px 20px max(30px,env(safe-area-inset-bottom));min-height:36vh;display:flex;flex-direction:column;align-items:center}.player .panel h3{font-size:19px;letter-spacing:-.03em}.player .panel h2{font-size:26px}.player .label{font-size:12px;font-weight:850;margin:10px 0;letter-spacing:.16em;color:var(--teal)}.player .timer{font-size:66px;font-weight:850;margin:16px 0;letter-spacing:-.055em;font-variant-numeric:tabular-nums}.player .timer-ring{width:158px;height:158px;display:grid;place-items:center;margin:10px auto 19px;position:relative}.timer-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.timer-ring circle{fill:none;stroke:var(--soft);stroke-width:7}.timer-ring .timer-arc{stroke:#0F8A56;stroke-width:12;stroke-linecap:round;stroke-dasharray:289;stroke-dashoffset:calc(289 * (1 - var(--ratio,1)));transition:stroke-dashoffset .2s linear}.timer-ring #timer{font-size:38px;font-weight:900;letter-spacing:-.06em;font-variant-numeric:tabular-nums}.player .transport{display:flex;gap:15px;justify-content:center;align-items:center;width:100%;margin:10px 0 0}.transport button{background:var(--canvas);border:1px solid var(--line);border-radius:16px;padding:16px 20px;font-size:19px;color:var(--ink)}.transport .pause{background:#142433;color:white;min-width:116px;border-color:#142433}.progress{height:5px;background:var(--soft);margin:0 20px;border-radius:30px;overflow:hidden}.progress>div{height:100%;background:linear-gradient(90deg,#0B6B42,#0F8A56);transition:width .28s}.preview-tag{font-size:12px;letter-spacing:.07em;font-weight:800;color:#92400E;background:#FEF3C7;padding:9px 12px;text-align:center}.player.rest{background:#fff}.player.rest .panel{background:#142433;color:white;flex:1;border-radius:28px 28px 0 0}.player.rest .panel h3,.player.rest .timer-ring #timer{color:white}.player.rest .panel .label{color:#bcf1ed}.player.rest .timer-ring circle{stroke:#24394D}.player.rest .timer-ring .timer-arc{stroke:#86C99B}.player.rest .secondary{background:#24394D;color:white;border-color:#24394D}.player.rest .primary{background:white;color:#142433;box-shadow:none}.player.rest .player-top{background:#fff}.player.rest .demo .coach-stage{height:clamp(220px,31vh,310px)}.phase-pill{font-size:12px;font-weight:850;letter-spacing:.14em;color:var(--teal);padding:5px 12px;border-radius:99px;background:var(--soft);margin:2px auto 11px}.phase-pill:before{content:'●';font-size:11px;margin-right:7px}.player.rest .phase-pill{background:#ffffff29;color:#fff}.player .reps-count{font-size:48px;font-weight:900;line-height:1.4}.completion-graphic{font-size:64px;margin:28px auto 8px;animation:pop .7s cubic-bezier(.16,1,.3,1)}.completion-panel{justify-content:center;flex:1}.completion-panel .primary{margin-top:26px}.player .paused-label{font-size:13px;color:var(--muted);margin:8px 0 20px}.rest-actions{width:100%;max-width:390px}.rest-actions .actions{margin-top:10px}
.overlay{position:fixed;inset:0;background:#142433b8;display:grid;align-items:center;z-index:20;padding:20px;backdrop-filter:blur(6px)}.dialog{background:var(--surface);width:min(440px,100%);margin:auto;padding:28px;border-radius:23px;box-shadow:var(--shadow)}.dialog h2{font-size:22px;margin:2px 0 14px}.dialog .primary,.dialog .secondary,.dialog .danger{margin-top:12px}.summary{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:23px 0}.stat{padding:21px 7px;text-align:center;border-radius:17px;background:var(--canvas);border:1px solid var(--line)}.stat b{font-size:29px;display:block;margin-bottom:5px;color:var(--blue)}.picker{max-height:60vh;overflow:auto;padding-bottom:76px}.search{padding:14px;border:2px solid var(--teal);background:var(--canvas);color:var(--ink);border-radius:12px;width:100%;margin:12px 0;min-height:48px}.settings-title{display:flex;align-items:center;justify-content:space-between}.settings-title .secondary{width:auto;padding:12px 16px;font-size:13px}.sound-preview-row{margin:11px 0;display:flex;gap:8px;flex-wrap:wrap}.sound-preview-row button{flex:1 1 30%;padding:12px 8px;font-size:13px;text-align:center}.theme-buttons{display:flex;gap:9px}.theme-buttons button{flex:1;padding:14px;border-radius:13px;border:1px solid var(--line);background:var(--canvas);font-weight:800;color:var(--ink);font-size:13px}.theme-buttons button.selected{outline:2px solid var(--teal)}.pulse-dot{display:inline-block;width:8px;height:8px;background:#0F8A56;border-radius:50%;box-shadow:0 0 0 5px #0F8A562a;margin-right:8px}
@keyframes pop{from{transform:scale(.7);opacity:.2}65%{transform:scale(1.15)}to{transform:scale(1);opacity:1}}@keyframes slideUp{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}.onboard{animation:slideUp .28s ease-out}@media(min-width:700px){#app{box-shadow:0 0 80px #183b6422}.player{min-height:100dvh}}@media(max-width:370px){.player .demo{min-height:29vh}.player .demo .coach-stage{height:230px}.banner h2{font-size:23px}.transport button{padding:13px 15px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Source-licensed Lottie demonstration player, isolated from Har Ghar styling. */
@font-face{font-family:'Outfit Licensed';src:url('media/outfit_regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Outfit Licensed';src:url('media/outfit_medium.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'Outfit Licensed';src:url('media/outfit_semibold.ttf') format('truetype');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:'Outfit Licensed';src:url('media/outfit_bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:'Outfit Licensed';src:url('media/outfit_extrabold.ttf') format('truetype');font-style:normal;font-weight:800 900;font-display:swap}
html{font-family:'Outfit Licensed',Inter,system-ui,sans-serif}
.licensed-stage{position:relative;overflow:hidden;width:100%;min-height:260px;height:300px;background:radial-gradient(circle at 49% 48%,#fff 0%,#f0f6ff 76%,#e1f1f9 100%);border:1px solid var(--line);border-radius:21px;display:flex;align-items:center;justify-content:center}
.licensed-stage .lottie-canvas{position:absolute;inset:0;z-index:1;display:grid;place-items:center}
.licensed-stage .lottie-canvas svg{height:100%;width:100%;display:block}
.licensed-stage .lottie-fallback{width:100%;height:100%;position:absolute;inset:0;display:block}
.licensed-stage .lottie-fallback .coach-stage{height:100%}
.licensed-stage.lottie-loaded .lottie-fallback{display:none}
.licensed-stage .coach-caption{display:none}
.licensed-stage .licensed-label{position:absolute;z-index:2;bottom:9px;left:50%;transform:translateX(-50%);white-space:nowrap;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:700;letter-spacing:.09em;color:#466c87;background:#ffffffcf;padding:6px 11px;border:1px solid #ddeaf3;border-radius:99px}
.licensed-stage.lottie-error:after{content:'Source file could not load; illustration shown';position:absolute;left:0;right:0;top:8px;text-align:center;color:#aa651a;font-size:13px;z-index:4}
.hero-figure .licensed-stage{height:180px;min-height:180px;width:100%;border:0;border-radius:0;background:transparent}
.hero-figure .licensed-label{display:none}
.player .demo .licensed-stage{height:clamp(235px,34vh,355px);min-height:235px}.player .demo .coach-stage{height:clamp(235px,34vh,355px)}
.exercise-tips{color:var(--text);font-size:13px;line-height:1.6;padding-left:23px;white-space:pre-line}.exercise-tips li{margin:9px 0}.meal-pill{display:inline-block;background:#0F8A56;color:#fff;font-size:13px;font-weight:800;padding:8px 16px;border-radius:99px;min-height:44px;line-height:28px}.meal-list{color:var(--text);font-size:14px;line-height:1.6;padding-left:23px}.meal-list li{margin:9px 0}
@media(prefers-reduced-motion:reduce){.licensed-stage svg{transition:none}}
/* Recovered Discover artwork. Exact APK image/source identities; app layout remains Har Ghar original. */
.discovery{padding-bottom:0}
.discover-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0 20px;background:var(--canvas);border:1px solid var(--line);padding:21px 21px 18px;border-radius:24px;overflow:hidden}
.discover-intro h2{font-size:23px;line-height:1.15;margin:8px 0 4px}
.discover-intro p{margin:0;max-width:220px;font-size:13px}
.discover-intro .eyebrow{font-size:11px;color:var(--blue);font-weight:850;letter-spacing:.12em}
.discover-arrow{width:61px;flex:0 0 61px;height:76px;overflow:hidden}
.discover-arrow svg{width:100%;height:100%}
.explore-banner{display:block;position:relative;width:100%;overflow:hidden;border-radius:22px;background:#142433;color:white;height:170px;text-align:left;padding:0;box-shadow:0 12px 23px #163a621f}
.explore-banner-image{position:absolute;inset:0}
.explore-banner-image img{width:100%;height:100%;object-fit:cover;object-position:center}
.explore-banner-image:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,37,63,.91),rgba(12,37,63,.52) 56%,rgba(12,37,63,.13))}
.explore-banner-copy{position:absolute;z-index:1;left:23px;top:33px;right:15px;display:flex;flex-direction:column;gap:10px}
.explore-banner-copy b{font-size:21px;letter-spacing:-.04em;max-width:180px;line-height:1.2}
.explore-banner-copy>span{font-size:13px;font-weight:750;background:#ffffff26;border:1px solid #ffffff32;backdrop-filter:blur(3px);border-radius:100px;padding:9px 13px;width:max-content}
.image-fallback{display:grid;place-items:center;align-content:center;gap:6px;width:100%;height:100%;background:linear-gradient(120deg,#D3EDE0,#EAF7EF);font-size:35px;color:#0B6B42}
.browse-search{margin:20px 0 7px;border:2px solid var(--teal);border-radius:15px;padding:9px 13px;display:flex;align-items:center;gap:8px;background:var(--canvas);color:var(--muted);min-height:48px}
.browse-search>span:first-child{font-size:23px;line-height:1;color:var(--blue);font-weight:800}
.browse-search input{width:100%;min-width:10px;outline:0;color:var(--ink);border:0;background:transparent;font-size:16px;padding:12px 0}
.browse-search>span:last-child{white-space:nowrap;font-size:12px;font-weight:650}
.discover-section{margin:24px -21px 0;padding-left:21px}
.discover-empty{text-align:center;padding:24px 12px;font-size:15px;color:var(--muted)}
.discover-section .section-heading{padding-right:21px;display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:13px}
.discover-section .section-heading h2{font-size:18px;margin:0}
.discover-section .section-heading span{white-space:nowrap;color:var(--muted);font-size:13px}
.discover-section .horizontal{padding-right:21px;padding-bottom:16px;gap:12px}
.discovery .card,.catalog-grid .card{padding:0;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 5px 16px #243d560a}
.discovery .card{min-width:188px;max-width:188px}
.discovery .card .cover,.catalog-grid .card .cover{position:relative;height:131px;padding:0;border-radius:0;margin:0;overflow:hidden;background:var(--canvas)}
.discovery .card .cover img,.catalog-grid .card .cover img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.discovery .card .cover-icon,.catalog-grid .card .cover-icon{position:absolute;right:9px;bottom:9px;display:grid;place-items:center;background:#142433;box-shadow:0 1px 6px #0006;color:#fff;border:1px solid #ffffff55;border-radius:100%;font-size:16px;width:27px;height:27px}
.discovery .card .card-copy,.catalog-grid .card .card-copy{padding:13px 13px 15px;text-align:left;overflow:hidden}
.discovery .card h3,.catalog-grid .card h3{overflow-wrap:anywhere}
.discovery .card h3,.catalog-grid .card h3{font-size:15px;font-weight:780;line-height:1.2}
.discovery .card small,.catalog-grid .card small{font-size:13px}
.discovery [hidden],.catalog-grid [hidden],.discover-section[hidden]{display:none!important}
.source-note{font-size:13px;color:var(--muted);padding:10px 14px;border:1px solid var(--line);background:var(--canvas);border-radius:13px}
.collection-hero,.catalog-hero{position:relative;border-radius:20px;overflow:hidden;background:var(--canvas);height:200px;margin-top:10px}
.collection-hero img,.catalog-hero img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}
.collection-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 35%,#142433cc)}
.collection-hero-label{position:absolute;z-index:1;left:17px;right:17px;bottom:17px;display:flex;flex-direction:column;gap:5px;color:white}
.collection-hero-label b{font-size:22px}.collection-hero-label small{color:#e2edf4}
.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.catalog-grid .card{min-width:0;width:100%;max-width:none;display:block}
.catalog-page .catalog-hero{height:210px}
.catalog-intro h2{font-size:23px;line-height:1.2;margin:17px 0 12px}
.catalog-badges{display:flex;flex-wrap:wrap;gap:7px}
.catalog-badges span{font-size:12px;padding:7px 11px;border-radius:100px;background:var(--soft);color:var(--blue);font-weight:700}
.catalog-unavailable{border-radius:18px;border:1px solid var(--line);padding:20px;margin-top:27px;background:var(--canvas)}
.catalog-unavailable strong{font-size:16px}
.catalog-unavailable p{margin:10px 0 19px}
.completion-panel{position:relative;isolation:isolate;overflow:hidden}
.completion-confetti{pointer-events:none;position:absolute;z-index:-1;inset:0;overflow:hidden;opacity:.7}
.completion-confetti svg{height:100%;width:100%;object-fit:contain}
@media(max-width:380px){.discovery .card{min-width:168px;max-width:168px}.discovery .card .cover{height:115px}.discover-intro h2{font-size:20px}.explore-banner{height:150px}}
/* Perfect pass v3: loading screen + missing-exercise fallback note. */
.loading-screen{padding-top:38px}
.loading-screen h2{font-size:22px}
.loading-bar{height:6px;background:#dceef3;border-radius:3px;overflow:hidden;margin:16px 0}
.loading-bar span{display:block;height:100%;width:40%;background:#0F8A56;border-radius:3px;animation:loadslide 1.2s ease-in-out infinite alternate}
@keyframes loadslide{from{margin-left:0}to{margin-left:60%}}
.fallback-stage .fallback-note{font-size:13px;color:#5d7a86;text-align:center;margin:8px 12px 0;line-height:1.45}
.hero-figure .fallback-note{display:none}

/* Perfect pass v3: design alignment (landing v5 / other-screens preview). */
.brand-mark{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center}
.brand-mark svg{width:34px;height:34px;display:block}
.banner-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.banner-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,36,51,.88),rgba(20,36,51,.5) 60%,rgba(20,36,51,.18))}
.week span.planned{background:transparent;color:var(--teal);border-color:transparent}
.ui-motion.lottie-error{display:none}
.discover-arrow:has(>.ui-motion.lottie-error){display:none}
.week-chart{display:flex;align-items:flex-end;gap:8px;height:96px;margin:14px 0 6px}
.week-chart .bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.week-chart .bar i{display:block;width:100%;max-width:26px;background:#0F8A56;border-radius:6px 6px 0 0;min-height:4px}
.week-chart .bar small{font-size:11px;color:var(--muted)}
@media(max-width:380px){.summary{grid-template-columns:repeat(2,1fr)}}
html[data-theme=midnight] .secondary{background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-theme=midnight] .danger{background:#3a1d20;color:#f2b8b5;border-color:#5a2e2e}
html[data-theme=midnight] .calendar button{background:var(--canvas);border-color:var(--line);color:var(--blue)}
html[data-theme=midnight] .calendar .preview-day{background:transparent}

/* UI perfect pass v4 — from qadir's phone video (2026-10-28 23:11 IST). */
.chip{flex:0 0 auto}}
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin:12px 0}
.legend .mapped{color:var(--blue);font-weight:700}
.legend .preview{color:#B45309;font-weight:700}
.muscle-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.muscle-chips span{font-size:13px;font-weight:750;padding:9px 13px;border-radius:99px;background:var(--soft);color:var(--blue)}
.source-line{font-size:12px;color:var(--muted);padding:10px 12px;background:var(--canvas);border:1px solid var(--line);border-radius:12px}
.catalog-routine{margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--canvas)}
.catalog-routine h2{margin:0 0 8px}

/* Full redesign v5 — one design system for every screen.
   Tokens match landing v5: green #0F8A56, navy #142433, mint #F0F9F6,
   heading navy #161F28, body #4A5A68, white cards, 13px minimum text,
   44px touch targets. Light is the default theme; Midnight is a full
   dark theme using the same tokens. */
.eyebrow{font-size:11px;font-weight:850;letter-spacing:.15em;color:var(--blue);text-transform:uppercase}
.header{padding:16px 21px;box-shadow:0 1px 0 var(--line)}
.header h1{font-size:18px}
.page{padding:0 21px 32px}
.page>h2{font-size:19px;margin:28px 0 12px}
.page .eyebrow{display:block;margin:24px 0 4px}
/* Rows are cards now — program rows, step rows, picker rows, history rows
   all share the same white card, border, radius and shadow. */
.row{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px 16px;margin-bottom:12px;box-shadow:0 4px 14px rgba(20,42,68,.05)}
.row .grow h3{font-size:15px}
.row>span:last-child{color:var(--blue);font-size:23px;font-weight:700}
/* Section cards for Meal and Settings groupings. */
.info-card,.settings-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px;margin:16px 0;box-shadow:0 4px 14px rgba(20,42,68,.05)}
.info-card h2,.settings-card h2{margin:0 0 10px;font-size:17px}
.info-card h2:first-child,.settings-card h2:first-child{margin-top:0}
.info-card p:last-child,.settings-card p:last-child{margin-bottom:0}
.settings-card .field:last-of-type{border-bottom:0}
/* Onboarding step dots. */
.ob-dots{display:flex;gap:6px;margin:16px 0 4px}
.ob-dots i{width:22px;height:5px;border-radius:99px;background:var(--line)}
.ob-dots i.on{background:#0F8A56}
/* Stat cards and summary get the same card shadow. */
.stat{box-shadow:0 4px 14px rgba(20,42,68,.05)}
/* Nav: selected tab is a green pill, matching the landing buttons. */
.nav button{min-height:56px}
.nav .selected{color:var(--blue)}
/* Player: keep the navy rest panel, but the demo coach card is never dimmed. */
.player .demo .licensed-stage,.player .demo .coach-stage{opacity:1}
/* Discover section headings match the landing section headings. */
.discover-section .section-heading h2{font-size:18px;letter-spacing:-.02em}
.discover-intro h2{font-size:23px}
/* Desktop: the app column stays centred and calm, cards breathe. */
@media(min-width:700px){
  .page{padding:0 28px 40px}
  .row{padding:16px 18px}
  .info-card,.settings-card{padding:22px}
}

/* ============ Final redesign — advanced landing theme (white/green/navy) ============ */
/* Brand header: green house logo + two-line wordmark, as on the landing page. */
.brand-title{display:flex;flex-direction:column;line-height:1.05;font-size:19px;letter-spacing:.2px}
.brand-title .brand-green{color:#0F8A56}
/* Training hero: full-bleed photo banner with handwritten script. */
.training-page .banner{margin:0 -21px 0;border-radius:0;min-height:280px;padding:25px 21px}
.training-page .banner h2{max-width:92%}
.training-page .banner p{max-width:92%}
.banner-script{position:relative;z-index:1;font-family:'Comic Sans MS','Segoe Script',cursive;font-size:23px;line-height:1.05;color:#B7E4C7;transform:rotate(-3deg);margin-bottom:14px}
/* Weekly rhythm + focus, one clean white card under the hero. */
.rhythm-card{background:var(--surface);border-radius:18px;padding:18px 16px;box-shadow:0 8px 22px rgba(20,36,51,.08);margin:18px 0 24px}
.rhythm-card .goal{background:transparent;border:0;box-shadow:none;padding:0;margin:0}
.rhythm-card h2{margin:18px 0 10px}
.week span{width:40px;height:40px;background:#0F8A56;color:#fff;border-radius:50%;border:2px solid #0F8A56;line-height:36px;font-size:13px}
.week span.planned{box-shadow:none}
/* Focus chips: one row, never clipped, never wrapped (overrides the wrap rule). */
.chips{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.chips.chip-wrap{flex-wrap:wrap;overflow-x:visible;padding-bottom:11px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;min-width:0;padding:12px 8px;border:2px solid #142433;background:#fff;color:#142433;font-weight:800}
.chip.selected{background:#0F8A56;color:#fff;border-color:#0F8A56}
/* Program rows: photo thumb left, title + steps + solid level badge. */
.row .grow{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.level-badge{display:inline-block;font-size:12px;font-weight:800;color:#fff;padding:5px 11px;border-radius:99px}
.lvl-beginner{background:#0F8A56}.lvl-intermediate{background:#2F7DE1}.lvl-advanced{background:#F5870B}.lvl-custom{background:#5A6B76}
.tile.program-tile{width:56px;height:56px;border-radius:14px}
.tile.program-tile.lvl-beginner{background:#0F8A56}.tile.program-tile.lvl-intermediate{background:#2F7DE1}.tile.program-tile.lvl-advanced{background:#F5870B}.tile.program-tile.lvl-custom{background:#5A6B76}
/* Step thumbnails: real paused Lottie frames (static, never animated in lists). */
.thumb-stage{position:relative;overflow:hidden;border-radius:14px;background:#EAF3F8;flex:0 0 128px;width:128px;height:112px}
.step-grid .thumb-stage{flex:0 0 64px;width:64px;height:64px;border-radius:12px}
.thumb-stage .lottie-canvas{position:absolute;inset:0}.thumb-stage .thumb-loading{position:absolute;inset:0;display:grid;place-items:center;font-size:30px;color:#7FA3B5}.thumb-stage.lottie-loaded .thumb-loading{display:none}
.thumb-stage .lottie-canvas svg{width:100%;height:100%;display:block}
.step-grid{display:grid;gap:12px}
.step-grid .row{margin-bottom:0}
@media(min-width:700px){.step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Detail page: centred title + subtitle header, full-width hero, overlapping Start pill. */
.detail-header{justify-content:space-between}
.detail-title{flex:1;text-align:center;min-width:0;padding:0 6px}
.detail-title h1{font-size:19px;line-height:1.2}
.detail-title small{display:block;font-size:13px;color:var(--muted);margin-top:2px}
.detail-hero{position:relative}
.detail-hero .licensed-stage{height:230px;min-height:230px;border-radius:0;border-left:0;border-right:0}
.detail-hero .fallback-stage .coach-stage{height:230px}
.detail-hero .licensed-label{display:none}
.detail-hero-cta{position:absolute;left:0;right:0;bottom:-22px;display:flex;justify-content:center;z-index:2}
.detail-hero-cta .primary{box-shadow:0 8px 20px rgba(20,36,51,.28)}
.detail-page{padding-top:36px}
.dock-spacer{height:120px}
/* Discover: grids, row cards, mint banner cards, focus tiles, moon row. */
.discover-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.discover-intro h2{font-size:26px;margin:6px 0 4px}
.discover-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.discover-rows{display:grid;gap:12px}
.discover-banners{display:grid;gap:12px}
.discover-grid .card,.discover-rows .card,.discover-banners .card{min-width:0;max-width:none}
.card-open{display:block;width:100%;text-align:left;background:none;border:0;padding:0;color:inherit;cursor:pointer;min-height:44px}
.card-start.secondary{background:#0F8A56;color:#fff;border-color:#0F8A56;margin:0 12px 12px;width:calc(100% - 24px);min-height:44px}
.card.row-card .card-open{display:flex;gap:12px;align-items:center}
.card.row-card .cover{width:120px;height:96px;flex:0 0 120px;margin:12px 0 12px 12px;border-radius:14px}
.card.row-card .card-copy{padding:12px 12px 12px 0}
.card.row-card .card-start{margin:0 12px 12px auto;width:auto}
.card.banner-card{background:#D9F2E3;border:2px solid #0F8A56}
.level-pill{display:inline-block;font-size:12px;font-weight:800;padding:5px 11px;border-radius:99px;margin-top:8px}
.level-pill.beginner{background:#E7F6EC;color:#0B6B42}
.level-pill.intermediate{background:#E3F0FD;color:#2478B5}
.level-pill.advanced{background:#FDEBD7;color:#9A5B00}
.focus-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.focus-tile{display:flex;flex-direction:column;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px 8px;min-height:44px}
.focus-icon{width:64px;height:64px;border-radius:50%;background:#E7F6EC;color:#0F8A56;display:flex;align-items:center;justify-content:center}
.focus-icon svg{width:36px;height:36px}
.module-row-head{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px 16px;margin-bottom:12px}
.module-icon{width:48px;height:48px;border-radius:50%;background:#0F8A56;color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 48px}
.module-icon svg{width:26px;height:26px}
.module-row-head .grow{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.module-row-head b{font-size:16px}
/* Cover skeleton: a soft shimmer while the photo loads, never a blank box. */
.cover{position:relative;overflow:hidden}
.cover::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,#E7F6EC 30%,#F4FBF6 50%,#E7F6EC 70%);background-size:200% 100%;animation:cover-shimmer 1.4s ease-in-out infinite}
.cover.has-photo::before{animation:none;background:transparent}
.cover img{position:relative;z-index:1}
@keyframes cover-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
/* Animation loading state: neutral text while the real Lottie loads, no placeholder coach. */
.lottie-fallback{display:none}
.licensed-stage.lottie-error .lottie-fallback{display:block}
.licensed-stage:not(.lottie-loaded):not(.lottie-error)::after{content:"Loading animation…";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;background:#EAF3F8}
/* Unmissable label on the original motion preview (audit #17). */
.fallback-stage .coach-caption{background:#142433;color:#fff;font-size:13px;font-weight:800;padding:10px 14px;border-radius:99px;border:2px solid #fff;box-shadow:0 4px 14px rgba(0,0,0,.35)}
/* Player: top bar with progress centre, toggles, X; labelled transport cards. */
.player .player-top{display:flex;align-items:center;gap:10px;padding:14px 16px}
.player-top small{font-size:20px}
.player-top .player-progress{flex:1;margin:0}
.player-toggles{display:flex;gap:6px}
.player-toggles button{width:44px;height:44px;padding:0;min-width:44px;font-size:20px;border:1px solid var(--line)}
.reps-label{color:#0F8A56;font-size:20px;font-weight:900;letter-spacing:.08em;margin:4px 0 0}
.player.panel h3{text-align:center}
.transport .tbtn{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;color:#102A43;border:1px solid var(--line);border-radius:14px;padding:12px 4px;font-size:13px;font-weight:800;min-height:64px;flex:1 1 0;min-width:0}
.transport .tbtn .t-ic{font-size:20px;color:#0F8A56}
.transport .tbtn:disabled{opacity:.45;background:var(--canvas);border:1px dashed var(--muted);color:var(--muted)}
.transport.pause .tbtn{flex:1}
/* Bottom nav: proper SVG icons above labels. */
.nav b svg{width:24px;height:24px;display:block}
.nav b{font-size:13px}

/* ============ Settings + Discover + Training advanced redesign ============ */
/* Settings: profile card. */
.profile-card{display:flex;align-items:center;gap:14px}
.profile-avatar{width:56px;height:56px;flex:0 0 56px;border-radius:50%;background:#0F8A56;color:#fff;display:grid;place-items:center}
.profile-avatar svg{width:30px;height:30px}
.profile-card h2{margin:0}
.profile-card p{margin:2px 0 0}
.profile-card .grow{flex:1;min-width:0}
/* Settings: section headings with a proper icon. */
.section-head{display:flex;align-items:center;gap:10px}
.section-icon{width:28px;height:28px;flex:0 0 28px;color:#0F8A56;display:inline-flex}
.section-icon svg{width:28px;height:28px}
/* Settings: appearance tiles with sun/moon icons and a green checkmark. */
.theme-tiles{display:flex;gap:12px}
.theme-tile{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 8px;border-radius:16px;border:2px solid var(--line);background:var(--canvas);font-weight:800;position:relative;min-height:96px}
.theme-tile.selected{border-color:#0F8A56;background:#E7F6EC}
html[data-theme=midnight] .theme-tile.selected{background:#1B3448}
.theme-tile-icon{width:32px;height:32px;color:#0F8A56;display:block}
.theme-tile-icon svg{width:32px;height:32px}
.theme-check{position:absolute;top:8px;right:8px;width:26px;height:26px;border-radius:50%;background:#0F8A56;color:#fff;display:grid;place-items:center;font-size:15px}
/* Settings: green toggle switches, 44px+ rows. */
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;font-weight:650;color:var(--text)}
.switch{position:relative;width:52px;height:32px;flex:0 0 52px}
.switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;z-index:1}
.switch i{position:absolute;inset:0;background:#D5DDD8;border-radius:99px;transition:background .2s}
.switch i::after{content:'';position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:transform .2s}
.switch input:checked + i{background:#0F8A56}
.switch input:checked + i::after{transform:translateX(20px)}
.switch input:focus-visible + i{outline:3px solid #F5870B;outline-offset:3px}
/* Settings: volume row with live percent, wide audio dropdown (never truncated). */
.volume-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.volume-row input[type=range]{flex:1;min-width:0;accent-color:#0F8A56}
#volumePct{font-weight:800;color:#0F8A56;min-width:48px;text-align:right}
.field.wide{flex-direction:column;align-items:stretch}
.field.wide select{max-width:none;width:100%}
/* Settings: steppers for rest time and sessions per week. */
.stepper-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;font-weight:650;color:var(--text)}
.stepper{display:flex;align-items:center;gap:10px}
.stepper b{min-width:104px;text-align:center;font-size:14px}
.step-btn{width:44px;height:44px;min-width:44px;border-radius:50%;background:var(--soft);color:var(--blue);font-size:22px;font-weight:800;padding:0;display:grid;place-items:center}
.full{width:100%}
/* Settings: build details footer. */
.build-details{margin:24px 0 8px;text-align:center}
.build-details p{font-size:13px}
/* Discover: filter chips row. */
.discover-chips{margin:6px 0 4px}
/* Discover: Sleep & Stretch rows — moon icon, title, minutes, Ref, Start. */
.sleep-rows{display:grid;gap:12px}
.sleep-row{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px 16px;box-shadow:0 4px 14px rgba(20,42,68,.05)}
.sleep-row .grow{flex:1;min-width:0}
.sleep-row h3{font-size:15px;margin:0 0 2px}
.sleep-moon{width:48px;height:48px;flex:0 0 48px;border-radius:50%;background:#E7F6EC;color:#0F8A56;display:grid;place-items:center;font-size:24px}
.sleep-start{background:#0F8A56;color:#fff;border-radius:99px;padding:12px 22px;font-weight:800;min-height:44px}
.focus-tile small{font-size:13px;color:var(--muted);font-weight:650}
/* Player: session name header (Discover entry, or program title). */
.player-session-name{text-align:center;font-size:13px;font-weight:800;color:var(--muted);padding:6px 16px 0}
/* Training: weekly progress bar under the rhythm circles. */
.rhythm-progress{height:6px;background:var(--soft);border-radius:99px;overflow:hidden;margin-top:14px}
.rhythm-progress>div{height:100%;background:#0F8A56;border-radius:99px}
/* Training: focus heading with a small pill on the right. */
.focus-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 4px}
.focus-head h2{margin:0}

/* ============ Video-functionality rebuild: Training / Discover / Settings ============ */
/* Training header: brand row + a real search field that searches programs + exercises. */
.training-header{flex-direction:column;align-items:stretch;gap:12px}
.brand-row{display:flex;align-items:center;gap:13px}
.training-search{display:flex;align-items:center;gap:8px;background:var(--canvas);border:2px solid var(--teal);border-radius:15px;padding:9px 13px;color:var(--muted);min-height:48px}
.training-search>span{font-size:23px;line-height:1;color:var(--blue);font-weight:800}
.training-search input{flex:1;min-width:10px;border:0;outline:0;background:transparent;color:var(--ink);font-size:16px;padding:12px 0}
.training-search:focus-within,.browse-search:focus-within{border-color:var(--teal);outline:3px solid #0F8A56;outline-offset:2px}
.training-search input::placeholder,.browse-search input::placeholder,.search::placeholder{color:var(--text);opacity:1}
.header button.header-search{background:#0F8A56;color:#fff;border:2px solid #0F8A56;font-weight:900}
.search-results h3{font-size:15px;margin:18px 0 8px}
.banner-motto{color:#B7E4C7;font-size:13px;font-weight:700;margin:0 0 8px}
/* Weekly Goal strip: date strip with completed ticks, outlined next day, plain rest. */
.goal-edit-wrap{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--blue);font-size:14px}
.goal-edit{width:44px;height:44px;min-width:44px;border-radius:12px;background:var(--soft);font-size:20px;padding:0;display:grid;place-items:center}
.week-strip{flex-basis:100%;display:flex;justify-content:space-between;gap:6px;margin-top:14px}
.week-strip span{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 2px;border-radius:12px;background:var(--canvas);border:1px solid var(--line);color:var(--muted)}
.week-strip span b{font-size:13px}
.week-strip span small{font-size:11px;color:var(--muted)}
.week-strip span.done{background:#0F8A56;color:#fff;border-color:#0F8A56}
.week-strip span.done small{color:#fff}
.week-strip span.next{border:2px solid #0F8A56;color:#0F8A56;background:var(--surface)}
/* Settings week circles: plain vs planned must be distinguishable (was: all green). */
.week span{background:var(--canvas);color:var(--muted);border:1px solid var(--line)}
.week span.planned{background:transparent;color:var(--teal);border-color:transparent}
/* Section headings with a More link. */
.section-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 12px}
.section-head-row h2{margin:0}
.more-link{width:auto;padding:12px 16px;font-size:13px;white-space:nowrap}
/* Challenge cards: large, horizontal carousel on Training, list on the list screen. */
.challenge-card{min-width:260px;max-width:260px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 4px 14px rgba(20,42,68,.05);display:flex;flex-direction:column;gap:10px}
.challenge-card h3{font-size:16px}
.challenge-card p{font-size:13px;margin:0}
.challenge-card small{color:var(--muted)}
.challenge-card .primary{margin-top:auto}
.challenge-list{display:grid;gap:12px}
.challenge-list .challenge-card{min-width:0;max-width:none}
/* Mini cards for Just For You / Stretch / Popular Goals carousels. */
.mini-card{min-width:220px;max-width:220px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 4px 14px rgba(20,42,68,.05)}
.mini-card button{width:100%;text-align:left;display:flex;flex-direction:column;gap:4px;background:none;border:0;padding:0;color:inherit}
.mini-card b{font-size:15px}
.mini-card small{color:var(--muted);font-size:13px}
.mini-card span{color:var(--blue);font-weight:800;font-size:13px}
/* Custom workout card: CREATE YOUR OWN. */
.create-card{background:var(--surface);border:2px dashed #0F8A56;border-radius:18px;padding:18px;margin:24px 0;text-align:center}
.create-card h2{margin:0 0 6px}
.create-card p{margin:0 0 14px}
/* Settings menu list: coloured icons + chevrons opening real sub-screens. */
.menu-row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:14px 0;border-bottom:1px solid var(--line);background:none;color:inherit;text-decoration:none}
.menu-list .menu-row:last-child{border-bottom:0}
.menu-icon{width:44px;height:44px;flex:0 0 44px;border-radius:14px;display:grid;place-items:center;color:#fff}
.menu-icon svg{width:24px;height:24px}
.menu-icon.dumbbell,.menu-icon.share{background:#0F8A56}
.menu-icon.gear{background:#142433}
.menu-icon.speaker{background:#2F7DE1}
.menu-icon.shield{background:#F5870B}
.menu-icon.chat{background:#25D366}
.menu-row .grow{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.menu-row .grow b{font-size:15px}
.menu-row .grow small{font-size:13px}
.menu-chev{font-size:23px;color:var(--muted)}
/* Stay active wide card (real collection 525, 5 entries). */
.stay-active-card{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;background:linear-gradient(120deg,#0F8A56,#0B6B42);color:#fff;border-radius:18px;padding:18px;margin:16px 0;text-align:left}
.stay-active-card b{font-size:17px;display:block}
.stay-active-card small{font-size:13px;opacity:1;color:#fff;font-weight:600;display:block;margin-top:2px}
/* Cover fallback: a proper tile with glyph + label, never a blank pale box.
   (The shimmer ::before is positioned, so the fallback needs position + z-index
   or it paints underneath it — the v5.1 blank-card bug.) */
.cover .image-fallback{position:relative;z-index:1;flex-direction:column;gap:6px}
.fallback-label{font-size:13px;font-weight:800}.fallback-glyph{font-size:36px;line-height:1}.image-fallback{text-align:center}
/* Player session name: bold and unmissable, not small muted text. */
.player-session-name{font-size:15px;font-weight:850;color:var(--ink)}
/* Bottom nav is 4 tabs now (Meal removed from the nav): each tab gets a quarter. */
.nav button{width:25%}

/* ============ Local-only accounts + new onboarding ============ */
.auth-page{max-width:480px;margin:16px auto;width:calc(100% - 24px);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);min-height:calc(100dvh - 32px)}
.auth-page .auth-logo{display:flex;align-items:center;gap:12px;margin:8px 0 2px}
.auth-logo-mark{flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center}
.auth-logo-mark svg{width:48px;height:48px}
.auth-script{font-family:'Comic Sans MS','Segoe Script',cursive;font-size:20px;color:#0F8A56;transform:rotate(-3deg);margin:2px 0 8px}
.auth-page h1{margin-top:20px}
.auth-field{display:flex;flex-direction:column;gap:8px;margin:14px 0;font-size:14px;font-weight:650;color:var(--text)}
.auth-field input{width:100%;min-height:44px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:var(--field);color:var(--ink);font-size:16px}
.auth-field input:disabled{opacity:.55}
.auth-input-wrap{position:relative;display:block}
.auth-input-wrap input{padding-right:72px}
.auth-input-wrap.has-icon input{padding-left:56px}
.auth-icon-chip{position:absolute;left:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;background:#0F8A56;display:grid;place-items:center;pointer-events:none}
.auth-icon-chip svg{width:20px;height:20px}
.switch-row{display:flex;align-items:center;gap:12px;min-height:44px;font-size:14px;font-weight:650;color:var(--text)}
.auth-terms{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;margin:14px 0}
.auth-terms .auth-check{margin:0}
.legal-links{display:flex;align-items:center;gap:2px}
.legal-links .auth-link{min-height:44px;padding:10px 6px}
.pw-meter{display:flex;align-items:center;gap:6px;margin-top:2px}
.pw-seg{flex:1;height:6px;border-radius:99px;background:var(--line)}
.pw-meter.weak .pw-seg.on{background:#E67E22}
.pw-meter.fair .pw-seg.on{background:#2F7DE1}
.pw-meter.strong .pw-seg.on{background:#0F8A56}
.pw-label{font-size:13px;font-weight:800;min-width:104px;text-align:right;color:var(--muted)}
.pw-meter.weak .pw-label{color:#C0392B}
.pw-meter.strong .pw-label{color:#0F8A56}
.legal-doc h1{font-size:27px}
.legal-section{margin:22px 0}
.legal-section h2{font-size:17px;margin:0 0 8px}
.legal-section p{margin:0}
.profile-pill{display:inline-block;margin-top:8px;background:var(--soft);color:var(--blue);font-size:13px;font-weight:800;padding:6px 12px;border-radius:99px}
.menu-row.danger-row b{color:#C0392B}
html[data-theme=midnight] .menu-row.danger-row b{color:#F87171}
.goal-ring-card{display:flex;align-items:center;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:18px;margin:23px 0;box-shadow:0 4px 15px #00000003}
.goal-ring-card h2{margin:0 0 6px}
.goal-ring-card p{margin:0}
.goal-ring{width:88px;height:88px;flex:0 0 88px;border-radius:50%;background:conic-gradient(#0F8A56 var(--pct,0%),var(--soft) 0);display:grid;place-items:center}
.goal-ring span{width:64px;height:64px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-size:15px;font-weight:800;color:var(--ink)}
.auth-input-wrap .auth-show{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:auto;min-height:36px;padding:8px 12px;font-size:13px;font-weight:800;color:var(--blue)}
.auth-error{color:#C0392B;font-size:13px;font-weight:700;line-height:1.5}
html[data-theme=midnight] .auth-error{color:#f2b8b5}
html[data-theme=midnight] .auth-script{color:#86C99B}
.auth-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0;font-size:14px;color:var(--text)}
.auth-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;color:var(--text)}
.auth-check input{width:22px;height:22px;accent-color:#0F8A56;flex:0 0 22px}
.auth-link{width:auto;min-height:44px;padding:10px 4px;font-size:14px;font-weight:800;color:var(--blue);white-space:nowrap}
.auth-switch{text-align:center;font-size:14px;color:var(--text);margin:14px 0 0}
.auth-switch .auth-link{padding:10px 2px}
.auth-page .bottom{margin-top:28px}
.auth-page .stepper-row{flex-wrap:wrap}
/* Small screens: headings scale down, nothing is clipped or truncated. */
@media(max-width:380px){
  .auth-page h1{font-size:27px}
  .auth-page .auth-logo-mark{flex-basis:40px;width:40px;height:40px}
  .auth-page .auth-logo-mark svg{width:40px;height:40px}
  .nb-plan-card h2{font-size:20px}
  .nb-figure svg{width:84px;height:126px}
}
/* New onboarding: progress bar, figures, chips, plan card. */
.nb-progress{height:6px;background:var(--soft);border-radius:99px;overflow:hidden;margin:14px 0 6px}
.nb-progress>div{height:100%;background:#0F8A56;border-radius:99px}
.nb-figures{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.nb-figure{display:flex;flex-direction:column;align-items:center;gap:8px;background:var(--canvas);border:2px solid var(--line);border-radius:18px;padding:18px 8px 12px;font-weight:800;color:var(--ink)}
.nb-figure.selected{border-color:#0F8A56;background:#E7F6EC;color:#0F8A56}
html[data-theme=midnight] .nb-figure.selected{background:#1B3448;color:#86C99B}
.nb-figure svg{width:96px;height:144px}
.nb-focus-wrap{display:flex;gap:12px;align-items:flex-start;margin:18px 0}
.nb-focus-chips{display:flex;flex-direction:column;gap:10px;flex:1}
.nb-body{width:110px;height:165px;flex:0 0 110px}
.nb-choice{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;border:1px solid var(--line);padding:18px;border-radius:15px;font-weight:700;background:var(--canvas);color:var(--ink);width:100%}
.nb-choice small{font-size:13px;font-weight:600;color:var(--muted)}
.nb-choice.selected{background:#0F8A56;color:#fff;border-color:#0F8A56}
.nb-choice.selected small{color:#fff}
.nb-chips{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.nb-chip{padding:12px 18px;background:var(--canvas);border:2px solid var(--line);border-radius:99px;font-size:13px;font-weight:800;color:var(--ink)}
.nb-chip.selected{background:#0F8A56;color:#fff;border-color:#0F8A56}
.nb-generating{display:grid;gap:10px;margin:22px 0}
.nb-generating p{background:var(--canvas);border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:0;font-size:14px}
.nb-plan-card{background:linear-gradient(120deg,#0F8A56,#0B6B42);color:#fff;border-radius:20px;padding:22px;margin:20px 0;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.nb-plan-copy{flex:1;min-width:180px}
.nb-plan-figure{width:84px;height:118px;flex:0 0 84px}
.nb-plan-card small{color:#B7E4C7;font-weight:800;letter-spacing:.12em}
.nb-plan-card h2{color:#fff;margin:8px 0}
.nb-plan-card p{color:#eafaf0;margin:6px 0}
.nb-plan-card .nb-note{font-size:13px;color:#fff;background:#ffffff22;border-radius:12px;padding:10px 12px}

/* ============ BOLD same-to-same pass v15 — match the generated design images ============
   Image DNA (measured from the 8 reference images): vivid saturated green blob
   top-left + peach blob bottom-right on a pale base; pure-white cards with LARGE
   radius (28-36px) and STRONG visible shadows; extra-bold dark-navy headings
   (screen titles ~40px+, section titles ~26px); tall saturated emerald gradient
   pills with bold white text + drop shadow; big solid-green circular icon chips;
   selected chips solid green, unselected light grey. The previous pass was too
   pale/subtle — this block deliberately turns every one of those dials up.
   Midnight keeps the same boldness with dark-theme equivalents (never grey wash).
   Appended last so these rules win at equal specificity. */
:root{--shadow:0 24px 60px rgba(16,50,40,.22)}
:root[data-theme=midnight]{--shadow:0 24px 60px rgba(0,0,0,.55)}
body{background:radial-gradient(560px 380px at -5% -5%,rgba(16,185,129,.55),rgba(16,185,129,0) 70%),radial-gradient(520px 380px at 105% 105%,rgba(249,140,60,.50),rgba(249,140,60,0) 70%),#F4F7F5}
html[data-theme=midnight] body{background:radial-gradient(560px 380px at -5% -5%,rgba(16,185,129,.30),rgba(16,185,129,0) 70%),radial-gradient(520px 380px at 105% 105%,rgba(249,140,60,.22),rgba(249,140,60,0) 70%),#0b1421}
#app{background:radial-gradient(560px 340px at -5% -5%,rgba(16,185,129,.28),rgba(16,185,129,0) 70%),radial-gradient(520px 340px at 105% 105%,rgba(249,140,60,.22),rgba(249,140,60,0) 70%),#F4F7F5;padding-bottom:140px}
html[data-theme=midnight] #app{background:radial-gradient(560px 340px at -5% -5%,rgba(16,185,129,.20),rgba(16,185,129,0) 70%),radial-gradient(520px 340px at 105% 105%,rgba(249,140,60,.16),rgba(249,140,60,0) 70%),#0b1421}
p{font-size:15px}
h2{font-size:26px;font-weight:900;color:var(--ink)}
.page>h2{font-size:26px;font-weight:900}
.header h1{font-size:19px;font-weight:900}
.discover-section .section-heading h2{font-size:24px;font-weight:900}
.discover-intro h2{font-size:28px;font-weight:900}
.discover-intro{border-radius:28px;box-shadow:0 14px 30px rgba(20,42,68,.14)}
.settings-card h2,.info-card h2{font-size:22px;font-weight:900}
.info-card,.settings-card{border-radius:24px;padding:20px;box-shadow:0 12px 28px rgba(20,42,68,.12)}
.legal-doc h1{font-size:34px;font-weight:900}
.primary{padding:18px;font-size:17px;font-weight:900;box-shadow:0 12px 26px rgba(15,138,86,.38)}
.secondary{padding:17px;font-size:16px;font-weight:800;border-width:2px}
html[data-theme=midnight] .primary{background:linear-gradient(135deg,#25C87E,#0B6B42)}
/* Auth cards: big radius, deep shadow, big logo lockup, huge headings. */
.auth-page{border-radius:32px;box-shadow:0 24px 60px rgba(16,50,40,.22)}
.auth-page .auth-logo-mark{flex-basis:84px;width:84px;height:84px}
.auth-page .auth-logo-mark svg{width:84px;height:84px}
.auth-page .brand-title{font-size:30px;font-weight:900}
.auth-script{font-size:24px}
.onboard h1{font-size:40px;font-weight:900;letter-spacing:-.04em}
.auth-field input{min-height:56px;border-radius:20px;padding:15px 16px;font-size:16px}
.auth-input-wrap.has-icon input{padding-left:68px}
.auth-icon-chip{width:48px;height:48px}
.auth-icon-chip svg{width:24px;height:24px}
.auth-switch{font-size:15px}
.auth-switch .auth-link{font-size:15px}
.pw-meter .pw-seg{height:8px}
/* LOGIN ONLY (orange-logo image standard): white bordered fields with green
   outline icons, square Remember-me checkbox, flat solid-green rounded-rect
   Log In button, OR divider, OUTLINED Continue as Guest button. No Google row. */
.login-wrap input{background:#fff;border:2px solid #BFE3CF;border-radius:20px;min-height:56px;padding-left:60px;font-size:16px}
html[data-theme=midnight] .login-wrap input{background:#16293A;border-color:#2A4A5E;color:var(--ink)}
.login-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);display:grid;place-items:center;pointer-events:none}
.login-icon svg{width:28px;height:28px}
.login-solid{background:#0F8A56;border-radius:16px;padding:18px;font-size:18px;font-weight:900;box-shadow:0 12px 24px rgba(15,138,86,.35)}
html[data-theme=midnight] .login-solid{background:#14A866}
.or-divider{display:flex;align-items:center;gap:14px;margin:20px 0;color:var(--muted);font-weight:800;font-size:14px}
.or-divider::before,.or-divider::after{content:'';flex:1;height:1px;background:var(--line)}
.guest-outline{border:2px solid #0F8A56;color:#0F8A56;background:#fff;border-radius:16px;padding:17px;font-size:17px;font-weight:900}
html[data-theme=midnight] .guest-outline{background:transparent;border-color:#86C99B;color:#86C99B}
/* Onboarding: tall cards, thick selected border, big plan card. */
.nb-figure{border-radius:28px;padding:22px 10px 16px}
.nb-figure.selected{border-width:4px;box-shadow:0 12px 26px rgba(15,138,86,.22)}
.nb-choice{border-radius:20px;padding:20px}
.nb-chip{padding:14px 20px;font-size:14px}
.ob-dots i{width:26px;height:6px}
.nb-plan-card{border-radius:28px;padding:26px;box-shadow:0 16px 34px rgba(15,138,86,.28)}
.nb-plan-card h2{font-size:24px}
/* Tabs: strong cards, grey unselected chips, solid-green selected chips. */
.row{border-radius:22px;padding:16px 18px;box-shadow:0 12px 28px rgba(20,42,68,.12)}
.row .grow h3{font-size:17px;font-weight:800}
.tile.program-tile{width:60px;height:60px}
.chip{background:#EFF2F0;border:2px solid transparent;color:#142433;padding:13px 18px;font-size:14px;font-weight:800}
html[data-theme=midnight] .chip{background:#1B3448;color:#cfe0ec}
.chip.selected{background:#0F8A56;color:#fff;border-color:#0F8A56;box-shadow:0 8px 18px rgba(15,138,86,.35)}
.challenge-card{border-radius:22px;box-shadow:0 12px 28px rgba(20,42,68,.12)}
.challenge-card h3{font-size:18px}
.mini-card{border-radius:22px;box-shadow:0 12px 28px rgba(20,42,68,.12)}
.discovery .card,.catalog-grid .card{border-radius:22px;box-shadow:0 12px 28px rgba(20,42,68,.12)}
.explore-banner{border-radius:28px;box-shadow:0 14px 30px rgba(20,42,68,.16)}
.explore-banner-copy b{font-size:28px}
.focus-tile{border-radius:22px;box-shadow:0 12px 28px rgba(20,42,68,.12)}
.sleep-row{border-radius:22px;box-shadow:0 12px 28px rgba(20,42,68,.12)}
.catalog-routine{border-radius:22px;box-shadow:0 12px 28px rgba(20,42,68,.12)}
.create-card{border-radius:22px;box-shadow:0 12px 28px rgba(20,42,68,.12)}
.tabs{border-radius:18px}
.tabs .selected{box-shadow:0 6px 16px rgba(20,42,68,.14)}
/* Training hero: green-gradient treatment over the real photo, white bold heading. */
.banner{background:linear-gradient(120deg,#0B6B42,#0F8A56)}
.banner-shade{background:linear-gradient(100deg,rgba(6,90,55,.92),rgba(15,138,86,.55) 55%,rgba(15,138,86,.15))}
.banner h2{font-size:32px;font-weight:900;color:#fff}
.banner .primary{font-size:15px;padding:16px 22px}
.hero h2{font-size:32px;font-weight:900}
/* Weekly Goal card: big bold title, mint pencil circle, thick progress bar. */
.rhythm-card{border-radius:24px;box-shadow:0 14px 30px rgba(20,42,68,.14)}
.rhythm-card .goal b{font-size:24px;font-weight:900}
.goal-edit-wrap{font-size:15px}
.rhythm-card .goal-edit{border-radius:50%;background:#E7F6EC}
html[data-theme=midnight] .rhythm-card .goal-edit{background:#1B3448}
.week-strip span{padding:12px 2px}
.week-strip span b{font-size:15px}
.week span{width:44px;height:44px}
.rhythm-progress{height:10px}
/* Report: navy numbers, gradient chart bars, strong goal ring card. */
.stat{border-radius:22px;box-shadow:0 12px 28px rgba(20,42,68,.12)}
.stat b{font-size:36px;color:var(--ink)}
.week-chart .bar i{background:linear-gradient(180deg,#34D399,#0F8A56);border-radius:8px 8px 0 0}
.goal-ring-card{border-radius:24px;box-shadow:0 12px 28px rgba(20,42,68,.12)}
.goal-ring{width:96px;height:96px;flex-basis:96px}
.goal-ring span{width:70px;height:70px;font-size:16px}
/* Settings: big circular avatar, solid Account pill, big circular menu icons. */
.profile-avatar{width:72px;height:72px;flex-basis:72px}
.profile-avatar svg{width:38px;height:38px}
.profile-card h2{font-size:22px}
.profile-pill{background:#0F8A56;color:#fff;padding:8px 14px}
.menu-icon{width:56px;height:56px;flex-basis:56px;border-radius:50%}
.menu-icon svg{width:28px;height:28px}
.menu-row .grow b{font-size:17px}
/* Bottom nav: floating rounded bar, active tab on a light tile. */
.nav{left:50%;width:calc(100% - 24px);max-width:540px;bottom:12px;border-radius:24px;border:1px solid var(--line);box-shadow:0 -8px 30px rgba(24,47,72,.18);padding:12px 7px max(12px,env(safe-area-inset-bottom))}
.nav .selected b{background:#E7F6EC;border-radius:14px;min-width:44px;padding:6px}
html[data-theme=midnight] .nav .selected b{background:#1B3448}
/* Small screens: headings scale down but stay bold; nothing clipped. */
@media(max-width:380px){
  .onboard h1{font-size:34px}
  .auth-page .auth-logo-mark{flex-basis:64px;width:64px;height:64px}
  .auth-page .auth-logo-mark svg{width:64px;height:64px}
  .auth-page .brand-title{font-size:26px}
  h2{font-size:24px}
  .page>h2{font-size:24px}
  .banner h2{font-size:28px}
}

/* Google sign-in (v16): white button with the G mark, per the login image.
   Kept white in both themes so it stays recognisable as Google's button. */
.google-btn{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff!important;color:#1F2937!important;border:2px solid #CBD5D1!important;font-size:17px;font-weight:900;border-radius:16px;padding:17px}
.google-btn svg{flex-shrink:0}
html[data-theme=midnight] .google-btn{background:#fff!important;color:#1F2937!important;border-color:#CBD5D1!important}
.profile-pill.google-pill{background:#0F8A56;color:#fff;border-color:#0F8A56}

/* Modern image set v5.8 — implements the generated modern login/signup/onboarding/tab images. */
.page h2{font-size:22px;font-weight:900}
.onboard.auth-shell{max-width:480px;margin-left:auto;margin-right:auto;background:transparent}
.auth-shell .auth-card{background:var(--surface);border:1px solid var(--line);border-radius:32px;box-shadow:0 24px 60px rgba(16,50,40,.22);padding:28px 23px 30px}
.auth-shell .auth-card .auth-logo{justify-content:center}
.auth-shell .auth-card .auth-logo-mark{flex-basis:84px;width:84px;height:84px}
.auth-shell .auth-card .auth-logo-mark svg{width:84px;height:84px}
.auth-shell .auth-card .brand-title{font-size:30px;font-weight:900}
.auth-shell .auth-card .auth-script{text-align:center;font-size:24px}
.auth-shell .auth-card h1{font-size:40px;font-weight:900;letter-spacing:-.03em;margin:20px 0 8px}
.auth-shell>.auth-switch{text-align:center;font-size:15px;margin:16px 0 0}
.auth-shell>.auth-switch .auth-link{font-size:17px;font-weight:900;color:#0F8A56}
.auth-shell>.tiny-note{text-align:center;background:transparent;border:0;padding:8px 12px}
html[data-theme=midnight] .auth-shell>.auth-switch .auth-link{color:#86C99B}
.login-wrap input{background:var(--field);border:1px solid transparent;border-radius:20px;min-height:56px;padding-left:68px}
html[data-theme=midnight] .login-wrap input{background:var(--field);border-color:transparent}
.signup-wrap input{background:#fff;border:1.5px solid #CBD5D1;border-radius:20px;min-height:56px;padding-left:68px}
html[data-theme=midnight] .signup-wrap input{background:var(--surface);border-color:var(--line)}
.auth-show svg{width:24px;height:24px;display:block}
.auth-toggle{display:flex;align-items:center;gap:12px;min-height:44px;font-size:15px;font-weight:650;color:var(--text);cursor:pointer}
.guest-link{display:block;text-align:center;font-size:17px;font-weight:900;color:#0F8A56;padding:14px 4px;min-height:44px}
html[data-theme=midnight] .guest-link{color:#86C99B}
/* OTP boxes (v5.10) — six one-digit boxes. Flexible squares so all six
   fit without horizontal scrolling at 360px; at 320px they shrink just
   under 44px, which six-across cannot avoid inside the card padding. The
   pop animation runs on every typed digit (see the root input handler). */
.otp-boxes{display:flex;gap:10px;margin:20px 0 8px}
.otp-box{flex:1 1 0;min-width:0;aspect-ratio:1/1;max-width:56px;text-align:center;font-size:24px;font-weight:800;color:var(--ink);background:var(--field);border:1.5px solid #CBD5D1;border-radius:16px;outline:none;transition:border-color .15s}
.otp-box:focus{border-color:#0F8A56;border-width:2px}
.otp-box.otp-filled{border-color:#7FA896}
.otp-box.otp-pop{animation:otp-pop .25s ease}
@keyframes otp-pop{0%{transform:scale(1)}40%{transform:scale(1.12)}100%{transform:scale(1)}}
html[data-theme=midnight] .otp-box{background:var(--field);border-color:var(--line)}
.onboard.auth-page h1{font-size:36px;font-weight:900}
.nb-progress{margin:0 0 18px}
.nb-figure svg{width:110px;height:165px}
.nb-focus-chips .nb-chip{border-radius:99px;padding:14px 20px;font-size:15px;text-align:left;display:flex;align-items:center;gap:10px}
.nb-focus-chips .nb-chip.selected{background:linear-gradient(135deg,#1DB271,#0B6B42)}
.nb-chip.selected{background:linear-gradient(135deg,#1DB271,#0B6B42)}
.nb-check{width:26px;height:26px;flex:0 0 26px;border-radius:50%;background:#fff;color:#0F8A56;display:grid;place-items:center;font-size:15px;font-weight:900}
.nb-choice{position:relative}
.nb-choice.selected{background:linear-gradient(135deg,#1DB271,#0B6B42)}
.nb-choice.selected::after{content:'✓';position:absolute;top:12px;right:12px;width:28px;height:28px;border-radius:50%;background:#fff;color:#0F8A56;display:grid;place-items:center;font-size:16px;font-weight:900;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.nb-choice.nb-goal{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.nb-goal-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.nb-goal-icon{width:56px;height:56px;flex:0 0 56px;border-radius:50%;background:#E7F6EC;color:#0F8A56;display:grid;place-items:center}
.nb-goal-icon svg{width:30px;height:30px}
.nb-choice.selected .nb-goal-icon{background:#fff;color:#0F8A56}
html[data-theme=midnight] .nb-goal-icon{background:#1B3448;color:#86C99B}
.nb-plan-card h2{font-size:28px}
.plan-home-link{display:block;margin:18px auto 0;text-align:center;text-decoration:underline}
.training-banner{background:linear-gradient(135deg,#1DB271,#0B6B42);border-radius:22px;padding:22px;box-shadow:0 12px 28px rgba(15,138,86,.28);margin:18px 0 22px}
.training-banner h2{color:#fff;font-size:24px;line-height:1.25;margin:0;font-weight:900}
.week-strip span{aspect-ratio:1/1;border-radius:50%;padding:0;justify-content:center}
.week-strip span small{display:none}
.chips .chip{background:#EFF2F0;border-color:transparent;color:var(--ink)}
.chips .chip.selected{background:linear-gradient(135deg,#1DB271,#0B6B42);color:#fff;border-color:transparent}
html[data-theme=midnight] .chips .chip{background:var(--soft);color:var(--ink)}
.discover-chips .chip{background:var(--surface);border:1px solid var(--line);color:var(--ink)}
.row .grow h3{font-size:17px;font-weight:800}
.level-badge.lvl-beginner{background:#E7F6EC;color:#0B6B42}
.level-badge.lvl-intermediate{background:#E3F0FD;color:#2478B5}
.level-badge.lvl-advanced{background:#FDEBD7;color:#9A5B00}
.level-badge.lvl-custom{background:#EEF2F4;color:#5A6B76}
.header-search-icon{width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:var(--soft);color:var(--ink);font-size:22px;font-weight:800;display:grid;place-items:center}
.discover-hero{position:relative;display:block;width:100%;border-radius:28px;overflow:hidden;padding:0;text-align:left;box-shadow:0 12px 28px rgba(20,42,68,.14);margin:6px 0 20px}
.discover-hero-image{position:relative;height:210px}
.discover-hero-image img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}
.discover-hero-image:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 40%,rgba(20,36,51,.55))}
.discover-hero-image .image-fallback{height:210px}
.discover-hero-copy{position:absolute;left:20px;bottom:34px;color:#fff;z-index:1}
.discover-hero-copy b{font-size:30px;line-height:1.1;font-weight:900;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.discover-hero-dots{position:absolute;right:18px;bottom:18px;display:flex;gap:6px;z-index:1}
.discover-hero-dots i{width:9px;height:9px;border-radius:50%;background:#ffffff88}
.discover-hero-dots i.on{background:#0F8A56;width:22px;border-radius:99px}
.discover-section .section-heading h2{font-size:22px;font-weight:900}
.focus-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.focus-tile{padding:12px 4px;gap:6px;border-radius:16px}
.focus-tile .focus-icon{width:44px;height:44px}
.focus-tile .focus-icon svg{width:24px;height:24px}
.focus-tile b{font-size:12px;text-align:center}
.focus-tile small{font-size:11px}
html[data-theme=midnight] .focus-icon{background:#1B3448;color:#86C99B}
.card.row-card{display:flex;align-items:center}
.card.row-card .card-open{flex:1;min-width:0}
.card.row-card .cover{width:72px;height:72px;flex:0 0 72px;margin:12px;border-radius:14px}
.card.row-card .card-copy{padding:12px 0}
.card.row-card .card-start{margin:0 12px 0 8px;width:auto;flex:0 0 auto;border-radius:99px;padding:12px 18px}
.report-title{margin:8px 0 4px}
.report-title h1{font-size:40px;font-weight:900;letter-spacing:-.03em;margin:0 0 4px}
.report-title p{font-size:16px;color:var(--muted);margin:0}
.summary{grid-template-columns:repeat(3,1fr)}
.stat{padding:18px 8px;display:flex;flex-direction:column;align-items:center;gap:4px}
.stat-icon{width:44px;height:44px;border-radius:50%;background:#E7F6EC;color:#0F8A56;display:grid;place-items:center}
.stat-icon svg{width:24px;height:24px}
.stat b{font-size:30px;margin:0}
.week-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:20px;box-shadow:0 12px 28px rgba(20,42,68,.12);margin:20px 0}
.week-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.week-card-head h2{margin:0;font-size:20px}
.week-pill{background:#E7F6EC;color:#0B6B42;font-size:13px;font-weight:800;padding:7px 13px;border-radius:99px;white-space:nowrap}
.week-card .week-chart{margin:16px 0 4px}
.history-row{padding:14px 16px}
.history-row .grow{overflow-wrap:anywhere}
.history-icon{width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:#0F8A56;color:#fff;display:grid;place-items:center}
.history-icon svg{width:24px;height:24px}
.history-min{color:#0F8A56;font-weight:900;font-size:15px;white-space:nowrap;flex-shrink:0}
.goal-ring-card .goal-ring span{font-size:18px}
html[data-theme=midnight] .stat-icon,html[data-theme=midnight] .week-pill{background:#1B3448;color:#86C99B}
html[data-theme=midnight] .history-icon{background:#14A866}
html[data-theme=midnight] .history-min{color:#86C99B}
.page-h1{font-size:40px;font-weight:900;letter-spacing:-.03em;margin:8px 0 20px}
.settings-header .header-gear{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;color:var(--ink)}
.settings-header .header-gear svg{width:30px;height:30px}
.menu-icon.dumbbell,.menu-icon.share,.menu-icon.gear,.menu-icon.speaker,.menu-icon.shield,.menu-icon.chat{background:#0F8A56}
.nav .selected{color:#0F8A56}
html[data-theme=midnight] .nav .selected{color:#86C99B}
@media(max-width:380px){.auth-shell .auth-card h1{font-size:32px}.onboard.auth-page h1{font-size:30px}.nb-figure svg{width:92px;height:138px}.nb-plan-card h2{font-size:22px}.report-title h1,.page-h1{font-size:32px}.discover-hero-copy b{font-size:26px}}
/* Image-fidelity pass v5.9: onboarding gender/focus/goals + Discover tab, matched element by element to the modern reference images. Data and behaviour unchanged. */
.nb-figure.selected{background:var(--canvas);color:var(--ink)}
html[data-theme=midnight] .nb-figure.selected{background:var(--canvas);color:var(--ink)}
.nb-focus-wrap{align-items:flex-start}
.nb-focus-chips{min-width:0}
.nb-focus-chips .nb-chip{height:52px;box-sizing:border-box;padding:0 18px;font-size:15px;white-space:nowrap;text-align:left}
.nb-focus-chips .nb-check{width:22px;height:22px;flex:0 0 22px;border-radius:50%;background:#fff;color:#0F8A56;display:grid;place-items:center;font-size:14px;font-weight:900}
.nb-body{width:auto;height:260px;flex:0 0 auto;overflow:visible}
.nb-body.is-full{filter:drop-shadow(0 0 12px rgba(15,138,86,.35))}
.nb-choice.nb-goal{padding:20px;gap:16px;box-shadow:0 8px 24px rgba(18,42,68,.08)}
.nb-goal-icon{width:88px;height:88px;flex:0 0 88px;background:none;border-radius:0}
.nb-goal-icon svg{width:88px;height:88px}
.nb-choice.selected .nb-goal-icon{background:none;color:#fff}
html[data-theme=midnight] .nb-goal-icon{background:none;color:#86C99B}
.discover-header .header-search-icon{background:#EFF2F0}
html[data-theme=midnight] .discover-header .header-search-icon{background:var(--soft)}
.discover-hero-image{height:230px}
.discover-hero-image .image-fallback{height:230px}
.discover-hero-copy b{font-size:32px}
.discover-chips .chip{padding:14px 20px;font-size:14px;font-weight:800}
.discover-chips .chip.selected{background:#0F8A56}
.focus-tile{padding:8px 8px 12px;gap:8px}
.focus-photo{display:block;width:100%}
.focus-photo img{width:100%;height:56px;object-fit:cover;object-position:top center;border-radius:12px;display:block}
.focus-tile b{font-size:12px;text-align:center}
.focus-tile small{font-size:11px}
.level-pill.beginner{background:#0F8A56;color:#fff}
.level-pill.intermediate{background:#FBE3C8;color:#7A4A12}
.level-pill.advanced{background:#E8ECEA;color:#334155}
.card.row-card{background:var(--surface);border:1px solid var(--line);border-radius:18px}
.card.row-card .level-pill{margin-top:0}
.card-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.row-min{font-size:13px;color:var(--muted);font-weight:650}
@media(max-width:380px){.nb-body{height:212px}.nb-focus-chips .nb-chip{height:46px;padding:0 12px;font-size:14px}.nb-focus-chips .nb-check{width:20px;height:20px;flex:0 0 20px;font-size:13px}.focus-photo img{height:52px}.nb-goal-icon{width:72px;height:72px;flex:0 0 72px}.nb-goal-icon svg{width:72px;height:72px}}

/* v5.12 Discover fixes (deep audit of v5.11). Appended late so these win
   over earlier same-specificity rules. */
/* 4: active filter chip is unmistakable — solid green, white, bold. */
.discover-chips .chip.selected{background:#0F8A56;color:#fff;border-color:#0F8A56;font-weight:800}
/* 2: carousel edge fade signals more cards; snap + end padding already on
   .horizontal, scroll-padding keeps the last card clear of the fade. */
.discover-section .horizontal{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent);scroll-padding-right:21px}
/* 9: Body Focus photo tiles are full-bleed covers; label matches card titles. */
.focus-tile.has-photo{padding:0 0 12px;overflow:hidden}
.focus-tile.has-photo .focus-photo img{height:84px;border-radius:0}
.focus-tile b{font-size:15px}
/* 18: custom 44px green clear button replaces the tiny native search ×. */
.browse-search input[type=search]::-webkit-search-cancel-button{display:none}
.browse-search .search-clear{flex:0 0 44px;width:44px;height:44px;min-height:44px;display:grid;place-items:center;font-size:24px;line-height:1;color:#fff;font-weight:800;background:#0F8A56;border-radius:50%}
.browse-search .search-clear[hidden]{display:none}
.browse-search:focus-within{border-color:#0F8A56}
/* 21: no dark gradient over a photo-less collection banner. */
.collection-hero.no-photo:after{display:none}
.collection-banner-title{font-size:22px;margin:14px 0 2px}
.collection-count{margin:10px 0 0}
/* 27: step titles never split at a hyphen (render also uses U+2011). */
.step-grid .row h3{overflow-wrap:normal;hyphens:none}

/* v5.14 follow-ups to the v5.12 verification (browser found 3 partials).
   Root cause of the chip failure: in Midnight theme the base rule
   `html[data-theme=midnight] .chips .chip` (specificity 0,3,1) beat every
   selected-chip rule (0,3,0), so selected chips kept the dark slate
   background with only a green border. These midnight selected rules
   (0,4,1) restore the intended fills. The same bug also broke Training
   chips in Midnight, fixed by the second rule. */
html[data-theme=midnight] .discover-chips .chip.selected{background:#0F8A56;color:#fff;border-color:#0F8A56}
html[data-theme=midnight] .chips .chip.selected{background:linear-gradient(135deg,#1DB271,#0B6B42);color:#fff;border-color:transparent}

/* v5.15 deep-audit fixes. */
html[data-theme=midnight] .player.rest{background:#16293A}
html[data-theme=midnight] .player.rest .player-top{background:#16293A}
.rest-actions .actions{flex-wrap:nowrap}
.rest-actions .actions button{white-space:nowrap;flex:1 1 0;min-width:0;padding-left:10px;padding-right:10px}
.player.ready .demo{flex:0 1 auto;min-height:0}
.player.ready .panel{min-height:0}
.completion-progress{height:10px;width:100%;margin:14px 0 4px}
.licensed-stage .lottie-canvas{padding-bottom:16px}
.coach-stage{padding-bottom:14px}
html[data-theme=midnight] .rhythm-progress{background:#24394D}
html[data-theme=midnight] .goal-ring{background:conic-gradient(#0F8A56 var(--pct,0%),#24394D 0)}
.row .tile.program-tile{width:128px;height:112px;font-size:26px}
.mini-card .thumb-stage{width:100%;height:110px;flex:none}
.mini-card .thumb-photo img{width:100%;height:100%;object-fit:cover;display:block}
.thumb-photo img{width:100%;height:100%;object-fit:cover;display:block}
.theme-tile[data-value="daylight"]{background:#F4F7F5;color:#102A43;border-color:#E6ECE9}
.theme-tile[data-value="midnight"]{background:#16293A;color:#e6f4ff;border-color:#24394D}
.theme-tile[data-value="midnight"] .theme-tile-icon{color:#86C99B}
.theme-tile[data-value="daylight"].selected{background:#D3EDE0;border-color:#0F8A56}
.theme-tile[data-value="midnight"].selected{background:#24394D;border-color:#86C99B}
html[data-theme=midnight] .calendar .selected{background:#0F8A56;color:#fff}
html[data-theme=midnight] .step-btn{background:#24394D;color:#a7e8c0}
html[data-theme=midnight] .danger{color:#ff8a80;background:#3d1512;border-color:#ff8a80}
.auth-logo-text{display:flex;flex-direction:column;justify-content:center}
.auth-logo-text .auth-script{margin:2px 0 0}
.auth-page.welcome-page{min-height:auto;padding-bottom:28px}
.picker-group{font-size:13px;font-weight:800;color:var(--muted);margin:16px 0 4px}
.picker-group:first-child{margin-top:4px}
.volume-row.voice-off{opacity:.45}
button.voice-off{opacity:.45}
button.challenge-card-copy{text-align:left;display:flex;flex-direction:column;gap:6px;padding:0;background:none}
.forgot-page .auth-card{padding-bottom:18px}
.forgot-page .auth-switch{margin-top:6px}
/* v5.15 deep audit, final CSS: ob-step-0 gaps, Midnight dots, day-grid minutes, card badge spacing, editor arrows */
.ob-step-0 h1{margin-top:20px;margin-bottom:16px}
.ob-step-0 .bottom{margin-top:20px;padding-top:16px}
html[data-theme=midnight] .ob-dots i{background:#3d5a75}
.calendar button small{display:block;font-size:11px;font-weight:600}
.card-copy small{margin-right:8px}
.editor-row .controls button{background:var(--canvas);color:var(--ink);border:1px solid var(--line);font-weight:800}
.editor-row .controls button:disabled{opacity:.35;border-style:dashed;background:transparent;color:var(--muted)}
/* v5.17: Training chip rows are single horizontal scroll rows — never wrap,
   and the last chip scrolls fully into view with end padding. */
.training-page .chips-scroll{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 21px 11px 0}
.training-page .chips-scroll .chip{flex:0 0 auto;white-space:nowrap;padding:14px 16px}
/* v5.17: "Your workouts" cover cards — the photo fills the card width on
   top, matching the Just For You / Popular Goals cover style. */
.program-cover-list{display:grid;gap:12px}
.program-cover-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 4px 14px rgba(20,42,68,.05)}
.program-cover-card button{width:100%;text-align:left;display:flex;flex-direction:column;gap:8px;background:none;border:0;padding:0;color:inherit}
.program-cover-card .thumb-stage{width:100%;height:150px;flex:none}
.program-cover-card .tile{width:100%;height:110px}
.program-cover-card .grow h3{font-size:15px}
.program-cover-card .grow small{color:var(--muted);font-size:13px}
/* v5.17: Challenge cards carry a cover photo on top, like mini cards. */
.challenge-card .challenge-card-copy{width:100%;display:flex;flex-direction:column;gap:8px;text-align:left;background:none;border:0;padding:0;color:inherit}
.challenge-card .thumb-stage{width:100%;height:110px;flex:none}
/* v5.17: player completion per-exercise summary. */
.completion-exercises{margin-top:16px;text-align:left}
.completion-exercises h3{font-size:15px;margin:0 0 8px}
.completion-ex-row{margin-bottom:8px}
.completion-ex-row .grow b{font-size:14px}
.completion-ex-row .grow small{color:var(--muted);font-size:13px}
.contact-screen .contact-hero{background:linear-gradient(135deg,#122A3A,#0B6B42);color:#fff;border-radius:24px;padding:22px;margin:16px 0;display:flex;align-items:center;gap:16px;box-shadow:0 12px 28px rgba(20,42,68,.25)}
.contact-screen .contact-hero .contact-monogram{width:64px;height:64px;flex:0 0 64px;border-radius:50%;background:#0F8A56;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:900}
.contact-screen .contact-hero h2{margin:0;font-size:24px;color:#fff}
.contact-screen .contact-hero p{margin:4px 0 0;color:#D7F0E3}
.contact-screen .contact-hero .contact-role{font-weight:800;color:#fff}
.contact-socials .menu-icon.instagram{background:linear-gradient(45deg,#F58529,#DD2A7B,#8134AF)}
.contact-socials .menu-icon.youtube{background:#FF0000}
.contact-socials .menu-icon.telegram{background:#229ED9}
.contact-socials .menu-icon.whatsapp{background:#25D366}
.contact-screen .contact-cards{display:grid;gap:14px;margin:20px 0 8px}
.contact-screen .contact-card{display:flex;align-items:center;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px 20px;box-shadow:0 12px 28px rgba(20,42,68,.12);text-decoration:none;color:inherit}
.contact-screen .contact-card-icon{width:52px;height:52px;flex:0 0 52px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#0F8A56,#0B6B42);color:#fff}
.contact-screen .contact-card-icon svg{width:26px;height:26px}
.contact-screen .contact-card .grow,.contact-screen .follow-card .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.contact-screen .contact-card b{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.contact-screen .contact-card small{font-size:16px;font-weight:800;color:var(--ink);overflow-wrap:anywhere}
.contact-screen .contact-socials{margin:28px 0 8px}
.contact-screen .contact-socials .section-head{margin:0 0 14px}
.contact-screen .follow-card{display:flex;align-items:center;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px 20px;margin:0 0 12px;box-shadow:0 12px 28px rgba(20,42,68,.12);text-decoration:none;color:inherit}
.contact-screen .follow-card:last-child{margin-bottom:0}
.contact-screen .follow-card .menu-icon{width:52px;height:52px;flex:0 0 52px;border-radius:16px}
.contact-screen .follow-card .menu-icon svg{width:26px;height:26px}
.contact-screen .follow-card b{font-size:17px}
.contact-screen .follow-card small{font-size:13px;color:var(--muted);overflow-wrap:anywhere}

.reminder-note{background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:14px;font-weight:650;color:var(--text);margin:0 0 14px}
.day-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.day-chips .chip{padding:10px 0;min-width:44px;text-align:center}

/* Reference-grade polish pass — bolder Training / Discover / Report /
   Settings within the existing design system. No new features, no fake
   controls, no restyle of the Contact screen, no version/cache change.
   Appended last so these rules win at equal specificity. */
/* Training: bolder Weekly Goal card (border + deeper shadow; the 24px
   goal title and done/next strip rules are pinned by tests, untouched). */
.rhythm-card{border:1px solid var(--line);box-shadow:0 16px 34px rgba(20,42,68,.16)}
.training-page h2{font-size:24px}
/* Training: bigger Challenge hero cards (thumb height stays 110px — pinned). */
.challenge-card{min-width:272px;max-width:272px;padding:20px}
.challenge-card h3{font-size:20px}
/* Training: taller Your-workouts cover photos, slightly larger titles. */
.program-cover-card .thumb-stage{height:168px}
.program-cover-card .grow h3{font-size:16px}
/* Discover: taller photo covers (row-cards keep their 72px covers),
   larger card titles, stronger section headings. */
.discovery .card:not(.row-card) .cover{height:148px}
.discovery .card h3{font-size:16px}
.discover-section .section-heading h2{font-size:24px}
/* Discover: dividers between the module / level / duration chip groups. */
.chip-divider{flex:0 0 auto;width:1px;align-self:stretch;background:var(--line);margin:2px 4px}
/* Discover: larger Body Focus icons (photo-tile height stays 84px — pinned). */
.focus-tile{gap:10px}
.focus-tile .focus-icon{width:48px;height:48px}
.focus-tile .focus-icon svg{width:26px;height:26px}
@media(max-width:380px){.focus-tile .focus-icon{width:44px;height:44px}.focus-tile .focus-icon svg{width:24px;height:24px}}
/* Report: bigger stat numbers, bigger goal ring (data and order untouched). */
.summary .stat b{font-size:34px}
.goal-ring{width:104px;height:104px;flex-basis:104px}
.goal-ring span{width:76px;height:76px}
/* Settings: roomier menu rows inside the existing rich cards. */
.settings-page .menu-row{padding:16px 0}
.measure-current{display:flex;gap:18px;flex-wrap:wrap;margin:6px 0 4px}.measure-current>div{display:flex;flex-direction:column;gap:2px}.measure-current b{font-size:28px;font-weight:850;color:var(--blue)}.measure-current span{font-size:13px;font-weight:800;color:var(--teal)}
.measure-form{display:grid;gap:12px;margin:14px 0}.measure-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:var(--text)}.measure-field input{min-height:44px;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:var(--canvas);color:var(--ink);font-size:16px;width:100%}
.measure-history-head{margin-top:18px}.measure-del{width:auto;padding:12px 16px;font-size:13px}
