:root{--red:#B62D32;--red-dark:#922128;--red-soft:#FCF0F0;--ink:#252B2A;--muted:#65706D;--line:#E3E8E5;--surface:#F6F8F7;--green:#347358;--green-soft:#EEF6F0;--blue:#38678A;--blue-soft:#EFF5FA;--serif:"Songti SC","STSong","SimSun",serif;--sans:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color-scheme:light}
*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:var(--sans);font-size:16px;color:var(--ink);background:#fff;letter-spacing:0}body{overflow:hidden}button,input,select{font:inherit;letter-spacing:0}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:default;opacity:.45}a{color:inherit}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:8px;left:8px;padding:12px;background:#fff;z-index:200;transform:translateY(-150%)}.skip-link:focus{transform:none}
.lucide{width:20px;height:20px;flex:none;stroke-width:1.7}.icon-button{width:38px;height:38px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;background:transparent}.icon-button:hover{background:var(--surface)}.button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 14px;border:1px solid var(--line);border-radius:6px;font-size:14px;font-weight:500;white-space:nowrap;background:#fff}.button:hover{border-color:#B8C0BC;background:var(--surface)}.primary-button{background:var(--red);border-color:var(--red);color:#fff}.primary-button:hover{background:var(--red-dark);border-color:var(--red-dark)}
.app-header{height:80px;display:flex;align-items:center;gap:32px;padding:0 28px;border-bottom:1px solid var(--line);background:#fff;position:relative;z-index:20}.brand{display:flex;align-items:center;gap:12px;flex:none;text-decoration:none;font-family:var(--serif);font-size:26px;font-weight:700;color:var(--red);white-space:nowrap}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--red);border-radius:8px}.brand-mark .lucide{width:25px;height:25px}.search{height:44px;width:min(480px,100%);min-width:0;display:flex;align-items:center;gap:10px;padding:0 7px 0 14px;margin:0 auto;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.search>.lucide{color:var(--muted)}.search:focus-within{border-color:var(--red);box-shadow:0 0 0 2px var(--red-soft)}.search input{border:0;outline:0;background:transparent;min-width:0;width:100%;font-size:14px;height:100%;color:var(--ink)}.search input::-webkit-search-cancel-button{display:none}.search input::placeholder{color:var(--muted)}.header-actions,.inline-actions{display:flex;align-items:center;gap:6px;flex:none}.count{font-size:14px;min-width:19px;line-height:20px;border-radius:4px;text-align:center;background:var(--surface);color:var(--muted)}.favorites-toggle[aria-pressed=true]{color:var(--red);border-color:#E4B3B5;background:var(--red-soft)}.mobile-filter,.mobile-only{display:none}
.layout{display:grid;grid-template-columns:272px minmax(0,1fr);height:calc(100dvh - 80px);min-height:0}.sidebar{display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid var(--line);background:#fff}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 16px 12px}.sidebar-heading h2{margin:0;font-size:18px;font-weight:600}.filters{padding:0 16px 18px;border-bottom:1px solid var(--line)}.cuisine-disclosure{position:relative;margin-bottom:14px}.cuisine-disclosure summary{display:flex;align-items:center;gap:10px;padding:10px 11px;border:1px solid var(--line);border-radius:5px;font-size:14px;cursor:pointer;list-style:none}.cuisine-disclosure summary::-webkit-details-marker{display:none}.cuisine-disclosure summary>span:nth-child(2){margin-left:auto;color:var(--muted);max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cuisine-disclosure summary .lucide{width:16px;height:16px}.cuisine-disclosure[open] summary .lucide{transform:rotate(180deg)}.cuisine-options{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:30;padding:6px;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 24px #172A2014;max-height:330px;overflow:auto}.cuisine-option{display:flex;align-items:center;gap:9px;padding:8px;font-size:14px;cursor:pointer;border-radius:4px}.cuisine-option:hover{background:var(--surface)}.cuisine-option input{accent-color:var(--red);width:16px;height:16px;margin:0}.cuisine-option .option-count{margin-left:auto;color:var(--muted);font-variant-numeric:tabular-nums}.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.filter-grid label{font-size:14px;color:var(--muted);display:grid;gap:8px;min-width:0}select{font-size:14px;background:#fff;border:1px solid var(--line);border-radius:5px;min-height:38px;color:var(--ink);padding:6px 25px 6px 9px;max-width:100%;min-width:0}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 16px 10px}.result-heading h3{font-size:14px;font-weight:500;margin:0;white-space:nowrap}.result-heading h3 span{color:var(--muted);font-weight:400;margin-left:5px}.sort-select{border:0;padding-left:0;max-width:110px;color:var(--muted);min-height:30px}
.sidebar-results{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 8px 12px}.recipe-row{display:flex;align-items:center;gap:10px;padding:12px 8px;position:relative;border-bottom:1px solid var(--line)}.recipe-row:last-child{border-bottom:0}.recipe-row.selected{background:var(--red-soft);border-radius:5px}.recipe-row .recipe-open{display:flex;align-items:center;gap:11px;flex:1;min-width:0;padding:0;text-align:left}.recipe-thumb{width:62px;height:62px;flex:none;object-fit:cover;border-radius:5px;background:var(--surface)}.photo-placeholder{display:grid;place-items:center;background:var(--green-soft);color:var(--green)}.recipe-row-text{display:flex;flex-direction:column;gap:6px;min-width:0}.recipe-row-name{font-size:16px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}.recipe-row-meta{font-size:14px;color:var(--muted);line-height:1.5}.recipe-row .bookmark-button{width:32px;height:36px}.bookmark-button[aria-pressed=true]{color:var(--red)}.bookmark-button[aria-pressed=true] .lucide{fill:var(--red-soft)}.sidebar-footer{display:flex;justify-content:space-between;gap:8px;padding:15px 16px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}.sidebar-footer>span:first-child{color:var(--red);white-space:nowrap}
.workspace{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;overflow:hidden}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 28px 18px;min-height:99px;border-bottom:1px solid var(--line)}.workspace-heading h1{font-family:var(--serif);font-size:26px;font-weight:600;line-height:1.35;margin:0 0 8px;overflow-wrap:anywhere}.workspace-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}.view-switch{display:flex;flex:none;padding:3px;background:var(--surface);border:1px solid var(--line);border-radius:6px}.view-switch button{height:34px;padding:0 11px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:14px;border-radius:4px}.view-switch .lucide{width:17px;height:17px}.view-switch button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #253A2515;color:var(--red)}.active-filters{display:flex;flex-wrap:wrap;gap:8px;padding:12px 28px;border-bottom:1px solid var(--line)}.active-filter{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:4px;padding:5px 8px;font-size:14px;background:var(--surface);line-height:20px}.active-filter .lucide{width:15px;height:15px}
.graph-section{display:flex;flex:1;min-height:0;position:relative;isolation:isolate;background:#FCFDFC;background-image:radial-gradient(#DDE5E0 .8px,transparent .8px);background-size:22px 22px}.graph-topbar{position:absolute;top:16px;left:24px;right:24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;z-index:2;pointer-events:none}.graph-topbar>*{pointer-events:auto}#graph-breadcrumb{display:flex;align-items:center;gap:6px;font-size:14px;min-height:30px}#graph-breadcrumb button{font-size:14px;padding:5px 0;color:var(--muted)}#graph-breadcrumb button:hover{color:var(--red)}#graph-breadcrumb .lucide{width:15px;height:15px;color:var(--muted)}.legend{display:flex;flex-wrap:wrap;align-items:center;gap:13px;font-size:14px;background:#FCFDFCEB}.legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.legend b{width:9px;height:9px;border-radius:2px;display:block}.legend-cuisine{background:var(--red)}.legend-dish{background:#fff;border:1px solid #7F8D86}.legend-ingredient{background:var(--green)}.legend-technique{background:var(--blue)}#graph-canvas{display:block;width:100%;height:100%;min-height:250px;touch-action:none;cursor:grab}#graph-canvas:active{cursor:grabbing}.graph-edge{fill:none;stroke:#CCD5D0;stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none}.graph-edge.uses{stroke:#A8CBB6}.graph-edge.by{stroke:#AAC3D9}.edge-label{font:14px var(--sans);fill:var(--muted);paint-order:stroke;stroke:#FCFDFC;stroke-width:6px;stroke-linejoin:round;text-anchor:middle;pointer-events:none}.graph-node{cursor:pointer;outline:none}.graph-node .node-shape{stroke:#C5D1CB;stroke-width:1.5;fill:#fff;vector-effect:non-scaling-stroke}.graph-node.cuisine .node-shape{fill:var(--red-soft);stroke:#DDA8AB}.graph-node.ingredient .node-shape{fill:var(--green-soft);stroke:#ABC8B8}.graph-node.technique .node-shape{fill:var(--blue-soft);stroke:#AFC8DD}.graph-node text{font-family:var(--sans);text-anchor:middle;pointer-events:none;fill:var(--ink);font-size:16px;font-weight:500}.graph-node text.node-meta{font-size:14px;font-weight:400;fill:var(--muted)}.graph-node.cuisine text{fill:var(--red-dark)}.graph-node.ingredient text{fill:#285B43}.graph-node.technique text{fill:#2B5576}.graph-node.selected .node-shape{fill:var(--red);stroke:var(--red)}.graph-node.selected text{fill:#fff}.graph-node:hover .node-shape{stroke:var(--red);stroke-width:2.5}.graph-node:focus-visible .node-shape{stroke:var(--blue);stroke-width:3.5}
.graph-bottom{position:absolute;bottom:20px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}.graph-bottom>*{pointer-events:auto}.graph-count{color:var(--muted);font-size:14px;background:#FCFDFCEB}.graph-controls{display:flex;align-items:center;gap:2px;background:#fff;border:1px solid var(--line);padding:3px;border-radius:6px;box-shadow:0 2px 8px #24372C08}.graph-controls output{width:47px;text-align:center;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}.control-divider{height:20px;border-left:1px solid var(--line);margin:0 4px}
.list-section{flex:1;overflow:auto;overscroll-behavior:contain;padding:24px 28px;background:var(--surface)}.dish-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:20px;align-items:start}.dish-card{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;position:relative;min-width:0}.dish-card.selected{border-color:var(--red)}.dish-card .card-open{display:block;width:100%;padding:0;text-align:left}.dish-card .card-photo{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:#E9EFEB}.dish-card .photo-placeholder{display:grid}.card-body{display:block;padding:16px}.card-body h2{font-family:var(--serif);font-size:21px;line-height:1.5;margin:0 0 8px}.card-meta{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:14px;line-height:1.6;flex-wrap:wrap}.card-bottom{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:14px;padding-top:12px;font-size:14px;color:var(--muted)}.card-bottom>span{display:inline-flex;align-items:center;gap:5px}.card-bottom .lucide{width:16px;height:16px}.dish-card>.bookmark-button{position:absolute;right:10px;top:10px;background:#fff;width:36px;height:36px;box-shadow:0 2px 5px #0000000D}
.empty-state{margin:auto;text-align:center;padding:36px 24px;max-width:440px;line-height:1.7}.empty-state .empty-icon{display:inline-flex;padding:14px;color:var(--muted);background:var(--surface);border-radius:8px}.empty-icon .lucide{width:28px;height:28px}.empty-state h2{font-size:20px;font-weight:500;margin:18px 0 10px}.empty-state p{color:var(--muted);font-size:14px;margin:0 0 22px}.sidebar-results .empty-state{padding:30px 8px}.sidebar-results .empty-state h2{font-size:16px}
.detail-panel{min-height:0;overflow-y:auto;overscroll-behavior:contain;background:#fff;border-left:1px solid var(--line);position:relative;min-width:0}.detail-topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}.detail-photo{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--surface)}.detail-content{padding:22px}.detail-type{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--red);margin-bottom:10px}.detail-content h2{font-family:var(--serif);font-size:30px;line-height:1.4;margin:0 0 14px;overflow-wrap:anywhere}.detail-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:14px;color:var(--muted);margin-bottom:18px}.detail-meta>span{display:inline-flex;align-items:center;gap:5px}.detail-meta .lucide{width:17px;height:17px}.detail-desc{line-height:1.9;font-size:16px;color:#4C5752;margin:18px 0 24px}.detail-content h3{font-size:16px;font-weight:600;margin:25px 0 14px}.ingredient-list{display:flex;flex-wrap:wrap;gap:8px}.ingredient-button{font-size:14px;padding:7px 11px;border:1px solid #CEE0D5;border-radius:4px;background:var(--green-soft);color:#285B43}.technique-button{background:var(--blue-soft);border-color:#CCDBE8;color:#2B5576}.ingredient-button:hover{border-color:currentColor}.steps-list{list-style:none;counter-reset:step;padding:0;margin:0}.steps-list li{display:flex;gap:12px;margin:0 0 18px;font-size:16px;line-height:1.9}.steps-list li:before{counter-increment:step;content:counter(step);width:25px;height:25px;flex:none;display:grid;place-items:center;color:var(--red);background:var(--red-soft);font-size:14px;border-radius:4px;margin-top:2px}.detail-credit{font-size:14px;color:var(--muted);line-height:1.8;border-top:1px solid var(--line);padding-top:16px;margin-top:24px;overflow-wrap:anywhere}.detail-credit a{text-decoration:underline;text-underline-offset:3px}.related-list{display:grid;gap:8px}.related-link{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:11px 0;text-align:left;font-size:16px;line-height:1.5;gap:10px}.related-link .lucide{width:17px;height:17px;color:var(--muted)}
dialog{padding:0;border:1px solid var(--line);color:var(--ink);background:#fff;max-height:100dvh;max-width:100vw}dialog::backdrop{background:#14291F52}.detail-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:390px;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--line);box-shadow:-8px 0 32px #10271B12}.detail-dialog #detail-slot,.detail-dialog .detail-panel{height:100%;border:0}.filter-dialog{position:fixed;inset:0 auto 0 0;margin:0;width:min(360px,calc(100vw - 28px));height:100dvh;border:0;border-right:1px solid var(--line)}.filter-dialog #filter-slot,.filter-dialog .sidebar{height:100%;width:100%;border:0;display:flex}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:150;border:1px solid var(--line);background:var(--ink);color:#fff;padding:12px 18px;border-radius:6px;font-size:14px;box-shadow:0 4px 24px #172A2020;max-width:calc(100vw - 32px);line-height:1.6}.noscript{padding:24px;background:#fff;color:var(--red)}
.dish-card .card-photo,.detail-photo{height:auto}
.active-filter{max-width:100%;overflow-wrap:anywhere;text-align:left}
.pantry-toggle.has-ingredients{color:var(--green);border-color:#B7D2C2;background:var(--green-soft)}
.pantry-summary{flex:none;padding:16px 28px;background:var(--green-soft);border-bottom:1px solid #D6E5DB;font-size:14px}
.pantry-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.pantry-summary-heading strong{font-weight:500;color:#285B43}
.text-button{display:inline-flex;align-items:center;gap:5px;font-size:14px;padding:4px 0;color:var(--green)}
.text-button .lucide{width:16px;height:16px}
.pantry-chips{display:flex;flex-wrap:wrap;gap:7px}
.pantry-chip{display:inline-flex;align-items:center;gap:6px;background:#fff;color:#285B43;border:1px solid #CEE0D5;padding:5px 8px;border-radius:4px;font-size:14px}
.pantry-chip .lucide{width:14px;height:14px}
.complete-filter{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:14px;cursor:pointer}
.complete-filter input,.pantry-option input{width:17px;height:17px;accent-color:var(--green);flex:none;margin:0}
.pantry-match{display:grid;gap:5px;font-size:14px;line-height:1.6;color:var(--blue);margin-top:12px}
.pantry-match.is-complete{color:var(--green)}
.missing-names{color:var(--muted);overflow-wrap:anywhere}
.recipe-row-text .pantry-match{margin:0}
.pantry-dialog{width:min(680px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 40px));border:1px solid var(--line);border-radius:8px;overflow:hidden}
.pantry-dialog[open]{display:flex;flex-direction:column}
.pantry-dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex:none;padding:22px 24px 18px;border-bottom:1px solid var(--line)}
.pantry-dialog-heading h2{font-family:var(--serif);font-size:26px;margin:0 0 10px}
.pantry-dialog-heading p{font-size:14px;color:var(--muted);margin:0;line-height:1.6}
.pantry-dialog-body{padding:20px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.pantry-search-label{font-size:14px;display:block;margin-bottom:8px;color:var(--muted)}
.pantry-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:5px;padding:0 12px;height:42px;background:var(--surface)}
.pantry-search .lucide{color:var(--muted);width:18px;height:18px}
.pantry-search input{font-size:14px;background:none;border:0;outline:0;width:100%;min-width:0;height:100%}
.pantry-search:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.pantry-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;margin-top:24px}
.pantry-category h3{font-size:14px;color:var(--muted);font-weight:500;margin:0 0 9px}
.pantry-category-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.pantry-option{display:flex;align-items:center;gap:8px;min-height:42px;padding:7px 8px;font-size:14px;border-radius:4px;cursor:pointer;border:1px solid var(--line);min-width:0}
.pantry-option:has(input:checked){background:var(--green-soft);border-color:#B7D2C2;color:#285B43}
.pantry-no-match{font-size:14px;text-align:center;color:var(--muted);padding:24px 0}
.pantry-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:16px 24px;border-top:1px solid var(--line);font-size:14px}
.pantry-dialog-footer>div{display:flex;gap:8px}
.recipe-times{display:flex;flex-wrap:wrap;gap:12px;font-size:14px;color:var(--muted);border-top:1px solid var(--line);padding-top:18px}
.servings-control{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 10px}
.servings-control h3{margin:0}
.servings-stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:5px}
.servings-stepper .icon-button{width:32px;height:34px}
.servings-stepper .lucide{width:17px;height:17px}
.servings-stepper output{min-width:65px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}
.recipe-note{font-size:14px;line-height:1.8;color:var(--muted);margin:0 0 16px}
.recipe-amounts{list-style:none;margin:0;padding:0}
.recipe-amounts li{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.7}
.amount-description{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.amount-name,.ingredient-link{font-size:16px;font-weight:500;text-align:left;padding:0;line-height:1.7}
.ingredient-link{color:var(--green)}
.ingredient-link:hover{text-decoration:underline;text-underline-offset:3px}
.amount-note{color:var(--muted);font-size:14px}
.amount-value{white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums;padding-top:2px}
.amount-stock{font-size:14px;color:var(--blue)}
.amount-stock.in-stock{color:var(--green)}
.recipe-tips{font-size:14px;line-height:1.9;padding-left:20px;color:#4C5752;margin:0}
.recipe-tips li{margin-bottom:10px}
.recipe-sources{display:grid;gap:10px;font-size:14px;line-height:1.7;overflow-wrap:anywhere;color:var(--muted)}
.recipe-sources a{text-underline-offset:3px}
.detail-topbar{position:sticky;top:0;z-index:5;background:#fff}
@media(max-width:1000px){.app-header{gap:14px}.search{max-width:400px}.pantry-toggle{padding:9px 10px}}
@media(max-width:760px){.pantry-toggle{min-height:36px;width:36px;padding:7px}.pantry-button-label,.pantry-toggle .count{display:none}.pantry-summary{padding:14px 16px}.pantry-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}.pantry-dialog-heading{padding:18px 16px}.pantry-dialog-heading h2{font-size:24px}.pantry-dialog-body{padding:16px}.pantry-options{gap:18px 12px}.pantry-category-options{grid-template-columns:1fr}.pantry-dialog-footer{padding:14px 16px;flex-wrap:wrap}.pantry-dialog-footer>div{margin-left:auto}.pantry-dialog-footer .button{padding:8px 10px}}
@media(max-width:400px){.favorites-toggle{width:36px;min-height:36px;padding:7px}.favorites-button-label{display:none}}
@media(min-width:1280px){.layout.has-detail{grid-template-columns:272px minmax(0,1fr) 340px}}
@media(min-width:1550px){.layout{grid-template-columns:292px minmax(0,1fr)}.layout.has-detail{grid-template-columns:292px minmax(0,1fr) 370px}}
@media(max-width:1000px){.app-header{gap:20px;padding:0 20px}.layout{grid-template-columns:252px minmax(0,1fr)}.brand{font-size:24px}.workspace-heading{padding:22px 22px 18px}.graph-topbar{left:20px;right:20px}.legend{gap:9px}}
@media(max-width:760px){body{overflow:hidden}.app-header{height:124px;display:grid;grid-template-columns:1fr auto;grid-template-rows:52px 44px;gap:8px 12px;padding:8px 16px 12px}.brand{font-size:23px;gap:8px}.brand-mark{width:34px;height:34px}.brand-mark .lucide{width:23px;height:23px}.header-actions{gap:6px}.favorites-toggle{padding:7px 9px;min-height:36px;gap:6px}.favorites-toggle>.lucide{width:17px;height:17px}.favorites-toggle .count{display:none}.mobile-filter,.mobile-only{display:inline-flex}.search{grid-column:1/-1;grid-row:2;width:100%;height:44px}.layout,.layout.has-detail{display:flex;flex-direction:column;height:calc(100dvh - 124px)}.layout>.sidebar{display:none}.workspace{flex:1}.workspace-heading{padding:18px 16px 16px;min-height:88px;gap:8px}.workspace-heading h1{font-size:23px;margin-bottom:5px}.workspace-heading p{font-size:14px;max-width:190px}.view-switch button{padding:0 8px;height:34px;gap:4px}.view-switch .lucide{width:16px;height:16px}.active-filters{padding:10px 16px;gap:6px}.list-section{padding:16px}.dish-grid{grid-template-columns:1fr;gap:16px}.dish-card .card-photo{aspect-ratio:16/9}.card-body{padding:16px}.card-body h2{font-size:22px}.graph-topbar{top:12px;left:16px;right:16px;gap:6px}.legend{gap:10px}.graph-bottom{bottom:16px;left:16px;right:16px}.graph-count{max-width:105px;line-height:1.7}.graph-controls .icon-button{width:34px;height:36px}.graph-controls output{width:42px}.detail-dialog{inset:auto 0 0;margin:0;width:100%;height:90dvh;max-height:90dvh;border-radius:8px 8px 0 0;border:0;border-top:1px solid var(--line)}.detail-content{padding:22px}.detail-photo{aspect-ratio:16/10}.filter-dialog .sidebar-heading{padding-top:14px}.sidebar-footer{font-size:14px}.empty-state h2{font-size:19px}}
@media(min-width:520px) and (max-width:760px){.dish-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dish-card .card-photo{aspect-ratio:4/3}.card-meta{gap:8px}.card-body{padding:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
