#food-dialog{padding:0;border:0;border-radius:28px;width:min(440px,calc(100vw - 24px));max-height:90dvh;color:#334847;background:#fffdf8;box-shadow:0 20px 80px #203b3330;font:inherit}#food-dialog::backdrop{background:#203b332b;backdrop-filter:blur(3px)}#food-dialog button,#food-dialog input{font:inherit}#food-dialog button{cursor:pointer;border:0;color:inherit}#food-dialog button:focus-visible,#food-dialog a:focus-visible{outline:3px solid #168279;outline-offset:3px}.food-head{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid #e7ece6}.food-head span{display:flex;gap:10px;align-items:center;font-weight:700}.food-head img{width:30px;height:30px;object-fit:contain}.food-head button{background:none;font-size:26px!important;width:36px;height:36px}.food-content{padding:12px 20px;overflow:auto;max-height:calc(90dvh - 215px)}.food-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.food-chip{background:#e7f0e7;padding:6px 10px;border-radius:20px;font-size:12px!important}.food-card{border-radius:20px;overflow:hidden;background:#f1eee5;touch-action:pan-y}.food-photo{height:clamp(160px,29dvh,300px);position:relative;background:#e9ece3;display:grid;place-items:center}.food-photo img{width:100%;height:100%;object-fit:cover}.food-favorite{position:absolute;top:12px;right:12px;background:#fffdf8e8;border-radius:50%;width:38px;height:38px;font-size:25px!important}.food-caption{padding:13px 17px}.food-caption h2{font-size:23px;margin:0 0 5px}.food-caption p{font-size:12px;margin:0;color:#65726b}.food-actions{display:flex;gap:10px;margin:12px 0 8px}.food-actions button{flex:1;border-radius:14px;padding:13px;background:#eef1e9}.food-actions button:last-child{background:#dcecdf}.food-primary{display:block;width:100%;padding:13px 12px;border-radius:14px;text-align:center;background:#315c50!important;color:white!important;text-decoration:none;font-weight:600;box-sizing:border-box}.food-secondary{padding:10px 14px;border-radius:14px;background:#edf0e9;margin:8px 0}.food-credit{font-size:11px;color:#6a756b;margin:10px 0}.food-credit a{color:inherit}.food-credit p{line-height:1.6}.food-notice{font-size:13px;line-height:1.5;margin:8px 0}.food-notice:empty{display:none}#food-dialog footer{padding:10px 20px 14px;border-top:1px solid #e6e9e2;background:#fffdf8}.food-toolbar{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px}.food-toolbar button{background:transparent;font-size:12px!important;padding:4px}.food-toolbar button:disabled{opacity:.35}#food-form{display:flex;border:1px solid #dbe4d9;border-radius:24px;padding:4px 5px 4px 14px;gap:6px}#food-text{min-width:0;flex:1;border:0;background:none;outline:none;font-size:16px!important;color:#334847}#food-form button{width:36px;height:36px;background:#dcecdf;border-radius:50%;font-size:21px!important}.food-ai-note{display:block;font-size:10px;color:#8c958a;text-align:center;margin-top:6px}.food-hints{display:flex;align-items:center;gap:5px;font-size:12px}.food-hints button{padding:7px;border-radius:10px;background:#e7efe3}.food-shortlist{display:grid;gap:16px}.food-shortlist .food-photo{height:160px}.food-empty{padding:35px 12px;text-align:center}.food-kicker{text-align:center;font-size:13px}.food-loading{padding:40px;text-align:center}.food-saved{display:grid;grid-template-columns:1fr 1fr;gap:12px}.food-saved button{padding:0;overflow:hidden;border-radius:15px;background:#eef1e9}.food-saved img{width:100%;height:95px;object-fit:cover}.food-saved span{display:block;padding:10px}.food-corner{padding:16px 22px;border:1px solid #dce5d8;background:#f4f7ee;border-radius:18px;margin-bottom:16px;cursor:pointer;font:inherit;color:#315c50}@media(max-width:600px){#food-dialog{margin:auto auto 10px;max-height:88dvh;width:calc(100vw - 16px);border-radius:25px}.food-content{max-height:calc(88dvh - 215px)}.food-photo{height:26dvh}.food-caption h2{font-size:21px}}@media(prefers-reduced-motion:reduce){#food-dialog *{scroll-behavior:auto}}

#food-dialog[open]{display:flex;flex-direction:column;height:min(760px,90dvh);overflow:hidden}#food-dialog .food-head,#food-dialog footer{flex-shrink:0}#food-dialog .food-content{flex:1;min-height:0;max-height:none;scrollbar-width:thin}#food-dialog .food-card+.food-credit{margin:7px 0}@media(max-width:600px){#food-dialog[open]{height:min(740px,88dvh)}}
#food-dialog .food-photo{overflow:hidden}#food-dialog .food-photo>img{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-height:100%;object-fit:cover}

#food-dialog .food-contexts{display:flex;gap:6px;margin:0 0 10px}#food-dialog .food-contexts button{background:#f0f2e9;border-radius:16px;padding:5px 11px;font-size:12px}#food-dialog .food-credit summary{overflow-wrap:anywhere}#food-dialog .food-credit p{overflow-wrap:anywhere}

#food-dialog .food-actions{gap:6px}#food-dialog .food-actions button{padding:11px 4px;min-width:0;font-size:12px}#food-dialog .food-actions .food-primary{width:auto;flex:1.1}#food-dialog .food-credit summary{white-space:nowrap}#food-dialog .food-author{display:inline-block;max-width:125px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}@media(max-width:600px){#food-dialog .food-photo{height:clamp(155px,23dvh,220px)}}
@media(min-width:601px) and (max-height:800px){#food-dialog .food-photo{height:clamp(130px,calc(90dvh - 500px),190px)}}
