.top-header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  height: var(--top-strip-height);
  background: #000000;
  z-index: 900;
  padding: 0 20px;
}

.header-menu-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(240, 246, 252, 0.22);
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  line-height: 0;
  overflow: hidden;
  cursor: pointer;
}

.header-menu-btn img {
  display: block;
  width: 16px;
  height: 16px;
}

.prc-Breadcrumbs-BreadcrumbsList-BKjpe {
  position: absolute;
  left: 106px;
  top: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prc-Breadcrumbs-ItemWrapper-k0NLn {
  margin: 0;
  padding: 0;
}

.styles-module__contextCrumb__IzGIq,
.styles-module__contextCrumbStatic__zx68k,
.prc-Breadcrumbs-Item-jcraJ,
.styles-module__contextCrumbLast__tI2e3 {
  color: #F0F6FC;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}


.header-token-link {
  position: absolute;
  top: 16px;
  left: 60px;
  width: 32px;
  height: 32px;
  display: block;
}

.header-token-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.container {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(30px + var(--top-strip-height)) 0 64px;
}

.admin-page .container {
  width: min(1920px, calc(100% - 20px));
}

.nav {
  display: none;
}

.nav .left,
.nav .right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav .right {
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.brand {
  font-weight: 650;
  letter-spacing: 0.2px;
}

a.brand {
  color: var(--text);
}

.user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-pill-height);
  min-height: var(--nav-pill-height);
  max-height: var(--nav-pill-height);
  padding: 0 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.nav .right > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-pill-height);
  min-height: var(--nav-pill-height);
  max-height: var(--nav-pill-height);
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.nav .right > .user-badge,
.nav .right > .nav-logout,
.nav .right > a {
  height: var(--nav-pill-height);
  min-height: var(--nav-pill-height);
  max-height: var(--nav-pill-height);
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
  box-sizing: border-box;
}

.auth-corner {
  position: fixed;
  top: 0;
  right: 18px;
  height: var(--top-strip-height);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-corner > a,
.auth-corner > .user-badge,
.auth-corner > .nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-pill-height);
  min-height: var(--nav-pill-height);
  max-height: var(--nav-pill-height);
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg) 8%);
  color: var(--text);
  box-shadow: var(--shadow);
}

.auth-corner > .nav-logout {
  color: var(--danger);
  position: static;
  top: 0;
}

.auth-corner > a,
.auth-corner > .user-badge,
.auth-corner > .nav-logout,
.auth-corner > .profile-menu-btn {
  align-self: center;
  margin: 0;
}

.nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-pill-height);
  min-height: var(--nav-pill-height);
  max-height: var(--nav-pill-height);
  padding: 0 10px;
  min-width: 72px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
  box-sizing: border-box;
  appearance: none;
  position: relative;
  top: 1px;
}

.profile-menu-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
}

.profile-menu-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.profile-menu-panel {
  position: absolute;
  top: calc(var(--top-strip-height) + 6px);
  right: 0;
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 95%, var(--bg) 5%);
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 1002;
}

.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 10px;
}

.profile-menu-avatar-large {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 0;
}

.profile-menu-name {
  font-size: 13px;
  font-weight: 400;
  line-height: 21px;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-menu-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  column-gap: 6px;
  width: 100%;
  height: 32px;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  color: #000000;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.profile-menu-item-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: currentColor;
}

.profile-menu-item:not(.profile-menu-logout) .profile-menu-item-icon {
  filter: none;
}

.profile-menu-item-text {
  display: block;
  line-height: 21px;
  transform: translateY(0.5px);
}

.profile-menu-item:hover {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface) 86%);
}

.profile-menu-item:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent 45%);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface) 82%);
}

.profile-menu-item.is-current {
  background: color-mix(in srgb, var(--accent) 20%, var(--surface) 80%);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent 55%);
}

.profile-menu-item:active {
  background: color-mix(in srgb, var(--accent) 24%, var(--surface) 76%);
}

.profile-menu-divider {
  border-top: 1px solid var(--line);
  margin: 8px 4px;
}

.profile-menu-logout {
  color: var(--danger);
}

html[data-theme="dark"] .profile-menu-name,
html[data-theme="dark"] .profile-menu-item {
  color: #F0F6FC;
}

html[data-theme="dark"] .profile-menu-item:not(.profile-menu-logout) .profile-menu-item-icon:not(.profile-menu-color-icon) {
  filter: invert(96%);
}

html[data-theme="dark"] .profile-menu-item.profile-menu-logout {
  color: var(--danger);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .profile-menu-name,
  html[data-theme="system"] .profile-menu-item {
    color: #F0F6FC;
  }

  html[data-theme="system"] .profile-menu-item:not(.profile-menu-logout) .profile-menu-item-icon:not(.profile-menu-color-icon) {
    filter: invert(96%);
  }

  html[data-theme="system"] .profile-menu-item.profile-menu-logout {
    color: var(--danger);
  }
}

@media (max-width: 780px) {
  .container {
    width: min(680px, calc(100% - 20px));
    padding-top: calc(16px + var(--top-strip-height));
  }

  .nav {
    border-radius: 24px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .auth-corner {
    top: 0;
    right: 10px;
    gap: 6px;
  }

  .auth-corner > a,
  .auth-corner > .user-badge,
  .auth-corner > .nav-logout {
    padding: 0 10px;
    font-size: 12px;
  }

  .profile-menu-panel {
    width: 260px;
    top: calc(var(--top-strip-height) + 6px);
  }

  .nav .right {
    width: 100%;
    justify-content: flex-end;
  }
}
