.nav-sm { min-width: 0; }
.nav-sm .lbl {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side { overflow: hidden; }
.nav a .ic { width: 14px; height: 14px; }
.side .side-foot { padding: 8px; display: block; }
.side.collapsed .side-foot { padding: 8px 6px; }
.acct {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 6px 8px; border-radius: 9px; border: 1px solid transparent;
  background: transparent; cursor: default; text-align: left;
  transition: background .13s var(--ease), border-color .13s var(--ease),
    transform .06s var(--ease);
}
.acct:hover { background: var(--accent-tint); }
.acct.open { background: var(--accent-tint); border-color: var(--accent-weak); }
.acct:active { transform: scale(.99); }
.side.collapsed .acct { justify-content: center; gap: 0; padding: 6px 0; }
.acct-av {
  position: relative; width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 600; color: lch(38.376% 1.25 282 / 1);
  background: linear-gradient(180deg, #f1f1f4, #e4e4e9);
  box-shadow: inset 0 0 0 1px rgb(17 17 20 / .06), 0 1px 1.5px rgb(17 17 20 / .05);
}
.acct-dot {
  position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--surface);
}
.acct-id { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.acct-nm {
  font-size: 12.5px; font-weight: 560; color: var(--text); letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acct-role {
  font-size: 11px; font-weight: 450; color: var(--t3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acct-more {
  width: 15px; height: 15px; flex-shrink: 0; color: var(--t4);
  transition: color .13s var(--ease);
}
.acct:hover .acct-more, .acct.open .acct-more { color: lch(38.376% 1.25 282 / 1); }
.side.collapsed .acct-id, .side.collapsed .acct-more { display: none; }
.ks-back { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(17, 17, 20, .28); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: ks-fade .16s var(--ease-out); }
@keyframes ks-fade { from { opacity: 0; } to { opacity: 1; } }
.ks-sheet { width: 440px; max-width: calc(100vw - 32px); max-height: 80vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow-3); animation: ks-pop .18s var(--ease-out); }
@keyframes ks-pop { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
.ks-head { position: sticky; top: 0; background: var(--surface); z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ks-title { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.ks-x { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--t3);
  transition: background .13s var(--ease), color .13s var(--ease); }
.ks-x:hover { background: var(--accent-tint); color: var(--text); }
.ks-body { padding: 6px 18px 18px; }
.ks-grp { margin-top: 14px; }
.ks-grp-t { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--t3); margin-bottom: 2px; }
.ks-row { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.ks-row:last-child { border-bottom: 0; }
.ks-act { font-size: 13px; color: var(--text); }
.ks-keys { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ks-keys kbd { font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--t2);
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 1px 0 var(--line-strong); }
.ks-then { font-size: 10.5px; color: var(--t3); padding: 0 1px; }
.nav-h-add[data-tip] { position: relative; }
.nav-h-add[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(8, 9, 12, .97);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(-3px);
  pointer-events: none;
  z-index: 100;
  transition: opacity .12s ease-out, transform .12s ease-out;
}
.nav-h-add[data-tip]:hover::after { opacity: 1; transform: translateY(0); }
.menu-pop.rv-ctx-acct { min-width: 264px; padding: 8px; border-radius: 13px; }
.menu-pop.rv-ctx-acct button {
  padding: 9px 12px; gap: 12px; font-size: 13px; font-weight: 450; border-radius: 9px;
}
.menu-pop.rv-ctx-acct .ic { width: 16px; height: 16px; }
