:root{font-family:Inter,ui-rounded,SF Pro Rounded,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#173d32;background:#e8e5da;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at top right,rgba(224,164,88,.17),transparent 28rem),#e8e5da}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{width:min(100%,680px);min-height:100vh;margin:0 auto;padding:max(28px,env(safe-area-inset-top)) 18px max(32px,env(safe-area-inset-bottom));background:#f7f5ef;box-shadow:0 0 70px #143d3217}.app-header{display:flex;align-items:center;justify-content:space-between;margin:4px 4px 12px}.header-actions{display:flex;align-items:center;gap:9px}.logout-button{min-height:38px;padding:0 11px;border:1px solid #d6ddd7;border-radius:11px;color:#52665d;background:#fff;font-size:.75rem;font-weight:750}.login-shell{display:grid;width:min(100%,680px);min-height:100vh;margin:0 auto;padding:max(28px,env(safe-area-inset-top)) 18px max(32px,env(safe-area-inset-bottom));place-items:center;background:#f7f5ef}.login-card{width:min(100%,410px);padding:28px;border:1px solid #e2e3dc;border-radius:22px;background:#fff;box-shadow:0 14px 45px #2239301a}.brand-logo-login{width:min(54vw,190px);height:auto;margin:-10px auto 19px}.login-card h1{margin-bottom:8px}.login-card>p:not(.eyebrow){margin:0 0 23px;color:#687870}.login-card form{display:grid;gap:15px}.login-card label{display:grid;gap:7px;color:#596b63;font-size:.82rem;font-weight:750}.login-card input{width:100%;padding:0 13px}.login-card .primary-button{width:100%}.login-card .error-banner{margin-top:15px}.login-card .error-banner button{font-size:.8rem;font-weight:800}.offline-auth-note{position:fixed;z-index:10;right:10px;bottom:max(10px,env(safe-area-inset-bottom));margin:0;padding:7px 10px;border-radius:999px;color:#fff;background:#52665d;font-size:.7rem}.sync-summary{display:flex;min-height:34px;align-items:center;justify-content:space-between;gap:10px;margin:0 4px 18px}.sync-summary small{color:#7d8983;font-size:.73rem}.sync-status{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border:0;border-radius:999px;color:#52665d;background:#e8ece7;font-size:.72rem;font-weight:750}.sync-status span{width:7px;height:7px;border-radius:50%;background:#819089}.sync-status.synced span,.sync-status.online span{background:#3f806b}.sync-status.offline span{background:#8a918e}.sync-status.error span{background:#d17c45}.sync-status.syncing span{background:#d17c45;animation:pulse .9s infinite alternate}.sync-status:disabled{opacity:1}@keyframes pulse{to{opacity:.3;transform:scale(.75)}}.eyebrow{margin:0 0 5px;color:#76877f;font-size:.77rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}h1{margin:0;font-size:clamp(2rem,8vw,2.65rem);letter-spacing:-.045em}.brand-logo{display:block;object-fit:contain;filter:drop-shadow(0 7px 12px rgba(20,35,30,.18))}.brand-logo-header{width:clamp(58px,14vw,76px);height:clamp(58px,14vw,76px)}.tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:4px;margin-bottom:22px;border-radius:15px;background:#e6ebe6}.tabs button{min-height:44px;border:0;border-radius:12px;color:#61736b;background:transparent;padding-inline:5px;font-size:.78rem;font-weight:750}.tabs button.active{color:#173d32;background:#fff;box-shadow:0 3px 12px #143d3217}.add-form{display:flex;gap:10px;margin-bottom:18px}input{min-width:0;min-height:48px;border:1px solid #d6ddd7;border-radius:13px;color:#173d32;background:#fff;outline:none}textarea,select{width:100%;border:1px solid #d6ddd7;border-radius:13px;color:#173d32;background:#fff;outline:none}textarea{padding:12px 13px;resize:vertical}select{min-height:45px;padding:0 11px}textarea:focus,select:focus{border-color:#3f806b;box-shadow:0 0 0 3px #3f806b24}input:focus{border-color:#3f806b;box-shadow:0 0 0 3px #3f806b24}.add-form input{flex:1;padding:0 15px}.add-form button,.recurring-form button{min-height:48px;padding:0 20px;border:0;border-radius:13px;color:#fff;background:#d17c45;font-weight:800;box-shadow:0 5px 14px #d17c4533}button:disabled{cursor:default;opacity:.5}.list-card,.recurring-card,.recurring-form{overflow:hidden;border:1px solid #e2e3dc;border-radius:19px;background:#fff;box-shadow:0 8px 28px #2239300e}.shopping-row{display:flex;min-height:67px;align-items:center;gap:14px;padding:10px 17px;border-bottom:1px solid #edefe9;cursor:pointer}.shopping-row:last-child{border-bottom:0}.shopping-row input{position:absolute;width:1px;height:1px;opacity:0}.custom-checkbox{display:grid;width:26px;height:26px;flex:0 0 auto;place-items:center;border:2px solid #a8b7af;border-radius:8px;color:transparent;font-size:.9rem;transition:.15s ease}.shopping-row input:focus-visible+.custom-checkbox{box-shadow:0 0 0 3px #3f806b33}.shopping-row.checked .custom-checkbox{border-color:#3f806b;color:#fff;background:#3f806b}.shopping-row.checked .item-name{color:#94a09a;text-decoration:line-through}.shopping-row.pending{background:#fffdf8}.recent-items{margin-top:14px}.recent-items summary{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;border:1px solid #e2e3dc;border-radius:15px;color:#52645c;background:#f7f8f4;cursor:pointer;font-weight:750;list-style:none}.recent-items summary::-webkit-details-marker{display:none}.recent-items[open] summary{margin-bottom:8px}.recent-items-count{display:grid;min-width:26px;height:26px;place-items:center;border-radius:999px;color:#3f806b;background:#e1eee8;font-size:.76rem}.recent-items-list .shopping-row{min-height:58px}.pending-mark{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#d17c45}.item-name{display:flex;flex:1;flex-direction:column;font-size:1.08rem;font-weight:680}.item-name small{margin-top:2px;color:#d17c45;font-size:.68rem;text-decoration:none;text-transform:uppercase}.error-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding:12px 14px;border-radius:12px;color:#7d2d28;background:#fbe5df}.error-banner button{border:0;color:inherit;background:transparent;font-size:1.3rem}.state-message{padding:26px 18px;color:#74817b;text-align:center}.offline-note{margin:0 0 12px;padding:10px 13px;border-radius:12px;color:#64736c;background:#e8ece7;font-size:.82rem}.recurring-form{display:grid;gap:15px;padding:18px;margin-bottom:18px}.recurring-form label{display:grid;gap:7px;color:#5a6c64;font-size:.82rem;font-weight:750}.recurring-form label>input{width:100%;padding:0 13px}.number-field{display:flex;align-items:center;gap:11px}.number-field input{width:90px;padding:0 13px}.number-field span{color:#173d32;font-size:1rem}.recurring-list{display:grid;gap:12px}.recurring-card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px}.recurring-card h2{margin:0 0 4px;font-size:1.1rem}.recurring-card p{margin:0 0 4px;color:#566b62}.recurring-card small{color:#8a9791}.recurring-actions{display:flex;align-items:center;gap:12px}.recurring-delete{min-height:38px;padding-inline:11px}.switch{display:grid;justify-items:center;gap:5px;cursor:pointer}.switch input{position:absolute;width:1px;height:1px;opacity:0}.switch span{position:relative;width:47px;height:27px;border-radius:20px;background:#c4cbc7;transition:.15s ease}.switch span:after{content:"";position:absolute;top:4px;left:4px;width:19px;height:19px;border-radius:50%;background:#fff;transition:.15s ease;box-shadow:0 1px 4px #0003}.switch input:checked+span{background:#3f806b}.switch input:checked+span:after{transform:translate(20px)}.switch input:focus-visible+span{box-shadow:0 0 0 3px #3f806b33}.switch b{color:#76877f;font-size:.65rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.surface-card{border:1px solid #e2e3dc;border-radius:19px;background:#fff;box-shadow:0 8px 28px #2239300e}.primary-button,.ai-button,.secondary-button,.danger-button{min-height:44px;padding:0 15px;border-radius:12px;font-weight:800}.primary-button{border:0;color:#fff;background:#d17c45}.ai-button{border:0;color:#fff;background:#5b567f}.secondary-button{border:1px solid #ced8d1;color:#31594c;background:#fff}.danger-button{border:1px solid #efc6be;color:#a43e35;background:#fff7f4}.full-button{width:100%;margin-top:13px}.view-actions,.form-actions,.planner-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.inline-error,.success-message,.offline-note{margin:0 0 13px;padding:10px 13px;border-radius:12px;font-size:.84rem}.inline-error{color:#7d2d28;background:#fbe5df}.success-message{color:#285f4d;background:#e0eee7}.recipe-grid{display:grid;gap:11px}.recipe-list-card{display:grid;gap:5px;width:100%;padding:17px;border:1px solid #e2e3dc;border-radius:16px;color:#173d32;background:#fff;text-align:left;box-shadow:0 5px 18px #2239300a}.recipe-list-card span{font-size:1.05rem;font-weight:800}.recipe-list-card small{color:#77857e}.section-heading{display:flex;align-items:center;gap:11px;margin-bottom:15px}.section-heading h2{margin:0;font-size:1.25rem}.back-button,.icon-button{display:grid;width:40px;height:40px;flex:0 0 auto;place-items:center;border:1px solid #dce2dd;border-radius:12px;color:#31594c;background:#fff;font-size:1.1rem}.icon-button.danger{color:#a43e35}.recipe-form{display:grid;gap:17px;padding:18px}.recipe-form>label,.ai-composer label,.planner-ai label,.planner-toolbar label{display:grid;gap:7px;color:#596b63;font-size:.82rem;font-weight:750}.recipe-form>label input,.compact-field input{padding:0 13px}.compact-field{max-width:140px}.recipe-form fieldset{display:grid;gap:10px;padding:0;border:0}.recipe-form legend{margin-bottom:9px;color:#173d32;font-size:1rem;font-weight:850}.ingredient-editor{display:grid;grid-template-columns:minmax(120px,1fr) 78px 86px auto;align-items:center;gap:7px}.ingredient-editor input{width:100%;padding:0 10px}.ingredient-editor input[placeholder="Custom unit"]{grid-column:1 / 4}.instruction-editor{display:grid;grid-template-columns:25px 1fr auto;align-items:start;gap:7px}.instruction-editor>span{display:grid;height:28px;place-items:center;border-radius:50%;color:#fff;background:#3f806b;font-size:.76rem;font-weight:800}.recipe-form .form-actions{justify-content:flex-end;margin:0}.recipe-detail{padding:19px}.recipe-title-row{display:flex;justify-content:space-between;gap:12px}.recipe-title-row h2{margin:0 0 5px}.recipe-title-row p{margin:0;color:#697970}.recipe-title-row>span{height:fit-content;padding:6px 9px;border-radius:999px;color:#31594c;background:#e6eee9;font-size:.72rem;white-space:nowrap}.recipe-detail h3{margin:20px 0 9px;font-size:.92rem;text-transform:uppercase;letter-spacing:.06em}.tag-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:13px}.tag-list span{padding:5px 8px;border-radius:999px;color:#625b30;background:#f4ecc7;font-size:.7rem}.ingredient-list,.instruction-list{display:grid;gap:8px;margin:0;padding-left:22px}.ingredient-list b{display:inline-block;min-width:70px}.recipe-detail-actions{justify-content:flex-end;margin-top:12px}.ai-composer,.planner-ai,.proposal-list{padding:17px;margin-bottom:15px}.ai-composer>p,.planner-ai>p{margin-top:0;color:#6d7973;font-size:.84rem}.ai-composer form,.planner-ai{display:grid;gap:12px}.conversation-log{display:grid;gap:7px;max-height:180px;overflow:auto;margin-bottom:12px}.conversation-log p{display:grid;gap:2px;max-width:90%;margin:0;padding:8px 10px;border-radius:11px;font-size:.79rem}.conversation-log p.user{justify-self:end;background:#e5eee9}.conversation-log p.assistant{background:#efedf7}.conversation-log b{font-size:.65rem;text-transform:uppercase}.planner-toolbar label{flex:1}.planner-toolbar input{width:100%;padding:0 11px}.week-grid{display:grid;gap:9px;margin-bottom:18px}.day-card{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:13px;border:1px solid #e2e3dc;border-radius:15px;background:#fff}.day-card h2{grid-column:1 / -1;margin:0;font-size:.95rem;text-transform:capitalize}.day-card label{display:grid;gap:4px;color:#738078;font-size:.7rem;font-weight:750;text-transform:uppercase}.day-card select{min-width:0;font-size:.8rem}.planner-ai h2,.proposal-list h2{margin:0;font-size:1.05rem}.proposal-list{display:grid;gap:9px}.proposal-list>div{display:flex;justify-content:space-between;gap:10px;padding-bottom:8px;border-bottom:1px solid #eceee9;font-size:.82rem}.proposal-list>div span{color:#64736c;text-align:right}@media (max-width: 390px){.app-shell{padding-inline:13px}.add-form button{padding-inline:15px}.tabs button{font-size:.7rem}.view-actions{align-items:stretch;flex-direction:column}.ingredient-editor{grid-template-columns:1fr 72px 78px}.ingredient-editor .icon-button{grid-column:3}.recurring-actions{align-items:flex-end;flex-direction:column}}
