/*
 * Global navigation refresh.
 *
 * This file is intentionally loaded after header.css. It flattens the legacy
 * card-heavy header, account panel and mobile drawer without changing their
 * JavaScript state contract.
 */

:root {
  --ed-global-nav-glass: color-mix(in srgb, var(--ed-color-surface-strong) 88%, transparent);
  --ed-global-nav-panel: color-mix(in srgb, var(--ed-color-surface-strong) 96%, transparent);
  --ed-global-nav-hover: color-mix(in srgb, var(--ed-color-primary) 9%, transparent);
  --ed-global-nav-active: color-mix(in srgb, var(--ed-color-primary) 13%, transparent);
  --ed-global-nav-transition: 200ms ease;
}

/* One neutral, lightly translucent header surface. */
.site-header {
  background: var(--ed-color-header-bg);
  background: var(--ed-global-nav-glass);
  border-bottom: 1px solid var(--ed-color-line);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 220ms ease;
}

.site-header__inner {
  box-sizing: border-box;
  max-width: 1440px;
  min-width: 0;
  gap: clamp(10px, 1.5vw, 24px);
}

.site-header__branding,
.site-header__actions {
  min-width: 0;
}

.site-header__branding {
  flex: 0 1 220px;
}

.site-header__actions {
  flex: 1 1 auto;
  gap: 4px;
}

.site-header__logoImg,
.site-header__logo img {
  max-width: min(200px, 22vw);
  max-height: 40px;
}

/* Stable desktop primary navigation: no nested rail or active card. */
.site-primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(2px, 0.5vw, 8px);
  min-width: 0;
  margin-inline: auto;
}

.site-primary-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 104px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ed-color-muted);
  font-family: var(--ed-font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--ed-global-nav-transition),
    background-color var(--ed-global-nav-transition),
    opacity var(--ed-global-nav-transition);
}

.site-primary-nav__item::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--ed-color-primary);
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity var(--ed-global-nav-transition),
    transform var(--ed-global-nav-transition);
}

.site-primary-nav__item:hover,
.site-primary-nav__item:focus-visible {
  outline: none;
  background: var(--ed-global-nav-hover);
  color: var(--ed-color-primary-strong);
}

.site-primary-nav__item:focus-visible {
  box-shadow: var(--ed-focus-ring);
}

.site-primary-nav__item.is-active {
  background: transparent;
  color: var(--ed-color-primary-strong);
}

.site-primary-nav__item.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

.site-primary-nav__item.is-disabled {
  opacity: 0.48;
  cursor: default;
}

.site-primary-nav__item.is-disabled:hover {
  background: transparent;
  color: var(--ed-color-muted);
}

.site-primary-nav__icon {
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.site-primary-nav__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-primary-nav__item small {
  color: var(--ed-color-muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Header utilities are quiet controls on the same shell, not separate cards. */
.site-header-utility,
.site-theme-toggle.site-theme-toggle--header {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ed-color-ink);
  box-shadow: none;
  text-decoration: none;
  transition:
    color var(--ed-global-nav-transition),
    background-color var(--ed-global-nav-transition),
    opacity var(--ed-global-nav-transition),
    transform var(--ed-global-nav-transition);
}

.site-header-utility:hover,
.site-header-utility:focus-visible,
.site-theme-toggle.site-theme-toggle--header:hover,
.site-theme-toggle.site-theme-toggle--header:focus-visible {
  outline: none;
  border-color: transparent;
  background: var(--ed-global-nav-hover);
  color: var(--ed-color-primary-strong);
  box-shadow: none;
  transform: translateY(-1px);
}

.site-header-utility:focus-visible,
.site-theme-toggle.site-theme-toggle--header:focus-visible {
  box-shadow: var(--ed-focus-ring);
}

.site-header-utility__icon {
  display: inline-flex;
  width: 21px;
  height: 21px;
}

.site-header-utility__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-header-utility__badge {
  position: absolute;
  top: 2px;
  right: 1px;
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--ed-color-surface-strong);
  border-radius: 999px;
  background: var(--ed-color-accent);
  color: var(--ed-color-on-primary);
  font-family: var(--ed-font-sans);
  font-size: 0.57rem;
  font-weight: 800;
  line-height: 1;
}

.site-navigation-badge[hidden],
.site-header-utility__badge[hidden] {
  display: none !important;
}

/* Account trigger and popover share the header's flat visual language. */
.site-header .site-account .site-account__toggle {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
  transition:
    color var(--ed-global-nav-transition),
    background-color var(--ed-global-nav-transition),
    opacity var(--ed-global-nav-transition),
    transform var(--ed-global-nav-transition) !important;
}

.site-header .site-account .site-account__toggle:hover,
.site-header .site-account .site-account__toggle:focus-visible,
.site-header .site-account .site-account__toggle[aria-expanded="true"] {
  outline: none;
  background: var(--ed-global-nav-hover) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.site-header .site-account .site-account__toggle:focus-visible {
  box-shadow: var(--ed-focus-ring) !important;
}

.site-account__panel {
  border: 1px solid var(--ed-color-line);
  background: var(--ed-color-panel-bg);
  background: var(--ed-global-nav-panel);
  box-shadow: 0 14px 34px rgba(var(--ed-color-shadow-rgb), 0.12);
  filter: none;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 200ms ease,
    transform 220ms ease,
    visibility 220ms ease;
  will-change: opacity, transform;
}

.site-account__panel.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

.site-account__panel.is-closing {
  opacity: 0;
  transform: translateY(5px);
  filter: none;
}

.site-account__panel > *,
.site-account__panel.is-active > * {
  opacity: 1;
  transform: none;
  transition: none;
}

.site-account__panelHeader {
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--ed-color-line);
  border-radius: 0;
  background: transparent;
}

.site-account__settingsBtn,
.site-account__panelClose {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-account__settingsBtn:hover,
.site-account__settingsBtn:focus-visible,
.site-account__panelClose:hover,
.site-account__panelClose:focus-visible {
  outline: none;
  border-color: transparent;
  background: var(--ed-global-nav-hover);
  box-shadow: none;
  transform: none;
}

.site-account__item,
.site-account__changeIdentity,
.site-account__identityBack,
.site-account__identityOption,
.site-account__createProfile,
.site-account__profileBtn,
.site-account__personalSettings,
.site-account__menu--dashboards .site-account__item--dashboard,
.site-account__professional-action {
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ed-color-ink);
  box-shadow: none;
  filter: none;
  transition:
    color var(--ed-global-nav-transition),
    background-color var(--ed-global-nav-transition),
    border-color var(--ed-global-nav-transition),
    opacity var(--ed-global-nav-transition),
    transform var(--ed-global-nav-transition);
}

.site-account__profileBtn {
  justify-content: flex-start;
  margin-top: 4px;
  padding-inline: 14px;
}

.site-account__menu--dashboards .site-account__item--dashboard,
.site-account__menu--dashboards .site-account__item--dashboard:hover {
  min-height: 52px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--ed-color-ink);
  box-shadow: none;
  filter: none;
  transform: none;
}

.site-account__menu--dashboards .site-account__item--dashboard::before {
  content: none;
}

.site-account__menu--dashboards .site-account__item--dashboard::after {
  background: transparent;
  color: var(--ed-color-muted);
  box-shadow: none;
}

.site-account__menu--dashboards .site-account__item--dashboard .site-account__itemLabel,
.site-account__itemMeta {
  color: inherit;
}

.site-account__itemMeta {
  color: var(--ed-color-muted);
}

.site-account__item:hover,
.site-account__changeIdentity:hover,
.site-account__identityOption:hover,
.site-account__createProfile:hover,
.site-account__profileBtn:hover,
.site-account__personalSettings:hover,
.site-account__menu--dashboards .site-account__item--dashboard:hover {
  background: var(--ed-global-nav-hover);
  color: var(--ed-color-primary-strong);
  box-shadow: none;
  filter: none;
  transform: none;
}

/* Hamburger remains a quiet utility and only translates during hover. */
.site-header .site-header__toggle,
.site-header .site-header__toggle[aria-expanded="true"] {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  flex: 0 0 40px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--ed-color-ink) !important;
  box-shadow: none !important;
  transition:
    background-color var(--ed-global-nav-transition),
    opacity var(--ed-global-nav-transition),
    transform var(--ed-global-nav-transition) !important;
}

.site-header .site-header__toggle:hover,
.site-header .site-header__toggle:focus-visible,
.site-header .site-header__toggle[aria-expanded="true"] {
  outline: none;
  background: var(--ed-global-nav-hover) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.site-header .site-header__toggle:focus-visible {
  box-shadow: var(--ed-focus-ring) !important;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-line,
.site-header__toggle-line {
  background: var(--ed-color-ink);
  transition:
    top 200ms ease,
    opacity 180ms ease,
    transform 220ms ease,
    background-color 180ms ease;
}

/* Flat More drawer. State is still controlled by .is-active and [hidden]. */
.site-overlay {
  background: var(--ed-color-overlay);
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

.site-drawer {
  left: auto;
  right: 0;
  width: min(420px, 100vw);
  border: 0;
  border-left: 1px solid var(--ed-color-line);
  border-top: 1px solid var(--ed-color-line);
  border-radius: 0;
  background: var(--ed-color-panel-bg);
  background: var(--ed-global-nav-panel);
  box-shadow: -12px 0 32px rgba(var(--ed-color-shadow-rgb), 0.1);
  filter: none;
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 200ms ease,
    transform 220ms ease,
    visibility 220ms ease;
  overflow: hidden;
}

.site-drawer.is-active {
  opacity: 1;
  transform: translateX(0);
}

.site-drawer__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 22px 22px calc(28px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-drawer__header,
.site-drawer.is-active .site-drawer__header {
  margin: 0 0 8px;
  padding: 0 48px 18px 0;
  border-bottom: 1px solid var(--ed-color-line);
  background: transparent;
  opacity: 1;
  transform: none;
  transition: none;
}

.site-drawer__title {
  color: var(--ed-color-ink);
  font-size: 1.45rem;
}

.site-drawer__intro {
  max-width: 34ch;
  margin: 7px 0 0;
  color: var(--ed-color-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.site-drawer__close,
html[data-ed-theme="dark"] .site-drawer__close {
  top: 13px;
  right: 14px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 0 !important;
  border-radius: 9px;
  background: transparent !important;
  color: var(--ed-color-ink) !important;
  box-shadow: none !important;
  transition:
    background-color var(--ed-global-nav-transition),
    opacity var(--ed-global-nav-transition),
    transform var(--ed-global-nav-transition);
}

.site-drawer__close:hover,
.site-drawer__close:focus-visible {
  outline: none;
  background: var(--ed-global-nav-hover) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.site-drawer__close:focus-visible {
  box-shadow: var(--ed-focus-ring) !important;
}

.site-more-menu {
  display: grid;
  gap: 0;
}

.site-more-menu__group {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--ed-color-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-more-menu__label {
  margin: 0 0 5px;
  padding-inline: 10px;
  color: var(--ed-color-muted);
  font-family: var(--ed-font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-more-menu__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ed-color-ink);
  font-family: var(--ed-font-sans);
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: none;
  transition:
    color var(--ed-global-nav-transition),
    background-color var(--ed-global-nav-transition),
    opacity var(--ed-global-nav-transition),
    transform var(--ed-global-nav-transition);
}

.site-more-menu__row:hover,
.site-more-menu__row:focus-visible,
.site-more-menu__row.is-active {
  outline: none;
  background: var(--ed-global-nav-hover);
  color: var(--ed-color-primary-strong);
  box-shadow: none;
  transform: none;
}

.site-more-menu__row:focus-visible {
  box-shadow: var(--ed-focus-ring);
}

.site-more-menu__row.is-disabled {
  background: transparent;
  color: var(--ed-color-muted);
  opacity: 0.55;
  cursor: default;
}

.site-more-menu__row > span:nth-child(2) {
  min-width: 0;
}

.site-more-menu__row small {
  display: block;
  margin-top: 3px;
  color: var(--ed-color-muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
}

.site-more-menu__icon {
  display: inline-flex;
  width: 21px;
  height: 21px;
  color: var(--ed-color-muted);
}

.site-more-menu__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-more-menu__arrow {
  color: var(--ed-color-muted);
  transition: transform 180ms ease;
}

.site-more-menu__row:hover .site-more-menu__arrow,
.site-more-menu__row:focus-visible .site-more-menu__arrow {
  transform: translateX(2px);
}

.site-more-menu__appearance {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-inline: 10px;
}

.site-more-menu__appearance strong,
.site-more-menu__appearance small {
  display: block;
}

.site-more-menu__appearance strong {
  color: var(--ed-color-ink);
  font-size: 0.9rem;
}

.site-more-menu__appearance small {
  margin-top: 3px;
  color: var(--ed-color-muted);
  font-size: 0.72rem;
}

.site-theme-toggle.site-theme-toggle--drawer {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}

.site-theme-toggle.site-theme-toggle--drawer:hover,
.site-theme-toggle.site-theme-toggle--drawer:focus-visible {
  outline: none;
  background: var(--ed-global-nav-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

.site-more-menu__auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 16px;
}

.site-more-menu__auth a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ed-color-line);
  border-radius: 8px;
  background: transparent;
  color: var(--ed-color-ink);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition:
    color var(--ed-global-nav-transition),
    background-color var(--ed-global-nav-transition),
    border-color var(--ed-global-nav-transition),
    opacity var(--ed-global-nav-transition),
    transform var(--ed-global-nav-transition);
}

.site-more-menu__auth a:hover,
.site-more-menu__auth a:focus-visible {
  outline: none;
  border-color: var(--ed-color-line-strong);
  background: var(--ed-global-nav-hover);
  transform: translateY(-1px);
}

.site-more-menu__auth a:focus-visible {
  box-shadow: var(--ed-focus-ring);
}

.site-more-menu__auth a.is-primary {
  border-color: var(--ed-color-primary);
  background: var(--ed-color-primary);
  color: var(--ed-color-on-primary);
}

/* The new More menu replaces every legacy card section in the drawer. */
.site-drawer__section,
.site-drawer__memberPrompt,
.site-drawer__professional {
  display: none !important;
}

/* Compact My Dance switcher replaces the fixed section rail on small screens. */
.site-my-dance-compact {
  display: none;
  min-width: 0;
}

.site-my-dance-compact__toggle {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 4px 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ed-color-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-color var(--ed-global-nav-transition),
    color var(--ed-global-nav-transition);
}

.site-my-dance-compact__toggle:hover,
.site-my-dance-compact__toggle:focus-visible,
.site-my-dance-compact__toggle[aria-expanded="true"] {
  outline: none;
  background: var(--ed-global-nav-hover);
}

.site-my-dance-compact__toggle:focus-visible {
  box-shadow: var(--ed-focus-ring);
}

.site-my-dance-compact__currentIcon {
  display: inline-flex;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: var(--ed-color-primary-strong);
}

.site-my-dance-compact__currentIcon svg,
.site-my-dance-compact__itemIcon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-my-dance-compact__currentText {
  display: grid;
  min-width: 0;
  margin-inline-start: 8px;
  line-height: 1;
}

.site-my-dance-compact__currentText small {
  color: var(--ed-color-muted);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-my-dance-compact__currentText strong {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ed-color-ink);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-my-dance-compact__chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-inline: auto 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: var(--ed-color-muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--ed-global-nav-transition);
}

.site-my-dance-compact__toggle[aria-expanded="true"] .site-my-dance-compact__chevron {
  transform: translateY(2px) rotate(225deg);
}

.site-my-dance-compact__menu {
  position: fixed;
  top: calc(var(--admin-bar-height) + var(--header-height) + 8px);
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  z-index: 1002;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--ed-color-line);
  border-radius: 14px;
  background: var(--ed-color-surface-strong);
  background: var(--ed-global-nav-panel);
  box-shadow: 0 18px 52px rgba(var(--ed-color-shadow-rgb), 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top center;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

.site-my-dance-compact__menu[hidden] {
  display: none !important;
}

.site-my-dance-compact__menu.is-compact-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.site-my-dance-compact__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  min-height: 66px;
  padding: 7px 2px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ed-color-muted);
  font-family: var(--ed-font-sans);
  font-size: clamp(0.62rem, 2.8vw, 0.72rem);
  font-weight: 750;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--ed-global-nav-transition),
    color var(--ed-global-nav-transition);
}

.site-my-dance-compact__item:hover,
.site-my-dance-compact__item:focus-visible {
  outline: none;
  background: var(--ed-global-nav-hover);
  color: var(--ed-color-primary-strong);
}

.site-my-dance-compact__item:focus-visible {
  box-shadow: inset var(--ed-focus-ring);
}

.site-my-dance-compact__item.is-active {
  background: var(--ed-global-nav-active);
  color: var(--ed-color-primary-strong);
}

.site-my-dance-compact__itemIcon {
  display: inline-flex;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.site-my-dance-compact__itemLabel {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-my-dance-compact__badge.site-navigation-badge {
  top: 5px;
  right: 6px;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-color: var(--ed-color-surface-strong);
  font-size: 0.54rem;
}

/* Fixed, single-level My Dance context strip beneath the global header. */
.site-my-dance-subnav {
  position: fixed;
  top: calc(var(--admin-bar-height) + var(--header-height));
  left: 0;
  right: 0;
  z-index: 996;
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  border-bottom: 1px solid var(--ed-color-line);
  background: var(--ed-color-header-bg);
  background: var(--ed-global-nav-glass);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-my-dance-subnav__inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(2px, 0.6vw, 10px);
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--page-side-padding);
}

.site-my-dance-subnav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 96px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ed-color-muted);
  font-family: var(--ed-font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition:
    color var(--ed-global-nav-transition),
    background-color var(--ed-global-nav-transition),
    opacity var(--ed-global-nav-transition);
}

.site-my-dance-subnav__item::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--ed-color-primary);
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity var(--ed-global-nav-transition),
    transform var(--ed-global-nav-transition);
}

.site-my-dance-subnav__item:hover,
.site-my-dance-subnav__item:focus-visible {
  outline: none;
  background: var(--ed-global-nav-hover);
  color: var(--ed-color-primary-strong);
}

.site-my-dance-subnav__item:focus-visible {
  box-shadow: inset var(--ed-focus-ring);
}

.site-my-dance-subnav__item.is-active {
  background: transparent;
  color: var(--ed-color-primary-strong);
}

.site-my-dance-subnav__item.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

.site-my-dance-subnav__item > span:first-child,
.site-my-dance-subnav__icon {
  position: relative;
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.site-my-dance-subnav__item svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-my-dance-subnav .site-navigation-badge {
  top: -8px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-color: var(--ed-color-surface-strong);
  font-size: 0.55rem;
}

/* The rail and main are siblings, so this does not require a body class. */
.site-my-dance-subnav ~ .site-main {
  padding-top: calc(var(--admin-bar-height) + var(--header-height) + 56px) !important;
}

/* Website bottom navigation: one flat four-item bar. */
.site-app-bottom-nav {
  display: none;
}

html.ed-app-shell .site-app-bottom-nav,
html.ed-native-app-shell .site-app-bottom-nav,
html[data-ed-app-shell="ios"] .site-app-bottom-nav,
html[data-ed-app-shell="android"] .site-app-bottom-nav {
  display: none !important;
}

html.ed-app-shell .site-my-dance-subnav,
html.ed-native-app-shell .site-my-dance-subnav,
html[data-ed-app-shell="ios"] .site-my-dance-subnav,
html[data-ed-app-shell="android"] .site-my-dance-subnav {
  display: none !important;
}

html.ed-app-shell .site-my-dance-subnav ~ .site-main,
html.ed-native-app-shell .site-my-dance-subnav ~ .site-main,
html[data-ed-app-shell="ios"] .site-my-dance-subnav ~ .site-main,
html[data-ed-app-shell="android"] .site-my-dance-subnav ~ .site-main {
  padding-top: var(--ed-app-shell-native-top, 0px) !important;
}

@media (min-width: 1024px) {
  .site-header__toggle {
    display: inline-flex !important;
  }

  .site-account__panel {
    top: calc(100% + 8px);
    width: 360px;
    padding: 16px;
    border-radius: 10px;
  }

  .site-account__panel.is-choosing-identity {
    width: 360px;
  }

}

@media (min-width: 1024px) and (max-width: 1180px) {
  .site-header__branding {
    flex-basis: 180px;
  }

  .site-primary-nav__item {
    min-width: 88px;
    padding-inline: 9px;
    font-size: 0.77rem;
  }

  .site-account__label {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Tablet: compact brand, messages, notifications, avatar and More. */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header__branding {
    flex: 1 1 auto;
  }

  .site-header__logoImg,
  .site-header__logo img {
    max-width: min(160px, 28vw);
    max-height: 34px;
  }

  .site-primary-nav,
  .site-theme-toggle.site-theme-toggle--header {
    display: none !important;
  }

  .site-header .site-account .site-account__toggle {
    width: 40px !important;
    min-width: 40px !important;
    padding: 5px !important;
  }

  .site-account__label,
  .site-account__chevron,
  .site-account__toggleBadge {
    display: none !important;
  }

  .site-account__avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .site-header .site-account .site-account__panel,
  body .site-account__panel {
    position: fixed !important;
    top: calc(var(--admin-bar-height) + var(--header-height) + 8px) !important;
    left: auto !important;
    right: 16px !important;
    bottom: auto !important;
    width: min(360px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    max-height: calc(100dvh - var(--admin-bar-height) - var(--header-height) - 24px) !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid var(--ed-color-line) !important;
    border-radius: 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: translateY(7px) !important;
  }

  .site-header .site-account .site-account__panel.is-active,
  body .site-account__panel.is-active {
    transform: translateY(0) !important;
  }

  .site-header .site-account .site-account__panel.is-closing,
  body .site-account__panel.is-closing {
    transform: translateY(5px) !important;
  }

  .site-account__panelTop {
    display: none !important;
  }

  .site-account__panelHeader {
    padding: 0 0 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ed-color-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .site-header .site-header__toggle {
    display: inline-flex !important;
  }
}

/* Phone: brand, notifications and More only; four web destinations below. */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .site-header__inner {
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
    gap: 6px;
  }

  .site-header__branding {
    flex: 1 1 auto;
    overflow: hidden;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__inner {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 5px;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__branding {
    width: 42px;
    min-width: 42px;
    flex: 0 0 42px;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__logoImg,
  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__logo img {
    max-width: 42px;
    max-height: 36px;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-my-dance-compact {
    display: block;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__actions {
    flex: 0 0 auto;
  }

  .site-header__logoImg,
  .site-header__logo img {
    max-width: min(150px, 44vw);
    max-height: 36px;
  }

  .site-header__title {
    max-width: 44vw;
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-primary-nav,
  .site-header-utility--messages,
  .site-theme-toggle.site-theme-toggle--header,
  .site-account,
  .site-header__loginBtn {
    display: none !important;
  }

  .site-header .site-header__toggle {
    display: inline-flex !important;
  }

  body.menu-open .site-header__toggle[aria-expanded="true"] {
    opacity: 0 !important;
    transform: translateY(-2px) !important;
  }

  .site-header-utility--notifications {
    display: inline-grid;
  }

  .site-drawer {
    width: 100vw;
    max-width: 100%;
    border-left: 0;
  }

  .site-drawer__inner {
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
  }

  .site-more-menu__group--tablet {
    display: none;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-my-dance-subnav {
    display: none;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-my-dance-subnav ~ .site-main {
    padding-top: calc(var(--admin-bar-height) + var(--header-height)) !important;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-app-bottom-nav,
  html[data-ed-app-shell="web"]:not(.ed-app-shell):not(.ed-native-app-shell) .site-app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 997;
    display: block;
    width: 100%;
    padding: 4px max(8px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border: 0;
    border-top: 1px solid var(--ed-color-line);
    border-radius: 0;
    background: var(--ed-color-header-bg);
    background: var(--ed-global-nav-glass);
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .site-app-bottom-nav__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
  }

  .site-app-bottom-nav__item {
    min-width: 0;
    min-height: 58px;
    padding: 6px 2px;
    border-radius: 8px;
    background: transparent;
    color: var(--ed-color-muted);
    font-size: clamp(0.58rem, 2.7vw, 0.68rem);
    font-weight: 700;
    transition:
      color var(--ed-global-nav-transition),
      background-color var(--ed-global-nav-transition),
      opacity var(--ed-global-nav-transition),
      transform var(--ed-global-nav-transition);
  }

  .site-app-bottom-nav__item:hover,
  .site-app-bottom-nav__item:focus-visible,
  .site-app-bottom-nav__item.is-active {
    outline: none;
    background: transparent;
    color: var(--ed-color-primary-strong);
  }

  .site-app-bottom-nav__item:focus-visible {
    box-shadow: inset var(--ed-focus-ring);
  }

  .site-app-bottom-nav__item:active,
  .site-app-bottom-nav__item.is-active .site-app-bottom-nav__icon {
    transform: none;
  }

  .site-app-bottom-nav__icon {
    width: 23px;
    height: 23px;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) body.logged-in .site-main,
  html[data-ed-app-shell="web"]:not(.ed-app-shell):not(.ed-native-app-shell) body.logged-in .site-main {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

}

@media (max-width: 374px) {
  .site-header__inner {
    padding-inline: 9px;
  }

  .site-header__logoImg,
  .site-header__logo img {
    max-width: 116px;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__inner {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 3px;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__branding {
    width: 36px;
    min-width: 36px;
    flex-basis: 36px;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__logoImg,
  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__logo img {
    max-width: 36px;
    max-height: 34px;
  }

  .site-my-dance-compact__toggle {
    padding-inline: 4px;
  }

  .site-my-dance-compact__currentText {
    margin-inline-start: 5px;
  }

  .site-my-dance-compact__menu {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    gap: 1px;
    padding: 5px;
  }

  .site-my-dance-compact__item {
    font-size: 0.59rem;
  }

  .site-header-utility,
  .site-header .site-header__toggle {
    width: 38px !important;
    min-width: 38px !important;
    flex-basis: 38px !important;
  }

  .site-more-menu__auth {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-my-dance-compact__menu,
  .site-my-dance-compact__chevron {
    transition: none;
  }
}

/*
 * Navigation contract (September 2026)
 *
 * - All website widths share What's On, My Dance, Learn and Profile below.
 * - Messages, notifications, profile and More stay in the top bar. Guests
 *   always retain a visible Sign in action. Native tabs remain independent.
 * - My Dance may add its compact section picker, but it does not replace the
 *   global four-destination dock.
 * - Open conversations are the explicit focused-layout exception.
 */
@media all {
  .site-primary-nav,
  .site-theme-toggle.site-theme-toggle--header {
    display: none !important;
  }

  .site-header .site-header-utility--messages { display: inline-grid !important; }
  .site-header .site-account { display: block !important; flex: 0 0 auto; }
  .site-header .site-account__toggle { width: 44px; min-width: 44px; height: 44px; padding: 4px; justify-content: center; }
  .site-header .site-account__label,
  .site-header .site-account__chevron { display: none !important; }
  .site-header__actions { justify-content: flex-end; }
  .site-more-menu__group--tablet { display: none; }
  .site-app-bottom-nav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; line-height: 1; text-align: center; text-decoration: none;
  }
  .site-app-bottom-nav__icon { position: relative; display: inline-flex; flex: 0 0 23px; }
  .site-app-bottom-nav__icon svg { display: block; width: 23px; height: 23px; }

  .site-header .site-header__toggle {
    display: inline-flex !important;
  }

  .site-header--guest .site-header__loginBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 9px;
    white-space: nowrap;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) body .site-app-bottom-nav,
  html[data-ed-app-shell="web"]:not(.ed-app-shell):not(.ed-native-app-shell) body .site-app-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 997;
    display: block !important;
    width: 100%;
    padding: 4px max(8px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border: 0;
    border-top: 1px solid var(--ed-color-line);
    border-radius: 0;
    background: var(--ed-global-nav-glass);
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .site-app-bottom-nav__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .site-app-bottom-nav__item {
    min-width: 0;
    min-height: 58px;
    padding: 6px 2px;
    border-radius: 8px;
    background: transparent;
    color: var(--ed-color-muted);
    font-size: clamp(0.62rem, 1.8vw, 0.72rem);
    font-weight: 700;
  }

  .site-app-bottom-nav__item:hover,
  .site-app-bottom-nav__item:focus-visible,
  .site-app-bottom-nav__item.is-active {
    outline: none;
    background: transparent;
    color: var(--ed-color-primary-strong);
  }

  .site-app-bottom-nav__item:focus-visible {
    box-shadow: inset var(--ed-focus-ring);
  }

  .site-app-bottom-nav__icon {
    width: 23px;
    height: 23px;
  }

  .site-app-bottom-nav__soon { font-size: 9px; line-height: 1; font-weight: 500; }
  .site-app-bottom-nav__item[aria-disabled="true"] { cursor: default; color: var(--ed-color-muted); }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) body .site-main,
  html[data-ed-app-shell="web"]:not(.ed-app-shell):not(.ed-native-app-shell) body .site-main {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) body {
    --ed-focused-web-dock: calc(74px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__inner {
    display: grid;
    grid-template-columns: minmax(128px, 1fr) minmax(220px, 360px) auto;
    gap: 8px;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-my-dance-compact {
    display: block;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-my-dance-subnav {
    display: none;
  }

  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-my-dance-subnav ~ .site-main {
    padding-top: calc(var(--admin-bar-height) + var(--header-height)) !important;
  }
}

@media (min-width: 1024px) {
  .site-my-dance-compact {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .site-header .site-header__actions { flex: 0 0 auto; gap: 2px; }
  .site-header .site-header-utility,
  .site-header .site-header__toggle { width: 44px; min-width: 44px; height: 44px; }
  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__inner {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 4px;
  }
  html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) .site-header--my-dance .site-header__branding { width: 36px; min-width: 36px; }
  .site-my-dance-compact { min-width: 0; }
}

/* Messages keeps the header/Close control, but never the bottom dock. */
html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) body.ed-member-messages-page .site-app-bottom-nav { display: none !important; }
html:not(.ed-app-shell):not(.ed-native-app-shell):not([data-ed-app-shell="ios"]):not([data-ed-app-shell="android"]) body.ed-member-messages-page .site-main { padding-top: calc(var(--admin-bar-height, 0px) + var(--header-height, 64px)) !important; padding-bottom: 0 !important; }

/*
 * Theme-specific legacy rules in header.css use !important. Keep these final
 * resets token-driven so light and dark retain the same flat hierarchy.
 */
html:not([data-ed-theme="dark"]) .site-header,
html[data-ed-theme="dark"] .site-header {
  background: var(--ed-global-nav-glass) !important;
  background-image: none !important;
  border-bottom-color: var(--ed-color-line) !important;
  color: var(--ed-color-ink) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

html:not([data-ed-theme="dark"]) .site-header .site-account .site-account__toggle,
html:not([data-ed-theme="dark"]) .site-header .site-header__toggle,
html:not([data-ed-theme="dark"]) .site-header .site-theme-toggle--header,
html[data-ed-theme="dark"] .site-header .site-account .site-account__toggle,
html[data-ed-theme="dark"] .site-header .site-header__toggle,
html[data-ed-theme="dark"] .site-header .site-theme-toggle--header {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--ed-color-ink) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not([data-ed-theme="dark"]) .site-header .site-account .site-account__toggle:hover,
html:not([data-ed-theme="dark"]) .site-header .site-account .site-account__toggle:focus-visible,
html:not([data-ed-theme="dark"]) .site-header .site-header__toggle:hover,
html:not([data-ed-theme="dark"]) .site-header .site-header__toggle:focus-visible,
html:not([data-ed-theme="dark"]) .site-header .site-header__toggle[aria-expanded="true"],
html:not([data-ed-theme="dark"]) .site-header .site-theme-toggle--header:hover,
html:not([data-ed-theme="dark"]) .site-header .site-theme-toggle--header:focus-visible,
html[data-ed-theme="dark"] .site-header .site-account .site-account__toggle:hover,
html[data-ed-theme="dark"] .site-header .site-account .site-account__toggle:focus-visible,
html[data-ed-theme="dark"] .site-header .site-header__toggle:hover,
html[data-ed-theme="dark"] .site-header .site-header__toggle:focus-visible,
html[data-ed-theme="dark"] .site-header .site-header__toggle[aria-expanded="true"],
html[data-ed-theme="dark"] .site-header .site-theme-toggle--header:hover,
html[data-ed-theme="dark"] .site-header .site-theme-toggle--header:focus-visible {
  border-color: transparent !important;
  background: var(--ed-global-nav-hover) !important;
  color: var(--ed-color-primary-strong) !important;
  box-shadow: none !important;
}

html .site-theme-toggle.site-theme-toggle--drawer,
html .site-theme-toggle.site-theme-toggle--drawer:hover,
html .site-theme-toggle.site-theme-toggle--drawer:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--ed-color-ink) !important;
  box-shadow: none !important;
}

html .site-theme-toggle.site-theme-toggle--drawer:hover,
html .site-theme-toggle.site-theme-toggle--drawer:focus-visible {
  background: var(--ed-global-nav-hover) !important;
  color: var(--ed-color-primary-strong) !important;
}

.site-theme-toggle__icon,
html[data-ed-theme="light"] .site-theme-toggle__icon,
html[data-ed-theme="dark"] .site-theme-toggle__icon {
  transform: none;
  transition: opacity 180ms ease;
}

html:not([data-ed-theme="dark"]) .site-account__panel,
html:not([data-ed-theme="dark"]) .site-drawer,
html[data-ed-theme="dark"] .site-account__panel,
html[data-ed-theme="dark"] .site-drawer {
  background: var(--ed-global-nav-panel) !important;
  background-color: var(--ed-global-nav-panel) !important;
  background-image: none !important;
  border-color: var(--ed-color-line) !important;
  color: var(--ed-color-ink) !important;
  filter: none !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

html:not([data-ed-theme="dark"]) .site-account__panel {
  box-shadow: 0 14px 34px rgba(var(--ed-color-shadow-rgb), 0.12) !important;
}

html[data-ed-theme="dark"] .site-account__panel {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3) !important;
}

html:not([data-ed-theme="dark"]) .site-drawer,
html[data-ed-theme="dark"] .site-drawer {
  box-shadow: -12px 0 32px rgba(var(--ed-color-shadow-rgb), 0.1) !important;
}

html:not([data-ed-theme="dark"]) .site-account__panel::before,
html:not([data-ed-theme="dark"]) .site-drawer::before,
html[data-ed-theme="dark"] .site-account__panel::before,
html[data-ed-theme="dark"] .site-drawer::before {
  content: none !important;
}

html:not([data-ed-theme="dark"]) :where(
  .site-account__panelHeader,
  .site-account__panelTop,
  .site-account__panelClose,
  .site-account__settingsBtn,
  .site-account__item:not(.site-account__item--dashboard),
  .site-drawer__header
),
html[data-ed-theme="dark"] :where(
  .site-account__panelHeader,
  .site-account__panelTop,
  .site-account__panelClose,
  .site-account__settingsBtn,
  .site-account__item:not(.site-account__item--dashboard),
  .site-drawer__header
) {
  background: transparent !important;
  background-image: none !important;
  color: var(--ed-color-ink) !important;
  box-shadow: none !important;
}

html:not([data-ed-theme="dark"]) .site-account__panelHeader,
html[data-ed-theme="dark"] .site-account__panelHeader {
  border: 0 !important;
  border-bottom: 1px solid var(--ed-color-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not([data-ed-theme="dark"]) .site-account__item:not(.site-account__item--dashboard):hover,
html:not([data-ed-theme="dark"]) .site-account__item:not(.site-account__item--dashboard):focus-visible,
html[data-ed-theme="dark"] .site-account__item:not(.site-account__item--dashboard):hover,
html[data-ed-theme="dark"] .site-account__item:not(.site-account__item--dashboard):focus-visible {
  background: var(--ed-global-nav-hover) !important;
  color: var(--ed-color-primary-strong) !important;
}

html:not([data-ed-theme="dark"]) .site-account__profileBtn,
html[data-ed-theme="dark"] .site-account__profileBtn,
html:not([data-ed-theme="dark"]) .site-account__menu--dashboards .site-account__item--dashboard,
html[data-ed-theme="dark"] .site-account__menu--dashboards .site-account__item--dashboard {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--ed-color-ink) !important;
  box-shadow: none !important;
  filter: none !important;
}

html:not([data-ed-theme="dark"]) .site-account__profileBtn:hover,
html[data-ed-theme="dark"] .site-account__profileBtn:hover,
html:not([data-ed-theme="dark"]) .site-account__menu--dashboards .site-account__item--dashboard:hover,
html:not([data-ed-theme="dark"]) .site-account__menu--dashboards .site-account__item--dashboard:focus-visible,
html[data-ed-theme="dark"] .site-account__menu--dashboards .site-account__item--dashboard:hover,
html[data-ed-theme="dark"] .site-account__menu--dashboards .site-account__item--dashboard:focus-visible {
  border-color: transparent !important;
  background: var(--ed-global-nav-hover) !important;
  color: var(--ed-color-primary-strong) !important;
  box-shadow: none !important;
}

html:not([data-ed-theme="dark"]) .site-account__menu--dashboards .site-account__item--dashboard .site-account__itemLabel,
html[data-ed-theme="dark"] .site-account__menu--dashboards .site-account__item--dashboard .site-account__itemLabel {
  color: inherit !important;
}

html:not([data-ed-theme="dark"]) .site-account__menu--dashboards .site-account__item--dashboard .site-account__itemMeta,
html[data-ed-theme="dark"] .site-account__menu--dashboards .site-account__item--dashboard .site-account__itemMeta {
  color: var(--ed-color-muted) !important;
}

html:not([data-ed-theme="dark"]) :where(
  .site-account__identityBack,
  .site-account__identityOption,
  .site-account__createProfile
),
html[data-ed-theme="dark"] :where(
  .site-account__identityBack,
  .site-account__identityOption,
  .site-account__createProfile
) {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--ed-color-ink) !important;
  box-shadow: none !important;
}

html:not([data-ed-theme="dark"]) .site-account__identityOption.is-active,
html[data-ed-theme="dark"] .site-account__identityOption.is-active {
  border-color: transparent !important;
  background: var(--ed-global-nav-active) !important;
  color: var(--ed-color-primary-strong) !important;
}

html:not([data-ed-theme="dark"]) body.ed-nav-scrolled .site-header,
html[data-ed-theme="dark"] body.ed-nav-scrolled .site-header {
  background: color-mix(in srgb, var(--ed-color-surface-strong) 94%, transparent) !important;
  background-image: none !important;
  border-bottom-color: var(--ed-color-line-strong) !important;
  box-shadow: 0 6px 18px rgba(var(--ed-color-shadow-rgb), 0.07) !important;
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-account__panel,
  .site-account__panel *,
  .site-overlay,
  .site-drawer,
  .site-drawer *,
  .site-my-dance-subnav,
  .site-my-dance-subnav *,
  .site-app-bottom-nav,
  .site-app-bottom-nav * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
