@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#30252a;--muted:#796f74;--plum:#491d31;--lime:#edf38c;--line:#e9e5e7;--bg:#fbfaf8;--orange:#bc562e}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #aa9b38;outline-offset:3px}button{border:0}a{color:inherit}.sidebar{width:242px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:34px 24px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;font:800 26px 'Manrope',sans-serif;text-decoration:none;letter-spacing:-1.2px;color:var(--plum)}.brandmark{display:grid;place-items:center;background:var(--plum);color:var(--lime);width:35px;height:35px;border-radius:11px;margin-right:9px;font-size:27px}.brand-dot{color:#a0a839}.household{display:flex;gap:12px;align-items:center;margin:44px 0 30px;font-size:14px;font-weight:700}.household small{display:block;font-size:12px;color:var(--muted);font-weight:400}.avatar{background:#f1e9ed;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:var(--plum)}nav{display:flex;flex-direction:column;gap:8px}nav button{display:flex;align-items:center;gap:12px;text-align:left;padding:13px 14px;border-radius:9px;background:transparent;color:#776873;font-size:14px;font-weight:600}nav button span{font-size:22px;width:22px;line-height:1}nav button.active{background:var(--plum);color:white}nav button b{margin-left:auto;font-size:12px;background:#eee4e9;color:var(--plum);border-radius:4px;padding:0 5px}.sidebar-bottom{margin-top:auto}.demo-note{border-radius:12px;background:#f3f5db;padding:18px 14px;margin-top:32px}.demo-note .eyebrow{font-size:10px;letter-spacing:1px}.demo-note p{font-weight:600;font-size:14px;margin:10px 0}.demo-note small{font-size:11px;color:#696954}.profile-link{padding:24px 0 0;background:none;color:var(--muted);font-size:13px}.page{margin-left:242px}header{height:82px;padding:0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.demo-badge{font-size:12px;border:1px solid #dacbd2;border-radius:30px;padding:5px 12px;color:var(--plum)}main{max-width:1280px;margin:auto;padding:42px 48px 60px}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:700;color:var(--plum)}h1,h2,h3{font-family:'Manrope',sans-serif;line-height:1.25}h1{font-size:38px;letter-spacing:-1.8px;margin:12px 0}h2{font-size:23px;letter-spacing:-.7px;margin:0}h3{font-size:18px;margin:0 0 8px}.heading p{color:var(--muted);margin:0 0 28px}.prompt-box{background:white;border:1px solid var(--line);border-radius:15px;padding:23px}.prompt-box label{display:block;font-size:14px;font-weight:700;margin-bottom:12px}.prompt-row{display:flex;gap:12px}.prompt-row input{flex:1;min-width:0;background:var(--bg)}input,select,textarea{border:1px solid #ded6db;border-radius:8px;padding:11px 13px;color:var(--ink);background:white}input[type=checkbox]{accent-color:var(--plum);width:18px;height:18px}input[type=number]{width:95px}.primary{background:var(--plum);color:#fff;padding:12px 21px;border-radius:8px;font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:24px}.primary:hover{background:#642d46}.secondary{border:1px solid #ded4d9;background:white;border-radius:8px;padding:9px 15px;font-size:14px;color:var(--plum)}.pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.pills>span,.chip{background:#f5f3f1;border:1px solid var(--line);border-radius:6px;padding:5px 11px;font-size:12px}.section-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:32px 0 18px}.section-heading>span{font-size:12px;color:var(--muted)}.featured{border:1px solid var(--line);border-radius:16px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;background:white}.food-placeholder{min-height:326px;background:var(--lime);display:grid;place-items:center;font-size:11px;letter-spacing:2px}.recipe-photo{width:100%;height:100%;min-height:326px;object-fit:cover}.recipe-content{padding:30px}.recipe-content h2{font-size:28px;margin:12px 0}.recipe-content p{font-size:14px;color:var(--muted);margin:0}.recipe-meta{display:flex;gap:24px;margin:20px 0;font-size:13px}.stock-label{display:block;color:#497045;font-size:12px;margin:0 0 18px}.recipe-content .primary{width:100%;justify-content:space-between}footer{border-top:1px solid var(--line);padding:20px 48px;font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:20px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.card p{font-size:14px;color:var(--muted)}.card .primary{margin-top:12px}.small{font-size:13px;color:var(--muted)}.notice{border-radius:10px;background:#f3f5db;padding:16px 20px;margin:22px 0;font-size:14px}.row{display:flex;align-items:center;justify-content:space-between;gap:15px}.stack{display:flex;flex-direction:column;gap:15px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.toolbar .selected{background:var(--plum);color:#fff}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:white}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;background:#f5f2f3;font-size:12px;color:var(--muted);font-weight:600}th,td{padding:16px;border-bottom:1px solid var(--line)}td small{display:block;color:var(--muted);font-size:12px}.badge{display:inline-block;border-radius:5px;font-size:12px;padding:3px 8px;background:#f1f4df;color:#53632e}.badge.warn{background:#fff0df;color:#87521f}.badge.gray{background:#f1edef;color:#776773}.muted{color:var(--muted)}.empty{padding:50px 25px;text-align:center;border:1px dashed #d4c4cd;border-radius:12px}.empty p{color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:14px}.field input,.field select,.field textarea{width:100%}.field.full{grid-column:1/-1}.checkline{display:flex;align-items:center;gap:10px;font-size:14px}.modal-backdrop{position:fixed;inset:0;background:#23151cb3;display:flex;align-items:center;justify-content:center;padding:24px;z-index:20}.modal{background:var(--bg);border-radius:18px;max-width:740px;width:100%;max-height:90vh;overflow:auto;padding:30px;box-shadow:0 24px 100px #16071144}.modal-head{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:20px}.close{background:#eee8eb;border-radius:50%;width:34px;height:34px;flex-shrink:0;font-size:22px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.ingredients{list-style:none;padding:0}.ingredients li{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}.ingredients li span:last-child{text-align:right}.steps{padding-left:23px;font-size:14px}.steps li{padding-left:6px;margin-bottom:15px}.quantity{display:inline-flex;align-items:center;gap:15px}.quantity button{background:#eee7eb;border-radius:6px;width:30px;height:30px;font-size:20px}.danger{color:#a32b33}.danger-btn{border:1px solid #d69a9e;background:white;color:#a32b33;padding:10px 15px;border-radius:8px}.link{color:var(--plum);text-decoration:underline;background:none;padding:0;font-size:14px}#toast{position:fixed;bottom:24px;left:calc(50% + 100px);transform:translateX(-50%);padding:13px 22px;border-radius:10px;background:var(--plum);color:white;box-shadow:0 6px 20px #491d3144;z-index:30;display:none;max-width:85vw;font-size:14px}.stat{font:800 32px 'Manrope',sans-serif;margin:12px 0}.store-best{border:2px solid var(--plum)}.split{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.recipe-mini{display:flex;flex-direction:column;align-items:start}.recipe-mini .secondary{margin-top:auto}.tagline{color:var(--orange);font-size:12px;font-weight:700}.reminder{border-left:3px solid var(--orange);padding-left:15px}.no-wrap{white-space:nowrap}.log{padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.actions-inline{display:flex;flex-wrap:wrap;gap:8px}.screen-reader{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1450px){main{padding-top:50px}.featured{grid-template-columns:1.12fr 1fr}.recipe-content{padding:36px}.recipe-photo{max-height:375px}}
@media(max-width:1100px){.sidebar{width:208px;padding:28px 16px}.page{margin-left:208px}main{padding:32px 28px}header{padding:0 28px}.brand{font-size:23px}.recipe-content{padding:22px}h1{font-size:33px}.cards{grid-template-columns:repeat(2,1fr)}.prompt-row{flex-wrap:wrap}.prompt-row input{flex-basis:100%}.split{grid-template-columns:1fr}}
@media(max-width:720px){.sidebar{position:sticky;top:0;width:100%;height:auto;padding:12px 18px;border-right:0;border-bottom:1px solid var(--line);display:block}.brand{font-size:21px}.brandmark{width:29px;height:29px;font-size:23px}.household,.sidebar-bottom .demo-note{display:none}nav{flex-direction:row;gap:4px;margin-top:12px;justify-content:space-between}nav button{padding:8px 7px;font-size:11px;gap:5px;flex-direction:column;line-height:1.3}nav button span{font-size:18px}nav button b{display:none}.sidebar-bottom{position:absolute;right:18px;top:13px}.profile-link{padding:3px 0;font-size:11px;max-width:115px}.page{margin:0}header{height:48px;padding:0 20px;font-size:10px}.demo-badge{font-size:10px;padding:3px 8px}main{padding:28px 20px 40px}h1{font-size:31px;letter-spacing:-1.5px}.heading p{font-size:14px}.prompt-box{padding:17px}.prompt-row input{font-size:14px}.prompt-row .primary{width:100%}.section-heading{align-items:start}.section-heading h2{font-size:20px}.section-heading>span{max-width:110px;text-align:right}.featured{grid-template-columns:1fr}.recipe-photo,.food-placeholder{min-height:220px;max-height:240px}.recipe-content{padding:24px}.recipe-content h2{font-size:25px}.cards,.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal{padding:22px;max-height:90vh}.modal-backdrop{padding:12px}.modal-actions{flex-wrap:wrap}.modal-actions button{flex:1}footer{padding:20px;flex-direction:column;gap:4px}#toast{left:50%}.row{align-items:start;flex-wrap:wrap}th,td{padding:12px}.desktop-only{display:none}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,transform .15s}.card:hover{border-color:#d4c5cd}main{animation:appear .3s ease}@keyframes appear{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:none}}}

.pills .portion-picker{background:#f5f3f1;border:1px solid var(--line);border-radius:6px;padding:10px 30px 10px 12px;font-size:14px;min-height:44px;cursor:pointer;align-self:stretch}.pills .portion-picker:hover{border-color:#b5a0ab}

.ai-featured{grid-template-columns:1fr}.ai-featured .recipe-content{max-width:760px}.ai-status{font-size:13px;color:var(--muted);margin-top:16px;line-height:1.5}

.ai-status.ai-error{color:#7c2436;background:#fff0f1;border:1px solid #e5b8c1;border-radius:10px;padding:12px 14px}.ai-error strong{display:block;margin-bottom:4px}

.pantry-options{max-height:42vh;overflow-y:auto;border-block:1px solid var(--line,#e5dfe3);margin:16px 0}.pantry-options .checkline{align-items:center;padding:12px 4px;margin:0;cursor:pointer}.pantry-options small{display:block;color:var(--muted);font-size:14px;margin-top:4px}.selected-pantry{font-size:14px;margin-top:16px;padding:12px 14px;background:var(--bg,#faf9f7);border-radius:10px}.selected-pantry .toolbar{margin-top:8px;gap:18px}

.recipe-help{margin-top:24px;padding-top:24px;border-top:1px solid var(--line,#e6e0e3)}
.recipe-help textarea{width:100%;min-height:100px;resize:vertical;font:inherit;padding:12px;border:1px solid #d8cdd3;border-radius:10px;background:#fff;color:inherit}
.recipe-help form{display:grid;gap:14px}
.recipe-help form button{justify-self:start}
.recipe-help-answer{padding:18px;border:1px solid #d8cdd3;border-radius:12px;background:#faf8f9;overflow-wrap:anywhere}
#recipe-help-text{white-space:pre-wrap;line-height:1.65}

.pantry-dinner{margin-top:36px}
.pantry-dinner-card{display:flex;align-items:center;gap:28px;border-left:4px solid #491d31}
.pantry-dinner-copy{flex:1;min-width:0}
.pantry-dinner-copy h3{font-size:24px;margin-top:10px}
.pantry-dinner-actions{display:flex;flex-direction:column;gap:12px;flex:0 0 270px}
.pantry-dinner-status{margin:0;max-width:34em}.pantry-dinner-status:empty{display:none}
@media(max-width:700px){.pantry-dinner-card{align-items:stretch;flex-direction:column;gap:14px}.pantry-dinner-actions{flex:auto;width:100%}.pantry-dinner-actions>button{width:100%}}

[hidden]{display:none!important}.account-card{margin-bottom:26px}.support-ticket{display:block;width:100%;text-align:left;background:transparent;padding:18px 0;border-bottom:1px solid var(--line)}.support-ticket small{display:block}.support-conversation{display:grid;gap:14px;margin:24px 0}.support-message{padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:#fff}.support-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}.support-message small{color:var(--muted)}.support-answer{background:#eee6eb;margin-left:5%}

/* The support surface lives outside #app so navigation preserves the conversation. */
#support-widget{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:18;font-size:16px}
#support-toggle{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:var(--plum);color:white;box-shadow:0 5px 22px #491d3133;border:2px solid white;margin-left:auto}
#support-toggle:hover{background:#66324a}#support-toggle:focus-visible,#support-panel button:focus-visible{outline:3px solid #92964e;outline-offset:3px}
#support-panel{position:absolute;bottom:72px;right:0;width:min(390px,calc(100vw - 32px));max-height:min(650px,calc(100dvh - 115px));display:flex;flex-direction:column;background:#fff;border:1px solid #dfd2d9;border-radius:20px;box-shadow:0 12px 55px #36132530;overflow:hidden}
.support-panel-header{display:flex;justify-content:space-between;align-items:center;background:var(--plum);color:white;padding:20px 22px;flex-shrink:0}.support-panel-header h2{font-size:20px;margin:0;color:white}.support-panel-header p{margin:3px 0 0;font-size:14px;color:#eadce3}
#support-close{color:white;background:transparent;font-size:28px;line-height:1;width:38px;height:38px;border-radius:50%;flex-shrink:0}#support-close:hover{background:#ffffff20}
#support-body{padding:20px 22px;overflow-y:auto;overscroll-behavior:contain;min-height:0}#support-body p{font-size:14px;line-height:1.55}#support-body h3{font-size:16px;line-height:1.4;margin:0 0 8px}#support-body .field{font-size:14px;margin:0 0 14px}#support-body input,#support-body textarea{font-size:16px;width:100%;min-width:0;padding:11px 12px}#support-body textarea{resize:vertical;min-height:82px;max-height:180px}#support-body .primary{width:100%;font-size:14px;min-height:44px}#support-body .support-intro{margin:0 0 18px;color:var(--muted)}
.support-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}#support-body .support-list-heading h3{margin:0}.support-topic{margin-top:18px}.support-topic .link{display:block;margin-top:8px}#support-body .support-conversation{margin:18px 0;gap:12px}#support-body .support-message{padding:12px 14px;font-size:14px}#support-body .support-message small{display:block;font-size:12px;margin-top:2px}.support-panel-footer{padding:12px 20px;border-top:1px solid var(--line);background:#faf8f9;color:var(--muted);font-size:12px;flex-shrink:0}#support-widget-status{margin:0;padding:12px 22px;background:#fff5e9;font-size:14px;flex-shrink:0}#support-widget-status:empty{display:none}
@media(max-width:480px){#support-widget{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}#support-panel{width:calc(100vw - 32px);bottom:68px;max-height:calc(100dvh - 104px)}#support-body{padding:18px}#support-toggle{width:54px;height:54px}}

.receipt-intro p{margin:0 0 10px}.receipt-choices{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.receipt-picker{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:48px;cursor:pointer}.receipt-picker:focus-within{outline:3px solid #aa9b38;outline-offset:3px}.receipt-picker input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;inset:auto}.receipt-picker:has(input:disabled){opacity:.5;cursor:wait}.receipt-status{padding:12px 14px;background:#f3f5db;border-radius:9px;font-size:14px}.receipt-preview{display:block;width:auto;max-width:100%;max-height:240px;margin:14px auto;border:1px solid var(--line);border-radius:8px;object-fit:contain}.receipt-date{max-width:220px;margin:16px 0}.receipt-items{display:grid;gap:12px;max-height:48vh;overflow:auto;padding-right:4px}.receipt-item{padding:18px;background:white;border:1px solid var(--line);border-radius:10px}.receipt-item .form-grid{margin-top:12px}.receipt-uncertain{align-self:end;min-height:44px}.receipt-error{color:#a32b33;font-size:14px}.receipt-error:empty{display:none}

/* The full product name fits the narrow navigation without shrinking its mark. */
.sidebar .brand{font-size:21px;white-space:nowrap}.brandmark{flex-shrink:0}
@media(max-width:720px){.sidebar .brand{font-size:19px}}
