/* Espacio de aprendizaje aislado de calificaciones y configuración. */
.rd-environment-picker { min-width:145px; margin:0; font-size:.8rem; }
.rd-environment-picker select { border:1px solid var(--line); color:var(--primary,#123b60); background:var(--card); border-radius:9px; padding:9px 12px; font-weight:650; }
.rd-environment-picker .select-trigger { background:var(--color-primary-soft); color:var(--primary,#123b60); border-color:var(--line); }
[data-environment=aula] .sidebar-bottom>a { display:none; }
[data-environment=aula] .sidebar nav>a { margin:5px 0; }
[data-environment=aula] .route-view>.breadcrumbs { display:none; }
[data-environment=aula] .institution-heading { min-width:120px; }
.rd-classroom,.rd-classroom-dialog { --classroom-accent:var(--primary); --classroom-ink:var(--ink); --classroom-muted:var(--muted); --classroom-line:var(--line); --classroom-soft:color-mix(in srgb,var(--classroom-accent) 9%,var(--card)); }
.rd-classroom { color:var(--classroom-ink); width:100%; min-width:0; max-width:1600px; margin:0 auto; }
.rd-classroom h1 { line-height:1.25; }
.rd-classroom h2 { font-size:1.05rem; line-height:1.4; margin:0 0 8px; }
.rd-classroom h3 { font-size:1rem; }
.rd-classroom p { color:var(--classroom-muted); margin:6px 0 10px; }
.rd-classroom small { color:var(--classroom-muted); }
.rd-classroom [hidden],.rd-classroom-dialog [hidden] { display:none!important; }
.rd-classroom button,.rd-classroom select,.rd-classroom input { font:inherit; }
.rd-classroom-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.rd-classroom-heading p { margin-bottom:0; }
.rd-classroom-pill { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:30px; white-space:nowrap; font-size:.8rem; font-weight:650; }
.rd-classroom-filters { display:grid; margin:0 0 26px; border:1px solid var(--classroom-line); }
.rd-classroom-filters label { margin:0; font-size:.75rem; font-weight:600; color:var(--classroom-muted); min-width:0; }
.rd-classroom .rd-select,.rd-classroom-dialog .rd-select { display:block; width:100%; }
.rd-classroom .select-trigger,.rd-classroom-dialog .select-trigger { width:100%; max-width:100%; font-size:.85rem; }
.rd-classroom-course-grid { display:grid; }
.rd-classroom-course-card { border:1px solid var(--classroom-line); overflow:hidden; text-decoration:none; color:inherit; }
.rd-classroom-cover { position:relative; display:grid; place-items:center; overflow:hidden; isolation:isolate; color:#ffffffc9; }
.rd-classroom-cover:before,.rd-classroom-cover:after { content:''; position:absolute; z-index:-1; border:1px solid #ffffff30; transform:rotate(30deg); }
.rd-classroom-cover:before { box-shadow:0 0 0 20px #ffffff08; }
.rd-classroom-cover:after { box-shadow:0 0 0 28px #ffffff09; }
.rd-classroom-cover>.rd-icon,.rd-classroom-cover>svg { width:46px; height:46px; opacity:.86; }
.rd-classroom-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; }
.rd-classroom-card-body { position:relative; }
.rd-classroom-card-body h2 { padding-right:8px; margin-top:8px; }
.rd-classroom-card-body>p { min-height:1.5em; }
.rd-classroom-card-section { font-weight:700; }
.rd-classroom-teacher-avatar { display:grid; place-items:center; position:absolute; right:18px; border:3px solid var(--card); border-radius:50%; background:var(--classroom-soft); color:var(--classroom-accent); font-weight:700; font-size:.85rem; z-index:2; box-shadow:0 2px 5px #17385413; }
.rd-classroom-card-footer { display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--line); font-size:.75rem; font-weight:650; color:var(--link); }
.rd-classroom-card-footer svg { width:13px; height:13px; transform:rotate(-90deg); }
.rd-classroom-empty { grid-column:1/-1; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px dashed var(--line); border-radius:12px; text-align:center; }
.rd-classroom-empty p { max-width:440px; }
.rd-classroom-course-layout { display:grid; }
.rd-classroom-course-panel { border:1px solid var(--classroom-line); overflow:hidden; position:sticky; top:calc(var(--shell-header-height,var(--topbar-height)) + 16px); max-height:calc(100dvh - var(--shell-header-height,var(--topbar-height)) - 32px); overflow-y:auto; }
.rd-classroom-back { display:block; padding:14px 18px; font-size:.8rem; font-weight:650; text-decoration:none; border-bottom:1px solid var(--line); }
.rd-classroom-course-identity { position:relative; }
.rd-classroom-course-identity h2 { padding-right:20px; }
.rd-classroom-course-identity .text-button { padding:5px 0; font-size:.75rem; }
.rd-classroom-periods { border-top:1px solid var(--line); }
.rd-classroom-periods details { margin-top:5px; }
.rd-classroom-periods summary { display:flex; align-items:center; cursor:pointer; list-style:none; }
.rd-classroom-periods summary:before { content:'›'; color:var(--muted); font-size:1.1rem; }
.rd-classroom-periods details[open]>summary:before { transform:rotate(90deg); }
.rd-classroom-periods summary small { color:var(--classroom-accent); }
.rd-classroom-periods a { display:flex; align-items:center; gap:9px; text-decoration:none; border-radius:7px; flex:1; line-height:1.4; min-width:0; }
.rd-classroom-periods a[aria-current] { font-weight:700; }
.rd-classroom-periods svg { width:15px; height:15px; flex-shrink:0; }
.rd-classroom-tree-node { border-left:1px solid var(--line); }
.rd-classroom-tree-node>a { margin-left:8px; }
.rd-classroom-course-panel>[data-roster] { margin:0 16px 18px; font-size:.75rem; }
.rd-classroom-course-content { min-width:0; }
.rd-classroom-breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 24px; color:var(--muted); line-height:1.8; }
.rd-classroom-breadcrumbs a { text-decoration:none; color:var(--link); }
.rd-classroom-breadcrumbs a:last-child { color:var(--classroom-accent); font-weight:650; }
.rd-classroom-location-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.rd-classroom-search { grid-template-columns:minmax(140px,1fr) 130px 155px; gap:12px; border:1px solid var(--classroom-line); }
.rd-classroom-search label { margin:0; font-size:.7rem; }
.rd-classroom-search input { margin-top:4px; }
.rd-classroom-search .select-trigger { font-size:.78rem; }
.rd-classroom-resource-list { display:flex; flex-direction:column; gap:10px; }
.rd-classroom-content-row { position:relative; display:flex; align-items:center; border:1px solid var(--classroom-line); text-decoration:none; color:inherit; }
.rd-classroom-resource-icon { display:grid; place-items:center; width:45px; height:48px; flex-shrink:0; border-radius:11px; background:var(--color-cyan-soft); color:var(--color-cyan); }
.rd-classroom-resource-icon svg { width:22px; height:22px; }
[data-type=Carpeta]>.rd-classroom-resource-icon { background:var(--color-warning-soft); color:var(--color-warning); }
[data-type=Tarea]>.rd-classroom-resource-icon,.rd-classroom-resource-icon[data-type=Tarea] { background:var(--color-blue-soft); color:var(--color-blue); }
[data-type=Actividad]>.rd-classroom-resource-icon { background:var(--color-success-soft); color:var(--color-success); }
[data-type=Enlace]>.rd-classroom-resource-icon { background:var(--color-blue-soft); color:var(--color-blue); }
[data-type=Anuncio]>.rd-classroom-resource-icon { background:var(--color-warning-soft); color:var(--color-warning); }
.rd-classroom-resource-copy { flex:1; min-width:0; }
.rd-classroom-resource-title { padding:0; font-weight:650; text-align:left; background:none; border:0; box-shadow:none; }
.rd-classroom-resource-title:hover { background:none; color:var(--classroom-accent); }
.rd-classroom-content-row p { margin:4px 0; overflow-wrap:anywhere; }
.rd-classroom-content-row h2 { font-size:.9rem; margin:0; }
.rd-classroom-status { background:var(--surface); color:var(--muted); padding:5px 8px; border-radius:20px; white-space:nowrap; }
.rd-classroom-context { position:relative; }
.rd-classroom-context>summary { padding:5px 9px; cursor:pointer; font-size:1.4rem; list-style:none; border-radius:6px; color:var(--muted); }
.rd-classroom-context[open]>div { position:absolute; right:0; top:35px; z-index:10; border:1px solid var(--classroom-line); box-shadow:0 8px 30px #183e5b1a; border-radius:8px; padding:5px; }
.rd-classroom-context button { display:block; width:100%; text-align:left; border:0; padding:8px 10px; }
.rd-classroom-context button:hover { background:var(--classroom-soft); }
.rd-classroom-create { position:relative; margin-left:auto; z-index:21; }
.rd-classroom-fab { display:flex; align-items:center; justify-content:center; gap:10px; color:var(--primary-ink,#fff); border:0; padding:8px 12px; border-radius:6px; font-size:14px; }
.rd-classroom-fab span { display:inline; font-size:.8rem; }
.rd-classroom-fab:hover { background:color-mix(in srgb,var(--classroom-accent) 85%,var(--ink)); }
.rd-classroom-create-menu { position:absolute; right:0; top:calc(100% + 8px); bottom:auto; padding:8px; border:1px solid var(--line); border-radius:12px; box-shadow:0 8px 40px #193e5b26; }
.rd-classroom-create-menu button { display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:10px; border:0; font-size:.82rem; }
.rd-classroom-create-menu button:hover { background:var(--classroom-soft); }
.rd-classroom-create-menu svg { width:16px; height:16px; color:var(--classroom-accent); }
.rd-classroom-panel-toggle { font-size:.7rem; margin-bottom:12px; align-items:center; gap:6px; }
.rd-classroom-panel-hidden .rd-classroom-course-panel { display:none; }
.rd-classroom-detail { border:1px solid var(--classroom-line); }
.rd-classroom-detail>header { display:flex; align-items:flex-start; flex-wrap:wrap; gap:16px; }
.rd-classroom-detail header p { font-size:.8rem; }
.rd-classroom-description { white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink); }
.rd-classroom-attachments { border-top:1px solid var(--line); margin-top:25px; padding-top:20px; }
.rd-classroom-attachments>div { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--line); background:var(--surface); border-radius:8px; margin-top:8px; }
.rd-classroom-attachments>div>span { color:var(--classroom-accent); }
.rd-classroom-attachments .text-button { text-align:left; flex:1; }
.rd-classroom-attachments button { font-size:.8rem; }
.rd-classroom-task { border-top:1px solid var(--line); padding-top:24px; margin-top:24px; }
.rd-classroom-task dl { display:grid; grid-template-columns:minmax(90px,120px) minmax(0,1fr); gap:8px; font-size:.85rem; }
.rd-classroom-task dt { color:var(--muted); }.rd-classroom-task dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.rd-classroom-task button { margin-top:14px; }
.rd-classroom-submission-confirmed { display:flex; align-items:center; gap:8px; color:var(--color-success)!important; background:var(--color-success-soft); padding:14px; border-radius:8px; }
.rd-classroom-feedback { padding:16px; background:var(--color-blue-soft); border-left:3px solid var(--color-blue); border-radius:8px; margin:20px 0; }
.rd-classroom-feedback p { white-space:pre-wrap; }
.rd-classroom-detail>footer { margin-top:25px; padding-top:18px; border-top:1px solid var(--line); }
.rd-classroom-dialog { width:min(680px,calc(100vw - 30px)); max-height:90dvh; padding:0; border:1px solid var(--line); overflow:auto; }
.rd-classroom-dialog .dialog-heading { position:sticky; top:0; z-index:5; border-bottom:1px solid var(--line); margin:0; }
.rd-classroom-dialog .dialog-heading h2 { font-size:1.1rem; }
.rd-classroom-dialog .dialog-heading [data-close] { padding:3px 10px; }
.rd-classroom-form input,.rd-classroom-form textarea { font-size:.85rem; }
.rd-classroom-form fieldset,.rd-classroom-policy fieldset { margin:18px 0; padding:16px; border:1px solid var(--line); border-radius:9px; }
.rd-classroom-form legend,.rd-classroom-policy legend { color:var(--ink); font-size:.8rem; font-weight:650; padding:0 6px; }
.rd-classroom-modal-footer { display:flex; flex-wrap:wrap; justify-content:flex-end; padding:18px 0; margin-top:12px; }
.rd-classroom-modal-footer button { font-size:.8rem; }
.rd-classroom-form-error { color:var(--color-danger); font-size:.8rem; }
.rd-classroom-dropzone { display:block; padding:18px; text-align:center; background:var(--surface); border:1px dashed var(--line); border-radius:9px; }
.rd-classroom-dropzone>svg { display:block; width:24px; height:24px; margin:0 auto 10px; color:var(--classroom-accent); }
.rd-classroom-form progress { width:100%; accent-color:var(--classroom-accent); margin-top:10px; }
.rd-classroom-reviews article { border:1px solid var(--line); border-radius:10px; padding:16px; margin:12px 0; }
.rd-classroom-reviews button { font-size:.8rem; margin:5px 7px 0 0; }
.rd-classroom-roster { padding:8px 0; }
.rd-classroom-calendar-nav { display:flex; align-items:center; gap:14px; margin:20px 0; }
.rd-classroom-calendar-nav h2 { flex:1; text-align:center; text-transform:capitalize; }
.rd-classroom-calendar-nav label { max-width:130px; margin:0; font-size:.7rem; }
.rd-classroom-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.rd-classroom-calendar-grid>strong { background:var(--surface); padding:12px; text-align:center; font-size:.75rem; }
.rd-classroom-calendar-grid>section { background:var(--card); padding:8px; min-height:100px; }
.rd-classroom-calendar-grid time { font-size:.75rem; color:var(--muted); }
.rd-classroom-calendar-grid a { display:block; border-left:2px solid var(--classroom-accent); background:var(--color-blue-soft); border-radius:4px; color:var(--color-blue); padding:5px; margin-top:5px; text-decoration:none; overflow-wrap:anywhere; font-size:.66rem; }
.rd-classroom-calendar-grid small { display:block; font-size:.58rem; margin-top:4px; }
.rd-classroom-policy { max-width:760px; border:1px solid var(--line); background:var(--card); padding:24px; border-radius:12px; }
.rd-classroom-format-options { display:flex; flex-wrap:wrap; gap:15px; }
.rd-classroom-policy .checkbox { font-size:.85rem; }
[data-card-style=compact] .rd-classroom-cover { height:115px; }
.rd-document-preview img { transform-origin:top left; }
.rd-document-word { padding:24px; background:var(--card); line-height:1.7; overflow-wrap:anywhere; }
.rd-document-word table { border-collapse:collapse; }.rd-document-word td { border:1px solid var(--line); padding:6px; }
.rd-document-sheet { overflow:auto; max-height:60vh; }
.rd-document-sheet table { border-collapse:collapse; font-size:.78rem; }.rd-document-sheet td { border:1px solid var(--line); padding:7px 10px; white-space:pre-wrap; min-width:65px; max-width:350px; overflow-wrap:anywhere; }
@media(min-width:1600px){.rd-classroom-course-grid { gap:26px; }.rd-classroom-cover { height:175px; }}
@media(max-width:1350px){.rd-classroom-course-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.rd-classroom-course-layout { grid-template-columns:260px minmax(0,1fr); gap:18px; }.rd-classroom-search { grid-template-columns:1fr 110px 130px; }.rd-classroom-search .select-trigger { font-size:.7rem; }}
@media(max-width:1050px){.rd-classroom-course-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.rd-classroom-course-layout { grid-template-columns:230px minmax(0,1fr); gap:14px; }.rd-classroom-search { grid-template-columns:1fr 1fr; }.rd-classroom-search>label:first-child { grid-column:1/-1; }.rd-classroom-filters { gap:10px; padding:14px; }.rd-classroom-content-row { padding:13px; gap:12px; }.rd-classroom-detail { padding:20px; }.rd-classroom-calendar-nav { flex-wrap:wrap; }}
@media(max-width:760px){[data-environment=aula] .institution-heading { display:none; }.rd-classroom-course-layout { display:flex; flex-direction:column; }.rd-classroom-course-panel { position:relative; top:auto; width:100%; max-height:48vh; }.rd-classroom-course-content { width:100%; }.rd-classroom-panel-hidden .rd-classroom-course-panel { display:none; }.rd-classroom-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.rd-classroom-heading { align-items:flex-start; }.rd-classroom-heading p { font-size:.8rem; }.rd-classroom-course-grid { gap:14px; }.rd-classroom-calendar-grid>section { min-height:85px; padding:4px; }.rd-classroom-calendar-grid a { font-size:.59rem; }.rd-classroom-calendar-grid small { display:none; }.rd-classroom-calendar-nav button { font-size:.7rem; }.rd-classroom-calendar-nav h2 { font-size:.9rem; }.rd-classroom-detail>header { gap:10px; }.rd-classroom-detail h1 { font-size:1.3rem; }.rd-classroom-breadcrumbs { margin-bottom:18px; }.rd-classroom-course-identity { padding-top:14px; }.rd-classroom-cover-small { height:80px; }}
@media(max-width:480px){.rd-classroom-course-grid { grid-template-columns:minmax(0,1fr); }.rd-classroom-cover { height:155px; }.rd-classroom-heading .rd-classroom-pill { font-size:.65rem; padding:5px 9px; }.rd-classroom-content-row { gap:10px; padding:12px; }.rd-classroom-resource-icon { width:36px; height:40px; }.rd-classroom-resource-icon svg { width:18px; height:18px; }.rd-classroom-resource-title { font-size:.82rem; }.rd-classroom-form { padding:16px 16px 0; }.rd-classroom-dialog .dialog-heading { padding:15px 16px; }.rd-classroom-dialog .form-grid { grid-template-columns:1fr; }.rd-classroom-modal-footer { justify-content:stretch; }.rd-classroom-modal-footer button { flex:1; }.rd-classroom-detail { padding:16px; }.rd-classroom-calendar-grid>strong { font-size:.6rem; padding:9px 2px; }.rd-classroom-attachments>div { flex-wrap:wrap; }.rd-classroom-policy { padding:14px; }}
@media(prefers-reduced-motion:reduce){.rd-classroom * { transition:none!important; animation:none!important; }}
.rd-environment-picker .sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:650px){
 [data-environment=aula] .topbar { gap:6px; padding:0 8px; }
 [data-environment=aula] #help-button { display:none; }
 [data-environment=aula] .rd-environment-picker { min-width:0; max-width:145px; flex:1; }
 [data-environment=aula] .rd-environment-picker .rd-select { min-width:0; width:100%; }
 [data-environment=aula] .rd-environment-picker .select-trigger { min-width:0; width:100%; padding:6px 9px; font-size:.8rem; }
}
@media(max-width:360px){[data-environment=aula] .topbar>a[title="Anuncios y notificaciones"] { display:none; }}
.rd-classroom-rich-editor { padding:12px; border:1px solid var(--line); border-radius:8px; margin:15px 0; font-size:.8rem; }
.rd-classroom-rich-editor summary { cursor:pointer; color:var(--ink); font-weight:600; }
.rd-classroom-rich-editor .toolbar { margin-top:12px; }
.rd-classroom-rich-input { min-height:130px; padding:12px; border:1px solid var(--line); border-radius:6px; background:var(--card); line-height:1.8; overflow-wrap:anywhere; }
.rd-classroom-rich-body { line-height:1.8; font-size:.9rem; overflow-wrap:anywhere; padding-top:12px; }
.rd-classroom-teacher-avatar img { width:100%; height:100%; position:absolute; inset:0; border-radius:50%; object-fit:cover; }
.rd-classroom-indicators { display:block; color:var(--color-success); font-weight:600; }
@media(min-width:1051px){.rd-classroom-search:has([name=state]) { grid-template-columns:minmax(140px,1fr) 100px 125px 120px; }}
@media(max-width:1050px){.rd-classroom-search:has([name=state])>label:first-child { grid-column:1/-1; }}
body:has([data-environment=aula]) #notification { bottom:100px; max-width:calc(100vw - 30px); }
@media(max-width:760px){.rd-classroom-cover.rd-classroom-cover-small { height:90px; }}

/* Aula 3.0: composición compacta, identidad por función y contenido prioritario. */
[data-environment=aula] .page-content { background:var(--surface); }
.rd-classroom h1 { margin:0; letter-spacing:-.025em; }
.rd-classroom-heading { margin:0 0 16px; padding:4px 0 16px; border-bottom:1px solid var(--classroom-line); }
.rd-classroom-heading h1 { color:var(--primary); }
.rd-classroom-heading p { font-size:13px; margin-top:6px; }
.rd-classroom-pill { background:color-mix(in srgb,var(--classroom-accent) 9%,var(--card,#fff)); border-color:color-mix(in srgb,var(--classroom-accent) 22%,var(--line)); color:var(--classroom-accent); padding:5px 10px; }
.rd-classroom-filters { margin-bottom:20px; background:var(--card,#fff); }
.rd-classroom .select-trigger,.rd-classroom-dialog .select-trigger { min-height:36px; }
.rd-classroom-course-card { background:var(--card,#fff); }
.rd-classroom-cover { background:var(--course-accent,var(--classroom-accent)); }
.rd-classroom-cover:before { width:220px; height:220px; top:-120px; right:-40px; border-radius:40px; background:#ffffff08; }
.rd-classroom-cover:after { border-radius:50%; width:220px; height:220px; left:-85px; bottom:-150px; }
.rd-classroom-card-section { font-size:12px; text-transform:none; letter-spacing:0; color:var(--classroom-accent); }
.rd-classroom-course-layout { grid-template-columns:var(--course-panel-width,285px) minmax(0,1fr); gap:20px; }
.rd-classroom-course-panel { background:var(--card,#fff); scrollbar-width:thin; }
.rd-classroom-cover-small svg { width:28px; height:28px; }
.rd-classroom-course-identity { padding:20px 16px 12px; }
.rd-classroom-course-identity h2 { font-size:16px; line-height:1.45; margin:0 0 6px; }
.rd-classroom-course-identity p { font-size:12px; line-height:1.6; }
.rd-classroom-periods { padding:8px 10px 12px; }
.rd-classroom-periods a { padding:8px; font-size:13px; }
.rd-classroom-periods summary small { font-size:11px; }
.rd-classroom-periods summary:before { transition:transform var(--motion-duration); }
.rd-classroom-periods details[open]>.rd-classroom-tree-node { animation:rd-dialog-in var(--motion-duration) ease-out; }
.rd-classroom-tree-node svg { color:var(--folder); }
.rd-classroom-periods a[aria-current] { background:color-mix(in srgb,var(--classroom-accent) 10%,var(--card,#fff)); color:var(--classroom-accent); }
.rd-classroom-course-content { position:relative; }
.rd-classroom-panel-toggle { position:absolute; right:0; top:0; height:30px; width:32px; padding:6px; margin:0; display:grid; place-items:center; background:var(--card,#fff); }
.rd-classroom-panel-toggle svg { width:16px; height:16px; }
.rd-classroom-breadcrumbs { padding-right:44px; margin-bottom:12px; min-height:30px; font-size:12px; }
.rd-classroom-location-heading { margin:0 0 16px; min-height:36px; padding-left:0; }
.rd-classroom-location-heading p { font-size:13px; margin:6px 0 0; }
.rd-classroom-search { display:block; padding:8px 10px; margin-bottom:12px; background:color-mix(in srgb,var(--classroom-accent) 3%,var(--card,#fff)); }
.rd-classroom-search-main { display:flex; align-items:center; gap:8px; min-width:0; }
.rd-classroom-search-main>label { flex:1; min-width:80px; }
.rd-classroom-search input { min-height:36px; margin:0; width:100%; font-size:13px; background:var(--card,#fff); }
.rd-classroom-result-count { font-size:12px; color:var(--muted); white-space:nowrap; }
.rd-classroom-view { width:36px; min-height:36px; padding:8px; flex-shrink:0; }
.rd-classroom-view svg { width:16px; height:16px; }
.rd-classroom-filters-advanced { position:relative; flex-shrink:0; }
.rd-classroom-filters-advanced>summary { display:flex; gap:6px; align-items:center; cursor:pointer; list-style:none; padding:8px 10px; border-radius:7px; border:1px solid var(--line); background:var(--card,#fff); font-size:13px; min-height:36px; }
.rd-classroom-filters-advanced summary svg { width:15px; height:15px; }
.rd-classroom-filters-advanced[open]>summary { border-color:var(--classroom-accent); color:var(--classroom-accent); }
.rd-classroom-filters-advanced>div { position:absolute; z-index:15; right:0; top:44px; display:grid; gap:12px; width:240px; max-width:calc(100vw - 40px); padding:16px; border:1px solid var(--line); background:var(--card,#fff); border-radius:10px; box-shadow:0 6px 22px #153d601a; }
.rd-classroom-filters-advanced label { font-size:12px; }
.rd-classroom-content-row { --resource-color:var(--material); gap:12px; background:var(--card,#fff); border-left:1px solid var(--line); }
.rd-classroom-content-row[data-type=Carpeta],.rd-classroom-resource-icon[data-type=Carpeta] { --resource-color:var(--folder); }
.rd-classroom-content-row[data-type=Tarea],.rd-classroom-resource-icon[data-type=Tarea] { --resource-color:var(--task); }
.rd-classroom-content-row[data-type=Actividad],.rd-classroom-resource-icon[data-type=Actividad] { --resource-color:var(--activity); }
.rd-classroom-content-row[data-type=Anuncio],.rd-classroom-resource-icon[data-type=Anuncio] { --resource-color:var(--announcement); }
.rd-classroom-content-row>.rd-classroom-resource-icon,.rd-classroom-resource-icon[data-type] { width:42px; height:44px; color:var(--resource-color,var(--material)); background:color-mix(in srgb,var(--resource-color,var(--material)) 12%,var(--card,#fff)); border-radius:10px; }
.rd-classroom-resource-title { font-size:15px; color:var(--ink); }
.rd-classroom-content-row p { font-size:13px; line-height:1.5; }
.rd-classroom-content-row small { font-size:12px; line-height:1.6; }
.rd-classroom-status { font-size:11px; }
.rd-classroom-status[data-status=published] { color:var(--color-success); background:var(--color-success-soft); }
.rd-classroom-status[data-status=draft] { color:var(--color-warning); background:var(--color-warning-soft); }
.rd-classroom-context[open]>div { max-height:calc(100dvh - 16px); overflow:auto; width:190px; background:var(--card,#fff); }
.rd-classroom-context button { font-size:13px; min-height:36px; background:var(--card,#fff); color:var(--ink); }
.rd-classroom-drag { padding:4px; min-width:20px; background:transparent; color:var(--muted); cursor:grab; font-size:16px; letter-spacing:-3px; touch-action:none; }
.rd-classroom-sort-ghost { opacity:.4; background:color-mix(in srgb,var(--classroom-accent) 12%,var(--card,#fff)); }
.rd-classroom-resource-list[data-view=grid] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.rd-classroom-resource-list[data-view=grid] .rd-classroom-content-row { flex-wrap:wrap; align-self:stretch; }
.rd-classroom-resource-list[data-view=grid] .rd-classroom-resource-copy { flex-basis:calc(100% - 84px); }
.rd-classroom-empty { min-height:0; padding:24px 16px; gap:4px; background:color-mix(in srgb,var(--classroom-accent) 3%,var(--card,#fff)); border-style:dashed; }
.rd-classroom-empty>svg { width:26px; height:26px; margin-bottom:6px; color:var(--folder); }
.rd-classroom-empty h2 { font-size:16px; margin:0; }
.rd-classroom-empty p { font-size:13px; margin:4px 0 8px; }

.rd-classroom-fab { width:auto; height:40px; background:var(--classroom-accent); box-shadow:none; }
.rd-classroom-fab b { font-weight:400; transition:transform var(--motion-duration); }
.rd-classroom-fab[aria-expanded=true] b { transform:rotate(45deg); }
.rd-classroom-create-menu { width:220px; overflow:auto; background:var(--card,#fff); }
.rd-classroom-create-menu button { background:var(--card,#fff); color:var(--ink); }
.rd-classroom-create-menu button:nth-child(2n) { animation-delay:20ms; }
.rd-classroom-create-menu button:nth-child(3n) { animation-delay:40ms; }
.rd-classroom-create-menu [data-create-type=Carpeta] svg,.rd-classroom-create-menu [data-create-type=Unidad] svg,.rd-classroom-create-menu [data-create-type=Semana] svg { color:var(--folder); }
.rd-classroom-create-menu [data-create-type=Tarea] svg { color:var(--task); }
.rd-classroom-create-menu [data-create-type=Actividad] svg { color:var(--activity); }
.rd-classroom-detail { background:var(--card,#fff); padding:20px; }
.rd-classroom-detail>header { margin-bottom:16px; }
.rd-classroom-dialog { background:var(--card,#fff); }
.rd-classroom-dialog .dialog-heading { background:var(--card,#fff); padding:16px 20px; }
.rd-classroom-form { padding:20px; gap:16px; }
.rd-classroom-form label { font-size:13px; }
.rd-classroom-modal-footer { gap:8px; padding-top:16px; }
.rd-classroom-description { font-size:14px; line-height:1.75; }
.rd-classroom-panel-hidden { grid-template-columns:minmax(0,1fr); }
.rd-classroom .fc { --fc-border-color:var(--line); --fc-button-bg-color:var(--primary); --fc-button-border-color:var(--primary); --fc-today-bg-color:color-mix(in srgb,var(--classroom-accent) 7%,transparent); background:var(--card,#fff); padding:16px; border-radius:var(--radius,10px); font-size:13px; }
.rd-classroom .fc .fc-toolbar-title { font-size:18px; }
.rd-classroom .fc .fc-button { padding:7px 10px; font-size:13px; }
@media(min-width:1600px) { .rd-classroom-course-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); } }
@media(max-width:1100px) { .rd-classroom-result-count { display:none; } }
@media(max-width:899px) {
 .rd-classroom-course-layout { grid-template-columns:minmax(0,1fr); }
 .rd-classroom-course-panel { position:fixed; left:76px; top:calc(var(--shell-header-height,var(--topbar-height)) + 8px); bottom:16px; width:min(300px,calc(100vw - 92px)); max-height:none; z-index:25; box-shadow:0 5px 28px #153d6033; }
 .rd-classroom-course-panel[inert] { display:none; }
}
@media(max-width:650px) {
 .rd-classroom-course-panel { left:62px; width:min(300px,calc(100vw - 78px)); }
 .rd-classroom-resource-list[data-view=grid] { grid-template-columns:minmax(0,1fr); }

 .rd-classroom-content-row { padding:12px; gap:8px; }
 .rd-classroom-status { max-width:88px; white-space:normal; text-align:center; }
 .rd-classroom-drag { display:none; }
 .rd-classroom-resource-title { font-size:14px; }
 .rd-classroom-content-row>.rd-classroom-resource-icon { width:34px; height:38px; }
 .rd-classroom-resource-copy { min-width:80px; }
 .rd-classroom-filters-advanced>div { right:-40px; width:210px; }
 .rd-classroom .fc { padding:8px; }
 .rd-classroom .fc .fc-header-toolbar { flex-wrap:wrap; gap:10px; }
 .rd-classroom-dialog .dialog-heading,.rd-classroom-form { padding:16px; }
}
.rd-classroom-content-row[data-type=Cuestionario],.rd-classroom-resource-icon[data-type=Cuestionario] { --resource-color:var(--assessment); }
.rd-classroom-create-menu [data-create-type=Cuestionario] svg { color:var(--assessment); }
[data-learning] { border-top:1px solid var(--line); padding-top:20px; margin-top:20px; }
.rd-forum-post { border:1px solid var(--line); border-left:3px solid var(--activity); border-radius:8px; padding:16px; margin:12px 0; }
.rd-forum-post header { display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; }
.rd-forum-post p,.rd-quiz-answer p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.7; }
.rd-forum-post footer { display:flex; gap:16px; }
.rd-forum-post-hidden { opacity:.65; background:var(--surface); }
.rd-quiz-question { padding:16px 0; border-bottom:1px solid var(--line); display:grid; gap:12px; }
.rd-quiz-question:first-child { padding-top:0; }
.rd-quiz-question [data-options-label][hidden] { display:none; }
.rd-quiz-answer { padding:12px; background:var(--surface); border-radius:8px; margin-bottom:12px; }
[data-quiz-response] { display:grid; gap:16px; }
[data-quiz-response] fieldset { padding:16px; border:1px solid var(--line); border-radius:8px; }
[data-quiz-response] textarea { width:100%; font:inherit; padding:12px; border:1px solid var(--line); }
[data-quiz-clock] { padding:10px 12px; background:color-mix(in srgb,var(--assessment) 10%,var(--card,#fff)); border-radius:8px; color:var(--ink)!important; }

/* Composición académica: portadas breves, navegación densa y estados por recurso. */
.rd-classroom-card-body h2 { line-height:1.4; }
.rd-classroom-card-footer { margin-top:12px; padding-top:12px; border-color:var(--line); }
.rd-classroom-periods summary { position:relative; flex-wrap:nowrap; gap:4px; }
.rd-classroom-periods summary>a { padding-right:48px; }
.rd-classroom-periods summary>small { position:absolute; right:8px; flex:none; padding:3px 6px; border-radius:4px; background:color-mix(in srgb,var(--activity) 9%,var(--card)); color:var(--activity); font-size:10px; pointer-events:none; }
.rd-classroom-periods summary>small:has(+small) { display:none; }
.rd-classroom-periods summary>small:last-child { max-width:90px; white-space:normal; text-align:right; }
.rd-classroom-tree-node { border-color:var(--line); margin-left:14px; }
.rd-classroom-periods a { color:var(--ink); font-weight:400; }
.rd-classroom-periods a:hover { background:var(--hover); }
.rd-classroom-periods .rd-classroom-tree-node a { font-size:12px; padding:8px; }
.rd-classroom-course-panel { overscroll-behavior:contain; }
.rd-classroom-back { color:var(--link); border-color:var(--line); }
.rd-classroom-course-identity p { color:var(--muted); }
.rd-classroom-resource-copy>p:empty { display:none; }
.rd-classroom-content-row[data-type=Enlace],.rd-classroom-resource-icon[data-type=Enlace] { --resource-color:var(--material); }
.rd-classroom-content-row[data-type=Foro],.rd-classroom-resource-icon[data-type=Foro] { --resource-color:var(--activity); }
.rd-classroom-content-row[data-type=Cuestionario] { --resource-color:var(--assessment); }
.rd-classroom-content-row[data-type=Carpeta] { background:color-mix(in srgb,var(--folder) 3%,var(--card)); }
.rd-classroom-resource-copy small { display:block; margin-top:5px; color:var(--muted); }
.rd-classroom-search input { font-weight:400; }
.rd-classroom-create-menu [data-create-type=Foro] svg { color:var(--activity); }
.rd-classroom-create-menu [data-create-type=Anuncio] svg { color:var(--announcement); }
.rd-classroom-create-menu button:focus-visible { outline:2px solid var(--classroom-accent); outline-offset:-3px; background:var(--hover); }
.rd-classroom-context summary:focus-visible { outline:2px solid var(--classroom-accent); outline-offset:2px; border-radius:5px; }
.rd-classroom-form fieldset { display:grid; gap:12px; }
.rd-classroom-form fieldset label { margin-bottom:0; }
.rd-classroom-modal-footer { position:sticky; bottom:-20px; z-index:5; background:var(--card); padding-bottom:16px; border-top:1px solid var(--line); }
.rd-classroom .fc .fc-list-event:hover td { background:var(--hover); }
@media(max-width:650px) {
 .rd-classroom-periods a { min-height:40px; }
 .rd-classroom-context summary { min-width:32px; min-height:36px; display:grid; place-items:center; }
 .rd-classroom-modal-footer { bottom:-16px; flex-wrap:wrap; }
 .rd-classroom-result-count { display:none; }
 .rd-classroom-card-body h2 { min-height:0; }
}

/* details nativo: apertura inmediata compatible con Firefox, Chrome y Safari.
   No depende de interpolate-size ni de ::details-content experimentales. */
.rd-classroom-periods details > :not(summary) { overflow-wrap:anywhere; }

/* Una fila transformada cambia el bloque de referencia de sus descendientes fixed. */
.rd-classroom-create-menu,.rd-classroom-create-menu button { animation:none; }

/* Aula 4.0: jerarquía institucional, densidad y respuesta sin elevaciones. */
.rd-classroom { font-size:14px; --radius:6px; }
.rd-classroom h1,.rd-classroom-detail h1,.rd-classroom-location-heading h1 { font-size:24px; }
.rd-classroom-course-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr)); gap:16px; }
.rd-classroom-course-card,.rd-classroom-content-row,.rd-classroom-course-panel,.rd-classroom-detail,.rd-classroom-search,.rd-classroom-filters { border-radius:6px; box-shadow:none; }
.rd-classroom-course-card,.rd-classroom-content-row { transition:border-color 100ms,background-color 100ms; }
.rd-classroom-course-card:hover,.rd-classroom-content-row:hover { transform:none; box-shadow:none; border-color:var(--classroom-accent); background:var(--hover,var(--card)); }
.rd-classroom-cover { height:120px; }
.rd-classroom-cover:before,.rd-classroom-cover:after { display:none; }
.rd-classroom-cover img { object-position:center var(--banner-position,50%); }
.rd-classroom-cover-small { height:72px; }
.rd-classroom-card-body { padding:16px 16px 12px; min-height:108px; }
.rd-classroom-card-body h2 { min-height:0; margin:4px 0; font-size:16px; }
.rd-classroom-card-body>p { margin:4px 0; font-size:13px; }
.rd-classroom-card-section:empty { display:none; }
.rd-classroom-teacher-avatar { width:32px; height:32px; top:-16px; }
.rd-classroom-indicators { font-size:12px; min-height:16px; margin-top:8px; }
.rd-classroom-content-row { padding:12px 16px; }
.rd-classroom-content-row>.rd-classroom-resource-icon { border-radius:5px; }
.rd-classroom-tabs { display:flex; gap:4px; flex-wrap:wrap; border-bottom:1px solid var(--line); padding-bottom:8px; margin-bottom:16px; }
.rd-classroom-tabs button { padding:8px 12px; border:0; background:transparent; color:var(--ink); border-radius:4px; font-size:13px; }
.rd-classroom-tabs [aria-current] { background:color-mix(in srgb,var(--classroom-accent) 10%,var(--card)); color:var(--primary); box-shadow:inset 0 -2px var(--classroom-accent); }
.rd-classroom-home h2 { font-size:17px; margin:16px 0 8px; }
.rd-classroom-home p { font-size:14px; white-space:pre-wrap; }
.rd-classroom-course-card:focus-visible,.rd-classroom button:focus-visible,.rd-classroom a:focus-visible { outline:2px solid var(--classroom-accent); outline-offset:3px; }
.rd-access-body { padding:16px; font-size:13px; }
.rd-access-body table { min-width:650px; }
.rd-classroom [data-card-style=compact] .rd-classroom-cover,.rd-classroom[data-card-style=compact] .rd-classroom-cover { height:110px; }
.rd-classroom[data-card-style=compact] .rd-classroom-card-body { min-height:96px; padding:12px; }
.rd-classroom-dialog { border-radius:8px; }
.rd-classroom-create-menu button { animation:none; }
@media(min-width:1450px){.rd-classroom-course-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); }}
@media(prefers-reduced-motion:reduce){.rd-classroom *,.rd-classroom *::before,.rd-classroom *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }}

/* Espacios de trabajo especializados: explorador, seguimiento y revisión. */
.rd-classroom-course-layout { align-items:start; }
.rd-classroom-filters { grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); gap:var(--space-3); padding:var(--space-3); }
.rd-classroom-filters:has(>label:only-child) { max-width:260px; }
.rd-classroom-tabs { align-items:center; }
.rd-classroom-tabs .rd-classroom-fab { color:var(--primary-ink,#fff); background:var(--classroom-accent); }
.rd-classroom-fab b { font-size:20px; line-height:1; }
.rd-classroom-create-menu { max-height:min(480px,calc(100dvh - var(--shell-header-height,var(--topbar-height)) - 180px)); }
.rd-classroom-periods :where(a,summary) { overflow-wrap:anywhere; min-width:0; }
.rd-classroom-resource-list[data-view=list] { gap:0; border:1px solid var(--line); border-radius:6px; background:var(--card); }
.rd-classroom-resource-list[data-view=list]>.rd-classroom-content-row { border:0; border-bottom:1px solid var(--line); border-radius:0; padding:10px 12px; }
.rd-classroom-resource-list[data-view=list]>.rd-classroom-content-row:last-child { border-bottom:0; }
.rd-classroom-resource-copy { overflow-wrap:anywhere; }
.rd-classroom-resource-title { line-height:1.4; }
.rd-classroom-content-row>.rd-classroom-resource-icon { width:34px; height:36px; flex-shrink:0; }
.rd-classroom-home { display:grid; gap:8px; }
.rd-classroom-tracking { display:block; min-width:0; }
.rd-classroom-tracking .toolbar { justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.rd-classroom-tracking .toolbar>span { margin-right:auto; color:var(--muted); font-size:12px; }
.rd-classroom-tracking table { width:100%; min-width:700px; border-collapse:collapse; background:var(--card); }
.rd-classroom-tracking :where(th,td) { padding:10px 12px; border-bottom:1px solid var(--line); font-size:12px; text-align:left; vertical-align:middle; }
.rd-classroom-tracking thead { background:var(--surface); }
.rd-classroom-tracking thead th { white-space:normal; }
.rd-classroom-tracking tbody th { min-width:180px; max-width:320px; font-weight:500; overflow-wrap:anywhere; white-space:normal; }
.rd-classroom-tracking .text-button { text-align:left; padding:0; line-height:1.5; }
.rd-classroom-tracking progress { display:block; width:90px; height:5px; margin-top:6px; accent-color:var(--classroom-accent); }
.rd-classroom-review-dialog { width:min(1400px,calc(100vw - 32px)); max-width:none; }
.rd-classroom-reviews { padding:16px; }
.rd-classroom-review-bar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom:16px; }
.rd-classroom-review-bar label { flex:1; min-width:150px; margin:0; }
.rd-classroom-review-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:16px; align-items:start; }
.rd-classroom-review-document { min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:12px; min-height:260px; }
.rd-classroom-review-context { padding:12px; border:1px solid var(--line); border-radius:6px; overflow-wrap:anywhere; }
.rd-classroom-review-context h3 { margin-top:0; }
.rd-classroom-review-context .rd-classroom-description { font-size:13px; }
.rd-document-inline .toolbar,.rd-document-inline .document-toolbar { display:flex; flex-wrap:wrap; gap:8px; }
.rd-document-inline .pdf-pages { max-height:55dvh; padding:8px; }
.rd-document-inline .document-preview { min-width:0; }
@media(max-width:899px) { .rd-classroom-course-layout { display:grid; grid-template-columns:minmax(0,1fr); } }
@media(max-width:760px) { .rd-classroom-review-layout { grid-template-columns:minmax(0,1fr); }.rd-classroom-review-context { grid-row:1; }.rd-classroom-create { margin-left:0; }.rd-classroom-tabs { gap:4px; }.rd-classroom-tabs button { padding:8px; } }
.rd-course-sections>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:8px 12px;border:1px solid var(--line);border-radius:5px;background:var(--card);font-size:13px;list-style:none}
.rd-course-sections>summary svg{width:16px;height:16px}.rd-course-sections>div{min-width:220px}.rd-course-sections>div button{width:100%;text-align:left}
@media(min-width:900px){.rd-classroom-course-panel{height:var(--course-panel-height);min-height:0;max-height:none;overflow-y:auto;align-self:start}}
.rd-classroom-detail>.rd-classroom-description,.rd-classroom-detail>.rd-classroom-rich-body{max-width:78ch;line-height:1.7;margin:20px 0}
.rd-classroom-rich-body ul,.rd-classroom-rich-body ol{padding-left:2em;margin:12px 0}.rd-classroom-rich-body li{display:list-item;padding-left:.3em;margin:5px 0}.rd-classroom-rich-body table{display:block;overflow:auto;border-collapse:collapse;max-width:100%}.rd-classroom-rich-body td,.rd-classroom-rich-body th{border:1px solid var(--line);padding:8px}
.rd-classroom-rich-editor h3{font-size:14px}.sun-editor{max-width:100%;border-color:var(--line)!important}.sun-editor .se-toolbar{z-index:2!important}.sun-editor .se-dialog{z-index:10}.sun-editor-editable{font-family:var(--font)!important}
.rd-classroom-rich-input[hidden]{display:none!important}
.rd-related-links article{display:flex;align-items:start;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.rd-related-links svg{width:22px;height:22px;color:var(--classroom-accent)}.rd-related-links small{display:block;color:var(--muted)}.rd-related-links p{margin:4px 0}.related-link-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px;border-bottom:1px solid var(--line);padding:12px 0}
.rd-classroom-course-card[hidden]{display:none!important}
.rd-course-card-wrap{position:relative;min-width:0}.rd-course-card-wrap>.rd-classroom-course-card{height:100%;display:block}.rd-course-favorite{position:absolute;top:10px;right:10px;z-index:1;background:#fff;color:var(--color-warning);font-size:23px;padding:0;min-width:34px;height:34px;min-height:34px;border:1px solid var(--line);border-radius:50%}.rd-course-card-wrap[hidden]{display:none!important}.rd-course-recents{font-size:13px;margin:12px 0;gap:12px}.rd-course-recents a{color:var(--link)}
.rd-attachment-row{display:grid!important;grid-template-columns:24px minmax(0,1fr) auto auto!important;align-items:center;gap:12px}.rd-attachment-row strong{display:block;overflow-wrap:anywhere}.rd-attachment-row small{display:block;color:var(--muted);font-size:12px}
.rd-classroom-status[data-status=hidden]{color:var(--muted);background:var(--surface)}
