/* ---------------------------------
   Header styling ONLY
--------------------------------- */

html {
  scrollbar-gutter: stable;
}

.site-header {
  position: fixed;
  top: var(--admin-bar-height);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--ed-color-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ed-color-line);
  box-shadow: var(--ed-shadow-soft);
}

.site-header__inner {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--page-side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__branding {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.site-header__logo img {
  max-height: 42px;
  width: auto;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.site-header__logoLink {
  display: inline-grid;
  align-items: center;
  line-height: 0;
}

.site-header__logoImg {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  max-width: min(220px, 42vw);
  max-height: 42px;
  object-fit: contain;
}

.site-header__logoImg--dark {
  display: none;
}

.site-header__logo--dark-only .site-header__logoImg--dark {
  display: block;
}

html[data-ed-theme="dark"] .site-header__logo--has-dark .site-header__logoImg--light {
  display: none;
}

html[data-ed-theme="dark"] .site-header__logo--has-dark .site-header__logoImg--dark {
  display: block;
}

.site-header__title {
  display: inline-flex;
  align-items: center;
  font-family: var(--ed-font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ed-color-primary-strong);
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.site-theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--ed-color-line);
  border-radius: 999px;
  background: var(--ed-color-surface-strong);
  color: var(--ed-color-ink);
  box-shadow: 0 8px 24px rgba(var(--ed-color-shadow-rgb), 0.1);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.site-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--ed-color-line-strong);
  box-shadow: 0 12px 28px rgba(var(--ed-color-shadow-rgb), 0.14);
}

.site-theme-toggle__icon {
  grid-area: 1 / 1;
  display: inline-flex;
  opacity: 0;
  transform: scale(0.72) rotate(-18deg);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

html[data-ed-theme="light"] .site-theme-toggle__icon--moon,
html:not([data-ed-theme]) .site-theme-toggle__icon--moon,
html[data-ed-theme="dark"] .site-theme-toggle__icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* ---------------------------------
   Login button
--------------------------------- */

.site-header__loginBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ed-color-primary);
  color: var(--ed-color-on-primary);
  font-family: var(--ed-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(var(--ed-color-primary-rgb), 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.site-header__loginBtn:hover {
  transform: translateY(-1px);
  background: var(--ed-color-primary-strong);
  box-shadow: 0 16px 32px rgba(var(--ed-color-primary-rgb), 0.28);
}

/* ---------------------------------
   Account menu
--------------------------------- */

.site-account {
  position: relative;
  flex: 0 0 auto;
}

.site-header .site-account .site-account__toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 9999px !important;
  background: var(--ed-color-surface-strong) !important;
  color: var(--ed-color-ink) !important;
  box-shadow: 0 8px 24px rgba(var(--ed-color-shadow-rgb), 0.1) !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.site-header .site-account .site-account__toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(var(--ed-color-shadow-rgb), 0.14) !important;
}

.site-account__profileLink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.site-account__profileLink:hover,
.site-account__profileLink:focus-visible {
  color: inherit;
  text-decoration: none;
}

.site-account__profileLink:focus-visible,
.site-account__menuToggle:focus-visible,
.site-account__panelIdentityLink:focus-visible {
  outline: 2px solid var(--ed-color-primary);
  outline-offset: 3px;
  border-radius: 999px;
}

.site-account__menuToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 30px;
  min-height: 38px;
  padding: 0 2px 0 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.site-account__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ed-color-primary), var(--ed-color-accent));
  color: var(--ed-color-on-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: 0 0 30px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.site-account__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.site-account__avatarInitials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.site-account__labelWrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.site-account__label {
  display: inline-flex;
  align-items: center;
  font-family: var(--ed-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}

.site-account__toggleBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ed-color-accent);
  color: var(--ed-color-ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(var(--ed-color-accent-rgb), 0.28);
}

.site-account__chevron {
  position: relative;
  width: 10px;
  height: 10px;
  display: block;
  flex: 0 0 10px;
}

.site-account__chevron::before,
.site-account__chevron::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--ed-color-ink);
  transition: transform 0.2s ease;
}

.site-account__chevron::before {
  left: 0;
  transform: rotate(45deg);
}

.site-account__chevron::after {
  right: 0;
  transform: rotate(-45deg);
}

.site-account__menuToggle[aria-expanded="true"] .site-account__chevron::before {
  transform: rotate(-45deg);
}

.site-account__menuToggle[aria-expanded="true"] .site-account__chevron::after {
  transform: rotate(45deg);
}

.site-account__panel {
  position: fixed;
  top: calc(var(--admin-bar-height) + var(--header-height));
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: none;
  overflow-y: auto;
  border-radius: 0;
  background: var(--ed-color-panel-bg);
  border: 0;
  border-top: 1px solid var(--ed-color-line);
  box-shadow: var(--ed-shadow-elevated);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 18px var(--page-side-padding) calc(28px + env(safe-area-inset-bottom));
  z-index: 999;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.985);
  transform-origin: top center;
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.24s ease;
  filter: saturate(0.96);
  will-change: opacity, transform;
}

.site-account__panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}

.site-account__panel.is-closing {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.99);
  filter: saturate(0.96);
}

.site-account__panel > * {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.26s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.site-account__panel.is-active > *:nth-child(2) {
  transition-delay: 0.03s;
}

.site-account__panel.is-active > *:nth-child(3) {
  transition-delay: 0.06s;
}

.site-account__panel.is-active > *:nth-child(4) {
  transition-delay: 0.09s;
}

.site-account__panel.is-active > *:nth-child(5) {
  transition-delay: 0.12s;
}

.site-account__panelTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.site-account__panelTitle {
  color: var(--ed-color-primary-strong);
  font-family: var(--ed-font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-account__panelClose {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--ed-color-surface-strong);
  box-shadow: 0 8px 24px rgba(var(--ed-color-shadow-rgb), 0.1);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.site-account__panelClose::before,
.site-account__panelClose::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ed-color-ink);
}

.site-account__panelClose::before {
  transform: rotate(45deg);
}

.site-account__panelClose::after {
  transform: rotate(-45deg);
}

.site-account__panelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--ed-color-surface-strong);
  border: 1px solid var(--ed-color-line);
}

.site-account__panelIdentityLink {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.site-account__panelIdentityLink:hover,
.site-account__panelIdentityLink:focus-visible {
  color: inherit;
  text-decoration: none;
}

.site-account__identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.site-account__panelName {
  font-family: var(--ed-font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ed-color-ink);
}

.site-account__panelEmail {
  font-family: var(--ed-font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ed-color-muted);
  word-break: break-word;
}

.site-account__settingsBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--ed-color-line);
  border-radius: 999px;
  background: var(--ed-color-primary-soft);
  color: var(--ed-color-primary-strong);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(var(--ed-color-shadow-rgb), 0.08);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.site-account__settingsBtn:hover,
.site-account__settingsBtn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: var(--ed-color-line-strong);
  background: rgba(var(--ed-color-primary-rgb), 0.14);
  box-shadow: 0 12px 26px rgba(var(--ed-color-shadow-rgb), 0.12);
}

.site-account__divider {
  height: 1px;
  margin: 14px 0;
  background: var(--ed-color-line);
}

.site-account__menu,
.site-account__footer {
  display: grid;
  gap: 6px;
}

.site-account__sectionLabel {
  margin: 0 0 8px;
  padding: 0 4px;
  font-family: var(--ed-font-sans);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-color-muted);
}

/* ---------------------------------
   Standard account links
--------------------------------- */

.site-account__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  color: var(--ed-color-ink);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-account__item:hover {
  background: var(--ed-color-primary-soft);
  transform: translateX(1px);
}

.site-account__item:focus-visible {
  outline: none;
  background: var(--ed-color-primary-soft);
  box-shadow: var(--ed-focus-ring);
}

.site-account__itemLabel {
  display: inline-flex;
  align-items: center;
  font-family: var(--ed-font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
}

.site-account__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--ed-color-teal);
  color: var(--ed-color-white);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.site-account__item--logout {
  justify-content: flex-start;
}

.site-account__item--logout:hover,
.site-account__item--logout:focus-visible {
  background: rgba(var(--ed-color-accent-rgb), 0.1);
  color: var(--ed-color-accent-strong);
}

.site-account__logoutIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-color-muted);
}

/* ---------------------------------
   Premium My Business CTA
--------------------------------- */

.site-account__menu--dashboards {
  gap: 8px;
}

.site-account__menu--dashboards .site-account__item--dashboard {
  position: relative;
  isolation: isolate;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  min-height: 62px;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  overflow: hidden;
  color: var(--ed-color-on-primary);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, var(--ed-color-primary-strong) 0%, var(--ed-color-primary) 48%, var(--ed-color-accent) 100%);
  border: 1px solid rgba(var(--ed-color-primary-rgb), 0.34);
  box-shadow:
    0 14px 32px rgba(var(--ed-color-primary-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-decoration: none;
  transform: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    filter 0.2s ease;
}

.site-account__menu--dashboards .site-account__item--dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0) 44%
    );
  opacity: 0.85;
  pointer-events: none;
}

.site-account__menu--dashboards .site-account__item--dashboard::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  background: rgba(255, 255, 255, 0.18);
  color: var(--ed-color-white);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-account__menu--dashboards .site-account__item--dashboard:hover {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(135deg, var(--ed-color-primary-strong) 0%, var(--ed-color-primary) 42%, var(--ed-color-accent-strong) 100%);
  border-color: rgba(var(--ed-color-primary-rgb), 0.46);
  box-shadow:
    0 18px 38px rgba(var(--ed-color-primary-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
  filter: saturate(1.03);
}

.site-account__menu--dashboards .site-account__item--dashboard:hover::after {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.24);
}

.site-account__menu--dashboards .site-account__item--dashboard .site-account__itemLabel {
  display: block;
  grid-column: 1;
  font-family: var(--ed-font-sans);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ed-color-white);
  letter-spacing: 0;
}

.site-account__itemMeta {
  display: block;
  grid-column: 1;
  font-family: var(--ed-font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  max-width: 230px;
}

.site-account__menu--dashboards .site-account__professional-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  padding: 14px;
  cursor: default;
}

.site-account__menu--dashboards .site-account__professional-card::after {
  content: none !important;
}

.site-account__menu--dashboards .site-account__professional-card:hover {
  transform: none;
  filter: none;
}

.site-account__menu--dashboards .site-account__professional-card .site-account__itemMeta {
  max-width: none;
}

.site-account__professional-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.site-account__professional-action {
  flex: 0 1 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ed-premium-action);
  font-family: var(--ed-font-sans);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-account__professional-action:hover,
.site-account__professional-action:focus-visible {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.56);
  color: var(--ed-premium-action-hover);
  transform: translateY(-1px);
}

.site-account__professional-action--primary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.site-account__professional-action--primary:hover,
.site-account__professional-action--primary:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

/* ---------------------------------
   Member profile button
--------------------------------- */

.site-account__profileBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  border-radius: 14px;
  background: var(--ed-color-teal-soft);
  color: var(--ed-color-teal);
  font-family: var(--ed-font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-account__profileBtn:hover {
  background: rgba(var(--ed-color-teal-rgb), 0.16);
  transform: translateY(-1px);
}

/* ---------------------------------
   Hamburger / close toggle
--------------------------------- */

.site-header .site-header__toggle {
  position: relative;
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  padding: 0;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-color-surface-strong) !important;
  box-shadow: 0 8px 24px rgba(var(--ed-color-shadow-rgb), 0.1) !important;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.site-header__toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(var(--ed-color-shadow-rgb), 0.14);
}

.site-header__toggle[aria-expanded="true"] {
  background: var(--ed-color-ink) !important;
  box-shadow: 0 14px 32px rgba(var(--ed-color-shadow-rgb), 0.22) !important;
}

.site-header__toggle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.site-header__toggle-line {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ed-color-ink);
  transform-origin: center;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease,
    top 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.22s ease;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-line {
  background: var(--ed-color-surface-strong);
}

.site-header__toggle-line--top {
  top: 0;
}

.site-header__toggle-line--middle {
  top: 6px;
}

.site-header__toggle-line--bottom {
  top: 12px;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-line--top {
  top: 6px;
  transform: rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-line--middle {
  opacity: 0;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-line--bottom {
  top: 6px;
  transform: rotate(-45deg);
}

/* ---------------------------------
   Desktop menu
--------------------------------- */

.site-header__nav--desktop {
  display: none;
}

.site-header__nav--desktop .menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.site-header__nav--desktop .menu > li {
  position: relative;
  list-style: none;
}

.site-header__nav--desktop .menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--ed-font-sans);
  font-weight: 500;
  color: var(--ed-color-ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header__nav--desktop .menu > li > a:hover,
.site-header__nav--desktop .menu > li:hover > a,
.site-header__nav--desktop .menu > li:focus-within > a {
  background: var(--ed-color-primary-soft);
}

.site-header__nav--desktop .menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border-radius: 18px;
  background: var(--ed-color-panel-bg);
  border: 1px solid var(--ed-color-line);
  box-shadow: 0 20px 50px rgba(var(--ed-color-shadow-rgb), 0.13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.site-header__nav--desktop .menu .sub-menu li {
  position: relative;
  list-style: none;
}

.site-header__nav--desktop .menu .sub-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-family: var(--ed-font-sans);
  font-weight: 500;
  color: var(--ed-color-ink);
  white-space: nowrap;
  transition: background 0.2s ease;
}

.site-header__nav--desktop .menu .sub-menu a:hover,
.site-header__nav--desktop .menu .sub-menu li:hover > a,
.site-header__nav--desktop .menu .sub-menu li:focus-within > a {
  background: var(--ed-color-primary-soft);
}

.site-header__nav--desktop .menu > li:hover > .sub-menu,
.site-header__nav--desktop .menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header__nav--desktop .menu .sub-menu li:hover > .sub-menu,
.site-header__nav--desktop .menu .sub-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header__nav--desktop .menu .sub-menu .sub-menu {
  top: 0;
  left: calc(100% + 10px);
}

/* ---------------------------------
   Overlay
--------------------------------- */

.site-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--ed-color-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ---------------------------------
   Mobile drawer
--------------------------------- */

.site-drawer {
  position: fixed;
  top: calc(var(--admin-bar-height) + var(--header-height));
  left: 0;
  right: 0;
  z-index: 999;
  width: 100vw;
  height: calc(100dvh - (var(--admin-bar-height) + var(--header-height)));
  background: var(--ed-color-drawer-bg);
  border-top: 1px solid var(--ed-color-line);
  box-shadow: 0 24px 64px rgba(var(--ed-color-shadow-rgb), 0.16);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transform-origin: top center;
  visibility: hidden;
  transition:
    opacity 0.24s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.34s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  will-change: opacity, transform;
}

.site-drawer.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.site-drawer__inner {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: 26px var(--page-side-padding) calc(36px + env(safe-area-inset-bottom));
}

.site-drawer__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ed-color-line);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.26s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.site-drawer__kicker {
  color: var(--ed-color-muted);
  font-family: var(--ed-font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-drawer__title {
  grid-column: 1;
  color: var(--ed-color-primary-strong);
  font-family: var(--ed-font-sans);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-drawer .menu,
.site-drawer .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-drawer .menu > li {
  border-bottom: 1px solid var(--ed-color-line);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-drawer li {
  position: relative;
}

.site-drawer li > a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 58px 0 14px;
  border-radius: 16px;
  color: var(--ed-color-ink);
  font-family: var(--ed-font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.site-drawer li > a:hover,
.site-drawer li > a:focus-visible {
  background: var(--ed-color-primary-soft);
  color: var(--ed-color-primary-strong);
  transform: translateX(2px);
}

.site-drawer .sub-menu {
  display: none;
  padding: 0 0 10px 16px;
  padding-bottom: 8px;
}

.site-drawer li.is-open > .sub-menu {
  display: block;
}

.site-drawer .sub-menu li > a {
  min-height: 48px;
  font-size: 0.98rem;
  font-weight: 650;
}

.site-drawer .submenu-toggle {
  position: absolute;
  top: 10px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--ed-color-surface-strong);
  box-shadow: 0 8px 20px rgba(var(--ed-color-shadow-rgb), 0.08);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.site-drawer .submenu-toggle::before,
.site-drawer .submenu-toggle::after {
  content: "";
  position: absolute;
  top: 21px;
  width: 8px;
  height: 2px;
  background: var(--ed-color-ink);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.site-drawer .submenu-toggle::before {
  left: 15px;
  transform: rotate(45deg);
}

.site-drawer .submenu-toggle::after {
  right: 15px;
  transform: rotate(-45deg);
}

.site-drawer .submenu-toggle[aria-expanded="true"]::before {
  transform: rotate(-45deg);
}

.site-drawer .submenu-toggle[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

body.menu-open {
  overflow: hidden;
  padding-right: var(--site-scrollbar-compensation, 0px);
}

.site-drawer.is-active .menu > li:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.04s;
}

.site-drawer.is-active .menu > li:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.site-drawer.is-active .menu > li:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.site-drawer.is-active .menu > li:nth-child(n+4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

body.account-open {
  overflow: hidden;
  padding-right: var(--site-scrollbar-compensation, 0px);
}

body.site-scroll-lock .site-header {
  padding-right: var(--site-scrollbar-compensation, 0px);
}

/* ---------------------------------
   Desktop breakpoint only
--------------------------------- */

@media (min-width: 1024px) {
  .site-account__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: auto;
    right: 0;
    bottom: auto;
    width: 340px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - var(--admin-bar-height) - var(--header-height) - 24px);
    border: 1px solid var(--ed-color-line);
    border-radius: 22px;
    padding: 16px;
    z-index: 1100;
  }

  .site-account__panelTop {
    display: none;
  }

  .site-account__panelHeader {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .site-header__toggle {
    display: none;
  }

  .site-header__nav--desktop {
    display: block;
    flex: 0 0 auto;
  }

  .site-drawer,
  .site-overlay {
    display: none !important;
  }
}

/* ---------------------------------
   Mobile account overlay hard override
--------------------------------- */

@media (max-width: 1023px) {
  .site-header .site-account .site-account__panel,
  body .site-account__panel {
    position: fixed !important;
    top: var(--admin-bar-height) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    min-width: 0 !important;
    max-height: none !important;
    height: calc(100dvh - var(--admin-bar-height)) !important;
    margin: 0 !important;
    padding: 18px var(--page-side-padding) calc(28px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid var(--ed-color-line) !important;
    border-radius: 0 !important;
    transform: translateY(16px) scale(0.985) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 99998 !important;
  }

  .site-header .site-account .site-account__panel.is-active,
  body .site-account__panel.is-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  .site-header .site-account .site-account__panel.is-closing,
  body .site-account__panel.is-closing {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(12px) scale(0.99) !important;
  }

  body.admin-bar .site-account__panel {
    top: var(--admin-bar-height) !important;
    height: calc(100dvh - var(--admin-bar-height)) !important;
  }

  body:not(.admin-bar) .site-account__panel {
    top: 0 !important;
    height: 100dvh !important;
  }

  .site-account__panelTop {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 2px;
  }

  .site-account__panelHeader {
    padding: 18px !important;
    border: 1px solid var(--ed-color-line) !important;
    border-radius: 18px !important;
    background: var(--ed-color-surface-strong) !important;
  }

  .site-account__panelClose {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 1px solid var(--ed-color-line) !important;
    border-radius: 999px !important;
    background: var(--ed-color-surface-strong) !important;
    box-shadow: 0 8px 24px rgba(var(--ed-color-shadow-rgb), 0.1) !important;
    line-height: 1 !important;
  }

  body.account-open,
  body.account-open.menu-open {
    overflow: hidden !important;
    padding-right: var(--site-scrollbar-compensation, 0px) !important;
    touch-action: none;
  }

  body.account-open .site-overlay {
    display: none !important;
  }

  .site-drawer .submenu-toggle,
  .site-drawer .submenu-toggle:hover,
  .site-drawer .submenu-toggle:focus,
  .site-drawer .submenu-toggle:focus-visible,
  .site-drawer .submenu-toggle:active,
  .site-drawer .submenu-toggle[aria-expanded="true"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--ed-color-surface-strong) !important;
    box-shadow: 0 8px 20px rgba(var(--ed-color-shadow-rgb), 0.08) !important;
    line-height: 1 !important;
    overflow: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  .site-drawer .submenu-toggle:hover,
  .site-drawer .submenu-toggle:focus-visible,
  .site-drawer .submenu-toggle[aria-expanded="true"] {
    background: var(--ed-color-primary-soft) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-account__panel,
  .site-account__panel > *,
  .site-drawer,
  .site-drawer__header,
  .site-drawer .menu > li {
    transition: none !important;
    transform: none !important;
  }
}

/* Dark mode depth for navigation drawers and account sheets */

html[data-ed-theme="dark"] :where(.site-account__panel, .site-drawer) {
  border-color: var(--ed-border-strong) !important;
  background:
    radial-gradient(circle at top left, rgb(var(--ed-primary-dark-rgb) / 0.12), transparent 32%),
    radial-gradient(circle at top right, rgb(var(--ed-secondary-dark-rgb) / 0.10), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    var(--ed-sheet) !important;
  color: var(--ed-text) !important;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 36px rgb(var(--ed-primary-dark-rgb) / 0.10) !important;
}

html[data-ed-theme="dark"] .site-account__panel {
  border-top: 1px solid var(--ed-border-strong) !important;
  box-shadow:
    0 -22px 70px rgba(0, 0, 0, 0.55),
    0 -1px 0 rgba(255, 255, 255, 0.06),
    0 0 42px rgb(var(--ed-primary-dark-rgb) / 0.12) !important;
}

html[data-ed-theme="dark"] :where(.site-account__panelTop, .site-drawer__header) {
  border-color: var(--ed-border) !important;
  background: var(--ed-sheet-raised) !important;
}

html[data-ed-theme="dark"] :where(.site-account__panelTitle, .site-drawer__title, .site-drawer li > a) {
  color: var(--ed-text) !important;
}

html[data-ed-theme="dark"] :where(.site-account__panelEmail, .site-drawer__kicker, .site-drawer .sub-menu li > a) {
  color: var(--ed-muted) !important;
}

html[data-ed-theme="dark"] :where(.site-account__panelClose, .site-account__settingsBtn, .site-drawer .submenu-toggle) {
  border-color: var(--ed-border-strong) !important;
  background: rgb(var(--ed-primary-dark-rgb) / 0.08) !important;
  color: var(--ed-primary-live) !important;
}

html[data-ed-theme="dark"] .site-account__panelHeader {
  border: 1px solid var(--ed-border) !important;
  background: var(--ed-surface-dark) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26) !important;
}

html[data-ed-theme="dark"] .site-account__profileBtn {
  border-color: rgb(var(--ed-accent-dark-rgb) / 0.40) !important;
  background: rgb(var(--ed-accent-dark-rgb) / 0.14) !important;
  color: var(--ed-accent-live) !important;
  box-shadow: none !important;
}

html[data-ed-theme="dark"] .site-account__menu--dashboards .site-account__item--dashboard {
  border-color: transparent !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 48%),
    linear-gradient(135deg, var(--ed-primary-live) 0%, var(--ed-secondary-live) 100%) !important;
  color: #FFFFFF !important;
  box-shadow:
    0 16px 36px rgb(var(--ed-primary-dark-rgb) / 0.22),
    0 0 24px rgb(var(--ed-secondary-dark-rgb) / 0.14) !important;
}

html[data-ed-theme="dark"] :where(.site-account__item, .site-account__divider) {
  border-color: var(--ed-border) !important;
}

html[data-ed-theme="dark"] .site-account__badge {
  background: var(--ed-accent-live) !important;
  color: var(--ed-bg-dark-deep) !important;
}

html[data-ed-theme="dark"] .site-account__item--logout {
  border-color: rgb(var(--ed-primary-dark-rgb) / 0.24) !important;
  background: rgb(var(--ed-primary-dark-rgb) / 0.10) !important;
  color: var(--ed-text) !important;
}

html[data-ed-theme="dark"] .site-account__panel {
  background: #232739 !important;
  background-color: #232739 !important;
  background-image: none !important;
  border-color: var(--ed-border-strong) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-ed-theme="dark"] .site-drawer {
  background: #202538 !important;
  background-color: #202538 !important;
  background-image: none !important;
  border-color: var(--ed-border-strong) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-ed-theme="dark"] :where(
  .site-account__panelHeader,
  .site-account__panelTop,
  .site-account__panelClose,
  .site-account__settingsBtn,
  .site-drawer__header,
  .site-drawer .submenu-toggle
) {
  background: #2b3046 !important;
}

html[data-ed-theme="dark"] .site-account__profileBtn {
  background: rgb(var(--ed-accent-dark-rgb) / 0.2) !important;
}

html[data-ed-theme="dark"] .site-account__item:not(.site-account__item--dashboard) {
  background: #2b3046 !important;
}

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,
html[data-ed-theme="dark"] .site-drawer li > a:hover,
html[data-ed-theme="dark"] .site-drawer li > a:focus-visible {
  background: rgb(var(--ed-primary-dark-rgb) / 0.16) !important;
}

/* Light mode should feel clean and solid, not glassy over page content. */
html[data-ed-theme="light"] .site-header {
  background: #ffffff !important;
  background-image: none !important;
  border-bottom-color: rgba(21, 21, 21, 0.1) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-ed-theme="light"] .site-header .site-account .site-account__toggle,
html[data-ed-theme="light"] .site-header .site-header__toggle,
html[data-ed-theme="light"] .site-theme-toggle {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(21, 21, 21, 0.1) !important;
  color: var(--ed-color-ink) !important;
  box-shadow: 0 10px 28px rgba(21, 21, 21, 0.12) !important;
  opacity: 1 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-ed-theme="light"] .site-header__toggle[aria-expanded="true"] {
  background: var(--ed-color-ink) !important;
  color: #ffffff !important;
}

html[data-ed-theme="light"] .site-account__panel {
  isolation: isolate !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: rgba(21, 21, 21, 0.11) !important;
  color: var(--ed-color-ink) !important;
  box-shadow: 0 24px 64px rgba(21, 21, 21, 0.16) !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-ed-theme="light"] .site-drawer {
  isolation: isolate !important;
  z-index: 1002 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: rgba(21, 21, 21, 0.11) !important;
  color: var(--ed-color-ink) !important;
  box-shadow: 0 24px 64px rgba(21, 21, 21, 0.16) !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-ed-theme="light"] .site-overlay {
  z-index: 997 !important;
  background: rgba(21, 21, 21, 0.24) !important;
}

html[data-ed-theme="light"] .site-account__panel.is-active,
html[data-ed-theme="light"] .site-drawer.is-active {
  opacity: 1 !important;
  filter: none !important;
}

html[data-ed-theme="light"] .site-account__panel::before,
html[data-ed-theme="light"] .site-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #ffffff;
  pointer-events: none;
}

html[data-ed-theme="light"] :where(
  .site-account__panelHeader,
  .site-account__panelTop,
  .site-account__panelClose,
  .site-account__settingsBtn,
  .site-account__item:not(.site-account__item--dashboard),
  .site-drawer__header,
  .site-drawer li > a,
  .site-drawer .submenu-toggle
) {
  background: #ffffff !important;
}

html[data-ed-theme="light"] :where(.site-account__item, .site-drawer li > a):hover,
html[data-ed-theme="light"] :where(.site-account__item, .site-drawer li > a):focus-visible {
  background: rgba(var(--ed-color-primary-rgb), 0.1) !important;
}

/* Keep the theme switch round across every plugin/template button system. */
.site-header .site-theme-toggle,
button.site-theme-toggle {
  display: inline-grid !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
  line-height: 1 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.site-header .site-theme-toggle::before,
.site-header .site-theme-toggle::after {
  border-radius: inherit !important;
}

/* Premium neutral navigation and account actions. */
:root {
  --ed-premium-action: #24204a;
  --ed-premium-action-hover: #11152b;
  --ed-premium-action-rgb: 36, 32, 74;
  --ed-premium-midnight: #11152b;
  --ed-premium-midnight-rgb: 17, 21, 43;
}

html[data-ed-theme="dark"] {
  --ed-premium-action: #7c3aed;
  --ed-premium-action-hover: #6d28d9;
  --ed-premium-action-rgb: 124, 58, 237;
}

html:not([data-ed-theme="dark"]) .site-header,
html[data-ed-theme="light"] .site-header {
  background: #ffffff !important;
  background-image: none !important;
  border-bottom-color: rgba(17, 24, 39, 0.08) !important;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !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-theme-toggle,
html[data-ed-theme="light"] .site-header .site-account .site-account__toggle,
html[data-ed-theme="light"] .site-header .site-header__toggle,
html[data-ed-theme="light"] .site-theme-toggle {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(17, 24, 39, 0.09) !important;
  color: var(--ed-premium-midnight) !important;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.10) !important;
  opacity: 1 !important;
  -webkit-backdrop-filter: none !important;
  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-header__toggle:hover,
html:not([data-ed-theme="dark"]) .site-theme-toggle:hover,
html[data-ed-theme="light"] .site-header .site-account .site-account__toggle:hover,
html[data-ed-theme="light"] .site-header .site-header__toggle:hover,
html[data-ed-theme="light"] .site-theme-toggle:hover {
  border-color: rgba(17, 24, 39, 0.14) !important;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.13) !important;
}

html:not([data-ed-theme="dark"]) .site-account__panel,
html:not([data-ed-theme="dark"]) .site-drawer,
html[data-ed-theme="light"] .site-account__panel,
html[data-ed-theme="light"] .site-drawer {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: rgba(17, 24, 39, 0.14) !important;
  color: var(--ed-premium-midnight) !important;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.14) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html:not([data-ed-theme="dark"]) .site-account__panel::before,
html:not([data-ed-theme="dark"]) .site-drawer::before,
html[data-ed-theme="light"] .site-account__panel::before,
html[data-ed-theme="light"] .site-drawer::before {
  background: #ffffff !important;
  background-image: 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,
  .site-drawer li > a,
  .site-drawer .submenu-toggle
),
html[data-ed-theme="light"] :where(
  .site-account__panelHeader,
  .site-account__panelTop,
  .site-account__panelClose,
  .site-account__settingsBtn,
  .site-account__item:not(.site-account__item--dashboard),
  .site-drawer__header,
  .site-drawer li > a,
  .site-drawer .submenu-toggle
) {
  background: #ffffff !important;
  color: var(--ed-premium-midnight) !important;
}

.site-account__menu--dashboards .site-account__item--dashboard {
  background: #f7f3ff !important;
  background-color: #f7f3ff !important;
  background-image: none !important;
  border-color: rgba(var(--ed-premium-action-rgb), 0.16) !important;
  color: var(--ed-premium-midnight) !important;
  box-shadow:
    0 10px 24px rgba(17, 24, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.site-account__menu--dashboards .site-account__item--dashboard:hover {
  background: #f1eaff !important;
  background-color: #f1eaff !important;
  background-image: none !important;
  border-color: rgba(var(--ed-premium-action-rgb), 0.24) !important;
  box-shadow:
    0 12px 28px rgba(17, 24, 39, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

.site-account__menu--dashboards .site-account__item--dashboard::before {
  display: none !important;
}

.site-account__menu--dashboards .site-account__item--dashboard::after {
  background: rgba(var(--ed-premium-action-rgb), 0.1) !important;
  color: var(--ed-premium-action) !important;
}

.site-account__menu--dashboards .site-account__item--dashboard .site-account__itemLabel {
  color: var(--ed-premium-midnight) !important;
}

.site-account__menu--dashboards .site-account__item--dashboard .site-account__itemMeta {
  color: rgba(17, 24, 39, 0.62) !important;
}

.site-account__professional-action--primary {
  background: var(--ed-premium-action) !important;
  border-color: rgba(var(--ed-premium-action-rgb), 0.18) !important;
  color: #ffffff !important;
}

.site-account__professional-action--primary:hover,
.site-account__professional-action--primary:focus-visible {
  background: var(--ed-premium-action-hover) !important;
  border-color: rgba(var(--ed-premium-action-rgb), 0.24) !important;
  color: #ffffff !important;
}

html:not([data-ed-theme="dark"]) :where(.site-account__item, .site-drawer li > a):hover,
html:not([data-ed-theme="dark"]) :where(.site-account__item, .site-drawer li > a):focus-visible,
html[data-ed-theme="light"] :where(.site-account__item, .site-drawer li > a):hover,
html[data-ed-theme="light"] :where(.site-account__item, .site-drawer li > a):focus-visible {
  background: rgba(var(--ed-color-primary-rgb), 0.08) !important;
}

html:not([data-ed-theme="dark"]) .site-header .site-header__toggle[aria-expanded="true"],
html[data-ed-theme="light"] .site-header .site-header__toggle[aria-expanded="true"] {
  background: var(--ed-premium-midnight) !important;
  border-color: rgba(var(--ed-premium-midnight-rgb), 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 34px rgba(var(--ed-premium-midnight-rgb), 0.18) !important;
}

html:not([data-ed-theme="dark"]) .site-header .site-header__toggle[aria-expanded="true"] .site-header__toggle-line,
html[data-ed-theme="light"] .site-header .site-header__toggle[aria-expanded="true"] .site-header__toggle-line {
  background: #ffffff !important;
}

/* Final dark-mode readability guard for the global navigation. */
html[data-ed-theme="dark"] .site-header {
  background: #101422 !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)) !important;
  border-bottom-color: rgba(255, 255, 255, 0.10) !important;
  color: #f8fafc !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-ed-theme="dark"] .site-header__title,
html[data-ed-theme="dark"] .site-header__nav--desktop .menu > li > a,
html[data-ed-theme="dark"] .site-header .site-account__label {
  color: #f8fafc !important;
}

html[data-ed-theme="dark"] .site-header__nav--desktop .menu > li > a:hover,
html[data-ed-theme="dark"] .site-header__nav--desktop .menu > li:hover > a,
html[data-ed-theme="dark"] .site-header__nav--desktop .menu > li:focus-within > a {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
}

html[data-ed-theme="dark"] .site-header__nav--desktop .menu .sub-menu {
  background: #202638 !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-ed-theme="dark"] .site-header__nav--desktop .menu .sub-menu a {
  color: #f8fafc !important;
  background: transparent !important;
}

html[data-ed-theme="dark"] .site-header__nav--desktop .menu .sub-menu a:hover,
html[data-ed-theme="dark"] .site-header__nav--desktop .menu .sub-menu li:hover > a,
html[data-ed-theme="dark"] .site-header__nav--desktop .menu .sub-menu li:focus-within > a {
  background: rgba(167, 139, 250, 0.16) !important;
  color: #ffffff !important;
}

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 {
  background: #202638 !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.30) !important;
}

html[data-ed-theme="dark"] .site-header .site-account .site-account__toggle:hover,
html[data-ed-theme="dark"] .site-header .site-header__toggle:hover,
html[data-ed-theme="dark"] .site-header .site-theme-toggle:hover {
  background: #27304a !important;
  border-color: rgba(196, 181, 253, 0.28) !important;
}

html[data-ed-theme="dark"] .site-account__toggleBadge {
  background: #ec4899 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.28) !important;
}

html[data-ed-theme="dark"] .site-account__chevron::before,
html[data-ed-theme="dark"] .site-account__chevron::after,
html[data-ed-theme="dark"] .site-header__toggle-line,
html[data-ed-theme="dark"] .site-account__panelClose::before,
html[data-ed-theme="dark"] .site-account__panelClose::after,
html[data-ed-theme="dark"] .site-drawer .submenu-toggle::before,
html[data-ed-theme="dark"] .site-drawer .submenu-toggle::after {
  background: #ffffff !important;
}

html[data-ed-theme="dark"] .site-account__panel,
html[data-ed-theme="dark"] .site-drawer {
  background: #202638 !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

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-account__item--logout,
  .site-drawer__header,
  .site-drawer li > a,
  .site-drawer .submenu-toggle
) {
  background: #293149 !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #f8fafc !important;
}

html[data-ed-theme="dark"] :where(
  .site-account__panelTitle,
  .site-account__panelName,
  .site-account__itemLabel,
  .site-drawer__title,
  .site-drawer li > a
) {
  color: #f8fafc !important;
}

html[data-ed-theme="dark"] :where(
  .site-account__panelEmail,
  .site-account__sectionLabel,
  .site-drawer__kicker,
  .site-drawer .sub-menu li > a
) {
  color: rgba(248, 250, 252, 0.72) !important;
}

html[data-ed-theme="dark"] .site-account__sectionLabel,
html[data-ed-theme="dark"] .site-drawer__kicker {
  color: #c4b5fd !important;
}

html[data-ed-theme="dark"] :where(
  .site-account__item:not(.site-account__item--dashboard),
  .site-drawer li > a
):hover,
html[data-ed-theme="dark"] :where(
  .site-account__item:not(.site-account__item--dashboard),
  .site-drawer li > a
):focus-visible {
  background: #313a55 !important;
  color: #ffffff !important;
}

html[data-ed-theme="dark"] .site-account__profileBtn {
  background: #37435e !important;
  border-color: rgba(94, 234, 212, 0.18) !important;
  color: #99f6e4 !important;
}

html[data-ed-theme="dark"] .site-account__badge {
  background: #5eead4 !important;
  color: #111827 !important;
}

html[data-ed-theme="dark"] .site-account__menu--dashboards .site-account__item--dashboard {
  background: #293149 !important;
  background-color: #293149 !important;
  border-color: rgba(196, 181, 253, 0.18) !important;
  color: #f8fafc !important;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

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 {
  background: #313a55 !important;
  border-color: rgba(196, 181, 253, 0.28) !important;
}

html[data-ed-theme="dark"] .site-account__menu--dashboards .site-account__item--dashboard::after {
  background: rgba(196, 181, 253, 0.16) !important;
  color: #ffffff !important;
}

html[data-ed-theme="dark"] .site-account__menu--dashboards .site-account__item--dashboard .site-account__itemLabel {
  color: #f8fafc !important;
}

html[data-ed-theme="dark"] .site-account__menu--dashboards .site-account__item--dashboard .site-account__itemMeta {
  color: rgba(248, 250, 252, 0.72) !important;
}

html[data-ed-theme="dark"] .site-account__item--logout:hover,
html[data-ed-theme="dark"] .site-account__item--logout:focus-visible {
  background: rgba(251, 113, 133, 0.14) !important;
  color: #fecdd3 !important;
}

/* Brand-palette dark navigation refinement. */
html[data-ed-theme="dark"] .site-header {
  background: #0d062a !important;
  background-image: none !important;
  border-bottom-color: rgba(252, 252, 252, 0.12) !important;
  color: #fcfcfc !important;
}

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,
html[data-ed-theme="dark"] .site-account__panel,
html[data-ed-theme="dark"] .site-drawer,
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-account__item--logout,
  .site-drawer__header,
  .site-drawer li > a,
  .site-drawer .submenu-toggle
) {
  background: #171036 !important;
  background-image: none !important;
  border-color: rgba(252, 252, 252, 0.14) !important;
  color: #fcfcfc !important;
}

html[data-ed-theme="dark"] :where(
  .site-account__item:not(.site-account__item--dashboard),
  .site-drawer li > a
):hover,
html[data-ed-theme="dark"] :where(
  .site-account__item:not(.site-account__item--dashboard),
  .site-drawer li > a
):focus-visible,
html[data-ed-theme="dark"] .site-header .site-account .site-account__toggle:hover,
html[data-ed-theme="dark"] .site-header .site-header__toggle:hover,
html[data-ed-theme="dark"] .site-header .site-theme-toggle:hover {
  background: #21164a !important;
  border-color: rgba(143, 92, 255, 0.34) !important;
  color: #ffffff !important;
}

html[data-ed-theme="dark"] .site-account__toggleBadge,
html[data-ed-theme="dark"] .site-account__badge {
  background: #ff4aa9 !important;
  color: #0d062a !important;
  box-shadow: none !important;
}

html[data-ed-theme="dark"] .site-account__profileBtn {
  background: rgba(53, 166, 197, 0.16) !important;
  border-color: rgba(53, 166, 197, 0.28) !important;
  color: #b9eff8 !important;
}

html[data-ed-theme="dark"] .site-account__sectionLabel,
html[data-ed-theme="dark"] .site-drawer__kicker {
  color: #b9eff8 !important;
}

html[data-ed-theme="dark"] .site-account__menu--dashboards .site-account__item--dashboard {
  background: #21164a !important;
  background-image: none !important;
  border-color: rgba(252, 252, 252, 0.16) !important;
  color: #fcfcfc !important;
}

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 {
  background: #171036 !important;
  border-color: rgba(143, 92, 255, 0.38) !important;
}

/* Keep the active light/dark toggle icon visible on dark template headers. */
html[data-ed-theme="dark"] .site-header .site-theme-toggle {
  background: #171036 !important;
  border-color: rgba(185, 239, 248, 0.30) !important;
  color: #b9eff8 !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(252, 252, 252, 0.04) !important;
}

html[data-ed-theme="dark"] .site-header .site-theme-toggle:hover,
html[data-ed-theme="dark"] .site-header .site-theme-toggle:focus-visible {
  background: #21164a !important;
  border-color: rgba(185, 239, 248, 0.46) !important;
  color: #ffffff !important;
}

html[data-ed-theme="dark"] .site-header .site-theme-toggle__icon,
html[data-ed-theme="dark"] .site-header .site-theme-toggle__icon svg,
html[data-ed-theme="dark"] .site-header .site-theme-toggle__icon svg * {
  color: currentColor !important;
  stroke: currentColor !important;
}

html[data-ed-theme="dark"] .site-header .site-theme-toggle__icon--sun {
  color: #b9eff8 !important;
  filter: drop-shadow(0 0 8px rgba(53, 166, 197, 0.32));
}

html[data-ed-theme="dark"] .site-header .site-theme-toggle__icon--moon {
  color: transparent !important;
}

/* ---------------------------------
   Active identity and profile switcher
--------------------------------- */

.site-account [hidden] {
  display: none !important;
}

.site-account__label {
  max-width: clamp(96px, 13vw, 180px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-account__panelHeader {
  justify-content: flex-start;
}

.site-account__panelAvatar,
.site-account__identityAvatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ed-color-primary), var(--ed-color-accent));
  color: var(--ed-color-on-primary);
  font-family: var(--ed-font-sans);
  font-weight: 850;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.site-account__panelAvatar {
  width: 48px;
  height: 48px;
  font-size: 0.88rem;
}

.site-account__panelAvatar img,
.site-account__identityAvatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-account__panelHeader .site-account__identity {
  flex: 1 1 auto;
}

.site-account__changeIdentity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 66px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(var(--ed-color-primary-rgb), 0.28);
  border-radius: 17px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(135deg, var(--ed-color-primary-strong), var(--ed-color-primary));
  color: var(--ed-color-on-primary);
  text-align: left;
  box-shadow: 0 12px 26px rgba(var(--ed-color-primary-rgb), 0.20);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-account__changeIdentity:hover,
.site-account__changeIdentity:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(var(--ed-color-primary-rgb), 0.26);
  filter: saturate(1.04);
}

.site-account__changeIdentityIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
}

.site-account__changeIdentity strong,
.site-account__changeIdentity small {
  display: block;
  color: inherit;
  font-family: var(--ed-font-sans);
}

.site-account__changeIdentity strong {
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.15;
}

.site-account__changeIdentity small {
  margin-top: 3px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0.78;
}

.site-account__changeIdentityArrow {
  font-size: 1.05rem;
  font-weight: 850;
}

.site-account__personalSettings {
  display: block;
  margin-top: 10px;
  padding: 2px 4px;
  color: var(--ed-color-muted);
  font-family: var(--ed-font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-account__identityView {
  animation: edIdentityViewIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes edIdentityViewIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.site-account__identityBack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ed-color-line);
  border-radius: 999px;
  background: var(--ed-color-surface-strong);
  color: var(--ed-color-ink);
  font-family: var(--ed-font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.site-account__identityIntro {
  margin: 18px 2px 15px;
}

.site-account__identityIntro h2 {
  margin: 3px 0 7px;
  color: var(--ed-color-ink);
  font-family: var(--ed-font-sans);
  font-size: 1.24rem;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.site-account__identityIntro p {
  margin: 0;
  color: var(--ed-color-muted);
  font-family: var(--ed-font-sans);
  font-size: 0.82rem;
  font-weight: 520;
  line-height: 1.45;
}

.site-account__identityList {
  display: grid;
  gap: 9px;
}

.site-account__identityForm {
  margin: 0;
}

.site-account__identityOption {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  padding: 10px 11px;
  border: 1px solid var(--ed-color-line);
  border-radius: 18px;
  background: var(--ed-color-surface-strong);
  color: var(--ed-color-ink);
  text-align: left;
  box-shadow: 0 8px 22px rgba(var(--ed-color-shadow-rgb), 0.055);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-account__identityOption:hover,
.site-account__identityOption:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(var(--ed-color-primary-rgb), 0.36);
  box-shadow: 0 12px 27px rgba(var(--ed-color-shadow-rgb), 0.09);
}

.site-account__identityOption.is-active {
  border-color: rgba(var(--ed-color-primary-rgb), 0.52);
  background: var(--ed-color-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(var(--ed-color-primary-rgb), 0.14);
}

.site-account__identityOption.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.site-account__identityOption.is-loading .site-account__identityCheck {
  color: transparent;
  border: 2px solid rgba(var(--ed-color-primary-rgb), 0.24);
  border-top-color: var(--ed-color-primary);
  animation: edIdentitySpinner 0.7s linear infinite;
}

@keyframes edIdentitySpinner {
  to { transform: rotate(360deg); }
}

.site-account__identityAvatar {
  width: 48px;
  height: 48px;
  font-size: 0.78rem;
}

.site-account__identityOptionText {
  min-width: 0;
}

.site-account__identityOptionText strong,
.site-account__identityOptionText small {
  display: block;
  overflow: hidden;
  color: inherit;
  font-family: var(--ed-font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-account__identityOptionText strong {
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1.2;
}

.site-account__identityOptionText small {
  margin-top: 4px;
  color: var(--ed-color-muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.2;
}

.site-account__identityCheck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ed-color-primary-soft);
  color: var(--ed-color-primary-strong);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.site-account__identityOption.is-active .site-account__identityCheck {
  background: var(--ed-color-primary);
  color: var(--ed-color-on-primary);
}

.site-account__createProfile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  margin-top: 13px;
  padding: 0 13px;
  border: 1px dashed rgba(var(--ed-color-primary-rgb), 0.36);
  border-radius: 15px;
  color: var(--ed-color-primary-strong);
  font-family: var(--ed-font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

html[data-ed-theme="dark"] :where(
  .site-account__identityBack,
  .site-account__identityOption
) {
  background: #21164a !important;
  border-color: rgba(252, 252, 252, 0.14) !important;
  color: #fcfcfc !important;
}

html[data-ed-theme="dark"] .site-account__identityOption.is-active {
  background: rgba(143, 92, 255, 0.20) !important;
  border-color: rgba(185, 239, 248, 0.42) !important;
}

html[data-ed-theme="dark"] :where(
  .site-account__identityIntro h2,
  .site-account__identityOptionText strong
) {
  color: #fcfcfc !important;
}

html[data-ed-theme="dark"] :where(
  .site-account__identityIntro p,
  .site-account__identityOptionText small,
  .site-account__personalSettings
) {
  color: rgba(252, 252, 252, 0.72) !important;
}

html[data-ed-theme="dark"] .site-account__createProfile {
  border-color: rgba(185, 239, 248, 0.30) !important;
  color: #b9eff8 !important;
}

@media (min-width: 1024px) {
  .site-account__panel.is-choosing-identity {
    width: 380px;
  }
}

@media (max-width: 720px) {
  .site-header .site-account .site-account__toggle {
    max-width: min(52vw, 260px);
    padding-right: 9px !important;
  }

  .site-account__label {
    max-width: min(23vw, 135px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-account__identityView,
  .site-account__identityOption.is-loading .site-account__identityCheck {
    animation: none !important;
  }
}
