/* CI REDES · aula V13, componentes confinados a páginas académicas */
.ci-v13-aula-host{max-width:1420px!important}
.ci-v13-student-course{max-width:1080px!important}
.ci-v13-course-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:18px 0 22px}
.ci-v13-course-metric{padding:20px 23px;border:1px solid #dfeaf0;border-radius:15px;background:#fff;display:grid;gap:9px}
.ci-v13-course-metric span{font-size:12px;color:#698395}.ci-v13-course-metric strong{font-size:22px;color:#003049}
.ci-v13-resource-card,.ci-v13-task-card,.ci-v13-submission-card,.ci-v13-forum-post{padding:17px 19px;margin:12px 0;border:1px solid #e0eaf0;background:#fff;border-radius:14px;min-width:0}
.ci-v13-resource-card strong,.ci-v13-task-card strong,.ci-v13-submission-card strong,.ci-v13-forum-post strong{color:#003049;display:block;font-size:14px}
.ci-v13-resource-card small,.ci-v13-task-card small,.ci-v13-submission-card small,.ci-v13-forum-post small{font-size:11px;color:#648295;display:block;margin:7px 0}
.ci-v13-resource-card p,.ci-v13-task-card p,.ci-v13-submission-card p,.ci-v13-forum-post p{color:#3d5c6d;white-space:pre-line;overflow-wrap:anywhere;font-size:13px;line-height:1.7}
.ci-v13-task-card textarea,.ci-v13-submission-card textarea{min-height:82px;width:100%;resize:vertical;border:1px solid #ccdde5;border-radius:10px;padding:11px;font:inherit}
.ci-v13-task-status{font-size:12px;color:#226a52;margin:8px 0;font-weight:750}
.ci-v13-grade-panel{display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:8px;align-items:start}
.ci-v13-grade-input{width:74px;max-width:100%;padding:8px;border:1px solid #cfdee6;border-radius:8px;font:inherit}
.ci-v13-grade-panel button{min-height:41px}
.ci-v13-forum-reply{margin-left:28px;border-left:4px solid #99bbc9}
.ci-v13-forum-actions{display:flex;gap:9px;flex-wrap:wrap}
.ci-v13-forum-actions button{font-size:11px;min-height:32px;padding:6px 11px}
.ci-v13-teacher-list{display:grid;gap:8px;margin:12px 0}
.ci-v13-teacher-row{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:11px;border-radius:9px;background:#f3f8fb;font-size:12px;overflow-wrap:anywhere}
.ci-v13-teacher-assignment{border-bottom:1px solid #e0eaf0;padding:0 0 18px;margin:0 0 20px}
.ci-v13-teacher-assignment h3{font-size:17px;color:#003049}
.ci-v13-teacher-assignment .ci-v12-controls input{flex:2}
.ci-v13-approval-gate,.ci-v13-approval-banner{border:1px solid #e3c6a1;background:#fff8ef;border-radius:14px;padding:20px 24px;margin:15px 0 24px;color:#683e19}
.ci-v13-approval-gate strong{display:block;font-size:17px}.ci-v13-approval-gate p{font-size:13px;line-height:1.7;margin:10px 0 0}
@media(max-width:730px){.ci-v13-course-overview{grid-template-columns:1fr}.ci-v13-grade-panel{grid-template-columns:1fr}.ci-v13-forum-reply{margin-left:12px}}


/* V16 · aula docente: indicadores y recursos accionables */
.ci-v16-teacher-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}
.ci-v16-teacher-metrics>div{background:#f5f9fc;border:1px solid #e0ebf1;border-radius:12px;padding:15px 16px;display:grid;gap:8px}
.ci-v16-teacher-metrics span{color:#5c798b;font-size:11px;font-weight:700;line-height:1.4}
.ci-v16-teacher-metrics strong{color:#003049;font:800 25px/1 Outfit,system-ui,sans-serif}
#teacher-materials-list .ci-v12-course-card{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#teacher-materials-list .ci-v12-course-card strong{flex:1 1 100%}
#teacher-materials-list .ci-v12-course-card small,#teacher-materials-list .ci-v12-course-card p{flex:1 1 100%;overflow-wrap:anywhere}
#teacher-materials-list .ci-v12-course-card a,#teacher-materials-list .ci-v12-course-card button{font-size:11px}
#teacher-materials-list .ci-v12-course-card button:last-child:not(:first-of-type){border-color:#f1dce0;color:#8b2a35}
@media(max-width:880px){.ci-v16-teacher-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* V17 · Participantes legibles y progreso académico calculado */
#teacher-students .ci-v12-table-wrap{overflow-x:auto}
#teacher-students .ci-v12-table{width:100%;min-width:780px;table-layout:fixed;border-collapse:collapse}
#teacher-students .ci-v12-table th:nth-child(1){width:22%}
#teacher-students .ci-v12-table th:nth-child(2){width:27%}
#teacher-students .ci-v12-table th:nth-child(3){width:18%}
#teacher-students .ci-v12-table th:nth-child(4){width:20%}
#teacher-students .ci-v12-table th:nth-child(5){width:13%}
#teacher-students .ci-v12-table td{vertical-align:middle;min-width:0;overflow-wrap:anywhere;line-height:1.5;padding:15px 11px}
.ci-v17-roster-person strong,.ci-v17-roster-contact span{display:block;font-weight:750;color:#003049;font-size:13px;line-height:1.55}
.ci-v17-roster-person small,.ci-v17-roster-contact small{display:block;margin-top:5px;color:#637f90;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.ci-v17-roster-progress strong{display:block;margin-bottom:5px;color:#003049;font-size:15px;font-weight:800}
.ci-v17-roster-progress progress{width:100%;height:9px;accent-color:#669bbc;display:block}
.ci-v17-roster-progress small{display:block;font-size:10px;color:#698697;margin-top:5px}
#teacher-students .ci-v12-table select{max-width:100%;width:100%;min-width:0;padding:9px 5px;font-size:12px}
#teacher-students .ci-v12-table button{min-width:0;width:auto;padding:9px 10px;font-size:11px}
#teacher-students .ci-v12-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px;margin-top:12px}
#teacher-students .ci-v12-controls button{flex:0 0 auto!important;min-width:95px;padding:10px 13px}
#teacher-roster-page{font-size:12px;font-weight:750;color:#315c70}
.ci-v17-info{font-size:12px;color:#5c7989;line-height:1.65;padding:11px 14px;border-left:3px solid #669bbc;background:#f3f8fb;border-radius:0 9px 9px 0;margin:0}
.ci-v17-grade-label{display:flex;flex-direction:column;gap:7px;color:#31566c;font-size:11px;font-weight:750}
.ci-v17-grade-label .ci-v13-grade-input{width:100%;max-width:110px}
@media(max-width:900px){#teacher-students .ci-v12-table{min-width:740px}}


/* V18 · Aula docente: estructura LMS esencial, controles compactos */
#teacher-app[hidden]{display:none!important}
#teacher-auth{display:inline-flex;align-items:center;width:auto;max-width:100%;
 padding:8px 13px;margin:0 0 16px;border:1px solid #d8e7ef;border-radius:999px;
 background:#f4f8fa;color:#42667c;font-size:11px;font-weight:750;line-height:1.4}
.ci-v13-aula-host{padding-top:24px;padding-bottom:48px}
#teacher-app .ci-v12-content .ci-v12-adminhead{margin:0 0 20px}
#teacher-app .ci-v12-content .ci-v12-adminhead h1{font-size:clamp(26px,3vw,38px);margin:7px 0 10px;letter-spacing:-.035em}
#teacher-app .ci-v12-content .ci-v12-adminhead p{font-size:13px;max-width:690px;line-height:1.7}
#teacher-app .ci-v12-card{border-radius:16px;margin-bottom:16px}
#teacher-app .ci-v12-sidebar{top:108px;max-height:calc(100vh - 125px)}
#teacher-task-list{display:grid;gap:12px;margin-top:17px}
#teacher-task-list .ci-v12-course-card{margin:0;padding:19px 20px;border:1px solid #e2ebf1;
 background:#fff;border-radius:13px;box-shadow:0 2px 9px rgba(0,48,73,.025)}
#teacher-task-list .ci-v12-course-card>strong{font-size:16px;font-weight:800;line-height:1.4;color:#003049}
#teacher-task-list .ci-v12-course-card>small{font-size:12px;display:block;margin:9px 0 10px;color:#59788b}
#teacher-task-list .ci-v12-course-card>p{font-size:13px;line-height:1.7;white-space:pre-line;max-width:95%;color:#486779}
.ci-v18-task-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:14px}
.ci-v18-task-actions button{min-height:36px;padding:8px 14px;font-size:12px;font-weight:800;line-height:1.3;width:auto}
.ci-v18-task-delete{background:#fff!important;border:1px solid #ecc7ce!important;color:#9d2737!important}
.ci-v18-task-delete:hover,.ci-v18-task-delete:focus-visible{background:#fff1f3!important;border-color:#bd5362!important}
.ci-v18-task-editor{padding:16px 17px;margin:17px 0 2px;border:1px solid #d8e8f0;
 border-radius:12px;background:#f7fafc;display:grid;gap:13px}
.ci-v18-task-editor[hidden]{display:none!important}
.ci-v18-task-field{display:grid;gap:7px;min-width:0;font-size:12px;font-weight:800;color:#31556b}
.ci-v18-task-field input,.ci-v18-task-field textarea{width:100%;max-width:100%;box-sizing:border-box;
 font:inherit;font-weight:500;border-radius:9px;border:1px solid #cadce6;padding:11px 12px;background:#fff;color:#003049}
.ci-v18-task-field textarea{min-height:105px;resize:vertical}
.ci-v18-task-field input:focus-visible,.ci-v18-task-field textarea:focus-visible{outline:2px solid #669bbc;outline-offset:1px}
#teacher-tasks #teacher-submissions{margin-top:15px}
@media(max-width:1020px){#teacher-app .ci-v12-sidebar{top:16px;max-height:none}}
@media(max-width:640px){.ci-v13-aula-host{padding-top:14px}
 #teacher-task-list .ci-v12-course-card{padding:16px}#teacher-app .ci-v12-sidebar{position:static}
}

/* V19 · navegación del aula por espacios independientes */
#teacher-app .ci-v12-card[hidden],.ci-v14-student-main > [hidden],
#course-performance[hidden],#course-overview[hidden]{display:none!important}
#teacher-app .ci-v12-sidebar nav a.ci-v19-active,
.ci-v14-course-sidebar a.ci-v19-active{
 background:#e8f2f8;color:#003049;border-left:3px solid #669bbc;font-weight:800;
}
.ci-v19-submission-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.ci-v19-submission-actions button{min-height:38px}
.ci-v19-danger{color:#a12d41!important;border:1px solid #e5bbc3!important}
.ci-v19-edit-form{margin-top:16px;padding:17px;border:1px solid #d8e8f0;border-radius:12px;background:#f7fafc}
.ci-v19-edit-form textarea{min-height:120px}
.ci-v19-edit-form input[type=file]{width:100%;max-width:100%;box-sizing:border-box}
#teacher-evaluations .ci-v13-submission-card{margin:12px 0}
#teacher-evaluations .ci-v12-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}
@media(min-width:901px){#teacher-app .ci-v12-sidebar{position:sticky;top:96px;align-self:start}}

/* V22 · consulta individual de tareas y estado de vencimiento */
.ci-v22-deadline-closed{margin-top:14px!important;padding:12px 15px;border:1px solid #ead8bb;border-radius:10px;background:#fff9ef;color:#80521f!important;font-weight:750}
.ci-v22-task-summaries{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:16px 0 22px}
.ci-v22-task-summary{padding:18px;border:1px solid #dce7ee;border-radius:13px;background:#f7fafc;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.ci-v22-task-summary strong{color:#003049;font-size:14px;line-height:1.5}
.ci-v22-task-summary small{font-size:12px;color:#4e7288;line-height:1.55}
.ci-v22-task-summary button{margin-top:auto}
.ci-v22-task-summary button[aria-current=true]{border-color:#003049;background:#e1edf5}
#teacher-submissions-heading{color:#003049;margin:22px 0 13px;font-size:18px}
.ci-v22-pending-students{padding:18px;border:1px solid #e2eaf0;border-radius:13px;margin:17px 0}
.ci-v22-pending-students h3{font-size:15px;color:#003049;margin:0 0 12px}
.ci-v22-pending-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e8edf1;font-size:13px}
.ci-v22-pending-row small{color:#8a5d29}
