.mvzd-site-header {
  --mvzd-site-text: #f4f7fb;
  --mvzd-site-muted: #a8b3c7;
  --mvzd-site-line: rgb(255 255 255 / 13%);
  --mvzd-site-accent: #7dd3fc;
  --mvzd-site-hover: rgb(125 211 252 / 9%);
  --mvzd-site-menu-bg: #111a2d;
  --mvzd-site-register-bg: rgb(255 255 255 / 4.5%);
  --mvzd-site-shadow: 0 20px 40px rgb(0 0 0 / 35%);
  position: relative;
  z-index: 30;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--mvzd-site-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.mvzd-site-header[data-site-theme="light"] {
  --mvzd-site-text: #263442;
  --mvzd-site-muted: #657385;
  --mvzd-site-line: rgb(38 52 66 / 14%);
  --mvzd-site-accent: #245f70;
  --mvzd-site-hover: rgb(36 95 112 / 7%);
  --mvzd-site-menu-bg: #fff;
  --mvzd-site-register-bg: rgb(38 52 66 / 3%);
  --mvzd-site-shadow: 0 16px 40px rgb(38 52 66 / 16%);
  background: #fff;
}

.mvzd-site-header *,
.mvzd-site-header *::before,
.mvzd-site-header *::after {
  box-sizing: border-box;
}

.mvzd-site-header [hidden] {
  display: none !important;
}

.mvzd-site-header a {
  color: inherit;
  text-decoration: none;
}

.mvzd-site-header button {
  margin: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.mvzd-site-header :is(a, button):focus-visible {
  outline: 2px solid var(--mvzd-site-accent);
  outline-offset: 3px;
}

.mvzd-site-header :is(a, button):hover {
  color: var(--mvzd-site-accent);
}

.mvzd-site-header-inner {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

.mvzd-site-identity-row {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--mvzd-site-line);
}

.mvzd-site-brand {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.mvzd-site-brand img {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.mvzd-site-account,
.mvzd-site-guest {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 28px;
}

.mvzd-site-account {
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
}

.mvzd-site-account-link,
.mvzd-site-header .mvzd-site-profile-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.mvzd-site-register {
  padding-inline: 19px;
  border: 1px solid var(--mvzd-site-line);
  border-radius: 11px;
  background: var(--mvzd-site-register-bg);
}

.mvzd-site-profile-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.mvzd-site-header .mvzd-site-services {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--mvzd-site-line);
  font-size: 14px;
}

.mvzd-site-service-link,
.mvzd-site-service-heading {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
}

.mvzd-site-header .mvzd-site-service-link {
  position: relative;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}

.mvzd-site-service-heading > .mvzd-site-service-link {
  flex: 1;
}

.mvzd-site-header .mvzd-site-service-link[aria-current="page"] {
  color: var(--mvzd-site-accent);
}

.mvzd-site-service-link[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--mvzd-site-accent);
  content: "";
}

.mvzd-site-disclosure {
  position: relative;
  min-width: 0;
}

/* Keep the pointer inside the disclosure while crossing the visual menu gap. */
.mvzd-site-services .mvzd-site-disclosure:has(> .mvzd-site-menu:not([hidden]))::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 8px;
  content: "";
}

.mvzd-site-header .mvzd-site-menu-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
}

.mvzd-site-header .mvzd-site-menu-toggle[aria-expanded="true"] {
  color: var(--mvzd-site-accent);
  background: var(--mvzd-site-hover);
}

.mvzd-site-chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: .7;
  transform: rotate(45deg) translateY(-2px);
}

.mvzd-site-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 5;
  width: 190px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid var(--mvzd-site-line);
  border-radius: 14px;
  color: var(--mvzd-site-text);
  background: var(--mvzd-site-menu-bg);
  box-shadow: var(--mvzd-site-shadow);
}

.mvzd-site-header .mvzd-site-menu-link {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--mvzd-site-text);
  background: transparent;
  font: inherit;
  text-align: left;
  white-space: normal;
}

.mvzd-site-header .mvzd-site-menu-link:hover {
  color: var(--mvzd-site-accent);
  background: var(--mvzd-site-hover);
}

.mvzd-site-account-menu {
  right: 0;
  left: auto;
  width: 260px;
}

.mvzd-site-account-email,
.mvzd-site-account-status {
  margin: 4px 12px 8px;
  color: var(--mvzd-site-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mvzd-site-account-status {
  max-width: 300px;
  margin: 0;
  text-align: right;
}

.mvzd-site-header .mvzd-site-logout:disabled {
  cursor: wait;
  opacity: .6;
}

@media (min-width: 641px) and (max-width: 1050px) {
  .mvzd-site-header .mvzd-site-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 20px;
    padding-block: 8px;
  }

  .mvzd-site-service-link[aria-current="page"]::after {
    display: none;
  }

  .mvzd-site-header .mvzd-site-service-link {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .mvzd-site-header-inner {
    width: calc(100% - 32px);
  }

  .mvzd-site-identity-row {
    min-height: 110px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 18px 14px;
  }

  .mvzd-site-brand {
    min-height: 44px;
    gap: 10px;
    font-size: 17px;
  }

  .mvzd-site-brand img {
    width: 38px;
    height: 38px;
  }

  .mvzd-site-account {
    width: 100%;
    justify-content: flex-end;
    font-size: 13px;
  }

  .mvzd-site-guest {
    gap: 20px;
  }

  .mvzd-site-register {
    padding-inline: 14px;
    border-radius: 9px;
  }

  .mvzd-site-header .mvzd-site-services {
    display: grid;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 4px 14px;
    padding-block: 12px;
    font-size: 14px;
  }

  .mvzd-site-header .mvzd-site-service-link {
    min-height: 48px;
    padding-inline: 10px;
    border-radius: 8px;
    line-height: 1.35;
    overflow-wrap: normal;
    white-space: normal;
  }

  .mvzd-site-service-heading > .mvzd-site-service-link {
    padding-right: 0;
  }

  .mvzd-site-header .mvzd-site-service-link[aria-current="page"] {
    background: var(--mvzd-site-hover);
  }

  .mvzd-site-service-link[aria-current="page"]::after {
    display: none;
  }
}

@media (max-width: 350px) {
  .mvzd-site-header-inner {
    width: calc(100% - 24px);
  }

  .mvzd-site-header .mvzd-site-services {
    column-gap: 8px;
  }

  .mvzd-site-header .mvzd-site-service-link {
    min-height: 50px;
    padding-left: 8px;
  }
}
