.tab-bar-account {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.tab-bar-account:empty {
  display: none;
}

.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  padding: 0;
  color: #fff;
  font-family: inherit;
  font-size: calc(26px * var(--font-scale));
  font-weight: 700;
  line-height: 52px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 0 3px transparent;
  transition: box-shadow 120ms ease, transform 120ms ease, filter 120ms ease;
}

/* Pointer feedback (desktop mouse + Magic Remote pointer): a subtle lift that
   stacks with the D-pad focus ring. */
.account-avatar:hover {
  transform: scale(1.06);
  filter: brightness(1.12);
}

.account-avatar.focused {
  box-shadow: 0 0 0 3px var(--accent);
}

.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 320px;
  background: var(--glass-tint);
  backdrop-filter: var(--glass-filter);
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  padding: 8px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
  z-index: 70;
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.account-menu-item.focused {
  background: rgba(var(--accent-rgb-legacy), 0.18);
  color: var(--text-primary);
}

.account-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: calc(20px * var(--font-scale));
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  flex: 0 0 auto;
}

.account-menu-name {
  flex: 1 1 auto;
  font-size: calc(26px * var(--font-scale));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.account-menu-check svg {
  width: 26px;
  height: 26px;
  display: block;
}
