@import url("/v2-design-tokens.css");

: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; }
}

/*
 * 五月报单系统 · 用户端专属样式层（电脑端）
 *
 * 只被 scripts/build-user-client.mjs 追加到用户端 CSS，不进入管理端产物。
 *
 * 设计依据：2026-09 用户提供的同行业参考图。
 * 取它的信息结构：顶部品牌条 + 窄图标侧栏 + 面包屑条 + 白卡片 + 密集表格 +
 * 蓝色竖条分区标题 + 标签右对齐的密集表单。
 * 颜色按用户要求调浅：参考图侧栏是 #2155ec，这里用 #2f80ed。
 *
 * 电脑端（≥861px）生效；手机端保持原有卡片式布局不变。
 */

.app-shell.client-shell {
  --c-primary: #2f80ed;
  --c-primary-dark: #1c6dd0;
  --c-primary-deep: #175fc0;
  --c-primary-soft: #eaf2fe;
  --c-bg: #f1f3f7;
  --c-card: #ffffff;
  --c-line: #e3e6ec;
  --c-line-soft: #eef0f4;
  --c-text: #1f2430;
  --c-text-2: #5a6273;
  --c-text-3: #97a0b0;
  --c-amber: #dd9a3c;
  --c-purple: #8b4fc9;
  --c-warn-bg: #fffbe6;
  --c-warn-line: #f5e6b8;
  --c-warn-text: #8a6d1f;

  display: block;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
}

/* 旧的用户端外壳类名已不再渲染，兜底隐藏避免残留 */
.app-shell.client-shell > .user-desktop-sidebar { display: none; }

/* ---------- 1. 顶部品牌条（全宽） ---------- */
.client-topbar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.client-topbar-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.client-topbar-mark { width: 26px; height: 26px; object-fit: contain; }
.client-topbar-brand strong { font-size: 15px; font-weight: 700; color: var(--c-text); }
.client-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.client-topbar-user { color: var(--c-text-3); font-size: 12.5px; }
.client-topbar-logout {
  height: 30px; padding: 0 14px;
  border: 1px solid var(--c-line); border-radius: 3px;
  background: #fff; color: var(--c-text-2);
  font: inherit; font-size: 12.5px; cursor: pointer;
}
.client-topbar-logout:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- 2. 主体：窄侧栏 + 内容 ---------- */
.client-body { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: start; min-height: calc(100vh - 52px); }

.client-rail {
  background: var(--c-primary);
  min-height: calc(100vh - 52px);
  padding: 10px 0 16px;
  position: sticky;
  top: 52px;
  align-self: start;
}
.client-rail-nav { display: flex; flex-direction: column; gap: 2px; }
.client-rail-link {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 100%;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font: inherit; font-size: 12px; cursor: pointer;
  border-left: 3px solid transparent;
  transition: background-color .12s ease, color .12s ease;
}
.client-rail-icon { font-size: 17px; line-height: 1; }
.client-rail-link:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.client-rail-link.active { background: #fff; color: var(--c-primary); font-weight: 600; border-left-color: var(--c-primary-deep); }
.client-rail-label { white-space: nowrap; }

.client-main { min-width: 0; }

/* ---------- 3. 面包屑条 ---------- */
.client-crumb {
  height: 38px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text-2);
  font-size: 12.5px;
}
.client-crumb-menu { color: var(--c-text-3); font-size: 14px; }

/* ---------- 4. 内容区 ---------- */
.app-shell.client-shell .content {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 16px 18px 40px;
}

/* ---------- 5. 卡片 ---------- */
.app-shell.client-shell .card,
.app-shell.client-shell .card-body {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 3px;
  box-shadow: none;
  padding: 16px 18px;
}
.app-shell.client-shell .card + .card { margin-top: 14px; }

/* ---------- 6. 页头：蓝色竖条分区标题 ---------- */
.app-shell.client-shell .page-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}
.app-shell.client-shell .page-head > div:first-child { position: relative; padding-left: 11px; }
.app-shell.client-shell .page-head > div:first-child::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 1px; background: var(--c-primary);
}
.app-shell.client-shell .page-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--c-text); line-height: 1.4; }
.app-shell.client-shell .page-head p { margin: 4px 0 0; color: var(--c-text-3); font-size: 12.5px; }
.app-shell.client-shell .head-actions { display: flex; gap: 8px; flex: none; }

/* ---------- 7. 表单：标签右对齐、值域同宽 ---------- */
.app-shell.client-shell .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.app-shell.client-shell .field { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 10px; margin: 0 0 12px; }
.app-shell.client-shell .field.full { grid-column: 1 / -1; }
.app-shell.client-shell .field > label,
.app-shell.client-shell .field > span:first-child {
  text-align: right; padding-top: 7px;
  color: var(--c-text-2); font-size: 12.5px;
}
.app-shell.client-shell .field > label.required::after { content: " *"; color: #d93a32; }
.app-shell.client-shell .input,
.app-shell.client-shell .select,
.app-shell.client-shell .textarea {
  width: 100%;
  min-height: 32px; padding: 6px 9px;
  border: 1px solid var(--c-line); border-radius: 3px;
  background: #fff; color: var(--c-text);
  font: inherit; font-size: 13px;
}
.app-shell.client-shell .textarea { min-height: 96px; line-height: 1.7; resize: vertical; }
.app-shell.client-shell .input:focus,
.app-shell.client-shell .select:focus,
.app-shell.client-shell .textarea:focus { outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(47, 128, 237, .15); }
.app-shell.client-shell .form-actions { display: flex; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-line-soft); }

/* ---------- 8. 按钮 ---------- */
.app-shell.client-shell .btn {
  height: 32px; min-height: 32px; padding: 0 18px;
  border: 1px solid var(--c-line); border-radius: 3px;
  background: #fff; color: var(--c-text-2);
  font: inherit; font-size: 13px; cursor: pointer;
}
.app-shell.client-shell .btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.app-shell.client-shell .btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 600; }
.app-shell.client-shell .btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.app-shell.client-shell .btn-block { width: 100%; }

/* ---------- 9. 表格：密集、数字右对齐、双色金额 ---------- */
.app-shell.client-shell table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.app-shell.client-shell thead th {
  padding: 9px 10px;
  background: #f7f8fa;
  border: 1px solid var(--c-line);
  color: var(--c-text-2); font-weight: 600; text-align: left; white-space: nowrap;
}
.app-shell.client-shell tbody td {
  padding: 9px 10px;
  border: 1px solid var(--c-line-soft);
  color: var(--c-text); vertical-align: middle;
}
.app-shell.client-shell tbody tr:hover td { background: #f5f9ff; }
.app-shell.client-shell .order-number-cell { font-weight: 600; }
.app-shell.client-shell .money,
.app-shell.client-shell .order-amount-cell { color: var(--c-amber); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.app-shell.client-shell .table-detail-link { color: var(--c-primary); font-weight: 600; }

/* ---------- 10. 状态标签 ---------- */
.app-shell.client-shell .badge {
  display: inline-block; padding: 1px 8px;
  border-radius: 2px; border: 1px solid transparent;
  font-size: 12px; line-height: 1.6; white-space: nowrap;
}
.app-shell.client-shell .badge-yellow { background: #fff7e6; border-color: #f5dfb0; color: #a2701a; }
.app-shell.client-shell .badge-green { background: #e9f7ef; border-color: #bfe3cd; color: #1a7f5a; }
.app-shell.client-shell .badge-red { background: #fdecea; border-color: #f3c6c1; color: #b42318; }
.app-shell.client-shell .badge-blue { background: var(--c-primary-soft); border-color: #c3dafb; color: var(--c-primary-dark); }
.app-shell.client-shell .badge-gray { background: #f2f3f5; border-color: #e0e2e7; color: var(--c-text-2); }

/* ---------- 11. 首页：地址分类标签 + 地址卡 ---------- */
.app-shell.client-shell .shipping-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.app-shell.client-shell .shipping-category-tab {
  padding: 9px 14px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--c-text-2); font: inherit; font-size: 13px; cursor: pointer;
}
.app-shell.client-shell .shipping-category-tab.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }
.app-shell.client-shell .shipping-address-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.app-shell.client-shell .shipping-address-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: 3px; padding: 14px 16px;
}
.app-shell.client-shell .shipping-address-category {
  display: inline-block; padding: 1px 8px; margin-bottom: 10px;
  background: var(--c-primary-soft); border: 1px solid #c3dafb; border-radius: 2px;
  color: var(--c-primary-dark); font-size: 12px;
}
.app-shell.client-shell .shipping-address-full { font-size: 14px; font-weight: 600; line-height: 1.6; }

/* ---------- 12. 提交报单页：规则提示条 ---------- */
.app-shell.client-shell .client-rule-bar {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 0 0 14px; padding: 8px 12px;
  background: var(--c-warn-bg); border: 1px solid var(--c-warn-line); border-radius: 3px;
  color: var(--c-warn-text); font-size: 12.5px; line-height: 1.7;
}
.app-shell.client-shell .client-rule-bar b { color: #a2701a; }

/* ---------- 13. 页面切换：内容区交叉淡入（View Transitions） ----------
   只有 .content 参与，"顶栏 / 侧栏 / 面包屑"原地不动。
   旧内容向上淡出、新内容向上淡入，两段重叠播放，所以不会有硬切感；
   再叠加一条轻微的纵向位移，制造"内容在往前走"的方向感。 */
.app-shell.client-shell .content { view-transition-name: client-content; }

::view-transition-old(client-content) {
  animation: clientContentOut 130ms cubic-bezier(.4, 0, 1, 1) both;
}
::view-transition-new(client-content) {
  animation: clientContentIn 240ms cubic-bezier(.2, 0, 0, 1) both;
}
@keyframes clientContentOut {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes clientContentIn {
  from { opacity: 0; transform: translateY(10px); }
}

/* 浏览器支持 View Transitions 时，关掉原有的单边进场动画，避免动画叠加两次 */
@supports (view-transition-name: none) {
  .app-shell.client-shell .client-route-motion { animation: none; }
}

/* ---------- 14. 交互反馈：所有可点元素都要有过渡 ----------
   生硬感的来源是" hover / 按下没有任何中间状态"。
   这里统一给过渡曲线，并在按下时给 1px 下沉，形成触感。 */
.app-shell.client-shell .btn,
.client-shell .client-topbar-logout,
.client-shell .client-rail-link,
.app-shell.client-shell .shipping-category-tab,
.app-shell.client-shell .table-detail-link,
.app-shell.client-shell tbody tr {
  transition:
    background-color 160ms cubic-bezier(.2, 0, 0, 1),
    border-color 160ms cubic-bezier(.2, 0, 0, 1),
    color 160ms cubic-bezier(.2, 0, 0, 1),
    box-shadow 160ms cubic-bezier(.2, 0, 0, 1),
    transform 90ms cubic-bezier(.2, 0, 0, 1);
}
.app-shell.client-shell .btn:active,
.client-shell .client-topbar-logout:active { transform: translateY(1px); }
.client-shell .client-rail-link:active { transform: none; }

.app-shell.client-shell .input,
.app-shell.client-shell .select,
.app-shell.client-shell .textarea {
  transition: border-color 160ms cubic-bezier(.2, 0, 0, 1), box-shadow 160ms cubic-bezier(.2, 0, 0, 1);
}

/* 内容替换（异步加载完成时）不要闪：给容器一个最小高度，避免页面高度跳变 */
.app-shell.client-shell [data-async-content] { min-height: 120px; }

/* ---------- 15. 手机端：保持原有布局，只隐藏新加的电脑端结构 ---------- */
@media (max-width: 860px) {
  .app-shell.client-shell .client-topbar,
  .app-shell.client-shell .client-rail,
  .app-shell.client-shell .client-crumb,
  .app-shell.client-shell .client-total-bar { display: none; }
  .app-shell.client-shell .client-body { display: block; min-height: 0; }
  .app-shell.client-shell .content { padding: 16px 14px 96px; }
}

/* ---------- 16. 规则提示条图标 + 无障碍降级 ---------- */
.client-rule-icon {
  flex: none; width: 16px; height: 16px; margin-top: 2px;
  display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%;
  font-size: 11px; font-weight: 700; line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(client-content),
  ::view-transition-new(client-content) { animation-duration: 1ms !important; }
  .app-shell.client-shell .btn,
  .client-shell .client-topbar-logout,
  .client-shell .client-rail-link,
  .app-shell.client-shell .shipping-category-tab,
  .app-shell.client-shell tbody tr { transition-duration: 1ms !important; }
}

/* ==================================================================
   行距与线宽调整
   ------------------------------------------------------------------
   实机反馈：行间距加大、线条细一点。

   线宽：Retina 屏上 1px 的 CSS 边线会渲染成 2 个物理像素，看着偏粗。
        这里把表格内线、页头分隔线、规则条边线统一改成 0.5px —— 正好
        落在 1 个物理像素上，是真正"细一档"而不是只把颜色调浅。
        卡片外框保持 1px（外轮廓需要有分量），只把颜色调浅。

   行距：正文 1.6 → 1.8；表格单元格上下内距 9 → 15px（约 48px 行高）；
        表头 9 → 13px；表单字段间距 12 → 18px；控件 32 → 36px 高。
   ================================================================== */

.app-shell.client-shell {
  --c-line: #e9ecf2;
  --c-line-soft: #f2f4f8;
  --c-hair: 0.5px;
  line-height: 1.8;
}

/* ---------- 顶栏 / 面包屑 ---------- */
.client-topbar { height: 54px; border-bottom: var(--c-hair) solid var(--c-line); }
.client-crumb { height: 40px; padding: 0 20px; border-bottom: var(--c-hair) solid var(--c-line); }
.client-rail-link { padding: 15px 4px; gap: 7px; }

/* ---------- 内容与卡片 ---------- */
.app-shell.client-shell .content { padding: 20px 22px 48px; line-height: 1.8; }
.app-shell.client-shell .card,
.app-shell.client-shell .card-body { padding: 20px 22px; line-height: 1.8; }
.app-shell.client-shell .card + .card { margin-top: 16px; }

/* ---------- 页头 ---------- */
.app-shell.client-shell .page-head {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: var(--c-hair) solid var(--c-line);
}
.app-shell.client-shell .page-head h2 { line-height: 1.5; }
.app-shell.client-shell .page-head p { margin-top: 6px; line-height: 1.7; }

/* ---------- 表单 ---------- */
.app-shell.client-shell .form-grid { gap: 2px 24px; }
.app-shell.client-shell .field { margin: 0 0 18px; }
.app-shell.client-shell .field > label,
.app-shell.client-shell .field > span:first-child { padding-top: 10px; line-height: 1.6; }
.app-shell.client-shell .input,
.app-shell.client-shell .select {
  min-height: 36px; padding: 8px 11px; line-height: 1.7;
}
.app-shell.client-shell .textarea { min-height: 104px; line-height: 1.9; }
.app-shell.client-shell .form-actions {
  margin-top: 18px; padding-top: 18px;
  border-top: var(--c-hair) solid var(--c-line-soft);
}

/* ---------- 表格：行距加大 + 内部改为发丝线 ---------- */
.app-shell.client-shell table { border-collapse: separate; border-spacing: 0; }
.app-shell.client-shell thead th {
  padding: 13px 12px;
  border: 0;
  border-bottom: var(--c-hair) solid var(--c-line);
  line-height: 1.7;
  background: #f8f9fb;
}
.app-shell.client-shell tbody td {
  padding: 15px 12px;
  border: 0;
  border-bottom: var(--c-hair) solid var(--c-line-soft);
  line-height: 1.8;
}
/* 列间竖线同样用发丝线；只画右邻格子的左边，避免相邻两格各画一次成双线 */
.app-shell.client-shell thead th + th,
.app-shell.client-shell tbody td + td { box-shadow: inset var(--c-hair) 0 0 var(--c-line-soft); }
.app-shell.client-shell tbody tr:last-child td { border-bottom: 0; }

/* 表格外框：1px 保留但颜色调浅，并补上圆角 */
.app-shell.client-shell .desktop-order-table,
.app-shell.client-shell .user-orders-panel > table { border: 1px solid var(--c-line); border-radius: 3px; overflow: hidden; }

/* ---------- 规则提示条 / 合计栏 ---------- */
.app-shell.client-shell .client-rule-bar {
  margin: 0 0 18px; padding: 12px 15px;
  border: var(--c-hair) solid var(--c-warn-line);
  line-height: 1.9;
}
.app-shell.client-shell .client-total-bar {
  margin-top: 0; padding: 14px 16px;
  background: #fafbfc; border: 0;
  border-top: var(--c-hair) solid var(--c-line);
}

/* ---------- 首页 ---------- */
.app-shell.client-shell .shipping-tabs { margin-bottom: 18px; border-bottom: var(--c-hair) solid var(--c-line); }
.app-shell.client-shell .shipping-address-card { padding: 18px 20px; line-height: 1.9; }
.app-shell.client-shell .shipping-address-list { gap: 16px; }

/* 提交报单表单：原来被 .user-native-shell .order-form-card 限制在 760px，
   在宽屏上只占内容区一半，跟参考图的通栏卡片不一致。这里放开成全宽，
   并去掉内层 section 的重复内边距（否则会叠成两重留白）。 */
.app-shell.client-shell .order-form-card { width: 100%; max-width: none; margin: 0; }
.app-shell.client-shell .order-form-section { padding: 0; border-bottom: 0; }
.app-shell.client-shell .order-form-card .form-actions {
  margin: 0;
  padding: 18px 0 0;
  border-top: var(--c-hair) solid var(--c-line-soft);
}
.app-shell.client-shell .order-form-card .field:first-child { margin-top: 0; }
.app-shell.client-shell .order-form-card .hint { margin: 6px 0 0; color: var(--c-text-3); font-size: 12px; }
/* 收款信息 / 详情页同样放开 */
.app-shell.client-shell .payment-form-card,
.app-shell.client-shell .payment-fields-section { width: 100%; max-width: none; }
.app-shell.client-shell .payment-fields-section { padding: 0; border-bottom: 0; }

/* ==================================================================
   品牌区对齐参考图
   ------------------------------------------------------------------
   参考图的顶栏是「蓝色圆角方块（白色图标）+ 蓝色加粗品牌名」，
   之前我做成了「透明 logo 图 + 深色文字」，所以看着"差一点"。
   另外侧栏宽度按参考图量出来的 92px（原来 84px）。
   ================================================================== */
.client-body { grid-template-columns: 92px minmax(0, 1fr); }

.client-topbar-brand { gap: 11px; }
.client-topbar-brand strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .01em;
}
.client-topbar-mark {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--c-primary);
  border-radius: 6px;
}
.client-topbar-mark img {
  width: 19px; height: 19px;
  object-fit: contain;
  /* 品牌图本身是蓝色立体方块，放到蓝底上会糊在一起，转成白色单色 */
  filter: brightness(0) invert(1);
}

/* 侧栏导航项按参考图加大高度与图标尺寸 */
.client-rail-link { padding: 16px 4px; gap: 8px; font-size: 12.5px; }
.client-rail-icon { font-size: 19px; }

/* 表格线再淡一档：对照参考图，它的行线几乎是浅灰发丝 */
.app-shell.client-shell {
  --c-line: #ecEFf4;
  --c-line-soft: #f4f6f9;
}

/* ==================================================================
   我的报单：行高收紧 + 排序 / 分页 / 行内展开
   ------------------------------------------------------------------
   这四样是从参考图搬过来的「能力」，不是「长相」：
     · 行高 66 → 56px：比参考图（约 40px）松，比之前紧，一屏多放 2 行
     · 表头可点排序（成本 / 提交时间，同列再点反向）
     · 底部翻页条 + 每页条数
     · 行内展开箭头，就地看客户备注 / 打款凭证 / 更新时间
   ================================================================== */

/* ---------- 行高 ---------- */
.app-shell.client-shell tbody td {
  height: 56px;
  padding: 8px 12px;
  line-height: 1.55;
  vertical-align: middle;
}

/* ---------- 展开列 ---------- */
.app-shell.client-shell th.col-expand,
.app-shell.client-shell td.col-expand {
  width: 38px;
  padding: 0 4px 0 12px;
  text-align: center;
}
.app-shell.client-shell .expand-btn {
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--c-line); border-radius: 3px;
  background: #fff; color: var(--c-text-3);
  font: inherit; font-size: 14px; line-height: 1; cursor: pointer;
  transition: transform 160ms cubic-bezier(.2, 0, 0, 1), border-color 160ms, color 160ms, background-color 160ms;
}
.app-shell.client-shell .expand-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.app-shell.client-shell .expand-btn.is-open {
  transform: rotate(90deg);
  border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary-dark);
}

/* 展开出来的明细行 */
.app-shell.client-shell .order-expand-row > td {
  height: auto;
  padding: 4px 16px 18px 50px;
  background: #fafbfd;
  border-bottom: var(--c-hair) solid var(--c-line-soft);
}
.app-shell.client-shell .order-expand-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 28px;
  margin: 0 0 14px;
}
.app-shell.client-shell .order-expand-list > div { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.app-shell.client-shell .order-expand-list dt { flex: none; width: 68px; color: var(--c-text-3); font-size: 12.5px; }
.app-shell.client-shell .order-expand-list dd { margin: 0; min-width: 0; color: var(--c-text); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }

/* ---------- 可排序表头 ---------- */
.app-shell.client-shell th.is-sortable {
  cursor: pointer;
  user-select: none;
  transition: color 160ms cubic-bezier(.2, 0, 0, 1), background-color 160ms cubic-bezier(.2, 0, 0, 1);
}
.app-shell.client-shell th.is-sortable:hover { color: var(--c-primary); background: #f2f6fd; }
.app-shell.client-shell th.is-sorted { color: var(--c-primary); }
.app-shell.client-shell .sort-mark {
  display: inline-block; margin-left: 5px;
  font-size: 11px; opacity: .45;
}
.app-shell.client-shell .sort-mark.is-on { opacity: 1; color: var(--c-primary); }

/* ---------- 底部：合计 + 翻页 ---------- */
.app-shell.client-shell .client-total-bar { gap: 20px; }
.app-shell.client-shell .client-total-bar .is-page { color: var(--c-text-3); }
.app-shell.client-shell .pager-spacer { flex: 1 1 auto; }
.app-shell.client-shell .pager-size { display: inline-flex; align-items: center; gap: 6px; color: var(--c-text-3); white-space: nowrap; }
.app-shell.client-shell .select-mini {
  width: auto; min-height: 30px; height: 30px;
  padding: 0 6px; font-size: 12.5px;
}
.app-shell.client-shell .pager-nav { display: inline-flex; align-items: center; gap: 10px; }
.app-shell.client-shell .pager-num {
  min-width: 52px; text-align: center;
  color: var(--c-text-2); font-variant-numeric: tabular-nums;
}
.app-shell.client-shell .pager-nav .btn { height: 30px; min-height: 30px; padding: 0 13px; font-size: 12.5px; }
.app-shell.client-shell .pager-nav .btn:disabled { color: var(--c-text-3); opacity: .5; cursor: not-allowed; border-color: var(--c-line); }

/* 手机端：翻页与展开是电脑端的能力，窄屏保持卡片式不变 */
@media (max-width: 860px) {
  .app-shell.client-shell .client-total-bar .pager-size,
  .app-shell.client-shell .client-total-bar .pager-nav,
  .app-shell.client-shell .col-expand { display: none; }
}

/* ==================================================================
   去彩色文字
   ------------------------------------------------------------------
   要求：不要有彩色的字。颜色只允许出现在「背景 / 边框 / 色块」上，
   文字一律中性色（深墨或次级灰）。
   这样状态标签依然一眼可分（靠底色和边框），但读起来不再有彩色文字。
   ================================================================== */

/* 品牌名：蓝色 → 深墨 */
.client-topbar-brand strong { color: var(--c-text); }

/* 侧栏激活项：白底 + 深墨字 + 左侧深蓝竖条（颜色留在竖条上） */
.client-rail-link.active {
  background: #fff;
  color: var(--c-text);
  font-weight: 600;
  border-left-color: var(--c-primary-deep);
}

/* 金额：琥珀色 → 深墨（保留加粗 / 右对齐 / 等宽） */
.app-shell.client-shell .money,
.app-shell.client-shell .order-amount-cell { color: var(--c-text); }

/* 行内链接：蓝色 → 深墨 + 下划线提示可点 */
.app-shell.client-shell .table-detail-link {
  color: var(--c-text);
  font-weight: 600;
  border-bottom: 1px solid var(--c-text-3);
  padding-bottom: 1px;
}
.app-shell.client-shell .table-detail-link:hover { border-bottom-color: var(--c-text); }

/* 状态标签：去掉彩色文字，颜色只留在底色和边框上 */
.app-shell.client-shell .badge-yellow { color: var(--c-text); }
.app-shell.client-shell .badge-green { color: var(--c-text); }
.app-shell.client-shell .badge-red { color: var(--c-text); }
.app-shell.client-shell .badge-blue { color: var(--c-text); }
.app-shell.client-shell .badge-gray { color: var(--c-text-2); }

/* 地址分类标签：蓝字 → 深墨，底色保留 */
.app-shell.client-shell .shipping-address-category { color: var(--c-text); }

/* 首页分类 tab 激活态：蓝字 → 深墨，下划线保留 */
.app-shell.client-shell .shipping-category-tab.active { color: var(--c-text); }

/* 可排序表头：蓝字 → 深墨；悬停只改底色不改字色 */
.app-shell.client-shell th.is-sortable:hover { color: var(--c-text); background: #f2f6fd; }
.app-shell.client-shell th.is-sorted { color: var(--c-text); }
.app-shell.client-shell .sort-mark.is-on { opacity: 1; color: var(--c-text); }
.app-shell.client-shell .sort-mark { color: var(--c-text-3); }

/* 展开按钮：蓝字 → 深墨，颜色留在边框和底面上 */
.app-shell.client-shell .expand-btn:hover { border-color: var(--c-primary); color: var(--c-text); }
.app-shell.client-shell .expand-btn.is-open {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-text);
}

/* 规则提示条：琥珀文字 → 深墨，底色保留 */
.app-shell.client-shell .client-rule-bar { color: var(--c-text); }
.app-shell.client-shell .client-rule-bar b { color: var(--c-text); }
.client-rule-icon { border-color: currentColor; }

/* 次级按钮悬停：只改边框不改字色 */
.app-shell.client-shell .btn:hover { border-color: var(--c-primary); color: var(--c-text); }
.client-topbar-logout:hover { border-color: var(--c-primary); color: var(--c-text); }

/* 按钮内的白字保留（那是蓝底上的反白，不是彩色文字） */

/* 收款信息页的收款码操作按钮：颜色来自旧样式层（#2563eb / #c73737），
   这里统一改成深墨文字，颜色只留在边框上（删除仍用红框提示危险性）。 */
.app-shell.client-shell .payment-qr-action {
  color: var(--c-text);
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: #fff;
  transition: border-color 160ms cubic-bezier(.2, 0, 0, 1), background-color 160ms cubic-bezier(.2, 0, 0, 1);
}
.app-shell.client-shell .payment-qr-action:hover { border-color: var(--c-primary); color: var(--c-text); }
.app-shell.client-shell .payment-qr-action[data-remove-qr],
.app-shell.client-shell .payment-qr-action.is-danger { border-color: #e5c3c0; }
.app-shell.client-shell .payment-qr-action[data-remove-qr]:hover,
.app-shell.client-shell .payment-qr-action.is-danger:hover { border-color: #c73737; background: #fdf6f5; color: var(--c-text); }
/* 收款状态等其它可能带色的文字一并中性化 */
.app-shell.client-shell .payment-ready,
.app-shell.client-shell .payment-missing,
.app-shell.client-shell .hint { color: var(--c-text-2); }

/* 手机端底部 tab：激活态原来是蓝色文字，一并改成深墨；
   选中状态靠「浅蓝底 + 顶部一条短竖线」表达，颜色不落在字上。 */
.app-shell.client-shell .mobile-tab.active,
.app-shell.client-shell .mobile-tab.pending { color: var(--c-text); }
.app-shell.client-shell .mobile-tab { color: var(--c-text-2); }
.app-shell.client-shell .mobile-tab.active { background: var(--c-primary-soft); }
.app-shell.client-shell .mobile-tab em { font-style: normal; }

/* 手机端底部 tab：旧层里有多条 .user-native-shell .mobile-tab 规则互相覆盖，
   这里用更高优先级（多一层 .mobile-tabbar）明确压掉彩色文字。 */
.app-shell.client-shell .mobile-tabbar .mobile-tab { color: var(--c-text-2); }
.app-shell.client-shell .mobile-tabbar .mobile-tab.active,
.app-shell.client-shell .mobile-tabbar .mobile-tab.pending {
  color: var(--c-text);
  background: var(--c-primary-soft);
}
.app-shell.client-shell .mobile-tabbar .mobile-tab span { color: inherit; }
.app-shell.client-shell .mobile-tabbar .mobile-tab em { color: inherit; }

/* 手机端底部 tab 的蓝色是「继承」下来的（匹配规则为空但计算值仍是蓝），
   所以在容器上把颜色也定住，并对 tab 自身加 !important，
   彻底断掉旧层里多层 .mobile-tab 规则与继承链的影响。 */
.app-shell.client-shell .mobile-tabbar { color: var(--c-text-2) !important; }
.app-shell.client-shell .mobile-tabbar .mobile-tab,
.app-shell.client-shell .mobile-tabbar .mobile-tab span,
.app-shell.client-shell .mobile-tabbar .mobile-tab em { color: var(--c-text-2) !important; }
.app-shell.client-shell .mobile-tabbar .mobile-tab.active,
.app-shell.client-shell .mobile-tabbar .mobile-tab.active span,
.app-shell.client-shell .mobile-tabbar .mobile-tab.active em,
.app-shell.client-shell .mobile-tabbar .mobile-tab.pending,
.app-shell.client-shell .mobile-tabbar .mobile-tab.pending span,
.app-shell.client-shell .mobile-tabbar .mobile-tab.pending em { color: var(--c-text) !important; }

/* ==================================================================
   手机端 1:1 对齐参考图
   ------------------------------------------------------------------
   参考图手机端（iPhone 16 Pro，1206×2622 @3x）实测：
     · 正文字号 ≈ 13~14px（和我们现在一样）
     · 行间距 ≈ 48~49px —— 舒服感来自行距，不是字号
     · 标签灰、值深，值统一从 1/3 处开始对齐
     · 分隔线 1 个物理像素、极浅
   结构差异（这几条才是要改的）：
     · 导航：底部图标 tab → 顶部横向药丸 tab
     · 表单：标签在上 → 标签左 / 值右
     · 主操作：内容流末尾 → 底部固定条（拇指区）
     · 列表统计：内容流里 → 底部固定条
     · 列表卡片：整卡跳转 → 卡片内「详情 ⌄」展开
   ================================================================== */

/* ---------- 顶部横向药丸 tab（手机端） ---------- */
.client-tabs {
  display: none;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: var(--c-hair) solid var(--c-line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.client-tabs::-webkit-scrollbar { display: none; }
.client-tab {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #f2f4f7;
  color: var(--c-text-2);
  font: inherit;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(.2, 0, 0, 1), color 160ms cubic-bezier(.2, 0, 0, 1);
}
.client-tab.active { background: var(--c-primary); color: #fff; font-weight: 600; }

@media (max-width: 860px) {
  .app-shell.client-shell .client-tabs { display: flex; }
  .app-shell.client-shell .client-topbar { position: sticky; top: 0; z-index: 20; }
  .app-shell.client-shell .client-tabs { position: sticky; top: 54px; z-index: 19; }

  /* ---------- 面包屑：参考图里是「☰ 当前位置：xxx」 ---------- */
  .app-shell.client-shell .client-crumb {
    display: flex;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border-bottom: var(--c-hair) solid var(--c-line);
    color: var(--c-text-2);
    font-size: 13.5px;
  }

  /* ---------- 页面标题：参考图没有大标题，直接小节标题 ---------- */
  .app-shell.client-shell .content { padding: 14px 14px 8px; }
  .app-shell.client-shell .page-head {
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: var(--c-hair) solid var(--c-line);
  }
  .app-shell.client-shell .page-head h2 { font-size: 16px; font-weight: 700; line-height: 1.4; }
  .app-shell.client-shell .page-head p { margin-top: 3px; font-size: 12.5px; color: var(--c-text-3); }

  /* ---------- 表单：标签左 / 值右，行距放开 ---------- */
  .app-shell.client-shell .field {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 0 16px;
  }
  .app-shell.client-shell .field.full { grid-column: auto; }
  .app-shell.client-shell .field > label,
  .app-shell.client-shell .field > span:first-child {
    text-align: left;
    padding-top: 9px;
    font-size: 13.5px;
    line-height: 1.5;
  }
  .app-shell.client-shell .input,
  .app-shell.client-shell .select { min-height: 40px; font-size: 14px; }
  .app-shell.client-shell .textarea { min-height: 132px; font-size: 14px; line-height: 1.9; }

  /* ---------- 底部固定操作条（拇指区） ---------- */
  .app-shell.client-shell .form-actions {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: var(--c-hair) solid var(--c-line);
  }
  .app-shell.client-shell .form-actions .btn {
    flex: 1 1 auto;
    min-height: 46px;
    border-radius: 6px;
    font-size: 15px;
  }
  .app-shell.client-shell .form-actions .btn-primary { flex: 1.6 1 auto; }
  /* 内容区给固定底栏让位 */
  .app-shell.client-shell .content { padding-bottom: 96px; }

  /* ---------- 列表：底部固定统计条 ---------- */
  .app-shell.client-shell .client-total-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 13px 14px calc(13px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: var(--c-hair) solid var(--c-line);
    font-size: 13px;
  }
  .app-shell.client-shell .client-total-bar .is-amount { margin-left: auto; }
  .app-shell.client-shell .user-orders-page .content,
  .app-shell.client-shell .user-orders-page { padding-bottom: 96px; }

  /* ---------- 列表卡片：行距与「详情 ⌄」 ---------- */
  .app-shell.client-shell .mobile-order-list { gap: 0; }
  .app-shell.client-shell .user-order-card {
    padding: 0;
    border: 0;
    border-bottom: var(--c-hair) solid var(--c-line);
    border-radius: 0;
    background: #fff;
  }
  .app-shell.client-shell .user-order-card-body { padding: 16px 14px 12px; }
  .app-shell.client-shell .user-order-card-head { display: flex; align-items: baseline; gap: 12px; }
  .app-shell.client-shell .user-order-card-head strong { font-size: 15px; font-weight: 700; color: var(--c-text); }
  .app-shell.client-shell .user-order-card-head span { margin-left: auto; flex: none; color: var(--c-text-2); font-size: 13.5px; }
  .app-shell.client-shell .user-order-card-sub { display: flex; gap: 10px; margin-top: 10px; }
  .app-shell.client-shell .card-expand {
    display: flex; align-items: center; width: 100%;
    padding: 12px 14px;
    border: 0; border-top: var(--c-hair) solid var(--c-line-soft);
    background: #fff; color: var(--c-text-2);
    font: inherit; font-size: 13.5px; text-align: left; cursor: pointer;
  }
  .app-shell.client-shell .card-expand-mark { margin-left: auto; transition: transform 180ms cubic-bezier(.2, 0, 0, 1); }
  .app-shell.client-shell .card-expand.is-open .card-expand-mark { transform: rotate(180deg); }
  .app-shell.client-shell .card-expand-body { padding: 4px 14px 18px; background: #fafbfd; }
  .app-shell.client-shell .card-expand-body .order-expand-list { grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
  .app-shell.client-shell .card-expand-body .order-expand-list dt { width: 70px; }
}

/* 修：手机端 .form-grid 仍是两列，把字段压成了 90px 宽、备注框只剩 60px。
   参考图的表单是「标签左 / 值右」的单列行式，这里强制单列。 */
@media (max-width: 860px) {
  .app-shell.client-shell .form-grid,
  .app-shell.client-shell .order-form-card .form-grid,
  .app-shell.client-shell .admin-filter-card .filter-grid,
  .app-shell.client-shell .customer-filter .filter-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .app-shell.client-shell .field { width: 100%; }
  .app-shell.client-shell .field .input,
  .app-shell.client-shell .field .select,
  .app-shell.client-shell .field .textarea { width: 100%; min-width: 0; }
  /* 参考图里「备注」那类长文本域的标签也是左对齐顶到第一行 */
  .app-shell.client-shell .field > label { align-self: start; }
  /* 底部固定操作条出现时，表单自身不再重复留白 */
  .app-shell.client-shell .order-form-card .form-actions { margin-top: 0; }
}

/* ==================================================================
   电脑端 1:1 收尾
   ------------------------------------------------------------------
   参考图电脑端实测：表格正文 12px、行高 38~40px、带「序号」列。
   我们现在 13px，行高按 13px 配 50px（参考图 40px 是配 12px 小字的，
   13px 压到 40px 会挤，50px 是兼顾值）。
   ================================================================== */

.app-shell.client-shell tbody td { height: 50px; padding: 8px 12px; }

/* 序号列：窄、居中、灰 */
.app-shell.client-shell th.col-index,
.app-shell.client-shell td.col-index {
  width: 56px;
  padding-left: 4px;
  text-align: center;
  color: var(--c-text-3);
  font-variant-numeric: tabular-nums;
}
.app-shell.client-shell td.col-index { font-size: 12.5px; }

/* 展开行也跟着把缩进对齐到序号列之后 */
.app-shell.client-shell .order-expand-row > td { padding-left: 62px; }

/* 小节标题：参考图里比我们的 h2 小一档，且右侧常带一个操作 */
.app-shell.client-shell .page-head h2 { font-size: 16px; font-weight: 700; }
.app-shell.client-shell .page-head p { font-size: 12.5px; }

/* 手机端隐藏序号列（参考图手机端也没有序号，用的是「1. 单号」内联编号） */
@media (max-width: 860px) {
  .app-shell.client-shell .col-index { display: none; }
}

/* ==================================================================
   去"雾"——把工作台的对比度找回来
   ------------------------------------------------------------------
   实测对比（参考图 vs 我们）：
     表格正文   参考 #2f2f2f / 13.32:1   |  我们 #16181d / 17.69:1  ✅
     表格线     参考 #eceaf4 /  1.19:1   |  我们 #fefeff /  1.01:1  ❌ 等于没有
     表格底色   参考 纯白                |  我们 #f1f3f7 灰底        ❌
     次要文字   参考 #2f2f2f             |  我们 #97a0b0 太浅        ❌

   雾蒙蒙 = 灰底 + 看不见的线 + 太浅的次要文字，三者叠加。
   之前我把线一路调浅到 0.5px + #f4f6f9，再加上表格没有白底，
   整张表就"飘"在灰雾里，完全没有工作台该有的骨架。

   修法：表格给白底；线保持 0.5px（细）但颜色回到能看见；
   次要文字加深到可读区间。
   ================================================================== */

.app-shell.client-shell {
  --c-line: #dde3ec;        /* 原 #eceff4 —— 太浅，量出来等于白 */
  --c-line-soft: #e9edf3;   /* 原 #f4f6f9 —— 1.04:1，肉眼不可见 */
  --c-text-2: #4b5563;      /* 次要文字加深 */
  --c-text-3: #6b7280;      /* 三级文字加深（原 #97a0b0，白底仅 2.9:1） */
}

/* 表格（含外框）必须是白底 —— 这是"工作台"的纸面 */
.app-shell.client-shell .desktop-order-table,
.app-shell.client-shell .user-orders-panel > table,
.app-shell.client-shell .user-orders-panel > .desktop-order-table > table,
.app-shell.client-shell table { background: #fff; }
.app-shell.client-shell .desktop-order-table { background: #fff; }

/* 表头：浅灰底 + 深一点的文字，与内容拉开一层 */
.app-shell.client-shell thead th {
  background: #f5f7fa;
  color: #3f4855;
  border-bottom: 0.5px solid var(--c-line);
}
/* 行线：0.5px 保持纤细，但颜色要能看见 */
.app-shell.client-shell tbody td {
  border-bottom: 0.5px solid var(--c-line-soft);
}
/* 列间竖线同样要有存在感 */
.app-shell.client-shell thead th + th,
.app-shell.client-shell tbody td + td { box-shadow: inset 0.5px 0 0 var(--c-line-soft); }

/* 行悬停给一个明确的反馈，让眼睛有落点 */
.app-shell.client-shell tbody tr:hover td { background: #f2f7fe; }

/* 分类/资料类卡片同步加白底与可见描边 */
.app-shell.client-shell .shipping-address-card,
.app-shell.client-shell .user-order-card,
.app-shell.client-shell .card,
.app-shell.client-shell .card-body { background: #fff; }
.app-shell.client-shell .shipping-address-card { border: 1px solid var(--c-line); }

/* 去雾 第二轮：同倍率对照参考图后，还差两处
     1) 列间竖线太弱 —— 参考图的列分隔看得见，我们的几乎融进白底
     2) 行高 50px 偏松 —— 参考图约 40px，松弛感也是"不像工作台"的一部分
   把列线换成和行线同一档的深色并加宽到 1px，行高收到 44px
   （参考图 40px 是配 12px 字的，我们 13px 用 44px 既紧又不挤）。 */

.app-shell.client-shell tbody td { height: 44px; padding: 6px 12px; }

/* 列分隔：1px + 与行线同色，形成真正的表格骨架 */
.app-shell.client-shell thead th + th,
.app-shell.client-shell tbody td + td { box-shadow: inset 1px 0 0 var(--c-line); }

/* 行线也统一到同一档，避免横竖深浅不一 */
.app-shell.client-shell tbody td { border-bottom: 1px solid var(--c-line-soft); }
.app-shell.client-shell thead th { border-bottom: 1px solid var(--c-line); }

/* 表格外框：给一圈明确边界，让"纸面"有形状 */
.app-shell.client-shell .desktop-order-table {
  border: 1px solid var(--c-line);
  border-radius: 3px;
  overflow: hidden;
}

/* 表头文字再压深一点，和内容拉开层级 */
.app-shell.client-shell thead th { color: #333c4a; font-weight: 600; }

/* 序号列：参考图里是深灰而非浅灰 */
.app-shell.client-shell td.col-index { color: var(--c-text-2); }

/* ==================================================================
   去"AI 感"——把字重和边框降下来
   ------------------------------------------------------------------
   实测同倍率对照后的结论：AI 感的真正来源不是线条本身，而是
     1) 满屏加粗：表头 600、单号 600、金额 600、查看详情 600
        —— 参考图几乎全是常规字重，靠颜色而不是字重做层级
     2) 满屏边框：表格外框 + 行列线 + 表头底边 + 展开按钮方框 + 标签底框
     3) 表头文字过深（#333c4a），参考图是偏灰的
     4) 线条比参考图更深（参考图 #ececec，我们 #dde3ec）

   参考图的做法：线和字都退一步，让"内容"站出来。
   ================================================================== */

.app-shell.client-shell {
  --c-line: #e7eaf0;        /* 参考图实测 ≈ #ececec，取中间值 */
  --c-line-soft: #eef1f5;
}

/* ---------- 1. 字重全面降一档 ---------- */
.app-shell.client-shell thead th {
  color: #5a6273;
  font-weight: 500;
  background: #f7f8fa;
}
.app-shell.client-shell .order-number-cell { font-weight: 400; }
.app-shell.client-shell .money,
.app-shell.client-shell .order-amount-cell { font-weight: 500; }
.app-shell.client-shell .table-detail-link {
  font-weight: 400;
  border-bottom: 0;
  color: var(--c-text-2);
}
.app-shell.client-shell .table-detail-link:hover { color: var(--c-text); border-bottom: 1px solid var(--c-text-3); }
.app-shell.client-shell .badge { font-weight: 400; }
.app-shell.client-shell .page-head h2 { font-weight: 600; font-size: 15.5px; }
.app-shell.client-shell .user-order-card-head strong { font-weight: 600; }
.app-shell.client-shell .pager-num { font-weight: 400; }
.app-shell.client-shell td.col-index { font-weight: 400; }
/* 表头里的排序箭头也跟着淡一点 */
.app-shell.client-shell .sort-mark { opacity: .5; }

/* ---------- 2. 减框：展开按钮去掉方框，只留箭头 ---------- */
.app-shell.client-shell .expand-btn {
  border: 0;
  background: transparent;
  color: var(--c-text-3);
  font-size: 15px;
}
.app-shell.client-shell .expand-btn:hover { background: var(--c-primary-soft); color: var(--c-text-2); }
.app-shell.client-shell .expand-btn.is-open {
  border: 0;
  background: transparent;
  color: var(--c-text-2);
}

/* ---------- 3. 表格外框：极浅，只作为边界提示 ---------- */
.app-shell.client-shell .desktop-order-table {
  border: 1px solid var(--c-line-soft);
  border-radius: 3px;
}

/* ---------- 4. 列线比行线更淡一档，避免"网格感"过强 ---------- */
.app-shell.client-shell thead th + th,
.app-shell.client-shell tbody td + td { box-shadow: inset 1px 0 0 var(--c-line-soft); }
.app-shell.client-shell tbody td { border-bottom: 1px solid var(--c-line-soft); }

/* ---------- 5. 状态标签：去掉描边，只留极浅底色 ---------- */
.app-shell.client-shell .badge { border-color: transparent; }
.app-shell.client-shell .badge-gray { background: #f4f5f7; }

/* ---------- 6. 手机端同步降低字重 ---------- */
@media (max-width: 860px) {
  .app-shell.client-shell .page-head h2 { font-weight: 600; }
  .app-shell.client-shell .client-tab.active { font-weight: 500; }
  .app-shell.client-shell .user-order-card-head strong { font-weight: 600; }
}

/* ==================================================================
   逐项几何对齐参考图（实测数据，CSS 单位）
   ------------------------------------------------------------------
   参考图实测（d-orders.jpg，2x 截图 ÷2）：
     表格上框      y=426
     表头底边      y=464    → 表头高 38px
     数据行距      38.5px
     表头文字 ink  9px
     数据行 ink    10.5px   → 字号约 12px
     行线         1px，色 #efeef1（亮度 238~240）

   我们改前：
     表头高 45.7px  ← 高 20%
     数据行高 44px  ← 高 14%
     表头字号 11px  ← 比正文 12.5px 还小，层级反了

   行高偏高是"还是不对劲"的主因：密度不够，看着就散。
   ================================================================== */

/* 表头：38px、字号与正文同级、垂直居中 */
.app-shell.client-shell thead th {
  height: 38px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  vertical-align: middle;
}

/* 数据行：38px */
.app-shell.client-shell tbody td {
  height: 38px;
  padding: 0 12px;
  font-size: 12.5px;
  vertical-align: middle;
}

/* 单元格里可能包着 span/badge，把它们也压到不撑高 */
.app-shell.client-shell tbody td > * { vertical-align: middle; }
.app-shell.client-shell .badge { padding: 2px 7px; line-height: 1.45; }

/* 展开/序号这类窄列的内距单独收一下，别把 38px 撑开 */
.app-shell.client-shell th.col-expand,
.app-shell.client-shell td.col-expand { padding: 0 4px 0 12px; }
.app-shell.client-shell th.col-index,
.app-shell.client-shell td.col-index { padding: 0 4px; }

/* 行线色对齐参考图实测（亮度 238~240） */
.app-shell.client-shell tbody td { border-bottom: 1px solid #edeff3; }
.app-shell.client-shell thead th { border-bottom: 1px solid #e9ecf1; }

/* ==================================================================
   逐项对齐（第二轮）—— 两个硬差异
   ------------------------------------------------------------------
   1) 列线与行线的深浅关系搞反了
      参考图实测：列线亮度 ~232（#e8e7ea~#eeeeee），
                  行线亮度 ~238（#ececee~#f0eff2）
                  → 列线比行线【深】
      我改前：    列线 #eef1f5（亮度 240.6）比行线 #edeff3（238.9）还浅
                  → 造成"列分隔看不见"，整张表读不出列边界
   2) 正文字号偏大约 8%
      参考图每个字符宽 6.4px、ink 高 10.5px → 字号 12px
      我们 12.5px，每个字符 6.9px
   ================================================================== */

.app-shell.client-shell {
  --c-line-col: #e9ecf1;   /* 列线，亮度 235.7，比行线深 */
  --c-line-row: #eef0f4;   /* 行线，亮度 238.9 */
}

/* 列线：inset 1px，用更深的那一档 */
.app-shell.client-shell thead th + th,
.app-shell.client-shell tbody td + td { box-shadow: inset 1px 0 0 var(--c-line-col); }

/* 行线：保持浅一档 */
.app-shell.client-shell tbody td { border-bottom: 1px solid var(--c-line-row); }
.app-shell.client-shell thead th { border-bottom: 1px solid #e6e9ee; }

/* 字号对齐参考图 12px */
.app-shell.client-shell tbody td { font-size: 12px; }
.app-shell.client-shell thead th { font-size: 12px; }
.app-shell.client-shell td.col-index { font-size: 12px; }

/* 金额与日期用等宽数字，纵向能对齐（参考图的日期列非常整齐） */
.app-shell.client-shell .order-amount-cell,
.app-shell.client-shell .money,
.app-shell.client-shell tbody td:last-child,
.app-shell.client-shell .pager-num { font-variant-numeric: tabular-nums; }

/* ==================================================================
   导航：去 AI 感
   ------------------------------------------------------------------
   问题：
     · 图标用的是 Unicode 字符（⌂ ✎ ▤ ▣），笔画粗细不一、▣ 是实心方块
       —— 拼凑感很重，一眼 AI
     · 图标 19px 但文字只有 12.5px，图标比字大太多，块头很胖
     · 导航项高 81.5px，很占地方
     · 激活态除了白色整块，还加了一条 3px 蓝竖条，重复表达
   改法：统一细线图标 + 字号加大 + 收掉多余装饰
   ================================================================== */

/* ---------- 图标：细线、尺寸和文字协调 ---------- */
.client-rail-icon {
  display: grid;
  place-items: center;
  font-size: 0;          /* 关掉旧的字符图标字号，避免撑高 */
  line-height: 0;
}
.client-rail-icon .nav-svg { width: 20px; height: 20px; opacity: .92; }

/* ---------- 导航项：收掉高度，字号加大 ---------- */
.client-rail-link {
  gap: 6px;
  padding: 12px 4px;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255, 255, 255, .88);
}
.client-rail-link.active {
  background: #fff;
  color: var(--c-text);
  font-weight: 500;
  border-left-color: transparent;   /* 去掉重复的 3px 蓝竖条 */
}
.client-rail-link.active .nav-svg { opacity: 1; }
.client-rail-link:hover:not(.active) { background: rgba(255, 255, 255, .10); }

/* ---------- 顶栏：品牌字号与退出按钮 ---------- */
.client-topbar-brand strong { font-size: 15.5px; }
.client-topbar-logout { font-size: 13px; }
.client-topbar-user { font-size: 12.5px; }

/* ---------- 面包屑：字号加大 ---------- */
.client-crumb { font-size: 13px; }

/* ---------- 手机端 tab：字号加大、块变轻 ---------- */
.client-tab {
  height: 34px;
  padding: 0 15px;
  border-radius: 5px;
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-text-2);
  font-size: 14px;
}
.client-tab.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  font-weight: 400;
}
@media (max-width: 860px) {
  .app-shell.client-shell .client-tabs { gap: 8px; padding: 10px 12px; }
  .app-shell.client-shell .client-tabs { border-bottom: var(--c-hair) solid var(--c-line); }
}

/* 手机端 tab 再调：描边框换成极浅底色。
   描边本身就是"框"，参考图的 tab 是浅灰填充（无描边）+ 蓝底白字激活态。
   底色取比原来(#f2f4f7)更浅一档，弱化块感。 */
.client-tab {
  border: 0;
  background: #f5f6f9;
  border-radius: 5px;
  font-size: 14px;
}
.client-tab.active {
  background: var(--c-primary);
  color: #fff;
}

/* ==================================================================
   按钮统一化
   ------------------------------------------------------------------
   参考图实测（d-report.jpg 提交按钮）：61.5 × 30.5 CSS，
   圆角约 4px，文字常规字重，无阴影，次要按钮描边是中灰（明显可见）。

   我们改前的问题：
     · 圆角不统一：大多 3px，提交报单却是 10px
     · 字重失控：收款码按钮 650、主按钮 600、分类 tab 600
     · 高度不统一：30 / 32 / 48px
     · 主按钮带阴影，其它没有 —— 同类元素表现不一致最像"随手生成"
     · 次要按钮描边 #e7eaf0（亮度 233）几乎看不见，按钮"浮"在白底上
   ================================================================== */

.app-shell.client-shell {
  --c-btn-line: #c5cad3;    /* 次要按钮描边：参考图是明显可见的中灰 */
  --c-btn-h: 32px;
}

/* ---------- 次要按钮（含退出、翻页、收款码操作、复制地址）---------- */
.app-shell.client-shell .btn,
.app-shell.client-shell .btn-secondary,
.app-shell.client-shell .payment-qr-action,
.client-shell .client-topbar-logout {
  height: var(--c-btn-h);
  min-height: var(--c-btn-h);
  padding: 0 14px;
  border: 1px solid var(--c-btn-line);
  border-radius: 3px;
  background: #fff;
  color: var(--c-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}
.app-shell.client-shell .btn:hover,
.app-shell.client-shell .payment-qr-action:hover,
.client-shell .client-topbar-logout:hover {
  border-color: var(--c-primary);
  background: #fff;
  color: var(--c-text);
}

/* 小号按钮（翻页）比标准再矮一点，但同一套视觉 */
.app-shell.client-shell .btn-sm { height: 30px; min-height: 30px; padding: 0 12px; font-size: 12.5px; }

/* ---------- 主按钮 ---------- */
.app-shell.client-shell .btn-primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  font-weight: 400;
  box-shadow: none;
}
.app-shell.client-shell .btn-primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  color: #fff;
}

/* 停用态：只降透明度，不改结构 */
.app-shell.client-shell .btn:disabled,
.app-shell.client-shell .btn[disabled] {
  border-color: var(--c-line);
  color: var(--c-text-3);
  background: #fafbfc;
  cursor: not-allowed;
  opacity: 1;
}

/* 删除类：底色留白，危险只用边框表达 */
.app-shell.client-shell .payment-qr-action[data-remove-qr]:hover,
.app-shell.client-shell .payment-qr-action.is-danger:hover { border-color: #c73737; background: #fdf6f5; }

/* ---------- 提交报单的主按钮：桌面端收到 32px（原先 48px）---------- */
.app-shell.client-shell .order-form-card .form-actions .btn,
.app-shell.client-shell .form-actions .btn {
  height: var(--c-btn-h);
  min-height: var(--c-btn-h);
  padding: 0 22px;
  font-size: 13px;
  font-weight: 400;
  border-radius: 3px;
}
/* 手机端仍然给足触碰高度，但别再是 48px 的胖块 */
@media (max-width: 860px) {
  .app-shell.client-shell .form-actions .btn,
  .app-shell.client-shell .order-form-card .form-actions .btn {
    height: 44px;
    min-height: 44px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
  }
}

/* ---------- 首页分类 tab：去掉加粗 ---------- */
.app-shell.client-shell .shipping-category-tab,
.app-shell.client-shell .shipping-category-tab.active { font-weight: 400; }
.app-shell.client-shell .shipping-category-tab.active { color: var(--c-text); }

/* ---------- 表头排序：可点整格，不动字重 ---------- */
.app-shell.client-shell th.is-sortable { font-weight: 500; }
.app-shell.client-shell th.is-sorted { font-weight: 500; }

/* ---------- 行内「查看详情」：做成小按钮而不是裸文字 ---------- */
.app-shell.client-shell .table-detail-link {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: #fff;
  color: var(--c-text-2);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
.app-shell.client-shell .table-detail-link:hover { border-color: var(--c-primary); color: var(--c-text); }

/* ---------- 展开箭头：给一个安静的方形触碰区 ---------- */
.app-shell.client-shell .expand-btn {
  width: 24px; height: 24px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--c-text-3);
  font-size: 14px;
  box-shadow: none;
}
.app-shell.client-shell .expand-btn:hover { background: #f1f4f8; color: var(--c-text-2); }
.app-shell.client-shell .expand-btn.is-open { background: #eef3fb; color: var(--c-text); }

/* ---------- 下拉与输入框：和按钮同一套描边 ---------- */
.app-shell.client-shell .select-mini { height: 30px; min-height: 30px; border-color: var(--c-btn-line); font-size: 12.5px; }

/* 行内「查看详情」的描边与其它按钮统一（原来用的是 --c-line，#e7eaf0 偏浅） */
.app-shell.client-shell .table-detail-link { border-color: var(--c-btn-line); }
.app-shell.client-shell .table-detail-link:hover { border-color: var(--c-primary); }
/* 提交报单主按钮不要撑成 150px 的胖块 */
.app-shell.client-shell .order-form-card .form-actions .btn { min-width: 0; }

/* ==================================================================
   对齐参考图最后一层：表头对比度 + 金额语义色
   ------------------------------------------------------------------
   参考图实测（2612×1605 @2x，换算 CSS）：
     表头文字   #010101  纯黑        ← 我做成了 #5a6273 浅灰，反了
     货款金额   #5c16b0  紫
     收款金额   #ee971a  琥珀
     物流单号   #204ebc  蓝 + 下划线
     正文商品   #3d3d3d  深灰（不是纯黑）
     行高 38.5px / 字号 12px / 完整网格

   "舒服"的一半来自颜色：金额用语义色，眼睛能直接扫到钱；
   另一半来自表头够黑 —— 表头是列的标题，必须比正文重。

   说明：之前你要求"不要有彩色的字"，我据此做了全中性。
   但参考图本身是用了这三种语义色的（仅限金额与单号，不是满屏），
   这里按 1:1 加回来。若想回到全中性，删掉下面 .money/.order-amount-cell/
   .order-number-cell 三组规则即可。
   ================================================================== */

.app-shell.client-shell {
  --c-amount: #c07d10;      /* 金额：参考图 #ee971a 在白底上对比度仅 2.3:1，
                               压深一档到 4.2:1，保住"暖金色"观感又可读 */
  --c-link: #204ebc;        /* 单号链接：参考图原色 */
}

/* ---------- 表头：近黑，比正文重 ---------- */
.app-shell.client-shell thead th {
  color: #1a1a1a;
  font-weight: 500;
  background: #f7f8fa;
}
.app-shell.client-shell thead th.is-sortable:hover { color: #1a1a1a; background: #eef1f6; }
.app-shell.client-shell thead th.is-sorted { color: #1a1a1a; }
.app-shell.client-shell .sort-mark { color: #9aa1ad; }
.app-shell.client-shell .sort-mark.is-on { color: #1a1a1a; }

/* ---------- 物流单号：蓝色链接（参考图带下划线） ---------- */
.app-shell.client-shell .order-number-cell {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(32, 78, 188, .45);
}
.app-shell.client-shell tbody tr:hover .order-number-cell { text-decoration-color: var(--c-link); }
/* 手机端卡片里的单号同步 */
.app-shell.client-shell .user-order-card-head strong {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(32, 78, 188, .45);
}

/* ---------- 金额：暖金色，只落在金额上 ---------- */
.app-shell.client-shell .money,
.app-shell.client-shell .order-amount-cell { color: var(--c-amount); font-weight: 500; }
/* 合计栏与分页里的金额同步 */
.app-shell.client-shell .client-total-bar .is-amount b { color: var(--c-amount); }

/* ---------- 正文回到深灰而不是纯黑（参考图 #3d3d3d） ---------- */
.app-shell.client-shell tbody td { color: #33383f; }
.app-shell.client-shell td.col-index { color: #6b7280; }
.app-shell.client-shell .order-note-cell { color: #4b5563; }
/* 单号与金额在上面单独着色，这里保证不被覆盖 */
.app-shell.client-shell tbody td.order-number-cell { color: var(--c-link); }
.app-shell.client-shell tbody td.order-amount-cell { color: var(--c-amount); }

/* ---------- 手机端卡片同步 ---------- */
@media (max-width: 860px) {
  .app-shell.client-shell .user-order-card-body .user-order-card-head strong { color: var(--c-link); }
  .app-shell.client-shell .card-expand-body .order-expand-list dd { color: #33383f; }
}

/* ==================================================================
   手机端布局修复
   ------------------------------------------------------------------
   根因：这条早期规则
     @media (max-width:860px){ .client-topbar{display:none} }
   是"手机端保持原有布局、只隐藏新加的电脑端结构"时期写的。
   后来手机端改成了「品牌条 + 顶部 tab」，但这条没删 —— 结果：
     · 手机上完全没有品牌条（没 logo、没"退出"）
     · 顶部留出一块空白
     · .client-tabs 的 sticky top:54px 是给那个不存在的顶栏留的
   ================================================================== */

@media (max-width: 860px) {
  /* 恢复品牌条（参考图手机端也是「logo + 名称 + 退出」） */
  .app-shell.client-shell .client-topbar {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 14px;
    background: #fff;
    border-bottom: var(--c-hair) solid var(--c-line);
  }
  .app-shell.client-shell .client-topbar-brand strong { font-size: 16px; }
  .app-shell.client-shell .client-topbar-mark { width: 28px; height: 28px; }
  .app-shell.client-shell .client-topbar-mark img { width: 17px; height: 17px; }
  /* 手机上不显示微信名（位置紧），只留「退出」 */
  .app-shell.client-shell .client-topbar-user { display: none; }
  .app-shell.client-shell .client-topbar-logout { height: 30px; padding: 0 12px; }

  /* 顶部两块一起吸顶，偏移量对上真实高度 */
  .app-shell.client-shell .client-topbar { position: sticky; top: 0; z-index: 21; }
  .app-shell.client-shell .client-tabs { position: sticky; top: 52px; z-index: 20; }

  /* 面包屑：参考图里是「☰ 当前位置：xxx」，保留但压薄 */
  .app-shell.client-shell .client-crumb {
    display: flex;
    height: 40px;
    padding: 0 14px;
  }

  /* 内容区左右不要再叠一层内边距（.content 已有 14px） */
  .app-shell.client-shell .client-main { min-width: 0; }
}

/* ==================================================================
   修 sticky 失效：html/body 的 overflow-x: hidden
   ------------------------------------------------------------------
   旧层里有：
     @media (max-width:760px){ html, body { overflow-x: hidden } }
   按 CSS 规范，overflow-x:hidden 搭配 overflow-y:visible 时，
   visible 会被计算成 auto —— html/body 因此变成「滚动容器」。
   而 body 自身并不滚动（高度等于内容），于是 position:sticky
   相对这个不滚动的容器定位，等于完全失效：
   顶部品牌条和 tab 一滚就走，页面上方露出空白。

   改用 overflow-x: clip：clip 不创建滚动容器，同样能裁掉横向溢出，
   但 sticky 恢复工作。@supports 保证老浏览器至少不更差。
   ================================================================== */
@media (max-width: 860px) {
  @supports (overflow-x: clip) {
    html, body { overflow-x: clip; }
  }
}

/* ==================================================================
   加载骨架屏 —— 替代原来的一行「正在加载…」文字
   ------------------------------------------------------------------
   骨架屏先给出与最终内容同形的灰块，数据到位后由真实内容淡入覆盖，
   观感是「填充」而不是「忽然蹦出一整页」。
   动画只用 transform + opacity（走合成器，不触发重排重绘）。
   ================================================================== */

.sk-wrap { padding: 4px 0; }

/* 骨架块的流光：让等待看起来"在工作"，而不是卡住 */
@keyframes skShimmer {
  0%   { opacity: .55; }
  50%  { opacity: .95; }
  100% { opacity: .55; }
}
.sk-bar {
  display: inline-block;
  height: 14px;
  border-radius: 3px;
  background: #e8ebf0;
  animation: skShimmer 1.4s cubic-bezier(.4, 0, .6, 1) infinite;
}

/* 列表骨架（发货地址 / 我的报单手机端卡片） */
.sk-list { display: grid; gap: 12px; }
.sk-card {
  padding: 16px 14px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  animation: skFadeUp 320ms cubic-bezier(.2, 0, 0, 1) both;
}
.sk-line { display: flex; gap: 16px; margin-bottom: 12px; }
.sk-line:last-child { margin-bottom: 0; }

/* 表格骨架（我的报单电脑端） */
.sk-table { background: #fff; border: 1px solid var(--c-line); border-radius: 4px; overflow: hidden; }
.sk-tr {
  display: flex; gap: 24px; align-items: center;
  height: 38px; padding: 0 12px;
  border-bottom: 1px solid var(--c-line-soft);
  animation: skFadeUp 320ms cubic-bezier(.2, 0, 0, 1) both;
}
.sk-tr:last-child { border-bottom: 0; }

/* 表单骨架（收款信息） */
.sk-form { padding: 4px 0; }
.sk-field { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; animation: skFadeUp 320ms cubic-bezier(.2, 0, 0, 1) both; }
.sk-field .sk-bar:last-child { border-radius: 3px; }

@keyframes skFadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* ==================================================================
   流畅度：把"齿轮感"的来源关掉
   ================================================================== */

/* 1) 去掉整页平滑滚动：它会让任何一次滚动/回顶变成一段动画，
      在手机上表现为明显的滞后与拖影。 */
html { scroll-behavior: auto; }

/* 2) 内容区限定布局/绘制范围，减少每次换页的重排重绘面积 */
.app-shell.client-shell .content { contain: layout style; }

/* 3) 参与动画的元素提前提升为合成层，避免动画首帧才提升导致的顿挫 */
.app-shell.client-shell .client-route-motion,
.app-shell.client-shell .content { backface-visibility: hidden; }

/* 4) 骨架屏切换到真内容时，真内容自身淡入（View Transition 不生效时的兜底） */
@keyframes clientContentIn2 {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.app-shell.client-shell .sk-wrap + * { animation: clientContentIn2 220ms cubic-bezier(.2, 0, 0, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .sk-bar, .sk-card, .sk-tr, .sk-field { animation: none !important; }
}

/* ==================================================================
   内容交叉淡入（替代 View Transitions）
   ------------------------------------------------------------------
   旧内容克隆成一层绝对定位的覆盖，替换后淡出；新内容在其下方
   同时淡入。全程只有 opacity，走合成器，不触发重排重绘。
   各浏览器一致（iOS 17 / 微信 WebView 不支持 View Transitions）。
   ================================================================== */
.app-shell.client-shell .client-main { position: relative; }

.content-snapshot {
  position: absolute;
  width: 100%;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
  opacity: 1;
  transition: opacity 200ms cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
  backface-visibility: hidden;
}
.content-snapshot.is-out { opacity: 0; }

/* 新内容轻微上移淡入，配合旧内容淡出形成方向感 */
@keyframes clientContentEnter {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.app-shell.client-shell .is-cross-fading .content > * {
  animation: clientContentEnter 240ms cubic-bezier(.2, 0, 0, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .content-snapshot { transition-duration: 1ms !important; }
  .app-shell.client-shell .is-cross-fading .content > * { animation: none !important; }
}

/* ==================================================================
   报单详情页 —— 逐条修
   ------------------------------------------------------------------
   实测（1440 视口）：详情容器 760px、右边空 566px；小节标题 14px；
   字段值字重 650；字段块 7px 圆角 + 浅底 + 底线；管理员备注 8px 圆角 + 灰底。
   ================================================================== */

/* ---------- ① 页面填充不全：详情容器被 max-width:860px 卡住 ---------- */
.app-shell.client-shell .user-order-detail {
  max-width: none;          /* 原 860px：1440 视口下右边空 566px */
  width: 100%;
  gap: 16px;
}

/* ---------- ② 小节标题放大（原 14px，比正文只大 1px，毫无层级） ---------- */
.app-shell.client-shell .user-detail-section .section-title,
.app-shell.client-shell .payment-proof-card .section-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text);
  letter-spacing: -.01em;
}
/* 标题下的一句说明：小、灰、轻 */
.app-shell.client-shell .user-detail-section > p:not(.user-admin-note) {
  margin: 5px 0 0;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--c-text-3);
}

/* ---------- ③ 正文变细：字段值原来是 650 ---------- */
.app-shell.client-shell .user-detail-section .detail-item strong {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-text);
}
.app-shell.client-shell .user-detail-section .detail-item span {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-3);
  margin-bottom: 6px;
}
/* 值域之间靠间距分区，不靠框 */
.app-shell.client-shell .user-detail-section .detail-list {
  gap: 22px 36px;
  margin-top: 18px;
}

/* ---------- ④ 去边框 AI 味：字段块不再是「框里套框」 ---------- */
.app-shell.client-shell .user-detail-section .detail-item {
  padding: 0;
  border: 0;                /* 原：1px 边 + 底线 */
  border-radius: 0;         /* 原 7px */
  background: transparent;  /* 原 #fbfcfd */
}

/* 管理员备注：去掉灰底圆角块，改纯文本 */
.app-shell.client-shell .user-detail-section .user-admin-note {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--c-text);
}

/* 状态卡：不加框，直接排 */
.app-shell.client-shell .user-detail-section .user-status-card { min-height: 0; gap: 8px; }
.app-shell.client-shell .user-detail-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

/* 打款截图：缩略图保留一圈细边（图片需要边界），圆角收到 3px */
.app-shell.client-shell .user-shell .payment-proof-item,
.app-shell.client-shell .payment-proof-item {
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: #fff;
}
.app-shell.client-shell .payment-proof-card .hint { margin: 14px 0 0; font-size: 13px; color: var(--c-text-3); }

/* ---------- ⑤ 卡片：与表格同一套边框语言，圆角统一 3px ---------- */
.app-shell.client-shell .user-order-detail .card,
.app-shell.client-shell .user-order-detail .card-body {
  border: 1px solid var(--c-line);
  border-radius: 3px;
  box-shadow: none;
}

/* ---------- ⑥ 页头：标题放大，「返回列表」靠右 ---------- */
.app-shell.client-shell .user-order-detail + * ,
.app-shell.client-shell .page-head h2 { font-size: 17px; font-weight: 600; }
.app-shell.client-shell .page-head .head-actions { margin-left: auto; }

/* 手机端：单列、字号略收 */
@media (max-width: 860px) {
  .app-shell.client-shell .user-detail-section .detail-list { grid-template-columns: 1fr; gap: 18px; }
  .app-shell.client-shell .user-detail-section .section-title { font-size: 17px; }
  .app-shell.client-shell .user-detail-status { flex-direction: column; gap: 14px; }
}

/* 详情字段：旧层 .user-native-shell .detail-list { grid-template-columns:1fr }
   强制单列，铺满 1304px 后每个字段占一整行、右侧大片空白。
   这里恢复两列（每列约 620px），一行放两个字段，页面才真正「填满」。 */
.app-shell.client-shell .user-detail-section .detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 40px;
  margin-top: 18px;
}
/* 备注类字段仍然整行 */
.app-shell.client-shell .user-detail-section .detail-item.full { grid-column: 1 / -1; }
/* 超宽屏（≥1400）时排三列，避免每行两格过空 */
@media (min-width: 1400px) {
  .app-shell.client-shell .user-detail-section .detail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app-shell.client-shell .user-detail-section .detail-item.full { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .app-shell.client-shell .user-detail-section .detail-list { grid-template-columns: 1fr; gap: 18px; }
}

/* ==================================================================
   字重归一（仅用户端）
   ------------------------------------------------------------------
   实测用户端散布着大量非标准字重：
     .user-shell .field label           650
     .user-native-shell .badge          650 / 620
     .shipping-address-category         650
     .shipping-address-person           680
     .user-order-card-head strong       680
     .settings-group-heading span       700
     .section-title                     700
   全站口径统计：650×59、700×29、720×26、680×21、620×18 …
   这些是历史层层叠加出来的，视觉结果就是「到处都粗」——
   正是"字体太粗 / AI 味重"的来源。

   统一到四档：
     400  正文、字段值、字段标签、表单标签、徽章
     500  需要轻微强调的（表头、金额、单号、卡片标题）
     600  小节标题、页标题
     700+ 仅管理端保留

   参考图的正文与字段值都是常规字重，靠字号与深浅建立层级。
   ================================================================== */

/* 表单标签与必填星号 */
.app-shell.client-shell label,
.app-shell.client-shell .field > label,
.app-shell.client-shell label.required { font-weight: 400; }

/* 徽章 / 分类标签 / tab */
.app-shell.client-shell .badge { font-weight: 400; }
.app-shell.client-shell .shipping-address-category { font-weight: 400; }
.app-shell.client-shell .shipping-category-tab { font-weight: 400; }
.app-shell.client-shell .shipping-category-tab.active { font-weight: 500; }

/* 地址卡 */
.app-shell.client-shell .shipping-address-person { font-weight: 500; }
.app-shell.client-shell .shipping-address-full { font-weight: 400; }
.app-shell.client-shell .shipping-address-card p { font-weight: 400; }

/* 小节标题：600 封顶 */
.app-shell.client-shell .section-title { font-weight: 600; }
.app-shell.client-shell .settings-group-heading span,
.app-shell.client-shell .settings-group-heading strong,
.app-shell.client-shell .settings-group-heading small { font-weight: 600; }
.app-shell.client-shell .settings-group-heading small { font-weight: 400; }

/* 卡片里的单号 */
.app-shell.client-shell .user-order-card-head strong { font-weight: 500; }

/* 上传占位 */
.app-shell.client-shell .upload-placeholder b,
.app-shell.client-shell .upload-placeholder strong { font-weight: 500; }

/* 顶栏 / 用户信息 */
.app-shell.client-shell .user-chip strong { font-weight: 500; }
.app-shell.client-shell .client-topbar-user { font-weight: 400; }

/* 规则提示条的感叹号 */
.app-shell.client-shell .client-rule-icon { font-weight: 600; }

/* 表格正文一律 400（金额靠颜色区分，不再靠字重） */
.app-shell.client-shell tbody td,
.app-shell.client-shell .order-number-cell,
.app-shell.client-shell .order-amount-cell,
.app-shell.client-shell .money { font-weight: 400; }
.app-shell.client-shell tbody td.col-index { font-weight: 400; }

/* 分页与合计 */
.app-shell.client-shell .pager-num,
.app-shell.client-shell .client-total-bar b { font-weight: 400; }
.app-shell.client-shell .client-total-bar .is-amount b { font-weight: 500; }

/* 详情页字段值（再次确认，避免被旧层覆盖） */
.app-shell.client-shell .detail-item strong,
.app-shell.client-shell .detail-item b { font-weight: 400; }

/* 兜底：用户端出现的任何 <strong>/<b> 默认不超过 500 */
.app-shell.client-shell strong,
.app-shell.client-shell b { font-weight: 500; }
.app-shell.client-shell .section-title,
.app-shell.client-shell .page-head h2,
.app-shell.client-shell h2,
.app-shell.client-shell h3 { font-weight: 600; }

/* ==================================================================
   手机端报单卡片：管理员备注放在报单信息下面
   ------------------------------------------------------------------
   参考图（我的报单）的卡片结构是：单号+日期 → 状态 → 明细。
   我们原来手机端卡片完全没有管理员备注 —— 用户必须点进详情才看得到，
   而管理员备注恰恰是用户最需要及时看到的东西（比如「缺型号」「地址有误」）。
   这里按参考图的做法，把它作为卡片内的一块，放在报单信息正下方。
   ================================================================== */

@media (max-width: 860px) {
  /* 序号：「1. 单号」，和参考图一致 */
  .app-shell.client-shell .user-order-card-index {
    margin-right: 2px;
    font-style: normal;
    font-weight: 400;
    color: var(--c-text-2);
  }
  /* 参考图的手机端单号是蓝色但不带下划线 */
  .app-shell.client-shell .user-order-card-head strong {
    text-decoration: none;
    font-weight: 500;
  }

  /* 管理员备注：浅底块，紧跟在状态行下面 */
  .app-shell.client-shell .user-order-card-note {
    margin-top: 12px;
    padding: 11px 12px;
    background: #f6f8fb;
    border-radius: 3px;
  }
  .app-shell.client-shell .user-order-card-note-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 400;
    color: var(--c-text-3);
  }
  .app-shell.client-shell .user-order-card-note p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--c-text);
    word-break: break-word;
  }
}

/* ==================================================================
   手机端报单卡片：按参考图精简为三段
   ------------------------------------------------------------------
   参考图的卡片结构是「序号+单号 → 状态 → 明细块」。
   我们原来多了一个「详情 ⌄」展开，里面塞着 客户备注 / 打款凭证 /
   最后更新 / 订单编号 —— 用户要求全部去掉；日期也不要。
   明细块的位置改放「管理员备注」（管理员写给用户看的内容）。
   ================================================================== */
@media (max-width: 860px) {
  /* 单号行不再放日期，整行留给单号 */
  .app-shell.client-shell .user-order-card-head { gap: 0; }
  .app-shell.client-shell .user-order-card-head strong { font-size: 15px; }

  /* 管理员备注块：对应参考图里「商品明细」的位置与观感 */
  .app-shell.client-shell .user-order-card-note {
    margin-top: 12px;
    padding: 12px 13px;
    background: #f6f8fb;
    border-radius: 3px;
  }
  .app-shell.client-shell .user-order-card-note p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--c-text);
    word-break: break-word;
  }
  /* 没有管理员备注时，卡片只留单号与状态，不留空块 */
  .app-shell.client-shell .user-order-card + .user-order-card { border-top: var(--c-hair) solid var(--c-line); }
  .app-shell.client-shell .user-order-card-body { padding: 16px 14px; }
  /* 「详情 ⌄」已不再渲染，旧样式一并停用 */
  .app-shell.client-shell .card-expand,
  .app-shell.client-shell .card-expand-body { display: none; }
}

/* ==================================================================
   快递单号改为黑色
   ------------------------------------------------------------------
   之前按参考图把单号做成了蓝色链接（--c-link: #204ebc + 下划线）。
   现在按要求改回正文色，不给颜色、不给下划线 —— 单号是数据，不是可点链接。
   涉及两处：电脑端表格的「物流单号」列、手机端卡片标题里的单号。
   ================================================================== */

.app-shell.client-shell .order-number-cell,
.app-shell.client-shell tbody td.order-number-cell {
  color: var(--c-text);
  text-decoration: none;
}
.app-shell.client-shell tbody tr:hover .order-number-cell {
  color: var(--c-text);
  text-decoration: none;
}

/* 手机端卡片里的单号（含更具体的那条移动端规则） */
.app-shell.client-shell .user-order-card-head strong,
.app-shell.client-shell .user-order-card-body .user-order-card-head strong {
  color: var(--c-text);
  text-decoration: none;
  text-decoration-color: transparent;
}

/* 手机端展开明细里的值，若也被 --c-link 影响，一并回到正文色 */
.app-shell.client-shell .order-expand-list dd { color: var(--c-text); }

/* ==================================================================
   管理员备注不再被截断
   ------------------------------------------------------------------
   旧层这条规则把电脑端的备注列压成了单行省略号：
     .user-native-shell .desktop-order-table .order-note-cell {
       max-width: 260px; overflow: hidden; text-overflow: ellipsis;
     }
   而线上真实的备注是多行的「商品明细」格式，例如：
     小米手环11nfc粉金
     663*2
     红米watch 6银色
     480*1
   被截断后用户根本读不到内容，只能点进详情 —— 这正是
   「还是得点进报单详情才能看到管理员备注」的原因。

   改为完整显示：不限宽、不裁切、保留换行。
   ================================================================== */

.app-shell.client-shell .desktop-order-table .order-note-cell,
.app-shell.client-shell .order-note-cell {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: pre-wrap;        /* 备注里的换行按原样显示 */
  word-break: break-word;
  line-height: 1.6;
  color: var(--c-text);
  font-size: 12px;
  min-width: 180px;
  vertical-align: top;
}

/* 表头居中对齐这一列的内容起点 */
.app-shell.client-shell .desktop-order-table thead th:nth-child(7) { min-width: 180px; }

/* 行高由 height:38px 决定，备注变多行时让它自然增高 */
.app-shell.client-shell tbody td.order-note-cell { height: auto; padding-top: 8px; padding-bottom: 8px; }

/* 用户工作台覆盖层：uw-shell兼容布局与生产client-shell限定覆盖。 */
.app-shell.client-shell .umr-reset,
.app-shell.client-shell .umr-order-time,
.app-shell.client-shell .umr-user-note { display: none; }
@media (max-width: 860px) {
  .app-shell.user-native-shell.client-shell { font-size: 14px; background: #f5f5f8; }
  .app-shell.user-native-shell.client-shell .client-topbar { height: 58px; padding: 0 16px; border: 0; background: #fff; }
  .app-shell.user-native-shell.client-shell .client-topbar-brand strong { font-size: 17px; color: #2354ec; }
  .app-shell.user-native-shell.client-shell .client-topbar-mark { border-radius: 2px; background: #2354ec; }
  .app-shell.user-native-shell.client-shell .client-topbar-logout { border: 0; font-size: 14px; color: #444; padding: 0 4px; min-height: 44px; }
  .app-shell.user-native-shell.client-shell .client-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; top: 58px; padding: 8px 14px; min-height: 60px; overflow: visible; border-bottom: 1px solid #e4e7ed; background: #fff; }
  .app-shell.user-native-shell.client-shell .client-tab { width: auto; min-width: 0; min-height: 40px; padding: 6px 3px; border: 0; border-radius: 3px; color: #666; background: #f3f4f7; font-size: 13px; white-space: nowrap; box-shadow: none; }
  .app-shell.user-native-shell.client-shell .client-tab.active { background: #2354ec; color: #fff; font-weight: 500; }
  .app-shell.user-native-shell.client-shell .client-rail,
  .app-shell.user-native-shell.client-shell .mobile-tabbar { display: none !important; }
  .app-shell.user-native-shell.client-shell .client-body { display: block; min-height: calc(100svh - 118px); }
  .app-shell.user-native-shell.client-shell .client-crumb { display: flex; height: 36px; min-height: 36px; padding: 0 16px; gap: 16px; background: #fafafa; border-bottom: 1px solid #e4e7ed; box-shadow: none; font-size: 13px; }
  .app-shell.user-native-shell.client-shell .client-main > .content { width: 100% !important; max-width: none !important; padding: 10px 16px calc(98px + env(safe-area-inset-bottom)) !important; margin: 0 !important; min-height: calc(100svh - 154px); background: #fff; transform: none !important; animation: none !important; }
  .app-shell.user-native-shell.client-shell .content .form-page-head,
  .app-shell.user-native-shell.client-shell .content .payment-page-head { display: none; }
  .app-shell.user-native-shell.client-shell .client-rule-bar { padding: 9px 10px; margin: 0 0 10px; background: #fafafa; border: 1px solid #e4e7ed; color: #606266; font-size: 12px; line-height: 1.65; }
  .app-shell.user-native-shell.client-shell #orderForm,
  .app-shell.user-native-shell.client-shell #paymentForm { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0; border-radius: 0; background: #fff; box-shadow: none; min-height: 0; overflow: visible; transform: none; }
  .app-shell.user-native-shell.client-shell .order-form-section,
  .app-shell.user-native-shell.client-shell .payment-fields-section { padding: 0 !important; background: #fff; border: 0; }
  .app-shell.user-native-shell.client-shell .form-grid { grid-template-columns: minmax(0,1fr) !important; gap: 0 !important; }
  .app-shell.user-native-shell.client-shell .field,
  .app-shell.user-native-shell.client-shell .field.full { display: grid; grid-template-columns: 100px minmax(0,1fr) !important; gap: 8px; padding: 14px 0; margin: 0; border-bottom: 1px solid #f0f0f2; }
  .app-shell.user-native-shell.client-shell .field > label { grid-column: 1; margin: 0; padding-top: 11px; color: #666; text-align: left; font-size: 14px; line-height: 1.5; }
  .app-shell.user-native-shell.client-shell .field .input,
  .app-shell.user-native-shell.client-shell .field .textarea { grid-column: 2; min-height: 44px; padding: 10px; width: 100%; font-size: 16px; border: 1px solid #eee; border-radius: 0; background: #fafafa; color: #444; box-shadow: none; }
  .app-shell.user-native-shell.client-shell #orderForm .field:has(textarea) { grid-template-columns: minmax(0,1fr) !important; }
  .app-shell.user-native-shell.client-shell #orderForm .field:has(textarea) > label { padding: 0; }
  .app-shell.user-native-shell.client-shell #orderForm .field:has(textarea) .textarea { grid-column: 1; min-height: 100px; }
  .app-shell.user-native-shell.client-shell .hint { grid-column: 2; padding: 0; margin: 0; font-size: 12px; }
  .app-shell.user-native-shell.client-shell #orderForm .field:has(textarea) .hint { grid-column: 1; text-align: right; }
  .app-shell.user-native-shell.client-shell .payment-fields-section .settings-group-heading,
  .app-shell.user-native-shell.client-shell .payment-upload-section .settings-group-heading { padding: 16px 0 10px; margin: 0; border: 0; font-size: 15px; color: #333; }
  .app-shell.user-native-shell.client-shell .payment-updated-at { padding: 10px 0; margin: 0; font-size: 12px; }
  .app-shell.user-native-shell.client-shell .payment-upload-section { display: grid; grid-template-columns: minmax(0,1fr) !important; gap: 12px; padding: 0 !important; margin: 0 !important; background: #fff; border: 0; }
  .app-shell.user-native-shell.client-shell .payment-upload-card { padding: 12px; border: 1px solid #eee; border-radius: 0; background: #fff; }
  .app-shell.user-native-shell.client-shell .payment-logout-section { display: none; }
  .app-shell.user-native-shell.client-shell #orderForm > .form-actions,
  .app-shell.user-native-shell.client-shell #paymentForm > .form-actions { position: fixed !important; left: 0; right: 0; bottom: 0 !important; z-index: 40; display: flex; gap: 12px; margin: 0 !important; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important; min-height: 72px; width: 100%; background: #fff; border-top: 1px solid #e4e7ed; box-shadow: none; transform: none; }
  .app-shell.user-native-shell.client-shell .form-actions .btn { flex: 1; width: auto; min-height: 44px; border-radius: 24px; font-size: 15px; }
  .app-shell.user-native-shell.client-shell .umr-reset { display: inline-flex; color: #444; border: 1px solid #b9bec8; background: #fff; }
  .app-shell.user-native-shell.client-shell .user-orders-page { background: #fff; min-height: calc(100svh - 250px); }
  .app-shell.user-native-shell.client-shell .orders-page-head { margin: 0 !important; padding: 14px !important; min-height: 52px; border-bottom: 1px solid #eee; }
  .app-shell.user-native-shell.client-shell .orders-page-head h2 { color: #2354ec; font-size: 15px; }
  .app-shell.user-native-shell.client-shell .orders-page-head p { display: none; }
  .app-shell.user-native-shell.client-shell .user-orders-panel { display: flex; flex-direction: column; border: 0; border-radius: 0; background: #fff; padding: 0; box-shadow: none; }
  .app-shell.user-native-shell.client-shell .user-orders-panel .mobile-order-list { order: 1; }
  .app-shell.user-native-shell.client-shell .user-orders-panel .client-total-bar { order: 2; }
  .app-shell.user-native-shell.client-shell .mobile-order-list { display: block; margin: 0; padding: 0; background: #fff; }
  .app-shell.user-native-shell.client-shell .user-order-card { margin: 0; padding: 0; background: #fff; border: 0; border-bottom: 1px solid #eee; border-radius: 0; box-shadow: none; }
  .app-shell.user-native-shell.client-shell .user-order-card-body { padding: 16px 12px; }
  .app-shell.user-native-shell.client-shell .user-order-card-head { display: flex; align-items: flex-start; gap: 10px; }
  .app-shell.user-native-shell.client-shell .user-order-card-head strong { min-width: 0; flex: 1; font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; color: #333; }
  .app-shell.user-native-shell.client-shell .umr-order-time { display: inline; max-width: 108px; font-size: 12px; color: #666; text-align: right; line-height: 1.5; }
  .app-shell.user-native-shell.client-shell .user-order-card-sub { margin: 10px 0 0; gap: 12px; }
  .app-shell.user-native-shell.client-shell .user-order-card-sub .badge { padding: 0; background: transparent !important; border: 0; font-size: 12px; }
  .app-shell.user-native-shell.client-shell .umr-user-note { display: block; margin: 12px 0 0; padding: 10px; font-size: 13px; line-height: 1.6; color: #666; background: #f7f7f8; overflow-wrap: anywhere; }
  .app-shell.user-native-shell.client-shell .user-order-card-note { margin: 10px 0 0; padding: 0; background: #fff; border: 0; font-size: 12px; color: #666; }
  .app-shell.user-native-shell.client-shell .client-total-bar { position: static; display: flex; flex-wrap: wrap; gap: 10px; border: 0; border-top: 1px solid #eee; padding: 14px 12px; margin: 0; background: #fff; font-size: 12px; }
  .app-shell.user-native-shell.client-shell .client-total-bar .pager-nav { display: flex !important; flex: 1 0 100%; justify-content: space-between; }
  .app-shell.user-native-shell.client-shell .pager-nav .btn { min-height: 44px; }
  .app-shell.user-native-shell.client-shell .client-main > .content,
  .app-shell.user-native-shell.client-shell #orderForm,
  .app-shell.user-native-shell.client-shell #paymentForm { contain: none !important; content-visibility: visible; }
  .app-shell.user-native-shell.client-shell .client-topbar-mark { display: none !important; }
  .app-shell.user-native-shell.client-shell .client-topbar-mark::after { content: none; }
  .app-shell.user-native-shell.client-shell .content-snapshot { display: none !important; }
}

.user-native-shell.uw-shell {
  --uw-canvas: #f2f3f5;
  --uw-surface: #fff;
  --uw-text: #303133;
  --uw-muted: #777;
  --uw-line: #e4e7ed;
  --uw-action: #2354ec;
  --uw-action-hover: #1b43c9;
  --uw-sidebar: #2354ec;
  display: grid !important;
  grid-template-columns: 80px minmax(0, 1fr);
  grid-template-rows: 48px minmax(0, 1fr);
  min-height: 100svh;
  color: var(--uw-text);
  background: var(--uw-canvas);
  font-size: 13px;
  letter-spacing: 0;
}
.user-native-shell.uw-shell [hidden] { display: none !important; }
.user-native-shell.uw-shell .uw-brandbar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  min-width: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--uw-line);
  background: #fff;
}
.user-native-shell.uw-shell .uw-brand { font-size: 17px; font-weight: 600; }
.user-native-shell.uw-shell .uw-brandbar .user-desktop-logout { display: inline-flex; align-items: center; min-height: 32px; gap: 5px; margin: 0; padding: 4px 8px; border: 0; border-radius: 2px; color: #606266; background: transparent; font-size: 12px; }
.user-native-shell.uw-shell .uw-brandbar .user-desktop-logout:hover { color: var(--uw-action); background: #f5f7fa; }
.user-native-shell.uw-shell .user-desktop-sidebar {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 48px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 80px;
  height: calc(100svh - 48px);
  padding: 8px 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: var(--uw-sidebar);
  box-shadow: none;
}
.user-native-shell.uw-shell .user-desktop-brand,
.user-native-shell.uw-shell .user-desktop-identity { display: none !important; }
.user-native-shell.uw-shell .user-desktop-nav { display: grid; gap: 2px; }
.user-native-shell.uw-shell .user-desktop-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 80px; min-height: 72px; padding: 10px 2px; border: 0; border-radius: 0; color: #fff; background: transparent; text-align: center; font-size: 12px; font-weight: 400; box-shadow: none; }
.user-native-shell.uw-shell .user-desktop-link > span { display: inline-grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; color: #fff; font-size: 22px; }
.user-native-shell.uw-shell .user-desktop-link:hover { color: #fff; background: #1b43c9; }
.user-native-shell.uw-shell .user-desktop-link.active { color: #fff; background: #0326a1; font-weight: 600; }
.user-native-shell.uw-shell .user-desktop-link,
.user-native-shell.uw-shell .user-desktop-link > span { opacity: 1; filter: none; font-weight: 500; }

/* 生产当前 client-shell 配色适配；不注入旧版 runtime，不改变业务布局。 */
.app-shell.user-native-shell.client-shell {
  --c-primary: #2354ec;
  --c-primary-dark: #1b43c9;
  --c-primary-deep: #0326a1;
  --c-amber: #303133;
  --c-purple: #606266;
  --c-warn-bg: #fafafa;
  --c-warn-line: #e4e7ed;
  --c-warn-text: #606266;
}
.app-shell.user-native-shell.client-shell .client-rail {
  background: #2354ec !important;
  background-image: none !important;
  opacity: 1;
  filter: none;
  backdrop-filter: none;
}
.app-shell.user-native-shell.client-shell .client-rail-link,
.app-shell.user-native-shell.client-shell .client-rail-icon,
.app-shell.user-native-shell.client-shell .client-rail-label {
  color: #fff !important;
  opacity: 1;
  filter: none;
  font-weight: 500;
}
.app-shell.user-native-shell.client-shell .client-rail-link:hover { background: #1b43c9 !important; }
.app-shell.user-native-shell.client-shell .client-rail-link.active { background: #0326a1 !important; border-left-color: #0326a1; }
.app-shell.user-native-shell.client-shell .btn-primary:not(:disabled) {
  color: #fff !important;
  background: #2354ec !important;
  border-color: #2354ec !important;
  background-image: none !important;
  opacity: 1;
  filter: none;
}
.app-shell.user-native-shell.client-shell .btn-primary:hover:not(:disabled) { background: #1b43c9 !important; border-color: #1b43c9 !important; }
.app-shell.user-native-shell.client-shell .badge {
  color: #606266 !important;
  background: #f5f5f5 !important;
  border-color: #e4e7ed !important;
}
.app-shell.user-native-shell.client-shell .client-rule-bar,
.app-shell.user-native-shell.client-shell .client-rule-bar b {
  color: #606266 !important;
  background: #fafafa !important;
  border-color: #e4e7ed !important;
}
.app-shell.user-native-shell.client-shell .table-detail-link,
.app-shell.user-native-shell.client-shell .payment-qr-action { color: #606266 !important; }
.app-shell.user-native-shell.client-shell .money,
.app-shell.user-native-shell.client-shell .order-amount-cell { color: #303133 !important; }
.user-native-shell.uw-shell .main { grid-column: 2; grid-row: 2; min-width: 0; width: 100%; background: var(--uw-canvas); }
.user-native-shell.uw-shell .main > .topbar { position: static; display: flex !important; align-items: center; justify-content: flex-start; gap: 9px; height: 32px; min-height: 32px; padding: 0 12px; border-bottom: 1px solid var(--uw-line); background: #fff; box-shadow: none; }
.user-native-shell.uw-shell .uw-menu { display: grid; width: 24px; height: 24px; min-height: 24px; place-items: center; padding: 0; border: 0; border-radius: 0; color: #606266; background: transparent; font-size: 16px; cursor: pointer; }
.user-native-shell.uw-shell .uw-menu:hover { color: var(--uw-action); background: #f5f7fa; }
.user-native-shell.uw-shell .uw-breadcrumb { color: #606266; font-size: 12px; }
.user-native-shell.uw-shell .main > .content { width: calc(100% - 24px) !important; max-width: none !important; min-height: calc(100svh - 104px); margin: 12px !important; padding: 16px 18px 20px !important; border: 0; border-radius: 0; background: #fff; animation: none; }
.user-native-shell.uw-shell.uw-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.user-native-shell.uw-shell.uw-collapsed .user-desktop-sidebar { display: none; }
.user-native-shell.uw-shell .content .page-head { min-height: 28px; margin: 0 0 14px !important; padding: 0 0 10px; border-bottom: 1px solid var(--uw-line); }
.user-native-shell.uw-shell .content .page-head h2 { width: auto; margin: 0; color: var(--uw-text); font-size: 16px; font-weight: 500; line-height: 1.4; text-align: left; letter-spacing: 0; }
.user-native-shell.uw-shell .page-head p { color: var(--uw-muted); font-size: 12px; }
.user-native-shell.uw-shell .card,
.user-native-shell.uw-shell .user-orders-panel,
.user-native-shell.uw-shell .user-order-card { border: 1px solid var(--uw-line); border-radius: 0; background: #fff; box-shadow: none; }
.user-native-shell.uw-shell .card-body { padding: 16px; }
.user-native-shell.uw-shell .btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; min-width: 0; min-height: 32px; padding: 5px 12px; border: 1px solid transparent; border-radius: 2px; font-size: 12px; font-weight: 400; line-height: 1.4; box-shadow: none; }
.user-native-shell.uw-shell .btn.btn-primary { border-color: var(--uw-action); color: #fff; background: var(--uw-action); }
.user-native-shell.uw-shell .btn.btn-primary:hover:not(:disabled) { border-color: var(--uw-action-hover); background: var(--uw-action-hover); }
.user-native-shell.uw-shell .btn.btn-secondary { border-color: #dcdfe6; color: #606266; background: #fff; }
.user-native-shell.uw-shell .btn.btn-secondary:hover:not(:disabled) { border-color: #a8ccee; color: var(--uw-action); background: #f5faff; }
.user-native-shell.uw-shell .btn:hover:not(:disabled),
.user-native-shell.uw-shell .btn:active:not(:disabled),
.user-native-shell.uw-shell .user-order-card:hover { transform: none; box-shadow: none; }
.user-native-shell.uw-shell .btn:disabled { color: #a8abb2; border-color: var(--uw-line); background: #f4f4f5; cursor: not-allowed; opacity: 1; }
.user-native-shell.uw-shell .input,
.user-native-shell.uw-shell .select,
.user-native-shell.uw-shell .textarea { width: 100%; min-width: 0; min-height: 32px; padding: 5px 10px; border: 1px solid #dcdfe6; border-radius: 2px; color: var(--uw-text); background: #fff; font-size: 13px; line-height: 1.5; }
.user-native-shell.uw-shell .textarea { height: 80px; min-height: 80px; resize: vertical; }
.user-native-shell.uw-shell .input:focus,
.user-native-shell.uw-shell .select:focus,
.user-native-shell.uw-shell .textarea:focus { border-color: var(--uw-action); box-shadow: 0 0 0 2px rgba(8, 117, 223, .12); }
.user-native-shell.uw-shell button:focus-visible,
.user-native-shell.uw-shell a:focus-visible,
.user-native-shell.uw-shell .desktop-order-table:focus-visible { outline: 2px solid var(--uw-action); outline-offset: 2px; }
.user-native-shell.uw-shell .field label { margin: 0; color: #606266; font-size: 13px; font-weight: 400; }
.user-native-shell.uw-shell .hint { grid-column: 2; margin: 2px 0 0; color: var(--uw-muted); font-size: 12px; line-height: 1.6; }
.user-native-shell.uw-shell .order-form-card,
.user-native-shell.uw-shell .payment-form-card { width: 100% !important; max-width: none !important; min-height: calc(100svh - 160px); margin: 0 !important; padding: 0 !important; overflow: visible; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.user-native-shell.uw-shell .order-form-card { display: flex; flex-direction: column; gap: 0; }
.user-native-shell.uw-shell .payment-form-card { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; gap: 0; }
.user-native-shell.uw-shell .uw-notice,
.user-native-shell.uw-shell .uw-payment-note,
.user-native-shell.uw-shell .uw-account { display: flex; flex: 0 0 100%; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; margin: 0 0 10px; padding: 8px 12px; border: 1px solid #e4e7ed; color: #606266; background: #f5f7fa; font-size: 12px; line-height: 1.7; }
.user-native-shell.uw-shell .order-form-card > .uw-notice,
.user-native-shell.uw-shell .order-form-card > .uw-payment-note { flex: 0 0 auto; }
.user-native-shell.uw-shell .uw-notice { color: #606266; border-color: var(--uw-line); background: #fafafa; }
.user-native-shell.uw-shell .uw-notice > span,
.user-native-shell.uw-shell .uw-payment-note > span { min-width: 0; overflow-wrap: anywhere; }
.user-native-shell.uw-shell .uw-notice .btn,
.user-native-shell.uw-shell .uw-payment-note .btn { flex: 0 0 auto; min-height: 28px; padding: 3px 9px; font-size: 12px; }
.user-native-shell.uw-shell .order-form-section,
.user-native-shell.uw-shell .payment-fields-section { padding: 14px 12px 22px; border: 0; border-radius: 0; background: #fff; }
.user-native-shell.uw-shell .order-form-section .form-grid,
.user-native-shell.uw-shell .payment-fields-section .form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 0; }
.user-native-shell.uw-shell .order-form-section .field,
.user-native-shell.uw-shell .payment-fields-section .field { display: grid; grid-template-columns: 90px minmax(0, 320px); align-items: start; column-gap: 10px; row-gap: 5px; grid-column: auto; margin: 0; padding: 0; border: 0; }
.user-native-shell.uw-shell .order-form-section .field > label,
.user-native-shell.uw-shell .payment-fields-section .field > label { padding-top: 7px; text-align: right; }
.user-native-shell.uw-shell .order-form-section .field > .input,
.user-native-shell.uw-shell .order-form-section .field > .textarea,
.user-native-shell.uw-shell .payment-fields-section .field > .input,
.user-native-shell.uw-shell .payment-fields-section .field > .textarea { grid-column: 2; width: 100%; max-width: 320px; }
.user-native-shell.uw-shell .order-form-card .textarea { min-height: 80px; height: 80px; }
.user-native-shell.uw-shell .order-form-card .form-actions,
.user-native-shell.uw-shell .payment-form-card .form-actions { position: sticky !important; inset: auto 0 0; z-index: 8; display: flex; flex: 0 0 100%; align-self: flex-end; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; margin: auto 0 0; padding: 12px 112px; border: 0; border-top: 1px solid var(--uw-line); border-radius: 0; background: #fff; box-shadow: none; backdrop-filter: none; }
.user-native-shell.uw-shell .order-form-card .form-actions .btn,
.user-native-shell.uw-shell .payment-form-card .form-actions .btn { flex: 0 0 auto; width: auto; min-width: 72px; min-height: 32px; border-radius: 2px; }
.user-native-shell.uw-shell .payment-fields-section { flex: 0 1 500px; width: 500px; max-width: 100%; }
.user-native-shell.uw-shell .settings-group-heading { margin: 0 0 14px; }
.user-native-shell.uw-shell .settings-group-heading span { color: #606266; font-size: 13px; font-weight: 500; }
.user-native-shell.uw-shell .settings-group-heading small { color: var(--uw-muted); font-size: 12px; }
.user-native-shell.uw-shell .payment-upload-section { display: grid; flex: 0 1 456px; grid-template-columns: repeat(2, minmax(0, 210px)); gap: 12px; width: 456px; max-width: 100%; padding: 14px 12px 22px; border: 0; border-radius: 0; background: #fff; }
.user-native-shell.uw-shell .payment-upload-section > .settings-group-heading { grid-column: 1 / -1; margin-bottom: 2px; }
.user-native-shell.uw-shell .payment-upload-card { min-width: 0; width: 100%; padding: 10px; border: 1px solid var(--uw-line); border-radius: 0; background: #fff; }
.user-native-shell.uw-shell .payment-method-head { margin-bottom: 10px; }
.user-native-shell.uw-shell .payment-upload-card .upload-box { min-height: 150px; border: 1px dashed #dcdfe6; border-radius: 0; background: #fafafa; }
.user-native-shell.uw-shell .payment-upload-card .upload-preview img { width: 100%; height: 150px; max-height: none; border-radius: 0; object-fit: contain; }
.user-native-shell.uw-shell .payment-updated-at { grid-column: 1; padding-left: 100px; color: var(--uw-muted); font-size: 12px; }
.user-native-shell.uw-shell .uw-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0 0 14px; padding: 10px 0 14px; border: 0; border-bottom: 1px solid var(--uw-line); border-radius: 0; background: #fff; }
.user-native-shell.uw-shell .uw-filters > label { display: flex; align-items: center; gap: 7px; min-width: 0; color: #606266; font-size: 12px; font-weight: 400; white-space: nowrap; }
.user-native-shell.uw-shell .uw-filters > label .input { width: 128px; }
.user-native-shell.uw-shell .uw-filters > label:first-child .input { width: 150px; }
.user-native-shell.uw-shell .uw-filters input[type="date"] { width: 140px; }
.user-native-shell.uw-shell .uw-filter-actions { display: flex; align-items: center; gap: 8px; }
.user-native-shell.uw-shell .user-orders-page { width: 100%; min-width: 0; }
.user-native-shell.uw-shell .user-orders-panel { overflow: hidden; }
.user-native-shell.uw-shell .desktop-order-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.user-native-shell.uw-shell .desktop-order-table table { width: 100%; min-width: 900px; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.user-native-shell.uw-shell .desktop-order-table th { height: 36px; padding: 7px 12px; border-bottom: 1px solid var(--uw-line); color: #606266; background: #f5f7fa; font-size: 12px; font-weight: 500; white-space: nowrap; }
.user-native-shell.uw-shell .desktop-order-table td { height: 44px; padding: 8px 12px; overflow: hidden; border-bottom: 1px solid #ebeef5; color: #606266; text-overflow: ellipsis; white-space: nowrap; }
.user-native-shell.uw-shell .desktop-order-table th:first-child { width: 180px; }
.user-native-shell.uw-shell .desktop-order-table th:nth-child(2) { width: 90px; }
.user-native-shell.uw-shell .desktop-order-table th:nth-child(3),
.user-native-shell.uw-shell .desktop-order-table th:nth-child(4) { width: 100px; }
.user-native-shell.uw-shell .desktop-order-table th:nth-child(6) { width: 160px; }
.user-native-shell.uw-shell .desktop-order-table th:last-child { width: 90px; }
.user-native-shell.uw-shell .desktop-order-table tbody tr:last-child td { border-bottom: 0; }
.user-native-shell.uw-shell .desktop-order-table tbody tr:hover { background: #f5faff; }
.user-native-shell.uw-shell .desktop-order-table .order-number-cell { color: var(--uw-text); font-weight: 500; }
.user-native-shell.uw-shell .table-detail-link { padding: 4px 0; color: var(--uw-action); font-size: 12px; }
.user-native-shell.uw-shell .badge { min-height: 21px; padding: 3px 6px; border: 1px solid #e4e7ed; border-radius: 2px; color: #606266 !important; background: #f5f5f5 !important; font-size: 11px; font-weight: 400; }
/* Status is conveyed by explicit text, not decorative traffic-light colors. */
.user-native-shell.uw-shell .user-order-payment,
.user-native-shell.uw-shell .user-status-card,
.user-native-shell.uw-shell .user-detail-status,
.user-native-shell.uw-shell .shipping-home-reminder { color: #606266; background: #fafafa; border-color: #e4e7ed; }
.user-native-shell.uw-shell .payment-qr-action { color: #606266; background: #fff; }
.user-native-shell.uw-shell .payment-qr-action.danger { color: #606266; }
.user-native-shell.uw-shell .btn.btn-secondary:hover:not(:disabled),
.user-native-shell.uw-shell .desktop-order-table tbody tr:hover { color: #303133; background: #f7f7f7; }
.user-native-shell.uw-shell .table-detail-link { color: #606266; }
.user-native-shell.uw-shell .table-detail-link:hover { color: #303133; text-decoration: underline; }
.user-native-shell.uw-shell .mobile-order-list { display: none; }
.user-native-shell.uw-shell .uw-list-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-top: 14px; }
.user-native-shell.uw-shell .uw-summary { color: #606266; font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.user-native-shell.uw-shell .uw-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--uw-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.user-native-shell.uw-shell .uw-pagination .input { width: 96px; }
.user-native-shell.uw-shell .uw-pagination > span { white-space: nowrap; }
.user-native-shell.uw-shell .uw-no-results { margin-top: 14px; padding: 30px 16px; border: 1px dashed var(--uw-line); border-radius: 0; color: var(--uw-muted); background: #fff; font-size: 13px; }
.user-native-shell.uw-shell .mobile-tabbar { display: none; }

@media (max-width: 860px) {
  .user-native-shell.uw-shell,
  .user-native-shell.uw-shell.uw-collapsed { grid-template-columns: minmax(0, 1fr); }
  .user-native-shell.uw-shell .uw-brandbar { padding: 0 14px; }
  .user-native-shell.uw-shell .uw-brand { font-size: 16px; }
  .user-native-shell.uw-shell .user-desktop-sidebar { display: none; }
  .user-native-shell.uw-shell .main { grid-column: 1; }
  .user-native-shell.uw-shell .uw-menu { display: none; }
  .user-native-shell.uw-shell .main > .content { width: calc(100% - 16px) !important; min-height: calc(100svh - 96px); margin: 8px !important; padding: 14px 12px calc(88px + env(safe-area-inset-bottom)) !important; }
  .user-native-shell.uw-shell .input,
  .user-native-shell.uw-shell .select,
  .user-native-shell.uw-shell .textarea { min-height: 44px; font-size: 16px; }
  .user-native-shell.uw-shell .btn { min-height: 44px; font-size: 13px; }
  .user-native-shell.uw-shell .order-form-card,
  .user-native-shell.uw-shell .payment-form-card { min-height: 0; padding-bottom: 0 !important; }
  .user-native-shell.uw-shell .payment-form-card { display: flex; flex-direction: column; }
  .user-native-shell.uw-shell .uw-notice,
  .user-native-shell.uw-shell .uw-payment-note,
  .user-native-shell.uw-shell .uw-account { flex-basis: auto; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 10px; }
  .user-native-shell.uw-shell .uw-notice .btn,
  .user-native-shell.uw-shell .uw-payment-note .btn { min-height: 44px; }
  .user-native-shell.uw-shell .order-form-section,
  .user-native-shell.uw-shell .payment-fields-section { flex: 0 0 auto; width: 100%; padding: 12px 0 20px; }
  .user-native-shell.uw-shell .order-form-section .field,
  .user-native-shell.uw-shell .payment-fields-section .field { grid-template-columns: minmax(0, 1fr); row-gap: 7px; }
  .user-native-shell.uw-shell .order-form-section .field > label,
  .user-native-shell.uw-shell .payment-fields-section .field > label { padding-top: 0; text-align: left; }
  .user-native-shell.uw-shell .order-form-section .field > .input,
  .user-native-shell.uw-shell .order-form-section .field > .textarea,
  .user-native-shell.uw-shell .payment-fields-section .field > .input,
  .user-native-shell.uw-shell .payment-fields-section .field > .textarea { grid-column: 1; max-width: none; }
  .user-native-shell.uw-shell .hint { grid-column: 1; }
  .user-native-shell.uw-shell .payment-updated-at { padding-left: 0; }
  .user-native-shell.uw-shell .payment-upload-section { flex: 0 0 auto; grid-template-columns: minmax(0, 1fr) !important; width: 100%; padding: 0 0 20px; }
  .user-native-shell.uw-shell .payment-upload-card { width: 100%; }
  .user-native-shell.uw-shell .payment-upload-card .upload-preview img { height: 210px; }
  .user-native-shell.uw-shell .order-form-card .form-actions,
  .user-native-shell.uw-shell .payment-form-card .form-actions { flex: 0 0 auto; bottom: calc(60px + env(safe-area-inset-bottom)); margin: 0; padding: 12px 0; }
  .user-native-shell.uw-shell .order-form-card .form-actions .btn,
  .user-native-shell.uw-shell .payment-form-card .form-actions .btn { min-height: 44px; }
  .user-native-shell.uw-shell .uw-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 0; }
  .user-native-shell.uw-shell .uw-filters > label { display: grid; align-items: start; gap: 7px; }
  .user-native-shell.uw-shell .uw-filters > label .input,
  .user-native-shell.uw-shell .uw-filters > label:first-child .input { width: 100%; }
  .user-native-shell.uw-shell .uw-filter-actions { grid-column: 1 / -1; }
  .user-native-shell.uw-shell .desktop-order-table { display: none; }
  .user-native-shell.uw-shell .user-orders-panel { border: 0; overflow: visible; }
  .user-native-shell.uw-shell .mobile-order-list { display: grid; gap: 10px; }
  .user-native-shell.uw-shell .user-order-card { padding: 14px; }
  .user-native-shell.uw-shell .user-order-card-head { align-items: flex-start; gap: 10px; }
  .user-native-shell.uw-shell .user-order-card-head strong { min-width: 0; margin: 0; color: var(--uw-text); font-size: 15px; overflow-wrap: anywhere; }
  .user-native-shell.uw-shell .user-order-card-head > span { flex-shrink: 0; }
  .user-native-shell.uw-shell .user-order-card-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; color: var(--uw-muted); font-size: 12px; }
  .user-native-shell.uw-shell .user-order-card-meta b { margin-left: auto; }
  .user-native-shell.uw-shell .user-order-note { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--uw-line); color: #606266; font-size: 13px; overflow-wrap: anywhere; }
  .user-native-shell.uw-shell .uw-list-footer { display: grid; gap: 12px; }
  .user-native-shell.uw-shell .uw-pagination .input { min-height: 44px; font-size: 16px; }
  .user-native-shell.uw-shell .mobile-tabbar { position: fixed; inset: auto 0 0; z-index: 30; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; width: 100%; min-height: 60px; margin: 0; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--uw-line); border-radius: 0; background: #fff; box-shadow: none; transform: none; }
  .user-native-shell.uw-shell .mobile-tab { min-height: 48px; border-radius: 0; color: var(--uw-muted) !important; background: transparent !important; }
  .user-native-shell.uw-shell .mobile-tab.active,
  .user-native-shell.uw-shell .mobile-tab.pending { color: var(--uw-action) !important; background: #edf6ff !important; }
  .user-native-shell.uw-shell .mobile-tab em { font-size: 12px; }
  .user-native-shell.uw-shell .payment-logout-section { display: none; }
}
@media (max-width: 420px) {
  .user-native-shell.uw-shell .uw-filters { grid-template-columns: minmax(0, 1fr); }
  .user-native-shell.uw-shell .uw-pagination { gap: 7px; }
  .user-native-shell.uw-shell .uw-pagination .btn { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .user-native-shell.uw-shell *,
  .user-native-shell.uw-shell *::before,
  .user-native-shell.uw-shell *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
