@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f5efe4;
  --surface: #fffdf7;
  --ink: #382e28;
  --muted: #8a7c6f;
  --brand: #983b2f;
  --brand-dark: #78291f;
  --brand-soft: #f4e6dc;
  --orange: #ab5335;
  --orange-soft: #f6e8d4;
  --line: #e5dacb;
  --danger: #b2392c;
  --water: #64838a;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --radius: 18px;
  --shadow: 0 12px 40px rgb(74 48 26 / 7%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgb(127 90 45 / 1.4%) 3px 4px); color: var(--ink); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: var(--brand); text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #cb9261;
  outline-offset: 3px;
}
button, input, select, textarea { touch-action: manipulation; }
input, select, textarea { min-width: 0; }
img, svg { max-width: 100%; }
img { display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.35; }
[hidden], .hidden { display: none !important; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 10; width: 240px;
  display: flex; flex-direction: column; padding: 34px 24px 26px;
  background: #fbf5e9; border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-bottom: 38px; }
.brand-mark {
  display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 51px;
  border: 1px solid #ab5941; border-radius: 3px; background: var(--brand); color: #fff4de; font-family: var(--serif); font-size: 30px;
  box-shadow: inset 0 0 0 3px var(--brand), inset 0 0 0 4px rgb(255 244 222 / 55%);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; font-family: var(--serif); font-weight: 700; line-height: 1.25; letter-spacing: 2px; }
.brand-copy strong { font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: 4px; color: var(--ink); }
.brand-name { font-size: 25px; font-weight: 700; letter-spacing: 2px; white-space: nowrap; }
.brand-copy small { font-family: "Microsoft YaHei", sans-serif; font-size: 8px; font-weight: 400; white-space: nowrap; letter-spacing: .4px; color: var(--muted); margin-top: 6px; }
.nav-list { display: flex; flex-direction: column; gap: 9px; }
.nav-button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px;
  padding: 12px 16px; border: 0; border-radius: 11px; text-align: left;
  background: transparent; color: #837266; font-size: 14px; font-weight: 550;
  transition: background .18s, color .18s;
}
.nav-button svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav-button > span:last-child { margin-left: auto; font-size: 9px; letter-spacing: 1px; opacity: .55; }
.nav-button > span:first-child { width: 19px; flex-shrink: 0; text-align: center; font-size: 19px; line-height: 1; }
.nav-button:hover { background: var(--brand-soft); color: var(--brand); }
.nav-button.active { background: var(--brand); color: #fff; box-shadow: 0 6px 14px rgb(132 52 39 / 13%); }
.sidebar-bottom { margin-top: auto; padding-top: 32px; color: var(--muted); }
.sidebar-bottom p { margin: 13px 3px 0; font-size: 11px; line-height: 1.9; }
.store-badge { display: flex; align-items: center; gap: 9px; padding: 14px 12px; background: #eee6d8; border-radius: 11px; color: #677a80; font-size: 12px; }
.store-badge svg { width: 19px; height: 19px; flex-shrink: 0; }
.store-badge > span { display: grid; place-items: center; width: 31px; height: 34px; flex-shrink: 0; border: 1px solid #b8c8cc; border-radius: 7px; color: #647f86; font-size: 17px; }
.store-badge small { display: block; margin-top: 3px; font-size: 9px; color: #8d8170; }
.main { max-width: 1570px; min-width: 0; margin-left: 240px; padding: 26px 46px 50px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; margin-bottom: 29px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: 1.7px; color: var(--muted); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #64838a; margin-right: 7px; vertical-align: middle; }
.page-title { margin-bottom: 8px; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 35px); letter-spacing: 1px; font-weight: 750; }
.page-subtitle { color: var(--muted); margin-bottom: 26px; font-size: 13px; }
.hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px;
  overflow: hidden; margin-bottom: 28px; min-height: 188px; padding: 27px 32px;
  background: linear-gradient(112deg, #f1e5cf 0%, #f4ebd8 52%, #e5e9df 100%); border: 1px solid #dfceb5; border-radius: var(--radius);
}
.hero::after { content: ""; position: absolute; right: -55px; bottom: -69px; width: 350px; height: 175px; border: 1px solid rgb(100 131 138 / 17%); border-radius: 50%; box-shadow: 0 0 0 14px rgb(100 131 138 / 5%), 0 0 0 29px rgb(100 131 138 / 5%), 0 0 0 44px rgb(100 131 138 / 4%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; flex: 1; min-width: 0; }
.hero-copy h1, .hero-copy h2 { margin-bottom: 10px; font-family: var(--serif); font-size: clamp(24px, 2.3vw, 31px); font-weight: 700; letter-spacing: 1px; }
.hero-copy p { max-width: 520px; font-size: 13px; color: #81705f; margin-bottom: 19px; }
.hero-kicker { display: block; margin-bottom: 13px; color: #a0523c; font-size: 10px; font-weight: 650; letter-spacing: 2.6px; }
.hero-art { position: relative; z-index: 1; flex: 0 0 260px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; }
.hero-art svg { width: 260px; height: 175px; overflow: visible; }
.hero-art > span { font-size: 9px; color: #697f82; letter-spacing: 1.7px; white-space: nowrap; }
.ningbo-seal { position: absolute; top: 20px; right: 21px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 29px; min-height: 50px; padding: 4px 0; border: 1px solid #a94e38; border-radius: 2px; color: #a24731; font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.15; transform: rotate(4deg); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #dcc7ac; border-radius: 6px; color: #825842; font-size: 10px; background: rgb(255 255 255 / 30%); }
.hero-pill svg { width: 12px; height: 12px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.panel { min-width: 0; padding: 27px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.panel-title { font-size: 17px; font-weight: 650; margin-bottom: 5px; }
.panel-header p { margin-bottom: 0; }
.section-number { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: #f1e5d9; color: #a15c45; font-size: 10px; font-weight: 650; }
.form-section { padding: 22px 0; border-top: 1px solid #ede4d9; }
.form-section:first-of-type { padding-top: 0; border-top: 0; }
.field-label { display: block; margin-bottom: 13px; color: #554235; font-size: 13px; font-weight: 650; }
.field-help { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 5px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 9px; }
.choice {
  min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; background: #fffdf7; color: #877565; border: 1px solid #e2d7c8;
  border-radius: 8px; font-size: 12px; transition: background .18s, border-color .18s, color .18s;
}
.choice:hover { border-color: #bc9981; background: #faf1e7; }
.choice.selected { background: #f8e9df; border-color: #b1654c; color: #933f2c; font-weight: 550; box-shadow: inset 0 0 0 .5px #b1654c; }
.choice svg { width: 15px; height: 15px; }
.stepper { display: inline-flex; align-items: center; height: 45px; border: 1px solid #e0d4c2; border-radius: 9px; background: #fffdf7; overflow: hidden; }
.stepper-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #95634c; font-size: 22px; }
.stepper-button:hover { background: #f5e9dc; }
.stepper-value { min-width: 70px; padding: 0 12px; text-align: center; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stepper-value small { font-size: 11px; font-weight: 400; color: var(--muted); }
.budget-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.budget-wrap .text-input { width: 120px; }
.text-input, .select-input, .search-input {
  display: block; width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #e1d7c8;
  border-radius: 9px; color: var(--ink); background: #fffdf7; transition: border-color .18s;
}
.text-input::placeholder, .search-input::placeholder { color: #aa9b8d; }
.text-input:hover, .select-input:hover, .search-input:hover { border-color: #b59b81; }
textarea.text-input { resize: vertical; min-height: 80px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: #877464; font-size: 12px; margin: 14px 0; cursor: pointer; }
.check-row input { accent-color: var(--brand); flex-shrink: 0; width: 16px; height: 16px; margin: 2px 0; }
.summary-panel { position: sticky; top: 26px; padding: 24px; }
.summary-panel .panel-title { font-size: 16px; }
.summary-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 12px; }
.summary-line > :first-child { color: var(--muted); }
.summary-line > :last-child { text-align: right; }
.summary-line strong { font-weight: 550; }
.summary-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px; margin-top: 17px; padding-top: 19px; border-top: 1px dashed #dccbb4; font-size: 12px; }
.summary-total strong { color: var(--orange); font-size: 28px; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.summary-total small { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.summary-footer { margin-top: 23px; padding: 15px; border-radius: 10px; background: #f2eee5; color: #8c7964; font-size: 11px; line-height: 1.85; }
.summary-footer p:last-child { margin-bottom: 0; }
.summary-footer svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 11px 19px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: 13px; font-weight: 550; transition: background .18s, transform .18s; }
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--surface); border-color: #dcc5ae; color: var(--brand); }
.btn-secondary:hover { background: var(--brand-soft); }
.btn-ghost { background: transparent; color: #877464; }
.btn-ghost:hover { background: #f2e7da; }
.wide { width: 100%; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.tag { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 8px; color: #637c83; background: #e9eeec; border-radius: 5px; font-size: 10px; line-height: 1.7; }
.tag-accent { background: var(--orange-soft); color: #9b613a; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.result-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 29px 0 18px; }
.result-header h2 { margin: 0 0 4px; font-size: 21px; }
.result-header p { margin: 0; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dish-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; transition: box-shadow .2s, transform .2s; }
.dish-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dish-image { position: relative; display: block; width: 100%; aspect-ratio: 1.55; overflow: hidden; background: #ece2d2; }
.dish-image > img, .dish-image > svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.dish-image > .tag { position: absolute; top: 12px; left: 12px; padding: 4px 8px; background: #fbefd9; border: 1px solid #e8d7b2; }
.dish-image-placeholder { width: 100%; aspect-ratio: 1.55; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: #e9e8dd; color: #708b8e; font-size: 11px; }
.dish-image-placeholder svg { width: 76px; height: 76px; }
.dish-image-placeholder > span:first-child { font-size: 48px; line-height: 1; }
.dish-content { padding: 16px 17px 15px; }
.dish-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dish-heading h3 { margin: 0; font-size: 16px; font-weight: 650; }
.dish-price { white-space: nowrap; color: var(--orange); font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dish-price small { font-size: 11px; }
.dish-meta { min-height: 35px; margin: 11px 0; color: #9b8b77; font-size: 11px; line-height: 1.7; }
.dish-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #eee4d8; }
.dish-actions .btn { min-height: 37px; padding: 7px 10px; font-size: 11px; }
.dish-actions .stepper { height: 37px; }
.dish-actions .stepper-button { width: 35px; height: 35px; }
.dish-actions .stepper-value { min-width: 30px; padding: 0 6px; font-size: 12px; }
.dish-actions .stepper > span { min-width: 32px; text-align: center; font-size: 11px; white-space: nowrap; }
.notice { margin: 16px 0; padding: 14px 17px; border: 1px solid #d3e0dd; border-radius: 10px; background: #ecf1ec; color: #627f7c; font-size: 12px; line-height: 1.8; }
.notice p:last-child { margin-bottom: 0; }
.notice-warning { border-color: #e7d9bc; background: #f8f1df; color: #967245; }
.empty-state { padding: 45px 24px; text-align: center; border: 1px dashed #d7c9b5; border-radius: 16px; color: var(--muted); background: #f9f2e7; }
.empty-state h3 { color: var(--ink); font-size: 17px; margin: 15px 0 8px; }
.empty-state p { font-size: 12px; margin-bottom: 17px; }
.empty-state svg { width: 44px; height: 44px; color: #ac9272; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 18px; }
.search-input { flex: 1; max-width: 320px; min-width: 160px; }
.toolbar .select-input { width: auto; max-width: 180px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.menu-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.menu-table th { background: #f2eade; color: #96816a; font-size: 11px; font-weight: 550; text-align: left; padding: 14px 18px; }
.menu-table td { padding: 13px 18px; border-top: 1px solid #ece2d4; }
.menu-table tbody tr:hover { background: #fbf6ed; }
.menu-table .btn { min-height: 38px; padding: 7px 10px; font-size: 11px; }
.cell-dish { display: flex; align-items: center; gap: 12px; }
.cell-dish strong { display: block; font-size: 13px; }
.cell-dish small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.cell-dish p { margin: 3px 0 0; font-size: 10px; }
.cell-image { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 46px; object-fit: cover; border-radius: 8px; background: #e6e9e3; color: #7b9292; font-size: 22px; overflow: hidden; }
.cell-image img { width: 100%; height: 100%; object-fit: cover; }
.cell-image svg { width: 100%; height: 100%; }
.availability { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 5px; border: 0; border-radius: 6px; background: transparent; font-size: 11px; color: #5f8584; }
.availability:hover { background: #eef0e7; }
.availability.off { color: #a79b89; }
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 36px 20px; overflow-y: auto; overscroll-behavior: contain; background: rgb(51 40 30 / 40%); backdrop-filter: blur(5px); }
.modal { flex-shrink: 0; width: 100%; max-width: 640px; margin: auto 0; padding: 28px; background: var(--surface); border: 1px solid #e6d9c6; border-radius: 20px; box-shadow: 0 30px 80px rgb(64 43 24 / 18%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.modal-header h2 { margin: 0 0 4px; font-size: 22px; }
.modal-header p { margin: 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-field { display: block; min-width: 0; color: #8a6b50; font-size: 12px; font-weight: 550; }
.form-field > .text-input, .form-field > .select-input { margin-top: 7px; font-weight: 400; }
.form-field > .tiny { display: block; margin-top: 6px; font-weight: 400; }
.form-field.choice-row { display: flex; }
.form-field > label { display: block; color: #8a6b50; font-size: 12px; font-weight: 550; margin-bottom: 7px; }
.span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.upload-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 110px; padding: 18px; border: 1px dashed #c8b193; border-radius: 10px; background: #f9f1e5; color: #9a8060; text-align: center; font-size: 12px; }
.upload-box input { max-width: 100%; font-size: 11px; }
.image-preview { display: block; width: 100%; max-width: 300px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px; margin-bottom: 8px; background: #e4e5d8; }
.error-message { margin: 10px 0; color: var(--danger); font-size: 12px; }
.toast { position: fixed; bottom: 28px; left: calc(50% + 120px); z-index: 150; max-width: calc(100vw - 32px); padding: 13px 22px; border: 1px solid #a46048; border-radius: 11px; background: var(--brand); color: #fff; font-size: 13px; box-shadow: 0 10px 30px rgb(87 42 27 / 16%); transform: translateX(-50%); }
.tab-description { max-width: 680px; margin-bottom: 24px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.recommendation-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 23px; padding: 20px 24px; border: 1px solid #d9d7c5; border-radius: 13px; background: #eef0e7; }
.recommendation-footer p { margin-bottom: 0; }
.qr-panel { max-width: 650px; padding: 32px; text-align: center; margin-top: 24px; }
.qr-panel > svg, .qr-panel > canvas, .qr-panel > img { display: block; width: 204px; height: 204px; margin: 22px auto; border: 12px solid #fff; box-shadow: 0 3px 18px rgb(85 61 35 / 7%); border-radius: 8px; }
.qr-panel .text-input { text-align: left; }
.link-row { display: flex; gap: 10px; align-items: center; margin: 18px 0; }
.link-row .text-input { flex: 1; }
.link-row .btn { flex-shrink: 0; }
.icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: #f3e9da; color: #9b7051; font-size: 21px; }
.icon-button:hover { border-color: #c2ab8d; background: #efdeca; }
.icon-button svg { width: 18px; height: 18px; }

@media (min-width: 1550px) {
  .main { padding-right: 60px; padding-left: 60px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 1200px) {
  .main { padding: 25px 28px 45px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
  .panel { padding: 23px; }
  .summary-panel { padding: 21px; }
  .hero { padding: 24px; }
  .hero-art { flex-basis: 205px; }
  .hero-art svg { width: 205px; height: 160px; }
  .result-grid { gap: 14px; }
  .dish-content { padding: 14px; }
}
@media (max-width: 1050px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .summary-panel { position: static; }
  .summary-panel .summary-line { display: inline-flex; width: calc(50% - 10px); padding-right: 15px; }
  .summary-footer { margin-top: 17px; }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { flex-basis: 160px; }
}
@media (max-width: 800px) {
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; flex-direction: row; align-items: center; gap: 20px; padding: 12px 22px; border-right: 0; border-bottom: 1px solid var(--line); background: rgb(251 245 233 / 97%); backdrop-filter: blur(12px); }
  .brand { margin: 0 auto 0 0; gap: 8px; }
  .brand-mark { width: 37px; height: 42px; border-radius: 3px; font-size: 25px; }
  .brand-copy strong { font-size: 17px; letter-spacing: 1px; }
  .brand-copy { display: grid; grid-template-columns: auto auto; column-gap: 7px; align-items: baseline; }
  .brand-name { font-size: 20px; letter-spacing: 1px; }
  .brand-copy small { grid-column: 1 / -1; font-size: 8px; letter-spacing: .8px; margin-top: 3px; }
  .nav-list { flex-direction: row; gap: 5px; }
  .nav-button { width: auto; min-height: 44px; padding: 9px 12px; gap: 7px; font-size: 12px; }
  .nav-button svg { width: 17px; height: 17px; }
  .nav-button > span:last-child { display: none; }
  .nav-button > span:first-child { width: 17px; font-size: 17px; }
  .sidebar-bottom { display: none; }
  .main { margin-left: 0; padding: 21px 24px 40px; max-width: 100%; }
  .topbar { margin-bottom: 22px; }
  .hero-art { flex-basis: 210px; }
  .hero-art svg { width: 210px; }
  .choice { min-height: 44px; }
  .toast { left: 50%; }
}
@media (max-width: 560px) {
  body { font-size: 13px; }
  .sidebar { flex-wrap: wrap; gap: 10px; padding: 13px 16px 10px; }
  .brand { width: 100%; justify-content: center; }
  .brand-copy { column-gap: 7px; row-gap: 0; align-items: baseline; }
  .brand-copy small { margin-top: 3px; text-align: center; }
  .brand-mark { width: 34px; height: 39px; border-radius: 2px; font-size: 24px; }
  .brand-mark svg { width: 21px; height: 21px; }
  .nav-list { width: 100%; gap: 6px; }
  .nav-button { justify-content: center; flex: 1; gap: 6px; padding: 9px 5px; font-size: 11px; border-radius: 8px; min-height: 44px; }
  .nav-button svg { width: 15px; height: 15px; }
  .nav-button > span:first-child { width: 15px; font-size: 15px; }
  .main { padding: 17px 16px 35px; }
  .topbar { margin-bottom: 19px; gap: 8px; flex-wrap: wrap; }
  .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .topbar .tag { font-size: 9px; }
  .page-title { font-size: 27px; margin-bottom: 7px; }
  .page-subtitle { font-size: 12px; line-height: 1.8; margin-bottom: 22px; }
  .hero { min-height: 183px; margin-bottom: 19px; padding: 22px; gap: 0; }
  .hero-copy { padding-right: 32px; }
  .hero-copy h1, .hero-copy h2 { font-size: 24px; max-width: 290px; }
  .hero-copy p { font-size: 11px; max-width: 245px; margin-bottom: 14px; }
  .hero-kicker { font-size: 9px; letter-spacing: 2px; margin-bottom: 11px; }
  .hero-art { position: absolute; right: -61px; bottom: 0; width: 160px; height: 150px; opacity: .22; }
  .hero-art svg { height: 145px; }
  .hero-art > span { display: none; }
  .ningbo-seal { top: 18px; right: 15px; width: 24px; min-height: 43px; font-size: 14px; opacity: .85; }
  .hero-pills { gap: 5px; }
  .hero-pill { font-size: 9px; padding: 4px 7px; }
  .panel { padding: 21px 19px; border-radius: 14px; }
  .panel-header { margin-bottom: 21px; }
  .panel-title { font-size: 16px; }
  .form-section { padding: 20px 0; }
  .choice-row { gap: 8px; }
  .choice { padding: 9px 12px; font-size: 11px; }
  .field-label { font-size: 12px; }
  .summary-panel .summary-line { display: flex; width: 100%; padding-right: 0; }
  .summary-footer { padding: 13px; }
  .result-header { margin-top: 24px; }
  .result-header h2 { font-size: 20px; }
  .result-grid { gap: 12px; }
  .dish-content { padding: 12px 11px; }
  .dish-heading { flex-wrap: wrap; row-gap: 2px; }
  .dish-heading h3 { font-size: 14px; }
  .dish-price { font-size: 15px; }
  .dish-meta { font-size: 10px; }
  .dish-actions { flex-wrap: wrap; padding-top: 9px; gap: 6px; }
  .dish-actions .btn { min-height: 44px; flex: 1; }
  .dish-actions .stepper { height: 44px; }
  .dish-actions .stepper-button { width: 43px; height: 43px; }
  .dish-image, .dish-image-placeholder { aspect-ratio: 1.2; }
  .dish-image-placeholder svg { width: 65px; height: 65px; }
  .tag-row { gap: 4px; }
  .tag { font-size: 9px; padding: 3px 6px; }
  .toolbar { gap: 9px; margin-top: 19px; }
  .toolbar .search-input { flex: 1 1 100%; max-width: none; }
  .toolbar .select-input { flex: 1; max-width: none; }
  .toolbar .btn { flex: 1; }
  .menu-table th, .menu-table td { padding-left: 12px; padding-right: 12px; }
  .menu-table .btn { min-height: 44px; }
  .modal-overlay { padding: 16px 12px; }
  .modal { padding: 23px 19px; border-radius: 16px; }
  .modal-header h2 { font-size: 21px; }
  .form-grid { gap: 15px 12px; }
  .form-field .text-input, .form-field .select-input { font-size: 13px; }
  .form-actions .btn { flex: 1; }
  .icon-button { width: 44px; height: 44px; }
  .recommendation-footer { padding: 18px; }
  .recommendation-footer .btn { width: 100%; }
  .qr-panel { padding: 24px 19px; }
  .link-row { flex-wrap: wrap; }
  .link-row .text-input { flex-basis: 100%; }
  .link-row .btn { width: 100%; }
  .toast { bottom: 17px; padding: 12px 18px; font-size: 12px; }
}
@media (max-width: 360px) {
  .main { padding-left: 12px; padding-right: 12px; }
  .panel { padding-left: 16px; padding-right: 16px; }
  .brand-copy small { font-size: 7px; letter-spacing: .7px; }
  .nav-button { font-size: 10px; gap: 4px; }
  .nav-button svg { width: 13px; height: 13px; }
  .result-grid { grid-template-columns: minmax(0, 1fr); }
  .dish-image, .dish-image-placeholder { aspect-ratio: 1.7; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
}
/* Ningbo: a paper cityscape, library details, and a coastal blue rhythm. */
.city-imprint { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 33px auto 24px; color: #9b8b76; }
.city-imprint > span { writing-mode: vertical-rl; font-family: var(--serif); font-size: 19px; line-height: 1.2; letter-spacing: 7px; }
.city-imprint i { display: block; width: 72px; height: 13px; border-top: 1px solid #9eb1b0; border-bottom: 1px solid #c1ccbf; border-radius: 50%; transform: rotate(-5deg); }
.city-imprint small { font-size: 9px; letter-spacing: 1.2px; color: #8a9b98; }
.hero.landmark-hero { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.3fr); align-items: center; gap: 0; min-height: 340px; padding: 27px 30px 24px; margin-bottom: 0; background: radial-gradient(ellipse at 86% 88%, #c5d5cf 0%, transparent 47%), linear-gradient(115deg, #f4e7d0, #f5eddc 55%, #e9e7d6); border: 1px solid #d7c7ad; border-radius: 15px 15px 0 0; }
.landmark-hero::after { content: none; }
.landmark-hero .hero-copy { z-index: 2; padding: 0; min-width: 0; }
.landmark-hero .hero-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 10px; letter-spacing: 1px; color: #997158; }
.heritage-stamp { display: inline-grid; flex-shrink: 0; place-items: center; width: 23px; height: 26px; border: 1px solid #b16c53; border-radius: 2px; color: #a34d36; font-family: var(--serif); font-size: 18px; line-height: 1; }
.landmark-hero .page-title { margin: 0 0 17px; font-size: clamp(26px, 2.3vw, 35px); font-family: var(--serif); line-height: 1.5; letter-spacing: 1px; color: #463827; }
.landmark-hero .page-subtitle { max-width: 320px; margin-bottom: 24px; font-size: 12px; color: #7c7465; line-height: 1.95; }
.hero-origin { display: flex; align-items: center; gap: 12px; color: #a46549; font-size: 11px; letter-spacing: 3px; }
.hero-origin i { display: block; width: 3px; height: 3px; border-radius: 50%; background: #a0b3ae; }
.landmark-scene { position: relative; align-self: center; min-width: 0; width: calc(100% + 28px); margin: 14px -20px 0 -8px; }
.landmark-scene img { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 2; object-fit: contain; }
.landmark-scene figcaption { margin-top: 3px; text-align: center; font-family: var(--serif); color: #738d8d; font-size: 12px; letter-spacing: 3px; }
.locality-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; padding: 17px 24px; background: #f4ecde; border: 1px solid #d7c7ad; border-top: 0; border-radius: 0 0 15px 15px; }
.locality-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 18px; border-right: 1px solid #ded3c1; }
.locality-item:first-child { padding-left: 0; }
.locality-item:last-child { border: 0; padding-right: 0; }
.locality-mark { flex: 0 0 33px; display: grid; place-items: center; height: 33px; border: 1px solid #cbb8a0; border-radius: 50% 50% 3px 3px; font-family: var(--serif); font-size: 20px; color: #9c7457; }
.locality-item:nth-child(2) .locality-mark { color: #6f8373; border-color: #b8c0ac; border-radius: 2px; box-shadow: inset 3px 0 0 #f4ecde, inset 4px 0 0 #b8c0ac; }
.locality-item:nth-child(3) .locality-mark { color: #5a7c87; border-color: #9fb5b6; border-radius: 50%; }
.locality-item strong { display: block; margin-bottom: 3px; font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: 1px; color: #625140; }
.locality-item div > span { display: block; color: #988574; font-size: 10px; line-height: 1.7; }
.summary-panel { background-image: linear-gradient(135deg, transparent 92%, #d5d1b920 92%); }
.summary-panel h2 { font-family: var(--serif); font-weight: 600; line-height: 1.7; }
.summary-footer { border-top: 2px solid #aac0bb; background: #ecede2; }
@media (max-width: 1200px) {
  .hero.landmark-hero { grid-template-columns: minmax(235px, 1fr) minmax(0, 1.2fr); padding: 25px; min-height: 310px; }
  .landmark-hero .page-title { font-size: 27px; letter-spacing: 0; }
  .landmark-hero .hero-kicker { font-size: 9px; }
  .landmark-scene { width: calc(100% + 25px); margin-left: -5px; }
  .locality-strip { padding: 15px 20px; }
  .locality-item { padding: 0 12px; gap: 8px; }
  .locality-item strong { font-size: 15px; }
  .locality-item div > span { font-size: 9px; }
}
@media (max-width: 800px) {
  .city-imprint { display: none; }
  .hero.landmark-hero { grid-template-columns: minmax(225px, .85fr) minmax(0, 1.1fr); min-height: 300px; }
  .landmark-hero .page-title { font-size: 26px; }
  .landmark-scene figcaption { font-size: 10px; letter-spacing: 2px; }
}
@media (max-width: 620px) {
  .hero.landmark-hero { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-height: 0; padding: 23px 23px 14px; border-radius: 14px 14px 0 0; }
  .landmark-hero .hero-copy { padding: 0; }
  .landmark-hero .hero-kicker { margin-bottom: 13px; font-size: 9px; letter-spacing: 1px; }
  .landmark-hero .page-title { max-width: none; margin-bottom: 11px; font-size: 28px; line-height: 1.45; }
  .landmark-hero .page-subtitle { max-width: none; margin-bottom: 11px; font-size: 11px; line-height: 1.9; }
  .hero-origin { gap: 10px; font-size: 10px; letter-spacing: 2px; }
  .landmark-scene { width: calc(100% + 30px); margin: 2px -15px 0; align-self: center; }
  .landmark-scene figcaption { margin-top: 0; font-size: 10px; letter-spacing: 2px; }
  .locality-strip { padding: 12px 10px; margin-bottom: 21px; border-radius: 0 0 14px 14px; }
  .locality-item { padding: 0 7px; gap: 6px; justify-content: center; }
  .locality-item:first-child { padding-left: 0; }
  .locality-item:last-child { padding-right: 0; }
  .locality-mark { flex-basis: 24px; height: 25px; font-size: 16px; }
  .locality-item strong { font-size: 13px; letter-spacing: 0; margin: 0; white-space: nowrap; }
  .locality-item div > span { display: none; }
}
@media (max-width: 360px) {
  .hero.landmark-hero { padding: 19px 17px 12px; }
  .landmark-hero .page-title { font-size: 25px; }
  .landmark-hero .hero-kicker { font-size: 8px; letter-spacing: .5px; gap: 6px; }
  .landmark-hero .page-subtitle { font-size: 10px; }
  .locality-strip { padding-left: 7px; padding-right: 7px; }
  .locality-item { gap: 4px; padding: 0 5px; }
  .locality-item strong { font-size: 11px; }
  .locality-mark { flex-basis: 21px; height: 23px; font-size: 14px; }
}
@media (max-height: 760px) {
  .city-imprint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* The dining flow keeps the focus on one short question at a time. */
body:not(.admin-mode) .sidebar { display: none; }
body:not(.admin-mode) .main { margin: 0 auto; max-width: 1180px; padding: 24px 32px 40px; }
body:not(.admin-mode) .landmark-hero { min-height: 220px; margin-bottom: 24px; }
body:not(.admin-mode) .landmark-scene { max-height: 250px; }
body:not(.admin-mode) .hero-copy h1 { font-size: clamp(30px, 4vw, 46px); }
body:not(.admin-mode) .content-grid { grid-template-columns: minmax(0, 1fr) 290px; }
.guest-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 0; font-size: 11px; color: var(--muted); }
.guest-footer a { color: var(--muted); }
.table-label { color: var(--brand); font-weight: 600; margin-bottom: 18px; }
.wizard-progress { list-style: none; padding: 0 0 24px; margin: 0 0 25px; display: flex; border-bottom: 1px solid var(--line); gap: 16px; justify-content: space-between; }
.wizard-progress li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.wizard-progress span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eee7da; font-size: 12px; }
.wizard-progress .active { color: var(--brand); font-weight: 650; }
.wizard-progress .active span { background: var(--brand); color: white; }
.wizard-progress .done span { background: #e4ebe4; color: #4f7461; }
.wizard-panel .panel-title { font-size: 23px; margin-top: 8px; }
.wizard-panel .panel-title:focus { outline: none; }
.wizard-panel .form-section { padding: 20px 0; }
.wizard-panel .choice { min-height: 46px; font-size: 14px; }
.people-presets, .budget-presets { margin-bottom: 16px; }
.wizard-actions { display: flex; gap: 12px; margin-top: 20px; }
.wizard-actions .btn-primary { flex: 1; }
.confirmation { background: #f5eee3; border-radius: 12px; padding: 18px; color: #796753; }
.confirmation p { margin: 8px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.summary-panel h2 { font-family: var(--serif); font-size: 23px; line-height: 1.55; }
.login-panel { max-width: 440px; margin: 50px auto; text-align: center; }
.login-panel .brand-mark { margin: 0 auto 20px; }
.login-panel .form-field { text-align: left; margin: 22px 0; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
#qr-form .form-field { margin: 22px 0; }
#url-suggestions { overflow-wrap: anywhere; }
#url-suggestions button { white-space: normal; word-break: break-all; text-align: left; padding: 3px; }
.qr-preview { text-align: center; }
.qr-placeholder { font-size: 90px; color: var(--water); }
.table-card { padding: 26px 14px; background: #fffaf1; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.table-card .brand-mark { margin: 0 auto 14px; }
.table-card h2 { font: 700 26px/1.55 var(--serif); }
.table-card p { margin: 16px 0; }
.table-card small { color: var(--muted); }
.qr-image { width: 260px; height: auto; margin: 18px auto; }
.qr-target { overflow-wrap: anywhere; margin: 18px 0; font-size: 11px; }
.qr-preview .choice-row { justify-content: center; }
@media (max-width: 760px) {
  body:not(.admin-mode) .main { padding: 16px 18px 28px; }
  body:not(.admin-mode) .topbar { margin-bottom: 14px; }
  body:not(.admin-mode) .topbar > .tiny { display: none; }
  body:not(.admin-mode) .content-grid { grid-template-columns: 1fr; }
  body:not(.admin-mode) .summary-panel { display: none; }
  body:not(.admin-mode) .landmark-hero { min-height: 0; padding: 22px; display: block; }
  body:not(.admin-mode) .hero-copy { width: 70%; }
  body:not(.admin-mode) .hero-copy h1 { font-size: 32px; }
  body:not(.admin-mode) .hero-copy .page-subtitle { font-size: 12px; margin-bottom: 8px; }
  body:not(.admin-mode) .hero-kicker { font-size: 9px; letter-spacing: .5px; }
  body:not(.admin-mode) .landmark-scene { position: absolute; right: -90px; bottom: 0; width: 290px; opacity: .4; margin: 0; pointer-events: none; }
  body:not(.admin-mode) .landmark-scene figcaption { display: none; }
  body:not(.admin-mode) .hero-origin { margin-top: 14px; }
  .wizard-panel { padding: 20px; }
  .wizard-progress { gap: 8px; }
  .wizard-progress li { font-size: 11px; gap: 5px; }
  .wizard-progress span { width: 22px; height: 22px; }
  .wizard-panel .panel-title { font-size: 21px; }
  .wizard-panel .choice { padding: 8px 12px; }
  .entry-grid { grid-template-columns: 1fr; }
  .login-panel { margin: 20px auto; }
}
@media (max-width: 359px) {
  body:not(.admin-mode) .main { padding: 12px; }
  .wizard-panel { padding: 16px; }
  .wizard-progress { gap: 4px; }
  .wizard-progress li { font-size: 10px; }
  .wizard-panel .panel-header { display: block; }
  .wizard-panel .panel-header .tag { margin-top: 8px; }
}
@media print {
  body { background: white; }
  body * { visibility: hidden; }
  #table-card, #table-card * { visibility: visible; }
  #table-card { position: absolute; left: 0; top: 0; width: 100%; max-width: 110mm; padding: 10mm; border: 1px solid #ddd; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (max-width: 760px) {
  .people-presets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .budget-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .wizard-panel .people-presets .choice, .wizard-panel .budget-presets .choice { padding: 8px 3px; font-size: 13px; }
  body:not(.admin-mode) .hero-copy { width: 85%; }
  body:not(.admin-mode) .landmark-scene { width: 240px; right: -100px; opacity: .32; }
}
