#view-settings.view.active {
  display: block;
  min-height: 0;
}

.settings-list {
  width: min(100%, 1040px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(220px, 0.9fr) auto;
  gap: 24px;
  min-width: 0;
  min-height: 92px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
}

.settings-row + .settings-row {
  border-top: 1px solid var(--border-soft);
}

.settings-row:hover {
  background: #fbfdff;
}

.settings-row-info,
.settings-row-current,
.settings-row-actions {
  min-width: 0;
}

.settings-row-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.settings-row-description {
  max-width: 620px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.settings-row-current {
  display: grid;
  gap: 4px;
  align-content: center;
}

.settings-current-label {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.2;
}

.settings-current-value {
  display: block;
  max-width: 100%;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.settings-current-value[data-kind="code"] {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
}

.settings-current-detail {
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1.3;
}

.settings-current-value[data-kind="boolean-on"],
.settings-current-value[data-kind="boolean-off"] {
  display: inline-flex;
  width: max-content;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.settings-current-value[data-kind="boolean-on"] {
  border-color: #a9d5bd;
  background: #edf9f2;
  color: var(--success);
  font-family: inherit;
  font-weight: 600;
}

.settings-current-value[data-kind="boolean-off"] {
  border-color: #e0aaa4;
  background: #fff2f0;
  color: var(--danger);
  font-family: inherit;
  font-weight: 600;
}

.settings-current-value[data-kind="empty"] {
  color: var(--muted-2);
  font-family: inherit;
  font-weight: 400;
}

.settings-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.settings-empty {
  padding: 36px 16px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .settings-row {
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.9fr) auto;
    gap: 16px;
    padding: 16px;
  }
}

@media (max-width: 760px) {
  .settings-row {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 16px;
  }

  .settings-row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .settings-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-row-actions .button {
    width: 100%;
  }
}
