/* /public_html/assets/css/tutorial/interactive-tutorial.css */

html.edq-tutorial-active,
body.edq-tutorial-active {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.edq-tutorial {
  --tutorial-accent: #2563eb;
  --tutorial-surface: color-mix(in srgb, var(--surface, #ffffff) 94%, transparent);
  --tutorial-text: var(--text-color, #182033);
  --tutorial-muted: var(--muted, #667085);
  position: fixed;
  inset: 0;
  z-index: 2147481200;
  pointer-events: none;
  font: inherit;
}

.edq-tutorial__scrim {
  position: fixed;
  z-index: 1;
  background: rgba(8, 13, 28, 0.61);
  -webkit-backdrop-filter: blur(3px) saturate(0.82);
  backdrop-filter: blur(3px) saturate(0.82);
  pointer-events: auto;
  touch-action: none;
}

.edq-tutorial__ring {
  position: fixed;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--tutorial-accent) 78%, transparent),
    0 0 28px color-mix(in srgb, var(--tutorial-accent) 62%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  animation: edq-tutorial-pulse 1.75s ease-in-out infinite;
  transition: left 180ms ease, top 180ms ease, width 180ms ease, height 180ms ease;
}

.edq-tutorial-target-active {
  scroll-margin-block: 150px;
}

.edq-tutorial__target-blocker {
  position: fixed;
  z-index: 2;
  width: 0;
  height: 0;
  background: transparent;
  border-radius: 18px;
  pointer-events: none;
}

.edq-tutorial.blocks-target .edq-tutorial__target-blocker {
  pointer-events: auto;
  touch-action: none;
  cursor: default;
}

.edq-tutorial__card {
  position: fixed;
  z-index: 3;
  width: min(390px, calc(100vw - 24px));
  max-height: min(560px, calc(100dvh - 24px));
  overflow: auto;
  padding: 18px;
  color: var(--tutorial-text);
  background: var(--tutorial-surface);
  border: 1px solid color-mix(in srgb, var(--tutorial-accent) 28%, rgba(255, 255, 255, 0.48));
  border-radius: 22px;
  box-shadow: 0 26px 80px rgba(3, 8, 23, 0.38), 0 8px 24px rgba(3, 8, 23, 0.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
  pointer-events: auto;
  transition: left 180ms ease, top 180ms ease;
}

.edq-tutorial__card.is-nudging {
  animation: edq-tutorial-nudge 320ms ease;
}

.edq-tutorial__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.edq-tutorial__eyebrow {
  margin: 0 0 5px;
  color: var(--tutorial-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.edq-tutorial__title {
  margin: 0;
  font-size: clamp(1.08rem, 3.8vw, 1.35rem);
  line-height: 1.16;
}

.edq-tutorial__message {
  margin: 12px 0 0;
  color: var(--tutorial-text);
  font-size: 0.96rem;
  line-height: 1.52;
}

.edq-tutorial__hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0 0;
  padding: 10px 12px;
  color: var(--tutorial-accent);
  background: color-mix(in srgb, var(--tutorial-accent) 9%, transparent);
  border-radius: 13px;
  font-size: 0.84rem;
  font-weight: 700;
}

.edq-tutorial__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--tutorial-muted);
  background: color-mix(in srgb, var(--tutorial-text) 7%, transparent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.edq-tutorial__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}

.edq-tutorial__progress {
  color: var(--tutorial-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.edq-tutorial__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.edq-tutorial__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.edq-tutorial__btn--primary {
  color: #ffffff;
  background: var(--tutorial-accent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--tutorial-accent) 30%, transparent);
}

.edq-tutorial__btn--secondary {
  color: var(--tutorial-text);
  background: color-mix(in srgb, var(--tutorial-text) 7%, transparent);
  border-color: color-mix(in srgb, var(--tutorial-text) 13%, transparent);
}

.edq-tutorial__btn--ghost {
  color: var(--tutorial-muted);
  background: transparent;
}

@media (prefers-color-scheme: dark) {
  .edq-tutorial {
    --tutorial-surface: rgba(15, 22, 40, 0.94);
    --tutorial-text: #f5f7fb;
    --tutorial-muted: #a9b2c7;
  }
}

html[data-theme="dark"] .edq-tutorial,
body.theme-dark .edq-tutorial {
  --tutorial-surface: rgba(15, 22, 40, 0.94);
  --tutorial-text: #f5f7fb;
  --tutorial-muted: #a9b2c7;
}

html[data-theme="light"] .edq-tutorial,
body[data-theme="light"] .edq-tutorial {
  --tutorial-surface: rgba(255, 255, 255, 0.95);
  --tutorial-text: #182033;
  --tutorial-muted: #667085;
}

@media (max-width: 767px) {
  .edq-tutorial__card {
    width: calc(100vw - 20px);
    padding: 16px;
    border-radius: 20px;
  }

  .edq-tutorial__footer {
    align-items: flex-end;
  }

  .edq-tutorial__actions {
    gap: 6px;
  }

  .edq-tutorial__btn {
    min-height: 38px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edq-tutorial__ring,
  .edq-tutorial__card {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes edq-tutorial-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tutorial-accent) 70%, transparent), 0 0 22px color-mix(in srgb, var(--tutorial-accent) 48%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--tutorial-accent) 28%, transparent), 0 0 34px color-mix(in srgb, var(--tutorial-accent) 68%, transparent); }
}

@keyframes edq-tutorial-nudge {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-5px); }
  70% { transform: translateX(5px); }
}

/* =========================================================
   V49.3.2 — Guide discret pendant la saisie mobile
   ---------------------------------------------------------
   Pendant que le clavier natif est ouvert, le guide cesse
   complètement de viser le champ. Le projecteur disparaît,
   le scroll natif retrouve le même comportement que sans
   tutoriel et une barre d'action minimale reste au-dessus
   du clavier.
   ======================================================= */
@media (max-width: 980px), (pointer: coarse) {
  html.edq-tutorial-active.edq-tutorial-keyboard-active {
    overflow: auto !important;
    overscroll-behavior: auto !important;
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__scrim,
  .edq-tutorial.is-keyboard-compact .edq-tutorial__ring,
  .edq-tutorial.is-keyboard-compact .edq-tutorial__target-blocker {
    display: none !important;
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__card {
    left: max(8px, env(safe-area-inset-left, 0px)) !important;
    right: max(8px, env(safe-area-inset-right, 0px)) !important;
    top: auto !important;
    bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-height: none !important;
    min-height: 0;
    padding: 8px 10px;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-radius: 15px;
    transition: none !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    backdrop-filter: blur(14px) saturate(1.08);
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__card-head {
    min-width: 0;
    align-items: center;
    gap: 7px;
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__card-head > div {
    min-width: 0;
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__eyebrow,
  .edq-tutorial.is-keyboard-compact .edq-tutorial__message,
  .edq-tutorial.is-keyboard-compact .edq-tutorial__hint,
  .edq-tutorial.is-keyboard-compact .edq-tutorial__progress {
    display: none !important;
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__title {
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__close {
    width: 28px;
    height: 28px;
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__footer {
    margin: 0;
    gap: 0;
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__actions {
    flex-wrap: nowrap;
    gap: 5px;
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__btn {
    min-height: 32px;
    padding-inline: 9px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__btn:disabled {
    opacity: 0.55;
  }
}

/* =========================================================
   V49.4.50 — Fenêtre de guide mobile et redimensionnable
   ======================================================= */
.edq-tutorial__drag-handle {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.edq-tutorial__card.is-dragging,
.edq-tutorial__card.is-dragging .edq-tutorial__drag-handle {
  cursor: grabbing;
}

.edq-tutorial__card.is-dragging {
  transition: none !important;
}

.edq-tutorial__heading {
  min-width: 0;
  flex: 1 1 auto;
}

.edq-tutorial__window-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 5px;
}

.edq-tutorial__drag-cue,
.edq-tutorial__window-control {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--tutorial-muted);
  background: color-mix(in srgb, var(--tutorial-text) 7%, transparent);
  border: 0;
  border-radius: 999px;
}

.edq-tutorial__drag-cue {
  background: transparent;
  opacity: 0.72;
  pointer-events: none;
}

.edq-tutorial__window-control {
  cursor: pointer;
}

.edq-tutorial__window-control:hover,
.edq-tutorial__window-control:focus-visible,
.edq-tutorial__close:hover,
.edq-tutorial__close:focus-visible {
  color: var(--tutorial-accent);
  background: color-mix(in srgb, var(--tutorial-accent) 12%, transparent);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tutorial-accent) 22%, transparent);
}

.edq-tutorial__window-control[hidden] {
  display: none !important;
}

.edq-tutorial__card-body {
  min-width: 0;
}

.edq-tutorial__card.is-user-compact {
  width: min(330px, calc(100vw - 24px));
  max-height: min(310px, calc(100dvh - 24px));
  padding: 14px;
}

.edq-tutorial__card.is-user-compact .edq-tutorial__card-body {
  display: none;
}

.edq-tutorial__card.is-user-compact .edq-tutorial__eyebrow {
  margin-bottom: 3px;
}

.edq-tutorial__card.is-user-compact .edq-tutorial__title {
  font-size: 1rem;
  line-height: 1.18;
}

.edq-tutorial__card.is-user-compact .edq-tutorial__footer {
  margin-top: 12px;
}

@media (max-width: 767px) {
  .edq-tutorial__window-controls {
    gap: 3px;
  }

  .edq-tutorial__drag-cue,
  .edq-tutorial__window-control,
  .edq-tutorial__close {
    width: 30px;
    height: 30px;
  }

  .edq-tutorial__card.is-user-compact {
    width: min(315px, calc(100vw - 20px));
  }
}

@media (max-width: 980px), (pointer: coarse) {
  .edq-tutorial.is-keyboard-compact .edq-tutorial__drag-cue,
  .edq-tutorial.is-keyboard-compact .edq-tutorial__window-control {
    display: none !important;
  }

  .edq-tutorial.is-keyboard-compact .edq-tutorial__drag-handle {
    cursor: default;
    touch-action: auto;
  }
}

/* =========================================================
   V49.4.70 — Mise en lumière des commandes dans la fenêtre
   ======================================================= */
.edq-tutorial__card .edq-tutorial-target-active {
  position: relative;
  z-index: 1;
  outline: 2px solid rgba(255, 255, 255, 0.96);
  outline-offset: 3px;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--tutorial-accent) 34%, transparent),
    0 0 24px color-mix(in srgb, var(--tutorial-accent) 58%, transparent);
  animation: edq-tutorial-control-pulse 1.75s ease-in-out infinite;
}

@keyframes edq-tutorial-control-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 5px color-mix(in srgb, var(--tutorial-accent) 28%, transparent),
      0 0 18px color-mix(in srgb, var(--tutorial-accent) 46%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 8px color-mix(in srgb, var(--tutorial-accent) 14%, transparent),
      0 0 28px color-mix(in srgb, var(--tutorial-accent) 68%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .edq-tutorial__card .edq-tutorial-target-active {
    animation: none !important;
  }
}

/* =========================================================
   V49.8.7 - Tableau de bord fictif mobile professeur, flux V2 réel
   ======================================================= */
body.teacher-mobile-dashboard-demo-active {
  overflow: hidden !important;
}

.teacher-mobile-dashboard-demo {
  --teacher-demo-accent: #f59e0b;
  --teacher-demo-blue: #2563eb;
  --teacher-demo-danger: #ef4444;
  --teacher-demo-green: #22c55e;
  --teacher-demo-cyan: #38bdf8;
  --teacher-demo-yellow: #eab308;
  --teacher-demo-text: #f8fafc;
  --teacher-demo-muted: rgba(226, 232, 240, 0.72);
  --teacher-demo-border: rgba(148, 163, 184, 0.22);
  position: fixed;
  inset: 0;
  z-index: 2147480000;
  display: grid;
  place-items: stretch;
  color: var(--teacher-demo-text);
  background:
    radial-gradient(circle at 10% 6%, rgba(37, 99, 235, 0.16), transparent 32%),
    radial-gradient(circle at 86% 0%, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(180deg, #020a1d 0%, #050716 58%, #020617 100%);
  opacity: 0;
  transform: scale(0.992);
  transition: opacity 180ms ease, transform 180ms ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.teacher-mobile-dashboard-demo.is-ready {
  opacity: 1;
  transform: scale(1);
}

.teacher-mobile-dashboard-demo__screen {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: clamp(0.78rem, 3.2vw, 1.08rem);
  width: min(430px, 100vw);
  height: 100dvh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 0.9rem) clamp(0.92rem, 3.8vw, 1.16rem) calc(env(safe-area-inset-bottom, 0px) + 0.86rem);
  overflow: hidden;
}

.teacher-mobile-dashboard-demo__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(2, 6, 23, 0);
  backdrop-filter: blur(0);
  transition: background 160ms ease, backdrop-filter 160ms ease;
}

.teacher-mobile-dashboard-demo.is-profile-menu-open .teacher-mobile-dashboard-demo__screen::after,
.teacher-mobile-dashboard-demo.is-widget-sheet-open .teacher-mobile-dashboard-demo__screen::after {
  background: rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(7px);
}

.teacher-mobile-dashboard-demo__topbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
}

.teacher-mobile-dashboard-demo__search {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
  min-height: 2.72rem;
  padding: 0 0.78rem;
  color: rgba(226, 232, 240, 0.72);
  background: rgba(8, 17, 34, 0.62);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  font-size: clamp(0.72rem, 3.25vw, 0.86rem);
  font-weight: 850;
}

.teacher-mobile-dashboard-demo__search i {
  color: #7dd3fc;
  font-size: 1.08rem;
}

.teacher-mobile-dashboard-demo__search span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-mobile-dashboard-demo__notif,
.teacher-mobile-dashboard-demo__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.72rem;
  height: 2.72rem;
  color: #fff;
  border: 0;
  border-radius: 999px;
  font: inherit;
}

.teacher-mobile-dashboard-demo__notif {
  background: rgba(15, 23, 42, 0.28);
}

.teacher-mobile-dashboard-demo__notif i {
  color: #fda4af;
  font-size: 1.05rem;
}

.teacher-mobile-dashboard-demo__notif span {
  position: absolute;
  right: -0.18rem;
  top: -0.18rem;
  display: grid;
  place-items: center;
  min-width: 1.26rem;
  height: 1.26rem;
  padding: 0 0.24rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 950;
  box-shadow: 0 0 0 3px rgba(2, 6, 23, 0.84);
}

.teacher-mobile-dashboard-demo__avatar {
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.38), transparent 35%),
    linear-gradient(145deg, #f97316, #8b5cf6 62%, #0f172a);
  box-shadow: 0 16px 30px rgba(0,0,0,.26);
}

.teacher-mobile-dashboard-demo__avatar span {
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.teacher-mobile-dashboard-demo__pager {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
}

.teacher-mobile-dashboard-demo__page {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: 0;
  transform: translateX(1.4rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.teacher-mobile-dashboard-demo__page.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.teacher-mobile-dashboard-demo__page--apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(5.15rem, max-content);
  align-content: start;
  column-gap: clamp(0.54rem, 2.1vw, 0.78rem);
  row-gap: clamp(1.08rem, 4.1vw, 1.38rem);
  padding-top: clamp(1.1rem, 4.8vw, 1.65rem);
}

.teacher-mobile-dashboard-demo__app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.36rem;
  min-width: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: center;
}

.teacher-mobile-dashboard-demo__app span {
  display: grid;
  place-items: center;
  width: clamp(3rem, 15vw, 4rem);
  height: clamp(3rem, 15vw, 4rem);
  border-radius: 1.18rem;
  color: #fff;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.30), transparent 34%),
    linear-gradient(145deg, var(--teacher-demo-blue), #0f2c8f);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.teacher-mobile-dashboard-demo__app--danger span {
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.30), transparent 34%),
    linear-gradient(145deg, var(--teacher-demo-danger), #7f1d1d);
  box-shadow: 0 16px 28px rgba(239, 68, 68, 0.22);
}

.teacher-mobile-dashboard-demo__app i {
  font-size: clamp(1.2rem, 5vw, 1.58rem);
}

.teacher-mobile-dashboard-demo__app strong {
  display: block;
  max-width: min(100%, 4.8rem);
  min-height: 1.08em;
  max-height: 2.16em;
  overflow: hidden;
  color: rgba(248, 250, 252, 0.94);
  font-size: clamp(0.68rem, 3vw, 0.82rem);
  font-weight: 900;
  line-height: 1.08;
  text-overflow: ellipsis;
}

.teacher-mobile-dashboard-demo__page--widgets {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: clamp(2rem, 8vw, 3rem);
  padding: clamp(1.1rem, 4.4vw, 1.5rem) 0.2rem 0;
}

.teacher-mobile-dashboard-demo__course-widget {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(6.4rem, 0.82fr);
  grid-template-areas:
    "card votes"
    "label label";
  align-items: start;
  column-gap: clamp(0.86rem, 4vw, 1.25rem);
  row-gap: 0.44rem;
}

.teacher-mobile-dashboard-demo__course-card {
  grid-area: card;
  position: relative;
  min-height: clamp(9.4rem, 38vw, 11.8rem);
  padding: clamp(0.82rem, 3.6vw, 1.08rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 8%, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(145deg, rgba(129, 140, 248, 0.44), rgba(15, 23, 42, 0.74));
  border: 1px solid rgba(167, 139, 250, 0.44);
  border-radius: 1.45rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 22px 48px rgba(0,0,0,.24);
}

.teacher-mobile-dashboard-demo__course-icon {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 1.05rem;
  color: #dbeafe;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.14);
}

.teacher-mobile-dashboard-demo__countdown {
  position: absolute;
  right: 0.82rem;
  top: 0.95rem;
  max-width: 5.8rem;
  padding: 0.3rem 0.58rem;
  color: rgba(226, 232, 240, 0.86);
  background: rgba(99, 102, 241, 0.24);
  border: 1px solid rgba(199, 210, 254, 0.28);
  border-radius: 999px;
  font-size: clamp(0.64rem, 2.7vw, 0.78rem);
  font-weight: 900;
  white-space: nowrap;
}

.teacher-mobile-dashboard-demo__course-kicker {
  margin: 1.62rem 0 0 !important;
  color: rgba(226, 232, 240, 0.7) !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.teacher-mobile-dashboard-demo__course-card h2,
.teacher-mobile-dashboard-demo__event-card h2,
.teacher-mobile-dashboard-demo__info-card h2 {
  margin: 0.22rem 0 0;
  color: #fff;
  font-size: clamp(1.22rem, 5.5vw, 1.62rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.teacher-mobile-dashboard-demo__course-card p,
.teacher-mobile-dashboard-demo__event-card p,
.teacher-mobile-dashboard-demo__info-card p {
  margin: 0.42rem 0 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: clamp(0.72rem, 3vw, 0.86rem);
  font-weight: 850;
}

.teacher-mobile-dashboard-demo__votes {
  grid-area: votes;
  display: grid;
  gap: 0.42rem;
  padding-top: 0.2rem;
}

.teacher-mobile-dashboard-demo__votes p {
  margin: 0 0 0.28rem;
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.teacher-mobile-dashboard-demo__vote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 1.78rem;
  padding: 0 0.62rem;
  border-radius: 999px;
  font-size: clamp(0.64rem, 2.85vw, 0.78rem);
  font-weight: 950;
  white-space: nowrap;
}

.teacher-mobile-dashboard-demo__vote--present {
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.58);
  background: rgba(22, 163, 74, 0.12);
}

.teacher-mobile-dashboard-demo__vote--absent {
  color: #fecdd3;
  border: 1px solid rgba(244, 63, 94, 0.56);
  background: rgba(190, 18, 60, 0.1);
}

.teacher-mobile-dashboard-demo__vote--late {
  color: #fde68a;
  border: 1px solid rgba(234, 179, 8, 0.58);
  background: rgba(161, 98, 7, 0.12);
}

.teacher-mobile-dashboard-demo__tile-label {
  grid-area: label;
  display: block;
  color: rgba(248, 250, 252, 0.96);
  font-size: clamp(0.9rem, 3.8vw, 1.08rem);
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
}

.teacher-mobile-dashboard-demo__event-card,
.teacher-mobile-dashboard-demo__info-card {
  position: relative;
  width: min(14.8rem, 48vw);
  min-height: 9.2rem;
  padding: 0.92rem;
  border-radius: 1.35rem;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.teacher-mobile-dashboard-demo__event-art,
.teacher-mobile-dashboard-demo__info-card > span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.16);
}

.teacher-mobile-dashboard-demo__event-card h2,
.teacher-mobile-dashboard-demo__info-card h2 {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 4.4vw, 1.28rem);
}

.teacher-mobile-dashboard-demo__page--info {
  display: grid;
  place-items: start center;
  padding-top: 1.2rem;
}

.teacher-mobile-dashboard-demo__info-card {
  width: min(20rem, 90%);
}

.teacher-mobile-dashboard-demo__dots {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  min-height: 1.35rem;
}

.teacher-mobile-dashboard-demo__dots button {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
  transition: width 160ms ease, background 160ms ease, transform 160ms ease;
}

.teacher-mobile-dashboard-demo__dots button.is-active {
  width: 1.74rem;
  background: var(--teacher-demo-accent);
}

.teacher-mobile-dashboard-demo__dot-info {
  background: rgba(161, 98, 7, 0.72) !important;
}

.teacher-mobile-dashboard-demo__dot-info.is-active {
  background: var(--teacher-demo-yellow) !important;
}

.teacher-mobile-dashboard-demo__profile-menu,
.teacher-mobile-dashboard-demo__role-menu {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 4.25rem);
  right: max(0.9rem, calc((100vw - 430px) / 2 + 0.92rem));
  z-index: 5;
  width: min(19.8rem, calc(100vw - 2rem));
  padding: 1rem;
  color: var(--teacher-demo-text);
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.4rem;
  box-shadow: 0 22px 70px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
}

.teacher-mobile-dashboard-demo__profile-menu[hidden],
.teacher-mobile-dashboard-demo__role-menu[hidden],
.teacher-mobile-dashboard-demo__sheet[hidden] {
  display: none !important;
}

.teacher-mobile-dashboard-demo__profile-menu button,
.teacher-mobile-dashboard-demo__role-menu button {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.74rem;
  width: 100%;
  min-height: 3.05rem;
  padding: 0 0.35rem;
  color: var(--teacher-demo-text);
  background: transparent;
  border: 0;
  border-radius: 0.88rem;
  font: inherit;
  font-size: clamp(0.9rem, 4.3vw, 1.1rem);
  font-weight: 950;
  text-align: left;
}

.teacher-mobile-dashboard-demo__profile-menu button > i,
.teacher-mobile-dashboard-demo__role-menu button > i {
  font-size: 1.08rem;
  color: rgba(226, 232, 240, 0.94);
}

.teacher-mobile-dashboard-demo__profile-menu button > span,
.teacher-mobile-dashboard-demo__role-menu button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-mobile-dashboard-demo__profile-menu button:active,
.teacher-mobile-dashboard-demo__role-menu button:active,
.teacher-mobile-dashboard-demo__role-menu button.is-active {
  background: rgba(56, 189, 248, 0.14);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.36);
}

.teacher-mobile-dashboard-demo__profile-divider {
  height: 1px;
  margin: 0.48rem 0;
  background: rgba(148, 163, 184, 0.16);
}

.teacher-mobile-dashboard-demo__profile-thumb {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #f97316, #8b5cf6 62%, #0f172a);
  font-size: 0.64rem;
}

.teacher-mobile-dashboard-demo__role-menu header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.teacher-mobile-dashboard-demo__role-menu header button {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
}

.teacher-mobile-dashboard-demo__role-menu h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 4.6vw, 1.22rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.teacher-mobile-dashboard-demo__sheet {
  position: absolute;
  left: 50%;
  bottom: max(0.9rem, env(safe-area-inset-bottom, 0px));
  z-index: 5;
  width: min(400px, calc(100vw - 1.5rem));
  padding: 0.92rem;
  color: var(--teacher-demo-text);
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 1.65rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateX(-50%) translateY(0);
}

.teacher-mobile-dashboard-demo__sheet-grip {
  width: 3.2rem;
  height: 0.34rem;
  margin: 0.05rem auto 0.88rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.28);
}

.teacher-mobile-dashboard-demo__widget-empty {
  display: grid;
  place-items: center;
  gap: 0.38rem;
  margin: 0 0 0.84rem;
  min-height: 7.2rem;
  padding: 0.8rem;
  color: rgba(226, 232, 240, 0.8);
  border: 1px dashed rgba(56, 189, 248, 0.36);
  border-radius: 1.3rem;
  text-align: center;
}

.teacher-mobile-dashboard-demo__widget-empty span {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  border-radius: 999px;
}

.teacher-mobile-dashboard-demo__widget-empty strong {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.05;
}

.teacher-mobile-dashboard-demo__widget-empty p {
  max-width: 14.5rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.22;
}

.teacher-mobile-dashboard-demo__sheet header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.82rem;
}

.teacher-mobile-dashboard-demo__sheet header p {
  margin: 0;
  color: #67e8f9;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.teacher-mobile-dashboard-demo__sheet header h2 {
  margin: 0.1rem 0 0;
  color: #fff;
  font-size: clamp(1.18rem, 5vw, 1.45rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.teacher-mobile-dashboard-demo__sheet header > button {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: rgba(226, 232, 240, 0.78);
  background: rgba(148, 163, 184, 0.12);
  border: 0;
  border-radius: 999px;
}

.teacher-mobile-dashboard-demo__sheet-list {
  display: grid;
  gap: 0.62rem;
}

.teacher-mobile-dashboard-demo__sheet-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.58rem;
  min-height: 4rem;
  padding: 0.56rem 0.62rem;
  border-radius: 1.08rem;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.teacher-mobile-dashboard-demo__sheet-row--active {
  border-color: rgba(34, 197, 94, 0.58);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.12);
}

.teacher-mobile-dashboard-demo__sheet-row--disabled {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-style: dashed;
  opacity: 0.78;
}

.teacher-mobile-dashboard-demo__sheet-icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  border-radius: 0.92rem;
}

.teacher-mobile-dashboard-demo__sheet-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
}

.teacher-mobile-dashboard-demo__sizes {
  display: inline-flex;
  gap: 0.34rem;
}

.teacher-mobile-dashboard-demo__sizes span,
.teacher-mobile-dashboard-demo__sheet-row button,
.teacher-mobile-dashboard-demo__sheet-row em {
  display: inline-grid;
  place-items: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.58rem;
  border-radius: 0.72rem;
  font-size: 0.72rem;
  font-weight: 950;
  font-style: normal;
}

.teacher-mobile-dashboard-demo__sizes span {
  color: rgba(226, 232, 240, 0.82);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.teacher-mobile-dashboard-demo__sizes span.is-active {
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.16);
  border-color: rgba(34, 197, 94, 0.58);
}

.teacher-mobile-dashboard-demo__sheet-row button {
  color: #fecdd3;
  background: rgba(190, 18, 60, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.42);
  font: inherit;
}

.teacher-mobile-dashboard-demo__sheet-row em {
  min-width: 4rem;
  color: #fde68a;
  background: rgba(161, 98, 7, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.26);
}

.teacher-mobile-dashboard-demo__edit-bar {
  position: relative;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 4rem;
  padding: 0.76rem 1rem;
  color: #fff;
  background: rgba(2, 10, 26, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 1.2rem;
  box-shadow: 0 18px 45px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.teacher-mobile-dashboard-demo__edit-bar span {
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.teacher-mobile-dashboard-demo__edit-bar button {
  min-height: 2.65rem;
  padding: 0 1rem;
  color: #fff;
  background: rgba(14, 165, 233, 0.28);
  border: 1px solid rgba(125, 211, 252, 0.42);
  border-radius: 999px;
  font: inherit;
  font-weight: 950;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__edit-bar {
  display: flex;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page.is-active::before {
  content: "";
  position: absolute;
  inset: 0.15rem 0.08rem 0;
  border: 2px dashed rgba(56, 189, 248, 0.78);
  border-radius: 1.1rem;
  pointer-events: none;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__info-card::before {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border: 1.5px dashed rgba(56, 189, 248, 0.66);
  border-radius: 1rem;
  pointer-events: none;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__info-card::before {
  border-radius: 1.45rem;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::after,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::after,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::after {
  content: "×";
  position: absolute;
  right: 0.02rem;
  top: -0.45rem;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.92);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}

@media (max-width: 380px) {
  .teacher-mobile-dashboard-demo__screen {
    gap: 0.56rem;
  }

  .teacher-mobile-dashboard-demo__course-widget {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "card"
      "votes"
      "label";
  }

  .teacher-mobile-dashboard-demo__votes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
  }

  .teacher-mobile-dashboard-demo__sheet-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .teacher-mobile-dashboard-demo__sizes,
  .teacher-mobile-dashboard-demo__sheet-row button,
  .teacher-mobile-dashboard-demo__sheet-row em {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teacher-mobile-dashboard-demo,
  .teacher-mobile-dashboard-demo__page,
  .teacher-mobile-dashboard-demo__dots button,
  .teacher-mobile-dashboard-demo__screen::after {
    transition: none !important;
  }
}

/* =========================================================
   V49.8.8 - Guide mobile prof : personnalisation V2 guidée
   ======================================================= */
.teacher-mobile-dashboard-demo__course-widget,
.teacher-mobile-dashboard-demo__event-card,
.teacher-mobile-dashboard-demo__event-placeholder {
  position: relative;
}

.teacher-mobile-dashboard-demo__move-handle,
.teacher-mobile-dashboard-demo__remove-button {
  display: none;
  position: absolute;
  z-index: 3;
  place-items: center;
  width: 1.72rem;
  height: 1.72rem;
  padding: 0;
  color: #fff;
  border: 0;
  border-radius: 999px;
  font: inherit;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.teacher-mobile-dashboard-demo__move-handle {
  left: 0.58rem;
  top: 0.58rem;
  background: rgba(14, 165, 233, 0.88);
}

.teacher-mobile-dashboard-demo__remove-button {
  right: -0.38rem;
  top: -0.38rem;
  background: rgba(225, 29, 72, 0.94);
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__move-handle,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__remove-button {
  display: grid;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget {
  transform: translate3d(0, 0, 0);
  transition: transform 180ms ease, filter 180ms ease;
}

.teacher-mobile-dashboard-demo.is-widget-moved .teacher-mobile-dashboard-demo__course-widget {
  transform: translate3d(0.58rem, 0.42rem, 0) rotate(-0.7deg);
  filter: drop-shadow(0 18px 32px rgba(56, 189, 248, 0.18));
}

.teacher-mobile-dashboard-demo__event-placeholder {
  display: none;
  width: min(14.8rem, 48vw);
  min-height: 9.2rem;
  padding: 0.92rem;
  border-radius: 1.35rem;
  border: 1.5px dashed rgba(56, 189, 248, 0.42);
  background: rgba(8, 17, 34, 0.28);
  color: rgba(226, 232, 240, 0.76);
  text-align: center;
  align-content: center;
  justify-items: center;
  gap: 0.48rem;
}

.teacher-mobile-dashboard-demo__event-placeholder span {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
}

.teacher-mobile-dashboard-demo__event-placeholder strong {
  font-size: 0.88rem;
  line-height: 1.08;
}

.teacher-mobile-dashboard-demo.is-event-widget-removed .teacher-mobile-dashboard-demo__event-card {
  display: none;
}

.teacher-mobile-dashboard-demo.is-event-widget-removed .teacher-mobile-dashboard-demo__event-placeholder {
  display: grid;
}

.teacher-mobile-dashboard-demo__sheet-add {
  display: none !important;
  color: #bbf7d0 !important;
  background: rgba(22, 163, 74, 0.16) !important;
  border-color: rgba(34, 197, 94, 0.54) !important;
}

.teacher-mobile-dashboard-demo.is-event-widget-removed .teacher-mobile-dashboard-demo__sheet-row--event {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.teacher-mobile-dashboard-demo.is-event-widget-removed .teacher-mobile-dashboard-demo__sheet-row--event .teacher-mobile-dashboard-demo__sheet-remove {
  display: none !important;
}

.teacher-mobile-dashboard-demo.is-event-widget-removed .teacher-mobile-dashboard-demo__sheet-row--event .teacher-mobile-dashboard-demo__sheet-add {
  display: inline-grid !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--widgets.is-active {
  padding: clamp(0.84rem, 3.2vw, 1.1rem) 0.35rem 4.9rem;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page.is-active::before {
  inset: 0.06rem 0.02rem 0.15rem;
  border-width: 2px;
  border-radius: 1.35rem;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget::before {
  inset: -0.32rem;
  border-radius: 1.42rem;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-placeholder::before {
  content: "";
  position: absolute;
  inset: -0.22rem;
  border: 1.5px dashed rgba(56, 189, 248, 0.66);
  border-radius: 1.35rem;
  pointer-events: none;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::after,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::after {
  content: none;
}
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget::before {
  content: "";
  position: absolute;
  border: 1.5px dashed rgba(56, 189, 248, 0.66);
  pointer-events: none;
}

/* =========================================================
   V49.8.9 - Guide mobile prof : swipe, édition réalignée et widgets taille M
   ======================================================= */
.teacher-mobile-dashboard-demo__size-badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.62rem;
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.58);
  border-radius: 0.76rem;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1;
}

.teacher-mobile-dashboard-demo__pager {
  touch-action: pan-y;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__pager {
  touch-action: none;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--widgets {
  --teacher-demo-edit-cell: clamp(4.05rem, 19vw, 5.12rem);
  --teacher-demo-edit-gap: clamp(0.52rem, 2.35vw, 0.72rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, var(--teacher-demo-edit-cell)));
  grid-auto-rows: var(--teacher-demo-edit-cell);
  justify-content: center;
  align-content: start;
  gap: var(--teacher-demo-edit-gap);
  padding: clamp(0.82rem, 3.6vw, 1.12rem) 0.1rem 5.2rem;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget {
  grid-column: 1 / span 4;
  grid-row: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(6.2rem, 0.8fr);
  grid-template-areas:
    "card votes"
    "label label";
  align-self: stretch;
  min-height: 0;
  padding: 0;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-placeholder {
  grid-column: 1 / span 2;
  grid-row: span 2;
  width: 100%;
  min-height: 0;
  height: 100%;
}

.teacher-mobile-dashboard-demo.is-event-widget-removed.is-editing .teacher-mobile-dashboard-demo__event-placeholder {
  display: grid;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page.is-active::before {
  inset: 0.02rem;
  border-color: rgba(56, 189, 248, 0.72);
  border-radius: 1.25rem;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-placeholder::before {
  content: "";
  position: absolute;
  inset: -0.1rem;
  z-index: 2;
  border: 1.5px dashed rgba(56, 189, 248, 0.74);
  border-radius: 1.28rem;
  pointer-events: none;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::after,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::after,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::after {
  content: none !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__move-handle,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__remove-button {
  z-index: 5;
  width: 1.74rem;
  height: 1.74rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__move-handle {
  left: 0.42rem;
  top: 0.42rem;
  background: rgba(15, 23, 42, 0.82);
  color: #bfdbfe;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__remove-button {
  right: -0.48rem;
  top: -0.48rem;
  background: rgba(225, 29, 72, 0.96);
}

.teacher-mobile-dashboard-demo.is-widget-moved .teacher-mobile-dashboard-demo__course-widget {
  transform: translate3d(0.72rem, 0.58rem, 0) rotate(-0.45deg);
  filter: drop-shadow(0 20px 34px rgba(56, 189, 248, 0.22));
}

.teacher-mobile-dashboard-demo.is-widget-moved .teacher-mobile-dashboard-demo__course-widget::before {
  border-color: rgba(34, 197, 94, 0.88);
  box-shadow:
    0 0 0 2px rgba(34, 197, 94, 0.2),
    0 0 28px rgba(34, 197, 94, 0.22);
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__edit-bar {
  position: absolute;
  left: clamp(0.92rem, 3.8vw, 1.16rem);
  right: clamp(0.92rem, 3.8vw, 1.16rem);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 2.25rem);
  min-height: 3.65rem;
}

.teacher-mobile-dashboard-demo__sheet-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.teacher-mobile-dashboard-demo__sheet-row .teacher-mobile-dashboard-demo__size-badge {
  justify-self: end;
}

@media (max-width: 380px) {
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--widgets {
    --teacher-demo-edit-cell: clamp(3.68rem, 19.2vw, 4.42rem);
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget {
    grid-template-columns: minmax(0, 1fr) minmax(5.6rem, 0.72fr);
  }

  .teacher-mobile-dashboard-demo__sheet-row .teacher-mobile-dashboard-demo__size-badge {
    grid-column: auto;
  }
}

/* =========================================================
   V49.8.10 - Guide mobile prof : fidélité Dashboard V2, widgets M sans badge
   ======================================================= */
.teacher-mobile-dashboard-demo__move-handle,
.teacher-mobile-dashboard-demo__remove-button,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__move-handle,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__remove-button {
  display: none !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::after,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::after,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::after {
  content: none !important;
  display: none !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app {
  cursor: grab;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget:active,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card:active,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app:active {
  cursor: grabbing;
}

.teacher-mobile-dashboard-demo__sheet {
  display: grid;
  grid-template-rows: auto auto minmax(11.5rem, 1fr);
  max-height: min(72dvh, 35rem);
  overflow: hidden;
}

.teacher-mobile-dashboard-demo__widget-empty {
  min-height: clamp(7.5rem, 26dvh, 12rem);
  align-content: center;
  place-items: center;
  margin-bottom: 0.9rem;
}

.teacher-mobile-dashboard-demo__sheet-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.teacher-mobile-dashboard-demo__sheet-row,
.teacher-mobile-dashboard-demo__sheet-row--disabled,
.teacher-mobile-dashboard-demo.is-event-widget-removed .teacher-mobile-dashboard-demo__sheet-row--event {
  grid-template-columns: 2.65rem minmax(0, 1fr) minmax(4.8rem, auto) !important;
  align-items: center;
  gap: 0.64rem;
}

.teacher-mobile-dashboard-demo__sheet-row strong {
  min-width: 0;
  max-width: 100%;
}

.teacher-mobile-dashboard-demo__sheet-row .teacher-mobile-dashboard-demo__size-badge,
.teacher-mobile-dashboard-demo__size-badge {
  display: none !important;
}

.teacher-mobile-dashboard-demo__sheet-row button,
.teacher-mobile-dashboard-demo__sheet-row em {
  grid-column: auto !important;
  justify-self: end !important;
  min-width: 4.8rem;
  height: 2.08rem;
  border-radius: 999px;
}

.teacher-mobile-dashboard-demo__sheet-add {
  display: none !important;
}

.teacher-mobile-dashboard-demo.is-event-widget-removed .teacher-mobile-dashboard-demo__sheet-row--event .teacher-mobile-dashboard-demo__sheet-remove {
  display: none !important;
}

.teacher-mobile-dashboard-demo.is-event-widget-removed .teacher-mobile-dashboard-demo__sheet-row--event .teacher-mobile-dashboard-demo__sheet-add {
  display: inline-grid !important;
}

.teacher-mobile-dashboard-demo.is-event-widget-removed:not(.is-widget-sheet-open) .teacher-mobile-dashboard-demo__event-placeholder,
.teacher-mobile-dashboard-demo.is-event-widget-removed .teacher-mobile-dashboard-demo__event-placeholder {
  display: grid;
}

@media (max-width: 380px) {
  .teacher-mobile-dashboard-demo__sheet-row,
  .teacher-mobile-dashboard-demo__sheet-row--disabled,
  .teacher-mobile-dashboard-demo.is-event-widget-removed .teacher-mobile-dashboard-demo__sheet-row--event {
    grid-template-columns: 2.45rem minmax(0, 1fr) minmax(4.4rem, auto) !important;
    gap: 0.48rem;
  }

  .teacher-mobile-dashboard-demo__sheet-row button,
  .teacher-mobile-dashboard-demo__sheet-row em {
    min-width: 4.4rem;
    padding-inline: 0.5rem;
  }
}

/* =========================================================
   V49.8.11 - Guide mobile prof : édition fidèle, drag utilisable
   ======================================================= */
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__pager,
.teacher-mobile-dashboard-demo.is-demo-drag-active .teacher-mobile-dashboard-demo__pager {
  touch-action: none !important;
  overscroll-behavior: contain !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--widgets {
  display: grid !important;
  grid-template-columns: none !important;
  grid-template-rows: auto auto !important;
  align-content: start !important;
  justify-content: stretch !important;
  gap: clamp(2rem, 8vw, 3rem) !important;
  padding: clamp(1.1rem, 4.4vw, 1.5rem) 0.2rem 5.2rem !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page.is-active::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
  border-radius: 0.42rem !important;
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(56, 189, 248, 0.26) 0 1px,
      transparent 1px calc(clamp(3.68rem, 19.2vw, 4.9rem) + clamp(0.52rem, 2.35vw, 0.72rem))
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(56, 189, 248, 0.22) 0 1px,
      transparent 1px calc(clamp(3.68rem, 19.2vw, 4.9rem) + clamp(0.52rem, 2.35vw, 0.72rem))
    ) !important;
  opacity: 0.52 !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget {
  grid-column: auto !important;
  grid-row: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(6.4rem, 0.82fr) !important;
  grid-template-areas:
    "card votes"
    "label label" !important;
  align-self: auto !important;
  min-height: auto !important;
  padding: 0 !important;
  transform-origin: center center !important;
  will-change: transform !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-placeholder {
  grid-column: auto !important;
  grid-row: auto !important;
  width: min(14.8rem, 48vw) !important;
  min-height: 9.2rem !important;
  height: auto !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-placeholder::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::before {
  content: "" !important;
  position: absolute !important;
  inset: -0.08rem !important;
  z-index: 2 !important;
  border: 1.5px dashed rgba(56, 189, 248, 0.74) !important;
  border-radius: 1.08rem !important;
  pointer-events: none !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::after,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::after,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::after {
  content: none !important;
  display: none !important;
}

.teacher-mobile-dashboard-demo.is-editing [data-tutorial-edit-card],
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app {
  cursor: grab !important;
  touch-action: none !important;
}

.teacher-mobile-dashboard-demo.is-editing [data-tutorial-edit-card]:active,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app:active,
.teacher-mobile-dashboard-demo .is-demo-dragging {
  cursor: grabbing !important;
}

.teacher-mobile-dashboard-demo .is-demo-dragging {
  z-index: 9 !important;
  opacity: 0.96 !important;
  filter: drop-shadow(0 24px 42px rgba(56, 189, 248, 0.28));
}

.teacher-mobile-dashboard-demo.is-demo-edge-left .teacher-mobile-dashboard-demo__screen::before,
.teacher-mobile-dashboard-demo.is-demo-edge-right .teacher-mobile-dashboard-demo__screen::before {
  content: "";
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 5.1rem);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 6rem);
  z-index: 4;
  width: 2.1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.42), rgba(37, 99, 235, 0.08));
  pointer-events: none;
  filter: blur(0.2px);
}

.teacher-mobile-dashboard-demo.is-demo-edge-left .teacher-mobile-dashboard-demo__screen::before { left: 0.35rem; }
.teacher-mobile-dashboard-demo.is-demo-edge-right .teacher-mobile-dashboard-demo__screen::before { right: 0.35rem; }

.teacher-mobile-dashboard-demo.is-widget-moved .teacher-mobile-dashboard-demo__course-widget {
  transform: translate3d(0.72rem, 0.58rem, 0) rotate(-0.45deg);
  filter: drop-shadow(0 20px 34px rgba(56, 189, 248, 0.22));
}

.teacher-mobile-dashboard-demo.is-widget-moved .teacher-mobile-dashboard-demo__course-widget::before {
  border-color: rgba(34, 197, 94, 0.88) !important;
  box-shadow:
    0 0 0 2px rgba(34, 197, 94, 0.2),
    0 0 28px rgba(34, 197, 94, 0.22);
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__edit-bar {
  left: clamp(0.92rem, 3.8vw, 1.16rem) !important;
  right: clamp(0.92rem, 3.8vw, 1.16rem) !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 2.65rem) !important;
  min-height: 2.95rem !important;
  padding: 0.48rem 0.5rem 0.48rem 0.85rem !important;
  border-radius: 1.05rem !important;
}

.teacher-mobile-dashboard-demo__sheet {
  grid-template-rows: auto minmax(7.8rem, 0.78fr) minmax(12.5rem, 1.22fr) !important;
  max-height: min(78dvh, 38rem) !important;
}

.teacher-mobile-dashboard-demo__widget-empty {
  display: grid !important;
  align-content: center !important;
  justify-items: center !important;
  min-height: clamp(7.8rem, 23dvh, 12.5rem) !important;
  margin-bottom: 0.82rem !important;
}

.teacher-mobile-dashboard-demo__sheet-list {
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-right: 0.05rem !important;
}

.teacher-mobile-dashboard-demo__sheet-row,
.teacher-mobile-dashboard-demo__sheet-row--disabled,
.teacher-mobile-dashboard-demo.is-event-widget-removed .teacher-mobile-dashboard-demo__sheet-row--event {
  grid-template-columns: 2.65rem minmax(0, 1fr) minmax(4.8rem, auto) !important;
  gap: 0.64rem !important;
  align-items: center !important;
  min-height: 3.95rem !important;
}

.teacher-mobile-dashboard-demo__sheet-row strong {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* =========================================================
   V49.8.12 - Guide mobile prof : édition et catalogue alignés au rendu réel
   ======================================================= */
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__screen {
  --teacher-demo-edit-cell: clamp(3.5rem, 19.1vw, 4.85rem);
  --teacher-demo-edit-gap-x: clamp(0.52rem, 2.35vw, 0.72rem);
  --teacher-demo-edit-gap-y: clamp(0.5rem, 2.25vw, 0.68rem);
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__topbar,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__dots {
  z-index: 1;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__pager,
.teacher-mobile-dashboard-demo.is-demo-drag-active .teacher-mobile-dashboard-demo__pager,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page,
.teacher-mobile-dashboard-demo.is-editing [data-tutorial-edit-card],
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app {
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page.is-active {
  display: grid !important;
  grid-template-columns: repeat(4, var(--teacher-demo-edit-cell)) !important;
  grid-auto-rows: var(--teacher-demo-edit-cell) !important;
  gap: var(--teacher-demo-edit-gap-y) var(--teacher-demo-edit-gap-x) !important;
  justify-content: center !important;
  align-content: start !important;
  padding: clamp(0.45rem, 2.2vw, 0.72rem) 0 5.35rem !important;
  overflow: visible !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page.is-active::before {
  content: "" !important;
  position: absolute !important;
  inset: clamp(0.45rem, 2.2vw, 0.72rem) calc((100% - ((var(--teacher-demo-edit-cell) * 4) + (var(--teacher-demo-edit-gap-x) * 3))) / 2) 5.35rem !important;
  z-index: 0 !important;
  pointer-events: none !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  border-radius: 0.34rem !important;
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(56, 189, 248, 0.28) 0 1px,
      rgba(56, 189, 248, 0) 1px calc(var(--teacher-demo-edit-cell) + var(--teacher-demo-edit-gap-x))
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(56, 189, 248, 0.24) 0 1px,
      rgba(56, 189, 248, 0) 1px calc(var(--teacher-demo-edit-cell) + var(--teacher-demo-edit-gap-y))
    ),
    linear-gradient(90deg, rgba(124, 58, 237, 0.10), transparent 18%, transparent 82%, rgba(124, 58, 237, 0.10)),
    linear-gradient(180deg, rgba(124, 58, 237, 0.08), transparent 16%, transparent 84%, rgba(124, 58, 237, 0.08)) !important;
  box-shadow:
    inset -1px 0 0 rgba(56, 189, 248, 0.18),
    inset 0 -1px 0 rgba(56, 189, 248, 0.16) !important;
  opacity: 0.9 !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--apps .teacher-mobile-dashboard-demo__app {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
  z-index: 1 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  min-height: 0 !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--widgets .teacher-mobile-dashboard-demo__course-widget {
  grid-column: 1 / span 4 !important;
  grid-row: 1 / span 4 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--widgets .teacher-mobile-dashboard-demo__event-card,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--widgets .teacher-mobile-dashboard-demo__event-placeholder {
  grid-column: 1 / span 2 !important;
  grid-row: 5 / span 2 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--widgets .teacher-mobile-dashboard-demo__course-widget::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--widgets .teacher-mobile-dashboard-demo__event-card::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--widgets .teacher-mobile-dashboard-demo__event-placeholder::before,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--apps .teacher-mobile-dashboard-demo__app::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  pointer-events: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-image:
    repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.78) 0 5px, transparent 5px 9px),
    repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.78) 0 5px, transparent 5px 9px),
    repeating-linear-gradient(180deg, rgba(56, 189, 248, 0.78) 0 5px, transparent 5px 9px),
    repeating-linear-gradient(180deg, rgba(56, 189, 248, 0.78) 0 5px, transparent 5px 9px) !important;
  background-position: top left, bottom left, top left, top right !important;
  background-repeat: no-repeat !important;
  background-size: 100% 1.5px, 100% 1.5px, 1.5px 100%, 1.5px 100% !important;
  box-shadow: none !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card,
.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card {
  overflow: hidden !important;
}

.teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__edit-bar {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.58rem) !important;
  min-height: 3.05rem !important;
  border-radius: 1.05rem !important;
  z-index: 7 !important;
}

.teacher-mobile-dashboard-demo .is-demo-dragging {
  z-index: 12 !important;
  pointer-events: none !important;
}

.teacher-mobile-dashboard-demo.is-widget-moved .teacher-mobile-dashboard-demo__course-widget {
  transform: translate3d(0.35rem, 0.34rem, 0) rotate(-0.25deg) !important;
}

.teacher-mobile-dashboard-demo__sheet {
  grid-template-rows: auto minmax(8.8rem, 0.95fr) minmax(13.5rem, 1.18fr) !important;
  max-height: min(80dvh, 39rem) !important;
}

.teacher-mobile-dashboard-demo__widget-empty {
  min-height: 100% !important;
  align-content: center !important;
  justify-content: center !important;
  margin-block: 0 !important;
}

.teacher-mobile-dashboard-demo__sheet-list {
  min-height: 0 !important;
  max-height: none !important;
}

@media (max-width: 380px) {
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__screen {
    --teacher-demo-edit-cell: clamp(3.22rem, 18.6vw, 4.25rem);
    --teacher-demo-edit-gap-x: clamp(0.42rem, 2vw, 0.6rem);
    --teacher-demo-edit-gap-y: clamp(0.42rem, 2vw, 0.6rem);
  }
}

/* V49.8.13 — Guide mobile : rendu de modification calé sur la grille réelle. */
@media (max-width: 1023px) {
  .edq-tutorial__card {
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box !important;
  }

  .edq-tutorial__footer {
    flex-wrap: wrap !important;
    align-items: flex-end !important;
  }

  .edq-tutorial__progress {
    flex: 1 1 10rem !important;
    min-width: 0 !important;
    white-space: normal !important;
  }

  .edq-tutorial__actions {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  .edq-tutorial__actions .edq-tutorial__btn {
    max-width: 100% !important;
  }

  .teacher-mobile-dashboard-demo {
    --dashboard-v2-role-color: var(--teacher-demo-cyan);
    --dashboard-mobile-page-padding-x: clamp(0.92rem, 3.8vw, 1.16rem);
    --dashboard-mobile-page-col-gap: clamp(0.54rem, 2vw, 0.76rem);
    --dashboard-mobile-page-row-gap: clamp(1.12rem, 4.2vw, 1.42rem);
    --dashboard-mobile-cell-size: min(
      calc((min(430px, 100vw) - (var(--dashboard-mobile-page-padding-x) * 2) - (var(--dashboard-mobile-page-col-gap) * 3)) / 4),
      calc((100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 7.05rem - 1.35rem - (var(--dashboard-mobile-page-row-gap) * 5)) / 6)
    );
  }

  .teacher-mobile-dashboard-demo__screen {
    grid-template-rows: auto minmax(0, 1fr) 1.35rem auto !important;
    gap: .56rem !important;
    padding-inline: 0 !important;
  }

  .teacher-mobile-dashboard-demo__topbar {
    margin-inline: var(--dashboard-mobile-page-padding-x) !important;
  }

  .teacher-mobile-dashboard-demo__pager {
    width: 100% !important;
    overflow: hidden !important;
  }

  .teacher-mobile-dashboard-demo__page {
    inset: 0 !important;
    padding-inline: var(--dashboard-mobile-page-padding-x) !important;
    overflow: visible !important;
  }

  .teacher-mobile-dashboard-demo__page--apps,
  .teacher-mobile-dashboard-demo__page--widgets,
  .teacher-mobile-dashboard-demo__page--info {
    display: grid !important;
    grid-template-columns: repeat(4, var(--dashboard-mobile-cell-size)) !important;
    grid-template-rows: repeat(6, var(--dashboard-mobile-cell-size)) !important;
    column-gap: var(--dashboard-mobile-page-col-gap) !important;
    row-gap: var(--dashboard-mobile-page-row-gap) !important;
    align-content: start !important;
    justify-content: center !important;
    width: 100% !important;
    height: calc((var(--dashboard-mobile-cell-size) * 6) + (var(--dashboard-mobile-page-row-gap) * 5)) !important;
    max-height: 100% !important;
    padding-top: 0 !important;
  }

  .teacher-mobile-dashboard-demo__app {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
  }

  .teacher-mobile-dashboard-demo__app span {
    width: min(100%, clamp(3rem, 15vw, 4rem)) !important;
    height: min(100%, clamp(3rem, 15vw, 4rem)) !important;
  }

  .teacher-mobile-dashboard-demo__course-widget {
    grid-column: 1 / span 4 !important;
    grid-row: 1 / span 2 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(6.4rem, .9fr) !important;
    grid-template-areas: "card votes" "label votes" !important;
    column-gap: var(--dashboard-mobile-page-col-gap) !important;
    row-gap: .24rem !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    overflow: visible !important;
  }

  .teacher-mobile-dashboard-demo__course-card {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: clamp(.54rem, 2.4vw, .78rem) !important;
    border-radius: 1.06rem !important;
  }

  .teacher-mobile-dashboard-demo__course-icon {
    width: clamp(2rem, 9.5vw, 2.55rem) !important;
    height: clamp(2rem, 9.5vw, 2.55rem) !important;
    border-radius: clamp(.72rem, 3vw, .98rem) !important;
  }

  .teacher-mobile-dashboard-demo__countdown {
    top: .58rem !important;
    right: .58rem !important;
    max-width: 5.6rem !important;
  }

  .teacher-mobile-dashboard-demo__course-kicker {
    margin-top: clamp(.8rem, 5vw, 1.2rem) !important;
    font-size: clamp(.58rem, 2.35vw, .68rem) !important;
  }

  .teacher-mobile-dashboard-demo__course-card h2 {
    font-size: clamp(.98rem, 4.6vw, 1.28rem) !important;
    line-height: .98 !important;
  }

  .teacher-mobile-dashboard-demo__course-card p {
    font-size: clamp(.62rem, 2.7vw, .74rem) !important;
  }

  .teacher-mobile-dashboard-demo__votes {
    align-content: center !important;
    gap: .34rem !important;
    padding-top: 0 !important;
  }

  .teacher-mobile-dashboard-demo__vote {
    min-height: 1.48rem !important;
    padding-inline: .44rem !important;
    font-size: clamp(.58rem, 2.55vw, .7rem) !important;
  }

  .teacher-mobile-dashboard-demo__tile-label {
    align-self: start !important;
    font-size: clamp(.68rem, 3vw, .82rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .teacher-mobile-dashboard-demo__event-card,
  .teacher-mobile-dashboard-demo__event-placeholder {
    grid-column: 1 / span 4 !important;
    grid-row: 3 / span 2 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    border-radius: 1.06rem !important;
  }

  .teacher-mobile-dashboard-demo__info-card {
    grid-column: 1 / span 4 !important;
    grid-row: 2 / span 3 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
  }

  .teacher-mobile-dashboard-demo__dots {
    align-self: center !important;
    margin: 0 !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page.is-active::before {
    inset: 0 !important;
    border: 1px solid color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 28%, rgba(148,163,184,.14)) !important;
    border-radius: .34rem !important;
    background-image:
      repeating-linear-gradient(to right, transparent 0 var(--dashboard-mobile-cell-size), color-mix(in srgb, #a855f7 24%, transparent) var(--dashboard-mobile-cell-size) calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-col-gap))),
      repeating-linear-gradient(to bottom, transparent 0 var(--dashboard-mobile-cell-size), color-mix(in srgb, #a855f7 24%, transparent) var(--dashboard-mobile-cell-size) calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-row-gap))),
      repeating-linear-gradient(to right, color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 32%, transparent) 0 1px, transparent 1px calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-col-gap))),
      repeating-linear-gradient(to bottom, color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 30%, transparent) 0 1px, transparent 1px calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-row-gap))) !important;
    box-shadow:
      inset -1px 0 0 color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 24%, transparent),
      inset 0 -1px 0 color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 22%, transparent) !important;
    opacity: .62 !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__info-card::before {
    --dashboard-home-edit-dash-color: color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 76%, transparent);
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 8 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background-image:
      repeating-linear-gradient(90deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px),
      repeating-linear-gradient(90deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px),
      repeating-linear-gradient(180deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px),
      repeating-linear-gradient(180deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px) !important;
    background-position: top left, bottom left, top left, top right !important;
    background-repeat: no-repeat !important;
    background-size: 100% 1.5px, 100% 1.5px, 1.5px 100%, 1.5px 100% !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::after,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::after,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::after {
    content: none !important;
    display: none !important;
  }

  .teacher-mobile-dashboard-demo__edit-bar {
    position: fixed !important;
    left: max(.72rem, env(safe-area-inset-left, 0px)) !important;
    right: max(.72rem, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + .72rem) !important;
    width: auto !important;
    max-width: min(430px, calc(100vw - 1.44rem)) !important;
    margin-inline: auto !important;
  }

  .teacher-mobile-dashboard-demo__sheet {
    display: grid !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
    max-height: min(74dvh, 34rem) !important;
  }

  .teacher-mobile-dashboard-demo__widget-empty {
    min-height: clamp(8rem, 25dvh, 12rem) !important;
    display: grid !important;
    align-content: center !important;
    justify-content: center !important;
    margin-block: 0 .84rem !important;
  }

  .teacher-mobile-dashboard-demo__sheet-list {
    min-height: 0 !important;
    overflow: auto !important;
  }
}

/* V49.8.14 — Guide mobile : menu/infos/édition alignés au tableau de bord actuel. */
@media (max-width: 1023px) {
  .teacher-mobile-dashboard-demo__topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .teacher-mobile-dashboard-demo__notif {
    display: none !important;
  }

  .teacher-mobile-dashboard-demo__avatar {
    overflow: visible !important;
  }

  .teacher-mobile-dashboard-demo__avatar-badge,
  .teacher-mobile-dashboard-demo__menu-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.26rem;
    height: 1.26rem;
    padding: 0 .24rem;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: .65rem;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 0 0 3px rgba(2, 6, 23, .84), 0 0 18px rgba(225, 29, 72, .42);
  }

  .teacher-mobile-dashboard-demo__avatar-badge {
    position: absolute;
    right: -.18rem;
    top: -.18rem;
    animation: teacherDemoBadgePulse 1.65s ease-in-out infinite;
  }

  .teacher-mobile-dashboard-demo__menu-badge {
    justify-self: end;
    font-style: normal;
  }

  @keyframes teacherDemoBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(2, 6, 23, .84), 0 0 18px rgba(225, 29, 72, .36); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(2, 6, 23, .84), 0 0 26px rgba(225, 29, 72, .62); }
  }

  .teacher-mobile-dashboard-demo__profile-menu {
    max-height: min(78dvh, 29rem) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  .teacher-mobile-dashboard-demo__page--widgets {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 1fr) !important;
    place-items: start center !important;
    padding-top: 0 !important;
  }

  .teacher-mobile-dashboard-demo__edit-grid {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(4, var(--dashboard-mobile-cell-size)) !important;
    grid-template-rows: repeat(6, var(--dashboard-mobile-cell-size)) !important;
    column-gap: var(--dashboard-mobile-page-col-gap) !important;
    row-gap: var(--dashboard-mobile-page-row-gap) !important;
    width: calc((var(--dashboard-mobile-cell-size) * 4) + (var(--dashboard-mobile-page-col-gap) * 3)) !important;
    height: calc((var(--dashboard-mobile-cell-size) * 6) + (var(--dashboard-mobile-page-row-gap) * 5)) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    overflow: visible !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page.is-active::before {
    content: none !important;
    display: none !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__edit-grid::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    border: 1px solid color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 22%, rgba(148,163,184,.10)) !important;
    border-radius: .34rem !important;
    background-image:
      repeating-linear-gradient(
        to right,
        color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 28%, transparent) 0 1px,
        transparent 1px calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-col-gap))
      ),
      repeating-linear-gradient(
        to bottom,
        color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 24%, transparent) 0 1px,
        transparent 1px calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-row-gap))
      ) !important;
    box-shadow:
      inset -1px 0 0 color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 20%, transparent),
      inset 0 -1px 0 color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 18%, transparent) !important;
    opacity: .45 !important;
  }

  .teacher-mobile-dashboard-demo__tile {
    position: relative !important;
    z-index: 1 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
    transform-origin: center center !important;
  }

  .teacher-mobile-dashboard-demo__page--widgets .teacher-mobile-dashboard-demo__tile--course {
    grid-column: 1 / span 4 !important;
    grid-row: 1 / span 2 !important;
  }

  .teacher-mobile-dashboard-demo__page--widgets .teacher-mobile-dashboard-demo__tile--event {
    grid-column: 1 / span 2 !important;
    grid-row: 4 / span 2 !important;
  }

  .teacher-mobile-dashboard-demo__page--widgets .teacher-mobile-dashboard-demo__event-placeholder {
    grid-column: 3 / span 2 !important;
    grid-row: 4 / span 2 !important;
  }

  .teacher-mobile-dashboard-demo__widget-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: .22rem !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  .teacher-mobile-dashboard-demo__widget-stack > .dashboard-mobile-widget {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .teacher-mobile-dashboard-demo__tile .teacher-mobile-dashboard-demo__course-widget {
    grid-column: auto !important;
    grid-row: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(6.15rem, .88fr) !important;
    grid-template-areas: "card votes" !important;
    column-gap: var(--dashboard-mobile-page-col-gap) !important;
    row-gap: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    transform: none !important;
  }

  .teacher-mobile-dashboard-demo__tile .teacher-mobile-dashboard-demo__course-card {
    grid-area: card !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .teacher-mobile-dashboard-demo__tile .teacher-mobile-dashboard-demo__votes {
    grid-area: votes !important;
    align-content: center !important;
  }

  .teacher-mobile-dashboard-demo__tile .teacher-mobile-dashboard-demo__tile-label {
    position: static !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    justify-self: center !important;
    display: block !important;
    max-width: min(100%, calc(var(--dashboard-mobile-cell-size, 4rem) * 2.4)) !important;
    min-height: 1.05em !important;
    max-height: 1.05em !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    color: color-mix(in srgb, currentColor 94%, transparent) !important;
    font-size: clamp(.68rem, 3vw, .82rem) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.34) !important;
    pointer-events: none !important;
  }

  .teacher-mobile-dashboard-demo__tile .teacher-mobile-dashboard-demo__event-widget {
    display: grid !important;
    align-content: center !important;
    justify-items: start !important;
    gap: .42rem !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: .78rem !important;
    border-radius: 1.06rem !important;
    background: rgba(15, 23, 42, .72) !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-widget::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::after,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-widget::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__info-card::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::after,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::after,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::after {
    content: none !important;
    display: none !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__tile::after {
    --dashboard-home-edit-dash-color: color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 76%, transparent);
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 8 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background-image:
      repeating-linear-gradient(90deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px),
      repeating-linear-gradient(90deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px),
      repeating-linear-gradient(180deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px),
      repeating-linear-gradient(180deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px) !important;
    background-position: top left, bottom left, top left, top right !important;
    background-repeat: no-repeat !important;
    background-size: 100% 1.5px, 100% 1.5px, 1.5px 100%, 1.5px 100% !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  .teacher-mobile-dashboard-demo.is-widget-moved .teacher-mobile-dashboard-demo__tile--course {
    transform: translate3d(.35rem, .34rem, 0) rotate(-.25deg) !important;
  }

  .teacher-mobile-dashboard-demo.is-widget-moved .teacher-mobile-dashboard-demo__tile--course .teacher-mobile-dashboard-demo__course-widget {
    transform: none !important;
  }

  .teacher-mobile-dashboard-demo__page--info {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 1fr) !important;
    place-items: start center !important;
    padding-top: 0 !important;
  }

  .teacher-mobile-dashboard-demo__info-card.dashboard-mobile-footer {
    width: min(100%, 23.5rem) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .teacher-mobile-dashboard-demo__info-card .dashboard-mobile-footer__links a {
    pointer-events: none !important;
  }
}

/* =========================================================
   V49.8.15 - Guide mobile prof : mode édition aligné sur le rendu réel
   ======================================================= */
@media (max-width: 1023px) {
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile {
    --dashboard-v2-role-color: var(--teacher-demo-cyan, #38bdf8);
    --dashboard-mobile-page-padding-x: clamp(0.92rem, 3.8vw, 1.16rem);
    --dashboard-mobile-page-col-gap: clamp(0.54rem, 2vw, 0.76rem);
    --dashboard-mobile-page-row-gap: clamp(1.12rem, 4.2vw, 1.42rem);
    --dashboard-mobile-label-height: 1.08em;
    --dashboard-mobile-cell-size: min(
      calc((min(430px, 100vw) - (var(--dashboard-mobile-page-padding-x) * 2) - (var(--dashboard-mobile-page-col-gap) * 3)) / 4),
      calc((100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 7.05rem - 1.35rem - (var(--dashboard-mobile-page-row-gap) * 5)) / 6)
    );
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__screen {
    grid-template-rows: auto minmax(0, 1fr) 1.35rem auto !important;
    gap: .56rem !important;
    padding-inline: 0 !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__topbar {
    margin-inline: var(--dashboard-mobile-page-padding-x) !important;
    opacity: .52 !important;
    filter: saturate(.78) !important;
    pointer-events: none !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__pager {
    width: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    touch-action: none !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page {
    inset: 0 !important;
    padding-inline: var(--dashboard-mobile-page-padding-x) !important;
    overflow: visible !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page--widgets {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: start !important;
    justify-items: center !important;
    padding-top: 0 !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__edit-grid.dashboard-mobile-page__grid {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(4, var(--dashboard-mobile-cell-size)) !important;
    grid-template-rows: repeat(6, var(--dashboard-mobile-cell-size)) !important;
    column-gap: var(--dashboard-mobile-page-col-gap) !important;
    row-gap: var(--dashboard-mobile-page-row-gap) !important;
    align-content: start !important;
    justify-content: center !important;
    width: calc((var(--dashboard-mobile-cell-size) * 4) + (var(--dashboard-mobile-page-col-gap) * 3)) !important;
    height: calc((var(--dashboard-mobile-cell-size) * 6) + (var(--dashboard-mobile-page-row-gap) * 5)) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    transform: none !important;
    touch-action: none !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__edit-grid.dashboard-mobile-page__grid::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    border: 1px solid color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 28%, rgba(148,163,184,.14)) !important;
    border-radius: .34rem !important;
    background-image:
      repeating-linear-gradient(
        to right,
        transparent 0 var(--dashboard-mobile-cell-size),
        color-mix(in srgb, #a855f7 24%, transparent) var(--dashboard-mobile-cell-size) calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-col-gap))
      ),
      repeating-linear-gradient(
        to bottom,
        transparent 0 var(--dashboard-mobile-cell-size),
        color-mix(in srgb, #a855f7 24%, transparent) var(--dashboard-mobile-cell-size) calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-row-gap))
      ),
      repeating-linear-gradient(
        to right,
        color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 32%, transparent) 0 1px,
        transparent 1px calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-col-gap))
      ),
      repeating-linear-gradient(
        to bottom,
        color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 30%, transparent) 0 1px,
        transparent 1px calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-row-gap))
      ) !important;
    box-shadow:
      inset -1px 0 0 color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 24%, transparent),
      inset 0 -1px 0 color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 22%, transparent) !important;
    opacity: .62 !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__tile.dashboard-mobile-page__tile {
    z-index: 1 !important;
    position: relative !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    cursor: grab !important;
    transform-origin: center center !important;
    touch-action: none !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__tile.dashboard-mobile-page__tile:active {
    cursor: grabbing !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__tile.dashboard-mobile-page__tile::after {
    --dashboard-home-edit-dash-color: color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 76%, transparent);
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 8 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background-image:
      repeating-linear-gradient(90deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px),
      repeating-linear-gradient(90deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px),
      repeating-linear-gradient(180deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px),
      repeating-linear-gradient(180deg, var(--dashboard-home-edit-dash-color) 0 5px, transparent 5px 9px) !important;
    background-position: top left, bottom left, top left, top right !important;
    background-repeat: no-repeat !important;
    background-size: 100% 1.5px, 100% 1.5px, 1.5px 100%, 1.5px 100% !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__tile--course {
    grid-column: 1 / span 4 !important;
    grid-row: 1 / span 2 !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__tile--event,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-placeholder {
    grid-column: 1 / span 4 !important;
    grid-row: 4 / span 2 !important;
  }

  .teacher-mobile-dashboard-demo .teacher-mobile-dashboard-demo__tile--event,
  .teacher-mobile-dashboard-demo .teacher-mobile-dashboard-demo__event-placeholder {
    grid-column: 1 / span 4 !important;
    grid-row: 4 / span 2 !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__widget-stack.dashboard-mobile-widget-stack {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) var(--dashboard-mobile-label-height, 1.08em) !important;
    gap: .34rem !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__widget-stack > .dashboard-mobile-widget {
    grid-row: 1 !important;
    align-self: stretch !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__tile-label.dashboard-mobile-widget__label {
    grid-row: 2 !important;
    position: static !important;
    align-self: start !important;
    justify-self: center !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: var(--dashboard-mobile-label-height, 1.08em) !important;
    max-height: var(--dashboard-mobile-label-height, 1.08em) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    color: color-mix(in srgb, currentColor 94%, transparent) !important;
    font-size: clamp(.68rem, 3vw, .82rem) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.34) !important;
    pointer-events: none !important;
    z-index: 3 !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__edit-bar.dashboard-mobile-edit-bar {
    position: absolute !important;
    left: max(.72rem, env(safe-area-inset-left, 0px)) !important;
    right: max(.72rem, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + .72rem) !important;
    z-index: 2660 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 2.9rem !important;
    padding: .48rem .5rem .48rem .85rem !important;
    border: 1px solid color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 38%, rgba(148,163,184,.24)) !important;
    border-radius: 1.05rem !important;
    background: color-mix(in srgb, #020617 82%, transparent) !important;
    color: #f8fafc !important;
    box-shadow: 0 18px 46px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.10) !important;
    backdrop-filter: blur(18px) saturate(1.18) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
  }

  .teacher-mobile-dashboard-demo.is-widget-moved .teacher-mobile-dashboard-demo__tile--course {
    transform: translate3d(0.18rem, 0.18rem, 0) !important;
    filter: drop-shadow(0 18px 34px rgba(56,189,248,.22)) !important;
  }

  .teacher-mobile-dashboard-demo.is-widget-moved .teacher-mobile-dashboard-demo__tile--course::after {
    --dashboard-home-edit-dash-color: color-mix(in srgb, #22c55e 82%, transparent);
  }
}

/* V49.8.16 - Guide tableau de bord mobile : mode modification calqué sur le vrai rendu natif. */
@media (max-width: 1023px) {
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile {
    --dashboard-mobile-navbar-height: clamp(4.75rem, 14vw, 5.25rem);
    --dashboard-mobile-dots-height: 1.35rem;
    --dashboard-mobile-page-padding-x: clamp(0.92rem, 3.8vw, 1.16rem);
    --dashboard-mobile-page-col-gap: clamp(0.54rem, 2vw, 0.76rem);
    --dashboard-mobile-page-row-gap: clamp(1.12rem, 4.2vw, 1.42rem);
    --dashboard-mobile-cell-size: min(
      calc((100vw - (var(--dashboard-mobile-page-padding-x) * 2) - (var(--dashboard-mobile-page-col-gap) * 3)) / 4),
      calc((100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - var(--dashboard-mobile-navbar-height) - var(--dashboard-mobile-dots-height) - 0.7rem - (var(--dashboard-mobile-page-row-gap) * 5)) / 6)
    );
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile .teacher-mobile-dashboard-demo__page--widgets.dashboard-mobile-page {
    display: grid !important;
    align-content: start !important;
    justify-items: center !important;
    grid-template-rows: none !important;
    gap: 0 !important;
    padding: 0 var(--dashboard-mobile-page-padding-x) !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile .teacher-mobile-dashboard-demo__edit-grid.dashboard-mobile-page__grid {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(4, var(--dashboard-mobile-cell-size)) !important;
    grid-template-rows: repeat(6, var(--dashboard-mobile-cell-size)) !important;
    column-gap: var(--dashboard-mobile-page-col-gap) !important;
    row-gap: var(--dashboard-mobile-page-row-gap) !important;
    width: calc((var(--dashboard-mobile-cell-size) * 4) + (var(--dashboard-mobile-page-col-gap) * 3)) !important;
    height: calc((var(--dashboard-mobile-cell-size) * 6) + (var(--dashboard-mobile-page-row-gap) * 5)) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile .dashboard-mobile-page__tile {
    position: relative !important;
    overflow: visible !important;
    z-index: 1;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__edit-grid.dashboard-mobile-page__grid::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    border: 1px solid color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 28%, rgba(148,163,184,.14)) !important;
    border-radius: 0.34rem !important;
    background-image:
      repeating-linear-gradient(
        to right,
        transparent 0 var(--dashboard-mobile-cell-size),
        color-mix(in srgb, #a855f7 24%, transparent) var(--dashboard-mobile-cell-size) calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-col-gap))
      ),
      repeating-linear-gradient(
        to bottom,
        transparent 0 var(--dashboard-mobile-cell-size),
        color-mix(in srgb, #a855f7 24%, transparent) var(--dashboard-mobile-cell-size) calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-row-gap))
      ),
      repeating-linear-gradient(
        to right,
        color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 28%, transparent) 0 1px,
        transparent 1px calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-col-gap))
      ),
      repeating-linear-gradient(
        to bottom,
        color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 24%, transparent) 0 1px,
        transparent 1px calc(var(--dashboard-mobile-cell-size) + var(--dashboard-mobile-page-row-gap))
      ) !important;
    box-shadow:
      inset -1px 0 0 color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 20%, transparent),
      inset 0 -1px 0 color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 18%, transparent) !important;
    opacity: .78 !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .dashboard-mobile-page__tile::after,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .dashboard-mobile-page__tile--widget::after,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .dashboard-mobile-page__tile--panel::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    border: 1.35px dashed color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 74%, rgba(255,255,255,.16)) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .dashboard-mobile-widget-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.34rem !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .dashboard-mobile-widget-stack > .dashboard-mobile-widget {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .dashboard-mobile-widget__label {
    position: static !important;
    flex: 0 0 auto !important;
    display: block !important;
    line-height: 1.05 !important;
    min-height: 1.05em !important;
    max-height: 1.05em !important;
    margin: 0 auto !important;
    z-index: auto !important;
  }

  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__page.is-active::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__info-card::before,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__app::after,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__course-card::after,
  .teacher-mobile-dashboard-demo.is-editing .teacher-mobile-dashboard-demo__event-card::after {
    content: none !important;
    display: none !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__edit-bar.dashboard-mobile-edit-bar {
    display: flex !important;
  }
}

/* V49.8.17 - Guide mobile prof : édition calée sur le rendu natif réel. */
@media (max-width: 1023px) {
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile {
    --dashboard-v2-role-color: var(--teacher-demo-cyan, #38bdf8) !important;
    --dashboard-mobile-navbar-height: clamp(5.35rem, 16vw, 6.15rem) !important;
    --dashboard-mobile-dots-height: 1.35rem !important;
    --dashboard-mobile-page-padding-x: clamp(0.92rem, 3.8vw, 1.16rem) !important;
    --dashboard-mobile-page-col-gap: clamp(0.54rem, 2vw, 0.76rem) !important;
    --dashboard-mobile-page-row-gap: clamp(1.12rem, 4.2vw, 1.42rem) !important;
    --dashboard-mobile-cell-size: min(
      calc((min(430px, 100vw) - (var(--dashboard-mobile-page-padding-x) * 2) - (var(--dashboard-mobile-page-col-gap) * 3)) / 4),
      calc((100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - var(--dashboard-mobile-navbar-height) - var(--dashboard-mobile-dots-height) - 0.7rem - (var(--dashboard-mobile-page-row-gap) * 5)) / 6)
    ) !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__screen {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) var(--dashboard-mobile-dots-height) auto !important;
    gap: 0.56rem !important;
    width: min(430px, 100vw) !important;
    padding-inline: 0 !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__topbar {
    margin-inline: var(--dashboard-mobile-page-padding-x) !important;
    opacity: 0.62 !important;
    filter: saturate(0.82) brightness(0.9) !important;
    pointer-events: none !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__pager {
    height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - var(--dashboard-mobile-navbar-height) - var(--dashboard-mobile-dots-height) - 0.25rem) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    touch-action: none !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__page,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__page--widgets.dashboard-mobile-page {
    display: grid !important;
    align-content: start !important;
    justify-items: center !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 var(--dashboard-mobile-page-padding-x) !important;
    overflow: visible !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__page:not(.is-active) {
    display: none !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__edit-grid.dashboard-mobile-page__grid {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(4, var(--dashboard-mobile-cell-size)) !important;
    grid-template-rows: repeat(6, var(--dashboard-mobile-cell-size)) !important;
    column-gap: var(--dashboard-mobile-page-col-gap) !important;
    row-gap: var(--dashboard-mobile-page-row-gap) !important;
    width: calc((var(--dashboard-mobile-cell-size) * 4) + (var(--dashboard-mobile-page-col-gap) * 3)) !important;
    height: calc((var(--dashboard-mobile-cell-size) * 6) + (var(--dashboard-mobile-page-row-gap) * 5)) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    touch-action: none !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__edit-grid.dashboard-mobile-page__grid::before,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__page.is-active::before,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__app::before,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__course-widget::before,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__course-card::before,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__event-card::before,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__info-card::before,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__app::after,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__course-card::after,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__event-card::after {
    content: none !important;
    display: none !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__tile.dashboard-mobile-page__tile {
    position: relative !important;
    z-index: 1 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    cursor: grab !important;
    touch-action: none !important;
    transform-origin: center center !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__tile--course {
    grid-column: 1 / span 4 !important;
    grid-row: 1 / span 2 !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__tile--event,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__event-placeholder {
    grid-column: 1 / span 4 !important;
    grid-row: 4 / span 2 !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__tile.dashboard-mobile-page__tile::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 8 !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    border: 1.5px dashed color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 76%, rgba(255,255,255,.16)) !important;
    border-radius: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__tile:active,
  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__tile.is-demo-dragging {
    cursor: grabbing !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__widget-stack.dashboard-mobile-widget-stack {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__widget-stack > .dashboard-mobile-widget {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__tile .teacher-mobile-dashboard-demo__course-widget {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(6.2rem, .9fr) !important;
    grid-template-areas: "card votes" !important;
    column-gap: var(--dashboard-mobile-page-col-gap) !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transform: none !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__tile .teacher-mobile-dashboard-demo__course-card {
    grid-area: card !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: clamp(.54rem, 2.4vw, .78rem) !important;
    border-radius: 1.06rem !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__tile .teacher-mobile-dashboard-demo__votes {
    grid-area: votes !important;
    align-content: center !important;
    gap: .32rem !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__tile-label.dashboard-mobile-widget__label {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + .24rem) !important;
    display: block !important;
    max-width: min(100%, calc(var(--dashboard-mobile-cell-size, 4rem) * 2 - .25rem)) !important;
    min-height: 1.08em !important;
    max-height: 1.08em !important;
    margin-inline: auto !important;
    overflow: hidden !important;
    font-size: clamp(.68rem, 3vw, .82rem) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    pointer-events: none !important;
  }

  .teacher-mobile-dashboard-demo.dashboard-v2--native-mobile.is-dashboard-home-editing .teacher-mobile-dashboard-demo__edit-bar.dashboard-mobile-edit-bar {
    position: absolute !important;
    left: max(.72rem, env(safe-area-inset-left, 0px)) !important;
    right: max(.72rem, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + .72rem) !important;
    z-index: 2660 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 3.05rem !important;
    padding: .48rem .5rem .48rem .85rem !important;
    border-radius: 1.05rem !important;
    background: color-mix(in srgb, #020617 82%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 38%, rgba(148,163,184,.24)) !important;
    box-shadow: 0 18px 46px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.10) !important;
    backdrop-filter: blur(18px) saturate(1.18) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
  }
}
