/* V6.3 — compact, accessible voting details using recorded events only. */
.server-statistics{margin-top:22px;min-width:0}
.server-statistics .panel{padding:20px 22px;margin-bottom:16px}
.server-statistics .panel-heading{align-items:center;margin-bottom:14px}
.server-statistics h2{font-size:18px;margin:0;letter-spacing:-.15px}
.server-statistics h3{font-size:14px;margin:20px 0 8px;font-weight:700}
.stats-intro,.stats-scope,.stats-history-note{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 12px}
.stats-scope{margin:5px 0 0}
.stats-code-row{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;align-items:center;margin-top:10px}
.stats-code-row>label{font-size:12px;font-weight:700;color:var(--blue-dark)}
.stats-copy-field{display:flex;gap:8px;align-items:center;min-width:0}
.stats-copy-field textarea.input{resize:vertical;min-height:57px;max-height:180px;font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;flex:1;min-width:0;background:#f7f9f9;padding:9px 10px;overflow-wrap:anywhere}
.stats-copy-field .btn{flex:0 0 auto;min-height:34px}
.stats-empty-note{margin:12px 0 0;padding:11px 13px;border:1px solid #dde6e9;border-radius:3px;background:#f6f9f9;color:#5c747d;font-size:12px;line-height:1.6}
.stats-period{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);flex:0 0 auto}
.stats-period .input{width:180px;min-height:36px;padding:7px 9px;font-size:12px}
.stats-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #e0e7e8;border-radius:4px;background:#f7faf9;margin:14px 0 12px}
.stats-summary>div{padding:13px 16px;border-right:1px solid #e0e7e8}
.stats-summary>div:last-child{border:0}
.stats-summary strong{display:block;color:var(--blue);font:700 25px/1.2 Georgia,serif}
.stats-summary span{display:block;margin-top:3px;font-size:11px;color:var(--muted)}
.stats-history-note{border-left:2px solid #cfad6c;padding:3px 0 3px 10px;font-size:11px;margin:10px 0 15px}
.stats-chart-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;border:1px solid #e5ebed;border-radius:4px;background:#fff}
.stats-chart{display:block;min-width:580px;width:100%;height:auto;max-height:290px}
.stats-grid-line{stroke:#e3e9ec;stroke-width:1}
.stats-axis-text{font:11px Arial,Helvetica,sans-serif;fill:#697d84}
.stats-chart-area{fill:#3b8597;opacity:.08}
.stats-chart-line{fill:none;stroke:#2c7186;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.stats-chart-point{fill:#2c7186;stroke:#fff;stroke-width:1.3}
.stats-chart-point.is-selected{fill:#bd8d38;stroke:#fff;stroke-width:1.6;r:4.5}
.stats-chart-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);padding:8px 1px}
.stats-legend{display:inline-flex;align-items:center;gap:7px}
.stats-legend i{height:3px;width:18px;background:#2c7186;border-radius:2px}
.stats-values{font-size:11px;color:var(--muted);margin-top:3px}
.stats-values summary{color:var(--blue);cursor:pointer;width:max-content;max-width:100%;padding:4px 0}
.stats-values-scroll{overflow-x:auto;scrollbar-width:thin;margin-top:8px}
.stats-values table{border-collapse:collapse;font-size:11px;width:100%;min-width:580px;text-align:center}
.stats-values caption{font-size:11px;text-align:left;padding:4px 0 7px}
.stats-values th,.stats-values td{border:1px solid #e0e7e8;padding:5px 7px;white-space:nowrap}
.stats-values th{background:#eff5f6;color:#48616c}
.stats-history-scroll{overflow-x:auto;scrollbar-width:thin;max-width:100%}
.stats-history-table{width:100%;min-width:610px;border-collapse:collapse;font-size:12px;text-align:left}
.stats-history-table th{background:#edf3f4;color:#48616c;font-weight:700}
.stats-history-table th,.stats-history-table td{border-bottom:1px solid #e7ecee;padding:9px 12px;vertical-align:middle}
.stats-history-table th:first-child,.stats-history-table td:first-child{white-space:nowrap}
.stats-history-table tr:nth-child(even) td{background:#fafbfb}
.stats-history-table td:last-child{max-width:320px;overflow-wrap:anywhere}
.stats-history-table td:last-child>a,.stats-history-table td:last-child>small{display:block;font-size:10px;margin-top:3px}
.stats-status{display:inline-flex;background:#edf7f0;border:1px solid #d8ebdf;border-radius:3px;font-size:10px;color:#397451;padding:2px 6px}
.stats-history-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.stats-history-footer .actions{gap:8px}
@media(max-width:650px){.server-statistics .panel{padding:16px 13px}.server-statistics .panel-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}.stats-code-row{grid-template-columns:1fr;gap:5px;margin-top:14px}.stats-period{width:100%;justify-content:space-between}.stats-period .input{width:190px;max-width:calc(100% - 34px)}.stats-summary>div{padding:10px 8px}.stats-summary strong{font-size:22px}.stats-summary span{font-size:10px}.stats-history-footer{align-items:flex-start;flex-wrap:wrap}.stats-copy-field{align-items:flex-start}.stats-copy-field .btn{padding:8px;min-height:36px}.stats-code-panel .stats-intro{font-size:11px}.stats-chart{min-width:580px}.stats-history-table th,.stats-history-table td{padding:8px 9px}}
