.ad-stat-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;max-width:calc(100vw - 32px);overflow:auto;width:min(1040px,calc(100vw - 32px));max-height:90dvh;padding:0;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--ink);box-shadow:var(--sh-1);font:inherit}
.ad-stat-dialog::backdrop{background:color-mix(in srgb,var(--ink) 30%,transparent)}
.ad-stat-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}
.ad-stat-head h2{font-family:inherit;font-size:20px;margin:0}.ad-stat-head p{margin:5px 0 0;color:var(--muted);font-size:13px}
.ad-stat-body{padding:20px 24px}.ad-stat-controls{display:flex;gap:12px;flex-wrap:wrap}.ad-stat-controls label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:500}.ad-stat-object{flex:1;min-width:220px}
.ad-stat-controls select,.ad-stat-controls input,.ad-stat-report textarea{font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:var(--r-sm);padding:9px 10px;min-height:36px;box-sizing:border-box}
.ad-stat-controls select,.ad-stat-controls input{font-size:12px;height:36px}.ad-stat-controls select{width:100%}.ad-stat-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0}.ad-stat-actions .hint{margin:0;flex:1;min-width:220px}
.ad-stat-checks{display:flex;flex-wrap:wrap;gap:12px 20px;border:0;margin:12px 0;padding:0}.ad-stat-checks legend{font-size:13px;font-weight:600;margin-bottom:10px}.ad-stat-checks label,.ad-stat-compare{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:400;min-height:30px}.ad-stat-checks input,.ad-stat-compare input{accent-color:var(--gold-fill)}
.ad-stat-progress{padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-sm);font-size:13px;line-height:1.6}.ad-stat-error{color:var(--red);font-size:13px}.ad-stat-options{margin:18px 0;border-bottom:1px solid var(--line);padding-bottom:14px}.ad-stat-options summary{cursor:pointer;font-size:13px;font-weight:600}.ad-stat-options p{font-size:12px;color:var(--muted)}
.ad-stat-table{overflow:auto;margin:16px 0;border:1px solid var(--line);border-radius:var(--r-sm)}.ad-stat-table table{width:100%;border-collapse:collapse;font-size:13px}.ad-stat-table th,.ad-stat-table td{text-align:right;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top;font-variant-numeric:tabular-nums}.ad-stat-table th:first-child{text-align:left;min-width:160px}.ad-stat-table td{min-width:130px}.ad-stat-table tbody th{font-weight:500}.ad-stat-table thead th{background:var(--hover);font-weight:600}.ad-stat-table tr:last-child>*{border-bottom:0}.ad-stat-table small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.ad-stat-report{display:block;font-size:13px;font-weight:600;margin-top:18px}.ad-stat-report textarea{display:block;width:100%;min-height:220px;margin-top:10px;line-height:1.6;font-weight:400;resize:vertical}
.ad-stat-platforms{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin:14px 0}.ad-stat-platform{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--bg);font-size:13px}.ad-stat-platform b,.ad-stat-platform small{display:block}.ad-stat-platform b{font-weight:600}.ad-stat-platform small{color:var(--muted);margin-top:2px;font-size:12px}.ad-stat-dot{flex:none;width:8px;height:8px;margin-top:5px;border-radius:50%;background:var(--muted)}.ad-stat-platform.ready .ad-stat-dot{background:#2d9a66}.ad-stat-platform.loading .ad-stat-dot{background:var(--gold-fill);animation:ad-stat-pulse 1.4s ease-in-out infinite}@keyframes ad-stat-pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.ad-stat-platform.loading .ad-stat-dot{animation:none}}
@media(max-width:600px){.ad-stat-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;max-width:calc(100vw - 32px);overflow:auto;width:calc(100vw - 16px);max-height:96dvh}.ad-stat-head,.ad-stat-body{padding:16px}.ad-stat-head{align-items:flex-start}.ad-stat-head h2{font-size:18px}.ad-stat-controls{gap:10px}.ad-stat-object{flex-basis:100%;min-width:0}.ad-stat-controls label:not(.ad-stat-object){flex:1;min-width:0}.ad-stat-controls input{width:100%;min-width:0;height:44px;font-size:16px}.ad-stat-table th,.ad-stat-table td{padding:10px}.ad-stat-head p{max-width:220px}}
