:root{--paper:#f7f5ef;--white:#fffefa;--ink:#283125;--green:#4c593e;--green-light:#e9eddc;--muted:#7d8275;--line:#e3e5db;--orange:#b95835;--serif:Georgia,'Songti SC','Noto Serif CJK SC',serif;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a9b882;outline-offset:4px}a{color:inherit;text-decoration:none}button{color:inherit}svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin-top:0}h1{font-family:var(--serif);font-size:48px;line-height:1.25;font-weight:500;letter-spacing:1px}h2{font-size:24px;line-height:1.4;font-weight:600}h3{font-size:18px}p{line-height:1.8}small{line-height:1.6;color:var(--muted)}[hidden]{display:none!important}.site-header{max-width:1180px;margin:auto;height:116px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center;font-weight:650;letter-spacing:1px;font-size:19px}.brand small{font-size:11px;display:block;letter-spacing:2px;font-weight:400;margin-top:4px}.brand-mark{display:inline-flex;align-items:center;justify-content:center;background:var(--green);color:var(--white);width:43px;height:43px;border-radius:13px 13px 3px 13px;font-size:25px;font-family:var(--serif)}.header-right{display:flex;align-items:center;gap:16px;font-size:12px;color:var(--muted)}.icon-button{border:1px solid var(--line);border-radius:50%;height:36px;width:36px;background:transparent;font-size:22px;display:inline-flex;align-items:center;justify-content:center}.icon-button:hover{background:var(--green-light)}main{max-width:1108px;margin:46px auto 0;min-height:65vh}.eyebrow{font-size:11px;letter-spacing:3px;color:var(--muted);display:block;margin-bottom:17px;font-weight:600}.hero{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:34px}.hero h1{margin-bottom:12px}.hero p{color:var(--muted);margin:0;font-size:14px}.planner-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:28px;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:26px}.control-panel{position:sticky;top:24px}.panel h2{font-size:17px;margin-bottom:23px}.field{display:block;margin-bottom:22px}.field>span,.field>label,label.field-label{display:block;font-size:13px;font-weight:600;margin-bottom:11px}.muted{color:var(--muted)}.hint{font-size:12px;color:var(--muted);line-height:1.7;margin:9px 0 0}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:transparent;font-size:13px}.chip.active{background:var(--green);border-color:var(--green);color:white}.primary{background:var(--green);border:1px solid var(--green);color:white;padding:14px 20px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:14px;font-weight:600;min-height:48px}.primary:hover{background:#39462e}.primary span{margin-left:auto}.secondary{border:1px solid var(--line);border-radius:10px;background:transparent;padding:13px 17px;font-size:13px;min-height:44px}.secondary:hover{background:var(--green-light)}.wide{width:100%}input,textarea,select{background:var(--paper);border:1px solid var(--line);border-radius:9px;color:var(--ink);width:100%;padding:12px 13px;font-size:14px;line-height:1.5}input::placeholder,textarea::placeholder{color:#969a8d}textarea{resize:vertical;min-height:77px}.control-panel select{font-size:13px}.control-panel .primary{width:100%;margin-top:6px}.helper-link{border:0;padding:0;background:none;color:var(--green);text-decoration:underline;text-underline-offset:4px;font-size:12px}.setup-tip{background:var(--green-light);padding:13px 16px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;line-height:1.6;margin-bottom:23px}.results{min-width:0;scroll-margin-top:20px}.result-top{display:flex;justify-content:space-between;align-items:flex-start;margin:2px 0 20px;gap:16px}.result-top h2{font-family:var(--serif);font-size:25px;font-weight:500;margin:0 0 7px}.result-top p{font-size:12px;color:var(--muted);margin:0}.status-tag{font-size:11px;padding:6px 9px;background:var(--green-light);border-radius:6px;white-space:nowrap;color:var(--green)}.dish-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.dish-card{border:1px solid var(--line);background:var(--white);border-radius:14px;overflow:hidden;position:relative}.dish-visual{height:175px;background:#e5e8db;position:relative;overflow:hidden;cursor:pointer}.dish-visual img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.dish-visual:hover img{transform:scale(1.04)}.placeholder{height:100%;display:flex;align-items:center;justify-content:center;position:relative;background:#e7eadd}.placeholder.main{background:#eee1cf}.placeholder.soup{background:#e9e7d7}.placeholder.staple{background:#eee8da}.placeholder span{background:#fffcf3;box-shadow:0 4px 0 #00000006;border:9px solid #ffffff60;border-radius:50%;width:110px;height:110px;display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:24px;line-height:1.5;letter-spacing:4px;text-align:center;padding:14px;color:#7c8066;transform:rotate(-8deg)}.kind-tag{position:absolute;top:12px;left:12px;background:#fffefaef;border-radius:5px;padding:5px 8px;font-size:10px;color:var(--green)}.dish-body{padding:18px}.dish-body h3{margin:0 0 8px;font-size:17px}.dish-title{border:0;background:none;padding:0;font:inherit;font-weight:600;text-align:left}.dish-meta{font-size:11px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;margin-bottom:17px}.dish-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:13px;gap:8px}.small-button{background:none;border:0;font-size:12px;padding:5px 0;color:var(--green)}.lock-button{color:var(--muted)}.lock-button.selected{color:var(--orange)}.staple-row{margin-top:16px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:11px;background:var(--white);font-size:13px}.staple-row .muted{font-size:11px}.reason{font-size:13px;line-height:1.8;color:#68705e;margin:20px 0}.reason:before{content:'✳';margin-right:9px;color:#87946e}.warning{padding:12px 15px;border-radius:8px;background:#f7ebd9;color:#8a693a;font-size:12px;line-height:1.7;margin-bottom:18px}.action-row{display:flex;gap:10px}.action-row .primary{flex:1}.cooking-order{margin-top:21px}.cooking-order summary{cursor:pointer;font-size:13px;font-weight:600;padding:12px 0}.cooking-order ol{padding-left:20px;color:#68705e;font-size:13px;line-height:1.9}.history-block{margin-top:48px;border-top:1px solid var(--line);padding-top:25px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-heading h2{font-size:17px;margin:0}.section-heading span{font-size:12px;color:var(--muted)}.history-list{display:flex;flex-direction:column;gap:12px}.history-card{display:flex;align-items:center;gap:18px;font-size:13px;padding:14px 17px;border:1px solid var(--line);border-radius:10px;background:var(--white)}.history-card time{color:var(--muted);font-size:11px;flex-shrink:0}.history-card span{flex:1}.catalog-tools{display:flex;align-items:center;gap:20px;margin-bottom:25px}.catalog-tools input{max-width:330px;background:var(--white)}.catalog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:19px}.catalog-grid .dish-visual{height:150px}.catalog-grid .dish-body{padding:15px}.catalog-grid .dish-body h3{font-size:15px}.catalog-grid .dish-meta{margin:0}.empty-state{padding:70px 24px;text-align:center;border:1px dashed #cdd3bf;border-radius:15px;color:var(--muted);font-size:14px;line-height:1.8}.empty-state .primary{margin:20px auto 0;max-width:180px}.page-title{margin-bottom:32px}.page-title h1{font-size:38px;margin-bottom:12px}.page-title p{font-size:14px;color:var(--muted);margin-bottom:0}.shopping-layout{display:grid;grid-template-columns:1fr 330px;gap:28px;align-items:start}.shopping-progress{height:4px;background:#e3e8d6;border-radius:3px;margin:16px 0 25px;overflow:hidden}.shopping-section h3{font-size:12px;letter-spacing:1px;color:var(--muted);margin:20px 0 8px}.shopping-item{display:flex;gap:13px;align-items:center;padding:16px 0;border-bottom:1px solid #edf0e6;cursor:pointer}.shopping-item input{accent-color:var(--green);width:19px;height:19px;margin:0;cursor:pointer}.shopping-item .item-info{flex:1;min-width:0}.shopping-item .item-info strong{font-weight:500;font-size:14px;display:block}.shopping-item small{font-size:10px;display:block;margin-top:3px}.shopping-item .quantity{font-size:12px;color:#737d68;max-width:160px;overflow-wrap:anywhere;text-align:right}.shopping-item.checked strong{text-decoration:line-through;color:#a0a694}.shopping-item.checked{opacity:.7}.shopping-summary{background:var(--green-light);border-color:#e0e6d4}.shopping-summary h2{font-family:var(--serif);font-weight:500;font-size:23px}.shopping-summary ul{padding-left:19px;line-height:2.3;font-size:14px}.shopping-summary p{font-size:12px;color:#778368}.member-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.member-title{display:flex;align-items:center;gap:12px;margin-bottom:24px}.member-avatar{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#e7eddc;color:var(--green);font-family:var(--serif);font-size:20px}.member-grid .panel:nth-child(2) .member-avatar{background:#f0e4d3;color:#a17e4e}.member-title h2{margin:0;font-size:17px}.member-grid .field:last-child{margin-bottom:0}.shared-settings{margin-top:23px}.tool-options{display:flex;gap:12px;flex-wrap:wrap;margin-top:15px}.tool-choice{border:1px solid var(--line);border-radius:8px;padding:10px 13px;display:flex;gap:8px;align-items:center;font-size:13px;background:var(--white)}.tool-choice input{width:15px;height:15px;accent-color:var(--green);margin:0}.settings-bottom{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:24px}.settings-bottom .primary{min-width:180px}.navigation{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#fffcf5f5;border:1px solid #e1e5d5;box-shadow:0 8px 30px #2831250d;backdrop-filter:blur(16px);border-radius:16px;display:flex;align-items:center;padding:9px 19px;gap:9px;z-index:10}.navigation a{position:relative;min-width:86px;border-radius:10px;padding:9px 17px;display:flex;gap:8px;align-items:center;justify-content:center;font-size:12px;color:#848b7b}.navigation svg{width:22px;height:22px}.navigation a.active{background:var(--green-light);color:var(--green)}.navigation i{position:absolute;width:5px;height:5px;border-radius:50%;background:var(--orange);right:12px;top:10px}.site-footer{max-width:1108px;margin:50px auto 110px;border-top:1px solid var(--line);padding-top:20px;display:flex;justify-content:space-between;font-size:10px;letter-spacing:.4px;color:#969c8b}.site-footer a{text-decoration:underline;text-underline-offset:3px}dialog{border:0;border-radius:20px;width:min(760px,94vw);max-height:90dvh;padding:0;background:var(--white);color:var(--ink);box-shadow:0 24px 100px #141d1840}dialog::backdrop{background:#20271d80;backdrop-filter:blur(3px)}.dialog-close{position:sticky;top:15px;float:right;right:15px;margin:15px 15px -55px 0;background:var(--white);z-index:2;border-color:transparent}.detail-cover{height:230px;overflow:hidden;background:#e8eadd}.detail-cover img{width:100%;height:100%;object-fit:cover}.detail-cover .placeholder span{width:140px;height:140px}.detail-content{padding:30px 35px}.detail-content h2{font-family:var(--serif);font-size:30px;font-weight:500;margin-bottom:12px}.detail-tags{display:flex;flex-wrap:wrap;gap:9px;font-size:11px;color:var(--muted);margin-bottom:18px}.detail-intro{font-size:13px;color:#79816e}.detail-content h3{margin:28px 0 14px;font-size:16px}.ingredient-list{list-style:none;padding:0;margin:0}.ingredient-list li{border-bottom:1px solid var(--line);padding:9px 0;display:flex;justify-content:space-between;gap:20px;font-size:13px}.ingredient-list li span{color:var(--muted);text-align:right;max-width:55%}.instruction-list{padding:0;list-style:none;counter-reset:cookstep}.instruction-list li{counter-increment:cookstep;position:relative;padding-left:38px;margin-bottom:20px;font-size:14px;line-height:1.85}.instruction-list li:before{content:counter(cookstep,decimal-leading-zero);position:absolute;left:0;top:0;font:italic 19px var(--serif);color:#a4ae92}.portion-note{font-size:12px;line-height:1.8;background:#f2f4e9;border-radius:8px;padding:12px 15px;color:#7b856d}.source-link{font-size:12px;color:var(--green);text-decoration:underline;text-underline-offset:4px}.rating-row{display:flex;gap:8px;margin-top:24px;flex-wrap:wrap}.rating-row button{padding:10px 14px}.rating-row .active{background:var(--green-light);border-color:#c3cdae}.loading-view{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);font-size:13px;gap:20px}.login-view{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh;max-width:1500px;margin:auto}.login-art{background:#e8ecdb;padding:90px max(45px,13%);position:relative;overflow:hidden;min-height:700px}.login-art .brand-mark{margin-bottom:55px}.login-art h1{font-size:61px;line-height:1.45;margin-bottom:22px}.login-art p{font-size:14px;color:#79836b}.login-art .eyebrow{color:#7d8c66}.illustrated-plate{position:absolute;right:-75px;bottom:-75px;width:340px;height:340px;border-radius:50%;border:30px solid #fffdf38c;box-shadow:0 0 0 1px #dde3cc,inset 0 0 0 1px #d5ddc3;background:#eef1e2;display:flex;align-items:center;justify-content:center;transform:rotate(-25deg)}.illustrated-plate span{font-size:14px;letter-spacing:14px;color:#a1ad8b}.login-form{width:min(350px,calc(100% - 48px));margin:auto;padding:55px 0}.login-form>.brand-mark{display:none}.login-form h2{font-family:var(--serif);font-size:29px;font-weight:500;margin-bottom:17px}.login-form p{font-size:13px;margin-bottom:30px}.login-form label{font-size:12px;display:block;margin-bottom:10px}.login-form .primary{width:100%;margin-top:18px}.login-form small{display:block;text-align:center;font-size:11px;margin-top:26px}.login-form p.error{color:var(--orange);margin:14px 0 0}.toast{position:fixed;bottom:108px;left:50%;transform:translateX(-50%);z-index:30;background:#283125;color:white;border-radius:10px;padding:13px 20px;font-size:13px;max-width:min(90vw,530px);line-height:1.7;box-shadow:0 8px 24px #0002}.spin{display:inline-block;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.busy-notice{padding:22px;border:1px solid var(--line);background:var(--white);border-radius:12px;display:flex;align-items:center;gap:14px;color:var(--green);font-size:13px;margin-bottom:20px}.busy-notice .spin{font-size:25px}.results[aria-busy=true]{opacity:.7}.no-results{grid-column:1/-1}.catalog-count{font-size:12px;color:var(--muted);margin-bottom:16px}
@media(max-width:1150px){main{margin:35px 28px 0}.site-footer{margin-left:28px;margin-right:28px}.catalog-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.site-header{height:90px;padding:0 22px}.brand{font-size:17px}.brand-mark{width:38px;height:38px;font-size:22px}.brand small{font-size:10px}.header-right{gap:9px}.header-right>span{display:none}main{margin:29px 18px 0}.hero{margin:0 3px 26px;gap:10px}.hero h1{font-size:34px;letter-spacing:0}.eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:12px}.hero p{font-size:12px}.planner-layout{grid-template-columns:1fr;gap:27px}.control-panel{position:static;padding:20px}.control-panel h2{margin-bottom:20px}.control-panel .field{margin-bottom:17px}.chips{gap:6px}.chip{padding:9px 13px}.control-panel .primary{margin-top:18px}.dish-grid{gap:11px}.dish-visual{height:145px}.dish-body{padding:14px 12px}.dish-body h3{font-size:16px}.dish-meta{gap:5px;font-size:10px}.dish-actions{gap:5px}.small-button{font-size:11px;min-height:30px}.result-top h2{font-size:24px}.action-row .primary,.action-row .secondary{font-size:13px;padding:13px}.history-block{margin-top:32px}.history-card{gap:12px;font-size:12px}.history-card span{line-height:1.8}.catalog-tools{display:block}.catalog-tools input{max-width:none;margin-bottom:14px}.catalog-grid{grid-template-columns:repeat(2,1fr);gap:12px}.catalog-grid .dish-visual{height:143px}.catalog-grid .dish-body{padding:13px}.page-title h1{font-size:32px}.page-title{margin-bottom:24px}.page-title p{font-size:12px}.catalog-tools .chips{flex-wrap:nowrap;overflow:auto;padding-bottom:3px}.catalog-tools .chip{white-space:nowrap}.shopping-layout{grid-template-columns:1fr;gap:19px}.panel{padding:20px}.shopping-summary{order:-1}.shopping-summary h2{margin-bottom:12px;font-size:20px}.shopping-summary ul{margin-bottom:12px}.shopping-summary .hint{margin:0}.shopping-item .quantity{max-width:130px}.member-grid{grid-template-columns:1fr;gap:18px}.tool-options{gap:8px}.tool-choice{padding:10px;font-size:12px}.settings-bottom{flex-wrap:wrap}.settings-bottom .primary{width:100%;order:-1}.navigation{bottom:0;left:0;transform:none;width:100%;border-radius:17px 17px 0 0;justify-content:space-around;padding:7px 7px calc(8px + env(safe-area-inset-bottom));gap:0;border-bottom:0}.navigation a{min-width:0;width:25%;padding:8px 0;flex-direction:column;gap:4px;font-size:10px;border-radius:11px}.navigation svg{width:21px;height:21px}.navigation i{right:25%;top:9px}.site-footer{margin:35px 20px 110px;padding-top:18px;flex-direction:column;gap:10px;font-size:9px}.toast{bottom:95px}.detail-content{padding:24px 22px}.detail-cover{height:190px}.detail-content h2{font-size:27px}.detail-content .ingredient-list{font-size:12px}.detail-content .instruction-list li{font-size:13px}.login-view{grid-template-columns:1fr;min-height:100dvh}.login-art{display:none}.login-form>.brand-mark{display:inline-flex;margin-bottom:38px}.login-form{padding:45px 0;width:calc(100% - 48px);max-width:360px}.login-form h2{font-size:29px}.header-right .icon-button{width:34px;height:34px}.setup-tip{padding:12px;font-size:11px}.staple-row{font-size:12px}.staple-row .muted{font-size:10px}.placeholder span{width:97px;height:97px;font-size:20px}.navigation a.active{background:#e9eddc}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

progress.shopping-progress{display:block;width:100%;border:0;appearance:none}progress.shopping-progress::-webkit-progress-bar{background:#e3e8d6}progress.shopping-progress::-webkit-progress-value{background:#899c66}progress.shopping-progress::-moz-progress-bar{background:#899c66}
.instruction-heading{font-size:14px;font-weight:600;color:var(--green);border-left:3px solid #a4ae92;padding-left:11px;margin:28px 0 20px}
.inline-icon{width:13px;height:13px;vertical-align:-2px;margin-left:3px}.icon-button svg{width:18px;height:18px}.reason:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#87946e;vertical-align:2px}.spin{font-size:0!important;width:17px;height:17px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;flex-shrink:0}
@media(max-width:760px){.has-plan .results{order:-1}.has-plan .control-panel{margin-top:6px}}
@media(max-width:480px){.hero h1{font-size:32px}}

/* Compact everyday flows and readable mobile controls. */
.brand-mark{object-fit:cover;border-radius:12px;flex-shrink:0}
.planner-layout:not(.has-plan){grid-template-columns:minmax(0,620px)}
.results:empty{display:none}
.hero h1{font-size:40px}
.meal-options .chip{flex:1}
.extra-options{border-top:1px solid var(--line);margin:14px 0;padding-top:12px}
.extra-options summary{cursor:pointer;font-size:13px;padding:8px 0;line-height:1.8}
.extra-options summary small{margin-left:7px}
.extra-options[open] summary{margin-bottom:15px}
.extra-options .field:last-child{margin-bottom:0}
.hint.error{color:var(--orange)}
.single-dish{grid-template-columns:1fr}
.single-dish .dish-visual{height:230px}
.dish-actions{flex-wrap:wrap}
.dish-actions .small-button{min-height:40px}
.catalog-tools{flex-wrap:wrap;gap:14px;margin-bottom:15px}
.catalog-filters{display:flex;flex-wrap:wrap;gap:22px;margin-bottom:18px;font-size:13px;color:var(--green)}
.catalog-filters label{display:flex;align-items:center;gap:8px;min-height:36px;cursor:pointer}
.catalog-filters input{width:17px;height:17px;margin:0;accent-color:var(--green)}
.catalog-more{text-align:center;margin:28px 0}
.no-results .secondary{display:block;margin:18px auto 0}
.settings-status{font-size:12px;color:var(--orange);min-height:20px;margin-top:18px}
.settings-bottom{justify-content:flex-end;flex-wrap:wrap;margin-top:8px}
.settings-bottom #logout-button{margin-right:auto}
.network-status{max-width:1108px;margin:16px auto;padding:10px 18px;background:#f7ebd9;color:#8a693a;font-size:13px;border-radius:10px}
.toast{z-index:100}
@media(max-width:760px){
 .hero h1{font-size:32px}
 .site-header{height:76px}
 main{margin-top:24px;min-height:55vh}
 .planner-layout:not(.has-plan){grid-template-columns:1fr}
 input:not([type=checkbox]),textarea,select,.control-panel select{font-size:16px}
 .time-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
 .time-options .chip{padding:10px 3px;font-size:11px}
 .extra-options summary{font-size:14px}
 .header-right .icon-button{width:42px;height:42px}
 .dish-actions .small-button{min-height:40px}
 .settings-bottom .primary{order:0}
 .settings-bottom #logout-button{order:1;min-height:44px}
 .settings-bottom #discard-profile{order:2}
 .network-status{margin:12px 18px}
 .shopping-summary p{margin-bottom:12px}
 .detail-content .instruction-list li{font-size:14px}
 .catalog-filters{gap:15px;font-size:12px}
}

main.start-page{width:calc(100% - 36px);max-width:620px;margin-left:auto;margin-right:auto}
.reset-planner{flex-shrink:0;white-space:nowrap}
.saved-plan-note{margin:0}
.shopping-summary #eaten-button{margin-top:10px}
