:root {
  color: #f9f0df;
  background: #0d2b23;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(6, 21, 17, 0.9), rgba(10, 38, 31, 0.5)),
    url("./luxury-bg.png") center / cover fixed,
    #0d2b23;
}

#app {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: stretch;
}

.site-record {
  position: fixed;
  left: 50%;
  bottom: 2px;
  z-index: 16;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(5, 20, 16, 0.72);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
}

.site-record a {
  color: rgba(255, 246, 223, 0.78);
  text-decoration: none;
  pointer-events: auto;
}

.site-record a:hover,
.site-record a:focus-visible {
  color: #f1d88b;
  text-decoration: underline;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 22%, transparent 74%, rgba(0, 0, 0, 0.25)),
    radial-gradient(circle at 50% 18%, rgba(255, 246, 218, 0.07), transparent 34%);
  z-index: -1;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

h1,
h2,
h3,
h4,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.16;
}

h2 {
  margin: 0;
  font-size: 30px;
}

h3 {
  margin: 0;
  font-size: 30px;
}

h4 {
  margin: 0;
  font-size: 17px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #d8b86d;
  font-size: 13px;
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px;
}

.room-start {
  width: min(1420px, 80vw);
  padding: 42px;
  border: 1px solid rgba(216, 184, 109, 0.42);
  background:
    linear-gradient(135deg, rgba(8, 31, 25, 0.86), rgba(12, 49, 39, 0.74)),
    rgba(255, 250, 238, 0.06);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.brand-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
}

.brand-row img,
.category-nav img {
  width: 100%;
  display: block;
}

.brand-row p:last-child {
  margin: 12px 0 0;
  color: rgba(249, 240, 223, 0.72);
}

.room-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.32fr);
  gap: 14px;
}

.room-form label,
.admin-password,
.import-panel label {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: #eadfca;
}

.room-form input,
.room-form select,
.admin-password input,
.admin-row input,
.import-panel textarea {
  min-width: 0;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(216, 184, 109, 0.42);
  background: #fffaf0;
  color: #18382f;
  padding: 0 14px;
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 50px;
  border: 0;
  margin-top: 16px;
}

.primary-action {
  background: linear-gradient(135deg, #f1d88b, #c99b44);
  color: #102d25;
  font-weight: 900;
}

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

.secondary-action {
  background: transparent;
  color: #f9f0df;
  border: 1px solid rgba(249, 240, 223, 0.25);
}

.existing-orders {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.existing-orders p {
  margin: 0;
  color: #d8b86d;
  font-weight: 800;
}

.existing-orders button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(249, 240, 223, 0.2);
  background: rgba(255, 250, 238, 0.08);
  color: #f9f0df;
  padding: 0 14px;
}

.tablet-layout {
  --layout-padding: 8px;
  --layout-gap: 8px;
  --nav-width: clamp(142px, 8.1vw, 166px);
  width: 100vw;
  height: 100vh;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: var(--layout-gap);
  padding: var(--layout-padding);
  overflow: hidden;
}

.top-actions {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 11;
  display: flex;
  gap: 6px;
  align-items: center;
}

.menu-sync-status {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 4px 3px 9px;
  border: 1px solid rgba(216, 184, 109, 0.4);
  background: rgba(7, 28, 22, 0.92);
  color: rgba(249, 240, 223, 0.88);
  font-size: 11px;
  white-space: nowrap;
}

.menu-sync-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78c99a;
  box-shadow: 0 0 0 3px rgba(120, 201, 154, 0.12);
}

.menu-sync-status.offline > span,
.menu-sync-status.error > span {
  background: #dd806f;
  box-shadow: 0 0 0 3px rgba(221, 128, 111, 0.12);
}

.menu-sync-status.syncing > span {
  background: #f1d88b;
  animation: syncPulse 1s ease-in-out infinite;
}

.menu-sync-status small {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions .menu-sync-status button {
  min-width: auto;
  height: 24px;
  padding: 0 8px;
  border-color: rgba(216, 184, 109, 0.3);
  font-size: 11px;
}

@keyframes syncPulse {
  50% { opacity: 0.35; }
}

.top-actions button,
.text-action {
  min-width: 54px;
  height: 32px;
  border: 1px solid rgba(216, 184, 109, 0.52);
  background: rgba(16, 45, 37, 0.92);
  color: #f9f0df;
  font-size: 12px;
}

.category-nav {
  position: relative;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(86px, 132px) 44px 1px repeat(8, minmax(0, 1fr));
  align-content: stretch;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(216, 184, 109, 0.4);
  background:
    linear-gradient(180deg, rgba(8, 31, 25, 0.93), rgba(8, 31, 25, 0.76)),
    rgba(5, 24, 19, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 238, 0.06), 0 18px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.category-nav img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  padding: 4px 6px 8px;
}

.menu-search {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 184, 109, 0.38);
  background: rgba(255, 250, 238, 0.1);
  color: #f1d88b;
}

.menu-search span {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.menu-search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fffaf0;
  font-size: 13px;
}

.menu-search input::placeholder {
  color: rgba(249, 240, 223, 0.56);
}

.menu-search:focus-within {
  border-color: #f1d88b;
  box-shadow: inset 0 0 0 1px rgba(241, 216, 139, 0.34);
}

.nav-divider {
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(216, 184, 109, 0.7), transparent);
}

.category-nav button {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 184, 109, 0.24);
  background: rgba(255, 250, 238, 0.055);
  color: #f9f0df;
  text-align: center;
  padding: 0 6px;
  font-size: clamp(12px, 1.28vh, 15px);
  line-height: 1.2;
  overflow: hidden;
}

.category-nav button::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(216, 184, 109, 0.08);
  pointer-events: none;
}

.category-nav button.active {
  background: linear-gradient(135deg, rgba(241, 216, 139, 0.96), rgba(190, 139, 55, 0.96));
  color: #123b30;
  font-weight: 900;
}

.menu-scroll {
  position: relative;
  display: block;
  gap: 0;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  padding: 0;
  touch-action: pan-y;
}

.page-track {
  height: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 280ms ease;
  will-change: transform;
}

.page-track.is-sliding {
  transition: transform 360ms cubic-bezier(0.22, 0.74, 0.22, 1);
}

.menu-scroll.category-turning .page-track {
  animation: categorySlideIn 260ms cubic-bezier(0.2, 0.72, 0.22, 1) both;
}

.menu-scroll.category-turning.turn-backward .page-track {
  animation-name: categorySlideInReverse;
}

@keyframes categorySlideIn {
  from {
    opacity: 0.72;
    transform: translateX(4%);
  }
  to {
    opacity: 1;
  }
}

@keyframes categorySlideInReverse {
  from {
    opacity: 0.72;
    transform: translateX(-4%);
  }
  to {
    opacity: 1;
  }
}

.menu-page,
.menu-cover,
.no-result {
  width: 100%;
  height: 100%;
}

.menu-cover {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 190px;
  align-items: center;
  gap: 40px;
  padding: 66px 76px;
  border: 1px solid rgba(216, 184, 109, 0.4);
  background:
    linear-gradient(120deg, rgba(7, 27, 22, 0.9), rgba(16, 61, 48, 0.5)),
    url("./luxury-bg.png") center / cover;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  color: #fff6df;
}

.menu-cover h1 {
  max-width: 760px;
  font-size: 72px;
}

.menu-cover p:not(.eyebrow) {
  margin: 14px 0 0;
  color: rgba(249, 240, 223, 0.76);
  font-size: 22px;
}

.menu-cover small {
  display: inline-block;
  margin-top: 28px;
  padding: 9px 16px;
  border: 1px solid rgba(216, 184, 109, 0.42);
  color: #d8b86d;
  font-weight: 800;
}

.menu-cover strong {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 2px solid rgba(216, 184, 109, 0.66);
  color: #d8b86d;
  font-size: 74px;
  font-weight: 900;
  box-shadow: inset 0 0 0 10px rgba(216, 184, 109, 0.08);
}

.no-result {
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 184, 109, 0.36);
  background: rgba(255, 250, 238, 0.92);
  color: #18382f;
  font-weight: 800;
}

.featured-page {
  position: relative;
  min-height: 0;
  display: block;
  border: 1px solid rgba(216, 184, 109, 0.36);
  background: #102d25;
  color: #fff6df;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.featured-page.has-uploaded-image {
  border: 0;
  box-shadow: none;
  background: #050807;
}

.featured-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(70deg, rgba(4, 18, 14, 0.82), rgba(4, 18, 14, 0.44) 34%, transparent 70%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 42%);
}

.featured-page.has-uploaded-image::after {
  background: transparent;
}

.feature-photo {
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow: hidden;
}

.feature-photo::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 245, 211, 0.82), rgba(222, 174, 93, 0.42) 28%, rgba(55, 24, 15, 0.6) 48%, transparent 50%),
    radial-gradient(circle at 55% 55%, rgba(128, 37, 22, 0.65), transparent 34%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.feature-photo.has-image {
  background: #07140f;
}

.feature-photo.has-image::before {
  display: none;
}

.feature-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.15), transparent 46%, rgba(0, 0, 0, 0.32)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
}

.feature-photo.has-image::after {
  z-index: 0;
  background: linear-gradient(0deg, rgba(3, 12, 9, 0.18), rgba(3, 12, 9, 0.18)), var(--dish-image) center / cover no-repeat;
  filter: blur(20px);
  transform: scale(1.06);
  opacity: 0.78;
}

.feature-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.plate-mark {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 1;
  color: rgba(255, 250, 238, 0.86);
  font-size: 56px;
  font-weight: 900;
}

.page-count {
  position: absolute;
  right: 24px;
  top: 28px;
  z-index: 1;
  color: rgba(255, 250, 238, 0.78);
  font-size: 15px;
  font-weight: 800;
}

.featured-page.has-uploaded-image .plate-mark,
.featured-page.has-uploaded-image .page-count {
  display: none;
}

.photo-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  color: rgba(255, 250, 238, 0.84);
  font-weight: 700;
}

.tone-pot { background: linear-gradient(135deg, #4b2a1f, #a8522f 55%, #201612); }
.tone-creative { background: linear-gradient(135deg, #17392f, #955339 55%, #1a1410); }
.tone-stir { background: linear-gradient(135deg, #5e1f1c, #b54a25 58%, #2f1612); }
.tone-cold { background: linear-gradient(135deg, #235744, #8aa06f 58%, #132c22); }
.tone-soup { background: linear-gradient(135deg, #79612c, #d1a44d 58%, #49331c); }
.tone-staple { background: linear-gradient(135deg, #735836, #d0b074 58%, #392819); }
.tone-drink { background: linear-gradient(135deg, #1e5c58, #6ca79e 58%, #102a2a); }
.tone-wine { background: linear-gradient(135deg, #482238, #7f405c 58%, #1f1320); }

.feature-copy {
  position: absolute;
  left: 7%;
  bottom: 7%;
  z-index: 2;
  width: min(560px, 58%);
  display: grid;
  align-content: center;
  padding: 0;
  background: transparent;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.55);
}

.featured-page.has-uploaded-image .feature-copy {
  left: auto;
  right: clamp(58px, 4vw, 84px);
  bottom: clamp(42px, 4.2vh, 66px);
  z-index: 3;
  width: auto;
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.8);
}

.featured-page.has-uploaded-image .feature-copy .eyebrow,
.featured-page.has-uploaded-image .feature-copy h3,
.featured-page.has-uploaded-image .feature-copy p,
.featured-page.has-uploaded-image .tasting-notes {
  display: none;
}

.featured-page.has-uploaded-image .tag-row {
  grid-column: 1 / -1;
  margin-top: -2px;
}

.featured-page.has-uploaded-image .feature-price {
  margin: 0;
  min-width: 108px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1;
  white-space: nowrap;
}

.featured-page.has-uploaded-image .feature-controls {
  margin-top: 0;
  align-self: center;
}

.feature-order-pill {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 14px;
  width: max-content;
}

.featured-page.has-uploaded-image .feature-order-pill {
  padding: 10px 12px;
  border: 1px solid rgba(241, 216, 139, 0.34);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(5, 20, 16, 0.76), rgba(4, 14, 11, 0.54));
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.feature-price {
  display: block;
  margin: 14px 0;
  color: #f1d88b;
  font-size: 40px;
}

.feature-copy p {
  color: rgba(255, 246, 223, 0.78);
  line-height: 1.7;
  max-width: 520px;
}

.feature-copy h3 {
  color: #fff6df;
  font-size: 42px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.28);
}

.tasting-notes {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 16px 0;
  border-top: 1px solid rgba(216, 184, 109, 0.34);
  border-bottom: 1px solid rgba(216, 184, 109, 0.34);
}

.tasting-notes div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
}

.tasting-notes dt {
  color: #f1d88b;
  font-weight: 900;
}

.tasting-notes dd {
  margin: 0;
  color: rgba(255, 246, 223, 0.8);
}

.feature-controls {
  justify-content: start;
  margin-top: 24px;
}

.feature-controls button {
  background: rgba(255, 246, 223, 0.88);
  color: #123b30;
}

.feature-controls span {
  color: #fff6df;
}

.platter-page.has-uploaded-image::after {
  background:
    linear-gradient(90deg, rgba(3, 12, 9, 0.08), rgba(3, 12, 9, 0.18) 48%, rgba(3, 12, 9, 0.72)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 34%);
}

.platter-panel {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  top: 58%;
  z-index: 4;
  width: min(560px, 44vw);
  max-height: calc(100% - 56px);
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(241, 216, 139, 0.42);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(5, 20, 16, 0.88), rgba(4, 14, 11, 0.68)),
    rgba(255, 250, 238, 0.08);
  color: #fff6df;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 250, 238, 0.06);
  backdrop-filter: blur(7px);
  transform: translateY(-50%);
  overflow: auto;
  touch-action: pan-y;
}

.steamed-seafood-panel {
  left: clamp(22px, 3.4vw, 54px);
  right: auto;
  width: min(300px, 23vw);
  top: auto;
  bottom: clamp(28px, 5vh, 54px);
  max-height: calc(100% - 160px);
  padding: 10px;
  transform: none;
}

.changde-lupin-panel {
  left: clamp(42px, 4vw, 72px);
  right: auto;
  top: auto;
  bottom: clamp(18px, 3.2vh, 34px);
  width: min(980px, 70vw);
  max-height: min(330px, 38vh);
  padding: 12px;
  transform: none;
}

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

.steamed-seafood-panel .platter-options {
  grid-template-columns: 1fr;
  gap: 7px;
}

.changde-lupin-panel .platter-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.platter-option {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(241, 216, 139, 0.18);
  background: rgba(255, 250, 238, 0.075);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 238, 0.03);
}

.steamed-seafood-panel .platter-option {
  min-height: 54px;
}

.changde-lupin-panel .platter-option {
  min-height: 50px;
  grid-template-columns: minmax(0, 1fr) 86px;
  padding: 7px 8px;
}

.platter-option strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #fff6df;
  font-size: clamp(14px, 1.32vw, 17px);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platter-option small {
  display: block;
  margin-top: 4px;
  color: #f1d88b;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.platter-controls {
  grid-template-columns: 30px 28px 30px;
  gap: 4px;
  justify-content: end;
}

.platter-controls button {
  height: 30px;
  border: 1px solid rgba(241, 216, 139, 0.34);
  background: rgba(8, 31, 25, 0.94);
  color: #f1d88b;
  font-size: 18px;
  font-weight: 900;
}

.platter-controls span {
  color: #fff6df;
  font-size: 14px;
}

.regular-board {
  margin-top: 0;
  height: 100%;
  min-height: 0;
  padding: clamp(22px, 3vh, 36px);
  border: 1px solid rgba(216, 184, 109, 0.32);
  background: rgba(255, 250, 238, 0.92);
  color: #18382f;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  overflow: auto;
  touch-action: pan-y;
}

.regular-board header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 59, 48, 0.15);
}

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

.regular-dish {
  position: relative;
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(18, 59, 48, 0.13);
  background: #fffaf0;
  overflow: hidden;
}

.dish-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: baseline;
}

.dish-title-row h4 {
  min-width: 0;
  line-height: 1.35;
}

.dish-title-row strong {
  color: #8a3c22;
  font-size: 20px;
  text-align: right;
  white-space: nowrap;
}

.temporary-note {
  color: #8a3c22 !important;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  border: 1px solid rgba(18, 59, 48, 0.16);
  padding: 3px 7px;
  color: #285345;
  font-size: 13px;
}

.feature-copy .tag-row span {
  border-color: rgba(241, 216, 139, 0.34);
  background: rgba(18, 59, 48, 0.28);
  color: #fff6df;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.52);
}

.tag-row .sold-out {
  background: #701d1c;
  color: #fff;
}

.quantity-controls {
  display: grid;
  grid-template-columns: 36px 34px 36px;
  align-items: center;
  justify-content: end;
  align-self: center;
  gap: 7px;
}

.quantity-controls button {
  height: 36px;
  border: 0;
  background: #123b30;
  color: #fff;
  font-size: 20px;
}

.quantity-controls button:disabled {
  opacity: 0.32;
}

.quantity-controls span {
  text-align: center;
  font-weight: 900;
}

.featured-page.is-sold-out .feature-photo,
.featured-page.is-sold-out .feature-copy,
.regular-dish.is-sold-out > div:not(.limited-stamp):not(.sold-out-slash) {
  filter: grayscale(1);
  opacity: 0.54;
}

.regular-dish.is-sold-out {
  background: #e4dfd3;
  color: #6e7d74;
}

.sold-out-slash {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.sold-out-slash::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 5px;
  border-radius: 999px;
  background: rgba(122, 30, 28, 0.78);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  transform: rotate(-13deg);
}

.regular-dish .sold-out-slash::before {
  left: 12px;
  right: 12px;
  height: 4px;
  transform: rotate(-8deg);
}

.limited-stamp {
  position: absolute;
  right: clamp(86px, 10vw, 160px);
  top: 50%;
  z-index: 8;
  width: clamp(128px, 12vw, 176px);
  height: clamp(128px, 12vw, 176px);
  display: grid;
  place-items: center;
  padding-top: 2px;
  background: url("./limited-supply-stamp.png") center / contain no-repeat;
  color: #ffe9a7;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 0 rgba(82, 11, 8, 0.8), 0 0 12px rgba(255, 222, 129, 0.34);
  transform: translateY(-50%) rotate(-9deg);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.32));
}

.limited-stamp::before {
  content: none;
}

.limited-stamp span {
  position: relative;
  display: block;
  letter-spacing: 0;
}

.regular-dish .limited-stamp {
  right: 94px;
  top: 50%;
  width: 68px;
  height: 68px;
  font-size: 14px;
  text-shadow: 0 1px 0 rgba(82, 11, 8, 0.82);
  transform: translateY(-50%) rotate(-9deg);
}

.order-toggle {
  position: absolute;
  right: 0;
  bottom: 24px;
  z-index: 12;
  width: 74px;
  height: 46px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px 0 12px;
  border: 1px solid rgba(216, 184, 109, 0.72);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(135deg, #f1d88b, #c79843);
  color: #102d25;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.order-toggle span {
  font-size: 13px;
  font-weight: 900;
}

.order-toggle strong {
  min-width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #102d25;
  color: #fff6df;
  font-size: 13px;
}

.order-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(0, 0, 0, 0.24);
}

.order-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 19;
  width: min(410px, 92vw);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px;
  border-left: 1px solid rgba(216, 184, 109, 0.44);
  background:
    linear-gradient(180deg, rgba(9, 34, 28, 0.97), rgba(5, 20, 16, 0.97)),
    #102d25;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.36);
}

.order-drawer header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.order-drawer header .eyebrow,
.order-drawer header h2,
.order-drawer header p {
  grid-column: 1 / -1;
}

.order-drawer header p {
  color: rgba(249, 240, 223, 0.76);
}

.order-lines {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 18px;
}

.order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(249, 240, 223, 0.12);
}

.order-line-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.order-line-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-line em {
  color: #d8b86d;
  font-style: normal;
  font-size: 13px;
}

.order-line-controls {
  grid-template-columns: 34px 30px 34px;
}

.order-line-controls button {
  width: 34px;
  height: 34px;
  background: rgba(255, 246, 223, 0.9);
  color: #123b30;
}

.room-switcher {
  width: min(720px, 92vw);
}

.room-switcher-help {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f1e4c9;
  color: #264b3f;
}

.room-switcher-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.room-switcher-section h3 {
  margin: 0;
}

.room-switcher .empty {
  color: #5f756d;
}

.room-switcher-orders {
  max-height: 220px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.room-switcher-orders button {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(18, 59, 48, 0.18);
  background: #fff;
  color: #18382f;
  text-align: left;
}

.room-switcher-orders button span {
  font-weight: 900;
}

.room-switcher-orders button small {
  color: #5f756d;
}

.room-switcher-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 180px;
  gap: 10px;
  align-items: end;
}

.room-switcher-form label {
  color: #18382f;
}

.room-switcher-form input,
.room-switcher-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(18, 59, 48, 0.18);
  background: #fff;
  color: #18382f;
  padding: 0 12px;
}

.room-switcher-form .primary-action {
  min-height: 46px;
  margin-top: 0;
}

.empty {
  color: rgba(249, 240, 223, 0.7);
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 24px;
  margin: 18px 0 8px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 18, 14, 0.78);
  z-index: 30;
}

.order-sheet,
.admin-panel,
.import-panel {
  width: min(920px, 90vw);
  max-height: 86vh;
  overflow: auto;
  background: #fffaf0;
  color: #18382f;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid rgba(18, 59, 48, 0.14);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.sheet-header button {
  width: 88px;
  height: 42px;
  border: 0;
  background: #123b30;
  color: #fff;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-header .admin-save-button {
  width: 150px;
  background: linear-gradient(135deg, #d5ad50, #f1d782);
  color: #123b30;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(120, 83, 11, 0.2);
}

.sheet-line {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr 56px 72px 54px 80px;
  align-items: center;
  border-bottom: 1px solid rgba(18, 59, 48, 0.12);
}

.sheet-total {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 28px;
  font-weight: 800;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.menu-admin-panel {
  width: min(1180px, 94vw);
}

.admin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-tabs button {
  min-height: 52px;
  border: 1px solid rgba(18, 59, 48, 0.18);
  background: #eee2c9;
  color: #18382f;
  font-weight: 900;
}

.admin-tabs button.active {
  background: #123b30;
  color: #fff6df;
}

.menu-editor-help {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #f1e4c9;
  color: #264b3f;
}

.menu-editor-list {
  display: grid;
  gap: 24px;
}

.category-note-editor-block {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(18, 59, 48, 0.14);
  background: #fffaf0;
  color: #18382f;
}

.category-note-editor-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 390px);
  gap: 16px;
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 59, 48, 0.14);
}

.category-note-editor-header h3 {
  font-size: 24px;
}

.category-note-editor-header > span {
  color: #46695d;
  font-weight: 800;
  line-height: 1.5;
}

.category-note-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.category-note-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(18, 59, 48, 0.12);
  background: #f7edd8;
  color: #18382f;
}

.category-note-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-note-row input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(18, 59, 48, 0.18);
  background: #fff;
  color: #18382f;
  padding: 6px 10px;
  font-weight: 800;
}

.sort-manager-block {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(18, 59, 48, 0.14);
  background: #fffaf0;
  color: #18382f;
}

.sort-manager-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 390px);
  gap: 16px;
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 59, 48, 0.14);
}

.sort-manager-header h3 {
  font-size: 24px;
}

.sort-manager-header > span {
  color: #46695d;
  font-weight: 800;
  line-height: 1.5;
}

.sort-manager-section {
  display: grid;
  gap: 10px;
}

.sort-manager-section h4 {
  color: #18382f;
  font-size: 17px;
}

.sort-category-list,
.sort-dish-list,
.sort-dish-groups {
  display: grid;
  gap: 8px;
}

.sort-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(18, 59, 48, 0.12);
  background: #f7edd8;
}

.sort-row strong {
  min-width: 0;
  overflow: hidden;
  color: #18382f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-dish-row {
  grid-template-columns: minmax(0, 1fr) 88px 152px;
  background: #fffaf0;
}

.sort-dish-row small {
  color: #8a3c22;
  font-weight: 900;
  white-space: nowrap;
}

.sort-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sort-actions button {
  min-height: 34px;
  border: 0;
  background: #123b30;
  color: #fff6df;
  font-weight: 900;
}

.sort-actions button:disabled {
  opacity: 0.36;
}

.sort-dish-group {
  border: 1px solid rgba(18, 59, 48, 0.14);
  background: #f7edd8;
}

.sort-dish-group summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  color: #18382f;
  font-weight: 900;
  cursor: pointer;
}

.sort-dish-group summary span {
  color: #8a3c22;
}

.sort-dish-list {
  padding: 0 10px 10px;
}

.platter-editor-block {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(18, 59, 48, 0.14);
  background: #f7edd8;
  color: #18382f;
}

.platter-editor-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 16px;
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 59, 48, 0.14);
}

.platter-editor-header h3 {
  font-size: 24px;
}

.platter-editor-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.platter-editor-actions span {
  color: #46695d;
  font-weight: 800;
  line-height: 1.5;
}

.platter-editor-actions button,
.platter-delete-button {
  min-height: 38px;
  border: 0;
  background: #123b30;
  color: #fffaf0;
  padding: 7px 14px;
  font-weight: 900;
  cursor: pointer;
}

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

.platter-editor-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 112px 96px 58px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(18, 59, 48, 0.12);
  background: #fffaf0;
}

.platter-editor-row strong {
  min-width: 0;
  overflow: hidden;
  color: #18382f;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platter-editor-row label {
  display: grid;
  gap: 5px;
  color: #46695d;
  font-size: 13px;
  font-weight: 900;
}

.platter-editor-row.has-name-field label:first-child {
  min-width: 0;
}

.platter-delete-button {
  align-self: end;
  background: #8a3c22;
  padding-inline: 8px;
}

.platter-editor-row input,
.platter-editor-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(18, 59, 48, 0.18);
  background: #fff;
  color: #18382f;
  padding: 6px 8px;
  font-weight: 800;
}

.signature-help strong {
  white-space: nowrap;
}

.signature-preview {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 184, 109, 0.38);
  background: #123b30;
  color: #fff6df;
}

.signature-preview strong {
  color: #d8b86d;
}

.signature-preview span {
  line-height: 1.7;
}

.signature-editor-list {
  display: grid;
  gap: 24px;
}

.menu-editor-category {
  display: grid;
  gap: 12px;
}

.menu-editor-category-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(18, 59, 48, 0.18);
}

.menu-editor-category-header h3 {
  font-size: 24px;
}

.menu-editor-category > h3 {
  font-size: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(18, 59, 48, 0.18);
}

.menu-editor-category-header button {
  min-height: 42px;
  border: 0;
  background: #123b30;
  color: #fff6df;
  font-weight: 900;
}

.dish-editor-row {
  display: grid;
  grid-template-columns: 168px 1fr 180px;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(18, 59, 48, 0.14);
  background: #fffaf0;
}

.dish-editor-image {
  min-height: 128px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(18, 59, 48, 0.82), rgba(138, 60, 34, 0.52)),
    #123b30;
  background-size: cover;
  background-position: center;
  color: #fff6df;
  font-weight: 900;
  text-align: center;
}

.dish-editor-image.has-image span {
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.46);
}

.dish-editor-fields {
  display: grid;
  grid-template-columns: 1fr 120px 104px;
  gap: 10px;
}

.dish-editor-fields > label {
  display: grid;
  gap: 6px;
  color: #264b3f;
  font-weight: 800;
}

.tag-picker {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  color: #264b3f;
  font-weight: 800;
}

.tag-picker strong {
  font-size: 15px;
}

.tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-option {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(18, 59, 48, 0.16);
  background: #f7edd8;
  color: #264b3f;
  font-weight: 800;
}

.tag-option input {
  width: 18px;
  height: 18px;
  accent-color: #123b30;
}

.dish-editor-fields > label > input,
.dish-editor-fields > label > select,
.dish-editor-fields > label > textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(18, 59, 48, 0.18);
  background: #fff;
  color: #18382f;
  padding: 9px 10px;
}

.dish-editor-fields textarea {
  min-height: 68px;
  resize: vertical;
}

.dish-editor-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}

.upload-button,
.dish-editor-actions button {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: #123b30;
  color: #fff6df;
  font-weight: 900;
  text-align: center;
  padding: 0 10px;
}

.upload-button input {
  display: none;
}

.dish-editor-actions label:not(.upload-button) {
  color: #264b3f;
  font-weight: 800;
}

.dish-editor-actions button:disabled {
  opacity: 0.42;
}

.dish-editor-actions .danger-action {
  background: #8a3c22;
}

.signature-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 72px 132px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 59, 48, 0.14);
  background: #fffaf0;
  color: #264b3f;
}

.signature-row.active {
  border-color: rgba(216, 184, 109, 0.76);
  background: #f4e7c9;
}

.signature-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
}

.signature-check input {
  width: 20px;
  height: 20px;
  accent-color: #123b30;
}

.signature-row strong {
  color: #8a3c22;
}

.signature-order-label {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.signature-order-label input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(18, 59, 48, 0.18);
  background: #fff;
  color: #18382f;
  padding: 6px 8px;
  text-align: center;
  font-weight: 900;
}

.signature-order-label input:disabled {
  opacity: 0.45;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr 112px 76px 76px 76px 90px 150px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid rgba(18, 59, 48, 0.12);
}

.admin-row label {
  white-space: nowrap;
}

.import-panel textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 12px;
}

@media (max-width: 1100px) {
  .tablet-layout {
    --layout-padding: 10px;
    --layout-gap: 10px;
    --nav-width: 132px;
    grid-template-columns: var(--nav-width) minmax(0, 1fr);
    gap: var(--layout-gap);
    padding: var(--layout-padding);
  }

  .section-title {
    width: calc(100% - 88px);
  }

  .featured-page {
    grid-template-columns: 1fr;
  }

  .feature-photo {
    min-height: 360px;
  }

  .platter-panel {
    right: 14px;
    width: min(500px, 52vw);
    padding: 12px;
  }

  .steamed-seafood-panel {
    left: 14px;
    right: auto;
    width: min(300px, 46vw);
    top: 66%;
  }

  .platter-options {
    gap: 6px;
  }

  .platter-option {
    grid-template-columns: minmax(0, 1fr) 88px;
    min-height: 54px;
    padding: 7px 8px;
  }

  .platter-controls {
    grid-template-columns: 28px 26px 28px;
  }

  .platter-controls button {
    height: 28px;
  }

  .admin-tabs,
  .sort-manager-header,
  .sort-dish-row,
  .platter-editor-header,
  .platter-editor-grid,
  .signature-row {
    grid-template-columns: 1fr;
  }

  .regular-dish .limited-stamp {
    right: 92px;
  }

  .platter-editor-row {
    grid-template-columns: minmax(0, 1fr) 104px 92px 58px;
  }

  .signature-order-label {
    grid-template-columns: 42px minmax(0, 120px);
  }

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

  .room-switcher-orders,
  .room-switcher-form {
    grid-template-columns: 1fr;
  }
}
