.gateway-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 24px;
  background: #101827;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gateway-header * {
  box-sizing: border-box;
}

.gateway-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  color: inherit;
  text-decoration: none;
}

.gateway-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1d4ed8;
  font-size: 18px;
}

.gateway-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.gateway-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.gateway-brand-subtitle {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 500;
}

.gateway-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.gateway-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.gateway-nav-link:hover,
.gateway-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(203, 213, 225, 0.56);
  color: #ffffff;
  outline: none;
}

.gateway-nav-link.is-active {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0f172a;
}

.gateway-header-spacer {
  height: 56px;
}

.gateway-header + .gateway-header-spacer + header {
  top: 56px;
}

.gateway-header ~ .stepper {
  top: 118px;
}

@media (max-width: 760px) {
  .gateway-header {
    align-items: stretch;
    flex-direction: column;
    min-height: 102px;
    padding: 10px 12px;
  }

  .gateway-brand {
    min-width: 0;
  }

  .gateway-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .gateway-header-spacer {
    height: 102px;
  }

  .gateway-header + .gateway-header-spacer + header {
    top: 102px;
  }

  .gateway-header ~ .stepper {
    top: 164px;
  }
}
