:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-deep: #e9e2d5;
  --surface: #fffdfa;
  --surface-muted: #faf7f1;
  --ink: #211d18;
  --ink-soft: #4e483f;
  --muted: #81796d;
  --muted-light: #aaa194;
  --line: #e7dfd2;
  --line-strong: #d7ccbc;
  --brand: #d84a2b;
  --brand-dark: #b7381f;
  --brand-soft: #fff1eb;
  --amber: #e8a53a;
  --amber-soft: #fff7e7;
  --green: #35765a;
  --green-soft: #eef6f0;
  --charcoal: #232b27;
  --danger: #b43e33;
  --danger-bg: #fff0ee;
  --shadow-sm: 0 2px 10px rgba(50, 40, 28, 0.05);
  --shadow-md: 0 14px 40px rgba(50, 40, 28, 0.11);
  --shadow-lg: 0 24px 70px rgba(39, 31, 23, 0.17);
  --radius: 8px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Songti SC", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body.overlay-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

svg {
  display: block;
  flex: 0 0 auto;
}

::selection {
  background: #f4c0ae;
  color: var(--ink);
}

::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #cfc5b7;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(216, 205, 190, 0.9);
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  align-items: center;
  display: flex;
  gap: 32px;
  height: 72px;
  margin: 0 auto;
  max-width: 1320px;
  padding: 0 28px;
}

.brand {
  align-items: center;
  background: transparent;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 11px;
  padding: 0;
  text-align: left;
}

.brand__seal {
  align-items: center;
  background: var(--brand);
  border-radius: 6px;
  color: #fffaf4;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  line-height: 1;
  transform: rotate(-2deg);
  width: 42px;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__copy strong {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand__copy small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.main-nav {
  align-items: center;
  align-self: stretch;
  display: flex;
  gap: 5px;
}

.main-nav__item {
  align-items: center;
  align-self: stretch;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  padding: 0 16px;
  position: relative;
  white-space: nowrap;
}

.main-nav__item::after {
  background: var(--brand);
  bottom: -1px;
  content: "";
  height: 2px;
  left: 15px;
  opacity: 0;
  position: absolute;
  right: 15px;
  transform: scaleX(0.4);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.main-nav__item svg {
  height: 17px;
  width: 17px;
}

.main-nav__item:hover,
.main-nav__item.is-active {
  color: var(--ink);
}

.main-nav__item.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.topbar__meta {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.open-pill {
  align-items: center;
  background: var(--green-soft);
  border: 1px solid #d5e8dc;
  border-radius: 999px;
  color: #296548;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  padding: 7px 11px;
  white-space: nowrap;
}

.open-pill > span {
  background: #52a47b;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(82, 164, 123, 0.13);
  height: 6px;
  width: 6px;
}

.open-pill[data-mode="checking"] {
  background: var(--surface-muted);
  border-color: var(--line);
  color: var(--muted);
}

.open-pill[data-mode="checking"] > span {
  background: #a99f90;
  box-shadow: 0 0 0 3px rgba(169, 159, 144, 0.13);
}

.open-pill[data-mode="offline"] {
  background: var(--amber-soft);
  border-color: #f2e3c6;
  color: #7f5b1c;
}

.open-pill[data-mode="offline"] > span {
  background: #c48c35;
  box-shadow: 0 0 0 3px rgba(196, 140, 53, 0.13);
}

.merchant-shortcut {
  align-items: center;
  background: var(--charcoal);
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  transition: transform 150ms ease;
  width: 36px;
}

.merchant-shortcut:hover {
  transform: translateY(-1px);
}

.merchant-shortcut svg {
  height: 17px;
  width: 17px;
}

.nav-badge {
  align-items: center;
  background: var(--brand);
  border: 2px solid var(--surface);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 5px;
}

.main-nav__item .nav-badge {
  margin-left: -2px;
}

.main-content {
  margin: 0 auto;
  max-width: 1320px;
  min-height: calc(100vh - 72px);
  padding: 24px 28px 56px;
}

.mobile-nav,
.mobile-cart {
  display: none;
}

.customer-page,
.page-frame,
.merchant-page {
  animation: page-in 280ms ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.store-hero {
  background-color: #332a20;
  background-image: url("./assets/hero-noodles.jpg");
  background-position: center 58%;
  background-size: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  color: white;
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.store-hero::before {
  background: linear-gradient(
    90deg,
    rgba(23, 19, 15, 0.9) 0%,
    rgba(23, 19, 15, 0.7) 43%,
    rgba(23, 19, 15, 0.15) 76%,
    rgba(23, 19, 15, 0.07) 100%
  );
  content: "";
  inset: 0;
  position: absolute;
}

.store-hero::after {
  background: linear-gradient(0deg, rgba(18, 16, 13, 0.45), transparent 40%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-inner {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  min-height: 340px;
  padding: 42px 48px 40px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 590px;
}

.hero-eyebrow {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 11px;
  letter-spacing: 0.16em;
  margin-bottom: 17px;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  background: var(--amber);
  content: "";
  height: 2px;
  width: 26px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

.hero-copy h1 em {
  color: #ffd782;
  font-style: normal;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.8;
  margin: 17px 0 0;
  max-width: 520px;
}

.hero-stamp {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  height: 104px;
  justify-content: center;
  margin: 0 4px 2px 24px;
  position: relative;
  transform: rotate(4deg);
  width: 104px;
}

.hero-stamp::before {
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  content: "";
  inset: 5px;
  position: absolute;
}

.hero-stamp strong {
  font-family: var(--font-display);
  font-size: 29px;
  letter-spacing: 0.15em;
  line-height: 1;
  padding-left: 0.15em;
}

.hero-stamp span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
  margin-top: 8px;
}

.store-facts {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  margin: -20px 20px 22px;
  min-height: 72px;
  padding: 0 8px;
  position: relative;
  z-index: 2;
}

.store-fact {
  align-items: center;
  display: flex;
  gap: 11px;
  min-height: 44px;
  padding: 0 24px;
  position: relative;
}

.store-fact + .store-fact::before {
  background: var(--line);
  bottom: 7px;
  content: "";
  left: 0;
  position: absolute;
  top: 7px;
  width: 1px;
}

.store-fact__icon {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 7px;
  color: var(--brand);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.store-fact__icon svg {
  height: 16px;
  width: 16px;
}

.store-fact__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.store-fact__copy strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.store-fact__copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.store-fact--rating .store-fact__copy strong {
  color: var(--brand);
}

.mode-switch {
  align-items: center;
  background: #f0ebe2;
  border-radius: 7px;
  display: inline-flex;
  gap: 3px;
  margin-left: auto;
  padding: 3px;
}

.mode-switch__button {
  align-items: center;
  background: transparent;
  border-radius: 5px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  transition:
    background 150ms ease,
    color 150ms ease;
  white-space: nowrap;
}

.mode-switch__button svg {
  height: 14px;
  width: 14px;
}

.mode-switch__button.is-active {
  background: var(--surface);
  box-shadow: 0 1px 5px rgba(37, 30, 23, 0.1);
  color: var(--ink);
}

.order-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 190px minmax(0, 1fr) 350px;
}

.category-rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 96px;
}

.category-rail__head {
  border-bottom: 1px solid var(--line);
  padding: 18px 18px 15px;
}

.category-rail__head span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 5px;
}

.category-rail__head strong {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.category-list {
  padding: 7px;
}

.category-button {
  align-items: center;
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 11px;
  text-align: left;
  transition:
    background 150ms ease,
    color 150ms ease;
  width: 100%;
}

.category-button span {
  align-items: center;
  display: flex;
  gap: 9px;
}

.category-button svg {
  height: 15px;
  width: 15px;
}

.category-button small {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 600;
}

.category-button:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.category-button.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.category-button.is-active small {
  color: var(--brand);
}

.menu-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.menu-board__head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 24px 19px;
}

.menu-board__head h2 {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: 0.03em;
  margin: 0;
}

.menu-board__head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 5px 0 0;
}

.menu-legend {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 5px;
}

.menu-legend span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  white-space: nowrap;
}

.menu-legend i {
  background: var(--brand);
  border-radius: 50%;
  display: inline-block;
  height: 5px;
  width: 5px;
}

.menu-legend span:nth-child(2) i {
  background: var(--amber);
}

.menu-legend span:nth-child(3) i {
  background: #8d867b;
}

.menu-section {
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  scroll-margin-top: 100px;
}

.menu-section:last-child {
  border-bottom: 0;
}

.menu-section__title {
  align-items: center;
  display: flex;
  gap: 13px;
  padding: 22px 0 10px;
}

.menu-section__title h3 {
  font-size: 15px;
  margin: 0;
}

.menu-section__title span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.dish-card {
  align-items: stretch;
  border-top: 1px solid #f2ece3;
  display: grid;
  gap: 18px;
  grid-template-columns: 118px minmax(0, 1fr) 120px;
  padding: 20px 0;
  position: relative;
}

.menu-section__title + .dish-card {
  border-top: 0;
}

.dish-card__image-button {
  align-self: start;
  background: #e9e2d7;
  border-radius: 7px;
  height: 118px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 118px;
}

.dish-card__image-button img {
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
  width: 100%;
}

.dish-card__image-button:hover img {
  transform: scale(1.035);
}

.dish-card__badge {
  background: var(--brand);
  border-radius: 4px 0 5px 0;
  color: white;
  font-size: 9px;
  font-weight: 700;
  left: 0;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  position: absolute;
  top: 0;
}

.dish-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 0;
}

.dish-card__topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dish-card__topline h4 {
  font-size: 16px;
  letter-spacing: 0.01em;
  margin: 0;
}

.dish-tag {
  background: var(--amber-soft);
  border: 1px solid #f0ddb7;
  border-radius: 4px;
  color: #986513;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  white-space: nowrap;
}

.dish-card__description {
  color: var(--muted);
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.65;
  margin: 8px 0 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dish-card__meta {
  align-items: center;
  color: var(--muted-light);
  display: flex;
  font-size: 10px;
  gap: 10px;
  margin-top: auto;
}

.dish-card__meta span + span::before {
  color: #c9c0b4;
  content: "·";
  margin-right: 10px;
}

.dish-card__commerce {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 5px 0;
}

.dish-price {
  align-items: flex-start;
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.dish-price strong {
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.dish-price strong::before {
  content: "¥";
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  margin-right: 2px;
  vertical-align: 5px;
}

.dish-price del {
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.1;
  text-decoration-thickness: 1px;
}

.dish-add-button {
  align-items: center;
  background: var(--brand);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0 11px;
  transition:
    background 150ms ease,
    transform 150ms ease;
  white-space: nowrap;
}

.dish-add-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.dish-add-button svg {
  height: 14px;
  width: 14px;
}

.dish-card.is-sold-out .dish-card__image-button img {
  filter: grayscale(0.8);
  opacity: 0.6;
}

.dish-card.is-sold-out .dish-card__content,
.dish-card.is-sold-out .dish-card__commerce {
  opacity: 0.6;
}

.sold-out-mark {
  align-items: center;
  background: rgba(35, 32, 28, 0.78);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 10px;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  left: 31px;
  position: absolute;
  top: 31px;
  width: 56px;
}

.dish-add-button.is-disabled {
  background: #a8a097;
  cursor: not-allowed;
}

.cart-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}

.cart-panel__head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 19px 20px 16px;
}

.cart-panel__title {
  align-items: center;
  display: flex;
  gap: 9px;
}

.cart-panel__title h2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  margin: 0;
}

.cart-panel__title span {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
}

.text-button {
  align-items: center;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  gap: 4px;
  padding: 5px 0;
}

.text-button:hover {
  color: var(--brand);
}

.cart-lines {
  max-height: min(420px, calc(100vh - 360px));
  overflow: auto;
  padding: 8px 16px;
}

.cart-line {
  align-items: flex-start;
  border-bottom: 1px dashed var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  padding: 13px 4px;
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line__image {
  border-radius: 5px;
  height: 46px;
  object-fit: cover;
  width: 46px;
}

.cart-line__copy {
  min-width: 0;
}

.cart-line__name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.cart-line__options {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  margin: 3px 0 0;
}

.cart-line__bottom {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 8px;
}

.cart-line__price {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.stepper {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.stepper button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  padding: 0;
  transition:
    border-color 150ms ease,
    color 150ms ease;
  width: 22px;
}

.stepper button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.stepper button svg {
  height: 12px;
  width: 12px;
}

.stepper span {
  font-size: 11px;
  font-weight: 700;
  min-width: 14px;
  text-align: center;
}

.cart-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 228px;
  padding: 30px;
  text-align: center;
}

.empty-icon {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted-light);
  display: inline-flex;
  height: 58px;
  justify-content: center;
  margin-bottom: 13px;
  width: 58px;
}

.empty-icon svg {
  height: 23px;
  width: 23px;
}

.cart-empty strong {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 5px;
}

.cart-empty span {
  font-size: 11px;
  line-height: 1.6;
}

.cart-panel__summary {
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  padding: 15px 20px 18px;
}

.cart-summary-line {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-summary-line strong {
  color: var(--ink-soft);
  font-size: 11px;
}

.cart-total {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin: 12px 0 15px;
}

.cart-total > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.cart-total__price {
  color: var(--brand-dark);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cart-total__price::before {
  content: "¥";
  font-size: 12px;
  letter-spacing: 0;
  margin-right: 3px;
  vertical-align: 8px;
}

.primary-button {
  align-items: center;
  background: var(--brand);
  border-radius: 7px;
  color: white;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  height: 44px;
  justify-content: center;
  padding: 0 18px;
  transition:
    background 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
}

.primary-button:hover:not(:disabled) {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.45;
}

.primary-button svg {
  height: 16px;
  width: 16px;
}

.primary-button--block {
  width: 100%;
}

.secondary-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  height: 40px;
  justify-content: center;
  padding: 0 16px;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background 150ms ease;
}

.secondary-button:hover {
  background: var(--surface-muted);
  border-color: var(--ink-soft);
  color: var(--ink);
}

.secondary-button svg {
  height: 15px;
  width: 15px;
}

.danger-button {
  align-items: center;
  background: var(--danger-bg);
  border: 1px solid #f0d0cb;
  border-radius: 7px;
  color: var(--danger);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 5px;
  height: 34px;
  justify-content: center;
  padding: 0 11px;
}

.danger-button:hover {
  background: #ffe6e2;
}

.danger-button svg {
  height: 13px;
  width: 13px;
}

.page-heading {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 4px 0 24px;
}

.page-heading__eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0;
}

.page-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 0;
}

.page-heading__actions {
  display: flex;
  gap: 10px;
}

.orders-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
  max-width: 760px;
}

.orders-summary__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

.orders-summary__item span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-bottom: 8px;
}

.orders-summary__item strong {
  font-size: 23px;
  line-height: 1;
}

.orders-summary__item strong small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  margin-left: 3px;
}

.customer-order-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.customer-order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.customer-order-card__head {
  align-items: center;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 15px;
  justify-content: space-between;
  padding: 13px 20px;
}

.order-number {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.order-number strong {
  font-size: 12px;
}

.order-number span {
  color: var(--muted);
  font-size: 10px;
}

.status-badge {
  align-items: center;
  background: #f1eee8;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 5px;
  padding: 5px 9px;
  white-space: nowrap;
}

.status-badge::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 5px;
  width: 5px;
}

.status-badge[data-status="new"] {
  background: var(--amber-soft);
  color: #9a6813;
}

.status-badge[data-status="preparing"] {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.status-badge[data-status="ready"] {
  background: var(--green-soft);
  color: var(--green);
}

.status-badge[data-status="completed"] {
  background: #f0efec;
  color: #65605a;
}

.status-badge[data-status="cancelled"] {
  background: var(--danger-bg);
  color: var(--danger);
}

.customer-order-card__body {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 200px;
  padding: 20px;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item {
  align-items: center;
  display: grid;
  gap: 11px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.order-item img {
  border-radius: 5px;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.order-item__copy strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.order-item__copy span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  line-height: 1.5;
  margin-top: 2px;
}

.order-item__price {
  font-size: 11px;
  font-weight: 700;
}

.order-detail-side {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.order-detail-line {
  color: var(--muted);
  display: flex;
  font-size: 10px;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.order-detail-line strong {
  color: var(--ink-soft);
  font-weight: 600;
  text-align: right;
}

.order-total-line {
  align-items: flex-end;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
}

.order-total-line span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.order-total-line strong {
  color: var(--brand-dark);
  font-size: 19px;
}

.order-progress {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  padding: 18px 20px 20px;
}

.order-progress__step {
  color: var(--muted-light);
  font-size: 9px;
  padding-top: 13px;
  position: relative;
  text-align: center;
}

.order-progress__step::before {
  background: var(--line);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 5px;
}

.order-progress__step:first-child::before {
  left: 50%;
}

.order-progress__step:last-child::before {
  right: 50%;
}

.order-progress__step::after {
  background: #d7d0c4;
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d7d0c4;
  content: "";
  height: 7px;
  left: 50%;
  position: absolute;
  top: 1px;
  transform: translateX(-50%);
  width: 7px;
}

.order-progress__step.is-done {
  color: var(--green);
  font-weight: 700;
}

.order-progress__step.is-done::before {
  background: #83af96;
}

.order-progress__step.is-done::after {
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.order-note {
  align-items: flex-start;
  background: var(--amber-soft);
  border: 1px solid #f2e3c6;
  border-radius: 5px;
  color: #7f5b1c;
  display: flex;
  font-size: 10px;
  gap: 7px;
  line-height: 1.55;
  margin-top: 13px;
  padding: 8px 10px;
}

.order-note svg {
  height: 13px;
  margin-top: 1px;
  width: 13px;
}

.empty-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 36px;
  text-align: center;
}

.empty-state .empty-icon {
  height: 68px;
  margin-bottom: 16px;
  width: 68px;
}

.empty-state h3 {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 7px;
}

.empty-state p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 320px;
}

.merchant-login-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 150px);
}

.merchant-login {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  max-width: 430px;
  padding: 38px;
  text-align: center;
  width: 100%;
}

.merchant-login__mark {
  align-items: center;
  background: var(--charcoal);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 20px;
  width: 48px;
}

.merchant-login__mark svg {
  height: 22px;
  width: 22px;
}

.merchant-login__eyebrow {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.merchant-login h1 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.03em;
  margin: 0;
}

.merchant-login > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 10px auto 26px;
  max-width: 320px;
}

.merchant-login__form {
  text-align: left;
}

.merchant-login__form > label {
  color: var(--ink-soft);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.merchant-login__input {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: flex;
  height: 46px;
  margin-bottom: 7px;
  padding: 0 13px;
}

.merchant-login__input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.merchant-login__input svg {
  color: var(--muted);
  height: 16px;
  margin-right: 9px;
  width: 16px;
}

.merchant-login__input input {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1;
  font-size: 13px;
  height: 100%;
  min-width: 0;
  outline: 0;
}

.merchant-login__form .form-error {
  margin-bottom: 10px;
}

.merchant-login__form .primary-button {
  margin-top: 5px;
}

.merchant-login__back {
  align-items: center;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  gap: 6px;
  margin-top: 20px;
}

.merchant-login__back:hover {
  color: var(--ink);
}

.merchant-login__back svg {
  height: 14px;
  width: 14px;
}

.merchant-banner {
  align-items: flex-end;
  background: var(--charcoal);
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  min-height: 164px;
  overflow: hidden;
  padding: 28px 34px;
  position: relative;
}

.merchant-banner::before {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  height: 260px;
  position: absolute;
  right: -80px;
  top: -155px;
  width: 260px;
}

.merchant-banner::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  height: 150px;
  position: absolute;
  right: -15px;
  top: -95px;
  width: 150px;
}

.merchant-banner__copy {
  position: relative;
  z-index: 1;
}

.merchant-banner__eyebrow {
  align-items: center;
  color: #d7d8d2;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.16em;
  margin-bottom: 13px;
}

.merchant-banner__eyebrow span {
  background: #6cc18c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(108, 193, 140, 0.12);
  height: 6px;
  width: 6px;
}

.merchant-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(31px, 4vw, 44px);
  letter-spacing: 0.05em;
  line-height: 1.12;
  margin: 0;
}

.merchant-banner p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.7;
  margin: 8px 0 0;
}

.merchant-banner__aside {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.merchant-banner__clock {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  text-align: right;
}

.merchant-banner__clock strong {
  color: rgba(255, 255, 255, 0.92);
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.035em;
  margin-top: 4px;
}

.merchant-banner__actions {
  display: flex;
  gap: 8px;
}

.merchant-banner__button {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  height: 35px;
  padding: 0 12px;
}

.merchant-banner__button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.merchant-banner__button svg {
  height: 14px;
  width: 14px;
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0;
}

.stat-card {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 100px;
  padding: 17px 18px;
}

.stat-card__label {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-bottom: 10px;
}

.stat-card__value {
  align-items: baseline;
  display: flex;
  gap: 4px;
}

.stat-card__value strong {
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-card__value span {
  color: var(--muted);
  font-size: 9px;
}

.stat-card__icon {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.stat-card__icon svg {
  height: 15px;
  width: 15px;
}

.stat-card--accent {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.stat-card--accent .stat-card__label,
.stat-card--accent .stat-card__value span {
  color: rgba(255, 255, 255, 0.7);
}

.stat-card--accent .stat-card__icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.merchant-workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 480px;
  overflow: hidden;
}

.merchant-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 66px;
  padding: 10px 18px;
}

.merchant-tabs {
  align-items: center;
  display: flex;
  gap: 4px;
}

.merchant-tab {
  align-items: center;
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
}

.merchant-tab svg {
  height: 15px;
  width: 15px;
}

.merchant-tab:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.merchant-tab.is-active {
  background: var(--charcoal);
  color: white;
}

.merchant-toolbar__right {
  align-items: center;
  display: flex;
  gap: 8px;
}

.segmented-control {
  align-items: center;
  background: #f1ede6;
  border-radius: 6px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
}

.segmented-control button {
  background: transparent;
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  height: 28px;
  padding: 0 10px;
  white-space: nowrap;
}

.segmented-control button.is-active {
  background: var(--surface);
  box-shadow: 0 1px 5px rgba(37, 30, 23, 0.1);
  color: var(--ink);
}

.merchant-toolbar .primary-button {
  font-size: 11px;
  height: 36px;
}

.order-board {
  background: #f7f4ee;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 590px;
}

.order-column {
  min-width: 0;
  padding: 18px;
}

.order-column + .order-column {
  border-left: 1px solid var(--line);
}

.order-column__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  padding: 0 2px;
}

.order-column__title {
  align-items: center;
  display: flex;
  gap: 8px;
}

.order-column__title span {
  background: #dfd9ce;
  border-radius: 999px;
  height: 6px;
  width: 6px;
}

.order-column:nth-child(1) .order-column__title span {
  background: var(--amber);
}

.order-column:nth-child(2) .order-column__title span {
  background: var(--brand);
}

.order-column:nth-child(3) .order-column__title span {
  background: var(--green);
}

.order-column__title h3 {
  font-size: 12px;
  margin: 0;
}

.order-column__count {
  background: #e7e1d7;
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
}

.order-column__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.merchant-order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.merchant-order-card--new {
  border-top: 3px solid var(--amber);
}

.merchant-order-card__head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 13px 14px 10px;
}

.merchant-order-card__head strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.merchant-order-card__head span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  margin-top: 4px;
}

.order-mode-chip {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  gap: 4px;
  padding: 4px 6px;
  white-space: nowrap;
}

.order-mode-chip svg {
  height: 11px;
  width: 11px;
}

.merchant-order-items {
  border-bottom: 1px dashed var(--line);
  border-top: 1px dashed var(--line);
  padding: 9px 14px;
}

.merchant-order-item {
  align-items: flex-start;
  color: var(--ink-soft);
  display: grid;
  font-size: 10px;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  line-height: 1.5;
  padding: 3px 0;
}

.merchant-order-item span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-order-item small {
  color: var(--muted);
  display: block;
  font-size: 8px;
  line-height: 1.45;
}

.merchant-order-note {
  background: #fff8e9;
  color: #7b5b22;
  font-size: 9px;
  line-height: 1.6;
  padding: 7px 14px;
}

.merchant-order-card__foot {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 14px 12px;
}

.merchant-order-card__total {
  font-size: 10px;
  white-space: nowrap;
}

.merchant-order-card__total strong {
  color: var(--brand-dark);
  font-size: 17px;
  margin-left: 3px;
}

.merchant-order-actions {
  align-items: center;
  display: flex;
  gap: 5px;
}

.merchant-order-action {
  align-items: center;
  background: var(--charcoal);
  border-radius: 5px;
  color: white;
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  white-space: nowrap;
}

.merchant-order-action:hover {
  background: #101713;
}

.merchant-order-action svg {
  height: 11px;
  width: 11px;
}

.merchant-order-action--ghost {
  background: transparent;
  color: var(--muted);
  padding: 0 3px;
}

.merchant-order-action--ghost:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.column-empty {
  border: 1px dashed #d7cfc2;
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  padding: 35px 14px;
  text-align: center;
}

.history-panel {
  padding: 0;
}

.history-table {
  border-collapse: collapse;
  width: 100%;
}

.history-table th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 11px 16px;
  text-align: left;
  white-space: nowrap;
}

.history-table td {
  border-top: 1px solid var(--line);
  font-size: 10px;
  padding: 13px 16px;
  vertical-align: middle;
}

.history-table td strong {
  font-size: 11px;
}

.history-table small {
  color: var(--muted);
  display: block;
  line-height: 1.5;
  margin-top: 3px;
}

.menu-manager {
  padding: 0;
}

.menu-manager__toolbar {
  align-items: center;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 18px;
}

.menu-search {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  height: 34px;
  max-width: 270px;
  padding: 0 10px;
  width: 100%;
}

.menu-search:focus-within {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(78, 72, 63, 0.07);
}

.menu-search svg {
  color: var(--muted-light);
  height: 14px;
  width: 14px;
}

.menu-search input {
  background: transparent;
  border: 0;
  font-size: 11px;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.menu-search input::placeholder {
  color: var(--muted-light);
}

.menu-category-filter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
  height: 34px;
  outline: 0;
  padding: 0 28px 0 10px;
}

.menu-manager__meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  gap: 5px;
}

.menu-manager__meta strong {
  color: var(--ink-soft);
}

.menu-table-wrap {
  overflow: auto;
}

.menu-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.menu-table th {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.menu-table th:last-child,
.menu-table td:last-child {
  text-align: right;
}

.menu-table td {
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  padding: 12px 16px;
  vertical-align: middle;
}

.menu-table tr:last-child td {
  border-bottom: 0;
}

.menu-table tr.is-unavailable {
  background: #fbf9f5;
}

.menu-table__dish {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 250px;
}

.menu-table__dish img {
  border-radius: 6px;
  height: 54px;
  object-fit: cover;
  width: 54px;
}

.menu-table__dish-copy {
  min-width: 0;
}

.menu-table__dish-copy strong {
  display: block;
  font-size: 11px;
  line-height: 1.4;
}

.menu-table__dish-copy span {
  color: var(--muted);
  display: block;
  font-size: 8px;
  line-height: 1.5;
  margin-top: 3px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-table__price {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.menu-table__category {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  display: inline-flex;
  padding: 4px 7px;
  white-space: nowrap;
}

.table-sales {
  color: var(--muted);
  white-space: nowrap;
}

.switch {
  align-items: center;
  background: transparent;
  display: inline-flex;
  gap: 7px;
  padding: 0;
}

.switch__track {
  background: #d7d1c8;
  border-radius: 999px;
  display: inline-block;
  height: 19px;
  position: relative;
  transition: background 160ms ease;
  width: 34px;
}

.switch__track::after {
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(30, 24, 18, 0.2);
  content: "";
  height: 15px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 160ms ease;
  width: 15px;
}

.switch.is-on .switch__track {
  background: var(--green);
}

.switch.is-on .switch__track::after {
  transform: translateX(15px);
}

.switch__label {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.switch.is-on .switch__label {
  color: var(--green);
}

.table-actions {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.icon-button:hover {
  background: var(--surface-muted);
  border-color: var(--line);
  color: var(--ink);
}

.icon-button--danger:hover {
  background: var(--danger-bg);
  border-color: #f0d0cb;
  color: var(--danger);
}

.icon-button svg {
  height: 14px;
  width: 14px;
}

.overlay-backdrop,
.drawer-backdrop {
  align-items: center;
  animation: fade-in 180ms ease both;
  background: rgba(24, 21, 17, 0.56);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 200;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  animation: modal-in 220ms ease both;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 48px);
  max-width: 100%;
  overflow: auto;
  position: relative;
  width: 540px;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal--dish {
  width: 760px;
}

.modal--checkout {
  width: 640px;
}

.modal--success {
  width: 470px;
}

.modal--editor {
  width: 760px;
}

.modal__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(32, 27, 22, 0.1);
  border-radius: 50%;
  color: var(--ink-soft);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  z-index: 3;
}

.modal__close:hover {
  background: white;
  color: var(--ink);
}

.modal__close svg {
  height: 16px;
  width: 16px;
}

.modal__head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 21px 24px 17px;
}

.modal__head h2 {
  font-size: 19px;
  margin: 0;
}

.modal__head p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  margin: 5px 0 0;
}

.modal__body {
  padding: 22px 24px;
}

.modal__foot {
  align-items: center;
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 24px;
}

.modal__foot--split {
  justify-content: space-between;
}

.dish-detail {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 520px;
}

.dish-detail__media {
  background: #e7dfd2;
  min-height: 520px;
  position: relative;
}

.dish-detail__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dish-detail__media-badge {
  background: var(--brand);
  border-radius: 4px;
  color: white;
  font-size: 9px;
  font-weight: 700;
  left: 16px;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  position: absolute;
  top: 16px;
}

.dish-detail__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 26px 0;
}

.dish-detail__content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.03em;
  margin: 0;
  padding-right: 24px;
}

.dish-detail__description {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
  margin: 9px 0 13px;
}

.dish-detail__meta {
  color: var(--muted);
  display: flex;
  font-size: 9px;
  gap: 12px;
  margin-bottom: 17px;
}

.option-group {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.option-group__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.option-group__head strong {
  font-size: 11px;
}

.option-group__head span {
  color: var(--muted);
  font-size: 8px;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.option-choice {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 10px;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.option-choice:hover {
  border-color: var(--line-strong);
}

.option-choice.is-selected {
  background: var(--brand-soft);
  border-color: #eab6a8;
  color: var(--brand-dark);
  font-weight: 700;
}

.option-choice small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

.option-choice.is-selected small {
  color: var(--brand);
}

.modal-price-row {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: auto;
  padding: 18px 0;
}

.modal-price {
  align-items: baseline;
  display: flex;
}

.modal-price::before {
  content: "¥";
  font-size: 12px;
  font-weight: 700;
  margin-right: 2px;
}

.modal-price strong {
  color: var(--brand-dark);
  font-size: 28px;
  line-height: 1;
}

.modal-price span {
  color: var(--muted);
  font-size: 9px;
  margin-left: 6px;
}

.quantity-stepper {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.quantity-stepper button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.quantity-stepper button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.quantity-stepper button svg {
  height: 13px;
  width: 13px;
}

.quantity-stepper span {
  font-size: 14px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.dish-detail__footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  margin: auto -26px 0;
  padding: 15px 26px;
}

.form-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field > label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.form-field > label span {
  color: var(--brand);
  margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 12px;
  min-height: 42px;
  outline: 0;
  padding: 9px 11px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
  width: 100%;
}

.form-field textarea {
  line-height: 1.6;
  min-height: 82px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(78, 72, 63, 0.07);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-light);
}

.field-hint {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.form-error {
  background: var(--danger-bg);
  border: 1px solid #f2d1cc;
  border-radius: 5px;
  color: var(--danger);
  display: none;
  font-size: 10px;
  grid-column: 1 / -1;
  line-height: 1.5;
  padding: 8px 10px;
}

.form-error.is-visible {
  display: block;
}

.checkout-modes {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
}

.checkout-mode {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  gap: 11px;
  padding: 12px;
  position: relative;
}

.checkout-mode input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.checkout-mode__icon {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  height: 35px;
  justify-content: center;
  width: 35px;
}

.checkout-mode__icon svg {
  height: 16px;
  width: 16px;
}

.checkout-mode__copy strong {
  display: block;
  font-size: 11px;
}

.checkout-mode__copy span {
  color: var(--muted);
  display: block;
  font-size: 8px;
  margin-top: 3px;
}

.checkout-mode::after {
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  content: "";
  height: 14px;
  margin-left: auto;
  width: 14px;
}

.checkout-mode.is-active {
  background: var(--brand-soft);
  border-color: #eab6a8;
}

.checkout-mode.is-active .checkout-mode__icon {
  background: white;
  border-color: #f0c8bd;
  color: var(--brand);
}

.checkout-mode.is-active::after {
  background: var(--brand);
  border: 4px solid #ffd9cf;
  box-shadow: 0 0 0 1px var(--brand);
}

.checkout-summary {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 17px;
  padding: 13px 14px;
}

.checkout-summary__line {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  padding: 4px 0;
}

.checkout-summary__line strong {
  color: var(--ink-soft);
}

.checkout-summary__total {
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  margin-top: 7px;
  padding-top: 10px;
}

.checkout-summary__total strong {
  color: var(--brand-dark);
  font-size: 19px;
}

.success-view {
  overflow: hidden;
  padding: 34px 30px 28px;
  text-align: center;
}

.success-view__mark {
  align-items: center;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--green-soft);
  color: white;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  margin: 5px 0 20px;
  width: 58px;
}

.success-view__mark svg {
  height: 27px;
  stroke-width: 2.2;
  width: 27px;
}

.success-view h2 {
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: 0.04em;
  margin: 0;
}

.success-view > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 7px 0 20px;
}

.success-ticket {
  background: var(--surface-muted);
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  padding: 16px;
  text-align: left;
}

.success-ticket__head {
  align-items: center;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 11px;
}

.success-ticket__head span {
  color: var(--muted);
  font-size: 9px;
}

.success-ticket__head strong {
  font-size: 14px;
}

.success-ticket__grid {
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr 1fr;
  padding-top: 12px;
}

.success-ticket__grid div {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.success-ticket__grid strong {
  color: var(--ink-soft);
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.success-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 19px;
}

.success-actions .primary-button,
.success-actions .secondary-button {
  width: 100%;
}

.image-uploader {
  align-items: center;
  background: var(--surface-muted);
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  display: flex;
  gap: 14px;
  min-height: 92px;
  padding: 12px;
}

.image-uploader img {
  border-radius: 6px;
  height: 66px;
  object-fit: cover;
  width: 82px;
}

.image-uploader__copy {
  min-width: 0;
}

.image-uploader__copy strong {
  display: block;
  font-size: 11px;
}

.image-uploader__copy span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  line-height: 1.5;
  margin: 4px 0 8px;
}

.upload-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  gap: 5px;
  padding: 6px 9px;
}

.upload-button svg {
  height: 12px;
  width: 12px;
}

.toggle-field {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px;
}

.toggle-field__copy strong {
  display: block;
  font-size: 11px;
}

.toggle-field__copy span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  line-height: 1.5;
  margin-top: 3px;
}

.drawer-backdrop {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}

.drawer {
  animation: drawer-in 240ms ease both;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100%;
  width: 430px;
}

@keyframes drawer-in {
  from {
    transform: translateX(30px);
  }
  to {
    transform: translateX(0);
  }
}

.drawer__head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.drawer__head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
}

.drawer__close {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.drawer__close svg {
  height: 15px;
  width: 15px;
}

.drawer__body {
  flex: 1;
  overflow: auto;
  padding: 12px 20px;
}

.drawer .cart-line {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  padding: 14px 4px;
}

.drawer .cart-line__image {
  height: 56px;
  width: 56px;
}

.drawer__foot {
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  padding: 16px 20px 20px;
}

.toast-root {
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  left: 50%;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  z-index: 500;
}

.toast {
  align-items: center;
  animation: toast-in 200ms ease both;
  background: var(--charcoal);
  border-radius: 7px;
  box-shadow: var(--shadow-md);
  color: white;
  display: flex;
  font-size: 11px;
  font-weight: 600;
  gap: 8px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 11px 15px;
}

.toast svg {
  color: #82c69d;
  height: 15px;
  width: 15px;
}

.toast.is-error svg {
  color: #f3a195;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

.main-nav__item.is-active {
  color: var(--ink);
}

@media (max-width: 1180px) {
  .order-layout {
    grid-template-columns: 176px minmax(0, 1fr) 320px;
  }

  .dish-card {
    gap: 14px;
    grid-template-columns: 104px minmax(0, 1fr) 104px;
  }

  .dish-card__image-button {
    height: 104px;
    width: 104px;
  }

  .sold-out-mark {
    left: 24px;
    top: 24px;
  }

  .store-fact {
    padding: 0 17px;
  }
}

@media (max-width: 1020px) {
  .topbar__inner {
    gap: 18px;
    padding: 0 20px;
  }

  .main-nav__item {
    padding: 0 11px;
  }

  .main-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .order-layout {
    grid-template-columns: 164px minmax(0, 1fr);
  }

  .cart-panel {
    display: none;
  }

  .store-hero {
    min-height: 310px;
  }

  .hero-inner {
    min-height: 310px;
    padding: 34px 36px;
  }

  .store-facts {
    flex-wrap: wrap;
    padding: 5px;
  }

  .store-fact:first-child {
    display: none;
  }

  .store-fact + .store-fact::before {
    display: none;
  }

  .mode-switch {
    margin-left: 0;
    margin-top: 4px;
  }

  .order-board {
    grid-template-columns: 1fr 1fr;
  }

  .order-column:last-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-column: 1 / -1;
  }

  .order-column:last-child .order-column__body {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  body {
    padding-bottom: 110px;
  }

  .topbar__inner {
    height: 64px;
  }

  .brand__seal {
    height: 38px;
    width: 38px;
  }

  .brand__copy strong {
    font-size: 17px;
  }

  .main-nav,
  .open-pill,
  .merchant-shortcut {
    display: none;
  }

  .topbar__meta {
    margin-left: auto;
  }

  .main-content {
    min-height: calc(100vh - 64px);
    padding: 14px 14px 32px;
  }

  .mobile-nav {
    align-items: stretch;
    background: rgba(255, 253, 250, 0.97);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    left: 0;
    padding: 6px max(10px, env(safe-area-inset-left))
      max(6px, env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 80;
  }

  .mobile-nav__item {
    align-items: center;
    background: transparent;
    border-radius: 6px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    font-size: 9px;
    font-weight: 600;
    gap: 4px;
    height: 48px;
    justify-content: center;
  }

  .mobile-nav__item svg {
    height: 18px;
    width: 18px;
  }

  .mobile-nav__item.is-active {
    background: var(--brand-soft);
    color: var(--brand-dark);
  }

  .mobile-nav__icon-wrap {
    position: relative;
  }

  .mobile-nav__icon-wrap .nav-badge {
    border-color: var(--surface);
    font-size: 8px;
    height: 15px;
    min-width: 15px;
    padding: 0 3px;
    position: absolute;
    right: -9px;
    top: -6px;
  }

  .store-hero {
    min-height: 268px;
  }

  .store-hero::before {
    background: linear-gradient(
      90deg,
      rgba(23, 19, 15, 0.88),
      rgba(23, 19, 15, 0.54) 70%,
      rgba(23, 19, 15, 0.18)
    );
  }

  .hero-inner {
    min-height: 268px;
    padding: 28px 24px 54px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 9vw, 48px);
  }

  .hero-copy p {
    font-size: 11px;
    line-height: 1.7;
    max-width: 390px;
  }

  .hero-eyebrow {
    font-size: 10px;
    margin-bottom: 12px;
  }

  .hero-stamp {
    display: none;
  }

  .store-facts {
    gap: 6px;
    margin: -34px 10px 12px;
    min-height: 56px;
    padding: 6px;
  }

  .store-fact {
    gap: 8px;
    min-height: 42px;
    padding: 0 9px;
  }

  .store-fact__icon {
    height: 30px;
    width: 30px;
  }

  .store-fact__copy strong {
    font-size: 11px;
  }

  .store-fact__copy span {
    font-size: 8px;
  }

  .mode-switch {
    flex: 1 0 100%;
    margin-top: 0;
  }

  .mode-switch__button {
    flex: 1;
    font-size: 10px;
    height: 32px;
    justify-content: center;
    padding: 0 9px;
  }

  .order-layout {
    display: block;
  }

  .category-rail {
    background: transparent;
    border: 0;
    margin: 0 -14px 10px;
    overflow: auto hidden;
    padding: 0 14px;
    position: sticky;
    top: 64px;
    z-index: 30;
  }

  .category-rail__head {
    display: none;
  }

  .category-list {
    display: flex;
    gap: 7px;
    padding: 8px 0;
    width: max-content;
  }

  .category-button {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    gap: 8px;
    min-height: 34px;
    padding: 0 13px;
    width: auto;
  }

  .category-button svg,
  .category-button small {
    display: none;
  }

  .category-button.is-active {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: white;
  }

  .menu-board__head {
    padding: 18px 16px 15px;
  }

  .menu-board__head h2 {
    font-size: 23px;
  }

  .menu-legend {
    display: none;
  }

  .menu-section {
    padding: 0 16px;
  }

  .dish-card {
    gap: 13px;
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 17px 0;
  }

  .dish-card__image-button {
    height: 96px;
    width: 96px;
  }

  .sold-out-mark {
    height: 48px;
    left: 24px;
    top: 24px;
    width: 48px;
  }

  .dish-card__content {
    padding: 1px 0;
  }

  .dish-card__topline h4 {
    font-size: 14px;
  }

  .dish-card__description {
    font-size: 10px;
    line-height: 1.55;
    margin: 5px 0;
    -webkit-line-clamp: 2;
  }

  .dish-card__meta {
    font-size: 9px;
  }

  .dish-card__commerce {
    display: flex;
    flex-direction: row;
    grid-column: 1 / -1;
    padding: 0;
  }

  .dish-price strong {
    font-size: 20px;
  }

  .dish-add-button {
    height: 30px;
  }

  .mobile-cart {
    align-items: center;
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    bottom: 68px;
    box-shadow: 0 9px 26px rgba(25, 21, 18, 0.24);
    color: white;
    display: flex;
    gap: 12px;
    left: 14px;
    padding: 8px 9px 8px 13px;
    position: fixed;
    right: 14px;
    z-index: 75;
  }

  .mobile-cart[hidden] {
    display: none;
  }

  .mobile-cart__summary {
    align-items: center;
    background: transparent;
    color: white;
    display: flex;
    flex: 1;
    gap: 11px;
    min-width: 0;
    padding: 0;
    text-align: left;
  }

  .mobile-cart__count {
    align-items: center;
    background: var(--brand);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    height: 33px;
    justify-content: center;
    width: 33px;
  }

  .mobile-cart__copy {
    min-width: 0;
  }

  .mobile-cart__copy strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
  }

  .mobile-cart__copy span {
    color: rgba(255, 255, 255, 0.55);
    display: block;
    font-size: 8px;
    margin-top: 3px;
  }

  .mobile-cart__checkout {
    align-items: center;
    background: var(--brand);
    border-radius: 6px;
    color: white;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 5px;
    height: 39px;
    justify-content: center;
    padding: 0 15px;
    white-space: nowrap;
  }

  .mobile-cart__checkout svg {
    height: 13px;
    width: 13px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .page-heading__actions {
    width: 100%;
  }

  .page-heading__actions .secondary-button {
    width: 100%;
  }

  .orders-summary {
    gap: 8px;
    margin-bottom: 14px;
    max-width: none;
  }

  .orders-summary__item {
    padding: 12px;
  }

  .orders-summary__item span {
    font-size: 9px;
  }

  .orders-summary__item strong {
    font-size: 19px;
  }

  .customer-order-card__body {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .order-detail-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }

  .customer-order-card__head {
    padding: 11px 15px;
  }

  .order-progress {
    padding: 16px 14px 18px;
  }

  .merchant-banner {
    align-items: flex-start;
    flex-direction: column;
    min-height: 190px;
    padding: 24px;
  }

  .merchant-banner__aside {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .merchant-banner__clock {
    order: 2;
    text-align: right;
  }

  .stats-grid {
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin: 10px 0;
  }

  .stat-card {
    min-height: 86px;
    padding: 14px;
  }

  .stat-card__value strong {
    font-size: 22px;
  }

  .merchant-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 10px;
  }

  .merchant-tabs {
    width: 100%;
  }

  .merchant-tab {
    flex: 1;
    justify-content: center;
  }

  .merchant-toolbar__right {
    justify-content: space-between;
    width: 100%;
  }

  .segmented-control {
    flex: 1;
  }

  .segmented-control button {
    flex: 1;
  }

  .order-board {
    display: block;
    min-height: 380px;
  }

  .order-column {
    border-left: 0 !important;
    border-top: 1px solid var(--line);
    padding: 14px;
  }

  .order-column:first-child {
    border-top: 0;
  }

  .order-column:last-child .order-column__body {
    display: flex;
  }

  .menu-manager__toolbar {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 10px;
  }

  .menu-search {
    max-width: none;
  }

  .menu-category-filter {
    flex: 1;
  }

  .menu-manager__meta {
    flex: 1;
    justify-content: flex-end;
  }

  .history-table {
    min-width: 700px;
  }

  .modal {
    max-height: calc(100vh - 24px);
    width: min(540px, calc(100vw - 24px));
  }

  .overlay-backdrop {
    align-items: flex-end;
    padding: 12px;
  }

  .dish-detail {
    display: block;
    min-height: 0;
  }

  .dish-detail__media {
    height: 210px;
    min-height: 0;
  }

  .dish-detail__content {
    padding: 22px 20px 0;
  }

  .dish-detail__content h2 {
    font-size: 25px;
  }

  .dish-detail__footer {
    margin-left: -20px;
    margin-right: -20px;
    padding: 13px 20px;
  }

  .modal__body {
    padding: 18px;
  }

  .modal__head {
    padding: 18px;
  }

  .modal__foot {
    padding: 12px 18px;
  }

  .form-grid {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .form-field--full {
    grid-column: auto;
  }

  .drawer {
    width: min(430px, 100%);
  }

  .toast-root {
    bottom: 134px;
  }
}

@media (max-width: 520px) {
  .store-hero {
    min-height: 246px;
  }

  .hero-inner {
    min-height: 246px;
    padding: 23px 19px 52px;
  }

  .hero-eyebrow {
    font-size: 9px;
  }

  .hero-copy h1 {
    font-size: 35px;
  }

  .hero-copy p {
    font-size: 10px;
    max-width: 300px;
  }

  .store-facts {
    align-items: stretch;
  }

  .store-fact {
    flex: 1;
    min-width: 0;
    padding: 0 6px;
  }

  .store-fact__icon {
    display: none;
  }

  .store-fact__copy strong {
    font-size: 10px;
  }

  .mode-switch {
    width: 100%;
  }

  .dish-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .dish-card__image-button {
    height: 82px;
    width: 82px;
  }

  .sold-out-mark {
    height: 42px;
    left: 20px;
    top: 20px;
    width: 42px;
  }

  .dish-card__topline h4 {
    font-size: 13px;
  }

  .dish-card__description {
    -webkit-line-clamp: 2;
  }

  .dish-card__meta span:last-child {
    display: none;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .orders-summary__item {
    padding: 11px 9px;
  }

  .orders-summary__item strong {
    font-size: 17px;
  }

  .orders-summary__item strong small {
    display: block;
    margin: 3px 0 0;
  }

  .order-number {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .customer-order-card__body {
    gap: 14px;
  }

  .merchant-banner {
    min-height: 204px;
    padding: 20px;
  }

  .merchant-banner h1 {
    font-size: 29px;
  }

  .merchant-banner__actions {
    flex-wrap: wrap;
  }

  .merchant-banner__clock strong {
    font-size: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card__icon {
    display: none;
  }

  .merchant-order-card__foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .merchant-order-actions {
    width: 100%;
  }

  .merchant-order-action {
    flex: 1;
    justify-content: center;
  }

  .merchant-order-action--ghost {
    flex: 0 0 auto;
  }

  .checkout-modes {
    grid-template-columns: 1fr;
  }

  .modal {
    border-radius: 8px 8px 0 0;
    max-height: calc(100vh - 8px);
    width: 100%;
  }

  .overlay-backdrop {
    padding: 8px 8px 0;
  }

  .dish-detail__media {
    height: 170px;
  }

  .dish-detail__content {
    padding: 18px 16px 0;
  }

  .dish-detail__content h2 {
    font-size: 22px;
  }

  .dish-detail__footer {
    margin-left: -16px;
    margin-right: -16px;
    padding: 12px 16px;
  }

  .modal-price strong {
    font-size: 24px;
  }

  .success-view {
    padding: 29px 18px 22px;
  }

  .success-actions {
    grid-template-columns: 1fr;
  }

  .modal__foot--split {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .modal__foot--split .danger-button,
  .modal__foot--split .primary-button {
    width: 100%;
  }

  .mobile-cart {
    left: 8px;
    right: 8px;
  }

  .mobile-cart__checkout {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
