html:has(.zoj-header) {
  --zoj-sticky-header-height: var(--zoj-site-header-height, 69px);
}

header.zoj-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e4e7ec;
  background: #ffffffed;
  backdrop-filter: blur(16px);
  color: #25243e;
  font-family: var(--zoj-header-font, inherit);
  line-height: 1.5;
}

header.zoj-header .zoj-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(100% - 64px);
  max-width: none;
  min-height: 68px;
  margin-inline: auto;
  padding: 0;
}

.zoj-header .zoj-header__brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}

.zoj-header .zoj-header__home {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.zoj-header .zoj-header__wordmark {
  display: inline-flex;
  align-items: center;
}

.zoj-header .zoj-header__mark {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.zoj-header .zoj-header__name {
  color: #1d2433;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.zoj-header .zoj-header__product {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline-start: 4px;
  color: #645b99;
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.zoj-header .zoj-header__product:hover {
  color: #4f46c9;
}

.zoj-header .zoj-header__description {
  margin-inline-start: 12px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid #dfe2ed;
  color: #939baa;
  font-size: 11px;
  font-weight: 400;
}

.zoj-header .zoj-header__nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.zoj-header .zoj-header__nav :is(ul, .zoj-header__list) {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

header.zoj-header .zoj-header__item,
header.zoj-header .zoj-header__action,
header.zoj-header .zoj-header__toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #666779;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
}

header.zoj-header :is(.zoj-header__item, .zoj-header__action, .zoj-header__toggle):hover {
  background: #f5f5f9;
  color: #3d355b;
}

header.zoj-header .zoj-header__item:is(.is-active, [aria-current='page'], [aria-current='true']) {
  background: #f0effb;
  color: #4f46c9;
}

header.zoj-header .zoj-header__item--shortcut {
  margin-inline-start: 8px;
  color: #737488;
  font-size: 12px;
}

.zoj-header .zoj-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

header.zoj-header .zoj-header__action {
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  font-size: 14px;
}

.zoj-header .zoj-header__action > svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.zoj-header zoj-header-account {
  position: relative;
  display: block;
  flex: none;
  min-width: 44px;
}

.zoj-header zoj-header-account [hidden] {
  display: none !important;
}

header.zoj-header .zoj-header__account-trigger {
  cursor: pointer;
}

header.zoj-header .zoj-header__account-trigger[aria-expanded='true'] {
  background: #f0effb;
  color: #4f46c9;
}

.zoj-header__account-menu {
  position: absolute;
  z-index: 3;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  box-sizing: border-box;
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid #dfe3ec;
  border-radius: 14px;
  background: #fff;
  color: #171a2d;
  box-shadow: 0 12px 30px #1e1b4b19, 0 2px 6px #1e1b4b09;
  transform-origin: top right;
  animation: zoj-header-account-enter 155ms ease-out both;
}

.zoj-header__account-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 10px 13px;
}

.zoj-header__account-avatar {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #eeecfc;
  color: #5750a1;
  font-size: 17px;
  font-weight: 720;
}

.zoj-header__account-avatar[data-emoji='true'] {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 22px;
  font-weight: 400;
}

.zoj-header__account-identity {
  display: grid;
  min-width: 0;
  gap: 1px;
  overflow-wrap: anywhere;
}

.zoj-header__account-identity strong { font-size: 16px; font-weight: 740; }
.zoj-header__account-identity span { color: #56627a; font-size: 13px; }

.zoj-header__account-actions {
  display: grid;
  gap: 2px;
  padding-block-start: 5px;
  border-block-start: 1px solid #ebedf4;
}

.zoj-header__account-actions :is(a, button) {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #343b50;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  text-align: start;
  text-decoration: none;
}

.zoj-header__account-actions :is(a, button) svg { flex: none; }
.zoj-header__account-actions a:hover { background: #f3f2fa; color: #4f46c9; }
.zoj-header__account-actions button:hover:not(:disabled) { background: #fdf2f3; color: #a1334a; }
.zoj-header__account-actions button:disabled { cursor: wait; }
.zoj-header__account-actions p { margin: 3px 10px 6px; color: #a1334a; font-size: 13px; }

@keyframes zoj-header-account-enter {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .zoj-header__account-menu { animation: none; }
}

header.zoj-header .zoj-header__toggle {
  display: none;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  list-style: none;
}

.zoj-header .zoj-header__toggle::-webkit-details-marker {
  display: none;
}

.zoj-header .zoj-header__services {
  position: relative;
}

header.zoj-header .zoj-header__services-toggle {
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}

.zoj-header .zoj-header__services-toggle::-webkit-details-marker {
  display: none;
}

.zoj-header .zoj-header__services-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 4px);
  inset-inline-end: 0;
  display: grid;
  min-width: 132px;
  padding: 5px;
  border: 1px solid #dfe2ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px #1e1b4b14;
}

.zoj-header :is(.zoj-header__mobile-menu, .zoj-header__mobile-nav) {
  display: none;
}

.zoj-header :is(a, button, summary):focus-visible {
  outline: 2px solid #8272ff;
  outline-offset: 3px;
}

@media (max-width: 1279px) {
  .zoj-header .zoj-header__description {
    display: none;
  }

  header.zoj-header .zoj-header__item {
    padding-inline: 8px;
  }

  header.zoj-header .zoj-header__services-toggle {
    padding-inline: 0;
  }

  .zoj-header .zoj-header__services-toggle .zoj-header__action-label {
    display: none;
  }
}

@media (max-width: 1100px) {
  header.zoj-header .zoj-header__inner {
    width: calc(100% - 40px);
  }

}

@media (max-width: 1039px) {
  html:has(.zoj-header) {
    --zoj-sticky-header-height: var(--zoj-site-header-height, 65px);
  }

  header.zoj-header .zoj-header__inner {
    gap: 10px;
    min-height: 64px;
  }

  header.zoj-header .zoj-header__brand {
    min-width: 0;
  }

  header.zoj-header .zoj-header__nav,
  header.zoj-header .zoj-header__action-label {
    display: none;
  }

  header.zoj-header .zoj-header__action {
    padding-inline: 0;
  }

  header.zoj-header .zoj-header__toggle {
    display: inline-flex;
  }

  header.zoj-header .zoj-header__mobile-menu {
    display: block;
  }

  header.zoj-header .zoj-header__mobile-menu[open] > .zoj-header__mobile-nav {
    position: absolute;
    z-index: 1;
    top: 100%;
    inset-inline: 0;
    display: grid;
    padding: 6px;
    border: 1px solid #dfe2ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px #1e1b4b14;
  }

  header.zoj-header .zoj-header__mobile-nav .zoj-header__item {
    width: 100%;
    min-height: 44px;
    padding-inline: 14px;
    margin-inline-start: 0;
  }
}

@media (max-width: 480px) {
  header.zoj-header .zoj-header__inner {
    width: calc(100% - 32px);
    gap: 8px;
  }

  .zoj-header .zoj-header__home {
    gap: 7px;
  }

  .zoj-header .zoj-header__mark {
    width: 28px;
    height: 28px;
  }

  .zoj-header :is(.zoj-header__name, .zoj-header__product) {
    font-size: 18px;
  }
}
