.section-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.section-header h2 {
  margin: 0;
}

.section-header p {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
}

.error {
  color: var(--color-danger-500);
  margin: 0;
}

.success {
  color: var(--color-success-500);
  margin: 0;
}

.actions {
  display: flex;
  gap: var(--space-2);
  white-space: nowrap;
}

.detail-cell {
  background: var(--color-neutral-100);
  padding: var(--space-4);
}

.detail-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  padding: var(--space-4);
}

.detail-session-id {
  margin-bottom: var(--space-3);
  display: grid;
  gap: 4px;
}

.detail-session-id code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.detail-table th,
.detail-table td {
  text-align: left;
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.muted {
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .actions {
    flex-wrap: wrap;
  }

  .detail-cell {
    padding: var(--space-3);
  }

  .detail-box {
    padding: var(--space-3);
  }

  .detail-summary {
    gap: var(--space-2);
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  .section-card {
    gap: var(--space-4);
  }

  .ui-data-table th,
  .ui-data-table td {
    padding: var(--space-2);
    font-size: 0.86rem;
  }
}
