:root{color-scheme:light;--ink:#183a32;--brand:#175643;--paper:#f7f7ef;--card:#fffef9;--line:#d8dfd1;--muted:#53655c;--gold:#e4d098;--soft:#edf1e6}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.58 "PingFang SC","Microsoft YaHei",system-ui,sans-serif}a{color:var(--brand);text-underline-offset:3px}main,.wrap,.shell{width:min(100% - 36px,720px);margin:0 auto}main{padding:20px 0 46px}header.top,.mast{background:var(--paper);border-bottom:1px solid var(--line)}.mast .wrap,.top-inner{display:flex;justify-content:space-between;align-items:center;min-height:58px}.wordmark{font:700 26px/1.2 "Songti SC",SimSun,serif;letter-spacing:.11em;text-decoration:none}
h1,h2,h3,p{overflow-wrap:anywhere}h1,h2{line-height:1.3}h1{font-family:"Songti SC",SimSun,serif;font-size:clamp(30px,7vw,44px);margin:18px 0 10px}h2{font-size:21px;margin:22px 0 12px}h3{font-size:17px}p{margin:7px 0 13px}.muted,.meta,small{color:var(--muted)}button,input,select,textarea{font:inherit}input:not([type=radio]):not([type=checkbox]),select,textarea{max-width:100%;min-height:44px;background:var(--card);color:var(--ink);border:1px solid #a6b5a7;border-radius:7px;padding:8px 10px}button,.button{cursor:pointer;border:1px solid var(--line);border-radius:7px;color:var(--brand);background:var(--card);min-height:43px;padding:8px 13px}button:disabled{opacity:.55;cursor:not-allowed}button.primary,.button.primary{background:var(--brand);color:white;border-color:var(--brand)}:focus-visible{outline:3px solid #aa711b;outline-offset:3px}.panel,.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px;margin:12px 0}.site-nav{display:flex;flex-wrap:wrap;gap:15px;justify-content:center;margin-top:24px}.site-nav a{padding:6px 0}.hero{background:#164e3e;color:#fffdf1;border-radius:18px;padding:26px 23px 25px;box-shadow:0 5px 17px #26473711}.hero h1{margin:0 0 8px;color:white;font-weight:600}.hero p{color:#dce7d7;font-size:15px}.hero .button{display:inline-flex;align-items:center;text-decoration:none;background:#f0e1b3;color:#253d2c;border:none;font-weight:700;margin-top:6px}.feature-row{background:var(--card);padding:15px 16px;border:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;color:var(--ink);border-radius:12px;margin:10px 0}.feature-row strong,.tile strong{display:block;font-size:18px}.feature-row small,.tile small{display:block;margin-top:3px;font-size:14px}.feature-row .go,.tile .go{color:var(--brand);font-size:24px}.duo{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:121px;padding:15px 16px;border-radius:12px;background:#e7eddf;text-decoration:none;color:var(--ink)}.tile:nth-child(2){background:#eee8d8}.tile .go{align-self:flex-end;line-height:1}.local-date{color:var(--muted);font-size:14px}.member-tag{color:var(--brand);font-size:14px}.mobile-nav{display:flex;justify-content:space-around;gap:6px;position:sticky;bottom:0;background:var(--card);border-top:1px solid var(--line);padding:9px 8px max(9px,env(safe-area-inset-bottom));text-align:center}.mobile-nav a{font-size:14px;padding:5px;text-decoration:none;color:var(--ink)}.mobile-nav a[aria-current=page]{color:var(--brand);font-weight:750;text-decoration:underline;text-decoration-thickness:2px}.section-title{display:flex;justify-content:space-between;align-items:baseline}.section-title p{margin:0;font-size:13px}
.scan-code{width:min(100%,320px);height:auto;display:block;margin:6px auto;image-rendering:pixelated}.scan-caption{text-align:center;color:var(--muted)}@media(min-width:760px){.hero{padding:35px}.duo .tile{min-height:125px}.mobile-nav{max-width:760px;margin:auto}}

/* Mobile customer homepage */
.food-home{--home-ink:#213b30;--home-paper:#f8f7f1;--home-line:#dcded2;background:var(--home-paper);color:var(--home-ink)}
.food-home [hidden]{display:none!important}
.food-home .mast{background:transparent;border-bottom:0}
.food-home .home-mast,.food-home .home-front{width:min(calc(100% - 36px),608px)}
.food-home .home-mast{min-height:47px;border-bottom:1px solid var(--home-line)}
.home-brand{display:flex;align-items:center;gap:12px}
.home-brand .wordmark{font:700 20px/1.2 "Songti SC",SimSun,serif;letter-spacing:.04em;color:#214534}
.home-brand .local-date{font-size:13px;color:#5e6c60}
.home-help{position:relative;z-index:3}
.home-help summary,.home-week summary{cursor:pointer;list-style:none}
.home-help summary::-webkit-details-marker,.home-week summary::-webkit-details-marker{display:none}
.home-help summary{display:flex;align-items:center;justify-content:flex-end;min-height:44px;min-width:44px;font-size:14px;color:var(--brand)}
.home-help>div{position:absolute;top:100%;right:0;width:min(240px,80vw);padding:14px 17px;border:1px solid var(--home-line);border-radius:12px;background:#fffef9;box-shadow:0 8px 24px #25362620;font-size:14px}
.home-help p{margin:0 0 5px;line-height:1.5}.home-help a{display:block;padding:6px 0}
.home-front{padding:14px 0 88px}
.home-front .home-title{font:700 clamp(30px,8vw,43px)/1.25 "PingFang SC","Microsoft YaHei",system-ui,sans-serif;letter-spacing:-.03em;margin:0 0 13px}
.home-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.home-food-search{margin:0 0 15px}
.home-search-bar{display:flex;align-items:center;gap:4px;border:1px solid #a8b7a7;border-radius:13px;padding:0 3px 0 12px;height:48px;background:#fffefa}
.home-search-bar:focus-within{border-color:#497258;box-shadow:0 0 0 2px #355b4220}
.food-home .home-search-bar input[type=search]{min-width:0;flex:1;height:44px;min-height:44px;background:transparent;border:0;border-radius:0;padding:0 3px;color:var(--home-ink);font-size:16px}
.food-home .home-search-bar input[type=search]:focus-visible{outline:none}
.food-home .home-search-bar button{height:40px;min-height:40px;padding:0 13px;border:0;border-radius:10px;color:white;background:#28573d;font-weight:600;font-size:15px}
.home-hints{display:flex;gap:6px;margin:7px 0 0}
.home-hints a{display:flex;align-items:center;padding:0 13px;min-height:36px;border-radius:7px;background:#e9eddf;font-size:14px;text-decoration:none}
#home-matches{padding:10px 12px 2px;margin-top:9px;background:#fffefa;border:1px solid var(--home-line);border-radius:12px}
#match-status{font-size:13px;color:#5a6e5d;margin:0 0 2px}
#match-list{list-style:none;margin:0;padding:0}
#match-list a{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:48px;border-bottom:1px solid var(--home-line);color:var(--home-ink);text-decoration:none}
#match-list a>strong{font-size:16px}#match-list a>span{white-space:nowrap;color:#5e715d;font-size:13px}
.home-results-link{display:inline-flex;align-items:center;min-height:43px;text-decoration:none;font-size:14px}
.home-lead,.home-side-dishes a{position:relative;display:block;overflow:hidden;text-decoration:none;color:var(--home-ink);border-radius:13px;-webkit-tap-highlight-color:#36473220}
.home-lead{background:#425d40;aspect-ratio:1.84;color:#fff}
.home-lead img,.home-side-dishes img{display:block;width:100%;height:100%;object-fit:cover}
.home-lead::after{content:"";position:absolute;inset:30% 0 0;background:linear-gradient(transparent,#171c128c 85%);pointer-events:none}
.home-lead-title{position:absolute;z-index:1;bottom:12px;left:15px;right:12px;display:flex;justify-content:space-between;align-items:flex-end;gap:12px;color:#fffef8}
.home-lead-title strong{font:700 clamp(24px,7vw,36px)/1.25 "Songti SC","Microsoft YaHei",sans-serif;letter-spacing:.015em;text-shadow:0 1px 4px #131c17b0}
.home-lead-title>span{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:14px;background:#fffaf0ed;color:#28462d;font-size:13px;font-weight:600}
.home-lead-title b,.home-side-dishes b,.home-browse b{font-weight:500}
.home-side-dishes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.home-side-dishes a{border:1px solid var(--home-line);background:#fffefa}
.home-side-dishes img{height:auto;aspect-ratio:1.84}
.home-side-dishes a>span{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:41px;padding:6px 10px;font-size:16px;font-weight:650}
.home-side-dishes b{font-size:20px;line-height:1;color:#697965}
.home-browse{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:2px 0 9px}
.home-browse a,.home-week-all{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:14px}
.home-browse a:first-child{gap:7px;font-weight:650}.home-browse a:last-child{color:#526350}
.home-week{border:1px solid #ced8c5;background:#eaf0e2;border-radius:12px}
.home-week summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px}
.home-week summary strong,.home-week summary small{display:block}
.home-week summary strong{font-size:19px;line-height:1.4}
.home-week summary small{font-size:13px;color:#536650;margin-top:2px}
.home-week summary b{font-weight:500;font-size:24px;line-height:1;color:#52714c}
.home-week[open] summary b{transform:rotate(180deg)}
.home-week-body{padding:0 15px 1px}
.home-week .group-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.home-week .group-links a{display:grid;align-items:center;min-height:40px;padding:3px 2px;background:#fbfcf5;border:1px solid #cdd7c5;border-radius:7px;color:var(--home-ink);font-size:13px;text-align:center;text-decoration:none}
.home-week-all{font-size:14px;min-height:41px}
.home-records .section-title{align-items:center;margin-top:18px}
.home-records h2{margin:0 0 9px;font-size:19px}
.home-records .member-tag{margin-bottom:9px;font-size:13px;text-decoration:none}
.home-front .duo{gap:10px}
.home-front .tile{min-height:88px;padding:10px 12px;border-radius:10px}
.home-front .tile strong{font-size:16px}.home-front .tile small{font-size:13px}
.home-front .feature-row{min-height:49px;border:0;border-bottom:1px solid var(--home-line);background:transparent;border-radius:0;margin:0;padding:8px 2px;font-size:16px}
.home-front+.mobile-nav{position:fixed;z-index:2;bottom:0;left:0;right:0;margin:auto;max-width:650px;background:#fffef7f7;backdrop-filter:blur(9px);padding:2px 6px max(2px,env(safe-area-inset-bottom))}
.home-front+.mobile-nav a{flex:1;display:grid;place-items:center;min-height:46px}
@media(max-width:350px){.food-home .home-front,.food-home .home-mast{width:calc(100% - 28px)}.home-side-dishes{gap:9px}.home-week .group-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:600px){.home-front{padding-top:23px}.home-lead{aspect-ratio:2.25}.home-side-dishes img{aspect-ratio:2.4}}


#match-list .match-caption{flex:1}#match-list .match-caption strong{font-size:16px}#match-list .match-caption small{display:block;color:#586b59;font-size:12px}#match-list a img{width:52px;height:39px;flex:none;border-radius:7px;object-fit:cover}

/* Mobile health journal and knowledge home */
.record-front{padding-top:16px}
.daily-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.daily-heading .home-title,.daily-heading h2{margin:0;color:#213e31}
.daily-heading h2{font-size:23px;line-height:1.35}
.daily-heading .member-tag{font-size:14px;text-decoration:none;color:#426450}
.record-photo{position:relative;display:flex;min-height:132px;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;background:linear-gradient(108deg,#184b39,#2c6248);border-radius:18px;color:#fffef4;text-decoration:none;overflow:hidden}
.record-caption{display:grid;gap:2px}.record-caption strong{font-size:27px;line-height:1.35}
.record-caption>span{color:#d6e6d5;font-size:15px}
.record-caption b{margin-top:9px;display:flex;align-items:center;justify-content:space-between;gap:14px;width:max-content;color:#fff4c9;font-size:14px;font-weight:600}
.record-caption i{font-style:normal}
.record-finder{position:relative;width:76px;height:67px;margin-right:8px;opacity:.88;background:linear-gradient(#d4e5bc,#d4e5bc) left top/16px 2px,linear-gradient(#d4e5bc,#d4e5bc) left top/2px 13px,linear-gradient(#d4e5bc,#d4e5bc) right top/16px 2px,linear-gradient(#d4e5bc,#d4e5bc) right top/2px 13px,linear-gradient(#d4e5bc,#d4e5bc) left bottom/16px 2px,linear-gradient(#d4e5bc,#d4e5bc) left bottom/2px 13px,linear-gradient(#d4e5bc,#d4e5bc) right bottom/16px 2px,linear-gradient(#d4e5bc,#d4e5bc) right bottom/2px 13px;background-repeat:no-repeat}
.record-finder i{position:absolute;inset:10px 22px;border:2px dashed #aec9ac;border-radius:50%}
.record-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.record-pair a{position:relative;display:grid;padding:14px 14px 12px;border:1px solid #d3ddca;border-radius:13px;background:#e9efdf;color:#263f30;text-decoration:none}
.record-pair a:nth-child(2){background:#f3eddf;border-color:#e4d9c5;color:#513f27}
.record-pair strong{font-size:18px;line-height:1.5}
.record-pair small{font-size:14px;line-height:1.45;color:#52644f}
.record-pair a:nth-child(2) small{color:#695945}
.record-glyph{display:inline-block;width:23px;height:19px;position:relative;margin-bottom:4px;color:#426a48}
.record-glyph.steps:before,.record-glyph.steps:after{content:"";position:absolute;width:7px;height:13px;border-radius:60%;background:currentColor;transform:rotate(24deg);left:4px;bottom:0}
.record-glyph.steps:after{left:14px;bottom:6px;transform:rotate(12deg);height:12px}
.record-glyph.pulse{width:22px;height:17px;margin-top:2px;border:1.8px solid #877046;border-radius:4px}
.record-glyph.pulse:before{position:absolute;content:"";left:4px;right:4px;top:2px;height:6px;border:1px solid #877046;border-radius:50% 50% 40% 40%}
.front-knowledge{margin:24px 0 10px}
.topic-form{display:flex;gap:5px;align-items:center;background:#fffef8;border:1px solid #bfcbbb;border-radius:12px;min-height:46px;padding:3px}
.topic-form input{font:inherit;font-size:15px;color:#263e2e;flex:1;min-width:0;border:0;background:transparent;padding:5px 8px}
.topic-form button{font-family:inherit;font-size:14px;font-weight:650;background:#e5eddf;color:#254c38;border:0;border-radius:8px;padding:9px 12px;min-height:37px}
.knowledge-pair{display:grid;gap:8px;margin-top:10px}
.knowledge-pair a{display:flex;align-items:center;gap:12px;padding:7px 12px 7px 7px;border:1px solid #d6ddce;background:#fffef8;border-radius:12px;text-decoration:none;color:#233f30}
.knowledge-pair img,.book-cover{display:block;flex:none;width:64px;height:50px;object-fit:cover;border-radius:7px}
.knowledge-pair strong,.knowledge-pair small{display:block}
.knowledge-pair strong{font-size:17px;line-height:1.4}
.knowledge-pair small{color:#586a58;font-size:13px}
.knowledge-pair b{margin-left:auto;font-size:23px;line-height:1;color:#587458;font-weight:400}
.book-cover{display:grid;place-items:center;background:#e1ead7}
.book-cover em{width:29px;height:23px;border:2px solid #698563;border-radius:3px;background:linear-gradient(to right,transparent 46%,#698563 46%,#698563 54%,transparent 54%);transform:rotate(-6deg)}
.home-utilities{display:flex;flex-wrap:wrap;gap:16px;margin-top:10px}
.home-utilities a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:#4e6650}
.library-hub{width:min(calc(100% - 32px),720px);padding-inline:0}
.library-hub .act-title{margin-bottom:10px}
.kb-tabs{display:flex;gap:7px;align-items:center;margin-bottom:16px}
.kb-tabs a{display:inline-flex;text-decoration:none;align-items:center;min-height:40px;padding:6px 14px;border-radius:22px;background:#e9eddf}
.kb-tabs a[aria-current]{color:white;background:#28583f;font-weight:650}
.food-section{background:transparent}.food-section .home-lead{color:#fff}
.food-section .home-search-bar input[type=search]{width:initial}
.food-section .home-search-bar button{white-space:nowrap}
.food-section .home-food-search{margin-top:0}.food-section .home-search-bar input[type=search]{margin:0}
.library-hub .food-section label.home-sr{display:block}
.record-front :focus-visible,.library-hub :focus-visible{outline:3px solid #9e742d;outline-offset:2px}
#entry,#records,.journal-panel{scroll-margin-top:10px}
body:has(> .mobile-nav) main{padding-bottom:85px}
body>.mobile-nav{position:fixed;z-index:4;bottom:0;left:0;right:0;max-width:760px;margin:auto;background:#fffef8f5;backdrop-filter:blur(8px);padding:3px 5px max(3px,env(safe-area-inset-bottom))}
body>.mobile-nav a{flex:1;display:grid;place-items:center;min-height:46px}
@media(max-width:350px){.record-photo{padding:16px}.record-caption strong{font-size:25px}.record-pair a{padding:11px}.knowledge-pair small{font-size:12px}.front-knowledge{margin-top:20px}}


.knowledge-ask {margin:14px 0;padding:16px;background:#f2f5ec;border:1px solid #d8e1cf;border-radius:14px;color:#253f32;scroll-margin-top:12px}
.knowledge-ask .kb-form {margin:0}
.knowledge-ask .kb-form label {display:block;margin:0 0 8px;font-size:17px;font-weight:700;color:#244735}
.kb-input-row {display:flex;gap:8px;align-items:stretch}
.knowledge-ask .kb-form textarea {display:block;flex:1;min-width:0;width:100%;margin:0;padding:9px 12px;border:1px solid #bdcdb8;background:#fffefa;border-radius:9px;font:inherit;font-size:16px;line-height:1.45;color:#23392d;resize:vertical;box-sizing:border-box}
.knowledge-ask .kb-form button {min-height:44px;width:auto;margin:0;padding:8px 14px;line-height:1.35;font-size:15px;font-weight:650;background:#29503b;color:#fff;border:0;border-radius:9px;cursor:pointer}
.knowledge-ask .kb-form button:disabled {opacity:.65;cursor:wait}
.knowledge-ask .kb-form button.kb-cancel {background:transparent;color:#405c47}
.knowledge-ask .kb-purpose,.knowledge-ask .kb-state {font-size:14px;margin:8px 0 0;color:#526253;line-height:1.55}
.knowledge-ask .kb-state:empty {display:none}
.knowledge-ask .kb-error {color:#8b3426}
.knowledge-ask [hidden] {display:none!important}
.kb-confirm {margin-top:12px;padding:12px;background:#fffdf6;border:1px solid #d9dfcf;border-radius:9px}
.knowledge-ask .kb-confirm p {margin:0 0 10px;font-size:15px;line-height:1.55}
.kb-answer {margin-top:12px;padding:12px 0 0;border-top:1px solid #c6d3c0;overflow-wrap:anywhere}
.knowledge-ask .kb-answer p {white-space:pre-line;margin:5px 0 12px;font-size:16px;line-height:1.65}
.kb-answer h4,.kb-answer h5 {font-size:17px;margin:8px 0 4px;line-height:1.4}
.kb-answer a {color:#255b3b;text-decoration:underline;text-underline-offset:3px}
.kb-answer li {font-size:14px;line-height:1.55}
.kb-answer details {margin:12px 0 0}
.kb-answer summary {display:list-item;cursor:pointer;font-weight:600}
.kb-answer ul {margin:8px 0 0;padding-left:19px}
.kb-answer li {margin-top:7px}


.kb-service {display:block;margin:-2px 0 8px;color:#45614b;font-size:14px;line-height:1.45}
.kb-service:empty {display:none}
.kb-privacy {margin:9px 0 0;color:#506251;font-size:14px;line-height:1.55}
.kb-privacy summary {cursor:pointer;display:list-item}
.kb-privacy p {margin:6px 0 0}

.kb-source-panel summary,.kb-meal-portions summary {padding:7px 0;color:#395c43;font-size:14px}
.kb-swap-meal {min-height:40px;margin:3px 0 0;padding:5px 13px;font:inherit;font-size:15px;color:#254c38;background:#ecf1e8;border:1px solid #c2cfc1;border-radius:8px;}
.kb-source-panel article,.kb-result-reader {padding:9px 0;border-top:1px solid #d7e0d1}
.kb-source-panel article small,.kb-result-reader small {display:block;margin:4px 0;color:#556957}
.kb-source-panel article>a,.kb-kitchen-link {display:block;width:fit-content;margin:7px 0;line-height:1.55}
.kb-results li a {display:inline-block;padding:5px 0}
.kb-more-results {width:auto;padding:5px 0;margin-top:5px;background:transparent;border:0;color:#28543b;text-decoration:underline;font:inherit;cursor:pointer}
.kb-search-more {display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-top:8px}
.kb-search-link {display:inline-block;padding:8px 0;color:#28543b;text-decoration:underline}
.kb-net-note {color:#576756;font-size:14px}
.knowledge-ask .kb-form .kb-cloud {margin:6px 0 0;padding:4px 0;min-height:36px;color:#2c583a;background:transparent;text-decoration:underline}
