@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--bg:#f8f7f3;--paper:#fff;--ink:#283b34;--green:#426b52;--green-soft:#eaf0e8;--orange:#ed9d62;--line:#e9e9e1;--muted:#7a8178;--blue:#91aab5;--gold:#d6af66;--radius:20px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select,label.button{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:inherit}button{color:inherit}svg{width:21px;height:21px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}button span[data-icon]{display:flex}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,label.button:focus-visible{outline:3px solid #ca9968;outline-offset:4px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#f0f1e9;border-right:1px solid #e5e7dd;padding:37px 23px 24px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-family:'Manrope',sans-serif;font-weight:800;font-size:18px;letter-spacing:-.7px}.brand-icon{background:var(--green);color:#fff;width:39px;height:43px;border-radius:13px 13px 18px 13px;display:grid;place-items:center}.brand-icon svg{width:25px;height:25px}.brand-light{font-weight:500}.brand small{display:block;font-family:'DM Sans',sans-serif;font-size:8px;font-weight:500;letter-spacing:2.1px;margin-top:6px;color:#858d80}.sidebar nav{margin-top:59px;display:grid;gap:9px}.nav-item{display:flex;align-items:center;gap:13px;border:0;background:none;text-align:left;padding:15px 17px;border-radius:12px;color:#7a8275;font-weight:500}.nav-item.active{background:var(--green);color:white;box-shadow:0 5px 10px #426b5210}.nav-item:hover:not(.active){background:#e7eade}.sidebar-note{margin-top:auto;padding:24px 15px 30px}.sidebar-note svg{width:31px;height:31px;stroke-width:1.2;color:#758b69;transform:rotate(-12deg)}.sidebar-note p{font-family:'Manrope';font-size:21px;line-height:1.55;letter-spacing:-.6px;font-weight:500}.sidebar-note strong{font-weight:750}.muted{color:var(--muted)}.sidebar-note .muted{font-size:12px}.local-indicator{display:flex;align-items:center;gap:7px;font-size:10px;color:#8a9183;padding:15px 7px 0;border-top:1px solid #e0e3d7}.local-indicator i{height:6px;width:6px;background:#7f9871;border-radius:50%}.app{margin-left:238px}.topbar{height:91px;padding:0 46px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#889080}.topbar>.eyebrow{font-size:9px;letter-spacing:2.7px}.top-actions{display:flex;gap:20px;align-items:center}.connection{font-size:11px;color:#839079}.connection:before{content:'';display:inline-block;margin-right:6px;width:5px;height:5px;border-radius:50%;background:#8ba37c}.connection.offline{color:#b17e42}.avatar{width:34px;height:34px;border:1px solid #dddccd;background:#ede9da;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:600}.icon-button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;border-radius:8px}.icon-button:hover{background:#edf0e6}.icon-button svg{width:18px;height:18px}main{padding:39px 46px 22px;max-width:1550px;margin:auto}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:'Manrope',sans-serif}h1{font-size:34px;letter-spacing:-1.3px;line-height:1.2;margin:11px 0 11px;font-weight:750}h1>span{color:var(--orange)}h2{font-size:17px;letter-spacing:-.5px;font-weight:750;margin:0}h3{font-size:14px;letter-spacing:-.3px}.subtitle{color:var(--muted);font-size:12px;line-height:1.7;margin:0}.subtitle.small{font-size:12px;margin:7px 0 19px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.page-heading .eyebrow{margin:0}.date-picker{display:flex;align-items:center;gap:5px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:5px}.date-picker label{display:flex;align-items:center;gap:8px;padding:0 4px}.date-picker label svg{width:15px;height:15px;color:#8a917f}.date-picker input{border:0;background:transparent;color:#4e5f4d;font-size:11px;width:108px;cursor:pointer}.date-picker input::-webkit-calendar-picker-indicator{width:9px;margin:0}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(270px,1fr);gap:22px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:25px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.pill{display:inline-block;color:#8c947f;background:#f1f3eb;border-radius:6px;padding:6px 9px;font-size:9px;font-weight:500;letter-spacing:.2px;white-space:nowrap}.energy-content{display:flex;align-items:center;gap:37px;padding:29px 5px 31px}.energy-ring{--ring:conic-gradient(#e8ede4 0deg 360deg);width:196px;height:196px;flex-shrink:0;background:var(--ring);border-radius:50%;padding:13px;transform:rotate(-90deg)}.ring-center{width:100%;height:100%;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(90deg)}.ring-center .eyebrow{font-size:7px;letter-spacing:1.2px}.ring-center strong{font-family:'Manrope';font-size:44px;font-weight:750;letter-spacing:-2px;margin:5px 0 0}.ring-center>span:last-child{font-size:11px;color:#98a08f}.macro-list{flex:1;min-width:100px;display:grid;gap:21px}.macro-title{display:flex;justify-content:space-between;font-size:11px;gap:6px;align-items:center}.macro-title label{display:flex;align-items:center;gap:7px}.macro-title i{display:inline-block;width:7px;height:7px;border-radius:2px}.macro-title strong{font-size:13px;font-weight:700}.macro-title small{font-weight:400;color:#a4a99c;font-size:10px}.macro-bar{height:4px;background:#f2f2ec;margin-top:10px;border-radius:5px;overflow:hidden}.macro-bar span{display:block;height:100%;border-radius:5px}.energy-footer{display:flex;align-items:center;gap:7px;border-top:1px solid var(--line);padding-top:17px;color:#8a9280;font-size:9px;flex-wrap:wrap}.energy-footer svg{width:14px;height:14px}.text-button{border:0;background:transparent;padding:3px 0;font-size:11px;font-weight:600;color:var(--green);text-decoration:none}.text-button svg{width:16px;height:16px}.energy-footer .text-button{margin-left:auto;font-size:9px}.scan-card{background:#f1aa76;border-radius:var(--radius);padding:29px 27px;position:relative;overflow:hidden;color:#46362a;display:flex;flex-direction:column}.scan-card:after{content:'';position:absolute;width:250px;height:250px;border:1px solid #e8a06d;border-radius:50%;right:-153px;top:-100px;box-shadow:0 0 0 28px #ffffff09,0 0 0 55px #ffffff0a;pointer-events:none}.scan-card>.eyebrow{font-size:8px;letter-spacing:1.8px;color:#856044;position:relative;margin-top:57px}.scan-card h2{font-size:29px;line-height:1.15;letter-spacing:-.9px;margin:12px 0}.scan-card p{font-size:11px;line-height:1.7;color:#856044;margin:0 0 23px}.button{display:inline-flex;gap:9px;align-items:center;justify-content:center;border:0;border-radius:9px;padding:13px 17px;font-size:11px;font-weight:600;text-decoration:none;line-height:1.3;min-height:41px}.button svg{width:17px;height:17px}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#315840}.button.dark{background:#374638;color:#fff;z-index:1;padding:13px 16px;justify-content:flex-start}.button.dark>span:last-child{margin-left:auto}.button.secondary{background:#f3f4ee;color:var(--ink);border:1px solid var(--line)}.scan-alternative{background:transparent;border:0;color:#79583f;font-size:9px;padding:12px 0 0;text-align:center}.scan-art{position:absolute;top:24px;right:28px;width:73px;height:57px;transform:rotate(-8deg)}.scan-corners{position:absolute;inset:0;border:2px solid #795c4155;border-radius:7px}.scan-corners:after{content:'';position:absolute;inset:-3px 12px;background:#f1aa76}.scan-corners:before{content:'';position:absolute;inset:10px -3px;background:#f1aa76}.barcode-art{position:absolute;inset:12px 11px;background:repeating-linear-gradient(90deg,#6b533e 0px,#6b533e 2px,transparent 2px,transparent 4px,#6b533e 4px,#6b533e 5px,transparent 5px,transparent 8px,#6b533e 8px,#6b533e 12px,transparent 12px,transparent 14px)}.scan-dot{position:absolute;top:27px;left:-6px;right:-6px;height:1px;background:#f9dec1;box-shadow:0 0 3px #fff}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:32px 0 18px;gap:14px}.section-heading h2{font-size:19px}.section-heading p{color:var(--muted);font-size:11px;margin:6px 0 0}.count{background:#e9ecdf;border-radius:6px;font-size:10px;vertical-align:middle;padding:3px 6px;margin-left:5px;color:#7d8971}.meal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.meal-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px 17px;min-width:0}.meal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.meal-icon{width:32px;height:32px;background:#f7f1e6;border-radius:9px;color:#be9b64;display:grid;place-items:center}.meal-icon.lunch{background:#edf1e8;color:#8a9b74}.meal-icon.dinner{background:#eaf0f1;color:#91a6ac}.meal-icon.snack{background:#f4eeeb;color:#bb998a}.meal-icon svg{width:19px;height:19px;stroke-width:1.5}.meal-head .icon-button{border:1px solid var(--line);width:24px;height:24px;border-radius:7px;color:#9aa18e}.meal-head .icon-button svg{width:13px;height:13px}.meal-card h3{margin:0 0 7px}.meal-card p{font-size:10px;color:#a2a696;margin:0;line-height:1.5}.meal-card .meal-kcal{border-top:1px solid #efefe7;padding-top:13px;margin-top:18px;color:#818b79;font-size:10px}.meal-kcal strong{font-size:16px;color:#4d6050;margin-right:4px}.meal-product{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.nutrient-card{margin-top:23px;padding-bottom:20px}.nutrient-card .subtitle{font-size:10px;margin:5px 0 0}.extras-grid{display:grid;grid-template-columns:repeat(4,1fr);margin:24px 0 18px}.extra{padding:0 25px;border-right:1px solid var(--line)}.extra:first-child{padding-left:0}.extra:last-child{border:0}.extra label{color:#939a89;font-size:10px}.extra strong{display:block;font-family:'Manrope';font-size:23px;letter-spacing:-.5px;margin-top:8px}.extra strong small{font-family:'DM Sans';font-size:10px;letter-spacing:0;color:#9da491;font-weight:400}.extra .coverage{font-size:8px;color:#b38b59;margin-top:5px}.data-note{font-size:10px;line-height:1.6;color:#979e8e;margin:0}.page-footer{display:flex;align-items:center;justify-content:space-between;margin:23px 0 0;color:#9da493;font-size:9px;gap:15px}.page-footer a{text-decoration:none}.mobile-nav{display:none}[hidden]{display:none!important}dialog{border:1px solid var(--line);border-radius:22px;padding:25px;max-width:560px;width:calc(100% - 32px);color:var(--ink);max-height:90dvh;overflow:auto;box-shadow:0 30px 100px #1a302530}dialog::backdrop{background:#20372c66;backdrop-filter:blur(5px)}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:15px}.modal-header h2{font-size:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:19px 0}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#6f7d69}.field input,.field select,input.search,input[type="date"]{background:#fcfcf8;border:1px solid #dde2d5;border-radius:8px;padding:11px 12px;color:var(--ink);min-width:0;width:100%}.date-picker input{background:none;border:0;padding:6px 0;width:108px;border-radius:0}.field.full{grid-column:1/-1}.modal-tabs{display:flex;gap:5px;background:#f1f3ed;padding:5px;border-radius:10px;margin-bottom:20px}.modal-tabs button{flex:1;background:none;border:0;border-radius:7px;padding:10px 4px;font-size:12px;color:#7e8973}.modal-tabs button.active{background:white;color:var(--green);box-shadow:0 2px 5px #2d4a3010}.search-row{display:flex;gap:9px;margin:12px 0}.search-row input{flex:1;min-width:0}.product-results{display:grid;gap:8px;margin-top:17px}.product-choice{border:1px solid var(--line);background:white;border-radius:12px;padding:14px;display:flex;gap:14px;align-items:center;text-align:left;width:100%}.product-choice:hover{border-color:#9ab28d;background:#fafcf7}.product-initial{width:39px;height:39px;display:grid;place-items:center;flex-shrink:0;background:#edf1e8;border-radius:10px;color:#6c8960;font-family:'Manrope';font-weight:700;font-size:16px}.product-choice strong{font-size:12px;display:block;line-height:1.5}.product-choice small{font-size:10px;color:#8a957e;display:block;line-height:1.6}.product-choice .chevron{margin-left:auto;color:#9aa58e}.empty-state{text-align:center;padding:28px 16px;color:#909b85;line-height:1.8;font-size:12px}.empty-state svg{width:34px;height:34px;margin-bottom:9px;color:#a4b19a}.empty-state strong{display:block;color:#65735c;font-weight:600}.helper{font-size:11px;line-height:1.7;color:#8b957f;margin:12px 0}.error{font-size:12px;color:#a0442d;line-height:1.7;background:#fff2ed;border-radius:10px;padding:12px;margin:12px 0}.product-summary{display:flex;gap:14px;align-items:center;margin-bottom:18px;padding:17px;background:#f3f5ed;border-radius:12px}.product-summary h3{margin-bottom:4px}.product-summary p{margin:0;font-size:11px;color:#8a957d}.nutrition-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;background:#f8f8f2;border-radius:12px;padding:15px;margin:20px 0}.nutrition-preview strong{display:block;font-size:17px}.nutrition-preview span{font-size:9px;color:#909a82}.full-width{width:100%}.mini-link{display:block;font-size:10px;color:#7c8d70;margin-top:12px}.info-box{border-radius:12px;background:#f0f4e9;padding:16px;margin-top:22px;font-size:12px;line-height:1.8}.info-box p{font-size:11px;color:#7e8e70;margin:5px 0 0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px}.settings-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px}.settings-actions .text-button{text-align:left;margin-top:10px}.diary-date{display:flex;align-items:center;gap:20px;padding:17px 24px;margin-bottom:20px}.diary-date label{font-size:12px;color:#839178}.diary-date input{width:auto;max-width:200px}.diary-meal{margin-bottom:17px}.diary-meal>.card-heading{margin-bottom:12px}.entry-row{display:flex;align-items:center;gap:13px;border-top:1px solid var(--line);padding:14px 0}.entry-row:last-child{padding-bottom:0}.entry-row h3{margin:0 0 5px;font-size:12px}.entry-row small{font-size:10px;color:#8f9984}.entry-actions{display:flex;gap:7px;margin-left:auto;align-items:center}.entry-actions>strong{font-size:12px;white-space:nowrap;margin-right:7px}.entry-actions .icon-button{color:#91a180}.week-chart{display:grid;grid-template-columns:repeat(7,1fr);gap:15px;margin:29px 0 22px;height:210px;align-items:end}.chart-col{display:flex;flex-direction:column;align-items:center;height:100%;justify-content:flex-end;gap:10px}.chart-col .chart-bar{width:min(50px,90%);background:#c9d8be;border-radius:7px 7px 2px 2px;min-height:2px}.chart-col.today .chart-bar{background:var(--green)}.chart-col strong{font-size:10px;color:#829174;font-weight:500}.chart-col label{font-size:10px;color:#8c9880;white-space:nowrap}.all-nutrients{margin-top:23px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;margin-top:20px;text-align:left;font-size:12px}th{color:#9aa48d;font-size:10px;font-weight:500}td,th{padding:13px 7px;border-bottom:1px solid var(--line)}td:nth-child(2){font-weight:600}td:last-child{font-size:10px;color:#8b987f}.video-box{background:#26362e;border-radius:14px;overflow:hidden;position:relative;aspect-ratio:4/3}.video-box video{width:100%;height:100%;object-fit:cover}.scanner-frame{position:absolute;left:12%;right:12%;top:30%;height:40%;border:2px solid #edb780;border-radius:12px;box-shadow:0 0 0 120px #0003;pointer-events:none}.scanner-line{position:absolute;top:49%;left:15%;right:15%;height:1px;background:#fbbd8a;box-shadow:0 0 6px #fbbd8a}.scanner-status{margin:10px 0;font-size:11px;color:#87957b}.scanner-tools{display:flex;gap:10px;margin:10px 0}.photo-input{position:absolute;width:1px;height:1px;opacity:0}.details-toggle{font-size:12px;color:var(--green);cursor:pointer;margin:18px 0}details .form-grid{margin-bottom:20px}.danger{color:#a75641}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#304b39;color:white;border-radius:12px;padding:14px 22px;z-index:10;font-size:12px;box-shadow:0 5px 25px #1e332a33;max-width:90%;width:max-content;display:flex;gap:16px;align-items:center}#toast button{border:0;background:transparent;color:#dfbf8a;font-size:12px;font-weight:600;white-space:nowrap}.modal-actions{display:flex;gap:10px;margin-top:17px}.export-warning{font-size:11px;color:#ac8757}.inline-total{font-size:12px;color:#73866a}.modal-empty-note{padding:15px 0;color:#8d9980;font-size:12px;line-height:1.8}
@media(min-width:1500px){main{padding-top:48px}.energy-content{gap:60px}.energy-ring{width:220px;height:220px}.scan-card>.eyebrow{margin-top:66px}.scan-card h2{font-size:32px}.meal-card{padding:22px}.energy-footer{font-size:10px}}
@media(max-width:1150px){.sidebar{width:205px;padding:30px 17px}.brand{font-size:15px;gap:8px}.brand-icon{width:34px;height:38px}.brand small{font-size:7px;letter-spacing:1.8px}.app{margin-left:205px}.topbar{padding:0 30px}main{padding:30px}.energy-content{gap:20px;padding:26px 0}.energy-ring{width:165px;height:165px;padding:11px}.ring-center strong{font-size:38px}.card{padding:22px}.scan-card{padding:25px 22px}.scan-card h2{font-size:27px}.dashboard-grid{grid-template-columns:minmax(0,1.65fr) minmax(245px,1fr);gap:18px}.energy-footer .text-button{margin-left:21px}.meal-grid{gap:12px}.meal-card{padding:16px 14px}.date-picker{gap:0}.date-picker .icon-button{width:25px}h1{font-size:30px}.extra{padding:0 18px}}
@media(max-width:950px){.sidebar{width:180px;padding:28px 14px}.brand{font-size:13px}.brand small{font-size:6px;letter-spacing:1.5px}.brand-icon{width:30px;height:34px;border-radius:10px}.brand-icon svg{width:20px}.nav-item{padding:14px 12px;font-size:12px;gap:10px}.sidebar-note{padding:20px 9px}.sidebar-note p{font-size:19px}.app{margin-left:180px}main{padding:27px 24px}.topbar{padding:0 24px;height:76px}.page-heading{align-items:flex-start;flex-direction:column;gap:17px}.dashboard-grid{grid-template-columns:1fr}.scan-card{min-height:180px;padding:25px 27px;display:block}.scan-card>.eyebrow{margin-top:0;display:block}.scan-card h2{margin:10px 0;font-size:25px}.scan-card h2 br{display:none}.scan-card p{margin-bottom:16px;font-size:11px}.scan-card .button{width:230px}.scan-alternative{display:block;width:230px}.scan-art{width:100px;height:79px;top:55px;right:42px}.scan-dot{top:38px}.scan-card:after{top:-20px;right:-110px}.energy-content{gap:45px;justify-content:center}.macro-list{max-width:280px}.energy-ring{width:190px;height:190px}.energy-footer .text-button{margin-left:auto}.meal-grid{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}.card-heading{flex-wrap:wrap}}
@media(max-width:650px){.sidebar{display:none}.app{margin-left:0}.topbar{height:65px;padding:0 22px}.topbar>.eyebrow{letter-spacing:2px;font-size:8px}.top-actions{gap:12px}.connection{font-size:9px}.avatar{width:30px;height:30px}main{padding:27px 20px 108px}.page-heading{gap:18px;margin-bottom:23px}h1{font-size:30px;margin-top:9px;letter-spacing:-1.2px}.page-heading .eyebrow{font-size:8px}.subtitle{font-size:11px}.date-picker{width:100%;justify-content:space-between;padding:3px}.date-picker input{width:120px;font-size:11px}.date-picker label{gap:12px}.date-picker .icon-button{width:35px}.dashboard-grid{gap:16px}.card{padding:20px}.card-heading h2{font-size:15px}.energy-content{gap:25px;padding:26px 0 24px}.energy-ring{width:155px;height:155px;padding:10px}.ring-center strong{font-size:37px}.ring-center .eyebrow{font-size:6px;letter-spacing:.9px}.ring-center>span:last-child{font-size:10px}.macro-title{font-size:10px}.macro-title label{gap:5px}.macro-title strong{font-size:12px}.macro-title small{font-size:9px}.macro-list{gap:19px}.macro-bar{margin-top:9px}.energy-footer{font-size:8px;row-gap:9px}.energy-footer .text-button{font-size:9px;margin-left:20px}.scan-card{padding:23px;min-height:193px}.scan-card h2{font-size:24px}.scan-card p{font-size:10px}.scan-card .button{width:218px}.scan-alternative{width:218px;font-size:9px}.scan-card .eyebrow{font-size:7px}.scan-art{width:65px;height:56px;right:24px;top:30px}.scan-dot{top:27px}.section-heading{margin-top:27px;gap:10px}.section-heading h2{font-size:17px}.section-heading p{font-size:10px}.section-heading .button{font-size:9px;padding:11px;gap:6px}.section-heading .button svg{width:14px}.meal-grid{gap:12px}.meal-card{padding:16px}.meal-card h3{font-size:13px}.meal-card p{font-size:9px}.meal-head{margin-bottom:16px}.meal-kcal{margin-top:15px!important}.nutrient-card{margin-top:18px}.nutrient-card .text-button{font-size:10px}.nutrient-card .subtitle{font-size:9px}.extras-grid{grid-template-columns:1fr 1fr;row-gap:22px;margin-top:24px}.extra:nth-child(odd){padding-left:0}.extra:nth-child(even){border:0}.extra strong{font-size:21px}.extra label{font-size:10px}.data-note{font-size:9px}.page-footer{font-size:8px;align-items:flex-start;line-height:1.6;gap:25px}.page-footer>span{max-width:90px}.mobile-nav{display:flex;align-items:center;justify-content:space-around;position:fixed;bottom:0;left:0;right:0;background:#fcfcf8ed;border-top:1px solid var(--line);padding:10px 9px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(15px);z-index:5}.mobile-nav button{display:flex;flex-direction:column;gap:5px;align-items:center;border:0;background:none;color:#a1aa95;font-size:8px;padding:4px 10px}.mobile-nav button svg{width:21px;height:21px}.mobile-nav button.active{color:var(--green)}.mobile-nav button.mobile-scan{background:var(--green);color:white;border-radius:17px;width:50px;height:46px;justify-content:center;margin:-19px 6px 0;box-shadow:0 4px 9px #31563325}.mobile-nav .mobile-scan svg{width:24px;height:24px}.week-chart{gap:8px;height:180px}.chart-col label{font-size:8px}.chart-col strong{font-size:8px}.entry-row{gap:9px}.entry-actions{gap:0}.entry-actions .icon-button{width:28px}.entry-actions>strong{font-size:10px;margin-right:2px}.entry-row h3{font-size:11px}.entry-row .product-initial{width:30px;height:34px;font-size:13px}.diary-meal.card{padding:18px}.diary-date{gap:12px}.diary-date label{font-size:10px}.diary-date input{font-size:12px}.nutrition-preview{padding:14px 10px}.nutrition-preview strong{font-size:16px}dialog{padding:22px 19px;border-radius:18px}#toast{bottom:94px;font-size:11px;padding:13px 16px}table{font-size:11px}td:last-child{font-size:9px}.settings-grid .subtitle{font-size:11px}}
@media(max-width:355px){.energy-ring{width:132px;height:132px}.energy-content{gap:18px}.ring-center strong{font-size:32px}.scan-art{right:17px;width:50px;height:45px}.scan-card .button,.scan-alternative{width:210px}.topbar{padding:0 16px}main{padding-left:16px;padding-right:16px}.section-heading .button{font-size:8px;padding:10px 8px}}
body.account-locked>.sidebar,body.account-locked>.app,body.account-locked>.mobile-nav{display:none}#account-gate{min-height:100dvh;display:grid;place-items:center;padding:24px}.account-panel{max-width:410px;width:100%;padding:34px}.account-panel>img{border-radius:12px;margin-bottom:20px}.account-panel h1{font-size:29px}.account-panel .field{margin-bottom:17px}.account-panel form{margin-top:23px}.account-panel .eyebrow{font-size:8px}.account-panel .button{font-size:12px}.sync-indicator{font-size:10px;color:#839178}.top-actions #logout-button{font-size:10px;border:0;background:none;color:#7f8d72;padding:6px}.sync-pending{opacity:.7}.sync-pending [type="submit"]{pointer-events:none}.sync-notice{font-size:10px;color:#9b8059;line-height:1.6}
.search-notice{font-size:11px;color:#8a6a3a;background:#faf5e8;border-radius:10px;padding:13px;line-height:1.7;margin:10px 0}.serving-shortcuts{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.serving-shortcuts>span{width:100%;font-size:11px;color:#89957e;margin-bottom:2px}.serving-shortcuts .button{font-size:10px;padding:9px 11px;min-height:35px}
.personal-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#ecefe5;border:1px solid #e2e7d9;border-radius:12px;padding:14px 19px;margin-bottom:21px}.personal-strip .eyebrow{display:block;font-size:7px;margin-bottom:5px}.personal-strip strong{font-size:12px;font-weight:500}.personal-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.personal-summary .eyebrow{font-size:8px;margin-bottom:9px}.personal-summary h2{font-size:23px}.personal-summary .subtitle{margin:8px 0 0}.reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:21px}.reference-tile{padding:22px}.reference-tile>span{font-size:10px;color:#86927b}.reference-tile>strong{display:block;font-family:Manrope;font-size:26px;margin:13px 0 11px;font-weight:750;letter-spacing:-.7px;white-space:nowrap}.reference-tile strong small{font-family:'DM Sans';font-size:10px;color:#8f9d82;font-weight:400;letter-spacing:0}.reference-tile p{font-size:10px;line-height:1.7;color:#8b977f;margin:0}.analysis-main .card-heading input{max-width:170px;font-size:12px}.analysis-main .subtitle{margin-bottom:0}.complete-day-toggle{display:flex;gap:12px;align-items:center;padding:15px 17px;border:1px solid #e2e9db;background:#f4f7ef;border-radius:12px;margin:20px 0;font-size:12px;cursor:pointer;line-height:1.5}.complete-day-toggle input{accent-color:var(--green);width:18px;height:18px;flex-shrink:0}.complete-day-toggle small{display:block;font-size:10px;color:#909c84;margin-top:2px}.comparison-row{display:flex;gap:15px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:16px 0}.comparison-row strong{font-size:12px}.comparison-row small{display:block;font-size:10px;color:#929d87;margin-top:5px}.comparison-value{text-align:right}.comparison-value>strong{font-family:Manrope;font-size:19px}.comparison-value>strong small{display:inline;font-family:'DM Sans';font-size:10px;font-weight:400}.analysis-main>.data-note{border-top:1px solid var(--line);padding-top:17px}.advice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:22px}.advice-card{display:flex;align-items:flex-start;gap:13px;padding:22px;border:1px solid var(--line);background:#fff;border-radius:16px}.advice-card.tip{background:#fbf4e8;border-color:#eee3cd}.advice-card.positive{background:#edf3e8;border-color:#dce6d3}.advice-symbol{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;background:#eef1e7;border-radius:50%;font-size:12px;color:#7b8c6d;font-weight:700}.tip .advice-symbol{background:#f3e6cc;color:#b08a4c}.positive .advice-symbol{background:#dfead5;color:#6d8d54}.advice-card h3{font-size:13px;margin:3px 0 8px}.advice-card p{font-size:11px;line-height:1.8;margin:0;color:#87927b}.advice-card .text-button{font-size:10px;margin-top:10px}.personal-week{margin-bottom:20px}.personal-week-values{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding:24px 0 17px}.personal-week-values span{font-size:10px;color:#8d9980}.personal-week-values strong{display:block;font-size:23px;font-family:Manrope;margin:9px 0}.personal-week-values strong small{font-size:10px;color:#8e9b80;font-family:'DM Sans';font-weight:400}.personal-week-values p{font-size:9px;color:#8d9980;line-height:1.6;margin:0}.analysis-explanation{font-size:11px;line-height:1.8;margin-bottom:23px;color:#8d987f}.analysis-explanation summary{font-size:12px;cursor:pointer;color:#58764b;font-weight:600}.analysis-explanation p{margin:13px 0}.analysis-source-links{display:flex;gap:8px 20px;flex-wrap:wrap;margin:15px 0 0}.analysis-source-links a{font-size:10px;color:#728966;text-decoration:none}.profile-card{margin-bottom:24px;scroll-margin-top:20px}.profile-card .form-grid{max-width:780px}.profile-card .field{font-size:11px}.profile-card .field select,.profile-card .field input{font-size:12px}.reference-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:22px;border-top:1px solid var(--line);padding-top:14px}.reference-actions .helper{width:100%;margin:0 0 4px;font-size:10px}.reference-actions .button{font-size:10px}.reference-actions[aria-busy="true"] button{opacity:.6;pointer-events:none}
@media(max-width:950px){.reference-grid{gap:12px}.reference-tile{padding:19px}.reference-tile>strong{font-size:22px}.reference-tile strong small{display:block;margin-top:7px}.advice-grid{grid-template-columns:1fr}.personal-week-values{grid-template-columns:repeat(2,1fr);gap:18px}.personal-summary h2{font-size:21px}.personal-summary>.button{font-size:10px;white-space:nowrap}}
@media(max-width:650px){.personal-strip{padding:12px 15px;margin-bottom:17px}.personal-strip strong{font-size:10px}.personal-strip .text-button{font-size:10px}.personal-summary{flex-wrap:wrap;padding:20px;gap:14px}.personal-summary h2{font-size:22px}.personal-summary .subtitle{font-size:10px}.reference-grid{grid-template-columns:1fr;gap:10px}.reference-tile{padding:17px 20px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 15px}.reference-tile>span{font-size:10px}.reference-tile>strong{grid-column:2;grid-row:1/3;font-size:22px;margin:0;text-align:right}.reference-tile strong small{font-size:9px}.reference-tile p{font-size:9px;line-height:1.6;margin-top:7px}.analysis-main .card-heading{align-items:flex-start}.analysis-main .card-heading input{max-width:148px;font-size:11px;padding:9px}.analysis-main .subtitle{font-size:9px}.comparison-row strong{font-size:11px}.comparison-row small{font-size:9px}.comparison-value>strong{font-size:18px}.comparison-value>small{font-size:8px;max-width:145px}.complete-day-toggle{font-size:11px;padding:13px 12px}.complete-day-toggle small{font-size:9px}.advice-card{padding:19px 17px}.advice-card p{font-size:10px}.advice-card h3{font-size:12px}.personal-week-values strong{font-size:22px}.personal-week .card-heading{gap:10px}.personal-week .pill{font-size:8px;white-space:normal}.analysis-explanation{font-size:10px}.reference-actions{flex-direction:column;align-items:flex-start}.reference-actions .button{font-size:9px}.profile-card .form-grid{gap:13px}.profile-card .field{font-size:10px}.profile-card .field select,.profile-card .field input{font-size:11px}}

/* Garmin: same private diary, own connection and source timestamps. */
.garmin-card,.garmin-analysis{margin-bottom:24px;scroll-margin-top:24px}.garmin-card .card-heading{align-items:flex-start}.garmin-card .eyebrow,.garmin-analysis .eyebrow{margin:0 0 8px}.garmin-card h2{font-size:24px;letter-spacing:-.8px}.garmin-card .subtitle{margin-bottom:0}.garmin-card .field{max-width:700px;font-size:12px;margin:18px 0 10px}.garmin-card input{font-size:14px}.garmin-steps{padding-left:22px;color:var(--muted);line-height:1.9;font-size:12px;max-width:760px;margin:22px 0}.garmin-steps a{color:var(--green);font-weight:600;text-underline-offset:3px}.garmin-card #garmin-status{padding-top:14px;border-top:1px solid var(--line)}.garmin-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}.garmin-card .data-note{max-width:850px}.garmin-warning{background:#fcf1eb;border:1px solid #f0d9ca;color:#a24d32;font-size:12px;line-height:1.7;padding:13px 16px;border-radius:12px;margin:14px 0}.garmin-privacy{border-top:1px solid var(--line);padding-top:16px;font-size:11px;color:var(--muted);line-height:1.8;margin-top:20px;max-width:900px}.garmin-privacy summary{cursor:pointer;color:var(--green);font-weight:600}.garmin-privacy p{margin-top:12px}.garmin-card .info-box{margin:20px 0}.garmin-metrics{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:14px;margin:16px 0;overflow:hidden;background:#f8faf5}.garmin-metrics>div{padding:18px 20px;border-right:1px solid var(--line)}.garmin-metrics>div:last-child{border-right:0}.garmin-metrics span{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}.garmin-metrics strong{font-family:Manrope,sans-serif;font-size:20px;letter-spacing:-.6px}.garmin-analysis .helper{font-size:11px;line-height:1.8}.garmin-analysis h3{margin-top:24px}.garmin-day-label{font-size:11px;color:var(--muted);margin-top:18px}.garmin-workouts{padding:0;list-style:none;margin:15px 0}.garmin-workouts li{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.garmin-workouts li>div{min-width:0}.garmin-workouts strong{overflow-wrap:anywhere}.garmin-workouts small{display:block;color:var(--muted);font-size:10px;margin-top:7px}.garmin-workouts li>span{white-space:nowrap;font-size:12px}.garmin-controls .text-button{font-size:11px}
@media(max-width:950px){.garmin-metrics{grid-template-columns:repeat(2,1fr)}.garmin-metrics>div:nth-child(2){border-right:0}.garmin-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:650px){.garmin-card,.garmin-analysis{padding:22px 18px}.garmin-card h2{font-size:23px}.garmin-card .pill,.garmin-analysis .pill{font-size:9px;white-space:normal;text-align:right;max-width:105px}.garmin-card .field input{font-size:16px}.garmin-card .button{font-size:11px}.garmin-steps{font-size:11px;line-height:1.9;padding-left:18px}.garmin-card .card-heading{gap:10px}.garmin-metrics>div{padding:16px 14px}.garmin-metrics strong{font-size:20px}.garmin-controls{align-items:stretch}.garmin-controls>.button{flex:1;min-width:140px}.garmin-controls>.text-button{width:100%;text-align:left}.garmin-warning{font-size:11px}.garmin-analysis .helper,.garmin-privacy{font-size:10px}}
