:root {
  --site-header-ink: #193252;
  --site-header-ink-strong: #07152c;
--site-header-border: rgba(202, 227, 241, 0.66);
--site-header-panel: rgba(247, 251, 255, 0.88);
--site-header-side-width: clamp(190px, 24vw, 300px);
--site-header-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.top-bar,
.top-bar * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.top-bar {
  position: sticky;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(var(--site-header-side-width), 1fr) auto minmax(var(--site-header-side-width), 1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0 clamp(18px, 4vw, 42px);
  border: 0;
  border-bottom: 1px solid var(--site-header-border);
  border-radius: 0;
background: var(--site-header-panel);
box-shadow: none;
font-family: var(--site-header-font);
font-synthesis-weight: none;
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: var(--site-header-side-width);
  min-width: 0;
  text-decoration: none;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 17711 / 2798;
}

.top-menu-panel {
  display: contents;
}

.top-nav,
.top-actions {
  display: flex;
  align-items: center;
}

.top-nav {
  justify-content: center;
  justify-self: center;
  gap: clamp(18px, 2.8vw, 38px);
}

.top-actions {
  justify-content: flex-end;
  justify-self: end;
  gap: 14px;
  width: var(--site-header-side-width);
  min-width: 0;
}

.top-menu-toggle,
.top-link-button,
.account-button,
.dashboard-button {
  appearance: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
color: var(--site-header-ink);
background: transparent;
box-shadow: none;
font-family: inherit;
font-size: 0.95rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.top-link-button,
.account-button,
.dashboard-button {
  padding: 0;
}

.top-link-button:hover,
.top-link-button:focus-visible,
.top-link-button[aria-current="page"],
.account-button:hover,
.account-button:focus-visible,
.dashboard-button:hover,
.dashboard-button:focus-visible,
.dashboard-button[aria-current="page"] {
  color: var(--site-header-ink-strong);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.dashboard-button {
  min-width: 92px;
  padding: 0 16px;
  border-color: rgba(7, 21, 44, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 37, 66, 0.12);
  font-weight: 760;
}

.account-button {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-button:not(.is-signed-in):hover,
.account-button:not(.is-signed-in):focus-visible {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.account-button .account-value {
  overflow: visible;
  padding: 2px 0 3px;
  line-height: 1.3;
}

.account-menu[hidden],
.account-button[hidden] {
  display: none !important;
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}

.account-split-control {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.account-name-link,
.account-menu-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--site-header-ink);
  background: transparent;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
}

.account-name-link {
  min-width: 0;
  max-width: min(248px, calc(100vw - 124px));
  justify-content: flex-start;
  gap: 10px;
  padding: 0 !important;
}

.account-menu-toggle {
  width: 34px;
  flex: 0 0 34px;
  padding: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

.account-menu-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 140ms ease;
}

.account-menu.is-open .account-menu-toggle svg {
  transform: rotate(180deg);
}

.account-name-link:hover,
.account-name-link:focus-visible,
.account-menu-toggle:hover,
.account-menu-toggle:focus-visible {
  color: var(--site-header-ink-strong);
  outline: none;
  background: transparent;
}

.account-name-link:focus-visible,
.account-menu-toggle:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(39, 115, 151, 0.2);
}

.account-avatar {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #277397, #18a6b8);
  font-size: 0.78rem;
  font-weight: 850;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-identity-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  text-align: left;
}

.account-level-value {
  max-width: min(190px, calc(100vw - 174px));
  overflow: hidden;
  color: #1688b8;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: none;
  width: 178px;
  padding: 7px;
  border: 1px solid rgba(202, 227, 241, 0.86);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.99);
  box-shadow: 0 18px 44px rgba(15, 37, 66, 0.18);
}

.account-menu.is-open .account-dropdown {
  display: grid;
}

.account-dropdown a,
.account-dropdown button {
  min-height: 40px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: #0f253d;
  background: transparent;
  font: inherit;
  font-weight: 740;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown a:focus-visible,
.account-dropdown button:hover,
.account-dropdown button:focus-visible {
  outline: none;
  background: #e9f9ff;
}

.account-dropdown button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.account-button.is-signed-in {
  min-width: 0;
  max-width: 148px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.account-button.is-signed-in:hover,
.account-button.is-signed-in:focus-visible {
  background: transparent;
}

.account-value {
  display: inline-block;
  max-width: min(210px, 28vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-button[hidden] {
  display: none !important;
}

.top-menu-toggle {
  display: none;
  justify-self: end;
  padding: 0 14px;
  border-color: rgba(7, 21, 44, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--site-header-ink);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.apps-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  z-index: 40;
  width: 280px;
  padding: 10px;
  border: 1px solid rgba(202, 227, 241, 0.86);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.98);
  box-shadow: 0 18px 44px rgba(15, 37, 66, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.apps-dropdown::before {
  position: absolute;
  top: -8px;
  right: 0;
  left: 0;
  height: 8px;
  content: "";
}

.nav-dropdown:hover .apps-dropdown,
.nav-dropdown:focus-within .apps-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.apps-dropdown-group + .apps-dropdown-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(202, 227, 241, 0.74);
}

.apps-dropdown-heading {
  margin: 0 0 4px;
  padding: 0 10px;
  color: #277397;
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apps-dropdown-link {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 8px;
  color: #0f253d;
  font-weight: 790;
  line-height: 1.15;
  text-decoration: none;
}

.apps-dropdown-link:hover,
.apps-dropdown-link:focus-visible {
  outline: none;
  background: #e9f9ff;
}

.apps-dropdown-link span {
  color: #64748b;
  font-size: 0.79rem;
  font-weight: 640;
}

.apps-dropdown-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.apps-dropdown-link.is-disabled:hover {
  background: transparent;
}

@media (max-width: 900px) {
  .top-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 68px;
    padding: 10px clamp(16px, 5vw, 28px);
  }

  .brand-lockup {
    width: clamp(190px, 52vw, 260px);
  }

  .top-menu-toggle {
    display: inline-flex;
  }

  .top-menu-panel {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    padding: 8px 0 4px;
  }

  .top-menu-panel.is-open {
    display: grid;
    gap: 12px;
  }

  .top-nav,
  .top-actions {
    width: 100%;
  }

  .top-nav {
    align-items: stretch;
    justify-content: start;
    gap: 4px;
    flex-direction: column;
  }

  .top-link-button {
    justify-content: flex-start;
    min-height: 42px;
    padding: 0 12px;
  }

  .nav-dropdown {
    display: grid;
    align-items: stretch;
  }

  .apps-dropdown {
    position: static;
    left: auto;
    display: none;
    width: 100%;
    margin-top: 4px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .apps-dropdown::before {
    display: none;
  }

  .nav-dropdown:hover .apps-dropdown,
  .nav-dropdown:focus-within .apps-dropdown {
    display: block;
    transform: none;
  }

  .top-actions {
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding-top: 8px;
  }

  .dashboard-button,
  .account-button.is-signed-in {
    flex: 0 1 auto;
    height: 40px;
    max-width: none;
    min-width: 0;
    padding: 0 14px;
    border-color: rgba(7, 21, 44, 0.14);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 37, 66, 0.12);
  }

  .account-button {
    flex: 0 0 auto;
    width: auto;
    height: 40px;
    max-width: none;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .account-menu,
  .account-split-control {
    width: auto;
    max-width: 100%;
  }

  .account-name-link {
    flex: 0 1 auto;
    max-width: none;
    justify-content: flex-start;
  }

  .account-level-value {
    max-width: min(190px, calc(100vw - 174px));
  }

  .account-dropdown {
    right: 0;
    left: auto;
    width: 190px;
  }

  .account-value {
    max-width: min(190px, calc(100vw - 174px));
  }
}
