.dash-main {
  padding-top: 32px;
  padding-bottom: 48px;
  flex: 1;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

/* ── Stats grid ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color var(--transition);
}

.stat-card:hover { border-color: var(--border-hover); }

.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

/* ── Topbar nav ──────────────────────────────────────────────── */
.topbar-nav {
  display: flex;
  gap: 2px;
  margin-left: 20px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  line-height: 1.5;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface2);
  color: var(--text);
  opacity: 1;
}

/* ── Bots table ──────────────────────────────────────────────── */
tbody tr.clickable { cursor: pointer; }

.dry-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle;
}

.dir-badge {
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

/* ── Dots menu button ────────────────────────────────────────── */
.btn-dots {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}

.btn-dots:hover {
  background: var(--surface2);
  color: var(--text);
}

/* ── Action dropdown ─────────────────────────────────────────── */
.action-menu {
  position: fixed;
  z-index: 500;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 148px;
  padding: 4px 0;
  animation: fadeIn .12s ease;
}

.menu-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 8px 16px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
}

.menu-item:hover { background: var(--surface2); }

.menu-item-danger { color: var(--red); }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-state-text {
  font-size: 14px;
  font-weight: 500;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-value { font-size: 22px; }
  .topbar-nav { display: none; }
  .dash-main  { padding-top: 20px; }
}
