.platform-header-tools,
.header-tools-cluster,
.platform-header-account {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.platform-header-tools {
  margin-left: auto;
}

.header-menu-root {
  position: relative;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid #ded6cd;
  border-radius: 999px;
  background: #ffffff;
  color: #152740;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-pill:hover,
.header-pill:focus,
.header-pill.is-open {
  background: #e6f0f8;
  border-color: #054d88;
  color: #152740;
  text-decoration: none;
  outline: none;
}

.header-pill:focus-visible {
  outline: 2px solid #054d88;
  outline-offset: 2px;
}

.header-pill__icon,
.header-pill__chev,
.header-menu__check {
  display: block;
  flex-shrink: 0;
}

.header-pill__chev {
  transition: transform 200ms ease, translate 180ms ease;
}

.header-pill:hover .header-pill__chev,
.header-pill:focus .header-pill__chev {
  translate: 0 2px;
}

.header-pill.is-open .header-pill__chev {
  transform: rotate(180deg);
}

.header-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(21, 39, 64, 0.12);
  animation: headerMenuIn 180ms ease-out;
}

.header-menu[hidden] {
  display: none;
}

.header-menu--locale {
  min-width: 150px;
}

.header-menu--account {
  min-width: 220px;
}

.header-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #152740;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.header-menu__item.is-active {
  background: #e6f0f8;
  font-weight: 600;
}

.header-menu__text {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  transition: transform 150ms ease;
}

.header-menu__code {
  width: 22px;
  flex-shrink: 0;
  color: #054d88;
  font-weight: 600;
}

.header-menu__check {
  color: #054d88;
  opacity: 0;
  transition: opacity 150ms ease;
}

.header-menu__item.is-active .header-menu__check {
  opacity: 1;
}

.header-menu__item:hover,
.header-menu__item:focus {
  background: #e6f0f8;
  color: #054d88;
  text-decoration: none;
}

.header-menu__item:hover .header-menu__text,
.header-menu__item:focus .header-menu__text {
  transform: translateX(3px);
}

.header-menu__item--logout:hover,
.header-menu__item--logout:focus {
  color: #ea9222;
}

@keyframes headerMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.platform-header-navbar .platform-header-tools .navbar-toggler {
  margin-left: 0;
}

@media (min-width: 992px) {
  .platform-header-navbar.navbar-expand-lg .platform-header-tools .navbar-toggler {
    display: none;
  }
}
