:root {
  color-scheme: light;
  --paper: #faf7ef;
  --white: #fffdf7;
  --ink: #32281e;
  --muted: #675b4d;
  --line: #e7decf;
  --rust: #9d4029;
  --rust-hover: #82341f;
  --sage: #40563a;
  --serif: 'Noto Serif SC', 'Songti SC', SimSun, STSong, serif;
  --sans: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--sans); }
body.modal-open { position: fixed; width: 100%; overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
:focus-visible { outline: 3px solid #846025; outline-offset: 3px; }
.shell { width: 100%; max-width: 1184px; margin: 0 auto; padding-inline: 18px; }
.noscript { padding: 24px; text-align: center; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 9px; font-size: 16px; font-weight: 750; line-height: 1.35; }
.brand-mark, .section-icon, .dock-icon { display: inline-grid; flex: none; place-items: center; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--rust); color: #fff9e8; }
.top-nav { display: none; align-items: center; gap: 30px; font-weight: 650; color: var(--muted); }
.top-nav a { padding: 10px 0; }
.top-nav a:hover { color: var(--rust); }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 9px 16px; border: 1px solid transparent; border-radius: 12px; font-weight: 720; line-height: 1.25; text-align: center; }
.button-primary { background: var(--rust); color: #fffdf5; }
.button-primary:hover:not(:disabled) { background: var(--rust-hover); }
.button-outline { background: var(--white); color: var(--rust); border-color: #d9b5a3; }
.button-outline:hover { background: #faeadf; }
.button-sage { background: var(--sage); color: #fffdf5; }
.button-sage:hover { background: #31482d; }
.add-dish { flex: none; gap: 3px; padding-inline: 11px; font-size: 15px; }
.top-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.lock-site { background: transparent; padding-inline: 11px; border-color: var(--line); color: var(--muted); }
.lock-site span { display: none; }
.lock-error { padding-bottom: 8px; }
main { padding-top: 16px; padding-bottom: 126px; }
#draw, #menu { scroll-margin-top: 18px; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 292px; border: 1px solid #eed9b5; border-radius: 23px; background: radial-gradient(ellipse at 90% 66%, #f7d899 0, transparent 67%), #f7e7c5; }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 410px; padding: 26px 19px; }
.hero h1 { color: #3d291a; font: 800 clamp(35px, 9vw, 54px)/1.12 var(--serif); letter-spacing: -.05em; white-space: pre-line; }
.hero p { max-width: 158px; margin: 13px 0 17px; color: #5d4831; font-weight: 530; line-height: 1.55; }
.hero-action { min-height: 46px; box-shadow: 0 3px 0 rgb(104 39 22 / 16%); }
.hero-art { position: absolute; right: -115px; bottom: -34px; width: 485px; height: 315px; transform: scale(.58); transform-origin: bottom right; pointer-events: none; }
.tablecloth { position: absolute; width: 458px; height: 239px; top: 80px; left: 56px; transform: rotate(-17deg); border-radius: 80px 27px 38% 19%; background: repeating-linear-gradient(0deg, transparent 0 20px, #fff4d165 20px 25px), repeating-linear-gradient(90deg, transparent 0 20px, #fff4d165 20px 25px), #ecbd78; box-shadow: 7px 8px 0 #d68d4733; }
.hero-plate { position: absolute; width: 345px; height: 244px; top: 21px; left: 65px; transform: rotate(-14deg); border-radius: 50%; background: radial-gradient(ellipse at 47% 43%, #fff8e5 0 51%, #e4cda5 52%, #fffaeb 55% 61%, #f8e8cb 62% 68%, #efdbb8 74%); box-shadow: inset 0 2px 3px #fff, 2px 7px 0 #d7b384, 9px 18px 16px #65462438; }
.plate-food { position: absolute; inset: 19px 27px; transform: rotate(7deg); }
.plate-food i { position: absolute; display: block; }
.food-rice { width: 122px; height: 97px; top: 33px; left: 63px; border-radius: 53% 48% 47% 50%; transform: rotate(-14deg); background: radial-gradient(ellipse at 4px 3px, #fffcf0 0 2px, transparent 3px) 0 0 / 9px 6px, radial-gradient(ellipse at 41% 34%, #fff9e4 15%, #ead4a5 84%); box-shadow: inset 1px 6px 8px #fffbe7, 2px 8px 7px #85613c34; }
.food-leaf { width: 67px; height: 43px; border-radius: 90% 18% 86% 22%; transform: rotate(var(--angle)); background: linear-gradient(150deg, #dce8a2 0%, #84a552 56%, #52723f 89%); box-shadow: inset -2px -4px 0 #3f67272c, 1px 4px 3px #63522538; }
.food-leaf::after { content: ''; position: absolute; width: 62%; height: 2px; border-radius: 2px; left: 10%; top: 53%; background: #eaf0b693; transform: rotate(-24deg); }
.leaf-one { --angle: -24deg; left: 149px; top: 25px; }
.leaf-two { --angle: 89deg; left: 176px; top: 38px; }
.leaf-three { --angle: 26deg; left: 188px; top: 71px; }
.leaf-four { --angle: -38deg; left: 168px; top: 91px; }
.food-meat { width: 57px; height: 36px; border-radius: 13px 9px 13px 11px; transform: rotate(var(--angle)); background: radial-gradient(ellipse at 33% 17%, #f3bd737d 0 12%, transparent 42%), linear-gradient(158deg, #bc5d33 4%, #9f401f 71%, #772d13 72%); box-shadow: inset 1px 2px #ffd48f84, 3px 8px 4px #5e2e2256; }
.food-meat::after { content: ''; position: absolute; width: 6px; height: 3px; top: 10px; left: 27px; border-radius: 50%; background: #dfe2a0; transform: rotate(24deg); box-shadow: 9px 4px #b4c382, -12px 6px #d4dba0; }
.meat-one { --angle: -13deg; top: 106px; left: 71px; }
.meat-two { --angle: 15deg; top: 103px; left: 124px; }
.meat-three { --angle: -14deg; top: 137px; left: 72px; }
.meat-four { --angle: -6deg; top: 145px; left: 127px; }
.meat-five { --angle: 23deg; top: 122px; left: 169px; }
.food-tomato { width: 33px; height: 28px; border-radius: 49% 52% 44% 47%; transform: rotate(-20deg); background: radial-gradient(ellipse at 36% 20%, #ffbe8d, transparent 38%), linear-gradient(145deg, #e77a46, #bf4c2c); box-shadow: 2px 4px 5px #ad512b69; }
.food-tomato::after { content: ''; position: absolute; width: 10px; height: 5px; border-radius: 100% 15%; top: 2px; left: 14px; background: #7b813a; }
.tomato-one { top: 92px; left: 45px; }
.tomato-two { top: 119px; left: 42px; }
.chopsticks { position: absolute; z-index: 1; width: 230px; height: 8px; right: 30px; top: 224px; transform: rotate(-25deg); border-radius: 9px 3px 3px 9px; background: linear-gradient(0deg, #7f4c2c, #ad7042); box-shadow: 0 13px 0 #915c37, 3px 17px 4px #6847255e, 3px 4px 4px #6847255e; }
.art-spark { position: absolute; color: #a36a37; font: 36px/1 var(--serif); }
.spark-one { top: 22px; left: 62px; }
.spark-two { top: 57px; left: 34px; font-size: 22px; }
.spark-three { top: 24px; right: 67px; font-size: 28px; }

.icon { position: relative; display: inline-block; flex: none; width: 20px; height: 20px; color: inherit; }
.icon-bowl::before { content: ''; position: absolute; inset: 8px 1px 2px; border: 2px solid currentColor; border-radius: 2px 2px 9px 9px; }
.icon-bowl::after { content: ''; position: absolute; top: 1px; left: 6px; width: 1.5px; height: 5px; border-radius: 2px; background: currentColor; box-shadow: 4px -1px currentColor, 8px 0 currentColor; transform: rotate(13deg); }
.icon-dice { width: 18px; height: 18px; border: 1.7px solid currentColor; border-radius: 4px; transform: rotate(-11deg); }
.icon-dice::before { content: ''; position: absolute; top: 3px; left: 3px; width: 2.3px; height: 2.3px; border-radius: 100%; background: currentColor; box-shadow: 7px 0 currentColor, 3.5px 3.5px currentColor, 0 7px currentColor, 7px 7px currentColor; }
.icon-book { width: 17px; height: 18px; border: 1.7px solid currentColor; border-left-width: 3px; border-radius: 2px 4px 4px 2px; }
.icon-book::before { content: ''; position: absolute; top: 4px; left: 3px; width: 6px; height: 1.5px; background: currentColor; box-shadow: 0 4px currentColor; }
.icon-basket::before { content: ''; position: absolute; inset: 7px 0 1px; border: 2px solid currentColor; border-radius: 2px 2px 5px 5px; transform: perspective(16px) rotateX(-13deg); }
.icon-basket::after { content: ''; position: absolute; width: 10px; height: 8px; border: 2px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; top: 1px; left: 5px; }
.icon-lock::before { content: ''; position: absolute; inset: 8px 3px 1px; border: 2px solid currentColor; border-radius: 3px; }
.icon-lock::after { content: ''; position: absolute; width: 9px; height: 8px; border: 2px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; top: 1px; left: 5.5px; }
.section-icon { width: 42px; height: 42px; border-radius: 13px; }
.draw-icon { color: var(--sage); background: #dce4d0; }
.menu-icon { color: var(--rust); background: #f3e4d6; }

.draw-panel { display: grid; gap: 14px; padding: 16px; margin-top: 17px; border: 1px solid #d9e1cf; border-radius: 18px; background: #edf0e4; }
.draw-header, .heading-group { display: flex; align-items: center; gap: 11px; }
.draw-header h2, .menu-heading h2 { font-size: 22px; line-height: 1.27; letter-spacing: -.025em; }
.draw-header p, .result-heading p { margin-top: 3px; color: #4e5f45; font-size: 14px; }
.draw-controls { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.preset-buttons, .categories { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 44px; padding: 7px 12px; border: 1px solid #ded4c4; border-radius: 999px; background: var(--white); color: #564638; font-weight: 650; font-size: 15px; line-height: 1.2; }
.chip:hover { border-color: var(--rust); }
.categories .chip[aria-pressed='true'] { background: var(--rust); color: #fffaf0; border-color: var(--rust); }
.preset-buttons .chip { border-color: #c9d3be; color: #40523b; background: #f8faf3; padding-inline: 10px; white-space: nowrap; }
.preset-buttons .chip[aria-pressed='true'] { border-color: #69815d; background: #dce7d4; box-shadow: inset 0 0 0 1px #69815d; }
.draw-trigger { min-width: 126px; }
.custom-counts { min-width: 0; margin: 0; padding: 6px 0 0; border: 0; }
.custom-counts legend { font-weight: 750; }
.count-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.count-grid label { display: grid; gap: 3px; font-weight: 680; }
.draw-results { border-top: 1px solid #d6dece; padding-top: 13px; }
.result-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.result-heading h3 { font-size: 18px; }
.result-list, .basket-list { margin: 0; padding: 0; list-style: none; }
.result-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 216px), 1fr)); gap: 8px; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 8px; border: 1px solid #d8e0d0; border-radius: 11px; background: var(--white); }
.result-card.flipped { animation: flip-in .44s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes flip-in { from { opacity: .3; transform: perspective(390px) rotateX(-75deg) translateY(10px); } to { opacity: 1; transform: none; } }
.result-name { display: flex; align-items: center; min-width: 0; gap: 7px; overflow-wrap: anywhere; }
.lock-button { min-height: 44px; flex: none; border: 1px solid #cbd6c4; border-radius: 9px; background: #f7f9f2; color: var(--sage); padding: 5px 9px; font-size: 14px; font-weight: 700; }
.lock-button[aria-pressed='true'] { color: #fff; background: var(--sage); border-color: var(--sage); }

.menu-section { margin-top: 26px; }
.menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.menu-heading p { color: var(--muted); font-size: 15px; white-space: nowrap; }
.categories { margin-bottom: 13px; }
.sync-error { margin-bottom: 12px; }
.menu-add { margin-top: 18px; }
.dish-grid { display: grid; gap: 12px; }
.dish-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 2px 3px #5e3c1b08; }
.dish-visual { --card-color: #efd9bd; --dish-rim: #fff2dd; position: relative; min-width: 0; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 35% 28%, #ffffff53, transparent 69%), repeating-linear-gradient(-35deg, #fff9ed55 0 1px, transparent 1px 17px), var(--card-color); }
.tone-meat { --card-color: #ebc5ae; --dish-rim: #f9e3ce; }
.tone-veg { --card-color: #dce3c7; --dish-rim: #f7f7e3; }
.tone-soup { --card-color: #f0d9a7; --dish-rim: #f9efd7; }
.tone-staple { --card-color: #ead9c6; --dish-rim: #fbeddc; }
.dish-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.dish-placeholder::before { position: absolute; content: ''; width: 73%; max-width: 156px; aspect-ratio: 1.25; border-radius: 50%; transform: rotate(-12deg); border: 3px solid #fff9eaa8; background: radial-gradient(ellipse, #fff9ec 0 54%, #d4b89d60 55%, transparent 59%), var(--dish-rim); box-shadow: 2px 4px 0 #82563129, 3px 8px 12px #65432128; }
.dish-emoji { position: relative; transform: rotate(-10deg); font-size: 40px; line-height: 1; filter: drop-shadow(1px 4px 2px #573e2533); }
.dish-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dish-photo.pending { opacity: 0; }
.dish-content { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px 11px 11px; }
.dish-title { font-size: 18px; line-height: 1.28; overflow-wrap: anywhere; }
.dish-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.stars { color: #9d571f; font-size: 15px; line-height: 1.1; letter-spacing: .075em; white-space: nowrap; }
.dish-tag { display: inline-block; max-width: 100%; border-radius: 6px; background: #f4ead9; color: #704829; padding: 1px 6px; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.dish-review { flex: 1; color: var(--muted); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.dish-add { align-self: stretch; margin-top: 3px; min-height: 44px; border: 1px solid #ecd4c4; border-radius: 9px; background: #f9eee3; color: var(--rust); font-weight: 720; }
.dish-add:hover { background: #f4e1d3; }
.empty-message { padding: 14px 0; color: var(--muted); }

.dock { position: fixed; z-index: 4; left: 12px; right: 12px; bottom: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid #eadac8; border-radius: 17px; box-shadow: 0 9px 24px #64432628; background: var(--white); }
.dock-icon { width: 41px; height: 41px; border-radius: 11px; background: #f3e6d8; color: var(--rust); }
.dock-info { flex: 1; min-width: 0; }
.dock-info strong, .dock-info span { display: block; line-height: 1.35; }
.dock-info span { margin-top: 2px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.dock .button { flex: none; padding-inline: 11px; font-size: 15px; white-space: nowrap; }
.toast { position: fixed; z-index: 12; bottom: 90px; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 30px); border-radius: 10px; background: #3f3024; color: #fffaf0; padding: 9px 16px; text-align: center; pointer-events: none; }
.toast:empty { opacity: 0; }

.overlay { position: fixed; z-index: 8; inset: 0; display: flex; justify-content: center; align-items: flex-end; background: #30251cb3; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; border-radius: 21px 21px 0 0; background: var(--white); box-shadow: 0 12px 32px #24180f48; }
.sheet-header { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 15px 17px 12px; border-bottom: 1px solid var(--line); }
.sheet-header h2 { font-size: 24px; line-height: 1.3; }
.sheet-header p { color: var(--muted); margin-top: 3px; }
.close-button { flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); font-size: 27px; line-height: 1; }
.sheet-body { min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 15px 17px; }
.sheet-footer { display: flex; flex: none; gap: 9px; padding: 10px 17px 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-footer .button { flex: 1; }
.sheet form { min-height: 0; display: flex; flex-direction: column; }
.basket-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.basket-row strong { min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
.stepper { display: flex; flex: none; align-items: center; gap: 6px; }
.stepper button { min-width: 44px; min-height: 44px; background: #f8eee2; color: var(--rust); border: 1px solid #e9d2bf; border-radius: 9px; font-size: 21px; line-height: 1; }
.stepper output { min-width: 22px; text-align: center; font-weight: 750; }
.field { display: grid; gap: 5px; }
.field label, .gate-card label { font-weight: 720; }
.field label span { color: var(--muted); font-size: 14px; font-weight: 500; }
#note-field { margin-top: 14px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #cdbfae; border-radius: 9px; background: #fffefa; color: var(--ink); }
textarea { resize: vertical; }
.form-message { color: #893523; font-size: 15px; }
.form-message:empty { display: none; }
.receipt-body { background: #efe6d7; }
#receipt-image { display: block; width: 100%; max-width: 410px; height: auto; margin: 0 auto; box-shadow: 0 3px 10px #513c2633; -webkit-touch-callout: default; }
.gate { display: grid; min-height: 100vh; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 45%, #f9e7c3, var(--paper) 80%); }
.gate-card { width: 100%; max-width: 410px; display: grid; gap: 10px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); }
.gate-card h1 { font: 800 30px/1.25 var(--serif); }
.gate-card p { color: var(--muted); }
.gate-card .form-message { color: #893523; }

.chef-page { max-width: 670px; padding-bottom: 40px; }
.chef-panel { padding: 19px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.chef-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.chef-heading h1 { font: 800 32px/1.15 var(--serif); }
.chef-heading p { margin-top: 4px; color: var(--muted); }
.chef-form { display: grid; gap: 15px; }
.chef-form .field label, .photo-field legend { font-size: 17px; font-weight: 750; }
.chef-form input:not([type='file']), .chef-form select, .chef-form textarea { min-height: 50px; font-size: 17px; }
.photo-field { margin: 0; min-width: 0; padding: 0; border: 0; }
.photo-picker { margin-top: 5px; padding: 9px; display: flex; align-items: center; gap: 10px; border: 1px dashed #d6b79b; border-radius: 13px; background: #fbf2e4; }
.photo-placeholder, .chef-preview { width: 66px; height: 66px; flex: none; border-radius: 9px; }
.photo-placeholder { display: grid; place-items: center; color: var(--rust); background: #efdac1; }
.chef-preview { object-fit: cover; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-button { position: relative; padding-inline: 9px; font-size: 15px; cursor: pointer; }
.photo-button:focus-within { outline: 3px solid #846025; outline-offset: 3px; }
.photo-input { position: absolute; inset: 0; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.photo-status, .chef-success { margin-top: 3px; color: var(--sage); }
.photo-status:empty, .chef-success:empty { display: none; }
.save-dish { min-height: 52px; font-size: 18px; }
.manage-panel { margin-top: 16px; }
.manage-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.manage-heading h2 { font-size: 22px; }
.managed-list { margin: 0; padding: 0; list-style: none; }
.managed-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.managed-photo { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #f7e6d1; }
.managed-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.managed-text { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.managed-text strong, .managed-text span { display: block; }
.managed-text span { color: var(--muted); font-size: 14px; }
.managed-row .button { padding-inline: 12px; flex: none; }

@media (min-width: 370px) {
  .add-dish { padding-inline: 12px; }
  .lock-site span { display: inline; }
  .hero-art { right: -93px; transform: scale(.66); }
  .dish-card { grid-template-columns: 114px minmax(0, 1fr); }
}
@media (min-width: 540px) {
  .shell { padding-inline: 26px; }
  .hero-content { padding-inline: 29px; }
  .hero p { max-width: 205px; }
  .hero-art { right: -51px; bottom: -25px; transform: scale(.84); }
  .draw-controls { flex-direction: row; justify-content: space-between; align-items: center; }
  .count-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dish-card { grid-template-columns: 1fr; grid-template-rows: 145px 1fr; }
  .dish-content { padding: 13px; }
  .dish-emoji { font-size: 57px; }
  .dock { width: 500px; left: 50%; right: auto; transform: translateX(-50%); padding: 10px 12px; }
  .overlay { align-items: center; padding: 18px; }
  .sheet { border-radius: 21px; }
}
@media (min-width: 780px) {
  .shell { padding-inline: 32px; }
  .topbar-inner { min-height: 76px; }
  .brand { font-size: 18px; gap: 11px; }
  .brand-mark { width: 40px; height: 40px; }
  .top-nav { display: flex; }
  .add-dish { padding-inline: 16px; }
  main { padding-top: 24px; }
  .hero { min-height: 324px; border-radius: 26px; }
  .hero-content { max-width: 550px; padding: 32px 39px; }
  .hero h1 { font-size: 62px; }
  .hero p { max-width: 100%; margin: 14px 0 20px; font-size: 17px; }
  .hero-art { right: 0; bottom: -28px; transform: scale(1.12); }
  .draw-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 18px 21px; margin-top: 20px; }
  .draw-controls { gap: 14px; }
  .draw-panel > :nth-child(n+3) { grid-column: 1 / -1; }
  .menu-section { margin-top: 32px; }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .dish-card { grid-template-rows: 156px 1fr; }
  .dish-content { gap: 8px; padding: 14px; }
}
@media (min-width: 1020px) {
  .hero-art { right: 42px; bottom: -41px; transform: scale(1.32); }
  .hero-content { padding-left: 52px; }
  .dish-card { grid-template-rows: 171px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .result-card.flipped { animation: none; }
}
