#topic-report{background:white;border:1px solid #d9e5f0;border-radius:18px;padding:24px;margin-bottom:28px;color:#192840}
#topic-report h2{font-size:1.35rem;margin:0 0 8px}
.topic-report-bank summary{cursor:pointer;font-weight:700;margin-bottom:20px;padding:14px}
.topic-report-filters{display:grid;grid-template-columns:1fr 2fr;gap:14px;margin:22px 0}
.topic-report-filters label{display:grid;gap:7px;font-weight:600;font-size:.88rem;min-width:0}
.topic-report-filters input,.topic-report-filters select{width:100%;min-width:0;padding:11px;border:1px solid #cbd9e8;border-radius:9px;font:inherit;color:#192840;background:#f8faff;box-sizing:border-box}
#topic-report-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}
.topic-report-stat{padding:16px;background:#f3f8fc;border-radius:12px;display:grid;gap:8px}
.topic-report-stat strong{font-size:1.6rem}.topic-report-stat span,.topic-report-note{font-size:.84rem;line-height:1.6;color:#5f7087}
#topic-report-results small{display:block;margin-top:6px;color:#5f7087}
.topic-report-actions{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:18px 0}
#topic-report-dialog{width:min(1000px,92vw);max-height:85vh;border:1px solid #cbd9e8;border-radius:18px;padding:24px;overflow:auto;color:#192840;background:white}
#topic-report-dialog::backdrop{background:#10234088}
#topic-report-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
#topic-report-dialog table{width:100%;border-collapse:collapse}#topic-report-dialog td,#topic-report-dialog th{padding:12px;text-align:left;border-bottom:1px solid #e5edf5}
@media(max-width:850px){#topic-report-stats{grid-template-columns:repeat(2,1fr)}.topic-report-filters{grid-template-columns:1fr}}
@media(max-width:480px){#topic-report{padding:15px}#topic-report-dialog{padding:15px}}

#section-tracking{background:#fff;border:1px solid #d4e2ef;border-top:3px solid #1599cc;border-radius:18px;padding:22px;margin-bottom:22px}#section-tracking select,#section-tracking input{display:block;width:100%;min-height:44px;border:1px solid #d4e2ef;border-radius:10px;padding:10px;background:#f7faff;color:#122b49}#tracking-dialog{width:min(900px,calc(100% - 28px));max-height:88dvh;overflow:auto;border:1px solid #d4e2ef;border-radius:18px;padding:22px}#tracking-dialog::backdrop{background:#10243a80}#tracking-dialog header{display:flex;justify-content:space-between;gap:12px;align-items:center}#tracking-detail{display:grid;gap:12px;margin-top:18px}#section-tracking [hidden],#topic-report[hidden]{display:none!important}

#admin-menu-toggle{display:none}@media(max-width:768px){#admin-menu-toggle{display:block;flex-shrink:0}.top-bar{gap:10px;min-height:72px;height:auto;padding-block:10px}.top-bar-left{min-width:0}.top-bar-left h1{font-size:1.05rem}.top-bar-right .badge{display:none}.top-bar-right{max-width:90px}.sidebar{left:0}.main-content{min-width:0}#tracking-dialog h2{font-size:1.1rem}}

.student-tool-history{border:1px solid #d4e2ef;border-top:3px solid #1599cc;border-radius:14px;padding:16px;margin:18px 0}.student-tool-history h4{font-size:1.1rem;margin:0 0 10px}.student-tool-history p{margin:8px 0;line-height:1.6}#topic-report-exact,#modal-est-body input[type=date]{min-height:42px;border:1px solid #d4e2ef;border-radius:8px;padding:8px}#modal-est-body .topic-report-actions{flex-wrap:wrap;gap:10px}

.student-tool-history summary{font-weight:700;cursor:pointer;line-height:1.6}.student-tool-history[open] summary{margin-bottom:12px}

.student-tool-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0;font-size:.85rem}@media(max-width:600px){.student-tool-overview{grid-template-columns:1fr}}

/* Ficha individual: resultados primero, lectura cómoda en celular. */
#modal-estudiante .modal{max-width:1080px;width:calc(100% - 24px);max-height:92dvh;border:1px solid #dbe5f0;box-shadow:0 28px 90px #0e213c40}#modal-estudiante .modal-header{padding:18px 24px;background:#fff}#modal-est-body{background:#f4f7fb;padding:24px}#modal-estudiante .modal-footer{padding:12px 24px}
.student-profile-hero{display:flex;gap:16px;align-items:center;margin-bottom:18px}.student-profile-avatar{display:grid;place-items:center;flex:0 0 54px;height:54px;border-radius:16px;background:#e3f3fc;color:#067ba9;font-weight:800;font-size:1.2rem}.student-profile-hero h3{font-size:1.35rem;margin:4px 0;color:#192840}.student-profile-hero p{font-size:.85rem;color:#66778f;margin:0}.student-profile-hero small{font-size:.72rem;color:#087ca8;font-weight:700;letter-spacing:1px}
#modal-est-body .topic-report-actions{justify-content:flex-start;background:#fff;padding:12px;border:1px solid #e1e8f0;border-radius:12px;margin:12px 0;gap:10px}.student-profile-note{font-size:.8rem;line-height:1.6;color:#62738b;margin:12px 0}.student-profile-note summary{cursor:pointer;font-weight:600}.student-tool-overview .topic-report-stat{background:#fff;border:1px solid #dee8f1;border-radius:14px;padding:18px;min-height:90px;box-shadow:0 3px 12px #18314b05}.student-tool-overview .topic-report-stat strong{font-size:.76rem;letter-spacing:.3px;color:#5d718b;font-weight:600}.student-tool-overview .topic-report-stat span{font-size:1rem;font-weight:700;color:#172b48;line-height:1.5}
.student-tool-history{background:transparent;border:0;border-radius:0;padding:0;margin:20px 0}.student-tool-history>summary{color:#173453;font-size:.94rem;padding:10px 0}.student-tool-history>p{font-size:.8rem;color:#65758a}.student-profile-inactive{border-top:1px solid #dce5ee;padding-top:16px;margin-top:22px;font-size:.85rem;color:#66768a}.student-profile-inactive>summary{cursor:pointer;font-weight:600}.student-profile-inactive .student-tool-history{margin:8px 0}.student-profile-inactive .student-tool-history summary{font-size:.82rem;padding:7px 0}
.student-attempt-card{background:#fff;border:1px solid #dce6f0;border-radius:15px;padding:20px;margin:12px 0;box-shadow:0 3px 12px #152b4505}.student-attempt-heading{display:flex;gap:16px;align-items:flex-start;justify-content:space-between}.student-attempt-heading>strong{font-size:1rem;line-height:1.5}.student-attempt-score{background:#e9f8ef;color:#13834b;border-radius:10px;padding:8px 12px;font-size:1.2rem;font-weight:800;white-space:nowrap}.student-attempt-meta{font-size:.78rem!important;color:#708198;margin:6px 0 12px!important}.student-attempt-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.student-attempt-chips span{padding:5px 9px;border-radius:7px;background:#f1f5fa;font-size:.75rem;color:#566d88}.student-attempt-chips .correctas{background:#eafaef;color:#1e8051}.student-attempt-chips .incorrectas{background:#fff0ec;color:#b44e39}.review-launch{margin-top:8px;min-height:42px;background:linear-gradient(100deg,#ffab19,#ffda4a);color:#1b2c45;border:0;border-radius:10px;padding:10px 16px;font-weight:700;cursor:pointer;box-shadow:0 4px 12px #f4ad1e22}
.question-review-dialog{width:min(960px,calc(100% - 24px));max-height:92dvh;border:1px solid #d7e4ef;border-radius:20px;padding:24px;background:#f5f8fc;color:#192840}.question-review-dialog::backdrop{background:#13233e99;backdrop-filter:blur(2px)}.question-review-dialog header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:20px}.question-review-dialog h2{font-size:1.15rem;margin:0;line-height:1.5}.review-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.review-stats>div{background:#fff;border:1px solid #e0e8f1;border-radius:12px;padding:14px;display:grid;gap:5px}.review-stats strong{font-size:1.6rem}.review-stats span{font-size:.8rem;color:#60748d}.review-filters{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.review-filters button[aria-pressed=true]{background:#173757;color:#fff}.review-question{background:#fff;border:1px solid #dce6ef;border-left:4px solid #de836c;border-radius:14px;padding:20px;margin:16px 0}.review-question.correct{border-left-color:#3b9d6b}.review-question.unanswered{border-left-color:#e2b646}.review-question-label{font-size:.75rem;font-weight:700;color:#60728a}.review-question h3{font-size:1rem;line-height:1.6;margin:10px 0 16px}.review-option{background:#f5f7fa;border:1px solid #e6ecf2;border-radius:8px;padding:12px;font-size:.9rem;line-height:1.6}.review-option.selected:not(.accepted){background:#fff0ec;border-color:#e9b2a2;color:#8d3827}.review-option.accepted{background:#edfaf2;border-color:#a6d7b9;color:#17613c}.review-explanation{border-top:1px solid #e4eaf1;padding-top:15px;line-height:1.7;font-size:.87rem}.review-question small{font-size:.75rem;color:#61748d}.review-empty{background:white;border:1px solid #e0e8f0;border-radius:12px;padding:20px;line-height:1.7}
@media(max-width:600px){#modal-est-body{padding:16px}#modal-estudiante .modal-header{padding:15px}#modal-estudiante .modal-header h3{font-size:.9rem}.student-profile-hero h3{font-size:1.05rem}.student-tool-overview{grid-template-columns:1fr;gap:8px}.student-tool-overview .topic-report-stat{min-height:0;padding:12px;display:flex;justify-content:space-between;gap:14px;align-items:center}.student-tool-overview .topic-report-stat span{font-size:.85rem;text-align:right}.student-attempt-card{padding:15px}.student-attempt-heading>strong{font-size:.9rem}.student-attempt-score{font-size:1.05rem;padding:6px 9px}.review-launch{width:100%}.question-review-dialog{padding:16px}.review-stats{gap:7px}.review-stats>div{padding:10px}.review-stats strong{font-size:1.25rem}.review-stats span{font-size:.7rem}.review-question{padding:14px}.review-filters .btn{font-size:.75rem}}

#modal-estudiante .modal-footer{display:none}#modal-estudiante .modal-close{width:42px;height:42px}#modal-est-body{padding:18px 24px}.student-profile-hero{margin-bottom:10px}#modal-est-body .topic-report-actions{padding:8px 12px;margin:10px 0}.student-profile-note{margin:8px 0}.student-tool-overview{margin:12px 0}.student-tool-overview .topic-report-stat{min-height:72px;padding:14px 16px}.student-tool-history{margin:14px 0}.student-tool-history>summary{padding:6px 0}.student-tool-history>p{margin:4px 0}.student-attempt-card{padding:16px;margin:10px 0}.student-attempt-score{background:#eaf3ff;color:#1a5a96}@media(max-width:600px){#modal-est-body{padding:14px}.student-tool-overview .topic-report-stat{min-height:0;padding:10px 12px}}

.review-question,.student-profile-hero p{overflow-wrap:anywhere}.student-profile-hero>div{min-width:0}
