:root{
  color-scheme:light;
  --petrol:#176E77;--sea:#5A9DB6;--olive:#7E9660;--sun:#EFC75E;--coral:#E58D75;
  --sage:#E8EFEA;--ivory:#F9F8F0;--ink:#183D49;--muted:#657D82;--line:#DFE8E2;--white:#fff;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;
  color:var(--ink);background:var(--ivory);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased
}
*{box-sizing:border-box}
html{min-height:100%;background:#E7EBE6}
body{margin:0;min-height:100dvh;background:#E7EBE6;font-size:14px;line-height:1.45}
button,input,select,textarea{font:inherit}button{color:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--sea);outline-offset:2px}
.app{width:100%;max-width:540px;min-height:100dvh;margin:0 auto;background:var(--ivory);box-shadow:0 0 50px #32432e12;padding:0 18px calc(104px + env(safe-area-inset-bottom))}
.head{height:76px;display:grid;grid-template-columns:40px 1fr 40px;align-items:center}
.head-spacer{width:40px;height:40px}
.brand{display:flex;align-items:center;justify-content:center;gap:7px;font-size:20px;font-weight:780;letter-spacing:-.6px;color:var(--ink)}
.brand-logo{display:block;width:min(196px,58vw);max-height:36px;height:auto;object-fit:contain}
.brand svg{width:27px;height:27px;fill:none;stroke:var(--petrol);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.round{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--white);color:var(--petrol);cursor:pointer}
.round svg,.quiet-button svg,.calendar-arrow svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.main{padding:4px 0 20px}
.eyebrow{margin:10px 0 8px;color:var(--petrol);font-size:10px;font-weight:800;letter-spacing:1.45px}
.title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
h1{margin:0;font-size:31px;line-height:1.14;letter-spacing:-1.15px;font-weight:780}
h2,h3,p{margin:0}
.subtitle{margin:8px 0 21px;max-width:475px;color:var(--muted);font-size:14px;line-height:1.55}
.quiet-button{min-height:37px;display:flex;align-items:center;gap:5px;padding:0 11px;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--petrol);font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.quiet-button svg{width:17px;height:17px}
.calendar-card{padding:13px 13px 11px;border:1px solid #E5EBE6;border-radius:23px;background:#fff;box-shadow:0 6px 20px #183d4908}
.calendar-top{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px;margin-bottom:10px}
.calendar-top h2{text-align:center;font-size:17px;font-weight:750;letter-spacing:-.35px;text-transform:capitalize}
.calendar-arrow{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--sage);color:var(--petrol);cursor:pointer}
.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));justify-items:center}
.weekdays{margin-bottom:5px;color:#829395;font-size:10px;font-weight:720}
.weekdays span{width:36px;text-align:center}
.calendar-grid{row-gap:4px}
.calendar-day,.calendar-empty{width:36px;height:40px}
.calendar-day{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:13px;background:transparent;color:var(--ink);font-size:13px;font-weight:620;cursor:pointer}
.calendar-day:hover{background:#F4F6F2}
.calendar-day.today{box-shadow:inset 0 0 0 1px #9CB9AD}
.calendar-day.selected{background:var(--petrol);color:#fff;box-shadow:none}
.calendar-day.other-month{color:#BBC6C2}
.calendar-day[aria-label*="nessun pasto"]{cursor:pointer}
.day-dots{height:4px;display:flex;gap:2px;justify-content:center}
.day-dot{width:3px;height:3px;border-radius:50%;background:#8CA274}
.calendar-day.selected .day-dot{background:#EFC75E}
.day-dot.prepared{background:#5A9DB6}
.calendar-foot{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:7px;color:#829395;font-size:10px}
.legend-dot{width:6px;height:6px;border-radius:50%;background:#8CA274;margin-left:8px}
.legend-dot.prepared{background:var(--sea)}
.month-summary{margin-top:13px}
.status-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px;border:1px solid #E4EAE4;border-radius:16px;background:#fff}
.status-copy{min-width:0}
.status-label{display:flex;align-items:center;gap:6px;color:var(--petrol);font-size:10px;font-weight:800;letter-spacing:.75px;text-transform:uppercase}
.status-label svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.status-detail{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4}
.pill-status,.draft-status{flex:0 0 auto;padding:6px 9px;border-radius:99px;background:var(--sage);color:#477E68;font-size:9px;font-weight:750;white-space:nowrap}
.draft-status{background:#FFF3DC;color:#82662D}
.action-button{min-height:37px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 12px;border:0;border-radius:12px;background:var(--petrol);color:#fff;font-size:11px;font-weight:730;cursor:pointer;white-space:nowrap}
.action-button.secondary{background:var(--sage);color:var(--petrol)}
.action-button.outline{border:1px solid #C9DAD1;background:#fff;color:var(--petrol)}
.action-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notice{display:flex;align-items:flex-start;gap:9px;margin-top:12px;padding:12px 13px;border-radius:15px;background:#FFF3DC;color:#795E27;font-size:11px;line-height:1.5}
.notice.blue{background:#E7F0F3;color:#3F6772}
.notice svg{width:17px;height:17px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notice button{margin-left:auto;align-self:center;border:0;background:none;color:inherit;font-size:11px;font-weight:750;text-decoration:underline;cursor:pointer;white-space:nowrap}
.update-notice{align-items:center;margin-top:10px}
.update-notice .update-copy{flex:1;min-width:0}
.update-notice .update-copy strong,.update-notice .update-copy small{display:block}
.update-notice .update-copy strong{font-size:11px}
.update-notice .update-copy small{margin-top:2px;font-size:10px;line-height:1.4}
.update-notice button{margin:0;padding:4px 2px;font-size:10px}
.day-section{margin-top:24px}
.day-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 12px}
.day-heading h2{font-size:18px;line-height:1.25;font-weight:770;letter-spacing:-.35px;text-transform:capitalize}
.small-eyebrow{margin:0 0 3px;font-size:9px;letter-spacing:1.1px}
.small-round{width:36px;height:36px;background:#fff}
.small-round svg{width:18px;height:18px}
.meal-list{display:grid;gap:10px}
.meal-card{overflow:hidden;padding:14px;border:1px solid #E5EBE6;border-radius:19px;background:#fff;box-shadow:0 4px 14px #183d4907}
.meal-card.needs-review{border-color:#E9C58A;background:#FFFCF4}
.meal-card.empty-meal{background:#FBFCF9}
.meal-head{display:flex;align-items:flex-start;gap:11px}
.meal-icon{width:38px;height:38px;flex:0 0 auto;display:grid;place-items:center;border-radius:13px;background:var(--sage);color:var(--petrol)}
.meal-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.meal-meta{flex:1;min-width:0}
.meal-label-row{display:flex;align-items:center;justify-content:space-between;gap:6px}
.meal-label{color:var(--petrol);font-size:10px;font-weight:800;letter-spacing:.7px;text-transform:uppercase}
.meal-status{display:inline-flex;align-items:center;gap:4px;color:#778B83;font-size:10px;font-weight:650;white-space:nowrap}
.meal-status.prepared{color:#477E88}
.meal-status svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.meal-name{margin:5px 0 4px;font-size:16px;line-height:1.28;font-weight:760;letter-spacing:-.35px;overflow-wrap:anywhere}
.meal-detail{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--muted);font-size:11px}
.meal-detail span{display:inline-flex;align-items:center;gap:4px}
.meal-detail svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.meal-family{margin:10px 0 0 49px;padding:8px 9px;border-radius:11px;background:#F4F6F2;color:#536F71;font-size:11px;line-height:1.45}
.meal-alert{margin:10px 0 0 49px;padding:8px 9px;border-radius:10px;background:#FFF0D7;color:#805D23;font-size:11px;line-height:1.45}
.meal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0 0 49px}
.meal-actions .action-button{min-width:0;padding-inline:8px}
.meal-actions .full-action{grid-column:1/-1}
.month-actions{display:grid;gap:8px;margin-top:15px}
.month-actions .action-button{width:100%;min-height:43px;font-size:12px}
.empty-state{padding:21px 16px;border:1px dashed #C8D7CD;border-radius:18px;background:#FCFCF8;text-align:center}
.empty-mark{width:42px;height:42px;display:grid;place-items:center;margin:0 auto 10px;border-radius:15px;background:var(--sage);color:var(--petrol)}
.empty-mark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.empty-state h3{margin:0 0 5px;font-size:15px;letter-spacing:-.25px}
.empty-state p{max-width:330px;margin:0 auto;color:var(--muted);font-size:12px;line-height:1.5}
.empty-state .action-button{margin-top:13px}
.privacy-note{margin:17px 2px 0;color:#829091;font-size:10px;line-height:1.55}
.fineprint{margin:10px 2px 3px;color:#829091;font-size:10px;line-height:1.5}
.bottom-nav{position:fixed;z-index:10;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,540px);height:calc(78px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;padding:9px 6px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #E3E9E4;background:#fffefbf2;backdrop-filter:blur(18px)}
.tab{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#879897;font-size:10px;text-align:center}
.tab-icon{width:46px;height:36px;display:grid;place-items:center;border-radius:19px}
.tab-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tab.active{color:var(--petrol);font-weight:760}
.tab.active .tab-icon{background:var(--sage)}
.tab.inactive{opacity:.78}
.toast{position:fixed;z-index:40;bottom:calc(94px + env(safe-area-inset-bottom));left:50%;max-width:min(90vw,420px);transform:translate(-50%,10px);padding:11px 15px;border-radius:14px;background:var(--ink);color:#fff;font-size:12px;line-height:1.4;box-shadow:0 8px 24px #183d4930;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.toast.show{opacity:1;transform:translate(-50%,0)}
#sheet-root:empty{display:none}
.sheet-backdrop{position:fixed;z-index:30;inset:0;display:flex;align-items:flex-end;justify-content:center;background:#183D493D;backdrop-filter:blur(3px)}
.sheet{width:min(100%,540px);max-height:91dvh;overflow:auto;overscroll-behavior:contain;padding:14px 18px calc(22px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;background:var(--ivory);box-shadow:0 -10px 45px #092a2826;animation:sheet-in .2s ease-out}
@keyframes sheet-in{from{transform:translateY(28px);opacity:.7}to{transform:translateY(0);opacity:1}}
.sheet-grabber{width:39px;height:4px;margin:0 auto 15px;border-radius:99px;background:#CBD5D0}
.sheet-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}
.sheet-header h2{font-size:19px;line-height:1.25;letter-spacing:-.45px}
.sheet-subtitle{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.45}
.sheet-close{width:32px;height:32px;flex:0 0 auto;display:grid;place-items:center;border:0;border-radius:50%;background:#EAF0EB;color:var(--petrol);cursor:pointer}
.sheet-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.option-list{display:grid;gap:8px}
.option-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:15px;background:#fff;text-align:left;cursor:pointer}
.option-row strong{display:block;font-size:13px;line-height:1.35}
.option-row small{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.option-check{width:22px;height:22px;display:grid;place-items:center;border:1px solid #B9C9C1;border-radius:50%;color:#fff}
.option-row.selected .option-check{border-color:var(--petrol);background:var(--petrol)}
.option-check svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sheet-note{margin-top:12px;color:var(--muted);font-size:11px;line-height:1.5}
.sheet-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
.sheet-buttons.single{grid-template-columns:1fr}
.sheet-buttons .action-button{min-height:44px;font-size:12px}
.form-row{display:grid;gap:6px;margin:0 0 12px}
.form-row label,.form-label{font-size:12px;font-weight:720}
.form-field{width:100%;min-height:43px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 0 12px}
.choice-card{min-height:43px;display:flex;align-items:center;gap:8px;padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:11px;line-height:1.35}
.choice-card input{width:17px;height:17px;flex:0 0 auto;accent-color:var(--petrol)}
.check-row{display:flex;align-items:center;gap:9px;padding:11px 10px;border:1px solid var(--line);border-radius:13px;background:#fff;font-size:12px}
.check-row input{width:18px;height:18px;accent-color:var(--petrol)}
.family-subactions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-3px 3px 7px;padding:0 9px 8px;color:var(--muted);font-size:10px}
.text-action{padding:3px 0;border:0;background:none;color:var(--petrol);font-size:10px;font-weight:750;text-decoration:underline;cursor:pointer}
.owner-row{margin-bottom:9px}
.recipe-meta-line{display:flex;align-items:center;gap:6px;margin-bottom:15px;color:var(--muted);font-size:12px}
.recipe-meta-line svg{width:16px;height:16px;fill:none;stroke:var(--petrol);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sheet-section-title{margin:16px 0 8px;font-size:14px;letter-spacing:-.2px}
.recipe-ingredients{display:grid;gap:7px;margin:0;padding-left:18px;color:#536E72;font-size:12px}
.recipe-ingredients li{padding-left:2px}
.recipe-ingredients strong{color:var(--ink)}
.stock-line{margin-top:3px;color:#809091;font-size:10px}
.history-list{display:grid;gap:8px}
.history-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid var(--line);border-radius:15px;background:#fff;text-align:left;cursor:pointer}
.history-item strong{text-transform:capitalize;font-size:13px}
.history-item small{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.history-item svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:var(--petrol);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.recipe-step{padding:12px 13px;border:1px solid var(--line);border-radius:14px;background:#fff}
.recipe-step+.recipe-step{margin-top:8px}
.recipe-step strong{display:block;margin-bottom:4px;font-size:12px}
.recipe-step p{color:#536E72;font-size:12px;line-height:1.55}
.recipe-step-meta{display:block;margin:-1px 0 7px;color:#648084;font-size:11px}
.recipe-tip{margin-top:7px;padding-top:7px;border-top:1px solid var(--line)}
.recipe-variant{margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:16px;background:#F8F9F4}
.recipe-variant h4{font-size:14px;margin-bottom:5px}
.recipe-description{font-size:14px;line-height:1.55}
.recipe-ingredients li{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.recipe-ingredients li span{min-width:0}
.recipe-ingredients li small{display:block;margin-top:3px;color:#718489;font-size:11px;line-height:1.4}
.nutrition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.nutrition-grid span{padding:10px;border-radius:12px;background:#E8EFEA;color:var(--ink);font-size:12px;font-weight:650}
.ingredient-list{display:grid;gap:7px;margin-top:10px}
.ingredient-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 11px;border:1px solid var(--line);border-radius:13px;background:#fff}
.ingredient-row b{display:block;font-size:12px}
.ingredient-row small{display:block;margin-top:2px;color:var(--muted);font-size:10px}
.ingredient-amount{width:95px;min-height:38px;padding:7px;border:1px solid var(--line);border-radius:10px;background:#FCFCF9;text-align:right}
@media(min-width:700px){.app{box-shadow:0 0 40px #243f3c13}.head{height:82px}.main{padding-inline:4px}.bottom-nav{width:min(100%,540px)}}
@media(max-width:380px){.app{padding-inline:14px}.calendar-card{padding-inline:8px}.calendar-day,.calendar-empty{width:34px}.weekdays span{width:34px}.meal-card{padding:12px}.meal-actions{margin-left:45px}.meal-family,.meal-alert{margin-left:45px}.meal-name{font-size:15px}.quiet-button{padding-inline:9px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Spesa */
#monthly-note[hidden],#month-stepper[hidden],#update-banner[hidden],#manual-week-row[hidden]{display:none}
.period-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;border-radius:15px;background:#F1F4EF}
.period-tabs button{min-height:40px;padding:5px 7px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:11px;font-weight:680;line-height:1.25;cursor:pointer}
.period-tabs button.active{background:#fff;color:var(--petrol);box-shadow:0 2px 9px #183d4910}
.month-stepper{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px;margin-top:12px}
.month-stepper h2{text-align:center;font-size:16px;font-weight:750;letter-spacing:-.3px;text-transform:capitalize}
.shopping-summary{margin-top:13px}
.shopping-progress{display:block;width:100%;height:7px;margin-top:9px;border:0;border-radius:99px;background:#E8EFEA;overflow:hidden;appearance:none;-webkit-appearance:none}
.shopping-progress::-webkit-progress-bar{border-radius:99px;background:#E8EFEA}
.shopping-progress::-webkit-progress-value{border-radius:99px;background:#176E77;transition:width .2s ease}
.shopping-progress::-moz-progress-bar{border-radius:99px;background:#176E77}
.store-section{margin-top:21px}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 2px 9px}
.section-heading h2{font-size:15px;font-weight:760;letter-spacing:-.2px}
.store-filters{display:flex;gap:7px;overflow:auto;padding:1px 0 7px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.store-filters::-webkit-scrollbar{display:none}
.store-chip{flex:0 0 auto;min-height:34px;padding:0 13px;border:1px solid var(--line);border-radius:99px;background:#fff;color:#557277;font-size:11px;font-weight:650;cursor:pointer}
.store-chip.active{border-color:#D8E6DD;background:var(--sage);color:var(--petrol)}
.shopping-list{margin-top:13px}
.shopping-schedule{margin-top:18px;padding-top:4px}
.shopping-schedule+.shopping-schedule{margin-top:19px;border-top:1px solid var(--line);padding-top:18px}
.shopping-schedule>h2{margin:0 2px 9px;color:var(--petrol);font-size:16px;letter-spacing:-.25px}
.shopping-department{margin:14px 0 9px}
.shopping-department>h3{margin:0 3px 8px;color:#708487;font-size:12px;font-weight:800;letter-spacing:.7px;text-transform:uppercase}
.department-list{display:grid;gap:7px}
.shopping-item{min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:12px;border:1px solid #E5EBE6;border-radius:15px;background:#fff;box-shadow:0 3px 10px #183d4906;touch-action:pan-y}
.shopping-item.checked{background:#F6F8F4}
.shopping-check{width:29px;height:29px;display:grid;place-items:center;border:1.5px solid #B8CFC4;border-radius:9px;background:#fff;color:#fff;cursor:pointer}
.shopping-item.checked .shopping-check{border-color:var(--petrol);background:var(--petrol)}
.shopping-check svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.shopping-item-copy{min-width:0;display:grid;gap:2px}
.shopping-item-copy strong{font-size:16px;line-height:1.35;overflow-wrap:anywhere;text-align:left}
.shopping-item-copy span{display:flex;flex-wrap:wrap;align-items:center;gap:5px;color:var(--muted);font-size:14px;text-align:left}
.shopping-item-copy i{padding:1px 7px;border-radius:99px;background:#EEF2ED;color:#69817B;font-size:11px;font-style:normal}
.shopping-item.checked .shopping-item-copy strong{text-decoration:line-through;color:#829091}
.store-tag{min-height:34px;max-width:100px;overflow:hidden;padding:0 9px;border:0;border-radius:99px;background:#E8EFEA;color:var(--petrol);font-size:11px;font-weight:720;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.store-tag:not(.assigned){background:#F3F4EF;color:#758784}
.remove-manual{width:27px;height:27px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:#81918D;cursor:pointer}
.remove-manual svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.add-bottom{width:100%;min-height:44px;margin-top:15px;font-size:12px}
.add-bottom svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.option-row.selected{border-color:#B9CEC1;background:#EEF3EF}
.option-check{width:22px;flex:0 0 auto;color:var(--petrol);font-weight:750;text-align:center}
.sheet-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.sheet-buttons .action-button{min-height:44px;font-size:12px}
.fineprint{margin:13px 2px 4px;color:#829091;font-size:10px;line-height:1.5}
.section-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 14px;padding:4px;border-radius:15px;background:var(--sage)}
.section-switch a{min-height:37px;display:flex;align-items:center;justify-content:center;padding:0 8px;border-radius:11px;color:#58757A;font-size:11px;font-weight:700;text-decoration:none}
.section-switch a.active{background:#fff;color:var(--petrol);box-shadow:0 2px 8px #183d4910}
.pantry-controls{margin-top:12px}
.pantry-controls .section-heading{margin-bottom:9px}
.storage-filters{display:flex;gap:7px;overflow-x:auto;padding:0 0 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.storage-filters::-webkit-scrollbar{display:none}
.pantry-tools{display:grid;gap:10px;margin-top:8px}
.search-field{min-height:43px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--petrol)}
.search-field svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.search-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:12px}
.search-field input::placeholder{color:#A2AEAB}
.alert-setting{display:grid;grid-template-columns:1fr minmax(118px,auto);align-items:center;gap:10px;color:#607A7D;font-size:11px;font-weight:650}
.alert-setting .form-field{min-height:38px;padding:7px 9px;font-size:11px}
.pantry-summary{margin-top:11px}
.pantry-summary strong{font-weight:760}
.pantry-list{display:grid;gap:18px;margin-top:16px}
.pantry-group{display:grid;gap:8px}
.pantry-group .section-heading{margin-bottom:0}
.pantry-group .section-heading h2{font-size:15px}
.pantry-list-group{display:grid;gap:8px}
.pantry-card{min-width:0;overflow:hidden;padding:13px;border:1px solid #E5EBE6;border-radius:18px;background:#fff;box-shadow:0 3px 12px #183d4908}
.pantry-card.urgent{border-color:#EBC4B5;background:#FFFCFA}
.pantry-card.attention{border-color:#EBD9AD;background:#FFFEFA}
.pantry-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.pantry-card-title h3{font-size:14px;line-height:1.3;font-weight:760;letter-spacing:-.18px;overflow-wrap:anywhere}
.pantry-quantity{flex:0 0 auto;color:#526F72;font-size:12px;font-weight:730;text-align:right}
.pantry-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.place-tag,.leftover-tag{padding:3px 7px;border-radius:99px;background:var(--sage);color:#557574;font-size:9px;font-weight:700}
.leftover-tag{background:#FFF2DA;color:#80652C}
.expiry-status{display:flex;align-items:flex-start;gap:7px;margin-top:11px;color:#597274;font-size:11px;line-height:1.4}
.expiry-status b{display:block;font-weight:720}
.expiry-status small{display:block;margin-top:3px;color:#7A8987;font-size:10px;line-height:1.4}
.status-dot{width:7px;height:7px;flex:0 0 auto;margin-top:4px;border-radius:50%;background:#8FA47A}
.expiry-status.soon .status-dot,.expiry-status.review .status-dot,.expiry-status.past-bestbefore .status-dot{background:#D0A64A}
.expiry-status.today .status-dot,.expiry-status.past-useby .status-dot{background:#C87962}
.expiry-status.past-useby,.expiry-status.today{color:#874F41}
.expiry-status.past-bestbefore,.expiry-status.soon,.expiry-status.review{color:#7A622E}
.pantry-date{display:block;margin:9px 0 0 14px;color:#798A88;font-size:10px;line-height:1.4}
.muted-date{color:#9AA6A1}
.pantry-card-actions{display:flex;gap:7px;margin-top:11px;padding-top:10px;border-top:1px solid #EFF2EE}
.pantry-card-actions .action-button{flex:1;min-height:35px;font-size:10px}
body.sheet-open{overflow:hidden}
@media(max-width:360px){
 .app{padding-left:14px;padding-right:14px}
 .period-tabs{gap:3px}
 .period-tabs button{padding-inline:4px;font-size:10px}
 .shopping-item{grid-template-columns:26px minmax(0,1fr) auto auto;gap:5px;padding:8px}
 .store-tag{max-width:72px;padding-inline:6px}
 .pantry-card{padding:11px}
 .pantry-card-actions .action-button{padding-inline:7px;font-size:9px}
}
