/* ============================================================
   管理端 H5 骨架 · 全局样式
   设计沿用老系统的品牌色（#2f6bff）与深色侧栏（#0f1b2d），降低店员迁移成本。
   ============================================================ */

:root {
  --brand: #2f6bff;
  --brand-dark: #1f52cc;
  --brand-soft: #eef4ff;
  --ink: #1f2d3d;
  --ink-2: #33445c;
  --muted: #7b8aa1;
  --muted-2: #9aa8bd;
  --line: #e6ecf5;
  --line-soft: #f2f5fa;
  --bg: #f4f6fa;
  --side-bg: #0f1b2d;
  --side-text: #a8bdd6;
  --side-w: 232px;
  --top-h: 56px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(31, 45, 61, 0.06);
  --shadow-md: 0 6px 20px rgba(31, 45, 61, 0.08);
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

.mono {
  font-family: Consolas, 'SF Mono', Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.amount {
  font-family: Consolas, 'SF Mono', Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ---------- 布局骨架 ---------- */
.admin-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.topbar .brand .logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.topbar .hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-size: 17px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.topbar .topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* 环境标识（mock / api） */
.env-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 46vw;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.env-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.env-badge.mock {
  color: #9a5b00;
  background: #fff8e6;
  border-color: #f5e2b8;
}

.env-badge.mock .dot {
  background: #f5a524;
}

.env-badge.api {
  color: #146c3c;
  background: #eafaf1;
  border-color: #b7ecd0;
}

.env-badge.api .dot {
  background: #1e8e54;
}

.env-badge .path {
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Consolas, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  opacity: 0.8;
}

/* 侧栏 */
.sidebar {
  position: fixed;
  z-index: 30;
  top: var(--top-h);
  bottom: 0;
  left: 0;
  width: var(--side-w);
  background: var(--side-bg);
  color: var(--side-text);
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  overflow-y: auto;
  transition: transform 0.22s ease;
}

.sidebar .nav-group {
  padding: 12px 12px 6px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #5f7796;
}

.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--side-text);
  font-size: 13px;
  margin-bottom: 2px;
}

.sidebar .nav-item .ico {
  width: 18px;
  text-align: center;
  flex: 0 0 18px;
  font-size: 14px;
}

.sidebar .nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e3eeff;
}

.sidebar .nav-item.active {
  background: rgba(47, 107, 255, 0.22);
  color: #fff;
  font-weight: 600;
}

.sidebar .nav-item.disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.sidebar .nav-item .tag {
  margin-left: auto;
  font-size: 10px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #8aa4c4;
}

.sidebar .side-foot {
  margin-top: auto;
  padding: 12px;
  font-size: 11px;
  color: #54708f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 主内容区 */
.content {
  margin-left: var(--side-w);
  padding: calc(var(--top-h) + 20px) 22px 32px;
  min-height: 100vh;
  transition: margin-left 0.22s ease;
}

/* 抽屉遮罩 */
.sidebar-mask {
  position: fixed;
  z-index: 25;
  inset: var(--top-h) 0 0 0;
  background: rgba(8, 15, 26, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.sidebar-mask.on {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 页面通用元素 ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  color: var(--ink);
}

.page-head .sub {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 2px;
}

.page-head .page-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.panel .panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.panel .panel-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.panel .panel-head .panel-extra {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.panel .panel-body {
  padding: 14px 16px;
  overflow-x: hidden;
}

.panel .panel-body.flush {
  padding: 0;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.kpi .kpi-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.kpi .kpi-value {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  font-family: Consolas, 'SF Mono', Menlo, monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.kpi .kpi-value small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 3px;
}

.empty-block {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted-2);
}

.empty-block .ico {
  font-size: 36px;
  opacity: 0.4;
  margin-bottom: 10px;
}

/* 详情键值对 */
.kv-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 22px;
}

.kv-list .kv {
  display: flex;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}

.kv-list .kv .k {
  flex: 0 0 84px;
  color: var(--muted);
}

.kv-list .kv .v {
  color: var(--ink-2);
  min-width: 0;
  word-break: break-all;
}

.pickup-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: Consolas, 'SF Mono', Menlo, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
}

/* 表格在窄屏下允许横向滚动（详情页明细用；订单列表另有移动端卡片） */
.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table-scroll .el-table {
  min-width: 640px;
}

/* 订单号链接 */
.order-no-link {
  font-family: Consolas, 'SF Mono', Menlo, monospace;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}

.order-no-link:hover {
  text-decoration: underline;
}

/* 时间线补充 */
.timeline-meta {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 响应式：≤900px 侧栏变抽屉（不再出现“导航断链”） ---------- */
@media (max-width: 900px) {
  .topbar .hamburger {
    display: inline-flex;
  }

  .topbar .brand .brand-name {
    display: none;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    width: 250px;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  }

  .content {
    margin-left: 0;
    padding: calc(var(--top-h) + 14px) 14px 28px;
  }

  .sidebar-mask {
    display: block;
  }

  .page-head h1 {
    font-size: 18px;
  }

  .env-badge .path {
    display: none;
  }
}

@media (max-width: 560px) {
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi .kpi-value {
    font-size: 18px;
  }

  .content {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ============================================================
   店员端「今日线上单」task-42（移动优先，独立全屏）
   ============================================================ */
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.staff-page {
  min-height: 100vh;
  background: #f4f6fb;
  color: var(--ink);
  padding-bottom: 108px;
}
.staff-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 14px 22px;
  background: linear-gradient(135deg, #0f1b2d 0%, #1e3a5f 100%);
  color: #fff;
}
.staff-brand { min-width: 0; }
.staff-eyebrow { font-size: 10px; opacity: 0.68; letter-spacing: 0.2px; }
.staff-brand h1 { margin: 3px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.staff-sub { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; opacity: 0.85; }
.staff-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.staff-logout {
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  padding: 3px 9px;
  cursor: pointer;
}
.staff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: -14px 12px 0;
  position: relative;
  z-index: 2;
}
.staff-stat {
  background: #fff;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 27, 45, .07);
}
.ss-num { font-size: 24px; font-weight: 800; line-height: 1.15; }
.ss-label { font-size: 11px; color: var(--muted); margin-top: 1px; }
.staff-stat.pending .ss-num { color: #b26a00; }
.staff-stat.entered .ss-num { color: #0f9d6b; }
.staff-stat.abnormal .ss-num { color: #d93a3a; }
.staff-note {
  margin: 10px 12px 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: #fff7e6;
  border: 1px solid #ffe2b0;
  color: #8a5b00;
  font-size: 11px;
  line-height: 1.6;
}
.staff-list { margin: 10px 12px 0; display: flex; flex-direction: column; gap: 10px; }
.staff-card {
  background: #fff;
  border: 1px solid #eef1f7;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 27, 45, .06);
  overflow: hidden;
}
.staff-card.abnormal { border-color: #ffd0d0; }
.staff-card.open { border-color: #cfdcf5; }
.staff-card-head {
  display: flex;
  gap: 11px;
  width: 100%;
  padding: 13px 13px 9px;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.sc-time {
  flex: 0 0 62px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: #eef4ff;
  border-radius: 10px;
  padding: 8px 3px;
  color: var(--brand);
}
.sc-time b { font-size: 14px; font-weight: 800; }
.sc-time span { font-size: 9px; color: var(--muted); }
.sc-main { flex: 1; min-width: 0; }
.sc-line1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sc-name { font-size: 19px; font-weight: 800; letter-spacing: 0.3px; }
.sc-amount { font-size: 18px; font-weight: 800; color: var(--ink); }
.sc-line2 { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.sc-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.sc-badge { font-size: 10px; font-weight: 700; border-radius: 5px; padding: 1px 6px; }
.sc-badge.danger { background: #ffecec; color: #d93a3a; }
.sc-badge.ok { background: #e7f8f0; color: #0f9d6b; }
.sc-badge.pending { background: #fff4e5; color: #b26a00; }
.sc-expand-hint { margin-left: auto; font-size: 11px; color: var(--brand); white-space: nowrap; }
.sc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 12px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  position: relative;
  width: fit-content;
}
.sc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #c9d3e3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.sc-check input:checked + .sc-check-box { background: var(--brand); border-color: var(--brand); }
.sc-check input:checked + .sc-check-box::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 800; }
.sc-check input:focus-visible + .sc-check-box { outline: 2px solid var(--brand-soft); }
.sc-check-label { font-weight: 600; }

.pos-sheet { border-top: 1px dashed #e3e9f2; background: #fbfcff; padding: 12px 14px 14px; }
.pos-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.pos-title { font-size: 14px; font-weight: 800; }
.pos-sub { font-size: 10px; color: var(--muted); }
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.pos-row { display: flex; flex-direction: column; font-size: 10px; color: var(--muted); }
.pos-row b { margin-top: 1px; font-size: 13px; font-weight: 600; color: var(--ink); word-break: break-all; }
.pos-table { margin-top: 11px; border: 1px solid #e8edf5; border-radius: 8px; overflow: hidden; background: #fff; }
.pos-tr {
  display: grid;
  grid-template-columns: 1.6fr .6fr .9fr;
  gap: 6px;
  padding: 7px 10px;
  border-top: 1px solid #f0f3f9;
  font-size: 12px;
  align-items: center;
}
.pos-th { border-top: 0; background: #f5f8fd; color: var(--muted); font-size: 10px; font-weight: 700; }
.pos-tr span:nth-child(2) { text-align: center; }
.pos-tr span:nth-child(3) { text-align: right; }
.pos-tr em { font-style: normal; color: var(--muted); font-size: 11px; }
.pos-total { background: #fbfcff; font-weight: 800; }
.pos-remark { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.pos-remark span {
  display: inline-block;
  margin-right: 6px;
  padding: 0 5px;
  border-radius: 4px;
  background: #eef2f9;
  font-size: 10px;
  color: var(--muted);
}
.pos-alert {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #ffd6d6;
  border-radius: 8px;
  background: #fff1f1;
  color: #b62f2f;
  font-size: 12px;
  line-height: 1.55;
}
.pa-tag { flex: 0 0 auto; padding: 1px 5px; border-radius: 4px; background: #d93a3a; color: #fff; font-size: 10px; font-weight: 700; }
.pos-tip { margin-top: 8px; font-size: 10px; color: var(--muted-2); }

.staff-bottom {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 760px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e8edf5;
  box-shadow: 0 -6px 18px rgba(15, 27, 45, .06);
}
.staff-bottom-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.staff-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.staff-refresh:disabled { opacity: .7; }
.staff-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: staff-spin .8s linear infinite;
}
.staff-loading, .staff-error {
  margin: 16px 12px;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.staff-loading { display: flex; align-items: center; justify-content: center; gap: 8px; }
.staff-loading .staff-spinner { border-color: #dfe6f2; border-top-color: var(--brand); }
.staff-error { color: #b62f2f; }
.staff-retry {
  margin-left: 8px;
  padding: 3px 10px;
  border: 1px solid #ffd6d6;
  border-radius: 6px;
  background: #fff;
  color: #b62f2f;
  cursor: pointer;
}
@keyframes staff-spin { to { transform: rotate(360deg); } }

@media (min-width: 760px) {
  .staff-page { max-width: 760px; margin: 0 auto; box-shadow: 0 0 40px rgba(15, 27, 45, .08); }
}.staff-top .env-badge { max-width: 150px; padding: 2px 8px; font-size: 10px; }
.staff-top .env-badge .dot { width: 6px; height: 6px; }
/* ============================================================
   设置中心（task-45）：表格行高 44、浅色表头、留白加大
   ============================================================ */
.nav-item.nav-sub { padding-left: 30px; font-size: 13px; }
.nav-item.nav-sub .ico { font-size: 12px; opacity: .75; }

.settings-page { padding: 20px 24px 32px; max-width: 1320px; }
.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.settings-head h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--ink); }
.settings-head .sub { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); max-width: 860px; }
.settings-head .sub b { color: var(--ink-2); font-weight: 600; }
.settings-head .toolbar { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .06);
  overflow: hidden;
}
.settings-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 8px 12px; }

/* 表格：行高 44、表头浅灰（不再满屏蓝底） */
.settings-table { --el-table-border-color: #eef0f3; }
.settings-table th.el-table__cell {
  background: #f8fafc !important;
  color: #374151 !important;
  font-weight: 600;
  font-size: 13px;
  height: 44px;
  border-bottom: 1px solid #e5e7eb;
}
.settings-table .el-table__cell { padding: 9px 0; }
.settings-table .el-table__row { height: 44px; }
.settings-table .el-table__row td { font-size: 13px; color: var(--ink-2); }
.settings-table .el-table__body tr:hover > td.el-table__cell { background: #f8faff; }
.settings-table .el-tag { border-radius: 4px; }
.settings-table .el-button.is-link { font-size: 13px; }

/* 打印模板：列表 + 静态预览 */
.settings-print-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
.settings-preview { padding: 16px; min-height: 320px; }
.preview-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.preview-title .muted { font-size: 12px; font-weight: 400; }
.paper {
  margin: 0 auto;
  padding: 12px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .06);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
}
.paper--label { text-align: center; }
.paper-head { font-size: 14px; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 4px; }
.paper-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper-amount { font-weight: 700; color: var(--ink); }
.paper-code { text-align: center; font-size: 20px; font-weight: 800; letter-spacing: 2px; margin: 4px 0; color: var(--ink); }
.barcode { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 34px; margin: 6px auto 2px; }
.barcode i { display: block; background: #111827; height: 100%; }

@media (max-width: 1100px) {
  .settings-print-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .settings-page { padding: 12px; }
  .settings-head { flex-direction: column; }
  .settings-head .toolbar { width: 100%; }
  .settings-head .toolbar .el-button { flex: 1; }
  .settings-page .el-dialog { max-width: 92vw; margin-top: 8vh; }
  .settings-page .el-col { max-width: 100%; flex: 0 0 100%; }
  .settings-filters .el-select, .settings-filters .el-date-editor { width: 100% !important; }
}
/* ============================================================
   通用配置表单（task-52，真 API）
   ============================================================ */
.mono { font-family: Consolas, 'SF Mono', Menlo, monospace; font-variant-numeric: tabular-nums; }

.config-page { padding: 20px 24px 32px; max-width: 1180px; }
.config-card { padding: 6px 20px 14px; }
.config-loading { padding: 28px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.cfg-spinner {
  width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  border: 2px solid #e5e7eb; border-top-color: var(--brand); animation: cfg-spin .8s linear infinite;
}
@keyframes cfg-spin { to { transform: rotate(360deg); } }
.config-group-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.config-group-meta b { color: var(--ink-2); }
.cfg-mode { font-size: 10px; padding: 1px 7px; border-radius: 4px; background: #fff7e6; color: #b45309; border: 1px solid #fde68a; }
.cfg-mode.api { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.config-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.config-row:last-of-type { border-bottom: 0; }
.config-label { min-width: 0; }
.config-name { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.config-key { margin-top: 3px; font-size: 11px; color: var(--muted-2); font-family: Consolas, monospace; }
.config-updated { margin-top: 2px; font-size: 11px; color: var(--muted-2); }
.config-control { min-width: 0; }
.config-control > .el-input, .config-control > .el-textarea { max-width: 640px; }
.config-hint { margin-top: 6px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.secret-block { max-width: 520px; }
.secret-masked {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 12px; color: var(--ink-2); background: #f8fafc; border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 10px;
}
.secret-actions { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.cfg-warn { font-size: 12px; color: #b45309; }
.upload-block { display: flex; gap: 14px; align-items: flex-start; }
.upload-preview {
  width: 96px; height: 96px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 96px;
}
.upload-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.upload-empty { font-size: 11px; color: var(--muted-2); }
.upload-meta { flex: 1; min-width: 0; align-items: flex-start; font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.upload-meta .el-button { width: auto; flex: none; }
.upload-meta .mono { word-break: break-all; color: var(--ink-2); }
.config-errors {
  margin-top: 12px; padding: 10px 12px; border: 1px solid #fecaca; background: #fef2f2;
  border-radius: 8px; color: #b91c1c; font-size: 12px; line-height: 1.8;
}
.config-test { margin-top: 16px; padding: 16px 20px; }
.cfg-test-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.cfg-test-msg { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.cfg-test-json {
  margin: 10px 0 0; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 6px; font-size: 11px; line-height: 1.6; max-height: 220px; overflow: auto; white-space: pre-wrap;
}

/* 首页装修 */
.theme-page { max-width: 1180px; }
.theme-card { padding: 14px 18px 18px; }
.theme-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 2px 0 12px; border-bottom: 1px solid var(--line); }
.theme-count { font-size: 12px; color: var(--muted); }
.theme-add { display: flex; gap: 8px; align-items: center; }
.theme-empty { padding: 36px 12px; text-align: center; }
.theme-empty-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.theme-module {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.theme-module:last-child { border-bottom: 0; }
.theme-module.off { opacity: .6; }
.tm-index {
  width: 26px; height: 26px; border-radius: 6px; background: #f3f4f6; color: var(--ink-2);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.tm-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tm-name { font-size: 14px; font-weight: 600; }
.tm-summary { margin-top: 2px; font-size: 12px; color: var(--muted); }
.tm-actions { display: flex; align-items: center; gap: 8px; }
.banner-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.banner-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.theme-json-tip { margin-top: 12px; font-size: 11px; }

@media (max-width: 900px) {
  .config-page, .theme-page { padding: 12px; }
  .settings-head { flex-direction: column; }
  .settings-head .toolbar { width: 100%; }
  .settings-head .toolbar .el-button { flex: 1; }
  .config-row { grid-template-columns: 1fr; gap: 10px; }
  .theme-module { grid-template-columns: 30px minmax(0, 1fr); }
  .tm-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .config-control > .el-input, .config-control > .el-textarea { max-width: 100%; }
}
/* ============================================================
   B2 管理页：消息模板 / 打印模板 / 优惠券（task-55）
   ============================================================ */
.b2-page { padding: 20px 24px 32px; max-width: 1400px; }
.source-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  background: #fff7e6; color: #b45309; border: 1px solid #fde68a;
}
.source-badge.api { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.b2-list-title { font-size: 12px; color: var(--muted); padding: 10px 12px 6px; }

/* 消息模板 */
.b2-messages-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.b2-scene-list { padding: 4px 6px 8px; }
.b2-scene {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; margin: 2px 0;
  color: var(--ink-2); font-size: 13px;
}
.b2-scene:hover { background: #f8fafc; }
.b2-scene.on { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.b2-scene-channels { display: flex; gap: 3px; }
.b2-scene-channels i {
  display: inline-flex; width: 16px; height: 16px; border-radius: 4px;
  align-items: center; justify-content: center; font-style: normal; font-size: 9px;
  background: #f3f4f6; color: var(--muted-2);
}
.b2-scene-channels i.on { background: var(--brand); color: #fff; }
.b2-editor { padding: 16px 20px 20px; }
.b2-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.b2-field { margin-bottom: 14px; }
.b2-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.b2-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.b2-var-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.var-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 5px;
  padding: 2px 7px; font-size: 11px; color: var(--ink-2); cursor: pointer;
}
.var-btn:hover { border-color: var(--brand); color: var(--brand); }
.b2-body-input.has-invalid :deep(.el-textarea__inner) { border-color: #ef4444; box-shadow: 0 0 0 1px #ef4444 inset; }
.b2-body-input.has-invalid .el-textarea__inner { border-color: #ef4444; }
.invalid-count { font-size: 11px; color: #b91c1c; background: #fef2f2; border-radius: 4px; padding: 1px 6px; font-weight: 500; }
.b2-invalid-tip { margin-top: 8px; font-size: 12px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 7px 10px; line-height: 1.7; }
.b2-invalid-tip b { margin-right: 6px; font-family: Consolas, monospace; }
.b2-preview { border-top: 1px solid var(--line); padding-top: 14px; }
.b2-preview-head { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.phone-card { max-width: 420px; border: 1px solid var(--line); border-radius: 12px; background: #f7f8fa; padding: 14px; }
.phone-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.phone-body { margin-top: 8px; font-size: 13px; line-height: 1.9; color: var(--ink-2); white-space: pre-wrap; }
.phone-foot { margin-top: 10px; font-size: 11px; color: var(--muted-2); border-top: 1px dashed var(--line); padding-top: 8px; }
.var-valid { color: #047857; background: #ecfdf5; border-radius: 3px; padding: 0 3px; }
.var-invalid { color: #fff; background: #dc2626; border-radius: 3px; padding: 0 3px; font-weight: 600; }
.test-preview { padding: 4px 2px; }
.tp-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.tp-title { font-size: 16px; font-weight: 700; }
.tp-body { margin-top: 8px; font-size: 14px; line-height: 1.9; color: var(--ink-2); white-space: pre-wrap; }
.tp-tip { margin-top: 14px; font-size: 11px; color: var(--muted-2); }

/* 打印模板 */
.b2-print-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
.b2-template-list { padding: 4px 6px 10px; }
.b2-template-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px;
  width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; margin: 3px 0;
  color: var(--ink-2); font-size: 13px;
}
.b2-template-item:hover { background: #f8fafc; }
.b2-template-item.on { background: var(--brand-soft); }
.bt-name { font-weight: 600; color: var(--ink); }
.bt-meta { grid-column: 1; font-size: 11px; color: var(--muted); }
.bt-state { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 10px; color: var(--muted-2); }
.b2-print-editor { padding: 16px 20px 20px; }
.b2-print-columns { display: grid; grid-template-columns: 1fr; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.b2-field-order { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dashed var(--line); flex-wrap: nowrap; }
.fo-index { width: 20px; height: 20px; border-radius: 5px; background: #f3f4f6; color: var(--muted); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.fo-name { flex: 1; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.b2-preview-panel { padding: 14px 16px 16px; }
.b2-preview-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.b2-paper-wrap { display: flex; justify-content: center; padding: 10px 0; background: #f7f8fa; border-radius: 8px; }
.b2-paper {
  background: #fff; color: #111827; padding: 12px 10px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(17,24,39,.08); font-family: Consolas, 'Courier New', monospace;
  font-size: 12px; line-height: 1.65; min-height: 180px;
}
.paper-header { text-align: center; font-weight: 700; font-size: 13px; }
.paper-footer { text-align: center; font-size: 11px; color: #374151; }
.paper-sep { color: #9ca3af; letter-spacing: -1px; text-align: center; font-size: 10px; }
.paper-line { display: flex; gap: 6px; align-items: flex-start; white-space: pre-line; }
.paper-key { color: #6b7280; flex: 0 0 64px; font-size: 9px; padding-top: 1px; }
.paper-value { flex: 1; min-width: 0; word-break: break-all; }
.paper-strong .paper-value { font-weight: 700; }
.paper-barcode { display: flex; align-items: flex-end; justify-content: center; gap: 1px; height: 34px; margin: 4px 0; }
.paper-barcode i { display: block; height: 100%; background: #111827; }
.paper-pickup { text-align: center; margin: 4px 0; }
.pp-label { font-size: 10px; color: #6b7280; }
.pp-code { font-size: 24px; font-weight: 800; letter-spacing: 3px; }
.b2-preview-tip { margin-top: 10px; font-size: 11px; color: var(--muted-2); line-height: 1.6; }

/* 优惠券 */
.b2-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.b2-stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; box-shadow: 0 1px 3px rgba(17,24,39,.06); }
.b2-stat-num { font-size: 24px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.b2-stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.issue-panel { padding: 2px 2px 4px; }
.issue-coupon-name { font-size: 15px; font-weight: 700; }
.issue-remain { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.issue-remain b { font-size: 22px; color: var(--brand); margin: 0 4px; }
.issue-remain b.danger { color: #b91c1c; }
.issue-progress { height: 6px; border-radius: 999px; background: #eef0f3; overflow: hidden; margin: 8px 0 14px; }
.issue-progress div { height: 100%; background: var(--brand); border-radius: 999px; }
.issue-condition { display: flex; justify-content: space-between; gap: 8px; }
.issue-qty { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }

@media (max-width: 1200px) {
  .b2-print-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .b2-preview-panel { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .b2-page { padding: 12px; }
  .b2-messages-layout, .b2-print-layout { grid-template-columns: 1fr; }
  .b2-preview-panel { grid-column: auto; }
  .b2-grid2, .b2-print-columns { grid-template-columns: 1fr; }
  .b2-stat-row { grid-template-columns: repeat(2, 1fr); }
}
/* ============================================================
   S2 运营页：员工 / 角色 / 客户 / 会员卡（task-59）
   ============================================================ */
.s2-page { padding: 20px 24px 32px; max-width: 1440px; }
.s2-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.s2-stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; box-shadow: 0 1px 3px rgba(17,24,39,.06); }
.s2-num { font-size: 24px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.s2-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.s2-list-card { padding: 0; overflow: hidden; }
.s2-toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.s2-search { max-width: 360px; }
.s2-total { font-size: 12px; margin-left: auto; }
.s2-total b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.s2-sub { font-size: 11px; color: var(--muted-2); margin-top: 1px; }
.s2-link { color: var(--brand); font-size: 13px; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; }
.s2-link:hover { text-decoration: underline; }
.s2-pager { display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }
.s2-empty { padding: 26px 0 30px; text-align: center; }
.s2-empty-ico { font-size: 30px; margin-bottom: 6px; }
.s2-empty-title { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.s2-empty-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 员工/弹窗通用 */
.s2-dialog-tip { font-size: 13px; color: var(--ink-2); background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; line-height: 1.6; }
.s2-dialog-tip b { color: var(--ink); }
.s2-total-bar { margin: 2px 0 14px; padding: 10px 12px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; font-size: 13px; color: #075985; }
.s2-total-bar b { color: #0c4a6e; font-size: 16px; margin: 0 2px; }
.s2-total-bar .muted { margin-left: 6px; font-size: 11px; }
.s2-once-pwd { background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; }
.op-label { font-size: 12px; color: var(--muted); }
.op-value { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 10px; }
.op-value code { font-family: Consolas, monospace; font-size: 24px; font-weight: 800; letter-spacing: 2px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
.op-tip { font-size: 12px; color: #b91c1c; line-height: 1.7; }
.s2-pos { color: #047857; }
.s2-neg { color: #b91c1c; }

/* 角色权限 */
.s2-roles-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.s2-role-list { padding: 4px 6px 10px; }
.s2-list-title { font-size: 12px; color: var(--muted); padding: 10px 12px 6px; }
.s2-role-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 11px; border-radius: 8px; margin: 2px 0; color: var(--ink-2); }
.s2-role-item:hover { background: #f8fafc; }
.s2-role-item.on { background: var(--brand-soft); }
.sr-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sr-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.sr-name small { font-size: 10px; color: var(--muted-2); font-weight: 400; margin-left: 4px; }
.sr-desc { font-size: 11px; color: var(--muted); }
.sr-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.s2-perm-panel { padding: 16px 20px 0; }
.s2-perm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.s2-perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 6px; }
.s2-perm-module { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.spm-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.spm-head .el-checkbox__label { font-weight: 700; color: var(--ink); }
.spm-count { font-size: 11px; color: var(--muted-2); }
.spm-body { padding: 9px 12px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.spm-body .el-checkbox { height: 26px; margin-right: 0; }
.s2-perm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; margin-top: 12px; }

/* 客户详情 */
.s2-detail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.s2-back { border: 0; background: none; color: var(--brand); font-size: 13px; cursor: pointer; padding: 0; }
.s2-detail-actions { display: flex; gap: 8px; }
.s2-customer-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: linear-gradient(135deg, #172554, #1e3a8a); color: #fff; border-radius: 14px; margin-bottom: 14px; box-shadow: 0 6px 20px rgba(15,23,42,.16); }
.sch-avatar { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex: 0 0 auto; }
.sch-main { flex: 1; min-width: 0; }
.sch-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sch-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 5px; font-size: 12px; color: rgba(255,255,255,.72); }
.sch-kpis { display: flex; gap: 24px; text-align: right; }
.sch-kpis > div { display: flex; flex-direction: column; gap: 2px; }
.sch-kpis b { font-size: 17px; }
.sch-kpis span { font-size: 10px; color: rgba(255,255,255,.64); }
.s2-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.s2-info-card { padding: 14px 16px; }
.s2-info-title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.s2-tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.s2-remark { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.s2-recent { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.s2-tabs-card { padding: 4px 16px 16px; }
.s2-tabs-card .el-tabs__header { margin-bottom: 8px; }
.s2-card-detail { padding: 0 4px 20px; }
.scd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.scd-card-no { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.scd-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.scd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.scd-kpis > div { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.scd-kpis span { font-size: 11px; color: var(--muted); }
.scd-kpis b { font-size: 16px; color: var(--ink); }
.s2-drawer-actions { display: flex; gap: 8px; margin-bottom: 16px; }

@media (max-width: 1200px) {
  .s2-stat-row { grid-template-columns: repeat(2, 1fr); }
  .s2-roles-layout { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .s2-page { padding: 12px; }
  .s2-roles-layout, .s2-info-grid { grid-template-columns: 1fr; }
  .s2-perm-grid, .spm-body { grid-template-columns: 1fr; }
  .s2-customer-hero { flex-wrap: wrap; }
  .sch-kpis { width: 100%; justify-content: space-between; text-align: left; }
  .s2-toolbar { align-items: stretch; }
  .s2-search { max-width: none; width: 100%; }
  .s2-total { margin-left: 0; }
}.s2-field-hint { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.s2-field-hint b { color: var(--ink-2); }
/* ============================================================
   task-62 数据看板（原生 SVG 图表，无 ECharts）
   ============================================================ */
.dash-page { padding: 18px 22px 26px; max-width: 1440px; }
.dash-head { margin-bottom: 12px; }
.dash-updated { font-size: 11px; color: var(--muted-2); }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.dash-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: 0 1px 3px rgba(17,24,39,.05); position: relative; overflow: hidden; }
.dash-kpi::after { content: ''; position: absolute; right: -20px; top: -24px; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.08), transparent 68%); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-ico { width: 24px; height: 24px; border-radius: 7px; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.kpi-value { font-size: 26px; line-height: 1.2; font-weight: 800; color: var(--ink); margin: 6px 0 5px; font-variant-numeric: tabular-nums; }
.kpi-value-money { font-size: 24px; letter-spacing: -.5px; }
.kpi-foot { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.kpi-delta { font-weight: 700; padding: 1px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.kpi-delta.up { color: #047857; background: #ecfdf5; }
.kpi-delta.down { color: #b91c1c; background: #fef2f2; }
.kpi-delta.flat { color: var(--muted); background: #f3f4f6; }
.kpi-yesterday { color: var(--muted-2); }
.dash-mid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: 12px; margin-bottom: 12px; }
.dash-bottom { display: grid; grid-template-columns: 1fr 1fr 1.18fr; gap: 12px; align-items: stretch; }
.dash-card { padding: 11px 14px 11px; border-radius: 12px; }
.dash-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dash-card-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.dash-card-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.dash-card-sub b { color: var(--ink-2); }
.dash-seg { display: inline-flex; background: #f3f4f6; border-radius: 6px; padding: 2px; gap: 1px; flex: 0 0 auto; }
.dash-seg button { border: 0; background: transparent; font-size: 11px; color: var(--muted); padding: 3px 8px; border-radius: 5px; cursor: pointer; white-space: nowrap; }
.dash-seg button.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(17,24,39,.08); }
.dash-svg { width: 100%; height: auto; display: block; overflow: visible; }
.svg-grid line { stroke: #eef0f3; stroke-width: 1; }
.svg-ylabels text, .svg-xlabels text { fill: #98a2b3; font-size: 10px; }
.svg-line { fill: none; stroke: #2563eb; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.svg-dot { fill: #fff; stroke: #2563eb; stroke-width: 2; }
.dash-empty { min-height: 160px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; background: #fafbfc; border-radius: 8px; }
.store-bars { display: flex; flex-direction: column; gap: 11px; padding-top: 4px; }
.store-row { display: flex; flex-direction: column; gap: 4px; }
.store-name { font-size: 12px; color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; }
.store-share { color: var(--muted-2); font-weight: 400; }
.store-bar-wrap { height: 8px; border-radius: 999px; background: #f1f3f6; overflow: hidden; }
.store-bar { height: 100%; border-radius: 999px; transition: width .25s ease; }
.store-nums { display: flex; align-items: baseline; justify-content: space-between; font-size: 10px; color: var(--muted); }
.store-nums b { font-size: 12px; color: var(--ink); }
.structure-body { display: flex; align-items: center; gap: 6px; }
.donut { width: 142px; height: 142px; flex: 0 0 auto; }
.donut-bg { fill: none; stroke: #f1f3f6; stroke-width: 20; }
.donut-total { font-size: 22px; font-weight: 800; fill: var(--ink); }
.donut-sub { font-size: 10px; fill: var(--muted); }
.legend { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.legend-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); }
.legend-row i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.legend-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.legend-count { color: var(--muted-2); width: 36px; text-align: right; }
.service-bars { display: flex; flex-direction: column; gap: 13px; padding-top: 8px; }
.service-row { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-2); }
.service-name { width: 42px; flex: 0 0 auto; color: var(--muted); }
.service-track { flex: 1; height: 8px; border-radius: 999px; background: #f1f3f6; overflow: hidden; }
.service-fill { height: 100%; border-radius: 999px; }
.service-val { width: 30px; text-align: right; font-weight: 700; color: var(--ink); }
.service-count { width: 38px; text-align: right; color: var(--muted-2); }
.todo-total { font-size: 11px; color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.todo-list { display: flex; flex-direction: column; gap: 6px; }
.todo-item { border-radius: 9px; padding: 6px 9px; border: 1px solid; }
.todo-red { background: #fff5f5; border-color: #fecaca; }
.todo-orange { background: #fff7ed; border-color: #fed7aa; }
.todo-amber { background: #fffbeb; border-color: #fde68a; }
.todo-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink); }
.todo-top b { font-size: 16px; color: #b91c1c; font-variant-numeric: tabular-nums; }
.todo-item.todo-orange .todo-top b, .todo-item.todo-amber .todo-top b { color: #b45309; }
.todo-desc { font-size: 9px; color: var(--muted); margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-li { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--muted); margin-top: 2px; padding-top: 2px; border-top: 1px dashed rgba(17,24,39,.08); }
.todo-li .mono { color: var(--ink-2); flex: 0 0 auto; }
.todo-li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-days { color: #b91c1c; font-weight: 600; white-space: nowrap; }

@media (max-width: 1200px) {
  .dash-mid { grid-template-columns: 1fr; }
  .dash-bottom { grid-template-columns: 1fr 1fr; }
  .todo-card { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .dash-page { padding: 12px; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-bottom { grid-template-columns: 1fr; }
  .todo-card { grid-column: auto; }
  .kpi-value { font-size: 22px; }
  .structure-body { justify-content: center; }
}
/* task-66 消息中心 */
.msg-channel-banner { display: flex; align-items: center; gap: 11px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; }
.mcb-ico { width: 22px; height: 22px; border-radius: 50%; background: #f59e0b; color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mcb-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.mcb-main b { font-size: 13px; color: #92400e; }
.mcb-main span { font-size: 12px; color: #a16207; }
.mcb-links { display: flex; gap: 4px; flex: 0 0 auto; }
.msg-stats { margin-bottom: 12px; }
.msg-ok { color: #047857; }
.msg-fail { color: #b91c1c; }
.msg-error { color: #b91c1c; font-size: 11px; }
.msg-compose { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 20px; align-items: start; }
.msg-preview-pane { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mpp-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.msg-phone { max-width: none; background: #fff; min-height: 190px; }
.msg-preview-tip { font-size: 11px; color: var(--muted-2); line-height: 1.7; margin-top: 9px; }
.msg-form-pane { min-width: 0; }
.msg-vars { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; }
.msg-vars-title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.msg-var-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.msg-var-name { flex: 0 0 120px; font-size: 12px; color: #1d4ed8; background: #eff6ff; border-radius: 4px; padding: 3px 6px; }
@media (max-width: 900px) {
  .msg-compose { grid-template-columns: 1fr; }
  .msg-channel-banner { align-items: flex-start; flex-wrap: wrap; }
  .mcb-links { width: 100%; }
}
/* task-69 配送管理（后台） */
.dd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dd-no { font-size: 18px; font-weight: 800; }
.dd-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0 18px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.dd-kv > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dd-kv span { font-size: 10px; color: var(--muted); }
.dd-kv b { font-size: 12px; color: var(--ink-2); line-height: 1.5; word-break: break-all; }
.delivery-timeline { display: flex; align-items: flex-start; gap: 2px; margin-bottom: 16px; }
.dt-item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; position: relative; }
.dt-item::before { content: ''; position: absolute; top: 5px; left: -50%; width: 100%; height: 1px; background: var(--line); }
.dt-item:first-child::before { display: none; }
.dt-dot { width: 11px; height: 11px; border-radius: 50%; background: #e5e7eb; border: 2px solid #fff; box-shadow: 0 0 0 1px #e5e7eb; z-index: 1; }
.dt-item.done .dt-dot, .dt-item.current .dt-dot { background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.dt-label { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.dt-time { font-size: 9px; color: var(--muted-2); }
.track-placeholder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.track-map { position: relative; min-height: 150px; border-radius: 10px; background: linear-gradient(135deg, #f1f5f9, #e8eef7); border: 1px solid var(--line); overflow: hidden; }
.track-dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(37,99,235,.35); }
.track-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.track-list { max-height: 150px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff; }
.track-row { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); padding: 5px 0; border-bottom: 1px dashed var(--line); }
.track-row:last-child { border-bottom: 0; }
.delivery-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.dp-photo { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.dp-label { font-size: 11px; color: var(--muted); padding: 6px 9px; background: #f8fafc; }
.dp-photo img { display: block; width: 100%; height: 130px; object-fit: cover; background: #f3f4f6; }
.dp-empty { height: 130px; display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 11px; background: #fafbfc; }
.dd-actions { display: flex; gap: 8px; }

/* task-69 骑手端 H5（移动优先） */
.rider-page { min-height: 100vh; background: #f4f6fa; max-width: 520px; margin: 0 auto; padding: 0 0 30px; color: var(--ink); }
.rider-page * { box-sizing: border-box; }
.rider-btn { border: 0; border-radius: 12px; font-size: 14px; font-weight: 700; min-height: 46px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; text-decoration: none; }
.rider-btn-primary { background: var(--brand); color: #fff; }
.rider-btn-primary:disabled { opacity: .55; }
.rider-btn-light { background: #eef4ff; color: var(--brand); }
.rider-btn-ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.rider-btn-sm { min-height: 36px; font-size: 12px; border-radius: 9px; padding: 0 12px; }
.rider-btn-xl { width: 100%; min-height: 56px; font-size: 18px; border-radius: 14px; }
.rider-source-badge { font-size: 10px; font-weight: 700; background: #fff7e6; color: #b45309; border: 1px solid #fde68a; border-radius: 999px; padding: 2px 7px; }
.rider-login-page { padding: 0 22px; background: linear-gradient(180deg, #0b1b3a 0%, #123061 38%, #f4f6fa 38.2%); }
.rider-login-hero { padding: 46px 4px 26px; color: #fff; }
.rl-logo { width: 46px; height: 46px; border-radius: 13px; background: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.rl-brand { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.rl-sub { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 5px; }
.rider-login-card { background: #fff; border-radius: 18px; padding: 22px 18px 18px; box-shadow: 0 6px 24px rgba(17,24,39,.08); position: relative; }
.rl-title { font-size: 20px; font-weight: 800; }
.rl-tip { font-size: 12px; color: var(--muted); margin: 4px 0 18px; line-height: 1.6; }
.rl-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 12px 0 6px; }
.rider-input { width: 100%; height: 54px; border: 1px solid var(--line); border-radius: 12px; font-size: 18px; padding: 0 14px; background: #fff; color: var(--ink); }
.rider-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.rider-login-card .rider-btn-primary { width: 100%; margin-top: 20px; min-height: 54px; font-size: 18px; }
.rl-demo { margin-top: 14px; font-size: 11px; color: var(--muted-2); line-height: 1.8; background: #f8fafc; border-radius: 8px; padding: 8px 10px; }
.rider-login-card .rider-source-badge { position: absolute; top: 16px; right: 16px; }
.rider-login-foot { text-align: center; color: var(--muted-2); font-size: 10px; margin-top: 20px; }
.rider-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; background: #0f274d; color: #fff; }
.rider-top-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rider-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.rider-name { font-size: 16px; font-weight: 700; }
.rider-meta { font-size: 10px; color: rgba(255,255,255,.6); margin-top: 2px; }
.rider-top-actions { display: flex; align-items: center; gap: 8px; }
.rider-top-actions .rider-source-badge { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.18); }
.rider-logout { border: 0; background: transparent; color: rgba(255,255,255,.7); font-size: 12px; }
.rider-income { display: flex; align-items: center; gap: 14px; background: #fff; margin: 12px 14px 0; border-radius: 14px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(17,24,39,.05); }
.ri-item { flex: 1; }
.ri-num { font-size: 22px; font-weight: 800; color: var(--ink); }
.ri-label { font-size: 10px; color: var(--muted); margin-top: 2px; }
.ri-divider { width: 1px; align-self: stretch; background: var(--line); }
.ri-online { font-size: 11px; font-weight: 700; color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; padding: 5px 9px; }
.ri-online.on { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.rider-tabs { display: flex; gap: 8px; padding: 12px 14px 8px; }
.rider-tab { flex: 1; min-height: 44px; border-radius: 11px; background: #eef1f6; color: var(--muted); font-size: 14px; font-weight: 700; border: 0; position: relative; }
.rider-tab.on { background: var(--brand); color: #fff; }
.rider-tab-count { background: #ef4444; color: #fff; font-size: 10px; border-radius: 999px; padding: 0 5px; margin-left: 4px; }
.rider-task-list { padding: 4px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.rider-task-card { background: #fff; border-radius: 14px; padding: 13px 14px; box-shadow: 0 2px 8px rgba(17,24,39,.05); border: 1px solid #eef1f6; }
.rtc-top { display: flex; align-items: center; justify-content: space-between; }
.rtc-type { font-size: 12px; font-weight: 700; color: var(--brand); }
.rtc-status { font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: #f3f4f6; color: var(--muted); }
.rtc-status.pending { background: #fff7ed; color: #b45309; }
.rtc-status.active { background: #eff6ff; color: #1d4ed8; }
.rtc-status.delivered { background: #ecfdf5; color: #047857; }
.rtc-status.completed { background: #f1f5f9; color: #64748b; }
.rtc-address { font-size: 19px; line-height: 1.35; font-weight: 800; margin: 7px 0 4px; color: var(--ink); }
.rtc-customer { font-size: 13px; color: var(--ink-2); }
.rtc-customer a { color: var(--brand); text-decoration: none; }
.rtc-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.rtc-window { color: #b45309; background: #fffbeb; border-radius: 5px; padding: 2px 6px; font-weight: 700; }
.rtc-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 9px; margin-top: 10px; gap: 8px; }
.rtc-no { font-size: 10px; color: var(--muted-2); }
.rtc-done { font-size: 10px; color: var(--muted-2); }
.rider-empty { padding: 70px 20px; text-align: center; }
.re-ico { font-size: 40px; }
.re-title { font-size: 16px; font-weight: 700; margin-top: 8px; }
.re-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.rider-loading { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rider-footer { padding: 18px 16px 26px; text-align: center; font-size: 10px; color: var(--muted-2); }
.rider-detail-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #0f274d; color: #fff; position: sticky; top: 0; z-index: 5; }
.rider-back { border: 0; background: transparent; color: #fff; font-size: 24px; width: 34px; height: 34px; }
.rdt-title { font-size: 16px; font-weight: 700; flex: 1; }
.rider-address-card { background: #fff; margin: 12px 14px 0; border-radius: 15px; padding: 14px; box-shadow: 0 2px 8px rgba(17,24,39,.05); }
.rac-status { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: #eff6ff; color: #1d4ed8; }
.rac-status.pending { background: #fff7ed; color: #b45309; }
.rac-status.delivered { background: #ecfdf5; color: #047857; }
.rac-status.completed { background: #f1f5f9; color: #64748b; }
.rac-address { font-size: 23px; font-weight: 800; line-height: 1.3; margin: 8px 0 5px; }
.rac-customer { font-size: 14px; color: var(--ink-2); }
.rac-actions { display: flex; gap: 8px; margin: 12px 0; }
.rac-actions .rider-btn { flex: 1; min-height: 42px; font-size: 12px; }
.rac-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 9px; }
.rac-window { color: #b45309; font-weight: 700; }
.rider-steps { display: flex; align-items: center; gap: 3px; padding: 14px 16px; }
.rs-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.rs-step::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: #e5e7eb; }
.rs-step:first-child::before { display: none; }
.rs-step.done::before { background: var(--brand); }
.rs-dot { width: 28px; height: 28px; border-radius: 50%; background: #eef1f6; color: var(--muted); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 1; }
.rs-step.done .rs-dot { background: var(--brand); color: #fff; }
.rs-step.current .rs-dot { box-shadow: 0 0 0 4px rgba(37,99,235,.16); }
.rs-label { font-size: 10px; color: var(--muted); }
.rs-step.done .rs-label { color: var(--ink-2); }
.rider-action-panel { background: #fff; margin: 2px 14px 0; border-radius: 15px; padding: 16px; box-shadow: 0 2px 8px rgba(17,24,39,.05); }
.rap-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.rap-hint { font-size: 11px; color: var(--muted-2); text-align: center; margin-top: 8px; }
.rap-success { font-size: 15px; font-weight: 700; color: #047857; text-align: center; margin-bottom: 12px; }
.rider-file-input { display: none; }
.rider-photo-btn { width: 100%; min-height: 190px; border-radius: 14px; border: 2px dashed #c7d2fe; background: #f6f8ff; color: #4f6b9a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 14px; margin-bottom: 12px; overflow: hidden; padding: 0; }
.rider-photo-btn.has { border-style: solid; border-color: var(--brand); }
.rider-photo-btn img { width: 100%; height: 190px; object-fit: cover; }
.rpb-ico { font-size: 34px; }
.rider-done-card { background: #fff; margin: 2px 14px 0; border-radius: 15px; padding: 22px 16px; text-align: center; box-shadow: 0 2px 8px rgba(17,24,39,.05); }
.rdc-ico { width: 54px; height: 54px; border-radius: 50%; background: #ecfdf5; color: #047857; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.rdc-title { font-size: 20px; font-weight: 800; }
.rdc-sub { font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.rdc-photos { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.rdc-photos img { width: 46%; height: 100px; object-fit: cover; border-radius: 8px; }
.rider-track { margin: 12px 14px 0; padding: 12px 14px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.rt-head { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.rt-live { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.rt-sub { font-size: 11px; color: var(--muted); margin: 5px 0 8px; }
.rider-error { margin: 12px 14px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 9px 12px; font-size: 12px; line-height: 1.6; }
@media (max-width: 520px) { .rider-page { max-width: none; } }