:root {
  --red: #ff5a4f;
  --red-strong: #e9433a;
  --red-soft: #fff1ef;
  --teal: #079c99;
  --teal-dark: #027a78;
  --mint: #e6f8ed;
  --yellow: #ffe45c;
  --ink: #202124;
  --muted: #71717a;
  --line: #eceef0;
  --bg: #f5f7f4;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(47, 58, 54, 0.07);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --space-page: 12px;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #9aa0a6;
  opacity: 1;
  font-weight: 500;
}

button {
  border: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

button:active:not(:disabled) {
  transform: scale(0.975);
}

button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(255, 90, 79, 0.2);
  outline-offset: 2px;
}

img {
  display: block;
  width: 100%;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 228, 92, 0.26), transparent 18%),
    linear-gradient(180deg, #fff 0%, #f8faf8 42%, #fff 100%);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 86px;
}

.panel-page {
  animation: pageReveal 0.24s ease both;
}

@keyframes pageReveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-shell.view-simple {
  background: #fff;
}

.app-shell.view-auth {
  padding: 0;
  background: linear-gradient(180deg, #fff 0%, #f4fffb 54%, #fff7f0 100%);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
}

.login-panel {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-wordmark-img {
  width: 150px;
  max-width: 52vw;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.login-brand strong {
  display: block;
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.login-brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.login-brand span:not(.brand-mark) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.login-panel h1 {
  margin: 4px 0 0;
  font-size: 25px;
  line-height: 1.15;
}

.login-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.auth-choice-panel {
  gap: 16px;
}

.auth-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-choice-actions .primary-btn,
.auth-choice-actions .ghost-btn {
  width: 100%;
}

.auth-agreement-link {
  justify-self: start;
}

.login-helper-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-switch-row {
  padding-top: 2px;
}

.agree-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding: 6px 4px;
  color: #4b525a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  cursor: pointer;
}

.agree-row input {
  width: 20px;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #b8c0c5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(43, 54, 50, 0.06);
  cursor: pointer;
}

.agree-row input:checked {
  border-color: var(--red);
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m5 10 3 3 7-7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

.agree-row input:focus-visible {
  outline: 3px solid rgba(255, 90, 79, 0.18);
  outline-offset: 2px;
}

.agreement-link {
  padding: 0;
  color: var(--red);
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.agreement-box {
  max-height: 188px;
  overflow: auto;
  padding: 11px;
  border: 1px solid #d8eee8;
  border-radius: 12px;
  background: #f4fffb;
}

.agreement-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 14px;
}

.agreement-box p {
  margin: 0 0 7px;
  color: #465553;
  font-size: 12px;
  line-height: 1.5;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 14px 10px;
}

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

.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ff6d3d);
  box-shadow: 0 8px 18px rgba(255, 47, 47, 0.23);
}

.official-brand-mark {
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: 0 8px 18px rgba(255, 47, 47, 0.2);
}

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

.brand-mark svg,
.icon svg,
.tab-icon svg,
.tiny-icon svg,
.search-icon svg,
.cart-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.2;
}

.brand-name {
  font-size: 25px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--red);
  white-space: nowrap;
}

.points {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  flex: 0 1 auto;
  color: #3b3b40;
  font-size: 13px;
  white-space: nowrap;
}

.points strong {
  font-size: 20px;
  letter-spacing: 0;
}

.balance-top {
  padding: 0;
  border: 0;
  background: transparent;
}

.points .coin {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ffc928, #ff9718);
  border: 2px solid #ffe789;
  box-shadow: 0 4px 12px rgba(255, 151, 24, 0.22);
}

.points .coin svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 74px 42px;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
}

.searchbox {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--red);
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
}

.search-icon {
  width: 22px;
  height: 22px;
  color: #9a9ca3;
  flex: 0 0 auto;
}

.searchbox input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.searchbox input::placeholder {
  color: #a4a4aa;
  font-weight: 600;
}

.search-btn,
.primary-btn,
.deal-action {
  min-height: 44px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #ff3b35, var(--red-strong));
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 47, 47, 0.18);
}

.primary-btn:disabled {
  cursor: wait;
  opacity: 0.88;
  filter: saturate(0.92);
}

.primary-btn.is-loading {
  position: relative;
  padding-right: 42px;
}

.primary-btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: buttonSpin 0.8s linear infinite;
}

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

.search-btn {
  font-size: 16px;
}

.round-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe1e5;
  border-radius: 50%;
  background: #fff;
  color: #33343a;
}

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

.notice {
  margin: 12px 14px 0;
  padding: 9px 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f5258;
  border-bottom: 1px solid rgba(236, 238, 240, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.notice span {
  min-width: 0;
}

.notice .tiny-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--teal);
}

.allowance-strip {
  margin: 12px 12px 0;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7e4, #e9f8f4);
  border: 1px solid rgba(255, 196, 69, 0.3);
}

.allowance-strip > div {
  min-width: 0;
}

.allowance-strip strong {
  display: block;
  margin: 3px 0;
  font-size: 17px;
  line-height: 1.2;
}

.allowance-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.allowance-strip .primary-btn,
.allowance-strip .ghost-btn {
  min-width: 84px;
  height: 40px;
  padding: 0 12px;
}

.onboarding-card {
  margin: 12px 12px 0;
  padding: 13px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(23, 184, 144, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #f4fffb, #fff8ed);
  box-shadow: 0 6px 20px rgba(32, 33, 36, 0.055);
}

.onboarding-card h2 {
  margin: 3px 0 4px;
  color: #24282d;
  font-size: 18px;
  line-height: 1.2;
}

.onboarding-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.onboarding-card-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.assist-notice-strip {
  margin: 12px 12px 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(255, 47, 47, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff6f6, #fff);
  box-shadow: 0 6px 20px rgba(32, 33, 36, 0.05);
}

.assist-notice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--red);
}

.assist-notice-icon .tiny-icon {
  width: 20px;
  height: 20px;
}

.assist-notice-strip strong,
.assist-notice-strip span {
  display: block;
}

.assist-notice-strip strong {
  color: #282c32;
  font-size: 15px;
}

.assist-notice-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.assist-notice-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.assist-notice-actions button {
  min-height: 36px;
}

.onboarding-steps {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.onboarding-steps div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 2px 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.onboarding-steps .tiny-icon {
  grid-row: 1 / 3;
  width: 19px;
  height: 19px;
  color: var(--teal-dark);
}

.onboarding-steps strong {
  color: #292d33;
  font-size: 14px;
}

.onboarding-steps span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-quick-grid {
  margin: 12px 12px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-quick-grid button {
  min-width: 0;
  min-height: 72px;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #343840;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 16px rgba(32, 33, 36, 0.045);
}

.home-quick-grid .tiny-icon {
  width: 20px;
  height: 20px;
  color: var(--red);
}

.home-quick-grid span {
  font-size: 12px;
  font-weight: 900;
}

.home-quick-grid b {
  max-width: 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 14px 10px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: #5c5f66;
  font-size: 13px;
  white-space: nowrap;
}

.link-btn svg {
  width: 15px;
  height: 15px;
}

.mood-scroll,
.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px 6px;
  scrollbar-width: none;
}

.mood-scroll::-webkit-scrollbar,
.category-scroll::-webkit-scrollbar {
  display: none;
}

.mood-chip {
  min-width: 76px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 15px;
  color: #33343a;
  background: var(--chip-bg);
  font-weight: 800;
  flex: 0 0 auto;
}

.mood-chip.active {
  color: var(--red-strong);
  box-shadow: inset 0 0 0 1.5px rgba(255, 47, 47, 0.32);
}

.mood-chip svg {
  width: 18px;
  height: 18px;
}

.deal-panel {
  margin: 10px 12px 0;
  padding: 14px 10px 12px;
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.deal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.deal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 900;
}

.badge-red {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

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

.deal-card {
  min-width: 0;
}

.deal-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f5f5;
}

.deal-image img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-tag {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 7px;
  color: #fff;
  background: var(--red);
  border-radius: 0 0 8px 0;
  font-size: 12px;
  font-weight: 900;
}

.save-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  color: #333;
  background: var(--yellow);
  border-radius: 0 8px 0 0;
  font-size: 12px;
  font-weight: 900;
}

.deal-name {
  min-height: 38px;
  margin: 8px 0 3px;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
}

.price {
  color: var(--red);
  font-weight: 900;
  white-space: nowrap;
}

.price .label {
  margin-right: 3px;
  font-size: 11px;
  font-weight: 700;
}

.deal-action {
  width: 100%;
  min-height: 32px;
  margin-top: 8px;
  border-radius: 7px;
  font-size: 13px;
}

.coupon-band {
  margin: 14px 12px 0;
  padding: 13px 12px;
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 9px;
  align-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #05b2a0);
  overflow: hidden;
}

.coupon-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1;
}

.coupon-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.coupon {
  min-height: 72px;
  padding: 8px 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.coupon strong {
  color: var(--red);
  font-size: 22px;
}

.coupon span {
  color: #6b6e75;
  font-size: 11px;
  line-height: 1.25;
}

.coupon button {
  align-self: flex-end;
  min-width: 46px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.coupon.claimed button {
  background: #99aaa8;
}

.coupon-art {
  align-self: end;
}

.coupon-art img {
  height: 88px;
  object-fit: contain;
  object-position: right bottom;
}

.home-shelf {
  margin: 14px 12px 0;
  padding: 12px 0 12px 12px;
  border: 1px solid rgba(236, 238, 240, 0.92);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(32, 33, 36, 0.055);
  overflow: hidden;
}

.shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-right: 12px;
  margin-bottom: 10px;
}

.shelf-head strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #292c31;
  font-size: 17px;
  line-height: 1.2;
}

.shelf-head .tiny-icon {
  width: 18px;
  height: 18px;
  color: var(--red);
}

.shelf-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.product-rail {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 12px 2px 0;
  scrollbar-width: none;
}

.product-rail::-webkit-scrollbar {
  display: none;
}

.ranking-panel {
  display: grid;
  gap: 10px;
  margin: 14px 12px 0;
}

.ranking-panel .compact-head {
  padding: 6px 2px 0;
}

.compact-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.compact-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.rank-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(32, 33, 36, 0.055);
}

.rank-card:nth-child(1) {
  border-top: 3px solid var(--red);
}

.rank-card:nth-child(2) {
  border-top: 3px solid var(--yellow);
}

.rank-card:nth-child(3) {
  border-top: 3px solid var(--teal);
}

.rank-card:nth-child(4) {
  border-top: 3px solid #7b61ff;
}

.rank-title {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #292c31;
}

.rank-title .tiny-icon {
  width: 17px;
  height: 17px;
  color: var(--red);
}

.rank-title strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
}

.rank-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px 38px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 6px;
  border-radius: 10px;
  color: #30343a;
  background: #f8faf9;
  text-align: left;
}

.rank-row:active {
  transform: translateY(1px);
}

.rank-row b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #333840;
  font-size: 11px;
  line-height: 1;
}

.rank-row:nth-child(2) b {
  background: var(--red);
}

.rank-row:nth-child(3) b {
  background: var(--teal);
}

.rank-row img,
.rank-logistics-icon,
.small-store-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.rank-row img {
  object-fit: cover;
  background: #eef2f1;
}

.rank-row > div:last-child {
  min-width: 0;
}

.rank-row strong {
  display: block;
  color: #2d3137;
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-store-avatar {
  border: 0;
  box-shadow: none;
  font-size: 12px;
}

.store-rank-row {
  grid-template-columns: 22px 46px minmax(0, 1fr);
  gap: 9px;
}

.store-rank-row .small-store-avatar {
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 13px;
  box-shadow: 0 5px 14px rgba(32, 33, 36, 0.1);
  font-size: 13px;
}

.rank-logistics-icon {
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: #e9f8f4;
}

.rank-logistics-icon .tiny-icon {
  width: 18px;
  height: 18px;
}

.rank-empty {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 10px;
  color: var(--muted);
  background: #f8faf9;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.rail-product-card {
  width: 118px;
  min-width: 118px;
  display: grid;
  justify-items: stretch;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #30333a;
  background: #fafbfb;
  text-align: left;
}

.rail-product-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f5;
}

.rail-card-name,
.rail-card-meta,
.rail-product-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-card-name {
  min-height: 34px;
  color: #2e3035;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
}

.rail-card-meta {
  color: #7c8189;
  font-size: 10px;
}

.rail-product-card b {
  color: var(--red);
  font-size: 14px;
  line-height: 1.2;
}

.rail-product-card em {
  width: fit-content;
  max-width: 100%;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e9f8f4;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.assist-rail-card em {
  color: var(--red-strong);
  background: var(--red-soft);
}

.recommend-section {
  min-height: calc(100vh + 92px);
}

.recommend-head {
  display: grid;
  gap: 8px;
  padding: 22px 14px 10px;
}

.recommend-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.recommend-head .category-scroll {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  justify-content: flex-start;
}

.cat-tab {
  position: relative;
  min-width: 44px;
  height: 34px;
  padding: 0 5px;
  color: #767982;
  background: transparent;
  font-weight: 700;
  flex: 0 0 auto;
}

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

.cat-tab.active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
}

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

.product-card {
  min-width: 0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(32, 33, 36, 0.06);
  border: 1px solid rgba(236, 238, 240, 0.9);
}

.product-image {
  position: relative;
  aspect-ratio: 1.04;
  background: #f4f5f5;
  overflow: hidden;
}

.promote-ribbon {
  position: absolute;
  left: 7px;
  top: 7px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ff8a00);
  font-size: 11px;
  font-weight: 900;
}

.product-body {
  padding: 9px 9px 10px;
}

.product-name {
  min-height: 38px;
  margin: 0 0 5px;
  color: #2e3035;
  font-size: 14px;
  line-height: 1.36;
}

.store-line {
  margin: -1px 0 5px;
  color: #7a7f87;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-badges {
  min-height: 23px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 5px;
}

.product-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  color: var(--teal-dark);
  background: #e9f8f4;
  font-size: 10px;
  font-weight: 800;
}

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

.joined {
  color: #777b84;
  font-size: 12px;
}

.avatar-stack {
  display: flex;
  margin-left: auto;
}

.avatar {
  width: 19px;
  height: 19px;
  margin-left: -5px;
  display: grid;
  place-items: center;
  border: 1.5px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--avatar);
  font-size: 10px;
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 7px;
  margin-top: 9px;
}

.mini-btn,
.wish-btn {
  height: 34px;
  border-radius: 8px;
  font-weight: 900;
}

.mini-btn {
  color: #fff;
  background: var(--red);
}

.wish-btn {
  display: grid;
  place-items: center;
  color: var(--red);
  background: var(--red-soft);
}

.wish-btn.active {
  color: #fff;
  background: var(--red);
}

.wish-btn svg {
  width: 18px;
  height: 18px;
}

.empty-state {
  padding: 22px 16px;
}

.panel-page {
  display: grid;
  gap: 14px;
  padding: 14px 12px 22px;
}

.panel-page h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.panel-page p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(216, 238, 232, 0.9);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #eefaf6);
  box-shadow: 0 6px 20px rgba(32, 33, 36, 0.05);
}

.page-hero-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #23b189);
}

.page-hero-icon .tiny-icon {
  width: 22px;
  height: 22px;
}

.page-hero h1 {
  margin: 3px 0 4px;
  font-size: 22px;
  line-height: 1.15;
}

.page-hero p {
  font-size: 13px;
  line-height: 1.45;
}

.page-hero-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
}

.page-hero-actions .ghost-btn {
  min-height: 38px;
}

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

.category-card {
  min-height: 118px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 5px 20px rgba(32, 33, 36, 0.05);
  text-align: left;
}

.category-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.enhanced-category-card {
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: hidden;
}

.category-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--teal-dark);
  background: #e9f8f4;
}

.category-icon .tiny-icon {
  width: 18px;
  height: 18px;
}

.category-count {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.category-card > span:not(.category-count):not(.category-icon) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.category-preview-stack {
  display: flex;
  min-height: 34px;
  align-items: center;
  margin-top: 2px;
}

.category-preview-stack img {
  width: 34px;
  height: 34px;
  margin-right: -9px;
  border: 2px solid #fff;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(32, 33, 36, 0.08);
}

.category-preview-stack em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.wishlist-list,
.order-list {
  display: grid;
  gap: 11px;
  margin-top: 0;
}

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

.wishlist-summary div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(32, 33, 36, 0.04);
}

.wishlist-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.wishlist-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 18px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.list-row img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
}

.list-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.list-row span {
  color: var(--muted);
  font-size: 12px;
}

.wishlist-row {
  box-shadow: 0 5px 16px rgba(32, 33, 36, 0.04);
}

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

.wishlist-row-meta b {
  color: var(--red);
  font-size: 13px;
}

.wishlist-row-meta span {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 6px;
  color: var(--teal-dark);
  background: #e9f8f4;
  font-size: 10px;
  font-weight: 800;
}

.rich-empty {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 22px 14px;
  border: 1px dashed #d8eee8;
  border-radius: 16px;
  background: #f7fffb;
  text-align: center;
}

.rich-empty h2 {
  margin: 0;
  font-size: 20px;
}

.rich-empty p {
  max-width: 300px;
  font-size: 13px;
}

.empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: var(--red-soft);
}

.empty-icon .tiny-icon {
  width: 22px;
  height: 22px;
}

.empty-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.empty-suggestion-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.empty-suggestion-row button {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.empty-suggestion-row img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.empty-suggestion-row span {
  color: #4b525a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.points-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #23b189);
}

.points-card strong {
  display: block;
  margin-top: 8px;
  font-size: 38px;
  line-height: 1;
}

.wallet-hero,
.merchant-hero,
.admin-card,
.stat-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 22px rgba(32, 33, 36, 0.06);
}

.wallet-hero {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #eefaf6);
}

.wallet-profile-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: start;
}

.profile-settings-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 156, 153, 0.14);
  border-radius: 13px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 16px rgba(47, 58, 54, 0.06);
}

.profile-settings-btn .tiny-icon {
  width: 20px;
  height: 20px;
}

.profile-settings-btn:active {
  color: var(--red-strong);
  background: var(--red-soft);
}

.buyer-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 8px 16px rgba(32, 33, 36, 0.14);
  font-size: 16px;
  font-weight: 900;
}

.wallet-profile-avatar {
  width: 58px;
  height: 58px;
}

.account-avatar-setting {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.account-settings-avatar {
  width: 58px;
  height: 58px;
}

.wallet-hero h1,
.merchant-hero h1,
.admin-card h2 {
  margin: 5px 0 6px;
  line-height: 1.15;
}

.wallet-hero strong {
  display: block;
  margin: 5px 0 12px;
  color: var(--red);
  font-size: 38px;
  line-height: 1;
}

.wallet-balance-label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.wallet-hero .primary-btn,
.wallet-hero .ghost-btn {
  width: 100%;
}

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

.wallet-summary-grid div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(32, 33, 36, 0.04);
}

.wallet-summary-grid .tiny-icon {
  width: 18px;
  height: 18px;
  color: var(--teal-dark);
}

.wallet-summary-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.wallet-summary-grid strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.buyer-level-card,
.daily-task-card,
.assist-record-card,
.assist-leaderboard-card,
.history-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(32, 33, 36, 0.045);
}

.buyer-level-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: linear-gradient(135deg, #fff7f7, #f2fbf8);
}

.buyer-level-card h2 {
  margin: 4px 0;
  font-size: 20px;
  line-height: 1.2;
}

.buyer-level-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.buyer-level-card > strong {
  color: var(--red);
  font-size: 22px;
}

.level-progress,
.daily-task-row i,
.assist-record-row i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f0;
}

.level-progress {
  grid-column: 1 / -1;
}

.level-progress i,
.daily-task-row i em,
.assist-record-row i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--teal));
}

.daily-task-list,
.assist-record-list,
.assist-leaderboard-list,
.mini-product-list {
  display: grid;
  gap: 8px;
}

.daily-task-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfb;
}

.daily-task-row.is-complete {
  border-color: rgba(15, 133, 123, 0.16);
  background: #f0fbf7;
}

.daily-task-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--teal-dark);
  background: #e9f8f4;
}

.daily-task-row strong,
.assist-record-row strong,
.assist-leaderboard-row strong,
.mini-product-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.daily-task-row span,
.assist-record-row span,
.assist-leaderboard-row span,
.mini-product-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.daily-task-row button {
  min-width: 58px;
}

.assist-record-row,
.assist-leaderboard-row,
.mini-product-row {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfb;
  text-align: left;
}

.assist-record-row img,
.mini-product-row img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.assist-leaderboard-row {
  grid-template-columns: 26px 46px minmax(0, 1fr);
}

.assist-leaderboard-row b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 13px;
}

.assist-leaderboard-row img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.my-page {
  display: grid;
  gap: 14px;
}

.message-center-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(32, 33, 36, 0.045);
}

.message-center-card .section-head {
  padding: 0 0 10px;
}

.message-list {
  display: grid;
  gap: 8px;
}

.message-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfb;
}

.message-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--teal-dark);
  background: #e9f8f4;
}

.message-icon .tiny-icon {
  width: 17px;
  height: 17px;
}

.message-row span,
.message-row strong,
.message-row p {
  display: block;
}

.message-row span {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 900;
}

.message-row strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.message-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.message-row .mini-btn {
  min-width: 56px;
  height: 32px;
}

.my-section {
  margin-top: 2px;
}

.my-address-form {
  margin-top: 0;
}

.account-security-card {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 12px;
  border: 1px solid #d8eee8;
  border-radius: 12px;
  background: #f4fffb;
}

.account-profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #eef6f3;
}

.account-profile-row span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-profile-row strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.account-profile-row .primary-btn {
  min-width: 92px;
  min-height: 38px;
}

.password-change-form {
  display: grid;
  gap: 10px;
}

.password-change-form input[readonly] {
  color: #4b525a;
  background: #eef6f3;
  font-weight: 900;
}

.account-settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.my-address-form .primary-btn {
  width: 100%;
}

.my-address-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.my-section .section-head {
  margin-bottom: 0;
}

.my-order-list {
  margin-top: 0;
}

.order-group {
  display: grid;
  gap: 9px;
}

.order-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
}

.order-group-head strong,
.order-group-head span {
  display: block;
}

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

.order-group-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-group-head b {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
}

.my-order {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(32, 33, 36, 0.045);
}

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

.my-order-head strong,
.my-order-product strong,
.my-logistics strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.my-order-head span,
.my-order-product span,
.my-logistics span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.my-order-status {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--teal-dark) !important;
  background: #e9f8f4;
  font-weight: 900;
  white-space: nowrap;
}

.my-order-products {
  display: grid;
  gap: 8px;
}

.my-order-product {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.my-order-product img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.my-logistics {
  display: grid;
  gap: 4px;
  padding-top: 9px;
  border-top: 1px dashed #d8eee8;
}

.my-logistics div {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--teal-dark);
}

.my-logistics-events {
  display: grid !important;
  gap: 5px !important;
  margin-top: 4px;
  color: inherit !important;
}

.my-logistics-events em {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: #5d666d;
  background: #f7fbfa;
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.merchant-page {
  display: grid;
  gap: 14px;
}

.merchant-hero {
  padding: 16px;
  display: grid;
  gap: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #fff7e8);
}

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

.merchant-hero-head > div {
  min-width: 0;
}

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

.merchant-identity > div:last-child {
  min-width: 0;
}

.merchant-hero-head h1 {
  overflow-wrap: anywhere;
}

.merchant-hero-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.merchant-settings-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e9f8f4;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.merchant-settings-btn .tiny-icon {
  width: 15px;
  height: 15px;
}

.merchant-money {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  align-items: center;
}

.merchant-money span {
  color: var(--muted);
  font-size: 12px;
}

.merchant-money strong {
  color: var(--red);
  font-size: 30px;
  line-height: 1;
}

.merchant-settings-form {
  display: grid;
  gap: 4px;
}

.merchant-avatar-setting {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.merchant-hero-avatar,
.merchant-settings-avatar {
  overflow: hidden;
}

.merchant-hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 14px;
}

.merchant-settings-avatar {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  font-size: 18px;
}

.merchant-money button {
  grid-row: 1 / 3;
  grid-column: 2;
  min-width: 92px;
  height: 40px;
}

.merchant-insights {
  display: grid;
  gap: 10px;
}

.merchant-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.merchant-insight-grid div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
}

.merchant-insight-grid .tiny-icon {
  width: 18px;
  height: 18px;
  color: var(--teal-dark);
}

.merchant-insight-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.merchant-insight-grid strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-sales-rank {
  display: grid;
  gap: 12px;
}

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

.sales-rank-my div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8eee8;
  border-radius: 12px;
  background: #f4fffb;
}

.sales-rank-my span,
.sales-rank-my em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.sales-rank-my strong {
  display: block;
  margin: 4px 0 3px;
  color: var(--red);
  font-size: 20px;
  line-height: 1.1;
}

.sales-rank-board {
  display: grid;
  gap: 8px;
}

.sales-rank-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sales-rank-board-head strong {
  color: #30343a;
  font-size: 15px;
  line-height: 1.2;
}

.sales-rank-board-head span {
  color: var(--teal-dark);
  background: #e9f8f4;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.sales-rank-list {
  display: grid;
  gap: 8px;
}

.sales-rank-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 24px 46px minmax(0, 1fr) minmax(88px, auto);
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #30343a;
  background: #fafbfb;
  text-align: left;
}

.sales-rank-row:active {
  transform: translateY(1px);
}

.sales-rank-row b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #30343a;
  font-size: 12px;
  line-height: 1;
}

.sales-rank-row:nth-child(1) b {
  background: var(--red);
}

.sales-rank-row:nth-child(2) b {
  background: var(--teal);
}

.sales-rank-row:nth-child(3) b {
  background: #30343a;
}

.sales-rank-row img,
.sales-store-avatar {
  width: 46px;
  height: 46px;
  border-radius: 10px;
}

.sales-rank-row img {
  object-fit: cover;
  background: #eef2f1;
}

.sales-store-avatar {
  border: 0;
  box-shadow: none;
  font-size: 13px;
}

.sales-rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sales-rank-copy strong {
  color: #2d3137;
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-rank-copy span,
.sales-rank-money span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.sales-rank-copy i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff0;
}

.sales-rank-copy em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--teal));
}

.sales-rank-money {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.sales-rank-money strong {
  color: var(--red);
  font-size: 15px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-rank-money .today-sales {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
}

.sales-rank-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.merchant-growth-panel {
  display: grid;
  gap: 12px;
}

.merchant-level-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 12px;
  border-radius: 12px;
  color: #24302e;
  background: linear-gradient(135deg, #f4fffb, #fff7e7);
}

.merchant-level-card strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.15;
}

.merchant-level-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.merchant-level-card b {
  align-self: start;
  color: var(--red);
  font-size: 18px;
}

.merchant-level-progress {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.merchant-level-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--teal));
}

.merchant-hot-panel,
.merchant-task-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.hot-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hot-keyword-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e9f8f4;
  font-size: 12px;
  font-weight: 900;
}

.hot-keyword-list b {
  color: var(--red);
  font-size: 11px;
}

.merchant-task-list {
  display: grid;
  gap: 8px;
}

.merchant-task-list div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfb;
}

.merchant-task-list div.done {
  background: #f4fffb;
}

.merchant-task-list .tiny-icon {
  grid-row: 1 / 3;
  width: 17px;
  height: 17px;
  color: var(--red);
}

.merchant-task-list div.done .tiny-icon {
  color: var(--teal-dark);
}

.merchant-task-list strong {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  color: #30343a;
  font-size: 13px;
}

.merchant-task-list strong em {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.merchant-task-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.merchant-task-list button {
  grid-column: 3;
  grid-row: 1 / 3;
  min-width: 58px;
  height: 32px;
  border-radius: 8px;
  font-size: 12px;
}

.merchant-audit-panel {
  display: grid;
  gap: 12px;
}

.audit-record-list {
  display: grid;
  gap: 8px;
}

.audit-record-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfb;
}

.audit-record-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--red);
  background: var(--red-soft);
}

.audit-record-icon .tiny-icon {
  width: 18px;
  height: 18px;
}

.audit-record-row > div:last-child {
  min-width: 0;
}

.audit-record-row strong {
  display: block;
  color: #30343a;
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-record-row span {
  display: block;
  margin-top: 3px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.audit-record-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.audit-record-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.audit-record-actions .link-btn {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.audit-detail-card {
  display: grid;
  gap: 10px;
  margin: 10px 0 4px;
}

.audit-detail-card > div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  background: #f7f8f8;
  border: 1px solid var(--line);
}

.audit-detail-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.audit-detail-card strong,
.audit-detail-card p {
  margin: 0;
  color: #2f343a;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.platform-moderation-panel {
  display: grid;
  gap: 12px;
}

.moderation-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.moderation-summary-grid div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfb;
}

.moderation-summary-grid .tiny-icon {
  color: var(--red);
}

.moderation-summary-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.moderation-summary-grid strong {
  color: #30343a;
  font-size: 16px;
}

.moderation-section {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.moderation-section + .moderation-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.moderation-section-head {
  display: grid;
  gap: 3px;
}

.moderation-section-head strong {
  color: #2e3035;
  font-size: 14px;
}

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

.moderation-list {
  display: grid;
  gap: 8px;
}

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

.image-review-row {
  grid-template-columns: 54px minmax(0, 1fr);
}

.image-review-row .moderation-actions {
  grid-column: 1 / -1;
}

.image-review-row img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: #f4f5f5;
}

.moderation-row strong {
  display: block;
  color: #30343a;
  font-size: 13px;
  line-height: 1.35;
}

.moderation-row span {
  display: block;
  margin-top: 3px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.moderation-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.moderation-actions button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
}

.moderation-entry-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfb;
}

.moderation-entry-card strong {
  display: block;
  color: #30343a;
  font-size: 14px;
}

.moderation-entry-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.moderation-entry-card > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.moderation-submit-form {
  display: grid;
  gap: 10px;
}

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

.seller-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  min-height: 80px;
  padding: 12px 9px;
  border-radius: 12px;
  text-align: left;
}

.stat-button {
  border: 1px solid transparent;
  background: #fff;
}

.stat-button:active {
  transform: translateY(1px);
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
  line-height: 1.15;
}

.wide-stat {
  grid-column: span 2;
}

.admin-card {
  padding: 14px;
  border-radius: 14px;
}

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

.section-subcopy {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.merchant-action-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.merchant-action-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ff8a00);
  box-shadow: 0 8px 18px rgba(255, 47, 47, 0.16);
}

.merchant-action-icon .tiny-icon {
  width: 22px;
  height: 22px;
}

.merchant-action-card .primary-btn {
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.merchant-action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.merchant-action-meta span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e9f8f4;
  font-size: 11px;
  font-weight: 800;
}

.product-publisher,
.product-edit-form {
  display: grid;
  gap: 14px;
}

.product-publisher.is-collapsed {
  display: none;
}

.publisher-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.publisher-head-actions .close-btn {
  width: 34px;
  height: 34px;
}

.publish-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: -4px;
}

.publish-step {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  padding: 5px 6px;
  border-radius: 8px;
  color: #4c5058;
  background: #f7f8f8;
  border: 1px solid transparent;
  text-align: left;
}

.publish-step span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #7a8088;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.publish-step strong {
  min-width: 0;
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  line-height: 1.15;
}

.publish-step.is-active {
  color: var(--teal-dark);
  background: #e8f8f3;
  border-color: rgba(15, 133, 123, 0.18);
}

.publish-step.is-active span {
  color: #fff;
  background: var(--teal);
}

.idea-chip-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.idea-chip-row::-webkit-scrollbar {
  display: none;
}

.idea-chip {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  color: #5b5143;
  background: #fff7e8;
  border: 1px solid rgba(255, 196, 69, 0.38);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  flex: 0 0 auto;
}

.field-with-suggestions {
  align-content: start;
}

.field-suggestion-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 0 2px;
  scrollbar-width: none;
}

.field-suggestion-row[hidden] {
  display: none;
}

.field-suggestion-row::-webkit-scrollbar {
  display: none;
}

.field-suggestion {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  color: #5b5143;
  background: #fff7e8;
  border: 1px solid rgba(255, 196, 69, 0.42);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  flex: 0 0 auto;
}

.field-suggestion:active {
  color: var(--red-strong);
  border-color: rgba(255, 47, 47, 0.36);
  background: var(--red-soft);
}

.publish-section {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.publish-section:not(.is-active) {
  display: none;
}

.publish-section.is-active + .publish-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.publish-section h3 {
  margin: 0;
  color: #272a30;
  font-size: 15px;
}

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

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

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.field span {
  color: #5d626a;
  font-size: 12px;
  font-weight: 800;
}

.field.is-required > span::after {
  content: "*";
  margin-left: 3px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #dfe3e6;
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9ca3af;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 47, 47, 0.1);
}

.field textarea {
  height: auto;
  padding: 10px;
  resize: vertical;
  line-height: 1.5;
}

.field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.publish-step-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding-top: 2px;
}

.publish-step-actions span {
  min-width: 44px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.publish-step-actions .ghost-btn,
.publish-step-actions .primary-btn {
  min-height: 40px;
}

.publish-submit-area {
  display: none;
}

.publish-submit-area.is-active {
  display: grid;
}

.upload-stack {
  display: grid;
  gap: 12px;
  margin: 10px 0 12px;
}

.upload-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
}

.upload-preview {
  position: relative;
  width: 94px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f5f5;
  border: 1px solid var(--line);
}

.upload-preview::before {
  content: attr(data-preview-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #a4abb3;
  font-size: 12px;
  font-weight: 800;
}

.upload-preview img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-image-button {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}

.preview-image-button:focus-visible {
  outline: 3px solid rgba(255, 47, 47, 0.28);
  outline-offset: 2px;
}

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

.gallery-side-preview {
  display: grid;
  gap: 3px;
  padding: 0;
}

.gallery-side-preview.is-gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  padding: 4px;
}

.gallery-side-preview.is-gallery-grid img {
  border-radius: 6px;
}

.file-field {
  margin-bottom: 0;
}

.file-field input {
  padding: 8px;
  height: auto;
  min-height: 42px;
}

.upload-fields {
  display: grid;
  gap: 10px;
}

.review-status {
  margin: -2px 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e9f8f4;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.review-status.is-checking {
  color: #8a6500;
  background: #fff7d0;
}

.review-status.is-danger {
  color: var(--red-strong);
  background: var(--red-soft);
}

.review-status.is-pass {
  color: var(--teal-dark);
  background: #e9f8f4;
}

.review-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: -4px 0 10px;
}

.review-checklist span {
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 8px;
  color: #696d75;
  background: #f4f5f5;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.review-checklist.is-checking span {
  color: #8a6500;
  background: #fff7d0;
}

.review-checklist.is-danger span {
  color: var(--red-strong);
  background: var(--red-soft);
}

.review-checklist.is-pass span {
  color: var(--teal-dark);
  background: #e9f8f4;
}

.mini-preview-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gallery-inline-preview {
  margin-top: 7px;
}

.mini-preview-row img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f4f5f5;
}

.mini-preview-row .preview-image-button {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f5f5;
}

.image-preview-head {
  align-items: center;
}

.image-preview-head h3 {
  font-size: 18px;
}

.image-preview-head span {
  display: inline-block;
  margin-top: 2px;
  color: #7a7f87;
  font-size: 12px;
  font-weight: 800;
}

.image-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.52);
}

.image-preview-overlay.open {
  display: flex;
}

.image-preview-sheet {
  width: min(100%, 430px);
  max-height: 88vh;
  border-radius: 18px;
}

.image-lightbox {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  max-height: 72vh;
  overflow: hidden;
  border-radius: 14px;
  background: #f4f5f5;
  touch-action: pan-y;
}

.image-lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.image-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2f3338;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(32, 33, 36, 0.18);
  transform: translateY(-50%);
}

.image-nav-prev {
  left: 10px;
}

.image-nav-next {
  right: 10px;
}

.image-nav-btn .tiny-icon {
  width: 22px;
  height: 22px;
}

.publish-submit-area {
  display: none;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 47, 47, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffafa, #fff);
}

.publish-submit-area.is-active {
  display: grid;
}

.publish-submit-area .primary-btn {
  width: 100%;
}

.submit-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #d8eee8;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #f1fbf8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.submit-status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.submit-status.is-checking {
  color: #8a6500;
  border-color: #ffe18d;
  background: #fff7d0;
}

.submit-status.is-checking::before {
  animation: statusPulse 0.9s ease-in-out infinite;
}

.submit-status.is-danger {
  color: var(--red-strong);
  border-color: rgba(255, 47, 47, 0.22);
  background: var(--red-soft);
}

.submit-status.is-pass {
  color: var(--teal-dark);
  border-color: #bfe8dc;
  background: #e9f8f4;
}

@keyframes statusPulse {
  50% {
    opacity: 0.35;
    transform: scale(1.35);
  }
}

.admin-card > .primary-btn {
  width: 100%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e9f8f4;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

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

.merchant-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.merchant-row.just-published {
  border-color: rgba(255, 47, 47, 0.58);
  background: linear-gradient(135deg, #fff, #fff4f2);
  box-shadow: 0 0 0 4px rgba(255, 47, 47, 0.1), 0 12px 26px rgba(255, 47, 47, 0.12);
  animation: publishPulse 1.15s ease-in-out 2;
}

@keyframes publishPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.015);
  }

  100% {
    transform: scale(1);
  }
}

.merchant-row img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.merchant-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.merchant-row span {
  color: var(--muted);
  font-size: 12px;
}

.quality-meter {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f1f2;
}

.quality-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #56c271);
}

.campaign-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.campaign-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 11px;
  font-weight: 800;
}

.campaign-tags.muted-tags span {
  color: #71717a;
  background: #f3f4f5;
}

.campaign-form {
  margin-top: 12px;
}

.campaign-existing {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #fff7e8;
}

.campaign-existing strong {
  font-size: 13px;
}

.campaign-existing span {
  color: #6c5b34;
  font-size: 12px;
}

.bid-rank-note {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: #fff7e8;
}

.bid-rank-note strong {
  font-size: 13px;
}

.bid-rank-note span {
  color: #6c5b34;
  font-size: 12px;
  line-height: 1.5;
}

.row-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.row-actions .ghost-btn {
  min-height: 38px;
}

.row-actions .ghost-btn:disabled,
.warehouse-actions .primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.warehouse-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 12px;
}

.warehouse-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: #47515a;
  background: #f3f4f5;
  font-size: 12px;
  font-weight: 800;
}

.warehouse-list {
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 2px;
}

.warehouse-row {
  background: #fff;
}

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

.danger-link {
  color: #a34545;
}

.danger-btn {
  background: #a34545;
  box-shadow: 0 8px 18px rgba(163, 69, 69, 0.18);
}

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 64px;
  z-index: 20;
  width: min(calc(100% - 18px), 412px);
  min-height: 73px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(236, 238, 240, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -7px 28px rgba(32, 33, 36, 0.12);
  backdrop-filter: blur(14px);
}

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

.cart-summary-panel div,
.cart-checkout-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(32, 33, 36, 0.04);
}

.cart-summary-panel span,
.cart-checkout-panel span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.cart-summary-panel strong,
.cart-checkout-panel strong {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 18px;
  line-height: 1.1;
}

.cart-page-list {
  margin-top: 0;
}

.cart-page-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(32, 33, 36, 0.04);
}

.cart-checkout-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.cart-checkout-panel p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
}

.cart-checkout-panel .primary-btn {
  min-width: 132px;
}

.cart-button {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #111;
  background: #fff;
  border-radius: 50%;
}

.cart-icon {
  width: 33px;
  height: 33px;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 2px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.cart-summary {
  min-width: 0;
}

.cart-summary strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.cart-summary span {
  color: #777b84;
  font-size: 12px;
}

.cart-thumbs {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.cart-thumbs img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  background: #f3f4f5;
}

.checkout-side {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.assist-total-save {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e9f8f4;
  font-size: 11px;
  font-weight: 900;
}

.checkout-total {
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
}

.checkout-btn {
  min-width: 118px;
  height: 47px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 47, 47, 0.22);
  white-space: nowrap;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 21;
  width: min(100%, 430px);
  height: 66px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.my-quick-links {
  display: grid;
  gap: 8px;
  margin: 12px;
}

.my-quick-links button {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #353a3f;
  background: #fff;
  text-align: left;
}

.my-quick-links button > .tiny-icon:first-child {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  color: var(--red-strong);
  background: var(--red-soft);
}

.my-quick-links button:nth-child(2) > .tiny-icon:first-child {
  color: var(--teal-dark);
  background: #e5f7f1;
}

.my-quick-links button > .tiny-icon:last-child {
  width: 18px;
  height: 18px;
  color: #9ba09f;
}

.my-quick-links strong,
.my-quick-links small {
  display: block;
}

.my-quick-links strong {
  font-size: 14px;
}

.my-quick-links small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.tasks-page .buyer-level-card {
  margin-top: 12px;
}

.tasks-page .daily-task-card {
  margin-top: 12px;
}

.task-tip-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 12px;
  padding: 13px;
  border-radius: 14px;
  color: #41625b;
  background: #eaf8f3;
}

.task-tip-card .tiny-icon {
  width: 22px;
  height: 22px;
  color: var(--teal-dark);
}

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

.profile-drawer-stack,
.merchant-drawer-stack {
  display: grid;
  gap: 10px;
  margin: 12px;
}

.profile-drawer {
  overflow: hidden;
  border: 1px solid #e5e9e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(47, 58, 54, 0.045);
}

.profile-drawer > summary {
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  color: #343a38;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.profile-drawer > summary::-webkit-details-marker {
  display: none;
}

.profile-drawer > summary > .tiny-icon:first-child {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 11px;
  color: var(--teal-dark);
  background: #e8f7f2;
}

.profile-drawer > summary > .tiny-icon:last-child {
  width: 18px;
  height: 18px;
  color: #929a97;
  transition: transform 0.2s ease;
}

.profile-drawer[open] > summary > .tiny-icon:last-child {
  transform: rotate(180deg);
}

.profile-drawer > summary strong,
.profile-drawer > summary small {
  display: block;
}

.profile-drawer > summary strong {
  font-size: 14px;
}

.profile-drawer > summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.profile-drawer-content {
  padding: 0 10px 10px;
  border-top: 1px solid #eff1ef;
}

.profile-drawer-content > .admin-card,
.profile-drawer-content > .assist-record-card,
.profile-drawer-content > .assist-leaderboard-card,
.profile-drawer-content > .history-card,
.profile-drawer-content > .message-center-card,
.profile-drawer-content > .account-security-card,
.profile-drawer-content > .my-address-form {
  margin: 10px 0 0;
  border: 0;
  box-shadow: none;
}

.merchant-drawer-stack {
  margin-top: 10px;
}

.merchant-product-drawer {
  margin: 12px;
}

.merchant-product-drawer > .admin-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.daily-task-row.is-complete {
  animation: taskCompleteGlow 0.42s ease both;
}

@keyframes taskCompleteGlow {
  0% { background-color: #fff; }
  50% { background-color: #ddf6ec; }
  100% { background-color: #f0fbf7; }
}

.primary-btn:hover,
.search-btn:hover,
.checkout-btn:hover {
  box-shadow: 0 10px 22px rgba(227, 67, 58, 0.2);
}

.empty-state.rich-empty {
  border: 1px dashed #dfe5e1;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f7faf8);
}

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

/* 9.9 polish pass: unify deep pages and interaction surfaces */
.sheet {
  scrollbar-width: thin;
  scrollbar-color: #d9dfdb transparent;
}

.detail-head {
  position: sticky;
  top: -14px;
  z-index: 6;
  margin: -14px -14px 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(229, 233, 230, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.buyer-detail-full {
  gap: 14px;
}

.detail-main-image {
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(222, 227, 223, 0.8);
}

.detail-thumbs {
  padding: 1px 1px 3px;
  scrollbar-width: none;
}

.detail-thumbs::-webkit-scrollbar {
  display: none;
}

.detail-thumbs img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

.detail-thumbs img.active {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.detail-price-card,
.shop-card,
.sku-card,
.detail-tab-panel,
.detail-related-shelf {
  border-color: #e5e9e6;
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(47, 58, 54, 0.045);
}

.detail-price-card {
  padding: 15px;
}

.big-price {
  font-size: 30px;
  letter-spacing: -0.5px;
}

.detail-price-card h2 {
  margin-top: 12px;
  font-size: 21px;
}

.detail-mini-meta span,
.service-row span,
.detail-signal-row div {
  border-radius: 999px;
}

.detail-status-grid div {
  border: 1px solid #edf0ee;
  border-radius: 12px;
  background: #fafcfb;
}

.detail-tabs {
  top: 54px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(47, 58, 54, 0.07);
}

.detail-tabs button {
  height: 46px;
}

.detail-actions {
  bottom: -14px;
  z-index: 7;
  margin: 0 -14px -14px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #e7ebe8;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 28px rgba(47, 58, 54, 0.08);
  backdrop-filter: blur(14px);
}

.detail-actions button {
  min-height: 48px;
  border-radius: 14px;
}

.cart-summary-panel div,
.cart-page-row,
.cart-checkout-panel,
.wishlist-summary div {
  border-color: #e5e9e6;
  border-radius: 15px;
  box-shadow: none;
}

.cart-summary-panel div:nth-child(1) {
  background: #fff8ed;
}

.cart-summary-panel div:nth-child(2) {
  background: #edf9f5;
}

.cart-summary-panel div:nth-child(3) {
  background: #fff1ef;
}

.cart-checkout-panel {
  position: sticky;
  bottom: 76px;
  z-index: 5;
  border-color: rgba(255, 90, 79, 0.2);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(47, 58, 54, 0.1);
  backdrop-filter: blur(12px);
}

.wishlist-row .mini-btn {
  min-width: 88px;
  border-radius: 10px;
}

.product-image,
.deal-image,
.rail-product-card img,
.cart-row img,
.wishlist-row img,
.merchant-row img,
.store-product-row img {
  background: linear-gradient(145deg, #f8faf8, #eef2ef);
}

.product-card,
.rail-product-card,
.deal-card,
.store-product-row,
.merchant-row {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:has(button:active),
.rail-product-card:active,
.store-product-row:active {
  transform: translateY(1px) scale(0.992);
}

.product-publisher {
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(47, 58, 54, 0.08);
}

.publish-stepper {
  position: sticky;
  top: -14px;
  z-index: 4;
  margin: -14px -4px 2px;
  padding: 12px 4px 9px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.publish-step {
  min-height: 52px;
  border-radius: 12px;
}

.publish-step.is-active {
  border-color: rgba(7, 156, 153, 0.25);
  box-shadow: 0 6px 16px rgba(7, 156, 153, 0.09);
}

.publish-section {
  padding: 14px;
  border: 1px solid #e8ece9;
  border-radius: 15px;
  background: #fcfdfc;
}

.publish-section h3 {
  font-size: 16px;
}

.field input,
.field select,
.field textarea {
  min-height: 46px;
  border-color: #dce2de;
  border-radius: 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #cbd5cf;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7, 156, 153, 0.1);
}

.publish-step-actions {
  position: sticky;
  bottom: -14px;
  z-index: 5;
  margin: 4px -14px -14px;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  border-top: 1px solid #e7ebe8;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(47, 58, 54, 0.07);
  backdrop-filter: blur(12px);
}

.seller-stat-grid {
  gap: 8px;
}

.seller-stat-grid .stat-card {
  min-height: 86px;
  border: 1px solid #e5e9e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.merchant-insight-grid div,
.moderation-summary-grid div {
  border-radius: 13px;
  background: #fafcfb;
}

@media (max-width: 370px) {
  .detail-status-grid {
    grid-template-columns: 1fr;
  }

  .cart-checkout-panel {
    position: static;
    grid-template-columns: 1fr;
  }

  .cart-checkout-panel .primary-btn {
    width: 100%;
  }

  .publish-step strong {
    display: none;
  }

  .publish-step {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* Final cascade layer — keep this block last so legacy component rules cannot override the polish pass. */
.detail-head {
  position: sticky;
  top: -14px;
  z-index: 6;
  margin: -14px -14px 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(229, 233, 230, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.buyer-detail-full { gap: 14px; }
.detail-main-image { border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(222, 227, 223, 0.8); }
.detail-thumbs { padding: 1px 1px 3px; scrollbar-width: none; }
.detail-thumbs::-webkit-scrollbar { display: none; }
.detail-thumbs img { width: 60px; height: 60px; border-radius: 12px; }
.detail-thumbs img.active { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.detail-price-card,
.shop-card,
.sku-card,
.detail-tab-panel,
.detail-related-shelf { border-color: #e5e9e6; border-radius: 16px; box-shadow: 0 7px 22px rgba(47, 58, 54, 0.045); }
.detail-price-card { padding: 15px; }
.big-price { font-size: 30px; letter-spacing: -0.5px; }
.detail-price-card h2 { margin-top: 12px; font-size: 21px; }
.detail-mini-meta span,
.service-row span,
.detail-signal-row div { border-radius: 999px; }
.detail-status-grid div { border: 1px solid #edf0ee; border-radius: 12px; background: #fafcfb; }
.detail-tabs { top: 54px; border-radius: 14px; box-shadow: 0 8px 20px rgba(47, 58, 54, 0.07); }
.detail-tabs button { height: 46px; }
.detail-actions {
  bottom: -14px;
  z-index: 7;
  margin: 0 -14px -14px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #e7ebe8;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 28px rgba(47, 58, 54, 0.08);
  backdrop-filter: blur(14px);
}
.detail-actions button { min-height: 48px; border-radius: 14px; }
.cart-summary-panel div,
.cart-page-row,
.cart-checkout-panel,
.wishlist-summary div { border-color: #e5e9e6; border-radius: 15px; box-shadow: none; }
.cart-summary-panel div:nth-child(1) { background: #fff8ed; }
.cart-summary-panel div:nth-child(2) { background: #edf9f5; }
.cart-summary-panel div:nth-child(3) { background: #fff1ef; }
.cart-checkout-panel { position: sticky; bottom: 76px; z-index: 5; border-color: rgba(255, 90, 79, 0.2); background: rgba(255, 255, 255, 0.96); box-shadow: 0 12px 30px rgba(47, 58, 54, 0.1); backdrop-filter: blur(12px); }
.wishlist-row .mini-btn { min-width: 88px; border-radius: 10px; }
.product-publisher { border-radius: 18px; box-shadow: 0 14px 36px rgba(47, 58, 54, 0.08); }
.publish-stepper { position: sticky; top: -14px; z-index: 4; margin: -14px -4px 2px; padding: 12px 4px 9px; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); }
.publish-step { min-height: 52px; border-radius: 12px; }
.publish-step.is-active { border-color: rgba(7, 156, 153, 0.25); box-shadow: 0 6px 16px rgba(7, 156, 153, 0.09); }
.publish-section { padding: 14px; border: 1px solid #e8ece9; border-radius: 15px; background: #fcfdfc; }
.publish-section h3 { font-size: 16px; }
.field input,
.field select,
.field textarea { min-height: 46px; border-color: #dce2de; border-radius: 12px; transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #cbd5cf; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(7, 156, 153, 0.1); }
.publish-step-actions { position: sticky; bottom: -14px; z-index: 5; margin: 4px -14px -14px; padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); border-top: 1px solid #e7ebe8; background: rgba(255, 255, 255, 0.96); box-shadow: 0 -8px 24px rgba(47, 58, 54, 0.07); backdrop-filter: blur(12px); }
.seller-stat-grid .stat-card { min-height: 86px; border: 1px solid #e5e9e6; border-radius: 14px; background: #fff; box-shadow: none; }
.merchant-insight-grid div,
.moderation-summary-grid div { border-radius: 13px; background: #fafcfb; }

@media (max-width: 370px) {
  .detail-status-grid { grid-template-columns: 1fr; }
  .cart-checkout-panel { position: static; grid-template-columns: 1fr; }
  .cart-checkout-panel .primary-btn { width: 100%; }
  .publish-step strong { display: none; }
  .publish-step { grid-template-columns: 1fr; justify-items: center; }
}

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

.task-tip-card span {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
}

/* 2026 home UI refresh: calmer game dashboard hierarchy */
.home-header {
  padding-bottom: 12px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 211, 79, 0.3), transparent 28%),
    linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
}

.home-header .topbar {
  padding: 18px 16px 12px;
}

.home-header .pill {
  color: #b34831;
  background: #ffe7d8;
}

.home-header .search-row {
  grid-template-columns: 1fr 68px 42px;
  padding: 0 16px;
}

.home-header .searchbox {
  border: 1px solid #e5e8e5;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(48, 60, 54, 0.06);
}

.home-header .search-btn {
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b55, #f34b42);
}

.home-header .notice {
  width: calc(100% - 32px);
  min-height: 32px;
  margin: 8px 16px 0;
  padding: 5px 8px;
  justify-content: flex-start;
  border: 0;
  border-radius: 8px;
  color: #6c7c78;
  background: rgba(234, 248, 243, 0.68);
  font-size: 11px;
  line-height: 1.2;
  text-align: left;
}

.home-header .notice span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-header .notice .tiny-icon {
  width: 16px;
  height: 16px;
}

.home-command-center {
  margin: 14px 12px 0;
  padding: 12px;
  border: 1px solid rgba(224, 231, 226, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.home-command-center .allowance-strip {
  margin: 0;
  padding: 14px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff3d8, #ecfaf4);
}

.allowance-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ffb52e, #ff7552);
  box-shadow: 0 8px 16px rgba(255, 137, 55, 0.2);
}

.allowance-icon .tiny-icon {
  width: 23px;
  height: 23px;
}

.allowance-copy strong {
  font-size: 16px;
}

.home-command-center .home-quick-grid {
  margin: 12px 0 0;
  gap: 8px;
}

.home-command-center .home-quick-grid button {
  min-height: 86px;
  padding: 10px 8px;
  border: 0;
  background: #f7f9f7;
  box-shadow: none;
}

.home-quick-grid i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #e34c42;
  background: #ffe9e5;
  font-style: normal;
}

.home-quick-grid button:nth-child(2) i {
  color: #087d75;
  background: #dff5ef;
}

.home-quick-grid button:nth-child(3) i {
  color: #b57400;
  background: #fff0c9;
}

.home-quick-grid button:nth-child(4) i {
  color: #6e5aae;
  background: #eee9ff;
}

.home-quick-grid i .tiny-icon {
  color: inherit;
}

.mood-section .section-head {
  padding-top: 26px;
}

.mood-chip {
  height: 40px;
  border-radius: 999px;
}

.mood-chip.active {
  color: #c63c33;
  box-shadow: inset 0 0 0 1.5px rgba(227, 76, 66, 0.25), 0 5px 14px rgba(49, 61, 55, 0.06);
}

.game-supply-panel {
  padding: 16px 12px 14px;
  border-color: #e9ece9;
  box-shadow: none;
}

.game-supply-panel .deal-top {
  align-items: flex-end;
}

.game-supply-panel .deal-title {
  margin-top: 3px;
  font-size: 20px;
}

.badge-red {
  color: #b34831;
  background: #ffe4d7;
}

.group-tag {
  background: rgba(38, 48, 45, 0.82);
}

.save-tag {
  color: #815900;
  background: #ffe9a8;
}

.deal-action {
  background: #fff0ed;
  color: #d94339;
  box-shadow: none;
}

.coupon-band {
  padding: 16px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #088d83, #20ac86);
}

.coupon-copy h3 span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
}

.home-shelf {
  border-radius: 18px;
  box-shadow: none;
}

.recommend-section {
  margin-top: 8px;
  padding-top: 4px;
}

.product-grid {
  gap: 12px;
  padding-inline: 12px;
}

.product-card {
  border-radius: 15px;
  box-shadow: none;
}

.product-image {
  aspect-ratio: 1;
}

.promote-ribbon {
  background: rgba(38, 48, 45, 0.84);
}

.product-body {
  padding: 11px;
}

.product-name {
  font-weight: 800;
}

.product-badges {
  min-height: 21px;
}

.product-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
}

.product-value-row .joined {
  font-size: 11px;
  white-space: nowrap;
}

.card-actions .mini-btn {
  background: var(--red-soft);
  color: var(--red-strong);
}

.bottom-nav {
  height: 70px;
  padding: 0 10px max(3px, env(safe-area-inset-bottom));
  border-top-color: #e6e9e6;
  box-shadow: 0 -8px 28px rgba(47, 58, 54, 0.07);
}

.tab-btn {
  height: 66px;
  border-radius: 14px;
}

.tab-btn.active {
  color: var(--red-strong);
}

@media (max-width: 370px) {
  .home-command-center .allowance-strip {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .home-command-center .allowance-strip > button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.tab-btn {
  height: 64px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  color: #5f6368;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

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

.tab-icon {
  width: 22px;
  height: 22px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: center;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.36);
}

.overlay.open {
  display: flex;
}

.sheet {
  width: min(100%, 430px);
  max-height: 88vh;
  overflow: auto;
  padding: 14px;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -16px 32px rgba(0, 0, 0, 0.2);
}

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

.sheet-head h3 {
  margin: 0;
  font-size: 20px;
}

.close-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #44474e;
  background: #f3f4f5;
}

.close-btn svg {
  width: 20px;
  height: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 13px;
  align-items: start;
}

.detail-grid img {
  height: 138px;
  border-radius: 12px;
  object-fit: cover;
  background: #f4f5f5;
}

.detail-copy h4 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.detail-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.detail-head h3 {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-detail {
  display: grid;
  gap: 12px;
}

.buyer-detail-full {
  padding-bottom: 2px;
}

.detail-gallery {
  display: grid;
  gap: 9px;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 1.08;
  border-radius: 14px;
  object-fit: cover;
  background: #f4f5f5;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.detail-thumbs img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 2px solid transparent;
  border-radius: 9px;
  object-fit: cover;
  background: #f4f5f5;
}

.detail-thumbs img.active {
  border-color: var(--red);
}

.detail-price-card,
.shop-card,
.sku-card,
.detail-tab-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.big-price {
  font-size: 28px;
  line-height: 1;
}

.market-price {
  color: #9a9ca3;
  font-size: 13px;
  text-decoration: line-through;
}

.detail-price-card h2 {
  margin: 9px 0 7px;
  font-size: 20px;
  line-height: 1.3;
}

.sale-point {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--red-strong);
  background: var(--red-soft);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.detail-price-card p,
.sku-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.detail-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.detail-mini-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 7px;
  color: #5f6368;
  background: #f4f5f5;
  font-size: 11px;
  font-weight: 800;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.service-row span {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e9f8f4;
  font-size: 11px;
  font-weight: 800;
}

.detail-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.detail-status-grid div {
  min-width: 0;
  min-height: 66px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 8px 7px;
  border-radius: 9px;
  background: #f8f9fa;
}

.detail-status-grid .tiny-icon {
  width: 16px;
  height: 16px;
  color: var(--teal-dark);
}

.detail-status-grid span {
  color: #777c84;
  font-size: 10px;
  font-weight: 900;
}

.detail-status-grid strong {
  color: #30333a;
  font-size: 11px;
  line-height: 1.32;
}

.detail-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.detail-signal-row div {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border-radius: 999px;
  color: #6a5454;
  background: #fff5f2;
  font-size: 11px;
  font-weight: 900;
}

.detail-signal-row .tiny-icon {
  width: 14px;
  height: 14px;
  color: var(--red);
}

.detail-boundary-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(23, 184, 144, 0.18);
  border-radius: 12px;
  background: #f4fbf8;
}

.detail-boundary-card .tiny-icon {
  width: 20px;
  height: 20px;
  color: var(--teal-dark);
}

.detail-boundary-card strong {
  display: block;
  margin-bottom: 3px;
  color: #273b38;
  font-size: 14px;
}

.detail-boundary-card span {
  display: block;
  color: #5d6d6a;
  font-size: 12px;
  line-height: 1.5;
}

.assist-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 47, 47, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffafa, #fff);
}

.assist-card.is-complete {
  border-color: rgba(7, 156, 153, 0.28);
  background: linear-gradient(180deg, #f0fbf8, #fff);
}

.assist-title,
.assist-title div,
.assist-price-row {
  display: flex;
  align-items: center;
}

.assist-title {
  justify-content: space-between;
  gap: 10px;
}

.assist-title div {
  min-width: 0;
  gap: 6px;
}

.assist-title .tiny-icon {
  width: 17px;
  height: 17px;
  color: var(--red);
}

.assist-title strong {
  font-size: 15px;
}

.assist-title span {
  color: var(--red-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.assist-card p {
  margin: 0;
  color: #5c626b;
  font-size: 12px;
  line-height: 1.55;
}

.assist-main-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.assist-main-btn .tiny-icon,
.assist-actions .tiny-icon {
  width: 16px;
  height: 16px;
}

.assist-price-row {
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
}

.assist-price-row b {
  color: var(--red);
  font-size: 17px;
}

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

.assist-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #ff9f45);
}

.assist-card.is-complete .assist-progress i {
  background: linear-gradient(90deg, var(--teal), #5ecf7b);
}

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

.assist-helper-row span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #686d76;
  background: #f4f5f5;
  font-size: 11px;
  font-weight: 800;
}

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

.assist-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
}

.assist-card .assist-actions .primary-btn {
  grid-column: 1 / -1;
}

.assist-result-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 47, 47, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffafa, #fff);
}

.assist-result-product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.assist-result-product img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f5f5;
}

.assist-result-product strong,
.assist-result-product span {
  display: block;
}

.assist-result-product strong {
  color: #25282e;
  font-size: 15px;
  line-height: 1.35;
}

.assist-result-product span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.assist-result-main {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 12px;
  color: #3b2d2d;
  background: var(--red-soft);
}

.assist-result-main span {
  color: var(--red-strong);
  font-size: 12px;
  font-weight: 900;
}

.assist-result-main h2 {
  margin: 0;
  color: var(--red);
  font-size: 22px;
  line-height: 1.18;
}

.assist-result-main p {
  margin: 0;
  color: #6a5050;
  font-size: 12px;
  line-height: 1.5;
}

.assist-result-card .assist-actions .primary-btn {
  grid-column: 1 / -1;
}

.assist-share-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 47, 47, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffafa, #fff);
}

.assist-share-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.assist-share-product img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f5f5;
}

.assist-share-product strong,
.assist-share-product span {
  display: block;
}

.assist-share-product strong {
  color: #25282e;
  font-size: 15px;
  line-height: 1.35;
}

.assist-share-product span {
  margin: 3px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.assist-share-product b {
  color: var(--red);
  font-size: 17px;
}

.assist-qr-image,
.assist-qr-fallback {
  width: min(210px, 72vw);
  aspect-ratio: 1;
  justify-self: center;
  border: 8px solid #fff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.12);
}

.assist-qr-fallback {
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}

.assist-qr-fallback .tiny-icon {
  width: 42px;
  height: 42px;
  color: var(--red);
}

.assist-share-card p {
  margin: 0;
  color: #5d636c;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.share-link-box {
  display: grid;
  gap: 5px;
}

.share-link-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.share-link-box input {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #4b515a;
  background: #f8f9fa;
  font-size: 12px;
}

.assist-poster-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 47, 47, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffafa, #fff);
}

.assist-poster-preview {
  width: min(100%, 280px);
  max-height: 62vh;
  justify-self: center;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 26px rgba(32, 33, 36, 0.15);
}

.assist-poster-card p {
  margin: 0;
  color: #5d636c;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

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

.poster-actions button,
.poster-download-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  text-decoration: none;
}

.poster-download-btn .tiny-icon {
  width: 16px;
  height: 16px;
}

.shop-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.shop-card strong,
.sku-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.shop-card span {
  color: var(--muted);
  font-size: 12px;
}

.shop-card .ghost-btn {
  min-width: 84px;
  min-height: 38px;
}

.store-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.store-jump-btn .tiny-icon {
  width: 16px;
  height: 16px;
}

.store-detail-page {
  display: grid;
  gap: 12px;
}

.store-hero-card,
.store-service-card,
.store-product-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.store-cover {
  height: 96px;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 47, 47, 0.12), rgba(23, 184, 144, 0.15)),
    #f4f5f5;
}

.store-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-profile-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: -18px;
}

.store-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 8px 16px rgba(32, 33, 36, 0.14);
  font-size: 16px;
  font-weight: 900;
}

.store-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-profile-row h2 {
  margin: 18px 0 3px;
  color: #22252a;
  font-size: 20px;
  line-height: 1.25;
}

.store-profile-row p,
.store-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.store-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.store-stats div {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 6px 4px;
  border-radius: 9px;
  background: #f8f9fa;
  text-align: center;
}

.store-stats strong {
  color: var(--red);
  font-size: 16px;
  line-height: 1;
}

.store-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.store-service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.store-service-row span,
.store-product-tags em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e9f8f4;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

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

.store-product-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.store-product-row img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  background: #f4f5f5;
}

.store-product-row strong {
  display: block;
  color: #2d3035;
  font-size: 14px;
  line-height: 1.35;
}

.store-product-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.store-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.store-product-tags em:first-child {
  color: var(--red-strong);
  background: var(--red-soft);
}

.store-product-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.store-product-bottom b {
  color: var(--red);
  font-size: 17px;
}

.store-product-bottom .mini-btn {
  min-width: 86px;
  height: 32px;
}

.detail-related-shelf {
  padding: 12px 0 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.detail-related-shelf .rail-product-card {
  width: 112px;
  min-width: 112px;
}

.sku-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0;
}

.sku-options button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3f4248;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.sku-options button.active {
  color: var(--red);
  border-color: rgba(255, 47, 47, 0.5);
  background: var(--red-soft);
}

.detail-tabs {
  position: sticky;
  top: -14px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.detail-tabs button {
  position: relative;
  height: 42px;
  color: #666a72;
  background: #fff;
  font-weight: 900;
}

.detail-tabs button.active {
  color: var(--red);
}

.detail-tabs button.active::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
}

.detail-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.detail-section-title strong {
  font-size: 15px;
}

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

.param-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.param-table div {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
}

.param-table div:last-child {
  border-bottom: 0;
}

.param-table span,
.param-table strong {
  display: flex;
  align-items: center;
  padding: 8px;
  font-size: 12px;
}

.param-table span {
  color: var(--muted);
  background: #f8f9fa;
}

.param-table strong {
  font-weight: 700;
}

.detail-rich-text {
  display: grid;
  gap: 10px;
}

.detail-rich-text p,
.review-list p {
  margin: 0;
  color: #555a62;
  font-size: 13px;
  line-height: 1.65;
}

.detail-rich-text img {
  border-radius: 10px;
  background: #f4f5f5;
}

.after-sale-box {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 10px;
  background: #f8f9fa;
}

.after-sale-box strong {
  font-size: 13px;
}

.after-sale-box span,
.review-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.review-list div {
  padding: 10px;
  border-radius: 10px;
  background: #f8f9fa;
}

.review-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.detail-actions {
  position: sticky;
  bottom: -14px;
  padding: 10px 0 2px;
  background: #fff;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.ghost-btn {
  min-height: 44px;
  border-radius: 10px;
  color: var(--red);
  background: var(--red-soft);
  font-weight: 900;
}

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

.cart-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cart-row img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-row strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.cart-row .price em {
  display: inline-block;
  margin-left: 4px;
  color: var(--teal-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-controls {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--red);
  background: var(--red-soft);
  font-weight: 900;
}

.remove-cart-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7a2327;
  background: #ffe3e3;
}

.remove-cart-btn .tiny-icon,
.remove-cart-btn svg {
  width: 15px;
  height: 15px;
}

.virtual-address-form,
.logistics-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8eee8;
  border-radius: 12px;
  background: #f4fffb;
  text-align: left;
}

.virtual-address-head,
.logistics-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.virtual-address-head div,
.logistics-head div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.virtual-address-head span,
.logistics-head span,
.order-shipping {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.logistics-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #384745;
  font-size: 12px;
  font-weight: 900;
}

.logistics-route span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.logistics-route i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--teal));
}

.logistics-meta {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.logistics-timeline {
  display: grid;
  gap: 0;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed #cfe8e2;
}

.logistics-timeline div {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 0 0 12px 18px;
}

.logistics-timeline div::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 13px;
  bottom: -2px;
  width: 1px;
  background: #cfe8e2;
}

.logistics-timeline div:last-child {
  padding-bottom: 0;
}

.logistics-timeline div:last-child::before {
  display: none;
}

.logistics-timeline i {
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 2px #cfe8e2;
}

.logistics-timeline div.active i {
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(255, 47, 47, 0.18);
}

.logistics-timeline span {
  color: #7b858b;
  font-size: 11px;
  font-weight: 900;
}

.logistics-timeline strong {
  min-width: 0;
  color: #2c3438;
  font-size: 13px;
  line-height: 1.3;
}

.logistics-timeline p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.order-shipping {
  display: block;
  margin-top: 3px;
}

.checkout-note {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 10px;
  color: #45615f;
  background: #e9f8f4;
  font-size: 13px;
  line-height: 1.5;
}

.success-box {
  padding: 18px 10px 12px;
  text-align: center;
}

.success-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
}

.success-mark svg {
  width: 34px;
  height: 34px;
}

.success-box h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.success-box p {
  margin: 0 auto;
  max-width: 320px;
  color: var(--muted);
  line-height: 1.55;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 148px;
  z-index: 60;
  max-width: min(340px, calc(100% - 32px));
  transform: translate(-50%, 20px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(32, 33, 36, 0.92);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reward-celebration {
  position: fixed;
  left: 50%;
  top: 26%;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  padding: 12px 17px;
  border: 1px solid rgba(255, 196, 63, 0.45);
  border-radius: 999px;
  color: #865700;
  background: linear-gradient(135deg, #fff8d8, #fff0bd);
  box-shadow: 0 16px 38px rgba(126, 91, 16, 0.18);
  pointer-events: none;
  animation: rewardPop 1.05s ease both;
}

.reward-celebration span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ffbd2e, #ff8b35);
}

.reward-celebration .tiny-icon {
  width: 15px;
  height: 15px;
}

.reward-celebration strong {
  white-space: nowrap;
  font-size: 14px;
}

@keyframes rewardPop {
  0% { opacity: 0; transform: translate(-50%, 14px) scale(0.88); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1.04); }
  72% { opacity: 1; transform: translate(-50%, -4px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -18px) scale(0.96); }
}

@media (max-width: 370px) {
  .brand-name {
    font-size: 22px;
  }

  .search-row {
    grid-template-columns: 1fr 66px 38px;
  }

  .home-quick-grid,
  .merchant-insight-grid,
  .cart-summary-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .sales-rank-row {
    grid-template-columns: 24px 42px minmax(0, 1fr);
  }

  .sales-rank-row img,
  .sales-store-avatar {
    width: 42px;
    height: 42px;
  }

  .sales-rank-money {
    grid-column: 3;
    justify-items: start;
    text-align: left;
  }

  .deals {
    gap: 7px;
  }

  .deal-name {
    font-size: 12px;
  }

  .coupon-band {
    grid-template-columns: 1fr;
  }

  .coupon-art {
    display: none;
  }

  .merchant-action-card {
    grid-template-columns: 1fr;
  }

  .merchant-action-card .primary-btn {
    width: 100%;
  }

  .tab-btn {
    font-size: 10px;
  }

  .tab-icon {
    width: 20px;
    height: 20px;
  }

  .cart-bar {
    grid-template-columns: 50px 1fr;
    border-radius: 24px;
  }

  .checkout-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    align-items: center;
  }
}

/* Cascade lock: final deep-page overrides. */
.detail-head { position: sticky; top: -14px; z-index: 6; margin: -14px -14px 12px; padding: 14px; border-bottom: 1px solid rgba(229,233,230,.9); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.buyer-detail-full { gap: 14px; }
.detail-main-image { border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(222,227,223,.8); }
.detail-thumbs { padding: 1px 1px 3px; scrollbar-width: none; }
.detail-thumbs::-webkit-scrollbar { display: none; }
.detail-thumbs img { width: 60px; height: 60px; border-radius: 12px; }
.detail-thumbs img.active { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.detail-price-card,.shop-card,.sku-card,.detail-tab-panel,.detail-related-shelf { border-color: #e5e9e6; border-radius: 16px; box-shadow: 0 7px 22px rgba(47,58,54,.045); }
.detail-price-card { padding: 15px; }
.big-price { font-size: 30px; letter-spacing: -.5px; }
.detail-price-card h2 { margin-top: 12px; font-size: 21px; }
.detail-status-grid div { border: 1px solid #edf0ee; border-radius: 12px; background: #fafcfb; }
.detail-tabs { top: 54px; border-radius: 14px; box-shadow: 0 8px 20px rgba(47,58,54,.07); }
.detail-tabs button { height: 46px; }
.detail-actions { bottom: -14px; z-index: 7; margin: 0 -14px -14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #e7ebe8; background: rgba(255,255,255,.96); box-shadow: 0 -10px 28px rgba(47,58,54,.08); backdrop-filter: blur(14px); }
.detail-actions button { min-height: 48px; border-radius: 14px; }
.cart-summary-panel div,.cart-page-row,.cart-checkout-panel,.wishlist-summary div { border-color: #e5e9e6; border-radius: 15px; box-shadow: none; }
.cart-summary-panel div:nth-child(1) { background: #fff8ed; }
.cart-summary-panel div:nth-child(2) { background: #edf9f5; }
.cart-summary-panel div:nth-child(3) { background: #fff1ef; }
.cart-checkout-panel { position: sticky; bottom: 76px; z-index: 5; border-color: rgba(255,90,79,.2); background: rgba(255,255,255,.96); box-shadow: 0 12px 30px rgba(47,58,54,.1); backdrop-filter: blur(12px); }
.wishlist-row .mini-btn { min-width: 88px; border-radius: 10px; }
.product-publisher { border-radius: 18px; box-shadow: 0 14px 36px rgba(47,58,54,.08); }
.publish-stepper { position: sticky; top: -14px; z-index: 4; margin: -14px -4px 2px; padding: 12px 4px 9px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.publish-step { min-height: 52px; border-radius: 12px; }
.publish-step.is-active { border-color: rgba(7,156,153,.25); box-shadow: 0 6px 16px rgba(7,156,153,.09); }
.publish-section { padding: 14px; border: 1px solid #e8ece9; border-radius: 15px; background: #fcfdfc; }
.field input,.field select,.field textarea { min-height: 46px; border-color: #dce2de; border-radius: 12px; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(7,156,153,.1); }
.publish-step-actions { position: sticky; bottom: -14px; z-index: 5; margin: 4px -14px -14px; padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); border-top: 1px solid #e7ebe8; background: rgba(255,255,255,.96); box-shadow: 0 -8px 24px rgba(47,58,54,.07); backdrop-filter: blur(12px); }
.seller-stat-grid .stat-card { min-height: 86px; border: 1px solid #e5e9e6; border-radius: 14px; background: #fff; box-shadow: none; }
