:root{--forest:#123f2e;--forest2:#0d3023;--green:#1f8d5e;--green2:#2aa56e;--lime:#cbe97a;--cream:#f6f3e9;--paper:#fffdf8;--ink:#173126;--muted:#66746c;--line:#dfe7df;--line2:#cfdacf;--soft:#f3f7f2;--danger:#9d3434;--shadow:0 18px 55px rgba(17,62,45,.10)}
*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:linear-gradient(180deg,#f8f7ef 0%,#eff5ed 100%)}button,input,textarea,select{font:inherit}button{cursor:pointer}.ez-page{min-height:100dvh}.ez-shell{min-height:100dvh;display:grid;grid-template-rows:auto 1fr auto}.ez-header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:12px clamp(18px,4vw,56px);border-bottom:1px solid rgba(21,73,52,.09);background:rgba(255,253,248,.88);backdrop-filter:blur(18px);position:sticky;top:0;z-index:30}.ez-header.authenticated-header{height:58px;padding-block:7px}.ez-brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.ez-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#f0ffd1;box-shadow:inset 0 0 0 1px rgba(24,81,58,.08)}.authenticated-header .ez-mark{width:36px;height:36px;border-radius:11px}.ez-mark img{width:31px;height:31px}.authenticated-header .ez-mark img{width:27px;height:27px}.ez-brand-copy{display:grid;gap:0}.ez-brand-copy strong{font-size:1.12rem;letter-spacing:-.03em}.ez-brand-copy small{font-size:.71rem;color:var(--muted)}.signed-in-line{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;color:#476056;font-size:.79rem;white-space:nowrap}.signed-kicker{font-size:.63rem;font-weight:900;letter-spacing:.12em;color:#4b7c64}.ez-logout{border:1px solid #cdd9d0;background:#fff;border-radius:999px;padding:7px 12px;color:var(--forest);font-weight:800;font-size:.78rem}.ez-logout:hover{background:#f3f7f2}.ez-main{min-height:0;display:grid}.eyebrow{display:block;color:#40735c;font-weight:900;letter-spacing:.14em;font-size:.68rem;margin-bottom:7px}.ez-footer{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px clamp(18px,4vw,56px);border-top:1px solid rgba(21,73,52,.09);background:rgba(255,253,248,.74);color:var(--muted);font-size:.74rem}.ez-footer>div{display:flex;align-items:center;gap:8px}.ez-footer img{width:26px;height:26px}.ez-footer>div>span{display:grid}.ez-footer strong{color:var(--ink)}.ez-footer small{color:var(--muted)}

/* Guest login */
.login-stage{min-height:calc(100dvh - 134px);display:grid;place-items:center;padding:32px 18px;position:relative;overflow:hidden}.login-card{width:min(100%,470px);background:rgba(255,253,248,.96);border:1px solid rgba(19,64,46,.10);border-radius:32px;padding:clamp(26px,5vw,42px);box-shadow:var(--shadow)}.login-brand-burst{width:78px;height:78px;display:grid;place-items:center;border-radius:24px;background:linear-gradient(145deg,#f2ffd3,#e4f3c0);margin-bottom:24px}.login-brand-burst img{width:58px;height:58px}.login-card h1{font-size:clamp(2.15rem,7vw,3.35rem);line-height:.96;letter-spacing:-.055em;margin:0}.login-copy{color:var(--muted);font-size:1rem;line-height:1.55;margin:16px 0 24px}.login-form{display:grid;gap:18px}.login-form label{display:grid;gap:7px;font-size:.79rem;font-weight:800;color:#314b40}.login-form input,.ez-dialog input,.ez-dialog textarea,.ez-dialog select{width:100%;border:1px solid #cbd7ce;border-radius:14px;background:#fff;padding:12px 14px;outline:none;color:var(--ink);transition:.15s border-color,.15s box-shadow}.login-form input{height:50px}.login-form input:focus,.ez-dialog input:focus,.ez-dialog textarea:focus,.ez-dialog select:focus,.quick-add input:focus,.grocery-filter input:focus,.grocery-filter select:focus,.composer textarea:focus{border-color:#4b9e72;box-shadow:0 0 0 4px rgba(68,157,111,.11)}.password-row{position:relative}.password-row input{padding-right:72px}.password-toggle{position:absolute;right:8px;top:8px;height:34px;border:0;border-radius:10px;background:#edf4ee;color:#2f674c;font-size:.75rem;font-weight:800;padding:0 10px}.form-status{min-height:20px;margin:-2px 0 0;font-size:.82rem;color:var(--muted)}.form-status.error{color:#a33131}.primary-action,.primary-btn,.soft-btn,.ghost-btn,.danger-btn{border:0;border-radius:13px;font-weight:850;transition:.15s transform,.15s background,.15s box-shadow}.primary-action,.primary-btn{background:linear-gradient(135deg,var(--forest),#237b56);color:#fff;box-shadow:0 8px 22px rgba(18,63,46,.16)}.primary-action{height:54px}.primary-action:hover,.primary-btn:hover{transform:translateY(-1px)}.soft-btn{background:#e9f4eb;color:#1c6848;border:1px solid #d3e5d6}.ghost-btn{background:#fff;color:#345446;border:1px solid var(--line2)}.danger-btn{background:#9d3434;color:#fff}.compact{padding:8px 11px;font-size:.76rem}.primary-btn,.soft-btn,.ghost-btn,.danger-btn{padding:10px 14px}.text-action{border:0;background:transparent;color:#567068;font-weight:800;font-size:.74rem;padding:6px}.text-action:hover{color:var(--forest);text-decoration:underline}

/* Current Session */
.session-stage{width:100%;padding:18px clamp(12px,2.5vw,30px) 28px}.session-shell{width:min(1560px,100%);margin:0 auto}.session-loading,.session-error{min-height:55vh;display:grid;place-items:center;align-content:center;gap:10px;text-align:center}.bean-loader{font-size:2.2rem}.session-titlebar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:10px 2px 16px}.session-titlebar h1{margin:0;font-size:clamp(1.55rem,3vw,2.3rem);letter-spacing:-.045em}.count-row{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.count-row span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid var(--line);font-size:.73rem;color:#567068}.count-row b{color:var(--forest)}.surface,.approval-box{background:rgba(255,253,248,.96);border:1px solid rgba(19,64,46,.10);border-radius:22px;box-shadow:0 10px 30px rgba(17,62,45,.055)}.approval-box{padding:16px;margin-bottom:14px;background:linear-gradient(180deg,#fbfff5,#fffdf8)}.approval-head,.surface-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.approval-head h2,.surface-head h2{margin:0;font-size:1.15rem;letter-spacing:-.025em}.approval-head>div:last-child,.plan-actions{display:flex;gap:7px;flex-wrap:wrap}.proposal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin-top:12px}.proposal-card{border:1px solid #d9e5d9;border-radius:16px;background:#fff;padding:13px}.proposal-card h4{margin:9px 0 4px;font-size:1rem}.proposal-card p{margin:0;color:var(--muted);font-size:.77rem}.proposal-top{display:flex;align-items:center;gap:8px}.food-dot{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#f1f7ea}.detected-tag{display:inline-flex;align-items:center;border-radius:999px;background:#dff3de;color:#21623f;padding:4px 7px;font-size:.65rem;font-weight:900}.proposal-ings{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.proposal-ings span{font-size:.68rem;background:#f3f6f0;padding:4px 7px;border-radius:999px}.proposal-actions{display:flex;gap:6px;margin-top:11px}.proposal-actions button{border:0;border-radius:10px;background:#e0f0e3;color:#195c3e;padding:7px 10px;font-weight:850;font-size:.73rem}.proposal-actions .plain{background:#f1f2ef;color:#5b6d64}.session-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(330px,.8fr);gap:14px;align-items:start}.chat-surface,.grocery-surface,.plan-surface{padding:16px}.chat-surface{min-width:0}.reset-note{margin:12px 0 0;padding:9px 11px;border-radius:12px;background:#f0f6eb;color:#577064;font-size:.73rem}.chat-messages{height:min(52vh,560px);min-height:360px;overflow:auto;padding:14px 3px 8px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin}.message{max-width:88%;padding:11px 13px;border-radius:16px;background:#f4f6f1;border:1px solid #e7ece5;line-height:1.48;font-size:.9rem}.message.user{align-self:flex-end;background:#163f2f;color:#fff;border-color:#163f2f}.message small{display:block;margin-top:6px;font-size:.65rem;opacity:.62}.message h4,.message h5{margin:7px 0 3px}.chat-gap{height:8px}.chat-bullet{font-weight:900}.quick-prompts{display:flex;gap:6px;flex-wrap:wrap;padding:7px 0}.quick-prompts button{border:1px solid #d6e2d7;background:#f7faf5;color:#3c6250;border-radius:999px;padding:6px 9px;font-size:.68rem;font-weight:800}.composer{margin-top:7px;border-top:1px solid #edf0eb;padding-top:10px}.composer textarea{width:100%;resize:vertical;min-height:64px;max-height:180px;border:1px solid #cdd9d0;border-radius:14px;padding:11px 12px;outline:none}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:7px}.composer-bottom span{font-size:.7rem;color:var(--muted)}.composer-bottom .primary-btn{padding-inline:18px}.detected-card{display:block;margin:10px 0;border:1px solid #cfe3ce;background:linear-gradient(180deg,#fbfff6,#f6fbf4);border-radius:16px;padding:12px;color:var(--ink)}.detected-head{display:flex;gap:10px;align-items:center}.food-big{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#ecf6e7;font-size:1.35rem}.detected-head h4{margin:4px 0 1px}.detected-head small{color:var(--muted)}.detected-ingredients{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.detected-ingredients span,.detected-grocery{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #dce7da;border-radius:12px;padding:6px 8px}.detected-ingredients small,.detected-grocery small{display:block;color:var(--muted);font-size:.62rem}.detected-grocery{vertical-align:middle;margin:2px 1px}.detected-grocery i{font-style:normal}.detected-grocery em{font-style:normal;text-transform:uppercase;letter-spacing:.08em;color:#3f805c;font-size:.55rem;font-weight:900}.empty-state{min-height:250px;display:grid;place-items:center;align-content:center;text-align:center;color:var(--muted);padding:24px}.empty-state.compact{min-height:190px}.empty-state span{font-size:2rem}.empty-state h3{margin:8px 0 4px;color:var(--ink)}.empty-state p{margin:0;max-width:360px;font-size:.8rem}.quick-add{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.55fr) auto;gap:6px;margin-top:12px}.quick-add input,.grocery-filter input,.grocery-filter select{min-width:0;border:1px solid #cfdacf;border-radius:11px;background:#fff;padding:9px 10px;outline:none;font-size:.8rem}.grocery-filter{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:6px;margin:7px 0 10px}.grocery-list{display:flex;flex-direction:column;gap:7px;max-height:655px;overflow:auto;padding-right:2px}.grocery-row{display:grid;grid-template-columns:30px 32px minmax(0,1fr) auto;grid-template-areas:"check icon copy qty" ". . copy acts";gap:5px 8px;align-items:center;padding:9px;border:1px solid #e0e7df;border-radius:14px;background:#fff}.grocery-row.is-done{opacity:.62}.grocery-row.is-done .grocery-copy b{text-decoration:line-through}.check-btn{grid-area:check;width:28px;height:28px;border-radius:9px;border:1px solid #c8d6ca;background:#f9fbf8;color:#1f774f;font-weight:900}.grocery-icon{grid-area:icon;font-size:1.2rem}.grocery-copy{grid-area:copy;min-width:0}.grocery-copy b,.grocery-copy small{display:block}.grocery-copy b{overflow-wrap:anywhere}.grocery-copy small{font-size:.65rem;color:var(--muted);margin-top:2px}.qty{grid-area:qty;display:flex;align-items:center;gap:2px;border:1px solid #d7e1d7;border-radius:10px;overflow:hidden}.qty button{border:0;background:#f4f7f3;width:26px;height:28px}.qty strong{min-width:24px;text-align:center;font-size:.76rem}.g-actions{grid-area:acts;display:flex;gap:4px;justify-content:flex-end}.g-actions button{border:0;background:#f1f4ef;color:#53685e;border-radius:8px;padding:5px 7px;font-size:.62rem;font-weight:850}.plan-surface{margin-top:14px}.plan-head{align-items:center}.plan-groups{display:grid;gap:14px;margin-top:14px}.plan-group{border-top:1px solid #edf0eb;padding-top:12px}.plan-group:first-child{border-top:0;padding-top:0}.group-title{display:flex;align-items:center;gap:7px;margin-bottom:8px}.group-title h3{margin:0;font-size:.93rem}.group-title span{min-width:22px;height:22px;border-radius:999px;display:grid;place-items:center;background:#eef5ea;color:#54705f;font-size:.67rem;font-weight:900}.group-empty{margin:0;color:#8a978f;font-size:.73rem}.meal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}.meal-card{border:1px solid #e0e8df;border-radius:17px;background:#fff;padding:13px;min-width:0}.meal-title{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:start;gap:9px}.meal-icon{width:40px;height:40px;border-radius:12px;background:#f0f7ea;display:grid;place-items:center;font-size:1.25rem}.type-pill{display:inline-flex;border-radius:999px;background:#eff5ec;color:#476452;padding:3px 7px;font-size:.59rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.meal-card h3{margin:5px 0 0;font-size:1rem;overflow-wrap:break-word}.meal-card p{margin:9px 0;color:var(--muted);font-size:.75rem;line-height:1.45}.remove-btn{border:0;background:#f4f5f1;color:#758178;border-radius:9px;width:28px;height:28px}.ingredient-cloud{display:flex;gap:5px;flex-wrap:wrap;margin-top:11px}.ingredient-cloud span{display:inline-flex;align-items:center;gap:5px;border-radius:10px;background:#f8faf6;border:1px solid #e5ebe3;padding:5px 7px;font-size:.67rem}.ingredient-cloud small{color:var(--muted);font-size:.57rem}.ingredient-cloud em{color:var(--muted);font-size:.7rem}.simple-card{background:#fbfcf8}

/* Modals + toasts */
.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(11,35,26,.38);backdrop-filter:blur(5px);display:grid;place-items:center;padding:18px}.ez-dialog{width:min(520px,100%);max-height:min(86dvh,760px);overflow:auto;background:var(--paper);border:1px solid rgba(25,66,49,.13);border-radius:23px;padding:22px;box-shadow:0 28px 90px rgba(12,44,31,.22)}.ez-dialog h2{margin:2px 0 8px;letter-spacing:-.035em}.ez-dialog p{color:var(--muted);line-height:1.5}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:18px}.dialog-stack{display:grid;gap:8px;margin-top:14px}.session-menu-list{display:grid;gap:7px;margin-top:14px}.session-menu-list button{text-align:left;border:1px solid #dce5db;background:#fff;border-radius:14px;padding:12px 13px;color:var(--ink)}.session-menu-list b,.session-menu-list small{display:block}.session-menu-list small{color:var(--muted);margin-top:3px}.session-menu-list .danger-choice{border-color:#ead0d0;background:#fffafa}.toast-root{position:fixed;right:16px;bottom:16px;z-index:150;display:grid;gap:7px}.ez-toast{max-width:min(360px,calc(100vw - 32px));padding:10px 13px;border-radius:12px;background:#173f2f;color:#fff;box-shadow:0 12px 35px rgba(0,0,0,.18);font-size:.8rem}.ez-toast.error{background:#8d3030}.ez-toast.success{background:#23744f}
.setup-wait{min-height:100dvh;display:grid;place-items:center;align-content:center;gap:8px;text-align:center}.setup-wait img{width:78px}.setup-wait h1,.setup-wait p{margin:0}.setup-wait p{color:var(--muted)}

@media(max-width:980px){.session-grid{grid-template-columns:1fr}.grocery-list{max-height:none}.chat-messages{height:460px}.signed-in-line{position:static;transform:none;margin-left:auto;margin-right:8px}.ez-header.authenticated-header{gap:10px}.authenticated-header .ez-brand-copy small{display:none}}
@media(max-width:640px){.ez-header{padding:8px 12px}.authenticated-header .ez-brand-copy{display:none}.signed-in-line{font-size:.72rem;margin:0 auto}.signed-kicker{display:none}.ez-logout{padding:6px 9px}.session-stage{padding:10px 8px 18px}.session-titlebar{grid-template-columns:1fr auto;gap:8px}.session-titlebar>div:first-child{grid-column:1/-1}.count-row{justify-content:flex-start}.session-titlebar h1{font-size:1.65rem}.surface,.approval-box{border-radius:17px}.chat-surface,.grocery-surface,.plan-surface,.approval-box{padding:12px}.approval-head,.surface-head{gap:8px}.approval-head{align-items:center}.approval-head>div:last-child{justify-content:flex-end}.quick-add{grid-template-columns:1fr auto}.quick-add input[name="category"]{grid-column:1/-1;grid-row:2}.grocery-row{grid-template-columns:28px 30px minmax(0,1fr);grid-template-areas:"check icon copy" ". qty qty" ". acts acts"}.qty{justify-self:start}.g-actions{justify-content:flex-start;flex-wrap:wrap}.chat-messages{height:50dvh;min-height:320px}.message{max-width:94%}.plan-head{align-items:flex-start;flex-direction:column}.meal-grid{grid-template-columns:1fr}.ez-footer{padding:10px 12px}.ez-footer small{display:none}.login-stage{min-height:calc(100dvh - 134px);padding:20px 12px}.login-card{border-radius:25px;padding:26px 20px}.login-form input,.ez-dialog input,.ez-dialog textarea,.ez-dialog select,.quick-add input,.grocery-filter input,.grocery-filter select,.composer textarea{font-size:16px}.modal-backdrop{padding:8px}.ez-dialog{max-height:92dvh;border-radius:18px;padding:18px}.toast-root{right:8px;bottom:8px}}
@media(max-width:420px){.count-row span{font-size:.66rem;padding:6px 8px}.session-titlebar .ghost-btn{align-self:center}.proposal-grid{grid-template-columns:1fr}.quick-prompts{overflow-x:auto;flex-wrap:nowrap;padding-bottom:10px}.quick-prompts button{white-space:nowrap}.grocery-filter{grid-template-columns:1fr}.signed-in-line strong{max-width:115px;display:inline-block;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.ez-footer>span:last-child{display:none}}
@media(max-height:620px){.login-stage{place-items:start center;padding-top:18px}.login-card{padding-top:24px;padding-bottom:24px}.login-brand-burst{width:56px;height:56px;margin-bottom:14px}.login-brand-burst img{width:42px;height:42px}.login-copy{margin:10px 0 16px}.login-form{gap:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
