:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#ecf4ef;background:#091310}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 10% 0%,#183329,#091310 48%);min-height:100vh}.app{max-width:560px;margin:auto;padding:24px 18px 90px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}header small{color:#88a99b;font-size:12px}h1{font-size:29px;letter-spacing:-1.2px;margin:5px 0}h1 span{color:#9be7b7}.avatar{width:45px;height:45px;border:1px solid #456856;border-radius:15px;display:grid;place-items:center;color:#a7f0bc;font-size:24px}.tabs{display:flex;background:#17241e;padding:5px;border-radius:15px;gap:4px;margin-bottom:22px}.tabs button{flex:1;border:0;background:transparent;color:#9ab1a5;padding:11px 5px;border-radius:11px;font-weight:600}.tabs button.active{background:#2b4436;color:#eafff0}.datebar{display:flex;align-items:center;justify-content:space-between;margin:4px 0 17px}.datebar button{background:#1c3025;color:#c8e9d2;border:1px solid #365442;width:34px;height:34px;border-radius:11px;font-size:25px}.hero{background:linear-gradient(130deg,#204332,#163024);border:1px solid #3b654b;border-radius:23px;padding:23px;box-shadow:0 18px 40px #0003}.herohead{display:flex;justify-content:space-between;color:#b4d3bd;font-size:13px}.big{display:flex;align-items:baseline;gap:10px;margin:12px 0 20px;direction:ltr;justify-content:flex-end}.big b{font-size:55px;letter-spacing:-3px}.big span{font-size:15px;color:#b2cdb9}.track{height:8px;background:#3c5948;border-radius:99px;overflow:hidden}.track>div{height:100%;width:0;background:#a3f1b6;border-radius:99px;transition:width .3s}.macros{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:18px;margin-top:24px}.macros>div{display:flex;flex-direction:column;gap:9px}.macros small{color:#b4c9bb}.macros b{font-size:21px}.macros .track{height:5px}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin:26px 0 12px}.sectionhead h2,h2{font-size:19px;margin:0 0 13px}.sectionhead h2{margin:0}.sectionhead span,.muted{color:#91a99a;font-size:13px}.meal{background:#14221b;border:1px solid #293e30;padding:15px;border-radius:15px;margin:9px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}.meal strong{display:block;font-size:14px;margin-bottom:7px}.meal small{color:#a0b9a8}.meal button{border:0;background:#293c30;color:#dfaa9d;border-radius:9px;padding:8px}.entry,.panel,.manual,.review{margin-top:24px;background:#17271e;border:1px solid #35513d;border-radius:19px;padding:19px}.entry p{color:#a9c0ae;font-size:13px;line-height:1.7;margin-top:0}textarea,input{width:100%;background:#0e1b14;border:1px solid #3a5543;border-radius:12px;color:white;padding:13px;font:inherit;outline:none}textarea{min-height:105px;resize:vertical}input{margin:8px 0 14px}.actions{display:flex;gap:9px;margin-top:12px}button{cursor:pointer;font:inherit}button:disabled{opacity:.45;cursor:default}.primary,.mic{border:0;border-radius:12px;padding:13px 14px;font-weight:700}.primary{background:#a7eeb7;color:#10271a;flex:1}.mic{background:#2c4536;color:#e6f4e9}.mic.recording{background:#9e403a}#status{display:block;margin-top:10px;color:#b5c6b9;line-height:1.5}.review .candidate{padding:12px 0;border-bottom:1px solid #3a5141}.review .candidate strong{display:block}.review .candidate small{color:#a5c4ad}.review .candidate button{margin-top:10px}.review p{color:#c9d5c9;font-size:13px}.manual summary{cursor:pointer;color:#bed9c5}.manual .fields{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.manual button,.panel button{width:100%}.page.hidden,.hidden{display:none!important}.chart{display:flex;align-items:end;gap:8px;height:210px;background:#14241b;border-radius:17px;padding:20px 12px 26px;margin:15px 0}.barcol{flex:1;display:flex;align-items:center;justify-content:end;flex-direction:column;height:100%;gap:5px;min-width:0}.barcol .bar{width:100%;max-width:37px;min-height:2px;border-radius:6px 6px 2px 2px;background:#8cdaa5}.barcol small{font-size:10px;color:#a4bca9}.barcol b{font-size:10px}.historyday{display:flex;justify-content:space-between;padding:15px;border-bottom:1px solid #263a2d;font-size:13px}.panel label{display:block;color:#bed0c1;font-size:13px;margin-bottom:12px}footer{text-align:center;font-size:11px;color:#6d8d78;margin-top:40px}@media(min-width:600px){.app{padding-top:40px}}

.photo-controls{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}.photo-button{display:inline-block;background:#294d3a;border:1px solid #58836b;border-radius:12px;padding:12px 15px;font-weight:700;cursor:pointer}.photo-remove{background:transparent;border:0;color:#efb9ac}.photo-preview{display:block;width:100%;max-height:300px;object-fit:contain;border-radius:14px;margin-top:12px;background:#0e1b14}.photo-preview.hidden{display:none}

.tabs{overflow-x:auto}.tabs button{flex:1 0 auto;font-size:12px}.recipe{background:#17271e;border:1px solid #35513d;border-radius:17px;padding:17px;margin:14px 0}.recipe-top{display:flex;justify-content:space-between;gap:10px;align-items:start}.recipe-top h3{margin:0;font-size:17px}.recipe-top span{color:#a8d4b7;font-size:12px;white-space:nowrap}.recipe-macros{margin:12px 0;color:#b7d5be;font-size:13px;line-height:1.6}.recipe details{border-top:1px solid #36503e;padding:12px 0;margin-top:10px}.recipe summary{cursor:pointer}.recipe li{margin:8px 0;line-height:1.6;font-size:13px}.recipe .primary{width:100%}#recipeStatus{color:#a7eeb7}

:focus-visible{outline:3px solid #c3ffd6;outline-offset:3px}button{min-height:44px}.secondary{background:#294333;color:#e6f4e9;border:1px solid #5b8065;border-radius:12px;padding:10px 16px;margin:8px 0}.consent{display:flex;gap:10px;align-items:start;font-size:13px;line-height:1.7;color:#d4e3d8}.consent input{width:22px;height:22px;flex-shrink:0;margin:4px 0}.photo-button{color:#e6f4e9}#globalStatus,#networkStatus,#loginStatus{line-height:1.6;color:#f2d2a7;overflow-wrap:anywhere}#globalStatus:empty,#networkStatus:empty{display:none}.candidate label,.manual label{display:block;font-size:13px;color:#c4dacc}.candidate-status{display:block;color:#aff2bf;padding:10px 0}.app{padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(35px,env(safe-area-inset-bottom))}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.weight-trend-panel{margin:24px 0;padding:18px 12px 12px;background:#14241b;border:1px solid #35513d;border-radius:19px}.weight-trend-panel h2{padding:0 6px}.weight-trend-summary{color:#d5e8da;font-size:14px;line-height:1.8;margin:0 6px 12px;min-height:0}.weight-trend-summary:empty{display:none}.weight-chart{display:block;width:100%;height:auto;overflow:visible;direction:ltr}.weight-grid{stroke:#385342;stroke-width:1;stroke-dasharray:3 4}.weight-axis{fill:#bcd4c4;font-size:14px;font-family:inherit;direction:ltr;unicode-bidi:isolate}.weight-line{fill:none;stroke:#a7eeb7;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.weight-point{fill:#d3ffdf;stroke:#14241b;stroke-width:2}.weight-chart-note{font-size:12px;line-height:1.7;color:#acc5b4;margin:0 6px}.weight-records{padding:0;margin:0;list-style:none}.weight-records li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 4px;border-bottom:1px solid #263a2d;font-size:14px}.weight-records strong{white-space:nowrap}.weight-records time{line-height:1.6}
