/* Unified top navigation layout and action rhythm. */
.site-header,
.top {
  height: 64px !important;
  min-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 24px !important;
  border-bottom-width: 1px !important;
  border-bottom-color: rgba(64,54,39,.11) !important;
  background: #f2efe6 !important;
  box-shadow: none !important;
  z-index: 90 !important;
  isolation: isolate !important;
}

.site-header-inner,
.top-inner {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
}

.site-brand,
.brand {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  color: var(--accent-2, var(--brand, #173633)) !important;
  text-decoration: none !important;
}

.brand-mark {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: var(--accent, var(--brand, #204f4a)) !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.brand-type,
.brand-slogan {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

.brand-type {
  margin-left: 10px !important;
}

html:not([data-theme="dark"]) .brand-divider {
  border-left-color: rgba(64,54,39,.18) !important;
}

html:not([data-theme="dark"]) .brand-slogan {
  color: rgba(31,43,37,.50) !important;
}

.site-nav,
.top .nav {
  min-width: 0 !important;
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.site-nav-link,
.top .nav a {
  width: max-content !important;
  height: 34px !important;
  min-width: max-content !important;
  min-height: 34px !important;
  max-height: 34px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 11px !important;
  border: 1px solid rgba(40,40,30,.12) !important;
  border-radius: 999px !important;
  background: rgba(243,241,234,.72) !important;
  color: var(--muted, #6a675f) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
  word-break: keep-all !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease !important;
}

.site-nav-link:hover,
.site-nav-link:focus-visible,
.site-nav-link.active,
.site-nav-link.primary,
.site-nav-link[aria-current="page"],
.top .nav a:hover,
.top .nav a:focus-visible,
.top .nav a.active,
.top .nav a.primary,
.top .nav a[aria-current="page"] {
  border-color: rgba(32,79,74,.20) !important;
  background: rgba(32,79,74,.07) !important;
  color: var(--brand, var(--accent, #204f4a)) !important;
  box-shadow: none !important;
}

.site-actions,
.top-actions {
  box-sizing: border-box !important;
  min-width: max-content !important;
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.site-actions > *,
.top-actions > * {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.site-actions > .account,
.top-actions > .account {
  box-sizing: border-box !important;
  height: 34px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.site-action,
.top-actions .top-login,
.top-actions .top-action,
.top-actions .avatar,
.top-actions .login-button,
.top-actions #accountEntry,
.site-actions #adminEntry,
.global-search-entry,
.site-actions .theme-switch,
.top-actions .theme-switch,
.site-locale-toggle,
.wave-locale-switcher {
  box-sizing: border-box !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(40,40,30,.12) !important;
  border-radius: 999px !important;
  background: rgba(243,241,234,.72) !important;
  color: var(--muted, #6a675f) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease !important;
}

.site-actions #adminEntry[hidden],
.top-actions #adminEntry[hidden] {
  display: none !important;
}

.site-action,
.top-actions .top-login,
.top-actions .top-action,
.top-actions .avatar,
.top-actions .login-button,
.top-actions #accountEntry,
.site-actions #adminEntry {
  padding: 0 11px !important;
}

.global-search-entry {
  width: 124px !important;
  min-width: 96px !important;
  max-width: 124px !important;
  flex: 0 1 124px !important;
  padding: 0 10px !important;
  justify-content: space-between !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.site-actions .theme-switch,
.top-actions .theme-switch {
  box-sizing: border-box !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  padding: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
}

.site-actions .theme-switch .theme-toggle,
.top-actions .theme-switch .theme-toggle {
  box-sizing: border-box !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid rgba(40,40,30,.12) !important;
  border-radius: 999px !important;
  background: rgba(243,241,234,.72) !important;
  color: inherit !important;
  box-shadow: none !important;
}

.site-actions .theme-switch .theme-toggle svg,
.top-actions .theme-switch .theme-toggle svg {
  width: 16px !important;
  height: 16px !important;
}

.site-locale-toggle,
.wave-locale-switcher {
  box-sizing: border-box !important;
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  height: 34px !important;
  flex: 0 0 62px !important;
  padding: 0 5px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.site-locale-toggle button,
.wave-locale-switcher button {
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  height: 28px !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.site-locale-toggle span,
.wave-locale-switcher span {
  flex: 0 0 auto !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.site-action:hover,
.site-action:focus-visible,
.site-action.active,
.top-actions .top-login:hover,
.top-actions .top-login:focus-visible,
.top-actions .top-action:hover,
.top-actions .top-action:focus-visible,
.top-actions .top-action.active,
.top-actions .avatar:hover,
.top-actions .avatar:focus-visible,
.top-actions .avatar.active,
.top-actions .login-button:hover,
.top-actions .login-button:focus-visible,
.top-actions .login-button.active,
.top-actions #accountEntry:hover,
.top-actions #accountEntry:focus-visible,
.top-actions #accountEntry.active,
.site-actions #adminEntry:hover,
.site-actions #adminEntry:focus-visible,
.global-search-entry:hover,
.global-search-entry:focus-visible,
.site-actions .theme-switch:hover,
.site-actions .theme-switch:focus-within,
.top-actions .theme-switch:hover,
.top-actions .theme-switch:focus-within,
.site-locale-toggle:hover,
.site-locale-toggle:focus-within,
.wave-locale-switcher:hover,
.wave-locale-switcher:focus-within {
  border-color: rgba(32,79,74,.20) !important;
  background: rgba(32,79,74,.07) !important;
  color: var(--brand, var(--accent, #204f4a)) !important;
  outline: none !important;
  box-shadow: none !important;
}

.site-actions .theme-switch:hover,
.site-actions .theme-switch:focus-within,
.top-actions .theme-switch:hover,
.top-actions .theme-switch:focus-within {
  border-color: transparent !important;
  background: transparent !important;
}

.site-actions .theme-switch:hover .theme-toggle,
.site-actions .theme-switch:focus-within .theme-toggle,
.top-actions .theme-switch:hover .theme-toggle,
.top-actions .theme-switch:focus-within .theme-toggle {
  border-color: rgba(32,79,74,.20) !important;
  background: rgba(32,79,74,.07) !important;
  color: var(--brand, var(--accent, #204f4a)) !important;
}

.top-actions .avatar,
.top-actions .login-button,
.top-actions #accountEntry,
.site-actions #accountEntry {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 58px !important;
  max-width: 82px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (min-width: 1025px) {
  .site-header-inner,
  .top-inner {
    flex-wrap: nowrap !important;
  }

  .site-actions,
  .top-actions {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }
}

.wave-mobile-menu-button,
.wave-mobile-menu-panel {
  display: none !important;
}

.wave-mobile-menu-panel.open {
  display: none !important;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .top {
  border-bottom-color: rgba(238,232,218,.10) !important;
  background: rgba(10,14,12,.97) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .site-header .brand-mark,
html[data-theme="dark"] .top .brand-mark {
  background: #5d9185 !important;
  color: #08100d !important;
}

html[data-theme="dark"] .site-nav-link,
html[data-theme="dark"] .site-header .site-nav .site-nav-link,
html[data-theme="dark"] .top .nav a,
html[data-theme="dark"] .site-action,
html[data-theme="dark"] .site-header .site-actions .site-action,
html[data-theme="dark"] .site-actions .site-action,
html[data-theme="dark"] .top-actions .top-login,
html[data-theme="dark"] .top-actions .top-action,
html[data-theme="dark"] .top-actions .avatar,
html[data-theme="dark"] .top-actions .login-button,
html[data-theme="dark"] .top-actions #accountEntry,
html[data-theme="dark"] .site-actions #adminEntry,
html[data-theme="dark"] .global-search-entry,
html[data-theme="dark"] .site-actions .theme-switch,
html[data-theme="dark"] .top-actions .theme-switch,
html[data-theme="dark"] .site-locale-toggle,
html[data-theme="dark"] .wave-locale-switcher {
  border-color: rgba(238,232,218,.10) !important;
  background: var(--dark-surface-1) !important;
  color: rgba(241,234,220,.62) !important;
}

html[data-theme="dark"] .site-actions .theme-switch,
html[data-theme="dark"] .top-actions .theme-switch {
  border-color: transparent !important;
  background: transparent !important;
}

html[data-theme="dark"] .site-actions .theme-switch .theme-toggle,
html[data-theme="dark"] .top-actions .theme-switch .theme-toggle {
  border-color: rgba(238,232,218,.10) !important;
  background: var(--dark-surface-1) !important;
  color: rgba(241,234,220,.62) !important;
}

html[data-theme="dark"] .site-nav-link:hover,
html[data-theme="dark"] .site-nav-link:focus-visible,
html[data-theme="dark"] .site-header .site-nav .site-nav-link:hover,
html[data-theme="dark"] .site-header .site-nav .site-nav-link:focus-visible,
html[data-theme="dark"] .top .nav a:hover,
html[data-theme="dark"] .top .nav a:focus-visible,
html[data-theme="dark"] .site-action:hover,
html[data-theme="dark"] .site-action:focus-visible,
html[data-theme="dark"] .site-actions .site-action:hover,
html[data-theme="dark"] .site-actions .site-action:focus-visible,
html[data-theme="dark"] .top-actions .top-login:hover,
html[data-theme="dark"] .top-actions .top-login:focus-visible,
html[data-theme="dark"] .top-actions .top-action:hover,
html[data-theme="dark"] .top-actions .top-action:focus-visible,
html[data-theme="dark"] .top-actions .avatar:hover,
html[data-theme="dark"] .top-actions .avatar:focus-visible,
html[data-theme="dark"] .top-actions .login-button:hover,
html[data-theme="dark"] .top-actions .login-button:focus-visible,
html[data-theme="dark"] .top-actions #accountEntry:hover,
html[data-theme="dark"] .top-actions #accountEntry:focus-visible,
html[data-theme="dark"] .site-actions #adminEntry:hover,
html[data-theme="dark"] .site-actions #adminEntry:focus-visible,
html[data-theme="dark"] .global-search-entry:hover,
html[data-theme="dark"] .global-search-entry:focus-visible,
html[data-theme="dark"] .site-actions .theme-switch:hover,
html[data-theme="dark"] .site-actions .theme-switch:focus-within,
html[data-theme="dark"] .top-actions .theme-switch:hover,
html[data-theme="dark"] .top-actions .theme-switch:focus-within,
html[data-theme="dark"] .site-locale-toggle:hover,
html[data-theme="dark"] .site-locale-toggle:focus-within,
html[data-theme="dark"] .wave-locale-switcher:hover,
html[data-theme="dark"] .wave-locale-switcher:focus-within {
  border-color: rgba(198,178,113,.20) !important;
  background: rgba(198,178,113,.055) !important;
  color: rgba(198,178,113,.74) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .site-actions .theme-switch:hover,
html[data-theme="dark"] .site-actions .theme-switch:focus-within,
html[data-theme="dark"] .top-actions .theme-switch:hover,
html[data-theme="dark"] .top-actions .theme-switch:focus-within {
  border-color: transparent !important;
  background: transparent !important;
}

html[data-theme="dark"] .site-actions .theme-switch:hover .theme-toggle,
html[data-theme="dark"] .site-actions .theme-switch:focus-within .theme-toggle,
html[data-theme="dark"] .top-actions .theme-switch:hover .theme-toggle,
html[data-theme="dark"] .top-actions .theme-switch:focus-within .theme-toggle {
  border-color: rgba(198,178,113,.20) !important;
  background: rgba(198,178,113,.055) !important;
  color: rgba(198,178,113,.74) !important;
}

.site-locale-toggle.wave-locale-switcher--v1,
.wave-locale-switcher.wave-locale-switcher--v1 {
  position: relative !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  flex: 0 0 34px !important;
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  z-index: 100 !important;
}

.wave-locale-switcher--v1 .locale-globe-trigger {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
}

.wave-locale-switcher--v1 .locale-menu[hidden] {
  display: none !important;
}

html[data-theme="dark"] .site-nav-link.active,
html[data-theme="dark"] .site-nav-link.primary,
html[data-theme="dark"] .site-nav-link[aria-current="page"],
html[data-theme="dark"] .site-header .site-nav .site-nav-link.active,
html[data-theme="dark"] .site-header .site-nav .site-nav-link.primary,
html[data-theme="dark"] .site-header .site-nav .site-nav-link[aria-current="page"],
html[data-theme="dark"] .top .nav a.active,
html[data-theme="dark"] .top .nav a.primary,
html[data-theme="dark"] .top .nav a[aria-current="page"],
html[data-theme="dark"] .site-action.active,
html[data-theme="dark"] .site-actions .site-action.active,
html[data-theme="dark"] .top-actions .top-action.active,
html[data-theme="dark"] .top-actions .avatar.active,
html[data-theme="dark"] .top-actions .login-button.active,
html[data-theme="dark"] .top-actions #accountEntry.active {
  border-color: rgba(198,178,113,.34) !important;
  background: rgba(198,178,113,.115) !important;
  color: var(--theme-gold) !important;
}

@media (max-width: 1280px) and (min-width: 1025px) {
  .site-actions #adminEntry, {
    display: none !important;
  }

  .site-header-inner,
  .top-inner {
    gap: 12px !important;
  }

  .site-nav,
  .top .nav {
    gap: 5px !important;
  }

  .site-nav-link,
  .top .nav a {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  .global-search-entry {
    width: 104px !important;
    min-width: 86px !important;
    max-width: 104px !important;
    flex-basis: 104px !important;
  }
}

@media (max-width: 1120px) and (min-width: 1025px) {
  .site-actions #globalSearchEntry,
  .top-actions #globalSearchEntry,
  .site-actions .global-search-entry,
  .top-actions .global-search-entry {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .brand-divider,
  .brand-slogan {
    display: none !important;
  }

  .site-header-inner,
  .top-inner {
    gap: 10px !important;
  }

  .site-nav,
  .top .nav {
    gap: 5px !important;
  }

  .site-nav-link,
  .top .nav a {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
}

@media (max-width: 1120px) {
  .site-nav-link:nth-last-child(-n + 2),
  .top .nav a:nth-last-child(-n + 2) {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .site-header,
  .top {
    height: 58px !important;
    min-height: 58px !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .site-header-inner,
  .top-inner {
    gap: 8px !important;
  }

  .site-nav { display: none !important; }
  .top .nav { display: none !important; }

  .site-brand,
  .brand {
    flex: 1 1 auto !important;
    min-width: 152px !important;
    overflow: visible !important;
  }

  .brand-type {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    max-width: none !important;
    font-size: 18px !important;
    letter-spacing: .16em !important;
  }

  .site-actions,
  .top-actions {
    gap: 7px !important;
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .site-actions > :not(.site-locale-toggle):not(.wave-locale-switcher):not(.site-theme-toggle):not(.theme-switch):not(.wave-mobile-menu-button),
  .top-actions > :not(.site-locale-toggle):not(.wave-locale-switcher):not(.site-theme-toggle):not(.theme-switch):not(.wave-mobile-menu-button),
  .site-actions #accountEntry,
  .top-actions #accountEntry,
  .site-actions #adminEntry,
  .top-actions #adminEntry,
  .site-actions #globalSearchEntry,
  .top-actions #globalSearchEntry,
  .site-actions .global-search-entry,
  .top-actions .global-search-entry,
  .site-actions .account,
  .top-actions .account,
  .site-actions .account-menu,
  .top-actions .account-menu,
  .site-actions .top-login,
  .top-actions .top-login,
  .site-actions .login-button,
  .top-actions .login-button,
  .site-actions .avatar,
  .top-actions .avatar,
  .mobile-terminal-status,
  .brand-mobile-type {
    display: none !important;
  }

  .site-header-inner .mobile-terminal-status,
  .top-inner .mobile-terminal-status {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    flex: 0 0 0 !important;
  }

  .account-terminal-popover,
  .account-popover[data-wave-login-portal="true"] {
    position: fixed !important;
    right: 12px !important;
    left: 12px !important;
    top: 66px !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(78vh, calc(100vh - 86px)) !important;
    overflow: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .account-terminal-popover .appendix-form {
    grid-template-columns: 1fr;
  }

  .account-terminal-popover .registry-values > * + *::before {
    margin: 0 7px;
  }

  .wave-mobile-menu-button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    flex: 0 0 34px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 0 !important;
    border: 1px solid rgba(40,40,30,.12) !important;
    border-radius: 999px !important;
    background: rgba(243,241,234,.72) !important;
    color: var(--brand, var(--accent, #204f4a)) !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  .wave-mobile-menu-button span {
    width: 13px;
    height: 1px;
    display: block;
    border-radius: 999px;
    background: currentColor;
  }

  .wave-mobile-menu-panel {
    position: fixed !important;
    right: var(--wave-mobile-menu-right, 12px) !important;
    left: var(--wave-mobile-menu-left, 12px) !important;
    top: var(--wave-mobile-menu-top, calc(64px + env(safe-area-inset-top) + 8px)) !important;
    bottom: auto !important;
    z-index: 120 !important;
    max-height: var(--wave-mobile-menu-max-height, calc(100dvh - var(--wave-mobile-menu-top, calc(64px + env(safe-area-inset-top) + 8px)) - env(safe-area-inset-bottom) - 12px)) !important;
    display: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px !important;
    border: 1px solid rgba(216,209,195,.78) !important;
    border-radius: 14px !important;
    background: var(--surface-card) !important;
    color: #171714 !important;
    box-shadow: 0 16px 46px rgba(37,47,41,.14) !important;
  }

  .wave-mobile-menu-panel.open {
    display: grid !important;
    gap: 10px !important;
  }

  @supports not (height: 100dvh) {
    .wave-mobile-menu-panel {
      max-height: var(--wave-mobile-menu-max-height-fallback, calc(100vh - var(--wave-mobile-menu-top, 72px) - env(safe-area-inset-bottom) - 12px)) !important;
    }
  }

  .wave-mobile-menu-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 2px 2px 8px;
    border-bottom: 1px solid rgba(216,209,195,.58);
  }

  .wave-mobile-menu-head span,
  .wave-mobile-menu-head small {
    font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .12em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .wave-mobile-menu-head small {
    color: #8a877f;
    font-size: 8px;
    letter-spacing: .08em;
  }

  .wave-mobile-menu-list {
    display: grid;
    gap: 1px;
  }

  .wave-mobile-menu-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    border-bottom: 1px solid rgba(216,209,195,.38);
    color: #4f5f59;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: 0;
    text-decoration: none;
  }

  .wave-mobile-menu-link::after {
    content: "›";
    color: rgba(79,95,89,.48);
    font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 12px;
  }

  .wave-mobile-menu-link.active,
  .wave-mobile-menu-link[aria-current="page"] {
    color: var(--brand, #204f4a);
  }

  .wave-mobile-menu-link.app-extra {
    min-height: 38px;
    color: #68716b;
    font-size: 12px;
  }

  .wave-mobile-menu-divider {
    height: 9px;
    border-bottom: 1px solid rgba(216,209,195,.58);
  }

  html[data-theme="dark"] .wave-mobile-menu-button {
    border-color: color-mix(in srgb, var(--dark-border) 58%, transparent) !important;
    background: var(--dark-surface-1) !important;
    color: var(--theme-gold) !important;
  }

  html[data-theme="dark"] .wave-mobile-menu-panel {
    border-color: color-mix(in srgb, var(--dark-border) 58%, transparent) !important;
    background: #14130f !important;
    color: rgba(238,233,221,.9) !important;
    box-shadow: 0 -18px 46px rgba(0,0,0,.34) !important;
  }

  html[data-theme="dark"] .wave-mobile-menu-head,
  html[data-theme="dark"] .wave-mobile-menu-link,
  html[data-theme="dark"] .wave-mobile-menu-divider {
    border-color: rgba(174,160,128,.16) !important;
  }

  html[data-theme="dark"] .wave-mobile-menu-head small,
  html[data-theme="dark"] .wave-mobile-menu-link {
    color: rgba(187,178,161,.76);
  }

  html[data-theme="dark"] .wave-mobile-menu-link.active,
  html[data-theme="dark"] .wave-mobile-menu-link[aria-current="page"] {
    color: var(--theme-gold);
  }
}

@media (max-width: 760px) {
  .site-actions #accountEntry,
  .top-actions #accountEntry,
  .top-actions .avatar,
  .top-actions .login-button,
  .top-actions .top-login,
  .site-actions .top-login,
  .site-actions #avatar,
  .top-actions #avatar,
  .site-actions .account,
  .site-actions .account-menu,
  .top-actions .account,
  .top-actions .account-menu,
  .mobile-terminal-status,
  .brand-mobile-type {
    display: none !important;
  }

  .site-locale-toggle,
  .wave-locale-switcher {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
  }

  .wave-mobile-menu-panel {
    top: var(--wave-mobile-menu-top, calc(58px + env(safe-area-inset-top) + 2px)) !important;
    max-height: var(--wave-mobile-menu-max-height, calc(100dvh - var(--wave-mobile-menu-top, calc(58px + env(safe-area-inset-top) + 2px)) - env(safe-area-inset-bottom) - 8px)) !important;
  }
}

@media (max-width: 380px) {
  .site-header,
  .top {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .site-header-inner,
  .top-inner {
    gap: 6px !important;
  }

  .site-brand,
  .brand {
    min-width: 0 !important;
    flex: 1 1 0 !important;
  }

  .brand-type {
    max-width: clamp(82px, calc(100vw - 214px), 132px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 16px !important;
  }

  .site-actions,
  .top-actions {
    gap: 5px !important;
    min-width: 0 !important;
  }

  .site-locale-toggle,
  .wave-locale-switcher {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    flex-basis: 58px !important;
    gap: 3px !important;
    padding-right: 4px !important;
    padding-left: 4px !important;
  }

  .site-actions .theme-switch,
  .top-actions .theme-switch,
  .site-actions .theme-switch .theme-toggle,
  .top-actions .theme-switch .theme-toggle,
  .wave-mobile-menu-button {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex-basis: 32px !important;
  }
}

@media (max-width: 340px) {
  .site-header,
  .top {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  .site-header-inner,
  .top-inner,
  .site-actions,
  .top-actions {
    gap: 4px !important;
  }

  .brand-type {
    max-width: 58px !important;
    font-size: 0 !important;
  }

  .brand-type::after {
    content: "WAVE";
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: 15px !important;
    font-weight: inherit;
    letter-spacing: .16em;
    line-height: 1;
    white-space: nowrap;
  }

  .site-locale-toggle,
  .wave-locale-switcher {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    flex-basis: 54px !important;
  }
}

/* Shared public login popover: mirrors the research terminal access panel. */
.account-terminal-popover {
  position: fixed !important;
  right: 24px !important;
  top: 72px !important;
  width: 360px !important;
  max-width: min(360px, calc(100vw - 28px)) !important;
  max-height: min(78vh, calc(100vh - 92px)) !important;
  overflow: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  display: none;
  z-index: 130 !important;
  gap: 14px !important;
  padding: 12px !important;
  border: 1px solid var(--line, rgba(216,209,195,.72)) !important;
  border-radius: 16px !important;
  background: var(--surface-card) !important;
  box-shadow: 0 18px 50px rgba(40, 40, 30, 0.09) !important;
  color: #1f2933 !important;
}

.account-terminal-popover.open { display: grid !important; }

.account-popover[data-wave-login-portal="true"] {
  position: fixed !important;
  right: 24px !important;
  top: 72px !important;
  width: 360px !important;
  max-width: min(360px, calc(100vw - 28px)) !important;
  max-height: min(78vh, calc(100vh - 92px)) !important;
  overflow: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  z-index: 130 !important;
}

.account-terminal-popover *,
.account-terminal-popover *::before,
.account-terminal-popover *::after { box-sizing: border-box; }

.account-terminal-popover .account-terminal-head {
  display: grid;
  gap: 4px;
  padding-bottom: 4px;
}

.account-terminal-popover .account-terminal-head span,
.account-terminal-popover .appendix-label {
  color: #8a877f;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.account-terminal-popover .account-terminal-head h3 {
  margin: 0;
  color: #171714;
  font-size: 16px;
  font-weight: 860;
  line-height: 1.25;
  letter-spacing: 0;
}

.account-terminal-popover .account-terminal-head p,
.account-terminal-popover .trial-note,
.account-terminal-popover .account-message,
.account-terminal-popover .trial-message {
  margin: 0;
  color: #777268;
  font-size: 11px;
  line-height: 1.45;
}

.account-terminal-popover .account-registry-status {
  display: grid;
  gap: 3px;
  padding: 7px 0;
  border-top: 1px solid rgba(216,209,195,.58);
  border-bottom: 1px solid rgba(216,209,195,.58);
  color: #777268;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.account-terminal-popover .registry-label {
  display: block;
  letter-spacing: .07em;
}

.account-terminal-popover .registry-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 0;
  min-width: 0;
  letter-spacing: .035em;
}

.account-terminal-popover .registry-values > * + *::before {
  content: "·";
  margin: 0 8px;
  color: rgba(119,114,104,.62);
  font-weight: 520;
}

.account-terminal-popover .registry-values > .hardware-lamp::before {
  content: none;
  margin: 0;
}

.account-terminal-popover .account-registry-status b {
  color: #171714;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .02em;
}

.account-terminal-popover .registry-expiry { opacity: .72; }

.account-terminal-popover .account-advanced,
.account-terminal-popover .account-identity,
.account-terminal-popover .account-appendix,
.account-terminal-popover .account-invites,
.account-terminal-popover .account-saved-link {
  display: grid;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(216,209,195,.30);
}

.account-terminal-popover .account-appendix[hidden],
.account-terminal-popover .account-saved-link[hidden],
.account-terminal-popover .account-invites[hidden],
.account-terminal-popover [data-personal-section][hidden] {
  display: none !important;
}

.account-terminal-popover .account-section summary,
.account-terminal-popover .account-appendix summary,
.account-terminal-popover .account-invites summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.account-terminal-popover .account-section summary::-webkit-details-marker,
.account-terminal-popover .account-appendix summary::-webkit-details-marker,
.account-terminal-popover .account-invites summary::-webkit-details-marker {
  display: none;
}

.account-terminal-popover .account-section-chevron {
  color: #8a877f;
  font-size: 13px;
  line-height: 1;
  transition: transform .16s ease;
}

.account-terminal-popover details[open] > summary .account-section-chevron {
  transform: rotate(90deg);
}

.account-terminal-popover .account-access-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-terminal-popover .account-section-label {
  color: #8a877f;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.account-terminal-popover .account-section-title {
  color: #8a877f;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.25;
}

.account-terminal-popover .account-advanced-body {
  display: grid;
  gap: 8px;
}

.account-terminal-popover .account-saved-link {
  color: #171714;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.25;
  text-decoration: none;
}

.account-terminal-popover .account-saved-main,
.account-terminal-popover .invite-summary-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-terminal-popover .account-saved-preview,
.account-terminal-popover .invite-summary-stats {
  color: #8a877f;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: .02em;
  line-height: 1.35;
  opacity: .78;
}

.account-terminal-popover .account-saved-link small {
  color: #8a877f;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.account-terminal-popover .invite-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-terminal-popover .invite-body {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.account-terminal-popover .identity-note {
  margin: -2px 0 0;
  color: #8a877f;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.account-terminal-popover .account-identity {
  gap: 9px;
}

.account-terminal-popover .identity-action {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 32px;
  border: 1px solid rgba(40,40,30,.14);
  border-radius: 4px;
  background: rgba(243,241,234,.72);
  color: #4e4b45;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}

.account-terminal-popover .identity-actions {
  display: grid;
  gap: 8px;
}

.account-terminal-popover .identity-action:hover:not(:disabled),
.account-terminal-popover .identity-action:focus-visible {
  border-color: rgba(40,40,30,.22);
  background: rgba(241,238,231,.52);
}

.account-terminal-popover .identity-action.muted {
  color: rgba(86,83,77,.48);
  cursor: default;
}

.account-terminal-popover .identity-connected-status {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(40,40,30,.12);
  border-radius: 4px;
  background: rgba(239,235,226,.76);
  color: rgba(56,72,64,.72);
  font-size: 10px;
  line-height: 1.45;
}

.account-terminal-popover .identity-connected-status[hidden],
.account-terminal-popover .account-identity[data-identity-connected="true"] .google-identity-action {
  display: none;
}

.account-terminal-popover .identity-connected-status strong {
  color: rgba(45,58,52,.78);
  font-size: 11px;
  font-weight: 620;
}

.account-terminal-popover .identity-connected-status span {
  color: rgba(86,83,77,.58);
  font-weight: 400;
}

.account-terminal-popover .google-identity-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

.account-terminal-popover .google-g-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: rgba(255,255,255,.32);
}

.account-terminal-popover .google-g-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}

.account-terminal-popover .token-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(40,40,30,.16);
  border-radius: 4px;
  background: rgba(232,226,214,.72);
  overflow: hidden;
}

.account-terminal-popover .token-field input,
.account-terminal-popover .account-appendix input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .01em;
  font-weight: 500;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

.account-terminal-popover .account-appendix input {
  min-height: 32px;
  border: 1px solid rgba(40,40,30,.16);
  border-radius: 4px;
  background: rgba(232,226,214,.72);
  box-shadow: none;
}

.account-terminal-popover .account-appendix input:focus {
  border-color: rgba(91,75,46,.24);
  background: rgba(232,226,214,.82);
  box-shadow: none;
  outline: 0;
}

.account-terminal-popover .token-visibility {
  width: 30px !important;
  height: 32px !important;
  min-width: 30px !important;
  min-height: 32px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(100,116,139,.72);
  box-shadow: none !important;
  cursor: pointer;
}

.account-terminal-popover .token-visibility svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-terminal-popover .account-save-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #777268;
  font-size: 12px;
  line-height: 1.4;
}

.account-terminal-popover .account-save-row input {
  width: auto !important;
  margin: 0;
  padding: 0;
}

.account-terminal-popover #saveToken.account-action,
.account-terminal-popover #saveToken.system-action {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(40,40,30,.14);
  border-radius: 6px;
  background: rgba(241,238,231,.28);
  color: #59635e;
  box-shadow: none;
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
}

.account-terminal-popover #saveToken.account-action:hover,
.account-terminal-popover #saveToken.account-action:focus-visible,
.account-terminal-popover #saveToken.system-action:hover,
.account-terminal-popover #saveToken.system-action:focus-visible {
  border-color: rgba(40,40,30,.24);
  background: rgba(241,238,231,.42);
  color: #33423d;
  box-shadow: none;
}

.account-terminal-popover .appendix-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.account-terminal-popover .account-appendix .appendix-label {
  margin-bottom: 2px;
}

.account-terminal-popover .account-appendix button.ghost {
  width: 92px;
  height: 32px;
  min-height: 32px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(40,40,30,.12);
  border-radius: 4px;
  background: rgba(243,241,234,.64);
  color: #777268;
  box-shadow: none;
  font-size: 12px;
  font-weight: 680;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 420px) {
  .account-terminal-popover .appendix-form {
    grid-template-columns: 1fr;
  }
  .account-terminal-popover .account-appendix button.ghost {
    width: 100%;
  }
}

.account-terminal-popover .trial-message:empty,
.account-terminal-popover .account-message:empty { display: none; }

.account-terminal-popover .trial-message.error,
.account-terminal-popover .account-message.error {
  max-width: 100%;
  color: #b2432f;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.account-popover .token-field,
.account-terminal-popover .token-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  min-width: 0;
}

.account-popover .token-field input,
.account-terminal-popover .token-field input,
.account-popover .account-appendix input,
.account-terminal-popover .account-appendix input {
  min-width: 0;
  width: 100%;
}

.account-popover .token-field input::placeholder,
.account-terminal-popover .token-field input::placeholder,
.account-popover .account-appendix input::placeholder,
.account-terminal-popover .account-appendix input::placeholder {
  color: rgba(101,113,102,.58);
  opacity: 1;
  font-size: 11px;
  letter-spacing: .02em;
  line-height: 1.25;
  font-weight: 450;
}

.account-popover .account-appendix input,
.account-terminal-popover .account-appendix input {
  height: 32px;
}

.account-popover .token-visibility,
.account-terminal-popover .token-visibility {
  width: 30px !important;
  height: 32px !important;
  min-width: 30px !important;
  min-height: 32px !important;
  padding: 0 !important;
}

.account-popover .appendix-form,
.account-terminal-popover .appendix-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-popover .account-appendix button.ghost,
.account-terminal-popover .account-appendix button.ghost {
  width: 92px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 420px) {
  .account-popover .appendix-form,
  .account-terminal-popover .appendix-form {
    grid-template-columns: 1fr;
  }

  .account-popover .account-appendix button.ghost,
  .account-terminal-popover .account-appendix button.ghost {
    width: 100%;
  }
}

html[data-theme="dark"] .account-terminal-popover,
html[data-theme="dark"] .account-popover.account-terminal-popover,
html[data-theme="dark"] .popover.account-terminal-popover {
  border-color: var(--theme-line) !important;
  background: linear-gradient(180deg, #3b3930 0%, #2f3029 100%) !important;
  backdrop-filter: none !important;
  box-shadow: var(--theme-shadow, 0 18px 42px rgba(0,0,0,.20)) !important;
  color: var(--theme-text, rgba(245,241,232,.88)) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .account-terminal-popover .account-terminal-head h3,
html[data-theme="dark"] .account-terminal-popover .account-registry-status b {
  color: rgba(245,241,232,.94);
}

html[data-theme="dark"] .account-terminal-popover .account-terminal-head span,
html[data-theme="dark"] .account-terminal-popover .account-terminal-head p,
html[data-theme="dark"] .account-terminal-popover .account-registry-status,
html[data-theme="dark"] .account-terminal-popover .appendix-label,
html[data-theme="dark"] .account-terminal-popover .trial-note,
html[data-theme="dark"] .account-terminal-popover .account-message,
html[data-theme="dark"] .account-terminal-popover .trial-message,
html[data-theme="dark"] .account-terminal-popover .account-save-row,
html[data-theme="dark"] .account-terminal-popover .account-section-label,
html[data-theme="dark"] .account-terminal-popover .account-section-title,
html[data-theme="dark"] .account-terminal-popover .identity-note {
  color: rgba(187,178,161,.76);
}

html[data-theme="dark"] .account-terminal-popover .account-registry-status,
html[data-theme="dark"] .account-terminal-popover .account-advanced,
html[data-theme="dark"] .account-terminal-popover .account-identity,
html[data-theme="dark"] .account-terminal-popover .account-appendix,
html[data-theme="dark"] .account-terminal-popover .account-invites,
html[data-theme="dark"] .account-terminal-popover .account-saved-link {
  border-color: rgba(174,160,128,.24);
}

html[data-theme="dark"] .account-terminal-popover .account-saved-link {
  color: var(--theme-text, rgba(245,241,232,.86));
}

html[data-theme="dark"] .account-terminal-popover .account-saved-preview,
html[data-theme="dark"] .account-terminal-popover .account-saved-link small,
html[data-theme="dark"] .account-terminal-popover .invite-summary-stats,
html[data-theme="dark"] .account-terminal-popover .account-section-chevron {
  color: var(--theme-muted, rgba(187,178,161,.72));
}

html[data-theme="dark"] .account-terminal-popover .identity-action {
  border-color: rgba(174,160,128,.26);
  background: rgba(255,253,248,.065);
  color: rgba(238,233,221,.88);
}

html[data-theme="dark"] .account-terminal-popover .identity-action:hover:not(:disabled),
html[data-theme="dark"] .account-terminal-popover .identity-action:focus-visible {
  border-color: rgba(198,178,113,.34);
  background: rgba(198,178,113,.10);
  color: rgba(245,241,232,.94);
}

html[data-theme="dark"] .account-terminal-popover .identity-action.muted {
  color: rgba(187,178,161,.38);
}

html[data-theme="dark"] .account-terminal-popover .identity-connected-status {
  border-color: rgba(174,160,128,.20);
  background: rgba(255,253,248,.045);
}

html[data-theme="dark"] .account-terminal-popover .identity-connected-status strong {
  color: rgba(238,233,221,.78);
}

html[data-theme="dark"] .account-terminal-popover .identity-connected-status span {
  color: rgba(187,178,161,.56);
}

html[data-theme="dark"] .account-terminal-popover .google-identity-action {
  border-color: rgba(174,160,128,.28);
  background: rgba(255,253,248,.075);
  color: rgba(238,233,221,.90);
}

html[data-theme="dark"] .account-terminal-popover .google-identity-action:hover:not(:disabled),
html[data-theme="dark"] .account-terminal-popover .google-identity-action:focus-visible {
  border-color: rgba(198,178,113,.38);
  background: rgba(198,178,113,.12);
  color: rgba(245,241,232,.96);
}

html[data-theme="dark"] .account-terminal-popover .google-g-mark {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border-radius: 5px;
  background: #fffdf8;
}

html[data-theme="dark"] .account-terminal-popover .token-field,
html[data-theme="dark"] .account-terminal-popover .account-appendix input {
  border-color: var(--theme-line-strong);
  background: var(--surface-input);
}

html[data-theme="dark"] .account-terminal-popover .token-field:focus-within {
  border-color: rgba(198,178,113,.34);
  box-shadow: none !important;
  outline: 0;
}

html[data-theme="dark"] .account-terminal-popover .token-field input:focus {
  box-shadow: none !important;
  outline: 0;
}

html[data-theme="dark"] .account-terminal-popover .account-appendix input:focus {
  border-color: rgba(198,178,113,.34);
  background: var(--surface-input);
  box-shadow: none !important;
  outline: 0;
}

html[data-theme="dark"] .account-terminal-popover .token-field input,
html[data-theme="dark"] .account-terminal-popover .account-appendix input {
  color: var(--theme-text, rgba(245,241,232,.88));
  -webkit-text-fill-color: var(--theme-text, rgba(245,241,232,.88));
  caret-color: rgba(198,178,113,.72);
}

html[data-theme="dark"] .account-terminal-popover .token-field input::placeholder,
html[data-theme="dark"] .account-terminal-popover .account-appendix input::placeholder {
  color: var(--muted);
  opacity: .62;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: inherit;
}

/* Access popover input ownership parity (dark): token/email both owned by input */
html[data-theme="dark"] .account-popover.account-terminal-popover .token-field {
  border: 0 !important;
  background: transparent !important;
}

html[data-theme="dark"] .account-popover.account-terminal-popover .token-field input,
html[data-theme="dark"] .account-popover.account-terminal-popover .account-appendix input {
  appearance: none;
  -webkit-appearance: none;
  opacity: 1;
  color: var(--theme-text);
  -webkit-text-fill-color: var(--theme-text);
  min-height: 32px;
  height: 32px;
  border: 1px solid var(--theme-line-strong);
  border-radius: 4px;
  background: var(--surface-input);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .01em;
  box-shadow: none !important;
}

html[data-theme="dark"] .account-popover.account-terminal-popover .token-field input::placeholder,
html[data-theme="dark"] .account-popover.account-terminal-popover .account-appendix input::placeholder {
  color: var(--muted);
  opacity: .62;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .01em;
}

html[data-theme="dark"] .account-terminal-popover .token-field input:-webkit-autofill,
html[data-theme="dark"] .account-terminal-popover .token-field input:-webkit-autofill:hover,
html[data-theme="dark"] .account-terminal-popover .token-field input:-webkit-autofill:focus,
html[data-theme="dark"] .account-terminal-popover .account-appendix input:-webkit-autofill,
html[data-theme="dark"] .account-terminal-popover .account-appendix input:-webkit-autofill:hover,
html[data-theme="dark"] .account-terminal-popover .account-appendix input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--theme-text);
  transition: background-color 99999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px var(--surface-input) inset;
  border-radius: 4px;
}

html[data-theme="dark"] .account-popover.account-terminal-popover .token-field input:disabled,
html[data-theme="dark"] .account-popover.account-terminal-popover .token-field input[readonly],
html[data-theme="dark"] .account-popover.account-terminal-popover .account-appendix input:disabled,
html[data-theme="dark"] .account-popover.account-terminal-popover .account-appendix input[readonly] {
  opacity: 1;
  color: var(--theme-text);
  -webkit-text-fill-color: var(--theme-text);
}

html[data-theme="dark"] .account-terminal-popover #saveToken.account-action,
html[data-theme="dark"] .account-terminal-popover #saveToken.system-action,
html[data-theme="dark"] .account-terminal-popover #testConn.system-action {
  border-color: rgba(198,178,113,.36);
  background: rgba(198,178,113,.14);
  color: rgba(241,234,220,.88);
  box-shadow: none;
}

html[data-theme="dark"] .account-terminal-popover #saveToken.account-action:hover,
html[data-theme="dark"] .account-terminal-popover #saveToken.account-action:focus-visible,
html[data-theme="dark"] .account-terminal-popover #saveToken.system-action:hover,
html[data-theme="dark"] .account-terminal-popover #saveToken.system-action:focus-visible,
html[data-theme="dark"] .account-terminal-popover #testConn.system-action:hover,
html[data-theme="dark"] .account-terminal-popover #testConn.system-action:focus-visible {
  border-color: rgba(198,178,113,.44);
  background: rgba(198,178,113,.20);
  color: rgba(245,241,232,.96);
}

html[data-theme="dark"] .account-terminal-popover .token-visibility {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(241,234,220,.58);
  opacity: .92;
}

html[data-theme="dark"] .account-terminal-popover .token-visibility:hover,
html[data-theme="dark"] .account-terminal-popover .token-visibility:focus,
html[data-theme="dark"] .account-terminal-popover .token-visibility:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(241,234,220,.58);
  opacity: .92;
  outline: 0;
}

html[data-theme="dark"] .account-terminal-popover .token-visibility svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.75;
}

html[data-theme="dark"] .account-terminal-popover .account-appendix button.ghost {
  border-color: rgba(174,160,128,.16);
  background: rgba(18,20,17,.12);
  color: var(--theme-muted, rgba(187,178,161,.72));
}
