:root {
  --bg: #eef5ff;
  --surface: rgba(255, 251, 246, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(0, 118, 212, 0.16);
  --text: #0f3b66;
  --muted: #4a6c92;
  --brand: #008ff7;
  --brand-deep: #005ca8;
  --brand-bright: #58c8ff;
  --accent: #ff8c1a;
  --accent-deep: #cf6410;
  --accent-bright: #ffbe45;
  --accent-soft: #ffd3ab;
  --accent-glow: rgba(255, 140, 26, 0.34);
  --shadow: 0 18px 45px rgba(14, 51, 92, 0.15);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "Rockwell", "Cambria", "Georgia", serif;
  --font-body: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  --page-sky-a: #9bdcff;
  --page-sky-b: #d7f1ff;
  --page-sky-c: #ffbb78;
  --page-orange-glow: 0.62;
  --page-blue-glow: 0.52;
  --page-orange-x: 0px;
  --page-orange-y: 0px;
  --page-blue-x: 0px;
  --page-blue-y: 0px;
  --page-skyline-x: 0px;
  --page-skyline-y: 0px;
  --page-skyline-opacity: 0.25;
  --page-skyline-filter: none;
  --page-backdrop-opacity: 0.82;
  --page-backdrop-one-x: 0px;
  --page-backdrop-one-y: 0px;
  --page-backdrop-two-x: 0px;
  --page-backdrop-two-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

html.viewer-booting .backdrop,
html.viewer-booting .hero,
html.viewer-booting .main-layout,
html.viewer-booting .site-footnote {
  visibility: hidden;
}

html.jump-detail-booting .backdrop,
html.jump-detail-booting .moniteur-back,
html.jump-detail-booting .hero,
html.jump-detail-booting .main-layout {
  visibility: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at calc(72% + var(--page-orange-x)) calc(12% + var(--page-orange-y)), rgba(255, 140, 26, var(--page-orange-glow)), rgba(255, 140, 26, 0) 22rem),
    radial-gradient(circle at calc(8% + var(--page-blue-x)) calc(76% + var(--page-blue-y)), rgba(0, 143, 247, var(--page-blue-glow)), rgba(0, 143, 247, 0) 24rem),
    linear-gradient(160deg, var(--page-sky-a) 0%, var(--page-sky-b) 50%, var(--page-sky-c) 100%);
  color: var(--text);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  left: clamp(-7rem, -6vw, -2rem);
  bottom: -2.8rem;
  z-index: 0;
  width: min(900px, 76vw);
  height: clamp(180px, 28vh, 360px);
  background: url("assets/backgrounds/strasbourg-skyline.png") left bottom / contain no-repeat;
  filter: var(--page-skyline-filter);
  opacity: var(--page-skyline-opacity);
  transform: translate3d(var(--page-skyline-x), var(--page-skyline-y), 0);
  transition: opacity 280ms ease, filter 280ms ease;
}

body.viewer-open {
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

.backdrop {
  pointer-events: none;
  position: fixed;
  inset: auto;
  border-radius: 999px;
  opacity: var(--page-backdrop-opacity);
  z-index: 0;
}

.backdrop-one {
  width: 34rem;
  height: 34rem;
  top: -12rem;
  right: -10rem;
  background:
    radial-gradient(circle at 42% 42%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at center, rgba(255, 140, 26, 0.25), rgba(255, 140, 26, 0));
  transform: translate3d(var(--page-backdrop-one-x), var(--page-backdrop-one-y), 0);
}

.backdrop-two {
  width: 32rem;
  height: 32rem;
  bottom: -12rem;
  left: -10rem;
  background:
    radial-gradient(circle at center, rgba(0, 143, 247, 0.22), rgba(0, 143, 247, 0)),
    radial-gradient(circle at 65% 30%, rgba(88, 200, 255, 0.16), rgba(88, 200, 255, 0));
  transform: translate3d(var(--page-backdrop-two-x), var(--page-backdrop-two-y), 0);
}

.shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.suivi-page .shell {
  width: min(1680px, calc(100% - 1.2rem));
}

.suivi-page {
  overflow-x: hidden;
}

.suivi-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 1rem;
}

.suivi-topbar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 0.95;
  white-space: nowrap;
}

.suivi-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.suivi-save-button {
  min-width: 8.5rem;
}

.suivi-save-button.is-saving,
.suivi-save-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.suivi-save-status {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(0, 118, 212, 0.13);
  color: var(--muted);
  font-size: 0.9rem;
}

.suivi-auth-user {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.suivi-layout {
  display: grid;
  grid-template-columns: minmax(245px, 0.24fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding-bottom: 2rem;
}

.suivi-sidebar,
.suivi-board,
.suivi-student-card,
.suivi-table-card,
.suivi-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.suivi-sidebar,
.suivi-board {
  border-radius: var(--radius-xl);
}

.suivi-sidebar {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
}

.suivi-sidebar-head,
.suivi-student-title,
.suivi-table-head,
.suivi-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.suivi-sidebar h2,
.suivi-student-card h2,
.suivi-table-card h2,
.suivi-dialog h2,
.suivi-empty h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1;
}

.suivi-new-student-button {
  margin-top: 0.7rem;
}

.suivi-field {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.suivi-field input,
.suivi-field select,
.suivi-mini-textarea {
  width: 100%;
  border: 1px solid rgba(0, 118, 212, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
}

.suivi-field input,
.suivi-field select {
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
}

.suivi-toggle-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(0, 118, 212, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.suivi-toggle-field input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.suivi-student-list {
  display: grid;
  gap: 0.55rem;
  max-height: 42vh;
  overflow: auto;
  padding-right: 0.2rem;
}

.suivi-student-button {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(0, 118, 212, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 0.8rem;
  cursor: pointer;
}

.suivi-student-button:hover,
.suivi-student-button.is-active {
  border-color: rgba(255, 140, 26, 0.55);
  box-shadow: 0 10px 24px rgba(14, 51, 92, 0.08);
}

.suivi-student-button span,
.suivi-student-button small,
.suivi-list-empty,
.suivi-storage-box p {
  color: var(--muted);
}

.suivi-student-button .suivi-student-validated {
  color: var(--accent-deep);
  font-weight: 800;
}

.suivi-storage-box {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 118, 212, 0.12);
}

.suivi-storage-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.suivi-import-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.suivi-import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.suivi-board {
  min-height: 62vh;
  padding: 0.8rem;
}

.suivi-empty {
  display: grid;
  place-items: start;
  gap: 0.8rem;
  min-height: 45vh;
  padding: 2rem;
}

.suivi-empty p {
  max-width: 45rem;
  color: var(--muted);
  line-height: 1.6;
}

.suivi-active {
  display: grid;
  gap: 1rem;
}

.suivi-student-card,
.suivi-table-card {
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.suivi-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.suivi-student-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.suivi-validation-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 26, 0.28);
  background: rgba(255, 140, 26, 0.12);
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 900;
}

.danger-text {
  color: #b53024;
}

.suivi-table-card {
  overflow: hidden;
}

.suivi-table-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.suivi-table-wrap {
  margin-top: 1rem;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(0, 118, 212, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.suivi-eval-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.suivi-eval-table th,
.suivi-eval-table td {
  border: 1px solid rgba(0, 118, 212, 0.1);
  padding: 0.38rem;
  vertical-align: middle;
}

.suivi-eval-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7fbff;
  color: var(--text);
}

.suivi-eval-table tbody th {
  width: 13.5rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.suivi-label-cell {
  display: grid;
  gap: 0.35rem;
  align-items: start;
}

.suivi-fiche-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.suivi-fiche-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 118, 212, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-deep);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.suivi-fiche-link:hover {
  border-color: rgba(255, 140, 26, 0.5);
  color: var(--accent-deep);
  background: rgba(255, 248, 240, 0.9);
}

.suivi-criteria-col {
  text-align: left;
}

.suivi-section-row th {
  background:
    linear-gradient(90deg, rgba(0, 143, 247, 0.16), rgba(255, 140, 26, 0.18)) !important;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.suivi-section-row .suivi-label-cell {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.suivi-date-input {
  width: 7.2rem;
  margin-top: 0.35rem;
  border: 1px solid rgba(0, 118, 212, 0.12);
  border-radius: 10px;
  padding: 0.35rem;
  font: inherit;
  color: var(--muted);
}

.suivi-jump-init {
  display: grid;
  gap: 0.22rem;
  margin-top: 0.42rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.suivi-jump-init select {
  width: 7.2rem;
  border: 1px solid rgba(0, 118, 212, 0.12);
  border-radius: 10px;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.eval-cell {
  width: 100%;
  min-height: 1.95rem;
  border: 1px solid rgba(0, 118, 212, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.eval-cell:disabled {
  cursor: default;
}

.eval-cell.state-working {
  border-color: rgba(210, 56, 42, 0.45);
  background: rgba(255, 92, 76, 0.18);
  color: #9f241b;
}

.eval-cell.state-partial {
  border-color: rgba(232, 168, 29, 0.48);
  background: rgba(255, 205, 74, 0.24);
  color: #956111;
}

.eval-cell.state-ok {
  border-color: rgba(26, 142, 89, 0.34);
  background: rgba(62, 185, 126, 0.18);
  color: #11603f;
}

.suivi-mini-textarea {
  min-height: 5rem;
  resize: vertical;
  padding: 0.55rem;
  line-height: 1.35;
}

.suivi-free-row th,
.suivi-free-row td {
  background: rgba(255, 248, 240, 0.52);
}

.suivi-dialog {
  width: min(720px, calc(100% - 2rem));
  border-radius: var(--radius-xl);
  padding: 1.2rem;
}

.suivi-dialog::backdrop {
  background: rgba(7, 24, 43, 0.52);
  backdrop-filter: blur(5px);
}

.suivi-dialog form {
  display: grid;
  gap: 1rem;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-shell {
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand-deep);
  text-decoration: none;
}

.brand-logo {
  width: 3.2rem;
  height: 3.2rem;
  flex: 0 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: white;
  box-shadow:
    0 16px 32px rgba(0, 92, 168, 0.18),
    0 0 0 1px rgba(0, 143, 247, 0.12);
  object-fit: cover;
}

.brand-lockup span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.brand-lockup .brand-name-b2 {
  color: var(--accent);
}

html[data-background-phase="nightfall"] .hero-sitebar > .brand-lockup,
html[data-background-phase="night"] .hero-sitebar > .brand-lockup,
html[data-background-phase="deep-night"] .hero-sitebar > .brand-lockup {
  color: rgba(246, 251, 255, 0.96);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.brand-lockup-small,
.auth-brand {
  margin-bottom: 0.95rem;
}

.brand-lockup-small .brand-logo,
.auth-brand .brand-logo {
  width: 2.65rem;
  height: 2.65rem;
}

.brand-lockup-small span,
.auth-brand span {
  font-size: 1.2rem;
}

.login-card {
  width: min(560px, 100%);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 246, 237, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 0.95;
}

.login-copy {
  margin: 1rem 0 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 0.85rem;
}

.login-error,
.login-warning {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  line-height: 1.45;
  font-weight: 800;
}

.login-error {
  border: 1px solid rgba(210, 56, 42, 0.25);
  background: rgba(255, 92, 76, 0.14);
  color: #9f241b;
}

.login-warning {
  border: 1px solid rgba(255, 140, 26, 0.34);
  background: rgba(255, 190, 69, 0.18);
  color: var(--accent-deep);
}

.access-page {
  min-height: 100vh;
}

.access-shell {
  display: grid;
  min-height: 100vh;
  padding: 2rem 0;
  place-items: center;
}

.access-card {
  width: min(1180px, 100%);
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 249, 255, 0.88) 52%, rgba(255, 244, 229, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.access-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.access-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.92;
}

.access-user {
  color: var(--brand-deep);
  font-weight: 900;
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.access-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.2rem, 3vw, 2rem);
}

.access-choice-grid-protected {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.access-choice-grid-protected .access-choice strong {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.access-choice {
  display: grid;
  grid-template-rows: auto minmax(5.4rem, auto) auto;
  align-content: start;
  gap: 0.65rem;
  min-height: 210px;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(16, 141, 222, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 247, 255, 0.9)),
    var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(8, 44, 82, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.access-choice:hover {
  border-color: rgba(255, 127, 26, 0.55);
  box-shadow: 0 24px 55px rgba(255, 127, 26, 0.16);
  transform: translateY(-3px);
}

.access-choice strong {
  display: flex;
  align-items: flex-end;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 0.98;
}

.access-choice span:last-child {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.dt48-shell {
  display: grid;
  gap: 1.2rem;
  padding: 2rem 0;
}

.dt48-hero,
.dt48-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 249, 255, 0.88) 52%, rgba(255, 244, 229, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dt48-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.35rem, 4vw, 2.5rem);
}

.dt48-hero h1 {
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 7vw, 5rem);
  line-height: 0.92;
  white-space: nowrap;
}

.dt48-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.dt48-form-panel,
.dt48-result-panel {
  border: 1px solid rgba(16, 141, 222, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  padding: clamp(1rem, 3vw, 1.35rem);
}

.dt48-form-panel {
  display: grid;
  align-content: start;
  gap: 0.95rem;
}

.dt48-form-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.dt48-note {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.dt48-note {
  margin: 0.1rem 0 0;
  font-size: 0.94rem;
}

.dt48-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 127, 26, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 229, 0.82));
  color: var(--brand-deep);
  font-weight: 900;
  cursor: pointer;
}

.dt48-option input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

.dt48-result-panel {
  display: grid;
  gap: 1rem;
}

.dt48-error {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(210, 56, 42, 0.25);
  border-radius: 18px;
  background: rgba(255, 92, 76, 0.14);
  color: #9f241b;
  font-weight: 850;
}

.dt48-result-main {
  display: grid;
  gap: 0.25rem;
  min-height: 190px;
  align-content: center;
  justify-items: center;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 139, 26, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(0, 143, 247, 0.14), rgba(255, 255, 255, 0.92));
  color: var(--brand-deep);
  text-align: center;
}

.dt48-result-main span,
.dt48-result-main small {
  color: var(--muted);
  font-weight: 850;
}

.dt48-result-main strong {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 7.5rem);
  line-height: 0.82;
}

.dt48-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.dt48-result-grid div {
  padding: 0.85rem;
  border: 1px solid rgba(20, 56, 93, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.dt48-result-grid dt {
  margin-bottom: 0.35rem;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dt48-result-grid dd {
  margin: 0;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}

.dt48-standard-size {
  border-color: rgba(255, 127, 26, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 229, 0.84)) !important;
}

.dt48-standard-size dd {
  font-size: 1.25rem;
}

.chrono-shell {
  padding-top: 1rem;
}

.chrono-hero {
  align-items: center;
  padding: clamp(1rem, 2.6vw, 1.55rem);
}

.chrono-top-actions {
  flex-wrap: nowrap;
  align-items: center;
}

.chrono-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) minmax(440px, 1.45fr);
  gap: 1rem;
  padding: clamp(0.75rem, 2.2vw, 1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 140, 26, 0.18), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(233, 247, 255, 0.88) 52%, rgba(255, 244, 229, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.chrono-control-panel,
.chrono-visual-panel,
.chrono-status-card,
.chrono-track-card,
.chrono-briefing-card {
  border: 1px solid rgba(16, 141, 222, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
}

.chrono-control-panel,
.chrono-visual-panel {
  padding: clamp(0.75rem, 2vw, 1rem);
}

.chrono-control-panel {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.chrono-control-panel h2,
.chrono-status-card h2,
.chrono-briefing-block h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.95;
}

.chrono-control-panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.chrono-dropzone {
  margin-bottom: 0;
}

.chrono-range-field output {
  color: var(--brand-deep);
  font-weight: 900;
}

.chrono-range-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.chrono-fixed-reperes {
  display: grid;
  gap: 0.48rem;
}

.chrono-fixed-reperes div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(0, 143, 247, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.chrono-fixed-reperes span {
  color: var(--muted);
  font-weight: 850;
}

.chrono-fixed-reperes strong {
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
}

.chrono-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
}

.chrono-visual-panel {
  display: grid;
  gap: 1rem;
}

.chrono-status-card {
  display: grid;
  gap: 0.55rem;
  padding: clamp(1rem, 3vw, 1.2rem);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 140, 26, 0.22), transparent 28%),
    rgba(255, 255, 255, 0.84);
}

.chrono-status-card h2 {
  color: var(--brand-deep);
  font-size: clamp(2.2rem, 4vw, 3.35rem);
}

.chrono-status-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.chrono-instrument-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.chrono-instrument {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem;
  border: 1px solid rgba(20, 56, 93, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.chrono-instrument span {
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 0.95;
}

.chrono-instrument small {
  color: var(--muted);
  font-weight: 850;
}

.chrono-instrument-hot {
  border-color: rgba(255, 127, 26, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 229, 0.82));
}

.chrono-altimeter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  align-items: stretch;
  margin-top: 0.4rem;
}

.chrono-altimeter {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid rgba(20, 56, 93, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.95), transparent 38%),
    rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.chrono-altimeter img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.chrono-altimeter-digital {
  min-height: 210px;
}

.chrono-altimeter-digital img {
  transform: scale(1.04);
}

.chrono-digital-screen {
  position: absolute;
  top: 46.2%;
  left: 42.8%;
  width: 31%;
  color: #111;
  font-family: "Courier New", monospace;
  font-size: clamp(1.4rem, 1.95vw, 1.8rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18), 1px 0 0 rgba(0, 0, 0, 0.18);
  transform: rotate(1.5deg);
  white-space: nowrap;
  z-index: 2;
}

.chrono-altimeter-analog {
  min-height: 190px;
}

.chrono-altimeter-analog img {
  width: min(100%, 180px);
  max-height: 180px;
}

.chrono-analog-needle {
  --needle-angle: 0deg;
  position: absolute;
  top: 49.8%;
  left: 50%;
  z-index: 3;
  width: 0.28rem;
  height: 32%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #081c33, #ff5c1c 68%, #cf6410);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.62), 0 8px 14px rgba(14, 51, 92, 0.22);
  transform: translate(-50%, -100%) rotate(var(--needle-angle));
  transform-origin: 50% 100%;
  transition: transform 220ms ease;
}

.chrono-analog-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.48rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #ff8c1a;
  border: 3px solid white;
  transform: translateX(-50%);
}

.chrono-track-card {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.8rem;
  min-height: 520px;
  padding: 0.9rem;
}

.chrono-altitude-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 900;
  text-align: right;
}

.chrono-track {
  --chrono-rail-left: 2rem;
  --chrono-card-left: 5.35rem;
  position: relative;
  min-height: 480px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(0, 143, 247, 0.15), rgba(255, 255, 255, 0.78) 64%, rgba(255, 140, 26, 0.16)),
    repeating-linear-gradient(180deg, rgba(20, 56, 93, 0.08) 0 1px, transparent 1px 64px);
  overflow: hidden;
}

.chrono-track::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: var(--chrono-rail-left);
  width: 0.45rem;
  border-radius: 999px;
  background: rgba(0, 92, 168, 0.16);
}

.chrono-progress {
  position: absolute;
  top: 1.1rem;
  left: var(--chrono-rail-left);
  z-index: 1;
  width: 0.45rem;
  max-height: calc(100% - 2.2rem);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  box-shadow: 0 0 26px rgba(255, 140, 26, 0.38);
  transition: height 220ms ease;
}

.chrono-timeline {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chrono-step {
  position: absolute;
  top: clamp(1.1rem, var(--step-position), calc(100% - 4.2rem));
  left: var(--chrono-card-left);
  right: 1rem;
  z-index: 2;
  transform: translateY(-50%);
}

.chrono-step button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(0, 143, 247, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(14, 51, 92, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.chrono-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc((var(--chrono-rail-left) - var(--chrono-card-left)) + 0.225rem);
  z-index: 3;
  box-sizing: border-box;
  width: 1.12rem;
  height: 1.12rem;
  border: 3px solid white;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(0, 92, 168, 0.16);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.chrono-step strong {
  min-width: 0;
  color: var(--brand-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrono-step span,
.chrono-step small {
  color: var(--muted);
  font-weight: 850;
}

.chrono-step.is-hot button {
  border-color: rgba(255, 127, 26, 0.34);
}

.chrono-step.is-hot::before {
  background: var(--accent);
}

.chrono-step.is-active button {
  border-color: rgba(255, 127, 26, 0.62);
  box-shadow: 0 18px 34px rgba(255, 140, 26, 0.18);
  transform: translateX(0.35rem);
}

.chrono-briefing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.chrono-briefing-card {
  padding: 1rem;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.chrono-briefing-card h3 {
  margin: 0 0 0.45rem;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.chrono-briefing-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.chrono-briefing-card.is-active {
  border-color: rgba(255, 127, 26, 0.5);
  box-shadow: 0 14px 26px rgba(255, 140, 26, 0.12);
  transform: translateY(-2px);
}

.vr-shell {
  padding-top: 1rem;
}

.vr-hero {
  align-items: center;
}

.vr-builder-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: 1rem;
  padding: clamp(0.75rem, 2.2vw, 1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 140, 26, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(233, 247, 255, 0.88) 52%, rgba(255, 244, 229, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.vr-form-panel,
.vr-result-panel,
.vr-exit-card,
.vr-sequence-card,
.vr-briefing-grid article,
.vr-library-card {
  border: 1px solid rgba(16, 141, 222, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.vr-form-panel,
.vr-result-panel {
  display: grid;
  gap: 0.95rem;
  align-content: start;
  padding: clamp(0.85rem, 2vw, 1.15rem);
  border-radius: 28px;
}

.vr-form-panel h2,
.vr-result-panel h2,
.vr-library-block h2 {
  margin: 0;
  color: var(--brand-deep);
  font-family: var(--font-display);
  line-height: 0.95;
}

.vr-form-panel h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
}

.vr-result-panel h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.vr-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.vr-safety-note {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 127, 26, 0.24);
  border-radius: 18px;
  background: rgba(255, 244, 229, 0.76);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.45;
}

.vr-exit-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 18%, rgba(255, 140, 26, 0.2), transparent 30%),
    rgba(255, 255, 255, 0.8);
}

.vr-exit-card strong {
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1;
}

.vr-exit-card p,
.vr-briefing-grid p,
.vr-sequence-card p,
.vr-sources-block p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.vr-card-label,
.vr-step-number {
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vr-sequence-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.vr-sequence-card {
  position: relative;
  display: grid;
  gap: 0.65rem;
  padding: 0.72rem;
  border-radius: 22px;
  overflow: hidden;
}

.vr-step-number {
  position: absolute;
  top: 0.72rem;
  left: 0.72rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
  letter-spacing: 0;
}

.vr-sequence-card strong,
.vr-library-card strong {
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}

.vr-diagram {
  aspect-ratio: 1;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.vr-diagram svg {
  display: block;
  width: 100%;
  height: 100%;
}

.vr-flyer {
  filter: drop-shadow(0 4px 7px rgba(14, 51, 92, 0.22));
}

.vr-flyer-sprite {
  pointer-events: none;
}

.vr-briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.vr-briefing-grid article {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem;
  border-radius: 20px;
}

.vr-copy-buffer {
  position: fixed;
  top: -100vh;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.vr-library-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.vr-library-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem;
  border-radius: 20px;
}

.vr-library-card .vr-diagram {
  border-radius: 16px;
}

.vr-library-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.vr-sources-block {
  padding: 1rem;
}

.vr-sources-block a {
  color: var(--brand-deep);
  font-weight: 850;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  padding: 1.5rem 0 1rem;
  align-items: stretch;
}

.hero-single {
  grid-template-columns: 1fr;
}

.hero-copy,
.hero-side,
.section-block,
.lesson-card,
.card,
.viewer-panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
}

.hero-copy,
.hero-side,
.section-block,
.viewer-panel {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 2rem;
  background:
    radial-gradient(circle at 10% 12%, rgba(88, 200, 255, 0.12), rgba(88, 200, 255, 0) 28%),
    radial-gradient(circle at 92% 12%, rgba(255, 140, 26, 0.22), rgba(255, 140, 26, 0) 24%),
    linear-gradient(124deg, rgba(0, 143, 247, 0.08) 58%, rgba(255, 140, 26, 0.2) 76%, rgba(255, 255, 255, 0) 90%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.92) 68%, rgba(255, 241, 228, 0.88));
}

.hero-single .hero-copy h1 {
  max-width: none;
}

.hero-sitebar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-screen-button {
  flex: 0 0 auto;
}

.hero-sitebar > .brand-lockup {
  flex: 0 0 auto;
}

.hero-sitebar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 2.2rem 1.7rem auto;
  width: 9rem;
  height: 0.48rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 111, 188, 0), var(--accent), var(--accent-bright));
  box-shadow: 0 0 24px rgba(255, 140, 26, 0.24);
  opacity: 0.8;
  pointer-events: none;
}

.hero-side {
  padding: 1.3rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  background:
    radial-gradient(circle at 12% 16%, rgba(88, 200, 255, 0.12), rgba(88, 200, 255, 0) 24%),
    radial-gradient(circle at 88% 12%, rgba(255, 140, 26, 0.18), rgba(255, 140, 26, 0) 20%),
    linear-gradient(180deg, rgba(255, 248, 240, 0.96), rgba(240, 248, 255, 0.92));
  border-color: rgba(242, 138, 36, 0.18);
}

.hero-side-head {
  display: grid;
  gap: 0.35rem;
}

.hero-banner {
  margin: 0;
  padding: 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1 1 auto;
  min-width: 0;
}

.hero-banner::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(0, 143, 247, 0.34), rgba(88, 200, 255, 0.28), rgba(242, 138, 36, 0.38));
}

.hero-side-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow,
.panel-label {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow {
  color: var(--brand-deep);
}

.panel-label {
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

h2 {
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
}

h3 {
  font-size: 1rem;
}

.hero-text,
.section-copy,
.side-note,
.viewer-focus,
.card-copy,
.lesson-description {
  color: var(--muted);
  line-height: 1.6;
}

.hero-text {
  max-width: 62ch;
  margin: 1rem 0 0;
  font-size: 1.02rem;
}

.viewer-toolbar,
.viewer-nav,
.status-actions,
.badge-row,
.card-footer,
.lesson-footer,
.hero-preview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-feature-card,
.hero-preview-button {
  border: 1px solid rgba(20, 56, 93, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-feature-card {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 238, 0.9));
}

.hero-feature-media {
  aspect-ratio: 16 / 11;
  padding: 0.75rem;
  background:
    radial-gradient(circle at top right, rgba(242, 138, 36, 0.24), rgba(242, 138, 36, 0)),
    radial-gradient(circle at 15% 18%, rgba(88, 200, 255, 0.16), rgba(88, 200, 255, 0) 26%),
    linear-gradient(180deg, rgba(229, 245, 255, 0.98), rgba(255, 245, 234, 0.94));
}

.hero-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: white;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 143, 247, 0.08),
    0 10px 22px rgba(16, 59, 102, 0.08);
}

.hero-feature-body {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.hero-feature-body h3 {
  font-size: 1.5rem;
}

.hero-spotlight-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}

.hero-spotlight-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(20, 56, 93, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 239, 0.88));
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-spotlight-link > div {
  display: grid;
  gap: 0.35rem;
}

.hero-spotlight-link strong {
  font-size: 1rem;
  color: var(--text);
}

.hero-spotlight-link span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-spotlight-arrow {
  color: var(--brand-deep) !important;
  font-size: 0.9rem !important;
  font-weight: 700;
  white-space: nowrap;
}

.monitor-link {
  text-decoration: none;
}

.monitor-link-name-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 0;
  gap: 0;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.94rem;
  line-height: 1.15;
}

.hero-preview-empty {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  border: 1px dashed rgba(20, 56, 93, 0.18);
}

.main-layout {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.moniteur-hero {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.moniteur-hero-merged {
  display: grid;
  gap: 1.5rem;
}

.moniteur-hero-copy h1 {
  max-width: 100%;
}

.moniteur-heading {
  display: grid;
  gap: 0.8rem;
  max-width: 100%;
}

.moniteur-heading .hero-text {
  margin: 0;
}

.programme-switcher {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  width: 100%;
  overflow: visible;
}

.programme-switcher-link {
  flex: 0 0 auto;
  padding: 0.46rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 143, 247, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.programme-switcher-link.is-active {
  border-color: rgba(255, 140, 26, 0.48);
  background:
    linear-gradient(135deg, rgba(0, 143, 247, 0.14), rgba(255, 140, 26, 0.18)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 18px rgba(14, 51, 92, 0.12);
}

.programme-switcher-link:hover,
.programme-switcher-link:focus-visible,
.monitor-link-name-only:hover,
.monitor-link-name-only:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 140, 26, 0.38);
  box-shadow: 0 12px 20px rgba(14, 51, 92, 0.12);
}

.dropzone-context {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0 0.9rem;
  color: var(--muted);
  font-weight: 750;
}

.dropzone-context strong {
  color: var(--ink);
}

.dropzone-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.access-dropzone-context {
  margin-top: 0.7rem;
}

.moniteur-back {
  position: fixed;
  top: 1.15rem;
  right: 1.35rem;
  z-index: 48;
  box-shadow: 0 14px 28px rgba(14, 51, 92, 0.16);
  backdrop-filter: blur(10px);
}

.moniteur-side {
  align-content: start;
}

.moniteur-overview {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 143, 247, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(236, 248, 255, 0.8)),
    radial-gradient(circle at top right, rgba(255, 211, 171, 0.26), rgba(255, 211, 171, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 26px rgba(14, 51, 92, 0.07);
}

.moniteur-overview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.9rem;
}

.moniteur-overview-copy {
  max-width: 72ch;
}

.moniteur-validation-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.validation-list,
.jump-grid {
  display: grid;
  gap: 1rem;
}

.jump-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.validation-item,
.jump-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 143, 247, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 252, 255, 0.88)),
    radial-gradient(circle at top right, rgba(255, 211, 171, 0.18), rgba(255, 211, 171, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 26px rgba(14, 51, 92, 0.08);
}

.validation-item {
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
}

.jump-card {
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.jump-card-shell {
  padding: 0;
  gap: 0;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.jump-card-button {
  width: 100%;
  text-align: left;
  color: var(--text);
  border: 0;
  background: transparent;
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.jump-card-shell:hover,
.jump-card-shell:focus-within {
  transform: translateY(-4px);
  border-color: rgba(242, 138, 36, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 32px rgba(14, 51, 92, 0.12);
}

.jump-card-shell.has-links .jump-card-button {
  border-bottom: 1px solid rgba(0, 143, 247, 0.1);
}

.jump-card-head {
  display: grid;
  gap: 0.75rem;
}

.jump-objective {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.jump-card-glance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.jump-glance-item {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 143, 247, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.86rem;
}

.jump-fiche-links,
.jump-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.jump-fiche-links {
  padding: 0 1.1rem 1.1rem;
}

.jump-fiche-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 143, 247, 0.16);
  background: linear-gradient(135deg, rgba(0, 143, 247, 0.12), rgba(88, 200, 255, 0.1), rgba(242, 138, 36, 0.12));
  color: var(--brand-deep);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.jump-fiche-link:hover,
.jump-fiche-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(242, 138, 36, 0.34);
  box-shadow: 0 10px 18px rgba(14, 51, 92, 0.12);
}

.jump-links-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.jump-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.jump-meta div {
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 143, 247, 0.1);
}

.jump-meta dt {
  margin: 0 0 0.3rem;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.jump-meta dd {
  margin: 0;
  color: var(--text);
  line-height: 1.4;
}

.jump-block {
  display: grid;
  gap: 0.55rem;
}

.jump-block h4 {
  margin: 0;
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.jump-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.jump-detail-content {
  display: grid;
  gap: 0.95rem;
}

.jump-detail-content > .jump-block {
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(0, 143, 247, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 252, 255, 0.84)),
    radial-gradient(circle at top right, rgba(255, 211, 171, 0.14), rgba(255, 211, 171, 0));
}

.jump-detail-content > .jump-block ul {
  margin-top: 0.2rem;
}

.jump-detail {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.jump-detail-scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 31, 56, 0.48);
  backdrop-filter: blur(5px);
}

.jump-detail-panel {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 1rem));
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 143, 247, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 255, 0.94)),
    radial-gradient(circle at top right, rgba(255, 211, 171, 0.22), rgba(255, 211, 171, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 24px 44px rgba(9, 31, 56, 0.24);
}

.jump-detail-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.jump-detail-objective {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.jump-detail-meta {
  margin-top: 1.1rem;
}

.jump-detail-block {
  margin-top: 1.1rem;
}

.site-footnote {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0 1.4rem;
}

.site-credit {
  margin: 0;
  color: rgba(11, 67, 116, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-align: center;
}

.site-credit-trigger {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.site-credit-trigger:hover,
.site-credit-trigger:focus-visible {
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.footnote-trigger {
  border: none;
  background: none;
  color: rgba(11, 67, 116, 0.58);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.footnote-trigger:hover,
.footnote-trigger:focus-visible {
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.section-block {
  padding: 1.3rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 140, 26, 0.08), rgba(255, 140, 26, 0) 18%),
    radial-gradient(circle at 0% 0%, rgba(88, 200, 255, 0.08), rgba(88, 200, 255, 0) 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 252, 255, 0.84));
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.toolbar-head {
  align-items: start;
}

.search-field {
  min-width: min(360px, 100%);
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-field input {
  width: 100%;
  border: 1px solid rgba(20, 56, 93, 0.18);
  border-radius: 999px;
  padding: 0.92rem 1.1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-field input:focus {
  outline: 2px solid rgba(28, 106, 179, 0.22);
  outline-offset: 2px;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lesson-card {
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lesson-card:hover,
.lesson-card:focus-visible,
.hero-feature-card:hover,
.hero-feature-card:focus-visible,
.hero-spotlight-link:hover,
.hero-spotlight-link:focus-visible,
.card:hover,
.card:focus-visible,
.chip:hover,
.chip:focus-visible {
  transform: translateY(-2px);
}

.hero-feature-card:hover,
.hero-feature-card:focus-visible,
.hero-spotlight-link:hover,
.hero-spotlight-link:focus-visible {
  border-color: rgba(242, 138, 36, 0.4);
  box-shadow:
    0 18px 34px rgba(17, 69, 120, 0.14),
    0 0 0 1px rgba(255, 140, 26, 0.08),
    0 0 28px rgba(255, 140, 26, 0.12);
}

.lesson-card.is-active,
.chip.is-active {
  border-color: rgba(242, 138, 36, 0.4);
  box-shadow: 0 22px 40px rgba(17, 69, 120, 0.18);
}

.lesson-description {
  margin: 0.7rem 0 1rem;
}

.lesson-footer {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip,
.primary-button,
.secondary-button,
.text-button {
  font: inherit;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.chip,
.secondary-button {
  border: 1px solid rgba(20, 56, 93, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 238, 0.82));
  color: var(--text);
}

.chip {
  border-radius: 999px;
  padding: 0.72rem 1rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.chip.is-active {
  background: linear-gradient(135deg, rgba(0, 143, 247, 0.22), rgba(88, 200, 255, 0.18), rgba(255, 140, 26, 0.22));
  color: var(--brand-deep);
}

.primary-button,
.secondary-button,
.text-button {
  border-radius: 999px;
  padding: 0.78rem 1.1rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent) 52%, var(--accent-bright));
  box-shadow:
    0 16px 30px rgba(255, 140, 26, 0.34),
    0 8px 22px rgba(20, 111, 188, 0.14);
}

.secondary-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.secondary-button.is-warning {
  border-color: rgba(255, 140, 26, 0.36);
  background: linear-gradient(135deg, rgba(255, 140, 26, 0.16), rgba(255, 255, 255, 0.9));
  color: var(--accent-deep);
  font-weight: 900;
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow:
    0 20px 36px rgba(255, 140, 26, 0.38),
    0 0 0 1px rgba(255, 140, 26, 0.16);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.chip:hover,
.chip:focus-visible {
  border-color: rgba(0, 143, 247, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 24px rgba(0, 143, 247, 0.14);
}

.primary-button.compact,
.secondary-button.compact {
  padding: 0.62rem 0.95rem;
}

.text-button {
  padding: 0;
  border: none;
  background: none;
  color: var(--brand-deep);
  font-weight: 700;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.card {
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: card-rise 440ms ease both;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 247, 242, 0.9));
}

.card-bonus {
  border-color: rgba(255, 140, 26, 0.34);
  background:
    radial-gradient(circle at top right, rgba(255, 140, 26, 0.12), rgba(255, 140, 26, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 233, 0.92));
}

.card-bonus .card-media img {
  object-fit: cover;
  object-position: center 24%;
}

.card-media {
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(circle at top right, rgba(242, 138, 36, 0.18), rgba(242, 138, 36, 0)),
    radial-gradient(circle at 14% 18%, rgba(88, 200, 255, 0.16), rgba(88, 200, 255, 0) 28%),
    linear-gradient(180deg, rgba(231, 246, 255, 0.96), rgba(255, 247, 238, 0.92));
  overflow: hidden;
  padding: 0.85rem;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: white;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 143, 247, 0.08),
    0 10px 22px rgba(16, 59, 102, 0.08);
}

.card-body {
  padding: 1rem;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.card-head h3 {
  font-size: 1.15rem;
}

.card:hover,
.card:focus-visible,
.lesson-card:hover,
.lesson-card:focus-visible {
  border-color: rgba(255, 140, 26, 0.36);
  box-shadow:
    0 20px 36px rgba(17, 69, 120, 0.13),
    0 0 0 1px rgba(255, 140, 26, 0.08);
}

.card-copy {
  margin: 0.7rem 0 0.9rem;
  font-size: 0.95rem;
}

.mini-badge,
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.64rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-badge {
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 231, 0.8));
  border: 1px solid rgba(20, 56, 93, 0.12);
}

.category-badge {
  color: white;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand) 38%, var(--brand-bright) 72%, var(--accent) 100%);
  box-shadow: 0 10px 18px rgba(0, 143, 247, 0.18);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 143, 247, 0.14), rgba(88, 200, 255, 0.12), rgba(242, 138, 36, 0.16));
  color: var(--brand-deep);
  font-size: 0.78rem;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed rgba(20, 56, 93, 0.24);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
}

.viewer.is-hidden {
  display: none;
}

.viewer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 43, 0.62);
  backdrop-filter: blur(8px);
}

.viewer-panel {
  position: relative;
  width: min(1220px, calc(100% - 1.4rem));
  max-height: calc(100vh - 1.4rem);
  margin: 0.7rem auto;
  padding: 1.2rem;
  background: rgba(252, 251, 248, 0.96);
  display: grid;
  gap: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.viewer-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.viewer-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.78fr);
  gap: 1rem;
  min-height: 0;
}

.viewer-media-column {
  display: grid;
  gap: 1rem;
  min-height: 0;
}

.viewer-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 56, 93, 0.1);
  background:
    radial-gradient(circle at top right, rgba(242, 138, 36, 0.14), rgba(242, 138, 36, 0)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    linear-gradient(180deg, #f6fbff, #fff5eb);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 1rem;
}

.viewer-figure img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  display: block;
  background: white;
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 143, 247, 0.08),
    0 14px 28px rgba(16, 59, 102, 0.08);
}

.viewer-model {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 56, 93, 0.1);
  background:
    radial-gradient(circle at top right, rgba(0, 143, 247, 0.14), rgba(0, 143, 247, 0)),
    radial-gradient(circle at bottom left, rgba(242, 138, 36, 0.16), rgba(242, 138, 36, 0)),
    linear-gradient(180deg, #f5fbff, #fff8ef);
}

.viewer-model.is-hidden {
  display: none;
}

.viewer-model-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.viewer-model-head h3 {
  margin: 0.1rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
}

.viewer-model-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.viewer-model-stage {
  position: relative;
  min-height: 300px;
  height: clamp(300px, 42vh, 520px);
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.26) 44%, rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(217, 238, 255, 0.7), rgba(255, 248, 239, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(20, 56, 93, 0.08),
    inset 0 -24px 48px rgba(242, 138, 36, 0.1);
}

.viewer-model-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.viewer-model-status {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 1;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(16, 59, 102, 0.08);
  pointer-events: none;
}

.viewer-model[data-state="ready"] .viewer-model-status {
  opacity: 0;
}

.viewer-model-status.is-error {
  color: #8f2b17;
  background: rgba(255, 236, 226, 0.92);
}

.viewer-video {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 56, 93, 0.1);
  background:
    radial-gradient(circle at top right, rgba(242, 138, 36, 0.16), rgba(242, 138, 36, 0)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    linear-gradient(180deg, #f5fbff, #fff8ef);
}

.viewer-video.is-hidden {
  display: none;
}

.viewer-video-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  background: #081423;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #081423;
  object-fit: contain;
}

.viewer-notes {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 0.2rem;
}

.viewer-focus {
  margin: 0;
}

.note-block {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 56, 93, 0.1);
}

.note-block ul {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
}

.viewer-nav {
  justify-content: space-between;
}

.egg-toast,
.egg-polaroid,
.egg-warning {
  position: fixed;
  z-index: 40;
  border: 1px solid rgba(0, 118, 212, 0.14);
  box-shadow: 0 20px 40px rgba(14, 51, 92, 0.22);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.egg-toast.is-visible,
.egg-polaroid.is-visible,
.egg-warning.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.egg-toast {
  right: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100vw - 1.2rem));
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 140, 26, 0.18), rgba(255, 140, 26, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 247, 255, 0.92));
  transform: translateY(22px);
}

.egg-toast-image {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 18%;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(0, 143, 247, 0.08);
}

.egg-toast-copy {
  display: grid;
  gap: 0.2rem;
  text-align: left;
}

.egg-toast-copy .panel-label {
  margin-bottom: 0;
}

.egg-toast-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brand-deep);
}

.egg-toast-copy span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.egg-polaroid {
  position: absolute;
  top: 5rem;
  right: 1.4rem;
  width: min(230px, calc(100vw - 1.2rem));
  padding: 0.8rem 0.8rem 1rem;
  border-radius: 12px;
  background: #fffefa;
  display: grid;
  gap: 0.7rem;
  text-align: left;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform-origin: center top;
  will-change: top, left, transform;
  transform: translateY(-18px) rotate(6deg);
}

.egg-polaroid.is-visible {
  transform: translateY(0) rotate(4deg);
}

.egg-polaroid.is-dragging {
  cursor: grabbing;
  transition: none;
  transform: rotate(1.5deg) scale(1.02);
}

.egg-polaroid-pin {
  position: absolute;
  top: -0.45rem;
  left: 50%;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: -0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.34);
}

.egg-polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 72% 20%;
  border-radius: 8px;
  background: white;
}

.egg-polaroid strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--brand-deep);
}

.egg-polaroid span:last-child {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.egg-rain {
  position: fixed;
  inset: 0;
  z-index: 38;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.egg-rain.is-visible {
  opacity: 1;
  visibility: visible;
}

.egg-rain-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.egg-rain::before,
.egg-rain::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(72px, 9vw, 124px);
  opacity: 0.75;
}

.egg-rain::before {
  left: 0;
  background:
    linear-gradient(90deg, rgba(88, 200, 255, 0.18), rgba(88, 200, 255, 0.08) 38%, rgba(88, 200, 255, 0));
}

.egg-rain::after {
  right: 0;
  background:
    linear-gradient(270deg, rgba(255, 190, 69, 0.18), rgba(255, 190, 69, 0.08) 38%, rgba(255, 190, 69, 0));
}

.egg-rain-drop {
  position: absolute;
  top: -18vh;
  width: var(--size, 58px);
  opacity: 0;
  animation: egg-rain-fall var(--fall-duration, 5.8s) linear var(--fall-delay, 0s) forwards;
  filter: drop-shadow(0 14px 18px rgba(14, 51, 92, 0.18));
}

.egg-rain-drop.is-left {
  left: var(--lane, 18px);
}

.egg-rain-drop.is-right {
  right: var(--lane, 18px);
}

.egg-rain-drop img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 16px;
  padding: 0.22rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(0, 143, 247, 0.08),
    0 10px 20px rgba(16, 59, 102, 0.08);
}

.egg-warning {
  inset: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  transform: none;
}

.egg-warning-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 43, 0.58);
  backdrop-filter: blur(6px);
}

.egg-warning-panel {
  position: relative;
  width: min(700px, calc(100% - 1rem));
  margin: min(8vh, 3rem) auto 0;
  padding: 4.6rem 1.15rem 1.4rem;
  border-radius: 28px;
  border: 1px solid rgba(0, 118, 212, 0.14);
  background:
    radial-gradient(circle at top right, rgba(255, 140, 26, 0.18), rgba(255, 140, 26, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.94));
  box-shadow: 0 24px 54px rgba(14, 51, 92, 0.24);
  display: grid;
  gap: 0.9rem;
  text-align: center;
  transform: translateY(16px) scale(0.98);
}

.egg-warning.is-visible .egg-warning-panel {
  transform: translateY(0) scale(1);
}

.egg-warning-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(0, 118, 212, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  cursor: pointer;
  z-index: 2;
  transition:
    left 180ms ease,
    top 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  will-change: left, top, transform;
}

.egg-warning-image {
  width: min(100%, 460px);
  margin: 0 auto;
  border-radius: 22px;
  background: white;
  box-shadow:
    inset 0 0 0 1px rgba(0, 143, 247, 0.08),
    0 14px 28px rgba(16, 59, 102, 0.08);
}

.egg-warning-panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.15;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes egg-rain-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -6vh, 0) rotate(var(--spin-start, -10deg)) scale(0.92);
  }

  10% {
    opacity: 0.96;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 0px), 128vh, 0) rotate(var(--spin-end, 26deg)) scale(1);
  }
}

@media (max-width: 1024px) {
  .hero,
  .viewer-body,
  .lesson-grid,
  .card-grid,
  .jump-grid,
  .suivi-layout,
  .chrono-card,
  .vr-builder-card,
  .vr-briefing-grid,
  .chrono-briefing-grid {
    grid-template-columns: 1fr;
  }

  .access-choice-grid-protected,
  .vr-sequence-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vr-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-head,
  .viewer-topbar,
  .vr-result-head,
  .status-row {
    align-items: start;
    flex-direction: column;
  }

  .moniteur-validation-list {
    grid-template-columns: 1fr;
  }

  .suivi-sidebar {
    position: static;
  }

  .suivi-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-copy,
  .hero-side,
  .section-block,
  .viewer-panel {
    border-radius: 22px;
  }

  .shell {
    width: min(100% - 1rem, 1200px);
  }

  .hero {
    padding-top: 0.8rem;
  }

  .hero-sitebar {
    align-items: flex-start;
  }

  .hero-sitebar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .suivi-topbar,
  .suivi-sidebar-head,
  .suivi-student-title,
  .suivi-table-head,
  .suivi-dialog-head {
    align-items: start;
    flex-direction: column;
  }

  .suivi-topbar h1 {
    white-space: normal;
  }

  .suivi-profile-grid {
    grid-template-columns: 1fr;
  }

  .access-head,
  .access-choice-grid {
    grid-template-columns: 1fr;
  }

  .access-choice {
    grid-template-rows: auto auto auto;
  }

  .access-head {
    display: grid;
  }

  .access-actions {
    justify-content: flex-start;
  }

  .chrono-top-actions {
    flex-wrap: wrap;
  }

  .dt48-hero,
  .dt48-card,
  .chrono-card,
  .vr-builder-card,
  .chrono-track-card {
    grid-template-columns: 1fr;
  }

  .dt48-hero {
    display: grid;
  }

  .dt48-result-grid {
    grid-template-columns: 1fr;
  }

  .chrono-instrument-row,
  .chrono-button-grid,
  .vr-sequence-strip,
  .vr-briefing-grid {
    grid-template-columns: 1fr;
  }

  .vr-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chrono-track-card {
    min-height: auto;
  }

  .chrono-altitude-scale {
    display: none;
  }

  .chrono-track {
    --chrono-rail-left: 1.6rem;
    --chrono-card-left: 3.45rem;
    min-height: 560px;
  }

  .chrono-step button {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding-left: 0.72rem;
  }

  .suivi-board,
  .suivi-sidebar,
  .suivi-student-card,
  .suivi-table-card {
    border-radius: 22px;
  }

  .suivi-board {
    padding: 0.6rem;
  }

  .suivi-eval-table {
    min-width: 960px;
  }

  .moniteur-overview {
    padding: 1rem;
  }

  .moniteur-back {
    top: 0.75rem;
    right: 0.75rem;
  }

  .jump-meta {
    grid-template-columns: 1fr;
  }

  .jump-detail {
    padding: 0.4rem;
  }

  .jump-detail-panel {
    width: calc(100vw - 0.8rem);
    max-height: calc(100vh - 0.8rem);
    padding: 1rem;
    border-radius: 22px;
  }

  h1 {
    max-width: 100%;
  }

  .viewer-panel {
    width: calc(100% - 0.8rem);
    max-height: calc(100vh - 0.8rem);
    margin: 0.4rem auto;
    padding: 0.9rem;
  }

  .viewer-model-head {
    align-items: start;
    flex-direction: column;
  }

  .viewer-model-actions {
    width: 100%;
    justify-content: stretch;
  }

  .viewer-model-actions .compact {
    flex: 1 1 140px;
  }

  .viewer-model-stage {
    min-height: 260px;
    height: 38vh;
  }

  .egg-toast {
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .egg-polaroid {
    top: auto;
    right: 0.6rem;
    bottom: 5rem;
    transform: translateY(12px) rotate(4deg);
  }

  .egg-polaroid.is-visible {
    transform: translateY(0) rotate(2deg);
  }

  .egg-warning-panel {
    width: calc(100% - 0.8rem);
    margin-top: 1rem;
    border-radius: 22px;
  }

  .viewer-figure img {
    max-height: 42vh;
  }
}
