:root {
  color-scheme: light;
  --green: #ff7caf;
  --green-dark: #d83d78;
  --ink: #3b2531;
  --muted: #987583;
  --soft: #fff3f8;
  --line: #f7d5e3;
  --white: #ffffff;
  --pink: #ff8fba;
  --pink-soft: #fff1f7;
  --yellow: #ffc928;
  --shadow: 0 14px 34px rgba(216, 61, 120, 0.16);
  --cute-hand-font: "Joyen Milk Bobo", "山海牛奶波波 W", "山海牛奶波波W", "ShanHaiNiuNaiBoBo-W", "ShanHaiNiuNaiBoBo W", "Hannotate SC", "HanziPen SC", "Yuppy SC", "Marker Felt", "Comic Sans MS", "Kaiti SC", "STKaiti", "YouYuan", "Microsoft YaHei", cursive, sans-serif;
  font-family: var(--cute-hand-font);
}

@font-face {
  font-family: "Joyen Milk Bobo";
  src:
    local("山海牛奶波波 W"),
    local("山海牛奶波波W"),
    local("ShanHaiNiuNaiBoBo-W"),
    local("ShanHaiNiuNaiBoBo W"),
    url("./assets/fonts/ShanHaiNiuNaiBoBoW-2.ttf") format("truetype");
  font-display: optional;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: #ffe5ef;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #fff8fb;
  box-shadow: 0 0 0 1px rgba(216, 61, 120, 0.08), 0 24px 80px rgba(216, 61, 120, 0.16);
}

main {
  min-height: 100vh;
  padding-bottom: 172px;
  background: #fff8fb;
}

.shop-hero {
  position: relative;
  min-height: 222px;
  overflow: hidden;
  padding: 42px 18px 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 208, 225, 0.12) 0%, rgba(255, 154, 190, 0.08) 48%, rgba(214, 61, 119, 0.5) 100%),
    url("./assets/hero-bg-960.webp") center / cover no-repeat;
}

.shop-hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 100px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(216, 61, 120, 0.45));
}

.shop-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(113, 41, 71, 0.18), rgba(255, 255, 255, 0.05));
}

.shop-brand {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin-top: 40px;
  min-height: 118px;
}

.shop-avatar {
  width: 76px;
  height: 76px;
  border: 4px solid rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  background: #fff;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.shop-brand-copy {
  position: relative;
  min-height: 118px;
}

.shop-brand h1 {
  overflow-wrap: anywhere;
  font-size: 1.55rem;
  line-height: 1.15;
  text-shadow: 0 2px 9px rgba(128, 35, 72, 0.38);
}

.today-label {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
}

.member-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 132px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.member-option {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.member-option.active {
  background: #fff;
  color: var(--green-dark);
}

.menu-search {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  width: min(132px, calc(100% - 144px));
  min-width: 112px;
  min-height: 34px;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 8px 18px rgba(128, 35, 72, 0.14);
  backdrop-filter: blur(10px);
}

.menu-search:focus-within {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green-dark);
}

.menu-search-icon {
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("./assets/search-kitty-96.png") center / contain no-repeat;
  mask: url("./assets/search-kitty-96.png") center / contain no-repeat;
  pointer-events: none;
}

.menu-search input {
  min-height: 0;
  height: 32px;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.menu-search input:focus {
  box-shadow: none;
}

.menu-search input::-webkit-search-cancel-button,
.menu-search input::-webkit-search-decoration {
  appearance: none;
  -webkit-appearance: none;
}

.menu-search input::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.menu-search:focus-within input::placeholder {
  color: rgba(216, 61, 120, 0.72);
}

.hero-tools {
  position: absolute;
  right: 16px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.manage-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(216, 61, 120, 0.26);
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 430px);
  height: 84px;
  border-top: 1px solid var(--line);
  background: rgba(255, 251, 253, 0.98);
  transform: translateX(-50%);
}

.tab {
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: center;
  border: 0;
  background: transparent;
  color: #4e545c;
  font-size: 0.78rem;
  font-weight: 800;
}

.tab-icon {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  opacity: 0.55;
  filter: saturate(0.72) grayscale(0.18);
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.tab.active {
  color: var(--green);
}

.tab.active .tab-icon {
  opacity: 1;
  filter: none;
  transform: translateY(-1px) scale(1.04);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.add-dish-panel {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.add-dish-panel:not([open]) {
  display: block;
}

.manage-page-head {
  display: grid;
  align-items: end;
  min-height: 74px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.manage-page-head h2 {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.add-dish-panel summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: var(--green);
  font-weight: 950;
  list-style: none;
  cursor: pointer;
}

.add-dish-panel summary::-webkit-details-marker {
  display: none;
}

.add-dish-panel summary svg {
  transition: transform 0.2s ease;
}

.add-dish-panel[open] summary svg {
  transform: rotate(180deg);
}

.dish-form {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 9px;
  padding: 0 14px 14px;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.form-wide {
  grid-column: 1 / -1;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fffafd;
  color: var(--ink);
  padding: 0 10px;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(255, 124, 175, 0.18);
}

.primary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 950;
}

.primary-button {
  border: 0;
  background: var(--green);
  color: #fff;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
}

.full-width {
  width: 100%;
}

.form-actions {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 9px;
}

.form-actions .primary-button,
.form-actions .ghost-button {
  width: 100%;
}

.image-picker {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.image-preview,
.manage-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff7fb;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.image-preview {
  width: 74px;
  height: 74px;
  border-radius: 14px;
}

.image-preview img,
.manage-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-manage-list {
  display: grid;
  gap: 9px;
  padding: 10px 14px 16px;
}

.manage-dish-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffafd;
}

.manage-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  color: var(--green);
  font-size: 1.2rem;
}

.manage-dish-main {
  min-width: 0;
}

.manage-dish-main h3 {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.18;
}

.manage-dish-main p {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-dish-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.manage-dish-actions .ghost-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.restaurant-menu {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 362px);
  background: #fff8fb;
}

.category-rail {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  background: var(--soft);
}

.category-pill {
  position: relative;
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 78px;
  border: 0;
  background: transparent;
  color: #9b7785;
  padding: 8px 8px 8px 18px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 800;
}

.category-pill small {
  color: #c69aaa;
  font-size: 0.72rem;
  font-weight: 800;
}

.category-pill.active {
  background: #fff;
  color: var(--green);
}

.category-pill.active::before {
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 5px;
  content: "";
  border-radius: 0 999px 999px 0;
  background: var(--green);
}

.menu-board {
  min-width: 0;
  background: #fff;
}

.menu-board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.menu-board-head h2 {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.2;
}

.menu-count {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.dish-grid {
  display: grid;
  gap: 0;
}

.dish-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  min-height: 132px;
  padding: 14px 12px 14px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(247, 213, 227, 0.75);
}

.dish-photo {
  position: relative;
  display: grid;
  width: 86px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 52%, #fff 0 29%, transparent 30%),
    radial-gradient(circle at 50% 52%, #ffe6ef 0 48%, transparent 49%),
    linear-gradient(140deg, #fff7fb, #ffecf4 58%, #fff0f8);
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 950;
}

.dish-photo.has-image {
  border: 1px solid rgba(247, 213, 227, 0.85);
  background: #fff;
}

.dish-photo.has-image::before,
.dish-photo.has-image::after {
  display: none;
}

.dish-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-photo::before,
.dish-photo::after {
  position: absolute;
  top: 14px;
  width: 20px;
  height: 15px;
  content: "";
  border: 2px solid #d84878;
  background: var(--pink);
}

.dish-photo::before {
  right: 30px;
  border-radius: 12px 3px 12px 3px;
  transform: rotate(-18deg);
}

.dish-photo::after {
  right: 13px;
  border-radius: 3px 12px 3px 12px;
  transform: rotate(18deg);
}

.dish-photo span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.dish-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.dish-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.dish-card h3 {
  overflow-wrap: anywhere;
  font-size: 1.24rem;
  line-height: 1.18;
}

.table-code,
.tag-row {
  display: none;
}

.dish-rating {
  color: var(--yellow);
  font-size: 1.06rem;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(173, 129, 0, 0.16);
}

.dish-price {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 950;
  line-height: 1;
}

.leaf-mark {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 18px;
  border-radius: 80% 20% 80% 20%;
  background: var(--green);
  transform: rotate(-22deg);
}

.leaf-mark::after {
  position: absolute;
  left: 8px;
  top: 2px;
  width: 2px;
  height: 16px;
  content: "";
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.68);
  transform: rotate(22deg);
}

.dish-note {
  overflow: hidden;
  color: #b58b9d;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish-actions {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.add-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 5px 12px rgba(216, 61, 120, 0.24);
}

.add-button svg {
  width: 23px;
  height: 23px;
  stroke-width: 3;
}

.tiny-button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff1f7;
  color: #d58aa9;
}

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

.order-ticket {
  position: fixed;
  left: 50%;
  bottom: 94px;
  z-index: 45;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(76px, 0.88fr);
  align-items: center;
  gap: 9px;
  width: min(calc(100% - 18px), 410px);
  min-height: 74px;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid rgba(247, 213, 227, 0.9);
  background: rgba(255, 251, 253, 0.97);
  box-shadow: 0 10px 34px rgba(216, 61, 120, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.cart-button {
  position: relative;
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: #fff1f7;
  color: #dba0b8;
}

.cart-button.has-orders {
  color: var(--green);
}

.cart-button span {
  position: absolute;
  right: -2px;
  top: -4px;
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
}

.bar-link,
.bar-submit {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 950;
}

.bar-link {
  border: 0;
  background: transparent;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bar-submit {
  border: 0;
  background: var(--green);
  color: #fff;
}

.bar-submit:disabled {
  background: #fff1f6;
  color: #dfb4c6;
}

.ghost-button:disabled {
  color: #d8b7c5;
}

body.cart-open {
  overflow: hidden;
}

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

.cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(59, 37, 49, 0.34);
}

.cart-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  width: min(100%, 430px);
  max-height: min(78vh, 680px);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(247, 213, 227, 0.95);
  background: #fffafd;
  box-shadow: 0 -16px 42px rgba(90, 36, 62, 0.22);
}

.cart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 1.2rem;
}

.cart-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff1f7;
  color: var(--green-dark);
}

.cart-list {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.cart-item-main {
  min-width: 0;
}

.cart-item-main h3 {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.2;
}

.cart-item-main p {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 30px 32px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff7fb;
}

.quantity-stepper button {
  display: grid;
  width: 30px;
  height: 32px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 950;
}

.quantity-stepper span {
  color: var(--ink);
  text-align: center;
  font-weight: 950;
}

.cart-footer {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.summary-number {
  display: block;
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.summary-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.order-list,
.history-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.order-item,
.order-day,
.ticket-card,
.history-day,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(216, 61, 120, 0.07);
}

.order-day {
  overflow: hidden;
}

.order-day > h3 {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff1f7;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.ticket-card {
  display: grid;
  gap: 10px;
  margin: 10px;
  padding: 12px;
}

.ticket-card.status-cancelled {
  opacity: 0.68;
  text-decoration: none;
}

.ticket-card.status-cancelled .ticket-dish {
  text-decoration: line-through;
}

.ticket-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.ticket-topline h3 {
  font-size: 1.02rem;
}

.ticket-dishes {
  display: grid;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff7fb;
}

.ticket-dish {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.ticket-dish span {
  overflow-wrap: anywhere;
}

.ticket-actions {
  display: flex;
  justify-content: flex-end;
}

.ticket-cancel {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.ticket-status {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

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

.order-main,
.history-entry {
  min-width: 0;
}

.order-item h3,
.history-entry h3 {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.order-meta,
.history-meta,
.empty-state p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.pill-person {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff1f7;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 950;
}

.pill-person.partner {
  background: var(--pink-soft);
  color: #d84878;
}

.history-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  align-items: end;
  background: #fff;
}

.history-day {
  overflow: hidden;
}

.history-day > h3 {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff1f7;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.history-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
}

.history-entry + .history-entry {
  border-top: 1px solid var(--line);
}

.status-cancelled {
  color: var(--muted);
  text-decoration: line-through;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 12px;
  padding: 28px 18px;
  text-align: center;
}

.empty-state h3 {
  font-size: 1.05rem;
}

.mini-cat {
  position: relative;
  width: 44px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 44% 44%;
  background: #fff;
}

.mini-cat::before,
.mini-cat::after {
  position: absolute;
  top: -8px;
  width: 13px;
  height: 14px;
  content: "";
  border: 2px solid var(--ink);
  background: #fff;
}

.mini-cat::before {
  left: 6px;
  border-radius: 9px 2px 6px 2px;
  transform: rotate(30deg);
}

.mini-cat::after {
  right: 6px;
  border-radius: 2px 9px 2px 6px;
  transform: rotate(-30deg);
}

@media (max-width: 380px) {
  .restaurant-menu {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .category-pill {
    min-height: 72px;
    padding-left: 14px;
    font-size: 0.92rem;
  }

  .dish-card {
    grid-template-columns: 78px minmax(0, 1fr) 38px;
    gap: 9px;
    padding-left: 12px;
  }

  .dish-photo {
    width: 74px;
    border-radius: 14px;
  }

  .dish-card h3 {
    font-size: 1.08rem;
  }

  .dish-rating {
    font-size: 0.9rem;
  }

  .dish-price {
    font-size: 1.18rem;
  }

  .order-ticket {
    grid-template-columns: 50px minmax(0, 1fr) minmax(66px, 0.78fr);
    gap: 6px;
    padding-inline: 9px;
  }

  .bar-link,
  .bar-submit {
    font-size: 0.84rem;
  }

  .cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cart-item > .tiny-button {
    grid-column: 2;
  }

  .quantity-stepper {
    grid-template-columns: 28px 30px 28px;
  }

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

  .manage-dish-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .manage-dish-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
