/* Summary styling is scoped; the central dashboard keeps its existing layout. */
.portal-dialog-statistics{width:min(960px,94vw);max-width:min(960px,94vw);background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 90px #0006}
.portal-dialog-statistics .admin-dialog-form,.portal-dialog-statistics .dialog-content{min-width:0;grid-template-columns:minmax(0,1fr)}
.portal-dialog-statistics .section-heading{padding-bottom:14px;border-bottom:1px solid var(--line)}
.portal-dialog-statistics .section-heading h2{min-width:0;overflow-wrap:anywhere}
.portal-dialog-statistics [data-portal-close]{border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--text);padding:10px 14px;min-height:44px}
.admin-statistics{min-width:0;color:var(--text);display:grid;gap:24px;overflow-wrap:anywhere}
.admin-statistics h3{margin:0;font-size:18px;font-weight:650}
.admin-statistics p{line-height:1.5}
.stats-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.stats-intro .source-badge{flex-shrink:0;margin:0}
.stats-intro .muted{font-size:14px;margin:8px 0 0}
.stats-periods{display:flex;flex-wrap:wrap;gap:8px;padding:6px;background:var(--bg);border:1px solid var(--line);border-radius:13px}
.stats-periods button{flex:1;min-height:44px;white-space:nowrap;padding:10px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-weight:650}
.stats-periods button[aria-pressed=true]{color:var(--text);background:var(--surface-2);border-color:var(--line);box-shadow:0 2px 8px #0002}
.stats-section-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.stats-coverage{font-size:11px;font-weight:600;color:#f5cc87;background:#47341b;border-radius:999px;padding:4px 8px;white-space:nowrap}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.stats-grid-trials{grid-template-columns:repeat(4,minmax(0,1fr))}
.stats-card{min-width:0;padding:17px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px}
.stats-card p{margin:0 0 9px;color:var(--muted);font-size:13px;font-weight:500}
.stats-card strong{display:block;letter-spacing:-.03em;font-size:clamp(23px,3vw,30px);font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums}
.stats-card small{display:block;margin-top:8px;font-size:12px}
.stats-highlight{border-color:#387e74;background:linear-gradient(135deg,#153238,var(--surface-2))}
.stats-highlight strong,.stats-money strong{color:var(--primary)}
.stats-base-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}
.stats-base-grid .stats-card{background:transparent;padding:13px}
.stats-base-grid .stats-card strong{font-size:25px}
.stats-empty{margin:0;padding:18px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:14px}
.stats-details{padding:14px;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:13px}
.stats-details summary{cursor:pointer;color:var(--text);min-height:30px}
.stats-details p{margin:10px 0 0}
.stats-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:16px}
.stats-footer button{color:var(--text);border:1px solid var(--line);min-height:44px}
.admin-statistics button:focus-visible,.admin-statistics summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.stats-warning{color:#f5cc87;font-size:13px}
@media(max-width:600px){.stats-grid,.stats-grid-trials{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-card{padding:13px}.stats-footer{flex-wrap:wrap}.stats-periods button{padding:8px;font-size:13px}.stats-section-title{flex-wrap:wrap}.stats-base-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Cards nativos StarPlay: tinta vinculada ao próprio fundo. */
.stats-starplay-card{color:var(--text)}
