.codex-panel-settings__section,
.codex-panel-settings__dynamic-section {
  margin-top: var(--size-4-6);
}

.codex-panel-settings__refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--input-height);
  height: var(--input-height);
  padding: 0;
}

.codex-panel-settings__section-status {
  padding: 0 var(--size-4-4);
}

.codex-panel-settings__section-intro {
  color: var(--text-muted);
  font-size: var(--font-ui-small);
  line-height: var(--line-height-normal);
  margin: 0;
}

.codex-panel-settings__dynamic-list {
  margin: var(--size-4-4) 0 0;
  overflow: auto;
}

.codex-panel-settings__dynamic-section-heading + .codex-panel-settings__dynamic-list {
  margin-top: 0;
}

.codex-panel-settings__archived-list {
  max-height: min(var(--codex-panel-size-settings-archived-list-max-height), 45vh);
}

.codex-panel-settings__hook-list {
  max-height: min(var(--codex-panel-size-settings-hook-list-max-height), 50vh);
}

.codex-panel-settings__dynamic-row.setting-item {
  margin-bottom: 0;
}

.codex-panel-settings__archived-row--delete-confirming {
  background: color-mix(in srgb, var(--codex-panel-color-danger) 8%, transparent);
}

.codex-panel-settings__dynamic-row .setting-item-info {
  min-width: 0;
}

.codex-panel-settings__dynamic-row .setting-item-name,
.codex-panel-settings__dynamic-row .setting-item-description {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-panel-settings__hook-warning {
  color: var(--codex-panel-color-warning);
}

.codex-panel-settings__hook-error {
  color: var(--codex-panel-color-danger);
}

.codex-panel-settings__archived-row--delete-confirming .setting-item-description,
.codex-panel-settings__archived-delete-confirm {
  color: var(--codex-panel-color-danger);
}
