.nexora-dashboard-back {
  position: fixed;
  inset-block-start: max(14px, env(safe-area-inset-top));
  inset-inline-start: 14px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 15px;
  color: #fff;
  background: rgba(24, 22, 52, 0.94);
  border: 1px solid rgba(167, 139, 250, 0.42);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: 700 14px/1.2 Arial, sans-serif;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.nexora-dashboard-back:hover,
.nexora-dashboard-back:focus-visible {
  color: #fff;
  background: rgba(70, 43, 142, 0.97);
  border-color: rgba(196, 181, 253, 0.78);
  transform: translateY(-1px);
  outline: none;
}

.nexora-dashboard-back__arrow {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.28);
  font-size: 20px;
  line-height: 1;
}

html[dir="rtl"] .nexora-dashboard-back__arrow {
  transform: scaleX(-1);
}

/* Reserve room for the fixed dashboard button on the Nexa desktop sidebar. */
@media (min-width: 641px) {
  .nexa-page .nexa-sidebar {
    padding-block-start: 86px;
  }
}

@media (max-width: 640px) {
  .nexora-dashboard-back {
    inset-block-start: max(70px, calc(env(safe-area-inset-top) + 10px));
    inset-inline-start: 10px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .nexora-dashboard-back__arrow {
    width: 30px;
    height: 30px;
  }

  .nexora-dashboard-back__label {
    display: none;
  }

  .nexa-page .nexora-dashboard-back {
    inset-block-start: max(10px, env(safe-area-inset-top));
    inset-inline-start: auto;
    inset-inline-end: 10px;
  }
}