/* Accrod Phase 34 — fix observed spacing and icon-motion defects at their source.
   Loaded last on workspace.html so earlier, overlapping refinement layers cannot undo it. */

/* Sidebar: Settings and Account are distinct groups. Use spacing on the layout items,
   not text margins that can collapse or depend on the currently selected route. */
.workspace-body .sidebar-bottom > nav.app-nav[aria-label="Workspace settings"] {
  margin: 0 0 18px;
}
.workspace-body .sidebar-bottom > nav.app-nav[aria-label="Workspace settings"] + .workspace-label {
  margin: 0 0 10px;
  line-height: 1.4;
}
.workspace-body .sidebar-bottom > nav.app-nav[aria-label="Account navigation"] {
  margin-top: 0;
}

/* Settings categories: gap only works on a grid/flex container. Previously this nav was
   block layout, so the declared gap did nothing and adjacent rows visually touched. */
.workspace-body .settings-layout > .settings-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 7px;
  padding: 10px;
}
.workspace-body .settings-layout > .settings-nav > .settings-tab {
  min-width: 0;
  min-height: 43px;
  margin: 0;
}

/* Generic buttons should not slide their contents sideways on hover. The old global
   `.btn:hover .icon` selector moved every icon—including the plus on Add lease—by 3px.
   Keep color/shadow feedback; keep directional animations limited to purpose-built links. */
.btn:hover .icon {
  transform: none;
}
.workspace-body #add-lease-top,
.workspace-body #add-lease-top:hover,
.workspace-body #add-lease-top:active {
  transform: none;
}
.workspace-body #add-lease-top .icon,
.workspace-body #add-lease-top:hover .icon,
.workspace-body #add-lease-top:active .icon {
  transform: none;
}

/* Small-screen settings use the existing accessible select picker. Retain that pattern;
   only adjust visual motion on buttons below. */
@media (prefers-reduced-motion: reduce) {
  .workspace-body #add-lease-top,
  .workspace-body #add-lease-top .icon {
    transition: none !important;
  }
}


/* Phase 36 — the account avatar is circular content inside a circular button.
   Keep the button at least as large as the avatar and make keyboard focus follow
   the circle instead of drawing an unrelated rounded-square outline. */
.workspace-body .topbar-actions .topbar-avatar {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.workspace-body .topbar-actions .topbar-avatar .avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
}
.workspace-body .topbar-actions .topbar-avatar:focus-visible {
  outline: 3px solid #7d8aff;
  outline-offset: 3px;
  border-radius: 50%;
}
