/*
 * One website palette for both appearance modes. The native app shell does not
 * receive these tokens, so its colour choices and screen layouts are unchanged.
 * Keep action purple solid; reserve red for destructive controls.
 */
:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]) {
  color-scheme: light;
  --ed-page-canvas: #e9e6ed;
  --ed-ink: #211f35;
  --ed-violet: #7740c8;
  --ed-pink: #7740c8;
  --ed-violet-soft: #f0eafa;
  --ed-pink-soft: #f0eafa;
  --ed-gradient-primary: linear-gradient(#7740c8, #7740c8);
  --ed-gradient-motion: linear-gradient(#7740c8, #7740c8);
  --ed-bg: #e9e6ed;
  --ed-bg-soft: #f8f6fb;
  --ed-bg-warm: #f2edf8;
  --ed-bg-deep: #e2dce9;
  --ed-surface: #fffefe;
  --ed-surface-soft: #f8f6fb;
  --ed-surface-muted: #f0eafa;
  --ed-surface-raised: #fffefe;
  --ed-sheet: #fffefe;
  --ed-sheet-raised: #fffefe;
  --ed-text: #211f35;
  --ed-text-main: #211f35;
  --ed-text-soft: #625a72;
  --ed-text-muted: #625a72;
  --ed-muted: #625a72;
  --ed-border: #e5dcf0;
  --ed-border-strong: #cfc3dc;
  --ed-accent: #7740c8;
  --ed-accent-hover: #6330ac;
  --ed-accent-dark: #6330ac;
  --ed-accent-soft: rgba(119, 64, 200, .10);
  --ed-accent-glow: rgba(119, 64, 200, .20);
  --ed-secondary: #7740c8;
  --ed-secondary-dark: #6330ac;
  --ed-danger: #b42318;
  --ed-social: #7740c8;
  --ed-primary: #7740c8;
  --ed-primary-dark: #6330ac;
  --ed-primary-live: #7740c8;
  --ed-secondary-live: #7740c8;
  --ed-accent-live: #7740c8;
  --ed-social-live: #7740c8;
  --ed-primary-rgb: 119 64 200;
  --ed-secondary-rgb: 119 64 200;
  --ed-accent-rgb: 119 64 200;
  --ed-danger-rgb: 180 35 24;
  --ed-color-ink: #211f35;
  --ed-color-muted: #625a72;
  --ed-color-soft: #f8f6fb;
  --ed-color-surface: #e9e6ed;
  --ed-color-surface-strong: #fffefe;
  --ed-color-line: #e5dcf0;
  --ed-color-line-strong: #cfc3dc;
  --ed-color-primary: #7740c8;
  --ed-color-primary-strong: #6330ac;
  --ed-color-primary-soft: #f0eafa;
  --ed-color-accent: #7740c8;
  --ed-color-accent-strong: #6330ac;
  --ed-color-on-primary: #ffffff;
  --ed-color-header-bg: #fcfbfd;
  --ed-color-panel-bg: #fffefe;
  --ed-color-drawer-bg: #fffefe;
  --ed-color-body-bg: #e9e6ed;
  --ed-color-selection-bg: rgba(119, 64, 200, .22);
  --ed-color-overlay: rgba(33, 31, 53, .42);
  --ed-color-shadow-rgb: 33, 31, 53;
  --ed-color-primary-rgb: 119, 64, 200;
  --ed-color-accent-rgb: 119, 64, 200;
  --ed-focus-ring: 0 0 0 3px rgba(119, 64, 200, .20);
  --ed-app-surface: #fffefe;
  --ed-app-surface-raised: #f8f6fb;
  --ed-app-field: #f8f6fb;
  --ed-app-soft: #f0eafa;
  --ed-app-border: #e5dcf0;
  --ed-app-border-strong: #cfc3dc;
  --ed-app-text: #211f35;
  --ed-app-muted: #625a72;
  --ed-app-accent: #7740c8;
  --ed-premium-action: #7740c8;
  --ed-premium-action-hover: #6330ac;
  --ed-premium-action-rgb: 119, 64, 200;
}

:root[data-ed-app-shell="web"][data-ed-theme="dark"] {
  color-scheme: dark;
  --ed-page-canvas: #111325;
  --ed-ink: #f7f5fe;
  --ed-violet: #7740c8;
  --ed-pink: #7740c8;
  --ed-violet-soft: #302e43;
  --ed-pink-soft: #302e43;
  --ed-gradient-primary: linear-gradient(#7740c8, #7740c8);
  --ed-gradient-motion: linear-gradient(#7740c8, #7740c8);
  --ed-bg: #111325;
  --ed-bg-soft: #211f35;
  --ed-bg-warm: #252239;
  --ed-bg-deep: #0f1020;
  --ed-surface: #211f35;
  --ed-surface-soft: #302e43;
  --ed-surface-muted: #302e43;
  --ed-surface-raised: #2c2a41;
  --ed-sheet: #211f35;
  --ed-sheet-raised: #2c2a41;
  --ed-text: #f7f5fe;
  --ed-text-main: #f7f5fe;
  --ed-text-soft: #d1c9df;
  --ed-text-muted: #d1c9df;
  --ed-muted: #d1c9df;
  --ed-border: #625872;
  --ed-border-strong: #7d6d8d;
  --ed-accent: #7740c8;
  --ed-accent-hover: #6330ac;
  --ed-accent-dark: #6330ac;
  --ed-accent-soft: rgba(179, 140, 255, .15);
  --ed-accent-glow: rgba(179, 140, 255, .22);
  --ed-secondary: #7740c8;
  --ed-secondary-dark: #6330ac;
  --ed-danger: #ff978d;
  --ed-social: #7740c8;
  --ed-primary: #7740c8;
  --ed-primary-dark: #6330ac;
  --ed-primary-live: #7740c8;
  --ed-secondary-live: #7740c8;
  --ed-accent-live: #7740c8;
  --ed-social-live: #7740c8;
  --ed-primary-rgb: 119 64 200;
  --ed-secondary-rgb: 119 64 200;
  --ed-accent-rgb: 119 64 200;
  --ed-danger-rgb: 255 151 141;
  --ed-bg-dark: #111325;
  --ed-bg-dark-deep: #0f1020;
  --ed-surface-dark: #211f35;
  --ed-surface-dark-soft: #302e43;
  --ed-surface-dark-raised: #2c2a41;
  --ed-sheet-dark: #211f35;
  --ed-sheet-dark-raised: #2c2a41;
  --ed-text-dark: #f7f5fe;
  --ed-muted-dark: #d1c9df;
  --ed-border-dark: #625872;
  --ed-border-dark-strong: #7d6d8d;
  --ed-dark-surface: #211f35;
  --ed-dark-text: #f7f5fe;
  --ed-primary-dark-rgb: 119 64 200;
  --ed-secondary-dark-rgb: 119 64 200;
  --ed-accent-dark-rgb: 119 64 200;
  --ed-color-ink: #f7f5fe;
  --ed-color-muted: #d1c9df;
  --ed-color-soft: #302e43;
  --ed-color-surface: #211f35;
  --ed-color-surface-strong: #2c2a41;
  --ed-color-line: #625872;
  --ed-color-line-strong: #7d6d8d;
  --ed-color-primary: #7740c8;
  --ed-color-primary-strong: #d5afff;
  --ed-color-primary-soft: #302e43;
  --ed-color-accent: #7740c8;
  --ed-color-accent-strong: #d5afff;
  --ed-color-on-primary: #ffffff;
  --ed-color-header-bg: #111827;
  --ed-color-panel-bg: #211f35;
  --ed-color-drawer-bg: #211f35;
  --ed-color-body-bg: #111325;
  --ed-color-selection-bg: rgba(179, 140, 255, .28);
  --ed-color-overlay: rgba(7, 6, 18, .62);
  --ed-color-shadow-rgb: 0, 0, 0;
  --ed-color-primary-rgb: 119, 64, 200;
  --ed-color-accent-rgb: 119, 64, 200;
  --ed-focus-ring: 0 0 0 4px rgba(179, 140, 255, .24);
  --ed-app-surface: #211f35;
  --ed-app-surface-raised: #302e43;
  --ed-app-field: #2c2a41;
  --ed-app-soft: #302e43;
  --ed-app-border: #625872;
  --ed-app-border-strong: #7d6d8d;
  --ed-app-text: #f7f5fe;
  --ed-app-muted: #d1c9df;
  --ed-app-accent: #b38cff;
  --ed-dark-accent-text: #d5afff;
  --ed-premium-action: #7740c8;
  --ed-premium-action-hover: #6330ac;
  --ed-premium-action-rgb: 119, 64, 200;
}

/* Keep the current page legible against the dark navigation highlight. */
:root[data-ed-app-shell="web"][data-ed-theme="dark"]
  .site-primary-nav__item:is(.is-active, :hover, :focus-visible) {
  color: #d5afff !important;
}

/* Keep active navigation and sign-in fills solid when strong primary is used for text. */
:root[data-ed-app-shell="web"][data-ed-theme="dark"] .site-header__loginBtn:hover,
:root[data-ed-app-shell="web"][data-ed-theme="dark"] .site-header__loginBtn:focus-visible {
  background: #6330ac !important;
  color: #ffffff !important;
}

:root[data-ed-app-shell="web"][data-ed-theme="dark"] :is(
  .site-app-nav__item.is-active,
  .site-context-nav__item.is-active,
  .site-context-nav__child.is-active,
  .site-drawer .site-drawer__myDanceItem.is-active
) {
  background: #7740c8 !important;
  color: #ffffff !important;
}

/* The venue form prints its own light-only CSS inside the page body. */
:root[data-ed-app-shell="web"] body .w2d-ov-wrap {
  --w2d-ov-surface: var(--ed-app-surface);
  --w2d-ov-field: var(--ed-app-field);
  --w2d-ov-soft: var(--ed-app-soft);
  --w2d-ov-text: var(--ed-app-text);
  --w2d-ov-muted: var(--ed-app-muted);
  --w2d-ov-border: var(--ed-app-border);
  --w2d-ov-primary: var(--ed-color-primary);
  --w2d-ov-primary-hover: var(--ed-premium-action-hover);
  color: var(--w2d-ov-text);
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-card {
  background: var(--w2d-ov-surface);
  border-color: var(--w2d-ov-border);
  color: var(--w2d-ov-text);
  box-shadow: var(--ed-shadow-sm);
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap :is(.w2d-ov-sub, .w2d-ov-muted) {
  color: var(--w2d-ov-muted);
  opacity: 1;
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-ov-field :is(label, input, textarea) {
  color: var(--w2d-ov-text);
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-ov-field :is(input, textarea) {
  background: var(--w2d-ov-field);
  border-color: var(--w2d-ov-border);
  color-scheme: inherit;
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-ov-field :is(input, textarea)::placeholder {
  color: var(--w2d-ov-muted);
  opacity: 1;
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-ov-field :is(input, textarea):focus-visible {
  border-color: var(--w2d-ov-primary);
  box-shadow: var(--ed-focus-ring);
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-btn {
  background: var(--w2d-ov-surface);
  border-color: var(--w2d-ov-border);
  color: var(--w2d-ov-text);
  box-shadow: none;
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-btn:is(:hover, :focus-visible) {
  background: var(--w2d-ov-soft);
  border-color: var(--ed-app-border-strong);
  box-shadow: none;
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-btn-primary,
:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-btn-primary:is(:hover, :focus-visible) {
  border-color: var(--w2d-ov-primary);
  background: var(--w2d-ov-primary);
  color: #ffffff;
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-btn-primary:is(:hover, :focus-visible) {
  border-color: var(--w2d-ov-primary-hover);
  background: var(--w2d-ov-primary-hover);
  filter: none;
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-btn-soft {
  background: var(--w2d-ov-soft);
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-ov-map {
  background: var(--w2d-ov-field);
  border-color: var(--w2d-ov-border);
}

:root[data-ed-app-shell="web"] body .w2d-ov-wrap .w2d-ov-inlineinfo:not([style]) {
  background: var(--w2d-ov-soft);
  border-color: var(--w2d-ov-border);
  color: var(--w2d-ov-text);
}

:root[data-ed-app-shell="web"][data-ed-theme="dark"] body .w2d-ov-wrap {
  color-scheme: dark;
}

/* Empty and access states on professional dashboard/editor/settings routes. */
:root[data-ed-app-shell="web"] .ed-professional-notice__card {
  border-color: var(--ed-app-border) !important;
  background: var(--ed-app-surface) !important;
  box-shadow: 0 14px 34px rgba(33, 31, 53, .08) !important;
}

:root[data-ed-app-shell="web"] .ed-professional-notice__title {
  color: var(--ed-app-text) !important;
}

:root[data-ed-app-shell="web"] .ed-professional-notice__body {
  color: var(--ed-app-muted) !important;
}

:root[data-ed-app-shell="web"] .ed-professional-notice__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #7740c8;
  border-radius: 12px;
  background: #7740c8;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

:root[data-ed-app-shell="web"] .ed-professional-notice__action:is(:hover, :focus-visible) {
  border-color: #6330ac;
  background: #6330ac;
  color: #fff !important;
  box-shadow: none;
}

:root[data-ed-app-shell="web"] .ed-professional-dashboard__empty .ed-professional-dashboard__btn--soft {
  border-color: #7740c8 !important;
  background: #7740c8 !important;
  color: #fff !important;
  box-shadow: none !important;
}

:root[data-ed-app-shell="web"] .ed-professional-dashboard__empty .ed-professional-dashboard__btn--soft:is(:hover, :focus-visible) {
  border-color: #6330ac !important;
  background: #6330ac !important;
}

:root[data-ed-app-shell="web"][data-ed-theme="dark"] .ed-professional-dashboard__empty .ed-professional-dashboard__kicker {
  color: #d5afff !important;
}

/* Member profile overview: put the saved dance identity in the foreground and
   make every style world discoverable with a mouse, keyboard or touch. */
:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile:not(.edm-user-profile--studio) {
  --edm-user-profile-accent: var(--edpt-accent);
  --edm-user-profile-accent-soft: color-mix(in srgb, var(--edpt-accent) 10%, var(--edpt-surface));
  gap: 18px;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__hero [data-edm-profile-bio] {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__hero::after {
  background: radial-gradient(circle at 82% 20%, rgba(119, 64, 200, .18), transparent 34rem) !important;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__collections {
  gap: 24px;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__collections-head {
  padding-bottom: 4px;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__collections-head .edm-user-profile__copy {
  margin-top: 8px;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__collection--styles {
  gap: 18px;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__collection-rail {
  scrollbar-width: thin;
  scrollbar-color: var(--edm-user-profile-border-strong) transparent;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-world {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-color: var(--edm-user-profile-border) !important;
  background: var(--edm-user-profile-surface) !important;
  box-shadow: 0 8px 22px rgba(34, 27, 58, .055);
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-world-visual {
  background:
    linear-gradient(180deg, rgba(18, 13, 35, .06) 0%, rgba(18, 13, 35, .78) 100%),
    var(--edm-user-profile-world-image, linear-gradient(135deg, #29223f, #7740c8)) !important;
  background-position: center !important;
  background-size: cover !important;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-world-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 11px;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__gallery-actions {
  margin-top: auto;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-world:not(.has-gallery-photos) .edm-user-profile__gallery-actions {
  grid-template-columns: 1fr;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-world:not(.has-gallery-photos) .edm-user-profile__gallery-action:not(.edm-user-profile__gallery-action--primary) {
  display: none;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-world-chips span {
  border-color: color-mix(in srgb, var(--edpt-accent) 22%, var(--edm-user-profile-border)) !important;
  background: color-mix(in srgb, var(--edpt-accent) 8%, var(--edm-user-profile-surface)) !important;
  color: var(--edpt-accent) !important;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-world-more,
:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-world:not(.has-gallery-photos) .edm-user-profile__style-world-body > p {
  display: none;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-details {
  display: block;
  min-width: 0;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-details summary {
  width: fit-content;
  padding: 2px 0;
  color: var(--edpt-accent);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-details summary:hover,
:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-details summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-details-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 142px;
  margin-top: 9px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--edm-user-profile-border-strong) transparent;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-details-list span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 999px;
  color: var(--edm-user-profile-text);
  background: var(--edm-user-profile-bg-soft);
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.1;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__gallery-action:not(.edm-user-profile__gallery-action--primary) {
  border-color: var(--edm-user-profile-border-strong) !important;
  background: var(--edm-user-profile-bg-soft) !important;
  color: var(--edpt-accent) !important;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__collection-empty--clubs {
  padding: 16px 18px;
  border-color: var(--edm-user-profile-border) !important;
  background: var(--edm-user-profile-bg-soft) !important;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page #about .edm-user-profile__mini-card--vibe,
:root[data-ed-app-shell="web"] body.ed-member-profile-page #about .edm-user-profile__mini-card--scenes {
  display: none;
}

:root[data-ed-app-shell="web"] body.ed-member-profile-page #about .edm-user-profile__section-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  :root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-rail,
  :root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__collection-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 16px;
    align-items: stretch;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  :root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-world,
  :root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__club-card {
    width: 100%;
    min-width: 0;
    scroll-snap-align: none;
  }

  :root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-rail:has(.edm-user-profile__style-details[open]) {
    align-items: start;
  }

  :root[data-ed-app-shell="web"] body.ed-member-profile-page #about {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(220px, .75fr);
    gap: 14px 28px;
    align-items: start;
  }

  :root[data-ed-app-shell="web"] body.ed-member-profile-page #about .edm-user-profile__card-head {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  :root[data-ed-app-shell="web"] body.ed-member-profile-page #about .edm-user-profile__section-grid {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 819px) {
  :root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-rail {
    scrollbar-width: thin;
    scrollbar-color: var(--edm-user-profile-border-strong) transparent;
  }

  :root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-rail::-webkit-scrollbar {
    display: block;
    height: 5px;
  }

  :root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile__style-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--edm-user-profile-border-strong);
  }
}

:root[data-ed-app-shell="web"][data-ed-theme="dark"] body.ed-member-profile-page .edm-user-profile__style-world {
  background: #22243a !important;
  box-shadow: none;
}

:root[data-ed-app-shell="web"][data-ed-theme="dark"] body.ed-member-profile-page .edm-user-profile__style-details-list span,
:root[data-ed-app-shell="web"][data-ed-theme="dark"] body.ed-member-profile-page .edm-user-profile__collection-empty--clubs {
  background: #22243a !important;
}

:root[data-ed-app-shell="web"][data-ed-theme="dark"] body.ed-member-profile-page .edm-user-profile :is(
  .edm-user-profile__avatar span,
  .edm-user-profile__mini-avatar,
  .edm-user-profile__friend-avatar,
  .edm-user-profile__pill,
  .edm-user-profile__look,
  .edm-user-profile__style-icon,
  .edm-user-profile__row-kicker,
  .edm-user-profile__event-chips span
) {
  color: var(--edpt-accent) !important;
}

/* Keep the light website canvas continuous around page columns and white cards.
   The site header, accents, dark mode and native shells retain their own colours. */
:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]):has(:is(
  .edx-explore,
  .ed-club-hub,
  .edm-account-settings-page,
  .edm-my-events,
  .edm-friends-hub,
  .w2d-dance-style-hub,
  .ed-professional-profile,
  .ed-professional-dashboard,
  .ed-professional-editor,
  .ed-professional-settings,
  .ed-professional-notice,
  .w2d-business-signup
)) {
  --ed-page-canvas: #f7f8fa;
  --ed-color-body-bg: #f7f8fa;
  background: #f7f8fa !important;
  background-image: none !important;
}

:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]):has(:is(
  .edx-explore,
  .ed-club-hub,
  .edm-account-settings-page,
  .edm-my-events,
  .edm-friends-hub,
  .w2d-dance-style-hub,
  .ed-professional-profile,
  .ed-professional-dashboard,
  .ed-professional-editor,
  .ed-professional-settings,
  .ed-professional-notice,
  .w2d-business-signup
)) :is(body, .site-main) {
  background: #f7f8fa !important;
  background-image: none !important;
}

:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]) .ed-club-hub {
  --club-page-bg: #f7f8fa;
  background: #f7f8fa !important;
}

:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]) .edm-account-settings-page {
  --edm-account-settings-bg: #f7f8fa;
}

:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]) .edm-my-events {
  --edm-my-events-bg: #f7f8fa;
}

:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]) .edm-friends-hub {
  --edm-friends-bg: #f7f8fa;
  background: #f7f8fa !important;
  background-image: none !important;
}

:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]) .w2d-dance-style-hub {
  --ed-bg: #f7f8fa;
  --mf-page-bg: #f7f8fa;
  background: #f7f8fa !important;
}

:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]) .ed-professional-profile {
  --edpt-bg: #f7f8fa;
  --ed-profile-page: #f7f8fa;
  background: #f7f8fa !important;
}

:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]) .ed-professional-dashboard {
  --ed-dashboard-bg: #f7f8fa;
  --ed-work-canvas: #f7f8fa;
  --ed-color-body-bg: #f7f8fa;
  background: #f7f8fa !important;
}

:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]) .ed-professional-editor {
  --ed-editor-page: #f7f8fa;
}

:root[data-ed-app-shell="web"]:not([data-ed-theme="dark"]) .w2d-business-signup {
  background: #f7f8fa !important;
}

/* Keep the website profile close to its final card without a long empty tail. */
:root[data-ed-app-shell="web"] body.ed-member-profile-page .edm-user-profile:not(.edm-user-profile--studio) {
  --edm-user-profile-end-scroll-space: 24px;
  margin-bottom: 24px;
}
