.teacher-room{max-width:1200px;margin:auto;padding:clamp(12px,3vw,32px);color:var(--color-texto-principal,#202020)}
.inbox-tabs,.inbox-filters,.inbox-pagination{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0;align-items:end}
.inbox-tabs [aria-pressed=true],.inbox-list [aria-pressed=true]{outline:3px solid #398656;outline-offset:1px}
.inbox-workspace{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:24px}
.inbox-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.inbox-list button{display:grid;gap:7px;width:100%;padding:16px;text-align:left;border:1px solid #cdd5d0;border-radius:12px;background:var(--color-superficie,#fff);color:inherit;cursor:pointer;overflow-wrap:anywhere}
.teacher-room label{display:grid;gap:6px;margin:12px 0;font-weight:600}
.teacher-room select,.teacher-room textarea{font:inherit;padding:10px;border:1px solid #aab8af;border-radius:8px;background:var(--color-superficie,#fff);color:inherit;width:100%;box-sizing:border-box}
.teacher-room textarea{min-height:100px;resize:vertical}
.teacher-room fieldset,.inbox-compose,.inbox-student-item,.inbox-session{padding:16px;border:1px solid #cdd5d0;border-radius:12px;margin:18px 0;min-width:0}
.inbox-workspace article{min-width:0}.inbox-details{margin:8px 0}.inbox-details dt{font-weight:700}.inbox-details dd{margin:0 0 10px 12px}.inbox-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}
.inbox-entry{border-left:2px solid #cad9cd;padding-left:10px;margin:12px 0}.inbox-student-item summary{cursor:pointer;padding:6px}.teacher-room [role=alert]{color:#a12626}.teacher-room [role=status]{padding:10px;background:#edf5ee;border-radius:8px;color:#225d35}
.teacher-room button:disabled{opacity:.55;cursor:default}.inbox-pagination button{padding:10px 20px;min-height:44px;border:1px solid #9ba9a0;border-radius:8px}
@media(max-width:720px){.inbox-workspace{grid-template-columns:1fr}.inbox-tabs button{flex:1 1 140px}.inbox-list{max-height:330px;overflow:auto}}
.ac-page-navigation .ac-next-page{background:#dfff55;color:#172500;border:2px solid #dfff55;box-shadow:0 0 0 3px #dfff5530;font-weight:900;font-size:1.05rem;padding:12px 22px;min-height:48px}
.ac-page-navigation .ac-next-page:focus-visible{outline:3px solid white;outline-offset:3px}.ac-page-navigation .ac-next-page:disabled{background:#324432;color:#cad5c7;border-color:#64745e;box-shadow:none;opacity:.65}.ac-continuation{font-weight:700;color:#e2fa9a;text-align:center;margin:10px 0 18px}

.teacher-denied{padding:28px;border:2px solid #b04444;border-radius:14px;background:#fff0f0;color:#842323;font-size:1.35rem;font-weight:800;text-align:center;margin:24px 0}.teacher-current{padding:16px;background:#edf5ee;border-left:4px solid #398656;border-radius:10px;margin-bottom:16px}.teacher-current p{margin-top:0}.teacher-current h3{margin-bottom:0}
.teacher-studio{--ink:#e9f1fa;--muted:#adc0d1;--panel:#172536;max-width:1440px;color:var(--ink);background:#101b29;border-radius:24px;margin:12px auto;padding:clamp(16px,3vw,32px)}.teacher-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border-radius:20px;background:radial-gradient(ellipse at right top,#514a8877,transparent 70%),linear-gradient(120deg,#173d45,#202d49);border:1px solid #a3e4d224}.teacher-hero h2{font-size:clamp(1.8rem,4vw,2.7rem);margin:10px 0;color:#fff}.teacher-hero p{color:#cedde5;margin-bottom:0}.teacher-eyebrow{font-size:.72rem;letter-spacing:.16em;font-weight:800;color:#99ead3}.teacher-privacy-note{color:#b7d7cd;font-size:.8rem;line-height:1.6;flex-shrink:0}.teacher-studio .inbox-tabs{gap:10px;margin:24px 0}.teacher-studio .inbox-tabs button{display:flex;gap:10px;align-items:center;background:#1b2b3e;color:#ccd9e8;border:1px solid #334258;border-radius:14px;padding:14px 18px}.teacher-studio .inbox-tabs [aria-pressed=true]{background:#a1f0d3;color:#123b36;border-color:#a1f0d3;outline:none;box-shadow:0 5px 20px #a1f0d31a}.teacher-studio .inbox-filters{padding:0 0 20px;border-bottom:1px solid #ffffff14}.teacher-studio .inbox-filters label{flex:1 1 180px;font-size:.8rem;color:var(--muted);margin:0}.teacher-studio input,.teacher-studio select,.teacher-studio textarea{background:#0f1b2a!important;border:1px solid #43536a!important;color:var(--ink)!important;border-radius:12px!important;box-sizing:border-box;max-width:100%;padding:12px;font:inherit}.teacher-studio :is(input,textarea,select,button):focus-visible{outline:3px solid #94dfd0;outline-offset:3px}.teacher-studio .inbox-workspace{grid-template-columns:minmax(220px,.85fr) minmax(0,1.7fr);gap:24px;align-items:start}.teacher-studio .inbox-list button{background:var(--panel);color:var(--ink);border:1px solid #344459;border-radius:16px;padding:18px;transition:border-color .15s,background .15s}.teacher-studio .inbox-list button:hover{background:#1d3044}.teacher-studio .inbox-list [aria-pressed=true]{outline:none;border:2px solid #9ce6d0;background:#203a45}.teacher-type{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:#a6c4ff;font-weight:800}.teacher-status{font-size:.75rem;padding:7px 10px;border-radius:30px;width:fit-content}.teacher-status.is-pending{color:#ffdd9b;background:#57432388}.teacher-status.is-done{color:#a3f3d5;background:#224b3d}.teacher-hint{font-size:.8rem;line-height:1.6;color:var(--muted)}.teacher-review{background:var(--panel);padding:clamp(14px,2vw,26px);border:1px solid #344459;border-radius:20px}.teacher-studio .teacher-current{background:none;border:0;padding:0 0 20px;border-bottom:1px solid #ffffff16;border-radius:0}.teacher-current h3{line-height:1.5;color:#fff}.teacher-current>p{margin-top:12px}.teacher-profile{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.teacher-profile span{font-size:.78rem;border-radius:20px;background:#25374b;padding:6px 10px;color:#e1eafa}.teacher-profile small{width:100%;color:#adc0d1}.teacher-score{display:flex;align-items:center;gap:20px;background:#263d4480;padding:16px;border-radius:16px;margin:20px 0}.teacher-score label{max-width:180px;margin:0}.teacher-score input{font-size:1.8rem;font-weight:800;width:100%}.teacher-score p{font-size:.8rem;color:#b1c6cf}.teacher-question-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:20px 0 8px}.teacher-question-nav strong{margin-right:auto;font-size:.85rem}.teacher-question-nav button,.teacher-studio .inbox-pagination button{background:#26394e;color:#eaf2fa;border:1px solid #47607a;border-radius:10px;padding:10px;cursor:pointer}.teacher-question fieldset{border:0;padding:0;margin:12px 0}.teacher-question legend{font-size:.8rem;color:#adc0d1}.teacher-answer{background:#0f1b2a;padding:18px;border-radius:12px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.teacher-answer span{font-size:.66rem;letter-spacing:.1em;color:#8bb8cd;font-weight:800}.teacher-answer p{line-height:1.6}.teacher-studio textarea{min-height:110px}.teacher-original{margin:20px 0}.teacher-studio summary{cursor:pointer;color:#aecbf1;padding:8px 0}.teacher-save{position:sticky;bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#122938f5;border:1px solid #49726b;padding:16px;border-radius:14px;margin-top:24px;box-shadow:0 8px 28px #0004;z-index:2}.teacher-save span{font-size:.75rem;color:#b7cbd4}.teacher-save .btn{background:#a1f0d3;color:#10382d;border:0;font-weight:800;white-space:normal}.teacher-empty{padding:35px 16px;text-align:center;color:var(--muted);line-height:1.6}.teacher-empty>span{font-size:3rem;color:#a1f0d3}.teacher-empty h3{color:#e5edf8}.teacher-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}.teacher-profile-grid article{background:var(--panel);border:1px solid #344459;border-radius:18px;padding:20px}.teacher-studio [role=alert]{color:#ffc2b5;background:#563039;padding:14px;border-radius:12px}.teacher-studio [role=status]{background:#23473d;color:#b4f1d8}.teacher-studio .inbox-list small{color:#adc0d1}
@media(max-width:760px){.teacher-hero{display:block}.teacher-privacy-note{margin-top:16px}.teacher-studio .inbox-workspace{grid-template-columns:1fr}.teacher-studio .inbox-list{max-height:340px;overflow:auto}.teacher-save{flex-wrap:wrap}.teacher-save .btn{width:100%}.teacher-score{gap:12px}.teacher-score label{max-width:145px}.teacher-studio .inbox-tabs button{flex:1 1 40%;font-size:.85rem}}

.teacher-save.is-saved{position:static;box-shadow:none}.teacher-studio .inbox-filters>button{background:#26394e;color:#eaf2fa;border:1px solid #47607a;border-radius:12px;padding:12px 18px;cursor:pointer}
/* Local authoring panels reuse the existing room styles. */
.teacher-authoring { min-width: 0; }
.teacher-authoring article, .teacher-authoring fieldset { min-width: 0; overflow-wrap: anywhere; }
.teacher-authoring input:not([type="checkbox"]):not([type="radio"]),
.teacher-authoring textarea, .teacher-authoring select { max-width: 100%; box-sizing: border-box; }
.teacher-authoring .inbox-compose input[type="radio"],
.teacher-authoring .inbox-compose input[type="checkbox"] { width: auto; }

/* Readable exercise previews, shared by the maker and catalog. */
.exercise-authoring-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);gap:24px;align-items:start}
.exercise-authoring-workspace>.inbox-compose{margin-top:0}
.exercise-authoring-preview{position:sticky;top:20px;min-width:0;max-height:calc(100vh - 40px);overflow:auto}
.teacher-authoring .exercise-preview{background:#f8fafc;color:#172c3c;border:1px solid #bdcddd;border-radius:18px;padding:clamp(16px,2vw,24px);margin:12px 0;box-shadow:0 6px 20px #0000000a;line-height:1.6}
.exercise-preview-heading{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;font-size:.85rem;color:#40576a}
.exercise-preview-heading>span{background:#e5edf5;padding:4px 10px;border-radius:20px;font-size:.75rem}
.teacher-authoring .exercise-preview h4{color:#172c3c;margin:16px 0}
.exercise-preview-media{background:#e7edf2;border-radius:12px;overflow:hidden;margin:16px 0;text-align:center}
.exercise-preview-media img,.exercise-preview-media video{display:block;width:100%;max-height:320px;object-fit:contain;margin:auto}
.exercise-preview-question{font-size:1.15rem;font-weight:700;white-space:pre-wrap;overflow-wrap:anywhere;margin:20px 0}
.exercise-preview-options{display:grid;gap:10px;list-style:none;padding:0;margin:16px 0}
.exercise-preview-options li{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#fff;border:1px solid #bac8d5;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.exercise-preview-options li>span:not(.exercise-option-number){flex:1;min-width:0}
.exercise-preview-options li.is-correct{background:#dcfce7;border:2px solid #168342;color:#14532d;box-shadow:0 0 0 2px #16834212}
.exercise-option-number{display:grid;place-items:center;flex-shrink:0;min-width:28px;height:28px;background:#e8eef3;border-radius:50%;font-size:.85rem;font-weight:700}
.is-correct .exercise-option-number{background:#b6ebc8;color:#14532d}
.exercise-correct-label{font-size:.75rem;flex-shrink:0;color:#14532d}
.exercise-preview .is-placeholder,.exercise-preview>small{color:#52697c}
.exercise-preview.is-compact{max-width:720px;box-shadow:none}
.exercise-preview.is-compact .exercise-preview-media{max-width:420px}
.exercise-preview.is-compact .exercise-preview-media img,.exercise-preview.is-compact .exercise-preview-media video{max-height:220px}
@media(max-width:900px){.exercise-authoring-workspace{grid-template-columns:1fr}.exercise-authoring-preview{position:static;max-height:none;grid-row:1}.exercise-preview-options li{flex-wrap:wrap}.exercise-correct-label{margin-left:auto}}
.teacher-authoring{font-family:system-ui,sans-serif}
.teacher-authoring label{display:grid;gap:8px;margin:14px 0;font-weight:600}
.teacher-authoring button{min-height:44px;padding:10px 16px;margin:4px;border-radius:10px;cursor:pointer;font:inherit;white-space:normal}
.teacher-authoring input:not([type=checkbox]):not([type=radio]),.teacher-authoring select,.teacher-authoring textarea{width:100%;min-height:44px;font:inherit;padding:10px;border:1px solid #94a3b8;border-radius:8px}
.teacher-authoring textarea{min-height:110px}
.teacher-authoring input:is([type=radio],[type=checkbox]){min-width:22px;min-height:22px;accent-color:#168342}
.teacher-authoring :is(button,input,select,textarea):focus-visible{outline:3px solid #168342;outline-offset:3px}
.authoring-workflow-hint{padding:12px;border-left:3px solid #398656;line-height:1.6}
.teacher-authoring article:not(.exercise-preview){padding:16px;margin:16px 0;border:1px solid #94a3b8;border-radius:14px}
@media(max-width:600px){.teacher-authoring .inbox-tabs{gap:6px}.teacher-authoring .inbox-tabs button{flex:1 1 135px;margin:0}.exercise-preview-question{font-size:1.05rem}.teacher-authoring .inbox-compose{padding:10px}.teacher-authoring .exercise-preview{padding:14px}}
.exercise-material-links{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.exercise-material-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;padding:10px 16px;border-radius:10px;background:#dcfce7;color:#14532d;border:1px solid #168342;font-weight:700;text-decoration:none;line-height:1.4}
.exercise-material-links a:hover{background:#b6ebc8}
.exercise-material-links a:focus-visible{outline:3px solid #168342;outline-offset:3px}
@media(max-width:600px){.exercise-material-links a{flex:1 1 160px}}

.sd-made-card{position:relative;height:100%;max-width:100%;aspect-ratio:9/16;margin:auto}.sd-made-card>img{display:block;width:100%;height:100%;object-fit:fill}.sd-hotspot{position:absolute;background:transparent!important;border:0!important;cursor:pointer;border-radius:14px}.sd-hotspot:focus-visible,.sd-hotspot:hover{outline:3px solid #ffd548;background:#ffffff25!important}.teacher-authoring .exercise-preview-media img{max-height:650px;object-fit:contain}.teacher-authoring fieldset{min-width:0}
