/* 设置 → 统计 (admin-stats.js). */
#stats-settings .stats-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#stats-settings .stats-ranges { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--cf-chip, #f4f4f5); }
#stats-settings .stats-ranges button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--cf-muted, #737373); font: inherit; font-size: 13px; cursor: pointer; }
#stats-settings .stats-ranges button[aria-pressed="true"] { background: var(--cf-panel, #fff); color: var(--cf-text, #0a0a0a); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
#stats-settings .stats-refresh { height: 32px; margin-left: auto; padding: 0 12px; border: 1px solid var(--cf-line-strong, #dedede); border-radius: 8px; background: transparent; color: var(--cf-text, #0a0a0a); font: inherit; font-size: 13px; cursor: pointer; }
#stats-settings .stats-refresh:disabled { opacity: .5; cursor: wait; }
#stats-settings .stats-status { min-height: 18px; margin: 8px 0 0; color: var(--cf-muted, #737373); font-size: 12px; }
#stats-settings .stats-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 18px; }
#stats-settings .stats-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--cf-line, #ececec); border-radius: 10px; background: var(--cf-panel, #fff); }
#stats-settings .stats-tile-label { color: var(--cf-muted, #737373); font-size: 12px; }
#stats-settings .stats-tile strong { color: var(--cf-text, #0a0a0a); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
#stats-settings .stats-tile-meta { color: var(--cf-muted, #737373); font-size: 12px; }
#stats-settings .stats-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cf-line, #ececec); }
#stats-settings .stats-tabs button { margin-bottom: -1px; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--cf-muted, #737373); font: inherit; font-size: 14px; cursor: pointer; }
#stats-settings .stats-tabs button[aria-selected="true"] { border-bottom-color: var(--cf-text, #0a0a0a); color: var(--cf-text, #0a0a0a); font-weight: 500; }
#stats-settings .stats-hint { margin: 10px 0; color: var(--cf-muted, #737373); font-size: 12px; line-height: 1.6; }
#stats-settings .stats-empty { padding: 24px 0; color: var(--cf-muted, #737373); font-size: 13px; text-align: center; }
#stats-settings .stats-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#stats-settings .stats-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
#stats-settings .stats-table th { padding: 8px 10px; border-bottom: 1px solid var(--cf-line, #ececec); color: var(--cf-muted, #737373); font-weight: 500; text-align: left; white-space: nowrap; }
#stats-settings .stats-table th button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
#stats-settings .stats-table th button[aria-sort="descending"] { color: var(--cf-text, #0a0a0a); }
#stats-settings .stats-table td { padding: 8px 10px; border-bottom: 1px solid var(--cf-line, #ececec); color: var(--cf-text, #0a0a0a); vertical-align: middle; }
#stats-settings .stats-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#stats-settings .stats-table td.num { color: var(--cf-muted, #737373); }
#stats-settings .stats-table td.num.active { color: var(--cf-text, #0a0a0a); font-weight: 600; }
#stats-settings .stats-rank { width: 32px; color: var(--cf-muted, #737373); text-align: right; font-variant-numeric: tabular-nums; }
#stats-settings .stats-name { position: relative; min-width: 180px; }
#stats-settings .stats-name > span { position: relative; z-index: 1; display: block; overflow-wrap: anywhere; }
#stats-settings .stats-name small { display: block; color: var(--cf-muted, #737373); font-size: 12px; }
#stats-settings .stats-bar { position: absolute; left: 10px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--cf-accent, #0a0a0a); opacity: .18; }
#stats-settings .stats-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--cf-chip, #f4f4f5); color: var(--cf-text-2, #404040); font-size: 11px; vertical-align: 1px; }
#stats-settings .stats-tag.muted { color: var(--cf-muted, #737373); }
