: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%,920px); min-height:548px; display:grid; grid-template-columns:55fr 45fr; overflow:hidden; border:1px solid #edf0f5; border-radius:14px; background:#fff; box-shadow:0 18px 48px rgba(33,53,89,.09); animation:adminLoginIn 180ms cubic-bezier(.2,0,0,1) both; }
@keyframes adminLoginIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.admin-login-visual { display:grid; grid-template-rows:auto 1fr auto; padding:48px 48px 40px; background:#f7faff; }
.admin-login-brand { display:flex; align-items:center; gap:10px; }
.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:18px; font-weight:720; }
.admin-login-brand span { margin-top:5px; color:var(--admin-muted); font-size:13px; }
.admin-shield-art { width:min(100%,270px); max-height:250px; justify-self:center; align-self:center; object-fit:contain; mix-blend-mode:multiply; }
.admin-login-points { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; text-align:center; color:#475569; font-size:12px; font-weight:650; }
.admin-login-points span { display:grid; justify-items:center; }
.admin-login-points img { width:28px; height:28px; margin-bottom:9px; object-fit:contain; }
.admin-login-form-panel { display:flex; flex-direction:column; justify-content:center; padding:68px 60px; border-left:1px solid #eef1f5; 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:7px; 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(37,99,235,.1); }
.admin-login-page .btn { min-height:44px; margin-top:25px; border-radius:7px; box-shadow:none; transition:transform 100ms cubic-bezier(.2,0,0,1),background 160ms cubic-bezier(.2,0,0,1); }
.admin-login-page .btn-primary { background:var(--admin-blue); border-color:var(--admin-blue); }
.admin-login-page .btn:active { transform:scale(.985); }
.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 { display:block; padding:max(20px,env(safe-area-inset-top)) 20px 32px; }
  .admin-login-card { min-height:0; display:block; overflow:visible; border:0; border-radius:0; box-shadow:none; background:transparent; }
  .admin-login-visual { min-height:292px; padding:8px 0 20px; background:transparent; }
  .admin-login-brand strong { font-size:16px; }
  .admin-login-brand span { font-size:11px; }
  .admin-shield-art { width:190px; max-height:175px; }
  .admin-login-points { font-size:11px; }
  .admin-login-points img { width:24px; height:24px; margin-bottom:6px; }
  .admin-login-form-panel { display:block; padding:22px 18px; border:1px solid var(--admin-line); border-radius:10px; 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; }
}
