:root {
  --aa-border: rgba(255,255,255,.16);
  --aa-text: #ffffff;
  --aa-search-bg: #2d3238;
  --aa-search-shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 0 12px 22px rgba(0, 0, 0, 0.32);
  --aa-kbd-bg: #c8ccd2;
  --aa-kbd-border: #a6adb7;
  --aa-kbd-text: #23272d;
}

/* Topbar */

.aa-topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #1c1c1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.aa-topbar::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 320'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%233b82f6' stop-opacity='0.28'/%3E%3Cstop offset='100%25' stop-color='%23ef4444' stop-opacity='0.24'/%3E%3C/linearGradient%3E%3ClinearGradient id='g2' x1='1' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%230ea5e9' stop-opacity='0.2'/%3E%3Cstop offset='100%25' stop-color='%23f43f5e' stop-opacity='0.18'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g1)' d='M0 128C160 48 320 48 480 80C640 112 800 176 960 176C1120 176 1280 112 1440 85.3C1520 74 1560 74 1600 80V0H0Z'/%3E%3Cpath fill='url(%23g2)' d='M0 288C160 266.7 320 202.7 480 181.3C640 160 800 181 960 202.7C1120 224 1280 245 1440 218.7C1520 208 1560 192 1600 170.7V320H0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(10px);
  transform: translate3d(0, 0, 0) scale(1.05);
  animation: aaNavAbstractMove 18s ease-in-out infinite alternate;
}

.aa-topbar__inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  position: relative;
  z-index: 1;
}

.aa-burger-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.aa-burger-btn span {
  display: block;
  width: 14px;
  height: 1.7px;
  border-radius: 2px;
  background: #ffffff;
}

.aa-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aa-topbar-greeting {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.95;
}

.aa-logout-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.aa-logout-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Brand */

.aa-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--aa-text);
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 4px 10px;
}

.aa-brandtext {
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 18px;
  color: #ffffff;
  background: transparent;
  text-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
}

.aa-brandtext-muted {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.aa-logoimg {
  height: 38px;
  width: auto;
  display: block;
  position: relative;
  top: -2px;
  filter: brightness(0) invert(1);
}

.students-topbar .aa-topbar-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 320px));
  display: flex;
  justify-content: center;
  z-index: 2;
}

.aa-topbar-search--mobileonly {
  display: none;
}

.aa-topbar-search--readonly {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 320px));
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.aa-search-static {
  width: 100%;
  max-width: 560px;
  background: var(--aa-search-bg);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--aa-search-shadow);
  padding: 2px 10px;
  min-height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
}

.aa-search-static-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12px;
  line-height: 1;
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aa-search-sep {
  opacity: 0.75;
  font-weight: 500;
  margin: 0 4px;
}

.students-topbar .aa-topbar-spacer {
  display: none;
}

.students-topbar .aa-topbar-search .search-wrap {
  width: 100%;
  max-width: 560px;
  background: var(--aa-search-bg);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--aa-search-shadow);
  padding: 2px 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
}

.aa-topbar .aa-topbar-search .aa-search-icon {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  opacity: 0.95;
}

.aa-topbar .aa-topbar-search .aa-search-input {
  width: 100%;
  height: 36px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 0;
  caret-color: #ffffff;
}

.aa-topbar .aa-topbar-search .aa-search-input::placeholder {
  color: rgba(255, 255, 255, 0.95);
}

.students-topbar .aa-topbar-search .search-wrap:focus,
.students-topbar .aa-topbar-search .search-wrap:focus-visible,
.students-topbar .aa-topbar-search .search-wrap:focus-within {
  outline: none !important;
  border: 0 !important;
  box-shadow: var(--aa-search-shadow) !important;
}

.students-topbar .aa-topbar-search .search-wrap input,
.students-topbar .aa-topbar-search .search-wrap input:focus,
.students-topbar .aa-topbar-search .search-wrap input:focus-visible,
.students-topbar .aa-topbar-search .search-wrap input:active {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.students-topbar .aa-topbar-search .aa-search-icon {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  opacity: 0.95;
}

.students-topbar .aa-topbar-search .aa-search-input {
  width: 100%;
  height: 36px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 0;
  caret-color: #ffffff;
}

.students-topbar .aa-topbar-search .aa-search-input::placeholder {
  color: rgba(255, 255, 255, 0.95);
}

.students-topbar .aa-topbar-search :focus,
.students-topbar .aa-topbar-search :focus-visible,
.students-topbar .aa-topbar-search :focus-within {
  outline: none !important;
}

.students-topbar .aa-topbar-search .search-kbd kbd {
  background: var(--aa-kbd-bg);
  border: 1px solid var(--aa-kbd-border);
  color: var(--aa-kbd-text);
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

@keyframes aaNavAbstractMove {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(2%, 1.5%, 0) scale(1.1);
  }
}


@media (max-width: 992px) {
  .aa-topbar__inner {
    justify-content: center;
  }

  .aa-burger-btn {
    display: inline-flex;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
  }

  .aa-brand {
    display: none;
  }

  .aa-brandtext {
    display: none;
  }

  .aa-topbar-actions {
    display: flex;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    z-index: 4;
  }

  .aa-topbar-greeting {
    display: none;
  }

  .aa-topbar .aa-topbar-search {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 116px));
    display: flex !important;
    justify-content: center;
    z-index: 2;
  }

  .aa-topbar-search--readonly {
    width: calc(100% - 116px);
  }

  .students-topbar .aa-topbar-search {
    width: calc(100% - 116px);
  }

  .aa-topbar .aa-topbar-search .search-wrap {
    width: 100%;
    max-width: 560px;
    background: var(--aa-search-bg);
    border: 0;
    border-radius: 12px;
    box-shadow: var(--aa-search-shadow);
    padding: 2px 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .aa-logoimg {
    height: 30px;
  }

  .students-topbar .aa-topbar-spacer {
    display: none !important;
  }

  .aa-logout-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 9px;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .aa-logout-btn::before {
    content: "⎋";
    font-size: 15px;
    line-height: 1;
    color: #ffffff;
  }
}

@media (max-width: 576px) {
  .aa-topbar .aa-topbar-search {
    width: calc(100% - 108px);
  }
  .aa-topbar-search--readonly {
    width: calc(100% - 108px);
  }
  .students-topbar .aa-topbar-search {
    width: calc(100% - 108px);
  }
  .aa-topbar .aa-topbar-search .search-wrap {
    border-radius: 10px;
  }
}
