/* =====================================================================
   Coaching Exitoso · Curso
   Colores y tipografías: cambia las variables de :root
   ===================================================================== */
:root {
  --ink:      #0E3B43;  /* verde azulado profundo: barra superior, botones */
  --ink-2:    #145460;
  --marigold: #F2A93B;  /* acento: botón de Zoom, foco */
  --marigold-soft: #FBE3B8; /* lección actual en la barra izquierda */
  --sage:     #6C8F80;
  --paper:    #F6F7F4;  /* fondo */
  --card:     #FFFFFF;
  --text:     #16262A;
  --muted:    #5B6B6E;
  --line:     #D9DFDB;
  --track:    #E4E8E5;  /* fondo de las barras de progreso */
  --danger:   #B3261E;
  --ok:       #1F8A55;  /* progreso y lecciones completadas */

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body:    "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--body);
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--ink-2); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; font-weight: 700; }
code { background: rgba(14, 59, 67, .08); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.muted { color: var(--muted); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Botones y formularios ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: 600 .95rem/1 var(--body);
  padding: .75rem 1.1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-small { padding: .45rem .7rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

input, select, textarea {
  font: inherit; color: inherit; width: 100%;
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 59, 67, .15); }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); flex: none; margin: .2rem 0 0; }
input[type="file"] { padding: .55rem; background: var(--paper); }

.field { display: block; margin-bottom: 1rem; }
.field > span, .field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field small, .field-label small, .check-field small { font-weight: 400; color: var(--muted); }
.hint { display: block; color: var(--muted); font-size: .84rem; margin-top: .35rem; }
.check-field { display: flex; gap: .55rem; align-items: flex-start; margin: .3rem 0 1rem; cursor: pointer; }
.check-field.danger span { color: var(--danger); font-size: .88rem; }

.alert {
  margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--r-sm);
  background: #FDF1DC; border-left: 4px solid var(--marigold);
}
.alert-error { background: #FBE9E7; border-left-color: var(--danger); }
.alert-success { background: #E6F2EA; border-left-color: var(--ok); }
.alert p, .alert ul { margin: 0; }
.alert ul { padding-left: 1.2rem; }

.tag {
  display: inline-block; vertical-align: middle; font: 600 .72rem/1 var(--body);
  padding: .25rem .45rem; border-radius: var(--r-pill);
  background: var(--track); color: var(--muted);
}

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: var(--ink); color: #fff;
}
.brand { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: inherit; text-decoration: none; white-space: nowrap; }
.brand-sub { font-family: var(--body); font-weight: 500; font-size: .9rem; opacity: .7; margin-left: .55rem; }
.topbar-right { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
.topbar-link { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .92rem; }
.topbar-link:hover { color: #fff; text-decoration: underline; }
.topbar-user { font-size: .92rem; opacity: .7; }
@media (max-width: 640px) { .topbar-user { display: none; } .topbar-right { gap: .8rem; } }

/* ---------- Iniciar sesión ---------- */
.auth-page { min-height: 100vh; background: var(--ink); color: #fff; display: flex; }
.auth-main {
  flex: 1; width: 100%; max-width: 1040px; margin: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
}
.auth-main-single { grid-template-columns: minmax(0, 440px); justify-content: center; }
.auth-brand { font: 700 1.1rem/1 var(--display); color: var(--marigold); margin: 0 0 1.4rem; }
.auth-intro h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.02em; max-width: 12ch; }
.auth-intro p:last-child { font-size: 1.1rem; opacity: .8; max-width: 38ch; margin: 1.2rem 0 0; }
.auth-card { background: var(--card); color: var(--text); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.2rem); }
.auth-card h2 { font-size: 1.6rem; margin-bottom: 1.2rem; }
.auth-card .btn-block { margin-top: .4rem; padding: .9rem; }
.auth-help { color: var(--muted); font-size: .88rem; margin: 1.1rem 0 0; }
@media (max-width: 760px) {
  .auth-main { grid-template-columns: 1fr; gap: 1.8rem; }
  .auth-intro h1 { font-size: 2rem; }
}

/* ---------- Página ---------- */
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(1.4rem, 3.5vw, 2.6rem) clamp(1rem, 4vw, 2.5rem) 4rem; }
.empty { color: var(--muted); padding: 2rem 0; font-size: 1.05rem; }
.back-link {
  display: inline-flex; align-items: center; gap: .3rem; margin: 0 0 1.2rem -.2rem;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.back-link:hover { color: var(--ink); }

/* ---------- Encabezado de módulos + botón de Zoom ---------- */
.library-head { padding-bottom: 2rem; }
.head-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem 2rem; }
.greeting h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.greeting > p { color: var(--muted); margin: .4rem 0 0; font-size: 1.05rem; }

.live-menu { position: relative; margin-top: .5rem; }
.live-toggle {
  background: var(--marigold); border-color: var(--marigold); color: var(--ink);
  padding: .8rem 1.1rem; font-size: 1rem;
}
.live-toggle:hover { border-color: var(--ink); }
.live-toggle .chev { transition: transform .15s; }
.live-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.live-panel {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 15;
  width: 320px; padding: .8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 14px 34px rgba(14, 59, 67, .18);
}
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.live-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem; }
.live-item h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.live-when { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.live-join { width: 100%; margin-top: .8rem; background: var(--ink); border-color: var(--ink); color: #fff; }
.live-join:hover { background: var(--ink-2); }
@media (max-width: 600px) {
  .live-menu { width: 100%; margin-top: 0; }
  .live-toggle { width: 100%; }
  .live-panel { left: 0; right: 0; width: auto; }
}

/* ---------- Barra de progreso ---------- */
.progress {
  position: relative; height: 1.9rem; border-radius: var(--r-pill);
  background: var(--track); overflow: hidden;
}
.progress-fill {
  height: 100%; min-width: 3.4rem; border-radius: var(--r-pill);
  background: var(--ok); display: flex; align-items: center;
  transition: width .35s ease;
}
.progress-label { font: 700 .85rem/1 var(--body); color: #fff; padding-left: .95rem; white-space: nowrap; }
.progress.is-empty .progress-fill { min-width: 0; background: none; }
.progress.is-empty .progress-label { color: var(--text); }
.progress-sm { height: 1.35rem; }
.progress-sm .progress-fill { min-width: 2.8rem; }
.progress-sm .progress-label { font-size: .74rem; padding-left: .6rem; }

/* ---------- Tarjetas de módulos ---------- */
.module-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem;
}
.module-grid > li { display: flex; }
.module-card {
  display: flex; flex-direction: column; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.module-card:hover { border-color: var(--sage); box-shadow: 0 10px 28px rgba(14, 59, 67, .1); }
.module-thumb { display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.module-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font: 700 3.4rem/1 var(--display); color: var(--marigold);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
}
.thumb-fallback.small { width: 96px; height: 54px; font-size: 1.3rem; border-radius: var(--r-sm); flex: none; }
.module-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.25rem 1.3rem; }
.module-title { font: 700 1.3rem/1.2 var(--display); letter-spacing: -.01em; }
.module-card:hover .module-title { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.module-desc { color: var(--muted); margin-top: .45rem; font-size: .98rem; }
.module-foot { margin-top: auto; padding-top: 1.4rem; display: grid; gap: .45rem; }
.module-count { color: var(--muted); font-size: .84rem; }

/* ---------- Página del módulo ---------- */
.module-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 2rem; align-items: start; }
.lesson-nav { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; padding: 0 .3rem 1rem 0; }
.lesson-nav-head { padding: 0 .1rem 1.2rem; }
.lesson-nav-title { font-size: 1.35rem; margin-bottom: .8rem; }
.lesson-nav-empty { padding: 0 .1rem; }

.lesson-group { margin-bottom: .6rem; }
.lesson-group > summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .75rem .4rem .75rem .1rem; font-weight: 700; font-size: 1.02rem;
  border-top: 1px solid var(--line);
}
.lesson-group > summary::-webkit-details-marker { display: none; }
.lesson-group > summary .chev { color: var(--muted); flex: none; transition: transform .15s; }
.lesson-group:not([open]) > summary .chev { transform: rotate(180deg); }

.lesson-list { list-style: none; margin: 0 0 .4rem; padding: 0; }
.lesson-link {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .72rem .9rem .72rem 1.1rem; border-radius: var(--r-md);
  color: var(--text); text-decoration: none; line-height: 1.35;
}
.lesson-link:hover { background: rgba(14, 59, 67, .06); }
.lesson-link.is-current { background: var(--marigold-soft); font-weight: 600; }
.lesson-link-title { min-width: 0; }
.check { flex: none; display: grid; }
.check svg circle { fill: var(--ok); }
.check:not(.is-done) { visibility: hidden; }

.lesson {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.2rem, 3vw, 2.4rem);
}
.lesson-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.3rem; }
.lesson-head h2 { font-size: clamp(1.45rem, 2.8vw, 1.95rem); letter-spacing: -.01em; }

.complete-btn {
  display: inline-flex; align-items: center; gap: .5rem; flex: none;
  padding: .2rem .2rem .2rem .7rem; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--muted); font: 600 .9rem/1 var(--body); cursor: pointer;
  flex-direction: row-reverse;
}
.complete-btn:hover { color: var(--ink); }
.complete-btn svg circle { fill: none; stroke: currentColor; stroke-width: 1.6; transition: fill .15s, stroke .15s; }
.complete-btn svg path { stroke: currentColor; }
.complete-btn.is-done { color: var(--ok); }
.complete-btn.is-done svg circle { fill: var(--ok); stroke: var(--ok); }
.complete-btn.is-done svg path { stroke: #fff; }
.complete-btn[aria-busy="true"] { opacity: .6; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #0A2227; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-preview { display: grid; place-items: center; margin-bottom: 1.4rem; background: var(--paper); border: 1px dashed var(--line); }
.video-preview p { padding: 1rem; text-align: center; margin: 0; }

.lesson-text { margin-top: 1.5rem; font-size: 1.04rem; max-width: 72ch; overflow-wrap: anywhere; }
.lesson-text p { margin: 0 0 1rem; }

.lesson-files { margin-top: 2rem; }
.lesson-files h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.lesson-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.file-row {
  display: flex; align-items: center; gap: .9rem;
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--text); text-decoration: none;
}
.file-row:hover { border-color: var(--ink); }
.file-ext {
  flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
  border-radius: var(--r-sm); background: var(--ink); color: var(--marigold);
  font: 700 .72rem/1 var(--body);
}
.file-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.file-name small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.file-dl { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink); font-weight: 600; font-size: .9rem; flex: none; }

.lesson-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .module-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .lesson { order: -1; }
  .lesson-nav { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 520px) {
  .lesson-head { flex-direction: column; gap: .7rem; }
  .complete-btn { flex-direction: row; padding-left: 0; }
  .file-dl span, .file-dl { font-size: 0; gap: 0; }
  .file-dl svg { width: 22px; height: 22px; }
}

/* =====================================================================
   Panel de administración
   ===================================================================== */
.admin-tabs {
  display: flex; gap: .3rem; padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: var(--ink-2); overflow-x: auto;
}
.admin-tabs a {
  padding: .8rem 1rem; color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; font-size: .92rem;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.admin-tabs a:hover { color: #fff; }
.admin-tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--marigold); }

.admin-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.3rem; }
.admin-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.admin-head h2 { font-size: 1.45rem; }
.admin-head p { margin: .35rem 0 0; max-width: 62ch; }
.admin-section { margin-top: 2.8rem; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.1rem, 3vw, 1.8rem); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.thumb-preview { aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; margin-bottom: .7rem; background: var(--ink); }
.thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-files { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .4rem; }
.admin-files li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); }
.admin-files a { font-weight: 600; overflow-wrap: anywhere; }
.admin-files .check-field { margin: 0 0 0 auto; }
@media (max-width: 820px) { .form-grid { grid-template-columns: 1fr; gap: .5rem; } }

.add-user { margin-bottom: 1.8rem; }
.add-user h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.add-user-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.admin-table th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr.is-off td { opacity: .6; }
.row-title { display: flex; align-items: center; gap: .9rem; color: inherit; text-decoration: none; min-width: 240px; }
.row-title:hover strong { text-decoration: underline; }
.row-title small { display: block; color: var(--muted); font-size: .84rem; }
.mini-thumb { width: 96px; height: 54px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.order-cell { white-space: nowrap; width: 1%; }
.icon-btn {
  width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); color: var(--muted); cursor: pointer; font-size: .7rem;
}
.icon-btn:hover:not([disabled]) { border-color: var(--ink); color: var(--ink); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.actions { text-align: right; white-space: nowrap; }
.actions > * + * { margin-left: .4rem; }
form.inline { display: inline; }
.status { display: inline-block; font-size: .8rem; font-weight: 600; padding: .25rem .55rem; border-radius: var(--r-pill); background: var(--track); color: var(--muted); white-space: nowrap; }
.status.ok { background: #E1F1E7; color: var(--ok); }
.status.bad { background: #FBE9E7; color: var(--danger); }
.progress-cell { min-width: 170px; }
.progress-cell small { display: block; margin-top: .3rem; }

.row-menu { display: inline-block; text-align: left; vertical-align: top; }
.row-menu > summary { float: right; }
.row-menu[open] .row-menu-panel { clear: both; }
.row-menu > summary { list-style: none; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu[open] > summary { border-color: var(--ink); }
.row-menu-panel {
  width: 250px; margin-top: .5rem; white-space: normal;
  display: grid; gap: .5rem; padding: .9rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
}
.row-menu-panel form + form { padding-top: .5rem; border-top: 1px solid var(--line); }
.row-menu-panel .btn { width: 100%; }
.row-menu-panel .field { margin-bottom: .5rem; }

/* =====================================================================
   Módulos bloqueados
   ===================================================================== */
.module-thumb { position: relative; }
.module-card.is-locked { cursor: not-allowed; }
.module-card.is-locked:hover { border-color: var(--line); box-shadow: none; }
.module-card.is-locked .module-thumb img,
.module-card.is-locked .module-thumb .thumb-fallback { filter: grayscale(.85) brightness(.55); }
.module-card.is-locked .module-title { color: var(--muted); }
.lock-veil {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
}
.lock-veil svg {
  width: 64px; height: 64px; padding: 16px; border-radius: 50%;
  background: rgba(14, 59, 67, .75); border: 2px solid rgba(255, 255, 255, .35);
}
.locked-note {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .85rem; border-radius: var(--r-pill);
  background: var(--track); color: var(--muted); font-size: .88rem; font-weight: 600;
}
.locked-note svg { flex: none; }

/* ---------- Admin: elegir módulos de un alumno ---------- */
.access-tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.access-tools [data-access-count] { margin-right: auto; font-weight: 600; }
.access-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.access-row {
  position: relative; display: flex; align-items: center; gap: .9rem;
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer;
}
.access-row:hover { border-color: var(--sage); }
.access-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.access-text { flex: 1; min-width: 0; }
.access-text small { display: block; font-size: .84rem; }
.access-row:has(input:checked) { border-color: var(--ok); background: #F1F8F4; }
.access-row:has(input:focus-visible) { outline: 3px solid var(--marigold); outline-offset: 2px; }
.switch {
  flex: none; position: relative; width: 46px; height: 26px; border-radius: var(--r-pill);
  background: #C5CEC9; transition: background .15s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s;
}
.access-row input:checked ~ .switch { background: var(--ok); }
.access-row input:checked ~ .switch::after { transform: translateX(20px); }
.access-btn { gap: .35rem; }
.module-card.is-locked:hover .module-title { text-decoration: none; }
.module-card.is-locked .thumb-fallback { color: transparent; }
.locked-note { align-self: flex-start; }
