@font-face{font-family:system;src:local('Segoe UI')}*{box-sizing:border-box} :root{--green:#245c45;--light:#e9f0dc;--ink:#22372d;--muted:#758078;--line:#e2e7dd;--bg:#f7f8f4}body{margin:0;background:var(--bg);color:var(--ink);font-family:system,'Segoe UI',sans-serif;font-size:15px;line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button{border:0;background:var(--green);color:white;padding:12px 20px;border-radius:10px;font-weight:600;transition:background .18s,transform .18s}button:hover{background:#194632;transform:translateY(-1px)}button:disabled{opacity:.55;cursor:wait;transform:none}.secondary{background:white;border:1px solid var(--line);color:var(--ink)}.secondary:hover{background:var(--light)}.quiet{padding:7px 10px;background:transparent;color:var(--muted);font-weight:500}.quiet:hover{background:var(--light);color:var(--green)}.danger{color:#ab3434;background:#fff1ec}.danger:hover{background:#f7ded5}.small{padding:7px 12px;font-size:13px}input,select,textarea{width:100%;padding:12px 13px;border:1px solid #d8dfd3;background:#fff;border-radius:8px;color:var(--ink);min-height:46px}input:focus,select:focus,textarea:focus{outline:2px solid #a3bc87;outline-offset:2px}label{display:block;font-size:13px;font-weight:600;margin:13px 0 6px}h1,h2,h3,p{margin-top:0}h1{font-size:38px;letter-spacing:-1.4px;line-height:1.2;margin-bottom:12px}h2{font-size:22px;letter-spacing:-.6px}h3{font-size:17px}a{color:var(--green)}.muted,small{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--muted);text-transform:uppercase}.brand{display:flex;align-items:center;gap:10px;font-size:28px;font-weight:750;letter-spacing:-1.3px}.brand img{width:34px;height:34px}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:35px 24px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column}.sidebar .brand{margin-bottom:55px}.nav{display:flex;flex-direction:column;gap:8px}.nav button{text-align:left;background:transparent;color:#7b847d;font-weight:500;display:flex;align-items:center;gap:13px;padding:14px}.nav button.active{background:var(--light);color:var(--green);font-weight:650}.nav svg{width:20px;height:20px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:25px}.avatar{width:36px;height:36px;border-radius:50%;background:var(--light);display:grid;place-items:center;color:var(--green);font-weight:700}.person{display:flex;align-items:center;gap:10px}.person small{font-size:11px}.main{padding:32px 5vw;max-width:1500px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:40px}.topbar span{font-size:13px}.status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.dot{background:#77a370;width:6px;height:6px;border-radius:50%}.offline .dot{background:#d09933}.title-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:28px}.title-row p{margin:0}.date-control{display:flex;align-items:center;gap:8px}.date-control input{padding:6px 10px;min-height:38px;width:155px}.workspace{animation:enter .25s ease-out}.overview{display:grid;grid-template-columns:1fr 1.1fr;gap:50px;background:#edf2e5;border-radius:18px;padding:34px;margin-bottom:38px}.energy{display:flex;align-items:center;gap:30px}.ring{height:170px;width:170px;flex:none;position:relative;display:grid;place-items:center}.ring svg{height:100%;width:100%;transform:rotate(-90deg)}.ring circle{fill:none;stroke:#d9e3cc;stroke-width:8}.ring .progress{stroke:var(--green);stroke-linecap:round;transition:stroke-dasharray .6s}.ring-text{position:absolute;text-align:center}.ring-text strong{font-size:32px;letter-spacing:-1px;display:block;line-height:1.1}.ring-text span{font-size:11px;color:var(--muted)}.energy-caption b{font-size:22px;display:block}.energy-caption p{font-size:12px;margin:5px 0;color:var(--muted)}.macros{display:flex;flex-direction:column;justify-content:center;gap:21px}.macro-heading{display:flex;justify-content:space-between;font-size:13px;margin-bottom:7px}.macro-heading small{font-size:12px}.track{height:5px;background:#d9e3cc;border-radius:5px;overflow:hidden}.track>span{display:block;height:100%;background:#74946b;border-radius:5px;transition:width .5s}.section-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:15px}.section-head h2{margin:0}.section-head small{font-size:12px}.meal-group{padding:23px 0;border-bottom:1px solid var(--line)}.meal-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}.meal-heading h3{margin:0}.meal-heading>span{font-size:12px;color:var(--muted)}.meal-heading button{margin-left:auto}.meal-icon{color:var(--green);background:#edf1e7;border-radius:50%;width:34px;height:34px;display:grid;place-items:center}.meal-icon svg{width:18px;height:18px}.empty-meal{color:#959e94;font-size:13px;padding-left:46px}.meal{display:flex;align-items:center;gap:15px;padding:14px 0 14px 46px}.meal+.meal{border-top:1px dashed var(--line)}.meal-info{flex:1}.meal-info strong{display:block;font-size:15px}.meal-info small{display:block;font-size:12px}.meal-kcal{text-align:right;font-weight:650;white-space:nowrap}.meal-kcal small{display:block;font-size:11px;font-weight:400}.meal details{margin-top:7px;font-size:12px}.meal summary{color:var(--green);cursor:pointer}.food-detail{padding:5px 0}.inline-actions{display:flex}.notice{padding:15px 18px;background:#edf2e5;color:#426140;border-radius:9px;margin:15px 0;font-size:13px}.notice.warning{background:#fff2d8;color:#85621f}.empty{padding:38px 20px;text-align:center;color:var(--muted)}.empty h3{color:var(--ink);margin:10px 0}.empty svg{width:35px;height:35px;color:#79936e}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.four-col{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.form-section{padding:25px 0;border-bottom:1px solid var(--line);max-width:780px}.form-section h2{margin-bottom:4px}.form-section p{font-size:13px;color:var(--muted)}.form-footer{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.auth-layout{min-height:100svh;display:grid;grid-template-columns:1fr 1fr}.auth-side{background:#e8efdd;padding:7vw;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-side .brand{font-size:35px}.auth-side h1{font-size:clamp(40px,4.5vw,68px);max-width:500px;letter-spacing:-2.5px;position:relative;z-index:1}.auth-side p{max-width:330px;color:#5c735c}.auth-art{width:360px;height:360px;align-self:center;flex-shrink:0}.auth-art svg{width:100%;height:100%;filter:drop-shadow(0 20px 25px #9cae7b33)}.auth-content{display:flex;align-items:center;justify-content:center;padding:40px}.auth-box{width:100%;max-width:375px;animation:enter .4s}.auth-box h2{font-size:29px}.auth-box .full{width:100%;margin-top:24px}.auth-tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:28px}.auth-tabs button{border-radius:0;padding:12px 0;background:transparent;color:var(--muted);border-bottom:2px solid transparent}.auth-tabs .active{color:var(--green);border-color:var(--green)}.error{color:#a5362f;font-size:13px;min-height:22px;margin:12px 0}.auth-footer{font-size:11px;margin-top:30px;color:var(--muted)}dialog{border:0;border-radius:18px;background:var(--bg);color:var(--ink);padding:0;width:760px;max-width:calc(100vw - 24px);max-height:90svh;box-shadow:0 25px 100px #122f3333}dialog::backdrop{background:#172e255c;backdrop-filter:blur(3px)}.modal-inner{padding:28px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-head h2{margin:0}.modal-head button{font-size:22px;line-height:1}.tabs{display:flex;gap:5px;background:#e9ede3;padding:4px;border-radius:10px;margin-bottom:20px}.tabs button{flex:1;background:transparent;color:var(--muted);padding:10px 8px;font-size:13px}.tabs .active{background:white;color:var(--green);box-shadow:0 1px 4px #22372d0d}.search-row{display:flex;gap:8px}.search-row input{flex:1;min-width:0}.search-results{max-height:240px;overflow:auto;margin:12px 0}.result{width:100%;display:flex;justify-content:space-between;gap:15px;align-items:center;text-align:left;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);border-radius:0;padding:12px 5px;font-weight:500}.result:hover{background:var(--light)}.result small{display:block;font-size:11px;font-weight:400}.result>span:last-child{text-align:right;white-space:nowrap}.editor-food{padding:15px 0;border-bottom:1px solid var(--line)}.editor-food-head{display:flex;gap:10px;align-items:center;margin-bottom:10px}.editor-food-head input{flex:1;min-width:0}.nutrition-inputs{display:grid;grid-template-columns:1.2fr repeat(4,1fr);gap:8px}.nutrition-inputs label{font-size:10px;margin:0 0 4px}.nutrition-inputs input{padding:7px;min-height:38px;font-size:13px}.nutrition-inputs>div:first-child input{background:#eaf0e1;border-color:#c7d3b6}.editor-food small{font-size:10px}.sum-strip{display:flex;gap:16px;background:#e9efdf;padding:14px;border-radius:9px;font-size:12px;margin-top:18px;flex-wrap:wrap}.sum-strip strong{font-size:16px}.photo-drop{border:1px dashed #abbc9a;padding:22px;border-radius:12px;text-align:center;background:#eff3e9}.photo-drop input{border:0;background:transparent;font-size:12px}.photo-preview{width:100%;max-height:220px;object-fit:contain;margin:10px 0;border-radius:10px}.recipe-row{padding:22px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:15px}.recipe-row>div{flex:1}.recipe-row h3{margin-bottom:3px}.recipe-row p{margin:0;font-size:12px;color:var(--muted)}.chart{display:flex;align-items:flex-end;gap:10px;height:190px;margin:30px 0 15px}.chart-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px}.chart-bar{width:100%;max-width:52px;background:#b5c89d;border-radius:5px 5px 0 0;min-height:3px}.chart-col:last-child .chart-bar{background:var(--green)}.chart-col small{font-size:10px}.chart-col b{font-size:11px;font-weight:500}.history-row{display:flex;justify-content:space-between;align-items:center;width:100%;padding:18px 0;background:transparent;color:var(--ink);border-bottom:1px solid var(--line);border-radius:0}.history-row:hover{background:var(--light)}.history-row span{text-align:left}.history-row small{display:block;font-weight:400;font-size:12px}.loading{height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:36px;font-weight:700;color:var(--green)}.loading span{font-size:13px;color:var(--muted);font-weight:400}.code{font-family:monospace;font-size:20px;letter-spacing:1px;word-break:break-all;padding:18px;background:white;border:1px solid var(--line);border-radius:8px;user-select:all}.bottom-note{font-size:11px;color:var(--muted);margin-top:30px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#243e2f;color:white;padding:12px 22px;border-radius:10px;max-width:90vw;z-index:100;opacity:0;pointer-events:none;transition:all .2s;font-size:13px}#toast.show{opacity:1;transform:translate(-50%,0)}.check-line{display:flex;align-items:flex-start;gap:10px;font-size:12px}.check-line input{width:18px;min-height:18px;margin-top:3px}.check-line label{margin:0;font-weight:400}.mobile-brand{display:none}video{max-width:100%;border-radius:10px} @keyframes enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1500px){.main{padding:40px 70px}}@media(max-width:1100px){.shell{grid-template-columns:200px 1fr}.sidebar{padding:28px 16px}.main{padding:28px}.overview{gap:24px;padding:25px}.energy{gap:15px}.ring{width:135px;height:135px}.energy-caption b{font-size:18px}.ring-text strong{font-size:28px}.auth-art{width:290px;height:290px}}@media(max-width:800px){.shell{display:block}.sidebar{position:fixed;bottom:0;top:auto;width:100%;height:72px;z-index:10;padding:5px 10px;border-right:0;border-top:1px solid var(--line)}.sidebar>.brand,.sidebar-bottom{display:none}.nav{flex-direction:row;justify-content:space-around;gap:0;height:100%}.nav button{flex:1;flex-direction:column;gap:2px;align-items:center;justify-content:center;font-size:10px;padding:7px 2px}.nav svg{width:20px;height:20px}.main{padding:20px 20px 100px}.topbar{margin-bottom:30px}.mobile-brand{display:flex;font-size:24px}.mobile-brand img{width:27px}.topbar>.eyebrow{display:none}h1{font-size:30px}.title-row{align-items:flex-start}.title-row p{font-size:12px}.title-row>button{padding:10px 13px;font-size:12px}.overview{gap:20px;padding:24px;grid-template-columns:1fr}.energy{justify-content:center;gap:28px}.ring{width:150px;height:150px}.macros{gap:16px}.meal{padding-left:0;gap:10px}.empty-meal{padding-left:0}.inline-actions{flex-direction:column}.inline-actions button{padding:3px 6px;font-size:11px}.date-control{gap:0}.date-control input{font-size:12px;width:132px}.section-head h2{font-size:20px}.auth-layout{grid-template-columns:1fr}.auth-side{padding:25px;min-height:190px}.auth-side h1{font-size:33px;max-width:300px;margin:25px 0 5px;letter-spacing:-1px}.auth-side p{font-size:12px;margin-bottom:0;max-width:240px}.auth-side .brand{font-size:27px}.auth-art{position:absolute;right:-30px;bottom:-18px;width:180px;height:180px;opacity:.65}.auth-content{padding:30px 24px}.auth-box{max-width:440px}.auth-box h2{font-size:25px}.auth-tabs{margin-bottom:20px}.auth-footer{margin-top:20px}.modal-inner{padding:20px}.nutrition-inputs{gap:5px}.nutrition-inputs input{padding:6px 4px;font-size:12px}.four-col{grid-template-columns:1fr 1fr}.two-col{gap:12px}.recipe-row{flex-wrap:wrap}.recipe-row>div{flex-basis:70%}.chart{gap:6px}.bottom-note{font-size:10px}#toast{bottom:88px}.topbar .status{font-size:10px}.topbar>div:last-child{gap:7px!important}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
