/*
 * May Baodan V2 design foundation
 *
 * This file defines the canonical tokens for future V2 migrations. Existing
 * screens do not consume these tokens in Phase 1, so adding the foundation
 * cannot change layout, business behaviour, or existing visual output.
 */

:root {
  color-scheme: light;

  /* Typography */
  --v2-font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --v2-font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --v2-text-xs: 12px;
  --v2-text-sm: 13px;
  --v2-text-md: 14px;
  --v2-text-lg: 16px;
  --v2-text-xl: 20px;
  --v2-text-2xl: 24px;
  --v2-leading-tight: 1.25;
  --v2-leading-normal: 1.5;
  --v2-leading-relaxed: 1.7;
  --v2-weight-regular: 400;
  --v2-weight-medium: 500;
  --v2-weight-semibold: 600;
  --v2-weight-bold: 700;

  /* Surfaces and borders */
  --v2-color-canvas: #f4f6f8;
  --v2-color-surface: #ffffff;
  --v2-color-surface-subtle: #f8fafc;
  --v2-color-surface-inset: #eef2f6;
  /* Navigation is a quiet supporting surface, not a competing dark panel. */
  --v2-color-sidebar: #f1f4f7;
  --v2-color-sidebar-hover: #e7edf5;
  --v2-color-sidebar-active: #e8f1ff;
  --v2-color-sidebar-text: #42526a;
  --v2-color-sidebar-text-active: #1d4f9c;
  --v2-color-border: #d8e0ea;
  --v2-color-border-strong: #b8c4d3;
  --v2-color-focus-ring: rgba(37, 99, 235, .22);

  /* Text hierarchy */
  --v2-color-text: #172033;
  --v2-color-text-secondary: #475569;
  --v2-color-text-muted: #64748b;
  --v2-color-text-disabled: #94a3b8;
  --v2-color-text-inverse: #f8fafc;

  /* Action and semantic states */
  --v2-color-action: #1d4ed8;
  --v2-color-action-hover: #1e40af;
  --v2-color-action-active: #1e3a8a;
  --v2-color-action-subtle: #eaf1ff;
  --v2-color-info: #1d4ed8;
  --v2-color-info-subtle: #eaf1ff;
  --v2-color-success: #18794e;
  --v2-color-success-subtle: #e8f5ec;
  --v2-color-warning: #a15c00;
  --v2-color-warning-subtle: #fff5e1;
  --v2-color-danger: #b42318;
  --v2-color-danger-subtle: #fdecea;

  /* Spacing uses a 4px base unit */
  --v2-space-0: 0;
  --v2-space-1: 4px;
  --v2-space-2: 8px;
  --v2-space-3: 12px;
  --v2-space-4: 16px;
  --v2-space-5: 20px;
  --v2-space-6: 24px;
  --v2-space-8: 32px;
  --v2-space-10: 40px;
  --v2-space-12: 48px;
  --v2-space-16: 64px;

  /* Shape and elevation. Pills are reserved for compact status metadata. */
  --v2-radius-xs: 4px;
  --v2-radius-sm: 6px;
  --v2-radius-md: 8px;
  --v2-radius-lg: 12px;
  --v2-radius-pill: 999px;
  --v2-control-height-compact: 32px;
  --v2-control-height: 36px;
  --v2-control-height-touch: 42px;
  --v2-shadow-none: none;
  --v2-shadow-float: 0 12px 32px rgba(15, 23, 42, .14);
  --v2-shadow-overlay: 0 20px 48px rgba(15, 23, 42, .18);

  /* Motion is intentionally restrained for an operating system. */
  --v2-duration-fast: 100ms;
  --v2-duration-standard: 160ms;
  --v2-duration-slow: 220ms;
  --v2-ease-standard: cubic-bezier(.2, 0, 0, 1);

  /* Shared layering scale for future drawers, dialogs, and notices. */
  --v2-z-base: 0;
  --v2-z-sticky: 20;
  --v2-z-overlay: 100;
  --v2-z-modal: 200;
  --v2-z-toast: 300;
}


:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --bg-soft: #fbfbfc;
  --panel: rgba(255, 255, 255, .72);
  --panel-strong: rgba(255, 255, 255, .92);
  --text: #101114;
  --muted: #737780;
  --muted-2: #9ca0a8;
  --line: rgba(20, 22, 28, .09);
  --line-strong: rgba(20, 22, 28, .14);
  --blue: #0071e3;
  --blue-soft: rgba(0, 113, 227, .11);
  --silver: #e9eaec;
  --titanium: #7d7f83;
  --success: #1a8f5a;
  --warning: #a76600;
  --danger: #d73a31;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 24px 70px rgba(24, 27, 34, .09);
  --shadow-soft: 0 10px 35px rgba(24, 27, 34, .07);
  --glass: saturate(180%) blur(26px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fffdfa 0%, #f7f5f1 54%, #efeeeb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: -.01em;
}
body::before {
  display: none;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.page-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  color: var(--muted);
}
.loader {
  width: 34px;
  height: 34px;
  margin: auto;
  border: 2px solid rgba(16,17,20,.08);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fallback-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.fallback-card {
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid rgba(80,74,66,.10);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 34px rgba(72,66,58,.08);
}
.fallback-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
}
.fallback-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}
.fallback-card button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: #2f343c;
}
.fallback-detail {
  max-height: 180px;
  overflow: auto;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 14px;
  background: #f4f2ee;
  color: #8a3d34;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, .82fr);
  overflow: hidden;
}
.auth-page::before {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 58vw;
  height: 58vw;
  left: -18vw;
  top: -24vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238,240,243,.95), rgba(255,255,255,0) 66%);
}
.auth-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 46vw;
  height: 46vw;
  right: 10vw;
  bottom: -28vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,.10), rgba(255,255,255,0) 62%);
}
.auth-hero {
  position: relative;
  z-index: 1;
  padding: clamp(46px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #111317;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(232,234,237,.72)),
    radial-gradient(circle at 26% 20%, rgba(255,255,255,1), transparent 46%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 18px 48px rgba(30,34,43,.13);
  font-weight: 760;
  font-size: 26px;
  letter-spacing: -.08em;
}
.auth-hero h1 {
  max-width: 720px;
  margin: 34px 0 18px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .96;
  letter-spacing: -.07em;
  font-weight: 760;
}
.auth-hero p {
  max-width: 620px;
  margin: 0;
  color: #4f535b;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.55;
  letter-spacing: -.025em;
}
.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}
.auth-points span {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  color: #4a4e56;
  background: rgba(255,255,255,.58);
  backdrop-filter: var(--glass);
  box-shadow: 0 8px 24px rgba(28,31,38,.06);
}
.auth-points span::before { content: ""; }
.auth-side {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 36px;
}
.auth-card {
  width: min(100%, 456px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  background: rgba(255,255,255,.62);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow);
  animation: pageIn .46s cubic-bezier(.2,.8,.2,1);
}
.auth-card h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -.045em; }
.auth-card > p { margin: 0 0 32px; color: var(--muted); line-height: 1.7; }
.auth-switch { margin-top: 24px; text-align: center; color: var(--muted); line-height: 1.9; }
.link-btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  border: 0;
  background: none;
  color: var(--blue);
  padding: 4px 6px;
  font-weight: 650;
  border-radius: 999px;
}
.link-btn:hover { background: var(--blue-soft); }
.register-fallback-link {
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
  touch-action: manipulation;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 18px auto 18px 18px;
  width: 248px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 32px;
  color: #4b4f57;
  background: rgba(255,255,255,.58);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow-soft);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 24px;
  color: #111317;
  font-weight: 740;
  letter-spacing: -.035em;
}
.sidebar-brand .brand-mark { width: 42px; height: 42px; border-radius: 15px; font-size: 21px; }
.nav-list { display: grid; gap: 8px; }
.nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #5f646d;
  background: transparent;
  text-align: left;
  font-weight: 650;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav-link:hover {
  color: #15171a;
  background: rgba(255,255,255,.72);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24,27,34,.06);
}
.nav-link.active {
  color: #111317;
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 14px 34px rgba(24,27,34,.09);
}
.nav-icon { width: 22px; text-align: center; color: var(--blue); }
.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(20,22,28,.07);
}
.user-chip {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.52);
}
.user-chip strong, .user-chip span { display: block; overflow: hidden; text-overflow: ellipsis; }
.user-chip strong { color: #15171a; font-size: 14px; }
.user-chip span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.main { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px, 3vw, 44px);
  background: rgba(247,247,248,.72);
  backdrop-filter: var(--glass);
  border-bottom: 1px solid rgba(255,255,255,.72);
}
.topbar h1 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.topbar-meta { display: grid; gap: 3px; }
.topbar-kicker { color: var(--muted); font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.clock-chip, .avatar-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  color: #4f535b;
  background: rgba(255,255,255,.62);
  box-shadow: 0 8px 24px rgba(24,27,34,.05);
}
.avatar-chip {
  width: 42px;
  padding: 0;
  justify-content: center;
  color: #111317;
  font-weight: 760;
}
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 16px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 8px 20px rgba(24,27,34,.06);
}
.content {
  width: min(100%, 1580px);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 58px);
  animation: pageIn .42s cubic-bezier(.2,.8,.2,1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
}
.page-head h2 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.06em;
  font-weight: 760;
}
.page-head p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.head-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.84);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass);
}
.card-body { padding: clamp(22px, 3vw, 34px); }
.section-title {
  margin: 0 0 22px;
  font-size: 20px;
  letter-spacing: -.035em;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 9px;
  color: #33363b;
  font-size: 14px;
  font-weight: 660;
}
.required::after { content: " *"; color: var(--danger); }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(20,22,28,.10);
  border-radius: 18px;
  padding: 13px 16px;
  color: var(--text);
  background: rgba(255,255,255,.68);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 8px 24px rgba(24,27,34,.04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.textarea { min-height: 118px; resize: vertical; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(0,113,227,.45);
  background: rgba(255,255,255,.94);
  box-shadow: 0 0 0 5px rgba(0,113,227,.11), 0 16px 38px rgba(24,27,34,.07);
}
.input[readonly] { background: rgba(242,243,245,.8); color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; line-height: 1.7; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  padding: 11px 19px;
  font-weight: 680;
  letter-spacing: -.015em;
  background: rgba(255,255,255,.64);
  box-shadow: 0 10px 26px rgba(24,27,34,.07), inset 0 1px 0 rgba(255,255,255,.88);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(24,27,34,.10); }
.btn:active:not(:disabled) { transform: scale(.975); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #1989f5, #0071e3);
  border-color: rgba(0,113,227,.22);
  box-shadow: 0 14px 30px rgba(0,113,227,.22), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-secondary { color: #202329; background: rgba(255,255,255,.74); }
.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #ef625b, #d73a31);
  border-color: rgba(215,58,49,.2);
}
.btn-sm { min-height: 38px; padding: 8px 13px; font-size: 13px; }
.btn-block { width: 100%; }

.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.upload-box {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  border: 1px dashed rgba(20,22,28,.18);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(242,243,245,.58)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.9), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 34px rgba(24,27,34,.06);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.upload-box:hover, .upload-box.dragover {
  transform: translateY(-2px);
  border-color: rgba(0,113,227,.45);
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 44px rgba(24,27,34,.09), 0 0 0 5px rgba(0,113,227,.08);
}
.upload-box input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.upload-placeholder { color: var(--muted); pointer-events: none; line-height: 1.8; }
.upload-placeholder b {
  display: block;
  color: #15171a;
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -.035em;
}
.upload-preview { position: relative; width: 100%; }
.upload-preview img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  cursor: zoom-in;
  box-shadow: inset 0 0 0 1px rgba(20,22,28,.07);
}
.remove-image {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  color: #fff;
  background: rgba(20,22,28,.62);
  backdrop-filter: blur(14px);
}
.multi-upload .upload-box { min-height: 165px; }
.preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
}
.preview-item img { display: block; width: 100%; height: 122px; object-fit: cover; cursor: zoom-in; }
.preview-item.image-failed::after { content: '图片加载失败'; display: block; padding: 8px; color: var(--danger); font-size: 12px; text-align: center; }
.payment-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.payment-proof-item {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  padding: 0;
  cursor: zoom-in;
}
.payment-proof-item img {
  display: block;
  width: 100%;
  height: 138px;
  object-fit: contain;
  background: rgba(255,255,255,.78);
}
.payment-proof-item .image-error {
  display: none;
  padding: 42px 12px;
  color: var(--danger);
  font-size: 13px;
  text-align: center;
}
.payment-proof-item.image-failed .image-error { display: block; }
.admin-shell .preview-list {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.admin-shell .preview-item img {
  height: 132px;
  object-fit: contain;
  background: rgba(255,255,255,.72);
}

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -42% 36%;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,.12), transparent 68%);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-label { color: var(--muted); font-size: 14px; font-weight: 650; }
.stat-value {
  margin-top: 22px;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 760;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
  animation: numberRise .48s cubic-bezier(.2,.8,.2,1);
}
@keyframes numberRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-card.money .stat-value { color: var(--blue); }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.quick-card {
  padding: 28px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quick-card h3 { margin: 18px 0 8px; font-size: 24px; letter-spacing: -.04em; }
.quick-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.quick-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255,255,255,.74);
  color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(24,27,34,.07);
  font-size: 22px;
}

.filter-card { padding: 22px; margin-bottom: 22px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; }
.filter-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.table-wrap {
  width: 100%;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;
  background: transparent;
  font-size: 13px;
}
.data-table thead th {
  padding: 0 16px 6px;
  color: var(--muted-2);
  text-align: left;
  font-weight: 650;
  white-space: nowrap;
}
.data-table tbody tr {
  background: rgba(255,255,255,.68);
  box-shadow: 0 12px 34px rgba(24,27,34,.065);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.data-table tbody tr:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 48px rgba(24,27,34,.09);
}
.data-table td {
  padding: 18px 16px;
  border-top: 1px solid rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(20,22,28,.055);
  vertical-align: middle;
}
.data-table td:first-child {
  border-left: 1px solid rgba(255,255,255,.86);
  border-radius: 24px 0 0 24px;
}
.data-table td:last-child {
  border-right: 1px solid rgba(255,255,255,.86);
  border-radius: 0 24px 24px 0;
}
.cell-main { max-width: 230px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-pre-wrap { white-space: pre-wrap; word-break: break-word; }
.clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
}
.cell-sub { margin-top: 5px; color: var(--muted); font-size: 12px; }
.table-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  cursor: zoom-in;
  box-shadow: inset 0 0 0 1px rgba(20,22,28,.08);
}
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 690;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.68);
}
.badge-blue { color: #0057b8; background: rgba(0,113,227,.11); }
.badge-green { color: #137245; background: rgba(26,143,90,.12); }
.badge-yellow { color: #8a5600; background: rgba(255,190,82,.20); }
.badge-red { color: #b42318; background: rgba(215,58,49,.12); }
.badge-gray { color: #5c616a; background: rgba(232,234,237,.72); }
.empty {
  padding: 76px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(255,255,255,.84);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass);
}
.inline-loading {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); gap: 24px; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; }
.detail-item {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.42);
}
.detail-item span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.detail-item strong { display: block; font-size: 15px; line-height: 1.55; word-break: break-word; }
.detail-item.full { grid-column: 1 / -1; }
.image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.image-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 22px;
  cursor: zoom-in;
  box-shadow: var(--shadow-soft);
}
.stack { display: grid; gap: 24px; }
.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qr-card {
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 26px;
  background: rgba(255,255,255,.56);
  box-shadow: var(--shadow-soft);
}
.qr-card img { width: 100%; height: 210px; object-fit: contain; cursor: zoom-in; border-radius: 18px; }
.qr-card span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }

.toast-root { position: fixed; top: 20px; right: 20px; z-index: 100; display: grid; gap: 10px; pointer-events: none; }
.toast {
  min-width: 260px;
  max-width: min(410px, calc(100vw - 36px));
  padding: 14px 17px;
  border-radius: 20px;
  color: #15171a;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.86);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow);
  animation: toastIn .24s ease-out;
}
.toast.success { color: #137245; }
.toast.error { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(247,247,248,.72);
  backdrop-filter: blur(28px) saturate(180%);
}
.image-modal img { max-width: 96vw; max-height: 90vh; object-fit: contain; border-radius: 24px; box-shadow: var(--shadow); }
.image-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 50%;
  color: #111317;
  background: rgba(255,255,255,.7);
  font-size: 28px;
  line-height: 1;
}
.sidebar-overlay { display: none; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 0 minmax(0, 1fr); }
  .sidebar {
    transform: translateX(calc(-100% - 26px));
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
    box-shadow: 18px 0 60px rgba(24,27,34,.16);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 15; display: block; background: rgba(247,247,248,.54); backdrop-filter: blur(12px); }
  .main { grid-column: 1 / -1; }
  .menu-btn { display: grid; place-items: center; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); }
  .auth-page { display: block; min-height: 100vh; }
  .auth-hero { padding: 38px 22px 18px; min-height: auto; }
  .auth-hero h1 { font-size: 46px; margin: 26px 0 12px; }
  .auth-hero p { font-size: 17px; }
  .auth-points { display: none; }
  .auth-side { padding: 16px 16px 34px; }
  .auth-card { border-radius: 30px; padding: 26px; }
  .topbar {
    min-height: 72px;
    padding: 13px 14px;
  }
  .topbar h1 { font-size: 17px; }
  .topbar-kicker, .clock-chip { display: none; }
  .content { padding: 24px 14px 104px; }
  .page-head { align-items: stretch; flex-direction: column; margin-bottom: 22px; }
  .page-head h2 { font-size: 34px; }
  .head-actions .btn { flex: 1; }
  .card-body { padding: 20px; }
  .form-grid, .upload-grid, .quick-grid, .detail-list, .qr-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { min-height: 132px; padding: 18px; border-radius: 24px; }
  .stat-value { font-size: 30px; margin-top: 18px; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-actions .btn { flex: 1; }
  .form-actions {
    position: sticky;
    bottom: 0;
    margin: 24px -20px -20px;
    padding: 13px 20px calc(13px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.76);
    backdrop-filter: var(--glass);
    border-top: 1px solid rgba(20,22,28,.08);
    z-index: 5;
  }
  .form-actions .btn { flex: 1; }
  .table-wrap { overflow: visible; }
  .data-table { min-width: 0 !important; border-spacing: 0 12px; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tbody tr {
    padding: 16px;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 26px;
    background: rgba(255,255,255,.72);
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    border: 0 !important;
    text-align: right;
  }
  .data-table td:first-child, .data-table td:last-child { border-radius: 0; }
  .data-table td::before {
    content: attr(data-label);
    flex: 0 0 92px;
    color: var(--muted);
    text-align: left;
    font-size: 12px;
  }
  .data-table td.actions {
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid rgba(20,22,28,.08) !important;
  }
  .data-table td.actions::before { display: none; }
  .data-table td.actions .btn { width: 100%; }
  .cell-main { max-width: 190px; white-space: normal; text-align: right; }
  .cell-sub { text-align: right; }
  .toast-root { top: 10px; right: 10px; left: 10px; }
  .toast { width: 100%; max-width: none; }
}

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

/* USER-AUTH-UI-V1-FINAL: user authentication only. Admin authentication retains its existing surface. */
.auth-page.auth-user {
  --auth-bg: #F5F6F8;
  --auth-surface: #FFFFFF;
  --auth-text: #16181D;
  --auth-muted: #6F7580;
  --auth-line: #E7E9ED;
  --auth-blue: #2563EB;
  --auth-danger: #B94B4B;
  --auth-ease: cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(460px, 3fr);
  min-height: 100svh;
  overflow: auto;
  color: var(--auth-text);
  background: var(--auth-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
.auth-page.auth-user::before,
.auth-page.auth-user::after {
  display: none;
}
.auth-user .auth-hero,
.auth-user .auth-side {
  width: auto;
  min-width: 0;
  margin: 0;
}
.auth-user .auth-hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(56px, 9vw, 144px);
  background: var(--auth-bg);
}
.auth-user .auth-brand {
  width: min(100%, 336px);
}
.auth-user .auth-brand h1 {
  margin: 0;
  color: var(--auth-text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}
.auth-user .auth-brand p {
  max-width: 300px;
  margin: 12px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
}
.auth-user .auth-side {
  display: grid;
  place-items: center;
  padding: 56px 48px;
  background: var(--auth-surface);
}
.auth-user .auth-card,
.auth-user .auth-user-card {
  width: min(100%, 430px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: authCardIn 180ms var(--auth-ease) both;
}
@keyframes authCardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-user .auth-card-header {
  margin: 0 0 28px;
}
.auth-user .auth-card h2 {
  margin: 0;
  color: var(--auth-text);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
.auth-user .auth-card-header > p {
  margin: 8px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.6;
}
.auth-user .auth-form {
  display: grid;
  gap: 16px;
}
.auth-user .field {
  min-width: 0;
  margin: 0;
}
.auth-user .field label {
  display: block;
  margin: 0 0 7px;
  color: var(--auth-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}
.auth-user .field label.required::after {
  color: var(--auth-danger);
}
.auth-user .input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  color: var(--auth-text);
  background: var(--auth-surface);
  box-shadow: none;
  font-size: 14px;
  letter-spacing: 0;
  transition-property: border-color, background-color;
  transition-duration: 140ms;
  transition-timing-function: var(--auth-ease);
}
.auth-user .input::placeholder {
  color: #9AA0AA;
}
.auth-user .input:focus {
  border-color: var(--auth-blue);
  background: var(--auth-surface);
  box-shadow: none;
}
.auth-user .auth-submit {
  min-height: 46px;
  margin-top: 6px;
  border: 1px solid var(--auth-blue);
  border-radius: 8px;
  color: #FFFFFF;
  background: var(--auth-blue);
  box-shadow: none;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  transition-property: transform, background-color, opacity;
  transition-duration: 140ms;
  transition-timing-function: var(--auth-ease);
}
.auth-user .auth-submit:hover:not(:disabled) {
  background: #1D4ED8;
}
.auth-user .auth-submit:active:not(:disabled) {
  transform: scale(.985);
}
.auth-user .auth-submit:disabled {
  cursor: not-allowed;
  opacity: .7;
}
.auth-user .auth-switch {
  margin: 20px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
}
.auth-user .link-btn {
  border-radius: 5px;
  color: var(--auth-blue);
  font-weight: 600;
  letter-spacing: 0;
  transition-property: color, background-color, transform;
  transition-duration: 140ms;
  transition-timing-function: var(--auth-ease);
}
.auth-user .link-btn:hover {
  background: transparent;
}
.auth-user .link-btn:active {
  transform: scale(.985);
}

@media (max-width: 860px) {
  .auth-page.auth-user {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: 0;
  }
  .auth-user .auth-hero {
    display: block;
    flex: 0 0 auto;
    padding: max(28px, env(safe-area-inset-top)) 20px 28px;
  }
  .auth-user .auth-brand {
    width: 100%;
  }
  .auth-user .auth-brand h1 {
    font-size: 21px;
  }
  .auth-user .auth-brand p {
    max-width: none;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
  }
  .auth-user .auth-side {
    display: block;
    flex: 1 0 auto;
    padding: 26px 20px max(28px, env(safe-area-inset-bottom));
  }
  .auth-user .auth-card,
  .auth-user .auth-user-card {
    width: min(100%, 430px);
    margin: 0 auto;
  }
  .auth-user .auth-card-header {
    margin-bottom: 24px;
  }
  .auth-user .auth-card h2 {
    font-size: 22px;
  }
  .auth-user .auth-card-header > p,
  .auth-user .auth-switch {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .auth-user .auth-hero {
    padding-inline: 16px;
  }
  .auth-user .auth-side {
    padding-inline: 16px;
  }
  .auth-user .auth-form {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-user .auth-card {
    animation-duration: 80ms;
  }
  .auth-user .input,
  .auth-user .auth-submit,
  .auth-user .link-btn {
    transition-duration: 80ms;
  }
  .auth-user .auth-submit:active,
  .auth-user .link-btn:active {
    transform: none;
  }
}

/* User-side refined product UI */
.auth-user {
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.96), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(237,239,242,.82), transparent 34%),
    linear-gradient(145deg, #fffdf9 0%, #f7f5f1 48%, #eeeeeb 100%);
}
.auth-user .auth-hero { padding: clamp(40px, 7vw, 104px); }
.auth-user .auth-hero h1 {
  max-width: 640px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  font-weight: 680;
  letter-spacing: -.055em;
}
.auth-user .auth-hero p { color: #64615c; font-size: clamp(17px, 1.45vw, 22px); }
.auth-user .auth-card {
  background: rgba(255,255,255,.66);
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 30px 90px rgba(67,62,55,.105), inset 0 1px 0 rgba(255,255,255,.86);
}
.auth-user .auth-card h2 { font-size: 28px; font-weight: 650; }

.user-shell {
  grid-template-columns: 244px minmax(0, 1fr);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.95), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(229,231,234,.70), transparent 28%),
    linear-gradient(145deg, #fffdfa 0%, #f8f6f2 42%, #f0efed 100%);
}
.user-shell .sidebar {
  inset: 22px auto 22px 22px;
  width: 202px;
  padding: 14px;
  border-radius: 30px;
  background: rgba(255,255,255,.44);
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 18px 55px rgba(63,58,51,.075), inset 0 1px 0 rgba(255,255,255,.76);
}
.user-shell .sidebar-brand {
  gap: 10px;
  padding: 6px 8px 20px;
  font-size: 14px;
  color: #25231f;
}
.user-shell .sidebar-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(56,52,47,.10), inset 0 1px 0 rgba(255,255,255,.92);
}
.user-shell .nav-list { gap: 7px; }
.user-shell .nav-link {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #6d6962;
  font-size: 14px;
  font-weight: 610;
  letter-spacing: -.02em;
  box-shadow: none;
}
.user-shell .nav-icon {
  width: 20px;
  color: #8d8880;
  font-size: 15px;
}
.user-shell .nav-link:hover {
  color: #25231f;
  background: rgba(255,255,255,.50);
  box-shadow: 0 8px 22px rgba(63,58,51,.055);
}
.user-shell .nav-link.active {
  color: #24221f;
  background: rgba(255,255,255,.74);
  border-color: rgba(255,255,255,.82);
  box-shadow: 0 10px 28px rgba(63,58,51,.075), inset 0 1px 0 rgba(255,255,255,.86);
}
.user-shell .sidebar-foot {
  border-top-color: rgba(67,62,55,.07);
  padding-top: 12px;
}
.user-shell .user-chip {
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.52);
}
.user-shell .user-chip strong { color: #24221f; font-weight: 650; }
.user-shell .user-chip span { color: #8a867f; }
.user-shell .main { background: transparent; }
.user-shell .topbar {
  min-height: 78px;
  padding: 18px clamp(22px, 4vw, 52px);
  background: rgba(250,248,244,.60);
  border-bottom: 1px solid rgba(255,255,255,.62);
}
.user-shell .topbar h1 {
  font-size: 17px;
  font-weight: 620;
  color: #2c2925;
  letter-spacing: -.025em;
}
.user-shell .topbar-kicker {
  color: #9a948b;
  font-size: 12px;
  letter-spacing: .02em;
}
.user-shell .clock-chip,
.user-shell .avatar-chip {
  background: rgba(255,255,255,.50);
  border-color: rgba(255,255,255,.70);
  color: #6e6a63;
  box-shadow: 0 10px 28px rgba(63,58,51,.055);
}
.user-shell .avatar-chip {
  color: #272420;
  font-weight: 650;
}
.user-shell .content {
  max-width: 1180px;
  padding: clamp(28px, 4vw, 54px) clamp(20px, 4vw, 54px) 72px;
}
.user-shell .page-head {
  margin-bottom: 24px;
  align-items: center;
}
.user-shell .page-head h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.12;
  color: #25231f;
  letter-spacing: -.045em;
}
.user-shell .page-head p {
  max-width: 640px;
  color: #77736c;
  font-size: 15px;
}
.user-shell .card {
  border-radius: 30px;
  background: rgba(255,255,255,.56);
  border-color: rgba(255,255,255,.78);
  box-shadow: 0 18px 52px rgba(63,58,51,.07), inset 0 1px 0 rgba(255,255,255,.75);
}
.user-shell .card-body { padding: clamp(22px, 3vw, 32px); }
.user-shell .section-title {
  color: #2b2824;
  font-size: 18px;
  font-weight: 640;
}

.user-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(246,244,240,.64)),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.95), transparent 30%);
  box-shadow: 0 26px 80px rgba(63,58,51,.085), inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter: blur(26px) saturate(170%);
  animation: pageIn .42s cubic-bezier(.2,.8,.2,1);
}
.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  color: #8a857e;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: .04em;
}
.user-hero-panel h2 {
  max-width: 700px;
  margin: 0;
  color: #24221f;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.07;
  font-weight: 650;
  letter-spacing: -.058em;
}
.user-hero-panel p {
  max-width: 650px;
  margin: 18px 0 0;
  color: #69655f;
  font-size: 16px;
  line-height: 1.85;
}
.hero-profile {
  display: grid;
  justify-items: end;
  gap: 14px;
}
.hero-time {
  color: #77736c;
  font-size: 13px;
  white-space: nowrap;
}
.hero-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #272420;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 14px 38px rgba(63,58,51,.10), inset 0 1px 0 rgba(255,255,255,.9);
  font-size: 22px;
  font-weight: 650;
}
.soft-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 28px;
  padding: 16px 18px 16px 20px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 24px;
  background: rgba(255,255,255,.50);
  box-shadow: 0 12px 38px rgba(63,58,51,.055);
  backdrop-filter: blur(22px) saturate(160%);
}
.soft-alert strong {
  display: block;
  color: #2c2925;
  font-size: 14px;
  font-weight: 650;
}
.soft-alert span {
  display: block;
  margin-top: 4px;
  color: #77736c;
  font-size: 13px;
}
.user-section { margin-top: 30px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 4px 14px;
}
.section-heading span {
  color: #2b2824;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.025em;
}
.section-heading p {
  margin: 0;
  color: #918c84;
  font-size: 13px;
}
.user-shell .quick-grid.user-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.user-shell .quick-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
}
.user-shell .quick-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -48px;
  bottom: -54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160,156,147,.13), transparent 66%);
}
.user-shell .quick-card h3 {
  margin: 0 0 8px;
  color: #282520;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.035em;
}
.user-shell .quick-card p {
  color: #77736c;
  font-size: 14px;
  line-height: 1.75;
}
.user-shell .quick-icon {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  color: #5f5a52;
  background: rgba(255,255,255,.62);
  box-shadow: 0 12px 26px rgba(63,58,51,.07), inset 0 1px 0 rgba(255,255,255,.86);
}
.card-arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: #9a948b;
  font-size: 18px;
  transition: transform .18s ease, color .18s ease;
}
.user-shell .quick-card:hover .card-arrow { transform: translateX(3px); color: #565149; }
.user-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.user-metric-card {
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 28px;
  background: rgba(255,255,255,.48);
  box-shadow: 0 14px 42px rgba(63,58,51,.055), inset 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter: blur(20px) saturate(160%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.user-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 54px rgba(63,58,51,.075);
}
.user-metric-card span {
  display: block;
  color: #817c74;
  font-size: 13px;
  font-weight: 610;
}
.user-metric-card strong {
  display: block;
  margin-top: 16px;
  color: #282520;
  font-size: 34px;
  line-height: 1;
  font-weight: 640;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  animation: numberRise .42s cubic-bezier(.2,.8,.2,1);
}

.user-shell .btn {
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 620;
  background: rgba(255,255,255,.58);
  border-color: rgba(255,255,255,.76);
  box-shadow: 0 10px 28px rgba(63,58,51,.065), inset 0 1px 0 rgba(255,255,255,.82);
}
.user-shell .btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #4d5561, #2f343c);
  border-color: rgba(47,52,60,.18);
  box-shadow: 0 14px 34px rgba(47,52,60,.18), inset 0 1px 0 rgba(255,255,255,.24);
}
.user-shell .btn-secondary {
  color: #33302b;
  background: rgba(255,255,255,.56);
}
.user-shell .input,
.user-shell .select,
.user-shell .textarea {
  min-height: 50px;
  border-radius: 18px;
  background: rgba(255,255,255,.56);
  border-color: rgba(72,68,61,.10);
  color: #282520;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 8px 22px rgba(63,58,51,.035);
}
.user-shell .input::placeholder,
.user-shell .textarea::placeholder { color: #aaa59d; }
.user-shell .input:focus,
.user-shell .select:focus,
.user-shell .textarea:focus {
  border-color: rgba(91,88,80,.22);
  box-shadow: 0 0 0 5px rgba(118,112,101,.10), 0 14px 34px rgba(63,58,51,.06);
}
.user-shell .upload-box {
  border-radius: 28px;
  border-color: rgba(72,68,61,.14);
  background: rgba(255,255,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 14px 38px rgba(63,58,51,.05);
}
.user-shell .upload-placeholder b { color: #2b2824; font-weight: 640; }
.user-shell .data-table tbody tr { background: rgba(255,255,255,.52); }
.user-shell .detail-item { background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.55); }

@media (max-width: 1180px) {
  .user-shell { grid-template-columns: 0 minmax(0, 1fr); }
  .user-shell .sidebar {
    width: 218px;
    transform: translateX(calc(-100% - 28px));
  }
  .user-shell .sidebar.open { transform: translateX(0); }
}

@media (max-width: 760px) {
  .auth-user .auth-hero h1 { font-size: 38px; }
  .auth-user .auth-hero { padding: 34px 20px 14px; }
  .user-shell .topbar {
    min-height: 66px;
    padding: 12px 14px;
  }
  .user-shell .content { padding: 20px 14px 96px; }
  .user-hero-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 22px;
    border-radius: 30px;
  }
  .user-hero-panel h2 { font-size: 32px; line-height: 1.12; }
  .user-hero-panel p { font-size: 14px; line-height: 1.75; }
  .hero-profile {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }
  .hero-time { white-space: normal; }
  .hero-avatar {
    width: 50px;
    height: 50px;
    border-radius: 18px;
  }
  .soft-alert {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
    border-radius: 24px;
  }
  .soft-alert .btn { width: 100%; }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .user-shell .quick-grid.user-action-grid,
  .user-overview-grid {
    grid-template-columns: 1fr;
  }
  .user-shell .quick-card {
    min-height: 154px;
    padding: 22px;
  }
  .user-metric-card {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .user-metric-card strong { margin-top: 0; font-size: 30px; }
  .user-shell .page-head h2 { font-size: 28px; }
  .user-shell .card { border-radius: 26px; }
}

/* User-side performance pass: lighter surfaces, fewer repaint-heavy effects */
.auth-user,
.user-shell {
  background: linear-gradient(180deg, #fffdf9 0%, #f7f5f1 52%, #f1f0ed 100%);
}
.auth-user::before,
.auth-user::after,
.user-shell::before,
.user-shell::after {
  display: none;
}
.auth-user .auth-points span,
.auth-user .auth-card,
.user-shell .sidebar,
.user-shell .topbar,
.user-shell .card,
.user-hero-panel,
.soft-alert,
.user-metric-card,
.user-shell .upload-box,
.user-shell .toast {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.auth-user .auth-card {
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 45px rgba(76,70,61,.08);
}
.user-shell .sidebar {
  background: rgba(255,255,255,.62);
  box-shadow: 0 10px 30px rgba(72,66,58,.055);
  contain: layout paint style;
}
.user-shell .topbar {
  position: sticky;
  background: rgba(250,248,244,.94);
  box-shadow: none;
  contain: layout paint style;
}
.user-shell .content {
  contain: layout style;
}
.user-shell .card,
.user-hero-panel,
.soft-alert,
.user-metric-card,
.user-shell .quick-card,
.user-shell .data-table tbody tr {
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 22px rgba(72,66,58,.045);
  contain: layout paint style;
}
.user-hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.80), rgba(250,248,244,.72));
}
.user-hero-panel h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 620;
}
.user-hero-panel p {
  color: #6f6a63;
}
.user-shell .quick-card::after,
.stat-card::after {
  display: none;
}
.user-shell .quick-card,
.user-metric-card,
.user-shell .btn,
.user-shell .nav-link,
.card-arrow {
  transition-property: transform, opacity, background-color, color, border-color;
  transition-duration: .16s;
  transition-timing-function: ease;
}
.user-shell .quick-card:hover,
.user-metric-card:hover,
.user-shell .data-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(72,66,58,.045);
}
.user-shell .btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(72,66,58,.055);
}
.user-shell .btn-primary {
  background: #2f343c;
  box-shadow: 0 10px 22px rgba(47,52,60,.14);
}
.user-shell .btn-secondary {
  background: rgba(255,255,255,.72);
}
.user-shell .input,
.user-shell .select,
.user-shell .textarea {
  background: rgba(255,255,255,.78);
  box-shadow: none;
}
.user-shell .input:focus,
.user-shell .select:focus,
.user-shell .textarea:focus {
  box-shadow: 0 0 0 4px rgba(88,83,74,.08);
}
.user-shell .upload-box {
  background: rgba(255,255,255,.68);
  box-shadow: 0 8px 20px rgba(72,66,58,.04);
}
.user-shell .upload-box:hover,
.user-shell .upload-box.dragover {
  box-shadow: 0 8px 20px rgba(72,66,58,.055);
}
.user-shell .user-section,
.user-shell .detail-grid,
.user-shell .stack,
.user-shell .table-wrap,
.user-shell .card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 420px;
}
.user-shell .user-hero-panel,
.user-shell .topbar,
.user-shell .sidebar {
  content-visibility: visible;
}
.user-shell .image-gallery img,
.user-shell .qr-card img,
.user-shell .preview-item img,
.user-shell .upload-preview img {
  content-visibility: auto;
}

@media (max-width: 760px) {
  html { scroll-behavior: auto; }
  .user-shell .topbar {
    position: static;
  }
  .user-shell .content {
    padding-top: 16px;
  }
  .user-hero-panel {
    padding: 22px 18px;
    box-shadow: 0 8px 20px rgba(72,66,58,.04);
  }
  .user-hero-panel h2 {
    font-size: 28px;
  }
  .user-shell .quick-card {
    min-height: 132px;
  }
  .user-metric-card {
    min-height: 84px;
    box-shadow: 0 6px 16px rgba(72,66,58,.035);
  }
  .user-shell .quick-card:hover,
  .user-metric-card:hover,
  .user-shell .data-table tbody tr:hover,
  .user-shell .btn:hover:not(:disabled) {
    transform: none;
    box-shadow: inherit;
  }
  .user-shell .sidebar-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(35,32,28,.18);
  }
}

/* Mobile web-app UX for user side */
.mobile-tabbar { display: none; }
.user-shell .data-table tbody tr[data-go] { cursor: pointer; }

@media (max-width: 760px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  body { min-width: 0; }

  .auth-user {
    min-height: 100svh;
    background: #f7f5f1;
  }
  .auth-user .auth-hero {
    padding: 30px 18px 8px;
  }
  .auth-user .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 20px;
  }
  .auth-user .auth-hero h1 {
    max-width: 310px;
    margin: 22px 0 8px;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -.045em;
  }
  .auth-user .auth-hero p {
    font-size: 15px;
    line-height: 1.65;
  }
  .auth-user .auth-side {
    padding: 12px 14px 28px;
  }
  .auth-user .auth-card {
    padding: 22px;
    border-radius: 26px;
    box-shadow: 0 10px 28px rgba(76,70,61,.07);
  }
  .auth-user .auth-card h2 { font-size: 24px; }
  .auth-user .auth-card > p {
    margin-bottom: 22px;
    font-size: 14px;
  }
  .auth-user .field[style] { margin-top: 14px !important; }
  .auth-user .btn { min-height: 48px; }

  .user-shell {
    display: block;
    min-height: 100svh;
    background: #f7f5f1;
  }
  .user-shell .sidebar,
  .user-shell .sidebar-overlay {
    display: none !important;
  }
  .user-shell .main { width: 100%; }
  .user-shell .topbar {
    position: static;
    min-height: 58px;
    padding: 10px 16px 6px;
    background: transparent;
    border-bottom: 0;
    contain: layout paint style;
  }
  .user-shell .menu-btn { display: none !important; }
  .user-shell .topbar h1 {
    font-size: 16px;
    font-weight: 640;
  }
  .user-shell .topbar-right { gap: 8px; }
  .user-shell .avatar-chip {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 14px;
  }
  .user-shell .content {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px calc(96px + env(safe-area-inset-bottom));
  }

  .user-hero-panel {
    margin-bottom: 14px;
    padding: 20px 18px;
    border-radius: 26px;
    box-shadow: 0 6px 16px rgba(72,66,58,.035);
  }
  .user-hero-panel h2 {
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -.035em;
  }
  .user-hero-panel p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.65;
  }
  .eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }
  .hero-profile {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .hero-time {
    font-size: 12px;
    line-height: 1.45;
  }

  .soft-alert {
    margin: 12px 0 20px;
    border-radius: 22px;
    padding: 14px;
  }
  .soft-alert span {
    font-size: 12px;
    line-height: 1.55;
  }

  .user-section { margin-top: 22px; }
  .section-heading {
    margin: 0 2px 10px;
  }
  .section-heading span { font-size: 16px; }
  .section-heading p { font-size: 12px; }

  .user-shell .quick-card {
    min-height: 132px;
    border-radius: 24px;
    padding: 18px;
    gap: 12px;
  }
  .user-shell .quick-card h3 { font-size: 18px; }
  .user-shell .quick-card p {
    font-size: 13px;
    line-height: 1.6;
  }
  .user-shell .quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 15px;
  }
  .user-metric-card {
    min-height: 84px;
    border-radius: 22px;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(72,66,58,.035);
  }

  .user-shell .card { border-radius: 24px; }
  .user-shell .card-body { padding: 18px; }
  .user-shell .page-head {
    margin-bottom: 14px;
    gap: 10px;
  }
  .user-shell .page-head h2 {
    font-size: 24px;
    line-height: 1.16;
  }
  .user-shell .page-head p {
    font-size: 13px;
    line-height: 1.6;
  }
  .user-shell .form-grid,
  .user-shell .upload-grid,
  .user-shell .detail-list {
    gap: 14px;
  }
  .user-shell .field label {
    font-size: 13px;
    margin-bottom: 7px;
  }
  .user-shell .input,
  .user-shell .select {
    min-height: 50px;
    border-radius: 16px;
    font-size: 16px;
  }
  .user-shell .textarea {
    min-height: 116px;
    border-radius: 16px;
    font-size: 15px;
  }
  .user-shell .upload-box {
    min-height: 156px;
    border-radius: 22px;
    padding: 16px;
  }
  .user-shell .upload-placeholder {
    font-size: 13px;
    line-height: 1.6;
  }
  .user-shell .upload-placeholder b { font-size: 15px; }
  .user-shell .upload-preview img {
    height: 152px;
    border-radius: 18px;
  }
  .user-shell .form-actions {
    position: sticky;
    bottom: calc(74px + env(safe-area-inset-bottom));
    margin: 18px -18px -18px;
    padding: 12px 18px;
    background: rgba(247,245,241,.96);
    border-top: 1px solid rgba(80,74,66,.08);
    z-index: 8;
  }
  .user-shell .form-actions .btn {
    min-height: 50px;
    width: 100%;
  }

  .user-shell .data-table tbody tr {
    border-radius: 22px;
    padding: 14px;
    margin-bottom: 10px;
  }
  .user-shell .data-table td {
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
  }
  .user-shell .data-table td::before {
    flex-basis: 82px;
    font-size: 12px;
  }
  .user-shell .data-table td.actions .btn { min-height: 42px; }
  .user-shell .detail-grid { gap: 14px; }
  .user-shell .detail-item {
    padding: 13px;
    border-radius: 18px;
  }
  .user-shell .detail-item strong { font-size: 14px; }

  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(80,74,66,.10);
    border-radius: 24px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 4px 14px rgba(56,50,43,.07);
    contain: layout paint style;
    transform: translateZ(0);
  }
  .mobile-tab {
    min-width: 0;
    min-height: 52px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 0;
    border-radius: 18px;
    color: #7d766c;
    background: transparent;
    font-weight: 620;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease, background-color .12s ease, color .12s ease, opacity .12s ease;
    touch-action: manipulation;
  }
  .mobile-tab span {
    font-size: 17px;
    line-height: 1;
  }
  .mobile-tab em {
    font-style: normal;
    font-size: 11px;
    line-height: 1.1;
  }
  .mobile-tab.active,
  .mobile-tab.pending {
    color: #25221d;
    background: #f0eee9;
  }
  .mobile-tab:active { transform: scale(.97); }
}

/* 2026-06-29 user-side polish: calmer product UI and no single-character logo */
.auth-user,
.user-shell {
  color: #25231f;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f6f2 46%, #f0efeb 100%);
}
.auth-user .brand-mark,
.user-shell .brand-mark,
.user-shell .avatar-chip {
  display: none;
}
.auth-user .auth-hero h1 {
  margin-top: 0;
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 620;
  letter-spacing: -.045em;
}
.auth-user .auth-card,
.user-shell .card,
.user-hero-panel,
.soft-alert,
.user-metric-card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(230,225,218,.78);
  box-shadow: 0 10px 28px rgba(72,66,58,.055);
}
.user-shell .sidebar {
  background: rgba(255,255,255,.76);
  border-color: rgba(230,225,218,.72);
}
.user-shell .sidebar-brand {
  padding: 10px 10px 22px;
  font-size: 15px;
  letter-spacing: -.02em;
}
.user-shell .topbar {
  background: rgba(250,248,244,.96);
  border-bottom-color: rgba(229,225,218,.74);
}
.user-shell .page-head h2,
.user-hero-panel h2 {
  font-weight: 620;
}
.user-hero-panel {
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,246,241,.82));
}
.hero-profile {
  align-self: start;
}
.user-shell .quick-card {
  min-height: 174px;
  border-color: rgba(230,225,218,.76);
}
.user-shell .quick-icon {
  color: #4c4943;
  background: #f5f2ec;
  box-shadow: none;
}
.user-shell .btn-primary {
  background: linear-gradient(180deg, #3f4650, #292f36);
}
.user-shell .input,
.user-shell .select,
.user-shell .textarea {
  background: #fffdfa;
  border: 1px solid rgba(86,80,70,.14);
}
.user-shell .input:focus,
.user-shell .select:focus,
.user-shell .textarea:focus {
  border-color: rgba(55,51,45,.28);
  box-shadow: 0 0 0 4px rgba(83,77,68,.08);
}
.order-form-card .form-grid {
  grid-template-columns: 1fr;
}
.order-form-card .field:first-child {
  opacity: .86;
}
.order-form-card .field label {
  color: #4a453e;
  font-weight: 640;
}
.order-form-card .field:nth-child(2) .input {
  min-height: 56px;
  font-size: 17px;
  letter-spacing: .01em;
}
.order-form-card .hint {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .auth-user .auth-hero h1 {
    font-size: 34px;
  }
  .user-shell .quick-card {
    min-height: 136px;
  }
  .order-form-card .field:nth-child(2) .input {
    min-height: 54px;
  }
}

/* 2026-07 client refresh: user-facing visual layer only */
.auth-user,
.user-shell {
  --client-bg: #F5F6F8;
  --client-surface: #FFFFFF;
  --client-text: #111318;
  --client-muted: #6F7580;
  --client-subtle: #A3A8B0;
  --client-blue: #246BFD;
  --client-dark: #171A21;
  --client-success: #2E9B67;
  --client-warning: #E69A2E;
  --client-danger: #E35555;
  --client-line: rgba(20, 25, 35, 0.08);
  --client-shadow: 0 8px 30px rgba(20, 25, 35, 0.05);
  color: var(--client-text);
  background: var(--client-bg);
}

.auth-user {
  min-height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  background: var(--client-bg);
}
.auth-user::before,
.auth-user::after { display: none; }
.auth-user .auth-hero {
  align-items: flex-start;
  padding: clamp(40px, 8vw, 112px);
  background: var(--client-surface);
}
.auth-user .auth-hero h1 {
  max-width: 460px;
  margin: 0 0 16px;
  color: var(--client-text);
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.055em;
}
.auth-user .auth-hero p {
  max-width: 420px;
  color: var(--client-muted);
  font-size: 17px;
  line-height: 1.7;
}
.auth-user .auth-points { gap: 8px; margin-top: 28px; }
.auth-user .auth-points span {
  padding: 8px 11px;
  border: 1px solid var(--client-line);
  border-radius: 999px;
  color: var(--client-muted);
  background: #fff;
  box-shadow: none;
  font-size: 12px;
}
.auth-user .auth-side { padding: 28px; background: var(--client-bg); }
.auth-user .auth-card {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid var(--client-line);
  border-radius: 16px;
  background: var(--client-surface);
  box-shadow: var(--client-shadow);
  animation: none;
}
.auth-user .auth-card h2 { color: var(--client-text); font-size: 28px; font-weight: 700; letter-spacing: -.035em; }
.auth-user .auth-card > p,
.auth-user .auth-switch { color: var(--client-muted); }
.auth-user .field label { color: var(--client-text); font-size: 13px; font-weight: 650; }
.auth-user .input {
  min-height: 48px;
  border: 1px solid var(--client-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.auth-user .input:focus {
  border-color: rgba(36, 107, 253, .55);
  box-shadow: 0 0 0 3px rgba(36, 107, 253, .10);
}
.auth-user .btn-primary { min-height: 48px; color: #fff; background: var(--client-dark); box-shadow: none; }
.auth-user .btn:hover:not(:disabled) { transform: none; box-shadow: none; }
.auth-user .link-btn { color: var(--client-blue); }

.user-shell { min-height: 100svh; background: var(--client-bg); }
.user-shell::before,
.user-shell::after { display: none; }
.user-shell .sidebar {
  border-right: 1px solid var(--client-line);
  background: #fff;
  box-shadow: none;
}
.user-shell .sidebar-brand {
  padding: 8px 10px 24px;
  color: var(--client-text);
  font-size: 15px;
  font-weight: 720;
}
.user-shell .nav-list { gap: 4px; }
.user-shell .nav-link {
  min-height: 42px;
  border-radius: 12px;
  color: var(--client-muted);
  font-size: 14px;
  font-weight: 600;
}
.user-shell .nav-link:hover { color: var(--client-text); background: #F5F6F8; }
.user-shell .nav-link.active { color: var(--client-blue); background: rgba(36, 107, 253, .08); }
.user-shell .nav-icon { color: inherit; }
.user-shell .sidebar-foot { border-top: 1px solid var(--client-line); }
.user-shell .user-chip { border: 0; border-radius: 12px; background: #F5F6F8; }
.user-shell .user-chip strong { color: var(--client-text); }
.user-shell .user-chip span { color: var(--client-muted); }
.user-shell .main { background: var(--client-bg); }
.user-shell .topbar {
  min-height: 72px;
  border-bottom: 1px solid var(--client-line);
  background: rgba(245, 246, 248, .96);
  box-shadow: none;
}
.user-shell .topbar h1 { color: var(--client-text); font-size: 18px; font-weight: 700; }
.user-shell .topbar-kicker,
.user-shell .clock-chip { color: var(--client-muted); }
.user-shell .clock-chip { border: 1px solid var(--client-line); background: #fff; box-shadow: none; }
.user-shell .content { max-width: 1160px; padding: 32px 40px 48px; }
.user-shell .page-head { align-items: center; margin-bottom: 24px; }
.user-shell .page-head h2 { color: var(--client-text); font-size: 30px; font-weight: 720; letter-spacing: -.04em; }
.user-shell .page-head p { color: var(--client-muted); font-size: 14px; line-height: 1.6; }
.user-shell .head-actions { gap: 10px; }
.user-shell .card,
.user-hero-panel,
.soft-alert,
.user-metric-card {
  border: 1px solid var(--client-line);
  border-radius: 16px;
  background: var(--client-surface);
  box-shadow: var(--client-shadow);
}
.user-shell .card-body { padding: 24px; }
.user-shell .section-title { color: var(--client-text); font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.user-shell .btn {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 650;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.user-shell .btn:hover:not(:disabled),
.user-shell .btn:active:not(:disabled) { transform: none; box-shadow: none; }
.user-shell .btn-primary { color: #fff; background: var(--client-dark); }
.user-shell .btn-primary:hover:not(:disabled) { background: #272B35; }
.user-shell .head-actions .btn-primary,
.user-shell .form-actions .btn-primary { background: var(--client-blue); }
.user-shell .head-actions .btn-primary:hover:not(:disabled),
.user-shell .form-actions .btn-primary:hover:not(:disabled) { background: #1C5FE4; }
.user-shell .btn-secondary { border: 1px solid var(--client-line); color: var(--client-text); background: #fff; }
.user-shell .input,
.user-shell .select,
.user-shell .textarea {
  border: 1px solid var(--client-line);
  border-radius: 12px;
  color: var(--client-text);
  background: #fff;
  box-shadow: none;
}
.user-shell .input { min-height: 48px; }
.user-shell .textarea { min-height: 124px; line-height: 1.65; }
.user-shell .input::placeholder,
.user-shell .textarea::placeholder { color: var(--client-subtle); }
.user-shell .input:focus,
.user-shell .select:focus,
.user-shell .textarea:focus {
  border-color: rgba(36, 107, 253, .58);
  box-shadow: 0 0 0 3px rgba(36, 107, 253, .10);
}
.user-shell .input[readonly] { background: #F9FAFB; color: var(--client-muted); }
.user-shell .hint { color: var(--client-subtle); }
.user-shell .form-grid,
.user-shell .upload-grid { gap: 18px; }
.user-shell .field label { color: var(--client-text); font-size: 13px; font-weight: 650; }
.user-shell .upload-box {
  min-height: 168px;
  border: 1px dashed rgba(36, 107, 253, .30);
  border-radius: 16px;
  background: #FBFCFF;
  box-shadow: none;
}
.user-shell .upload-box:hover,
.user-shell .upload-box.dragover { border-color: var(--client-blue); background: #F5F8FF; }
.user-shell .upload-placeholder { color: var(--client-muted); }
.user-shell .upload-placeholder b { color: var(--client-text); }
.user-shell .remove-image { border: 1px solid var(--client-line); background: #fff; box-shadow: none; }
.user-shell .form-actions { margin-top: 24px; }

.user-hero-panel {
  min-height: 216px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
}
.user-hero-panel .eyebrow { color: var(--client-blue); background: rgba(36, 107, 253, .08); }
.user-hero-panel h2 { max-width: 600px; color: var(--client-text); font-weight: 720; }
.user-hero-panel p { color: var(--client-muted); }
.hero-time { color: var(--client-muted); }
.soft-alert { padding: 18px 20px; }
.soft-alert strong { color: var(--client-text); }
.soft-alert span { color: var(--client-muted); }
.user-shell .quick-grid.user-action-grid { gap: 12px; }
.user-shell .quick-card {
  min-height: 154px;
  border: 1px solid var(--client-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.user-shell .quick-card::after { display: none; }
.user-shell .quick-card:hover { transform: none; box-shadow: var(--client-shadow); }
.user-shell .quick-card h3 { margin: 14px 0 6px; color: var(--client-text); font-size: 18px; font-weight: 700; }
.user-shell .quick-card p { color: var(--client-muted); font-size: 13px; line-height: 1.65; }
.user-shell .quick-icon { color: var(--client-blue); border-radius: 12px; background: rgba(36, 107, 253, .09); }
.card-arrow { color: var(--client-subtle); }
.user-metric-card { min-height: 104px; padding: 20px; }
.user-metric-card:hover { transform: none; box-shadow: var(--client-shadow); }
.user-metric-card span { color: var(--client-muted); }
.user-metric-card strong { color: var(--client-text); font-weight: 720; }

.user-shell .badge {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}
.user-shell .badge-gray { color: #5F718B; background: #EEF2F7; }
.user-shell .badge-blue { color: #246BFD; background: #EEF4FF; }
.user-shell .badge-yellow { color: #A86110; background: #FFF5E8; }
.user-shell .badge-green { color: var(--client-success); background: #ECF8F1; }
.user-shell .badge-red { color: var(--client-danger); background: #FDEFEF; }
.user-shell .badge-pending-quote { color: #5F718B; background: #EEF2F7; }
.user-shell .badge-partial-quote { color: #A86110; background: #FFF5E8; }
.user-shell .badge-quoted { color: #246BFD; background: #EEF4FF; }
.user-shell .badge-partial-payment { color: #3D79B8; background: #EDF6FF; }
.user-shell .badge-paid { color: #2E9B67; background: #ECF8F1; }
.user-shell .badge-completed { color: #23754E; background: #E7F5ED; }
.user-shell .empty {
  padding: 56px 24px;
  border: 1px dashed var(--client-line);
  border-radius: 16px;
  color: var(--client-muted);
  background: #fff;
  box-shadow: none;
}
.user-shell .inline-loading { color: var(--client-muted); }
.user-shell .toast { border: 1px solid var(--client-line); border-radius: 14px; background: #fff; box-shadow: var(--client-shadow); }

.user-order-list { display: grid; gap: 12px; }
.user-order-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--client-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--client-shadow);
  cursor: pointer;
}
.user-order-card-head,
.user-order-meta,
.user-order-statuses { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-order-card-head strong { display: block; margin-top: 3px; color: var(--client-text); font-size: 17px; letter-spacing: .01em; }
.user-order-label,
.user-order-notes span { color: var(--client-subtle); font-size: 12px; }
.user-order-meta { justify-content: flex-start; color: var(--client-muted); font-size: 13px; }
.user-order-statuses { justify-content: flex-start; }
.user-order-notes { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--client-line); }
.user-order-notes p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--client-muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.user-order-notes span { display: block; margin-bottom: 2px; }
.user-order-notes .text-pre-wrap { white-space: pre-wrap; }

.user-order-detail { display: grid; gap: 14px; max-width: 860px; }
.user-detail-section { box-shadow: none; }
.user-detail-section .detail-list { gap: 10px; }
.user-detail-section .detail-item {
  padding: 14px;
  border: 1px solid var(--client-line);
  border-radius: 12px;
  background: #FAFBFC;
}
.user-detail-section .detail-item span { color: var(--client-subtle); }
.user-detail-section .detail-item strong { color: var(--client-text); font-size: 14px; font-weight: 650; }
.user-status-card { display: flex; align-items: center; min-height: 42px; }
.user-admin-note { min-height: 42px; margin: 0; color: var(--client-text); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.user-order-detail .payment-proof-card { box-shadow: none; }
.user-shell .payment-proof-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.user-shell .payment-proof-item { min-height: 132px; border: 1px solid var(--client-line); border-radius: 12px; box-shadow: none; }
.user-shell .payment-proof-item img { height: 132px; }

@media (max-width: 860px) {
  .auth-user { display: block; min-height: 100svh; }
  .auth-user .auth-hero { min-height: auto; padding: 48px 24px 32px; }
  .auth-user .auth-hero h1 { font-size: 38px; }
  .auth-user .auth-hero p { font-size: 15px; }
  .auth-user .auth-side { display: block; padding: 0 16px 32px; }
  .auth-user .auth-card { width: 100%; padding: 24px; }
  .user-shell .content { padding: 20px 16px calc(98px + env(safe-area-inset-bottom)); overflow-x: clip; }
  .user-shell .topbar { min-height: 64px; padding: 0 16px; }
  .user-shell .topbar-right { display: none; }
  .user-shell .topbar-kicker { display: none; }
  .user-shell .topbar h1 { font-size: 18px; }
  .user-shell .page-head { align-items: flex-start; }
  .user-shell .page-head h2 { font-size: 26px; }
  .user-shell .head-actions { width: 100%; }
  .user-shell .head-actions .btn { flex: 1; }
  .user-shell .form-grid,
  .user-shell .upload-grid,
  .user-shell .detail-list { grid-template-columns: 1fr; }
  .user-shell .card-body { padding: 20px; }
  .user-hero-panel { min-height: 0; padding: 24px; }
  .user-hero-panel h2 { font-size: 26px; line-height: 1.2; }
  .user-shell .quick-grid.user-action-grid { grid-template-columns: 1fr; }
  .user-shell .quick-card { min-height: 118px; }
  .user-metric-card { min-height: 92px; }
  .user-order-card { padding: 16px; }
  .user-order-card-head { align-items: flex-start; }
  .user-order-card-head .btn { min-height: 36px; padding: 7px 10px; white-space: nowrap; }
  .user-order-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .user-shell .form-actions {
    position: sticky;
    bottom: calc(76px + env(safe-area-inset-bottom));
    z-index: 5;
    margin: 20px -20px -20px;
    padding: 12px 20px;
    border-top: 1px solid var(--client-line);
    background: rgba(245, 246, 248, .98);
  }
  .user-shell .form-actions .btn { width: 100%; min-height: 48px; }
  .mobile-tabbar {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border: 1px solid var(--client-line);
    border-width: 1px 0 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 -4px 18px rgba(20, 25, 35, .03);
  }
  .mobile-tab { border-radius: 12px; color: var(--client-muted); transition: none; }
  .mobile-tab.active,
  .mobile-tab.pending { color: var(--client-blue); background: rgba(36, 107, 253, .08); }
}

/* USER-UI-V8-FINAL: reference-led, compact user presentation. Admin selectors are intentionally excluded. */
.auth-user,
.user-native-shell {
  --u8-bg: #f5f6f8;
  --u8-paper: #ffffff;
  --u8-ink: #16181d;
  --u8-muted: #6f7580;
  --u8-line: #e7e9ed;
  --u8-blue: #2563eb;
  --u8-blue-soft: #eff5ff;
  --u8-shadow: 0 1px 2px rgba(22, 24, 29, .03);
  color: var(--u8-ink);
  background: var(--u8-bg);
}

.auth-user.static-auth,
.auth-user {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(360px, .54fr);
  align-items: center;
  gap: clamp(40px, 8vw, 140px);
  padding: 48px clamp(30px, 10vw, 180px);
  background: var(--u8-bg);
}
.auth-user::before,
.auth-user::after { display: none; }
.auth-user .auth-hero,
.auth-user .auth-side { width: 100%; padding: 0; }
.auth-user .brand-mark { display: none; }
.auth-user .auth-hero { display: block; }
.auth-user .auth-hero h1 { margin: 0; color: var(--u8-ink); font-size: clamp(26px, 2.2vw, 34px); font-weight: 700; letter-spacing: -.045em; line-height: 1.2; }
.auth-user .auth-hero h1::before { content: 'M'; display: grid; width: 44px; height: 44px; margin-bottom: 18px; place-items: center; border-radius: 10px; color: #fff; background: var(--u8-blue); font-size: 22px; font-weight: 760; letter-spacing: -.08em; }
.auth-user .auth-hero p { margin-top: 11px; color: var(--u8-muted); font-size: 14px; line-height: 1.7; }
.auth-user .auth-points { display: none; }
.auth-user .auth-side { display: block; }
.auth-user .auth-card { width: min(100%, 390px); margin-left: auto; padding: 28px; border: 1px solid var(--u8-line); border-radius: 12px; background: var(--u8-paper); box-shadow: var(--u8-shadow); animation: none; }
.auth-user .auth-card h2 { margin-bottom: 7px; color: var(--u8-ink); font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.auth-user .auth-card > p { margin-bottom: 24px; color: var(--u8-muted); font-size: 13px; line-height: 1.65; }
.auth-user .field label { margin-bottom: 7px; color: #373b43; font-size: 12px; font-weight: 650; }
.auth-user .input { min-height: 42px; padding-inline: 12px; border: 1px solid var(--u8-line); border-radius: 8px; background: #fff; font-size: 14px; }
.auth-user .input:focus { border-color: #93b4f7; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.auth-user .btn-primary { min-height: 42px; border-radius: 8px; background: var(--u8-blue); box-shadow: none; font-size: 14px; }
.auth-user .auth-switch { margin-top: 17px; color: var(--u8-muted); font-size: 13px; }
.auth-user .link-btn { color: var(--u8-blue); font-weight: 650; }

.user-native-shell { grid-template-columns: 208px minmax(0, 1fr); }
.user-native-shell .user-desktop-sidebar { padding: 24px 14px 18px; border-color: var(--u8-line); background: #fbfcfd; }
.user-native-shell .user-desktop-brand { padding: 4px 12px 29px; color: var(--u8-ink); font-size: 16px; font-weight: 720; }
.user-native-shell .user-desktop-brand::before { content: 'M'; display: inline-grid; width: 24px; height: 24px; margin-right: 9px; place-items: center; border-radius: 6px; color: #fff; background: var(--u8-blue); font-size: 13px; vertical-align: -2px; }
.user-native-shell .user-desktop-nav { gap: 3px; }
.user-native-shell .user-desktop-link { min-height: 38px; padding-inline: 12px; border-radius: 7px; color: #737985; font-size: 13px; font-weight: 560; }
.user-native-shell .user-desktop-link.active { color: var(--u8-blue); background: var(--u8-blue-soft); font-weight: 680; }
.user-native-shell .user-desktop-identity { border-color: var(--u8-line); }
.user-native-shell .user-desktop-logout:hover { color: var(--u8-blue); }
.user-native-shell .main,
.user-native-shell .content { background: var(--u8-bg); }
.user-native-shell .content { width: min(100%, 1360px); padding: 38px clamp(30px, 4vw, 64px) 56px; }
.user-native-shell .page-head { margin-bottom: 18px; }
.user-native-shell .page-head h2 { color: var(--u8-ink); font-size: 23px; font-weight: 720; letter-spacing: -.035em; }
.user-native-shell .page-head p { margin-top: 6px; color: var(--u8-muted); font-size: 13px; }
.user-native-shell .card,
.user-native-shell .user-orders-panel,
.user-native-shell .user-order-card { border: 1px solid var(--u8-line); border-radius: 11px; background: var(--u8-paper); box-shadow: var(--u8-shadow); }
.user-native-shell .input,
.user-native-shell .select,
.user-native-shell .textarea { border-color: var(--u8-line); border-radius: 8px; color: var(--u8-ink); }
.user-native-shell .input:focus,
.user-native-shell .select:focus,
.user-native-shell .textarea:focus { border-color: #8daef2; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.user-native-shell .btn-primary { border-radius: 8px; background: var(--u8-blue); box-shadow: none; }
.user-native-shell .btn-secondary { border-radius: 8px; border-color: var(--u8-line); background: #fff; }
.user-native-shell .badge { min-height: 21px; padding: 3px 7px; border-radius: 5px; font-size: 10px; font-weight: 650; line-height: 1.3; }

.user-native-shell .shipping-home { width: 100%; max-width: none; margin: 0; }
.user-native-shell .shipping-page-head { margin-bottom: 12px; }
.user-native-shell .shipping-category-tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 13px; padding-bottom: 1px; scrollbar-width: none; }
.user-native-shell .shipping-category-tab { flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid var(--u8-line); border-radius: 6px; color: var(--u8-muted); background: #fff; font-size: 12px; }
.user-native-shell .shipping-category-tab small { margin-left: 3px; color: inherit; font-size: 10px; }
.user-native-shell .shipping-category-tab.active { border-color: #bdd1fa; color: var(--u8-blue); background: var(--u8-blue-soft); font-weight: 650; }
.user-native-shell .shipping-address-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.user-native-shell .shipping-address-card { display: flex; min-height: 190px; flex-direction: column; padding: 17px 18px 15px; border-color: var(--u8-line); border-radius: 11px; box-shadow: var(--u8-shadow); }
.user-native-shell .shipping-address-card-head { gap: 10px; }
.user-native-shell .shipping-address-category { min-height: 22px; padding: 2px 7px; border-radius: 5px; color: #385f9b; background: #eff5ff; font-size: 11px; font-weight: 650; }
.user-native-shell .shipping-address-card-head .btn { min-height: 29px; padding-inline: 9px; border-radius: 6px; color: var(--u8-blue); border-color: #d8e4fb; background: #fff; font-size: 11px; }
.user-native-shell .shipping-address-person { margin-top: 16px; color: #2b3038; font-size: 14px; font-weight: 680; }
.user-native-shell .shipping-address-person span { color: var(--u8-muted); font-size: 12px; font-weight: 500; }
.user-native-shell .shipping-address-full { margin-top: 9px; color: #515864; font-size: 13px; line-height: 1.6; }
.user-native-shell .shipping-address-note { margin-top: auto; padding-top: 10px; border-color: #eef0f2; color: var(--u8-muted); font-size: 12px; }
.user-native-shell .shipping-address-empty { padding: 46px 20px; border: 1px dashed var(--u8-line); border-radius: 11px; background: #fbfcfd; }

.user-native-shell .orders-toolbar { padding: 11px 14px; border-color: var(--u8-line); }
.user-native-shell .order-filter { min-height: 29px; border-radius: 6px; font-size: 11px; }
.user-native-shell .order-filter.active { border-color: #c4d6fa; color: var(--u8-blue); background: var(--u8-blue-soft); }
.user-native-shell .order-search input { min-height: 31px; border-color: var(--u8-line); border-radius: 6px; }
.user-native-shell .desktop-order-table th { height: 38px; padding-inline: 14px; border-color: var(--u8-line); background: #fafbfc; }
.user-native-shell .desktop-order-table td { height: 47px; padding-inline: 14px; border-color: #eef0f2; }
.user-native-shell .desktop-order-table tbody tr:hover { background: #f9fbff; }
.user-native-shell .orders-pagination { padding: 11px 14px; }

.user-native-shell .order-form-card { width: min(100%, 760px); margin: 0; }
.user-native-shell .order-form-section { padding: 0 22px; }
.user-native-shell .order-form-section .field { padding: 18px 0; border-bottom: 1px solid var(--u8-line); }
.user-native-shell .order-form-section .field:last-child { border-bottom: 0; }
.user-native-shell .order-form-card .form-actions { margin: 0; padding: 18px 22px 20px; border-top: 1px solid var(--u8-line); }
.user-native-shell .order-form-card .textarea { min-height: 98px; }

.user-native-shell .payment-form-card { width: min(100%, 900px); margin: 0; }
.user-native-shell .payment-fields-section { padding: 21px 22px; border-color: var(--u8-line); }
.user-native-shell .payment-fields-section .form-grid { margin-top: 16px; }
.user-native-shell .settings-group-heading { margin: 0; }
.user-native-shell .settings-group-heading span { color: var(--u8-ink); font-size: 14px; font-weight: 700; }
.user-native-shell .settings-group-heading small { margin-top: 4px; color: var(--u8-muted); font-size: 12px; }
.user-native-shell .payment-updated-at { grid-column: 1 / -1; color: #959ba5; font-size: 11px; }
.user-native-shell .payment-upload-section { gap: 12px; padding: 21px 22px 22px; border-color: var(--u8-line); background: #fbfcfd; }
.user-native-shell .payment-upload-card { padding: 13px; border-color: var(--u8-line); border-radius: 9px; background: #fff; }
.user-native-shell .payment-method-head { margin-bottom: 9px; }
.user-native-shell .payment-upload-card .upload-box { min-height: 108px; border: 1px dashed #cfd6df; border-radius: 8px; background: #fafbfc; }
.user-native-shell .payment-upload-card .upload-preview img { height: 96px; }
.user-native-shell .payment-form-card .form-actions { padding: 17px 22px 20px; }

.user-native-shell .user-order-detail { width: min(100%, 760px); margin: 0; gap: 10px; }
.user-native-shell .user-detail-section { padding: 18px 20px; }
.user-native-shell .user-detail-section .section-title { margin-bottom: 13px; color: var(--u8-ink); font-size: 14px; }
.user-native-shell .user-detail-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.user-native-shell .user-detail-status .section-title { margin: 0; }
.user-native-shell .user-detail-status p { margin: 5px 0 0; color: var(--u8-muted); font-size: 12px; }
.user-native-shell .user-status-card { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.user-native-shell .user-admin-note-section { background: #fafbfc; }
.user-native-shell .user-admin-note { min-height: 0; margin: 0; padding: 13px; border-radius: 8px; color: #49505b; background: #f1f3f6; font-size: 13px; line-height: 1.7; }
.user-native-shell .payment-proof-grid { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 9px; }
.user-native-shell .payment-proof-item,
.user-native-shell .payment-proof-item img { min-height: 116px; height: 116px; border-radius: 8px; }

@media (max-width: 860px) {
  .auth-user.static-auth,
  .auth-user { display: block; padding: max(24px, env(safe-area-inset-top)) 18px 32px; }
  .auth-user .auth-hero { padding: 10px 2px 24px; }
  .auth-user .auth-hero h1 { font-size: 21px; }
  .auth-user .auth-hero h1::before { width: 34px; height: 34px; margin-bottom: 13px; border-radius: 8px; font-size: 17px; }
  .auth-user .auth-hero p { margin-top: 7px; font-size: 12px; }
  .auth-user .auth-card { width: 100%; margin: 0; padding: 22px 18px; }
  .auth-user .auth-card h2 { font-size: 19px; }
  .user-native-shell .content { padding: max(18px, env(safe-area-inset-top)) 14px calc(76px + env(safe-area-inset-bottom)); }
  .user-native-shell .page-head { margin-bottom: 14px; }
  .user-native-shell .page-head h2 { font-size: 17px; text-align: left; }
  .user-native-shell .page-head p { display: block; margin-top: 5px; font-size: 12px; text-align: left; }
  .user-native-shell .head-actions { display: none; }
  .user-native-shell .shipping-address-list { grid-template-columns: 1fr; gap: 9px; }
  .user-native-shell .shipping-address-card { min-height: 176px; padding: 14px; }
  .user-native-shell .shipping-address-person { margin-top: 13px; }
  .user-native-shell .shipping-category-tabs { margin-bottom: 10px; }
  .user-native-shell .user-orders-panel { border: 0; background: transparent; box-shadow: none; }
  .user-native-shell .orders-toolbar { padding: 0 0 9px; }
  .user-native-shell .order-search,
  .user-native-shell .desktop-order-table { display: none; }
  .user-native-shell .mobile-order-list { gap: 8px; }
  .user-native-shell .user-order-card { padding: 13px; border-color: var(--u8-line); }
  .user-native-shell .user-order-card-meta { margin-top: 9px; }
  .user-native-shell .user-order-note { margin-top: 8px; padding-top: 8px; }
  .user-native-shell .order-form-card { border-radius: 10px; }
  .user-native-shell .order-form-section { padding: 0 16px; }
  .user-native-shell .order-form-section .field { padding: 15px 0; }
  .user-native-shell .order-form-card .form-actions { position: sticky; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 8; margin: 0 -14px; padding: 10px 14px 12px; border-top: 1px solid var(--u8-line); background: rgba(245,246,248,.96); }
  .user-native-shell .order-form-card .form-actions .btn { min-height: 42px; }
  .user-native-shell .payment-fields-section,
  .user-native-shell .payment-upload-section { padding: 17px 16px; }
  .user-native-shell .payment-fields-section .form-grid { margin-top: 13px; }
  .user-native-shell .payment-upload-section { grid-template-columns: 1fr; }
  .user-native-shell .payment-form-card .form-actions { padding: 14px 16px 16px; }
  .user-native-shell .user-detail-status { align-items: flex-start; }
  .user-native-shell .user-status-card { max-width: 46%; }
  .user-native-shell .mobile-tabbar { min-height: 60px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border-color: var(--u8-line); background: rgba(255,255,255,.98); box-shadow: none; }
  .user-native-shell .mobile-tab { min-height: 48px; border-radius: 6px; color: #858b95; }
  .user-native-shell .mobile-tab span { font-size: 15px; }
  .user-native-shell .mobile-tab em { margin-top: 2px; font-size: 10px; }
  .user-native-shell .mobile-tab.active,
  .user-native-shell .mobile-tab.pending { color: var(--u8-blue); background: transparent; }
}

/* Product Design image-to-code: native mobile client shell (user routes only). */
.auth-user,
.user-native-shell {
  --client-bg: #F5F6F8;
  --client-surface: #FFFFFF;
  --client-text: #111318;
  --client-muted: #6F7580;
  --client-subtle: #A3A8B0;
  --client-blue: #246BFD;
  --client-line: rgba(20, 25, 35, .08);
  --client-shadow: 0 8px 30px rgba(20, 25, 35, .05);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* Authentication remains the same flow, but is presented as a focused mobile app card. */
.auth-user {
  display: block;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) 16px 32px;
  background: var(--client-bg);
}
.auth-user .auth-hero,
.auth-user .auth-side {
  width: min(100%, 430px);
  margin-inline: auto;
  padding: 0;
  background: transparent;
}
.auth-user .auth-hero { padding: 42px 8px 24px; }
.auth-user .auth-hero h1 {
  margin: 0;
  color: var(--client-text);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -.04em;
}
.auth-user .auth-hero p {
  margin-top: 8px;
  color: var(--client-muted);
  font-size: 14px;
  line-height: 1.65;
}
.auth-user .auth-points { display: none; }
.auth-user .auth-card {
  width: 100%;
  padding: 24px 20px;
  border: 1px solid var(--client-line);
  border-radius: 16px;
  background: var(--client-surface);
  box-shadow: var(--client-shadow);
}
.auth-user .auth-card h2 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.03em; }
.auth-user .auth-card > p { margin-bottom: 22px; font-size: 13px; line-height: 1.6; }
.auth-user .field label { margin-bottom: 8px; font-size: 13px; }
.auth-user .input { min-height: 50px; border-radius: 12px; }
.auth-user .btn-primary { min-height: 50px; border-radius: 14px; background: var(--client-blue); }

/* The user surface is intentionally a centered mobile canvas, never a SaaS dashboard. */
.user-native-shell {
  display: block;
  min-height: 100svh;
  background: var(--client-bg);
}
.user-native-shell .main { grid-column: auto; width: 100%; }
.user-native-shell .topbar { display: none; }
.user-native-shell .content {
  width: min(100%, 640px);
  min-height: 100svh;
  margin-inline: auto;
  padding: max(28px, env(safe-area-inset-top)) 16px calc(104px + env(safe-area-inset-bottom));
  background: var(--client-bg);
  animation: none;
}
.user-native-shell .page-head {
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
}
.user-native-shell .page-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 720;
  letter-spacing: -.04em;
}
.user-native-shell .page-head p { font-size: 13px; line-height: 1.55; }
.user-native-shell .head-actions { flex-wrap: nowrap; gap: 8px; }
.user-native-shell .head-actions .btn { min-height: 38px; padding: 8px 12px; border-radius: 12px; font-size: 13px; white-space: nowrap; }
.user-native-shell .head-actions .btn-primary { background: var(--client-blue); }
.user-native-shell .card,
.user-native-shell .user-order-card {
  border: 1px solid var(--client-line);
  border-radius: 16px;
  background: var(--client-surface);
  box-shadow: var(--client-shadow);
  backdrop-filter: none;
}
.user-native-shell .card-body { padding: 20px; }
.user-native-shell .section-title { margin-bottom: 16px; font-size: 16px; font-weight: 700; }
.user-native-shell .btn { border-radius: 14px; box-shadow: none; transition: background-color .16s ease, border-color .16s ease; }
.user-native-shell .btn:hover:not(:disabled),
.user-native-shell .btn:active:not(:disabled) { transform: none; box-shadow: none; }
.user-native-shell .btn-secondary { border-color: var(--client-line); color: var(--client-text); background: #fff; }
.user-native-shell .input,
.user-native-shell .select,
.user-native-shell .textarea {
  border-color: var(--client-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.user-native-shell .input { min-height: 50px; }
.user-native-shell .textarea { min-height: 120px; }
.user-native-shell .input:focus,
.user-native-shell .select:focus,
.user-native-shell .textarea:focus {
  border-color: rgba(36, 107, 253, .58);
  box-shadow: 0 0 0 3px rgba(36, 107, 253, .10);
}
.user-native-shell .form-grid,
.user-native-shell .upload-grid,
.user-native-shell .detail-list { grid-template-columns: 1fr; gap: 16px; }
.user-native-shell .form-actions {
  position: sticky;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 5;
  margin: 20px -20px -20px;
  padding: 12px 20px;
  border-top: 1px solid var(--client-line);
  background: rgba(245, 246, 248, .98);
}
.user-native-shell .form-actions .btn { width: 100%; min-height: 50px; background: var(--client-blue); }

/* Existing order data is arranged like the supplied compact mobile cards. */
.user-native-shell .user-order-list { gap: 12px; }
.user-native-shell .user-order-card { gap: 13px; padding: 17px 16px; }
.user-native-shell .user-order-card-head { align-items: flex-start; }
.user-native-shell .user-order-card-head strong { margin-top: 4px; font-size: 15px; font-weight: 680; }
.user-native-shell .user-order-card-head .btn { min-height: 32px; padding: 5px 9px; border: 0; color: var(--client-blue); background: transparent; font-size: 12px; }
.user-native-shell .user-order-label,
.user-native-shell .user-order-notes span { font-size: 12px; color: var(--client-subtle); }
.user-native-shell .user-order-meta { gap: 14px; color: var(--client-muted); font-size: 12px; }
.user-native-shell .user-order-statuses { gap: 8px; }
.user-native-shell .user-order-notes { gap: 8px; padding-top: 12px; border-top-color: var(--client-line); }
.user-native-shell .user-order-notes p { font-size: 13px; line-height: 1.65; }
.user-native-shell .badge { min-height: 26px; padding: 4px 9px; border: 0; font-size: 12px; font-weight: 620; }
.user-native-shell .badge-gray,
.user-native-shell .badge-pending-quote { color: #5F718B; background: #EEF2F7; }
.user-native-shell .badge-yellow,
.user-native-shell .badge-partial-quote { color: #A86110; background: #FFF5E8; }
.user-native-shell .badge-blue,
.user-native-shell .badge-quoted { color: #246BFD; background: #EEF4FF; }
.user-native-shell .badge-partial-payment { color: #3D79B8; background: #EDF6FF; }
.user-native-shell .badge-green,
.user-native-shell .badge-paid { color: #2E9B67; background: #ECF8F1; }
.user-native-shell .badge-completed { color: #23754E; background: #E7F5ED; }

.user-native-shell .user-order-detail { gap: 12px; }
.user-native-shell .user-detail-section .detail-item { padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--client-line); border-radius: 0; background: transparent; }
.user-native-shell .user-detail-section .detail-item:last-child { padding-bottom: 0; border-bottom: 0; }
.user-native-shell .user-detail-section .detail-item strong { font-size: 14px; }
.user-native-shell .user-status-card { min-height: 30px; }
.user-native-shell .payment-proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.user-native-shell .payment-proof-item,
.user-native-shell .payment-proof-item img { min-height: 96px; height: 96px; border-radius: 10px; }
.user-native-shell .empty { padding: 48px 20px; border-radius: 16px; border-color: var(--client-line); background: #fff; box-shadow: none; }

/* Three existing user destinations: orders, submit, and payment information. */
.user-native-shell .mobile-tabbar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  width: min(calc(100% - 32px), 608px);
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 7px;
  border: 1px solid var(--client-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--client-shadow);
  transform: translateX(-50%);
}
.user-native-shell .mobile-tab { min-height: 46px; border-radius: 11px; color: var(--client-muted); font-weight: 600; transition: none; }
.user-native-shell .mobile-tab span { font-size: 16px; }
.user-native-shell .mobile-tab em { font-size: 11px; }
.user-native-shell .mobile-tab.active,
.user-native-shell .mobile-tab.pending { color: var(--client-blue); background: rgba(36, 107, 253, .08); }

@media (max-width: 480px) {
  .auth-user { padding-inline: 16px; }
  .auth-user .auth-hero { padding-top: 32px; }
  .user-native-shell .content { padding-inline: 16px; }
  .user-native-shell .page-head { flex-wrap: wrap; }
  .user-native-shell .head-actions { width: 100%; }
  .user-native-shell .head-actions .btn { flex: 1; }
  .user-native-shell .user-order-meta { flex-wrap: wrap; gap: 6px 14px; }
  .user-native-shell .payment-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-native-shell .payment-proof-item,
  .user-native-shell .payment-proof-item img { min-height: 132px; height: 132px; }
}

/* Product Design refinement: compact native-app density for the client only. */
.auth-user .auth-hero { padding-bottom: 20px; }
.auth-user .auth-card { padding: 22px 20px 24px; }
.auth-user .auth-card > p { color: var(--client-muted); }

.user-native-shell .content { width: min(100%, 600px); }
.user-native-shell .page-head { min-height: 42px; align-items: center; }
.user-native-shell .page-head h2 { font-size: 25px; font-weight: 700; }
.user-native-shell .page-head p { color: var(--client-subtle); font-size: 12px; }
.user-native-shell .head-actions { align-items: center; }
.user-native-shell .head-actions .btn { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.user-native-shell .head-actions .btn-secondary { border-color: transparent; color: var(--client-muted); background: transparent; }
.user-native-shell .head-actions .btn-primary { padding-inline: 13px; border-color: transparent; background: #246BFD; }

.user-native-shell .card-body { padding: 18px; }
.user-native-shell .section-title { margin-bottom: 14px; font-size: 15px; }
.user-native-shell .field label { margin-bottom: 7px; color: var(--client-text); font-size: 13px; font-weight: 650; }
.user-native-shell .input,
.user-native-shell .select { min-height: 50px; padding-inline: 14px; }
.user-native-shell .textarea { min-height: 108px; padding: 12px 14px; }
.user-native-shell .hint { margin-top: 6px; font-size: 12px; line-height: 1.55; }
.user-native-shell .form-grid { gap: 14px; }
.user-native-shell .form-actions { margin-top: 18px; }

.user-native-shell .upload-grid { gap: 12px; }
.user-native-shell .upload-grid > div > label { color: var(--client-text); font-size: 13px; font-weight: 650 !important; }
.user-native-shell .upload-box {
  min-height: 124px;
  padding: 14px;
  border: 1px solid var(--client-line);
  border-radius: 14px;
  background: #FAFBFD;
  box-shadow: none;
}
.user-native-shell .upload-box:hover,
.user-native-shell .upload-box.dragover {
  transform: none;
  border-color: rgba(36, 107, 253, .45);
  background: #F6F9FF;
  box-shadow: 0 0 0 3px rgba(36, 107, 253, .07);
}
.user-native-shell .upload-placeholder { color: var(--client-muted); font-size: 12px; line-height: 1.55; }
.user-native-shell .upload-placeholder b { margin-bottom: 4px; color: var(--client-text); font-size: 14px; font-weight: 650; }
.user-native-shell .upload-preview img { height: 112px; border-radius: 10px; background: #fff; }
.user-native-shell .remove-image { width: 28px; height: 28px; border-radius: 10px; }

.user-native-shell .user-order-list { gap: 10px; }
.user-native-shell .user-order-card { gap: 11px; padding: 15px 16px; }
.user-native-shell .user-order-card-head strong { font-size: 16px; font-weight: 690; letter-spacing: .005em; }
.user-native-shell .user-order-card-head .btn { min-height: 30px; padding: 5px 4px 5px 8px; font-size: 12px; }
.user-native-shell .user-order-meta { gap: 12px; font-size: 12px; }
.user-native-shell .user-order-notes { gap: 7px; padding-top: 10px; }
.user-native-shell .user-order-notes p { font-size: 12px; line-height: 1.6; }
.user-native-shell .user-order-notes span { margin-bottom: 1px; }
.user-native-shell .badge { min-height: 24px; padding: 3px 8px; font-size: 11px; font-weight: 620; }

.user-native-shell .user-order-detail { gap: 10px; }
.user-native-shell .user-detail-section .detail-list { gap: 11px; }
.user-native-shell .user-detail-section .detail-item { padding-bottom: 11px; }
.user-native-shell .user-detail-section .detail-item span { margin-bottom: 4px; font-size: 12px; }
.user-native-shell .user-detail-section .detail-item strong { font-size: 13px; line-height: 1.55; }
.user-native-shell .user-admin-note { min-height: 0; font-size: 13px; line-height: 1.75; }
.user-native-shell .payment-proof-grid { gap: 8px; }
.user-native-shell .payment-proof-item,
.user-native-shell .payment-proof-item img { min-height: 100px; height: 100px; border-radius: 11px; }

.user-native-shell .mobile-tabbar {
  bottom: max(10px, env(safe-area-inset-bottom));
  gap: 3px;
  padding: 6px;
  border-color: rgba(20, 25, 35, .07);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 30px rgba(20, 25, 35, .08);
}
.user-native-shell .mobile-tab { min-height: 44px; border-radius: 13px; }
.user-native-shell .mobile-tab span { font-size: 15px; }
.user-native-shell .mobile-tab em { font-size: 10px; letter-spacing: -.01em; }

@media (max-width: 480px) {
  .user-native-shell .page-head { flex-wrap: nowrap; gap: 8px; }
  .user-native-shell .head-actions { width: auto; margin-left: auto; }
  .user-native-shell .head-actions .btn { flex: 0 0 auto; }
  .user-native-shell .payment-proof-item,
  .user-native-shell .payment-proof-item img { min-height: 126px; height: 126px; }
}

/* Product Design image-to-code: responsive desktop client shell, using existing routes only. */
.user-desktop-sidebar { display: none; }

@media (min-width: 861px) {
  .user-native-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 100vh;
    background: #F6F7F9;
  }
  .user-native-shell .main { grid-column: 2; }
  .user-desktop-sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 28px 16px 20px;
    border-right: 1px solid rgba(20, 25, 35, .07);
    background: #FFFFFF;
  }
  .user-desktop-brand {
    padding: 8px 10px 26px;
    color: #171A21;
    font-size: 15px;
    font-weight: 720;
    letter-spacing: -.025em;
  }
  .user-desktop-nav { display: grid; gap: 4px; }
  .user-desktop-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 11px;
    color: #6F7580;
    background: transparent;
    font-size: 13px;
    font-weight: 620;
    text-align: left;
  }
  .user-desktop-link span { width: 16px; color: inherit; text-align: center; }
  .user-desktop-link:hover { color: #171A21; background: #F6F8FC; }
  .user-desktop-link.active { color: #246BFD; background: #EEF4FF; }
  .user-desktop-identity {
    display: grid;
    gap: 4px;
    margin-top: auto;
    padding: 14px 10px 4px;
    border-top: 1px solid rgba(20, 25, 35, .07);
  }
  .user-desktop-identity strong { overflow: hidden; color: #171A21; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  .user-desktop-identity span { overflow: hidden; color: #A3A8B0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .user-native-shell .content {
    width: min(100%, 880px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px 34px 56px;
  }
  .user-native-shell .page-head { margin-bottom: 24px; }
  .user-native-shell .page-head h2 { font-size: 28px; }
  .user-native-shell .card-body { padding: 24px; }
  .user-native-shell .user-order-card { padding: 20px 22px; }
  .user-native-shell .user-order-list { gap: 12px; }
  .user-native-shell .mobile-tabbar { display: none; }
  .user-native-shell .form-actions { position: static; margin: 24px 0 0; padding: 0; border: 0; background: transparent; }
  .user-native-shell .form-actions .btn { width: auto; min-width: 160px; }
  .user-native-shell .upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Product Design second image-to-code pass: structural client visual system. */
.user-native-shell {
  --work-bg: #F7F8FA;
  --work-surface: #FFFFFF;
  --work-line: rgba(20, 25, 35, .075);
  --work-ink: #16181D;
  --work-muted: #747985;
  --work-blue: #225FD0;
  background: var(--work-bg);
}
.user-native-shell .content { background: var(--work-bg); }
.user-native-shell .page-head { margin-bottom: 20px; }
.user-native-shell .page-head h2 { color: var(--work-ink); font-weight: 720; letter-spacing: -.03em; }
.user-native-shell .page-head p { color: var(--work-muted); }
.user-native-shell .head-actions .btn-primary,
.user-native-shell .form-actions .btn-primary { background: var(--work-blue); }
.user-native-shell .head-actions .btn-primary:hover:not(:disabled),
.user-native-shell .form-actions .btn-primary:hover:not(:disabled) { background: #1C51B5; }

.user-native-shell .card,
.user-native-shell .user-order-card {
  border-color: var(--work-line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(26, 32, 44, .035);
}
.user-native-shell .card-body { padding: 20px; }
.user-native-shell .input,
.user-native-shell .select,
.user-native-shell .textarea {
  border-color: var(--work-line);
  color: var(--work-ink);
  background: #FCFCFD;
}
.user-native-shell .input:focus,
.user-native-shell .select:focus,
.user-native-shell .textarea:focus { border-color: rgba(34, 95, 208, .58); box-shadow: 0 0 0 3px rgba(34, 95, 208, .09); }
.user-native-shell .input[readonly] { background: #F7F8FA; color: var(--work-muted); }

.user-native-shell .order-form-card,
.user-native-shell .payment-form-card { overflow: hidden; padding: 0; }
.user-native-shell .order-form-section,
.user-native-shell .payment-fields-section { padding: 20px; border-bottom: 1px solid var(--work-line); }
.user-native-shell .order-form-identity { background: #FBFCFE; }
.user-native-shell .order-form-note { border-bottom: 0; }
.user-native-shell .order-form-card .form-actions,
.user-native-shell .payment-form-card .form-actions { margin: 0; border-top: 1px solid var(--work-line); }

.user-native-shell .payment-upload-section {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--work-line);
}
.user-native-shell .payment-upload-card { min-width: 0; }
.user-native-shell .payment-upload-card > label { display: block; margin-bottom: 8px; color: var(--work-ink); font-size: 13px; font-weight: 650; }
.user-native-shell .payment-upload-card .upload-box { min-height: 116px; border-radius: 13px; background: #F9FAFC; }
.user-native-shell .payment-upload-card .upload-preview img { height: 104px; }

.user-native-shell .user-order-list { gap: 12px; }
.user-native-shell .user-order-card { display: block; padding: 0; overflow: hidden; }
.user-native-shell .user-order-card-overview { padding: 17px 16px 14px; }
.user-native-shell .user-order-card-head { align-items: flex-start; }
.user-native-shell .user-order-card-head strong { color: var(--work-ink); font-size: 17px; font-weight: 700; }
.user-native-shell .user-order-card-head .btn { color: var(--work-blue); font-weight: 650; }
.user-native-shell .user-order-meta { margin-top: 10px; color: var(--work-muted); font-size: 12px; }
.user-native-shell .user-order-statuses { margin-top: 12px; }
.user-native-shell .user-order-notes { gap: 9px; margin: 0 16px; padding: 14px 0 16px; border-top-color: var(--work-line); }
.user-native-shell .user-order-notes p { color: #555B66; font-size: 12px; line-height: 1.7; }
.user-native-shell .user-order-notes span { color: #9AA0AA; font-size: 11px; letter-spacing: .01em; }
.user-native-shell .badge { min-height: 23px; padding: 3px 8px; font-size: 11px; font-weight: 650; }

.user-native-shell .user-order-detail { gap: 12px; }
.user-native-shell .user-detail-section { border-radius: 16px; }
.user-native-shell .user-detail-section .detail-item { padding-bottom: 13px; }
.user-native-shell .user-status-card { min-height: 32px; }
.user-native-shell .payment-proof-card { overflow: hidden; }

.user-native-shell .mobile-tabbar {
  width: min(calc(100% - 28px), 480px);
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 7px 8px;
  border-color: rgba(20, 25, 35, .06);
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 12px 34px rgba(20, 25, 35, .09);
}
.user-native-shell .mobile-tab { min-height: 46px; border-radius: 14px; color: #808692; }
.user-native-shell .mobile-tab.active,
.user-native-shell .mobile-tab.pending { color: var(--work-blue); background: #EDF3FF; }

@media (min-width: 861px) {
  .user-native-shell { grid-template-columns: 232px minmax(0, 1fr); }
  .user-desktop-sidebar { padding: 30px 18px 22px; }
  .user-native-shell .content { width: min(100%, 920px); padding: 34px 40px 56px; }
  .user-native-shell .page-head { margin-bottom: 22px; }
  .user-native-shell .user-order-card-overview { padding: 19px 22px 15px; }
  .user-native-shell .user-order-notes { margin-inline: 22px; padding-bottom: 18px; }
  .user-native-shell .payment-upload-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-native-shell .payment-fields-section { padding: 24px; }
  .user-native-shell .order-form-section { padding: 24px; }
}

/* Client visual polish v2 — isolated to user routes. */
.user-native-shell {
  --app-canvas: #f4f5f7;
  --app-surface: #ffffff;
  --app-ink: #17191e;
  --app-muted: #717682;
  --app-faint: #9da3ad;
  --app-line: rgba(23, 25, 30, .085);
  --app-strong-line: rgba(23, 25, 30, .12);
  --app-accent: #4d5bd7;
  --app-accent-soft: #eef0ff;
  --app-success: #21785a;
  --app-shadow: 0 14px 34px rgba(25, 29, 38, .055), 0 2px 6px rgba(25, 29, 38, .025);
  background: var(--app-canvas);
}
.user-native-shell .content { background: var(--app-canvas); }
.user-native-shell .card,
.user-native-shell .user-order-card {
  border-color: var(--app-line);
  border-radius: 20px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}
.user-native-shell .page-overline,
.page-overline {
  display: block;
  margin-bottom: 7px;
  color: var(--app-accent);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .12em;
}
.user-native-shell .page-head h2 { color: var(--app-ink); font-size: 29px; font-weight: 730; letter-spacing: -.045em; }
.user-native-shell .page-head p { color: var(--app-muted); }
.user-native-shell .btn { border-radius: 12px; font-weight: 680; }
.user-native-shell .btn-primary,
.user-native-shell .head-actions .btn-primary,
.user-native-shell .form-actions .btn-primary { background: #20232b; }
.user-native-shell .btn-primary:hover:not(:disabled),
.user-native-shell .head-actions .btn-primary:hover:not(:disabled),
.user-native-shell .form-actions .btn-primary:hover:not(:disabled) { background: #343843; }
.user-native-shell .btn-secondary { border-color: var(--app-line); color: var(--app-muted); background: #fff; }
.user-native-shell .input,
.user-native-shell .textarea,
.user-native-shell .select { border-color: var(--app-line); border-radius: 13px; background: #fbfbfc; }
.user-native-shell .input:focus,
.user-native-shell .textarea:focus,
.user-native-shell .select:focus { border-color: rgba(77, 91, 215, .55); box-shadow: 0 0 0 4px rgba(77, 91, 215, .09); }

/* Overview: an information-dense opening view, not a marketing banner. */
.client-home { display: grid; gap: 16px; }
.home-intro { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 2px 2px 8px; }
.home-kicker { display: block; margin-bottom: 8px; color: var(--app-accent); font-size: 11px; font-weight: 730; letter-spacing: .08em; }
.home-intro h2 { margin: 0; color: var(--app-ink); font-size: clamp(30px, 4vw, 42px); line-height: 1.08; letter-spacing: -.06em; }
.home-intro p { margin: 9px 0 0; color: var(--app-muted); font-size: 14px; }
.home-date { padding: 8px 10px; color: var(--app-faint); font-size: 12px; white-space: nowrap; }
.home-overview { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.home-balance-card,
.home-metric { position: relative; display: flex; min-height: 154px; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 20px; border: 1px solid var(--app-line); border-radius: 19px; background: #fff; box-shadow: var(--app-shadow); }
.home-balance-card { color: #fff; border-color: #242832; background: radial-gradient(circle at 92% 8%, rgba(143, 156, 255, .36), transparent 30%), linear-gradient(135deg, #242832, #17191f); }
.home-balance-card::after { content: ''; position: absolute; width: 120px; height: 120px; right: -35px; bottom: -54px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.home-balance-card span,
.home-metric span { color: var(--app-muted); font-size: 12px; font-weight: 650; }
.home-balance-card span { color: rgba(255,255,255,.62); }
.home-balance-card strong,
.home-metric strong { display: block; margin-top: 12px; font-variant-numeric: tabular-nums; font-size: 42px; font-weight: 720; letter-spacing: -.07em; line-height: 1; }
.home-metric strong { color: var(--app-ink); }
.home-balance-card small,
.home-metric small { margin-top: 8px; color: var(--app-faint); font-size: 12px; }
.home-balance-card small { color: rgba(255,255,255,.58); }
.home-text-link { border: 0; padding: 0; color: var(--app-accent); background: none; font-size: 12px; font-weight: 700; }
.home-balance-card .home-text-link { position: relative; z-index: 1; margin-top: auto; color: #e9ebff; }
.home-text-link b { font-size: 15px; font-weight: 500; }
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-action { min-height: 88px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 15px 17px; border: 1px solid var(--app-line); border-radius: 18px; color: var(--app-ink); background: #fff; box-shadow: var(--app-shadow); text-align: left; }
.home-action:hover { border-color: var(--app-strong-line); }
.home-action-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: var(--app-accent); background: var(--app-accent-soft); font-size: 18px; }
.home-action strong,
.home-action small { display: block; }
.home-action strong { font-size: 14px; font-weight: 700; }
.home-action small { margin-top: 4px; color: var(--app-muted); font-size: 12px; }
.home-action > b { color: var(--app-faint); font-size: 19px; font-weight: 400; }
.home-action-primary { border-color: #222630; color: #fff; background: #222630; }
.home-action-primary .home-action-icon { color: #fff; background: rgba(255,255,255,.14); }
.home-action-primary small,
.home-action-primary > b { color: rgba(255,255,255,.6); }
.home-section-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px 0; }
.home-section-head span,
.home-section-head small { display: block; }
.home-section-head span { color: var(--app-ink); font-size: 16px; font-weight: 720; }
.home-section-head small { margin-top: 3px; color: var(--app-faint); font-size: 12px; }
.home-recent-list { display: grid; gap: 8px; }
.home-order-preview { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid var(--app-line); border-radius: 16px; color: var(--app-ink); background: #fff; box-shadow: 0 5px 16px rgba(25,29,38,.025); text-align: left; }
.home-order-preview:hover { border-color: var(--app-strong-line); }
.home-order-id { color: var(--app-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.home-order-main strong,
.home-order-main small { display: block; }
.home-order-main strong { overflow: hidden; font-size: 14px; font-weight: 680; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.home-order-main small { margin-top: 3px; color: var(--app-faint); font-size: 11px; }
.home-order-state { display: flex; align-items: center; gap: 9px; }
.home-order-state > b { color: var(--app-faint); font-size: 18px; font-weight: 400; }
.home-empty { display: grid; justify-items: start; gap: 8px; padding: 28px 22px; border: 1px dashed var(--app-strong-line); border-radius: 18px; color: var(--app-muted); background: rgba(255,255,255,.72); font-size: 13px; }
.home-empty strong { color: var(--app-ink); font-size: 15px; }
.home-empty .btn { margin-top: 8px; }
.home-loading { display: grid; gap: 18px; }
.home-loading-intro { display: grid; gap: 8px; padding: 12px 2px; }
.home-loading-intro span { color: var(--app-accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.home-loading-intro strong { color: var(--app-ink); font-size: 30px; letter-spacing: -.05em; }
.home-loading-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.home-loading-grid i { height: 154px; border-radius: 19px; background: linear-gradient(100deg, #eceef1 25%, #f7f8f9 48%, #eceef1 70%); background-size: 200% 100%; animation: clientShimmer 1.3s linear infinite; }
@keyframes clientShimmer { to { background-position: -200% 0; } }

/* Order cards: identifiers, process status, time and notes get distinct hierarchy. */
.orders-page-head { margin-bottom: 18px !important; }
.user-native-shell .user-order-list { gap: 12px; }
.user-native-shell .user-order-card { overflow: hidden; padding: 0; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.user-native-shell .user-order-card:hover { border-color: var(--app-strong-line); box-shadow: 0 18px 42px rgba(25,29,38,.07); transform: translateY(-1px); }
.user-native-shell .user-order-card-overview { padding: 18px 19px 16px; }
.user-native-shell .user-order-card-head strong { margin-top: 5px; color: var(--app-ink); font-size: 17px; font-weight: 720; letter-spacing: .018em; }
.user-native-shell .user-order-label { color: var(--app-faint); font-size: 11px; font-weight: 650; letter-spacing: .04em; }
.order-detail-link { border: 0; padding: 5px 0 5px 9px; color: var(--app-accent); background: transparent; font-size: 12px; font-weight: 700; }
.order-detail-link b { font-size: 17px; font-weight: 400; vertical-align: -1px; }
.user-native-shell .user-order-meta { margin-top: 11px; color: var(--app-muted); font-size: 12px; }
.user-native-shell .user-order-meta .money { margin-left: auto; }
.user-native-shell .user-order-meta .money b { color: var(--app-ink); font-weight: 680; }
.user-native-shell .user-order-statuses { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.user-native-shell .user-order-statuses > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; border-radius: 11px; background: #f7f8fa; }
.user-native-shell .user-order-statuses small { color: var(--app-faint); font-size: 10px; white-space: nowrap; }
.user-native-shell .badge { min-height: 23px; padding: 3px 8px; border: 0; border-radius: 8px; font-size: 11px; font-weight: 680; }
.user-native-shell .badge-gray,
.user-native-shell .badge-pending-quote { color: #657184; background: #eef1f5; }
.user-native-shell .badge-blue,
.user-native-shell .badge-quoted { color: #3a54be; background: #edf0ff; }
.user-native-shell .badge-yellow,
.user-native-shell .badge-partial-quote { color: #9a671f; background: #fff5e9; }
.user-native-shell .badge-green,
.user-native-shell .badge-paid,
.user-native-shell .badge-completed { color: var(--app-success); background: #eaf7f0; }
.user-native-shell .user-order-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--app-line); background: #fcfcfd; }
.user-native-shell .user-order-notes p { min-height: 76px; display: block; overflow: hidden; margin: 0; padding: 13px 19px; color: #626872; font-size: 12px; line-height: 1.6; -webkit-line-clamp: initial; }
.user-native-shell .user-order-notes p + p { border-left: 1px solid var(--app-line); }
.user-native-shell .user-order-notes span { margin-bottom: 5px; color: var(--app-faint); font-size: 10px; font-weight: 650; letter-spacing: .05em; }

/* Grouped form surfaces, with an unobtrusive fixed submit treatment on mobile. */
.form-page-head { margin-bottom: 18px !important; }
.user-native-shell .order-form-card,
.user-native-shell .payment-form-card { border-radius: 20px; }
.user-native-shell .order-form-section,
.user-native-shell .payment-fields-section { padding: 21px 20px; border-bottom-color: var(--app-line); }
.user-native-shell .order-form-identity { background: #f9fafc; }
.form-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.form-section-heading span { color: var(--app-ink); font-size: 14px; font-weight: 720; }
.form-section-heading small { color: var(--app-faint); font-size: 11px; }
.user-native-shell .field label { color: #515762; font-size: 12px; font-weight: 680; }
.user-native-shell .input,
.user-native-shell .textarea { color: var(--app-ink); background: #fbfbfc; }
.user-native-shell .input[readonly] { color: var(--app-muted); background: #f2f4f7; }
.user-native-shell .form-actions { border-top-color: var(--app-line); background: #fff; }
.user-native-shell .form-actions .btn { min-width: 172px; background: #20232b; box-shadow: 0 8px 16px rgba(24,27,34,.12); }

/* Payment methods are presented as personal account cards, not generic upload boxes. */
.user-native-shell .payment-upload-section { gap: 12px; padding: 20px; border-bottom-color: var(--app-line); background: #fbfbfc; }
.payment-method-head { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; margin-bottom: 11px; }
.payment-method-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: #20b76a; font-size: 15px; font-weight: 750; }
.payment-method-icon.alipay { background: #2677ef; }
.payment-method-head label,
.payment-method-head small { display: block; }
.payment-method-head label { color: var(--app-ink); font-size: 13px; font-weight: 710; }
.payment-method-head small { margin-top: 2px; color: var(--app-faint); font-size: 11px; }
.payment-method-head em { padding: 4px 7px; border-radius: 7px; color: var(--app-muted); background: #f0f2f5; font-size: 10px; font-style: normal; font-weight: 650; }
.payment-upload-card:has(.upload-preview:not(.hidden)) .payment-method-head em { color: var(--app-success); background: #eaf7f0; }
.user-native-shell .payment-upload-card .upload-box { min-height: 124px; border-style: solid; border-color: var(--app-line); border-radius: 15px; background: #fff; }
.user-native-shell .payment-upload-card .upload-box:hover,
.user-native-shell .payment-upload-card .upload-box.dragover { border-color: rgba(77,91,215,.45); background: #f7f8ff; }
.user-native-shell .payment-upload-card .upload-preview img { height: 112px; }

@media (min-width: 861px) {
  .user-native-shell { grid-template-columns: 224px minmax(0, 1fr); }
  .user-desktop-sidebar { width: auto; padding: 30px 18px 22px; border-right-color: var(--app-line); }
  .user-desktop-brand { color: var(--app-ink); font-size: 15px; font-weight: 740; }
  .user-desktop-link { border-radius: 10px; color: var(--app-muted); }
  .user-desktop-link.active { color: #3e4bbc; background: var(--app-accent-soft); }
  .user-native-shell .content { width: min(100%, 970px); padding: 34px 44px 56px; }
  .client-home { gap: 17px; }
  .user-native-shell .payment-upload-section { grid-template-columns: 1fr 1fr; padding: 22px; }
  .user-native-shell .payment-fields-section,
  .user-native-shell .order-form-section { padding: 24px; }
}

@media (max-width: 860px) {
  .user-native-shell .content { padding: max(28px, env(safe-area-inset-top)) 16px calc(104px + env(safe-area-inset-bottom)); }
  .user-native-shell .page-head h2 { font-size: 27px; }
  .home-intro { align-items: flex-start; }
  .home-intro h2 { font-size: 31px; }
  .home-date { display: none; }
  .home-overview { grid-template-columns: 1.18fr 1fr; }
  .home-balance-card { grid-row: span 2; min-height: 214px; }
  .home-metric { min-height: 101px; padding: 16px; }
  .home-metric strong { margin-top: 8px; font-size: 29px; }
  .home-metric small { margin-top: 4px; font-size: 10px; }
  .home-actions { grid-template-columns: 1fr; gap: 9px; }
  .home-action { min-height: 75px; }
  .home-loading-grid { grid-template-columns: 1.18fr 1fr; }
  .home-loading-grid i:first-child { grid-row: span 2; height: 214px; }
  .user-native-shell .user-order-card-overview { padding: 17px 16px 15px; }
  .user-native-shell .user-order-statuses { gap: 7px; }
  .user-native-shell .user-order-statuses > div { padding: 7px; }
  .user-native-shell .user-order-statuses small { display: none; }
  .user-native-shell .user-order-notes p { min-height: 72px; padding: 12px 16px; }
  .user-native-shell .order-form-section,
  .user-native-shell .payment-fields-section { padding: 20px 18px; }
  .user-native-shell .payment-upload-section { padding: 18px; }
  .user-native-shell .form-actions { bottom: calc(82px + env(safe-area-inset-bottom)); margin: 0; padding: 12px 18px 16px; }
  .user-native-shell .form-actions .btn { width: 100%; min-height: 50px; }
  .user-native-shell .mobile-tabbar { border-color: var(--app-line); border-radius: 18px; box-shadow: 0 12px 32px rgba(25,29,38,.1); }
  .user-native-shell .mobile-tab.active,
  .user-native-shell .mobile-tab.pending { color: #3e4bbc; background: var(--app-accent-soft); }
}

@media (max-width: 390px) {
  .home-balance-card,
  .home-metric { padding: 14px; }
  .home-balance-card strong { font-size: 36px; }
  .home-balance-card small { font-size: 10px; }
  .user-native-shell .user-order-statuses { grid-template-columns: 1fr; }
  .user-native-shell .user-order-notes { grid-template-columns: 1fr; }
  .user-native-shell .user-order-notes p { min-height: 0; }
  .user-native-shell .user-order-notes p + p { border-top: 1px solid var(--app-line); border-left: 0; }
}

/* Product Design image-to-code v3: native iOS client reference pass. */
.user-native-shell {
  --ios-blue: #246BFD;
  --ios-blue-pressed: #1458E8;
  --ios-ink: #131722;
  --ios-secondary: #737A87;
  --ios-tertiary: #A6ACB6;
  --ios-canvas: #F7F8FA;
  --ios-surface: #FFFFFF;
  --ios-separator: #EAECEF;
  --ios-shadow: 0 5px 18px rgba(24, 34, 54, .045);
  background: var(--ios-canvas);
}
.user-native-shell .content { background: var(--ios-canvas); }
.user-native-shell .page-head { align-items: flex-end; margin-bottom: 18px; }
.user-native-shell .page-overline { display: none; }
.user-native-shell .page-head h2 { color: var(--ios-ink); font-size: 27px; font-weight: 730; letter-spacing: -.045em; }
.user-native-shell .page-head p { color: var(--ios-secondary); font-size: 12px; line-height: 1.55; }
.user-native-shell .head-actions { gap: 7px; }
.user-native-shell .head-actions .btn { min-height: 36px; padding: 7px 10px; border-radius: 10px; font-size: 12px; }
.user-native-shell .head-actions .btn-secondary { border: 0; color: var(--ios-secondary); background: transparent; }
.user-native-shell .head-actions .btn-primary,
.user-native-shell .form-actions .btn-primary { border: 0; color: #fff; background: var(--ios-blue); box-shadow: 0 6px 14px rgba(36, 107, 253, .20); }
.user-native-shell .head-actions .btn-primary:hover:not(:disabled),
.user-native-shell .form-actions .btn-primary:hover:not(:disabled) { background: var(--ios-blue-pressed); }
.user-native-shell .card,
.user-native-shell .user-order-card { border: 1px solid var(--ios-separator); border-radius: 16px; background: var(--ios-surface); box-shadow: var(--ios-shadow); }
.user-native-shell .btn { border-radius: 11px; }
.user-native-shell .input,
.user-native-shell .textarea,
.user-native-shell .select { border: 1px solid var(--ios-separator); border-radius: 10px; background: #FBFCFD; box-shadow: none; }
.user-native-shell .input:focus,
.user-native-shell .textarea:focus,
.user-native-shell .select:focus { border-color: rgba(36, 107, 253, .62); box-shadow: 0 0 0 3px rgba(36, 107, 253, .10); }

/* Orders are structured as dense native records, with secondary content recessed. */
.orders-page-head { min-height: 52px; }
.user-native-shell .user-order-list { gap: 10px; }
.user-native-shell .user-order-card { position: relative; overflow: hidden; padding: 0; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.user-native-shell .user-order-card:hover { border-color: #D5DAE3; box-shadow: 0 10px 26px rgba(24, 34, 54, .075); transform: none; }
.user-native-shell .user-order-card-overview { padding: 16px; }
.user-native-shell .user-order-card-head { align-items: flex-start; }
.user-native-shell .user-order-label { color: var(--ios-tertiary); font-size: 10px; font-weight: 690; letter-spacing: .06em; }
.user-native-shell .user-order-card-head strong { margin-top: 4px; color: var(--ios-ink); font-size: 16px; font-weight: 720; letter-spacing: .018em; }
.order-detail-link { padding: 4px 0 4px 8px; color: var(--ios-blue); font-size: 12px; font-weight: 650; }
.order-detail-link b { margin-left: 2px; color: #9AA1AD; }
.user-native-shell .user-order-meta { margin-top: 10px; color: var(--ios-secondary); font-size: 11px; }
.user-native-shell .user-order-meta .money { margin-left: auto; }
.user-native-shell .user-order-meta .money b { color: var(--ios-ink); font-size: 12px; font-weight: 680; }
.user-native-shell .user-order-statuses { display: flex; gap: 6px; margin-top: 12px; }
.user-native-shell .user-order-statuses > div { display: contents; padding: 0; background: none; }
.user-native-shell .user-order-statuses small { display: none; }
.user-native-shell .badge { min-height: 22px; padding: 3px 7px; border-radius: 7px; font-size: 10px; font-weight: 680; }
.user-native-shell .badge-gray,
.user-native-shell .badge-pending-quote { color: #6C788C; background: #F0F3F7; }
.user-native-shell .badge-blue,
.user-native-shell .badge-quoted { color: #3764CF; background: #EEF3FF; }
.user-native-shell .badge-yellow,
.user-native-shell .badge-partial-quote { color: #A76A19; background: #FFF4E7; }
.user-native-shell .badge-green,
.user-native-shell .badge-paid,
.user-native-shell .badge-completed { color: #2B8A62; background: #EDF8F2; }
.user-native-shell .user-order-notes { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; border-top: 1px solid var(--ios-separator); background: #FCFCFD; }
.user-native-shell .user-order-notes p { min-height: 67px; display: block; overflow: hidden; margin: 0; padding: 11px 16px 12px; color: #69717E; font-size: 11px; line-height: 1.65; }
.user-native-shell .user-order-notes p + p { border-left: 1px solid var(--ios-separator); }
.user-native-shell .user-order-notes span { margin-bottom: 4px; color: var(--ios-tertiary); font-size: 10px; font-weight: 630; letter-spacing: .02em; }

/* New order: form sections create a clear step sequence without changing fields. */
.user-native-shell .order-form-card,
.user-native-shell .payment-form-card { overflow: hidden; border-radius: 16px; }
.user-native-shell .order-form-card { counter-reset: order-step; }
.user-native-shell .order-form-section,
.user-native-shell .payment-fields-section { padding: 19px 16px; border-bottom: 1px solid var(--ios-separator); }
.user-native-shell .order-form-section { counter-increment: order-step; }
.user-native-shell .order-form-identity { background: #FAFBFD; }
.user-native-shell .order-form-note { border-bottom: 0; }
.form-section-heading { margin-bottom: 14px; }
.form-section-heading span { display: flex; align-items: center; color: var(--ios-ink); font-size: 14px; font-weight: 710; }
.order-form-section .form-section-heading span::before { content: counter(order-step); width: 18px; height: 18px; display: inline-grid; place-items: center; margin-right: 7px; border-radius: 50%; color: #fff; background: var(--ios-blue); font-size: 10px; font-weight: 720; }
.form-section-heading small { color: var(--ios-tertiary); font-size: 11px; }
.user-native-shell .field label { margin-bottom: 7px; color: #66707E; font-size: 11px; font-weight: 660; }
.user-native-shell .input,
.user-native-shell .select { min-height: 48px; padding-inline: 13px; font-size: 14px; }
.user-native-shell .textarea { min-height: 106px; padding: 12px 13px; font-size: 14px; }
.user-native-shell .input[readonly] { color: #7F8793; background: #F1F3F6; }
.user-native-shell .hint { color: var(--ios-tertiary); font-size: 11px; }
.user-native-shell .form-actions { position: sticky; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 8; margin: 0; padding: 12px 16px 14px; border-top: 1px solid var(--ios-separator); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.user-native-shell .form-actions .btn { width: 100%; min-height: 48px; border-radius: 12px; background: var(--ios-blue); }

/* Payment is presented as a system setting with a contained payment-code target. */
.user-native-shell .payment-upload-section { display: grid; gap: 10px; padding: 16px; border-bottom: 1px solid var(--ios-separator); background: #FAFBFC; }
.user-native-shell .payment-upload-card { padding: 13px; border: 1px solid var(--ios-separator); border-radius: 13px; background: #fff; }
.payment-method-head { grid-template-columns: 32px 1fr auto; gap: 9px; margin-bottom: 10px; }
.payment-method-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
.payment-method-head label { color: var(--ios-ink); font-size: 13px; font-weight: 700; }
.payment-method-head small { color: var(--ios-tertiary); font-size: 10px; }
.payment-method-head em { padding: 3px 6px; border-radius: 6px; color: #7D8795; background: #F3F5F8; font-size: 10px; }
.user-native-shell .payment-upload-card .upload-box { min-height: 116px; padding: 12px; border: 1px dashed #D7DDE7; border-radius: 10px; background: #FAFBFD; }
.user-native-shell .payment-upload-card .upload-box:hover,
.user-native-shell .payment-upload-card .upload-box.dragover { border-color: rgba(36,107,253,.52); background: #F5F8FF; box-shadow: 0 0 0 3px rgba(36,107,253,.07); }
.user-native-shell .upload-placeholder { color: #8F98A5; font-size: 11px; line-height: 1.5; }
.user-native-shell .upload-placeholder b { margin-bottom: 3px; color: #566171; font-size: 12px; font-weight: 680; }
.user-native-shell .payment-upload-card .upload-preview img { height: 100px; border-radius: 8px; }
.user-native-shell .payment-fields-section .form-section-heading span::before { content: '◎'; width: 18px; height: 18px; display: inline-grid; place-items: center; margin-right: 7px; border-radius: 50%; color: var(--ios-blue); background: #EEF3FF; font-size: 11px; }

/* A fixed native tab bar, matching the reference rather than a floating web control. */
.user-native-shell .mobile-tabbar { left: 0; right: 0; bottom: 0; width: 100%; gap: 0; padding: 6px 14px calc(7px + env(safe-area-inset-bottom)); border: 1px solid var(--ios-separator); border-width: 1px 0 0; border-radius: 0; background: rgba(255,255,255,.97); box-shadow: 0 -5px 20px rgba(24,34,54,.035); transform: none; }
.user-native-shell .mobile-tab { min-height: 48px; gap: 2px; border-radius: 9px; color: #8F97A4; font-weight: 620; }
.user-native-shell .mobile-tab span { font-size: 16px; line-height: 1; }
.user-native-shell .mobile-tab em { font-size: 10px; font-style: normal; }
.user-native-shell .mobile-tab.active,
.user-native-shell .mobile-tab.pending { color: var(--ios-blue); background: transparent; }
.user-native-shell .mobile-tab:nth-child(2) { color: #fff; background: var(--ios-blue); box-shadow: 0 5px 12px rgba(36,107,253,.20); }
.user-native-shell .mobile-tab:nth-child(2).active,
.user-native-shell .mobile-tab:nth-child(2).pending { color: #fff; }

@media (min-width: 861px) {
  .user-native-shell { grid-template-columns: 224px minmax(0, 1fr); background: #F8F9FB; }
  .user-desktop-sidebar { padding: 27px 16px 20px; border-right: 1px solid var(--ios-separator); background: #fff; }
  .user-desktop-brand { padding: 8px 10px 28px; color: var(--ios-ink); font-size: 15px; font-weight: 740; }
  .user-desktop-nav { gap: 3px; }
  .user-desktop-link { min-height: 40px; padding: 8px 10px; border-radius: 9px; color: var(--ios-secondary); font-size: 13px; }
  .user-desktop-link.active { color: var(--ios-blue); background: #F0F4FF; }
  .user-desktop-identity { border-top-color: var(--ios-separator); }
  .user-native-shell .content { width: min(100%, 1020px); padding: 38px 46px 60px; }
  .user-native-shell .page-head h2 { font-size: 30px; }
  .user-native-shell .orders-page-head { margin-bottom: 22px; }
  .user-native-shell .user-order-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); }
  .user-native-shell .user-order-card-overview { padding: 18px 20px; }
  .user-native-shell .user-order-notes { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--ios-separator); }
  .user-native-shell .user-order-notes p { min-height: 0; padding: 13px 16px; }
  .user-native-shell .user-order-notes p + p { border-top: 1px solid var(--ios-separator); border-left: 0; }
  .user-native-shell .user-order-statuses { max-width: 300px; }
  .user-native-shell .order-form-card { max-width: 760px; }
  .user-native-shell .payment-form-card { max-width: 900px; }
  .user-native-shell .form-actions { position: static; padding: 18px 24px 22px; background: #fff; backdrop-filter: none; }
  .user-native-shell .form-actions .btn { width: auto; min-width: 164px; }
  .user-native-shell .order-form-section,
  .user-native-shell .payment-fields-section { padding: 24px; }
  .user-native-shell .payment-upload-section { grid-template-columns: 1fr 1fr; padding: 20px; }
}

@media (max-width: 390px) {
  .user-native-shell .user-order-notes { grid-template-columns: 1fr; }
  .user-native-shell .user-order-notes p + p { border-top: 1px solid var(--ios-separator); border-left: 0; }
}

/* Product Design image-to-code v4: reference-led application workspace pass. */
.user-native-shell {
  --v4-blue: #2674F8;
  --v4-blue-soft: #EEF4FF;
  --v4-ink: #151922;
  --v4-muted: #747B87;
  --v4-faint: #A5ABB5;
  --v4-canvas: #F6F7F9;
  --v4-surface: #FFFFFF;
  --v4-line: #E7E9ED;
  --v4-shadow: 0 12px 30px rgba(28, 36, 52, .055);
  background: var(--v4-canvas);
}
.user-native-shell .content { background: var(--v4-canvas); }
.user-native-shell .page-head { margin-bottom: 20px; }
.user-native-shell .page-head h2 { color: var(--v4-ink); font-size: 28px; font-weight: 740; letter-spacing: -.045em; }
.user-native-shell .page-head p { color: var(--v4-muted); font-size: 12px; }
.user-native-shell .page-overline { display: none; }
.user-native-shell .head-actions .btn-primary,
.user-native-shell .form-actions .btn-primary { background: var(--v4-blue); box-shadow: 0 8px 18px rgba(38, 116, 248, .18); }
.user-native-shell .head-actions .btn-primary:hover:not(:disabled),
.user-native-shell .form-actions .btn-primary:hover:not(:disabled) { background: #1764EA; }
.user-native-shell .head-actions .btn-secondary { color: var(--v4-muted); }
.user-native-shell .card,
.user-native-shell .user-order-card { border-color: var(--v4-line); box-shadow: var(--v4-shadow); }
.user-native-shell .btn { font-weight: 680; }

/* Home is an app opening scene, with information on the canvas instead of a banner. */
.user-native-shell .client-home { gap: 18px; }
.user-native-shell .home-intro { padding: 8px 2px 4px; }
.user-native-shell .home-kicker { margin-bottom: 7px; color: var(--v4-blue); font-size: 11px; font-weight: 740; letter-spacing: .07em; }
.user-native-shell .home-intro h2 { color: var(--v4-ink); font-size: 34px; font-weight: 760; letter-spacing: -.06em; }
.user-native-shell .home-intro p { margin-top: 7px; color: var(--v4-muted); font-size: 13px; }
.user-native-shell .home-date { color: var(--v4-faint); font-size: 12px; }
.user-native-shell .home-overview { grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; }
.user-native-shell .home-focus,
.user-native-shell .home-metric { min-height: 148px; padding: 19px; border-radius: 18px; }
.user-native-shell .home-focus { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 0; color: #fff; background: #1A2230; box-shadow: 0 16px 32px rgba(20, 29, 45, .16); }
.user-native-shell .home-focus::after { content: ''; position: absolute; right: -26px; bottom: -42px; width: 138px; height: 138px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.user-native-shell .home-focus span,
.user-native-shell .home-metric span { color: var(--v4-muted); font-size: 12px; font-weight: 660; }
.user-native-shell .home-focus span { color: rgba(255,255,255,.6); }
.user-native-shell .home-focus strong,
.user-native-shell .home-metric strong { display: block; margin-top: 10px; font-variant-numeric: tabular-nums; font-size: 39px; font-weight: 740; line-height: 1; letter-spacing: -.065em; }
.user-native-shell .home-metric { border: 1px solid var(--v4-line); background: rgba(255,255,255,.68); box-shadow: none; }
.user-native-shell .home-metric strong { color: var(--v4-ink); }
.user-native-shell .home-focus small,
.user-native-shell .home-metric small { margin-top: 8px; color: var(--v4-faint); font-size: 11px; }
.user-native-shell .home-focus small { color: rgba(255,255,255,.55); }
.user-native-shell .home-text-link { color: var(--v4-blue); font-weight: 700; }
.user-native-shell .home-focus .home-text-link { position: relative; z-index: 1; margin-top: auto; color: #DCE8FF; }
.user-native-shell .home-actions { gap: 10px; }
.user-native-shell .home-action { min-height: 78px; border: 1px solid var(--v4-line); border-radius: 15px; background: rgba(255,255,255,.74); box-shadow: none; }
.user-native-shell .home-action:hover { border-color: #D5DBE5; background: #fff; }
.user-native-shell .home-action-primary { border-color: #1A2230; background: #1A2230; }
.user-native-shell .home-action-icon { border-radius: 11px; color: var(--v4-blue); background: var(--v4-blue-soft); }
.user-native-shell .home-action-primary .home-action-icon { color: #fff; background: rgba(255,255,255,.13); }
.user-native-shell .home-section-head { padding-top: 6px; }
.user-native-shell .home-section-head span { color: var(--v4-ink); font-size: 16px; font-weight: 730; }
.user-native-shell .home-section-head small { color: var(--v4-muted); }
.user-native-shell .home-recent-list { gap: 0; overflow: hidden; border: 1px solid var(--v4-line); border-radius: 16px; background: #fff; box-shadow: var(--v4-shadow); }
.user-native-shell .home-order-preview { min-height: 64px; padding: 12px 16px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.user-native-shell .home-order-preview + .home-order-preview { border-top: 1px solid var(--v4-line); }
.user-native-shell .home-order-preview:hover { border-color: transparent; background: #FAFBFC; }
.user-native-shell .home-order-id { color: var(--v4-faint); }
.user-native-shell .home-order-main strong { color: var(--v4-ink); font-weight: 700; }
.user-native-shell .home-order-main small { color: var(--v4-muted); }
.user-native-shell .home-empty { border-color: #DCE2EA; border-radius: 16px; background: rgba(255,255,255,.66); }

/* Reports use a dominant tracking number and quiet contextual information. */
.user-native-shell .user-order-list { gap: 14px; }
.user-native-shell .user-order-card { border: 1px solid var(--v4-line); border-radius: 17px; box-shadow: 0 7px 20px rgba(28, 36, 52, .035); }
.user-native-shell .user-order-card:hover { border-color: #D6DAE2; box-shadow: 0 15px 32px rgba(28, 36, 52, .07); }
.user-native-shell .user-order-card-overview { padding: 18px 18px 15px; }
.user-native-shell .user-order-label { color: var(--v4-faint); font-size: 10px; letter-spacing: .055em; }
.user-native-shell .user-order-card-head strong { color: var(--v4-ink); font-size: 18px; font-weight: 740; letter-spacing: .018em; }
.user-native-shell .order-detail-link { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border-radius: 50%; color: var(--v4-faint); background: #F5F6F8; }
.user-native-shell .order-detail-link:hover { color: var(--v4-blue); background: var(--v4-blue-soft); }
.user-native-shell .order-detail-link b { color: inherit; font-size: 21px; line-height: 1; }
.user-native-shell .user-order-meta { align-items: center; margin-top: 14px; }
.user-native-shell .user-order-meta .money { display: grid; justify-items: end; gap: 2px; }
.user-native-shell .user-order-meta .money small { color: var(--v4-faint); font-size: 10px; }
.user-native-shell .user-order-meta .money b { color: var(--v4-ink); font-size: 14px; }
.user-native-shell .user-order-statuses { display: flex; align-items: center; gap: 7px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--v4-line); }
.user-native-shell .user-order-statuses > span { color: var(--v4-faint); font-size: 10px; font-weight: 660; }
.user-native-shell .badge { min-height: 22px; border-radius: 7px; font-size: 10px; }
.user-native-shell .user-order-notes { border-top-color: var(--v4-line); background: #FBFCFD; }
.user-native-shell .user-order-notes p { color: #66707D; }
.user-native-shell .user-order-notes span { color: var(--v4-faint); }

/* Sequential form groups follow the native settings model rather than a single web form. */
.user-native-shell .order-form-card,
.user-native-shell .payment-form-card { display: grid; gap: 11px; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.user-native-shell .order-form-section,
.user-native-shell .payment-fields-section { padding: 19px 18px; border: 1px solid var(--v4-line); border-radius: 16px; background: #fff; box-shadow: var(--v4-shadow); }
.user-native-shell .order-form-section + .order-form-section { border-top: 1px solid var(--v4-line); }
.user-native-shell .order-form-identity { background: #FBFCFE; }
.user-native-shell .order-form-note { border-bottom: 1px solid var(--v4-line); }
.user-native-shell .form-section-heading { padding-bottom: 12px; border-bottom: 1px solid var(--v4-line); }
.user-native-shell .form-section-heading span { color: var(--v4-ink); }
.user-native-shell .field label { color: var(--v4-muted); font-size: 11px; }
.user-native-shell .input,
.user-native-shell .select,
.user-native-shell .textarea { border-color: #E5E8EC; background: #FAFBFC; }
.user-native-shell .input:focus,
.user-native-shell .select:focus,
.user-native-shell .textarea:focus { border-color: rgba(38,116,248,.52); box-shadow: 0 0 0 3px rgba(38,116,248,.09); }
.user-native-shell .form-actions { margin-top: 3px; border: 1px solid rgba(231,233,237,.88); border-radius: 15px; background: rgba(255,255,255,.9); box-shadow: 0 10px 26px rgba(28,36,52,.08); }

/* Payment information follows an account summary, settings rows, and QR management hierarchy. */
.user-native-shell .payment-profile-summary { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--v4-line); border-radius: 16px; background: #fff; box-shadow: var(--v4-shadow); }
.user-native-shell .payment-profile-avatar { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; color: #fff; background: var(--v4-blue); font-size: 16px; font-weight: 720; box-shadow: 0 7px 16px rgba(38,116,248,.20); }
.user-native-shell .payment-profile-summary small,
.user-native-shell .payment-profile-summary strong,
.user-native-shell .payment-profile-summary p { display: block; }
.user-native-shell .payment-profile-summary small { color: var(--v4-faint); font-size: 10px; }
.user-native-shell .payment-profile-summary strong { margin-top: 2px; color: var(--v4-ink); font-size: 15px; }
.user-native-shell .payment-profile-summary p { margin: 3px 0 0; color: var(--v4-muted); font-size: 11px; }
.user-native-shell .payment-upload-section { gap: 0; padding: 0; border: 1px solid var(--v4-line); border-radius: 16px; background: #fff; box-shadow: var(--v4-shadow); }
.user-native-shell .settings-group-heading { display: flex; justify-content: space-between; padding: 15px 17px 11px; }
.user-native-shell .settings-group-heading span { color: var(--v4-ink); font-size: 14px; font-weight: 710; }
.user-native-shell .settings-group-heading small { color: var(--v4-faint); font-size: 11px; }
.user-native-shell .payment-upload-card { padding: 14px 17px 16px; border: 0; border-top: 1px solid var(--v4-line); border-radius: 0; background: transparent; }
.user-native-shell .payment-method-head { margin-bottom: 10px; }
.user-native-shell .payment-upload-card .upload-box { min-height: 112px; border: 1px dashed #D8DEE7; border-radius: 12px; background: #FAFBFC; }
.user-native-shell .payment-upload-card .upload-box:hover { border-color: rgba(38,116,248,.48); background: #F5F8FF; }
.user-native-shell .payment-fields-section .form-section-heading { border-bottom-color: var(--v4-line); }

/* The desktop is a calm workspace, not an enlarged phone composition. */
@media (min-width: 861px) {
  .user-native-shell { grid-template-columns: 236px minmax(0, 1fr); }
  .user-desktop-sidebar { padding: 28px 16px 20px; border-right-color: var(--v4-line); }
  .user-desktop-brand { padding: 8px 11px 29px; color: var(--v4-ink); }
  .user-desktop-link { border-radius: 10px; }
  .user-desktop-link.active { color: var(--v4-blue); background: var(--v4-blue-soft); }
  .user-native-shell .content { width: min(100%, 1050px); padding: 42px 54px 64px; }
  .user-native-shell .client-home { max-width: 970px; }
  .user-native-shell .user-order-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(285px, .75fr); }
  .user-native-shell .user-order-card-overview { padding: 20px 22px; }
  .user-native-shell .user-order-notes { border-top: 0; border-left: 1px solid var(--v4-line); }
  .user-native-shell .user-order-notes p + p { border-top: 1px solid var(--v4-line); border-left: 0; }
  .user-native-shell .order-form-card { max-width: 760px; }
  .user-native-shell .payment-form-card { max-width: 900px; }
  .user-native-shell .payment-upload-section { grid-template-columns: 1fr 1fr; }
  .user-native-shell .settings-group-heading { grid-column: 1 / -1; }
  .user-native-shell .payment-upload-card + .payment-upload-card { border-top: 1px solid var(--v4-line); border-left: 1px solid var(--v4-line); }
  .user-native-shell .form-actions { position: static; padding: 14px 18px; }
}

@media (max-width: 860px) {
  .user-native-shell .content { padding: max(24px, env(safe-area-inset-top)) 16px calc(98px + env(safe-area-inset-bottom)); }
  .user-native-shell .home-intro { padding-top: 4px; }
  .user-native-shell .home-overview { grid-template-columns: 1.2fr 1fr; }
  .user-native-shell .home-focus { grid-row: span 2; min-height: 205px; }
  .user-native-shell .home-metric { min-height: 98px; padding: 15px; }
  .user-native-shell .home-metric strong { margin-top: 7px; font-size: 28px; }
  .user-native-shell .home-metric small { margin-top: 4px; font-size: 10px; }
  .user-native-shell .home-actions { grid-template-columns: 1fr; }
  .user-native-shell .home-action { min-height: 72px; }
  .user-native-shell .user-order-card-overview { padding: 17px 16px 14px; }
  .user-native-shell .user-order-notes p { min-height: 68px; padding: 12px 16px; }
  .user-native-shell .form-actions { bottom: calc(75px + env(safe-area-inset-bottom)); padding: 11px 13px; }
  .user-native-shell .mobile-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 9px calc(7px + env(safe-area-inset-bottom)); }
  .user-native-shell .mobile-tab { min-width: 0; border-radius: 9px; }
  .user-native-shell .mobile-tab:nth-child(2) { color: #8F97A4; background: transparent; box-shadow: none; }
  .user-native-shell .mobile-tab:nth-child(3) { color: #fff; background: var(--v4-blue); box-shadow: 0 5px 12px rgba(38,116,248,.20); }
  .user-native-shell .mobile-tab:nth-child(3).active,
  .user-native-shell .mobile-tab:nth-child(3).pending { color: #fff; }
}

/* Product Design image-to-code v5: light iOS workflow reference pass. */
.user-native-shell {
  --v5-blue: #256AF4;
  --v5-blue-soft: #EEF4FF;
  --v5-ink: #171B24;
  --v5-muted: #777F8C;
  --v5-faint: #A6ADB8;
  --v5-canvas: #F8F9FB;
  --v5-line: #E8EBEF;
  --v5-surface: #FFFFFF;
  --v5-shadow: 0 7px 20px rgba(25, 34, 50, .035);
  background: var(--v5-canvas);
}
.user-native-shell .content { background: var(--v5-canvas); }
.user-native-shell .page-head { margin-bottom: 18px; }
.user-native-shell .page-head h2 { color: var(--v5-ink); font-size: 26px; font-weight: 740; letter-spacing: -.04em; }
.user-native-shell .page-head p { color: var(--v5-muted); font-size: 12px; line-height: 1.55; }
.user-native-shell .head-actions .btn { min-height: 36px; border-radius: 9px; font-size: 12px; }
.user-native-shell .head-actions .btn-primary,
.user-native-shell .form-actions .btn-primary { background: var(--v5-blue); box-shadow: 0 6px 14px rgba(37, 106, 244, .16); }
.user-native-shell .head-actions .btn-secondary { color: var(--v5-muted); }
.user-native-shell .card,
.user-native-shell .user-order-card { border-color: var(--v5-line); box-shadow: var(--v5-shadow); }
.user-native-shell .btn { border-radius: 10px; font-weight: 670; }
.user-native-shell .input,
.user-native-shell .textarea,
.user-native-shell .select { border-color: var(--v5-line); border-radius: 9px; background: #fff; }
.user-native-shell .input:focus,
.user-native-shell .textarea:focus,
.user-native-shell .select:focus { border-color: rgba(37,106,244,.5); box-shadow: 0 0 0 3px rgba(37,106,244,.09); }

/* Home: a quiet application overview, not a dashboard. */
.user-native-shell .v5-home { gap: 20px; max-width: 930px; }
.user-native-shell .home-intro { align-items: center; padding: 3px 1px 2px; }
.user-native-shell .home-kicker { margin-bottom: 5px; color: var(--v5-blue); font-size: 10px; font-weight: 720; letter-spacing: .08em; }
.user-native-shell .home-intro h2 { color: var(--v5-ink); font-size: 27px; font-weight: 750; letter-spacing: -.045em; }
.user-native-shell .home-account-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0 7px 10px; border: 0; color: var(--v5-muted); background: transparent; font-size: 12px; }
.user-native-shell .home-account-link b { color: var(--v5-faint); font-size: 18px; font-weight: 400; }
.user-native-shell .home-work-summary { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 0; overflow: hidden; border: 1px solid var(--v5-line); border-radius: 12px; background: var(--v5-surface); box-shadow: var(--v5-shadow); }
.user-native-shell .home-focus,
.user-native-shell .home-metric { min-height: 112px; margin: 0; padding: 17px 18px; border: 0; border-radius: 0; color: var(--v5-ink); background: transparent; box-shadow: none; text-align: left; }
.user-native-shell .home-focus::after { display: none; }
.user-native-shell .home-metric { border-left: 1px solid var(--v5-line); cursor: pointer; }
.user-native-shell .home-focus span,
.user-native-shell .home-metric span { color: var(--v5-muted); font-size: 11px; font-weight: 650; }
.user-native-shell .home-focus strong,
.user-native-shell .home-metric strong { margin-top: 8px; color: var(--v5-ink); font-size: 31px; font-weight: 740; letter-spacing: -.055em; }
.user-native-shell .home-focus small,
.user-native-shell .home-metric small { color: var(--v5-faint); font-size: 10px; }
.user-native-shell .home-focus .home-text-link { margin-top: 7px; color: var(--v5-blue); font-size: 11px; }
.user-native-shell .home-metric small b { float: right; color: var(--v5-blue); font-size: 13px; font-weight: 500; }
.user-native-shell .home-create-action { min-height: 65px; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 11px; width: 100%; padding: 12px 17px; border: 0; border-radius: 11px; color: #fff; background: var(--v5-blue); box-shadow: 0 10px 20px rgba(37,106,244,.16); text-align: left; }
.user-native-shell .home-create-action > span:first-child { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.16); font-size: 19px; font-weight: 400; }
.user-native-shell .home-create-copy { min-width: 0; }
.user-native-shell .home-create-action strong,
.user-native-shell .home-create-action small { display: block; }
.user-native-shell .home-create-action strong { font-size: 14px; }
.user-native-shell .home-create-action small { margin-top: 3px; color: rgba(255,255,255,.68); font-size: 11px; }
.user-native-shell .home-create-action > b { color: rgba(255,255,255,.82); font-size: 19px; font-weight: 400; }
.user-native-shell .home-section-head { padding: 4px 1px 0; }
.user-native-shell .home-section-head span { color: var(--v5-ink); font-size: 15px; }
.user-native-shell .home-section-head small { color: var(--v5-faint); font-size: 11px; }
.user-native-shell .home-text-link { color: var(--v5-blue); font-size: 11px; }
.user-native-shell .home-recent-list { border-color: var(--v5-line); border-radius: 12px; box-shadow: var(--v5-shadow); }
.user-native-shell .home-order-preview { min-height: 62px; padding: 11px 15px; }
.user-native-shell .home-order-id { color: var(--v5-faint); font-size: 11px; }
.user-native-shell .home-order-main strong { color: var(--v5-ink); font-size: 13px; font-weight: 690; }
.user-native-shell .home-order-main small { color: var(--v5-muted); font-size: 10px; }
.user-native-shell .home-order-state { gap: 7px; }
.user-native-shell .home-empty { border-radius: 12px; border-color: var(--v5-line); box-shadow: none; }

/* Report rows preserve detail but remove the oversized SaaS-card treatment. */
.user-native-shell .orders-page-head { min-height: 46px; margin-bottom: 16px; }
.user-native-shell .user-order-list { gap: 10px; }
.user-native-shell .user-order-card { border: 1px solid var(--v5-line); border-radius: 12px; box-shadow: 0 5px 14px rgba(25,34,50,.025); }
.user-native-shell .user-order-card:hover { border-color: #D6DCE5; box-shadow: 0 9px 20px rgba(25,34,50,.045); transform: none; }
.user-native-shell .user-order-card-overview { padding: 15px 16px 12px; }
.user-native-shell .user-order-label { color: var(--v5-faint); font-size: 10px; letter-spacing: .03em; }
.user-native-shell .user-order-card-head strong { margin-top: 4px; color: var(--v5-ink); font-size: 16px; font-weight: 720; letter-spacing: .012em; }
.user-native-shell .order-detail-link { width: 28px; height: 28px; color: var(--v5-faint); background: #F6F7F9; }
.user-native-shell .order-detail-link:hover { color: var(--v5-blue); background: var(--v5-blue-soft); }
.user-native-shell .user-order-meta { margin-top: 10px; }
.user-native-shell .user-order-meta .money small { color: var(--v5-faint); }
.user-native-shell .user-order-meta .money b { color: var(--v5-ink); font-size: 13px; }
.user-native-shell .user-order-statuses { margin-top: 9px; padding-top: 9px; border-top-color: var(--v5-line); }
.user-native-shell .user-order-statuses > span { color: var(--v5-faint); font-size: 10px; }
.user-native-shell .badge { min-height: 21px; border-radius: 6px; font-size: 10px; font-weight: 660; }
.user-native-shell .user-order-notes { border-top-color: var(--v5-line); background: #FCFCFD; }
.user-native-shell .user-order-notes p { min-height: 57px; padding: 10px 16px; color: var(--v5-muted); font-size: 11px; line-height: 1.5; }
.user-native-shell .user-order-notes p:not(.text-pre-wrap) { overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.user-native-shell .user-order-notes span { color: var(--v5-faint); font-size: 9px; }

/* New report: section headers and fields form one restrained native flow. */
.user-native-shell .order-flow-form { gap: 0; max-width: 720px; }
.user-native-shell .order-flow-form .order-form-section { padding: 0 0 22px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.user-native-shell .order-flow-form .order-form-section + .order-form-section { padding-top: 22px; border-top: 1px solid var(--v5-line); }
.user-native-shell .order-flow-form .order-form-identity { background: transparent; }
.user-native-shell .order-flow-form .form-section-heading { margin-bottom: 12px; padding: 0; border: 0; }
.user-native-shell .order-flow-form .form-section-heading span { color: var(--v5-ink); font-size: 15px; }
.user-native-shell .order-flow-form .form-section-heading span::before { display: none; }
.user-native-shell .order-flow-form .form-section-heading small { color: var(--v5-faint); }
.user-native-shell .order-flow-form .field label { color: var(--v5-muted); font-size: 11px; }
.user-native-shell .order-flow-form .input,
.user-native-shell .order-flow-form .textarea { border-color: var(--v5-line); background: #fff; box-shadow: var(--v5-shadow); }
.user-native-shell .order-flow-form .input[readonly] { color: var(--v5-muted); background: #F4F6F8; box-shadow: none; }
.user-native-shell .order-flow-form .form-actions { margin: 0; padding: 11px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.user-native-shell .order-flow-form .form-actions .btn { min-height: 48px; border-radius: 10px; }

/* Payment: account card, QR manager, then identity fields. */
.user-native-shell .payment-form-card { gap: 18px; max-width: 700px; }
.user-native-shell .payment-account-card { min-height: 104px; padding: 19px; border: 0; border-radius: 12px; color: #fff; background: var(--v5-blue); box-shadow: 0 12px 22px rgba(37,106,244,.18); }
.user-native-shell .payment-account-card .payment-profile-avatar { width: 38px; height: 38px; border-radius: 10px; color: var(--v5-blue); background: #fff; box-shadow: none; }
.user-native-shell .payment-account-card small,
.user-native-shell .payment-account-card strong,
.user-native-shell .payment-account-card p { color: #fff; }
.user-native-shell .payment-account-card small { color: rgba(255,255,255,.67); }
.user-native-shell .payment-account-card strong { font-size: 16px; }
.user-native-shell .payment-account-card p { color: rgba(255,255,255,.78); }
.user-native-shell .payment-upload-section { border-color: var(--v5-line); border-radius: 12px; box-shadow: var(--v5-shadow); }
.user-native-shell .settings-group-heading { padding: 14px 16px 11px; }
.user-native-shell .settings-group-heading span { color: var(--v5-ink); font-size: 14px; }
.user-native-shell .settings-group-heading small { color: var(--v5-faint); }
.user-native-shell .payment-upload-card { padding: 13px 16px 15px; border-top-color: var(--v5-line); }
.user-native-shell .payment-method-head { margin-bottom: 9px; }
.user-native-shell .payment-method-icon { width: 30px; height: 30px; border-radius: 8px; }
.user-native-shell .payment-method-head label { color: var(--v5-ink); font-size: 13px; }
.user-native-shell .payment-method-head small { color: var(--v5-faint); }
.user-native-shell .payment-method-head em { border-radius: 5px; font-size: 9px; }
.user-native-shell .payment-upload-card .upload-box { min-height: 94px; border-color: #DCE2E9; border-radius: 9px; background: #FBFCFD; }
.user-native-shell .payment-upload-card .upload-preview img { height: 88px; }
.user-native-shell .payment-fields-section { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.user-native-shell .payment-fields-section .form-section-heading { padding: 0 0 12px; border-bottom-color: var(--v5-line); }
.user-native-shell .payment-fields-section .form-section-heading span::before { display: none; }
.user-native-shell .payment-form-card .form-actions { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }

@media (min-width: 861px) {
  .user-native-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .user-desktop-sidebar { padding: 25px 15px 18px; border-right-color: var(--v5-line); }
  .user-desktop-brand { padding: 8px 11px 26px; color: var(--v5-ink); font-size: 15px; }
  .user-desktop-link { min-height: 39px; border-radius: 8px; font-size: 13px; }
  .user-desktop-link.active { color: var(--v5-blue); background: var(--v5-blue-soft); }
  .user-native-shell .content { width: min(100%, 1120px); padding: 36px 52px 62px; }
  .user-native-shell .page-head h2 { font-size: 29px; }
  .user-native-shell .user-order-card { grid-template-columns: minmax(0, 1.34fr) minmax(270px, .66fr); }
  .user-native-shell .user-order-card-overview { padding: 17px 20px; }
  .user-native-shell .user-order-notes { border-top: 0; border-left-color: var(--v5-line); }
  .user-native-shell .user-order-notes p { min-height: 0; padding: 12px 15px; }
  .user-native-shell .user-order-notes p + p { border-top-color: var(--v5-line); }
  .user-native-shell .order-flow-form .form-actions { position: static; }
  .user-native-shell .payment-upload-section { grid-template-columns: 1fr 1fr; }
  .user-native-shell .payment-upload-card + .payment-upload-card { border-left-color: var(--v5-line); }
}

@media (max-width: 860px) {
  .user-native-shell .content { padding: max(22px, env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)); }
  .user-native-shell .home-work-summary { grid-template-columns: 1.18fr 1fr; }
  .user-native-shell .home-focus { grid-row: span 2; min-height: 176px; }
  .user-native-shell .home-metric { min-height: 88px; padding: 14px; }
  .user-native-shell .home-metric strong { margin-top: 6px; font-size: 26px; }
  .user-native-shell .home-metric small { margin-top: 3px; font-size: 9px; }
  .user-native-shell .home-create-action { min-height: 62px; }
  .user-native-shell .user-order-notes { grid-template-columns: 1fr 1fr; }
  .user-native-shell .user-order-notes p { min-height: 58px; padding: 10px 14px; }
  .user-native-shell .order-flow-form .form-actions { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 8; margin: 0 -16px; padding: 11px 16px 13px; border-top: 1px solid var(--v5-line); background: rgba(248,249,251,.94); backdrop-filter: blur(16px); }
  .user-native-shell .order-flow-form .form-actions .btn { width: 100%; }
  .user-native-shell .mobile-tabbar { border-color: var(--v5-line); background: rgba(255,255,255,.98); box-shadow: 0 -4px 16px rgba(25,34,50,.03); }
  .user-native-shell .mobile-tab { border-radius: 7px; color: #8B939F; }
  .user-native-shell .mobile-tab.active,
  .user-native-shell .mobile-tab.pending { color: var(--v5-blue); background: transparent; }
  .user-native-shell .mobile-tab:nth-child(3) { border-radius: 9px; background: var(--v5-blue); box-shadow: 0 5px 10px rgba(37,106,244,.18); }
}

@media (max-width: 390px) {
  .user-native-shell .home-intro h2 { font-size: 26px; }
  .user-native-shell .home-focus { padding: 15px; }
  .user-native-shell .home-focus strong { font-size: 29px; }
  .user-native-shell .user-order-notes { grid-template-columns: 1fr 1fr; }
  .user-native-shell .user-order-notes p + p { border-top: 0; border-left: 1px solid var(--v5-line); }
}

/* USER-UI-V7-FINAL-1TO1: reference-driven user surface only. */
.auth-user, .user-native-shell {
  --v7-bg: #f7f8fa; --v7-paper: #fff; --v7-ink: #17191e; --v7-muted: #7d838d;
  --v7-line: #e9ebef; --v7-blue: #1768e8; --v7-shadow: 0 2px 10px rgba(20, 28, 40, .025);
  color: var(--v7-ink); background: var(--v7-bg);
}
.auth-user { padding: 32px 20px; }
.auth-user .auth-hero, .auth-user .auth-side { width: min(100%, 402px); }
.auth-user .auth-hero { padding: 42px 0 20px; }
.auth-user .auth-hero h1 { font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
.auth-user .auth-card { padding: 26px 24px; border: 1px solid var(--v7-line); border-radius: 10px; box-shadow: var(--v7-shadow); }
.auth-user .auth-card h2 { font-size: 21px; font-weight: 650; }
.auth-user .auth-card > p { color: var(--v7-muted); font-size: 13px; }
.auth-user .input { min-height: 42px; border-color: var(--v7-line); border-radius: 8px; }
.auth-user .btn-primary { min-height: 42px; border-radius: 8px; background: var(--v7-blue); }
.auth-user .link-btn { color: var(--v7-blue); }

.user-native-shell { display: grid; grid-template-columns: 184px minmax(0, 1fr); min-height: 100vh; }
.user-native-shell .user-desktop-sidebar { position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; width: auto; height: 100vh; padding: 26px 14px 20px; border-right: 1px solid var(--v7-line); background: #fbfcfd; }
.user-native-shell .user-desktop-brand { padding: 0 12px 27px; color: var(--v7-ink); font-size: 15px; font-weight: 720; letter-spacing: -.025em; }
.user-native-shell .user-desktop-nav { display: grid; gap: 4px; }
.user-native-shell .user-desktop-link { display: flex; align-items: center; width: 100%; min-height: 39px; gap: 10px; padding: 0 12px; border: 0; border-radius: 7px; color: #626974; background: transparent; font-size: 13px; font-weight: 560; text-align: left; }
.user-native-shell .user-desktop-link span { width: 15px; color: inherit; font-size: 14px; text-align: center; }
.user-native-shell .user-desktop-link:hover { background: #f1f4f8; color: var(--v7-ink); }
.user-native-shell .user-desktop-link.active { color: var(--v7-blue); background: #edf4ff; font-weight: 650; }
.user-native-shell .user-desktop-identity { display: grid; gap: 3px; margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--v7-line); }
.user-native-shell .user-desktop-identity strong { color: #404650; font-size: 12px; font-weight: 620; }
.user-native-shell .user-desktop-identity span { color: #9ba1aa; font-size: 11px; }
.user-native-shell .user-desktop-logout { width: fit-content; margin-top: 9px; padding: 0; border: 0; color: var(--v7-muted); background: transparent; font-size: 12px; }
.user-native-shell .user-desktop-logout:hover { color: var(--v7-blue); }
.user-native-shell .main { min-width: 0; background: var(--v7-bg); }
.user-native-shell .topbar { display: none; }
.user-native-shell .content { width: min(100%, 1210px); min-height: 100vh; margin: 0 auto; padding: 42px 44px 58px; background: var(--v7-bg); }
.user-native-shell .page-head { margin-bottom: 20px; }
.user-native-shell .page-head h2 { color: var(--v7-ink); font-size: 23px; font-weight: 680; letter-spacing: -.035em; }
.user-native-shell .page-head p { margin-top: 6px; color: var(--v7-muted); font-size: 13px; }
.user-native-shell .head-actions .btn-primary, .user-native-shell .form-actions .btn-primary { border-radius: 8px; background: var(--v7-blue); }
.user-native-shell .card, .user-native-shell .user-orders-panel, .user-native-shell .user-order-card { border: 1px solid var(--v7-line); border-radius: 10px; background: var(--v7-paper); box-shadow: var(--v7-shadow); }
.user-native-shell .card-body { padding: 24px; }
.user-native-shell .input, .user-native-shell .select, .user-native-shell .textarea { border-color: var(--v7-line); border-radius: 8px; background: #fff; }
.user-native-shell .input { min-height: 42px; }
.user-native-shell .textarea { min-height: 130px; }
.user-native-shell .input:focus, .user-native-shell .select:focus, .user-native-shell .textarea:focus { border-color: #82aaf5; box-shadow: 0 0 0 3px rgba(23,104,232,.09); }
.user-native-shell .field label { color: #343942; font-size: 13px; font-weight: 620; }
.user-native-shell .form-actions { display: flex; justify-content: flex-end; margin: 22px 0 0; padding: 0; border: 0; background: transparent; }
.user-native-shell .form-actions .btn { min-width: 150px; min-height: 42px; }
.user-native-shell .order-form-card { width: min(100%, 610px); margin: 0 auto; padding: 0; overflow: hidden; }
.user-native-shell .order-form-section { padding: 26px; border: 0; }
.user-native-shell .order-form-card .form-actions { margin: 0; padding: 0 26px 26px; }
.user-native-shell .payment-form-card { width: min(100%, 720px); margin: 0 auto; padding: 0; overflow: hidden; }
.user-native-shell .payment-fields-section, .user-native-shell .payment-upload-section { padding: 24px 26px; border-bottom: 1px solid var(--v7-line); }
.user-native-shell .payment-upload-section { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.user-native-shell .payment-upload-section .settings-group-heading { grid-column: 1 / -1; }
.user-native-shell .payment-upload-card { padding: 14px; border: 1px solid var(--v7-line); border-radius: 9px; }
.user-native-shell .payment-method-head { min-height: auto; margin-bottom: 12px; }
.user-native-shell .payment-method-head label { color: #343942; font-size: 13px; font-weight: 620; }
.user-native-shell .payment-method-head small { color: var(--v7-muted); font-size: 12px; }
.user-native-shell .payment-upload-card .upload-box { min-height: 126px; border: 1px dashed #cbd3df; border-radius: 8px; background: #fafbfc; }
.user-native-shell .payment-upload-card .upload-preview img { height: 116px; }
.user-native-shell .payment-form-card .form-actions { margin: 0; padding: 20px 26px; border: 0; }
.user-native-shell .badge { min-height: 22px; padding: 3px 7px; border-radius: 5px; font-size: 11px; font-weight: 600; }

.user-native-shell .user-orders-panel { overflow: hidden; }
.user-native-shell .orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border-bottom: 1px solid var(--v7-line); }
.user-native-shell .order-filters { display: flex; gap: 7px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.user-native-shell .order-filter { flex: 0 0 auto; min-height: 30px; padding: 0 11px; border: 1px solid transparent; border-radius: 6px; color: #717783; background: transparent; font-size: 12px; }
.user-native-shell .order-filter:hover { color: var(--v7-blue); background: #f4f7fc; }
.user-native-shell .order-filter.active { border-color: #b9d1fb; color: var(--v7-blue); background: #eef5ff; }
.user-native-shell .order-search { position: relative; flex: 0 0 210px; }
.user-native-shell .order-search input { width: 100%; min-height: 32px; padding: 0 30px 0 10px; border: 1px solid var(--v7-line); border-radius: 6px; font-size: 12px; }
.user-native-shell .order-search span { position: absolute; right: 10px; top: 7px; color: #8b929d; font-size: 15px; pointer-events: none; }
.desktop-order-table { overflow-x: auto; }
.desktop-order-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.desktop-order-table th { height: 39px; padding: 0 16px; border-bottom: 1px solid var(--v7-line); color: #777e89; background: #fbfcfd; font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; }
.desktop-order-table td { height: 48px; padding: 8px 16px; border-bottom: 1px solid #f0f1f3; color: #4d535d; white-space: nowrap; }
.desktop-order-table tbody tr { cursor: pointer; }
.desktop-order-table tbody tr:hover { background: #fbfdff; }
.desktop-order-table .order-number-cell { color: #252a31; font-weight: 590; }
.table-detail-link { padding: 0; border: 0; color: var(--v7-blue); background: transparent; font-size: 12px; }
.mobile-order-list { display: none; }
.orders-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; color: #7d838d; font-size: 12px; }
.orders-pagination > div { display: flex; gap: 5px; }
.orders-pagination button { min-width: 27px; height: 27px; border: 1px solid transparent; border-radius: 5px; color: #616873; background: transparent; font-size: 12px; }
.orders-pagination button.active { color: #fff; background: var(--v7-blue); }
.orders-pagination button:disabled { color: #c1c6cd; }
.user-native-shell .user-order-detail { width: min(100%, 680px); margin: 0 auto; gap: 12px; }
.user-native-shell .user-detail-section { padding: 19px 21px; border-radius: 10px; }
.user-native-shell .user-detail-section .detail-item { border-color: var(--v7-line); border-radius: 7px; background: #fbfcfd; }
.user-native-shell .payment-proof-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.user-native-shell .payment-proof-item { border-color: var(--v7-line); border-radius: 8px; }

@media (max-width: 860px) {
  .auth-user { padding: max(22px, env(safe-area-inset-top)) 16px 32px; }
  .auth-user .auth-hero { padding: 20px 4px 18px; }
  .auth-user .auth-hero h1 { font-size: 20px; }
  .auth-user .auth-card { padding: 22px 18px; border-radius: 9px; }
  .user-native-shell { display: block; min-height: 100svh; }
  .user-native-shell .user-desktop-sidebar { display: none; }
  .user-native-shell .content { width: 100%; min-height: 100svh; padding: max(18px, env(safe-area-inset-top)) 14px calc(86px + env(safe-area-inset-bottom)); }
  .user-native-shell .page-head { align-items: center; margin-bottom: 14px; }
  .user-native-shell .page-head h2 { width: 100%; font-size: 16px; text-align: center; }
  .user-native-shell .page-head p, .user-native-shell .head-actions { display: none; }
  .user-native-shell .card, .user-native-shell .user-orders-panel, .user-native-shell .user-order-card { border-radius: 9px; }
  .user-native-shell .orders-toolbar { display: block; padding: 0; border: 0; }
  .user-native-shell .order-filters { gap: 4px; padding: 0 0 11px; }
  .user-native-shell .order-filter { min-height: 29px; padding: 0 9px; font-size: 11px; }
  .user-native-shell .order-search, .desktop-order-table { display: none; }
  .mobile-order-list { display: grid; gap: 8px; padding: 0; }
  .user-native-shell .user-orders-panel { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .user-native-shell .user-order-card { padding: 14px 13px 11px; box-shadow: none; }
  .user-native-shell .user-order-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .user-native-shell .user-order-card-head strong { min-width: 0; overflow: hidden; color: #242931; font-size: 14px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
  .user-native-shell .user-order-card-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto 10px; align-items: center; gap: 8px; margin-top: 12px; color: #868c96; font-size: 11px; }
  .user-native-shell .user-order-card-meta span:last-of-type { white-space: nowrap; }
  .user-native-shell .user-order-card-meta b { color: #9ca2ab; font-size: 18px; font-weight: 400; }
  .user-native-shell .user-order-note { display: -webkit-box; overflow: hidden; margin: 10px 0 0; padding-top: 9px; border-top: 1px solid #f0f1f3; color: #727984; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .orders-pagination { padding: 10px 2px 0; }
  .orders-pagination > div { gap: 3px; }
  .orders-pagination button { min-width: 25px; height: 25px; }
  .user-native-shell .order-form-card, .user-native-shell .payment-form-card { width: 100%; }
  .user-native-shell .order-form-section { padding: 18px 15px; }
  .user-native-shell .order-form-card .form-actions { padding: 4px 15px 15px; }
  .user-native-shell .form-actions .btn { width: 100%; min-width: 0; min-height: 42px; }
  .user-native-shell .payment-fields-section, .user-native-shell .payment-upload-section { padding: 18px 15px; }
  .user-native-shell .payment-upload-section { grid-template-columns: 1fr; }
  .user-native-shell .payment-upload-section .settings-group-heading { grid-column: auto; }
  .user-native-shell .payment-form-card .form-actions { padding: 15px; }
  .user-native-shell .payment-upload-card .upload-box { min-height: 112px; }
  .user-native-shell .mobile-tabbar { left: 0; right: 0; bottom: 0; width: 100%; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); border: 1px solid var(--v7-line); border-width: 1px 0 0; border-radius: 0; background: rgba(255,255,255,.98); box-shadow: 0 -3px 12px rgba(25,31,42,.035); }
  .user-native-shell .mobile-tabbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .user-native-shell .mobile-tab { min-height: 48px; border-radius: 7px; color: #7f8690; font-size: 10px; }
  .user-native-shell .mobile-tab span { font-size: 16px; line-height: 15px; }
  .user-native-shell .mobile-tab em { margin-top: 3px; font-size: 10px; font-style: normal; }
  .user-native-shell .mobile-tab:nth-child(3):not(.active):not(.pending) { color: #7f8690; background: transparent; box-shadow: none; }
  .user-native-shell .mobile-tab.active, .user-native-shell .mobile-tab.pending { color: var(--v7-blue); background: #edf4ff; }
  .user-native-shell .user-order-detail { width: 100%; }
  .user-native-shell .user-detail-section { padding: 16px; }
}

/* USER-HOME-ADDRESS-V1: functional address cards, scoped to the new user home. */
.shipping-home { width: min(100%, 760px); margin: 0 auto; }
.shipping-home-reminder { margin-bottom: 16px; padding: 13px 15px; border: 1px solid #dce7fb; border-radius: 9px; color: #45617f; background: #f4f8ff; font-size: 13px; line-height: 1.65; }
.shipping-address-group + .shipping-address-group { margin-top: 22px; }
.shipping-address-group h3 { margin: 0 0 10px; color: #343942; font-size: 14px; font-weight: 680; }
.shipping-address-list { display: grid; gap: 10px; }
.shipping-address-card { padding: 17px; border: 1px solid var(--v7-line, #e9ebef); border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(20, 28, 40, .025); }
.shipping-address-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shipping-address-category { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 5px; color: #315d9c; background: #eef4fc; font-size: 12px; font-weight: 650; line-height: 1.3; }
.shipping-address-card-head .btn { flex: 0 0 auto; min-height: 32px; border-radius: 7px; font-size: 12px; }
.shipping-address-person, .shipping-address-full, .shipping-address-note { margin: 12px 0 0; line-height: 1.65; }
.shipping-address-person { color: #343942; font-size: 13px; font-weight: 620; }
.shipping-address-person span { margin-left: 10px; color: #707783; font-weight: 500; }
.shipping-address-full { color: #4f5661; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.shipping-address-note { padding-top: 10px; border-top: 1px solid #eef0f3; color: #7b828d; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.shipping-address-empty { text-align: center; }
.admin-shipping-address-management { margin-top: 24px; }
.admin-shipping-address-heading { margin-bottom: 16px; }
.admin-shipping-address-heading .hint { margin: 7px 0 0; }
.admin-shipping-address-toggles { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; color: #555c66; font-size: 13px; }
.admin-shipping-address-toggles input { accent-color: #246bfd; }
.admin-shipping-address-list { display: grid; gap: 10px; margin-top: 22px; }
.admin-shipping-address-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 15px; border: 1px solid rgba(20,25,35,.09); border-radius: 10px; background: #fbfcfd; }
.admin-shipping-address-row.inactive { opacity: .68; }
.admin-shipping-address-row strong { color: #20242b; font-size: 14px; }
.admin-shipping-address-row p { margin: 6px 0 0; color: #616873; font-size: 12px; line-height: 1.55; }
.admin-shipping-address-row small { display: block; margin-top: 7px; color: #8a919b; font-size: 11px; }
.admin-shipping-address-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 7px; }
@media (max-width: 860px) {
  .user-native-shell .mobile-tabbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .user-native-shell .mobile-tab:nth-child(3):not(.active):not(.pending) { color: #7f8690; background: transparent; box-shadow: none; }
  .shipping-home { width: 100%; }
  .shipping-home-reminder { margin-bottom: 13px; padding: 12px; font-size: 12px; }
  .shipping-address-card { padding: 14px; }
  .shipping-address-card-head { align-items: flex-start; }
  .shipping-address-card-head strong { font-size: 14px; }
  .shipping-address-card-head .btn { min-height: 30px; padding-inline: 9px; font-size: 11px; }
  .shipping-address-person, .shipping-address-full { font-size: 12px; }
  .admin-shipping-address-row { display: grid; gap: 12px; }
  .admin-shipping-address-actions { width: 100%; }
  .admin-shipping-address-actions .btn { flex: 1; }
}

/* USER-UI-V8-FINAL cascade: kept last so legacy V1–V7 user-only rules cannot leak through. */
.auth-user, .user-native-shell { --u8-bg:#f5f6f8; --u8-paper:#fff; --u8-ink:#16181d; --u8-muted:#6f7580; --u8-line:#e7e9ed; --u8-blue:#2563eb; --u8-blue-soft:#eff5ff; --u8-shadow:0 1px 2px rgba(22,24,29,.03); color:var(--u8-ink); background:var(--u8-bg); }
.auth-user.static-auth, .auth-user { min-height:100vh; display:grid; grid-template-columns:minmax(300px,.82fr) minmax(360px,.54fr); align-items:center; gap:clamp(40px,8vw,140px); padding:48px clamp(30px,10vw,180px); background:var(--u8-bg); }
.auth-user::before, .auth-user::after, .auth-user .brand-mark { display:none; }
.auth-user .auth-hero, .auth-user .auth-side { width:100%; padding:0; }
.auth-user .auth-hero { display:block; }
.auth-user .auth-hero h1 { margin:0; color:var(--u8-ink); font-size:clamp(26px,2.2vw,34px); font-weight:700; letter-spacing:-.045em; line-height:1.2; }
.auth-user .auth-hero h1::before { content:'M'; display:grid; width:44px; height:44px; margin-bottom:18px; place-items:center; border-radius:10px; color:#fff; background:var(--u8-blue); font-size:22px; font-weight:760; letter-spacing:-.08em; }
.auth-user .auth-hero p { margin-top:11px; color:var(--u8-muted); font-size:14px; line-height:1.7; }
.auth-user .auth-points { display:none; }
.auth-user .auth-side { display:block; }
.auth-user .auth-card { width:min(100%,390px); margin-left:auto; padding:28px; border:1px solid var(--u8-line); border-radius:12px; background:var(--u8-paper); box-shadow:var(--u8-shadow); animation:none; }
.auth-user .auth-card h2 { margin-bottom:7px; color:var(--u8-ink); font-size:21px; font-weight:700; letter-spacing:-.03em; }
.auth-user .auth-card > p { margin-bottom:24px; color:var(--u8-muted); font-size:13px; line-height:1.65; }
.auth-user .field label { margin-bottom:7px; color:#373b43; font-size:12px; font-weight:650; }
.auth-user .input { min-height:42px; padding-inline:12px; border:1px solid var(--u8-line); border-radius:8px; background:#fff; font-size:14px; }
.auth-user .input:focus { border-color:#93b4f7; box-shadow:0 0 0 3px rgba(37,99,235,.09); }
.auth-user .btn-primary { min-height:42px; border-radius:8px; background:var(--u8-blue); box-shadow:none; font-size:14px; }
.auth-user .auth-switch { margin-top:17px; color:var(--u8-muted); font-size:13px; }
.auth-user .link-btn { color:var(--u8-blue); font-weight:650; }
.user-native-shell { grid-template-columns:208px minmax(0,1fr); }
.user-native-shell .user-desktop-sidebar { padding:24px 14px 18px; border-color:var(--u8-line); background:#fbfcfd; }
.user-native-shell .user-desktop-brand { padding:4px 12px 29px; color:var(--u8-ink); font-size:16px; font-weight:720; }
.user-native-shell .user-desktop-brand::before { content:'M'; display:inline-grid; width:24px; height:24px; margin-right:9px; place-items:center; border-radius:6px; color:#fff; background:var(--u8-blue); font-size:13px; vertical-align:-2px; }
.user-native-shell .user-desktop-nav { gap:3px; }
.user-native-shell .user-desktop-link { min-height:38px; padding-inline:12px; border-radius:7px; color:#737985; font-size:13px; font-weight:560; }
.user-native-shell .user-desktop-link.active { color:var(--u8-blue); background:var(--u8-blue-soft); font-weight:680; }
.user-native-shell .user-desktop-identity { border-color:var(--u8-line); }
.user-native-shell .main, .user-native-shell .content { background:var(--u8-bg); }
.user-native-shell .content { width:min(100%,1360px); padding:38px clamp(30px,4vw,64px) 56px; }
.user-native-shell .page-head { margin-bottom:18px; }
.user-native-shell .page-head h2 { color:var(--u8-ink); font-size:23px; font-weight:720; letter-spacing:-.035em; }
.user-native-shell .page-head p { margin-top:6px; color:var(--u8-muted); font-size:13px; }
.user-native-shell .card, .user-native-shell .user-orders-panel, .user-native-shell .user-order-card { border:1px solid var(--u8-line); border-radius:11px; background:var(--u8-paper); box-shadow:var(--u8-shadow); }
.user-native-shell .input, .user-native-shell .select, .user-native-shell .textarea { border-color:var(--u8-line); border-radius:8px; color:var(--u8-ink); }
.user-native-shell .input:focus, .user-native-shell .select:focus, .user-native-shell .textarea:focus { border-color:#8daef2; box-shadow:0 0 0 3px rgba(37,99,235,.09); }
.user-native-shell .btn-primary { border-radius:8px; background:var(--u8-blue); box-shadow:none; }
.user-native-shell .btn-secondary { border-radius:8px; border-color:var(--u8-line); background:#fff; }
.user-native-shell .badge { min-height:21px; padding:3px 7px; border-radius:5px; font-size:10px; font-weight:650; line-height:1.3; }
.user-native-shell .shipping-home { width:100%; max-width:none; margin:0; }
.user-native-shell .shipping-page-head { margin-bottom:12px; }
.user-native-shell .shipping-category-tabs { display:flex; gap:7px; overflow-x:auto; margin-bottom:13px; padding-bottom:1px; scrollbar-width:none; }
.user-native-shell .shipping-category-tab { flex:0 0 auto; min-height:30px; padding:0 10px; border:1px solid var(--u8-line); border-radius:6px; color:var(--u8-muted); background:#fff; font-size:12px; }
.user-native-shell .shipping-category-tab small { margin-left:3px; color:inherit; font-size:10px; }
.user-native-shell .shipping-category-tab.active { border-color:#bdd1fa; color:var(--u8-blue); background:var(--u8-blue-soft); font-weight:650; }
.user-native-shell .shipping-address-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.user-native-shell .shipping-address-card { display:flex; min-height:190px; flex-direction:column; padding:17px 18px 15px; border-color:var(--u8-line); border-radius:11px; box-shadow:var(--u8-shadow); }
.user-native-shell .shipping-address-card-head { gap:10px; }
.user-native-shell .shipping-address-category { min-height:22px; padding:2px 7px; border-radius:5px; color:#385f9b; background:#eff5ff; font-size:11px; font-weight:650; }
.user-native-shell .shipping-address-card-head .btn { min-height:29px; padding-inline:9px; border-radius:6px; color:var(--u8-blue); border-color:#d8e4fb; background:#fff; font-size:11px; }
.user-native-shell .shipping-address-person { margin-top:16px; color:#2b3038; font-size:14px; font-weight:680; }
.user-native-shell .shipping-address-person span { color:var(--u8-muted); font-size:12px; font-weight:500; }
.user-native-shell .shipping-address-full { margin-top:9px; color:#515864; font-size:13px; line-height:1.6; }
.user-native-shell .shipping-address-note { margin-top:auto; padding-top:10px; border-color:#eef0f2; color:var(--u8-muted); font-size:12px; }
.user-native-shell .shipping-address-empty { padding:46px 20px; border:1px dashed var(--u8-line); border-radius:11px; background:#fbfcfd; }
.user-native-shell .orders-toolbar { padding:11px 14px; border-color:var(--u8-line); }
.user-native-shell .order-filter { min-height:29px; border-radius:6px; font-size:11px; }
.user-native-shell .order-filter.active { border-color:#c4d6fa; color:var(--u8-blue); background:var(--u8-blue-soft); }
.user-native-shell .order-search input { min-height:31px; border-color:var(--u8-line); border-radius:6px; }
.user-native-shell .desktop-order-table th { height:38px; padding-inline:14px; border-color:var(--u8-line); background:#fafbfc; }
.user-native-shell .desktop-order-table td { height:47px; padding-inline:14px; border-color:#eef0f2; }
.user-native-shell .desktop-order-table tbody tr:hover { background:#f9fbff; }
.user-native-shell .orders-pagination { padding:11px 14px; }
.user-native-shell .order-form-card { width:min(100%,760px); margin:0; }
.user-native-shell .order-form-section { padding:0 22px; }
.user-native-shell .order-form-section .field { padding:18px 0; border-bottom:1px solid var(--u8-line); }
.user-native-shell .order-form-section .field:last-child { border-bottom:0; }
.user-native-shell .order-form-card .form-actions { margin:0; padding:18px 22px 20px; border-top:1px solid var(--u8-line); }
.user-native-shell .order-form-card .textarea { min-height:98px; }
.user-native-shell .payment-form-card { width:min(100%,900px); margin:0; }
.user-native-shell .payment-fields-section { padding:21px 22px; border-color:var(--u8-line); }
.user-native-shell .payment-fields-section .form-grid { margin-top:16px; }
.user-native-shell .settings-group-heading { margin:0; }
.user-native-shell .settings-group-heading span { color:var(--u8-ink); font-size:14px; font-weight:700; }
.user-native-shell .settings-group-heading small { margin-top:4px; color:var(--u8-muted); font-size:12px; }
.user-native-shell .payment-updated-at { grid-column:1 / -1; color:#959ba5; font-size:11px; }
.user-native-shell .payment-upload-section { gap:12px; padding:21px 22px 22px; border-color:var(--u8-line); background:#fbfcfd; }
.user-native-shell .payment-upload-card { padding:13px; border-color:var(--u8-line); border-radius:9px; background:#fff; }
.user-native-shell .payment-method-head { margin-bottom:9px; }
.user-native-shell .payment-upload-card .upload-box { min-height:108px; border:1px dashed #cfd6df; border-radius:8px; background:#fafbfc; }
.user-native-shell .payment-upload-card .upload-preview img { height:96px; }
.user-native-shell .payment-form-card .form-actions { padding:17px 22px 20px; }
.user-native-shell .user-order-detail { width:min(100%,760px); margin:0; gap:10px; }
.user-native-shell .user-detail-section { padding:18px 20px; }
.user-native-shell .user-detail-section .section-title { margin-bottom:13px; color:var(--u8-ink); font-size:14px; }
.user-native-shell .user-detail-status { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.user-native-shell .user-detail-status .section-title { margin:0; }
.user-native-shell .user-detail-status p { margin:5px 0 0; color:var(--u8-muted); font-size:12px; }
.user-native-shell .user-status-card { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.user-native-shell .user-admin-note-section { background:#fafbfc; }
.user-native-shell .user-admin-note { min-height:0; margin:0; padding:13px; border-radius:8px; color:#49505b; background:#f1f3f6; font-size:13px; line-height:1.7; }
.user-native-shell .payment-proof-grid { grid-template-columns:repeat(auto-fill,minmax(116px,1fr)); gap:9px; }
.user-native-shell .payment-proof-item, .user-native-shell .payment-proof-item img { min-height:116px; height:116px; border-radius:8px; }
@media (max-width:860px) {
  .auth-user.static-auth, .auth-user { display:block; padding:max(24px,env(safe-area-inset-top)) 18px 32px; }
  .auth-user .auth-hero { padding:10px 2px 24px; }
  .auth-user .auth-hero h1 { font-size:21px; }
  .auth-user .auth-hero h1::before { width:34px; height:34px; margin-bottom:13px; border-radius:8px; font-size:17px; }
  .auth-user .auth-hero p { margin-top:7px; font-size:12px; }
  .auth-user .auth-card { width:100%; margin:0; padding:22px 18px; }
  .auth-user .auth-card h2 { font-size:19px; }
  .user-native-shell .content { padding:max(18px,env(safe-area-inset-top)) 14px calc(76px + env(safe-area-inset-bottom)); }
  .user-native-shell .page-head { margin-bottom:14px; }
  .user-native-shell .page-head h2 { font-size:17px; text-align:left; }
  .user-native-shell .page-head p { display:block; margin-top:5px; font-size:12px; text-align:left; }
  .user-native-shell .head-actions { display:none; }
  .user-native-shell .shipping-address-list { grid-template-columns:1fr; gap:9px; }
  .user-native-shell .shipping-address-card { min-height:176px; padding:14px; }
  .user-native-shell .shipping-address-person { margin-top:13px; }
  .user-native-shell .shipping-category-tabs { margin-bottom:10px; }
  .user-native-shell .user-orders-panel { border:0; background:transparent; box-shadow:none; }
  .user-native-shell .orders-toolbar { padding:0 0 9px; }
  .user-native-shell .order-search, .user-native-shell .desktop-order-table { display:none; }
  .user-native-shell .mobile-order-list { gap:8px; }
  .user-native-shell .user-order-card { padding:13px; border-color:var(--u8-line); }
  .user-native-shell .user-order-card-meta { margin-top:9px; }
  .user-native-shell .user-order-note { margin-top:8px; padding-top:8px; }
  .user-native-shell .order-form-card { border-radius:10px; }
  .user-native-shell .order-form-section { padding:0 16px; }
  .user-native-shell .order-form-section .field { padding:15px 0; }
  .user-native-shell .order-form-card .form-actions { position:sticky; bottom:calc(60px + env(safe-area-inset-bottom)); z-index:8; margin:0 -14px; padding:10px 14px 12px; border-top:1px solid var(--u8-line); background:rgba(245,246,248,.96); }
  .user-native-shell .order-form-card .form-actions .btn { min-height:42px; }
  .user-native-shell .payment-fields-section, .user-native-shell .payment-upload-section { padding:17px 16px; }
  .user-native-shell .payment-fields-section .form-grid { margin-top:13px; }
  .user-native-shell .payment-upload-section { grid-template-columns:1fr; }
  .user-native-shell .payment-form-card .form-actions { padding:14px 16px 16px; }
  .user-native-shell .user-detail-status { align-items:flex-start; }
  .user-native-shell .user-status-card { max-width:46%; }
  .user-native-shell .mobile-tabbar { min-height:60px; padding:5px 8px calc(5px + env(safe-area-inset-bottom)); border-color:var(--u8-line); background:rgba(255,255,255,.98); box-shadow:none; }
  .user-native-shell .mobile-tab { min-height:48px; border-radius:6px; color:#858b95; }
  .user-native-shell .mobile-tab span { font-size:15px; }
  .user-native-shell .mobile-tab em { margin-top:2px; font-size:10px; }
  .user-native-shell .mobile-tab.active, .user-native-shell .mobile-tab.pending { color:var(--u8-blue); background:transparent; }
}

/* USER-UI-BATCH-1-FINAL: reference-driven layout for user home, orders, and navigation only. */
.user-native-shell { grid-template-columns: 180px minmax(0, 1fr); }
.user-native-shell .user-desktop-sidebar { padding: 24px 12px 18px; background: #fff; }
.user-native-shell .user-desktop-brand { padding: 4px 12px 27px; }
.user-native-shell .user-desktop-nav { gap: 4px; }
.user-native-shell .user-desktop-link { min-height: 38px; padding-inline: 12px; border-radius: 7px; }
.user-native-shell .user-desktop-identity { padding: 15px 12px 0; }
.user-native-shell .user-desktop-logout { margin-top: 9px; }
.user-native-shell .content:has(.shipping-home),
.user-native-shell .content:has(.user-orders-page) { width: 100%; max-width: none; margin: 0; padding: 28px 24px 42px; }
.user-native-shell .content:has(.shipping-home) .page-head,
.user-native-shell .content:has(.user-orders-page) .page-head { margin-bottom: 14px; }
.user-native-shell .content:has(.shipping-home) .page-head h2,
.user-native-shell .content:has(.user-orders-page) .page-head h2 { font-size: 22px; letter-spacing: 0; }
.user-native-shell .content:has(.shipping-home) .page-head p,
.user-native-shell .content:has(.user-orders-page) .page-head p { margin-top: 5px; }
.user-native-shell .shipping-category-tabs { gap: 4px; margin-bottom: 14px; }
.user-native-shell .shipping-category-tab { min-height: 31px; padding: 0 11px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; }
.user-native-shell .shipping-category-tab.active { border-color: var(--u8-blue); background: transparent; }
.user-native-shell .shipping-address-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.user-native-shell .shipping-address-card { min-height: 202px; padding: 16px; border-radius: 9px; box-shadow: none; }
.user-native-shell .shipping-address-card-head .btn { min-height: 28px; padding-inline: 8px; }
.user-native-shell .shipping-address-person { margin-top: 14px; }
.user-native-shell .shipping-address-full { margin-top: 8px; }
.user-native-shell .shipping-address-note { margin-top: auto; padding-top: 9px; }
.user-native-shell .user-orders-panel { overflow: hidden; border-radius: 9px; box-shadow: none; }
.user-native-shell .desktop-order-table { width: 100%; overflow-x: auto; }
.user-native-shell .desktop-order-table table { min-width: 940px; font-size: 12px; }
.user-native-shell .desktop-order-table th { height: 40px; padding: 0 16px; background: #fafbfc; color: var(--u8-muted); font-weight: 650; }
.user-native-shell .desktop-order-table td { height: 56px; padding: 8px 16px; }
.user-native-shell .desktop-order-table .order-number-cell { color: var(--u8-ink); font-weight: 650; }
.user-native-shell .desktop-order-table .order-note-cell { max-width: 260px; overflow: hidden; color: var(--u8-muted); text-overflow: ellipsis; }
.user-native-shell .table-detail-link { color: var(--u8-blue); font-weight: 620; }
.user-native-shell .mobile-tabbar { border-color: var(--u8-line); box-shadow: none; }

@media (min-width: 861px) and (max-width: 1160px) {
  .user-native-shell .shipping-address-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .user-native-shell .content:has(.shipping-home),
  .user-native-shell .content:has(.user-orders-page) { padding: max(16px, env(safe-area-inset-top)) 16px calc(76px + env(safe-area-inset-bottom)); }
  .user-native-shell .content:has(.shipping-home) .page-head,
  .user-native-shell .content:has(.user-orders-page) .page-head { margin-bottom: 12px; }
  .user-native-shell .content:has(.shipping-home) .page-head h2,
  .user-native-shell .content:has(.user-orders-page) .page-head h2 { font-size: 17px; }
  .user-native-shell .content:has(.shipping-home) .page-head p,
  .user-native-shell .content:has(.user-orders-page) .page-head p { font-size: 12px; }
  .user-native-shell .shipping-category-tabs { gap: 2px; margin: 0 -2px 10px; }
  .user-native-shell .shipping-category-tab { min-height: 29px; padding: 0 9px; font-size: 11px; }
  .user-native-shell .shipping-address-list { grid-template-columns: 1fr; gap: 9px; }
  .user-native-shell .shipping-address-card { min-height: 0; padding: 13px; }
  .user-native-shell .shipping-address-card-head { align-items: flex-start; }
  .user-native-shell .shipping-address-card-head .btn { min-height: 27px; font-size: 10px; }
  .user-native-shell .shipping-address-person { margin-top: 12px; font-size: 13px; }
  .user-native-shell .shipping-address-full { font-size: 12px; line-height: 1.55; }
  .user-native-shell .shipping-address-note { margin-top: 10px; font-size: 11px; }
  .user-native-shell .user-orders-panel { border: 0; background: transparent; }
  .user-native-shell .desktop-order-table { display: none; }
  .user-native-shell .mobile-order-list { display: grid; gap: 8px; }
  .user-native-shell .user-order-card { padding: 12px 13px; border-radius: 8px; box-shadow: none; }
  .user-native-shell .user-order-card-head strong { font-size: 13px; }
  .user-native-shell .user-order-card-meta { margin-top: 8px; }
  .user-native-shell .user-order-payment { margin-top: 8px; }
  .user-native-shell .user-order-note { margin-top: 8px; padding-top: 8px; font-size: 11px; }
  .user-native-shell .mobile-tabbar { min-height: 60px; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 0; }
  .user-native-shell .mobile-tab { min-height: 50px; border-radius: 0; }
  .user-native-shell .mobile-tab.active, .user-native-shell .mobile-tab.pending { background: transparent; }
}

/* USER-MOBILE-FIX-V1-FINAL: targeted mobile fixes for category filtering, tabbar visibility, and payment QR layout. */
.user-native-shell .payment-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.user-native-shell .payment-qr-action {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--u8-line, #e7e9ed);
  border-radius: 7px;
  color: var(--u8-blue, #2563eb);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}
.user-native-shell .payment-qr-action.danger {
  border-color: #f3c6c6;
  color: #c73737;
  background: #fffafa;
}
.user-native-shell .payment-method-head {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.user-native-shell .payment-method-head > div {
  min-width: 0;
  width: 100%;
}
.user-native-shell .payment-method-head label,
.user-native-shell .payment-method-head small {
  writing-mode: horizontal-tb;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}
.user-native-shell .payment-upload-card .upload-preview .remove-image[data-remove-existing] {
  display: none !important;
  pointer-events: none !important;
}
.user-native-shell .payment-upload-card .upload-preview img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 860px) {
  .user-native-shell .mobile-tabbar {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    min-height: 60px;
    gap: 0;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  }
  .user-native-shell .mobile-tab {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    color: #858b95 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .user-native-shell .mobile-tab.active,
  .user-native-shell .mobile-tab.pending {
    color: var(--u8-blue, #2563eb) !important;
    background: transparent !important;
  }
  .user-native-shell .mobile-tab span,
  .user-native-shell .mobile-tab em {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .user-native-shell .payment-upload-section {
    grid-template-columns: 1fr !important;
  }
  .user-native-shell .payment-upload-card {
    min-width: 0;
  }
  .user-native-shell .payment-method-head {
    margin-bottom: 10px;
  }
  .user-native-shell .payment-upload-card .upload-box {
    min-height: 180px;
    padding: 12px;
  }
  .user-native-shell .payment-upload-card .upload-preview img {
    max-height: 280px;
    border-radius: 8px;
  }
  .user-native-shell .payment-qr-actions {
    justify-content: flex-start;
  }
}

/* CLIENT-MOTION-V1-FINAL: restrained user-side motion and state feedback. */
:root {
  --client-motion-ease: cubic-bezier(0.2, 0, 0, 1);
  --client-motion-press: 90ms;
  --client-motion-fast: 150ms;
  --client-motion-page: 180ms;
  --client-motion-detail: 210ms;
}

.user-native-shell .client-route-motion {
  animation: clientRouteIn var(--client-motion-page) var(--client-motion-ease) both;
}
.user-native-shell .client-route-detail-enter {
  animation-name: clientDetailIn;
  animation-duration: var(--client-motion-detail);
}
.user-native-shell .client-route-list-return {
  animation-name: clientListReturn;
  animation-duration: 190ms;
}
.user-native-shell .client-list-enter {
  animation: clientListIn 160ms var(--client-motion-ease) both;
}
@keyframes clientRouteIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes clientDetailIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes clientListReturn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes clientListIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-native-shell .mobile-tab {
  transform: translateZ(0);
  transition-property: color, background-color, border-color, transform;
  transition-duration: 160ms;
  transition-timing-function: var(--client-motion-ease);
}
.user-native-shell .mobile-tab span,
.user-native-shell .mobile-tab em {
  transition-property: color, transform, opacity;
  transition-duration: 160ms;
  transition-timing-function: var(--client-motion-ease);
}
.user-native-shell .mobile-tab:active {
  transform: scale(.985);
}
.user-native-shell .mobile-tab.active span,
.user-native-shell .mobile-tab.pending span {
  animation: clientTabPop 160ms var(--client-motion-ease) both;
}
@keyframes clientTabPop {
  from { transform: scale(.96); }
  to { transform: scale(1); }
}

.user-native-shell .shipping-category-tab {
  position: relative;
  transition-property: color, border-color, background-color, transform;
  transition-duration: 160ms;
  transition-timing-function: var(--client-motion-ease);
}
.user-native-shell .shipping-category-tab::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.55);
  transform-origin: center;
  transition-property: opacity, transform;
  transition-duration: 160ms;
  transition-timing-function: var(--client-motion-ease);
}
.user-native-shell .shipping-category-tab.active::after {
  opacity: 1;
  transform: scaleX(1);
}
.user-native-shell .shipping-category-tab:active {
  transform: scale(.985);
}

.user-native-shell .btn,
.user-native-shell .payment-qr-action,
.user-native-shell .table-detail-link,
.user-native-shell .user-desktop-link,
.user-native-shell .user-desktop-logout,
.user-native-shell .upload-box,
.user-native-shell [data-copy-shipping-address] {
  transition-property: transform, opacity, background-color, color, border-color, filter;
  transition-duration: var(--client-motion-fast);
  transition-timing-function: var(--client-motion-ease);
}
.user-native-shell .btn:active:not(:disabled),
.user-native-shell .payment-qr-action:active:not(:disabled),
.user-native-shell .table-detail-link:active:not(:disabled),
.user-native-shell .user-desktop-link:active,
.user-native-shell .user-desktop-logout:active,
.user-native-shell .upload-box:active,
.user-native-shell [data-copy-shipping-address]:active {
  transform: scale(.985);
  filter: brightness(.985);
}
.user-native-shell .btn:disabled {
  cursor: not-allowed;
  opacity: .72;
}
.user-native-shell .input,
.user-native-shell .textarea,
.user-native-shell .select {
  transition-property: border-color, background-color, color;
  transition-duration: 150ms;
  transition-timing-function: var(--client-motion-ease);
}
.user-native-shell .badge,
.user-native-shell .status-badge {
  transition-property: color, background-color, border-color, opacity, transform;
  transition-duration: 160ms;
  transition-timing-function: var(--client-motion-ease);
}
.user-native-shell .user-order-card,
.user-native-shell .desktop-order-table tbody tr[data-go],
.user-native-shell .shipping-address-card {
  transition-property: transform, border-color, background-color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: var(--client-motion-ease);
}
.user-native-shell .user-order-card:active,
.user-native-shell .desktop-order-table tbody tr[data-go]:active,
.user-native-shell .shipping-address-card:active {
  transform: scale(.992);
}

.toast {
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: var(--client-motion-ease, ease-out);
}
.toast.toast-leave {
  opacity: 0;
  transform: translateY(-6px) scale(.99);
}
.image-modal {
  opacity: 1;
  transition-property: opacity;
  transition-duration: 180ms;
  transition-timing-function: var(--client-motion-ease, ease-out);
  backdrop-filter: none;
}
.image-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.image-modal img {
  animation: clientModalImageIn 180ms var(--client-motion-ease, ease-out) both;
}
@keyframes clientModalImageIn {
  from { opacity: .88; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .user-native-shell .client-route-motion,
  .user-native-shell .client-route-detail-enter,
  .user-native-shell .client-route-list-return,
  .user-native-shell .client-list-enter,
  .user-native-shell .mobile-tab.active span,
  .user-native-shell .mobile-tab.pending span,
  .image-modal img {
    animation-duration: 80ms !important;
    transform: none !important;
  }
  .user-native-shell .mobile-tab,
  .user-native-shell .shipping-category-tab,
  .user-native-shell .btn,
  .user-native-shell .payment-qr-action,
  .toast,
  .image-modal {
    transition-duration: 80ms !important;
  }
}

@media (max-width: 760px) {
  .user-native-shell .payment-form-card {
    overflow: visible;
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }
  .user-native-shell .payment-upload-section {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .user-native-shell .payment-upload-card .upload-preview img {
    height: auto;
    max-height: clamp(180px, 34vh, 240px);
    object-fit: contain;
  }
  .user-native-shell .payment-qr-actions {
    row-gap: 8px;
  }
  .user-native-shell .payment-qr-action {
    min-height: 32px;
  }
  .user-native-shell .content {
    scroll-padding-bottom: calc(152px + env(safe-area-inset-bottom));
  }
}

/* USER-LOGOUT-V1-FINAL: user-only logout entry and confirmation dialog. */
.user-native-shell .user-desktop-logout {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: #B94B4B;
  background: transparent;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.2;
}
.user-native-shell .user-desktop-logout:hover { color: #9F3636; background: transparent; }
.user-native-shell .user-desktop-logout-icon {
  display: inline-grid;
  width: 14px;
  place-items: center;
  color: inherit;
  font-size: 13px;
  line-height: 1;
}
.user-native-shell .payment-logout-section { display: none; }
.user-native-shell .payment-logout-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #E3C8C8;
  border-radius: 8px;
  color: #B94B4B;
  background: #FFFFFF;
  box-shadow: none;
  font-weight: 650;
  transition-property: transform, background-color, border-color, color, opacity;
  transition-duration: 140ms;
  transition-timing-function: var(--client-motion-ease, cubic-bezier(0.2, 0, 0, 1));
}
.user-native-shell .payment-logout-button:hover { border-color: #D8B2B2; background: #FFF8F8; }
.user-native-shell .payment-logout-button:active { transform: scale(.985); }
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 1;
  background: rgba(22, 24, 29, .34);
  transition-property: opacity;
  transition-duration: 180ms;
  transition-timing-function: var(--client-motion-ease, cubic-bezier(0.2, 0, 0, 1));
}
.confirm-modal.confirm-modal-hidden {
  opacity: 0;
  pointer-events: none;
}
.confirm-modal-card {
  width: min(100%, 360px);
  padding: 22px;
  border: 1px solid #E7E9ED;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(22, 24, 29, .12);
  transform: translateY(0) scale(1);
  transition-property: transform, opacity;
  transition-duration: 180ms;
  transition-timing-function: var(--client-motion-ease, cubic-bezier(0.2, 0, 0, 1));
}
.confirm-modal.confirm-modal-hidden .confirm-modal-card {
  opacity: .94;
  transform: translateY(6px) scale(.985);
}
.confirm-modal-card h3 {
  margin: 0;
  color: #16181D;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}
.confirm-modal-card p {
  margin: 9px 0 0;
  color: #6F7580;
  font-size: 14px;
  line-height: 1.7;
}
.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.confirm-modal-actions .btn {
  min-height: 38px;
  min-width: 88px;
  border-radius: 8px;
}
@media (max-width: 860px) {
  .user-native-shell .payment-logout-section {
    display: block;
    width: min(100%, 720px);
    margin: 12px auto 0;
    padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  }
  .user-native-shell .payment-form-card {
    padding-bottom: calc(148px + env(safe-area-inset-bottom));
  }
  .confirm-modal {
    align-items: end;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .confirm-modal-card {
    width: 100%;
    border-radius: 12px;
  }
  .confirm-modal-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .confirm-modal,
  .confirm-modal-card,
  .user-native-shell .payment-logout-button {
    transition-duration: 80ms !important;
  }
  .confirm-modal.confirm-modal-hidden .confirm-modal-card,
  .user-native-shell .payment-logout-button:active {
    transform: none;
  }
}

/* USER-AUTH-UI-V1-FINAL cascade: kept last so legacy user-auth styles cannot override it. */
.auth-page.auth-user {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(460px, 3fr);
  align-items: stretch;
  min-height: 100svh;
  padding: 0;
  overflow: auto;
  color: #16181D;
  background: #F5F6F8;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
.auth-page.auth-user::before,
.auth-page.auth-user::after { display: none; }
.auth-user .auth-hero,
.auth-user .auth-side { width: auto; min-width: 0; margin: 0; }
.auth-user .auth-hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(56px, 9vw, 144px);
  background: #F5F6F8;
}
.auth-user .auth-brand { width: min(100%, 336px); }
.auth-user .auth-brand h1 {
  max-width: none;
  margin: 0;
  color: #16181D;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}
.auth-user .auth-brand h1::before { content: none; }
.auth-user .auth-brand p {
  max-width: 300px;
  margin: 12px 0 0;
  color: #6F7580;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
}
.auth-user .auth-side {
  display: grid;
  place-items: center;
  padding: 56px 48px;
  background: #FFFFFF;
}
.auth-user .auth-card,
.auth-user .auth-user-card {
  width: min(100%, 430px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: authCardIn 180ms cubic-bezier(0.2, 0, 0, 1) both;
}
.auth-user .auth-card-header { margin: 0 0 28px; }
.auth-user .auth-card h2 {
  margin: 0;
  color: #16181D;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
.auth-user .auth-card-header > p {
  margin: 8px 0 0;
  color: #6F7580;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.6;
}
.auth-user .auth-form { display: grid; gap: 16px; }
.auth-user .field { min-width: 0; margin: 0; }
.auth-user .field label {
  display: block;
  margin: 0 0 7px;
  color: #16181D;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}
.auth-user .field label.required::after { color: #B94B4B; }
.auth-user .input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #E7E9ED;
  border-radius: 8px;
  color: #16181D;
  background: #FFFFFF;
  box-shadow: none;
  font-size: 14px;
  letter-spacing: 0;
  transition-property: border-color, background-color;
  transition-duration: 140ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.auth-user .input::placeholder { color: #9AA0AA; }
.auth-user .input:focus { border-color: #2563EB; background: #FFFFFF; box-shadow: none; }
.auth-user .auth-submit {
  min-height: 46px;
  margin-top: 6px;
  border: 1px solid #2563EB;
  border-radius: 8px;
  color: #FFFFFF;
  background: #2563EB;
  box-shadow: none;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  transition-property: transform, background-color, opacity;
  transition-duration: 140ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.auth-user .auth-submit:hover:not(:disabled) { background: #1D4ED8; }
.auth-user .auth-submit:active:not(:disabled) { transform: scale(.985); }
.auth-user .auth-submit:disabled { cursor: not-allowed; opacity: .7; }
.auth-user .auth-switch {
  margin: 20px 0 0;
  color: #6F7580;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
}
.auth-user .link-btn {
  border-radius: 5px;
  color: #2563EB;
  font-weight: 600;
  letter-spacing: 0;
  transition-property: color, background-color, transform;
  transition-duration: 140ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.auth-user .link-btn:hover { background: #EFF5FF; }
.auth-user .link-btn:active { transform: scale(.985); }

@media (max-width: 860px) {
  .auth-page.auth-user { display: flex; flex-direction: column; min-height: 100svh; padding: 0; }
  .auth-user .auth-hero { display: block; flex: 0 0 auto; padding: max(28px, env(safe-area-inset-top)) 20px 28px; }
  .auth-user .auth-brand { width: 100%; }
  .auth-user .auth-brand h1 { font-size: 21px; }
  .auth-user .auth-brand p { max-width: none; margin-top: 8px; font-size: 13px; line-height: 1.6; }
  .auth-user .auth-side { display: block; flex: 1 0 auto; padding: 26px 20px max(28px, env(safe-area-inset-bottom)); }
  .auth-user .auth-card,
  .auth-user .auth-user-card { width: min(100%, 430px); margin: 0 auto; }
  .auth-user .auth-card-header { margin-bottom: 24px; }
  .auth-user .auth-card h2 { font-size: 22px; }
  .auth-user .auth-card-header > p,
  .auth-user .auth-switch { font-size: 13px; }
}
@media (max-width: 360px) {
  .auth-user .auth-hero,
  .auth-user .auth-side { padding-inline: 16px; }
  .auth-user .auth-form { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-user .auth-card { animation-duration: 80ms; }
  .auth-user .input,
  .auth-user .auth-submit,
  .auth-user .link-btn { transition-duration: 80ms; }
  .auth-user .auth-submit:active,
  .auth-user .link-btn:active { transform: none; }
}

/* ADMIN-ORDER-DETAIL-V1-FINAL: isolated administrator processing workspace. */
.admin-shell .admin-detail-head { align-items:flex-start; }
.admin-shell .admin-detail-kicker { margin:0 0 3px; color:#2563EB; font-size:11px; font-weight:700; }
.admin-shell .admin-detail-head h2 { overflow-wrap:anywhere; }
.admin-shell .admin-order-workbench { display:grid; grid-template-columns:minmax(0,1.38fr) minmax(390px,1fr); align-items:start; gap:18px; }
.admin-shell .admin-order-readonly { display:grid; gap:14px; min-width:0; }
.admin-shell .admin-order-editor { min-width:0; padding:0; overflow:hidden; }
.admin-shell .admin-detail-section { padding:18px 20px; border-bottom:1px solid #E6EAF0; }
.admin-shell .admin-order-readonly .admin-detail-section { border:1px solid #E6EAF0; border-radius:9px; background:#fff; box-shadow:0 1px 3px rgba(15,23,42,.025); }
.admin-shell .admin-order-editor .admin-detail-section:last-of-type { border-bottom:0; }
.admin-shell .admin-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.admin-shell .admin-section-heading .section-title { margin:0; }
.admin-shell .admin-copy-order { min-height:28px; border:0; border-radius:5px; padding:5px 8px; color:#2563EB; background:#EFF5FF; font-size:11px; font-weight:650; cursor:pointer; transition:transform 100ms cubic-bezier(.2,0,0,1),background-color 160ms cubic-bezier(.2,0,0,1); }
.admin-shell .admin-copy-order:active { transform:scale(.97); }
.admin-shell .admin-detail-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid #E6EAF0; }
.admin-shell .admin-detail-list .detail-item { min-width:0; padding:11px 0; border-bottom:1px solid #E6EAF0; }
.admin-shell .admin-detail-list .detail-item:nth-child(odd) { padding-right:18px; }
.admin-shell .admin-detail-list .detail-item:nth-child(even) { padding-left:18px; border-left:1px solid #E6EAF0; }
.admin-shell .admin-detail-list .detail-item:last-child:nth-child(odd) { grid-column:1 / -1; padding-right:0; }
.admin-shell .admin-detail-list .detail-item:last-child:nth-child(odd) + * { display:none; }
.admin-shell .admin-detail-list dt { margin-bottom:5px; color:#64748B; font-size:11px; }
.admin-shell .admin-detail-list dd { overflow-wrap:anywhere; color:#0F172A; font-size:12px; font-weight:620; }
.admin-shell .admin-customer-note { background:#FCFDFE !important; }
.admin-shell .admin-customer-note .section-title { margin-bottom:10px; }
.admin-shell .admin-customer-note p { min-height:40px; margin:0; color:#334155; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.admin-shell .admin-payment-state, .admin-shell .admin-proof-count { color:#64748B; font-size:11px; }
.admin-shell .admin-qr-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.admin-shell .admin-qr-card { min-width:0; padding:8px; border:1px solid #E6EAF0; border-radius:7px; color:#64748B; background:#fff; font-size:11px; text-align:left; cursor:zoom-in; }
.admin-shell .admin-qr-card img { display:block; width:100%; height:156px; object-fit:contain; border-radius:5px; background:#F8FAFC; }
.admin-shell .admin-qr-card span { display:block; padding-top:7px; }
.admin-shell .admin-payment-detail { margin-top:14px; }
.admin-shell .admin-processing-status { display:flex; flex-wrap:wrap; gap:6px; margin:-2px 0 15px; }
.admin-shell .admin-processing-fields { gap:12px; }
.admin-shell .admin-processing-fields .field { min-width:0; }
.admin-shell .admin-processing-fields .input, .admin-shell .admin-processing-fields .select { min-height:42px; font-size:13px; }
.admin-shell .admin-admin-note .section-title { margin-bottom:10px; }
.admin-shell .admin-admin-note .textarea { min-height:112px; resize:vertical; }
.admin-shell .admin-payment-proof-section [data-upload="paymentProof"] { min-width:0; }
.admin-shell .admin-payment-proof-section .upload-box { min-height:106px; border:1px dashed #B9C6DA; border-radius:7px; background:#F8FAFC; }
.admin-shell .admin-payment-proof-section .upload-placeholder { color:#64748B; font-size:12px; }
.admin-shell .admin-payment-proof-section .upload-placeholder b { color:#2563EB; }
.admin-shell .admin-payment-proof-section .preview-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-top:10px; }
.admin-shell .admin-payment-proof-section .preview-item { min-width:0; border:1px solid #E6EAF0; border-radius:7px; padding:6px; background:#fff; }
.admin-shell .admin-payment-proof-section .preview-item img { height:112px; object-fit:contain; border-radius:4px; background:#F8FAFC; }
.admin-shell .admin-proof-actions { display:flex; gap:6px; margin-top:6px; }
.admin-shell .admin-proof-actions .btn { flex:1; min-width:0; padding-inline:5px; }
.admin-shell .admin-detail-actions { display:flex; justify-content:flex-end; gap:8px; margin:0; padding:16px 20px; border-top:1px solid #E6EAF0; background:#fff; }
.admin-shell .admin-detail-actions .btn { min-width:126px; min-height:40px; }

@media (max-width: 1100px) {
  .admin-shell .admin-order-workbench { grid-template-columns:minmax(0,1fr) minmax(350px,.9fr); gap:14px; }
  .admin-shell .admin-detail-section { padding:16px; }
}

@media (max-width: 860px) {
  .admin-shell .content:has(.admin-order-workbench) { padding:12px 16px calc(138px + env(safe-area-inset-bottom)); }
  .admin-shell .admin-detail-head { margin-bottom:10px; }
  .admin-shell .admin-detail-head > div:first-child { display:block; }
  .admin-shell .admin-detail-head h2 { font-size:16px; line-height:1.45; }
  .admin-shell .admin-detail-head p:not(.admin-detail-kicker) { display:block; margin-top:3px; font-size:11px; }
  .admin-shell .admin-detail-head .head-actions { display:none; }
  .admin-shell .admin-order-workbench { display:flex; flex-direction:column; gap:10px; }
  .admin-shell .admin-order-readonly { display:contents; }
  .admin-shell .admin-order-summary { order:0; }
  .admin-shell .admin-order-editor { display:contents; }
  .admin-shell .admin-order-editor > .admin-detail-section:first-child { order:1; }
  .admin-shell .admin-customer-note { order:2; }
  .admin-shell .admin-order-readonly > .admin-detail-section:last-child { order:3; }
  .admin-shell .admin-order-editor > .admin-detail-section:nth-child(2) { order:4; }
  .admin-shell .admin-order-editor > .admin-detail-section:nth-child(3) { order:5; }
  .admin-shell .admin-detail-actions { position:fixed; z-index:25; right:0; bottom:calc(60px + env(safe-area-inset-bottom)); left:0; order:6; padding:10px 16px 12px; border-top:1px solid #E6EAF0; box-shadow:0 -5px 16px rgba(15,23,42,.06); }
  .admin-shell .admin-detail-actions .btn { min-width:0; flex:1; min-height:46px; }
  .admin-shell .admin-detail-section, .admin-shell .admin-order-readonly .admin-detail-section { width:100%; border:1px solid #E6EAF0; border-radius:9px; background:#fff; box-shadow:none; }
  .admin-shell .admin-detail-list { grid-template-columns:1fr; }
  .admin-shell .admin-detail-list .detail-item, .admin-shell .admin-detail-list .detail-item:nth-child(odd), .admin-shell .admin-detail-list .detail-item:nth-child(even) { grid-column:auto; padding:9px 0; border-left:0; }
  .admin-shell .admin-detail-list .detail-item:last-child:nth-child(odd) { grid-column:auto; }
  .admin-shell .admin-detail-list .detail-item:last-child:nth-child(odd) + * { display:block; }
  .admin-shell .admin-detail-list dt { display:inline; margin:0; }
  .admin-shell .admin-detail-list dt::after { content:'：'; }
  .admin-shell .admin-detail-list dd { display:inline; }
  .admin-shell .admin-qr-card img { height:128px; }
  .admin-shell .admin-processing-fields { grid-template-columns:1fr 1fr; gap:10px; }
  .admin-shell .admin-processing-fields .field { grid-column:auto; }
  .admin-shell .admin-processing-fields .field label { min-height:17px; }
  .admin-shell .admin-admin-note .textarea { min-height:104px; }
  .admin-shell .admin-payment-proof-section .preview-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-shell .admin-payment-proof-section .preview-item img { height:132px; }
}

@media (max-width: 390px) {
  .admin-shell .admin-qr-grid { grid-template-columns:1fr; }
  .admin-shell .admin-processing-fields { grid-template-columns:1fr; }
  .admin-shell .admin-payment-proof-section .preview-list { grid-template-columns:1fr; }
}

/* ADMIN-UI-1TO1-V1: all admin presentation rules remain isolated from the sealed user client. */
.admin-login-page, .admin-shell { --admin-blue:#2563eb; --admin-ink:#0f172a; --admin-muted:#64748b; --admin-line:#e6eaf0; --admin-bg:#f6f8fc; --admin-card:#fff; color:var(--admin-ink); background:var(--admin-bg); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
.admin-login-page { min-height:100svh; display:grid; place-items:center; padding:32px; }
.admin-login-card { width:min(100%,420px); border:1px solid #edf0f5; border-radius:var(--v2-radius-md); background:#fff; box-shadow:0 12px 32px rgba(33,53,89,.07); }
.admin-login-brand { display:flex; align-items:center; gap:10px; margin-bottom:26px; padding-bottom:20px; border-bottom:1px solid var(--admin-line); }
.admin-login-brand img { width:32px; height:32px; object-fit:contain; }
.admin-login-brand strong, .admin-login-brand span { display:block; }
.admin-login-brand strong { color:var(--admin-ink); font-size:16px; font-weight:720; }
.admin-login-brand span { margin-top:4px; color:var(--admin-muted); font-size:12px; }
.admin-login-form-panel { display:flex; flex-direction:column; padding:34px 34px 38px; background:#fff; }
.admin-login-heading h1 { margin:0; color:var(--admin-ink); font-size:25px; line-height:1.25; letter-spacing:0; font-weight:720; }
.admin-login-heading p { margin:8px 0 30px; color:var(--admin-muted); font-size:13px; }
.admin-login-page .field { margin-top:18px; }
.admin-login-page .field:first-child { margin-top:0; }
.admin-login-page .field label { margin-bottom:8px; color:#334155; font-size:13px; font-weight:630; }
.admin-login-page .input { min-height:44px; border:1px solid var(--admin-line); border-radius:var(--v2-radius-sm); padding:10px 12px; color:var(--admin-ink); background:#fff; box-shadow:none; transition:border-color 140ms cubic-bezier(.2,0,0,1),box-shadow 140ms cubic-bezier(.2,0,0,1); }
.admin-login-page .input:focus { border-color:#8caef5; box-shadow:0 0 0 3px rgba(29,78,216,.1); }
.admin-login-page .btn { min-height:44px; margin-top:25px; border-radius:var(--v2-radius-sm); box-shadow:none; transition:background-color 160ms cubic-bezier(.2,0,0,1),border-color 160ms cubic-bezier(.2,0,0,1); }
.admin-login-page .btn-primary { background:var(--v2-color-action); border-color:var(--v2-color-action); }
.admin-login-page .btn-primary:hover:not(:disabled) { background:var(--v2-color-action-hover); border-color:var(--v2-color-action-hover); }
.admin-login-page .auth-switch { margin-top:20px; font-size:13px; text-align:center; }
.admin-login-page .link-btn { color:var(--admin-blue); }

.admin-shell { display:grid; grid-template-columns:196px minmax(0,1fr); min-height:100svh; }
.admin-shell .admin-sidebar { position:sticky; top:0; grid-column:1; width:auto; height:100svh; padding:24px 12px 16px; border-right:1px solid var(--admin-line); border-radius:0; background:#fff; box-shadow:none; }
.admin-shell .sidebar-brand { display:flex; align-items:center; gap:9px; padding:0 12px 28px; }
.admin-shell .sidebar-brand img { width:28px; height:28px; object-fit:contain; }
.admin-shell .sidebar-brand strong, .admin-shell .sidebar-brand small { display:block; }
.admin-shell .sidebar-brand strong { color:var(--admin-ink); font-size:15px; font-weight:720; white-space:nowrap; }
.admin-shell .sidebar-brand small { margin-top:3px; color:var(--admin-muted); font-size:11px; }
.admin-shell .nav-list { gap:4px; }
.admin-shell .nav-link { min-height:38px; gap:10px; padding:8px 12px; border:0; border-radius:7px; color:#64748b; background:transparent; box-shadow:none; font-size:13px; font-weight:600; transition:transform 100ms cubic-bezier(.2,0,0,1),color 160ms cubic-bezier(.2,0,0,1),background 160ms cubic-bezier(.2,0,0,1); }
.admin-shell .nav-link:hover { transform:none; color:var(--admin-blue); background:#f4f7fc; box-shadow:none; }
.admin-shell .nav-link.active { color:#fff; background:var(--admin-blue); border-color:var(--admin-blue); box-shadow:0 5px 12px rgba(37,99,235,.18); }
.admin-shell .nav-icon { width:16px; color:currentColor; font-size:15px; text-align:center; }
.admin-shell .sidebar-foot { border-top:1px solid var(--admin-line); padding:14px 4px 0; }
.admin-shell .user-chip { margin:0 0 8px; padding:8px; border-radius:7px; background:transparent; }
.admin-shell .user-chip strong { color:#334155; font-size:12px; }
.admin-shell .user-chip span { color:#94a3b8; font-size:11px; }
.admin-shell .main { grid-column:2; background:var(--admin-bg); }
.admin-shell .admin-topbar { position:static; min-height:76px; padding:18px 34px; border-bottom:1px solid var(--admin-line); background:#fff; backdrop-filter:none; }
.admin-shell .topbar-kicker { color:var(--admin-muted); font-size:12px; }
.admin-shell .topbar h1 { color:var(--admin-ink); font-size:19px; font-weight:700; letter-spacing:0; }
.admin-shell .clock-chip { min-height:32px; padding:7px 10px; border:0; border-radius:6px; color:var(--admin-muted); background:#f8fafc; box-shadow:none; font-size:12px; }
.admin-shell .avatar-chip { width:32px; min-height:32px; border:0; border-radius:50%; color:var(--admin-blue); background:#eaf1ff; box-shadow:none; font-size:12px; }
.admin-shell .content { width:min(100%,1440px); padding:30px 34px 44px; animation:adminPageIn 180ms cubic-bezier(.2,0,0,1); }
@keyframes adminPageIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
.admin-shell .page-head { align-items:center; margin-bottom:18px; }
.admin-shell .page-head h2 { margin:0; color:var(--admin-ink); font-size:22px; line-height:1.35; letter-spacing:0; font-weight:720; }
.admin-shell .page-head p { margin-top:5px; color:var(--admin-muted); font-size:13px; line-height:1.55; }
.admin-shell .head-actions { gap:8px; }
.admin-shell .card { border:1px solid var(--admin-line); border-radius:9px; background:var(--admin-card); box-shadow:0 1px 3px rgba(15,23,42,.025); backdrop-filter:none; }
.admin-shell .card-body { padding:22px; }
.admin-shell .section-title { margin-bottom:7px; color:var(--admin-ink); font-size:16px; letter-spacing:0; }
.admin-shell .hint { color:var(--admin-muted); font-size:12px; }
.admin-shell .input, .admin-shell .select, .admin-shell .textarea { min-height:38px; border:1px solid var(--admin-line); border-radius:6px; padding:8px 10px; color:var(--admin-ink); background:#fff; box-shadow:none; font-size:12px; transition:border-color 140ms cubic-bezier(.2,0,0,1),box-shadow 140ms cubic-bezier(.2,0,0,1); }
.admin-shell .textarea { min-height:92px; }
.admin-shell .input:focus, .admin-shell .select:focus, .admin-shell .textarea:focus { border-color:#8caef5; box-shadow:0 0 0 3px rgba(37,99,235,.09); }
.admin-shell .field label { margin-bottom:7px; color:#334155; font-size:12px; font-weight:630; }
.admin-shell .btn { min-height:34px; padding:7px 13px; border:1px solid var(--admin-line); border-radius:6px; box-shadow:none; font-size:12px; font-weight:630; transition:transform 100ms cubic-bezier(.2,0,0,1),color 160ms cubic-bezier(.2,0,0,1),background 160ms cubic-bezier(.2,0,0,1),border-color 160ms cubic-bezier(.2,0,0,1); }
.admin-shell .btn:hover:not(:disabled) { transform:translateY(-1px); box-shadow:none; }
.admin-shell .btn:active:not(:disabled) { transform:scale(.985); }
.admin-shell .btn-primary { color:#fff; border-color:var(--admin-blue); background:var(--admin-blue); }
.admin-shell .btn-secondary { color:#475569; background:#fff; }
.admin-shell .btn-sm { min-height:28px; padding:5px 9px; font-size:11px; }
.admin-shell .admin-stat-card { position:relative; display:block; width:100%; min-height:118px; padding:18px; border-color:var(--admin-line); color:var(--admin-ink); text-align:left; cursor:pointer; }
.admin-shell .admin-stat-card:hover { transform:translateY(-1px); border-color:#cfdcf4; background:#fbfdff; box-shadow:0 4px 12px rgba(37,99,235,.06); }
.admin-shell .admin-stat-card:active { transform:scale(.985); }
.admin-shell .admin-stat-card .stat-label, .admin-shell .admin-stat-card .stat-value { display:block; }
.admin-shell .admin-stat-card .stat-value { margin-top:13px; font-size:30px; line-height:1; }
.admin-shell .admin-stat-card-arrow { position:absolute; right:15px; bottom:14px; color:var(--admin-blue); font-size:20px; line-height:1; transition:transform 160ms cubic-bezier(.2,0,0,1); }
.admin-shell .admin-stat-card:hover .admin-stat-card-arrow { transform:translateX(3px); }
.admin-shell .admin-filter-card { margin:0 0 16px; padding:14px; }
.admin-shell .filter-grid { grid-template-columns:150px 146px minmax(220px,1fr) 150px; gap:10px; }
.admin-shell .admin-filter-hidden { display:none; }
.admin-shell .filter-actions { justify-content:flex-start; gap:8px; margin-top:10px; }
.admin-shell .admin-orders-table-wrap { overflow-x:auto; }
.admin-shell .admin-orders-table { min-width:890px; border-collapse:collapse; border-spacing:0; background:#fff; font-size:12px; }
.admin-shell .admin-orders-table thead th { height:38px; padding:0 12px; border-bottom:1px solid var(--admin-line); color:#64748b; background:#f8fafc; font-size:11px; font-weight:650; }
.admin-shell .admin-orders-table tbody tr { background:#fff; box-shadow:none; transition:background 160ms cubic-bezier(.2,0,0,1); }
.admin-shell .admin-orders-table tbody tr:hover { transform:none; background:#fbfdff; box-shadow:none; }
.admin-shell .admin-orders-table td { height:50px; padding:9px 12px; border:0; border-bottom:1px solid #eef1f5; color:#475569; }
.admin-shell .admin-orders-table td:first-child, .admin-shell .admin-orders-table td:last-child { border-radius:0; }
.admin-shell .admin-orders-table .order-number-cell { color:#1e293b; font-weight:650; }
.admin-shell .money { color:#1e293b; font-weight:650; }
.admin-shell .badge { min-height:22px; padding:3px 7px; border:0; border-radius:5px; font-size:11px; font-weight:650; }
.admin-shell .badge-blue { color:#245fbd; background:#eaf1ff; }
.admin-shell .badge-green { color:#23815d; background:#e7f7f0; }
.admin-shell .badge-yellow { color:#ad6d13; background:#fff6df; }
.admin-shell .badge-red { color:#b24e56; background:#feeff1; }
.admin-shell .badge-gray { color:#64748b; background:#f1f5f9; }
.admin-shell .table-detail-link { color:var(--admin-blue); font-size:12px; font-weight:630; }
.admin-orders-mobile-list { display:none; }
.admin-shell .admin-shipping-address-management, .admin-shell .admin-address-form-card { margin:0; }
.admin-shell .admin-address-form-card { margin-top:16px; }
.admin-shell .admin-shipping-address-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.admin-shell .admin-address-table-head, .admin-shell .admin-shipping-address-row { display:grid; grid-template-columns:1.05fr 1.1fr minmax(260px,2.5fr) .65fr 1.1fr; align-items:center; gap:14px; }
.admin-shell .admin-address-table-head { min-height:36px; padding:0 12px; border-bottom:1px solid var(--admin-line); color:#64748b; background:#f8fafc; font-size:11px; font-weight:650; }
.admin-shell .admin-shipping-address-list { gap:0; margin-top:0; }
.admin-shell .admin-shipping-address-row { padding:13px 12px; border:0; border-bottom:1px solid #eef1f5; border-radius:0; background:#fff; }
.admin-shell .admin-shipping-address-row:last-child { border-bottom:0; }
.admin-shell .admin-shipping-address-row.inactive { opacity:.64; }
.admin-shell .admin-address-purpose strong { color:#1e293b; font-size:12px; font-weight:650; }
.admin-shell .admin-address-purpose small { display:block; margin-top:4px; color:#94a3b8; font-size:10px; }
.admin-shell .admin-address-contact { display:grid; gap:4px; color:#475569; font-size:12px; }
.admin-shell .admin-address-full { overflow:hidden; margin:0; color:#475569; font-size:12px; line-height:1.55; text-overflow:ellipsis; white-space:nowrap; }
.admin-shell .admin-shipping-address-actions { gap:6px; }
.admin-shell .admin-shipping-address-toggles { margin-top:14px; color:#475569; font-size:12px; }
.admin-shell .admin-shipping-address-toggles input { accent-color:var(--admin-blue); }
.admin-shell .admin-account-settings { margin-top:16px; }
.admin-shell .admin-account-settings summary { padding:12px 2px; color:var(--admin-muted); cursor:pointer; font-size:12px; font-weight:630; }
.admin-shell .admin-account-settings .detail-grid { margin-top:4px; }
.admin-mobile-tabbar { display:none; }

@media (max-width:860px) {
  .admin-login-page { padding:max(20px,env(safe-area-inset-top)) 20px 32px; align-items:start; }
  .admin-login-card { width:100%; border:0; border-radius:0; box-shadow:none; background:transparent; }
  .admin-login-form-panel { padding:24px 20px; border:1px solid var(--admin-line); border-radius:var(--v2-radius-md); background:#fff; box-shadow:0 1px 3px rgba(15,23,42,.03); }
  .admin-login-heading h1 { font-size:20px; }
  .admin-login-heading p { margin-bottom:22px; font-size:12px; }
  .admin-login-page .input, .admin-login-page .btn { min-height:46px; }
  .admin-shell { display:block; min-height:100svh; }
  .admin-shell .admin-sidebar { display:none; }
  .admin-shell .main { display:block; }
  .admin-shell .admin-topbar { min-height:58px; padding:max(12px,env(safe-area-inset-top)) 16px 10px; background:#fff; }
  .admin-shell .admin-topbar .topbar-kicker, .admin-shell .clock-chip, .admin-shell .avatar-chip { display:none; }
  .admin-shell .topbar h1 { font-size:16px; }
  .admin-shell .menu-btn { display:none; }
  .admin-shell .content { padding:16px 14px calc(78px + env(safe-area-inset-bottom)); }
  .admin-shell .page-head { align-items:center; margin-bottom:14px; }
  .admin-shell .page-head h2 { font-size:18px; }
  .admin-shell .page-head p { display:none; }
  .admin-shell .page-head > div:first-child { display:none; }
  .admin-shell .page-head { justify-content:flex-end; }
  .admin-shell .head-actions .btn { min-height:32px; }
  .admin-shell .filter-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
  .admin-shell .admin-filter-search { grid-column:1 / -1; }
  .admin-shell .filter-actions { margin-top:8px; }
  .admin-shell .filter-actions .btn { flex:1; }
  .admin-shell .admin-orders-table-wrap { display:none; }
  .admin-orders-mobile-list { display:grid; gap:9px; }
  .admin-order-mobile-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:13px; border:1px solid var(--admin-line); border-radius:9px; background:#fff; box-shadow:0 1px 2px rgba(15,23,42,.025); cursor:pointer; transition:transform 100ms cubic-bezier(.2,0,0,1),background 160ms cubic-bezier(.2,0,0,1); }
  .admin-order-mobile-card:active { transform:scale(.99); background:#fbfdff; }
  .admin-order-mobile-card strong, .admin-order-mobile-card span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .admin-order-mobile-card strong { color:#1e293b; font-size:13px; }
  .admin-order-mobile-card > div:first-child span { margin-top:7px; color:#64748b; font-size:11px; }
  .admin-order-mobile-statuses { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px; }
  .admin-order-mobile-note { grid-column:1 / -1; display:-webkit-box; overflow:hidden; margin:0; padding-top:9px; border-top:1px solid #eef1f5; color:#64748b; font-size:11px; line-height:1.55; -webkit-box-orient:vertical; -webkit-line-clamp:2; word-break:break-word; }
  .admin-order-mobile-note span { display:inline; color:#64748b; font-weight:650; white-space:normal; }
  .admin-order-mobile-note b { color:#475569; font-weight:500; }
  .admin-order-mobile-meta { grid-column:1 / -1; display:flex; justify-content:space-between; color:#94a3b8; font-size:11px; }
  .admin-order-mobile-meta b { color:#1e293b; font-size:12px; }
  .admin-shell .admin-shipping-address-management, .admin-shell .admin-address-form-card { padding:15px; }
  .admin-shell .admin-address-table-head { display:none; }
  .admin-shell .admin-shipping-address-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:13px 0; }
  .admin-shell .admin-address-contact { display:flex; gap:7px; grid-column:1 / -1; }
  .admin-shell .admin-address-full { grid-column:1 / -1; overflow:visible; white-space:normal; }
  .admin-shell .admin-address-state { justify-self:end; }
  .admin-shell .admin-shipping-address-actions { grid-column:1 / -1; width:100%; }
  .admin-shell .admin-shipping-address-actions .btn { flex:1; }
  .admin-shell .form-grid { grid-template-columns:1fr; gap:14px; }
  .admin-shell .field.full { grid-column:auto; }
  .admin-shell .form-actions { margin-top:16px; }
  .admin-shell .form-actions .btn { flex:1; }
  .admin-shell .admin-account-settings .detail-grid { grid-template-columns:1fr; gap:12px; }
  .admin-mobile-tabbar { position:fixed; z-index:30; right:0; bottom:0; left:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:6px 8px calc(6px + env(safe-area-inset-bottom)); border-top:1px solid var(--admin-line); background:rgba(255,255,255,.98); box-shadow:0 -2px 9px rgba(15,23,42,.035); }
  .admin-mobile-tab { min-width:0; min-height:44px; display:grid; place-items:center; gap:2px; border:0; border-radius:6px; color:#94a3b8; background:transparent; font-size:10px; transition:color 160ms cubic-bezier(.2,0,0,1),background 160ms cubic-bezier(.2,0,0,1),transform 100ms cubic-bezier(.2,0,0,1); }
  .admin-mobile-tab span { font-size:15px; line-height:1; }
  .admin-mobile-tab em { overflow:hidden; max-width:100%; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
  .admin-mobile-tab.active { color:var(--admin-blue); background:#eff5ff; }
  .admin-mobile-tab:active { transform:scale(.96); }
}

@media (prefers-reduced-motion:reduce) {
  .admin-login-card, .admin-shell .content { animation-duration:1ms; }
  .admin-login-page *, .admin-shell * { scroll-behavior:auto; transition-duration:1ms !important; }
}

/* USER-AUTH-REFERENCE-REBUILD: final user-only reference layer. */
body:has(.auth-page.auth-user) {
  background: #F3F6FB;
}
.auth-page.auth-user {
  --auth-blue: #0B5CEB;
  --auth-ink: #131925;
  --auth-muted: #707887;
  --auth-line: #DCE2EC;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(480px, .94fr);
  align-items: stretch;
  min-height: calc(100svh - 64px);
  margin: 32px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 28px;
  color: var(--auth-ink);
  background: #EFF5FF;
  box-shadow: 0 16px 42px rgba(41, 61, 96, .11);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
.auth-page.auth-user::before,
.auth-page.auth-user::after { display: none; }
.auth-user .auth-hero,
.auth-user .auth-side { width: auto; min-width: 0; margin: 0; }
.auth-user .auth-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 56px 58px;
  background: #EFF5FF;
}
.auth-user .auth-brand {
  display: inline-flex;
  align-items: center;
  width: auto;
  gap: 13px;
}
.auth-user .auth-brand-mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
}
.auth-user .auth-brand h1 {
  max-width: none;
  margin: 0;
  color: var(--auth-ink);
  font-size: 26px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.2;
}
.auth-user .auth-brand h1::before { content: none; }
.auth-user .auth-hero-copy {
  position: relative;
  z-index: 2;
  margin-top: clamp(80px, 12vh, 150px);
}
.auth-user .auth-hero-copy h2 {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.28;
}
.auth-user .auth-hero-copy p {
  margin: 24px 0 0;
  color: #697383;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
}
.auth-user .auth-side {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 42px;
  background: #F7FAFF;
}
.auth-user .auth-card,
.auth-user .auth-user-card {
  width: min(100%, 550px);
  margin: 0;
  padding: 42px 44px 38px;
  border: 1px solid rgba(225, 230, 239, .92);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(46, 73, 120, .12);
  animation: authReferenceEnter 220ms cubic-bezier(.2, 0, 0, 1) both;
}
.auth-user.auth-register .auth-card { animation-name: authReferenceRegisterEnter; }
@keyframes authReferenceEnter {
  from { opacity: 0; transform: translateX(10px) translateY(4px); }
  to { opacity: 1; transform: translateX(0) translateY(0); }
}
@keyframes authReferenceRegisterEnter {
  from { opacity: 0; transform: translateX(-10px) translateY(4px); }
  to { opacity: 1; transform: translateX(0) translateY(0); }
}
.auth-user .auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 38px;
  border-bottom: 1px solid #E4E8EF;
}
.auth-user .auth-tab {
  position: relative;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #858C98;
  font-size: 25px;
  font-weight: 620;
  letter-spacing: 0;
  transition-property: color, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.auth-user .auth-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--auth-blue);
  opacity: 0;
  transform: scaleX(.68);
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.auth-user .auth-tab.active { color: var(--auth-blue); }
.auth-user .auth-tab.active::after { opacity: 1; transform: scaleX(1); }
.auth-user .auth-tab:active { transform: scale(.985); }
.auth-user .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.auth-user .auth-form { display: grid; gap: 25px; }
.auth-user .field { min-width: 0; margin: 0; }
.auth-user .field label {
  display: block;
  margin: 0 0 11px;
  color: #202733;
  font-size: 18px;
  font-weight: 610;
  letter-spacing: 0;
  line-height: 1.35;
}
.auth-user .field label.required::after { display: none; }
.auth-user .input {
  min-height: 56px;
  padding: 12px 18px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  color: var(--auth-ink);
  background: #FFFFFF;
  box-shadow: none;
  font-size: 18px;
  letter-spacing: 0;
  transition-property: border-color, box-shadow, background-color;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.auth-user .input::placeholder { color: #A0A8B6; }
.auth-user .input:focus {
  border-color: var(--auth-blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(11, 92, 235, .10);
}
.auth-user .auth-submit {
  min-height: 56px;
  margin-top: 2px;
  border: 1px solid var(--auth-blue);
  border-radius: 10px;
  color: #FFFFFF;
  background: var(--auth-blue);
  box-shadow: none;
  font-size: 21px;
  font-weight: 680;
  letter-spacing: 0;
  transition-property: transform, background-color, opacity;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.auth-user .auth-submit:hover:not(:disabled) { background: #0750D4; }
.auth-user .auth-submit:active:not(:disabled) { transform: scale(.985); }
.auth-user .auth-submit:disabled { cursor: not-allowed; opacity: .72; }
.auth-user .auth-switch {
  margin: 28px 0 0;
  color: #818A98;
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
}
.auth-user .link-btn {
  border-radius: 5px;
  color: var(--auth-blue);
  font-weight: 650;
  letter-spacing: 0;
  transition-property: color, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.auth-user .link-btn:hover { background: transparent; color: #0750D4; }
.auth-user .link-btn:active { transform: scale(.985); }
.auth-user .auth-logistics-art {
  position: absolute;
  z-index: 4;
  bottom: 0;
  left: 0;
  width: min(35vw, 450px);
  height: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 860px) {
  body:has(.auth-page.auth-user) { background: #EFF5FF; }
  .auth-page.auth-user {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #EFF5FF;
    box-shadow: none;
    overflow: auto;
  }
  .auth-user .auth-hero {
    flex: 0 0 auto;
    min-height: 165px;
    padding: max(54px, env(safe-area-inset-top)) 24px 24px;
    background: #EFF5FF;
  }
  .auth-user .auth-brand { gap: 10px; }
  .auth-user .auth-brand-mark { width: 38px; height: 38px; border-radius: 7px; }
  .auth-user .auth-brand h1 { font-size: 23px; }
  .auth-user .auth-hero-copy { display: none; }
  .auth-user .auth-side {
    display: block;
    flex: 0 0 auto;
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 27px 24px 28px;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 10px 26px rgba(46, 73, 120, .11);
  }
  .auth-user .auth-card,
  .auth-user .auth-user-card {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .auth-user .auth-tabs { min-height: 50px; margin-bottom: 26px; }
  .auth-user .auth-tab { min-height: 50px; font-size: 22px; }
  .auth-user .auth-tab::after { height: 3px; }
  .auth-user .auth-form { gap: 20px; }
  .auth-user .field label { margin-bottom: 9px; font-size: 17px; }
  .auth-user .input { min-height: 50px; padding: 11px 14px; border-radius: 9px; font-size: 17px; }
  .auth-user .auth-submit { min-height: 50px; border-radius: 9px; font-size: 19px; }
  .auth-user .auth-switch { margin-top: 23px; font-size: 16px; }
  .auth-user .auth-logistics-art {
    position: static;
    order: 3;
    width: min(100%, 430px);
    margin: 12px auto 0;
    padding: 0 12px max(18px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .auth-user .auth-hero { padding-inline: 18px; }
  .auth-user .auth-side { width: calc(100% - 28px); margin-inline: 14px; padding-inline: 18px; }
  .auth-user .auth-brand h1 { font-size: 21px; }
  .auth-user .auth-tabs { margin-bottom: 21px; }
  .auth-user .auth-form { gap: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-user .auth-card { animation-duration: 80ms; }
  .auth-user .auth-tab,
  .auth-user .auth-tab::after,
  .auth-user .input,
  .auth-user .auth-submit,
  .auth-user .link-btn { transition-duration: 80ms; }
  .auth-user .auth-tab:active,
  .auth-user .auth-submit:active,
  .auth-user .link-btn:active { transform: none; }
}

/* ADMIN-WORKBENCH-V1.1-PHASE1: legacy administrator-only compatibility styles.
   Keep --wb-* / --admin-* definitions for unchanged historical surfaces only.
   New and migrated shared components are defined in the V2 convergence layer. */
.admin-shell {
  --wb-bg: #f6f7f9;
  --wb-surface: #ffffff;
  --wb-text: #1d2129;
  --wb-muted: #6b7280;
  --wb-line: #e5e7eb;
  --wb-blue: #2563eb;
  --wb-blue-hover: #1d4ed8;
  --wb-success: #15803d;
  --wb-warning: #a16207;
  background: var(--wb-bg);
  color: var(--wb-text);
  letter-spacing: 0;
}
.admin-shell .sidebar {
  inset: 0 auto 0 0;
  width: 224px;
  padding: 18px 12px;
  border: 0;
  border-right: 1px solid var(--wb-line);
  border-radius: 0;
  background: var(--wb-surface);
  box-shadow: none;
}
.admin-shell .sidebar-brand {
  padding: 10px 12px 24px;
  color: var(--wb-text);
}
.admin-shell .sidebar-brand img { width: 30px; height: 30px; border-radius: 7px; }
.admin-shell .sidebar-brand strong { font-size: 15px; font-weight: 700; }
.admin-shell .sidebar-brand small { margin-top: 2px; color: var(--wb-muted); font-size: 12px; }
.admin-shell .nav-list { gap: 4px; }
.admin-shell .nav-link {
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  color: #4b5563;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}
.admin-shell .nav-link:hover { color: var(--wb-text); background: #f3f4f6; box-shadow: none; }
.admin-shell .nav-link.active { color: #1d4ed8; background: #eef4ff; border: 0; box-shadow: none; }
.admin-shell .nav-icon { width: 20px; color: inherit; }
.admin-shell .sidebar-foot { border-top-color: var(--wb-line); }
.admin-shell .user-chip { padding: 10px 12px; border: 0; border-radius: 6px; background: #f8fafc; }
.admin-shell .user-chip strong { color: var(--wb-text); font-size: 13px; }
.admin-shell .user-chip span { color: var(--wb-muted); font-size: 12px; }
.admin-shell .main { background: var(--wb-bg); }
.admin-shell .topbar {
  min-height: 68px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--wb-line);
  background: var(--wb-surface);
}
.admin-shell .topbar h1 { color: var(--wb-text); font-size: 16px; font-weight: 650; letter-spacing: 0; }
.admin-shell .topbar-kicker { color: var(--wb-muted); font-size: 12px; letter-spacing: 0; }
.admin-shell .clock-chip { border: 0; border-radius: 5px; color: var(--wb-muted); background: #f3f4f6; box-shadow: none; }
.admin-shell .avatar-chip { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #fff; background: #334155; box-shadow: none; }
.admin-shell .content { max-width: none; padding: 28px 32px 52px; }
.admin-shell .table-wrap { max-width: 100%; overflow-x: auto; }
/* 组件真相层见本文件底部 MAY-BAODAN V2 GLOBAL CONVERGENCE 与 v2 control language 区块；
   此处曾有的 .btn 覆写层已被证明为死声明（逐项属性后层全覆盖），予以移除。
   唯一存活的 .btn-quiet border-color 已并入 v2 quiet 规则。 */
.workbench-page { width: min(100%, 1440px); margin: 0 auto; }
.workbench-page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.workbench-page-head > div > span { display: block; margin-bottom: 6px; color: var(--wb-muted); font-size: 12px; font-weight: 600; }
.workbench-page-head h2 { margin: 0; color: var(--wb-text); font-size: 24px; line-height: 1.25; font-weight: 700; }
.workbench-page-head p { margin: 7px 0 0; color: var(--wb-muted); font-size: 13px; line-height: 1.6; }
.workbench-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.workbench-metric { min-height: 108px; padding: 16px 18px; border: 1px solid var(--wb-line); border-radius: 8px; color: var(--wb-text); text-align: left; background: var(--wb-surface); box-shadow: none; }
.workbench-metric:hover { border-color: #bfdbfe; background: #f8fbff; }
.workbench-metric span { display: block; color: var(--wb-muted); font-size: 13px; font-weight: 600; }
.workbench-metric strong { display: block; margin-top: 18px; font-size: 28px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.workbench-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.workbench-section-head h3 { margin: 0; color: var(--wb-text); font-size: 16px; font-weight: 700; }
.workbench-section-head p { margin: 5px 0 0; color: var(--wb-muted); font-size: 12px; }
.workbench-section-head > span, .queue-count { color: var(--wb-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.workbench-table-wrap { overflow-x: auto; border: 1px solid var(--wb-line); border-radius: 8px; background: var(--wb-surface); }
/* 报单/打款列表：合并备注列后收窄最小宽度，1366 下无需横向滚动；
   同时限定高度让表头可以吸顶。 */
.order-list-table-wrap { max-height: calc(100vh - 250px); overflow-y: auto; }
.order-list-table-wrap .workbench-table { min-width: 900px; }
.workbench-table { width: 100%; min-width: 1220px; border-collapse: collapse; font-size: 13px; }
.workbench-table th { position: sticky; z-index: 2; top: 0; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--wb-line); color: var(--wb-muted); text-align: left; background: #fafafa; font-size: 12px; font-weight: 600; white-space: nowrap; }
.workbench-table td { padding: 12px 14px; border-bottom: 1px solid #eef0f2; vertical-align: middle; }
.workbench-table tbody tr:last-child td { border-bottom: 0; }
.workbench-table tbody tr:hover { background: #fafcff; }
.workbench-table .cell-sub { display: block; margin-top: 3px; color: var(--wb-muted); font-size: 12px; }
.workbench-table .cell-main { max-width: 150px; color: var(--wb-text); font-weight: 600; }
.workbench-table .cell-note { display: block; max-width: 300px; overflow: hidden; color: #4b5563; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.workbench-table .cell-note + .cell-note { margin-top: 3px; }
.workbench-table .cell-note-label { display: inline-block; min-width: 34px; margin-right: 4px; color: var(--wb-muted); font-size: 11px; }
.workbench-table .cell-note-admin { color: #64748b; }
.workbench-table .money { min-width: 112px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.workbench-statuses { display: flex; flex-wrap: wrap; gap: 5px; }
.payment-ready { color: var(--wb-success); font-weight: 600; }
.payment-missing { color: var(--wb-warning); font-weight: 600; }
.workbench-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 190px; }
.workbench-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; color: var(--wb-muted); font-size: 12px; }
.workbench-pagination > div { display: flex; gap: 8px; }
.workbench-total { margin: 12px 0 0; color: var(--wb-muted); font-size: 12px; }
.workbench-task-panel { margin: 0 0 28px; padding: 16px; border: 1px solid var(--wb-line); border-radius: 8px; background: var(--wb-surface); }
.workbench-task-panel .workbench-section-head { margin-bottom: 12px; }
.workbench-task-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.workbench-task { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 13px; border: 1px solid #e7ebf0; border-radius: 7px; color: var(--wb-text); background: #fff; text-align: left; }
.workbench-task:hover { border-color: #bfdbfe; background: #f8fbff; }
.workbench-task-copy { min-width: 0; }
.workbench-task-copy strong, .workbench-task-copy small { display: block; }
.workbench-task-copy strong { font-size: 13px; font-weight: 700; }
.workbench-task-copy small { overflow: hidden; margin-top: 5px; color: var(--wb-muted); font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.workbench-task-count { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; color: #1d4ed8; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.workbench-task-count i { color: #94a3b8; font-size: 22px; font-style: normal; font-weight: 400; }
.admin-shell .filter-card { margin-bottom: 14px; padding: 14px; border: 1px solid var(--wb-line); border-radius: 8px; background: var(--wb-surface); box-shadow: none; }
.admin-shell .filter-grid { grid-template-columns: minmax(130px, .8fr) minmax(150px, .85fr) minmax(180px, 1.3fr) minmax(130px, .8fr); gap: 10px; }
.admin-shell .filter-actions { justify-content: flex-end; margin-top: 10px; }
.admin-shell .input, .admin-shell .select, .admin-shell .textarea { border-color: #d1d5db; border-radius: 6px; background: #fff; box-shadow: none; letter-spacing: 0; }
.admin-shell .input, .admin-shell .select { min-height: 36px; padding: 7px 10px; font-size: 13px; }
.admin-shell .textarea { min-height: 96px; padding: 9px 10px; font-size: 13px; }
.admin-shell .input:focus, .admin-shell .select:focus, .admin-shell .textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.workbench-mobile-list { display: none; }
.workbench-drawer-layer { position: fixed; inset: 0; z-index: 300; }
.workbench-drawer-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.3); }
.workbench-drawer { position: absolute; top: 0; right: 0; width: min(100%, 480px); height: 100%; overflow-y: auto; border-left: 1px solid var(--wb-line); background: #fff; box-shadow: -18px 0 42px rgba(15,23,42,.14); }
.workbench-drawer-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 24px; border-bottom: 1px solid var(--wb-line); }
.workbench-drawer-head span { display: block; margin-bottom: 6px; color: var(--wb-muted); font-size: 12px; font-weight: 600; }
.workbench-drawer-head h2 { margin: 0; color: var(--wb-text); font-size: 21px; font-weight: 700; }
.workbench-drawer-head p { margin: 7px 0 0; color: var(--wb-muted); font-size: 13px; }
.icon-close { width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 6px; color: #4b5563; background: #f3f4f6; font-size: 22px; line-height: 1; }
.workbench-drawer-form { display: grid; gap: 18px; padding: 24px; }
.workbench-drawer-form .field { margin: 0; }
.workbench-drawer-form .field label { margin-bottom: 7px; color: #374151; font-size: 13px; font-weight: 600; }
.drawer-summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border: 1px solid #dbeafe; border-radius: 6px; background: #f8fbff; }
.drawer-summary span { color: var(--wb-muted); font-size: 13px; }
.drawer-summary strong { color: #1e3a8a; font-size: 14px; }
.workbench-drawer-actions { position: sticky; z-index: 1; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; margin: 0 -24px -24px; padding: 14px 24px; border-top: 1px solid var(--wb-line); background: rgba(255,255,255,.98); box-shadow: 0 -8px 18px rgba(15,23,42,.06); }

@media (min-width: 861px) {
  .admin-shell {
    height: 100dvh;
    min-height: 0;
    grid-template-columns: 224px minmax(0, 1fr);
    overflow: hidden;
  }
  .admin-shell .admin-sidebar {
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .admin-shell .main {
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
  }
  .admin-shell .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    flex: 0 0 auto;
  }
  .admin-shell .content {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 24px 28px 40px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .admin-shell .workbench-page {
    width: min(100%, 1440px);
    padding-bottom: 4px;
  }
  .admin-shell .workbench-table-wrap,
  .admin-shell .admin-log-table-wrap,
  .admin-shell .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
  }
  .admin-shell .data-table {
    min-width: 960px;
  }
  .admin-shell .admin-order-workbench {
    min-height: 0;
  }
  .admin-shell .admin-order-editor {
    position: sticky;
    top: 20px;
    display: flex;
    max-height: calc(100dvh - 220px);
    min-height: 0;
    flex-direction: column;
    overflow-y: auto;
  }
  .admin-shell .admin-order-editor .admin-detail-section {
    flex: 0 0 auto;
  }
  .admin-shell .admin-detail-actions {
    position: sticky;
    z-index: 3;
    bottom: 0;
    flex: 0 0 auto;
    margin: auto -22px -22px;
    padding: 14px 22px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 18px rgba(15,23,42,.06);
  }
  .workbench-drawer-layer {
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
  }
  .workbench-drawer {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    width: min(100%, 520px);
    height: 100dvh;
    max-height: 100dvh;
    flex-direction: column;
    overflow: hidden;
  }
  .workbench-drawer-head {
    flex: 0 0 auto;
  }
  .workbench-drawer-form {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .workbench-drawer-actions {
    flex: 0 0 auto;
  }
}

@media (min-width: 861px) and (max-height: 820px) {
  .admin-shell .content {
    padding: 18px 24px 32px;
  }
  .admin-shell .workbench-page-head {
    margin-bottom: 16px;
  }
  .admin-shell .workbench-metrics {
    margin-bottom: 18px;
  }
  .admin-shell .workbench-metric {
    min-height: 88px;
    padding: 13px 15px;
  }
  .admin-shell .workbench-metric strong {
    margin-top: 12px;
    font-size: 24px;
  }
  .admin-shell .workbench-task-panel {
    margin-bottom: 18px;
  }
}

@media (max-width: 980px) {
  .admin-shell .sidebar { transform: translateX(-100%); }
  .admin-shell .sidebar.open { transform: translateX(0); }
  .admin-shell .content { padding-inline: 22px; }
}

@media (max-width: 760px) {
  .admin-shell { min-height: 100svh; }
  .admin-shell .topbar { min-height: 58px; padding: 10px 14px; }
  .admin-shell .content { min-height: calc(100svh - 58px); padding: 18px 14px calc(108px + env(safe-area-inset-bottom)); overflow-x: clip; }
  .admin-shell .admin-mobile-tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 62px; padding-inline: 4px; }
  .admin-shell .admin-mobile-tabbar.four-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-shell .admin-mobile-tab { min-height: 50px; padding-inline: 2px; font-size: 9px; }
  .admin-shell .admin-mobile-tab span { font-size: 14px; }
  .workbench-page-head { align-items: start; margin-bottom: 16px; }
  .workbench-page-head h2 { font-size: 21px; }
  .workbench-page-head p { font-size: 12px; }
  .workbench-page-head .btn { flex: 0 0 auto; }
  .workbench-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
  .workbench-metric { min-height: 86px; padding: 13px; border-radius: 7px; }
  .workbench-metric strong { margin-top: 13px; font-size: 24px; }
  .workbench-task-panel { margin-bottom: 20px; padding: 14px; }
  .workbench-task-list { grid-template-columns: 1fr; gap: 8px; }
  .workbench-task { min-height: 62px; padding: 12px; }
  .workbench-section-head { align-items: start; }
  .workbench-table-wrap { display: none; }
  .workbench-mobile-list { display: grid; gap: 9px; }
  .workbench-order-card { padding: 14px; border: 1px solid var(--wb-line); border-radius: 8px; background: #fff; }
  .workbench-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
  .workbench-card-head > div { min-width: 0; }
  .workbench-card-head strong { display: block; overflow: hidden; color: var(--wb-text); text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .workbench-card-head span { display: block; margin-top: 4px; color: var(--wb-muted); font-size: 12px; }
  .workbench-card-head > span { margin: 0; color: var(--wb-text); font-size: 13px; font-weight: 700; white-space: nowrap; }
  .workbench-order-card .workbench-statuses { margin-top: 11px; }
  .workbench-order-card p { display: grid; grid-template-columns: 74px 1fr; gap: 8px; margin: 10px 0 0; color: #4b5563; font-size: 12px; line-height: 1.5; }
  .workbench-order-card p span { color: var(--wb-muted); }
  .workbench-order-card .workbench-row-actions { margin-top: 14px; }
  .workbench-order-card .workbench-row-actions .btn { flex: 1 1 auto; }
  .workbench-pagination { align-items: start; flex-direction: column; }
  .workbench-drawer { display: flex; width: 100%; height: 100dvh; overflow: hidden; flex-direction: column; }
  .workbench-drawer-head { flex: 0 0 auto; padding: 18px; }
  .workbench-drawer-form { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 18px; overscroll-behavior: contain; }
  .workbench-drawer-actions { margin: 0 -18px -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .workbench-drawer-actions .btn { flex: 1; }
  .admin-shell .admin-order-editor { padding-bottom: 8px; }
  .admin-shell .admin-detail-actions { position: sticky; z-index: 2; bottom: calc(70px + env(safe-area-inset-bottom)); margin-inline: -14px; padding: 12px 14px; border-top: 1px solid var(--wb-line); background: rgba(255,255,255,.98); box-shadow: 0 -8px 18px rgba(15,23,42,.06); }
  .admin-shell .filter-grid { grid-template-columns: 1fr; }
  .admin-shell .filter-actions .btn { flex: 1; }
  .admin-employee-create .form-grid, .admin-employee-row { grid-template-columns: 1fr; }
  .employee-create-action label { display: none; }
  .admin-operation-log-list article { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .admin-operation-log-list article p, .admin-operation-log-list article small { grid-column: 1 / -1; }
}

/* Announcement operations stay intentionally compact: this is a single
   operational notice, not a marketing or CMS workspace. */
.announcement-editor-card { margin-bottom: 16px; }
.announcement-content-input { min-height: 148px; resize: vertical; line-height: 1.65; }
.announcement-editor-card .field small { margin-top: 6px; color: var(--wb-muted); font-size: 11px; }
.announcement-table-content { display: block; max-width: 540px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement-mobile-list { display: none; }

/* Customer centre: compact, sortable operational rows rather than a separate
   CRM or a card-heavy marketing surface. */
.customer-filter { margin-bottom: 14px; }
.customer-list-card { padding-bottom: 14px; }
.customer-table { min-width: 980px; }
.customer-table .cell-sub { display: block; margin-top: 3px; }
.customer-mobile-list { display: none; }
.customer-detail-drawer .payment-drawer-details > div { min-width: 0; }
.customer-payment-qr { margin-top: 12px; }
.customer-order-history { display: grid; gap: 0; border-top: 1px solid var(--wb-line-soft); }
.customer-order-history-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 6px 10px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--wb-line-soft); color: #526176; background: transparent; text-align: left; cursor: pointer; }
.customer-order-history-row:hover { background: #f8fbff; }
.customer-order-history-row strong { overflow: hidden; color: var(--wb-text); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.customer-order-history-row span { font-size: 11px; }
.customer-order-history-row > div { grid-column: 1 / -1; display: flex; gap: 5px; }
.customer-history-pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* Owner operations remain part of the existing dashboard: restrained numeric
   panels and a compact factual trend, never a separate large-screen view. */
.dashboard-operations-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.dashboard-operation-metric { min-width: 0; min-height: 102px; padding: 14px 15px; border-color: var(--wb-line); border-radius: 6px; background: var(--wb-surface); box-shadow: none; }
.dashboard-operation-metric > span, .dashboard-operation-metric > strong, .dashboard-operation-metric > small { display: block; }
.dashboard-operation-metric > span { color: var(--wb-muted); font-size: 12px; font-weight: 650; }
.dashboard-operation-metric > strong { overflow: hidden; margin-top: 13px; color: var(--wb-text); font-size: 22px; font-weight: 720; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dashboard-operation-metric > small { overflow: hidden; margin-top: 8px; color: #8390a3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-trend-card { margin: 0 0 16px; border-color: var(--wb-line); border-radius: 6px; box-shadow: none; }
.dashboard-trend-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 10px; min-height: 154px; padding-top: 5px; }
.dashboard-trend-item { display: grid; grid-template-rows: 100px auto auto; justify-items: center; gap: 5px; min-width: 0; }
.dashboard-trend-track { width: 100%; height: 100px; display: flex; align-items: end; padding: 0 7px; border-bottom: 1px solid var(--wb-line); background: linear-gradient(to top, #f8fafc, #fff); }
.dashboard-trend-track i { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: #4f7fbf; }
.dashboard-trend-item strong { color: var(--wb-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.dashboard-trend-item span { color: var(--wb-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.dashboard-employee-operations .dashboard-employee-head,
.dashboard-employee-operations .dashboard-employee-row { grid-template-columns: minmax(120px, 1.5fr) repeat(3, minmax(58px, .62fr)) minmax(92px, .9fr); }

/* Order workbench: factual prioritisation and restrained deadline signals. */
.workbench-queue-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.workbench-queue-summary article { min-width: 0; padding: 13px 15px; border: 1px solid var(--wb-line); border-radius: 6px; background: var(--wb-surface); }
.workbench-queue-summary span, .workbench-queue-summary strong, .workbench-queue-summary small { display: block; }
.workbench-queue-summary span { color: var(--wb-muted); font-size: 12px; font-weight: 650; }
.workbench-queue-summary strong { margin-top: 10px; color: var(--wb-text); font-size: 23px; font-weight: 720; font-variant-numeric: tabular-nums; }
.workbench-queue-summary small { overflow: hidden; margin-top: 6px; color: #8490a1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workbench-queue-panel { padding-bottom: 14px; }
.workbench-queue-table { margin-bottom: 0; }
.workbench-queue-table .workbench-table { min-width: 1110px; }
.workbench-timeout { display: inline-flex; align-items: center; min-height: 22px; border: 1px solid #d9e0e9; border-radius: 4px; padding: 3px 7px; color: #66758a; background: #f8fafc; font-size: 11px; font-weight: 650; white-space: nowrap; }
.workbench-timeout.is-soon { border-color: #e6d5ad; color: #8a651a; background: #fffaf0; }
.workbench-timeout.is-overdue { border-color: #dfc3c3; color: #995656; background: #fff7f7; }
.workbench-timeout.is-exception { border-color: #d8c3dc; color: #795580; background: #fbf7fc; }
.workbench-queue-row.timeout-overdue td:first-child, .workbench-queue-card.timeout-overdue { box-shadow: inset 3px 0 0 #c78484; }
.workbench-queue-row.timeout-soon td:first-child, .workbench-queue-card.timeout-soon { box-shadow: inset 3px 0 0 #c7a760; }
.workbench-queue-row.timeout-exception td:first-child, .workbench-queue-card.timeout-exception { box-shadow: inset 3px 0 0 #a47aaa; }
.order-workflow-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.order-workflow-timeline li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 9px; min-height: 38px; }
.order-workflow-timeline li:not(:last-child)::before { position: absolute; top: 12px; bottom: -2px; left: 6px; width: 1px; background: #dce3ec; content: ''; }
.order-workflow-timeline i { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 2px; border: 3px solid #dbe8fb; border-radius: 50%; background: #4f7fbf; }
.order-workflow-timeline strong, .order-workflow-timeline span { display: block; }
.order-workflow-timeline strong { color: var(--wb-text); font-size: 12px; font-weight: 680; }
.order-workflow-timeline span { margin-top: 3px; color: var(--wb-muted); font-size: 11px; }

@media (max-width: 760px) {
  .announcement-page .workbench-table-wrap { display: none; }
  .announcement-mobile-list { display: grid; gap: 9px; }
  .announcement-mobile-item { padding: 13px; border: 1px solid var(--wb-line); border-radius: 6px; background: #fff; }
  .announcement-mobile-item > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .announcement-mobile-item > div:first-child strong { overflow: hidden; color: var(--wb-text); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  .announcement-mobile-item p { display: -webkit-box; overflow: hidden; margin: 10px 0 7px; color: #526176; font-size: 12px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; white-space: pre-wrap; }
  .announcement-mobile-item small { color: var(--wb-muted); font-size: 11px; }
  .announcement-mobile-item .workbench-row-actions { margin-top: 11px; }
  .customer-center-page .workbench-table-wrap { display: none; }
  .customer-mobile-list { display: grid; gap: 9px; }
  .customer-mobile-card { display: grid; gap: 7px; padding: 13px; border: 1px solid var(--wb-line); border-radius: 6px; background: #fff; }
  .customer-mobile-card > div { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
  .customer-mobile-card > div strong { overflow: hidden; color: var(--wb-text); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  .customer-mobile-card > span, .customer-mobile-card small { color: var(--wb-muted); font-size: 11px; }
  .customer-mobile-card p { display: flex; justify-content: space-between; gap: 8px; margin: 1px 0; color: #40516a; font-size: 12px; }
  .customer-mobile-card p b { font-weight: 650; }
  .customer-mobile-card .btn { justify-self: start; margin-top: 3px; }
  .customer-order-history-row { grid-template-columns: minmax(0, 1fr) auto; }
  .customer-order-history-row span:nth-of-type(2) { grid-column: 1 / -1; }
  .dashboard-operations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .dashboard-operation-metric { min-height: 84px; padding: 11px 12px; }
  .dashboard-operation-metric > strong { margin-top: 9px; font-size: 18px; }
  .dashboard-operation-metric > small { margin-top: 5px; }
  .dashboard-trend-card { margin-bottom: 14px; }
  .dashboard-trend-bars { gap: 5px; min-height: 126px; }
  .dashboard-trend-item { grid-template-rows: 80px auto auto; gap: 3px; }
  .dashboard-trend-track { height: 80px; padding-inline: 3px; }
  .dashboard-employee-operations .dashboard-employee-head,
  .dashboard-employee-operations .dashboard-employee-row { grid-template-columns: minmax(78px, 1.15fr) repeat(3, minmax(34px, .5fr)) minmax(58px, .8fr); gap: 4px; }
  .dashboard-employee-operations .dashboard-employee-row span:last-child { font-size: 10px; }
  .workbench-queue-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 13px; }
  .workbench-queue-summary article { padding: 11px 12px; }
  .workbench-queue-summary strong { margin-top: 7px; font-size: 20px; }
  .workbench-queue-mobile { display: grid; gap: 9px; }
  .workbench-queue-card { padding: 13px; border: 1px solid var(--wb-line); border-radius: 6px; background: #fff; }
  .workbench-queue-card .workbench-card-head > span { margin: 0; }
  .workbench-queue-card > p { grid-template-columns: 70px 1fr; margin-top: 9px; }
  .workbench-queue-card .workbench-row-actions { margin-top: 12px; }
}

.payment-drawer-section { display: grid; gap: 11px; }
.payment-drawer-section + .payment-drawer-section { padding-top: 18px; border-top: 1px solid var(--wb-line); }
.payment-drawer-section h3 { margin: 0; color: var(--wb-text); font-size: 14px; font-weight: 700; }
.order-detail-payment-form { display: grid; gap: 0; min-height: auto; }
.order-detail-payment-form .workbench-drawer-actions { position: static; }
.payment-drawer-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-drawer-section-head > span { color: var(--wb-muted); font-size: 12px; font-weight: 600; }
.payment-drawer-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.payment-drawer-details > div { min-width: 0; padding: 10px 11px; border: 1px solid #e8ebef; border-radius: 6px; background: #fafbfc; }
.payment-drawer-details span, .payment-drawer-details strong { display: block; }
.payment-drawer-details span { margin-bottom: 5px; color: var(--wb-muted); font-size: 11px; }
.payment-drawer-details strong { overflow: hidden; color: var(--wb-text); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.payment-drawer-details .payment-drawer-long-text { overflow: visible; text-overflow: clip; white-space: pre-wrap; line-height: 1.45; }
.payment-drawer-order-details > div:last-child { grid-column: 1 / -1; }
.payment-drawer-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-drawer-qr { min-width: 0; padding: 8px; border: 1px solid var(--wb-line); border-radius: 7px; color: var(--wb-text); background: #fff; text-align: left; }
.payment-drawer-qr img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 4px; background: #f8fafc; }
.payment-drawer-qr span { display: block; margin-top: 7px; font-size: 12px; font-weight: 600; }
.payment-drawer-proofs .multi-upload { margin: 0; }
.admin-operation-log-card { margin-top: 20px; }
.admin-operation-log-list { display: grid; gap: 0; }
.admin-operation-log-list article { display: grid; grid-template-columns: minmax(88px, .7fr) minmax(96px, .8fr) minmax(0, 2.3fr) minmax(150px, 1fr); align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--wb-line); }
.admin-operation-log-list article:first-child { border-top: 0; }
.admin-operation-log-list strong { color: var(--wb-text); font-size: 13px; }
.admin-operation-log-list span { color: #1d4ed8; font-size: 12px; font-weight: 600; }
.admin-operation-log-list p { margin: 0; color: #475569; font-size: 13px; line-height: 1.45; }
.admin-operation-log-list small { color: var(--wb-muted); font-size: 12px; line-height: 1.45; }
.admin-employee-create { margin-bottom: 18px; }
.admin-employee-create .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.employee-create-action .btn { width: 100%; }
.admin-employee-list { display: grid; gap: 0; }
.admin-employee-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(120px, .8fr) minmax(110px, .65fr) minmax(150px, 1fr) auto; align-items: end; gap: 12px; padding: 14px 0; border-top: 1px solid var(--wb-line); }
.admin-employee-row > div:first-child { align-self: center; }
.admin-employee-row strong, .admin-employee-row small { display: block; }
.admin-employee-row strong { color: var(--wb-text); font-size: 14px; }
.admin-employee-row small { margin-top: 5px; color: var(--wb-muted); font-size: 12px; }
.employee-row-action { padding-bottom: 1px; }

.dashboard-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.dashboard-money-card, .dashboard-month-card, .dashboard-employee-card { border-color: var(--wb-line); box-shadow: none; }
.dashboard-money-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dashboard-money-list > div { min-width: 0; padding: 12px; border: 1px solid #e7ebf0; border-radius: 7px; background: #fafbfc; }
.dashboard-money-list span, .dashboard-money-list strong { display: block; }
.dashboard-money-list span { color: var(--wb-muted); font-size: 12px; }
.dashboard-money-list strong { margin-top: 8px; color: var(--wb-text); font-size: 20px; font-variant-numeric: tabular-nums; }
.dashboard-employee-card { margin: 0 0 20px; }
.dashboard-employee-table { display: grid; gap: 0; }
.dashboard-employee-head, .dashboard-employee-row { display: grid; grid-template-columns: minmax(120px, 1.5fr) repeat(3, minmax(70px, .7fr)); gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--wb-line); }
.dashboard-employee-head { padding-top: 0; border-top: 0; color: var(--wb-muted); font-size: 12px; font-weight: 600; }
.dashboard-employee-row strong { color: var(--wb-text); font-size: 13px; }
.dashboard-employee-row span { color: #334155; font-size: 13px; font-variant-numeric: tabular-nums; }
.admin-log-filter { margin-bottom: 16px; }
.admin-log-table { min-width: 920px; }
.admin-log-mobile-list { display: none; }

@media (max-width: 390px) {
  .admin-shell .admin-mobile-tab { font-size: 8px; }
  .payment-drawer-details { grid-template-columns: 1fr; }
  .payment-drawer-order-details > div:last-child { grid-column: auto; }
}

/* V2 Phase 5 — notification centre: an operating exception console, not a log catalogue. */
.notification-operations-page { max-width: 1480px; padding-bottom: calc(var(--v2-space-12) + env(safe-area-inset-bottom)); }
.notification-console-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--v2-space-4); margin: 0 0 var(--v2-space-5); }
.notification-console-header h2 { margin: 0; color: var(--v2-color-text); font-size: var(--v2-text-2xl); font-weight: var(--v2-weight-bold); letter-spacing: -.025em; line-height: var(--v2-leading-tight); }
.notification-console-header p { max-width: 680px; margin: var(--v2-space-2) 0 0; color: var(--v2-color-text-secondary); font-size: var(--v2-text-sm); line-height: var(--v2-leading-relaxed); }
.notification-console-actions { display: flex; flex: 0 0 auto; align-items: center; gap: var(--v2-space-2); }

/* Runtime signals are a single strip so the operator compares them in one scan. */
.notification-runtime-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--v2-space-6); border: 1px solid var(--v2-color-border); background: var(--v2-color-surface); }
.notification-runtime-strip > div { min-width: 0; padding: var(--v2-space-4); border-right: 1px solid var(--v2-color-border); }
.notification-runtime-strip > div:last-child { border-right: 0; }
.notification-runtime-strip span,
.notification-runtime-strip strong,
.notification-runtime-strip small { display: block; }
.notification-runtime-strip span { color: var(--v2-color-text-secondary); font-size: var(--v2-text-xs); font-weight: var(--v2-weight-medium); }
.notification-runtime-strip strong { overflow: hidden; margin-top: var(--v2-space-2); color: var(--v2-color-text); font-size: var(--v2-text-xl); font-weight: var(--v2-weight-bold); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.notification-runtime-strip small { overflow: hidden; margin-top: 5px; color: var(--v2-color-text-muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.notification-runtime-strip .is-risk { background: var(--v2-color-danger-subtle); }
.notification-runtime-strip .is-risk strong { color: var(--v2-color-danger); }

.notification-issues-zone { margin-bottom: var(--v2-space-6); border-top: 1px solid var(--v2-color-border); border-bottom: 1px solid var(--v2-color-border); background: var(--v2-color-surface); }
.notification-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--v2-space-4); padding: var(--v2-space-4); }
.notification-section-head h3 { margin: 0; color: var(--v2-color-text); font-size: var(--v2-text-lg); font-weight: var(--v2-weight-semibold); line-height: var(--v2-leading-tight); }
.notification-section-head p { margin: 5px 0 0; color: var(--v2-color-text-muted); font-size: var(--v2-text-xs); line-height: var(--v2-leading-normal); }
.notification-section-head > span { flex: 0 0 auto; color: var(--v2-color-text-muted); font-size: var(--v2-text-xs); font-variant-numeric: tabular-nums; }
.notification-issues-zone .notification-section-head .btn { white-space: nowrap; }
.notification-issues-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--v2-color-border); }
.notification-issue-row { display: flex; min-width: 0; min-height: 94px; align-items: center; justify-content: space-between; gap: var(--v2-space-3); padding: var(--v2-space-4); border: 0; border-right: 1px solid var(--v2-color-border); background: transparent; color: inherit; cursor: pointer; text-align: left; transition: background-color var(--v2-duration-fast) var(--v2-ease-standard); }
.notification-issue-row:last-child { border-right: 0; }
.notification-issue-row:hover { background: var(--v2-color-surface-subtle); }
.notification-issue-row:active { transform: translateY(1px); }
.notification-issue-row:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--v2-color-action); outline-offset: -2px; }
.notification-issue-row.is-failed { background: color-mix(in srgb, var(--v2-color-danger-subtle) 62%, var(--v2-color-surface)); }
.notification-issue-row.is-overdue { background: color-mix(in srgb, var(--v2-color-warning-subtle) 64%, var(--v2-color-surface)); }
.notification-issue-copy { min-width: 0; }
.notification-issue-copy strong,
.notification-issue-copy small { display: block; }
.notification-issue-copy strong { color: var(--v2-color-text); font-size: var(--v2-text-sm); font-weight: var(--v2-weight-semibold); }
.notification-issue-copy small { overflow: hidden; margin-top: 5px; color: var(--v2-color-text-muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.notification-issue-value { flex: 0 0 auto; text-align: right; }
.notification-issue-value b,
.notification-issue-value em { display: block; }
.notification-issue-value b { color: var(--v2-color-text); font-size: var(--v2-text-xl); font-weight: var(--v2-weight-bold); font-variant-numeric: tabular-nums; }
.notification-issue-value em { margin-top: 5px; color: var(--v2-color-action); font-size: 11px; font-style: normal; font-weight: var(--v2-weight-semibold); white-space: nowrap; }
.notification-issue-row.is-failed .notification-issue-value b { color: var(--v2-color-danger); }
.notification-issue-row.is-overdue .notification-issue-value b { color: var(--v2-color-warning); }

.notification-history-section { margin-bottom: var(--v2-space-6); border-top: 1px solid var(--v2-color-border); border-bottom: 1px solid var(--v2-color-border); background: var(--v2-color-surface); }
.notification-history-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--v2-space-3); padding: var(--v2-space-3) var(--v2-space-4); border-top: 1px solid var(--v2-color-border); background: var(--v2-color-surface-subtle); }
.notification-history-toolbar .filter-grid { display: grid; grid-template-columns: 130px 130px minmax(180px, 260px); gap: var(--v2-space-2); }
.notification-history-toolbar .filter-actions { display: flex; flex: 0 0 auto; gap: var(--v2-space-2); }
.notification-history-table { margin: 0; border: 0; border-radius: 0; }
.notification-history-table .workbench-table { min-width: 920px; }
.notification-history-table .workbench-table th { background: var(--v2-color-surface-subtle); color: var(--v2-color-text-secondary); font-size: 11px; font-weight: var(--v2-weight-semibold); }
.notification-history-table .workbench-table td { color: var(--v2-color-text-secondary); font-size: var(--v2-text-sm); vertical-align: middle; }
.notification-history-table .workbench-table td:nth-child(2) strong { display: block; color: var(--v2-color-text); font-weight: var(--v2-weight-semibold); }
.notification-history-table .workbench-table td:nth-child(2) small { display: block; margin-top: 3px; color: var(--v2-color-text-muted); font-size: 11px; }
.notification-history-row.status-failed { background: color-mix(in srgb, var(--v2-color-danger-subtle) 38%, transparent); }
.notification-history-row.status-sending { background: color-mix(in srgb, var(--v2-color-warning-subtle) 38%, transparent); }
.notification-state { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border: 1px solid transparent; border-radius: var(--v2-radius-pill); font-size: 11px; font-weight: var(--v2-weight-semibold); line-height: 1.2; white-space: nowrap; }
.notification-state.is-pending { border-color: color-mix(in srgb, var(--v2-color-warning) 25%, transparent); background: var(--v2-color-warning-subtle); color: var(--v2-color-warning); }
.notification-state.is-sending { border-color: color-mix(in srgb, var(--v2-color-action) 25%, transparent); background: var(--v2-color-action-subtle); color: var(--v2-color-action); }
.notification-state.is-success { border-color: color-mix(in srgb, var(--v2-color-success) 25%, transparent); background: var(--v2-color-success-subtle); color: var(--v2-color-success); }
.notification-state.is-failed { border-color: color-mix(in srgb, var(--v2-color-danger) 25%, transparent); background: var(--v2-color-danger-subtle); color: var(--v2-color-danger); }
.notification-state.is-locked,
.notification-state.is-skipped { border-color: color-mix(in srgb, var(--v2-color-warning) 25%, transparent); background: var(--v2-color-warning-subtle); color: var(--v2-color-warning); }
.notification-history-mobile { display: none; }

/* The system record remains available, intentionally lower in the reading order. */
.notification-worker-history,
.notification-control-panel { margin-top: var(--v2-space-6); border-top: 1px solid var(--v2-color-border); background: var(--v2-color-surface); }
.notification-worker-history .workbench-table-wrap { margin: 0; border: 0; border-radius: 0; }
.notification-worker-history .workbench-table th { background: var(--v2-color-surface-subtle); }
.notification-control-panel { padding-bottom: var(--v2-space-4); }
.notification-control-panel .form-grid { padding: 0 var(--v2-space-4); }

@media (max-width: 960px) {
  .notification-runtime-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notification-runtime-strip > div:nth-child(2) { border-right: 0; }
  .notification-runtime-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--v2-color-border); }
  .notification-issues-list { grid-template-columns: 1fr; }
  .notification-issue-row,
  .notification-issue-row:last-child { border-right: 0; border-bottom: 1px solid var(--v2-color-border); }
  .notification-issue-row:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .notification-console-header { align-items: flex-start; flex-direction: column; gap: var(--v2-space-3); }
  .notification-console-header h2 { font-size: 21px; }
  .notification-console-actions { width: 100%; }
  .notification-runtime-strip { margin-bottom: var(--v2-space-4); }
  .notification-runtime-strip > div { min-height: 96px; padding: var(--v2-space-3); }
  .notification-runtime-strip strong { font-size: 19px; }
  .notification-runtime-strip small { overflow: visible; white-space: normal; }
  .notification-section-head { align-items: flex-start; padding: var(--v2-space-3); }
  .notification-section-head > div { min-width: 0; }
  .notification-section-head p { max-width: 260px; }
  .notification-issues-zone .notification-section-head .btn { min-width: 84px; }
  .notification-issues-zone,
  .notification-history-section { margin-bottom: var(--v2-space-4); }
  .notification-issue-row { min-height: 82px; padding: var(--v2-space-3); }
  .notification-issue-copy small { overflow: visible; white-space: normal; }
  .notification-history-toolbar { align-items: stretch; flex-direction: column; padding: var(--v2-space-3); }
  .notification-history-toolbar .filter-grid { grid-template-columns: 1fr 1fr; }
  .notification-history-toolbar .filter-grid .input { grid-column: 1 / -1; }
  .notification-history-toolbar .filter-actions { justify-content: flex-end; }
  .notification-history-table { display: none; }
  .notification-history-mobile { display: grid; gap: var(--v2-space-2); padding: var(--v2-space-3); }
  .notification-history-card { padding: var(--v2-space-3); border: 1px solid var(--v2-color-border); background: var(--v2-color-surface); }
  .notification-history-card.status-failed { border-color: color-mix(in srgb, var(--v2-color-danger) 36%, var(--v2-color-border)); background: var(--v2-color-danger-subtle); }
  .notification-history-card.status-sending { border-color: color-mix(in srgb, var(--v2-color-warning) 36%, var(--v2-color-border)); background: var(--v2-color-warning-subtle); }
  .notification-history-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--v2-space-2); }
  .notification-history-card-head strong,
  .notification-history-card-head span { display: block; }
  .notification-history-card-head strong { color: var(--v2-color-text); font-size: var(--v2-text-sm); font-weight: var(--v2-weight-semibold); }
  .notification-history-card-head > div > span { margin-top: 4px; color: var(--v2-color-text-muted); font-size: 11px; }
  .notification-history-card-meta { display: grid; gap: 6px; margin: var(--v2-space-3) 0; color: var(--v2-color-text-secondary); font-size: var(--v2-text-xs); line-height: var(--v2-leading-normal); }
  .notification-history-card-meta span { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--v2-space-2); }
  .notification-history-card-meta b { color: var(--v2-color-text-muted); font-size: 11px; font-weight: var(--v2-weight-medium); }
  .notification-history-card .btn { width: 100%; }
  .notification-worker-history,
  .notification-control-panel { margin-top: var(--v2-space-4); }
  .notification-worker-history .workbench-table { min-width: 660px; }
  .notification-control-panel .form-grid { padding: 0 var(--v2-space-3); }
}

@media (max-width: 760px) {
  .dashboard-data-grid { grid-template-columns: 1fr; gap: 9px; margin-bottom: 16px; }
  .dashboard-money-list { gap: 8px; }
  .dashboard-money-list > div { padding: 11px; }
  .dashboard-money-list strong { font-size: 18px; }
  .dashboard-employee-card { margin-bottom: 16px; }
  .dashboard-employee-head, .dashboard-employee-row { grid-template-columns: minmax(96px, 1.35fr) repeat(3, minmax(48px, .65fr)); gap: 6px; }
  .dashboard-employee-head { font-size: 11px; }
  .dashboard-employee-row strong, .dashboard-employee-row span { font-size: 12px; }
  .admin-log-table-wrap { display: none; }
  .admin-log-mobile-list { display: grid; margin-top: 0; border: 1px solid var(--wb-line); border-radius: 8px; background: var(--wb-surface); padding-inline: 14px; }
}

/* ADMIN-WORKBENCH-V1.4.2: priority-led desktop and mobile operating surface. */
.admin-shell .content { background: #f7f8fa; }
.workbench-page-head { margin-bottom: 18px; }
.workbench-page-head h2 { letter-spacing: -.02em; }
.workbench-page-head p { max-width: 620px; }
.head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.workbench-metrics { gap: 10px; margin-bottom: 18px; }
.workbench-metric { min-height: 100px; padding: 15px 17px; border-color: #e6e9ee; border-radius: 7px; }
.workbench-metric strong { margin-top: 15px; letter-spacing: -.03em; }
.workbench-metric:nth-child(2) { border-top: 2px solid #f59e0b; }
.workbench-metric:nth-child(3) { border-top: 2px solid #2563eb; }
.workbench-metric:nth-child(4) { border-top: 2px solid #22a06b; }
.workbench-task-panel { margin-bottom: 18px; padding: 16px 18px; border-radius: 7px; }
.workbench-task-list { gap: 8px; }
.workbench-task { min-height: 70px; padding: 14px; border-color: #e8ebf0; border-radius: 6px; }
.workbench-task:first-child { border-color: #f5d998; background: #fffdfa; }
.workbench-task:nth-child(2) { border-color: #cfe0ff; background: #fbfdff; }
.workbench-task-count { font-size: 22px; }
.dashboard-recent-card { margin: 0 0 18px; border-color: var(--wb-line); box-shadow: none; }
.dashboard-recent-list { display: grid; gap: 0; }
.dashboard-recent-item { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 11px 0; border-top: 1px solid #edf0f3; }
.dashboard-recent-item:first-child { border-top: 0; padding-top: 0; }
.dashboard-recent-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--wb-blue); }
.dashboard-recent-item strong { display: block; color: var(--wb-text); font-size: 13px; }
.dashboard-recent-item p { overflow: hidden; margin: 4px 0 0; color: var(--wb-muted); font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-recent-item time { padding-left: 12px; color: var(--wb-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dashboard-pending-orders { padding-top: 2px; }
.workbench-filter-tabs { display: flex; align-items: center; gap: 4px; width: max-content; max-width: 100%; margin: 0 0 10px; padding: 4px; border: 1px solid var(--wb-line); border-radius: 7px; background: #fff; }
.workbench-filter-tabs button { min-height: 31px; padding: 5px 11px; border: 0; border-radius: 5px; color: #64748b; background: transparent; font-size: 12px; font-weight: 650; white-space: nowrap; }
.workbench-filter-tabs button:hover { color: #1d4ed8; background: #f4f7ff; }
.workbench-filter-tabs button.active { color: #1d4ed8; background: #edf4ff; }
.admin-shell .filter-card { margin-bottom: 12px; padding: 12px; }
.workbench-table { min-width: 1080px; }
.workbench-table th { height: 38px; padding-inline: 11px; }
.workbench-table td { padding: 10px 11px; }
.workbench-table .cell-note { max-width: 145px; }
.workbench-row-actions { min-width: 168px; gap: 5px; }
.workbench-row-actions .btn { padding-inline: 8px; }
.workbench-drawer { width: min(100%, 560px); }
.workbench-drawer-head { padding: 22px 24px 18px; }
.workbench-drawer-form { gap: 16px; }
.payment-drawer-section { gap: 10px; }
.payment-drawer-section + .payment-drawer-section { padding-top: 16px; }
.payment-drawer-section h3 { font-size: 14px; }
.payment-drawer-order-overview { padding-top: 0 !important; border-top: 0 !important; }
.payment-drawer-money-details .payment-drawer-payable { grid-column: 1 / -1; border-color: #b9d4ff; background: #f5f9ff; }
.payment-drawer-payable strong { color: #174ea6; font-size: 16px; }
.payment-drawer-processing .field { display: grid; gap: 7px; }
.payment-drawer-notes { padding: 10px 11px; border-left: 2px solid #dbeafe; background: #fafcff; }
.payment-drawer-notes span { display: block; color: var(--wb-muted); font-size: 11px; font-weight: 600; }
.payment-drawer-notes p { margin: 5px 0 0; color: #475569; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.workbench-drawer-actions { gap: 8px; }
.workbench-drawer-actions .btn { min-width: 84px; }

@media (max-width: 760px) {
  .admin-shell .content { padding: 16px 14px calc(108px + env(safe-area-inset-bottom)); }
  .workbench-page-head { gap: 12px; margin-bottom: 14px; }
  .workbench-page-head h2 { font-size: 22px; }
  .workbench-page-head p { max-width: 220px; line-height: 1.45; }
  .head-actions { display: grid; flex: 0 0 auto; gap: 6px; }
  .head-actions .btn { min-height: 30px; padding: 5px 8px; font-size: 11px; }
  .workbench-metrics { gap: 8px; margin-bottom: 14px; }
  .workbench-metric { min-height: 80px; padding: 12px; }
  .workbench-metric strong { margin-top: 10px; font-size: 24px; }
  .workbench-task-panel { margin-bottom: 14px; padding: 13px; }
  .workbench-task { min-height: 60px; padding: 11px 12px; }
  .workbench-task-copy small { margin-top: 3px; }
  .dashboard-recent-card { margin-bottom: 14px; }
  .dashboard-recent-item time { display: none; }
  .workbench-filter-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 2px; margin-bottom: 8px; }
  .workbench-filter-tabs button { min-width: 0; padding: 5px 3px; font-size: 11px; }
  .workbench-order-card { padding: 13px; border-radius: 7px; }
  .workbench-order-card .workbench-statuses { margin-top: 9px; }
  .workbench-card-notes { display: grid; gap: 5px; margin-top: 9px; }
  .workbench-order-card .workbench-card-notes p, .workbench-order-card .workbench-card-amount { grid-template-columns: 66px minmax(0, 1fr); gap: 7px; margin: 0; }
  .workbench-card-amount { margin-top: 9px !important; }
  .workbench-card-amount strong { font-variant-numeric: tabular-nums; }
  .workbench-order-card .workbench-row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
  .workbench-order-card .workbench-row-actions .btn:last-child { grid-column: 1 / -1; }
  .workbench-order-card .workbench-row-actions .btn { min-height: 34px; }
  .workbench-drawer-head { padding: 16px 18px 14px; }
  .workbench-drawer-head h2 { font-size: 20px; }
  .workbench-drawer-form { gap: 14px; padding: 16px 18px; }
  .payment-drawer-section + .payment-drawer-section { padding-top: 14px; }
  .payment-drawer-details > div { padding: 9px 10px; }
  .workbench-drawer-actions { gap: 6px; margin: 0 -18px -16px; padding: 11px 18px calc(11px + env(safe-area-inset-bottom)); }
  .workbench-drawer-actions .btn { min-width: 0; padding-inline: 6px; font-size: 12px; }
}

/* ADMIN-WORKBENCH-V1.4.3: calm, dense operations surface.
   This is a presentation-only Design System layer. Business fields, routes,
   permissions and all existing actions remain unchanged. */
.admin-shell {
  --wb-navy: #0b1f3a;
  --wb-navy-raised: #122c4f;
  --wb-canvas: #f4f6f9;
  --wb-surface: #ffffff;
  --wb-text: #152238;
  --wb-muted: #6b778c;
  --wb-line: #dde3ec;
  --wb-line-soft: #edf1f5;
  --wb-blue: #1e64d8;
  --wb-blue-hover: #1757be;
  --wb-blue-soft: #edf4ff;
  --wb-success: #197c57;
  --wb-warning: #a86612;
  --wb-danger: #b13e49;
  background: var(--wb-canvas);
  color: var(--wb-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Frame: the navigation is deliberately quiet; the working surface carries the data. */
.admin-shell .sidebar {
  width: 232px;
  padding: 18px 12px 14px;
  border-right: 0;
  color: #c9d6e7;
  background: var(--wb-navy);
}
.admin-shell .sidebar-brand {
  padding: 10px 12px 28px;
  color: #f8fbff;
}
.admin-shell .sidebar-brand img { border-radius: 6px; }
.admin-shell .sidebar-brand strong { color: #f8fbff; font-size: 15px; letter-spacing: .01em; }
.admin-shell .sidebar-brand small { color: #8fa5c1; font-size: 11px; }
.admin-shell .nav-list { gap: 3px; }
.admin-shell .nav-link {
  min-height: 42px;
  border-radius: 6px;
  color: #adc0d8;
  font-size: 13px;
  font-weight: 600;
}
.admin-shell .nav-link:hover { color: #fff; background: rgba(255,255,255,.075); }
.admin-shell .nav-link.active {
  color: #fff;
  background: #1d4f9f;
  box-shadow: inset 2px 0 0 #7fb0ff;
}
.admin-shell .sidebar-foot { border-top-color: rgba(186,207,234,.16); }
.admin-shell .user-chip { border: 1px solid rgba(186,207,234,.14); border-radius: 7px; background: rgba(255,255,255,.055); }
.admin-shell .user-chip strong { color: #f7fbff; }
.admin-shell .user-chip span { color: #9eb2cb; }
.admin-shell .sidebar-foot .nav-link { margin-top: 6px; }

.admin-shell .main,
.admin-shell .content { background: var(--wb-canvas); }
.admin-shell .topbar {
  min-height: 64px;
  padding: 11px 30px;
  border-bottom-color: var(--wb-line);
  background: rgba(255,255,255,.96);
}
.admin-shell .topbar h1 { color: var(--wb-text); font-size: 15px; font-weight: 680; }
.admin-shell .topbar-kicker { color: var(--wb-muted); font-size: 11px; font-weight: 600; }
.admin-shell .clock-chip { border: 1px solid var(--wb-line); border-radius: 5px; color: #5c6a7f; background: #fff; font-variant-numeric: tabular-nums; }
.admin-shell .avatar-chip { color: #fff; background: var(--wb-navy-raised); }
.admin-shell .content { padding: 26px 30px 42px; }

/* Shared controls（按钮语言唯一真相在底部 v2 收敛层；本段历史覆写已并项删除）。 */
.admin-shell .btn:focus-visible,
.admin-shell .input:focus,
.admin-shell .select:focus,
.admin-shell .textarea:focus { outline: 0; border-color: #7ca8ef; box-shadow: 0 0 0 3px rgba(30,100,216,.12); }
.admin-shell .input,
.admin-shell .select,
.admin-shell .textarea { border-color: #cfd8e5; border-radius: 5px; color: var(--wb-text); }

/* Dashboard: metrics give orientation; the task queue remains the primary scan target. */
.workbench-page { width: min(100%, 1460px); }
.workbench-page-head { align-items: flex-end; gap: 24px; margin-bottom: 20px; }
.workbench-page-head > div > span { color: #58739d; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.workbench-page-head h2 { font-size: 25px; font-weight: 720; letter-spacing: -.025em; }
.workbench-page-head p { color: var(--wb-muted); font-size: 13px; }
.workbench-metrics { gap: 10px; margin-bottom: 16px; }
.workbench-metric {
  position: relative;
  min-height: 94px;
  padding: 14px 16px;
  border-color: var(--wb-line);
  border-radius: 6px;
  background: var(--wb-surface);
}
.workbench-metric::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: #b8c7dc; content: ""; }
.workbench-metric:hover { border-color: #a9bfdf; background: #fff; }
.workbench-metric span { color: var(--wb-muted); font-size: 12px; }
.workbench-metric strong { margin-top: 14px; color: var(--wb-text); font-size: 27px; font-weight: 720; letter-spacing: -.035em; }
.workbench-metric:nth-child(2)::before { background: #d9983f; }
.workbench-metric:nth-child(3)::before { background: var(--wb-blue); }
.workbench-metric:nth-child(4)::before { background: #29906d; }
.workbench-task-panel,
.dashboard-recent-card,
.dashboard-money-card,
.dashboard-month-card,
.dashboard-employee-card {
  border-color: var(--wb-line);
  border-radius: 6px;
  box-shadow: none;
}
.workbench-task-panel { padding: 16px 18px 14px; }
.workbench-section-head { margin-bottom: 11px; }
.workbench-section-head h3 { font-size: 15px; font-weight: 720; }
.workbench-section-head p { color: var(--wb-muted); }
.workbench-task-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--wb-line-soft); }
.workbench-task {
  min-height: 68px;
  padding: 13px 10px;
  border: 0;
  border-right: 1px solid var(--wb-line-soft);
  border-radius: 0;
  background: transparent;
}
.workbench-task:last-child { border-right: 0; }
.workbench-task:first-child,
.workbench-task:nth-child(2) { background: transparent; }
.workbench-task:hover { border-color: var(--wb-line-soft); background: #f8fbff; }
.workbench-task-copy strong { color: var(--wb-text); }
.workbench-task-count { color: var(--wb-blue); font-size: 20px; }
.dashboard-recent-item { padding: 12px 0; }
.dashboard-recent-dot { background: #7b9ecf; }
.dashboard-recent-item strong { font-weight: 650; }

/* Orders: compact table first, clear state labels, and priority-specific action emphasis. */
.workbench-filter-tabs { margin-bottom: 9px; border-color: var(--wb-line); border-radius: 5px; padding: 3px; }
.workbench-filter-tabs button { min-height: 30px; border-radius: 4px; color: #66758b; font-weight: 650; }
.workbench-filter-tabs button.active { color: #164eaa; background: var(--wb-blue-soft); }
.admin-shell .filter-card { padding: 12px; border-color: var(--wb-line); border-radius: 6px; }
.workbench-table-wrap { border-color: var(--wb-line); border-radius: 6px; }
.workbench-table { min-width: 1110px; font-size: 12px; }
.workbench-table th { height: 38px; padding-inline: 12px; border-bottom-color: var(--wb-line); color: #65738a; background: #f8fafc; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.workbench-table td { padding: 10px 12px; border-bottom-color: var(--wb-line-soft); }
.workbench-table .cell-main { color: var(--wb-text); font-weight: 650; }
.workbench-table .cell-sub { color: #8592a5; font-size: 11px; }
.workbench-table .cell-note { color: #58677b; }
.workbench-table .money { color: var(--wb-text); text-align: right; font-variant-numeric: tabular-nums; }
.workbench-table th:nth-last-child(2),
.workbench-table td:nth-last-child(2) { text-align: right; }
.workbench-row-actions { min-width: 172px; gap: 5px; }
.workbench-row-actions .btn { min-width: 48px; }
/* Processing drawer: fixed head and action bar, a quieter scrollable middle. */
.workbench-drawer-backdrop { background: rgba(8, 21, 41, .34); }
.workbench-drawer { width: min(100%, 552px); border-left-color: var(--wb-line); box-shadow: -16px 0 44px rgba(13,31,57,.16); }
.workbench-drawer-head { padding: 20px 22px 16px; border-bottom-color: var(--wb-line); }
.workbench-drawer-head span { color: #5274a6; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.workbench-drawer-head h2 { color: var(--wb-text); font-size: 20px; letter-spacing: -.02em; }
.icon-close { border: 1px solid var(--wb-line); border-radius: 5px; color: #5a6980; background: #fff; }
.workbench-drawer-form { gap: 0; padding: 0 22px; }
.payment-drawer-section { gap: 10px; padding: 16px 0; }
.payment-drawer-section + .payment-drawer-section { border-top-color: var(--wb-line-soft); }
.payment-drawer-section h3 { color: #1d2b3e; font-size: 13px; font-weight: 720; }
.payment-drawer-details { gap: 8px; }
.payment-drawer-details > div { padding: 10px; border-color: var(--wb-line-soft); border-radius: 5px; background: #fbfcfe; }
.payment-drawer-details span { color: #718096; font-size: 10px; font-weight: 600; }
.payment-drawer-details strong { color: var(--wb-text); font-size: 12px; font-weight: 650; }
.payment-drawer-money-details .payment-drawer-payable { border-color: #b7cdee; background: #f2f7ff; }
.payment-drawer-payable strong { color: #174f9e; font-size: 17px; }
.payment-drawer-qr { border-color: var(--wb-line); border-radius: 5px; }
.payment-drawer-qr img { border-radius: 3px; }
.payment-drawer-notes { border-left-color: #89afe8; background: #f8fbff; }
.workbench-drawer-actions { gap: 8px; margin: 0 -22px; padding: 12px 22px 14px; border-top-color: var(--wb-line); background: rgba(255,255,255,.98); }
.workbench-drawer-actions .btn { min-width: 86px; }

@media (min-width: 861px) {
  .admin-shell .content { padding: 24px 28px 38px; }
  .workbench-table-wrap { scrollbar-color: #a6b6ca transparent; }
  .workbench-drawer { width: min(100%, 552px); }
  .workbench-drawer-form { padding-bottom: 0; }
  .workbench-drawer-actions { margin-top: auto; }
}

@media (max-width: 760px) {
  .admin-shell { background: var(--wb-canvas); }
  .admin-shell .admin-topbar { border-bottom-color: var(--wb-line); background: #fff; }
  .admin-shell .content { padding: 15px 13px calc(108px + env(safe-area-inset-bottom)); }
  .workbench-page-head { align-items: flex-start; gap: 10px; }
  .workbench-page-head h2 { font-size: 21px; }
  .workbench-page-head p { max-width: 230px; color: var(--wb-muted); }
  .workbench-metrics { margin-bottom: 13px; }
  .workbench-metric { min-height: 78px; padding: 11px 12px; }
  .workbench-metric strong { margin-top: 10px; font-size: 23px; }
  .workbench-task-panel { padding: 13px; }
  .workbench-task-list { grid-template-columns: 1fr; border-top: 0; }
  .workbench-task { min-height: 58px; padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--wb-line-soft); }
  .workbench-task:last-child { border-bottom: 0; }
  .workbench-filter-tabs { width: 100%; }
  .workbench-order-card { padding: 13px; border-color: var(--wb-line); border-radius: 6px; background: #fff; }
  .workbench-order-card .workbench-card-head strong { color: var(--wb-text); font-size: 13px; }
  .workbench-order-card .workbench-card-head > span { color: var(--wb-text); font-weight: 720; font-variant-numeric: tabular-nums; }
  .workbench-order-card .workbench-row-actions { gap: 7px; }
  .workbench-order-card .workbench-row-actions .btn { min-height: 36px; }
  .workbench-drawer { width: 100%; }
  .workbench-drawer-head { padding: max(16px, env(safe-area-inset-top)) 18px 14px; }
  .workbench-drawer-form { padding: 0 18px; }
  .payment-drawer-section { padding: 14px 0; }
  .workbench-drawer-actions { margin: 0 -18px; padding: 11px 18px calc(11px + env(safe-area-inset-bottom)); }
  .workbench-drawer-actions .btn { min-height: 42px; font-size: 12px; }
}

@media (max-width: 390px) {
  .workbench-metric span { font-size: 11px; }
  .workbench-filter-tabs button { font-size: 10px; }
  .workbench-drawer-actions .btn { padding-inline: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-shell *, .workbench-drawer-layer * { scroll-behavior: auto; transition-duration: 1ms !important; }
}

/* MAY-BAODAN V2 PHASE 2: administrator shell and shared controls only.
   This final, token-backed layer intentionally leaves business-page layout,
   routes, data, and permission behaviour untouched. */
.admin-shell {
  --wb-navy: var(--v2-color-sidebar);
  --wb-navy-raised: var(--v2-color-sidebar-hover);
  --wb-canvas: var(--v2-color-canvas);
  --wb-surface: var(--v2-color-surface);
  --wb-text: var(--v2-color-text);
  --wb-muted: var(--v2-color-text-muted);
  --wb-line: var(--v2-color-border);
  --wb-line-soft: var(--v2-color-surface-inset);
  --wb-blue: var(--v2-color-action);
  --wb-blue-hover: var(--v2-color-action-hover);
  --wb-blue-soft: var(--v2-color-action-subtle);
  --wb-success: var(--v2-color-success);
  --wb-warning: var(--v2-color-warning);
  --wb-danger: var(--v2-color-danger);
  background: var(--v2-color-canvas);
  color: var(--v2-color-text);
  font-family: var(--v2-font-sans);
}

/* Shell */
.admin-shell .sidebar {
  border-right: 1px solid color-mix(in srgb, var(--v2-color-text-inverse) 9%, transparent);
  background: var(--v2-color-sidebar);
  color: color-mix(in srgb, var(--v2-color-text-inverse) 78%, transparent);
}
.admin-shell .sidebar-brand { color: var(--v2-color-text-inverse); }
.admin-shell .sidebar-brand strong,
.admin-shell .user-chip strong { color: var(--v2-color-text-inverse); }
.admin-shell .sidebar-brand small,
.admin-shell .user-chip span { color: color-mix(in srgb, var(--v2-color-text-inverse) 62%, transparent); }
.admin-shell .nav-link {
  border: 1px solid transparent;
  border-radius: var(--v2-radius-sm);
  color: color-mix(in srgb, var(--v2-color-text-inverse) 70%, transparent);
  transition: background-color var(--v2-duration-standard) var(--v2-ease-standard), color var(--v2-duration-standard) var(--v2-ease-standard), border-color var(--v2-duration-standard) var(--v2-ease-standard);
}
.admin-shell .nav-link:hover {
  color: var(--v2-color-text-inverse);
  background: var(--v2-color-sidebar-hover);
}
.admin-shell .nav-link.active {
  border-color: color-mix(in srgb, var(--v2-color-text-inverse) 14%, transparent);
  color: var(--v2-color-text-inverse);
  background: var(--v2-color-sidebar-hover);
  box-shadow: none;
}
.admin-shell .sidebar-foot { border-top-color: color-mix(in srgb, var(--v2-color-text-inverse) 12%, transparent); }
.admin-shell .user-chip {
  border-color: color-mix(in srgb, var(--v2-color-text-inverse) 12%, transparent);
  border-radius: var(--v2-radius-sm);
  background: color-mix(in srgb, var(--v2-color-text-inverse) 6%, transparent);
}
.admin-shell .main,
.admin-shell .content { background: var(--v2-color-canvas); }
.admin-shell .topbar {
  border-bottom-color: var(--v2-color-border);
  background: var(--v2-color-surface);
}
.admin-shell .topbar h1 { color: var(--v2-color-text); }
.admin-shell .topbar-kicker { color: var(--v2-color-text-muted); }
.admin-shell .clock-chip {
  border-color: var(--v2-color-border);
  border-radius: var(--v2-radius-xs);
  color: var(--v2-color-text-secondary);
  background: var(--v2-color-surface);
}
.admin-shell .avatar-chip { background: var(--v2-color-sidebar-hover); }

/* Buttons and form controls（圆角以 v2 收敛层 --v2-radius-xs 为准，此处历史 radius 覆写已移除） */
.admin-shell .btn {
  box-shadow: none;
  transition: background-color var(--v2-duration-standard) var(--v2-ease-standard), border-color var(--v2-duration-standard) var(--v2-ease-standard), color var(--v2-duration-standard) var(--v2-ease-standard), opacity var(--v2-duration-fast) var(--v2-ease-standard);
}
.admin-shell .btn:hover:not(:disabled),
.admin-shell .btn:active:not(:disabled) { transform: none; box-shadow: none; }
.admin-shell .btn-primary {
  border-color: var(--v2-color-action);
  color: var(--v2-color-text-inverse);
  background: var(--v2-color-action);
}
.admin-shell .btn-primary:hover:not(:disabled) { border-color: var(--v2-color-action-hover); background: var(--v2-color-action-hover); }
.admin-shell .btn-primary:active:not(:disabled) { border-color: var(--v2-color-action-active); background: var(--v2-color-action-active); }
.admin-shell .btn-secondary {
  border-color: var(--v2-color-border);
  color: var(--v2-color-text-secondary);
  background: var(--v2-color-surface);
}
.admin-shell .btn-secondary:hover:not(:disabled) {
  border-color: var(--v2-color-border-strong);
  color: var(--v2-color-text);
  background: var(--v2-color-surface-subtle);
}
.admin-shell .btn-quiet { border-color: transparent; color: var(--v2-color-text-secondary); background: transparent; }
.admin-shell .btn-quiet:hover:not(:disabled) { color: var(--v2-color-action); background: var(--v2-color-action-subtle); }
.admin-shell .btn-danger {
  border-color: var(--v2-color-danger);
  color: var(--v2-color-text-inverse);
  background: var(--v2-color-danger);
}
.admin-shell .btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--v2-color-danger) 88%, var(--v2-color-text)); }
.admin-shell .btn:disabled { cursor: not-allowed; opacity: .52; }
.admin-shell .input,
.admin-shell .select,
.admin-shell .textarea {
  border-color: var(--v2-color-border);
  border-radius: var(--v2-radius-sm);
  color: var(--v2-color-text);
  background: var(--v2-color-surface);
  box-shadow: none;
  transition: border-color var(--v2-duration-standard) var(--v2-ease-standard), box-shadow var(--v2-duration-standard) var(--v2-ease-standard), background-color var(--v2-duration-standard) var(--v2-ease-standard);
}
.admin-shell .input::placeholder,
.admin-shell .textarea::placeholder { color: var(--v2-color-text-muted); opacity: 1; }
.admin-shell .input:hover:not(:disabled),
.admin-shell .select:hover:not(:disabled),
.admin-shell .textarea:hover:not(:disabled) { border-color: var(--v2-color-border-strong); }
.admin-shell .input:focus,
.admin-shell .select:focus,
.admin-shell .textarea:focus {
  border-color: var(--v2-color-action);
  box-shadow: 0 0 0 3px var(--v2-color-focus-ring);
}
.admin-shell .input:disabled,
.admin-shell .select:disabled,
.admin-shell .textarea:disabled { color: var(--v2-color-text-disabled); background: var(--v2-color-surface-inset); }

/* Tables and statuses */
.admin-shell .table-wrap,
.workbench-table-wrap {
  border: 1px solid var(--v2-color-border);
  border-radius: var(--v2-radius-sm);
  background: var(--v2-color-surface);
  box-shadow: none;
}
.admin-shell .data-table,
.workbench-table {
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--v2-color-surface);
}
.admin-shell .data-table thead th,
.workbench-table th {
  color: var(--v2-color-text-secondary);
  background: var(--v2-color-surface-subtle);
  border-bottom-color: var(--v2-color-border);
}
.admin-shell .data-table tbody tr,
.workbench-table tbody tr { background: var(--v2-color-surface); box-shadow: none; transition: background-color var(--v2-duration-fast) var(--v2-ease-standard); }
.admin-shell .data-table tbody tr:hover,
.workbench-table tbody tr:hover { transform: none; background: var(--v2-color-surface-subtle); box-shadow: none; }
.order-list-table-wrap .workbench-table tbody tr,
.order-list-table-wrap .workbench-table tbody tr:hover { background: #fff; }
.admin-shell .data-table td,
.workbench-table td { border-color: var(--v2-color-border); }
.admin-shell .data-table td:first-child,
.admin-shell .data-table td:last-child { border-radius: 0; }

/* Overlays */
.toast-root { z-index: var(--v2-z-toast); }
.toast {
  border: 1px solid var(--v2-color-border);
  border-radius: var(--v2-radius-md);
  color: var(--v2-color-text);
  background: var(--v2-color-surface);
  box-shadow: var(--v2-shadow-float);
  backdrop-filter: none;
  animation: none;
}
.toast.success { color: var(--v2-color-success); }
.toast.error { color: var(--v2-color-danger); }
.image-modal,
.confirm-modal {
  z-index: var(--v2-z-modal);
  background: rgba(15, 23, 42, .36);
  backdrop-filter: none;
}
.image-modal img {
  border: 1px solid var(--v2-color-border);
  border-radius: var(--v2-radius-md);
  box-shadow: var(--v2-shadow-overlay);
}
.image-modal-close {
  border-color: var(--v2-color-border);
  border-radius: var(--v2-radius-sm);
  color: var(--v2-color-text-secondary);
  background: var(--v2-color-surface);
  box-shadow: var(--v2-shadow-float);
}
.confirm-modal { transition: opacity var(--v2-duration-standard) var(--v2-ease-standard); }
.confirm-modal-card {
  border-color: var(--v2-color-border);
  border-radius: var(--v2-radius-md);
  background: var(--v2-color-surface);
  box-shadow: var(--v2-shadow-overlay);
  transition: opacity var(--v2-duration-standard) var(--v2-ease-standard);
}
.confirm-modal-card h3 { color: var(--v2-color-text); }
.confirm-modal-card p { color: var(--v2-color-text-secondary); }
.confirm-modal-actions .btn { border-radius: var(--v2-radius-sm); }
.confirm-modal.confirm-modal-hidden .confirm-modal-card { transform: none; }
.workbench-drawer-layer { z-index: var(--v2-z-modal); }
.workbench-drawer-backdrop { background: rgba(15, 23, 42, .36); }
.workbench-drawer {
  border-left-color: var(--v2-color-border);
  background: var(--v2-color-surface);
  box-shadow: -16px 0 36px rgba(15, 23, 42, .16);
}
.workbench-drawer-head,
.workbench-drawer-actions { border-color: var(--v2-color-border); background: var(--v2-color-surface); }
.workbench-drawer-actions { box-shadow: 0 -8px 20px rgba(15, 23, 42, .08); }
.icon-close {
  border-color: var(--v2-color-border);
  border-radius: var(--v2-radius-sm);
  color: var(--v2-color-text-secondary);
  background: var(--v2-color-surface);
}

/* Drawers and confirmation dialogs are mounted beside the shell, so they need
   the same shared-control contract explicitly rather than inheriting it. */
.workbench-drawer .btn,
.confirm-modal .btn {
  border-radius: var(--v2-radius-sm);
  box-shadow: none;
  transition: background-color var(--v2-duration-standard) var(--v2-ease-standard), border-color var(--v2-duration-standard) var(--v2-ease-standard), color var(--v2-duration-standard) var(--v2-ease-standard), opacity var(--v2-duration-fast) var(--v2-ease-standard);
}
.workbench-drawer .btn:hover:not(:disabled),
.workbench-drawer .btn:active:not(:disabled),
.confirm-modal .btn:hover:not(:disabled),
.confirm-modal .btn:active:not(:disabled) { transform: none; box-shadow: none; }
.workbench-drawer .btn-primary,
.confirm-modal .btn-primary {
  border-color: var(--v2-color-action);
  color: var(--v2-color-text-inverse);
  background: var(--v2-color-action);
}
.workbench-drawer .btn-primary:hover:not(:disabled),
.confirm-modal .btn-primary:hover:not(:disabled) { border-color: var(--v2-color-action-hover); background: var(--v2-color-action-hover); }
.workbench-drawer .btn-secondary,
.confirm-modal .btn-secondary {
  border-color: var(--v2-color-border);
  color: var(--v2-color-text-secondary);
  background: var(--v2-color-surface);
}
.workbench-drawer .btn-secondary:hover:not(:disabled),
.confirm-modal .btn-secondary:hover:not(:disabled) { border-color: var(--v2-color-border-strong); color: var(--v2-color-text); background: var(--v2-color-surface-subtle); }
.workbench-drawer .btn-danger,
.confirm-modal .btn-danger {
  border-color: var(--v2-color-danger);
  color: var(--v2-color-text-inverse);
  background: var(--v2-color-danger);
}
.workbench-drawer .btn:disabled,
.confirm-modal .btn:disabled { cursor: not-allowed; opacity: .52; }
.workbench-drawer .input,
.workbench-drawer .select,
.workbench-drawer .textarea {
  border-color: var(--v2-color-border);
  border-radius: var(--v2-radius-sm);
  color: var(--v2-color-text);
  background: var(--v2-color-surface);
  box-shadow: none;
}
.workbench-drawer .input::placeholder,
.workbench-drawer .textarea::placeholder { color: var(--v2-color-text-muted); opacity: 1; }
.workbench-drawer .input:focus,
.workbench-drawer .select:focus,
.workbench-drawer .textarea:focus {
  border-color: var(--v2-color-action);
  box-shadow: 0 0 0 3px var(--v2-color-focus-ring);
}

@media (max-width: 760px) {
  .admin-shell .data-table tbody tr {
    border: 1px solid var(--v2-color-border);
    border-radius: var(--v2-radius-sm);
    background: var(--v2-color-surface);
    box-shadow: none;
  }
  .admin-shell .data-table td { border-top-color: var(--v2-color-border); }
  .workbench-drawer { border-left: 0; }
}

/* MAY-BAODAN V2 PHASE 3: order workbench as a risk-first operating queue.
   This layer changes only the workbench hierarchy and presentation. */
.order-workbench-page { width: min(100%, 1480px); }
.workbench-console-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--v2-space-6);
  margin-bottom: var(--v2-space-4);
}
.workbench-console-header h2 {
  margin: 0;
  color: var(--v2-color-text);
  font-size: var(--v2-text-2xl);
  font-weight: var(--v2-weight-bold);
  letter-spacing: -.025em;
  line-height: var(--v2-leading-tight);
}
.workbench-console-header p {
  max-width: 620px;
  margin: var(--v2-space-2) 0 0;
  color: var(--v2-color-text-secondary);
  font-size: var(--v2-text-sm);
  line-height: var(--v2-leading-normal);
}
.workbench-console-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--v2-space-2); }
.workbench-console-signal {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--v2-color-border);
  border-bottom: 1px solid var(--v2-color-border);
  background: transparent;
}
.workbench-console-signal > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: var(--v2-space-2);
  min-width: 126px;
  padding: var(--v2-space-3) var(--v2-space-4);
  border-right: 1px solid var(--v2-color-border);
}
.workbench-console-signal span { color: var(--v2-color-text-secondary); font-size: var(--v2-text-xs); font-weight: var(--v2-weight-medium); }
.workbench-console-signal strong { color: var(--v2-color-text); font-size: var(--v2-text-xl); font-weight: var(--v2-weight-bold); font-variant-numeric: tabular-nums; }
.workbench-console-signal .is-risk strong { color: var(--v2-color-danger); }
.workbench-console-signal p {
  align-self: center;
  margin: 0 0 0 var(--v2-space-4);
  color: var(--v2-color-text-muted);
  font-size: var(--v2-text-xs);
}
.workbench-console-filters {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: var(--v2-space-3) 0 var(--v2-space-5);
  border: 1px solid var(--v2-color-border);
  border-radius: var(--v2-radius-sm);
  background: var(--v2-color-surface);
}
.workbench-console-filters button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--v2-space-3);
  min-width: 132px;
  padding: 9px var(--v2-space-3);
  border: 0;
  border-right: 1px solid var(--v2-color-border);
  border-radius: 0;
  color: var(--v2-color-text-secondary);
  background: transparent;
  font: inherit;
  font-size: var(--v2-text-xs);
  text-align: left;
  transition: background-color var(--v2-duration-fast) var(--v2-ease-standard), color var(--v2-duration-fast) var(--v2-ease-standard);
}
.workbench-console-filters button:last-child { border-right: 0; }
.workbench-console-filters button:hover { color: var(--v2-color-text); background: var(--v2-color-surface-subtle); }
.workbench-console-filters button strong { color: var(--v2-color-text); font-size: var(--v2-text-lg); font-weight: var(--v2-weight-semibold); font-variant-numeric: tabular-nums; }
.workbench-console-filters button.is-exception { color: var(--v2-color-danger); background: var(--v2-color-danger-subtle); }
.workbench-console-filters button.is-exception strong { color: var(--v2-color-danger); }
.workbench-queue-panel { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.workbench-queue-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--v2-space-4);
  margin-bottom: var(--v2-space-3);
}
.workbench-queue-head h3 { margin: 0; color: var(--v2-color-text); font-size: var(--v2-text-lg); font-weight: var(--v2-weight-bold); }
.workbench-queue-head p { margin: var(--v2-space-1) 0 0; color: var(--v2-color-text-muted); font-size: var(--v2-text-xs); }
.workbench-queue-head > span { color: var(--v2-color-text-secondary); font-size: var(--v2-text-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-workbench-page .workbench-queue-table { margin: 0; border-color: var(--v2-color-border); border-radius: var(--v2-radius-sm); }
.order-workbench-page .workbench-queue-table .workbench-table { min-width: 1020px; }
.order-workbench-page .workbench-queue-table th { height: 36px; padding: 0 var(--v2-space-3); font-size: 11px; letter-spacing: .01em; }
.order-workbench-page .workbench-queue-table td { padding: var(--v2-space-3); vertical-align: middle; }
.order-workbench-page .workbench-queue-table .cell-main { color: var(--v2-color-text); font-size: var(--v2-text-sm); font-weight: var(--v2-weight-semibold); }
.order-workbench-page .workbench-queue-table .cell-sub { display: block; margin-top: 3px; color: var(--v2-color-text-muted); font-size: 11px; }
.workbench-waiting { color: var(--v2-color-text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.workbench-last-operation { color: var(--v2-color-text-muted); font-size: var(--v2-text-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.workbench-risk {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  border: 1px solid var(--v2-color-border);
  border-radius: var(--v2-radius-xs);
  padding: 2px 6px;
  color: var(--v2-color-text-secondary);
  background: var(--v2-color-surface-subtle);
  font-size: 11px;
  font-weight: var(--v2-weight-semibold);
  white-space: nowrap;
}
.workbench-risk.is-soon { border-color: color-mix(in srgb, var(--v2-color-warning) 28%, var(--v2-color-border)); color: var(--v2-color-warning); background: var(--v2-color-warning-subtle); }
.workbench-risk.is-overdue { border-color: color-mix(in srgb, var(--v2-color-danger) 28%, var(--v2-color-border)); color: var(--v2-color-danger); background: var(--v2-color-danger-subtle); }
.workbench-risk.is-exception { border-color: var(--v2-color-danger); color: var(--v2-color-text-inverse); background: var(--v2-color-danger); }
.order-workbench-page .workbench-queue-row.timeout-exception { background: color-mix(in srgb, var(--v2-color-danger-subtle) 52%, var(--v2-color-surface)); }
.order-workbench-page .workbench-queue-row.timeout-overdue { background: color-mix(in srgb, var(--v2-color-danger-subtle) 24%, var(--v2-color-surface)); }
.order-workbench-page .workbench-queue-row.timeout-soon { background: color-mix(in srgb, var(--v2-color-warning-subtle) 32%, var(--v2-color-surface)); }
.order-workbench-page .workbench-queue-row.timeout-exception:hover { background: var(--v2-color-danger-subtle); }
.order-workbench-page .workbench-queue-row.timeout-overdue:hover { background: color-mix(in srgb, var(--v2-color-danger-subtle) 48%, var(--v2-color-surface)); }
.order-workbench-page .workbench-queue-row.timeout-soon:hover { background: color-mix(in srgb, var(--v2-color-warning-subtle) 56%, var(--v2-color-surface)); }
.order-workbench-page .workbench-queue-row.timeout-exception td:first-child,
.order-workbench-page .workbench-queue-row.timeout-overdue td:first-child,
.order-workbench-page .workbench-queue-row.timeout-soon td:first-child { box-shadow: none; }
.order-workbench-page .workbench-row-actions { min-width: 142px; gap: var(--v2-space-1); }
.order-workbench-page .workbench-row-actions .btn { min-width: 0; }
.order-workbench-page .workbench-pagination { margin-top: var(--v2-space-3); }

@media (max-width: 760px) {
  .order-workbench-page { width: 100%; }
  .workbench-console-header { align-items: flex-start; flex-direction: column; gap: var(--v2-space-3); }
  .workbench-console-header h2 { font-size: 21px; }
  .workbench-console-actions { width: 100%; justify-content: flex-start; }
  .workbench-console-signal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workbench-console-signal > div { display: block; min-width: 0; padding: var(--v2-space-3) var(--v2-space-2); }
  .workbench-console-signal > div:last-of-type { border-right: 0; }
  .workbench-console-signal strong { display: block; margin-top: 4px; font-size: var(--v2-text-xl); }
  .workbench-console-signal p { grid-column: 1 / -1; margin: 0; padding: 7px var(--v2-space-2); border-top: 1px solid var(--v2-color-border); font-size: 11px; }
  .workbench-console-filters { overflow-x: auto; margin-bottom: var(--v2-space-4); scrollbar-width: none; }
  .workbench-console-filters::-webkit-scrollbar { display: none; }
  .workbench-console-filters button { min-width: 118px; flex: 0 0 118px; }
  .workbench-queue-head { align-items: flex-start; }
  .order-workbench-page .workbench-queue-table { display: none; }
  .order-workbench-page .workbench-queue-mobile { display: grid; gap: 0; border: 1px solid var(--v2-color-border); border-radius: var(--v2-radius-sm); background: var(--v2-color-surface); }
  .order-workbench-page .workbench-queue-card {
    margin: 0;
    padding: var(--v2-space-3);
    border: 0;
    border-bottom: 1px solid var(--v2-color-border);
    border-radius: 0;
    background: var(--v2-color-surface);
    box-shadow: none;
  }
  .order-workbench-page .workbench-queue-card:last-child { border-bottom: 0; }
  .order-workbench-page .workbench-queue-card.timeout-exception { background: color-mix(in srgb, var(--v2-color-danger-subtle) 42%, var(--v2-color-surface)); }
  .order-workbench-page .workbench-queue-card.timeout-overdue { background: color-mix(in srgb, var(--v2-color-danger-subtle) 22%, var(--v2-color-surface)); }
  .order-workbench-page .workbench-queue-card.timeout-soon { background: color-mix(in srgb, var(--v2-color-warning-subtle) 28%, var(--v2-color-surface)); }
  .order-workbench-page .workbench-queue-card.timeout-exception,
  .order-workbench-page .workbench-queue-card.timeout-overdue,
  .order-workbench-page .workbench-queue-card.timeout-soon { box-shadow: none; }
  .order-workbench-page .workbench-card-head { align-items: flex-start; }
  .order-workbench-page .workbench-card-head > div { min-width: 0; }
  .order-workbench-page .workbench-card-head > div > span { margin-top: 3px; }
  .order-workbench-page .workbench-card-head > .workbench-risk { margin: 0; }
  .workbench-queue-card-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin-top: var(--v2-space-3); color: var(--v2-color-text-secondary); font-size: var(--v2-text-xs); }
  .workbench-queue-card-meta > span:first-child { display: flex; align-items: center; }
  .workbench-queue-card-meta > span:last-child { grid-column: 1 / -1; overflow: hidden; color: var(--v2-color-text-muted); text-overflow: ellipsis; white-space: nowrap; }
  .workbench-queue-card-meta b { margin-right: 5px; color: var(--v2-color-text-muted); font-weight: var(--v2-weight-medium); }
  .order-workbench-page .workbench-queue-card .workbench-row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-space-2); margin-top: var(--v2-space-3); }
  .order-workbench-page .workbench-queue-card .workbench-row-actions .btn { min-height: 38px; }
}

/* MAY-BAODAN V2 PHASE 4: owner dashboard as a daily operating console.
   The existing data and actions are deliberately retained; this layer only
   gives them a risk-first reading order. */
.owner-dashboard-page { width: min(100%, 1480px); }
.owner-console-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--v2-space-6);
  margin-bottom: var(--v2-space-4);
}
.owner-console-header h2 {
  margin: 0;
  color: var(--v2-color-text);
  font-size: var(--v2-text-2xl);
  font-weight: var(--v2-weight-bold);
  letter-spacing: -.025em;
  line-height: var(--v2-leading-tight);
}
.owner-console-header p {
  max-width: 650px;
  margin: var(--v2-space-2) 0 0;
  color: var(--v2-color-text-secondary);
  font-size: var(--v2-text-sm);
  line-height: var(--v2-leading-normal);
}
.owner-console-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--v2-space-2); }

/* First read: a single operational conclusion strip, not a card grid. */
.owner-daily-conclusion {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 var(--v2-space-5);
  border-top: 1px solid var(--v2-color-border);
  border-bottom: 1px solid var(--v2-color-border);
  background: transparent;
}
.owner-daily-conclusion-item {
  appearance: none;
  min-width: 0;
  padding: var(--v2-space-3) var(--v2-space-4);
  border: 0;
  border-right: 1px solid var(--v2-color-border);
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.owner-daily-conclusion-item:hover { background: var(--v2-color-surface-subtle); }
.owner-daily-conclusion-item:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--v2-color-action); outline-offset: -2px; }
.owner-daily-conclusion-item:last-child { border-right: 0; }
.owner-daily-conclusion span,
.owner-daily-conclusion strong,
.owner-daily-conclusion small { display: block; }
.owner-daily-conclusion span { color: var(--v2-color-text-secondary); font-size: var(--v2-text-xs); font-weight: var(--v2-weight-medium); }
.owner-daily-conclusion strong { margin-top: 5px; color: var(--v2-color-text); font-size: 27px; font-weight: var(--v2-weight-bold); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.owner-daily-conclusion small { overflow: hidden; margin-top: 4px; color: var(--v2-color-text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.owner-daily-conclusion .is-risk strong { color: var(--v2-color-danger); }

.owner-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--v2-space-4);
  margin-bottom: var(--v2-space-3);
}
.owner-section-head h3 { margin: 0; color: var(--v2-color-text); font-size: var(--v2-text-lg); font-weight: var(--v2-weight-bold); }
.owner-section-head p { margin: var(--v2-space-1) 0 0; color: var(--v2-color-text-muted); font-size: var(--v2-text-xs); line-height: var(--v2-leading-normal); }

/* Second read: current risks and their next action, grouped as a compact queue. */
.owner-action-zone { margin: 0 0 var(--v2-space-6); }
.owner-attention-brief {
  display: flex;
  align-items: baseline;
  gap: var(--v2-space-3);
  margin: 0;
  padding: var(--v2-space-3) 0;
  border-top: 1px solid var(--v2-color-border);
  border-bottom: 1px solid var(--v2-color-border);
}
.owner-attention-brief strong { flex: 0 0 auto; color: var(--v2-color-danger); font-size: var(--v2-text-xs); font-weight: var(--v2-weight-semibold); }
.owner-attention-brief p { margin: 0; color: var(--v2-color-text-secondary); font-size: var(--v2-text-sm); }
.owner-action-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--v2-color-border); }
.owner-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--v2-space-3);
  min-width: 0;
  min-height: 82px;
  padding: var(--v2-space-3) var(--v2-space-4);
  border: 0;
  border-right: 1px solid var(--v2-color-border);
  border-radius: 0;
  color: var(--v2-color-text);
  background: transparent;
  font: inherit;
  text-align: left;
  transition: background-color var(--v2-duration-fast) var(--v2-ease-standard);
}
.owner-action-row:last-child { border-right: 0; }
.owner-action-row:hover { background: var(--v2-color-surface-subtle); }
.owner-action-row:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--v2-color-action); outline-offset: -2px; }
.owner-action-row.is-risk { background: color-mix(in srgb, var(--v2-color-danger-subtle) 40%, transparent); }
.owner-action-row.is-exception { background: color-mix(in srgb, var(--v2-color-danger-subtle) 66%, transparent); }
.owner-action-label { min-width: 0; }
.owner-action-label strong,
.owner-action-label small { display: block; }
.owner-action-label strong { color: var(--v2-color-text); font-size: var(--v2-text-sm); font-weight: var(--v2-weight-semibold); }
.owner-action-label small { overflow: hidden; margin-top: 4px; color: var(--v2-color-text-muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.owner-action-value { flex: 0 0 auto; text-align: right; }
.owner-action-value b,
.owner-action-value em { display: block; }
.owner-action-value b { color: var(--v2-color-text); font-size: var(--v2-text-xl); font-style: normal; font-weight: var(--v2-weight-bold); font-variant-numeric: tabular-nums; }
.owner-action-row.is-risk .owner-action-value b,
.owner-action-row.is-exception .owner-action-value b { color: var(--v2-color-danger); }
.owner-action-value em { margin-top: 5px; color: var(--v2-color-action); font-size: 11px; font-style: normal; font-weight: var(--v2-weight-semibold); white-space: nowrap; }

/* Third read: analysis recedes behind current decisions without turning into tiles. */
.owner-analysis-section { margin: 0 0 var(--v2-space-6); }
.owner-analysis-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); border-top: 1px solid var(--v2-color-border); border-bottom: 1px solid var(--v2-color-border); }
.owner-analysis-pane { min-width: 0; padding: var(--v2-space-4); }
.owner-trend-pane { border-right: 1px solid var(--v2-color-border); }
.owner-month-pane { border-bottom: 1px solid var(--v2-color-border); }
.owner-activity-pane { border-left: 1px solid var(--v2-color-border); }
.owner-analysis-pane .owner-section-head { margin-bottom: var(--v2-space-3); }
.owner-analysis-pane .dashboard-trend-bars { min-height: 146px; padding-top: 0; }
.owner-analysis-pane .dashboard-trend-item { grid-template-rows: 92px auto auto; }
.owner-analysis-pane .dashboard-trend-track { height: 92px; padding: 0 var(--v2-space-2); background: transparent; }
.owner-analysis-pane .dashboard-trend-track i { border-radius: var(--v2-radius-xs) var(--v2-radius-xs) 0 0; background: var(--v2-color-action); }
.owner-month-measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.owner-month-measures > div { min-width: 0; padding: var(--v2-space-3) 0; border-bottom: 1px solid var(--v2-color-border); }
.owner-month-measures > div:nth-child(odd) { padding-right: var(--v2-space-3); border-right: 1px solid var(--v2-color-border); }
.owner-month-measures > div:nth-child(even) { padding-left: var(--v2-space-3); }
.owner-month-measures > div:nth-last-child(-n+2) { border-bottom: 0; }
.owner-month-measures span,
.owner-month-measures strong,
.owner-month-measures small { display: block; }
.owner-month-measures span { color: var(--v2-color-text-secondary); font-size: var(--v2-text-xs); }
.owner-month-measures strong { overflow: hidden; margin-top: 6px; color: var(--v2-color-text); font-size: var(--v2-text-lg); font-weight: var(--v2-weight-bold); text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.owner-month-measures small { overflow: hidden; margin-top: 4px; color: var(--v2-color-text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.owner-activity-pane { grid-column: 1 / -1; }
.owner-activity-pane .dashboard-recent-list { border-top: 1px solid var(--v2-color-border); }
.owner-activity-pane .dashboard-recent-item { grid-template-columns: 8px minmax(0, 1fr) auto; padding: var(--v2-space-3) 0; border-top-color: var(--v2-color-border); }
.owner-activity-pane .dashboard-recent-dot { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--v2-color-text-muted); }
.owner-activity-pane .dashboard-recent-item strong { color: var(--v2-color-text); font-size: var(--v2-text-sm); }
.owner-activity-pane .dashboard-recent-item p,
.owner-activity-pane .dashboard-recent-item time { color: var(--v2-color-text-muted); }
.owner-employee-pane { margin-top: var(--v2-space-4); padding: var(--v2-space-4); border-top: 1px solid var(--v2-color-border); border-bottom: 1px solid var(--v2-color-border); }
.owner-employee-pane .dashboard-employee-head,
.owner-employee-pane .dashboard-employee-row { grid-template-columns: minmax(150px, 1.5fr) repeat(3, minmax(72px, .7fr)) minmax(100px, .9fr); border-top-color: var(--v2-color-border); }

.owner-dashboard-page .dashboard-pending-orders { margin-top: 0; }
.owner-dashboard-page .dashboard-pending-orders > .workbench-section-head { margin-bottom: var(--v2-space-3); }

@media (max-width: 960px) {
  .owner-action-list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--v2-color-border); }
  .owner-action-row:nth-child(2) { border-right: 0; }
  .owner-action-row:nth-child(-n+2) { border-bottom: 1px solid var(--v2-color-border); }
  .owner-analysis-grid { grid-template-columns: 1fr; }
  .owner-trend-pane,
  .owner-activity-pane { border-right: 0; border-left: 0; }
  .owner-month-pane { border-top: 1px solid var(--v2-color-border); }
}

@media (max-width: 760px) {
  .owner-console-header { align-items: flex-start; flex-direction: column; gap: var(--v2-space-3); }
  .owner-console-header h2 { font-size: 21px; }
  .owner-console-actions { width: 100%; justify-content: flex-start; }
  .owner-daily-conclusion { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--v2-space-4); }
  .owner-daily-conclusion-item { padding: var(--v2-space-3); border-bottom: 1px solid var(--v2-color-border); }
  .owner-daily-conclusion-item:nth-child(2n) { border-right: 0; }
  .owner-daily-conclusion-item:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .owner-daily-conclusion strong { font-size: 24px; }
  .owner-section-head { align-items: flex-start; }
  .owner-section-head .btn { flex: 0 0 auto; }
  .owner-attention-brief { align-items: flex-start; flex-direction: column; gap: 4px; }
  .owner-action-row { min-height: 92px; padding: var(--v2-space-3); }
  .owner-action-label small { white-space: normal; }
  .owner-analysis-pane { padding: var(--v2-space-3); }
  .owner-analysis-pane .dashboard-trend-bars { min-height: 124px; gap: 5px; }
  .owner-analysis-pane .dashboard-trend-item { grid-template-rows: 76px auto auto; gap: 3px; }
  .owner-analysis-pane .dashboard-trend-track { height: 76px; padding-inline: 3px; }
  .owner-month-measures > div:nth-child(odd) { padding-right: var(--v2-space-2); }
  .owner-month-measures > div:nth-child(even) { padding-left: var(--v2-space-2); }
  .owner-activity-pane .dashboard-recent-item time { display: none; }
  .owner-employee-pane { padding: var(--v2-space-3); }
  .owner-employee-pane .dashboard-employee-head,
  .owner-employee-pane .dashboard-employee-row { grid-template-columns: minmax(84px, 1.35fr) repeat(3, minmax(38px, .6fr)) minmax(58px, .8fr); gap: 5px; }
  .owner-employee-pane .dashboard-employee-row span:last-child { font-size: 10px; }
}

@media (max-width: 390px) {
  .owner-console-actions .btn { padding-inline: 9px; }
  .owner-action-list { grid-template-columns: 1fr; }
  .owner-action-row,
  .owner-action-row:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--v2-color-border); }
  .owner-action-row:last-child { border-bottom: 0; }
  .owner-month-measures { grid-template-columns: 1fr; }
  .owner-month-measures > div,
  .owner-month-measures > div:nth-child(odd),
  .owner-month-measures > div:nth-child(even) { padding: var(--v2-space-2) 0; border-right: 0; border-bottom: 1px solid var(--v2-color-border); }
  .owner-month-measures > div:last-child { border-bottom: 0; }
}

/* V2 Phase 6 - customer centre: a compact transaction lookup surface. */
.customer-center-page { max-width: 1480px; padding-bottom: calc(var(--v2-space-12) + env(safe-area-inset-bottom)); }
.customer-console-header { margin: 0 0 var(--v2-space-5); }
.customer-console-header h2 { margin: 0; color: var(--v2-color-text); font-size: var(--v2-text-2xl); font-weight: var(--v2-weight-bold); letter-spacing: -.025em; line-height: var(--v2-leading-tight); }
.customer-console-header p { max-width: 640px; margin: var(--v2-space-2) 0 0; color: var(--v2-color-text-secondary); font-size: var(--v2-text-sm); line-height: var(--v2-leading-relaxed); }

/* One factual strip lets the owner read the customer base without a wall of cards. */
.customer-overview-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--v2-space-6); border: 1px solid var(--v2-color-border); background: var(--v2-color-surface); }
.customer-overview-strip > div { min-width: 0; padding: var(--v2-space-4); border-right: 1px solid var(--v2-color-border); }
.customer-overview-strip > div:last-child { border-right: 0; }
.customer-overview-strip span,
.customer-overview-strip strong,
.customer-overview-strip small { display: block; }
.customer-overview-strip span { color: var(--v2-color-text-secondary); font-size: var(--v2-text-xs); font-weight: var(--v2-weight-medium); }
.customer-overview-strip strong { overflow: hidden; margin-top: var(--v2-space-2); color: var(--v2-color-text); font-size: var(--v2-text-xl); font-weight: var(--v2-weight-bold); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.customer-overview-strip small { overflow: hidden; margin-top: 5px; color: var(--v2-color-text-muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

.customer-query-section,
.customer-list-section { margin-bottom: var(--v2-space-6); border-top: 1px solid var(--v2-color-border); border-bottom: 1px solid var(--v2-color-border); background: var(--v2-color-surface); }
.customer-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--v2-space-4); padding: var(--v2-space-4); }
.customer-section-head h3 { margin: 0; color: var(--v2-color-text); font-size: var(--v2-text-lg); font-weight: var(--v2-weight-semibold); line-height: var(--v2-leading-tight); }
.customer-section-head p { margin: 5px 0 0; color: var(--v2-color-text-muted); font-size: var(--v2-text-xs); line-height: var(--v2-leading-normal); }
.customer-section-head > span { flex: 0 0 auto; color: var(--v2-color-text-muted); font-size: var(--v2-text-xs); font-variant-numeric: tabular-nums; }
.customer-filter { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--v2-space-3); margin: 0; padding: var(--v2-space-3) var(--v2-space-4); border-top: 1px solid var(--v2-color-border); background: var(--v2-color-surface-subtle); }
.customer-filter .filter-grid { display: grid; grid-template-columns: minmax(240px, 360px) 160px; gap: var(--v2-space-2); }
.customer-filter .filter-actions { display: flex; flex: 0 0 auto; gap: var(--v2-space-2); }
.customer-table-wrap { margin: 0; border: 0; border-radius: 0; }
.customer-table { min-width: 930px; }
.customer-table th { background: var(--v2-color-surface-subtle); color: var(--v2-color-text-secondary); font-size: 11px; font-weight: var(--v2-weight-semibold); }
.customer-table td { color: var(--v2-color-text-secondary); font-size: var(--v2-text-sm); vertical-align: middle; }
.customer-table .cell-main { display: block; color: var(--v2-color-text); font-weight: var(--v2-weight-semibold); }
.customer-table .cell-sub { overflow: hidden; max-width: 230px; margin-top: 3px; color: var(--v2-color-text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.customer-table .cell-sub span,
.customer-mobile-card i { padding-inline: 4px; color: var(--v2-color-text-disabled); font-style: normal; }
.customer-number { color: var(--v2-color-text); font-weight: var(--v2-weight-semibold); font-variant-numeric: tabular-nums; }
.customer-table .money { color: var(--v2-color-text); font-weight: var(--v2-weight-semibold); font-variant-numeric: tabular-nums; }
.customer-mobile-list { display: none; }

/* The drawer groups verified client facts, not a second editable customer profile. */
.customer-drawer-head > div > span { color: var(--v2-color-text-muted); }
.customer-drawer-divider { margin-inline: 4px; color: var(--v2-color-text-disabled); }
.customer-drawer-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 var(--v2-space-5); border: 1px solid var(--v2-color-border); background: var(--v2-color-surface-subtle); }
.customer-drawer-summary > div { min-width: 0; padding: var(--v2-space-3); border-right: 1px solid var(--v2-color-border); }
.customer-drawer-summary > div:last-child { border-right: 0; }
.customer-drawer-summary span,
.customer-drawer-summary strong { display: block; }
.customer-drawer-summary span { color: var(--v2-color-text-muted); font-size: 11px; }
.customer-drawer-summary strong { overflow: hidden; margin-top: 5px; color: var(--v2-color-text); font-size: var(--v2-text-lg); font-weight: var(--v2-weight-bold); text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.customer-detail-section { margin-top: var(--v2-space-5); padding-top: var(--v2-space-5); border-top: 1px solid var(--v2-color-border); }
.customer-detail-section:first-of-type { margin-top: 0; }
.customer-detail-section .payment-drawer-details > div { border-color: var(--v2-color-border); border-radius: var(--v2-radius-sm); background: var(--v2-color-surface-subtle); }
.customer-order-history { border-top-color: var(--v2-color-border); }
.customer-order-history-row { border-bottom-color: var(--v2-color-border); color: var(--v2-color-text-secondary); }
.customer-order-history-row:hover { background: var(--v2-color-surface-subtle); }
.customer-order-history-row:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--v2-color-action); outline-offset: -2px; }
.customer-order-history-row strong { color: var(--v2-color-text); font-size: var(--v2-text-sm); }

@media (max-width: 960px) {
  .customer-overview-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-overview-strip > div:nth-child(2) { border-right: 0; }
  .customer-overview-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--v2-color-border); }
}

@media (max-width: 760px) {
  .customer-console-header { margin-bottom: var(--v2-space-4); }
  .customer-console-header h2 { font-size: 21px; }
  .customer-overview-strip { margin-bottom: var(--v2-space-4); }
  .customer-overview-strip > div { min-height: 88px; padding: var(--v2-space-3); }
  .customer-overview-strip strong { font-size: 19px; }
  .customer-overview-strip small { overflow: visible; white-space: normal; }
  .customer-query-section,
  .customer-list-section { margin-bottom: var(--v2-space-4); }
  .customer-section-head { align-items: flex-start; padding: var(--v2-space-3); }
  .customer-section-head > div { min-width: 0; }
  .customer-filter { align-items: stretch; flex-direction: column; padding: var(--v2-space-3); }
  .customer-filter .filter-grid { grid-template-columns: 1fr; }
  .customer-filter .filter-actions { justify-content: flex-end; }
  .customer-center-page .customer-table-wrap { display: none; }
  .customer-mobile-list { display: grid; gap: 0; }
  .customer-mobile-card { display: grid; gap: 7px; padding: var(--v2-space-3); border: 0; border-top: 1px solid var(--v2-color-border); border-radius: 0; background: var(--v2-color-surface); }
  .customer-mobile-card:last-child { border-bottom: 1px solid var(--v2-color-border); }
  .customer-mobile-card-head { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: var(--v2-space-2); }
  .customer-mobile-card-head strong { overflow: hidden; color: var(--v2-color-text); font-size: var(--v2-text-sm); font-weight: var(--v2-weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
  .customer-mobile-card > span,
  .customer-mobile-card small { color: var(--v2-color-text-muted); font-size: 11px; }
  .customer-mobile-measures { display: flex; align-items: center; justify-content: space-between; gap: var(--v2-space-2); color: var(--v2-color-text-secondary); font-size: var(--v2-text-xs); }
  .customer-mobile-measures b { color: var(--v2-color-text); font-weight: var(--v2-weight-semibold); font-variant-numeric: tabular-nums; }
  .customer-mobile-card .btn { justify-self: start; margin-top: 3px; }
  .customer-drawer-summary { grid-template-columns: 1fr; }
  .customer-drawer-summary > div,
  .customer-drawer-summary > div:last-child { padding: var(--v2-space-3); border-right: 0; border-bottom: 1px solid var(--v2-color-border); }
  .customer-drawer-summary > div:last-child { border-bottom: 0; }
  .customer-detail-section { margin-top: var(--v2-space-4); padding-top: var(--v2-space-4); }
}

/* MAY-BAODAN V2 GLOBAL CONVERGENCE
   Boundary: --wb-* and --admin-* remain legacy compatibility aliases for
   unconverted page detail styles. Shared administrator UI must use only
   --v2-* tokens from this point onward. */
.admin-shell .btn {
  min-height: var(--v2-control-height);
  padding: 0 var(--v2-space-3);
  border-radius: var(--v2-radius-sm);
  font-size: var(--v2-text-sm);
  line-height: 1;
}
.admin-shell .btn-sm {
  min-height: var(--v2-control-height-compact);
  padding-inline: var(--v2-space-2);
  font-size: var(--v2-text-xs);
}
.admin-shell .btn:focus-visible,
.workbench-drawer .btn:focus-visible,
.confirm-modal .btn:focus-visible {
  outline: 2px solid var(--v2-color-action);
  outline-offset: 2px;
}
.admin-shell .input,
.admin-shell .select {
  min-height: var(--v2-control-height);
  padding: var(--v2-space-2) var(--v2-space-3);
}
.admin-shell .textarea {
  min-height: calc(var(--v2-space-16) + var(--v2-space-8));
  padding: var(--v2-space-2) var(--v2-space-3);
}

/* Five primary mobile destinations only. Secondary owner tools live under
   “我的”, preserving reachability without turning the tab bar into a menu. */
.admin-mobile-more-links { display: none; }

@media (max-width: 760px) {
  .admin-mobile-tabbar {
    z-index: var(--v2-z-sticky);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(var(--v2-control-height-touch) + var(--v2-space-4));
    padding: var(--v2-space-1) var(--v2-space-2) calc(var(--v2-space-1) + env(safe-area-inset-bottom));
    border-top-color: var(--v2-color-border);
    background: var(--v2-color-surface);
    box-shadow: none;
  }
  .admin-mobile-tabbar.four-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-mobile-tab {
    min-height: var(--v2-control-height-touch);
    gap: 3px;
    border-radius: var(--v2-radius-xs);
    color: var(--v2-color-text-muted);
    font-size: 9px;
    transition: color var(--v2-duration-fast) var(--v2-ease-standard), background-color var(--v2-duration-fast) var(--v2-ease-standard);
  }
  .admin-mobile-tab span { font-size: 15px; }
  .admin-mobile-tab.active {
    color: var(--v2-color-action);
    background: var(--v2-color-action-subtle);
  }
  .admin-mobile-tab:active { transform: translateY(1px); }
  .admin-shell .content { padding-bottom: calc(var(--v2-space-16) + var(--v2-space-4) + env(safe-area-inset-bottom)); }
  .admin-shell .btn:not(.btn-sm) { min-height: var(--v2-control-height-touch); }

  .admin-mobile-more-links {
    display: block;
    margin: 0 0 var(--v2-space-4);
    padding: var(--v2-space-3);
    border-top: 1px solid var(--v2-color-border);
    border-bottom: 1px solid var(--v2-color-border);
    background: var(--v2-color-surface);
  }
  .admin-mobile-more-links p {
    margin: 0 0 var(--v2-space-2);
    color: var(--v2-color-text-secondary);
    font-size: var(--v2-text-xs);
    font-weight: var(--v2-weight-semibold);
  }
  .admin-mobile-more-links > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--v2-space-2);
  }
  .admin-mobile-more-links .btn {
    justify-content: flex-start;
    min-width: 0;
    color: var(--v2-color-text-secondary);
    background: var(--v2-color-surface-subtle);
  }
}

/* MAY-BAODAN V2.1 MICRO REFRESH
   Scope: presentation-only administrator refinements. Navigation, controls,
   status markers and spacing are updated without changing routes, markup,
   state labels or action behaviour. */

/* A light sidebar retains a clear work-area boundary without becoming visual
   competition for the orders and payment work surface. */
.admin-shell .sidebar {
  border-right: 1px solid var(--v2-color-border);
  color: var(--v2-color-sidebar-text);
  background: var(--v2-color-sidebar);
}
.admin-shell .sidebar-brand,
.admin-shell .sidebar-brand strong,
.admin-shell .user-chip strong { color: var(--v2-color-text); }
.admin-shell .sidebar-brand small,
.admin-shell .user-chip span { color: var(--v2-color-text-muted); }
.admin-shell .sidebar-brand { padding-bottom: var(--v2-space-6); }
.admin-shell .nav-list { gap: var(--v2-space-1); }
.admin-shell .nav-link {
  border-color: transparent;
  color: var(--v2-color-sidebar-text);
  font-weight: var(--v2-weight-medium);
}
.admin-shell .nav-link:hover {
  color: var(--v2-color-text);
  background: var(--v2-color-sidebar-hover);
}
.admin-shell .nav-link.active {
  border-color: color-mix(in srgb, var(--v2-color-action) 12%, transparent);
  color: var(--v2-color-sidebar-text-active);
  background: var(--v2-color-sidebar-active);
  box-shadow: none;
}
.admin-shell .sidebar-foot { border-top-color: var(--v2-color-border); }
.admin-shell .user-chip {
  border-color: var(--v2-color-border);
  background: var(--v2-color-surface);
}
.admin-shell .avatar-chip { color: var(--v2-color-text-inverse); background: var(--v2-color-action); }

/* One compact control language: decisive primary actions, restrained support
   actions and an unmistakable unavailable state.
   抽屉与确认弹窗并入同一几何/状态层（原各自保留 base 胶囊渐变的漂移已消除）。 */
.admin-shell .btn,
.workbench-drawer .btn,
.confirm-modal .btn {
  min-height: var(--v2-control-height);
  padding: 0 var(--v2-space-3);
  border: 1px solid var(--v2-color-border);
  border-radius: var(--v2-radius-xs);
  font-size: var(--v2-text-sm);
  line-height: 1;
  font-weight: var(--v2-weight-semibold);
  letter-spacing: 0;
  box-shadow: none;
}
.admin-shell .btn:hover:not(:disabled),
.admin-shell .btn:active:not(:disabled),
.workbench-drawer .btn:hover:not(:disabled),
.workbench-drawer .btn:active:not(:disabled),
.confirm-modal .btn:hover:not(:disabled),
.confirm-modal .btn:active:not(:disabled) {
  transform: none;
  box-shadow: none;
}
.admin-shell .btn-danger,
.workbench-drawer .btn-danger,
.confirm-modal .btn-danger {
  border-color: var(--v2-color-danger);
  color: var(--v2-color-text-inverse);
  background: var(--v2-color-danger);
}
.admin-shell .btn-danger:hover:not(:disabled),
.workbench-drawer .btn-danger:hover:not(:disabled),
.confirm-modal .btn-danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--v2-color-danger) 88%, var(--v2-color-text));
}
/* 作废确认必须浮在订单抽屉（z 300）之上。 */
.confirm-modal-raised { z-index: 310; }
.admin-shell .btn-primary,
.workbench-drawer .btn-primary,
.confirm-modal .btn-primary {
  border-color: var(--v2-color-action);
  color: var(--v2-color-text-inverse);
  background: var(--v2-color-action);
}
.admin-shell .btn-primary:hover:not(:disabled),
.workbench-drawer .btn-primary:hover:not(:disabled),
.confirm-modal .btn-primary:hover:not(:disabled) {
  border-color: var(--v2-color-action-hover);
  background: var(--v2-color-action-hover);
}
.admin-shell .btn-secondary,
.workbench-drawer .btn-secondary,
.confirm-modal .btn-secondary {
  border-color: var(--v2-color-border);
  color: var(--v2-color-text-secondary);
  background: var(--v2-color-surface);
}
.admin-shell .btn-secondary:hover:not(:disabled),
.workbench-drawer .btn-secondary:hover:not(:disabled),
.confirm-modal .btn-secondary:hover:not(:disabled) {
  border-color: var(--v2-color-border-strong);
  color: var(--v2-color-text);
  background: var(--v2-color-surface-subtle);
}
.admin-shell .btn:disabled,
.workbench-drawer .btn:disabled,
.confirm-modal .btn:disabled {
  border-color: var(--v2-color-border);
  color: var(--v2-color-text-disabled);
  opacity: 1;
  background: var(--v2-color-surface-inset);
}

/* Status remains semantic metadata rather than row decoration.
   Badge 唯一真相层：早前 :badge 覆写层中仍生效的 border 与 box-shadow 已并入。 */
.admin-shell .badge {
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: var(--v2-radius-xs);
  box-shadow: none;
  font-size: 11px;
  font-weight: var(--v2-weight-medium);
  line-height: 1.25;
}
.admin-shell .badge-gray {
  color: #5f6b7b;
  border-color: #dce2e8;
  background: #f2f4f6;
}
.admin-shell .badge-blue {
  color: #2c5d9e;
  border-color: #d7e5f9;
  background: #edf4fd;
}
.admin-shell .badge-yellow {
  color: #986417;
  border-color: #f2e1bf;
  background: #fff7e8;
}
.admin-shell .badge-green {
  color: #2d7657;
  border-color: #d6e9df;
  background: #edf8f1;
}
.admin-shell .badge-red {
  color: #a64b46;
  border-color: #f1d9d7;
  background: #fdf0ef;
}

/* Keep the existing page skeleton, but make its scan rhythm calmer and more
   continuous across home, order management and compact mobile cards. */
.admin-shell .content { background: #f5f7f9; }
.owner-daily-conclusion,
.workbench-metrics { gap: var(--v2-space-2); }
.owner-daily-conclusion-item,
.workbench-metric {
  border-color: var(--v2-color-border);
  border-radius: var(--v2-radius-sm);
  box-shadow: none;
}
.owner-daily-conclusion-item:hover,
.workbench-metric:hover {
  border-color: var(--v2-color-border-strong);
  background: var(--v2-color-surface);
  box-shadow: none;
}
.workbench-table-wrap,
.admin-shell .table-wrap { border-color: var(--v2-color-border); }
.workbench-table th,
.admin-shell .data-table thead th { background: #f8fafb; }
.workbench-table tbody tr:hover,
.admin-shell .data-table tbody tr:hover { background: #fafbfd; }

@media (max-width: 760px) {
  .admin-shell .content { background: #f5f7f9; }
  .workbench-order-card {
    border-color: var(--v2-color-border);
    border-radius: var(--v2-radius-sm);
    box-shadow: none;
  }
  .workbench-order-card .workbench-row-actions .btn { border-radius: var(--v2-radius-xs); }
}

/* V2.1: the desktop order-list action pair must remain fully visible at
   common 1280px viewports. Scope this compact fixed layout to the existing
   filtered order list only; dashboard and payment tables keep their current
   presentation. */
@media (min-width: 1024px) {
  .admin-filter-card ~ .order-list-table-wrap .workbench-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th,
  .admin-filter-card ~ .order-list-table-wrap .workbench-table td { padding-inline: var(--v2-space-2); }
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(1) { width: 20%; }
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(2) { width: 14%; }
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(3) { width: 8%; }
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(4) { width: 13%; }
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(5) { width: 15%; }
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(6) { width: 8%; }
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:last-child,
  .admin-filter-card ~ .order-list-table-wrap .workbench-table td:last-child { width: 132px; min-width: 132px; }
  .admin-filter-card ~ .order-list-table-wrap .workbench-row-actions {
    min-width: 0;
    flex-wrap: nowrap;
    gap: var(--v2-space-1);
  }
  .admin-filter-card ~ .order-list-table-wrap .workbench-row-actions .btn {
    min-width: 0;
    padding-inline: 7px;
    white-space: nowrap;
  }
}

/* MAY-BAODAN V2.2 SaaS WORKBENCH: refined light operating console.
   White / light-grey surface, thin borders, generous whitespace. */
.admin-shell { --wb-bg: #fafafa; --wb-surface: #ffffff; --wb-text: #09090b; --wb-muted: #71717a; --wb-line: #e4e4e7; }
.admin-shell .content { padding: 24px 32px 52px; }
.saas-mono { font-family: var(--v2-font-mono, ui-monospace, Menlo, monospace); font-variant-numeric: tabular-nums; }
.saas-muted { color: var(--wb-muted); }
.saas-empty { padding: 22px 0; color: var(--wb-muted); font-size: 13px; text-align: center; }
.saas-workbench { width: min(100%, 1480px); margin: 0 auto; }

/* Topbar search + icon buttons */
.saas-topbar-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--wb-line); border-radius: 8px; color: var(--wb-muted); background: #fafafa; }
.saas-topbar-search:focus-within { border-color: var(--wb-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.saas-topbar-search input { min-width: 200px; border: 0; outline: 0; color: var(--wb-text); background: transparent; font-size: 13px; }
.saas-topbar-search kbd { padding: 1px 5px; border: 1px solid var(--wb-line); border-radius: 4px; color: var(--wb-muted); background: #fff; font-size: 11px; }
.saas-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--wb-line); border-radius: 8px; color: var(--wb-muted); background: #fff; cursor: pointer; }
.saas-icon-btn:hover { color: var(--wb-text); border-color: #d4d4d8; }

/* Sidebar nav separator */
.admin-shell .nav-sep { height: 1px; margin: 10px 12px; background: var(--wb-line); }

/* Metrics strip: compact, number-forward */
.saas-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.saas-metric { min-width: 0; padding: 16px 18px; border: 1px solid var(--wb-line); border-radius: 10px; color: inherit; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.saas-metric:hover { border-color: #d4d4d8; box-shadow: 0 1px 3px rgba(9, 9, 11, .04); }
.saas-metric-label { display: block; color: var(--wb-muted); font-size: 12px; font-weight: 500; }
.saas-metric-value { display: block; margin-top: 8px; color: var(--wb-text); font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.saas-metric-hint { display: block; margin-top: 8px; color: var(--v2-color-text-muted); font-size: 11px; }

/* Main grid: trend + recent orders */
.saas-main-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; margin-bottom: 14px; }
.saas-panel { min-width: 0; padding: 18px 20px; border: 1px solid var(--wb-line); border-radius: 10px; background: #fff; }
.saas-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.saas-panel-head h3 { margin: 0; color: var(--wb-text); font-size: 14px; font-weight: 650; }
.saas-panel-head p { margin: 3px 0 0; color: var(--wb-muted); font-size: 12px; }

/* Trend chart */
.saas-trend-card .dashboard-trend-bars { min-height: 168px; }
.saas-trend-card .dashboard-trend-track { border-bottom-color: var(--wb-line); background: #fafafa; }
.saas-trend-card .dashboard-trend-track i { background: var(--v2-color-action, #1d4ed8); }
.saas-trend-card .dashboard-trend-value { margin-bottom: 5px; color: var(--wb-text); font-weight: 600; font-size: 12px; }
.saas-trend-card .dashboard-trend-day { color: var(--wb-muted); font-size: 11px; }

/* Recent orders compact table */
.saas-table-wrap { overflow-x: auto; }
.saas-recent-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.saas-recent-table th { padding: 9px 12px; border-bottom: 1px solid var(--wb-line); color: var(--wb-muted); background: #f8fafb; font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; }
.saas-recent-table td { padding: 11px 12px; border-bottom: 1px solid var(--wb-line); color: var(--wb-text); }
.saas-recent-table tr:last-child td { border-bottom: 0; }
.saas-recent-table tbody tr { cursor: pointer; }
.saas-recent-table tbody tr:hover { background: #fafafa; }
.saas-status-badge { display: inline-block; padding: 2px 7px; border-radius: var(--v2-radius-xs); font-size: 11px; font-weight: var(--v2-weight-medium); line-height: 1.25; background: #f4f4f5; color: #52525b; }
.saas-status-badge.is-paid { background: #ecfdf3; color: #15803d; }
.saas-status-badge.is-new { background: #eff6ff; color: #1d4ed8; }

/* Bottom grid: quick actions / todos / activity */
.saas-bottom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.saas-quick-actions { display: grid; gap: 8px; }
.saas-quick-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid var(--wb-line); border-radius: 8px; color: inherit; background: #fff; text-align: left; cursor: pointer; }
.saas-quick-action:hover { border-color: #d4d4d8; background: #fafafa; }
.saas-quick-action strong { color: var(--wb-text); font-size: 13px; }
.saas-quick-action span { color: var(--wb-muted); font-size: 11px; }
.saas-todo-list { display: grid; gap: 8px; }
.saas-todo-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; border: 1px solid var(--wb-line); border-radius: 8px; color: inherit; background: #fff; cursor: pointer; }
.saas-todo-item:hover { border-color: #d4d4d8; background: #fafafa; }
.saas-todo-item span { color: var(--wb-text); font-size: 13px; }
.saas-todo-item strong { color: var(--wb-text); font-size: 14px; }
.saas-activity-list { display: grid; gap: 12px; }
.saas-activity-item { display: flex; gap: 10px; min-width: 0; }
.saas-activity-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--v2-color-action, #1d4ed8); }
.saas-activity-item strong { display: block; color: var(--wb-text); font-size: 12px; font-weight: 600; }
.saas-activity-item p { margin: 2px 0 0; overflow: hidden; color: var(--wb-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.saas-activity-item time { display: block; margin-top: 3px; color: var(--v2-color-text-muted); font-size: 11px; }

/* Mobile adaptation */
@media (max-width: 980px) {
  .saas-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin-shell .content { padding: 16px 14px 100px; }
  .saas-topbar-search input { min-width: 0; width: 90px; }
  .saas-topbar-search kbd { display: none; }
  .saas-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .saas-metric { padding: 13px 14px; }
  .saas-metric-value { font-size: 24px; }
  .saas-bottom-grid { grid-template-columns: 1fr; }
  .saas-panel { padding: 14px 15px; }
}

/* Grouped sidebar navigation */
.admin-shell .nav-group { display: grid; gap: 2px; }
.admin-shell .nav-group + .nav-group { margin-top: 14px; }
.admin-shell .nav-group-label { padding: 4px 12px 6px; color: var(--wb-muted); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.saas-device { max-width: 200px; color: var(--wb-text); font-size: 12px; }
.saas-device-stack { display: block; min-width: 0; }
.saas-device-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.saas-device-spec { display: block; margin-top: 2px; color: var(--wb-muted); font-size: 11px; }
@media (max-width: 760px) {
  .saas-device-name { white-space: nowrap; }
  .saas-device-spec { display: none; }
}

/* V2.2 UI MICRO-REFINEMENT: unified radii, natural panel proportions,
   refined page title hierarchy, balanced recent-order column widths. */
.admin-shell .topbar h1 { font-size: 20px; font-weight: 680; }
.saas-metric, .saas-panel { border-radius: 8px; }
.saas-main-grid { align-items: start; }
.saas-recent-table th, .saas-recent-table td { white-space: nowrap; }
.saas-recent-table td:nth-child(1) { min-width: 118px; }
.saas-recent-table td:nth-child(2) { min-width: 72px; }
.saas-recent-table td:nth-child(3) { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.saas-recent-table td:nth-child(4) { min-width: 72px; }
.saas-recent-table td:nth-child(5) { min-width: 68px; }
.saas-recent-sub { display: block; margin-top: 2px; color: var(--wb-muted); font-size: 11px; font-weight: 400; }
@media (max-width: 760px) {
  .saas-recent-table th, .saas-recent-table td { white-space: nowrap; }
}

/* MAY-BAODAN V2.3 MOBILE WORKBENCH: card-based recent orders with
   device-first priority, refined light mobile surface. */
.saas-mobile-orders { display: none; }
.saas-order-card {
  display: grid;
  gap: 8px;
  padding: 13px 15px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s;
}
.saas-order-card:active { background: #fafafa; }
.saas-order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.saas-order-no { overflow: hidden; color: var(--wb-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.saas-order-device { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.saas-order-device:not(:has(.saas-order-device-empty)) { font-size: 15px; font-weight: 650; color: var(--wb-text); }
.saas-order-spec { color: var(--wb-muted); font-size: 12px; font-weight: 500; }
.saas-order-device-empty { color: var(--wb-muted); font-size: 13px; font-weight: 500; }
.saas-order-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--wb-muted); font-size: 12px; }
.saas-order-customer { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saas-order-amount { color: var(--wb-text); font-weight: 600; }
.saas-order-time { flex: 0 0 auto; }
.saas-status-badge.is-risk { background: #fef2f2; color: #b91c1c; }
@media (max-width: 760px) {
  .saas-recent-card .saas-table-wrap { display: none; }
  .saas-mobile-orders { display: grid; gap: 10px; }
  .saas-recent-card .saas-empty { display: block; }
  .saas-main-grid { gap: 12px; }
  .saas-trend-card { display: none; }
  .saas-metrics { gap: 10px; }
  .saas-metric { padding: 13px 14px; border-radius: 8px; box-shadow: none; }
  .saas-metric-value { font-size: 24px; }
  .saas-panel { border-radius: 8px; box-shadow: none; }
  .saas-quick-action, .saas-todo-item { border-radius: 8px; box-shadow: none; }
}

/* MAY-BAODAN V2.4 UNIFIED ORDER DRAWER: single detail surface with
   device-first priority, manual payment status, and a mobile bottom sheet. */
.payment-drawer-device { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 12px 13px; border: 1px solid var(--wb-line); border-radius: 8px; background: #fafafa; }
.payment-drawer-device-name { color: var(--wb-text); font-size: 16px; font-weight: 650; }
.payment-drawer-device-spec { color: var(--wb-muted); font-size: 13px; font-weight: 500; }
.payment-drawer-section select[name="paymentStatus"] { width: 100%; margin-top: 2px; }
.payment-drawer-operation-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.payment-drawer-operation-list li { padding: 10px 0; border-bottom: 1px solid var(--wb-line); }
.payment-drawer-operation-list li:last-child { border-bottom: 0; }
.payment-drawer-operation-list strong { color: var(--wb-text); font-size: 13px; font-weight: 600; }
.payment-drawer-operation-list span { margin-left: 8px; color: var(--wb-muted); font-size: 11px; }
.payment-drawer-operation-list p { margin: 3px 0 0; color: var(--v2-color-text-muted); font-size: 12px; }
@media (max-width: 760px) {
  .workbench-drawer-layer { display: flex; align-items: flex-end; }
  .workbench-drawer { position: relative; width: 100%; height: min(85dvh, 85vh); max-height: 85vh; border-radius: 18px 18px 0 0; border-left: 0; box-shadow: 0 -12px 40px rgba(13, 31, 57, .18); }
  .workbench-drawer::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 999px; background: #d1d5db; margin: 8px auto 0; }
  .workbench-drawer-form { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .workbench-drawer-actions { position: sticky; bottom: 0; }
}

/* ==== v2.4 微调层（基于 v2.3.0 原版，仅动视觉密度与字体） ==== */
/* 1) 内容区铺满，消除首页/列表页左右大留白 */
.admin-shell { grid-template-columns: 190px minmax(0, 1fr); }
.admin-shell .content { width: auto; max-width: none; padding: 20px 22px 40px; }
.admin-shell .workbench-page { width: 100%; }
.admin-shell .saas-panel { padding: 14px 16px; }
.admin-shell .saas-metrics { gap: 10px; }

/* 2) 字体去 AI 味：标题不再超粗负字距，数字改回系统字（保留等宽对齐） */
.admin-shell .workbench-page-head h2 { font-size: 20px; font-weight: 600; letter-spacing: 0; }
.admin-shell .page-head h2 { font-size: 19px; font-weight: 600; letter-spacing: 0; }
.admin-shell .saas-panel-head h3 { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.admin-shell .saas-metric-value { font-weight: 650; letter-spacing: 0; }
.admin-shell .saas-mono,
.admin-shell .order-number-cell,
.admin-shell .stat-value,
.admin-shell .money { font-family: inherit; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.admin-shell .saas-metric-label,
.admin-shell .workbench-page-head > div > span { letter-spacing: 0; font-weight: 500; }

/* 3) 表格星伟化：直角外框、表头浅灰、列间竖线 */
.admin-shell .workbench-table-wrap { border-radius: 3px; border-color: #DDE3EA; }
.admin-shell .workbench-table th { background: #F5F7FA; color: #303133; border-right: 1px solid #EBEEF5; border-bottom: 1px solid #DDE3EA; font-weight: 600; }
.admin-shell .workbench-table td { border-right: 1px solid #EBEEF5; border-bottom: 1px solid #EBEEF5; }
.admin-shell .workbench-table th:last-child,
.admin-shell .workbench-table td:last-child { border-right: 0; }
.admin-shell .workbench-table tbody tr:last-child td { border-bottom: 0; }

/* 4) 移动端三 tab 布局 */
.admin-mobile-tabbar.three-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ==== v2.4.1 微调：抽屉去盒化 + 报单表格自适应 ==== */
/* 抽屉明细行：去掉灰底小盒，改为"标签左、值右"的干净行 */
.admin-shell .payment-drawer-details { display: grid; grid-template-columns: 1fr; gap: 1px; }
.admin-shell .payment-drawer-details > div { border: 0; background: transparent; padding: 6px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-width: 0; }
.admin-shell .payment-drawer-details span { margin: 0; display: inline; color: var(--wb-muted); font-size: 12px; }
.admin-shell .payment-drawer-details strong { text-align: right; font-weight: 500; min-width: 0; }
.admin-shell .payment-drawer-long-text { max-width: 68%; overflow-wrap: anywhere; }

/* 报单列表：取消强制定宽，表格随容器完整显示；真放不下时显示横向滚动条 */
.admin-shell .workbench-table { min-width: 0; }
.admin-shell .workbench-table th, .admin-shell .workbench-table td { white-space: normal; overflow-wrap: anywhere; }
.admin-shell .workbench-table td { word-break: normal; }
.admin-shell .workbench-table-wrap { scrollbar-width: thin; }

/* ==== v2.4.2 布局修复 + 首页紧凑 ==== */
/* 根治：侧栏定宽与网格轨道对齐（原 232px 侧栏压在 190px 轨道的内容上） */
.admin-shell .sidebar { width: 190px; }

/* 首页去留白：数字卡降体量、趋势图降高度、全局收紧一档 */
.admin-shell .saas-metric-value { font-size: 24px; font-weight: 650; letter-spacing: -.01em; margin-top: 6px; }
.admin-shell .saas-metric { padding: 13px 15px; border-radius: 8px; }
.admin-shell .saas-metric-hint { margin-top: 5px; }
.admin-shell .saas-metrics { gap: 12px; margin-bottom: 14px; }
.admin-shell .saas-trend-card .dashboard-trend-bars { min-height: 118px; }
.admin-shell .saas-main-grid { gap: 12px; margin-bottom: 12px; }

/* ==== v2.5.0 管理端视觉收敛：去边框、软控件、降字重 ====
   纯展示层：不改路由、不改权限、不改数据、不改任何业务字段。
   目标是去掉"灰底 + 一圈带边框的白卡"的模板感，分区只留发丝线。 */
.admin-shell {
  --wb-line: #eef1f5;
  --wb-line-soft: #f5f7fa;
  --wb-blue: #2563eb;
  --wb-blue-hover: #1d4ed8;
  --wb-blue-soft: #e8f1ff;
  --wb-field: #f4f6f8;
  background: #fff;
}
.admin-shell .content { background: #fff; }

/* 分区只留一条发丝线 */
.admin-shell .card,
.admin-shell .card-body { border-color: var(--wb-line); border-radius: 10px; box-shadow: none; }
.admin-shell .filter-card {
  margin-bottom: 14px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--wb-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* 按钮：软底、无边框、矮一档 */
.admin-shell .btn {
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--wb-field);
  color: var(--v2-color-text);
  font-weight: 400;
  letter-spacing: 0;
}
.admin-shell .btn:hover:not(:disabled) { background: #edf0f4; }
.admin-shell .btn-primary { background: var(--wb-blue); color: #fff; font-weight: 500; }
.admin-shell .btn-primary:hover:not(:disabled) { background: var(--wb-blue-hover); }
.admin-shell .btn-secondary { background: var(--wb-field); color: var(--v2-color-text-secondary); }
.admin-shell .btn-secondary:hover:not(:disabled) { background: #edf0f4; color: var(--v2-color-text); }
.admin-shell .btn-quiet { background: transparent; }
.admin-shell .btn-quiet:hover:not(:disabled) { background: var(--wb-field); color: var(--v2-color-text); }
.admin-shell .btn-sm { height: 28px; min-height: 28px; padding: 0 9px; border-radius: 6px; }

/* 输入类：无边框浅底 */
.admin-shell .input,
.admin-shell .select,
.admin-shell .textarea {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--wb-field);
  color: var(--v2-color-text);
}
.admin-shell .textarea { height: auto; min-height: 92px; padding: 8px 10px; }
.admin-shell .input:focus,
.admin-shell .select:focus,
.admin-shell .textarea:focus {
  border-color: #bdd0f7;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .18);
}
.admin-shell .input::placeholder,
.admin-shell .textarea::placeholder { color: #666e7c; }

/* 表格：更淡的行线 + 更轻的表头 */
.admin-shell .workbench-table th {
  border-bottom: 1px solid var(--wb-line);
  color: var(--v2-color-text-muted);
  background: #fbfcfd;
  font-weight: 500;
}
.admin-shell .workbench-table td { border-bottom: 1px solid var(--wb-line-soft); }
.admin-shell .workbench-table tbody tr:hover { background: #f8fafc; }

/* 徽章与分页：去掉边框 */
.admin-shell .badge { border: 0; border-radius: 5px; font-weight: 500; }
.admin-shell .workbench-pagination { border-top: 1px solid var(--wb-line); }

/* 首页 4 张数字卡 → 一条可扫读的统计带 */
.admin-shell .saas-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--wb-line);
  border-bottom: 1px solid var(--wb-line);
}
.admin-shell .saas-metric {
  flex: 1 1 0;
  min-width: 132px;
  padding: 10px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.admin-shell .saas-metric + .saas-metric { border-left: 1px solid var(--wb-line); }
.admin-shell .saas-metric:hover { background: #fafbfc; }
.admin-shell .saas-metric-label { font-size: 12px; font-weight: 400; }
.admin-shell .saas-metric-value { margin-top: 4px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.admin-shell .saas-metric-hint { margin-top: 3px; font-size: 11px; }

/* 字重整体降一档：600 只留给页面标题与关键数字 */
.admin-shell .sidebar-brand strong { font-weight: 600; }
.admin-shell .nav-group-label { font-weight: 500; }
.admin-shell .topbar-kicker { font-size: 12px; font-weight: 400; letter-spacing: 0; }
.admin-shell .workbench-page-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.admin-shell .workbench-page-head > div > span { font-weight: 500; }
.admin-shell .workbench-section-head h3,
.admin-shell .saas-panel-head h3 { font-weight: 600; }
.admin-shell .workbench-metric strong,
.admin-shell .workbench-task-count,
.admin-shell .dashboard-operation-metric > strong { font-weight: 600; }
.admin-shell .cell-main,
.admin-shell .workbench-card-head strong,
.admin-shell .order-number-cell { font-weight: 500; }

/* 报单筛选：3 个可见条件占满一行，查询/重置并到同一行右侧（原来第 4 列空着） */
.admin-shell .admin-filter-card { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.admin-shell .admin-filter-card .filter-grid {
  flex: 1 1 520px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
}
.admin-shell .admin-filter-card .filter-actions { flex: 0 0 auto; margin-left: 0; }
@media (max-width: 1100px) {
  .admin-shell .admin-filter-card .filter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .admin-shell .admin-filter-card { display: block; }
  .admin-shell .admin-filter-card .filter-grid { grid-template-columns: 1fr; }
  .admin-shell .admin-filter-card .filter-actions { margin-top: 12px; justify-content: flex-end; }
}

/* 管理员登录页：与收敛后的控件语言保持一致（软底输入、轻蓝按钮、降字重） */
.admin-login-card { border: 0; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.admin-login-heading { margin-bottom: 18px; }
.admin-login-heading h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.admin-login-heading p { margin: 6px 0 22px; }
.admin-login-page .field label { font-weight: 500; }
.admin-login-page .input {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f4f6f8;
}
.admin-login-page .input:focus { border-color: #bdd0f7; background: #fff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .18); }
.admin-login-page .btn { min-height: 36px; margin-top: 20px; border: 0; border-radius: 8px; font-weight: 500; }
.admin-login-page .btn-primary { background: #2563eb; }
.admin-login-page .btn-primary:hover:not(:disabled) { background: #1d4ed8; }

/* ==== v2.5.2 首页分区：左边是工作区，右边是参考信息 ====
   之前一眼看过去全是同一种白卡片，分不出该从哪下手。
   现在：左栏只放一张「最近订单」并做成唯一的卡片（工作区），
   右栏把趋势 / 待办 / 动态 / 快速操作降级成无卡片的浅色区块，只用发丝线分隔。
   纯 CSS 网格重排：DOM、路由、数据与事件委托都不变。 */
@media (min-width: 1101px) {
  .admin-shell .saas-workbench {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 24px;
  }
  .admin-shell .saas-workbench .saas-metrics { grid-column: 1 / -1; margin-bottom: 0; }
  .admin-shell .saas-workbench .saas-main-grid,
  .admin-shell .saas-workbench .saas-bottom-grid { display: contents; }

  /* 工作区：唯一有卡片外观的区块，放在左侧主位 */
  .admin-shell .saas-workbench .saas-recent-card {
    grid-column: 1;
    grid-row: 2 / span 4;
    padding: 16px 18px;
    border: 1px solid var(--wb-line);
    border-radius: 10px;
    background: #fff;
  }
  .admin-shell .saas-recent-card .saas-panel-head h3 { font-size: 15px; }

  /* 参考区：右栏四块去掉卡片外观，只留发丝线分隔 */
  .admin-shell .saas-workbench .saas-trend-card,
  .admin-shell .saas-workbench .saas-bottom-grid > .saas-panel {
    grid-column: 2;
    padding: 0 0 18px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--wb-line);
    background: transparent;
  }
  .admin-shell .saas-workbench .saas-trend-card { grid-row: 2; }
  .admin-shell .saas-workbench .saas-bottom-grid > .saas-panel:nth-child(2) { grid-row: 3; }
  .admin-shell .saas-workbench .saas-bottom-grid > .saas-panel:nth-child(3) { grid-row: 4; }
  .admin-shell .saas-workbench .saas-bottom-grid > .saas-panel:nth-child(1) { grid-row: 5; border-bottom: 0; }
  .admin-shell .saas-workbench .saas-trend-card .saas-panel-head h3,
  .admin-shell .saas-workbench .saas-bottom-grid > .saas-panel .saas-panel-head h3 {
    color: var(--v2-color-text-secondary);
    font-size: 13px;
    font-weight: 500;
  }
  .admin-shell .saas-workbench .saas-activity-list { grid-template-columns: 1fr; gap: 8px; }

  /* 工作区表格：内部滚动 + 吸顶表头 */
  .admin-shell .saas-recent-card .saas-table-wrap {
    max-height: 1000px;
    overflow: auto;
    scrollbar-width: thin;
  }
  .admin-shell .saas-recent-table th { position: sticky; z-index: 1; top: 0; }
}

/* ==== v2.5.3 报单列表：消除右侧空白 ====
   根因：固定表格布局里前 5 列给了百分比，只有「操作」列没给，
   于是整行剩下的 30% 全被它吞掉（实测 331px，里面只有一个链接）。
   这里给操作列补上百分比，并把多出来的宽度给「备注」列。 */
@media (min-width: 1024px) {
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(4) { width: 34%; }
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(5) { width: 11%; }
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:last-child,
  .admin-filter-card ~ .order-list-table-wrap .workbench-table td:last-child {
    width: 14%;
    min-width: 96px;
  }
}
.admin-shell .order-list-table-wrap .workbench-table .cell-note,
.admin-shell .order-list-table-wrap .workbench-table .cell-main { max-width: 100%; }

/* ==================================================================
   MAY-BAODAN V3.0 「台账」视觉层
   ------------------------------------------------------------------
   纯展示层：不改路由、不改权限、不改数据、不改接口字段。
   这一层解决的是"模板感"——凡是任何一个 SaaS 后台都能照搬的元素，
   都换成只有这门生意才成立的东西：
     · 默认蓝 #2563eb → 墨绿 #0f5c4f（账本色，不是 SaaS 色）
     · 彩色药丸 → 色点 + 文字（颜色只表达"要不要我动手"）
     · 卡片 + 边框 + 阴影 → 通栏细线 + 留白
     · 大圆角 → 4px 直角，8 小时工位的手感
     · 数字统一等宽对齐，金额右对齐、货币符号淡化
     · 行高锁 40px，一屏多看 5-8 行
   ================================================================== */

/* 令牌挂在 :root 上——登录页与详情抽屉都渲染在 .admin-shell 之外，
   挂在 .admin-shell 上会让它们拿不到变量（按钮变透明、边框消失）。 */
:root {
  --wx-accent: #0f5c4f;
  --wx-accent-hover: #0b4a3f;
  --wx-accent-soft: #e9f0ed;
  --wx-accent-ring: rgba(15, 92, 79, .18);
  --wx-ink: #14171c;
  --wx-ink-2: #4a515c;
  --wx-ink-3: #7c8390;
  --wx-ink-4: #a7adb6;
  --wx-line: #e6e8eb;
  --wx-line-soft: #f2f3f5;
  --wx-row: 40px;
}

.admin-shell {
  /* 把历史变量一并改向，避免旧组件漏出蓝色 */
  --wb-blue: var(--wx-accent);
  --wb-blue-hover: var(--wx-accent-hover);
  --wb-blue-soft: var(--wx-accent-soft);
  --wb-line: var(--wx-line);
  --wb-line-soft: var(--wx-line-soft);
  --wb-text: var(--wx-ink);
  --wb-muted: var(--wx-ink-3);
  --wb-field: #ffffff;
  background: #fff;
  color: var(--wx-ink);
  grid-template-columns: 176px minmax(0, 1fr);
  font-size: 13px;
}

/* ---------- 1. 侧栏：安静的一栏文字，不是一块色板 ---------- */
.admin-shell .sidebar {
  width: 176px;
  padding: 14px 10px 12px;
  border-right: 1px solid var(--wx-line);
  background: #fbfbfa;
}
.admin-shell .sidebar-brand { padding: 4px 8px 14px; gap: 8px; }
.admin-shell .sidebar-brand img {
  width: 22px; height: 22px; border-radius: 3px;
  filter: grayscale(1) brightness(.55) contrast(1.1);
}
.admin-shell .sidebar-brand strong { font-size: 13.5px; font-weight: 600; letter-spacing: 0; }
.admin-shell .sidebar-brand small {
  margin-top: 3px; color: var(--wx-ink-4);
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
}
.admin-shell .nav-list { gap: 1px; }
.admin-shell .nav-group-label {
  padding: 16px 8px 6px;
  color: var(--wx-ink-4);
  font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.admin-shell .nav-link {
  min-height: 32px; padding: 6px 8px; gap: 8px;
  border: 0; border-radius: 4px;
  color: var(--wx-ink-2); font-size: 13px; font-weight: 400; letter-spacing: 0;
}
.admin-shell .nav-link:hover { background: #f1f2f1; color: var(--wx-ink); }
.admin-shell .nav-link.active {
  background: var(--wx-accent-soft);
  color: var(--wx-accent);
  font-weight: 500;
  box-shadow: inset 2px 0 0 var(--wx-accent);
}
.admin-shell .nav-icon { width: 16px; height: 16px; opacity: .75; }
.admin-shell .nav-icon svg { width: 16px; height: 16px; stroke-width: 1.7; }
.admin-shell .nav-link.active .nav-icon { opacity: 1; }
.admin-shell .sidebar-foot { border-top: 1px solid var(--wx-line); padding-top: 8px; margin-top: 8px; }
.admin-shell .user-chip {
  padding: 6px 8px; border: 0; border-radius: 0; background: none; box-shadow: none;
  display: block; line-height: 1.4;
}
.admin-shell .user-chip strong { font-size: 12.5px; font-weight: 500; }
.admin-shell .user-chip span { display: block; margin-top: 1px; color: var(--wx-ink-4); font-size: 11px; }

/* ---------- 2. 顶栏：删掉装饰时钟 ---------- */
.admin-shell .admin-topbar {
  padding: 0 20px;
  border-bottom: 1px solid var(--wx-line);
  background: #fff;
}
.admin-shell .topbar-kicker { color: var(--wx-ink-4); font-size: 11.5px; font-weight: 400; letter-spacing: 0; }
.admin-shell .topbar-meta h1 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.admin-shell .clock-chip { display: none; }
.admin-shell .avatar-chip {
  background: #fff; border: 1px solid var(--wx-line); color: var(--wx-ink-2);
  font-size: 12px; font-weight: 500;
}
.admin-shell .saas-topbar-search {
  border: 1px solid var(--wx-line); border-radius: 4px; background: #fff;
  color: var(--wx-ink-4);
}
.admin-shell .saas-topbar-search input { font-size: 12.5px; color: var(--wx-ink); }
.admin-shell .saas-topbar-search:focus-within {
  border-color: var(--wx-accent); box-shadow: 0 0 0 2px var(--wx-accent-ring);
}
.admin-shell .saas-topbar-search kbd { border: 1px solid var(--wx-line); border-radius: 3px; background: #fafafa; color: var(--wx-ink-3); }
.admin-shell .saas-icon-btn { border: 1px solid var(--wx-line); border-radius: 4px; background: #fff; color: var(--wx-ink-2); }
.admin-shell .saas-icon-btn:hover { background: #f7f8f7; }

/* ---------- 3. 内容区与页头 ---------- */
.admin-shell .content { padding: 18px 22px 48px; background: #fff; }
.admin-shell .workbench-page-head,
.admin-shell .customer-console-header,
.admin-shell .workbench-console-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wx-ink);
  margin-bottom: 16px;
}
.admin-shell .workbench-page-head > div > span,
.admin-shell .workbench-page-head > span {
  color: var(--wx-ink-4);
  font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.admin-shell .workbench-page-head h2,
.admin-shell .customer-console-header h2,
.admin-shell .workbench-console-header h2 {
  font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px;
}
.admin-shell .workbench-page-head p,
.admin-shell .customer-console-header p,
.admin-shell .workbench-console-header p {
  margin: 5px 0 0; color: var(--wx-ink-3); font-size: 12.5px;
}

/* ---------- 4. 统计带：不是四张卡，是一条可扫读的表头 ---------- */
.admin-shell .saas-metrics {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--wx-ink);
  border-bottom: 1px solid var(--wx-line);
}
.admin-shell .saas-metric {
  flex: 1 1 0; min-width: 124px;
  padding: 11px 16px 12px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  text-align: left;
}
.admin-shell .saas-metric + .saas-metric { border-left: 1px solid var(--wx-line); }
.admin-shell .saas-metric:hover { background: #fafbfa; }
.admin-shell .saas-metric-label { color: var(--wx-ink-3); font-size: 11.5px; font-weight: 400; }
.admin-shell .saas-metric-value {
  margin-top: 5px;
  font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.admin-shell .saas-metric-hint { display: none; }

/* 客户中心 / 工作台的同类统计条一并对齐 */
.admin-shell .customer-overview-strip,
.admin-shell .workbench-console-signal,
.admin-shell .workbench-metrics { border-top: 1px solid var(--wx-ink); border-bottom: 1px solid var(--wx-line); }
.admin-shell .customer-overview-strip > div,
.admin-shell .workbench-console-signal > div { border: 0; border-right: 1px solid var(--wx-line); border-radius: 0; background: transparent; }
.admin-shell .customer-overview-strip strong,
.admin-shell .workbench-console-signal strong,
.admin-shell .workbench-metric strong { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- 5. 分区：去卡片，只留一条细线 + 留白 ---------- */
.admin-shell .saas-panel,
.admin-shell .saas-recent-card,
.admin-shell .customer-query-section,
.admin-shell .customer-list-section,
.admin-shell .workbench-queue-panel,
.admin-shell .workbench-task-panel {
  padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.admin-shell .saas-panel-head,
.admin-shell .workbench-section-head,
.admin-shell .customer-section-head,
.admin-shell .workbench-queue-head {
  padding-bottom: 9px; margin-bottom: 0;
  border-bottom: 1px solid var(--wx-line);
}
.admin-shell .saas-panel-head h3,
.admin-shell .workbench-section-head h3,
.admin-shell .customer-section-head h3,
.admin-shell .workbench-queue-head h3 {
  font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.admin-shell .saas-panel-head p,
.admin-shell .workbench-section-head p,
.admin-shell .customer-section-head p,
.admin-shell .workbench-queue-head p { color: var(--wx-ink-4); font-size: 11.5px; }

/* 首页：左工作区 / 右参考栏（真正由 JS 输出的结构决定，不靠 nth-child） */
.admin-shell .saas-workbench,
.admin-shell .saas-workbench-grid,
.admin-shell .saas-rail { display: block; }
@media (min-width: 1200px) {
  .admin-shell .saas-workbench-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    align-items: start;
    gap: 30px;
  }
  .admin-shell .saas-rail { display: flex; flex-direction: column; gap: 0; }
  .admin-shell .saas-rail > .saas-panel { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--wx-line); }
  .admin-shell .saas-rail > .saas-panel:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .admin-shell .saas-recent-card .saas-table-wrap { max-height: none; overflow: visible; }
}

/* 首页右栏的待办列表：更像一张检查表，不是按钮堆 */
.admin-shell .saas-todo-list { gap: 0; }
.admin-shell .saas-todo-item {
  padding: 9px 0;
  border: 0; border-bottom: 1px solid var(--wx-line-soft); border-radius: 0; background: transparent;
  font-size: 12.5px; color: var(--wx-ink-2);
}
.admin-shell .saas-todo-item:hover { background: transparent; color: var(--wx-accent); }
.admin-shell .saas-todo-item strong { font-variant-numeric: tabular-nums; font-size: 13px; }

/* 动态列表 */
.admin-shell .saas-activity-item strong { font-weight: 500; font-size: 12.5px; }
.admin-shell .saas-activity-item p { color: var(--wx-ink-3); font-size: 12px; }
.admin-shell .saas-activity-dot { width: 5px; height: 5px; background: var(--wx-ink-4); }

/* 趋势条：细、墨色、不圆 */
.admin-shell .saas-trend-card .dashboard-trend-bars { min-height: 92px; }
.admin-shell .dashboard-trend-track { border-radius: 0; background: var(--wx-line-soft); }
.admin-shell .dashboard-trend-track i { border-radius: 0; background: var(--wx-ink-2); }
.admin-shell .dashboard-trend-value { font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--wx-ink-2); }
.admin-shell .dashboard-trend-day { font-size: 10.5px; color: var(--wx-ink-4); }

/* ---------- 6. 表格：这一层的主角 ---------- */
.admin-shell .workbench-table-wrap,
.admin-shell .saas-table-wrap,
.admin-shell .customer-table-wrap { border: 0; border-radius: 0; }
.admin-shell .workbench-table,
.admin-shell .saas-recent-table,
.admin-shell .customer-table { font-size: 12.5px; }
.admin-shell .workbench-table th,
.admin-shell .saas-recent-table th,
.admin-shell .customer-table th {
  height: 32px; padding: 0 12px;
  border: 0; border-top: 1px solid var(--wx-line); border-bottom: 1px solid var(--wx-ink);
  background: #fff;
  color: var(--wx-ink-4);
  font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
.admin-shell .workbench-table td,
.admin-shell .saas-recent-table td,
.admin-shell .customer-table td {
  height: var(--wx-row); padding: 4px 12px;
  border: 0; border-bottom: 1px solid var(--wx-line-soft);
  vertical-align: middle;
}
.admin-shell .workbench-table tbody tr:hover,
.admin-shell .saas-recent-table tbody tr:hover,
.admin-shell .customer-table tbody tr:hover { background: #fafbfa; }
.admin-shell .workbench-table tbody tr:last-child td { border-bottom: 1px solid var(--wx-line); }

/* 单元格里的两行：主行正常、副行压小压淡，不再撑高整行 */
.admin-shell .cell-main,
.admin-shell .order-number-cell { font-weight: 500; font-size: 12.5px; }
.admin-shell .cell-sub {
  display: block; margin-top: 1px;
  color: var(--wx-ink-4); font-size: 11px; font-variant-numeric: tabular-nums;
}
.admin-shell .cell-note { font-size: 12px; color: var(--wx-ink-2); line-height: 1.35; }
.admin-shell .cell-note + .cell-note { margin-top: 2px; color: var(--wx-ink-3); font-size: 11.5px; }
.admin-shell .cell-note-label { display: none; }

/* 数字与金额：等宽、右对齐、货币符号淡化 */
.admin-shell .money,
.admin-shell .customer-number,
.admin-shell .saas-mono,
.admin-shell .stat-value {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.admin-shell .money { text-align: right; font-weight: 500; }
.admin-shell .customer-number { text-align: right; }

/* 操作列：安静的文字动作，不是一排按钮 */
.admin-shell .actions { text-align: right; }
.admin-shell .workbench-row-actions { gap: 4px; }
.admin-shell .actions .btn,
.admin-shell .workbench-row-actions .btn {
  height: 24px; min-height: 24px; padding: 0 8px;
  border-color: transparent; background: transparent;
  color: var(--wx-accent); font-size: 12px;
}
.admin-shell .actions .btn:hover,
.admin-shell .workbench-row-actions .btn:hover { background: var(--wx-accent-soft); border-color: transparent; }
.admin-shell .actions .btn-quiet { color: var(--wx-accent); }

/* ---------- 7. 状态：色点 + 文字，不再是彩色药丸 ---------- */
.admin-shell .badge,
.admin-shell .saas-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; border-radius: 0;
  background: none;
  color: var(--wx-ink-2);
  font-size: 12px; font-weight: 400; line-height: 1.3;
  box-shadow: none;
}
.admin-shell .badge::before,
.admin-shell .saas-status-badge::before {
  content: ""; flex: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--wx-ink-4);
}
.admin-shell .badge-green::before { background: #1a7f5a; }
.admin-shell .badge-yellow::before { background: #c99a00; }
.admin-shell .badge-red::before { background: #b42318; }
.admin-shell .badge-blue::before { background: var(--wx-accent); }
.admin-shell .badge-gray::before { background: #b9bfc8; }
.admin-shell .badge-red { color: #b42318; }
.admin-shell .badge-yellow { color: var(--wx-ink-2); }
.admin-shell .saas-status-badge.is-paid::before,
.admin-shell .saas-status-badge.is-completed::before { background: #1a7f5a; }

/* ---------- 8. 按钮 / 输入：直角、无阴影、矮一档 ---------- */
.admin-shell .btn {
  height: 30px; min-height: 30px; padding: 0 12px;
  border: 1px solid var(--wx-line); border-radius: 4px;
  background: #fff; color: var(--wx-ink);
  font-size: 12.5px; font-weight: 400; letter-spacing: 0; box-shadow: none;
}
.admin-shell .btn:hover:not(:disabled) { background: #f7f8f7; border-color: #d5d8dc; }
.admin-shell .btn-primary {
  background: var(--wx-accent); border-color: var(--wx-accent); color: #fff; font-weight: 500;
}
.admin-shell .btn-primary:hover:not(:disabled) { background: var(--wx-accent-hover); border-color: var(--wx-accent-hover); }
.admin-shell .btn-secondary { background: #fff; color: var(--wx-ink-2); }
.admin-shell .btn-secondary:hover:not(:disabled) { background: #f7f8f7; color: var(--wx-ink); }
.admin-shell .btn-quiet { background: transparent; border-color: transparent; color: var(--wx-ink-2); }
.admin-shell .btn-quiet:hover:not(:disabled) { background: #f2f3f4; border-color: transparent; color: var(--wx-ink); }
.admin-shell .btn-sm { height: 26px; min-height: 26px; padding: 0 9px; border-radius: 3px; font-size: 12px; }

.admin-shell .input,
.admin-shell .select,
.admin-shell .textarea {
  height: 30px; min-height: 30px; padding: 0 9px;
  border: 1px solid var(--wx-line); border-radius: 4px;
  background: #fff; color: var(--wx-ink); font-size: 12.5px;
}
.admin-shell .textarea { height: auto; min-height: 84px; padding: 7px 9px; line-height: 1.6; }
.admin-shell .input:focus,
.admin-shell .select:focus,
.admin-shell .textarea:focus {
  border-color: var(--wx-accent); background: #fff;
  box-shadow: 0 0 0 2px var(--wx-accent-ring);
}
.admin-shell .input::placeholder,
.admin-shell .textarea::placeholder { color: #9aa1ab; }

/* ---------- 9. 筛选条：贴上去的一条，不是一张卡 ---------- */
.admin-shell .card,
.admin-shell .card-body { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.admin-shell .filter-card,
.admin-shell .admin-filter-card,
.admin-shell .admin-log-filter {
  margin-bottom: 14px; padding: 0 0 12px;
  border: 0; border-bottom: 1px solid var(--wx-line); border-radius: 0;
  background: transparent; box-shadow: none;
}
.admin-shell .customer-filter { border-bottom: 1px solid var(--wx-line); padding-bottom: 12px; margin-bottom: 0; }
.admin-shell .filter-grid { gap: 8px 10px; }
.admin-shell .filter-actions { gap: 6px; }

/* 快捷筛选：下划线标签，不是分段胶囊 */
.admin-shell .workbench-filter-tabs,
.admin-shell .workbench-console-filters {
  gap: 2px; margin: 0 0 12px; padding: 0;
  border: 0; border-bottom: 1px solid var(--wx-line); border-radius: 0; background: transparent;
}
.admin-shell .workbench-filter-tabs button,
.admin-shell .workbench-console-filters button {
  height: 30px; padding: 0 11px;
  border: 0; border-radius: 0; background: transparent;
  color: var(--wx-ink-3); font-size: 12.5px; font-weight: 400;
  box-shadow: inset 0 -2px 0 transparent;
}
.admin-shell .workbench-filter-tabs button:hover,
.admin-shell .workbench-console-filters button:hover { color: var(--wx-ink); background: transparent; }
.admin-shell .workbench-filter-tabs button.active,
.admin-shell .workbench-console-filters button.active {
  color: var(--wx-ink); font-weight: 500;
  background: transparent; box-shadow: inset 0 -2px 0 var(--wx-accent);
}
.admin-shell .workbench-console-filters button strong { font-variant-numeric: tabular-nums; }

/* 分页与合计 */
.admin-shell .workbench-pagination,
.admin-shell .workbench-total { border-top: 1px solid var(--wx-line); color: var(--wx-ink-3); font-size: 12px; }

/* ---------- 10. 详情抽屉：操作常驻，字段紧凑 ---------- */
.workbench-drawer-layer .workbench-drawer { width: 472px; border-radius: 0; box-shadow: -18px 0 48px rgba(20,23,28,.14); }
.workbench-drawer-layer .workbench-drawer-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--wx-line);
  background: #fff;
}
.workbench-drawer-layer .workbench-drawer-head h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.workbench-drawer-layer .workbench-drawer-head > div > span {
  color: var(--wx-ink-4); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.workbench-drawer-layer .workbench-drawer-head p { color: var(--wx-ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.workbench-drawer-layer .payment-drawer-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--wx-line-soft);
}
.workbench-drawer-layer .payment-drawer-section h3 {
  margin: 0 0 8px;
  color: var(--wx-ink-4);
  font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.workbench-drawer-layer .payment-drawer-section-head { margin-bottom: 8px; }
.workbench-drawer-layer .payment-drawer-section-head h3 { margin: 0; }
.workbench-drawer-layer .payment-drawer-section-head > span { color: var(--wx-ink-4); font-size: 11px; }
/* 抽屉里的字段：标签左、值右的一行，不要灰底小盒（原来每格一个圆角盒子） */
.workbench-drawer-layer .payment-drawer-details { display: grid; grid-template-columns: 1fr; gap: 0; }
.workbench-drawer-layer .payment-drawer-details > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-width: 0;
  padding: 6px 0;
  border: 0; border-bottom: 1px solid var(--wx-line-soft); border-radius: 0;
  background: transparent;
}
.workbench-drawer-layer .payment-drawer-details > div:last-child { border-bottom: 0; }
.workbench-drawer-layer .payment-drawer-details span {
  display: inline; margin: 0;
  color: var(--wx-ink-3); font-size: 12px; font-weight: 400;
}
.workbench-drawer-layer .payment-drawer-details strong {
  display: inline; text-align: right;
  color: var(--wx-ink); font-size: 12.5px; font-weight: 500; min-width: 0;
}
.workbench-drawer-layer .payment-drawer-details .payment-drawer-long-text { text-align: right; }
.workbench-drawer-layer .workbench-drawer-actions {
  position: sticky; bottom: 0; z-index: 3;
  padding: 12px 18px;
  border-top: 1px solid var(--wx-line);
  background: #fff;
}
.workbench-drawer-layer .workbench-drawer-actions .btn { min-width: 92px; }
.workbench-drawer-layer .hint { color: var(--wx-ink-3); font-size: 11.5px; }

/* ---------- 11. 登录页：先把 3D 蓝立方体按下去 ---------- */
.admin-login-page { background: #fff; }
.admin-login-card {
  border: 1px solid var(--wx-line); border-radius: 6px;
  box-shadow: none; background: #fff;
}
.admin-login-page .admin-login-brand img,
.admin-login-page .auth-brand-mark img,
.admin-login-page img { filter: grayscale(1) brightness(.55) contrast(1.1); }
.admin-login-heading h1 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.admin-login-heading p { color: var(--wx-ink-3); }
.admin-login-page .input {
  min-height: 34px; padding: 7px 10px;
  border: 1px solid var(--wx-line); border-radius: 4px; background: #fff;
}
.admin-login-page .input:focus { border-color: var(--wx-accent); box-shadow: 0 0 0 2px var(--wx-accent-ring); }
.admin-login-page .btn { min-height: 36px; border: 1px solid var(--wx-line); border-radius: 4px; font-weight: 500; }
.admin-login-page .btn-primary { background: var(--wx-accent); border-color: var(--wx-accent); }
.admin-login-page .btn-primary:hover:not(:disabled) { background: var(--wx-accent-hover); border-color: var(--wx-accent-hover); }

/* ---------- 12. 移动端底栏与实际控件一致 ---------- */
.admin-mobile-tabbar { border-top: 1px solid var(--wx-line); background: #fff; }
.admin-mobile-tab { color: var(--wx-ink-3); }
.admin-mobile-tab.active { color: var(--wx-accent); }
.admin-mobile-tab.active::before { background: var(--wx-accent); }

/* 移动端订单卡：还原本列表的密度 */
@media (max-width: 760px) {
  .admin-shell .content { padding: 14px 14px 40px; }
  .admin-shell .saas-metrics { border-top-width: 1px; }
  .admin-shell .saas-metric { flex: 1 1 44%; padding: 10px 12px; }
  .admin-shell .saas-metric:nth-child(2n) { border-left: 1px solid var(--wx-line); }
  .admin-shell .workbench-order-card { border-radius: 4px; box-shadow: none; border-color: var(--wx-line); }
  .admin-shell .workbench-drawer-layer .workbench-drawer { width: 100%; }
  .workbench-drawer-layer .workbench-drawer { width: 100%; }
}

/* 关掉 v2.5.2 那套基于 nth-child / grid-row 硬编码的首页定位。
   现在首页布局由 JS 输出的 .saas-workbench-grid / .saas-rail 结构决定，
   旧的 grid-column / grid-row 会把卡片强塞回第 1 列，导致左右两栏叠在一起。 */
.admin-shell .saas-workbench .saas-recent-card,
.admin-shell .saas-workbench .saas-trend-card,
.admin-shell .saas-workbench .saas-bottom-grid > .saas-panel {
  grid-column: auto; grid-row: auto;
  padding: 0; border: 0; border-radius: 0; background: transparent;
}
.admin-shell .saas-workbench .saas-metrics { grid-column: auto; margin-bottom: 20px; }

/* 首页「最近订单」表：金额右对齐，和列表页一致 */
.admin-shell .saas-recent-table th:nth-child(4),
.admin-shell .saas-recent-table td:nth-child(4) { text-align: right; }
.admin-shell .saas-recent-table td:nth-child(4) { font-variant-numeric: tabular-nums; font-weight: 500; }

/* 备注两行压紧，避免把行高撑到两倍 */
.admin-shell .cell-note { line-height: 1.3; }

/* 详情抽屉：头部与底部操作栏固定，中间字段区独立滚动。
   JS 已把 .workbench-drawer-actions 移出滚动容器，这里只负责编排。 */
.workbench-drawer-layer .workbench-drawer {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.workbench-drawer-layer .workbench-drawer-head { flex: none; }
.workbench-drawer-layer .workbench-drawer-form {
  flex: 1 1 auto; min-height: 0;
  display: block; gap: 0; padding: 0;
  overflow-y: auto;
}
.workbench-drawer-layer .workbench-drawer-actions {
  flex: none;
  position: static;
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--wx-line);
  background: #fff;
}
.workbench-drawer-layer .workbench-drawer-actions .btn { min-width: 92px; }
.workbench-drawer-layer .payment-drawer-section:last-child { border-bottom: 0; }

/* 抽屉与登录页渲染在 .admin-shell 之外，控件语言必须在这里再声明一遍，
   否则按钮会退回历史蓝色（--wx-accent 失效）。 */
.workbench-drawer-layer .btn {
  height: 30px; min-height: 30px; padding: 0 14px;
  border: 1px solid var(--wx-line); border-radius: 4px;
  background: #fff; color: var(--wx-ink);
  font-size: 12.5px; font-weight: 400; letter-spacing: 0; box-shadow: none;
}
.workbench-drawer-layer .btn:hover:not(:disabled) { background: #f7f8f7; border-color: #d5d8dc; }
.workbench-drawer-layer .btn-primary { background: var(--wx-accent); border-color: var(--wx-accent); color: #fff; font-weight: 500; }
.workbench-drawer-layer .btn-primary:hover:not(:disabled) { background: var(--wx-accent-hover); border-color: var(--wx-accent-hover); }
.workbench-drawer-layer .btn-secondary { background: #fff; color: var(--wx-ink-2); }
.workbench-drawer-layer .btn-secondary:hover:not(:disabled) { background: #f7f8f7; color: var(--wx-ink); }
.workbench-drawer-layer .btn-quiet { background: transparent; border-color: transparent; color: var(--wx-ink-2); }
.workbench-drawer-layer .btn-sm { height: 26px; min-height: 26px; padding: 0 9px; border-radius: 3px; font-size: 12px; }

.workbench-drawer-layer .input,
.workbench-drawer-layer .select,
.workbench-drawer-layer .textarea {
  height: 30px; min-height: 30px; padding: 0 9px;
  border: 1px solid var(--wx-line); border-radius: 4px;
  background: #fff; color: var(--wx-ink); font-size: 12.5px;
}
.workbench-drawer-layer .textarea { height: auto; min-height: 76px; padding: 7px 9px; line-height: 1.6; }
.workbench-drawer-layer .input:focus,
.workbench-drawer-layer .select:focus,
.workbench-drawer-layer .textarea:focus {
  border-color: var(--wx-accent); background: #fff;
  box-shadow: 0 0 0 2px var(--wx-accent-ring);
}
.workbench-drawer-layer .icon-close {
  width: 28px; height: 28px; border: 0; border-radius: 4px;
  background: transparent; color: var(--wx-ink-3); font-size: 18px; line-height: 1;
}
.workbench-drawer-layer .icon-close:hover { background: #f2f3f4; color: var(--wx-ink); }
.workbench-drawer-layer .payment-drawer-qr { border: 1px solid var(--wx-line); border-radius: 4px; background: #fff; }
.workbench-drawer-layer .payment-drawer-qr span { color: var(--wx-ink-3); font-size: 11.5px; }
.workbench-drawer-layer .payment-record-item { border: 1px solid var(--wx-line); border-radius: 4px; background: #fff; }
.workbench-drawer-layer .payment-drawer-operation-list { border-left: 1px solid var(--wx-line); }
.workbench-drawer-layer .payment-drawer-operation-list li strong { font-size: 12.5px; font-weight: 500; }
.workbench-drawer-layer .payment-drawer-operation-list li span { color: var(--wx-ink-4); font-size: 11px; }

/* ==================================================================
   MAY-BAODAN V3.1「可读性」层
   ------------------------------------------------------------------
   真实使用反馈：排版太紧凑、一眼不知道看哪里、行距太近、墨绿不清晰。
   这一层只做三件事，不推翻 V3.0 的方向（仍然是表格优先、无渐变、无大圆角）：

     1) 把呼吸感加回来：表格行 40 → 52px，控件整体 +2~4px，
        分区之间从 20px 拉到 28~36px。
     2) 把层级重新拉开：页标题 / 分区标题 / 表头 / 单元格分成四档，
        主工作区补回一个浅边框容器（1px + 4px 圆角，无阴影，不是 SaaS 卡片），
        长表格加斑马纹，眼睛不容易串行。
     3) 强调色：墨绿 #0f5c4f → 浅蓝 #2f80ed；
        作为文字用的地方（链接、行内操作）用更深的 #1c6dd0 保证可读性。
   ================================================================== */

:root {
  --wx-accent: #2f80ed;
  --wx-accent-hover: #1c6dd0;
  --wx-accent-text: #1c6dd0;
  --wx-accent-soft: #eaf2fe;
  --wx-accent-ring: rgba(47, 128, 237, .22);
  --wx-row: 52px;
  --wx-line: #e3e6ea;
  --wx-line-soft: #f0f2f5;
  --wx-ink-3: #6b7482;
  --wx-ink-4: #9aa2ad;
}

/* ---------- 1. 内容区与页头：先把"我在哪一页"说清楚 ---------- */
.admin-shell .content { padding: 24px 28px 64px; font-size: 13.5px; }
.admin-shell .workbench-page-head,
.admin-shell .customer-console-header,
.admin-shell .workbench-console-header {
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.admin-shell .workbench-page-head > div > span,
.admin-shell .workbench-page-head > span {
  font-size: 11px; letter-spacing: .1em; color: var(--wx-ink-4);
}
.admin-shell .workbench-page-head h2,
.admin-shell .customer-console-header h2,
.admin-shell .workbench-console-header h2 {
  margin-top: 7px;
  font-size: 23px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2;
}
.admin-shell .workbench-page-head p,
.admin-shell .customer-console-header p { font-size: 13px; margin-top: 7px; }

/* 顶栏：搜索框加宽，这是老板找单子的主要入口 */
.admin-shell .admin-topbar { padding: 0 24px; }
.admin-shell .saas-topbar-search { min-width: 320px; height: 34px; padding: 0 11px; }
.admin-shell .saas-topbar-search input { font-size: 13px; }
.admin-shell .topbar-meta h1 { font-size: 16px; }
.admin-shell .topbar-kicker { font-size: 12px; }

/* ---------- 2. 统计带：数字要大到一眼能扫 ---------- */
.admin-shell .saas-metrics { margin-bottom: 28px; }
.admin-shell .saas-metric { padding: 16px 22px 18px; min-width: 150px; }
.admin-shell .saas-metric-label { font-size: 13px; color: var(--wx-ink-3); }
.admin-shell .saas-metric-value {
  margin-top: 9px;
  font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1;
}
.admin-shell .customer-overview-strip > div,
.admin-shell .workbench-console-signal > div { padding: 16px 22px 18px; }
.admin-shell .customer-overview-strip strong,
.admin-shell .workbench-console-signal strong { font-size: 28px; }

/* ---------- 3. 分区标题：从"小灰字"提到"能当地标" ---------- */
.admin-shell .saas-panel-head,
.admin-shell .workbench-section-head,
.admin-shell .customer-section-head,
.admin-shell .workbench-queue-head {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--wx-line);
}
.admin-shell .saas-panel-head h3,
.admin-shell .workbench-section-head h3,
.admin-shell .customer-section-head h3,
.admin-shell .workbench-queue-head h3 {
  font-size: 15.5px; font-weight: 600; letter-spacing: -.005em;
}
.admin-shell .saas-panel-head p,
.admin-shell .workbench-section-head p,
.admin-shell .customer-section-head p,
.admin-shell .workbench-queue-head p {
  margin-top: 5px; font-size: 12.5px; color: var(--wx-ink-3);
}

/* 首页两栏：把间距拉开 */
@media (min-width: 1200px) {
  .admin-shell .saas-workbench-grid { gap: 36px; }
  .admin-shell .saas-rail > .saas-panel { padding-bottom: 24px; margin-bottom: 24px; }
}
.admin-shell .saas-workbench-grid { margin-top: 4px; }

/* 右栏待办：行距放开 */
.admin-shell .saas-todo-item { padding: 13px 0; font-size: 13.5px; }
.admin-shell .saas-todo-item strong { font-size: 15px; }
.admin-shell .saas-activity-item { padding: 9px 0; }
.admin-shell .saas-activity-item strong { font-size: 13px; }
.admin-shell .saas-activity-item p { font-size: 12.5px; line-height: 1.55; }
.admin-shell .saas-trend-card .dashboard-trend-bars { min-height: 116px; }

/* ---------- 4. 表格：这次反馈的重灾区 ---------- */
/* 主工作区补一个浅边框容器：1px + 4px 圆角、没有阴影，只是把"这一块是一件事"圈出来 */
.admin-shell .workbench-table-wrap,
.admin-shell .saas-table-wrap,
.admin-shell .customer-table-wrap {
  border: 1px solid var(--wx-line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.admin-shell .workbench-table,
.admin-shell .saas-recent-table,
.admin-shell .customer-table { font-size: 13px; }

/* 表头：给浅底 + 深一点的文字，让它明显是"另一层" */
.admin-shell .workbench-table th,
.admin-shell .saas-recent-table th,
.admin-shell .customer-table th {
  height: 42px; padding: 0 16px;
  border: 0; border-bottom: 1px solid var(--wx-line);
  background: #f7f8fa;
  color: #5a6472;
  font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none;
  white-space: nowrap;
}

/* 行：52px，内边距加到 14px，两行单元格也能喘气 */
.admin-shell .workbench-table td,
.admin-shell .customer-table td {
  height: var(--wx-row); padding: 11px 16px;
  border: 0; border-bottom: 1px solid var(--wx-line-soft);
  vertical-align: middle; line-height: 1.5;
}
.admin-shell .saas-recent-table td {
  height: 48px; padding: 10px 16px;
  border: 0; border-bottom: 1px solid var(--wx-line-soft);
  vertical-align: middle; line-height: 1.5;
}
/* 斑马纹：宽表最实用的一招，眼睛不容易串行 */
.admin-shell .workbench-table tbody tr:nth-child(even) td,
.admin-shell .saas-recent-table tbody tr:nth-child(even) td,
.admin-shell .customer-table tbody tr:nth-child(even) td { background: #fafbfc; }
.admin-shell .workbench-table tbody tr:hover td,
.admin-shell .saas-recent-table tbody tr:hover td,
.admin-shell .customer-table tbody tr:hover td { background: #eef5fe; }
.admin-shell .workbench-table tbody tr:last-child td,
.admin-shell .customer-table tbody tr:last-child td,
.admin-shell .saas-recent-table tbody tr:last-child td { border-bottom: 0; }

/* 单元格里的两行：主行更大更黑，副行压小但离得开 */
.admin-shell .cell-main,
.admin-shell .order-number-cell { font-size: 13.5px; font-weight: 600; }
.admin-shell .order-number-cell { letter-spacing: -.005em; }
.admin-shell .cell-sub {
  margin-top: 4px;
  font-size: 12px; color: var(--wx-ink-4);
}
.admin-shell .cell-note { font-size: 12.5px; line-height: 1.5; color: var(--wx-ink-2); }
.admin-shell .cell-note + .cell-note { margin-top: 4px; font-size: 12px; color: var(--wx-ink-3); }

/* 金额：加粗放大，让"钱"在表格里先跳出来 */
.admin-shell .money { font-size: 14px; font-weight: 600; }
.admin-shell .saas-recent-table td:nth-child(4) { font-size: 14px; font-weight: 600; }
.admin-shell .customer-number { font-size: 13.5px; }

/* 状态点：放大一点，浅色状态下也能看见 */
.admin-shell .badge,
.admin-shell .saas-status-badge { gap: 8px; font-size: 12.5px; }
.admin-shell .badge::before,
.admin-shell .saas-status-badge::before { width: 7px; height: 7px; }
.admin-shell .badge-red { color: #b42318; font-weight: 500; }
.admin-shell .badge-yellow { color: #8a6100; }

/* 行内操作：写成明显的链接色，别让人找不到 */
.admin-shell .actions .btn,
.admin-shell .workbench-row-actions .btn {
  height: 28px; min-height: 28px; padding: 0 10px;
  color: var(--wx-accent-text); font-size: 12.5px; font-weight: 500;
}
.admin-shell .actions .btn:hover,
.admin-shell .workbench-row-actions .btn:hover { background: var(--wx-accent-soft); }
.admin-shell .btn-quiet { color: var(--wx-accent-text); }

/* ---------- 5. 筛选与快捷标签：给到能点得准的高度 ---------- */
.admin-shell .workbench-filter-tabs,
.admin-shell .workbench-console-filters { margin-bottom: 18px; }
.admin-shell .workbench-filter-tabs button,
.admin-shell .workbench-console-filters button { height: 38px; padding: 0 14px; font-size: 13.5px; }
.admin-shell .workbench-filter-tabs button.active,
.admin-shell .workbench-console-filters button.active { font-weight: 600; }

.admin-shell .filter-card,
.admin-shell .admin-filter-card,
.admin-shell .admin-log-filter,
.admin-shell .customer-filter { padding-bottom: 16px; margin-bottom: 20px; }
.admin-shell .filter-grid { gap: 12px 14px; }
.admin-shell .filter-actions { gap: 10px; }

/* ---------- 6. 控件：整体胖一档，别像缩小的 ---------- */
.admin-shell .btn { height: 34px; min-height: 34px; padding: 0 15px; font-size: 13px; border-radius: 5px; }
.admin-shell .btn-sm { height: 30px; min-height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 4px; }
.admin-shell .input,
.admin-shell .select,
.admin-shell .textarea { height: 34px; min-height: 34px; padding: 0 11px; font-size: 13px; border-radius: 5px; }
.admin-shell .textarea { height: auto; min-height: 100px; padding: 9px 11px; }
.admin-shell .customer-overview-strip { margin-bottom: 20px; }

/* ---------- 7. 详情抽屉：字段之间要能分开 ---------- */
.workbench-drawer-layer .workbench-drawer { width: 512px; }
.workbench-drawer-layer .workbench-drawer-head { padding: 18px 22px; }
.workbench-drawer-layer .workbench-drawer-head h2 { font-size: 18px; }
.workbench-drawer-layer .payment-drawer-section { padding: 18px 22px; }
.workbench-drawer-layer .payment-drawer-section h3 { margin-bottom: 12px; font-size: 11px; }
.workbench-drawer-layer .payment-drawer-details > div { padding: 9px 0; }
.workbench-drawer-layer .payment-drawer-details span { font-size: 12.5px; }
.workbench-drawer-layer .payment-drawer-details strong { font-size: 13px; }
.workbench-drawer-layer .workbench-drawer-actions { padding: 14px 22px; gap: 10px; }
.workbench-drawer-layer .btn { height: 34px; min-height: 34px; padding: 0 16px; font-size: 13px; border-radius: 5px; }
.workbench-drawer-layer .input,
.workbench-drawer-layer .select,
.workbench-drawer-layer .textarea { height: 34px; min-height: 34px; padding: 0 11px; font-size: 13px; border-radius: 5px; }
.workbench-drawer-layer .textarea { height: auto; min-height: 96px; padding: 9px 11px; }
.workbench-drawer-layer .hint { font-size: 12.5px; line-height: 1.6; }

/* ---------- 8. 登录页 ---------- */
.admin-login-card { border-radius: 6px; padding: 34px 34px 30px; }
.admin-login-heading h1 { font-size: 23px; }
.admin-login-page .input { min-height: 40px; padding: 9px 12px; font-size: 14px; }
.admin-login-page .field label { font-size: 13px; }
.admin-login-page .btn { min-height: 42px; font-size: 14px; border-radius: 5px; }
.admin-login-page .forgot-link,
.admin-login-page .auth-switch { font-size: 13px; }

/* ---------- 9. 移动端：卡片也要喘气 ---------- */
@media (max-width: 760px) {
  .admin-shell .content { padding: 18px 16px 48px; }
  .admin-shell .saas-metric { flex: 1 1 44%; padding: 14px 16px 16px; }
  .admin-shell .saas-metric-value { font-size: 26px; }
  .admin-shell .workbench-order-card { padding: 16px; border-radius: 6px; }
  .admin-shell .workbench-filter-tabs button,
  .admin-shell .workbench-console-filters button { height: 36px; padding: 0 12px; }
}

/* V3.1 移动端修正：顶栏搜索框的 320px 最小宽会把页面标题挤成两行 */
@media (max-width: 760px) {
  .admin-shell .admin-topbar { padding: 0 16px; }
  .admin-shell .saas-topbar-search { min-width: 0; flex: 1 1 auto; height: 32px; }
  .admin-shell .saas-topbar-search kbd { display: none; }
  .admin-shell .topbar-meta h1 { white-space: nowrap; }
}

/* ==================================================================
   MAY-BAODAN V3.2「字体」层
   ------------------------------------------------------------------
   真实使用反馈：字体太粗；改成宋体；除快递单号外一律不加粗。
   这一层只做三件事：
     1) 管理端全站字体换成宋体（Songti SC / SimSun），并统一掉原来的
        系统无衬线 + 等宽混排；打开 macOS 的次像素抗锯齿，避免宋体细笔
        画在 1x 屏上糊掉。
     2) 去掉全站加粗（这一条已由 V3.4 撤销：实机反馈宋体不加粗看不清）。
        不再靠字重。
     3) 只有快递单号保留加粗（V3.4 起恢复完整字重层级）。
   纯展示层：不动任何结构、路由、权限、接口。
   ================================================================== */

:root {
  --wx-font: "Songti SC", "STSong", "SimSun", "宋体", "Noto Serif SC", "Source Han Serif SC", "Times New Roman", serif;
  /* 让还引用 V2 字体变量的旧组件也一起走宋体 */
  --v2-font-sans: var(--wx-font);
  --v2-font-mono: var(--wx-font);
}

.admin-shell,
.admin-shell *,
.admin-shell *::before,
.admin-shell *::after,
.workbench-drawer-layer,
.workbench-drawer-layer *,
.workbench-drawer-layer *::before,
.workbench-drawer-layer *::after,
.admin-login-page,
.admin-login-page *,
.admin-login-page *::before,
.admin-login-page *::after {
  font-family: var(--wx-font);
}

/* 宋体笔画细，关掉 macOS 的 antialiased（那会让字更轻） */
.admin-shell,
.workbench-drawer-layer .workbench-drawer,
.admin-login-page {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

/* 宋体在负字距下会挤压笔画，统一清零 */
.admin-shell h1, .admin-shell h2, .admin-shell h3, .admin-shell h4,
.admin-shell p, .admin-shell span, .admin-shell strong, .admin-shell td,
.admin-shell th, .admin-shell label, .admin-shell button,
.workbench-drawer-layer h1, .workbench-drawer-layer h2, .workbench-drawer-layer h3,
.workbench-drawer-layer h4, .workbench-drawer-layer p, .workbench-drawer-layer span,
.workbench-drawer-layer strong, .workbench-drawer-layer label, .workbench-drawer-layer button,
.admin-login-page h1, .admin-login-page p, .admin-login-page span,
.admin-login-page strong, .admin-login-page label, .admin-login-page button {
  letter-spacing: 0;
}

/* ---------- 4. 宋体视觉上比无衬线小一档，字号微调 + 行距放松 ---------- */
.admin-shell { font-size: 14px; }
.admin-shell .content { font-size: 14px; }
.admin-shell .workbench-page-head h2,
.admin-shell .customer-console-header h2,
.admin-shell .workbench-console-header h2 { font-size: 24px; line-height: 1.3; }
.admin-shell .saas-panel-head h3,
.admin-shell .workbench-section-head h3,
.admin-shell .customer-section-head h3,
.admin-shell .workbench-queue-head h3 { font-size: 16px; }
.admin-shell .saas-metric-label { font-size: 13.5px; }
.admin-shell .saas-metric-value { font-size: 32px; }
.admin-shell .cell-main,
.admin-shell .order-number-cell { font-size: 14px; }
.admin-shell .cell-sub { font-size: 12.5px; }
.admin-shell .cell-note { font-size: 13px; }
.admin-shell .cell-note + .cell-note { font-size: 12.5px; }
.admin-shell .money { font-size: 14.5px; }
.admin-shell .saas-recent-table td:nth-child(4) { font-size: 14.5px; }
.admin-shell .badge, .admin-shell .saas-status-badge { font-size: 13px; }
.admin-shell .btn { font-size: 13.5px; }
.admin-shell .btn-sm { font-size: 13px; }
.admin-shell .input, .admin-shell .select, .admin-shell .textarea { font-size: 13.5px; }
.admin-shell .nav-link { font-size: 13.5px; }
.admin-shell .nav-group-label { font-size: 10px; }
.admin-shell .workbench-filter-tabs button,
.admin-shell .workbench-console-filters button { font-size: 14px; }
.admin-shell .saas-todo-item { font-size: 14px; }
.admin-shell .saas-todo-item strong { font-size: 15px; }
.admin-shell .saas-activity-item p { font-size: 13px; }
.admin-shell .workbench-table th,
.admin-shell .saas-recent-table th,
.admin-shell .customer-table th { font-size: 12.5px; }
.admin-shell .workbench-table,
.admin-shell .saas-recent-table,
.admin-shell .customer-table { font-size: 13.5px; }

.workbench-drawer-layer .workbench-drawer-head h2 { font-size: 19px; }
.workbench-drawer-layer .payment-drawer-details span { font-size: 13px; }
.workbench-drawer-layer .payment-drawer-details strong { font-size: 13.5px; }
.workbench-drawer-layer .btn { font-size: 13.5px; }
.workbench-drawer-layer .input,
.workbench-drawer-layer .select,
.workbench-drawer-layer .textarea { font-size: 13.5px; }

.admin-login-page .admin-login-heading h1 { font-size: 24px; }
.admin-login-page .input { font-size: 14px; }
.admin-login-page .btn { font-size: 14px; }

/* ==================================================================
   MAY-BAODAN V3.3 表格对齐修正
   ------------------------------------------------------------------
   症状：报单列表「当前状态」的表头在右边、状态文字在左边，错开约 64px。

   根因（两段叠加）：
     1) 历史层里有一条按"位置"硬编码的规则：
          .workbench-table th:nth-last-child(2),
          .workbench-table td:nth-last-child(2) { text-align: right; }
        在报单列表里「倒数第二列」正好是「当前状态」，于是表头被推到右边。
     2) 状态内容外面包着 .workbench-statuses { display:flex }。
        flex 子项的位置由 justify-content 决定，**不响应 text-align**，
        所以徽标仍然停在左边 —— 表头右、内容左，就错开了。

       同一个毛病也出现在「操作」列：那一格是 .workbench-row-actions（同为
       flex 容器），之前只是"看起来对齐"，属于巧合。

   这一层不再用位置选择器（列数一变就指错列），改成按列语义显式声明对齐，
   并且让 flex 容器显式跟随所在列。
   ================================================================== */

/* 1) 撤掉按位置硬编码的右对齐，回到左对齐 */
.admin-shell .workbench-table th:nth-last-child(2),
.admin-shell .workbench-table td:nth-last-child(2) { text-align: left; }

/* 2) 状态列：flex 容器显式靠左，与表头一致 */
.admin-shell .workbench-statuses { justify-content: flex-start; }

/* 3) 操作列：表头与内容同边。
      内容是 flex 容器，text-align 对它无效，所以两边都显式左对齐，
      不再依赖"巧合"。 */
.admin-shell .workbench-table th:last-child { text-align: left; }
.admin-shell .actions { text-align: left; }
.admin-shell .workbench-row-actions { justify-content: flex-start; }

/* 4) 数字列：表头必须跟着数字一起右对齐，否则又是表头左、数字右 */
.admin-shell .customer-table th:nth-child(3),
.admin-shell .customer-table th:nth-child(4),
.admin-shell .customer-table td:nth-child(3),
.admin-shell .customer-table td:nth-child(4) { text-align: right; }
.admin-shell .saas-recent-table th:nth-child(4) { text-align: right; }

/* 5) 报单列表的横向内边距之前被一条更高优先级的规则压到 8px
      （.admin-filter-card ~ .order-list-table-wrap ... { padding-inline: var(--v2-space-2) }），
      只有其他表格的一半，所以那一张表看着特别挤。这里拉回 16px 与其他表格一致。 */
@media (min-width: 1024px) {
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th,
  .admin-filter-card ~ .order-list-table-wrap .workbench-table td { padding-inline: 16px; }
}

/* ==================================================================
   MAY-BAODAN V3.4「看得清」层
   ------------------------------------------------------------------
   实机反馈：整体字体看不清、宋体不加粗太单薄、还是有紧凑感。
   这一层做四件事（不改结构、不改路由、不改接口）：
     1) 撤销 V3.2 的"全站不加粗"压平（那段规则已从上文删除），
        恢复完整的字重层级：标题/表头/单号/金额/客户名 用宋体 Bold。
     2) 整体放大一档：正文与表格 14 → 15.5px，行高 52/64 → 66px，
        控件高度 34 → 40px。宋体笔画细，尺寸不够就是看不清。
     3) 行距与留白一起放：表格行距 1.5 → 1.7，分区间距再加一档。
     4) 报单列表去掉「负责人」列后的 5 列宽度重新分配。
   ================================================================== */

:root {
  --wx-row: 66px;
  --wx-line: #dfe3e8;
  --wx-line-soft: #ebedf0;
}

/* ---------- 1. 整体字号：基线放大 ---------- */
.admin-shell { font-size: 15.5px; }
.admin-shell .content { font-size: 15.5px; line-height: 1.7; padding: 28px 32px 72px; }

/* 侧栏 */
.admin-shell .sidebar { width: 196px; padding: 16px 12px 14px; }
.admin-shell .nav-link { min-height: 40px; font-size: 15px; font-weight: 500; }
.admin-shell .nav-link.active { font-weight: 700; }
.admin-shell .nav-group-label { padding: 20px 8px 8px; font-size: 11px; font-weight: 600; }
.admin-shell .sidebar-brand strong { font-size: 15.5px; font-weight: 700; }
.admin-shell .sidebar-brand small { font-size: 10px; }
.admin-shell .user-chip strong { font-size: 14px; font-weight: 600; }
.admin-shell .user-chip span { font-size: 12.5px; }
.admin-shell { grid-template-columns: 196px minmax(0, 1fr); }

/* 顶栏 */
.admin-shell .admin-topbar { padding: 0 28px; }
.admin-shell .topbar-meta h1 { font-size: 17px; font-weight: 700; }
.admin-shell .topbar-kicker { font-size: 12.5px; }
.admin-shell .saas-topbar-search { min-width: 340px; height: 40px; }
.admin-shell .saas-topbar-search input { font-size: 14.5px; }

/* 页头 */
.admin-shell .workbench-page-head,
.admin-shell .customer-console-header,
.admin-shell .workbench-console-header { padding-bottom: 18px; margin-bottom: 28px; }
.admin-shell .workbench-page-head > div > span,
.admin-shell .workbench-page-head > span { font-size: 12.5px; font-weight: 500; }
.admin-shell .workbench-page-head h2,
.admin-shell .customer-console-header h2,
.admin-shell .workbench-console-header h2 { margin-top: 8px; font-size: 29px; font-weight: 700; line-height: 1.3; }
.admin-shell .workbench-page-head p,
.admin-shell .customer-console-header p { font-size: 14px; margin-top: 8px; }

/* ---------- 2. 统计带：数字要够大 ---------- */
.admin-shell .saas-metrics { margin-bottom: 32px; }
.admin-shell .saas-metric { padding: 20px 26px 22px; min-width: 168px; }
.admin-shell .saas-metric-label { font-size: 14.5px; font-weight: 500; }
.admin-shell .saas-metric-value { margin-top: 10px; font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.admin-shell .customer-overview-strip > div,
.admin-shell .workbench-console-signal > div { padding: 20px 26px 22px; }
.admin-shell .customer-overview-strip strong,
.admin-shell .workbench-console-signal strong { font-size: 36px; font-weight: 700; }

/* ---------- 3. 分区标题：当得成地标 ---------- */
.admin-shell .saas-panel-head,
.admin-shell .workbench-section-head,
.admin-shell .customer-section-head,
.admin-shell .workbench-queue-head { padding-bottom: 15px; }
.admin-shell .saas-panel-head h3,
.admin-shell .workbench-section-head h3,
.admin-shell .customer-section-head h3,
.admin-shell .workbench-queue-head h3 { font-size: 19px; font-weight: 700; }
.admin-shell .saas-panel-head p,
.admin-shell .workbench-section-head p,
.admin-shell .customer-section-head p,
.admin-shell .workbench-queue-head p { font-size: 13.5px; margin-top: 6px; }

/* ---------- 4. 表格：这次反馈的重心 ---------- */
.admin-shell .workbench-table th,
.admin-shell .saas-recent-table th,
.admin-shell .customer-table th {
  height: 50px; padding: 0 18px;
  font-size: 14.5px; font-weight: 700; color: #414a57;
}
.admin-shell .workbench-table td,
.admin-shell .customer-table td {
  height: var(--wx-row); padding: 14px 18px; line-height: 1.7;
}
.admin-shell .saas-recent-table td { height: 60px; padding: 13px 18px; line-height: 1.7; }
.admin-shell .workbench-table,
.admin-shell .saas-recent-table,
.admin-shell .customer-table { font-size: 15px; }

.admin-shell .cell-main,
.admin-shell .order-number-cell { font-size: 15.5px; font-weight: 700; }
.admin-shell .cell-sub { margin-top: 5px; font-size: 13.5px; font-weight: 400; }
.admin-shell .cell-note { font-size: 15px; font-weight: 400; line-height: 1.65; }
.admin-shell .cell-note + .cell-note { margin-top: 5px; font-size: 14px; }
.admin-shell .money { font-size: 17px; font-weight: 700; }
.admin-shell .saas-recent-table td:nth-child(4) { font-size: 17px; font-weight: 700; }
.admin-shell .customer-number { font-size: 15.5px; font-weight: 600; }
.admin-shell .badge,
.admin-shell .saas-status-badge { gap: 9px; font-size: 15px; font-weight: 500; }
.admin-shell .badge::before,
.admin-shell .saas-status-badge::before { width: 9px; height: 9px; }

/* 【本次要求】未打款：文字黑色 + 左侧圆点紫色 */
.admin-shell .badge[data-status="未打款"] { color: #14171c; font-weight: 500; }
.admin-shell .badge[data-status="未打款"]::before { background: #7c3aed; }
.admin-shell .saas-status-badge[data-status="未打款"] { color: #14171c; }
.admin-shell .saas-status-badge[data-status="未打款"]::before { background: #7c3aed; }

/* 行内操作 */
.admin-shell .actions .btn,
.admin-shell .workbench-row-actions .btn {
  height: 34px; min-height: 34px; padding: 0 14px;
  font-size: 15px; font-weight: 600;
}

/* ---------- 5. 筛选与控件 ---------- */
.admin-shell .workbench-filter-tabs,
.admin-shell .workbench-console-filters { margin-bottom: 22px; }
.admin-shell .workbench-filter-tabs button,
.admin-shell .workbench-console-filters button { height: 46px; padding: 0 18px; font-size: 15.5px; font-weight: 500; }
.admin-shell .workbench-filter-tabs button.active,
.admin-shell .workbench-console-filters button.active { font-weight: 700; }
.admin-shell .filter-card,
.admin-shell .admin-filter-card,
.admin-shell .admin-log-filter,
.admin-shell .customer-filter { padding-bottom: 20px; margin-bottom: 24px; }
.admin-shell .filter-grid { gap: 14px 16px; }
.admin-shell .btn { height: 40px; min-height: 40px; padding: 0 18px; font-size: 15px; font-weight: 600; }
.admin-shell .btn-primary { font-weight: 700; }
.admin-shell .btn-sm { height: 34px; min-height: 34px; padding: 0 13px; font-size: 14px; border-radius: 4px; }
.admin-shell .input,
.admin-shell .select,
.admin-shell .textarea { height: 40px; min-height: 40px; padding: 0 13px; font-size: 15px; }
.admin-shell .textarea { height: auto; min-height: 110px; padding: 11px 13px; }
.admin-shell .pagination,
.admin-shell .workbench-pagination,
.admin-shell .workbench-total { font-size: 14px; }

/* ---------- 6. 首页右栏 ---------- */
.admin-shell .saas-todo-item { padding: 16px 0; font-size: 15.5px; }
.admin-shell .saas-todo-item strong { font-size: 17px; font-weight: 700; }
.admin-shell .saas-activity-item { padding: 11px 0; }
.admin-shell .saas-activity-item strong { font-size: 15px; font-weight: 600; }
.admin-shell .saas-activity-item p { font-size: 14px; line-height: 1.65; }
.admin-shell .saas-activity-item time { font-size: 13px; }

/* ---------- 7. 详情抽屉 ---------- */
.workbench-drawer-layer .workbench-drawer { width: 560px; }
.workbench-drawer-layer .workbench-drawer-head { padding: 22px 26px; }
.workbench-drawer-layer .workbench-drawer-head h2 { font-size: 22px; font-weight: 700; }
.workbench-drawer-layer .workbench-drawer-head p { font-size: 14px; }
.workbench-drawer-layer .payment-drawer-section { padding: 22px 26px; }
.workbench-drawer-layer .payment-drawer-section h3 { font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.workbench-drawer-layer .payment-drawer-details > div { padding: 12px 0; }
.workbench-drawer-layer .payment-drawer-details span { font-size: 15px; }
.workbench-drawer-layer .payment-drawer-details strong { font-size: 15.5px; font-weight: 600; }
.workbench-drawer-layer .workbench-drawer-actions { padding: 16px 26px; }
.workbench-drawer-layer .btn { height: 40px; min-height: 40px; padding: 0 20px; font-size: 15px; font-weight: 600; }
.workbench-drawer-layer .input,
.workbench-drawer-layer .select,
.workbench-drawer-layer .textarea { height: 40px; min-height: 40px; padding: 0 13px; font-size: 15px; }
.workbench-drawer-layer .textarea { height: auto; min-height: 110px; padding: 11px 13px; }
.workbench-drawer-layer .hint { font-size: 13.5px; line-height: 1.7; }

/* ---------- 8. 登录页 ---------- */
.admin-login-card { padding: 40px 40px 36px; }
.admin-login-heading h1 { font-size: 27px; font-weight: 700; }
.admin-login-heading p { font-size: 14px; }
.admin-login-page .field label { font-size: 14.5px; font-weight: 600; }
.admin-login-page .input { min-height: 46px; font-size: 15.5px; }
.admin-login-page .btn { min-height: 48px; font-size: 16px; font-weight: 700; }
.admin-login-page .link-btn,
.admin-login-page .auth-switch { font-size: 14.5px; }

/* ---------- 9. 报单列表：去掉「负责人」后的 5 列宽度重排 ---------- */
@media (min-width: 1024px) {
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(3),
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(4),
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(5),
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:nth-child(6) { width: auto; }
  /* 5 列：单号 / 客户 / 备注(自适应) / 当前状态 / 操作 */
  .admin-filter-card ~ .order-list-table-wrap:not(.is-payment) .workbench-table th:nth-child(1) { width: 24%; }
  .admin-filter-card ~ .order-list-table-wrap:not(.is-payment) .workbench-table th:nth-child(2) { width: 15%; }
  .admin-filter-card ~ .order-list-table-wrap:not(.is-payment) .workbench-table th:nth-child(4) { width: 14%; }
  /* 6 列（待打款中心）：多一列「收款信息」 */
  .admin-filter-card ~ .order-list-table-wrap.is-payment .workbench-table th:nth-child(1) { width: 22%; }
  .admin-filter-card ~ .order-list-table-wrap.is-payment .workbench-table th:nth-child(2) { width: 13%; }
  .admin-filter-card ~ .order-list-table-wrap.is-payment .workbench-table th:nth-last-child(2) { width: 13%; }
  /* 两边的「操作」列都用固定宽 */
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th:last-child,
  .admin-filter-card ~ .order-list-table-wrap .workbench-table td:last-child { width: 130px; min-width: 130px; }
  .admin-filter-card ~ .order-list-table-wrap .workbench-table th,
  .admin-filter-card ~ .order-list-table-wrap .workbench-table td { padding-inline: 18px; }
}

/* ---------- 10. 移动端 ---------- */
@media (max-width: 760px) {
  .admin-shell .content { padding: 20px 16px 56px; }
  .admin-shell .saas-metric { padding: 16px 18px 18px; }
  .admin-shell .saas-metric-value { font-size: 32px; }
  .admin-shell .workbench-page-head h2,
  .admin-shell .customer-console-header h2 { font-size: 24px; }
  .admin-shell .workbench-order-card { padding: 18px; }
  .admin-shell .workbench-filter-tabs button,
  .admin-shell .workbench-console-filters button { height: 42px; padding: 0 14px; font-size: 15px; }
}

/* V3.4 补丁：待打款中心没有筛选卡（.admin-filter-card），
   所以历史上从来没吃到那套固定列宽规则，表格一直是 auto 布局：
   单号列被压到 157px 直接换行，「操作」列反而吃掉 208px。
   这里让「有操作列的报单表」无论有没有筛选卡，都走同一套固定列宽。 */
@media (min-width: 1024px) {
  .admin-shell .order-list-table-wrap.is-payment .workbench-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .admin-shell .order-list-table-wrap.is-payment .workbench-table th,
  .admin-shell .order-list-table-wrap.is-payment .workbench-table td { padding-inline: 18px; }
  .admin-shell .order-list-table-wrap.is-payment .workbench-table th:nth-child(1) { width: 24%; }
  .admin-shell .order-list-table-wrap.is-payment .workbench-table th:nth-child(2) { width: 13%; }
  .admin-shell .order-list-table-wrap.is-payment .workbench-table th:nth-child(4) { width: 11%; }
  .admin-shell .order-list-table-wrap.is-payment .workbench-table th:nth-child(5) { width: 11%; }
  .admin-shell .order-list-table-wrap.is-payment .workbench-table th:nth-child(6) {
    width: 122px; min-width: 122px;
  }
  .admin-shell .order-list-table-wrap .workbench-table .order-number-cell { white-space: nowrap; }
}

/* ==================================================================
   MAY-BAODAN V3.5 手机端适配层
   ------------------------------------------------------------------
   实测问题（390×844）：
     1) 顶栏搜索框被 V3.4 的 min-width:340px 撑爆，右侧通知铃被挤出屏幕
        （.topbar-right 实测宽 386px，right 到 466px > 390px 视口）。
     2) 员工管理「新增员工」表单在手机上仍是 4 列，
        输入框被压到 ~80px，提交按钮文字竖排成三行。
     3) 地址管理页头在手机上只留一个孤零零的按钮。
     4) 第三个 tab 原来写「我的」却跳到地址管理（已在 JS 改为「更多」）。
   这一层只处理窄屏布局，不动桌面端。
   ================================================================== */

@media (max-width: 760px) {
  /* ---------- 1. 顶栏：标题一行，搜索独占一行 ---------- */
  .admin-shell .admin-topbar {
    flex-wrap: wrap;
    min-height: 0;
    padding: 12px 16px;
    gap: 10px;
    align-items: center;
  }
  .admin-shell .admin-topbar > div:first-child { flex: 1 1 auto; min-width: 0; }
  .admin-shell .admin-topbar .topbar-meta h1 {
    font-size: 19px; font-weight: 700; white-space: nowrap; line-height: 1.3;
  }
  .admin-shell .admin-topbar .topbar-right {
    flex: 1 1 100%;
    order: 2;
    min-width: 0;
    gap: 10px;
  }
  .admin-shell .saas-topbar-search {
    min-width: 0;
    flex: 1 1 auto;
    height: 42px;
    padding: 0 12px;
  }
  .admin-shell .saas-topbar-search kbd { display: none; }
  .admin-shell .saas-topbar-search input { font-size: 15px; }
  .admin-shell .saas-icon-btn { width: 42px; height: 42px; flex: none; border-radius: 6px; }

  /* ---------- 2. 内容区：给底部 tab 栏留出安全距离 ---------- */
  .admin-shell .content { padding: 18px 16px 92px; }

  /* ---------- 3. 员工管理：表单与列表一律单列 ---------- */
  .admin-shell .admin-employee-create .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .admin-shell .admin-employee-create .employee-create-action { margin-top: 4px; }
  .admin-shell .admin-employee-create .employee-create-action > label { display: none; }
  .admin-shell .admin-employee-create .employee-create-action .btn { width: 100%; }
  .admin-shell .admin-employee-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }
  .admin-shell .admin-employee-row > div:first-child { padding-bottom: 14px; border-bottom: 1px solid var(--wx-line); }
  .admin-shell .admin-employee-row .employee-row-action .btn { width: 100%; }

  /* ---------- 4. 页头：h2 在手机上由顶栏承担，按钮给满宽 ---------- */
  .admin-shell .page-head { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 22px; }
  .admin-shell .page-head .head-actions { width: 100%; }
  .admin-shell .page-head .head-actions .btn { flex: 1 1 auto; min-height: 44px; }
  .admin-shell .workbench-page-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .admin-shell .workbench-page-head .head-actions { width: 100%; }
  .admin-shell .workbench-page-head .head-actions .btn { flex: 1 1 auto; min-height: 44px; }

  /* ---------- 5. 统计带：2×2，但要压扁一点 ---------- */
  .admin-shell .saas-metrics,
  .admin-shell .customer-overview-strip { margin-bottom: 22px; }
  .admin-shell .saas-metric { flex: 1 1 44%; min-width: 0; padding: 14px 16px 16px; }
  .admin-shell .saas-metric-value { font-size: 30px; }
  .admin-shell .customer-overview-strip > div { padding: 14px 16px 16px; }
  .admin-shell .customer-overview-strip strong { font-size: 26px; }
  .admin-shell .customer-overview-strip small { font-size: 12px; }

  /* ---------- 6. 筛选区：全部撑满一行，别挤成两列 ---------- */
  .admin-shell .filter-grid,
  .admin-shell .customer-filter .filter-grid { grid-template-columns: 1fr; gap: 12px; }
  .admin-shell .filter-actions { gap: 10px; }
  .admin-shell .filter-actions .btn,
  .admin-shell .customer-filter .filter-actions .btn { flex: 1 1 auto; min-height: 44px; }
  .admin-shell .workbench-filter-tabs,
  .admin-shell .workbench-console-filters { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .admin-shell .workbench-filter-tabs::-webkit-scrollbar,
  .admin-shell .workbench-console-filters::-webkit-scrollbar { display: none; }
  .admin-shell .workbench-filter-tabs button,
  .admin-shell .workbench-console-filters button { flex: none; }

  /* ---------- 7. 移动端订单卡：间距与字号 ---------- */
  .admin-shell .workbench-order-card,
  .admin-shell .customer-mobile-card,
  .admin-shell .saas-order-card { padding: 18px; border-radius: 8px; gap: 12px; }
  .admin-shell .workbench-mobile-list,
  .admin-shell .customer-mobile-list,
  .admin-shell .saas-mobile-orders { gap: 14px; padding-bottom: 8px; }
  .admin-shell .workbench-card-head strong { font-size: 16px; font-weight: 700; }
  .admin-shell .workbench-card-head span { font-size: 13.5px; line-height: 1.6; }
  .admin-shell .workbench-card-notes p { font-size: 14.5px; }
  .admin-shell .workbench-order-card > p,
  .admin-shell .customer-mobile-card > span,
  .admin-shell .customer-mobile-card > small { font-size: 14px; }
  .admin-shell .workbench-row-actions .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }

  /* ---------- 8. 底部 tab 栏 ---------- */
  .admin-mobile-tabbar { padding: 6px 0 max(6px, env(safe-area-inset-bottom)); }
  .admin-mobile-tab { min-height: 52px; gap: 4px; }
  .admin-mobile-tab em { font-size: 12px; font-style: normal; }
  .admin-mobile-tab > span svg { width: 22px; height: 22px; }

  /* ---------- 9. 地址管理：地址卡片竖向排布 ---------- */
  .admin-shell .admin-address-table-head { display: none; }
  .admin-shell .admin-shipping-address-list { gap: 14px; }
  .admin-shell .card-body { padding: 18px; }

  /* ---------- 10. 详情抽屉全屏 ---------- */
  .workbench-drawer-layer .workbench-drawer { width: 100%; max-width: 100%; }
  .workbench-drawer-layer .workbench-drawer-head { padding: 18px; }
  .workbench-drawer-layer .payment-drawer-section { padding: 18px; }
  .workbench-drawer-layer .workbench-drawer-actions { padding: 14px 18px; }
  .workbench-drawer-layer .workbench-drawer-actions .btn { flex: 1 1 auto; min-height: 46px; }
  .workbench-drawer-layer .payment-drawer-details > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .workbench-drawer-layer .payment-drawer-details strong { text-align: left; }
  .workbench-drawer-layer .payment-drawer-details .payment-drawer-long-text { text-align: left; }
}

/* ==================================================================
   手机端「更多」总入口页（/admin/more）
   桌面端也可访问，用自动填充网格，不依赖窄屏。
   ================================================================== */
.admin-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.admin-more-item {
  display: flex; align-items: center; gap: 14px;
  min-height: 68px; padding: 16px 18px;
  border: 1px solid var(--wx-line); border-radius: 6px;
  background: #fff; color: var(--wx-ink);
  font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer;
}
.admin-more-item:hover { border-color: var(--wx-accent); background: var(--wx-accent-soft); }
.admin-more-icon { flex: none; display: grid; place-items: center; color: var(--wx-accent); }
.admin-more-icon svg { width: 22px; height: 22px; }
.admin-more-account {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--wx-line);
}
.admin-more-account strong { display: block; font-size: 16px; }
.admin-more-account span { display: block; margin-top: 3px; color: var(--wx-ink-3); font-size: 14px; }
@media (max-width: 480px) {
  .admin-more-grid { grid-template-columns: 1fr; }
  .admin-more-item { min-height: 60px; }
  .admin-more-account { flex-direction: column; align-items: stretch; }
  .admin-more-account .btn { width: 100%; min-height: 44px; }
}

/* V3.5 补丁：旧层在手机端把搜索框里的 input 写死成 width:90px
   （.saas-topbar-search input { min-width:0; width:90px }），
   于是占位提示被截成「订单号 / 客」。这里让它撑满搜索框。 */
@media (max-width: 760px) {
  .admin-shell .saas-topbar-search input {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
  }
}
