:root{--ink:#243a34;--muted:#67736e;--green:#193e35;--lime:#d4eb91;--paper:#f6f5f0;--line:#e1e5dd;--white:#fff;--amber:#93601b;--red:#ac4245;--radius:20px;--shadow:0 5px 24px #233e3205;font-family:Inter,Segoe UI,system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #6f9c4d;outline-offset:3px}input,select,textarea{min-width:0;border:1px solid #ced7cd;background:white;border-radius:10px;padding:10px 12px;color:var(--ink);max-width:100%}input[type=number]{width:95px}input[type=date]{padding:8px 10px;width:156px}input[type=checkbox]{accent-color:var(--green);width:19px;height:19px;flex-shrink:0}textarea{width:100%;min-height:74px;resize:vertical}h1,h2,h3,p{margin:0}h1{font-size:34px;line-height:1.16;letter-spacing:-1.3px;font-weight:650}h2{font-size:20px;letter-spacing:-.45px;font-weight:650}h3{font-size:16px;font-weight:650}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.6}.eyebrow{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;font-weight:700}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:18px}.hidden{display:none!important}.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.topbar{height:86px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1220px)/2));gap:30px;background:#fdfdfb}.brand{text-decoration:none;display:flex;align-items:center;gap:10px}.brandmark{width:37px;height:37px;border-radius:12px;background:var(--green);color:var(--lime);display:grid;place-items:center}.brandname{font-size:25px;font-weight:750;letter-spacing:-1px}.nav{display:flex;gap:8px}.nav button{background:none;color:var(--muted);display:flex;gap:8px;align-items:center;padding:11px 16px;border-radius:11px;font-weight:550;font-size:14px}.nav button.active{background:#eaf0e2;color:var(--green)}.top-actions{display:flex;gap:8px}.iconbtn{background:transparent;border:1px solid var(--line);border-radius:12px;width:40px;height:40px;display:grid;place-items:center}.demo-bar{background:#eceee5;color:#59674e;padding:9px 24px;text-align:center;font-size:11px;letter-spacing:.15px}.demo-bar strong{font-weight:650}.demo-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#82905f;margin-right:7px}.layout{max-width:1220px;padding:35px 24px 46px;margin:auto}.pageheading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:25px}.pageheading .eyebrow{color:var(--muted);margin-bottom:9px}.pageheading p{font-size:14px;margin-top:10px}.datecontrol{display:flex;align-items:center;gap:7px;flex-shrink:0}.datecontrol button{background:var(--white);border:1px solid var(--line);border-radius:10px;width:32px;height:36px}.datecontrol .todaybtn{width:auto;padding:0 10px;font-size:12px}.weekstrip{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-bottom:25px}.weekstrip button{border:1px solid var(--line);border-radius:13px;background:transparent;padding:10px 6px;display:flex;justify-content:center;align-items:center;gap:10px;color:var(--muted);font-size:12px}.weekstrip button b{font-size:16px;font-weight:600}.weekstrip button.active{background:var(--green);color:white;border-color:var(--green)}.weekstrip button.today:not(.active){border-color:#92a47c}.grid-main{display:grid;grid-template-columns:1.65fr 1fr;gap:22px}.hero{background:var(--green);color:white;border-radius:24px;padding:28px 30px;min-height:280px;position:relative;overflow:hidden}.hero .muted{color:#c0d0c4}.hero .eyebrow{color:var(--lime)}.hero-inner{display:flex;gap:25px;align-items:center;margin-top:22px}.ring{width:160px;height:160px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--lime) var(--progress),#ffffff16 0)}.ring-inner{background:var(--green);width:140px;height:140px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column}.ring strong{font-size:31px;font-weight:650;letter-spacing:-1px}.ring span{color:#c0d0c4;font-size:11px;margin-top:3px}.hero-numbers{flex:1}.hero-number{font-size:25px;font-weight:600;letter-spacing:-.6px}.hero hr{border:0;border-top:1px solid #ffffff26;margin:15px 0}.hero .badge{background:#ffffff14;color:#e4eae2}.card{border:1px solid var(--line);border-radius:var(--radius);background:white;padding:23px;box-shadow:var(--shadow)}.card p{font-size:13px}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}.card-head .icon{color:#7c8967}.week-chart{display:flex;align-items:end;gap:12px;height:85px;margin:21px 0 8px}.week-col{flex:1;height:100%;display:flex;align-items:center;flex-direction:column;justify-content:end;gap:7px}.bar{width:100%;max-width:26px;min-height:4px;background:#e1e7da;border-radius:5px}.bar.selected{background:#55744c}.week-col small{font-size:10px;color:var(--muted)}.progress{height:7px;background:#edf0e8;border-radius:10px;overflow:hidden;margin:9px 0}.progress>span{display:block;background:#b3ce76;height:100%;border-radius:10px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:30px 0 15px}.linkbtn{background:none;color:var(--green);font-size:12px;font-weight:650;padding:8px 0}.mealpreviews{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.mealpreview{background:white;border:1px solid var(--line);padding:18px;border-radius:17px;text-align:left;color:var(--ink);display:flex;flex-direction:column;gap:9px;min-height:165px;transition:transform .15s,border-color .15s}.mealpreview:hover{transform:translateY(-2px);border-color:#a4b494}.mealpreview .tile{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#f0f2e8;color:#667a51}.mealpreview h3{font-size:13px;line-height:1.5;flex:1}.mealpreview .value{font-size:14px;font-weight:650}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:7px;padding:4px 8px;background:#f0f2ec;color:var(--muted);font-size:10px;line-height:1.5;font-weight:550}.badge.good{background:#e6f1dc;color:#3e6535}.badge.amber{background:#faf0da;color:var(--amber)}.badge.red{background:#fae8e6;color:var(--red)}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px}.insight{display:flex;gap:13px;align-items:flex-start}.insight .icon{color:#829264;margin-top:3px}.insight p{font-size:12px;color:var(--muted);margin-top:5px}.footnote{font-size:11px;color:var(--muted);line-height:1.7;margin-top:20px}.footer{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding-top:26px;margin-top:28px;border-top:1px solid var(--line);gap:10px}.button{background:var(--green);color:white;font-weight:600;border-radius:11px;padding:11px 17px;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px}.button.secondary{background:white;border:1px solid #d5ddcf;color:var(--green)}.button.soft{background:#edf1e5;color:var(--green)}.button.danger{background:#fae8e6;color:var(--red)}.summarybar{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-radius:17px;background:white;margin-bottom:20px}.summarybar>div{padding:16px 18px;border-right:1px solid var(--line)}.summarybar>div:last-child{border:0}.summarybar strong{display:block;font-size:22px;letter-spacing:-.7px;font-weight:600;margin-bottom:3px}.summarybar span{font-size:11px;color:var(--muted)}.meal{border:1px solid var(--line);border-radius:17px;background:white;overflow:hidden}.meal+.meal{margin-top:13px}.meal summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px;cursor:pointer}.meal summary::-webkit-details-marker{display:none}.meal summary .icon{color:#728668}.meal summary h3{font-size:15px;line-height:1.45}.meal summary .eyebrow{font-size:10px;color:var(--muted);margin-bottom:5px}.meal summary .macro{font-size:13px;font-weight:650;text-align:right;white-space:nowrap}.meal summary .macro small{font-weight:400;font-size:11px}.meal[open] summary{border-bottom:1px solid var(--line)}.mealbody{padding:20px}.mealtools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;flex-wrap:wrap}.mealtools select{font-size:12px;max-width:380px}.check{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer}.ingredient{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #eff1ec;padding:12px 0}.ingredient:first-child{border-top:0}.ingredient .name{font-size:13px;font-weight:550}.ingredient .basis{font-size:10px;color:var(--muted);line-height:1.6;margin-top:3px}.ingredient .amount{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;color:var(--muted)}.ingredient input{width:85px;padding:8px;text-align:right}.ingredient .kcal{font-size:11px;color:var(--muted);min-width:64px;text-align:right}.note{border-radius:11px;background:#f5f6f0;padding:12px 14px;font-size:11px;color:#64715e;line-height:1.7;margin-top:12px}.mealbottom{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:15px;margin-top:14px;flex-wrap:wrap}.label{display:grid;gap:6px;font-size:12px;font-weight:550}.label small{font-size:10px;font-weight:400;color:var(--muted)}.mealbottom .label{flex:1;min-width:200px}.mealbottom input{font-size:12px;width:100%}.macroline{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:15px 0}.macroline b{color:var(--ink);font-weight:600}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}.toolbar .label{display:flex;align-items:center;font-size:12px;color:var(--muted)}.toolbar select{font-size:12px}.alert{background:#faf4e9;color:#805d2e;border:1px solid #efe1c6;padding:13px 16px;font-size:12px;line-height:1.7;border-radius:13px;margin-top:15px}.error{background:#fae8e6;color:var(--red);padding:12px;border-radius:10px;font-size:12px}.routine-tabs{display:flex;gap:8px;overflow-x:auto;margin-bottom:20px;padding-bottom:3px}.routine-tabs button{border:1px solid var(--line);border-radius:12px;background:white;padding:12px 18px;color:var(--muted);white-space:nowrap;font-size:13px}.routine-tabs button.active{background:var(--green);color:white;border-color:var(--green)}.workout-layout{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start}.exercise{padding:20px;border:1px solid var(--line);border-radius:15px;background:white;margin-top:11px}.exercise-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:15px}.exercise-heading .number{font-size:12px;background:#f0f2e9;color:#758066;border-radius:9px;width:30px;height:30px;display:grid;place-items:center}.exercise h3{font-size:14px}.exercise .range{font-size:11px;color:var(--muted);margin-top:4px}.sets{display:grid;gap:7px}.set{display:grid;grid-template-columns:40px 1fr 1fr 50px;gap:10px;align-items:center;font-size:12px;color:var(--muted)}.set.header{font-size:10px;margin-bottom:3px}.set input[type=number]{width:100%;padding:8px 10px;background:#f9faf7}.set .check{justify-content:center}.set .setnum{font-size:11px;padding-left:10px}.sticky{position:sticky;top:20px}.guide-list{padding-left:18px;color:var(--muted);font-size:12px;line-height:1.8;margin:15px 0 0}.history-item{border-top:1px solid var(--line);padding:13px 0;display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px}.chart{width:100%;height:auto;display:block;margin:18px 0 5px;overflow:visible}.chart text{fill:#81907d;font:10px Segoe UI,sans-serif}.chart path{stroke:#617d49;stroke-width:2;fill:none}.chart circle{fill:var(--green);stroke:white;stroke-width:2}.chart line{stroke:#e7ebe2;stroke-dasharray:4 4}.metric-value{font-size:35px;font-weight:600;letter-spacing:-1px}.metric-value small{font-size:13px;color:var(--muted);letter-spacing:0}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{font-size:10px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.5px;padding:12px 10px;border-bottom:1px solid var(--line)}td{padding:14px 10px;border-bottom:1px solid var(--line);line-height:1.7;vertical-align:top}tr:last-child td{border-bottom:0}.empty{padding:25px 8px;text-align:center;color:var(--muted);font-size:13px}.catalog details{border-bottom:1px solid var(--line);padding:13px 0}.catalog summary{cursor:pointer;font-size:13px;line-height:1.8}.catalog .grid-fields{margin:12px 0}.grid-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.grid-fields input{width:100%}.grid-fields .full{grid-column:1/-1}.subheading{margin:22px 0 12px;font-size:14px}.backupfile{display:block;margin-top:16px;border:1px dashed #bac8af;border-radius:12px;padding:18px;background:#f8faf5;font-size:12px}.backupfile input{border:0;padding:12px 0;width:100%;font-size:12px;background:none}.weeklymenu td:first-child{font-weight:650;white-space:nowrap}.weeklymenu .mealname{display:block;font-size:11px;color:var(--muted)}.weeklymenu td{min-width:150px}.weeklymenu td:first-child{min-width:65px}dialog{border:1px solid var(--line);border-radius:22px;padding:0;width:min(640px,calc(100vw - 28px));max-height:88dvh;box-shadow:0 24px 100px #193e3529;color:var(--ink);background:var(--white)}dialog.wide{width:min(1000px,calc(100vw - 28px))}dialog::backdrop{background:#152b265c;backdrop-filter:blur(3px)}.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.dialogbody{padding:22px}.dialogactions{display:flex;gap:10px;justify-content:end;flex-wrap:wrap;margin-top:23px}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--green);color:white;padding:12px 20px;border-radius:12px;font-size:12px;box-shadow:0 10px 40px #193e3530;z-index:10;opacity:0;transition:opacity .15s;pointer-events:none;max-width:90vw}#toast.show{opacity:1}.save-status{color:#5a7646}.storage-error{max-width:1172px;margin:15px auto;background:#fae8e6;color:var(--red);padding:14px;border-radius:12px;font-size:12px}.hero-stat-line{font-size:12px;color:#c0d0c4;margin-top:5px}.weeklynumber{font-size:27px;font-weight:600;letter-spacing:-.8px}.overview-title{margin-bottom:7px}.pillrow{display:flex;gap:6px;flex-wrap:wrap}.spark-empty{height:145px;display:grid;place-items:center;color:var(--muted);font-size:13px}.dayselect{border:none;background:none;padding:0;color:var(--green);text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit}.selected-meal{border-color:#b0c294}.import-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;text-align:center;margin:17px 0}.import-summary>div{padding:15px;border-radius:12px;background:var(--paper)}.import-summary b{display:block;font-size:22px}.import-summary span{font-size:11px;color:var(--muted)}
@media(min-width:1500px){.layout{padding-top:43px}.topbar{padding-left:calc((100vw - 1172px)/2);padding-right:calc((100vw - 1172px)/2)}}
@media(max-width:1000px){.topbar{padding:0 24px;gap:20px}.nav button{padding:10px;font-size:12px}.nav button .icon{width:17px}.grid-main{grid-template-columns:1.4fr 1fr}.hero{padding:24px}.hero-inner{gap:18px}.ring{width:125px;height:125px}.ring-inner{width:108px;height:108px}.ring strong{font-size:27px}.workout-layout{grid-template-columns:1fr 260px}.mealpreviews{gap:9px}.mealpreview{padding:15px}}
@media(max-width:760px){.topbar{height:68px;padding:0 18px}.brandname{font-size:24px}.brandmark{width:32px;height:32px}.nav{position:fixed;bottom:0;left:0;right:0;z-index:5;background:#fffefb;border-top:1px solid var(--line);padding:8px 10px calc(8px + env(safe-area-inset-bottom));justify-content:space-around;gap:0}.nav button{flex-direction:column;gap:5px;font-size:10px;padding:7px 4px;min-width:65px;border-radius:10px}.nav button .icon{width:19px;height:19px}.top-actions .iconbtn{height:35px;width:35px}.demo-bar{font-size:10px;padding:8px 12px}.layout{padding:25px 18px 100px}.pageheading{align-items:start;flex-direction:column;gap:18px;margin-bottom:17px}h1{font-size:29px;letter-spacing:-1px}.pageheading p{font-size:12px;margin-top:8px}.pageheading .eyebrow{font-size:10px}.datecontrol{width:100%;justify-content:space-between}.datecontrol input{flex:1;width:auto;text-align:center}.datecontrol .todaybtn{width:auto}.weekstrip{gap:5px;margin-bottom:18px}.weekstrip button{flex-direction:column;padding:9px 3px;gap:3px;font-size:10px;border-radius:10px}.weekstrip button b{font-size:15px}.grid-main{grid-template-columns:1fr;gap:14px}.hero{padding:23px;border-radius:20px;min-height:auto}.hero-inner{gap:24px;margin-top:19px}.ring{width:140px;height:140px}.ring-inner{width:122px;height:122px}.hero-number{font-size:23px}.hero .hero-stat-line{font-size:11px}.card{padding:19px;border-radius:17px}.card-head{margin-bottom:14px}.week-chart{height:60px;margin-top:16px}.mealpreviews{grid-template-columns:1fr 1fr;gap:10px}.mealpreview{min-height:150px;padding:15px}.two-cols{grid-template-columns:1fr;gap:12px}.section-title{margin-top:24px}.section-title h2{font-size:18px}.summarybar{grid-template-columns:repeat(3,1fr);margin-bottom:16px}.summarybar>div{padding:13px 12px}.summarybar>div:nth-child(3){border-right:0}.summarybar>div:nth-child(n+4){border-top:1px solid var(--line)}.summarybar strong{font-size:20px}.summarybar span{font-size:10px}.meal summary{padding:17px 14px;gap:10px}.meal summary h3{font-size:13px}.meal summary>.row>.icon{display:none}.meal summary .macro{font-size:12px}.mealbody{padding:14px}.mealtools{align-items:stretch}.mealtools select{max-width:100%;width:100%}.mealtools .check{padding:5px 0}.ingredient .name{font-size:12px}.ingredient .basis{font-size:9px}.ingredient .kcal{display:none}.ingredient input{width:70px}.ingredient{gap:8px}.macroline{gap:10px;font-size:10px}.toolbar{gap:8px}.toolbar .button{flex:1;font-size:11px;padding:10px}.toolbar .label{width:100%;justify-content:space-between}.toolbar .label select{flex:1;max-width:230px}.workout-layout{grid-template-columns:1fr;gap:16px}.workout-layout aside{position:static;order:2}.routine-tabs{gap:6px}.routine-tabs button{padding:11px 13px;font-size:12px}.exercise{padding:16px 14px}.exercise h3{font-size:13px}.exercise-heading{gap:8px}.set{gap:8px;grid-template-columns:28px 1fr 1fr 38px}.footer{flex-direction:column;font-size:10px;gap:5px}.footnote{font-size:10px}.dialoghead{padding:17px}.dialoghead h2{font-size:18px}.dialogbody{padding:17px}.grid-fields{gap:13px}.grid-fields .label{font-size:11px}.dialogactions .button{flex:1}.weeklymenu td{font-size:11px;min-width:135px}.weeklymenu td:first-child{min-width:55px}.weeklymenu th{font-size:9px}#toast{bottom:90px;width:max-content;text-align:center}.label input{max-width:100%}.import-summary{gap:7px}.import-summary>div{padding:12px 6px}.import-summary b{font-size:20px}.metric-value{font-size:31px}.table-wrap table{font-size:11px}.table-wrap th,.table-wrap td{padding:12px 7px}}
input:invalid{border-color:#ac4245}.hero .row strong{white-space:nowrap}
@media(max-width:380px){.hero{padding:19px}.hero-inner{gap:17px}.ring{width:116px;height:116px}.ring-inner{width:100px;height:100px}.ring strong{font-size:25px}.hero-number{font-size:21px}.hero .hero-stat-line{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.topbar,.demo-bar,.nav,.footer,.toolbar,.datecontrol,.weekstrip{display:none}body{background:white}.layout{padding:0}.card,.meal,.exercise{break-inside:avoid;box-shadow:none}dialog[open]{position:static;width:100%;max-height:none;border:0}dialog[open]~*{display:none}}
