/* Shared compact popups, with an isolated scroll surface. */
html.mqr-modal-open{overflow:hidden!important;overscroll-behavior:none}
body dialog.pro-dialog,body dialog.student-class-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;box-sizing:border-box}
body dialog.student-class-dialog .class-topline,body .weekly-dialog-head{position:sticky;top:-20px;z-index:3;background:var(--panel,#111);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line,rgba(180,160,110,.2))}
body .weekly-dialog-head h2,body dialog.student-class-dialog .class-topline h2{font-size:20px;line-height:1.3;margin:0}
body .weekly-dialog-head button,body dialog.student-class-dialog .class-topline>button{flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;font-size:20px}
.weekly-dialog-head p{font-size:12px;margin:7px 0 0;opacity:.7}
body .weekly-detail-dialog,body .community-dialog{width:min(560px,calc(100vw - 28px));padding:20px}
.weekly-navigation{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0 12px}.weekly-navigation strong{font-size:14px}.weekly-navigation button{min-height:38px;padding:8px 12px;font-size:12px}
.weekly-classes{display:grid;gap:10px;margin-top:18px}.weekly-class{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;padding:16px!important;white-space:normal;background:var(--panel,#111);color:inherit;border:1px solid var(--line,rgba(180,160,110,.3))}
.weekly-class>span:first-child{display:grid;gap:7px;min-width:0}.weekly-class strong{font-size:16px;overflow-wrap:anywhere}.weekly-class small{font-size:12px;opacity:.7}.weekly-count{font-size:13px;flex-shrink:0}.weekly-count small{display:block;margin-top:5px}
.weekly-students{display:grid;gap:0}.weekly-student,.expiry-row{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line,rgba(180,160,110,.2))}.weekly-student>div,.expiry-row>div{min-width:0}.weekly-student strong,.expiry-row strong{font-size:14px;overflow-wrap:anywhere}.weekly-student small,.expiry-row small{display:block;font-size:12px;line-height:1.5;opacity:.75;margin-top:5px}.weekly-student button,.expiry-row button{padding:8px 10px;font-size:11px;flex-shrink:0}
.academy-class-totals{font-size:13px;margin:16px 0!important;opacity:.8}
.community-dashboard-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.community-dashboard-actions[hidden]{display:none!important}.community-dashboard-actions button{padding:12px 16px;font-size:12px;border:1px solid var(--line,rgba(180,160,110,.3));background:var(--panel,#111);color:inherit}.community-dashboard-actions .has-expiries{border-color:var(--gold,#d6b568);color:var(--gold,#d6b568)}.community-dashboard-actions [data-badge]{display:inline-block;margin-left:6px;font-weight:bold}
.community-tabs{display:flex;gap:8px;margin:16px 0}.community-tabs button{padding:9px 12px;font-size:12px}.community-tabs [aria-pressed=true]{border-color:var(--gold,#d6b568)}.expiry-label{display:inline-block;margin-top:7px;color:#b99843;font-size:12px}.expiry-label.urgent{color:#db7070}
.notice-compose,.student-profile-form{display:grid;gap:14px;margin-top:16px}.notice-compose label,.student-profile-form label{display:grid;gap:7px;font-size:12px}.notice-compose [hidden]{display:none!important}.notice-compose input,.notice-compose textarea,.notice-compose select,.student-profile-form input{width:100%;min-width:0;max-width:100%;box-sizing:border-box;background:var(--panel,#111);color:inherit;border:1px solid var(--line,#555);border-radius:0;padding:11px;font:inherit;font-size:16px}.notice-compose textarea{resize:vertical;min-height:100px}.notice-compose small{font-size:11px;opacity:.7}.notice-recipients{max-height:220px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line,#555);padding:8px}.notice-recipients label{display:flex;align-items:center;gap:10px;padding:8px;font-size:13px}.notice-recipients input{width:18px;height:18px;flex-shrink:0}.notice-recipients small{display:block;font-size:11px;opacity:.7;margin-top:4px}
.notice-card{padding:14px 0;border-bottom:1px solid var(--line,rgba(180,160,110,.25))}.notice-card strong{font-size:14px}.notice-card p{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.notice-card small{display:block;font-size:11px;opacity:.7;margin-top:7px}.notice-card summary{cursor:pointer;list-style:none}.notice-card.is-unread summary strong:before{content:'● ';color:var(--gold,#d6b568)}.notice-pages{display:flex;justify-content:space-between;gap:10px;margin-top:14px}.notice-pages button{padding:9px 12px;font-size:12px}
body .student-brand{display:flex;align-items:center}.student-header-tools{display:flex;align-items:center;gap:8px;margin-left:6px;flex-shrink:0}body .student-brand .student-header-tools button{position:relative;display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:7px;border:1px solid var(--line,rgba(180,160,110,.2));background:transparent;color:var(--muted,#bcb8ae);border-radius:0;transform:none;margin:0}body .student-header-tools svg{display:block;width:19px;height:19px}.notice-unread{position:absolute;top:-6px;right:-6px;border-radius:20px;background:var(--gold,#d6b568);color:#111;font-size:9px;font-weight:bold;min-width:15px;padding:2px 3px}.notice-unread[hidden]{display:none!important}body.is-login-view .student-notice-bell{display:none!important}
body.is-account-view .student-brand>span{margin-left:auto;font-size:10px;letter-spacing:1.3px}.student-settings-list{display:grid;gap:10px;margin-top:14px}.student-settings-list>button{text-align:left;padding:13px;font-size:13px}.student-settings-list>button span{display:block;margin-top:5px;font-size:11px;opacity:.7}.settings-appearance{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid var(--line,#555);padding-top:15px;margin-top:5px;font-size:12px}body .student-settings-dialog #studentThemeToggle{position:static;transform:none;width:auto;height:auto;padding:9px 11px;min-height:36px;font-size:11px;letter-spacing:0;margin:0;background:transparent;border:1px solid var(--line,#555);color:inherit}.profile-email{font-size:12px!important;overflow-wrap:anywhere}.profile-email strong,.profile-email small{display:block;margin-top:5px}.profile-email small{opacity:.7}
body.is-account-view #studentLogoutButton{position:static!important;transform:none!important;grid-area:logout;align-self:center;justify-self:center;margin:12px 0 2px!important;width:auto!important;padding:10px 16px!important}
@media(max-width:600px){body dialog.pro-dialog,body dialog.student-class-dialog{max-height:calc(100dvh - 24px);width:calc(100vw - 24px);padding:16px}body dialog.student-class-dialog .class-topline,body .weekly-dialog-head{top:-16px}.weekly-navigation{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:8px}.weekly-navigation strong{text-align:center;font-size:12px}.weekly-navigation [data-today]{grid-column:1/-1;justify-self:center}.weekly-class{padding:12px!important;gap:10px}.weekly-class strong{font-size:14px}.weekly-count{font-size:12px}.weekly-student,.expiry-row{flex-wrap:wrap}.community-dashboard-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.community-dashboard-actions button{padding:10px;font-size:11px;line-height:1.5;white-space:normal}body .student-brand .school-header-logo{width:30px;height:30px;flex-basis:30px}body .student-brand{gap:8px}.student-header-tools{gap:6px}.settings-appearance{align-items:flex-start}.notice-compose input[type=date]{appearance:none;-webkit-appearance:none}}

/* Uniform teacher cards; biography remains in Editar ficha. */
.teacher-cards-grid{align-items:stretch;grid-auto-rows:1fr}.teacher-cards-grid .teacher-card{min-width:0;display:flex;flex-direction:column;gap:16px!important}.teacher-cards-grid .teacher-card-heading{min-height:64px}.teacher-cards-grid .teacher-card-heading .pro-photo,.teacher-photo-placeholder{width:64px;height:64px;flex:0 0 64px;border-radius:50%;object-fit:cover}.teacher-photo-placeholder{display:grid;place-items:center;background:rgba(128,128,128,.1);border:1px solid var(--line,rgba(180,160,110,.25));font-size:28px;opacity:.65}.teacher-cards-grid .teacher-card-counts{margin:0}.teacher-cards-grid .teacher-card>button{margin-top:auto;align-self:flex-start}

.schedule-teacher-fields{min-width:0}.schedule-teacher-fields h3{margin:0 0 8px}.schedule-teacher-fields>p{font-size:12px;line-height:1.5}.schedule-teacher-fields fieldset{min-width:0;border:1px solid var(--line,rgba(180,160,110,.3));margin:12px 0;padding:12px;display:flex;flex-wrap:wrap;gap:10px 18px}.schedule-teacher-fields legend{font-size:13px;padding:0 6px;max-width:100%;overflow-wrap:anywhere}.pro-form label.schedule-teacher-choice{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:13px;cursor:pointer}.pro-form .schedule-teacher-choice input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;padding:0;accent-color:var(--gold,#d6b568)}.schedule-professor-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.schedule-professor-chips .teacher-chip{margin:0;max-width:100%;font-size:12px}.schedule-professor-chips .teacher-chip img{width:32px;height:32px;object-fit:cover}
