/* Account identity visibility v1
   Keeps Synny and the teacher/student role readable without crowding the top bar. */
.account-button {
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 12px;
  min-width: 220px;
  max-width: 276px;
  min-height: 62px;
  padding: 7px 14px 7px 12px;
}

.account-button .synny-account-avatar,
.account-button .synny-account-image {
  width: 52px;
  height: 52px;
}

.account-button .synny-account-avatar {
  flex-basis: 52px;
}

.account-button-synny {
  margin-left: -1px;
}

.account-button .synny-account-role {
  right: -2px;
  bottom: 0;
  width: 22px;
  height: 22px;
  border-width: 2px;
  box-shadow: 0 2px 6px rgba(30, 36, 62, .2);
}

.account-button .synny-account-role .role-icon {
  width: 15px;
  height: 15px;
}

.account-button .synny-account-role svg {
  width: 12px;
  height: 12px;
}

.account-button-copy {
  gap: 5px;
}

.account-button .account-name {
  font-size: 15px;
  line-height: 1.1;
  font-weight: 800;
}

.account-button .account-action {
  color: color-mix(in srgb, var(--text), transparent 34%);
  font-size: 12px;
  line-height: 1.15;
}

@media (max-width: 900px) {
  .account-button {
    min-width: 204px;
    max-width: 250px;
  }
}

@media (max-width: 640px) {
  .account-button {
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 8px;
    min-width: 150px;
    max-width: 178px;
    min-height: 50px;
    padding: 5px 9px 5px 7px;
  }

  .account-button .synny-account-avatar,
  .account-button .synny-account-image {
    width: 42px;
    height: 42px;
  }

  .account-button .synny-account-avatar {
    flex-basis: 42px;
  }

  .account-button .synny-account-role {
    right: -1px;
    width: 19px;
    height: 19px;
  }

  .account-button .synny-account-role .role-icon {
    width: 13px;
    height: 13px;
  }

  .account-button .synny-account-role svg {
    width: 11px;
    height: 11px;
  }

  .account-button-copy {
    gap: 3px;
  }

  .account-button .account-name {
    font-size: 13px;
  }

  .account-button .account-action {
    font-size: 10.5px;
  }
}
