/* Shared navigation, isolated from product and cabinet styles. */
.wt-global-header {
  position: sticky;
  top: 0;
  z-index: 500;
  flex: 0 0 auto;
  width: 100%;
  background: #06162a;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}
.wt-global-header *, .wt-global-header *::before, .wt-global-header *::after { box-sizing: border-box; }
.wt-global-header__inner { display: flex; align-items: center; gap: 24px; width: calc(100% - 32px); max-width: 1440px; min-height: 64px; margin-inline: auto; }
.wt-global-header a { text-decoration: none; }
.wt-global-header .wt-global-header__brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: #fff; font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.wt-global-header__brand img { display: block; width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.wt-global-header__panel { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
.wt-global-header__nav { display: flex; align-items: center; justify-content: center; gap: 18px; flex: 1; min-width: 0; }
.wt-global-header__nav a { position: relative; color: #c6d2df; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wt-global-header__nav a:hover, .wt-global-header__actions a:hover { color: #fff; }
.wt-global-header__nav a.is-active { color: #3d8dff; }
.wt-global-header__nav a.is-active::after { position: absolute; right: 0; bottom: -24px; left: 0; height: 2px; background: #2c7fff; content: ""; }
.wt-global-header__actions { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; }
.wt-global-header__actions a { color: #e4ebf5; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wt-global-header__profile { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; padding-block: 4px; border-radius: 6px; }
.wt-global-header__greeting { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.wt-global-header .wt-global-header__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  max-width: none;
  border: 0;
  border-radius: 50%;
  background: #eef2ff;
  color: #3452b6;
  font-size: 18px;
  font-weight: 700;
  object-fit: cover;
}
.wt-global-header a:focus-visible, .wt-global-header button:focus-visible { outline: 3px solid #6fa6ff; outline-offset: 3px; }
.wt-global-header .wt-global-header__toggle { display: none; }
@media (max-width: 1239px) {
  .wt-global-header__inner { flex-wrap: wrap; justify-content: space-between; gap: 0; }
  .wt-global-header .wt-global-header__toggle:not([hidden]) {
    display: grid;
    place-content: center;
    gap: 4px;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .wt-global-header__toggle span { display: block; width: 20px; height: 2px; background: currentColor; }
  .wt-global-header__panel { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 0; }
  .wt-global-header[data-menu-open] .wt-global-header__panel {
    position: absolute;
    top: 100%;
    right: 16px;
    width: min(360px, calc(100% - 32px));
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid #233b59;
    border-radius: 0 0 14px 14px;
    background: #0a1d36;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  }
  .wt-global-header[data-menu-open="false"] .wt-global-header__panel { display: none; }
  .wt-global-header__nav { display: grid; justify-content: stretch; gap: 2px; }
  .wt-global-header__nav a { display: flex; align-items: center; min-height: 40px; padding: 8px 11px; border-radius: 8px; font-size: 14px; white-space: normal; }
  .wt-global-header__nav a:hover { background: rgba(255, 255, 255, .07); }
  .wt-global-header__nav a.is-active { background: #102b4e; }
  .wt-global-header__nav a.is-active::after { display: none; }
  .wt-global-header__actions { flex-wrap: wrap; justify-content: space-between; padding: 8px 11px 0; border-top: 1px solid #233b59; }
  .wt-global-header__actions > a { min-height: 44px; display: flex; align-items: center; font-size: 14px; }
  .wt-global-header__profile { width: 100%; justify-content: space-between; }
  .wt-global-header__greeting { max-width: none; white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .wt-global-header__inner { min-height: 58px; }
  .wt-global-header .wt-global-header__brand { font-size: 17px; }
  .wt-global-header__brand img { width: 33px; height: 33px; }
}
