:root{color-scheme:light;--paper:#faf7f0;--white:#fffefa;--ink:#30372c;--muted:#74796b;--line:#e8e5d9;--orange:#cf4a2d;--green:#334c39;--soft-green:#edf0e5;--soft-orange:#f7e7d8;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:#eaece3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:default}button,input,select,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #cb6c3f;outline-offset:3px}button{color:inherit}h1,h2,h3,p{margin:0}h2{font-size:21px;letter-spacing:-.5px}h3{font-size:17px}input,select{width:100%;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:13px;background:var(--white);padding:10px 13px;color:var(--ink)}input::placeholder{color:#93958a}.workspace{display:grid;grid-template-columns:330px minmax(320px,430px);justify-content:center;align-items:start;gap:72px;max-width:1050px;margin:0 auto;padding:44px 28px}.intro{padding:20px 0;position:sticky;top:44px}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:650;letter-spacing:1px}.brand-icon{font-size:24px;width:44px;height:44px;display:grid;place-items:center;background:#f5efda;border-radius:15px}.intro-copy{margin-top:86px}.overline{font-size:11px;letter-spacing:3px;color:#7d7059;font-weight:600}.intro-copy h1{font-size:46px;line-height:1.32;letter-spacing:-2px;margin-top:18px;font-weight:650}.intro-copy p{font-size:17px;line-height:1.8;color:var(--muted);margin-top:24px}.intro-steps{display:grid;gap:17px;margin-top:60px;color:#5c6856;font-size:13px}.intro-steps b{font-weight:500;font-size:11px;color:#9ba38e;margin-right:13px}.prototype-label{display:flex;align-items:center;gap:9px;font-size:11px;color:#7d8576;margin-top:70px}.status-dot{width:6px;height:6px;background:#788d5a;border-radius:50%}.app-shell{width:100%;min-width:0;background:var(--paper);border:1px solid #e1dfd2;border-radius:28px;box-shadow:0 20px 60px #3e48261a;overflow:clip;position:relative}.app-header{height:67px;padding:0 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eeeadf;background:var(--paper)}.app-title{font-size:15px;font-weight:650;letter-spacing:.5px}.app-title span{margin-left:4px}.local-badge{font-size:10px;color:#868878;border:1px solid #dedfd0;padding:3px 9px;border-radius:20px}.screen{padding:24px 23px 22px;min-height:670px}.hero{padding-top:3px}.hero h2{font-size:32px;line-height:1.35;letter-spacing:-1.5px;margin:10px 0 12px;font-weight:650}.coral{color:var(--orange)}.muted{color:var(--muted);font-size:12px}.small{font-size:11px}.section-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-row h3{font-size:14px}.section-label{font-size:13px;font-weight:600;display:block}.section-gap{margin-top:23px}.text-button{border:0;background:transparent;padding:8px 0;color:var(--orange);min-height:38px;font-size:12px}.segment{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.chip{border:0;background:#eeeade;border-radius:20px;padding:9px 17px;line-height:1.3;min-height:38px;font-size:12px;transition:background .15s,color .15s}.chip.is-selected{background:var(--green);color:#fff}.mode-segment{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:5px;border-radius:15px;background:#eeeadf;margin-top:15px}.mode-segment .chip{background:transparent;border-radius:11px;padding:9px 8px}.mode-segment .chip.is-selected{background:var(--white);color:var(--green);box-shadow:0 2px 5px #302e2010;font-weight:650}.budget-row{display:flex;align-items:center;justify-content:space-between;margin-top:19px;gap:12px}.budget-input{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.budget-input input{width:75px;min-height:38px;padding:6px 8px;text-align:center;font-weight:600;color:var(--ink)}.memory-line{display:flex;gap:9px;align-items:flex-start;background:var(--soft-green);border-radius:12px;padding:11px 13px;margin-top:18px;font-size:11px;line-height:1.6;color:#586a4d}.memory-symbol{font-size:14px}.card{background:var(--white);border:1px solid var(--line);border-radius:21px;padding:20px;margin-top:18px}.start-card{text-align:center;padding:20px 19px}.food-illustration{min-height:144px;display:grid;place-items:center;background:#f0e9d4;border-radius:16px;position:relative;isolation:isolate;overflow:hidden;margin:14px 0 17px}.food-illustration::before{content:"";width:132px;height:132px;border-radius:50%;background:#e4dbc0;position:absolute;bottom:-42px;left:calc(50% - 66px);z-index:-1}.food-illustration .emoji{font-size:88px;line-height:1;filter:drop-shadow(0 6px 5px #7b4b2514);padding:14px}.start-card .food-illustration{min-height:144px;background:transparent;margin:0 0 15px}.start-card .food-illustration::before{bottom:0;background:#f2ead6;width:128px;height:128px;left:calc(50% - 64px)}.start-card h3{font-size:17px;letter-spacing:-.3px}.start-card p{margin:8px 0 20px}.button{border:0;padding:13px 17px;border-radius:13px;font-weight:550;font-size:13px;line-height:1.5;min-height:45px}.button.primary{background:var(--orange);color:white}.button.secondary{background:#f0ece1;color:#565f4a}.button.ghost{background:transparent;color:#828473;font-size:12px}.full{width:100%}.pill{display:inline-flex;font-size:10px;border-radius:20px;background:var(--soft-green);padding:4px 9px;color:#657653;white-space:nowrap}.food-title{font-size:24px;line-height:1.3;letter-spacing:-.7px}.food-subtitle{margin-top:6px}.food-price{margin:16px 0 10px;font-weight:650;font-size:16px}.reasons{display:grid;gap:6px;font-size:11px;color:#647254;list-style:none;padding:0;margin:10px 0 21px}.reasons li::before{content:'✓';margin-right:7px;color:#6f8c51}.action-row{display:flex;gap:8px;margin-top:8px}.action-row>*{flex:1}.summary-row{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;color:var(--ink);cursor:pointer}.summary-row .amount{font-size:28px;font-weight:650;letter-spacing:-1px;margin-top:2px}.summary-row .count{font-size:12px;color:var(--orange)}.demo-note{font-size:10px;text-align:center;color:#8a8b7c;line-height:1.8;padding:17px 5px 0}.bottom-nav{position:sticky;bottom:0;background:#fffefaed;backdrop-filter:blur(10px);display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);z-index:3;padding:8px 10px 12px}.nav-item{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:transparent;color:#8c8e80;font-size:10px;min-height:47px;padding:3px}.nav-item>span{font-size:22px;line-height:1.3}.nav-item.active{color:var(--orange);font-weight:600}.pantry-section{background:#f1efdf;border-radius:14px;padding:14px;margin-top:17px}.pantry-section input{margin-top:9px;font-size:12px}.pantry-section .segment{gap:6px;margin-top:8px}.pantry-section .chip{padding:8px 11px;font-size:11px}.time-label{font-size:11px;color:#70755e;margin-top:13px;display:block}.recipe-title{font-size:13px;font-weight:600;margin-top:18px}.recipe-text{font-size:12px;line-height:1.8;color:#616b56;margin-top:7px}.recipe-steps{padding-left:20px;margin:8px 0 0;font-size:12px;color:#616b56;line-height:1.8}.recipe-steps li{padding:5px 0}.recipe-note{font-size:10px;line-height:1.7;color:#8b8b79;margin:10px 0 20px}.missing{font-size:11px;color:#707057;background:#f3efdd;padding:11px 12px;border-radius:11px;margin-top:11px}.empty-state{text-align:center;padding:32px 16px}.empty-state p{margin:10px 0 18px}.empty-icon{font-size:50px;margin-bottom:12px}.error{color:#ac3d29;font-size:12px;background:#faece4;border-radius:12px;padding:12px;margin:12px 0;overflow-wrap:anywhere}.money-large{font-size:40px;line-height:1.2;font-weight:650;letter-spacing:-1.4px;margin-top:7px;font-variant-numeric:tabular-nums}.money-large .unit{font-size:23px;margin-right:4px}.stat-row{display:flex;border-top:1px solid #efecdf;margin-top:20px;padding-top:16px}.stat-row>div{flex:1}.stat-row strong{display:block;font-size:20px;font-weight:600;margin-top:3px}.record-group .section-row{margin-bottom:6px}.record-item{padding:16px 0;border-bottom:1px solid #efecdf}.record-item:last-child{border:0;padding-bottom:0}.record-item .record-name{font-weight:600;font-size:14px;overflow-wrap:anywhere}.record-item .section-row{align-items:flex-start}.record-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;color:var(--muted);font-size:11px}.record-meta button{min-height:32px}.record-money{font-variant-numeric:tabular-nums;font-size:15px;white-space:nowrap}.field{display:block;font-size:12px;font-weight:550;margin:19px 0}.field input,.field select{margin-top:7px;font-weight:400}.profile-card h3{margin-bottom:5px}.profile-chips .chip{padding:9px 13px}.profile-card .section-label{margin-top:21px}.field-row{display:flex;align-items:center;gap:10px;margin-top:11px}.field-row .unit-label{color:var(--muted);font-size:12px}.field-row input{width:100px}.custom-avoid-row{display:flex;gap:7px;margin-top:10px}.custom-avoid-row input{flex:1;min-width:0;font-size:12px}.custom-avoid-row button{min-width:60px;font-size:12px}.custom-tags{margin-top:8px}.privacy-note{padding:14px 4px;font-size:10px;color:#848878;line-height:1.8}.saved-feedback{font-size:11px;color:#587345;margin:10px 0 0;text-align:center}.blocked-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.blocked-row:last-child{border:0}.restore{font-size:11px;flex-shrink:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}dialog{border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--ink);width:min(410px,calc(100% - 28px));max-height:90dvh;padding:24px;box-shadow:0 20px 80px #18210d33}dialog::backdrop{background:#20271b77;backdrop-filter:blur(3px)}dialog .section-row h2{font-size:22px}dialog .muted{margin:5px 0 0}dialog .button{margin-top:5px}dialog .form-grid .field{margin-top:0}.record-form-error{color:var(--orange)}#toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);z-index:20;max-width:calc(100% - 32px);padding:13px 20px;background:#303c2df2;color:white;font-size:13px;border-radius:14px;box-shadow:0 4px 30px #0002;text-align:center}#toast[hidden]{display:none}button,a,input,select{touch-action:manipulation}.empty-state h3{font-size:17px}.save-profile{margin-top:21px}
@media(min-width:850px){.app-shell{margin-bottom:30px}.bottom-nav{border-radius:0 0 28px 28px}}
@media(max-width:849px){:root{background:var(--paper)}.workspace{display:block;padding:0;max-width:460px}.intro{display:none}.app-shell{border:0;border-radius:0;box-shadow:none;min-height:100dvh;overflow:visible}.screen{min-height:calc(100dvh - 136px)}.app-header{position:relative}.bottom-nav{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(max-width:359px){.screen{padding:20px 17px}.hero h2{font-size:29px}.card{padding:17px}.chip{padding:9px 14px}.food-title{font-size:23px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.condition-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:22px;padding:12px 14px;border:0;background:#eeeade;border-radius:13px;color:#6c725f;font-size:12px;text-align:left}.condition-summary>span:last-child{color:#a75a3b;white-space:nowrap}

.recipe-details{margin:14px 0 18px;font-size:12px}.recipe-details summary{cursor:pointer;padding:8px 0;color:#a45c3e}.recipe-details summary:focus-visible{outline:3px solid #cb6c3f;outline-offset:3px}.recipe-details[open]{border-bottom:1px solid var(--line);padding-bottom:4px}
.meal-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:20px}.meal-tabs .chip{padding:10px 6px;font-size:13px}.pair-hero h2{font-size:31px}.profile-hint{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:8px 1px 0}.profile-hint .muted{font-size:11px}.profile-hint .text-button{white-space:nowrap}.manual-card .field{margin:17px 0}.manual-card h3{font-size:17px}.pair-rule{margin:13px 0 0;font-size:11px;line-height:1.8}.two-choice-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:14px}.choice-card{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:16px 13px;background:var(--white);border:1px solid var(--line);border-radius:19px;overflow-wrap:anywhere}.choice-card.is-chosen{border-color:var(--orange);background:#fcf0e6}.choice-letter{color:#af5a3a;font-weight:650;font-size:13px}.choice-source{font-size:10px;color:var(--muted)}.choice-emoji{text-align:center;font-size:56px;line-height:1.5;margin:12px 0 8px}.choice-name{font-size:18px;font-weight:650;line-height:1.4;min-height:51px}.choice-price{font-size:11px;line-height:1.7;margin:9px 0 5px;color:#6d725f}.choice-card>.button{margin-top:auto;min-height:44px;padding:10px 6px}.choice-card .muted{font-size:11px;margin-bottom:10px}.choice-issue{font-size:11px;color:#a43b29;margin:5px 0 12px}.block-choice{display:block;margin-top:5px;font-size:10px;text-align:center;min-height:34px}.decision-done{background:var(--soft-green);border-radius:17px;padding:19px;margin-top:18px}.decision-done h3{font-size:22px;margin:7px 0}.decision-done p{margin-bottom:16px}.recipe-details.card{padding:12px 17px}.generation-error[hidden]{display:none}.compact-settings h3{font-size:14px}input:disabled,select:disabled{opacity:.65}input{font-size:16px}
@media(max-width:359px){.two-choice-grid{gap:8px}.choice-card{padding:13px 10px}.choice-name{font-size:17px}.choice-source{font-size:9px}}
.pair-hero h2{font-size:28px;letter-spacing:-1px}.choice-emoji{font-size:46px;margin:8px 0 5px}.choice-placeholder{height:34px}
