.dashboard { max-width: 1440px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.dashHead, .dashPanelHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dashHead h1 { margin: 0 0 6px; font-size: 28px; }
.dashHead p, .dashNote { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.dashFilters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dashFilters label, .dashFeedFilter { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.dashboard select { font: inherit; background: var(--panel); color: var(--text); border: 1px solid #2c3142;
  border-radius: 8px; padding: 10px 12px; max-width: 100%; min-width: 170px; }
.dashStatus { min-height: 20px; font-size: 13px; color: var(--muted); }
.dashStatus.error { color: #ff8d90; }
.dashMetrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dashMetric, .dashPanel { background: var(--panel); border: 1px solid #262a36; border-radius: var(--radius); }
.dashMetric { padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dashMetric .label { font-size: 13px; color: var(--muted); }
.dashMetric strong { font-size: 30px; font-variant-numeric: tabular-nums; }
.dashMetric small { color: var(--muted); font-size: 12px; }
.dashPanel { padding: 20px; min-width: 0; }
.dashPanel h2 { margin: 0; font-size: 17px; }
.dashPanelHead { margin-bottom: 16px; }
.dashColumns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.dashScroll { overflow-x: auto; }
.dashChart { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-height: 172px; }
.dashChart li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.dashBarTrack { width: 100%; height: 140px; display: flex; align-items: flex-end; border-bottom: 1px solid #353b50; }
.dashBar { width: 100%; background: linear-gradient(0deg, var(--accent2), #8b94ff); border-radius: 4px 4px 0 0; }
.dashChart time { font-size: 10px; color: var(--muted); white-space: nowrap; margin-top: 8px; height: 14px; }
.dashTable { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.dashTable th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.dashTable th, .dashTable td { padding: 11px 8px; border-bottom: 1px solid #262a36; vertical-align: top; }
.dashTable th:first-child, .dashTable td:first-child { padding-left: 0; }
.dashTable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dashTable .eventName { overflow-wrap: anywhere; }
.dashTypes { max-height: 390px; overflow: auto; }
.dashEmpty { color: var(--muted); padding: 24px 0; text-align: center; font-size: 14px; }
.dashBadge { display: inline-block; padding: 3px 7px; border-radius: 6px; font-size: 11px; white-space: nowrap; background: var(--panel2); }
.dashBadge.success { color: #3dd68c; background: #30a46c20; }
.dashBadge.failure { color: #ff8d90; background: #e5484d20; }
.dashFeedFilter select { min-width: 190px; max-width: 320px; }
.dashFeed td:first-child { white-space: nowrap; }
.dashFeed small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; overflow-wrap: anywhere; }
.dashFeed details { margin-top: 8px; }
.dashFeed summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.dashFeed pre { font: 12px/1.5 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--bg); padding: 12px; border-radius: 8px; max-height: 260px; overflow: auto; min-width: 180px; }
.dashPagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; }
.dashboard[aria-busy="true"] .dashResults { opacity: .55; }
@media (max-width: 1050px) { .dashColumns { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .dashboard { padding: 16px; gap: 16px; }
  .dashMetrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashMetric { padding: 14px; }
  .dashMetric strong { font-size: 25px; }
  .dashPanel { padding: 16px; }
  .dashFilters label { flex: 1; min-width: 130px; }
  .dashboard select { width: 100%; min-width: 0; }
  .dashFeed { min-width: 640px; }
}
