.cloud-shell-header,
.cloud-shell-footer,
.cloud-shell-header *,
.cloud-shell-footer * {
  box-sizing: border-box;
}

.cloud-shell-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 30px 16px 0;
  color: #fff;
  pointer-events: none;
}

.cloud-shell-nav {
  position: relative;
  display: flex;
  width: max-content;
  min-width: 633px;
  min-height: 59px;
  margin: 0 auto;
  padding: 10px 11px 10px 14px;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  background: rgba(76, 28, 127, .46);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.cloud-shell-logo-link {
  display: inline-flex;
  flex: none;
  align-items: center;
}

.cloud-shell-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .25));
}

.cloud-shell-links,
.cloud-shell-actions,
.cloud-shell-footer-links {
  display: flex;
}

.cloud-shell-links {
  flex: 1;
  justify-content: center;
  gap: 2px;
}

.cloud-shell-link {
  display: inline-flex;
  padding: 7px 8px;
  align-items: center;
  border-radius: 8px;
  color: #fff !important;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none !important;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, .2);
  transition: background-color .2s ease, transform .2s ease;
}

.cloud-shell-link:hover,
.cloud-shell-link[aria-current="page"] {
  background: rgba(255, 255, 255, .11);
}

.cloud-shell-actions {
  flex: none;
  gap: 10px;
}

.cloud-shell-button {
  display: inline-flex;
  min-width: max-content;
  height: 37px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 37px;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
  transition: filter .2s ease, transform .2s ease;
}

.cloud-shell-button:hover,
.cloud-shell-button:focus-visible,
.cloud-shell-link:hover,
.cloud-shell-link:focus-visible {
  filter: brightness(1.04);
  transform: scale(1.035);
}

.cloud-shell-button-light {
  color: #111a30 !important;
  background: #fff !important;
}

.cloud-shell-button-primary {
  color: #fff !important;
  background: #ff2d55 !important;
}

.cloud-shell-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1) !important;
  cursor: pointer;
}

.cloud-shell-menu-button span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}

.cloud-shell-menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.cloud-shell-menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.cloud-shell-menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.cloud-shell-mobile-menu {
  position: absolute;
  top: 68px;
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: rgba(31, 6, 61, .97);
  box-shadow: 0 20px 50px rgba(11, 0, 28, .34);
}

.cloud-shell-mobile-menu[hidden] {
  display: none;
}

.cloud-shell-mobile-menu .cloud-shell-link {
  justify-content: center;
  padding: 12px;
  font-size: 20px;
  font-weight: 600;
}

.cloud-shell-mobile-menu .cloud-shell-button {
  width: 100%;
  height: 44px;
  margin-top: 4px;
}

.cloud-shell-footer {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  color: #fff;
  background: #2b0757;
}

.cloud-shell-footer-inner {
  display: flex;
  width: 100%;
  max-width: 1078px;
  margin: 0 auto;
  padding: 52px 0 74px;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.cloud-shell-footer-brand {
  display: flex;
  max-width: 305px;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
}

.cloud-shell-footer-logo {
  height: 42px;
  max-width: 210px;
}

.cloud-shell-footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 18px;
  line-height: 21px;
}

.cloud-shell-footer-links {
  width: min(100%, 641px);
  justify-content: space-between;
  gap: 30px;
}

.cloud-shell-footer-group {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.cloud-shell-footer-group h2 {
  width: max-content;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
}

.cloud-shell-footer-group ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.cloud-shell-footer-group a {
  display: inline-block;
  padding: 2px 0;
  color: rgba(255, 255, 255, .6) !important;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease;
}

.cloud-shell-footer-group a:hover,
.cloud-shell-footer-group a:focus-visible {
  color: #fff !important;
  transform: translateX(2px);
}

.cloud-shell-header a:focus-visible,
.cloud-shell-header button:focus-visible,
.cloud-shell-footer a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .86);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .cloud-shell-nav {
    width: min(100%, 760px);
    min-width: 0;
    justify-content: space-between;
  }

  .cloud-shell-links,
  .cloud-shell-actions {
    display: none;
  }

  .cloud-shell-menu-button {
    display: block;
  }

  .cloud-shell-footer-inner {
    flex-direction: column;
  }

  .cloud-shell-footer-links {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .cloud-shell-header {
    padding: 12px 14px 0;
  }

  .cloud-shell-nav {
    min-height: 58px;
    border-radius: 15px;
  }

  .cloud-shell-logo {
    height: 34px;
    max-width: 150px;
  }

  .cloud-shell-footer {
    padding: 0 27px;
  }

  .cloud-shell-footer-inner {
    padding: 48px 0 62px;
  }

  .cloud-shell-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-shell-header *,
  .cloud-shell-footer * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
