header[data-public-nav], header[data-authenticated-nav] { min-height: 77px; }
.global-header {
  position: sticky;
  z-index: 30;
  top: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(18, 53, 84, .12);
  background: rgba(255, 250, 242, .96);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 rgba(18, 53, 84, 0);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.global-header.is-scrolled { background: rgba(255, 250, 242, .98); box-shadow: 0 9px 26px rgba(18, 53, 84, .08); }
.global-header .container { width: min(calc(100% - 36px), 1180px); margin-inline: auto; }
.global-nav { display: flex; min-height: 48px; align-items: center; gap: 24px; }
.global-brand { display: inline-flex; min-width: max-content; align-items: center; gap: 9px; border-radius: 14px; color: #123554; font-size: 1.35rem; font-weight: 880; letter-spacing: -.04em; line-height: 1; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.global-brand:focus-visible { outline: 3px solid rgba(255, 123, 66, .72); outline-offset: 4px; }
.global-brand-mark { width: 46px; height: 46px; flex: 0 0 46px; object-fit: contain; transition: transform .18s ease; }
.global-brand:hover .global-brand-mark { transform: rotate(-2deg) scale(1.03); }
.global-brand-name { white-space: nowrap; }
.public-nav-links,
.product-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.public-mobile-actions,
.public-mobile-menu { display: none; }
.public-nav-link,
.product-nav-link,
.account-menu-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  color: #123554;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.public-nav-link:hover,
.product-nav-link:hover { background: rgba(255, 255, 255, .76); }
.public-nav-link[aria-current="page"],
.product-nav-link[aria-current="page"] { color: #9d421c; background: #fff0e8; }
.global-primary-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; margin-left: 9px; padding: 0 18px; border-radius: 13px; color: #123554; background: #ff7b42; box-shadow: 0 9px 22px rgba(255, 123, 66, .2); font-size: .9rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.global-primary-action:hover { background: #ff8a54; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu-trigger { min-height: 42px; gap: 10px; padding: 5px 11px 5px 7px; border: 1px solid rgba(18, 53, 84, .11); border-radius: 12px; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 2px rgba(18, 53, 84, .035); font-weight: 780; }
.account-menu-trigger:hover { border-color: rgba(18, 53, 84, .15); background: rgba(255, 255, 255, .88); }
.account-menu-trigger[aria-current="page"] { color: #123554; border-color: rgba(157, 66, 28, .13); background: #fff7f0; }
.account-menu:not([open]) .account-menu-popover { display: none; }
.account-menu[open] .account-menu-chevron-icon { transform: rotate(180deg); }
.account-menu-chevron { display: grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; color: #52708a; }
.account-menu-chevron-icon { display: block; width: 18px; height: 18px; transform-origin: center; transition: transform .18s ease-out; }
.user-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; color: #123554; background: #e1f4ec; font-size: .78rem; font-weight: 950; }
.user-menu-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.account-menu-popover { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; display: grid; gap: 2px; width: 236px; padding: 8px; border: 1px solid rgba(18, 53, 84, .12); border-radius: 14px; color: #123554; background: white; box-shadow: 0 14px 34px rgba(18, 53, 84, .12), 0 2px 8px rgba(18, 53, 84, .06); }
.account-menu-link,
.account-menu-signout { display: flex; min-height: 44px; align-items: center; padding: 11px 12px; border: 0; border-radius: 10px; color: #123554; background: transparent; font: inherit; font-size: .9rem; font-weight: 760; line-height: 1.35; text-align: left; text-decoration: none; }
.account-menu-link:hover,
.account-menu-signout:hover { background: #fffaf2; }
.account-menu-link[aria-current="page"] { color: #9d421c; background: #fff0e8; font-weight: 880; }
.account-menu-divider { height: 1px; margin: 8px 5px; background: rgba(18, 53, 84, .12); }
.account-menu-signout { width: 100%; cursor: pointer; }
.account-menu-signout:disabled { cursor: wait; opacity: .65; }
.account-menu-status { margin: 4px 12px 6px; color: #a63f15; font-size: .75rem; line-height: 1.35; }
.account-menu-status:empty { display: none; }
.nav-label-short { display: none; }

@media (max-width: 780px) {
  .global-header { padding: 11px 0; }
  .global-nav { position: relative; gap: 10px; }
  .public-nav-links { display: none; }
  .public-mobile-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .public-mobile-action { display: inline-flex; min-height: 42px; align-items: center; padding: 0 10px; color: #123554; font-size: .84rem; font-weight: 850; text-decoration: none; }
  .public-menu-toggle { display: grid; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 10px; place-content: center; gap: 4px; color: #123554; background: transparent; cursor: pointer; }
  .public-menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
  .public-mobile-menu { position: absolute; z-index: 5; top: calc(100% + 11px); right: 0; left: 0; display: grid; padding: 8px; border: 1px solid rgba(18, 53, 84, .12); border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(18, 53, 84, .12); }
  .public-mobile-menu[hidden] { display: none; }
  .public-mobile-menu a { display: flex; min-height: 44px; align-items: center; padding: 10px 12px; border-radius: 9px; color: #123554; font-size: .9rem; font-weight: 760; text-decoration: none; }
  .public-mobile-menu a:hover { background: #fffaf2; }
  .global-primary-action { margin-left: auto; }
  .global-brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
}

@media (max-width: 600px) {
  .authenticated-nav .global-brand-name { display: none; }
  .product-nav { gap: 2px; }
  .product-nav-link, .account-menu-trigger { min-height: 42px; padding-inline: 9px; font-size: .82rem; }
  .nav-label-long, .user-menu-name, .account-menu-chevron { display: none; }
  .nav-label-short { display: inline; }
  .account-menu-trigger { padding-inline: 7px; }
  .account-menu-popover { width: min(240px, calc(100vw - 28px)); }
}

@media (max-width: 390px) {
  .global-brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .product-nav-link { padding-inline: 7px; }
  .global-primary-action { min-height: 42px; padding-inline: 14px; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  .global-brand-mark, .account-menu-chevron-icon { transition: none; }
  .global-brand:hover .global-brand-mark { transform: none; }
}
