/* ─── Settings section ─── */
    .settings-pane {
      height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto;
      display: flex; flex-direction: column; align-items: stretch; align-content: flex-start;
      gap: 16px; background: var(--bg2); scrollbar-gutter: stable;
      overscroll-behavior: contain;
    }
    .settings-head-bar {
      flex: 0 0 auto; position: sticky; top: 0; z-index: 3;
      font-size: 20px; font-weight: 800; color: var(--text); padding: 16px 20px;
      background: var(--surface); border-bottom: 1px solid var(--border);
    }
    .settings-pane > .settings-group, .settings-pane > .settings-danger {
      flex: 0 0 auto; height: auto; min-height: max-content; margin: 0 20px;
    }
    .settings-pane > .settings-group:first-of-type { margin-top: 16px; }
    .settings-pane > *:last-child { margin-bottom: 20px; }
    .settings-group { background: var(--bg3); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
    .settings-group-title { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 10px 14px 6px; }
    .account-info-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; }
    .account-info-ava {
      width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
      display: flex; align-items: center; justify-content: center; overflow: hidden;
      color: #fff; font-size: 14px; font-weight: 700;
      background: linear-gradient(135deg, #8954D4, #334DCC);
    }
    .account-info-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .account-info-copy { min-width: 0; }
    .account-info-name {
      overflow: hidden; color: var(--text); font-size: 14px; font-weight: 600;
      white-space: nowrap; text-overflow: ellipsis;
    }
    .account-info-role { margin-top: 2px; color: var(--muted); font-size: 12px; }
    .settings-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 11px 14px; border-top: 1px solid var(--border);
}
.settings-link-row { width:100%; border:0; color:var(--text); background:transparent; text-align:left; cursor:pointer; }
.settings-link-row > i { color:var(--muted); font-size:17px; }
.settings-row-sub { color:var(--muted); font-size:11px; margin-top:2px; }
.settings-list-person { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.settings-list-person img,.settings-list-avatar { width:38px; height:38px; border-radius:50%; object-fit:cover; background:var(--surface3); }
.settings-list-person-name { font-size:13px; font-weight:600; color:var(--text); }
.settings-list-person-sub { font-size:11px; color:var(--muted); }
.settings-list-person-copy { flex:1; min-width:0; }
.people-actions { display:flex; gap:5px; }
.people-action { border:0; border-radius:8px; padding:7px 9px; background:var(--accent-soft); color:var(--accent); font:inherit; font-size:11px; cursor:pointer; }
.people-action.danger { background:rgba(232,71,71,.12); color:var(--red); }
.settings-select { border:1px solid var(--border); border-radius:9px; padding:8px 10px; background:var(--input-bg); color:var(--text); font:inherit; font-size:12px; }
.assignee-choice { width:100%; display:flex; align-items:center; gap:10px; padding:9px; border:0; border-bottom:1px solid var(--border); background:transparent; color:var(--text); text-align:left; cursor:pointer; }
.assignee-choice:hover,.assignee-choice.active { background:var(--accent-soft); }
.assignee-choice img,.assignee-choice .settings-list-avatar { width:38px; height:38px; border-radius:50%; object-fit:cover; display:flex; align-items:center; justify-content:center; }
.assignee-choice > span:nth-child(2) { flex:1; min-width:0; }
.assignee-choice strong,.assignee-choice small { display:block; }
.assignee-choice small { margin-top:2px; color:var(--muted); font-size:10px; }
.automation-rule { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.automation-rule > div { flex:1; min-width:0; }
.automation-rule strong,.automation-rule small { display:block; }
.automation-rule small { margin-top:3px; color:var(--muted); font-size:11px; }
.automation-create { margin-top:14px; padding-top:12px; border-top:1px solid var(--border); display:grid; gap:8px; }
.automation-create-row { display:grid; grid-template-columns:1fr 1fr 1.2fr; gap:7px; }
.orbit-input { width:100%; border:1px solid var(--border); border-radius:9px; padding:9px 10px; background:var(--input-bg); color:var(--text); font:inherit; box-sizing:border-box; }
@media (max-width:599px) { .automation-create-row { grid-template-columns:1fr; } }
.workflow-analytics-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.workflow-analytics-card { padding:10px; border:1px solid var(--border); border-radius:10px; background:var(--surface2); }
.workflow-analytics-card strong { display:block; color:var(--text); font-size:18px; }
.workflow-analytics-card span { color:var(--muted); font-size:10px; }
.team-assignee-row,.audit-row { display:flex; gap:8px; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); }
.team-assignee-row > div,.audit-row > div { flex:1; min-width:0; }
.team-assignee-row small,.audit-row small { display:block; color:var(--muted); font-size:10px; margin-top:2px; }
.audit-time { flex:0 0 auto; color:var(--muted); font-size:10px; }
    .settings-row:first-of-type { border-top: none; }
    .settings-row-info { flex: 1; }
    .settings-row-label { font-size: 13.5px; }
    .settings-row-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
    .toggle {
      width: 40px; height: 24px; border-radius: 12px; background: var(--bg4);
      border: none; position: relative; cursor: pointer; flex-shrink: 0;
      transition: background .2s;
    }
    .toggle::after {
      content: ''; position: absolute;
      width: 18px; height: 18px; border-radius: 50%;
      background: #fff; top: 3px; left: 3px;
      transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.3);
    }
    .toggle.on { background: var(--accent); }
    .toggle.on::after { transform: translateX(16px); }
    .settings-logout {
      flex: 0 0 auto; align-self: stretch; box-sizing: border-box; width: auto;
      margin: 0 20px 20px;
      background: rgba(255,95,87,.12); border: 1px solid rgba(255,95,87,.3);
      color: var(--red); border-radius: 10px; padding: 11px 20px;
      font-size: 14px; font-weight: 600; transition: background .12s;
    }
    .settings-logout:hover { background: rgba(255,95,87,.2); }
    .comm-info-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
    .comm-info-ava { width: 44px; height: 44px; border-radius: 50%; background: var(--bg4); overflow: hidden; }
    .comm-info-ava img { width: 100%; height: 100%; object-fit: cover; }
    .comm-info-name { font-size: 14px; font-weight: 600; }
    .comm-info-id { font-size: 12px; color: var(--muted); }
