  .settings-wrap { max-width: 760px; margin: 0 auto; padding: 8px 32px 48px; }
  .settings-head { margin-bottom: 28px; }
  .settings-head h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 6px; }
  .settings-head p { color: var(--text-dim); font-size: 14px; margin: 0; }

  .set-section { margin-bottom: 28px; }
  .set-section-title {
    font-family: var(--font-mono); font-size: 10px; color: var(--text-faint);
    letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
  }
  .set-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); overflow: hidden;
  }
  .set-row {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
  }
  .set-row:last-child { border-bottom: 0; }
  .set-row-main { flex: 1; min-width: 0; }
  .set-row-label { font-size: 14px; font-weight: 500; color: var(--text); }
  .set-row-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; line-height: 1.45; }
  .set-row-control { flex-shrink: 0; }

  /* Toggle switch */
  .toggle {
    position: relative; width: 46px; height: 26px; cursor: pointer;
    background: var(--surface-3); border-radius: 999px; border: 1px solid var(--border-strong);
    transition: background var(--dur) var(--ease); flex-shrink: 0;
  }
  .toggle.on { background: var(--violet); border-color: var(--violet); }
  .toggle::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 20px; height: 20px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform var(--dur) var(--ease);
  }
  .toggle.on::after { transform: translateX(20px); }

  /* Segmented control */
  .seg {
    display: inline-flex; padding: 3px; gap: 2px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--r-pill);
  }
  .seg button {
    appearance: none; border: 1px solid transparent; background: transparent; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: 12px;
    color: var(--text-dim); padding: 6px 14px; border-radius: var(--r-pill);
    transition: background var(--dur) var(--ease), color var(--dur-fast), border-color var(--dur); white-space: nowrap;
  }
  .seg button:hover { color: var(--text); }
  .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); border-color: var(--border-strong); }

  /* Dropdown */
  .set-select {
    appearance: none; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--r-md); color: var(--text);
    font-family: var(--font-body); font-size: 13px; padding: 9px 36px 9px 14px;
    max-width: 260px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
  }
  .set-select:focus { outline: none; border-color: var(--border-strong); }

  /* Slider */
  .slider-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .slider-head { display: flex; justify-content: space-between; align-items: center; }
  .slider-val { font-family: var(--font-mono); font-size: 14px; color: var(--violet-soft); font-weight: 500; }
  input[type="range"].set-slider {
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
    background: var(--surface-3); border-radius: 999px; cursor: pointer; outline: none;
  }
  input[type="range"].set-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 18px; height: 18px;
    border-radius: 50%; background: var(--violet); cursor: pointer;
    border: 3px solid var(--bg-deep); box-shadow: 0 0 0 1px var(--violet);
  }
  input[type="range"].set-slider::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%; background: var(--violet);
    cursor: pointer; border: 3px solid var(--bg-deep);
  }
  .slider-ticks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }

  /* Profile card */
  .profile-card { display: flex; align-items: center; gap: 16px; padding: 20px 20px 0; }
  .profile-avatar-wrap { position: relative; flex-shrink: 0; width: 60px; height: 60px; }
  .profile-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center; overflow: hidden;
    background: var(--grad-primary); color: #fff;
    background-size: cover; background-position: center;
    font-family: var(--font-display); font-size: 24px; font-weight: 700;
  }
  .avatar-edit {
    position: absolute; right: -3px; bottom: -3px;
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: var(--surface-3); color: var(--text);
    border: 2px solid var(--bg); transition: background .15s, color .15s;
  }
  .avatar-edit:hover { background: var(--violet-soft); color: #0B1020; }
  .profile-info { flex: 1; min-width: 0; }
  .profile-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
  .profile-email { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
  .plan-badge {
    display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: var(--r-pill);
    background: rgba(124,92,255,0.16); color: var(--violet-soft);
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
    border: 1px solid rgba(124,92,255,0.3);
  }
  .profile-edit { border-top: 1px solid var(--border); margin-top: 16px; padding: 4px 20px 16px; }
  .set-input {
    appearance: none; min-width: 220px; max-width: 100%;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
    color: var(--text); font-family: var(--font-body); font-size: 13px; padding: 9px 14px;
    outline: none; transition: border-color .15s;
  }
  .set-input:focus { border-color: var(--violet-soft); }
  .profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 16px; }
  .profile-remove {
    background: transparent; border: 0; cursor: pointer; padding: 6px 4px;
    color: #FF8E8E; font-family: var(--font-body); font-size: 13px;
  }
  .profile-remove:hover { text-decoration: underline; }
  .btn-primary:disabled { opacity: .45; cursor: default; filter: none; box-shadow: none; }

  /* Danger button */
  .btn-danger {
    appearance: none; cursor: pointer;
    background: rgba(255,107,154,0.12); border: 1px solid rgba(255,107,154,0.4);
    color: #FFA0BD; font-family: var(--font-display); font-size: 13px; font-weight: 600;
    padding: 9px 18px; border-radius: var(--r-pill); transition: all .15s;
  }
  .btn-danger:hover { background: rgba(255,107,154,0.2); }
  .btn-outline {
    appearance: none; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--border-strong);
    color: var(--text); font-family: var(--font-display); font-size: 13px; font-weight: 600;
    padding: 9px 18px; border-radius: var(--r-pill); transition: all .15s;
  }
  .btn-outline:hover { background: var(--surface-3); }

  /* Save toast */
  .save-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #34D399; color: #04210F; font-family: var(--font-display); font-weight: 600; font-size: 13px;
    padding: 10px 20px; border-radius: var(--r-pill); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0; pointer-events: none; transition: all .3s; z-index: 300;
  }
  .save-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  .nav-tools { display: flex; align-items: center; gap: 8px; }
  .theme-toggle {
    appearance: none; cursor: pointer; width: 36px; height: 36px;
    display: grid; place-items: center; border-radius: var(--r-pill);
    background: var(--surface); border: 1px solid var(--border-strong);
    color: var(--text); transition: background .2s;
  }
  .theme-toggle:hover { background: var(--surface-2); }
  .theme-toggle svg { width: 17px; height: 17px; }
  .theme-toggle .ico-sun { display: none; }
  [data-theme="light"] .theme-toggle .ico-sun { display: block; }
  [data-theme="light"] .theme-toggle .ico-moon { display: none; }

@media (max-width: 640px) {
  .set-row { flex-wrap: wrap; gap: 10px; }
  .set-row-control { width: 100%; }
  .set-row-control .seg, .set-row-control .set-select { width: 100%; }
  .settings-head h1 { font-size: 24px; }
  .set-input { min-width: 0; width: 100%; }
  .profile-edit, .profile-card { padding-left: 16px; padding-right: 16px; }
}
