:root{--bg: #f4f6f7;--surface: #ffffff;--border: #e6eaed;--divider: #eef1f3;--input-bg: #f7f9fa;--text: #1a1f24;--muted: #5b6670;--faint: #8a949c;--accent: #0b7a54;--accent-hover: #075c3f;--accent-soft: #eef6f2;--warm: #b45309;--danger: #b91c1c;--radius: 12px;--nav-height: 72px;color-scheme:light;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.45;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg)}a{color:var(--accent)}a:hover{color:var(--accent-hover)}.num{font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.shell{min-height:100vh;padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom))}.page{max-width:720px;margin:0 auto}.page-header{background:var(--surface);border-bottom:1px solid var(--border);padding:calc(16px + env(safe-area-inset-top)) 16px 12px}.page-header-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-header h1{margin:0;font-size:22px;font-weight:700;letter-spacing:-.01em}.page-body{padding:12px;display:flex;flex-direction:column;gap:12px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.card-pad{padding:14px 16px 16px}.card-title{display:flex;justify-content:space-between;align-items:baseline;padding:12px 16px;border-bottom:1px solid var(--divider)}.card-title h2{margin:0;font-size:15px;font-weight:600}.eyebrow{margin:0;font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 16px;border-bottom:1px solid var(--divider)}.row-main{display:flex;flex-direction:column;min-width:0}.row-sub{font-size:13px;color:var(--muted)}.empty{margin:0;padding:12px 16px;font-size:14px;color:var(--muted);border-bottom:1px solid var(--divider)}.add-link{display:block;width:100%;padding:12px 16px;border:none;background:none;text-align:left;font:inherit;font-size:14px;font-weight:600;color:var(--accent);text-decoration:none;cursor:pointer}.row-button{width:100%;border:none;border-bottom:1px solid var(--divider);background:none;color:inherit;text-align:left;font:inherit;cursor:pointer}.row-button:hover{background:var(--input-bg)}.row-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 16px 10px;border-bottom:1px solid var(--divider);background:var(--input-bg);font-size:13px}.text-danger{min-height:36px;padding:0 12px;border:1px solid #f1c7c7;border-radius:8px;background:var(--surface);color:var(--danger);font-size:14px;font-weight:600;cursor:pointer}.stack{display:flex;flex-direction:column;gap:12px}.hint{margin:0 4px;font-size:13px}.meal-picker{display:flex;align-items:center;gap:12px;margin-top:8px;font-size:14px}select{height:40px;padding:0 10px;border:1px solid #d5dce0;border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:15px}.meal-picker select{font-weight:600}.tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;border-radius:10px;background:#e9edef}.tab{height:36px;border:none;border-radius:8px;background:none;color:var(--muted);font-size:13px;font-weight:600;cursor:pointer}.tab.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #1a1f2414}.search-form{display:flex;gap:8px}.search-input{flex:1;display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;border:1px solid #d5dce0;border-radius:10px;background:var(--surface);color:var(--muted)}.search-input:focus-within{outline:2px solid var(--accent);outline-offset:-1px}.search-input input{flex:1;min-width:0;border:none;outline:none;background:none;color:var(--text);font:inherit;font-size:16px}.fields{display:flex;flex-direction:column;gap:12px;padding:16px}.fields-title{margin:0;font-size:16px;font-weight:600}.fields label,.food-detail label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500}.fields input,.food-detail input{height:44px;padding:0 12px;border:1px solid #e1e6e9;border-radius:8px;background:var(--input-bg);color:var(--text);font:inherit;font-size:16px}.food-detail select{height:44px}.fields input:focus,.food-detail input:focus{outline:2px solid var(--accent);outline-offset:-1px;background:var(--surface)}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.button-row{display:flex;justify-content:flex-end;gap:8px}.food-detail-body{display:flex;flex-direction:column;gap:14px;padding:0 16px 16px}.food-detail h2{margin:0;font-size:20px;font-weight:700}.serving-fields{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}.nutrient-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.nutrient-tile{display:flex;flex-direction:column;align-items:center;padding:10px 4px;border-radius:10px;background:var(--input-bg)}.nutrient-tile .value{font-size:16px;font-weight:600}.nutrient-tile .label{font-size:12px;color:var(--muted)}.nutrient-tile.primary{background:var(--accent-soft)}.nutrient-tile.primary .value{color:var(--accent);font-size:18px}[hidden]{display:none!important}.date-switcher{display:flex;justify-content:space-between;align-items:center;margin-top:6px}.date-switcher-label{display:flex;flex-direction:column;align-items:center}.date-switcher-label strong{font-size:16px}.date-switcher-label span{font-size:13px;color:var(--muted)}.icon-button{width:44px;height:44px;border:none;border-radius:10px;background:none;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.icon-button:hover{background:var(--divider)}.calorie-equation{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1.2fr;align-items:start;gap:2px;margin-top:14px;text-align:center}.calorie-equation .value{display:block;font-size:18px;font-weight:600}.calorie-equation .label{display:block;font-size:12px;color:var(--muted)}.calorie-equation .op{font-size:18px;color:var(--muted)}.calorie-equation .remaining .value{font-size:22px;font-weight:700;color:var(--accent)}.calorie-equation .remaining.over .value{color:var(--danger)}.calorie-hero{font-size:44px;font-weight:700;letter-spacing:-.02em;color:var(--accent);margin:4px 0 0}.macro-bars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.macro-bar-head{display:flex;justify-content:space-between;font-size:12px;margin-bottom:5px}.macro-bar-head strong{font-weight:600}.bar{height:6px;border-radius:3px;background:#e9edef;overflow:hidden}.bar>div{height:100%;border-radius:3px;background:var(--accent)}.totals-table{width:100%;border-collapse:collapse;font-size:14px}.totals-table th,.totals-table td{padding:9px 6px;text-align:right}.totals-table th:first-child{padding-left:16px;text-align:left;font-weight:500}.totals-table th:last-child,.totals-table td:last-child{padding-right:16px}.totals-table thead th{font-size:12px;font-weight:500;color:var(--muted)}.totals-table tbody tr{border-top:1px solid var(--divider)}.totals-table tr.goal{color:var(--muted)}.totals-table tr.remaining{font-weight:600;color:var(--accent)}.footnote{margin:0;padding:4px 16px 12px;font-size:12px;color:var(--muted)}button{font:inherit}.btn{height:44px;padding:0 18px;border:none;border-radius:10px;background:var(--accent);color:#fff;font-size:15px;font-weight:600;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.btn:hover{background:var(--accent-hover);color:#fff}.btn:disabled{opacity:.6;cursor:default}.btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{background:var(--divider);color:var(--text)}.btn-block{width:100%}.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);z-index:10}.bottom-nav-inner{max-width:720px;height:var(--nav-height);margin:0 auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center}.nav-item{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;color:var(--muted);text-decoration:none}.nav-item:hover{color:var(--text)}.nav-item.active{color:var(--accent);font-weight:600}.nav-fab-wrap{display:flex;justify-content:center}.nav-fab{width:52px;height:52px;border-radius:26px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center}.nav-fab{border:none;cursor:pointer}.nav-fab svg{transition:transform .15s ease}.nav-fab.open svg{transform:rotate(45deg)}.nav-fab:hover{background:var(--accent-hover);color:#fff}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;align-items:flex-end;justify-content:center;background:#0f171f59;animation:fade-in .15s ease}.sheet{width:100%;max-width:560px;padding:8px 16px calc(20px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:var(--surface);box-shadow:0 -8px 30px #0f171f1f;animation:slide-up .2s ease}.sheet-head{display:flex;justify-content:space-between;align-items:center}.sheet-head h2{margin:0;font-size:17px;font-weight:700}.sheet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:6px}.sheet-tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 6px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);text-align:center;cursor:pointer}.sheet-tile:hover,.sheet-tile:focus-visible{border-color:var(--accent);background:var(--accent-soft)}.sheet-icon{width:52px;height:52px;border-radius:26px;display:flex;align-items:center;justify-content:center;background:var(--input-bg);color:var(--text)}.sheet-icon.accent{background:var(--accent);color:#fff}.sheet-tile-label{font-size:15px;font-weight:600}.sheet-tile-sub{font-size:12px;color:var(--muted)}@keyframes slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.sheet,.sheet-backdrop{animation:none}}.snap-empty{display:flex;flex-direction:column;align-items:flex-start;gap:14px}.snap-photo img{display:block;width:100%;max-height:420px;object-fit:cover}.note-field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500}.note-field input{height:44px;padding:0 12px;border:1px solid #e1e6e9;border-radius:8px;background:var(--input-bg);color:var(--text);font:inherit;font-size:16px}.note-field input:focus{outline:2px solid var(--accent);outline-offset:-1px;background:var(--surface)}.review-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--divider)}.review-item.excluded .row-main{opacity:.45;text-decoration:line-through}.review-check{display:flex;align-items:center;gap:12px;min-width:0;cursor:pointer}.review-check input{width:20px;height:20px;flex-shrink:0;accent-color:var(--accent)}.review-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}.review-side select{height:32px;font-size:13px}.badge-low{display:inline-block;margin-left:6px;padding:0 6px;border-radius:6px;background:#fdf0e1;color:var(--warm);font-size:11px;font-weight:600}.review-totals{display:flex;justify-content:space-around;gap:8px;padding:10px 16px;border-bottom:1px solid var(--divider);font-size:13px;color:var(--muted)}.snap-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:15px}.list-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--divider);font-size:15px}.list-row:last-child{border-bottom:none}.auth{max-width:420px;margin:0 auto;padding:48px 16px}.auth-brand h1{margin:0;font-size:28px;font-weight:700;letter-spacing:-.02em;color:var(--accent)}.auth-brand p{margin:4px 0 0;color:var(--muted)}.form{display:flex;flex-direction:column;gap:14px;margin-top:24px;padding:20px 16px}.form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500}.form input{height:44px;padding:0 12px;border:1px solid #e1e6e9;border-radius:8px;background:var(--input-bg);color:var(--text);font:inherit;font-size:16px}.form input:focus{outline:2px solid var(--accent);outline-offset:-1px;background:var(--surface)}.oauth{display:flex;flex-direction:column;gap:10px}.oauth-button{height:46px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;font-weight:600;cursor:pointer}.oauth-button:disabled{opacity:.6;cursor:default}.oauth-google{background:var(--surface);color:var(--text);border:1px solid #d5dce0}.oauth-google:hover{background:var(--input-bg)}.oauth-apple{background:#000;color:#fff;border:1px solid #000000}.oauth-apple:hover{background:#1f1f1f}.divider{display:flex;align-items:center;gap:12px;margin:4px 0 2px;font-size:13px;color:var(--muted)}.divider:before,.divider:after{content:"";flex:1;height:1px;background:var(--border)}.error{margin:0;color:var(--danger);font-size:14px}.notice{margin:0;color:var(--accent);font-size:14px}.switch{margin-top:16px;text-align:center;font-size:14px}.link-button{padding:0;border:none;background:none;color:var(--accent);font-weight:600;cursor:pointer}.status{padding:48px 16px;text-align:center;color:var(--muted)}
