:root {
  --primary: #f45d5c;
  --primary-dark: #e93d3d;
  --bg: #f5f5f5;
  --card: #fff;
  --text: #333;
  --muted: #888;
  --border: #eee;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: PingFang SC, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #f7f7f8;
  -webkit-tap-highlight-color: transparent;
}

body {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

#app {
  min-height: calc(100vh - 56px - var(--safe-bottom));
  padding-bottom: 8px;
}

.has-tabbar #app {
  min-height: calc(100vh - 56px - var(--safe-bottom));
  padding-bottom: 64px;
}

.hidden { display: none !important; }

/* Tab bar */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(52px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  z-index: 100;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #999;
  font-size: 11px;
  gap: 1px;
  padding-top: 4px;
}

.tab-item.active { color: var(--primary); }
.tab-icon { font-size: 20px; line-height: 1; }
.tab-svg {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.tab-item.active .tab-svg {
  stroke-width: 2.2;
}

#page-dynamic.hidden,
#page-home.hidden {
  display: none;
}

/* Header */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-header h1 {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
}

.btn-back {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-header-refresh {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-header-refresh:disabled {
  opacity: 0.6;
  cursor: default;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-header-link {
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  text-decoration: none;
  white-space: nowrap;
}

.loot-history-tip {
  margin: 12px 16px 0;
  font-size: 12px;
  color: #888;
}

/* Cards & lists */
.card {
  background: var(--card);
  border-radius: 8px;
  margin: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.list-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.list-item:active { background: #fafafa; }

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
}

.item-body { flex: 1; min-width: 0; }
.item-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta { color: var(--muted); font-size: 12px; line-height: 1.6; }
.price { color: var(--primary); font-weight: 600; font-size: 16px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 22px;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

.form-input:focus { border-color: var(--primary); }

.login-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--primary) 0%, #fff 45%);
  padding: 48px 24px 24px;
}

.has-tabbar .login-page {
  min-height: calc(100vh - 52px - var(--safe-bottom));
  padding-bottom: 16px;
}

.login-logo {
  text-align: center;
  color: #fff;
  margin-bottom: 32px;
}

.login-logo h2 { font-size: 28px; margin-bottom: 8px; }

.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.auth-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.auth-link:active {
  opacity: 0.75;
}

/* Banner */
.banner-wrap {
  margin: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  display: block;
  aspect-ratio: 2/1;
  object-fit: cover;
  background: #eee;
}

/* Tabs inline */
.inline-tabs {
  display: flex;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.inline-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.inline-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* Status badge */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  background: #f0f0f0;
  color: var(--muted);
}

.badge-warn { background: #fff3e0; color: #e65100; }
.badge-ok { background: #e8f5e9; color: #2e7d32; }
.badge-processing { background: #e3f2fd; color: #1565c0; }

.subarea-status { margin-top: 6px; }
.subarea-time { margin-top: 6px; font-size: 12px; color: #888; }
.subarea-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
}
.countdown-label { color: #666; font-weight: 600; }
.countdown-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 700;
  color: #e65100;
  letter-spacing: 1px;
}
.subarea-closed {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #999;
}
.subarea-banner { margin: 12px; padding: 14px 16px; }
.loot-session-strip { margin: 10px 12px 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.loot-session-strip .subarea-status { display: flex; align-items: center; gap: 8px; margin: 0; }
.loot-session-strip .subarea-time { margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loot-session-strip .subarea-countdown { margin: 0 0 0 auto; white-space: nowrap; }
.loot-privilege-collapse { margin: 8px 12px 0; border: 1px solid var(--border); border-radius: 8px; background: #fff; overflow: hidden; }
.loot-privilege-collapse summary { padding: 9px 12px; cursor: pointer; color: #555; font-weight: 600; list-style: none; }
.loot-privilege-collapse summary::-webkit-details-marker { display: none; }
.loot-privilege-collapse summary::after { float: right; content: '展开'; color: var(--primary); font-size: 12px; font-weight: 400; }
.loot-privilege-collapse[open] summary::after { content: '收起'; }
.loot-privilege-collapse .member-privilege-card { margin: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.loot-toolbar { display: flex; align-items: center; gap: 8px; margin: 12px 12px 8px; }
.loot-product-count { flex: 1; color: var(--muted); font-size: 12px; }
.loot-settle-link { border: 0; padding: 7px 4px; color: #1677ff; background: transparent; cursor: pointer; white-space: nowrap; }
.loot-toolbar .loot-sort-row { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; color: var(--muted); white-space: nowrap; }
.loot-toolbar .loot-sort-row select { min-width: 132px; }
@media (max-width: 380px) { .loot-session-strip .subarea-time { display: none; } .loot-toolbar { gap: 3px; } .loot-settle-link { padding-inline: 2px; } .loot-toolbar .loot-sort-row select { min-width: 122px; } }
.list-item.is-disabled { opacity: 0.72; cursor: not-allowed; }
.list-item.is-sold .thumb { opacity: 0.55; }
.list-item.is-sold .btn-buy { background: #ccc; border-color: #ccc; }
.list-item.loot-item { cursor: pointer; }
.btn-buy:disabled { opacity: 0.5; cursor: not-allowed; }

.bill-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 12px 0;
}
.bill-tab {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}
.bill-tab.active {
  background: #fff5f5;
  border-color: #f45d5c;
  color: #f45d5c;
  font-weight: 600;
}
.my-orders-page .bill-tabs {
  justify-content: center;
  gap: 6px;
}
.my-orders-page .bill-tab {
  flex: 0 1 68px;
  padding: 8px 6px;
  border-radius: 7px;
  font-size: 13px;
}
.bill-summary {
  margin: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bill-summary-label { color: #666; font-size: 14px; }
.bill-summary-value { font-size: 22px; font-weight: 700; color: #f45d5c; }
.section-title {
  margin: 16px 12px 8px;
  font-size: 13px;
  color: #999;
  font-weight: 600;
}
.link-card {
  margin: 12px;
  padding: 14px 16px;
  color: #1677ff;
  font-size: 14px;
  cursor: pointer;
}
.pay-item { cursor: pointer; position: relative; }
.pay-item-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 20px;
}
.muted { color: #999; font-size: 12px; }
.pay-detail-card .pay-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}
.pay-detail-card .pay-detail-row:last-child { border-bottom: none; }
.pay-method { margin-top: 12px; text-align: center; }
.pay-method-empty { padding: 12px 0; text-align: center; font-size: 13px; }
.pay-method-title { margin-bottom: 8px; color: #666; font-size: 13px; }
.pay-qr { max-width: 220px; width: 100%; border-radius: 8px; }
.btn-save-pay-image { display: block; margin: 10px auto 0; min-width: 132px; }
.pay-voucher { max-width: 100%; border-radius: 8px; }
.pay-action-box { padding: 16px 12px 24px; }

/* Warehouse grid */
.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
  background: var(--bg);
}

.warehouse-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.warehouse-card:active {
  opacity: 0.92;
}

.warehouse-card-img {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 6px;
}

.warehouse-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.warehouse-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 9px 0 2px;
}

.warehouse-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warehouse-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
}

.warehouse-card-price {
  min-width: 0;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.warehouse-card-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
}

.warehouse-card-status.is-pending { color: #f5a623; }
.warehouse-card-status.is-listed { color: #2e7d32; }
.warehouse-card-status.is-disabled { color: #e65100; }
.warehouse-orders-list { padding: 12px; background: var(--bg); }

/* Empty */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}

/* User page */
.user-header {
  background: var(--primary);
  color: #fff;
  padding: 24px 16px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  object-fit: cover;
}

.user-name { font-size: 18px; font-weight: 600; }
.user-name-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.user-name-edit > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-name-edit-icon { flex-shrink: 0; color: var(--primary); font-size: 15px; }
.user-mobile { font-size: 13px; opacity: .85; margin-top: 4px; }

.money-card {
  margin: -16px 12px 12px;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  text-align: center;
}

.money-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

/* Detail */
.detail-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.detail-info { padding: 16px; background: #fff; }
.detail-info h2 { font-size: 18px; margin-bottom: 12px; }
.goods-detail-card { margin-top: 12px; }
.goods-rich-content {
  padding: 12px 16px 16px;
  line-height: 1.7;
  font-size: 14px;
  color: #333;
  word-break: break-word;
}
.goods-rich-content img { max-width: 100%; height: auto; display: block; margin: 10px 0; border-radius: 6px; }
.goods-rich-content p { margin: 0 0 10px; }

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.info-row span:first-child { color: var(--muted); }

.action-bar {
  padding: 16px;
  background: #fff;
  position: sticky;
  bottom: 0;
}

/* Coupon select */
.coupon-list { margin-top: 12px; }
.coupon-item {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.coupon-item.selected {
  border-color: var(--primary);
  background: #fff5f5;
}

.grounding-tip {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  color: #999;
}

.grounding-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.grounding-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.grounding-card-body {
  flex: 1;
  min-width: 0;
}

.grounding-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.grounding-card-price {
  font-size: 18px;
  font-weight: 700;
}

.grounding-detail {
  margin-top: 0;
}

.grounding-coupon-row {
  align-items: center;
  width: 100%;
  border: none;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.grounding-coupon-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 14px;
}

.grounding-coupon-arrow {
  color: #bbb;
  font-size: 18px;
  line-height: 1;
}

.grounding-balance-hint {
  padding-top: 0;
  margin-top: -8px;
  border-bottom: none;
}

.grounding-balance-hint .muted {
  font-size: 12px;
  color: #999;
}

.grounding-coupon-select {
  flex: 1;
  max-width: 62%;
  border: none;
  background: transparent;
  text-align: right;
  font-size: 14px;
  color: #666;
}

.grounding-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.grounding-sheet.hidden {
  display: none;
}

.grounding-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.grounding-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 70vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.grounding-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.grounding-sheet-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.grounding-sheet-body {
  padding: 12px 16px 24px;
  overflow-y: auto;
}

.grounding-coupon-option {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.grounding-coupon-option-title {
  display: block;
  font-size: 15px;
  color: #333;
}

.grounding-coupon-option-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}

.grounding-notice {
  margin: 12px 16px;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #888;
}

.grounding-notice strong {
  color: #e53935;
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.2s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .switch-slider {
  background: var(--primary);
}

.switch input:checked + .switch-slider:before {
  transform: translateX(20px);
}

.grounding-balance-row {
  align-items: center;
}

.grounding-discount-row.hidden {
  display: none;
}

.grounding-discount-amount {
  color: #43a047;
  font-weight: 600;
}

.grounding-pay-method {
  margin: 12px 16px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.grounding-pay-method-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.grounding-pay-method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grounding-pay-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8f8f8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.grounding-pay-item input[type="radio"] {
  margin: 0;
  accent-color: var(--primary);
}

.grounding-pay-icon {
  font-size: 18px;
}

.grounding-pay-name {
  flex: 1;
}

/* Signing */
.signing-gate { margin-top: 0; }
.signing-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.signing-gate-action { margin-top: 16px; }
.signing-status-card { margin-top: 0; }
.signing-status-line { margin-bottom: 8px; }
.signing-reject-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff3e0;
  color: #e65100;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.signing-image-wrap { margin-top: 12px; text-align: center; }
.signing-image-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.signing-preview {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  object-fit: contain;
  background: #f5f5f5;
}
.signing-preview-sm {
  max-height: 120px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.signing-field-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.signing-prev-sign {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.signature-pad-wrap {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  touch-action: none;
}
.signature-canvas {
  display: block;
  width: 100%;
  touch-action: none;
  cursor: crosshair;
}
.signature-pad-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 15px;
  pointer-events: none;
}
.signature-pad-placeholder.hidden {
  display: none;
}
.signature-pad-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}
.btn-ghost {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #e8e8e8;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}
.image-upload-box {
  border: 1px dashed #ddd;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-upload-placeholder {
  color: var(--muted);
  font-size: 14px;
}
.menu-card { padding: 0; overflow: hidden; }
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #fafafa; }
.menu-item-title { font-size: 15px; font-weight: 500; }
.menu-item-extra {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-arrow { color: #ccc; font-size: 18px; line-height: 1; }
.menu-hint { padding: 0 16px 12px; margin-top: 0; }

/* User page (new layout) */
.user-page { padding-bottom: 16px; background: #f5f6f8; min-height: 100vh; }
.user-top {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 16px; background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
}
.user-top-info { flex: 1; min-width: 0; }
.dialog-open { overflow: hidden; }
.profile-dialog {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.profile-dialog.hidden { display: none; }
.profile-dialog-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(0, 0, 0, .45);
}
.profile-dialog-panel {
  position: relative;
  width: min(100%, 360px);
  padding: 22px 18px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .2);
}
.profile-dialog-title { margin-bottom: 16px; font-size: 18px; font-weight: 600; text-align: center; }
.profile-dialog-help { margin-top: 7px; color: var(--muted); font-size: 12px; }
.profile-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.profile-dialog-actions .btn { width: 100%; }
.user-level-badge {
  flex-shrink: 0;
  max-width: 42%;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4f8cff);
  box-shadow: 0 2px 8px rgba(47, 111, 235, 0.25);
}
.user-level-badge.is-default {
  color: #666;
  background: #eef1f5;
  box-shadow: none;
}
.member-privilege-card {
  margin: 0 12px 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.member-privilege-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.member-privilege-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.member-privilege-level {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: #eef4ff;
}
.member-privilege-list {
  margin: 0;
  padding-left: 18px;
  color: #555;
  font-size: 13px;
  line-height: 1.7;
}
.user-section { margin: 12px; background: #fff; border-radius: 12px; padding: 14px 12px; }
.user-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.user-link { color: #999; font-size: 12px; text-decoration: none; }
.user-order-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.user-order-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #333; font-size: 12px; }
.user-order-icon-wrap { position: relative; display: inline-flex; }
.user-order-icon { font-size: 22px; }
.user-order-badge {
  position: absolute; top: -4px; right: -10px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #f44336; color: #fff;
  font-size: 10px; line-height: 16px; text-align: center;
  box-sizing: border-box;
}
.user-wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 12px 12px; }
.user-wallet-card { border-radius: 12px; padding: 16px 14px; color: #333; text-decoration: none; }
.user-wallet-balance { background: linear-gradient(135deg, #fff7e8, #ffe9c7); }
.user-wallet-coupon { background: linear-gradient(135deg, #eef6ff, #dbeafe); }
.user-wallet-value { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.user-wallet-label { font-size: 12px; color: #666; }
.user-menu-card { margin: 0 12px 12px; background: #fff; border-radius: 12px; overflow: hidden; }
.user-menu-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid #f2f2f2; }
.user-menu-item:last-child { border-bottom: none; }
.user-menu-item.is-disabled { opacity: .45; pointer-events: none; }
.user-menu-icon { width: 28px; text-align: center; font-size: 18px; }
.user-menu-title { flex: 1; font-size: 15px; }
.user-menu-arrow { color: #ccc; font-size: 18px; }
.user-logout-bar { margin: 0 12px 16px; }

/* Address */
.addr-page { padding: 12px 12px 88px; min-height: calc(100vh - 52px); }
.addr-list { display: flex; flex-direction: column; gap: 10px; }
.addr-card { background: #fff; border-radius: 12px; padding: 14px 16px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.addr-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.addr-card-head strong { font-size: 15px; margin-right: 10px; }
.addr-phone { color: #666; font-size: 13px; }
.addr-default { flex-shrink: 0; font-size: 11px; color: #fff; background: var(--primary); border-radius: 10px; padding: 2px 8px; }
.addr-card-detail { font-size: 13px; color: #555; line-height: 1.5; }
.addr-card-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f4f4f4; }
.addr-action { border: none; background: transparent; color: #666; font-size: 13px; padding: 4px 6px; cursor: pointer; }
.addr-action-del { color: #e53935; }
.addr-form { background: #fff; padding-bottom: 88px; min-height: calc(100vh - 52px); }
.addr-region-selects { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.addr-region-selects select {
  width: 100%; border: none; background: transparent; text-align: right; font-size: 14px; outline: none; color: #333;
}
.addr-region-selects select:disabled { color: #bbb; }
.pay-field-top { align-items: flex-start; }
.addr-detail {
  flex: 1; border: none; resize: none; font-size: 14px; outline: none; text-align: right; min-height: 64px; background: transparent; font-family: inherit;
}
.addr-default-row {
  display: flex; align-items: center; gap: 8px; padding: 16px; font-size: 14px; color: #333;
}
.addr-default-row input { width: 16px; height: 16px; }
.addr-save-bar { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; bottom: 0; padding: 12px 16px calc(12px + var(--safe-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.06); z-index: 99; }
.has-tabbar .addr-save-bar { bottom: calc(52px + var(--safe-bottom)); }

/* Payment method */
.page-header-green h1 { color: #333; }
.pay-page { background: #fff; min-height: calc(100vh - 52px); display: flex; flex-direction: column; }
.pay-tabs { display: flex; border-bottom: 1px solid #eee; }
.pay-tab { flex: 1; padding: 14px 8px; border: none; background: transparent; font-size: 15px; color: #666; cursor: pointer; }
.pay-tab.active { color: #33a44d; font-weight: 600; box-shadow: inset 0 -2px 0 #33a44d; }
.pay-form { flex: 1; display: flex; flex-direction: column; }
.pay-panel { padding: 8px 0; }
.pay-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f2f2f2; }
.pay-field-label { flex-shrink: 0; width: 88px; font-size: 14px; color: #333; }
.pay-field-input { flex: 1; border: none; text-align: right; font-size: 14px; outline: none; background: transparent; }
.pay-upload-box { position: relative; flex: 1; }
.pay-upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pay-upload-preview { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; display: block; margin-left: auto; }
.pay-upload-placeholder { width: 88px; height: 88px; margin-left: auto; border: 1px dashed #ddd; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; text-align: center; padding: 8px; }
.pay-status-tip { padding: 12px 16px; font-size: 13px; color: #666; }
.pay-save-bar { margin-top: auto; padding: 12px 16px calc(12px + var(--safe-bottom)); background: #fff; border-top: 1px solid #f0f0f0; }
.btn-save { background: #00bc7e; border: none; }

/* Profit page */
.profit-page {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #f5f6f8;
  height: calc(100vh - 52px);
  box-sizing: border-box;
}
.profit-page-sticky { flex-shrink: 0; }
.profit-filter-chips { margin-bottom: 10px; }
.profit-filter { text-align: center; font-size: 13px; color: #666; margin-bottom: 12px; }
.profit-summary-card {
  background: linear-gradient(135deg, #4a9df8, #2f7fe8);
  border-radius: 14px; padding: 22px 18px; color: #fff; margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(47, 127, 232, .28);
}
.profit-summary-label { font-size: 14px; opacity: .92; margin-bottom: 8px; }
.profit-summary-value { font-size: 28px; font-weight: 700; }
.profit-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.profit-order-card { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.profit-order-card-clickable { cursor: pointer; }
.profit-order-wait-hint { font-size: 12px; color: #999; margin-top: 6px; }
.profit-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 12px; margin-bottom: 10px; }
.profit-order-no { color: #666; font-weight: 500; line-height: 1.4; word-break: break-all; }
.profit-order-status { color: #f57c00; flex-shrink: 0; text-align: right; }
.profit-order-body { display: flex; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #f2f2f2; }
.profit-order-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #f5f5f5; flex-shrink: 0; }
.profit-order-main { flex: 1; min-width: 0; }
.profit-order-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.profit-order-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.profit-tag { font-size: 12px; padding: 4px 8px; border-radius: 6px; }
.profit-tag.price { background: #fff0ee; color: #c62828; }
.profit-tag.income { background: #e8f5e9; color: #2e7d32; }
.profit-order-users { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #7f4141; }
.profit-order-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; font-size: 12px; color: #999; }
.profit-type-badge { padding: 2px 8px; border-radius: 10px; color: #fff; font-size: 11px; }
.profit-type-badge.buy { background: #00bc7e; }
.profit-type-badge.sell { background: #fc8131; }

/* Coupons page */
.page-header-light {
  background: #f5f6f8;
  color: #333;
  box-shadow: none;
}
.page-header-light .btn-back { color: #333; }
.coupon-page {
  padding: 12px 16px 24px;
  background: #f5f6f8;
  min-height: calc(100vh - 52px);
  box-sizing: border-box;
}
.coupon-hero { margin-bottom: 14px; }
.coupon-hero-title { font-size: 24px; font-weight: 700; color: #222; margin: 0 0 6px; }
.coupon-hero-sub { font-size: 13px; color: #999; margin: 0; }
.coupon-stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.coupon-stat-item { text-align: center; }
.coupon-stat-value { font-size: 22px; font-weight: 700; color: #e53935; line-height: 1.2; }
.coupon-stat-label { font-size: 12px; color: #666; margin-top: 6px; }
.coupon-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.coupon-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 8px 10px;
  font-size: 14px;
  color: #999;
  cursor: pointer;
  position: relative;
}
.coupon-tab.active {
  color: #e53935;
  font-weight: 600;
}
.coupon-tab.active::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 3px;
  background: #e53935;
  border-radius: 2px;
}
.coupon-list { display: flex; flex-direction: column; gap: 12px; }
.coupon-empty { padding: 40px 0; }
.coupon-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  min-height: 96px;
}
.coupon-card-value {
  width: 108px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff0f0, #ffe8e8);
  border-right: 1px dashed #f0c4c4;
  padding: 12px 8px;
}
.coupon-amount {
  font-size: 20px;
  font-weight: 700;
  color: #e53935;
  text-align: center;
  line-height: 1.3;
}
.coupon-card-body {
  flex: 1;
  min-width: 0;
  padding: 14px 14px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.coupon-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.4;
}
.coupon-card-meta { font-size: 12px; }
.coupon-meta-label { color: #999; display: block; margin-bottom: 4px; }
.coupon-meta-time { color: #333; font-weight: 600; font-size: 13px; }
.user-wallet-card.user-wallet-coupon {
  color: inherit;
  cursor: pointer;
}

/* Team management */
.team-page { padding: 12px; background: #f5f6f8; min-height: calc(100vh - 52px); }
.team-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px;
}
.team-summary-item {
  background: linear-gradient(135deg, #4a9df8, #2f7fe8);
  border-radius: 12px; padding: 16px; color: #fff; text-align: center;
}
.team-summary-value { font-size: 24px; font-weight: 700; }
.team-summary-label { font-size: 12px; opacity: .9; margin-top: 4px; }
.team-tabs, .team-subtabs {
  display: flex; gap: 8px; margin-bottom: 12px; background: #fff; border-radius: 10px; padding: 4px;
}
.team-tab, .team-subtab {
  flex: 1; border: none; background: transparent; padding: 10px 8px; border-radius: 8px;
  font-size: 14px; color: #666; cursor: pointer;
}
.team-tab.active, .team-subtab.active { background: #e8f4ff; color: #1677ff; font-weight: 600; }
.team-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.team-chip {
  border: 1px solid #d9d9d9; background: #fff; border-radius: 16px; padding: 6px 12px;
  font-size: 12px; color: #666; cursor: pointer;
}
.team-chip.active { border-color: #1677ff; color: #1677ff; background: #e8f4ff; }
.team-search { display: flex; gap: 8px; margin-bottom: 12px; }
.team-search input {
  flex: 1; border: 1px solid #eee; border-radius: 8px; padding: 10px 12px; font-size: 14px;
}
.team-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.team-orders-link { font-size: 13px; color: #1677ff; text-decoration: none; }
.team-list { display: flex; flex-direction: column; gap: 10px; }
.team-member-card {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px;
  padding: 12px; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.team-member-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #f0f0f0; flex-shrink: 0;
}
.team-member-avatar.lg { width: 64px; height: 64px; }
.team-member-main { flex: 1; min-width: 0; }
.team-member-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.team-member-mobile { font-size: 12px; color: #999; margin-bottom: 6px; }
.team-member-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #666; }
.team-member-arrow { color: #ccc; font-size: 20px; }
.team-direct-tag {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 500;
  color: #1677ff; background: #e8f4ff; border-radius: 8px; padding: 1px 6px;
}
.team-detail-page { padding: 12px; }
.team-detail-head {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px;
  padding: 16px; margin-bottom: 12px;
}
.team-detail-name { font-size: 18px; font-weight: 700; }
.team-detail-mobile { font-size: 13px; color: #999; margin-top: 4px; }

/* Toast */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 9999;
  font-size: 14px;
  max-width: 80%;
  text-align: center;
}

/* Loading */
.loading {
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.invite-page {
  padding: 16px;
}

.invite-qr-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  text-align: center;
}

.invite-user {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.invite-code {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
}

.invite-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 12px;
}

.invite-qr-canvas {
  display: block;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.invite-qr-url {
  font-size: 12px;
  color: #666;
  word-break: break-all;
  line-height: 1.5;
  padding: 0 8px;
}

.invite-qr-tip {
  margin: 12px 0 16px;
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}

.invite-register-tip {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7e6;
  color: #ad6800;
  font-size: 13px;
  line-height: 1.5;
}

.boot-error-page {
  margin: 24px 16px;
  padding: 20px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  text-align: center;
}
.boot-error-page h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #cf1322;
}
.boot-error-page p {
  margin: 0 0 10px;
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}
.boot-error-hint {
  color: #999 !important;
  font-size: 12px !important;
}
.boot-error-page .btn {
  margin-top: 8px;
}

.loot-pagination { display:flex; justify-content:center; align-items:center; gap:16px; padding:18px 0 24px; color:var(--muted); font-size:14px; }
.loot-sort-row { display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:12px 0; color:var(--muted); }
.loot-sort-row select { min-width:132px; padding:7px 28px 7px 10px; border:1px solid var(--border); border-radius:4px; background:var(--card); color:var(--text); font-size:14px; }
.loot-page-btn { border:1px solid #ddd; background:#fff; border-radius:4px; padding:7px 12px; color:#333; cursor:pointer; }
.loot-page-btn:disabled { color:#aaa; cursor:default; }

/* 注册与新用户引导 */
.password-input-wrap { position: relative; }
.password-input-wrap .form-input { padding-right: 58px; }
.password-toggle { position:absolute; right:8px; top:50%; transform:translateY(-50%); border:0; background:transparent; color:var(--primary); padding:8px; font-size:13px; cursor:pointer; }
.form-error { min-height:18px; margin-top:4px; color:#d93025; font-size:12px; line-height:1.4; }
.form-help { margin-top:5px; color:var(--muted); font-size:12px; }
.form-help.is-valid { color:#16845b; }
.form-input.is-invalid { border-color:#d93025; box-shadow:0 0 0 2px rgba(217,48,37,.08); }
.auth-agreement { display:flex; align-items:flex-start; gap:8px; margin:2px 0 0; color:var(--muted); font-size:13px; line-height:1.6; }
.auth-agreement input { margin-top:4px; flex:0 0 auto; }
.auth-protocol-link { border:0; background:none; color:var(--primary); padding:0; font:inherit; cursor:pointer; }
.auth-protocol-dialog { position:fixed; inset:0; z-index:1000; display:flex; align-items:flex-end; justify-content:center; }
.auth-protocol-dialog.hidden { display:none; }
.auth-protocol-mask { position:absolute; inset:0; border:0; background:rgba(0,0,0,.48); }
.auth-protocol-panel { position:relative; width:min(100%,520px); max-height:80vh; border-radius:20px 20px 0 0; background:#fff; padding:18px; box-shadow:0 -10px 30px rgba(0,0,0,.15); }
.auth-protocol-head { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--border); padding-bottom:12px; }
.auth-protocol-head h3 { margin:0; font-size:18px; }
.auth-protocol-head button { border:0; background:none; font-size:28px; color:var(--muted); cursor:pointer; }
.auth-protocol-content { max-height:60vh; overflow:auto; padding:16px 2px; white-space:pre-wrap; color:#444; font-size:14px; line-height:1.8; }
.invite-register-tip.is-valid { color:#16845b; background:rgba(22,132,91,.08); }
.invite-register-tip.is-invalid { color:#d93025; background:rgba(217,48,37,.08); }
.btn.is-loading { cursor:wait; opacity:.78; }

.welcome-page { max-width:560px; margin:0 auto; padding:28px 16px 36px; }
.welcome-hero { text-align:center; padding:18px 8px 24px; }
.welcome-icon { display:grid; place-items:center; width:58px; height:58px; margin:0 auto 14px; border-radius:50%; background:#16845b; color:#fff; font-size:30px; box-shadow:0 10px 24px rgba(22,132,91,.22); }
.welcome-hero h1 { margin:0 0 8px; font-size:23px; }
.welcome-hero p, .onboarding-intro, .onboarding-wait { color:var(--muted); font-size:14px; line-height:1.6; }
.onboarding-card { margin:12px; padding:18px; border:1px solid rgba(22,132,91,.16); border-radius:18px; background:linear-gradient(145deg,#fff,#f5fbf8); box-shadow:0 8px 24px rgba(30,70,55,.08); }
.welcome-page .onboarding-card { margin:0; }
.onboarding-card.is-compact { margin:12px 12px 4px; }
.onboarding-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.onboarding-head h2 { margin:3px 0 0; font-size:19px; }
.onboarding-head > strong { color:#16845b; font-size:18px; }
.onboarding-eyebrow { color:#16845b; font-size:12px; font-weight:700; letter-spacing:.08em; }
.onboarding-intro { margin:8px 0 12px; }
.onboarding-progress { height:7px; overflow:hidden; border-radius:99px; background:#e5eee9; }
.onboarding-progress span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#16845b,#45ad80); transition:width .3s ease; }
.onboarding-tasks { margin:14px 0; border-top:1px solid rgba(0,0,0,.06); }
.onboarding-task { display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:10px; padding:14px 0; border-bottom:1px solid rgba(0,0,0,.06); color:inherit; text-decoration:none; }
.onboarding-task small { display:block; margin-top:3px; color:var(--muted); line-height:1.4; }
.onboarding-task em { color:var(--primary); font-size:12px; font-style:normal; }
.onboarding-check { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:#e5eee9; color:#16845b; font-weight:700; }
.onboarding-task.is-done .onboarding-check { background:#16845b; color:#fff; }
.onboarding-primary { margin-top:14px; }
.onboarding-wait { margin:10px 0 0; text-align:center; }
.onboarding-explain { margin-top:16px; padding:16px; border-radius:14px; background:#fff; color:var(--muted); box-shadow:0 5px 18px rgba(0,0,0,.05); }
.onboarding-explain h3 { margin:0 0 8px; color:var(--text); font-size:16px; }
.onboarding-explain p { margin:0; line-height:1.7; }
.home-onboarding-slot { position:relative; z-index:2; max-width:720px; margin:0 auto; }
.home-auth-card { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:12px; padding:16px; border-radius:16px; background:#fff; box-shadow:0 8px 22px rgba(0,0,0,.08); }
.home-auth-card p { margin:5px 0 0; color:var(--muted); font-size:13px; }
.home-auth-actions { display:flex; gap:8px; flex:0 0 auto; }
.home-auth-actions .btn { width:auto; min-width:66px; padding:9px 12px; }
.home-goods-row.is-actionable, .goods-card.is-actionable { cursor:pointer; }
.home-goods-row.is-actionable:focus-visible, .goods-card.is-actionable:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
@media (max-width:420px) { .home-auth-card { align-items:flex-start; flex-direction:column; } .home-auth-actions { width:100%; } .home-auth-actions .btn { flex:1; } }
.balance-log-page { padding: 12px 16px 24px; }
.balance-log-tabs { display:flex; border-bottom:1px solid #eee; margin-bottom:12px; }
.balance-log-tab { flex:1; border:0; background:transparent; padding:11px 4px; color:#777; border-bottom:2px solid transparent; }
.balance-log-tab.active { color:#1677ff; border-bottom-color:#1677ff; font-weight:600; }
.balance-log-filters { display:flex; gap:8px; margin-bottom:10px; }
.balance-log-filters button, .balance-log-custom button { border:1px solid #ddd; background:#fff; border-radius:4px; padding:6px 10px; color:#555; }
.balance-log-custom { display:flex; align-items:center; gap:6px; margin-bottom:10px; }
.balance-log-custom input { min-width:0; flex:1; border:1px solid #ddd; border-radius:4px; padding:6px; color:#555; }
.balance-log-list { background:#fff; }
.balance-log-item { display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-bottom:1px solid #f0f0f0; }
.balance-log-memo { color:#222; font-size:15px; margin-bottom:4px; }
.balance-log-amount { font-weight:600; font-size:16px; }
.balance-log-amount.positive { color:#16a34a; }
.balance-log-amount.negative { color:#dc2626; }
