@layer features {

.settings-hint { color: var(--color-text-secondary); font-size: var(--font-size-sm); margin: 0 0 16px; max-width: 520px; }
.settings-hint--tight { margin-bottom: 10px; font-size: 13px; }
.settings-modal-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-default);
}
.modal-title--sub {
  font-size: var(--font-size-base);
  margin-bottom: 8px;
  margin-top: 0;
  letter-spacing: 0;
}
/* Title row — title + close button side by side. Replaces a bare title
 * on this modal (AI Configuration), bringing it in line with the other
 * modals that all carry a top-right close affordance. */
.modal-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.modal-title-row .modal-title { margin-bottom: 0; }
/* Provider/model treeview wrapper — visually nests the Model dropdown
 * under the Provider with a left connector and indent (parent > children
 * style). Functionally still two coordinated multiselects; the styling
 * communicates the relationship.  */
.ai-provider-tree {
  margin-bottom: 24px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}
.ai-provider-tree__provider {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-provider-tree__provider .ds-multiselect { flex: 1 1 auto; min-width: 0; }
.ai-provider-tree__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: rgba(0, 0, 0, 0.54);
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(0);                          /* points down — provider is "expanded" showing its model */
}
.ai-provider-tree__model {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
  margin-left: 10px;                             /* indent under the chevron */
  position: relative;
}
/* L-shape connector from the chevron's column down to the model row */
.ai-provider-tree__connector {
  position: relative;
  width: 18px;
  align-self: stretch;
  margin-right: 8px;
}
.ai-provider-tree__connector::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  bottom: 50%;
  border-left: 1px solid rgba(0, 0, 0, 0.18);
}
.ai-provider-tree__connector::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}
.ai-provider-tree__model .ds-multiselect { flex: 1 1 auto; min-width: 0; }
.ai-provider-tree__hint {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 6px;
  margin-left: 36px;                             /* aligned under the model input */
}

} /* end @layer features */
