:root{
  --bg:#071116;
  --bg-2:#09151c;
  --surface:#0e1c24;
  --surface-2:#11232d;
  --surface-3:#172a35;
  --surface-4:#1d313d;
  --line:#243945;
  --line-soft:rgba(131,158,173,.15);
  --text:#f5f8fa;
  --muted:#93a7b4;
  --muted-2:#6f8491;
  --lime:#b7f52f;
  --lime-2:#8ed51b;
  --lime-soft:rgba(183,245,47,.10);
  --red:#ff645f;
  --amber:#ffbe4d;
  --shadow:0 12px 34px rgba(0,0,0,.28);
  --radius-xl:20px;
  --radius-lg:17px;
  --radius-md:13px;
  --ease-out:cubic-bezier(.22,.8,.3,1);
  --ease-spring:cubic-bezier(.2,.9,.25,1.15);
  color-scheme:dark;
}
*{box-sizing:border-box}
html{background:var(--bg);min-height:100%}
body{margin:0;min-height:100%;background:radial-gradient(120% 60% at 50% -10%,#102630 0,var(--bg) 56%);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI Variable","Segoe UI",Inter,Arial,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-feature-settings:"tnum" 1,"ss01" 1}
button,input{font:inherit;-webkit-tap-highlight-color:transparent}
button{color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible{outline:2px solid rgba(183,245,47,.75);outline-offset:2px}
svg{display:block;vector-effect:non-scaling-stroke}
#app{min-height:100vh}
.app-shell{position:relative;width:100%;max-width:430px;min-height:100vh;margin:0 auto;padding:calc(env(safe-area-inset-top) + 14px) 16px calc(86px + env(safe-area-inset-bottom));overflow-x:hidden;background:linear-gradient(180deg,rgba(7,17,22,.35),rgba(7,17,22,.8))}
.app-shell.no-nav{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.view-stage{min-height:calc(100vh - 110px)}

/* typography */
.page-title{margin:20px 0 3px;font-size:40px;line-height:.98;font-weight:800;letter-spacing:-.045em}
.page-date{margin:0 0 16px;color:#a8bac5;font-size:13px;line-height:1.3;font-weight:400}
h2{font-size:22px;letter-spacing:-.025em}h3{letter-spacing:-.018em}

/* header */
.header{height:54px;display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.brand{display:flex;align-items:center;gap:10px}
.brand-logo{width:44px;height:44px;border-radius:50%;object-fit:cover;box-shadow:0 4px 16px rgba(0,0,0,.4);border:1px solid rgba(213,229,238,.28)}
.brand-copy{font-size:20px;line-height:1;font-weight:700;letter-spacing:-.025em;white-space:nowrap}
.brand-copy b{font-weight:800}.brand-copy .training{color:#9eafba;font-weight:500}
.header-actions{display:flex;align-items:center;gap:8px}
.icon-button,.back-btn,.more-btn{border:0;background:transparent;color:#b4c4ce;display:grid;place-items:center;padding:8px;border-radius:11px;transition:transform 90ms ease,background-color 130ms ease,color 130ms ease}
.icon-button{width:36px;height:36px}.icon-button svg{width:21px;height:21px;stroke-width:1.9}
.icon-button:active,.back-btn:active,.more-btn:active{transform:scale(.91);background:rgba(255,255,255,.055)}

/* Today */
.hero-card{position:relative;height:207px;margin:14px 0 13px;border:1px solid rgba(117,148,164,.28);border-radius:var(--radius-xl);overflow:hidden;background:#0c1920;box-shadow:0 14px 34px rgba(0,0,0,.20)}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.84) brightness(.64) contrast(1.08)}
.hero-gradient{position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,15,20,.98) 0%,rgba(6,15,20,.78) 45%,rgba(6,15,20,.18) 100%),linear-gradient(0deg,rgba(6,15,20,.82) 0%,transparent 52%)}
.hero-content{position:relative;z-index:1;height:100%;padding:17px 16px 13px;display:flex;flex-direction:column;justify-content:flex-start}
.kicker{display:flex;align-items:center;gap:7px;color:#b9c8d1;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.055em}.kicker .lime{color:var(--lime)}.kicker svg{width:14px;height:14px;stroke-width:1.95}
.hero-title{max-width:78%;margin-top:9px;font-size:24px;line-height:1.05;font-weight:700;letter-spacing:-.035em}
.hero-subtitle{max-width:78%;margin-top:7px;color:#aec0ca;font-size:12px;line-height:1.38}
.hero-stats{margin-top:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.hero-stat{min-width:0;padding:9px 9px 8px;border:1px solid rgba(112,140,156,.27);background:rgba(13,30,38,.76);backdrop-filter:blur(12px);border-radius:12px}
.hero-stat-top{display:flex;align-items:center;gap:6px;white-space:nowrap}.hero-stat-top svg{width:17px;height:17px;color:var(--lime);stroke-width:1.9}.hero-stat-top b{font-size:14px;font-weight:700;letter-spacing:-.025em}.hero-stat small{display:block;margin-top:3px;color:#8297a4;font-size:9px}
.primary{width:100%;min-height:54px;margin:0 0 18px;padding:0 16px;border:0;border-radius:14px;background:linear-gradient(180deg,#c7ff42 0%,#a9ef26 55%,#98df19 100%);color:#0b160c;display:grid;grid-template-columns:22px 1fr 20px;align-items:center;gap:9px;font-size:17px;font-weight:700;letter-spacing:-.02em;box-shadow:0 8px 22px rgba(150,220,34,.18),inset 0 1px rgba(255,255,255,.35);transition:transform 95ms ease,filter 120ms ease}
.primary svg{width:20px;height:20px}.primary svg:last-child{justify-self:end;stroke-width:2}.primary:active{transform:scale(.982);filter:brightness(.95)}
.section-title{display:flex;align-items:center;justify-content:space-between;margin:1px 2px 10px}.section-title h2{margin:0;font-size:20px;font-weight:700;letter-spacing:-.035em}.section-action{display:flex;align-items:center;gap:5px;color:#8da1ad;font-size:11px}.section-action svg{width:15px;height:15px}
.exercise-list{display:flex;flex-direction:column;gap:8px}
.exercise-row{position:relative;width:100%;min-height:95px;border:1px solid rgba(116,145,160,.23);border-radius:15px;padding:9px;background:linear-gradient(180deg,#10202a 0%,#0d1b23 100%);display:grid;grid-template-columns:82px minmax(0,1fr) 17px;gap:10px;text-align:left;align-items:center;box-shadow:0 7px 16px rgba(0,0,0,.13);transition:transform 90ms ease,background-color 120ms ease,border-color 120ms ease}
.exercise-row:active{transform:scale(.992);background:#13242e;border-color:rgba(183,245,47,.28)}
.exercise-thumb{position:relative;width:82px;height:74px;border-radius:11px;overflow:hidden;background:#0b151a}
.exercise-thumb-img{width:100%;height:100%;object-fit:cover;filter:saturate(.83) contrast(1.06)}
.exercise-number{position:absolute;top:5px;left:5px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(5,13,18,.86);border:1px solid rgba(198,214,223,.32);font-size:11px;font-weight:700}
.exercise-name{font-size:15px;line-height:1.17;font-weight:700;letter-spacing:-.022em}.exercise-muscle{margin-top:3px;color:#91a7b3;font-size:10.5px;line-height:1.25}
.exercise-mini{display:flex;align-items:center;gap:5px;margin-top:7px;flex-wrap:wrap}.mini-chip{padding:4px 7px;border:1px solid rgba(87,119,135,.32);border-radius:7px;background:#132833;color:#dce6eb;font-size:9px;line-height:1;font-weight:600}
.row-chevron{display:grid;place-items:center;color:#8ca0ac}.row-chevron svg{width:14px;height:14px;stroke-width:2.05}
.rir-info{width:100%;min-height:60px;margin:9px 0 0;padding:10px 11px;border:1px solid rgba(110,138,153,.22);border-radius:14px;background:#0f2028;color:inherit;display:grid;grid-template-columns:34px minmax(0,1fr) 16px;gap:9px;align-items:center;text-align:left}.rir-info .circle{width:31px;height:31px;border:1.5px solid #8ea4b2;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#bed0db}.rir-info b{display:block;font-size:12px}.rir-info span span{display:block;margin-top:2px;color:#8fa4b0;font-size:9.5px;line-height:1.3}.rir-info>svg{width:16px;height:16px;color:#8297a4}

/* nav */
.bottom-nav{position:fixed;left:50%;bottom:0;z-index:40;width:min(430px,100%);transform:translateX(-50%);padding:8px 8px calc(7px + env(safe-area-inset-bottom));background:rgba(6,14,19,.96);border-top:1px solid rgba(92,119,133,.28);backdrop-filter:blur(18px)}
.nav-grid{display:grid;grid-template-columns:repeat(5,1fr)}
.nav-btn{min-width:0;border:0;background:transparent;color:#8498a4;display:flex;flex-direction:column;align-items:center;gap:3px;padding:3px 0 2px;font-size:8.5px;font-weight:500;transition:color 120ms ease,transform 90ms ease}.nav-btn svg{width:21px;height:21px;stroke-width:1.9}.nav-btn.active{color:var(--lime)}.nav-btn:active{transform:scale(.91)}

/* workouts */
.workout-tabs,.segmented{display:grid;grid-template-columns:repeat(2,1fr);padding:3px;margin:13px 0 12px;border:1px solid rgba(99,128,143,.24);background:#0d1b23;border-radius:12px}.segmented{grid-template-columns:repeat(3,1fr)}
.workout-tab,.segment{border:0;border-radius:9px;background:transparent;color:#8fa4b1;padding:8px 6px;font-size:11px;font-weight:600}.workout-tab.active,.segment.active{background:linear-gradient(180deg,#c1fb3b,#a9ea25);color:#10200b;box-shadow:0 3px 12px rgba(171,235,38,.14)}
.program-row{min-height:86px}.program-row .exercise-thumb{height:66px}

/* active workout header */
.top-workout{height:50px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;margin-bottom:4px}.back-btn,.more-btn{width:38px;height:38px}.back-btn svg{width:22px;height:22px}.more-btn{font-size:17px;letter-spacing:2px}.top-workout-center{text-align:center}.top-workout-title,.tech-screen-title{font-size:15px;font-weight:700;letter-spacing:-.015em}.top-workout-sub{margin-top:2px;color:#8fa4b0;font-size:9.5px}
.progress-track{height:4px;margin:3px 2px 10px;background:#22343d;border-radius:999px;overflow:hidden}.progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#cbff4b,#a9ea26);box-shadow:0 0 10px rgba(183,245,47,.24);transition:width 260ms var(--ease-out)}
.current-exercise{overflow:hidden;border:1px solid rgba(111,140,155,.24);border-radius:16px;background:linear-gradient(180deg,#0f2029,#0b181f);box-shadow:0 10px 24px rgba(0,0,0,.17)}
.current-visual{width:100%;height:142px;object-fit:cover;display:block;filter:saturate(.86) contrast(1.08)}
.current-body{padding:11px 11px 10px}.current-name{font-size:22px;line-height:1.02;font-weight:700;letter-spacing:-.038em}.current-muscle{margin-top:3px;color:#8fa4b1;font-size:11px}
.metric-strip,.tech-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.metric-box{min-width:0;padding:8px 5px 7px;border:1px solid rgba(103,132,147,.25);border-radius:10px;background:#13252f;text-align:center}.metric-box b{display:block;font-size:13px;font-weight:700;letter-spacing:-.015em}.metric-box small{display:block;margin-top:2px;color:#8297a4;font-size:8.5px;white-space:nowrap}
.tech-btn{width:100%;min-height:43px;margin-top:9px;padding:0 11px;border:1px solid rgba(105,135,150,.34);border-radius:11px;background:#10222b;color:#f3f7f9;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700}.tech-left{display:flex;align-items:center;gap:8px}.tech-left svg{width:17px;height:17px;fill:#f5f7f8}.tech-btn>svg{width:16px!important;height:16px!important;flex:0 0 16px!important;stroke-width:1.8}
.sets-head{display:flex;align-items:flex-end;justify-content:space-between;margin:15px 2px 7px}.sets-head h2{margin:0;font-size:20px;font-weight:700}.sets-head span{color:#879ca8;font-size:9.5px}.set-labels{display:grid;grid-template-columns:24px 1.23fr 1fr .86fr 30px;gap:5px;color:#7e929e;font-size:8.5px;text-align:center;padding:0 2px 4px}
.set-row{display:grid;grid-template-columns:24px 1.23fr 1fr .86fr 30px;gap:5px;align-items:center;min-height:42px;margin:0 0 6px;padding:4px 5px;border:1px solid rgba(84,111,124,.18);border-radius:10px;background:#0d1b22;transition:border-color 160ms ease,background 160ms ease,transform 100ms ease}.set-row.active{border-color:rgba(183,245,47,.72);box-shadow:0 0 0 1px rgba(183,245,47,.18);background:#102118}.set-number{font-size:12px;font-weight:700;text-align:center;color:#c6d3da}
.compact-stepper{height:32px;display:grid;grid-template-columns:26px minmax(24px,1fr) 26px;overflow:hidden;border:1px solid rgba(100,128,142,.28);border-radius:8px;background:#13252f}.compact-stepper button{border:0;background:#1b303b;color:#dce5ea;font-size:15px;font-weight:600;transition:background 90ms ease,transform 90ms ease}.compact-stepper button:active{background:#263c48;transform:scale(.92)}.compact-stepper input{width:100%;min-width:0;border:0;border-left:1px solid rgba(98,128,143,.25);border-right:1px solid rgba(98,128,143,.25);background:#10212a;color:#f6f9fa;text-align:center;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}.compact-stepper button:disabled,.compact-stepper input:disabled{opacity:.58}
.set-check{width:28px;height:28px;border:1.5px solid #59717e;border-radius:50%;background:transparent;display:grid;place-items:center;color:#11200b;transition:transform 170ms var(--ease-spring),background 160ms ease,border-color 160ms ease}.set-check svg{width:17px;height:17px}.set-check.done{background:var(--lime);border-color:var(--lime);box-shadow:0 3px 12px rgba(183,245,47,.22)}.set-check.done{animation:checkPop 260ms var(--ease-spring)}.set-error{margin:-1px 3px 7px 29px;color:#ff8985;font-size:9.5px}
@keyframes checkPop{0%{transform:scale(.72)}70%{transform:scale(1.12)}100%{transform:scale(1)}}

/* rest */
.rest-card{margin:11px 0 4px;padding:11px;border:1px solid rgba(183,245,47,.78);border-radius:14px;background:linear-gradient(135deg,#132419 0%,#102019 55%,#0d1814 100%);display:grid;grid-template-columns:84px 1fr;grid-template-areas:"ring text" "actions actions";gap:8px 12px;align-items:center;box-shadow:0 10px 24px rgba(0,0,0,.18),inset 0 0 24px rgba(183,245,47,.025);animation:restAppear 250ms var(--ease-out)}
.rest-ring{grid-area:ring;position:relative;width:80px;height:80px}.rest-ring svg{width:80px;height:80px;transform:rotate(-90deg)}.rest-ring circle{fill:none;stroke-width:7}.rest-ring .track{stroke:#2c4436}.rest-ring .fill{stroke:var(--lime);stroke-linecap:round;stroke-dasharray:289;transition:stroke-dashoffset .45s linear;filter:drop-shadow(0 0 4px rgba(183,245,47,.18))}.rest-ring-icon{position:absolute;inset:0;display:grid;place-items:center;color:var(--lime)}.rest-ring-icon svg{width:24px;height:24px;transform:none;stroke-width:1.9}
.rest-card>div:nth-child(2){grid-area:text}.rest-kicker{color:var(--lime);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.rest-time{margin-top:1px;color:var(--lime);font-size:39px;line-height:.98;font-weight:700;letter-spacing:-.045em;font-variant-numeric:tabular-nums}.rest-next{margin-top:3px;color:#a3b5bf;font-size:9.5px}.rest-actions{grid-area:actions;display:grid;grid-template-columns:1fr 1fr;gap:8px}.rest-action{height:37px;border:1px solid rgba(118,149,163,.34);border-radius:9px;background:#12262d;color:#f4f7f8;font-size:11px;font-weight:700}.rest-action.primary-rest{border-color:var(--lime);background:var(--lime);color:#10200b}.rest-action:active{transform:scale(.98)}
@keyframes restAppear{from{opacity:0;transform:scale(.985) translateY(-5px)}to{opacity:1;transform:none}}
.volume-card{margin-top:11px;padding:11px;border:1px solid rgba(102,131,145,.22);border-radius:14px;background:#0d1d25}.volume-title{display:flex;justify-content:space-between;align-items:start}.volume-title>b,.volume-title b{font-size:11px}.volume-value{margin-top:2px;font-size:17px;font-weight:700}.volume-up{margin-top:1px;color:var(--lime);font-size:9px}.mini-bars{height:90px;display:flex;align-items:flex-end;gap:8px;margin-top:7px}.bar-wrap{flex:1;display:flex;height:100%;flex-direction:column;justify-content:flex-end;align-items:center}.bar{width:100%;max-width:42px;border-radius:7px 7px 1px 1px;background:linear-gradient(180deg,#c2fa44,#55a787);box-shadow:inset 0 1px rgba(255,255,255,.22)}.bar-num{font-size:8px;margin-bottom:3px}.bar-label{margin-top:4px;color:#8196a1;font-size:7.5px}

/* technique */
.tech-hero{width:100%;height:187px;object-fit:cover;border-radius:14px;display:block;margin-top:5px;filter:saturate(.86) contrast(1.08)}.tech-title{margin-top:11px;font-size:24px;font-weight:700;line-height:1.05;letter-spacing:-.04em}.tech-desc{margin-top:4px;color:#91a5b1;font-size:11px}.tag-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.tag{padding:5px 9px;border-radius:999px;background:#12242d;border:1px solid rgba(91,121,136,.28);color:#b5c4cc;font-size:9px}.tag.lime{background:rgba(183,245,47,.12);border-color:rgba(183,245,47,.18);color:var(--lime)}.tech-stats{margin:10px 0 11px}
.info-section{display:grid;grid-template-columns:40px minmax(0,1fr);gap:9px;padding:11px;margin:0 0 7px;border:1px solid rgba(96,125,139,.20);border-radius:13px;background:#0f2028}.info-icon{width:36px;height:36px;border:1px solid rgba(125,151,165,.28);border-radius:50%;display:grid;place-items:center;color:#9bb0bc}.info-icon svg{width:20px;height:20px;stroke-width:1.78}.info-icon.red{color:var(--red);border-color:rgba(255,100,95,.26)}.info-icon.lime{color:var(--lime);border-color:rgba(183,245,47,.28)}.info-section h3{margin:1px 0 5px;font-size:13px;font-weight:700}.info-section p,.info-section ul{margin:0;padding:0;color:#a8bac4;font-size:10px;line-height:1.45}.info-section ul{list-style:none}.info-section li{position:relative;padding-left:11px;margin:2px 0}.info-section li:before{content:"";position:absolute;left:0;top:.55em;width:4px;height:4px;border-radius:50%;background:var(--lime)}.info-section.errors li:before{background:var(--red)}.info-section.coaching{border-color:rgba(183,245,47,.78);background:linear-gradient(90deg,rgba(183,245,47,.075),rgba(183,245,47,.025))}.info-section.coaching h3{color:var(--lime)}

/* journal */
.calendar-week{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:8px 0 10px}.day-chip{height:62px;border:1px solid rgba(91,119,133,.24);border-radius:10px;background:#0e1d25;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.day-chip small{color:#91a4af;font-size:9px}.day-chip b{font-size:14px}.day-chip .dot{width:4px;height:4px;border-radius:50%;background:#6d8290}.day-chip.selected{background:linear-gradient(180deg,#c0fb3e,#a9ec25);color:#0f1d0c;border-color:transparent}.day-chip.selected small{color:#24391b}.day-chip.selected .dot{background:#15220f}
.month-line{display:flex;align-items:center;justify-content:space-between;margin:7px 2px 8px}.month-line h2{margin:0;font-size:18px;font-weight:700}.history-card{padding:10px;margin-bottom:8px;border:1px solid rgba(102,130,145,.22);border-radius:14px;background:#0f1f27}.history-top{display:grid;grid-template-columns:76px minmax(0,1fr) 16px;gap:9px;align-items:center}.history-img{width:76px;height:58px;object-fit:cover;border-radius:9px}.history-title{font-size:14px;font-weight:700;line-height:1.14}.history-date{margin-top:3px;color:#8fa3ae;font-size:9.5px}.history-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}.history-metric{padding:7px 6px;border:1px solid rgba(89,117,131,.22);border-radius:9px;background:#122630}.history-metric b{display:block;font-size:11px}.history-metric small{display:block;margin-top:2px;color:#7d929d;font-size:7.5px}.completed-list{margin-top:8px;border-top:1px solid rgba(82,109,122,.2)}.completed-row{display:grid;grid-template-columns:26px minmax(0,1fr) 15px;gap:7px;align-items:center;padding:8px 0;border-bottom:1px solid rgba(82,109,122,.17)}.completed-row:last-child{border-bottom:0}.completed-row .n{width:24px;height:24px;border:1px solid #4b6674;border-radius:50%;display:grid;place-items:center;font-size:9px}.completed-row b{display:block;font-size:10.5px}.completed-row div span{display:block;margin-top:2px;color:#8da2ae;font-size:8.5px}.completed-row>svg{width:14px;height:14px;color:#8297a3}
.empty{padding:23px 16px;border:1px solid rgba(99,128,143,.21);border-radius:14px;background:#0e1d25;text-align:center;color:#91a5b0;font-size:11px;line-height:1.45}

/* progress */
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.progress-stat{min-height:104px;padding:11px;border:1px solid rgba(102,130,145,.22);border-radius:14px;background:linear-gradient(180deg,#10212a,#0d1b23);position:relative;overflow:hidden}.progress-stat:after{content:"";position:absolute;inset:auto -25px -35px auto;width:85px;height:85px;border-radius:50%;background:radial-gradient(circle,rgba(183,245,47,.06),transparent 70%)}.progress-stat-head{display:flex;align-items:center;gap:7px;color:#9cafba;font-size:10px}.stat-icon{color:var(--lime)}.stat-icon svg{width:18px;height:18px;stroke-width:1.88}.progress-number{margin-top:10px;font-size:31px;line-height:.95;font-weight:700;letter-spacing:-.045em}.progress-number small{font-size:11px;color:#91a5b0;font-weight:500}.delta{margin-top:5px;color:var(--lime);font-size:8.5px;line-height:1.25}.chart-card{margin-top:8px;padding:11px;border:1px solid rgba(101,130,145,.22);border-radius:14px;background:#0d1d25}.chart-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.chart-head b{font-size:11px}.chart-select{padding:5px 7px;border:1px solid rgba(110,140,155,.28);border-radius:7px;color:#b7c7cf;font-size:8px}.chart{width:100%;height:160px;overflow:visible}.chart-grid{stroke:#29404b;stroke-width:.7;stroke-dasharray:3 4}.chart-area{fill:url(#areaGrad)}.chart-line{fill:none;stroke:var(--lime);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px rgba(183,245,47,.16))}.chart-point{fill:#10212a;stroke:var(--lime);stroke-width:2}.chart-label{fill:#8096a2;font-size:7px}.activity-bars{height:115px;display:flex;align-items:flex-end;gap:8px;padding:3px 4px 0}.activity-week{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.activity-week>b{font-size:9px;margin-bottom:4px}.activity-bar{width:100%;max-width:44px;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#c5fd46,#54a885)}.activity-label{margin-top:5px;color:#8296a2;font-size:7px;white-space:nowrap}

/* settings */
.settings-section{margin:0 0 13px}.settings-section h2{margin:0 0 6px 2px;font-size:17px;font-weight:700}.setting-group{overflow:hidden;border:1px solid rgba(101,130,145,.22);border-radius:14px;background:#0f2028}.setting-row{min-height:56px;padding:8px 11px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;border-bottom:1px solid rgba(82,108,121,.2)}.setting-row:last-child{border-bottom:0}.setting-icon{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;color:#9db2be;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.012));border:1px solid rgba(109,136,150,.18)}.setting-icon svg{width:18px;height:18px;stroke-width:1.82}.setting-copy b{display:block;font-size:12px;font-weight:700}.setting-copy span{display:block;margin-top:2px;color:#8398a4;font-size:8.5px}.setting-row>svg{width:14px;height:14px;color:#8196a2}.setting-value{color:#b4c5ce;font-size:9px;white-space:nowrap}.units{display:grid!important;grid-template-columns:1fr 1fr;width:74px;padding:2px;border:1px solid #39505c;border-radius:8px;background:#10212a}.units button{height:27px;border:0;border-radius:6px;background:transparent;color:#a0b2bc;font-size:9px}.units button.on{background:var(--lime);color:#10200b;font-weight:700}.toggle{position:relative;width:44px;height:26px;border:0;border-radius:999px;background:#3a4f5b;transition:background .22s ease}.toggle:after{content:"";position:absolute;top:2px;left:2px;width:22px;height:22px;border-radius:50%;background:white;box-shadow:0 2px 5px rgba(0,0,0,.28);transition:transform .28s cubic-bezier(.2,.9,.3,1.2)}.toggle.on{background:var(--lime)}.toggle.on:after{transform:translateX(18px)}

/* motion */
.page-enter-push{animation:pagePush .22s var(--ease-out)}.page-enter-pop{animation:pagePop .20s var(--ease-out)}.page-enter-tab{animation:tabFade .15s ease-out}
@keyframes pagePush{from{opacity:.78;transform:translate3d(14px,0,0)}to{opacity:1;transform:none}}
@keyframes pagePop{from{opacity:.8;transform:translate3d(-9px,0,0)}to{opacity:1;transform:none}}
@keyframes tabFade{from{opacity:.72}to{opacity:1}}
.toast{position:fixed;left:50%;bottom:82px;z-index:80;transform:translateX(-50%);max-width:390px;width:calc(100% - 30px);padding:10px 13px;border:1px solid rgba(123,150,164,.28);border-radius:12px;background:rgba(22,40,50,.96);box-shadow:0 12px 30px rgba(0,0,0,.35);color:#f6f9fa;text-align:center;font-size:10px;animation:toastIn 180ms var(--ease-out)}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,6px) scale(.98)}to{opacity:1;transform:translate(-50%,0) scale(1)}}

.placeholder{background:linear-gradient(135deg,#12242d,#1a303b);display:grid;place-items:center;color:#6f8793;font-weight:800}

@media (max-width:380px){
  .app-shell{padding-left:12px;padding-right:12px}.page-title{font-size:37px}.hero-title{font-size:22px}.hero-stat{padding:8px 7px}.hero-stat-top b{font-size:12px}.exercise-row{grid-template-columns:75px minmax(0,1fr) 15px}.exercise-thumb{width:75px;height:69px}.compact-stepper{grid-template-columns:23px minmax(22px,1fr) 23px}.set-row,.set-labels{grid-template-columns:22px 1.2fr 1fr .83fr 28px;gap:4px}.rest-card{grid-template-columns:76px 1fr}.rest-ring,.rest-ring svg{width:72px;height:72px}.rest-time{font-size:35px}
}

@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
.chart-value-label{fill:#d9e5ea;font-size:7.5px;font-weight:700}
.brand-logo{box-shadow:0 2px 10px rgba(0,0,0,.22)}
.exercise-row .row-chevron,.program-row .row-chevron,.completed-row>svg,.history-top>svg{opacity:.92}

/* v0.13 custom golden-ratio icon system */
.setting-action{border:0;background:transparent;color:#c9d7e2;font-size:12px;font-weight:700;padding:8px 0;white-space:nowrap}
.setting-action:active{opacity:.62}


/* MZ icon system v1 — Fibonacci/phi optical rhythm */
:root{--phi-3:3px;--phi-5:5px;--phi-8:8px;--phi-13:13px;--phi-21:21px}
.mz-icon{display:block;vector-effect:non-scaling-stroke;overflow:visible}
.icon-button svg{width:var(--phi-21);height:var(--phi-21)}
.nav-btn svg{width:var(--phi-21);height:var(--phi-21)}
.row-chevron svg{width:var(--phi-13);height:var(--phi-13)}
.kicker svg{width:var(--phi-13);height:var(--phi-13)}
.hero-stat-top svg{width:18px;height:18px}
.setting-icon svg{width:18px;height:18px}
.stat-icon svg{width:18px;height:18px}
.info-icon svg{width:var(--phi-21);height:var(--phi-21)}
.rest-ring-icon svg{width:var(--phi-21);height:var(--phi-21)}

/* MZ primary CTA — designed from the same 3/5/8/13/21 rhythm */
.mz-cta{min-height:55px;padding:0 13px;border-radius:13px;grid-template-columns:34px 1fr 26px;gap:8px;background:linear-gradient(180deg,#c8fa3c 0%,#b7ef2e 48%,#a4e321 100%);box-shadow:0 8px 21px rgba(158,220,31,.18),inset 0 1px 0 rgba(255,255,255,.36),inset 0 -1px 0 rgba(77,111,6,.16);position:relative;overflow:hidden}
.mz-cta:before{content:"";position:absolute;left:13px;right:13px;top:0;height:1px;background:rgba(255,255,255,.28)}
.mz-cta-leading{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(10,23,8,.09);box-shadow:inset 0 0 0 1px rgba(14,32,10,.08)}
.mz-cta-leading svg{width:13px;height:13px;stroke-width:1.9}
.mz-cta-label{justify-self:center;font-size:17px;font-weight:700;letter-spacing:-.024em;line-height:1}
.mz-cta-trailing{width:26px;height:34px;display:grid;place-items:center;color:#223712}
.mz-cta-trailing svg{width:13px;height:13px;stroke-width:2.05}
.mz-cta:active{transform:scale(.986);filter:saturate(.96) brightness(.97)}

/* v0.15 content interactions + iOS typography */
:root{
  --font-text:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",system-ui,sans-serif;
  --font-display:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",system-ui,sans-serif;
}
html,body,button,input,select{font-family:var(--font-text)}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:"tnum" 1,"kern" 1;letter-spacing:0}
.page-title,.hero-title,.current-name,.tech-title,.progress-number,.rest-time{font-family:var(--font-display)}
.page-title{font-weight:800;letter-spacing:-.038em}
.brand-copy{font-weight:700;letter-spacing:-.018em}.brand-copy b{font-weight:800}.brand-copy .training{font-weight:400}
.hero-title,.current-name,.tech-title{font-weight:700;letter-spacing:-.028em}
.section-title h2,.sets-head h2,.month-line h2,.settings-section h2{font-weight:700;letter-spacing:-.025em}
.exercise-name,.history-title{font-weight:600;letter-spacing:-.018em}
.page-date,.exercise-muscle,.history-date,.setting-copy span{font-weight:400}
.mini-chip,.setting-copy b,.progress-stat-head,.chart-head b{font-weight:600}
.progress-number,.rest-time{font-weight:700;letter-spacing:-.035em}

.journal-week-nav{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;gap:8px;margin:7px 0 7px;color:#8fa4b1;font-size:10px;text-align:center}
.week-arrow{width:32px;height:32px;border:1px solid rgba(99,128,143,.22);border-radius:10px;background:#0d1b23;color:#9cb0bb;display:grid;place-items:center;padding:0;transition:transform 90ms ease,background-color 120ms ease}
.week-arrow svg{width:14px;height:14px}.week-arrow:active{transform:scale(.94);background:#132630}
.calendar-week{margin-top:0}
.day-chip{appearance:none;color:var(--text);padding:0;cursor:pointer;transition:transform 90ms ease,border-color 120ms ease,background-color 120ms ease}
.day-chip:active{transform:scale(.96)}
.day-chip.has-workout:not(.selected) .dot{background:var(--lime);box-shadow:0 0 0 3px rgba(183,245,47,.08)}
.day-chip:not(.has-workout) .dot{opacity:.45}
.month-line{align-items:flex-end}.month-line>div{min-width:0}.selected-day-label{display:block;margin-top:2px;color:#8298a5;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-top{width:100%;border:0;background:transparent;color:inherit;padding:0;text-align:left;cursor:pointer}
.history-toggle .row-chevron{transition:transform 180ms var(--ease-out)}.history-toggle .row-chevron.open{transform:rotate(90deg)}
.completed-row{width:100%;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.completed-row:active{background:rgba(255,255,255,.02)}
.completed-row .row-chevron{justify-self:end}
.empty-sub{display:block;margin-top:5px;color:#6f8592;font-size:9.5px}

.select-wrap{position:relative;display:inline-flex;align-items:center;min-width:0;border:1px solid rgba(110,140,155,.28);border-radius:8px;background:#10212a;color:#b7c7cf;overflow:hidden}
.select-wrap select{appearance:none;-webkit-appearance:none;border:0;outline:0;background:transparent;color:#c1d0d7;padding:6px 25px 6px 9px;font-size:9px;font-weight:500;max-width:145px;cursor:pointer}
.select-wrap:after{content:"⌄";position:absolute;right:8px;top:50%;transform:translateY(-55%);font-size:10px;color:#7f96a3;pointer-events:none}
.select-wrap.compact{gap:4px}.select-wrap.compact>svg{width:13px;height:13px;margin-left:7px;color:#8197a3}.select-wrap.compact select{padding-left:3px;max-width:132px}
.chart-head .select-wrap{flex:0 0 auto}.chart-head b{min-width:0}
.activity-bars.dense{gap:4px}.activity-bars.dense .activity-bar{max-width:24px}.activity-bars.dense .activity-label{font-size:6.5px}
.segment{transition:background-color 140ms ease,color 140ms ease,transform 90ms ease}.segment:active{transform:scale(.97)}

/* v0.15.1 — restore pre-v0.15 page-title treatment only */
:root{--font-page-title:"Segoe UI",Inter,Arial,sans-serif}
.page-title{font-family:var(--font-page-title);font-weight:800;letter-spacing:-.045em}
