.l7-platform-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.l7-platform-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .28em;
  white-space: nowrap;
}
.l7-platform-brand-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.12em;
  height: 1.12em;
  background: #f4ca60;
  -webkit-mask: url('/l7x-mark.svg?v=l7xnexus1') center / contain no-repeat;
  mask: url('/l7x-mark.svg?v=l7xnexus1') center / contain no-repeat;
}
.l7-platform-trigger {
  display: inline-grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #373d48;
  border-radius: 10px;
  background: #1a2537;
  color: #d4e5ff;
  cursor: pointer;
}
.l7-platform-trigger:hover { background: #263b59; }
.l7-platform-trigger:focus-visible,
.l7-platform-navigation a:focus-visible { outline: 2px solid #f2c63b; outline-offset: 2px; }
header.l7-product-header:has(.l7-platform-brand-group) { position: sticky; top: 0; z-index: 30; }

.l7-platform-tabbar { display: none; }
.l7-platform-drawer {
  box-sizing: border-box;
  position: fixed;
  inset: 0 auto 0 0;
  width: min(360px, calc(100vw - 36px));
  max-width: none;
  max-height: none;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: max(14px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-right: 1px solid #373d48;
  background: linear-gradient(163deg, #1a2940, #12151d 36%);
  color: #f3f5fa;
  font: 550 14px/1.4 system-ui, sans-serif;
  box-shadow: 12px 0 40px #0008;
}
.l7-platform-drawer:not(:popover-open) { display: none; }
.l7-platform-drawer::backdrop { background: #05070bb5; }
.l7-platform-drawer-heading {
  display: flex;
  position: sticky;
  top: -14px;
  z-index: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  margin-bottom: 4px;
  background: #1a2638;
}
.l7-platform-drawer .l7-platform-drawer-heading h2 { margin: 0; font: 720 21px/1.2 system-ui, sans-serif; }
.l7-platform-group { display: grid; gap: 2px; padding-block: 13px; }
.l7-platform-group + .l7-platform-group { border-top: 1px solid #303642; }
.l7-platform-drawer .l7-platform-group h3 { margin: 0 0 3px 10px; color: #adb7c6; font: 650 12px/1.4 system-ui, sans-serif; }
.l7-platform-group a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #e0e6ef;
  text-decoration: none;
}
.l7-platform-group a:hover, .l7-platform-group a[aria-current="page"] {
  background: #242b36;
  color: #fff;
}
.l7-platform-group a[aria-current="page"] {
  background: #3b3324;
  box-shadow: inset 3px 0 #f2c63b;
}

@media (prefers-reduced-motion: no-preference) {
  .l7-platform-drawer:popover-open { animation: l7-platform-drawer-in .18s ease-out; }
  @keyframes l7-platform-drawer-in { from { transform: translateX(-100%); } }
}

@media (max-width: 640px) {
  body:has(> .l7-platform-navigation) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  header.l7-product-header:has(.l7-platform-brand-group) .l7-product-nav { display: none; }
  .l7-platform-tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 29;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 4px max(8px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid #303642;
    background: #12151d;
    font: 650 11px/1.2 system-ui, sans-serif;
  }
  .l7-platform-tabbar a {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 4px;
    min-height: 50px;
    border-radius: 9px;
    color: #b7c0cd;
    text-decoration: none;
  }
  .l7-platform-tabbar a[aria-current="page"] { background: #3b3324; color: #fff3d0; }
  .l7-platform-tabbar a[aria-current="page"] svg { color: #f2c63b; }
}
