@charset "UTF-8";
:root{color-scheme:light dark;--bg:#f7f8f5;--card:#fff;--ink:#202b26;--muted:#718078;--line:#e8ece7;--green:#356b58;--green-soft:#e7efe9;--lime:#e9efcf;--danger:#b14a42;--shadow:0 10px 35px #213e2d08;--nav:rgba(250,252,248,.92);--yellow:#fbf3cc;--blue:#e4effb;--pink:#f8e6ec;--purple:#eee7f7;--note-green:#e5f0dc;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%;min-height:100dvh}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:wait;opacity:.6}input,select,textarea{font-size:16px;color:var(--ink);max-width:100%}a{color:var(--green);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #90b6a4;outline-offset:3px}button svg{pointer-events:none;flex-shrink:0}h1,h2,h3,h4,p{margin:0}h1{font-size:34px;letter-spacing:-1.5px;font-weight:750;line-height:1.15}h2{font-size:22px;letter-spacing:-.6px;font-weight:700}h3{font-size:17px;font-weight:650;letter-spacing:-.25px}small{font-size:12px}button{border:0;background:none}button.icon-btn{height:44px;width:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--card);border:1px solid var(--line)}.icon-btn:hover,.soft-btn:hover{background:var(--green-soft)}.skip-link{position:fixed;top:-80px;left:16px;z-index:100;padding:12px 18px;background:var(--card);border-radius:12px}.skip-link:focus{top:8px}.loading{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;color:var(--muted)}.loading h1{color:var(--ink)}.brand-icon{width:60px;height:60px;background:var(--green);border-radius:19px;color:white;font-size:47px;line-height:1.12;font-weight:700;text-align:center;letter-spacing:-3px}.shell{max-width:1040px;margin:auto;padding:0 28px calc(100px + env(safe-area-inset-bottom));}.topbar{display:flex;justify-content:space-between;align-items:center;padding:calc(22px + env(safe-area-inset-top)) 0 22px;gap:14px}.brand{display:flex;align-items:center;gap:10px}.brand .brand-icon{width:32px;height:32px;border-radius:10px;font-size:27px;line-height:1.05}.brand-name{font-size:21px;font-weight:750;letter-spacing:-.8px}.top-actions{display:flex;align-items:center;gap:10px}.avatars{display:flex;padding-right:3px}.avatar{width:32px;height:32px;border:3px solid var(--bg);border-radius:50%;display:grid;place-items:center;background:#dce9e1;color:#365a46;font-size:11px;font-weight:750}.avatar+.avatar{margin-left:-8px;background:#eddcca;color:#796045}.status{display:flex;align-items:center;gap:6px;border:0;font-size:12px;color:var(--muted);padding:8px 0;min-height:32px}.status-dot{width:6px;height:6px;border-radius:50%;background:#77a48a}.status.warn .status-dot{background:#c4973c}.status.error .status-dot{background:var(--danger)}.status svg{height:13px;width:13px}.heading{display:flex;justify-content:space-between;align-items:flex-end;margin:6px 0 26px;gap:18px}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);margin-bottom:10px}.subtitle{font-size:15px;color:var(--muted);margin-top:10px}.primary,.soft-btn,.danger-btn{min-height:46px;padding:11px 18px;border-radius:14px;font-weight:650;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary{background:var(--green);color:#fff}.primary:hover{filter:brightness(1.08)}.soft-btn{background:var(--green-soft);color:var(--green)}.danger-btn{background:color-mix(in srgb,var(--danger) 10%,transparent);color:var(--danger)}.text-btn{font-size:14px;color:var(--green);min-height:44px;padding:8px 0;font-weight:650;display:inline-flex;align-items:center;gap:6px}.card{background:var(--card);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}.card-pad{padding:24px}.card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:20px 22px 12px}.card-head .text-btn{min-height:32px}.section{margin-top:26px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:12px}.section-title h2{font-size:19px}.section-title p{font-size:13px;color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.hero{background:var(--green);color:white;border:0;position:relative;padding:25px 28px;min-height:180px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.hero::after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;border:1px solid #ffffff25;right:-70px;top:-85px;box-shadow:0 0 0 28px #ffffff05,0 0 0 65px #ffffff04;pointer-events:none}.hero .eyebrow{color:#d2e2d8}.hero h2{font-size:27px;max-width:300px;line-height:1.2;letter-spacing:-.9px}.hero .hero-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:22px}.hero p{font-size:13px;color:#d7e4dc}.hero .primary{background:#e9efcf;color:#315341;min-height:40px;padding:9px 14px;z-index:1}.stats{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stat{padding:21px 19px;display:flex;flex-direction:column;justify-content:space-between;min-height:180px}.stat .stat-icon{color:var(--green);background:var(--green-soft);width:38px;height:38px;display:grid;place-items:center;border-radius:13px}.stat strong{font-size:33px;line-height:1.1;letter-spacing:-1px}.stat span{font-size:12px;color:var(--muted);display:block;margin-top:5px}.row{display:flex;align-items:center;gap:12px;padding:15px 20px;min-height:68px;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0}.row-main{flex:1;min-width:0;text-align:left;padding:0;min-height:40px;display:flex;flex-direction:column;justify-content:center}.row-title{font-size:15px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.row-detail{font-size:12px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.row.completed .row-title{text-decoration:line-through;color:var(--muted)}.row.completed{opacity:.75}.check{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;margin:-7px}.check span{height:22px;width:22px;border:1.5px solid #bbc9bf;border-radius:7px;display:grid;place-items:center;color:white}.check[aria-checked=true] span{background:var(--green);border-color:var(--green)}.row-leading{width:35px;min-width:35px;height:35px;border-radius:11px;display:grid;place-items:center;background:var(--green-soft);color:var(--green)}.row-date{min-width:38px;text-align:center}.row-date strong{font-size:20px;line-height:1.1;display:block}.row-date small{font-size:9px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.7px}.badge{font-size:10px;font-weight:650;border-radius:8px;background:var(--green-soft);color:var(--green);padding:4px 7px;white-space:nowrap}.badge.ricky{background:#e4efe8;color:#4e735d}.badge.sweatha{background:#f2e8db;color:#8b6b3d}.badge.both{background:var(--green-soft);color:var(--muted)}.badge.due{background:#f6e8dd;color:#a56b35}.empty{padding:28px 24px;text-align:center}.empty .empty-icon{width:46px;height:46px;border-radius:16px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;margin:0 auto 12px}.empty h3{font-size:16px}.empty p{font-size:13px;color:var(--muted);max-width:300px;margin:6px auto 12px}.empty .text-btn{margin:auto}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:var(--nav);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-top:1px solid var(--line);z-index:20;padding:7px 16px calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:18px}.nav-button{min-width:65px;max-width:120px;flex:1;padding:7px 8px 3px;display:flex;align-items:center;flex-direction:column;gap:5px;color:var(--muted);font-size:10px;font-weight:600;min-height:51px;border-radius:13px}.nav-button svg{width:23px;height:23px}.nav-button.active{color:var(--green);background:var(--green-soft)}.segmented{display:flex;background:var(--line);padding:4px;border-radius:13px;gap:3px;margin-bottom:20px}.segmented button{flex:1;min-height:38px;border-radius:10px;font-size:14px;font-weight:600;color:var(--muted);padding:7px 10px}.segmented button.active{background:var(--card);color:var(--ink);box-shadow:0 1px 4px #00000009}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.toolbar-left{display:flex;gap:8px;align-items:center}.toolbar select{border:1px solid var(--line);border-radius:11px;background:var(--card);min-height:42px;padding:7px 29px 7px 12px}.chip{font-size:12px;font-weight:600;border:1px solid var(--line);border-radius:20px;padding:8px 13px;min-height:38px;color:var(--muted)}.chip.active{background:var(--green-soft);color:var(--green);border-color:transparent}.week-nav{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:18px}.week-nav h2{font-size:17px;letter-spacing:-.3px}.week-nav .icon-btn{border:0;width:38px;height:38px}.week-days{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin-bottom:24px}.day-button{padding:10px 2px;border-radius:16px;border:1px solid transparent;min-height:76px;color:var(--muted)}.day-button small{font-size:10px;font-weight:600;display:block}.day-button strong{font-size:21px;font-weight:600;display:block;margin:3px 0}.day-button .tiny-dot{display:block;width:4px;height:4px;background:currentColor;border-radius:50%;margin:auto;opacity:0}.day-button.has-meal .tiny-dot{opacity:1}.day-button.today{border-color:var(--line)}.day-button.selected{background:var(--green);color:white}.meal-slot{margin-top:15px}.meal-slot-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-left:3px}.meal-slot-head h3{font-size:13px;color:var(--muted);font-weight:600}.meal-slot-head button{min-width:44px;min-height:36px;color:var(--green)}.meal-empty{width:100%;text-align:left;border:1px dashed #cdd8cf;padding:17px 20px;border-radius:17px;color:var(--muted);font-size:13px;display:flex;align-items:center;gap:9px}.meal-card{padding:19px 20px;width:100%;text-align:left;border-radius:18px;display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:8px}.meal-card h3{font-size:16px}.meal-card p{font-size:12px;margin-top:5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.meal-card svg{color:var(--muted);flex-shrink:0}.group-title{font-size:11px;letter-spacing:1.1px;text-transform:uppercase;color:var(--muted);margin:24px 4px 9px;font-weight:700}.list-add{display:flex;gap:9px;margin:20px 0}.list-add input{flex:1;min-width:0;min-height:48px;border:1px solid var(--line);border-radius:14px;background:var(--card);padding:12px 15px}.list-add .primary{width:48px;padding:0;flex-shrink:0}.calendar-card{padding:20px}.month-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.month-nav h2{font-size:19px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.calendar-grid .weekday{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);text-align:center;font-weight:650;padding-bottom:9px}.calendar-day{min-height:48px;border-radius:13px;font-size:14px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}.calendar-day.other{color:var(--muted);opacity:.45}.calendar-day.today{box-shadow:inset 0 0 0 1px #a7bfb0}.calendar-day.selected{background:var(--green);color:white}.calendar-dot{height:4px;width:4px;border-radius:50%;background:var(--green);opacity:0}.calendar-day.has-event .calendar-dot{opacity:1}.calendar-day.selected .calendar-dot{background:white}.notes-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.note{border:0;border-radius:19px;padding:19px;min-height:160px;display:flex;flex-direction:column;text-align:left;background:var(--yellow);color:#504b34;position:relative;overflow-wrap:anywhere}.note.blue{background:var(--blue);color:#344e65}.note.pink{background:var(--pink);color:#6c4050}.note.green{background:var(--note-green);color:#435a37}.note.purple{background:var(--purple);color:#514266}.note h3{font-size:16px;margin:8px 0}.note p{font-size:13px;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;opacity:.85;line-height:1.55}.note .note-footer{font-size:10px;margin-top:auto;padding-top:18px;opacity:.7;display:flex;align-items:center;justify-content:space-between}.note-top{display:flex;justify-content:space-between;align-items:center;min-height:16px}.note-top span{font-size:9px;letter-spacing:1px;font-weight:700;text-transform:uppercase;opacity:.65}.settings-list{padding:0 20px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid var(--line);width:100%;text-align:left;min-height:66px}.settings-row:last-child{border:0}.settings-row p{font-size:12px;color:var(--muted);margin-top:3px;max-width:580px}.settings-row>svg{color:var(--muted);flex-shrink:0}.info{font-size:13px;line-height:1.65;color:var(--muted)}.info strong{color:var(--ink)}.info-box{padding:15px 17px;border-radius:15px;background:var(--green-soft);color:var(--green);font-size:13px;line-height:1.6}.warning-box{background:#fbf0dc;color:#966c29;padding:14px 17px;border-radius:14px;font-size:13px;margin:12px 0}.danger-text{color:var(--danger)}.banner{padding:14px 17px;border-radius:15px;background:#fbf0dc;color:#84622c;font-size:13px;margin-bottom:20px;display:flex;gap:15px;align-items:center;justify-content:space-between}.banner button{color:inherit;font-weight:700;min-height:36px}.auth-page{min-height:100dvh;display:grid;place-items:center;padding:calc(35px + env(safe-area-inset-top)) 22px calc(35px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 80% 10%,#e3ebd866,transparent 60%),var(--bg)}.auth-wrap{width:100%;max-width:420px}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:48px}.auth-brand .brand-name{font-size:26px}.auth-intro{margin-bottom:28px}.auth-intro h1{font-size:39px;letter-spacing:-1.8px}.auth-intro p{margin-top:14px;font-size:15px;line-height:1.7;color:var(--muted)}.auth-form{padding:25px;border-radius:24px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px;min-width:0}.field label,.field-label{font-size:12px;font-weight:650;color:var(--muted)}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:12px 13px;min-height:48px;outline-offset:2px}.field textarea{min-height:115px;resize:vertical;line-height:1.6}.field input[type=date],.field input[type=time]{-webkit-appearance:none;min-width:0;line-height:24px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field-grid>.field{min-width:0}.field small{color:var(--muted);font-size:11px}.field .checkbox-label{display:flex;align-items:center;gap:10px;min-height:44px;color:var(--ink);font-size:14px}.field input[type=checkbox]{width:22px;min-height:22px;height:22px;accent-color:var(--green)}.auth-form .primary{width:100%;min-height:49px}.auth-footer{text-align:center;color:var(--muted);font-size:12px;margin-top:25px}.auth-switch{width:100%;text-align:center;justify-content:center;margin-top:12px}.error-msg{color:var(--danger);font-size:13px;margin:10px 0;line-height:1.6}.error-msg:empty{display:none}dialog{border:0;color:var(--ink);background:var(--card);border-radius:24px;padding:0;width:min(540px,calc(100% - 30px));max-height:calc(100dvh - 50px - env(safe-area-inset-top));overflow:auto;box-shadow:0 25px 90px #0003}dialog::backdrop{background:#14251c66;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.sheet-head{position:sticky;top:0;z-index:3;background:var(--card);display:flex;align-items:center;justify-content:space-between;padding:19px 23px;border-bottom:1px solid var(--line);gap:12px}.sheet-head h2{font-size:20px}.sheet-head .icon-btn{border:0;background:var(--bg);height:35px;width:35px}.sheet-body{padding:23px}.sheet-footer{padding:17px 23px calc(18px + env(safe-area-inset-bottom));display:flex;justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid var(--line);position:sticky;bottom:0;background:var(--card);z-index:3}.sheet-footer .primary{min-width:110px}.sheet-footer .danger-btn{margin-right:auto;min-width:44px;padding:11px}.sheet-body .info{margin-bottom:17px}.sheet-body pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;padding:14px;border-radius:12px;background:var(--bg);max-height:220px;overflow:auto}.colour-picker{display:flex;gap:11px;margin:8px 0 20px}.colour-picker label{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;border:2px solid transparent;background:var(--yellow);cursor:pointer}.colour-picker label:has(input:checked){border-color:var(--green)}.colour-picker input{width:16px;height:16px;accent-color:var(--green)}.colour-picker .blue{background:var(--blue)}.colour-picker .pink{background:var(--pink)}.colour-picker .green{background:var(--note-green)}.colour-picker .purple{background:var(--purple)}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.action-tile{border:1px solid var(--line);border-radius:16px;padding:20px 12px;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--green);min-height:70px}.action-tile:hover{background:var(--green-soft)}.conflict{padding:17px;border:1px solid var(--line);border-radius:15px;margin-bottom:15px}.conflict h3{margin-bottom:12px}.conflict p{font-size:13px;color:var(--muted);margin:8px 0;overflow-wrap:anywhere}.conflict-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}#toast{position:fixed;z-index:100;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%) translateY(20px);background:var(--ink);color:var(--card);padding:12px 18px;border-radius:14px;font-size:13px;font-weight:500;box-shadow:0 6px 30px #0002;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;max-width:calc(100% - 34px);width:max-content;line-height:1.5}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.noscript{padding:30px;max-width:500px;margin:auto}.hidden{display:none!important}.small-note{font-size:11px;color:var(--muted);margin-top:10px;line-height:1.6}.profile-badge{display:flex;gap:15px;align-items:center;padding:22px}.profile-badge .avatar{width:49px;height:49px;font-size:17px;border:0}.profile-badge h2{font-size:20px}.profile-badge p{font-size:13px;color:var(--muted);margin-top:3px}.desktop-label{display:inline}.sheet-body ul,.sheet-body ol{padding-left:20px;color:var(--muted);font-size:14px;line-height:1.8}.selection-count{color:var(--muted);font-size:12px}.notes-grid.today-notes{grid-template-columns:repeat(2,1fr)}.reminder-list{margin-bottom:20px;border-color:#e6d6af}.reminder-list .card-head{color:#9b7437}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:800px){.bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:590px;border:1px solid var(--line);border-radius:23px;bottom:18px;padding:8px 12px;box-shadow:0 10px 35px #0000000c}.family-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:22px;align-items:start}.family-layout .section{margin-top:0}.meal-layout{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.meal-layout .meal-slot{margin-top:10px}.heading{margin-top:12px}.auth-intro h1{font-size:42px}}
@media(max-width:599px){.shell{padding-left:21px;padding-right:21px}.topbar{padding-top:calc(17px + env(safe-area-inset-top));padding-bottom:20px}.brand-name{font-size:20px}.heading{margin:3px 0 23px}h1{font-size:32px;letter-spacing:-1.2px}.subtitle{font-size:14px;max-width:270px}.heading .primary{min-width:44px;padding:11px 12px}.desktop-label{display:none}.dashboard-grid{grid-template-columns:1fr;gap:16px}.hero{min-height:178px;padding:24px}.stats{gap:13px}.stat{min-height:112px;padding:17px 19px;display:grid;grid-template-columns:1fr auto;grid-template-rows:1fr auto;align-items:start}.stat .stat-icon{grid-column:2;grid-row:1/3;width:34px;height:34px}.stat strong{grid-column:1;font-size:30px}.stat span{grid-column:1;max-width:110px}.card-head{padding:17px 18px 11px}.card-pad{padding:20px}.row{padding:14px 17px;gap:11px}.bottom-nav{padding-left:9px;padding-right:9px;gap:2px}.nav-button{min-width:0;font-size:10px;padding-left:2px;padding-right:2px}.nav-button.active{background:transparent}.nav-button.active svg{fill:color-mix(in srgb,var(--green) 12%,transparent)}.notes-grid{grid-template-columns:1fr 1fr;gap:12px}.note{padding:16px;min-height:170px}.note h3{font-size:15px}.note p{font-size:12px}.calendar-card{padding:17px 14px}.calendar-grid{gap:2px}.calendar-day{min-height:43px}.week-days{gap:3px}.day-button{border-radius:14px;min-height:73px}.day-button strong{font-size:20px}.week-nav h2{font-size:16px}.week-nav .icon-btn{width:34px;height:34px}.toolbar{gap:9px}.toolbar-left{gap:5px}.chip{padding:8px 11px}.section{margin-top:23px}.heading .icon-btn{flex-shrink:0}.auth-page{align-items:start;padding-top:calc(38px + env(safe-area-inset-top))}.auth-brand{margin-bottom:42px}.auth-form{padding:22px}.auth-intro h1{font-size:37px}dialog{width:100%;max-width:none;border-radius:25px 25px 0 0;margin:auto 0 0;max-height:calc(100dvh - 35px - env(safe-area-inset-top));overscroll-behavior:contain}.sheet-head{padding:18px 22px}.sheet-body{padding:22px}.sheet-footer{padding-left:22px;padding-right:22px}.field-grid{gap:10px}.notes-grid.today-notes{grid-template-columns:1fr 1fr}.note-top span{font-size:8px}.status{font-size:11px}.top-actions{gap:8px}.avatars{display:none}.brand .brand-icon{width:31px;height:31px}.banner{font-size:12px;padding:12px 15px}.banner button{white-space:nowrap}.profile-badge{padding:19px}}
@media(prefers-color-scheme:dark){:root{--bg:#171d19;--card:#222b25;--ink:#e8eee8;--muted:#9aab9e;--line:#344037;--green:#91bda2;--green-soft:#2b3e32;--lime:#465131;--nav:rgba(28,36,30,.94);--shadow:none;--danger:#eb9c91;--yellow:#48422b;--blue:#293e50;--pink:#4b303d;--purple:#3b304b;--note-green:#34462e}.primary{background:#527c62;color:#fff}.hero{background:#2f5140}.hero .primary{background:#dce9bd;color:#304b3a}.brand-icon{background:#527c62;color:#fff}.avatar{background:#354d3d;color:#c4ddcb}.avatar+.avatar{background:#514338;color:#e7d5c2}.badge.ricky{background:#304738;color:#b8d4bf}.badge.sweatha{background:#4a4130;color:#d7c193}.badge.due,.warning-box,.banner{background:#483c26;color:#e0c48a}.note{color:#ede2b6}.note.blue{color:#bad7ef}.note.pink{color:#edc2d1}.note.green{color:#c9dfb9}.note.purple{color:#d6c1ee}.auth-page{background:radial-gradient(ellipse at 80% 10%,#2d463255,transparent 60%),var(--bg)}.meal-empty{border-color:#506252}.check span{border-color:#65806b}.check[aria-checked=true] span{background:#527c62;border-color:#527c62}.reminder-list{border-color:#665637}.reminder-list .card-head{color:#dfc286}.note .note-footer{opacity:.8}#toast{background:#e5eee7;color:#27392c}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Keep the touch target generous even where the visible control is compact. */
.chip,.segmented button,.meal-slot-head button,.card-head .text-btn{min-height:44px}
.week-nav .icon-btn,.sheet-head .icon-btn{min-width:44px;width:44px;min-height:44px;height:44px}
.colour-picker label{width:44px;height:44px}.calendar-day{min-height:44px}
.week-days{grid-template-columns:repeat(7,minmax(38px,1fr))}
.shopping-week-picker{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:12px;align-items:center;padding:16px 17px 13px;margin:0 0 19px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.shopping-week-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:var(--green-soft);color:var(--green)}
.shopping-week-control{min-width:0}.shopping-week-control label{display:block;font-size:11px;font-weight:650;color:var(--muted);margin-bottom:1px}
.shopping-week-control select{display:block;width:100%;max-width:100%;min-height:44px;padding:7px 25px 7px 0;font-size:16px;font-weight:600;color:var(--ink);background:transparent;border:0;border-radius:7px}
.shopping-week-picker>p{grid-column:1/-1;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.6}
.shopping-item-week{display:flex;align-items:center;gap:7px;color:var(--green);font-size:12px;line-height:1.6;background:var(--green-soft);padding:10px 12px;border-radius:11px;margin:0 0 18px}
.pantry-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:20px}
.pantry-stat{padding:15px 10px;min-height:88px;text-align:center;box-shadow:none}.pantry-stat strong{display:block;font-size:26px;font-weight:700;letter-spacing:-.8px;line-height:1.2}.pantry-stat span{display:block;font-size:11px;color:var(--muted);margin-top:5px}.pantry-stat.active{border-color:var(--green);background:var(--green-soft);color:var(--green)}.pantry-stat.active span{color:var(--green)}
.pantry-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pantry-search{flex:1;min-width:185px;position:relative;display:flex;align-items:center}.pantry-search svg{position:absolute;left:13px;color:var(--muted);pointer-events:none}.pantry-search input{width:100%;min-height:47px;background:var(--card);border:1px solid var(--line);border-radius:13px;padding:11px 12px 11px 40px;font-size:16px}.pantry-toolbar select{min-height:47px;max-width:100%;padding:10px 28px 10px 12px;border:1px solid var(--line);border-radius:13px;background:var(--card);font-size:14px}.pantry-explanation{margin:11px 2px 20px;max-width:620px}.pantry-result-count{margin:5px 3px -5px}.pantry-row{gap:15px}.pantry-row .row-detail{font-size:11px}.stock-count{min-width:100px;max-width:45%;min-height:48px;text-align:right;padding:6px 0 6px 8px;flex-shrink:0}.stock-count strong{font-size:15px;font-weight:650;display:block;overflow-wrap:anywhere;line-height:1.35}.stock-count span{display:block;font-size:10px;color:var(--muted);margin-top:3px}.stock-count.unknown strong{font-size:13px;font-weight:500;color:var(--muted)}.stock-count.out strong,.stock-count.out span{color:var(--danger)}.stock-count.low span{color:#a57837}.stock-count.in strong{color:var(--green)}
@media(max-width:599px){.pantry-toolbar{display:grid;grid-template-columns:1fr}.pantry-search{min-width:0}.pantry-toolbar select{font-size:16px}.pantry-summary{gap:9px}.pantry-stat{padding:14px 7px;border-radius:18px}.pantry-stat strong{font-size:25px}.pantry-row{padding:14px 17px;gap:10px}}
@media(prefers-color-scheme:dark){.stock-count.low span{color:#d8b474}}
