.edu-help-fab {
  position: fixed;
  inset-inline-end: 18px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 1600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.edu-help-fab__hint {
  max-width: 180px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 20, 38, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 10px 26px rgba(11, 20, 38, 0.18);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.edu-help-fab__menu {
  display: grid;
  gap: 10px;
  width: min(260px, calc(100vw - 36px));
  margin-bottom: 2px;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.edu-help-fab__menu[hidden] {
  display: none !important;
}

.edu-help-fab.is-open .edu-help-fab__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.edu-help-fab__action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.12);
  text-decoration: none;
  color: #0b1426;
  box-shadow: 0 18px 42px rgba(11, 20, 38, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.edu-help-fab__action:hover,
.edu-help-fab__action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.16);
}

.edu-help-fab__action .edu-app-icon {
  flex-shrink: 0;
}

.edu-help-fab__action .edu-app-icon--brand {
  background: #fff7ed !important;
  color: #f97316 !important;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.12);
}

.edu-help-fab__copy {
  min-width: 0;
}

.edu-help-fab__copy strong,
.edu-help-fab__copy small {
  display: block;
}

.edu-help-fab__copy strong {
  font-size: 14px;
  font-weight: 900;
  color: #0b1426;
}

.edu-help-fab__copy small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.edu-help-fab__toggle {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 55%, #ea580c 100%);
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.34);
  cursor: pointer;
}

.edu-help-fab__toggle .edu-app-icon {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

.edu-help-fab__toggle-icon {
  grid-area: 1 / 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.edu-help-fab__toggle-icon--close {
  opacity: 0;
  transform: scale(0.82) rotate(-16deg);
}

.edu-help-fab.is-open .edu-help-fab__toggle-icon--chat {
  opacity: 0;
  transform: scale(0.82) rotate(16deg);
}

.edu-help-fab.is-open .edu-help-fab__toggle-icon--close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.edu-help-fab.is-open .edu-help-fab__hint {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

html.edu-view-web .edu-help-fab {
  bottom: 108px;
}

html.edu-view-web .edu-help-fab__menu {
  width: min(280px, calc(100vw - 48px));
}

@media (max-width: 640px) {
  .edu-help-fab {
    inset-inline-end: 14px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .edu-help-fab__hint {
    font-size: 11px;
  }

  .edu-help-fab__action {
    padding: 12px;
    border-radius: 16px;
  }
}
