/* Shared navigation language: the model directory is the source of truth. */
.lzp-global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 13, 12, .92);
  border-bottom: 1px solid #263633;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lzp-global-shell {
  width: min(1180px, calc(100% - 48px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.lzp-global-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  color: #edf6f3;
  text-decoration: none;
}

.lzp-global-brand img {
  display: block;
  width: 152px;
  height: auto;
}

.lzp-brand-token {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(117, 238, 208, .28);
  border-radius: 999px;
  background: rgba(17, 208, 162, .06);
  color: #75eed0;
  font: 600 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .04em;
  white-space: nowrap;
}

.lzp-global-brand-note { display: none; }

.lzp-global-links {
  display: flex;
  align-items: center;
  gap: 25px;
  color: #9aada8;
  font-size: 13px;
}

.lzp-global-links a,
.lzp-global-login {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color .2s cubic-bezier(.32, .72, 0, 1);
}

.lzp-global-links a:hover,
.lzp-global-links a[aria-current='page'],
.lzp-global-login:hover {
  color: #75eed0;
}

.lzp-global-links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  height: 2px;
  background: #11d0a2;
}

.lzp-global-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.lzp-global-login {
  color: #9aada8;
  font-size: 13px;
}

.lzp-global-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #11d0a2;
  border-radius: 7px;
  background: #11d0a2;
  color: #07120f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(17, 208, 162, .16);
  transition: background .2s cubic-bezier(.32, .72, 0, 1), border-color .2s cubic-bezier(.32, .72, 0, 1), transform .2s cubic-bezier(.32, .72, 0, 1);
}

.lzp-global-register:hover {
  border-color: #52e1be;
  background: #52e1be;
  transform: translateY(-1px);
}

.lzp-global-register:active {
  transform: translateY(1px) scale(.985);
}

/* Logged-in navigation shared by commercial pages. */
.lzp-global-shell--account {
  width: min(1320px, calc(100% - 48px));
  gap: 22px;
}

.lzp-global-shell--account .lzp-global-brand img { width: 152px; }
.lzp-global-shell--account .lzp-global-links { gap: 20px; }

.lzp-account-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.lzp-account-action,
.lzp-balance-trigger,
.lzp-avatar-trigger {
  appearance: none;
  border: 0;
  font: inherit;
  letter-spacing: 0;
}

.lzp-account-action,
.lzp-balance-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #263a35;
  border-radius: 4px;
  background: rgba(255,255,255,.018);
  color: #a8bab5;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.lzp-account-action:hover,
.lzp-balance-trigger:hover,
.lzp-balance-trigger[aria-expanded='true'] {
  border-color: rgba(17,208,162,.48);
  background: rgba(17,208,162,.065);
  color: #e9f8f4;
}

.lzp-account-action--workspace {
  border-color: rgba(17,208,162,.42);
  color: #9cebd6;
}

.lzp-account-action:active,
.lzp-balance-trigger:active,
.lzp-avatar-trigger:active { transform: translateY(1px); }

.lzp-account-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--account-icon) center / contain no-repeat;
  mask: var(--account-icon) center / contain no-repeat;
}

.lzp-account-icon > svg { display: block; width: 100%; height: 100%; fill: currentColor; }

.lzp-account-icon--sm { width: 12px; height: 12px; }
.lzp-account-icon--menu { width: 16px; height: 16px; color: #6f8982; }

.lzp-account-popover-wrap { position: relative; }

.lzp-balance-trigger strong {
  color: #edf8f5;
  font: 600 12px/1.2 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.lzp-balance-trigger .lzp-account-icon:last-child {
  color: #587069;
  transition: transform .18s ease;
}

.lzp-balance-trigger[aria-expanded='true'] .lzp-account-icon:last-child { transform: rotate(180deg); }

.lzp-avatar-trigger {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(104,147,255,.6);
  border-radius: 4px;
  background: linear-gradient(145deg, #293c7a 0%, #14294b 58%, #0d5144 100%);
  color: #f0fbf8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lzp-avatar-trigger::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border: 2px solid #080d0c;
  border-radius: 50%;
  background: #11d0a2;
}

.lzp-avatar-trigger:hover,
.lzp-avatar-trigger[aria-expanded='true'] {
  border-color: #75eed0;
  box-shadow: 0 0 0 3px rgba(17,208,162,.08), inset 0 1px 0 rgba(255,255,255,.16);
}

.lzp-account-popover {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  z-index: 120;
  width: 360px;
  visibility: hidden;
  overflow: hidden;
  border: 1px solid #2a403a;
  border-top: 2px solid #11d0a2;
  border-radius: 3px;
  background: rgba(8,18,16,.975);
  box-shadow: 0 24px 64px rgba(0,0,0,.48), 14px 14px 0 rgba(10,31,26,.54);
  opacity: 0;
  transform: translateY(-7px);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}

.lzp-account-popover[data-open='true'] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.lzp-account-popover--user { width: 336px; }

.lzp-popover-head,
.lzp-profile-head,
.lzp-profile-balance {
  border-bottom: 1px solid #1f302c;
}

.lzp-popover-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.lzp-popover-kicker {
  color: #849a94;
  font: 500 10px/1.2 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.lzp-popover-head strong {
  display: block;
  margin-top: 4px;
  color: #edf8f5;
  font-size: 13px;
}

.lzp-popover-actions { display: flex; align-items: center; gap: 6px; }

.lzp-popover-mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #2b403b;
  border-radius: 3px;
  background: rgba(255,255,255,.022);
  color: #9db0aa;
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.lzp-popover-mini-action:hover { border-color: rgba(17,208,162,.5); color: #edf8f5; }
.lzp-popover-mini-action--primary { border-color: #11d0a2; background: #11d0a2; color: #07130f; font-weight: 700; }
.lzp-popover-mini-action--primary:hover { background: #52e1be; color: #07130f; }

.lzp-balance-total { padding: 17px 16px 16px; }
.lzp-balance-total span { color: #617871; font-size: 10px; }
.lzp-balance-total strong {
  display: block;
  margin-top: 7px;
  color: #f2fbf8;
  font: 650 24px/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.lzp-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); background: #20312d; gap: 1px; }
.lzp-balance-cell { min-height: 68px; padding: 13px 16px; background: #0b1614; }
.lzp-balance-cell span { color: #617871; font-size: 10px; }
.lzp-balance-cell strong { display: block; margin-top: 7px; color: #dceae6; font: 600 12px/1.2 "IBM Plex Mono", monospace; }

.lzp-profile-head {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 16px 18px;
  background:
    radial-gradient(150px 90px at 0 0, rgba(63,96,191,.16), transparent 72%),
    linear-gradient(90deg, rgba(17,208,162,.035), transparent 68%);
}

.lzp-profile-avatar {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(104,147,255,.55);
  border-radius: 5px;
  background: linear-gradient(145deg, #263b76 0%, #172d58 58%, #0b4b40 100%);
  color: #f0fbf8;
  font-size: 17px;
  font-weight: 700;
}

.lzp-profile-avatar::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border: 2px solid #0a1513; border-radius: 50%; background: #11d0a2; }
.lzp-profile-info {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 6px;
  align-self: center;
  align-items: start;
}
.lzp-profile-info strong { display: block; grid-column: 1; grid-row: 1; overflow: hidden; color: #f0faf7; font-size: 18px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.lzp-profile-info > span:not(.lzp-profile-org) { display: block; grid-column: 1 / -1; grid-row: 2; overflow: hidden; color: #728a83; font: 12px/1.25 "IBM Plex Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.lzp-profile-org { display: inline-flex !important; grid-column: 2; grid-row: 1; width: max-content; max-width: 100%; align-items: center; gap: 5px; justify-self: end; margin-top: 0 !important; padding: 3px 6px; border-radius: 2px; background: rgba(255,255,255,.03); color: #8ca39c !important; font-family: inherit !important; font-size: 12px !important; line-height: 1.2 !important; }

.lzp-profile-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  padding: 12px 16px;
  background: rgba(17,208,162,.035);
}

.lzp-profile-balance-copy { display: flex; min-width: 0; align-items: flex-end; gap: 10px; }
.lzp-profile-balance-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(17,208,162,.24); border-radius: 3px; background: rgba(17,208,162,.065); color: #75d9c1; }
.lzp-profile-balance-icon .lzp-account-icon { width: 18px; height: 18px; }
.lzp-profile-balance-copy > div > span { color: #617871; font-size: 10px; }
.lzp-profile-balance strong { display: block; margin-top: 4px; color: #edf8f5; font: 600 14px/1.2 "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }

.lzp-profile-menu { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; padding: 12px; }
.lzp-profile-menu-link {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) 12px;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  padding: 0 10px;
  border: 1px solid rgba(127,167,156,.13);
  border-radius: 3px;
  background: rgba(255,255,255,.018);
  color: #a8bab5;
  font-size: 11px;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.lzp-profile-menu-link:hover { border-color: rgba(17,208,162,.38); background: rgba(17,208,162,.06); color: #edf8f5; transform: translateY(-1px); }
.lzp-profile-menu-link:hover .lzp-account-icon--menu { color: #11d0a2; }
.lzp-profile-menu-link .lzp-account-icon--menu { width: 17px; height: 17px; color: #658078; }
.lzp-profile-menu-link .lzp-account-icon:last-child { width: 11px; height: 11px; color: #405650; transition: transform .16s ease, color .16s ease; }
.lzp-profile-menu-link:hover .lzp-account-icon:last-child { color: #82a49b; transform: translateX(2px); }

.lzp-profile-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-top: 1px solid #1f302c;
  color: #d99089;
  font-size: 12px;
  text-decoration: none;
}

.lzp-profile-logout:hover { background: rgba(217,90,78,.075); color: #f2a29a; }
.lzp-profile-logout .lzp-account-icon { color: currentColor; }

.lzp-account-trigger:focus-visible,
.lzp-account-action:focus-visible,
.lzp-popover-mini-action:focus-visible,
.lzp-profile-menu-link:focus-visible,
.lzp-profile-logout:focus-visible {
  outline: 2px solid rgba(117,238,208,.75);
  outline-offset: 2px;
}

@media (max-width: 1240px) {
  .lzp-account-action--workspace { display: none; }
  .lzp-global-shell--account .lzp-global-links { gap: 16px; }
}

@media (max-width: 1080px) {
  .lzp-account-action--console { display: none; }
}

@media (max-width: 900px) {
  .lzp-global-links { display: none; }
}

@media (max-width: 680px) {
  .lzp-global-shell {
    width: min(100% - 30px, 1180px);
    height: 66px;
  }

  .lzp-global-brand-note { display: none; }
  .lzp-global-login { display: none; }
  .lzp-global-brand img { width: 152px; }
  .lzp-balance-wrap { display: none; }
  .lzp-account-nav { gap: 0; }
  .lzp-account-popover--user { position: fixed; top: 72px; right: 15px; width: min(304px, calc(100vw - 30px)); }
}

@media (prefers-reduced-motion: reduce) {
  .lzp-account-popover,
  .lzp-account-action,
  .lzp-balance-trigger,
  .lzp-avatar-trigger { transition: none; }
}
