:root{font-family:system-ui,-apple-system,sans-serif;color:#21392f;background:#f5f4ee;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1180px;margin:auto}header{display:flex;justify-content:space-between;align-items:center;padding:28px 30px;border-bottom:1px solid #d9dfd4}.brand{font-size:30px;font-weight:850;letter-spacing:-1.5px}.brand span{display:block;font-size:11px;letter-spacing:.5px;font-weight:500;margin-top:2px}.badge{font-size:11px;letter-spacing:1.5px;border:1px solid #b4c4b2;padding:9px 13px;border-radius:20px}main{padding:42px 30px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;color:#547a5e;font-weight:750}h1{font-size:clamp(32px,4vw,50px);letter-spacing:-2px;margin:12px 0}h2{font-size:21px;letter-spacing:-.5px;margin:0 0 12px}p{line-height:1.6}.intro>p:not(.eyebrow){color:#607165}.toolbar{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:26px 0}.toolbar label{display:flex;align-items:center;gap:10px}.toolbar span,.muted{font-size:12px;color:#67756b}.toolbar button{margin-left:auto}button{border:0;border-radius:8px;background:#294e39;color:white;font-size:13px;font-weight:650;padding:13px 18px;cursor:pointer}button:hover{background:#3d664a}button:disabled{opacity:.5;cursor:wait}.secondary{background:#e6ebdf;color:#2c4936}.totals{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin:22px 0 28px}.metric{padding:22px;background:#e8eedc;border-radius:12px;min-height:140px}.metric:nth-child(n+2){background:white}.metric small{display:block;color:#64735b;font-size:12px}.metric strong{display:block;font-size:32px;letter-spacing:-1px;margin:10px 0 6px}.metric .detail{font-size:11px;line-height:1.5}.columns{display:grid;grid-template-columns:1fr 1.15fr;gap:24px}.panel{background:white;border:1px solid #e0e5dc;border-radius:12px;padding:25px}label{font-size:12px;font-weight:600;display:block;margin-bottom:14px}input,select,textarea{font:inherit;font-weight:400;background:#fafbf7;border:1px solid #cbd5c8;border-radius:6px;padding:11px;width:100%;margin-top:6px;color:#243e30}textarea{font-family:ui-monospace,monospace;font-size:11px;line-height:1.5}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #779951;outline-offset:2px}.row{display:flex;gap:15px}.row>*{flex:1;min-width:0}form>button{width:100%}details{border-top:1px solid #e2e6df;margin-top:25px;padding-top:19px}summary{cursor:pointer;font-size:13px;font-weight:650;margin-bottom:15px}.heading{display:flex;justify-content:space-between}.heading span{font-size:12px;color:#687569}.entry{border-bottom:1px solid #e1e6dc;padding:18px 0}.entry strong{font-size:14px}.entry p{margin:6px 0;font-size:12px;color:#687569}.entry .actions{display:flex;gap:8px}.entry button{font-size:11px;padding:7px 10px;background:#eef1e7;color:#3a533d}.empty{padding:35px 0;color:#71806d;font-size:14px}.footnote{margin-top:28px;font-size:12px;line-height:1.7;color:#6c7868}.footnote strong{color:#36513c}#status{font-size:12px;padding:12px 15px;border-radius:8px;background:#edf0e5;line-height:1.5}#status.error{background:#ffe6dd;color:#892e19}footer{padding:20px 30px 35px;font-size:11px;color:#75816f;display:flex;justify-content:space-between}@media(max-width:730px){header{padding:22px}.badge{font-size:9px}main{padding:25px 18px}.columns{grid-template-columns:1fr}.totals{grid-template-columns:repeat(2,1fr);gap:10px}.metric{padding:17px}.toolbar button{margin-left:0}.panel{padding:20px}footer{gap:20px}.brand span{font-size:9px}}

.water-panel{margin-top:24px}.water-panel h2{margin-top:0}.water-panel .columns{gap:35px}

.preview-warning{border:1px solid #b9c99c;background:#edf3dc;border-radius:8px;padding:14px 17px;margin-bottom:26px;font-size:13px;line-height:1.6}.preview-warning strong{display:block;color:#294e39}

#label-panel{margin-top:24px}.label-details{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}#label-confirmed{width:auto;margin-right:8px}#label-nutrients{gap:0 24px}

.product-thumbnail{width:96px;height:96px;object-fit:contain;border:1px solid #cbd5c8;border-radius:8px;margin:8px 0}#label-photo-remove{margin-bottom:16px}

.extraction-label{max-width:100%;height:auto;display:block;margin:1rem 0}.extraction-label[hidden]{display:none}
.signin{max-width:420px;margin:8vh auto;padding:2rem}.signin h1{font-size:2.2rem}.signin input{margin-bottom:1rem}.signin .brand{margin-bottom:2rem}.signout{display:flex;justify-content:flex-end;margin-bottom:1rem}.signout button{width:auto}

/* Five-pillar workspace. Existing sign-in styles remain scoped outside this shell. */
.app-shell{--ink:#1d3043;--muted:#5d6e7c;--line:#dce4eb;--blue:#235d88;background:#f3f6f9;color:var(--ink);font-size:15px;min-height:100vh}
.app-shell [hidden]{display:none!important}.app-shell a{color:var(--blue)}.app-shell a:focus-visible,.app-shell summary:focus-visible,.app-shell button:focus-visible,.app-shell input:focus,.app-shell select:focus,.app-shell textarea:focus{outline:3px solid #2375b5;outline-offset:3px}.app-shell :target{scroll-margin-top:20px}
.skip-link{position:fixed;left:16px;top:-100px;z-index:20;padding:12px;background:#fff;border:2px solid #235d88}.skip-link:focus{top:12px}
.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:#101c2b;color:#e5edf5;display:flex;flex-direction:column;padding:34px 20px;z-index:5}.app-shell .brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#fff;font-size:27px;letter-spacing:-1px}.app-shell .brand>span{display:block;font-size:inherit;letter-spacing:inherit;font-weight:800}.brand small{display:block;font-size:10px;font-weight:450;letter-spacing:.2px;color:#aabacb;margin-top:4px}.app-shell .brand .brand-mark{background:#21374d;color:#8ed8ff;font-size:30px;border-radius:12px;display:grid;place-items:center;width:43px;height:47px}.nav-caption{font-size:10px;letter-spacing:1.8px;color:#9aafc2;margin:46px 12px 14px}.sidebar nav{display:grid;gap:7px}.sidebar nav a{color:#b5c6d8;display:flex;gap:13px;align-items:center;padding:13px;border-radius:10px;text-decoration:none;font-size:14px;font-weight:550;min-height:48px}.sidebar svg{width:21px;height:21px;flex-shrink:0}.sidebar nav a:hover{background:#1b2e42;color:white}.sidebar nav a[aria-current]{background:#263e55;color:#9cddff;box-shadow:inset 3px 0 #8ed8ff}.sidebar-bottom{margin-top:auto;padding:25px 12px 0}.sidebar-bottom p{font-size:12px;line-height:1.8;color:#9aacbe}.sidebar .signout{justify-content:flex-start;margin:18px 0 0}.sidebar .signout button{background:#213247;color:#d6e3ef;width:100%}
.app-shell main{max-width:1440px;margin-left:228px;margin-right:auto;padding:35px 42px 20px;min-width:0}.topline{display:flex;justify-content:space-between;align-items:center;gap:16px}.app-shell .eyebrow{color:#526c80;font-size:10px;letter-spacing:1.6px}.app-shell .badge{color:#596d7b;border-color:#cbd7e1;font-size:9px;letter-spacing:1.3px;padding:6px 10px;white-space:nowrap}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:22px 0 20px}.page-heading h1{font-size:38px;letter-spacing:-1.6px;margin:0 0 8px}.page-heading p{font-size:14px;color:var(--muted);margin:0;max-width:620px}.day-picker{min-width:175px;font-size:11px;margin:0}.day-picker input{background:#fff}.day-picker small{display:block;color:var(--muted);font-weight:400;margin-top:6px;font-size:10px}.app-shell .preview-warning{background:#edf3f8;border:1px solid #d2dfe9;padding:10px 13px;font-size:11px;color:#536779;margin-bottom:12px}.app-shell .preview-warning strong{display:inline;color:inherit;font-weight:600}.app-shell #status{background:transparent;padding:0 1px;min-height:32px;margin:0 0 13px;color:#516779;font-size:12px}.app-shell #status.error{background:#fff0ed;color:#8b2e25;padding:10px}.app-shell .muted{color:var(--muted);font-size:12px;line-height:1.6}.app-shell h2{font-size:18px;letter-spacing:-.3px}.app-shell h3{font-size:14px;margin:8px 0}.app-shell .panel{border:1px solid var(--line);border-radius:15px;padding:24px;box-shadow:0 3px 14px #19324b03;min-width:0}.app-shell .section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.section-heading h2{margin-bottom:4px}.section-heading p{margin:4px 0 0}.app-shell .section-heading button{flex-shrink:0}.app-shell button{background:#235d88;min-height:44px;border-radius:9px;font-size:12px;line-height:1.35;padding:11px 16px}.app-shell button:hover{background:#194c72}.app-shell button.secondary{background:#edf2f7;color:#304f6b}.app-shell button.secondary:hover{background:#dfeaf4}.app-shell button:disabled{opacity:.5;cursor:wait}.app-shell label{font-size:12px}.app-shell input,.app-shell select,.app-shell textarea{background:#fff;color:var(--ink);border-color:#c4d1dd;min-height:43px;font-size:14px}.app-shell textarea{font-family:inherit}.app-shell form>button+button{margin-top:9px}.app-shell .totals{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 22px}.app-shell .metric{background:#fff;min-height:140px;padding:19px 17px;border-radius:14px;border:1px solid var(--line)}.app-shell .metric:first-child{background:#e0edf8;border-color:#d2e2f0}.app-shell .metric small{color:#587085;font-size:11px}.app-shell .metric strong{font-size:28px;letter-spacing:-1px;color:#1e4563;overflow-wrap:anywhere}.app-shell .metric .detail{color:#5b7083;font-size:10px}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.icon-tile{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e9f2ec;color:#417053}.icon-tile.lavender{background:#efecf8;color:#70629a}.icon-tile svg{width:24px;height:24px}.text-link{display:inline-block;font-size:12px;text-decoration:none;font-weight:650;padding:12px 0;min-height:44px}.text-link:hover{text-decoration:underline}.history-panel{margin-top:22px}.app-shell .heading span{color:var(--muted)}.app-shell .entry p{color:var(--muted);overflow-wrap:anywhere}.app-shell .entry strong{overflow-wrap:anywhere}.app-shell .entry button{min-height:44px;background:#edf2f7;color:#345b79;font-size:11px}.app-shell .actions{flex-wrap:wrap}.app-shell .empty{padding:15px 0;color:#617789;font-size:13px;line-height:1.7}.pillar-links{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:24px}.pillar-links a{display:flex;flex-direction:column;gap:8px;background:#fff;padding:20px;border:1px solid var(--line);border-radius:13px;text-decoration:none;color:#2c4c68;transition:border-color .15s}.pillar-links a:hover{border-color:#6a9bc1}.pillar-links svg{width:24px;height:24px;margin-bottom:5px}.pillar-links strong{font-size:13px}.pillar-links span{font-size:11px;color:var(--muted);line-height:1.6}.app-shell .footnote{color:var(--muted);font-size:11px}.app-shell footer{padding:30px 0 10px;color:#6a7e90;font-size:10px}.food-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.food-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:20px;display:flex;flex-direction:column;gap:8px;min-width:0}.food-card h3{margin:0;font-size:15px;overflow-wrap:anywhere}.food-card p{margin:0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.food-card button{margin-top:auto;align-self:start}.food-card .source-tag{font-size:10px;color:#3d6d89;background:#eef4f9;padding:3px 7px;border-radius:5px;align-self:start}.search-label{max-width:460px}.food-grid>.empty{grid-column:1/-1;border:1px dashed #becdd9;border-radius:12px;text-align:center;padding:35px;background:#fff}.app-shell details.panel{margin-top:22px}.app-shell details.panel>summary{font-size:15px;color:#284f6e;min-height:28px;margin-bottom:0}.app-shell details.panel[open]>summary{margin-bottom:20px}.app-shell details{border-color:var(--line)}.app-shell .water-panel{margin-top:24px}.app-shell .columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}.section-gap{margin-top:24px}.inline-note{background:#f0f5f9;border:1px solid #dce6ee;border-radius:10px;padding:14px;margin:16px 0;font-size:12px;line-height:1.7;color:#4c657b}.inline-note p{margin-bottom:0}.app-shell fieldset{min-width:0;border:1px solid var(--line);padding:14px;border-radius:10px;margin:0 0 18px}.app-shell legend{font-size:12px;padding:0 5px}.ingredient-row{padding:12px 0;border-bottom:1px solid var(--line);margin-bottom:12px}.ingredient-row:first-child{padding-top:0}.ingredient-row button{min-height:44px}.app-shell dialog{border:1px solid #cbd9e4;border-radius:16px;padding:26px;width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 40px);color:var(--ink);background:white}.app-shell dialog::backdrop{background:#0f2136a8}.app-shell dialog>button{width:100%;margin-top:10px}.app-shell dialog .section-heading{margin-bottom:10px}.app-shell #log-close{padding:8px;min-width:44px}.app-shell #food-json{font-family:ui-monospace,monospace;font-size:12px}.app-shell .developer-tools{margin-bottom:24px}.app-shell .signout button{min-height:44px}.app-shell #label-nutrients{gap:0 16px}.app-shell #label-confirmed{min-height:20px;width:20px;vertical-align:middle}.app-shell #label-review{border:2px solid #7ba4c6;border-radius:12px;padding:18px;margin-top:20px}.app-shell #label-review-text{font-size:12px}
@media(min-width:1700px){.app-shell main{margin-right:auto}}
@media(max-width:1100px){.sidebar{width:195px;padding:28px 14px}.app-shell main{margin-left:195px;padding:28px 25px}.app-shell .totals{grid-template-columns:repeat(3,1fr)}.food-grid{grid-template-columns:repeat(2,1fr)}.pillar-links{grid-template-columns:repeat(2,1fr)}.app-shell .columns{gap:16px}.app-shell .panel{padding:20px}}
@media(max-width:760px){.sidebar{position:sticky;inset:0 0 auto;width:100%;padding:12px 14px 0;gap:10px}.app-shell .brand{font-size:21px;gap:9px;max-width:190px}.app-shell .brand .brand-mark{width:31px;height:33px;border-radius:7px;font-size:25px}.brand small{font-size:9px}.nav-caption,.sidebar-bottom>p{display:none}.sidebar-bottom{position:absolute;right:14px;top:12px;padding:0}.sidebar .signout{margin:0}.sidebar .signout button{min-height:36px;padding:7px 12px;font-size:11px}.sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.sidebar nav a{padding:9px 2px 10px;gap:5px;flex-direction:column;border-radius:8px 8px 0 0;font-size:10px;min-height:57px}.sidebar nav a[aria-current]{box-shadow:inset 0 -3px #8ed8ff}.sidebar svg{width:19px;height:19px}.app-shell main{margin:0;padding:23px 17px}.app-shell .topline{gap:8px}.app-shell .eyebrow{font-size:8px;letter-spacing:.8px}.app-shell .badge{font-size:8px;padding:5px 7px;letter-spacing:.5px}.page-heading{gap:14px;align-items:flex-start;flex-direction:column;margin-top:18px}.page-heading h1{font-size:32px}.page-heading p{font-size:13px}.day-picker{width:100%;display:grid;grid-template-columns:auto 1fr;gap:0 12px;align-items:center;font-size:11px}.day-picker input{margin:0;max-width:200px;justify-self:end}.day-picker small{grid-column:2;text-align:right;margin-top:4px}.app-shell .preview-warning{font-size:10px;line-height:1.6}.app-shell .totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.app-shell .metric{min-height:123px;padding:15px}.app-shell .metric:last-child{grid-column:1/-1;min-height:auto;display:grid;grid-template-columns:1fr 1fr;align-items:center}.app-shell .metric:last-child strong{text-align:right;margin:0}.app-shell .metric:last-child .detail{grid-column:1/-1}.summary-grid,.app-shell .columns{grid-template-columns:1fr}.app-shell .section-heading{gap:12px;align-items:flex-start}.app-shell .section-heading>button{max-width:145px}.app-shell .panel{padding:19px}.food-grid{grid-template-columns:1fr}.pillar-links{gap:10px}.pillar-links a{padding:16px}.app-shell .entry .actions{gap:8px}.app-shell .row{gap:10px}.app-shell .water-panel .columns{gap:15px}.app-shell :target{scroll-margin-top:130px}.app-shell dialog{padding:20px;max-height:calc(100dvh - 24px)}.app-shell footer{gap:10px}.app-shell #page-title:focus{outline:0}}
@media(prefers-reduced-motion:reduce){.app-shell *{scroll-behavior:auto!important;transition:none!important}}
/* Local capture candidate; no external assets. */
.app-shell .capture-panel{margin-top:24px}.capture-steps{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0;color:#44647e;font-size:12px}.capture-steps span{background:#edf3f8;border-radius:20px;padding:9px 13px}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.photo-slot{border:1px dashed #aebfce;border-radius:12px;padding:14px;min-width:0}.photo-slot img{display:block;width:100%;height:160px;object-fit:contain;background:#eff4f8;border-radius:8px;margin:10px 0}.photo-slot input{font-size:11px;max-width:100%}.app-shell .actions{display:flex;gap:10px;flex-wrap:wrap}.app-shell #capture-form{margin-top:25px}.app-shell #capture-nutrients,.app-shell #capture-extra-nutrients{gap:0 14px}.app-shell #capture-confirmed,.app-shell #out-confirmed{width:20px;min-height:20px;vertical-align:middle;margin-right:8px}.app-shell #capture-review,.app-shell #out-review{border:2px solid #7ba4c6}.app-shell #out-nutrients fieldset{margin:15px 0}.app-shell #out-nutrients .row label{font-size:11px}.app-shell .product-tags{color:#426882;font-size:11px}.app-shell .duplicate-match{padding:12px;border:1px solid #ba985b;border-radius:8px;margin:10px 0;background:#fff7e8}.app-shell #capture-close{flex-shrink:0}.app-shell .pillar-links{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
@media(max-width:760px){.sidebar nav{display:flex;overflow-x:auto;scrollbar-width:thin;gap:3px}.sidebar nav a{min-width:72px;flex:1 0 72px}.app-shell .photo-grid{grid-template-columns:1fr}.photo-slot img{height:180px}.app-shell .capture-panel .section-heading{flex-wrap:wrap}.app-shell #capture-photos input{font-size:13px}.app-shell .pillar-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.app-shell #screen-fridge>.section-heading{flex-direction:column;align-items:stretch}.app-shell #screen-fridge>.section-heading>.actions{width:100%}.app-shell #screen-fridge>.section-heading>.actions button{flex:1;min-width:0;white-space:normal}.app-shell .capture-panel .actions button{max-width:100%;white-space:normal}}
#food-edit-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}#food-edit-form{min-width:0}#food-edit-form .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#food-edit-form label,#food-edit-form input,#food-edit-form textarea{min-width:0;max-width:100%;box-sizing:border-box}#food-edit-title{overflow-wrap:anywhere}#food-edit-confirmed{width:20px;min-height:20px;margin-right:8px}#food-edit-form button{margin:6px 6px 6px 0;max-width:100%}@media(max-width:600px){#food-edit-form .row{grid-template-columns:minmax(0,1fr)}}
