/* Huizu-style WeChat merchant surface. Loaded after the shared theme on purpose. */

body.app-wechat {
  --wz-blue: #2f6bff;
  --wz-blue-dark: #1f50d5;
  --wz-blue-soft: #edf3ff;
  --wz-orange: #f26a21;
  --wz-orange-soft: #fff2e9;
  --wz-green: #16a36a;
  --wz-green-soft: #eaf8f1;
  --wz-amber: #ef8b13;
  --wz-amber-soft: #fff7e8;
  --wz-red: #e5484d;
  --wz-red-soft: #fff0f1;
  --wz-ink: #1d2733;
  --wz-muted: #7a8699;
  --wz-faint: #a1aaba;
  --wz-line: #e7ecf3;
  --wz-canvas: #f3f6fb;
  --wz-surface: #ffffff;
  --wz-shadow: 0 7px 24px rgba(41, 62, 102, 0.07);
  --ink: var(--wz-ink);
  --muted: var(--wz-muted);
  --faint: var(--wz-faint);
  --line: var(--wz-line);
  --surface: var(--wz-surface);
  --canvas: var(--wz-canvas);
  --soft: var(--wz-canvas);
  --brand: var(--wz-orange);
  --brand-dark: #c44f10;
  --brand-soft: var(--wz-orange-soft);
  --blue: var(--wz-blue);
  --blue-soft: var(--wz-blue-soft);
  --green: var(--wz-green);
  --green-soft: var(--wz-green-soft);
  --amber: var(--wz-amber);
  --amber-soft: var(--wz-amber-soft);
  --red: var(--wz-red);
  --red-soft: var(--wz-red-soft);
  color: var(--wz-ink);
  background: var(--wz-canvas);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

body.app-wechat .phone-shell {
  background:
    linear-gradient(180deg, #eef4ff 0, #f7f9fd 148px, #f3f6fb 148px, #f3f6fb 100%);
}

body.app-wechat .app-header {
  min-height: 58px;
  padding: max(8px, env(safe-area-inset-top)) 14px 8px;
  border-bottom: 0;
  background: rgba(246, 249, 255, 0.94);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

body.app-wechat .app-identity {
  gap: 9px;
}

body.app-wechat .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, #ff8b45, #f05b17);
  box-shadow: 0 6px 16px rgba(242, 106, 33, 0.22);
  font-size: 16px;
}

body.app-wechat .app-title strong {
  color: var(--wz-ink);
  font-size: 16px;
  font-weight: 760;
}

body.app-wechat .app-title small {
  color: var(--wz-muted);
  font-size: 10px;
}

body.app-wechat .header-actions {
  gap: 6px;
}

body.app-wechat .icon-button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-color: rgba(210, 220, 237, 0.82);
  border-radius: 9px;
  color: #536176;
  background: rgba(255, 255, 255, 0.78);
}

body.app-wechat .icon-button svg {
  width: 17px;
  height: 17px;
}

.notification-button {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--wz-red);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

body.app-wechat .app-main {
  padding: 8px 12px calc(24px + env(safe-area-inset-bottom));
}

body.app-wechat .tab-bar {
  gap: 0;
  padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(222, 229, 239, 0.92);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(42, 56, 84, 0.05);
}

body.app-wechat .tab-item {
  min-height: 50px;
  gap: 2px;
  border-radius: 0;
  color: #8893a5;
  background: transparent;
  font-size: 10px;
}

body.app-wechat .tab-item svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

body.app-wechat .tab-item.active {
  color: var(--wz-blue);
  background: transparent;
}

body.app-wechat .tab-item.active svg {
  stroke-width: 2.25;
}

body.app-wechat .tab-item.active::before {
  position: absolute;
  top: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--wz-blue);
  content: "";
}

body.app-wechat .tab-count {
  top: 2px;
  left: calc(50% + 8px);
  min-width: 17px;
  height: 17px;
  border-color: #fff;
  background: var(--wz-red);
  font-size: 9px;
  line-height: 13px;
}

body.app-wechat .stack {
  gap: 11px;
}

body.app-wechat .page-heading h1 {
  color: var(--wz-ink);
  font-size: 20px;
  font-weight: 780;
}

body.app-wechat .page-heading p {
  color: var(--wz-muted);
  font-size: 11px;
}

body.app-wechat .section-block {
  gap: 8px;
}

body.app-wechat .section-heading {
  align-items: center;
}

body.app-wechat .section-heading h2,
body.app-wechat .section-heading h3 {
  color: var(--wz-ink);
  font-size: 16px;
  font-weight: 760;
}

body.app-wechat .section-heading span {
  color: var(--wz-muted);
  font-size: 10px;
}

body.app-wechat .primary-button,
body.app-wechat .text-button {
  border-radius: 7px;
  color: #fff;
  background: var(--wz-blue);
  box-shadow: none;
}

body.app-wechat .primary-button:active,
body.app-wechat .text-button:active {
  background: var(--wz-blue-dark);
}

body.app-wechat .secondary-button {
  border: 1px solid #cfd8e8;
  border-radius: 7px;
  color: #415067;
  background: #fff;
}

body.app-wechat .text-button.secondary {
  border-color: var(--wz-line);
  color: var(--wz-blue);
  background: #fff;
}

body.app-wechat .profile-group,
body.app-wechat .detail-section,
body.app-wechat .section-block {
  border-radius: 8px;
}

body.app-wechat .profile-group {
  border-color: var(--wz-line);
  box-shadow: 0 4px 18px rgba(41, 62, 102, 0.035);
}

body.app-wechat .profile-row {
  min-height: 54px;
  padding: 11px 13px;
}

body.app-wechat .profile-row-icon {
  color: var(--wz-blue);
  background: var(--wz-blue-soft);
}

body.app-wechat .status-pill,
body.app-wechat .soft-pill {
  border-radius: 999px;
  padding: 3px 8px;
}

body.app-wechat .filter-chip {
  min-height: 32px;
  padding: 5px 11px;
  border-color: transparent;
  border-radius: 999px;
  color: #5b6679;
  background: #eef2f8;
  font-size: 11px;
}

body.app-wechat .filter-chip.active {
  color: var(--wz-blue);
  border-color: #bfd0ff;
  background: var(--wz-blue-soft);
}

body.app-wechat .search-field {
  min-height: 42px;
  border-color: #e0e6ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

body.app-wechat .search-field input {
  height: 42px;
  font-size: 12px;
}

/* Home */
.wz-home {
  display: grid;
  min-width: 0;
  gap: 11px;
}

.wz-store-head {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(226, 232, 242, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--wz-shadow);
}

.wz-store-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.wz-store-avatar {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff8c45, #ee5d18);
  font-size: 20px;
  font-weight: 900;
}

.wz-store-avatar::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--wz-green);
  content: "";
}

.wz-store-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.wz-store-copy strong {
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 16px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-store-copy small {
  overflow: hidden;
  color: var(--wz-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-store-status {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--wz-green);
  background: var(--wz-green-soft);
  font-size: 10px;
  font-weight: 700;
}

.wz-store-metrics {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--wz-line);
}

.wz-store-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--wz-muted);
  font-size: 10px;
}

.wz-store-metrics strong {
  color: var(--wz-ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.wz-announcement {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #f5dfbd;
  border-radius: 7px;
  color: #8c5b12;
  background: #fff8ec;
  font-size: 11px;
}

.wz-announcement svg {
  width: 16px;
  height: 16px;
  color: #e38b0b;
}

.wz-announcement span {
  overflow: hidden;
  min-width: 0;
  flex: 1 1 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-period {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  padding: 1px 0 2px;
  scrollbar-width: none;
}

.wz-period::-webkit-scrollbar {
  display: none;
}

.wz-period button {
  position: relative;
  min-height: 34px;
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 6px;
  color: #5f6b7e;
  background: transparent;
  font-size: 11px;
}

.wz-period button.active {
  color: var(--wz-blue);
  background: transparent;
  font-weight: 750;
}

.wz-period button.active::after {
  position: absolute;
  right: 18px;
  bottom: 1px;
  left: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--wz-blue);
  content: "";
}

.wz-funnel-card {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 10px;
  overflow: hidden;
  padding: 13px;
  border: 1px solid rgba(217, 227, 247, 0.95);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 18%, rgba(90, 137, 255, 0.14), transparent 34%),
    linear-gradient(155deg, #f7faff 0%, #eef4ff 56%, #ffffff 100%);
}

.wz-funnel-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wz-funnel-head > div {
  display: grid;
  gap: 2px;
}

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

.wz-funnel-head small {
  color: var(--wz-muted);
  font-size: 10px;
}

.wz-funnel-conversion {
  color: var(--wz-blue);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.wz-funnel-stages {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 3px 0 1px;
}

.wz-funnel-stage {
  display: flex;
  width: var(--stage-width, 100%);
  min-width: 128px;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 3px;
  color: #fff;
  background: var(--stage-color, #7ea6ff);
  font-size: 10px;
  transition: width 180ms ease;
}

.wz-funnel-stage strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.wz-funnel-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(206, 219, 243, 0.9);
}

.wz-funnel-foot div {
  display: grid;
  gap: 1px;
}

.wz-funnel-foot span {
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-funnel-foot strong {
  color: var(--wz-ink);
  font-size: 14px;
}

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

.wz-work-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 82px;
  align-content: space-between;
  gap: 7px;
  overflow: hidden;
  padding: 12px 10px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  text-align: left;
  box-shadow: 0 7px 18px rgba(54, 85, 140, 0.09);
}

.wz-work-card::after {
  position: absolute;
  right: -8px;
  bottom: -11px;
  width: 58px;
  height: 58px;
  border: 9px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.wz-work-card.amber {
  background: linear-gradient(145deg, #ffc44f, #f0a51b);
}

.wz-work-card.red {
  background: linear-gradient(145deg, #ff7d82, #ef5358);
}

.wz-work-card.blue {
  background: linear-gradient(145deg, #6d8cff, #526fff);
}

.wz-work-card.green {
  background: linear-gradient(145deg, #47c793, #1aa36c);
}

.wz-work-card small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-work-card strong {
  overflow: hidden;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-work-card span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.wz-secondary-card {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px 9px;
  border: 1px solid var(--wz-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.wz-secondary-card span {
  overflow: hidden;
  color: var(--wz-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.wz-service-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--wz-shadow);
}

.wz-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wz-service-head strong {
  font-size: 15px;
}

.wz-service-head span {
  color: var(--wz-blue);
  font-size: 10px;
}

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

.wz-service-metric {
  display: grid;
  gap: 2px;
  padding: 9px;
  border-radius: 6px;
  background: #f7f9fd;
}

.wz-service-metric span {
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-service-metric strong {
  color: var(--wz-ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.wz-active-orders {
  display: grid;
  gap: 8px;
}

.wz-active-order {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.wz-active-order .wz-order-thumb {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.wz-active-order-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.wz-active-order-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-active-order-copy small {
  overflow: hidden;
  color: var(--wz-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-active-order-side {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.wz-active-order-side strong {
  color: var(--wz-ink);
  font-size: 11px;
}

.wz-gate-strip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #dce7e2;
  border-radius: 6px;
  color: #28745b;
  background: #eefaf5;
  font-size: 10px;
}

.wz-gate-strip.warning {
  border-color: #f1dfbc;
  color: #8c5b12;
  background: #fff8eb;
}

.wz-gate-strip svg {
  width: 14px;
  height: 14px;
}

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

.wz-floating-actions {
  position: static;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 2px;
  padding-bottom: 7px;
}

.wz-floating-actions button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 7px;
  color: #fff;
  background: rgba(47, 107, 255, 0.94);
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
}

.wz-floating-actions button.secondary {
  color: #475467;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--wz-line);
  box-shadow: none;
}

.wz-floating-actions svg {
  width: 16px;
  height: 16px;
}

/* Order list */
.wz-order-page {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.wz-order-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wz-order-search-row .search-field {
  flex: 1 1 auto;
}

.wz-order-status {
  display: flex;
  min-width: 0;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--wz-line);
  scrollbar-width: none;
}

.wz-order-status::-webkit-scrollbar {
  display: none;
}

.wz-order-status button {
  position: relative;
  min-height: 46px;
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #5f6b7e;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}

.wz-order-status button.active {
  color: var(--wz-blue);
  font-weight: 760;
}

.wz-order-status button.active::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--wz-blue);
  content: "";
}

.wz-order-status em {
  display: inline-flex;
  min-width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 999px;
  color: var(--wz-blue);
  background: var(--wz-blue-soft);
  font-size: 9px;
  font-style: normal;
}

.wz-order-substatus {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.wz-order-substatus::-webkit-scrollbar {
  display: none;
}

.wz-order-substatus button {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5c687b;
  background: #edf1f7;
  font-size: 10px;
}

.wz-order-substatus button.active {
  color: var(--wz-blue);
  border-color: #c4d3ff;
  background: var(--wz-blue-soft);
}

.wz-order-list {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding-bottom: 6px;
}

.wz-order-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(41, 62, 102, 0.045);
}

.wz-order-card-top {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  color: var(--wz-muted);
  background: #fafbfe;
  font-size: 9px;
}

.wz-order-card-top strong {
  color: var(--wz-orange);
  font-size: 10px;
}

.wz-order-body {
  display: grid;
  min-width: 0;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px;
  border-bottom: 1px solid #f0f3f8;
}

.wz-order-thumb {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: #7f8ca1;
  background: linear-gradient(145deg, #f2f6fc, #e8eef8);
}

.wz-order-thumb svg {
  width: 31px;
  height: 31px;
}

.wz-order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wz-order-copy {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
}

.wz-order-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wz-order-spec {
  overflow: hidden;
  color: var(--wz-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-order-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wz-order-tag {
  padding: 2px 6px;
  border: 1px solid #f0d5b9;
  border-radius: 3px;
  color: #b56616;
  background: #fffaf3;
  font-size: 10px;
}

.wz-order-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 5px;
}

.wz-order-side small {
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-customer-strip {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 9px 11px 0;
  padding: 9px 10px;
  border-radius: 6px;
  background: #f7f9fc;
}

.wz-customer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.wz-customer-row strong {
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-customer-row span {
  color: var(--wz-muted);
  font-size: 10px;
  white-space: nowrap;
}

.wz-risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wz-risk-tag {
  padding: 2px 6px;
  border: 1px solid #dfe5ef;
  border-radius: 3px;
  color: #788498;
  background: #fff;
  font-size: 10px;
}

.wz-risk-tag.pass {
  border-color: #bfe6d5;
  color: #17855b;
  background: #effaf5;
}

.wz-risk-tag.warn {
  border-color: #f1d9ad;
  color: #a46809;
  background: #fff8e9;
}

.wz-risk-tag.danger {
  border-color: #f1c1c3;
  color: #c7353a;
  background: #fff1f2;
}

.wz-order-alerts {
  display: grid;
  gap: 4px;
  padding: 9px 11px 0;
}

.wz-order-alert {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #b5740e;
  font-size: 9px;
  line-height: 1.45;
}

.wz-order-alert svg {
  width: 12px;
  height: 12px;
  margin-top: 1px;
}

.wz-order-alert.danger {
  color: #c7353a;
}

.wz-order-alert.info {
  color: #4873b8;
}

.wz-order-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px 11px 11px;
}

.wz-order-actions button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d7dfec;
  border-radius: 999px;
  color: #4e5d74;
  background: #fff;
  font-size: 10px;
}

.wz-order-actions button.primary {
  border-color: var(--wz-blue);
  color: var(--wz-blue);
  background: #fff;
  font-weight: 700;
}

/* Order detail sheet */
.wz-detail-hero {
  display: grid;
  min-width: 0;
  gap: 10px;
  overflow: hidden;
  padding: 15px;
  border: 1px solid #dbe6ff;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 16%, rgba(93, 137, 255, 0.18), transparent 30%),
    linear-gradient(155deg, #f2f7ff 0%, #eaf1ff 46%, #fff 100%);
}

.wz-detail-hero-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wz-detail-hero-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.wz-detail-hero-head small {
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-detail-hero-head strong {
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.wz-detail-hero-metric {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(211, 223, 247, 0.75);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.wz-detail-hero-metric span {
  color: var(--wz-muted);
  font-size: 10px;
}

.wz-detail-hero-metric strong {
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-detail-hero-metric:first-child strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
}

.wz-detail-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-detail-hero-foot strong {
  color: var(--wz-blue);
  font-size: 10px;
}

.wz-risk-panel {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
}

.wz-risk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wz-risk-panel-head strong {
  font-size: 12px;
}

.wz-risk-panel-head span {
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-risk-summary {
  padding: 8px 9px;
  border-left: 3px solid var(--wz-blue);
  border-radius: 0 4px 4px 0;
  color: #43516a;
  background: #f5f8ff;
  font-size: 10px;
  line-height: 1.55;
}

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

.wz-status-track span {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #9ba5b5;
  font-size: 10px;
  text-align: center;
}

.wz-status-track i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dbe1eb;
}

.wz-status-track span.done,
.wz-status-track span.current {
  color: var(--wz-blue);
}

.wz-status-track span.done i,
.wz-status-track span.current i {
  background: var(--wz-blue);
  box-shadow: 0 0 0 3px #eaf0ff;
}

.wz-axis-panel {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
}

.wz-axis-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wz-axis-head strong {
  color: var(--wz-ink);
  font-size: 12px;
}

.wz-axis-head span {
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-axis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 7px;
}

.wz-axis-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 62px;
  align-content: center;
  gap: 3px;
  overflow: hidden;
  padding: 9px 9px 9px 16px;
  border: 1px solid #e1e7f0;
  border-radius: 6px;
  background: #f8faff;
}

.wz-axis-card::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 7px;
  width: 3px;
  border-radius: 99px;
  background: #b7c2d2;
  content: "";
}

.wz-axis-card small {
  overflow: hidden;
  color: var(--wz-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-axis-card strong {
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-axis-card.green::before {
  background: #22a06b;
}

.wz-axis-card.blue::before {
  background: var(--wz-blue);
}

.wz-axis-card.amber::before {
  background: #e49a1f;
}

.wz-axis-card.red::before {
  background: #ef5b62;
}

.wz-blocker-panel {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #f0d7a8;
  border-radius: 8px;
  background: #fff9ed;
}

.wz-blocker-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wz-blocker-panel > header strong {
  color: #7f5312;
  font-size: 12px;
}

.wz-blocker-panel > header span {
  color: #a37634;
  font-size: 9px;
}

.wz-blocker-list {
  display: grid;
  gap: 6px;
}

.wz-blocker-item {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 6px;
  color: #75531e;
  font-size: 10px;
  line-height: 1.45;
}

.wz-blocker-item svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 1px;
  color: #d88b13;
}

.timeline-axis {
  width: fit-content;
  padding: 1px 6px;
  border-radius: 999px;
  color: #4265a5;
  background: #edf3ff;
  font-size: 10px;
  line-height: 1.5;
}

.timeline-reason {
  margin: 2px 0 0;
  color: #6b7483;
  font-size: 10px;
  line-height: 1.5;
}

.wz-action-error {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid #f0d7a8;
  border-radius: 8px;
  background: #fff9ed;
}

.wz-action-error > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wz-action-error > header > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.wz-action-error header svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.wz-action-error header strong {
  color: #704b13;
  font-size: 12px;
}

.wz-action-error header em {
  color: #9d7439;
  font-size: 9px;
  font-style: normal;
}

.wz-action-error p,
.wz-action-error small {
  margin: 0;
  color: #755a32;
  font-size: 10px;
  line-height: 1.55;
}

.wz-action-error small {
  color: #92764c;
}

.wz-action-error.permission {
  border-color: #edc7c9;
  background: #fff5f5;
}

.wz-action-error.permission header strong,
.wz-action-error.permission header svg {
  color: #b23c45;
}

.wz-action-error.validation {
  border-color: #d8dfeb;
  background: #f6f8fc;
}

.wz-action-error.validation header strong,
.wz-action-error.validation header svg {
  color: #435b82;
}

.wz-action-error.conflict {
  border-color: #efd19a;
  background: #fff8e9;
}

.wz-action-error.system {
  border-color: #d8dfeb;
  background: #f7f9fc;
}

.wz-action-error .action-buttons {
  margin-top: 2px;
}

.wz-action-impact {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 10px;
  border: 1px solid #ead7bd;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.wz-action-impact > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wz-action-impact > header strong {
  color: #6d4a1f;
  font-size: 11px;
}

.wz-action-impact > header span {
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-action-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.wz-action-impact-grid > div {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid rgba(229, 216, 194, 0.8);
  border-radius: 5px;
  background: #fff;
}

.wz-action-impact-grid > div:first-child {
  grid-column: 1 / -1;
}

.wz-action-impact-grid small {
  color: var(--wz-muted);
  font-size: 10px;
}

.wz-action-impact-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--wz-ink);
  font-size: 10px;
  line-height: 1.45;
}

.wz-action-impact ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wz-action-impact li {
  position: relative;
  padding-left: 10px;
  color: #6f5a3d;
  font-size: 9px;
  line-height: 1.45;
}

.wz-action-impact li::before {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c08b43;
  content: "";
}

.wz-action-ack {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 7px;
  color: #6a5a45;
  font-size: 10px;
  line-height: 1.5;
}

.wz-action-ack input {
  width: 17px;
  height: 17px;
  flex: none;
  margin: 0;
  accent-color: var(--wz-blue);
}

.wz-charge-summary {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--wz-line);
  background: #f8faff;
}

.wz-charge-summary span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #53627a;
  background: #fff;
  font-size: 10px;
  line-height: 1.4;
}

.wz-charge-table {
  display: grid;
  min-width: 0;
}

.wz-charge-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1.35fr) 68px 58px 62px;
  gap: 5px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid #edf0f5;
  color: #4d596d;
  font-size: 9px;
}

.wz-charge-row:last-child {
  border-bottom: 0;
}

.wz-charge-row.head {
  color: var(--wz-muted);
  background: #fafbfd;
  font-size: 10px;
}

.wz-charge-row strong {
  display: block;
  color: var(--wz-ink);
  font-size: 10px;
}

.wz-charge-row small {
  display: block;
  margin-top: 1px;
  color: var(--wz-muted);
  font-size: 10px;
}

.wz-charge-row .status-pill {
  width: fit-content;
  max-width: 100%;
  padding: 2px 5px;
  font-size: 10px;
}

.wz-commercial-panel {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 10px;
}

.wz-commercial-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.wz-commercial-actions .secondary-button {
  min-width: 0;
  min-height: 38px;
  padding: 7px 5px;
  font-size: 9px;
}

.wz-commercial-actions .secondary-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-commercial-form {
  display: grid;
  min-width: 0;
  gap: 8px;
}

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

.wz-quote-grid > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px;
  border: 1px solid #dfe6f2;
  border-radius: 6px;
  background: #f8faff;
}

.wz-quote-grid small {
  color: var(--wz-muted);
  font-size: 10px;
}

.wz-quote-grid strong {
  overflow-wrap: anywhere;
  color: var(--wz-ink);
  font-size: 11px;
}

.wz-relation-list {
  display: grid;
  gap: 6px;
}

.wz-relation-node {
  display: grid;
  min-width: 0;
  border: 1px solid #e0e6f0;
  border-radius: 6px;
  color: inherit;
  background: #fff;
  overflow: hidden;
}

.wz-relation-node.current {
  border-color: #b9cdf8;
  background: #f4f7ff;
}

.wz-relation-main {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.wz-relation-main > span:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.wz-relation-node small {
  color: var(--wz-muted);
  font-size: 10px;
}

.wz-relation-node strong {
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-relation-node-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 9px 8px;
}

.wz-relation-cancel {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid #f0c5c5;
  border-radius: 5px;
  color: #b42318;
  background: #fff6f5;
  font-size: 9px;
}

.wz-relation-cancel svg {
  width: 12px;
  height: 12px;
}

.wz-relation-confirm {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #f0c5c5;
  border-radius: 6px;
  background: #fff9f8;
}

.wz-relation-confirm strong {
  color: var(--wz-ink);
  font-size: 11px;
}

.wz-relation-confirm p {
  margin: 0;
  color: #7a3d38;
  font-size: 9px;
  line-height: 1.55;
}

.wz-relation-confirm small {
  color: var(--wz-muted);
  font-size: 10px;
}

/* Profile */
.wz-profile-page {
  display: grid;
  min-width: 0;
  gap: 11px;
}

.wz-profile-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(222, 230, 243, 0.9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 135, 62, 0.13), transparent 30%),
    linear-gradient(150deg, #f5f8ff 0%, #fff 54%, #fff7f1 100%);
  box-shadow: var(--wz-shadow);
}

.wz-profile-avatar {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff8d48, #ef5f18);
  font-size: 24px;
  font-weight: 900;
}

.wz-profile-avatar::after {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--wz-green);
  content: "正常";
  font-size: 10px;
  font-weight: 700;
}

.wz-profile-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 3px;
}

.wz-profile-copy strong {
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 18px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-profile-copy span,
.wz-profile-copy small {
  overflow: hidden;
  color: var(--wz-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-score-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--wz-shadow);
}

.wz-score-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wz-score-head > div {
  display: grid;
  gap: 2px;
}

.wz-score-head small {
  color: var(--wz-muted);
  font-size: 10px;
}

.wz-score-head strong {
  color: var(--wz-blue);
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wz-score-head button {
  padding: 5px 0;
  color: var(--wz-blue);
  background: transparent;
  font-size: 10px;
}

.wz-radar-wrap {
  position: relative;
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 8px 38px;
}

.wz-radar {
  position: relative;
  width: 142px;
  height: 124px;
}

.wz-radar-ring {
  position: absolute;
  border: 1px solid #dce6fa;
  background: rgba(237, 243, 255, 0.32);
  clip-path: polygon(50% 0, 98% 25%, 98% 75%, 50% 100%, 2% 75%, 2% 25%);
}

.wz-radar-ring.r1 {
  inset: 0;
}

.wz-radar-ring.r2 {
  inset: 18px 20px;
}

.wz-radar-ring.r3 {
  inset: 36px 40px;
}

.wz-radar-shape {
  position: absolute;
  inset: 18px 20px;
  background: linear-gradient(145deg, rgba(76, 132, 255, 0.64), rgba(76, 132, 255, 0.08));
  clip-path: polygon(50% 0, 92% 42%, 64% 84%, 38% 70%, 10% 84%, 32% 34%);
}

.wz-radar-label {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--wz-muted);
  font-size: 9px;
  text-align: center;
}

.wz-radar-label strong {
  padding: 1px 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--wz-blue);
  font-size: 10px;
}

.wz-radar-label.top {
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
}

.wz-radar-label.left {
  left: 3px;
  bottom: 6px;
}

.wz-radar-label.right {
  right: 3px;
  bottom: 6px;
}

.wz-account-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--wz-shadow);
}

.wz-account-card > button {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 14px;
  background: #fff;
  text-align: left;
}

.wz-account-card > button + button {
  border-left: 1px solid var(--wz-line);
}

.wz-account-card small {
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-account-card strong {
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-account-card span {
  color: var(--wz-blue);
  font-size: 9px;
}

.wz-settings-group {
  overflow: hidden;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
}

.wz-settings-group h2 {
  margin: 0;
  padding: 11px 13px 7px;
  color: #536176;
  font-size: 11px;
  font-weight: 700;
}

.wz-settings-group .profile-row {
  border-top: 1px solid #f0f3f8;
}

/* Distribution */
.wz-distribution {
  display: grid;
  min-width: 0;
  gap: 11px;
}

.wz-distribution .distribution-hero {
  position: relative;
  display: grid;
  gap: 6px;
  overflow: hidden;
  padding: 17px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #6d86ff, #315bef);
  box-shadow: 0 12px 28px rgba(49, 91, 239, 0.2);
}

.wz-distribution .distribution-hero::after {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border: 16px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.wz-distribution .distribution-hero small,
.wz-distribution .distribution-hero span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.wz-distribution .distribution-hero strong {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.wz-distribution .distribution-hero button {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 3px;
  color: var(--wz-blue);
  border: 0;
  background: #fff;
}

.wz-dist-tabs {
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wz-dist-tabs::-webkit-scrollbar {
  display: none;
}

.wz-dist-tabs button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  color: #5c687b;
  background: #edf1f7;
  font-size: 10px;
}

.wz-dist-tabs button.active {
  color: var(--wz-blue);
  background: var(--wz-blue-soft);
}

.wz-share-list {
  display: grid;
  gap: 9px;
}

.wz-share-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(41, 62, 102, 0.035);
}

.wz-share-thumb {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 6px;
  color: var(--wz-blue);
  background: linear-gradient(145deg, #eef4ff, #e3ebff);
}

.wz-share-thumb svg {
  width: 29px;
  height: 29px;
}

.wz-share-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.wz-share-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wz-share-copy small {
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-share-foot {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wz-share-foot span {
  color: var(--wz-blue);
  font-size: 10px;
  font-weight: 700;
}

.wz-share-foot button {
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid #c7d4f7;
  border-radius: 999px;
  color: var(--wz-blue);
  background: #fff;
  font-size: 10px;
}

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

.wz-dist-tool {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.wz-dist-tool > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: var(--wz-blue);
  background: var(--wz-blue-soft);
}

.wz-dist-tool strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-dist-tool small {
  overflow: hidden;
  color: var(--wz-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Finance */
.wz-finance {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.wz-fin-hero {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d8e3ff;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(145deg, #5578ff, #315bef);
  box-shadow: 0 12px 30px rgba(49, 91, 239, 0.19);
}

.wz-fin-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wz-fin-hero-head span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.wz-fin-hero-head strong {
  color: #fff;
  font-size: 28px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.wz-fin-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.wz-fin-split div {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.11);
}

.wz-fin-split small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.wz-fin-split strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-fin-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
}

.wz-finance .segmented {
  display: flex;
  min-width: 0;
  gap: 2px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--wz-line);
  background: transparent;
}

.wz-finance .segment {
  position: relative;
  min-height: 42px;
  flex: 1 1 0;
  border-radius: 0;
  color: var(--wz-muted);
  background: transparent;
  font-size: 12px;
}

.wz-finance .segment.active {
  color: var(--wz-blue);
  background: transparent;
  font-weight: 760;
}

.wz-finance .segment.active::after {
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 2px;
  border-radius: 2px;
  background: var(--wz-blue);
  content: "";
}

.wz-finance .account-mini {
  border-radius: 7px;
  background: #fff;
}

.wz-finance .finance-totals {
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
}

.wz-settlement-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--wz-line);
  background: #fff;
}

.wz-settlement-card:last-child {
  border-bottom: 0;
}

.wz-settlement-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.wz-settlement-head strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wz-settlement-meta {
  display: grid;
  gap: 5px;
  padding: 8px;
  border-radius: 5px;
  color: var(--wz-muted);
  background: #f7f9fc;
  font-size: 9px;
}

body.app-wechat .sheet-backdrop {
  background: rgba(18, 29, 49, 0.47);
}

body.app-wechat .bottom-sheet {
  border-radius: 14px 14px 0 0;
  background: var(--wz-canvas);
}

body.app-wechat .bottom-sheet.full-screen-sheet {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
}

body.app-wechat .bottom-sheet.full-screen-sheet .sheet-grabber {
  display: none;
}

body.app-wechat .bottom-sheet.full-screen-sheet .sheet-header {
  padding-top: 13px;
  background: #fff;
}

body.app-wechat .sheet-grabber {
  background: #d4dbe7;
}

body.app-wechat .sheet-header {
  border-color: var(--wz-line);
}

body.app-wechat .sheet-header strong {
  font-size: 15px;
}

body.app-wechat .sheet-body {
  padding: 12px 12px calc(18px + env(safe-area-inset-bottom));
}

body.app-wechat .detail-section {
  border-color: var(--wz-line);
}

body.app-wechat .detail-section-title {
  border-color: var(--wz-line);
}

body.app-wechat .action-panel {
  border-color: #d6e2ff;
  background: #f2f6ff;
}

body.app-wechat .confirm-box p {
  color: #405577;
}

body.app-wechat .toast {
  border-color: #c9d8fb;
  color: #244aaf;
  background: #f1f5ff;
}

body.app-wechat .segmented {
  display: flex;
  gap: 2px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--wz-line);
  border-radius: 0;
  background: transparent;
}

body.app-wechat .segment {
  position: relative;
  min-height: 42px;
  flex: 1 1 0;
  border-radius: 0;
  color: var(--wz-muted);
  background: transparent;
  font-size: 12px;
}

body.app-wechat .segment.active {
  color: var(--wz-blue);
  background: transparent;
  font-weight: 760;
}

body.app-wechat .segment.active::after {
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 2px;
  border-radius: 2px;
  background: var(--wz-blue);
  content: "";
}

body.app-wechat .conversation-row {
  padding: 12px 13px;
  border-color: var(--wz-line);
  background: #fff;
}

body.app-wechat .conversation-row:active {
  background: #f7f9fd;
}

body.app-wechat .conversation-avatar {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 50%;
  color: var(--wz-blue);
  background: var(--wz-blue-soft);
}

body.app-wechat .conversation-badge {
  color: #fff;
  background: var(--wz-red);
}

body.app-wechat .chat-bubble {
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.55;
}

body.app-wechat .chat-bubble.in {
  border-color: var(--wz-line);
  color: var(--wz-ink);
  background: #fff;
}

body.app-wechat .chat-bubble.out {
  color: #fff;
  background: var(--wz-blue);
  box-shadow: 0 5px 14px rgba(47, 107, 255, 0.13);
}

body.app-wechat .chat-form input {
  border-color: var(--wz-line);
  border-radius: 8px;
}

body.app-wechat .score-board {
  color: var(--wz-ink);
  background:
    radial-gradient(circle at 88% 14%, rgba(88, 135, 255, 0.15), transparent 30%),
    linear-gradient(150deg, #f4f8ff, #eaf1ff 58%, #fff);
  border: 1px solid #dce6fa;
}

body.app-wechat .score-main small,
body.app-wechat .score-main span {
  color: var(--wz-muted);
  opacity: 1;
}

body.app-wechat .score-main strong {
  color: var(--wz-blue);
}

body.app-wechat .score-tile {
  color: var(--wz-ink);
  background: rgba(255, 255, 255, 0.86);
  border-color: #dfe8f8;
}

body.app-wechat .score-tile small,
body.app-wechat .score-tile span {
  color: var(--wz-muted);
}

body.app-wechat .withdraw-head {
  border-color: var(--wz-line);
  border-radius: 8px;
}

body.app-wechat .withdraw-available strong {
  color: var(--wz-blue);
}

body.app-wechat .quick-reply {
  background: #fff;
}

/* Notification center */
.wz-notification-center,
.wz-product-center {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.wz-notification-summary,
.wz-product-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 12px;
  border: 1px solid #dce6fa;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 14%, rgba(88, 135, 255, 0.14), transparent 30%),
    linear-gradient(150deg, #f4f8ff, #eaf1ff 58%, #fff);
}

.wz-notification-summary > div,
.wz-product-summary > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
}

.wz-notification-summary span,
.wz-product-summary small {
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-notification-summary strong,
.wz-product-summary strong {
  overflow: hidden;
  color: var(--wz-blue);
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-notification-section,
.wz-product-section {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.wz-notification-section > header,
.wz-product-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wz-notification-section > header strong,
.wz-product-section > header strong {
  color: var(--wz-ink);
  font-size: 13px;
}

.wz-notification-section > header span,
.wz-product-section > header span {
  color: var(--wz-muted);
  font-size: 9px;
}

.wz-notification-list {
  overflow: hidden;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
}

.wz-notification-item {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  text-align: left;
}

.wz-notification-item:last-child {
  border-bottom: 0;
}

.wz-notification-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.wz-notification-item strong {
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-notification-item small {
  overflow: hidden;
  color: var(--wz-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-notification-item > b {
  color: var(--wz-blue);
  font-size: 12px;
  white-space: nowrap;
}

.wz-notification-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 7px;
  color: var(--wz-blue);
  background: var(--wz-blue-soft);
}

.wz-notification-icon.warning {
  color: var(--wz-amber);
  background: var(--wz-amber-soft);
}

.wz-notification-icon.danger,
.wz-notification-icon.red {
  color: var(--wz-red);
  background: var(--wz-red-soft);
}

.wz-notification-icon.primary,
.wz-notification-icon.neutral {
  color: var(--wz-green);
  background: var(--wz-green-soft);
}

.wz-product-filter {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wz-product-toolbar {
  display: grid;
  min-width: 0;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.wz-product-toolbar .secondary-button {
  min-height: 42px;
  white-space: nowrap;
}

.wz-load-more {
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  border: 1px solid #d6e0ef;
  border-radius: 7px;
  color: var(--wz-blue);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.wz-load-more:disabled {
  color: var(--wz-muted);
  background: #f5f7fb;
}

body.app-wechat .secondary-button.danger {
  color: var(--wz-red);
  border-color: #f0c8ca;
  background: #fff6f6;
}

.wz-product-filter::-webkit-scrollbar {
  display: none;
}

.wz-product-filter button {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--wz-muted);
  background: #edf1f7;
  font-size: 10px;
}

.wz-product-filter button.active {
  color: var(--wz-blue);
  background: var(--wz-blue-soft);
}

.wz-product-grid {
  display: grid;
  gap: 8px;
}

.wz-product-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: #fff;
}

.wz-product-thumb {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 7px;
  color: var(--wz-blue);
  background: linear-gradient(145deg, #f1f5fd, #e7eefb);
}

.wz-product-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.wz-product-copy strong {
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-product-copy small {
  overflow: hidden;
  color: var(--wz-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-product-share {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #cbd8f7;
  border-radius: 50%;
  color: var(--wz-blue);
  background: #fff;
}

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

.wz-product-rule {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 9px;
  border-radius: 6px;
  color: #566579;
  background: #f6f8fc;
  font-size: 9px;
  line-height: 1.55;
}

.wz-product-rule svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--wz-blue);
}

.wz-product-real-list {
  display: grid;
  gap: 7px;
}

.wz-product-real-card {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  color: var(--wz-ink);
  background: #fff;
  text-align: left;
}

.wz-product-real-card:active {
  background: #f7f9fd;
}

.wz-product-real-card .wz-product-thumb {
  width: 52px;
  height: 52px;
  overflow: hidden;
  flex-basis: 52px;
}

.wz-product-real-card .wz-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wz-product-state {
  align-self: start;
}

.wz-product-state .status-pill {
  white-space: nowrap;
}

.wz-setting-switches {
  display: grid;
  gap: 7px;
}

.wz-setting-switches label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--wz-line);
  border-radius: 7px;
  background: #fff;
}

.wz-setting-switches input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--wz-blue);
}

.wz-setting-switches span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.wz-setting-switches strong {
  color: var(--wz-ink);
  font-size: 11px;
}

.wz-setting-switches small {
  color: var(--wz-muted);
  font-size: 9px;
  line-height: 1.45;
}

.wz-capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wz-capability-list span {
  padding: 5px 9px;
  border: 1px solid #d7e2fa;
  border-radius: 999px;
  color: #315bef;
  background: #f2f6ff;
  font-size: 9px;
  font-weight: 650;
}

.conversation-order-context {
  overflow: hidden;
  color: #315bef !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-order-context {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #dce6fa;
  border-radius: 7px;
  color: var(--wz-ink);
  background: #f4f8ff;
  text-align: left;
}

.chat-order-context span {
  display: grid;
  min-width: 0;
  gap: 2px;
  color: var(--wz-muted);
  font-size: 9px;
}

.chat-order-context strong {
  overflow: hidden;
  color: var(--wz-ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-order-context em {
  overflow: hidden;
  color: var(--wz-muted);
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-order-context > span:last-child {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  color: var(--wz-blue);
}

.chat-order-context svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 720px) {
  body.app-wechat {
    padding: 18px 0;
    background:
      radial-gradient(circle at 50% 12%, rgba(76, 126, 255, 0.12), transparent 32%),
      #e9eef6;
  }

  body.app-wechat .app-stage {
    height: calc(100dvh - 36px);
    min-height: 650px;
  }

  body.app-wechat .phone-shell {
    height: min(900px, calc(100dvh - 36px));
    border-color: #ccd7e9;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(33, 52, 91, 0.16);
  }
}

@media (max-width: 360px) {
  .wz-product-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .wz-product-toolbar .secondary-button {
    width: 100%;
  }

  body.app-wechat .app-main {
    padding-right: 9px;
    padding-left: 9px;
  }

  .wz-work-grid,
  .wz-secondary-grid {
    gap: 5px;
  }

  .wz-work-card {
    padding: 10px 8px;
  }

  .wz-order-body {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .wz-order-thumb {
    width: 62px;
    height: 62px;
  }

  .wz-order-side {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: space-between;
  }

  .wz-detail-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wz-detail-hero-metric:first-child {
    grid-column: 1 / -1;
  }

  .wz-detail-hero-metric strong {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .account-security-sheet .profile-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 7px;
  }

  .account-security-sheet .profile-row-label {
    flex: 1 1 100%;
  }

  .account-security-sheet .profile-row-label small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .account-security-sheet .profile-row-value {
    flex: 1 1 100%;
    padding-left: 39px;
    text-align: left;
  }

  .wz-charge-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
  }

  .wz-charge-row.head {
    display: none;
  }

  .wz-charge-row > span:nth-child(1) {
    display: none;
  }

  .wz-charge-row > span:nth-child(2) {
    grid-column: 1 / -1;
  }

  .wz-charge-row > span:nth-child(3) {
    color: var(--wz-ink);
    font-weight: 700;
  }

  .wz-charge-row > span:nth-child(5) {
    text-align: right;
  }
}

/* 2026-10-25 mobile operator readability pass */
body.app-wechat {
  --wz-blue: #2f54eb;
  --wz-blue-dark: #2449c9;
  --wz-blue-soft: #eef4ff;
  --wz-ink: #172033;
  --wz-muted: #707b8f;
  --wz-line: #e8edf6;
  --wz-canvas: #f6f7f8;
  --wz-shadow: 0 4px 16px rgba(44, 62, 80, 0.05);
}

body.app-wechat .icon-button,
body.app-wechat .sheet-close {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

body.app-wechat .wz-order-card {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--wz-shadow);
}

body.app-wechat .wz-order-card-top {
  min-height: 36px;
  padding: 8px 12px;
  color: #858b96;
  background: #fff8f2;
  font-size: 11px;
}

body.app-wechat .wz-order-card-top strong {
  font-size: 11px;
}

body.app-wechat .wz-order-body {
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
}

body.app-wechat .wz-order-thumb {
  width: 68px;
  height: 68px;
}

body.app-wechat .wz-order-copy > strong {
  font-size: 14px;
}

body.app-wechat .wz-order-spec,
body.app-wechat .wz-customer-row span {
  font-size: 11px;
}

body.app-wechat .wz-order-tag,
body.app-wechat .wz-risk-tag {
  font-size: 10px;
  line-height: 1.35;
}

body.app-wechat .wz-order-side small,
body.app-wechat .wz-order-alert,
body.app-wechat .wz-risk-summary,
body.app-wechat .wz-blocker-item,
body.app-wechat .timeline-reason {
  font-size: 11px;
}

body.app-wechat .wz-customer-row strong {
  font-size: 12px;
}

body.app-wechat .wz-order-substatus button {
  min-height: 44px;
  font-size: 11px;
}

body.app-wechat .wz-order-actions {
  flex-wrap: wrap;
}

body.app-wechat .wz-order-actions button {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 12px;
}

body.app-wechat .wz-fin-split strong {
  overflow: visible;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: clip;
  white-space: nowrap;
}

body.app-wechat .wz-axis-card small {
  font-size: 10px;
}

body.app-wechat .wz-axis-card strong {
  font-size: 13px;
}

body.app-wechat .wz-status-track {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
}

body.app-wechat .wz-status-track span {
  gap: 4px;
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 360px) {
  body.app-wechat .wz-order-body {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px;
  }

  body.app-wechat .wz-order-thumb {
    width: 60px;
    height: 60px;
  }

  body.app-wechat .wz-fin-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-wechat .wz-fin-split > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wz-funnel-stage {
    transition: none;
  }
}
