/* Scoped to the Analytics tab; dashboard SVGs and other screens are unchanged. */
.analytics-charts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:20px 0; min-width:0; }
.analytics-charts .chart-card-funnel,.analytics-charts .chart-card-revenue { grid-column:1/-1; }
.analytics-charts .chart-card { min-width:0; overflow:hidden; margin:0; }
.analytics-charts .chart-card h2 { margin:0 0 8px; }
.analytics-charts .chart-period { margin:0 0 8px; }
.analytics-charts .chart-host { width:100%; min-width:0; min-height:340px; }
.analytics-charts .chart-message { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; min-height:340px; padding:16px; text-align:center; color:var(--muted); }
.analytics-charts .chart-message.widget-error { color:var(--red); }
.analytics-charts .chart-controls { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.analytics-charts .chart-tooltip { padding:10px 12px; max-width:280px; color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:8px; font:12px/1.5 Inter,Segoe UI,Arial,sans-serif; white-space:normal; }
.analytics-charts .chart-tooltip strong { display:block; margin-bottom:4px; }
.analytics-charts .apexcharts-tooltip { border-color:var(--line); box-shadow:var(--shadow-md); }
.analytics-charts .apexcharts-tooltip-title { background:var(--surface-subtle); color:var(--text); border-color:var(--line); }
.analytics-charts .apexcharts-legend-text { color:var(--text) !important; }
.analytics-charts .chart-drill-hint { color:var(--muted); font-size:12px; margin:8px 0 0; }
@media(max-width:600px) {
  .analytics-charts .chart-host,.analytics-charts .chart-message { min-height:300px; }
  .analytics-charts .chart-card { padding:14px; }
}
@media(max-width:900px) {
  .analytics-charts { grid-template-columns:minmax(0,1fr); }
}
