:root {
  --brand-brown: #372B14;
  --brand-green: #55592B;
  --brand-gold: #DCC9A0;
  --paper: #fbf7ee;
  --ink: var(--brand-brown);
  --ink-soft: rgba(55, 43, 20, 0.82);
  --muted: rgba(55, 43, 20, 0.64);
  --muted-faint: rgba(55, 43, 20, 0.48);
  --line: rgba(55, 43, 20, 0.16);
  --line-strong: rgba(55, 43, 20, 0.26);
  --rail: rgba(220, 201, 160, 0.32);
  --surface: #fffdf8;
  --surface-warm: #f5eddf;
  --surface-deep: #ebe0cf;
  --focus: rgba(85, 89, 43, 0.34);
  --accent: var(--brand-green);
  --danger: #9b2c2c;
  --danger-soft: rgba(155, 44, 44, 0.13);
  --shadow-soft: 0 12px 32px rgba(55, 43, 20, 0.08), 0 3px 10px rgba(55, 43, 20, 0.06);
  --shadow-panel: 0 28px 80px rgba(55, 43, 20, 0.24), 0 8px 22px rgba(55, 43, 20, 0.13);
  --shadow-inset: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 -44px 72px rgba(55, 43, 20, 0.13);
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: "Manrope", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --step--1: clamp(12px, 0.78vw, 14px);
  --step-0: clamp(14px, 0.92vw, 16px);
  --step-1: clamp(16px, 1.05vw, 18px);
  --step-2: clamp(19px, 1.35vw, 23px);
  --step-3: clamp(26px, 2.2vw, 34px);
  --step-4: clamp(36px, 4.4vw, 58px);
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 42px;
  --space-8: 56px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --gap: clamp(18px, 2.4vw, 32px);
  --category-rail-width: 234px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-press: cubic-bezier(0.2, 0, 0.2, 1);
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "liga" 1, "kern" 1;
}

* {
  box-sizing: border-box;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(220, 201, 160, 0.12) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), var(--paper) 42%, #f6efe3);
  background-size: 32px 32px, auto;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-x pan-y;
  overscroll-behavior: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.dish:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  height: 88px;
  display: grid;
  grid-template-columns: var(--category-rail-width) minmax(170px, 1fr) auto auto;
  align-items: center;
  gap: var(--space-6);
  padding: 0 72px 0 var(--space-6);
  border-bottom: 1px solid rgba(55, 43, 20, 0.08);
  background: rgba(251, 247, 238, 0.88);
  backdrop-filter: blur(10px);
}

.brand {
  text-align: left;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-sm);
  transition: transform 160ms var(--ease-press), opacity 180ms var(--ease);
}

.brand img {
  display: block;
  width: 96px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(55, 43, 20, 0.12));
}

.search {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  color: var(--muted);
}

.search-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 160ms var(--ease-press);
}

.search svg,
.basket-tab svg,
.back svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-icon svg {
  width: 20px;
  height: 20px;
}

.search input {
  width: 100%;
  max-width: 420px;
  border: 0;
  border-bottom: 1px solid transparent;
  outline: 0;
  padding: 10px 0 11px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  font-weight: 500;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}

.search.is-open input,
.search input:focus {
  border-bottom-color: var(--line);
}

.search input::placeholder {
  color: var(--muted-faint);
}

.langs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0;
}

.langs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 160ms var(--ease-press);
}

.langs button.active {
  color: var(--ink);
  background: rgba(220, 201, 160, 0.38);
}

.langs img {
  display: block;
  width: 28px;
  height: 21px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(55, 43, 20, 0.12);
}

@media (orientation: landscape) {
  .topbar:not(:has(.sync)) {
    grid-template-columns: var(--category-rail-width) minmax(170px, 1fr) auto;
  }
}

.sync {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 700;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.58);
  transition: border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), transform 160ms var(--ease-press);
}

.layout {
  height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: var(--category-rail-width) minmax(0, 1fr) 0;
  transition: grid-template-columns 680ms var(--ease);
}

.basket-open .layout {
  grid-template-columns: var(--category-rail-width) minmax(0, 1fr) 340px;
}

.category-rail {
  background:
    linear-gradient(180deg, rgba(220, 201, 160, 0.4), rgba(220, 201, 160, 0.18)),
    var(--rail);
  padding: var(--space-6) var(--space-6) var(--space-6);
  overflow-y: auto;
  border-right: 1px solid rgba(55, 43, 20, 0.08);
}

.category-rail button,
.category-tabs button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 48px;
  padding: var(--space-2) 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.14;
  transition: color 180ms var(--ease), padding 220ms var(--ease), background 180ms var(--ease), transform 160ms var(--ease-press), box-shadow 180ms var(--ease);
}

.category-rail button {
  /* vertical rail: wrap long labels instead of clipping them */
  white-space: normal;
}

.category-tabs button {
  /* horizontal scroller: single line, the strip scrolls instead of wrapping */
  width: auto;
  white-space: nowrap;
}

.category-rail button.active {
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: var(--space-3);
  color: var(--accent);
}

.category-tabs {
  display: none;
}

.menu-view {
  overflow-y: auto;
  padding: var(--space-5) 58px var(--space-8) 36px;
  touch-action: pan-y;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-7) var(--space-5);
  transition: gap 420ms var(--ease);
}

.basket-open .dish-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dish {
  cursor: pointer;
  outline: 0;
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  margin: calc(var(--space-2) * -1);
  transition: transform 180ms var(--ease-press), background 180ms var(--ease), box-shadow 220ms var(--ease);
}

.dish:active {
  transform: scale(0.975);
  background: rgba(220, 201, 160, 0.18);
}

.dish:focus img,
.dish:focus-visible img {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.dish-photo,
.photo-missing {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 253, 248, 0.62), transparent 34%),
    linear-gradient(135deg, #ede3d2, #dcd0bc);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.dish-photo::after,
.detail-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: var(--shadow-inset);
  z-index: 1;
}

.dish-photo img,
.detail-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--img-x, 50%) var(--img-y, 50%); /* slides a cropped photo even at zoom 1 */
  transform-origin: var(--img-x, 50%) var(--img-y, 50%);
  transform: scale(var(--img-zoom, 1));
  transition: border-radius 240ms var(--ease), transform 300ms var(--ease), filter 220ms var(--ease);
}

.dish:hover .dish-photo img {
  transform: scale(var(--img-zoom, 1)) translateY(-2px);
}

.dish:active .dish-photo img {
  filter: saturate(0.96) brightness(0.98);
}

.dish h2 {
  margin: var(--space-3) 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--ink);
}

.dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  align-items: center;
}

.dish-meta p,
.dish-meta span {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.15;
}

.dish-meta p {
  color: var(--ink);
  font-weight: 800;
}

/* Photo-free drinks use the menu's display type and a quiet ruled layout. */
.drinks-heading {
  padding: 20px 0 28px;
}
.drinks-heading h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 500;
}
.dish-grid.dish-grid--drinks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 8px;
}
.dish--packaged-drink {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 124px;
  margin: 0;
  padding: 28px 12px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}
.dish--packaged-drink:hover,
.dish--packaged-drink:focus-visible {
  background: rgba(220, 201, 160, 0.16);
}
.dish--packaged-drink:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
.drink-copy {
  flex: 1;
  min-width: 0;
}
.dish--packaged-drink h2 {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.25;
}
.drink-copy .dish-meta {
  margin-top: 10px;
}
.drink-price {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  font-weight: 700;
  white-space: nowrap;
}
.drink-arrow {
  color: var(--accent);
  font-size: 20px;
  opacity: 0.6;
}
@media (max-width: 1100px) and (orientation: landscape) {
  .basket-open .dish-grid--drinks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dish-grid.dish-grid--drinks { grid-template-columns: 1fr; }
  .drinks-heading { padding: 12px 0 16px; }
  .dish--packaged-drink { min-height: 104px; padding: 24px 4px; }
}

.basket-tab {
  position: fixed;
  right: 0;
  top: 50%;
  width: 66px;
  height: 132px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(55, 43, 20, 0.18);
  border-right: 0;
  border-radius: 24px 0 0 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(245, 237, 223, 0.96)),
    var(--surface);
  color: var(--accent);
  box-shadow: -16px 18px 38px rgba(55, 43, 20, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  z-index: 20;
  transition: background 240ms var(--ease), color 220ms var(--ease), transform 520ms var(--ease), width 320ms var(--ease), opacity 220ms var(--ease), box-shadow 220ms var(--ease);
}

.basket-open .basket-tab {
  transform: translateY(-50%) translateX(-340px);
}

.basket-tab .basket-icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.15;
  filter: drop-shadow(0 2px 3px rgba(55, 43, 20, 0.12));
}

.detail-open .basket-tab {
  opacity: 0;
  pointer-events: none;
}

.basket-count {
  position: absolute;
  top: 31px;
  right: 12px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  border: 2px solid var(--surface);
  background: var(--brand-brown);
  color: #fffdf8;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(55, 43, 20, 0.2);
  animation: basket-count-pop 280ms var(--ease) both;
}

.basket-tab:hover {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 1), rgba(245, 237, 223, 1)),
    var(--surface);
  color: var(--brand-brown);
  box-shadow: -18px 22px 44px rgba(55, 43, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.detail-qty {
  margin-top: var(--space-6);
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  justify-content: center;
  gap: var(--space-3);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: 0 12px 26px rgba(55, 43, 20, 0.08);
}

.detail-qty span {
  min-width: 34px;
  color: var(--ink);
  font-size: var(--step-0);
  font-variant-numeric: tabular-nums;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 60;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  background:
    linear-gradient(180deg, rgba(69, 73, 31, 0.98), rgba(55, 43, 20, 0.98)),
    var(--ink);
  color: #fffdf8;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 18px 44px rgba(55, 43, 20, 0.24), 0 4px 12px rgba(55, 43, 20, 0.14);
  animation: toast-rise 340ms var(--ease) both;
}

.basket {
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), var(--paper) 48%, #f5eee2),
    var(--paper);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  box-shadow: -22px 0 44px rgba(55, 43, 20, 0.08);
  transition: opacity 520ms var(--ease), transform 680ms var(--ease), box-shadow 300ms var(--ease);
}

.basket-open .basket {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.basket-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid rgba(55, 43, 20, 0.1);
  background: rgba(255, 253, 248, 0.52);
}

.back {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(220, 201, 160, 0.2);
  transition: background 180ms var(--ease), transform 160ms var(--ease-press);
}

.back svg {
  width: 22px;
  height: 22px;
}

.basket h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1;
}

.basket h2 .basket-icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  stroke-width: 1.9;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.basket-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 700;
}

.basket-list {
  overflow-y: auto;
  padding: var(--space-2) var(--space-6) var(--space-5);
}

.basket-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4) 0 var(--space-5);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity 180ms var(--ease);
}

.basket-row:hover {
  opacity: 0.72;
}

.basket-thumb {
  width: 96px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, #ede3d2, #dcd0bc);
  box-shadow: var(--shadow-soft);
}

.basket-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--img-x, 50%) var(--img-y, 50%); /* slides a cropped photo even at zoom 1 */
  transform-origin: var(--img-x, 50%) var(--img-y, 50%);
  transform: scale(var(--img-zoom, 1));
}

.basket-thumb .photo-missing {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.basket-info {
  min-width: 0;
}

.basket-row h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.14;
  /* long single words (dish + variant names) break instead of running under the qty control */
  overflow-wrap: anywhere;
}

/* Own full-width row: the qty control needs ~200px and must never contest the name column. */
.basket-row-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.basket-row p,
.empty-basket {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
}

.empty-basket {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.15;
}

.empty-basket .basket-icon {
  width: 72px;
  height: 72px;
  color: rgba(85, 89, 43, 0.55);
  stroke-width: 1.15;
}

.basket-row strong {
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-family: var(--font-ui);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.qty button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 160ms var(--ease-press);
}

.qty span {
  min-width: 28px;
  text-align: center;
  color: var(--ink);
}

.basket-total {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: grid;
  gap: var(--space-2);
  border-top: 1px solid rgba(55, 43, 20, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(245, 237, 223, 0.96)),
    var(--surface);
  box-shadow: 0 -18px 34px rgba(55, 43, 20, 0.07);
}

.total-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.basket-total span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.total-line--grand {
  margin-top: 4px;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(55, 43, 20, 0.14);
}

.total-line--grand span {
  font-size: var(--step-0);
  color: inherit;
}

.basket-total strong {
  font-family: var(--font-ui);
  font-size: var(--step-2);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}

.empty {
  margin: 10vh 0 0;
  max-width: 520px;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.52);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
}

.dish-detail {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: var(--space-7);
}

.detail-scrim {
  position: absolute;
  inset: 0;
  background: rgba(35, 27, 12, 0.42);
  backdrop-filter: blur(7px);
  animation: fade-in 220ms var(--ease) both;
}

.detail-panel {
  position: relative;
  width: min(880px, calc(100vw - 72px));
  max-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, var(--surface), var(--paper) 58%, #f2eadc),
    var(--paper);
  box-shadow: var(--shadow-panel);
  animation: detail-rise 380ms var(--ease) both;
}

.detail-photo,
.detail-panel .photo-missing {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.dish-photo .photo-missing,
.detail-photo .photo-missing {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.detail-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 8px 22px rgba(55, 43, 20, 0.12);
  font-family: var(--font-ui);
  font-size: 28px;
  line-height: 1;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 160ms var(--ease-press);
}

.detail-body {
  overflow-y: auto;
  padding: var(--space-7) var(--space-7) var(--space-6);
}

.detail-panel:has(.detail-body--no-photo) {
  grid-template-columns: 1fr;
}

.detail-body--no-photo {
  padding-top: calc(var(--space-4) + 48px + var(--space-4));
}

.detail-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.detail-price {
  margin: var(--space-4) 0 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-2);
  font-weight: 800;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-4);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 700;
}

.variant-list span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.52);
}

.detail-desc,
.detail-list {
  margin: var(--space-5) 0 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: var(--step-1);
  line-height: 1.58;
}

.detail-body h3 {
  margin: var(--space-6) 0 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 800;
  text-transform: uppercase;
}

.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 700;
}

.detail-add {
  margin-top: var(--space-6);
  min-height: 54px;
  padding: 0 var(--space-5);
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(85, 89, 43, 0.22);
  transition: background 180ms var(--ease), transform 160ms var(--ease-press), box-shadow 180ms var(--ease);
}

.search-icon:active,
.brand:active,
.langs button:active,
.sync:active,
.category-rail button:active,
.category-tabs button:active,
.back:active,
.detail-close:active,
.detail-add:active,
.qty button:active {
  transform: scale(0.94);
}

.basket-tab:active {
  transform: translateY(-50%) scale(0.94);
}

.basket-open .basket-tab:active {
  transform: translateY(-50%) translateX(-340px) scale(0.94);
}

.search-icon:hover,
.langs button:hover,
.sync:hover,
.back:hover,
.detail-close:hover,
.qty button:hover {
  background: rgba(220, 201, 160, 0.28);
}

.detail-add:hover {
  background: #45491f;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes toast-rise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.98);
  }
}

@keyframes basket-count-pop {
  from {
    opacity: 0;
    transform: scale(0.68);
  }

  72% {
    transform: scale(1.08);
  }
}

@keyframes detail-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}

@media (orientation: portrait) {
  .topbar {
    height: 148px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand langs"
      "search sync";
    padding: 18px 40px 14px;
    gap: var(--space-3) var(--space-4);
  }

  .brand {
    grid-area: brand;
  }

  .brand img {
    width: 76px;
  }

  .search {
    grid-area: search;
  }

  .langs {
    grid-area: langs;
  }

  .sync {
    grid-area: sync;
    justify-self: end;
  }

  .layout,
  .basket-open .layout {
    height: calc(100vh - 148px);
    display: block;
  }

  .category-rail {
    display: none;
  }

  .category-tabs {
    display: flex;
    gap: var(--space-5);
    overflow-x: auto;
    padding: var(--space-4) 40px var(--space-4);
    white-space: nowrap;
    background: rgba(251, 247, 238, 0.84);
    border-bottom: 1px solid rgba(55, 43, 20, 0.08);
    /* fade the trailing edge so a 15-category scroller reads as scrollable, not cut off */
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }

  .category-tabs button {
    width: auto;
    min-height: 46px;
    padding: 0 0 var(--space-2);
    flex: 0 0 auto;
    font-size: var(--step-1);
  }

  .category-tabs button.active {
    box-shadow: inset 0 -2px 0 var(--accent);
    color: var(--accent);
  }

  .menu-view {
    height: calc(100% - 58px);
    padding: var(--space-4) 40px var(--space-8);
    transition: opacity 380ms var(--ease), transform 520ms var(--ease);
  }

  .dish-grid,
  .basket-open .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-4);
  }

  .dish-photo {
    aspect-ratio: 1 / 1;
  }

  .photo-missing {
    aspect-ratio: 1 / 1;
  }

  .dish h2 {
    font-size: var(--step-1);
    margin-top: var(--space-3);
  }

  .dish-meta p,
  .dish-meta span {
    font-size: 12px;
  }

  .basket {
    position: fixed;
    inset: 148px 0 0;
    z-index: 18;
    border-left: 0;
    transform: translateX(100%);
  }

  .basket-open .category-tabs,
  .basket-open .menu-view {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-18px);
  }

  .basket-open .basket {
    display: grid;
    height: calc(100vh - 148px);
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .basket-open .back {
    display: block;
  }

  .basket-open .basket-tab {
    transform: translateY(-50%);
  }

  .basket-tab {
    top: auto;
    right: 0;
    bottom: var(--space-5);
    width: 68px;
    height: 72px;
    border-right: 1px solid rgba(55, 43, 20, 0.18);
    border-radius: 24px 0 0 24px;
    transform: none;
  }

  .basket-tab .basket-icon {
    width: 29px;
    height: 29px;
  }

  .basket-count {
    top: 10px;
    right: 9px;
  }

  .basket-tab:active,
  .basket-open .basket-tab:active {
    transform: scale(0.94);
  }

  .dish-detail {
    align-items: end;
    padding: var(--space-4);
  }

  .detail-panel {
    width: 100%;
    max-height: calc(100vh - 36px);
    grid-template-columns: 1fr;
    border-radius: var(--radius-xl);
  }

  .detail-photo,
  .detail-panel .photo-missing {
    height: 42vh;
    min-height: 260px;
  }

  .detail-body {
    padding: var(--space-6) var(--space-5) var(--space-5);
  }

  .detail-body h2 {
    font-size: clamp(34px, 6.2vw, 48px);
  }
}

@media (orientation: portrait) {
  .menu-view.category-leave-left,
  .menu-view.category-leave-right {
    opacity: 0;
    transition-duration: 140ms;
  }
  .menu-view.category-leave-left { transform: translateX(-24px); }
  .menu-view.category-leave-right { transform: translateX(24px); }
  .menu-view.category-enter-right { opacity: 0; transform: translateX(24px); transition: none; }
  .menu-view.category-enter-left { opacity: 0; transform: translateX(-24px); transition: none; }
}

/* ---- rail: one quiet list of places to go {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5) var(--space-5);
  border-right: 1px solid rgba(55, 43, 20, 0.08);
  background:
    linear-gradient(180deg, rgba(220, 201, 160, 0.4), rgba(220, 201, 160, 0.18)),
    var(--rail);
}

/* the category list is the only part that scrolls {
  overflow-y: auto;
  scrollbar-width: none;
}

@media (max-width: 720px) {
  .topbar {
    padding-left: 28px;
    padding-right: 28px;
  }

  .category-tabs {
    padding-left: 28px;
    padding-right: 28px;
  }

  .menu-view {
    padding-left: 28px;
    padding-right: 28px;
  }

}
.variant-picker { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.variant-picker legend { font: 800 12px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.variant-picker .variant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.variant-option { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 82px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.65); cursor: pointer; }
.variant-option:hover { border-color: var(--accent); }
.variant-option.is-selected { border-color: var(--accent); background: #eff0df; box-shadow: inset 0 0 0 1px var(--accent); }
.variant-option:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.variant-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.variant-option img { width: 52px; height: 62px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.variant-picker .variant-option span { padding: 0; border: 0; border-radius: 0; background: transparent; }
.variant-copy { display: flex; flex-direction: column; gap: 6px; color: var(--ink); line-height: 1.4; flex: 1; }
.variant-copy strong { font-size: 12px; }
.variant-copy small { color: var(--ink-soft); font-size: 11px; white-space: nowrap; }
.variant-picker .variant-check { flex-shrink: 0; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%; text-align: center; line-height: 18px; }
.variant-picker .is-selected .variant-check { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.detail-add { width: 100%; }
.detail-add:disabled { opacity: .5; cursor: default; box-shadow: none; }
@media (max-width: 480px) { .variant-picker .variant-list { grid-template-columns: 1fr; } }
.detail-order-controls { position: sticky; bottom: -32px; padding: 16px 0 24px; margin-top: 12px; background: var(--paper); z-index: 1; }
.detail-order-controls .detail-add, .detail-order-controls .detail-qty { margin-top: 0; }
.detail-body:has(.variant-picker) .detail-desc { margin-top: 16px; }
.detail-body:has(.variant-picker) h3 { margin-top: 18px; }
.detail-body:has(.variant-picker) .detail-list { margin-top: 10px; }
.detail-body:has(.variant-picker) .variant-picker { margin-top: 22px; }

/* Tablet dish presentation: an inset photograph and a complete, non-scrolling order. */
.dish-detail { padding: 24px; place-items: center; }
.detail-panel {
  width: min(1180px, calc(100vw - 48px));
  max-height: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 28px;
  padding: 28px;
}
.detail-photo {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: #f2eadc;
}
.detail-photo img { object-fit: cover; object-position: center; transform: none; }
.detail-photo::after { box-shadow: inset 0 0 0 1px rgba(65, 51, 25, .06); border-radius: inherit; }
.detail-body { min-width: 0; overflow: visible; padding: 18px 0 0; }
.detail-body h2 { padding-right: 38px; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.05; }
.detail-price { margin-top: 14px; }
.detail-stats {
  margin-top: 12px;
  align-items: center;
  gap: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .015em;
}
.detail-stats span { padding: 0; border: 0; background: none; white-space: nowrap; }
.detail-stats span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 12px 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}
.detail-desc, .detail-list { font-size: 15px; line-height: 1.45; }
.detail-body h3, .detail-body:has(.variant-picker) h3 { margin-top: 16px; }
.detail-body .detail-desc, .detail-body .detail-list { margin-top: 8px; }
.detail-body .variant-picker { margin-top: 18px; }
.variant-picker .variant-list { gap: 8px; margin-top: 10px; }
.variant-option { min-height: 66px; padding: 8px; gap: 8px; border-radius: 13px; transition: background 160ms ease, border-color 160ms ease; }
.variant-option img { width: 48px; height: 48px; object-fit: cover; background: #f2eadc; }
.variant-copy { gap: 3px; line-height: 1.25; }
.variant-option:focus-within { outline: none; }
.variant-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.detail-order-controls { position: static; margin-top: 18px; padding: 16px 0 0; border-top: 1px solid var(--line); background: transparent; }
.detail-body--no-photo { padding-top: 32px; }
@media (min-width: 721px) and (max-height: 800px) {
  .dish-detail { padding: 16px; }
  .detail-panel { width: min(1180px, calc(100vw - 32px)); padding: 22px; gap: 22px; }
  .detail-body h2 { font-size: 32px; }
  .detail-body .variant-picker { margin-top: 14px; }
  .detail-order-controls { margin-top: 12px; padding-top: 12px; }
}
@media (max-width: 720px) {
  .dish-detail { padding: 12px; }
  .detail-panel { width: 100%; padding: 18px; gap: 16px; grid-template-columns: 1fr; }
  .detail-photo { width: min(100%, 300px); height: auto; min-height: 0; justify-self: center; }
  .detail-body { padding: 0; }
  .detail-body h2 { font-size: 28px; }
  .variant-picker .variant-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Portrait tablets have enough height to make the detail view feel generous. */
@media (orientation: portrait) and (min-width: 721px) {
  .dish-detail { padding: 18px 12px; }
  .detail-panel {
    width: calc(100vw - 24px);
    min-height: min(860px, calc(100vh - 48px));
    grid-template-columns: minmax(330px, 1.08fr) minmax(0, .92fr);
    gap: 22px;
    padding: 22px;
  }
  .detail-close { width: 52px; height: 52px; font-size: 30px; }
  .detail-body { padding-top: 0; }
  .detail-body h2 { padding-right: 42px; font-size: 36px; line-height: 1; }
  .detail-price { margin-top: 18px; font-size: 23px; }
  .detail-stats { margin-top: 14px; font-size: 14px; }
  .detail-desc,
  .detail-list { font-size: 16px; line-height: 1.5; }
  .detail-body h3,
  .detail-body:has(.variant-picker) h3,
  .variant-picker legend { font-size: 13px; }
  .detail-body .variant-picker { margin-top: 22px; }
  .variant-picker .variant-list { gap: 10px; margin-top: 12px; }
  .variant-option { min-height: 76px; padding: 9px; gap: 8px; }
  .variant-option img { width: 50px; height: 50px; }
  .variant-copy strong { font-size: 13px; }
  .variant-copy small { font-size: 12px; }
  .variant-picker .variant-check { width: 20px; height: 20px; line-height: 20px; }
  .detail-order-controls { margin-top: 22px; padding-top: 18px; }
  .detail-add { min-height: 60px; font-size: 15px; }
}

/* ======================================================================
   Menu screen, December 2026 redesign.
   - The basket is a drawer (tablet) / sheet (phone) over a dimmed menu:
     the dish grid never reflows when it opens.
   - Phones get one slim header row, a search that morphs open from its
     icon, a pill-style sliding category indicator and one big photo per dish.
   Everything here overrides the older layout rules above by source order.
   ====================================================================== */

:root {
  --topbar-h: 88px;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
}

.layout,
.basket-open .layout {
  height: calc(100vh - var(--topbar-h));
  height: calc(100dvh - var(--topbar-h));
  grid-template-columns: var(--category-rail-width) minmax(0, 1fr);
}

.basket-open .dish-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- category heading ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  margin: var(--space-2) 0 var(--space-6);
}

.section-head h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-bottom: 9px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.drinks-heading { display: none; }

/* ---------- dish card ---------- */
.dish-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-3) 0 6px;
}

.dish-line h2 {
  margin: 0;
  min-width: 0;
}

.dish-price {
  margin: 0;
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dish .dish-meta {
  gap: 0;
}

.dish .dish-meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 10px 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

/* ---------- sliding category indicator ---------- */
.category-rail,
.category-tabs {
  position: relative;
}

.nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  transition: transform 460ms var(--spring), width 460ms var(--spring), height 460ms var(--spring), opacity 200ms var(--ease);
}

.nav-indicator.is-placed {
  opacity: 1;
}

.category-rail .nav-indicator {
  width: 3px;
  height: var(--h);
  border-radius: 3px;
  background: var(--accent);
  transform: translate(var(--x), var(--y));
}

.category-rail button.active {
  box-shadow: none;
}

/* ---------- basket: drawer over a dimmed menu ---------- */
.basket-scrim {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(55, 43, 20, 0.24);
  -webkit-backdrop-filter: blur(4px) saturate(0.9);
  backdrop-filter: blur(4px) saturate(0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms var(--ease);
}

.basket-open .basket-scrim {
  opacity: 1;
  pointer-events: auto;
}

.basket,
.basket-open .basket {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 26;
  width: min(420px, 92vw);
  height: auto;
  display: grid;
  border-left: 1px solid rgba(55, 43, 20, 0.1);
  border-radius: 28px 0 0 28px;
  opacity: 1;
}

.basket {
  transform: translateX(104%);
  pointer-events: none;
  box-shadow: none;
  transition: transform 620ms var(--spring), box-shadow 420ms var(--ease);
}

.basket-open .basket {
  transform: none;
  pointer-events: auto;
  box-shadow: -36px 0 90px rgba(55, 43, 20, 0.22), -6px 0 20px rgba(55, 43, 20, 0.08);
}

/* the old layout faded the menu away behind the basket; now it simply stays put under the scrim */
.basket-open .category-tabs,
.basket-open .menu-view {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.basket-head {
  justify-content: space-between;
  flex-direction: row-reverse;
  padding: var(--space-6) var(--space-5) var(--space-4) var(--space-6);
}

.back,
.basket-open .back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.back svg {
  width: 20px;
  height: 20px;
}

.basket-tab-label,
.basket-tab-total,
.search-close {
  display: none;
}

.basket-open .basket-tab,
.basket-open .basket-tab:active {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(24px);
}

/* ======================= portrait tablet ======================= */
@media (orientation: portrait) and (min-width: 721px) {
  .dish-line h2 { font-size: 21px; line-height: 1.1; }
  .dish-price { font-size: 14px; }

  .layout,
  .basket-open .layout {
    display: flex;
    flex-direction: column;
  }

  .menu-view {
    flex: 1;
    min-height: 0;
    height: auto;
  }

  .basket-open .basket-tab,
  .basket-open .basket-tab:active {
    transform: translateX(24px);
  }
}

/* the strip scrolls by swipe; its scrollbar only looked like a stray grey line */
.category-tabs { scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }

/* sliding pill behind the active category, portrait tablet and phone */
@media (orientation: portrait), (max-width: 720px) {
  .category-tabs {
    gap: 4px;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .category-tabs button {
    position: relative;
    z-index: 1;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--muted);
    transition: color 260ms var(--ease), transform 160ms var(--ease-press);
  }

  .category-tabs button.active {
    box-shadow: none;
    color: var(--ink);
  }

  .category-tabs .nav-indicator {
    width: var(--w);
    height: var(--h);
    border-radius: 999px;
    background: rgba(220, 201, 160, 0.44);
    box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.08), 0 6px 14px rgba(55, 43, 20, 0.06);
    transform: translate(var(--x), var(--y));
  }
}

/* ============================ phone ============================ */
@media (max-width: 720px) {
  :root { --topbar-h: 64px; }

  .layout,
  .basket-open .layout {
    display: flex;
    flex-direction: column;
  }

  .category-tabs {
    padding-left: 12px;
    padding-right: 12px;
    background: rgba(251, 247, 238, 0.92);
  }

  .menu-view {
    flex: 1;
    min-height: 0;
    height: auto;
    padding: var(--space-5) 18px 120px;
  }

  .section-head { margin: 0 0 var(--space-5); }
  .section-head h1 { font-size: 34px; }

  /* one big photograph per dish */
  .dish-grid,
  .basket-open .dish-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .dish-photo,
  .photo-missing {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }

  .dish-line { margin-top: var(--space-4); }
  .dish-line h2 { font-size: 24px; line-height: 1.08; }
  .dish-price { font-size: 15px; }
  .dish-meta span { font-size: 13px; }

  /* order pill along the bottom instead of the side tab */
  .basket-tab {
    top: auto;
    left: 14px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: auto;
    height: 58px;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 0 20px 0 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #5c6030, var(--accent));
    color: var(--paper);
    box-shadow: 0 18px 40px rgba(55, 43, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform: none;
  }

  .has-items .basket-tab { display: flex; }

  .basket-tab .basket-icon {
    width: 24px;
    height: 24px;
    filter: none;
  }

  .basket-tab-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 800;
  }

  .basket-count {
    position: static;
    min-width: 22px;
    height: 22px;
    line-height: 18px;
    border-color: rgba(255, 253, 248, 0.9);
    background: var(--paper);
    color: var(--ink);
    box-shadow: none;
  }

  .basket-tab-total {
    display: block;
    margin-left: auto;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  .basket-tab:hover { background: linear-gradient(180deg, #5c6030, var(--accent)); color: var(--paper); }
  .basket-tab:active { transform: scale(0.97); }

  .basket-open .basket-tab,
  .basket-open .basket-tab:active {
    transform: translateY(24px);
  }

  /* basket: a full-height sheet that slides up */
  .basket,
  .basket-open .basket {
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 28px);
    height: calc(100dvh - 28px);
    border-left: 0;
    border-top: 1px solid rgba(55, 43, 20, 0.1);
    border-radius: 26px 26px 0 0;
  }

  .basket { transform: translateY(104%); }
  .basket-open .basket {
    transform: none;
    box-shadow: 0 -30px 80px rgba(55, 43, 20, 0.24);
  }

  .basket-head {
    position: relative;
    padding: 26px 14px 14px 22px;
  }

  .basket-head::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 40px;
    height: 5px;
    margin-left: -20px;
    border-radius: 999px;
    background: rgba(55, 43, 20, 0.18);
  }

  .basket-list { padding: var(--space-2) 22px var(--space-5); }
  .basket-total { padding: var(--space-5) 22px max(22px, env(safe-area-inset-bottom)); }

  .toast { bottom: 90px; }
}

@keyframes search-morph {
  from {
    clip-path: inset(0 0 0 calc(100% - 52px) round 999px);
    opacity: 0.6;
  }
  to {
    clip-path: inset(0 0 0 0 round 999px);
    opacity: 1;
  }
}

@keyframes pill-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-indicator,
  .basket,
  .basket-scrim { transition-duration: 1ms; }
  .search.is-open,
  .basket-tab { animation: none; }
}

/* ======================================================================
   Menu screen v2 (December 2026): five fixes.
   1 header: icon search that slides open, flags as one segmented control
   2 order bar instead of the side tab, on every screen size
   3 clean paper canvas, no visible scrollbars
   4 lighter category rail that fits all categories, sliding pill
   5 card typography: larger names, serif prices, even rows
   ====================================================================== */

/* ---------- 3. canvas ---------- */
body {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 253, 248, 0.95), transparent 60%),
    linear-gradient(180deg, #fcf9f2, var(--paper) 40%, #f7f1e6);
  background-size: auto;
}

.menu-view,
.category-rail,
.basket-list {
  scrollbar-width: none;
}

.menu-view::-webkit-scrollbar,
.category-rail::-webkit-scrollbar,
.basket-list::-webkit-scrollbar {
  display: none;
}

/* ---------- 1. header ---------- */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--topbar-h);
  padding: 0 28px 0 32px;
  border-bottom: 1px solid rgba(55, 43, 20, 0.07);
  background: rgba(252, 249, 242, 0.86);
}

.brand {
  width: auto;
  flex: 0 0 auto;
}

.topbar-actions {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.search,
.search.is-open {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 46px;
  min-width: 0;
  border-radius: 999px;
  color: var(--ink-soft);
}

.search-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(220, 201, 160, 0.26);
  color: var(--ink);
}

.search-icon svg,
.search-glyph svg {
  width: 19px;
  height: 19px;
}

.search.is-open {
  flex: 0 1 400px;
  gap: 2px;
  padding: 0 4px 0 16px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(55, 43, 20, 0.12), inset 0 0 0 1px rgba(55, 43, 20, 0.12);
}

.search.just-opened {
  animation: search-slide 520ms var(--spring) both;
}

.search-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--muted);
}

.search-glyph svg,
.search-close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search.is-open input {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: none;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px; /* 16px keeps iOS from zooming the page on focus */
  font-weight: 500;
}

.search.is-open .search-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(220, 201, 160, 0.3);
  color: var(--ink);
}

.search-close svg {
  width: 16px;
  height: 16px;
}

/* the magnifier sits where the field ends, so the field grows out of it to the left */
@keyframes search-slide {
  from { clip-path: inset(0 0 0 calc(100% - 46px) round 999px); }
  to { clip-path: inset(0 0 0 0 round 999px); }
}

.topbar .langs {
  position: relative;
  flex: 0 0 auto;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(220, 201, 160, 0.26);
  box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.06);
}

.topbar .langs button,
.topbar .langs button.active {
  position: relative;
  z-index: 1;
  min-width: 42px;
  min-height: 38px;
  background: transparent;
}

.topbar .langs img {
  width: 24px;
  height: 17px;
  border-radius: 3px;
  opacity: 0.72;
  filter: saturate(0.78);
  transition: opacity 220ms var(--ease), filter 220ms var(--ease);
}

.topbar .langs button.active img {
  opacity: 1;
  filter: none;
}

.topbar .langs .nav-indicator {
  width: var(--w);
  height: var(--h);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(55, 43, 20, 0.12), inset 0 0 0 1px rgba(55, 43, 20, 0.06);
  transform: translate(var(--x), var(--y));
}

@media (orientation: landscape) and (min-width: 721px) {
  /* logo sits over the category rail, like a printed menu's masthead */
  .brand { width: calc(var(--category-rail-width) - 32px); }
}

@media (max-width: 720px) {
  .topbar { padding: 0 10px 0 18px; gap: 8px; }
  .topbar-actions { gap: 8px; }
  .search-icon { width: 42px; height: 42px; }
  .topbar .langs { padding: 3px; }
  .topbar .langs button,
  .topbar .langs button.active { min-width: 36px; min-height: 34px; }
  .topbar .langs img { width: 21px; height: 15px; }

  /* on a phone the open field takes the whole header row */
  .search.is-open {
    position: absolute;
    top: 9px;
    right: 10px;
    bottom: 9px;
    left: 10px;
    z-index: 5;
    height: auto;
  }
}

/* ---------- 2. order bar (phone styles live in the phone block above) ---------- */
@media (min-width: 721px) {
  .basket-tab {
    top: auto;
    left: auto;
    right: 28px;
    bottom: 28px;
    width: auto;
    min-width: 280px;
    height: 60px;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 0 24px 0 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #5c6030, var(--accent));
    color: var(--paper);
    box-shadow: 0 18px 44px rgba(55, 43, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform: none;
  }

  .has-items .basket-tab { display: flex; }

  .basket-tab .basket-icon { width: 24px; height: 24px; filter: none; }

  .basket-tab-label,
  .basket-tab-total {
    display: block;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 800;
  }

  .basket-tab-total {
    margin-left: auto;
    padding-left: 18px;
    font-variant-numeric: tabular-nums;
  }

  .basket-count {
    position: static;
    min-width: 22px;
    height: 22px;
    line-height: 18px;
    border-color: rgba(255, 253, 248, 0.9);
    background: var(--paper);
    color: var(--ink);
    box-shadow: none;
  }

  .basket-tab:hover { background: linear-gradient(180deg, #5c6030, var(--accent)); color: var(--paper); }
  .basket-tab:active { transform: scale(0.97); }

  .basket-open .basket-tab,
  .basket-open .basket-tab:active {
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px);
  }
}

.menu-view { padding-bottom: 128px; }
.toast { bottom: 104px; }

/* ---------- 4. category rail ---------- */
.category-rail {
  padding: var(--space-5) 18px;
  background: rgba(220, 201, 160, 0.16);
  border-right: 1px solid rgba(55, 43, 20, 0.07);
}

.category-rail button,
.category-rail button.active {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.15;
  box-shadow: none;
}

.category-rail button.active {
  color: var(--ink);
  font-weight: 600;
}

.category-rail button + button { margin-top: 2px; }

.category-rail .nav-indicator {
  width: var(--w);
  height: var(--h);
  border-radius: 999px;
  background: rgba(220, 201, 160, 0.5);
  box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.07), 0 6px 14px rgba(55, 43, 20, 0.06);
  transform: translate(var(--x), var(--y));
}

/* ---------- 5. cards ---------- */
.dish-grid {
  row-gap: 44px;
}

.dish-photo,
.photo-missing {
  border-radius: 18px;
}

.dish:hover .dish-photo {
  box-shadow: 0 18px 40px rgba(55, 43, 20, 0.14), 0 4px 12px rgba(55, 43, 20, 0.08);
}

/* Name gets the full card width (never truncated); price and kcal/minutes share the line under it. */
.dish-line {
  display: contents;
}

.dish-line h2 {
  margin: var(--space-4) 0 8px;
  font-size: clamp(21px, 1.7vw, 25px);
  font-weight: 600;
  line-height: 1.1;
}

.dish .dish-meta {
  margin-top: 5px;
}

.dish-price {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.45vw, 22px);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.01em;
}

.dish .dish-meta span {
  color: var(--muted-faint);
  font-size: 12.5px;
  font-weight: 600;
}

.section-head h1 {
  font-size: clamp(34px, 3.6vw, 52px);
}

/* one continuous menu: each category opens like a new chapter */
.menu-section + .menu-section {
  margin-top: clamp(56px, 7vh, 88px);
}

@media (max-width: 720px) {
  .dish-line h2 { font-size: 24px; }
  .dish-price { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .search.just-opened { animation: none; }
}

/* Entrance and count pop play only when something actually changed, not on every re-render. */
.bar-appears .basket-tab { animation: pill-rise 520ms var(--spring) backwards; }
.basket-count { animation: none; }
.basket-count.is-changed { animation: basket-count-pop 280ms var(--ease) both; }

/* ======================================================================
   Ordering, December 2026: dish sheet, add-to-order flight, basket rows,
   a cream order pill that the basket grows out of, idle screen, loading.
   ====================================================================== */

/* ---------- photos fade in once, the first time they arrive ---------- */
.dish-photo img,
.basket-thumb img,
.dd-photo img {
  transition: opacity 520ms var(--ease), transform 300ms var(--ease), filter 220ms var(--ease);
}
#app .dish-photo img:not(.is-loaded),
#app .basket-thumb img:not(.is-loaded),
#app .dd-photo img:not(.is-loaded) {
  opacity: 0;
}

/* ---------- boot / loading ---------- */
.boot {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
}
.boot img { width: 150px; height: auto; animation: boot-breathe 2.4s ease-in-out infinite; }
.boot span {
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent) -120px 0 / 120px 100% no-repeat, rgba(85, 89, 43, 0.12);
  animation: boot-line 1.4s var(--ease) infinite;
}
@keyframes boot-breathe { 50% { opacity: 0.55; } }
@keyframes boot-line { to { background-position: 120px 0, 0 0; } }

/* ---------- stepper ---------- */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(220, 201, 160, 0.3);
  box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.07);
}
.stepper button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(55, 43, 20, 0.1), inset 0 0 0 1px rgba(55, 43, 20, 0.06);
  transition: transform 160ms var(--ease-press), background 180ms var(--ease);
}
.stepper button:active { transform: scale(0.9); }
.stepper svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.stepper span {
  min-width: 28px;
  text-align: center;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- dish sheet ---------- */
.dish-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.dd-scrim {
  position: absolute;
  inset: 0;
  background: rgba(40, 32, 15, 0.36);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: dd-fade 320ms var(--ease) both;
}
.dd-panel {
  position: relative;
  width: min(760px, 100%);
  height: calc(100vh - 28px);
  height: calc(100dvh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #fffdf8, #f7f0e4);
  box-shadow: 0 -30px 90px rgba(40, 32, 15, 0.28);
  animation: dd-rise 560ms var(--spring) both;
}
.dish-sheet.is-closing { pointer-events: none; }
.dish-sheet.is-closing .dd-scrim { animation: dd-fade-out 300ms var(--ease) both; }
.dish-sheet.is-closing .dd-panel { animation: dd-sink 300ms cubic-bezier(0.4, 0, 1, 1) both; }
@keyframes dd-fade { from { opacity: 0; } }
@keyframes dd-fade-out { to { opacity: 0; } }
@keyframes dd-rise { from { transform: translateY(100%); } }
@keyframes dd-sink { to { transform: translateY(100%); } }

.dd-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.84);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(40, 32, 15, 0.16);
}
.dd-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.dd-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.dd-scroll::-webkit-scrollbar { display: none; }

.dd-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #ede3d2, #dcd0bc);
}
.dd-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--img-x, 50%) var(--img-y, 50%); /* slides a cropped photo even at zoom 1 */
  transform-origin: var(--img-x, 50%) var(--img-y, 50%);
  transform: scale(var(--img-zoom, 1));
}
.dd-photo .photo-missing { height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }

.dd-body { padding: 28px 36px 36px; }
.dd-panel--no-photo .dd-body { padding-top: 72px; }

.dd-name {
  margin: 0;
  padding-right: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 42px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.dd-name em { font-style: italic; font-weight: 500; color: var(--ink-soft); }
.dd-price {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}
.dd-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}
.dd-stats span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 11px 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.dd-desc {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}
.dd-ingredients h3,
.dd-options legend {
  margin: 28px 0 10px;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dd-ingredients p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.dd-options { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.dd-options legend { margin-top: 0; } /* a legend ignores top margin; the fieldset carries the gap */
.dd-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease), transform 160ms var(--ease-press);
}
.dd-option + .dd-option { margin-top: 8px; }
.dd-option:active { transform: scale(0.99); }
.dd-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dd-option img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #f2eadc; }
.dd-option-dot { width: 52px; height: 52px; border-radius: 12px; background: rgba(220, 201, 160, 0.3); }
.dd-option-name { color: var(--ink); font-family: var(--font-ui); font-size: 15px; font-weight: 600; line-height: 1.3; }
.dd-option-price {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.dd-check {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.dd-option.is-selected { border-color: var(--accent); background: #f1f0e1; box-shadow: inset 0 0 0 1px var(--accent); }
.dd-option.is-selected .dd-check { background: var(--accent); border-color: var(--accent); }
.dd-option.is-selected .dd-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.dd-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dd-options.needs-attention .dd-option { animation: dd-nudge 620ms var(--ease) both; }
@keyframes dd-nudge {
  30% { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(85, 89, 43, 0.14); }
}

.dd-footer {
  padding: 14px 24px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.dd-add {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5c6030, var(--accent));
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(85, 89, 43, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 160ms var(--ease-press), box-shadow 200ms var(--ease);
}
.dd-add:active { transform: scale(0.98); }
.dd-add-price { font-family: var(--font-display); font-size: 22px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.dd-in-order {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 6px 0 8px;
}
.dd-in-order > span { color: var(--accent); font-family: var(--font-ui); font-size: 15px; font-weight: 800; }
.dd-in-order .stepper button { width: 44px; height: 44px; }
.dd-in-order .stepper span { min-width: 34px; font-size: 17px; }

@media (max-width: 720px) {
  .dd-panel { height: calc(100vh - 16px); height: calc(100dvh - 16px); border-radius: 24px 24px 0 0; }
  .dd-photo { aspect-ratio: 4 / 3; }
  .dd-body { padding: 22px 20px 28px; }
  .dd-name { font-size: 32px; }
  .dd-price { font-size: 25px; }
  .dd-footer { padding-left: 16px; padding-right: 16px; }
  .dd-add { padding: 0 22px; }
}

@media (orientation: landscape) and (min-width: 721px) {
  .dd-photo { aspect-ratio: 16 / 9; }
}

/* the flying photo */
.fly-ghost {
  position: fixed;
  z-index: 200;
  margin: 0;
  object-fit: cover;
  border-radius: 18px;
  pointer-events: none;
  background: var(--accent);
  box-shadow: 0 18px 40px rgba(40, 32, 15, 0.3);
  will-change: transform, opacity;
}

/* ---------- order pill: cream, like the basket it opens into ---------- */
.basket-tab,
.basket-tab:hover {
  border: 1px solid rgba(55, 43, 20, 0.14);
  background: linear-gradient(180deg, #fffdf8, #f5eddf);
  color: var(--accent);
  box-shadow: 0 18px 44px rgba(55, 43, 20, 0.22), 0 3px 10px rgba(55, 43, 20, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.basket-tab .basket-icon { color: var(--accent); }
.basket-tab-label { color: var(--accent); }
.basket-tab-total {
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  font-variant-numeric: lining-nums tabular-nums;
}
.basket-tab .basket-count,
.basket-count {
  border: 0;
  background: var(--accent);
  color: var(--paper);
}
.basket-tab {
  transition: opacity 220ms var(--ease) 380ms, transform 160ms var(--ease-press);
}
.basket-open .basket-tab,
.basket-open .basket-tab:active {
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 140ms var(--ease) 0s;
}

@media (min-width: 721px) {
  .basket-tab {
    right: 24px;
    bottom: 24px;
    width: 340px;
    min-width: 0;
    height: 68px;
    padding: 0 26px 0 22px;
    gap: 12px;
  }
  .basket-tab .basket-icon { width: 27px; height: 27px; }
  .basket-tab-label { font-size: 17px !important; }
  .basket-count { min-width: 26px; height: 26px; line-height: 26px; font-size: 13px; }
}

/* ---------- basket grows out of the pill ---------- */
.basket,
.basket-open .basket {
  transform: none;
  background: linear-gradient(180deg, #fffdf8, #f5eddf);
  border: 1px solid rgba(55, 43, 20, 0.12);
}
.basket {
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
  transition: clip-path 520ms var(--spring), box-shadow 300ms var(--ease), opacity 0s linear 520ms;
}
.basket-open .basket {
  opacity: 1;
  pointer-events: auto;
  transition: clip-path 600ms var(--spring), box-shadow 400ms var(--ease), opacity 0s;
}
.basket > * {
  opacity: 0;
  transition: opacity 120ms var(--ease);
}
.basket-open .basket > * {
  opacity: 1;
  transition: opacity 280ms var(--ease) 200ms;
}

/* Tablet: a true full-height panel against the right edge, ~40% of the screen wide. Closed, it is
   clipped down to exactly the pill (right 24px, bottom 24px, 340 x 68), so it grows out of the pill. */
@media (min-width: 721px) {
  .basket,
  .basket-open .basket {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: clamp(440px, 40vw, 600px);
    border-width: 0 0 0 1px;
    border-radius: 32px 0 0 32px;
  }
  .basket { clip-path: inset(calc(100% - 92px) 24px 24px calc(100% - 364px) round 34px); }
  .basket-open .basket {
    clip-path: inset(0 0 0 0 round 32px 0 0 32px);
    box-shadow: -30px 0 90px rgba(55, 43, 20, 0.24), -6px 0 20px rgba(55, 43, 20, 0.08);
  }

  /* contents scaled to the bigger panel */
  .basket-head { padding: 32px 28px 22px 36px; }
  .basket h2 { font-size: 36px; }
  .basket h2 .basket-icon { width: 34px; height: 34px; }
  .basket-list { padding: 8px 36px 24px; }
  .basket-row { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px 20px; padding: 22px 0; }
  .basket-row .basket-thumb { width: 96px; border-radius: 18px; }
  .basket-row h3 { font-size: 23px; }
  .basket-row .basket-info p { font-size: 14px; }
  .basket-row .stepper button { width: 42px; height: 42px; }
  .basket-row .stepper span { min-width: 34px; font-size: 16px; }
  .basket-row > strong { font-size: 25px; }
  .basket-remove { width: 38px; height: 38px; }
  .basket-total { padding: 24px 36px 32px; gap: 10px; }
  .basket-total span { font-size: 15px; }
  .total-line--grand span { font-size: 17px; }
  .basket-total strong { font-family: var(--font-display); font-size: 34px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
  .basket-empty h3 { font-size: 34px; }
}

@media (max-width: 720px) {
  .basket-tab {
    left: 14px;
    right: 14px;
    bottom: 14px;
    height: 60px;
  }
  .basket,
  .basket-open .basket {
    top: 28px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    border-radius: 26px 26px 0 0;
  }
  .basket { clip-path: inset(calc(100% - 74px) 14px 14px 14px round 30px); }
  .basket-open .basket {
    clip-path: inset(0 0 0 0 round 26px 26px 0 0);
    box-shadow: 0 -30px 80px rgba(55, 43, 20, 0.24);
  }
}

/* ---------- basket rows ---------- */
.basket-list { padding: 4px 24px 20px; }
.basket-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb info remove"
    "thumb stepper total";
  align-items: center;
  gap: 10px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.basket-row:hover { opacity: 1; }
.basket-row .basket-thumb { grid-area: thumb; width: 72px; align-self: start; border-radius: 16px; }
.basket-row .basket-info { grid-area: info; }
.basket-row h3 { margin: 0 0 3px; font-size: 19px; line-height: 1.12; }
.basket-row .basket-info p { color: var(--muted); font-size: 13px; }
.basket-remove {
  grid-area: remove;
  justify-self: end;
  align-self: start;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.basket-remove:hover,
.basket-remove:active { background: rgba(155, 44, 44, 0.08); color: var(--danger); }
.basket-remove svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.basket-row .stepper { grid-area: stepper; justify-self: start; }
.basket-row .stepper button { width: 34px; height: 34px; }
.basket-row > strong {
  grid-area: total;
  justify-self: end;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}

.basket:has(.basket-empty) .basket-total { display: none; }

.basket-empty {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 48px 20px;
  text-align: center;
}
.basket-empty .basket-icon { width: 64px; height: 64px; color: rgba(85, 89, 43, 0.5); stroke-width: 1.2; margin-bottom: 8px; }
.basket-empty h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.basket-empty p { margin: 0; max-width: 26ch; color: var(--muted); font-size: 15px; line-height: 1.5; }
.basket-empty-back {
  margin-top: 14px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 800;
}

/* ---------- idle: "Touch to begin" ---------- */
.welcome-touch { display: none; }
.welcome.is-idle .welcome-touch {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  background: transparent;
  text-align: center;
  cursor: pointer;
}
.welcome-touch strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.01em;
  animation: idle-breathe 3.6s ease-in-out infinite;
}
.welcome-touch span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.welcome.idle-enter { animation: welcome-in 760ms var(--ease) both; }
@keyframes welcome-in { from { opacity: 0; } }
@keyframes idle-breathe { 50% { opacity: 0.5; } }

@media (prefers-reduced-motion: reduce) {
  .dd-panel,
  .dd-scrim,
  .welcome-touch strong,
  .boot img,
  .boot span { animation: none !important; }
  .basket,
  .basket > * { transition-duration: 1ms !important; transition-delay: 0s !important; }
}

/* Basket rows, final: bigger photos; name, unit price, stepper and line total stacked as one tight
   block beside the photo (the line total used to sit far away at the right edge). Placed last so the
   base row rules above cannot override the sizes. */
.basket-row {
  grid-template-columns: 88px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb info remove"
    "thumb controls controls";
  align-items: start;
  gap: 6px 16px;
}
.basket-row .basket-thumb { width: 88px; border-radius: 16px; }
.basket-row .basket-info { padding-top: 2px; }
.basket-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.basket-controls > strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
@media (min-width: 721px) {
  .basket-list { padding: 8px 32px 24px; }
  .basket-row { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 8px 20px; padding: 22px 0; }
  .basket-row .basket-thumb { width: 112px; border-radius: 18px; }
  .basket-row h3 { font-size: 23px; }
  .basket-row .basket-info p { font-size: 14px; }
  .basket-row .stepper button { width: 40px; height: 40px; }
  .basket-row .stepper span { min-width: 32px; font-size: 16px; }
  .basket-controls { gap: 20px; margin-top: 8px; }
  .basket-controls > strong { font-size: 25px; }
}

/* ======================================================================
   Dish page, full screen and never scrolling (December 2026).
   Landscape: photo fills the left half edge to edge, details on the right
   with the order button at the bottom. Portrait / phone: the details take
   exactly the height they need and the photo fills whatever is left above.
   Worst case in the data is 6 options, a 2-line name and short texts, so
   two-column options keep everything on one screen.
   ====================================================================== */
.dd-panel,
.dd-panel--no-photo {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(140px, 1fr) auto auto;
  grid-template-areas:
    "photo"
    "body"
    "footer";
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(180deg, #fffdf8, #f7f0e4);
  box-shadow: none;
  animation: dd-enter 520ms var(--spring) both;
}
.dd-panel--no-photo {
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "body"
    "footer";
}
.dish-sheet.is-closing .dd-panel { animation: dd-exit 280ms var(--ease) both; }
@keyframes dd-enter { from { opacity: 0; transform: translateY(28px); } }
@keyframes dd-exit { to { opacity: 0; transform: translateY(20px); } }

.dd-scroll { display: contents; }
.dd-photo {
  grid-area: photo;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
.dd-body {
  grid-area: body;
  min-height: 0;
  overflow: hidden;
  padding: 26px 40px 6px;
}
.dd-panel--no-photo .dd-body {
  align-self: center;
  justify-self: center;
  width: min(640px, 100%);
  padding-top: 40px;
}
.dd-footer {
  grid-area: footer;
  padding: 16px 40px max(26px, env(safe-area-inset-bottom));
  border-top: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.dd-panel--no-photo .dd-footer { justify-self: center; width: min(640px, 100%); }

.dd-close { position: fixed; top: 18px; right: 18px; }

/* never more than the data needs, so nothing ever has to scroll */
.dd-name {
  font-size: clamp(30px, 2.4vw + 1vh, 46px);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dd-price { margin-top: 10px; font-size: clamp(24px, 1.6vw + 0.6vh, 30px); }
.dd-desc {
  margin-top: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dd-ingredients h3 { margin: 20px 0 6px; }
.dd-ingredients p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* options: two columns of compact choices */
.dd-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.dd-options legend { margin: 0 0 10px; }
.dd-option,
.dd-option + .dd-option {
  margin: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb name check"
    "thumb price check";
  gap: 2px 12px;
  padding: 9px 12px 9px 9px;
  min-height: 64px;
}
.dd-option img,
.dd-option-dot { grid-area: thumb; width: 46px; height: 46px; border-radius: 11px; }
.dd-option-name {
  grid-area: name;
  align-self: end;
  font-size: 14px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dd-option-price { grid-area: price; align-self: start; font-size: 17px; }
.dd-check { grid-area: check; align-self: center; }

/* landscape iPad and wider: photo left half, details right half */
@media (orientation: landscape) and (min-width: 721px) {
  .dd-panel {
    grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "photo body"
      "photo footer";
  }
  .dd-panel--no-photo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "body"
      "footer";
  }
  .dd-body {
    align-self: center;
    padding: clamp(28px, 6vh, 64px) clamp(32px, 4vw, 64px) 8px;
  }
  .dd-footer { padding: 12px clamp(32px, 4vw, 64px) clamp(24px, 5vh, 48px); }
  .dd-option img,
  .dd-option-dot { width: 50px; height: 50px; }
}

/* phone: same stack, a little tighter */
@media (max-width: 720px) {
  .dd-panel { grid-template-rows: minmax(120px, 1fr) auto auto; border-radius: 0; height: auto; }
  .dd-body { padding: 20px 18px 4px; }
  .dd-name { font-size: 28px; }
  .dd-price { font-size: 23px; margin-top: 6px; }
  .dd-desc { font-size: 15px; margin-top: 10px; -webkit-line-clamp: 2; }
  .dd-ingredients h3 { margin-top: 14px; }
  .dd-ingredients p { font-size: 14px; }
  .dd-options { gap: 8px; margin-top: 16px; }
  .dd-option,
  .dd-option + .dd-option { min-height: 58px; padding: 7px 10px 7px 7px; gap: 1px 9px; }
  .dd-option img,
  .dd-option-dot { width: 40px; height: 40px; border-radius: 10px; }
  .dd-option-name { font-size: 13px; }
  .dd-option-price { font-size: 16px; }
  .dd-check { width: 20px; height: 20px; }
  .dd-option.is-selected .dd-check::after { left: 6px; top: 2px; }
  .dd-footer { padding: 12px 16px max(18px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .dd-panel { animation: none !important; }
}

/* Short phones (e.g. 360x640): photo may shrink further and spacing tightens, so 6 options still fit. */
@media (max-width: 720px) and (max-height: 700px) {
  .dd-panel { grid-template-rows: minmax(84px, 1fr) auto auto; }
  .dd-body { padding-top: 14px; }
  .dd-name { font-size: 25px; }
  .dd-desc { margin-top: 6px; -webkit-line-clamp: 1; }
  .dd-ingredients h3 { margin-top: 10px; }
  .dd-options { gap: 6px; margin-top: 10px; }
  .dd-option, .dd-option + .dd-option { min-height: 52px; }
  .dd-footer { padding-top: 8px; }
}

/* ---------- dish page: a clear, labelled way back ---------- */
.dd-close {
  top: 20px;
  left: 20px;
  right: auto;
  width: auto;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px 0 14px;
  border-radius: 999px;
  background: rgba(40, 32, 15, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fffdf8;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(20, 15, 5, 0.28), inset 0 0 0 1px rgba(255, 253, 248, 0.14);
  transition: transform 160ms var(--ease-press), background 200ms var(--ease);
}
.dd-close:active { transform: scale(0.96); }
.dd-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .dd-close { top: 14px; left: 14px; height: 48px; padding: 0 18px 0 12px; font-size: 15px; }
}

/* ---------- idle text: calmer size ---------- */
.welcome-touch strong { font-size: clamp(30px, 3.6vw, 44px); }
.welcome-touch span { font-size: 12.5px; letter-spacing: 0.06em; }

/* ---------- send the order ---------- */
.order-send {
  position: relative;
  margin-top: 18px;
  display: grid;
  justify-items: center;
}
.order-send-btn {
  width: 100%;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5c6030, var(--accent));
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(85, 89, 43, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 160ms var(--ease-press), background 300ms var(--ease), color 300ms var(--ease);
}
.order-send-btn:active { transform: scale(0.98); }
.order-send-btn:disabled { background: rgba(85, 89, 43, 0.14); color: var(--accent); box-shadow: none; cursor: default; }
.order-dots::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: order-dots 1.2s steps(4, end) infinite;
}
@keyframes order-dots {
  0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; }
}
.order-cancel {
  min-height: 40px;
  margin-top: 6px;
  padding: 0 16px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  animation: dd-fade 300ms var(--ease) both;
}

/* the assistant, cut out of the generated clip (transparent, no backdrop), walks in from the screen edge,
   stands on top of the order button writing in his notepad, then walks back out. */
.waiter-stage {
  position: absolute;
  right: -36px; /* the strip's right edge is the panel's (and on tablets the screen's) edge */
  bottom: calc(100% - 4px); /* his shoes rest on the button's top edge */
  height: 100px;
  pointer-events: none;
  z-index: 2;
}
.waiter-anim {
  display: block;
  height: 100%;
  width: auto;
}
@keyframes ink-write { to { stroke-dashoffset: 0; } }
/* ---------- confirmation ---------- */
.order-sent {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 253, 248, 0.95), transparent 60%),
    linear-gradient(180deg, #fcf9f2, #f4ecdf);
  animation: dd-fade 500ms var(--ease) both;
  transition: opacity 500ms var(--ease);
}
.order-sent.is-leaving { opacity: 0; pointer-events: none; }
.order-sent-inner {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  animation: sent-rise 700ms var(--spring) 120ms both;
}
@keyframes sent-rise { from { opacity: 0; transform: translateY(18px); } }
.sent-check { width: 76px; height: 76px; margin-bottom: 18px; }
.sent-check circle,
.sent-check path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.sent-check circle { animation: ink-write 700ms var(--ease) 250ms both; }
.sent-check path { stroke-width: 3; animation: ink-write 420ms var(--ease) 850ms both; }
.order-sent h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.08;
}
.sent-sub { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.sent-list {
  width: 100%;
  max-height: 34vh;
  overflow-y: auto;
  scrollbar-width: none;
  margin: 26px 0 0;
  padding: 6px 22px;
  list-style: none;
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
}
.sent-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.sent-list li:last-child { border-bottom: 0; }
.sent-qty { color: var(--muted); font-family: var(--font-ui); font-size: 14px; font-weight: 800; }
.sent-name { color: var(--ink); font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.15; }
.sent-price { color: var(--ink); font-family: var(--font-display); font-size: 20px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.sent-total {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 22px 0;
}
.sent-total span { color: var(--muted); font-family: var(--font-ui); font-size: 15px; font-weight: 800; }
.sent-total strong { color: var(--ink); font-family: var(--font-display); font-size: 30px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.sent-again { margin: 34px 0 0; color: var(--ink-soft); font-family: var(--font-display); font-size: 22px; font-style: italic; }
.sent-menu {
  margin-top: 16px;
  min-width: 260px;
  height: 60px;
  padding: 0 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5c6030, var(--accent));
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(85, 89, 43, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.sent-menu:active { transform: scale(0.98); }
@media (max-width: 720px) {
  .waiter-stage { right: -22px; height: 92px; }
  .sent-list { padding: 4px 16px; }
  .sent-name, .sent-price { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .order-sent-inner, .sent-check circle, .sent-check path { animation-duration: 1ms !important; animation-delay: 0s !important; }
}

/* ---------- order accepted: refined (overrides the first version above) ---------- */
.order-sent { padding: clamp(32px, 7vh, 72px) 28px; }
.order-sent-inner { width: min(520px, 100%); }
.sent-check { width: 58px; height: 58px; margin-bottom: 26px; }
.sent-check circle { stroke-width: 1.4; }
.sent-check path { stroke-width: 1.8; }
.sent-eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.order-sent h2 {
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.sent-sub {
  max-width: 40ch;
  margin: 16px auto 0;
  text-wrap: balance;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}
.sent-rule {
  display: block;
  width: 44px;
  height: 1px;
  margin: 34px auto 26px;
  background: var(--brand-gold);
}
/* a printed-menu list: quantity, name, price right-aligned */
.sent-list {
  max-height: 32vh;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.sent-list li {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 9px 0;
  border-bottom: 0;
}
.sent-qty {
  flex: 0 0 auto;
  min-width: 38px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sent-name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 21px;
  font-weight: 500;
}
.sent-dots {
  flex: 1 1 24px;
  min-width: 24px;
  margin: 0 12px;
  /* plain space (no dotted leader): only keeps the price right-aligned */
}
.sent-price { font-size: 21px; font-weight: 500; }
.sent-total {
  margin-top: 16px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.sent-total span {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.sent-total strong { font-size: 32px; font-weight: 500; }
.sent-again {
  margin: 48px 0 0;
  color: var(--muted);
  font-size: 20px;
}
.sent-menu {
  margin-top: 18px;
  min-width: 240px;
  height: 56px;
  padding: 0 40px;
  font-size: 15px;
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .order-sent h2 { font-size: 36px; }
  .sent-sub { font-size: 16px; }
  .sent-rule { margin: 26px auto 18px; }
  .sent-name, .sent-price { font-size: 18px; }
  .sent-total strong { font-size: 27px; }
  .sent-again { margin-top: 34px; font-size: 18px; }
}

/* ======================================================================
   Admin, December 2026: the same paper, type and calm as the guest menu.
   ====================================================================== */
.ad,
.ad-gate,
.ad-loading {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  background: var(--paper);
}
.ad svg,
.ad-gate svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:where(.ad) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.ad) button { cursor: pointer; }
.ad-loading { display: grid; place-items: center; margin: 0; color: var(--muted); }

.ad-eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 180ms var(--ease), color 180ms var(--ease), box-shadow 220ms var(--ease), transform 160ms var(--ease-press), opacity 180ms var(--ease);
}
.ad-btn:active { transform: scale(0.97); }
.ad-btn--primary {
  color: #fffdf8;
  background: var(--brand-green);
  box-shadow: 0 10px 24px rgba(85, 89, 43, 0.24);
}
.ad-btn--primary:hover { background: #474b22; }
.ad-btn--primary:disabled {
  color: var(--muted);
  background: rgba(55, 43, 20, 0.07);
  box-shadow: none;
  cursor: default;
  transform: none;
}
.ad-btn--soft {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ad-btn--soft:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-soft); }
.ad-btn--quiet { color: var(--muted); background: transparent; padding: 0 16px; }
.ad-btn--quiet:hover { color: var(--danger); background: var(--danger-soft); }
.ad-btn--quiet.is-armed { color: #fff; background: var(--danger); }
.ad-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(85, 89, 43, 0.35);
}
.ad button:focus-visible,
.ad input:focus-visible,
.ad select:focus-visible,
.ad textarea:focus-visible,
.ad summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- PIN gate ---------- */
.ad-gate {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(220, 201, 160, 0.38), transparent 42%),
    linear-gradient(180deg, var(--surface), var(--paper) 58%, #f4ecdf);
}
.ad-gate-card {
  width: min(100%, 400px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 44px 36px 36px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-panel);
  text-align: center;
}
.ad-gate-card img { width: 92px; margin-bottom: 6px; }
.ad-gate-card h1 { margin: 0; font-family: var(--font-display); font-size: 38px; font-weight: 600; line-height: 1; }
.ad-gate-card p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.ad-gate-card input {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-warm);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 600 22px/1 var(--font-ui);
  letter-spacing: 0.3em;
  text-align: center;
  color: var(--ink);
}
.ad-gate-card input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--brand-green); }
.ad-gate-card .ad-btn { width: 100%; min-height: 52px; font-size: 15.5px; }
.ad-gate-error { color: var(--danger) !important; font-weight: 600; margin: 4px 0 0 !important; }

/* ---------- browse: rail + photo grid ---------- */
.ad-browse { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.ad-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 22px;
  padding: 30px 18px 18px;
  border-right: 1px solid rgba(55, 43, 20, 0.08);
  background: rgba(245, 237, 223, 0.55);
}
.ad-rail-logo { width: 78px; margin: 0 10px; }
.ad-nav { display: grid; align-content: start; gap: 2px; overflow-y: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.ad-nav::-webkit-scrollbar { display: none; }
.ad-nav-label { margin: 18px 12px 6px; color: var(--muted-faint); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ad-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.ad-nav button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-nav button em { color: var(--muted-faint); font-size: 12px; font-style: normal; font-variant-numeric: tabular-nums; }
.ad-nav button:hover { background: rgba(255, 253, 248, 0.7); color: var(--ink); }
.ad-nav button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
.ad-nav button.active em { color: var(--brand-green); }

.ad-live {
  display: grid;
  gap: 3px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.ad-live p { margin: 0; }
.ad-live-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px !important; color: var(--ink); font-size: 14px; font-weight: 700; }
.ad-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #6f9a4a; box-shadow: 0 0 0 4px rgba(111, 154, 74, 0.18); }
.ad-live.is-off .ad-live-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.ad-live-note { margin-top: 8px !important; color: var(--muted-faint); line-height: 1.45; }
.ad-live .ad-link { justify-self: start; margin-top: 8px; }

.ad-main { min-width: 0; padding: 0 clamp(24px, 3.4vw, 56px) 80px; }
.ad-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 22px;
  margin-bottom: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(55, 43, 20, 0.07);
}
.ad-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 50px); font-weight: 600; line-height: 1; }
.ad-count { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.ad-tools { display: flex; align-items: center; gap: 12px; }
.ad-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  width: clamp(200px, 22vw, 300px);
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  transition: box-shadow 180ms var(--ease);
}
.ad-search:focus-within { box-shadow: inset 0 0 0 2px var(--brand-green); color: var(--ink); }
.ad-search input { flex: 1; min-width: 0; border: 0; outline: 0 !important; background: none; font-size: 14.5px; }
.ad-search input::-webkit-search-cancel-button { cursor: pointer; }

.ad-section + .ad-section { margin-top: 46px; }
.ad-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}
.ad-section h2 em { color: var(--muted-faint); font: 600 13px var(--font-ui); font-style: normal; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 28px 22px; }

.ad-card { position: relative; }
.ad-card-open {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.ad-card-photo.dish-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
  border-radius: 16px;
  background: var(--surface-deep);
  box-shadow: 0 6px 18px rgba(55, 43, 20, 0.08);
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.ad-card-open:hover .ad-card-photo { box-shadow: 0 16px 36px rgba(55, 43, 20, 0.16); transform: translateY(-2px); }
.ad-card-name { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ad-card-price { color: var(--ink-soft); font-family: var(--font-display); font-size: 18px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.ad-card-price small { color: var(--muted-faint); font: 600 12px var(--font-ui); }
.ad-card.is-hidden .ad-card-photo img { filter: grayscale(0.85); opacity: 0.45; }
.ad-card.is-hidden .ad-card-name,
.ad-card.is-hidden .ad-card-price { color: var(--muted-faint); }
.ad-nophoto { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted-faint); font-size: 12px; font-weight: 600; }
.ad-nophoto svg { width: 26px; height: 26px; }
.ad-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(55, 43, 20, 0.78);
  color: #fffdf8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* visibility switch: on a card it sits on the photo's top-right corner */
.ad-switch,
.ad-toggle i {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(55, 43, 20, 0.22);
  transition: background 200ms var(--ease);
}
.ad-switch::after,
.ad-toggle i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(55, 43, 20, 0.25);
  transition: transform 220ms var(--ease);
}
.ad-switch[aria-checked="true"],
.ad-toggle input:checked + i { background: var(--brand-green); }
.ad-switch[aria-checked="true"]::after,
.ad-toggle input:checked + i::after { transform: translateX(18px); }
.ad-card .ad-switch { position: absolute; top: 10px; right: 10px; box-shadow: 0 2px 10px rgba(55, 43, 20, 0.18); }
.ad-card .ad-switch[aria-checked="false"] { background: rgba(255, 253, 248, 0.82); }
.ad-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ad-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ad-toggle input:focus-visible + i { outline: 3px solid var(--focus); outline-offset: 2px; }
.ad-empty { margin: 60px 0; color: var(--muted); text-align: center; }

/* ---------- editor ---------- */
.ad-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(20px, 3vw, 44px);
  background: rgba(251, 247, 238, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(55, 43, 20, 0.08);
}
.ad-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 16px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 700;
}
.ad-back:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.ad-bar-title { min-width: 0; }
.ad-bar-title .ad-eyebrow { margin-bottom: 2px; }
.ad-bar h1 { margin: 0; overflow: hidden; font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.ad-bar-actions { display: flex; align-items: center; gap: 10px; }
.ad-bar-actions .ad-toggle { margin-right: 10px; }
.ad-save-dot { width: 0; height: 7px; border-radius: 50%; background: var(--brand-gold); transition: width 200ms var(--ease), margin 200ms var(--ease); margin-right: -8px; }
.ad-bar.is-dirty .ad-save-dot { width: 7px; margin-right: 0; }
.ad-save.is-busy { opacity: 0.6; }

.ad-edit-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 760px);
  justify-content: center;
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  padding: 34px clamp(20px, 3vw, 44px) 120px;
}
.ad-preview { position: sticky; top: 112px; }
.ad-preview-card.dish { display: block; margin: 0; padding: 14px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); cursor: default; }
.ad-preview-card.dish:active { transform: none; }
.ad-photo-tools { display: grid; gap: 14px; margin-top: 18px; padding: 18px; border-radius: 20px; background: rgba(255, 253, 248, 0.6); box-shadow: inset 0 0 0 1px var(--line); }
.ad-upload { position: relative; overflow: hidden; cursor: pointer; }
.ad-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ad-range { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ad-range input { width: 100%; accent-color: var(--brand-green); }

.ad-form { display: grid; gap: 22px; min-width: 0; }
.ad-panel { padding: 26px 28px 28px; border-radius: 24px; background: rgba(255, 253, 248, 0.72); box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.09), 0 8px 24px rgba(55, 43, 20, 0.04); }
.ad-panel h2 { margin: 0 0 20px; font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.ad-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin-bottom: 20px; }
.ad-panel-head h2 { margin: 0; }
.ad-hint { margin: 0; color: var(--muted); font-size: 13px; }
.ad-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 18px; }
.ad-field { display: grid; gap: 7px; min-width: 0; }
.ad-field--wide { grid-column: 1 / -1; }
.ad-field > span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.ad-field input,
.ad-field select,
.ad-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 0;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  line-height: 1.45;
  transition: box-shadow 160ms var(--ease);
}
.ad-field textarea { resize: vertical; field-sizing: content; min-height: 80px; max-height: 420px; }
.ad-field input:hover,
.ad-field select:hover,
.ad-field textarea:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.ad-field input:focus,
.ad-field select:focus,
.ad-field textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--brand-green); }
.ad-field input::placeholder,
.ad-field textarea::placeholder { color: var(--muted-faint); }

.ad-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(55, 43, 20, 0.06); }
.ad-tabs button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13px; font-weight: 700; transition: background 160ms var(--ease), color 160ms var(--ease); }
.ad-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(55, 43, 20, 0.1); }
.ad-pane { display: none; }
.ad-pane.active { display: grid; }

/* options (variants) */
.ad-options { display: grid; gap: 10px; margin-bottom: 14px; }
.ad-option { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ad-option[open] { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-soft); }
.ad-option summary { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; list-style: none; cursor: pointer; }
.ad-option summary::-webkit-details-marker { display: none; }
.ad-option-thumb { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 12px; background: var(--surface-deep); color: var(--muted-faint); flex: none; }
.ad-option-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-option-name { flex: 1; min-width: 0; font-weight: 700; }
.ad-option-price { font-family: var(--font-display); font-size: 18px; font-weight: 600; white-space: nowrap; }
.ad-option-chevron { display: grid; color: var(--muted); transition: transform 200ms var(--ease); }
.ad-option[open] .ad-option-chevron { transform: rotate(90deg); }
.ad-chip--muted { position: static; background: rgba(55, 43, 20, 0.08); color: var(--muted); }
.ad-option-body { display: grid; gap: 18px; padding: 8px 20px 20px; }
.ad-option-media { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ad-option-photo.dish-photo { position: relative; width: 160px; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--surface-deep); }
.ad-option-body .ad-tabbed { display: grid; gap: 14px; justify-items: start; }
.ad-option-body .ad-tabbed > .ad-pane { width: 100%; }
.ad-toggle--field { align-self: end; min-height: 46px; }
.ad-option-body > .ad-btn--quiet { justify-self: start; }
.ad-add-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  background: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.ad-add-option:hover { border-color: var(--brand-green); background: rgba(85, 89, 43, 0.05); color: var(--ink); }
.ad-advanced { padding-top: 18px; padding-bottom: 18px; }
.ad-advanced summary { color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.ad-advanced[open] summary { margin-bottom: 16px; }

/* ---------- toast ---------- */
.ad-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  max-width: min(92vw, 560px);
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-panel);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 260ms var(--ease), transform 320ms var(--ease);
}
.ad-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.ad-toast.is-ok::before { content: "✓"; margin-right: 10px; color: var(--brand-gold); }
.ad-toast.is-error { background: var(--danger); border-radius: 18px; }

/* ---------- smaller screens (admin on a tablet or phone) ---------- */
@media (max-width: 1100px) {
  .ad-edit-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
  .ad-preview { position: static; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 0 20px; align-items: start; }
  .ad-preview .ad-eyebrow { grid-column: 1 / -1; }
  .ad-photo-tools { margin-top: 0; }
}
@media (max-width: 860px) {
  .ad-browse { grid-template-columns: minmax(0, 1fr); }
  .ad-rail { position: static; height: auto; grid-template-rows: auto; padding: 18px 16px 0; border: 0; background: none; }
  .ad-rail-logo, .ad-nav-label { display: none; }
  .ad-nav { display: flex; overflow-x: auto; gap: 6px; }
  .ad-nav button { flex: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .ad-live { display: none; }
  .ad-head { flex-wrap: wrap; align-items: flex-end; padding-top: 18px; }
  .ad-tools { width: 100%; }
  .ad-search { flex: 1; width: auto; }
  .ad-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 14px; }
  .ad-bar { grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; }
  .ad-bar-actions { grid-column: 1 / -1; justify-content: space-between; }
  .ad-preview { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ad-photo-tools { margin-top: 16px; }
  .ad-panel { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ad *, .ad-toast { transition: none !important; }
}

/* ---------- tablet handover: a small, quiet "Очистить заказ" under the total ----------
   Same soft brown as the receipt lines, no box and no underline, so it reads as part of the bill
   rather than a button. Red would be the one coloured thing in the basket and pull every eye to it. */
.clear-order {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  animation: dd-fade 240ms var(--ease) both;
}
.clear-order-btn {
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted-faint);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.clear-order-btn:active { color: var(--muted); }
.clear-order-yes,
.clear-order-no {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.clear-order-yes { background: var(--ink); color: var(--paper); }
.clear-order-no { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); }

/* ---------- admin: Prices button beside the logo, and the price table ---------- */
.ad-rail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 0 10px; }
.ad-rail-top .ad-rail-logo { margin: 0; }
.ad-rail-prices {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: box-shadow 160ms var(--ease), background 160ms var(--ease);
}
.ad-rail-prices:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-soft); }

.ad-prices .ad-bar-actions .ad-search { width: clamp(180px, 20vw, 260px); }
.ad-price-hint { max-width: 820px; margin: 26px auto 0; padding: 0 20px; color: var(--muted); font-size: 13.5px; }
.ad-price-groups { max-width: 820px; margin: 0 auto; padding: 10px 20px 120px; }
.ad-price-group { margin-top: 30px; }
.ad-price-group h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.ad-price-group h2 em { color: var(--muted-faint); font: 600 13px var(--font-ui); font-style: normal; }
.ad-price-table { overflow: hidden; border-radius: 20px; background: rgba(255, 253, 248, 0.72); box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.09); }
.ad-price-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 60px; padding: 8px 14px; }
.ad-price-row + .ad-price-row { border-top: 1px solid rgba(55, 43, 20, 0.07); }
.ad-price-row--option { grid-template-columns: minmax(0, 1fr) auto; min-height: 52px; padding-left: 72px; }
.ad-price-row--option + .ad-price-row--option { border-top-style: dashed; }
.ad-price-thumb { width: 44px; height: 44px; overflow: hidden; border-radius: 10px; background: var(--surface-deep); }
.ad-price-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-price-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; font-size: 15px; font-weight: 600; }
.ad-price-row--option .ad-price-name { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.ad-price-name .ad-chip { position: static; font-style: normal; }
.ad-price-range { color: var(--muted-faint); font-size: 12.5px; font-weight: 600; }
.ad-price-row.is-hidden .ad-price-name,
.ad-price-row.is-hidden .ad-price-thumb { opacity: 0.5; }
.ad-price-input { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ad-price-input input {
  width: 108px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: 600 17px/1 var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  text-align: right;
  transition: box-shadow 160ms var(--ease), background 160ms var(--ease);
}
.ad-price-input input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--brand-green); }
.ad-price-input.is-changed input { background: rgba(220, 201, 160, 0.38); box-shadow: inset 0 0 0 2px var(--brand-gold); }
.ad-price-input input::-webkit-inner-spin-button { opacity: 0.4; }
@media (max-width: 860px) {
  .ad-rail-top { padding: 0; }
  .ad-rail-top .ad-rail-logo { display: none; }
  .ad-prices .ad-bar-actions .ad-search { flex: 1; width: auto; }
  .ad-price-row--option { padding-left: 30px; }
}

/* ---------- admin: rail tools, long list, drag, Categories / Undo / Texts pages ---------- */
.ad-rail { grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 16px; }
.ad-nav-label { display: flex; align-items: center; justify-content: space-between; }
.ad-nav-edit {
  min-height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: var(--brand-green) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em;
  background: rgba(85, 89, 43, 0.08) !important;
}
.ad-nav button.is-mode { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ad-section { scroll-margin-top: 150px; }

.ad-card[draggable="true"] { cursor: grab; }
.ad-card.is-dragging { opacity: 0.35; transform: scale(0.97); transition: opacity 120ms, transform 120ms; }
.ad-card.is-dragging .ad-card-photo { box-shadow: none; }

.ad-page-body { max-width: 900px; margin: 0 auto; padding: 0 20px 120px; }
.ad-page-body > .ad-price-hint { padding: 0; margin-bottom: 18px; }

.ad-cat-list { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.ad-cat-row {
  display: grid;
  grid-template-columns: 28px repeat(3, minmax(0, 1fr)) 72px auto;
  align-items: end;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.09);
}
.ad-cat-row.is-dragging { opacity: 0.4; }
.ad-drag-handle { align-self: center; color: var(--muted-faint); font-size: 18px; letter-spacing: -3px; cursor: grab; user-select: none; text-align: center; }
.ad-cat-count { align-self: center; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ad-cat-row .ad-btn--quiet { min-height: 46px; }
.ad-cat-row .ad-btn--quiet:disabled { opacity: 0.35; cursor: default; background: none; color: var(--muted); }

.ad-history { margin-bottom: 14px; padding: 20px 22px; border-radius: 20px; background: rgba(255, 253, 248, 0.8); box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.09); }
.ad-history-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ad-history-head strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.ad-history-head span { color: var(--muted); font-size: 13px; }
.ad-history ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.ad-history .ad-hint { margin-top: 10px; }
.ad-btn--soft.is-armed { background: var(--ink); color: var(--paper); box-shadow: none; }

.ad-texts .ad-bar-actions { flex-wrap: wrap; justify-content: flex-end; }
.ad-text-groups { max-width: 1100px; }
.ad-text-row { margin-bottom: 10px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 253, 248, 0.8); box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.09); }
.ad-text-row.is-hidden { opacity: 0.6; }
.ad-text-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px 90px 80px; align-items: center; gap: 12px; }
.ad-text-top strong { font-size: 15px; }
.ad-text-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-top: 12px; }
.ad-text-row label { display: grid; gap: 5px; }
.ad-text-row label > span { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; }
.ad-text-in {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: 500 14px/1.45 var(--font-ui);
  resize: vertical;
  field-sizing: content;
}
.ad-text-in:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--brand-green); }
.ad-text-in.is-changed { background: rgba(220, 201, 160, 0.38); box-shadow: inset 0 0 0 2px var(--brand-gold); }
@media (max-width: 860px) {
  .ad-cat-row { grid-template-columns: 24px 1fr; }
  .ad-cat-row .ad-field, .ad-cat-count, .ad-cat-row .ad-btn--quiet { grid-column: 2; }
  .ad-text-top { grid-template-columns: 44px 1fr; }
  .ad-text-top label { grid-column: span 1; }
  .ad-text-body { grid-template-columns: 1fr; }
}

/* ---------- admin: most / least viewed ---------- */
.ad-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
  margin: 0 0 34px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.09);
}
.ad-stats h3 { margin: 0 0 8px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ad-stats ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.ad-stats li { font-size: 14px; }
.ad-stats li span { margin-left: 8px; color: var(--muted-faint); font-size: 12.5px; }
.ad-stats-dish { padding: 0; border: 0; background: none; font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ad-stats > .ad-hint { grid-column: 1 / -1; margin-top: 8px; font-size: 12px; }
@media (max-width: 860px) { .ad-stats { grid-template-columns: 1fr; } }

/* ---------- admin Texts page: option rows sit indented under their dish ---------- */
.ad-text-row--option { margin-left: 56px; background: rgba(245, 237, 223, 0.55); }
.ad-text-row--option strong em { margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(55, 43, 20, 0.08); color: var(--muted); font-size: 11px; font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; }
@media (max-width: 860px) { .ad-text-row--option { margin-left: 16px; } }

/* ---------- Welcome screen ---------- */
.welcome {
  /* Sampled from the clip's own background so the video has no visible edge on the page. */
  --welcome-bg: #f0e0d1;
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  padding: clamp(22px, 5vh, 56px) var(--space-6) clamp(22px, 4.5vh, 48px);
  background: var(--welcome-bg);
  overflow: hidden;
  transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}

.welcome.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-logo {
  width: clamp(150px, 17vw, 240px);
  height: auto;
}

/* The clip is 16:9 and fills the stage by height; on a narrow (portrait) screen its empty sides are cropped. */
.welcome-stage {
  position: relative;
  width: calc(100% + 2 * var(--space-6)); /* full-bleed, so the clip's feathered edges finish fading before anything crops them */
  min-height: 0;
  overflow: hidden;
}

.welcome-clip,
.welcome-still {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Fills the stage by height; on a narrow (portrait) screen it is capped so the three never touch the edges. */
  height: min(100%, 79vw);
  width: auto;
  aspect-ratio: 16 / 9;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 700ms var(--ease);
  pointer-events: none;
  /* Feathered edges: any tiny colour difference between the video and the page melts away. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}

.welcome.is-playing .welcome-clip,
.welcome.show-still .welcome-still {
  opacity: 1;
}
/* skipped: the paused clip must go at once, or its half-walked-in figures show through the still's soft edges */
.welcome.show-still .welcome-clip {
  opacity: 0;
  transition-duration: 0s;
}

.welcome-actions {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
}

.welcome-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 60px;
  padding: 0 var(--space-7);
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 26px rgba(85, 89, 43, 0.24);
}

.welcome-cta svg {
  width: 22px;
  height: 22px;
}

.welcome-cta:hover {
  background: #45491f;
}

.welcome-langs {
  grid-area: auto; /* the portrait header rule assigns .langs to a named area that does not exist here */
}

.welcome-langs button.active {
  background: rgba(255, 253, 248, 0.6);
  box-shadow: 0 0 0 1px var(--line-strong);
}

/* Logo, button and flags fade in one after another once the clip's bows are over. */
.welcome-logo,
.welcome-cta,
.welcome-langs {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.welcome-logo {
  transform: translateY(-10px);
}

.welcome.is-ready .welcome-logo,
.welcome.is-ready .welcome-cta,
.welcome.is-ready .welcome-langs {
  opacity: 1;
  transform: none;
}

.welcome.is-ready .welcome-cta { transition-delay: 260ms, 260ms, 0s, 0s; }
.welcome.is-ready .welcome-langs { transition-delay: 480ms, 480ms, 0s, 0s; }
.welcome:not(.is-ready) .welcome-actions { pointer-events: none; }
.welcome.is-ready .welcome-cta:active { transform: scale(0.96); transition-delay: 0s; transition-duration: 160ms; }

@media (prefers-reduced-motion: reduce) {
  .welcome-logo,
  .welcome-cta,
  .welcome-langs,
  .welcome-clip,
  .welcome-still {
    transition-duration: 1ms;
    transition-delay: 0s;
    transform: none;
  }
  .welcome-clip,
  .welcome-still { transform: translate(-50%, -50%); }
}

/* ---------- ordering from a table's QR ---------- */
/* the confirmed table, engraved next to the logo */
.table-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin-right: auto;
  padding: 6px 14px 7px;
  border: 1px solid rgba(220, 201, 160, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf8, #f7efdf);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums;
  box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(55, 43, 20, 0.06);
  animation: table-badge-in 700ms var(--ease) both;
}
.table-badge small {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
@keyframes table-badge-in { from { opacity: 0; transform: translateY(-4px); } }

/* live order status on the "sent" screen */
.sent-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px auto 0;
  padding: 10px 20px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: border-color 400ms var(--ease), background 400ms var(--ease);
}
.sent-status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-gold);
}
.sent-status[data-status="new"] .sent-status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-gold);
  animation: status-ring 1.8s var(--ease) infinite;
}
@keyframes status-ring { from { opacity: 1; transform: scale(0.4); } to { opacity: 0; transform: scale(1.5); } }
.sent-status[data-status="accepted"],
.sent-status[data-status="served"] { border-color: rgba(85, 89, 43, 0.4); background: #f1f0e1; }
.sent-status[data-status="accepted"] .sent-status-dot,
.sent-status[data-status="served"] .sent-status-dot { background: var(--accent); }
.sent-status[data-status="declined"] .sent-status-dot { background: var(--muted); }
.sent-status > span:last-child { animation: status-text-in 450ms var(--ease) both; }
/* "the waiter will confirm" is only true while the order waits */
.sent-status:not([data-status="new"]) + .sent-sub { display: none; }
@keyframes status-text-in { from { opacity: 0; transform: translateY(3px); } }

/* a menu to look at (public website without a table code): a quiet pointer instead of "Add" */
.dd-qr-hint {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 720px) {
  .table-badge { padding: 5px 11px 6px; font-size: 19px; gap: 5px; }
  .table-badge small { font-size: 8.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .table-badge, .sent-status > span:last-child, .sent-status-dot::after { animation: none !important; }
}

/* ---------- admin: orders and tables ---------- */

.ad-order-group { margin-bottom: 34px; }
.ad-order-group h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}
.ad-order-group h2 em { color: var(--muted); font-family: var(--font-ui); font-size: 13px; font-style: normal; font-weight: 700; }
.ad-order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ad-order {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.09), var(--shadow-soft);
}
.ad-order.is-arriving { animation: order-in 500ms var(--ease) both; }
.ad-order.is-new { box-shadow: inset 0 0 0 1.5px var(--brand-gold), 0 16px 40px rgba(55, 43, 20, 0.12); }
.ad-order.is-served, .ad-order.is-declined { opacity: 0.62; box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.08); }
@keyframes order-in { from { opacity: 0; transform: translateY(8px); } }
.ad-order header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ad-order-table {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}
.ad-order-table small { color: var(--muted); font-family: var(--font-ui); font-size: 10px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.ad-order-meta { display: grid; justify-items: end; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.ad-order-meta em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 600; }
.ad-order ul { margin: 0; padding: 12px 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-order li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 5px 0; font-size: 15px; line-height: 1.35; }
.ad-order li b { color: var(--accent); font-weight: 800; }
.ad-order li em { color: var(--muted); font-style: normal; }
.ad-order li i { color: var(--muted); font-style: normal; font-size: 13px; white-space: nowrap; }
.ad-order footer { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ad-order footer strong { color: var(--ink); font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.ad-order-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ad-order-actions .ad-btn--primary { min-width: 140px; }
.ad-order-done { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { .ad-order { animation: none; } }


/* ---------- admin, calm pass: fewer things on screen, each one clear ---------- */
.ad .qr { width: 100%; height: 100%; display: block; stroke: none; }
.ad-bar-title h1 { margin: 0; }

/* side panel: one quiet list of places, with the orders count as the only thing that ever calls out */
.ad-menu { display: grid; gap: 1px; margin: 2px -4px 0; padding: 0 0 14px; border-bottom: 1px solid rgba(55, 43, 20, 0.08); }
.ad-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background 160ms var(--ease), color 160ms var(--ease), box-shadow 200ms var(--ease);
}
.ad-menu-item span { flex: 1; }
.ad .ad-menu-item svg { width: 17px; height: 17px; color: var(--muted); transition: color 160ms var(--ease); }
.ad-menu-item:hover { background: rgba(255, 253, 248, 0.8); color: var(--ink); }
.ad-menu-item:hover svg { color: var(--ink); }
.ad-menu-item em {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--brand-green);
  color: var(--paper);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ad-menu-item em[hidden] { display: none; }
.ad-menu-orders:has(em:not([hidden])) { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(85, 89, 43, 0.3), 0 6px 18px rgba(85, 89, 43, 0.12); }
.ad-menu-orders:has(em:not([hidden])) svg { color: var(--brand-green); transform-origin: 50% 12%; animation: bell-ring 2.6s var(--ease) infinite; }
@keyframes bell-ring { 0%, 68%, 100% { transform: rotate(0); } 74% { transform: rotate(14deg); } 81% { transform: rotate(-11deg); } 88% { transform: rotate(6deg); } 94% { transform: rotate(-2deg); } }

/* live box: one line while all is well */
.ad-live { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.1); color: var(--muted); font-size: 13px; }
.ad-live-head { display: flex; align-items: center; gap: 10px; margin: 0 !important; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.ad-live-dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #6f9a4a; box-shadow: none; }
.ad-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: live-ping 2.6s var(--ease) infinite; }
@keyframes live-ping { 0% { transform: scale(1); opacity: 0.55; } 75%, 100% { transform: scale(2.8); opacity: 0; } }
.ad-live.has-issue .ad-live-dot { background: #c08a2e; }
.ad-live.is-off .ad-live-dot { background: var(--danger); box-shadow: none; }
.ad-live-issue { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(192, 138, 46, 0.1); color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
.ad-live-issue b { color: #85590f; font-weight: 800; }
.ad-live-issue button { justify-self: start; margin-top: 3px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 12.5px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ad-live-hint { margin: 0; font-size: 12.5px; }
.ad-live-sync { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border: 0; border-radius: 10px; background: rgba(55, 43, 20, 0.05); color: var(--ink); font-size: 13px; font-weight: 700; transition: background 160ms var(--ease); }
.ad-live-sync:hover { background: rgba(55, 43, 20, 0.09); }
.ad .ad-live-sync svg { width: 15px; height: 15px; }
.ad-live-sync.is-busy { pointer-events: none; color: var(--muted); }
.ad-live-sync.is-busy svg { animation: ad-spin 0.9s linear infinite; }
@keyframes ad-spin { to { transform: rotate(360deg); } }

/* orders: only the groups that have something in them */
.ad-orders { padding-top: 30px; }
.ad-order-group { margin-bottom: 30px; }
.ad-order-group h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-family: var(--font-ui); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.ad-order-group h2 em { color: var(--muted-faint); font-size: 12px; }
.ad-order { padding: 18px 20px 16px; border-radius: 18px; }
.ad-order header { align-items: baseline; margin-bottom: 12px; }
.ad-order h3 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; }
.ad-order header span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ad-order ul { display: grid; gap: 6px; margin: 0; padding: 0 0 14px; border: 0; }
.ad-order li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 0; font-size: 15px; }
.ad-order li b { min-width: 26px; color: var(--brand-green); font-weight: 800; }
.ad-order li em { color: var(--muted); font-size: 13.5px; font-style: normal; }
.ad-order footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 0; border-top: 1px solid rgba(55, 43, 20, 0.08); }
.ad-order footer strong { color: var(--ink); font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.ad-order footer div { display: flex; align-items: center; gap: 6px; }
.ad-order footer .ad-btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.ad .ad-order footer .ad-btn svg { width: 16px; height: 16px; }
.ad-order.is-new { box-shadow: inset 0 0 0 1.5px rgba(85, 89, 43, 0.42), 0 14px 36px rgba(55, 43, 20, 0.1); }
.ad-order-decline { padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 13.5px; font-weight: 700; transition: background 160ms var(--ease), color 160ms var(--ease); }
.ad-order-decline:hover { background: var(--danger-soft); color: var(--danger); }
.ad-order-decline.is-armed { background: var(--danger); color: #fff; }
.ad-orders-offline { margin: 0 0 22px; padding: 12px 16px; border-radius: 12px; background: rgba(192, 138, 46, 0.1); color: #85590f; font-size: 13.5px; font-weight: 600; }
.ad-orders-more { display: block; margin: 4px auto 24px; padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.ad-orders-more:hover { background: rgba(55, 43, 20, 0.05); color: var(--ink); }

/* calm empty states */
.ad-orders-empty, .ad-tables-empty { display: grid; justify-items: center; gap: 6px; padding: 96px 20px 56px; color: var(--muted); text-align: center; }
.ad .ad-orders-empty > svg, .ad .ad-tables-empty > svg { box-sizing: content-box; width: 24px; height: 24px; margin-bottom: 12px; padding: 16px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.1); color: var(--brand-green); }
.ad-orders-empty p, .ad-tables-empty p { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.ad-orders-empty span, .ad-tables-empty span { max-width: 34ch; font-size: 14px; line-height: 1.5; }

/* tables: the QR cards themselves */
.ad-tables { max-width: 1120px; padding-top: 30px; }
.ad-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.ad-tcard { position: relative; display: grid; justify-items: center; gap: 14px; padding: 16px 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.08); transition: box-shadow 240ms var(--ease), transform 240ms var(--ease); }
.ad-tcard:hover { box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.12), var(--shadow-soft); transform: translateY(-2px); }
.ad-tcard-qr { position: relative; width: 100%; aspect-ratio: 1; padding: 6px; border-radius: 12px; background: #fff; }
.ad-tcard-name { display: flex; align-items: baseline; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; }
.ad-tcard-name small { color: var(--muted); font-family: var(--font-ui); font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.ad-tcard-tools { position: absolute; top: 50%; left: 50%; display: flex; gap: 2px; padding: 4px; border-radius: 13px; background: rgba(255, 253, 248, 0.94); box-shadow: 0 10px 28px rgba(55, 43, 20, 0.18), inset 0 0 0 1px rgba(55, 43, 20, 0.08); opacity: 0; transform: translate(-50%, -40%); transition: opacity 180ms var(--ease), transform 220ms var(--ease); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ad-tcard:hover .ad-tcard-tools, .ad-tcard:focus-within .ad-tcard-tools { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: none) { .ad-tcard-tools { opacity: 1; transform: translate(-50%, -50%); } }
.ad-icon-btn { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); transition: background 140ms var(--ease), color 140ms var(--ease); }
.ad .ad-icon-btn svg { width: 17px; height: 17px; }
.ad-icon-btn:hover { background: rgba(55, 43, 20, 0.07); color: var(--ink); }
.ad-icon-btn.is-danger:hover { background: var(--danger-soft); color: var(--danger); }
.ad-icon-btn.is-done { color: #4f7a33; }
.ad-icon-btn::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%; padding: 5px 9px; border-radius: 7px; background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 3px); transition: opacity 140ms var(--ease), transform 140ms var(--ease); }
.ad-icon-btn:hover::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 350ms; }
.ad-tcard-confirm { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 18px; border-radius: 20px; background: var(--surface); text-align: center; animation: ad-fade 180ms var(--ease) both; }
.ad-tcard-confirm p { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.15; }
.ad-tcard-confirm span { color: var(--muted); font-size: 13px; }
.ad-tcard-confirm div { display: flex; gap: 8px; margin-top: 12px; }
.ad-tcard-confirm .ad-btn { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.ad-tcard.is-asking { transform: none; }
@keyframes ad-fade { from { opacity: 0; } }
.ad-btn--danger { background: var(--danger); color: #fff; }
.ad-btn--danger:hover { background: #842323; }
.ad-btn--soft:disabled { cursor: not-allowed; opacity: 0.45; box-shadow: inset 0 0 0 1px var(--line); }

/* "add tables": one field with its button inside */
.ad-add { display: flex; align-items: center; height: 42px; padding: 3px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 160ms var(--ease); }
.ad-add:focus-within { box-shadow: inset 0 0 0 1px var(--brand-green), 0 0 0 4px var(--focus); }
.ad .ad-add input { width: 118px; height: 100%; min-height: 0; padding: 0 6px 0 14px; border: 0; background: transparent; box-shadow: none; color: var(--ink); font-size: 14px; outline: 0; }
.ad-add button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--brand-green); color: var(--paper); font-size: 14px; font-weight: 700; transition: background 160ms var(--ease); }
.ad-add button:hover { background: #474b22; }
.ad .ad-add svg { width: 16px; height: 16px; }
.ad-add.is-big { height: 50px; margin-top: 22px; }
.ad-add.is-big input { width: 150px; font-size: 15px; }
.ad-add.is-big button { width: auto; height: 44px; padding: 0 18px 0 14px; }
.ad-bar-actions > .ad-btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* printed table cards: four to an A4 page */
#print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body > *:not(#print-sheet) { display: none !important; }
  body { background: #fff; }
  #print-sheet { display: grid; grid-template-columns: repeat(2, 88mm); justify-content: center; gap: 6mm; }
  .print-card { box-sizing: border-box; width: 88mm; height: 128mm; display: flex; flex-direction: column; align-items: center; padding: 10mm 8mm 8mm; border: 0.3mm dashed #cfc5b3; color: #372b14; font-family: var(--font-ui); text-align: center; break-inside: avoid; }
  .print-card img { width: 24mm; }
  .print-table { display: flex; flex-direction: column; align-items: center; gap: 1.5mm; margin: 6mm 0 5mm; font-family: var(--font-display); font-size: 32pt; font-weight: 600; line-height: 1; }
  .print-table small { color: #7a6e58; font-family: var(--font-ui); font-size: 7.5pt; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; }
  .print-card .qr { width: 50mm; height: 50mm; }
  .print-hint { max-width: 62mm; margin: 5mm 0 0; font-size: 8.5pt; line-height: 1.35; }
  .print-hint.is-en { margin-top: 1.5mm; color: #7a6e58; font-size: 7.5pt; }
}

/* ---------- dish editor, calm pass ---------- */
.ad-edit .ad-preview { display: grid; gap: 12px; align-content: start; }
.ad-photo-actions { display: flex; gap: 8px; }
.ad-photo-actions .ad-btn { flex: 1; min-height: 42px; padding: 0 16px; font-size: 14px; }
.ad .ad-photo-actions svg { width: 17px; height: 17px; }
.ad-photo-actions [aria-expanded="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.ad-framing { display: none; gap: 12px; padding: 16px 16px 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.09); }
.ad-preview.is-framing .ad-framing { display: grid; animation: ad-fade 180ms var(--ease) both; }
.ad-framing .ad-range { grid-template-columns: 110px 1fr; font-size: 12.5px; }
.ad-framing-reset { justify-self: end; padding: 4px 6px; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ad-framing-reset:hover { color: var(--ink); }

/* the form is one sheet: sections divided by a hairline, not a stack of boxes */
.ad-sheet { gap: 0; padding: 8px 30px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(55, 43, 20, 0.08), 0 10px 30px rgba(55, 43, 20, 0.05); }
.ad-sec { padding: 24px 0; border-bottom: 1px solid rgba(55, 43, 20, 0.08); }
.ad-sec-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--ink); font-family: var(--font-ui); font-size: 14px; font-weight: 800; }
.ad-sec-title em { color: var(--muted-faint); font-size: 13px; font-style: normal; font-weight: 700; }
.ad-sheet .ad-add-option { min-height: 48px; border-radius: 14px; font-size: 13.5px; }
.ad .ad-add-option svg { width: 16px; height: 16px; }

/* rarely needed things wait behind one line */
.ad-more { border-bottom: 1px solid rgba(55, 43, 20, 0.08); }
.ad-more summary { display: flex; align-items: center; gap: 12px; padding: 20px 0; list-style: none; cursor: pointer; }
.ad-more summary::-webkit-details-marker { display: none; }
.ad-more summary span { color: var(--ink); font-size: 14px; font-weight: 800; }
.ad-more summary em { flex: 1; overflow: hidden; color: var(--muted); font-size: 13px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ad .ad-more summary svg { width: 16px; height: 16px; color: var(--muted); transition: transform 200ms var(--ease); }
.ad-more[open] summary svg { transform: rotate(90deg); }
.ad-more summary:hover span { color: var(--brand-green); }
.ad-more > .ad-fields, .ad-more > .ad-tabbed { padding: 0 0 24px; }
.ad-more .ad-tabs { margin-bottom: 16px; }

.ad-danger { padding: 22px 0 18px; }
.ad-danger-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 13.5px; font-weight: 700; transition: background 160ms var(--ease), color 160ms var(--ease); }
.ad .ad-danger-btn svg { width: 16px; height: 16px; }
.ad-danger-btn:hover { background: var(--danger-soft); color: var(--danger); }
.ad-danger-btn.is-armed { background: var(--danger); color: #fff; }
.ad-option-body .ad-danger-btn { justify-self: start; }

.ad-calm-body { padding-top: 30px; }
