:root{font-family:Inter,system-ui,sans-serif;color:#17202a;background:#f4f6f8;line-height:1.5}
*{box-sizing:border-box}
html{min-height:100%;background:#f4f6f8}
body{min-height:100dvh;margin:0;padding:0}
.card{width:100%;max-width:none;min-height:100dvh;margin:0;background:#fff;border:0;border-radius:0;padding:clamp(.75rem,2vw,2rem);box-shadow:none}
.narrow{width:min(100%,420px);min-height:0;margin:clamp(1rem,8vh,5rem) auto;border:1px solid #dfe5ea;border-radius:12px;padding:2rem;box-shadow:0 8px 24px #17202a0d}
h1{margin:.2rem 0 1rem}.eyebrow{color:#236b61;font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.8rem}
label{display:block;font-weight:600;margin:1rem 0}input,textarea,select{display:block;width:100%;box-sizing:border-box;margin-top:.35rem;padding:.7rem;border:1px solid #aeb8c2;border-radius:6px;font:inherit}button{background:#236b61;color:white;border:0;border-radius:6px;padding:.7rem 1rem;font-weight:700;cursor:pointer}button.secondary{background:#e7efed;color:#174b45}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}.panel{border:1px solid #dfe5ea;border-radius:8px;padding:1rem}.board{min-height:4rem;padding:1rem;background:#f4f6f8;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere}.muted,.message{color:#5d6872}.error{color:#a12828}.status{padding:.7rem;background:#eef5f3;border-radius:6px}
.portal-shell>header{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.portal-shell>header h1{flex:1 1 20rem;margin:0}.control-area{grid-area:controls;min-width:0;padding:0}.portal-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"controls";align-items:start}.control-area>.panel,.control-area>.grid{margin-bottom:1rem}

@media(max-width:600px){.card{padding:.75rem}.narrow{width:calc(100% - 1.5rem);min-height:0;margin:1rem auto;padding:1.25rem;border-radius:10px}.portal-shell>header{margin-bottom:.75rem}.portal-shell>header h1{font-size:1.35rem}.control-area{display:grid;grid-template-columns:1fr;gap:.75rem}.control-area>.panel,.control-area>.grid{margin-bottom:0}.panel{padding:.8rem}}

.reference-table{width:100%;border-collapse:separate;border-spacing:.35rem}.reference-table th{padding:.45rem .5rem;color:#52736d;font-size:.7rem;text-align:left;text-transform:uppercase;letter-spacing:.04em}.reference-table td{width:50%;padding:.5rem .45rem;border:1px solid #d8e7e2;border-radius:7px;background:#f7fbf9;color:#174b45;font-size:.84rem;font-weight:750;text-align:left}.reference-table td:first-child{width:42%}.reference-pronoun{display:block;margin-bottom:.15rem;color:#6a8983;font-size:.66rem;font-weight:700}.reference-sections{display:grid;gap:.65rem}.reference-section{border:1px solid #d8e7e2;border-radius:9px;background:#fbfdfc;overflow:hidden}.reference-section summary{padding:.7rem .8rem;color:#236b61;font-weight:800;cursor:pointer;list-style-position:inside}.reference-section[open] summary{border-bottom:1px solid #e3eeea;background:#f2f9f6}.reference-section .reference-table{margin:.2rem 0 .35rem}.reference-library-results{display:grid;gap:.5rem;margin:.75rem 0 1rem}.reference-library-item{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem .7rem;border:1px solid #d8e7e2;border-radius:9px;background:#f7fbf9}.reference-library-item div{display:grid;gap:.15rem}.reference-library-item span{color:#5f827b;font-size:.75rem}.reference-library-add{padding:.45rem .6rem;font-size:.75rem;white-space:nowrap}.reference-library-add:disabled{background:#e7efed;color:#55716d;cursor:default}.library-group{border:1px solid #d8e7e2;border-radius:9px;background:#fff;overflow:hidden}.library-group summary{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:2.75rem;padding:.65rem .8rem;color:#236b61;font-weight:800;cursor:pointer;list-style-position:inside}.library-group[open] summary{border-bottom:1px solid #e3eeea;background:#f2f9f6}.library-group .reference-library-item{border:0;border-top:1px solid #e3eeea;border-radius:0}.personal-reference-details{margin-top:.75rem;border-top:1px solid #e3eeea;padding-top:.75rem}.personal-reference-details summary{color:#236b61;font-weight:750;cursor:pointer}.personal-reference-details label:first-of-type{margin-top:1rem}
@media(max-width:700px){.classroom-layout{grid-template-columns:1fr}.references-zone{min-height:0}.reference-library-item{align-items:flex-start}.reference-card-heading{padding:.75rem}.reference-card-content{padding:.65rem}.reference-dismiss{min-width:2.6rem;min-height:2.6rem}}
.teacher-page{background:#eef5f3}.teacher-shell{padding-top:clamp(.75rem,2vw,1.5rem)}.teacher-topbar{padding-bottom:clamp(.75rem,2vw,1.5rem)}.teacher-workspace{max-width:90rem}.teacher-student-bar{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin:0 auto 1rem;padding:.8rem 1rem;border:1px solid #c6d9d3;border-radius:12px;background:#fff}.teacher-student-bar h2{margin:.1rem 0 0;color:#174b45}.teacher-student-bar label:not(.sr-only){width:min(18rem,45%);margin:0;color:#55716d;font-size:.8rem}.teacher-classroom-layout{display:grid;grid-template-columns:minmax(0,7fr) minmax(18rem,3fr);gap:clamp(1rem,2vw,1.75rem);align-items:start}.teacher-board{min-height:clamp(25rem,65vh,48rem);padding:clamp(1rem,2vw,1.5rem);border:1px solid #c6d9d3;border-radius:20px;background:#fff;box-shadow:0 12px 28px #163d3a0e}.teacher-board-inner{height:100%;display:flex;flex-direction:column}.teacher-board textarea{flex:1;min-height:18rem;margin-top:1rem;border:0;background:#f8fcfa;color:#174b45;font-size:clamp(2.2rem,3.6vw,2.9rem);line-height:1.65;resize:vertical}.teacher-board textarea:focus{outline:3px solid #f0bd43;outline-offset:2px}.teacher-board .workspace-badge{margin:.7rem 0 0;color:#55716d}.teacher-references{min-height:clamp(25rem,65vh,48rem)}.teacher-references .references-copy{margin-bottom:.8rem}.teacher-reference-form{margin-top:1rem;padding-top:1rem;border-top:1px solid #e3eeea}.teacher-reference-form label{margin:.6rem 0;font-size:.85rem;color:#365e58}.teacher-reference-form input,.teacher-reference-form textarea{padding:.55rem;font-size:.9rem}.teacher-reference-form button{width:100%;font-size:.85rem}.reference-lock{display:block;margin-top:.25rem;color:#5f827b;font-size:.68rem}.teacher-session-actions{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;margin-top:1rem;padding:1rem;border:1px solid #c6d9d3;border-radius:12px;background:#fff}.teacher-session-actions form{display:flex;align-items:end;gap:.75rem;flex:1;min-width:18rem}.teacher-session-actions label{flex:1;margin:0;color:#55716d;font-size:.8rem}.teacher-secondary{margin-top:1rem;padding:1rem;border:1px solid #c6d9d3;border-radius:12px;background:#fff}.teacher-secondary summary{cursor:pointer;color:#236b61;font-weight:800}.teacher-management-content{display:grid;gap:1rem;margin-top:1rem}.teacher-management-content>.panel,.teacher-management-content>.grid{margin:0}@media(max-width:700px){.teacher-student-bar{display:block}.teacher-student-bar label:not(.sr-only){width:100%;margin-top:.75rem}.teacher-classroom-layout{grid-template-columns:1fr}.teacher-board{min-height:22rem}.teacher-session-actions form{display:block;min-width:0;width:100%}.teacher-session-actions button{width:100%;margin-top:.5rem}}

@media(max-width:600px){.portal-shell{--student-nav-height:6.5rem}}
.digital-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:stretch;justify-content:center;overflow:auto;background:#17202af2;padding:clamp(.5rem,2vw,2rem)}.digital-overlay[hidden]{display:none}.digital-panel{width:min(100%,72rem);min-height:100%;overflow:auto;padding:clamp(1rem,3vw,2.5rem);background:#fff;border-radius:clamp(0px,1vw,16px);box-shadow:0 20px 70px #0006}.digital-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;border-bottom:1px solid #dfe5ea;padding-bottom:1rem;margin-bottom:1.25rem}.digital-header h2{margin:.15rem 0 0}.digital-close{white-space:nowrap}.digital-panel section{max-width:58rem}.digital-panel #live-sessions{padding:0;list-style:none}.digital-panel #live-sessions li{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;padding:.75rem 0;border-bottom:1px solid #dfe5ea}.digital-panel #live-sessions button{min-height:2.6rem}.digital-panel .board{min-height:clamp(8rem,30vh,20rem);font-size:clamp(1rem,1.5vw,1.25rem)}body.digital-open{overflow:hidden}@media(max-width:600px){.digital-overlay{padding:0}.digital-panel{border-radius:0;padding:1rem .8rem}.digital-header{align-items:center;gap:.5rem}.digital-header h2{font-size:1.35rem}.digital-close{padding:.6rem .7rem;font-size:.8rem}.digital-panel #live-sessions li{align-items:flex-start}.digital-panel #live-sessions button{width:100%}}@media(orientation:landscape) and (max-width:900px){.digital-overlay{padding:.5rem}.digital-panel{padding:1rem 1.25rem;border-radius:10px}.digital-panel .board{min-height:6rem}}
.student-nav{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:.5rem;min-height:var(--student-nav-height);padding:.75rem clamp(1rem,3vw,2.5rem);background:linear-gradient(110deg,#102f3b 0%,#174b45 52%,#236b61 100%);border-bottom:1px solid #0d2933;box-shadow:0 5px 18px #102f3b40;backdrop-filter:blur(12px);isolation:isolate}.student-nav::after{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#ffffff12,transparent 48%,#00000012);content:"";pointer-events:none}.student-nav-link,.student-account-toggle{min-height:3rem;border:1px solid transparent;border-radius:10px;background:transparent;color:#e9f5f1;padding:.65rem 1rem;font:inherit;font-size:.95rem;font-weight:750;line-height:1.2;white-space:nowrap}.student-nav-link:hover,.student-account-toggle:hover{background:#ffffff18;color:#fff}.student-nav-link.is-active{border-color:#a8e4d2;background:#d9f4eb;color:#123c37;box-shadow:0 3px 10px #071e1a40}.student-nav-link:focus-visible,.student-account-toggle:focus-visible,.student-account-menu button:focus-visible{outline:3px solid #f9d77e;outline-offset:3px}.student-account{position:relative;margin-left:auto;display:flex;align-items:center;gap:.65rem;color:#d7ece7;font-size:.9rem}.student-account>span{max-width:14rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-account-toggle{border-color:#ffffff40}.student-account-menu{position:absolute;right:0;top:calc(100% + .55rem);min-width:10rem;padding:.4rem;background:#fff;border:1px solid #c9d8d5;border-radius:10px;box-shadow:0 12px 30px #102f3b38}.student-account-menu button{width:100%;white-space:nowrap}.portal-shell{--student-nav-height:5.75rem;padding:0}control-area{display:block;max-height:none;padding:0}.student-panel{padding:1rem;border-top:1px solid #dfe5ea}.student-panel h2{margin-top:0}.student-panel[hidden]{display:none}.student-panel h3{font-size:1rem}.message{padding:0 1rem}@media(max-width:600px){.portal-shell{--student-nav-height:3.5rem}.student-nav{gap:.15rem;padding:.25rem .45rem}.student-nav-link,.student-account-toggle{min-height:2.75rem;padding:.55rem .55rem;font-size:.8rem}.student-account{gap:.25rem}.student-account>span{display:none}}@media(orientation:landscape) and (max-width:900px){.portal-shell{--student-nav-height:3.25rem}.student-nav-link,.student-account-toggle{min-height:2.5rem;padding:.4rem .7rem}.student-nav-link,.student-account-toggle{font-size:.82rem}}
body{overflow-x:hidden}.student-nav-links{display:flex;align-items:center;gap:.35rem;min-width:0}.student-live-action{margin-left:.35rem;border-color:#f9d77e!important;background:#f9d77e!important;color:#173b39!important;box-shadow:0 3px 10px #071e1a40}.student-live-action:hover{background:#ffe8a8!important;color:#173b39!important}.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(max-width:760px){.student-nav{gap:.25rem;padding:.5rem .6rem}.student-nav-links{flex:1 1 100%;justify-content:space-between;gap:.15rem}.student-nav-link,.student-account-toggle{min-height:2.5rem;padding:.5rem .6rem;font-size:.82rem}.student-live-action{margin-left:0}.student-account{margin-left:auto;max-width:calc(100% - 7rem)}.student-account>span{max-width:8rem}.portal-shell{--student-nav-height:6.5rem}}@media(orientation:landscape) and (max-width:900px){.portal-shell{--student-nav-height:4.5rem}.student-nav-links{flex:0 1 auto}.student-nav{flex-wrap:nowrap}.student-account{max-width:12rem}}

.digital-page{background:#eef5f3;color:#163d3a}.digital-shell{min-height:100dvh;padding:clamp(1rem,3vw,2.5rem) clamp(1rem,5vw,5rem)}.digital-topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;max-width:90rem;margin:0 auto;padding-bottom:clamp(1.5rem,4vw,3rem)}.digital-back{justify-self:start;color:#236b61;text-decoration:none;font-weight:750}.digital-back span{display:inline-block;margin-right:.35rem;font-size:1.25rem}.digital-back:focus-visible,.digital-account-toggle:focus-visible,.digital-account-menu button:focus-visible{outline:3px solid #f0bd43;outline-offset:3px}.digital-heading{text-align:center}.digital-heading .eyebrow{margin:0}.digital-heading h1{margin:.15rem 0 0;font-size:clamp(1.5rem,3vw,2.2rem);letter-spacing:-.03em}.digital-account{position:relative;justify-self:end;display:flex;align-items:center;gap:.7rem;color:#37625e;font-size:.9rem}.digital-account>span{max-width:13rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.digital-account-toggle{padding:.55rem .8rem;border:1px solid #a8c1bb;background:#fff;color:#236b61}.digital-account-menu{position:absolute;right:0;top:calc(100% + .5rem);z-index:2;min-width:10rem;padding:.35rem;background:#fff;border:1px solid #c9d8d5;border-radius:10px;box-shadow:0 12px 30px #163d3a26}.digital-account-menu button{width:100%;white-space:nowrap;background:transparent;color:#236b61;text-align:left}.digital-workspace{max-width:90rem;margin:0 auto}.workspace-intro{display:flex;align-items:flex-start;gap:1rem;max-width:48rem;margin:0 auto clamp(1.5rem,4vw,2.5rem);text-align:center}.workspace-intro>div{flex:1}.workspace-intro .eyebrow{margin:.1rem 0 .35rem}.workspace-intro h2{margin:0;font-size:clamp(1.4rem,3vw,2.3rem);letter-spacing:-.03em}.workspace-copy{margin:.65rem 0 0;color:#55716d}.workspace-status{width:.75rem;height:.75rem;flex:none;margin-top:.45rem;border-radius:50%;background:#53b78c;box-shadow:0 0 0 .35rem #53b78c26}.workspace-board{display:grid;place-items:center;min-height:min(64vh,38rem);padding:clamp(1.5rem,5vw,4rem);border:1px solid #cfe2dc;border-radius:24px;background:linear-gradient(145deg,#fff,#f8fcfb);box-shadow:0 22px 60px #163d3a12}.workspace-placeholder{text-align:center}.workspace-placeholder-icon{display:grid;place-items:center;width:4rem;height:4rem;margin:0 auto 1.25rem;border-radius:18px;background:#dff2eb;color:#2f9877;font-size:1.8rem}.workspace-placeholder h3{margin:0;color:#1c4d47;font-size:clamp(1.15rem,2vw,1.5rem)}.workspace-placeholder p{margin:.5rem 0 1.25rem;color:#6a8580}.workspace-badge{display:inline-block;padding:.4rem .7rem;border-radius:99px;background:#edf5f2;color:#568078;font-size:.82rem;font-weight:700}@media(max-width:700px){.digital-shell{padding:1rem .8rem}.digital-topbar{grid-template-columns:1fr auto;gap:.75rem;padding-bottom:2rem}.digital-heading{display:none}.digital-back{grid-row:2}.digital-account{grid-row:2}.digital-account>span:not(.student-coin-balance){display:none}.workspace-intro{text-align:left}.workspace-board{min-height:55vh;border-radius:18px}.workspace-status{margin-top:.4rem}}@media(prefers-reduced-motion:reduce){.workspace-status{box-shadow:0 0 0 .35rem #53b78c26}}
.classroom-layout{display:grid;grid-template-columns:minmax(0,7fr) minmax(18rem,3fr);gap:clamp(1rem,2vw,1.75rem);align-items:start}.classroom-main{display:grid;align-content:start;min-width:0}.references-zone{min-height:clamp(25rem,65vh,48rem);padding:clamp(1rem,2vw,1.35rem);border:1px solid #c6d9d3;border-radius:20px;background:#e4efeb;box-shadow:0 12px 28px #163d3a0e}.references-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.references-heading h2{margin:.15rem 0 0;font-size:clamp(1.4rem,0.3vw + 1.11rem,1.6rem)}.references-copy{margin:.7rem 0 1rem;color:#55716d;font-size:clamp(.88rem,0.28vw + 0.66rem,1rem);line-height:1.45}.reference-add,.button-primary{border:0;border-radius:9px;background:#236b61;color:#fff;padding:.65rem .8rem;font:inherit;font-size:.8rem;font-weight:750;cursor:pointer}.reference-add:hover,.button-primary:hover{background:#174b45}.references-list{display:grid;gap:.75rem}.reference-card{overflow:hidden;border:1px solid #bdd1ca;border-radius:14px;background:#fff;box-shadow:0 5px 12px #163d3a0d}.reference-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem;padding:.85rem}.reference-category{display:block;color:#5f827b;font-size:.68rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.reference-card h3{margin:.2rem 0 0;color:#174b45;font-size:clamp(1.05rem,0.3vw + 0.77rem,1.25rem)}.reference-card-actions{display:flex;gap:.3rem;flex:none}.reference-toggle,.reference-delete,.reference-dismiss{border:1px solid #c6d9d3;border-radius:7px;background:#f5faf8;color:#236b61;padding:.35rem .5rem;font:inherit;font-size:.72rem;font-weight:750;cursor:pointer}.reference-restore{margin:.75rem 0 .25rem;border:1px dashed #a8c1bb;border-radius:7px;background:transparent;color:#55716d;padding:.4rem .65rem;font:inherit;font-size:.75rem;font-weight:750;cursor:pointer}.reference-delete{color:#8a4a43}.reference-card-content{border-top:1px solid #e3eeea;padding:.85rem}.reference-card-content p{margin:0;white-space:pre-line;color:#365e58;font-size:clamp(.9rem,0.3vw + 0.6rem,1.1rem);line-height:1.6}.references-empty{margin:1rem 0;color:#55716d;font-size:.9rem}.reference-dialog{width:min(32rem,calc(100% - 2rem));padding:0;border:0;border-radius:18px;background:#fff;color:#163d3a;box-shadow:0 24px 80px #163d3a40}.reference-dialog::backdrop{background:#163d3a80}.reference-dialog form{padding:1.25rem}.dialog-heading{display:flex;justify-content:space-between;gap:1rem}.dialog-heading h2{margin:.15rem 0 0}.dialog-close{border:0;background:transparent;color:#55716d;font-size:1.5rem;cursor:pointer}.dialog-copy{margin:.75rem 0 1rem;color:#55716d;font-size:.9rem}.reference-dialog label{display:block;margin:.8rem 0 .3rem;font-size:.85rem;font-weight:750}.reference-dialog input,.reference-dialog textarea{box-sizing:border-box;width:100%;border:1px solid #b8d0c9;border-radius:8px;padding:.65rem;font:inherit;color:#163d3a}.reference-dialog input:focus,.reference-dialog textarea:focus{outline:3px solid #f0bd4366;border-color:#236b61}.dialog-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1.1rem}.button-secondary{border:1px solid #b8d0c9;border-radius:9px;background:#fff;color:#236b61;padding:.65rem .8rem;font:inherit;font-size:.8rem;font-weight:750;cursor:pointer}.form-error{color:#8a4a43;font-size:.85rem;font-weight:700}@media(max-width:800px){.classroom-layout{grid-template-columns:1fr}.workspace-board{min-height:clamp(23rem,58vh,38rem)}.references-zone{min-height:0}.references-list{grid-template-columns:repeat(auto-fit,minmax(15rem,1fr))}}@media(max-width:560px){.digital-shell{padding:1rem .75rem}.digital-topbar{grid-template-columns:1fr auto;gap:.75rem;padding-bottom:1.5rem}.digital-heading{display:none}.digital-back{grid-row:2}.digital-account{grid-row:2}.workspace-intro{text-align:left;margin-bottom:1.25rem}.workspace-intro h2{font-size:1.35rem}.classroom-layout{gap:.85rem}.workspace-board{min-height:22rem;border-radius:14px}.references-zone{border-radius:14px;padding:.85rem}.references-heading{display:block}.reference-add{margin-top:.75rem}.references-list{grid-template-columns:1fr}.reference-dialog{width:calc(100% - 1rem)}}
 .classroom-strip{display:flex;align-items:center;gap:.7rem;max-width:90rem;margin:0 auto clamp(1rem,2vw,1.5rem);padding:.65rem .9rem;border:1px solid #c6d9d3;border-radius:14px;background:#fff;color:#365e58;font-size:.9rem;box-shadow:0 5px 14px #163d3a0d}.classroom-strip .weather-icon{display:grid;place-items:center;width:2.5rem;height:2.5rem;flex:none;border-radius:12px;background:#eef5f3}.classroom-strip .weather-icon img{width:2rem;height:2rem}.weather-flag{display:grid;place-items:center;width:3.5rem;height:2.5rem;flex:none;padding:.2rem;border:1px solid #c6d9d3;border-radius:12px;background:#f8fcfa;box-shadow:0 3px 8px #163d3a0d}.weather-flag[hidden]{display:none}.weather-flag img{display:block;width:100%;height:100%;border-radius:8px;object-fit:cover}.classroom-strip p{margin:0}.classroom-strip p+p{margin-top:.15rem;color:#55716d;font-size:.82rem}
.teacher-curriculum-nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem auto;padding:1rem 1.15rem;border:1px solid #c6d9d3;border-radius:14px;background:#fff;box-shadow:0 8px 20px #163d3a0b}.teacher-curriculum-nav h2{margin:.15rem 0 0;color:#174b45;font-size:1.25rem}.teacher-curriculum-nav p{margin:.35rem 0 0}.teacher-curriculum-link{flex:none;border-radius:9px;background:#236b61;color:#fff;padding:.7rem .9rem;text-decoration:none;font-weight:750}.teacher-curriculum-link:hover{background:#174b45}@media(max-width:650px){.teacher-curriculum-nav{display:block}.teacher-curriculum-link{display:inline-block;margin-top:.8rem}}
  .teacher-classroom-layout{align-items:stretch;grid-template-rows:minmax(clamp(25rem,65vh,48rem),auto)}.teacher-board{display:flex;min-height:0;height:100%;box-sizing:border-box}.teacher-board-inner{min-height:0;width:100%}.teacher-board textarea{min-height:0;overflow:auto;resize:vertical}.teacher-references{height:100%;box-sizing:border-box;overflow:auto}@media(max-width:700px){.teacher-classroom-layout{grid-template-rows:none}.teacher-board,.teacher-references{height:auto;min-height:clamp(22rem,60vh,36rem)}.teacher-board textarea{min-height:clamp(16rem,48vh,28rem)}}
 .history-item{display:flex;width:100%;justify-content:space-between;gap:.75rem;margin:.45rem 0;padding:.7rem .8rem;border:1px solid #c6d9d3;border-radius:9px;background:#fff;color:#174b45;text-align:left}.history-item span{color:#55716d;font-size:.85rem}
.classroom-board-notes{overflow-wrap:anywhere;max-width:100%}
#workspace-board > .workspace-placeholder p,#workspace-board > .workspace-placeholder h3,.teacher-board > .teacher-board-inner p,.teacher-board > .teacher-board-inner h3,.history-board{overflow-wrap:anywhere;max-width:100%}
.exercises-zone{margin-top:1.25rem;padding:clamp(1rem,2vw,1.35rem);border:1px solid #c6d9d3;border-radius:20px;background:#fff;box-shadow:0 12px 28px #163d3a0e}
.exercises-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}
.exercises-heading h2{margin:.15rem 0 0;font-size:1.4rem}
.exercises-list{display:grid;gap:.9rem;margin-top:.9rem}
.exercises-empty{margin:1rem 0;color:#55716d;font-size:.9rem}
.exercise-card{overflow:hidden;border:1px solid #bdd1ca;border-radius:14px;background:#f7fbf9;padding:.95rem;box-shadow:0 5px 12px #163d3a0d}
.exercise-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem}
.exercise-heading h3{margin:.2rem 0 0;color:#174b45;font-size:1.05rem}
.exercise-type-badge{flex:none;border-radius:20px;background:#e4efeb;color:#236b61;padding:.3rem .6rem;font-size:.72rem;font-weight:800}
.exercise-question{margin:.7rem 0;color:#365e58;font-weight:600}
.exercise-option{display:flex;align-items:center;gap:.6rem;min-height:2.6rem;margin:.45rem 0;padding:.55rem .65rem;border:1px solid #c6d9d3;border-radius:10px;background:#fff;cursor:pointer;color:#174b45}
.exercise-option input{min-height:1.4rem;min-width:1.4rem;accent-color:#236b61}
.exercise-option-letter{display:grid;place-items:center;width:2rem;height:2rem;flex:none;border-radius:50%;background:#e4efeb;color:#174b45;font-weight:800}
.exercise-option.is-correct{border-color:#53b78c;background:#eefaf3}
.exercise-option.is-wrong{border-color:#c0564f;background:#fdf0ef}
.exercise-blank{min-height:2.6rem;min-width:7rem;margin:.2rem .25rem;padding:.55rem .65rem;border:1px solid #aeb8c2;border-radius:8px;font:inherit}
.exercise-step label{display:grid;gap:.4rem;color:#365e58;font-weight:600}
.exercise-step textarea{min-height:2.6rem;padding:.6rem;border:1px solid #aeb8c2;border-radius:8px;font:inherit}
.exercise-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top:.8rem}
.exercise-submit{min-height:2.6rem;padding:.7rem 1.1rem}
.exercise-status,.exercise-correction{margin:.4rem 0;color:#55716d;font-size:.88rem}
.exercise-media-link{display:inline-block;margin-top:.6rem;color:#236b61;font-weight:750}
.history-attempts{margin:.5rem 0 0;padding-left:1.1rem;color:#365e58;font-size:.88rem}
.history-notes,.history-exercises,.history-materials{margin:1rem 0}
.materials-zone{margin-top:1.25rem;padding:clamp(1rem,2vw,1.35rem);border:1px solid #c6d9d3;border-radius:20px;background:#e4efeb;box-shadow:0 12px 28px #163d3a0e}
.materials-heading h2{margin:.15rem 0 0;font-size:1.4rem}
.materials-grid{display:grid;gap:.75rem;margin-top:.9rem;grid-template-columns:repeat(4,minmax(0,1fr))}
.materials-empty{margin:1rem 0;color:#55716d;font-size:.9rem}
.material-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;aspect-ratio:1/1;min-height:2.6rem;padding:.7rem;border:1px solid #bdd1ca;border-radius:14px;background:#fff;color:#174b45;cursor:pointer;box-shadow:0 5px 12px #163d3a0d;overflow:hidden}
.material-tile:hover{border-color:#236b61}
.material-tile-icon{font-size:1.9rem;line-height:1}
.material-tile-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;font-size:.82rem;font-weight:750;text-align:center;overflow-wrap:anywhere}
.material-tile-kind{font-size:.68rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#5f827b}
.material-tile-photo{width:100%;flex:1;min-height:0;max-height:100%;object-fit:contain;background:transparent;border-radius:8px}
.material-viewer-body video{width:100%;max-height:60vh;border-radius:10px;background:#000}
.material-viewer-body img{width:100%;max-height:60vh;border-radius:10px;background:transparent;object-fit:contain}
.material-viewer-body audio{width:100%}
.viewer-nav{justify-content:space-between;align-items:center}
.viewer-counter{color:#55716d;font-size:.85rem;font-weight:700}
.media-upload-preview{margin-top:.75rem;padding:.75rem;border:1px solid #c6d9d3;border-radius:10px;background:#f8fcfa}
.media-upload-preview[hidden]{display:none}
.media-upload-preview-img{display:block;max-width:100%;max-height:16rem;margin:0 auto;border-radius:8px;background:transparent;object-fit:contain}
.workspace-tv{margin-top:1.25rem;padding:clamp(1rem,2vw,1.35rem);border:1px solid #c6d9d3;border-radius:20px;background:#102f3b;color:#e9f5f1}
.workspace-tv h3{margin:0;color:#fff}
.tv-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.tv-actions{display:flex;gap:.4rem}
.tv-toggle{min-height:2.6rem;border:1px solid #ffffff40;border-radius:8px;background:#ffffff18;color:#fff;padding:.55rem .7rem;font-size:.78rem;font-weight:750}
.workspace-tv-list{display:grid;gap:.9rem;margin-top:.8rem}.references-zone > .workspace-tv{margin-top:0;margin-bottom:1rem;position:sticky;top:.75rem;z-index:4}
.tv-card{background:#ffffff10;border:1px solid #ffffff2a;border-radius:12px;padding:.8rem}
.tv-card h4{margin:0 0 .5rem;color:#fff}
.tv-card video{width:100%;max-height:46vh;border-radius:8px;background:#000;aspect-ratio:16/9}
.tv-card a{color:#f9d77e;font-weight:750}
.workspace-tv.is-mini{position:sticky;bottom:calc(.75rem + env(safe-area-inset-bottom));z-index:6;box-shadow:0 12px 30px #102f3b55}
.workspace-tv.is-mini .workspace-tv-list{grid-template-columns:4.5rem 1fr;align-items:center}
.workspace-tv.is-mini .tv-card{display:contents}
.workspace-tv.is-mini .tv-card video{max-height:4.5rem;aspect-ratio:16/9}
.tv-sheet-body video{width:100%;max-height:70vh;border-radius:10px;background:#000}
.digital-topbar{position:sticky;top:0;z-index:5;background:#eef5f3;padding-top:calc(.5rem + env(safe-area-inset-top))}
.teacher-page .digital-topbar{position:static}
.task-photo{display:block;max-width:16rem;width:100%;height:100%;max-height:100%;margin-top:0;border-radius:8px;background:transparent;object-fit:contain}
.task-photo-button{display:block;max-width:16rem;width:100%;aspect-ratio:4/3;margin-top:.5rem;padding:.35rem;border:1px solid #bdd1ca;border-radius:10px;background:transparent;cursor:pointer;overflow:hidden}
.task-photo-button:hover{border-color:#236b61}
.task-photo-body img{display:block;width:100%;max-height:70vh;border-radius:10px;background:transparent;object-fit:contain}
.task-photo-nav{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}
.task-photo-nav[hidden]{display:none}
.task-photo-counter{color:#55716d;font-size:.85rem;font-weight:700}
.media-library-filters{display:flex;gap:.75rem;flex-wrap:wrap;margin:.75rem 0}
.media-library-filters label{flex:1;min-width:10rem}
.history-board{margin:0;color:#174b45;text-align:left;font-size:clamp(2.2rem,3.6vw,2.9rem);line-height:1.7;white-space:pre-line;overflow-wrap:anywhere;max-width:100%}
 .board-render{display:grid;gap:.7rem;max-width:100%;overflow-wrap:anywhere}.board-render p,.board-render h2,.board-render h3{margin:0;overflow-wrap:anywhere}.board-render h2{font-size:3.3rem;line-height:1.2}.board-render h3{font-size:2.6rem;line-height:1.3}.board-render p{font-size:2.1rem;line-height:1.5}.board-block{display:block;max-width:100%;margin:0;white-space:pre-line;overflow-wrap:anywhere}.board-block-bold{font-weight:800}
@media(max-width:1100px){.classroom-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.materials-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.teacher-classroom-layout{grid-template-columns:minmax(0,1fr) minmax(16rem,1fr)}}
@media(max-width:700px){.materials-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.digital-topbar{grid-template-columns:1fr auto;gap:.55rem;padding-bottom:1rem}.digital-topbar .digital-back{grid-column:1/-1}.digital-topbar .digital-heading{text-align:left}.digital-topbar .digital-account>span:not(.student-coin-balance){display:none}.workspace-board{min-width:0}.exercises-zone,.materials-zone{padding:.9rem}.exercise-actions .exercise-submit{width:100%}.workspace-tv.is-mini .workspace-tv-list{grid-template-columns:4rem 1fr}.digital-overlay{padding:0}.tv-sheet-panel{border-radius:0}}@media(max-width:650px){.teacher-topbar{grid-template-columns:1fr auto;gap:.55rem}.teacher-topbar .digital-back{grid-column:1/-1}.teacher-topbar .digital-heading{text-align:left}.teacher-topbar .digital-account>span:not(.student-coin-balance){display:none}.teacher-session-actions form{min-width:100%}.teacher-session-actions form button{flex:1}.reference-card-actions{flex-wrap:wrap;justify-content:flex-end}.reference-card-actions button{min-height:2.4rem}.teacher-student-bar{align-items:stretch;flex-direction:column}.teacher-student-bar label:not(.sr-only){width:100%}}
/* Student mobile classroom: single-column order (board, TV mini-player, exercises, materials, references, history), no fixed-width overflow, 2.6rem targets. Desktop rules above are unchanged. */
/* Clean student board: white sheet, content from the top, large type, no chrome. */
#workspace-board.workspace-board{display:block;background:#fff}
#workspace-board .workspace-placeholder{text-align:left}
#workspace-board-content{margin:0;color:#174b45;font-size:2.3rem;line-height:1.65;overflow-wrap:anywhere;max-height:min(56vh,34rem);overflow-y:auto;overflow-x:hidden;scrollbar-width:none;user-select:text}
#workspace-board-content{font-size:clamp(1.15rem,0.32vw + 0.9rem,1.35rem)}
.board-render h2{font-size:clamp(1.65rem,0.3vw + 1.29rem,1.9rem)}.board-render h3{font-size:clamp(1.3rem,0.3vw + 1.02rem,1.55rem)}.board-render p{font-size:clamp(1.05rem,0.32vw + 0.81rem,1.25rem)}.board-render{overflow-wrap:anywhere}
@media (orientation:portrait) and (max-width:900px){.board-wall-shell{grid-template-columns:1fr}}
@media (orientation:portrait) and (max-width:900px){.board-wall-shell.board-fullscreen-fallback{grid-template-rows:minmax(0,3fr) minmax(0,2fr)}}
 #workspace-board-content::-webkit-scrollbar,.teacher-board textarea::-webkit-scrollbar{width:0;height:0;display:none}
 .teacher-board textarea{scrollbar-width:none}
@media(max-width:700px){#workspace-board-content{font-size:1.05rem;line-height:1.6}}
.board-block-title{display:inline-block;max-width:100%;padding:.08em .22em;border-radius:.2em;background:#fff3b8;box-shadow:0 .12em .35em #163d3a26;box-decoration-break:clone;-webkit-box-decoration-break:clone;font-size:clamp(1.35rem,3.2vw,2.25rem);line-height:1.2;font-weight:800}
 @media(max-width:700px){.classroom-layout{grid-template-columns:1fr}.digital-shell,.classroom-layout,.classroom-main,.references-zone,.exercises-zone,.materials-zone,.workspace-board,.classroom-strip,.class-history{min-width:0;max-width:100%}.media-library-filters label{min-width:0}.digital-account-menu,.student-account-menu{min-width:10rem;max-width:calc(100vw - 1rem)}.student-account-menu{z-index:3}.exercise-blank{max-width:100%}.reference-table{table-layout:fixed}.reference-table th,.reference-table td{overflow-wrap:anywhere}.reference-section summary{padding:.75rem}.reference-add,.button-primary,.button-secondary{min-height:2.6rem}.reference-toggle,.reference-delete{min-height:2.6rem}.reference-library-add{min-height:2.6rem}.dialog-close{min-width:2.6rem;min-height:2.6rem}.digital-account-toggle{min-height:2.6rem}.digital-back{min-height:2.6rem;display:inline-flex;align-items:center}.exercise-media-link{min-height:2.6rem;display:inline-flex;align-items:center}.history-item{min-height:2.6rem}}
.student-history{margin:0 0 1rem;padding:1rem;border:1px solid #d5e2de;border-radius:12px;background:#f8fbfa}.student-history .history-list{display:grid;gap:.45rem}.history-empty,.history-error{margin:.75rem 0;color:#55716d}.history-error{color:#9a3d35}.history-detail{margin-top:1rem;padding-top:1rem;border-top:1px solid #d5e2de}.history-detail-date{margin:.2rem 0;color:#55716d}.history-board{padding:1rem;border:1px solid #d5e2de;border-radius:9px;background:#fff}.history-materials,.history-notes{margin-top:1rem}.history-materials h4,.history-notes h4{margin:.2rem 0 .5rem}.history-materials ul{margin:0;padding-left:1.2rem}.history-reference{margin:.65rem 0;padding:.75rem;border:1px solid #d5e2de;border-radius:9px;background:#fff}.history-reference h5{margin:0 0 .4rem;font-size:1rem}.history-reference .reference-table{margin-top:.25rem}
/* Class history UX: chronological list with one-line summaries, title search,
   resume entry point, and a subtle new-classes badge. Reuses the existing
   history-item look; inner rows only add structure. */
.history-tools{display:flex;gap:.5rem;flex-wrap:wrap;margin:.6rem 0 .8rem}
.history-search{flex:1;min-width:10rem;margin:0;padding:.6rem .7rem;border:1px solid #aeb8c2;border-radius:8px;font:inherit}
.history-resume{min-height:2.6rem;white-space:nowrap}
.history-item-main{display:grid;gap:.15rem;text-align:left;min-width:0}
.history-summary{color:#55716d;font-size:.8rem;font-weight:400;overflow-wrap:anywhere}
.history-unread{display:inline-block;vertical-align:middle;margin-left:.5rem;padding:.15rem .55rem;border-radius:20px;background:#f0bd43;color:#4a3a08;font-size:.72rem;font-weight:800}
.history-unread[hidden]{display:none}
/* Student board follow + fullscreen: a "Nuevo contenido" pill offers the jump
   when the student scrolled up, and a toolbar toggle grows the board. The
   fallback overlay reuses the .digital-overlay visual language for browsers
   without the Fullscreen API on plain elements. Fixed board size above stays. */
#workspace-board{position:relative}
 .teacher-board-image-tools{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-top:.7rem;color:#55716d;font-size:.8rem}.teacher-board-image-tools label{font-weight:750}.teacher-board-image-frame,.teacher-board-video-frame{position:relative;display:block;width:min(100%,48rem);max-width:100%;margin:.8rem 0}.teacher-board-image-frame img,.teacher-board-video-frame video{display:block;width:100%;height:auto;max-height:min(68vh,42rem);border-radius:8px;object-fit:contain}.teacher-board-image-frame button,.teacher-board-video-frame>.teacher-board-media-remove{position:absolute;top:.25rem;right:.25rem;width:1.8rem;height:1.8rem;padding:0;border:0;border-radius:50%;background:#174b45;color:#fff;font-size:1.2rem;line-height:1;cursor:pointer}.teacher-board textarea + #aula-board-after-wrap{margin-top:.8rem}.teacher-board #aula-board-content-after{margin-top:.35rem}.board-image-block,.board-video-block{width:min(100%,48rem);margin:.8rem 0 0}.board-image-block{position:relative;overflow:hidden;isolation:isolate}.board-image,.board-video{display:block;width:100%;height:auto;max-height:min(68vh,42rem);border-radius:10px;object-fit:contain}.board-image{--image-pan-x:0px;--image-pan-y:0px;transform-origin:center;transition:transform .18s ease}.board-image-block.is-image-zoomed .board-image{transform:translate3d(var(--image-pan-x),var(--image-pan-y),0) scale(1.8);cursor:grab;touch-action:none}.board-image-block.is-image-zoomed .board-image.is-image-dragging{cursor:grabbing;transition:none}.board-image-zoom-toggle{position:absolute;top:.45rem;right:.45rem;z-index:1;width:2.6rem;min-width:2.6rem;height:2.6rem;min-height:2.6rem;padding:0;border:1px solid #fff;border-radius:50%;background:#174b45e6;color:#fff;font:inherit;font-size:1.25rem;line-height:1;cursor:pointer}.board-image-zoom-toggle:focus-visible{outline:3px solid #f0bd43;outline-offset:2px}.board-video-controls{display:flex;align-items:center;gap:.55rem;max-width:48rem;margin-top:.35rem;color:#365e58;font-size:.78rem}.board-video-toggle{display:grid;width:2.25rem;min-width:2.25rem;height:2.25rem;min-height:2.25rem;place-items:center;padding:0;border:1px solid #a8c1bb;border-radius:7px;background:#fff;color:#174b45;font:inherit;font-weight:750;line-height:1;cursor:pointer}.board-video-toggle span{font-size:1rem}.board-video-seek{flex:1;min-width:7rem;accent-color:#236b61}.board-video-time{min-width:5.5rem;text-align:right;white-space:nowrap}.teacher-board-video-frame .board-video-controls{max-width:48rem}
 .board-toolbar{position:absolute;top:.4rem;right:.4rem;z-index:2;margin:0}
 .board-toolbar{display:flex;align-items:center;gap:.15rem;flex-wrap:wrap;justify-content:flex-end}
.board-fullscreen-toggle{display:grid;place-items:center;width:2.6rem;min-width:2.6rem;height:2.6rem;padding:0;border:1px solid #c6d9d3;border-radius:10px;background:#f5faf8f2;color:#236b61;cursor:pointer;box-shadow:0 4px 14px #163d3a1f}
.board-fullscreen-toggle:hover{border-color:#236b61;background:#fff}
.board-fullscreen-toggle .fs-icon{display:block;width:1.15rem;height:1.15rem}
 .board-fullscreen-toggle .fs-icon[hidden]{display:none}
 .student-coin-balance,.board-class-coin{display:inline-flex;align-items:center;gap:.2rem;min-height:2rem;padding:0 .5rem;border:1px solid #f0d58a;border-radius:999px;background:#fff8df;color:#8a5a00;font-size:.85rem;font-weight:700;line-height:1}
 .coin-icon{display:inline-block;width:1.35em;height:1.35em;object-fit:contain;vertical-align:-.22em;flex:0 0 auto;border:0}
 .board-class-coin{display:none;position:absolute;top:max(1rem,env(safe-area-inset-top));left:max(.75rem,env(safe-area-inset-left));z-index:4}
 .board-wall-shell.board-fullscreen-fallback .board-class-coin,.board-wall-shell:fullscreen .board-class-coin,.board-wall-shell:-webkit-full-screen .board-class-coin{display:inline-flex}
 .board-wall-shell.board-fullscreen-fallback > #workspace-board .workspace-placeholder,.board-wall-shell:fullscreen > #workspace-board .workspace-placeholder,.board-wall-shell:-webkit-full-screen > #workspace-board .workspace-placeholder{padding-top:0}
.board-new-content{position:absolute;left:50%;bottom:1rem;transform:translateX(-50%);z-index:3;border:0;border-radius:99px;background:#174b45;color:#fff;padding:.6rem 1rem;font:inherit;font-size:.85rem;font-weight:750;white-space:nowrap;cursor:pointer;box-shadow:0 10px 26px #163d3a40}
.board-new-content[hidden]{display:none}
#workspace-board:fullscreen{overflow:hidden;padding:clamp(1rem,3vw,2.5rem)}
#workspace-board:fullscreen #workspace-board-content{max-height:none}
#workspace-board:-webkit-full-screen{overflow:hidden;padding:clamp(1rem,3vw,2.5rem)}
#workspace-board:-webkit-full-screen #workspace-board-content{max-height:none}
#workspace-board.board-fullscreen-fallback{position:fixed;inset:0;z-index:100;display:block;overflow:hidden;margin:0;border:0;border-radius:0;background:#17202af2;padding:clamp(.5rem,2vw,2rem)}
#workspace-board.board-fullscreen-fallback .workspace-placeholder{max-width:58rem;margin:0 auto;background:#fff;border-radius:clamp(0px,1vw,16px);padding:clamp(1rem,3vw,2.5rem);box-shadow:0 20px 70px #0006}
#workspace-board.board-fullscreen-fallback #workspace-board-content{max-height:none}
body.board-fullscreen-open{overflow:hidden}
@media(max-width:700px){#workspace-board.board-fullscreen-fallback{padding:0}#workspace-board.board-fullscreen-fallback .workspace-placeholder{border-radius:0}}
  .digital-workspace .classroom-layout{display:block}.board-wall-shell{display:grid;grid-template-columns:minmax(0,7fr) minmax(18rem,3fr);grid-template-rows:auto minmax(0,1fr);gap:clamp(1rem,2vw,1.75rem);align-items:start;min-width:0;overflow:visible;overscroll-behavior:none}.board-wall-shell > .test-board-carousel{grid-column:2;grid-row:1}.board-wall-shell > #workspace-board{grid-column:1;grid-row:1 / span 2}.board-wall-shell > .references-zone{grid-column:2;grid-row:2;min-width:0;min-height:0;max-height:clamp(25rem,65vh,48rem);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
/* Wall box wraps its content: no forced floor, no outer scroll of its own. */
.board-wall-shell > .references-zone{min-height:0;max-height:none;overflow-y:visible}
.teacher-classroom-layout > .teacher-references{min-height:0}.test-board-carousel{display:flex;gap:.6rem;margin-top:0;padding:.2rem .1rem .35rem;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}.test-board-carousel::-webkit-scrollbar{display:none}.test-board-carousel-item{flex:0 0 clamp(5.5rem,10vw,8rem);height:clamp(3.5rem,7vw,5rem);border:1px solid #bdd1ca;border-radius:10px;background:#f8fcfa;box-shadow:0 4px 10px #163d3a0d}.board-wall-shell.board-fullscreen-fallback,.board-wall-shell:fullscreen,.board-wall-shell:-webkit-full-screen{position:fixed;inset:0;z-index:100;display:grid;grid-template-columns:minmax(0,7fr) minmax(18rem,3fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch;gap:clamp(1rem,2vw,1.75rem);box-sizing:border-box;width:100vw;height:100vh;height:100svh;height:100dvh;min-height:100svh;overflow:hidden;overscroll-behavior:none;margin:0;padding:max(0.5rem,env(safe-area-inset-top)) max(0.5rem,env(safe-area-inset-right)) max(0.5rem,env(safe-area-inset-bottom)) max(0.5rem,env(safe-area-inset-left));border:0;border-radius:0;background:#17202af2}.board-wall-shell.board-fullscreen-fallback > #workspace-board,.board-wall-shell:fullscreen > #workspace-board,.board-wall-shell:-webkit-full-screen > #workspace-board{min-width:0;min-height:0;overflow:hidden}.board-wall-shell.board-fullscreen-fallback > .references-zone,.board-wall-shell:fullscreen > .references-zone,.board-wall-shell:-webkit-full-screen > .references-zone{min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;background:#e4efeb}.board-wall-shell.board-fullscreen-fallback #workspace-board-content,.board-wall-shell:fullscreen #workspace-board-content,.board-wall-shell:-webkit-full-screen #workspace-board-content{max-height:none}.board-wall-shell.board-fullscreen-fallback > #workspace-board{background:#fff}.board-wall-shell.board-fullscreen-fallback > #workspace-board .workspace-placeholder{max-width:none;height:100%;min-height:0;margin:0;background:#fff;border-radius:clamp(0px,1vw,16px);padding:clamp(1rem,3vw,2.5rem);box-shadow:0 20px 70px #0006}
  .board-wall-shell.board-fullscreen-fallback > #workspace-board .workspace-placeholder,.board-wall-shell:fullscreen > #workspace-board .workspace-placeholder,.board-wall-shell:-webkit-full-screen > #workspace-board .workspace-placeholder{display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.board-wall-shell.board-fullscreen-fallback > #workspace-board #workspace-board-content,.board-wall-shell:fullscreen > #workspace-board #workspace-board-content,.board-wall-shell:-webkit-full-screen > #workspace-board #workspace-board-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}
@media (orientation:portrait) and (max-width:900px){.board-wall-shell{grid-template-columns:1fr;grid-template-rows:auto auto auto}.board-wall-shell > .test-board-carousel{grid-column:1;grid-row:1}.board-wall-shell > #workspace-board{grid-column:1;grid-row:2}.board-wall-shell > .references-zone{grid-column:1;grid-row:3;max-height:clamp(22rem,55vh,34rem);padding:.65rem .7rem}.board-wall-shell > .references-zone .reference-add{min-width:0;min-height:2.6rem;padding:.35rem .45rem;font-size:.72rem;line-height:1.1;white-space:nowrap}}
   @media (orientation:landscape) and (max-width:900px){.board-wall-shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.75rem}.board-wall-shell > .references-zone{max-height:clamp(16rem,80vh,48rem)}}
   @media (orientation:portrait) and (max-width:900px), (orientation:landscape) and (max-width:900px){.board-wall-shell.board-fullscreen-fallback,.board-wall-shell:fullscreen,.board-wall-shell:-webkit-full-screen{gap:.5rem;padding:max(0.25rem,env(safe-area-inset-top)) max(0.25rem,env(safe-area-inset-right)) max(0.25rem,env(safe-area-inset-bottom)) max(0.25rem,env(safe-area-inset-left))}.board-wall-shell.board-fullscreen-fallback > #workspace-board .workspace-placeholder{border-radius:0}}
@media (orientation:portrait) and (max-width:900px){.board-wall-shell.board-fullscreen-fallback,.board-wall-shell:fullscreen,.board-wall-shell:-webkit-full-screen{grid-template-columns:1fr;grid-template-rows:auto minmax(0,3fr) minmax(0,2fr)}.board-wall-shell.board-fullscreen-fallback > .references-zone,.board-wall-shell:fullscreen > .references-zone,.board-wall-shell:-webkit-full-screen > .references-zone{max-height:none;min-height:0;padding:.5rem .6rem}.board-wall-shell.board-fullscreen-fallback .references-heading,.board-wall-shell:fullscreen .references-heading,.board-wall-shell:-webkit-full-screen .references-heading{gap:.4rem}.board-wall-shell.board-fullscreen-fallback .reference-add,.board-wall-shell:fullscreen .reference-add,.board-wall-shell:-webkit-full-screen .reference-add{min-width:0;min-height:2.6rem;padding:.35rem .45rem;font-size:.72rem;line-height:1.1;white-space:nowrap}}
   @media (orientation:landscape) and (max-width:900px){.board-wall-shell.board-fullscreen-fallback,.board-wall-shell:fullscreen,.board-wall-shell:-webkit-full-screen{grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-template-rows:minmax(0,1fr)}}
  .reference-card.is-protected .reference-toggle:disabled,.reference-card.is-protected .reference-delete:disabled{opacity:.45;cursor:not-allowed;pointer-events:none}
  .board-wall-shell .references-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.board-wall-shell .reference-add{display:grid;place-items:center;width:2.6rem;min-width:2.6rem;min-height:2.6rem;margin:0;padding:0;font-size:1.15rem;line-height:1}.board-wall-shell .reference-add:focus-visible{outline:3px solid #f0bd43;outline-offset:2px}.board-wall-shell > .references-zone{scrollbar-width:none}.board-wall-shell > .references-zone::-webkit-scrollbar{width:0;height:0;display:none}
/* Fullscreen contract: the shell is fixed, only the board content scrolls, and the
   toolbar stays anchored to the board instead of participating in that scroll. */
.board-wall-shell.board-fullscreen-fallback > #workspace-board,.board-wall-shell:fullscreen > #workspace-board,.board-wall-shell:-webkit-full-screen > #workspace-board{position:relative;display:block;min-width:0;min-height:0;overflow:hidden;scrollbar-width:none}
.board-wall-shell.board-fullscreen-fallback > #workspace-board::-webkit-scrollbar,.board-wall-shell:fullscreen > #workspace-board::-webkit-scrollbar,.board-wall-shell:-webkit-full-screen > #workspace-board::-webkit-scrollbar{width:0;height:0;display:none}
.board-wall-shell.board-fullscreen-fallback > #workspace-board .workspace-placeholder,.board-wall-shell:fullscreen > #workspace-board .workspace-placeholder,.board-wall-shell:-webkit-full-screen > #workspace-board .workspace-placeholder{display:flex;flex-direction:column;width:100%;height:100%;max-width:none;min-height:0;box-sizing:border-box}
/* Body-root fullscreen must keep the ordinary board's usable area and surface. */
.board-wall-shell.board-fullscreen-fallback > #workspace-board .workspace-placeholder{padding:0;box-shadow:none;background:transparent}
.board-wall-shell.board-fullscreen-fallback > #workspace-board #workspace-board-content,.board-wall-shell:fullscreen > #workspace-board #workspace-board-content,.board-wall-shell:-webkit-full-screen > #workspace-board #workspace-board-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.board-wall-shell.board-fullscreen-fallback > #workspace-board #workspace-board-content::-webkit-scrollbar,.board-wall-shell:fullscreen > #workspace-board #workspace-board-content::-webkit-scrollbar,.board-wall-shell:-webkit-full-screen > #workspace-board #workspace-board-content::-webkit-scrollbar{width:0;height:0;display:none}
.board-wall-shell.board-fullscreen-fallback > #workspace-board .board-toolbar,.board-wall-shell:fullscreen > #workspace-board .board-toolbar,.board-wall-shell:-webkit-full-screen > #workspace-board .board-toolbar{position:absolute;top:.75rem;right:.75rem;left:auto;width:auto;margin:0;z-index:4}
/* Normal board contract: keep the classroom page fixed while the board content
   owns the vertical scroll. Fullscreen sizing is defined separately above. */
.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback){--board-wall-height:min(64vh,38rem);align-items:stretch}
.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > .references-zone{height:var(--board-wall-height);min-height:0;max-height:none;box-sizing:border-box}
.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > #workspace-board{overflow:hidden}
.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > #workspace-board .workspace-placeholder{display:flex;flex-direction:column;width:100%;height:100%;max-width:none;min-height:0;box-sizing:border-box}
.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > #workspace-board .board-toolbar{position:static;align-self:flex-end;margin:0 0 .5rem}
.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > #workspace-board #workspace-board-content{flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden}
.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > .references-zone{overflow-y:auto;overflow-x:hidden}
/* Desktop student pair: the board spans the carousel row plus the wall row,
   so it fills its whole grid area to meet the wall bottom edge. Both panels
   keep their own internal scroll and never grow past the shared height. */
@media(min-width:901px){.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > #workspace-board{height:100%;min-height:0;max-height:none;box-sizing:border-box}}
/* Lock both rows at exact sizes: the spanning board uses percentage height
   (auto in intrinsic grid sizing), so any uncapped row would absorb content
   size and push the wall down. Row 1 mirrors the single carousel tile row. */
@media(min-width:901px){.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback){grid-template-rows:calc(clamp(3.5rem,7vw,5rem) + .55rem) minmax(0,var(--board-wall-height))}}
@media(min-width:901px){.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback):has(> #student-board-carousel:empty){grid-template-rows:0 minmax(0,var(--board-wall-height))}.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback):has(> #student-board-carousel:empty) > #student-board-carousel{display:none}}
/* Below desktop the board keeps its own fixed height (never auto): stacked
   rows are content-sized, so an auto board would grow without limit. */
@media(max-width:900px){.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > #workspace-board{height:var(--board-wall-height);min-height:0;max-height:none;box-sizing:border-box}}
/* Student extra box ("Mis tareas"): compact while empty, grows with content
   up to a responsive cap, then scrolls inside like the board and the wall.
   Top-anchored, so it never extends upward; future boxes stack below it. */
.student-extra-box{min-width:0;height:auto;min-height:12rem;max-height:clamp(24rem,90dvh,54rem);margin-top:clamp(1rem,2vw,1.75rem);padding:clamp(.9rem,2vw,1.25rem);border:2px dashed #a8c1bb;border-radius:20px;background:transparent;box-sizing:border-box;align-self:start;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none}.student-extra-box::-webkit-scrollbar{width:0;height:0;display:none}.student-extra-box .eyebrow{margin:0}
/* Student tasks wheel: prev/current/next cards with fluid enlarge/shrink.
   GPU-only properties, fixed slots, reduced-motion respected. */
.tasks-wheel{position:relative;width:min(100%,44rem);margin:.75rem auto 0;padding:.65rem .65rem .75rem;border:1px solid #c6d9d3;border-radius:16px;background:#f8fcfa;box-shadow:0 5px 12px #163d3a0d;perspective:1000px;box-sizing:border-box}
.tasks-wheel[hidden]{display:none}
.tasks-wheel-viewport{position:relative;height:calc(var(--tasks-wheel-card-h) + 2*var(--tasks-wheel-peek));--tasks-wheel-card-h:clamp(10rem,30svh,18rem);--tasks-wheel-card-min-h:10rem;--tasks-wheel-card-max-h:22rem;--tasks-wheel-peek:clamp(2.4rem,8svh,4rem);overflow:hidden}
.tasks-wheel-viewport > .tasks-wheel-card{position:absolute;left:0;right:0;top:50%;height:var(--tasks-wheel-card-h);margin-top:calc(var(--tasks-wheel-card-h)/-2);margin-bottom:0;display:flex;flex-direction:column;transition:transform .38s cubic-bezier(.22,1,.36,1),opacity .3s ease}
.tasks-wheel-card[data-wheel-state="current"]{transform:none;opacity:1;z-index:2}
.tasks-wheel-card[data-wheel-state="prev"]{transform:translateY(calc(-1*(var(--tasks-wheel-card-h)/2 + var(--tasks-wheel-peek)))) scale(.72);opacity:.55;z-index:1}
.tasks-wheel-card[data-wheel-state="next"]{transform:translateY(calc(var(--tasks-wheel-card-h)/2 + var(--tasks-wheel-peek))) scale(.72);opacity:.55;z-index:1}
.tasks-wheel-card[data-wheel-state="hidden"]{transform:scale(.6);opacity:0;z-index:0}
.tasks-wheel-card:not([data-wheel-state="current"]){pointer-events:auto}
.tasks-wheel-card .board-exercise-question{flex:0 1 auto;min-height:0;max-height:55%;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;background:linear-gradient(#ffffff 30%,rgba(255,255,255,0)),linear-gradient(rgba(255,255,255,0),#ffffff 70%) 0 100%,radial-gradient(farthest-side at 50% 0,rgba(22,61,58,.16),transparent),radial-gradient(farthest-side at 50% 100%,rgba(22,61,58,.16),transparent) 0 100%;background-repeat:no-repeat;background-size:100% 2.2rem,100% 2.2rem,100% .9rem,100% .9rem;background-attachment:local,local,scroll,scroll}
.tasks-wheel-question.tasks-wheel-touch-guard{overscroll-behavior-y:contain}
.tasks-wheel-card .board-exercise-options{flex:none}
.tasks-new-badge{display:inline-grid;place-items:center;width:1.4rem;height:1.4rem;margin-right:.4rem;border-radius:50%;background:#b3372f;color:#fff;font-size:.9rem;font-weight:800;animation:tasks-new-pulse 1.6s ease-in-out infinite}
@keyframes tasks-new-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
@media (prefers-reduced-motion:reduce){.tasks-wheel-card{transition:none}.tasks-new-badge{animation:none}}
.tasks-wheel-nav{position:relative;display:flex;justify-content:center;gap:.35rem;margin-top:.55rem;z-index:3}
.tasks-wheel-nav button{min-width:2.6rem;min-height:2.6rem;padding:.4rem;border:1px solid #c6d9d3;border-radius:10px;background:#f5faf8f2;color:#236b61;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 4px 14px #163d3a1f}
.tasks-wheel-nav button[disabled]{opacity:.4;cursor:default}
.biblioteca-dictation-list{display:grid;gap:.75rem;margin-top:.75rem}
.biblioteca-dictation-card{min-width:0;padding:.85rem;border:1px solid #c6d9d3;border-radius:14px;background:#f8fcfa;box-sizing:border-box}
.biblioteca-dictation-title{margin:0;color:#174b45;font-size:1.05rem}
.biblioteca-dictation-prompt,.biblioteca-dictation-status{margin:.45rem 0;color:#55716d;font-size:.9rem}
.bdict-part{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.55rem;margin-top:.65rem;padding:.7rem;border:1px solid #d8e7e2;border-radius:10px;background:#fff}
.bdict-words{justify-self:end;padding:.15rem .55rem;border-radius:20px;background:#e7efed;color:#365e58;font-size:.78rem;font-weight:700}
.bdict-part audio,.bdict-part input,.bdict-result,.biblioteca-dictation-reveal{grid-column:1/-1;width:100%;box-sizing:border-box}
.bdict-part audio{max-width:100%}
.bdict-part-image{grid-column:1/-1;display:block;width:auto;height:auto;max-width:min(100%,34rem);max-height:24rem;object-fit:contain;border-radius:8px}
.bdict-part input{min-height:2.75rem;padding:.6rem .7rem;border:1px solid #bdd1ca;border-radius:8px;font:inherit}
.bdict-part input:disabled{background:#eef5f3;color:#55716d}
.bdict-result,.biblioteca-dictation-reveal{margin:.1rem 0;color:#365e58;font-size:.88rem}
.biblioteca-dictation-card [data-bdict-submit],.biblioteca-dictation-card [data-bdict-retry]{margin-top:.7rem}
/* Teacher extra box ("Mis tareas"): identical grow-to-cap contract, outside
   the classroom grids so uploads, media, exercises and board flows are untouched. */
.teacher-extra-box{min-width:0;height:auto;min-height:12rem;max-height:clamp(24rem,90dvh,54rem);margin-top:clamp(1rem,2vw,1.75rem);padding:clamp(.9rem,2vw,1.25rem);border:2px dashed #a8c1bb;border-radius:20px;background:transparent;box-sizing:border-box;align-self:start;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none}.teacher-extra-box::-webkit-scrollbar{width:0;height:0;display:none}.teacher-extra-box .eyebrow{margin:0}
#teacher-mis-tareas [data-tasks-add-wrap]{position:sticky;top:0;z-index:2;background:#eef5f3;padding:.4rem 0}
#teacher-mis-tareas{display:flex;flex-direction:column;overflow:hidden}
#teacher-mis-tareas>.tasks-list-box{min-height:0;overflow-y:auto;overflow-x:hidden;padding:.1rem .2rem .75rem}
.tasks-controls-box{border:1px solid #bdd1ca;border-radius:14px;background:#f8fcfa;padding:.65rem .85rem}
.tasks-list-box{display:grid;gap:.75rem;margin-top:.75rem}
.tasks-added-box{margin-top:.75rem;border:1px solid #bdd1ca;border-radius:14px;background:#fff;box-shadow:0 5px 12px #163d3a0d}
.tasks-list-box .tasks-added-box{margin-top:0}
.tasks-added-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.7rem .85rem;border-bottom:1px solid #e3eeea}
.tasks-added-head strong{color:#174b45}
.tasks-type-row{display:flex;gap:.5rem;flex-wrap:wrap;padding:.85rem}
.tasks-type-btn[disabled]{opacity:.45;cursor:not-allowed}
.tasks-variant{margin:.75rem;padding:.75rem;border:1px solid #d8e7e2;border-radius:10px;background:#f8fcfa}
.tasks-variant label{display:grid;gap:.3rem;margin:.45rem 0;color:#365e58;font-size:.82rem;font-weight:650}
.tasks-variant fieldset{margin:.6rem 0;padding:.6rem;border:1px solid #d8e7e2;border-radius:8px}
.tasks-variant legend{padding:0 .25rem;color:#365e58;font-size:.82rem;font-weight:700}
.tasks-variant .tasks-option-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.5rem;margin:.4rem 0}
.tasks-review-header{margin:0 0 .65rem;color:#174b45}.tasks-review-header strong{display:block;min-width:0;overflow-wrap:anywhere}.tasks-review-meta{color:#55716d;font-size:.78rem;font-weight:650}.tasks-review-meta.is-neutral{font-weight:600}.tasks-review-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(15rem,1fr);gap:1rem;align-items:start}.tasks-review-question{min-width:0}.tasks-review-question>strong{display:block;color:#174b45;line-height:1.35}.tasks-review-options{display:grid;gap:.4rem;margin:.7rem 0 0;padding:0;list-style:none}.tasks-review-option{display:grid;grid-template-columns:1.6rem minmax(0,1fr) 1.2rem;gap:.45rem;align-items:center;padding:.48rem .6rem;border:1px solid #d8e7e2;border-radius:8px;background:#fff;color:#365e58}.tasks-review-option-letter{font-weight:800}.tasks-review-option-marker{font-weight:900;text-align:center}.tasks-review-option.is-correct{border-color:#9acfa9;background:#eaf8ed;color:#235b35}.tasks-review-option.is-selected-wrong{border-color:#e5aaa5;background:#fff0ef;color:#8f332d;text-decoration:line-through}.tasks-review-attempt-panel{min-width:0;padding:.65rem .75rem;border:1px solid #d8e7e2;border-radius:9px;background:#fff}.tasks-review-attempts{display:grid;gap:.45rem;margin:0;padding:0;list-style:none;color:#174b45;font-size:.82rem;font-weight:650}.tasks-review-attempt{overflow-wrap:anywhere}.tasks-review-status.is-neutral{color:#55716d;font-weight:600}
.tasks-row-actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin-top:.6rem}
.tasks-status{margin:.5rem 0 0;color:#55716d;font-size:.8rem}
.tasks-saved-list{display:grid;gap:.6rem;padding:.85rem}
.tasks-saved-item{padding:.7rem .8rem;border:1px solid #d8e7e2;border-radius:10px;background:#f7fbf9}
.tasks-saved-item strong{color:#174b45}
.tasks-saved-item p{margin:.25rem 0 0;color:#55716d;font-size:.85rem}
.tasks-library-panel{margin-top:.75rem;border:1px solid #d8e7e2;border-radius:10px;background:#f8fcfa;padding:.75rem}
.tasks-search-row{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.tasks-search-row input{flex:1 1 12rem}
.tasks-lib-item{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem;margin-top:.5rem;padding:.65rem .7rem;border:1px solid #d8e7e2;border-radius:9px;background:#fff}
.tasks-chip{display:inline-block;margin:.15rem .2rem 0 0;padding:.15rem .5rem;border-radius:20px;background:#e7efed;color:#365e58;font-size:.72rem;font-weight:750}
.tasks-chip-topic{background:#e4efeb;color:#174b45}
.tasks-chip button{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0 .1rem}
/* Tareas escritas (written tasks): normal-flow cards below the wheel; the
 * extra-box scroll contract (top-anchored, capped, inner scroll) is inherited
 * from .student-extra-box, so nothing here may overlap or float. */
.written-task-card{margin:.75rem 0 0;min-width:0;padding:.7rem .75rem .8rem;border:1px solid #c6d9d3;border-radius:16px;background:#f8fcfa;box-shadow:0 5px 12px #163d3a0d;box-sizing:border-box}
.written-task-head{margin:0}
.written-task-head strong{color:#174b45}
.written-task-instruction{margin:.3rem 0 0;color:#365e58;font-size:.85rem;white-space:pre-wrap;overflow-wrap:anywhere}
.written-task-media{margin:.55rem 0 0;min-width:0}
.written-task-media .board-image{display:block;max-width:100%;max-height:16rem;width:auto;object-fit:contain;border-radius:10px}
.written-task-media .board-video{display:block;width:100%;max-height:16rem;object-fit:contain;border-radius:10px}
.written-task-media .board-audio{display:block;width:100%}
.written-task-textarea{width:100%;min-height:7.5rem;margin:.5rem 0 0;padding:.6rem;border:1px solid #c6d9d3;border-radius:10px;background:#fff;color:#174b45;font:inherit;font-size:.85rem;resize:vertical;box-sizing:border-box}
.written-task-textarea:disabled,.written-task-textarea[readonly]{background:#eef4f2;color:#55716d}
.written-task-actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin-top:.5rem}
.written-task-response,.written-task-comment{min-width:0;margin:.55rem 0 0;padding:.55rem .6rem;border:1px solid #c6d9d3;border-radius:10px;box-sizing:border-box}
.written-task-response{background:#eef4f2}
.written-task-comment{background:#f4faf8}
.written-task-response-label,.written-task-comment-label{margin:0;color:#174b45;font-size:.75rem;font-weight:700}
.written-task-response-text,.written-task-comment-text{margin:.25rem 0 0;color:#365e58;font-size:.85rem;white-space:pre-wrap;overflow-wrap:anywhere}
.tasks-correction-form{min-width:0;margin:.5rem 0 0;padding:.55rem .6rem;border:1px solid #d8e7e2;border-radius:9px;background:#fff;box-sizing:border-box}
.tasks-correction-form label{display:block;margin:.4rem 0 0;color:#174b45;font-size:.78rem;font-weight:650}
.tasks-correction-form label:first-child{margin-top:0}
.tasks-correction-form input,.tasks-correction-form textarea{display:block;width:100%;margin:.25rem 0 0;padding:.45rem .5rem;border:1px solid #c6d9d3;border-radius:8px;background:#fff;color:#174b45;font:inherit;font-size:.85rem;box-sizing:border-box}
.tasks-correction-form textarea{resize:vertical}
/* Teacher correction editor (written tasks): contenteditable over the
   student's response plus the annotation toolbar. The wt-ann-* classes are
   the sanitized whitelist the student card renders with innerHTML. */
.written-correction-toolbar{display:flex;gap:.4rem;flex-wrap:wrap}
.written-correction-editor{display:block;width:100%;min-height:7.5rem;max-height:22rem;margin:.5rem 0 0;padding:.6rem;border:1px solid #c6d9d3;border-radius:10px;background:#fff;color:#174b45;font:inherit;font-size:.85rem;line-height:1.45;overflow-y:auto;overflow-wrap:anywhere;box-sizing:border-box}
.written-correction-editor:focus{outline:2px solid #236b61;outline-offset:-1px}
.wt-ann-red{background:#f6bdbd}
.wt-ann-green{background:#c8e6c9}
.wt-ann-yellow{background:#ffe58a}
.wt-ann-strike,.written-task-correction del{text-decoration:line-through}
/* Teacher-typed words inside a written correction: bold + palette ink so the
   student can tell them apart from the original response (the same class is
   live-marked inside the editor and rendered on the student card). */
.wt-ann-teacher{font-weight:700;color:#174b45}
.written-correction-editor strong.wt-ann-teacher{font-weight:700}
/* Written task form inside the teacher tasks box */
.tasks-variant textarea[data-wt-instruction]{width:100%;min-height:5.5rem;padding:.55rem;border:1px solid #d8e7e2;border-radius:8px;background:#fff;color:#174b45;font:inherit;font-size:.85rem;resize:vertical;box-sizing:border-box}
.tasks-variant input[type="datetime-local"]{width:100%;padding:.45rem .55rem;border:1px solid #d8e7e2;border-radius:8px;background:#fff;color:#174b45;font:inherit;font-size:.85rem;box-sizing:border-box}
.tasks-store-form{display:grid;gap:.15rem;margin-top:.6rem;padding:.75rem;border:1px solid #c6d9d3;border-radius:10px;background:#f8fcfa}
.tasks-store-form label{display:grid;gap:.3rem;margin:.4rem 0;color:#365e58;font-size:.82rem;font-weight:650}
.tasks-suggest-item{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;margin-top:.3rem;padding:.5rem .6rem;border:1px solid #d8e7e2;border-radius:8px;background:#fff;color:#174b45;font:inherit;font-size:.82rem;cursor:pointer}
@media(max-width:700px){.tasks-review-grid{grid-template-columns:1fr}}
.tasks-suggest-item span{color:#5f827b;font-size:.72rem;font-weight:800}
.tasks-custom-topic{display:grid;gap:.15rem;margin-top:.5rem}
@media(max-width:700px){.teacher-board-image-frame img,.teacher-board-video-frame video,.board-image,.board-video{max-height:min(52vh,30rem)}}

/* Teacher editor boundaries: keep the action row in its own visible flex space. */
.teacher-board-inner{min-height:0;min-width:0}
.teacher-board-editor{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;box-sizing:border-box;padding-bottom:4rem;scroll-padding-bottom:4rem;position:relative;z-index:0}
.teacher-board-actions{flex:0 0 auto;display:flex;align-items:center;min-height:3.25rem;margin-top:.75rem;padding:.75rem 0 0;border-top:1px solid #d8e7e2;background:#fff;position:relative;z-index:2;isolation:isolate;pointer-events:auto;user-select:none}
 .teacher-board-actions[contenteditable="false"],.teacher-board-actions[contenteditable="false"] *{user-select:none}
  .teacher-board-insertion{grid-column:1;grid-row:1;padding:1rem clamp(1rem,2vw,1.35rem);border:1px solid #c6d9d3;border-radius:16px;background:#fff;box-shadow:0 8px 20px #163d3a0b}.teacher-board-insertion-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.teacher-board-insertion-heading h2{margin:.15rem 0 0;color:#174b45;font-size:1.25rem}.teacher-board-insertion-sections{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;margin-top:.9rem}.teacher-board-insertion-section{min-width:0;padding:.8rem;border:1px solid #d8e7e2;border-radius:12px;background:#f8fcfa}.teacher-board-insertion-label{margin:0;color:#236b61;font-size:.8rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.teacher-board-media-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin-top:.65rem}.teacher-board-media-button{display:flex;align-items:center;justify-content:center;gap:.35rem;min-height:3.25rem;margin:0;padding:.55rem .65rem;border:1px solid #bdd1ca;border-radius:10px;background:#fff;color:#174b45;font:inherit;font-size:.82rem;font-weight:750;text-align:center;cursor:pointer}.teacher-board-media-button:hover{border-color:#236b61;background:#f2f9f6}.teacher-board-media-button:focus-within{outline:3px solid #f0bd43;outline-offset:2px}.teacher-board-media-button[aria-disabled="true"]{opacity:.55;cursor:not-allowed}.teacher-board-media-icon{display:grid;place-items:center;width:1.55rem;height:1.55rem;border-radius:7px;background:#e4efeb;color:#236b61;font-size:1.1rem;line-height:1}.teacher-board-insertion-placeholder{margin:.65rem 0 0;color:#55716d;font-size:.88rem}.teacher-board{grid-column:1;grid-row:2}.teacher-references{grid-column:2;grid-row:1 / span 2;height:auto}.teacher-classroom-layout{grid-template-rows:auto minmax(clamp(25rem,65vh,48rem),auto) auto}
  @media(max-width:700px){.teacher-classroom-layout{grid-template-rows:none}.teacher-board-insertion,.teacher-board,.teacher-references{grid-column:auto;grid-row:auto}.teacher-board-insertion-sections{grid-template-columns:1fr}.teacher-board-media-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}}
.manage-shell{max-width:90rem;margin:0 auto}.manage-section{max-width:70rem;margin:0 auto 1.25rem;padding:1.25rem clamp(1rem,2vw,1.5rem);border:1px solid #c6d9d3;border-radius:14px;background:#fff;box-shadow:0 8px 20px #163d3a0b}.manage-header{display:grid;grid-template-columns:1fr auto;gap:.5rem 1rem;align-items:start}.manage-section h2{margin:.15rem 0 0;color:#174b45}.manage-section .muted{margin:.35rem 0 0}.manage-summary{grid-column:1/-1;display:flex;gap:1rem;flex-wrap:wrap;margin-top:.75rem;color:#55716d;font-size:.86rem}.manage-summary strong{color:#174b45}.roster-tools{display:grid;grid-template-columns:minmax(14rem,1fr) minmax(8rem,12rem) minmax(8rem,12rem);gap:.75rem;align-items:end}.roster-tools label{margin:0;color:#55716d;font-size:.8rem}.roster-tools input,.roster-tools select{min-height:2.6rem}.roster-search label{display:block;font-weight:600;color:#55716d;font-size:.8rem}.roster-heading{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-top:1.25rem}.roster-heading h2{font-size:1.1rem}.roster-heading p{margin:0;font-size:.85rem}.student-roster{list-style:none;margin:.5rem 0 0;padding:0;border-top:1px solid #d8e7e2}.student-row{display:grid;grid-template-columns:minmax(12rem,2fr) minmax(7rem,1fr) minmax(6rem,.8fr) auto;align-items:center;gap:1rem;padding:.8rem .25rem;border-bottom:1px solid #e3eeea}.student-identity{display:grid;gap:.1rem;min-width:0}.student-identity strong,.student-identity span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-identity span,.student-zone{color:#55716d;font-size:.85rem}.student-status{font-size:.8rem;font-weight:800;white-space:nowrap}.student-status span{color:#53b78c}.student-status.is-inactive{color:#8a4a43}.student-status.is-inactive span{color:#c0564f}.student-actions{position:relative;min-width:8.5rem}.student-actions summary{padding:.45rem .6rem;border:1px solid #c6d9d3;border-radius:7px;background:#f5faf8;color:#236b61;font-size:.78rem;font-weight:750;cursor:pointer;list-style:none;text-align:center}.student-actions summary::-webkit-details-marker{display:none}.student-actions>div{position:absolute;right:0;z-index:2;display:grid;min-width:12rem;margin-top:.25rem;padding:.3rem;border:1px solid #c6d9d3;border-radius:9px;background:#fff;box-shadow:0 8px 20px #163d3a26}.student-actions button{padding:.55rem .65rem;background:transparent;color:#236b61;text-align:left;font-size:.8rem}.student-actions button:hover{background:#eef5f3}.manage-empty{padding:1.5rem;text-align:center;color:#55716d}.manage-empty p{margin-top:0}.manage-dialog{width:min(100% - 2rem,34rem);max-height:calc(100dvh - 2rem);padding:1.25rem;border:1px solid #c6d9d3;border-radius:14px;background:#fff;color:#163d3a;box-shadow:0 20px 70px #163d3a40}.manage-dialog::backdrop{background:#102f3bcc}.manage-form{display:grid;gap:.15rem}.manage-form label{margin:.6rem 0 0}.manage-form button{margin-top:.9rem;width:100%}.dialog-heading{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;border-bottom:1px solid #e3eeea;padding-bottom:.75rem;margin-bottom:.5rem}.dialog-heading h2{margin:.15rem 0 0}.dialog-heading p{margin:.2rem 0 0}.dialog-close{width:2.4rem;height:2.4rem;margin:0!important;padding:0!important;font-size:1.3rem}.manage-dialog h3{margin:1.25rem 0 .1rem;padding-top:1rem;border-top:1px solid #e3eeea;color:#174b45}.credentials{margin:.8rem 0 0;padding:.8rem;border:1px dashed #236b61;border-radius:10px;background:#f2faf7;color:#174b45}.credentials strong{overflow-wrap:anywhere}.form-status{margin:.5rem 0 0;font-size:.88rem}.manage-dialog [hidden],.manage-empty[hidden]{display:none}@media(max-width:700px){.manage-header{grid-template-columns:1fr}.manage-header .button-primary{width:100%}.roster-tools{grid-template-columns:1fr 1fr}.roster-search{grid-column:1/-1}.student-row{grid-template-columns:minmax(0,1fr) auto;gap:.35rem .75rem}.student-zone{grid-column:1}.student-status{grid-column:2;grid-row:2}.student-actions{grid-column:1/-1;min-width:0}.student-actions>div{left:0;right:auto}.manage-dialog{width:calc(100% - 1rem);padding:1rem}}
@media(max-width:700px){.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback){--board-wall-height:clamp(22rem,58vh,36rem)}}

#workspace-board{position:relative}.teacher-exercise-insert{margin-top:1rem;padding-top:1rem;border-top:1px solid #e3eeea}.teacher-exercise-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.teacher-exercise-heading h3{margin:0;color:#174b45;font-size:1rem}.teacher-exercise-insert form{margin-top:.65rem;padding:.75rem;border:1px solid #c6d9d3;border-radius:12px;background:#f8fcfa}.teacher-exercise-insert fieldset{margin:.75rem 0;padding:.6rem;border:1px solid #d8e7e2;border-radius:8px}.teacher-exercise-insert legend{padding:0 .25rem;color:#365e58;font-size:.82rem;font-weight:700}.teacher-exercise-insert fieldset label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem;margin:.45rem 0;font-size:.82rem}.teacher-exercise-insert fieldset input[type=checkbox]{width:1.1rem;margin:0}.teacher-exercise-actions{display:flex;gap:.5rem;flex-wrap:wrap}.teacher-exercise-actions button{flex:1 1 10rem;font-size:.8rem}
 .teacher-board-editor{position:relative;display:grid;gap:.15rem;margin-top:1rem}.teacher-board-edit-block{position:relative}.teacher-board-text-block{border:0;background:transparent;margin:0;padding:0}.teacher-board-inline-text{margin:0;min-height:1.5em;padding:.15rem 0;border:0;background:transparent;color:#174b45;white-space:pre-wrap;overflow-wrap:anywhere;outline:0}.teacher-board-inline-text:empty::before{content:attr(data-placeholder);color:#8aa39d}.teacher-board-inline-text:focus{outline:2px solid #f0bd43;outline-offset:3px;border-radius:3px}.teacher-board-text-block[data-bold="true"] .teacher-board-inline-text{font-weight:800}.teacher-board-text-block .teacher-board-inline-text[data-placeholder="Título"]{font-size:1.65rem;line-height:1.2}.teacher-board-text-block .teacher-board-inline-text[data-placeholder="Subtítulo"]{font-size:1.3rem;line-height:1.3}.teacher-board-contextual-control{position:absolute;left:-2.8rem;z-index:4}.teacher-board-contextual-control[hidden]{display:none}.teacher-board-plus{width:2.2rem;height:2.2rem;border:1px solid #a8c1bb;border-radius:50%;background:#fff;color:#236b61;font-size:1.35rem;line-height:1;cursor:pointer;box-shadow:0 3px 10px #163d3a18}.teacher-board-plus:hover,.teacher-board-plus:focus-visible{background:#eef5f3}.teacher-board-plus-menu{position:absolute;z-index:3;top:2.55rem;left:0;min-width:10rem;padding:.3rem;border:1px solid #c6d9d3;border-radius:9px;background:#fff;box-shadow:0 8px 20px #163d3a26}.teacher-board-plus-menu[hidden]{display:none}.teacher-board-menu-choice{width:100%;padding:.55rem .7rem;border:0;background:#fff;color:#236b61;text-align:left;cursor:pointer}.teacher-board-menu-choice:hover,.teacher-board-menu-choice:focus-visible{background:#eef5f3}
  .teacher-board-editor{display:grid;grid-auto-rows:max-content;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;align-items:start}
 .teacher-board-editor{min-width:0;max-width:100%;overflow-wrap:anywhere}.teacher-board-text-block{display:block;position:relative;min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.teacher-board-inline-text{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;word-break:break-word}
 @media(max-width:700px){.digital-account .student-coin-balance{display:inline-flex}}
/* Minimal teacher board: the textarea is the single bounded scroll owner. */
.teacher-board{overflow:hidden}
 .teacher-board textarea{min-height:0;overflow:auto;resize:none;overscroll-behavior:contain}
  .teacher-board-editor{flex:1;min-height:18rem;margin-top:1rem;padding:1rem;background:#f8fcfa;color:#174b45;font-size:clamp(1.1rem,1.8vw,1.45rem);line-height:1.65;overflow:auto;outline:0}.teacher-board-editor:focus{outline:3px solid #f0bd43;outline-offset:2px}.teacher-board-text-block{min-height:1.65em;white-space:pre-wrap;overflow-wrap:anywhere}.teacher-board-text-block:empty::before{content:attr(data-placeholder);color:#8aa39d}.teacher-board-image-frame,.teacher-board-video-frame{position:relative;width:min(100%,48rem);max-width:100%;margin:.8rem 0}.teacher-board-image-frame .board-image,.teacher-board-video-frame .board-video{display:block;width:100%;height:auto;max-height:min(68vh,42rem);border-radius:10px;object-fit:contain}.teacher-board-media-remove{position:absolute;top:.35rem;right:.35rem;width:2rem;height:2rem;padding:0;border-radius:50%;background:#174b45;color:#fff;font-size:1.3rem;line-height:1}.teacher-board-image-tools input:not(.sr-only){width:auto;display:inline-block;margin:0}

/* Keep teacher controls visible while the editable surface owns vertical scrolling. */
.teacher-board{height:min(64rem,max(22rem,calc(100dvh - 10rem)));min-height:0;max-height:min(64rem,max(22rem,calc(100dvh - 10rem)));overflow:hidden}
.teacher-board-inner{min-height:0;min-width:0}
.teacher-board-editor{min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
 .board-media-title{display:block;width:fit-content;max-width:100%;margin:0 auto .45rem;padding:.12em .35em;border-radius:.25em;background:#fff3b8;box-shadow:0 .12em .35em #163d3a26;color:#174b45;font-size:clamp(.95rem,2vw,1.2rem);font-weight:800;line-height:1.25;overflow-wrap:anywhere;box-decoration-break:clone;-webkit-box-decoration-break:clone}.board-image-block,.board-video-block,.board-audio-block,.board-document-block,.board-manual-block{text-align:center}.board-document-block,.board-manual-block{width:min(100%,48rem);margin:.8rem auto 0}.board-document-link{display:inline-flex;align-items:center;min-height:2.8rem;padding:.65rem .85rem;border:1px solid #c6d9d3;border-radius:10px;background:#f7fbf9;color:#174b45;font-weight:750}.teacher-board-document-frame,.teacher-board-manual-frame{width:min(100%,48rem);margin:.8rem auto 0;text-align:center}.teacher-board-audio-frame,.board-audio-block{position:relative;display:block;width:min(100%,48rem);max-width:100%;margin:.8rem auto}.teacher-board-audio-frame audio,.board-audio{display:block;width:100%;min-height:3rem;height:auto;max-height:min(68vh,42rem);border-radius:10px;object-fit:contain}.teacher-board-audio-frame>.teacher-board-media-remove{position:absolute;top:.25rem;right:.25rem;width:1.8rem;height:1.8rem;padding:0;border:0;border-radius:50%;background:#174b45;color:#fff;font-size:1.2rem;line-height:1;cursor:pointer}
 .student-presence{display:inline-flex;align-items:center;justify-content:center;width:.9rem;height:.9rem;margin-left:.4rem;vertical-align:middle;color:#71847f;font-size:.72rem;font-weight:500}.student-presence-dot{display:block;width:.5rem;height:.5rem;border-radius:50%;background:#a9b8b4}.student-presence.is-online .student-presence-dot{background:#42a878}.student-last-login{display:inline-block;margin-left:.35rem;color:#71847f;font-size:.68rem;font-weight:500;vertical-align:middle}
:root{--teacher-class-control-height:2.6rem}
.teacher-class-control{display:flex;align-items:center;gap:.35rem;min-height:var(--teacher-class-control-height);max-width:18rem;padding:.2rem .3rem;border:1px solid #c6d9d3;border-radius:9px;background:#fff;color:#55716d;font-size:.72rem;line-height:1;white-space:nowrap}.teacher-class-control button{min-height:2.1rem;padding:.4rem .55rem;font-size:.72rem}.teacher-class-control span{max-width:9rem;overflow:hidden;text-overflow:ellipsis}.teacher-class-control [hidden]{display:none}
.teacher-shared-snapshot,.shared-class-snapshot{margin:0 auto 1rem;padding:1rem;border:1px solid #c6d9d3;border-radius:14px;background:#fff;box-shadow:0 5px 14px #163d3a0d}.teacher-shared-snapshot-heading,.shared-class-snapshot-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.teacher-shared-snapshot h2,.shared-class-snapshot h2{margin:.15rem 0 0;color:#174b45;font-size:1.1rem}.teacher-shared-snapshot-editor{min-height:5rem;margin:.75rem 0;padding:.7rem;border:1px solid #c6d9d3;border-radius:9px;background:#f8fcfa;color:#174b45;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.teacher-shared-snapshot-editor:empty::before{content:attr(data-placeholder);color:#55716d}.teacher-shared-snapshot-actions{display:flex;justify-content:flex-end}.teacher-shared-snapshot-actions button{min-height:2.5rem;padding:.55rem .8rem;border:0;border-radius:9px;background:#236b61;color:#fff;font:inherit;font-weight:750}.shared-class-snapshot-content{margin-top:.75rem;padding:.8rem;border-top:1px solid #e3eeea;color:#174b45;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}.shared-class-snapshot-content.is-empty{color:#55716d;font-style:italic}
 .student-live-status{max-width:10rem;overflow:hidden;color:#f9d77e;font-size:.78rem;font-weight:750;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}
  .muted{color:#55716d;font-size:.8rem;font-weight:400}
.class-management .class-state{margin-top:.8rem}.class-state-card{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem;border:1px solid #b9d8ca;border-radius:10px;background:#f4fbf7}.class-state-card div{display:grid;gap:.2rem}.class-state-card strong{color:#174b45}.class-state-card span:last-child,.class-history span{color:#55716d;font-size:.85rem}.class-history{list-style:none;margin:.75rem 0 0;padding:0}.class-history li{display:flex;justify-content:space-between;gap:1rem;padding:.7rem .2rem;border-bottom:1px solid #e3eeea}.class-state-copy{color:#55716d}.manage-empty{color:#55716d}
  .teacher-board-carousel{margin:.35rem 0 .75rem}.teacher-board-carousel-item{display:flex;align-items:center;justify-content:space-between;gap:.35rem;padding:.35rem;min-width:8rem;height:auto}.teacher-board-select,.teacher-board-delete{border:0;background:transparent;color:#174b45;font:inherit;cursor:pointer}.teacher-board-select{font-weight:600}.teacher-board-delete{color:#a04b43;font-size:.7rem;padding:.2rem}.teacher-board-carousel-item[aria-current="true"]{border-color:#e2ae35;background:#fff8df}
/* Slice 1 multi-board: "+" tile lives inside the carousel (same tile size, no
   layout shift), the follow toggle stays discreet, and no carousel survives
   fullscreen on either panel. The carousel keeps its own scroll (never
   overflow:hidden here); fullscreen hides the element with display:none. */
.teacher-board-bar{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:.35rem 0 .75rem}.teacher-board-bar > .teacher-board-carousel{flex:1 1 auto;margin:0}.teacher-board-create-tile{align-items:center;justify-content:center;font-size:1.5rem;font-weight:800;color:#236b61;cursor:pointer}.teacher-board-create-tile[disabled]{opacity:.55;cursor:not-allowed}.teacher-follow-toggle{display:inline-flex;align-items:center;gap:.4rem;color:#55716d;font-size:.78rem;font-weight:600;white-space:nowrap}.teacher-follow-toggle input{width:auto;margin:0}
.student-board-carousel-item[aria-current="true"]{border-color:#e2ae35;background:#fff8df}.student-board-carousel-item[disabled]{opacity:.55;cursor:not-allowed}
/* T1 pizarra sticky (solo orden visual + sticky; arrays y follow intactos):
   docente [+ crear fijo izquierda | última sticky izquierda | resto →],
   alumno [última sticky izquierda | resto →]. El resto (0..length-2) usa
   orden visual inverso vía inline style.order = length-2-index
   (length-2 al lado de la sticky, 0 al final). La tira conserva su
   overflow-x:auto y no usa puntos de snap. */
.teacher-board-create-tile{order:-2;position:sticky;left:0;z-index:3;background:#fff;box-shadow:.6rem 0 0 #fff}
.teacher-board-carousel-item.is-latest-board:not([aria-current="true"]){order:-1;position:sticky;left:var(--teacher-sticky-left,calc(8rem + .6rem));z-index:2;background:#fff;border:1px dashed #cfddd8;box-shadow:.6rem 0 0 #fff}
.teacher-board-carousel-item.is-latest-board[aria-current="true"]{order:-1;position:sticky;left:var(--teacher-sticky-left,calc(8rem + .6rem));z-index:2;background:#fff8df;box-shadow:.6rem 0 0 #fff8df}
.student-board-carousel-item.is-latest-board{order:-1;position:sticky;left:0;z-index:2;background:#f8fcfa}
.student-board-carousel-item.is-latest-board[aria-current="true"]{background:#fff8df}
/* Fix docente gap + fondo + texto (LOCAL): --teacher-sticky-left acopla la
   última al crear (JS mide offsetWidth+gap; fallback un solo gap .6rem igual
   que alumno); box-shadow ocluye la rendija 1px; texto hereda oscuro legible. */
.test-board-carousel{color:#174b45}
.student-board-carousel-item{color:inherit}
.board-wall-shell:fullscreen .test-board-carousel,.board-wall-shell:-webkit-full-screen .test-board-carousel,.board-wall-shell.board-fullscreen-fallback .test-board-carousel{display:none}
:fullscreen #aula-board-carousel,:-webkit-full-screen #aula-board-carousel,.board-fullscreen-fallback #aula-board-carousel{display:none}
 .teacher-board-editor:empty::before{content:attr(data-placeholder);color:#8aa39d}.teacher-board-image-tools[contenteditable="false"],.teacher-board-image-tools[contenteditable="false"] *{user-select:none}

  .teacher-board-exercise-frame{margin:.65rem 0;padding:.75rem;border:1px solid #d8e7e2;border-radius:10px;background:#f7fbf9;color:#365e58}.teacher-board-exercise-frame ol{margin:.5rem 0;padding-left:1.5rem}.teacher-inline-exercise-form{margin:.65rem 0;padding:.75rem;border:1px solid #c6d9d3;border-radius:10px;background:#f8fcfa}.teacher-inline-exercise-form label{display:grid;gap:.3rem;margin:.45rem 0;color:#365e58;font-weight:650}.teacher-inline-exercise-form fieldset label{grid-template-columns:1fr auto auto;align-items:center}.teacher-inline-exercise-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.teacher-board-exercise-actions{display:flex;gap:.5rem;margin-top:.5rem}.teacher-board-exercise-frame button,.teacher-inline-exercise-form button{min-height:2.35rem;padding:.45rem .75rem}
  .teacher-inline-exercise-form{width:min(100%,38rem);gap:.5rem}.teacher-board-exercise-actions button,.teacher-inline-exercise-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:2.35rem;margin-top:.25rem;padding:.5rem .75rem}
 .board-exercise-card{width:100%;margin:.75rem 0;padding:1rem;border:1px solid #c6d9d3;border-radius:14px;background:#fff;color:#174b45;box-shadow:0 5px 12px #163d3a0d}.board-exercise-question{margin:0 0 .75rem;font-weight:750}.board-exercise-options{display:grid;gap:.45rem}.board-exercise-option{display:flex;align-items:center;gap:.55rem;margin:0;padding:.55rem .65rem;border:1px solid #d8e7e2;border-radius:9px;background:#f8fcfa;cursor:pointer;font-weight:500;transition:opacity .2s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}.board-exercise-option input{width:auto;margin:0;flex:none}.board-exercise-option.is-correct{border-color:#53b78c;background:#eefaf3;color:#176b49}.board-exercise-option.is-selected-correct{box-shadow:0 0 0 .2rem #53b78c33,0 8px 18px #53b78c2e;transform:translateY(-1px)}.board-exercise-option.is-wrong{border-color:#aeb8c2;background:#eef1f0;color:#55716d;text-decoration:line-through}.board-exercise-option.is-subdued{opacity:.48;filter:saturate(.55)}.board-exercise-option-letter{font-weight:800}
   .board-exercise-card{width:min(100%,42rem);max-width:calc(100% - 2rem);margin:clamp(.75rem,2vw,1.25rem) 0;padding:clamp(.8rem,2vw,1.1rem);overflow:hidden}.board-exercise-question{font-size:clamp(1rem,1.8vw,1.2rem);line-height:1.4}.board-exercise-option{min-width:0;min-height:2.75rem;padding:.6rem .7rem;line-height:1.35;overflow-wrap:anywhere}.board-exercise-option input{min-width:1.35rem;min-height:1.35rem}.board-exercise-option.is-correct{border-color:#53b78c;background:#eefaf3;color:#176b49;opacity:1;filter:none}.board-exercise-option.is-wrong{border-color:#aeb8c2;background:#eef1f0;color:#46534f;text-decoration:line-through;opacity:.52;filter:none}.board-exercise-option.is-wrong .board-exercise-option-letter{background:#d8dfdc;color:#46534f}.board-exercise-option.is-subdued:not(.is-wrong){opacity:.48;filter:saturate(.55);text-decoration:none}.board-exercise-option.is-correct.is-subdued{opacity:1;filter:none;text-decoration:none}@media(max-width:700px){.board-exercise-card{max-width:calc(100% - 1rem);margin:.65rem auto;padding:.75rem}.board-exercise-options{gap:.35rem}.board-exercise-option{min-height:2.9rem;padding:.6rem .65rem;font-size:clamp(.95rem,3.8vw,1.05rem)}}
/* References internal scroll (teacher + student): lists scroll, board/insertion never move. */
.teacher-references .references-list{max-height:clamp(14rem,40vh,28rem);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;min-height:0}.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > .references-zone .references-list{max-height:min(60vh,36rem);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;min-height:0}
/* Touch scroll chaining: on coarse pointers a vertical swipe past a nested scroller edge keeps travelling to the page instead of dying inside (desktop keeps contain so the wheel stays put). */
@media (pointer:coarse){.board-wall-shell > .references-zone,.teacher-references .references-list,.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > .references-zone .references-list,.teacher-board-editor,.teacher-board textarea,.student-extra-box,.teacher-extra-box{overscroll-behavior:auto}}
.teacher-board-theory-frame{position:relative;width:min(100%,48rem);max-width:100%;margin:.8rem 0 0}.teacher-board-theory-frame>.teacher-board-media-remove{position:absolute;top:.25rem;right:.25rem}
/* Touch: wall flows with the page (no nested scroller to trap swipes); only
   the board keeps its own scroller for follow/pill mechanics. */
@media (pointer:coarse){.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > .references-zone{max-height:none}.board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback) > .references-zone .references-list{max-height:none;overflow:visible}}
/* Tareas box below the wall (normal mode only): grows with assigned items. */
/* Coin box: compact teacher grant controls next to the student bar. */
.coin-panel{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;max-width:24rem;padding:.45rem .6rem;border:1px solid #c6d9d3;border-radius:10px;background:#fff8df;font-size:.8rem;color:#5f827b}.coin-panel[hidden]{display:none}.coin-panel strong{font-size:1rem;color:#8a5a00}#coin-amount{width:4.2rem;min-height:2.2rem;padding:.25rem .4rem;font-size:.8rem}.coin-panel button{min-height:2.2rem;padding:.25rem .5rem;font-size:.75rem}.coin-status{flex:1 1 100%;font-size:.72rem}
.coin-fly img{width:100%;height:100%;object-fit:contain;display:block}.coin-fly{position:fixed;left:0;top:0;z-index:200;width:34px;height:34px;display:grid;place-items:center;font-size:30px;line-height:1;pointer-events:none;will-change:transform,opacity;filter:drop-shadow(0 8px 14px rgba(29,43,40,.3))}
.student-coin-balance.is-receiving,.board-class-coin.is-receiving{animation:student-coin-receive .58s cubic-bezier(.3,1.5,.5,1)}
@keyframes student-coin-receive{0%{transform:scale(1)}35%{transform:scale(1.16);box-shadow:0 0 0 4px rgba(240,213,138,.5)}100%{transform:scale(1)}}
@media(max-width:700px){.teacher-student-bar{flex-wrap:wrap}.coin-panel{flex:1 1 100%;max-width:none}}
/* Block format renders identically for teacher and student (same classes). */
 .board-block-italic{font-style:italic}
  .board-block-underline{text-decoration:underline}
  .board-block-strike{text-decoration:line-through}
  .board-block-align-center{text-align:center}
  .board-block-align-right{text-align:right}
  .teacher-board-text-block.board-block-align-center,.teacher-board-text-block.board-block-align-right,.board-block-text.board-block-align-center,.board-block-text.board-block-align-right{width:max-content;max-width:100%;min-width:1ch;justify-self:start;margin-left:0;margin-right:auto;white-space:pre-wrap;box-sizing:border-box}
  .board-theory{display:grid;gap:.8rem;max-width:100%;min-width:0}.board-theory-title{text-align:center;justify-self:center}.board-theory-title,.board-theory-heading{margin:0}.board-theory-heading{line-height:1.2}.board-theory-paragraph{margin:0;white-space:pre-line;overflow-wrap:anywhere}.board-theory-bold{font-weight:800}.board-theory-italic{font-style:italic}.board-theory-list{margin:0;padding-left:1.5em;overflow-wrap:anywhere}.board-theory-list li+li{margin-top:.35rem}.board-theory-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.board-theory-table{width:100%;min-width:28rem;border-collapse:collapse;table-layout:fixed}.board-theory-table caption{padding:.45rem;text-align:left;font-weight:800}.board-theory-table th,.board-theory-table td{max-width:20rem;padding:.5rem;border:1px solid #c6d9d3;text-align:left;vertical-align:top;overflow-wrap:anywhere;white-space:pre-line}.board-theory-table th{background:#e4efeb;color:#174b45}.board-theory-color-rojo{color:#b3372f}.board-theory-color-azul{color:#1f5fa8}.board-theory-color-verde{color:#2e7d4f}.board-theory-color-dorado{color:#8a6d1a}.board-theory-color-morado{color:#6b3fa0}.board-theory-color-negro{color:#17202a}.board-theory-color-blanco{color:#fff}.board-theory-color-gris{color:#5d6872}.board-theory-color-rojo-background{background:#fff0ee}.board-theory-color-azul-background{background:#edf4ff}.board-theory-color-verde-background{background:#eef8f1}.board-theory-color-dorado-background{background:#fff8df}.board-theory-color-morado-background{background:#f5effc}.board-theory-color-negro-background{background:#edf0f2}.board-theory-color-blanco-background{background:#fff}.board-theory-color-gris-background{background:#eef1f3}
.board-block-color-rojo{color:#b3372f}.board-block-color-azul{color:#1f5fa8}.board-block-color-verde{color:#2e7d4f}.board-block-color-dorado{color:#8a6d1a}.board-block-color-morado{color:#6b3fa0}
.board-block-size-2{font-size:1.3em}.board-block-size-3{font-size:1.6em}
  .teacher-format-bar{position:relative;display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin-top:.8rem;padding:.45rem .55rem;border:1px solid #c6d9d3;border-radius:12px;background:#f5faf8}
  .teacher-format-group{display:inline-flex;align-items:center;gap:.2rem;padding:.2rem;border:1px solid #dcebe6;border-radius:9px;background:#fff}
  .teacher-format-bar>button,.teacher-format-group>button{min-height:2.5rem;min-width:2.5rem;padding:.3rem .5rem;border:1px solid transparent;border-radius:7px;background:transparent;color:#174b45;font-size:.95rem;font-weight:800;cursor:pointer}
  .teacher-format-bar>button:hover,.teacher-format-bar>button:focus-visible,.teacher-format-group>button:hover,.teacher-format-group>button:focus-visible{background:#eef5f3;outline:0;border-color:#a8c1bb}
  .teacher-format-bar>button[aria-pressed="true"],.teacher-format-group>button[aria-pressed="true"]{background:#174b45;border-color:#174b45;color:#fff}
  .teacher-format-colors button{min-width:1.7rem;min-height:1.7rem;padding:0;border-radius:50%}
  .teacher-format-colors button[aria-pressed="true"]{background:transparent;color:transparent;box-shadow:0 0 0 2px #fff,0 0 0 4px #174b45}
  .teacher-emoji-toggle{font-size:1.15rem}
  .teacher-emoji-panel{position:absolute;z-index:8;left:.35rem;right:.35rem;top:calc(100% + .35rem);padding:.4rem;border:1px solid #c6d9d3;border-radius:12px;background:#fff;box-shadow:0 10px 26px #163d3a26}
  .teacher-emoji-panel[hidden]{display:none}
  .teacher-emoji-search{margin-bottom:.3rem}
  .teacher-emoji-search input{width:100%;min-height:2.2rem;padding:.3rem .6rem;border:1px solid #c6d9d3;border-radius:8px;background:#f5faf8;color:#174b45;font-size:.85rem}
  .teacher-emoji-search input:focus-visible{outline:3px solid #f0bd43;outline-offset:2px}
  .teacher-emoji-empty{grid-column:1/-1;margin:0;padding:.6rem .3rem;color:#5d6872;font-size:.85rem;text-align:center}
  .teacher-emoji-tabs{display:flex;gap:.2rem;overflow-x:auto;padding-bottom:.3rem;border-bottom:1px solid #e0ece8;margin-bottom:.3rem;scrollbar-width:thin}
  .teacher-emoji-tabs[hidden]{display:none}
  .teacher-emoji-tab{flex:0 0 auto;min-height:2.3rem;min-width:2.3rem;padding:.2rem .3rem;border:1px solid transparent;border-radius:7px;background:transparent;font-size:1.05rem;cursor:pointer}
  .teacher-emoji-tab[aria-selected="true"]{background:#eef5f3;border-color:#a8c1bb}
  .teacher-emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(2.35rem,1fr));gap:.15rem;max-height:15rem;overflow-y:auto;padding:.15rem;overscroll-behavior:contain}
  .teacher-emoji-grid button{min-height:2.3rem;min-width:2.3rem;padding:0;border:0;border-radius:7px;background:transparent;font-size:1.25rem;line-height:1;cursor:pointer}
  .teacher-emoji-grid button:hover,.teacher-emoji-grid button:focus-visible{background:#eef5f3;outline:0}
.board-block-multiple-choice-compact{padding:0;border:0;border-radius:0;background:transparent}.board-block-multiple-choice-compact .board-question{margin:0 0 .45rem}.board-block-multiple-choice-compact .board-options{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem}.board-block-multiple-choice-compact .board-option{position:relative;width:fit-content;max-width:100%;display:flex;align-items:center;gap:.45rem;padding:.4rem .65rem;border:1px solid #c6d9d3;background:#fff;border-radius:999px;cursor:pointer}.board-block-multiple-choice-compact .board-option input{position:absolute;clip:rect(0 0 0 0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}.board-block-multiple-choice-compact .board-option:focus-within{outline:3px solid #f0bd43;outline-offset:2px}.board-block-multiple-choice-compact .board-option.is-correct{border-color:#2e7d4f;background:#eef8f1}.board-block-multiple-choice-compact .board-option.is-wrong{border-color:#b3372f;background:#fff1ef}
@media (min-width:901px){.board-wall-shell.board-fullscreen-fallback .board-options,.board-wall-shell:fullscreen .board-options{align-self:flex-start;width:max-content;max-width:min(100%,42rem)}.board-wall-shell.board-fullscreen-fallback .board-option,.board-wall-shell:fullscreen .board-option{width:max-content;max-width:min(100%,42rem);box-sizing:border-box}}

/* Plataformas crossnav (student pages) - biblioteca simple style */
.plat-crossnav{position:sticky;top:0;z-index:12;display:flex;align-items:center;gap:.45rem;min-height:2.75rem;background:#fff;border-bottom:1px solid #d8e2de;padding:.45rem .7rem;font-size:.82rem;white-space:nowrap}
.plat-crossnav a{color:#236b61;text-decoration:none;font-weight:600;min-height:2.75rem;display:inline-flex;align-items:center;padding:0 .2rem}
.plat-crossnav a:hover{text-decoration:underline}
.plat-crossnav a:focus-visible{outline:2px solid #236b61;outline-offset:2px;border-radius:6px}
.plat-crossnav .plat-current{color:#236b61;font-weight:600}
/* Compact account cluster inside the crossnav: coins pill + round avatar avatar with a session dropdown */
.plat-account{position:relative;margin-left:auto;display:flex;align-items:center;gap:.55rem}
.plat-account .student-coin-balance{min-height:2rem;padding:0 .5rem;font-size:.85rem}
.plat-avatar{width:2.45rem;height:2.45rem;border-radius:50%;border:2px solid #236b61;background:#e4efeb;color:#174b45;font:inherit;font-weight:800;font-size:1.05rem;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;line-height:1}
.plat-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.plat-avatar:focus-visible{outline:3px solid #f0bd43;outline-offset:2px}
.plat-menu{position:absolute;right:0;top:calc(100% + .45rem);z-index:14;min-width:10rem;padding:.35rem;background:#fff;border:1px solid #c9d8d5;border-radius:10px;box-shadow:0 12px 30px #102f3b38}
.plat-menu[hidden]{display:none}
.plat-menu button{width:100%;white-space:nowrap;background:transparent;color:#236b61;text-align:left;border:0;font:inherit;cursor:pointer;min-height:2.5rem;padding:.5rem .7rem;border-radius:7px}
.plat-menu button:hover{background:#eef5f3}@media(max-width:700px){.plat-account{gap:.3rem}.plat-account .student-coin-balance{padding:.25rem .45rem;font-size:.72rem}}

/* Fase 3A: referenced NODOS content modules (nodos-content board blocks).
   Auto-height card that renders its FULL content in ONE vertical flow: a
   narrow left-aligned reading column (flow start = natural left, never
   centered) so the card never stretches horizontally; NO internal scroll
   window. Table/heading/paragraph styles reuse the existing board-theory
   tokens. */
 .board-nodos-content{display:grid;grid-template-columns:minmax(0,1fr);gap:.7rem;align-content:start;width:min(100%,38rem);min-width:0;max-inline-size:100%;margin:.8rem 0;overflow-x:clip;padding:.9rem 1rem;border:1px solid var(--nodos-card-border,#94a3b8);border-left-width:var(--nodos-card-left,1px);border-radius:12px;background:var(--nodos-card-bg,#fff);font-size:1.02rem} .board-nodos-content-title{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;font-size:.8rem;color:#5f827b}
 .board-nodos-content-title strong{font-weight:700;color:#111827;font-size:1rem;overflow-wrap:anywhere}
 .board-nodos-content-heading{margin:0}
 .board-nodos-content-badge{padding:.2rem .55rem;border-radius:999px;background:#e8effd;color:#1d4ed8;font-weight:800;font-size:.72rem;white-space:nowrap}
 .board-nodos-content-status{margin:0;color:#374151;font-weight:600;overflow-wrap:anywhere}
 .board-nodos-content-missing{margin:0;color:#b3261e;font-weight:600}
 .board-nodos-content-meta{margin:0;font-size:.75rem;color:#374151;overflow-wrap:anywhere}
 .board-nodos-content>[data-nodos-state]{min-width:0;max-width:100%;border-top:1px dashed #94a3b8;padding-top:.5rem}
 .board-nodos-content-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .nodos-content-preview{display:grid;gap:.6rem;max-height:34vh;overflow-y:auto;padding:.6rem;border:1px solid #d8e7e2;border-radius:9px;background:#fff}
 .teacher-board-nodoscontent-frame{position:relative;display:block;min-width:0;width:min(100%,38rem);max-width:100%;margin:.8rem 0}
.teacher-board-nodoscontent-frame>.teacher-board-media-remove{position:absolute;top:.45rem;right:.45rem;width:1.8rem;height:1.8rem;padding:0;border:0;border-radius:50%;background:#174b45;color:#fff;font-size:1.2rem;line-height:1;cursor:pointer}
.board-nodos-content.is-nodos-preview{height:auto;max-height:none;margin:0}
/* STYLE-PARITY + LAYOUT CONTRACT (2026-10-28, nodosflow): NODOS.html
   .board-nodos-content card (student page and teacher frame emit the same
   card classes, so one scope covers both pizarra surfaces). Palette mirrors
   the NODOS.html final token layer exactly: --ink#111827 --muted#374151
   --line#94a3b8 --accent-soft#e8effd and the tc-render-* block (heading
   weight 800, caption .8rem muted, table borders --line, th accent-soft,
   dashed image note #c6d9d3). LAYOUT CONTRACT: the card renders its FULL
   content in ONE vertical flow — auto height everywhere, NO internal scroll
   window — inside a narrow left-aligned reading column
   (width:min(100%,38rem), no margin-inline:auto: flow start = natural left,
   so the card never stretches horizontally). COLOR LAYER (2026-10-28,
   nodoscolor-1): the remaining NODOS color deltas were the card's own chrome
   and feedback text, not the tc-render-* letters. NODOS always renders
   module blocks on a WHITE surface (student #detail, teacher .tc-preview bg
   #fff) with a #94a3b8 (--line) border on the module card, muted #374151
   status text (.tc-status), alert-missing #b3261e
   (.tc-status[role=alert]), and gives the dashed image note padding
   .35rem .5rem — so the pizarra card is #fff/#94a3b8 and both status lines
   match the NODOS page instead of the Aula palette. Scoped selectors override the
   generic .board-theory-* rules only inside this card; no animations, so no
   prefers-reduced-motion handling needed. */
  .board-nodos-content{color:var(--nodos-card-ink,#111827);line-height:1.5}
  /* PER-TYPE COLOR LAYER (2026-10-28, nodospalettes-1): NODOS colors its
     node-detail "Notas de clase" (.aula-note-*, NODOS.html CSS L269-278,
     emitter L2052-2060; analysis temp-vissiff/SECTION-COLOR-STUDY.md Part A)
     with a two-var card scheme: tinted background + 1px full border with a
     6px left rail, both in the same tonal border color, plus a tonal ink
     that tints headings/paragraph text; secondary text stays --muted
     #374151 (NODOS .aula-support-example uses var(--muted) too). The pizarra
     card keys the same hexes per MODULE type via the
     board-nodos-content-type-* modifier (emitted by nodos-content-render.js
     from the fetched module type): border/left-width/background come from
     --nodos-card-* with fallbacks to the previous white/#94a3b8 card, so
     unknown/missing types keep the base card byte-identical. The base card
     rule consumes the vars — no cascade fight: these custom props are only
     defined on the modifier classes themselves. */
  .board-nodos-content-type-theory{--nodos-card-bg:#fff4dc;--nodos-card-border:#e6c887;--nodos-card-ink:#5b4214;--nodos-card-left:6px}
  .board-nodos-content-type-structures{--nodos-card-bg:#eaf2ff;--nodos-card-border:#9db9e8;--nodos-card-ink:#1f3c69;--nodos-card-left:6px}
  .board-nodos-content-type-vocabulary{--nodos-card-bg:#fff8e8;--nodos-card-border:#e7c66e;--nodos-card-ink:#664b0d;--nodos-card-left:6px}
  .board-nodos-content-type-dialog{--nodos-card-bg:#f4ebff;--nodos-card-border:#c7a9e5;--nodos-card-ink:#4b2e68;--nodos-card-left:6px}
  .board-nodos-content .board-nodos-content-heading{margin:.3rem 0;font-weight:800;color:var(--nodos-card-ink,#111827);font-size:1em;line-height:1.3}
  .board-nodos-content .board-theory-paragraph{margin:.3rem 0}
  /* CASCADE FIX (2026-10-28, nodoscascade-1): the generic page rule
     .workspace-placeholder p (portal.css L23, specificity (0,1,1)) overrode
     the nodos card's (0,1,0) rules and tinted every card paragraph #6a8580
     with stray .5rem/1.25rem margins — visual diff rows 3/4/9/10
     (temp-vissiff VISUAL-DIVERGENCE-REPORT.md). The student card renders
     inside .workspace-placeholder, so the NODOS values are re-stated here at
     (0,3,0) under that real ancestor and win the cascade. */
  .workspace-placeholder .board-nodos-content .board-nodos-content-meta{margin:0;color:#374151}
  .workspace-placeholder .board-nodos-content .board-theory-paragraph{color:var(--nodos-card-ink,#111827);margin:.3rem 0}
  .workspace-placeholder .board-nodos-content .board-nodos-content-detail{color:#374151}
  .workspace-placeholder .board-nodos-content .board-nodos-content-title{margin:0}
  .workspace-placeholder .board-nodos-content .board-nodos-content-status{margin:0;color:#374151}
  .workspace-placeholder .board-nodos-content .board-nodos-content-missing{margin:0;color:#b3261e}
  .workspace-placeholder .board-nodos-content .board-nodos-content-image-note{font-weight:400;margin:0}
 /* NODOS tables size to the card (width:100%, auto layout, .4rem margins):
    no pizarra min-width/table-layout/fixed caps inside the card; the internal
    .board-nodos-content-table-scroll wrapper keeps any overflow scrolling
    inside the card, never at board level. */
 .board-nodos-content .board-theory-table{min-width:0;table-layout:auto;width:100%;margin:.4rem 0}
 .board-nodos-content .board-theory-table th,.board-nodos-content .board-theory-table td{border-color:#94a3b8;max-width:none;padding:.3rem .5rem}
 .board-nodos-content .board-theory-table th{background:#e8effd;color:#111827}
 .board-nodos-content .board-theory-table caption{font-size:.8rem;font-weight:400;color:#374151;padding:0 0 .25rem}
  .board-nodos-content .board-nodos-content-image-note{color:#374151;font-size:.82rem;border:1px dashed #c6d9d3;border-radius:7px;padding:.35rem .5rem}
  /* NO-TABLES (2026-10-28): seeded table blocks stack as NODOS prose rhythm —
     bold term line + plain detail lines below, one entry per row. No <table>,
     no borders, no background, no grid; long cells wrap (white-space:pre-line
     keeps the seeded line breaks). The wrapper inherits the card containment
     (min-width:0 / max-inline-size / overflow-x:clip), nothing scrolls sideways. */
  .board-nodos-content .board-nodos-content-lines{margin:.4rem 0;min-width:0;max-width:100%;overflow-x:clip}
  .board-nodos-content .board-nodos-content-table-title{margin:.3rem 0;font-weight:800;color:var(--nodos-card-ink,#111827);line-height:1.3;overflow-wrap:anywhere}
  .board-nodos-content .board-nodos-content-entry{margin:.45rem 0}
  .board-nodos-content .board-nodos-content-term{margin:0;font-weight:800;color:var(--nodos-card-ink,#111827);line-height:1.4;overflow-wrap:anywhere}
  .board-nodos-content .board-nodos-content-table-title strong,.board-nodos-content .board-nodos-content-term strong{overflow-wrap:anywhere;font-weight:800;color:var(--nodos-card-ink,#111827)}
  .board-nodos-content .board-nodos-content-detail{margin:.1rem 0 0;white-space:pre-line;overflow-wrap:anywhere}
  .board-nodos-content .board-nodos-content-entry-vocab .board-nodos-content-detail{color:#374151}
  /* CONTRACT RESTORATION (2026-10-28): the round-3 @supports fallback also
     flipped the SHARED shells (.board-wall-shell/.teacher-classroom-layout) to
     overflow-x:hidden — on engines without clip that turned a full-width shell
     into a touch-pannable scroll container whenever anything inside overflowed:
     the blank right-strip page pan the user filmed. Pre-3A these shells had NO
     overflow rule (nothing could overflow), so shared overflow is removed and
     the fallback is scoped to the nodos card subtree only. Inside the card the
     break-word chain + minmax(0,1fr) card track keep content at zero horizontal
     scrollable overflow, so no container activates at all; a residual overflow
     on old engines pans inside one small card, never the page. */
@supports not (overflow-x:clip){
 .board-nodos-content{overflow-x:hidden}
 .board-nodos-content .board-nodos-content-lines{overflow-x:hidden}
}
/* break-word fallback next to anywhere: overflow-wrap:anywhere is Safari 14.1+;
   break-word has shipped everywhere since Safari 5.1 and never widens the
   min-content contribution past the clamped grid tracks. Harmless duplicate on
   modern engines (anywhere > break-word in breaking strength). */
.board-nodos-content,.board-nodos-content .board-nodos-content-lines,.board-nodos-content .board-nodos-content-heading,.board-nodos-content .board-theory-paragraph,.board-nodos-content .board-nodos-content-table-title,.board-nodos-content .board-nodos-content-term,.board-nodos-content .board-nodos-content-detail,.board-nodos-content .board-nodos-content-status,.board-nodos-content .board-nodos-content-meta,.board-nodos-content .board-nodos-content-title strong{overflow-wrap:break-word;word-break:break-word}
/* Badge/meta nowrap guard: the real seeded badge text is a short type label,
   but any nowrap line must never widen the card line. */
.board-nodos-content-badge{max-inline-size:100%;overflow:hidden;text-overflow:ellipsis}
/* NODOS SANDBOX (2026-10-28, differential geometry contract): pizarra 3 (no
   nods) and pizarra 4 (with nods) must produce IDENTICAL page-level geometry —
   the card is the ONLY allowed divergence surface, so its boundary is locked:
   contain:layout+paint+style (locked sandbox) makes the card opaque to layout,
   paint and style containment, so descendants can never paint a pixel outside
   the card's clip edge and never leak layout state out. min-width:0 +
   max-inline-size:100% re-assert the item-level clamps at the card node;
   overflow-x:hidden (instead of the base overflow-x:clip) is chosen because
   hidden ships on EVERY engine including old WebKit. The nodosflow refactor
   (2026-10-28) also removed the card's internal overflow-y scroll window, so
   the old clip+scroll-container coercion path (clip->visible when a scroll
   container was present) no longer exists; hidden stays as the everywhere-
   shipped bound. All declarations here are nodos-scoped; the
   pre-3A shared board/layout rules stay byte-identical. Engine fallback:
   engines without contain support ignore the containment declarations and
   keep running the older rules — the card's own overflow-x:hidden +
   max-inline-size:100% + minmax(0,1fr) track still bound
   every overflow to the card box (graceful degradation to, at worst, a pan
   INSIDE one small card, never the page). */
.board-nodos-content{contain:layout paint style;min-width:0;max-inline-size:100%;overflow-x:hidden}
/* min-content emitters inside the sandbox emit their longest unbreakable
   token as a min-content contribution; the sandbox absorbs it, but the
   emitters still break at origin so the card never even needs a horizontal
   pan. The flex title and the h4 min-widths are the only not-yet-clamped
   nodos emitters found by the audit (title strong/table-title/term/detail/
   paragraph/status/meta already carry overflow-wrap:anywhere; the badge
   carries nowrap+ellipsis). Nodos-scoped only. */
.board-nodos-content .board-nodos-content-title{min-width:0;max-width:100%}
.board-nodos-content .board-nodos-content-heading{overflow-wrap:anywhere}
.board-nodos-content .board-nodos-content-meta{min-width:0}
/* CONTRACT RESTORATION (2026-10-28): the round-3 chain clamp touched 16
   shared board/layout selectors (.teacher-page … .teacher-board-editor) just
   to hold the nodos card — shared layout bytes must stay pre-3A. Containment
   now lives entirely INSIDE the nodos subtree: the card's own minmax(0,1fr)
   grid track + min-width:0 + the break-word fallback chain below mean no
   matter what the module contains, the card cannot demand width from any
   shared ancestor. (Kept-equivalent, nodos-scoped: .teacher-board-
   nodoscontent-frame{min-width:0;max-width:100%} already covers the frame.) */
/* Fase 3B: mini-mapa LOCAL under the tasks section (teacher + student).
   Subtle zone consistent with the stylesheet: no frames everywhere, no float
   layers, native <details> collapse (same pattern as reference-sections). */
.nodos-minimap-zone{min-width:0;max-width:64rem;max-inline-size:100%;overflow-x:hidden;overflow-y:visible}
.nodos-minimap{margin:0;border:1px solid #e3eeea;border-radius:12px;background:#fbfdfc;padding:.5rem .75rem}
.nodos-minimap-summary{display:flex;align-items:center;min-height:2.6rem;cursor:pointer;list-style-position:inside;color:#236b61;font-weight:800;font-size:.8rem}
.nodos-minimap[open] .nodos-minimap-summary{margin-bottom:.3rem;border-bottom:1px solid #e3eeea}
.nodos-minimap-list{list-style:none;margin:0;padding:0;display:grid;gap:.2rem}
.nodos-minimap-entry{display:flex;align-items:center;gap:.45rem;width:100%;min-height:2.6rem;padding:.35rem .55rem;border:1px solid transparent;border-radius:8px;background:transparent;color:#163d3a;font:inherit;font-size:.85rem;text-align:left;cursor:pointer}
.nodos-minimap-entry:hover{border-color:#c6d9d3;background:#f2f9f6}
.nodos-minimap-entry:focus-visible{outline:3px solid #f0bd43;outline-offset:2px}
.nodos-minimap-badge{flex:none;padding:.15rem .5rem;border-radius:999px;background:#e4efeb;color:#174b45;font-weight:750;font-size:.72rem}
.nodos-minimap-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nodos-minimap-pos{flex:none;color:#5f827b;font-size:.72rem;font-weight:700}
/* MINIMAP SANDBOX (2026-10-28, differential geometry contract): the Fase-3B
   minimap zone is a grid item of the SHARED .classroom-main track. The
   differential sweep proved the filmed pizarra strip: with nods content on
   the board, the zone's content min-content inflated the shared track to
   448.25px — wall/board/whole page got wider (the right strip, reappearing
   at zoom-out widths). The nowrap entry title alone carried a 344px
   intrinsic line that propagated through details/ul/li because min-width:0
   floors an item but never shrinks the track's intrinsic proposal; the
   canonical clamp is a minmax(0,1fr) track at the list (same pattern as the
   nodos card), plus min-width:0 on details/summary/entry so their auto
   minimum can never demand width from shared ancestors. Titles keep the
   original nowrap+ellipsis inside the clamped track. Nodos scope only;
   shared pizarra rules untouched. */
.nodos-minimap{min-width:0;max-inline-size:100%}
.nodos-minimap-summary{min-width:0;max-inline-size:100%}
.nodos-minimap-list{min-width:0;max-inline-size:100%;grid-template-columns:minmax(0,1fr)}
.nodos-minimap-entry{min-width:0;max-inline-size:100%}
/* Brief highlight of the scrolled-to block: the same #f0bd43 outline the
   stylesheet uses for focus rings, removed after 1s by the page script. */
.nodos-map-flash{outline:3px solid #f0bd43;outline-offset:2px}

/* Aula workspace shell: full-width classroom pages with one compact title bar.
   Other portal/manage pages and board content formats retain their own rules. */
.aula-classroom-page .digital-shell{padding:0}
.aula-classroom-page .digital-workspace{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:clamp(.5rem,1vw,1rem)}
.aula-classroom-page .aula-topbar{position:sticky;top:0;z-index:12;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;box-sizing:border-box;min-height:3.5rem;max-width:none;width:100%;gap:.5rem;margin:0;padding:.3rem .75rem;background:#fff;border-bottom:1px solid #d8e2de}
.aula-topbar-links{grid-column:1;grid-row:1;display:flex;align-items:center;gap:.45rem;min-width:0;justify-self:start}
.aula-topbar-title{grid-column:2;grid-row:1;justify-self:center;min-width:0;text-align:center;white-space:nowrap}
.aula-topbar-title h1{margin:0;font-size:clamp(.9rem,1.4vw,1.15rem);line-height:1.2;letter-spacing:-.02em;color:#174b45}
.aula-topbar .plat-account,.aula-topbar .digital-account{grid-column:3;grid-row:1;justify-self:end;min-width:0;margin:0}
.aula-topbar .digital-account>span{max-width:min(13rem,16vw)}
.aula-topbar .digital-back{grid-column:1;grid-row:1;display:flex;align-items:center;gap:.3rem;justify-self:start;min-width:0;white-space:nowrap;font-size:.85rem}
.aula-topbar .digital-back a{color:#236b61;text-decoration:none}
.aula-topbar .digital-back a:focus-visible{outline:2px solid #236b61;outline-offset:2px}
.aula-classroom-page #summary:empty{display:none}
@media(max-width:600px){
 .aula-classroom-page .aula-topbar{gap:.25rem;padding:.25rem .4rem}
 .aula-topbar-links{gap:.3rem;font-size:.72rem}
 .aula-topbar-links .plat-current{display:none}
 .aula-topbar-links a{font-size:.72rem;padding:0}
 .aula-topbar .plat-account{gap:.3rem}
 .aula-topbar .plat-avatar{width:2rem;height:2rem;font-size:.85rem}
 .aula-topbar .student-coin-balance{min-height:2rem;padding:0 .5rem;font-size:.85rem}
 .aula-topbar .digital-back{font-size:.72rem;gap:.2rem}
 .aula-topbar .digital-account-toggle{padding:.4rem .45rem;font-size:.72rem}
}
@media(min-width:901px){
 .aula-classroom-page .board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback){--board-wall-height:clamp(18rem,calc(100dvh - 16rem),80rem);grid-template-columns:minmax(0,1fr) clamp(18rem,25vw,25rem);gap:.75rem}
 .aula-classroom-page .board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback):has(> #student-board-carousel:empty){row-gap:0}
 .aula-classroom-page .teacher-student-bar{align-items:center;flex-wrap:wrap;gap:.65rem;margin:0 0 .5rem;padding:.5rem .75rem}
 .aula-classroom-page .teacher-student-bar>div:first-child{flex:1 1 12rem;min-width:0}
 .aula-classroom-page .teacher-student-bar h2{font-size:clamp(1rem,1.6vw,1.25rem)}
 .aula-classroom-page .teacher-student-bar .eyebrow{margin:0;font-size:.65rem}
 .aula-classroom-page .teacher-student-bar select{min-height:2.25rem;margin-top:.15rem;padding:.45rem .55rem}
 .aula-classroom-page .teacher-student-bar label:not(.sr-only){width:clamp(10rem,18vw,18rem)}
 .aula-classroom-page .teacher-board-bar{gap:.6rem;margin:.35rem 0 .5rem}
 .aula-classroom-page .teacher-board-carousel-item{min-width:6rem;padding:.2rem}
 .aula-classroom-page .teacher-board-select{min-height:2.25rem;padding:.35rem .5rem;font-size:.8rem}
 .aula-classroom-page #summary{margin:.25rem 0;padding:0;font-size:.75rem}
 .aula-classroom-page .teacher-classroom-layout{grid-template-columns:minmax(0,1fr) clamp(18rem,25vw,25rem);grid-template-rows:12rem clamp(18rem,calc(100dvh - 28rem),68rem);gap:.75rem;align-items:stretch}
 .aula-classroom-page .teacher-board-insertion{min-height:0;padding:.5rem .75rem;overflow:auto}
 .aula-classroom-page .teacher-board-insertion-heading{align-items:center;gap:.5rem}
 .aula-classroom-page .teacher-board-insertion-heading h2{font-size:.9rem;margin:0}
 .aula-classroom-page .teacher-board-insertion-heading .eyebrow{margin:0;font-size:.65rem}
 .aula-classroom-page .teacher-board-insertion-sections{grid-template-columns:minmax(0,2fr) minmax(12rem,1fr);gap:.5rem;margin-top:.5rem}
 .aula-classroom-page .teacher-board-insertion-section{padding:.5rem}
 .aula-classroom-page .teacher-board-insertion-section:first-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem}
 .aula-classroom-page .teacher-board-insertion-section:first-child>.teacher-board-insertion-label,.aula-classroom-page .teacher-board-media-buttons{grid-column:1/-1}
 .aula-classroom-page .teacher-board-media-buttons{gap:.35rem;margin:0}
 .aula-classroom-page .teacher-board-media-button{min-height:2.25rem;padding:.35rem .45rem;font-size:.75rem}
 .aula-classroom-page .teacher-board-insertion-placeholder{margin:.35rem 0 0;font-size:.78rem}
 .aula-classroom-page .teacher-board{height:100%;min-height:0;max-height:100%;padding:.75rem}
 .aula-classroom-page .teacher-board-inner>.eyebrow{margin:0;font-size:.7rem}
   .aula-classroom-page .teacher-format-bar{gap:.3rem;margin-top:.4rem;padding:.25rem .35rem}
  @media(max-width:640px){
    .teacher-format-bar{gap:.3rem;padding:.35rem}
    .teacher-format-group{padding:.12rem;gap:.12rem}
    .teacher-format-bar>button,.teacher-format-group>button{min-height:2.2rem;min-width:2.2rem;padding:.2rem .35rem}
    .teacher-emoji-panel{left:.2rem;right:.2rem}
    .teacher-emoji-grid{max-height:12rem;grid-template-columns:repeat(auto-fill,minmax(2.5rem,1fr))}
  }
 .aula-classroom-page .teacher-board-actions{min-height:2.75rem;margin-top:.4rem;padding-top:.4rem}
 .aula-classroom-page .teacher-board .workspace-badge{margin:.35rem 0 0;font-size:.7rem}
 .aula-classroom-page .teacher-references{display:flex;flex-direction:column;height:100%;min-height:0;max-height:none;overflow:hidden}
 .aula-classroom-page .teacher-references .references-list{flex:1;min-height:0;max-height:none;grid-auto-rows:max-content;align-content:start;overflow-y:auto;overflow-x:hidden}
 .aula-classroom-page .student-extra-box,.aula-classroom-page .teacher-extra-box{min-height:0;margin-top:.75rem;padding:.65rem .85rem;border-radius:14px}
 .aula-classroom-page .student-extra-box>.references-empty,.aula-classroom-page .teacher-extra-box>.references-empty{margin:.3rem 0 0}
}
@media(min-width:901px) and (pointer:fine){
 .aula-classroom-page .board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback)>.references-zone{display:flex;flex-direction:column;overflow:hidden}
 .aula-classroom-page .board-wall-shell:not(:fullscreen):not(.board-fullscreen-fallback)>.references-zone .references-list{flex:1;min-height:0;max-height:none;grid-auto-rows:max-content;align-content:start;overflow-y:auto;overflow-x:hidden}
}
@media(min-width:901px) and (max-width:1100px){
 .aula-classroom-page .teacher-classroom-layout{grid-template-rows:12rem clamp(18rem,calc(100dvh - 30rem),68rem)}
}
@media(min-width:1281px){
 .teacher-board-editor{font-size:clamp(1.45rem,0.32vw + 1.15rem,1.75rem)}
 .teacher-board-text-block .teacher-board-inline-text[data-placeholder="Título"]{font-size:clamp(1.65rem,0.3vw + 1.29rem,1.9rem)}
 .teacher-board-text-block .teacher-board-inline-text[data-placeholder="Subtítulo"]{font-size:clamp(1.3rem,0.3vw + 1.02rem,1.55rem)}
}
