:root{--ink:#173437;--pine:#123e42;--pine-light:#1e5658;--gold:#d8ad70;--paper:#f6f5f1;--white:#fff;--line:#e2e7e4;--muted:#647575;--success:#247c65;--danger:#aa5750;--nav-h:75px;--round:18px;color-scheme:light}
*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:var(--paper);color:var(--ink)}body{margin:0;min-height:100dvh}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:default}#app{max-width:780px;margin:0 auto;min-height:100dvh;background:var(--paper)}.app-header{height:74px;padding:12px 20px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:20;background:rgba(246,245,241,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(13px)}.brand{display:flex;gap:10px;align-items:center}.brand-symbol{height:39px;width:39px;display:grid;place-items:center;background:var(--pine);color:#fff;border-radius:12px;font-weight:900;font-size:19px;letter-spacing:-2px}.brand-symbol span{color:var(--gold);font-size:13px;vertical-align:top;margin-left:1px}.brand-name{font-size:17px;letter-spacing:.12em;font-weight:850}.brand-name span{color:#ab8556}.brand-sub{font-size:9px;letter-spacing:.22em;font-weight:700;color:var(--muted);margin-top:2px}.icon-button{width:40px;height:40px;border-radius:13px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:22px}.screen{padding:17px 17px calc(var(--nav-h) + 45px);min-height:calc(100dvh - 150px)}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,780px);padding:7px 10px calc(7px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;background:rgba(255,255,255,.98);border-top:1px solid var(--line);z-index:30;box-shadow:0 -8px 22px #1e3c4212}.nav-item{border:0;background:transparent;color:#839191;min-height:60px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:700;letter-spacing:.02em;border-radius:12px}.nav-icon{font-size:26px;line-height:25px;font-weight:500}.nav-item.active{color:var(--pine);background:#eaf1ed}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:800;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.16;letter-spacing:-.04em;margin-bottom:8px;font-weight:850}h2{font-size:20px;letter-spacing:-.025em;margin-bottom:13px}h3{font-size:16px;margin-bottom:6px}p{line-height:1.47}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.date-picker-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 18px}.date-label{text-align:center;flex:1;font-size:14px;font-weight:800}.date-label span{display:block;font-size:11px;font-weight:600;color:var(--muted);margin-top:3px}.circle-btn{height:35px;width:35px;border-radius:50%;border:1px solid #dbe2dd;background:#fff;color:var(--pine);font-size:23px;display:grid;place-items:center}.hero{color:#fff;border-radius:22px;padding:22px 20px;background:radial-gradient(circle at 95% 0%,#39716d 0%,transparent 44%),linear-gradient(135deg,#123e42,#183236);box-shadow:0 12px 26px #13363825;margin-bottom:16px;overflow:hidden;position:relative}.hero .eyebrow{color:#d2bc91}.hero h1{color:#fff;max-width:340px;font-size:30px;margin:9px 0 8px}.hero p{color:#d2e1da;margin-bottom:0;font-size:13px;max-width:320px}.hero-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.hero-tag{flex-shrink:0;background:#ffffff20;color:#fff;border:1px solid #ffffff28;padding:8px 10px;border-radius:100px;font-size:11px;font-weight:750}.progress-track{height:7px;border-radius:9px;background:#ffffff34;margin-top:23px;overflow:hidden}.progress-fill{height:100%;background:var(--gold);border-radius:9px;transition:width .2s}.hero-foot{display:flex;justify-content:space-between;font-size:11px;color:#d9e3df;margin-top:8px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:23px 1px 11px}.section-head h2{margin:0}.text-btn{background:transparent;border:0;padding:5px;color:#236967;font-weight:800;font-size:13px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--round);padding:16px;box-shadow:0 3px 8px #1e363607;margin-bottom:12px}.card-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.card-title{font-weight:800;font-size:16px}.pill{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;font-weight:800;padding:6px 9px;border-radius:99px;background:#e9f1ec;color:#226954}.pill.gold{background:#fff2dd;color:#956421}.pill.soft{background:#eef2f1;color:#576f6c}.pill.done{background:#ddf4e7;color:#176d4e}.button{min-height:47px;padding:12px 16px;border-radius:13px;font-size:14px;border:0;font-weight:800;transition:opacity .12s;background:var(--pine);color:#fff;text-align:center}.button.secondary{color:var(--pine);border:1px solid #d0dcda;background:#f8faf8}.button.gold{background:var(--gold);color:#222f30}.button:active,.icon-button:active,.circle-btn:active{transform:scale(.98)}.button.wide{width:100%}.button.small-btn{padding:8px 13px;min-height:36px;border-radius:10px;font-size:12px}.buttons{display:flex;gap:8px;margin-top:15px}.buttons .button{flex:1}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.metric{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 10px;text-align:center}.metric strong{display:block;font-size:23px;line-height:1.2;letter-spacing:-.04em;color:var(--pine)}.metric span{font-size:10px;color:var(--muted);font-weight:700}.agenda{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.agenda:last-child{border:0;padding-bottom:0}.agenda-time{font-size:12px;flex:0 0 65px;font-weight:800;color:#476866}.agenda-title{font-weight:800;font-size:13px;margin-bottom:2px}.agenda-sub{font-size:12px;color:var(--muted)}.status-dot{width:19px;height:19px;border:2px solid #d7e1da;border-radius:100px;flex:0 0 19px;margin-left:auto;display:grid;place-items:center;color:#fff;font-size:12px}.status-dot.done{background:var(--success);border-color:var(--success)}.title-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:4px 1px 17px}.title-row h1{margin:4px 0}.workout-progress{font-size:12px;color:var(--muted);font-weight:750}.set-card{background:var(--pine);color:#fff;padding:22px;border-radius:23px;box-shadow:0 9px 21px #21434322}.set-kicker{color:var(--gold);font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.set-card h2{font-size:30px;line-height:1.1;letter-spacing:-.04em;color:#fff;margin:13px 0 4px}.set-card .group-label{font-size:13px;color:#d3e3da}.set-main{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin:22px 0 14px}.set-stat{border:1px solid #ffffff29;background:#ffffff12;padding:13px 7px;border-radius:13px;text-align:center}.set-stat b{font-size:24px;display:block;line-height:1.1}.set-stat span{display:block;margin-top:5px;color:#cddcd7;font-weight:650;font-size:10px}.set-card .button.gold{width:100%;margin-top:6px;min-height:55px;font-size:16px}.step-nav{display:flex;align-items:center;justify-content:space-between;margin-top:17px;gap:9px}.step-nav .button{flex:1}.rest-panel{background:#fff8e9;border:1px solid #f1dfb7;padding:12px 14px;border-radius:14px;margin:12px 0;display:flex;align-items:center;gap:13px;justify-content:space-between}.rest-panel b{font-size:18px;color:#795427}.rest-panel button{border:0;background:transparent;color:#916429;font-weight:800}.timeline-item{display:flex;align-items:center;gap:10px;border:0;border-bottom:1px solid var(--line);width:100%;padding:11px 0;text-align:left;background:transparent;color:var(--ink)}.timeline-item:last-child{border-bottom:0}.step-circle{width:31px;height:31px;border-radius:100px;background:#eef3ef;color:#36615a;display:grid;place-items:center;font-size:12px;font-weight:800;flex-shrink:0}.step-circle.complete{background:#257e66;color:#fff}.timeline-title{font-size:13px;font-weight:750}.timeline-sub{font-size:11px;color:var(--muted);margin-top:2px}.timeline-item.current .timeline-title{color:#156f68}.timeline-item.current .step-circle{box-shadow:0 0 0 3px #c5ddd0}.banner-tip{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.45;color:#60726d;margin:12px 3px}.edit-link{border:0;background:none;color:#31756a;font-size:12px;font-weight:800}.complete-panel{border:1px solid #bce1d1;background:#e6f6ee;border-radius:21px;padding:24px 19px;text-align:center}.complete-icon{font-size:38px;color:#197958}.complete-panel h2{margin:9px 0}.cardio-clock{font-size:55px;font-variant-numeric:tabular-nums;font-weight:850;letter-spacing:-.055em;text-align:center;padding:21px 8px 6px}.cardio-card{background:var(--pine);color:#fff;border-radius:21px;padding:18px}.cardio-card h2{color:#fff;text-align:center;margin-bottom:2px}.cardio-card .eyebrow{color:#d5bd91;text-align:center}.intensity-large{text-align:center;margin-bottom:8px;font-size:14px;color:#d5e5db}.intensity-large strong{color:#ffcc81;font-size:22px}.interval-line{display:flex;height:72px;align-items:end;gap:3px;margin-top:15px}.interval-bar{flex:1;min-width:0;background:#82ada1;border-radius:5px 5px 0 0;opacity:.66}.interval-bar.active{background:#f0ba68;opacity:1;box-shadow:0 -1px 10px #f0ba684f}.interval-bar.past{opacity:1;background:#4c957c}.interval-foot{display:flex;justify-content:space-between;font-size:10px;color:#d3e2dc;margin-top:7px}.interval-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.interval-cell{padding:9px 1px;background:#f1f5f1;border-radius:9px;text-align:center;font-size:10px;font-weight:700}.interval-cell strong{display:block;font-size:15px;color:var(--pine);margin-top:4px}.interval-cell.now{background:#fff0d6;outline:2px solid #daae63}.interval-cell.done{background:#dfede6}.meal-card{padding:0;overflow:hidden}.meal-main{padding:15px;display:flex;gap:10px;align-items:flex-start}.meal-check{width:31px;height:31px;border:1px solid #d2ded7;background:#f6faf8;border-radius:10px;color:#357b69;font-weight:900;font-size:18px;flex-shrink:0}.meal-check.checked{background:#247d65;color:#fff;border-color:#247d65}.meal-info{flex:1;min-width:0}.meal-top{display:flex;align-items:center;justify-content:space-between;gap:5px}.meal-title{font-size:13px;font-weight:850;letter-spacing:.02em}.meal-food{font-size:14px;margin:6px 0 3px;color:#254442;line-height:1.37}.meal-footer{background:#f9faf8;border-top:1px solid #edf1ed;display:flex;align-items:center;justify-content:space-between;padding:10px 15px;color:#637874;font-size:11px}.water-row{display:grid;grid-template-columns:repeat(10,1fr);gap:5px;margin-top:12px}.water-cup{height:41px;border-radius:8px;border:1px solid #cddbd8;background:#f6faf9;color:#668582;font-size:20px}.water-cup.filled{background:#d4ece7;border-color:#85b9af;color:#1b7d74}.water-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:15px;margin:12px 0}.week-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:15px 0}.week-dates{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.date-tile{min-height:100px;border:1px solid #dfe6e1;background:#fff;border-radius:13px;padding:10px 3px;text-align:center;color:var(--ink)}.date-tile.active{border:2px solid var(--pine);padding:9px 2px;background:#eff7f2}.date-tile .d-name{font-size:10px;color:var(--muted);font-weight:800}.date-tile .d-num{font-size:21px;font-weight:850;display:block;margin:7px 0}.date-tile .d-type{font-size:9px;display:block;color:#577e73;font-weight:800}.date-tile .d-check{font-size:12px;color:#188362;display:block;margin-top:4px}.week-list{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}.week-button{padding:13px 5px;border-radius:12px;background:#fff;border:1px solid #dfe6df;color:#365c54;font-size:11px;font-weight:750}.week-button.active{background:var(--pine);color:#fff}.week-button span{display:block;font-size:16px;margin-bottom:3px}.week-button.completed{border-color:#8ac6af}.group-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:13px;margin:8px 0}.group-card-head{display:flex;align-items:center;justify-content:space-between}.group-number{display:inline-flex;width:26px;height:26px;background:#e3eee8;border-radius:9px;align-items:center;justify-content:center;font-weight:850;color:#386a5a;margin-right:7px}.group-exercises{margin:8px 0 0 35px;font-size:13px;color:#566e67;line-height:1.55}.field{display:flex;flex-direction:column;gap:6px;margin:11px 0}.field label{font-size:12px;color:#486862;font-weight:850}.field input,.field textarea{width:100%;border:1px solid #cedbd4;border-radius:11px;min-height:42px;padding:10px 11px;background:#fff;color:var(--ink);font-size:15px}.field textarea{min-height:80px;resize:vertical}.weights-grid{display:grid;grid-template-columns:repeat(3,1fr);column-gap:9px}.field small{font-size:10px;color:var(--muted)}dialog{width:min(460px,calc(100% - 22px));max-height:calc(100dvh - 60px);overflow-y:auto;border:1px solid #d7e4dc;border-radius:21px;background:#fbfcfa;color:var(--ink);padding:20px;box-shadow:0 15px 70px #0f2d3270}dialog::backdrop{background:#0d23289e}dialog h2{margin:4px 0 6px}dialog .dialog-sub{font-size:12px;color:var(--muted);margin-bottom:18px}.dialog-buttons{display:flex;gap:7px;position:sticky;bottom:-20px;background:#fbfcfa;padding:12px 0 4px}.dialog-buttons .button{flex:1}dialog .close-x{float:right;border:0;background:#edf1ed;border-radius:12px;width:34px;height:34px;font-size:21px;color:#4c6860}.toggle-line{display:flex;gap:9px;align-items:center;margin:14px 0;color:#385650;font-size:13px}.toggle-line input{width:18px;height:18px}.setting-divider{border-top:1px solid #dce6df;margin:19px 0}.empty-message{text-align:center;padding:20px;color:#6b7c75}.mini-calendar-notice{text-align:center;color:var(--muted);font-size:12px;margin:15px 0}.hide{display:none!important}.load-alert{border:1px solid #e3cbb0;background:#fff6e8;color:#795f43;padding:11px;border-radius:12px;margin-top:12px;font-size:12px}.check-note{font-weight:700;color:#287864}
@media(min-width:600px){.screen{padding:24px 28px calc(var(--nav-h) + 42px)}.app-header{padding:12px 30px}.hero{padding:30px}.hero h1{font-size:38px}.water-row{gap:10px}.date-tile{min-height:110px}}
@media(max-width:360px){.metric-grid{gap:5px}.metric{padding:11px 5px}.date-tile .d-type{font-size:8px}.set-card h2{font-size:25px}.brand-name{font-size:15px}}


/* v1.1: comfortable iPhone type sizing and touch targets. */
html{font-size:16px}
.brand-name{font-size:19px}
.brand-sub{font-size:11px}
.nav-item{font-size:13px;min-height:63px}
.nav-icon{font-size:28px}
.eyebrow{font-size:12px}
h1{font-size:30px}h2{font-size:22px}h3{font-size:18px}
.small{font-size:14px}.tiny{font-size:12px}
.date-label{font-size:16px}.date-label span{font-size:13px}
.circle-btn{min-height:44px;min-width:44px;width:44px;height:44px}
.icon-button{min-height:44px;min-width:44px}
.hero h1{font-size:32px}.hero p{font-size:15px}.hero-tag{font-size:12px}
.hero-foot{font-size:13px}
.text-btn{font-size:15px;min-height:44px}
.card-title{font-size:18px}
.pill{font-size:12px}
.button{font-size:16px;min-height:48px}
.button.small-btn{font-size:14px;min-height:44px}
.metric strong{font-size:25px}.metric span{font-size:12px}
.agenda-time{font-size:14px;flex-basis:71px}.agenda-title{font-size:15px}.agenda-sub{font-size:14px}
.workout-progress{font-size:14px}
.set-kicker{font-size:12px}.set-card h2{font-size:32px}
.set-card .group-label{font-size:15px}
.set-stat b{font-size:27px}.set-stat span{font-size:12px}
.timeline-title{font-size:15px}.timeline-sub{font-size:13px}
.banner-tip{font-size:14px}
.meal-main{align-items:center;gap:10px}
.meal-check{height:44px;width:44px;font-size:21px;border-radius:12px}
.meal-top{flex-wrap:wrap;justify-content:flex-start;gap:6px}
.meal-title{font-size:16px}.meal-food{font-size:16px;line-height:1.42}
.meal-footer{font-size:12px}
.edit-link{width:51px;min-width:51px;min-height:51px;border:1px solid #bfd5cb;border-radius:13px;background:#eff7f1;color:#216459;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;font-size:24px;line-height:1.04}
.edit-link .edit-caption{font-size:11px;line-height:1.2;font-weight:800}
.field label{font-size:14px}
.field input,.field textarea,.field select{width:100%;border:1px solid #cedbd4;border-radius:11px;min-height:48px;padding:11px;background:#fff;color:var(--ink);font-size:16px}
.field textarea{min-height:92px;resize:vertical}
.field select{appearance:auto}
.field small{font-size:12px}
dialog{max-height:calc(100dvh - 24px);padding:20px}
dialog .dialog-sub{font-size:14px}
dialog .close-x{height:44px;width:44px}
.toggle-line{font-size:15px;align-items:flex-start}
.toggle-line input{height:23px;width:23px;flex-shrink:0;margin-top:0}
.save-option{background:#eff7f2;border:1px solid #d5e9db;border-radius:12px;padding:12px}
.save-option strong{display:block;font-size:15px}
.save-option small{display:block;font-size:13px;font-weight:500;color:#58736a;line-height:1.4;margin-top:3px}
.meal-library-picker{background:#f4f7f5;border:1px solid #dbe6de;border-radius:15px;padding:12px;margin:16px 0}
.meal-library-picker .field{margin:0}
.saved-meal-tools{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:4px}
.saved-meal-tools span{font-size:12px;color:#526f65}
.saved-meal-tools .text-btn{font-size:12px;padding:8px;flex-shrink:0}
.saved-meal-tools .text-btn:disabled{opacity:.4}
@media(max-width:360px){.brand-name{font-size:16px}.hero h1{font-size:29px}.set-card h2{font-size:29px}.meal-main{padding:12px;gap:8px}.meal-check{width:42px;height:42px}.edit-link{width:48px;min-width:48px;min-height:48px}}
@media(min-width:600px){.hero h1{font-size:40px}}
