:root {
  color-scheme: light;
  --ink: #1d252c;
  --muted: #63717c;
  --line: #ece7d9;
  --soft: #f5f5f5;
  --panel: #ffffff;
  --accent: #ffd429;
  --accent-strong: #111111;
  --warm: #c54f2e;
  --gold: #b7791f;
  --ok: #247a3d;
  --danger: #b42318;
  --shadow: 0 10px 24px rgba(29, 37, 44, 0.09);
  --customer-sticky-top: 82px;
  --customer-bottom-space: calc(92px + env(safe-area-inset-bottom));
}

body.customer-desktop-app-host {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #e8edf0;
}

#customerDesktopAppHost:not([hidden]) {
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: start center;
  padding: 10px;
  box-sizing: border-box;
}

#customerDesktopAppHost iframe {
  width: min(430px, 100%);
  height: calc(100vh - 20px);
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(29, 37, 44, 0.18);
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: #111111;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 212, 41, 0.38), transparent 34%),
    linear-gradient(180deg, #fff9db 0%, #fff4b8 52%, #ffffff 100%);
  transition: opacity 0.36s ease, visibility 0.36s ease;
}

.app-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.skip-splash .app-splash {
  display: none;
}

.app-splash-card {
  display: grid;
  grid-template-columns: 76px minmax(0, max-content);
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(360px, calc(100vw - 48px));
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(14px);
}

.app-splash-logo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: #111111;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  font-size: 38px;
  font-weight: 950;
  overflow: hidden;
}

.app-splash-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-splash strong {
  display: block;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
}

.app-splash span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: #5f646b;
  opacity: 1;
}

.app-splash-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.app-splash-copy b {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.app-splash-copy em {
  padding: 7px 14px;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 212, 41, 0.35);
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
}

.app-splash-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.app-splash-dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #111111;
  opacity: 0.24;
  animation: splashDot 1.2s ease-in-out infinite;
}

.app-splash-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.app-splash-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes splashDot {
  0%, 80%, 100% {
    opacity: 0.22;
    transform: translateY(0);
  }
  40% {
    opacity: 0.86;
    transform: translateY(-4px);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f5f5f5;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.cart-locked {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.shell.admin-portal {
  min-width: 1180px;
  overflow-x: auto;
}

.shell.admin-portal .topbar,
.shell.admin-portal .main {
  min-width: 1180px;
}

.shell.admin-portal .main {
  width: min(1440px, 100%);
  padding: 24px 28px 80px;
}

.shell > .topbar,
.shell > .main > .view.active > :not(.customer-bottom-nav):not(.cart-launcher):not(.cart-backdrop) {
  transform: translateY(var(--page-pull, 0));
  transition: transform 0.22s ease;
  will-change: transform;
}

.shell.is-pulling-refresh > .topbar,
.shell.is-pulling-refresh > .main > .view.active > :not(.customer-bottom-nav):not(.cart-launcher):not(.cart-backdrop) {
  transition: none;
}

.pull-refresh-indicator {
  position: fixed;
  left: 50%;
  top: 10px;
  z-index: 120;
  min-width: 118px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 17, 17, 0.9);
  box-shadow: 0 10px 24px rgba(29, 37, 44, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-54px + var(--pull, 0px)));
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
  font-size: 13px;
  font-weight: 900;
}

.pull-refresh-indicator.show {
  opacity: 1;
}

.pull-refresh-indicator.armed,
.pull-refresh-indicator.refreshing {
  background: rgba(197, 79, 46, 0.94);
}

.pull-refresh-indicator.done {
  background: rgba(14, 135, 96, 0.96);
}

.pull-refresh-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1;
}

.pull-refresh-indicator.refreshing .pull-refresh-icon {
  animation: pullRefreshSpin 0.72s linear infinite;
}

@keyframes pullRefreshSpin {
  to {
    transform: rotate(360deg);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.staff-portal .topbar {
  min-height: 58px;
  padding: 8px clamp(12px, 3vw, 24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #111111;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.22);
}

.brand-mark.brand-mark-9to5 {
  position: relative;
  grid-template-columns: auto auto auto;
  place-content: center;
  align-items: center;
  gap: 1px;
  background: var(--accent);
  color: #111111;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  overflow: visible;
}

.brand-mark-9to5 span,
.brand-mark-9to5 em {
  display: block;
  line-height: 1;
}

.brand-mark-9to5 em {
  margin: 0 1px;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  transform: translateY(1px);
}

.brand-mark-9to5::after,
.staff-pos-logo-9to5::after,
.admin-pc-logo-9to5::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 48%;
  height: 6px;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
  opacity: 0.95;
  pointer-events: none;
}

.brand-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.private-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 8px;
  background: #fff3bf;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.private-portal-badge button {
  min-height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  color: #111111;
  background: var(--accent);
  font-size: 12px;
}

.portal-auth-card {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  margin: 48px auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(29, 37, 44, 0.08);
}

.portal-auth-card h2 {
  margin: 0 0 6px;
}

.portal-auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.mode-switch span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff3bf;
  color: #111111;
  font-weight: 800;
}

.mode-switch strong {
  font-size: 13px;
}

.mode-switch.enterprise {
  border-color: rgba(255, 191, 0, 0.65);
  background: #fff8df;
}

.mode-switch.enterprise span {
  background: var(--accent);
  color: #111111;
}

.mode-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 238px;
  padding: 4px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.08);
}

.mode-segment button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 7px;
  color: rgba(17, 17, 17, 0.72);
  background: transparent;
  font-weight: 900;
  white-space: nowrap;
}

.mode-segment button.active {
  color: var(--accent-strong);
  background: #fff;
}

.mode-segment span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: inherit;
  background: #fff4bd;
  font-size: 12px;
}

.mode-segment button.active span {
  color: #111111;
  background: var(--accent);
}

.mode-segment strong {
  font-size: 12px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.tab-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--accent-strong);
  background: #fff1ad;
  font-size: 12px;
  font-weight: 900;
}

.tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(29, 37, 44, 0.08);
}

.main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 36px) 118px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.customer-page,
.mine-page {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 18px 22px;
  min-height: 168px;
  border: 1px solid #efe4b2;
  border-radius: 14px;
  color: #111111;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 212, 41, 0.38), transparent 24%),
    linear-gradient(180deg, #fff3b5 0%, #fffdf1 52%, #ffffff 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 24px rgba(29, 37, 44, 0.08);
  overflow: hidden;
}

.hero-logo {
  width: 100px;
  height: 100px;
  align-self: start;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  color: #111111;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.12);
  font-size: 42px;
  font-weight: 900;
}

.hero-logo img,
.store-logo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-copy {
  min-width: 0;
  padding-right: 124px;
}

.hero-mode-switch {
  position: absolute;
  top: 48px;
  right: 16px;
  z-index: 2;
}

.hero-mode-switch .mode-switch {
  min-height: 40px;
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.1);
}

.hero-mode-switch .mode-switch.enterprise {
  background: #fff8dc;
  border-color: rgba(255, 196, 0, 0.72);
}

.hero h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(17, 17, 17, 0.76);
  font-size: 16px;
  line-height: 1.65;
}

.hero-address {
  margin-top: 8px !important;
  font-size: 13px !important;
  color: rgba(17, 17, 17, 0.82) !important;
}

.hero-tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  max-width: 100%;
  overflow: hidden;
}

.hero-tools .share-row {
  margin-top: 0;
}

.support-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  color: #111111;
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex: 0 1 auto;
}

.google-review-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  color: #111111;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  flex: 0 0 auto;
}

.google-review-chip span {
  display: none !important;
}

.support-chip span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #111111;
  background: #fff;
}

.unread-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.support-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  max-width: 420px;
  max-height: min(620px, calc(100svh - 150px));
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  overflow: hidden;
}

.support-modal-backdrop {
  place-items: center;
  padding: 14px;
}

.support-modal {
  width: min(620px, calc(100vw - 22px));
  max-height: min(820px, calc(100dvh - 28px));
  grid-template-rows: auto minmax(0, 1fr);
}

.support-modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.support-modal .support-panel {
  max-width: none;
  max-height: none;
  min-height: 0;
  margin: 0;
  padding: 14px 16px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: auto;
}

.support-modal .support-panel.compose-open {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.support-modal .support-panel.compose-open > * + * {
  margin-top: 8px;
}

.support-modal .support-panel.compose-open .support-compose,
.support-modal .support-panel.compose-open .support-history {
  min-height: max-content;
  overflow: visible;
}

.support-compose-toggle {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.support-compose-toggle button {
  min-height: 34px;
  white-space: nowrap;
}

.support-compose-toggle button span {
  display: inline-block;
  width: 16px;
  font-size: 18px;
  line-height: 1;
}

.support-compose-toggle small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.support-modal .support-compose {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.support-modal #supportMessage {
  min-height: 136px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.5;
}

.support-modal .support-history {
  min-height: 0;
  max-height: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

.support-modal .support-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.support-chat,
.support-thread-list {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.support-conversation-layout {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  height: min(640px, calc(100svh - 210px));
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.support-people-list {
  display: grid;
  align-content: start;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #f6f8f8;
}

.support-people-list button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 9px;
  border-bottom: 1px solid #e6ecef;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.support-people-list button.active {
  background: #e7f5f3;
}

.support-people-list strong,
.support-people-list span,
.support-people-list em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-people-list span,
.support-people-list em {
  display: none;
}

.support-people-list b {
  position: static;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 11px;
}

.support-dialog-window {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #eef4f3;
}

.support-dialog-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.support-dialog-head strong,
.support-dialog-head span {
  display: block;
}

.support-dialog-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.wechat-chat {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-content: start;
  overflow: auto;
  padding: 14px;
}

.wechat-message {
  max-width: min(78%, 560px);
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.wechat-message.outgoing {
  align-self: flex-end;
}

.wechat-message strong {
  color: var(--muted);
  font-size: 12px;
}

.wechat-message span {
  display: block;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(29, 37, 44, 0.06);
  line-height: 1.45;
}

.wechat-message.outgoing span {
  background: #c9f0c6;
}

.support-message-images {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.support-message-images a,
.support-message-images img {
  display: block;
}

.support-message-images a {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 8px;
  background: #fff;
}

.support-message-images img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  background: #fff;
}

.support-image-only {
  color: var(--muted);
}

.wechat-message em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.support-compose,
.support-history {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.support-history {
  overflow: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.support-history > strong {
  font-size: 12px;
}

.support-thread {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.support-thread > .support-chat {
  max-height: min(360px, 45svh);
  overflow: auto;
  padding-right: 3px;
}

.support-thread-head,
.support-reply-row {
  display: grid;
  gap: 8px;
  align-items: center;
}

.support-thread-head {
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr) auto auto;
  width: 100%;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.support-reply-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.support-photo-upload,
.support-photo-mini {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.support-photo-upload {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 8px;
  color: #111111;
  background: #fff7d6;
  font-size: 13px;
  font-weight: 800;
}

.support-photo-mini {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 17px;
}

.support-photo-upload input,
.support-photo-mini input {
  display: none;
}

.support-draft-preview {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px dashed rgba(17, 17, 17, 0.28);
  border-radius: 8px;
  background: #fffdf2;
}

.support-draft-preview span {
  color: #111111;
  font-size: 12px;
  font-weight: 800;
}

.support-draft-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.support-draft-preview img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(17, 17, 17, 0.18);
}

.support-draft-preview button {
  justify-self: start;
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.login-modal {
  max-width: 460px;
}

.login-method-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.login-method {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.login-method.is-active {
  border-color: var(--yellow-strong);
  background: var(--yellow);
  color: var(--ink);
}

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

.login-register-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.login-note,
.social-login-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.social-login-panel {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fffdf2;
}

.full-width {
  width: 100%;
}

.member-test-login {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.member-test-login strong {
  font-size: 13px;
}

.member-test-login .login-code-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.login-code-row .secondary:disabled,
.login-code-row .secondary.is-cooling {
  border-color: #d1d5db;
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 1;
}

.login-screen {
  position: relative;
  width: min(430px, 100vw);
  min-height: min(740px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  padding: 58px 30px 132px;
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 74px rgba(15, 23, 42, 0.18);
}

.login-screen h2 {
  margin: 72px 0 44px;
  color: #303136;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.login-close-x,
.login-back {
  position: absolute;
  top: 28px;
  left: 28px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  color: #2f3136;
  background: transparent;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.login-back {
  font-size: 54px;
  transform: translateY(-4px);
}

.login-phone-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 22px;
  border-bottom: 1px solid #d9d9d9;
}

.login-phone-row select,
.login-phone-row input {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #303136;
  font-size: 21px;
  font-weight: 700;
}

.login-phone-row input::placeholder,
.login-line-input::placeholder,
.login-register-grid.compact input::placeholder {
  color: #9a9ca3;
}

.login-agreement {
  margin: 0 0 24px;
  color: #a2a4ab;
  font-size: 14px;
  line-height: 1.45;
}

.login-primary {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: #111111;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.login-primary.is-cooling,
.login-primary:disabled,
.login-resend:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.login-bottom-links {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.login-text-link {
  border: 0;
  background: transparent;
  color: #008f8f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.login-left-link {
  justify-self: start;
  margin-top: 4px;
}

.login-invite-panel {
  display: none;
  gap: 6px;
  margin-top: 14px;
}

.login-invite-panel.is-open {
  display: grid;
}

.login-invite-panel input,
.login-line-input,
.login-register-grid.compact input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.login-invite-panel span {
  color: var(--muted);
  font-size: 12px;
}

.login-social-row {
  position: absolute;
  right: 0;
  bottom: 44px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.login-social-btn {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4f4f4;
  color: #111;
  cursor: pointer;
}

.login-social-btn svg {
  width: 34px;
  height: 34px;
}

.login-social-btn .login-social-xhs {
  width: 36px;
  height: 36px;
}

.login-sent-text {
  margin: 0 0 82px;
  color: #3f3f46;
  font-size: 20px;
  line-height: 1.45;
}

.login-code-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.01;
}

.login-code-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
  cursor: text;
}

.login-code-slots span {
  height: 40px;
  border-bottom: 2px solid #e0e0e0;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  line-height: 38px;
}

.login-resend {
  min-height: 32px;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #008f8f;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.login-resend.is-cooling {
  color: #008f8f;
  opacity: 1;
}

.login-register-grid.compact {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .modal-backdrop:has(.login-screen) {
    align-items: stretch;
    justify-items: stretch;
    padding: 0;
    background: #fff;
  }

  .login-screen {
    width: 100vw;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 70px 30px calc(118px + env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: none;
  }

  .login-screen h2 {
    margin-top: 74px;
    font-size: 36px;
  }

  .login-social-row {
    bottom: calc(34px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 370px) {
  .login-screen {
    padding-right: 24px;
    padding-left: 24px;
  }

  .login-screen h2 {
    font-size: 32px;
  }

  .login-code-slots {
    gap: 12px;
  }

  .login-social-row {
    gap: 24px;
  }
}

.support-thread-head em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-thread-head span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 11px;
  font-weight: 800;
}

.support-thread-head b {
  color: var(--muted);
}

.chat-line {
  display: grid;
  gap: 2px;
  max-width: 88%;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.chat-line.customer {
  justify-self: start;
  background: #f4f7f7;
}

.chat-line.staff {
  justify-self: end;
  color: #064e3b;
  background: #dcfce7;
}

.chat-line strong {
  font-size: 11px;
}

.support-panel .field label {
  color: var(--muted);
}

.support-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.hero-stats {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-hero-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}

.admin-hero-actions button {
  min-width: 92px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  text-align: left;
}

.admin-hero-actions strong,
.admin-hero-actions span {
  display: block;
}

.admin-hero-actions strong {
  font-size: 18px;
}

.admin-hero-actions span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.stat {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.05);
}

.stat strong {
  display: block;
  font-size: 20px;
}

.hours-stat strong {
  display: grid;
  gap: 2px;
  align-content: center;
  font-size: 13px;
  line-height: 1.2;
}

.hours-stat strong span {
  display: block;
  color: #111111;
  font-size: 13px;
  white-space: nowrap;
}

.stat span {
  color: rgba(17, 17, 17, 0.58);
  font-size: 12px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.share-mark,
.share-btn {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 7px;
  color: var(--accent-strong);
  background: #eef8f6;
}

.share-mark {
  color: var(--warm);
  background: #fff7ef;
}

.share-btn svg,
.share-mark svg {
  width: 17px;
  height: 17px;
}

.hero .share-btn,
.hero .share-mark {
  border-color: rgba(17, 17, 17, 0.1);
  color: #111111;
  background: rgba(255, 255, 255, 0.86);
}

.cart-share {
  margin-bottom: 10px;
}

.share-open-btn {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #eef8f6;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.share-open-btn span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.share-open-btn svg {
  width: 17px;
  height: 17px;
}

.item-media-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.product-video-btn {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 8px;
  color: #dc2626;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.product-video-btn span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
}

.product-video-btn svg {
  width: 19px;
  height: 19px;
}

.detail-video-btn {
  width: fit-content;
  margin: 2px 0 10px;
}

.hero .share-open-btn {
  border-color: rgba(17, 17, 17, 0.1);
  color: #111111;
  background: rgba(255, 255, 255, 0.86);
  padding: 0 9px;
  border-radius: 999px;
  flex: 0 1 auto;
}

.share-modal {
  width: min(560px, calc(100vw - 22px));
}

.google-review-modal {
  width: min(520px, calc(100vw - 22px));
}

.google-review-stars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.google-review-stars label {
  cursor: pointer;
}

.google-review-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.google-review-stars span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e4e6;
  border-radius: 8px;
  color: #526169;
  background: #f8fbfb;
  font-weight: 900;
}

.google-review-stars input:checked + span {
  border-color: #f4c400;
  color: #9a6700;
  background: #fff6cf;
}

.google-review-slider {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #d7e4e6;
  border-radius: 10px;
  background: #f8fbfb;
}

.google-review-slider-head,
.google-review-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.google-review-slider-head label {
  color: #526169;
  font-size: 13px;
  font-weight: 900;
}

.google-review-slider-head strong {
  color: #111111;
  font-size: 22px;
  line-height: 1;
}

.google-review-slider input[type="range"] {
  width: 100%;
  accent-color: #FFB800;
}

.google-review-scale {
  color: #8a969d;
  font-size: 12px;
  font-weight: 800;
}

.google-review-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d6eceb;
  border-radius: 8px;
  color: #526169;
  background: #f7f7f7;
  font-size: 13px;
  line-height: 1.45;
}

.share-preview-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.share-preview-art {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--art-bg, #fff3bf);
}

.share-preview-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-preview-art svg {
  width: 100%;
  height: 100%;
}

.share-preview-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111111;
  background: var(--accent);
  font-size: 34px;
  font-weight: 900;
}

.share-preview-logo.gift {
  background: #E53935;
}

.share-preview-card span,
.share-preview-card strong,
.share-preview-card p {
  display: block;
}

.share-preview-card span {
  color: var(--warm);
  font-size: 12px;
  font-weight: 900;
}

.share-preview-card strong {
  margin-top: 4px;
  font-size: 19px;
  line-height: 1.25;
}

.share-preview-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.referral-explain {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 196, 0, 0.34);
  border-radius: 8px;
  color: #073b42;
  background: #fff8dc;
}

.referral-explain span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.share-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.share-channel {
  min-height: 94px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #fff;
  text-align: center;
}

.share-channel span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111111;
  background: var(--accent);
}

.share-channel.wechat span {
  background: #19b15f;
}

.share-channel.facebook span {
  background: #1877f2;
}

.share-channel.instagram span {
  background: #d62976;
}

.share-channel svg {
  width: 22px;
  height: 22px;
}

.share-channel strong,
.share-channel em {
  display: block;
}

.share-channel strong {
  font-size: 13px;
}

.share-channel em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
}

.share-link-box {
  overflow: hidden;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbfb;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commission-share-btn {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(17, 17, 17, 0.42);
  border-radius: 8px;
  color: #062f2d;
  background: linear-gradient(135deg, #fff2a8 0%, #fff1bd 100%);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  text-align: left;
}

.commission-share-btn span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #FFD84A, #FFB800);
  box-shadow: 0 8px 18px rgba(8, 162, 155, 0.24);
}

.commission-share-btn svg {
  width: 22px;
  height: 22px;
}

.commission-share-btn strong,
.commission-share-btn em {
  display: block;
}

.commission-share-btn strong {
  color: #052b29;
  font-size: 17px;
  font-weight: 900;
}

.commission-share-btn em {
  color: #355a55;
  font-size: 12px;
  font-weight: 750;
  font-style: normal;
}

.commission-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf2 100%);
  box-shadow: 0 10px 24px rgba(5, 95, 90, 0.1);
}

.commission-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ffd429, #E53935, #FFB800);
}

.commission-head {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.commission-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111111;
  background: #ffd429;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.2);
}

.commission-head h2 {
  margin: 0;
  color: #071b20;
  font-size: 21px;
  font-weight: 950;
}

.commission-head p {
  margin: 3px 0 0;
  color: #355a55;
  font-size: 12px;
  font-weight: 750;
}

.commission-head > strong {
  padding: 8px 12px;
  border-radius: 999px;
  color: #111111;
  background: linear-gradient(135deg, #ffd429, #FFD84A);
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.2);
}

.commission-rule {
  margin: 12px 0 0;
  color: #233b42;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.commission-rule b {
  color: #111111;
  font-weight: 900;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.order-menu {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  overflow: visible;
}

.category-rail {
  position: sticky;
  top: var(--customer-sticky-top);
  z-index: 3;
  display: grid;
  max-height: calc(100dvh - var(--customer-sticky-top) - var(--customer-bottom-space) - 10px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  background: #f0f0f0;
  border: 1px solid #ececec;
}

.category-tab {
  min-height: 54px;
  padding: 10px 12px 10px 14px;
  border-left: 4px solid transparent;
  color: #595f65;
  text-align: left;
  background: transparent;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

.category-tab.active {
  border-left-color: var(--accent);
  color: #111111;
  background: #fff;
  font-weight: 900;
}

.category-tab.locked {
  color: #9aa5ad;
  background: #eeeeee;
  cursor: not-allowed;
}

.category-tab.locked small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #7d8890;
}

.phone-country-field select {
  min-width: 112px;
}

.menu-list-wrap {
  min-width: 0;
  overflow: visible;
}

.menu-current-category {
  display: none;
}

.promo-bar,
.member-panel,
.compact-panel {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.promo-summary,
.member-row,
.compact-title {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  text-align: left;
  background: #fff;
}

.promo-summary span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-title span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-title strong {
  margin-right: 8px;
  color: var(--accent-strong);
}

.groupbuy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #f8fbfb;
}

.groupbuy-card {
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: #fff;
}

.groupbuy-card.active {
  border-color: var(--accent);
  background: #f2f2f2;
}

.groupbuy-card strong,
.groupbuy-card span {
  display: block;
}

.groupbuy-card strong {
  font-size: 13px;
}

.groupbuy-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.split-intro .groupbuy-list,
.catering-panel {
  background: #fff;
}

.catering-head {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.catering-head strong {
  color: var(--ink);
  font-size: 16px;
}

.catering-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.catering-form {
  padding: 12px;
}

.catering-recent {
  padding: 10px 12px 12px;
}

.readonly-fee {
  color: #6b7280;
  background: #f3f4f6;
  cursor: not-allowed;
}

.member-admin-grid {
  display: grid;
  gap: 12px;
}

.member-admin-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.member-admin-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  color: var(--ink);
  text-align: left;
  background: #f8faf9;
}

.member-admin-summary strong,
.member-admin-summary em {
  display: block;
}

.member-admin-summary em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-admin-form {
  padding: 0;
}

.enterprise-min {
  padding: 7px 9px;
  border-radius: 8px;
}

.enterprise-min.warn {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fff1f2;
}

.enterprise-min.ok {
  border: 1px solid #a7f3d0;
  color: #065f46;
  background: #ecfdf5;
}

.group-progress {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 9px;
  border-radius: 8px;
  background: #f8fbfb;
}

.group-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.group-progress-head strong {
  color: var(--accent-strong);
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6ea;
}

.progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #E53935, #ffd429);
  transition: width 0.25s ease;
}

.group-progress.complete .progress-track {
  box-shadow: 0 0 16px rgba(255, 196, 0, 0.55);
}

.group-progress.complete .progress-track span {
  background: linear-gradient(90deg, #E53935, #f6b95b, #e54848, #E53935);
}

.split-order-progress {
  display: grid;
  gap: 7px;
  margin: 8px 0;
  padding: 9px;
  border: 1px solid #b8e4e0;
  border-radius: 8px;
  background: #fff8dc;
}

.split-order-progress.complete {
  border-color: #86efac;
  background: #fff8dc;
}

.split-order-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.split-order-progress-head span {
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.split-order-progress-head strong {
  margin-right: 6px;
  color: #075985;
}

.split-share-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.22);
  flex: 0 0 auto;
  min-width: 132px;
  white-space: nowrap;
}

.split-share-btn:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

.split-order-progress.complete .split-order-progress-head strong {
  color: #166534;
}

.split-order-progress em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.group-progress em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.line-status {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: #f2f2f2;
  font-size: 11px;
  font-weight: 800;
}

.line-status.pending {
  border: 1px solid #93c5fd;
  color: #075985;
  background: #e0f2fe;
}

.line-status.success {
  border: 1px solid #86efac;
  color: #166534;
  background: #dcfce7;
}

.history-list {
  display: grid;
  gap: 12px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #f8fbfb;
}

.history-group {
  display: grid;
  gap: 8px;
}

.history-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.history-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.history-head,
.history-item,
.history-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.history-head strong,
.history-head span,
.history-item strong,
.history-item span {
  display: block;
}

.history-head span,
.history-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.history-order-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
}

.history-order-summary > strong {
  font-size: 17px;
  line-height: 1.1;
}

.history-order-summary .history-order-time {
  flex: 1 0 100%;
  color: var(--muted);
  font-size: 12px;
}

.history-order-summary .customer-order-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #f4b400;
  border-radius: 999px;
  color: #7a4300;
  background: #fff1b8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(122, 67, 0, 0.12);
}

.history-order-summary .customer-order-status.status-ready {
  border-color: #22a06b;
  color: #075c3b;
  background: #d8f8e8;
}

.history-order-summary .customer-order-status.status-completed {
  border-color: #7b8794;
  color: #334155;
  background: #e9eef2;
}

.history-order-summary .customer-order-status.status-cancelled {
  border-color: #ef4444;
  color: #991b1b;
  background: #fee2e2;
}

.history-order-summary .customer-order-status.status-new,
.history-order-summary .customer-order-status.status-confirmed,
.history-order-summary .customer-order-status.status-scheduled {
  border-color: #3b82f6;
  color: #1e3a8a;
  background: #dbeafe;
}

.history-item strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.history-items {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.history-item {
  flex-wrap: wrap;
}

.history-item > div {
  flex: 1;
  min-width: 180px;
}

.review-locked {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 7px;
  color: #6d747b;
  background: #eef1f2;
  font-size: 12px;
  font-weight: 800;
}

.history-actions {
  justify-content: flex-start;
  margin-top: 10px;
}

.inline-form {
  flex: 1 0 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.review-rating-list {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.review-rating-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-rating-label {
  width: 42px;
  flex: 0 0 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 34px;
}

.review-star-control {
  position: relative;
  width: 190px;
  max-width: 100%;
  height: 36px;
  display: block;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.review-star-base,
.review-star-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: #aab3bc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: 4px;
  pointer-events: none;
}

.review-star-fill {
  width: 0;
  overflow: hidden;
  color: #ffc400 !important;
}

.review-star-control input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.review-detail-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.compact-empty {
  padding: 14px 10px;
}

.compact-help-text {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  line-height: 1.55;
}

.promo-summary strong {
  margin-right: 6px;
  color: var(--warm);
}

.chevron {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  color: var(--accent-strong);
  background: #f2f2f2;
  font-weight: 900;
}

.promo-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #fff8f1;
}

.promo-option {
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #f1c9aa;
  border-radius: 8px;
  text-align: left;
  background: #fff;
}

.promo-option strong,
.promo-option span {
  display: block;
}

.promo-option strong {
  color: var(--warm);
  font-size: 13px;
}

.promo-option span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.member-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: var(--warm);
  font-weight: 900;
  overflow: hidden;
}

.member-avatar.large {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 28px;
}

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

.member-fixed,
.member-live {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.member-fixed {
  flex: 1;
}

.member-live {
  flex: 0 0 auto;
}

.member-fixed strong,
.member-live strong {
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.member-fixed span,
.member-live span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-editor {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.member-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.member-editor-head strong {
  color: var(--ink);
  font-size: 15px;
}

.member-collapse-btn {
  min-height: 32px;
  padding: 0 12px;
}

.review-editor {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.reward-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.reward-chip {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 10px;
}

.mine-page {
  display: grid;
  gap: 14px;
  margin-top: -24px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #f3f4f5;
}

.shell:not(.admin-portal):not(.staff-portal) .view.active,
.view.customer,
.customer-page,
.mine-page,
.mine-page *,
.customer-bottom-nav,
.customer-bottom-nav * {
  min-width: 0;
}

.shell:not(.admin-portal):not(.staff-portal) .view.active,
.view.customer,
.customer-page,
.mine-page {
  max-width: 100%;
  overflow-x: clip;
}

.view.customer,
.customer-page {
  overflow-x: clip;
  overflow-y: visible;
}

.shell:not(.admin-portal):not(.staff-portal),
.shell:not(.admin-portal):not(.staff-portal) .view.active.customer {
  overflow-x: clip;
  overflow-y: visible;
}

.mine-page button,
.mine-page strong,
.mine-page em,
.mine-page span,
.mine-page p {
  overflow-wrap: anywhere;
}

.mine-hero {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px clamp(16px, 4vw, 36px) 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(19, 25, 32, 0.96), rgba(43, 47, 52, 0.92)),
    radial-gradient(circle at 18% 0%, rgba(246, 185, 91, 0.22), transparent 34%);
}

.mine-profile-trigger {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 13px;
  max-width: calc(100% - 146px);
  color: #fff;
  text-align: left;
}

.mine-profile-trigger button {
  min-width: 0;
  padding: 0;
  color: #fff;
  text-align: left;
  background: transparent;
}

.avatar-upload-trigger {
  position: relative;
  display: inline-grid;
  cursor: pointer;
}

.avatar-upload-trigger input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mine-profile-trigger strong,
.mine-profile-trigger em {
  display: block;
}

.mine-profile-trigger strong {
  font-size: 25px;
  line-height: 1.15;
}

.mine-profile-trigger em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 14px;
}

.mine-icons {
  position: absolute;
  right: clamp(16px, 4vw, 36px);
  top: 28px;
  display: flex;
  gap: 10px;
  max-width: calc(100% - 32px);
  flex-wrap: nowrap;
}

.mine-icons button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
  line-height: 1;
  flex: 0 0 36px;
  white-space: nowrap;
  overflow: hidden;
}

.mine-icons svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.settings-panel {
  position: absolute;
  top: 72px;
  right: clamp(16px, 4vw, 36px);
  z-index: 5;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: #f8faf9;
}

.settings-row .compact-language-toggle {
  min-width: 48px;
  padding-inline: 10px;
  white-space: nowrap;
}

.settings-stack {
  display: grid;
  gap: 12px;
}

.settings-stack select {
  min-width: 220px;
}

.inline-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.settings-row strong,
.settings-row em {
  display: block;
}

.settings-row em {
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.danger-link {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  color: #b91c1c;
  background: #fee2e2;
  font-weight: 900;
}

.vip-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.vip-strip span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-strip strong {
  margin-right: 6px;
  font-size: 24px;
  font-style: italic;
}

.vip-strip .secondary {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  color: #18323b;
  background: #f2f8fb;
  border-radius: 999px;
  white-space: nowrap;
}

.vip-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.vip-perks div {
  min-width: 0;
  min-height: 66px;
  padding: 9px 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(12, 24, 35, 0.62);
}

.vip-perks strong,
.vip-perks span {
  display: block;
}

.vip-perks strong {
  font-size: 14px;
  white-space: nowrap;
}

.vip-perks span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.28;
}

.mine-card {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

.mine-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.card-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title-line h2 {
  margin-bottom: 0;
}

.card-title-line span {
  color: var(--muted);
}

.member-enterprise-inline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e7eef1;
}

.compact-title-line h2 {
  font-size: 16px;
}

.compact-title-line span {
  font-size: 12px;
}

.member-enterprise-inline .catering-form {
  gap: 10px;
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.wallet-actions button {
  min-height: 40px;
  min-width: 0;
  border-radius: 8px;
  background: #f2f2f3;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.wallet-actions span {
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 8px;
  color: #fff;
  background: #ff3b1f;
  font-size: 12px;
}

.asset-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 12px 8px;
}

.benefit-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
}

.asset-item {
  min-width: 0;
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  overflow-wrap: anywhere;
}

.asset-item.active span {
  background: #ffd429;
}

.asset-item span,
.mine-tool span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #E53935;
  font-weight: 900;
}

.asset-item strong,
.asset-item em {
  display: block;
}

.asset-item strong {
  margin-top: 5px;
  font-size: 13px;
}

.asset-item em {
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.asset-detail-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.asset-detail-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.asset-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border-radius: 7px;
  background: #fff;
}

.asset-detail-row span {
  min-width: 0;
}

.asset-detail-row strong,
.asset-detail-row em {
  display: block;
}

.asset-detail-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.asset-detail-row b {
  white-space: nowrap;
  color: #111111;
  font-size: 12px;
}

.favorite-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  align-items: center;
}

.favorite-thumb {
  aspect-ratio: 1.55 / 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  overflow: hidden;
}

.favorite-thumb img,
.favorite-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mine-tool {
  position: relative;
  min-width: 0;
  min-height: 58px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
  background: transparent;
  overflow: hidden;
}

.mine-tool em {
  position: absolute;
  top: 0;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: #ff3b1f;
  font-style: normal;
  font-size: 11px;
}

.mine-tool strong {
  font-size: 13px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.mine-tool.active span {
  background: #ffd429;
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.16);
}

.mine-tool-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: #f8fbfb;
}

.tool-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.tool-panel-head strong {
  color: var(--text);
  font-size: 14px;
}

.tool-panel-head span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.help-guide-text {
  color: #46555c;
  font-size: 13px;
  line-height: 1.55;
}

.mine-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mine-review-main {
  min-width: 0;
}

.mine-review-main strong,
.mine-review-main span,
.mine-review-main em,
.mine-review-main p {
  display: block;
}

.mine-review-main strong {
  font-size: 14px;
}

.mine-review-main span,
.mine-review-main em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.mine-review-main p {
  margin: 6px 0 0;
  color: #36464d;
  font-size: 12px;
  line-height: 1.45;
}

.mine-review-actions {
  display: flex;
  align-items: flex-start;
}

.mine-review-edit-form {
  grid-column: 1 / -1;
}

.vip-benefit-card {
  border: 1px solid rgba(183, 121, 31, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 250, 234, 0.98), rgba(239, 255, 251, 0.98)),
    #fff;
}

.vip-benefit-card .card-title-line h2 {
  color: #17252c;
}

.vip-benefit-card .card-title-line span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #815200;
  background: #fff0bf;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.vip-benefit-intro {
  margin: 8px 0 12px;
  color: #596a70;
  font-size: 12px;
  line-height: 1.45;
}

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

.vip-benefit-grid div,
.vip-benefit-join {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.vip-benefit-grid strong,
.vip-benefit-grid span {
  display: block;
}

.vip-benefit-grid strong {
  color: #111111;
  font-size: 14px;
}

.vip-benefit-grid span {
  margin-top: 4px;
  color: #63717c;
  font-size: 11px;
  line-height: 1.3;
}

.vip-benefit-join {
  grid-column: 1 / -1;
  min-height: 42px;
  color: #111111;
  background: linear-gradient(135deg, #ffd429, #E53935);
  border-color: transparent;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.16);
}

.invite-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.invite-banners button {
  min-height: 74px;
  padding: 14px;
  border-radius: 8px;
  color: #073b42;
  text-align: left;
  background: #dff7ff;
}

.invite-banners button + button {
  color: #fff;
  background: #E53935;
}

.invite-banners strong,
.invite-banners span {
  display: block;
}

.invite-banners strong {
  font-size: 20px;
}

.invite-banners span {
  margin-top: 6px;
  font-size: 15px;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.simple-page-head {
  margin: 0 0 12px;
  padding: 18px 16px;
  border-radius: 8px;
  background: #fff;
}

.simple-page-head h2 {
  margin: 0 0 4px;
}

.simple-page-head p {
  margin: 0;
  color: var(--muted);
}

.customer-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 95;
  width: min(100vw, 1120px);
  max-width: 100vw;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(29, 37, 44, 0.08);
  transform-origin: bottom center;
}

.customer-bottom-nav button {
  min-height: 52px;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #8c9399;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
}

.customer-bottom-nav span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 2px solid currentColor;
  font-size: 12px;
}

.customer-bottom-nav em {
  font-style: normal;
}

.customer-bottom-nav button.active {
  color: #111111;
}

.customer-bottom-nav button.active span {
  color: #111111;
  background: var(--accent);
  border-color: #111111;
}

.customer-bottom-nav button.disabled,
.customer-bottom-nav button:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.form-grid.compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.form-grid.compact .field {
  margin-top: 0;
}

.form-grid.time-inline {
  grid-template-columns: minmax(120px, 1.4fr) minmax(80px, 0.8fr) minmax(80px, 0.8fr);
  align-items: end;
  margin-top: 12px;
}

.form-grid.schedule-time-grid {
  grid-template-columns: minmax(138px, 1.55fr) minmax(78px, 0.75fr) minmax(78px, 0.75fr);
}

.schedule-time-grid .field select {
  min-width: 0;
  padding-inline: 9px;
  white-space: nowrap;
}

.schedule-time-grid .field,
.schedule-time-grid .field label,
.schedule-time-grid .field select {
  min-width: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

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

.chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
}

.chip.active {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: #fff4bf;
}

.search {
  width: min(320px, 100%);
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.menu-category-section {
  display: grid;
  gap: 10px;
  scroll-margin-top: calc(var(--customer-sticky-top) + 14px);
}

.menu-category-section h2 {
  position: sticky;
  top: var(--customer-sticky-top);
  z-index: 5;
  margin: 0 -2px;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #ececec;
  background: #f5f5f5;
  box-shadow: 0 7px 12px rgba(245, 245, 245, 0.92);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.menu-section-items {
  display: grid;
  gap: 12px;
}

.item-card,
.cart,
.panel,
.order-card,
.form-card {
  border: 1px solid #eeeeee;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(29, 37, 44, 0.03);
}

.item-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  overflow: hidden;
  cursor: pointer;
}

.item-art {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--art-bg, #f1f1f1);
  overflow: hidden;
}

.item-art.photo-art {
  background: #fff;
}

.item-art svg {
  width: 118px;
  height: 92px;
}

.item-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 70% center;
}

.item-body {
  min-width: 0;
  padding: 0;
}

.item-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.item-title-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.item-desc {
  min-height: 0;
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  clear: both;
}

.sales-line {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

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

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-stack strong {
  color: #e54848;
  font-size: 20px;
  font-weight: 900;
}

.price-stack span {
  color: #98a1a9;
  text-decoration: line-through;
  font-size: 13px;
}

.add-circle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  border-radius: 999px;
  color: #fff;
  background: #ffd429;
  font-size: 26px;
  font-family: Arial, sans-serif;
  font-weight: 800;
  line-height: 1;
}

.spec-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: #ffd429;
  font-size: 14px;
  font-weight: 800;
}

.spec-btn.is-disabled,
.add-circle.is-disabled {
  min-width: 76px;
  color: #6d747b;
  background: #e6e9ec;
  box-shadow: none;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.item-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--accent-strong);
  background: #f2f2f2;
  font-size: 12px;
  font-weight: 700;
}

.flash-sale-card {
  border-color: #f59e0b;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.12);
}

.flash-sale-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  color: #fff;
  background: #ef4444;
  font-size: 12px;
  font-weight: 900;
}

.flash-sale-card .item-tags span:first-child {
  color: #9a3412;
  background: #fff7ed;
}

.item-actions-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.flash-reminder-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.flash-reminder-chip span {
  font-size: 13px;
}

.flash-reminder-chip.is-set {
  color: #111111;
  border-color: #99f6e4;
  background: #ecfdf5;
}

.flash-reminder-chip.modal-reminder {
  width: max-content;
  margin-top: 8px;
}

.flash-reminder-backdrop {
  z-index: 120;
}

.flash-reminder-modal {
  max-width: 430px;
}

.flash-reminder-setup {
  width: min(92vw, 430px);
  max-height: min(82vh, 520px);
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.flash-reminder-time-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.flash-reminder-time-field input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
}

.flash-reminder-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.flash-reminder-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #9a3412;
  background: #fff7ed;
}

.flash-reminder-card strong {
  font-size: 18px;
}

.flash-reminder-card span,
.flash-reminder-card em {
  font-style: normal;
  font-size: 13px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-editor-empty {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
}

.product-editor {
  margin-top: 0;
  padding: 14px;
  border-top: 0;
  background: #fbfdfc;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}

.admin-product-modal {
  max-width: 720px;
  width: min(720px, calc(100vw - 32px));
  max-height: min(86vh, 720px);
  align-self: center;
  overflow: hidden;
}

.admin-product-modal,
.admin-product-modal * {
  min-width: 0;
}

.admin-quick-modal {
  max-width: 820px;
}

.admin-product-modal .product-editor {
  background: transparent;
}

.admin-product-modal .panel-title {
  margin-bottom: 0;
  padding: 0;
}

.admin-product-modal .modal-body {
  max-height: min(70vh, 680px);
  overflow: auto;
  padding-right: 2px;
}

/* 新增商品：桌面端尽量在一个视窗内完成上传与资料填写。 */
.admin-new-item-modal {
  width: min(980px, calc(100vw - 32px));
  max-width: 980px;
  max-height: min(94dvh, 820px);
}

.admin-new-item-modal .modal-head {
  padding: 12px 16px;
}

.admin-new-item-modal .modal-head h2 {
  font-size: 21px;
}

.admin-new-item-modal .modal-head p {
  font-size: 12px;
}

.admin-new-item-body {
  display: grid;
  gap: 10px;
  max-height: none !important;
  overflow: hidden !important;
  padding: 12px 16px 14px !important;
}

.admin-create-page-title {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 2px 10px rgba(6, 27, 43, 0.06);
}

.admin-create-page-panel {
  padding: 18px 24px 24px;
}

.admin-new-item-page {
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

.admin-new-item-page .new-item-overview,
.admin-new-item-page .new-item-details,
.admin-new-item-page .new-item-options {
  padding: 18px;
  border: 1px solid #e3e8ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(6, 27, 43, 0.035);
}

.admin-new-item-body.admin-new-item-page .new-item-overview {
  min-height: 210px;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
}

.admin-new-item-body.admin-new-item-page .new-item-overview .item-art {
  width: 190px;
  min-height: 172px;
}

.admin-new-item-page .field label,
.admin-new-item-page .editor-form .field label {
  font-size: 12px;
  color: #344653;
}

.admin-new-item-page .field input,
.admin-new-item-page .field select,
.admin-new-item-page .field textarea,
.admin-new-item-page .editor-form .field input,
.admin-new-item-page .editor-form .field select {
  min-height: 40px;
  font-size: 14px;
}

.admin-new-item-page .new-item-details {
  align-items: start;
}

.admin-new-item-page .new-item-details textarea {
  height: 58px;
}

.admin-new-item-page .new-item-options {
  display: grid;
  gap: 8px;
}

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

.product-rule-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e3e8ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(6, 27, 43, 0.035);
}

.product-rule-title strong,
.product-rule-title span {
  display: block;
}

.product-rule-title strong {
  color: #162f3e;
  font-size: 15px;
}

.product-rule-title span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.product-rule-grid {
  display: grid;
  gap: 9px;
}

.product-rule-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-rule-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-rule-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-rule-switch {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f4f8fa;
  cursor: pointer;
}

.product-rule-switch input {
  margin-top: 3px;
}

.product-rule-switch strong,
.product-rule-switch em {
  display: block;
}

.product-rule-switch strong {
  font-size: 12px;
}

.product-rule-switch em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.product-rule-dependent {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e4eaee;
  border-radius: 8px;
  background: #fbfcfd;
  transition: opacity 160ms ease, background 160ms ease;
}

.product-rule-dependent > span {
  color: var(--muted);
  font-size: 10px;
}

.product-rule-dependent.is-disabled {
  opacity: 0.48;
  background: #f1f3f4;
}

.product-rule-dependent.is-disabled label {
  cursor: not-allowed;
}

.product-weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-weekdays label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}

.admin-new-item-page .new-item-actions {
  position: static;
  z-index: auto;
  min-height: 64px;
  margin-top: 2px;
  padding: 10px 18px;
  border: 1px solid #dfe6eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(6, 27, 43, 0.035);
}

.admin-new-item-page .new-item-actions button {
  min-width: 110px;
}

.admin-new-item-page .new-item-actions .primary {
  min-width: 150px;
}

.admin-new-item-body .new-item-overview {
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 0;
}

.admin-new-item-body .new-item-overview .item-art {
  width: 154px;
  height: 100%;
  min-height: 150px;
  border: 1px dashed rgba(25, 98, 82, 0.45);
  background: #fff9f3;
}

.admin-new-item-body .editor-form {
  gap: 7px;
}

.admin-new-item-body .editor-line {
  gap: 9px;
}

.admin-new-item-body .editor-line.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-new-item-body .new-item-flags {
  grid-template-columns: minmax(130px, 1.15fr) repeat(3, minmax(0, 1fr));
}

.admin-new-item-body .field,
.admin-new-item-body .option-row {
  margin-top: 0;
}

.admin-new-item-body .field label {
  margin-bottom: 4px;
  font-size: 11px;
}

.admin-new-item-body .field input,
.admin-new-item-body .field select,
.admin-new-item-body .field textarea {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 13px;
}

.admin-new-item-body .option-row.inline-check {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  font-size: 12px;
}

.new-item-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.new-item-details textarea {
  height: 48px;
  min-height: 48px !important;
  resize: none;
}

.new-item-options > label {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.new-item-options > label em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.admin-new-item-body .option-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.admin-new-item-body .option-pick {
  min-height: 34px;
  align-items: center;
  padding: 5px 9px;
  font-size: 11px;
}

.admin-new-item-body .option-pick span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-new-item-body .option-pick > input[type="checkbox"] {
  appearance: auto;
  flex: 0 0 15px;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  margin: 0;
  padding: 0;
}

.admin-new-item-body .option-pick small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.new-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.new-item-actions span {
  margin-right: auto;
  color: var(--muted);
  font-size: 11px;
}

.new-item-actions .primary {
  min-width: 180px;
  min-height: 38px;
}

@media (max-width: 760px), (max-height: 650px) {
  .admin-new-item-modal {
    width: min(720px, calc(100vw - 18px));
    max-height: calc(100dvh - 18px);
  }

  .admin-new-item-body {
    overflow: auto !important;
  }

  .admin-new-item-body .new-item-overview {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .admin-new-item-body .new-item-overview .item-art {
    width: 104px;
    height: 112px;
    min-height: 112px;
  }

  .admin-new-item-body .option-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-sales-controls {
    grid-template-columns: 1fr;
  }

  .admin-create-page-panel {
    padding: 12px;
  }

  .admin-new-item-page .new-item-overview {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .admin-new-item-page .new-item-overview .item-art {
    width: 128px;
  }

}

@media (max-width: 520px) {
  .admin-new-item-body .new-item-overview,
  .new-item-details {
    grid-template-columns: 1fr;
  }

  .admin-new-item-body .new-item-overview .item-art {
    width: 100%;
    height: 112px;
  }

  .admin-new-item-body .editor-line.two,
  .admin-new-item-body .editor-line.three,
  .admin-new-item-body .editor-line.four,
  .admin-new-item-body .new-item-flags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-item-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .new-item-actions .primary {
    width: 100%;
  }
}

.admin-editor-scroll {
  min-height: 0;
  overflow: auto;
  padding: 2px 6px 2px 2px;
}

.admin-editor-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 10px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}

.admin-editor-foot .primary {
  width: min(220px, 100%);
}

.editor-preview {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.editor-preview .item-art {
  width: 104px;
  height: 78px;
  border-radius: 8px;
}

.editor-image-upload {
  position: relative;
  cursor: pointer;
}

.editor-image-upload input {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  cursor: pointer;
}

.product-image-upload-progress {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 38px;
  left: 8px;
  display: none;
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 99px;
  background: rgba(20, 34, 42, 0.4);
  pointer-events: none;
}

.product-image-upload-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ffd21f;
  transition: width 140ms ease;
}

.editor-image-upload.is-uploading .product-image-upload-progress,
.editor-image-upload.upload-success .product-image-upload-progress,
.editor-image-upload.upload-error .product-image-upload-progress {
  display: block;
}

.editor-image-upload.upload-success .product-image-upload-progress i {
  background: #35c98b;
}

.editor-image-upload.upload-error .product-image-upload-progress i {
  background: #d84036;
}

.store-logo-upload {
  position: relative;
  min-height: 104px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px dashed rgba(17, 17, 17, 0.42);
  border-radius: 8px;
  background: #f7fbfa;
  cursor: pointer;
}

.store-logo-upload.compact {
  min-height: 116px;
  grid-template-columns: 96px minmax(0, 1fr);
  align-content: center;
}

.store-logo-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.store-logo-preview {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--accent);
  color: #111111;
  font-size: 42px;
  font-weight: 900;
}

.store-logo-upload strong,
.store-logo-upload em {
  display: block;
  font-style: normal;
}

.store-logo-upload em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-category-settings {
  max-width: 760px;
}

.admin-store-settings {
  display: grid;
  gap: 12px;
}

.store-settings-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.store-settings-card.compact {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.store-settings-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr);
  gap: 10px 12px;
}

.store-settings-grid .field {
  margin-top: 0;
}

.store-settings-grid .span-2 {
  grid-column: 1 / -1;
}

.store-settings-grid .settings-section-title {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.settings-section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.settings-section-title strong {
  font-size: 16px;
}

.portal-slide-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.portal-slide-upload {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 850;
  cursor: pointer;
}

.portal-slide-upload input {
  display: none;
}

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

.portal-slide-row {
  display: grid;
  grid-template-columns: 104px minmax(160px, 1fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.portal-slide-thumb {
  width: 104px;
  aspect-ratio: 1.45 / 1;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  background: #fff;
}

.portal-slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-slide-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.settings-section-title span {
  color: var(--muted);
  font-size: 12px;
}

.holiday-add-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr minmax(180px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
}

.holiday-add-row .field {
  margin-top: 0;
}

.holiday-table {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.holiday-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr minmax(160px, 1.5fr) 88px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.holiday-row:first-child {
  border-top: 0;
}

.holiday-row.head {
  min-height: 36px;
  background: #f5f8f8;
  color: var(--muted);
  font-weight: 800;
}

.compact-actions {
  margin-top: 12px;
}

.editor-image-upload > span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: block;
  padding: 4px 6px;
  border-radius: 6px;
  color: #fff;
  background: rgba(29, 37, 44, 0.72);
  text-align: center;
  font-size: 11px;
  pointer-events: none;
}

.editor-preview span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.editor-preview .editor-image-upload > span {
  color: #fff;
  font-size: 11px;
}

.editor-form {
  display: grid;
  gap: 8px;
}

.editor-line {
  display: grid;
  gap: 8px;
}

.editor-line.two {
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.55fr);
}

.editor-line.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-line.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-product-form {
  align-content: start;
}

.editor-form .field {
  min-width: 0;
  margin-top: 0;
}

.editor-form .field label {
  font-size: 11px;
}

.editor-form .field input,
.editor-form .field select,
.editor-form .field textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  font-size: 13px;
}

.option-editor {
  margin-top: 12px;
}

.option-library {
  display: grid;
  gap: 8px;
}

.option-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.option-pick {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.option-pick span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}

.option-pick > input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
}

.option-pick small {
  font-size: 11px;
  white-space: nowrap;
}

.option-pick strong {
  color: var(--ink);
}

.mini-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.panel-title.compact {
  margin-bottom: 8px;
}

.option-edit-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.option-edit-card + .option-edit-card {
  margin-top: 8px;
}

.option-admin-shell {
  display: grid;
  gap: 0;
  min-width: 0;
  margin: -10px -18px -18px;
  background: #f2f5f7;
}

.option-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 16px;
  background: #f2f5f7;
  border-bottom: 1px solid #edf0f2;
  font-size: 14px;
}

.option-toolbar-left,
.option-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.option-create-btn {
  min-width: 112px;
  height: 42px;
  border-radius: 0;
  border-color: #d7dee3;
  background: #fff;
  color: #202b33;
  font-size: 16px;
}

.option-search-box {
  display: flex;
  align-items: stretch;
  min-width: 290px;
}

.option-search-box input {
  min-width: 220px;
  border-radius: 0;
}

.option-search-box button {
  width: 50px;
  border-radius: 0;
}

.option-table-wrap {
  margin: 0 16px 16px;
  overflow-x: auto;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 34, 45, 0.04);
}

.option-admin-table,
.option-child-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 14px;
  color: #263238;
}

.option-admin-table th,
.option-admin-table td,
.option-child-table th,
.option-child-table td {
  padding: 15px 10px;
  border-bottom: 1px solid #edf0f2;
  text-align: center;
  vertical-align: middle;
  font-weight: 400;
}

.option-admin-table th,
.option-child-table th {
  background: #fafafa;
  color: #1f2930;
  font-weight: 600;
}

.option-admin-table th + th,
.option-child-table th + th {
  border-left: 1px solid #edf0f2;
}

.option-admin-table .option-main-row:nth-child(4n + 1) td {
  background: #fff;
}

.option-admin-table .option-main-row:nth-child(4n + 3) td {
  background: #fcfcfc;
}

.option-col-toggle {
  width: 38px;
}

.tiny-square {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9dee2;
  background: #fff;
  color: #3d4951;
  font-size: 14px;
  line-height: 1;
}

.option-name-cell {
  text-align: left !important;
  line-height: 1.55;
}

.option-name-cell strong,
.option-name-cell em {
  display: block;
  font-style: normal;
  font-weight: 400;
}

.option-name-cell em {
  color: #FFD84A;
}

.table-actions {
  min-width: 118px;
}

.table-actions .link-btn,
.bind-col .link-btn,
.option-child-table .link-btn {
  color: #FFB800;
  border: 0;
  background: transparent;
  padding: 2px 5px;
  font-size: 14px;
}

.option-admin-table .option-action-cell {
  width: 168px;
  padding: 15px 8px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.option-admin-table .option-action-cell .table-actions {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bind-col {
  min-width: 64px;
  border-left: 1px solid #edf0f2;
  box-shadow: none;
  background: #fff;
}

.option-detail-row > td {
  padding: 0 !important;
  background: #fff !important;
}

.option-detail-panel {
  margin: 0;
  padding: 14px 16px 10px;
  background: #fff;
  border-bottom: 1px solid #edf0f2;
}

.option-detail-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.option-detail-toolbar .secondary {
  border-radius: 0;
  height: 36px;
  background: #fff;
}

.option-child-table {
  min-width: 980px;
  box-shadow: none;
}

.sort-arrow {
  display: inline-block;
  color: #18bdc6;
  margin: 0 5px;
  font-size: 13px;
}

.option-config-modal {
  width: min(1280px, calc(100vw - 78px)) !important;
  max-width: none !important;
  max-height: min(820px, calc(100vh - 56px));
  display: flex !important;
  grid-template-rows: none !important;
  flex-direction: column;
  border-radius: 0;
  background: #fff;
}

.option-config-modal .modal-head {
  padding: 32px 58px 22px;
  border-bottom: 0;
}

.option-config-modal .modal-head h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
}

.option-config-modal .modal-head p {
  display: none;
}

.option-config-tabs {
  display: flex;
  gap: 36px;
  padding: 0 58px;
  border-bottom: 1px solid #e7ecef;
  background: #fff;
}

.option-config-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 0 15px;
  color: #33414a;
  font-size: 15px;
  font-weight: 500;
}

.option-config-tabs button.active {
  border-bottom-color: #11b8c3;
  color: #FFD84A;
  font-weight: 700;
}

.option-config-body {
  overflow: auto;
  padding: 22px 58px 118px;
  background: #fff;
}

.option-config-modal .modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  padding: 8px 26px;
  border-top: 1px solid #e5e9ec;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -12px 24px rgba(15, 34, 45, 0.08);
}

.option-config-modal .modal-actions .primary,
.option-config-modal .modal-actions .secondary {
  width: 70px;
  height: 38px;
  min-height: 38px;
  border-radius: 0;
}

.option-form-page,
.option-form-slim {
  display: grid;
  gap: 26px;
  max-width: 760px;
}

.option-form-line {
  display: grid;
  grid-template-columns: 150px 360px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #263238;
  font-size: 14px;
}

.option-form-line label {
  text-align: right;
}

.option-form-line label em {
  color: #ff4d4f;
  font-style: normal;
  margin-right: 4px;
}

.option-form-line input,
.option-form-slim .field input,
.option-choice-edit-row .field input {
  border-radius: 0;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d7dde2;
  background: #fff;
  font-size: 14px;
}

.option-form-line.radio-line {
  grid-template-columns: 150px auto auto minmax(0, 1fr);
}

.option-form-line.radio-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.option-form-line.radio-line input {
  width: auto;
  min-height: auto;
}

.option-config-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #8a949b;
  font-size: 14px;
}

.option-config-line label {
  color: #263238;
}

.tiny-input {
  width: 64px;
  height: 36px;
  padding: 6px 10px;
  border: 1px solid #d6dee3;
  background: #fff;
}

.option-child-edit-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.option-config-section {
  margin-top: 26px;
}

.option-config-section h3 {
  margin: 0 0 10px;
  color: #1e2a31;
  font-size: 18px;
  font-weight: 800;
}

.option-choice-edit-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) minmax(160px, 1.25fr) 76px minmax(150px, 1.2fr) 76px 76px 84px 52px;
  align-items: end;
  gap: 8px;
  padding: 9px 12px;
  background: #fafafa;
  border: 1px solid #edf0f2;
  min-width: 980px;
}

.option-choice-edit-row .field {
  min-width: 0;
  display: grid;
  gap: 4px;
  margin: 0;
}

.option-choice-edit-row .field label {
  overflow: hidden;
  text-align: left;
  color: #263238;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-choice-edit-row .field input {
  min-width: 0;
  min-height: 32px;
  height: 32px;
  padding: 5px 7px;
  font-size: 12px;
}

.option-choice-edit-row .option-row.inline-check {
  justify-content: center;
  min-height: 32px;
  height: 32px;
  margin: 0;
  padding: 5px 7px;
  color: #263238;
  font-size: 12px;
}

.option-choice-edit-row > button {
  min-height: 32px;
  height: 32px;
  padding: 0 4px;
  font-size: 12px;
}

.option-add-wide {
  width: 100%;
  height: 34px;
  margin-top: 8px;
  border-radius: 0;
  border: 1px solid #1eb9c2;
  background: #fff;
  color: #1eb9c2;
}

.option-language-row {
  display: grid;
  grid-template-columns: 150px 260px 120px 260px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.option-language-row label {
  text-align: right;
}

.option-language-row input {
  height: 36px;
  border: 1px solid #d7dde2;
  border-radius: 0;
  padding: 7px 10px;
}

.option-bind-modal {
  width: min(1100px, calc(100vw - 220px)) !important;
  max-width: none !important;
  height: min(620px, calc(100vh - 120px));
  max-height: calc(100vh - 80px);
  display: flex !important;
  grid-template-rows: none !important;
  flex-direction: column;
  border-radius: 0;
  background: #fff;
}

.option-bind-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e9ec;
}

.option-bind-head h2 {
  margin: 0;
  color: #1f2b33;
  font-size: 18px;
}

.option-bind-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 26px 22px;
}

.option-bind-pane {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.option-bind-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: #263238;
  font-size: 14px;
}

.option-bind-filter.right {
  flex-wrap: wrap;
}

.option-bind-filter input,
.option-bind-filter select {
  height: 36px;
  min-width: 120px;
  border: 1px solid #d7dde2;
  border-radius: 0;
  padding: 7px 10px;
}

.option-bind-search {
  display: inline-flex;
  align-items: stretch;
}

.option-bind-search input {
  width: 190px;
}

.option-bind-search button {
  width: 50px;
  border-radius: 0;
}

.option-bind-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.option-bind-scroll {
  min-height: 0;
  overflow: auto;
  border-top: 1px solid #f0f2f4;
}

.bind-product-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f4;
  color: #FFD84A;
  font-size: 14px;
  line-height: 1.7;
}

.bind-product-row em {
  color: #FFD84A;
  font-style: normal;
}

.option-bind-mid {
  display: grid;
  place-content: center;
  gap: 34px;
}

.option-bind-mid .primary {
  width: 88px;
  height: 56px;
  border-radius: 0;
  font-size: 18px;
}

.option-bind-panel {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #edf0f2;
}

.option-bind-panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.option-bind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.option-bind-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid #edf0f2;
  background: #fff;
}

.option-bind-item span {
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.option-bind-item em {
  color: var(--muted);
  font-style: normal;
}

.inline-check {
  min-height: 38px;
  align-items: center;
  margin: 0;
}

.danger-text {
  color: var(--danger);
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary,
.secondary,
.danger,
.ghost {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 700;
}

.primary {
  color: #111111;
  background: var(--accent);
}

.primary:hover {
  background: var(--accent-strong);
}

.secondary {
  color: var(--accent-strong);
  background: #f2f2f2;
}

.danger {
  color: #fff;
  background: var(--danger);
}

.ghost {
  color: var(--muted);
  background: transparent;
}

.cart-launcher {
  position: fixed;
  right: clamp(16px, 4vw, 34px);
  bottom: 92px;
  z-index: 145;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 999px;
  color: #111111;
  background: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.16);
  font-weight: 900;
}

.cart-launcher svg {
  width: 23px;
  height: 23px;
}

.cart-launcher strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent-strong);
  background: #fff;
  font-size: 13px;
}

.cart-launcher.has-items {
  background: var(--accent);
}

.cart-fly-item {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 230;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  pointer-events: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(12, 30, 34, 0.2);
  overflow: hidden;
  animation: cartFlyToLauncher 760ms cubic-bezier(0.18, 0.86, 0.26, 1) forwards;
}

.cart-fly-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-fly-item span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #111111;
  background: var(--accent);
  font-weight: 900;
}

@keyframes cartFlyToLauncher {
  0% {
    opacity: 0;
    transform: translate(var(--fly-start-x), var(--fly-start-y)) scale(0.78);
  }
  18% {
    opacity: 1;
    transform: translate(var(--fly-start-x), var(--fly-start-y)) scale(1);
  }
  48% {
    opacity: 1;
    transform: translate(var(--fly-mid-x), var(--fly-mid-y)) scale(0.88);
  }
  100% {
    opacity: 0;
    transform: translate(var(--fly-end-x), var(--fly-end-y)) scale(0.24);
  }
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  justify-items: end;
  background: rgba(29, 37, 44, 0.32);
  overscroll-behavior: contain;
  touch-action: auto;
}

.cart-drawer {
  width: min(430px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  box-shadow: -18px 0 42px rgba(29, 37, 44, 0.18);
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

body.cart-locked .cart-launcher,
body.cart-locked .customer-bottom-nav {
  pointer-events: none;
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-head h2 {
  margin: 0;
  font-size: 18px;
}

.cart {
  min-height: 0;
  padding: 16px 16px calc(104px + env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.cart-submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: grid;
  gap: 8px;
  margin: 12px -16px 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -10px 22px rgba(29, 37, 44, 0.08);
  isolation: isolate;
}

.cart-submit-bar button {
  width: 100%;
}

.account-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fbfb;
  border: 1px solid var(--line);
}

.account-box strong,
.account-box span {
  display: block;
}

.account-box span,
.line-options {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.flash-line-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  color: #9a3412;
  background: #fff7ed;
  font-weight: 800;
}

.cart h2,
.panel h2,
.form-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.empty {
  padding: 24px 10px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.cart-lines {
  display: grid;
  gap: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}

.line-special-badge,
.order-special-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}

.line-special-badge.flash,
.order-special-badge.flash {
  border: 1px solid #ffc4c4;
  background: #fff1f1;
  color: #d02626;
}

.line-special-badge.auction,
.order-special-badge.auction {
  border: 1px solid #ffd28a;
  background: #fff7e6;
  color: #a15c00;
}

.qty {
  display: inline-grid;
  grid-template-columns: 46px 42px 46px;
  align-items: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.qty button {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.qty span {
  min-width: 42px;
  text-align: center;
  color: var(--ink);
  font-weight: 900;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-warning {
  display: block;
  color: #8a3d12;
  background: #fff3e7;
  border: 1px solid #f0b37c;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}

.vip-gift-choice-field {
  padding: 12px;
  border: 2px solid #f2c94c;
  border-radius: 10px;
  background: #fffaf0;
}

.vip-gift-choice-field label {
  color: #6b4e00;
  font-size: 14px;
  font-weight: 900;
}

.vip-gift-choice-field select {
  min-height: 44px;
  font-size: 16px;
  font-weight: 800;
}

.vip-gift-choice-field .form-help {
  color: #6b7280;
  font-size: 12px;
}

.vip-benefit-choice-field {
  padding: 12px;
  border: 2px solid #8dc4b4;
  border-radius: 10px;
  background: #f2fbf8;
}

.vip-benefit-choice-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink) !important;
  font-size: 14px !important;
}

.vip-benefit-choice-option input[type="radio"] {
  width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent-strong);
}

.vip-benefit-choice-option span {
  display: grid;
  gap: 3px;
}

.vip-benefit-choice-option strong {
  color: var(--ink);
  font-size: 14px;
}

.vip-benefit-choice-option em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.vip-benefit-choice-field > .form-help {
  color: #8a3d12;
  font-size: 12px;
  font-weight: 700;
}

.customer-order-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid #38bdf8;
  border-radius: 8px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  line-height: 1.35;
}

.customer-order-alert strong {
  font-size: 14px;
}

.customer-order-alert.danger {
  color: #991b1b;
  border-color: #fca5a5;
  background: #fee2e2;
}

.history-item.needs-replace {
  align-items: stretch;
  padding: 8px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
}

.missing-replace-box {
  display: grid;
  gap: 7px;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  background: #fff;
}

.missing-replace-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.missing-replace-row label {
  color: #075985;
  font-size: 12px;
  font-weight: 900;
}

.missing-replace-row select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.missing-replace-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.missing-replace-foot span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.missing-replace-foot button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.adjustment-summary {
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #166534;
  background: #f0fdf4;
  font-size: 12px;
  font-weight: 850;
}

.payment-choice {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 10px;
  background: #f6fbfa;
}

.payment-choice-title {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 900;
}

.payment-choice label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-choice label.active {
  border-color: rgba(17, 17, 17, 0.45);
  background: #eef8f6;
}

.payment-choice label.disabled {
  border-color: #d8dee2;
  background: #f1f4f5;
  color: #94a0a8;
  cursor: not-allowed;
  opacity: .82;
}

.payment-choice label.disabled strong,
.payment-choice label.disabled em {
  color: #87939c;
}

.payment-choice label.disabled input {
  cursor: not-allowed;
  filter: grayscale(1);
}

.payment-choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.payment-choice strong,
.payment-choice em {
  display: block;
}

.payment-choice em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.pay-due-order {
  border-color: rgba(239, 68, 68, 0.45);
  background: #fffafa;
}

.pay-due-banner,
.pay-due-ticket {
  margin: 10px 0;
  padding: 10px 12px;
  border: 2px solid #dc2626;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.pay-due-ticket {
  color: #111;
  font-size: 18px;
  text-align: left;
}

.compact-pay-due {
  width: auto;
  height: auto;
  margin: -4px 0 0;
  padding: 5px 8px;
  border-width: 1px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.1;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compact-pay-due button,
.pickup-time-banner button {
  min-height: 28px;
  padding: 0 8px;
  border-color: rgba(20, 184, 184, 0.45);
  background: #fff;
  color: #111111;
  font-size: 12px;
  white-space: nowrap;
}

.totals {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.total-row.final {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.minimum-order-warning {
  padding: 8px 10px;
  border-radius: 7px;
  color: #9a3412;
  background: #fff3e7;
  font-weight: 800;
}

.minimum-order-warning strong {
  max-width: 72%;
  text-align: right;
}

.total-row.gift strong {
  color: var(--ok);
}

.flash-pay-limit {
  padding: 8px 10px;
  border-radius: 7px;
  color: #9a3412;
  background: #fff7ed;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
}

.staff-pos-shell {
  height: calc(100dvh - 65px);
  min-height: 520px;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  margin: -18px clamp(-18px, -2vw, -10px) 0;
  border: 1px solid #dfe7eb;
  background: #eef5f5;
  overflow: hidden;
}

.staff-pos-shell.collapsed {
  grid-template-columns: 44px minmax(0, 1fr);
}

.staff-pos-sidebar {
  min-width: 0;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100%;
  border-right: 1px solid #d7e1e5;
  background: #fff;
  overflow: auto;
}

.staff-pos-brand {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px;
  column-gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 9px 10px;
  color: #111111;
  background: linear-gradient(180deg, #FFB800, #ffd429);
}

.staff-pos-logo-9to5 {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: auto auto auto;
  place-content: center;
  align-items: center;
  gap: 1px;
  border-radius: 8px;
  color: #111111;
  background: var(--accent);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  overflow: visible;
}

.staff-pos-logo-9to5 b,
.staff-pos-logo-9to5 em {
  display: block;
  line-height: 1;
  transform: translateY(-2px);
}

.staff-pos-logo-9to5 em {
  margin: 0 1px;
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
}

.staff-pos-brand strong {
  font-size: 16px;
  line-height: 1;
}

.staff-pos-brand > div span,
.staff-pos-brand > em {
  font-style: normal;
  line-height: 1.28;
  font-size: 11px;
}

.staff-pos-brand > b {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: #ff8a1f;
  font-size: 11px;
  line-height: 1.2;
}

.staff-pos-mode {
  display: block;
  margin: 5px 12px 5px;
  border: 1px solid #ffd429;
  border-radius: 999px;
  overflow: hidden;
}

.staff-pos-mode button {
  width: 100%;
  min-height: 26px;
  border-radius: 0;
  color: #222;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.staff-pos-mode button.active {
  color: #fff;
  background: #ffd429;
}

.staff-pos-menu {
  display: grid;
  padding: 0 0 18px;
}

.staff-pos-menu button {
  position: relative;
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 0;
  color: #333;
  background: transparent;
  text-align: left;
}

.staff-pos-menu button.active {
  background: #eef2f3;
}

.staff-pos-menu button span {
  color: #666;
  font-size: 19px;
  text-align: center;
}

.staff-pos-menu button strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-pos-menu button b {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 12px;
}

.staff-pos-menu button b:empty,
.support-people-list button b:empty {
  display: none;
}

.staff-pos-shell.collapsed .staff-pos-brand {
  display: none;
}

.staff-pos-shell.collapsed .staff-pos-brand span,
.staff-pos-shell.collapsed .staff-pos-brand b,
.staff-pos-shell.collapsed .staff-pos-brand em,
.staff-pos-shell.collapsed .staff-pos-mode,
.staff-pos-shell.collapsed .staff-pos-menu button strong,
.staff-pos-shell.collapsed .staff-pos-menu button b {
  display: none;
}

.staff-pos-shell.collapsed .staff-pos-brand strong {
  display: none;
}

.staff-pos-shell.collapsed .staff-pos-brand strong {
  color: transparent;
}

.staff-pos-shell.collapsed .staff-pos-brand strong::after {
  content: none;
}

.staff-pos-shell.collapsed .staff-pos-menu button {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 44px;
  padding: 0;
}

.staff-pos-shell.collapsed .staff-pos-menu button span {
  font-size: 20px;
}

.staff-pos-shell.collapsed .staff-pos-menu {
  padding-top: 0;
}

.staff-pos-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: #eef5f5;
}

.staff-pos-main.module-mode {
  grid-template-rows: auto minmax(0, 1fr);
}

.staff-pos-top {
  min-height: 52px;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  border-bottom: 1px solid #e5ecef;
  background: #fff;
}

.staff-pos-top h2 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.staff-pos-toggle,
.staff-refresh {
  min-height: 52px;
  border-radius: 0;
  color: #222;
  background: transparent;
  font-size: 22px;
}

.staff-order-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 42px;
  border-bottom: 1px solid #e5ecef;
  background: #fff;
}

.staff-order-tabs button {
  position: relative;
  border-radius: 0;
  color: #555;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.staff-order-tabs button span {
  margin-left: 4px;
  color: #999;
  font-size: 12px;
}

.staff-order-tabs button.active {
  color: #222;
}

.staff-order-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #ffd429;
  transform: translateX(-50%);
}

.staff-pos-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.staff-pos-content:has(.staff-history-board) {
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.staff-order-list {
  display: grid;
  gap: 12px;
}

.staff-empty-state {
  min-height: 560px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: #666;
  text-align: center;
}

.staff-empty-state div {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 8px solid #c9ced1;
  border-radius: 50%;
  color: #c9ced1;
  font-size: 54px;
  font-weight: 900;
}

.staff-empty-state p {
  margin: 0;
  font-size: 18px;
}

.staff-empty-state button {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  font-size: 26px;
}

.pickup-time-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -4px 0 0;
  padding: 7px 10px;
  border: 1px solid #f6c7c7;
  border-radius: 8px;
  color: #b91c1c;
  background: #fff5f5;
  font-size: 14px;
}

.pickup-time-banner > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pickup-time-banner strong {
  font-size: 15px;
}

.pickup-time-banner.urgent {
  border-color: #ef4444;
  color: #991b1b;
  background: #fee2e2;
}

.pickup-time-banner span {
  font-weight: 800;
}

.staff-settings-board {
  display: grid;
  gap: 12px;
}

.panel {
  padding: 14px;
  min-height: 360px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.count {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent-strong);
  background: #f2f2f2;
  font-weight: 800;
}

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

.order-card {
  padding: 12px;
}

.staff-pos-content .order-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.staff-detail-hero,
.staff-detail-block {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.staff-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.staff-detail-hero > div {
  min-width: 0;
}

.staff-detail-hero strong {
  display: inline-block;
  margin: 0 6px;
  color: #050505;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.staff-detail-hero em {
  display: block;
  margin-top: 7px;
  color: #374151;
  font-style: normal;
  font-size: 14px;
  font-weight: 650;
}

.staff-order-type {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 7px;
  border-radius: 6px;
  color: #fff;
  background: #ffd429;
  font-size: 13px;
  font-weight: 900;
  vertical-align: middle;
}

.staff-order-head-badges {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.staff-note-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #111827;
  background: #e8fbfc;
  font-size: 15px;
  font-weight: 900;
}

.staff-note-strip span {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  background: #ffd429;
  font-size: 15px;
}

.staff-detail-block {
  padding: 8px 10px;
}

.staff-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #d6dee2;
}

.staff-block-title strong {
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.staff-block-title span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.staff-detail-items {
  display: grid;
}

.staff-detail-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 6px 0;
  border-bottom: 1px dashed #d6dee2;
}

.staff-detail-item:last-child {
  border-bottom: 0;
}

.staff-item-qty {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

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

.staff-item-main strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
}

.staff-item-main em {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-style: normal;
  font-size: 12px;
  line-height: 1.25;
}

.staff-item-price {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.staff-info-grid {
  display: grid;
  grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
  gap: 11px 16px;
  padding-top: 14px;
  align-items: start;
}

.staff-info-grid span {
  color: #5b6570;
  font-size: 14px;
}

.staff-info-grid strong {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.staff-fee-list {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.staff-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #111827;
  font-size: 14px;
}

.staff-fee-row span {
  color: #4b5563;
}

.staff-fee-row strong {
  font-size: 15px;
}

.staff-fee-row.muted-row strong {
  color: #374151;
}

.staff-fee-row.final {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px dashed #d6dee2;
  font-weight: 1000;
}

.staff-fee-row.final span,
.staff-fee-row.final strong {
  color: #111827;
  font-size: 17px;
  font-weight: 900;
}

.staff-bottom-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 -10px -10px;
  padding: 6px 10px;
  border-top: 1px solid #dfe7eb;
  background: rgba(238, 245, 245, 0.95);
  backdrop-filter: blur(10px);
}

.staff-bottom-actions button,
.staff-bottom-actions .muted {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.staff-action-panel {
  border-color: #fbbf24;
  background: #fffbeb;
  order: -1;
}

.compact-action-form {
  margin-top: 10px;
  gap: 8px;
}

.compact-title-line strong {
  font-size: 14px;
}

.missing-item-choice-list {
  display: grid;
  gap: 6px;
}

.missing-item-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid #d8e5e8;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 850;
}

.missing-item-choice em {
  display: block;
  color: #6b7280;
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
}

.missing-status-strip {
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  color: #075985;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.staff-bottom-actions .muted {
  display: grid;
  place-items: center;
  color: #6b7280;
}

.staff-history-board {
  display: block;
  gap: 0;
  min-height: 0;
  height: auto;
  max-height: none;
  margin-bottom: 0;
  padding: 0;
}

.staff-history-title {
  padding-bottom: 6px;
}

.staff-history-datebar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  border-top: 1px solid #e5ecef;
  border-bottom: 1px solid #e5ecef;
  background: #fff;
}

.staff-history-datebar button {
  min-height: 42px;
  border-radius: 0;
  color: #111827;
  background: transparent;
  font-size: 24px;
}

.staff-history-datebar strong {
  text-align: center;
  color: #111827;
  font-size: 16px;
  font-weight: 850;
}

.staff-history-summary {
  display: grid;
  grid-template-columns: 1fr 1fr repeat(3, minmax(0, 0.8fr));
  gap: 0;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
}

.staff-history-major {
  display: grid;
  gap: 4px;
  padding: 0 12px;
  border-right: 1px solid #d1d5db;
  border-bottom: 0;
}

.staff-history-major + .staff-history-major {
  padding: 0 12px;
  border-left: 0;
}

.staff-history-major span,
.staff-history-minor span {
  color: #374151;
  font-size: 13px;
}

.staff-history-major strong {
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.staff-history-major em {
  color: #374151;
  font-style: normal;
  font-size: 12px;
}

.staff-history-minor {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 0 8px;
  text-align: center;
}

.staff-history-minor strong {
  color: #374151;
  font-size: 16px;
}

.staff-history-scroll {
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  overflow-x: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 0;
  overscroll-behavior: auto;
}

.business-hours-editor-field {
  gap: 8px;
}

.business-hours-editor {
  display: grid;
  gap: 12px;
}

.business-hours-row {
  padding: 12px;
  border: 1px solid #d9e1e5;
  border-radius: 10px;
  background: #fff;
}

.business-day-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(68px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.business-day-button input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-day-button span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e4e7eb;
  border-radius: 5px;
  color: #26313b;
  background: #f5f6f7;
  font-size: 14px;
  cursor: pointer;
}

.business-day-button input:checked + span {
  border-color: #222;
  color: #fff;
  background: #262626;
}

.business-time-line {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto auto;
  gap: 14px;
  align-items: end;
}

.business-time-line select {
  min-height: 44px;
}

.business-all-day {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.business-all-day input {
  width: 20px;
  height: 20px;
}

.business-hours-add {
  justify-self: start;
  color: #15803d;
}

.field-help {
  color: #6b7280;
  font-style: normal;
  font-size: 12px;
}

@media (max-width: 820px) {
  .business-day-picker {
    grid-template-columns: repeat(4, minmax(62px, 1fr));
  }

  .business-time-line {
    grid-template-columns: 1fr 1fr;
  }
}

.staff-history-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5ecef;
  border-radius: 8px;
  background: #fff;
}

.staff-history-card-head,
.staff-history-money,
.staff-history-count,
.staff-history-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staff-history-card-head > div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
}

.staff-history-card-head strong {
  min-width: 0;
  color: #050505;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-history-card-head .staff-order-type {
  flex: 0 0 auto;
}

.staff-history-card-head .order-status-pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

.staff-order-type.warn {
  background: #fff1d6;
  color: #f97316;
}

.staff-history-store {
  margin: 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.35;
  padding-bottom: 8px;
  border-bottom: 1px dashed #d8e0e4;
}

.staff-history-money span,
.staff-history-meta span,
.staff-history-review span {
  color: #374151;
  font-size: 14px;
}

.staff-history-money strong {
  color: #111827;
  font-size: 18px;
}

.staff-history-count {
  padding-bottom: 8px;
  border-bottom: 1px dashed #d8e0e4;
}

.staff-history-count strong {
  color: #111827;
  font-size: 14px;
}

.staff-history-count button,
.staff-history-review button {
  min-height: 26px;
  padding: 0 6px;
  color: #14b8b8;
  background: transparent;
  border: 0;
  font-size: 13px;
}

.staff-history-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #d8e0e4;
}

.staff-history-meta strong {
  justify-self: end;
  color: #111827;
  font-size: 14px;
  font-weight: 650;
  text-align: right;
}

.staff-history-review {
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f8faf9;
}

.staff-history-review strong {
  color: #16c7c7;
  letter-spacing: 1px;
  white-space: nowrap;
}

.staff-history-detail {
  display: grid;
  gap: 8px;
  padding: 8px 0 0;
  border-top: 1px dashed #d8e0e4;
}

.staff-history-detail > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  color: #111827;
  font-size: 13px;
}

.staff-history-detail span {
  color: #374151;
}

.staff-history-detail em {
  color: #111827;
  font-style: normal;
  white-space: nowrap;
}

.staff-history-detail p {
  margin: 0;
  color: #374151;
  font-size: 13px;
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.order-id {
  font-weight: 900;
}

.vip-order-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  color: #7c2d12;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0;
}

.staff-order-head-badges .vip-order-badge {
  margin-left: 0;
}

.vip-order-banner {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #f59e0b;
  color: #78350f;
  background: #fffbeb;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.admin-note {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  font-weight: 800;
}

.panel-subsection {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.panel-subsection h3 {
  margin: 0;
  font-size: 16px;
}

.admin-member-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.admin-member-compact span {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 13px;
  color: #111111;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.ready {
  background: var(--ok);
}

.order-meta,
.order-items {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.compact-actions {
  margin-top: 6px;
}

.compact-actions button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.small-danger {
  min-height: 28px;
  margin-top: 6px;
  padding: 0 9px;
  font-size: 12px;
}

.group-order-board {
  min-height: 0;
  margin-bottom: 16px;
}

.group-board-toggle {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  background: transparent;
}

.group-order-board .panel-title {
  align-items: flex-start;
}

.group-order-board .panel-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.staff-pos-content .panel-title h2,
.staff-pos-content .group-order-board .panel-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 850;
}

.group-order-detail {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.group-order-detail:not(.complete) {
  border-color: #7dd3fc;
  background: #f8fcff;
}

.group-order-detail.complete {
  border-color: #E53935;
  box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.12);
}

.group-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.group-detail-head:hover strong {
  color: var(--accent-strong);
}

.group-state-badge,
.order-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.group-state-badge.pending,
.order-status-pill.pending {
  color: #075985;
  background: #dff4ff;
  border: 1px solid #38bdf8;
}

.group-state-badge.success,
.order-status-pill.success {
  color: #047857;
  background: #dcfce7;
  border: 1px solid #34d399;
}

.group-state-badge b {
  color: inherit;
  font-size: 14px;
  line-height: 1;
}

.group-detail-head strong,
.group-detail-head span {
  display: block;
}

.group-detail-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.group-detail-head .group-state-badge {
  display: inline-flex;
  margin-top: 0;
  font-size: 12px;
}

.group-detail-head .group-state-badge.pending {
  color: #075985;
}

.group-detail-head .group-state-badge.success {
  color: #047857;
}

.group-order-lines {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.group-order-line {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 8px;
  background: var(--soft);
}

.group-order-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.group-order-line strong,
.group-order-line span,
.group-order-line em {
  display: block;
}

.group-order-line span,
.group-order-line em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.group-order-line em {
  font-style: normal;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.admin-pc-shell {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  margin: -18px clamp(-18px, -2vw, -10px) 0;
  background: #f2f5f7;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  overflow: hidden;
}

.admin-pc-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #061b2b;
  color: #dce8ef;
}

.admin-pc-brand {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-pc-brand span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #061b2b;
  background: #fff;
  font-weight: 900;
}

.admin-pc-brand .admin-pc-logo-9to5 {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  grid-template-columns: auto auto auto;
  place-content: center;
  align-items: center;
  gap: 1px;
  border-radius: 9px;
  background: var(--accent);
  color: #111111;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  overflow: visible;
}

.admin-pc-logo-9to5 b,
.admin-pc-logo-9to5 em {
  display: block;
  line-height: 1;
}

.admin-pc-logo-9to5 b {
  font: inherit;
  transform: translateY(-2px);
}

.admin-pc-logo-9to5 em {
  margin: 0 1px;
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
  transform: translateY(-1px);
}

.admin-pc-brand strong {
  font-size: 17px;
}

.admin-pc-menu {
  overflow: auto;
  padding: 8px 0;
}

.admin-nav-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-nav-group summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  color: #f3fbff;
  cursor: pointer;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
}

.admin-nav-group summary::-webkit-details-marker {
  display: none;
}

.admin-nav-group summary strong {
  font-size: 14px;
  font-weight: 850;
}

.admin-nav-group summary span {
  transition: transform 0.18s ease;
}

.admin-nav-group[open] summary span {
  transform: rotate(180deg);
}

.admin-nav-group > div {
  padding: 4px 0 8px;
}

.admin-pc-menu button {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 24px;
  border-radius: 0;
  color: #b7c6d1;
  background: transparent;
  text-align: left;
}

.admin-pc-menu button span {
  color: #edf7fb;
  opacity: 0.92;
}

.admin-pc-menu button strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-data-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-data-table th,
.admin-data-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-data-table th {
  color: #51616c;
  background: #f7fafb;
  font-weight: 850;
}

.admin-simple-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-simple-panel strong {
  font-size: 18px;
}

.admin-simple-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.member-admin-detail-row td {
  background: #f8fbfc;
  white-space: normal;
}

.member-asset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.member-asset-strip span,
.member-asset-strip button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #d8e7e8;
  border-radius: 7px;
  color: #50606b;
  background: #fff;
  font-size: 12px;
}

.member-asset-strip button {
  cursor: pointer;
  font-family: inherit;
}

.member-asset-strip button.active {
  border-color: #FFB800;
  background: #e7f8f8;
  color: #111111;
  box-shadow: inset 0 -2px 0 rgba(16, 174, 181, 0.18);
}

.member-asset-strip b {
  color: #111111;
  font-size: 13px;
}

.member-asset-ledger {
  margin: 0 0 12px;
  border: 1px solid #dce8ea;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.member-asset-ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #f3f8f9;
  border-bottom: 1px solid #dce8ea;
  font-size: 12px;
}

.member-asset-ledger-head span {
  color: #71818a;
}

.manual-wallet-adjust {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(220px, 1.6fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border-bottom: 1px solid #dce8ea;
  background: #fffdf3;
}

.manual-wallet-adjust .field {
  margin: 0;
}

.manual-wallet-adjust input,
.manual-wallet-adjust select {
  height: 34px;
}

.manual-wallet-adjust .compact-action {
  height: 34px;
  align-self: end;
}

.member-ledger-wrap {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.member-order-count-link {
  min-width: 46px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.member-order-count-link b {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e5f5f4;
  color: #111111;
  font-size: 12px;
  line-height: 1;
}

.member-order-count-link.active {
  color: #111111;
}

.member-order-count-link.active b {
  background: #ffd429;
  color: #111111;
}

.member-asset-count-link {
  min-width: 0;
  padding: 0;
  color: #111111;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.member-asset-count-link.active {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-order-count-link:disabled {
  color: #8fa0a8;
  cursor: default;
  text-decoration: none;
}

.member-profile-editor-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid #dce8ea;
  border-radius: 8px;
  background: #fff;
}

.member-profile-editor-title span {
  color: var(--muted);
  font-size: 12px;
}

.member-admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.compact-action {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.compact-action.danger-soft {
  color: #b42318;
  background: #fff1f0;
}

.compact-action.danger-soft:hover {
  background: #ffe4e1;
}

.member-admin-order-row td {
  padding-top: 0;
}

.member-order-history-panel {
  margin: 0 0 12px;
  border: 1px solid #dce8ea;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.member-order-history-wrap {
  margin: 0;
  border: 0;
  box-shadow: none;
  max-height: 360px;
  overflow: auto;
}

.member-order-history-table th,
.member-order-history-table td {
  padding: 10px 12px;
  font-size: 12px;
}

.member-ledger-table {
  font-size: 12px;
}

.member-ledger-table th,
.member-ledger-table td {
  padding: 8px 9px;
  vertical-align: top;
}

.member-ledger-table td span {
  color: #7a8790;
  font-size: 11px;
}

.member-ledger-table .credit {
  color: #4b5563;
}

.member-ledger-table .debit {
  color: #bd3c1f;
}

.admin-pc-menu button.active {
  color: #fff;
  background: #30aeb6;
}

.admin-sidebar-foot {
  margin: 10px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #dce8ef;
  background: rgba(255, 255, 255, 0.08);
}

.admin-pc-workspace {
  min-width: 0;
  overflow: auto;
}

.admin-pc-topbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  color: #edf7fb;
  background: #061b2b;
}

.admin-pc-topbar strong,
.admin-pc-topbar span {
  display: block;
}

.admin-pc-topbar span {
  margin-top: 2px;
  color: #b7c6d1;
  font-size: 12px;
}

.admin-pc-alerts {
  display: flex;
  gap: 8px;
}

.admin-pc-alerts button {
  min-height: 34px;
  padding: 0 13px;
  color: #061b2b;
  background: #fff;
}

.admin-pc-title {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid #e4eaef;
  background: #fff;
}

.admin-pc-title h2 {
  margin: 0;
  font-size: 24px;
}

.admin-pc-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.admin-pc-title > span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.admin-pc-panel {
  padding: 26px;
}

.admin-control-grid {
  display: grid;
  gap: 12px;
}

.admin-quick {
  min-height: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-quick span {
  color: var(--muted);
  font-size: 13px;
}

.admin-quick strong {
  margin-right: 3px;
  color: var(--ink);
  font-size: 16px;
}

.admin-module {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.admin-module summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.admin-module summary::-webkit-details-marker {
  display: none;
}

.admin-module summary span {
  display: grid;
  gap: 3px;
}

.admin-module summary strong {
  font-size: 16px;
}

.admin-module summary em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.admin-module summary b {
  color: var(--muted);
  font-weight: 800;
  transition: transform 0.2s ease;
}

.admin-module[open] summary b {
  transform: rotate(180deg);
}

.admin-module-body {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
  border-top: 1px solid var(--line);
}

.backup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.backup-panel strong,
.backup-panel span,
.backup-panel em {
  display: block;
}

.backup-panel span,
.backup-panel em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.settlement-panel {
  display: grid;
  gap: 12px;
}

.settlement-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.settlement-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.settlement-summary strong,
.settlement-summary span {
  display: block;
}

.settlement-summary strong {
  font-size: 22px;
}

.settlement-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.settlement-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.settlement-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) minmax(150px, 1fr) repeat(3, minmax(90px, 0.7fr));
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f4;
  font-size: 13px;
}

.settlement-row:last-child {
  border-bottom: 0;
}

.settlement-head {
  color: var(--muted);
  background: #f6f8f8;
  font-weight: 900;
}

.settlement-row strong,
.settlement-row em {
  display: block;
}

.settlement-row em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.operations-panel {
  display: grid;
  gap: 14px;
}

.operation-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 220px)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.operations-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.operations-kpi-grid div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.operations-kpi-grid span {
  color: var(--muted);
  font-size: 12px;
}

.operations-kpi-grid strong {
  font-size: 25px;
  line-height: 1;
}

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

.operations-grid section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.operations-grid h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

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

.mini-bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.1fr) minmax(120px, 2fr) minmax(70px, auto);
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.mini-bar-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-bar-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1f2;
}

.mini-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #FFB800, #ffd429);
}

.mini-bar-row strong {
  color: #26323a;
  text-align: right;
  font-size: 12px;
}

.diagnosis-summary,
.diagnosis-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.diagnosis-summary strong,
.diagnosis-summary span,
.diagnosis-card strong,
.diagnosis-card span {
  display: block;
}

.diagnosis-summary span,
.diagnosis-card span,
.diagnosis-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.diagnosis-card {
  border-left-width: 5px;
}

.diagnosis-card.high {
  border-left-color: #ef4444;
  background: #fff8f8;
}

.diagnosis-card.medium {
  border-left-color: #f59e0b;
  background: #fffaf0;
}

.diagnosis-card.low {
  border-left-color: #2563eb;
  background: #f5fbff;
}

.diagnosis-card.good {
  border-left-color: #247a3d;
  background: #f5fffb;
}

.diagnosis-card p {
  margin: 8px 0 0;
}

.error-row strong {
  color: #b42318;
}

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

.admin-full-btn {
  width: 100%;
}

.admin-menu-manager {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  min-height: 620px;
  border: 1px solid #e1e8ee;
  background: #fff;
}

.admin-category-list {
  display: grid;
  align-content: start;
  gap: 6px;
  position: sticky;
  top: 0;
  padding-bottom: 12px;
  border-right: 1px solid #e1e8ee;
  background: #f8fafb;
}

.admin-list-title {
  padding: 14px 16px;
  border-bottom: 1px solid #e1e8ee;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-category-list button {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.admin-category-list button.active {
  border-left-color: var(--accent-strong);
  color: var(--accent-strong);
  background: #f2f2f2;
  font-weight: 800;
}

.admin-category-list button.drop-ready {
  border-left-color: var(--warm);
  color: #8a2c16;
  background: #fff2e8;
  box-shadow: inset 0 0 0 1px rgba(197, 79, 46, 0.26);
}

.admin-category-list span {
  color: var(--muted);
  font-size: 11px;
}

.admin-menu-content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0;
  background: #fff;
}

.admin-menu-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid #e1e8ee;
  background: #fff;
}

.admin-menu-content-head > div {
  display: grid;
  gap: 3px;
}

.admin-menu-content-head strong {
  font-size: 16px;
}

.admin-menu-content-head span {
  color: var(--muted);
  font-size: 12px;
}

.compact-action {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12px;
}

.admin-menu-tip {
  margin: 12px 14px 0;
  padding: 10px 12px;
  border: 1px solid #a9dfe1;
  background: #e9f8f8;
  color: #31414a;
  font-size: 12px;
  line-height: 1.55;
}

.admin-menu-tip strong {
  color: #FFD84A;
}

.admin-menu-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #edf1f4;
  overflow-x: auto;
  white-space: nowrap;
}

.admin-menu-toolbar input {
  width: 190px;
  min-height: 32px;
  border: 1px solid var(--line);
  padding: 0 10px;
  font-size: 12px;
}

.admin-menu-toolbar .checkline {
  flex: 0 0 auto;
  min-height: 32px;
  margin: 0;
}

.admin-menu-toolbar .checkline input[type="checkbox"] {
  appearance: auto;
  flex: 0 0 15px;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  margin: 0;
  padding: 0;
}

.admin-menu-toolbar button,
.admin-menu-toolbar > span,
.admin-menu-toolbar #adminMenuSearchName {
  flex: 0 0 auto;
}

.admin-menu-toolbar #adminMenuSearchName {
  width: 178px;
}

.admin-menu-toolbar span,
.checkline {
  color: #46545d;
  font-size: 12px;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-menu-table-wrap {
  width: 100%;
  overflow: auto;
}

.admin-menu-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
  font-size: 12px;
}

.admin-menu-table th,
.admin-menu-table td {
  padding: 9px 10px;
  vertical-align: middle;
}

.admin-menu-table th {
  white-space: nowrap;
  background: #fbfcfd;
}

.admin-menu-table .select-col {
  width: 34px;
  text-align: center;
}

.admin-menu-table th:nth-child(2) {
  width: 410px;
}

.admin-menu-table th:nth-child(3),
.admin-menu-table th:nth-child(4),
.admin-menu-table th:nth-child(5) {
  width: 62px;
}

.admin-menu-table th:nth-child(6) {
  width: 92px;
}

.admin-menu-table th:nth-child(7) {
  width: 72px;
}

.admin-menu-table th:nth-child(8) {
  width: 64px;
}

.admin-menu-product-cell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.admin-menu-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid #e6eef2;
  border-radius: 6px;
  background: #f3f7f7;
}

.admin-menu-thumb svg,
.admin-menu-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-menu-thumb span {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 1px 5px;
  border-radius: 5px 0 0 0;
  background: rgba(22, 157, 123, 0.82);
  color: #fff;
  font-size: 10px;
}

.admin-menu-product-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-menu-product-copy strong {
  display: block;
  overflow: hidden;
  color: #18242c;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-menu-product-copy em,
.admin-menu-product-copy small {
  display: block;
  overflow: hidden;
  color: #6b7881;
  font-size: 12px;
  line-height: 1.35;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-menu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 170px;
}

.admin-menu-tags span {
  padding: 2px 6px;
  border-radius: 5px;
  background: #e6f5f4;
  color: #111111;
  font-size: 11px;
  white-space: nowrap;
}

.admin-menu-tags span.muted {
  background: #f1f4f5;
  color: #78848b;
}

.menu-sort-actions {
  display: inline-flex;
  gap: 4px;
}

.menu-sort-actions .icon-btn {
  width: 26px;
  height: 26px;
  color: #FFB800;
  border-color: transparent;
  background: transparent;
}

.admin-menu-table .sticky-action-col {
  position: sticky;
  right: 0;
  z-index: 1;
  min-width: 120px;
  background: #fff;
  box-shadow: -12px 0 18px rgba(15, 23, 42, 0.05);
}

.admin-menu-table th.sticky-action-col {
  z-index: 2;
  background: #fbfcfd;
}

.admin-menu-table .admin-item-row {
  display: table-row;
  min-height: 0;
  padding: 0;
  border-radius: 0;
}

.admin-menu-table .admin-item-row:hover {
  background: #fbfdfe;
}

.admin-menu-table .admin-item-row.is-unavailable > td {
  color: #77828a;
  background: #edf0f2;
}

.admin-menu-table .admin-item-row.is-unavailable > td:first-child {
  box-shadow: inset 4px 0 0 #a7afb5;
}

.admin-menu-table .admin-item-row.is-unavailable .admin-menu-thumb {
  opacity: 0.52;
  filter: grayscale(0.7);
}

.admin-menu-table .admin-item-row.is-unavailable .admin-menu-product-copy strong,
.admin-menu-table .admin-item-row.is-unavailable .admin-menu-product-copy em,
.admin-menu-table .admin-item-row.is-unavailable .admin-menu-product-copy small,
.admin-menu-table .admin-item-row.is-unavailable .admin-menu-tags,
.admin-menu-table .admin-item-row.is-unavailable .menu-sort-actions {
  color: #77828a;
  opacity: 0.58;
}

.admin-menu-table .admin-item-row.is-unavailable .sticky-action-col {
  background: #edf0f2;
}

.admin-menu-table .admin-item-row.is-unavailable:hover > td,
.admin-menu-table .admin-item-row.is-unavailable:hover .sticky-action-col {
  background: #e3e7ea;
}

.admin-menu-items,
.category-order-editor {
  display: grid;
  gap: 0;
}

.menu-import-page {
  display: grid;
  gap: 14px;
}

.menu-import-card {
  padding: 18px;
  border: 1px solid #dfe6eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(6, 27, 43, 0.035);
}

.menu-import-intro,
.menu-import-preview-head,
.menu-import-file-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu-import-card h3,
.menu-import-card p {
  margin: 0;
}

.menu-import-card h3 {
  color: #172d3a;
  font-size: 17px;
}

.menu-import-card p,
.menu-import-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.menu-import-intro p {
  margin-top: 5px;
}

.menu-import-upload {
  position: relative;
  min-height: 112px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px dashed #38aeb1;
  border-radius: 9px;
  background: #f2fbfb;
  text-align: center;
  cursor: pointer;
}

.menu-import-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.menu-import-file-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f7f8;
}

.menu-import-errors {
  display: grid;
  gap: 6px;
  border-color: #efb4ad;
  background: #fff8f7;
}

.menu-import-errors p {
  color: #9e2e26;
}

.menu-import-preview-head > div {
  display: grid;
  gap: 3px;
}

.menu-import-preview-wrap {
  margin-top: 14px;
  overflow: auto;
}

.menu-import-preview {
  width: 100%;
  min-width: 820px;
}

.menu-import-preview th {
  white-space: nowrap;
}

.category-order-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid #edf1f4;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.category-order-toolbar .secondary {
  min-width: 116px;
}

.admin-item-row,
.category-order-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #edf1f4;
  border-radius: 0;
  background: #fff;
}

.category-order-row {
  grid-template-columns: minmax(220px, 1fr) 38px 38px 42px;
  min-height: 64px;
}

.category-order-row .icon-btn.danger {
  color: #d93025;
  border-color: #f3c4bf;
  background: #fff7f6;
}

.category-order-row .icon-btn {
  justify-self: center;
}

.category-order-row-new input {
  border-color: var(--brand);
  background: #fffdf1;
}

.admin-item-row:hover {
  background: #fbfdfe;
}

.admin-item-row.dragging {
  opacity: 0.52;
}

.drag-handle {
  width: 30px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  cursor: grab;
  font-weight: 800;
}

.admin-item-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-item-main span,
.admin-item-main em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.admin-order-history {
  display: grid;
  gap: 8px;
}

.admin-audit-panel {
  display: grid;
  gap: 12px;
  text-align: left;
}

.admin-audit-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #dce6ea;
  border-radius: 6px;
  background: #fff;
  text-align: left;
}

.admin-audit-filterbar label {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: #3f4d57;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.admin-audit-filterbar label:nth-child(3) {
  min-width: 220px;
  flex: 1 1 220px;
}

.admin-audit-filterbar input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #d6dee2;
  border-radius: 4px;
  background: #fff;
  color: #1f2933;
  font-size: 14px;
  text-align: left;
}

.admin-audit-filterbar button {
  min-height: 36px;
  padding: 0 18px;
  border-radius: 4px;
}

.admin-audit-summary {
  margin: 0;
  color: #60707a;
  font-size: 13px;
  text-align: left;
}

.audit-history-list,
.audit-history-list .audit-row,
.audit-history-list .audit-row > div,
.audit-history-list .audit-row strong,
.audit-history-list .audit-row span,
.audit-history-list .audit-row em {
  text-align: left;
}

.audit-history-list .audit-row {
  grid-template-columns: minmax(0, 1fr);
  padding: 12px 14px;
}

.audit-history-list .audit-row strong {
  color: #15232d;
  font-size: 15px;
}

.admin-history-query {
  display: grid;
  gap: 14px;
}

.admin-history-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 6px;
  background: #fff;
}

.admin-history-filterbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3f4d57;
  font-size: 14px;
  white-space: nowrap;
}

.admin-history-filterbar input,
.admin-history-filterbar select {
  min-height: 36px;
  min-width: 150px;
  padding: 0 10px;
  border: 1px solid #d6dee2;
  border-radius: 2px;
  background: #fff;
}

.admin-history-filterbar #adminHistoryPickupNo {
  min-width: 132px;
}

.admin-history-filterbar button {
  min-height: 36px;
  padding: 0 20px;
  border-radius: 2px;
}

.admin-history-warning {
  margin: 0;
  color: #ff3b30;
  font-size: 15px;
}

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

.admin-history-table-card,
.admin-history-summary-card {
  background: #fff;
}

.admin-history-table-card {
  min-width: 0;
  overflow: auto;
}

.admin-history-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-history-table th,
.admin-history-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #edf1f2;
  color: #1f2933;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.45;
}

.admin-history-table th {
  color: #25313a;
  background: #fff;
  font-weight: 800;
}

.admin-history-table th:nth-child(1),
.admin-history-table td:nth-child(1) {
  width: 88px;
}

.admin-history-table th:nth-child(3),
.admin-history-table td:nth-child(3) {
  width: 150px;
}

.admin-history-table th:nth-child(9),
.admin-history-table td:nth-child(9) {
  width: 110px;
}

.admin-history-summary-card {
  display: grid;
  gap: 9px;
  padding: 20px 26px;
  color: #25313a;
}

.admin-history-summary-card strong {
  font-size: 16px;
}

.admin-history-summary-card hr {
  width: 100%;
  height: 1px;
  margin: 10px 0;
  border: 0;
  background: #e5eaed;
}

.admin-history-summary-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.admin-history-summary-card small {
  display: block;
  color: #6b747c;
  font-size: 13px;
}

.admin-history-summary-card b {
  font-weight: 900;
}

.admin-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-history-row strong,
.admin-history-row span,
.admin-history-row em {
  display: block;
}

.admin-history-row span,
.admin-history-row em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.admin-history-row > div:last-child {
  text-align: right;
  white-space: nowrap;
}

.audit-history-list .admin-history-row.audit-row > div:last-child {
  text-align: left;
  white-space: normal;
}

.category-order-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.category-order-row input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #fff;
  font-weight: 800;
}

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

.table th,
.table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
}

.form-card {
  padding: 16px;
}

aside .form-card + .form-card {
  margin-top: 14px;
}

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

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

.promo-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.compact-promo-list {
  gap: 6px;
  margin-top: 6px;
}

.promo {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.marketing-subsection {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
}

.marketing-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.marketing-subhead strong {
  font-size: 14px;
}

.marketing-subhead span {
  color: var(--muted);
  font-size: 12px;
}

.marketing-compact-card,
.reward-compact-card {
  padding: 8px;
  background: #fff;
}

.marketing-grid {
  grid-template-columns: repeat(6, minmax(88px, 1fr));
  gap: 6px;
  align-items: end;
}

.marketing-grid .field {
  min-width: 0;
}

.marketing-grid .field label {
  margin-bottom: 3px;
  font-size: 11px;
}

.marketing-grid input,
.marketing-grid select {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
}

.marketing-grid .mini {
  max-width: 120px;
}

.marketing-grid .span-2 {
  grid-column: span 2;
}

.marketing-grid .span-3 {
  grid-column: span 3;
}

.promo-exclusive-field {
  grid-column: 1 / -1;
  align-self: stretch;
  background: #fffaf0;
  border: 1px solid #f2d06b;
  border-radius: 8px;
  padding: 10px 12px 12px;
  min-width: 0;
  margin: 0;
}

.promo-exclusive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.promo-exclusive-head small {
  color: #7a661c;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.promo-exclusive-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.promo-exclusive-chip {
  min-width: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #e3c969;
  border-radius: 7px;
  background: #ffffff;
  color: #1f2937;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.promo-exclusive-toggle {
  display: inline-flex !important;
  width: auto !important;
  min-width: max-content;
  min-height: 22px !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1f2937 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  white-space: nowrap;
}

.promo-exclusive-chip input,
.promo-exclusive-toggle input {
  appearance: auto;
  width: 14px !important;
  min-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  accent-color: #111111;
  cursor: pointer;
  flex: 0 0 auto;
}

.promo-exclusive-chip span {
  min-width: 0;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
}

.marketing-grid .promo-exclusive-field,
.flash-sale-editor-grid .promo-exclusive-field,
.auction-editor-grid .promo-exclusive-field {
  display: block;
  grid-column: 1 / -1;
  align-self: stretch;
}

.marketing-grid .promo-exclusive-field label,
.flash-sale-editor-grid .promo-exclusive-field label,
.auction-editor-grid .promo-exclusive-field label {
  margin: 0;
  color: inherit;
  font-size: inherit;
  text-align: left;
}

.marketing-grid .promo-exclusive-field input[type="checkbox"],
.flash-sale-editor-grid .promo-exclusive-field input[type="checkbox"],
.auction-editor-grid .promo-exclusive-field input[type="checkbox"] {
  width: 14px !important;
  min-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  border-radius: 3px;
}

.marketing-grid .promo-exclusive-field .promo-exclusive-options,
.flash-sale-editor-grid .promo-exclusive-field .promo-exclusive-options,
.auction-editor-grid .promo-exclusive-field .promo-exclusive-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.marketing-grid .promo-exclusive-field .promo-exclusive-chip,
.flash-sale-editor-grid .promo-exclusive-field .promo-exclusive-chip,
.auction-editor-grid .promo-exclusive-field .promo-exclusive-chip {
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 6px 9px;
}

.inline-check {
  display: flex !important;
  align-items: center;
  gap: 6px;
  color: #1f2937 !important;
  font-weight: 700 !important;
}

.checkout-exclusion-note strong {
  max-width: 70%;
  line-height: 1.4;
  text-align: right;
}

.inline-card-actions {
  align-self: end;
  margin: 0;
}

.add-marketing-grid {
  margin-top: 8px;
}

.marketing-manager {
  display: block;
}

.marketing-nav {
  position: sticky;
  top: 76px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.marketing-nav button {
  min-height: 44px;
  padding: 0 14px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #edf1f2;
  color: #4b5963;
  background: #fff;
  text-align: left;
  font-size: 14px;
}

.marketing-nav button.active {
  border-left-color: #22aeb4;
  color: #fff;
  background: #35aeb5;
  font-weight: 800;
}

.marketing-main {
  min-width: 0;
}

.admin-form-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 720;
  width: min(760px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.admin-form-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-form-modal-head strong {
  display: block;
  font-size: 18px;
}

.admin-form-modal-head span {
  color: #66737e;
  font-size: 13px;
}

.marketing-create-modal .admin-edit-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
}

.flash-sale-create-modal {
  width: min(920px, calc(100vw - 56px));
  max-height: min(680px, calc(100vh - 48px));
}

.flash-sale-editor-card {
  padding: 0;
}

.flash-sale-editor-grid,
.marketing-create-modal .flash-sale-editor-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding: 18px;
}

.flash-sale-editor-grid .field {
  min-width: 0;
}

.flash-sale-editor-grid .field.mini,
.flash-sale-editor-grid .field.span-2,
.flash-sale-editor-grid .field.span-3 {
  grid-column: auto;
}

.flash-sale-editor-grid .field.span-2 {
  grid-column: span 2;
}

.flash-sale-editor-grid .field.span-3 {
  grid-column: span 3;
}

.flash-sale-editor-grid .field label {
  margin-bottom: 6px;
  font-size: 12px;
}

.flash-sale-editor-grid input,
.flash-sale-editor-grid select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}

.flash-sale-editor-grid .admin-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.35fr);
  gap: 12px;
  margin: 0;
}

.flash-sale-editor-grid .admin-actions button {
  min-height: 38px;
}

@media (max-width: 900px) {
  .flash-sale-create-modal {
    width: min(96vw, 720px);
  }

  .flash-sale-editor-grid,
  .marketing-create-modal .flash-sale-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .flash-sale-editor-grid .field.span-2,
  .flash-sale-editor-grid .field.span-3,
  .flash-sale-editor-grid .admin-actions {
    grid-column: 1 / -1;
  }

  .flash-sale-editor-grid .admin-actions {
    grid-template-columns: 1fr;
  }

  .promo-exclusive-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .promo-exclusive-head small {
    text-align: left;
  }

  .promo-exclusive-chip {
    flex-basis: calc(50% - 4px);
  }
}

.marketing-template-intro {
  margin-bottom: 16px;
  color: #6b747c;
  font-size: 14px;
}

.marketing-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 26px;
}

.marketing-template-card {
  display: grid;
  gap: 12px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid #dde4e7;
  background: #fff;
  box-shadow: 0 4px 12px rgba(29, 37, 44, 0.08);
}

.marketing-template-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.marketing-template-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #ff4b3e;
  font-size: 13px;
  font-weight: 900;
}

.marketing-template-card:nth-child(2n) .marketing-template-icon,
.marketing-template-card:nth-child(4n) .marketing-template-icon {
  background: #ffc247;
}

.marketing-template-head strong {
  font-size: 18px;
  white-space: nowrap;
}

.marketing-template-head em {
  padding: 4px 6px;
  color: #ff4b4b;
  background: #ffeaea;
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}

.marketing-template-card p {
  min-height: 44px;
  margin: 0;
  color: #77818a;
  font-size: 14px;
  line-height: 1.65;
}

.marketing-template-card .primary {
  min-height: 36px;
  border-radius: 2px;
  background: #35aeb5;
}

.management-page {
  display: grid;
  gap: 18px;
}

.management-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid #edf1f2;
}

.management-head h2 {
  margin: 0;
  font-size: 22px;
}

.management-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 14px;
  align-items: end;
  padding: 16px;
  background: #fff;
}

.management-toolbar .field label {
  color: #51616c;
  font-size: 13px;
}

.management-toolbar input,
.management-toolbar select {
  min-height: 36px;
}

.management-table-wrap {
  border-radius: 0;
  border-color: #edf1f2;
}

.management-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.management-table th,
.management-table td {
  white-space: normal;
  word-break: break-word;
}

.coupon-issue-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce6e8;
  background: #fff;
}

.coupon-issue-grid,
.coupon-existing-issue {
  display: grid;
  grid-template-columns: 110px minmax(160px, 1fr) 110px 100px 110px 110px 110px 150px minmax(180px, 1.2fr) 120px;
  gap: 8px;
  align-items: end;
}

.management-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 0 12px;
  border-bottom: 1px solid #edf1f2;
}

.management-tabs button {
  min-height: 34px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #37434c;
  font-weight: 700;
}

.management-tabs button.active {
  border-bottom-color: #35aeb5;
  color: #1199a4;
}

.coupon-create-grid {
  display: grid;
  grid-template-columns: 110px minmax(150px, 1fr) 100px 90px 110px 110px 110px 110px 130px 120px;
  gap: 8px;
  align-items: end;
}

.coupon-existing-issue {
  grid-template-columns: minmax(240px, 1.4fr) minmax(240px, 1.3fr) 100px 130px 120px;
  padding-top: 8px;
}

.coupon-create-panel {
  margin-top: 18px;
}

.coupon-record-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #edf1f2;
  background: #fff;
}

.coupon-record-panel p {
  margin: 0;
  color: #5d6a74;
  font-size: 13px;
}

.coupon-issue-panel .field {
  min-width: 0;
}

.coupon-issue-panel .field label {
  margin-bottom: 3px;
  color: #51616c;
  font-size: 11px;
}

.coupon-issue-panel input,
.coupon-issue-panel select,
.coupon-issue-panel button {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
}

.compact-coupon-issue-table {
  max-height: 240px;
  overflow: auto;
  border: 1px solid #edf1f2;
}

.management-table .table-actions {
  min-width: 76px;
}

.management-table td span,
.management-table td em {
  color: #6b747c;
  font-size: 12px;
  font-style: normal;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: #111111;
  background: #dff8f5;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.success {
  color: #047857;
  background: #dcfce7;
}

.status-pill.danger {
  color: #9f1239;
  background: #ffe4e6;
}

.table-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions.vertical {
  display: grid;
  min-width: 96px;
}

.link-btn {
  padding: 0;
  color: #199aa1;
  background: transparent;
  font-size: 13px;
}

.link-btn.danger {
  color: #d93025;
}

.management-edit-row > td {
  padding: 12px;
  background: #fbfdfd;
}

.management-inline-editor {
  padding: 14px;
  border: 1px solid #dfe6ea;
  background: #fff;
}

.management-list {
  display: grid;
  gap: 14px;
}

.management-list-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 180px 110px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dfe6ea;
  border-radius: 7px;
  background: #fff;
}

.management-thumb {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #111111;
  background: #e2f6f3;
  font-size: 26px;
  font-weight: 950;
}

.management-row-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.management-row-main strong {
  font-size: 16px;
}

.management-row-main p,
.management-row-main em,
.management-row-status span {
  margin: 0;
  color: #6b747c;
  font-size: 13px;
  font-style: normal;
}

.management-row-status strong {
  color: #FFD84A;
}

.points-intro {
  display: grid;
  gap: 5px;
  padding: 20px 24px;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  top: max(20px, env(safe-area-inset-top));
  right: auto;
  bottom: auto;
  z-index: 100000;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: translate(-50%, -16px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.staff-notice-pop {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 160;
  width: min(380px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 2px solid rgba(17, 17, 17, 0.22);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(29, 37, 44, 0.22);
}

.staff-notice-pop strong,
.staff-notice-pop span,
.staff-notice-pop em {
  display: block;
}

.staff-notice-pop strong {
  color: var(--accent-strong);
  font-size: 17px;
}

.staff-notice-pop span {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.staff-notice-pop em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.staff-notice-actions {
  display: grid;
  gap: 7px;
}

.customer-notice-pop {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 14px);
  z-index: 170;
  width: min(430px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 2px solid #38bdf8;
  border-radius: 12px;
  color: #075985;
  background: #e0f2fe;
  box-shadow: 0 18px 44px rgba(14, 116, 144, 0.22);
  transform: translateX(-50%);
}

.customer-notice-pop.danger {
  color: #991b1b;
  border-color: #f87171;
  background: #fee2e2;
  box-shadow: 0 18px 44px rgba(185, 28, 28, 0.2);
}

.customer-notice-pop strong,
.customer-notice-pop span,
.customer-notice-pop em {
  display: block;
}

.customer-notice-pop strong {
  font-size: 16px;
  font-weight: 900;
}

.customer-notice-pop span {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.customer-notice-pop em {
  margin-top: 5px;
  color: currentColor;
  font-size: 11px;
  font-style: normal;
  opacity: 0.68;
}

.customer-notice-actions {
  display: grid;
  gap: 7px;
}

.staff-notice-actions button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: end center;
  padding: 12px;
  background: rgba(29, 37, 44, 0.38);
}

.modal-backdrop.centered-admin-modal {
  place-items: center;
  z-index: 710;
}

.item-modal {
  width: min(560px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
  box-shadow: 0 -10px 24px rgba(22, 39, 48, 0.08);
}

.staff-order-detail-modal .modal-foot {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.staff-order-detail-modal .modal-foot button {
  min-height: 42px;
}

.modal-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.staff-order-detail-modal {
  width: min(680px, 100%);
  max-height: min(820px, calc(100dvh - 28px));
}

.staff-order-detail-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.staff-order-detail-head .vip-order-badge {
  margin-left: 0;
}

.staff-order-detail-body {
  display: grid;
  gap: 10px;
  background: #eef5f5;
}

.compact-detail-block {
  border: 1px solid #e2eaee;
  box-shadow: none;
}

.detail-note {
  margin-top: 10px;
}

.item-detail-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.item-detail-art {
  width: 190px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--art-bg, #f2f2f2);
}

.item-detail-art svg {
  width: 160px;
  height: 126px;
}

.item-detail-copy {
  min-width: 0;
}

.item-detail-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.item-detail-price strong {
  color: #e54848;
  font-size: 24px;
  font-weight: 900;
}

.item-detail-price span {
  color: #98a1a9;
  text-decoration: line-through;
  font-size: 14px;
}

.flash-sale-modal-note {
  display: grid;
  gap: 3px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  background: #fff7ed;
}

.flash-sale-modal-note strong {
  font-size: 13px;
}

.flash-sale-modal-note span {
  font-size: 12px;
  line-height: 1.4;
}

.item-detail-copy p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.item-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-detail-meta span,
.rating-breakdown span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--accent-strong);
  background: #f2f2f2;
  font-size: 12px;
  font-weight: 800;
}

.item-rating-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.item-detail-tabs {
  display: flex;
  align-items: end;
  gap: 4px;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--line);
}

.item-detail-tabs button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.item-detail-tabs button.active {
  color: var(--accent-strong);
  border-color: var(--line);
  background: #fff;
  transform: translateY(1px);
}

.item-detail-tabs em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.item-tab-panel {
  margin-bottom: 16px;
}

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

.item-rating-summary strong {
  color: #e54848;
  font-size: 18px;
  font-weight: 900;
}

.item-rating-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rating-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.item-review-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.item-review-row {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.item-review-scoreline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-review-scoreline div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.item-review-row strong {
  color: var(--accent-strong);
  font-size: 13px;
}

.item-review-row span,
.item-review-row time {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.item-review-scoreline span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 6px;
  color: var(--accent-strong);
  background: #f2f2f2;
  font-weight: 800;
}

.item-review-row p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.item-review-empty {
  border: 1px dashed var(--line);
  background: #fff;
}

.review-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.review-images button {
  width: 100%;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  overflow: hidden;
}

.review-images img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border-radius: 7px;
  object-fit: cover;
  background: var(--soft);
}

.review-images span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

.image-lightbox {
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
}

.review-image-modal {
  width: min(680px, 100%);
  max-height: calc(100svh - 32px);
  display: grid;
  gap: 10px;
  justify-items: end;
}

.review-image-modal img {
  max-width: 100%;
  max-height: calc(100svh - 92px);
  display: block;
  border-radius: 8px;
  object-fit: contain;
  background: #111;
}

.review-image-modal .close-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.32);
}

.admin-review-page {
  display: grid;
  gap: 16px;
}

.admin-review-tabs {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #d9e1e4;
  background: #fff;
}

.admin-review-tabs button {
  min-width: 64px;
  height: 36px;
  border: 0;
  border-right: 1px solid #d9e1e4;
  background: #fff;
  color: #23313a;
  font-weight: 700;
}

.admin-review-tabs button:last-child {
  border-right: 0;
}

.admin-review-tabs button.active {
  background: #36aeb8;
  color: #fff;
}

.admin-review-filterbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 380px) 72px;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  background: #fff;
}

.admin-review-filterbar select {
  height: 36px;
  border: 1px solid #d7e0e3;
  border-radius: 0;
  padding: 0 12px;
  background: #fff;
}

.admin-review-panel {
  padding: 16px;
  background: #fff;
}

.admin-review-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 900;
}

.admin-review-title span {
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
}

.admin-review-table-head,
.admin-review-row {
  display: grid;
  grid-template-columns: 140px minmax(420px, 1fr) 180px 170px;
  gap: 16px;
  align-items: start;
}

.admin-review-table-head {
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  background: #f7f7f7;
  color: #25313a;
  font-weight: 800;
}

.admin-review-list {
  display: grid;
}

.admin-review-row {
  padding: 20px 16px;
  border-bottom: 1px solid #edf1f2;
  background: #fff;
}

.admin-review-row.is-pinned {
  background: #fbfefe;
}

.admin-review-user {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #26313a;
  font-size: 13px;
}

.admin-review-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf4f4;
  color: #77858c;
  font-weight: 900;
}

.admin-review-content {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-review-content p {
  margin: 0;
  color: #26313a;
  line-height: 1.55;
}

.admin-review-content time,
.admin-review-content small {
  display: block;
  color: #9aa4aa;
  font-size: 12px;
}

.admin-review-content .review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 4px;
}

.admin-review-content .review-images button {
  width: 116px;
  height: 116px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #edf2f3;
}

.admin-review-content .review-images img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-review-recommend {
  color: #13aeb5 !important;
  font-size: 13px;
}

.admin-review-score {
  display: grid;
  gap: 6px;
  color: #9aa4aa;
  font-size: 12px;
}

.admin-review-stars span {
  color: #e6eaed;
  font-size: 22px;
  letter-spacing: 1px;
}

.admin-review-stars span.on {
  color: #f4c400;
}

.admin-review-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-review-actions .link-btn {
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: #FFB800;
  font-weight: 700;
}

.admin-review-actions .link-btn.danger {
  color: #ef4444;
}

.admin-review-chat-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #cddde0;
  border-radius: 6px;
  background: #fff;
  color: #5d6b72;
}

.admin-review-chat-btn svg {
  width: 18px;
  height: 18px;
}

.admin-review-reply-box {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
  padding: 14px;
  background: #fafafa;
}

.admin-review-reply-box strong {
  grid-column: 1 / -1;
}

.admin-review-reply-box textarea {
  min-height: 72px;
  resize: vertical;
  border: 0;
  background: transparent;
  outline: none;
}

.admin-review-reply-view,
.item-review-merchant-reply {
  padding: 10px 12px;
  border-left: 3px solid #14b8c4;
  background: #f3fbfb;
  color: #34424a;
  font-size: 13px;
  line-height: 1.5;
}

.admin-review-reply-view time {
  margin-top: 4px;
}

.google-review-table-head,
.google-review-row {
  display: grid;
  grid-template-columns: 190px 150px minmax(320px, 1fr) 190px;
  gap: 14px;
  align-items: start;
}

.google-review-table-head {
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  background: #f7f7f7;
  font-weight: 900;
}

.google-review-row {
  padding: 14px;
  border-bottom: 1px solid #edf1f2;
  background: #fff;
}

.google-review-row.is-internal {
  background: #fff8f8;
}

.google-review-row strong,
.google-review-row b {
  display: block;
  color: #26313a;
}

.google-review-row span,
.google-review-row small,
.google-review-status span {
  display: block;
  margin-top: 4px;
  color: #8a969d;
  font-size: 12px;
}

.google-review-row p {
  margin: 0;
  color: #26313a;
  line-height: 1.5;
}

.google-review-status b {
  color: #111111;
}

.google-review-row.is-internal .google-review-status b {
  color: #b42318;
}

.modal-section-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 900;
}

.option-group {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.option-group legend {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 800;
}

.option-group legend > span {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.option-group legend > span > strong {
  color: var(--ink);
  font-size: 14px;
}

.option-group legend em,
.option-group legend small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.option-group legend span {
  color: var(--muted);
  font-size: 12px;
}

.option-list {
  display: grid;
  gap: 8px;
}

.option-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.option-row strong {
  color: var(--warm);
}

.customer-option-quantity-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.customer-option-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.option-quantity-stepper {
  display: grid;
  grid-template-columns: 30px 28px 30px;
  align-items: center;
  justify-items: center;
  gap: 5px;
}

.option-quantity-stepper button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #15b9bd;
  border-radius: 50%;
  color: #fff;
  background: #15b9bd;
  font-size: 22px;
  line-height: 1;
}

.option-quantity-stepper button:first-child {
  color: var(--ink);
  border-color: #9aa4aa;
  background: #fff;
}

.option-quantity-stepper button:disabled {
  opacity: 0;
  pointer-events: none;
}

.option-quantity-stepper output {
  font-weight: 800;
  text-align: center;
}

.training-page {
  display: grid;
  gap: 18px;
}

.training-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: end;
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(22, 68, 62, 0.95), rgba(42, 86, 69, 0.78)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='520' viewBox='0 0 1200 520'%3E%3Crect width='1200' height='520' fill='%23e9f3ef'/%3E%3Crect x='740' y='92' width='270' height='180' rx='18' fill='%23fff6e7'/%3E%3Crect x='770' y='122' width='210' height='18' rx='9' fill='%230b7a75' opacity='.75'/%3E%3Crect x='770' y='160' width='160' height='18' rx='9' fill='%23c54f2e' opacity='.8'/%3E%3Crect x='770' y='198' width='190' height='18' rx='9' fill='%23b7791f' opacity='.75'/%3E%3Ccircle cx='980' cy='362' r='90' fill='%23f8e4d4'/%3E%3Cellipse cx='980' cy='362' rx='60' ry='24' fill='%23c54f2e'/%3E%3Cellipse cx='928' cy='340' rx='34' ry='16' fill='%230b7a75'/%3E%3Crect x='130' y='342' width='330' height='48' rx='24' fill='%23ffffff' opacity='.72'/%3E%3Cpath d='M164 366h250' stroke='%23b7791f' stroke-width='13' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.training-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
}

.training-hero h2 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
}

.training-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.training-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.training-hero-grid div {
  min-height: 92px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  text-align: center;
}

.training-hero-grid strong {
  font-size: 28px;
}

.training-hero-grid span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.training-section,
.training-checklist {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.training-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.training-section-head h2 {
  margin: 0;
  font-size: 22px;
}

.training-section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.training-filters {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 140px;
  gap: 8px;
}

.training-filters.compact {
  grid-template-columns: 180px;
}

.training-filters select {
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.shift-grid,
.recipe-grid {
  display: grid;
  gap: 12px;
}

.shift-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shift-card,
.recipe-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.shift-card {
  padding: 14px;
}

.shift-card h3,
.recipe-card h3,
.recipe-card h4 {
  margin: 0;
}

.shift-card ul,
.recipe-card ol,
.recipe-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.recipe-card {
  overflow: hidden;
}

.recipe-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 12px;
  padding: 16px;
  background: #fff;
}

.recipe-card-head span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.recipe-card-head h3 {
  margin-top: 4px;
  font-size: 22px;
}

.recipe-card-head p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.video-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--warm);
  font-weight: 900;
  text-decoration: none;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f4f7f7;
}

.recipe-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: #f2f2f2;
  font-size: 12px;
  font-weight: 800;
}

.recipe-columns {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  padding: 16px;
}

.recipe-card h4 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
}

.ingredient-list {
  display: grid;
  gap: 6px;
}

.ingredient-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ingredient-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ingredient-list strong {
  color: var(--warm);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.training-table {
  min-width: 920px;
  border: 0;
}

.training-table td,
.training-table th {
  vertical-align: top;
}

.training-table td:nth-child(5) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .cart {
    position: static;
  }

  .columns,
  .promo-menu,
  .groupbuy-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .form-grid.compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid.time-inline {
    grid-template-columns: minmax(120px, 1.4fr) minmax(80px, 0.8fr) minmax(80px, 0.8fr);
  }

  .form-grid.schedule-time-grid {
    grid-template-columns: minmax(132px, 1.55fr) minmax(74px, 0.75fr) minmax(74px, 0.75fr);
  }

  .training-hero,
  .recipe-columns {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .shell:not(.admin-portal) .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-portal.topbar,
  .staff-portal .topbar,
  .shell.staff-portal .topbar {
    min-height: 56px;
    align-items: center;
    flex-direction: row;
    padding: 7px 10px;
  }

  .shell.staff-portal .brand {
    min-width: 0;
    gap: 8px;
  }

  .shell.staff-portal .brand-mark {
    width: 38px;
    height: 38px;
  }

  .shell.staff-portal .private-portal-badge {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .shell:not(.admin-portal) .tabs {
    overflow-x: auto;
  }

  .shell:not(.admin-portal) .tab {
    flex: 0 0 auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .hero-mode-switch {
    top: 54px;
    right: 16px;
  }

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

  .training-hero {
    padding: 20px;
  }

  .training-hero-grid,
  .training-filters,
  .training-section-head {
    grid-template-columns: 1fr;
  }

  .training-section-head {
    display: grid;
  }

  .training-filters {
    width: 100%;
  }

  .columns,
  .promo-menu,
  .groupbuy-list,
  .form-grid,
  .form-grid.compact {
    grid-template-columns: 1fr;
  }

  .support-conversation-layout {
    grid-template-columns: 1fr;
  }

  .support-people-list {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .settlement-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settlement-table {
    overflow-x: auto;
  }

  .settlement-row {
    min-width: 720px;
  }

  .form-grid.time-inline {
    grid-template-columns: minmax(112px, 1.35fr) minmax(72px, 0.8fr) minmax(72px, 0.8fr);
  }

  .form-grid.schedule-time-grid {
    grid-template-columns: minmax(126px, 1.58fr) minmax(66px, 0.72fr) minmax(66px, 0.72fr);
    gap: 6px;
  }

  .schedule-time-grid .field select {
    min-height: 38px;
    padding-inline: 7px;
    font-size: 14px;
  }

  .member-row {
    align-items: flex-start;
  }

  .member-fixed,
  .member-live {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .mine-profile-trigger strong {
    font-size: 22px;
  }

  .mine-profile-trigger {
    max-width: calc(100% - 132px);
    gap: 10px;
  }

  .mine-icons {
    right: 14px;
    top: max(30px, calc(20px + env(safe-area-inset-top)));
    gap: 7px;
  }

  .mine-icons button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .vip-perks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .asset-grid,
  .benefit-grid {
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  }

  .benefit-grid.four {
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  }

  .invite-banners {
    grid-template-columns: 1fr 1fr;
  }

  .mine-tool strong,
  .asset-item strong {
    font-size: 13px;
  }

  .favorite-strip {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }

  .full {
    grid-column: auto;
  }

  .order-menu {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
  }

  .category-tab {
    min-height: 48px;
    padding: 7px 8px 7px 10px;
    font-size: 12px;
  }

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

  .item-art {
    width: 104px;
    height: 104px;
  }

  .item-title-row h3 {
    font-size: 15px;
  }

  .price-stack strong {
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .staff-notice-pop {
    left: 10px;
    right: 10px;
    bottom: 14px;
    width: auto;
    grid-template-columns: 1fr;
  }

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

  .mine-icons {
    gap: 7px;
  }

  .mine-icons button {
    width: 34px;
    height: 34px;
  }

  .asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit-grid,
  .benefit-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .wallet-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .wallet-actions button {
    min-height: 36px;
    font-size: 14px;
  }

  .wallet-actions span {
    margin-left: 2px;
    padding: 1px 4px;
    font-size: 10px;
  }

  .vip-strip {
    gap: 8px;
  }

  .vip-strip strong {
    font-size: 20px;
  }

  .vip-strip span {
    font-size: 12px;
  }

  .vip-strip .secondary {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .vip-perks {
    gap: 6px;
  }

  .vip-perks div {
    min-height: 58px;
    padding: 7px 5px;
  }

  .vip-perks strong {
    font-size: 12px;
  }

  .vip-perks span {
    font-size: 10px;
    line-height: 1.2;
  }

  .mine-card {
    padding: 12px;
  }

  .mine-card h2 {
    margin-bottom: 10px;
    font-size: 17px;
  }

  .asset-item span,
  .mine-tool span {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .mine-tool {
    min-height: 52px;
  }

  .mine-tool strong {
    font-size: 12px;
  }

  .asset-item strong {
    font-size: 12px;
  }

  .asset-item em {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  body {
    min-width: 0;
  }

  .shell:not(.admin-portal) .main {
    padding-left: 6px;
    padding-right: 6px;
  }

  .hero {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .hero-logo {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero h2 {
    padding-right: 112px;
    font-size: 18px;
  }

  .hero-address {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  .hero-mode-switch {
    top: 12px;
    right: 10px;
  }

  .hero-mode-switch .mode-switch {
    min-height: 30px;
    padding: 2px;
  }

  .mode-switch button {
    min-width: 54px;
    padding: 0 7px;
    font-size: 10px;
  }

  .order-menu {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 6px;
  }

  .category-tab {
    min-height: 38px;
    padding: 6px 5px;
    font-size: 11px;
  }

  .item-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .item-art {
    width: 82px;
    height: 82px;
  }

  .customer-bottom-nav em {
    font-size: 10px;
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .mine-hero {
    padding-top: max(30px, calc(20px + env(safe-area-inset-top)));
  }

  .mine-profile-trigger {
    max-width: 100%;
    padding-right: 124px;
  }

  .mine-profile-trigger strong {
    font-size: clamp(18px, 5vw, 22px);
  }

  .mine-profile-trigger em {
    font-size: 12px;
  }

  .vip-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .vip-strip span {
    flex-basis: 100%;
    white-space: normal;
  }

  .vip-strip .secondary {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .vip-perks {
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  }

  .settings-panel {
    top: 62px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: min(72vh, 560px);
    overflow: auto;
  }

  .settings-row {
    gap: 8px;
    padding: 8px;
  }

  .wallet-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mine-card {
    padding: 11px;
  }

  .customer-bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding-inline: 4px;
  }

  .customer-bottom-nav button {
    min-height: 48px;
    padding-inline: 2px;
    font-size: 10px;
  }

  .customer-bottom-nav span {
    width: 23px;
    height: 23px;
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  :root {
    --customer-sticky-top: calc(8px + env(safe-area-inset-top));
    --customer-bottom-space: calc(72px + env(safe-area-inset-bottom));
  }

  .shell:not(.admin-portal) {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .shell:not(.admin-portal) .topbar {
    padding: 10px 12px;
  }

  .shell.staff-portal .topbar {
    min-height: 56px;
    align-items: center;
    flex-direction: row;
    padding: 7px 10px;
  }

  .brand-title {
    font-size: 16px;
  }

  .shell:not(.admin-portal) .main {
    padding: 10px 8px 96px;
  }

  .hero {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    margin-bottom: 10px;
    padding: 12px;
    overflow: visible;
  }

  .hero-mode-switch {
    position: static;
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
  }

  .hero-logo {
    width: 68px;
    height: 68px;
    font-size: 32px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-mode-switch .mode-switch {
    width: 100%;
    min-height: 38px;
    justify-content: center;
    padding: 0 10px;
    box-shadow: none;
  }

  .hero-mode-switch .mode-segment {
    width: 100%;
    min-width: 0;
    box-shadow: none;
  }

  .mode-segment button {
    min-width: 0;
    padding: 0 6px;
  }

  .mode-segment span {
    width: 21px;
    height: 21px;
  }

  .mode-switch span {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .mode-switch strong {
    font-size: 12px;
  }

  .hero h2 {
    max-width: none;
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1.15;
  }

  .hero-address {
    max-width: 100%;
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .hero-tools {
    flex-wrap: nowrap;
    gap: 5px;
    margin-top: 8px;
    overflow: visible;
  }

  .support-chip {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hero .share-open-btn,
  .google-review-chip {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hero .share-open-btn {
    gap: 5px;
  }

  .hero .share-open-btn span {
    width: 16px;
    height: 16px;
  }

  .share-btn svg,
  .share-mark svg {
    width: 16px;
    height: 16px;
    display: block;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    grid-column: 1 / -1;
    order: 4;
  }

  .stat {
    min-width: 0;
    min-height: 50px;
    padding: 8px 9px;
  }

  .stat strong {
    font-size: 14px;
    line-height: 1.2;
  }

  .stat span {
    font-size: 11px;
  }

  .hours-stat strong,
  .hours-stat strong span {
    font-size: 11px;
  }

  .promo-summary,
  .compact-title {
    min-height: 38px;
    padding: 7px 9px;
  }

  .promo-summary span:first-child,
  .compact-title span:first-child {
    font-size: 11px;
  }

  .order-menu {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 6px;
    overflow: visible;
  }

  .category-rail {
    top: var(--customer-sticky-top);
    max-height: calc(100dvh - var(--customer-sticky-top) - var(--customer-bottom-space) - 8px);
    border-radius: 7px;
  }

  .category-tab {
    min-height: 46px;
    padding: 7px 7px 7px 9px;
    border-left-width: 2px;
    font-size: 13px;
    line-height: 1.2;
    text-align: left;
    justify-content: flex-start;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .search {
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .menu-list {
    gap: 8px;
    margin-top: 8px;
  }

  .menu-current-category {
    display: none;
  }

  .menu-category-section {
    gap: 8px;
    scroll-margin-top: calc(var(--customer-sticky-top) + 8px);
  }

  .menu-category-section h2 {
    position: sticky;
    top: var(--customer-sticky-top);
    z-index: 9;
    min-height: 38px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 10px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.16);
    background: #f4f8f7;
    box-shadow: 0 7px 12px rgba(245, 247, 244, 0.96);
    font-size: 15px;
  }

  .item-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 7px;
  }

  .item-art {
    width: 64px;
    height: 64px;
    border-radius: 7px;
  }

  .item-art svg {
    width: 58px;
    height: 46px;
  }

  .item-title-row h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.22;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .sales-line {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.2;
  }

  .item-tags {
    gap: 4px;
    margin-top: 5px;
  }

  .item-tags span {
    min-height: 19px;
    padding: 0 5px;
    border-radius: 6px;
    font-size: 10px;
  }

  .item-desc {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 6px;
    font-size: 11px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .item-bottom {
    gap: 6px;
    margin-top: 5px;
  }

  .price-stack {
    min-width: 0;
    gap: 4px;
  }

  .price-stack strong {
    font-size: 16px;
  }

  .price-stack span {
    font-size: 11px;
  }

  .add-circle {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding-bottom: 2px;
    font-size: 22px;
  }

  .spec-btn {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .item-body .share-row {
    margin-top: 6px;
    justify-content: flex-start;
  }

  .item-body .share-mark,
  .item-body .share-btn {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
  }

  .item-body .share-btn svg,
  .item-body .share-mark svg {
    width: 14px;
    height: 14px;
  }

  .item-body .share-open-btn {
    min-height: 30px;
    padding: 0 9px;
    font-size: 11px;
  }

  .product-video-btn {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  .share-preview-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .share-preview-art {
    width: 86px;
    height: 86px;
  }

  .share-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-channel {
    min-height: 76px;
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .item-modal {
    width: min(100%, 430px);
    max-height: calc(100dvh - 18px);
  }

  .auction-panel-backdrop {
    padding: 10px;
    place-items: end center;
  }

  .auction-panel-modal {
    width: 100%;
    max-height: min(82dvh, 720px);
    border-radius: 12px 12px 8px 8px;
  }

  .auction-panel-tabs {
    padding: 10px 12px 0;
  }

  .auction-panel-list {
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  }

  .modal-head,
  .modal-foot {
    padding: 12px;
  }

  .modal-foot {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .staff-order-detail-modal .modal-foot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-order-detail-modal .modal-foot button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding-inline: 8px;
    font-size: 14px;
  }

  .modal-foot .primary {
    min-height: 44px;
    flex: 1;
  }

  .modal-foot > span {
    min-width: max-content;
    font-size: 13px;
    font-weight: 800;
  }

  .modal-head h2 {
    font-size: 18px;
  }

  .modal-body {
    padding: 12px;
  }

  .login-method-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-register-grid {
    grid-template-columns: 1fr;
  }

  .item-detail-hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .item-detail-art {
    width: 100%;
    max-height: 260px;
  }

  .item-detail-price strong {
    font-size: 21px;
  }

  .item-rating-summary {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 5px;
  }

  .item-rating-summary .rating-breakdown {
    justify-content: flex-start;
  }

  .item-detail-tabs {
    overflow-x: auto;
  }

  .item-detail-tabs button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .item-detail-tabs em {
    font-size: 10px;
  }

  .item-review-scoreline {
    align-items: flex-start;
    flex-direction: column;
  }

  .item-review-scoreline div {
    justify-content: flex-start;
  }

  .cart-launcher {
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .customer-bottom-nav {
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  }

  .customer-bottom-nav button {
    min-height: 48px;
    font-size: 11px;
  }

  .customer-bottom-nav span {
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 760px) {
  .staff-pos-shell,
  .staff-pos-shell.collapsed {
    grid-template-columns: 64px minmax(0, 1fr);
    height: calc(100svh - 56px);
    min-height: 520px;
    margin: -10px -8px 0;
  }

  .staff-pos-shell.collapsed {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .staff-pos-sidebar {
    max-height: none;
    border-right: 1px solid #d7e1e5;
    border-bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .staff-pos-brand {
    min-height: 74px;
    padding: 10px 6px;
    place-items: center;
  }

  .staff-pos-brand span,
  .staff-pos-brand b,
  .staff-pos-brand em,
  .staff-pos-mode {
    display: none;
  }

  .staff-pos-brand strong {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: transparent;
    background: #fff;
    font-size: 0;
  }

  .staff-pos-brand strong::after {
    content: attr(data-short-brand);
    color: #FFD84A;
    font-size: 20px;
    font-weight: 900;
  }

  .staff-pos-menu {
    display: grid;
    overflow: visible;
    padding: 4px 0 12px;
  }

  .staff-pos-menu button {
    min-width: 0;
    width: 100%;
    min-height: 58px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    padding: 6px 4px;
    border-radius: 0;
    text-align: center;
  }

  .staff-pos-shell.collapsed .staff-pos-menu button {
    min-height: 42px;
    padding: 0;
  }

  .staff-pos-shell.collapsed .staff-pos-menu button span {
    font-size: 18px;
  }

  .staff-pos-menu button span {
    font-size: 16px;
  }

  .staff-pos-menu button strong {
    width: 100%;
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
  }

  .staff-pos-menu button b {
    position: absolute;
    right: 5px;
    top: 8px;
  }

  .support-conversation-layout {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .support-people-list button {
    min-height: 40px;
    padding: 0 7px;
  }

  .support-people-list strong {
    font-size: 12px;
  }

  .staff-pos-top {
    grid-template-columns: 54px 1fr 54px;
    min-height: 56px;
  }

  .staff-order-tabs button {
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
  }

  .staff-pos-content {
    padding: 10px;
  }

  .staff-history-board {
    max-height: none;
  }

  .staff-pos-content .order-card {
    gap: 8px;
    padding: 10px;
  }

  .staff-detail-hero {
    align-items: center;
    padding: 10px 10px;
  }

  .staff-detail-hero strong {
    margin: 0 5px;
    font-size: 24px;
    white-space: nowrap;
  }

  .staff-detail-hero em {
    font-size: 13px;
  }

  .staff-order-type {
    min-height: 23px;
    padding: 0 6px;
    font-size: 13px;
  }

  .staff-note-strip {
    padding: 10px 12px;
    font-size: 15px;
  }

  .staff-detail-block {
    padding: 10px 10px;
  }

  .staff-block-title strong {
    font-size: 18px;
  }

  .staff-detail-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 0;
  }

  .staff-item-qty,
  .staff-item-price {
    font-size: 15px;
  }

  .staff-item-main strong {
    font-size: 14px;
  }

  .staff-item-main em {
    font-size: 12px;
  }

  .staff-info-grid {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 9px 10px;
  }

  .staff-info-grid span,
  .staff-info-grid strong,
  .staff-fee-row {
    font-size: 15px;
  }

  .staff-fee-row strong {
    font-size: 16px;
  }

  .staff-fee-row.final span,
  .staff-fee-row.final strong {
    font-size: 18px;
  }

  .staff-bottom-actions {
    grid-template-columns: 1fr 1.45fr;
    margin: 0 -10px -10px;
    padding: 10px;
  }

  .staff-bottom-actions button,
  .staff-bottom-actions .muted {
    min-height: 48px;
    font-size: 16px;
  }

  .staff-history-summary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 10px 0 12px;
    padding: 10px;
  }

  .staff-history-major {
    grid-column: span 3;
    padding: 0 10px 10px;
    border-bottom: 1px solid #d1d5db;
  }

  .staff-history-major + .staff-history-major {
    padding: 0 10px 10px;
    border-right: 0;
  }

  .staff-history-major strong {
    font-size: 34px;
  }

  .staff-history-major span,
  .staff-history-minor span {
    font-size: 12px;
  }

  .staff-history-minor strong {
    font-size: 14px;
  }

  .staff-history-minor {
    grid-column: span 2;
    padding-top: 8px;
  }
}

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

  .category-tab {
    font-size: 10px;
    padding-left: 7px;
  }

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

  .item-art {
    width: 60px;
    height: 60px;
  }
}

.auction-page {
  padding-bottom: 92px;
}

.auction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auction-paid-chip,
.auction-leading {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: #e7f8f5;
  color: #111111;
  font-size: 12px;
  font-weight: 800;
}

.auction-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}

.auction-tabs button {
  min-height: 36px;
  border: 1px solid #dbe7e7;
  border-radius: 8px;
  background: #fff;
  color: #53636b;
  font-weight: 800;
}

.auction-tabs button.active {
  background: #ffd429;
  border-color: #111111;
  color: #fff;
}

.auction-list {
  display: grid;
  gap: 8px;
}

.menu-auction-list {
  gap: 6px;
}

.menu-auction-list .auction-card {
  border-radius: 8px;
  box-shadow: none;
}

.auction-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid #dbe7e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 35, 40, .06);
  cursor: pointer;
}

.auction-thumb {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef6f5;
}

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

.auction-title-row,
.auction-brief-row,
.auction-price-row,
.auction-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auction-card-main {
  min-width: 0;
}

.auction-title-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: #12232b;
}

.auction-card-main p {
  margin: 4px 0;
  color: #60717a;
  font-size: 12px;
  line-height: 1.4;
}

.auction-price-row b {
  color: #e84646;
  font-size: 18px;
}

.auction-brief-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 4px;
  color: #60717a;
  font-size: 12px;
}

.auction-brief-row b {
  color: #e84646;
  font-size: 15px;
}

.auction-price-row em,
.auction-meta-row,
.auction-meta-row em {
  color: #77858d;
  font-size: 12px;
  font-style: normal;
}

.auction-meta-row {
  margin-top: 4px;
}

.auction-status {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef5f6;
  color: #48626b;
  font-size: 12px;
  font-weight: 800;
}

.auction-status.active {
  background: #fff0d9;
  color: #a65600;
}

.auction-status.scheduled {
  background: #e8f1ff;
  color: #1260b4;
}

.auction-status.awaiting_payment {
  background: #fff1f1;
  color: #b42318;
}

.auction-status.paid {
  background: #e4f8ed;
  color: #087443;
}

.auction-detail-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 40px));
  grid-template-rows: auto minmax(0, 1fr);
}

.auction-detail-backdrop {
  place-items: center;
  padding: 16px;
  z-index: 760;
}

.auction-detail-scroll {
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.auction-panel-backdrop {
  place-items: center;
  padding: 16px;
}

.auction-panel-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 40px));
  grid-template-rows: auto auto minmax(0, 1fr);
}

.auction-panel-head h2 {
  font-size: 20px;
}

.auction-panel-tabs {
  padding: 12px 16px 0;
  background: #fff;
}

.auction-panel-list {
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.auction-panel-list .auction-card {
  grid-template-columns: 78px minmax(0, 1fr);
  padding: 10px;
}

.auction-panel-list .auction-thumb {
  width: 78px;
  height: 78px;
}

.auction-detail-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
}

.auction-detail-image {
  height: 210px;
  border-radius: 10px;
  background: #eef6f5;
}

.auction-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.auction-detail-price strong {
  color: #e84646;
  font-size: 28px;
}

.auction-detail-price span,
.auction-detail-price em,
.auction-rule-list {
  color: #667780;
  font-size: 12px;
}

.auction-rule-list {
  margin: 8px 0;
  padding-left: 18px;
  line-height: 1.6;
}

.auction-bid-box,
.auction-pay-box {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f6f7ff;
}

.auction-rule-confirm {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.auction-quick-bids {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auction-quick-bids button {
  border: 1px solid #c8cdf4;
  border-radius: 8px;
  background: #fff;
  color: #111111;
  font-weight: 800;
}

.auction-bid-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auction-records {
  margin-top: 12px;
  border-top: 1px solid #e3ecec;
  padding-top: 10px;
  max-height: 180px;
  overflow: auto;
}

.auction-records > div,
.auction-admin-records > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #eef3f3;
  font-size: 12px;
}

.auction-admin-panel .admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auction-admin-panel {
  overflow-x: auto;
}

.auction-admin-table {
  table-layout: fixed;
  min-width: 920px;
}

.auction-admin-table th,
.auction-admin-table td {
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
}

.auction-admin-table th:nth-child(1),
.auction-admin-table td:nth-child(1) {
  width: 32%;
}

.auction-admin-table th:nth-child(2),
.auction-admin-table td:nth-child(2),
.auction-admin-table th:nth-child(4),
.auction-admin-table td:nth-child(4),
.auction-admin-table th:nth-child(5),
.auction-admin-table td:nth-child(5) {
  width: 13%;
}

.auction-admin-table th:nth-child(3),
.auction-admin-table td:nth-child(3) {
  width: 18%;
}

.auction-admin-table th:nth-child(6),
.auction-admin-table td:nth-child(6) {
  width: 11%;
}

.auction-admin-panel .admin-product-cell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.auction-admin-panel .admin-product-cell img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: #eef5f5;
}

.auction-admin-panel .admin-product-cell span {
  min-width: 0;
}

.auction-admin-panel .admin-product-cell strong,
.auction-admin-panel .admin-product-cell em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auction-admin-panel .admin-product-cell strong {
  white-space: nowrap;
}

.auction-admin-panel .admin-product-cell em {
  max-height: 34px;
  color: #6a7780;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.auction-admin-table .link-btn,
.auction-admin-table .danger-link {
  min-height: 0;
  margin-right: 8px;
  padding: 0;
  font-size: 13px;
}

.auction-record-row td {
  padding: 6px 10px;
}

.auction-editor-modal {
  width: min(1040px, calc(100vw - 64px));
  max-height: min(780px, calc(100vh - 56px));
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.auction-editor-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 18px 20px;
  overflow: auto;
}

.auction-editor-grid .field {
  min-width: 0;
}

.auction-editor-grid .field label {
  margin-bottom: 4px;
  font-size: 12px;
}

.auction-editor-grid input,
.auction-editor-grid select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 14px;
}

.auction-editor-grid .auction-id-field {
  grid-column: span 1;
}

.auction-editor-grid .span-2 {
  grid-column: span 2;
}

.auction-editor-grid .span-3 {
  grid-column: span 3;
}

.auction-editor-grid .span-6 {
  grid-column: 1 / -1;
}

.auction-editor-modal .admin-actions {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.auction-admin-records {
  max-height: 180px;
  overflow: auto;
  padding: 8px 10px;
  background: #f8fbfb;
}

.auction-admin-records > div {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 8px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .auction-editor-modal {
    width: calc(100vw - 24px);
  }

  .auction-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auction-editor-grid .auction-id-field,
  .auction-editor-grid .span-2,
  .auction-editor-grid .span-3,
  .auction-editor-grid .span-6 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .customer-bottom-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .auction-panel-backdrop {
    padding: 10px;
    place-items: end center;
  }

  .auction-panel-modal {
    width: 100%;
    max-height: min(82dvh, 720px);
    border-radius: 12px 12px 8px 8px;
  }

  .auction-panel-tabs {
    padding: 10px 12px 0;
  }

  .auction-panel-list {
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  }

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

  .auction-thumb {
    width: 62px;
    height: 62px;
  }

  .auction-detail-body {
    grid-template-columns: 1fr;
  }

  .auction-detail-backdrop {
    place-items: end center;
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .auction-detail-modal {
    width: 100%;
    max-height: min(86dvh, 760px);
    border-radius: 12px 12px 8px 8px;
  }

  .auction-detail-modal .modal-head {
    padding: 12px;
  }

.auction-detail-modal .modal-head h2 {
    font-size: 18px;
  }

  .auction-detail-scroll {
    padding: 12px;
  }

  .auction-detail-image {
    height: 220px;
  }
}

/* Customer menu category rail: keep labels readable on all phone widths. */
.order-menu {
  grid-template-columns: clamp(84px, 18vw, 128px) minmax(0, 1fr);
}

.category-tab {
  text-align: left;
  justify-content: flex-start;
  align-items: center;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 430px) {
  .order-menu {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 6px;
  }

  .category-tab {
    min-height: 46px;
    padding: 7px 7px 7px 9px;
    font-size: 13px;
    line-height: 1.2;
  }
}

@media (max-width: 360px) {
  .order-menu {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .category-tab {
    font-size: 12px;
  }
}

.deliverect-admin {
  display: grid;
  gap: 16px;
}

.deliverect-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.deliverect-hero h3 {
  margin: 0 0 8px;
}

.deliverect-status-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #f2c94c;
  border-radius: 8px;
  background: #fff6cf;
  color: #332900;
  font-weight: 800;
  white-space: nowrap;
}

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

.deliverect-status-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #dde7e8;
  border-radius: 8px;
  background: #fff;
}

.deliverect-status-card strong {
  color: #0b6b66;
  font-size: 20px;
}

.deliverect-status-card span,
.deliverect-preview-box em,
.deliverect-log-row span,
.deliverect-log-row em {
  color: #6b7c86;
  font-style: normal;
}

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

.deliverect-config-grid .span-2 {
  grid-column: 1 / -1;
}

.deliverect-table-wrap {
  overflow-x: auto;
  border: 1px solid #e3ecef;
  border-radius: 8px;
  background: #fff;
}

.deliverect-table {
  min-width: 1200px;
}

.deliverect-table input {
  width: 100%;
  min-width: 110px;
  padding: 8px;
  border: 1px solid #d9e4e7;
  border-radius: 6px;
  background: #fff;
}

.deliverect-table td:first-child input {
  width: auto;
  min-width: 0;
}

.deliverect-two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.deliverect-preview-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e3ecef;
  border-radius: 8px;
  background: #fbfdfd;
}

.deliverect-preview-box strong {
  color: #0b6b66;
}

.deliverect-log-table {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #e3ecef;
  border-radius: 8px;
}

.deliverect-log-row {
  display: grid;
  grid-template-columns: 150px 160px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f3;
  font-size: 13px;
}

.deliverect-log-row:last-child {
  border-bottom: 0;
}

.deliverect-log-row span,
.deliverect-log-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .deliverect-hero,
  .deliverect-two-col {
    display: block;
  }

  .deliverect-status-grid,
  .deliverect-config-grid {
    grid-template-columns: 1fr;
  }
}
