@font-face {
  font-family: MenuBrush;
  src: url('assets/menu-brush.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Menu;
  src: url('assets/roboto-condensed-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Menu;
  src: url('assets/roboto-condensed-500.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Menu;
  src: url('assets/roboto-condensed-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Menu;
  src: url('assets/roboto-condensed-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Menu;
  src: url('assets/roboto-condensed-800.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Menu;
  src: url('assets/roboto-condensed-900.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: Numbers;
  src: url('assets/roboto-black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}
:root {
  --paper: #f3f1e9;
  --surface: #faf8f1;
  --ink: #232422;
  --selected: #e5463d;
  --line: #d7d4ca;
  --radius: 15px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
.dish-row:focus-visible {
  outline: 3px solid #a67b13;
  outline-offset: 4px;
}
button:focus:not(:focus-visible) {
  outline: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.ph {
  display: inline-block;
  line-height: 1;
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 110px;
  padding: 12px;
  background: var(--surface);
  transform: translateY(-150%);
  z-index: 100;
}
.skip-link:focus {
  transform: none;
}
.menu-shell {
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--selection);
}
#category-nav {
  padding-top: 16px;
}
.category-button {
  position: relative;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.category-icon {
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.category-button[aria-pressed='true']:after {
  content: '';
  position: absolute;
  right: -4px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
  border-radius: 0 6px 6px 0;
}
.category-button[data-category='all'] .category-label {
  max-width: 50px;
}
.menu-header {
  grid-row: 1;
  align-items: center;
  border-bottom: 1px solid #ddd9d0;
}
.brand {
  display: block;
  flex: 0 0 clamp(280px, 26.65vw, 396px);
  height: 130px;
  border-radius: 19px;
  overflow: hidden;
  background: #de210b;
}
.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.filters {
  flex: 1;
  min-width: 0;
}
.filter-chips {
  display: flex;
  gap: 7px;
  flex-wrap: nowrap;
}
.chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 5px 13px;
  white-space: nowrap;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: transparent;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.chip:hover {
  border-color: #9a968e;
  background: #eeebe1;
}
.chip[aria-pressed='true'] {
  color: white;
  background: var(--red);
  border-color: var(--red);
}
.allergen-chip {
  padding: 4px 9px 4px 5px;
  gap: 6px;
  font-size: 12px;
  min-height: 34px;
}
.allergen-letter {
  border: 1px solid #d8d5cd;
  background: #faf9f4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.allergen-chip[aria-pressed='true'] .allergen-letter {
  background: #fff2e7;
  color: var(--red);
  border-color: #fff2e7;
}
.menu-main {
  grid-row: 2;
  grid-column: 2;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cdc7bb transparent;
  scroll-behavior: smooth;
}
.dish-list {
  display: flex;
  flex-direction: column;
  outline: none;
}
.dish-row {
  position: relative;
  display: grid;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  color: var(--ink);
  transition:
    background 0.22s,
    color 0.22s,
    box-shadow 0.22s;
  isolation: isolate;
}
.dish-number {
  font-family: Numbers, Arial, sans-serif;
  font-weight: 900;
  font-synthesis: style;
  margin-left: -1px;
}
.dish-description {
  position: relative;
  z-index: 1;
}
.dish-allergen {
  border-radius: 50%;
  background: #eae7de;
  display: grid;
  place-items: center;
  font-weight: 500;
  padding: 0 6px;
}
.is-active .dish-allergen {
  color: #a62320;
  background: #ffece0;
}
.dish-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.4px;
  white-space: nowrap;
  line-height: 1.1;
}
.is-active .dish-price {
  color: inherit;
}
.add-dish {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid #92938c;
  display: grid;
  place-items: center;
  position: relative;
  transition:
    background 0.2s,
    transform 0.2s,
    color 0.2s;
}
.add-dish .ph {
  transition: transform 0.2s;
}
.add-dish:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
  transform: scale(1.06);
}
.is-active .add-dish {
  background: #fcf8ec;
  color: #181b17;
  border-color: #fcf8ec;
}
.is-active .add-dish:hover {
  background: white;
  transform: rotate(90deg);
}
.menu-end {
  display: flex;
  justify-content: space-between;
  margin: 26px 10px 8px;
  font-size: 12px;
  color: #8b887e;
  letter-spacing: 0.5px;
}
.search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 10px 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.search-bar input {
  border: 0;
  outline: none;
  flex: 1;
  min-width: 0;
  background: none;
  font-size: 19px;
  padding: 6px;
}
.filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}
.filter-status button {
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 7px;
}
.empty-results {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-results .ph {
  font-size: 55px;
}
.empty-results h2 {
  font-size: 28px;
  color: var(--ink);
  margin: 20px 0 8px;
}
.empty-results button {
  margin-top: 24px;
  color: var(--red);
  font-weight: 700;
}
.selection-panel {
  grid-column: 3;
  grid-row: 2;
  border-left: 1px solid #dedbd2;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cdc7bb transparent;
}
.selection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.selection-heading h2 {
  font-weight: 700;
}
.selection-heading p {
  color: #75736c;
}
.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #eae6dc;
  color: var(--red);
}
.clear-selection {
  font-size: 16px;
  color: var(--muted);
}
.selection-heading:hover .clear-selection,
.clear-selection:focus-visible {
  opacity: 1;
}
.selection-items {
  border-radius: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.selection-item {
  position: relative;
  border-bottom: 1px solid #e5e1d7;
  display: grid;
  align-items: start;
}
.selection-item.is-editing .selection-item-name {
  color: var(--ink);
}
.selection-item-id {
  font-weight: 900;
  color: var(--red);
  line-height: 1.1;
  padding: 0;
}
.selection-item-note {
  display: block;
  color: #9a6b40;
  margin-top: 5px;
}
.selection-item-bottom {
  min-height: 17px;
}
.selection-item-price {
  color: var(--red);
  font-weight: 800;
  margin-left: auto;
}
.quantity-control {
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}
.selection-item:hover .quantity-control,
.selection-item:focus-within .quantity-control {
  opacity: 1;
}
.quantity-control button {
  border: 1px solid #d8d2c5;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
}
.quantity-control button:hover {
  color: var(--red);
  border-color: var(--red);
}
.selection-empty {
  text-align: center;
}
.selection-empty .ph {
  font-size: 42px;
  color: #beb6a6;
}
.selection-empty h3 {
  margin: 12px 0 6px;
}
.selection-empty p {
  color: var(--muted);
}
.customization {
  padding: 16px 0;
  border-top: 1px solid #ccc8bd;
  border-bottom: 1px solid #ccc8bd;
}
.customization h3 {
  font-size: 19px;
  line-height: 1.1;
}
.switch {
  margin-left: auto;
  width: 39px;
  height: 22px;
  border-radius: 14px;
  background: #d9d6cf;
  padding: 2px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.2s;
}
.checkout > strong {
  display: block;
  color: var(--red);
}
.primary-button {
  width: 100%;
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff9ef;
  min-height: 57px;
  border-radius: 32px;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary-button:hover {
  background: #bd1016;
  transform: translateY(-1px);
}
.primary-button .ph {
  font-size: 23px;
}
.primary-button:active {
  transform: translateY(1px);
}
.mobile-cart,
.mobile-close {
  display: none;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: var(--ink);
  color: var(--surface);
  padding: 13px 23px;
  border-radius: 30px;
  box-shadow: 0 8px 30px #0002;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100vw - 30px);
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  width: 490px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 27px 32px 25px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 80px #181b1750;
}
dialog::backdrop {
  background: #1b211cc2;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 1px;
}
.dialog-heading > span {
  font-family: Numbers, Arial, sans-serif;
  font-size: 18px;
}
dialog h2 {
  font-size: 54px;
  letter-spacing: -1.5px;
  line-height: 0.99;
  margin-top: 24px;
  font-weight: 900;
}
.dialog-subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-top: 16px;
  margin-bottom: 22px;
}
.order-line {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 16px;
}
.order-line > b {
  font-size: 25px;
  color: var(--red);
}
.order-line small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.order-line > strong {
  white-space: nowrap;
}
.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  font-size: 20px;
}
.order-total strong {
  color: var(--red);
  font-size: 35px;
  font-weight: 900;
}
#order-success {
  text-align: center;
  padding-top: 28px;
}
#order-success h2 {
  margin-top: 15px;
}
#order-success p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.4;
  margin: 24px 0 30px;
}
@media (min-width: 1550px) {
  :root {
    --selection: 320px;
  }
  .menu-header {
    gap: 45px;
  }
  .dish-row {
    grid-template-columns: 156px minmax(0, 1fr) 135px 180px 64px;
    min-height: 138px;
  }
  .dish-name {
    font-size: 28px;
  }
  .dish-number {
    font-size: 110px;
  }
  .dish-price {
    font-size: 38px;
  }
}
@media (max-width: 1400px) {
  :root {
    --header: 194px;
    --selection: 280px;
    --rail: 88px;
  }
  .menu-header {
    gap: 24px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .brand {
    flex-basis: 29%;
    height: 123px;
  }
  .chip {
    padding-right: 10px;
    padding-left: 10px;
    gap: 6px;
  }
  .allergen-chip {
    padding-right: 7px;
    padding-left: 4px;
    gap: 4px;
  }
  .filter-chips {
    gap: 5px;
  }
  .dish-row {
    grid-template-columns: 123px minmax(0, 1fr) 90px 140px 55px;
    gap: 16px;
    min-height: 125px;
    padding: 20px 20px 20px 25px;
  }
  .dish-number {
    font-size: 89px;
  }
  .dish-name {
    font-size: 24px;
  }
  .dish-price {
    font-size: 33px;
  }
  .add-dish {
    width: 55px;
    height: 55px;
  }
  .selection-panel {
    padding: 24px 20px;
  }
  .selection-heading h2 {
    font-size: 25px;
  }
  #category-nav {
    gap: 13px;
  }
  .category-icon {
    width: 65px;
  }
}
@media (max-width: 1180px) {
  :root {
    --header: 180px;
    --selection: 258px;
    --rail: 78px;
  }
  .menu-header {
    gap: 20px;
  }
  .brand {
    flex-basis: 29%;
    height: 105px;
  }
  .filters {
    max-width: 660px;
  }
  .filter-chips {
    gap: 6px;
  }
  .chip {
    font-size: 13px;
  }
  .dish-row {
    grid-template-columns: 100px minmax(0, 1fr) 117px 49px;
    gap: 13px;
    padding: 21px 19px;
    min-height: 130px;
  }
  .dish-number {
    font-size: 78px;
    letter-spacing: -5px;
  }
  .dish-name {
    font-size: 23px;
  }
  .dish-price {
    font-size: 29px;
  }
  .add-dish {
    width: 48px;
    height: 48px;
  }
  .add-dish .ph {
    font-size: 27px;
  }
  .selection-panel {
    padding-left: 18px;
    padding-right: 18px;
  }
  .selection-heading h2 {
    font-size: 24px;
  }
  .selection-item-name {
    font-size: 13px;
  }
  .selection-items {
    margin-left: -5px;
    margin-right: -5px;
  }
  .category-button {
    font-size: 12px;
    min-height: 75px;
  }
  .category-icon {
    width: 58px;
  }
  .checkout > strong {
    font-size: 46px;
  }
  .primary-button {
    font-size: 20px;
    gap: 15px;
  }
}
@media (max-height: 900px) and (min-width: 821px) {
  :root {
    --header: 176px;
  }
  .menu-header {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .brand {
    height: 120px;
  }
  .dish-row {
    min-height: 118px;
    padding-top: 17px;
    padding-bottom: 17px;
  }
  .dish-number {
    font-size: 88px;
  }
  .dish-name {
    font-size: 23px;
  }
  .dish-price {
    font-size: 32px;
  }
  #category-nav {
    gap: 8px;
    padding-top: 12px;
  }
  .category-button {
    min-height: 69px;
  }
  .category-icon {
    height: 39px;
  }
  .category-icon .ph {
    font-size: 29px;
  }
  .selection-panel {
    padding-top: 21px;
    padding-bottom: 18px;
  }
  .selection-heading h2 {
    font-size: 24px;
  }
  .selection-heading p {
    font-size: 15px;
  }
  .selection-item {
    padding-top: 12px;
    padding-bottom: 10px;
    min-height: 73px;
  }
  .selection-items {
    margin-bottom: 13px;
    max-height: 245px;
  }
  .selection-item-name {
    font-size: 13px;
  }
  .customization {
    padding: 13px 0;
  }
  .customization h3 {
    font-size: 18px;
  }
  .checkout {
    padding-top: 11px;
  }
  .checkout > strong {
    font-size: 43px;
    margin-bottom: 8px;
  }
  .primary-button {
    min-height: 51px;
    font-size: 20px;
  }
}
@media (max-width: 960px) and (min-width: 821px) {
  .brand {
    flex-basis: 260px;
  }
  .menu-header {
    gap: 22px;
  }
  .chip {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
  }
  .filter-chips {
    gap: 4px;
  }
  .dish-row {
    grid-template-columns: 81px minmax(0, 1fr) 92px 44px;
    gap: 10px;
    padding-left: 17px;
    padding-right: 15px;
  }
  .dish-number {
    font-size: 68px;
  }
  .dish-name {
    font-size: 20px;
  }
  .dish-price {
    font-size: 27px;
  }
  .dish-allergens {
    gap: 6px;
  }
  .dish-allergen {
    width: 24px;
    min-width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .add-dish {
    width: 42px;
    height: 42px;
  }
  .menu-main {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 820px) {
  .menu-shell {
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: 90px;
  }
  .menu-header {
    order: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 22px;
    padding: 22px 20px 20px;
  }
  .brand {
    width: 290px;
    max-width: 100%;
    height: 95px;
    border-radius: 14px;
  }
  .filters {
    grid-column: 1/-1;
    max-width: none;
  }
  .filter-chips {
    scrollbar-width: none;
    gap: 6px;
    margin: 0 -20px;
    padding: 0 20px;
  }
  .chip {
    padding: 5px 12px;
    min-height: 35px;
    font-size: 14px;
  }
  .allergen-chip {
    font-size: 12px;
    min-height: 33px;
    padding: 4px 9px 4px 5px;
  }
  .category-rail {
    order: 1;
    background: var(--ink);
    min-width: 0;
    box-shadow: 0 3px 7px #0001;
  }
  #category-nav {
    overflow: auto;
    gap: 4px;
    padding: 10px 13px;
    scrollbar-width: none;
  }
  .category-button {
    min-width: 87px;
    min-height: 59px;
    gap: 4px;
  }
  .category-icon {
    width: 51px;
    height: 32px;
  }
  .category-button[data-category='all'] .category-label {
    max-width: none;
  }
  .category-button[aria-pressed='true']:after {
    display: none;
  }
  .menu-main {
    order: 2;
    overflow: visible;
    padding: 13px 14px;
  }
  .dish-list {
    gap: 10px;
  }
  .dish-row {
    grid-template-columns: 92px minmax(0, 1fr) 108px 45px;
    gap: 14px;
    min-height: 117px;
  }
  .dish-number {
    font-size: 76px;
    letter-spacing: -5px;
  }
  .dish-name {
    font-size: 23px;
    max-width: none;
  }
  .dish-price {
    font-size: 30px;
  }
  .dish-allergens {
    gap: 7px;
    margin-top: 10px;
    min-height: 23px;
  }
  .dish-allergen {
    width: 24px;
    min-width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .add-dish {
    width: 45px;
    height: 45px;
  }
  .add-dish .ph {
    font-size: 25px;
  }
  .menu-end {
    font-size: 10px;
    margin-top: 23px;
  }
  .selection-panel {
    display: none;
    position: fixed;
    inset: 12vh 0 0;
    z-index: 60;
    border-radius: 24px 24px 0 0;
    padding: 26px 25px calc(30px + env(safe-area-inset-bottom));
    max-width: 560px;
    margin: auto;
    box-shadow: 0 -10px 60px #2223;
  }
  .selection-panel.is-open {
    display: block;
  }
  .selection-heading h2 {
    font-size: 28px;
  }
  .selection-heading p {
    font-size: 17px;
  }
  .mobile-close {
    display: grid;
  }
  .clear-selection {
    opacity: 1;
    margin-left: auto;
    margin-right: 10px;
  }
  .selection-items {
    max-height: 32dvh;
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
  }
  .selection-item {
    grid-template-columns: 42px minmax(0, 1fr) 29px;
    padding: 15px 0;
  }
  .selection-item-name {
    font-size: 17px;
  }
  .quantity-control {
    opacity: 1;
  }
  .selection-item-id {
    font-size: 29px;
  }
  .selection-item-price {
    font-size: 20px;
  }
  .customization h3 {
    font-size: 20px;
  }
  .checkout > strong {
    font-size: 46px;
  }
  .mobile-cart {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--red);
    color: #fffaf0;
    border-radius: 35px;
    min-height: 61px;
    box-shadow: 0 5px 25px #b91d1935;
    padding: 12px 22px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: env(safe-area-inset-bottom);
  }
  .mobile-cart > span {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .mobile-cart .ph {
    font-size: 23px;
  }
  .mobile-cart b {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff27;
    font-size: 14px;
  }
  .mobile-cart strong {
    margin-left: auto;
    white-space: nowrap;
    font-weight: 800;
    font-size: 23px;
  }
  .mobile-cart > .ph {
    font-size: 19px;
  }
  .panel-backdrop {
    position: fixed;
    inset: 0;
    background: #22292080;
    backdrop-filter: blur(3px);
    z-index: 50;
  }
  .toast {
    bottom: 91px;
    font-size: 15px;
  }
  body.cart-open {
    overflow: hidden;
  }
  .filter-status {
    font-size: 12px;
  }
  .filter-status span {
    max-width: 55%;
  }
  .search-bar input {
    font-size: 17px;
  }
}
@media (max-width: 520px) {
  .menu-header {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 22px 17px;
    padding: 20px 18px 18px;
  }
  .brand {
    width: 100%;
    height: 83px;
    border-radius: 12px;
  }
  .filters {
    margin-top: 1px;
  }
  .filter-chips {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .chip {
    font-size: 13px;
    min-height: 33px;
    padding: 5px 10px;
  }
  .allergen-chip {
    font-size: 12px;
    gap: 5px;
    padding: 4px 9px 4px 5px;
  }
  .menu-main {
    padding: 12px 12px;
  }
  .dish-row {
    grid-template-columns: 72px minmax(0, 1fr) 40px;
    grid-template-rows: auto auto;
    column-gap: 11px;
    row-gap: 0;
    padding: 19px 13px 17px 16px;
    min-height: 138px;
    border-radius: 13px;
  }
  .dish-number {
    font-size: 65px;
    letter-spacing: -5px;
    grid-row: 1/-1;
    align-self: center;
  }
  .dish-description {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }
  .dish-name {
    line-height: 1.1;
    letter-spacing: -0.35px;
  }
  .dish-allergens {
    min-height: 21px;
  }
  .dish-allergen {
    width: 21px;
  }
  .dish-price {
    grid-column: 2;
    grid-row: 2;
    font-size: 27px;
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-top: 10px;
  }
  .add-dish {
    grid-column: 3;
    grid-row: 1/-1;
    width: 40px;
    height: 40px;
  }
  .add-dish .ph {
    font-size: 24px;
  }
  .menu-end {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .mobile-cart {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding-left: 17px;
    padding-right: 17px;
    font-size: 16px;
    gap: 9px;
    min-height: 60px;
  }
  .mobile-cart > span {
    gap: 7px;
  }
  .mobile-cart strong {
    font-size: 22px;
  }
  .mobile-cart .ph {
    font-size: 20px;
  }
  .toast {
    bottom: 85px;
  }
  .empty-results {
    padding: 65px 15px;
  }
  .empty-results h2 {
    font-size: 25px;
  }
  dialog {
    padding: 22px 24px;
  }
  dialog h2 {
    font-size: 48px;
  }
  .order-line {
    font-size: 15px;
  }
  .order-line > b {
    font-size: 22px;
  }
  .primary-button {
    font-size: 20px;
  }
  .search-bar {
    padding-left: 12px;
  }
  .search-bar input {
    font-size: 16px;
  }
}
@media (min-width: 821px) {
  .selection-item {
    min-height: 79px;
    padding: 14px 0 28px;
    column-gap: 8px;
    row-gap: 0;
  }
  .selection-item-name {
    font-size: 13px;
    padding-bottom: 0;
    line-height: 1.17;
  }
  .selection-item-bottom {
    position: absolute;
    left: 47px;
    right: 0;
    bottom: 10px;
    margin: 0;
  }
  .dish-number {
    font-style: normal;
    transform: skew(-6deg) scaleX(1.18);
    transform-origin: left center;
    width: max-content;
  }
  .brand img {
    filter: hue-rotate(-9deg);
  }
}
@media (min-width: 1181px) and (min-height: 901px) {
  .filters {
    transform: translateY(15px);
  }
  .brand {
    transform: translateY(-6px);
  }
}
.chip {
  flex-shrink: 0;
}
@media (min-width: 821px) and (max-width: 1180px) {
  .dish-number {
    font-size: 78px;
    transform: skew(-6deg);
  }
  .selection-items {
    max-height: 290px;
  }
  .selection-panel {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (min-width: 821px) and (max-width: 960px) {
  .dish-number {
    font-size: 65px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Archived-menu content and multiple dietary preferences. */
#protein-filters {
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
#protein-filters .ph {
  font-size: 13px;
}
.allergy-note {
  font-size: 13px;
  line-height: 1.4;
  color: #82776a;
  padding: 0 3px 14px;
  max-width: 760px;
}
.dish-ingredients {
  font-size: 17px;
  line-height: 1.3;
  color: #79766d;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.is-active .dish-ingredients {
  color: #fff0e4;
}
.dish-allergen {
  height: 23px;
  min-width: 23px;
  font-size: 12px;
}
.dish-additives {
  font-size: 11px;
  font-weight: 400;
  color: #8a847a;
  line-height: 1.25;
}
.dish-additives {
  display: inline-flex;
  align-items: center;
  min-width: 24px;
  min-height: 24px;
  margin-left: 5px;
  padding: 2px 4px;
  border-radius: 4px;
}
.dish-additives:hover {
  color: var(--red);
  background: #e4281810;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.menu-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.menu-links > a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.is-active .dish-additives {
  color: #ffe6d5;
}
.dish-number.unnumbered {
  font-family: Menu, Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  transform: none;
  width: auto;
  color: #aaa497;
}
.add-dish:disabled:hover {
  transform: none;
  background: none;
  color: inherit;
  border-color: #92938c;
}
.selection-item-note {
  margin-bottom: 4px;
}
#customization-id {
  max-width: 100px;
  overflow-wrap: anywhere;
  text-align: right;
}
.menu-end button {
  font-size: 12px;
  color: #847d70;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
#menu-info-dialog {
  width: 590px;
}
#menu-info-title {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0;
  flex: 1;
}
#menu-info-content {
  font-size: 15px;
  line-height: 1.5;
  padding-top: 20px;
}
#menu-info-content h3 {
  font-size: 21px;
  margin: 24px 0 10px;
}
#menu-info-content ul {
  padding-left: 20px;
  color: #726b60;
}
#menu-info-content li {
  margin: 8px 0;
}
#menu-info-content dl {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 7px 8px;
  margin: 0;
}
#menu-info-content dt {
  font-weight: 800;
  color: var(--red);
}
#menu-info-content dd {
  margin: 0;
}
@media (min-width: 821px) {
  #category-nav {
    gap: 4px;
    scrollbar-width: none;
  }
  .category-button {
    min-height: 69px;
    flex-shrink: 0;
  }
  .category-icon {
    height: 39px;
  }
  .category-icon .ph {
    font-size: 29px;
  }
  .dish-row {
    grid-template-columns: 146px minmax(0, 1fr) 105px 162px 64px;
    column-gap: 18px;
  }
}
@media (min-width: 1181px) and (max-width: 1400px) {
  .dish-row {
    grid-template-columns: 120px minmax(0, 1fr) 78px 132px 55px;
    gap: 16px;
  }
  .dish-name {
    font-size: 24px;
  }
}
@media (min-width: 821px) and (max-width: 1180px) {
  .dish-row {
    grid-template-columns: 100px minmax(0, 1fr) 109px 48px;
    gap: 13px;
  }
  .dish-name {
    font-size: 22px;
  }
  .dish-ingredients {
    font-size: 15px;
  }
  .dish-number {
    font-size: 76px;
  }
  .dish-price {
    font-size: 28px;
  }
}
@media (min-width: 821px) and (max-width: 960px) {
  .dish-row {
    grid-template-columns: 76px minmax(0, 1fr) 85px 40px;
    gap: 10px;
  }
  .dish-number {
    font-size: 62px;
  }
  .dish-name {
    font-size: 20px;
  }
  .dish-ingredients {
    font-size: 14px;
  }
  .dish-price {
    font-size: 25px;
  }
}
@media (max-width: 820px) {
  #protein-filters {
    max-width: none;
  }
  .dish-name {
    font-size: 23px;
  }
  .dish-ingredients {
    font-size: 16px;
  }
  .dish-row {
    min-height: 152px;
  }
  .selection-item-note {
    font-size: 12px;
  }
  .allergy-note {
    font-size: 12px;
  }
}
@media (max-width: 520px) {
  .dish-row {
    grid-template-columns: 66px minmax(0, 1fr) 38px;
    gap: 0 10px;
    padding: 17px 12px 16px 14px;
  }
  .dish-name {
    font-size: 21px;
    line-height: 1.12;
  }
  .dish-ingredients {
    line-height: 1.3;
    margin-top: 6px;
  }
  .dish-number {
    font-size: 58px;
    letter-spacing: -4px;
  }
  .dish-allergen {
    height: 20px;
    min-width: 20px;
  }
  .dish-additives {
    font-size: 10px;
  }
  .dish-price {
    font-size: 26px;
    margin-top: 11px;
  }
  .filter-status {
    align-items: flex-start;
  }
  .filter-status span {
    line-height: 1.4;
  }
  .filter-status button {
    white-space: nowrap;
  }
  .dish-number.unnumbered {
    font-size: 17px !important;
  }
  .add-dish {
    width: 38px;
    height: 38px;
  }
}

/* Verified photos + PDF: distinct meat, staple and optional preference groups. */
:root {
  --header: 292px;
}
.menu-header {
  gap: 26px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  flex-basis: clamp(250px, 23vw, 345px);
}
.filters {
  transform: none !important;
}
#protein-filters,
#staple-filters {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d5cbbb transparent;
  padding-bottom: 3px;
}
#protein-filters .chip {
  padding-left: 11px;
  padding-right: 11px;
  gap: 7px;
}
#staple-filters .chip {
  font-size: 12px;
  padding: 5px 10px;
  gap: 6px;
}
.dish-number.long-number:has(+ .dish-description) {
  max-width: 100%;
}
.dish-number.long-number {
  overflow-wrap: normal;
  white-space: nowrap;
}

.dish-portion {
  color: var(--muted);
}
.dish-variant {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 7px;
  border: 1px solid #d7ccba;
  border-radius: 4px;
  font-size: 12px;
  color: #856540;
}
.is-active .dish-variant {
  border-color: #ffe2cd88;
  color: #fff3e6;
}
.variant-intro {
  font-size: 14px;
  margin: 4px 0 10px;
  line-height: 1.3;
  color: var(--muted);
}
.variant-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.variant-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  text-align: left;
}
.variant-option[aria-pressed='true'] {
  border-color: var(--red);
  color: var(--red);
  background: #e4281810;
}
.variant-option > .ph {
  font-size: 19px;
}
.variant-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 1px 0;
  font-size: 14px;
  color: var(--red);
}
@media (min-width: 821px) {
  :root {
    --header: 342px;
  }
  #protein-filters,
  #staple-filters {
    flex-wrap: wrap;
    overflow: visible;
  }
  .menu-header .brand {
    transform: none;
  }
}
@media (min-width: 1401px) {
  .dish-row {
    grid-template-columns: 146px minmax(0, 1fr) 84px 148px 64px;
  }
}
@media (min-width: 821px) and (max-width: 1180px) {
  :root {
    --header: 342px;
  }
  .menu-header {
    gap: 20px;
  }
  .brand {
    flex-basis: 220px;
  }
  .dish-number.long-number {
    font-size: 47px;
    letter-spacing: -3px;
  }
}
@media (min-width: 821px) and (max-width: 960px) {
  .brand {
    flex-basis: 190px;
  }
  .menu-header {
    gap: 16px;
  }
  .dish-number.long-number {
    font-size: 35px;
    letter-spacing: -2px;
  }
}
@media (max-width: 820px) {
  :root {
    --header: auto;
  }
  .menu-header {
    gap: 19px 20px;
    padding-top: 20px;
    padding-bottom: 19px;
  }
  .brand {
    height: 91px;
  }
  #protein-filters,
  #staple-filters {
    scrollbar-width: none;
    max-width: none;
  }
  .filter-chips {
    overflow-x: auto;
  }
  .dish-number.long-number {
    font-size: 63px;
    letter-spacing: -4px;
    transform: none;
  }
  .variant-option {
    font-size: 16px;
  }
  .variant-add {
    font-size: 16px;
  }
  .variant-intro {
    font-size: 15px;
  }
}
@media (max-width: 520px) {
  .brand {
    height: 80px;
  }
  .menu-header {
    gap: 18px 17px;
    padding: 18px;
  }
  .dish-number.long-number {
    font-size: 35px;
  }
  .dish-row {
    grid-template-columns: 66px minmax(0, 1fr) 38px;
  }
  .dish-ingredients {
    font-size: 14px;
  }
  .dish-variant {
    font-size: 10px;
    padding: 3px 5px;
  }
  .dish-additives {
    margin-left: 0;
  }
  .order-line > b {
    font-size: 18px;
  }
  .order-line {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
}
@media (min-width: 821px) and (max-width: 1180px) {
  :root {
    --header: 366px;
  }
  .menu-header {
    position: relative;
  }
}

/* All fourteen allergens stay visible, including on narrow screens. */
#allergen-filters .allergen-chip {
  display: inline-flex;
}
@media (min-width: 821px) {
  .menu-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .menu-header {
    min-height: var(--header);
  }
  #category-nav {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    flex: 1;
  }
}

/* A saved selection, followed by the two actual ways to order. */
#order-dialog > .dialog-heading {
  top: -27px;
  background: var(--surface);
  z-index: 4;
}
#order-title {
  letter-spacing: -0.8px;
  margin: 0;
}
#order-dialog .dialog-subtitle {
  line-height: 1.4;
}
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(255px, 1fr);
  gap: 25px;
  align-items: stretch;
  margin-top: 22px;
}
.order-column {
  min-width: 0;
}
.order-card {
  padding: 22px;
  background: #fffdf7;
  border: 1px solid #ddd6c8;
  border-top: 4px solid var(--red);
  border-radius: 4px 4px 13px 13px;
  min-width: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.card-heading h3 {
  font-size: 23px;
  line-height: 1.1;
}
.card-heading > span {
  font-size: 11px;
  font-weight: 600;
  color: #a06423;
  background: #f6ead3;
  border-radius: 4px;
  padding: 4px 7px;
  white-space: nowrap;
}
.card-date {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 15px;
}
#order-dialog .order-line {
  gap: 9px;
  line-height: 1.25;
}
#order-dialog .order-line > b {
  overflow-wrap: normal;
  letter-spacing: -0.5px;
}
#order-dialog .order-line small {
  line-height: 1.3;
}
#order-dialog .order-total {
  font-size: 18px;
  gap: 10px;
}
.card-allergies {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #e7d1b5;
  border-radius: 6px;
  color: #80623e;
}
.order-actions {
  padding: 4px 0 0 25px;
  border-left: 1px solid #e5dfd3;
  min-width: 0;
}
.order-actions > h3 {
  font-size: 23px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.order-method {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.order-method:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.method-number {
  font-size: 22px;
  font-weight: 800;
  color: #b5a890;
  flex-shrink: 0;
  line-height: 1.2;
}
.order-method h4 {
  font-size: 19px;
  line-height: 1.2;
}
.order-method p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin: 7px 0 10px;
}
.contact-link {
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
}
.contact-link .ph {
  font-size: 21px;
}
.contact-link:hover,
.route-link:hover {
  color: #981716;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#order-address {
  white-space: pre-line;
  font-style: normal;
  font-size: 17px;
  line-height: 1.35;
}
.route-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--red);
  margin-top: 10px;
}
.order-footer {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid #e5dfd3;
  text-align: center;
}
.card-save {
  max-width: 380px;
  margin: 0 auto;
}
#save-order-image {
  font-size: 19px;
  gap: 12px;
  min-height: 50px;
}
#image-status {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 9px;
}
#open-order-image {
  font-size: 12px;
  line-height: 1.35;
}
.primary-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}
@media (max-width: 680px) {
  #order-dialog {
    padding: 20px;
  }
  #order-dialog > .dialog-heading {
    top: -20px;
  }
  #order-title {
    font-size: 30px;
  }
  #order-dialog .dialog-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .order-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 19px;
  }
  .order-actions {
    padding: 24px 0 0;
    width: 100%;
    border-left: 0;
    border-top: 1px solid #e5dfd3;
  }
  .order-actions > h3 {
    font-size: 21px;
    margin-bottom: 12px;
  }
  .order-method {
    margin-top: 14px;
    padding-bottom: 15px;
  }
  .order-method h4 {
    font-size: 18px;
  }
  .contact-link {
    font-size: 22px;
  }
  .order-card {
    padding: 18px;
    width: 100%;
  }
  .order-footer {
    margin-top: 24px;
    padding-top: 22px;
  }
  #order-dialog .order-line {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    font-size: 16px;
    gap: 8px;
  }
  #order-dialog .order-line > b {
    font-size: 18px;
  }
  #order-dialog .order-line > strong {
    font-size: 15px;
  }
  #order-dialog .order-line small {
    font-size: 12px;
  }
  .card-heading h3 {
    font-size: 22px;
  }
  #checkout-button {
    font-size: 20px;
  }
}
/* Approved preview: a compact header, fixed dish columns and a quiet category rail. */
:root {
  --rail: clamp(82px, 6.3vw, 106px);
  --selection: clamp(280px, 21.5vw, 368px);
  --muted: #79776f;
  --red: #e81015;
  font-family: Menu, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}
.menu-shell {
  grid-template-rows: auto minmax(0, 1fr);
}
.menu-header {
  grid-column: 2/-1;
  display: block;
  min-height: 0;
  padding: 18px 30px 26px;
  border: 0;
  box-shadow: none;
  background: #faf8f2;
  z-index: 20;
}
.brand-bar {
  display: grid;
  grid-template-columns: clamp(270px, 25vw, 420px) minmax(160px, 1fr) 200px;
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
}
.menu-header .brand {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3.8;
  transform: none;
  border-radius: 12px;
  flex-basis: auto;
  background: #ed1325;
}
.menu-header .brand img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(-46.28076%);
  filter: hue-rotate(-9deg);
}
.header-tools {
  display: contents;
}
.header-tools .search-bar {
  grid-column: 2;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 18px;
  gap: 12px;
  border: 1px solid #dedbd1;
  border-radius: 28px;
  background: #f1efe9;
}
.header-tools .search-bar:focus-within {
  border-color: #9c988a;
  background: var(--surface);
}
.header-tools .search-bar > .ph {
  font-size: 23px;
  color: var(--ink);
}
.header-tools .search-bar input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  font-size: 16px;
  color: var(--ink);
  background: none;
  outline: none;
  border: 0;
}
.header-tools .search-bar input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.header-tools .search-bar input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.header-tools .search-bar .icon-button {
  width: 26px;
  height: 26px;
}
.language-switch {
  grid-column: 3;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.language-slider {
  position: absolute;
  z-index: -1;
  inset: 4px auto 4px 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 24px;
  background: var(--ink);
  transform: translateX(calc(var(--language-index) * 100%));
  transition: transform 0.3s var(--ease);
  pointer-events: none;
}
.language-switch button {
  font-weight: 600;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 26px;
  position: relative;
}
.food-preferences {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}
#preference-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}
#preference-filters {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  margin: 0;
  padding: 0;
  max-width: none;
}
#preference-filters .chip {
  min-height: 42px;
  padding: 7px 10px;
  gap: 5px;
  font-size: 15px;
  border-color: #dcd9cf;
  border-radius: 25px;
  background: var(--surface);
}
#preference-filters .chip[aria-pressed='true'] {
  background: var(--red);
  border-color: var(--red);
  color: #fffaf0;
}
#preference-filters .chip:hover:not(:disabled) {
  border-color: #8a887e;
}
#preference-filters .chip:disabled {
  opacity: 0.35;
}
.allergen-control {
  flex-shrink: 0;
  position: relative;
}
.allergen-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid #98958c;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 500;
  background: var(--surface);
}
.allergen-trigger > .ph-funnel {
  font-size: 22px;
}
.allergen-trigger > .ph-caret-down {
  font-size: 14px;
  transition: transform 0.2s;
}
.allergen-trigger[aria-expanded='true'] > .ph-caret-down {
  transform: rotate(180deg);
}
.allergen-trigger:hover,
.allergen-trigger[aria-expanded='true'] {
  background: #eeeae0;
}
.allergen-trigger.has-exclusions {
  color: var(--red);
  border-color: var(--red);
}
#allergen-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 20px;
  background: var(--red);
  color: white;
  font-size: 12px;
}
.allergen-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: min(520px, calc(100vw - 40px));
  padding: 22px;
  background: #faf8f2;
  border: 1px solid #ddd7cb;
  border-radius: 16px;
  box-shadow: 0 14px 40px #27231d26;
  max-height: calc(100dvh - 240px);
  overflow-y: auto;
}
.allergen-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}
.allergen-heading h2 {
  font-size: 19px;
  font-weight: 600;
}
.allergen-heading > button {
  font-size: 12px;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.allergen-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
}
#allergen-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  margin: 0;
  padding: 0;
}
#allergen-filters .allergen-chip {
  min-height: 38px;
  padding: 5px 11px 5px 6px;
  gap: 7px;
  font-size: 13px;
  border-color: #dfdcd2;
  background: none;
}
#allergen-filters .allergen-chip[aria-pressed='true'] {
  background: #fbe7e3;
  color: #a92124;
  border-color: #dc9993;
}
.allergen-letter {
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  font-size: 13px;
}
.allergen-letter .ph {
  font-size: 13px;
}
.category-rail {
  grid-row: 1/-1;
  grid-column: 1;
  min-height: 0;
  background: #242523;
  color: #e4e3de;
  padding: 0 8px 20px;
  display: flex;
  flex-direction: column;
  border: 0;
  z-index: 5;
}
#category-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 34px 0 18px;
  overflow-y: auto;
  scrollbar-width: none;
  min-height: 0;
}
.category-button {
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  min-height: 66px;
  width: 100%;
  gap: 6px;
  padding: 8px 3px;
  border-radius: 10px;
  color: #d9d9d4;
  font-size: 14px;
  line-height: 1.15;
}
.category-button .category-label,
.category-button[data-category='all'] .category-label {
  max-width: 100%;
  text-align: center;
}
.category-icon {
  width: 42px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 0;
}
.category-icon .ph {
  font-size: 31px;
}
.category-button:hover {
  background: #ffffff0a;
  color: white;
}
.category-button[aria-pressed='true'] {
  background: var(--red);
  color: #fffaf0;
}
.category-button[aria-pressed='true'] .category-icon {
  background: none;
}
.category-button[aria-pressed='true']:after {
  display: none;
}
.rail-slogan {
  flex-shrink: 0;
  position: relative;
  margin: 0 5px;
  padding: 20px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.55;
  color: #b5b5aa;
  text-wrap: balance;
}
.rail-slogan:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 38px;
  height: 1px;
  background: #8a8c81;
  transform: translateX(-50%);
}
.menu-main {
  padding: 16px 18px 24px;
  min-width: 0;
}
.dish-list {
  gap: 10px;
}
.dish-row {
  grid-template-columns: clamp(150px, 14.6vw, 245px) minmax(0, 1fr) 120px 58px;
  grid-template-rows: auto;
  column-gap: 24px;
  row-gap: 0;
  min-height: 132px;
  padding: 18px 24px;
  box-shadow: none;
  border-radius: 14px;
  cursor: default;
}
.dish-row:hover {
  box-shadow: none;
  background: #fffdf7;
}
.dish-row.is-active {
  background: #fffdf7;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #dcd4c4;
}
.dish-number {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-size: clamp(76px, 6vw, 102px);
  font-style: normal;
  transform: skew(-7deg);
  letter-spacing: -5px;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  line-height: 0.95;
}
.dish-number.long-number {
  font-size: clamp(64px, 5vw, 86px);
  letter-spacing: -4px;
  transform: skew(-7deg);
  width: auto;
}
.dish-number.unnumbered {
  font-size: 23px !important;
  white-space: normal;
}
.dish-description {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-self: center;
}
.dish-name {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  max-width: none;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.dish-chilies {
  display: inline-flex;
  vertical-align: -0.1em;
  white-space: nowrap;
  gap: 1px;
  margin-left: 10px;
  color: var(--red);
  font-size: 0.86em;
  line-height: 1;
}
.dish-ingredients,
.is-active .dish-ingredients {
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.dish-allergens {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  min-height: 24px;
}
.dish-allergen,
.is-active .dish-allergen {
  height: 25px;
  min-width: 25px;
  width: auto;
  padding: 0 7px;
  font-size: 13px;
  background: none;
  border: 1px solid #dbd7cd;
  color: var(--ink);
}
.dish-additives,
.is-active .dish-additives {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 0 3px;
  min-height: 24px;
}
.dish-portion {
  font-size: 12px;
}
.dish-variant,
.is-active .dish-variant {
  font-size: 12px;
  border-color: #d7ccba;
  color: #856540;
  margin-top: 9px;
}
.dish-price,
.is-active .dish-price {
  grid-column: 3;
  grid-row: 1;
  display: block;
  align-self: center;
  text-align: right;
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  margin: 0;
  letter-spacing: -0.4px;
}
.add-dish,
.is-active .add-dish {
  grid-column: 4;
  grid-row: 1;
  width: 58px;
  height: 58px;
  align-self: center;
  background: transparent;
  color: var(--ink);
  border-color: #a5a49a;
}
.add-dish .ph {
  font-size: 30px;
}
.add-dish:hover,
.is-active .add-dish:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
  transform: none;
}
.selection-panel {
  padding: 26px 24px;
  background: #faf8f2;
  border: 0;
  min-width: 0;
}
.selection-heading {
  margin-bottom: 20px;
  gap: 8px;
}
.selection-heading h2 {
  font-size: 24px;
  line-height: 1.25;
}
.selection-heading p {
  font-size: 16px;
  margin-top: 7px;
}
.clear-selection {
  opacity: 0.5;
  margin-left: auto;
}
.clear-selection:disabled {
  visibility: hidden;
}
.selection-items {
  border: 0;
  margin: 0;
  max-height: 40dvh;
  display: flex;
  flex-direction: column;
}
/* The same outer viewport contains both empty and populated selections. */
.selection-items > * {
  flex-shrink: 0;
}
.selection-item {
  border: 1px solid #e0dcd2;
  border-radius: 11px;
  padding: 17px 14px 40px;
  min-height: 92px;
  grid-template-columns: 43px minmax(0, 1fr) 27px;
  gap: 9px;
}
.selection-item-name {
  padding: 0;
}
.selection-item-id {
  font-size: 26px;
}
.selection-item-bottom {
  bottom: 12px;
}
.selection-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #212121;
}
.selection-empty h3 {
  font-size: 18px;
  margin-top: 12px;
}
.selection-empty p {
  font-size: 14px;
  line-height: 1.5;
}
.customization {
  margin-top: 20px;
}
.checkout {
  border-top: 1px solid var(--line);
}
.checkout > span {
  font-size: 19px;
  font-weight: 600;
}
.checkout > strong {
  letter-spacing: -0.8px;
  font-weight: 800;
}
#checkout-button {
  gap: 10px;
}
#checkout-button > .ph {
  display: none;
}
.filter-status {
  padding: 0 2px 13px;
  font-size: 13px;
}
.filter-status button {
  font-size: 12px;
}
.diet-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 2px 13px;
}
html:lang(zh) #preference-title {
  font-size: 22px;
}
html:lang(zh) .category-label {
  font-size: 13px;
}
html:lang(zh) .dish-name {
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: 0;
}
html:lang(zh) .dish-ingredients {
  font-size: 15px;
  line-height: 1.5;
}
html:lang(zh) .selection-heading h2 {
  font-size: 23px;
}
@media (min-width: 821px) and (max-width: 1200px) {
  .menu-header {
    padding: 18px 22px 23px;
  }
  .brand-bar {
    grid-template-columns: clamp(250px, 27vw, 320px) minmax(130px, 1fr) 148px;
    gap: 22px;
  }
  .filter-bar {
    gap: 16px;
  }
  .food-preferences {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
  }
  #preference-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  #preference-filters .chip {
    min-height: 34px;
    font-size: 14px;
    padding: 6px 9px;
  }
  .allergen-trigger {
    font-size: 14px;
    padding: 8px 12px;
  }
  .dish-row {
    grid-template-columns: 115px minmax(0, 1fr) 43px;
    grid-template-rows: auto auto;
    column-gap: 18px;
    padding: 20px;
    min-height: 147px;
  }
  .dish-number {
    grid-row: 1/3;
    font-size: 73px;
  }
  .dish-number.long-number {
    font-size: 47px;
    letter-spacing: -3px;
  }
  .dish-description {
    grid-column: 2;
    grid-row: 1;
  }
  .dish-price,
  .is-active .dish-price {
    grid-column: 2;
    grid-row: 2;
    font-size: 27px;
    text-align: left;
    margin-top: 11px;
  }
  .add-dish,
  .is-active .add-dish {
    grid-column: 3;
    grid-row: 1/3;
    width: 43px;
    height: 43px;
  }
  .add-dish .ph {
    font-size: 25px;
  }
  .dish-name {
    font-size: 21px;
  }
  .dish-ingredients {
    font-size: 15px;
  }
  .selection-panel {
    padding: 23px 18px;
  }
}
@media (max-width: 820px) {
  :root {
    --rail: 0px;
    --selection: 0px;
  }
  .menu-header {
    padding: 18px 20px 20px;
    position: relative;
    z-index: 20;
  }
  .brand-bar {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
    margin-bottom: 20px;
  }
  .menu-header .brand {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 300px);
    aspect-ratio: 3.3;
  }
  .language-switch {
    grid-column: 2;
    grid-row: 1;
    width: 150px;
    height: 40px;
    justify-self: end;
  }
  .header-tools .search-bar {
    grid-column: 1/-1;
    grid-row: 2;
    height: 44px;
  }
  .filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }
  .food-preferences {
    display: contents;
  }
  #preference-title,
  html:lang(zh) #preference-title {
    font-size: 18px;
    min-height: 38px;
    display: flex;
    align-items: center;
  }
  #preference-filters {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: auto;
  }
  #preference-filters .chip {
    font-size: 14px;
    min-height: 36px;
    padding: 6px 14px;
  }
  .allergen-control {
    position: static;
    grid-column: 2;
    grid-row: 1;
  }
  .allergen-trigger {
    font-size: 14px;
    min-height: 38px;
    padding: 7px 13px;
    gap: 8px;
  }
  .allergen-trigger > .ph-funnel {
    font-size: 19px;
  }
  .allergen-panel {
    right: 0;
    top: 48px;
    width: min(500px, 100%);
    padding: 18px;
    max-height: 65dvh;
  }
  #allergen-filters .allergen-chip {
    min-height: 40px;
    font-size: 13px;
  }
  .category-rail {
    position: sticky;
    top: 0;
    padding: 8px 12px;
    display: block;
    z-index: 15;
  }
  #category-nav {
    flex-direction: row;
    justify-content: flex-start;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
  }
  .category-button {
    min-width: 75px;
    min-height: 58px;
    width: auto;
    padding: 6px 10px;
    gap: 5px;
    border-radius: 9px;
    font-size: 12px;
  }
  .category-icon {
    width: 28px;
    height: 25px;
  }
  .category-icon .ph {
    font-size: 24px;
  }
  .rail-slogan {
    display: none;
  }
  .menu-main {
    padding: 12px 14px 20px;
  }
  .dish-row {
    grid-template-columns: 110px minmax(0, 1fr) 44px;
    grid-template-rows: auto auto;
    column-gap: 16px;
    min-height: 148px;
    padding: 20px 18px;
  }
  .dish-number {
    grid-row: 1/3;
    align-self: center;
    font-size: 72px;
  }
  .dish-number.long-number {
    font-size: 44px;
    letter-spacing: -2px;
  }
  .dish-description {
    grid-column: 2;
    grid-row: 1;
  }
  .dish-price,
  .is-active .dish-price {
    grid-column: 2;
    grid-row: 2;
    font-size: 27px;
    text-align: left;
    margin-top: 10px;
  }
  .dish-name {
    font-size: 22px;
  }
  .add-dish,
  .is-active .add-dish {
    grid-column: 3;
    grid-row: 1/3;
    width: 44px;
    height: 44px;
  }
  .add-dish .ph {
    font-size: 26px;
  }
  .selection-panel {
    padding: 24px 24px calc(30px + env(safe-area-inset-bottom));
  }
  .selection-items {
    max-height: 36dvh;
  }
  .checkout > strong {
    font-size: 38px;
  }
  html:lang(zh) .dish-name {
    font-size: 21px;
  }
  .menu-end {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 520px) {
  .menu-header {
    padding: 16px;
  }
  .brand-bar {
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 16px 13px;
    margin-bottom: 16px;
  }
  .menu-header .brand {
    aspect-ratio: 2.9;
    border-radius: 9px;
  }
  .language-switch {
    width: 126px;
    height: 37px;
  }
  .language-switch button {
    font-size: 12px;
  }
  .header-tools .search-bar input {
    font-size: 15px;
  }
  #preference-filters {
    width: auto;
    gap: 6px;
  }
  #preference-filters .chip {
    font-size: 13px;
    padding: 6px 12px;
    min-height: 35px;
  }
  .allergen-trigger {
    gap: 6px;
    padding: 7px 10px;
  }
  #allergen-filters .allergen-chip {
    font-size: 12px;
    padding: 5px 9px 5px 5px;
  }
  .category-rail {
    padding: 7px 10px;
  }
  .category-button {
    min-width: 68px;
    padding: 6px 8px;
    min-height: 54px;
  }
  html:lang(zh) .category-label {
    font-size: 11px;
  }
  .menu-main {
    padding: 10px 10px 20px;
  }
  .dish-row {
    grid-template-columns: 76px minmax(0, 1fr) 36px;
    column-gap: 12px;
    padding: 18px 13px;
    min-height: 141px;
  }
  .dish-number {
    font-size: 53px;
    letter-spacing: -3px;
  }
  .dish-number.long-number {
    font-size: 32px;
    letter-spacing: -2px;
  }
  .dish-name,
  html:lang(zh) .dish-name {
    font-size: 19px;
  }
  .dish-ingredients,
  html:lang(zh) .dish-ingredients {
    font-size: 13px;
  }
  .dish-chilies {
    font-size: 16px;
    margin-left: 7px;
  }
  .dish-allergens {
    gap: 5px;
    margin-top: 7px;
  }
  .dish-allergen {
    min-width: 21px;
    height: 21px;
    font-size: 11px;
    padding: 0 5px;
  }
  .dish-additives {
    font-size: 11px;
  }
  .dish-price,
  .is-active .dish-price {
    font-size: 25px;
  }
  .add-dish,
  .is-active .add-dish {
    width: 36px;
    height: 36px;
  }
  .add-dish .ph {
    font-size: 23px;
  }
}
@media (max-width: 360px) {
  .brand-bar {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
  }
  .language-switch {
    width: 112px;
  }
  .dish-row {
    grid-template-columns: 63px minmax(0, 1fr) 34px;
    column-gap: 9px;
  }
  .dish-number {
    font-size: 48px;
  }
  .dish-number.long-number {
    font-size: 29px;
  }
}
@media (min-width: 821px) and (max-height: 700px) {
  #category-nav {
    justify-content: flex-start;
    padding-top: 18px;
    gap: 4px;
  }
  .category-button {
    min-height: 60px;
  }
  .rail-slogan {
    font-size: 11px;
    padding-top: 14px;
  }
  .category-rail {
    padding-bottom: 14px;
  }
}

/* User's visual draft, translated to layout rules instead of per-element offsets. */
@media (min-width: 1201px) {
  .menu-header {
    padding: 34px 30px 30px;
  }
  /* Keep the logo in place; align both controls to its lower edge. */
  .brand-bar {
    --brand-row-height: 144px;
    min-height: var(--brand-row-height);
    gap: 24px;
    margin-bottom: 32px;
    padding-block: max(0px, calc((var(--brand-row-height) - clamp(270px, 25vw, 420px) / 3.8) / 2));
  }
  .menu-header .brand {
    align-self: end;
  }
  .filter-bar {
    width: min(100%, 1416px);
  }
  #preference-title {
    padding-left: 22px;
  }
  .selection-panel {
    padding: 20px 28px 28px 16px;
  }
  .selection-heading {
    margin-bottom: 26px;
  }
  .checkout {
    margin-top: 26px;
  }
  .dish-row {
    grid-template-columns:
      clamp(150px, 14.6vw, 245px) minmax(0, 1fr) clamp(70px, 6vw, 112px)
      120px 58px;
    column-gap: 20px;
  }
  .dish-price,
  .is-active .dish-price {
    grid-column: 4;
  }
  .add-dish,
  .is-active .add-dish {
    grid-column: 5;
  }
}
.dish-calligraphy {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  display: block;
  font-family: MenuBrush, 'Kaiti SC', KaiTi, serif;
  font-size: clamp(84px, 6.6vw, 118px);
  font-weight: 400;
  line-height: 1;
  color: #d4cec1;
  opacity: 0.48;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 1200px) {
  .dish-calligraphy {
    position: absolute;
    right: 80px;
    bottom: 10px;
    font-size: 62px;
    line-height: 1;
    opacity: 0.36;
  }
}
@media (max-width: 520px) {
  .dish-calligraphy {
    right: 60px;
    bottom: 13px;
    font-size: 43px;
  }
  .selection-empty {
    min-height: 240px;
  }
}
@media (min-width: 1201px) and (max-height: 850px) {
  .menu-header {
    padding-top: 22px;
    padding-bottom: 24px;
  }
  .brand-bar {
    --brand-row-height: 116px;
    margin-bottom: 24px;
  }
  .selection-empty {
    min-height: 260px;
  }
}
@media (min-width: 821px) and (max-width: 1200px) {
  .brand-bar {
    align-items: end;
  }
}

/* September 15 visual draft: keep proportions in layout, not translated boxes. */
@media (min-width: 821px) {
  .menu-shell {
    row-gap: 18px;
  }
  .menu-main {
    min-height: 0;
    padding-top: 0;
    overscroll-behavior-y: contain;
  }
  .selection-panel {
    min-height: 0;
    padding-top: 12px;
  }
  .category-rail {
    padding-bottom: clamp(22px, 7.5dvh, 86px);
  }
  #category-nav {
    padding-top: 18px;
  }
}
@media (min-width: 1201px) {
  .menu-header {
    padding: 16px 30px 20px;
  }
  .brand-bar {
    grid-template-columns: clamp(330px, 28.5vw, 540px) minmax(0, 1fr) 204px;
    min-height: 0;
    padding: 0;
    gap: clamp(28px, 4.7vw, 90px);
    margin-bottom: 38px;
    align-items: end;
  }
  .menu-header .brand {
    width: 100%;
    height: auto;
    aspect-ratio: 3.013;
    border-radius: 16px;
  }
  .header-tools .search-bar {
    width: 100%;
    max-width: 540px;
    height: 54px;
  }
  .language-switch {
    width: 204px;
    height: 51px;
    justify-self: end;
  }
  .filter-bar {
    width: min(100%, 1550px);
    gap: clamp(26px, 5vw, 96px);
  }
  .food-preferences {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 20px;
  }
  #preference-title {
    padding-left: 0;
  }
  #preference-filters {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .selection-panel {
    padding: 12px 28px 24px 16px;
  }
  .selection-heading {
    min-height: 56px;
    margin-bottom: 24px;
  }
}
.selection-items,
.selection-items.is-empty {
  height: clamp(180px, calc(100dvh - 575px), 461px);
  min-height: clamp(180px, calc(100dvh - 575px), 461px);
  max-height: none;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 8px;
  border: 1px solid #d9d5cb;
  border-radius: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #c9c2b5 transparent;
  scrollbar-gutter: stable;
}
.selection-empty {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 24px 10px;
  border: 0;
  border-radius: 0;
}
.selection-item,
.selection-item:last-child {
  border-bottom: 1px solid #e0dcd2;
}
.selection-item:last-child {
  border-bottom: 0;
}
.checkout {
  margin-top: 22px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px 12px;
}
.checkout > strong {
  font-size: 38px;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}
#checkout-button {
  width: 172px;
  min-height: 43px;
  height: 43px;
  font-size: 18px;
  margin-inline: auto;
  padding: 8px 14px;
}
@media (max-width: 820px) {
  .selection-items,
  .selection-items.is-empty {
    height: 38dvh;
    min-height: 38dvh;
  }
  .menu-main {
    margin-top: 12px;
  }
}

/* Three-digit number track; the suffix stays readable within the same track. */
@media (min-width: 1201px) {
  .dish-row {
    grid-template-columns:
      clamp(136px, 9vw, 164px) minmax(0, 1fr) clamp(70px, 6vw, 112px)
      120px 58px;
    column-gap: 24px;
  }
}
.dish-number.compact-number {
  font-size: clamp(49px, 3.8vw, 65px);
  letter-spacing: -3px;
}
@media (min-width: 821px) and (max-width: 1200px) {
  .dish-row {
    grid-template-columns: 100px minmax(0, 1fr) 43px;
  }
  .dish-number.compact-number {
    font-size: 36px;
    letter-spacing: -2px;
  }
}
@media (max-width: 820px) {
  .dish-row {
    grid-template-columns: 88px minmax(0, 1fr) 44px;
  }
  .dish-number.compact-number {
    font-size: 34px;
    letter-spacing: -2px;
  }
}
@media (max-width: 520px) {
  .dish-row {
    grid-template-columns: 64px minmax(0, 1fr) 36px;
  }
  .dish-number.compact-number {
    font-size: 25px;
    letter-spacing: -1.5px;
  }
}
@media (max-width: 360px) {
  .dish-row {
    grid-template-columns: 56px minmax(0, 1fr) 34px;
  }
  .dish-number.compact-number {
    font-size: 22px;
    letter-spacing: -1.5px;
  }
}

/* Animated selection, adapted to the menu's paper palette and native controls. */
.selection-viewport {
  position: relative;
  min-width: 0;
  isolation: isolate;
}
.selection-viewport::before,
.selection-viewport::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 12px;
  height: 22px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.selection-viewport::before {
  top: 1px;
  border-radius: 11px 11px 0 0;
  background: linear-gradient(#faf8f2, transparent);
}
.selection-viewport::after {
  bottom: 1px;
  border-radius: 0 0 11px 11px;
  background: linear-gradient(transparent, #faf8f2);
}
.selection-viewport.can-scroll-up::before,
.selection-viewport.can-scroll-down::after {
  opacity: 1;
}
.selection-items {
  position: relative;
  gap: 10px;
  padding: 10px;
  scroll-padding-block: 12px;
  overflow-anchor: none;
}
.selection-items:focus-visible {
  outline: 2px solid #a67b13;
  outline-offset: 3px;
}
.selection-item,
.selection-item:last-child {
  border: 1px solid #e4ded2;
  border-radius: 11px;
  background: #fffdf8;
  box-shadow: 0 2px 5px #453b2605;
  transform-origin: center;
  transition:
    opacity 0.24s ease,
    transform 0.3s var(--ease),
    background 0.2s,
    border-color 0.2s;
  opacity: 0.55;
  transform: scale(0.98);
}
.selection-item.is-in-view,
.selection-item:focus-within {
  opacity: 1;
  transform: scale(1);
}
.selection-item:hover,
.selection-item:focus-within {
  border-color: #d3b8a5;
  background: #fffaf1;
}
.selection-item.is-editing {
  border-color: #e5b3a4;
  background: #fff6ef;
}
.selection-item-bottom {
  left: 11px;
  right: 11px;
}
.selection-item-name {
  font-size: 15px;
  line-height: 1.35;
}
.selection-item-id.long-number {
  font-size: 19px;
  letter-spacing: -0.7px;
}
.selection-leaving {
  position: absolute !important;
  pointer-events: none;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .selection-item,
  .selection-item.is-in-view,
  .selection-item:focus-within {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .selection-viewport::before,
  .selection-viewport::after {
    transition: none;
  }
}

/* Visible quantities, quiet language tabs, and a bounded order-card preview. */
.quantity-control {
  opacity: 1;
  gap: 3px;
  font-size: 13px;
  white-space: nowrap;
}
.quantity-control button {
  width: 25px;
  height: 25px;
  background: #faf8f2;
  font-size: 13px;
}
.quantity-control span {
  min-width: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.selection-item-bottom {
  grid-template-columns: minmax(74px, 1fr) auto;
  grid-column: 1/-1;
  margin-top: 10px;
  padding-left: 52px;
}
.selection-item-bottom .quantity-control {
  justify-self: start;
}
.selection-item,
.selection-item:last-child {
  grid-template-columns: 43px minmax(0, 1fr);
  row-gap: 6px;
  container-type: inline-size;
}
.selection-item-id,
.selection-item-id.long-number,
.selection-item-name {
  align-self: end;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.selection-item-name {
  min-width: 0;
  padding-bottom: 0;
}
.selection-item-note {
  font-weight: 400;
}
.checkout > span {
  grid-column: 1;
  grid-row: 1;
}
.checkout > strong {
  grid-column: 2;
  grid-row: 1;
}
.checkout {
  row-gap: 18px;
}
#checkout-button {
  grid-column: 2;
  max-width: 100%;
}
html:lang(zh) .rail-slogan {
  white-space: pre;
  text-wrap: nowrap;
  font-size: clamp(10px, 0.64vw, 12px);
}
@container (max-width:220px) {
  .selection-item-bottom {
    padding-left: 20px;
    gap: 8px;
  }
}
.selection-item-price {
  font-size: 19px;
}
.language-switch {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  height: 44px;
  gap: 10px;
  align-items: stretch;
}
.language-slider {
  display: none;
}
.language-switch button {
  position: relative;
  border-radius: 0;
  background: none;
  border-bottom: 2px solid transparent;
  padding: 8px 4px;
  font-size: 14px;
  color: #8a857a;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.language-switch button[aria-checked='true'] {
  color: var(--ink);
  border-bottom-color: var(--red);
  font-weight: 700;
}
.language-switch button:hover {
  color: var(--red);
}
.language-switch button + button::before {
  content: '';
  position: absolute;
  left: -6px;
  top: calc(50% - 6px);
  height: 12px;
  border-left: 1px solid #d8d3c8;
}
#order-dialog {
  width: 800px;
  max-width: calc(100vw - 28px);
  height: min(720px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  padding: 22px 24px;
  overflow: hidden;
}
#order-dialog[open] {
  display: flex;
  flex-direction: column;
}
#order-dialog > .dialog-heading {
  position: static;
  padding: 0;
  flex-shrink: 0;
}
#order-dialog .order-layout {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
  gap: 20px;
  margin-top: 16px;
}
#order-dialog .order-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#order-title {
  font-size: 27px;
  line-height: 1.2;
}
#order-dialog .dialog-subtitle {
  font-size: 14px;
  margin: 7px 0 14px;
}
#order-dialog .order-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 16px;
}
#order-dialog .card-heading h3 {
  font-size: 20px;
}
#order-dialog .card-date {
  margin: 8px 0 10px;
  font-size: 11px;
}
#order-lines {
  flex: 1;
  min-height: 65px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 6px;
}
#order-lines:focus-visible {
  outline: 2px solid #a67b13;
  outline-offset: 2px;
}
#order-dialog .order-line {
  font-size: 15px;
  padding: 11px 0;
  grid-template-columns: 37px minmax(0, 1fr) auto;
}
#order-dialog .order-line > b {
  font-size: 19px;
}
#order-dialog .order-line > strong {
  font-size: 15px;
}
#order-dialog .order-line small {
  font-size: 12px;
}
#order-dialog .order-total {
  padding-top: 12px;
  flex-shrink: 0;
}
#order-dialog .order-total strong {
  font-size: 27px;
}
#order-dialog .card-allergies {
  font-size: 11px;
  margin-top: 8px;
  padding: 7px;
  max-height: 70px;
  overflow-y: auto;
  flex-shrink: 0;
}
#order-dialog .order-actions {
  padding-left: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
}
#order-dialog .order-actions > h3 {
  font-size: 20px;
  margin-bottom: 14px;
}
#order-dialog .order-method {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: baseline;
  gap: 9px;
  margin-top: 14px;
  padding-bottom: 16px;
}
#order-dialog .order-method h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}
#order-dialog .method-number {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}
#order-dialog .order-method p {
  font-size: 13px;
}
#order-dialog .contact-link {
  font-size: 20px;
}
#order-dialog #order-address {
  font-size: 15px;
}
#order-dialog .order-footer {
  flex-shrink: 0;
  margin-top: 14px;
  padding-top: 12px;
}
#order-dialog #save-order-image {
  min-height: 42px;
  font-size: 17px;
  padding: 8px 12px;
}
#order-dialog .card-save {
  max-width: 290px;
}
@media (max-width: 680px) {
  .language-switch {
    height: 37px;
    gap: 8px;
  }
  .language-switch button {
    font-size: 12px;
    padding: 6px 3px;
  }
  #order-dialog {
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px;
  }
  #order-dialog .order-layout {
    display: block;
    overflow-y: auto;
    margin-top: 12px;
  }
  #order-dialog .order-column {
    display: block;
  }
  #order-dialog .order-card {
    height: 370px;
  }
  #order-title {
    font-size: 24px;
  }
  #order-dialog .order-actions {
    margin-top: 18px;
    padding: 16px 0 0;
    border-left: 0;
    overflow: visible;
  }
}

/* Keep recipe choices above the page, outside the fixed selection window. */
#variant-dialog {
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow-y: auto;
  box-shadow: 0 24px 80px #24251f30;
}
#variant-dialog::backdrop {
  background: #24251f66;
  backdrop-filter: blur(3px);
}
#variant-dialog .dialog-heading {
  gap: 16px;
  margin: 0;
}
#variant-dialog h2 {
  font-size: 23px;
  line-height: 1.25;
}
#variant-dialog .customization {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
#customization-id {
  font-size: 12px;
  color: var(--muted);
}
#variant-dialog .variant-intro {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 20px;
}
#variant-dialog .variant-options {
  gap: 10px;
}
#variant-dialog .variant-option {
  min-height: 50px;
  padding: 12px 14px;
  font-size: 17px;
}
#variant-dialog .variant-add {
  color: #fffaf0;
  width: 100%;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 12px;
  min-height: 46px;
  font-size: 17px;
  border-radius: 24px;
}

/* Compact bottom sheet with a stable three-card viewport. */
@media (max-width: 820px) {
  .selection-panel {
    inset: auto 0 0;
    height: auto;
    max-height: calc(100dvh - 12px);
    margin: 0 auto;
    padding: 20px 20px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .selection-heading {
    margin-bottom: 16px;
  }
  .selection-items,
  .selection-items.is-empty {
    height: 438px;
    min-height: 438px;
    max-height: 438px;
    padding: 10px;
    gap: 10px;
  }
  .selection-item,
  .selection-item:last-child {
    height: 132px;
    min-height: 132px;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 12px;
  }
  .selection-item-bottom {
    margin-top: 0;
  }
  .selection-panel .checkout {
    margin-top: 16px;
    padding-top: 16px;
    row-gap: 14px;
  }
}
#clear-selection-dialog {
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 26px;
  border-radius: 18px;
}
#clear-selection-dialog h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
}
#clear-selection-dialog p {
  font-size: 16px;
  line-height: 1.5;
  margin: 12px 0 24px;
  color: var(--muted);
}
.clear-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.clear-dialog-actions button {
  min-height: 44px;
  padding: 10px;
  border-radius: 24px;
  font-size: 16px;
}
#cancel-clear-selection {
  border: 1px solid var(--line);
}

@media (max-width: 820px) and (max-height: 740px) {
  .selection-panel {
    padding: 14px 18px calc(12px + env(safe-area-inset-bottom));
  }
  .selection-heading {
    margin-bottom: 12px;
  }
  .selection-heading h2 {
    font-size: 22px;
  }
  .selection-heading p {
    font-size: 14px;
  }
  .selection-panel .checkout {
    margin-top: 12px;
    padding-top: 12px;
    row-gap: 10px;
  }
  .selection-panel .checkout > strong {
    font-size: 30px;
  }
}

/* Each selection is one aligned heading followed by a compact controls row. */
.selection-item,
.selection-item:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 13px 12px;
  min-height: 98px;
}
.selection-item-top {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
  width: 100%;
}
.selection-item-id,
.selection-item-id.long-number,
.selection-item-name,
.selection-item-price {
  align-self: center;
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}
.selection-item-id {
  text-align: center;
}
.selection-item-name {
  text-align: left;
  overflow-wrap: anywhere;
}
.selection-item-price {
  text-align: right;
  white-space: nowrap;
}
.selection-item-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0 0 0 42px;
  position: static;
}
.selection-item-note {
  margin: 0 auto 0 0;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
}
.selection-item-bottom .quantity-control {
  flex-shrink: 0;
  gap: 5px;
}
.selection-item-bottom .quantity-control button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
}
@media (max-width: 820px) {
  .selection-items,
  .selection-items.is-empty {
    height: 378px;
    min-height: 378px;
    max-height: 378px;
    padding: 10px 14px;
  }
  .selection-item,
  .selection-item:last-child {
    height: 112px;
    min-height: 112px;
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
    padding: 10px 12px;
    gap: 8px;
  }
  .selection-item-top {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .selection-item-bottom {
    padding-left: 38px;
  }
  html:lang(en) .selection-item-name,
  html:lang(de) .selection-item-name {
    font-size: 16px;
    line-height: 1.2;
  }
}

/* Preserve complete source names inside the fixed mobile selection cards. */
@media (max-width: 820px) {
  .selection-item.has-long-name {
    padding-block: 3px;
    gap: 2px;
  }
  .selection-item.has-long-name .selection-item-bottom {
    flex-shrink: 0;
  }
  .selection-item.has-long-name .selection-item-name {
    font-size: 13px;
    line-height: 1.15;
  }
}
@media (max-width: 360px) {
  .selection-item.has-long-name .selection-item-name {
    font-size: 12px;
  }
}
