/* ============================================================
   Polo 用量看板 · 蓝色渐变 + 毛玻璃
   ============================================================ */
:root {
  --bg: #f3f6fc;
  --mesh-1: rgba(59, 130, 246, .16);
  --mesh-2: rgba(99, 102, 241, .12);
  --mesh-3: rgba(6, 182, 212, .12);
  --grid-line: rgba(59, 130, 246, .05);
  --glass: rgba(255, 255, 255, .68);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-border: rgba(255, 255, 255, .7);
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --border: rgba(148, 163, 184, .22);
  --border-strong: rgba(148, 163, 184, .38);
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --primary: #2563eb;
  --primary-2: #3b82f6;
  --primary-soft: rgba(59, 130, 246, .12);
  --primary-text: #1d4ed8;
  --ring: rgba(59, 130, 246, .35);
  --grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(124, 58, 237, .12));
  --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --ok: #059669; --ok-bg: rgba(16, 185, 129, .13); --ok-bar: linear-gradient(90deg, #34d399, #10b981);
  --warn: #d97706; --warn-bg: rgba(245, 158, 11, .15); --warn-bar: linear-gradient(90deg, #fbbf24, #f59e0b);
  --bad: #dc2626; --bad-bg: rgba(239, 68, 68, .13); --bad-bar: linear-gradient(90deg, #f87171, #ef4444);
  --indigo: #4f46e5; --indigo-bg: rgba(99, 102, 241, .14);
  --emerald: #047857; --emerald-bg: rgba(16, 185, 129, .14);
  --purple: #7c3aed; --purple-bg: rgba(139, 92, 246, .14);
  --amber: #b45309; --amber-bg: rgba(245, 158, 11, .16);
  --cyan: #0e7490; --cyan-bg: rgba(6, 182, 212, .14);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --shadow-glow: 0 8px 24px rgba(37, 99, 235, .32);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 248px;
  color-scheme: light;
}
html.dark {
  --bg: #070b16;
  --mesh-1: rgba(37, 99, 235, .22);
  --mesh-2: rgba(124, 58, 237, .16);
  --mesh-3: rgba(6, 182, 212, .12);
  --grid-line: rgba(148, 163, 184, .04);
  --glass: rgba(15, 23, 42, .58);
  --glass-strong: rgba(15, 23, 42, .82);
  --glass-border: rgba(148, 163, 184, .14);
  --surface: #0f172a;
  --surface-2: #131c31;
  --surface-3: #1e293b;
  --border: rgba(148, 163, 184, .14);
  --border-strong: rgba(148, 163, 184, .26);
  --text: #e2e8f0;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --primary-soft: rgba(59, 130, 246, .18);
  --primary-text: #93c5fd;
  --ring: rgba(96, 165, 250, .4);
  --ok: #34d399; --ok-bg: rgba(16, 185, 129, .16);
  --warn: #fbbf24; --warn-bg: rgba(245, 158, 11, .16);
  --bad: #f87171; --bad-bg: rgba(239, 68, 68, .16);
  --indigo: #a5b4fc; --indigo-bg: rgba(99, 102, 241, .22);
  --emerald: #6ee7b7; --emerald-bg: rgba(16, 185, 129, .2);
  --purple: #c4b5fd; --purple-bg: rgba(139, 92, 246, .22);
  --amber: #fcd34d; --amber-bg: rgba(245, 158, 11, .2);
  --cyan: #67e8f9; --cyan-bg: rgba(6, 182, 212, .2);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
::selection { background: var(--primary-soft); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 4px; }
.wrap { flex-wrap: wrap; }
.text-ok { color: var(--ok); } .text-warn { color: var(--warn); } .text-bad { color: var(--bad); }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -24px); } }

/* ---------- 背景 ---------- */
.bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(at 12% 8%, var(--mesh-1) 0, transparent 46%),
    radial-gradient(at 88% 4%, var(--mesh-2) 0, transparent 42%),
    radial-gradient(at 70% 92%, var(--mesh-3) 0, transparent 46%);
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 16s ease-in-out infinite; }
.orb-1 { width: 380px; height: 380px; background: #3b82f6; top: -120px; right: -100px; }
.orb-2 { width: 320px; height: 320px; background: #8b5cf6; bottom: -120px; left: -80px; animation-delay: -6s; }
.orb-3 { width: 260px; height: 260px; background: #06b6d4; top: 40%; left: 55%; opacity: .3; animation-delay: -10s; }
html.dark .orb { opacity: .28; }

/* ---------- 玻璃与卡片 ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
}
.card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeUp .35s ease-out both;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-title { margin: 0; font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-title .icon { color: var(--primary); }
.card-body { padding: 18px 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 12px; padding: 9px 16px;
  font-size: 14px; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); background-size: 140% 140%; }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 30px rgba(79, 70, 229, .4); background-position: 100% 0; }
.btn-secondary { background: var(--glass-strong); border-color: var(--border-strong); color: var(--text-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover:not(:disabled) { border-color: var(--primary-2); color: var(--primary-text); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: var(--primary-soft); color: var(--primary-text); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 8px 22px rgba(239, 68, 68, .3); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 8px 22px rgba(16, 185, 129, .28); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
.btn-xs { padding: 3px 8px; font-size: 12px; border-radius: 8px; }
.btn-icon { padding: 8px; border-radius: 11px; }
.btn-block { width: 100%; padding: 11px 16px; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.hint { font-size: 12px; color: var(--muted); }
.input, .select {
  width: 100%; padding: 10px 14px; border-radius: 12px;
  background: var(--glass-strong); color: var(--text);
  border: 1px solid var(--border-strong); font: inherit; font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 4px var(--ring); }
.input-sm, .select-sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 42px; }
.input-wrap .input.has-lead { padding-left: 38px; padding-right: 14px; }
.input-wrap .lead { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-wrap .trail { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: .2s; }
.switch input:checked + span { background: var(--grad); }
.switch input:checked + span::after { transform: translateX(18px); }
.strength { display: flex; gap: 4px; margin-top: 2px; }
.strength i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background .2s; }
.strength.s1 i:nth-child(-n+1) { background: var(--bad); }
.strength.s2 i:nth-child(-n+2) { background: var(--warn); }
.strength.s3 i:nth-child(-n+3) { background: #22c55e; }
.strength.s4 i { background: var(--ok); }
.form-error { color: var(--bad); font-size: 13px; min-height: 20px; margin: 4px 0 8px; }

/* ---------- 徽章 ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-gray { background: var(--surface-2); color: var(--muted); }
.b-blue { background: var(--primary-soft); color: var(--primary-text); }
.b-purple { background: var(--purple-bg); color: var(--purple); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 550; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
button.chip { border: 0; font-family: inherit; line-height: inherit; cursor: pointer; }  /* 可点的标签（如「用量像高级」）：去掉按钮自带的边框 */
button.chip:hover { filter: brightness(.95); }
.chip-blue { background: var(--primary-soft); color: var(--primary-text); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- 认证页 ---------- */
.auth { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow: hidden; }
.auth-top { position: absolute; top: 16px; right: 16px; z-index: 2; }
.auth-box { position: relative; z-index: 1; width: 100%; max-width: 420px; animation: fadeUp .45s ease-out both; }
.brand-hero { text-align: center; margin-bottom: 24px; }
.logo-tile { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); margin-bottom: 14px; }
.logo-tile .icon { width: 30px; height: 30px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.dark .gradient-text { background-image: linear-gradient(135deg, #60a5fa 0%, #818cf8 55%, #c084fc 100%); }
.brand-hero h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.brand-hero p { margin: 0; color: var(--muted); }
.auth-card { padding: 28px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.auth-card h2 { margin: 0 0 4px; font-size: 20px; }
.auth-card .sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: 13px; }
.auth-copy { text-align: center; margin-top: 26px; color: var(--faint); font-size: 12px; }
.success-state { text-align: center; padding: 8px 0; }
.success-state .ring { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.success-state .ring .icon { width: 30px; height: 30px; }

/* ---------- 应用布局 ---------- */
.app { position: relative; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  display: flex; flex-direction: column; padding: 18px 14px;
  background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  transition: transform .3s, width .3s;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.side-brand .logo { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow); flex-shrink: 0; }
.side-brand b { font-size: 16px; letter-spacing: -.01em; }
.side-brand small { display: block; color: var(--faint); font-size: 11px; }
.side-nav { flex: 1; overflow-y: auto; }
.side-section { margin: 14px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 4px;
  border-radius: 12px; color: var(--text-2); font-weight: 550; cursor: pointer; text-decoration: none !important;
  transition: background .2s, color .2s, box-shadow .2s;
}
.side-link:hover { background: var(--primary-soft); color: var(--primary-text); }
.side-link.active { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.side-link.disabled { opacity: .4; pointer-events: none; }
.side-link .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; text-align: center; line-height: 18px; }
.side-foot { border-top: 1px solid var(--border); padding-top: 12px; color: var(--faint); font-size: 11.5px; padding-left: 8px; }
.shell { position: relative; z-index: 1; margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
}
.topbar h1 { margin: 0; font-size: 17px; font-weight: 700; }
.topbar p { margin: 0; font-size: 12px; color: var(--muted); }
.menu-btn { display: none; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--glass-strong); cursor: pointer; }
.user-chip:hover { border-color: var(--primary-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; text-transform: uppercase; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }
.content { padding: 24px; max-width: 1480px; width: 100%; margin: 0 auto; }
.backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, .45); backdrop-filter: blur(2px); z-index: 35; }

/* ---------- 统计卡片 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stats.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.stat-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon .icon { width: 22px; height: 22px; }
.si-blue { background: var(--primary-soft); color: var(--primary); }
.si-ok { background: var(--ok-bg); color: var(--ok); }
.si-warn { background: var(--warn-bg); color: var(--warn); }
.si-bad { background: var(--bad-bg); color: var(--bad); }
.si-purple { background: var(--purple-bg); color: var(--purple); }
.si-cyan { background: var(--cyan-bg); color: var(--cyan); }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 24px; font-weight: 750; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub { font-size: 11.5px; color: var(--faint); margin-top: 2px; }

/* ---------- 工具栏 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--primary-text); box-shadow: var(--shadow-sm); }
html.dark .seg button.on { background: var(--surface-3); }
.updated { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 13px; border: 1px solid transparent; animation: fadeUp .3s ease-out both; }
.notice .icon { margin-top: 1px; }
.n-warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(245, 158, 11, .25); }
.n-info { background: var(--primary-soft); color: var(--primary-text); border-color: rgba(59, 130, 246, .22); }
.n-bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(239, 68, 68, .22); }
/* 新平台页：自动修复 */
.heal-bar .heal-body { display: grid; gap: 4px; min-width: 0; }
.heal-bar .switch { margin-left: 0; }
.px-heal { color: var(--warn); margin-top: 2px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th {
  position: sticky; top: 0; text-align: left; padding: 11px 14px; font-size: 12px; font-weight: 650; color: var(--muted);
  background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--primary-text); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--primary-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.cell-title { font-weight: 650; color: var(--text); font-size: 14px; }
.cell-sub { font-size: 12px; color: var(--faint); margin-top: 3px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; font-size: 12px; white-space: nowrap; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
/* ---------- 账号列表（紧凑行） ---------- */
.table.accounts { min-width: 1080px; }
.table.accounts td { padding: 12px 12px; }
.table.accounts td:first-child { padding-left: 18px; width: 270px; max-width: 270px; }
.l-line.l-first { flex-wrap: nowrap; }
.l-line.l-first .l-email { flex: 0 1 auto; min-width: 0; max-width: none; }
.lrow.off { opacity: .66; }
.l-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.tag-claude { font-size: 10.5px; font-weight: 650; padding: 0 6px; border-radius: 5px; border: 1px solid var(--primary-2); color: var(--primary-text); line-height: 17px; flex-shrink: 0; }
.l-email { font-size: 14px; font-weight: 650; color: var(--text); max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: copy; }
.l-email:hover { color: var(--primary-text); }
.l-name { font-size: 11.5px; color: var(--muted); }
.l-sub { font-size: 11.5px; color: var(--faint); margin-top: 4px; white-space: nowrap; }
.switch { width: 30px; height: 17px; border-radius: 999px; background: var(--surface-3); position: relative; flex-shrink: 0; margin-left: auto; }
.switch i { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .2s; }
.switch.on { background: linear-gradient(90deg, #10b981, #059669); }
.switch.on i { left: 15px; }
.chip-orange { background: rgba(234, 88, 12, .12); color: #c2410c; }
html.dark .chip-orange { color: #fdba74; background: rgba(234, 88, 12, .2); }
/* Team 席位徽章 */
.seat { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 750; letter-spacing: .02em; padding: 1px 7px; border-radius: 5px; border: 0; line-height: 17px; white-space: nowrap; font-family: inherit; }
button.seat { cursor: pointer; transition: filter .15s, box-shadow .15s; }
button.seat:hover { filter: brightness(1.08); box-shadow: 0 0 0 2px var(--primary-soft); }
.seat-premium { background: linear-gradient(90deg, #7c3aed, #c026d3); color: #fff; }
.seat-standard { background: linear-gradient(90deg, #0d9488, #059669); color: #fff; }
.seat-unset { background: transparent; color: var(--muted); border: 1px dashed var(--border-strong); }
.seat-caret { font-size: 9px; opacity: .8; }
/* 状态 + 实时并发 */
.rt-box { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 1px 2px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 11.5px; color: var(--text-2); background: var(--glass-strong); }
.rt-num { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 750; background: var(--surface-3); color: var(--muted); font-variant-numeric: tabular-nums; }
.rt-num.live { background: var(--grad); color: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.hbar-wrap { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.hbar { display: flex; gap: 2px; flex: 1; min-width: 140px; max-width: 220px; }
.hbar i { flex: 1; height: 7px; border-radius: 2px; }
.h-ok { background: #10b981; } .h-warn { background: #d4a514; } .h-bad { background: #f87171; opacity: .75; } .h-gray { background: var(--surface-3); }
.h-label { font-size: 12px; font-weight: 650; white-space: nowrap; }
.t-ok { color: var(--ok); } .t-warn { color: var(--warn); } .t-bad { color: var(--bad); } .t-gray { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-ok { background: var(--ok-bg); color: var(--ok); } .p-bad { background: var(--bad-bg); color: var(--bad); } .p-warn { background: var(--warn-bg); color: var(--warn); } .p-mute { background: var(--surface-2); color: var(--faint); }
.ip-pill { cursor: copy; font-size: 11.5px; }
.ip-pill .mono { font-weight: 650; }
/* 请求 */
.req { display: grid; grid-template-columns: max-content max-content; justify-content: start; gap: 5px 10px; align-items: center; font-size: 12.5px; white-space: nowrap; }
.req-k { color: var(--muted); font-size: 12px; }
.req .pill + .pill { margin-left: 4px; }
/* 额度 */
.qrows { display: grid; grid-template-columns: 42px minmax(70px, 1fr) 40px 58px; gap: 6px 8px; align-items: center; min-width: 240px; }
.q-k { font-size: 12px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.q-track { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.q-pct { font-size: 12px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.q-pct.warn { color: var(--warn); } .q-pct.bad { color: var(--bad); }
.q-left { font-size: 11px; color: var(--faint); text-align: right; white-space: nowrap; }
.q-note { grid-column: 2 / -1; font-size: 12px; font-weight: 600; color: #c2410c; }
html.dark .q-note { color: #fdba74; }
.q-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
/* 消耗 */
.cost { display: grid; grid-template-columns: max-content max-content max-content; justify-content: start; gap: 5px 14px; }
/* 消耗：整格一张表（每行 subgrid），标签 / 金额 / tok 三列各行对齐。行高和「请求」列一样（20px，行距 5px），几列的四行左右对齐 */
.cost-row { grid-column: 1 / -1; display: grid; grid-template-columns: max-content max-content max-content; grid-template-columns: subgrid; align-items: center; min-height: 20px; font-size: 12.5px; white-space: nowrap; }
.cost-row .q-k { font-weight: 500; }
.cost-row .c-v { text-align: right; color: var(--text-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.cost-row .faint { text-align: right; font-size: 11.5px; }
.cost-row.strong .q-k { color: var(--text-2); }
.cost-row.strong .c-v { color: var(--text); font-weight: 750; }
.l-act { width: 36px; text-align: right; }
.icon-btn { border: 0; background: transparent; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); font-size: 16px; cursor: pointer; line-height: 1; }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary-text); }
.table.wide { min-width: 1000px; }
.table.archived { min-width: 1060px; }
.err-text { font-size: 12px; color: var(--muted); max-width: 330px; white-space: normal; word-break: break-word; margin-top: 5px; line-height: 1.45; }
.table.accounts .cell-sub { white-space: nowrap; }
.email { font-size: 11.5px; color: var(--muted); margin-top: 2px; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: copy; }
.email:hover, .ip:hover { color: var(--primary-text); }
.ip { font-weight: 700; font-size: 13.5px; color: var(--text); cursor: copy; white-space: nowrap; }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip b { color: var(--text-2); font-weight: 650; }
.empty .icon { width: 40px; height: 40px; color: var(--faint); margin-bottom: 8px; }

/* ---------- 额度进度条（参考 sub2api UsageProgressBar） ---------- */
.usage { display: flex; flex-direction: column; gap: 6px; min-width: 250px; }
.u-stats { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: -2px; }
.u-stats span { font-size: 10.5px; padding: 0 6px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.u-row { display: flex; align-items: center; gap: 8px; }
.u-label { width: 52px; text-align: center; padding: 1px 0; border-radius: 6px; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.ul-5h { background: var(--indigo-bg); color: var(--indigo); }
.ul-7d { background: var(--emerald-bg); color: var(--emerald); }
.ul-fable { background: var(--amber-bg); color: var(--amber); }
.ul-sonnet { background: var(--purple-bg); color: var(--purple); }
.ul-other { background: var(--cyan-bg); color: var(--cyan); }
.u-track { width: 84px; height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; flex-shrink: 0; }
.u-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }
.uf-ok { background: var(--ok-bar); } .uf-warn { background: var(--warn-bar); } .uf-bad { background: var(--bad-bar); }
.u-pct { width: 40px; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); flex-shrink: 0; }
.u-pct.warn { color: var(--warn); } .u-pct.bad { color: var(--bad); }
.u-reset { font-size: 11.5px; color: var(--faint); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.u-reset.pending { color: var(--warn); }

/* ---------- 账号卡片网格 ---------- */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; padding: 16px; }
.acard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.acard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-2); }
.acard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); opacity: .55; }
.acard.warm::before { background: var(--warn-bar); opacity: 1; }
.acard.hot::before { background: var(--bad-bar); opacity: 1; }
.acard.off { opacity: .72; }
.acard.off::before { background: var(--surface-3); opacity: 1; }
.ac-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ac-id { min-width: 0; }
.ac-name { font-size: 16px; font-weight: 750; color: var(--text); letter-spacing: -.01em; }
.acard .email { max-width: 100%; }
.ac-meta { text-align: right; font-size: 11.5px; color: var(--faint); line-height: 1.6; white-space: nowrap; flex-shrink: 0; }
.ac-sec { border-top: 1px dashed var(--border); padding-top: 10px; }
.acard .usage { min-width: 0; gap: 7px; }
.acard .u-track { flex: 1; width: auto; min-width: 50px; }
.acard .u-reset { min-width: 104px; justify-content: flex-end; }
.mini { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.mini th { font-weight: 550; color: var(--faint); text-align: right; padding: 0 0 4px; font-size: 11px; }
.mini td { text-align: right; padding: 2px 0; color: var(--text-2); font-weight: 600; }
.mini td:first-child, .mini th:first-child { text-align: left; color: var(--muted); font-weight: 500; }
.ac-foot { display: flex; flex-direction: column; gap: 7px; }
.ac-ip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ac-ip .ip { font-size: 13px; }
.ac-ico { color: var(--faint); display: inline-flex; }
.ac-rt { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ac-rt i { flex-basis: 100%; height: 0; }

/* ---------- 运维面板 ---------- */
.ops { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.ops-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ops dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 13px; }
.ops dt { color: var(--muted); }
.ops dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 弹窗、菜单、提示 ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(2, 6, 23, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeUp .2s ease-out both; }
.modal { width: 100%; max-width: 480px; max-height: 92vh; display: flex; flex-direction: column; border-radius: 22px; background: var(--glass-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); animation: scaleIn .2s ease-out both; }
.modal.wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); }
.menu { position: fixed; z-index: 70; min-width: 180px; padding: 6px; border-radius: 14px; background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); animation: scaleIn .15s ease-out both; }
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 9px; font-size: 13px; color: var(--text-2); cursor: pointer; text-align: left; }
.menu-item:hover:not(:disabled) { background: var(--primary-soft); color: var(--primary-text); }
.menu-item.danger { color: var(--bad); }
.menu-item.danger:hover:not(:disabled) { background: var(--bad-bg); color: var(--bad); }
.menu-item:disabled { opacity: .4; cursor: not-allowed; }
.menu-item .tick { margin-left: auto; color: var(--primary); }
.menu-sep { height: 1px; background: var(--border); margin: 5px 4px; }
.menu-head { padding: 6px 10px 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 380px; padding: 12px 14px; border-radius: 14px; background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); font-size: 13px; animation: fadeUp .25s ease-out both; }
.toast.t-ok .icon { color: var(--ok); } .toast.t-bad .icon { color: var(--bad); } .toast.t-warn .icon { color: var(--warn); } .toast.t-info .icon { color: var(--primary); }
.secret-box { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--grad-soft); border: 1px dashed var(--primary-2); }
.secret-box code { flex: 1; font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--primary-text); word-break: break-all; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.pick-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.pick-email { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--glass-strong); cursor: pointer; font-size: 13px; transition: border-color .15s, background .15s; }
.pick:hover { border-color: var(--primary-2); }
.pick.on { border-color: var(--primary); background: var(--primary-soft); }
.pick input { accent-color: var(--primary); }
.pick small { margin-left: auto; color: var(--faint); font-size: 11px; flex-shrink: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 0, var(--surface-3) 40px, var(--surface-2) 80px); background-size: 800px 100%; animation: shimmer 1.4s linear infinite; }
.sk-line { height: 12px; margin: 6px 0; }
.mini-bar { width: 70px; height: 5px; border-radius: 4px; background: var(--surface-3); overflow: hidden; display: inline-block; vertical-align: middle; margin-left: 6px; }
.mini-bar i { display: block; height: 100%; background: var(--grad); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; }

/* ---------- 结算 ---------- */
.b-info { background: var(--primary-soft); color: var(--primary-text); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.period { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.period-range { font-size: 15px; margin: 4px 0; font-variant-numeric: tabular-nums; }
.period-range b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.money-strong { font-weight: 750; color: var(--text); }
td.money-strong, b.money-strong { color: var(--primary-text); }
.table tfoot td { padding: 11px 14px; font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--border); }
.table tr.click { cursor: pointer; }
.table tr.click .chev { transition: transform .2s; }
.table tr.click.open .chev { transform: rotate(180deg); }
.table tr.muted-row td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table tr.exp-row > td { background: var(--surface-2); padding: 10px 18px 14px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 4px 8px; border-bottom: 1px solid var(--border); font-size: 12px; }
.mini-table td { padding: 6px 8px; border-bottom: 1px dashed var(--border); vertical-align: top; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .num, .mini-table th:not(:first-child) { text-align: right; }
.mini-table .email { max-width: 260px; }
.sum-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sum-chips > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); min-width: 120px; }
.sum-chips small { font-size: 11.5px; color: var(--muted); }
.sum-chips b { font-size: 17px; font-variant-numeric: tabular-nums; }
.line-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 8px; }
.line-picks .lp-label { font-size: 11.5px; color: var(--muted); margin-right: 2px; }
.lp { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--faint); font-size: 12px; cursor: pointer; font-variant-numeric: tabular-nums; }
.lp.on { color: var(--text); background: var(--surface-2); border-color: var(--border-strong, var(--border)); }
.lp:not(.on) .lp-sw { opacity: .35; }
.lp:hover { border-color: var(--primary, #6366f1); }
.lp-sw { display: inline-block; flex: none; width: 18px; height: 0; border-top: 3px solid; }
.lp-act { color: var(--muted); border-style: dashed; }
@media (max-width: 760px) { .lp { padding: 5px 10px; min-height: 30px; } }
.cmp-chips { margin: 0 0 10px; }
.cmp-chips b { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.cmp-chips > div > span.faint { line-height: 1.35; }
@media (max-width: 760px) {
  .cmp-chips { gap: 8px; }
  .cmp-chips > div { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 8px 10px; }
  .cmp-chips b { font-size: 15px; }
  .cmp-chips > div > span.faint { font-size: 10.5px; overflow-wrap: anywhere; }
}
.settle-card .card-head { border-bottom: 0; padding-bottom: 10px; }
.settle-card.voided { opacity: .6; }
.btn-paid { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.loading-box { display: flex; align-items: center; gap: 10px; padding: 26px 6px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; overflow-x: auto; padding-top: 4px; }
.bar { flex: 1 0 28px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 28px; }
.bar-t { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar-t i { display: block; width: 70%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--grad); opacity: .85; transition: opacity .15s; }
.bar-t i.live { background: repeating-linear-gradient(135deg, #60a5fa 0 6px, #818cf8 6px 12px); }
.bar:hover .bar-t i { opacity: 1; }
.bar-v { font-size: 10.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-l { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.table.matrix { font-size: 12px; }
.table.matrix td, .table.matrix th { padding: 8px 10px; white-space: nowrap; }
.table.matrix .num { text-align: right; }
.sticky-col { position: sticky; left: 0; background: var(--glass-strong); z-index: 1; }
.table.matrix th.sticky-col { z-index: 2; background: var(--surface-2); }
.table.matrix .email { max-width: 190px; }
/* 回本进度 */
.rbar { position: relative; display: flex; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; min-width: 90px; box-shadow: inset 0 0 0 1px var(--border); }
.rbar i { display: block; height: 100%; }
.rbar i.done { background: linear-gradient(90deg, #22c55e, #16a34a); }
.rbar i.pend { background: repeating-linear-gradient(135deg, #fbbf24 0 5px, #f59e0b 5px 10px); }
.rec-mini { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 11.5px; color: var(--muted); max-width: 360px; }
.rec-mini .rbar { height: 6px; }
.rec-big .rbar { height: 12px; margin-bottom: 12px; }
.strike { text-decoration: line-through; }
.mini-table.charges th { text-align: left; }
.mini-table.charges th.num, .mini-table.charges td.num { text-align: right; }
.mini-table.charges td:last-child { text-align: right; }
.charges-wrap { overflow-x: auto; max-width: 100%; }
.mini-table.charges th, .mini-table.charges td:nth-child(1), .mini-table.charges td:nth-child(3),
.mini-table.charges td:nth-child(4), .mini-table.charges td:nth-child(5) { white-space: nowrap; }
@media (max-width: 760px) {
  .mini-table.charges .email { display: none; }
  .mini-table.charges td, .mini-table.charges th { padding: 6px 5px; }
}
.grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* ---------- 备注昵称 ---------- */
.uname2 { display: inline-flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.uname2 small { font-size: 11px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nick-btn { opacity: .55; padding: 0 6px; }
tr:hover .nick-btn { opacity: 1; }
.text-info { color: var(--primary-text); }

/* ---------- 按成员结算 ---------- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.mcard { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; animation: fadeUp .45s both; position: relative; overflow: hidden; }
.mcard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); opacity: .6; }
.mc-head { display: flex; align-items: center; gap: 10px; }
.mc-head .avatar { width: 36px; height: 36px; font-size: 15px; }
.mc-range { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mc-amts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mc-amt { background: var(--surface-2); border-radius: 10px; padding: 7px 9px; min-width: 0; }
.mc-amt small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; }
.mc-amt b { font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-pay { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border); }
.mc-pay small { font-size: 11.5px; color: var(--muted); }
.mc-big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mc-usdt { font-size: 13px; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mc-items { margin-top: 6px; }
.calc { margin: 14px 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px dashed var(--border); font-size: 13px; color: var(--text-2); }
.calc-row:last-child { border-bottom: 0; }
.calc-row small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.calc-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-row.warn b { color: var(--warn); }
.calc-row.total { background: var(--grad-soft); font-weight: 650; color: var(--text); }
.calc-row.total b { font-size: 20px; }
.pay-box { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--glass-strong); display: flex; flex-direction: column; gap: 10px; }
.pay-out { font-size: 14px; }
.pay-out b { font-size: 18px; }
.radio-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--border); margin-bottom: 8px; cursor: pointer; }
.radio-row:has(input:checked) { border-color: var(--primary-2); background: var(--primary-soft); }
.radio-row input[type=radio] { margin-top: 3px; }
.span-hist { margin-top: 4px; }
.voided-row td { opacity: .55; }
.voided-row td:first-child { opacity: 1; }

/* ---------- 统计看板 ---------- */
.stats-bar { padding: 12px 16px; margin-bottom: 16px; }
.stats-bar .input, .stats-bar .select { width: auto; }
.stats-bar input[type=date] { width: 150px; }
.stats-bar-in { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.stats-bar-in > .row { flex-wrap: nowrap; }
.seg-wrap { flex-wrap: wrap; }
.seg-sm button { padding: 3px 9px; font-size: 12px; }
.stats.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1800px) { .stats.kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi .stat-sub { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.delta { display: inline-flex; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--ok); background: rgba(16, 185, 129, .12); }
.delta.down { color: var(--bad); background: rgba(239, 68, 68, .12); }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.chart-grid .span-2 { grid-column: 1 / -1; }
.chart-card { min-width: 0; }
.chart-body { padding: 10px 14px 12px; }
.chart { height: 300px; width: 100%; }
.chart-lg { height: 380px; }
.rise { animation: fadeUp .5s both; }
.ct-title { font-weight: 700; margin-bottom: 6px; font-size: 12.5px; }
.ct-row { display: flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1.75; min-width: 170px; }
.ct-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.ct-row b { font-variant-numeric: tabular-nums; }
.ct-total { border-top: 1px dashed rgba(148, 163, 184, .4); margin-top: 4px; padding-top: 3px; }
.ct-more { font-size: 11px; opacity: .7; }
.ct-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; background: #94a3b8; }
.cd0 { background: #3b82f6; } .cd1 { background: #8b5cf6; } .cd2 { background: #06b6d4; } .cd3 { background: #10b981; } .cd4 { background: #f59e0b; }
.cd5 { background: #ef4444; } .cd6 { background: #ec4899; } .cd7 { background: #6366f1; } .cd8 { background: #14b8a6; } .cd9 { background: #84cc16; }
.cd10 { background: #f97316; } .cd11 { background: #a855f7; } .cd12 { background: #0ea5e9; } .cd13 { background: #94a3b8; }
.spark { width: 96px; height: 26px; display: block; }
.spark-line { fill: none; stroke: #6366f1; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: rgba(99, 102, 241, .14); stroke: none; }
.pct-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 60px; }
.pct-bar { width: 60px; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pct-bar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover, .table th.sorted { color: var(--primary-text); }
.matrix-card > summary { cursor: pointer; list-style: none; border-bottom: 0; }
.matrix-card[open] > summary { border-bottom: 1px solid var(--border); }
.matrix-card > summary::-webkit-details-marker { display: none; }
.matrix-card { margin-top: 16px; }
.srows { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.srow-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sbar { display: flex; height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.sbar i { display: block; height: 100%; animation: growX .8s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.sb-m { background: var(--grad); }
.sb-a { background: #10b981; }
@keyframes growX { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise, .mcard, .sbar i { animation: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .shell { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .stats.s3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .stats.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 14px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; }
  .stat-value { font-size: 20px; }
}
@media (max-width: 760px) {
  .content { padding: 14px; }
  .topbar { padding: 0 12px; }
  .topbar p { display: none; }
  .user-chip .uname { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agrid { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .mgrid { grid-template-columns: 1fr; }
  .stats-bar-in > .row { flex-wrap: wrap; }
  .stats-bar input[type=date] { width: 138px; }
  .mc-amts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart { height: 260px; }
  .chart-lg { height: 320px; }
  .grid-4 { grid-template-columns: 1fr; }
  .sum-chips > div { min-width: calc(50% - 5px); }
  .table.accounts td:first-child { width: 100%; max-width: none; padding-left: 0; }
  .l-email { max-width: 240px; }
  .l-act { display: none !important; }
  .stat { padding: 14px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; border-radius: 12px; }
  .stat-value { font-size: 19px; }
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; min-width: 0; }
  .table.responsive tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .table.responsive td { border: 0; padding: 6px 0; display: flex; flex-direction: column; gap: 4px; }
  .table.responsive td::before { content: attr(data-label); font-size: 12px; color: var(--faint); }
  .stat-value { white-space: normal; font-size: 18px; }
  .table.responsive td[data-label=""]::before { display: none; }
  .usage { min-width: 0; }
  .grid-half { grid-template-columns: 1fr; }
  .toasts { left: 12px; right: 12px; }
  .toast { max-width: none; }
}
/* 上家结算 */
.chip-ok { background: var(--ok-bg, rgba(16,185,129,.12)); color: var(--ok, #059669); }
.until-row { gap: 10px; margin-bottom: 12px; align-items: center; }
.until-row > .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.reach { padding: 14px 16px; border-radius: 14px; background: var(--grad-soft); margin: 12px 0 10px; }
.reach small { font-size: 12px; color: var(--muted); }
.reach-t { font-size: 24px; font-weight: 750; letter-spacing: .3px; font-variant-numeric: tabular-nums; margin: 2px 0 4px; color: var(--primary-text); }
.split-table .grp-row td { background: var(--surface-2); font-weight: 600; }
.split-table td:first-child { min-width: 120px; }
@media (max-width: 760px) { .reach-t { font-size: 19px; } .split-table .c-range, .split-table .c-pct { display: none; } }
.stats-scope { gap: 10px; align-items: center; margin-top: 10px; }
.stats-scope > .label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stats-scope select.on { border-color: var(--primary); color: var(--primary-text); font-weight: 600; }
.up-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--primary-soft); font-size: 13px; }
.up-sum a { margin-left: auto; font-weight: 600; }
/* ---------- 排序方向 / 周额度开关 / 说明折叠（全部尺寸） ---------- */
.sort-group { display: inline-flex; gap: 6px; align-items: center; }
.sort-dir { white-space: nowrap; gap: 4px; }
.sort-dir .sd-arrow { font-weight: 800; color: var(--primary-text); }
.out-toggle { font-size: 12.5px; white-space: nowrap; }
.out-toggle .faint { margin-left: 2px; }
.howto > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; }
.howto > summary::-webkit-details-marker { display: none; }
.howto > summary::after { content: '▾'; color: var(--faint); font-size: 12px; transition: transform .2s; }
.howto[open] > summary::after { transform: rotate(180deg); }
.howto-tip { font-size: 12px; color: var(--primary-text); font-weight: 500; }
.howto[open] .howto-tip { display: none; }
.howto[open] > summary + * { margin-top: 4px; }
.bottom-nav { display: none; }
.m-only { display: none; }

/* ---------- 手机（小米 15 Pro 等，约 412 × 915 CSS 像素） ---------- */
@media (max-width: 760px) {
  .m-only { display: initial; }
  div.m-only { display: block; }
  .d-only { display: none !important; }
  /* 顶栏更矮；全面屏 / 添加到桌面时让出状态栏 */
  .topbar { height: calc(54px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .topbar h1 { font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .content { padding: 12px 12px 18px; }
  .app.has-bn .content { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .card-head { padding: 14px 14px; }
  .card-body { padding: 14px; }
  .notice { font-size: 12.5px; }

  /* 底部导航 */
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 32;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--glass-strong); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid var(--glass-border); box-shadow: 0 -6px 24px rgba(15, 23, 42, .06);
  }
  .bn-item {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 2px 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 550;
    text-decoration: none !important; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .bn-ic { position: relative; width: 52px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
  .bn-ic .icon { width: 21px; height: 21px; }
  .bn-item.active { color: var(--primary-text); font-weight: 700; }
  .bn-item.active .bn-ic { background: var(--primary-soft); }
  .bn-item:active .bn-ic { background: var(--surface-3); }
  .bn-ic .count { position: absolute; top: -3px; right: 6px; min-width: 17px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sidebar { width: min(300px, 84vw); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

  /* 手指好点：按钮、分段、下拉至少约 36px 高 */
  .btn-sm { min-height: 36px; padding: 7px 12px; }
  .btn-xs { min-height: 32px; padding: 5px 10px; }
  .seg button { min-height: 34px; padding: 6px 12px; }
  .seg-sm button { min-height: 30px; padding: 4px 10px; }
  .input-sm, .select-sm { min-height: 38px; font-size: 14px; }
  .icon-btn { width: 36px; height: 36px; }
  .check input { width: 18px; height: 18px; }
  .nick-btn { opacity: 1; }

  /* 用量看板工具栏：搜索一行，筛选 + 显示方式一行，排序一行，周额度开关一行 */
  .dash-tools { width: 100%; gap: 8px; }
  .dash-tools > .dash-search { order: 0; flex: 1 1 100%; width: auto !important; }
  .dash-tools > .seg:not(.view-seg) { order: 1; }
  .dash-tools > .view-seg { order: 2; margin-left: auto; }
  .dash-tools > .sort-group { order: 3; flex: 1 1 100%; }
  .dash-tools > .sort-group select { flex: 1; min-width: 0; }
  .dash-tools > .out-toggle { order: 4; flex: 1 1 100%; }
  .agrid { padding: 8px; gap: 10px; }

  /* 结算页标签：一行横向滑动 */
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 12px; padding: 2px 12px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs > * { flex-shrink: 0; }
  .period { gap: 10px; }
  .period > .toolbar { width: 100%; }

  /* 窄屏表格：两列排布，账号 / 长内容占整行；合计行同样带标签 */
  .table.responsive tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; }
  .table.responsive td[data-label=""], .table.responsive td.wide, .table.responsive td:not([data-label]),
  .table.responsive td[data-label="可见账号"], .table.responsive td[data-label="默认账号"], .table.responsive td[data-label="给成员结算"],
  .table.responsive td[data-label="归档原因"], .table.responsive td[data-label="账号"],
  .table.responsive td[data-label="走势"], .table.responsive td[data-label="区间"], .table.responsive td[data-label="事件"] { grid-column: 1 / -1; }
  .table.responsive td:empty { display: none; }
  .table.responsive td.nowrap, .table.responsive td.small.nowrap { white-space: normal; }
  .table.responsive tfoot { display: block; }
  .table.responsive tfoot tr { background: var(--surface-2); }
  .table.responsive tfoot td { background: transparent; border: 0; padding: 4px 0; }
  .table.responsive tfoot tr.ft-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 6px; padding-bottom: 6px; border-top: 1px dashed var(--border); }
  .table.responsive tfoot tr.ft-line td { display: block; width: auto; }
  .table.responsive tfoot tr.ft-line td.num { text-align: right; white-space: nowrap; }
  .table.responsive td .pct-cell { justify-content: flex-start; }
  .table.responsive .row .input-sm { width: 80px !important; }
  /* 徽章 / 标签不要拉伸成整条 */
  .table.responsive td > .badge, .table.responsive td > .chip { align-self: flex-start; }
  .table.responsive td.wide > .select { width: 100% !important; }
  /* 席位标签可点，放大一点 */
  button.seat { padding: 4px 9px; min-height: 26px; }
  /* 列表视图：额度窗口提到前面，请求和消耗并排一行 */
  .table.responsive.accounts tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; }
  .table.responsive.accounts td { grid-column: 1 / -1; }
  .table.responsive.accounts td:nth-child(1) { order: 1; }
  .table.responsive.accounts td:nth-child(2) { order: 2; }
  .table.responsive.accounts td:nth-child(4) { order: 3; }
  .table.responsive.accounts td:nth-child(3) { order: 4; grid-column: 1; }
  .table.responsive.accounts td:nth-child(5) { order: 5; grid-column: 2; }
  .table.responsive.accounts td:nth-child(5) .cost { min-width: 0; }
  .table.responsive.accounts td:nth-child(5) .cost-row .faint { min-width: 0; }
  /* 消耗列窄（和请求并排）：金额可能是「积分 + $」两段，token 换到金额下面一行，金额靠右 */
  .table.responsive.accounts td:nth-child(5) .cost { grid-template-columns: max-content minmax(0, 1fr); column-gap: 10px; }
  .table.responsive.accounts td:nth-child(5) .cost-row { grid-template-columns: subgrid; row-gap: 0; white-space: normal; }
  .table.responsive.accounts td:nth-child(5) .cost-row .c-v { white-space: nowrap; }
  .table.responsive.accounts td:nth-child(5) .cost-row .faint { grid-column: 2; line-height: 1.2; }

  /* 结算弹窗里的账号表：去掉区间 / Token 列，区间写在账号下面 */
  .win-table .c-range, .win-table .c-tok { display: none; }
  .modal-overlay { padding: 10px; align-items: flex-end; }
  .modal { max-height: calc(100dvh - 20px - env(safe-area-inset-top)); border-radius: 20px; }
  .modal-head { padding: 14px 16px; }
  .modal-body { padding: 14px 16px; }
  .modal-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { min-height: 42px; flex: 1; justify-content: center; }
  .menu { max-width: calc(100vw - 20px); }
  .menu button, .menu a { min-height: 40px; }

  /* 统计看板 */
  .stats-bar { padding: 12px; }
  .stats-bar input[type=date] { width: 128px; }
  .chart { height: 240px; }
  .chart-lg { height: 300px; }
}
/* 很窄的手机（≤ 380px）再收紧一点 */
@media (max-width: 380px) {
  .stat { padding: 12px; gap: 8px; }
  .stat-icon { width: 32px; height: 32px; }
  .stat-value { font-size: 17px; }
  .bn-ic { width: 44px; }
}
/* 手机横屏：底部导航变矮 */
@media (max-height: 480px) and (orientation: landscape) and (max-width: 1024px) {
  .bottom-nav { padding-top: 3px; padding-bottom: calc(3px + env(safe-area-inset-bottom)); }
  .bn-ic { height: 24px; }
}
/* ---------- 手机 / 触屏：滚动性能 ----------
   毛玻璃（backdrop-filter）每滚一帧都要把底下内容重新模糊一次，手机 GPU 跟不上，
   会出现“往下滑时下面内容迟迟刷不出来”。手机和触屏设备上改成接近不透明的纯色背景，
   阴影收小，去掉全屏网格遮罩和卡片入场动画。电脑上不受影响。 */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  :root {
    --glass: rgba(255, 255, 255, .93);
    --glass-strong: rgba(255, 255, 255, .98);
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 3px 10px rgba(15, 23, 42, .05);
    --shadow-lg: 0 10px 28px rgba(15, 23, 42, .16);
    --shadow-glow: 0 3px 10px rgba(37, 99, 235, .26);
  }
  html.dark {
    --glass: rgba(15, 23, 42, .92);
    --glass-strong: rgba(15, 23, 42, .97);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 10px rgba(0, 0, 0, .25);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, .45);
  }
  .glass, .card, .topbar, .bottom-nav, .sidebar, .modal, .menu, .toast, .modal-overlay, .backdrop {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .modal-overlay { background: rgba(2, 6, 23, .58); }
  .backdrop { background: rgba(2, 6, 23, .5); }
  .bg::after { display: none; }
  .card, .notice, .mcard, .rise, .acard, .sbar i { animation: none !important; }
  .acard:hover { transform: none; }
}
/* ---------- 实时数字（管理员看板顶部） ---------- */
.rt-block .stats { margin-bottom: 14px; }
.rt-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 2px 8px; font-size: 13px; }
.rt-head .faint { font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); flex-shrink: 0; }
.live-dot.off { background: var(--faint); box-shadow: none; }
@media (max-width: 760px) { .rt-block .stats { margin-bottom: 10px; } }
/* 冷却原因（如“7d 额度已满 · 10小时20分后恢复”） */
.l-cool { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 12px; font-weight: 650; color: var(--warn); white-space: normal; cursor: help; }
.l-cool .icon { flex-shrink: 0; }
.l-cool .l-recover { margin-left: 4px; padding: 1px 8px; font-size: 11px; flex-shrink: 0; cursor: pointer; }
/* 醒目的“并发 N”：卡片视图（所有尺寸）+ 手机列表（.mob）；大于 0 时渐变蓝 */
.conc-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--muted); font-size: 11.5px; line-height: 1; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.conc-pill b { font-size: 14px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.conc-pill.live { background: var(--grad); border-color: transparent; color: rgba(255, 255, 255, .88); box-shadow: 0 0 0 3px var(--primary-soft); }
.conc-pill.live b { color: #fff; }
.conc-pill.mob { display: none; }
@media (max-width: 760px) {
  .conc-pill { height: 28px; padding: 0 11px 0 10px; font-size: 12.5px; }
  .conc-pill b { font-size: 16px; }
  .conc-pill.mob { display: inline-flex; margin-left: auto; }
  .lrow .rt-box .rt-num { display: none; }
  .lrow .rt-box { padding-left: 9px; }
}
/* 额度窗口：看板里 5h / 7d 条后面的“本窗口已跑 $” + 额度窗口页 */
.qrows { grid-template-columns: 42px minmax(64px, 1fr) 40px 58px 48px; min-width: 272px; }
.q-usd, .u-usd { font-size: 12px; font-weight: 750; text-align: right; color: var(--primary-text); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-usd:hover, .u-usd:hover { text-decoration: underline; }
.q-usd.partial, .u-usd.partial { color: var(--warn); }
.q-usd.wait, .u-usd.wait { color: var(--faint); }
.u-usd { font-size: 11.5px; min-width: 42px; flex-shrink: 0; }
.acard .u-reset { min-width: 90px; }
.qw-row { cursor: pointer; }
@media (hover: hover) { .qw-row:hover td { background: var(--surface-2); } }
.qw-row.on td { background: var(--primary-soft); }
.qw-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qw-name .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.qw-cur { display: flex; flex-direction: column; gap: 2px; }
.qw-usd { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--text); }
.qw-usd.partial { color: var(--warn); }
.qw-spark { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qw-pick { gap: 8px; }
.qw-sel { width: auto; max-width: 340px; }
.qw-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.qw-kpi { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.qw-kpi b { font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--text); }
.qw-table td.num, .qw-table th:nth-child(n+2):not(:nth-child(6)):not(:nth-child(9)) { text-align: right; }
.qw-table tr.qw-live td { background: rgba(59, 130, 246, .035); }
@media (max-width: 1100px) { .qw-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .qrows { min-width: 0; }
  .qw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .qw-pick { width: 100%; }
  .qw-sel { max-width: none; flex: 1 1 100%; }
  .qw-table td.num { text-align: left; }
  .qw-name .mono { max-width: 100%; }
  .qw-row.on { background: var(--primary-soft); }
  .qw-row.on td { background: transparent; }
}
/* v35 额度两行：第一行 标签 · 进度条 · % · 剩余时间；第二行 本窗口已跑 · 用满预测 · 重置时间（放不下就换行，不会压在一起） */
.qrows { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 230px; }
.qr { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qr-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.qr-top .q-k { flex: 0 0 auto; min-width: 28px; }
.qr-top .q-track { flex: 1 1 60px; min-width: 36px; }
.qr-top .q-pct { flex: 0 0 auto; min-width: 34px; }
.qr-top .q-left { flex: 0 0 auto; min-width: 42px; }
.qr-top .q-note { flex: 1 1 auto; min-width: 0; }
.qr-sub, .u-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.qr-sub { padding-left: 36px; }
.q-usd, .u-usd { display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; font-size: 12px; text-align: left; }
.q-usd b, .u-usd b { font-weight: 750; }
.qb-unit { font-size: 10.5px; font-weight: 500; color: var(--faint); }
.qb-full b { color: var(--text-2); }
.qb-full.guess b { color: var(--faint); font-weight: 600; }
.qb-full.done b { color: var(--bad); }
.u-q { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.u-sub { padding-left: 60px; }
.u-sub .u-reset { margin-left: auto; }
.acard .u-reset { min-width: 0; }
.qw-full { font-size: 12px; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.qw-full.guess { color: var(--faint); font-weight: 500; }
.qw-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.qc-card { margin-top: 16px; }
.qc-sum { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.qc-sum p { margin: 0; }
.qc-table td.num, .qc-table th:nth-child(n+2) { text-align: right; }
@media (max-width: 1100px) { .qw-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .qrows { min-width: 0; width: 100%; }
  .qw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qc-table td.num { text-align: left; }
}
/* v37：缓存卡片里的“并发、上下文和缓存”“官方额度怎么算（反推）”两节 */
.qc-sec { padding: 14px 18px 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qc-sec h4 { margin: 0; font-size: 14px; font-weight: 650; color: var(--text); }
.qc-sec p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.qc-sec .table-wrap { margin: 2px -18px 0; }
.qc-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; line-height: 1.55; }
.qc-list li { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .qc-sec { padding: 12px 14px 14px; }
  .qc-sec .table-wrap { margin: 2px -14px 0; }
}

/* ---- 看板：按归属筛选（管理员） ---- */
.own-head { justify-content: flex-start; padding-top: 10px; padding-bottom: 10px; }
.own-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; }
.own-lab { font-size: 12px; font-weight: 650; color: var(--muted); margin-right: 4px; white-space: nowrap; flex-shrink: 0; }
.own-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; line-height: 18px; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.own-chip i { font-style: normal; font-size: 11px; font-weight: 700; min-width: 18px; text-align: center; padding: 0 5px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.own-chip:hover:not(:disabled) { border-color: var(--primary-2); color: var(--primary-text); }
.own-chip.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-glow); }
.own-chip.on i { background: rgba(255, 255, 255, .24); color: #fff; }
.own-chip.own-me.on { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 6px 18px rgba(234, 88, 12, .28); }
.own-chip:disabled { opacity: .45; cursor: default; }
.own-chip:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---- 我的收益（成员）：服务器给内容，这里只管样子 ---- */
.rp-card { margin-bottom: 16px; }
.rp-pair { margin-bottom: 0; }
.rp-pair > .rp-card { margin-bottom: 16px; }
.rp-kpis .stat-sub { line-height: 1.45; }
.rp-note { margin-top: 3px; line-height: 1.5; max-width: 760px; }
.rp-chart-wide { height: 320px; }
.rp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rp-tile { position: relative; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.rp-tile::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.rp-t-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-t-name { font-size: 15px; font-weight: 750; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-t-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.rp-t-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 12px; }
.rp-t-stats small { display: block; font-size: 11.5px; color: var(--muted); }
.rp-t-stats b { display: block; margin-top: 1px; font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-t-bar { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); }
.rp-track { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.rp-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #3b82f6); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.rp-f-ok { background: var(--ok-bar); }
.rp-f-warn { background: var(--warn-bar); }
.rp-f-bad { background: var(--bad-bar); }
.rbar.rp-big { height: 14px; }
.rp-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 14px; }
.rp-legend small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.rp-legend b { display: block; margin-top: 2px; font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.rp-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; background: var(--surface-3); }
.rp-d0 { background: var(--grad); }
.rp-d1 { background: linear-gradient(90deg, #22c55e, #16a34a); }
.rp-d2 { background: repeating-linear-gradient(135deg, #fbbf24 0 3px, #f59e0b 3px 6px); }
.rp-d3 { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); }
@media (max-width: 760px) {
  .own-head { padding-top: 8px; padding-bottom: 8px; }
  .own-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .own-bar::-webkit-scrollbar { display: none; }
  .own-chip { flex-shrink: 0; padding: 5px 6px 5px 12px; }
  .rp-tiles { grid-template-columns: 1fr; gap: 10px; }
  .rp-tile { padding: 12px 14px; }
  .rp-t-stats b { font-size: 15px; }
  .rp-chart-wide { height: 260px; }
  .rp-legend b { font-size: 15px; }
}

/* ---- Polo 暂时清空用量数据时，显示的是上次的真实值 ---- */
.q-stale { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; line-height: 16px; padding: 0 6px; border-radius: 5px; background: var(--warn-bg); color: var(--warn); white-space: nowrap; cursor: help; }
.q-stale::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }

/* ---- 回本进度：每个号的回本 ---- */
.table tr.has-accts > td { border-bottom: 0; padding-bottom: 6px; }
.table tr.rec-acc-row > td { padding: 2px 18px 16px; }
.table tr.rec-acc-row:hover > td { background: transparent; }
.rec-accts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rec-acct { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); min-width: 0; }
.rec-acct .ra-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rec-acct .ra-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rec-acct .ra-head .seat, .rec-acct .ra-head .chip { flex: none; }
.rec-acct .ra-pct { margin-left: auto; flex: none; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.rec-acct .rbar { min-width: 0; }
.rec-acct .ra-sub { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rp-t-bar .rbar { min-width: 0; height: 7px; }
@media (max-width: 760px) {
  .table.responsive tr.has-accts { border-bottom: 0; padding-bottom: 4px; }
  .table.responsive tr.rec-acc-row { padding: 0 14px 14px; }
  .table.responsive tr.rec-acc-row > td { padding: 0; }
  .table.responsive tr.rec-acc-row > td::before { display: none; }
  .rec-accts { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- 未结算 / 昨日收益 ---- */
.mc-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.mc-x { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); min-width: 0; cursor: default; }
.mc-x small { font-size: 11.5px; color: var(--muted); }
.mc-x b { font-size: 16px; font-variant-numeric: tabular-nums; }
.mc-x span { font-size: 11px; color: var(--faint); line-height: 1.4; font-variant-numeric: tabular-nums; }
.yd-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.yd-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 320px; }
.yd-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.yd-title .faint { font-weight: 400; }
.yd-amt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.yd-amt b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.yd-amt span:not(.chip) { color: var(--muted); font-size: 13px; }
.yd-amt .chip { align-self: center; }
.yd-row .toolbar .btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 760px) {
  .yd-row .toolbar { width: 100%; }
  .yd-row .toolbar .btn { width: 100%; justify-content: center; }
  .yd-amt b { font-size: 21px; }
}

/* ---------- 长列表分段显示 ---------- */
/* 列表底部的「再显示 N 条」 */
.more-row { display: flex; justify-content: center; border-top: 1px solid var(--border); padding: 12px; }
/* 手机上的登录记录：每条两行（时间 + 事件 / 用户 + IP），不带字段名 */
@media (max-width: 760px) {
  .table.responsive.logs tr { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 14px; }
  .table.responsive.logs td { padding: 0; flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; }
  .table.responsive.logs td::before { display: none; }
  .table.responsive.logs td .cell-sub { margin: 0; }
  .table.responsive.logs td[data-label="时间"] { order: 1; }
  .table.responsive.logs td[data-label="事件"] { order: 2; grid-column: auto; justify-content: flex-end; }
  .table.responsive.logs td[data-label="用户"] { order: 3; }
  .table.responsive.logs td[data-label="IP"] { order: 4; justify-content: flex-end; color: var(--faint); }
}

/* ---------- 复查修正：对齐与排版 ---------- */
/* 总池并发「近七天对照」：两边边距和卡片标题对齐，日期是文字链接 */
.mini-table.flush th, .mini-table.flush td { padding-top: 10px; padding-bottom: 10px; }
.mini-table.flush th:first-child, .mini-table.flush td:first-child { padding-left: 20px; }
.mini-table.flush th:last-child, .mini-table.flush td:last-child { padding-right: 20px; }
.day-table th { white-space: nowrap; }
.day-table tr.on td { background: var(--surface-2); }
.day-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
.day-link:hover { color: var(--primary-text); text-decoration: underline; }
.day-table tr.on .day-link { color: var(--primary-text); }
@media (max-width: 760px) {
  .mini-table.flush th:first-child, .mini-table.flush td:first-child { padding-left: 14px; }
  .mini-table.flush th:last-child, .mini-table.flush td:last-child { padding-right: 14px; }
}
/* 上家结算「未结算」明细：「归属区间」是文字，表头靠左 */
.split-table th.c-range { text-align: left; }
/* 统计看板账号明细「占比」：和表头一样靠左 */
.pct-cell { align-items: flex-start; }
/* 宽屏表格里，下拉框、行末的「⋯」和同一行第一行文字对齐 */
@media (min-width: 761px) {
  .table td.wide > .select-sm:first-child { margin-top: -7px; }
  .l-act .icon-btn { margin-top: -5px; }
  .table td[data-label="操作"] > .row:first-child { margin-top: -4px; }
  .table td[data-label="进度"] > :first-child { margin-top: 6px; }
}
/* 统计看板账号明细：12 列，1440 宽的屏幕上原来差 70px 放不下、最右边的走势被裁掉 */
@media (min-width: 761px) {
  .acct-table th, .acct-table td { padding-left: 10px; padding-right: 10px; }
  .acct-table .spark { width: 80px; }
}
/* 一排正好 5 张卡片：宽屏一行 5 张；窄一点 3 + 2；两列时最后单出来的那张占满一行 */
.stats.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1280px) { .stats.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
  .stats.n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats:not(.kpis) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .stats > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* 成本记录：手机上日期去年份、席位并到类型下面，操作按钮不再被挤出屏幕 */
.d-short, .seat-m { display: none; }
@media (max-width: 760px) {
  .mini-table.charges .d-full { display: none; }
  .mini-table.charges .d-short { display: inline; }
  .mini-table.charges .seat-m { display: block; }
  .mini-table.charges th:nth-child(4), .mini-table.charges td:nth-child(4) { display: none; }
  .mini-table.charges td:last-child > .row { margin-top: -6px; }
}
/* 统计卡片数字下面的副数字（例如上家收益折合人民币） */
.stat-alt { font-size: 14px; font-weight: 650; color: var(--text-2); margin-top: 1px; font-variant-numeric: tabular-nums; cursor: help; }
.yd-amt span.yd-cny { font-weight: 650; color: var(--text-2); cursor: help; }
/* 归属按钮上的并发合计：数量后面用一条竖线隔开 */
.own-chip.has-conc { padding-right: 12px; }
.own-chip .own-conc { font-size: 11.5px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; padding-left: 8px; border-left: 1px solid var(--border-strong); white-space: nowrap; }
.own-chip .own-conc.live { color: var(--primary-text); font-weight: 700; }
.own-chip.on .own-conc { color: rgba(255, 255, 255, .92); border-left-color: rgba(255, 255, 255, .35); }
/* 看板账号表（电脑）：表头文字和下面内容左边对齐（原来表头 14px、内容 12px，第一列 14 对 18）；
   列间距左右各 10px，1440 宽的屏幕上整张表放得下（原来多 6px，最右一列被裁掉一点） */
@media (min-width: 761px) {
  .table.accounts th, .table.accounts td { padding-left: 10px; padding-right: 10px; }
  .table.accounts th:first-child, .table.accounts td:first-child { padding-left: 18px; }
}

/* 新平台（Portunex）：同一个号在新平台上的情况（用现有的 cyan 色，不改整体配色） */
.tag-ptx { font-size: 10.5px; font-weight: 650; padding: 0 6px; border-radius: 5px; border: 1px solid var(--cyan); color: var(--cyan); background: var(--cyan-bg); line-height: 17px; flex-shrink: 0; }
.l-ptx { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; font-size: 11.5px; color: var(--text-2); cursor: help; }
.l-ptx .mono { font-size: 11.5px; }
.ptx-conc { font-weight: 650; color: var(--muted); }
.ptx-conc.live { color: var(--cyan); }
.badge-pair { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.cost-row.ptx .c-v { color: var(--cyan); }
.rt-ptx { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: 12px; color: var(--text-2); cursor: help; }
.acard .l-ptx { margin-top: 0; }
@media (max-width: 760px) { .rt-ptx { margin-left: 0; flex-basis: 100%; } }
.mc-amt .mc-sub { display: block; font-size: 11px; color: var(--cyan); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 新平台一组数字（看板）：和上面 Polo 的实时卡片同样的排法 */
.px-head .tag-ptx { margin-right: -2px; }
/* supper（第三个平台，和 Polo 同一套系统，只读）：号行 / 实时卡片的小标签，用现有的紫色 */
.tag-sup { font-size: 10.5px; font-weight: 650; padding: 0 6px; border-radius: 5px; border: 1px solid var(--purple); color: var(--purple); background: var(--purple-bg); line-height: 17px; flex-shrink: 0; }
.px-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -4px 2px 18px; font-size: 12px; color: var(--muted); }
.px-foot:empty { display: none; }
.px-model { padding: 1px 8px; border-radius: 999px; background: var(--cyan-bg); color: var(--cyan); font-weight: 600; cursor: help; white-space: nowrap; }
@media (max-width: 760px) { .px-foot { margin-bottom: 14px; } }
/* 看板的平台切换（全部 / Polo / 新平台） */
.plat-seg .seg-n { margin-left: 5px; font-size: 11px; opacity: .65; font-variant-numeric: tabular-nums; }
.plat-seg button.on .seg-n { opacity: .85; }
.ptx-state { margin-top: 6px; }
.ptx-err { margin-top: 2px; line-height: 1.35; overflow-wrap: anywhere; }
/* 新平台后台的开关（只读），放在 Portunex 那一行号名后面 */
.l-ptx .switch.sw-ptx { margin-left: 0; width: 26px; height: 15px; cursor: help; }
.l-ptx .switch.sw-ptx i { width: 11px; height: 11px; }
.l-ptx .switch.sw-ptx.on i { left: 13px; }
/* 新平台管理（管理员）：新平台页、可点的新平台开关、操作弹窗 */
button.switch.sw-ptx { border: 0; padding: 0; cursor: pointer; }
button.switch.sw-ptx:focus-visible { outline: 2px solid var(--primary, #6366f1); outline-offset: 2px; }
.switch.sw-ptx.sw-big { width: 34px; height: 19px; margin-left: 0; }
.switch.sw-ptx.sw-big i { width: 15px; height: 15px; }
.switch.sw-ptx.sw-big.on i { left: 17px; }
.px-table td { vertical-align: top; }
.px-table tr.px-off td { background: rgba(148, 163, 184, .06); }
.px-name { font-size: 14px; }
.px-mail { margin-top: 4px; cursor: copy; color: var(--text-2); overflow-wrap: anywhere; }
.px-err { margin-top: 5px; max-width: 300px; overflow-wrap: anywhere; line-height: 1.35; }
.px-live, .px-set { font-size: 12.5px; line-height: 1.65; }
.px-ops { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.px-gone { border-top: 1px solid var(--border); }
.px-form { display: flex; flex-direction: column; gap: 12px; }
.px-f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-2); }
.px-f small { font-size: 11.5px; }
.px-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.px-tag { display: flex; gap: 6px; }  /* 加号时的标签：下拉 +（自定义时）输入框 */
.px-tag > * { flex: 1 1 0; min-width: 0; }
.px-grid-proxy { grid-template-columns: 150px 1fr; }
.px-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.px-acts { display: flex; justify-content: flex-end; gap: 8px; }
.px-link { display: flex; gap: 8px; align-items: center; }
.px-link .input { flex: 1; min-width: 0; }
.px-auth textarea.input { resize: vertical; min-height: 64px; }
.px-deploy { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) {
  .px-grid-proxy { grid-template-columns: 1fr; }
  .px-link { flex-wrap: wrap; }
  .px-link .input { flex-basis: 100%; }
  .px-ops { justify-content: flex-start; }
  .px-err { max-width: none; }
}

/* 成员自己上号（v79） */
.self-recent { border-top: 1px dashed var(--border); padding-top: 8px; }
.self-recent:empty { display: none; }
.self-list { margin: 4px 0 0; padding-left: 18px; }
.self-list li { margin: 2px 0; }
.empty .btn .icon { width: 14px; height: 14px; color: inherit; margin: 0; }

/* 进场动画只在打开页面时放（v80）：之后刷新重画的卡片、提示、进度条不再淡入，不闪屏 */
body.settled .card, body.settled .notice, body.settled .mcard, body.settled .rise, body.settled .acard, body.settled .sbar i { animation: none; }

/* v86 账号列表（电脑）：整张表是一个网格，每行是 subgrid——每列和它最宽的内容一样宽（账号、状态列有上下限，额度列的进度条在一个范围里伸缩），
   宽屏多出来的地方平均分到列与列之间（列间距一样宽），不再全给某一列；数据变了（比如以后没有 Polo 的号）自动收紧 */
@media (min-width: 761px) {
  .table.accounts { display: grid; grid-template-columns: minmax(252px, max-content) minmax(170px, max-content) auto minmax(230px, 320px) auto 28px; column-gap: 18px; justify-content: space-between; min-width: 1080px; }
  .table.accounts > thead, .table.accounts > tbody { display: contents; }
  .table.accounts.mem, .table.accounts.mem tr { grid-template-columns: minmax(200px, max-content) minmax(170px, max-content) auto minmax(230px, 320px) auto 28px; }
  .table.accounts.mem tr { grid-template-columns: subgrid; }
  .table.accounts tr { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(252px, max-content) minmax(170px, max-content) auto minmax(230px, 320px) auto 28px; grid-template-columns: subgrid; }
  .table.accounts > thead > tr { background: var(--surface-2); border-bottom: 1px solid var(--border); }
  .table.accounts > tbody > tr { border-bottom: 1px solid var(--border); }
  .table.accounts > tbody > tr:last-child { border-bottom: 0; }
  .table.accounts th, .table.accounts td, .table.accounts th:first-child, .table.accounts td:first-child { display: block; width: auto; max-width: none; padding: 12px 0; border-bottom: 0; }
  /* 账号、状态列：内容再长也不超过这个宽（长的报错换行、邮箱省略） */
  .table.accounts tr > :nth-child(1) { max-width: 282px; }
  .table.accounts tr > :nth-child(2) { max-width: 200px; }
  .table.accounts .l-cool { flex-wrap: wrap; white-space: normal; }
  .table.accounts td:first-child .l-sub { white-space: normal; }
  .table.accounts th, .table.accounts th:first-child { padding: 11px 0; background: transparent; }
  .table.accounts tr > :first-child { padding-left: 18px; }
  .table.accounts tr > :last-child { padding-right: 14px; }
  .table.accounts td[colspan] { grid-column: 1 / -1; padding-right: 18px; }
  .table.accounts .ptx-err { white-space: normal; }
  /* 额度一组两行，行高和请求 / 消耗列一样，四行左右对齐 */
  .lrow .qrows, .lrow .qr { gap: 5px; }
  .lrow .qrows { min-width: 0; }
  .lrow .qr-top, .lrow .qr-sub { min-height: 20px; align-items: center; }
}

