/* ===== AxionMesk — header com avatar do usuário ===== */

.cm-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none !important;
  color: #F5F7FA !important;
  min-height: 40px;
  transition: background .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
  max-width: 150px;
}
.cm-avatar-btn:active {
  transform: scale(.97);
  background: rgba(56,107,255, .12);
  border-color: rgba(56,107,255, .3);
}

.cm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #5C86FF, #386BFF);
  color: #221900;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
}

.cm-avatar-name {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82px;
}

/* Mobile: só o avatar (economiza espaço) */
@media (max-width: 900px) {
  .cm-avatar-btn {
    padding: 4px !important;
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    flex: 0 0 auto;
  }
  .cm-avatar-name { display: none; }
  .cm-avatar { width: 34px; height: 34px; flex-basis: 34px; }
}

@media (max-width: 380px) {
  .cm-avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 11.5px; }
}
