@import url('./ui/capacity.css');
@font-face{font-family:Inter;src:url('../assets/inter-latin.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:Fraunces;src:url('../assets/fraunces-latin.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--serif:Fraunces,Georgia,serif;--sans:Inter,Arial,sans-serif;--fs-xs:11px;color-scheme:light}
/* Colour tokens (light). Paper surfaces (.report, .doc, labels) re-declare the light values so they stay white with dark text in dark mode. */
:root,.report,.doc,.label-sheet,.label-preview{--cream:#f7f4ed;--ivory:#fffdf8;--espresso:#49352b;--espresso-hover:#634b3c;--ink:#3e332c;--muted:#72675d;--line:#e5dfd4;--line-soft:#eee8de;--line-strong:#d5cbbf;--line-input:#968a7c;--line-dashed:#d9cdbb;--sage:#e5ebdf;--sage-line:#dce3d4;--sage-soft:#eef1e8;--green:#4f6548;--terra:#9e4d35;--peach:#f4e7dd;--peach-line:#e6cfc1;--surface-sidebar:#f2eee5;--surface-input:#fffefb;--surface-sunken:#f3efe6;--surface-hover:#eee8dd;--surface-raised:#f9f6ef;--surface-count:#eae4d8;--surface-avatar:#e5ddce;--surface-band:#eee9df;--surface-note:#f1ebdf;--surface-estimate:#fbf8f2;--photo-bg:#decfb9;--nav-bg:#fdfaf3f5;--nav-hover:#e9e3d6;--nav-active:#ede6d9;--nav-active-strong:#e4ddcf;--badge-bg:#faf7f1;--track:#eee9dd;--bar-fill:#879474;--focus:#5d7052;--summary-bg:#eeeadd;--summary-line:#e1dac9;--summary-divider:#d8cebd;--suggested-bg:#dfe7d7;--suggested-line:#d0dbc5;--missing-bg:#f8f3e9;--missing-line:#cbbba2;--invalid-bg:#fff5f0;--chosen-bg:#f3f5ed;--lock-bg:#efe7da;--lock-ink:#6f5c47;--emblem-1-bg:#f0e6d7;--emblem-1:#977558;--emblem-2-bg:#e9ecdf;--emblem-2:#7d8b63;--emblem-3-bg:#f3e4dc;--emblem-3:#a97c64;--illus-bg:#f0e7d8;--illus-line:#d8c6ad;--illus-ink:#a1855f;--decor-warm:#a4947f;--decor-warm-text:#7a6852;--count-ink:#665b51;--decor-sage:#8e9a80;--toast-bg:#2f3a2b;--toast-ink:#fbf8f2;--toast-error-bg:#8b432d;--disabled-bg:#ebe5da;--disabled-ink:#665b51;--shadow-soft:#30201025;--shadow-strong:#251a1240;--backdrop:#3f302666;--mark-ring:0 0 0 0 transparent}
.report,.doc,.label-sheet,.label-preview{color-scheme:light}
/* Dark theme follows the OS. Screen only, so print stays light. */
@media screen and (prefers-color-scheme:dark){:root{color-scheme:dark;--cream:#1b1613;--ivory:#25201b;--espresso:#eadfcf;--espresso-hover:#f7eee2;--ink:#efe7dc;--muted:#b6aa9a;--line:#3b322b;--line-soft:#312923;--line-strong:#52473d;--line-input:#7a6b5e;--line-dashed:#574a3e;--sage:#222d24;--sage-line:#34443a;--sage-soft:#26312a;--green:#a6bd98;--terra:#eba08a;--peach:#3b2620;--peach-line:#5a3a2f;--surface-sidebar:#201b17;--surface-input:#1f1a16;--surface-sunken:#2c2620;--surface-hover:#332b24;--surface-raised:#29231e;--surface-count:#362d26;--surface-avatar:#3b3129;--surface-band:#221c18;--surface-note:#2f2822;--surface-estimate:#221d19;--photo-bg:#3b3129;--nav-bg:#201b17f2;--nav-hover:#2f2721;--nav-active:#3a3029;--nav-active-strong:#3a3029;--badge-bg:#2c2620;--track:#3a312a;--bar-fill:#93a884;--focus:#a6bd98;--summary-bg:#2a2420;--summary-line:#3d342c;--summary-divider:#4a3f35;--suggested-bg:#263329;--suggested-line:#36473b;--missing-bg:#29221c;--missing-line:#5d4c3a;--invalid-bg:#3b231d;--chosen-bg:#232c24;--lock-bg:#3a3029;--lock-ink:#dcc8ae;--emblem-1-bg:#3a2f24;--emblem-1:#d6b48f;--emblem-2-bg:#2b3326;--emblem-2:#b6c69b;--emblem-3-bg:#3b2b23;--emblem-3:#dca68c;--illus-bg:#3a2f24;--illus-line:#5d4c3a;--illus-ink:#d6b48f;--decor-warm:#a69582;--decor-warm-text:#a69582;--count-ink:#b6aa9a;--decor-sage:#8fa083;--toast-bg:#3d4d38;--toast-ink:#f3efe6;--toast-error-bg:#8e3f2a;--disabled-bg:#322a24;--disabled-ink:#a99d8e;--shadow-soft:#00000055;--shadow-strong:#00000080;--backdrop:#0a0706b3;--mark-ring:0 0 0 1px #52473d}}
@media print{:root{color-scheme:light}}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:14px/1.55 var(--sans);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button,a,input,select,textarea,summary{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--green)}button{color:inherit}button .icon{flex-shrink:0}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--serif);font-weight:450;line-height:1.17;letter-spacing:-.035em}h1{font-size:clamp(34px,3.2vw,48px);margin-bottom:12px}h2{font-size:26px;margin-bottom:12px}h3{font-size:22px}p{color:var(--muted)}small{font-size:11px}strong{font-weight:550}button{border:0;background:none}img{max-width:100%;display:block}.icon{width:21px;height:21px;display:inline-block;vertical-align:middle;flex-shrink:0}.button{display:inline-flex;gap:11px;justify-content:center;align-items:center;min-height:46px;padding:12px 20px;background:var(--espresso);color:var(--ivory);border:1px solid var(--espresso);border-radius:7px;font-size:13px;font-weight:550;line-height:1.35;transition:background .15s,transform .15s;white-space:normal}.button:hover:not(:disabled){background:var(--espresso-hover);transform:translateY(-1px)}.button.secondary{background:transparent;color:var(--espresso);border-color:var(--line-strong)}.button.secondary:hover:not(:disabled){background:var(--surface-hover)}.button.small{min-height:40px;padding:10px 15px;font-size:12px}.wide{width:100%}.actions{display:flex;align-items:center;gap:12px}.wrap{flex-wrap:wrap}.text-button{display:inline-flex;gap:8px;align-items:center;color:var(--espresso);padding:8px 0;font-size:12px;min-height:40px;text-align:left}.text-button:hover{text-decoration:underline}.text-button .icon{width:17px;height:17px}.icon-button{display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;flex-shrink:0;border-radius:5px}.icon-button:hover{background:var(--peach)}.quiet{color:var(--muted);font-size:12px;line-height:1.65}.eyebrow{text-transform:uppercase;letter-spacing:1.7px;font-size:10px;font-weight:600;color:var(--muted);line-height:1.6}.brand{display:flex;align-items:center;gap:11px;text-align:left;padding:0;flex-shrink:0}.brand strong{font-size:17px;letter-spacing:1.3px;font-weight:650;display:block;white-space:nowrap}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:.4px;margin-top:2px}.brand img{width:40px;height:40px}.language-select{display:flex;align-items:center;gap:5px;font-size:11px}.language-select .icon{width:16px;height:16px}.language-select select{background:transparent;border:0;min-height:40px;max-width:100px;color:var(--ink);font-size:11px;padding:2px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.skip-link{position:fixed;top:-70px;left:15px;background:var(--espresso);color:var(--ivory);padding:10px;z-index:100}.skip-link:focus-visible{top:10px}.sage-text{color:var(--green)}.terracotta,.danger{color:var(--terra)}
/* Public page */
.landing{max-width:1600px;margin:auto}.landing-nav{height:104px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:0 6.5%}.landing-nav nav{display:flex;gap:32px}.landing-nav nav button{font-size:12px;color:var(--muted);padding:10px 0}.hero{display:grid;grid-template-columns:1.04fr 1fr;align-items:stretch;padding:25px 5% 40px 6.5%;gap:50px;min-height:620px}.hero-copy{align-self:center;padding:20px 0 45px}.hero .eyebrow{display:flex;align-items:center;gap:10px;letter-spacing:1.3px;font-size:9px}.tiny-line{width:24px;height:1px;background:var(--decor-warm)}.hero h1{font-size:clamp(55px,5.6vw,84px);font-weight:410;line-height:1.03;max-width:630px;letter-spacing:-4px;margin:22px 0 27px}.hero-description{max-width:445px;font-size:15px;line-height:1.9;margin-bottom:28px}.hero-cta{padding:17px 23px;min-height:54px}.hero-footnote{display:flex;align-items:center;gap:8px;font-size:10px;margin-top:14px}.hero-footnote .icon{width:14px;height:14px;color:var(--green)}.hero-signature{display:flex;align-items:center;gap:18px;margin-top:42px;font-size:8px;letter-spacing:1.5px;color:var(--muted)}.hero-signature span+span{border-left:1px solid var(--line-strong);padding-left:18px}.hero-image{position:relative;min-width:0;min-height:550px;max-height:670px;border-radius:120px 8px 8px 8px;overflow:hidden;background:var(--photo-bg)}.hero-image>img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:48% center}.photo-caption{position:absolute;bottom:0;left:0;right:0;padding:60px 25px 24px;display:flex;align-items:center;gap:10px;background:linear-gradient(transparent,rgba(40,24,12,.5));color:white;font-family:var(--serif);font-size:19px}.hero-seal{position:absolute;top:22px;right:22px;background:#f5eee0e8;width:110px;height:110px;border:1px solid #a38b6777;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:8px;letter-spacing:1.6px;text-align:center;transform:rotate(9deg);outline:1px solid #f5eee0a0;outline-offset:5px}.hero-seal em{font:27px var(--serif);letter-spacing:-1px}.hero-seal span{font-size:5px;letter-spacing:.7px;margin-top:7px}.promise-strip{margin:0 6.5%;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 8%;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}.promise-strip>span{display:flex;align-items:center;gap:12px}.promise-strip .icon{color:var(--decor-sage)}.promise-strip i{height:25px;border-left:1px solid var(--line)}.how-section{padding:85px 8%}.how-section h2{font-size:37px;line-height:1.25;max-width:730px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:55px;margin-top:45px}.step-number{display:block;font:italic 34px var(--serif);color:var(--decor-sage);margin-bottom:20px}.steps h3{font-size:23px;margin-bottom:14px}.steps p{font-size:13px;line-height:1.9}.example-section{background:var(--surface-band);padding:50px 8%;display:grid;grid-template-columns:.8fr 1.2fr;gap:50px;align-items:center}.example-section h2{font-size:34px}.example-section p{font-size:12px;margin-bottom:0}.example-equation{display:flex;align-items:center;gap:20px;justify-content:space-between}.example-equation>div{display:flex;flex-direction:column;gap:10px}.example-equation strong{font:32px var(--serif)}.example-equation small{color:var(--muted);font-size:11px}.example-equation span{font-size:10px;color:var(--muted)}.example-equation>b{font-size:20px;font-weight:400;color:var(--decor-warm)}.example-equation .sage{color:var(--green)}.closing{text-align:center;padding:80px 20px}.closing h2{font-size:39px}.closing p{margin-bottom:25px}.landing footer{margin:0 6.5%;padding:35px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:30px}.landing footer>span{font-family:var(--serif);font-size:17px}.landing footer>small{color:var(--muted)}
/* Workspace */
.app-shell{display:flex;min-height:100vh}.sidebar{width:238px;flex-shrink:0;border-right:1px solid var(--line);background:var(--surface-sidebar);padding:30px 21px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;overflow:auto;z-index:10}.sidebar .brand{gap:9px}.sidebar .brand img{width:35px;height:35px}.sidebar .brand strong{font-size:14px;letter-spacing:1.2px}.sidebar .brand small{font-size:8px}.sidebar-label{margin:49px 10px 15px;font-size:9px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;border-radius:7px;min-height:46px;color:var(--muted);font-size:12px;text-align:left}.nav-item .icon{width:19px;height:19px}.nav-item:hover{background:var(--nav-hover)}.nav-item.active{color:var(--espresso);background:var(--nav-active-strong);font-weight:550}.sidebar-bottom{margin-top:auto;padding-top:45px}.plan-card{background:var(--surface-raised);border:1px solid var(--line);border-radius:8px;padding:17px;margin:0 3px 22px}.plan-card>div:first-child{display:flex;gap:7px;align-items:center;font-size:12px}.plan-dot{width:6px;height:6px;border-radius:50%;background:var(--bar-fill)}.plan-card p{font-size:10px;margin:10px 0 7px}.progress-track{height:3px;background:var(--track);border-radius:4px;overflow:hidden}.progress-track span{height:100%;display:block;background:var(--bar-fill)}.plan-card .text-button{font-size:10px;margin-top:9px;min-height:28px}.sidebar-slogan{margin:22px 12px 0;font:19px/1.4 var(--serif);color:var(--muted)}.sidebar-slogan em{font-size:18px}.app-area{margin-left:238px;min-width:0;flex:1}.app-topbar{height:83px;border-bottom:1px solid var(--line);padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--cream)}.breadcrumb{font-size:9px;color:var(--muted);letter-spacing:1px}.breadcrumb>span{margin:0 12px;color:var(--decor-warm)}.market-chip{display:flex;align-items:center;gap:6px;font-size:10px;white-space:nowrap}.market-chip .icon{width:14px;height:14px;color:var(--decor-sage)}.avatar{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--surface-avatar);font:17px var(--serif);margin-left:8px}.workspace-main{max-width:1440px;margin:auto;padding:40px 40px 55px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.page-heading .eyebrow{font-size:9px;margin-bottom:10px}.page-heading h1{font-size:37px;line-height:1.2;margin-bottom:8px}.page-heading p:last-child{font-size:12px;margin-bottom:0}.page-heading>.button{flex-shrink:0}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.metric{padding:21px 23px 19px;border:1px solid var(--line);border-radius:9px;background:var(--ivory);min-width:0}.metric.sage{background:var(--sage);border-color:var(--sage-line)}.metric-top{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:11px}.metric-top .icon{width:18px;height:18px;color:var(--decor-sage)}.metric>strong{display:block;font:36px/1.25 var(--serif);margin:15px 0 10px;letter-spacing:-1px;overflow-wrap:anywhere}.metric.sage>strong{color:var(--green)}.metric p{font-size:9px;margin:0}.estimate-note{display:flex;align-items:center;gap:6px;font-size:9px;margin:12px 0 29px;color:var(--muted)}.estimate-note .icon{width:12px;height:12px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0}.section-heading h2{font-size:24px;margin:0;display:flex;gap:10px;align-items:center}.count{display:inline-flex;font:11px var(--sans);align-items:center;justify-content:center;min-width:23px;height:23px;border-radius:50%;background:var(--surface-count);color:var(--count-ink)}.recipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.recipe-card{border:1px solid var(--line);background:var(--ivory);border-radius:9px;padding:20px 20px 0;overflow:hidden;min-width:0}.recipe-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.recipe-emblem{display:flex;justify-content:center;align-items:center;width:46px;height:46px;border-radius:13px;background:var(--emblem-1-bg);color:var(--emblem-1)}.recipe-card:nth-child(3n+2) .recipe-emblem{background:var(--emblem-2-bg);color:var(--emblem-2)}.recipe-card:nth-child(3n) .recipe-emblem{background:var(--emblem-3-bg);color:var(--emblem-3)}.recipe-emblem .icon{width:25px;height:25px}.badge{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:20px;padding:3px 9px;color:var(--muted);font-size:9px;background:var(--badge-bg)}.recipe-card h3{font-size:23px;line-height:1.25;margin:0 0 7px;overflow-wrap:anywhere}.recipe-card h3 button{font:inherit;letter-spacing:inherit;padding:0;text-align:left}.recipe-description{font-size:10px;min-height:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 20px}.recipe-numbers{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-bottom:18px}.recipe-numbers small{display:block;font-size:9px;color:var(--muted)}.recipe-numbers strong{font-size:17px;margin-top:4px;display:block;overflow-wrap:anywhere}.recipe-card-foot{margin:0 -20px;padding:5px 15px 5px 20px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;color:var(--muted)}.recipe-card-foot .icon-button{width:28px;height:33px}.recipe-card-foot .icon{width:17px;height:17px}.insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:26px}.panel{background:var(--ivory);border:1px solid var(--line);border-radius:9px;padding:22px}.panel-heading{display:flex;align-items:center;gap:12px}.panel-heading h2{font-size:22px;margin:0 0 5px}.panel-heading p{font-size:9px;margin:0}.soft-icon{display:inline-flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:9px;color:var(--green);background:var(--sage);flex-shrink:0}.soft-icon.peach{background:var(--peach);color:var(--decor-warm)}.rank-list{list-style:none;margin:17px 0 0;padding:0}.rank-list li{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line-soft)}.rank{font:17px var(--serif);color:var(--decor-warm-text);min-width:2.2ch;font-variant-numeric:tabular-nums lining-nums}.rank-list button{text-align:left;font-size:11px;flex:1;padding:0}.rank-list small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.rank-list strong{color:var(--green);font-size:11px}.price-change{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid var(--line);font-size:10px}.price-change small{display:block;color:var(--muted);margin-top:3px;font-size:9px}.price-change>span{font-size:10px}.quiet-empty{min-height:130px;display:flex;align-items:center;justify-content:center;gap:15px;max-width:380px;margin:auto}.quiet-empty .icon{color:var(--decor-sage);width:28px;height:28px}.quiet-empty p{font-size:11px;line-height:1.7;margin:0}.empty-state{text-align:center;background:var(--ivory);border:1px dashed var(--line-dashed);border-radius:10px;padding:35px 24px}.empty-state h2{font-size:29px;margin-bottom:12px}.empty-state>p:not(.eyebrow){max-width:420px;margin:0 auto 22px;font-size:12px;line-height:1.8}.empty-state>.icon{width:44px;height:44px;color:var(--decor-sage);margin-bottom:20px}.empty-state .eyebrow{font-size:8px;margin:16px 0 10px}.empty-illustration{position:relative;width:72px;height:65px;display:flex;align-items:center;justify-content:center;border:1px solid var(--illus-line);border-radius:18px 18px 25px 25px;background:var(--illus-bg);margin:0 auto}.empty-illustration>.icon{width:38px;height:38px;color:var(--illus-ink)}.empty-illustration>span{position:absolute;right:-8px;bottom:-5px;display:flex;align-items:center;justify-content:center;font-size:23px;width:28px;height:28px;background:var(--sage);color:var(--green);border-radius:50%;border:3px solid var(--ivory)}.app-footer{padding:20px 40px;border-top:1px solid var(--line);font-size:9px;color:var(--muted);display:flex;gap:20px;justify-content:space-between}.app-footer span:last-child{display:flex;align-items:center;gap:5px;font-size:8px}.app-footer .icon{width:11px;height:11px}.mobile-nav{display:none}
/* Recipe editor and forms */
.back-link{margin:-12px 0 12px;color:var(--muted)}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}.editor-main{min-width:0}.form-panel{padding:25px;margin-bottom:20px}.form-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}.form-heading>span{font:19px var(--serif);color:var(--decor-warm-text)}.form-heading h2{font-size:24px;margin:0}.form-heading>.icon{width:16px;height:16px;margin-left:auto;color:var(--decor-warm)}.section-intro{font-size:11px;line-height:1.8;margin:-5px 0 20px}.field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:10px;color:var(--muted)}.field>span{font-weight:500;line-height:1.4}.field input,.field select,.field textarea,input[type=search]{min-height:43px;border:1px solid var(--line-input);border-radius:5px;background:var(--surface-input);padding:10px 11px;width:100%;color:var(--ink);font-size:12px;outline-offset:2px}.field input:focus,.field select:focus,.field textarea:focus,input[type=search]:focus{outline:2px solid var(--focus);border-color:var(--focus)}.field input::placeholder,.field textarea::placeholder{color:var(--muted);font-size:11px}.field input[aria-invalid=true]{border-color:var(--terra);background:var(--invalid-bg)}.field textarea{resize:vertical;min-height:75px;line-height:1.7}.field input:disabled,fieldset:disabled input{background:var(--surface-sunken);color:var(--muted)}.basics-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}.basics-grid+.quiet{margin:12px 0 18px}.two-fields,.cost-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.cost-fields{border:0;margin:0;padding:0}.two-fields+.quiet{margin-top:15px;font-size:10px}.ingredient-row{padding:18px 0 20px;border-top:1px solid var(--line)}.ingredient-row-head{display:flex;gap:10px;align-items:flex-end;margin-bottom:17px}.ingredient-row-head>.field{flex:1}.ingredient-row-head>.field>span{font-size:9px}.ingredient-index{font:16px var(--serif);color:var(--decor-warm-text);min-width:20px;padding-bottom:11px}.ingredient-row-head .icon-button{color:var(--decor-warm);margin-bottom:2px}.ingredient-row-head .icon{width:17px;height:17px}.ingredient-fields{display:grid;grid-template-columns:1.2fr 1fr 1.1fr 1fr 1.1fr;gap:9px}.ingredient-fields .field{font-size:9px}.ingredient-fields input,.ingredient-fields select{font-size:11px;padding:9px 7px;min-height:40px}.ingredient-meta{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px;margin-top:16px}.line-cost{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:8px;padding-top:12px}.line-cost small{font-size:9px;color:var(--muted)}.line-cost strong{font-size:13px;color:var(--green)}details{margin-top:13px;font-size:10px;color:var(--muted)}details summary{cursor:pointer;min-height:28px;display:list-item}details>.field{max-width:180px}details>.quiet{font-size:10px;margin:4px 0 10px}.unit-note{font-size:9px;margin:14px 0 0}.summary-panel{position:sticky;top:22px}.summary-card{background:var(--summary-bg);border:1px solid var(--summary-line);border-radius:10px;padding:24px}.summary-card>.eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:10px}.summary-card h2{font-size:27px;margin-bottom:24px}.cost-summary{display:flex;flex-direction:column;gap:10px;padding-bottom:17px;border-bottom:1px solid var(--summary-divider)}.cost-summary>div,.batch-total,.profit-details>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:11px}.cost-summary>div>span{color:var(--muted)}.cost-summary strong{font-size:11px}.batch-total{margin:16px 0}.batch-total strong{font-size:16px}.unit-total{display:flex;flex-direction:column;border-bottom:1px solid var(--summary-divider);padding:0 0 20px;margin-bottom:20px}.unit-total>span{font-size:11px;color:var(--muted)}.unit-total strong{font:43px var(--serif);letter-spacing:-1px;margin-top:5px;overflow-wrap:anywhere}.suggested-price{background:var(--suggested-bg);border:1px solid var(--suggested-line);border-radius:7px;padding:17px;display:flex;flex-direction:column;color:var(--green)}.suggested-price>span{font-size:11px}.suggested-price>strong{font:34px var(--serif);margin:7px 0}.suggested-price>small{font-size:9px}.suggested-price .text-button{color:var(--green);font-size:10px;justify-content:space-between;margin-top:6px;min-height:26px;padding:5px 0}.profit-details{padding-top:18px;display:flex;flex-direction:column;gap:10px}.profit-details>small{font-size:9px;color:var(--muted);line-height:1.65}.profit-details strong{color:var(--green)}.profit-details.loss strong,.profit-details.loss p{color:var(--terra)}.profit-details.loss p{font-size:11px}.summary-card>.quiet{font-size:9px;margin:12px 0 0}.cost-basis{font-size:9px;border-top:1px solid var(--summary-divider);padding-top:15px;margin:15px 0 0;line-height:1.7}.missing-state{background:var(--missing-bg);border:1px dashed var(--missing-line);padding:14px;margin-bottom:20px;border-radius:6px}.missing-state>.icon{width:16px;height:16px;color:var(--decor-warm)}.missing-state h3{font:500 12px var(--sans);letter-spacing:0;margin:8px 0}.missing-state p{font-size:10px;margin:0}.validation-list{padding-left:16px;font-size:10px;color:var(--terra);line-height:1.7;margin-bottom:0}.validation-list li+li{margin-top:5px}.warning{color:var(--terra);background:var(--peach);font-size:11px;padding:12px;border-radius:6px}.editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px}.search-box{display:flex;align-items:center;gap:10px;width:330px;max-width:100%;margin-bottom:25px}.search-box .icon{width:18px;height:18px;color:var(--muted)}
/* Data, preferences, test plans */
.table-wrap{overflow:auto;padding:0}table{border-collapse:collapse;width:100%;text-align:left;font-size:11px}th{padding:16px 18px;background:var(--surface-sunken);font-weight:500;color:var(--muted);font-size:10px}td{padding:18px;border-top:1px solid var(--line);overflow-wrap:anywhere}td small{display:block;color:var(--muted);font-size:9px;line-height:1.7;margin-top:3px}.settings-grid{max-width:850px}.settings-grid .panel p{font-size:12px;line-height:1.9}.settings-grid .panel h2{margin-top:5px}.preference-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin:23px 0}.plans-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.plan-option{display:flex;flex-direction:column;padding:25px}.plan-option.chosen{border-color:var(--focus);background:var(--chosen-bg)}.plan-option .badge{align-self:flex-start;margin-bottom:20px}.plan-option h2{font-size:25px}.plan-price{font:32px var(--serif);margin:10px 0}.plan-price small{display:block;font:10px var(--sans);color:var(--muted);margin-top:6px}.plan-option ul{list-style:none;padding:0;margin:18px 0 30px;flex:1}.plan-option li{display:flex;align-items:flex-start;gap:8px;font-size:11px;margin-bottom:15px}.plan-option li .icon{width:14px;height:14px;color:var(--green);margin-top:2px}#scan-limit{max-width:180px}.form-panel #scan-limit{margin-bottom:20px}.sim-fields{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:18px}#simulation-result{margin-top:20px}#simulation-result .metrics{gap:12px}#simulation-result .metric{padding:17px}#simulation-result .metric>strong{font-size:28px}.usage-list{list-style:none;padding:0;margin:20px 0 0}.usage-list li{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-top:1px solid var(--line);font-size:12px}.analysis-row{margin-top:20px}.analysis-row>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:11px}.analysis-row small{font-size:9px;color:var(--muted)}.analysis-track{height:5px;background:var(--track);border-radius:6px;overflow:hidden;margin:9px 0 5px}.analysis-track>span{display:block;height:100%;background:var(--bar-fill)}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:var(--espresso);color:var(--ivory);box-shadow:0 5px 20px var(--shadow-soft);border-radius:8px;padding:14px 20px;max-width:600px;width:max-content;max-width:calc(100vw - 30px);font-size:12px;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast.error{background:var(--toast-error-bg)}dialog{border:1px solid var(--line);border-radius:12px;background:var(--ivory);color:var(--ink);max-width:450px;width:calc(100% - 30px);padding:30px;box-shadow:0 15px 80px var(--shadow-strong)}dialog::backdrop{background:var(--backdrop);backdrop-filter:blur(2px)}dialog h2{font-size:24px;line-height:1.45;margin-bottom:25px}dialog .actions{justify-content:flex-end}.recovery{max-width:650px;margin:15vh auto;padding:40px}
/* Print sheet */
.report-controls{display:flex;justify-content:space-between;gap:20px;max-width:1000px;margin:24px auto;padding:0 20px}.report{background:white;max-width:1000px;margin:0 auto 40px;padding:50px;color:var(--ink)}.report>header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:30px}.report>header>div{text-align:right;font-size:12px}.report>header small{display:block;font-size:10px;margin-top:4px}.report h1{font-size:42px;overflow-wrap:anywhere}.report h2{font-size:23px;margin-top:24px}.report-description{white-space:pre-wrap;overflow-wrap:anywhere}.report-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:25px 0}.report-metrics .metric>strong{font-size:28px}.report table{table-layout:fixed}.report table th,.report table td{padding:12px 9px}.report table th:nth-child(1){width:22%}.report table th:nth-child(2){width:16%}.report table th:nth-child(3){width:24%}.report table th:nth-child(4){width:23%}.report-bottom{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:15px 0 25px}.report dl{font-size:11px}.report dl>div{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid var(--line)}.report dd{margin:0;font-weight:550}.report>p:not(.eyebrow){font-size:11px}.report-disclaimer{font-size:9px!important;line-height:1.8}.report>footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:20px;font-size:10px;margin-top:30px}
@media(min-width:1500px){.workspace-main{padding:45px 55px 60px}.app-topbar{padding:0 55px}.hero{min-height:700px}}
@media(max-width:1180px){.landing-nav{padding:0 5%}.landing-nav nav{gap:20px}.hero{gap:30px;padding-left:5%}.hero h1{font-size:65px}.hero-image{min-height:550px}.sidebar{width:208px;padding:26px 16px}.sidebar .brand strong{font-size:12px}.app-area{margin-left:208px}.workspace-main{padding:30px 25px 40px}.app-topbar{padding:0 25px}.editor-grid{grid-template-columns:minmax(0,1fr) 275px;gap:18px}.form-panel{padding:20px}.summary-card{padding:20px}.ingredient-fields{grid-template-columns:repeat(3,1fr)}.ingredient-meta{grid-template-columns:1fr 1fr}.line-cost{grid-column:span 2;flex-direction:row;justify-content:space-between;padding:5px 0}.page-heading h1{font-size:32px}.page-heading>.actions{flex-wrap:wrap;justify-content:flex-end}.recipe-grid{gap:14px}.recipe-card{padding:17px 15px 0}.recipe-card-foot{margin:0 -15px;padding-left:15px}.recipe-numbers strong{font-size:14px}.metric{padding:18px}.metric>strong{font-size:30px}.plan-option{padding:20px}.plans-grid{gap:12px}.plan-price{font-size:27px}.breadcrumb{font-size:8px}}
@media(max-width:960px){.landing-nav nav{display:none}.hero{gap:25px;min-height:550px}.hero h1{font-size:55px;letter-spacing:-2.7px}.hero-description{font-size:13px}.hero .eyebrow{font-size:8px;letter-spacing:.9px}.hero-image{min-height:490px;border-radius:85px 8px 8px 8px}.hero-signature{font-size:6px;gap:10px}.hero-seal{width:90px;height:90px}.example-section{grid-template-columns:1fr;gap:25px}.example-equation{justify-content:flex-start;gap:40px}.hero-copy{padding-bottom:20px}.sidebar{width:188px;padding:25px 12px}.sidebar .brand{gap:7px}.sidebar .brand img{width:29px;height:29px}.sidebar .brand strong{font-size:11px;letter-spacing:.8px}.sidebar .brand small{font-size:7px}.app-area{margin-left:188px}.nav-item{font-size:11px;padding:12px 10px;gap:9px}.workspace-main{padding:28px 20px 40px}.app-topbar{height:70px;padding:0 20px}.breadcrumb{display:none}.app-topbar{justify-content:flex-end}.page-heading{align-items:flex-start}.page-heading h1{font-size:31px}.page-heading>.button{font-size:11px;padding:11px 13px}.recipe-grid{grid-template-columns:repeat(2,1fr)}.metrics{gap:10px}.metric{padding:15px}.metric-top{font-size:10px}.metric>strong{font-size:27px}.metric p{font-size:8px}.insight-grid{grid-template-columns:1fr}.editor-grid{grid-template-columns:1fr}.summary-panel{position:static}.summary-card{padding:28px}.editor-bottom{margin-bottom:10px}.ingredient-fields{grid-template-columns:repeat(5,1fr)}.ingredient-meta{grid-template-columns:1fr 1fr 1fr}.line-cost{grid-column:auto;flex-direction:column;align-items:flex-end;justify-content:center}.app-footer{padding:20px;flex-direction:column;gap:8px}.plans-grid{grid-template-columns:1fr}.plan-option ul{margin-bottom:15px}.sim-fields{grid-template-columns:1fr 1fr}.report{padding:35px}.report-metrics .metric>strong{font-size:23px}}
@media(max-width:700px){.landing-nav{height:83px;padding:0 22px;gap:12px}.brand img{width:34px;height:34px}.brand strong{font-size:13px;letter-spacing:1px}.brand small{font-size:8px}.landing-nav>.actions{gap:0}.landing-nav>.actions>.button{display:none}.language-select{font-size:10px}.hero{grid-template-columns:1fr;padding:20px 22px 28px;gap:30px}.hero-copy{padding:8px 0 0}.hero .eyebrow{font-size:8px;letter-spacing:1.05px}.hero h1{font-size:60px;line-height:1.03;max-width:480px;letter-spacing:-3px;margin:19px 0 21px}.hero-description{font-size:13px;line-height:1.9;max-width:500px;margin-bottom:24px}.hero-cta{min-height:51px;font-size:12px}.hero-footnote{font-size:9px}.hero-signature{display:none}.hero-image{min-height:340px;height:340px;border-radius:85px 7px 7px 7px}.hero-image>img{object-position:center center}.hero-seal{top:18px;right:18px;width:88px;height:88px;font-size:6px}.hero-seal em{font-size:24px}.hero-seal span{font-size:4px}.photo-caption{font-size:18px;padding:50px 20px 20px}.promise-strip{margin:0 22px;padding:21px 0;gap:18px;align-items:flex-start}.promise-strip>span{flex-direction:column;align-items:flex-start;font-size:9px;gap:10px;flex:1;line-height:1.5}.promise-strip i{display:none}.promise-strip .icon{width:20px;height:20px}.how-section{padding:55px 26px}.how-section h2{font-size:30px}.how-section .eyebrow{font-size:8px}.steps{grid-template-columns:1fr;gap:24px;margin-top:30px}.steps article{position:relative;padding-left:55px}.step-number{position:absolute;left:0;top:0;font-size:29px}.steps h3{font-size:24px;margin-bottom:9px}.steps p{font-size:12px;margin:0}.example-section{padding:34px 26px}.example-section h2{font-size:30px}.example-equation{gap:12px;justify-content:space-between;align-items:flex-start}.example-equation strong{font-size:25px}.example-equation small{font-size:8px}.example-equation span{font-size:8px}.example-equation>b{font-size:14px;margin-top:33px}.closing{padding:55px 25px}.closing h2{font-size:32px}.closing p{font-size:12px}.landing footer{margin:0 22px;align-items:flex-start;flex-direction:column;gap:20px;padding:28px 0}.landing footer>span{font-size:17px}.sidebar{display:none}.app-area{margin:0}.app-topbar{height:60px;padding:0 20px;justify-content:space-between}.app-topbar:before{content:'BAKERY COST';font-size:12px;font-weight:650;letter-spacing:1px}.app-topbar .market-chip{display:none}.app-topbar .avatar{display:none}.app-topbar>.actions{gap:8px}.workspace-main{padding:27px 20px 32px}.page-heading{flex-direction:column;gap:18px;margin-bottom:24px}.page-heading h1{font-size:33px;max-width:470px}.page-heading p:last-child{font-size:11px}.page-heading .eyebrow{font-size:8px}.page-heading>.button{align-self:stretch;font-size:12px}.page-heading>.actions{justify-content:flex-start;width:100%}.page-heading>.actions>.button{flex:1;font-size:11px;padding:12px 8px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metrics>.metric:first-child{grid-column:span 2}.metrics>.metric:first-child>strong{font-size:35px}.metrics>.metric:first-child{padding:19px 20px}.metrics>.metric:first-child .metric-top{font-size:12px}.metric{padding:17px 15px}.metric-top{font-size:10px;align-items:flex-start}.metric-top .icon{width:16px;height:16px}.metric>strong{font-size:26px;letter-spacing:-.6px;margin:13px 0 10px}.metric p{font-size:8px;line-height:1.7}.estimate-note{font-size:8px;align-items:flex-start;line-height:1.65;margin:12px 0 23px}.estimate-note .icon{margin-top:1px}.section-heading{align-items:flex-start;margin:18px 0 15px;gap:12px}.section-heading h2{font-size:25px}.section-heading>.text-button{font-size:9px;white-space:nowrap;padding:2px 0;min-height:30px}.section-heading>.text-button>.icon{width:14px}.count{min-width:19px;height:19px;font-size:9px}.recipe-grid{grid-template-columns:1fr;gap:14px}.recipe-card{padding:20px 20px 0}.recipe-card h3{font-size:26px}.recipe-card-top{margin-bottom:16px}.recipe-emblem{width:45px;height:45px}.recipe-description{font-size:11px}.recipe-numbers strong{font-size:20px}.recipe-numbers small{font-size:10px}.recipe-card-foot{margin:0 -20px;padding-left:20px;font-size:10px}.recipe-card-foot .icon-button{height:40px;width:40px}.empty-state{padding:30px 20px}.empty-state h2{font-size:27px}.empty-state>p:not(.eyebrow){font-size:11px}.empty-state .button{font-size:11px}.insight-grid{gap:16px;margin-top:22px}.panel{padding:20px}.panel-heading h2{font-size:23px}.panel-heading p{font-size:9px}.panel .text-button{font-size:11px}.quiet-empty{min-height:110px}.quiet-empty p{font-size:11px}.app-footer{padding:20px 20px 105px;font-size:9px}.app-footer span:last-child{font-size:8px;line-height:1.8}.mobile-nav{display:grid;position:fixed;bottom:0;left:0;right:0;z-index:25;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);background:var(--nav-bg);backdrop-filter:blur(12px);padding:9px 6px max(10px,env(safe-area-inset-bottom));gap:3px}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;padding:5px 2px;color:var(--muted);min-height:49px;min-width:0;border-radius:6px}.mobile-nav button.active{color:var(--espresso);background:var(--nav-active)}.mobile-nav span{font-size:7px;line-height:1.25;text-align:center;max-width:65px}.mobile-nav .icon{width:21px;height:21px}.back-link{margin-top:-8px}.form-panel{padding:20px 17px}.form-heading{gap:10px}.form-heading h2{font-size:24px}.form-heading>span{font-size:18px}.section-intro{font-size:10px;line-height:1.8}.basics-grid{grid-template-columns:1fr;gap:16px}.field{font-size:10px}.field input,.field select,.field textarea{font-size:16px;min-height:46px;padding:10px}.field input::placeholder,.field textarea::placeholder{font-size:12px}.ingredient-row-head{gap:6px}.ingredient-index{font-size:16px;min-width:17px}.ingredient-row-head .icon-button{width:44px;height:44px}.ingredient-fields{grid-template-columns:1fr 1fr;gap:14px 10px}.ingredient-fields>.field:first-child{grid-column:span 2}.ingredient-fields .field{font-size:10px}.ingredient-fields input,.ingredient-fields select{font-size:16px;padding:10px}.ingredient-meta{grid-template-columns:1fr 1fr;gap:15px 10px}.ingredient-meta>.field:first-child{grid-column:span 2}.line-cost{align-items:flex-end}.line-cost strong{font-size:15px}.ingredient-meta input[type=date]{min-width:0;width:100%;font-size:14px;padding:9px 5px}.two-fields,.cost-fields{grid-template-columns:1fr 1fr;gap:16px 12px}.two-fields>.field>span,.cost-fields>.field>span{min-height:28px}.summary-card{padding:26px}.summary-card h2{font-size:30px}.unit-total strong{font-size:46px}.suggested-price>strong{font-size:38px}.summary-card .quiet{font-size:10px}.validation-list{font-size:11px}.editor-bottom{flex-direction:column;align-items:stretch}.editor-bottom>.button{width:100%}.editor-bottom .text-button{align-self:center}.table-wrap{padding:0}table{min-width:650px;font-size:12px}th{font-size:11px}td small{font-size:10px}.preference-fields{grid-template-columns:1fr;gap:17px}.settings-grid .panel p{font-size:11px}.settings-grid .actions{align-items:stretch;flex-direction:column}.plans-grid .plan-option{padding:25px}.plan-price{font-size:34px}.sim-fields{grid-template-columns:1fr;gap:15px}#simulation-result .metrics{grid-template-columns:1fr}#simulation-result .metric:first-child{grid-column:auto}#simulation-result .metric>strong{font-size:31px}.usage-list{font-size:11px}.toast{bottom:90px;font-size:11px;line-height:1.6}.report-controls{flex-wrap:wrap;gap:10px}.report-controls>.button{flex:1;font-size:11px;padding:12px 8px}.report{margin:0 12px 20px;padding:24px 15px;overflow:auto}.report>header{align-items:flex-start;gap:15px}.report>header>div{font-size:9px;max-width:90px}.report .brand strong{font-size:11px}.report .brand small{font-size:6px}.report .brand img{width:27px;height:27px}.report .brand{gap:6px}.report h1{font-size:34px}.report-metrics{grid-template-columns:1fr}.report-metrics .metric>strong{font-size:30px}.report table{min-width:600px}.report-bottom{grid-template-columns:1fr;gap:5px}.report>footer{gap:20px;font-size:8px}.recovery{margin:40px 20px;padding:25px}}
@media(max-width:360px){.hero h1{font-size:53px}.landing-nav{padding:0 18px}.hero{padding-left:18px;padding-right:18px}.workspace-main{padding-left:15px;padding-right:15px}.metric>strong{font-size:23px}.page-heading h1{font-size:30px}.section-heading h2{font-size:22px}.section-heading .text-button{font-size:8px}.brand strong{font-size:12px}.form-heading h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{@page{margin:16mm 13mm}body{background:white;font-size:10pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}.skip-link,.report-controls,.toast,dialog{display:none!important}.report{width:auto;max-width:none;margin:0;padding:0;overflow:visible}.report header{margin-bottom:18px;padding-bottom:18px}.report .brand img{width:34px;height:34px}.report .brand strong{font-size:13px}.report .brand small{font-size:8px}.report h1{font-size:28pt}.report h2{font-size:16pt;break-after:avoid}.report .eyebrow{font-size:7pt}.report-metrics{grid-template-columns:repeat(3,1fr);gap:12px;break-inside:avoid}.report .metric{padding:14px}.report .metric>strong{font-size:22px}.report .metric p{font-size:8px}.report .metric-top{font-size:9px}.report table{min-width:0;table-layout:fixed;font-size:8pt}.report th{font-size:7pt}.report table td,.report table th{padding:9px 6px}.report td small{font-size:6.5pt}.report thead{display:table-header-group}.report tr{break-inside:avoid}.report-bottom{grid-template-columns:1fr 1fr;gap:24px;break-inside:avoid}.report dl{font-size:8pt}.report>header,.report>footer{break-inside:avoid}.report>footer{font-size:8pt}.report>p{font-size:8pt}.report-disclaimer{font-size:7pt!important}.report .brand{pointer-events:none}.report>header>div{font-size:9px;max-width:none}.report>header small{font-size:8px}.report .icon{width:16px;height:16px}}

/* Readability refinements for financial figures and mobile labels. */
.metric.loss{background:var(--peach);border-color:var(--peach-line)}.metric.loss>strong{color:var(--terra)}
/* Components: market button, chips, badges, banners, tables, sheets, save bar, cards, agenda, empty states */
.market-chip{border:1px solid var(--line);border-radius:20px;padding:6px 12px;min-height:36px;background:var(--ivory)}.market-chip:hover{background:var(--surface-hover)}.market-button{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line-strong);border-radius:20px;padding:6px 13px;min-height:40px;font-size:12px;background:var(--ivory);color:var(--espresso);margin:6px 0 4px;max-width:100%;text-align:left}.market-button .icon{width:15px;height:15px;color:var(--decor-sage)}.market-button:hover{background:var(--surface-hover)}
.gear{display:none}.nav-lock{margin-left:auto;display:inline-flex}.nav-lock .icon{width:13px;height:13px}.tools-label{margin-top:28px}.sidebar nav+.tools-label{margin-top:26px}
.lock-badge{display:inline-flex;align-items:center;gap:3px;margin-left:6px;padding:1px 7px;border-radius:12px;background:var(--lock-bg);color:var(--lock-ink);font-size:10px;font-weight:550;vertical-align:middle}.lock-badge .icon{width:11px;height:11px}.button.locked{opacity:.92}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.chip{border:1px solid var(--line-strong);border-radius:20px;padding:7px 14px;min-height:38px;font-size:12px;background:transparent;color:var(--espresso)}.chip[aria-pressed=true]{background:var(--espresso);color:var(--ivory);border-color:var(--espresso)}.chip[aria-pressed=true]:before{content:'✓ '}.chip:hover:not([aria-pressed=true]){background:var(--surface-hover)}
.tool-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.counter{font-size:11px;color:var(--muted);margin:6px 0 0}.page-heading .market-line{margin:8px 0 0;font-size:12px}.page-heading>div:first-child{min-width:0}
.badge.warn{background:var(--peach);border-color:var(--peach-line);color:var(--terra)}.card-badges{margin:-10px 0 14px}.row-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.info-banner,.notice-card{background:var(--sage);border:1px solid var(--sage-line);border-radius:9px;padding:14px 18px;margin:0 0 20px;font-size:12px;color:var(--ink)}.notice-card p{color:var(--ink);font-size:13px;line-height:1.7}.notice-card .actions{margin-top:10px}
.attention-panel{margin:0 0 22px}.attention-panel h2{font-size:22px}.attention-list{list-style:none;margin:0;padding:0}.attention-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line-soft);font-size:13px}.attention-row>span{flex:0 1 auto;max-width:60ch;min-width:0;overflow-wrap:anywhere}.attention-row>.button{margin-left:auto;flex-shrink:0}.attention-row .icon{width:18px;height:18px;color:var(--decor-sage)}.attention-row.warn .icon,.attention-row.warn>span{color:var(--terra)}.attention-row .text-button{white-space:nowrap}
.quick-actions{margin:0 0 24px}.section-title{font-size:24px;margin:18px 0}.row-link{padding:0;text-align:left;font:inherit;color:inherit}.row-link:hover{text-decoration:underline}.plain-list{list-style:none;margin:10px 0;padding:0}.plain-list li{padding:6px 0;border-bottom:1px solid var(--line-soft);font-size:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}.panel-title{padding:18px 18px 0;font-size:22px}
.table-wrap.reflow td small{display:block}
.picker{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:6px;background:var(--surface-input);margin-top:4px;max-height:260px;overflow:auto}.picker[hidden]{display:none}.picker-option{text-align:left;padding:10px 12px;font-size:12px;border-bottom:1px solid var(--line-soft);min-height:44px}.picker-option:hover,.picker-option:focus-visible{background:var(--surface-sunken)}.combo{flex:1;min-width:0;display:flex;flex-direction:column}.picker-hint{margin:6px 0 0;font-size:12px;color:var(--ink)}.composition{margin-top:20px}.composition h3{font-size:19px;margin-bottom:6px}.logo-preview{width:auto;height:auto;max-width:min(240px,100%);max-height:120px;object-fit:contain;margin:6px 0}
.linked-name{flex:1;min-width:0}.linked-name strong{display:block;font-size:15px;overflow-wrap:anywhere}.linked-summary{font-size:12px;margin:8px 0;color:var(--muted);overflow-wrap:anywhere}.shared-edit{background:var(--peach);border-radius:6px;padding:8px 12px;font-size:12px;color:var(--ink);margin:10px 0}.use-fields{margin-top:12px}.line-actions{margin-top:12px}.line-actions>.button{flex:1}
.disclosure{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px;font-weight:600;color:var(--espresso);text-align:left}.disclosure:before{content:'▸'}.disclosure[aria-expanded=true]:before{content:'▾'}#losses-fields{display:grid;gap:12px;margin-top:8px}#losses-fields[hidden]{display:none}
.field-error{color:var(--terra);font-size:11px;min-height:0}.field-error:empty{display:none}.net-gross{font-size:12px;margin:6px 0}.validation-list.warnings{color:var(--muted)}
.save-bar{display:none}
dialog.wide,#sheet-dialog,#import-dialog{max-width:560px}.sheet h2{margin-bottom:14px}.sheet>p{font-size:13px}dialog p{white-space:pre-line}.sheet .field{margin:10px 0}.sheet .actions{margin-top:18px}.sheet ul{padding-left:18px;font-size:13px;color:var(--muted)}.radio-list{display:flex;flex-direction:column;gap:4px;max-height:50vh;overflow:auto}.radio-row,.check-row{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px}.radio-row.disabled{color:var(--muted)}.allergens{border:0;padding:0;margin:0}.allergens legend{font:22px var(--serif);margin-bottom:10px}.allergen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:2px 12px;margin:8px 0 12px}
#import-dialog table{min-width:0;font-size:12px}#import-dialog th,#import-dialog td{padding:8px}
.status-chip{display:inline-flex;align-items:center;border-radius:20px;padding:2px 10px;font-size:11px;font-weight:550;border:1px solid var(--line);background:var(--badge-bg)}.status-chip.confirmed,.status-chip.inProgress{background:var(--sage-soft);color:var(--green)}.status-chip.ready,.status-chip.delivered{background:var(--sage);color:var(--green)}.status-chip.cancelled{color:var(--muted);text-decoration:line-through}
.totals{display:grid;gap:6px;font-size:13px}.totals>div{display:flex;justify-content:space-between;gap:12px}.totals>div:last-child{font-weight:650;border-top:1px solid var(--line);padding-top:8px}.estimate-card,.recorded-card{border-radius:9px;padding:18px;border:1px dashed var(--line-dashed);background:var(--surface-estimate)}.recorded-card{border-style:solid;background:var(--ivory)}.estimate-card>h2:before{content:'≈ ';color:var(--muted)}
.agenda-day{border-top:1px solid var(--line);padding:12px 0}.agenda-day>h3{font-size:16px;margin-bottom:8px}.agenda-week{display:grid;gap:8px}
.empty-state.locked-state ul{display:inline-block;text-align:left;margin:0 auto 16px}.empty-state.locked-state li{border:0;justify-content:flex-start}
.plan-card p+p{margin-top:4px}.plan-sheet ul{margin:0 0 12px}
.recipe-card h3,.page-heading h1,.linked-summary,td{overflow-wrap:anywhere}
@media screen and (max-width:700px){.gear{display:inline-flex}.app-topbar>.actions{gap:4px}.market-chip{display:none}.page-heading>div:first-child{width:100%}.page-heading>.actions{flex-wrap:wrap}.page-heading>.actions>.button{flex:1 1 140px}.table-wrap.reflow{overflow:visible;background:transparent;border:0}.table-wrap.reflow table{min-width:0;display:block}.table-wrap.reflow thead{display:none}.table-wrap.reflow tbody{display:grid;gap:10px}.table-wrap.reflow tr{display:block;background:var(--ivory);border:1px solid var(--line);border-radius:9px;padding:12px 14px}.table-wrap.reflow td{display:flex;justify-content:space-between;gap:12px;border:0;padding:5px 0;font-size:12px;text-align:right}.table-wrap.reflow td:before{content:attr(data-label);color:var(--muted);text-align:left;flex-shrink:0;max-width:45%}.table-wrap.reflow td:first-child{display:block;text-align:left}.table-wrap.reflow td:first-child:before{content:none}.save-bar{display:flex;position:sticky;bottom:78px;z-index:20;align-items:center;justify-content:space-between;gap:10px;background:var(--nav-bg);border:1px solid var(--line);border-radius:9px;padding:8px 10px;margin-top:14px;font-size:11px}.save-bar span{min-width:0;overflow-wrap:anywhere}.attention-row{flex-wrap:wrap}.chips .button{flex:1 1 auto}dialog{padding:22px 18px;width:calc(100% - 16px)}.allergen-grid{grid-template-columns:1fr 1fr}}
@media screen{.field>span{line-height:1.5}.cost-summary>div,.batch-total,.profit-details>div{font-size:12px}.cost-summary strong{font-size:12px}.cost-basis,.summary-card>.quiet,.profit-details>small,.unit-note{font-size:10px}.summary-card .validation-list{font-size:11px}.sidebar .nav-item{font-size:12px}}
@media screen and (max-width:700px){.mobile-nav span{font-size:9px;max-width:68px}.mobile-nav button{min-height:57px}.mobile-nav{padding-top:6px;padding-bottom:max(7px,env(safe-area-inset-bottom))}.metric-top{font-size:11px}.metric p{font-size:10px}.metric>strong{font-size:26px}.estimate-note{font-size:10px}.section-heading{flex-wrap:wrap}.section-heading h2{font-size:25px}.section-heading>.text-button{font-size:10px}.ingredient-fields .field,.field{font-size:12px}.section-intro{font-size:11px}.quiet,.two-fields+.quiet{font-size:11px}.ingredient-row-head>.field>span{font-size:11px}.panel-heading p{font-size:10px}.app-footer span:last-child{font-size:9px}.badge{font-size:10px}.hero-footnote{font-size:10px}.promise-strip>span{font-size:11px}.validation-list{font-size:11px}.cost-basis{font-size:11px}.toast{bottom:100px}}


/* Brand mark ring in dark, link-buttons never underlined, calmer disabled states, placeholders */
.brand img{border-radius:22%;box-shadow:var(--mark-ring)}
.button,.button:hover{text-decoration:none}
.button:disabled{background:var(--disabled-bg);border-color:var(--line);color:var(--disabled-ink);opacity:1;box-shadow:none;transform:none}
.button.secondary:disabled{background:transparent;border-color:var(--line-strong);border-style:dashed;color:var(--disabled-ink);opacity:1}
.text-button:disabled{color:var(--disabled-ink);opacity:1;text-decoration:none}
.field input::placeholder,.field textarea::placeholder,input[type=search]::placeholder{color:var(--muted);opacity:1}
.button.danger{background:var(--terra);border-color:var(--terra);color:var(--ivory)}
.button.danger:hover:not(:disabled){background:var(--terra);filter:brightness(.92)}
.button.secondary.danger{background:transparent;color:var(--terra);border-color:currentColor}
.button.secondary.danger:hover:not(:disabled){background:var(--peach);filter:none}
.metric>strong,.unit-total strong,.suggested-price>strong,.totals,.recipe-numbers strong,.rank-list strong,.price-change>span,td,.analysis-row span,.analysis-row small,.line-cost strong,.batch-total strong,.cost-summary strong,.shopping-total,.plain-list li>span:last-child{font-variant-numeric:tabular-nums}
.hero-seal{color:#3e332c}
/* Type floor: no reading text below 11px; secondary greys from --muted */
@media screen{
.eyebrow,.page-heading .eyebrow,.empty-state .eyebrow,.summary-card>.eyebrow,.sidebar-label{font-size:11px}
.breadcrumb{font-size:11px}.brand small,.sidebar .brand small{font-size:10px}.market-chip{font-size:12px}
.metric-top{font-size:12px}.metric p{font-size:12px;line-height:1.5}.estimate-note{font-size:12px;color:var(--muted)}
.panel-heading p,.quiet-empty p{font-size:12px}
.recipe-description{font-size:12px}.recipe-numbers small{font-size:11px}
.rank-list button,.rank-list strong{font-size:13px}.rank-list small{font-size:11px}
.price-change,.price-change>span{font-size:12px}.price-change small{font-size:11px}
.badge,.status-chip,.lock-badge{font-size:var(--fs-xs)}.badge{padding:3px 9px}
.app-footer,.app-footer span:last-child{font-size:11px;color:var(--muted)}
.plan-card p{font-size:11px}.plan-card .text-button{font-size:12px}
.field,.ingredient-fields .field,.ingredient-row-head>.field>span{font-size:12px}
th{font-size:11px;color:var(--ink);font-weight:550}td small{font-size:11px}
.analysis-row>div:first-child{font-size:12px}.analysis-row small{font-size:11px}
.cost-basis,.summary-card>.quiet,.profit-details>small,.unit-note,.suggested-price>small,.line-cost small{font-size:11px}
.suggested-price .text-button{font-size:12px;min-height:44px}
.validation-list,.missing-state p,details{font-size:12px}
.hero-signature{font-size:11px;color:var(--muted)}.hero-footnote{font-size:11px}.hero .eyebrow{font-size:11px}
.example-equation small,.example-equation span{font-size:11px}
.sidebar-slogan{color:var(--muted)}
.plan-option li{font-size:13px}.counter{font-size:12px}
.language-select,.language-select select{font-size:12px}.landing-nav nav button{font-size:13px}
.section-intro{font-size:12px}
.toast{font-size:13px}
}
/* Landing: one gutter for every band, seal that fits ES/FR, unbreakable example figures */
.landing{--gutter:6.5%}
.landing-nav{padding-inline:var(--gutter)}.hero{padding-left:var(--gutter);padding-right:var(--gutter)}.promise-strip{margin-inline:var(--gutter)}
.how-section{padding-left:var(--gutter);padding-right:var(--gutter)}.example-section{padding-left:var(--gutter);padding-right:var(--gutter)}.landing footer{margin-inline:var(--gutter)}
.example-equation strong{white-space:nowrap}
@media(max-width:1180px){.landing{--gutter:5%}}
@media(max-width:700px){.landing{--gutter:22px}.how-section,.example-section{padding-left:var(--gutter);padding-right:var(--gutter)}
.hero-seal{width:96px;height:96px}.hero-seal em{font-size:17px;letter-spacing:-.4px}.hero-seal span{display:none}
.example-equation strong{font-size:24px}.promise-strip>span{font-size:12px}}
@media(max-width:480px){.example-equation{flex-direction:column;align-items:flex-start;gap:6px}.example-equation>div{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 12px}.example-equation>div>small{flex-basis:100%}.example-equation>b{transform:rotate(90deg);margin:0 0 0 10px;font-size:16px}}
@media(max-width:360px){.landing{--gutter:18px}}
/* Shell: compact sidebar on short laptop screens so the plan card stays visible */
@media(min-width:701px) and (max-height:960px){.sidebar{padding-top:22px;padding-bottom:16px}.sidebar-label{margin:24px 10px 8px}.sidebar nav+.tools-label,.tools-label{margin-top:16px}.sidebar nav{gap:2px}.nav-item{min-height:40px;padding:9px 12px}.sidebar-bottom{padding-top:16px}.plan-card{padding:12px 14px;margin-bottom:8px}.plan-card p{margin:6px 0 5px}.plan-card .text-button{margin-top:4px;min-height:32px;padding:4px 0}.sidebar-slogan{display:none}}
@media(min-width:701px) and (max-height:840px){.sidebar .brand img{width:30px;height:30px}.sidebar-label{margin:18px 10px 6px}.sidebar nav+.tools-label,.tools-label{margin-top:12px}.nav-item{padding:8px 12px}}
/* Mobile tab bar: legible labels, lock as a badge on the icon */
@media screen and (max-width:700px){
.mobile-nav button{position:relative;min-height:60px;color:var(--muted);justify-content:center;gap:4px}
.mobile-nav button.active{color:var(--espresso)}
.mobile-nav span{font-size:11px;line-height:1.2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-nav .nav-lock{position:absolute;top:3px;left:calc(50% + 6px);margin:0;width:17px;height:17px;border-radius:50%;background:var(--ivory);border:1px solid var(--line);align-items:center;justify-content:center;color:var(--muted)}
.mobile-nav .nav-lock .icon{width:11px;height:11px}
}
/* Toasts read as status, not as buttons */
.toast{display:flex;align-items:flex-start;gap:10px;background:var(--toast-bg);color:var(--toast-ink);line-height:1.5;padding:12px 18px 12px 14px;max-width:min(520px,calc(100vw - 32px));box-shadow:0 8px 28px var(--shadow-strong)}
.toast:empty{display:none}
.toast:before{content:'\2713';font-weight:700;flex-shrink:0}
.toast.error{background:var(--toast-error-bg);color:var(--toast-ink)}
.toast.error:before{content:'!';display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;border:1.5px solid currentColor;font-size:11px;margin-top:1px}
@media screen and (max-width:700px){.toast{bottom:calc(84px + env(safe-area-inset-bottom))}}
/* Dialogs: confirm typography, stacked full-width actions on phones */
#confirm-dialog h2{font:600 17px/1.45 var(--sans);letter-spacing:0;margin-bottom:12px}
#confirm-dialog p{font-size:13px;line-height:1.6;color:var(--ink);margin-bottom:22px}
#confirm-dialog .actions{margin-top:22px}
dialog .actions{flex-wrap:wrap;gap:10px}
@media screen and (max-width:700px){
dialog .actions{flex-direction:column;align-items:stretch;gap:10px}
dialog .actions>.button{width:100%;min-height:48px;justify-content:center}
}
/* Attention panel on phones: action under the message */
@media screen and (max-width:700px){
.attention-row{flex-wrap:wrap;align-items:flex-start;row-gap:2px}
.attention-row>.icon{margin-top:2px}
.attention-row>span{flex:1 1 calc(100% - 30px)}
.attention-row>.button{margin-left:30px;min-height:44px}
}
/* Overview figures */
.metric>strong{overflow-wrap:normal;white-space:nowrap}
@media screen and (max-width:420px){.metrics{grid-template-columns:1fr}.metrics>.metric:first-child{grid-column:auto}.metric>strong{font-size:28px}.metrics>.metric:first-child>strong{font-size:32px}}
/* Recent price changes */
.price-change small{white-space:nowrap}
.price-change .row-link{min-height:44px;display:inline-flex;align-items:center}
@media screen and (max-width:700px){.price-change{flex-direction:column;align-items:flex-start;gap:6px}.price-change>span{font-size:12px}}
/* One primary per screen */
.quick-actions .chips>.button:not(.secondary){background:transparent;color:var(--espresso);border-color:var(--line-strong)}
.quick-actions .chips>.button:not(.secondary):hover:not(:disabled){background:var(--surface-hover)}
@media screen and (max-width:700px){.quick-actions .chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}.quick-actions .chips>:first-child{grid-column:1/-1}.quick-actions .chips>.button{min-height:44px}}
/* Tap targets on touch screens */
@media (pointer:coarse),(max-width:700px){
.section-heading>.text-button,.panel .actions .text-button,.market-button,.rank-list button,.row-link,.chip,.button.small,.market-chip{min-height:44px}
.rank-list button{display:flex;flex-direction:column;justify-content:center}
.icon-button{width:44px;height:44px}
.chip{padding:9px 14px}
}
@media screen and (max-width:700px){.section-heading>.text-button{font-size:12px;padding:0;white-space:normal}.panel .text-button{font-size:12px}}
@media screen and (max-width:360px){.section-heading .text-button{font-size:12px}}
.chip{font-size:13px;line-height:1.25}
/* Empty states */
.empty-illustration{margin:0 auto 22px}
.empty-state h2{font-size:22px;line-height:1.3;max-width:30ch;margin-inline:auto}
.empty-state.locked-state h2{font-size:29px;max-width:none}
.empty-state>p:not(.eyebrow){font-size:13px;line-height:1.7}
.empty-state>p>.text-button{color:var(--espresso);text-decoration:underline;text-underline-offset:3px;font-weight:600;min-height:44px;font-size:13px}
.empty-state>.button,.empty-state>p+.button{margin-top:4px}
.empty-state.compact{padding:28px 20px}.empty-state.compact>.icon{width:32px;height:32px;margin-bottom:12px}.empty-state.compact h2{font-size:20px;margin-bottom:16px}
.recipe-grid>.empty-state,.recipe-grid>.quiet-empty{grid-column:1/-1}
@media screen and (max-width:700px){.empty-state h2{font-size:20px}.empty-state.locked-state h2{font-size:27px}}
/* Locked benefits keep the tick beside the text */
.empty-state.locked-state li{flex-wrap:nowrap;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;padding:5px 0}
.empty-state.locked-state li>.icon{width:16px;height:16px;margin-top:2px;color:var(--green)}
/* Page heading: action aligned with the title on desktop */
@media screen and (min-width:701px){
.page-heading{align-items:flex-start}
.page-heading>.button,.page-heading>.actions{margin-top:24px}
.page-heading>.actions{flex-wrap:wrap;justify-content:flex-end;row-gap:8px}
.page-heading>.actions>.button.secondary{padding:10px 14px;min-height:44px}
.page-heading>.actions>.button:not(.secondary){order:99}
.page-heading>.actions>.text-button{padding:0 6px;min-height:44px}
}
@media screen and (max-width:700px){
.page-heading>.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.page-heading>.actions>.button:not(.secondary){grid-column:1/-1;order:-1}
.page-heading>.actions>.text-button{justify-content:center;min-height:44px}
}
.page-heading+.actions{margin:0 0 18px;gap:8px;align-items:stretch}
/* Recipes list cards */
@media screen{.recipe-card-foot{font-size:12px;line-height:1.4;min-height:52px;color:var(--muted)}.recipe-card-foot small{color:inherit;font-size:inherit}.recipe-card-foot strong{color:var(--ink);font-weight:600}.recipe-card-foot .icon-button{width:44px;height:44px}}
/* Market controls share one height */
.market-button,.page-heading .tool-chips>.button{min-height:44px}
.actions.wrap{row-gap:8px}
/* Recipe editor: save bar, paired fields, disclosures, picker */
@media screen and (max-width:700px){
html{scroll-padding-bottom:150px}
.save-bar{bottom:calc(72px + env(safe-area-inset-bottom));padding:6px 8px;box-shadow:0 6px 24px var(--shadow-strong)}
.save-bar span{font-size:12px;line-height:1.35}
.save-bar .button{white-space:nowrap;min-height:44px;padding:10px 14px;flex-shrink:0}
.two-fields>.field>span,.cost-fields>.field>span{min-height:0}
}
@media screen and (max-width:360px){.save-bar .button .icon{display:none}}
.check-row{align-items:flex-start;line-height:1.45;padding:10px 0}
.check-row input[type=checkbox],.radio-row input{width:20px;height:20px;accent-color:var(--espresso);flex-shrink:0;margin:0}
.check-row:has(input:disabled){color:var(--muted)}
.ingredient-row details summary{min-height:44px;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--espresso)}
.ingredient-row details summary:before{content:'\25B8';font-size:10px}
.ingredient-row details[open] summary:before{content:'\25BE'}
.ingredient-row details summary::-webkit-details-marker{display:none}
.ingredient-row details summary{list-style:none}
.ingredient-row .text-button,.validation-list .text-button{font-size:12px;font-weight:600;color:var(--espresso);text-decoration:underline;text-underline-offset:3px;min-height:44px}
.picker{box-shadow:0 8px 24px var(--shadow-soft);border-radius:8px;border-color:var(--line-strong)}
.picker-option{display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.35}
.picker-option strong{font-weight:600;color:var(--ink)}
.picker-option small{white-space:normal;font-size:11px}
.picker-create{color:var(--green);font-weight:600;border-top:1px solid var(--line);flex-direction:row;align-items:center;flex-wrap:wrap}
/* Report ingredient table becomes cards on phones */
@media screen and (max-width:700px){
.report .table-wrap.reflow{margin:0 0 10px}
.report .table-wrap.reflow table{min-width:0;table-layout:auto}
.report .table-wrap.reflow tr{background:var(--ivory)}
.report .table-wrap.reflow td{padding:5px 0;text-align:right}
.report .table-wrap.reflow td small{display:inline;margin:0 0 0 6px}
.report .table-wrap.reflow td:first-child small{display:block;margin:2px 0 0}
}
/* Shopping list store groups and total */
.shopping-list .group-row th{background:transparent;padding:18px 18px 6px;font:600 11px/1.4 var(--sans);letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);text-align:left}
.shopping-list tbody>.group-row:first-child th{padding-top:12px}
.shopping-total{display:flex;justify-content:flex-end;font:600 16px var(--sans);color:var(--ink);padding:14px 0 0;margin:12px 0 0;border-top:1px solid var(--line)}
.panel .shopping-total{padding-bottom:4px}
#scale-value{max-width:160px}
@media screen and (max-width:700px){
.table-wrap.reflow tr.group-row{background:none;border:0;padding:12px 2px 0}
.table-wrap.reflow tr.group-row th{display:block;padding:0;background:none}
.table-wrap.reflow td{overflow-wrap:normal}
.table-wrap.reflow td:empty{display:none}
.share-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.share-actions>.button{min-height:44px;width:100%}
}
/* Labels setup */
.form-panel>.two-fields+.field{margin-top:16px}
.field input[type=date]{min-width:0;font-variant-numeric:tabular-nums}
@media screen and (max-width:360px){.two-fields:has(input[type=date]){grid-template-columns:1fr}}
.print-controls{align-items:center}
/* Pantry item form, history panel and bottom bar, stock rows */
#pantry-form .form-panel>*+*{margin-top:18px}
#pantry-form .form-panel>.quiet{margin-top:8px}
#pantry-form .allergens>*+*{margin-top:12px}
.allergens{min-width:0}
.allergen-grid{min-width:0}
.allergen-grid .check-row{min-width:0;overflow-wrap:anywhere}
@media screen and (max-width:700px){.allergen-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
#pantry-form .form-panel>h2,#pantry-form .form-panel>.allergens{margin-top:0}
@media (min-width:701px){#pantry-form .ingredient-fields{grid-template-columns:repeat(3,1fr);gap:16px}#pantry-form .two-fields{gap:16px}#pantry-form .basics-grid{grid-template-columns:1fr 1fr;gap:16px}#pantry-form .editor-bottom{margin-top:8px}#pantry-form .editor-bottom>.button.secondary{margin-left:auto}}
@media (max-width:400px){#pantry-form .two-fields,.sheet .two-fields{grid-template-columns:1fr}}
.panel.table-wrap{margin-bottom:20px}
.panel.table-wrap>.panel-title{padding:22px 22px 12px;margin:0}
.panel.table-wrap>.quiet{padding:0 22px 16px;margin:0}
.stock-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:14px 0}
.stock-row>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 220px}
.stock-row>div:first-child small{color:var(--muted);font-size:12px;line-height:1.5}
.stock-row .badge{align-self:flex-start;margin-top:4px}
.stock-row .row-link{min-height:44px;margin:-8px 0}
@media screen and (max-width:700px){.stock-row .actions,#pantry-form .form-panel>.actions.wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}.stock-row .actions .button,#pantry-form .form-panel>.actions.wrap .button{padding-inline:6px}}
/* Duplicates side by side */
.duplicate-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:6px 0 16px}
.duplicate-item{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:9px;padding:16px;background:var(--cream)}
.duplicate-item p{margin:0}
.duplicate-item>strong{font-size:15px}
.duplicate-item .button{margin-top:auto;align-self:stretch}
.duplicate-item>p:last-of-type{margin-bottom:12px}
@media screen and (max-width:700px){.duplicate-group>.button.secondary{width:100%}}
/* Vertical rhythm between panels */
.panel:not(.form-panel)+.panel,.panel+.actions,.panel+.estimate-card,.estimate-card+.panel,.actions+.editor-bottom,.plain-list+.panel,.panel+.empty-state{margin-top:16px}
.form-panel{margin-bottom:16px}
#order-form>.form-panel{margin-bottom:0}
#order-form>*+*{margin-top:16px}
#order-form>.editor-bottom{margin-top:20px}
.status-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 18px}
.status-bar>.quiet,.status-bar>p{flex-basis:100%;margin:0}
/* Orders agenda and list cards */
.order-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin-top:12px}
.order-grid:first-child{margin-top:0}
.order-card{background:var(--ivory);border:1px solid var(--line);border-radius:9px;padding:14px 16px;min-width:0}
.order-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.order-card .order-card-top .status-chip{flex-shrink:0}
.order-card h3{font-size:18px;line-height:1.3;margin:6px 0 2px}
.order-card h3 .row-link{min-height:44px;margin:-10px 0;display:inline-flex;align-items:center;font:inherit;letter-spacing:inherit}
.order-card>p{margin:0}.order-card>.quiet{margin:2px 0 6px}
.agenda-day>h3{font:600 13px/1.4 var(--sans);letter-spacing:0;color:var(--ink);margin-bottom:8px}
.agenda-day.empty{padding:6px 0}.agenda-day.empty>h3{font-weight:400;color:var(--muted);margin:0}
@media screen and (max-width:700px){.agenda-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 12px}.agenda-nav strong{flex-basis:100%}.agenda-nav .button.small{min-width:44px}}
/* Orders heading tools */
@media screen and (max-width:700px){.tool-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tool-chips>.button{justify-content:flex-start;min-height:44px;padding:10px 12px;font-size:12px;text-align:left;min-width:0;flex-wrap:nowrap}.tool-chips>.button svg{flex:none}.tool-chips>.button span{min-width:0;overflow-wrap:break-word}.tool-chips>.button:only-child{grid-column:1/-1}}
/* Order editor items */
.order-item{padding:14px 0 16px;border-top:1px solid var(--line)}
.order-item:first-child{border-top:0;padding-top:4px}
.order-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.order-item-head strong{font-size:15px}
.order-item-head .badge{border-color:transparent;background:var(--sage);color:var(--green)}
.order-item-head .icon-button{width:44px;height:44px;margin:-10px -10px -10px 0;color:var(--decor-warm)}
.order-item-head .icon{width:18px;height:18px}
.line-total{display:flex;justify-content:flex-end;gap:8px;margin:10px 0 0;font-weight:600;font-size:14px;color:var(--ink);font-variant-numeric:tabular-nums}
.add-item{margin-top:14px;padding-top:14px;border-top:1px dashed var(--line-dashed);align-items:end}
.add-item>.button{min-height:46px}
.lock-note{display:flex;align-items:flex-start;gap:8px;background:var(--surface-note);border-radius:6px;padding:8px 12px;font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 12px}
.lock-note .icon{width:14px;height:14px;margin-top:2px}
#order-form .form-panel h2:not(:first-child){margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
#order-form .two-fields+.two-fields,#order-form .form-panel>.field+.two-fields,#order-form .form-panel>.text-button+.two-fields{margin-top:14px}
#order-form .text-button{min-height:44px}
/* Customers and documents lists */
.customer-row,.document-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 16px;padding:10px 0}
.customer-row>div,.document-row>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 220px}
.customer-row small,.document-row small{color:var(--muted);font-size:12px}
.customer-row .row-link,.document-row .row-link{min-height:44px;margin:-8px 0;display:inline-flex;align-items:center;font-size:14px}
.document-row{position:relative}
.document-row .row-link:after{content:'';position:absolute;inset:0}
.document-row>span{display:inline-flex;align-items:center;gap:10px;font-variant-numeric:tabular-nums}
.document-row>span:after{content:'\203A';color:var(--muted);font-size:18px}
.document-row:hover{background:var(--surface-hover)}
/* Ledger and taxes rows */
.plain-list li>span:last-child{display:inline-flex;align-items:center;gap:4px 8px;flex-wrap:wrap}
.plain-list .text-button{min-height:44px;font-size:13px;text-decoration:none}.plain-list li>span:last-child .text-button{padding:0 10px}
.plain-list .text-button:hover{text-decoration:underline}
.plain-list .text-button.danger{color:var(--terra)}
.tax-row{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;padding:12px 0}
.tax-row>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.tax-row small{display:block;color:var(--muted);font-size:12px}
.tax-row>.button{flex-shrink:0}
.tax-list+.button{margin-top:16px}
.month-nav{margin:0 0 12px}.page-heading+.month-nav{align-items:center}
.month-nav+.actions{margin-bottom:20px}
.insight-grid+section.panel,.insight-grid~.warning{margin-top:20px}
.insight-grid~section.panel>h2{font-size:20px}
.insight-grid~section.panel>ul+h2{margin-top:28px}
@media screen and (max-width:700px){.plain-list li>span:last-child{width:100%;justify-content:flex-end}.tax-row>.button{min-height:44px}}
/* Insights margins, section chips */
.margin-group{margin-top:18px}
.margin-group>h3{font:600 11px/1.4 var(--sans);letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);margin:0 0 4px}
.margin-group .analysis-row{display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:center}
.margin-group .analysis-row>div:first-child{grid-column:1/-1}
.margin-group .analysis-row>.analysis-track{margin:8px 0 4px}
.margin-group .analysis-row>small{font-size:12px;font-weight:600;color:var(--ink);text-align:right;min-width:48px}
.impact-open>.plain-list{flex-basis:100%;margin:6px 0 8px 18px;padding-left:12px;border-left:2px solid var(--line)}
.impact-open>.plain-list li{font-size:12px;color:var(--muted)}
@media screen and (max-width:400px){.chips:has(>.chip:nth-child(2):last-child){display:grid;grid-template-columns:1fr 1fr}.chips:has(>.chip:nth-child(2):last-child)>.chip{text-align:center}}
/* Settings, business form, backup, import report, plan cards */
.settings-grid .panel>.button+h3,.settings-grid .panel>.actions+h3{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.settings-grid .panel>.soft-icon{margin-bottom:10px}
@media screen and (max-width:700px){.settings-grid .panel>.button{width:100%;justify-content:center}}
#business-form .form-panel{display:grid;gap:16px}
#business-form .form-panel>*{margin:0}
#business-form .two-fields{align-items:end}
#business-form .basics-grid{grid-template-columns:1fr 1fr}
@media screen and (max-width:700px){#business-form .basics-grid{grid-template-columns:1fr}}
.logo-field{display:grid;gap:8px}
.form-panel .button+.quiet,.form-panel .actions+.quiet{margin-top:12px}
.form-panel>.button+.button,.form-panel>.warning+.button,.form-panel>.button+.warning{margin-top:12px}
.warning{line-height:1.5;font-size:13px}
.warning .text-button{min-height:44px;font-weight:600;color:var(--terra);text-decoration:underline;padding:0 4px}
#import-dialog th,#import-dialog td{text-align:right;font-variant-numeric:tabular-nums}
#import-dialog th:first-child,#import-dialog td:first-child,#import-dialog th[scope=row]{text-align:left}
#import-dialog thead th{font-size:11px;line-height:1.3}
#import-dialog .table-wrap+p,#import-dialog .table-wrap~ul+p{margin-top:14px;font-size:13px}
.sheet .plain-list{padding-left:0}
.plan-price{font-size:clamp(22px,2.2vw,28px);line-height:1.2;min-height:2.4em}
@media(max-width:1180px){.plan-price{font-size:24px}}
@media(max-width:700px){.plan-price{font-size:24px;min-height:0}.plans-grid .plan-option{padding:22px}}
.plan-option li{line-height:1.5}
@media(max-width:700px){.landing-nav .brand{flex-shrink:1;min-width:0}.landing-nav .brand>span{min-width:0}.landing-nav>.actions{flex-shrink:0}.language-select select{max-width:96px}}
/* Starter catalog, recipe templates, reference prices, barcode lookup, data sources */
.picker-group{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.picker-group-label{margin:0;padding:8px 12px 4px;font-size:var(--fs-xs);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.picker-catalog small{color:var(--muted)}
.price-hint-slot:empty{display:none}
.price-hint{margin:12px 0 4px;padding:12px 14px;border:1px dashed var(--line-dashed);border-radius:8px;background:var(--surface-raised);font-size:12px;color:var(--ink);min-width:0}
.price-hint .eyebrow{margin:0 0 4px}
.price-hint-line{margin:0 0 8px;font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums}
.price-hint-region{max-width:320px;margin:0 0 8px}
.price-hint-region select{width:100%}
.price-hint-actions{align-items:center;gap:8px 12px;margin:0 0 8px}
.price-hint-fills{margin:0 0 8px;font-size:12px}
.price-hint-attribution{margin:0 0 4px;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.price-hint-meta{margin:0;font-size:12px;color:var(--muted)}
.price-hint-actions .button .icon{width:16px;height:16px}
.price-hint-none{margin:8px 0 0;font-size:12px}
.pack-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 0}
.pack-chips .quiet{font-size:12px}
.allergen-suggestion{background:var(--sage-soft);border:1px solid var(--sage-line);border-radius:8px;padding:10px 14px;margin:0 0 12px;font-size:12px}
.allergen-suggestion p{margin:0 0 8px;overflow-wrap:anywhere}
.barcode-panel{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:12px 16px}.barcode-panel p{font-size:13px}
.barcode-panel p{margin:0;flex:1 1 220px;min-width:0}
.barcode-video{display:block;width:100%;max-height:260px;margin:10px 0;border-radius:8px;background:#000;object-fit:cover}
.barcode-video[hidden]{display:none}
.template-banner strong{display:block;font-size:14px;margin-bottom:4px}
.template-banner p{margin:0 0 6px}
.template-missing{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 14px}
.template-missing li{display:flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}
.template-missing .text-button{min-height:44px;font-weight:600;text-decoration:underline;padding:0 2px}
.template-gallery .chips{margin:4px 0 12px}
.template-gallery .search-box{width:100%;margin-bottom:8px}
.template-gallery [data-tpl-list]{min-height:min(52vh,460px)}
.template-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;max-height:min(52vh,460px);overflow:auto}
.sheet .template-list{padding-left:0;color:var(--ink)}
.template-card{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-input);min-width:0}
.template-card>div{min-width:0}
.template-card h3{margin:0 0 2px;font-size:15px;overflow-wrap:anywhere}
.template-card p{margin:0 0 4px;font-size:12px}
.template-card .button{flex-shrink:0;min-height:44px}
.template-lines{list-style:none;padding:0;margin:8px 0 12px;max-height:min(48vh,420px);overflow:auto}
.sheet .template-lines{padding-left:0;color:var(--ink)}
.template-lines li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line-soft);font-size:13px;min-width:0}
.template-lines li>span:first-child{min-width:0;overflow-wrap:anywhere}
.template-lines li>span:last-child{flex-shrink:0;font-variant-numeric:tabular-nums;color:var(--muted)}
.source-list{list-style:none;margin:12px 0 0;padding:0}
.source-list li{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-top:1px solid var(--line-soft);font-size:12px;overflow-wrap:anywhere}
.source-list strong{font-size:13px}
.empty-alt{margin:12px 0 0}
.empty-alt .text-button{min-height:44px;gap:6px}
@media(max-width:420px){.template-card{flex-direction:column;align-items:stretch}.template-card .button{width:100%}.price-hint-region{max-width:none}}
.catalog-groups{display:flex;flex-direction:column;gap:20px;margin-top:14px}
.catalog-count{margin:0;font-size:12px}
.catalog-group h2{margin:0 0 8px;font-size:17px}
.catalog-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:8px}
.catalog-row{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-input);min-width:0}
.catalog-row>div{min-width:0}
.catalog-row h3{margin:0;font-size:15px;overflow-wrap:anywhere}
.catalog-row .catalog-packs{margin:2px 0 0;font-size:12px;overflow-wrap:anywhere}
.catalog-row .button{flex-shrink:0;min-height:44px;gap:6px}
.empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.essentials-list{margin:0 0 12px;padding-left:20px;columns:2 180px;column-gap:20px;font-size:14px}
.essentials-list li{break-inside:avoid;overflow-wrap:anywhere}
@media(max-width:420px){.catalog-row{padding:10px 12px}.catalog-row .button{max-width:46%;padding:8px 10px;white-space:normal;text-align:center;justify-content:center}.empty-actions>.button{width:100%;justify-content:center}}
/* Shared fixes */
[hidden]{display:none!important}
.nowrap{white-space:nowrap}
@media screen and (max-width:700px){.table-wrap.reflow .history-pct{display:none}}
.picker-option,.picker-group{flex-shrink:0}
.picker-option[aria-selected=true]{background:var(--surface-sunken);outline:2px solid var(--focus);outline-offset:-2px}
@media (forced-colors:active){.picker-option[aria-selected=true]{outline-color:Highlight}}
fieldset.radio-list{border:0;padding:0;margin:0 0 12px;min-width:0}
fieldset.radio-list legend{padding:0;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--ink)}
.file-button:focus-within{outline:2px solid var(--green);outline-offset:2px}
.margin-below{color:var(--ink)}
.locked-actions{justify-content:center}
.market-fixed{margin:0 0 4px}
.merge-summary{margin:0 0 10px;color:var(--ink)}
.status-cancel{margin-left:auto}
.mark-paid{margin-top:10px}
.totals>.totals-sub{padding-left:14px;color:var(--muted);font-size:12px}
.plain-list li>span.amount{width:auto}
.used-in li{flex-wrap:nowrap}
.used-in-cost{display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:2px}
.used-in-cost small{font-size:11px}
.delta{white-space:nowrap}
.price-delta{font-weight:600}.price-delta.cost-up{color:var(--terra)}.price-delta.cost-down{color:var(--green)}
.impact-head{display:inline-flex;align-items:flex-start;gap:6px}
.impact-head .chevron{width:16px;height:16px;margin-top:2px;transition:transform .15s}
.impact-head[aria-expanded=true] .chevron{transform:rotate(90deg)}
.insight-grid>.panel+.panel,.plans-grid>.panel+.panel{margin-top:0}
.toast.info:before{content:'i';display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;border:1.5px solid currentColor;font-size:11px;margin-top:1px;font-style:italic}
.app-area:has(.page-heading .market-button) .app-topbar .market-chip{display:none}
.settings-grid #stale-days{max-width:120px}
#label-size{width:100%;max-width:100%;text-overflow:ellipsis}
.validation-list li+li{margin-top:2px}
.agenda-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-bottom:12px}
.agenda-controls>.chips,.agenda-controls>.agenda-nav{margin:0}
.chips.segmented{gap:0}.chips.segmented>.chip{border-radius:0;margin-left:-1px}.chips.segmented>.chip:first-child{border-radius:20px 0 0 20px;margin-left:0}.chips.segmented>.chip:last-child{border-radius:0 20px 20px 0}.chips.segmented>.chip[aria-pressed=true]:before{content:none}
.agenda-nav .button .icon{width:18px;height:18px}
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:16px;height:16px;cursor:pointer;background:var(--muted);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
input[type=search]::-webkit-search-cancel-button:hover{background:var(--espresso)}
.two-fields{align-items:stretch}.two-fields>.field{display:flex;flex-direction:column}.two-fields>.field>input,.two-fields>.field>select{margin-top:auto}
@media screen and (min-width:900px){#order-form>.panel,#order-form>.form-panel,#order-form>#order-estimate,#customer-form>.panel{max-width:720px}#order-form .totals{max-width:420px}}
#customer-form .editor-bottom{justify-content:flex-start}#customer-form .editor-bottom>.text-button.danger{margin-left:auto}
@media screen and (max-width:420px){#customer-form .two-fields{grid-template-columns:1fr}}
@media screen and (max-width:400px){#order-form .add-item{grid-template-columns:1fr}.quick-actions .chips{grid-template-columns:1fr}.quick-actions .chips>.button{justify-content:flex-start}.template-gallery .chips{flex-wrap:nowrap;overflow-x:auto;gap:6px}.template-gallery .chip{flex:0 0 auto;padding:9px 12px}.doc-lines td:nth-child(2),.doc-lines th:nth-child(2){white-space:normal}}
@media screen and (min-width:768px){.share-actions{display:flex;flex-wrap:wrap;gap:8px}.share-actions>.button{width:auto}.shopping-list td:not(:first-child),.shopping-list th:not(:first-child){text-align:right}}
@media screen and (max-width:700px){.promise-strip{display:none}.page-heading .actions>button[type=submit]{display:none}}
@media screen and (min-width:701px){.save-bar{display:none}}
@media screen and (max-width:700px){.report .table-wrap.reflow td:first-child{font-weight:600;font-size:14px}.report .table-wrap.reflow td .nowrap{white-space:nowrap}}
.print-controls .quiet{margin:0;flex:1;min-width:0}
.allergen-line{margin:6px 0 0;font-size:13px;color:var(--muted)}
/* ---- 0.5 nutrition estimate (W-NUTR): the panel follows the theme on screen and stays light in print (.doc tokens). */
.nutrition-layout{display:grid;grid-template-columns:minmax(0,480px) minmax(0,1fr);gap:24px;align-items:start}.nutrition-main,.nutrition-side{min-width:0}
@media screen and (max-width:1000px){.nutrition-layout{grid-template-columns:minmax(0,1fr)}}
.nutrition-panel{border:2px solid var(--ink);border-radius:6px;padding:14px 16px;background:var(--ivory);color:var(--ink);min-width:0;max-width:480px;overflow-wrap:anywhere;break-inside:avoid}
.nutrition-panel h2{font:700 20px/1.2 var(--sans);margin:0 0 8px;color:var(--ink)}
.nutrition-banner{margin:0 0 10px;padding:8px 10px;border:1px solid var(--line-strong);border-radius:4px;background:var(--surface-note);font-size:12px;line-height:1.45;color:var(--ink)}
.nutrition-serving{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px;margin:0;padding:0 0 6px;border-bottom:6px solid var(--ink);font-size:13px}
.nutrition-panel table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:13px}
.nutrition-panel th,.nutrition-panel td{padding:5px 4px;border-top:1px solid var(--line-strong);background:transparent;color:var(--ink);font-size:13px;line-height:1.35;overflow-wrap:anywhere;vertical-align:top}
.nutrition-panel thead th{font-size:11px;font-weight:600;color:var(--muted);border-top:0}
.nutrition-panel thead th:first-child{width:38%}.nutrition-panel thead th{overflow-wrap:break-word;hyphens:auto}
.nutrition-panel td{text-align:right;font-variant-numeric:tabular-nums}
.nutrition-panel thead th:not(:first-child){text-align:right}
.nutrition-panel tr.main th{font-weight:700}.nutrition-panel tr.sub th{padding-left:16px;font-weight:400}
.nutrition-panel tr[data-nutrient=energyKcal] th,.nutrition-panel tr[data-nutrient=energyKcal] td{font-size:16px;font-weight:700;border-bottom:3px solid var(--ink)}
.nutrition-foot{margin:8px 0 0;font-size:11px;line-height:1.45;color:var(--muted)}
.nutrition-main>.chips{margin-bottom:12px}.nutrition-actions{margin-top:14px}
.nutrition-missing .text-button{display:inline;padding:0;min-height:0}
.nutrition-values{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:0 18px;margin:0 0 12px}
.nutrition-values>div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line-soft);padding:5px 0;font-size:13px;min-width:0}
.nutrition-values dt{color:var(--muted);min-width:0}.nutrition-values dd{margin:0;font-weight:600;text-align:right;white-space:nowrap}
.nutrition-link{margin:8px 0 4px}.nutrition-link .actions{margin-top:6px}
.nutrition-edit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px 12px;margin:12px 0}
.nutrition-doc .nutrition-panel{max-width:110mm;border-color:#222;background:white}
@media print{.nutrition-panel{break-inside:avoid}}
/* 0.5 photos: frames filled with blob: URLs (photo-field.js); the missing state names "Photo not on this device". */
.photo-frame{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:var(--surface-sunken);color:var(--muted);border-radius:8px;flex-shrink:0;vertical-align:middle}
.photo-frame img{display:block;width:100%;height:100%;object-fit:cover}
.photo-frame .icon{width:20px;height:20px}
.photo-frame.thumb{width:46px;height:46px}
.photo-frame.full{width:100%;max-width:420px;aspect-ratio:4/3;border-radius:10px}
.photo-frame.full img{object-fit:contain}
.photo-frame.full[data-photo-state=missing]{flex-direction:column;gap:6px;padding:12px;text-align:center;font-size:13px}
.photo-frame.full.empty .icon{width:36px;height:36px;opacity:.5}
.photo-missing-text{overflow-wrap:anywhere}
.recipe-emblem.has-photo{background:transparent;padding:0;overflow:hidden}
.recipe-emblem.has-photo .photo-frame{width:100%;height:100%;border-radius:inherit}
.photo-field h2{margin-top:0}
.photo-preview{margin:4px 0 10px}
.check-row .list-thumb{width:40px;height:40px}
.unused-photos{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.doc-item{display:inline-flex;align-items:center;gap:8px;min-width:0}
.doc-item>span:last-child{min-width:0;overflow-wrap:break-word}
.photo-frame.doc-thumb{width:44px;height:44px;border-radius:4px;background:#f3efe6;color:#5f564d}
/* V05-INT: the cake quote preview's photo (the quote's own image; invoices carry no photos). */
.doc-photo{margin:6px 0 12px}.doc-photo .photo-frame.full{max-width:70mm;background:#f3efe6;color:#5f564d}

/* ---- 0.5 suppliers (moved from src/ui/suppliers.css: a <link> inside rendered views loaded late and let layouts overflow until it arrived) */
/* Supplier names and contacts may be long, including unbroken text. */
.supplier-screen { min-width: 0; overflow-wrap: anywhere; }
.supplier-screen .customer-row { min-width: 0; flex-wrap: wrap; }
.supplier-screen .page-heading > div { min-width: 0; }
.supplier-screen button { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.supplier-screen input, .supplier-screen select, .supplier-screen textarea { min-width: 0; max-width: 100%; }
.supplier-screen td, .supplier-screen th { overflow-wrap: anywhere; }
.supplier-picker { min-width: 0; max-width: 100%; }
.supplier-picker select { min-width: 0; width: 100%; max-width: 100%; }
.supplier-screen .table-wrap.reflow td { overflow-wrap: anywhere; }
@media screen and (max-width: 700px) {
  .supplier-screen .table-wrap.reflow tbody { grid-template-columns: minmax(0, 1fr); }
  .supplier-screen .table-wrap.reflow td { flex-wrap: wrap; }
}
.supplier-shopping .group-row th { overflow-wrap: anywhere; }
@media screen and (max-width: 700px) {
  .supplier-shopping .table-wrap.reflow tbody { grid-template-columns: minmax(0, 1fr); }
}

.pwa-update {position: fixed; z-index: 30; bottom: 5rem; left: 1rem; right: 1rem; max-width: 36rem; margin: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;}
.pwa-update[hidden] {display: none;}
@media print {.pwa-update {display: none;}}

/* PWA shell insets also protect landscape notches and the standalone status bar. */
.app-topbar{padding-top:env(safe-area-inset-top);min-height:calc(60px + env(safe-area-inset-top))}
@media(max-width:700px){.app-topbar{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}.mobile-nav{padding-left:max(6px,env(safe-area-inset-left));padding-right:max(6px,env(safe-area-inset-right))}}
.pwa-update{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));max-width:calc(100vw - 24px);overflow-wrap:anywhere}

/* W-TAX: long source URLs and tax fieldsets at 320px and enlarged text. */
#tax-form { min-width: 0; overflow-wrap: anywhere; }
#tax-form fieldset { min-width: 0; max-width: 100%; }
#tax-form input, #tax-form select { min-width: 0; max-width: 100%; }
#tax-form button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
[data-testid="order-tax-lines"] fieldset { min-width: 0; }

/* W-ANALYTICS: readable tables, no chart animation; printing uses light ink. */
#analytics-view { min-width:0; overflow-wrap:anywhere }
#analytics-view .field { max-width:100% }
#analytics-view .share-actions .button {flex:1 1 180px;overflow-wrap:normal}
#analytics-view .chip[aria-current=page] {background:var(--espresso);color:var(--ivory);border-color:var(--espresso)}
#analytics-view table { width:100%; table-layout:fixed }
#analytics-view th, #analytics-view td { overflow-wrap:anywhere; white-space:normal }
@media screen and (max-width:700px) {
  #analytics-view caption {display:block;width:100%;padding:8px 0;text-align:left}
  #analytics-view tbody th[scope=row] {display:block;width:100%;background:transparent;border:0;padding:5px 0;text-align:left}
}
@media print { #analytics-view {color:#222;background:white} #analytics-view .panel {color:#222;background:white;border-color:#ccc} #analytics-view .analytics-controls, #analytics-view .share-actions {display:none!important} }
@media print {
  body:has(#analytics-view) .sidebar, body:has(#analytics-view) .app-topbar,
  body:has(#analytics-view) .mobile-nav, body:has(#analytics-view) .app-footer,
  body:has(#analytics-view) .page-heading button {display:none!important}
  body:has(#analytics-view) .app-shell {display:block}
  body:has(#analytics-view) .app-area {margin:0}
  body:has(#analytics-view) .workspace-main {padding:0;max-width:none}
}

/* V07 iOS and touch. env(safe-area-inset-*) is 0 outside notched iPhones, so these rules change nothing on desktop web or Android. */
/* Safe areas: shell-less screens (print controls, recovery), the status-bar strip, and the landscape notch (Safari / PWA; the iPhone app is portrait only). */
@media screen{
.report-controls{margin-top:max(24px,calc(env(safe-area-inset-top) + 8px));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
.recovery{margin-top:max(15vh,calc(env(safe-area-inset-top) + 16px))}
body::before{content:'';position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top);background:var(--cream);z-index:30;pointer-events:none}
}
@media screen and (max-width:700px){.recovery{margin-top:max(40px,calc(env(safe-area-inset-top) + 16px))}}
@media screen and (max-width:700px) and (orientation:landscape){.workspace-main{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}}
@media screen and (min-width:701px){
.app-shell{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.sidebar{left:env(safe-area-inset-left);box-shadow:calc(-1 * env(safe-area-inset-left)) 0 0 var(--surface-sidebar)}
}
/* iOS zooms into any focused field under 16px. One floor for every text field on touch screens, at every width (landscape included). */
@media screen and (pointer:coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea{font-size:16px!important}}
/* A select whose longest or selected option is wider than its box must not widen the page (WebKit counts that text as overflow). */
select{contain:paint}
.table-wrap.reflow td .field,.table-wrap.reflow td .field select{min-width:0;max-width:100%}
/* 44px tap targets */
details>summary{min-height:44px;padding-block:12px}
@media (pointer:coarse),(max-width:700px){.text-button,.text-button.back-link{min-height:44px;min-width:44px}.nutrition-missing .text-button{display:inline-flex;align-items:center;min-height:44px}}
.back-link,.text-button.back-link{min-height:44px;min-width:44px}
.recipe-card h3 button{min-height:44px}
.standing-calendar-grid .text-button{width:100%;min-height:44px}
.badge.example-chip{background:var(--sage);border-color:var(--sage-line);color:var(--green);font-weight:600}.example-banner p{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}.example-list{margin:8px 0 14px;padding-left:18px;list-style:disc}.example-list li{margin:4px 0;line-height:1.5}.example-settings{margin-top:18px;border-top:1px solid var(--line-soft);padding-top:14px}.example-settings h3{margin:0 0 6px}
