.check-pmta-stat-button {
  display:flex; width:100%; align-items:center; gap:.55rem; min-height:2.5rem;
  padding:.55rem .7rem; margin-top:.65rem; text-align:left; font-size:.75rem; font-weight:750;
  color:#1746a2; background:#edf4ff; border:1px solid #c9dcfa; border-radius:.75rem;
}
.check-pmta-stat-button:hover { background:#dfebff; border-color:#a6c5f7; }
.check-pmta-stat-button svg { width:1rem; height:1rem; flex:none; }
.check-pmta-stat-button span:last-child { margin-left:auto; }
.check-pmta-retry-preview { margin-top:.45rem; font-size:.68rem; line-height:1.5; color:#3a4f68; }
.check-pmta-retry-preview strong { color:#22334c; }
.pmta-stat-dialog {
  width:min(1120px,calc(100% - 2rem)); max-width:none; max-height:calc(100dvh - 2rem);
  margin:auto; padding:0; color:#15233a; background:#f3f6fb; border:1px solid #d8e3f1;
  border-radius:1.35rem; box-shadow:0 28px 85px #142b5a49; overscroll-behavior:contain;
}
.pmta-stat-dialog::backdrop { background:#0a172e99; backdrop-filter:blur(3px); }
.pmta-stat-header {
  display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:1.3rem 1.5rem;
  color:#f6f9ff; background:#13294d; border-radius:1.25rem 1.25rem 0 0;
}
.pmta-stat-header h2 { margin:0; font-size:clamp(1.22rem,3vw,1.8rem); line-height:1.2; font-weight:800; }
.pmta-stat-header p { margin:.4rem 0 0; color:#d6e2f5; overflow-wrap:anywhere; }
.pmta-stat-close {
  display:grid; place-items:center; width:2.3rem; height:2.3rem; flex:none;
  border:1px solid #7186a6; border-radius:.65rem; font-size:1.45rem; line-height:1; color:#fff;
}
.pmta-stat-close:hover { background:#28466f; }
.pmta-stat-toolbar { display:flex; align-items:center; justify-content:space-between; gap:.7rem; flex-wrap:wrap; padding:1rem 1.5rem 0; }
.pmta-stat-period { display:flex; flex-wrap:wrap; gap:.3rem; padding:.25rem; background:#e6edf7; border-radius:.75rem; }
.pmta-stat-period button { padding:.5rem .7rem; border-radius:.55rem; color:#334863; font-size:.78rem; font-weight:700; }
.pmta-stat-period button[aria-pressed=true] { background:#fff; color:#1746a2; box-shadow:0 1px 3px #213c621d; }
.pmta-stat-dialog button:focus-visible,.pmta-stat-dialog select:focus-visible,.pmta-stat-dialog summary:focus-visible,
.check-pmta-stat-button:focus-visible { outline:2px solid #397de7; outline-offset:2px; }
.pmta-stat-body { display:grid; gap:1rem; padding:1rem 1.5rem 1.4rem; }
.pmta-stat-providers { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }
.pmta-stat-panel,.pmta-stat-provider,.pmta-stat-method { background:#fff; border:1px solid #dbe5f2; border-radius:.9rem; padding:1rem; min-width:0; }
.pmta-stat-provider { display:flex; flex-direction:column; gap:.65rem; border-top:3px solid var(--series); }
.pmta-stat-provider h3,.pmta-stat-panel h3 { margin:0; font-size:.94rem; font-weight:800; }
.pmta-stat-provider-head { display:grid; gap:.2rem; }
.pmta-stat-key { display:inline-flex; align-items:center; gap:.4rem; }
.pmta-stat-key::before { content:''; flex:none; width:.52rem; height:.52rem; border-radius:50%; background:var(--series); }
.pmta-stat-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; margin:0; }
.pmta-stat-metrics div:last-child { grid-column:1/-1; }
.pmta-stat-metrics dt,.pmta-stat-detail { color:#526680; font-size:.73rem; }
.pmta-stat-metrics dd { margin:.1rem 0 0; font-weight:800; font-size:1.15rem; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.pmta-stat-metrics div:last-child dd { font-size:.88rem; }
.pmta-stat-decision { display:grid; gap:.15rem; margin-top:auto; padding:.55rem .6rem; border-radius:.6rem; font-size:.73rem; }
.pmta-stat-decision p { margin:0; }
.pmta-stat-decision.neutral { background:#eef3f9; color:#3b506b; }
.pmta-stat-decision.positive { background:#eaf7f1; color:#145d48; }
.pmta-stat-decision.caution { background:#fff4df; color:#78470e; }
.pmta-stat-decision.danger { background:#fceeee; color:#892b36; }
.pmta-stat-chart-tools { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; margin-top:.65rem; }
.pmta-stat-legend,.pmta-stat-readout { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem .9rem; color:#354c66; font-size:.74rem; }
.pmta-stat-select { padding:.32rem .5rem; border:1px solid #ccd9e9; background:#fff; border-radius:.45rem; font-size:.76rem; }
.pmta-stat-chart { overflow:auto; margin-top:.35rem; }
.pmta-stat-chart svg { display:block; width:100%; min-width:520px; height:13.6rem; overflow:visible; }
.pmta-stat-chart text { fill:#4c637d; font-family:inherit; font-size:13px; }
.pmta-stat-gridline { stroke:#e2eaf5; stroke-width:1; }
.pmta-stat-readout { min-height:2rem; padding-top:.3rem; }
.pmta-stat-table-wrap { overflow:auto; }
.pmta-stat-table-wrap table { width:100%; border-collapse:collapse; margin:.5rem 0; white-space:nowrap; font-size:.8rem; }
.pmta-stat-table-wrap th,.pmta-stat-table-wrap td { padding:.5rem .55rem; text-align:left; border-bottom:1px solid #e5edf7; }
.pmta-stat-table-wrap thead th { color:#526680; }
.pmta-stat-method { font-size:.8rem; color:#354c66; }
.pmta-stat-method summary { cursor:pointer; font-weight:700; }
.pmta-stat-method p { margin:.6rem 0 0; }
.pmta-stat-empty { margin:0; padding:.75rem 0; color:#435a74; }
.pmta-stat-retry { justify-self:start; padding:.45rem .7rem; border:1px solid #b7cff4; border-radius:.55rem; color:#1746a2; }
@media(max-width:850px) { .pmta-stat-providers { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:500px) {
  .pmta-stat-dialog { width:calc(100% - .8rem); max-height:calc(100dvh - .8rem); }
  .pmta-stat-body,.pmta-stat-header,.pmta-stat-toolbar { padding-left:.75rem; padding-right:.75rem; }
  .pmta-stat-provider,.pmta-stat-panel { padding:.7rem; }
}
@media(max-width:350px) { .pmta-stat-providers { grid-template-columns:1fr; } }
