/* El panel docente tiene su propio espacio, conservando la identidad del juego. */
#modal.teacher-panel{width:min(1360px,97vw);height:min(900px,94dvh);max-height:94dvh;overflow:hidden;border-color:#4a6069;background:#12242d}
.teacher-panel>.modal-header{height:88px;padding:18px 28px;gap:14px;background:#192e37}
.teacher-panel>.modal-header h2{font:600 25px/1.2 'Space Grotesk',var(--font);margin-top:5px}
.teacher-panel>.modal-header>#modal-teacher-button{display:none}
.teacher-panel>#modal-body{padding:0;height:calc(100% - 88px);overflow:hidden;position:relative}
.teacher-workspace{height:100%;display:grid;grid-template-columns:248px minmax(0,1fr)}
.teacher-sidebar{padding:22px 14px;background:#10212a;border-right:1px solid #2c414b;overflow-y:auto}
.teacher-nav-label{font-size:10px;font-weight:700;letter-spacing:.15em;color:#a6b8be;margin:0 13px 9px}
.teacher-sidebar nav+p{margin-top:24px}
.teacher-sidebar nav{display:grid;gap:4px}
.teacher-sidebar nav button{display:flex;gap:11px;align-items:center;text-align:left;width:100%;border:1px solid transparent;border-radius:7px;background:transparent;padding:11px 10px;color:#c2d0d3;min-height:55px}
.teacher-sidebar nav button:hover{background:#213944}
.teacher-sidebar nav button[aria-current]{background:#2c3b3b;border-color:#83704c;color:#f7d9a6}
.teacher-sidebar nav strong{font-size:13px;font-weight:600;display:block}
.teacher-sidebar nav small{display:block;font-size:10px;color:#9fb3bb;margin-top:2px}
.teacher-nav-number{font-size:10px;color:#8fa6af;letter-spacing:.05em}
.teacher-count{margin-left:auto;background:var(--gold);color:#182c35;font-size:11px;font-weight:700;border-radius:20px;min-width:23px;text-align:center;padding:2px 5px}
.teacher-sidebar-note{padding:24px 13px 5px;font-size:11px;line-height:1.7;color:#91a7b0}
.teacher-main{padding:0 36px 36px;overflow-y:auto;overscroll-behavior:contain;min-width:0;scrollbar-gutter:stable}
.teacher-context{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px 0;border-bottom:1px solid #2c414b;margin-bottom:28px}
.teacher-context>div{min-width:210px;max-width:430px;flex:1}
.teacher-context label{margin:0 0 6px;font-size:9px;color:#afc1c7;letter-spacing:.1em;font-weight:700}
.teacher-context select{font-weight:600;background:#1d3540;border-color:#42606b;font-size:14px}
.teacher-context-help{max-width:245px;color:#9fb3bb;font-size:11px;line-height:1.6}
.teacher-test-label{font-weight:700;color:var(--gold);font-size:13px}
.teacher-section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:12px}
.teacher-section-heading .eyebrow{font-size:9px;letter-spacing:.12em;margin:0 0 7px}
.teacher-section-heading h3{font:600 clamp(26px,3vw,34px)/1.2 'Space Grotesk',var(--font);letter-spacing:-.035em;margin:0}
.teacher-section-heading .secondary{padding:8px 12px;font-size:12px;flex-shrink:0}
.teacher-intro{font-size:14px;color:#b1c4cb;line-height:1.8;max-width:760px;margin:0 0 24px}
.teacher-main h4{font-size:16px;line-height:1.4;margin:0 0 8px;font-weight:600}
.teacher-main .task-card{padding:23px;border-color:#324b57;background:#192f39;margin:18px 0}
.teacher-main .task-card h3{font-size:17px}
.teacher-main .task-card p,.teacher-main .callout p{line-height:1.75}
.teacher-main .task-card button{margin-top:10px}
.teacher-main .task-card .button-row button{margin-top:0}
.teacher-main .task-card .hint{font-size:12px}
.teacher-main .callout p{margin:6px 0 0;font-size:13px;color:#bdcdd2}
.teacher-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 22px}
.teacher-stats>div,.teacher-stats>button{border:1px solid #354d58;background:#192f39;padding:18px 20px;border-radius:8px;text-align:left;font:inherit}
.teacher-stats strong{display:block;font:500 30px/1.3 'Space Grotesk',var(--font);color:#f3e8d4}
.teacher-stats span{font-size:11px;color:#aec2ca}
.teacher-stats>button{border-color:#89724c;background:#343b35}
.teacher-stats>button:hover{background:#42483b}
.teacher-next{display:flex;justify-content:space-between;align-items:center;gap:25px;background:linear-gradient(110deg,#263e40,#1c343d);border:1px solid #58716a;border-left:4px solid var(--mint);padding:24px;border-radius:8px;margin-bottom:30px}
.teacher-next .eyebrow{font-size:9px;color:var(--mint);letter-spacing:.08em}
.teacher-next h4{font-size:21px;margin:9px 0 8px}
.teacher-next p{font-size:13px;color:#b9cdd0;line-height:1.7;margin:0}
.teacher-next button{flex-shrink:0;font-size:12px;gap:10px}
.teacher-block{margin:28px 0}
.teacher-block-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.teacher-block-heading h4{margin:0}
.teacher-pill{display:inline-block;font-size:11px;color:#c0d4d8;background:#243e47;border:1px solid #3d5963;padding:4px 9px;border-radius:5px}
.teacher-pending-row{display:flex;align-items:center;gap:13px;padding:16px 0;border-top:1px solid #2c4652}
.teacher-pending-dot{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--gold)}
.teacher-pending-row>div{flex:1;min-width:0}
.teacher-pending-row strong,.teacher-pending-row span:not(.teacher-pending-dot){display:block;font-size:13px}
.teacher-pending-row>div>span{font-size:11px;color:#a1b9c2;margin-top:2px}
.teacher-pending-row button{font-size:12px;padding:8px 12px}
.teacher-empty{padding:24px;border:1px dashed #456261;border-radius:7px;background:#17332f}
.teacher-empty strong{color:var(--mint);font-size:14px}
.teacher-empty p{margin:7px 0 0;color:#b7ccc7;font-size:13px}
.teacher-table-wrap{overflow-x:auto;border:1px solid #324c58;border-radius:7px}
.teacher-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}
.teacher-table thead{background:#1b3440;color:#afc7cf;font-size:10px}
.teacher-table th,.teacher-table td{padding:15px 16px;vertical-align:middle;border-bottom:1px solid #2c4550;min-width:115px}
.teacher-table tr:last-child>*{border-bottom:0}
.teacher-table tbody th{font-size:13px;min-width:145px}
.teacher-table tbody th small{display:block;color:var(--gold);font-size:10px;font-weight:400;margin-top:4px}
.teacher-table td small{display:block;font-size:10px;color:#a0b7c1;margin-top:6px}
.teacher-table td:last-child{text-align:right}
.teacher-table button{font-size:11px;padding:7px 10px;white-space:nowrap}
.teacher-mini-progress{display:block;width:90px;height:4px;background:#38515a;border-radius:6px;overflow:hidden}
.teacher-mini-progress>span{display:block;height:100%;background:var(--mint)}
.teacher-guide{padding:16px 18px;background:#172e37;border:1px solid #314d59;border-radius:7px;font-size:13px;color:#afc5cc;margin:20px 0}
.teacher-guide summary{cursor:pointer;color:#e1e9e5;font-weight:600;line-height:1.7}
.teacher-guide li{padding:6px 0;line-height:1.75}
.teacher-guide p{line-height:1.8}
.teacher-delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.teacher-main .teacher-delivery{margin:0;display:flex;align-items:flex-start;flex-direction:column;min-width:0}
.teacher-delivery h4{font-size:20px;margin-top:17px}
.teacher-delivery p{font-size:13px}
.teacher-delivery button{margin-top:auto!important;align-self:stretch}
.teacher-delivery .teacher-last-comment{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;border-left:2px solid #7b957e;padding-left:12px}
.teacher-delivery .submitted{font-size:10px;margin:0;padding:5px 8px}
.teacher-route{border:1px solid #324c58;border-radius:9px;overflow:hidden}
.teacher-route-step{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:17px;padding:23px;border-bottom:1px solid #324c58;align-items:start;background:#172e38}
.teacher-route-step:last-child{border:0}
.teacher-step-number{font-size:11px;background:#263f49;color:var(--gold);width:30px;height:30px;display:grid;place-items:center;border-radius:50%}
.teacher-route-step p{font-size:13px;color:#afc3cb;margin:5px 0 12px;line-height:1.7}
.teacher-route-step button{font-size:11px;padding:9px 12px}
.teacher-related{border-left:2px solid #91b7ae;padding:6px 0 6px 18px;margin:22px 0;color:#d0dfdf;font-size:14px}
.teacher-related p{font-size:13px;color:#a8c0c8;line-height:1.8;margin:7px 0 10px}
.teacher-character-status{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.teacher-inline-form{display:flex;align-items:start;gap:12px}
.teacher-inline-form input{min-width:0;flex:1}
.teacher-main .teacher-inline-form button{white-space:nowrap;margin:0}
.teacher-group-row{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:18px 0;border-bottom:1px solid #324c58}
.teacher-group-row[hidden]{display:none}
.teacher-group-row strong{font-size:14px}
.teacher-group-row span{display:block;color:#a4bec8;font-size:11px;margin-top:4px}
.teacher-group-row .button-row{margin:0;flex-shrink:0}
.teacher-group-row .secondary{font-size:12px;padding:8px 12px}
.teacher-danger{border:1px solid #7d554e;border-radius:7px;padding:20px;margin-top:30px}
.teacher-danger summary{font-size:13px;color:var(--danger);cursor:pointer}
.teacher-danger p{font-size:13px;color:#cbbab4}
.teacher-detail{width:min(900px,94vw)}
.teacher-detail-context{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid #3a535e;font-size:13px}
.teacher-detail .modal-header>#modal-teacher-button{display:none}
.teacher-main .upload-zone{line-height:1.7;border-color:#52707a}
.teacher-main .upload-zone input{margin:12px 0}
.teacher-main .teacher-sprite-preview{margin-top:18px}
.teacher-panel #modal-save-warning,.teacher-panel #sync-notice{position:absolute;z-index:20;bottom:0;right:20px;max-width:min(620px,calc(100% - 40px));box-shadow:0 8px 30px #0008;margin:10px;padding:12px 18px}
.teacher-panel #sync-notice{pointer-events:none}
.teacher-panel #sync-notice~.teacher-workspace .teacher-main{padding-bottom:110px}
.teacher-panel #modal-save-warning~.teacher-workspace .teacher-main{padding-bottom:170px}
.teacher-main .asset-preview{max-height:220px}
.teacher-main [role=status]{font-size:13px;color:var(--mint)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1100px){.teacher-main{scroll-padding-top:24px}}
@media(max-width:1100px){.teacher-workspace{grid-template-columns:215px minmax(0,1fr)}.teacher-main{padding:0 24px 28px}.teacher-sidebar{padding:20px 9px}.teacher-sidebar nav small{font-size:9px}.teacher-next{flex-direction:column;align-items:flex-start}.teacher-next button{align-self:flex-start}.teacher-group-row{align-items:flex-start;flex-direction:column}.teacher-context-help{max-width:180px}}
@media(max-width:760px){
 #modal.teacher-panel{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;margin:0;border:0}
 .teacher-panel>.modal-header{height:76px;padding:12px 16px;flex-wrap:nowrap;gap:8px}.teacher-panel>.modal-header>div{flex:1}.teacher-panel>.modal-header h2{font-size:19px}.teacher-panel>.modal-header .eyebrow{font-size:8px;letter-spacing:.08em}.teacher-panel>.modal-header>.fullscreen-toggle{display:none}
 .teacher-panel>#modal-body{height:calc(100% - 76px)}
 .teacher-workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
 .teacher-sidebar{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;padding:10px 12px;border-right:0;border-bottom:1px solid #344b55;scrollbar-width:thin}
 .teacher-sidebar nav{display:flex;gap:6px}.teacher-nav-label,.teacher-nav-number,.teacher-sidebar-note,.teacher-sidebar nav small{display:none}
 .teacher-sidebar nav button{width:auto;white-space:nowrap;min-height:42px;padding:9px 12px;gap:7px;background:#1a303a;border-color:#314c57}.teacher-sidebar nav strong{font-size:11px}.teacher-count{font-size:10px;min-width:20px}
 .teacher-main{padding:0 18px 28px}.teacher-context{padding:17px 0;margin-bottom:23px;gap:10px}.teacher-context-help{display:none}.teacher-context>div{max-width:none;min-width:0}.teacher-context label{font-size:9px}.teacher-section-heading{gap:10px}.teacher-section-heading h3{font-size:27px}.teacher-section-heading .secondary{font-size:10px;padding:8px}.teacher-intro{font-size:13px;margin-bottom:20px}
 .teacher-stats{gap:8px}.teacher-stats>div,.teacher-stats>button{padding:13px 10px}.teacher-stats strong{font-size:25px}.teacher-stats span{font-size:10px;line-height:1.5;display:block}
 .teacher-next{padding:19px;gap:16px}.teacher-next h4{font-size:20px}.teacher-main .task-card{padding:19px}.teacher-route-step{grid-template-columns:26px minmax(0,1fr);gap:12px;padding:18px}.teacher-route-step button{grid-column:2;justify-self:start}.teacher-route-step h4{font-size:15px}.teacher-step-number{width:25px;height:25px}
 .teacher-inline-form{flex-wrap:wrap}.teacher-inline-form input{flex-basis:100%}.teacher-block-heading .text-button{font-size:11px}.teacher-detail-context{align-items:flex-start;flex-direction:column;gap:13px}
}
@media(max-width:440px){.teacher-delivery-grid{grid-template-columns:1fr}.teacher-section-heading h3{font-size:24px}.teacher-main{padding-left:14px;padding-right:14px}.teacher-pending-row{gap:10px}.teacher-pending-row button{font-size:11px}.teacher-section-heading .eyebrow{font-size:8px}}
.teacher-context{position:sticky;top:0;z-index:5;background:#12242d}
@media(min-width:761px) and (max-height:820px){
 .teacher-sidebar{padding-top:16px}.teacher-sidebar nav button{min-height:46px;padding:8px 10px}.teacher-sidebar nav+p{margin-top:18px}.teacher-sidebar-note{padding-top:17px}
 .teacher-context{padding:13px 0;margin-bottom:20px}.teacher-context select{min-height:40px;padding:8px 12px}.teacher-section-heading h3{font-size:29px}.teacher-section-heading .eyebrow{margin-bottom:4px}.teacher-intro{margin-bottom:17px}
 .teacher-stats{margin-bottom:17px}.teacher-stats>div,.teacher-stats>button{padding:12px 18px}.teacher-stats strong{font-size:26px}.teacher-next{padding:18px 21px;margin-bottom:20px}.teacher-next h4{margin:5px 0;font-size:19px}.teacher-block{margin:21px 0}
}
.teacher-mobile-navigation{display:none}
@media(max-width:760px){
 .teacher-sidebar{display:none}
 .teacher-mobile-navigation{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#10212a;border-bottom:1px solid #344b55}
 .teacher-mobile-navigation label{font-size:10px;color:#afc2ca;margin:0;flex-shrink:0}
 .teacher-mobile-navigation select{font-size:13px;padding:8px 10px;min-height:42px;background:#203943}
}

/* Identificación privada del equipo, independiente de sus notas de seguimiento. */
.teacher-identification-context{margin-top:9px;font-size:12px;line-height:1.6;color:#d7dfd7}
.teacher-identification-context>span{font-size:9px;color:var(--mint);text-transform:uppercase;letter-spacing:.08em;display:block}
.teacher-identification-context p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:6em;overflow-y:auto;width:fit-content;max-width:100%;padding:7px 11px;border:1px solid #8b7448;border-radius:7px;background:#3d3526;color:#ffe3ab;font-size:13px;font-weight:600}
.teacher-identification-context .text-button{font-size:11px;margin-top:3px;text-align:left}
.teacher-main .teacher-identification-inline{display:block;width:fit-content;max-width:min(310px,100%);padding:5px 10px;border:1px solid #8b7448;border-radius:7px;background:#3d3526;color:#ffe3ab;font-size:12px;font-weight:600;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}
.teacher-table tbody th .teacher-identification-inline{color:#ffe3ab;font-size:12px;min-width:0}
.teacher-group-row>div:first-child{min-width:0}
.teacher-group-row>.button-row{flex-wrap:wrap;justify-content:flex-end}
#group-identification{min-height:94px}
