.unified-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.unified-nav-link,
.unified-menu-button,
.profile-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  padding: 9px 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.unified-nav-link:hover,
.unified-menu-button:hover,
.profile-button:hover,
.unified-nav-link.active,
.unified-menu-button.active,
.profile-button.active {
  color: var(--paper);
  border-color: rgba(66,232,245,.16);
  background: rgba(66,232,245,.055);
}

.unified-nav-link.record-link {
  color: #062028;
  border-color: transparent;
  background: linear-gradient(135deg,var(--cyan),#8CF7FF);
  padding-inline: 16px;
  box-shadow: 0 0 24px rgba(66,232,245,.12);
}

.unified-nav-link.record-link.active,
.unified-nav-link.record-link:hover {
  color: #04181e;
  background: linear-gradient(135deg,#7df2fb,#b8fbff);
}

.shell-menu-wrap,
.profile-menu-wrap {
  position: relative;
}

.shell-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  left: 0;
  width: 260px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10,18,24,.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.shell-menu.profile-menu {
  left: auto;
  right: 0;
  width: 280px;
}

.shell-menu[hidden] { display: none !important; }

.shell-menu a,
.shell-menu button {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--paper);
  text-decoration: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.shell-menu a:hover,
.shell-menu button:hover,
.shell-menu a:focus-visible,
.shell-menu button:focus-visible {
  outline: 0;
  background: rgba(66,232,245,.075);
}

.shell-menu small {
  color: var(--slate);
  font-size: 10px;
  line-height: 1.35;
}

.shell-menu-separator {
  height: 1px;
  background: var(--line);
  margin: 7px 4px;
}

.global-search-shell {
  min-width: 210px;
  width: clamp(210px,24vw,360px);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255,255,255,.025);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.global-search-shell:focus-within {
  border-color: rgba(66,232,245,.55);
  background: rgba(66,232,245,.045);
  box-shadow: 0 0 0 3px rgba(66,232,245,.06);
}

.global-search-shell .search-glyph {
  color: var(--cyan);
  font-size: 13px;
  line-height: 1;
}

.global-search-shell input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
}

.global-search-shell input::placeholder { color: #79858c; }

.global-search-shell kbd {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--slate);
  padding: 3px 5px;
  font: 700 9px var(--sans);
  white-space: nowrap;
}

.profile-button {
  position: relative;
  width: 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
  border-color: var(--line);
  background: rgba(255,255,255,.025);
  color: var(--paper);
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%,rgba(244,196,94,.34),transparent 45%),rgba(66,232,245,.10);
  border: 1px solid rgba(66,232,245,.24);
  color: var(--cyan);
  font-weight: 900;
  font-size: 11px;
}

.profile-button .nav-badge {
  position: absolute;
  top: -4px;
  right: -5px;
}

.mobile-nav .mobile-record {
  position: relative;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  color: #062028;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav .mobile-record::before {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--cyan),#8CF7FF);
  box-shadow: 0 8px 28px rgba(66,232,245,.22);
  z-index: -1;
}

.mobile-nav .mobile-record span {
  font-weight: 950;
  color: #062028;
  letter-spacing: .04em;
  font-size: 9px;
}

html[data-omni-overlay]:not([data-omni-overlay="NONE"]) body.omni-overlay-active {
  overscroll-behavior: contain;
}

@media (max-width: 1140px) {
  .nav { gap: 14px; }
  .unified-links { gap: 3px; }
  .unified-nav-link,
  .unified-menu-button { padding-inline: 9px; }
  .global-search-shell { width: min(25vw,280px); min-width: 170px; }
}

@media (max-width: 900px) {
  .unified-links { display: none; }
  .global-search-shell { margin-left: auto; width: min(44vw,360px); }
}

@media (max-width: 720px) {
  .shell.nav { width: min(100% - 18px,680px); }
  .global-search-shell { display: none; }
  .profile-menu-wrap { margin-left: auto; }
  .profile-button { width: 40px; height: 40px; }
  .shell-menu[data-shell-panel="record"] {
    position: fixed;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(82px + var(--safe-bottom));
    width: auto;
    max-height: min(62vh,460px);
    overflow: auto;
  }
  .mobile-nav {
    position: fixed;
    z-index: 50;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(70px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(7,10,14,.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(5,1fr);
  }
  .mobile-nav a,
  .mobile-nav button {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--slate);
    font-size: 10px;
    font-weight: 820;
  }
  .mobile-nav a.active:not(.mobile-record) { color: var(--cyan); }
  .page { padding-bottom: 112px; }
  .footer { padding-bottom: calc(100px + var(--safe-bottom)); }
  .update-banner { bottom: calc(84px + var(--safe-bottom)); }
}

@media (max-width: 420px) {
  .wordmark { display: none; }
  .brand { gap: 0; }
}
