/* Scoped to new statistics UI; no gallery, editor, provider or global layout rules. */
.pa-stats-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:16px 0;padding:16px;background:#0d1728;border:1px solid #334155;border-radius:14px}
.pa-stats-controls label{display:flex;flex:1 1 190px;min-width:0;flex-direction:column;gap:6px;font-size:.88rem;color:#cbd5e1}
.pa-stats-controls select{width:100%;min-width:0;max-width:100%;padding:10px;background:#111d30;border:1px solid #475569;border-radius:8px;color:#f1f5f9;font:inherit}
.pa-stats-controls .btn{flex:0 0 auto}
.pa-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin:14px 0}
.pa-stat-grid article{padding:16px;border:1px solid #334155;border-radius:12px;background:#0b1424;min-width:0}
.pa-stat-grid article span,.pa-stat-grid article small{display:block;color:#cbd5e1;line-height:1.4;overflow-wrap:anywhere}
.pa-stat-grid article b{display:block;font-size:1.65rem;margin:7px 0;color:#f8fafc;overflow-wrap:anywhere}
.pa-stat-grid article small{font-size:.76rem;color:#94a3b8}
.pa-stats-section{margin:18px 0;padding:18px;border:1px solid #334155;border-radius:14px;background:#101b2c}
.pa-stats-section h3{margin:0 0 10px}.pa-stats-section h4{margin-top:12px}
.pa-stats-table-wrap{width:100%;overflow:auto;-webkit-overflow-scrolling:touch;border:1px solid #334155;border-radius:10px;margin:12px 0}
.pa-stats-table{border-collapse:collapse;width:100%;text-align:left;font-size:.84rem;background:#0b1424}
.pa-stats-table caption{text-align:left;padding:12px;line-height:1.5;color:#b4c5db;background:#111e32}
.pa-stats-table th,.pa-stats-table td{padding:12px;border-bottom:1px solid #26364e;vertical-align:top;overflow-wrap:anywhere;line-height:1.4}
.pa-stats-table thead{background:#1a2a43;color:#e0e7ff}.pa-stats-table tbody th{font-weight:600;color:#e2e8f0}.pa-stats-table tbody tr:last-child>*{border-bottom:0}
.pa-stats-status{font-size:.86rem;line-height:1.55;color:#b8c7dc;overflow-wrap:anywhere}
.pa-stats-warning{color:#fde68a;padding:10px;border-left:3px solid #d6a622;background:#292415}
.pa-stats-issue{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #334155;padding:14px 0;overflow-wrap:anywhere}
.pa-stats-issue b{font-size:.9rem}.pa-stats-issue p{color:#94a3b8;margin:5px 0}.pa-stats-issue .btn{flex-shrink:0}
.pa-stats-campaign-measure{padding:14px 0;border-bottom:1px solid #334155;margin-bottom:14px}
.pa-stats-section details>summary{cursor:pointer;line-height:1.5}
.pa-stats-scope{font-size:.95rem;line-height:1.5;color:#e2e8f0;overflow-wrap:anywhere}
.pa-stats-muted-label{color:#94a3b8;font-size:.82rem;line-height:1.5}
@media(max-width:600px){.pa-stats-controls{padding:12px;gap:10px}.pa-stats-controls label{flex-basis:100%}.pa-stats-controls .btn{flex:1}.pa-stats-section{padding:12px}.pa-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pa-stat-grid article{padding:12px}.pa-stat-grid article b{font-size:1.25rem}.pa-stats-table{min-width:450px}.pa-stats-issue{align-items:flex-start;flex-direction:column;gap:8px}}
/* Only statistics views: allow the grid child to shrink so a horizontally
   scrollable data table does not widen the entire phone viewport. */
.shell:has(#analytics.active) .panel-main,.shell:has(#admin.active) .panel-main{min-width:0}
#analytics,#admin{min-width:0;max-width:100%}
#analytics .pa-stats-section,#admin .pa-stats-section,.pa-stats-table-wrap{min-width:0;max-width:100%}
@media(max-width:600px){#analytics>.sectionHead,#admin>.sectionHead{flex-direction:column;gap:12px;min-width:0}#analytics>.sectionHead>*,#admin>.sectionHead>*{min-width:0;max-width:100%}}
