:root{color-scheme:light;--canvas:#FAFBF7;--paper:#fff;--ink:#29382E;--muted:#727B73;--primary:#47634C;--primary-hover:#3C5640;--soft:#EEF3EA;--line:#E6EAE2;--warning:#895519;--warning-bg:#F9F0D8;--danger:#A34435;--danger-bg:#F9EDE8;--radius:16px;font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.5;background:var(--canvas);color:var(--ink)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:none;border:0;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}button:not(:disabled):active{opacity:.75}button,a{transition:background-color .14s,color .14s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7C9369;outline-offset:3px}a{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:23px;line-height:1.3;font-weight:600;letter-spacing:.015em}h2{font-size:21px;font-weight:600;line-height:1.4}h3{font-size:15px;font-weight:500}svg{width:22px;height:22px;stroke-width:1.8;flex-shrink:0}[hidden]{display:none!important}
.app-shell{max-width:760px;min-height:100dvh;margin:0 auto;background:var(--paper)}.app-header{display:flex;align-items:center;gap:10px;padding:24px 28px 20px;background:var(--paper)}.brand{text-decoration:none;display:flex;align-items:center;gap:11px}.brand-mark{display:grid;place-items:center;width:42px;height:46px;background:var(--soft);border-radius:14px;color:var(--primary)}.brand-mark svg{width:26px;height:26px}.space-label{font-size:11px;color:var(--muted);padding:7px 9px;background:var(--canvas);border:1px solid var(--line);border-radius:8px;min-height:34px;white-space:nowrap}.header-actions{display:flex;gap:2px;margin-left:auto}.icon-button{display:grid;place-items:center;min-width:44px;height:44px;border-radius:50%;color:var(--muted)}.icon-button:hover{background:var(--soft)}.main-content{padding:0 28px 120px}.loading-state{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:var(--muted);font-size:14px}.loading-state svg{width:36px;height:36px;color:var(--primary)}
.search-bar{display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid var(--line);border-radius:12px;background:var(--canvas);margin:1px 0 17px}.search-bar svg{width:18px;height:18px;color:var(--muted)}.search-bar input{border:0;background:none;width:100%;min-width:0;min-height:46px;color:var(--ink);outline:none}.search-bar button{min-width:36px;min-height:44px;display:grid;place-items:center}.attention-strip{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;background:var(--warning-bg);color:var(--warning);border-radius:12px;padding:12px 14px;margin:1px 0 20px;text-align:left;font-size:14px}.attention-strip>svg:first-child{width:19px;height:19px}.attention-strip>svg:last-child{margin-left:auto;width:16px;height:16px}.attention-strip strong{font-weight:600}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px}.section-heading>span{font-size:13px;color:var(--muted)}.zone-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);padding-bottom:12px}.zone-tab{display:flex;align-items:center;justify-content:center;gap:6px;font-size:14px;padding:8px 14px;min-height:44px;border-radius:10px;color:var(--muted)}.zone-tab svg{width:17px;height:17px}.zone-tab[aria-pressed="true"]{color:var(--primary);background:var(--soft);font-weight:500}
.food-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:17px 0;border-bottom:1px solid var(--line)}.food-info{min-width:0;display:flex;align-items:center;gap:13px;text-align:left;padding:0;min-height:48px}.food-icon{display:grid;place-items:center;width:38px;height:42px;flex:none;color:#71816B}.food-icon svg{width:27px;height:27px;stroke-width:1.65}.food-copy{min-width:0;display:block}.food-title{display:flex;align-items:baseline;gap:8px}.food-name{font-size:18px;font-weight:500;overflow-wrap:anywhere}.zone-mark{display:flex;color:#899187;align-items:center;gap:3px;font-size:11px;white-space:nowrap}.zone-mark svg{width:12px;height:12px}.food-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px;margin-top:5px;font-size:12px;color:var(--muted)}.added-date{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.added-date svg{width:13px;height:13px;opacity:.8}.status{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:12px}.status.warning{color:var(--warning)}.status.danger{color:var(--danger)}.status.check{color:var(--primary);font-weight:500}.status.quiet,.status.muted{color:var(--muted)}.status.warning:before,.status.danger:before,.status.check:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.done-button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:8px 11px;border:1px solid var(--line);border-radius:11px;background:var(--paper);font-size:13px;color:#657260;white-space:nowrap}.done-button svg{width:18px;height:18px}.done-button:hover{background:var(--soft);border-color:#CCD8C6}.list-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:54px;font-size:12px;color:var(--muted);width:100%;padding:12px 0;text-align:left}.list-footer>span{display:flex;align-items:center;gap:6px}.list-footer svg{width:15px;height:15px}.list-footer>svg{width:16px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;text-align:center;padding:32px 20px;gap:12px}.empty-state>svg{color:#A0B08F;width:45px;height:45px;stroke-width:1.3}.empty-state h2{font-size:19px}.empty-state p{font-size:14px;color:var(--muted)}.empty-state .primary-button{width:auto;padding-inline:25px;margin-top:9px}.small-note{font-size:12px;color:var(--muted);line-height:1.6}.page-note{margin:20px 0;font-size:12px;color:var(--muted)}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:10;max-width:760px;width:100%;padding:10px 30px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1.2fr 1fr;align-items:center;gap:25px;backdrop-filter:blur(10px)}.nav-button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:54px;color:#92998D;font-size:12px;border-radius:12px}.nav-button.is-active{color:var(--primary)}.nav-button svg{width:23px;height:23px}.nav-icon{position:relative;display:flex}.notice-dot{position:absolute;right:-5px;top:-1px;width:6px;height:6px;border-radius:50%;background:#B38535}.add-nav{display:flex;align-items:center;justify-content:center;gap:8px;min-height:49px;border-radius:15px;background:var(--primary);color:white;font-size:18px}.add-nav:hover,.primary-button:hover{background:var(--primary-hover)}.add-nav svg{width:22px;height:22px}
.reminder-group{margin-top:23px}.group-title{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;margin-bottom:1px}.group-title svg{width:17px;height:17px}.group-title span{margin-left:auto;font-size:12px}.group-title.warning{color:var(--warning)}.group-title.check{color:var(--primary)}.reminder-empty{font-size:13px;color:var(--muted);padding:18px 0}.reminder-source{font-size:12px;color:var(--muted);margin-top:4px}.alert-info{display:block;text-align:left;min-width:0;width:100%;padding:0}.alert-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.alert-top .status{white-space:normal;text-align:right}.alert-row{display:flex;gap:13px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.alert-row>svg:last-child{width:15px;color:var(--muted)}
.sheet{width:min(540px,calc(100% - 32px));padding:0;border:0;border-radius:25px;color:var(--ink);background:var(--paper);max-height:calc(100dvh - 52px);box-shadow:0 25px 80px #1B2E2426;overflow:auto;overscroll-behavior:contain}.sheet::backdrop{background:#26342B50;backdrop-filter:blur(2px)}body:has(.sheet[open]){overflow:hidden}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 24px 16px;position:sticky;top:0;background:var(--paper);z-index:2;border-radius:25px 25px 0 0}.sheet-heading{display:flex;align-items:center;gap:10px}.sheet-heading>svg{color:var(--primary);width:22px;height:22px}.sheet-header h2{font-size:21px}.sheet-header .icon-button{height:40px;min-width:40px}.sheet-header-actions{display:flex;gap:4px;align-items:center}.scan-shortcut{display:flex;align-items:center;gap:5px;min-height:42px;padding:7px 9px;border-radius:10px;font-size:13px;color:var(--primary)}.scan-shortcut svg{width:19px;height:19px}.sheet-body{padding:0 24px 22px}.sheet-footer{position:sticky;bottom:0;background:var(--paper);border-top:1px solid var(--line);padding:15px 24px calc(17px + env(safe-area-inset-bottom));z-index:2}.primary-button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:52px;padding:11px 16px;background:var(--primary);color:#fff;border-radius:13px;font-size:17px;font-weight:500}.primary-button svg{width:20px;height:20px}.secondary-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:10px 14px;font-size:14px}.secondary-button svg{width:18px;height:18px}.text-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;color:var(--muted);padding:9px 5px;font-size:14px;width:100%}.field-label{display:flex;align-items:center;gap:7px;font-size:14px;margin:17px 0 9px}.field-label svg{width:17px;height:17px;color:var(--muted)}.field-label .right-note{margin-left:auto;font-size:12px;color:var(--muted)}.zone-picker{display:flex;gap:9px;margin:0 0 19px}.zone-picker button{display:flex;justify-content:center;align-items:center;gap:8px;min-height:47px;flex:1;border:1px solid var(--line);border-radius:11px;font-size:15px}.zone-picker button svg{width:19px;height:19px;color:#8D9B83}.zone-picker button[aria-pressed="true"]{background:var(--soft);color:var(--primary);border-color:#BDCCB4}.zone-picker button[aria-pressed="true"] svg{color:var(--primary)}.favorite-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.favorite-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:65px;padding:12px 7px;background:var(--canvas);border:1px solid var(--line);border-radius:13px;font-size:16px;position:relative}.favorite-button svg{width:22px;height:22px;color:#89977D;stroke-width:1.65}.favorite-button[aria-pressed="true"]{border:2px solid var(--primary);padding:11px 6px;background:var(--soft);color:var(--primary)}.favorite-button[aria-pressed="true"] svg{color:var(--primary)}.favorite-button[aria-pressed="true"]:after{content:'✓';position:absolute;right:5px;top:0;font-size:12px}.name-input-wrap{display:flex;align-items:center;gap:8px;margin-top:17px}.name-input-wrap input{flex:1;min-width:0}.name-input-wrap button{display:grid;place-items:center;min-width:46px;height:46px;border:1px solid var(--line);border-radius:10px;color:var(--primary)}input:not([type=checkbox]):not([type=file]),textarea,select{border:1px solid var(--line);border-radius:10px;min-height:46px;padding:10px 12px;background:var(--paper);color:var(--ink);width:100%;min-width:0;font-size:16px}input::placeholder,textarea::placeholder{color:#8C9589}textarea{resize:vertical;min-height:76px}input[type=checkbox]{width:19px;height:19px;accent-color:var(--primary);flex:none}.selection-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.selection-chip{display:flex;align-items:center;gap:5px;background:var(--soft);color:var(--primary);font-size:13px;min-height:36px;border-radius:8px;padding:5px 8px;max-width:100%;overflow-wrap:anywhere}.selection-chip svg{width:14px;height:14px}.check-picker{display:flex;gap:7px}.check-picker button{flex:1;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:8px;font-size:14px}.check-picker button[aria-pressed="true"]{border-color:#BDCCB4;background:var(--soft);color:var(--primary)}.more-details{margin-top:17px;border-top:1px solid var(--line)}.more-details summary{cursor:pointer;font-size:13px;color:var(--muted);min-height:44px;display:flex;align-items:center;gap:6px;list-style:none}.more-details summary::-webkit-details-marker{display:none}.more-details summary svg{width:16px;height:16px}.more-details[open] summary svg{transform:rotate(90deg)}.hint-line{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-top:10px}.hint-line svg{width:14px;height:14px}.form-error{background:var(--danger-bg);color:var(--danger);border-radius:10px;padding:10px 12px;margin-top:14px;font-size:13px}.form-notice{background:var(--soft);color:var(--primary);border-radius:10px;padding:10px 12px;margin-bottom:15px;font-size:13px}.date-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.date-fields label{min-width:0}.date-fields .field-label{margin-top:12px}.checkbox-label{display:flex;align-items:center;gap:9px;min-height:44px;font-size:13px;margin:8px 0}.detail-hero{display:flex;align-items:center;gap:13px;margin:0 0 19px}.detail-hero .food-icon{width:51px;height:51px;background:var(--soft);border-radius:15px;color:var(--primary)}.detail-hero h3{font-size:19px}.detail-hero p{font-size:12px;color:var(--muted);margin-top:3px}.detail-actions{display:flex;gap:10px;margin-top:17px}.detail-actions>button{flex:1}.destructive{color:var(--danger)}.field-helper{font-size:12px;color:var(--muted);line-height:1.6;margin-top:6px}.menu-options{display:grid;gap:3px}.menu-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:12px 10px;min-height:55px;border-radius:11px;text-decoration:none;font-size:15px}.menu-row>svg:first-child{width:20px;height:20px;color:var(--muted)}.menu-row>svg:last-child{margin-left:auto;width:18px;height:18px;color:var(--primary)}.menu-row.active{background:var(--soft);color:var(--primary)}.menu-row:hover{background:var(--canvas)}.menu-divider{border:0;border-top:1px solid var(--line);margin:13px 0}.review-note{font-size:12px;color:var(--muted);padding:18px 10px 0}.history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.history-row strong{font-weight:500;font-size:16px}.history-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.history-row button{min-height:44px;font-size:14px;color:var(--primary);padding:8px}
.scanner-box{position:relative;aspect-ratio:4/3;background:#28352C;border-radius:15px;overflow:hidden;display:grid;place-items:center;margin-bottom:12px}.scanner-box video{width:100%;height:100%;object-fit:cover}.scanner-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:#EDF2E8;font-size:14px}.scanner-placeholder svg{width:66px;height:66px;stroke-width:1.2}.scanner-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}.scanner-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.scanner-status{font-size:13px;color:var(--muted);min-height:22px;margin:10px 0}.barcode-input{display:flex;gap:9px;margin:17px 0}.barcode-input button{min-width:58px}.scan-tips{font-size:12px;color:var(--muted);line-height:1.7;margin-top:17px}.toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:min(520px,calc(100% - 28px));width:max-content;display:flex;align-items:center;gap:12px;padding:10px 12px 10px 17px;border:1px solid #D4DFC9;background:#F1F6EC;color:var(--ink);border-radius:14px;box-shadow:0 7px 25px #25342b14;font-size:14px;z-index:50}.toast>span{overflow-wrap:anywhere}.toast button{min-height:40px;min-width:34px;color:var(--primary);font-size:14px;flex:none}.toast button#toast-undo{text-decoration:underline}.toast button svg{width:17px;height:17px}.noscript{padding:30px}
@media(min-width:900px){.app-shell{margin-block:24px;min-height:calc(100dvh - 48px);border-radius:24px;box-shadow:0 0 0 1px var(--line),0 8px 30px #3D503608;overflow:hidden}.app-header{padding:28px 36px 24px}.main-content{padding:0 36px 130px}.bottom-nav{bottom:20px;width:calc(100% - 48px);max-width:712px;border:1px solid var(--line);border-radius:19px;padding:9px 60px;gap:60px;box-shadow:0 4px 20px #2A382D08}.food-row{padding-block:19px}.food-name{font-size:19px}.food-meta{font-size:13px}.status{font-size:13px}}
@media(max-width:540px){.app-header{padding:19px 18px 17px;gap:7px}.brand{gap:9px}.brand h1{font-size:21px}.brand-mark{width:37px;height:41px;border-radius:13px}.brand-mark svg{width:24px;height:24px}.header-actions{gap:0}.header-actions .icon-button{min-width:39px;height:42px}.space-label{padding:5px 7px;min-height:31px;font-size:10px}.main-content{padding:0 18px 112px}.food-row{gap:8px;padding-block:16px}.food-info{gap:9px}.food-icon{width:30px}.food-icon svg{width:25px;height:25px}.food-meta{gap:4px 7px}.done-button{padding:7px 9px;font-size:12px;gap:4px}.done-button svg{width:17px;height:17px}.section-heading h2{font-size:20px}.zone-tab{padding-inline:13px}.bottom-nav{padding-inline:22px;gap:26px}.sheet{width:100%;margin:auto 0 0;max-width:none;max-height:94dvh;border-radius:24px 24px 0 0}.sheet-header{padding:19px 20px 14px}.sheet-body{padding:0 20px 20px}.sheet-footer{padding:13px 20px calc(16px + env(safe-area-inset-bottom))}.favorite-button{gap:7px;font-size:16px;min-height:62px}.favorite-button svg{width:20px;height:20px}.date-fields{gap:9px}.toast{font-size:13px;gap:7px}.alert-top{gap:8px}.alert-top .food-name{font-size:17px}}
@media(max-width:350px){.app-header{padding-inline:14px}.brand h1{font-size:20px}.brand-mark{width:31px;background:none}.header-actions .icon-button{min-width:34px}.main-content{padding-inline:14px}.food-icon{width:25px}.food-info{gap:7px}.food-title{gap:5px}.food-name{font-size:17px}.done-button{padding-inline:7px}.food-meta,.status{font-size:11px}.zone-mark{font-size:10px}.sheet-header{padding-inline:16px}.sheet-body{padding-inline:16px}.sheet-footer{padding-inline:16px}.favorite-button{font-size:15px;gap:5px}.favorite-button svg{width:18px}.date-fields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.conflict-values{margin-top:9px!important;overflow-wrap:anywhere}.conflict-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.conflict-actions .secondary-button{font-size:13px;min-height:44px;padding:8px 10px}

/* Review 2: compact reminders and logical refrigerator compartments. */
.stock-heading{margin-bottom:16px}.stock-heading>div:first-child{display:flex;align-items:baseline;gap:10px}.stock-count{font-size:12px;color:var(--muted)}.view-toggle{display:flex;align-items:center;gap:2px;background:var(--canvas);border:1px solid var(--line);border-radius:11px;padding:3px;flex:none}.view-toggle button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:6px 10px;font-size:13px;border-radius:8px;color:var(--muted)}.view-toggle svg{width:16px;height:16px}.view-toggle button[aria-pressed=true]{background:var(--paper);color:var(--primary);box-shadow:0 1px 3px #29382E12}.zone-tab>span{font-size:12px;color:var(--muted)}.zone-overview{display:grid;gap:14px}.compartment{border:1px solid #DCE5D6;border-radius:17px;overflow:hidden;align-self:start}.compartment-header{display:flex;align-items:center;gap:8px;background:var(--soft);padding:8px 10px 8px 15px;min-height:62px}.compartment-header h3{display:flex;align-items:center;gap:7px;font-size:17px;font-weight:500;color:var(--primary)}.compartment-header h3>svg{width:20px;height:20px}.compartment-header h3>span{font-size:12px;font-weight:400;color:var(--muted);margin-left:3px}.zone-due{font-size:11px;padding:3px 7px;border-radius:6px;background:var(--warning-bg);color:var(--warning);margin-left:auto;white-space:nowrap}.zone-add{display:grid;place-items:center;width:44px;height:44px;border-radius:9px;color:var(--primary);margin-left:auto;flex:none}.zone-due+.zone-add{margin-left:0}.zone-add:hover{background:#DFE8D9}.zone-add svg{width:19px;height:19px}.compartment-foods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:5px 13px 8px;gap:0 12px}.zone-food{text-align:left;padding:12px 2px;min-width:0;border-bottom:1px solid var(--line)}.zone-food:last-child,.zone-food:nth-last-child(2):nth-child(odd){border-bottom:0}.zone-food-title{display:flex;align-items:center;gap:7px;font-size:17px;font-weight:500;overflow-wrap:anywhere;line-height:1.5}.zone-food .food-icon{width:23px;height:30px}.zone-food .food-icon svg{width:22px;height:22px}.zone-food-date{display:block;font-size:11px;color:var(--muted);margin:3px 0 2px 30px}.zone-food>.status{margin-left:30px;white-space:normal;font-size:12px}.zone-empty{grid-column:1/-1;min-height:80px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px}.check-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.check-picker button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;padding:8px 5px}.check-picker svg{width:15px;height:15px}.check-preview{font-size:12px;color:var(--primary);margin-top:8px;min-height:18px}.custom-check .field-label{font-size:12px;margin:12px 0 6px}.custom-check input{min-height:44px}
@media(min-width:660px){.zone-overview{grid-template-columns:1fr 1fr;gap:16px}.compartment-header{padding-left:12px}.compartment-foods{padding-inline:11px;gap:0 8px}.zone-food-title{font-size:16px;gap:5px}.zone-food-date,.zone-food>.status{margin-left:28px}.zone-due{padding-inline:5px}}
@media(max-width:350px){.stock-heading>div:first-child{display:block}.stock-count{font-size:11px}.view-toggle button{padding-inline:8px}.zone-tab{padding-inline:10px;gap:5px}.compartment-foods{padding-inline:10px;gap:0 8px}.zone-food-title{font-size:16px}.zone-food-date,.zone-food>.status{margin-left:0}}
