/* ── Topbar nav (shared with dashboard) ──────────────────────── */
.topbar-nav {
  display: flex;
  gap: 2px;
  margin-left: 20px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  line-height: 1.5;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface2);
  color: var(--text);
  opacity: 1;
}

/* ── Page layout ─────────────────────────────────────────────── */
.settings-main {
  padding-top: 32px;
  padding-bottom: 56px;
  flex: 1;
  max-width: 780px;
}

.settings-page-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

/* ── Sections ─────────────────────────────────────────────────── */
.settings-section {
  margin-bottom: 32px;
}

.settings-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.settings-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.settings-section-header .settings-section-title {
  margin-bottom: 0;
}

.settings-card { padding: 20px 22px; }

/* ── Profiles list ───────────────────────────────────────────── */
.profiles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition);
}

.profile-card:hover { border-color: var(--border-hover); }

.profile-info { flex: 1; min-width: 0; }

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  font-family: 'Courier New', monospace;
}

.profile-balance {
  font-size: 12px;
  color: var(--green);
  margin-top: 4px;
}

.balance-val { font-weight: 600; }
.balance-eq  { color: var(--text-muted); }

.profile-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* DRY badge from dashboard — duplicated here for settings page */
.dry-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
}

/* ── Toggle ──────────────────────────────────────────────────── */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  user-select: none;
}

.toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-from);
  flex-shrink: 0;
}

/* ── Actions row ─────────────────────────────────────────────── */
.settings-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Status feedback ─────────────────────────────────────────── */
.settings-status {
  font-size: 13px;
  font-weight: 500;
  min-height: 18px;
}

.settings-status.status-ok  { color: var(--green); }
.settings-status.status-err { color: var(--red); }

/* ── Hint text ───────────────────────────────────────────────── */
.settings-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .settings-main   { padding-top: 20px; }
  .profile-card    { flex-direction: column; align-items: flex-start; }
  .profile-actions { width: 100%; }
  .topbar-nav      { display: none; }
}
