:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f4f2ea;background:#10110f;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}input,select,textarea{outline:0}a{color:inherit}::selection{background:#e75e3c;color:white}
.shell{min-height:100vh;display:grid;grid-template-columns:230px minmax(0,1fr)}.rail{background:#141512;border-right:1px solid #292b26;display:flex;flex-direction:column;padding:30px 18px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:5px 12px 42px;text-decoration:none;font-size:23px;font-weight:750;letter-spacing:-1.3px}.brand svg{width:31px;height:31px;flex:none}.brand small{font-size:9px;letter-spacing:.13em;text-transform:uppercase;color:#a29f96;margin-left:auto;padding-top:7px}.nav{display:grid;gap:7px}.nav button{display:flex;align-items:center;gap:13px;width:100%;padding:13px 16px;border:0;border-radius:11px;background:transparent;color:#999b93;text-align:left;font-weight:600}.nav button:hover,.nav button.active{background:#292b25;color:#f4f2ea}.nav button.active svg{color:#ed7953}.nav svg,.mobile-nav svg{width:20px;height:20px}.rail-foot{margin-top:auto;padding:14px 12px;border-top:1px solid #30312b;color:#85877f;font-size:12px;line-height:1.55}.rail-foot a{text-decoration:none;color:#c5c5b9}
.main{width:min(1160px,100%);margin:0 auto;padding:35px clamp(22px,4.2vw,68px) 90px}.topline{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:40px}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:11px;font-weight:700;color:#e68b69}.topline .eyebrow{color:#91958d}.top-actions{display:flex;gap:10px;align-items:center}.icon-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #363831;color:#e2e1d9;border-radius:10px;background:#1a1c18;width:40px;height:40px}.icon-btn svg{width:19px;height:19px}.date-control{display:flex;align-items:center;gap:11px;color:#c9cbc2;font-size:13px}.date-control input{color-scheme:dark;background:transparent;border:0;color:#d9d9d0;max-width:130px}.intro{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:32px}.intro h1{font-size:clamp(34px,4.5vw,57px);letter-spacing:-.065em;line-height:1.04;margin:9px 0 8px;font-weight:730}.intro p{margin:0;color:#a5a69e;font-size:15px;line-height:1.5}.btn{border:0;background:#ed7953;color:#19150f;padding:12px 18px;border-radius:10px;font-weight:740;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap}.btn:hover{background:#ff936e}.btn svg{width:18px;height:18px}.btn.secondary{background:#272923;color:#eeeae0;border:1px solid #393c35}.btn.secondary:hover{background:#32352d}.btn.ghost{background:transparent;color:#deddd5;border:1px solid #383a34}.btn.small{padding:8px 11px;font-size:12px;border-radius:8px}.grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.9fr);gap:17px}.stack{display:grid;gap:17px;align-content:start}.panel{border:1px solid #30322d;border-radius:17px;background:#1a1c18;padding:23px}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.panel-header h2{font-size:17px;letter-spacing:-.025em;margin:0}.panel-header span,.subtle{color:#898d84;font-size:12px}.hero{background:radial-gradient(circle at 86% -14%,#613827 0%,transparent 40%),#20211d;min-height:267px;display:flex;flex-direction:column;justify-content:space-between}.hero .eyebrow{color:#b3b1a8}.hero .big{font-size:clamp(68px,8vw,111px);font-weight:750;line-height:1;letter-spacing:-.085em;font-variant-numeric:tabular-nums;margin:9px 0 0}.hero .big small{font-size:18px;letter-spacing:-.02em;font-weight:500;color:#b5b4ab;margin-left:12px}.hero-bottom{display:flex;align-items:center;gap:15px}.bar{height:8px;overflow:hidden;background:#3a3b35;border-radius:20px;flex:1}.bar>i{height:100%;display:block;border-radius:inherit;background:#ed7953}.hero-bottom span{white-space:nowrap;color:#b7b9ad;font-size:12px}.hero .no-goal{margin-top:12px;color:#b4b3aa;font-size:14px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#32342f;border-radius:14px;overflow:hidden;border:1px solid #32342f}.stat{padding:20px 16px;background:#1c1e1a}.stat span{color:#969a90;font-size:12px}.stat strong{display:block;font-size:24px;letter-spacing:-.05em;margin-top:8px;font-variant-numeric:tabular-nums}.stat small{font-size:11px;font-weight:400;color:#9a9d93}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:30px 0 13px}.section-head h2{font-size:19px;letter-spacing:-.035em;margin:0}.text-btn{border:0;background:none;color:#ed906c;padding:6px 0;font-weight:650;font-size:13px}.text-btn:hover{text-decoration:underline}.meal-row,.workout-row,.food-result{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #30332d;padding:15px 0}.meal-row:first-child,.workout-row:first-child,.food-result:first-child{border-top:0}.row-main{min-width:0}.row-main strong{display:block;font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-main small{display:block;margin-top:5px;color:#969a90;font-size:12px}.row-end{display:flex;align-items:center;gap:11px;white-space:nowrap}.row-end strong{font-size:14px}.tiny-icon{background:transparent;border:0;color:#a2a59c;padding:5px;display:inline-flex}.tiny-icon:hover{color:#f4f2ea}.tiny-icon svg{height:17px;width:17px}.group-label{font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:#94988d;padding:13px 0 4px}.empty{color:#a3a59b;padding:27px 15px;text-align:center;border:1px dashed #42453c;border-radius:12px;font-size:13px;line-height:1.7}.next-card{display:flex;align-items:flex-start;gap:15px}.next-icon{width:44px;height:44px;background:#34352d;border-radius:11px;display:grid;place-items:center;color:#ed7953;flex:none}.next-icon svg{width:20px;height:20px}.next-card strong{font-size:17px}.next-card p{color:#979b91;font-size:13px;margin:6px 0 14px}.note{padding:15px 17px;background:#242620;border:1px solid #363831;border-radius:12px;color:#afb2a8;font-size:12px;line-height:1.6}.note strong{color:#f2eee5}.accent{color:#ed7953}.status{font-size:11px;border:1px solid #55564d;border-radius:6px;padding:3px 7px;color:#b9bcb1}.status.done{color:#a0c9a5;border-color:#526953}
.calendar-panel{padding:22px}.calendar-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.calendar-controls h2{font-size:19px;letter-spacing:-.03em;margin:0}.calendar-controls .step{display:flex;gap:6px}.calendar-controls .step button{width:33px;height:33px;border:1px solid #3a3c35;background:#252722;color:#eee;border-radius:8px;font-size:19px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekday{text-align:center;color:#8d9087;text-transform:uppercase;font-size:10px;letter-spacing:.08em;padding:7px 0 12px}.day{min-height:96px;border:1px solid #30332c;border-radius:9px;background:#20221e;color:#d9d9d0;padding:9px;text-align:left;display:flex;flex-direction:column;gap:6px;overflow:hidden}.day:hover{border-color:#b95f45}.day.muted{opacity:.35}.day.today{border-color:#e77d59}.day.selected{background:#39332b}.day-num{font-size:12px;font-weight:700}.day .pip{font-size:10px;padding:4px 5px;background:#373932;border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.day .pip.done{background:#314337;color:#c1ddc7}.day .more{font-size:10px;color:#a4a69e}.schedule{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.85fr);gap:17px}.week-strip{display:flex;gap:6px;overflow-x:auto;margin:0 0 15px}.week-strip button{flex:1;min-width:78px;background:#252721;border:1px solid #3a3c34;border-radius:10px;color:#aaaeb0;padding:9px 5px}.week-strip button.active{border-color:#e97853;color:#f4f2ea}.week-strip small{display:block;font-size:10px;margin-bottom:4px}.workout-info p{color:#a9ac9f;font-size:13px;line-height:1.6}.workout-info .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.workout-info .notes{white-space:pre-wrap}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.settings-grid .wide{grid-column:1/-1}.setting-line{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-top:1px solid #34362f}.setting-line:first-of-type{border-top:0}.setting-line strong{font-size:14px}.setting-line small{display:block;color:#93968c;margin-top:5px;line-height:1.5}.setting-line input,.setting-line select{width:120px}.field{display:grid;gap:7px;margin-bottom:15px}.field label{font-size:12px;color:#b6baaf;font-weight:620}.field input,.field select,.field textarea,.search-input{width:100%;background:#242620;border:1px solid #41443b;border-radius:9px;color:#f4f2ea;padding:12px 13px;min-height:45px}.field input:focus,.field select:focus,.field textarea:focus,.search-input:focus{border-color:#ee8b68}.field textarea{resize:vertical;min-height:86px}.field input[type=date],.field input[type=time]{color-scheme:dark}.field-row{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.field-row.three{grid-template-columns:repeat(3,1fr)}.help{font-size:12px;color:#959a8f;line-height:1.55}.danger{color:#f4a08d!important;border-color:#735145!important}
.account-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.account-choices{display:grid;gap:8px;margin-top:20px}.account-choices .btn{justify-content:flex-start}.account-choices small{color:#a5a79d;line-height:1.5;margin-bottom:14px}.account-choices small:last-child{margin-bottom:0}
.overlay{position:fixed;inset:0;background:#000a;z-index:20;display:flex;align-items:center;justify-content:center;padding:14px}.dialog{background:#1c1e1a;border:1px solid #44463e;border-radius:18px;width:min(520px,100%);max-height:min(91vh,790px);overflow-y:auto;padding:23px;box-shadow:0 30px 100px #0009}.dialog.wide{width:min(650px,100%)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.dialog-head h2{margin:0;font-size:22px;letter-spacing:-.04em}.dialog .tabs{display:flex;gap:7px;margin-bottom:16px}.dialog .tabs button{flex:1;border:1px solid #3c3f36;border-radius:8px;padding:10px;color:#babeb2;background:#242721;font-size:12px}.dialog .tabs button.active{color:#151510;background:#f0eee4;border-color:#f0eee4;font-weight:700}.dialog .footer{display:flex;gap:9px;justify-content:flex-end;margin-top:18px}.result-list{max-height:230px;overflow-y:auto}.food-result{width:100%;background:transparent;color:#eee9df;border-left:0;border-right:0;border-bottom:0;text-align:left;cursor:pointer}.food-result:hover{background:#272a24}.food-result small{font-size:11px}.food-result.selected{background:#353127}.selected-food{padding:12px;background:#282a24;border:1px solid #3e4138;border-radius:9px;margin:12px 0;font-size:13px}.selected-food small{color:#a2a69c;display:block;margin-top:5px}.divider{height:1px;background:#373a32;margin:17px 0}.mobile-nav{display:none}.mobile-brand{display:none}#toast{position:fixed;bottom:20px;right:20px;z-index:40;background:#f1eee3;color:#1b1c17;padding:11px 16px;border-radius:9px;box-shadow:0 10px 40px #0007;opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity .2s,transform .2s;font-size:13px}#toast.visible{opacity:1;transform:none}
@media(max-width:970px){.shell{grid-template-columns:75px minmax(0,1fr)}.rail{padding:23px 10px}.brand{padding:4px 12px 38px}.brand span,.brand small,.nav button span,.rail-foot{display:none}.nav button{justify-content:center;padding:14px 10px}.main{padding:28px 23px 86px}}@media(max-width:700px){.shell{display:block}.rail{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:19px;letter-spacing:-.055em;font-weight:750}.mobile-brand svg{width:24px;height:24px}.main{padding:22px 16px 96px}.topline{margin-bottom:27px}.topline .eyebrow{display:none}.date-control{gap:2px}.date-control input{max-width:115px;font-size:12px}.intro{align-items:start;margin-bottom:23px}.intro h1{font-size:37px}.intro p{font-size:13px}.intro>.btn{display:none}.grid,.schedule,.settings-grid{grid-template-columns:1fr}.settings-grid .wide{grid-column:1}.panel{padding:18px}.hero{min-height:226px}.hero .big{font-size:78px}.section-head{margin-top:25px}.calendar-panel{padding:13px}.calendar{gap:3px}.day{min-height:67px;padding:6px 3px}.day .pip{font-size:8px;padding:2px 3px}.weekday{font-size:9px}.mobile-nav{position:fixed;z-index:10;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:#191b17;border-top:1px solid #393b33;padding:9px 8px calc(9px + env(safe-area-inset-bottom))}.mobile-nav button{display:grid;place-items:center;gap:4px;background:transparent;border:0;color:#999d91;min-width:65px;font-size:10px}.mobile-nav button.active{color:#ed7953}.mobile-nav .add-button{background:#ed7953;color:#14130f;width:43px;height:43px;min-width:43px;border-radius:13px;margin-top:-19px;box-shadow:0 5px 25px #ed795345}.mobile-nav .add-button svg{width:23px;height:23px}.overlay{align-items:flex-end;padding:0}.dialog{max-height:94vh;width:100%;border-radius:19px 19px 0 0;padding:19px 18px calc(19px + env(safe-area-inset-bottom))}.field-row.three{gap:7px}.field-row.three .field input{padding:10px 6px}#toast{bottom:76px;left:16px;right:16px;text-align:center}}@media(max-width:390px){.stats .stat{padding:15px 9px}.stat strong{font-size:20px}.hero .big{font-size:64px}.intro h1{font-size:33px}}[dir=rtl] .rail{border-right:0;border-left:1px solid #292b26}[dir=rtl] .nav button,[dir=rtl] .day,[dir=rtl] .food-result{text-align:right}[dir=rtl] .brand small{margin-left:0;margin-right:auto}[dir=rtl] .row-main strong{direction:rtl}[dir=rtl] .hero .big small{margin-left:0;margin-right:12px}

.barcode-box{border:1px solid #3a3d35;border-radius:13px;padding:13px;margin:12px 0 16px;background:#171a16}.barcode-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:4px 0 9px}.barcode-actions input{min-width:140px;flex:1}.barcode-actions .help{margin:0}#barcode-camera{margin-top:10px}#barcode-camera[hidden]{display:none}#barcode-video{width:100%;max-width:440px;margin:0 auto 10px;min-height:180px;overflow:hidden;border-radius:12px;background:#080908}#barcode-video video{max-width:100%;height:auto}#barcode-camera .btn{width:100%}@media(max-width:480px){.barcode-actions .btn{min-height:44px}.barcode-actions input{width:100%}}

