.fade-ecosystem-bar {
  position: relative;
  z-index: 300;
  box-sizing: border-box;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(16px, 3vw, 46px);
  border-bottom: 1px solid rgba(188, 197, 209, .18);
  background: rgba(4, 6, 9, .98);
}

.fade-ecosystem-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.fade-ecosystem-brand img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15);
}

.fade-ecosystem-brand span,
.fade-ecosystem-account,
.fade-platform-switcher summary {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fade-platform-switcher {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fade-platform-switcher summary {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  border-bottom: 2px solid transparent;
  color: #c4c8cf;
  cursor: pointer;
  list-style: none;
  transition: border-color .2s ease, color .2s ease;
}

.fade-platform-switcher summary::-webkit-details-marker { display: none; }
.fade-platform-switcher summary:hover,
.fade-platform-switcher summary:focus-visible,
.fade-platform-switcher[open] summary { outline: 0; border-bottom-color: var(--orange); color: var(--text); }

.fade-platform-chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.fade-platform-switcher[open] .fade-platform-chevron { transform: translateY(2px) rotate(225deg); }

.fade-platform-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  width: 270px;
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  background: rgba(5, 8, 12, .99);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
}

.fade-platform-menu a {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  color: var(--text);
  text-decoration: none;
}

.fade-platform-menu a:hover,
.fade-platform-menu a:focus-visible { outline: 0; border-left-color: var(--orange); background: rgba(var(--accent-rgb), .08); }
.fade-platform-menu a[aria-current="page"] { border-left-color: var(--orange); }
.fade-platform-menu a span { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.fade-platform-menu a small { color: var(--muted); font-size: .59rem; letter-spacing: .08em; text-transform: uppercase; }

.fade-ecosystem-account {
  max-width: min(34vw, 330px);
  overflow: hidden;
  padding-block: 18px 16px;
  border-bottom: 2px solid transparent;
  color: #c4c8cf;
  text-decoration: none;
  text-overflow: ellipsis;
  transition: border-color .2s ease, color .2s ease;
}

.fade-ecosystem-account:hover,
.fade-ecosystem-account:focus-visible { outline: 0; border-bottom-color: var(--orange); color: var(--text); }

.utility-account {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

.account-trigger {
  min-width: 0;
  max-width: min(50vw, 360px);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #c4c8cf;
  cursor: pointer;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .30em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}

.account-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.account-trigger:hover,
.account-trigger:focus-visible,
.account-trigger[aria-expanded="true"] { outline: 0; border-bottom-color: var(--orange); color: var(--text); }

.account-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.account-trigger[aria-expanded="true"] .account-chevron { transform: translateY(2px) rotate(225deg); }

.account-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 1px);
  right: 0;
  width: min(370px, calc(100vw - 30px));
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transform: translateY(-10px);
  border: 1px solid transparent;
  border-top: 0;
  background: rgba(5, 8, 12, .985);
  box-shadow: 0 26px 54px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: max-height .3s ease, padding .3s ease, transform .25s ease, opacity .2s ease;
}

.account-panel.is-open {
  max-height: 590px;
  padding-block: 24px;
  transform: none;
  border-color: rgba(203, 210, 219, .2);
  opacity: 1;
  pointer-events: auto;
}

.account-eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.account-email {
  display: block;
  overflow-wrap: anywhere;
  margin: 0 0 16px;
  color: #c8ccd2;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.5;
}

.account-settings-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}

.account-settings-link:hover,
.account-settings-link:focus-visible { outline: 0; border-color: var(--orange); color: var(--orange); }

.account-logout-form { margin: 18px 0 0; }

.account-submit {
  min-height: 42px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: var(--accent-contrast);
  cursor: pointer;
  font-family: inherit;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.account-submit:hover,
.account-submit:focus-visible { outline: 0; background: transparent; color: var(--orange); }

body[data-mode="light"] .fade-ecosystem-bar { border-color: var(--line); background: rgba(255,255,255,.98); box-shadow: 0 8px 24px rgba(24,31,40,.07); }
body[data-mode="light"] .fade-ecosystem-brand img { filter: invert(1) grayscale(1) contrast(1.35); }
body[data-mode="light"] .fade-platform-switcher summary,
body[data-mode="light"] .fade-ecosystem-account,
body[data-mode="light"] .account-trigger { color: #66717f; }
body[data-mode="light"] .fade-platform-menu { background: rgba(255,255,255,.99); box-shadow: 0 22px 50px rgba(24,31,40,.16); }
body[data-mode="light"] .account-panel { border-color: var(--line); background: rgba(255,255,255,.99); box-shadow: 0 22px 50px rgba(24,31,40,.16); }

@media (max-width: 700px) {
  .fade-ecosystem-bar { gap: 10px; padding-inline: 14px; }
  .fade-ecosystem-brand span { display: none; }
  .fade-ecosystem-brand img { width: 30px; height: 30px; }
  .fade-platform-switcher { position: relative; top: auto; left: auto; margin-left: auto; transform: none; }
  .fade-platform-switcher summary { min-height: 49px; padding-inline: 8px; font-size: .58rem; letter-spacing: .18em; }
  .fade-platform-menu { right: -72px; left: auto; width: min(270px, calc(100vw - 28px)); transform: none; }
  .fade-ecosystem-account { max-width: 39vw; font-size: .58rem; letter-spacing: .16em; }
  .account-trigger { max-width: 42vw; font-size: .62rem; letter-spacing: .2em; }
  .account-panel { right: -2px; width: min(350px, calc(100vw - 28px)); }
}

/* Isolate the shared Fade controls from Monolith's broad form/button rules. */
.fade-ecosystem-bar .account-trigger {
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: min(50vw, 360px) !important;
  height: 50px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fade-ecosystem-bar .account-trigger:hover,
.fade-ecosystem-bar .account-trigger:focus-visible,
.fade-ecosystem-bar .account-trigger[aria-expanded="true"] {
  border-bottom-color: var(--orange) !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.fade-ecosystem-bar .account-submit {
  box-sizing: border-box;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto;
  margin-top: 2px;
  border-radius: 0 !important;
}

/* Shared product navigation: Monolith is the ecosystem baseline. */
.fade-product-nav {
  box-sizing: border-box !important;
  min-height: 0 !important;
  height: auto !important;
  align-items: center !important;
  gap: clamp(18px, 2.4vw, 38px) !important;
  padding: 13px 28px !important;
  border-top: 1px solid rgba(188, 197, 209, .13) !important;
  border-bottom: 1px solid rgba(188, 197, 209, .13) !important;
  background: rgba(8, 11, 15, .96) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22) !important;
}

.fade-product-nav > a,
.fade-product-nav .nav-dropdown-trigger {
  position: relative !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #7f8792 !important;
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", "Segoe UI", sans-serif !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
  letter-spacing: .16em !important;
  line-height: normal !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.fade-product-nav > a:hover,
.fade-product-nav > a:focus-visible,
.fade-product-nav > a.active,
.fade-product-nav > a[aria-current="page"],
.fade-product-nav .nav-dropdown-trigger:hover,
.fade-product-nav .nav-dropdown-trigger:focus-visible,
.fade-product-nav .nav-dropdown-trigger[aria-expanded="true"],
.fade-product-nav .nav-dropdown-trigger.active {
  color: var(--text, #f2f0eb) !important;
}

.fade-product-nav > a.active::after,
.fade-product-nav > a[aria-current="page"]::after,
.fade-product-nav .nav-dropdown-trigger.active::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: -14px !important;
  left: 0 !important;
  width: auto !important;
  height: 2px !important;
  background: var(--orange) !important;
}

body[data-mode="light"] .fade-product-nav {
  border-color: var(--line, rgba(35, 43, 54, .22)) !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 8px 22px rgba(24, 31, 40, .07) !important;
}

body[data-mode="light"] .fade-product-nav > a,
body[data-mode="light"] .fade-product-nav .nav-dropdown-trigger {
  color: #66717f !important;
}

body[data-mode="light"] .fade-product-nav > a:hover,
body[data-mode="light"] .fade-product-nav > a:focus-visible,
body[data-mode="light"] .fade-product-nav > a.active,
body[data-mode="light"] .fade-product-nav > a[aria-current="page"],
body[data-mode="light"] .fade-product-nav .nav-dropdown-trigger:hover,
body[data-mode="light"] .fade-product-nav .nav-dropdown-trigger:focus-visible,
body[data-mode="light"] .fade-product-nav .nav-dropdown-trigger[aria-expanded="true"],
body[data-mode="light"] .fade-product-nav .nav-dropdown-trigger.active {
  color: var(--text, #171b21) !important;
}
