/* EDQ V48.5.3 — Mode clair dédié du widget Prochain cours. */
@media (max-width: 1023px) {
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile {
    --dashboard-next-course-light-text: #0f172a;
    --dashboard-next-course-light-muted: #334155;
    --dashboard-next-course-light-soft: #64748b;
    --dashboard-next-course-light-border: rgba(100, 116, 139, .22);
    --dashboard-next-course-light-shadow: 0 18px 42px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255,255,255,.76);
  }

  /* Cartes S et partie gauche du M */
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini--small,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini--small,
  html[data-theme="light"] .dashboard-course-quick-menu-anchor-clone.dashboard-mobile-course-mini--small,
  body[data-theme="light"] .dashboard-course-quick-menu-anchor-clone.dashboard-mobile-course-mini--small,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini--small,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini--small {
    color: var(--dashboard-next-course-light-text, #0f172a) !important;
    border-color: color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 42%, rgba(100,116,139,.24)) !important;
    background:
      radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 22%, transparent), transparent 58%),
      linear-gradient(145deg,
        color-mix(in srgb, #ffffff 82%, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 18%),
        color-mix(in srgb, #f8fafc 74%, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 26%)) !important;
    box-shadow: var(--dashboard-next-course-light-shadow, 0 18px 42px rgba(15, 23, 42, .14)) !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__icon,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__icon,
  html[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__icon,
  body[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__icon,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__icon,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__icon,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__icon,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__icon,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__icon,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__icon,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__icon,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__icon {
    color: color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 68%, #0f172a 32%) !important;
    border-color: color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 48%, rgba(100,116,139,.18)) !important;
    background: color-mix(in srgb, #ffffff 74%, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 26%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 8px 18px color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 16%, transparent) !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__countdown,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__countdown,
  html[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__countdown,
  body[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__countdown,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__countdown,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__countdown {
    color: color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 44%, #0f172a 56%) !important;
    border-color: color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 42%, rgba(100,116,139,.18)) !important;
    background: color-mix(in srgb, #ffffff 70%, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 30%) !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__main strong,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__style-name,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__level,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__main strong,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__style-name,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__level,
  html[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__main strong,
  html[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__style-name,
  html[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__level,
  body[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__main strong,
  body[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__style-name,
  body[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__level,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__main strong,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__style-name,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__level,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__main strong,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__style-name,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__level {
    color: #0f172a !important;
    text-shadow: none !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__main > span,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__main > em,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__main > span,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-mini__main > em,
  html[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__main > span,
  html[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__main > em,
  body[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__main > span,
  body[data-theme="light"] .dashboard-course-quick-menu-anchor-clone .dashboard-mobile-course-mini__main > em,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__main > span,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__main > em,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__main > span,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-mini__main > em {
    color: #334155 !important;
  }

  /* Carte L, originale, clone et widget promu au-dessus du scrim */
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card {
    color: #0f172a !important;
    border-color: color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 44%, rgba(100,116,139,.24)) !important;
    background:
      radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 24%, transparent), transparent 58%),
      linear-gradient(145deg,
        color-mix(in srgb, #ffffff 82%, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 18%),
        color-mix(in srgb, #f8fafc 72%, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 28%)) !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255,255,255,.76) !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__title em,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__title em,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__title em,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__title em,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__title em,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__title em {
    color: color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 42%, #475569 58%) !important;
    text-shadow: none !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__title strong,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__title strong,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__title strong,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__title strong,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__title strong,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__title strong {
    color: #0f172a !important;
    text-shadow: none !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__countdown,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__countdown,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__countdown,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__countdown,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__countdown,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__countdown {
    border-color: color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 38%, rgba(100,116,139,.22)) !important;
    background: color-mix(in srgb, #ffffff 72%, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 28%) !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__countdown span,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__countdown span,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__countdown span,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__countdown span,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__countdown span,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__countdown span {
    color: #475569 !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__countdown strong,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__countdown strong,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__countdown strong,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__countdown strong,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__countdown strong,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__countdown strong {
    color: color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 42%, #0f172a 58%) !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__meta,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__meta,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__meta,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__meta,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__meta,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__meta {
    color: #334155 !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__vote,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__vote,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__vote,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__vote,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__vote,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__vote {
    border-top-color: color-mix(in srgb, var(--dashboard-mobile-course-color, var(--dashboard-v2-role-color, #38bdf8)) 32%, rgba(100,116,139,.22)) !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__status span,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__status span,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__status span,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__status span,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__status span,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__status span {
    color: #475569 !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__status.is-present strong,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__status.is-present strong,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__status.is-present strong,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__status.is-present strong,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__status.is-present strong,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__status.is-present strong {
    color: #047857 !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__status.is-absent strong,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__status.is-absent strong,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__status.is-absent strong,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__status.is-absent strong,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__status.is-absent strong,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__status.is-absent strong {
    color: #be123c !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__status.is-late strong,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__status.is-unconfirmed strong,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__status.is-late strong,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card__status.is-unconfirmed strong,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__status.is-late strong,
  html[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__status.is-unconfirmed strong,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__status.is-late strong,
  body[data-theme="light"] .dashboard-home-drag-ghost .dashboard-mobile-course-large-card__status.is-unconfirmed strong,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__status.is-late strong,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__status.is-unconfirmed strong,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__status.is-late strong,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone .dashboard-mobile-course-large-card__status.is-unconfirmed strong {
    color: #92400e !important;
  }

  /* Votes S/M/L en clair : neutre lisible, actifs en couleurs d'état. */
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote:not(.is-active):not(.is-pending-reason):not(.is-default-unconfirmed),
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote:not(.is-active):not(.is-pending-reason):not(.is-default-unconfirmed),
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote:not(.is-active):not(.is-pending-reason):not(.is-default-unconfirmed),
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote:not(.is-active):not(.is-pending-reason):not(.is-default-unconfirmed),
  html[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote]:not(.is-active):not(.is-pending-reason):not(.is-default-unconfirmed),
  body[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote]:not(.is-active):not(.is-pending-reason):not(.is-default-unconfirmed),
  html[data-theme="light"] .dashboard-course-quick-menu__disclosure:not(.is-active) > .dashboard-course-quick-menu__row:not(.is-pending-reason):not(.is-default-unconfirmed),
  body[data-theme="light"] .dashboard-course-quick-menu__disclosure:not(.is-active) > .dashboard-course-quick-menu__row:not(.is-pending-reason):not(.is-default-unconfirmed) {
    border-color: rgba(100, 116, 139, .24) !important;
    color: #334155 !important;
    background: rgba(255,255,255,.78) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
  }

  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote.is-default-unconfirmed,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote.is-default-unconfirmed,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote.is-default-unconfirmed,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote.is-default-unconfirmed,
  html[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="P"].is-default-unconfirmed,
  body[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="P"].is-default-unconfirmed {
    border-color: rgba(217, 119, 6, .62) !important;
    color: #92400e !important;
    background: color-mix(in srgb, #ffffff 66%, #facc15 34%) !important;
    box-shadow: 0 0 0 1px rgba(217,119,6,.14), 0 10px 22px rgba(217,119,6,.10) !important;
  }

  html[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="P"].is-active,
  html[data-theme="light"] .dashboard-course-quick-menu__row--button[data-dashboard-v2-course-vote="P"].is-active,
  body[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="P"].is-active,
  body[data-theme="light"] .dashboard-course-quick-menu__row--button[data-dashboard-v2-course-vote="P"].is-active,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote[data-dashboard-v2-course-vote="P"].is-active,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote[data-dashboard-v2-course-vote="P"].is-active,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote[data-dashboard-v2-course-vote="P"].is-active,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote[data-dashboard-v2-course-vote="P"].is-active {
    border-color: rgba(16, 185, 129, .62) !important;
    color: #047857 !important;
    background: color-mix(in srgb, #ffffff 66%, #10b981 34%) !important;
    box-shadow: 0 0 0 1px rgba(16,185,129,.14), 0 10px 22px rgba(16,185,129,.10) !important;
  }

  html[data-theme="light"] .dashboard-course-quick-menu__disclosure[data-dashboard-v2-course-vote="A"].is-active > .dashboard-course-quick-menu__row,
  html[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="A"].is-active,
  html[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="A"].is-pending-reason,
  body[data-theme="light"] .dashboard-course-quick-menu__disclosure[data-dashboard-v2-course-vote="A"].is-active > .dashboard-course-quick-menu__row,
  body[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="A"].is-active,
  body[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="A"].is-pending-reason,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote[data-dashboard-v2-course-vote="A"].is-active,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote[data-dashboard-v2-course-vote="A"].is-pending-reason,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote[data-dashboard-v2-course-vote="A"].is-active,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote[data-dashboard-v2-course-vote="A"].is-pending-reason,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote[data-dashboard-v2-course-vote="A"].is-active,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote[data-dashboard-v2-course-vote="A"].is-pending-reason,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote[data-dashboard-v2-course-vote="A"].is-active,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote[data-dashboard-v2-course-vote="A"].is-pending-reason {
    border-color: rgba(225, 29, 72, .56) !important;
    color: #be123c !important;
    background: color-mix(in srgb, #ffffff 68%, #fb7185 32%) !important;
    box-shadow: 0 0 0 1px rgba(225,29,72,.14), 0 10px 22px rgba(225,29,72,.10) !important;
  }

  html[data-theme="light"] .dashboard-course-quick-menu__disclosure[data-dashboard-v2-course-vote="R"].is-active > .dashboard-course-quick-menu__row,
  html[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="R"].is-active,
  html[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="R"].is-pending-reason,
  body[data-theme="light"] .dashboard-course-quick-menu__disclosure[data-dashboard-v2-course-vote="R"].is-active > .dashboard-course-quick-menu__row,
  body[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="R"].is-active,
  body[data-theme="light"] .dashboard-course-quick-menu__row[data-dashboard-v2-course-vote="R"].is-pending-reason,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote[data-dashboard-v2-course-vote="R"].is-active,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote[data-dashboard-v2-course-vote="R"].is-pending-reason,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote[data-dashboard-v2-course-vote="R"].is-active,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-widget--medium .dashboard-mobile-course-m-vote[data-dashboard-v2-course-vote="R"].is-pending-reason,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote[data-dashboard-v2-course-vote="R"].is-active,
  html[data-theme="light"] body.is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote[data-dashboard-v2-course-vote="R"].is-pending-reason,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote[data-dashboard-v2-course-vote="R"].is-active,
  body[data-theme="light"].is-dashboard-shell-visible #dashboard-view > .dashboard-v2--native-mobile .dashboard-mobile-course-large-card .dashboard-mobile-course-l-vote[data-dashboard-v2-course-vote="R"].is-pending-reason {
    border-color: rgba(217, 119, 6, .58) !important;
    color: #92400e !important;
    background: color-mix(in srgb, #ffffff 66%, #f59e0b 34%) !important;
    box-shadow: 0 0 0 1px rgba(217,119,6,.14), 0 10px 22px rgba(217,119,6,.10) !important;
  }

  /* Menu rapide S et popovers motif/durée */
  html[data-theme="light"] .dashboard-course-quick-menu,
  body[data-theme="light"] .dashboard-course-quick-menu {
    color: #0f172a !important;
    border-color: color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 34%, rgba(100,116,139,.26)) !important;
    background:
      radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 16%, transparent), transparent 58%),
      color-mix(in srgb, #ffffff 92%, var(--dashboard-v2-role-color, #38bdf8) 8%) !important;
    box-shadow: 0 20px 46px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255,255,255,.78) !important;
  }

  html[data-theme="light"] .dashboard-course-quick-menu__title em,
  body[data-theme="light"] .dashboard-course-quick-menu__title em {
    color: #334155 !important;
  }

  html[data-theme="light"] .dashboard-course-quick-menu__title strong,
  body[data-theme="light"] .dashboard-course-quick-menu__title strong,
  html[data-theme="light"] .dashboard-course-quick-menu__row > span,
  body[data-theme="light"] .dashboard-course-quick-menu__row > span {
    color: #0f172a !important;
  }

  html[data-theme="light"] .dashboard-v2-reason-floating,
  body[data-theme="light"] .dashboard-v2-reason-floating {
    color: #0f172a !important;
    border-color: color-mix(in srgb, var(--dashboard-v2-reason-color, var(--dashboard-mobile-course-color, #38bdf8)) 44%, rgba(100,116,139,.24)) !important;
    background:
      radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--dashboard-v2-reason-color, var(--dashboard-mobile-course-color, #38bdf8)) 20%, transparent), transparent 58%),
      color-mix(in srgb, #ffffff 88%, var(--dashboard-v2-reason-color, var(--dashboard-mobile-course-color, #38bdf8)) 12%) !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255,255,255,.78) !important;
  }

  html[data-theme="light"] .dashboard-v2-reason-floating__field > span,
  html[data-theme="light"] .dashboard-v2-reason-floating .my-children-vote-reason-floating__field > span,
  body[data-theme="light"] .dashboard-v2-reason-floating__field > span,
  body[data-theme="light"] .dashboard-v2-reason-floating .my-children-vote-reason-floating__field > span {
    color: color-mix(in srgb, var(--dashboard-v2-reason-color, var(--dashboard-mobile-course-color, #38bdf8)) 45%, #334155 55%) !important;
  }

  html[data-theme="light"] .dashboard-v2-reason-floating textarea,
  html[data-theme="light"] .dashboard-v2-reason-floating input[data-dashboard-v2-reason-input],
  html[data-theme="light"] .dashboard-v2-reason-floating input[data-dashboard-v2-reason-combined],
  html[data-theme="light"] .dashboard-v2-reason-floating input[data-dashboard-v2-reason-estimation],
  body[data-theme="light"] .dashboard-v2-reason-floating textarea,
  body[data-theme="light"] .dashboard-v2-reason-floating input[data-dashboard-v2-reason-input],
  body[data-theme="light"] .dashboard-v2-reason-floating input[data-dashboard-v2-reason-combined],
  body[data-theme="light"] .dashboard-v2-reason-floating input[data-dashboard-v2-reason-estimation] {
    color: #0f172a !important;
    border-color: color-mix(in srgb, var(--dashboard-v2-reason-color, var(--dashboard-mobile-course-color, #38bdf8)) 42%, rgba(100,116,139,.22)) !important;
    background: rgba(255,255,255,.82) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78) !important;
  }

  html[data-theme="light"] .dashboard-v2-reason-floating textarea::placeholder,
  html[data-theme="light"] .dashboard-v2-reason-floating input::placeholder,
  body[data-theme="light"] .dashboard-v2-reason-floating textarea::placeholder,
  body[data-theme="light"] .dashboard-v2-reason-floating input::placeholder {
    color: #64748b !important;
  }

  html[data-theme="light"] .dashboard-v2-reason-floating-scrim,
  body[data-theme="light"] .dashboard-v2-reason-floating-scrim,
  html[data-theme="light"] .dashboard-course-quick-menu-scrim,
  body[data-theme="light"] .dashboard-course-quick-menu-scrim {
    background: rgba(15, 23, 42, .24) !important;
    backdrop-filter: blur(14px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
  }
}

/* V48.5.4 — Mode clair : bouton d'ouverture S et scrim M/L percé. */
@media (max-width: 1023px) {
  html[data-theme="light"] .dashboard-course-quick-menu__row--open,
  body[data-theme="light"] .dashboard-course-quick-menu__row--open {
    color: #0f172a !important;
    border-color: color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 30%, rgba(100, 116, 139, .22)) !important;
    background:
      radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 12%, transparent), transparent 58%),
      color-mix(in srgb, #ffffff 90%, var(--dashboard-v2-role-color, #38bdf8) 10%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 8px 18px rgba(15, 23, 42, .08) !important;
  }

  html[data-theme="light"] .dashboard-course-quick-menu__row--open > i:first-child,
  body[data-theme="light"] .dashboard-course-quick-menu__row--open > i:first-child {
    color: color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 64%, #0f172a 36%) !important;
    background: transparent !important;
  }

  html[data-theme="light"] .dashboard-course-quick-menu__row--open > span,
  body[data-theme="light"] .dashboard-course-quick-menu__row--open > span {
    color: #0f172a !important;
  }

  html[data-theme="light"] .dashboard-course-quick-menu__row--open > .dashboard-course-quick-menu__chevron,
  body[data-theme="light"] .dashboard-course-quick-menu__row--open > .dashboard-course-quick-menu__chevron {
    color: color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 58%, #334155 42%) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html[data-theme="light"] .dashboard-v2-reason-floating-scrim,
  body[data-theme="light"] .dashboard-v2-reason-floating-scrim {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html[data-theme="light"] .dashboard-v2-reason-floating-scrim__pane,
  body[data-theme="light"] .dashboard-v2-reason-floating-scrim__pane {
    background: rgba(248, 250, 252, .46) !important;
    backdrop-filter: blur(10px) saturate(1.14) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.14) !important;
  }

  html[data-theme="light"] .dashboard-course-quick-menu-scrim,
  body[data-theme="light"] .dashboard-course-quick-menu-scrim {
    background: rgba(248, 250, 252, .46) !important;
    backdrop-filter: blur(10px) saturate(1.14) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.14) !important;
  }

  html[data-theme="light"] .is-dashboard-reason-anchor-promoted,
  body[data-theme="light"] .is-dashboard-reason-anchor-promoted,
  html[data-theme="light"] .dashboard-v2-reason-anchor-clone,
  body[data-theme="light"] .dashboard-v2-reason-anchor-clone {
    z-index: 13980 !important;
  }
}
