:root{color-scheme:light dark;--bg:#f5f5f7;--bg-deep:#e8e8ed;--panel:rgba(255,255,255,.72);--panel-strong:rgba(255,255,255,.9);--text:#1d1d1f;--muted:rgba(29,29,31,.62);--line:rgba(0,0,0,.10);--accent:#0071e3;--accent2:#2997ff;--danger:#b42318;--done:rgba(29,29,31,.42);--soft:rgba(255,255,255,.55);--glass-blur:saturate(180%) blur(24px);--shadow:0 18px 50px rgba(0,0,0,.12);--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}:root[data-accent=teal]{--accent:#0f766e;--accent2:#14b8a6}:root[data-accent=purple]{--accent:#7c3aed;--accent2:#a78bfa}:root[data-density=compact]{font-size:14px}:root[data-density=compact] .summary-card,:root[data-density=compact] section{padding:12px}:root[data-theme=light]{color-scheme:light;--bg:#f5f5f7;--bg-deep:#e8e8ed;--panel:rgba(255,255,255,.72);--panel-strong:rgba(255,255,255,.9);--text:#1d1d1f;--muted:rgba(29,29,31,.62);--line:rgba(0,0,0,.10);--soft:rgba(255,255,255,.55);--shadow:0 18px 50px rgba(0,0,0,.12)}:root[data-theme=dark]{color-scheme:dark;--bg:#000;--bg-deep:#111114;--panel:rgba(38,38,40,.70);--panel-strong:rgba(42,42,45,.9);--text:#f5f5f7;--muted:rgba(245,245,247,.66);--line:rgba(255,255,255,.14);--soft:rgba(255,255,255,.10);--shadow:0 18px 50px rgba(0,0,0,.38)}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#000;--bg-deep:#111114;--panel:rgba(38,38,40,.70);--panel-strong:rgba(42,42,45,.9);--text:#f5f5f7;--muted:rgba(245,245,247,.66);--line:rgba(255,255,255,.14);--soft:rgba(255,255,255,.10);--shadow:0 18px 50px rgba(0,0,0,.38)}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{scroll-behavior:smooth;background:var(--bg)}body{margin:0;min-height:100vh;background:radial-gradient(circle at 16% -10%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 30rem),linear-gradient(180deg,var(--bg),var(--bg-deep));color:var(--text);font:15px/1.42 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.22px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{border:1px solid var(--line);background:var(--panel-strong);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);color:var(--text);min-height:44px;padding:0 15px;border-radius:980px;cursor:pointer;font-weight:650;letter-spacing:-.24px;touch-action:manipulation;transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease}button:hover{border-color:color-mix(in srgb,var(--accent) 40%,transparent);box-shadow:0 8px 22px color-mix(in srgb,var(--accent) 13%,transparent)}button:active{transform:scale(.97)}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.click-card:focus-visible,.page-card:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 38%,transparent);outline-offset:2px}button[type=submit],.nav-page.active{background:var(--accent);border-color:var(--accent);color:white}input,select,textarea{width:100%;min-height:44px;border:1px solid var(--line);border-radius:14px;padding:0 14px;background:var(--panel-strong);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);color:var(--text);box-shadow:inset 0 1px 0 rgba(255,255,255,.30)}textarea{min-height:88px;padding:12px 14px;resize:vertical}label{display:grid;gap:6px;color:var(--muted);font-weight:700}h1,h2,h3,p{margin:0}h1{font-size:clamp(2rem,4.5vw,3.8rem);font-weight:750;line-height:1.02;letter-spacing:-.055em}h2{font-size:1.25rem;font-weight:750;letter-spacing:-.03em}h3{font-size:.96rem;margin-bottom:8px;color:var(--muted);font-weight:700}.lead{color:var(--muted);font-size:1.05rem;margin-top:8px;max-width:720px}.lead.small{font-size:.98rem}.eyebrow{color:var(--accent);font-size:.78rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.login-page{background:radial-gradient(circle at top left,color-mix(in srgb,var(--accent) 28%,transparent),transparent 32rem),linear-gradient(135deg,#f5f5f7,#fff 42%,#e8eef8)}.login-shell{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,420px);gap:22px;min-height:100vh;place-content:center;padding:calc(24px + var(--safe-top)) calc(24px + var(--safe-right)) calc(24px + var(--safe-bottom)) calc(24px + var(--safe-left))}.login-panel,section,.summary-card,.page-card,.side-nav{background:var(--panel);border:1px solid rgba(255,255,255,.42);border-radius:24px;box-shadow:var(--shadow);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}.login-panel{display:grid;gap:16px;padding:24px}.hero-panel{align-content:center;min-height:360px}.security-note,.info-box{display:grid;gap:4px;background:var(--soft);border:1px solid var(--line);border-radius:18px;padding:12px;color:var(--text)}.error,.danger{color:var(--danger)}#app{width:min(1420px,100%);margin:0 auto;padding:calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(16px + var(--safe-left))}.topbar,.section-head,.top-actions,.person{display:flex;align-items:center;gap:10px}.topbar{justify-content:space-between;margin-bottom:12px;padding:8px 0}.brand-block{min-width:0}.top-actions{flex-wrap:wrap;justify-content:flex-end}#userBadge{color:var(--muted);font-weight:800}.icon-btn{width:46px;padding:0;font-size:1.35rem;display:inline-grid;place-items:center}.summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:12px}.summary-card{padding:15px 17px;display:grid;gap:2px}.click-card,.page-card{cursor:pointer}.click-card:hover,.page-card:hover{border-color:color-mix(in srgb,var(--accent) 34%,transparent);transform:translateY(-1px)}.summary-card span{color:var(--muted);font-weight:750}.summary-card strong{font-size:1.9rem;line-height:1.02;letter-spacing:-.04em}.summary-card small{color:var(--muted)}.side-nav{position:fixed;z-index:30;top:calc(12px + var(--safe-top));bottom:calc(12px + var(--safe-bottom));left:calc(12px + var(--safe-left));width:min(320px,calc(100vw - 24px));padding:14px;display:grid;align-content:start;gap:10px;transform:translateX(calc(-100% - 24px));transition:transform .22s ease}.menu-open .side-nav{transform:translateX(0)}.side-nav-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.nav-page{text-align:left;border-radius:16px;justify-content:flex-start;background:rgba(255,255,255,.34)}.nav-scrim{position:fixed;inset:0;z-index:20;background:rgba(0,0,0,.28);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.view{display:none}.view.active{display:block}.home-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.page-card{min-height:170px;padding:18px;display:flex;flex-direction:column;justify-content:space-between}.page-card strong{font-size:2.4rem;color:var(--accent);letter-spacing:-.05em}section.view{padding:16px}.inner-panel{box-shadow:none;border-radius:20px;padding:15px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.section-head{justify-content:space-between;margin-bottom:12px;align-items:flex-start}.inline-form{display:flex;align-items:center;gap:10px;margin-bottom:12px}.inline-form input{flex:1}.task-form{display:grid;grid-template-columns:2fr .8fr .9fr auto auto;gap:9px;margin-bottom:12px}.stack,.check-list,.stack-form{display:grid;gap:9px}.page-list{max-height:calc(100vh - 285px);overflow:auto;padding-right:3px;overscroll-behavior:contain}.admin-list{max-height:340px}.item,.event,.person{border:1px solid var(--line);border-radius:18px;padding:11px;background:var(--soft);-webkit-backdrop-filter:saturate(150%) blur(14px);backdrop-filter:saturate(150%) blur(14px)}.item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.person{justify-content:space-between}.item input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--accent)}.item.done .title,.person.done .title{color:var(--done);text-decoration:line-through}.title{font-weight:800;letter-spacing:-.02em}.meta{color:var(--muted);font-size:.88rem}.empty{padding:9px}.event{display:grid;gap:3px;border-left:6px solid var(--accent2)}.status-line{min-height:20px;margin-top:8px}.setup-note{margin:12px 0}.setup-note summary{cursor:pointer;font-weight:800;color:var(--accent);min-height:44px;display:flex;align-items:center}.photo-picker{min-height:44px;border:1px solid var(--line);border-radius:980px;padding:0 15px;display:inline-flex!important;align-items:center;justify-content:center;background:var(--panel-strong);color:var(--text);cursor:pointer;font-weight:650;white-space:nowrap}.photo-picker input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}.item.has-photo{grid-template-columns:auto 70px minmax(0,1fr) auto}.item-photo{width:70px;height:70px;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:var(--soft);display:block}.item-photo img{width:100%;height:100%;object-fit:cover;display:block}.shopping-form{grid-template-columns:minmax(220px,1fr) auto auto}
.money-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.project-summary{display:grid;grid-template-columns:repeat(3,auto 1fr);gap:6px 10px;align-items:baseline;margin:12px 0;padding:14px;border-radius:20px;background:var(--soft);border:1px solid var(--line)}.project-summary strong{font-size:1.3rem;color:var(--accent)}.project-summary span{color:var(--muted);font-size:.88rem}.project-category-list{display:grid;gap:12px}.project-category{border-left:6px solid var(--cat)}.project{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid var(--line);border-radius:18px;padding:12px;background:var(--soft);margin-top:9px}.project-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.progress{height:10px;border-radius:999px;background:color-mix(in srgb,var(--accent) 12%,transparent);overflow:hidden;margin:8px 0}.progress span{display:block;height:100%;background:var(--accent);border-radius:inherit}.summary-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.login-panel,section,.summary-card,.page-card,.side-nav,button,input,select{background:rgba(255,255,255,.94)}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media (max-width:1100px){.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:1fr}.task-form{grid-template-columns:1fr 1fr 1fr}.task-form button{grid-column:1/-1}}@media (max-width:760px){body{font-size:14px}.login-shell,.topbar,.summary-grid,.home-grid{grid-template-columns:1fr;display:grid}.topbar{gap:12px}.top-actions{justify-content:start}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.money-row,.project{grid-template-columns:1fr}.project-actions{justify-content:start}.project-summary{grid-template-columns:auto 1fr}.inline-form,.task-form{display:grid;grid-template-columns:1fr}.page-list{max-height:none;overflow:visible}.summary-card{padding:12px}#app{padding:calc(12px + var(--safe-top)) calc(12px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(12px + var(--safe-left))}.hero-panel{min-height:0}h1{font-size:clamp(2.05rem,11vw,3rem)}button,input,select{min-height:46px}.login-shell{padding:calc(16px + var(--safe-top)) calc(14px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(14px + var(--safe-left))}.page-card{min-height:130px}.item,.item.has-photo{grid-template-columns:auto minmax(0,1fr)}.item-photo{grid-column:1/-1;width:100%;height:180px}.item button{grid-column:2}.shopping-form{grid-template-columns:1fr}.person{display:grid;grid-template-columns:1fr;align-items:start}}

.search-input{max-width:220px;min-width:140px}.search-results{margin:0 0 1rem 0}.hub-item.done{opacity:.65}

.meal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.65rem;margin:.75rem 0}.meal-day{border:1px solid var(--line);border-radius:16px;padding:.7rem;background:var(--card)}.meal-chip{margin:.35rem 0;padding:.35rem .5rem;border-radius:10px;background:var(--soft)}.meal-chip span{font-size:.8em;opacity:.72}.hub-form input[type=file]{padding:.65rem}


/* Simple family dashboard cleanup */
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.01em;}
h1{font-size:clamp(1.9rem,3vw,2.7rem);letter-spacing:-.035em;}
h2{font-size:1.08rem;letter-spacing:-.02em;}
.lead,.lead.small{font-size:.94rem;}
.side-nav{grid-template-rows:auto minmax(0,1fr);max-height:calc(100vh - 24px);}
.side-nav-scroll{display:grid;gap:8px;overflow-y:auto;overscroll-behavior:contain;padding-right:4px;}
.simple-summary{grid-template-columns:repeat(4,minmax(0,1fr));}
.simple-home-head{margin:2px 0 10px;}
.simple-home-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.hub-home-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:10px;}
.home-section-title{margin:18px 2px 8px;color:var(--muted);font-weight:800;text-transform:uppercase;font-size:.76rem;letter-spacing:.06em;}
.page-card{min-height:112px;padding:16px;gap:12px;}
.primary-card{min-height:138px;}
.page-card strong{font-size:2rem;}
.page-card .meta{line-height:1.3;}
.simple-hub-form{max-width:880px;margin-bottom:14px;}
.simple-hub-form>.inline-form{margin-bottom:0;}
.simple-hub-form button[type=submit]{justify-self:start;}
.hub-list .person{align-items:flex-start;}
@media (max-width:1100px){.simple-summary,.simple-home-grid,.hub-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:760px){.simple-summary,.simple-home-grid,.hub-home-grid{grid-template-columns:1fr;}.side-nav{top:0;bottom:0;left:0;width:min(340px,88vw);max-height:100vh;border-radius:0 24px 24px 0;}.page-card,.primary-card{min-height:100px;}.simple-hub-form .inline-form{display:grid;grid-template-columns:1fr;}}

/* Keep simplified Hub form fields balanced on desktop too */
.simple-hub-form .inline-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;align-items:center;}
.simple-hub-form .inline-form input,.simple-hub-form .inline-form select{min-width:0;}


/* Grouped collapsible side menu */
.nav-group{border:1px solid var(--line);border-radius:18px;background:var(--soft);padding:6px;display:grid;gap:6px;}
.nav-group summary{list-style:none;cursor:pointer;min-height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;color:var(--muted);font-weight:850;text-transform:uppercase;font-size:.75rem;letter-spacing:.055em;}
.nav-group summary::-webkit-details-marker{display:none;}
.nav-group summary::after{content:"⌄";font-size:1rem;color:var(--muted);transition:transform .18s ease;}
.nav-group[open] summary::after{transform:rotate(180deg);}
.nav-group .nav-page{width:100%;min-height:40px;border-radius:13px;margin-top:4px;background:color-mix(in srgb,var(--panel-strong) 72%,transparent);}
.nav-group:not([open]) .nav-page{display:none;}
.side-nav-scroll>.nav-page{width:100%;}

/* Pantry photos */
.pantry-photo-picker{justify-self:start}.hub-attachment{display:grid;gap:6px;margin-top:8px}.hub-item.has-photo{display:grid;grid-template-columns:86px minmax(0,1fr) auto;gap:12px;align-items:start}.hub-item.has-photo .item-photo{width:86px;height:86px}.hub-item.has-photo .hub-attachment{margin:0}.hub-item.has-photo .hub-attachment>a:not(.item-photo){font-size:.8rem;color:var(--muted)}@media (max-width:760px){.hub-item.has-photo{grid-template-columns:1fr}.hub-item.has-photo .item-photo{width:100%;height:180px}}


/* Full app readability makeover */
#app{width:min(1180px,100%);padding:calc(14px + var(--safe-top)) calc(14px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(14px + var(--safe-left));}
.topbar{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:blur(18px);border-bottom:1px solid var(--line);padding:10px 0;margin-bottom:14px;}
.top-actions button,.top-actions input{min-height:38px}.summary-card,.page-card,section.view,.inner-panel{border-radius:18px;box-shadow:0 10px 28px rgba(0,0,0,.08);}.summary-grid{gap:10px}.summary-card strong{font-size:1.55rem}.home-grid{gap:10px}.page-card{min-height:96px}.section-head{padding-bottom:10px;border-bottom:1px solid var(--line)}.hub-list,.page-list{display:grid;gap:10px}.person,.item,.project{border-radius:14px}.project-actions button{min-height:36px;padding:0 12px}.simple-hub-form{background:var(--soft);border:1px solid var(--line);border-radius:18px;padding:14px;}
/* Pantry category layout and editor */
.pantry-groups{display:grid;gap:16px}.pantry-category{background:transparent;border:0;box-shadow:none;padding:0}.pantry-category-head{display:flex;align-items:center;justify-content:space-between;margin:6px 2px 8px}.pantry-category-head h3{font-size:1rem;color:var(--text);margin:0}.pantry-category-head span{color:var(--muted);font-weight:750;font-size:.85rem}.pantry-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}.pantry-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:12px;display:grid;grid-template-columns:86px minmax(0,1fr);gap:12px;align-items:start}.pantry-card:not(.has-photo){grid-template-columns:1fr}.pantry-card.low{border-color:color-mix(in srgb,#f59e0b 45%,var(--line));background:color-mix(in srgb,#f59e0b 8%,var(--panel))}.pantry-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.pantry-title-row h3{margin:0;color:var(--text);font-size:1rem}.stock-pill{border-radius:999px;padding:4px 8px;font-size:.76rem;font-weight:850;background:var(--soft);white-space:nowrap}.stock-pill.high{background:#fef3c7;color:#92400e}.stock-pill.low{background:#dcfce7;color:#166534}.pantry-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:9px 0}.pantry-facts span{background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:8px;display:grid;gap:2px}.pantry-facts b{font-size:.72rem;color:var(--muted);text-transform:uppercase}.image-open{border:0;padding:0;background:none;cursor:zoom-in}.compact-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:var(--panel);border:1px solid var(--accent);border-radius:18px;padding:12px}.compact-edit textarea,.compact-edit .edit-actions{grid-column:1/-1}.edit-actions{display:flex;gap:8px;justify-content:flex-end}.image-modal{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.88);display:grid;place-items:center;padding:calc(78px + var(--safe-top)) calc(14px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(14px + var(--safe-left));touch-action:none}.image-modal[hidden]{display:none}.image-modal img{max-width:calc(100vw - 28px - var(--safe-left) - var(--safe-right));max-height:calc(100vh - 112px - var(--safe-top) - var(--safe-bottom));object-fit:contain;border-radius:14px}.image-modal-close{position:fixed;z-index:1001;top:calc(14px + var(--safe-top));right:calc(14px + var(--safe-right));width:64px;height:64px;min-width:64px;min-height:64px;border-radius:999px;font-size:2rem;line-height:1;background:rgba(20,24,38,.88);color:white;border:1px solid rgba(255,255,255,.42);box-shadow:0 12px 34px rgba(0,0,0,.38);display:grid;place-items:center;touch-action:manipulation}.modal-open{overflow:hidden}@media (max-width:760px){.topbar{position:static}.pantry-card,.compact-edit{grid-template-columns:1fr}.pantry-facts{grid-template-columns:1fr}.pantry-card.has-photo .item-photo{height:220px}.top-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.search-input{grid-column:1/-1;max-width:none;width:100%}}


/* Calm UX pass: less wall-of-everything, more task-first pages */
.calm-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:10px;}
.calm-home .section-head{margin-bottom:10px;}
.focus-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px;}
.more-pages-panel{border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:8px 10px;box-shadow:0 8px 22px rgba(0,0,0,.05);}
.more-pages-panel>summary,.add-panel>summary{cursor:pointer;min-height:42px;display:flex;align-items:center;justify-content:space-between;font-weight:850;color:var(--text);list-style:none;}
.more-pages-panel>summary::-webkit-details-marker,.add-panel>summary::-webkit-details-marker{display:none;}
.more-pages-panel>summary::after,.add-panel>summary::after{content:"Show";font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:5px 9px;background:var(--soft);}
.more-pages-panel[open]>summary::after,.add-panel[open]>summary::after{content:"Hide";}
.compact-page-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));margin-top:10px;}
.compact-page-grid .page-card{min-height:86px;padding:13px;}
.compact-page-grid .page-card h2{font-size:1rem;margin:0 0 3px;}
.compact-page-grid .page-card .meta{font-size:.82rem;}
.add-panel{border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:6px 10px;margin:0 0 14px;box-shadow:0 8px 22px rgba(0,0,0,.05);}
.add-panel .hub-form,.add-panel .task-form,.add-panel form{margin-top:8px;max-width:100%;box-shadow:none;background:transparent;border:0;padding:4px 0 8px;}
.view>.section-head{margin-bottom:10px;}
.page-list{margin-top:8px;}
.hub-view .hub-list,.page-list{display:grid;gap:10px;}
.person,.item,.project,.event{border-radius:16px;padding:12px;background:color-mix(in srgb,var(--panel-strong) 82%,transparent);border:1px solid var(--line);box-shadow:none;}
.person .meta,.item .meta,.project .meta{line-height:1.35;}
.project-actions{gap:7px;flex-wrap:wrap;}
.project-actions button,.edit-actions button{min-height:34px;padding:7px 10px;font-size:.86rem;}
.simple-hub-form.pantry-guided .inline-form{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));}
.pantry-guided select,.pantry-guided input,.pantry-guided textarea{min-height:40px;}
.pantry-guided input[hidden]{display:none!important;}
.pantry-category{border-top:1px solid var(--line);padding-top:10px;}
.pantry-category-head h3{font-size:.95rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);}
.pantry-card{box-shadow:none;border:1px solid var(--line);background:color-mix(in srgb,var(--panel-strong) 86%,transparent);}
@media (max-width:1100px){.focus-grid,.calm-summary{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:760px){.calm-summary{display:none}.focus-grid{grid-template-columns:1fr}.more-pages-panel,.add-panel{border-radius:16px}.top-actions{gap:6px}.top-actions #userBadge{display:none}.search-input{max-width:155px}.compact-page-grid{grid-template-columns:1fr}.person,.item,.project,.event{padding:11px}.hub-item.has-photo{grid-template-columns:70px minmax(0,1fr)}}


/* Compact Pantry + Shopping rows */
.shopping-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;}
.shopping-row .item-photo{width:72px;height:72px;}
.shopping-main{min-width:0;display:grid;gap:4px;}
.shopping-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.shopping-photo-detail{margin-top:4px;}
.shopping-photo-detail summary,.pantry-photo-detail summary{cursor:pointer;color:var(--muted);font-weight:800;font-size:.85rem;}
.shopping-photo-thumb{margin-top:8px;}
.pantry-card-grid{grid-template-columns:1fr;}
.pantry-card.pantry-row{display:block;padding:0;overflow:hidden;}
.pantry-row>summary{list-style:none;cursor:pointer;}
.pantry-row>summary::-webkit-details-marker{display:none;}
.pantry-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 12px;}
.pantry-summary-main{min-width:0;}
.pantry-summary-main h3{margin:0;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.qty-stepper{display:inline-flex;align-items:center;gap:6px;background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:4px;}
.qty-stepper button{min-width:34px;min-height:34px;border-radius:999px;padding:0;font-size:1.05rem;}
.qty-stepper strong{min-width:54px;text-align:center;font-size:.9rem;}
.pantry-details{border-top:1px solid var(--line);padding:10px 12px 12px;display:grid;gap:10px;}
.pantry-facts.compact{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));}
.hub-attachment-gallery{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start;}
.hub-attachment-gallery .hub-attachment{width:96px;margin:0;}
.hub-attachment-gallery .item-photo{width:96px;height:72px;}
.existing-photos{grid-column:1/-1;display:grid;gap:8px;}
.file-row{grid-column:1/-1;display:grid;gap:6px;color:var(--muted);font-weight:800;}
.edit-form-head{grid-column:1/-1;display:grid;gap:2px;}
@media (max-width:760px){.shopping-row{grid-template-columns:auto minmax(0,1fr);}.shopping-actions{grid-column:2;justify-content:flex-start}.pantry-summary{grid-template-columns:minmax(0,1fr);align-items:start}.qty-stepper{justify-self:start}.stock-pill{justify-self:start}}


/* Pet profiles */
.pet-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-bottom:16px;}
.pet-profile-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:12px;display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:start;}
.pet-profile-photo .hub-attachment-gallery{display:block}.pet-profile-photo .hub-attachment{width:96px}.pet-profile-photo .item-photo{width:96px;height:96px;border-radius:18px;overflow:hidden}.pet-avatar-placeholder{width:96px;height:96px;border-radius:18px;background:var(--soft);border:1px solid var(--line);display:grid;place-items:center;font-size:2rem;}
.pet-profile-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.pet-profile-title h3{margin:0;font-size:1.1rem}.pet-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px;margin:8px 0}.pet-facts span{background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:7px 9px;color:var(--muted);font-size:.85rem}.pet-facts b{display:block;color:var(--text);font-size:.72rem;text-transform:uppercase;letter-spacing:.04em}.pet-vaccine-list{display:grid;gap:4px;margin:8px 0;color:var(--muted);font-size:.9rem}.pet-vaccine-list strong{color:var(--text)}.pet-care-section{display:grid;gap:10px}.pet-care-item{align-items:start}@media(max-width:760px){.pet-profile-card{grid-template-columns:1fr}.pet-profile-photo .item-photo,.pet-avatar-placeholder{width:100%;height:180px}.pet-profile-photo .hub-attachment{width:100%}}


/* Clear labels for calendar/date picker controls */
.date-field{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:.78rem;font-weight:850;text-transform:uppercase;letter-spacing:.045em;}
.date-field input[type="date"]{width:100%;min-width:0;text-transform:none;letter-spacing:normal;font-size:1rem;font-weight:700;color:var(--text);}
.inline-form .date-field{flex:1 1 170px;}
.task-form .date-field{min-width:170px;}


/* iOS Safari: inputs below 16px trigger page zoom on focus. Keep controls readable without disabling user zoom. */
input,select,textarea{font-size:16px!important;line-height:1.35;}
button{font-size:16px;}
.notification-guide{margin-bottom:14px;display:grid;gap:10px;}
.notification-guide ol{margin:0;padding-left:1.25rem;color:var(--muted);display:grid;gap:6px;}
.notification-guide li strong{color:var(--text);}
.notification-actions{margin-top:2px;}
.notification-form label{font-size:.82rem;text-transform:none;letter-spacing:normal;color:var(--muted);font-weight:800;}
.notification-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;}
.notification-card .notification-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px;}
.notification-chip{display:inline-flex;align-items:center;min-height:28px;border:1px solid var(--line);border-radius:999px;padding:4px 9px;background:var(--soft);font-size:.82rem;color:var(--muted);font-weight:750;}
@media (max-width:760px){.notification-card{grid-template-columns:1fr}.notification-actions{grid-template-columns:1fr}.notification-guide ol{padding-left:1.1rem}}


/* Photo thumbnails open the in-app lightbox. Keep form-control text at 16px so iOS does not page-zoom inputs. */
.item-photo.image-open{display:block;overflow:hidden;border-radius:12px;touch-action:manipulation;-webkit-user-select:none;user-select:none;}
.item-photo.image-open img,.item-photo img{-webkit-user-drag:none;}
.pet-edit-form{border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:12px;display:grid;gap:10px;}
.pet-profile-card .pet-edit-form{grid-column:1/-1;}


/* Admin mobile cleanup: keep owner tools readable and inside the viewport. */
#admin{max-width:100%;overflow:hidden;}
#admin .section-head{align-items:flex-start;justify-content:space-between;gap:8px;}
#admin .settings-grid{width:100%;min-width:0;align-items:start;}
#admin .inner-panel{min-width:0;max-width:100%;overflow:hidden;}
#admin .add-panel{min-width:0;max-width:100%;}
#admin .add-panel>summary{position:relative;min-height:48px;padding:0 4px;}
#admin .add-panel>summary::after{flex:0 0 auto;}
#admin .stack-form{min-width:0;}
#admin .stack-form input,#admin .stack-form select,#admin .stack-form button{min-width:0;max-width:100%;box-sizing:border-box;}
#admin .admin-list{max-height:none;overflow:visible;min-width:0;}
#admin .admin-list .person{min-width:0;max-width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;}
#admin .admin-list .person>div{min-width:0;}
#admin .admin-list .title,#admin .admin-list .meta{min-width:0;overflow-wrap:anywhere;word-break:break-word;}
#activityList .person{grid-template-columns:1fr;align-items:start;}
#activityList .meta{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem;white-space:normal;}
#admin .setup-note{max-width:100%;overflow:hidden;}

@media (max-width:760px){
  #app{width:100%;max-width:100%;box-sizing:border-box;padding-left:calc(10px + var(--safe-left));padding-right:calc(10px + var(--safe-right));}
  #admin{padding:12px;box-sizing:border-box;}
  #admin .section-head{display:grid;grid-template-columns:1fr;}
  #admin .settings-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px;}
  #admin .inner-panel{padding:12px;border-radius:16px;box-sizing:border-box;}
  #admin .add-panel{padding:6px 8px;margin-bottom:10px;border-radius:14px;}
  #admin .add-panel>summary{font-size:.96rem;}
  #admin .add-panel .stack-form{gap:8px;padding-top:8px;}
  #admin .admin-list .person{grid-template-columns:1fr;gap:8px;padding:10px;}
  #admin .admin-list .person button{width:100%;justify-self:stretch;}
  #admin .inline-form{display:grid;grid-template-columns:1fr;margin-bottom:10px;}
  #admin .inline-form button{width:100%;}
  #activityList .person{padding:10px;}
}


/* Final Admin iPhone override: full-width, stacked, readable owner tools. */
#admin,#admin *{box-sizing:border-box;}
#admin{width:100%;max-width:100%;overflow:hidden;}
#admin .settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0;}
#admin .inner-panel,#admin .setup-note,#admin .add-panel{min-width:0;max-width:100%;overflow:hidden;}
#admin .admin-list{max-height:none;overflow:visible;}
#admin .admin-list .person{min-width:0;max-width:100%;}
#admin .admin-list .title,#admin .admin-list .meta,#activityList .meta{overflow-wrap:anywhere;word-break:break-word;white-space:normal;}
#calendarStatus,#backupStatus,#preferencesStatus,#passwordStatus{overflow-wrap:anywhere;}
@media (max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;}
  #app.app-shell{width:100%!important;max-width:100%!important;margin:0!important;padding:calc(10px + var(--safe-top)) calc(10px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(10px + var(--safe-left))!important;}
  #admin.view.active{display:block;width:100%!important;max-width:100%!important;padding:12px!important;border-radius:18px;}
  #admin .section-head{display:grid!important;grid-template-columns:1fr!important;align-items:start!important;gap:4px;margin-bottom:10px;}
  #admin .settings-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
  #admin .inner-panel{width:100%!important;padding:12px!important;border-radius:16px!important;}
  #admin .inner-panel h2{font-size:1rem;margin:0 0 8px;}
  #admin .add-panel{padding:6px 8px!important;margin:0!important;border-radius:14px!important;}
  #admin .add-panel>summary{min-height:48px;padding:0 2px;font-size:.95rem;}
  #admin .add-panel .stack-form{gap:8px;margin-top:8px;}
  #admin .stack-form input,#admin .stack-form select,#admin .stack-form button{width:100%;min-width:0;}
  #admin .admin-list{display:grid;gap:8px;margin-top:8px;}
  #admin .admin-list .person{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;align-items:start!important;padding:10px!important;border-radius:14px!important;}
  #admin .admin-list .person button,#admin .inline-form button{width:100%;justify-self:stretch;}
  #admin .inline-form{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-bottom:8px!important;}
  #activityList .person{display:grid!important;grid-template-columns:1fr!important;}
  #activityList .meta{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem;line-height:1.35;}
}


/* Calendar page status and readable empty/error states. */
.calendar-status-grid{display:grid;gap:10px;margin-bottom:12px;}
.calendar-status-card,.calendar-empty-card{border:1px solid var(--line);background:var(--soft);border-radius:16px;padding:12px;display:grid;gap:7px;}
.calendar-chip-row{display:flex;flex-wrap:wrap;gap:7px;}
.calendar-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:6px 10px;background:var(--panel-strong);font-weight:800;font-size:.86rem;}
.calendar-chip::before{content:"";width:10px;height:10px;border-radius:999px;background:var(--cal);}
.calendar-event-list{min-height:56px;}
.calendar-error{background:color-mix(in srgb,#dc2626 8%,var(--panel-strong));}
@media (max-width:760px){.calendar-status-card,.calendar-empty-card{padding:11px;border-radius:14px}.calendar-chip{width:100%;justify-content:flex-start}}


/* Pantry add/edit form cleanup: readable mobile rows + explicit custom amount buttons. */
.pantry-guided .pantry-main-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start;}
.amount-control{display:grid;gap:7px;min-width:0;}
.amount-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center;}
.amount-main select{min-width:0;}
.amount-custom-btn{min-height:44px;padding:0 12px;border-radius:14px;font-size:.92rem;white-space:nowrap;background:var(--soft);}
.amount-custom-input{grid-column:1/-1;}
.amount-control.custom-open .amount-custom-btn{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));color:var(--accent);}
.pantry-date-status{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.55fr);gap:10px;align-items:end;}
.pantry-guided textarea{min-height:92px;}
@media (max-width:760px){
  #pantry .add-panel{padding:8px;border-radius:18px;}
  #pantry .simple-hub-form.pantry-guided{padding:12px;gap:10px;border-radius:16px;}
  .pantry-guided .pantry-main-fields{grid-template-columns:1fr!important;gap:9px;}
  .amount-main{grid-template-columns:minmax(0,1fr) 96px;gap:8px;}
  .amount-custom-btn{width:96px;padding:0 8px;}
  .pantry-date-status{grid-template-columns:1fr!important;gap:9px;}
  .pantry-guided .date-field{gap:6px;}
  .pantry-guided input,.pantry-guided select,.pantry-guided textarea{width:100%;box-sizing:border-box;}
  .pantry-photo-picker{justify-self:start;}
  #pantry .simple-hub-form.pantry-guided button[type=submit]{justify-self:start;min-width:170px;}
}


/* 2026-06-09 operational cleanup: calmer dashboard, persistent desktop nav, tighter controls. */
:root{
  --bg:#f7f8fb;
  --bg-deep:#eef1f6;
  --panel:#ffffff;
  --panel-strong:#ffffff;
  --soft:#f3f5f9;
  --line:#d9dee8;
  --text:#162033;
  --muted:#667085;
  --accent:#2563eb;
  --accent2:#0f766e;
  --danger:#b42318;
  --shadow:0 1px 2px rgba(16,24,40,.05),0 8px 24px rgba(16,24,40,.08);
  --glass-blur:none;
}
:root[data-theme=dark]{
  --bg:#0f1218;
  --bg-deep:#090b10;
  --panel:#171b24;
  --panel-strong:#1f2530;
  --soft:#111722;
  --line:#2d3645;
  --text:#f5f7fb;
  --muted:#9aa4b2;
  --shadow:0 1px 2px rgba(0,0,0,.35),0 10px 24px rgba(0,0,0,.28);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme=light]){
    --bg:#0f1218;
    --bg-deep:#090b10;
    --panel:#171b24;
    --panel-strong:#1f2530;
    --soft:#111722;
    --line:#2d3645;
    --text:#f5f7fb;
    --muted:#9aa4b2;
    --shadow:0 1px 2px rgba(0,0,0,.35),0 10px 24px rgba(0,0,0,.28);
  }
}
html,body{max-width:100%;overflow-x:hidden;}
body{
  background:linear-gradient(180deg,var(--bg),var(--bg-deep));
  letter-spacing:0;
}
button,input,select,textarea{
  border-radius:8px;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
button{
  min-height:38px;
  padding:0 12px;
  font-weight:700;
}
button:hover{box-shadow:none;transform:none;}
button:active{transform:translateY(1px);}
button[type=submit],.nav-page.active{
  background:var(--accent);
  border-color:var(--accent);
}
.login-panel,section,.summary-card,.page-card,.side-nav,.inner-panel,.add-panel,.more-pages-panel,.person,.item,.project,.event,.pantry-card,.pet-profile-card{
  border-radius:8px!important;
  box-shadow:var(--shadow);
  background:var(--panel);
  border-color:var(--line);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.item,.person,.project,.event,.pantry-card,.pet-profile-card{box-shadow:none;background:var(--panel-strong);}
h1{font-size:clamp(1.45rem,2.1vw,2rem);letter-spacing:0;line-height:1.12;}
h2{font-size:1rem;letter-spacing:0;}
h3{letter-spacing:0;}
.lead,.lead.small{font-size:.9rem;max-width:58rem;}
.eyebrow{letter-spacing:.04em;}
#app.app-shell{
  width:min(1380px,100%);
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding:calc(12px + var(--safe-top)) calc(14px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(14px + var(--safe-left));
}
.topbar{
  grid-column:2;
  position:sticky;
  top:0;
  z-index:9;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  background:color-mix(in srgb,var(--bg) 94%,transparent);
  border-bottom:1px solid var(--line);
  padding:8px 0 12px;
  margin:0;
}
.brand-block{display:grid;gap:2px;}
.top-actions{
  display:grid;
  grid-template-columns:minmax(170px,240px) auto auto auto;
  gap:8px;
  align-items:center;
}
.search-input{max-width:none;min-width:0;}
#userBadge{
  max-width:160px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:.86rem;
}
#menuBtn{display:none;}
.side-nav{
  grid-column:1;
  grid-row:1 / span 6;
  position:sticky;
  top:12px;
  width:100%;
  max-height:calc(100vh - 24px);
  transform:none;
  padding:12px;
  gap:8px;
}
.side-nav-head{margin:0 0 4px;}
#closeMenuBtn{display:none;}
.nav-scrim{display:none!important;}
.side-nav-scroll{gap:6px;}
.nav-page{
  width:100%;
  min-height:34px;
  border-radius:7px;
  padding:0 10px;
  background:transparent;
  border-color:transparent;
}
.nav-page:hover{
  background:var(--soft);
  border-color:var(--line);
}
.nav-group{
  border-radius:8px;
  background:transparent;
  padding:4px;
}
.nav-group summary{
  min-height:30px;
  padding:0 6px;
  font-size:.7rem;
}
.nav-group summary::after{content:"+";transform:none!important;}
.nav-group[open] summary::after{content:"-";}
#searchResults,.summary-grid,.view{grid-column:2;min-width:0;}
.summary-grid,.calm-summary{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0;
}
.summary-card{padding:12px;gap:2px;}
.summary-card strong{font-size:1.45rem;}
section.view{padding:14px;}
.section-head{
  padding-bottom:9px;
  margin-bottom:10px;
}
.home-grid,.simple-home-grid,.focus-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.page-card,.primary-card{
  min-height:96px;
  padding:14px;
  gap:8px;
}
.page-card strong{font-size:1.75rem;}
.pill,.stock-pill,.notification-chip,.calendar-chip{
  border-radius:999px!important;
}
.more-pages-panel,.add-panel{
  padding:8px 10px;
  margin-bottom:12px;
}
.more-pages-panel>summary,.add-panel>summary{
  min-height:34px;
}
.more-pages-panel>summary::after,.add-panel>summary::after{
  border-radius:999px;
  padding:3px 8px;
}
.task-form,.inline-form,.simple-hub-form .inline-form{
  gap:8px;
}
.simple-hub-form{
  padding:12px;
  background:var(--soft);
}
.page-list{max-height:none;overflow:visible;padding-right:0;}
.project-actions button,.edit-actions button{min-height:32px;border-radius:7px;}
.pantry-card-grid{gap:8px;}
.pantry-summary{padding:9px 10px;}
.pantry-details{padding:10px;}
.qty-stepper{border-radius:999px;}
.qty-stepper button{border-radius:999px;}
.pet-profile-grid{gap:10px;}
.calendar-status-card,.calendar-empty-card{border-radius:8px;}
.login-page{background:linear-gradient(180deg,var(--bg),var(--bg-deep));}
.login-shell{
  grid-template-columns:minmax(0,1fr) minmax(320px,420px);
  gap:16px;
}
.hero-panel{min-height:310px;}
@media (max-width:1100px){
  #app.app-shell{grid-template-columns:220px minmax(0,1fr);}
  .summary-grid,.calm-summary,.home-grid,.simple-home-grid,.focus-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .top-actions{grid-template-columns:minmax(150px,1fr) auto auto;}
  #userBadge{display:none;}
}
@media (max-width:760px){
  #app.app-shell{
    display:block;
    width:100%!important;
    padding:calc(10px + var(--safe-top)) calc(10px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(10px + var(--safe-left))!important;
  }
  .topbar{
    position:static;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:10px;
    padding:0 0 10px;
    margin-bottom:10px;
  }
  #menuBtn{display:grid;}
  .top-actions{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    gap:7px;
  }
  .search-input{grid-column:1/-1;width:100%;max-width:none;}
  .side-nav{
    position:fixed;
    z-index:30;
    top:0;
    bottom:0;
    left:0;
    width:min(330px,88vw);
    max-height:100vh;
    transform:translateX(calc(-100% - 16px));
    border-radius:0 8px 8px 0!important;
  }
  .menu-open .side-nav{transform:translateX(0);}
  #closeMenuBtn{display:grid;}
  .menu-open .nav-scrim{display:block!important;}
  .summary-grid,.calm-summary{display:none;}
  .home-grid,.simple-home-grid,.focus-grid,.compact-page-grid{grid-template-columns:1fr;}
  section.view{padding:12px;}
  .page-card,.primary-card{min-height:84px;}
  .login-shell{grid-template-columns:1fr;padding:calc(14px + var(--safe-top)) calc(12px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(12px + var(--safe-left));}
  .hero-panel{min-height:0;}
}


/* Meals recipes linked to Pantry. */
.recipe-builder{border:1px solid var(--line);background:var(--soft);border-radius:16px;padding:12px;display:grid;gap:10px;}
.recipe-search-field{display:grid;gap:5px;font-weight:800;}
.recipe-search-field span{font-size:.82rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;}
.recipe-search-field input{width:100%;box-sizing:border-box;min-height:42px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);padding:9px 11px;font-size:16px;}
.recipe-ingredient-row[hidden]{display:none!important;}
.recipe-ingredient-list{display:grid;gap:8px;max-height:320px;overflow:auto;padding-right:2px;}
.recipe-ingredient-row{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(110px,.45fr);gap:8px;align-items:center;border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:8px;}
.recipe-ingredient-row input[type=checkbox]{width:22px;min-height:22px;accent-color:var(--accent);}
.recipe-ingredient-row span{display:grid;gap:2px;min-width:0;}
.recipe-ingredient-row small{color:var(--muted);font-weight:700;}
.recipe-ingredient-row [data-recipe-amount]{min-width:0;}
.meal-recipe-card{align-items:start;}
.recipe-summary{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap;}
.recipe-summary strong{width:100%;font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;}
.recipe-summary span{border:1px solid var(--line);border-radius:999px;background:var(--soft);padding:5px 8px;font-size:.84rem;}
.recipe-summary em{color:var(--muted);font-style:normal;}
@media (max-width:760px){.recipe-ingredient-list{max-height:none}.recipe-ingredient-row{grid-template-columns:auto minmax(0,1fr);}.recipe-ingredient-row [data-recipe-amount]{grid-column:2;width:100%;}.meal-recipe-card{grid-template-columns:1fr!important}.meal-recipe-card .project-actions{justify-content:flex-start}.meal-recipe-card .project-actions button{width:100%;}}


/* Pantry recipe unit conversion fields. */
.pantry-recipe-conversion-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end;}
.pantry-recipe-conversion-fields label{display:grid;gap:5px;font-weight:800;color:var(--muted);font-size:.82rem;text-transform:uppercase;letter-spacing:.04em;}
.pantry-recipe-conversion-fields input{width:100%;box-sizing:border-box;min-height:42px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);padding:9px 11px;font-size:16px;text-transform:none;letter-spacing:0;font-weight:700;}
@media (max-width:760px){.pantry-recipe-conversion-fields{grid-template-columns:1fr;}}


/* Recipe website import. */

.recipe-import-panel{border:1px solid var(--line);background:var(--soft);border-radius:16px;padding:12px;display:grid;gap:9px;}
.recipe-import-panel label{display:grid;gap:5px;font-weight:800;color:var(--muted);font-size:.82rem;text-transform:uppercase;letter-spacing:.04em;}
.recipe-import-panel input{width:100%;box-sizing:border-box;min-height:42px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);padding:9px 11px;font-size:16px;text-transform:none;letter-spacing:0;font-weight:700;}
.recipe-import-panel button{justify-self:start;}
.recipe-import-card{border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:10px;display:grid;gap:7px;}
.recipe-missing-list{display:flex;flex-wrap:wrap;gap:6px;}
.recipe-missing-list strong{width:100%;font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;}
.recipe-missing-list span{border:1px solid var(--line);border-radius:999px;background:var(--soft);padding:5px 8px;font-size:.84rem;}
.recipe-missing-list em{color:var(--muted);font-style:normal;}


/* Full recipe instructions. */
.recipe-instructions{margin-top:10px;border:1px solid var(--line);border-radius:14px;background:var(--soft);padding:8px 10px;}
.recipe-instructions summary{cursor:pointer;font-weight:900;}
.recipe-instructions ol{margin:8px 0 0 22px;padding:0;display:grid;gap:7px;}
.recipe-instructions li{line-height:1.45;}
.recipe-notes{white-space:pre-line;}
.recipe-source-link{display:inline-block;margin-top:8px;}


/* Dedicated recipe detail page. */

.compact-meal-card .recipe-notes,.compact-meal-card .recipe-summary,.compact-meal-card .recipe-instructions{display:none!important;}
.recipe-card-stats{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px;}
.recipe-card-stats span{border:1px solid var(--line);border-radius:999px;background:var(--soft);padding:5px 8px;font-size:.82rem;color:var(--muted);font-weight:800;}
.recipe-detail-view{padding-bottom:24px;}
.recipe-page-card{display:grid;gap:14px;}
.recipe-hero{min-height:190px;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:linear-gradient(135deg,var(--soft),var(--panel));display:grid;place-items:center;}
.recipe-hero img{width:100%;height:min(42vh,320px);object-fit:cover;display:block;}
.recipe-hero-placeholder{display:grid;gap:8px;text-align:center;color:var(--muted);padding:28px;}.recipe-hero-placeholder span{font-size:3rem;}
.recipe-page-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}.recipe-page-head h2{margin:0;font-size:clamp(1.5rem,5vw,2.3rem);}
.recipe-section{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:14px;display:grid;gap:10px;}.recipe-section h3{margin:0;}
.recipe-ingredient-clean-list{display:grid;gap:8px;}.recipe-ingredient-clean-row{border:1px solid var(--line);border-radius:14px;padding:10px;background:var(--soft);display:grid;gap:4px;}.recipe-ingredient-clean-row span{font-weight:850;}.recipe-ingredient-clean-row small{color:var(--muted);font-weight:750;}.recipe-ingredient-clean-row.missing{border-color:color-mix(in srgb,#f59e0b 55%,var(--line));}
.recipe-step-list{margin:0 0 0 22px;padding:0;display:grid;gap:12px;line-height:1.5;}.recipe-step-list li{padding-left:4px;}
.recipe-page-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}.recipe-page-actions a{color:var(--muted);font-weight:800;}
@media (max-width:760px){.recipe-page-head{display:grid}.recipe-page-head button{width:100%;}.recipe-hero{min-height:150px}.recipe-page-actions button{width:100%;}.compact-meal-card .project-actions button{width:100%;}}


/* Recipe library + Have/Need pantry status. */
.recipe-library-section,.planned-meals-section{display:grid;gap:10px;margin-top:14px;}
.recipe-library-list{display:grid;gap:10px;}
.recipe-library-card{border-style:dashed;}
.have-need-pill{display:inline-flex;align-items:center;border-radius:999px;padding:2px 7px;margin-right:5px;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;background:var(--soft);border:1px solid var(--line);color:var(--muted);}
.have-need-pill.have{background:#dcfce7;color:#166534;border-color:#86efac;}
.have-need-pill.need{background:#fee2e2;color:#991b1b;border-color:#fecaca;}
.recipe-ingredient-clean-row.missing .have-need-pill.need{font-weight:900;}
@media (max-width:760px){.recipe-library-section,.planned-meals-section{margin-top:10px}.recipe-library-card .project-actions button{width:100%;}}

@media (max-width:760px){
  .section-head,
  .simple-home-head{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:start!important;
    justify-items:start!important;
    gap:4px!important;
    text-align:left!important;
  }

  .section-head .meta,
  .simple-home-subtitle{
    text-align:left!important;
  }

  .topbar .brand-block{
    min-width:0;
  }
}

/* 2026-06-09 second pass: simple family launch surface instead of admin dashboard. */
:root{
  --bg:#f6f7fb;
  --bg-deep:#edf2f7;
  --panel:#ffffff;
  --panel-strong:#ffffff;
  --soft:#f3f6fb;
  --line:#dce3ee;
  --text:#172033;
  --muted:#657186;
  --accent:#2563eb;
  --accent2:#0f766e;
  --warm:#f59e0b;
  --rose:#e11d48;
  --shadow:0 16px 48px rgba(31,41,55,.10);
}

body{
  min-height:100vh;
  background:
    linear-gradient(135deg,rgba(37,99,235,.10),transparent 34rem),
    linear-gradient(225deg,rgba(15,118,110,.11),transparent 30rem),
    linear-gradient(180deg,var(--bg),var(--bg-deep));
}

#app.app-shell{
  display:block;
  width:min(1120px,100%);
  padding:calc(18px + var(--safe-top)) calc(18px + var(--safe-right)) calc(28px + var(--safe-bottom)) calc(18px + var(--safe-left))!important;
}

.topbar{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:12px 0 18px;
  margin:0 0 14px;
  background:transparent;
  border:0;
}

#menuBtn{
  display:grid;
  width:48px;
  min-height:48px;
  border-radius:14px;
  background:var(--panel);
  box-shadow:0 10px 28px rgba(31,41,55,.10);
}

.brand-block{
  gap:1px;
}

.brand-block h1{
  font-size:clamp(1.9rem,4vw,3rem);
  font-weight:850;
}

.brand-block .lead{
  font-size:1rem;
}

.top-actions{
  display:grid;
  grid-template-columns:minmax(190px,260px) auto auto;
  gap:8px;
}

#userBadge{
  display:none;
}

.search-input{
  border-radius:14px;
  min-height:44px;
  background:rgba(255,255,255,.86);
}

.top-actions button{
  min-height:44px;
  border-radius:14px;
  background:rgba(255,255,255,.86);
}

.side-nav{
  position:fixed!important;
  z-index:30;
  top:calc(14px + var(--safe-top));
  bottom:calc(14px + var(--safe-bottom));
  left:calc(14px + var(--safe-left));
  width:min(340px,calc(100vw - 28px));
  max-height:none;
  transform:translateX(calc(-100% - 28px));
  transition:transform .22s ease;
  border-radius:18px!important;
  padding:14px;
}

.menu-open .side-nav{
  transform:translateX(0);
}

#closeMenuBtn{
  display:grid;
}

.menu-open .nav-scrim{
  display:block!important;
}

.nav-scrim{
  position:fixed;
  inset:0;
  z-index:20;
  background:rgba(15,23,42,.34);
  backdrop-filter:blur(4px);
}

.summary-grid,.calm-summary{
  display:none!important;
}

#home.calm-home{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.simple-home-head{
  display:grid!important;
  grid-template-columns:1fr;
  gap:8px!important;
  padding:28px!important;
  margin:0 0 16px!important;
  border:1px solid color-mix(in srgb,var(--accent) 15%,var(--line));
  border-radius:28px!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.95),rgba(255,255,255,.76)),
    linear-gradient(135deg,rgba(37,99,235,.18),rgba(15,118,110,.14));
  box-shadow:var(--shadow);
  overflow:hidden;
}

.simple-home-head h2{
  font-size:clamp(2rem,5vw,4.2rem);
  line-height:1;
  font-weight:900;
}

.simple-home-head .meta{
  max-width:40rem;
  font-size:1.05rem;
  line-height:1.45;
  color:#46546b;
}

.focus-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}

.page-card,.primary-card{
  position:relative;
  min-height:156px;
  border-radius:24px!important;
  padding:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 18px 42px rgba(31,41,55,.12);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.page-card:hover,.page-card:focus-visible{
  transform:translateY(-3px);
  box-shadow:0 24px 56px rgba(31,41,55,.16);
}

.primary-card h2{
  font-size:1.28rem;
  font-weight:900;
}

.primary-card .meta{
  color:rgba(23,32,51,.70);
  font-size:.95rem;
}

.primary-card strong,.primary-card .pill{
  align-self:end;
  justify-self:start;
  display:inline-flex;
  min-width:46px;
  min-height:46px;
  align-items:center;
  justify-content:center;
  border-radius:999px!important;
  padding:0 14px;
  background:rgba(255,255,255,.82);
  color:#111827;
  font-size:1.5rem;
  box-shadow:0 8px 18px rgba(31,41,55,.10);
}

.shopping-card{
  background:linear-gradient(135deg,#dbeafe,#ffffff 78%);
}

.chores-card{
  background:linear-gradient(135deg,#dcfce7,#ffffff 78%);
}

.calendar-card{
  background:linear-gradient(135deg,#fef3c7,#ffffff 78%);
}

.pantry-card-link{
  background:linear-gradient(135deg,#fce7f3,#ffffff 78%);
}

.action-card::after{
  content:"";
  position:absolute;
  width:86px;
  height:86px;
  right:-24px;
  bottom:-24px;
  border-radius:999px;
  background:rgba(255,255,255,.55);
}

.more-pages-panel{
  border-radius:22px!important;
  padding:10px 14px;
  background:rgba(255,255,255,.78);
  box-shadow:0 12px 30px rgba(31,41,55,.08);
}

.more-pages-panel>summary{
  min-height:48px;
  font-size:1.05rem;
}

.compact-page-grid{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
}

.compact-page-grid .page-card{
  min-height:92px;
  padding:14px;
  border-radius:16px!important;
  box-shadow:none;
}

section.view:not(#home){
  border-radius:24px!important;
  padding:22px;
  box-shadow:0 16px 42px rgba(31,41,55,.09);
}

.view>.section-head{
  border-bottom:0;
  padding-bottom:0;
  margin-bottom:16px;
}

.view>.section-head h2{
  font-size:clamp(1.5rem,3vw,2.25rem);
  font-weight:900;
}

.add-panel{
  border-radius:18px!important;
  background:var(--soft);
  box-shadow:none;
}

.person,.item,.project,.event,.pantry-card,.pet-profile-card{
  border-radius:16px!important;
}

@media (max-width:900px){
  .topbar{
    grid-template-columns:auto minmax(0,1fr);
  }

  .top-actions{
    grid-column:1/-1;
    grid-template-columns:1fr auto auto;
  }

  .focus-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:620px){
  #app.app-shell{
    padding:calc(12px + var(--safe-top)) calc(10px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(10px + var(--safe-left))!important;
  }

  .topbar{
    gap:10px;
    padding-bottom:10px;
  }

  #menuBtn{
    width:44px;
    min-height:44px;
  }

  .brand-block h1{
    font-size:1.8rem;
  }

  .top-actions{
    grid-template-columns:1fr 1fr;
  }

  .search-input{
    grid-column:1/-1;
  }

  .simple-home-head{
    padding:22px 18px!important;
    border-radius:22px!important;
  }

  .simple-home-head h2{
    font-size:2.45rem;
  }

  .focus-grid,.compact-page-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .page-card,.primary-card{
    min-height:124px;
    border-radius:20px!important;
  }

  section.view:not(#home){
    padding:16px;
    border-radius:20px!important;
  }
}

/* Make the existing home markup read like a friendly launcher. */
.simple-home-head h2{
  font-size:0!important;
}

.simple-home-head h2::after{
  content:"What do you need?";
  display:block;
  font-size:clamp(2rem,5vw,4.2rem);
  line-height:1;
  font-weight:900;
  color:var(--text);
}

.simple-home-head::before{
  content:"Start here";
  color:var(--accent);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.focus-grid .primary-card:nth-child(1){
  background:linear-gradient(135deg,#dbeafe,#ffffff 78%);
}

.focus-grid .primary-card:nth-child(2){
  background:linear-gradient(135deg,#dcfce7,#ffffff 78%);
}

.focus-grid .primary-card:nth-child(3){
  background:linear-gradient(135deg,#fef3c7,#ffffff 78%);
}

.focus-grid .primary-card:nth-child(4){
  background:linear-gradient(135deg,#fce7f3,#ffffff 78%);
}

.focus-grid .primary-card::after{
  content:"";
  position:absolute;
  width:92px;
  height:92px;
  right:-26px;
  bottom:-26px;
  border-radius:999px;
  background:rgba(255,255,255,.58);
  pointer-events:none;
}

.focus-grid .primary-card strong,
.focus-grid .primary-card .pill{
  z-index:1;
}

@media (min-width:901px){
  .simple-home-head{
    min-height:180px;
    align-content:center;
  }
}

/* Keep the final polish crisp: friendly, but not blobby. */
#menuBtn,
.search-input,
.top-actions button,
.simple-home-head,
.page-card,
.primary-card,
.more-pages-panel,
section.view:not(#home),
.add-panel,
.person,
.item,
.project,
.event,
.pantry-card,
.pet-profile-card{
  border-radius:8px!important;
}

/* 2026-06-09 focus pass: mobile-first, readable, and much less daunting. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme=dark]){
    color-scheme:light;
    --bg:#f6f7fb;
    --bg-deep:#e9edf5;
    --panel:#ffffff;
    --panel-strong:#ffffff;
    --soft:#f2f5fa;
    --line:#d9e0ea;
    --text:#111827;
    --muted:#5b6678;
    --shadow:0 18px 40px rgba(31,41,55,.12);
  }
}

body{
  background:linear-gradient(180deg,var(--bg),var(--bg-deep))!important;
}

.topbar{
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  align-items:start;
}

.brand-block .eyebrow{
  color:#7c3aed;
  font-size:.72rem;
  letter-spacing:.12em;
}

.brand-block h1{
  color:var(--text);
}

.top-actions button{
  background:var(--panel)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}

.search-input{
  background:var(--panel)!important;
  color:var(--text)!important;
  border:1px solid var(--line)!important;
  box-shadow:0 8px 18px rgba(31,41,55,.08)!important;
}

.search-input::placeholder{
  color:#8b95a5;
}

.simple-home-head{
  min-height:0!important;
  padding:22px!important;
  background:linear-gradient(135deg,#111827,#25334a)!important;
  border:0!important;
  box-shadow:0 20px 44px rgba(17,24,39,.22)!important;
  color:#ffffff!important;
}

.simple-home-head::before{
  color:#c4b5fd!important;
}

.simple-home-head h2::after{
  color:#ffffff!important;
  font-size:clamp(2.1rem,6vw,4rem)!important;
}

.simple-home-head .meta{
  color:#d8deea!important;
  max-width:34rem;
}

.focus-grid{
  gap:12px!important;
}

.focus-grid .primary-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  min-height:112px!important;
  padding:18px!important;
  background:#ffffff!important;
  border:1px solid #e1e7f0!important;
  border-left:8px solid var(--card-accent,#2563eb)!important;
  box-shadow:0 12px 26px rgba(31,41,55,.10)!important;
  color:#111827!important;
}

.focus-grid .primary-card:nth-child(1){--card-accent:#2563eb;}
.focus-grid .primary-card:nth-child(2){--card-accent:#16a34a;}
.focus-grid .primary-card:nth-child(3){--card-accent:#f59e0b;}
.focus-grid .primary-card:nth-child(4){--card-accent:#db2777;}

.focus-grid .primary-card::after{
  display:none!important;
}

.primary-card h2,
.focus-grid .primary-card h2{
  color:#111827!important;
  font-size:1.24rem!important;
  line-height:1.12;
}

.primary-card .meta,
.focus-grid .primary-card .meta{
  color:#4b5563!important;
  font-size:.94rem!important;
}

.focus-grid .primary-card strong,
.focus-grid .primary-card .pill{
  min-width:44px;
  min-height:44px;
  background:#f3f6fb!important;
  color:#111827!important;
  box-shadow:none!important;
  border:1px solid #e1e7f0;
  font-size:1.35rem!important;
}

.more-pages-panel{
  background:#ffffff!important;
  border:1px solid #e1e7f0!important;
  box-shadow:0 10px 22px rgba(31,41,55,.08)!important;
}

.compact-page-grid .page-card{
  background:#ffffff!important;
  border:1px solid #e1e7f0!important;
  color:#111827!important;
}

.compact-page-grid .page-card h2{
  color:#111827!important;
}

.compact-page-grid .page-card .meta{
  color:#5b6678!important;
}

@media (max-width:760px){
  #app.app-shell{
    padding:calc(12px + var(--safe-top)) calc(14px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(14px + var(--safe-left))!important;
  }

  .topbar{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr);
    gap:10px!important;
    margin-bottom:12px!important;
    padding:0!important;
  }

  #menuBtn{
    grid-row:1;
    width:44px!important;
    min-width:44px;
    min-height:44px!important;
    background:#ffffff!important;
    color:#111827!important;
    border:1px solid #e1e7f0!important;
    box-shadow:0 8px 18px rgba(31,41,55,.08)!important;
  }

  .brand-block{
    min-width:0;
  }

  .brand-block h1{
    font-size:2rem!important;
    line-height:1.02;
  }

  .lead.small{
    display:none;
  }

  .top-actions{
    grid-column:1/-1;
    display:grid!important;
    grid-template-columns:1fr;
    width:100%;
    gap:0!important;
  }

  .top-actions button,
  .top-actions #userBadge{
    display:none!important;
  }

  .search-input{
    max-width:none!important;
    width:100%!important;
    min-height:48px!important;
    font-size:17px!important;
  }

  .simple-home-head{
    margin-bottom:12px!important;
    padding:20px!important;
  }

  .simple-home-head h2::after{
    font-size:2.35rem!important;
  }

  .simple-home-head .meta{
    font-size:1rem!important;
  }

  .focus-grid .primary-card{
    min-height:92px!important;
    padding:16px!important;
    border-radius:12px!important;
  }

  .focus-grid .primary-card h2{
    font-size:1.18rem!important;
  }

  .more-pages-panel{
    border-radius:12px!important;
  }
}

/* 2026-06-09 family-app pass: simple, readable, appliance-like UI. */
:root,
:root[data-theme=light],
:root[data-theme=dark]{
  color-scheme:light!important;
  --bg:#f6f7f2!important;
  --bg-deep:#e9efe8!important;
  --panel:#ffffff!important;
  --panel-strong:#ffffff!important;
  --soft:#f4f7f3!important;
  --line:#dce4dc!important;
  --text:#17211c!important;
  --muted:#617066!important;
  --accent:#2563eb!important;
  --accent2:#16a34a!important;
  --danger:#b42318!important;
  --done:#7a867d!important;
  --shadow:0 14px 28px rgba(31,41,35,.10)!important;
  --glass-blur:none!important;
}

*{
  letter-spacing:0!important;
}

html,
body{
  overflow-x:hidden;
}

body{
  background:
    linear-gradient(180deg,rgba(255,255,255,.74),rgba(255,255,255,0) 260px),
    linear-gradient(135deg,#f6f7f2 0%,#eef6f7 45%,#f7f1ea 100%)!important;
  color:var(--text)!important;
  font-size:16px!important;
  line-height:1.45!important;
}

button,
input,
select,
textarea{
  border-radius:8px!important;
  box-shadow:none!important;
}

button{
  min-height:46px!important;
  background:#ffffff!important;
  border:1px solid var(--line)!important;
  color:var(--text)!important;
  font-weight:760!important;
}

button[type=submit],
.nav-page.active{
  background:#17211c!important;
  border-color:#17211c!important;
  color:#ffffff!important;
}

button:hover,
.click-card:hover,
.page-card:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(31,41,35,.12)!important;
}

input,
select,
textarea{
  background:#ffffff!important;
  border:1px solid var(--line)!important;
  color:var(--text)!important;
}

input::placeholder,
textarea::placeholder{
  color:#839087!important;
}

#app.app-shell{
  width:min(1120px,100%)!important;
  padding:calc(18px + var(--safe-top)) calc(18px + var(--safe-right)) calc(30px + var(--safe-bottom)) calc(18px + var(--safe-left))!important;
}

.topbar{
  position:relative!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  margin:0 0 18px!important;
  padding:0!important;
  background:transparent!important;
}

#menuBtn{
  width:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  border-radius:8px!important;
  background:#ffffff!important;
  box-shadow:0 10px 22px rgba(31,41,35,.10)!important;
}

.brand-block .eyebrow{
  color:#64748b!important;
  font-size:.76rem!important;
  font-weight:850!important;
  text-transform:none!important;
}

.brand-block h1{
  font-size:clamp(2rem,4vw,3.35rem)!important;
  line-height:1.02!important;
  color:#17211c!important;
  font-weight:880!important;
}

.lead.small{
  margin-top:3px!important;
  color:#617066!important;
  font-size:1rem!important;
}

.top-actions{
  display:grid!important;
  grid-template-columns:minmax(180px,260px) auto auto auto!important;
  gap:8px!important;
  align-items:center!important;
}

#userBadge{
  color:#617066!important;
  font-size:.88rem!important;
  font-weight:750!important;
}

.search-input{
  max-width:none!important;
  min-height:46px!important;
  background:#ffffff!important;
  box-shadow:0 10px 22px rgba(31,41,35,.08)!important;
}

.summary-grid{
  display:none!important;
}

section,
section.view,
.inner-panel,
.summary-card,
.page-card,
.side-nav,
.more-pages-panel,
.add-panel,
.person,
.item,
.event,
.project,
.pantry-card,
.pet-profile-card,
.login-panel{
  border-radius:8px!important;
  border:1px solid var(--line)!important;
  background:#ffffff!important;
  box-shadow:0 10px 24px rgba(31,41,35,.08)!important;
}

.view.active{
  animation:familyFade .18s ease-out;
}

@keyframes familyFade{
  from{opacity:.72;transform:translateY(4px);}
  to{opacity:1;transform:none;}
}

#home{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}

.simple-home-head{
  display:grid!important;
  gap:10px!important;
  min-height:190px!important;
  align-content:center!important;
  padding:28px!important;
  margin:0 0 14px!important;
  border:0!important;
  border-radius:8px!important;
  background:
    linear-gradient(135deg,rgba(23,33,28,.94),rgba(42,69,83,.94)),
    linear-gradient(90deg,#17211c,#334155)!important;
  box-shadow:0 18px 38px rgba(23,33,28,.22)!important;
  overflow:hidden;
}

.simple-home-head h2{
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  height:auto!important;
}

.simple-home-head::before{
  content:"Family home"!important;
  color:#bbf7d0!important;
  font-size:.82rem!important;
  font-weight:880!important;
  text-transform:uppercase!important;
}

.simple-home-head h2::after{
  content:"What do you need?"!important;
  color:#ffffff!important;
  font-size:clamp(2.25rem,6vw,4.7rem)!important;
  line-height:1!important;
  font-weight:900!important;
}

.simple-home-head .meta{
  color:#e2e8f0!important;
  font-size:1.08rem!important;
  max-width:36rem!important;
}

.focus-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:14px!important;
}

.focus-grid .primary-card{
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  min-height:148px!important;
  padding:18px!important;
  color:#17211c!important;
  border-left:10px solid var(--family-card,#2563eb)!important;
}

.focus-grid .primary-card:nth-child(1){--family-card:#2563eb!important;}
.focus-grid .primary-card:nth-child(2){--family-card:#16a34a!important;}
.focus-grid .primary-card:nth-child(3){--family-card:#f59e0b!important;}
.focus-grid .primary-card:nth-child(4){--family-card:#db2777!important;}

.focus-grid .primary-card h2{
  color:#17211c!important;
  font-size:1.35rem!important;
  font-weight:880!important;
  line-height:1.15!important;
}

.focus-grid .primary-card .meta{
  margin-top:4px!important;
  color:#526158!important;
  font-size:.98rem!important;
  line-height:1.35!important;
}

.focus-grid .primary-card strong,
.focus-grid .primary-card .pill{
  display:grid!important;
  place-items:center!important;
  min-width:50px!important;
  height:50px!important;
  padding:0 10px!important;
  border-radius:8px!important;
  background:#f4f7f3!important;
  border:1px solid var(--line)!important;
  color:#17211c!important;
  font-size:1.35rem!important;
  font-weight:880!important;
}

.more-pages-panel{
  padding:10px!important;
}

.more-pages-panel>summary,
.add-panel>summary{
  min-height:48px!important;
  padding:0 4px!important;
  color:#17211c!important;
  font-size:1rem!important;
  font-weight:850!important;
}

.more-pages-panel>summary::after,
.add-panel>summary::after{
  content:"Open"!important;
  background:#eef6f7!important;
  border-color:#d6e5e6!important;
  color:#33515b!important;
}

.more-pages-panel[open]>summary::after,
.add-panel[open]>summary::after{
  content:"Close"!important;
}

.compact-page-grid{
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;
  gap:10px!important;
}

.compact-page-grid .page-card{
  min-height:92px!important;
  padding:14px!important;
  box-shadow:none!important;
}

.compact-page-grid .page-card h2{
  color:#17211c!important;
  font-size:1rem!important;
  font-weight:850!important;
}

.compact-page-grid .page-card .meta{
  color:#617066!important;
}

section.view:not(#home){
  padding:18px!important;
}

.section-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:3px!important;
  padding-bottom:12px!important;
  margin-bottom:14px!important;
  border-bottom:1px solid var(--line)!important;
}

.section-head h2{
  color:#17211c!important;
  font-size:1.45rem!important;
  font-weight:880!important;
}

.meta{
  color:#617066!important;
  font-size:.95rem!important;
}

.add-panel{
  padding:8px 12px!important;
  margin-bottom:14px!important;
  box-shadow:none!important;
}

.task-form,
.stack-form,
.simple-hub-form,
.simple-hub-form .inline-form{
  gap:10px!important;
}

.simple-hub-form,
.add-panel form{
  background:transparent!important;
  border:0!important;
  padding:6px 0 8px!important;
}

.page-list,
.hub-list,
.check-list{
  display:grid!important;
  gap:10px!important;
  max-height:none!important;
  overflow:visible!important;
}

.item,
.person,
.project,
.event{
  background:#ffffff!important;
  box-shadow:none!important;
  padding:13px!important;
}

.title{
  color:#17211c!important;
  font-size:1rem!important;
  font-weight:850!important;
}

.shopping-row{
  grid-template-columns:auto minmax(0,1fr) auto!important;
  min-height:72px;
}

.shopping-actions,
.project-actions,
.edit-actions{
  gap:8px!important;
}

.shopping-actions button,
.project-actions button,
.edit-actions button,
[data-delete-chore],
[data-delete-hub],
[data-delete-item]{
  min-height:38px!important;
  padding:6px 10px!important;
  font-size:.9rem!important;
}

.item input[type=checkbox]{
  width:28px!important;
  height:28px!important;
  min-height:28px!important;
}

.pantry-category{
  border-top:0!important;
  padding-top:0!important;
}

.pantry-category-head{
  margin:18px 0 8px!important;
}

.pantry-category-head h3{
  color:#334155!important;
  font-size:.9rem!important;
  font-weight:880!important;
}

.pantry-summary{
  grid-template-columns:minmax(0,1fr) auto auto!important;
  padding:13px!important;
}

.qty-stepper{
  background:#f4f7f3!important;
  border-color:var(--line)!important;
  border-radius:8px!important;
}

.qty-stepper button{
  min-width:36px!important;
  min-height:36px!important;
}

.stock-pill,
.notification-chip,
.calendar-chip{
  border-radius:8px!important;
  font-weight:820!important;
}

.meal-day,
.calendar-status-card,
.calendar-empty-card,
.recipe-library-section,
.planned-meals-section{
  background:#ffffff!important;
  border:1px solid var(--line)!important;
  border-radius:8px!important;
  box-shadow:none!important;
}

.side-nav{
  width:min(340px,calc(100vw - 28px))!important;
  padding:14px!important;
}

.nav-group{
  border-radius:8px!important;
  background:#f4f7f3!important;
}

.nav-group summary{
  color:#617066!important;
}

.nav-group .nav-page,
.side-nav-scroll>.nav-page{
  min-height:44px!important;
  border-radius:8px!important;
  background:#ffffff!important;
}

.login-page{
  background:linear-gradient(135deg,#f6f7f2,#eef6f7 45%,#f7f1ea)!important;
}

.login-shell{
  grid-template-columns:minmax(0,1fr) minmax(320px,420px)!important;
  max-width:1040px!important;
  margin:0 auto!important;
}

.hero-panel{
  background:#17211c!important;
  color:#ffffff!important;
  border:0!important;
}

.hero-panel h1,
.hero-panel .lead{
  color:#ffffff!important;
}

.hero-panel .eyebrow{
  color:#bbf7d0!important;
}

@media (max-width:900px){
  .topbar{
    grid-template-columns:48px minmax(0,1fr)!important;
  }

  .top-actions{
    grid-column:1/-1!important;
    grid-template-columns:1fr!important;
  }

  .top-actions #userBadge,
  .top-actions button{
    display:none!important;
  }

  .focus-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media (max-width:760px){
  body{
    font-size:16px!important;
  }

  #app.app-shell{
    padding:calc(14px + var(--safe-top)) calc(12px + var(--safe-right)) calc(22px + var(--safe-bottom)) calc(12px + var(--safe-left))!important;
  }

  .topbar{
    gap:10px!important;
    margin-bottom:14px!important;
  }

  .brand-block h1{
    font-size:2rem!important;
  }

  .lead.small{
    display:block!important;
    font-size:.95rem!important;
  }

  .search-input{
    min-height:50px!important;
  }

  .simple-home-head{
    min-height:168px!important;
    padding:22px!important;
  }

  .simple-home-head h2::after{
    font-size:2.55rem!important;
  }

  .simple-home-head .meta{
    font-size:1rem!important;
  }

  .focus-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .focus-grid .primary-card{
    min-height:104px!important;
    padding:16px!important;
  }

  .compact-page-grid{
    grid-template-columns:1fr!important;
  }

  section.view:not(#home){
    padding:14px!important;
  }

  .task-form,
  .inline-form,
  .simple-hub-form .inline-form,
  .pantry-guided .pantry-main-fields,
  .pantry-date-status{
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  .shopping-row,
  .shopping-row.has-photo{
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:start!important;
  }

  .shopping-actions{
    grid-column:1/-1!important;
    justify-content:stretch!important;
  }

  .shopping-actions button{
    flex:1 1 140px!important;
  }

  .pantry-summary{
    grid-template-columns:1fr!important;
  }

  .qty-stepper,
  .stock-pill{
    justify-self:start!important;
  }

  .login-shell{
    grid-template-columns:1fr!important;
  }

  .hero-panel{
    min-height:0!important;
  }
}

.simple-home-head.section-head h2{
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  margin:0!important;
}

.simple-home-head.section-head h2::after{
  color:#ffffff!important;
  font-size:clamp(2.25rem,6vw,4.7rem)!important;
  line-height:1!important;
}

/* 2026-06-09 family-app2: real light/dark themes + app navigation. */
:root,
:root[data-theme=light],
:root[data-theme=auto]{
  color-scheme:light!important;
  --app-bg:#f6f7f2;
  --app-bg2:#eaf1ee;
  --app-surface:#ffffff;
  --app-surface2:#f4f7f3;
  --app-text:#17211c;
  --app-muted:#5f6f65;
  --app-line:#d8e2d9;
  --app-hero1:#16231e;
  --app-hero2:#28445a;
  --app-shadow:0 14px 28px rgba(31,41,35,.10);
}

:root[data-theme=dark]{
  color-scheme:dark!important;
  --app-bg:#101412;
  --app-bg2:#151d1a;
  --app-surface:#1d2521;
  --app-surface2:#26312b;
  --app-text:#f4f7f3;
  --app-muted:#b7c3ba;
  --app-line:#3a4740;
  --app-hero1:#0a0f0d;
  --app-hero2:#143043;
  --app-shadow:0 16px 32px rgba(0,0,0,.34);
}

@media (prefers-color-scheme:dark){
  :root[data-theme=auto],
  :root:not([data-theme]),
  :root:not([data-theme=light]):not([data-theme=dark]){
    color-scheme:dark!important;
    --app-bg:#101412;
    --app-bg2:#151d1a;
    --app-surface:#1d2521;
    --app-surface2:#26312b;
    --app-text:#f4f7f3;
    --app-muted:#b7c3ba;
    --app-line:#3a4740;
    --app-hero1:#0a0f0d;
    --app-hero2:#143043;
    --app-shadow:0 16px 32px rgba(0,0,0,.34);
  }
}

html,
body{
  background:linear-gradient(135deg,var(--app-bg),var(--app-bg2))!important;
  color:var(--app-text)!important;
}

body{
  min-height:100vh;
}

#app.app-shell{
  padding-bottom:calc(30px + var(--safe-bottom))!important;
}

.brand-block .eyebrow,
.lead.small,
.meta,
label,
#userBadge{
  color:var(--app-muted)!important;
}

.brand-block h1,
.section-head h2,
.title,
.compact-page-grid .page-card h2,
.focus-grid .primary-card h2,
.primary-card h2{
  color:var(--app-text)!important;
}

button,
input,
select,
textarea,
section,
section.view,
.inner-panel,
.page-card,
.more-pages-panel,
.add-panel,
.person,
.item,
.event,
.project,
.pantry-card,
.pet-profile-card,
.login-panel,
.side-nav,
.nav-group .nav-page,
.side-nav-scroll>.nav-page,
.meal-day,
.calendar-status-card,
.calendar-empty-card,
.recipe-library-section,
.planned-meals-section{
  background:var(--app-surface)!important;
  border-color:var(--app-line)!important;
  color:var(--app-text)!important;
  box-shadow:var(--app-shadow)!important;
}

.simple-home-head{
  background:linear-gradient(135deg,var(--app-hero1),var(--app-hero2))!important;
  color:#ffffff!important;
}

.simple-home-head .meta,
.simple-home-head.section-head h2::after{
  color:#ffffff!important;
}

.simple-home-head::before{
  color:#bbf7d0!important;
}

.focus-grid .primary-card,
.compact-page-grid .page-card{
  background:var(--app-surface)!important;
}

.focus-grid .primary-card .meta,
.compact-page-grid .page-card .meta{
  color:var(--app-muted)!important;
}

.focus-grid .primary-card strong,
.focus-grid .primary-card .pill,
.qty-stepper,
.stock-pill,
.notification-chip,
.calendar-chip,
.more-pages-panel>summary::after,
.add-panel>summary::after{
  background:var(--app-surface2)!important;
  border-color:var(--app-line)!important;
  color:var(--app-text)!important;
}

.nav-group,
.nav-scrim{
  background:var(--app-surface2)!important;
  border-color:var(--app-line)!important;
}

.nav-page.active,
.nav-group .nav-page.active,
.side-nav-scroll>.nav-page.active,
.bottom-tabs .nav-page.active{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#ffffff!important;
}

.nav-page.active::before,
.nav-group .nav-page.active::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:currentColor;
  margin-right:8px;
}

button[type=submit]{
  background:var(--app-text)!important;
  border-color:var(--app-text)!important;
  color:var(--app-bg)!important;
}

.side-nav{
  box-shadow:0 20px 60px rgba(0,0,0,.24)!important;
}

.side-nav-head strong,
.nav-group summary{
  color:var(--app-text)!important;
}

.bottom-tabs{
  display:none;
}

.login-page{
  background:linear-gradient(135deg,var(--app-bg),var(--app-bg2))!important;
}

.hero-panel{
  background:linear-gradient(135deg,var(--app-hero1),var(--app-hero2))!important;
}

@media (min-width:901px){
  .topbar{
    grid-template-columns:48px minmax(0,1fr) minmax(360px,auto)!important;
  }

  .side-nav{
    width:min(380px,calc(100vw - 32px))!important;
  }
}

@media (max-width:760px){
  #app.app-shell{
    padding-bottom:calc(92px + var(--safe-bottom))!important;
  }

  .brand-block h1{
    font-size:1.8rem!important;
  }

  .simple-home-head{
    min-height:148px!important;
  }

  .simple-home-head.section-head h2::after{
    font-size:2.25rem!important;
  }

  .bottom-tabs{
    position:fixed;
    z-index:18;
    left:calc(10px + var(--safe-left));
    right:calc(10px + var(--safe-right));
    bottom:calc(10px + var(--safe-bottom));
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
    padding:7px;
    border:1px solid var(--app-line);
    border-radius:8px;
    background:color-mix(in srgb,var(--app-surface) 92%,transparent);
    box-shadow:0 16px 42px rgba(0,0,0,.22);
  }

  .bottom-tabs .nav-page{
    min-height:48px!important;
    padding:0 4px!important;
    border-radius:8px!important;
    font-size:.82rem!important;
    justify-content:center!important;
    text-align:center!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  .bottom-tabs .nav-page.active{
    background:#2563eb!important;
    color:#ffffff!important;
  }

  .bottom-tabs .nav-page.active::before{
    display:none!important;
  }

  .top-actions{
    display:none!important;
  }

  .focus-grid .primary-card{
    min-height:96px!important;
  }

  #home .more-pages-panel{
    display:none!important;
  }
}

#menuBtn,
.search-input,
.top-actions button,
.more-pages-panel,
.add-panel,
.more-pages-panel>summary,
.add-panel>summary{
  background:var(--app-surface)!important;
  border-color:var(--app-line)!important;
  color:var(--app-text)!important;
}

.search-input::placeholder{
  color:var(--app-muted)!important;
}

:root[data-theme=dark] .top-actions button,
:root[data-theme=dark] .search-input,
:root[data-theme=dark] #menuBtn,
:root[data-theme=dark] .login-panel,
:root[data-theme=dark] input,
:root[data-theme=dark] select,
:root[data-theme=dark] textarea{
  background:var(--app-surface)!important;
  color:var(--app-text)!important;
  border-color:var(--app-line)!important;
}

@media (prefers-color-scheme:dark){
  :root[data-theme=auto] .top-actions button,
  :root[data-theme=auto] .search-input,
  :root[data-theme=auto] #menuBtn,
  :root[data-theme=auto] .login-panel,
  :root[data-theme=auto] input,
  :root[data-theme=auto] select,
  :root[data-theme=auto] textarea,
  :root:not([data-theme]) .top-actions button,
  :root:not([data-theme]) .search-input,
  :root:not([data-theme]) #menuBtn,
  :root:not([data-theme]) .login-panel,
  :root:not([data-theme]) input,
  :root:not([data-theme]) select,
  :root:not([data-theme]) textarea{
    background:var(--app-surface)!important;
    color:var(--app-text)!important;
    border-color:var(--app-line)!important;
  }
}

/* 2026-06-09 family-app3: modern product shell with glass surfaces and customizable tabs. */
:root,
:root[data-theme=light],
:root[data-theme=auto]{
  --app-bg:#f7f8fb;
  --app-bg2:#eef3f8;
  --app-surface:rgba(255,255,255,.70);
  --app-surface-solid:#ffffff;
  --app-surface2:rgba(255,255,255,.48);
  --app-line:rgba(87,103,125,.20);
  --app-text:#101418;
  --app-muted:#66727f;
  --app-hero1:rgba(16,20,24,.92);
  --app-hero2:rgba(34,72,100,.88);
  --app-shadow:0 18px 55px rgba(31,41,55,.12);
  --app-blur:saturate(180%) blur(22px);
}

:root[data-theme=dark]{
  --app-bg:#080b0f;
  --app-bg2:#111822;
  --app-surface:rgba(30,37,46,.66);
  --app-surface-solid:#1d2530;
  --app-surface2:rgba(255,255,255,.08);
  --app-line:rgba(226,232,240,.18);
  --app-text:#f8fafc;
  --app-muted:#b8c2cf;
  --app-hero1:rgba(5,9,13,.92);
  --app-hero2:rgba(14,49,72,.88);
  --app-shadow:0 22px 60px rgba(0,0,0,.38);
}

@media (prefers-color-scheme:dark){
  :root[data-theme=auto],
  :root:not([data-theme]),
  :root:not([data-theme=light]):not([data-theme=dark]){
    --app-bg:#080b0f;
    --app-bg2:#111822;
    --app-surface:rgba(30,37,46,.66);
    --app-surface-solid:#1d2530;
    --app-surface2:rgba(255,255,255,.08);
    --app-line:rgba(226,232,240,.18);
    --app-text:#f8fafc;
    --app-muted:#b8c2cf;
    --app-hero1:rgba(5,9,13,.92);
    --app-hero2:rgba(14,49,72,.88);
    --app-shadow:0 22px 60px rgba(0,0,0,.38);
  }
}

body{
  background:
    radial-gradient(circle at 15% -12%,rgba(37,99,235,.22),transparent 28rem),
    radial-gradient(circle at 86% 0%,rgba(20,184,166,.16),transparent 24rem),
    linear-gradient(145deg,var(--app-bg),var(--app-bg2))!important;
}

section,
section.view,
.inner-panel,
.page-card,
.more-pages-panel,
.add-panel,
.person,
.item,
.event,
.project,
.pantry-card,
.pet-profile-card,
.login-panel,
.side-nav,
.meal-day,
.calendar-status-card,
.calendar-empty-card,
.recipe-library-section,
.planned-meals-section,
#menuBtn,
.search-input,
.top-actions button,
.bottom-tabs{
  background:var(--app-surface)!important;
  border:1px solid var(--app-line)!important;
  color:var(--app-text)!important;
  box-shadow:var(--app-shadow)!important;
  -webkit-backdrop-filter:var(--app-blur)!important;
  backdrop-filter:var(--app-blur)!important;
}

input,
select,
textarea{
  background:color-mix(in srgb,var(--app-surface-solid) 82%,transparent)!important;
  border-color:var(--app-line)!important;
  color:var(--app-text)!important;
}

.topbar{
  position:sticky!important;
  top:calc(8px + var(--safe-top))!important;
  z-index:16!important;
  padding:8px!important;
  margin-bottom:16px!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
}

.topbar::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:8px;
  background:color-mix(in srgb,var(--app-bg) 55%,transparent);
  -webkit-backdrop-filter:var(--app-blur);
  backdrop-filter:var(--app-blur);
}

.simple-home-head{
  background:
    linear-gradient(135deg,var(--app-hero1),var(--app-hero2)),
    radial-gradient(circle at 90% 10%,rgba(255,255,255,.22),transparent 16rem)!important;
  box-shadow:0 24px 70px rgba(15,23,42,.22)!important;
}

.focus-grid .primary-card{
  overflow:hidden;
}

.focus-grid .primary-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,color-mix(in srgb,var(--family-card,#2563eb) 14%,transparent),transparent 58%);
  pointer-events:none;
}

.focus-grid .primary-card>div,
.focus-grid .primary-card>strong,
.focus-grid .primary-card>.pill{
  position:relative;
}

.focus-grid .primary-card strong,
.focus-grid .primary-card .pill,
.bottom-tabs .nav-page,
.more-pages-panel>summary::after,
.add-panel>summary::after{
  background:var(--app-surface2)!important;
  -webkit-backdrop-filter:var(--app-blur)!important;
  backdrop-filter:var(--app-blur)!important;
}

.bottom-tabs{
  background:color-mix(in srgb,var(--app-surface-solid) 52%,transparent)!important;
}

.bottom-tabs .nav-page{
  border-color:var(--app-line)!important;
  box-shadow:none!important;
}

.bottom-tabs .nav-page.active{
  background:rgba(37,99,235,.92)!important;
  color:#ffffff!important;
  border-color:rgba(37,99,235,.30)!important;
}

.bottom-tab-picker{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  border:1px solid var(--app-line);
  border-radius:8px;
  padding:12px;
  background:var(--app-surface2);
}

.bottom-tab-picker>span{
  grid-column:1/-1;
  color:var(--app-muted);
  font-weight:850;
}

.nav-group{
  background:color-mix(in srgb,var(--app-surface-solid) 44%,transparent)!important;
  -webkit-backdrop-filter:var(--app-blur)!important;
  backdrop-filter:var(--app-blur)!important;
}

.nav-group .nav-page,
.side-nav-scroll>.nav-page{
  background:color-mix(in srgb,var(--app-surface-solid) 70%,transparent)!important;
  box-shadow:none!important;
}

.nav-group .nav-page.active,
.side-nav-scroll>.nav-page.active{
  background:rgba(37,99,235,.94)!important;
  color:#ffffff!important;
}

@media (max-width:760px){
  .topbar{
    position:relative!important;
    top:auto!important;
    padding:0!important;
  }

  .topbar::before{
    display:none;
  }

  .bottom-tab-picker{
    grid-template-columns:1fr;
  }
}

/* 2026-06-09 family-app4: make the web/PWA match the native SwiftUI app direction. */
:root,
:root[data-theme=light],
:root[data-theme=auto]{
  --native-bg:#f5f6fa;
  --native-bg2:#eaf0f7;
  --native-text:#111318;
  --native-muted:#66707c;
  --native-glass:rgba(255,255,255,.68);
  --native-glass-strong:rgba(255,255,255,.82);
  --native-fill:rgba(255,255,255,.44);
  --native-line:rgba(75,92,115,.18);
  --native-blue:#0a84ff;
  --native-green:#34c759;
  --native-orange:#ff9f0a;
  --native-pink:#ff2d55;
  --native-shadow:0 18px 50px rgba(26,34,48,.12);
  --native-blur:saturate(180%) blur(28px);
}

:root[data-theme=dark]{
  --native-bg:#05070b;
  --native-bg2:#111827;
  --native-text:#f8fafc;
  --native-muted:#aab6c4;
  --native-glass:rgba(30,36,46,.66);
  --native-glass-strong:rgba(42,49,61,.84);
  --native-fill:rgba(255,255,255,.08);
  --native-line:rgba(226,232,240,.16);
  --native-shadow:0 22px 60px rgba(0,0,0,.42);
}

@media (prefers-color-scheme:dark){
  :root[data-theme=auto],
  :root:not([data-theme]),
  :root:not([data-theme=light]):not([data-theme=dark]){
    --native-bg:#05070b;
    --native-bg2:#111827;
    --native-text:#f8fafc;
    --native-muted:#aab6c4;
    --native-glass:rgba(30,36,46,.66);
    --native-glass-strong:rgba(42,49,61,.84);
    --native-fill:rgba(255,255,255,.08);
    --native-line:rgba(226,232,240,.16);
    --native-shadow:0 22px 60px rgba(0,0,0,.42);
  }
}

html,
body{
  background:
    radial-gradient(circle at 15% -8%,rgba(10,132,255,.22),transparent 26rem),
    radial-gradient(circle at 92% 6%,rgba(52,199,89,.14),transparent 24rem),
    linear-gradient(150deg,var(--native-bg),var(--native-bg2))!important;
  color:var(--native-text)!important;
}

body{
  letter-spacing:0!important;
}

#app.app-shell{
  width:min(620px,100%)!important;
  min-height:100vh;
  padding:calc(12px + var(--safe-top)) calc(14px + var(--safe-right)) calc(106px + var(--safe-bottom)) calc(14px + var(--safe-left))!important;
}

.summary-grid{
  display:none!important;
}

.topbar{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center!important;
  gap:12px!important;
  position:relative!important;
  top:auto!important;
  padding:8px 0 6px!important;
  margin:0 0 12px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

.topbar::before{
  display:none!important;
}

.brand-block .eyebrow{
  display:none!important;
}

.brand-block h1{
  color:var(--native-text)!important;
  font-size:1.34rem!important;
  line-height:1.1!important;
  font-weight:800!important;
}

.lead.small{
  color:var(--native-muted)!important;
  font-size:.9rem!important;
  margin-top:2px!important;
  max-width:none!important;
}

.top-actions{
  display:none!important;
}

#menuBtn,
.icon-btn{
  width:44px!important;
  height:44px!important;
  min-height:44px!important;
  border-radius:999px!important;
  background:var(--native-glass)!important;
  color:var(--native-text)!important;
  border:1px solid var(--native-line)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.08)!important;
  -webkit-backdrop-filter:var(--native-blur)!important;
  backdrop-filter:var(--native-blur)!important;
}

section.view{
  display:none!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

section.view.active{
  display:block!important;
}

.simple-home-head{
  min-height:178px!important;
  padding:22px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  align-items:flex-start!important;
  gap:10px!important;
  margin:0 0 14px!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:30px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 82% 15%,rgba(255,255,255,.34),transparent 9rem),
    linear-gradient(140deg,rgba(9,14,21,.94),rgba(32,75,108,.9))!important;
  box-shadow:0 26px 70px rgba(15,23,42,.22)!important;
}

.simple-home-head::before{
  content:"Duncan Family";
  position:static!important;
  color:rgba(255,255,255,.68)!important;
  font-size:.78rem!important;
  font-weight:750!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

.simple-home-head.section-head h2,
.simple-home-head.section-head h2::after{
  content:none!important;
  color:#ffffff!important;
  font-size:2.25rem!important;
  line-height:1.02!important;
  font-weight:820!important;
  letter-spacing:0!important;
  margin:0!important;
}

.simple-home-head .meta{
  color:rgba(255,255,255,.76)!important;
  font-size:1rem!important;
  line-height:1.35!important;
}

.focus-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
}

.focus-grid .primary-card{
  min-height:112px!important;
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  padding:16px!important;
  position:relative!important;
  border-radius:24px!important;
  background:var(--native-glass)!important;
  border:1px solid var(--native-line)!important;
  box-shadow:var(--native-shadow)!important;
  -webkit-backdrop-filter:var(--native-blur)!important;
  backdrop-filter:var(--native-blur)!important;
}

.focus-grid .primary-card::before{
  position:static!important;
  display:grid!important;
  place-items:center!important;
  width:52px!important;
  height:52px!important;
  border-radius:18px!important;
  background:color-mix(in srgb,var(--family-card,#0a84ff) 18%,transparent)!important;
  color:var(--family-card,#0a84ff)!important;
  font-size:1.4rem!important;
  font-weight:850!important;
  pointer-events:none!important;
}

.focus-grid .primary-card:nth-child(1)::before{content:"+"!important;}
.focus-grid .primary-card:nth-child(2)::before{content:"✓"!important;}
.focus-grid .primary-card:nth-child(3)::before{content:"◷"!important;}
.focus-grid .primary-card:nth-child(4)::before{content:"▦"!important;}

.focus-grid .primary-card>div{
  min-width:0!important;
}

.focus-grid .primary-card h2{
  color:var(--native-text)!important;
  font-size:1.18rem!important;
  font-weight:800!important;
  line-height:1.15!important;
}

.focus-grid .primary-card .meta{
  color:var(--native-muted)!important;
  font-size:.94rem!important;
  line-height:1.25!important;
  margin-top:4px!important;
}

.focus-grid .primary-card strong,
.focus-grid .primary-card .pill{
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border-radius:999px!important;
  background:var(--native-fill)!important;
  color:var(--native-text)!important;
  border:1px solid var(--native-line)!important;
  font-size:1.05rem!important;
  font-weight:820!important;
}

.more-pages-panel{
  margin-top:18px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

.more-pages-panel>summary{
  min-height:42px!important;
  padding:0 4px!important;
  color:var(--native-text)!important;
  font-size:1.28rem!important;
  font-weight:820!important;
}

.more-pages-panel>summary::after{
  content:""!important;
  width:28px!important;
  height:28px!important;
  border-radius:999px!important;
  background:var(--native-fill)!important;
}

.compact-page-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:8px!important;
}

.compact-page-grid .page-card{
  min-height:116px!important;
  padding:14px!important;
  border-radius:22px!important;
  background:var(--native-glass)!important;
  border:1px solid var(--native-line)!important;
  box-shadow:var(--native-shadow)!important;
}

.compact-page-grid .page-card h2{
  color:var(--native-text)!important;
  font-size:1rem!important;
}

.compact-page-grid .page-card .meta,
.meta,
label{
  color:var(--native-muted)!important;
}

section.view:not(#home){
  border-radius:0!important;
}

section.view:not(#home)>.section-head{
  display:none!important;
}

.section-head h2{
  color:var(--native-text)!important;
  font-size:2rem!important;
  line-height:1.05!important;
  font-weight:820!important;
}

.add-panel,
.inner-panel,
.item,
.person,
.event,
.project,
.pantry-card,
.pet-profile-card,
.meal-day,
.calendar-status-card,
.calendar-empty-card,
.recipe-library-section,
.planned-meals-section{
  border-radius:22px!important;
  background:var(--native-glass)!important;
  border:1px solid var(--native-line)!important;
  color:var(--native-text)!important;
  box-shadow:0 12px 35px rgba(15,23,42,.08)!important;
  -webkit-backdrop-filter:var(--native-blur)!important;
  backdrop-filter:var(--native-blur)!important;
}

.add-panel{
  padding:10px 14px!important;
  margin-bottom:12px!important;
}

.add-panel>summary{
  color:var(--native-text)!important;
  font-weight:760!important;
}

.add-panel>summary::after{
  content:"+"!important;
  width:30px!important;
  height:30px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:var(--native-fill)!important;
  color:var(--native-text)!important;
}

.add-panel[open]>summary::after{
  content:"-"!important;
}

input,
select,
textarea,
button{
  border-radius:16px!important;
  letter-spacing:0!important;
}

button[type=submit]{
  background:var(--native-blue)!important;
  border-color:var(--native-blue)!important;
  color:#ffffff!important;
}

.bottom-tabs{
  position:fixed!important;
  z-index:18!important;
  left:calc(10px + var(--safe-left))!important;
  right:calc(10px + var(--safe-right))!important;
  bottom:calc(10px + var(--safe-bottom))!important;
  width:min(600px,calc(100vw - 20px - var(--safe-left) - var(--safe-right)))!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:6px!important;
  padding:8px!important;
  border-radius:28px!important;
  background:color-mix(in srgb,var(--native-glass-strong) 78%,transparent)!important;
  border:1px solid var(--native-line)!important;
  box-shadow:0 18px 50px rgba(15,23,42,.22)!important;
  -webkit-backdrop-filter:var(--native-blur)!important;
  backdrop-filter:var(--native-blur)!important;
}

.bottom-tabs .nav-page{
  min-height:56px!important;
  display:grid!important;
  place-items:center!important;
  gap:2px!important;
  padding:5px 2px!important;
  border-radius:20px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:var(--native-muted)!important;
  font-size:.76rem!important;
  font-weight:760!important;
  text-align:center!important;
}

.bottom-tabs .nav-page .tab-symbol{
  width:24px!important;
  height:24px!important;
  display:grid!important;
  place-items:center!important;
  font-size:1.2rem!important;
  line-height:1!important;
}

.bottom-tabs .nav-page.active{
  background:rgba(10,132,255,.14)!important;
  color:var(--native-blue)!important;
  border:0!important;
}

.bottom-tabs .nav-page.active::before{
  display:none!important;
}

.side-nav{
  border-radius:28px!important;
  background:var(--native-glass-strong)!important;
  border:1px solid var(--native-line)!important;
  -webkit-backdrop-filter:var(--native-blur)!important;
  backdrop-filter:var(--native-blur)!important;
}

.nav-group{
  border-radius:18px!important;
  background:var(--native-fill)!important;
  border-color:var(--native-line)!important;
}

.nav-group .nav-page,
.side-nav-scroll>.nav-page{
  border-radius:14px!important;
  background:transparent!important;
  color:var(--native-text)!important;
}

.nav-group .nav-page.active,
.side-nav-scroll>.nav-page.active{
  background:var(--native-blue)!important;
  color:#ffffff!important;
}

@media (min-width:761px){
  #app.app-shell{
    padding-top:24px!important;
  }

  .focus-grid .primary-card{
    min-height:120px!important;
  }
}

@media (max-width:420px){
  #app.app-shell{
    padding-left:calc(10px + var(--safe-left))!important;
    padding-right:calc(10px + var(--safe-right))!important;
  }

  .simple-home-head{
    min-height:160px!important;
    border-radius:26px!important;
  }

  .simple-home-head.section-head h2,
  .simple-home-head.section-head h2::after{
    font-size:2rem!important;
  }

  .focus-grid .primary-card{
    grid-template-columns:48px minmax(0,1fr) auto!important;
    border-radius:22px!important;
    padding:14px!important;
  }

  .focus-grid .primary-card::before{
    width:48px!important;
    height:48px!important;
    border-radius:16px!important;
  }
}

/* 2026-06-09 family-app5: one coherent native-style product layer. */
:root,
:root[data-theme=light],
:root[data-theme=auto]{
  --product-bg:#f6f7fb;
  --product-bg-soft:#edf2f8;
  --product-text:#111318;
  --product-muted:#687382;
  --product-glass:rgba(255,255,255,.72);
  --product-glass-strong:rgba(255,255,255,.88);
  --product-fill:rgba(255,255,255,.46);
  --product-line:rgba(74,88,110,.18);
  --product-blue:#0a84ff;
  --product-red:#ff3b30;
  --product-shadow:0 14px 40px rgba(18,28,45,.10);
  --product-blur:saturate(180%) blur(26px);
}

:root[data-theme=dark]{
  --product-bg:#070a0f;
  --product-bg-soft:#101722;
  --product-text:#f8fafc;
  --product-muted:#aab6c4;
  --product-glass:rgba(27,34,44,.70);
  --product-glass-strong:rgba(37,45,58,.88);
  --product-fill:rgba(255,255,255,.08);
  --product-line:rgba(226,232,240,.15);
  --product-shadow:0 18px 48px rgba(0,0,0,.34);
}

@media (prefers-color-scheme:dark){
  :root[data-theme=auto],
  :root:not([data-theme]){
    --product-bg:#070a0f;
    --product-bg-soft:#101722;
    --product-text:#f8fafc;
    --product-muted:#aab6c4;
    --product-glass:rgba(27,34,44,.70);
    --product-glass-strong:rgba(37,45,58,.88);
    --product-fill:rgba(255,255,255,.08);
    --product-line:rgba(226,232,240,.15);
    --product-shadow:0 18px 48px rgba(0,0,0,.34);
  }
}

html,
body{
  min-height:100%;
  background:
    radial-gradient(circle at 18% -8%,rgba(10,132,255,.18),transparent 22rem),
    radial-gradient(circle at 86% 0%,rgba(52,199,89,.10),transparent 20rem),
    linear-gradient(160deg,var(--product-bg),var(--product-bg-soft))!important;
  color:var(--product-text)!important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Arial,sans-serif!important;
  letter-spacing:0!important;
}

#app.app-shell{
  width:min(620px,100%)!important;
  min-height:100vh!important;
  padding:calc(18px + var(--safe-top)) calc(18px + var(--safe-right)) calc(108px + var(--safe-bottom)) calc(18px + var(--safe-left))!important;
}

.topbar{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  margin:0 0 18px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

.brand-block h1{
  font-size:1.34rem!important;
  line-height:1.12!important;
  font-weight:780!important;
  letter-spacing:0!important;
}

.lead.small,
.meta,
label{
  color:var(--product-muted)!important;
}

:root[data-view=home] #pageSubtitle{
  display:none!important;
}

.top-actions,
.summary-grid,
section.view:not(#home)>.section-head{
  display:none!important;
}

#menuBtn,
.icon-btn{
  width:48px!important;
  min-width:48px!important;
  height:48px!important;
  min-height:48px!important;
  border-radius:999px!important;
  background:var(--product-glass)!important;
  border:1px solid var(--product-line)!important;
  color:var(--product-text)!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:var(--product-blur)!important;
  backdrop-filter:var(--product-blur)!important;
}

section.view{
  display:none!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

section.view.active{
  display:block!important;
}

.simple-home-head{
  border-radius:28px!important;
  min-height:170px!important;
  margin:0 0 14px!important;
  padding:22px!important;
  border:1px solid rgba(255,255,255,.26)!important;
  background:
    radial-gradient(circle at 84% 15%,rgba(255,255,255,.28),transparent 8rem),
    linear-gradient(140deg,rgba(13,18,28,.96),rgba(35,79,112,.90))!important;
  box-shadow:0 22px 58px rgba(18,28,45,.18)!important;
}

.simple-home-head.section-head h2,
.section-head h2{
  color:var(--product-text)!important;
  font-size:1.9rem!important;
  line-height:1.05!important;
  font-weight:820!important;
}

.simple-home-head.section-head h2,
.simple-home-head .meta{
  color:#fff!important;
}

.simple-home-head .meta{
  opacity:.78!important;
}

.focus-grid,
.check-list,
.hub-list,
.page-list,
.stack{
  display:grid!important;
  gap:12px!important;
}

.focus-grid{
  grid-template-columns:1fr!important;
}

.page-card,
.item,
.person,
.event,
.project,
.pantry-card,
.pet-profile-card,
.inner-panel,
.add-panel,
.calendar-status-card,
.calendar-empty-card,
.recipe-library-section,
.planned-meals-section,
.meal-day{
  border-radius:22px!important;
  background:var(--product-glass)!important;
  border:1px solid var(--product-line)!important;
  color:var(--product-text)!important;
  box-shadow:var(--product-shadow)!important;
  -webkit-backdrop-filter:var(--product-blur)!important;
  backdrop-filter:var(--product-blur)!important;
}

.focus-grid .primary-card{
  min-height:104px!important;
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  padding:16px!important;
}

.focus-grid .primary-card::before{
  display:grid!important;
  place-items:center!important;
  width:52px!important;
  height:52px!important;
  border-radius:17px!important;
  background:color-mix(in srgb,var(--family-card,var(--product-blue)) 16%,transparent)!important;
  color:var(--family-card,var(--product-blue))!important;
}

.focus-grid .primary-card h2,
.title{
  color:var(--product-text)!important;
  font-weight:780!important;
  letter-spacing:0!important;
}

.page-card strong,
.page-card .pill{
  border-radius:999px!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  background:var(--product-fill)!important;
  border:1px solid var(--product-line)!important;
  color:var(--product-text)!important;
  font-size:1rem!important;
  font-weight:760!important;
}

.add-panel{
  padding:6px 12px!important;
  margin:0 0 14px!important;
}

.add-panel>summary{
  min-height:50px!important;
  color:var(--product-text)!important;
  font-size:1rem!important;
  font-weight:760!important;
}

.add-panel>summary::after{
  content:"+"!important;
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border-radius:999px!important;
  background:var(--product-fill)!important;
  border:1px solid var(--product-line)!important;
  color:var(--product-text)!important;
}

.add-panel[open]>summary::after{
  content:"-"!important;
}

input,
select,
textarea,
button{
  border-radius:16px!important;
  letter-spacing:0!important;
}

input,
select,
textarea{
  background:var(--product-glass-strong)!important;
  border:1px solid var(--product-line)!important;
  color:var(--product-text)!important;
  box-shadow:none!important;
}

button[type=submit]{
  background:var(--product-blue)!important;
  border-color:var(--product-blue)!important;
  color:#fff!important;
}

.shopping-row,
.chore-row{
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr) 42px!important;
  align-items:center!important;
  gap:12px!important;
  min-height:74px!important;
  padding:14px!important;
}

.shopping-row.has-photo{
  grid-template-columns:30px 54px minmax(0,1fr) 42px!important;
}

.shopping-row input[type=checkbox],
.chore-row input[type=checkbox]{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:26px!important;
  height:26px!important;
  min-height:26px!important;
  margin:0!important;
  border:2px solid color-mix(in srgb,var(--product-muted) 46%,transparent)!important;
  border-radius:999px!important;
  background:transparent!important;
  display:grid!important;
  place-items:center!important;
}

.shopping-row input[type=checkbox]:checked,
.chore-row input[type=checkbox]:checked{
  background:var(--product-blue)!important;
  border-color:var(--product-blue)!important;
}

.shopping-row input[type=checkbox]:checked::before,
.chore-row input[type=checkbox]:checked::before{
  content:"\2713";
  color:#fff;
  font-size:1rem;
  font-weight:820;
  line-height:1;
}

.shopping-photo-thumb,
.shopping-row .item-photo{
  width:54px!important;
  height:54px!important;
  border-radius:16px!important;
}

.shopping-actions,
.project-actions{
  display:flex!important;
  gap:8px!important;
  justify-content:flex-end!important;
  align-items:center!important;
  flex-wrap:wrap!important;
}

.shopping-row .shopping-actions,
.chore-row .shopping-actions{
  grid-column:auto!important;
  grid-row:auto!important;
  justify-self:end!important;
  align-self:center!important;
}

.icon-action{
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0!important;
  font-size:0!important;
  border-radius:999px!important;
  background:var(--product-fill)!important;
  border:1px solid var(--product-line)!important;
  box-shadow:none!important;
  color:transparent!important;
  overflow:hidden!important;
}

.icon-action::before{
  content:"\00d7";
  color:var(--product-red);
  font-size:1.25rem;
  font-weight:760;
}

.shopping-row .shopping-actions .icon-action,
.chore-row .icon-action,
.item .icon-action,
button.icon-action[data-delete-item],
button.icon-action[data-delete-chore]{
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0!important;
  font-size:0!important;
  color:transparent!important;
}

.bottom-tabs{
  position:fixed!important;
  z-index:18!important;
  left:calc(10px + var(--safe-left))!important;
  right:calc(10px + var(--safe-right))!important;
  bottom:calc(10px + var(--safe-bottom))!important;
  width:min(600px,calc(100vw - 20px - var(--safe-left) - var(--safe-right)))!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:6px!important;
  margin:0 auto!important;
  padding:8px!important;
  border-radius:28px!important;
  background:color-mix(in srgb,var(--product-glass-strong) 86%,transparent)!important;
  border:1px solid var(--product-line)!important;
  box-shadow:0 18px 44px rgba(15,23,42,.20)!important;
  -webkit-backdrop-filter:var(--product-blur)!important;
  backdrop-filter:var(--product-blur)!important;
}

.bottom-tabs .nav-page{
  min-height:58px!important;
  display:grid!important;
  place-items:center!important;
  gap:2px!important;
  padding:6px 2px!important;
  border:0!important;
  border-radius:20px!important;
  background:transparent!important;
  color:var(--product-muted)!important;
  box-shadow:none!important;
  font-size:.75rem!important;
  font-weight:730!important;
  text-align:center!important;
}

.bottom-tabs .nav-page .tab-symbol{
  font-size:0!important;
  width:24px!important;
  height:24px!important;
  display:grid!important;
  place-items:center!important;
}

.bottom-tabs .nav-page .tab-symbol::before{
  font-size:1.12rem!important;
  line-height:1!important;
  color:currentColor!important;
}

.bottom-tabs .nav-page[data-view=shopping] .tab-symbol::before{content:"+";}
.bottom-tabs .nav-page[data-view=chores] .tab-symbol::before{content:"\2713";}
.bottom-tabs .nav-page[data-view=calendar] .tab-symbol::before{content:"31";font-size:.9rem!important;font-weight:820;}
.bottom-tabs .nav-page[data-view=pantry] .tab-symbol::before{content:"\25a6";}
.bottom-tabs .nav-page[data-view=settings] .tab-symbol::before{content:"\2699";}
.bottom-tabs .nav-page[data-view=meals] .tab-symbol::before{content:"M";}
.bottom-tabs .nav-page[data-view=pets] .tab-symbol::before{content:"P";}
.bottom-tabs .nav-page[data-view=notices] .tab-symbol::before{content:"!";}
.bottom-tabs .nav-page[data-view=notifications] .tab-symbol::before{content:"\2022";}
.bottom-tabs .nav-page[data-view=household] .tab-symbol::before{content:"\2302";}
.bottom-tabs .nav-page[data-view=bills] .tab-symbol::before{content:"$";}

.bottom-tabs .nav-page.active{
  background:rgba(10,132,255,.15)!important;
  color:var(--product-blue)!important;
}

#settings.active ~ .bottom-tabs,
#admin.active ~ .bottom-tabs{
  display:none!important;
}

.side-nav{
  border-radius:28px!important;
  background:var(--product-glass-strong)!important;
  border:1px solid var(--product-line)!important;
}

.nav-group{
  border-radius:18px!important;
  background:var(--product-fill)!important;
  border-color:var(--product-line)!important;
}

.nav-group .nav-page,
.side-nav-scroll>.nav-page{
  border-radius:14px!important;
  background:transparent!important;
  color:var(--product-text)!important;
  box-shadow:none!important;
}

.nav-group .nav-page.active,
.side-nav-scroll>.nav-page.active{
  background:var(--product-blue)!important;
  color:#fff!important;
}

@media (max-width:420px){
  #app.app-shell{
    padding-left:calc(12px + var(--safe-left))!important;
    padding-right:calc(12px + var(--safe-right))!important;
  }

  .shopping-row.has-photo{
    grid-template-columns:30px 48px minmax(0,1fr) 40px!important;
  }

  .shopping-photo-thumb,
  .shopping-row .item-photo{
    width:48px!important;
    height:48px!important;
  }
}

/* 2026-06-09 family-app6: reference-inspired usability pass.
   Mealie/KitchenPal patterns: object-first kitchen flows and obvious add/search.
   DAKboard pattern: calm glanceable blocks without duplicate dashboard chrome. */
.calm-summary{
  display:none!important;
}

#app.app-shell{
  max-width:1040px!important;
  padding-bottom:calc(108px + var(--safe-bottom))!important;
}

.topbar{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.brand-block .eyebrow,
#pageSubtitle{
  display:none!important;
}

#pageTitle{
  font-size:1.7rem!important;
  line-height:1.05!important;
}

.top-actions{
  display:flex!important;
  justify-content:flex-end!important;
}

#refreshBtn,
#logoutBtn,
#userBadge{
  display:none!important;
}

.search-input{
  width:min(260px,32vw)!important;
  max-width:none!important;
  min-height:42px!important;
  border-radius:999px!important;
  padding-left:42px!important;
  background:
    linear-gradient(90deg,transparent 0 34px,var(--product-glass-strong) 34px),
    var(--product-glass-strong)!important;
}

.calm-home{
  display:none;
}

.calm-home.active{
  display:grid!important;
  gap:14px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}

.simple-home-head{
  display:grid!important;
  gap:6px!important;
  padding:18px!important;
  border:1px solid var(--product-line)!important;
  border-radius:28px!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--product-blue) 18%,var(--product-glass-strong)),var(--product-glass-strong))!important;
  box-shadow:0 18px 44px rgba(15,23,42,.10)!important;
}

.simple-home-head h2{
  font-size:2rem!important;
  margin:0!important;
  color:var(--product-text)!important;
}

.simple-home-head .meta{
  font-size:1rem!important;
  color:var(--product-muted)!important;
}

.simple-home-head .eyebrow{
  color:var(--product-blue)!important;
}

.focus-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}

.page-card{
  position:relative!important;
  min-height:132px!important;
  border-radius:26px!important;
  padding:16px!important;
  overflow:hidden!important;
  background:var(--product-glass-strong)!important;
  border:1px solid var(--product-line)!important;
  box-shadow:0 12px 34px rgba(15,23,42,.08)!important;
}

.page-card::before{
  content:attr(data-view);
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:var(--product-fill);
  color:var(--product-blue);
  font-size:0;
  margin-bottom:10px;
}

.page-card[data-view=shopping]::before{content:"+";font-size:1.35rem;font-weight:850;}
.page-card[data-view=chores]::before{content:"\2713";font-size:1.25rem;font-weight:850;}
.page-card[data-view=calendar]::before{content:"31";font-size:.9rem;font-weight:850;}
.page-card[data-view=pantry]::before{content:"\25a6";font-size:1.1rem;font-weight:850;}
.page-card[data-view=meals]::before{content:"M";font-size:1rem;font-weight:850;}
.page-card[data-view=pets]::before{content:"P";font-size:1rem;font-weight:850;}
.page-card[data-view=household]::before{content:"H";font-size:1rem;font-weight:850;}

.page-card h2{
  font-size:1.05rem!important;
  margin:0 0 3px!important;
}

.page-card .meta{
  font-size:.88rem!important;
}

.page-card strong,
.page-card .pill{
  position:absolute!important;
  right:16px!important;
  top:16px!important;
  min-width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:var(--product-fill)!important;
  color:var(--product-text)!important;
  font-size:1rem!important;
  font-weight:850!important;
  border:1px solid var(--product-line)!important;
}

.more-pages-panel{
  border-radius:24px!important;
  background:transparent!important;
  border:0!important;
  padding:0!important;
  box-shadow:none!important;
}

.more-pages-panel>summary{
  border:1px solid var(--product-line)!important;
  border-radius:20px!important;
  background:var(--product-glass-strong)!important;
  padding:0 14px!important;
}

.compact-page-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:10px!important;
}

.compact-page-grid .page-card{
  min-height:112px!important;
}

.view:not(.calm-home){
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}

.view>.section-head,
.hub-view>.section-head{
  display:grid!important;
  gap:5px!important;
  padding:0 2px 8px!important;
  border:0!important;
}

.view>.section-head h2,
.hub-view>.section-head h2{
  font-size:1.55rem!important;
}

.add-panel{
  border-radius:24px!important;
  padding:8px!important;
  background:var(--product-glass-strong)!important;
  border:1px solid var(--product-line)!important;
  box-shadow:0 12px 30px rgba(15,23,42,.07)!important;
}

.add-panel[open]>summary{
  border-bottom:1px solid var(--product-line)!important;
  margin-bottom:10px!important;
  padding-bottom:8px!important;
}

.task-form,
.simple-hub-form,
.stack-form{
  gap:10px!important;
}

.simple-hub-form,
.add-panel .task-form,
.add-panel form{
  background:transparent!important;
  border:0!important;
  padding:2px!important;
  box-shadow:none!important;
}

.recipe-import-panel{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:end!important;
  padding:12px!important;
  border-radius:20px!important;
  background:var(--product-fill)!important;
  border:1px solid var(--product-line)!important;
}

.recipe-import-panel .meta,
.recipe-import-panel [data-recipe-import-result]{
  grid-column:1/-1!important;
}

.pantry-recipe-conversion-fields,
.recipe-builder{
  padding:12px!important;
  border:1px solid var(--product-line)!important;
  border-radius:18px!important;
  background:var(--product-fill)!important;
}

.pantry-guided:not(.compact-edit) .pantry-recipe-conversion-fields{
  display:none!important;
}

.check-list,
.hub-list,
.calendar-event-list,
.project-category-list{
  gap:10px!important;
  margin-top:12px!important;
}

.person,
.item,
.event,
.project,
.pantry-card,
.meal-day,
.recipe-library-section,
.planned-meals-section{
  border-radius:22px!important;
  background:var(--product-glass-strong)!important;
  border:1px solid var(--product-line)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.06)!important;
}

.project-actions button:not([data-open-recipe]):not([data-plan-recipe]):not([data-cook-meal]):not([data-edit-pantry]):not([data-edit-pet]){
  min-width:40px!important;
  width:40px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0!important;
  font-size:0!important;
  border-radius:999px!important;
}

.project-actions button[data-delete-hub]::before,
.project-actions button[data-delete-project]::before,
.project-actions button[data-delete-category]::before{
  content:"\00d7";
  font-size:1.25rem;
  color:var(--product-red);
}

.project-actions button[data-complete-hub]::before,
.project-actions button[data-mark-project-done]::before{
  content:"\2713";
  font-size:1rem;
  color:var(--product-blue);
}

.project-actions button[data-open-recipe],
.project-actions button[data-plan-recipe],
.project-actions button[data-cook-meal],
.project-actions button[data-edit-pantry],
.project-actions button[data-edit-pet]{
  border-radius:999px!important;
  min-height:40px!important;
  padding:0 14px!important;
}

.pantry-summary{
  grid-template-columns:minmax(0,1fr) auto!important;
}

.pantry-summary .qty-stepper{
  grid-column:1/-1!important;
  width:100%!important;
  justify-content:space-between!important;
  border-radius:18px!important;
}

.meal-grid{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(96px,1fr))!important;
  overflow-x:auto!important;
  padding-bottom:4px!important;
}

.meal-day{
  min-height:108px!important;
  padding:12px!important;
}

@media (max-width:760px){
  #app.app-shell{
    padding-top:calc(10px + var(--safe-top))!important;
  }

  .topbar{
    grid-template-columns:auto minmax(0,1fr)!important;
  }

  .top-actions{
    display:none!important;
  }

  #pageTitle{
    font-size:1.45rem!important;
  }

  .simple-home-head{
    border-radius:24px!important;
    padding:16px!important;
  }

  .simple-home-head h2{
    font-size:1.7rem!important;
  }

  .focus-grid,
  .compact-page-grid{
    grid-template-columns:1fr!important;
  }

  .page-card{
    min-height:118px!important;
  }

  .recipe-import-panel{
    grid-template-columns:1fr!important;
  }

  .shopping-row,
  .chore-row{
    min-height:70px!important;
    border-radius:22px!important;
  }

  .bottom-tabs{
    border-radius:26px!important;
  }
}

.calm-home .simple-home-head.section-head h2,
.calm-home .simple-home-head.section-head .meta{
  color:var(--product-text)!important;
}

.calm-home .simple-home-head.section-head .meta{
  opacity:1!important;
  color:var(--product-muted)!important;
}

.calm-home .simple-home-head.section-head::before{
  color:var(--product-blue)!important;
}

#packages,
#vehicles,
#bills,
#smart,
#inventory,
[data-view="packages"],
[data-view="vehicles"],
[data-view="bills"],
[data-view="smart"],
[data-view="inventory"]{
  display:none!important;
}

/* 2026-06-09 family-app8: fresher mobile-app vibe without bringing dashboard clutter back. */
:root{
  --product-bg:#f8fbff;
  --product-bg-soft:#eef7ff;
  --product-text:#111318;
  --product-muted:#647081;
  --product-line:rgba(21,31,45,.12);
  --product-glass:#ffffff;
  --product-glass-strong:#ffffff;
  --product-fill:#f2f6fb;
  --product-blue:#1463ff;
  --vibe-pink:#ff4fa3;
  --vibe-lime:#76e041;
  --vibe-orange:#ffb000;
  --vibe-cyan:#00c2ff;
  --vibe-violet:#8b5cf6;
}

:root[data-theme=dark]{
  --product-bg:#080a12;
  --product-bg-soft:#121827;
  --product-text:#f7f8ff;
  --product-muted:#aab5c7;
  --product-line:rgba(255,255,255,.15);
  --product-glass:#141a27;
  --product-glass-strong:#181f2e;
  --product-fill:#20283a;
  --product-blue:#4f8cff;
}

@media (prefers-color-scheme:dark){
  :root:not([data-theme=light]){
    --product-bg:#080a12;
    --product-bg-soft:#121827;
    --product-text:#f7f8ff;
    --product-muted:#aab5c7;
    --product-line:rgba(255,255,255,.15);
    --product-glass:#141a27;
    --product-glass-strong:#181f2e;
    --product-fill:#20283a;
    --product-blue:#4f8cff;
  }
}

body{
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--vibe-cyan) 18%,transparent),transparent 32%),
    linear-gradient(315deg,color-mix(in srgb,var(--vibe-lime) 14%,transparent),transparent 30%),
    linear-gradient(180deg,var(--product-bg),var(--product-bg-soft))!important;
}

.topbar{
  margin-bottom:16px!important;
}

#menuBtn,
#closeMenuBtn{
  border-radius:22px!important;
  background:var(--product-text)!important;
  color:var(--product-glass-strong)!important;
  border:0!important;
  box-shadow:0 10px 26px rgba(17,19,24,.18)!important;
}

#pageTitle{
  font-weight:900!important;
  letter-spacing:0!important;
}

.simple-home-head{
  min-height:214px!important;
  align-content:end!important;
  border:0!important;
  color:#fff!important;
  background:
    linear-gradient(135deg,rgba(17,19,24,.92),rgba(20,99,255,.82) 46%,rgba(255,79,163,.82))!important;
  box-shadow:0 18px 42px rgba(20,99,255,.24)!important;
}

.calm-home .simple-home-head.section-head::before{
  content:"Duncan drop-in";
  width:max-content;
  min-height:30px;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:5px 10px;
  background:rgba(255,255,255,.18);
  color:#fff!important;
  font-size:.8rem;
  font-weight:850;
  letter-spacing:0;
  text-transform:none;
}

.calm-home .simple-home-head.section-head h2,
.calm-home .simple-home-head.section-head .meta{
  color:#fff!important;
}

.calm-home .simple-home-head.section-head h2{
  font-size:2.18rem!important;
  line-height:.98!important;
  letter-spacing:0!important;
}

.calm-home .simple-home-head.section-head .meta{
  opacity:.78!important;
}

.page-card,
.person,
.item,
.event,
.pantry-card,
.meal-day,
.add-panel,
.more-pages-panel>summary{
  border:0!important;
  box-shadow:0 12px 30px rgba(17,24,39,.10)!important;
}

.page-card{
  min-height:124px!important;
  border-radius:24px!important;
  background:var(--product-glass-strong)!important;
}

.page-card::before{
  border-radius:18px!important;
  color:#111318!important;
  box-shadow:none!important;
}

.page-card[data-view=shopping]::before{background:color-mix(in srgb,var(--vibe-cyan) 28%,#fff)!important;}
.page-card[data-view=chores]::before{background:color-mix(in srgb,var(--vibe-lime) 34%,#fff)!important;}
.page-card[data-view=calendar]::before{background:color-mix(in srgb,var(--vibe-orange) 32%,#fff)!important;}
.page-card[data-view=pantry]::before{background:color-mix(in srgb,var(--vibe-pink) 26%,#fff)!important;}
.page-card[data-view=meals]::before{background:color-mix(in srgb,var(--vibe-orange) 24%,#fff)!important;}
.page-card[data-view=pets]::before{background:color-mix(in srgb,var(--vibe-violet) 22%,#fff)!important;}
.page-card[data-view=household]::before{background:color-mix(in srgb,var(--vibe-cyan) 22%,#fff)!important;}
.page-card[data-view=maintenance]::before{background:color-mix(in srgb,var(--vibe-lime) 22%,#fff)!important;}
.page-card[data-view=notices]::before{background:color-mix(in srgb,var(--vibe-pink) 20%,#fff)!important;}

.page-card h2,
.title{
  font-weight:900!important;
  letter-spacing:0!important;
}

.page-card strong,
.page-card .pill{
  background:#111318!important;
  color:#fff!important;
  border:0!important;
}

.add-panel{
  background:var(--product-glass-strong)!important;
  border-radius:24px!important;
}

.add-panel>summary{
  font-weight:900!important;
  letter-spacing:0!important;
}

.add-panel>summary::after{
  background:#111318!important;
  color:#fff!important;
  border:0!important;
}

button[type=submit]{
  background:linear-gradient(135deg,var(--product-blue),var(--vibe-pink))!important;
  border:0!important;
  box-shadow:0 12px 24px color-mix(in srgb,var(--product-blue) 24%,transparent)!important;
}

input,
select,
textarea{
  border:2px solid transparent!important;
  background:var(--product-fill)!important;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--product-blue)!important;
}

.shopping-row,
.chore-row,
.pantry-row>summary{
  border-radius:24px!important;
}

.shopping-row input[type=checkbox],
.chore-row input[type=checkbox]{
  border-width:3px!important;
}

.icon-action,
.project-actions button[data-delete-hub],
.project-actions button[data-delete-project],
.project-actions button[data-delete-category]{
  background:color-mix(in srgb,var(--vibe-pink) 14%,var(--product-fill))!important;
}

.bottom-tabs{
  border:0!important;
  background:color-mix(in srgb,var(--product-glass-strong) 94%,transparent)!important;
  box-shadow:0 18px 46px rgba(17,24,39,.18)!important;
}

.bottom-tabs .nav-page{
  border-radius:22px!important;
  font-weight:850!important;
}

.bottom-tabs .nav-page.active{
  background:#111318!important;
  color:#fff!important;
}

.side-nav{
  border:0!important;
  background:var(--product-glass-strong)!important;
}

.nav-group{
  background:var(--product-fill)!important;
  border:0!important;
}

.nav-group .nav-page,
.side-nav-scroll>.nav-page{
  border:0!important;
}

.nav-group .nav-page.active,
.side-nav-scroll>.nav-page.active{
  background:#111318!important;
  color:#fff!important;
}

@media (max-width:760px){
  .simple-home-head{
    min-height:198px!important;
  }

  .calm-home .simple-home-head.section-head h2{
    font-size:2rem!important;
  }
}

/* 2026-06-09 family-app9: app-first Today surface, not a dashboard launcher. */
body{
  background:#f7f7f9!important;
}

.calm-summary,
.today-home .focus-grid,
.today-home .more-pages-panel{
  display:none!important;
}

#home.today-home{
  max-width:520px;
  margin:0 auto;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

.today-home .simple-home-head{
  min-height:184px!important;
  margin:0 0 14px!important;
  padding:22px!important;
  border-radius:34px!important;
  align-content:end!important;
  background:#cfe9ff!important;
  color:#0b0c0f!important;
  box-shadow:none!important;
  overflow:hidden;
}

.today-home .simple-home-head::before{
  content:"Today"!important;
  background:#fff!important;
  color:#101114!important;
  border-radius:6px!important;
  padding:3px 7px!important;
  width:max-content!important;
  min-height:0!important;
  font-size:.92rem!important;
  font-weight:950!important;
  line-height:1.05!important;
  box-shadow:0 5px 14px rgba(8,16,24,.08)!important;
}

.today-home .simple-home-head h2{
  max-width:280px!important;
  margin-top:14px!important;
  color:#050608!important;
  font-size:2.2rem!important;
  line-height:1.03!important;
  letter-spacing:0!important;
}

.today-home .simple-home-head .meta{
  max-width:280px!important;
  margin-top:8px!important;
  color:rgba(5,6,8,.64)!important;
  font-size:1rem!important;
  font-weight:750!important;
}

.calm-home.today-home .simple-home-head.section-head h2,
.calm-home.today-home .simple-home-head.section-head .meta{
  color:#050608!important;
}

.calm-home.today-home .simple-home-head.section-head .meta{
  color:rgba(5,6,8,.64)!important;
  opacity:1!important;
}

.today-home-shell{
  display:grid;
  gap:14px;
  padding-bottom:156px;
}

.today-quick-actions{
  display:flex;
  gap:9px;
  overflow-x:auto;
  padding:1px 2px 3px;
  scrollbar-width:none;
}

.today-quick-actions::-webkit-scrollbar{
  display:none;
}

.quick-chip{
  flex:0 0 auto;
  min-height:39px!important;
  padding:0 15px!important;
  border:0!important;
  border-radius:999px!important;
  background:#101114!important;
  color:#fff!important;
  box-shadow:none!important;
  font-weight:900!important;
}

.quick-chip:nth-child(2){
  background:#fff!important;
  color:#111318!important;
}

.quick-chip:nth-child(3){
  background:#f7d7e9!important;
  color:#111318!important;
}

.quick-chip:nth-child(4){
  background:#d9f7c7!important;
  color:#111318!important;
}

.today-feed-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:2px 2px 0;
}

.today-feed-head h2{
  font-size:1.08rem!important;
  font-weight:950!important;
  letter-spacing:0!important;
}

.today-feed-head span{
  color:#7a7f89;
  font-size:.88rem;
  font-weight:850;
}

.today-feed{
  display:grid;
  gap:10px;
}

.today-card{
  display:grid;
  grid-template-columns:14px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:86px;
  padding:14px 15px!important;
  border:0!important;
  border-radius:24px!important;
  background:#fff!important;
  color:#101114!important;
  box-shadow:none!important;
  cursor:pointer;
}

.today-card .today-dot{
  width:12px;
  height:42px;
  border-radius:999px;
  background:#1e88ff;
}

.today-card p{
  color:#7a7f89;
  font-size:.78rem;
  font-weight:950;
  text-transform:none;
  letter-spacing:0;
}

.today-card h3{
  margin:1px 0 2px;
  color:#101114;
  font-size:1.08rem;
  font-weight:950;
  letter-spacing:0;
  line-height:1.1;
}

.today-card small{
  display:block;
  color:#777e89;
  font-size:.86rem;
  font-weight:700;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.today-card b{
  border-radius:999px;
  padding:7px 10px;
  background:#f3f4f6;
  color:#101114;
  font-size:.78rem;
  font-weight:950;
  white-space:nowrap;
}

.today-card.cyan .today-dot{background:#43c7ff;}
.today-card.orange .today-dot{background:#ffb447;}
.today-card.lime .today-dot{background:#8ce95c;}
.today-card.pink .today-dot{background:#ff78b8;}
.today-card.violet .today-dot{background:#9b7cff;}
.today-card.blue .today-dot{background:#2c7dff;}

.topbar{
  background:rgba(247,247,249,.92)!important;
  box-shadow:none!important;
}

@media (max-width:760px){
  #app.app-shell{
    padding-left:calc(18px + var(--safe-left))!important;
    padding-right:calc(18px + var(--safe-right))!important;
  }

  .top-actions{
    display:none!important;
  }

  .brand-block .eyebrow,
  #pageSubtitle{
    display:none!important;
  }

  .topbar{
    position:sticky!important;
    top:0!important;
    padding:10px 0 12px!important;
    border-bottom:0!important;
  }

  #pageTitle{
    font-size:1.28rem!important;
    font-weight:950!important;
  }

  #menuBtn{
    width:48px!important;
    min-height:48px!important;
    background:#fff!important;
    color:#101114!important;
    border-radius:24px!important;
    box-shadow:none!important;
  }

  .today-home .simple-home-head{
    min-height:174px!important;
    border-radius:32px!important;
  }

  .today-home .simple-home-head h2{
    font-size:2.02rem!important;
  }

  .today-card{
    min-height:82px;
    border-radius:23px!important;
  }
}

/* 2026-06-09 family-app10: carry the native app-card language into core screens. */
#shopping.view,
#chores.view,
#calendar.view,
#pantry.view,
#meals.view,
#pets.view,
#notices.view,
#notifications.view,
#maintenance.view,
#household.view{
  max-width:560px;
  margin:0 auto;
  padding:0 0 156px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

#shopping>.section-head,
#chores>.section-head,
#calendar>.section-head,
#pantry>.section-head,
#meals>.section-head,
#pets>.section-head,
#notices>.section-head,
#notifications>.section-head,
#maintenance>.section-head,
#household>.section-head{
  min-height:132px;
  display:grid!important;
  align-content:end;
  gap:8px;
  margin:0 0 14px!important;
  padding:18px!important;
  border:0!important;
  border-radius:30px!important;
  background:#fff!important;
  box-shadow:none!important;
}

section#shopping.view>.section-head,
section#chores.view>.section-head,
section#calendar.view>.section-head,
section#pantry.view>.section-head,
section#meals.view>.section-head,
section#pets.view>.section-head,
section#notices.view>.section-head,
section#notifications.view>.section-head,
section#maintenance.view>.section-head,
section#household.view>.section-head{
  display:grid!important;
}

#shopping>.section-head::before,
#chores>.section-head::before,
#calendar>.section-head::before,
#pantry>.section-head::before,
#meals>.section-head::before,
#pets>.section-head::before,
#notices>.section-head::before,
#notifications>.section-head::before,
#maintenance>.section-head::before,
#household>.section-head::before{
  width:max-content;
  padding:3px 7px;
  border-radius:6px;
  background:#fff;
  color:#101114;
  font-size:.86rem;
  font-weight:950;
  line-height:1.05;
  box-shadow:0 5px 14px rgba(8,16,24,.08);
}

#shopping>.section-head{background:#cfe9ff!important;}
#shopping>.section-head::before{content:"Shared Lists";}
#chores>.section-head{background:#dff8cf!important;}
#chores>.section-head::before{content:"Shared Tasks";}
#calendar>.section-head{background:#ffe2b5!important;}
#calendar>.section-head::before{content:"Shared Calendar";}
#pantry>.section-head{background:#ffd7e9!important;}
#pantry>.section-head::before{content:"Pantry Check";}
#meals>.section-head{background:#ffd8ea!important;}
#meals>.section-head::before{content:"Meal Planner";}
#pets>.section-head{background:#e6dcff!important;}
#pets>.section-head::before{content:"Pet Care";}
#notices>.section-head{background:#dcecff!important;}
#notices>.section-head::before{content:"Daily Digest";}
#notifications>.section-head{background:#f0e5ff!important;}
#notifications>.section-head::before{content:"Reminders";}
#maintenance>.section-head{background:#e2f6ef!important;}
#maintenance>.section-head::before{content:"Home Care";}
#household>.section-head{background:#d8efff!important;}
#household>.section-head::before{content:"Projects";}

#shopping>.section-head h2,
#chores>.section-head h2,
#calendar>.section-head h2,
#pantry>.section-head h2,
#meals>.section-head h2,
#pets>.section-head h2,
#notices>.section-head h2,
#notifications>.section-head h2,
#maintenance>.section-head h2,
#household>.section-head h2{
  max-width:340px;
  color:#050608!important;
  font-size:2rem!important;
  line-height:1.02!important;
  font-weight:950!important;
  letter-spacing:0!important;
}

#shopping>.section-head .meta,
#chores>.section-head .meta,
#calendar>.section-head .meta,
#pantry>.section-head .meta,
#meals>.section-head .meta,
#pets>.section-head .meta,
#notices>.section-head .meta,
#notifications>.section-head .meta,
#maintenance>.section-head .meta,
#household>.section-head .meta{
  max-width:340px;
  color:rgba(5,6,8,.62)!important;
  font-size:.98rem!important;
  font-weight:750!important;
}

#shopping .add-panel,
#chores .add-panel,
#pantry .add-panel,
#meals .add-panel,
#pets .add-panel,
#notices .add-panel,
#notifications .add-panel,
#maintenance .add-panel,
#household .add-panel{
  margin:0 0 12px!important;
  padding:7px 10px!important;
  border:0!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:none!important;
}

#shopping .add-panel>summary,
#chores .add-panel>summary,
#pantry .add-panel>summary,
#meals .add-panel>summary,
#pets .add-panel>summary,
#notices .add-panel>summary,
#notifications .add-panel>summary,
#maintenance .add-panel>summary,
#household .add-panel>summary{
  min-height:48px!important;
}

#shopping .item,
#chores .item,
#calendar .event,
#pantry .pantry-row,
#meals .person,
#pets .person,
#pets .pet-profile-card,
#notices .person,
#notifications .person,
#maintenance .person,
#household .project,
#household .inner-panel,
#household .project-summary{
  border:0!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:none!important;
}

#calendarStatusPanel{
  margin-bottom:12px;
}

#calendar .calendar-status-card,
#calendar .calendar-empty-card,
#pantry .pantry-details,
#meals .meal-day,
#meals .recipe-library-section,
#meals .planned-meals-section{
  border:0!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:none!important;
}

#meals .meal-grid{
  grid-template-columns:1fr!important;
}

#meals .meal-day{
  padding:14px!important;
}

#meals .meal-chip{
  border-radius:18px!important;
  background:#f6f7fa!important;
}

#shoppingList,
#choreList,
#calendarEvents,
#pantryList,
#mealsList{
  gap:10px!important;
}

@media (max-width:760px){
  #shopping>.section-head,
  #chores>.section-head,
  #calendar>.section-head,
  #pantry>.section-head,
  #meals>.section-head,
  #pets>.section-head,
  #notices>.section-head,
  #notifications>.section-head,
  #maintenance>.section-head,
  #household>.section-head{
    min-height:122px!important;
    border-radius:30px!important;
  }

  #shopping>.section-head h2,
  #chores>.section-head h2,
  #calendar>.section-head h2,
  #pantry>.section-head h2,
  #meals>.section-head h2,
  #pets>.section-head h2,
  #notices>.section-head h2,
  #notifications>.section-head h2,
  #maintenance>.section-head h2,
  #household>.section-head h2{
    font-size:1.78rem!important;
  }
}

/* 2026-06-09 family-app11: meal planner should feel like a planner, not a recipe database first. */
.meal-planner-app{
  display:grid;
  gap:10px;
  margin:0 0 14px;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.meal-planner-hero{
  display:grid;
  gap:14px;
  padding:14px!important;
  border-radius:26px!important;
  background:#fff!important;
}

.meal-planner-tabs{
  display:flex;
  gap:8px;
}

.meal-planner-tabs span{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  background:#101114;
  color:#fff;
  font-weight:900;
  font-size:.82rem;
}

.meal-planner-tabs span+span{
  background:#f3f4f6;
  color:#687081;
}

.meal-week-title{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
  gap:8px;
}

.meal-week-title button{
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:#101114!important;
  color:#fff!important;
  font-weight:950!important;
}

.meal-week-title strong{
  text-align:center;
  font-size:1.08rem;
  font-weight:950;
}

.meal-day-list{
  display:grid;
  gap:8px;
}

.meal-plan-row{
  display:grid;
  gap:8px;
  padding:13px 14px!important;
  border:0!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:none!important;
}

.meal-plan-row-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.meal-plan-row-head div{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
}

.meal-plan-row-head strong{
  color:#101114;
  font-weight:950;
}

.meal-plan-row-head span{
  color:#6b7280;
  font-size:.78rem;
  font-weight:900;
}

.meal-plan-add{
  min-width:34px!important;
  min-height:34px!important;
  width:34px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:#edf4ff!important;
  color:#1463ff!important;
  font-weight:950!important;
  box-shadow:none!important;
}

.meal-plan-chip{
  display:grid;
  grid-template-columns:70px minmax(0,1fr);
  gap:9px;
  align-items:center;
  padding:10px 11px;
  border-radius:18px;
  background:#f8f8fb;
  border-left:4px solid #1463ff;
}

.meal-plan-chip small{
  color:#6b7280;
  font-size:.76rem;
  font-weight:850;
}

.meal-plan-chip b{
  color:#101114;
  font-size:.98rem;
  font-weight:900;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#meals .planned-meals-section{
  display:none!important;
}

#meals .recipe-library-section{
  padding:14px!important;
}

/* 2026-06-09 family-app12: lightweight Ask Family entry point on Today. */
.today-ask-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) 44px;
  gap:8px;
  align-items:end;
  padding:12px!important;
  border-radius:24px!important;
  background:#fff!important;
}

.today-ask-form label{
  gap:6px;
  color:#7b8491!important;
  font-size:.82rem;
  font-weight:950;
}

.today-ask-form label span{
  color:#101114;
}

.today-ask-form input{
  min-height:44px!important;
  border:0!important;
  border-radius:18px!important;
  background:#f5f6f9!important;
  color:#101114!important;
  box-shadow:none!important;
}

.today-ask-form button{
  width:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:#101114!important;
  color:#fff!important;
  font-weight:950!important;
  box-shadow:none!important;
}

/* 2026-06-09 family-app13: Pets page as pet-health app cards. */
.pet-health-app{
  display:grid;
  gap:10px;
  margin:0 0 14px;
  padding:14px!important;
  border:0!important;
  border-radius:28px!important;
  background:#fff!important;
  box-shadow:none!important;
}

.pet-health-tabs{
  display:flex;
  gap:7px;
  overflow-x:auto;
  scrollbar-width:none;
}

.pet-health-tabs::-webkit-scrollbar{
  display:none;
}

.pet-health-tabs span{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  background:#f3f4f6;
  color:#8b93a1;
  font-size:.78rem;
  font-weight:900;
}

.pet-health-tabs .active{
  background:#101114;
  color:#fff;
}

.pet-health-hero{
  border-radius:22px;
  overflow:hidden;
  background:#f4f6f8;
}

.pet-health-hero .hub-attachment,
.pet-health-hero .item-photo{
  width:100%!important;
  height:190px!important;
  margin:0!important;
  border:0!important;
  border-radius:22px!important;
}

.pet-health-hero img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.pet-health-hero .pet-avatar-placeholder{
  width:100%!important;
  height:190px!important;
  border:0!important;
  border-radius:22px!important;
}

.pet-health-tiles{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.pet-health-tile{
  min-height:72px;
  display:grid;
  align-content:space-between;
  padding:10px!important;
  border:0!important;
  border-radius:16px!important;
  box-shadow:none!important;
}

.pet-health-tile strong{
  color:#101114;
  font-size:.9rem;
  font-weight:950;
}

.pet-health-tile span{
  width:max-content;
  min-width:24px;
  border-radius:7px;
  padding:2px 6px;
  background:rgba(255,255,255,.5);
  color:#6b7280;
  font-weight:950;
  font-size:.78rem;
}

.pet-health-tile.pink{background:#f8b8d1!important;}
.pet-health-tile.purple{background:#c8c5f2!important;}
.pet-health-tile.violet{background:#e0b6ec!important;}
.pet-health-tile.mint{background:#aee8d6!important;}
.pet-health-tile.yellow{background:#f5ef8d!important;}
.pet-health-tile.rose{background:#ffc4dd!important;}

.pet-profile-secondary{
  display:none!important;
}

/* 2026-06-09 family-app14: native app lists for tasks, calendar, notes, upkeep, and projects. */
.native-list-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:2px 2px 8px;
}

.native-list-head h3{
  margin:0!important;
  color:#101114!important;
  font-size:.9rem!important;
  font-weight:950!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

.native-list-head span{
  min-width:28px;
  border-radius:999px;
  padding:4px 8px;
  background:#fff;
  color:#6f7784;
  font-size:.78rem;
  font-weight:950;
  text-align:center;
}

.chore-board,
.calendar-timeline,
.project-card-list{
  display:grid;
  gap:12px;
}

.chore-bucket,
.calendar-day-group,
.app-project-category{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.app-task-row{
  grid-template-columns:auto minmax(0,1fr) auto!important;
  min-height:70px;
  margin-bottom:8px;
  padding:12px 13px!important;
}

.app-task-row input[type=checkbox]{
  width:28px!important;
  height:28px!important;
  min-height:28px!important;
  border-radius:999px;
}

.app-row-main{
  min-width:0;
  display:grid;
  gap:3px;
}

.app-task-row .title,
.calendar-app-event .title,
.native-hub-card .title,
.app-project-card .title{
  color:#101114!important;
  font-size:1rem;
  font-weight:950!important;
  letter-spacing:0!important;
  line-height:1.15;
}

.app-task-row.overdue{
  background:#ffe1df!important;
}

.app-task-row.today{
  background:#fff!important;
}

.app-task-row.tomorrow{
  background:#eef8ff!important;
}

.app-task-row.upcoming,
.app-task-row.anytime{
  background:#f6f7fa!important;
}

.calendar-app-event{
  display:grid!important;
  grid-template-columns:76px minmax(0,1fr)!important;
  gap:10px!important;
  min-height:76px;
  margin-bottom:8px;
  padding:12px 13px!important;
  border:0!important;
  border-left:0!important;
  border-radius:24px!important;
  background:#fff!important;
  position:relative;
  overflow:hidden;
}

.calendar-app-event::before{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:6px;
  border-radius:999px;
  background:#ffb447;
}

.calendar-time{
  align-self:center;
  justify-self:center;
  min-width:58px;
  padding:7px 8px;
  border-radius:14px;
  background:#f4f6f9;
  color:#101114;
  font-size:.82rem;
  font-weight:950;
  text-align:center;
}

.native-hub-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:10px!important;
  min-height:82px;
  padding:14px!important;
  background:#fff!important;
}

.native-hub-card.has-photo{
  grid-template-columns:82px minmax(0,1fr) auto!important;
}

.native-hub-card.has-photo .item-photo{
  width:82px!important;
  height:82px!important;
  border-radius:18px!important;
}

.native-hub-card.note{
  background:#dcecff!important;
}

.native-hub-card.homecare{
  background:#e2f6ef!important;
}

.native-hub-card.hot{
  background:#ffe1df!important;
}

.native-card-label{
  width:max-content;
  border-radius:999px;
  padding:4px 8px;
  background:rgba(255,255,255,.72);
  color:#6f7784;
  font-size:.74rem;
  font-weight:950;
}

.native-card-detail{
  margin-top:5px;
  color:#4f5866;
  font-size:.9rem;
  line-height:1.25;
}

.native-empty-card,
#noticesList>.empty,
#maintenanceList>.empty,
#choreList>.empty,
#calendarEvents>.empty,
#projectCategoryList>.empty{
  display:grid;
  gap:5px;
  min-height:84px;
  align-content:center;
  padding:15px!important;
  border:0!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:none!important;
}

.native-empty-card strong{
  color:#101114;
  font-size:1rem;
  font-weight:950;
}

#household>.settings-grid{
  grid-template-columns:1fr!important;
  gap:10px!important;
  margin-bottom:12px!important;
}

#household>.settings-grid>.inner-panel{
  padding:7px 10px!important;
  border:0!important;
  border-radius:24px!important;
  background:#fff!important;
}

#household>.settings-grid>.inner-panel>h2{
  display:none!important;
}

#household .project-summary{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0 0 12px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}

#household .project-summary strong,
#household .project-summary span{
  display:block;
  min-width:0;
  border-radius:18px;
  background:#fff;
  color:#101114!important;
  text-align:center;
}

#household .project-summary strong{
  padding:10px 8px 2px;
  font-size:1rem!important;
  font-weight:950!important;
}

#household .project-summary span{
  margin-top:-8px;
  padding:0 8px 10px;
  color:#7b8491!important;
  font-size:.76rem;
  font-weight:850;
}

.app-project-card{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  padding:14px!important;
  border:0!important;
  border-radius:24px!important;
  background:#fff!important;
}

.app-project-card.hot{
  background:#ffe1df!important;
}

.app-project-card.active{
  background:#d8efff!important;
}

.app-project-card.done{
  background:#e5f7dd!important;
}

.project-progress{
  width:100%;
  height:10px;
  overflow:hidden;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.62);
}

.project-progress::-webkit-progress-bar{
  background:rgba(255,255,255,.62);
  border-radius:999px;
}

.project-progress::-webkit-progress-value{
  background:#101114;
  border-radius:999px;
}

.project-progress::-moz-progress-bar{
  background:#101114;
  border-radius:999px;
}

.project-card-top,
.project-money-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.project-card-top span,
.project-card-top b,
.project-money-strip span{
  border-radius:999px;
  padding:5px 8px;
  background:rgba(255,255,255,.68);
  color:#6f7784;
  font-size:.74rem;
  font-weight:950;
  text-transform:none;
}

.project-money-strip{
  align-items:stretch;
}

.project-money-strip span{
  flex:1;
  display:grid;
  gap:2px;
  border-radius:14px;
  text-align:center;
}

.project-money-strip b{
  color:#101114;
  font-size:.88rem;
}

.project-category-delete{
  width:100%;
  margin-top:8px;
  background:#f6f7fa!important;
  color:#6f7784!important;
  border:0!important;
  box-shadow:none!important;
}

@media (max-width:760px){
  .calendar-app-event{
    grid-template-columns:68px minmax(0,1fr)!important;
  }

  .native-hub-card,
  .native-hub-card.has-photo{
    grid-template-columns:1fr!important;
  }

  .native-hub-card.has-photo .item-photo{
    width:100%!important;
    height:170px!important;
  }

  #household .project-summary{
    grid-template-columns:1fr!important;
  }
}

/* Demo mode: fake data, no account controls, no writes. */
.demo-mode .topbar::after{
  content:"Demo - fake data - view only";
  position:fixed;
  left:50%;
  bottom:calc(78px + var(--safe-bottom));
  z-index:60;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100vw - 28px);
  padding:8px 12px;
  border-radius:999px;
  background:#101114;
  color:#fff;
  font-size:.78rem;
  font-weight:950;
  box-shadow:0 10px 28px rgba(0,0,0,.16);
}

.demo-mode button:disabled,
.demo-mode input:disabled,
.demo-mode select:disabled,
.demo-mode textarea:disabled{
  cursor:not-allowed!important;
  opacity:.72;
}

.demo-readonly-pill{
  margin-left:auto;
  border-radius:999px;
  padding:5px 8px;
  background:#f3f4f6;
  color:#6f7784;
  font-size:.72rem;
  font-weight:950;
}

.demo-showcase{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:10px;
  align-items:center;
  margin:0 0 14px;
  padding:14px;
  border:1px solid rgba(10,132,255,.18);
  border-radius:22px;
  background:linear-gradient(135deg,#eef6ff,#fff7ed);
  box-shadow:0 12px 30px rgba(10,19,38,.08);
}

.demo-showcase strong{
  display:block;
  color:#101114;
  font-size:1rem;
}

.demo-showcase .meta{
  margin:3px 0 0;
  color:#4b5563;
}

.demo-showcase .quick-chip{
  margin:0;
}

@media (max-width:760px){
  .demo-showcase{
    grid-template-columns:1fr 1fr;
  }

  .demo-showcase > div{
    grid-column:1 / -1;
  }
}

/* Family app polish: clearer app-like layout and safer button feedback */
#app.app-shell-native{
  width:min(1320px,100%);
  padding-top:14px;
}

.app-shell-native .topbar{
  position:sticky;
  top:12px;
  z-index:24;
}

.app-shell-native .summary-grid,
.app-shell-native .home-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;
}

button[data-family-busy="true"]{
  opacity:.72;
  cursor:not-allowed;
  pointer-events:none;
}

button[data-family-busy="true"]:hover{
  transform:none;
}

/* App-like polish and interaction clarity */
body{
  font-family:"Avenir Next","SF Pro Text","Segoe UI","Nunito","Poppins","Helvetica Neue",sans-serif;
}

#app.app-shell-native{
  max-width: 1200px;
  border-radius: 24px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--panel) 72%, transparent), color-mix(in srgb, var(--panel-strong) 58%, transparent));
  border:1px solid color-mix(in srgb, var(--line), transparent 45%);
  box-shadow: 0 20px 60px rgba(0,0,0,.16);
  padding-bottom: calc(16px + var(--safe-bottom));
}

#app.app-shell-native .topbar{
  padding: 12px 14px;
  border:1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
  position: sticky;
  top: 0;
}

#app.app-shell-native .section-head{
  margin-bottom: 10px;
}

#app.app-shell-native .inner-panel{
  border-radius: 20px;
}

#app.app-shell-native section.view{
  margin-top: 10px;
}

#app.app-shell-native .page-card{
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--line), transparent 22%);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

#app.app-shell-native .summary-card{
  border-radius: 16px;
}

#app.app-shell-native .bottom-tabs{
  position: sticky;
  bottom: 0;
  border-radius: 18px;
  border:1px solid color-mix(in srgb, var(--line), transparent 22%);
  background: color-mix(in srgb, var(--panel-strong) 84%, transparent);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  margin-top: 12px;
}

#app.app-shell-native .bottom-tabs .nav-page{
  border-radius: 13px;
  padding-top: 8px;
  padding-bottom: 8px;
  border: 1px solid color-mix(in srgb, var(--line), transparent 18%);
}

#app.app-shell-native .bottom-tabs .nav-page.active{
  background: color-mix(in srgb, var(--accent) 85%, white 0%);
  color: #fff;
}

#app.app-shell-native .project-actions button,
#app.app-shell-native .page-list .item button{
  border-radius: 12px;
}

#app.app-shell-native .quick-chip{
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line), transparent 24%);
}

@media (max-width:1100px){
  .app-shell-native .summary-grid,
  .app-shell-native .home-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Per-section visual rhythm: Home, Meals, Pantry, Reminders */
#app.app-shell-native #home,
#app.app-shell-native #meals,
#app.app-shell-native #pantry,
#app.app-shell-native #notifications,
#app.app-shell-native #pets,
#app.app-shell-native #bills,
#app.app-shell-native #inventory,
#app.app-shell-native #maintenance,
#app.app-shell-native #vehicles,
#app.app-shell-native #packages,
#app.app-shell-native #smart,
#app.app-shell-native #notices,
#app.app-shell-native #shopping,
#app.app-shell-native #chores,
#app.app-shell-native #household,
#app.app-shell-native #calendar,
#app.app-shell-native #settings,
#app.app-shell-native #admin{
  display:grid;
  gap:12px;
}

#app.app-shell-native .section-head{
  position:relative;
  z-index:1;
  display:grid;
  gap:6px;
  padding:6px 2px 4px;
  border-bottom:1px solid color-mix(in srgb, var(--line) 60%, transparent);
  margin-bottom:10px;
}

#app.app-shell-native .section-head h2{
  font-size:1.3rem;
  letter-spacing:-.03em;
}

#app.app-shell-native .section-head .meta{
  margin:0;
}

#app.app-shell-native .add-panel{
  border-radius:18px;
}

#app.app-shell-native .add-panel > summary{
  min-height:46px;
  border-radius:18px;
}

#app.app-shell-native .simple-hub-form,
#app.app-shell-native .stack-form,
#app.app-shell-native .task-form{
  gap:10px;
  padding:12px 12px 4px;
  background: color-mix(in srgb, var(--soft) 70%, transparent);
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--line), transparent 20%);
}

#app.app-shell-native #home .page-card{
  padding:16px;
  min-height:120px;
}

#app.app-shell-native #home .simple-home-head{
  padding:2px 2px 4px;
}

#app.app-shell-native .meal-planner-app{
  display:grid;
  gap:12px;
}

#app.app-shell-native .meal-day-list{
  display:grid;
  gap:10px;
}

#app.app-shell-native .meal-plan-row{
  border:1px solid color-mix(in srgb, var(--line) 60%, transparent);
  border-radius:14px;
  padding:12px;
  background:color-mix(in srgb, var(--panel) 84%, transparent);
}

#app.app-shell-native .meal-planner-hero{
  border-radius:16px;
  padding:10px;
  border:1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

#app.app-shell-native #pantry .hub-list,
#app.app-shell-native #pets .hub-list,
#app.app-shell-native #meals .hub-list,
#app.app-shell-native #notifications .hub-list,
#app.app-shell-native #bills .hub-list,
#app.app-shell-native #maintenance .hub-list{
  display:grid;
  gap:10px;
}

#app.app-shell-native .pantry-card{
  border-radius:14px;
}

#app.app-shell-native .recipe-page-card,
#app.app-shell-native .recipe-library-card{
  border-radius:16px;
  border:1px solid color-mix(in srgb, var(--line), transparent 15%);
}

#app.app-shell-native .notification-guide{
  border:1px solid color-mix(in srgb, var(--line) 60%, transparent);
  border-radius:16px;
}

#app.app-shell-native .notification-actions{
  margin:10px 0 2px;
}

#app.app-shell-native .project-summary{
  border-radius:16px;
  padding:12px;
  border:1px solid color-mix(in srgb, var(--line), transparent 20%);
}

@media (max-width:900px){
  #app.app-shell-native #home,
  #app.app-shell-native #pantry,
  #app.app-shell-native #meals,
  #app.app-shell-native #notifications,
  #app.app-shell-native #pets{
    gap:10px;
  }

  #app.app-shell-native .section-head{
    margin-bottom:8px;
  }

  #app.app-shell-native .simple-hub-form,
  #app.app-shell-native .stack-form,
  #app.app-shell-native .task-form{
    padding:12px 10px 2px;
  }
}
/* 2026-06-10 app polish pass: app-like interactions + clearer mobile surface */
#app{scroll-behavior:smooth}
.app-shell{min-height:100vh;display:flex;flex-direction:column;gap:12px}

.view{transform:translateZ(0)}
.view.active{animation:appPanelIn .22s ease-out both}

@keyframes appPanelIn{from{opacity:.94;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}

.nav-page{transition:transform .16s ease, background-color .16s ease, border-color .16s ease}
.nav-page:active{transform:scale(.985)}

\.side-nav-scroll{max-height:calc(100vh - 130px);overflow:auto;padding-right:4px}

.top-actions button,#refreshBtn,#logoutBtn,#menuBtn{letter-spacing:0}

.project-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.project-actions button,.top-actions button,.search-input{min-height:42px}
.project-actions button[data-delete-hub],
.project-actions button[data-delete-project],
.project-actions button[data-delete-category],
.project-actions button[data-delete-chore],
.project-actions button[data-delete-item]{
  border-color:color-mix(in srgb,var(--danger) 34%, transparent);
}

@media (max-width:760px){
  .topbar{padding-top:4px;align-items:flex-start}
  #app{padding-bottom:72px}
  .project-actions button{padding-inline:12px}
  #menuBtn,#closeMenuBtn{position:relative}
  .home-grid{grid-template-columns:1fr 1fr}
}

