.collection-dialog[data-collection="food"]{--ink:#482f24;--line:#d6c7b6;--paper:#faf3e7;width:min(1120px,95vw);max-width:1120px;padding:24px 44px 30px;color:var(--ink);background:radial-gradient(ellipse at 100% 0,#f8d8b85c,transparent 45%),repeating-linear-gradient(90deg,#a97d4910 0 1px,transparent 1px 6px),#faf3e7;border:1px solid #e7d7c1;border-radius:22px;box-shadow:0 28px 110px #25150d80;scrollbar-color:#b99c7d #faf3e7}
.collection-dialog[data-collection="food"]::backdrop{background:#261b15b8;backdrop-filter:blur(7px)}
.collection-dialog[data-collection="food"] .dialog-toolbar{margin:0;min-height:32px}.collection-dialog[data-collection="food"] .icon-button{color:#704b39;background:#eee1cd80;border-radius:50%}.collection-dialog[data-collection="food"] #collection-heading{font-family:"Songti SC","SimSun",serif;font-size:clamp(26px,3.5vw,42px);font-weight:600;letter-spacing:.08em;margin:8px 0 32px;line-height:1.4}.collection-dialog[data-collection="food"] .collection-back{color:#765b46;border-top:1px solid #d8c7b2;width:100%;margin-top:32px;padding-top:23px;font-size:13px}
.food-preferences{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:0 0 38px;padding-bottom:30px;border-bottom:1px solid #d8c7b2}.food-card{display:block;text-align:left;color:#4a3427;width:100%;min-width:0;background:#fffcf5;padding:10px 10px 0;box-shadow:0 5px 19px #70513412;border:1px solid #e6d9c4;border-radius:4px;transition:transform .2s,box-shadow .2s;position:relative}.food-card:hover{transform:translateY(-5px) rotate(0deg)!important;box-shadow:0 14px 26px #70513428}.food-photo{display:block;overflow:hidden;border-radius:2px;background:#ede2d2}.food-photo img{display:block;width:100%;height:100%;object-fit:cover}.food-caption{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:19px 9px 21px;font-family:"Songti SC","SimSun",serif;font-size:18px;line-height:1.4;letter-spacing:.025em}.food-caption>span{color:#a87452;font-family:Arial,sans-serif;font-size:17px}.food-preference{padding:13px;display:grid;grid-template-columns:100px 1fr;gap:15px;align-items:center;background:#f4ead8;box-shadow:none;border-radius:12px;transform:rotate(-1deg)}.food-preference:nth-child(2){transform:rotate(1deg);background:#edf0e3;border-color:#ced1bc}.food-preference .food-photo{height:138px;background:#fff}.food-preference .food-photo img{object-fit:contain}.food-preference .food-caption{padding:0 8px;font-size:17px}.food-preference:before{content:"";width:52px;height:17px;background:#d1b69370;position:absolute;top:-8px;left:35px;transform:rotate(-6deg)}
.food-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 22px;align-items:start}.food-grid .food-photo{aspect-ratio:3/4}.food-grid .food-card:nth-child(3n+2){transform:rotate(1.25deg);margin-top:30px}.food-grid .food-card:nth-child(3n+1){transform:rotate(-1deg)}.food-grid .food-card:nth-child(4),.food-grid .food-card:nth-child(10){grid-column:span 2}.food-grid .food-card:nth-child(4) .food-photo,.food-grid .food-card:nth-child(10) .food-photo{aspect-ratio:4/3}.food-grid .food-card:nth-child(4),.food-grid .food-card:nth-child(10){transform:rotate(-.5deg)}.food-grid .food-card:nth-child(5){margin-top:10px}.food-add{align-self:center;min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;border:1px dashed #bfa78b;border-radius:48% 48% 10px 10px;background:#efe1c741;color:#8a5638;font:17px "Songti SC","SimSun",serif}.food-add>span{display:grid;place-items:center;width:66px;height:66px;font:35px Georgia;border:1px solid #bc8b6555;border-radius:50%;background:#fff9ee}.food-add:hover{background:#f3e1c5}.food-actions{display:flex;align-items:center;justify-content:center;gap:16px}.food-actions button,.food-navigation button,.food-return{color:#815638;padding:12px;min-height:44px}.food-actions p,.food-form [role=status]{font-size:13px;color:#975237}.food-full{margin:20px auto 0;max-width:900px;background:#fffaf1;padding:12px;box-shadow:0 8px 30px #70513420}.food-full img{display:block;width:100%;height:auto}.food-navigation{display:flex;justify-content:center;gap:26px;margin-top:18px}.food-navigation button{border:1px solid #c8b393;border-radius:50%;width:48px;height:48px}.food-navigation button:disabled{opacity:.3}.food-form{max-width:640px;margin:24px auto}.food-upload{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:220px;padding:24px;background:#f2e7d6;border:1px dashed #bfa78b;cursor:pointer;border-radius:12px;overflow:hidden}.food-upload img{max-height:380px;max-width:100%;object-fit:contain}.food-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.food-title-label{display:flex;flex-direction:column;gap:12px;margin-top:24px;font-size:15px}.food-title-label input{font:inherit;width:100%;padding:15px;border:1px solid #cbb79e;border-radius:8px;color:#482f24;background:#fffcf5}.food-save{background:#8d4932;color:#fff5e9;padding:15px 36px;border-radius:7px;font-size:16px;min-width:120px}.food-save:disabled{opacity:.5}.collection-dialog[data-collection="food"] button:focus-visible,.food-title-label input:focus-visible,.food-upload:focus-within{outline:3px solid #b3683b;outline-offset:4px}
@media(max-width:700px){.collection-dialog[data-collection="food"]{padding:16px 20px;width:96vw;border-radius:15px}.food-preferences{gap:13px;margin-bottom:25px;padding-bottom:23px}.food-preference{display:block;padding:9px}.food-preference .food-photo{height:150px}.food-preference .food-caption{font-size:13px;padding:13px 0 3px;gap:3px}.food-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 13px}.food-caption{font-size:15px;padding:15px 4px}.food-card{padding:7px 7px 0}.food-grid .food-card:nth-child(3n+2){margin-top:0}.food-grid .food-card:nth-child(2n){transform:rotate(1deg);margin-top:16px}.food-grid .food-card:nth-child(4),.food-grid .food-card:nth-child(10){margin-top:0}.food-add{min-height:190px}.collection-dialog[data-collection="food"] #collection-heading{margin-bottom:25px}.food-full{padding:6px}}
@media(prefers-reduced-motion:reduce){.food-card{transition:none}}

.food-upload img[hidden]{display:none}
