.settings {
  display: grid;
  gap: 18px;
}

.settings__hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

.settings__section {
  display: grid;
  gap: 12px;
}

.settings__section + .settings__section {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.settings__section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.settings__fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.settings__legend {
  padding: 0;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.settings__option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.settings__option input {
  margin: 0;
}

.settings__subsection {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--border) 75%, transparent);
}

.settings__subsection-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.settings__text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.settings__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.settings__row-main {
  min-width: 0;
}

.settings__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.settings__row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.settings__row-title-text {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings__row-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.settings__row-actions {
  justify-self: end;
  max-width: 100%;
}

.settings__row-actions .button {
  max-width: 100%;
}

@media (max-width: 640px) {
  .settings__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .settings__actions .button {
    width: 100%;
  }

  .settings__row {
    grid-template-columns: 1fr;
  }

  .settings__row-actions .button {
    width: 100%;
  }
}

