/* Let content fill the viewport instead of capping at the shared 1400px
   .main-content width (oracle.css). Without this the wide admin tables —
   Users (8 cols), Channels (8), Roles (7) — overflow their capped container
   on wide screens and push the Actions column off-screen. */
.app-shell .main-content {
  max-width: none;
}

.table-wrapper {
  overflow: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.table-wrapper .data-table {
  min-width: 100%;
}

.user-profile-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  min-width: 0;
  margin: -4px 0 -4px -4px;
  padding: 4px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.user-profile-link:hover {
  background: var(--bg-hover);
}

.user-profile-link:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.user-profile-link .user-name,
.user-profile-link .user-role {
  display: block;
}

.radio-dashboard-stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.radio-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.radio-dashboard-grid--spaced {
  margin-bottom: 1.5rem;
}

.radio-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .radio-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .radio-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 340px) {
  .radio-dashboard-stats {
    grid-template-columns: 1fr;
  }
}
