.world-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 52px;
  padding: 0;
  flex: none;
  position: relative;
  background: transparent;
  color: var(--ink, #3a2a22);
}
.world-chip img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  background: #fff4ea;
  box-shadow: 0 3px 8px rgba(80, 36, 18, 0.16);
}
.world-chip-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.world-chip-dot {
  position: absolute;
  top: -4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e85d4c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.world-chip-dot[hidden] { display: none; }
.world-chip:active { transform: scale(0.96); }

.wm-top .world-chip { color: #fff8f0; }
.wm-top .world-chip img {
  border: 1.5px solid rgba(255, 248, 240, 0.42);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
.wm-top .wm-redbtn {
  margin-left: 0;
  flex: none;
  padding: 8px 10px;
  font-size: 13px;
  white-space: nowrap;
}

body.world-kitchen,
.phone.world-kitchen {
  --linen: #f5f5f5;
  --paper: #fff;
  --desk: #1a120f;
  --page-bg: #f5f5f5;
}
body.world-kitchen .petal,
.phone.world-kitchen .petal,
body.world-kitchen .room-pattern,
.phone.world-kitchen .room-pattern {
  opacity: 0.12;
}
body.world-kitchen .phone {
  background: #f5f5f5;
}
body.world-kitchen .phone::before,
body.world-kitchen .phone::after {
  opacity: 0;
}

.waimai {
  --wm-red: #e85d4c;
  --wm-red-deep: #c94336;
  --wm-gold: #f6c15b;
  --wm-ink: #222;
  --wm-muted: #8a8a8a;
  --wm-bg: #f5f5f5;
  --wm-card: #fff;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--wm-bg);
  color: var(--wm-ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.waimai button, .waimai input { font: inherit; }
.waimai button {
  cursor: pointer;
  border: 0;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.wm-panes { min-height: 100%; }
.wm-pane { contain: layout; }
.wm-pane[hidden] { display: none !important; }
.waimai input {
  width: 100%;
  border: 0;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 9px 14px;
  outline: none;
  color: var(--wm-ink);
}

.wm-top {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: linear-gradient(180deg, #1b0f0c 0%, #1b0f0c 70%, transparent);
  color: #fff8f0;
}
.wm-search {
  flex: 1;
  min-width: 0;
}
.wm-search input {
  background: rgba(255, 255, 255, 0.94);
}

.wm-cover {
  height: 168px;
  margin-top: -46px;
  background: #2a1610 center / cover no-repeat;
  position: relative;
}
.wm-shopcard {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -38px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(40, 16, 10, 0.12);
}
.wm-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  flex: none;
  background: #f3e6d8;
}
.wm-shopcard h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.wm-shopcard p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--wm-muted);
}

.wm-split {
  display: flex;
  margin-top: 50px;
  min-height: calc(100vh - 280px);
  padding-bottom: calc(128px + env(safe-area-inset-bottom));
}
.wm-cats {
  width: 84px;
  flex: none;
  background: #f0f0f0;
}
.wm-cats button {
  display: block;
  width: 100%;
  padding: 12px 6px;
  font-size: 12px;
  color: #666;
  border-left: 3px solid transparent;
}
.wm-cats button.on {
  background: #fff;
  color: var(--wm-red);
  font-weight: 800;
  border-left-color: var(--wm-red);
}
.wm-list {
  flex: 1;
  min-width: 0;
  background: #fff;
  padding: 8px 12px 20px;
}
.wm-cat-title {
  font-size: 15px;
  font-weight: 800;
  padding: 10px 2px 8px;
}
.wm-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f1;
  text-align: left;
  width: 100%;
  align-items: center;
}
.wm-row-main {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  color: inherit;
}
.wm-row img, .wm-ph {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  background: #f3eee8;
}
.wm-ph { display: grid; place-items: center; font-size: 28px; }
.wm-row-body { flex: 1; min-width: 0; }
.wm-row-body .name { font-weight: 800; font-size: 15px; }
.wm-row-body .desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--wm-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wm-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.wm-tag {
  font-size: 11px;
  color: #b07848;
  background: #fff4e6;
  border-radius: 6px;
  padding: 2px 6px;
}
.wm-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wm-red);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 24px;
  flex: none;
  align-self: center;
}
.wm-plus.has { width: auto; padding: 0 8px; border-radius: 999px; font-size: 13px; }

.wm-review-n {
  font-size: 11px;
  color: var(--wm-muted);
}
.wm-reviews {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #eee;
}
.wm-review { margin-top: 8px; }
.wm-review:first-child { margin-top: 0; }
.wm-review-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #b07848;
}
.wm-review-time { color: #999; font-weight: 500; flex: none; }
.wm-review p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}
.wm-dish-view {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}
.wm-dish-view img, .wm-dish-view-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
}
.wm-dish-view .h1 { margin: 0 0 4px; }

.wm-empty {
  text-align: center;
  padding: 36px 18px;
  color: var(--wm-muted);
}
.wm-empty img {
  width: 168px;
  margin: 0 auto 8px;
  display: block;
}

.wm-page {
  padding: 12px 12px calc(92px + env(safe-area-inset-bottom));
}
.wm-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.wm-page-head h1 { margin: 0; font-size: 22px; }
.wm-chips { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; }
.wm-chips button {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: #666;
  font-size: 13px;
}
.wm-chips button.on { background: var(--wm-red); color: #fff; font-weight: 700; }

.wm-order {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
}
.wm-order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.wm-st {
  font-size: 12px;
  font-weight: 800;
  color: var(--wm-red);
}
.wm-st.cooking { color: #c9842a; }
.wm-st.ready, .wm-st.done { color: #3d8f4a; }
.wm-st.cancelled { color: #999; }
.wm-order-items { margin: 10px 0; font-size: 14px; line-height: 1.7; display: grid; gap: 4px; }
.wm-order-dish {
  text-align: left;
  background: none;
  padding: 0;
  font-weight: 700;
  color: inherit;
}
.wm-order-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.wm-order-ops button {
  flex: 1;
  border-radius: 10px;
  padding: 9px 8px;
  font-weight: 700;
  background: #f5f5f5;
}
.wm-order-ops button.main { background: var(--wm-red); color: #fff; }

.wm-dish-admin {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  align-items: center;
}
.wm-dish-admin img, .wm-dish-admin .wm-ph {
  width: 64px;
  height: 64px;
  border-radius: 10px;
}
.wm-ops { display: flex; flex-direction: column; gap: 6px; flex: none; }
.wm-ops button {
  padding: 7px 8px;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 12px;
  font-weight: 700;
  min-width: 36px;
}
.wm-redbtn {
  background: var(--wm-red) !important;
  color: #fff !important;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 800;
}

.wm-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
  touch-action: manipulation;
  user-select: none;
}
.wm-tabbar button {
  display: grid;
  place-items: center;
  gap: 2px;
  color: #999;
  font-size: 11px;
  position: relative;
}
.wm-tabbar button.on { color: var(--wm-red); font-weight: 800; }
.wm-tabbar .ico { font-size: 18px; line-height: 1; }
.wm-tabbar .dot {
  position: absolute;
  top: 0;
  right: 22%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--wm-red);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.wm-tabbar .dot[hidden] { display: none; }

.wm-dock {
  position: fixed;
  left: 50%;
  bottom: calc(54px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(402px, calc(100% - 28px));
  display: flex;
  align-items: center;
  background: #2b2b2b;
  color: #fff;
  border-radius: 999px;
  padding: 7px 7px 7px 16px;
  z-index: 21;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.wm-dock-copy { flex: 1; font-size: 13px; font-weight: 700; }
.wm-pay {
  background: linear-gradient(180deg, #ffd56a, #f6b73c);
  color: #5a3a10;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
}
.wm-bag {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3a3a3a;
  margin-right: 8px;
  font-size: 18px;
  position: relative;
}
.wm-bag span {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--wm-red);
  font-size: 11px;
  display: grid;
  place-items: center;
}

.waimai .sheet {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 30;
}
.waimai .sheet-body {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 86vh;
  overflow: auto;
}
.waimai .h1 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.waimai .field { margin-top: 12px; }
.waimai .field label { display: block; font-size: 12px; color: #888; margin-bottom: 6px; }
.waimai .field input {
  border-radius: 12px;
  background: #f5f5f5;
}
.waimai .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.waimai .chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f5f5f5;
  font-size: 13px;
}
.waimai .chip.on { background: var(--wm-red); color: #fff; font-weight: 700; }
.waimai .primary {
  width: 100%;
  margin-top: 16px;
  background: var(--wm-red);
  color: #fff;
  border-radius: 14px;
  padding: 13px;
  font-weight: 800;
}
.waimai .primary:disabled { opacity: 0.45; }
.waimai .ghost {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  border: 1px solid #ead8d4;
  color: #c56b55;
  border-radius: 14px;
  padding: 12px;
  font-weight: 700;
}
.waimai .cart-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f1;
}
.waimai .qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.waimai .qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f5f5f5;
  font-weight: 800;
}
.waimai .dish-upload {
  display: grid;
  gap: 6px;
  text-align: center;
  margin: 10px 0;
}
.waimai .dish-upload input { display: none; }
.waimai .dish-upload img, .waimai .dish-upload .wm-ph {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
}
.wm-toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.86);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 40;
  font-size: 13px;
}
.grow { flex: 1; min-width: 0; }
.title { font-weight: 800; }
