body.mobile-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #f8fbf9 0%, #f2f6f4 100%);
}

.mobile-page {
  max-width: 460px;
  margin: 0 auto;
  padding: 16px 12px 24px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

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

.mobile-card {
  background: #ffffff;
  border: 1px solid rgba(228, 233, 238, 0.95);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.mobile-hero {
  background: var(--primary);
  color: #fff;
}

.mobile-hero .eyebrow,
.mobile-hero .mobile-muted {
  color: rgba(255, 255, 255, 0.76);
}

.mobile-title {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mobile-subtitle {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.mobile-muted {
  font-size: 12px;
  color: var(--text-muted);
}

.mobile-amount {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.mobile-grid {
  display: grid;
  gap: 12px;
}

.mobile-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.mobile-stat {
  padding: 12px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.mobile-stat.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.mobile-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.mobile-stat-label {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}

.mobile-qr {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.mobile-center {
  text-align: center;
}

.mobile-upload-input {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: var(--surface-alt);
}

.mobile-task-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 18px rgba(31, 35, 41, 0.05);
  text-decoration: none;
}

.mobile-task-main {
  min-width: 0;
}

.mobile-task-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-task-amount {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.mobile-task-time {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.mobile-task-side {
  text-align: right;
}

.mobile-arrow {
  margin-top: 6px;
  font-size: 18px;
  color: var(--text-muted);
}

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

.mobile-list.hidden {
  display: none !important;
}

.mobile-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  max-width: calc(100vw - 32px);
  padding: 8px 16px;
  border-radius: 4px;
  background: rgba(19, 34, 56, 0.9);
  color: #fff;
  font-size: 13px;
  z-index: 99;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.mobile-overlay-box {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
}

.mobile-success-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 28px;
  font-weight: 700;
}

.mobile-pay-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.mobile-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mobile-pay-btn:active {
  opacity: 0.8;
}

.mobile-pay-btn.wechat {
  background: #07c160;
  color: #fff;
}

.mobile-pay-btn.alipay {
  background: #1677ff;
  color: #fff;
}

.mobile-pay-btn.unionpay {
  background: #eb0029;
  color: #fff;
}

.mobile-pay-btn .icon {
  font-size: 18px;
}

.mobile-pay-tip {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.mobile-card.mobile-hero {
  background: linear-gradient(135deg, #14c96b 0%, #07c160 100%);
}

#mw-merchant-list,
#mw-customer-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  align-items: center !important;
}
#mw-merchant-list label,
#mw-customer-list label {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
  user-select: none;
}
#mw-merchant-list label:hover,
#mw-customer-list label:hover {
  border-color: var(--primary) !important;
  background: var(--primary-soft) !important;
}
#mw-customer-fields > div:last-child {
  border-bottom: none !important;
}
