/* 司吉e通后台管理系统样式 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #111827;
  background:
    radial-gradient(circle at 78% 4%, rgba(250, 204, 21, 0.16), transparent 24%),
    linear-gradient(135deg, #eef6f5 0%, #f3f6fb 52%, #fff8e8 100%);
}

/* 登录页面 */
.login-page {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
  width: 400px;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-logo {
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
}

.login-title {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 18px;
}

.login-form input {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.login-form button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.login-form button:hover {
  opacity: 0.9;
}

/* 主页面 */
.main-page {
  display: flex;
  min-height: 100vh;
}

/* 顶部导航 */
.top-nav {
  position: fixed;
  top: 30px;
  left: 300px;
  right: 34px;
  min-height: 68px;
  background: #f8fafc;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  z-index: 100;
  pointer-events: none;
}

.nav-left {
  display: none;
}

.nav-left .logo {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.nav-left .subtitle {
  margin-left: 12px;
  color: #64748b;
  font-size: 14px;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  pointer-events: auto;
}

.admin-global-search {
  display: flex;
  align-items: center;
  width: clamp(360px, 38vw, 620px);
  min-width: 320px;
  height: 50px;
  padding: 0 6px 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(203, 213, 225, 0.72);
}

.admin-global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #334155;
  font-size: 14px;
}

.admin-global-search button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #0f172a;
  cursor: pointer;
}

.admin-name {
  margin-right: 0;
  color: #0f172a;
  background: #0f172a;
  color: #fff;
  padding: 13px 16px;
  border-radius: 16px;
  white-space: nowrap;
}

.admin-version {
  margin-right: 0;
  color: #667085;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
}

.logout-btn {
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 14px;
  cursor: pointer;
}

.logout-btn:hover {
  background: #e5e5e5;
}

/* 侧边栏 */
.sidebar {
  position: fixed;
  top: 30px;
  left: 0;
  bottom: 30px;
  width: 260px;
  margin-left: 34px;
  background: #0f1d2d;
  overflow-y: auto;
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.22);
  border-radius: 28px;
  padding: 28px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 8px 8px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.sidebar-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, #20d6b4 0%, #15a37e 100%);
}

.sidebar-brand-title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.sidebar-brand-subtitle {
  margin-top: 3px;
  color: #8ca3b9;
  font-size: 13px;
}

.menu-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  margin-bottom: 7px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 0;
  border-radius: 14px;
  color: #8fa6bc;
  gap: 12px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e5edf5;
}

.menu-item.active {
  background: rgba(45, 212, 191, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.16);
}

.menu-item .icon {
  width: 18px;
  margin-right: 0;
  font-size: 16px;
  opacity: 0.85;
}

.menu-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-weight: 700;
  flex-shrink: 0;
}

.menu-badge-danger {
  background: #f5222d;
  color: #fff;
}

.menu-badge-neutral {
  background: rgba(148, 163, 184, 0.22);
  color: #dbeafe;
}

.sidebar-reminder {
  margin-top: 28px;
  padding: 20px;
  border-radius: 20px;
  color: #dbeafe;
  background: rgba(30, 58, 88, 0.74);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-reminder div {
  color: #8fa6bc;
  margin-bottom: 12px;
}

.sidebar-reminder strong {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: block;
}

.sidebar-reminder:hover,
.sidebar-reminder:focus-visible {
  background: rgba(41, 69, 102, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  outline: none;
}

/* 内容区域 */
.content {
  flex: 0 0 calc(100% - 300px);
  margin-left: 300px;
  margin-top: 0;
  padding: 118px 40px 34px;
  width: calc(100% - 300px);
  max-width: calc(100vw - 300px);
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
}

.page {
  animation: fadeIn 0.3s;
  min-width: 0;
  max-width: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 24px;
  font-weight: 600;
}

.page-actions {
  display: flex;
  gap: 12px;
}

/* 统计卡片 */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  min-width: 0;
}

#page-platformLogs .stats-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.stat-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  min-width: 0;
}

#page-platformLogs .stat-card {
  flex: 1 1 220px;
  max-width: calc(50% - 8px);
  padding: 20px 18px;
}

.stat-icon {
  font-size: 40px;
  margin-right: 16px;
  flex: 0 0 auto;
}

#page-platformLogs .stat-icon {
  margin-right: 12px;
  font-size: 36px;
}

.stat-num {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  line-height: 1.1;
  word-break: break-word;
}

#page-platformLogs .stat-num {
  font-size: 26px;
}

.stat-label {
  color: #999;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#page-platformLogs .stat-label {
  font-size: 13px;
  line-height: 1.3;
}

/* 表格 */
.table-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.data-table th {
  background: #fafafa;
  font-weight: 600;
  color: #666;
  font-size: 13px;
}

.withdraw-records-container {
  overflow-x: auto;
}

.withdraw-records-table {
  table-layout: fixed;
  min-width: 1960px;
}

.withdraw-records-table th,
.withdraw-records-table td {
  white-space: nowrap;
}

.withdraw-records-table th {
  word-break: keep-all;
}

.regional-table-container {
  overflow-x: auto;
}

.regional-table {
  min-width: 1180px;
}

.regional-table th,
.regional-table td {
  white-space: nowrap;
}

.regional-editor {
  border: 1px solid rgba(45, 212, 191, 0.18);
}

.regional-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}

.regional-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.regional-form-grid input,
.regional-form-grid select {
  min-height: 38px;
}

.regional-form-wide {
  grid-column: 1 / -1;
}

.regional-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.regional-dashboard-stat {
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.regional-dashboard-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  word-break: break-word;
}

.regional-dashboard-stat-label {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.regional-dashboard-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto auto;
  gap: 10px;
  align-items: center;
}

.regional-dashboard-filter input,
.regional-dashboard-filter select {
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  box-sizing: border-box;
}

.regional-invite-user {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 180px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.regional-invite-user strong,
.regional-invite-user span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.regional-invite-user span {
  color: #64748b;
  font-size: 12px;
}

.regional-invite-user:hover strong {
  color: #0f766e;
  text-decoration: underline;
}

.regional-consume-btn {
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: nowrap;
  line-height: 1.2;
}

.regional-consume-empty {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  color: #1d4ed8;
  background: #eff6ff;
}

.regional-invite-table-container {
  overflow-x: auto;
}

.regional-invite-table {
  min-width: 980px;
}

.regional-invite-row {
  cursor: pointer;
}

.regional-invite-table th,
.regional-invite-table td {
  white-space: nowrap;
}

.regional-invite-table th:last-child,
.regional-invite-table td:last-child {
  text-align: center;
  width: 116px;
}

.data-table tr:hover {
  background: #fafafa;
}

.regional-invite-row:focus,
.regional-invite-row:hover {
  background: #ecfdf5;
  outline: none;
}

.data-table .status {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.exception-table-container {
  overflow-x: auto;
}

.exception-table {
  table-layout: fixed;
  min-width: 1260px;
}

.exception-table th,
.exception-table td {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.exception-table th:nth-child(1),
.exception-table td:nth-child(1) {
  width: 70px;
}

.exception-table th:nth-child(2),
.exception-table td:nth-child(2) {
  width: 170px;
}

.exception-table th:nth-child(3),
.exception-table td:nth-child(3) {
  width: 140px;
}

.exception-table th:nth-child(4),
.exception-table td:nth-child(4) {
  width: 300px;
}

.exception-table th:nth-child(5),
.exception-table td:nth-child(5) {
  width: 360px;
}

.exception-table th:nth-child(6),
.exception-table td:nth-child(6) {
  width: 110px;
}

.exception-table th:nth-child(7),
.exception-table td:nth-child(7) {
  width: 70px;
}

.exception-table th:nth-child(8),
.exception-table td:nth-child(8) {
  width: 180px;
}

.exception-message-cell,
.exception-request-cell {
  line-height: 1.5;
}

.status.pending {
  background: #fff7e6;
  color: #fa8c16;
}

.status.approved {
  background: #f6ffed;
  color: #389e0d;
}

.status.rejected {
  background: #fff2f0;
  color: #cf1322;
}

.status.active {
  background: #f6ffed;
  color: #52c41a;
}

.status.disabled {
  background: #f5f5f5;
  color: #999;
}

.status.fake {
  background: #fff2f0;
  color: #f5222d;
}

/* 按钮 */
.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-danger {
  padding: 6px 12px;
  background: #fff2f0;
  color: #f5222d;
  border: 1px solid #ffccc7;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-warning {
  padding: 6px 12px;
  background: #fff7e6;
  color: #fa8c16;
  border: 1px solid #ffd591;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-success {
  padding: 6px 12px;
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-soft {
  padding: 9px 15px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 12px;
  background: #eafbf7;
  color: #0f766e;
  cursor: pointer;
  font-weight: 700;
}

.btn-dark {
  padding: 10px 18px;
  border: 0;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.admin-dashboard-page {
  margin: -24px -40px -34px;
  min-height: 100vh;
  padding: 54px 40px 34px;
}

.admin-dashboard-shell {
  max-width: 1560px;
  margin: 0 auto;
}

.admin-dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.admin-dashboard-kicker {
  color: #0f766e;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-dashboard-hero h2 {
  margin: 0;
  color: #0f172a;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-dashboard-hero p {
  margin-top: 8px;
  color: #64748b;
  font-size: 16px;
}

.admin-dashboard-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.admin-metric-card {
  position: relative;
  min-height: 126px;
  padding: 24px 24px 20px;
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.18);
}

.admin-metric-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -44px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  opacity: 0.12;
  background: currentColor;
}

.admin-metric-card.green { color: #10b981; }
.admin-metric-card.blue { color: #4f7cff; }
.admin-metric-card.amber { color: #f59e0b; }
.admin-metric-card.red { color: #e64668; }

.admin-metric-mark {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: currentColor;
}

.admin-metric-label {
  display: block;
  color: #475569;
  font-size: 15px;
}

.admin-metric-card strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.admin-metric-card em {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 24px;
}

.admin-panel {
  min-width: 0;
  padding: 28px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.84);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.admin-panel-wide {
  grid-row: span 1;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-panel-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
}

.admin-panel-head p {
  margin-top: 7px;
  color: #64748b;
  line-height: 1.5;
}

.admin-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-inline-filters {
  display: grid;
  grid-template-columns: 140px 150px minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-inline-filters input,
.admin-inline-filters select {
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border-radius: 14px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
}

.admin-audit-list,
.admin-mini-list,
.admin-risk-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-audit-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5edf6;
}

.admin-audit-type {
  display: inline-flex;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-audit-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-audit-main strong,
.admin-audit-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-audit-main strong {
  color: #0f172a;
  font-size: 15px;
}

.admin-audit-main span,
.admin-audit-main small {
  color: #64748b;
  font-size: 12px;
}

.admin-audit-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.admin-radar-panel {
  background: rgba(255, 255, 255, 0.88);
}

.admin-radar-canvas {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(20, 184, 166, 0.18) 0 1px, transparent 1px 82px),
    linear-gradient(15deg, rgba(56, 189, 248, 0.18) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, #0a1a2c 0%, #0d2b3e 100%);
  border: 1px solid rgba(20, 184, 166, 0.26);
}

.admin-radar-canvas::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(45, 212, 191, 0.7);
  border-radius: 52% 43% 58% 47%;
  transform: rotate(-8deg);
}

.admin-radar-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1px;
  background: rgba(125, 211, 252, 0.42);
}

.admin-radar-line.l1 { transform: rotate(9deg); }
.admin-radar-line.l2 { transform: rotate(-48deg); }

.admin-radar-ring,
.admin-radar-center {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.admin-radar-ring {
  border: 1px solid rgba(45, 212, 191, 0.72);
  animation: adminRadarPulse 3.1s ease-in-out infinite;
}

.admin-radar-ring.r1 { width: 66px; height: 66px; }
.admin-radar-ring.r2 { width: 122px; height: 122px; animation-delay: .3s; }
.admin-radar-ring.r3 { width: 194px; height: 194px; animation-delay: .6s; }

.admin-radar-center {
  width: 22px;
  height: 22px;
  background: #2dd4bf;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.8);
}

@keyframes adminRadarPulse {
  0%, 100% { opacity: 0.48; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.admin-radar-dot {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #dbeafe;
  font-size: 12px;
}

.admin-radar-dot::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: currentColor;
}

.admin-radar-dot.low { left: 34%; top: 16%; color: #4f7cff; }
.admin-radar-dot.high { right: 24%; top: 63%; color: #f59e0b; }
.admin-radar-dot.risk { left: 38%; bottom: 10%; color: #ef4444; }

.admin-radar-chip {
  position: absolute;
  bottom: 14px;
  z-index: 4;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.admin-radar-chip.left { left: 20px; }
.admin-radar-chip.right { right: 20px; }

.admin-mini-row,
.admin-risk-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #e5edf6;
  border-radius: 15px;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
}

.admin-mini-row strong,
.admin-risk-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
}

.admin-mini-row em,
.admin-risk-row em {
  color: #475569;
  font-style: normal;
}

.admin-mini-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #14b8a6;
}

.admin-mini-dot.tone-2 { background: #4f7cff; }
.admin-mini-dot.tone-3 { background: #facc15; }

.admin-money-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-money-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-money-list span {
  color: #64748b;
}

.admin-money-list strong {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}

.admin-risk-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
  font-size: 12px;
}

.admin-risk-row em {
  min-width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-weight: 800;
}

.admin-panel-link {
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  color: #0f766e;
  background: #ecfdf5;
  font-weight: 800;
  cursor: pointer;
}

.admin-empty-block {
  padding: 22px;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

/* 后台科技感运营指挥台 */
.admin-dashboard-page {
  background:
    radial-gradient(circle at 76% 8%, rgba(56, 189, 248, 0.18), transparent 28%),
    radial-gradient(circle at 17% 18%, rgba(20, 184, 166, 0.22), transparent 30%),
    linear-gradient(135deg, #06111e 0%, #081827 46%, #0c2434 100%);
}

.admin-dashboard-shell {
  color: #e5f4ff;
}

.admin-dashboard-kicker {
  color: #5eead4;
  letter-spacing: 0;
}

.admin-dashboard-hero h2 {
  color: #f8fafc;
}

.admin-dashboard-hero p {
  color: #9fb8ca;
}

.admin-dashboard-hero-actions .btn-soft {
  color: #dffafe;
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(94, 234, 212, 0.24);
}

.admin-metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.admin-metric-card {
  min-height: 124px;
  padding: 20px 18px 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 35, 54, 0.92), rgba(8, 20, 34, 0.86));
  border-color: rgba(125, 211, 252, 0.18);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.28);
}

.admin-metric-card.cyan { color: #06b6d4; }
.admin-metric-card.violet { color: #8b5cf6; }

.admin-metric-label,
.admin-metric-card em {
  color: #9fb8ca;
}

.admin-metric-card strong {
  color: #f8fafc;
  font-size: 28px;
}

.admin-dashboard-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  gap: 18px;
}

.admin-panel {
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(12, 29, 45, 0.88), rgba(7, 18, 31, 0.84));
  border-color: rgba(125, 211, 252, 0.18);
  box-shadow: 0 22px 42px rgba(2, 6, 23, 0.30);
}

.admin-panel-head h3 {
  color: #f8fafc;
}

.admin-panel-head p,
.admin-panel .muted {
  color: #9fb8ca;
}

.admin-command-map-panel {
  min-height: 434px;
}

.admin-command-audit-panel {
  grid-column: 1 / -1;
}

.admin-command-map {
  position: relative;
  min-height: 318px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background:
    radial-gradient(circle at 50% 50%, rgba(45, 212, 191, 0.18), transparent 28%),
    linear-gradient(120deg, rgba(20, 184, 166, 0.13) 0 1px, transparent 1px 72px),
    linear-gradient(15deg, rgba(56, 189, 248, 0.13) 0 1px, transparent 1px 64px),
    linear-gradient(135deg, #020817 0%, #062033 52%, #0f3445 100%);
  box-shadow: inset 0 0 68px rgba(2, 6, 23, 0.42);
}

.admin-command-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.10) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 78%);
}

.admin-command-map-route {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.86), transparent);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.38);
  pointer-events: none;
}

.admin-command-map-route.r1 {
  left: 10%;
  right: 14%;
  top: 34%;
  transform: rotate(-8deg);
}

.admin-command-map-route.r2 {
  left: 18%;
  right: 8%;
  top: 56%;
  transform: rotate(12deg);
}

.admin-command-map-route.r3 {
  left: 30%;
  right: 20%;
  top: 72%;
  transform: rotate(-18deg);
}

.admin-command-map-radar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 148px;
  height: 148px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 212, 0.46);
  background:
    radial-gradient(circle, rgba(94, 234, 212, 0.20) 0 5px, transparent 6px),
    repeating-radial-gradient(circle, rgba(94, 234, 212, 0.20) 0 1px, transparent 1px 32px);
}

.admin-command-map-radar::before,
.admin-command-map-radar::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 212, 0.20);
  animation: liveMapPulse 2.4s ease-out infinite;
}

.admin-command-map-radar::after {
  inset: -38px;
  animation-delay: 0.8s;
}

.admin-command-map-points {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.admin-command-map-point {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.9);
  border: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
}

.admin-command-map-point::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.24);
  animation: liveMapPulse 1.8s ease-out infinite;
}

.admin-command-map-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  transform: translate(-50%, -50%);
  padding: 11px 16px;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.78);
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(125, 211, 252, 0.20);
}

.admin-command-map-foot {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cbd5e1;
  font-size: 12px;
}

.admin-command-map-foot strong {
  color: #5eead4;
}

.admin-command-todo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-command-todo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 14px 15px;
  border-radius: 15px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(15, 23, 42, 0.48);
  text-align: left;
  cursor: pointer;
}

.admin-command-todo-row strong {
  color: #f8fafc;
  font-size: 15px;
}

.admin-command-todo-row span {
  display: block;
  margin-top: 5px;
  color: #9fb8ca;
  font-size: 12px;
}

.admin-command-todo-row em {
  min-width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #082f49;
  background: #5eead4;
  font-style: normal;
  font-weight: 900;
}

.admin-audit-card,
.admin-mini-row,
.admin-risk-row {
  background: rgba(15, 23, 42, 0.50);
  border-color: rgba(125, 211, 252, 0.16);
}

.admin-audit-main strong,
.admin-mini-row strong,
.admin-risk-row strong,
.admin-money-list strong {
  color: #f8fafc;
}

.admin-audit-main span,
.admin-audit-main small,
.admin-money-list span,
.admin-mini-row em,
.admin-risk-row em {
  color: #9fb8ca;
}

.admin-inline-filters input,
.admin-inline-filters select {
  color: #e5f4ff;
  background: rgba(15, 23, 42, 0.56);
  border-color: rgba(125, 211, 252, 0.18);
}

.admin-inline-filters input::placeholder {
  color: #64748b;
}

.admin-panel-link {
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(94, 234, 212, 0.24);
}

.page:not(.admin-dashboard-page):not(.live-map-page) {
  max-width: 1560px;
  margin: 0 auto;
}

.page:not(.admin-dashboard-page):not(.live-map-page) .page-header {
  padding: 6px 0 2px;
}

.page:not(.admin-dashboard-page):not(.live-map-page) .page-header h2 {
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
}

.page:not(.admin-dashboard-page):not(.live-map-page) .form-section,
.page:not(.admin-dashboard-page):not(.live-map-page) .chart-section,
.page:not(.admin-dashboard-page):not(.live-map-page) .chart-box,
.page:not(.admin-dashboard-page):not(.live-map-page) .recent-section,
.page:not(.admin-dashboard-page):not(.live-map-page) .table-container,
.page:not(.admin-dashboard-page):not(.live-map-page) .stat-card {
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.84);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.page:not(.admin-dashboard-page):not(.live-map-page) .form-section h3,
.page:not(.admin-dashboard-page):not(.live-map-page) .section-head-row h3,
.page:not(.admin-dashboard-page):not(.live-map-page) .chart-section h3,
.page:not(.admin-dashboard-page):not(.live-map-page) .recent-section h3 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
  border-color: #dbe3ee;
  background: #f8fafc;
  border-radius: 12px;
}

.data-table th {
  background: #f8fafc;
  color: #475569;
}

.data-table td {
  color: #1f2937;
}

@media (max-width: 1280px) {
  .top-nav {
    left: 260px;
    right: 18px;
  }

  .admin-global-search {
    width: clamp(300px, 34vw, 480px);
    min-width: 280px;
  }

  .sidebar {
    width: 226px;
    margin-left: 18px;
    padding: 22px 16px;
  }

  .content {
    flex-basis: calc(100% - 260px);
    margin-left: 260px;
    width: calc(100% - 260px);
    max-width: calc(100vw - 260px);
    padding-left: 24px;
    padding-right: 24px;
  }

  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .top-nav {
    left: 0;
    right: 0;
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
  }

  .sidebar {
    display: none;
  }

  .content {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 110px;
    width: 100%;
    max-width: 100vw;
    padding: 18px;
  }

  .admin-dashboard-page {
    margin: -18px;
    padding: 18px;
  }

  .admin-global-search {
    width: 100%;
    min-width: 0;
  }

  .nav-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-dashboard-hero,
  .admin-panel-head {
    flex-direction: column;
  }

  .admin-metric-grid,
  .admin-inline-filters {
    grid-template-columns: 1fr;
  }

  .admin-audit-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.table-actions .btn-primary,
.table-actions .btn-success,
.table-actions .btn-warning,
.table-actions .btn-danger {
  padding: 6px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head-row h3 {
  margin: 0;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ops-workbench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ops-inline-summary {
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}

.risk-center-filter-row {
  align-items: center;
  margin-bottom: 14px;
}

.risk-center-filter-row select {
  min-width: 140px;
}

.risk-center-type {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.risk-center-title {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
  line-height: 1.45;
}

.risk-center-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  line-height: 1.45;
}

.risk-center-user strong {
  color: #1f2937;
  word-break: break-word;
}

.risk-center-user span {
  color: #667085;
  font-size: 12px;
  word-break: break-all;
}

.risk-center-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 420px;
}

.risk-center-reasons span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.45;
}

#page-riskCenter .data-table td {
  vertical-align: top;
}

.risk-user-chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.risk-user-chip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.risk-user-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.risk-user-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-user-main span {
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
}

.risk-user-meta {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.compact-action {
  min-width: 64px;
  padding-left: 12px;
  padding-right: 12px;
}

.risk-status-tag {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  font-size: 12px;
}

.risk-user-action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.risk-user-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
  align-items: start;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.risk-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.risk-user-action-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.risk-user-action-info strong,
.risk-user-action-info span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-user-action-info span {
  color: #667085;
  font-size: 12px;
}

.archive-relation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.archive-relation-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  padding: 12px;
}

.archive-relation-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.archive-relation-users {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-relation-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.audit-filter-row {
  flex-wrap: wrap;
  gap: 10px;
}

.audit-filter-row input {
  min-width: 260px;
}

.unified-audit-table-wrap {
  overflow-x: auto;
}

.unified-audit-table {
  min-width: 1180px;
}

.unified-audit-table th,
.unified-audit-table td {
  vertical-align: top;
}

.audit-kind {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.audit-kind-verification { background: #ecfdf5; color: #047857; }
.audit-kind-member_application { background: #fff7ed; color: #c2410c; }
.audit-kind-content { background: #eff6ff; color: #1d4ed8; }
.audit-kind-report { background: #fef2f2; color: #b91c1c; }
.audit-kind-feedback { background: #f5f3ff; color: #6d28d9; }

.audit-title {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.audit-content {
  color: #4b5563;
  max-width: 360px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
}

.audit-media-count {
  color: #64748b;
  font-size: 12px;
  margin-top: 4px;
}

.content-audit-table {
  table-layout: fixed;
  min-width: 1180px;
}

.content-audit-table th:nth-child(1),
.content-audit-table td:nth-child(1) {
  width: 44px;
}

.content-audit-table th:nth-child(2),
.content-audit-table td:nth-child(2) {
  width: 72px;
}

.content-audit-table th:nth-child(3),
.content-audit-table td:nth-child(3) {
  width: 118px;
}

.content-audit-table th:nth-child(5),
.content-audit-table td:nth-child(5) {
  width: 230px;
}

.content-audit-table th:nth-child(6),
.content-audit-table td:nth-child(6) {
  width: 96px;
  text-align: center;
}

.content-audit-table th:nth-child(7),
.content-audit-table td:nth-child(7) {
  width: 190px;
}

.content-audit-table th:nth-child(8),
.content-audit-table td:nth-child(8) {
  width: 150px;
}

.content-audit-table th:nth-child(9),
.content-audit-table td:nth-child(9) {
  width: 128px;
}

.content-audit-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.content-audit-thumb,
.content-audit-thumb-empty {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.content-audit-thumb {
  object-fit: cover;
}

.content-audit-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
}

.content-audit-summary-main {
  min-width: 0;
}

.content-audit-title {
  color: #111827;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-audit-preview {
  margin-top: 5px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.content-audit-meta {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

.content-audit-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.content-audit-user {
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

.content-audit-reason {
  color: #334155;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.content-audit-actions {
  align-items: stretch;
}

.content-audit-actions button {
  width: 100%;
}

/* 表单 */
.form-section {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-section h3 {
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.form-row label {
  width: 120px;
  color: #666;
}

.form-row input,
.form-row select,
.form-row textarea {
  flex: 1;
  max-width: 300px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.chat-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.chat-rule-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #666;
}

.chat-rule-grid input,
.chat-rule-grid select,
.chat-filter-row input,
.chat-filter-row select,
.chat-sensitive-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.chat-word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.chat-word-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #666;
}

.chat-word-grid textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: vertical;
}

.chat-sensitive-row textarea {
  max-width: 720px;
}

.chat-ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.chat-ops-layout > .form-section {
  min-width: 0;
  overflow: hidden;
}

.customer-service-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: start;
}

.customer-service-filter-row input,
.customer-service-filter-row select {
  max-width: none;
}

.customer-service-list-wrap .data-table {
  min-width: 920px;
  table-layout: fixed;
}

.customer-service-list-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.customer-service-list-wrap .data-table th,
.customer-service-list-wrap .data-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.customer-service-list-wrap .data-table th:nth-child(1),
.customer-service-list-wrap .data-table td:nth-child(1) {
  width: 190px;
}

.customer-service-list-wrap .data-table th:nth-child(2),
.customer-service-list-wrap .data-table td:nth-child(2) {
  width: 120px;
}

.customer-service-list-wrap .data-table th:nth-child(3),
.customer-service-list-wrap .data-table td:nth-child(3) {
  width: 120px;
}

.customer-service-list-wrap .data-table th:nth-child(4),
.customer-service-list-wrap .data-table td:nth-child(4) {
  width: 210px;
}

.customer-service-list-wrap .data-table th:nth-child(5),
.customer-service-list-wrap .data-table td:nth-child(5) {
  width: 150px;
}

.customer-service-list-wrap .data-table th:nth-child(6),
.customer-service-list-wrap .data-table td:nth-child(6) {
  width: 130px;
}

.customer-service-list-wrap .data-table tbody tr.customer-service-row {
  cursor: pointer;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.customer-service-list-wrap .data-table tbody tr.customer-service-row:hover {
  background: #f8faff;
}

.customer-service-list-wrap .data-table tbody tr.customer-service-row.active {
  background: #eef3ff;
  box-shadow: inset 3px 0 0 #6366f1;
}

.customer-service-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 760px;
}

.customer-service-panel-head {
  margin-bottom: 0;
}

.customer-service-panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-service-summary {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475467;
  text-align: left;
}

.customer-service-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.customer-service-summary-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.customer-service-summary-subtitle {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.customer-service-summary-toggle {
  min-width: 72px;
  flex: 0 0 auto;
}

.customer-service-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-service-summary-grid.collapsed {
  display: none;
}

.customer-service-summary-item {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.customer-service-summary-item .label {
  font-size: 12px;
  color: #667085;
  margin-bottom: 6px;
}

.customer-service-summary-item .value {
  color: #111827;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.customer-service-wait-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customer-service-wait-text {
  color: #111827;
  font-weight: 600;
}

.customer-service-wait-hint {
  font-size: 12px;
  color: #667085;
}

.customer-service-wait-hint.busy {
  color: #b54708;
}

.customer-service-wait-hint.overtime {
  color: #b42318;
  font-weight: 700;
}

.customer-service-moderation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffaf2 0%, #fff4e6 100%);
  border: 1px solid #f6d8a8;
  color: #664d1f;
  text-align: left;
}

.customer-service-moderation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-service-moderation-title {
  font-size: 15px;
  font-weight: 700;
  color: #7c4a03;
}

.customer-service-moderation-desc {
  color: #8a6d3b;
  font-size: 12px;
}

.customer-service-moderation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.customer-service-moderation-item {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(201, 154, 83, 0.18);
}

.customer-service-moderation-item .label {
  font-size: 12px;
  color: #8a6d3b;
  margin-bottom: 6px;
}

.customer-service-moderation-item .value {
  color: #2f2a1f;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.customer-service-moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-service-moderation-actions button {
  width: auto;
}

.customer-service-messages {
  flex: 1;
  min-height: 340px;
  max-height: 520px;
  overflow-y: auto;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.customer-service-message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.customer-service-message.role-user {
  align-self: flex-start;
  border-color: #dbeafe;
  background: #eff6ff;
}

.customer-service-message.role-admin {
  align-self: flex-end;
  border-color: #c7d2fe;
  background: #eef2ff;
}

.customer-service-message.role-ai {
  align-self: flex-start;
  border-color: #dcfce7;
  background: #f0fdf4;
}

.customer-service-message.role-system {
  align-self: center;
  max-width: 92%;
  background: #f5f5f5;
  border-color: #e5e7eb;
}

.customer-service-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
}

.customer-service-message-role {
  font-weight: 700;
  color: #111827;
}

.customer-service-message-time {
  color: #667085;
  white-space: nowrap;
}

.customer-service-message-body {
  color: #1f2937;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
}

.customer-service-message-meta {
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
}

.customer-service-composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-service-status-row {
  margin-bottom: 0;
}

.customer-service-status-row label {
  width: auto;
  min-width: 72px;
}

.customer-service-status-row select {
  min-width: 220px;
  max-width: 260px;
}

.customer-service-composer textarea {
  width: 100%;
  max-width: none;
  min-height: 120px;
}

.customer-service-composer textarea:disabled {
  background: #f3f4f6;
  color: #98a2b3;
  cursor: not-allowed;
}

.customer-service-composer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.customer-service-composer-actions input[type="file"] {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.92);
  color: #475569;
}

.customer-service-composer-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.customer-service-session-highlight {
  font-weight: 700;
  color: #4338ca;
}

.chat-filter-row {
  align-items: center;
}

.chat-filter-row input {
  max-width: none;
  flex: 1;
}

.chat-inline-check {
  width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #666;
}

.chat-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.chat-table-wrap .data-table {
  width: 100%;
  min-width: 660px;
  table-layout: fixed;
}

#page-chatOps .chat-table-wrap .data-table th,
#page-chatOps .chat-table-wrap .data-table td {
  padding: 12px 14px;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.42;
}

.chat-room-table th:nth-child(1),
.chat-room-table td:nth-child(1) { width: 25%; }
.chat-room-table th:nth-child(2),
.chat-room-table td:nth-child(2) { width: 9%; text-align: center; }
.chat-room-table th:nth-child(3),
.chat-room-table td:nth-child(3) { width: 9%; text-align: center; }
.chat-room-table th:nth-child(4),
.chat-room-table td:nth-child(4) { width: 34%; }
.chat-room-table th:nth-child(5),
.chat-room-table td:nth-child(5) { width: 23%; }

.chat-message-table th:nth-child(1),
.chat-message-table td:nth-child(1) { width: 18%; }
.chat-message-table th:nth-child(2),
.chat-message-table td:nth-child(2) { width: 25%; }
.chat-message-table th:nth-child(3),
.chat-message-table td:nth-child(3) { width: 27%; }
.chat-message-table th:nth-child(4),
.chat-message-table td:nth-child(4) { width: 20%; }
.chat-message-table th:nth-child(5),
.chat-message-table td:nth-child(5) { width: 10%; }

.chat-ai-monitor-table {
  min-width: 1080px !important;
}

.chat-ai-monitor-table th:nth-child(1),
.chat-ai-monitor-table td:nth-child(1) { width: 13%; }
.chat-ai-monitor-table th:nth-child(2),
.chat-ai-monitor-table td:nth-child(2) { width: 9%; }
.chat-ai-monitor-table th:nth-child(3),
.chat-ai-monitor-table td:nth-child(3) { width: 16%; }
.chat-ai-monitor-table th:nth-child(4),
.chat-ai-monitor-table td:nth-child(4) { width: 30%; }
.chat-ai-monitor-table th:nth-child(5),
.chat-ai-monitor-table td:nth-child(5) { width: 15%; }
.chat-ai-monitor-table th:nth-child(6),
.chat-ai-monitor-table td:nth-child(6) { width: 17%; }

.chat-ai-monitor-section .muted {
  line-height: 1.5;
}

.chat-location-group-table {
  min-width: 1080px;
}

.chat-location-group-table th:nth-child(1),
.chat-location-group-table td:nth-child(1) { width: 13%; }
.chat-location-group-table th:nth-child(2),
.chat-location-group-table td:nth-child(2) { width: 14%; }
.chat-location-group-table th:nth-child(3),
.chat-location-group-table td:nth-child(3) { width: 18%; }
.chat-location-group-table th:nth-child(4),
.chat-location-group-table td:nth-child(4) { width: 14%; }
.chat-location-group-table th:nth-child(5),
.chat-location-group-table td:nth-child(5) { width: 12%; }
.chat-location-group-table th:nth-child(6),
.chat-location-group-table td:nth-child(6) { width: 11%; }
.chat-location-group-table th:nth-child(7),
.chat-location-group-table td:nth-child(7) { width: 9%; }
.chat-location-group-table th:nth-child(8),
.chat-location-group-table td:nth-child(8) { width: 9%; }

.chat-location-group-ranking-table {
  min-width: 980px;
}

.chat-location-group-ranking-table th:nth-child(1),
.chat-location-group-ranking-table td:nth-child(1) { width: 8%; text-align: center; }
.chat-location-group-ranking-table th:nth-child(2),
.chat-location-group-ranking-table td:nth-child(2) { width: 21%; }
.chat-location-group-ranking-table th:nth-child(3),
.chat-location-group-ranking-table td:nth-child(3) { width: 17%; }
.chat-location-group-ranking-table th:nth-child(4),
.chat-location-group-ranking-table td:nth-child(4) { width: 22%; }
.chat-location-group-ranking-table th:nth-child(5),
.chat-location-group-ranking-table td:nth-child(5) { width: 11%; text-align: center; }
.chat-location-group-ranking-table th:nth-child(6),
.chat-location-group-ranking-table td:nth-child(6) { width: 11%; }
.chat-location-group-ranking-table th:nth-child(7),
.chat-location-group-ranking-table td:nth-child(7) { width: 10%; }

.merchant-group-moderation-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.merchant-group-moderation-counts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #d6e4dd;
  border-radius: 6px;
  color: #365348;
  background: #f5faf7;
  font-size: 13px;
}

.merchant-group-moderation-counts strong {
  color: #12633d;
  font-size: 15px;
}

.merchant-group-blacklist-table,
.merchant-group-moderation-table {
  min-width: 1120px !important;
}

.merchant-group-blacklist-table th:nth-child(1),
.merchant-group-blacklist-table td:nth-child(1),
.merchant-group-moderation-table th:nth-child(1),
.merchant-group-moderation-table td:nth-child(1) { width: 13%; }

.merchant-group-blacklist-table th:nth-child(2),
.merchant-group-blacklist-table td:nth-child(2),
.merchant-group-moderation-table th:nth-child(3),
.merchant-group-moderation-table td:nth-child(3) { width: 18%; }

.merchant-group-blacklist-table th:nth-child(3),
.merchant-group-blacklist-table td:nth-child(3),
.merchant-group-moderation-table th:nth-child(4),
.merchant-group-moderation-table td:nth-child(4) { width: 16%; }

.merchant-group-blacklist-table th:nth-child(4),
.merchant-group-blacklist-table td:nth-child(4),
.merchant-group-moderation-table th:nth-child(6),
.merchant-group-moderation-table td:nth-child(6) { width: 27%; }

.merchant-group-blacklist-table th:nth-child(5),
.merchant-group-blacklist-table td:nth-child(5),
.merchant-group-moderation-table th:nth-child(5),
.merchant-group-moderation-table td:nth-child(5) { width: 18%; }

.merchant-group-blacklist-table th:nth-child(6),
.merchant-group-blacklist-table td:nth-child(6) { width: 8%; }

.merchant-group-moderation-table th:nth-child(2),
.merchant-group-moderation-table td:nth-child(2) { width: 8%; }

.chat-location-group-docs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-location-group-docs a {
  color: #1677ff;
  font-weight: 700;
  text-decoration: none;
}

.chat-cell-subtext {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-room-cell {
  min-width: 0;
}

.chat-room-region {
  color: #0f172a;
  font-weight: 700;
  line-height: 1.45;
}

.chat-scope-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  vertical-align: middle;
}

.chat-room-profile {
  display: inline-flex;
  max-width: 100%;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-room-profile.approved {
  color: #075985;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.chat-room-profile.pending {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

.chat-room-profile.legacy {
  color: #334155;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.chat-room-profile.missing,
.chat-room-profile.rejected {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.chat-room-profile.location_group {
  color: #047857;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.chat-cell-time,
.chat-cell-region,
.chat-cell-sender,
.chat-cell-message {
  color: #1f2937;
}

.chat-cell-number {
  color: #1f2937;
  font-weight: 700;
  text-align: center;
}

.chat-cell-actions {
  white-space: normal;
}

.chat-section-subtitle {
  margin: 18px 0 8px;
  font-size: 16px;
  color: #0f172a;
}

.chat-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.chat-detail-item {
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.chat-detail-item .label {
  color: #667085;
  font-size: 12px;
  margin-bottom: 6px;
}

.chat-detail-item .value {
  color: #1f2937;
  font-weight: 600;
  word-break: break-word;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chat-actions button,
.chat-cell-actions button {
  min-width: 0;
  padding: 8px 10px;
  white-space: nowrap;
}

.chat-image-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1677ff;
  text-decoration: none;
}

.chat-message-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.chat-voice-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
}

.chat-voice-inline audio {
  width: 180px;
  height: 32px;
}

.chat-monitor-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.chat-monitor-mask.show {
  display: flex;
}

.chat-monitor-panel {
  width: min(960px, 92vw);
  height: 100vh;
  background: #f8fafc;
  box-shadow: -20px 0 50px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
}

.chat-monitor-header {
  padding: 18px 22px;
  background: linear-gradient(135deg, #0f172a 0%, #123c43 48%, #116a61 100%);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chat-monitor-eyebrow {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 6px;
}

.chat-monitor-title-wrap h3 {
  margin: 0;
  font-size: 22px;
  color: #fff;
}

.chat-monitor-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chat-monitor-summary span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.chat-monitor-summary .chat-monitor-live {
  background: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
}

.chat-monitor-summary .chat-monitor-live.paused {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
}

.chat-monitor-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.chat-monitor-body {
  flex: 1;
  overflow: auto;
  padding: 18px 22px 24px;
}

.chat-monitor-room-head {
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 14px;
}

.chat-monitor-room-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.chat-monitor-room-sub {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.chat-monitor-sections {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.chat-monitor-users,
.chat-monitor-feed {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.chat-monitor-section-title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.chat-monitor-user-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
}

.chat-monitor-user-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.chat-monitor-user-card strong {
  color: #0f172a;
}

.chat-monitor-user-card div,
.chat-monitor-user-card span {
  color: #64748b;
  font-size: 12px;
  word-break: break-word;
}

.chat-monitor-user-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.chat-monitor-feed-scroll {
  height: calc(100vh - 270px);
  min-height: 420px;
  overflow-y: auto;
  padding: 6px 6px 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef7f6 100%);
  border-radius: 10px;
}

.chat-monitor-message {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.chat-monitor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-monitor-bubble-wrap {
  max-width: min(620px, 100%);
}

.chat-monitor-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 5px;
}

.chat-monitor-sender {
  border: 0;
  background: transparent;
  padding: 0;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
}

.chat-monitor-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 11px 13px;
  border-radius: 4px 12px 12px 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.chat-monitor-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

.chat-monitor-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.chat-monitor-message-actions button,
.chat-monitor-user-actions button {
  padding: 5px 9px;
  font-size: 12px;
}

.chat-monitor-image-button {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  cursor: pointer;
  color: #1677ff;
}

.chat-monitor-image-button img {
  width: 180px;
  max-width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.chat-monitor-image-expired {
  color: #94a3b8;
}

.chat-monitor-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.14);
}

.chat-monitor-voice audio {
  width: 190px;
  height: 34px;
}

@media (max-width: 1200px) {
  .customer-service-layout,
  .chat-ops-layout {
    grid-template-columns: 1fr;
  }

  .chat-monitor-sections {
    grid-template-columns: 1fr;
  }

  .chat-monitor-feed-scroll {
    height: 56vh;
  }
}

/* 会员管理列表对齐优化 */
#page-users .table-container,
#page-members .table-container {
  overflow-x: auto;
}

#page-users .data-table,
#page-members .data-table {
  table-layout: auto;
  min-width: 1820px;
}

#page-users .data-table th,
#page-users .data-table td,
#page-members .data-table th,
#page-members .data-table td {
  white-space: nowrap;
  text-align: left;
}

#page-users .data-table th:last-child,
#page-users .data-table td:last-child,
#page-members .data-table th:last-child,
#page-members .data-table td:last-child {
  text-align: right;
  min-width: 440px;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.member-openid {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.member-subline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
}

.member-op-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  max-width: 420px;
  margin-left: auto;
}

.member-op-group button {
  width: auto;
  min-width: 84px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}

.member-dialog-mask,
.member-drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.member-dialog-mask.show,
.member-drawer-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.member-dialog-mask {
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-dialog-panel {
  width: min(960px, 92vw);
  max-height: 82vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.member-dialog-header,
.member-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.member-dialog-header h3,
.member-drawer-title-wrap h3 {
  margin: 0;
  font-size: 20px;
  color: #1f2937;
}

.member-dialog-body {
  min-height: 60px;
}

.unified-audit-review-panel {
  width: min(520px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.unified-audit-review-header {
  align-items: center;
  margin: 0;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.unified-audit-review-header .muted {
  margin-top: 4px;
}

.unified-audit-review-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.unified-audit-review-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.unified-audit-review-body {
  padding: 18px 20px 8px;
}

.unified-audit-review-body label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-weight: 600;
}

.unified-audit-review-body textarea {
  width: 100%;
  min-height: 128px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  resize: vertical;
  font: inherit;
  line-height: 1.6;
}

.unified-audit-review-body textarea:focus {
  border-color: #2563eb;
  outline: 2px solid rgba(37, 99, 235, 0.14);
}

.unified-audit-review-error {
  min-height: 22px;
  margin-top: 6px;
  color: #dc2626;
  font-size: 13px;
}

.unified-audit-review-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 18px;
}

.unified-audit-review-footer button {
  min-width: 92px;
  height: 38px;
}

.member-drawer-mask {
  overflow: hidden;
}

.member-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(760px, 92vw);
  height: 100%;
  background: #fff;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.18);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overflow-y: auto;
}

.member-drawer-mask.show .member-drawer-panel {
  transform: translateX(0);
}

.regional-consumption-mask {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.24);
  z-index: 10020;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.regional-consumption-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.regional-consumption-panel {
  width: min(720px, 90vw);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: #fff;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.2);
}

.member-drawer-summary {
  margin-top: 10px;
}

.member-summary-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  line-height: 1;
}

.member-summary-chip.success {
  background: #ecfdf3;
  color: #16a34a;
}

.member-summary-chip.danger {
  background: #fef2f2;
  color: #dc2626;
}

.member-summary-chip.muted {
  background: #f3f4f6;
  color: #6b7280;
}

.member-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.member-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-info-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

.member-info-card-wide {
  grid-column: 1 / -1;
}

.member-info-label {
  margin-bottom: 8px;
  font-size: 12px;
  color: #6b7280;
}

.member-info-value {
  color: #111827;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.member-info-card-mono .member-info-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  letter-spacing: 0;
  word-break: break-all;
}

.member-drawer-section {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.member-drawer-section-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.member-empty-block {
  padding: 16px;
  border-radius: 10px;
  background: #f9fafb;
  color: #6b7280;
  text-align: center;
}

.report-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-action-row button {
  min-width: 180px;
}

.member-drawer-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.member-drawer-pager-meta {
  color: #6b7280;
  font-size: 13px;
}

.member-drawer-pager-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-drawer-pager-actions button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.member-inline-link {
  color: #4f46e5;
  text-decoration: none;
}

.member-inline-link:hover {
  text-decoration: underline;
}

.member-empty-block {
  padding: 48px 18px;
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
  color: #9ca3af;
}

.member-empty-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  text-align: left;
}

.verify-detail-summary {
  margin-top: 10px;
}

.verify-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.verify-detail-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.verify-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.verify-image-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.verify-image-card-title {
  margin-bottom: 10px;
  font-size: 13px;
  color: #6b7280;
}

.verify-image-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  background: #f8fafc;
}

.verify-image-card-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.verify-image-card-note {
  color: #9ca3af;
  font-size: 12px;
}

.member-more-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.member-edit-tip {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  line-height: 1.6;
  font-size: 13px;
}

.member-edit-tip.subtle {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

.member-log-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.member-log-section .table-container {
  overflow-x: auto;
  overflow-y: hidden;
}

.member-log-section .data-table {
  min-width: 1280px;
  table-layout: auto;
}

.member-log-section .data-table th,
.member-log-section .data-table td {
  white-space: nowrap;
}

.member-log-section-title {
  color: #374151;
  font-size: 16px;
  font-weight: 600;
}

.member-log-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.member-log-pager-meta {
  color: #6b7280;
  font-size: 13px;
}

.member-log-pager-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.member-more-section {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
}

.member-more-title {
  margin-bottom: 12px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.member-more-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-more-hint {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 1280px) {
  .ops-workbench-grid {
    grid-template-columns: 1fr;
  }
}

.member-pager-row {
  justify-content: space-between;
  align-items: center;
}

.member-pager-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.muted {
  color: #667085;
  font-size: 12px;
}

.form-row textarea {
  max-width: 760px;
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}

.search-input {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 200px;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* 最新列表 */
.recent-section {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recent-section h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
}

.empty-tip {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 500px;
  max-width: 90%;
  max-height: 80vh;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
  font-size: 16px;
}

.modal-close {
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* 响应式 */
@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }

  .menu-item span:not(.icon) {
    display: none;
  }

  .content {
    margin-left: 0;
  }

  .member-info-grid {
    grid-template-columns: 1fr;
  }

  .member-drawer-panel {
    width: 100vw;
    padding: 18px;
  }
}

/* 图表样式 */
.chart-section {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chart-section h3 {
  font-size: 16px;
  margin-bottom: 20px;
}

.chart-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.chart-tab {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.chart-tab:hover {
  border-color: #667eea;
  color: #667eea;
}

.chart-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
}

.chart-container {
  height: 250px;
  position: relative;
  margin-bottom: 16px;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.chart-box {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chart-box h3 {
  font-size: 16px;
  margin-bottom: 20px;
}

.chart-box canvas {
  max-height: 200px;
}

.chart-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.chart-label-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.chart-label-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.action-ranking {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 250px;
  overflow-y: auto;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 8px;
}

.action-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.action-rank.top {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
}

.action-rank.second {
  background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
}

.action-rank.third {
  background: linear-gradient(135deg, #cd7f32 0%, #b06020 100%);
}

.action-info {
  flex: 1;
}

.action-name {
  font-size: 13px;
  color: #333;
}

.action-count {
  font-size: 12px;
  color: #999;
}

.action-bar {
  width: 100px;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.action-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.3s;
}

@media (max-width: 1024px) {
  .chart-row {
    grid-template-columns: 1fr;
  }
}

/* 日志列表样式 */
.log-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 600px;
  overflow-y: auto;
}

.log-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 8px;
  border-left: 4px solid #d9d9d9;
  align-items: flex-start;
  min-width: 0;
}

.log-item.info {
  border-left-color: #1890ff;
}

.log-item.warning,
.log-item.warn {
  border-left-color: #faad14;
}

.log-item.error {
  border-left-color: #f5222d;
}

.log-level {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  min-width: 50px;
  text-align: center;
}

.log-level.info {
  background: #e6f7ff;
  color: #1890ff;
}

.log-level.warning,
.log-level.warn {
  background: #fffbe6;
  color: #faad14;
}

.log-level.error {
  background: #fff2f0;
  color: #f5222d;
}

.log-content {
  flex: 1;
  min-width: 0;
}

.log-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.log-text {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.log-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  flex-wrap: wrap;
}

.log-meta span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.log-time {
  color: #999;
  font-size: 12px;
  min-width: 140px;
}

.log-actions {
  display: flex;
  gap: 8px;
}

.log-detail {
  margin-top: 8px;
  padding: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.client-error-panel {
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.client-error-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.client-error-panel-head h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.client-error-panel-desc {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.client-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-error-filter-row {
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.client-error-filter-row input {
  min-width: 260px;
}

.client-error-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
}

.client-error-summary-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f7fb;
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
}

.client-error-summary-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  min-width: 0;
}

.client-error-summary-card strong {
  display: block;
  line-height: 1;
}

.client-error-summary-card strong {
  font-size: 24px;
  color: #0f172a;
}

.client-error-summary-card strong:empty {
  display: none;
}

.client-error-summary-card {
  min-height: 62px;
  justify-content: center;
}

.client-error-summary-card span {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.client-error-summary-card span {
  font-size: 12px;
  color: #64748b;
}

.client-error-summary-card.danger strong {
  color: #dc2626;
}

.client-error-summary-card.critical strong {
  color: #b45309;
}

.client-error-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  min-width: 0;
}

.client-error-group-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f3c97d;
  box-shadow: 0 8px 18px rgba(251, 191, 36, 0.08);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.client-error-group-card strong {
  line-height: 1.35;
}

.client-error-group-card strong {
  display: block;
  font-size: 14px;
  color: #111827;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.client-error-group-meta span {
  color: #64748b;
  font-size: 12px;
}

.client-error-group-meta .muted {
  color: #98a2b3;
}

.client-error-group-card > div {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.client-error-group-card > div > span {
  display: block;
  width: 100%;
  max-width: 100%;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.client-error-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.client-error-group-card .client-error-group-meta span:first-child {
  color: #64748b;
}

.client-error-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.client-error-table {
  min-width: 860px;
  table-layout: fixed;
  width: 100%;
}

.client-error-toolbar {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.client-error-table .status {
  margin-bottom: 4px;
}

.client-error-table th,
.client-error-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}

.client-error-main {
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
}

.client-error-extra {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
}

.client-error-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-repair-panel {
  border: 1px solid rgba(14, 165, 233, 0.22);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.client-repair-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.client-repair-json {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #0f172a;
  background: #ffffff;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-item {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.log-item .log-title {
  font-size: 16px;
  color: #0f172a;
}

.log-item .log-text {
  color: #334155;
}

.log-item .log-time {
  min-width: 120px;
  color: #64748b;
}

.log-item .log-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* 积分规则配置样式 */
.config-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.config-card {
  background: #fafafa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e8e8e8;
}

.config-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  font-size: 15px;
}

.config-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.config-input input {
  width: 100px;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  color: #667eea;
}

.config-input span {
  color: #666;
  font-size: 13px;
}

.config-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.config-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #667eea;
}

.rule-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.rule-content {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* 上传区域 */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background: #fafafa;
  margin-bottom: 8px;
  overflow: hidden;
}

.upload-area:hover {
  border-color: #667eea;
  background: #f5f5ff;
}

.upload-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#qrcodePlaceholder, #shareImagePlaceholder {
  font-size: 13px;
  color: #999;
  text-align: center;
  padding: 20px;
}

/* 支付订单样式 */
.payment-order {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.payment-order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.payment-order-amount {
  font-size: 20px;
  font-weight: bold;
  color: #52c41a;
}

/* 二维码展示 */
.qrcode-display {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  margin: 16px 0;
}

.qrcode-display img {
  max-width: 250px;
  border: 1px solid #eee;
  border-radius: 8px;
}

/* 统计卡片高亮 */
.stat-card.highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.stat-card.highlight .stat-icon {
  background: rgba(255,255,255,0.2);
}

.stat-card.highlight .stat-label {
  color: rgba(255,255,255,0.8);
}

.stat-card.highlight .stat-num {
  color: #fff;
}

/* 微信配置页面优化 */
.config-card {
  min-height: 100px;
}

/* 实时态势大屏 */
.live-map-page {
  margin: -24px;
  min-height: calc(100vh - 60px);
  background:
    radial-gradient(circle at 78% 6%, rgba(250, 204, 21, 0.16), transparent 28%),
    radial-gradient(circle at 18% 22%, rgba(45, 212, 191, 0.24), transparent 30%),
    radial-gradient(circle at 62% 58%, rgba(59, 130, 246, 0.18), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0b1d2f 52%, #102333 100%);
  padding: 26px;
}

.live-map-shell {
  max-width: 1560px;
  margin: 0 auto;
}

.live-map-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.live-map-kicker {
  color: #5eead4;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.live-map-hero h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 32px;
  letter-spacing: 0;
}

.live-map-hero p {
  margin: 8px 0 0;
  color: #9fb8ca;
  font-size: 15px;
}

.live-map-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-map-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.20);
}

.live-map-mode-btn {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.live-map-mode-btn.is-active {
  color: #06111f;
  background: linear-gradient(135deg, #99f6e4 0%, #7dd3fc 100%);
}

.live-map-refresh-meta {
  padding: 9px 13px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(94, 234, 212, 0.22);
  font-size: 12px;
  white-space: nowrap;
}

.live-map-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.live-map-region-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(12, 28, 43, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.12);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.2);
}

.live-map-region-strip-main {
  min-width: 0;
  flex: 1 1 auto;
}

.live-map-region-strip-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.live-map-coverage-panel {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(12, 28, 43, 0.76);
  border: 1px solid rgba(125, 211, 252, 0.12);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.20);
}

.live-map-coverage-panel.is-collapsed {
  padding-bottom: 12px;
}

.live-map-coverage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.live-map-coverage-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-map-coverage-controls select {
  height: 36px;
  min-width: 130px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
  border: 1px solid rgba(125, 211, 252, 0.18);
}

.live-map-coverage-panel-body {
  display: block;
}

.live-map-coverage-panel-body.is-collapsed {
  display: none;
}

.live-map-coverage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.live-map-coverage-gap-list,
.live-map-coverage-sample-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-map-coverage-gap-item,
.live-map-coverage-sample-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(15, 23, 42, 0.56);
  text-align: left;
}

.live-map-coverage-sample-item {
  cursor: pointer;
}

.live-map-coverage-gap-item strong,
.live-map-coverage-sample-item strong {
  color: #f8fafc;
  font-size: 13px;
}

.live-map-coverage-gap-item small,
.live-map-coverage-sample-item small {
  color: #94a3b8;
  font-size: 12px;
}

.live-map-coverage-empty {
  padding: 14px 16px;
  border-radius: 14px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.44);
  border: 1px dashed rgba(148, 163, 184, 0.24);
  font-size: 12px;
}

.live-map-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.live-map-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.60);
  border: 1px solid rgba(125, 211, 252, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.live-map-breadcrumb-item.is-clickable {
  cursor: pointer;
}

.live-map-breadcrumb-item.is-current {
  color: #06111f;
  background: linear-gradient(135deg, #99f6e4 0%, #7dd3fc 100%);
  border-color: transparent;
}

.live-map-stat-card {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  min-height: 118px;
  padding: 18px 18px 16px;
  text-align: left;
  border-radius: 18px;
  background: rgba(12, 28, 43, 0.82);
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.26);
  cursor: default;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.live-map-stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  opacity: 0.16;
  background: currentColor;
}

.live-map-stat-card.green { color: #10b981; }
.live-map-stat-card.blue { color: #3b82f6; }
.live-map-stat-card.cyan { color: #06b6d4; }
.live-map-stat-card.gold { color: #d97706; }
.live-map-stat-card.orange { color: #f97316; }
.live-map-stat-card.red { color: #e11d48; }

.live-map-stat-card.is-clickable {
  cursor: pointer;
}

.live-map-stat-card.is-clickable:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 26px 44px rgba(37, 99, 235, 0.18);
}

.live-map-stat-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: currentColor;
  margin-bottom: 12px;
}

.live-map-stat-value {
  color: #f8fafc;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.live-map-stat-label {
  margin-top: 8px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
}

.live-map-stat-sub {
  margin-top: 6px;
  color: #9fb8ca;
  font-size: 12px;
}

.live-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.live-map-main-card,
.live-map-side-card {
  border-radius: 22px;
  background: rgba(9, 22, 36, 0.82);
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: 0 22px 42px rgba(2, 6, 23, 0.30);
}

.live-map-main-card {
  padding: 22px;
  min-width: 0;
}

.live-map-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.live-map-card-head h3,
.live-map-side-card h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 20px;
}

.live-map-card-head p {
  margin: 8px 0 0;
  color: #9fb8ca;
  font-size: 13px;
}

.live-map-drill-card {
  padding-bottom: 14px;
}

.live-map-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.live-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: #cbd5e1;
  font-size: 12px;
}

.live-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.18);
}

.live-map-fullscreen-btn {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.42);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(59, 130, 246, 0.18));
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.22);
}

.live-map-fullscreen-btn:hover {
  border-color: rgba(153, 246, 228, 0.72);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.34), rgba(59, 130, 246, 0.26));
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.live-dot.active { background: #2dd4bf; }
.live-dot.warning { background: #f59e0b; }
.live-dot.risk { background: #ef4444; }

.live-map-canvas {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 68% 24%, rgba(14, 165, 233, 0.22), transparent 19%),
    radial-gradient(circle at 52% 50%, rgba(45, 212, 191, 0.20), transparent 21%),
    radial-gradient(circle at 24% 76%, rgba(245, 158, 11, 0.13), transparent 18%),
    linear-gradient(120deg, rgba(20, 184, 166, 0.18) 0 1px, transparent 1px 92px),
    linear-gradient(15deg, rgba(56, 189, 248, 0.15) 0 1px, transparent 1px 76px),
    linear-gradient(135deg, #020817 0%, #062033 46%, #0f3445 100%);
  border: 1px solid rgba(20, 184, 166, 0.38);
  box-shadow: inset 0 0 70px rgba(2, 6, 23, 0.38), 0 18px 38px rgba(15, 23, 42, 0.18);
}

.live-map-canvas-focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.34), 0 0 46px rgba(45, 212, 191, 0.38);
}

.live-map-canvas::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 44% 50% 46% 56%;
  border: 1px solid rgba(45, 212, 191, 0.38);
  transform: rotate(-10deg);
}

.live-map-canvas::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 8%;
  top: 28%;
  height: 34%;
  border-radius: 60% 48% 55% 45%;
  border: 1px dashed rgba(125, 211, 252, 0.34);
  transform: rotate(8deg);
}

.live-map-china-board {
  position: absolute;
  inset: 8px 10px 16px 4px;
  z-index: 1;
  pointer-events: none;
}

.live-map-china-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.live-map-china-provinces {
  filter: drop-shadow(0 0 22px rgba(45, 212, 191, 0.42));
}

.live-map-province {
  fill: url(#chinaMapFill);
  stroke: rgba(186, 230, 253, 0.52);
  stroke-width: 0.95;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.live-map-province.is-clickable {
  cursor: pointer;
  pointer-events: auto;
}

.live-map-province.is-selected {
  fill: rgba(45, 212, 191, 0.78);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.4;
}

.live-map-province:nth-child(3n) {
  fill-opacity: 0.82;
}

.live-map-province:nth-child(3n + 1) {
  fill-opacity: 0.66;
}

.live-map-province:nth-child(3n + 2) {
  fill-opacity: 0.74;
}

.live-map-province-labels {
  pointer-events: none;
}

.live-map-province-labels text {
  fill: rgba(226, 232, 240, 0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: central;
  alignment-baseline: middle;
  paint-order: stroke;
  stroke: rgba(2, 6, 23, 0.70);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.live-map-island {
  fill: rgba(45, 212, 191, 0.24);
  stroke: rgba(224, 242, 254, 0.76);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.42));
}

.live-map-south-sea circle {
  fill: rgba(250, 204, 21, 0.66);
  stroke: rgba(224, 242, 254, 0.55);
  stroke-width: 1;
}

.live-map-south-sea-frame {
  fill: rgba(2, 6, 23, 0.15);
  stroke: rgba(125, 211, 252, 0.24);
  stroke-width: 1;
  stroke-dasharray: 6 5;
}

.live-map-grid-line {
  position: absolute;
  background: rgba(148, 163, 184, 0.16);
}

.live-map-grid-line.vertical {
  top: 0;
  bottom: 0;
  width: 1px;
}

.live-map-grid-line.horizontal {
  left: 0;
  right: 0;
  height: 1px;
}

.live-map-grid-line.v1 { left: 33%; }
.live-map-grid-line.v2 { left: 66%; }
.live-map-grid-line.h1 { top: 34%; }
.live-map-grid-line.h2 { top: 68%; }

.live-map-scan-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  border: 1px solid rgba(45, 212, 191, 0.72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: liveMapRing 3.2s ease-in-out infinite;
  pointer-events: none;
}

.live-map-scan-ring.ring1 {
  width: 108px;
  height: 108px;
}

.live-map-scan-ring.ring2 {
  width: 220px;
  height: 220px;
  animation-delay: 0.35s;
}

.live-map-scan-ring.ring3 {
  width: 360px;
  height: 360px;
  animation-delay: 0.7s;
}

@keyframes liveMapRing {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.94); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.live-map-region-label {
  position: absolute;
  z-index: 2;
  color: rgba(248, 250, 252, 0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(2, 6, 23, 0.55);
}

.live-map-region-label.north { left: 50%; top: 17%; }
.live-map-region-label.east { right: 18%; top: 44%; }
.live-map-region-label.south { left: 56%; bottom: 14%; }
.live-map-region-label.west { left: 18%; top: 48%; }

.live-map-source-note {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 3;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 12px;
  line-height: 1;
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(125, 211, 252, 0.20);
  backdrop-filter: blur(8px);
}

.live-map-point-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.live-map-coverage-overlay {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 6;
  width: min(360px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.92), rgba(8, 20, 34, 0.78));
  border: 1px solid rgba(45, 212, 191, 0.22);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(10px);
}

.live-map-coverage-overlay-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.live-map-coverage-overlay-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-map-coverage-overlay-title {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
}

.live-map-coverage-overlay-tag {
  color: #5eead4;
  font-size: 12px;
  font-weight: 600;
}

.live-map-coverage-overlay-toggle {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.live-map-coverage-overlay-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-map-coverage-overlay-desc {
  color: rgba(226, 232, 240, 0.84);
  font-size: 13px;
  line-height: 1.5;
}

.live-map-coverage-overlay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.live-map-coverage-overlay-metric {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(125, 211, 252, 0.14);
}

.live-map-coverage-overlay-metric strong {
  display: block;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.1;
}

.live-map-coverage-overlay-metric span {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.live-map-coverage-overlay.is-collapsed {
  width: auto;
  max-width: calc(100% - 48px);
  padding: 12px 14px;
  gap: 0;
}

.live-map-coverage-overlay.is-collapsed .live-map-coverage-overlay-body {
  display: none;
}

.live-map-point {
  position: absolute;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  cursor: pointer;
  z-index: 8;
  pointer-events: auto;
}

.live-map-point-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.28);
  animation: liveMapPulse 1.8s ease-out infinite;
}

.live-map-point-core {
  position: absolute;
  inset: 1.5px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.88);
}

.live-map-point.is-coverage-point {
  width: 4px;
  height: 4px;
}

.live-map-point.is-coverage-point .live-map-point-pulse {
  inset: -3px;
  background: rgba(239, 68, 68, 0.18);
}

.live-map-point.is-coverage-point .live-map-point-core {
  inset: 0.25px;
  background: #dc2626;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.10), 0 0 5px rgba(220, 38, 38, 0.55);
}

.live-map-point.warning .live-map-point-pulse { background: rgba(239, 68, 68, 0.28); }
.live-map-point.warning .live-map-point-core {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.88);
}

.live-map-point.risk .live-map-point-pulse { background: rgba(239, 68, 68, 0.28); }
.live-map-point.risk .live-map-point-core {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.88);
}

.live-map-point.muted .live-map-point-core {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.88);
}

@keyframes liveMapPulse {
  0% { opacity: 0.9; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(2.2); }
}

.live-map-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  transform: translate(-50%, -50%);
  color: rgba(226, 232, 240, 0.76);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  text-align: center;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 12px 18px;
}

.live-map-empty.is-coverage-empty {
  max-width: 320px;
  border-radius: 18px;
  padding: 14px 18px;
  background: rgba(8, 15, 26, 0.66);
}

.live-map-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.live-map-side-card {
  padding: 18px;
  min-width: 0;
}

.live-map-region-list {
  display: none;
  margin-top: 14px;
  gap: 10px;
}

.live-map-region-list.is-visible {
  display: flex;
  flex-direction: column;
}

.live-map-region-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.live-map-region-list-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.live-map-region-list-empty {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.42);
  font-size: 12px;
}

.live-map-region-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(15, 23, 42, 0.58);
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
}

.live-map-region-chip strong {
  color: #f8fafc;
  font-size: 13px;
}

.live-map-region-chip small {
  color: #94a3b8;
  font-size: 11px;
}

.live-map-region-chip:hover {
  border-color: #99f6e4;
  background: rgba(20, 184, 166, 0.12);
}

.live-map-region-chip.is-selected {
  border-color: rgba(45, 212, 191, 0.76);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.20), rgba(59, 130, 246, 0.14));
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.26), 0 14px 28px rgba(2, 6, 23, 0.22);
}

.live-map-region-chip.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.live-map-events {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 462px;
  overflow: auto;
  padding-right: 4px;
}

.live-map-event-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.54);
  text-align: left;
  cursor: pointer;
}

.live-map-event-item:hover {
  border-color: #99f6e4;
  background: rgba(20, 184, 166, 0.14);
}

.live-map-event-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #2dd4bf;
}

.live-map-event-item.warning .live-map-event-dot { background: #f59e0b; }
.live-map-event-item.risk .live-map-event-dot { background: #ef4444; }
.live-map-event-item.muted .live-map-event-dot { background: #94a3b8; }

.live-map-event-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-map-event-body strong {
  color: #f8fafc;
  font-size: 13px;
}

.live-map-event-body em {
  color: #dbeafe;
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-map-event-body small {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.live-map-kind-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.live-map-kind-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.62) 0%, rgba(20, 184, 166, 0.11) 100%);
  border: 1px solid rgba(125, 211, 252, 0.16);
  color: #cbd5e1;
}

.live-map-kind-row strong {
  color: #5eead4;
  font-size: 16px;
}

.live-map-empty-list,
.live-map-error {
  padding: 18px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  font-size: 13px;
}

.live-map-error {
  color: #e11d48;
  background: #fff1f2;
}

.live-map-detail-actions {
  margin-top: 14px;
}

.live-map-fullscreen-active {
  overflow: hidden;
}

.live-map-main-card.is-live-map-fullscreen,
.live-map-main-card:fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  padding: 24px;
  border-radius: 0;
  background:
    radial-gradient(circle at 78% 6%, rgba(250, 204, 21, 0.13), transparent 28%),
    radial-gradient(circle at 18% 22%, rgba(45, 212, 191, 0.22), transparent 30%),
    linear-gradient(135deg, #020817 0%, #071a2a 52%, #0b2536 100%);
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.live-map-main-card.is-live-map-fullscreen .live-map-card-head,
.live-map-main-card:fullscreen .live-map-card-head {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

.live-map-main-card.is-live-map-fullscreen .live-map-card-head h3,
.live-map-main-card:fullscreen .live-map-card-head h3 {
  font-size: 24px;
}

.live-map-main-card.is-live-map-fullscreen .live-map-card-head p,
.live-map-main-card:fullscreen .live-map-card-head p {
  color: #b6d1e3;
}

.live-map-main-card.is-live-map-fullscreen .live-map-canvas,
.live-map-main-card:fullscreen .live-map-canvas {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  border-radius: 18px;
}

.live-map-main-card.is-live-map-fullscreen .live-map-china-board,
.live-map-main-card:fullscreen .live-map-china-board {
  inset: 6px 22px 20px 8px;
}

.live-map-main-card.is-live-map-fullscreen .live-map-source-note,
.live-map-main-card:fullscreen .live-map-source-note {
  bottom: 20px;
}

@media (max-width: 1380px) {
  .live-map-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .live-map-layout {
    grid-template-columns: 1fr;
  }

  .live-map-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-map-coverage-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .regional-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .regional-dashboard-filter {
    grid-template-columns: 1fr;
  }

  .live-map-page {
    margin: -16px;
    padding: 16px;
  }

  .live-map-hero,
  .live-map-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .live-map-head-actions {
    align-items: flex-start;
    justify-content: space-between;
  }

  .live-map-coverage-head {
    flex-direction: column;
    align-items: stretch;
  }

  .live-map-coverage-controls {
    justify-content: space-between;
  }

  .live-map-stats,
  .live-map-side {
    grid-template-columns: 1fr;
  }

  .live-map-coverage-summary {
    grid-template-columns: 1fr;
  }

  .live-map-canvas {
    height: 430px;
  }
}

/* 商家管理 */
.merchant-admin-header {
  align-items: flex-start;
}

.merchant-admin-header p {
  margin-top: 6px;
  line-height: 1.6;
}

.merchant-admin-summary {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
}

.merchant-admin-summary .stat-card {
  min-height: 108px;
}

.merchant-admin-summary .stat-num {
  font-size: 24px;
  overflow-wrap: anywhere;
}

.merchant-admin-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 12px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #f8fafc;
}

.merchant-admin-tab {
  flex: 0 0 auto;
  min-width: 104px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.merchant-admin-tab:hover {
  color: #0f766e;
  background: #ecfdf5;
}

.merchant-admin-tab.active {
  color: #ffffff;
  border-color: #0f766e;
  background: #0f766e;
  box-shadow: 0 2px 7px rgba(15, 118, 110, 0.22);
}

.merchant-admin-status {
  min-height: 22px;
  margin: 0 0 10px;
  font-size: 13px;
}

.merchant-admin-status.error {
  color: #b91c1c;
}

.merchant-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(140px, 190px) auto auto;
  gap: 10px;
  margin-bottom: 12px;
}

.merchant-admin-toolbar input,
.merchant-admin-toolbar select,
.merchant-admin-pager select {
  min-width: 0;
  height: 40px;
}

.merchant-admin-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.merchant-admin-pager-actions,
.merchant-detail-actions,
.merchant-more-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.merchant-detail-actions {
  justify-content: flex-end;
}

.merchant-detail-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.merchant-detail-table {
  min-width: 620px;
  margin-bottom: 14px;
}

.merchant-detail-table:last-child {
  margin-bottom: 0;
}

.merchant-detail-table th,
.merchant-detail-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.merchant-admin-panel[hidden] {
  display: none;
}

.merchant-admin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.merchant-admin-table {
  min-width: 920px;
  table-layout: auto;
}

.merchant-admin-table th,
.merchant-admin-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.merchant-admin-table .mono {
  max-width: 220px;
}

.merchant-admin-subtext {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.merchant-admin-money {
  color: #047857;
  font-weight: 800;
  white-space: nowrap;
}

.merchant-admin-empty {
  padding: 28px 16px !important;
  color: #64748b;
  text-align: center;
}

.merchant-location-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.merchant-location-review-actions button {
  min-width: 132px;
}

.merchant-location-review-readonly,
.merchant-location-review-rule {
  padding: 12px 14px;
  border: 1px solid #dbe4ea;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  line-height: 1.65;
}

.merchant-location-review-risks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.merchant-location-review-risks span {
  padding: 7px 10px;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
}

.merchant-location-review-risks.is-clear span {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.merchant-location-review-photo {
  display: inline-flex;
  max-width: 420px;
  flex-direction: column;
  gap: 8px;
  color: #0f766e;
  font-weight: 700;
}

.merchant-location-review-photo img {
  width: 100%;
  max-height: 320px;
  border: 1px solid #dbe4ea;
  border-radius: 6px;
  background: #f8fafc;
  object-fit: contain;
}

@media (max-width: 1500px) {
  .merchant-admin-summary {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 920px) {
  body.merchant-admin-active .content {
    margin-top: 220px;
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
  }

  .merchant-admin-header {
    gap: 12px;
  }

  .merchant-admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .merchant-admin-tab {
    min-width: 92px;
  }

  .merchant-admin-panel .section-head-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .merchant-admin-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .merchant-admin-toolbar input {
    grid-column: 1 / -1;
  }

  .merchant-admin-pager {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .content {
    margin-top: 230px;
  }

  .merchant-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .merchant-admin-toolbar input {
    grid-column: auto;
  }

  .merchant-admin-pager-actions {
    width: 100%;
  }

  .merchant-admin-pager-actions select,
  .merchant-admin-pager-actions button {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* 商家管理桌面工作区：默认按后台宽屏密度呈现，窄屏仍由上方断点接管。 */
@media (min-width: 981px) {
  body.merchant-admin-active #page-merchantAdmin {
    max-width: none;
    width: 100%;
  }

  body.merchant-admin-active #page-merchantAdmin .page-header h2 {
    font-size: 34px;
    letter-spacing: 0;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-header p {
    font-size: 15px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-summary {
    grid-template-columns: repeat(6, minmax(170px, 1fr));
    gap: 16px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-summary .stat-card {
    min-height: 124px;
    padding: 24px 22px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-summary .stat-num {
    font-size: 28px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-summary .stat-label {
    font-size: 14px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-tabs {
    gap: 10px;
    margin: 22px 0 16px;
    padding: 8px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-tab {
    min-width: 132px;
    height: 48px;
    padding: 0 20px;
    font-size: 15px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-panel {
    padding: 30px;
    border-radius: 18px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-panel .section-head-row {
    margin-bottom: 22px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-panel .section-head-row h3 {
    font-size: 22px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-toolbar {
    grid-template-columns: minmax(400px, 1fr) 210px 112px 112px;
    gap: 14px;
    margin-bottom: 18px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-toolbar input,
  body.merchant-admin-active #page-merchantAdmin .merchant-admin-toolbar select,
  body.merchant-admin-active #page-merchantAdmin .merchant-admin-toolbar button {
    height: 48px;
    font-size: 14px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-table {
    min-width: 1280px;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-table th,
  body.merchant-admin-active #page-merchantAdmin .merchant-admin-table td {
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-table th {
    font-size: 13px;
    white-space: nowrap;
  }

  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="merchants"] .merchant-admin-table th:first-child,
  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="merchants"] .merchant-admin-table td:first-child {
    position: sticky;
    left: 0;
  }

  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="merchants"] .merchant-admin-table th:last-child,
  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="merchants"] .merchant-admin-table td:last-child {
    position: sticky;
    right: 0;
    min-width: 176px;
  }

  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="merchants"] .merchant-admin-table th:first-child,
  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="merchants"] .merchant-admin-table th:last-child {
    z-index: 4;
    background: #f8fafc;
  }

  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="merchants"] .merchant-admin-table td:first-child,
  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="merchants"] .merchant-admin-table td:last-child {
    z-index: 2;
    background: #fff;
  }

  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="merchants"] .merchant-admin-table th:last-child,
  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="merchants"] .merchant-admin-table td:last-child {
    box-shadow: -10px 0 16px -16px rgba(15, 23, 42, 0.55);
  }

  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="merchants"] .merchant-admin-table td:last-child .table-actions {
    flex-wrap: nowrap;
  }

  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="orders"] .merchant-admin-table th:last-child,
  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="orders"] .merchant-admin-table td:last-child {
    position: sticky;
    right: 0;
    min-width: 116px;
    box-shadow: -10px 0 16px -16px rgba(15, 23, 42, 0.55);
  }

  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="orders"] .merchant-admin-table th:last-child {
    z-index: 4;
    background: #f8fafc;
  }

  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="orders"] .merchant-admin-table td:last-child {
    z-index: 2;
    background: #fff;
  }

  body.merchant-admin-active #page-merchantAdmin [data-merchant-panel="orders"] .merchant-admin-table td:last-child .table-actions {
    flex-wrap: nowrap;
  }

  body.merchant-admin-active #page-merchantAdmin .merchant-admin-subtext {
    font-size: 13px;
  }

  body.merchant-admin-active .member-drawer-panel {
    width: min(980px, 86vw);
    padding: 32px;
  }

  body.merchant-admin-active .member-drawer-section {
    padding: 22px;
  }

  body.merchant-admin-active .member-drawer-section-title {
    font-size: 17px;
  }
}

@media (min-width: 981px) and (max-width: 1600px) {
  body.merchant-admin-active #page-merchantAdmin .merchant-admin-summary {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }
}
/* Finance security workbench */
.admin-login-status {
  padding: 10px 12px;
  border: 1px solid #d6e4df;
  background: #f5faf8;
  color: #245947;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.admin-login-status.setup-required {
  border-color: #f0cf91;
  background: #fff9ed;
  color: #8a5a0a;
}

.admin-login-tip {
  color: #68756f;
  font-size: 12px;
  line-height: 1.6;
}

.admin-enrollment-panel {
  padding: 14px;
  border: 1px solid #c6ddd4;
  background: #f5faf8;
}

.admin-enrollment-secret {
  margin: 10px 0;
  padding: 10px;
  border: 1px dashed #95b8aa;
  background: #fff;
  color: #183e32;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}

.finance-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.finance-security-status-card {
  min-width: 0;
}

.finance-readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.finance-readiness-grid > div {
  min-height: 88px;
  padding: 12px;
  border: 1px solid #e4ebe8;
  background: #fafcfb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.finance-readiness-grid span,
.finance-readiness-grid em {
  color: #74817c;
  font-size: 12px;
  font-style: normal;
}

.finance-readiness-grid strong {
  color: #193f33;
  font-size: 22px;
}

.finance-admin-create-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #dbe5e1;
  background: #fafcfb;
}

.finance-role-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 12px 0;
}

.finance-role-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344c43;
}

.finance-security-page .data-table input,
.finance-security-page .data-table select {
  min-width: 120px;
}

.finance-security-page .data-table select[multiple] {
  min-width: 150px;
}

.finance-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 160px;
}

@media (max-width: 1100px) {
  .finance-security-grid {
    grid-template-columns: 1fr;
  }

  .finance-readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #page-regionalOperator .regional-ledger-section .section-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  #page-regionalOperator .regional-ledger-section .section-head-row h3 {
    white-space: nowrap;
    word-break: keep-all;
  }

  #page-regionalOperator .regional-ledger-section .section-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #page-regionalOperator .regional-ledger-section .section-actions select {
    width: 100%;
    grid-column: 1 / -1;
  }

  #page-regionalOperator .regional-ledger-section .section-actions input {
    width: 100%;
    min-width: 0;
  }
}
