:root{font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#1f211e;background:#f7f3eb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#fbf7f0 0,#f4efe7);min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:default}.app-shell{max-width:1040px;margin:auto;min-height:100vh;padding-bottom:96px}.topbar{position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:#fbf7f0eb;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid #e8dfd2}.topbar div{display:flex;flex-direction:column}.topbar small{color:#80786e;margin-top:3px}.page{padding:20px}.primary,.ghost,.danger,.search-row button{border:0;border-radius:14px;padding:11px 16px}.primary{background:#ea9a32;color:#20180d;font-weight:800}.ghost{background:#eee5d8;color:#332c23}.danger{background:#fee0dc;color:#9c2e20}.small{padding:8px 11px}.full{width:100%}.section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:22px 0 14px}.section-title.compact{margin:0 0 12px}.section-title h1,.section-title h2,.section-title p{margin:0}.title-actions{display:flex;gap:8px}.muted{color:#7b746b}.eyebrow{font-size:12px;letter-spacing:.16em;color:#96775a;font-weight:800}.pill,.count-chip,.date-chip{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;background:#fff0d3;color:#845b19;font-size:12px;font-weight:800}.global-error{position:sticky;top:69px;z-index:14;margin:8px 20px 0;padding:10px 12px;background:#fff0ee;border:1px solid #f3c6c0;border-radius:14px;display:flex;justify-content:space-between;color:#9a2b20}.global-error button{border:0;background:transparent}.today-board{background:#1f211e;color:#fff;border-radius:30px;padding:24px;box-shadow:0 14px 40px #2a1e0e1f}.today-title{display:flex;justify-content:space-between;align-items:flex-start}.today-title h1{font-size:34px;margin:5px 0 18px}.today-board .date-chip{background:#383a35;color:#ece9e3}.today-meals{display:grid;grid-template-columns:1fr 1fr;gap:12px}.today-meal-card{background:#30322e;border-radius:20px;padding:15px;min-height:126px}.meal-card-head{display:flex;justify-content:space-between}.meal-card-head small{color:#aaa99f}.today-dish-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.today-dish-list button{border:0;background:#fff;color:#28271f;padding:8px 10px;border-radius:12px;font-weight:700}.smart-table-card,.pantry-card,.settings-card,.profile-card{background:#fff;border:1px solid #e9dfd0;border-radius:24px;padding:19px;margin-top:16px;box-shadow:0 4px 20px #462d120a}.mode-switch{display:flex;gap:8px;margin:10px 0}.mode-switch button,.tag-filter button{border:1px solid #e5d7c5;background:#faf6ef;border-radius:999px;padding:8px 12px}.mode-switch button.active,.tag-filter button.active{background:#22231f;color:#fff;border-color:#22231f}.table-preview{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}.table-dish{display:flex;gap:10px;padding:10px;border-radius:18px;background:#faf6ef;border:1px solid #eee3d5;cursor:pointer}.table-dish img,.image-placeholder{width:72px;height:72px;border-radius:14px;object-fit:cover}.image-placeholder{display:grid;place-items:center;background:#f3e7d7;font-size:24px}.table-dish>div:last-child{display:flex;flex-direction:column;min-width:0}.table-dish b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-dish small{color:#777;margin-top:4px}.tag-line{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.tag-line span{font-size:11px;color:#8c6b46;background:#f5ecdf;border-radius:999px;padding:3px 6px}.tag-line.large span{font-size:13px}.apply-row{display:flex;gap:10px;margin-top:14px}.apply-row button{flex:1}.pantry-add{display:grid;grid-template-columns:1fr .8fr auto;gap:8px}.pantry-add input,.search-row input,.auth-card input,.sheet input,.sheet textarea,.sheet select,select{width:100%;border:1px solid #dfd4c4;border-radius:14px;padding:11px;background:#fff}.pantry-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.pantry-chip{display:flex;align-items:center;gap:6px;border:1px solid #dfd4c4;background:#faf6ef;border-radius:999px;padding:7px 10px}.pantry-chip span{color:#8b8175;font-size:12px}.pantry-chip i{font-style:normal;color:#aaa}.empty-inline{color:#91877b;margin:12px 0 0}.backup-mini{display:flex;align-items:center;justify-content:space-between;border-radius:18px;padding:13px 15px;margin-top:16px}.backup-mini>div{display:flex;flex-direction:column;gap:3px}.backup-mini.ok{background:#edf7ed;border:1px solid #cbe7cc}.backup-mini.warn{background:#fff5df;border:1px solid #f0dab0}.backup-mini small{color:#777}.week-list{display:grid;gap:12px}.day-card{background:#fff;border:1px solid #e9dfd0;border-radius:22px;padding:15px}.day-head{display:flex;justify-content:space-between;font-size:18px}.day-head span{color:#888}.meal-block{margin-top:12px;padding-top:11px;border-top:1px dashed #e6dbcc}.meal-block-title{display:flex;justify-content:space-between;margin-bottom:8px}.meal-block-title small{color:#888}.meal-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:8px}.meal-chips span{background:#fff0d3;border-radius:999px;padding:7px 9px}.meal-chips button{border:0;background:transparent;color:#a56a14}.search-row{display:flex;gap:8px;margin-bottom:12px}.search-row button{background:#22231f;color:#fff}.tag-filter{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.recipe-card{background:#fff;border:1px solid #e9dfd0;border-radius:20px;overflow:hidden;cursor:pointer}.card-image-wrap{position:relative}.recipe-card img,.card-image-wrap>.image-placeholder{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:0}.favorite-mark{position:absolute;right:10px;top:10px;background:#fff2d0;padding:5px 8px;border-radius:50%;color:#c47a11}.recipe-card>div:last-child{padding:13px}.recipe-card h3{margin:0 0 5px}.recipe-card p{margin:0;color:#777;font-size:13px}.shopping-group{margin:18px 0}.shopping-group h3 small{color:#999}.shopping-list{display:grid;gap:8px}.shopping-list label{display:flex;align-items:center;gap:12px;background:#fff;padding:13px;border:1px solid #e9dfd0;border-radius:15px}.shopping-list label span{display:flex;flex-direction:column;flex:1}.shopping-list small{color:#888}.shopping-list .checked span{text-decoration:line-through;opacity:.55}.icon-btn{border:0;background:transparent;font-size:20px;color:#999}.profile-card{text-align:center}.avatar{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:auto;background:#eda242;font-size:30px;font-weight:900}.status-dot{border-radius:999px;padding:5px 8px;font-size:12px}.status-dot.ok{background:#e7f5e8;color:#376d3c}.status-dot.warn{background:#fff0d3;color:#8c621f}.link-button{display:inline-block;text-decoration:none;margin-top:8px}.admin-panel{margin-top:10px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat-grid>div{background:#faf6ef;border-radius:15px;padding:12px;display:flex;flex-direction:column}.stat-grid b{font-size:20px}.stat-grid span{font-size:12px;color:#777}.admin-actions{display:flex;gap:8px;margin:12px 0}.history-list{display:grid;gap:7px}.history-list div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #eee4d7}.mini-group{margin-top:12px}.bottom-nav{position:fixed;left:50%;transform:translate(-50%);bottom:12px;width:min(92%,720px);display:grid;grid-template-columns:repeat(5,1fr);background:#22231f;border-radius:22px;padding:8px;z-index:20;box-shadow:0 10px 30px #0003}.bottom-nav button{border:0;background:transparent;color:#bdb9b0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px}.bottom-nav button.active{color:#ffc45e}.bottom-nav span{font-size:12px}.auth-shell,.center-card{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(100%,420px);background:#fff;border:1px solid #e9dfd0;border-radius:28px;padding:28px;display:grid;gap:12px}.brand{font-size:26px;font-weight:900}.auth-card h2{margin:10px 0 0}.error,.result-box{color:#9b2c20;background:#fff0ee;padding:10px;border-radius:12px}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000061;z-index:50;display:grid;place-items:end center}.sheet{width:min(100%,760px);max-height:92vh;overflow:auto;background:#fbf7f0;border-radius:26px 26px 0 0;padding:22px;position:relative}.close{position:absolute;right:16px;top:14px;border:0;background:#eee3d5;border-radius:50%;width:36px;height:36px;font-size:22px}.detail-image{width:100%;max-height:320px;object-fit:cover;border-radius:20px;margin-bottom:16px}.quick-actions{display:flex;gap:8px;margin:12px 0}.favorite-button,.cook-button{border:1px solid #e3d6c5;background:#fff;border-radius:13px;padding:9px 12px}.favorite-button.active{background:#fff0d3;color:#9c6512}.rating-row{display:flex;align-items:center;gap:10px}.stars button{border:0;background:transparent;font-size:22px;color:#d6cec2;padding:2px}.stars button.on{color:#e8a02d}.ingredient-list{list-style:none;padding:0}.ingredient-list li{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #e9dfd0}.steps{padding-left:24px}.steps li{padding:8px 0;line-height:1.65}.actions{display:flex;gap:8px;margin-top:18px}.editor-sheet,.bulk-sheet{display:grid;gap:11px}.editor-sheet h2,.editor-sheet h3,.bulk-sheet h2{margin-bottom:0}.ingredient-edit{display:grid;grid-template-columns:1.2fr .8fr 36px;gap:8px}.ingredient-edit button,.step-edit button{border:0;background:#f0e6d9;border-radius:10px}.step-edit{display:grid;grid-template-columns:28px 1fr 36px;gap:8px;align-items:start}.step-edit span{padding-top:12px}.preview{max-width:260px;border-radius:16px}.file-label{border:1px dashed #d7c6b0;border-radius:14px;padding:11px;text-align:center;background:#fff8ec;cursor:pointer}.file-label input{display:none}.hint,.bulk-help{font-size:12px;color:#857a6d}.bulk-text{min-height:280px;font-family:ui-monospace,Consolas,monospace;font-size:13px}.empty{text-align:center;color:#8d8174;padding:40px}@media(min-width:760px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.week-list{grid-template-columns:repeat(2,1fr)}.table-preview{grid-template-columns:repeat(4,1fr)}.modal{place-items:center}.sheet{border-radius:26px}}@media(max-width:560px){.today-meals{grid-template-columns:1fr}.today-title h1{font-size:29px}.table-preview{grid-template-columns:1fr}.pantry-add{grid-template-columns:1fr 1fr}.pantry-add button{grid-column:1/-1}.section-title{align-items:flex-start}.title-actions{flex-wrap:wrap;justify-content:flex-end}.stat-grid{grid-template-columns:repeat(2,1fr)}}.table-dish.locked{border-color:#d6a047;background:#fff5df}.table-dish-content{flex:1;min-width:0}.table-dish img,.table-dish>.image-placeholder{flex-shrink:0}.recommendation-reason{line-height:1.5;overflow-wrap:anywhere}.dish-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.dish-actions button{border:1px solid #d8c7ae;border-radius:10px;background:#fff;padding:7px 10px;font-size:13px}.dish-actions button[aria-pressed=true]{background:#fff0c5;color:#765313}.recommendation-warnings{margin:12px 0;padding:12px 12px 12px 30px;border-radius:12px;background:#fff5df;color:#795724;font-size:13px;line-height:1.6}.keep-hint{font-size:13px;color:#795724}.meal-cooked-button{margin-top:14px;width:100%;padding:9px;border:1px solid #6c705f;border-radius:12px;background:#41463a;color:#f5eddd}.meal-cooked-button:disabled{opacity:.8}.today-meal-card{min-width:0}@media(max-width:540px){.table-preview{grid-template-columns:1fr}.dish-actions button{min-height:36px}}
