.scope-explorer {
  margin-top: 0.5rem;
}
.scope-explorer .scopes-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--scalar-color-3, #8d8d8d);
  border: 1px solid var(--scalar-border-color, #e0e0e0);
  border-radius: var(--scalar-radius-lg, 8px);
}
.scope-explorer .scopes-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--scalar-border-color, #e0e0e0);
  border-top-color: var(--scalar-color-accent, #a88a00);
  border-radius: 50%;
  animation: scopes-spin 0.8s linear infinite;
}
@keyframes scopes-spin {
  to { transform: rotate(360deg); }
}
.scope-explorer .scopes-err-title {
  color: var(--scalar-color-1, #161616);
  font-weight: 600;
}
.scope-explorer .scopes-state code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--scalar-background-2, #f4f4f4);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}
.scope-explorer .hidden {
  display: none !important;
}
.scope-explorer .scopes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.scope-explorer .scope-card {
  border: 1px solid var(--scalar-border-color, #e0e0e0);
  border-radius: var(--scalar-radius-lg, 8px);
  padding: 14px 16px;
  background: var(--scalar-background-1, #ffffff);
}
.scope-explorer .scope-name code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--scalar-color-1, #161616);
}
.scope-explorer .scope-section {
  margin-top: 10px;
}
.scope-explorer .scope-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--scalar-color-3, #8d8d8d);
  margin-bottom: 4px;
}
.scope-explorer .scope-section ul {
  margin: 0;
  padding-left: 1.1em;
}
.scope-explorer .scope-section li {
  font-size: 12.5px;
  margin: 2px 0;
}
.scope-explorer .scope-section code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  /* Endpoint paths are one unbroken token and would overflow the card */
  overflow-wrap: anywhere;
}
