/* Phase 28 — interaction-state clarity and a more deliberate sidebar rhythm.
   Keep this layer after the existing refinement sheets so it corrects the final cascade. */

/* The account heading was sitting directly against the Settings item. Give the two
   navigation groups a distinct, repeatable section break without adding visual clutter. */
.workspace-body .sidebar-bottom > .app-nav[aria-label="Workspace settings"] {
  margin-bottom: 13px;
}

.workspace-body .sidebar-bottom > .app-nav[aria-label="Workspace settings"] + .workspace-label {
  margin-top: 0;
  margin-bottom: 8px;
}

/* Hover must never erase the selected destination. A pointer over another row should
   read as a secondary interaction, not as a second selected page. */
.workspace-body .app-nav a.active:hover {
  color: var(--brand);
  background: #edf0ff;
}

.workspace-body .settings-tab.active:hover {
  color: var(--brand);
  background: #edf0ff;
  box-shadow: inset 0 0 0 1px rgba(75, 85, 209, .12);
}

.dark-mode .app-nav a.active:hover {
  color: #e0e5ff;
  background: #27315b;
  box-shadow: inset 3px 0 0 #9aa6ff;
}

.dark-mode .settings-tab:not(.active):hover {
  color: #edf2ff;
  background: #172233;
  box-shadow: inset 0 0 0 1px #34445f;
}

.dark-mode .settings-tab.active:hover {
  color: #dbe0ff;
  background: #29345f;
  box-shadow: inset 0 0 0 1px rgba(154, 166, 255, .3);
}
