:root{color:#26231f;background:#f7f3ed;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}.page-shell{min-height:100vh;padding-bottom:92px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}.app-shell{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;min-height:100vh;padding:24px}.upload-page{min-height:calc(100vh - 92px)}.page-description{margin:10px 0 0;color:#756a5f;line-height:1.6}.placeholder-page{display:grid;grid-template-rows:auto minmax(360px,1fr);gap:24px;min-height:calc(100vh - 92px);padding:32px}.dishes-page{min-height:calc(100vh - 92px);padding:32px}.shopping-page{min-height:calc(100vh - 92px);padding:32px 32px 188px}.shopping-header{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.reset-checks-action{position:fixed;z-index:22;right:28px;bottom:104px;display:grid;gap:2px;min-width:210px;min-height:58px;border:1px solid #d7c9b8;border-radius:14px;padding:9px 16px;background:#fffaf3;color:#795c39;box-shadow:0 12px 30px #41311e2e;text-align:left}.reset-checks-action strong{font-size:15px}.reset-checks-action small{color:#8d8172;font-size:11px;font-weight:500}.shopping-layout{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:start;gap:18px;width:min(920px,100%);margin:0 auto}.shopping-summary{position:sticky;top:24px;display:grid;gap:6px;padding:20px;border-radius:12px;background:#2f5d50;color:#fff;box-shadow:0 14px 30px #2f5d502e}.shopping-summary span,.shopping-summary small{opacity:.75}.shopping-summary strong{font-size:23px}.shopping-groups{display:grid;gap:16px}.shopping-group{overflow:hidden;border:1px solid #e2d8ca;border-radius:12px;background:#fffaf3;box-shadow:0 12px 32px #4a39230f}.shopping-group>header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 12px;border-bottom:1px solid #eee5d9}.shopping-group h2{font-size:17px}.shopping-group header span{display:grid;place-items:center;min-width:28px;height:24px;border-radius:999px;background:#e5efe9;color:#2f5d50;font-size:12px;font-weight:800}.shopping-items{display:grid}.shopping-item{position:relative;display:grid;grid-template-columns:24px minmax(120px,1fr) auto;align-items:center;gap:12px;min-height:58px;padding:11px 18px;border-bottom:1px solid #f0e8de;cursor:pointer;transition:background .16s,color .16s}.shopping-item:last-child{border-bottom:0}.shopping-item:hover{background:#f8f1e7}.shopping-item input{position:absolute;width:1px;height:1px;opacity:0}.custom-checkbox{display:grid;place-items:center;width:23px;height:23px;border:2px solid #b9aa97;border-radius:7px;color:#fff;font-size:14px;font-weight:900}.shopping-item.checked{background:#f2eee8;color:#9a9187}.shopping-item.checked strong{text-decoration:line-through;text-decoration-thickness:1px}.shopping-item.checked .custom-checkbox{border-color:#79978e;background:#79978e}.amount-list{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.amount-list small{padding:4px 8px;border-radius:999px;background:#f1eadf;color:#715f4c;white-space:nowrap}.shopping-item.checked .amount-list small{color:#9a9187;background:#e8e3dc}.shopping-empty{display:grid;place-items:center;align-content:center;width:min(920px,100%);min-height:420px;margin:0 auto;padding:30px;border:1px solid #e2d8ca;border-radius:12px;background:#fffaf3;text-align:center}.shopping-empty h2{margin-top:18px}.shopping-empty p{margin:10px 0 0;color:#8d8172}.cooking-page{min-height:calc(100vh - 92px);padding:32px 32px 124px}.cooking-header{margin-bottom:24px}.cooking-workspace,.cooking-empty{width:min(920px,100%);margin:0 auto}.cooking-tabs{display:flex;gap:8px;overflow-x:auto;padding:5px 5px 12px}.cooking-tabs button{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-height:46px;border:1px solid #d9cdbd;border-radius:12px;padding:0 16px;background:#fffaf3;color:#66594b;font-weight:800}.cooking-tabs button.active{border-color:#2f5d50;background:#2f5d50;color:#fff;box-shadow:0 8px 20px #2f5d502e}.cooking-tabs button small{padding:2px 6px;border-radius:999px;background:#fff3;font-size:10px}.cooking-recipe{overflow:hidden;border:1px solid #e2d8ca;border-radius:14px;background:#fffaf3;box-shadow:0 18px 50px #4a392314}.cooking-recipe>header{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #e9dfd2}.cooking-recipe>header span,.cooking-recipe>header small{color:#8d8172;font-size:12px}.cooking-recipe>header h2{margin-top:5px;font-size:24px}.cooking-steps{display:grid;gap:0;margin:0;padding:0;list-style:none}.cooking-step{display:grid;grid-template-columns:40px minmax(0,1fr);gap:14px;padding:20px 24px;border-bottom:1px solid #eee5da}.cooking-step:last-child{border-bottom:0}.step-number{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e5efe9;color:#2f5d50;font-weight:900}.step-content>p{margin:6px 0 0;line-height:1.7}.step-timer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:12px 14px;border-radius:10px;background:#f1eadf}.step-timer.running{background:#e5efe9}.step-timer.done{background:#f8e7df}.step-timer>strong{color:#2f5d50;font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:1px}.step-timer>div{display:flex;gap:7px}.step-timer button{min-height:34px;border:0;border-radius:8px;padding:0 12px;background:#2f5d50;color:#fff;font-weight:700}.step-timer button.timer-reset{background:#ded3c4;color:#604f3d}.add-step-timer{margin-top:14px;border:1px dashed #cbbba6;border-radius:9px;padding:9px 12px;background:transparent;color:#79664f;font-size:13px;font-weight:700}.step-timer-setup{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:12px 14px;border-radius:10px;background:#f1eadf}.step-timer-setup label{display:flex;align-items:center;gap:8px;color:#66594b;font-size:13px;font-weight:700}.step-timer-setup input{width:88px;min-height:36px}.step-timer-setup>div{display:flex;gap:7px}.step-timer-setup button{min-height:34px;border:0;border-radius:8px;padding:0 12px;background:#2f5d50;color:#fff;font-weight:700}.step-timer-setup button.timer-setup-cancel{background:#ded3c4;color:#604f3d}.recipe-generation-state,.cooking-empty{display:grid;place-items:center;align-content:center;min-height:330px;padding:30px;text-align:center}.recipe-generation-state p,.cooking-empty p{margin:12px 0 0;color:#8d8172}.recipe-generation-state .secondary-button{margin-top:16px}.account-page{min-height:calc(100vh - 92px);padding:32px 32px 124px}.account-header{margin-bottom:24px}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:min(920px,100%);margin:0 auto}.account-card{border:1px solid #e2d8ca;border-radius:14px;padding:20px;background:#fffaf3;box-shadow:0 14px 36px #4a392312}.account-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.account-card-title>span{padding:4px 8px;border-radius:999px;background:#e5efe9;color:#2f5d50;font-size:11px;font-weight:800}.account-muted,.signed-in-block p{color:#8d8172;font-size:13px;line-height:1.6}.login-form{display:grid;gap:12px}.login-form label{display:grid;gap:7px;color:#66594b;font-size:13px;font-weight:700}.login-form small{color:#8d8172;line-height:1.5}.password-auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.signed-in-block strong{display:block;overflow-wrap:anywhere}.sync-card>.primary-button{width:100%;margin-top:8px}.sync-preview{margin-top:16px;padding:14px;border-radius:10px;background:#f1eadf}.sync-preview h3{margin:0 0 10px}.sync-preview dl{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:0}.sync-preview dl div{display:grid;place-items:center;gap:3px;padding:8px 4px;border-radius:8px;background:#fffaf3}.sync-preview dt{color:#8d8172;font-size:10px}.sync-preview dd{margin:0;color:#2f5d50;font-size:18px;font-weight:900}.sync-preview p{color:#756a5f;font-size:12px}.sync-confirm-button{width:100%;min-height:42px;border:0;border-radius:8px;background:#c65f3f;color:#fff;font-weight:800}.backups-card{grid-column:1 / -1}.backup-actions,.backup-list article>div:last-child{display:flex;gap:7px}.backup-actions button,.backup-list button{min-height:34px;border:1px solid #d7c9b8;border-radius:8px;padding:0 11px;background:#fff;color:#66594b;font-size:12px;font-weight:700}.backup-list{display:grid;gap:8px;margin-top:14px}.backup-list article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #e8ded1;border-radius:9px;background:#fff}.backup-list article strong,.backup-list article small{display:block}.backup-list article small{margin-top:4px;color:#8d8172;font-size:11px}.backup-list button.restore-button{color:#8b3f2f}.account-message{position:sticky;bottom:104px;width:min(920px,100%);margin:16px auto 0;padding:12px 14px;border-radius:10px;background:#fff2cf;color:#715221;box-shadow:0 8px 24px #4a39231f}.dishes-header{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.selection-summary{display:grid;justify-items:center;min-width:82px;padding:10px 14px;border-radius:12px;background:#e5efe9;color:#2f5d50}.selection-summary strong{font-size:24px;line-height:1}.selection-summary span{margin-top:4px;font-size:12px}.dish-browser{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;width:min(920px,100%);min-height:440px;margin:0 auto;padding:14px;border:1px solid #e2d8ca;border-radius:12px;background:#fffaf3;box-shadow:0 18px 50px #4a392314}.category-sidebar{display:grid;align-content:start;gap:8px;padding:6px;border-radius:9px;background:#f1eadf}.category-sidebar button{display:flex;align-items:center;justify-content:space-between;min-height:52px;border:0;border-radius:8px;padding:0 14px;background:transparent;color:#5f5346;font-weight:700}.category-sidebar button.active{background:#2f5d50;color:#fff}.category-sidebar small{opacity:.72}.dish-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));align-content:start;gap:14px;padding:6px}.dish-card{overflow:hidden;border:2px solid transparent;border-radius:10px;padding:0;background:#fff;color:inherit;box-shadow:0 8px 22px #4a392314;text-align:left}.dish-card.selected{border-color:#2f5d50;box-shadow:0 0 0 3px #2f5d5021}.dish-card-photo{position:relative;display:block;aspect-ratio:4 / 3;background:#e9e0d4}.dish-card-photo img{width:100%;height:100%;object-fit:cover}.dish-photo-placeholder{display:grid;place-items:center;height:100%;color:#8d8172;font-size:12px}.dish-check{position:absolute;top:9px;right:9px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ffffffeb;color:#2f5d50;font-weight:900;box-shadow:0 3px 12px #00000021}.dish-card.selected .dish-check{background:#2f5d50;color:#fff}.dish-card-info{display:grid;gap:4px;padding:12px}.dish-card-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dish-card-info small{color:#8d8172}.empty-category{grid-column:1 / -1;display:grid;place-items:center;align-content:center;min-height:380px;color:#8d8172}.empty-category span{font-size:18px;font-weight:800;color:#5f5346}.empty-category p{margin:8px 0 0}.order-button{position:fixed;z-index:21;right:28px;bottom:28px;min-width:150px;min-height:54px;border:0;border-radius:16px;padding:0 22px;background:#c65f3f;color:#fff;box-shadow:0 14px 30px #80392447;font-weight:800}.page-header,.placeholder-card{width:min(920px,100%);margin-inline:auto}.page-header{padding:8px 4px 0}.placeholder-card{display:grid;place-items:center;align-content:center;padding:32px;border:1px solid #e2d8ca;border-radius:12px;background:#fffaf3;box-shadow:0 18px 50px #4a392314;text-align:center}.placeholder-card h2{margin-top:18px}.placeholder-card p{margin:10px 0 0;color:#8d8172}.placeholder-icon{display:grid;place-items:center;width:72px;height:72px;border-radius:22px;background:#e5efe9;color:#2f5d50;font-size:28px;font-weight:800}.bottom-navigation{position:fixed;z-index:20;right:50%;bottom:16px;display:grid;grid-template-columns:repeat(5,minmax(68px,104px));gap:4px;transform:translate(50%);padding:7px;border:1px solid rgba(226,216,202,.9);border-radius:18px;background:#fffaf3f5;box-shadow:0 16px 40px #41311e2e;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.nav-item{display:grid;place-items:center;gap:2px;min-height:58px;border:0;border-radius:12px;background:transparent;color:#756a5f;font-size:12px;font-weight:700}.nav-item.active{background:#2f5d50;color:#fff}.nav-icon{font-size:17px;line-height:1}.workspace,.library,.panel{border:1px solid #e2d8ca;background:#fffaf3;border-radius:8px;box-shadow:0 18px 50px #4a392314}.workspace{padding:24px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.eyebrow{margin:0 0 6px;color:#8a6b3f;font-size:13px}h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;font-size:clamp(26px,4vw,42px);letter-spacing:0}h2{margin-bottom:0;font-size:20px}h3{margin:20px 0 10px;font-size:16px}.primary-button,.secondary-button,.text-button{border:0;border-radius:8px;min-height:42px;padding:0 18px;transition:transform .16s ease,background .16s ease}.primary-button{background:#2f5d50;color:#fff;font-weight:700}.secondary-button{background:#eadfce;color:#2f2a23;font-weight:700}.text-button{background:transparent;color:#2f5d50;padding:0;min-height:32px;font-weight:700}.primary-button:not(:disabled):hover,.secondary-button:not(:disabled):hover{transform:translateY(-1px)}.compact{min-height:36px;padding-inline:14px}.generate-button{width:100%;margin-top:18px}.hidden-input{display:none}.content-grid{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr);gap:18px;align-items:start}.panel{padding:18px}.photo-frame{position:relative;display:grid;place-items:center;aspect-ratio:4 / 3;overflow:hidden;border:1px dashed #d4c5b2;border-radius:8px;background:#f1eadf}.photo-frame img{width:100%;height:100%;object-fit:cover}.empty-photo,.empty-recipe{display:grid;place-items:center;min-height:220px;color:#8d8172;text-align:center}.loading-mask{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;align-content:center;gap:10px;color:#fff;background:#26231f9e;font-weight:700}.spinner{width:34px;height:34px;border:4px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .85s linear infinite}.spinner.dark{border-color:#2f5d5033;border-top-color:#2f5d50}.initializing-screen{display:grid;place-items:center;align-content:center;gap:14px;min-height:100vh;color:#2f5d50;font-weight:700}.initializing-screen p{margin:0}@keyframes spin{to{transform:rotate(360deg)}}.field-label{display:block;margin:18px 0 8px;color:#5f5346;font-size:14px;font-weight:700}.compact-label{margin:18px 0 8px}input,textarea,select{width:100%;border:1px solid #d8ccbc;border-radius:8px;background:#fff;color:#2d2924;outline:none}input{min-height:42px;padding:0 12px}textarea{resize:vertical;padding:10px 12px;line-height:1.5}select{min-height:42px;padding:0 10px}input:focus,textarea:focus,select:focus{border-color:#2f5d50;box-shadow:0 0 0 3px #2f5d501f}.notice{margin:14px 0 0;padding:10px 12px;border-radius:8px;background:#fff2cf;color:#715221}.panel-title-row,.library-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.hint-text,.muted{color:#8d8172;font-size:13px}.muted{margin:0;line-height:1.6}.confirm-block{margin-top:16px}.upload-meta-grid{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;margin-top:16px}.upload-meta-grid .field-label{margin-top:0}.optional-recipe-hint{margin:9px 0 0;color:#8d8172;font-size:12px;line-height:1.5;text-align:center}.candidate-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.candidate-chip{border:1px solid #d8ccbc;border-radius:999px;background:#fff;color:#4d443a;min-height:34px;padding:0 13px;font-weight:700}.candidate-chip.selected{border-color:#2f5d50;background:#e5efe9;color:#2f5d50}.visible-ingredient-list{display:grid;gap:8px}.visible-ingredient-row,.add-visible-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.icon-button{border:0;border-radius:8px;min-width:58px;background:#f4e6df;color:#8b3f2f;font-weight:700}.ingredient-list,.step-list{display:grid;gap:10px}.ingredient-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.55fr) 112px;gap:10px}.step-row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start}.step-row span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e5efe9;color:#2f5d50;font-weight:800}.library{position:sticky;top:24px;align-self:start;max-height:calc(100vh - 48px);overflow:auto;padding:18px}.library-header span{color:#8a6b3f;font-size:14px}.library-list{display:grid;gap:10px;margin-top:14px}.library-empty{color:#8d8172;line-height:1.6}.recipe-card{display:grid;grid-template-columns:68px minmax(0,1fr);gap:12px;width:100%;border:1px solid #e2d8ca;border-radius:8px;background:#fff;padding:8px;color:inherit;text-align:left}.recipe-card.active{border-color:#2f5d50;box-shadow:0 0 0 3px #2f5d501f}.recipe-card img{width:68px;height:58px;object-fit:cover;border-radius:6px}.photo-loading{display:grid;place-items:center;width:68px;height:58px;border-radius:6px;background:#f1eadf;color:#8d8172;font-size:11px;text-align:center}.recipe-card strong,.recipe-card span{display:block}.recipe-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipe-card span{margin-top:6px;color:#8d8172;font-size:12px}.library-detail{margin-top:16px;padding-top:14px;border-top:1px solid #e2d8ca}.library-detail p{margin-bottom:0;color:#756a5f}@media(max-width:1060px){.app-shell,.content-grid{grid-template-columns:1fr}.library{position:static;max-height:none}}@media(max-width:680px){.app-shell{padding:12px;gap:12px}.placeholder-page,.dishes-page{padding:20px 14px}.shopping-page{padding:20px 14px 188px}.shopping-header{align-items:start}.reset-checks-action{right:18px;bottom:92px}.shopping-layout{grid-template-columns:1fr}.shopping-summary{position:static;grid-template-columns:1fr auto auto;align-items:center}.shopping-item{grid-template-columns:24px minmax(90px,1fr) auto;padding-inline:14px}.cooking-page{padding:20px 14px 112px}.cooking-step{grid-template-columns:34px minmax(0,1fr);padding:17px 14px}.step-timer,.step-timer-setup{align-items:stretch;flex-direction:column}.account-page{padding:20px 14px 112px}.account-grid{grid-template-columns:1fr}.backups-card{grid-column:auto}.sync-preview dl{grid-template-columns:repeat(3,1fr)}.account-card-title,.backup-list article{align-items:stretch;flex-direction:column}.dishes-header{align-items:start}.dish-browser{grid-template-columns:1fr}.category-sidebar{grid-template-columns:repeat(4,1fr);overflow-x:auto}.category-sidebar button{min-width:78px;padding:0 10px}.dish-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-button{right:18px;bottom:92px}.bottom-navigation{right:12px;left:12px;grid-template-columns:repeat(5,1fr);transform:none}.workspace,.library,.panel{padding:14px}.topbar{align-items:stretch;flex-direction:column}.ingredient-row,.visible-ingredient-row,.add-visible-row,.upload-meta-grid{grid-template-columns:1fr}}
