:root{color-scheme:dark;--bg:#141c19;--surface:#202c26;--surface-2:#26352e;--surface-3:#18231e;--green:#73c5a2;--text:#f4f7f5;--muted:#c2d2ca;--line:#35473e;--amber:#e9b86c;--red:#e98b84;--shadow:0 12px 30px #0003;--radius:18px;--bar-bg:#31443a}
:root[data-theme="light"]{color-scheme:light;--bg:#edf3ef;--surface:#fff;--surface-2:#f5faf7;--surface-3:#e5eee9;--text:#20352d;--muted:#63786e;--line:#c8d7cf;--bar-bg:#d5e3db;--shadow:0 10px 25px #183b2815}
*{box-sizing:border-box}html{min-width:320px;scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--bg);color:var(--text);font:14px/1.45 'DM Sans',Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--amber);outline-offset:2px}.hidden{display:none!important}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,'DM Sans',sans-serif;letter-spacing:-.035em}h1{font-size:clamp(25px,5vw,34px);line-height:1.13;margin:8px 0 4px}h2{font-size:18px;line-height:1.2;margin:0}h3{font-size:15px;line-height:1.25;margin:0}small{font-size:11px;color:var(--muted)}
.brand{display:inline-flex;align-items:center;gap:8px;color:var(--text);text-decoration:none}.brand img{width:30px;height:30px}.brand-name{font:800 17px/1 Manrope,sans-serif;letter-spacing:-.07em}.brand-name>span{color:var(--green)}.brand-name i{color:var(--green);font-style:normal}.eyebrow{color:var(--green);font-size:9px;font-weight:700;letter-spacing:.14em;line-height:1.4}.text-button{border:0;background:none;color:var(--green);padding:4px 0;cursor:pointer;font-size:11px;font-weight:700;white-space:nowrap}.button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:12px;padding:0 15px;cursor:pointer;font-size:12px;font-weight:700;text-decoration:none;transition:background .15s,transform .15s,border-color .15s}.button:hover{transform:translateY(-1px)}.button:disabled{opacity:.6;cursor:wait}.button-primary{background:var(--green);color:#10251b}.button-primary:hover{background:#8fd6b5}.button-secondary{border-color:var(--line);background:var(--surface-2);color:var(--text)}.button-wide{width:100%;min-height:48px}.icon-button{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);cursor:pointer;font-size:16px}.icon-button:hover{color:var(--green);border-color:var(--green)}
.auth-page{display:grid;min-height:100dvh;place-items:center;padding:22px;background:#080a09}.auth-card{width:min(100%,460px);border:1px solid #30312f;border-radius:25px;background:linear-gradient(180deg,#202120,#1b1c1b);padding:clamp(25px,6vw,40px);box-shadow:0 20px 60px #0008}.auth-card>.auth-brand{display:flex;flex-direction:column;gap:13px;justify-content:center;margin:0 auto 0}.auth-brand img{width:52px;height:52px}.auth-brand .brand-name{font-size:30px;letter-spacing:-.075em}.auth-tagline{margin:8px 0 30px;color:#b6b6b6;text-align:center;font-size:14px}.auth-heading{margin:0 0 21px;text-align:center}.auth-heading h1{margin:0 0 5px;font-size:30px}.auth-heading p{margin:0;color:#b6b6b6;font-size:12px}.google-button{display:flex;min-height:53px;align-items:center;justify-content:center;gap:11px;border:1px solid #383a38;border-radius:15px;background:transparent;color:#f2f2f2;text-decoration:none;font-size:14px;font-weight:700}.google-button:hover{border-color:#666;background:#252625}.google-g{font:800 20px Arial,sans-serif;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 25% 50%,#fbbc05 50% 75%,#ea4335 75%);color:transparent;background-clip:text;-webkit-background-clip:text}.auth-divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:#aaa;font-size:12px;white-space:nowrap}.auth-divider::before,.auth-divider::after{height:1px;flex:1;background:#3a3a3a;content:''}.auth-heading h1{font-weight:700}.form-stack{display:grid;gap:15px}.field{display:grid;min-width:0;gap:7px;color:#c7c7c7;font-size:11px;font-weight:600}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid #383a38;border-radius:999px;background:#191a19;color:#f2f2f2;padding:11px 16px}.field input,.field select{height:49px}.field textarea{border-radius:12px;resize:vertical;line-height:1.5}.field input::placeholder,.field textarea::placeholder{color:#777}.field small{font-size:10px}.forgot-button{justify-self:end;margin-top:-7px;border:0;background:none;color:#c1c1c1;padding:3px 1px;cursor:pointer;font-size:11px}.forgot-button:hover{color:var(--green)}.auth-card .button-primary{border-radius:999px}.auth-switch{margin:19px 0 0;color:#b6b6b6;text-align:center;font-size:12px}.auth-switch .text-button{margin-left:4px}.privacy-note{margin:15px 0 0;color:#9aa29c;font-size:9px;text-align:center}.auth-credit{display:block;margin-top:21px;color:#777;text-align:center;font-size:9px}
.app-shell{min-height:100dvh}.sidebar{position:fixed;z-index:25;inset:0 auto 0 0;display:flex;width:228px;flex-direction:column;border-right:1px solid var(--line);background:var(--bg);padding:24px 14px 16px}.sidebar>.brand{padding:0 8px}.workspace-label{margin:43px 10px 12px;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.14em}.side-nav{display:grid;gap:5px}.nav-link{display:flex;align-items:center;gap:11px;min-height:43px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--muted);padding:0 11px;text-align:left;cursor:pointer;font-size:12px;font-weight:600}.nav-link:hover,.nav-link.active{background:var(--surface);color:var(--green)}.nav-link.active{border-color:var(--line)}.nav-icon{width:23px;text-align:center;font-size:18px;color:var(--green)}.sidebar-lower{display:grid;gap:5px;margin-top:auto}.sidebar-account{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:13px 3px 0;margin-top:10px}.sidebar-account>span:nth-child(2){display:grid;min-width:0;gap:2px;flex:1}.sidebar-account strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.avatar{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:var(--surface-2);color:var(--green);font-weight:700}.sidebar-account small{font-size:9px}.app-main{min-height:100dvh;margin-left:228px}.topbar{position:sticky;z-index:20;top:0;display:flex;height:58px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 93%,transparent);padding:0 clamp(18px,4vw,52px);backdrop-filter:blur(14px)}.mobile-brand,.mobile-menu,.logout-mobile{display:none!important}.topbar-right{display:flex;align-items:center;gap:9px}.status-pill{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:10px}.status-pill span{width:6px;height:6px;border-radius:50%;background:var(--green)}.content-wrap{width:min(100%,1000px);margin:0 auto;padding:26px clamp(18px,4vw,46px) 45px}.view{display:none;animation:fade-in .2s ease both}.view.active{display:block}@keyframes fade-in{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}.home-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.home-heading h1 span{color:var(--green)}.home-heading p{margin:4px 0 0;color:var(--muted);font-size:11px;text-transform:capitalize}.share-button{display:grid;width:37px;height:37px;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text);font-size:17px}.brand-promise{margin:3px 0 15px;color:var(--muted);font-size:11px}.progress-card{border:1px solid var(--line);border-radius:17px;background:var(--surface);padding:15px 16px;margin-bottom:19px}.progress-caption{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}.progress-caption span:last-child{color:var(--green);font-weight:700}.progress-value{display:flex;align-items:baseline;gap:8px;margin:8px 0 9px}.progress-value strong{color:var(--green);font:700 24px Manrope,sans-serif;letter-spacing:-.06em}.progress-value span{color:var(--muted);font-size:11px}.progress-track{height:7px;border-radius:10px;background:var(--bar-bg);overflow:hidden}.progress-track span{display:block;height:100%;width:0;border-radius:inherit;background:var(--green);transition:width .25s}.progress-card>p{margin:8px 0 0;color:var(--muted);font-size:9px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:18px 0 10px}.section-head>div p{margin:4px 0 0;color:var(--muted);font-size:10px}.next-meal-card{overflow:hidden;border-radius:18px;background:var(--surface);padding:7px;margin-bottom:12px}.meal-photo{background-image:url('food-grid.png');background-size:200% 200%;background-repeat:no-repeat;background-color:var(--surface-2)}.meal-photo-main{height:clamp(128px,35vw,220px);background-position:0 0;border-radius:14px}.next-meal-info{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 2px 2px}.next-meal-info h3{font-size:13px}.next-meal-info p{margin:4px 0 0;color:var(--muted);font-size:10px}.next-meal-info .button{min-height:35px;padding:0 12px;font-size:10px;flex:0 0 auto}.shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 18px}.shortcut-card{display:grid;min-height:100px;align-content:start;justify-items:start;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:12px;text-align:left;cursor:pointer}.shortcut-card:hover{border-color:var(--green)}.shortcut-icon{margin-bottom:8px;color:var(--green);font-size:21px;line-height:1}.shortcut-card strong{font-size:12px;line-height:1.2}.shortcut-card small{margin-top:6px;font-size:10px}.panel-card{min-width:0;border:1px solid var(--line);border-radius:17px;background:var(--surface);padding:14px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.panel-heading h3{font-size:13px}.inventory-mark,.chart-mark{color:var(--green);font-size:18px}.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.recipe-card{overflow:hidden;min-width:0;border:1px solid var(--line);border-radius:15px;background:var(--surface);cursor:pointer}.recipe-card .meal-photo{height:clamp(78px,19vw,125px)}.recipe-photo-0{background-position:0 0}.recipe-photo-1{background-position:100% 0}.recipe-photo-2{background-position:0 100%}.recipe-photo-3{background-position:100% 100%}.recipe-copy{padding:9px}.recipe-copy h3{font-size:11px;line-height:1.25}.recipe-copy p{margin:4px 0 0;color:var(--muted);font-size:9px}.recipe-details{padding:0 9px 9px;color:var(--muted);font-size:10px}.recipe-details summary{color:var(--green);font-weight:700;cursor:pointer}.recipe-details p{margin:7px 0;line-height:1.45}.recipe-details button{margin-top:3px}.inventory-list{display:grid;gap:8px}.inventory-row{display:flex;align-items:center;gap:9px;min-width:0;border-bottom:1px solid var(--line);padding:6px 0}.inventory-row:last-child{border-bottom:0}.inventory-symbol{display:grid;width:22px;height:22px;flex:0 0 22px;place-items:center;border-radius:7px;background:var(--surface-2);color:var(--green);font-size:11px}.inventory-copy{display:grid;min-width:0;flex:1;gap:4px}.inventory-copy strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.inventory-copy small{font-size:8px}.inventory-quantity{color:var(--muted);font-size:10px;white-space:nowrap}.inventory-quantity small{font-size:8px}.quantity-low{color:var(--amber)}.inventory-bar{height:4px;border-radius:8px;background:var(--bar-bg);overflow:hidden}.inventory-bar span{display:block;height:100%;border-radius:inherit;background:var(--green)}.quantity-low .inventory-bar span{background:var(--amber)}.metrics-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:9px}.mini-metric{display:grid;align-content:start;gap:6px;min-height:92px;border:1px solid var(--line);border-radius:15px;background:var(--surface);padding:12px}.mini-metric>span{color:var(--muted);font-size:9px}.mini-metric>strong{color:var(--green);font:700 22px Manrope,sans-serif}.mini-metric>strong small{color:var(--muted);font:500 10px 'DM Sans',sans-serif}.mini-metric>small{font-size:8px}.water-actions{display:flex;gap:5px}.water-actions button{border:1px solid var(--line);border-radius:7px;background:var(--surface-2);color:var(--green);padding:3px 7px;font-size:9px;cursor:pointer}.chart-card{margin-top:0}.chart-card .panel-heading{margin-bottom:12px}.week-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:7px;height:102px;padding:4px 0}.chart-day{display:flex;min-width:0;height:100%;flex-direction:column;align-items:center;justify-content:end;gap:5px}.chart-bar-wrap{display:flex;width:100%;height:74px;align-items:end;justify-content:center;border-bottom:1px solid var(--line)}.chart-bar{width:min(70%,17px);min-height:3px;border-radius:4px 4px 0 0;background:var(--green);opacity:.9}.chart-day small{font-size:8px}.chart-day b{font-size:8px;color:var(--muted)}.report-button{width:100%;min-height:35px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--muted);margin-top:9px;font-size:10px;cursor:pointer}.report-button:hover{color:var(--green)}.app-footer{margin:20px 0 0;color:var(--muted);font-size:9px;text-align:center}
.page-heading{margin-bottom:20px}.page-heading p{max-width:620px;margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.recipe-grid-page{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.recipe-grid-page .recipe-card .meal-photo{height:clamp(130px,23vw,210px)}.content-grid{display:grid;align-items:start;gap:14px}.plan-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.full{grid-column:1/-1}.field-hint{margin:-3px 0 0;color:var(--muted);font-size:10px;line-height:1.5}.form-actions{display:flex;gap:8px}.meal-list{display:grid;gap:8px}.meal-card{border:1px solid var(--line);border-radius:13px;background:var(--surface-2);padding:11px}.meal-card-title{display:flex;justify-content:space-between;gap:8px}.meal-period{color:var(--green);font-size:9px}.meal-card h3{margin:3px 0;font-size:12px}.meal-instructions{margin:7px 0;color:var(--muted);font-size:10px}.alternative-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.alternative-chip{border:1px solid var(--line);border-radius:999px;background:var(--surface-3);color:var(--muted);padding:4px 7px;font-size:9px}.meal-actions{display:flex}.count-badge{display:grid;min-width:25px;height:25px;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--green);font-size:10px}.inline-form{display:grid;grid-template-columns:1.2fr .7fr .7fr auto;align-items:end;gap:10px}.stock-form{grid-template-columns:1.2fr .7fr .7fr .8fr auto}.inline-form .button{min-height:43px}.section-gap{margin-top:13px}.shopping-list,.record-list{display:grid}.shopping-row{display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--line);padding:10px 0}.shopping-row:last-child{border-bottom:0}.check-button{width:25px;height:25px;flex:0 0 25px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--green);cursor:pointer}.check-button.checked{background:var(--green);color:#10251b}.shopping-title{flex:1;min-width:0;font-size:11px}.shopping-quantity{color:var(--muted);font-size:10px}.shopping-row.is-checked .shopping-title{text-decoration:line-through;color:var(--muted)}.record-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:11px 0}.record-row:last-child{border-bottom:0}.record-check{display:grid;width:26px;height:26px;flex:0 0 26px;place-items:center;border-radius:50%;background:var(--surface-2);color:var(--green)}.record-copy{display:grid;min-width:0;flex:1;gap:3px}.record-copy strong{font-size:11px}.record-copy small{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.record-row time{color:var(--muted);font-size:9px;white-space:nowrap}.empty-state{display:grid;justify-items:center;gap:7px;padding:22px 12px;text-align:center}.empty-state strong{font-size:12px}.empty-state p{max-width:250px;margin:0;color:var(--muted);font-size:10px}.empty-mark{color:var(--green);font-size:21px}.import-steps{display:flex;align-items:center;justify-content:center;gap:8px;margin:10px 0 18px}.import-steps>i{height:1px;width:30px;background:var(--line)}.step{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px}.step b{display:grid;width:23px;height:23px;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:10px}.step.is-current{color:var(--green)}.step.is-current b{border-color:var(--green);background:var(--green);color:#10251b}.import-card{display:flex;align-items:flex-start;gap:14px}.upload-symbol{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border-radius:13px;background:var(--surface-2);color:var(--green);font-size:22px}.import-copy h2{margin:5px 0;font-size:16px}.import-copy>p,.import-note p{margin:0 0 13px;color:var(--muted);font-size:11px;line-height:1.55}.upload-button{position:relative;overflow:hidden}.upload-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.prescription-list{display:grid;gap:7px;margin-top:12px}.prescription-row{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);padding:9px;color:inherit;text-decoration:none}.file-mark{display:grid;width:30px;height:30px;place-items:center;border-radius:8px;background:#563b38;color:#ffd1c9;font-size:8px;font-weight:700}.prescription-copy{display:grid;min-width:0;flex:1;gap:3px}.prescription-copy strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.prescription-copy small{font-size:8px}.prescription-open{color:var(--green)}.import-note{margin-top:12px}.import-note>strong{display:block;margin-bottom:5px;font-size:12px}.history-controls{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:13px}.history-controls .field{width:min(100%,220px)}.history-controls .button{flex:0 0 auto}.toast{position:fixed;z-index:60;left:50%;bottom:20px;max-width:calc(100vw - 32px);border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow);color:var(--text);padding:11px 15px;font-size:12px;opacity:0;pointer-events:none;transform:translate(-50%,12px);transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast[data-type="error"]{border-color:var(--red);color:var(--red)}
.bottom-nav{display:none}
@media(max-width:760px){.sidebar{display:none}.sidebar.sidebar-open{position:fixed;z-index:50;display:flex;width:min(82vw,280px);box-shadow:0 0 0 100vmax #0009}.app-main{margin-left:0}.topbar{height:56px;padding:0 14px}.mobile-menu{display:grid!important;width:34px;height:34px}.mobile-brand{display:inline-flex!important}.mobile-brand img{width:26px;height:26px}.mobile-brand .brand-name{font-size:15px}.topbar-right{gap:6px}.status-pill{font-size:9px}.content-wrap{width:min(100%,560px);padding:13px 14px calc(93px + env(safe-area-inset-bottom))}.home-heading h1{font-size:25px}.brand-promise{font-size:10px}.section-head{margin-top:17px}.progress-card{margin-bottom:17px}.bottom-nav{position:fixed;z-index:30;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--bg) 96%,transparent);padding:6px 7px calc(6px + env(safe-area-inset-bottom));backdrop-filter:blur(16px)}.bottom-nav .nav-link{display:grid;min-height:46px;justify-items:center;align-content:center;gap:2px;border-radius:9px;padding:3px 0}.bottom-nav .nav-link span{font-size:18px;line-height:1}.bottom-nav .nav-link small{color:inherit;font-size:8px}.bottom-nav .nav-link.active{background:transparent;border-color:transparent;color:var(--green)}.recipe-grid-page{gap:9px}.recipe-grid-page .recipe-card .meal-photo{height:clamp(100px,36vw,170px)}.plan-grid{grid-template-columns:1fr}.inline-form,.stock-form{grid-template-columns:1fr 1fr}.inline-form .field:first-child{grid-column:1/-1}.inline-form .button{grid-column:1/-1}.history-controls{align-items:end}.logout-mobile{display:grid!important;width:32px;height:32px}.theme-button{width:32px;height:32px}.logout-mobile{font-size:15px}.app-footer{margin-top:16px}.toast{bottom:calc(66px + env(safe-area-inset-bottom))}}
@media(max-width:380px){.topbar{padding:0 10px}.content-wrap{padding-right:11px;padding-left:11px}.mobile-brand .brand-name{font-size:14px}.topbar-right{gap:4px}.status-pill{font-size:8px}.home-heading h1{font-size:23px}.share-button{width:34px;height:34px}.progress-card{padding:13px}.shortcut-card{min-height:96px;padding:10px}.recipe-grid{gap:7px}.recipe-copy{padding:7px}.recipe-copy h3{font-size:10px}.mini-metric{padding:10px}.inventory-row{gap:6px}.record-row time{font-size:8px}}
@media(min-width:761px){.bottom-nav{display:none!important}.home-heading{margin-top:3px}.home-heading h1{font-size:31px}.shortcut-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.recipe-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.recipe-grid-page{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-grid-page .recipe-card .meal-photo{height:170px}.meal-photo-main{height:270px}.content-wrap{padding-top:30px}.metrics-row{max-width:600px}.chart-card{max-width:700px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{.sidebar,.topbar,.bottom-nav,.button,.icon-button,.share-button{display:none!important}.app-main{margin:0}.view{display:none!important}.view.active{display:block!important}.content-wrap{padding:0}.panel-card,.recipe-card{break-inside:avoid}}
.prescription-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}.prescription-open{display:grid;width:28px;height:28px;place-items:center;border-radius:8px;color:var(--green);text-decoration:none}.prescription-open:hover{background:var(--surface-3)}.prescription-delete{width:30px;height:30px;color:var(--muted)}.prescription-delete:hover{color:var(--red);border-color:var(--red)}.import-status{margin:10px 0 0;color:var(--green);font-size:11px;line-height:1.5}.import-review{display:grid;gap:12px;margin-top:12px}.import-review-note{margin:0;color:var(--muted);font-size:11px;line-height:1.55}.draft-meals{display:grid;gap:10px}.meal-draft{display:grid;gap:10px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);padding:12px}.meal-draft .panel-heading{margin:0}.meal-draft .field{margin:0}.meal-draft .field textarea{min-height:65px}.import-review-actions{flex-wrap:wrap}.import-review-actions .button{min-height:40px}.import-review-actions #approveImport{flex:1 1 250px}@media(max-width:520px){.import-review-actions{display:grid}.import-review-actions .button{width:100%}.meal-draft{padding:10px}}
.step.is-complete{color:var(--green)}.step.is-complete b{border-color:var(--green);background:var(--green);color:#10251b}.prescription-analyze{min-height:29px;border:1px solid var(--line);border-radius:8px;background:var(--surface-3);color:var(--green);padding:0 8px;font-size:9px;font-weight:700;cursor:pointer}.prescription-analyze:hover{border-color:var(--green)}
.timer-button{width:100%;margin:8px 0}.timer-output{display:block;min-height:22px;margin:0 0 8px;color:var(--green);font-size:12px;font-weight:700;text-align:center}.timer-output:empty{display:none}
 .plan-slot{grid-template-columns:minmax(0,2fr) minmax(90px,1fr);align-items:end;gap:10px;border-bottom:1px solid var(--line);padding:8px 0}.shopping-title small{display:block;margin-top:3px;color:var(--muted);font-size:8px}.inventory-copy>small{display:block;margin-top:2px;color:var(--muted);font-size:8px}
.draft-metadata{border:1px solid var(--line);border-radius:14px;background:var(--surface-2);padding:14px}.draft-meta-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}.draft-meta-heading small,.draft-group-heading small{color:var(--muted);font-size:10px}.draft-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.draft-meta-grid .field{margin:0}.draft-meta-observations{grid-column:1/-1}.draft-meals{display:grid;gap:13px}.draft-meal-group{display:grid;gap:7px}.draft-group-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:0 2px 6px}.draft-group-heading h3{margin:0;font-size:14px}.meal-draft{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);padding:9px 10px}.draft-meal-details{min-width:0;flex:1}.draft-meal-details>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer}.draft-meal-details>summary::-webkit-details-marker{display:none}.draft-meal-details>summary>span:first-child{display:grid;gap:4px;min-width:0}.draft-meal-details>summary strong{font-size:12px}.draft-meal-details>summary small{color:var(--muted);font-size:10px}.draft-meal-fields{display:grid;gap:10px;padding-top:12px}.draft-meal-fields .field{margin:0}.draft-meal-fields .field textarea{min-height:65px}.prescription-meta{color:var(--green)!important}.import-review-actions{flex-wrap:wrap}.import-review-actions .button{min-height:40px}.import-review-actions #approveImport{flex:1 1 250px}@media(max-width:520px){.draft-meta-grid{grid-template-columns:1fr}.draft-meta-observations{grid-column:auto}.draft-meta-heading{align-items:flex-start;flex-direction:column}.import-review-actions{display:grid}.import-review-actions .button{width:100%}.meal-draft{padding:9px}}
.meal-choice-group{display:grid;gap:12px;margin:0 0 22px}.meal-choice-group>.section-head{align-items:end;margin:0;border-bottom:1px solid var(--line);padding-bottom:9px}.meal-choice-group>.section-head h2{margin:2px 0 0}.meal-choice-group>.section-head>small{color:var(--muted);font-size:10px}.meal-choice-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px}.meal-choice-option{display:grid;gap:6px;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:5px;text-align:left;color:var(--text);cursor:pointer}.meal-choice-option.is-selected{border-color:var(--green);box-shadow:0 0 0 1px color-mix(in srgb,var(--green) 45%,transparent)}.meal-choice-option .meal-photo{height:clamp(90px,28vw,150px);border-radius:8px}.meal-choice-option strong{overflow:hidden;padding:1px 3px 3px;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.meal-choice-details{border-top:1px solid var(--line);padding:10px 2px 0}.meal-choice-details h3{margin:0 0 8px;font-size:13px}.meal-choice-details p{margin:6px 0;color:var(--text);font-size:10px;line-height:1.6}.meal-choice-details p b{color:var(--green)}
/* Readable type, recipe photography and responsive recipe/shopping screens. */
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.5;letter-spacing:0}
h1{font-size:clamp(24px,3vw,30px);line-height:1.18;letter-spacing:-.025em}h2{font-size:clamp(19px,2.4vw,23px);line-height:1.25;letter-spacing:-.02em}h3{font-size:16px;line-height:1.3}
p{line-height:1.55}.eyebrow{font-size:10px;letter-spacing:.13em}.field>span,.field label{font-size:12px;font-weight:650}.field input,.field select,.field textarea,.button{font-family:inherit;font-size:14px;line-height:1.35}.field input,.field select,.field textarea{min-height:44px}.button{font-weight:650}.nav-link{font-size:13px}.bottom-nav .nav-link small{font-size:10px}.brand-promise,.section-head>div p,.page-heading p,.import-copy>p,.import-note p,.import-review-note,.field-hint,.empty-state p,.status-pill{font-size:12px}.recipe-copy h3,.draft-meal-details>summary strong,.prescription-copy strong,.shopping-title,.inventory-copy strong{font-size:13px}.recipe-copy p,.recipe-details,.inventory-quantity,.shopping-quantity,.prescription-copy small,.draft-meal-details>summary small{font-size:11px}
.meal-photo{background-image:url('food-meals-atlas.jpg');background-size:303% 303%;background-repeat:no-repeat;background-color:var(--surface-2)}
.food-photo-0{background-position:0% 0%}.food-photo-1{background-position:50% 0%}.food-photo-2{background-position:100% 0%}.food-photo-3{background-position:0% 50%}.food-photo-4{background-position:50% 50%}.food-photo-5{background-position:100% 50%}.food-photo-6{background-position:0% 100%}.food-photo-7{background-position:50% 100%}.food-photo-8{background-position:100% 100%}
.recipe-detail-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.recipe-detail-top>small{color:var(--muted);font-size:12px}.recipe-back{border:0;background:transparent;color:var(--text);padding:4px 0;font:inherit;font-weight:600;cursor:pointer}.meal-period-tabs{display:flex;gap:7px;margin:14px 0 18px;overflow-x:auto;padding:2px 1px 8px;scrollbar-width:thin}.meal-period-tabs button{flex:0 0 auto;min-height:36px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);padding:0 13px;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}.meal-period-tabs button.is-active{border-color:var(--green);background:var(--green);color:#10251b}.recipe-period-title{margin:0 0 12px}.meal-choice-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.meal-choice-option{gap:7px;border-radius:14px;padding:5px}.meal-choice-option .meal-photo{width:100%;height:auto;aspect-ratio:1/1;border-radius:10px}.meal-choice-option strong{font-size:11px;line-height:1.3;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.meal-choice-radio-list{display:grid;gap:2px;margin:12px 0;padding:5px 0;border-bottom:1px solid var(--line)}.meal-choice-radio-list label,.recipe-alternative-list label{display:flex;align-items:center;gap:8px;min-height:32px;color:var(--text);font-size:13px;cursor:pointer}.meal-choice-radio-list input,.recipe-alternative-list input{width:17px;height:17px;accent-color:var(--green);flex:0 0 auto}.meal-choice-radio-list small{margin-left:auto;color:var(--muted);font-size:11px}.meal-choice-details{padding-top:12px}.meal-choice-details h3{margin:0 0 10px}.recipe-ingredient-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}.recipe-ingredient-list li{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding:6px 0;font-size:12px}.recipe-ingredient-list li>span{display:grid;gap:1px}.recipe-ingredient-list li strong{font-size:12px}.recipe-ingredient-list li small{color:var(--muted);font-size:10px}.recipe-ingredient-list li>b{flex:0 0 auto;font-size:12px}.recipe-preparation{margin:12px 0;color:var(--muted);font-size:12px;line-height:1.55}.recipe-alternative-list{display:grid;gap:3px;margin:12px 0;padding:10px;border:1px solid var(--line);border-radius:12px}.recipe-alternative-list>strong{font-size:12px;margin-bottom:4px}.shopping-row{gap:8px}.shopping-thumb{width:40px;height:40px;flex:0 0 40px;border-radius:10px;background-image:url('food-ingredients-atlas.jpg');background-size:303% 303%;background-repeat:no-repeat;background-color:var(--surface-2)}.ingredient-photo-0{background-position:0% 0%}.ingredient-photo-1{background-position:50% 0%}.ingredient-photo-2{background-position:100% 0%}.ingredient-photo-3{background-position:0% 50%}.ingredient-photo-4{background-position:50% 50%}.ingredient-photo-5{background-position:100% 50%}.ingredient-photo-6{background-position:0% 100%}.ingredient-photo-7{background-position:50% 100%}.ingredient-photo-8{background-position:100% 100%}.stock-sync-label{color:var(--green)!important;font-weight:650}.sync-shopping-button{display:block;margin-top:4px;border:0;background:transparent;color:var(--green);padding:0;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer}
@media(max-width:760px){.content-wrap{width:100%;max-width:560px}.page-heading{margin-bottom:14px}.page-heading p{font-size:13px}.panel-card{padding:14px}.section-head{align-items:center}.meal-choice-group{gap:10px}.meal-choice-options{gap:6px}.meal-choice-option .meal-photo{min-height:0}.draft-meta-grid{grid-template-columns:1fr}.inline-form,.stock-form{grid-template-columns:1fr 1fr}.inline-form .field:first-child{grid-column:1/-1}.shopping-row{gap:7px}.shopping-thumb{width:36px;height:36px;flex-basis:36px}.shopping-title{font-size:12px}.shopping-quantity{font-size:11px}.field input,.field select,.field textarea{font-size:16px}.recipe-grid-page{grid-template-columns:1fr}.recipe-grid-page .recipe-card .meal-photo{height:auto;aspect-ratio:1.8/1}.meal-choice-details p{font-size:13px}}
@media(max-width:390px){.content-wrap{padding-right:11px;padding-left:11px}.topbar{padding-right:11px;padding-left:11px}.panel-card{padding:12px}.meal-choice-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.meal-choice-option{padding:4px}.meal-choice-option strong{font-size:10px}.meal-choice-radio-list label{font-size:12px}.shopping-row{gap:6px}.shopping-thumb{width:32px;height:32px;flex-basis:32px}.shopping-quantity{font-size:10px}.icon-button{width:32px;height:32px}}
@media(min-width:761px){.recipe-grid-page{grid-template-columns:minmax(0,720px)}.recipe-grid-page .meal-choice-group{max-width:720px}.meal-choice-options{grid-template-columns:repeat(3,minmax(0,1fr))}.meal-choice-option .meal-photo{max-height:190px}.recipe-ingredient-list li{font-size:14px}.recipe-ingredient-list li strong,.recipe-ingredient-list li>b{font-size:14px}}
/* Narrow phones can be a few pixels below 320 CSS px; keep the document fluid. */
@media(max-width:320px){html,body{width:100%;min-width:0;overflow-x:clip}.app-shell,.app-main,.topbar,.content-wrap,.view{min-width:0;max-width:100%}.content-wrap{padding-right:9px;padding-left:9px}.topbar{gap:6px}.topbar-right{gap:4px}.status-pill{font-size:0;gap:0}.brand-name{font-size:15px}.topbar .brand img{width:25px;height:25px}.shortcut-card{padding:10px}.meal-choice-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.meal-choice-option{padding:3px}.meal-choice-radio-list label{gap:6px;font-size:11px}.shopping-row{min-width:0}.shopping-title{overflow-wrap:anywhere}}
.ai-service-notice{margin:12px 0 14px;border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:12px;background:var(--surface-3);padding:12px 14px;color:var(--text)}.ai-service-notice strong{font-size:13px}.ai-service-notice p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.55}
/* Food photos are individual square files: cover crops to card shape without stretching. */
.meal-photo{background-size:cover;background-position:center;background-repeat:no-repeat}
.food-photo-0{background-image:url('food-meal-0.jpg')}.food-photo-1{background-image:url('food-meal-1.jpg')}.food-photo-2{background-image:url('food-meal-2.jpg')}.food-photo-3{background-image:url('food-meal-3.jpg')}.food-photo-4{background-image:url('food-meal-4.jpg')}.food-photo-5{background-image:url('food-meal-5.jpg')}.food-photo-6{background-image:url('food-meal-6.jpg')}.food-photo-7{background-image:url('food-meal-7.jpg')}.food-photo-8{background-image:url('food-meal-8.jpg')}
.inventory-thumb,.shopping-thumb{background-size:cover;background-position:center;background-repeat:no-repeat}
.ingredient-photo-0{background-image:url('food-ingredient-0.jpg')}.ingredient-photo-1{background-image:url('food-ingredient-1.jpg')}.ingredient-photo-2{background-image:url('food-ingredient-2.jpg')}.ingredient-photo-3{background-image:url('food-ingredient-3.jpg')}.ingredient-photo-4{background-image:url('food-ingredient-4.jpg')}.ingredient-photo-5{background-image:url('food-ingredient-5.jpg')}.ingredient-photo-6{background-image:url('food-ingredient-6.jpg')}.ingredient-photo-7{background-image:url('food-ingredient-7.jpg')}.ingredient-photo-8{background-image:url('food-ingredient-8.jpg')}

/* Preserve the approved dark layout; keep cards and controls inside narrow columns. */
.content-wrap,.view,.panel-card,.import-copy,.prescription-list,.recipe-grid,.recipe-card,.recipe-details,.quick-consumption,.meal-choice-group,.meal-choice-details,.draft-meals,.draft-meal-fields,.meal-choice-radio-list,.recipe-alternative-list{min-width:0;max-width:100%}
.import-copy{flex:1 1 0;width:100%}.prescription-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:start;min-width:0}.file-mark{flex:none}.prescription-copy strong{white-space:normal;overflow-wrap:anywhere;line-height:1.35}.prescription-copy small{overflow-wrap:anywhere;line-height:1.45}.prescription-actions{align-self:center}.recipe-card .field select,.field select{width:100%;max-width:100%;min-width:0;font-weight:550;font-size:13px;padding:8px 28px 8px 12px;white-space:nowrap;text-overflow:ellipsis;height:40px;min-height:40px}.recipe-card .field select{font-size:12px;padding-left:9px;padding-right:20px;min-height:36px;height:36px}.recipe-card .quick-consumption{display:grid;gap:7px}.recipe-card .recipe-ingredient-list li{gap:7px;font-size:11px}.recipe-card .recipe-ingredient-list li strong,.recipe-card .recipe-ingredient-list li b{font-size:11px}.recipe-card .recipe-ingredient-list li b{white-space:nowrap}.recipe-card h4{margin:5px 0;font-size:12px}.recipe-card .quick-consumption .button{font-size:11px;padding-inline:9px;white-space:normal;min-height:36px}.recipe-card .quick-consumption .field input{font-size:12px;padding-inline:10px}.recipe-card .recipe-copy h3{overflow-wrap:anywhere}.recipe-ingredient-list li>span,.recipe-alternative-list label>span,.meal-choice-radio-list label>span{min-width:0;overflow-wrap:anywhere}.recipe-ingredient-list li{align-items:start;gap:10px}.recipe-ingredient-list li>b{white-space:nowrap}.recipe-review-note{border:1px solid var(--line);border-left:3px solid var(--amber);background:var(--surface);border-radius:10px;padding:9px 11px;font-size:12px!important;color:var(--muted)!important}.selected-recipe-label{color:var(--green)!important;font-weight:650;font-size:12px!important;margin:0 0 10px!important}.food-photo-unverified{background-image:none;background-color:var(--surface-3)}.meal-choice-option strong{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.25;font-size:11px;min-height:2.5em}.meal-period-tabs{max-width:100%}.recipe-preparation{overflow-wrap:anywhere}
@media(max-width:560px){.import-card{display:block}.import-card>.upload-symbol{float:none;margin-bottom:9px;width:32px;height:32px;font-size:17px}.prescription-row{grid-template-columns:32px minmax(0,1fr);gap:7px 9px;padding:10px}.prescription-actions{grid-column:2;justify-self:start;gap:8px}.prescription-copy strong{font-size:12px}.prescription-copy small{font-size:11px}.prescription-meta{font-size:11px;line-height:1.45}.import-copy .upload-button{max-width:100%}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.draft-meta-grid{grid-template-columns:minmax(0,1fr)}.meal-choice-details{padding-inline:0}.recipe-card .recipe-details{padding-inline:7px}.recipe-card .field select{font-size:12px}.recipe-card .quick-consumption .button{font-size:11px}.meal-choice-option strong{font-size:11px}.recipe-grid-page{grid-template-columns:minmax(0,1fr)}.recipe-ingredient-list li strong,.recipe-ingredient-list li>b{font-size:13px}.recipe-ingredient-list li small{font-size:11px}}
@media(max-width:360px){.meal-choice-option strong{font-size:10px}.recipe-card .recipe-ingredient-list li{display:grid;grid-template-columns:minmax(0,1fr);gap:1px}.recipe-card .recipe-ingredient-list li b{font-size:11px;color:var(--muted)}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.prescription-copy strong{font-size:11px}.meal-choice-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:360px){.recipe-grid.recipe-grid-page{grid-template-columns:minmax(0,1fr)}}

/* Confirmation and stock receipt, using the same dark cards and green action. */
.consumption-dialog{width:min(100% - 28px,480px);max-height:calc(100dvh - 38px);margin:auto;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text);box-shadow:0 24px 80px #0008;overflow:auto}.consumption-dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}.consumption-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}.consumption-dialog-head h2{margin:3px 0 12px;font-size:22px;line-height:1.2}.consumption-dialog-head .icon-button{flex:none}.consumption-dialog-body{display:grid;min-width:0;gap:10px}.consumption-meal-name{margin:0;font-size:15px;line-height:1.35;overflow-wrap:anywhere}.consumption-muted{color:var(--muted);font-size:13px;margin:0;line-height:1.55}.consumption-dialog-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin-top:16px}.consumption-dialog-actions .button{min-height:43px;white-space:normal;padding-inline:10px;font-size:13px}.consumption-dialog-actions .button:only-child{grid-column:1/-1}.consumption-dialog-actions .button:disabled{opacity:.45;cursor:not-allowed}.consumption-warning{border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:10px;background:var(--surface-2);padding:10px;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.consumption-warning strong{color:var(--text)}.consumption-warning p{margin:5px 0 7px}.consumption-warning ul,.stock-summary ul{margin:6px 0;padding-left:19px}.consumption-repeat{display:flex;align-items:center;gap:8px;color:var(--text);font-weight:600;cursor:pointer}.consumption-repeat input{width:18px;height:18px;accent-color:var(--green);flex:none}.stock-summary{border:1px solid var(--line);border-radius:12px;background:var(--surface-2);padding:10px;font-size:12px;min-width:0}.stock-summary-label{font-size:11px;color:var(--muted);font-weight:600}.stock-summary-item{padding:9px 0;border-top:1px solid var(--line)}.stock-summary-item:last-child{padding-bottom:0}.stock-summary-item strong{display:block;margin-bottom:4px;font-size:13px;overflow-wrap:anywhere}.stock-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;font-variant-numeric:tabular-nums;color:var(--text);font-size:12px}.stock-summary-grid span{overflow-wrap:anywhere}.stock-summary-header{font-size:10px;color:var(--muted);padding:4px 0 7px}.stock-used{color:var(--green);font-weight:650}.consumption-success-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--surface-2);border:1px solid var(--green);color:var(--green);font-size:24px;margin:0 auto}.record-row .record-copy{min-width:0}.record-row .record-copy time{display:block;font-size:11px}.record-row .undo-button{flex:0 0 auto;width:auto;height:auto;min-height:36px;padding:6px 10px;font-size:11px;white-space:nowrap}.record-row .record-copy strong,.record-row .record-copy small{white-space:normal;overflow-wrap:anywhere}.record-row .record-copy small{overflow:visible}
@media(max-width:360px){.consumption-dialog{padding:14px;width:calc(100% - 20px)}.consumption-dialog-head h2{font-size:19px}.consumption-dialog-actions{grid-template-columns:minmax(0,1fr)}.stock-summary-grid{font-size:11px}.record-row .undo-button{font-size:10px;padding:6px 8px}}
