/* =========================================================
   EducALE · UI de cursos
   Portadas compactas, tarjetas horizontales y selectores
   múltiples desplegables. Cargado DESPUÉS de style.css.
   ========================================================= */

:root{
  --edu-course-navy:#193155;
  --edu-course-blue:#245fbe;
  --edu-course-sky:#eef7ff;
  --edu-course-line:#d8e5f2;
  --edu-course-text:#263c59;
  --edu-course-muted:#6d8096;
  --edu-course-bg:#ffffff;
  --edu-course-shadow:0 16px 38px rgba(23,48,111,.08);
}

/* ---------- Hero / ficha de curso ---------- */
.edu-course-hero{
  display:grid !important;
  grid-template-columns:minmax(250px,330px) minmax(0,1fr) !important;
  gap:28px !important;
  align-items:center !important;
  padding:24px !important;
}
.edu-course-hero__media{
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:22px;
  border:1px solid var(--edu-course-line);
  background:linear-gradient(135deg,#edf7ff,#f8fbff);
  box-shadow:0 12px 28px rgba(23,48,111,.10);
}
.edu-course-hero__media img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  margin:0 !important;
}
.edu-course-hero__placeholder{
  width:100%;
  height:100%;
  min-height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7890aa;
  font-weight:900;
  background:linear-gradient(135deg,#eef6ff,#fbfdff);
}
.edu-course-hero__copy{min-width:0;display:grid;gap:10px}
.edu-course-hero__copy h1{margin:0 !important}
.edu-course-hero__copy p{margin:0 0 4px !important;max-width:850px}

/* ---------- Portada dentro del formulario ---------- */
.edu-cover-uploader{
  display:grid;
  grid-template-columns:170px minmax(0,1fr);
  gap:16px;
  align-items:center;
  padding:14px;
  border:1px solid var(--edu-course-line);
  border-radius:18px;
  background:#fbfdff;
}
.edu-cover-preview{
  width:170px !important;
  height:102px !important;
  max-width:170px !important;
  max-height:102px !important;
  min-width:170px;
  min-height:102px;
  overflow:hidden;
  border-radius:15px;
  border:1px solid #d3e1ef;
  background:#edf5fd;
  display:flex;
  align-items:center;
  justify-content:center;
}
.edu-cover-preview img{
  display:block !important;
  width:170px !important;
  height:102px !important;
  max-width:170px !important;
  max-height:102px !important;
  object-fit:cover !important;
  margin:0 !important;
}
.edu-cover-preview__empty{
  font-size:12px;
  font-weight:900;
  color:#7890a8;
  text-align:center;
  padding:10px;
}
.edu-cover-uploader__body{display:grid;gap:9px;min-width:0}
.edu-cover-uploader__body input[type=file]{margin:0 !important}
.edu-cover-file-name{font-size:12px;color:var(--edu-course-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.edu-cover-remove{margin:0 !important;max-width:520px}

/* ---------- Selector múltiple compacto ---------- */
.edu-multiselect{
  position:relative;
  width:100%;
}
.edu-multiselect__trigger{
  width:100%;
  min-height:52px;
  padding:9px 12px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:12px !important;
  text-align:left !important;
  background:#fff !important;
  color:var(--edu-course-text) !important;
  border:1px solid #cbd9e8 !important;
  border-radius:14px !important;
  box-shadow:none !important;
}
.edu-multiselect__trigger:hover{border-color:#9ecbf1 !important;background:#fbfdff !important;filter:none !important}
.edu-multiselect__trigger:focus{outline:3px solid rgba(30,136,229,.12);border-color:#68afe8 !important}
.edu-multiselect__summary{min-width:0;display:grid;gap:3px}
.edu-multiselect__summary strong{font-size:14px;color:var(--edu-course-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.edu-multiselect__summary small{font-size:12px;color:var(--edu-course-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.edu-multiselect__badge{
  min-width:28px;
  height:28px;
  padding:0 8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#eaf4ff;
  color:var(--edu-course-navy);
  border:1px solid #cae0f5;
  font-size:12px;
  font-weight:950;
}
.edu-multiselect__menu{
  position:absolute;
  z-index:2000;
  left:0;
  right:0;
  top:calc(100% + 7px);
  overflow:hidden;
  border:1px solid #cbdced;
  border-radius:18px;
  background:#fff;
  box-shadow:0 22px 50px rgba(24,49,85,.18);
}
.edu-multiselect__menu[hidden]{display:none !important}
.edu-multiselect__head{
  padding:12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  border-bottom:1px solid #e7eef6;
  background:#f8fbff;
}
.edu-multiselect__search{
  width:100%;
  min-height:40px;
  margin:0 !important;
  padding:9px 11px !important;
  border:1px solid #cbd9e8 !important;
  border-radius:12px !important;
  background:#fff !important;
  font:inherit;
}
.edu-multiselect__tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.edu-multiselect__tools button{white-space:nowrap}
.edu-multiselect__list{
  max-height:280px;
  overflow:auto;
  padding:8px;
  display:grid;
  gap:5px;
}
.edu-multiselect__option{
  display:grid !important;
  grid-template-columns:22px minmax(0,1fr) !important;
  gap:10px !important;
  align-items:start !important;
  padding:10px 11px !important;
  margin:0 !important;
  border:1px solid transparent;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}
.edu-multiselect__option:hover{background:#f4f9ff;border-color:#d8e8f7}
.edu-multiselect__option.is-selected{background:#eef7ff;border-color:#bcdcf5}
.edu-multiselect__option input[type=checkbox]{
  width:16px !important;
  height:16px !important;
  margin:3px 0 0 !important;
  padding:0 !important;
  accent-color:#245fbe;
}
.edu-multiselect__person{min-width:0;display:grid;gap:2px}
.edu-multiselect__person strong{display:block;font-size:14px;line-height:1.25;color:var(--edu-course-navy)}
.edu-multiselect__person small{display:block;font-size:12px;line-height:1.35;color:var(--edu-course-muted);font-weight:500}
.edu-multiselect__foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-top:1px solid #e7eef6;
  background:#fbfdff;
}
.edu-multiselect__picked{font-size:12px;color:var(--edu-course-muted);font-weight:750}
.edu-multiselect__chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px;min-height:0}
.edu-multiselect__chip{
  display:inline-flex;
  align-items:center;
  max-width:240px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid #d4e4f4;
  background:#f1f7fd;
  color:#385575;
  font-size:11px;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.edu-multiselect__more{background:#193155;color:#fff;border-color:#193155}

/* ---------- Tarjetas horizontales: Mis cursos ---------- */
.edu-course-list{display:grid;gap:16px}
.edu-course-card{
  display:grid !important;
  grid-template-columns:220px minmax(0,1fr) !important;
  gap:18px !important;
  align-items:stretch !important;
  min-height:170px;
  padding:16px !important;
  overflow:hidden;
}
.edu-course-card__media{
  width:220px;
  min-height:138px;
  overflow:hidden;
  border-radius:17px;
  border:1px solid #d6e3ef;
  background:#edf5fd;
}
.edu-course-card__media img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:138px;
  object-fit:cover !important;
  margin:0 !important;
}
.edu-course-card__empty{
  width:100%;
  height:100%;
  min-height:138px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7890a8;
  font-weight:900;
  font-size:12px;
}
.edu-course-card__body{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:8px}
.edu-course-card__body h3{margin:0 !important;font-size:20px;line-height:1.2}
.edu-course-card__body p{margin:0 !important;line-height:1.5}
.edu-course-card__meta{display:flex;gap:8px;flex-wrap:wrap}
.edu-course-card__teachers{font-size:13px;color:#4e647c}
.edu-course-card__actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:3px}
.edu-course-card__link{font-weight:900;color:var(--edu-course-navy)}

/* Tabla de administrador */
.edu-table-course{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:center;min-width:280px}
.edu-table-course__thumb{width:64px;height:48px;object-fit:cover;border-radius:10px;border:1px solid #d7e2ee;background:#eef5ff}

/* Evita que un selector abierto quede debajo de la siguiente sección */
.form,.field{overflow:visible !important}

@media(max-width:900px){
  .edu-course-hero{grid-template-columns:1fr !important}
  .edu-course-hero__media{max-width:520px}
  .edu-course-card{grid-template-columns:1fr !important}
  .edu-course-card__media{width:100%;height:190px}
  .edu-cover-uploader{grid-template-columns:1fr}
  .edu-cover-preview{width:170px !important}
}

@media(max-width:620px){
  .edu-multiselect__head{grid-template-columns:1fr}
  .edu-multiselect__tools{justify-content:flex-start}
  .edu-course-card__media{height:165px}
}

/* =========================================================
   EducALE v6 · Bloques editables + panel lateral estable
   ========================================================= */

/* El panel izquierdo queda fijo en escritorio aunque otros estilos
   de la plataforma modifiquen el contenedor. */
@media(min-width:900px){
  html,body,.ea-platform-body,.ea-platform-main,.learning-shell{overflow:visible!important}
  .learning-shell{align-items:start!important}
  .course-outline{
    position:sticky!important;
    top:112px!important;
    align-self:start!important;
    height:max-content!important;
    max-height:calc(100vh - 132px)!important;
    z-index:5;
  }
  .course-outline .outline-sticky{
    position:relative!important;
    top:auto!important;
    max-height:calc(100vh - 132px)!important;
    overflow-y:auto!important;
  }
}

.outline-subgroup-label{
  display:block;
  margin:8px 8px 2px;
  padding:7px 9px;
  border-left:3px solid #7ccfbd;
  border-radius:8px;
  background:#f4fbf9;
  color:#287565;
  font-size:11px;
  font-weight:900;
  letter-spacing:.02em;
}

/* Ubicación de cada elemento dentro de la estructura */
.outline-location-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:100%;
  margin-top:6px;
  padding:5px 8px;
  border:1px solid #d8e6f2;
  border-radius:999px;
  background:#f7fbff;
  color:#526d89;
  font-size:11px;
  font-weight:850;
}
.builder-program .program-row{
  grid-template-columns:44px 48px minmax(0,1fr)!important;
  align-items:start!important;
}
.builder-program .program-number,.builder-program .program-icon{margin-top:5px}
.builder-program .program-location-form,
.builder-program .inline-weight-form,
.builder-program .program-actions{
  grid-column:3!important;
  justify-self:start;
}
.program-location-form{
  width:min(100%,560px);
  display:grid;
  grid-template-columns:auto minmax(190px,1fr) auto;
  align-items:end;
  gap:8px;
  padding:9px 10px;
  margin-top:4px;
  border:1px solid #e0e9f2;
  border-radius:14px;
  background:#fbfdff;
}
.program-location-form label{font-size:11px;font-weight:900;color:#60748a;align-self:center}
.program-location-form select{min-height:36px;padding:7px 9px;border:1px solid #d5e1ed;border-radius:10px;background:#fff;color:#29425e}
.builder-program .program-actions{justify-content:flex-start!important}

/* Administrador de bloques / subbloques */
.structure-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px;align-items:start}
.structure-create-card{position:sticky;top:118px}
.structure-list{display:grid;gap:10px}
.structure-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto auto;
  gap:12px;
  align-items:center;
  padding:13px;
  border:1px solid #dfe8f3;
  border-radius:18px;
  background:#fff;
}
.structure-row.is-child{margin-left:30px;background:#fbfdff;border-left:4px solid #9bdaca}
.structure-row.is-disabled{opacity:.62}
.structure-row__drag{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#eef6fb;color:#315675;font-weight:950}
.structure-row__main{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(180px,.8fr) auto;gap:9px;align-items:end;margin:0}
.structure-row__main .field{margin:0}
.structure-row__main .field label{font-size:11px}
.structure-row__main input,.structure-row__main select{min-height:38px!important;padding:8px 10px!important}
.structure-row__meta{display:grid;gap:5px;justify-items:end;min-width:90px}
.structure-row__meta small{color:#74879b;font-size:11px;white-space:nowrap}
.structure-row__actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.structure-row__actions form{margin:0}

/* El editor solo se llama Contenido; la ubicación queda visible arriba. */
.sc-editor-meta{grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr)!important}
.sc-editor-meta>.switch-line{grid-column:1/-1}

@media(max-width:1100px){
  .structure-layout{grid-template-columns:1fr}
  .structure-create-card{position:static}
  .structure-row{grid-template-columns:34px minmax(0,1fr)}
  .structure-row__main,.structure-row__meta,.structure-row__actions{grid-column:2}
  .structure-row__meta{justify-items:start;display:flex;align-items:center;gap:8px}
  .structure-row__actions{justify-content:flex-start}
}
@media(max-width:760px){
  .program-location-form{grid-template-columns:1fr}
  .structure-row.is-child{margin-left:12px}
  .structure-row__main{grid-template-columns:1fr}
  .sc-editor-meta{grid-template-columns:1fr!important}
}

/* =========================================================
   PARCHE · Vista alumno tipo LMS/Moodle sin columna derecha
   - Navegación lateral compacta
   - Una sola actividad abierta a la vez
   - Módulos plegables en lugar de una lista gigante
   ========================================================= */
.student-course-layout{
  display:grid;
  grid-template-columns:245px minmax(0,1fr);
  gap:22px;
  align-items:start;
  margin:18px 0 34px;
}
.student-course-nav{min-width:0}
.student-course-nav__sticky{
  position:sticky;
  top:112px;
  display:grid;
  gap:14px;
}
.student-course-back{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:0 4px;
  color:#315276;
  font-size:13px;
  font-weight:850;
}
.student-course-back:hover{color:var(--edu-course-blue)}
.student-course-progressbox{
  display:grid;
  gap:8px;
  padding:18px;
  border:1px solid #dbe8f4;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(23,48,111,.07);
}
.student-course-progressbox>span{font-size:13px;font-weight:900;color:var(--edu-course-navy)}
.student-course-progressbox>strong{font-size:30px;line-height:1;color:var(--edu-course-navy)}
.student-course-progressbox>small{font-size:11px;line-height:1.45;color:var(--edu-course-muted)}
.student-course-progressbar{height:8px;overflow:hidden;border-radius:999px;background:#eaf1f8}
.student-course-progressbar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2088ed,#62b7ff)}
.student-course-navlinks{
  display:grid;
  gap:5px;
  padding:10px;
  border:1px solid #dbe8f4;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(23,48,111,.06);
}
.student-course-navlinks a{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-height:44px;
  padding:9px 11px;
  border-radius:12px;
  color:#44617f;
  font-size:13px;
  font-weight:800;
}
.student-course-navlinks a i{width:20px;text-align:center;color:#57799d}
.student-course-navlinks a:hover{background:#f2f8ff;color:#145ca7}

.student-course-main{min-width:0;display:grid;gap:18px}
.student-course-overview{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  gap:24px;
  align-items:center;
  padding:26px 28px;
  overflow:hidden;
  border:1px solid #d8e8f7;
  border-radius:24px;
  background:linear-gradient(135deg,#fff 0%,#f8fbff 65%,#edf7ff 100%);
  box-shadow:0 16px 40px rgba(23,48,111,.07);
}
.student-course-overview::after{
  content:"";
  position:absolute;
  width:240px;
  height:240px;
  right:-90px;
  top:-115px;
  border-radius:50%;
  background:rgba(30,136,229,.055);
  pointer-events:none;
}
.student-course-overview__copy{position:relative;z-index:1;min-width:0}
.student-course-eyebrow{
  display:block;
  margin-bottom:5px;
  color:#1883e6;
  font-size:10px;
  font-weight:950;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.student-course-overview h1{margin:0;color:var(--edu-course-navy);font-size:clamp(25px,3vw,38px);line-height:1.08}
.student-course-overview p{max-width:800px;margin:10px 0 0;color:#5e7188;line-height:1.6}
.student-course-teacher{display:flex;gap:9px;align-items:center;margin-top:14px;color:#57718f;font-size:12px}
.student-course-teacher i{color:#2288e8}
.student-course-cover{
  position:relative;
  z-index:1;
  width:230px;
  aspect-ratio:16/10;
  overflow:hidden;
  border:1px solid #d5e5f3;
  border-radius:18px;
  background:#eef6fd;
  box-shadow:0 12px 28px rgba(23,48,111,.09);
}
.student-course-cover img{display:block;width:100%;height:100%;object-fit:cover}

.student-course-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(135px,1fr));
  gap:10px;
}
.student-course-stat{
  min-width:0;
  min-height:84px;
  display:grid;
  align-content:center;
  gap:5px;
  padding:14px 16px;
  border:1px solid #dce8f3;
  border-radius:16px;
  background:#fff;
}
.student-course-stat span{font-size:10px;font-weight:850;color:#7a8ba0}
.student-course-stat strong{font-size:13px;line-height:1.35;color:#18366d;overflow-wrap:anywhere}
.student-course-result,.student-course-grade{margin:0!important}

.student-next-card{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:18px 20px;
  border:1px solid #8bc7ff;
  border-radius:20px;
  background:linear-gradient(100deg,#f7fbff,#edf7ff);
  box-shadow:0 10px 30px rgba(30,136,229,.07);
}
.student-next-card__icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:#dceeff;
  color:#167ce0;
  font-size:20px;
}
.student-next-card__body{min-width:0}
.student-next-card__body>span{font-size:10px;font-weight:950;letter-spacing:.09em;color:#167ce0}
.student-next-card__body h2{margin:3px 0 5px;color:#15346c;font-size:20px;line-height:1.2}
.student-next-card__body p{margin:0;color:#6d8096;font-size:12px}
.student-next-card__button{min-width:145px;justify-content:center;white-space:nowrap}

.student-current-lesson{
  scroll-margin-top:120px;
  overflow:hidden;
  border:1px solid #dbe8f3;
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 36px rgba(23,48,111,.07);
}
.student-current-lesson.is-current{border-color:#9fd1fb}
.student-current-lesson.is-complete{border-color:#bde8d4}
.student-current-lesson.is-locked{opacity:.78;background:#fbfcfd}
.student-current-lesson__header{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:18px 20px;
  border-bottom:1px solid #e7eef5;
  background:#fbfdff;
}
.student-current-lesson__icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#e5f3ff;
  color:#147bdb;
  font-size:17px;
}
.student-current-lesson__header h2{margin:2px 0 0;color:#17356c;font-size:22px;line-height:1.2}
.student-current-lesson__body{padding:22px}
.student-lesson-status{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  background:#edf2f7;
  color:#6c7f95;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.student-lesson-status.current{background:#e6f2ff;color:#1478d1}
.student-lesson-status.done{background:#e5f8ee;color:#16814c}
.student-lesson-status.locked{background:#f0f2f5;color:#7d8793}
.student-current-lesson .structured-content{margin:0}

.student-modules-section{scroll-margin-top:120px;display:grid;gap:12px}
.student-section-title{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:4px 2px}
.student-section-title h2{margin:0;color:#17356c;font-size:24px}
.student-section-title>span{font-size:11px;font-weight:800;color:#7b8da1}
.student-modules-list{display:grid;gap:10px}
.student-module{
  overflow:hidden;
  border:1px solid #dbe7f2;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(23,48,111,.045);
}
.student-module summary{
  list-style:none;
  cursor:pointer;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) minmax(145px,210px) 22px;
  gap:12px;
  align-items:center;
  min-height:72px;
  padding:13px 16px;
  background:#fff;
  user-select:none;
}
.student-module summary::-webkit-details-marker{display:none}
.student-module[open] summary{background:#f8fbff;border-bottom:1px solid #e7eef5}
.student-module-number{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#318ce8;
  color:#fff;
  font-size:13px;
  font-weight:950;
}
.student-module-copy{min-width:0;display:grid;gap:3px}
.student-module-copy strong{color:#19386d;font-size:14px}
.student-module-copy small{color:#7a8da1;font-size:10px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.student-module-progress{display:grid;gap:5px;justify-items:end}
.student-module-progress small{color:#71869b;font-size:9px;font-weight:800}
.student-module-progress>span{display:block;width:100%;height:6px;overflow:hidden;border-radius:999px;background:#eaf0f6}
.student-module-progress>span i{display:block;height:100%;border-radius:inherit;background:#53c98f}
.student-module-chevron{color:#547493;font-size:11px;transition:transform .2s ease}
.student-module[open] .student-module-chevron{transform:rotate(180deg)}
.student-module-items{display:grid;padding:7px 12px 12px}
.student-module-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto 20px;
  gap:10px;
  align-items:center;
  min-height:58px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
  color:inherit;
}
.student-module-row+a.student-module-row,.student-module-row+div.student-module-row{border-top-color:#eef2f6;border-top-left-radius:0;border-top-right-radius:0}
a.student-module-row:hover{background:#f5faff;border-color:#d9eafb}
.student-module-row.is-selected{background:#eef7ff;border-color:#b9ddfb}
.student-module-row.is-locked{opacity:.6;cursor:not-allowed}
.student-module-row__status{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#edf5fd;
  color:#2787e3;
  font-size:12px;
}
.student-module-row.is-done .student-module-row__status{background:#e5f8ef;color:#199159}
.student-module-row__copy{min-width:0;display:grid;gap:3px}
.student-module-row__copy strong{font-size:12px;line-height:1.3;color:#24436f}
.student-module-row__copy small{font-size:9px;color:#8797a9}
.student-module-row__badge{
  min-width:70px;
  text-align:center;
  padding:5px 8px;
  border-radius:999px;
  background:#f1f4f7;
  color:#75869a;
  font-size:9px;
  font-weight:900;
}
.student-module-row__badge.done{background:#e5f8ef;color:#17814d}
.student-module-row__badge.pending{background:#edf5ff;color:#2879c8}
.student-module-row__badge.locked{background:#eff1f4;color:#7b8794}
.student-module-row__arrow{color:#6990b3;font-size:10px}

@media(max-width:1050px){
  .student-course-layout{grid-template-columns:210px minmax(0,1fr);gap:16px}
  .student-course-overview{grid-template-columns:minmax(0,1fr) 185px}
  .student-course-cover{width:185px}
  .student-module summary{grid-template-columns:36px minmax(0,1fr) 155px 18px}
}
@media(max-width:820px){
  .student-course-layout{grid-template-columns:1fr}
  .student-course-nav__sticky{position:static}
  .student-course-navlinks{grid-template-columns:repeat(2,minmax(0,1fr))}
  .student-course-progressbox{grid-template-columns:auto auto;align-items:center}
  .student-course-progressbox .student-course-progressbar,.student-course-progressbox small{grid-column:1/-1}
  .student-course-overview{grid-template-columns:1fr}
  .student-course-cover{width:100%;max-width:360px}
}
@media(max-width:620px){
  .student-course-layout{margin-top:10px}
  .student-course-navlinks{grid-template-columns:1fr}
  .student-course-overview{padding:20px}
  .student-course-overview h1{font-size:27px}
  .student-next-card{grid-template-columns:46px minmax(0,1fr)}
  .student-next-card__icon{width:44px;height:44px}
  .student-next-card__button{grid-column:1/-1;width:100%}
  .student-current-lesson__header{grid-template-columns:42px minmax(0,1fr)}
  .student-current-lesson__header .student-lesson-status{grid-column:2}
  .student-current-lesson__body{padding:16px}
  .student-module summary{grid-template-columns:34px minmax(0,1fr) 18px}
  .student-module-progress{grid-column:2;justify-items:start}
  .student-module-progress>span{width:min(210px,100%)}
  .student-module-chevron{grid-column:3;grid-row:1/3}
  .student-module-row{grid-template-columns:30px minmax(0,1fr) 18px}
  .student-module-row__badge{grid-column:2;justify-self:start;min-width:0}
  .student-module-row__arrow{grid-column:3;grid-row:1/3}
  .student-section-title{align-items:start;flex-direction:column}
}

/* ==== Recursos compactos dentro de lecciones ==== */
.lesson-video-resource{display:grid;gap:9px;margin:14px 0 18px}.lesson-video-resource__head{display:flex;align-items:center;gap:8px;color:#193155}.lesson-video-resource__head i{color:#245fbe}.lesson-video-resource__head strong{font-size:12px}.lesson-resource-box{margin:16px 0 4px;padding:14px;border:1px solid #dce6f0;border-radius:15px;background:#f8fbfe}.lesson-resource-box__head{display:flex;align-items:center;gap:10px;margin-bottom:11px}.lesson-resource-box__head>i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eaf4ff;color:#245fbe}.lesson-resource-box__head strong{display:block;color:#193155;font-size:12px}.lesson-resource-box__head small{display:block;margin-top:2px;color:#7a8da0;font-size:9.5px}.lesson-resource-buttons{display:flex;flex-wrap:wrap;gap:8px}.lesson-resource-button{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 13px;border:1px solid #cfddea;border-radius:11px;background:#fff;color:#23476d;font-size:10.5px;font-weight:850;transition:.15s ease}.lesson-resource-button:hover{border-color:#9ebce0;background:#f4f9ff;transform:translateY(-1px)}.lesson-resource-button i{color:#245fbe}.lesson-resource-button.disabled-preview{pointer-events:none;opacity:.9}

/* Reproductores por enlace (YouTube/Vimeo): más compactos y centrados. */
.lesson-video-resource .learning-media.video-embed{
  width:min(100%,820px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}


/* ==== Lección sencilla: recursos claros + video separado · 2026-09-12 ==== */
.lesson-material-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}.lesson-material-guide article{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;padding:12px 13px;border:1px solid #dce6f0;border-radius:14px;background:#fbfdff}.lesson-material-guide article>span{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#eef5ff;color:#245fbe}.lesson-material-guide strong{display:block;color:#193155;font-size:11px}.lesson-material-guide small{display:block;margin-top:3px;color:#788b9e;font-size:9px;line-height:1.4}
.lesson-existing-resources--compact,.lesson-existing-videos{margin-bottom:12px}.lesson-existing-resource--video .lesson-existing-resource__icon.is-video,.lesson-material-row__icon.is-video{background:#eef8f5;color:#16a085}.lesson-material-adder{padding:14px;border:1px solid #dce6f0;border-radius:16px;background:#fff}.lesson-material-actions{display:flex;gap:7px;flex-wrap:wrap}.lesson-material-new-list{display:grid;gap:10px;margin-top:12px}.lesson-material-row{padding:13px;border:1px solid #dce6f0;border-radius:14px;background:#fbfdff}.lesson-material-row--video{border-color:#cfe7df;background:#fbfefd}.lesson-material-row__head{display:grid;grid-template-columns:40px minmax(0,1fr) 34px;gap:10px;align-items:center;margin-bottom:11px}.lesson-material-row__icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#eef5ff;color:#245fbe}.lesson-material-row__head strong{display:block;color:#193155;font-size:11px}.lesson-material-row__head small{display:block;margin-top:2px;color:#788b9e;font-size:9px;line-height:1.4}.lesson-material-row__fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lesson-material-row .field{margin:0}.lesson-material-row__remove{width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:1px solid #e3dfe2!important;border-radius:10px!important;background:#fff!important;color:#a55d65!important;box-shadow:none!important}.lesson-video-source{display:grid;gap:9px;margin-top:10px;padding:11px;border:1px solid #d8e8e3;border-radius:13px;background:#fff}.lesson-video-source>span{color:#4d667f;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.lesson-video-source__choices{display:flex;gap:7px;flex-wrap:wrap}.lesson-video-source__choices button{min-height:36px!important;padding:7px 11px!important;border:1px solid #dce6f0!important;border-radius:10px!important;background:#fff!important;color:#49657f!important;box-shadow:none!important;font-size:10px!important}.lesson-video-source__choices button.is-active{border-color:#245fbe!important;background:#eef5ff!important;color:#193155!important}.lesson-video-source__field[hidden]{display:none!important}.lesson-video-source__field small{display:block;margin-top:4px;color:#7c8fa2;font-size:8.5px}.lesson-resource-empty[hidden]{display:none!important}
@media(max-width:850px){.lesson-material-guide{grid-template-columns:1fr}.lesson-material-row__fields{grid-template-columns:1fr}}

/* ===== Lección: edición clara de recursos existentes 2026-09-12 ===== */
.lesson-existing-resource.lesson-existing-resource--url,
.lesson-existing-resource.lesson-existing-resource--video{
  grid-template-columns:40px minmax(190px,.8fr) minmax(300px,1.35fr) auto auto!important;
  align-items:end!important;
}
.lesson-existing-resource__url{min-width:0!important;margin:0!important}
.lesson-existing-resource__file{
  min-width:0;padding:9px 11px;border:1px solid #dce6f0;border-radius:11px;background:#f8fbfe;
}
.lesson-existing-resource__file small{display:block;color:#73869a;font-size:8.5px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.lesson-existing-resource__file strong{display:block;margin-top:3px;color:#193155;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lesson-resource-remove-now{
  min-height:36px!important;height:36px!important;padding:0 11px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  border:1px solid #efcfd3!important;border-radius:10px!important;background:#fff7f7!important;color:#b64350!important;box-shadow:none!important;font-size:9.5px!important;font-weight:900!important;
}
.lesson-resource-remove-now:hover{background:#fff0f1!important;border-color:#e5b8be!important;transform:none!important}
.lesson-resource-remove-now:disabled{opacity:.6;cursor:wait}
.lesson-existing-videos .lesson-resource-heading{padding-bottom:2px}
.lesson-existing-videos .lesson-resource-heading small{max-width:760px}
@media(max-width:1050px){
  .lesson-existing-resource.lesson-existing-resource--url,
  .lesson-existing-resource.lesson-existing-resource--video{grid-template-columns:40px minmax(0,1fr) minmax(0,1.2fr)!important}
  .lesson-existing-resource.lesson-existing-resource--url .lesson-existing-resource__type,
  .lesson-existing-resource.lesson-existing-resource--video .lesson-existing-resource__type{grid-column:2!important}
  .lesson-existing-resource.lesson-existing-resource--url .lesson-resource-remove-now,
  .lesson-existing-resource.lesson-existing-resource--video .lesson-resource-remove-now{grid-column:3!important;justify-self:end!important}
}
@media(max-width:720px){
  .lesson-existing-resource.lesson-existing-resource--url,
  .lesson-existing-resource.lesson-existing-resource--video{grid-template-columns:40px minmax(0,1fr)!important;align-items:center!important}
  .lesson-existing-resource.lesson-existing-resource--url>*:not(.lesson-existing-resource__icon),
  .lesson-existing-resource.lesson-existing-resource--video>*:not(.lesson-existing-resource__icon){grid-column:2!important}
  .lesson-existing-resource.lesson-existing-resource--url .lesson-resource-remove-now,
  .lesson-existing-resource.lesson-existing-resource--video .lesson-resource-remove-now{justify-self:start!important}
}


/* ==== Videos múltiples: gestor persistente 2026-09-12 ==== */
.lesson-video-manager{margin:14px 0 12px;padding:15px;border:1px solid #cfe7df;border-radius:17px;background:linear-gradient(180deg,#fbfefd 0%,#f8fcfb 100%)}
.lesson-resource-heading--video{align-items:center}.lesson-add-video-main{white-space:nowrap}.lesson-existing-video-list,.lesson-video-new-list{display:grid;gap:10px}.lesson-video-new-list{margin-top:10px}.lesson-video-empty{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:10px;padding:14px;border:1px dashed #bcded3;border-radius:14px;background:#fff}.lesson-video-empty[hidden]{display:none!important}.lesson-video-empty__icon{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#eef8f5;color:#16a085;font-size:17px}.lesson-video-empty strong{display:block;color:#193155;font-size:12px}.lesson-video-empty small{display:block;margin-top:3px;color:#73889a;font-size:9.5px}.lesson-video-empty .btn-light{white-space:nowrap}
@media(max-width:760px){.lesson-video-empty{grid-template-columns:44px minmax(0,1fr)}.lesson-video-empty .btn-light{grid-column:1/-1;width:100%;justify-content:center}}


/* Videos por enlace únicamente: evita cargas pesadas en el hosting */
.lesson-video-source--url-only{display:grid;gap:10px}.lesson-video-url-note{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border:1px solid #d7e5f3;border-radius:13px;background:#f8fbff;color:#193155}.lesson-video-url-note>i{width:32px;height:32px;display:grid;place-items:center;flex:0 0 32px;border-radius:10px;background:#eaf3ff;color:#245fbe}.lesson-video-url-note strong{display:block;font-size:12px}.lesson-video-url-note small{display:block;margin-top:3px;color:#6f8398;font-size:10px;line-height:1.45}

/* ---------- Gestor de alumnos del curso ---------- */
.edu-assignment-stack{
  display:grid;
  gap:18px;
  margin-top:2px;
}
.edu-assignment-teachers{max-width:720px}
.edu-assignment-students{min-width:0}
.edu-roster-picker__hint{display:block;margin:-3px 0 8px}
.edu-roster-picker{
  overflow:hidden;
  border:1px solid #d5e2ef;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(25,49,85,.04);
}
.edu-roster-picker__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  border-bottom:1px solid #e8eff6;
  background:linear-gradient(180deg,#fbfdff 0%,#f7fbff 100%);
}
.edu-roster-picker__summary>div:first-child{display:grid;gap:3px;min-width:0}
.edu-roster-picker__summary strong{font-size:15px;color:#17385f}
.edu-roster-picker__summary small{font-size:11px;color:#70859b;line-height:1.4}
.edu-roster-picker__stats{display:flex;align-items:stretch;gap:8px;flex:0 0 auto}
.edu-roster-picker__stats>span{
  min-width:92px;
  padding:8px 12px;
  display:grid;
  place-items:center;
  gap:1px;
  border:1px solid #dbe8f4;
  border-radius:13px;
  background:#fff;
}
.edu-roster-picker__stats b{font-size:18px;line-height:1;color:#1565c0}
.edu-roster-picker__stats small{font-size:9px;text-transform:uppercase;letter-spacing:.06em;font-weight:900;color:#71859b}
.edu-roster-picker__toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 16px 8px;
}
.edu-roster-picker__search{
  min-height:42px;
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  margin:0 !important;
  padding:0 12px !important;
  border:1px solid #c9d9e9 !important;
  border-radius:12px !important;
  background:#fff !important;
}
.edu-roster-picker__search:focus-within{border-color:#71afe7 !important;box-shadow:0 0 0 3px rgba(39,126,214,.09)}
.edu-roster-picker__search i{color:#6d86a1;font-size:12px}
.edu-roster-picker__search input{
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  font:inherit;
}
.edu-roster-picker__filters{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.edu-roster-picker__filters button{
  min-height:36px;
  padding:0 12px;
  border:1px solid #d2dfec;
  border-radius:10px;
  background:#fff;
  color:#536d89;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.edu-roster-picker__filters button:hover{background:#f5f9fd;border-color:#bcd5eb}
.edu-roster-picker__filters button.is-active{background:#eaf4ff;border-color:#9bc9f2;color:#125eb5}
.edu-roster-picker__actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:4px 16px 12px;
}
.edu-roster-picker__actions>div{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.edu-roster-picker__page-size{display:flex !important;align-items:center !important;gap:7px !important;margin:0 !important;color:#70859b;font-size:10px;font-weight:800}
.edu-roster-picker__page-size select{width:auto !important;min-width:68px !important;min-height:34px !important;margin:0 !important;padding:5px 26px 5px 9px !important;border-radius:9px !important}
.edu-roster-picker__headrow{
  display:grid;
  grid-template-columns:42px minmax(260px,1.45fr) minmax(190px,.8fr) 105px;
  gap:12px;
  align-items:center;
  padding:8px 16px;
  border-top:1px solid #edf2f7;
  border-bottom:1px solid #e6eef6;
  background:#f8fbfe;
  color:#70859b;
  font-size:9px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.edu-roster-picker__list{display:grid;padding:6px 8px;background:#fff}
.edu-roster-picker__row{
  display:grid !important;
  grid-template-columns:42px minmax(260px,1.45fr) minmax(190px,.8fr) 105px !important;
  gap:12px !important;
  align-items:center !important;
  min-height:58px;
  margin:0 !important;
  padding:8px 8px !important;
  border:1px solid transparent;
  border-radius:11px;
  background:#fff;
  cursor:pointer;
}
.edu-roster-picker__row+ .edu-roster-picker__row{border-top-color:#f0f4f8}
.edu-roster-picker__row:hover{background:#f8fbff;border-color:#e0ebf5}
.edu-roster-picker__row.is-selected{background:#eef7ff;border-color:#c7def2}
.edu-roster-picker__row[hidden]{display:none !important}
.edu-roster-picker__check{display:grid;place-items:center}
.edu-roster-picker__check input{width:17px !important;height:17px !important;margin:0 !important;accent-color:#2368c4}
.edu-roster-picker__identity,.edu-roster-picker__profile{display:grid;gap:2px;min-width:0}
.edu-roster-picker__identity strong,.edu-roster-picker__profile strong{font-size:11.5px;color:#17385f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.edu-roster-picker__identity small,.edu-roster-picker__profile small{font-size:9.5px;color:#71859b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.edu-roster-picker__status{
  justify-self:end;
  min-width:82px;
  padding:5px 8px;
  border-radius:999px;
  background:#f1f4f7;
  color:#728399;
  text-align:center;
  font-size:9px;
  font-weight:950;
}
.edu-roster-picker__status.is-assigned,.edu-roster-picker__row.is-selected .edu-roster-picker__status{background:#e7f8ef;color:#138353}
.edu-roster-picker__empty{padding:24px;text-align:center;color:#70859b;font-size:11px;background:#fff}
.edu-roster-picker__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 16px;
  border-top:1px solid #e7eef6;
  background:#fbfdff;
  color:#70859b;
  font-size:10px;
  font-weight:750;
}
.edu-roster-picker__pager{display:flex;align-items:center;gap:9px}
.edu-roster-picker__pager strong{min-width:52px;text-align:center;color:#17385f;font-size:10px}
.edu-roster-picker__pager button:disabled{opacity:.45;cursor:not-allowed}

@media (max-width:900px){
  .edu-roster-picker__summary{align-items:flex-start;flex-direction:column}
  .edu-roster-picker__stats{width:100%}
  .edu-roster-picker__stats>span{flex:1}
  .edu-roster-picker__toolbar{grid-template-columns:1fr}
  .edu-roster-picker__headrow{display:none}
  .edu-roster-picker__row{grid-template-columns:34px minmax(0,1fr) 90px !important;gap:8px !important}
  .edu-roster-picker__profile{grid-column:2/3}
  .edu-roster-picker__status{grid-column:3/4;grid-row:1/3}
}
@media (max-width:620px){
  .edu-roster-picker__summary,.edu-roster-picker__toolbar,.edu-roster-picker__actions,.edu-roster-picker__footer{padding-left:11px;padding-right:11px}
  .edu-roster-picker__actions,.edu-roster-picker__footer{align-items:stretch;flex-direction:column}
  .edu-roster-picker__page-size{align-self:flex-end}
  .edu-roster-picker__pager{justify-content:space-between}
  .edu-roster-picker__row{grid-template-columns:30px minmax(0,1fr) !important}
  .edu-roster-picker__profile{grid-column:2/3}
  .edu-roster-picker__status{grid-column:2/3;grid-row:auto;justify-self:start;margin-top:2px}
}


/* =========================================================
   EducALE · Administración de cursos compacta / profesional
   2026-09-18
   ========================================================= */
.admin-courses-page{
  --ac-navy:#15345d;
  --ac-blue:#176fe5;
  --ac-sky:#eef6ff;
  --ac-line:#dce7f3;
  --ac-muted:#71859d;
  --ac-bg:#f7faff;
  display:grid;
  gap:20px;
}
.admin-courses-page .admin-courses-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin-bottom:0;
}
.admin-courses-page .admin-courses-hero h1{margin-bottom:6px}
.admin-courses-page .admin-courses-hero p{margin:0;color:var(--ac-muted);max-width:700px}
.admin-courses-hero__kpis{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.admin-courses-hero__kpis>span{
  min-width:88px;padding:10px 13px;border:1px solid var(--ac-line);border-radius:15px;background:#fff;
  display:grid;gap:2px;text-align:center;box-shadow:0 6px 16px rgba(20,52,93,.04)
}
.admin-courses-hero__kpis b{font-size:18px;color:var(--ac-blue);line-height:1}
.admin-courses-hero__kpis small{font-size:9px;color:var(--ac-muted);font-weight:900;text-transform:uppercase;letter-spacing:.06em}

/* Crear curso: colapsado por defecto */
.admin-course-create-shell{
  border:1px solid var(--ac-line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 28px rgba(20,52,93,.055);
  overflow:visible;
}
.admin-course-create-shell>summary{list-style:none}
.admin-course-create-shell>summary::-webkit-details-marker{display:none}
.admin-course-create-summary{
  min-height:78px;
  padding:14px 16px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  cursor:pointer;
  user-select:none;
}
.admin-course-create-summary__icon{
  width:46px;height:46px;display:grid;place-items:center;border-radius:14px;
  background:linear-gradient(135deg,#eaf4ff,#f2fbff);color:var(--ac-blue);font-size:17px
}
.admin-course-create-summary__copy{display:grid;gap:3px;min-width:0}
.admin-course-create-summary__copy strong{color:var(--ac-navy);font-size:15px}
.admin-course-create-summary__copy small{color:var(--ac-muted);font-size:11px;line-height:1.4}
.admin-course-create-summary__action{
  min-height:38px;padding:0 12px;border:1px solid #cfe0f2;border-radius:11px;background:#f7fbff;color:#245fbe;
  display:flex;align-items:center;gap:8px;font-size:11px;font-weight:900
}
.admin-course-create-summary__action i{transition:transform .2s ease}
.admin-course-create-shell[open] .admin-course-create-summary__action i{transform:rotate(180deg)}
.admin-course-create-shell[open] .admin-course-create-summary{border-bottom:1px solid #e8eff6}
.admin-course-create-body{padding:16px;background:#f9fbfe;border-radius:0 0 20px 20px}
.admin-course-create-form{display:grid;gap:14px}

.admin-course-form-section{
  padding:16px;border:1px solid var(--ac-line);border-radius:18px;background:#fff;
}
.admin-course-form-section__head{
  display:flex;align-items:center;gap:11px;margin-bottom:14px
}
.admin-course-form-section__head h3{margin:0;color:var(--ac-navy);font-size:14px}
.admin-course-form-section__head p{margin:2px 0 0;color:var(--ac-muted);font-size:10.5px}
.admin-course-form-section__number{
  width:31px;height:31px;display:grid;place-items:center;flex:0 0 31px;border-radius:10px;
  background:#eaf4ff;color:var(--ac-blue);font-size:12px;font-weight:950
}
.admin-course-form-grid{
  display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(150px,.55fr) minmax(155px,.55fr) minmax(155px,.55fr);gap:10px
}
.admin-course-form-section .field{margin:0}
.admin-course-form-section .field label{font-size:10.5px;margin-bottom:5px}
.admin-course-form-section input,
.admin-course-form-section select,
.admin-course-form-section textarea{
  min-height:42px!important;padding:9px 11px!important;border-radius:11px!important
}
.admin-course-description-field{margin-top:10px!important}
.admin-course-description-field textarea{min-height:82px!important;resize:vertical}
.admin-course-media-grid{display:grid;grid-template-columns:minmax(340px,.9fr) minmax(320px,1.1fr);gap:14px;align-items:start}
.admin-course-cover-uploader{grid-template-columns:128px minmax(0,1fr)!important;padding:11px!important;gap:12px!important}
.admin-course-cover-uploader .edu-cover-preview{
  width:128px!important;height:82px!important;min-width:128px!important;min-height:82px!important;max-width:128px!important;max-height:82px!important
}
.admin-course-cover-uploader .edu-cover-preview img{width:128px!important;height:82px!important}
.admin-course-cover-uploader .edu-cover-preview__empty{
  display:grid;place-items:center;gap:4px;color:#7890aa
}
.admin-course-cover-uploader .edu-cover-preview__empty i{font-size:20px}
.admin-course-cover-uploader .edu-cover-preview__empty small{font-size:9px;font-weight:800}
.admin-course-file-button{
  width:max-content!important;display:inline-flex!important;align-items:center!important;gap:7px!important;
  min-height:34px;padding:0 10px!important;margin:0!important;border:1px solid #cbdcec;border-radius:10px!important;
  background:#fff;color:#1c5eaf;font-size:10.5px!important;font-weight:900!important;cursor:pointer
}
.admin-course-file-button input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.admin-course-media-grid .edu-multiselect__trigger{min-height:48px}

/* Alumnos: cards compactas */
.admin-course-students-heading{margin-bottom:10px}
.admin-course-students-heading__stats{margin-left:auto;display:flex;gap:7px;flex-wrap:wrap}
.admin-course-students-heading__stats span{
  padding:6px 9px;border:1px solid #d7e5f2;border-radius:999px;background:#f8fbff;color:#627891;font-size:9.5px;font-weight:850
}
.admin-course-students-heading__stats b{color:var(--ac-blue)}
.admin-course-roster{
  border:1px solid #d9e5f1;border-radius:16px;box-shadow:none;background:#fbfdff
}
.admin-course-roster .edu-roster-picker__toolbar{
  grid-template-columns:minmax(260px,1fr) auto;padding:10px 10px 7px;gap:9px
}
.admin-course-roster .edu-roster-picker__search{min-height:40px;border-radius:11px!important;background:#fff!important}
.admin-course-roster .edu-roster-picker__filters button{min-height:34px;padding:0 10px}
.admin-course-roster .edu-roster-picker__actions{padding:2px 10px 9px}
.admin-course-roster .edu-roster-picker__headrow{display:none!important}
.admin-course-roster .edu-roster-picker__list{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:9px;
  background:#f8fbfe
}
.admin-course-roster .edu-roster-picker__row{
  position:relative;
  grid-template-columns:24px 40px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  gap:3px 9px!important;
  min-height:78px;
  padding:10px!important;
  border:1px solid #e0e9f3!important;
  border-radius:14px!important;
  background:#fff;
  box-shadow:0 3px 10px rgba(20,52,93,.025)
}
.admin-course-roster .edu-roster-picker__row:hover{border-color:#bcd7ef!important;box-shadow:0 7px 18px rgba(20,52,93,.06)}
.admin-course-roster .edu-roster-picker__row.is-selected{
  background:#f1f8ff!important;border-color:#8fc2ec!important;box-shadow:0 0 0 2px rgba(33,117,203,.06)
}
.admin-course-roster .edu-roster-picker__check{grid-column:1;grid-row:1/3;align-self:center}
.admin-course-roster .admin-roster-avatar{
  grid-column:2;grid-row:1/3;align-self:center;width:40px;height:40px;border-radius:13px;
  display:grid;place-items:center;background:#eaf4ff;color:#1768c5;font-size:13px;font-weight:950
}
.admin-course-roster .edu-roster-picker__identity{grid-column:3;grid-row:1;align-self:end}
.admin-course-roster .edu-roster-picker__identity strong{font-size:11.5px}
.admin-course-roster .edu-roster-picker__identity small{font-size:9.5px}
.admin-course-roster .edu-roster-picker__profile{
  grid-column:3/5;grid-row:2;display:flex;align-items:center;gap:6px;min-width:0;align-self:start
}
.admin-course-roster .edu-roster-picker__profile strong,
.admin-course-roster .edu-roster-picker__profile small{
  display:inline;max-width:48%;font-size:9px;color:#71859b;font-weight:700
}
.admin-course-roster .edu-roster-picker__profile strong:after{content:" · ";color:#b0bdcb;margin-left:5px}
.admin-course-roster .edu-roster-picker__status{
  grid-column:4;grid-row:1;align-self:center;justify-self:end;min-width:auto;padding:5px 7px;font-size:8.5px
}
.admin-course-roster .edu-roster-picker__footer{padding:8px 10px;background:#fff}
.admin-course-roster .edu-roster-picker__pager button{width:34px;height:32px;padding:0!important;display:grid;place-items:center}
.admin-course-roster .edu-roster-picker__empty{
  display:grid;place-items:center;gap:5px;padding:28px
}
.admin-course-roster .edu-roster-picker__empty i{font-size:20px;color:#90a4b9}
.admin-course-roster .edu-roster-picker__empty strong{color:var(--ac-navy);font-size:12px}
.admin-course-roster .edu-roster-picker__empty span{color:var(--ac-muted);font-size:10px}
.admin-course-create-actions{
  display:flex;justify-content:flex-end;gap:9px;padding-top:2px
}
.admin-course-create-submit{min-width:145px}

/* Cursos registrados */
.admin-course-catalog{
  padding:18px;border:1px solid var(--ac-line);border-radius:22px;background:#fff;
  box-shadow:0 10px 30px rgba(20,52,93,.05)
}
.admin-course-catalog__head{
  display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:15px
}
.admin-course-catalog__head h2{margin:2px 0 4px;color:var(--ac-navy);font-size:20px}
.admin-course-catalog__head p{margin:0;color:var(--ac-muted);font-size:11px}
.admin-course-catalog__eyebrow{
  color:#0f8f77;font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.09em
}
.admin-course-catalog__tools{display:flex;align-items:center;gap:8px}
.admin-course-search{
  min-width:260px;height:40px;display:flex!important;align-items:center!important;gap:8px!important;
  margin:0!important;padding:0 11px!important;border:1px solid #d3e1ef;border-radius:11px;background:#f9fbfe
}
.admin-course-search i{color:#6d84a0;font-size:11px}
.admin-course-search input{
  width:100%!important;margin:0!important;padding:0!important;border:0!important;outline:0!important;
  box-shadow:none!important;background:transparent!important;font:inherit
}
.admin-course-count{
  min-height:40px;padding:0 11px;display:flex;align-items:center;border-radius:11px;background:#eaf4ff;color:#1768c5;font-size:10.5px;font-weight:900;white-space:nowrap
}
.admin-course-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.admin-course-card{
  min-width:0;display:grid;grid-template-columns:148px minmax(0,1fr);overflow:hidden;
  border:1px solid #dce7f2;border-radius:17px;background:#fff;transition:.18s ease
}
.admin-course-card:hover{transform:translateY(-1px);border-color:#bdd7ee;box-shadow:0 12px 24px rgba(20,52,93,.07)}
.admin-course-card[hidden]{display:none!important}
.admin-course-card__media{position:relative;min-height:160px;background:#eef5fb;overflow:hidden}
.admin-course-card__media img{width:100%;height:100%;display:block;object-fit:cover}
.admin-course-card__placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#edf6ff,#f7fbff);color:#8aa0b7;font-size:28px}
.admin-course-card__status{position:absolute;top:9px;left:9px;box-shadow:0 4px 10px rgba(24,49,85,.08)}
.admin-course-card__body{min-width:0;padding:13px;display:grid;gap:10px}
.admin-course-card__title{min-width:0}
.admin-course-card__title h3{
  margin:0;color:var(--ac-navy);font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
.admin-course-card__title p{
  margin:4px 0 0;color:var(--ac-muted);font-size:9.5px;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
.admin-course-card__metrics{display:flex;gap:7px;flex-wrap:wrap}
.admin-course-card__metrics>span{
  min-width:82px;padding:7px 8px;border-radius:11px;background:#f5f9fd;display:grid;
  grid-template-columns:18px auto;grid-template-rows:auto auto;column-gap:5px;align-items:center
}
.admin-course-card__metrics i{grid-row:1/3;color:#2a73c4;font-size:11px}
.admin-course-card__metrics b{font-size:11px;color:var(--ac-navy);line-height:1}
.admin-course-card__metrics small{font-size:8px;color:var(--ac-muted)}
.admin-course-card__dates{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.admin-course-card__dates span{
  min-width:0;padding:7px;border:1px solid #e5edf5;border-radius:10px;display:grid;
  grid-template-columns:15px minmax(0,1fr);gap:1px 5px
}
.admin-course-card__dates i{grid-row:1/3;color:#6b87a6;font-size:10px;margin-top:2px}
.admin-course-card__dates small{font-size:7.5px;color:#8394a6;text-transform:uppercase;font-weight:900}
.admin-course-card__dates b{font-size:9px;color:#385473;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-course-card__actions{display:flex;gap:7px;margin-top:auto}
.admin-course-card__actions form{margin:0}
.admin-course-card__edit{flex:1;min-height:36px!important;justify-content:center;font-size:10px!important}
.admin-course-card__delete{
  width:38px;height:36px;padding:0!important;display:grid!important;place-items:center!important;border:1px solid #f0d4d7!important;
  border-radius:10px!important;background:#fff8f8!important;color:#b84a55!important;box-shadow:none!important
}
.admin-course-card__delete:hover{background:#fff0f1!important;border-color:#e5afb5!important}
.admin-course-empty,.admin-course-search-empty{
  grid-column:1/-1;min-height:180px;display:grid;place-items:center;align-content:center;gap:6px;
  border:1px dashed #cbdceb;border-radius:17px;background:#fafcff;color:var(--ac-muted);text-align:center
}
.admin-course-empty i,.admin-course-search-empty i{font-size:24px;color:#87a0b8}
.admin-course-empty strong,.admin-course-search-empty strong{color:var(--ac-navy);font-size:13px}
.admin-course-empty span,.admin-course-search-empty span{font-size:10px}
.admin-course-search-empty{margin-top:12px}

/* Responsive */
@media(max-width:1150px){
  .admin-course-form-grid{grid-template-columns:1fr 1fr}
  .admin-course-title-field{grid-column:1/-1}
  .admin-course-media-grid{grid-template-columns:1fr}
  .admin-course-card-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  .admin-courses-page .admin-courses-hero{align-items:flex-start;flex-direction:column}
  .admin-courses-hero__kpis{justify-content:flex-start}
  .admin-course-roster .edu-roster-picker__list{grid-template-columns:1fr}
  .admin-course-catalog__head{align-items:stretch;flex-direction:column}
  .admin-course-catalog__tools{width:100%}
  .admin-course-search{flex:1;min-width:0}
}
@media(max-width:650px){
  .admin-course-create-summary{grid-template-columns:42px minmax(0,1fr)}
  .admin-course-create-summary__action{grid-column:1/-1;justify-content:center}
  .admin-course-create-body,.admin-course-catalog{padding:11px}
  .admin-course-form-section{padding:12px}
  .admin-course-form-grid{grid-template-columns:1fr}
  .admin-course-title-field{grid-column:auto}
  .admin-course-cover-uploader{grid-template-columns:1fr!important}
  .admin-course-students-heading{align-items:flex-start;flex-wrap:wrap}
  .admin-course-students-heading__stats{margin-left:42px}
  .admin-course-roster .edu-roster-picker__toolbar{grid-template-columns:1fr}
  .admin-course-roster .edu-roster-picker__actions{align-items:stretch;flex-direction:column}
  .admin-course-roster .edu-roster-picker__actions>div{display:grid;grid-template-columns:1fr 1fr}
  .admin-course-roster .edu-roster-picker__page-size{align-self:flex-end}
  .admin-course-card{grid-template-columns:110px minmax(0,1fr)}
  .admin-course-card__media{min-height:175px}
  .admin-course-card__dates{grid-template-columns:1fr}
  .admin-course-catalog__tools{align-items:stretch;flex-direction:column}
  .admin-course-search{width:100%}
}


/* =========================================================
   EducALE · Cursos PRO v2
   Ajustes de búsqueda + selector de alumnos profesional
   ========================================================= */

/* El vacío de búsqueda nunca debe aparecer mientras esté hidden. */
.admin-course-search-empty[hidden],
.admin-course-card[hidden],
.admin-student-selector .edu-roster-picker__empty[hidden]{
  display:none !important;
}

/* ---------- Encabezado del selector en edición ---------- */
.admin-student-selector-wrap{
  margin-top:8px;
}
.admin-student-selector-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:0 0 10px;
  padding:0 2px;
}
.admin-student-selector-title__eyebrow{
  display:block;
  margin-bottom:3px;
  color:#11977c;
  font-size:9px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.admin-student-selector-title h3{
  margin:0 0 4px;
  color:#17385f;
  font-size:17px;
  line-height:1.2;
}
.admin-student-selector-title p{
  max-width:760px;
  margin:0;
  color:#71859b;
  font-size:10.5px;
  line-height:1.45;
}
.admin-student-selector-title__stats{
  display:flex;
  gap:7px;
  flex:0 0 auto;
}
.admin-student-selector-title__stats>span{
  min-width:90px;
  padding:8px 10px;
  border:1px solid #d9e6f2;
  border-radius:13px;
  background:#fff;
  text-align:center;
  display:grid;
  gap:2px;
}
.admin-student-selector-title__stats>span.is-selected{
  background:#effaf6;
  border-color:#c7ebdf;
}
.admin-student-selector-title__stats b{
  color:#1768c5;
  font-size:16px;
  line-height:1;
}
.admin-student-selector-title__stats .is-selected b,
.admin-student-selector-title__stats>span.is-selected b{
  color:#118a67;
}
.admin-student-selector-title__stats small{
  color:#71859b;
  font-size:8px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

/* ---------- Contenedor general ---------- */
.admin-student-selector{
  overflow:hidden;
  border:1px solid #dbe6f1 !important;
  border-radius:18px !important;
  background:#f8fbfe !important;
  box-shadow:0 8px 24px rgba(23,56,95,.04) !important;
}
.admin-student-selector .edu-roster-picker__toolbar{
  display:grid !important;
  grid-template-columns:minmax(330px,1fr) auto !important;
  gap:10px !important;
  align-items:center !important;
  padding:12px 12px 8px !important;
  background:#fff !important;
}
.admin-student-selector .edu-roster-picker__search{
  min-height:42px !important;
  border:1px solid #cfdeed !important;
  border-radius:12px !important;
  background:#f9fbfd !important;
  box-shadow:none !important;
}
.admin-student-selector .edu-roster-picker__search:focus-within{
  border-color:#78afe7 !important;
  background:#fff !important;
  box-shadow:0 0 0 3px rgba(31,116,211,.08) !important;
}
.admin-student-selector .edu-roster-picker__filters{
  gap:5px !important;
  padding:3px !important;
  border:1px solid #dce7f2;
  border-radius:12px;
  background:#f4f8fc;
}
.admin-student-selector .edu-roster-picker__filters button{
  min-height:34px !important;
  padding:0 12px !important;
  border:0 !important;
  border-radius:9px !important;
  background:transparent !important;
  color:#617892 !important;
  font-size:10px !important;
  font-weight:900 !important;
  box-shadow:none !important;
}
.admin-student-selector .edu-roster-picker__filters button.is-active{
  background:#fff !important;
  color:#1768c5 !important;
  box-shadow:0 3px 10px rgba(23,56,95,.08) !important;
}
.admin-student-selector .edu-roster-picker__actions{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  padding:3px 12px 10px !important;
  border-bottom:1px solid #e8eff6;
  background:#fff !important;
}
.admin-student-selector .edu-roster-picker__actions>div{
  display:flex !important;
  gap:6px !important;
  align-items:center !important;
}
.admin-student-selector .edu-roster-picker__actions .btn-light{
  min-height:32px !important;
  padding:0 10px !important;
  border-radius:9px !important;
  font-size:9.5px !important;
}
.admin-student-selector .edu-roster-picker__page-size{
  font-size:9.5px !important;
}
.admin-student-selector .edu-roster-picker__page-size select{
  min-height:32px !important;
  border-radius:9px !important;
}

/* ---------- Grid real de alumnos ---------- */
.admin-student-selector .edu-roster-picker__headrow{
  display:none !important;
}
.admin-student-selector .edu-roster-picker__list{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:9px !important;
  padding:11px !important;
  background:#f8fbfe !important;
}
.admin-student-selector .edu-roster-picker__row{
  position:relative !important;
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) auto !important;
  grid-template-rows:auto auto !important;
  gap:5px 10px !important;
  min-width:0 !important;
  min-height:88px !important;
  margin:0 !important;
  padding:12px 12px 11px !important;
  border:1px solid #dfe8f2 !important;
  border-radius:15px !important;
  background:#fff !important;
  box-shadow:0 4px 12px rgba(23,56,95,.025) !important;
  cursor:pointer !important;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease !important;
}
.admin-student-selector .edu-roster-picker__row:hover{
  transform:translateY(-1px) !important;
  border-color:#b9d3eb !important;
  box-shadow:0 8px 18px rgba(23,56,95,.065) !important;
}
.admin-student-selector .edu-roster-picker__row.is-selected{
  border-color:#9ddbc8 !important;
  background:#fbfffd !important;
  box-shadow:0 0 0 2px rgba(22,150,111,.045),0 6px 16px rgba(23,56,95,.035) !important;
}
.admin-student-selector .edu-roster-picker__row[hidden]{
  display:none !important;
}

/* Checkbox: discreto, arriba a la derecha */
.admin-student-selector .edu-roster-picker__check{
  position:absolute !important;
  top:10px !important;
  right:10px !important;
  z-index:2 !important;
  width:22px !important;
  height:22px !important;
  display:grid !important;
  place-items:center !important;
}
.admin-student-selector .edu-roster-picker__check input{
  width:18px !important;
  height:18px !important;
  margin:0 !important;
  accent-color:#16966f !important;
  cursor:pointer !important;
}

/* Avatar */
.admin-student-selector .admin-roster-avatar{
  grid-column:1 !important;
  grid-row:1/3 !important;
  align-self:center !important;
  width:42px !important;
  height:42px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:14px !important;
  background:linear-gradient(145deg,#eaf4ff,#f2fbff) !important;
  color:#1768c5 !important;
  font-size:14px !important;
  font-weight:950 !important;
  box-shadow:inset 0 0 0 1px #d9e9f7 !important;
}
.admin-student-selector .edu-roster-picker__row.is-selected .admin-roster-avatar{
  background:linear-gradient(145deg,#e7faf3,#f4fffb) !important;
  color:#118a67 !important;
  box-shadow:inset 0 0 0 1px #cbeadf !important;
}

/* Nombre / correo */
.admin-student-selector .edu-roster-picker__identity{
  grid-column:2 !important;
  grid-row:1 !important;
  align-self:end !important;
  display:grid !important;
  gap:2px !important;
  min-width:0 !important;
  padding-right:70px !important;
}
.admin-student-selector .edu-roster-picker__identity strong{
  color:#17385f !important;
  font-size:11.5px !important;
  line-height:1.25 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.admin-student-selector .edu-roster-picker__identity small{
  color:#7a8ea5 !important;
  font-size:9.2px !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* Estado como badge pequeño */
.admin-student-selector .edu-roster-picker__status{
  position:absolute !important;
  top:36px !important;
  right:10px !important;
  min-width:auto !important;
  padding:4px 7px !important;
  border-radius:999px !important;
  background:#f1f5f9 !important;
  color:#6f8195 !important;
  font-size:8px !important;
  font-weight:900 !important;
  line-height:1 !important;
}
.admin-student-selector .edu-roster-picker__row.is-selected .edu-roster-picker__status{
  background:#e7f8f0 !important;
  color:#12845f !important;
}

/* Metadatos como chips */
.admin-student-selector .edu-roster-picker__profile{
  grid-column:2/4 !important;
  grid-row:2 !important;
  display:flex !important;
  align-items:center !important;
  gap:5px !important;
  min-width:0 !important;
  overflow:hidden !important;
}
.admin-student-selector .admin-student-meta-pill{
  display:inline-flex !important;
  align-items:center !important;
  gap:5px !important;
  min-width:0 !important;
  max-width:48% !important;
  padding:4px 7px !important;
  border-radius:999px !important;
  background:#f5f8fb !important;
  color:#677d96 !important;
  font-size:8.4px !important;
  font-weight:800 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.admin-student-selector .admin-student-meta-pill i{
  flex:0 0 auto !important;
  color:#7894b1 !important;
  font-size:8px !important;
}

/* Footer */
.admin-student-selector .edu-roster-picker__empty{
  margin:11px !important;
  padding:30px 16px !important;
  border:1px dashed #ccddec !important;
  border-radius:14px !important;
  background:#fff !important;
  color:#71859b !important;
  text-align:center !important;
  display:grid !important;
  justify-items:center !important;
  gap:5px !important;
}
.admin-student-selector .edu-roster-picker__empty i{font-size:19px !important;color:#8ea4b9 !important}
.admin-student-selector .edu-roster-picker__empty strong{font-size:11px !important;color:#17385f !important}
.admin-student-selector .edu-roster-picker__empty span{font-size:9.5px !important}
.admin-student-selector .edu-roster-picker__footer{
  padding:9px 12px !important;
  border-top:1px solid #e7eef5 !important;
  background:#fff !important;
}
.admin-student-selector .edu-roster-picker__footer>span{
  color:#71859b !important;
  font-size:9.5px !important;
  font-weight:800 !important;
}
.admin-student-selector .edu-roster-picker__pager{
  gap:6px !important;
}
.admin-student-selector .edu-roster-picker__pager button{
  min-width:34px !important;
  min-height:32px !important;
  padding:0 9px !important;
  border-radius:9px !important;
  font-size:9px !important;
}
.admin-student-selector .edu-roster-picker__pager strong{
  min-width:44px !important;
  font-size:9.5px !important;
}
.admin-course-assignment-save{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}
.admin-course-assignment-save .btn{
  min-width:170px;
}

/* Crear curso: los chips del layout nuevo también deben verse bien. */
.admin-course-create-shell .admin-student-selector .admin-student-meta-pill{
  display:inline-flex !important;
}

@media(min-width:1500px){
  .admin-student-selector .edu-roster-picker__list{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media(max-width:1080px){
  .admin-student-selector .edu-roster-picker__list{
    grid-template-columns:1fr !important;
  }
}
@media(max-width:760px){
  .admin-student-selector-title{
    align-items:stretch;
    flex-direction:column;
  }
  .admin-student-selector-title__stats{
    width:100%;
  }
  .admin-student-selector-title__stats>span{flex:1}
  .admin-student-selector .edu-roster-picker__toolbar{
    grid-template-columns:1fr !important;
  }
  .admin-student-selector .edu-roster-picker__filters{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
  }
  .admin-student-selector .edu-roster-picker__actions{
    align-items:stretch !important;
    flex-direction:column !important;
  }
  .admin-student-selector .edu-roster-picker__actions>div{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
  }
  .admin-student-selector .edu-roster-picker__page-size{
    align-self:flex-end !important;
  }
}


/* =========================================================
   EducALE · Cursos v3: archivo, filtros avanzados y AJAX
   ========================================================= */
.admin-course-membership-note{display:flex;align-items:flex-start;gap:6px;margin-top:5px;color:#5f7894;font-size:9.5px;line-height:1.35;font-weight:700}
.admin-course-membership-note i{color:#1d76d9;margin-top:1px}
.admin-course-roster-filters{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(180px,.7fr) minmax(260px,1.6fr);gap:9px;align-items:end;padding:0 10px 9px}
.admin-course-roster-filters label{display:grid;gap:4px;margin:0!important}
.admin-course-roster-filters label span{font-size:8.5px;text-transform:uppercase;letter-spacing:.06em;color:#75899f;font-weight:950}
.admin-course-roster-filters select{min-height:36px!important;padding:6px 30px 6px 9px!important;border:1px solid #d7e4f1!important;border-radius:10px!important;background:#fff!important;color:#24486f;font-size:10px;font-weight:750}
.admin-course-filter-hint{min-height:36px;padding:8px 10px;display:flex;align-items:center;border-radius:10px;background:#f0f7ff;color:#607995;font-size:9px;line-height:1.35;font-weight:700}
.admin-course-view-filter{display:flex;align-items:center;gap:5px;padding:3px;border:1px solid #d5e3f1;border-radius:12px;background:#f7fbff}
.admin-course-view-filter button{border:0;background:transparent;color:#607994;min-height:33px;padding:0 9px;border-radius:9px;font-size:9.5px;font-weight:900;cursor:pointer}
.admin-course-view-filter button b{margin-left:3px}
.admin-course-view-filter button.is-active{background:#176fe5;color:#fff;box-shadow:0 4px 10px rgba(23,111,229,.18)}
.admin-course-card.is-archived{opacity:.82;background:#fafbfd}
.admin-course-card__archived{background:#eef1f5!important;color:#5d6b7a!important;border-color:#dce2e8!important}
.admin-course-card__archive{width:38px;height:36px;padding:0!important;display:grid!important;place-items:center!important;border:1px solid #d7e4f1!important;border-radius:10px!important;background:#f7fbff!important;color:#436987!important;box-shadow:none!important}
.admin-course-card__archive:hover{background:#edf6ff!important;color:#175ea8!important}
.admin-course-archive-banner{display:flex;align-items:center;gap:13px;padding:14px 16px;border:1px solid #e4d8b7;border-radius:17px;background:#fffaf0;color:#6f5a23;margin:0 0 14px}
.admin-course-archive-banner>i{font-size:21px;color:#b78319}
.admin-course-archive-banner>div{display:grid;gap:2px;flex:1}
.admin-course-archive-banner strong{font-size:13px;color:#5c4818}
.admin-course-archive-banner span{font-size:10px;line-height:1.4}
.admin-course-archive-banner form,.admin-course-archive-action form{margin:0}
.admin-course-archive-action{display:flex;justify-content:flex-end;margin:-6px 0 12px}
.admin-course-editor.is-readonly,.teacher-course-group.is-readonly{opacity:.65}
.admin-course-toast-stack{position:fixed;top:18px;right:18px;z-index:2147483000;width:min(400px,calc(100vw - 30px));display:grid;gap:8px;pointer-events:none}
.admin-course-toast{pointer-events:auto;display:grid;grid-template-columns:20px minmax(0,1fr) 28px;gap:9px;align-items:start;padding:13px 11px 13px 14px;border:1px solid #d8e5f2;border-left:4px solid #16946f;border-radius:14px;background:#fff;color:#1b3e67;box-shadow:0 16px 36px rgba(16,48,86,.16);opacity:0;transform:translateY(-8px);transition:.2s ease;font-size:11px;font-weight:750;line-height:1.4}
.admin-course-toast.is-visible{opacity:1;transform:translateY(0)}
.admin-course-toast.is-error{border-left-color:#d44848}.admin-course-toast.is-error>i{color:#d44848}
.admin-course-toast.is-info{border-left-color:#2677d9}.admin-course-toast.is-info>i{color:#2677d9}
.admin-course-toast.is-success>i{color:#16946f}
.admin-course-toast button{border:0;background:transparent;color:#708399;cursor:pointer;width:28px;height:28px;padding:0;display:grid;place-items:center;border-radius:8px}
@media(max-width:900px){.admin-course-roster-filters{grid-template-columns:1fr 1fr}.admin-course-filter-hint{grid-column:1/-1}.admin-course-view-filter{width:100%;overflow:auto}.admin-course-catalog__tools{flex-wrap:wrap}}
@media(max-width:620px){.admin-course-roster-filters{grid-template-columns:1fr}.admin-course-filter-hint{grid-column:auto}.admin-course-toast-stack{top:10px;right:10px;left:10px;width:auto}}


/* v4 · duplicar / cierre formal */
.admin-course-inline-form,.admin-course-control-bar form{margin:0}
.admin-course-control-bar{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:-4px 0 12px}
.admin-course-close-btn{border-color:#d7c8a4!important;color:#7d641d!important;background:#fffaf0!important}
.admin-course-closed-banner{display:flex;align-items:center;gap:13px;padding:14px 16px;border:1px solid #cbd9ea;border-radius:17px;background:#f5f8fc;color:#40536c;margin:0 0 14px}
.admin-course-closed-banner>i{font-size:21px;color:#456b9b}
.admin-course-closed-banner>div{display:grid;gap:2px;flex:1}.admin-course-closed-banner strong{font-size:13px;color:#27496f}.admin-course-closed-banner span{font-size:10px;line-height:1.4}.admin-course-closed-banner form{margin:0}
.admin-course-card.is-closed{border-color:#cbd9e8;background:#fbfcfe}.admin-course-card__closed{background:#edf2f7!important;color:#48617d!important;border-color:#d6e0eb!important}
.admin-course-card__duplicate{width:38px;height:36px;padding:0!important;display:grid!important;place-items:center!important;border:1px solid #d4e3f2!important;border-radius:10px!important;background:#f7fbff!important;color:#2868ad!important;box-shadow:none!important}.admin-course-card__duplicate:hover{background:#edf6ff!important}
.admin-course-editor.is-readonly form,.teacher-course-group.is-readonly form{pointer-events:none}.admin-course-editor.is-readonly button,.teacher-course-group.is-readonly button{opacity:.55}
@media(max-width:760px){.admin-course-closed-banner{align-items:flex-start;flex-wrap:wrap}.admin-course-closed-banner form{width:100%}.admin-course-closed-banner button{width:100%}.admin-course-control-bar{justify-content:stretch}.admin-course-control-bar form{flex:1}.admin-course-control-bar button{width:100%}}
