/* ── Settings Page ───────────────────────────────────────── */

.settings-section {
  margin-bottom: var(--space-8);
}

.settings-section-header {
  margin-bottom: var(--space-4);
}

.settings-section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.settings-section-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Card wrapping the rows */
.settings-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Danger zone card */
.danger-zone {
  border-color: rgba(218,55,60,0.35);
  background: rgba(218,55,60,0.04);
}

/* Each data-management row */
.settings-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}
.settings-row-last {
  border-bottom: none;
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
}

.settings-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-hover);
  color: var(--text-muted);
  flex-shrink: 0;
}

.settings-row-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.settings-row-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Inline notice (shared, also used in modals) */
.inline-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}
.inline-notice [data-lucide] {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Responsive */
@media (max-width: 640px) {
  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
  }
  .settings-clear-btn {
    width: 100%;
    justify-content: center;
  }
  #btn-restore-default {
    width: 100%;
    justify-content: center;
  }
}
