@font-face{font-family:Nunito;src:url('./fonts/Nunito.ttf') format('truetype');font-weight:200 1000;font-display:swap}
@font-face{font-family:Caveat;src:url('./fonts/Caveat.woff2') format('woff2');font-weight:400;font-display:swap}
:root{color-scheme:light;--forest:#092c2b;--brand:#086699;--brand-strong:#07547f;--on-brand:#f8faf5;--brand-soft:#e3edf4;--ink:#183745;--muted:#455f6b;--paper:#edf6fb;--card:#fcfdfe;--border:#cedee6;--yellow:#f0bd48;--blue:#79b8d0;--green:#58b89a;--coral:#e56b67;--terracotta:#bf795b;--lime:#b7cf54;--shadow:0 2px 5px #18374509;font:15px/1.55 system-ui,-apple-system,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,a,select,input,textarea{font:inherit}button,select,summary{cursor:pointer}button,select,input,textarea{color:inherit}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.14;letter-spacing:-.035em}h2{font-size:1.28rem}h3{font-size:1.14rem}p{color:var(--muted)}svg{width:21px;height:21px;flex:none}a:focus-visible,button:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ad7418;outline-offset:3px}[hidden]{display:none!important}.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{position:fixed;top:8px;left:8px;z-index:8;background:white;padding:12px}
.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100dvh}.rail{position:sticky;top:0;height:100dvh;background:var(--brand);color:var(--on-brand);padding:32px 20px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;font:850 25px/.98 Nunito,system-ui;letter-spacing:-.04em;padding:0 5px;margin:0 0 48px}.brand img{width:49px;height:49px;border:1px solid #41615a;border-radius:13px}.rail-label,.rail-note,.eyebrow,.topline,.section-line>span{font-weight:750;font-size:.68rem;letter-spacing:.14em}.rail-label{margin:0 12px 10px;color:#a4bcb1}.rail nav{display:grid;gap:4px}.rail nav a{display:flex;gap:11px;align-items:center;padding:11px 12px;min-height:44px;text-decoration:none;border-radius:10px;color:#d5e3da;font-weight:600}.rail nav a:hover,.rail nav a[aria-current]{background:#ffffff24;color:var(--on-brand)}.rail nav a[aria-current] svg{color:var(--yellow)}.rail-note{margin-top:auto;padding:18px 8px 0;border-top:1px solid #33534c;letter-spacing:.02em;color:#bfd1c7;display:flex;align-items:center;gap:9px}.signal{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);flex:none}
main{padding:29px clamp(20px,4vw,62px) 0;width:100%;max-width:1320px;margin-inline:auto;min-width:0}main:focus{outline:none}.topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;color:var(--muted)}.place{padding:4px 10px;border:1px solid var(--border);border-radius:20px;color:#3c5f50}.hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:22px;background:var(--brand);color:var(--on-brand);border-radius:25px;min-height:310px;padding:34px clamp(24px,4vw,54px);isolation:isolate}.hero:after{content:'';position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse at 87% 55%,#ffffff0d 0,transparent 65%)}.hero-copy{flex:0 1 470px}.hero .eyebrow{display:flex;gap:9px;align-items:center;color:#eaf7ff;margin-bottom:13px}.hero h1{font-size:clamp(2.6rem,5vw,5.3rem);letter-spacing:-.065em;line-height:.99}.hero p{max-width:350px;color:#eaf7ff;margin:15px 0 20px}.shelf{width:min(38%,360px);height:auto;flex:none}
.card{border:1px solid var(--border);background:var(--card);border-radius:16px;box-shadow:var(--shadow)}.settings{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:92px;padding:15px 19px;margin:16px 0 25px}.settings p{margin-top:4px}.settings-control,.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.settings-control .btn{font-size:.86rem}.segments{display:inline-flex;gap:3px;flex-wrap:wrap;align-items:center;background:var(--brand-soft);border-radius:11px;padding:4px}.segments button{background:none;border:0;padding:7px 13px;border-radius:8px;min-height:39px;font-size:.87rem;font-weight:720;white-space:nowrap}.segments button[aria-pressed=true]{background:var(--brand);color:var(--on-brand)}.segments button:hover:not([aria-pressed=true]){background:#d3e3ed}select,input:not([type=checkbox]),textarea{width:100%;padding:9px 11px;background:var(--card);border:1px solid #bfd2df;border-radius:9px;min-height:44px}textarea{min-height:75px;resize:vertical}.person{display:flex;align-items:center;gap:6px}.person select,.toolbar select{width:auto}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;text-decoration:none;border:1px solid transparent;border-radius:24px;padding:8px 15px;min-height:44px;font-weight:730;line-height:1.2;white-space:normal}.btn svg{width:18px;height:18px}.primary{background:var(--yellow);color:#102f42}.primary:hover{background:#ffd46e}.yellow{background:var(--yellow);color:#102f42}.yellow:hover{background:#ffd467}.subtle{background:var(--brand-soft);color:var(--brand)}.subtle:hover{background:#d3e3ed}.danger{margin-right:auto;color:#8c2e2a;background:#fcebe5}.btn:disabled{opacity:.48;cursor:default}
.section-line{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px}.section-line>span{color:var(--muted)}.grid,.day-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tile{position:relative;display:grid;grid-template-columns:1fr auto;align-content:start;align-items:start;gap:9px 8px;padding:17px;text-decoration:none;min-height:140px}.tile:hover{border-color:#859e8c;background:white}.tile h3,.tile p{grid-column:1/-1}.tile p{padding-right:26px;font-size:.9rem}.tile-meta{font-size:.73rem;font-weight:700;color:#365e50;background:#e7eef3;padding:4px 8px;border-radius:16px;text-align:right}.tile-arrow{position:absolute;right:14px;bottom:15px;color:#446b5d}.tile-arrow svg{width:17px;height:17px}.badge{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--ink);background:var(--brand-soft);flex:none}.badge.life{background:#d8eee3}.badge.provision{background:#deeff5}.badge.condition{background:#f0e0d5}.badge.protect{background:#f7e1de}.badge.routine{background:#eaf2ce}.badge.life svg{color:#206350}.badge.provision svg{color:#275970}.badge.condition svg{color:#884e35}.badge.protect svg{color:#933e3b}.badge.routine svg{color:#4d5b23}
.water-strip,.callout{display:flex;align-items:center;gap:13px;padding:14px 16px;margin:16px 0 8px;background:#e8eff0;border-radius:14px}.water-strip .textlink{margin-left:auto}.textlink{display:inline-flex;align-items:center;gap:5px;color:var(--brand-strong);font-weight:740}.textlink svg{width:16px;height:16px}
.page-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:10px 0 20px}.page-head h1{font-size:clamp(2.3rem,5vw,3.7rem);margin:4px 0 7px}.eyebrow{color:var(--muted)}.toolbar,.progress,.group,.preferences{padding:16px 19px;margin-bottom:12px}.toolbar .textlink,.toolbar>.btn{margin-left:auto}.progress>div{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;margin-bottom:5px}.progress span{color:var(--muted)}progress{width:100%;height:9px;display:block;appearance:none;border:0;background:#e6ebdf;border-radius:12px;overflow:hidden;color:#295c4e}progress::-webkit-progress-bar{background:#e6ebdf}progress::-webkit-progress-value{background:#295c4e}progress::-moz-progress-bar{background:#295c4e}
.group header{display:flex;align-items:center;gap:11px;margin-bottom:8px}.group.guide h2:not(:first-child){margin-top:21px}.guide p{margin-top:8px}.checkrow{display:flex;gap:12px;align-items:flex-start;border-top:1px solid #e9eade;min-height:49px;padding:10px 0;cursor:pointer}.checkrow small{display:block;color:var(--muted);line-height:1.4}.checkrow input,.picker input{width:19px;height:19px;accent-color:#24604c;flex:none}.preferences summary{font-weight:740;min-height:30px}.preferences>p{margin-bottom:12px}.picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.picker fieldset{border:1px solid var(--border);border-radius:10px;padding:8px 10px;min-width:0}.picker legend{font-weight:700}.picker label{display:flex;gap:7px;align-items:center;min-height:42px;cursor:pointer}.hint{font-size:.87rem;margin:10px 0 14px}.day{padding:14px 16px}.day .eyebrow{margin-bottom:6px}.day details{border-top:1px solid var(--border);padding:8px 0}.day summary span{display:block;color:var(--muted);font-size:.76rem;margin-bottom:2px}.day summary{list-style-position:inside;min-height:44px}.day summary::marker{color:#527966}.day details ul{margin:4px 0;padding-left:24px;color:var(--muted)}.day details p{margin-top:8px}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:9px 13px;border-bottom:1px solid var(--border)}thead{background:var(--brand-soft)}thead th{font-size:.78rem}tbody th small{display:block;font-weight:450;color:var(--muted)}.icon-btn,.close{border:0;background:var(--brand-soft);border-radius:9px;display:inline-grid;place-items:center;min-width:44px;min-height:44px}.icon-btn:hover,.close:hover{background:#d3e3ed}.empty{text-align:center;padding:28px 16px}.empty .badge{margin:0 auto 10px}.empty p{margin:7px auto 13px;max-width:370px}.stock{display:flex;align-items:flex-start;gap:12px;padding:13px 15px;margin:10px 0}.stock-body{flex:1;min-width:0}.stock-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.stock h3{overflow-wrap:anywhere}.stock p{margin-top:4px}.stock-note{white-space:pre-wrap;overflow-wrap:anywhere}.pill{padding:3px 9px;font-size:.75rem;border-radius:12px;background:#e7eef3;color:#3e5549;font-weight:720}.pill.soon{background:#f7ebc4;color:#5f4410}.pill.past{background:#f6e3dc;color:#7e3830}.stock-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.house-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0}.metric{padding:14px 18px}.metric strong{font-size:1.6rem;letter-spacing:-.04em;display:block}.metric p{font-size:.87rem}.profile-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 16px;margin:9px 0}.profile-row>div{min-width:0;overflow-wrap:anywhere}.profile-row p{font-size:.88rem}
dialog{border:1px solid var(--border);background:var(--card);color:var(--ink);border-radius:18px;width:min(94vw,470px);padding:19px 21px;max-height:90dvh}dialog::backdrop{background:#112d3ab5}.dialog-head,.form-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:13px}.form-footer{margin:13px 0 0;justify-content:flex-end;flex-wrap:wrap}.close{font-size:1.5rem;line-height:1}form label{display:grid;gap:4px;font-weight:650;font-size:.88rem;margin:8px 0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-row label{min-width:0}#toast:not(:empty){position:fixed;z-index:20;right:15px;bottom:17px;background:var(--brand);color:var(--on-brand);border:1px solid #668578;border-radius:10px;padding:11px 16px;max-width:calc(100% - 30px);box-shadow:0 8px 20px #18374530}footer{font-size:.77rem;color:var(--muted);padding:20px 0 17px}footer span{padding:0 3px}
@media(max-width:920px){.shell{grid-template-columns:185px minmax(0,1fr)}.rail{padding-inline:13px}.brand{font-size:22px}.brand img{width:43px;height:43px}.settings{align-items:flex-start;flex-direction:column}}
@media(max-width:690px){.shell{display:block}.rail{z-index:2;position:sticky;top:0;height:auto;padding:7px 12px 5px}.brand{margin:0 0 4px;gap:6px;font-size:18px}.brand br{display:none}.brand img{width:32px;height:32px}.rail-label,.rail-note{display:none}.rail nav{display:flex;overflow:auto;scrollbar-width:thin;gap:3px}.rail nav a{flex:none;padding:6px 8px;font-size:.76rem;gap:4px}.rail nav a svg{width:16px;height:16px}main{padding:16px 13px 0}.hero{min-height:0;padding:24px 17px;border-radius:17px;gap:1px}.hero h1{font-size:clamp(2.08rem,8vw,3.7rem)}.hero p{font-size:.88rem;margin:11px 0 13px}.hero .eyebrow{font-size:.6rem}.shelf{width:31%;margin-right:-5px}.settings{margin-bottom:17px}.page-head{align-items:flex-start}.section-line>span{font-size:.56rem}.tile{padding:11px;grid-template-columns:1fr;gap:6px}.tile-meta{justify-self:start;grid-row:3;text-align:left}.tile h3{grid-row:2}.tile-arrow{display:none}.tile p{padding-right:0}.water-strip .textlink{white-space:normal}.day-grid{grid-template-columns:1fr}.page-head .btn{font-size:.8rem;padding:8px}.picker{grid-template-columns:1fr}th,td{padding:7px 6px}thead th{font-size:.7rem}tbody th{font-size:.84rem}.stock .badge{width:34px;height:34px}.toolbar .textlink,.toolbar>.btn{margin-left:0}.house-metrics{gap:7px}.metric{padding:11px}.metric strong{font-size:1.25rem}}
@media print{.rail,.btn,button,footer,.skip{display:none!important}.shell{display:block}main{padding:0}.card{break-inside:avoid;box-shadow:none}}
form .inline-check{display:flex;align-items:center;gap:9px;min-height:44px}.inline-check input{width:19px;height:19px;accent-color:#24604c}.metric .badge{margin-bottom:5px}.stock-actions .btn{font-size:.86rem}
@media(max-width:690px){.rail nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:2px}.rail nav a{justify-content:center;min-height:44px;padding:5px 2px;font-size:clamp(.67rem,2.7vw,.79rem);white-space:nowrap}.rail nav a svg{width:14px;height:14px}}
@media(max-width:350px){.rail nav a svg{display:none}}
.notification-settings{padding:15px 19px;margin:12px 0}
.notification-settings p{margin-top:5px}
.ios-app input:not([type=checkbox]),.ios-app select,.ios-app textarea{font-size:16px}
.ios-app body{overscroll-behavior:none}
.pet-heading{margin-top:24px}.pet-summary p{margin-top:7px}.pet-summary ul{padding-left:20px}.bank-address{white-space:pre-line}.bank-card p{margin-top:5px}.bank-card ul{padding-inline-start:20px}
.check-block{border-top:1px solid var(--border);padding-bottom:8px}
.check-block>.checkrow{border:0}
.check-block details{margin:0 0 2px 28px}
.check-block summary{color:var(--brand-strong);font-size:.86rem;font-weight:720;padding:6px 0;min-height:36px}
.check-block summary span{font-size:.78rem;color:var(--muted);margin-left:8px;font-weight:500}
.supply-items{padding:0 10px 0 7px;border-left:2px solid #c9ded1}
.supply-items .checkrow{min-height:44px}
.family-ad{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:16px 0;padding:16px 18px}
.family-ad small{display:block;color:var(--muted);font-weight:750;font-size:.65rem;letter-spacing:.07em;margin-bottom:5px}
.family-ad p,.sharing p{margin-top:5px}
.sharing{margin-top:20px}
@media(max-width:690px){.rail nav{grid-template-columns:repeat(3,minmax(0,1fr))}.family-ad{align-items:start;flex-direction:column}}
.food-preferences{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;margin-top:8px}
.food-preferences label{min-width:0}.guide-meals{border:0;padding:0;margin:8px 0}.guide-meals label{display:flex;align-items:flex-start;gap:8px}
.plan-guide{margin:-12px 0 20px}
.supermarket-picker{margin:12px 0;padding:8px 14px 13px}.supermarket-picker legend{font-weight:750;padding:0 5px}.supermarket-picker label{display:inline-flex;align-items:center;gap:5px;margin-right:15px;min-height:36px}.product-examples{white-space:normal;font-size:.82rem;min-width:100px}.product-examples ul{padding-left:1.15em;margin:5px 0}.barcode-fields{border-bottom:1px solid #dde6dc;margin-bottom:12px}.barcode-actions{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.barcode-actions label{flex:1 1 135px}.barcode-actions button{margin-bottom:8px}#barcode-video{width:100%;max-height:220px;background:#082523;border-radius:8px}
.app-header{background:var(--brand);color:var(--on-brand);padding:10px clamp(14px,4vw,54px)}
.app-header .brand{max-width:1200px;margin:0 auto;min-height:38px;font-size:21px;gap:8px}
.app-header .brand img{width:36px;height:36px}
main{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
.bottom-bar{position:fixed;z-index:4;inset:auto 0 0;background:var(--brand);color:var(--on-brand);padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 -3px 12px #18374518}
.bottom-bar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:510px;margin:auto;padding:5px 6px 4px}
.bottom-bar a,.capture-main{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:56px;color:inherit;text-decoration:none;font-weight:650;font-size:.75rem;border-radius:10px;border:0;background:transparent}
.bottom-bar a svg,.capture-main svg{width:21px;height:21px}
.bottom-bar a[aria-current=page]{background:#ffffff24;color:#fff}
.capture-main img{width:clamp(48px,15vw,68px);height:clamp(48px,15vw,68px);padding:6px;border:1.5px solid var(--yellow);border-radius:50%;background:var(--brand)}
.capture-actions{display:grid;grid-template-columns:1fr;gap:8px}
.capture-actions .btn{justify-content:flex-start}
.more-links{padding:8px 18px}
.more-links a{display:flex;align-items:center;gap:10px;min-height:46px;padding:6px 0;text-decoration:none;border-bottom:1px solid var(--border)}
.more-links a:last-child{border-bottom:0}
.more-links span{flex:1}
.taste-modes,.taste-chips{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}
.taste-chip{border:1px solid #bacdc2;background:white;color:var(--ink);border-radius:16px;padding:5px 10px;min-height:37px}
.taste-chip.like{background:#d9f0e6;border-color:#7ebba6}
.taste-chip.avoid{background:#ffe2dc;border-color:#cf8e82}
.taste-chip small{font-weight:750}
.day summary .portion-calories{display:flex;flex-wrap:wrap;gap:4px 8px;margin:4px 0 6px}
.day summary .portion-person{display:inline-block;border-radius:5px;background:#edf2ec;color:#20403a;padding:2px 6px;font-size:.76rem;overflow-wrap:anywhere}
@media print{.bottom-bar{display:none}}
.meal-day-strip{display:flex;gap:8px;overflow-x:auto;padding:7px 1px 9px;margin-top:10px}
.meal-day-strip button{flex:0 0 auto;min-width:82px;min-height:53px;padding:6px 10px;border:1px solid #bcd0c4;border-radius:9px;background:#fff;color:var(--ink)}
.meal-day-strip button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff}
.meal-day-strip small{display:block;font-size:.72rem}.meal-day-summary,.meal-entry-head{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.meal-day-summary{margin:8px 0 4px}.meal-day-summary span,.meal-entry-head>strong{font-size:.8rem}
.meal-timeline{padding:0 16px}.meal-entry{padding:13px 0;border-bottom:1px solid var(--border)}
.meal-entry:last-child{border-bottom:0}
.meal-entry .portion-calories{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0}
.meal-entry .portion-person{border-radius:5px;background:#edf2ec;padding:2px 6px;font-size:.79rem;overflow-wrap:anywhere}
.meal-entry details{margin:8px 0}.meal-entry details summary{font-size:.86rem}
.meal-recorded{display:flex;align-items:center;gap:5px;color:#285343}.meal-recorded svg{width:16px;height:16px}
.meal-stock-row{border-bottom:1px solid var(--border);padding-bottom:6px}
.meal-stock-row input[type=number]{max-width:135px}

.habit-choices{min-width:0;border:1px solid var(--border);border-radius:10px;padding:4px 10px;margin:12px 0}
.habit-choices legend{font-size:.88rem;font-weight:700;padding:0 4px}
.habit-choices label{display:flex;align-items:center;min-height:38px;margin:0;gap:8px}
.habit-choices input{width:19px;height:19px;accent-color:#24604c;flex:none}

.supply-section{margin:20px 0}
.reserve{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}
.receipt-row{min-width:0;border:1px solid var(--border);border-radius:10px;margin:12px 0;padding:4px 10px 10px}
.receipt-row legend{font-weight:700;font-size:.9rem;overflow-wrap:anywhere}

.setup-active #main{padding-bottom:24px}
.setup{max-width:560px;margin:clamp(16px,5vh,56px) auto;padding:clamp(20px,4vw,36px)}
.setup h1,.home-todo h1{margin:6px 0 8px;font-size:clamp(2rem,5vw,3rem)}
.setup>p:not(.setup-step){line-height:1.5}
.setup-step{margin-top:12px;font-size:.82rem;font-weight:700}
.setup-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.setup-field{display:grid;justify-items:start;gap:6px;margin-top:20px}
.setup-field select{width:auto;min-width:88px}
.setup-field .hint{margin:0}
.setup-field .setup-actions{margin-top:2px}
.setup-member{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border-top:1px solid var(--border);padding-top:5px}
.home-todo{max-width:720px;margin-inline:auto}
.home-todo .page-head{flex-wrap:wrap}
.todo-section{margin-block:24px}
.todo-section h2{margin-bottom:9px}
.todo-card{overflow:hidden}
.todo-row,.todo-checks>summary{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:11px 15px;text-align:left;text-decoration:none;color:inherit;background:none;border:0;border-bottom:1px solid var(--border)}
.todo-row span,.todo-checks>summary span{flex:1}
.todo-row small,.todo-checks small{display:block;color:var(--muted);margin-top:3px}
.todo-row:hover,.todo-checks>summary:hover{background:#f0f4ea}
.todo-row:last-child,.todo-checks:last-child:not([open])>summary{border-bottom:0}
.todo-checks>summary{cursor:pointer;list-style:none}
.todo-checks>summary::-webkit-details-marker{display:none}
.todo-checks>summary::after{content:'+';font-size:1.2rem;font-weight:700}
.todo-checks[open]>summary::after{content:'−'}
.todo-tick{display:flex;align-items:center;gap:10px;min-height:44px;margin-inline:15px;border-bottom:1px solid var(--border)}
.todo-tick input{width:19px;height:19px;accent-color:#24604c;flex:none}
.todo-tick input:checked+span{color:var(--muted)}
.todo-detail-link,.todo-message{padding:13px 15px}

.duration-control{width:100%}
.duration-preview{margin-top:9px;padding:12px;border-radius:10px;background:var(--brand-soft)}
.duration-preview ul{margin:6px 0;padding-left:22px;color:var(--muted)}
.duration-preview .setup-actions{margin-top:8px}
.duration-preview .hint{margin:6px 0}

.plan-notes{padding:12px 16px;margin:12px 0}
.plan-notes>summary{min-height:32px;cursor:pointer;font-weight:650}
.plan-notes .supermarket-picker{border:0;padding:8px 0;margin:0;box-shadow:none}
.plan-gap{padding:16px;margin:12px 0}
.plan-gap p{margin:8px 0}

.home-todo{max-width:1050px}
.home-welcome{margin-bottom:24px;min-height:260px}
.home-welcome h1{font-size:clamp(2.6rem,5vw,4.2rem)}
.home-todo>.page-head h1{font-size:clamp(1.65rem,4vw,2.15rem)}
@media(min-width:760px){.home-todo{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.home-todo>.home-welcome,.home-todo>.page-head{grid-column:1/-1}.home-todo>.todo-section{margin-top:12px}}
@media(max-width:690px){.home-welcome{min-height:0}.home-welcome h1{font-size:clamp(2.08rem,8vw,3.1rem)}}

.todo-priority h3{font-size:.9rem;margin:16px 15px 6px;color:var(--muted)}

.next-task{background:var(--brand-soft)}
.next-task span>small:first-child{font-weight:700;margin:0 0 4px}
.task-shopping h3{padding:14px 15px 4px;font-size:.9rem;color:var(--muted)}
.task-contents{padding-left:20px;margin:16px 0}
.task-contents li{margin:10px 0}
.task-contents span{display:block;color:var(--muted);font-size:.88rem}
.task-review{margin:3px 0 10px;border:0;background:transparent;padding:0;min-height:30px;cursor:pointer}

.home-focus,.home-links,.home-other{grid-column:1/-1;margin:0 0 14px;overflow:hidden}
.home-other>summary{padding:14px 16px;font-weight:650;cursor:pointer}
.home-focus .next-task{min-height:85px}
.home-focus h2 { padding: 12px 15px 2px; margin: 0; font-size: 1rem; }

.meal-photo {
 width: min(100%, 12rem);
 aspect-ratio: 1;
 margin: .65rem 0;
 border-radius: .75rem;
 background: url('./meal-photos.jpg') no-repeat 0 0 / 200% 200%;
}
.photo-tuna { background-position: right top; }
.photo-bean-wrap { background-position: left bottom; }
.photo-salmon { background-position: right bottom; }
.readiness-status {
 min-width: 3.5rem;
 text-align: right;
 font-variant-numeric: tabular-nums;
}
.days-circle {
 box-sizing: border-box;
 display: inline-flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 inline-size: 3.5rem;
 aspect-ratio: 1;
 border: 3px solid;
 border-radius: 50%;
 line-height: 1.05;
 color: #58645b;
 background: #f2f4f1;
}
.days-circle small { font-size: .65rem; color: inherit; }
.days-circle.green { color: #246040; background: #e8f5ed; }
.days-circle.amber { color: #885600; background: #fff3d7; }
.days-circle.red { color: #9d3529; background: #fcecea; }

.plan-meals { padding: 0 14px; background: #edf2eb; }
.plan-meal + .plan-meal { border-top: 1px solid var(--border); }
.plan-meal summary {
 display: grid;
 grid-template-columns: 4.2rem auto minmax(0,1fr) auto;
 gap: 4px 8px;
 align-items: center;
 padding: 12px 0;
 min-height: 48px;
 cursor: pointer;
 list-style: none;
}
.plan-meal summary::-webkit-details-marker { display: none; }
.draft-meal summary { grid-template-columns: 4.2rem minmax(0,1fr) auto; }
.plan-meal-time { color: #246657; font-size: .78rem; font-weight: 700; }
.plan-meal-title strong, .plan-meal-title small { display: block; }
.plan-meal-title small, .plan-meal-status { font-size: .75rem; }
.plan-meal-status { grid-column: 3; font-weight: 700; }
.plan-meal-chevron { grid-column: 4; grid-row: 1 / span 2; font-size: 1.45rem; }
.plan-meal[open] .plan-meal-chevron { transform: rotate(90deg); }
.plan-meal-detail { padding: 0 0 14px; }
.plan-meal-detail .btn + .btn { margin-left: .4rem; }
.plan-areas { margin: 14px 0; padding: 4px 14px; }
.snack-choice { display: flex; align-items: center; gap: .5rem; font-size: .82rem; }
.snack-choice select { min-width: 3.5rem; min-height: 44px; }
.plan-date-icon { height: 21px; width: 22px; border: 1.5px solid currentColor; border-radius: 4px; display: inline-grid; place-items: end center; position: relative; line-height: 1.15; font-weight: 700; }
.plan-date-icon::before { content: ''; position: absolute; inset: 4px 0 auto; border-top: 1px solid currentColor; }
.plan-meal-time small { display: block; }
.plan-now { display: flex; gap: .5rem; align-items: center; color: #246657; padding: .45rem 0; font-size: .83rem; font-weight: 700; }
.plan-now[hidden] { display: none; }
.plan-now::after { content: ''; border-top: 1px solid currentColor; flex: 1; }
.plan-activation { margin: 12px 0; }

.compact-plan { max-width: 48rem; }
.compact-plan-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.compact-plan-header h1 { margin: 0; font-size: 1.85rem; line-height: 1.1; }
.compact-plan-header p { margin: 3px 0 0; font-size: .82rem; color: var(--muted); }
.compact-plan-header .btn { min-height: 44px; padding: 6px 10px; font-size: .82rem; }
.compact-plan .meal-day-strip { margin: 6px 0 0; padding: 4px 1px; gap: 5px; }
.compact-plan .meal-day-strip button { min-height: 44px; padding: 3px 8px; }
.compact-plan .meal-day-summary { margin: 0 0 3px; }
.compact-plan .meal-day-summary h2 { margin: 0; font-size: .95rem; }
.compact-plan .snack-choice { margin: 0; }
.compact-plan .snack-choice select { padding: 3px 6px; }
.compact-plan .plan-meals { padding: 0 10px; }
.compact-plan .plan-meal > summary { min-height: 48px; padding: 6px 0; gap: 4px 7px; }
.compact-plan .plan-meal .badge { width: 28px; height: 28px; min-width: 28px; }
.compact-plan .plan-meal-title { min-width: 0; overflow-wrap: anywhere; }
.compact-plan .plan-meal-title strong { font-size: .92rem; line-height: 1.24; }
.compact-plan .plan-meal-chevron { grid-row: 1; }
.compact-plan .plan-meal-status { font-weight: 700; }
.compact-plan .plan-areas { margin: 8px 0; padding: 0 10px; }
.compact-plan .plan-areas .todo-row { min-height: 46px; padding: 5px 0; }
.compact-plan .plan-notes { margin: 6px 0; padding: 0 10px; }
.compact-plan .plan-notes > summary { display: list-item; line-height: 44px; }
.compact-plan-settings { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-bottom: 8px; }

.supply-category { padding: 8px 0; border-top: 1px solid var(--border); }
.supply-category h3 { margin: 0 0 5px; font-size: .98rem; }
.supply-category > .hint { margin: 0 0 4px; }

.btn.activate { background: #aa2831; color: #fff; border-color: #aa2831; }
.btn.activate:hover { background: #891e26; border-color: #891e26; }

#batch:has(.capture-actions) { position: fixed; inset: auto 0 max(10px, env(safe-area-inset-bottom)) 0; margin: 0 auto; padding: 12px 16px; }
#batch .capture-actions { gap: 4px; }
#batch .capture-actions .btn { min-height: 44px; }

.supplies-report {
 white-space: pre-wrap;
 overflow-wrap: anywhere;
 font: inherit;
 font-size: .88rem;
 border: 1px solid var(--border);
 border-radius: 10px;
 padding: 12px;
 max-height: 55dvh;
 overflow: auto;
}

.supply-photo { width: 88px; height: 88px; object-fit: contain; display: block; margin: 6px 0; border-radius: 8px; background: #fff; }
.nutrition-details { margin: 8px 0; font-size: .86rem; }

.stock-calories { padding: 12px 16px; margin: 10px 0 16px; }
.stock-calories h2 { margin: 0 0 4px; font-size: 1rem; }
.stock-calories p { margin: 0; color: var(--muted); font-size: .86rem; }
.supply-card { margin: 6px 0; box-shadow: none; }
.supply-card > summary {
 display: grid;
 grid-template-columns: 40px minmax(0, 1fr) auto 10px;
 align-items: center;
 gap: 10px;
 padding: 10px 13px;
 min-height: 58px;
 list-style: none;
 cursor: pointer;
 border-radius: inherit;
}
.supply-card > summary::-webkit-details-marker { display: none; }
.supply-card > summary:focus-visible { outline: 2px solid #246657; outline-offset: -2px; }
.supply-card-title { min-width: 0; overflow-wrap: anywhere; }
.supply-card-title strong { display: block; line-height: 1.25; }
.supply-card-title small { display: block; color: var(--muted); }
.supply-card-status { display: block; margin-top: 3px; font-size: .75rem; color: var(--muted); }
.supply-card-status .supply-countdown { color: inherit; }
.supply-card-status.soon { color: #805400; }
.supply-card-status.past { color: #9d3529; }
.supply-card-quantity {
 color: var(--ink);
 background: #e7eef3;
 border-radius: 6px;
 padding: 4px 7px;
 font-size: .75rem;
 font-weight: 700;
 white-space: nowrap;
}
.supply-card-chevron {
 width: 6px;
 height: 6px;
 border: solid var(--muted);
 border-width: 0 2px 2px 0;
 transform: rotate(45deg);
}
.supply-card[open] > summary .supply-card-chevron { transform: rotate(225deg); }
.supply-card-content {
 display: flow-root;
 border-top: 1px solid var(--border);
 padding: 10px 13px 12px;
 overflow-wrap: anywhere;
}
.supply-card-photo { float: right; width: 80px; margin: 0 0 6px 12px; }
.supply-card-photo .supply-photo { width: 80px; height: 80px; margin: 0; }
.supply-card-photo small { display: block; font-size: .65rem; }
.supply-card-information > p + p { margin-top: 4px; }
.supply-card-information .stock-actions { clear: both; }
.stock-calories p + p { margin-top: 6px; }
.stock-calories p strong { color: var(--ink); }
.stock-energy { color: var(--muted); font-size: .82rem; }
.stock-energy strong { color: var(--ink); }
.stock-calories details { margin-top: 8px; font-size: .86rem; }

.rotation-calendar { padding: 12px; margin: 12px 0; }
.rotation-calendar h2, .rotation-calendar h3, .rotation-calendar h4 { margin: 0; }
.rotation-month { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0; }
.rotation-month .btn { min-width: 44px; font-size: 1.1rem; }
.rotation-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; text-align: center; font-size: .79rem; }
.rotation-grid > strong { color: var(--muted); padding-bottom: 4px; }
.rotation-date, .rotation-grid button { min-height: 44px; display: grid; place-content: center; }
.rotation-grid button { display: flex; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--border); border-radius: 8px; background: #edf2eb; color: var(--ink); }
.rotation-grid [aria-pressed=true], .rotation-grid [aria-current=date] { outline: 2px solid #246657; outline-offset: -2px; border-radius: 8px; }
.rotation-agenda-day { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; }
.rotation-agenda-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.rotation-agenda-item small { display: block; color: var(--muted); }
.stock-menu { margin: 8px 0; padding: 10px; border-radius: 8px; background: #edf2eb; }
.stock-menu summary { cursor: pointer; font-weight: 700; }

.getting-ready { max-width: 620px; margin: 0 auto 20px; }
.ready-stages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.ready-stages .btn { padding: 7px 10px; }
.ready-stages [aria-current="step"] { color: white; background: var(--brand); }
.ready-next { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border); }
.guide-return { margin-bottom: 12px; }
.getting-ready details { margin-top: 16px; }

.supply-card-thumb { width: 40px; height: 44px; border-radius: 6px; background: #f2f3ec; display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.supply-card-thumb img { width: 100%; height: 100%; object-fit: contain; background: white; }
@media (max-width: 360px) { .supply-card > summary { gap: 7px; padding-inline: 9px; grid-template-columns: 32px minmax(0,1fr) auto 7px; } .supply-card-thumb { width: 32px; height: 38px; } }

.supplies-header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }
.supplies-header h1 { font-size:1.65rem; }
.supplies-header > div { display:flex; align-items:center; gap:7px; }
.supplies-header .btn { padding:8px 11px; font-size:.88rem; }
.supplies-header .icon-btn { font-size:1.6rem; line-height:1; }
.compact-coverage { padding:0; margin:0 0 12px; }
.compact-coverage > summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 13px; }
.compact-coverage > summary::-webkit-details-marker { display:none; }
.compact-coverage > summary > span:first-child { display:grid; grid-template-columns:auto 1fr; gap:0 10px; align-items:baseline; }
.compact-coverage > summary strong { font-size:.95rem; }
.compact-coverage > summary small { color:var(--muted); font-size:.78rem; }
.compact-coverage > summary small:last-child { grid-column:1/-1; }
.compact-coverage[open] > summary .supply-card-chevron { transform:rotate(225deg); }
.coverage-detail { padding:10px 13px 12px; border-top:1px solid var(--border); }
.compact-supplies .supply-section { margin:12px 0; }
.compact-supplies .supply-section > h2 { font-size:1.1rem; margin:0 0 8px; }
.compact-supplies .supply-category:first-of-type { border-top:0; padding-top:0; }

.supply-card-quantity strong, .supply-card-quantity small { display:block; text-align:right; }
.supply-card-quantity small { font-weight:500; font-size:.72rem; }

/* Supply status is separate from the category colour on the thumbnail. */
.supply-card-quantity { min-width: 36px; padding: 5px 8px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.quantity-line { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.quantity-status-mark { font-size: .72rem; font-weight: 800; }
.supply-card-quantity.status-green { color: #205c45; background: #e5f1e9; }
.supply-card-quantity.status-amber { color: #765000; background: #fff0ca; }
.supply-card-quantity.status-red { color: #962d27; background: #fbe8e5; }
.supply-card-quantity.status-neutral { color: #52605c; background: #edf0ed; }
.supply-card-status.status-amber { color: #765000; }
.supply-card-status.status-red { color: #962d27; }
.supply-status-detail { font-size: .84rem; }

.essential-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:8px 0 12px; }
.essential-actions .btn { font-size:.8rem; min-height:36px; padding:7px 11px; }
.essential-item { display:flex; gap:6px; align-items:center; }
.essential-item > .checkrow { flex:1; min-width:0; }
.essential-item > .icon-btn { flex-shrink:0; }
.guidance-sources { margin-bottom:14px; }

.shopping-stores { margin:0 0 12px; padding:0; box-shadow:none; }
.shopping-stores > summary { display:flex; gap:8px; align-items:center; justify-content:space-between; padding:8px 10px; cursor:pointer; list-style:none; min-height:48px; }
.shopping-stores > summary::-webkit-details-marker, .shopping-item > summary::-webkit-details-marker { display:none; }
.shop-logos { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.shop-logo { display:inline-flex; align-items:center; justify-content:center; width:48px; height:30px; position:relative; overflow:hidden; background:white; border-radius:4px; }
.shop-logo img { width:44px; height:auto; max-width:none; }
.shop-logo[title="Aldi"] img { width:26px; }
.shop-settings-label { white-space:nowrap; color:var(--muted); font-size:.8rem; }
.shopping-stores .supermarket-picker { border:0; box-shadow:none; margin:0; padding:8px 12px 12px; }
.shopping-item { margin:6px 0; padding:0; box-shadow:none; }
.shopping-item > summary { display:grid; grid-template-columns:minmax(0,1fr) auto 7px; align-items:center; gap:10px; padding:12px; list-style:none; cursor:pointer; }
.shopping-item-name strong,.shopping-item-name small,.shopping-buy strong,.shopping-buy small { display:block; }
.shopping-item-name small,.shopping-buy small { color:var(--muted); font-size:.76rem; }
.shopping-item-name { min-width:0; overflow-wrap:anywhere; }
.shopping-buy { text-align:right; white-space:nowrap; font-size:.9rem; }
.shopping-item-detail { border-top:1px solid var(--border); padding:10px 12px 12px; }
.shopping-counts { display:flex; gap:18px; flex-wrap:wrap; font-size:.8rem; margin:0 0 10px; color:var(--muted); }
.shopping-counts strong { display:block; color:var(--ink); }
.shopping-item-detail > .btn { margin-top:10px; }
.shopping-item[open] > summary .supply-card-chevron { transform:rotate(225deg); }
.shopping-covered { margin-top:16px; }
.shopping-complete { padding:14px; }
.shopping-complete p { font-size:.85rem; color:var(--muted); margin:5px 0 0; }
.shopping-item > summary:focus-visible,.shopping-stores > summary:focus-visible { outline:2px solid #246657; outline-offset:-2px; }

.supply-category-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.supply-category-heading h3 { margin:0; }
.supply-category-heading .icon-btn { min-height:32px; min-width:32px; width:32px; height:32px; padding:7px; }
.category-help { font-size:.78rem; color:var(--muted); margin:0 0 8px; }
.category-help > summary { cursor:pointer; }
.category-help p { margin:5px 0; }
.food-supply-group h4 { font-size:.78rem; color:var(--muted); margin:10px 0 3px; font-weight:650; }
#supply-category-field .hint,#food-section-field .hint { display:block; margin-top:5px; font-weight:400; }

/* Compact offline contact cards with details on demand. */
.key-contact{border-top:1px solid var(--line,#dce2db);padding:12px 0;overflow-wrap:anywhere}
.key-contact summary{cursor:pointer}.key-contact summary strong{font-size:1rem}
.key-contact summary small{display:block;margin-top:4px;font-weight:400;color:var(--muted,#52645e)}
.key-contact-detail{padding:4px 0 0}.key-contact-detail p{margin:10px 0}
.key-arrangements{margin:0;overflow-wrap:anywhere}.key-arrangements dt{font-weight:700;margin-top:14px}
.key-arrangements dd{margin:4px 0 0;line-height:1.5}

/* One next step and a compact incident view. */
[data-next-action] h2{font-size:1rem;margin-bottom:0}
.days-circle small{max-width:52px;line-height:1.15;text-align:center}
.use-shortcuts{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}
.use-water header{justify-content:space-between}.use-water p{margin:6px 0}
.use-water-control{margin-top:12px}.use-water-control summary{font-weight:700;cursor:pointer}
.use-today>h2{font-size:1.2rem}.use-alternatives{padding:18px}.use-alternatives>summary{font-weight:700;cursor:pointer}
.outage-option{border-top:1px solid var(--line,#dce2db);padding:12px 0}.outage-option summary small{display:block;font-weight:400;margin-top:4px}
.use-plan .page-head{flex-wrap:wrap}.use-plan .plan-meal-time{min-width:54px}

.compact-use-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.compact-use-header h1{font-size:1.7rem;letter-spacing:-.04em;margin:0}.compact-use-header p{margin:3px 0 0;color:var(--muted,#52645e);font-size:.9rem}
.compact-use-header .btn{padding:10px 12px;font-size:.8rem}.use-shortcuts .btn{padding:10px 12px}
.use-shortcuts .textlink{font-size:.9rem}.use-plan .use-water{padding:16px}.use-plan .use-water h2{font-size:1.1rem}

.sharing-steps{padding-left:22px}.sharing-steps li{margin:12px 0;line-height:1.5}
.plan-access-person{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:12px 0;border-bottom:1px solid var(--line,#dce2db);overflow-wrap:anywhere}
.plan-access-person small{grid-column:1/-1;color:var(--muted,#52645e)}

.help-feature,.help-area,.help-board-list{margin-top:1rem}
.help-toggle{display:flex;align-items:flex-start;gap:.7rem;cursor:pointer}
.help-toggle input{flex:none;margin-top:.2rem;width:1.15rem;height:1.15rem;accent-color:var(--green,#286553)}
.help-toggle small{display:block;margin-top:.25rem}
.help-area header{display:flex;justify-content:space-between;align-items:flex-start;gap:.7rem;flex-wrap:wrap}
.help-area header p{margin:.25rem 0 .6rem}
.help-code{overflow-wrap:anywhere;user-select:all;font-family:monospace}
.help-request{margin:.65rem 0}
.help-request h3{margin:0 0 .35rem}
.help-offer{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap;margin:.6rem 0}
.help-toggle+.help-toggle{margin-top:.9rem}
.direct-thread{padding:0;overflow:hidden}
.direct-thread header{display:flex;align-items:center;gap:.65rem;padding:.85rem;border-bottom:1px solid var(--border)}
.direct-back{font-size:1.4rem;min-width:44px;padding:.35rem}
.direct-person{min-width:0;flex:1}.direct-person h1{font-size:1.15rem;overflow-wrap:anywhere}.direct-person p{font-size:.78rem;margin-top:.2rem}
.direct-avatar{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:#dceae4;color:var(--brand);font-weight:750;font-size:.9rem}
.direct-options{padding:.5rem 1rem;border-bottom:1px solid var(--border);font-size:.8rem}.direct-options summary{min-height:30px;display:flex;align-items:center}.direct-options summary::after{content:'⌄';margin-left:auto}.direct-options p{margin:.5rem 0}
.direct-history{height:clamp(210px,42dvh,470px);overflow-y:auto;overscroll-behavior:contain;padding:.8rem;background:#efeee6}
.direct-history:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.direct-contacts,.direct-messages{padding:0;margin:0;list-style:none}
.direct-messages{display:flex;flex-direction:column;gap:.5rem}
.direct-message{max-width:86%;padding:.55rem .75rem;border-radius:13px;box-shadow:var(--shadow);overflow-wrap:anywhere}
.direct-message.incoming{align-self:flex-start;background:var(--card);border-bottom-left-radius:3px}
.direct-message.outgoing{align-self:flex-end;background:#dceae4;border-bottom-right-radius:3px}
.direct-message small{display:block;text-align:right;margin-top:.2rem;font-size:.68rem;color:var(--muted)}
.direct-day{align-self:center;font-size:.72rem;color:var(--muted);padding:.4rem}.direct-day span{background:var(--card);padding:.2rem .6rem;border-radius:12px}
.direct-empty{text-align:center;margin:3rem 0;font-size:.9rem}
.direct-compose{padding:.7rem .8rem;border-top:1px solid var(--border)}.direct-compose>p{font-size:.76rem;margin-bottom:.5rem}
.direct-presets{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.direct-presets .btn{min-height:44px;font-size:.8rem;padding:.45rem .6rem;white-space:normal}
.direct-contacts{margin:.6rem 0 1rem}.direct-contacts li+li{border-top:1px solid var(--border)}
.direct-contact{width:100%;display:flex;align-items:center;gap:.7rem;padding:.8rem 0;border:0;background:transparent;text-align:left;min-height:68px}
.direct-preview{display:flex;flex-direction:column;min-width:0;flex:1}.direct-preview strong{overflow-wrap:anywhere}.direct-preview>span{color:var(--muted);font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.direct-contact-meta{display:flex;flex-direction:column;align-items:flex-end;flex:none;font-size:.7rem;color:var(--muted)}
.direct-presets button:disabled{opacity:.5}
.pair-number{font-size:2rem;letter-spacing:.18em;font-variant-numeric:tabular-nums}
.direct-file{position:relative;cursor:pointer}
.direct-file input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.direct-file:focus-within{outline:2px solid currentColor;outline-offset:3px}
.direct-range dd{overflow-wrap:anywhere;margin:0 0 .55rem;font-weight:600}

.sharing details{margin-top:14px}
.household-invitation{margin-top:14px;padding:14px;border:1px solid var(--border);border-radius:12px}
.household-join-code{font-size:1.25rem;letter-spacing:.08em;font-weight:750;overflow-wrap:anywhere}

.catalogue-photo{width:44px;height:52px;object-fit:contain;flex:0 0 44px;background:#fff;border-radius:7px;vertical-align:middle;margin-right:10px}.catalogue-photo-empty{display:inline-flex;align-items:center;justify-content:center;background:var(--paper,#f3f3ed);color:#64736b}.catalogue-photo-empty svg{width:22px;height:22px}.shopping-item>summary .shopping-item-name{flex:1;min-width:0}.product-examples li>.catalogue-photo{float:left}.product-examples li{display:flow-root}.product-attribution{clear:both}.meal-product-ingredient{display:flex;align-items:center;margin-bottom:6px}
.shopping-item>summary{grid-template-columns:44px minmax(0,1fr) 7px;gap:3px 10px}.shopping-item>summary>.catalogue-photo{grid-column:1;grid-row:1/3;margin:0}.shopping-item>summary>.shopping-item-name{grid-column:2;grid-row:1}.shopping-item>summary>.shopping-buy{grid-column:2;grid-row:2;text-align:left;white-space:normal;overflow-wrap:anywhere}.shopping-item>summary>.shopping-buy small{display:none}.shopping-item>summary>.supply-card-chevron{grid-column:3;grid-row:1/3}

.shopping-cost{padding:12px;margin:10px 0}.shopping-cost>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;list-style:none}.shopping-cost>summary span{font-size:.88rem;color:var(--muted)}.shopping-cost>summary strong{text-align:right;font-size:1.1rem}.shopping-cost>ul{font-size:.9rem;padding-left:20px}.shopping-cost li{margin:6px 0;overflow-wrap:anywhere}

/* Website identity, with system type retained for functional text and controls. */
.setup-welcome{position:relative;isolation:isolate;overflow:hidden;background:var(--brand);color:var(--on-brand);border-color:var(--brand);padding:24px}
.setup-welcome::before{content:"";position:absolute;z-index:-1;inset:42% -40% -80% 12%;border:32px solid #ffffff08;border-radius:48%;transform:rotate(-13deg);pointer-events:none}
.setup-welcome p,.setup-welcome .hint{color:#eaf7ff}
.setup-welcome .textlink{color:var(--on-brand)}
.setup-welcome .badge{background:#ffffff24;color:var(--on-brand)}
.setup-welcome .badge svg{color:inherit}
.setup-welcome .setup-actions{align-items:center}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.setup-welcome h1,.home-welcome h1{font-family:Caveat,cursive;font-size:clamp(2.75rem,7vw,4.2rem);font-weight:400;line-height:1.1;letter-spacing:0}
