:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --orange: #ff6b22;
  --orange-dark: #e84e0f;
  --orange-soft: #fff0e7;
  --ink: #18202a;
  --muted: #75808f;
  --line: #e7e9ed;
  --surface: #ffffff;
  --canvas: #f5f6f8;
  --green: #12a66a;
  --green-soft: #e7f8f0;
  --blue: #2675e8;
  --blue-soft: #eaf2ff;
  --red: #e84646;
  --shadow: 0 8px 28px rgba(32, 40, 53, 0.08);
  --nav-width: 232px;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); min-width: 320px; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button { border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.app-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 14px;
  justify-items: center;
  color: var(--muted);
  font-size: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 23px;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(255, 107, 34, 0.3);
}

.app-shell { min-height: 100vh; }
.desktop-nav { display: none; }
.page { min-height: 100vh; padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
.page-inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 14px; }
.page-content { padding-top: 14px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 60px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 233, 237, 0.85);
}

.topbar-inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-title h1 { margin: 0; font-size: 18px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; flex: 0 0 auto; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
}
.icon-button:hover { background: #f0f1f3; }
.icon-button svg { width: 20px; height: 20px; }

.bottom-nav {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(68px + env(safe-area-inset-bottom));
  padding: 5px 6px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8b95a3;
  background: transparent;
  font-size: 11px;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--orange); font-weight: 700; }
.nav-dot { position: absolute; top: 6px; right: calc(50% - 17px); width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 2px solid white; }

.hero-header {
  margin: 0 -14px;
  padding: 12px 14px 18px;
  background: linear-gradient(180deg, #fff4eb 0%, #f5f6f8 100%);
}

.search-row { display: flex; gap: 9px; margin-bottom: 12px; }
.search-box {
  min-width: 0;
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #ffd8c2;
  border-radius: 8px;
  background: white;
  box-shadow: 0 5px 16px rgba(255, 107, 34, 0.1);
}
.search-box svg { width: 18px; color: var(--orange); flex: 0 0 auto; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: #a0a7b2; }
.search-submit { padding: 0 16px; border-radius: 8px; background: var(--orange); color: white; font-weight: 700; }

.hero-banner {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  border-radius: 8px;
  background: #bd7b4c;
  box-shadow: var(--shadow);
}
.banner-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banner-slider::-webkit-scrollbar { display: none; }
.banner-slider .hero-banner { scroll-snap-align: start; }
.hero-banner img { width: 100%; height: 174px; object-fit: cover; filter: saturate(0.85) contrast(0.94); }
.hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(106, 40, 12, 0.64), rgba(106, 40, 12, 0.08) 72%); }
.hero-copy { position: absolute; z-index: 1; left: 18px; top: 20px; max-width: 73%; color: white; }
.hero-copy .eyebrow { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--orange); margin-bottom: 9px; }
.hero-copy h2 { margin: 0 0 7px; font-size: 22px; line-height: 1.25; letter-spacing: 0; }
.hero-copy p { margin: 0 0 13px; font-size: 12px; opacity: 0.92; }

.button, .button-secondary, .button-ghost, .button-danger {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  white-space: nowrap;
}
.button svg, .button-secondary svg, .button-ghost svg { width: 18px; height: 18px; }
.button { color: white; background: var(--orange); box-shadow: 0 5px 14px rgba(255, 107, 34, 0.2); }
.button:hover { background: var(--orange-dark); }
.button-secondary { color: var(--orange-dark); background: var(--orange-soft); }
.button-ghost { color: var(--ink); background: #f0f1f3; }
.button-danger { color: var(--red); background: #fff0f0; }
.button.small, .button-secondary.small, .button-ghost.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.button.light { color: var(--orange-dark); background: white; box-shadow: none; }
.button.block { width: 100%; }
.button:disabled, .button-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.announcement {
  margin-top: 12px;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  background: #fff9f4;
  color: #9d3b16;
  font-size: 13px;
}
.announcement svg { width: 17px; color: var(--orange); flex: 0 0 auto; }
.announcement span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section { margin-top: 12px; padding: 15px 12px; background: var(--surface); border-radius: 8px; }
.section.unframed { padding-left: 0; padding-right: 0; background: transparent; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; line-height: 1.3; }
.section-title::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--orange); }
.section-link { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); background: transparent; font-size: 13px; }
.section-link svg { width: 16px; height: 16px; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 6px; }
.category-item { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ink); background: transparent; min-width: 0; font-size: 12px; }
.category-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: white; }
.category-icon svg { width: 22px; height: 22px; }
.category-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.category-item:nth-child(4n + 1) .category-icon { background: #ff6b22; }
.category-item:nth-child(4n + 2) .category-icon { background: #ff8a35; }
.category-item:nth-child(4n + 3) .category-icon { background: #e69c00; }
.category-item:nth-child(4n + 4) .category-icon { background: #10b981; }
.category-item:nth-child(n + 5) .category-icon { background: #8068e9; }
.category-item:nth-child(n + 6) .category-icon { background: #ec535f; }
.category-item:nth-child(n + 7) .category-icon { background: #1aa8d7; }
.category-item:nth-child(n + 8) .category-icon { background: #ee9900; }
.category-item span:last-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.horizontal-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 67%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.horizontal-scroll::-webkit-scrollbar { display: none; }
.store-card { overflow: hidden; border: 1px solid #f0f1f3; border-radius: 8px; background: white; scroll-snap-align: start; cursor: pointer; }
.store-card img { width: 100%; height: 120px; object-fit: cover; }
.store-card-body { padding: 11px; }
.store-card h3 { margin: 0 0 5px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card p { margin: 0 0 10px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.rating { color: #ed8c00; font-weight: 800; }

.activity-list { display: grid; gap: 14px; }
.activity-card { position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; min-height: 105px; cursor: pointer; }
.activity-cover { position: relative; overflow: hidden; height: 105px; border-radius: 8px; background: #eceef1; }
.activity-cover img { width: 100%; height: 100%; object-fit: cover; }
.status-ribbon { position: absolute; left: 0; top: 0; padding: 4px 8px; border-radius: 0 0 8px 0; color: white; background: var(--green); font-size: 11px; font-weight: 800; }
.activity-info { min-width: 0; display: flex; flex-direction: column; padding: 2px 0; }
.activity-info h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-info p { margin: 0 0 7px; color: var(--muted); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.activity-stats { color: var(--muted); font-size: 12px; }
.activity-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { color: #f23838; font-size: 18px; font-weight: 800; }
.price small { font-size: 12px; }
.original-price { margin-left: 5px; color: #a2a9b3; font-size: 12px; text-decoration: line-through; font-weight: 400; }

.empty-state { min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); text-align: center; }
.empty-state svg { width: 40px; height: 40px; color: #b3bac5; }
.empty-state h3 { margin: 0; color: var(--ink); font-size: 16px; }
.empty-state p { margin: 0; font-size: 13px; }

.filter-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-chip { min-height: 34px; padding: 0 14px; border-radius: 999px; color: var(--muted); background: white; border: 1px solid var(--line); white-space: nowrap; }
.filter-chip.active { color: white; background: var(--orange); border-color: var(--orange); }

.detail-hero { margin: 0 -14px; position: relative; height: 248px; background: #ddd; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.back-button { position: absolute; z-index: 2; left: 14px; top: 14px; color: white; background: rgba(24, 32, 42, 0.55); backdrop-filter: blur(8px); }
.detail-panel { position: relative; margin: -18px 0 0; padding: 18px 16px; border-radius: 8px 8px 0 0; background: white; }
.detail-panel h1 { margin: 0 0 7px; font-size: 22px; line-height: 1.35; }
.detail-panel .subtitle { margin: 0 0 15px; color: var(--muted); font-size: 14px; }
.detail-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.remain { color: var(--orange-dark); font-size: 13px; font-weight: 700; }
.info-list { display: grid; gap: 12px; }
.info-row { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 9px; align-items: start; font-size: 14px; line-height: 1.5; }
.info-row svg { width: 19px; margin-top: 1px; color: var(--orange); }
.info-row strong { display: block; margin-bottom: 2px; }
.info-row span { color: var(--muted); font-size: 13px; }
.rich-text { color: #49525e; line-height: 1.8; font-size: 14px; white-space: pre-line; }
.activity-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.activity-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.activity-detail-images { margin-top: 14px; display: grid; gap: 10px; }
.activity-detail-images img { width: 100%; max-height: 720px; object-fit: cover; border-radius: 6px; }
.sticky-action { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; min-height: calc(70px + env(safe-area-inset-bottom)); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; background: white; border-top: 1px solid var(--line); }
.sticky-action .button { flex: 1; min-height: 50px; }
.sticky-action .action-price { min-width: 90px; }
.page.has-sticky-action { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.desktop-signup { display: none; }

.form-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field label { font-size: 13px; color: #4d5662; font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: white;
}

.agreement-panel { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf9; }
.agreement-panel h3 { margin: 0; font-size: 15px; color: var(--ink); }
.agreement-item { display: grid; gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); }
.agreement-item details { font-size: 13px; color: var(--muted); }
.agreement-item summary { cursor: pointer; color: var(--primary); font-weight: 650; }
.agreement-item details p { margin: 9px 0 0; line-height: 1.7; white-space: pre-wrap; color: #59636f; }
.agreement-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 9px; font-size: 13px; line-height: 1.55; color: #303740; cursor: pointer; }
.agreement-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.field-help { margin: 0; color: var(--muted); font-size: 12px; }
.required { color: var(--red); }
.quantity-stepper { width: fit-content; display: grid; grid-template-columns: 40px 44px 40px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.quantity-stepper button { height: 40px; display: grid; place-items: center; background: #f5f6f8; color: var(--ink); }
.quantity-stepper input { min-height: 40px; padding: 0; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; }

.profile-hero { margin: 0 -14px; padding: 28px 18px 32px; color: white; background: #293343; }
.profile-main { display: flex; align-items: center; gap: 14px; }
.avatar { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--orange-dark); background: #ffe5d6; border: 3px solid rgba(255, 255, 255, 0.55); font-size: 22px; font-weight: 800; }
.profile-main h2 { margin: 0 0 5px; font-size: 20px; }
.profile-main p { margin: 0; color: #cad1da; font-size: 13px; }
.role-badge { display: inline-flex; margin-left: 8px; padding: 3px 7px; border-radius: 999px; color: #6e350b; background: #ffd8b6; font-size: 11px; vertical-align: middle; }

.mine-screen { background: #fff8f2; }
.page-inner.mine-page { max-width: 820px; padding: 0; }
.mine-hero { min-height: 238px; padding: 18px 16px 48px; color: white; background: var(--orange); }
.mine-hero-top { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phone-binding { min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; font-size: 11px; }
.phone-binding svg { width: 14px; }
.mine-settings { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: transparent; border-radius: 8px; }
.mine-settings:hover { background: rgba(255,255,255,.14); }
.mine-settings svg { width: 21px; }
.mine-identity { margin-top: 4px; display: grid; grid-template-columns: minmax(0, 1fr) 124px minmax(0, 1fr); align-items: center; gap: 8px; text-align: center; }
.mine-person { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mine-person h1 { order: -1; max-width: 124px; margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.mine-person > span:last-child { font-size: 11px; color: rgba(255,255,255,.86); }
.mine-avatar { width: 68px; height: 68px; display: grid; place-items: center; overflow: hidden; border: 4px solid rgba(255,255,255,.72); border-radius: 50%; color: var(--orange-dark); background: #fff; font-size: 24px; font-weight: 800; }
.mine-avatar img, .avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-side-value span, .mine-side-value strong { display: block; }
.mine-side-value span { margin-bottom: 7px; color: rgba(255,255,255,.86); font-size: 12px; }
.mine-side-value strong { font-size: 19px; }
.mine-content { padding: 0 12px 24px; }
.mine-stats { position: relative; margin-top: -29px; min-height: 78px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid rgba(236,238,241,.75); border-radius: 8px; background: white; box-shadow: 0 8px 24px rgba(37,43,52,.06); }
.mine-stats button { min-width: 0; padding: 11px 2px 9px; color: var(--ink); background: transparent; }
.mine-stats strong, .mine-stats span { display: block; }
.mine-stats strong { font-size: 20px; }
.mine-stats span { margin-top: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.mine-role-panel { margin-top: 14px; padding: 17px 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #f0ece8; border-radius: 8px; background: white; }
.mine-role-panel.has-promotion { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mine-role-panel button { min-width: 0; padding: 0 3px; display: flex; flex-direction: column; align-items: center; color: var(--ink); background: transparent; }
.mine-role-panel strong, .mine-role-panel small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-role-panel strong { margin-top: 9px; font-size: 14px; }
.mine-role-panel small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.mine-role-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 8px; color: white; }
.mine-role-icon svg { width: 24px; }
.mine-role-icon.mint { background: #16b984; }
.mine-role-icon.blue { background: #3d82ef; }
.mine-role-icon.violet { background: #8061e8; }
.mine-role-icon.magenta { background: #cc4ee8; }
.mine-service-panel, .mine-list-panel { margin-top: 14px; border: 1px solid #f0ece8; border-radius: 8px; background: white; }
.mine-service-panel { padding: 14px 10px 16px; }
.mine-service-panel h2 { margin: 0 0 14px 3px; font-size: 15px; }
.mine-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mine-service-grid button { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ink); background: transparent; }
.mine-service-grid strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.mine-service-icon { position: relative; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); }
.mine-service-icon svg { width: 20px; }
.mine-service-icon em { position: absolute; top: -5px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border: 2px solid white; border-radius: 999px; color: white; background: var(--red); font-size: 9px; font-style: normal; }
.mine-list-panel { padding: 3px 16px; }
.mine-list-item { width: 100%; min-height: 55px; display: flex; align-items: center; gap: 10px; color: var(--ink); background: transparent; border-bottom: 1px solid #f1f2f4; text-align: left; }
.mine-list-item:last-child { border-bottom: 0; }
.mine-list-item > span:nth-child(2) { flex: 1; }
.mine-list-item strong { color: var(--muted); font-size: 11px; font-weight: 500; }
.mine-list-item > svg { width: 16px; color: #a4acb6; }
.mine-list-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; color: var(--orange); background: var(--orange-soft); }
.mine-list-icon svg { width: 16px; }
.mine-guest-hero { min-height: calc(100vh - 68px); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; background: var(--orange); text-align: center; }
.mine-guest-hero h1 { margin: 18px 0 7px; font-size: 23px; }
.mine-guest-hero p { margin: 0 0 22px; color: rgba(255,255,255,.84); font-size: 13px; }
.mine-guest-hero > button { width: min(260px, 100%); }
.mine-guest-hero > .button-secondary { margin-top: 10px; color: #9b3f14; background: white; }
.detail-title-actions { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-quick-actions { display: flex; align-items: center; gap: 8px; }
.favorite-button, .poster-button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #8d96a2; background: #f1f2f4; }
.favorite-button svg, .poster-button svg { width: 19px; }
.poster-button { color: var(--orange-dark); background: var(--orange-soft); }
.favorite-button.active { color: white; background: var(--red); }
.favorite-button.active svg { fill: currentColor; }
.review-list { display: grid; gap: 10px; }
.review-card { padding: 12px; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.review-card img { width: 78px; height: 78px; object-fit: cover; border-radius: 6px; }
.review-card h3 { margin: 0 0 4px; font-size: 14px; }
.review-card span { color: var(--muted); font-size: 11px; }
.review-card p { margin: 6px 0 0; color: #4b5562; font-size: 12px; line-height: 1.55; }
.review-stars { margin-top: 6px; color: #e9a20d; letter-spacing: 0; }
.rating-picker { display: grid; grid-template-columns: repeat(5, 42px); justify-content: center; gap: 6px; }
.rating-picker button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; color: #c5cbd2; background: #f1f2f4; }
.rating-picker button.active { color: #e9a20d; background: #fff6d9; }
.rating-picker button.active svg { fill: currentColor; }
.profile-editor-avatar { display: flex; align-items: center; gap: 14px; }
.button-ghost.block { width: 100%; min-height: 44px; }

.menu-list { display: grid; }
.menu-item { min-height: 54px; padding: 0 2px; display: flex; align-items: center; gap: 11px; color: var(--ink); background: transparent; border-bottom: 1px solid #f0f1f3; text-align: left; }
.menu-item:last-child { border-bottom: 0; }
.menu-item > svg:first-child { width: 20px; color: var(--orange); }
.menu-item span { flex: 1; }
.menu-item > svg:last-child { width: 17px; color: #a3abb6; }

.dashboard-banner { margin: 0 -14px; padding: 20px 14px 32px; color: white; background: #293343; }
.dashboard-banner h1 { margin: 0 0 6px; font-size: 22px; }
.dashboard-banner p { margin: 0; color: #c8d0da; font-size: 13px; }
.store-switcher { margin-top: 15px; display: inline-flex; align-items: center; gap: 7px; color: white; background: rgba(255, 255, 255, 0.12); min-height: 36px; padding: 0 11px; border-radius: 8px; }
.store-switcher svg { width: 16px; }
.stat-grid { position: relative; margin-top: -18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-card { min-height: 92px; padding: 14px; background: white; border: 1px solid #eff0f2; border-radius: 8px; box-shadow: 0 5px 18px rgba(24, 32, 42, 0.05); }
.stat-card span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.stat-card strong { font-size: 23px; line-height: 1; }
.stat-card small { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.stat-card.highlight { color: white; background: var(--orange); border-color: var(--orange); }
.stat-card.highlight span, .stat-card.highlight small { color: rgba(255, 255, 255, 0.82); }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick-action { min-height: 78px; padding: 8px 3px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; border-radius: 8px; color: var(--ink); background: #f7f8fa; font-size: 12px; }
.quick-action svg { width: 23px; color: var(--orange); }
.quick-action.primary { color: white; background: var(--orange); }
.quick-action.primary svg { color: white; }

.merchant-console-screen { background: #fff7ee; }
.page-inner.merchant-console { width: 100%; max-width: 760px; margin: 0 auto; padding: 10px 10px 28px; }
.merchant-store-panel, .merchant-panel { border: 1px solid #f1f2f4; border-radius: 8px; background: white; }
.merchant-store-panel { padding: 16px; }
.merchant-store-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) 36px; align-items: center; gap: 12px; }
.merchant-store-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--orange); }
.merchant-store-mark svg { width: 30px; height: 30px; }
.merchant-store-identity { min-width: 0; }
.merchant-store-identity h1 { margin: 0 0 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; }
.merchant-store-identity p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--orange-dark); font-size: 13px; }
.merchant-store-identity p > span { display: inline-flex; align-items: center; gap: 4px; }
.merchant-store-identity p svg { width: 14px; height: 14px; fill: currentColor; }
.merchant-open-badge { padding: 3px 8px; border-radius: 999px; color: #087951; background: #e7f8f1; font-size: 11px; }
.merchant-open-badge svg { width: 7px !important; height: 7px !important; fill: #10ad78 !important; }
.merchant-switch-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: #7a8490; background: #f2f4f6; }
.merchant-switch-icon svg { width: 18px; }
.merchant-primary-metrics { margin-top: 15px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.merchant-primary-metrics button { min-width: 0; min-height: 82px; padding: 10px; border: 1px solid var(--orange); border-radius: 8px; color: var(--ink); background: #fffaf6; }
.merchant-primary-metrics strong, .merchant-primary-metrics span { display: block; }
.merchant-primary-metrics strong { overflow-wrap: anywhere; color: var(--orange); font-size: 22px; }
.merchant-primary-metrics span { margin-top: 8px; color: #66707d; font-size: 12px; }
.merchant-today-grid { margin: 12px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.merchant-today-grid button { position: relative; min-width: 0; min-height: 86px; padding: 12px 2px 8px; overflow: hidden; border-radius: 8px; background: white; }
.merchant-today-grid button::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: currentColor; }
.merchant-today-grid button.orange { color: #f06b20; }
.merchant-today-grid button.blue { color: #3478f6; }
.merchant-today-grid button.green { color: #10a976; }
.merchant-today-grid button.red { color: #ef4d58; }
.merchant-today-grid strong, .merchant-today-grid span { display: block; }
.merchant-today-grid strong { color: #18202a; font-size: 21px; }
.merchant-today-grid span { margin-top: 8px; color: #657080; font-size: 11px; white-space: nowrap; }
.merchant-panel { margin-top: 12px; padding: 16px; }
.merchant-panel-title { min-height: 26px; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.merchant-panel-title h2 { position: relative; margin: 0; padding-left: 11px; font-size: 17px; }
.merchant-panel-title h2::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: var(--orange); }
.merchant-panel-title button { display: inline-flex; align-items: center; gap: 2px; color: #687586; background: transparent; font-size: 12px; }
.merchant-panel-title button svg { width: 15px; }
.merchant-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
.merchant-tool-grid > button { min-width: 0; min-height: 88px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; color: #26303b; background: transparent; }
.merchant-tool-grid > button strong { max-width: 100%; font-size: 13px; font-weight: 500; white-space: nowrap; }
.merchant-tool-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 8px; color: white; box-shadow: 0 5px 13px rgba(31,42,54,.1); }
.merchant-tool-icon svg { width: 25px; height: 25px; }
.merchant-tool-icon.orange { background: #ff7426; }
.merchant-tool-icon.blue { background: #4c8ef7; }
.merchant-tool-icon.violet { background: #9066eb; }
.merchant-tool-icon.green { background: #20bd8a; }
.merchant-tool-icon.amber { background: #f7a914; }
.merchant-tool-icon.red { background: #ef545c; }
.merchant-tool-icon.pink { background: #e94c9d; }
.merchant-tool-icon.cyan { background: #19b5cc; }
.merchant-tool-icon.magenta { background: #cc4ee8; }
.merchant-hot-list { display: grid; gap: 10px; }
.merchant-hot-activity { padding: 9px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; border-top: 1px solid #f0f1f3; cursor: pointer; }
.merchant-hot-activity:first-child { border-top: 0; }
.merchant-hot-activity img { width: 76px; height: 66px; object-fit: cover; border-radius: 6px; }
.merchant-hot-activity h3 { margin: 2px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.merchant-hot-activity p { margin: 0 0 5px; color: var(--muted); font-size: 11px; }
.merchant-hot-activity span { color: var(--orange); font-size: 14px; font-weight: 750; }
.merchant-empty { min-height: 76px; display: grid; place-items: center; color: #9aa2ad; font-size: 13px; }
.merchant-store-options { display: grid; gap: 9px; }
.merchant-store-options button { min-width: 0; padding: 10px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 22px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; text-align: left; }
.merchant-store-options button.active { border-color: var(--orange); background: var(--orange-soft); }
.merchant-store-options img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.merchant-store-options strong, .merchant-store-options small { display: block; }
.merchant-store-options small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.merchant-store-options > button > svg { width: 18px; color: var(--orange); }
.merchant-data-page { max-width: 760px; }
.merchant-data-hero { padding: 22px 18px; border-radius: 8px; color: white; background: #27333d; }
.merchant-data-hero span, .merchant-data-hero strong, .merchant-data-hero p { display: block; }
.merchant-data-hero span { color: #d2d8de; font-size: 12px; }
.merchant-data-hero strong { margin: 8px 0; font-size: 30px; }
.merchant-data-hero p { margin: 0; color: #bdc7d0; font-size: 12px; }
.merchant-data-grid { margin: 12px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.merchant-data-grid > div { min-width: 0; padding: 13px 3px; border-radius: 8px; background: white; text-align: center; }
.merchant-data-grid span, .merchant-data-grid strong { display: block; }
.merchant-data-grid span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.merchant-data-grid strong { margin-top: 7px; font-size: 18px; }
.merchant-total-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.merchant-total-list > div { padding: 12px; border-bottom: 1px solid #f0f1f3; }
.merchant-total-list span, .merchant-total-list strong { display: block; }
.merchant-total-list span { color: var(--muted); font-size: 11px; }
.merchant-total-list strong { margin-top: 5px; font-size: 15px; }
.merchant-rank-list { display: grid; }
.merchant-rank-list button { min-width: 0; min-height: 55px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid #f0f1f3; color: var(--ink); background: transparent; text-align: left; }
.merchant-rank-list button > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; color: var(--orange-dark); background: var(--orange-soft); font-size: 11px; font-weight: 800; }
.merchant-rank-list strong, .merchant-rank-list small { display: block; }
.merchant-rank-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.merchant-rank-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.merchant-rank-list b { color: var(--orange); font-size: 12px; }
.merchant-cover-editor { padding: 12px; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; border-radius: 8px; background: #fff7ef; }
.merchant-cover-editor img { width: 72px; height: 62px; object-fit: cover; border-radius: 7px; }
.merchant-cover-editor strong, .merchant-cover-editor span { display: block; }
.merchant-cover-editor span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.activity-description-editor { padding: 14px; border: 1px solid #f0ece8; border-radius: 10px; background: #fffaf5; }
.activity-description-head { display: flex; align-items: center; gap: 10px; }
.activity-description-head > div { display: grid; gap: 3px; }
.activity-description-head strong { font-size: 16px; }
.activity-description-head small, .activity-description-tip { color: #8492a5; font-size: 11px; }
.activity-description-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: white; background: #20c997; }
.activity-description-icon svg { width: 19px; }
.activity-description-tip { margin: 18px 0 12px; text-align: center; }
.description-mode-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.description-mode-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #d9e1eb; border-radius: 8px; color: #607087; background: #fff; font-size: 13px; }
.description-mode-button.active { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-soft); }
.description-mode-button svg { width: 15px; }
.activity-description-editor textarea { margin-top: 10px; min-height: 125px; background: white; }
.description-image-preview { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.description-image-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 7px; background: #eef1f4; }
.description-image-item > button:first-child { width: 100%; height: 100%; padding: 0; background: transparent; }
.description-image-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
.description-image-remove { position: absolute; top: 4px; right: 4px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: white; background: rgba(28,35,43,.72); }
.description-image-remove svg { width: 14px; }
.merchant-review-summary { margin-bottom: 12px; padding: 18px; display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; border-radius: 8px; color: white; background: #27333d; }
.merchant-review-summary > div:first-child { border-right: 1px solid rgba(255,255,255,.18); }
.merchant-review-summary strong, .merchant-review-summary span { display: block; }
.merchant-review-summary strong { font-size: 30px; }
.merchant-review-summary span { margin-top: 4px; color: #c9d1d9; font-size: 11px; }
.merchant-review-summary > div:last-child { padding-left: 18px; }
.merchant-review-summary b { color: #ffc247; letter-spacing: 0; }
.merchant-review-list { display: grid; gap: 10px; }
.merchant-review-list article { padding: 13px; border-radius: 8px; background: white; }
.merchant-review-user { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.merchant-review-user .avatar { width: 38px; height: 38px; border: 0; font-size: 13px; }
.merchant-review-user strong, .merchant-review-user span { display: block; }
.merchant-review-user span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.merchant-review-user b { color: #efa822; font-size: 12px; letter-spacing: 0; }
.merchant-review-list h3 { margin: 12px 0 5px; font-size: 13px; }
.merchant-review-list p { margin: 0 0 7px; color: #56616d; font-size: 12px; line-height: 1.6; }
.merchant-review-list article > span { color: var(--muted); font-size: 10px; }
.merchant-poster-page { max-width: 480px; }
.merchant-poster { overflow: hidden; margin: 12px 0; border-radius: 8px; background: white; box-shadow: 0 8px 25px rgba(41,49,57,.1); }
.merchant-poster > img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
.merchant-poster-copy { padding: 18px; }
.merchant-poster-copy > span { color: var(--orange-dark); font-size: 11px; font-weight: 750; }
.merchant-poster-copy h2 { margin: 7px 0; font-size: 22px; line-height: 1.35; }
.merchant-poster-copy p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.merchant-poster-copy > div { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.merchant-poster-copy strong { color: var(--orange); font-size: 23px; }
.merchant-poster-copy div span { color: var(--muted); font-size: 11px; }
.merchant-poster footer { padding: 12px 16px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 54px; align-items: center; gap: 9px; color: white; background: #27333d; }
.merchant-poster footer .brand-mark { width: 40px; height: 40px; }
.merchant-poster footer strong, .merchant-poster footer small { display: block; }
.merchant-poster footer small { margin-top: 3px; color: #c8d0d8; font-size: 9px; }
.merchant-poster footer > svg { width: 28px; }
.merchant-poster-qr { width: 54px; height: 54px; padding: 3px; object-fit: contain; border-radius: 5px; background: white; }
.merchant-promotion-code { margin: 12px 0; padding: 13px; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.merchant-promotion-code > img { width: 112px; height: 112px; display: block; object-fit: contain; border: 1px solid #edf0f2; border-radius: 7px; background: white; }
.merchant-promotion-code strong, .merchant-promotion-code span { display: block; }
.merchant-promotion-code strong { margin-bottom: 9px; font-size: 14px; }
.merchant-promotion-code span { margin-top: 4px; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.5; }
.merchant-promotion-actions { margin-bottom: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.merchant-promotion-actions > * { min-width: 0; min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.merchant-promotion-actions svg { width: 17px; }

.staff-login-head { margin-bottom: 22px; text-align: center; }
.staff-login-head > span { width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--orange); }
.staff-login-head svg { width: 29px; }
.staff-login-head h2 { margin: 0 0 6px; font-size: 20px; }
.staff-login-head p, .staff-login-tip { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.staff-login-tip { margin-top: 16px; padding: 10px 12px; border-left: 3px solid var(--orange); border-radius: 5px; background: #fff7ef; }
.staff-console-screen { background: #fff7ee; }
.page-inner.staff-console-page { width: 100%; max-width: 760px; min-height: 100vh; margin: 0 auto; padding: 0 0 34px; }
.staff-console-hero { min-height: 104px; padding: 18px 16px 36px; color: white; background: var(--orange); }
.staff-console-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff-console-actions > span { font-size: 18px; font-weight: 750; }
.staff-console-actions button { min-height: 34px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 7px; color: white; background: rgba(255,255,255,.16); font-size: 12px; }
.staff-console-actions svg { width: 15px; }
.staff-console-content { margin-top: -24px; padding: 0 12px; }
.staff-identity-card { padding: 18px; border: 1px solid #f0ece8; border-radius: 8px; background: white; box-shadow: 0 8px 24px rgba(42,47,54,.06); }
.staff-person { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.staff-avatar { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border: 2px solid #ffe0cf; border-radius: 50%; color: var(--orange-dark); background: #fff1e8; font-size: 18px; font-weight: 800; }
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-person h1 { margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.staff-person span { color: var(--muted); font-size: 11px; }
.staff-person b { min-height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; color: #087951; background: #e9faf3; white-space: nowrap; font-size: 11px; }
.staff-person b svg { width: 8px; fill: currentColor; }
.staff-store-line { margin-top: 16px; padding-top: 15px; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; border-top: 1px solid #f0f1f3; }
.staff-store-line img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; background: #eef0f2; }
.staff-store-line strong, .staff-store-line span { display: block; }
.staff-store-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.staff-store-line span { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.staff-duty-time { margin-top: 12px; display: flex; align-items: center; gap: 6px; color: #687586; font-size: 11px; }
.staff-duty-time svg { width: 14px; }
.staff-store-select { margin-top: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.staff-store-select select { min-width: 0; height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; }
.staff-stat-grid { margin: 12px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.staff-stat-grid > div { min-height: 88px; padding: 15px 6px; display: grid; align-content: center; justify-items: center; border: 1px solid #f0ece8; border-radius: 8px; background: white; }
.staff-stat-grid strong { color: var(--orange); font-size: 28px; }
.staff-stat-grid span { margin-top: 5px; color: #647184; font-size: 12px; }
.staff-tools h2, .staff-section-title h2 { margin: 0; font-size: 16px; }
.staff-tools > div { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.staff-tools button { min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; border: 1px solid #f0ece8; border-radius: 8px; color: var(--ink); background: white; }
.staff-tools button > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; color: white; }
.staff-tools button > span.scan { background: #ff8350; }
.staff-tools button > span.records { background: #4e8cf5; }
.staff-tools button svg { width: 27px; }
.staff-tools button strong { font-size: 14px; font-weight: 550; }
.staff-pending { margin-top: 18px; }
.staff-section-title { min-height: 30px; padding-left: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-left: 3px solid var(--orange); }
.staff-section-title > span, .staff-section-title button { color: #8994a5; background: transparent; font-size: 11px; }
.staff-section-title button { display: flex; align-items: center; gap: 2px; }
.staff-section-title svg { width: 14px; }
.staff-pending > div:last-child, .staff-record-list { margin-top: 10px; display: grid; gap: 9px; }
.staff-empty { min-height: 90px; display: grid; place-items: center; border: 1px solid #f0ece8; border-radius: 8px; color: #9aa5b5; background: white; font-size: 12px; }
.staff-order-card { padding: 10px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid #f0ece8; border-radius: 8px; background: white; }
.staff-order-card img { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; }
.staff-order-card h3, .staff-record-card h3 { margin: 0 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.staff-order-card p, .staff-record-card p { margin: 0 0 4px; color: #5f6b79; font-size: 11px; }
.staff-order-card span, .staff-record-card span { display: block; color: #929baa; font-size: 9px; }
.staff-order-card > strong, .staff-record-card > strong { color: var(--orange); white-space: nowrap; font-size: 12px; }
.staff-records-page, .staff-verify-page { max-width: 760px; }
.staff-record-summary { padding: 18px; border-radius: 8px; color: white; background: #27333d; }
.staff-record-summary span, .staff-record-summary strong, .staff-record-summary small { display: block; }
.staff-record-summary span { color: #ced5dc; font-size: 11px; }
.staff-record-summary strong { margin: 8px 0; font-size: 30px; }
.staff-record-summary small { color: #aeb8c2; font-size: 10px; }
.staff-record-card { padding: 12px; display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid #f0ece8; border-radius: 8px; background: white; }
.staff-record-check { width: 35px; height: 35px; display: grid !important; place-items: center; border-radius: 50%; color: white !important; background: #16a36a; }
.staff-record-check svg { width: 18px; }
.staff-verify-panel { padding: 24px 16px; border-radius: 8px; background: white; text-align: center; }
.staff-scan-icon { width: 68px; height: 68px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--orange); }
.staff-scan-icon svg { width: 34px; }
.staff-verify-panel h1 { margin: 0 0 7px; font-size: 20px; }
.staff-verify-panel > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.staff-verify-panel .button-secondary { margin-top: 10px; }
.staff-verify-store { margin-top: 12px; padding: 13px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid #f0ece8; border-radius: 8px; background: white; }
.staff-verify-store > svg { width: 22px; color: var(--orange); }
.staff-verify-store strong, .staff-verify-store span { display: block; }
.staff-verify-store strong { font-size: 12px; }
.staff-verify-store span { margin-top: 3px; color: var(--muted); font-size: 10px; }

.order-list { display: grid; gap: 10px; }
.order-card { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.order-no { color: var(--muted); font-size: 12px; }
.order-card h3 { margin: 0 0 8px; font-size: 15px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: 12px; }
.order-actions { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f1f3; display: flex; justify-content: flex-end; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status.paid, .status.published { color: #086f48; background: var(--green-soft); }
.status.approved { color: #086f48; background: var(--green-soft); }
.status.verified { color: #1c61be; background: var(--blue-soft); }
.status.pending, .status.draft, .status.refunding { color: #806006; background: #fff7d9; }
.status.rejected { color: #b43737; background: #fff0f0; }
.status.evaluated { color: #1c61be; background: var(--blue-soft); }
.status.closed, .status.cancelled, .status.refunded { color: #606a77; background: #eef0f3; }

.merchant-activity { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.merchant-activity img { width: 90px; height: 84px; object-fit: cover; border-radius: 8px; }
.merchant-activity-body { min-width: 0; }
.merchant-activity-head { display: flex; justify-content: space-between; gap: 7px; }
.merchant-activity h3 { margin: 0 0 7px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merchant-activity p { margin: 0 0 9px; color: var(--muted); font-size: 12px; }
.progress { height: 6px; overflow: hidden; border-radius: 999px; background: #edf0f3; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }

.verify-panel { padding: 20px 16px; border-radius: 8px; background: #293343; color: white; text-align: center; }
.verify-icon { width: 62px; height: 62px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); }
.verify-icon svg { width: 30px; height: 30px; }
.verify-panel h2 { margin: 0 0 6px; font-size: 19px; }
.verify-panel p { margin: 0 0 18px; color: #c9d0da; font-size: 13px; }
.verify-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.verify-form input { min-width: 0; height: 46px; padding: 0 12px; border: 0; border-radius: 8px; outline: 0; font-size: 18px; letter-spacing: 0; text-align: center; }
.verify-result { margin-top: 14px; padding: 13px; border-radius: 8px; color: var(--ink); background: white; text-align: left; }
.verify-result.success { border-left: 4px solid var(--green); }
.verify-result h3 { margin: 0 0 6px; font-size: 15px; }
.verify-result p { margin: 3px 0; color: var(--muted); font-size: 12px; }

.qr-card { padding: 20px; text-align: center; background: white; border-radius: 8px; }
.qr-card img { width: min(260px, 78vw); aspect-ratio: 1; margin: 4px auto 14px; }
.verify-code { font-size: 25px; font-weight: 800; letter-spacing: 0; }
.qr-card p { color: var(--muted); font-size: 13px; }
.order-detail-grid { display: grid; gap: 11px; }
.detail-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; font-size: 13px; }
.detail-line span:first-child { color: var(--muted); }
.detail-line span:last-child { text-align: right; }

.onboarding-status-list { display: grid; gap: 12px; }
.onboarding-status-card { padding: 12px; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; border: 1px solid var(--line); border-left: 3px solid #d5a52f; border-radius: 8px; background: white; }
.onboarding-status-card.rejected { border-left-color: var(--red); }
.onboarding-status-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 7px; background: #edf0f2; }
.onboarding-status-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.onboarding-status-head h3 { margin: 1px 0 5px; font-size: 15px; }
.onboarding-status-card p { margin: 0 0 6px; color: #59636f; font-size: 12px; line-height: 1.55; }
.onboarding-status-card > div > span { color: var(--muted); font-size: 11px; }
.onboarding-status-card .button { margin-top: 10px; }
.onboarding-approved { margin: 14px; padding: 12px 14px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; border: 1px solid #cceadd; border-radius: 8px; color: #126744; background: #eef9f4; }
.onboarding-approved svg { width: 28px; height: 28px; }
.onboarding-approved strong, .onboarding-approved span { display: block; }
.onboarding-approved span { margin-top: 3px; color: #4d6c60; font-size: 12px; line-height: 1.5; }
.onboarding-result { padding: 8px 2px 2px; text-align: center; }
.onboarding-result-icon { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: #8a6811; background: #fff5d7; }
.onboarding-result-icon svg { width: 31px; height: 31px; }
.onboarding-result h3 { margin: 0 0 8px; font-size: 19px; }
.onboarding-result p { margin: 0 auto 16px; max-width: 360px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.onboarding-result-meta { margin-bottom: 18px; padding: 11px 12px; display: flex; justify-content: space-between; border-radius: 7px; background: #f4f5f7; font-size: 12px; }
.onboarding-rejected { padding: 12px; display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 9px; border-left: 3px solid var(--red); border-radius: 7px; color: #8d2929; background: #fff1f1; }
.onboarding-rejected svg { width: 22px; }
.onboarding-rejected p { margin: 5px 0; color: #713d3d; font-size: 13px; line-height: 1.6; }
.onboarding-rejected span { color: #936c6c; font-size: 11px; }
.onboarding-image-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.onboarding-image-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }

.modal-backdrop { position: fixed; z-index: 90; inset: 0; padding: 18px; display: grid; place-items: center; background: rgba(18, 23, 31, 0.56); backdrop-filter: blur(3px); }
.modal { width: min(100%, 520px); max-height: min(88vh, 760px); overflow-y: auto; border-radius: 8px; background: white; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22); }
.modal-header { position: sticky; top: 0; z-index: 1; min-height: 56px; padding: 0 12px 0 18px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

.login-head { text-align: center; margin-bottom: 20px; }
.login-head .brand-mark { margin: 0 auto 10px; }
.login-head h2 { margin: 0 0 5px; }
.login-head p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-tabs { margin: 18px 0 16px; padding: 3px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 7px; background: #eef0f3; }
.auth-tabs button { min-height: 37px; border-radius: 5px; color: #6d7783; background: transparent; font-size: 13px; }
.auth-tabs button.active { color: var(--orange-dark); background: white; box-shadow: 0 1px 4px rgba(30,37,44,.1); font-weight: 700; }
.auth-panel[hidden] { display: none; }
.demo-accounts { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.demo-accounts > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.demo-button { min-height: 64px; padding: 7px 4px; display: grid; justify-items: center; gap: 4px; border-radius: 8px; background: #f5f6f8; color: var(--ink); font-size: 12px; }
.demo-button svg { width: 20px; color: var(--orange); }

#toast-root { position: fixed; z-index: 120; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 28px), 420px); pointer-events: none; }
.toast { margin-top: 8px; padding: 11px 14px; border-radius: 8px; color: white; background: rgba(24, 32, 42, 0.94); box-shadow: var(--shadow); text-align: center; font-size: 13px; animation: toast-in 0.2s ease-out; }
.toast.error { background: rgba(190, 48, 48, 0.96); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.skeleton { position: relative; overflow: hidden; background: #e9ebef; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (min-width: 700px) {
  .page-inner, .topbar-inner { padding-left: 24px; padding-right: 24px; }
  .hero-header, .profile-hero, .dashboard-banner { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
  .hero-banner, .hero-banner img { min-height: 245px; height: 245px; }
  .hero-copy { left: 30px; top: 30px; }
  .hero-copy h2 { font-size: 30px; }
  .category-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .horizontal-scroll { grid-auto-columns: minmax(230px, 31%); }
  .activity-list.desktop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .activity-card { grid-template-columns: 140px minmax(0, 1fr); }
  .activity-cover { height: 112px; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .detail-hero { margin-left: -24px; margin-right: -24px; height: 360px; }
  .detail-panel { padding: 24px; }
  .sticky-action { left: var(--nav-width); }
}

@media (min-width: 980px) {
  .app-shell { padding-left: var(--nav-width); }
  .desktop-nav { position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--nav-width); padding: 24px 16px; display: flex; flex-direction: column; background: #202936; color: white; }
  .desktop-brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 27px; font-size: 19px; font-weight: 800; }
  .desktop-brand .brand-mark { width: 39px; height: 39px; border-radius: 10px; font-size: 17px; }
  .desktop-nav-list { display: grid; gap: 7px; }
  .desktop-nav .nav-item { min-height: 46px; padding: 0 13px; flex-direction: row; justify-content: flex-start; gap: 12px; border-radius: 8px; color: #aeb7c3; font-size: 14px; }
  .desktop-nav .nav-item.active { color: white; background: rgba(255, 107, 34, 0.18); }
  .desktop-nav .nav-item.active svg { color: var(--orange); }
  .desktop-account { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; }
  .desktop-account .avatar { width: 36px; height: 36px; border-width: 0; font-size: 14px; }
  .desktop-account div { min-width: 0; }
  .desktop-account strong, .desktop-account span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .desktop-account strong { font-size: 13px; }
  .desktop-account span { color: #9da8b6; font-size: 11px; margin-top: 2px; }
  .bottom-nav { display: none; }
  .page { padding-bottom: 34px; }
  .topbar-inner, .page-inner { max-width: 1180px; }
  .topbar-inner { padding-left: 28px; padding-right: 28px; }
  .page-inner { padding-left: 28px; padding-right: 28px; }
  .hero-header, .profile-hero, .dashboard-banner { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
  .hero-header { padding-top: 24px; }
  .section { padding: 18px; }
  .detail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 20px; padding-top: 24px; }
  .detail-layout .detail-hero { margin: 0; height: 460px; border-radius: 8px; overflow: hidden; }
  .detail-layout .detail-panel { margin: 0; padding: 24px; border-radius: 8px; align-self: start; }
  .detail-layout .section { grid-column: 1 / 2; margin-top: 0; }
  .detail-layout .desktop-signup { display: block; grid-column: 2; grid-row: 2 / span 2; }
  .mobile-sticky { display: none; }
  .sticky-action { left: var(--nav-width); }
  #toast-root { bottom: 28px; }
}

@media (max-width: 390px) {
  .activity-card { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .activity-cover { height: 100px; }
  .category-grid { gap-top: 14px; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr; }
  .verify-form { grid-template-columns: 1fr; }
}

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