:root{font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;color:#18243c;background:#f4f6fb;font-size:16px;font-synthesis:none;text-rendering:optimizeLegibility;--navy:#101b35;--blue:#4169e1;--muted:#71809a;--line:#e5eaf2;--surface:#fff}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:var(--blue);text-decoration:none}header{min-height:74px;display:flex;align-items:center;justify-content:space-between;padding:12px max(calc((100vw - 1200px)/2),28px);background:#fff;border-bottom:1px solid var(--line);box-shadow:0 3px 16px #14244808}.brand{font-family:Manrope,sans-serif;color:var(--navy);font-size:1.02rem;font-weight:800;letter-spacing:-.02em}nav{display:flex;align-items:center;gap:20px}nav a{color:#52617a;font-size:.9rem;font-weight:600;transition:color .2s}nav a:hover{color:var(--blue)}nav form{margin:0}main{max-width:1200px;margin:38px auto;padding:0 28px;min-height:70vh}h1,h2,h3{font-family:Manrope,system-ui,sans-serif;letter-spacing:-.035em;color:var(--navy)}h1{font-size:clamp(1.75rem,3vw,2.35rem);margin:0 0 24px}h2{font-size:1.2rem}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px;margin-bottom:20px;box-shadow:0 8px 26px #1b2a4a08}.grid,.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.stats{margin-bottom:22px}.stats div{background:linear-gradient(135deg,#fff,#f8faff);border:1px solid var(--line);padding:20px 22px;border-radius:15px;color:var(--muted);font-size:.88rem}.stats b{display:block;font:800 1.9rem Manrope,sans-serif;color:var(--navy);margin-bottom:4px}label{display:block;font-size:.9rem;font-weight:600;color:#34425c;margin:16px 0}input,select,textarea{display:block;width:100%;margin-top:8px;padding:12px 14px;border:1px solid #dce3ee;border-radius:9px;background:#fff;color:#18243c;font:inherit;transition:border .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{outline:0;border-color:#6688ef;box-shadow:0 0 0 3px #4169e11c}textarea{min-height:100px;resize:vertical}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:9px;padding:11px 17px;background:var(--blue);color:#fff;font:600 .92rem 'DM Sans',sans-serif;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}.button:hover,button:hover{background:#3158d1;box-shadow:0 6px 14px #4169e133;transform:translateY(-1px)}.student-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid #edf0f5}.student-row select{width:220px}.check{display:flex;align-items:center;gap:10px}.check input{width:auto;margin:0}.alert{padding:13px 16px;border-radius:10px;margin:0 0 18px;font-size:.92rem}.success{background:#e9f8f0;color:#147449;border:1px solid #cceedd}.error{background:#fff0f0;color:#a6333b;border:1px solid #f4d1d3}.incident{padding:15px 17px;border:1px solid #f2e3bd;border-left:4px solid #e4ad3d;border-radius:10px;background:#fffcf5;margin:12px 0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line)}th{font-size:.82rem;color:var(--muted);background:#f8faff}footer{text-align:center;color:#8490a4;padding:26px;font-size:.84rem}.admin-grid{margin-top:22px}.narrow{max-width:460px}.login-page{background:#f3f5fa}.login-shell{width:min(1060px,calc(100% - 40px));min-height:min(700px,calc(100vh - 80px));margin:40px auto;display:grid;grid-template-columns:1fr 1.02fr;overflow:hidden;border-radius:24px;background:#fff;box-shadow:0 26px 90px #17244720}.login-aside{position:relative;overflow:hidden;padding:52px 54px;color:#fff;background:radial-gradient(ellipse at 4% 100%,#4169e1 0,transparent 43%),linear-gradient(145deg,#101b35,#1a2d55 72%,#263e72)}.brand-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#ffffff1d;border:1px solid #ffffff36;font:800 1.4rem Manrope,sans-serif}.eyebrow{margin:48px 0 12px;font-size:.72rem;font-weight:700;letter-spacing:.17em;color:#bac9f5}.login-aside h1{max-width:380px;color:#fff;font-size:clamp(2.2rem,4vw,3.2rem);line-height:1.1;margin:0}.login-copy{max-width:360px;margin:22px 0;color:#c6d1e8;line-height:1.8}.login-decoration{display:flex;align-items:end;gap:10px;height:112px;margin-top:35px}.login-decoration span{display:block;width:20%;border-radius:8px 8px 2px 2px;background:linear-gradient(180deg,#98b1ff,#6687ee55)}.login-decoration span:nth-child(1){height:45%}.login-decoration span:nth-child(2){height:78%}.login-decoration span:nth-child(3){height:60%}.login-footnote{position:absolute;bottom:26px;color:#aab9d7;font-size:.76rem;letter-spacing:.03em}.login-main{display:flex;flex-direction:column;justify-content:center;padding:52px clamp(32px,6vw,76px)}.login-panel{width:100%;max-width:390px;margin:0 auto}.login-panel .eyebrow{margin:0 0 10px;color:var(--blue)}.login-panel h2{font-size:2rem;margin:0 0 8px}.login-subtitle{margin:0 0 28px;color:var(--muted);font-size:.95rem;line-height:1.6}.login-form label{margin:18px 0;color:#34425c}.login-form input{height:49px}.login-submit{width:100%;height:50px;margin-top:10px;justify-content:space-between;padding:0 17px}.login-submit span{font-size:1.2rem}.login-help{margin:22px 0 0;color:var(--muted);font-size:.82rem;line-height:1.6}.login-copyright{text-align:center;color:#98a2b3;font-size:.76rem;margin:34px auto 0}.login-main .alert{margin-bottom:12px}@media(max-width:760px){.login-shell{grid-template-columns:1fr;margin:18px auto;width:min(520px,calc(100% - 28px));min-height:calc(100vh - 36px);border-radius:18px}.login-aside{min-height:230px;padding:26px 28px}.brand-mark{width:40px;height:40px}.login-aside .eyebrow{margin:24px 0 8px}.login-aside h1{font-size:1.8rem}.login-copy{margin:10px 0;font-size:.88rem}.login-decoration{display:none}.login-footnote{display:none}.login-main{padding:34px 28px}header{padding:14px 18px;align-items:flex-start;gap:12px;flex-direction:column}nav{gap:12px;flex-wrap:wrap}main{margin:26px auto;padding:0 18px}.student-row{align-items:flex-start;flex-direction:column}.student-row select{width:100%}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.button-quiet{background:#f1f4fa;color:#40506c}.button-quiet:hover{background:#e7ecf6;box-shadow:none}.dashboard-welcome{padding:30px}.dashboard-welcome h2{font-size:1.55rem;margin:8px 0}.dashboard-welcome>p:not(.eyebrow){color:#71809a}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:24px 0 8px}.section-heading .eyebrow{margin:0 0 6px}.section-heading h2{margin:0}.section-heading p:last-child{color:#71809a;margin:7px 0 0}.admin-grid .card h2{margin-top:0}.app-body{background:#f4f6fb}.app-shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;display:flex;flex:0 0 264px;flex-direction:column;width:264px;height:100vh;min-height:620px;padding:25px 17px 18px;background:radial-gradient(circle at 0 0,#263d70 0,transparent 38%),linear-gradient(180deg,#111d38,#101a31 75%,#0c152a);color:#fff;box-shadow:8px 0 30px #17244712;z-index:5}.side-brand{display:flex;align-items:center;gap:12px;padding:3px 10px 25px;color:#fff;font:800 1rem Manrope,system-ui,sans-serif;letter-spacing:-.02em}.side-brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:linear-gradient(145deg,#7291ff,#4169e1);box-shadow:0 7px 18px #4169e155;font-size:1.18rem;color:#fff}.side-brand-sub{display:block;margin-top:3px;color:#8698bc;font:700 .58rem 'DM Sans',sans-serif;letter-spacing:.17em}.side-account{display:flex;align-items:center;gap:11px;padding:14px 11px;margin:2px 0 28px;border:1px solid #ffffff13;border-radius:13px;background:#ffffff09}.side-avatar,.topbar-avatar{display:grid;place-items:center;width:37px;height:37px;flex:0 0 37px;border-radius:12px;background:#dce6ff;color:#335bd0;font-weight:800}.side-account strong,.side-account span{display:block;max-width:165px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-account strong{font-size:.86rem}.side-account span{margin-top:3px;color:#a5b4d0;font-size:.73rem}.side-label{margin:0 10px 10px;color:#7788a9;font-size:.64rem;font-weight:700;letter-spacing:.15em}.side-nav{display:flex;flex-direction:column;gap:5px}.side-link{position:relative;display:flex;align-items:center;gap:12px;min-height:46px;padding:0 11px;border-radius:10px;color:#aebbd3;font-size:.86rem;font-weight:600;transition:background .18s,color .18s}.side-link:hover{background:#ffffff0d;color:#fff}.side-link.active{background:linear-gradient(90deg,#4169e13b,#4169e115);color:#fff}.side-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#ffffff0a;color:#9cafdc;font-size:.62rem;font-weight:800;letter-spacing:.02em}.side-link.active .side-icon{background:#4169e1;color:#fff}.side-indicator{position:absolute;right:9px;width:5px;height:5px;border-radius:50%;background:#8da7ff}.side-footer{margin-top:auto;padding:13px 8px 0;border-top:1px solid #ffffff14}.side-footer-note{margin-bottom:14px;color:#c3cde0;font-size:.77rem;line-height:1.5}.side-footer-note span{color:#7889aa;font-size:.7rem}.side-footer form{margin:0}.side-logout{width:100%;justify-content:flex-start;background:transparent;color:#b8c4d9;padding:10px 9px}.side-logout:hover{background:#ffffff0d;color:#fff;box-shadow:none;transform:none}.side-logout span{font-size:1rem}.main-area{display:flex;flex:1;min-width:0;flex-direction:column}.topbar{position:sticky;top:0;z-index:4;display:flex;min-height:82px;align-items:center;justify-content:space-between;padding:12px clamp(22px,4vw,48px);background:#ffffffed;border-bottom:1px solid #e6eaf2;box-shadow:0 4px 18px #1b2a4a06;backdrop-filter:blur(12px)}.topbar>div:first-child{display:flex;flex-direction:column;gap:3px}.topbar-kicker{color:#8995aa;font-size:.62rem;font-weight:700;letter-spacing:.15em}.topbar strong{color:#1d2a43;font:700 .98rem Manrope,system-ui,sans-serif}.topbar-account{display:flex;align-items:center;gap:9px;color:#63718a;font-size:.8rem;font-weight:600}.status-dot{width:7px;height:7px;border-radius:50%;background:#36b37e;box-shadow:0 0 0 4px #36b37e1c}.topbar-avatar{width:33px;height:33px;flex-basis:33px;border-radius:50%;margin-left:6px}.page-content{width:100%;max-width:none;flex:1;margin:0;padding:34px clamp(22px,4vw,48px) 20px;min-height:0}.page-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:20px}.page-heading .eyebrow{margin:0 0 5px;font-size:.62rem}.page-heading h1{margin:0;font-size:clamp(1.65rem,2.4vw,2.05rem)}.app-footer{padding:18px clamp(22px,4vw,48px);text-align:left;color:#909bad;font-size:.75rem}.app-footer span{padding:0 5px;color:#c0c7d3}.dashboard-welcome{padding:30px}.dashboard-welcome h2{font-size:1.55rem;margin:8px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:24px 0 8px}.section-heading .eyebrow{margin:0 0 6px}.section-heading h2{margin:0}.section-heading p:last-child{color:#71809a;margin:7px 0 0}.admin-grid .card h2{margin-top:0}.button-quiet{background:#f1f4fa;color:#40506c}.button-quiet:hover{background:#e7ecf6;box-shadow:none}
@media(max-width:850px){.sidebar{flex-basis:226px;width:226px;padding-left:12px;padding-right:12px}.side-account{margin-bottom:20px}.topbar,.page-content{padding-left:22px;padding-right:22px}}
@media(max-width:680px){.app-shell{display:block}.sidebar{position:relative;top:auto;width:100%;height:auto;min-height:0;padding:12px 14px 10px}.side-brand{padding:0 4px 10px}.side-brand-mark{width:34px;height:34px}.side-account,.side-label,.side-footer-note{display:none}.side-nav{flex-direction:row;gap:5px;overflow-x:auto;padding:3px 0 8px}.side-link{flex:0 0 auto;min-height:38px;padding:0 9px;font-size:.75rem}.side-icon{width:23px;height:23px}.side-indicator{display:none}.side-footer{position:absolute;right:13px;top:10px;margin:0;padding:0;border:0}.side-logout{width:auto;min-height:34px;padding:7px 9px;font-size:.74rem}.topbar{position:relative;min-height:65px;padding:10px 17px;flex-direction:row;align-items:center}.topbar-account{font-size:.72rem}.page-content{padding:25px 16px 14px}.page-heading{margin-bottom:15px}.app-footer{padding:14px 17px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats div{padding:15px}.stats b{font-size:1.55rem}.admin-grid{grid-template-columns:1fr}}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.module-card{max-width:1000px}.module-card>h2{margin:3px 0 20px;font-size:1.35rem}.module-card>button{margin-top:8px}.admin-intro{max-width:950px;padding:32px;background:radial-gradient(ellipse at 100% 0,#e2eaff 0,transparent 43%),linear-gradient(135deg,#fff,#f9faff)}.admin-intro .eyebrow{margin:0 0 8px}.admin-intro h2{font-size:1.6rem;margin:0 0 10px}.admin-intro p:last-child{color:#71809a;line-height:1.7;margin:0}.clean-list{list-style:none;padding:0;margin:0}.clean-list li{padding:13px 5px;border-bottom:1px solid #edf0f5}.clean-list li:last-child{border:0}@media(max-width:680px){.form-grid{grid-template-columns:1fr;gap:0}.module-card,.admin-intro{padding:20px}}
/* Identidad visual de la U.E. Plena Principe de Paz */
:root{--navy:#35101a;--blue:#c8102e}
input:focus,select:focus,textarea:focus{border-color:#d94a61;box-shadow:0 0 0 3px #c8102e20}
button:hover,.button:hover{background:#a50f27;box-shadow:0 6px 14px #c8102e30}
.sidebar{background:radial-gradient(circle at 0 0,#a82b40 0,transparent 38%),linear-gradient(180deg,#741024,#500b19 75%,#390812)}
.side-brand{font-size:.83rem;line-height:1.3}
.side-brand-seal{width:43px;height:43px;flex:0 0 43px;object-fit:contain;border-radius:50%;background:#fff;padding:2px;box-shadow:0 4px 14px #25030a66}
.side-brand-sub{color:#f0b7c0;font-size:.55rem;letter-spacing:.1em}
.side-avatar,.topbar-avatar{background:#fde8ec;color:#a50f27}
.side-link.active{background:linear-gradient(90deg,#d324443b,#d3244415)}
.side-link.active .side-icon{background:#c8102e}
.side-indicator{background:#ff9cab}
.login-aside{background:radial-gradient(ellipse at 4% 100%,#c11d39 0,transparent 43%),linear-gradient(145deg,#5c0c1b,#8f1028 72%,#bd1835)}
.login-aside .eyebrow{color:#ffdbe1}
.login-aside h1{color:#fff;max-width:400px}
.login-seal{display:block;width:clamp(128px,17vw,184px);height:auto;aspect-ratio:1;object-fit:contain;margin:0 0 25px;border-radius:50%;background:#fff;padding:5px;box-shadow:0 12px 34px #30040c66}
.login-main .eyebrow.accent,.page-heading .eyebrow.accent{color:#b3142f}
.admin-intro{background:radial-gradient(ellipse at 100% 0,#f9e1e6 0,transparent 43%),linear-gradient(135deg,#fff,#fff9fa)}
@media(max-width:680px){.side-brand{padding:0 4px 10px;font-size:.77rem}.side-brand-seal{width:35px;height:35px;flex-basis:35px}.login-shell{grid-template-columns:1fr}.login-aside{padding:28px 25px 25px}.login-seal{width:88px;margin-bottom:14px}.login-aside .eyebrow{margin:0 0 8px}.login-aside h1{font-size:1.55rem;margin-bottom:10px}.login-copy{margin-bottom:8px}.login-decoration,.login-footnote{display:none}}

/* Ajustes de marca: dimensiones fijas para el sello PNG */
.sidebar .side-brand{width:100%;min-width:0;gap:10px;padding:3px 7px 25px;font-size:.76rem;line-height:1.25;letter-spacing:-.025em}
.sidebar .side-brand .side-brand-seal{display:block;width:50px!important;height:50px!important;min-width:50px;max-width:50px;flex:0 0 50px;object-fit:contain}
.sidebar .side-brand>span{display:block;flex:1;min-width:0;overflow-wrap:anywhere}
.sidebar .side-brand-sub{font-size:.53rem;letter-spacing:.09em;line-height:1.35}
.sidebar .side-avatar,.topbar .topbar-avatar{background:#fde8ec;color:#a50f27}
.app-shell .button,.app-shell button:not(.side-logout){background-color:#c8102e;color:#fff}
.app-shell .button:hover,.app-shell button:not(.side-logout):hover{background-color:#a50f27;color:#fff}
@media(max-width:680px){.sidebar .side-brand{width:auto;padding:0 4px 10px;font-size:.74rem}.sidebar .side-brand .side-brand-seal{width:38px!important;height:38px!important;min-width:38px;max-width:38px;flex-basis:38px}.sidebar .side-brand>span{max-width:230px}}

.today-schedule{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:22px 0}
.schedule-card{margin:0;padding:20px;border-radius:14px}
.schedule-card.is-current{border-color:#c8102e;box-shadow:0 0 0 2px #c8102e18,0 8px 26px #1b2a4a08}
.schedule-time{display:flex;align-items:center;justify-content:space-between;color:#a50f27;font-size:.82rem;font-weight:800;letter-spacing:.04em}
.schedule-time span{padding:4px 7px;border-radius:999px;background:#fde8ec;font-size:.6rem;letter-spacing:.08em}
.schedule-card h3{margin:13px 0 5px;font-size:1.18rem}
.schedule-card p{margin:0 0 16px;color:#71809a;font-size:.88rem}
.schedule-empty{margin:18px 0 20px;padding:18px 20px;border:1px dashed #dba8b1;border-radius:12px;background:#fffafb;color:#6b2635}
.schedule-empty p{margin:7px 0 0;color:#71809a;line-height:1.55}
.assignments-overview{max-width:1180px}
.assignment-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.assignment-section-heading .eyebrow{margin:0 0 5px}
.assignment-section-heading h2{margin:0;font-size:1.45rem}
.assignment-course-count,.course-assignment-total{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#3558c9;font-size:.78rem;font-weight:700;white-space:nowrap}
.course-assignment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:15px}
.course-assignment-card{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff}
.course-assignment-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px;background:linear-gradient(110deg,#f7f9ff,#fff);border-bottom:1px solid var(--line)}
.course-assignment-header>div>span{color:#8490a4;font-size:.65rem;font-weight:800;letter-spacing:.12em}
.course-assignment-header h3{margin:2px 0 0;font-size:1.18rem}
.course-assignment-total{background:#f0f3f8;color:#66748b}
.course-assignment-list{list-style:none;margin:0;padding:4px 17px}
.course-assignment-list li{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:11px 0;border-bottom:1px solid #edf0f5}
.course-assignment-list li:last-child{border-bottom:0}
.course-assignment-list strong{font-size:.9rem;font-weight:650;color:#24324b}
.course-assignment-list li>span{max-width:52%;color:#65738c;font-size:.82rem;text-align:right;line-height:1.4}
.course-assignment-empty{margin:0;padding:17px;color:#8490a4;font-size:.88rem}
@media(max-width:520px){.assignment-section-heading{align-items:flex-start}.course-assignment-list li{flex-direction:column;gap:4px}.course-assignment-list li>span{max-width:none;text-align:left}}
.criteria-intro{max-width:950px;background:linear-gradient(120deg,#fff,#f8faff)}
.criteria-intro .eyebrow,.criteria-config .eyebrow,.criteria-marks .eyebrow{margin:0 0 6px}
.criteria-intro h2,.criteria-config h2,.criteria-marks h2{margin:0 0 8px;font-size:1.35rem}
.criteria-intro p:last-child{margin:0;color:var(--muted);line-height:1.6}
.criteria-course-card{display:flex;justify-content:space-between;align-items:center;gap:18px}
.criteria-course-card h2{margin:3px 0;font-size:1.35rem}
.criteria-course-card p{margin:0;color:var(--muted);font-size:.87rem}
.criteria-course-kicker{font-size:.68rem;font-weight:800;letter-spacing:.13em;color:#8591a6}
.criteria-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.criteria-heading>span{color:var(--muted);font-size:.85rem;line-height:1.5}
.criteria-label-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.criteria-label-form button{margin-top:6px}
.criteria-add-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.criteria-form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}
.criteria-form-actions button{margin:0}
.criteria-student-count{display:inline-block;margin-left:5px;color:var(--muted);font:500 .8rem 'DM Sans',sans-serif;letter-spacing:0}
.criteria-table-wrap{margin:0 0 18px;border:1px solid var(--line);border-radius:11px}
.criteria-table{min-width:760px}
.criteria-table thead th{vertical-align:top;color:#32415b;font-size:.82rem;line-height:1.35}
.criteria-table thead th:first-child{min-width:220px}
.criteria-table thead small{display:block;margin-top:5px;color:#7b879a;font-size:.7rem;font-weight:500}
.criteria-table tbody th{background:#fff;font-weight:600;color:#283751}
.criteria-table td{text-align:center;width:110px}
.criteria-checkbox{display:inline-flex;align-items:center;justify-content:center;margin:0;cursor:pointer}
.criteria-checkbox input{width:19px;height:19px;margin:0;accent-color:var(--blue);cursor:pointer}
.criteria-empty{color:var(--muted)}
.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:620px){.criteria-course-card,.criteria-heading{align-items:flex-start;flex-direction:column}.criteria-label-grid,.criteria-add-row{grid-template-columns:1fr}.criteria-course-card .button{width:100%}}

.student-followup-wrap{margin:18px 0;border:1px solid #dfe5ef;border-radius:13px;background:#fff;box-shadow:0 10px 24px #1b2a4a0a}
.student-followup-table{width:100%;min-width:1020px;table-layout:fixed;color:#1d2b45;border-collapse:separate;border-spacing:0}
.student-followup-table thead th{position:sticky;top:0;z-index:1;background:#f3f6fb;color:#52617a;text-align:center;vertical-align:bottom;font-size:.75rem;line-height:1.4;max-width:190px}
.student-followup-table thead th:nth-child(3){min-width:230px;text-align:left}
.student-followup-table thead th:first-child,.student-followup-table tbody td:first-child{width:46px}
.student-followup-table thead th:nth-child(3),.student-followup-table tbody th.student-name{width:230px}
.student-followup-table thead th:nth-child(4),.student-followup-table tbody td:nth-child(4){width:145px}
.student-followup-table thead th:nth-child(n+5),.student-followup-table tbody td:nth-child(n+5){width:120px}
.student-followup-table .student-number-head,.student-followup-table .student-number{width:48px;text-align:center;color:#7586a0}
.student-followup-table tbody td,.student-followup-table tbody th{height:66px;background:#fff;border-bottom:1px solid #e8edf4;color:#263650}
.student-followup-table tbody tr:hover td,.student-followup-table tbody tr:hover th{background:#f8faff}
.student-followup-table tbody .student-name{text-align:left;font-size:.9rem;font-weight:650;letter-spacing:.01em;color:#1d2b45}
.student-followup-table tbody td{text-align:center}
.student-followup-table .criteria-checkbox{width:100%;height:100%}
.student-followup-table .criteria-checkbox input{appearance:none;width:20px;height:20px;border:1.5px solid #7e91b0;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #4169e108}
.student-followup-table .criteria-checkbox input:checked{border-color:#4169e1;background:#4169e1;box-shadow:inset 0 0 0 5px #fff}
.student-followup-table .criteria-checkbox input:focus-visible{outline:3px solid #8adfff;outline-offset:3px}
.followup-date{max-width:280px;margin:0 0 14px}
.followup-attendance{display:block;width:100%;max-width:144px;min-width:0;height:42px;margin:0 auto;padding:8px 24px 8px 10px;border-color:#dce3ee;border-radius:9px;background:#fff;color:#263650;font-size:.76rem;line-height:1.2}
.notify-button{padding:9px 12px;border-radius:999px;background:#4169e1;color:#fff;font-size:.82rem;white-space:nowrap}
.notify-button:hover{background:#3158d1!important}
.notify-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.criteria-marks>form>button{margin:0 0 2px}
@media(max-width:650px){.student-followup-table{min-width:1020px}.followup-date{max-width:none}}

.sidebar{overflow-y:auto;background:radial-gradient(circle at 0 0,#8e1747 0,transparent 40%),linear-gradient(180deg,#690b35,#4a082c 68%,#31061f)}
.side-link:hover{background:#ffffff14;color:#fff}
.side-link.active{background:linear-gradient(90deg,#d71958b8,#a20e481c);color:#fff}
.side-link.active .side-icon{background:#bf174f;color:#fff}
.side-icon{background:#ffffff12;color:#f0b6cc}
.side-label{color:#edb6c9}
.history-panel{padding:0;overflow:hidden}
.history-panel .table-wrap{max-height:72vh;overflow:auto;border-radius:15px}
.history-panel table{min-width:720px}
.history-panel th{position:sticky;top:0;z-index:1;background:#f4f6fb;color:#52617a}
.history-panel td{color:#263650;vertical-align:top}
.history-panel tr:hover td{background:#fafbfe}
.history-note{margin:0;padding:12px 18px;color:#8490a4;font-size:.78rem}
.history-filter{display:flex;align-items:end;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line);background:#fbfcfe}
.history-filter label{width:240px;margin:0}
.history-filter .button,.history-filter button{margin:0}
@media(max-width:620px){.history-filter{align-items:stretch;flex-direction:column}.history-filter label{width:100%}.history-filter .button,.history-filter button{width:100%}}


.bulk-whatsapp-link{display:flex;flex-direction:column;gap:5px;width:max-content;max-width:100%;padding:14px 18px;border:1px solid #ddabb4;border-radius:12px;background:#25151b;color:#ffd6dd;font-weight:700;text-decoration:none}
.bulk-whatsapp-link small{color:#9eabba;font-weight:400}
.bulk-whatsapp-link.is-disabled{opacity:.48;pointer-events:none;filter:saturate(.45)}
.notify-button:disabled{opacity:.42;cursor:not-allowed;filter:saturate(.45)}
.bulk-action-bar{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.notify-bulk-button{display:inline-flex;align-items:center;margin:0;padding:10px 18px;border:0;border-radius:9px;background:#d20f35;color:#fff;font-weight:700;cursor:pointer}
.notify-bulk-button:hover{background:#b80e2e}
.notify-bulk-send{display:inline-flex;align-items:center;padding:10px 18px;border:0;border-radius:9px;background:#24344b;color:#fff;font-weight:700;cursor:pointer}
.notify-bulk-send:hover{background:#18263a}
.notify-bulk-send[hidden]{display:none}
.student-followup-table .bulk-select-head,.student-followup-table .bulk-select-cell{display:none;width:44px;text-align:center}
.student-followup-wrap.bulk-select-mode .student-followup-table .bulk-select-head,.student-followup-wrap.bulk-select-mode .student-followup-table .bulk-select-cell{display:table-cell}
.student-followup-table .bulk-select-head input,.student-followup-table .bulk-select-cell input{width:17px;height:17px;margin:0;accent-color:#28b9e9;cursor:pointer}
.bulk-notice-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:#070b14d9;backdrop-filter:blur(5px)}
.bulk-notice-overlay[hidden]{display:none}
.bulk-notice-dialog{position:relative;width:min(780px,100%);max-height:min(92vh,900px);overflow:auto;padding:26px;border:1px solid #263247;border-radius:18px;background:#0d121d;color:#edf3fb;box-shadow:0 26px 90px #0008}
.bulk-notice-dialog h2{margin:0 40px 7px 0;font-size:1.25rem}
.bulk-notice-subtitle,.bulk-notice-instruction{color:#94a4bb;margin:5px 0 16px}
.bulk-notice-criterion{margin:0;padding:12px 18px;border:1px solid #202a3b;border-bottom:0;border-radius:12px 12px 0 0;background:#0a0f18;color:#9fb5d2;font-size:.85rem}
.bulk-notice-text{display:block;width:100%;min-height:340px;max-height:55vh;resize:vertical;padding:20px;border:1px solid #202a3b;border-radius:0 0 12px 12px;background:#0a0f18;color:#eef5ff;font:14px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}
.bulk-notice-x{position:absolute;top:16px;right:18px;border:0;background:transparent;color:#aab5c4;font-size:1.7rem;cursor:pointer}
.bulk-whatsapp-link{display:flex;flex-direction:column;gap:5px;width:max-content;max-width:100%;padding:14px 18px;border:1px solid #ddabb4;border-radius:12px;background:#25151b;color:#ffd6dd;font-weight:700;text-decoration:none}
.bulk-whatsapp-link small{color:#9eabba;font-weight:400}
.bulk-notice-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.bulk-notice-actions .button-quiet{background:#202c3e;color:#f1f5fa}
.bulk-notice-status{min-height:1em;color:#93d8b4}
body.bulk-modal-open{overflow:hidden}
.notify-button:disabled{opacity:.42;cursor:not-allowed;filter:saturate(.45)}
@media(max-width:600px){.bulk-notice-overlay{padding:9px}.bulk-notice-dialog{padding:20px 14px}.bulk-notice-text{min-height:48vh}.bulk-notice-actions{flex-wrap:wrap}.bulk-notice-actions button{flex:1}}

/* Panel de materias y consulta permanente por área */
.subject-hub-intro,.subject-area-banner{position:relative;overflow:hidden;margin:0 0 22px;padding:26px 28px;border:1px solid #283248;border-radius:17px;color:#edf4ff;background-color:#0c111c;background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px),radial-gradient(ellipse at 92% 4%,#c8102e30,transparent 34%);background-size:25px 25px,25px 25px,auto}
.subject-hub-intro .eyebrow,.subject-area-banner .eyebrow{margin:0 0 8px;color:#ff687d;font-size:.72rem;font-weight:800;letter-spacing:.12em}
.subject-hub-intro h2,.subject-area-banner h2{margin:0 0 8px;color:#f7f9fd;font-size:clamp(1.65rem,3vw,2.3rem)}
.subject-hub-intro h2 span{color:#f05467}.subject-hub-intro>p:last-child,.subject-area-banner>p:last-child{max-width:720px;margin:0;color:#a5b2c7;line-height:1.6}
.subject-area-banner>a{display:inline-block;margin:0 0 17px;color:#c6d2e5;font-size:.85rem;font-weight:700}.subject-area-banner>a:hover{color:#fff}
.subject-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:13px}
.subject-hub-card{--subject-accent:#36b8e9;display:flex;min-height:156px;flex-direction:column;gap:10px;padding:17px;border:1px solid #2d374a;border-radius:14px;color:#f2f6fc;background:radial-gradient(ellipse at 95% 0,color-mix(in srgb,var(--subject-accent) 24%,transparent),transparent 55%),#141d2f;transition:transform .16s,border-color .16s,box-shadow .16s}
.subject-hub-card:hover{transform:translateY(-2px);border-color:var(--subject-accent);box-shadow:0 10px 28px #05081260;color:#fff}
.subject-hub-card:nth-child(4n+1){--subject-accent:#ff8a16}.subject-hub-card:nth-child(4n+2){--subject-accent:#258deb}.subject-hub-card:nth-child(4n+3){--subject-accent:#a06add}.subject-hub-card:nth-child(4n){--subject-accent:#12b98d}
.subject-hub-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:9px;color:white;background:var(--subject-accent);font-size:1.1rem}
.subject-hub-card>strong{font-size:1rem}.subject-hub-card>small{min-height:32px;color:#9babc2;font-size:.76rem;line-height:1.45}
.subject-hub-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px;border-top:1px solid #ffffff12;color:#8091aa;font-size:.62rem;letter-spacing:.08em}
.subject-hub-card-foot b{color:#d8e2f1;font-size:.72rem;letter-spacing:0}
.subject-area-tabs{display:flex;gap:7px;margin:0 0 18px;padding:5px;border:1px solid #e0e6ef;border-radius:13px;background:#fff;width:max-content;max-width:100%}
.subject-area-tabs a{display:flex;align-items:center;gap:8px;padding:9px 13px;border-radius:9px;color:#56657c;font-size:.85rem;font-weight:700;white-space:nowrap}
.subject-area-tabs a.active{background:#35101a;color:white}.subject-area-tabs a span{display:grid;min-width:22px;height:22px;place-items:center;padding:0 5px;border-radius:20px;background:#ffffff22;font-size:.72rem}
.subject-course-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
.subject-course-card{display:flex;min-height:136px;flex-direction:column;gap:9px;padding:15px;border:1px solid #dfe5ee;border-radius:13px;background:#fff;box-shadow:0 5px 18px #16274708}
.subject-course-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.subject-course-card h3{margin:0;color:#17233b;font-size:1rem}.subject-course-card-top>span{color:#73819a;font-size:.72rem;white-space:nowrap}
.subject-course-card>p{min-height:18px;margin:0;color:#6d7b91;font-size:.77rem;line-height:1.45}
.subject-course-card .button{display:block;width:100%;margin-top:auto;padding:9px 12px;border-radius:8px;text-align:center;font-size:.76rem}
.subject-manage-links{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.subject-manage-links .button-quiet{background:#fff;color:#35101a;border:1px solid #e1d7db}
.subject-teacher-list,.subject-roster{padding:21px;border:1px solid #e0e6ef;border-radius:15px;background:#fff}
.subject-teacher-list h3,.subject-roster-heading h3{margin:0;color:#17233b}.subject-teacher-list>article{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid #edf0f5}.subject-teacher-list>article:last-of-type{border-bottom:0}
.subject-teacher-avatar{display:grid;width:40px;height:40px;place-items:center;border-radius:12px;background:#fde8ec;color:#a50f27}.subject-teacher-list article div{display:grid;gap:3px}.subject-teacher-list article small,.subject-student-list article small{color:#7d8aa0;font-size:.76rem}
.subject-roster{margin-top:17px}.subject-roster-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.subject-roster-heading .eyebrow{margin:0 0 4px;color:#b3142f;font-size:.68rem;font-weight:800;letter-spacing:.12em}.subject-student-list{border-top:1px solid #e9edf3}.subject-student-list article{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid #edf0f5}.subject-student-list article>span{color:#8290a5;font-size:.82rem}.subject-student-list article strong{color:#26354d;font-size:.9rem}.subject-empty{padding:18px;border:1px dashed #cbd4e1;border-radius:12px;color:#71809a}
@media(max-width:600px){.subject-hub-intro,.subject-area-banner{padding:20px 17px}.subject-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.subject-hub-card{min-height:155px;padding:13px}.subject-hub-card-foot{font-size:.52rem}.subject-hub-card-foot b{font-size:.68rem}.subject-area-tabs{width:100%}.subject-area-tabs a{flex:1;justify-content:center;padding:9px 7px;font-size:.75rem}.subject-roster-heading{align-items:flex-start;flex-direction:column}.subject-student-list article{grid-template-columns:30px minmax(0,1fr)}.subject-student-list article small{grid-column:2}}.subject-family-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;padding:0 12px 15px 50px;border-bottom:1px solid #edf0f5}.subject-family-summary section{padding:12px;border:1px solid #e7ebf2;border-radius:10px;background:#f8f9fc}.subject-family-summary h4{margin:0 0 8px;color:#26354d;font-size:.82rem}.subject-family-summary ul{list-style:none;margin:0;padding:0}.subject-family-summary li{display:flex;flex-direction:column;gap:3px;padding:7px 0;border-top:1px solid #e8ecf3}.subject-family-summary li span,.subject-family-summary section>p{margin:0;color:#78869c;font-size:.73rem}.subject-family-summary li strong{color:#34445e;font-size:.78rem}
@media(max-width:600px){.subject-family-summary{grid-template-columns:1fr;padding-left:12px}}.student-followup-table .followup-work{min-width:125px;padding:8px 10px;border:1px solid #dbe2ed;border-radius:8px;background:#fff;color:#23324b;font-size:.82rem}.student-followup-table th{white-space:normal}.history-panel h2{margin:0 0 14px}.history-panel+.history-panel{margin-top:16px}
.student-followup-table{min-width:1220px}

/* Colores unificados del panel de materias con el tema general */
.subject-hub-intro,.subject-area-banner{color:var(--navy);background:var(--surface);background-image:none;border-color:var(--line);box-shadow:0 8px 26px #1b2a4a08}
.subject-hub-intro .eyebrow,.subject-area-banner .eyebrow{color:#c8102e}
.subject-hub-intro h2,.subject-area-banner h2{color:var(--navy)}
.subject-hub-intro h2 span{color:#c8102e}
.subject-hub-intro>p:last-child,.subject-area-banner>p:last-child{color:var(--muted)}
.subject-area-banner>a{color:#a50f27}
.subject-area-banner>a:hover{color:#c8102e}
.subject-course-banner{min-height:178px;padding-right:min(42%,430px)}
@media(max-width:760px){.subject-course-banner{min-height:0;padding-right:20px;padding-bottom:20px}}
.subject-hub-card{--subject-accent:#c8102e;color:var(--navy);background:var(--surface);border-color:var(--line);box-shadow:0 8px 26px #1b2a4a08}
.subject-hub-card:hover{color:var(--navy);border-color:#c8102e;box-shadow:0 10px 24px #1b2a4a12}
.subject-hub-card:nth-child(4n+1),.subject-hub-card:nth-child(4n+2),.subject-hub-card:nth-child(4n+3),.subject-hub-card:nth-child(4n){--subject-accent:#c8102e}
.subject-hub-icon{color:#fff;background:var(--subject-accent)}
.subject-hub-icon svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.subject-hub-card>small{color:var(--muted)}
.subject-hub-card-foot{color:var(--muted);border-top-color:var(--line)}
.subject-hub-card-foot b{color:#a50f27}
.subject-area-tabs{background:var(--surface);border-color:var(--line)}
.subject-area-tabs a.active{background:#c8102e;color:#fff}
.courses-layout,.subject-course-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start}
.subject-course-layout:not(.with-course-tools){grid-template-columns:minmax(0,1fr)}
.courses-main,.subject-course-content{min-width:0}
.course-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 13px}
.course-list-heading h2{margin:0;font-size:1.15rem}
.course-list-heading>span{color:var(--muted);font-size:.82rem}
.registered-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.registered-course-card{display:flex;min-width:0;min-height:145px;flex-direction:column;gap:9px;padding:15px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:0 5px 18px #16274708}
.registered-course-card>header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.registered-course-card h3{margin:0;color:var(--navy);font-size:1.02rem}
.registered-course-card p,.subject-course-card .subject-course-meta{margin:0;color:var(--muted);font-size:.77rem}
.registered-course-card>.button,.subject-course-card>.button{width:100%;margin-top:auto;padding:9px 12px;text-align:center;font-size:.78rem}
.registered-course-card form,.course-card-actions form{margin:0}
.course-remove{display:grid;width:31px;height:31px;place-items:center;padding:0;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);font-size:1rem}
.course-remove:hover{border-color:#c8102e;background:#fff0f2;color:#c8102e;box-shadow:none;transform:none}
.course-card-actions{display:flex;align-items:center;gap:8px}
.course-card-actions>span{color:var(--muted);font-size:.72rem;white-space:nowrap}
.course-tools{min-width:0}
.course-create-panel{position:sticky;top:98px;margin:0;padding:19px}
.course-create-panel .eyebrow{margin:0 0 6px}
.course-create-panel h2{margin:0 0 12px;font-size:1.15rem}
.course-create-panel label{margin:11px 0;font-size:.82rem}
.course-create-panel input,.course-create-panel select{margin-top:6px;padding:10px 11px;font-size:.88rem}
.course-create-panel>button{width:100%;margin-top:6px}
.course-empty{grid-column:1/-1;padding:15px;color:var(--muted)}
@media(max-width:1000px){.courses-layout,.subject-course-layout{grid-template-columns:minmax(0,1fr) 250px;gap:12px}.registered-course-grid,.subject-course-grid{grid-template-columns:1fr}}
@media(max-width:760px){.courses-layout,.subject-course-layout{grid-template-columns:1fr}.course-create-panel{position:static}.registered-course-grid,.subject-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.registered-course-grid,.subject-course-grid{grid-template-columns:1fr}}
.admin-inline-edit{display:grid;grid-template-columns:repeat(2,minmax(130px,1fr));gap:9px;min-width:min(560px,75vw);margin:10px 0;padding:13px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.admin-inline-edit label{display:grid;gap:4px;color:var(--muted);font-size:.76rem;font-weight:650}
.admin-inline-edit input,.admin-inline-edit select,.admin-compact-edit input{min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--navy);font:inherit}
.admin-inline-edit button{grid-column:1/-1;justify-self:start}
.admin-compact-edit,.admin-toggle-form{display:flex;align-items:center;gap:7px;margin:4px 0}
.admin-toggle-form{margin-top:8px}
.admin-toggle-form button.button-quiet{min-height:40px;padding:9px 15px;border:1px solid #f1cbd2;border-radius:10px;background:#fff1f2;color:#a50f27;font-weight:700;box-shadow:none}
.admin-toggle-form button.button-quiet:hover{background:#a50f27;color:#fff;box-shadow:0 5px 12px #a50f2726;transform:translateY(-1px)}
.admin-toggle-form button.button-delete{min-height:40px;padding:9px 15px;border:1px solid #c90f35;border-radius:10px;background:#c90f35;color:#fff;font-weight:700;box-shadow:none}
.admin-toggle-form button.button-delete:hover{background:#a80c2c;border-color:#a80c2c;color:#fff;box-shadow:0 5px 12px #a80c2c30;transform:translateY(-1px)}
.role-padre .sidebar{background:radial-gradient(circle at 0 0,#811044 0,transparent 44%),linear-gradient(180deg,#5b0b35,#47072d 72%,#370522)}
.role-padre .side-label{color:#e3a9c3}
.role-padre .side-link{color:#d6a9bd}
.role-padre .side-link:hover{background:#ffffff12;color:#fff}
.role-padre .side-link.active{background:linear-gradient(100deg,#b30f50,#8d0b42);color:#fff}
.role-padre .side-icon{background:#ffffff12;color:#f1bfd2}
.role-padre .side-link.active .side-icon{background:#c91a5b;color:#fff}
.role-padre .side-indicator{background:#ffb2d0}
.parent-children-intro{margin:0 0 18px;padding:24px 26px;border:1px solid #f1d7e2;border-radius:16px;background:linear-gradient(135deg,#fff,#fff7fa)}
.parent-children-intro .eyebrow,.parent-child-info .eyebrow{margin:0 0 7px;color:#a50f4d}
.parent-children-intro h2{margin:0 0 7px;color:#40152b;font-size:1.25rem}
.parent-children-intro>p:last-child{margin:0;color:#71809a;line-height:1.6}
.parent-children-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px}
.parent-child-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:15px;align-items:start;margin:0;padding:20px;border-color:#efdee5}
.parent-child-avatar{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#f9e2eb;color:#a50f4d;font:800 1.1rem Manrope,system-ui,sans-serif}
.parent-child-info h2{margin:0 0 5px;color:#40152b;font-size:1.05rem}
.parent-child-info>p:not(.eyebrow){margin:0;color:#71809a;font-size:.88rem}
.parent-child-relationship{display:inline-block;margin-top:9px;padding:4px 9px;border-radius:999px;background:#fff1f6;color:#8d1746;font-size:.74rem;font-weight:700}
.parent-child-action{grid-column:2;justify-self:start;margin-top:3px;background:#a50f4d}
.parent-child-action:hover{background:#850b3d;box-shadow:0 6px 14px #a50f4d30}
.parent-children-empty{grid-column:1/-1;margin:0}.parent-children-empty h2{margin-top:0;color:#40152b}
@media(max-width:520px){.parent-children-intro{padding:20px}.parent-child-card{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:16px}.parent-child-avatar{width:40px;height:40px}.parent-child-action{grid-column:1/-1}}
.parent-report-child{padding:24px;border-color:#efdee5}
.parent-report-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:16px;border-bottom:1px solid #f0e4e9}
.parent-report-heading .eyebrow{margin:0 0 5px;color:#a50f4d}
.parent-report-heading h2{margin:0;color:#40152b}
.parent-report-heading>span{padding:7px 11px;border-radius:999px;background:#fff1f6;color:#8d1746;font-size:.8rem;font-weight:700}
.parent-report-section{margin-top:20px}
.parent-report-section h3{margin:0 0 10px;color:#521632;font-size:1rem}
.parent-report-section .table-wrap{border:1px solid #edf0f5;border-radius:10px}
.parent-report-section table{font-size:.88rem}
.parent-report-section th{white-space:nowrap}
.parent-report-empty{margin:0;padding:13px 15px;border-radius:9px;background:#fafbfe;color:#7c879a;font-size:.9rem}
.parent-behavior-list{display:grid;gap:9px}
.parent-behavior-list article,.parent-report-notifications article{padding:13px 15px;border:1px solid #f1dce5;border-left:3px solid #bc245c;border-radius:9px;background:#fff8fb}
.parent-behavior-list article strong,.parent-behavior-list article span{display:block}
.parent-behavior-list article strong{color:#50152f;font-size:.9rem}
.parent-behavior-list article span{margin-top:5px;color:#7d7080;font-size:.78rem}
.parent-behavior-list article p,.parent-report-notifications article p{margin:8px 0 0;color:#657187;font-size:.87rem;line-height:1.55}
.parent-report-notifications h2{margin-top:0;color:#40152b}
.parent-report-notifications article+article{margin-top:9px}
.parent-report-empty-state{color:#69768b}.parent-report-empty-state h2{margin:0 0 6px;color:#40152b;font-size:1.05rem}.parent-report-empty-state p{margin:0}.parent-report-empty-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}.parent-report-empty-panel{margin:0;border-color:#efdee5}.parent-report-empty-panel h2{margin:0 0 8px;color:#521632;font-size:1rem}.parent-report-empty-panel p{margin:0;color:#7c879a;font-size:.88rem;line-height:1.55}
.parent-license-intro{border-color:#efdee5;background:linear-gradient(135deg,#fff,#fff7fa)}.parent-license-intro .eyebrow{margin:0 0 7px;color:#a50f4d}.parent-license-intro h2{margin:0 0 7px;color:#40152b}.parent-license-intro p:last-child,.parent-license-empty p{margin:0;color:#71809a;line-height:1.6}.parent-license-form{max-width:850px}.parent-license-form button{background:#a50f4d}.parent-license-form button:hover{background:#850b3d;box-shadow:0 6px 14px #a50f4d30}.parent-license-history h2,.parent-license-empty h2{margin-top:0;color:#40152b}.parent-license-detail{margin-top:7px}.parent-license-detail summary{color:#8d1746;font-size:.78rem;font-weight:700;cursor:pointer}.parent-license-detail p{max-width:360px;margin:6px 0 0;white-space:normal}.license-status{display:inline-block;padding:5px 9px;border-radius:999px;background:#fff2d9;color:#8a5b00;font-size:.75rem;font-weight:750;white-space:nowrap}.license-status-aprobada{background:#e8f7ef;color:#187247}.license-status-rechazada{background:#fff0f0;color:#a6333b}.license-review-form{display:grid;gap:6px;min-width:145px}.license-review-form button{padding:8px 10px;font-size:.78rem}.license-review-form .button-quiet{background:#f1f4fa;color:#40506c}
@media(max-width:600px){.parent-report-child{padding:17px}.parent-report-heading{align-items:flex-start;flex-direction:column}.parent-report-section .table-wrap{margin:0 -2px}}
.admin-toggle-form button.button-quiet:focus-visible,td details>summary:focus-visible{outline:3px solid #4169e155;outline-offset:2px}
.admin-compact-edit input{width:min(320px,45vw)}
td details>summary{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #e5eaf2;border-radius:9px;background:#f8faff;color:#34425c;font-size:.84rem;font-weight:700;cursor:pointer;list-style:none;transition:background .15s,border-color .15s,color .15s}
td details.admin-password-reset{margin-top:8px}
td details.admin-password-reset[open]{min-width:min(380px,78vw)}
.admin-password-reset .admin-inline-edit{min-width:min(380px,78vw);grid-template-columns:1fr;margin-bottom:6px}
.admin-password-help{margin:0 0 10px;color:var(--muted);font-size:.76rem;line-height:1.45}
td details>summary::-webkit-details-marker{display:none}
td details>summary::before{content:'+';display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e9eefb;color:#4169e1;font-size:1rem;line-height:1}
td details[open]>summary{border-color:#cbd7fa;background:#eef2ff;color:#3158d1}
td details[open]>summary::before{content:'−';background:#4169e1;color:#fff}
@media(max-width:620px){.admin-inline-edit{grid-template-columns:1fr;min-width:0}.admin-inline-edit button{grid-column:auto}.admin-compact-edit{align-items:stretch;flex-direction:column}.admin-compact-edit input{width:100%}}
.side-nav .side-link{width:100%;flex:0 0 auto}
.side-nav .side-icon{flex:0 0 27px}
@media(max-width:680px){.side-nav .side-link{width:auto}.side-nav .side-icon{flex-basis:23px}}
@media(max-width:760px){.subject-course-banner{min-height:0}}
.schedule-management{margin-bottom:16px}.schedule-management h2{margin:0 0 14px}.schedule-form label,.schedule-inline-form label{display:grid;gap:6px;color:#52617a;font-size:.82rem;font-weight:650}.schedule-form select,.schedule-form input,.schedule-inline-form select,.schedule-inline-form input{width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid #dce3ee;border-radius:9px;background:#fff;color:#263650}.schedule-form-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;margin:12px 0}.schedule-edit summary{color:#a50f27;font-weight:700;cursor:pointer}.schedule-inline-form{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:9px;min-width:280px;margin:10px 0}.schedule-inline-form button{grid-column:1/-1}.schedule-edit>form:last-child{margin-top:8px}.schedule-edit>form:last-child button{width:100%}@media(max-width:700px){.schedule-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-inline-form{min-width:240px;grid-template-columns:1fr}}

.schedule-saturday-note{margin:0 0 14px;color:#71809a;font-size:.86rem;line-height:1.5}
.student-search-field{position:relative;margin:0 0 8px}.student-search-field svg{position:absolute;left:12px;top:50%;width:17px;height:17px;transform:translateY(-50%);fill:none;stroke:#78869d;stroke-width:2;pointer-events:none}.student-search-input{width:100%;min-height:42px;padding:9px 12px 9px 38px;border:1px solid #d7dfeb;border-radius:10px;background:#fff;color:#17243a;font:inherit;font-size:.92rem;outline:none}.student-search-input:focus{border-color:#b31243;box-shadow:0 0 0 3px #b3124318}.student-search-input::placeholder{color:#8995a8}.student-search-empty{display:block;margin:-2px 0 8px;color:#8b5363;font-size:.8rem}.student-search-empty[hidden]{display:none}

.schedule-delete-form{margin-top:8px}.schedule-delete-form button{width:100%;min-height:40px;padding:9px 12px;border:1px solid #c90f35;border-radius:10px;background:#c90f35;color:#fff;font-weight:700}.schedule-delete-form button:hover{background:#a80c2c;border-color:#a80c2c;box-shadow:0 5px 12px #a80c2c30;transform:translateY(-1px)}

/* Vista de horarios inspirada en el tablero de clases */




.schedule-board{padding:14px 16px 18px;border-color:#e2e9f7;border-radius:18px;background:#fff}
.schedule-filterbar{display:grid;grid-template-columns:minmax(210px,1.5fr) repeat(3,minmax(150px,1fr)) auto;align-items:center;gap:9px;margin:0 0 14px}
.schedule-filterbar label{margin:0}.schedule-search{display:flex;align-items:center;gap:8px;min-width:0;padding:0 13px;border:1px solid #dce5f7;border-radius:999px;background:#fff;color:#51658b;box-shadow:0 3px 9px #19386d0a}.schedule-search span{font-size:1.55rem;line-height:1}.schedule-search input{height:40px;min-width:0;margin:0;padding:8px 2px;border:0;box-shadow:none;background:transparent;font-size:.86rem}.schedule-search input:focus{border:0;box-shadow:none}.schedule-filter-select select{height:42px;margin:0;padding:8px 30px 8px 12px;border-color:#dce5f7;border-radius:999px;font-size:.82rem;box-shadow:0 3px 9px #19386d0a}.schedule-reset{min-height:42px;padding:9px 13px;border-radius:999px;background:#163f8a;font-size:.81rem;white-space:nowrap}.schedule-reset:hover{background:#0d2f6b}
.schedule-day-tabs{display:flex;gap:4px;width:max-content;max-width:100%;overflow-x:auto;padding:4px;border-radius:13px;background:#edf2fc}.schedule-day-tab{min-width:118px;min-height:42px;padding:9px 15px;border-radius:9px;background:transparent;color:#22365e;font-size:.84rem;font-weight:750;white-space:nowrap}.schedule-day-tab:hover{background:#e0e9fa;color:#163f8a;box-shadow:none;transform:none}.schedule-day-tab.active{background:#124eae;color:#fff;box-shadow:0 4px 10px #124eae28}.schedule-board .schedule-day-tab.active:hover{background:#124eae;color:#fff}
.schedule-table-heading{display:flex;align-items:center;gap:11px;margin:12px 0 0;padding:12px 15px;border:1px solid #e1e9fa;border-bottom:0;border-radius:14px 14px 0 0;background:linear-gradient(90deg,#edf3ff,#f8faff)}.schedule-list-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#1550a8;color:#fff;font-size:1.2rem}.schedule-table-heading h3{margin:0;color:#13204a;font:800 1rem Manrope,system-ui,sans-serif}.schedule-count{margin-left:auto;padding:7px 12px;border-radius:999px;background:#d9e8ff;color:#174a9c;font-size:.76rem;font-weight:800}
.schedule-table-wrap{border:1px solid #e2e9f7;border-radius:0 0 13px 13px}.schedule-table{min-width:760px;border-collapse:collapse}.schedule-table thead th{padding:11px 14px;background:#e8efff;color:#172951;font-size:.8rem;font-weight:800}.schedule-table tbody tr{border-bottom:1px solid #e8edf5}.schedule-table tbody tr:last-child{border-bottom:0}.schedule-table tbody tr:hover{background:#f8faff}.schedule-table tbody td{height:58px;padding:10px 14px;color:#18284d;font-size:.88rem;vertical-align:middle}.schedule-time-cell{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}.schedule-course-pill{display:inline-block;padding:7px 12px;border-radius:999px;background:#dceaff;color:#1652ad;font-weight:800;white-space:nowrap}.schedule-subject-cell{color:#152246}.schedule-teacher-cell{white-space:nowrap}.schedule-status{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#dcf8e7;color:#15803d;font-size:.79rem;font-weight:800;white-space:nowrap}.schedule-status i{width:15px;height:15px;border-radius:50%;background:#16a34a;box-shadow:inset 0 0 0 4px #dcf8e7}.schedule-actions{position:relative;width:72px;min-width:72px;text-align:center}.schedule-actions>.schedule-edit{position:relative;display:block;width:40px;margin:0 auto}.schedule-actions>.schedule-edit>summary{position:relative;display:grid;place-items:center;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:10px;background:#e7efff;color:transparent;list-style:none;text-align:center;font-size:0;cursor:pointer}.schedule-actions>.schedule-edit>summary::-webkit-details-marker{display:none}.schedule-actions>.schedule-edit>summary::marker{content:""}.schedule-actions>.schedule-edit>summary::before{content:"";display:block;width:4px;height:4px;border-radius:50%;background:#183d82;box-shadow:0 -7px #183d82,0 7px #183d82}.schedule-actions>.schedule-edit>summary:hover{background:#d6e5ff;box-shadow:none;transform:none}.schedule-actions>.schedule-edit[open]>summary{background:#d6e5ff}.schedule-action-menu{position:absolute;z-index:10;top:46px;right:0;width:min(320px,calc(100vw - 48px));padding:12px;border:1px solid #dfe6f1;border-radius:12px;background:#fff;box-shadow:0 12px 34px #1a2b4d24;text-align:left}.schedule-action-menu .schedule-inline-form{min-width:0;grid-template-columns:1fr 1fr}.schedule-action-menu .schedule-inline-form label:first-child{grid-column:1/-1}.schedule-action-menu .schedule-inline-form button{grid-column:1/-1}.schedule-action-menu .schedule-delete-form{margin-top:10px}.schedule-action-menu .schedule-delete-form button{min-height:38px}.schedule-no-results{margin:0;padding:24px;text-align:center;color:#697995}.schedule-board [hidden]{display:none!important}
@media(max-width:1000px){.schedule-filterbar{grid-template-columns:repeat(3,minmax(0,1fr))}.schedule-search{grid-column:span 2}.schedule-reset{grid-column:3}}
@media(max-width:680px){.schedule-board{padding:10px}.schedule-filterbar{grid-template-columns:1fr 1fr}.schedule-search{grid-column:1/-1}.schedule-filter-select select{font-size:.76rem}.schedule-reset{grid-column:1/-1}.schedule-day-tabs{width:100%}.schedule-day-tab{min-width:102px;flex:1 0 auto;padding:8px 11px}.schedule-table-heading{padding:10px}.schedule-table-heading h3{font-size:.9rem}.schedule-table-wrap{overflow-x:auto}.schedule-count{padding:6px 9px;font-size:.7rem}}
.schedule-actions{vertical-align:middle!important}.schedule-actions>.schedule-edit{height:40px}.schedule-actions>.schedule-edit>summary{display:flex;align-items:center;justify-content:center;line-height:0}.schedule-actions>.schedule-edit>summary::before{flex:0 0 4px}
/* La cabecera y los acentos del tablero siguen la paleta institucional */
.schedule-table-heading{border-color:#f0d9de;background:linear-gradient(90deg,#fff0f2,#fff9fa)}.schedule-list-icon{background:#c8102e;color:#fff}.schedule-count{background:#fde3e8;color:#9f1028}.schedule-table-wrap{border-color:#f0dfe2}.schedule-table thead th{background:#fff0f2;color:#4a1722}.schedule-table tbody tr{border-color:#f0e4e7}.schedule-table tbody tr:hover{background:#fffafb}.schedule-course-pill{background:#fde8ec;color:#a50f27}.schedule-status{background:#e5f6ec;color:#187247}.schedule-status i{background:#27a66b;box-shadow:inset 0 0 0 4px #e5f6ec}.schedule-actions>.schedule-edit>summary{background:#fde8ec}.schedule-actions>.schedule-edit>summary::before{background:#a50f27;box-shadow:0 -7px #a50f27,0 7px #a50f27}.schedule-actions>.schedule-edit>summary:hover,.schedule-actions>.schedule-edit[open]>summary{background:#f8d5dc}
.app-shell .schedule-board .schedule-day-tabs .schedule-day-tab{background:#fde8ec;color:#8f1026;box-shadow:none}.app-shell .schedule-board .schedule-day-tabs .schedule-day-tab:hover{background:#f8d5dc;color:#721023}.app-shell .schedule-board .schedule-day-tabs .schedule-day-tab.active{background:#c8102e;color:#fff;box-shadow:0 4px 10px #c8102e2b}.app-shell .schedule-board .schedule-day-tabs .schedule-day-tab.active:hover{background:#a50f27;color:#fff}
.schedule-status.is-inactive{background:#edf0f4;color:#687386}.schedule-status.is-inactive i{background:#8c96a5;box-shadow:inset 0 0 0 4px #edf0f4}

.student-select-control{display:grid;gap:6px}.student-search-native[hidden],.student-search-results[hidden]{display:none!important}.student-search-results{display:grid;gap:4px;max-height:240px;overflow:auto;margin:0 0 9px;padding:6px;border:1px solid #dce3ee;border-radius:10px;background:#fff}.student-search-result{width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#263650;text-align:left;font:inherit;cursor:pointer}.student-search-result:hover,.student-search-result[aria-selected=true]{background:#f0f4fb;color:#a50f27}.app-shell .student-search-results .student-search-result{background:transparent;color:#263650;box-shadow:none;transform:none}.app-shell .student-search-results .student-search-result:hover{background:#f0f4fb;color:#263650;box-shadow:none;transform:none}.app-shell .student-search-results .student-search-result[aria-selected=true]{background:#fff0f2;color:#a50f27;box-shadow:inset 3px 0 #c8102e}.student-search-selected{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:10px 12px;border:1px solid #b9e5d1;border-radius:9px;background:#f0fbf5;color:#176647}.student-search-selected[hidden]{display:none}.student-search-clear{padding:5px 9px;border:1px solid #b9e5d1;border-radius:7px;background:#fff;color:#176647;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer}

.student-search-field{display:grid;grid-template-columns:1fr}.student-search-field .student-search-selected{margin-top:7px}


.admin-course-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));gap:13px}.admin-course-card{display:grid;gap:14px;padding:17px;border:1px solid #dfe5ee;border-radius:14px;background:#fff;box-shadow:0 5px 18px #16274708}.admin-course-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.admin-course-card h3{margin:5px 0 0;color:#17233b;font-size:1.05rem}.admin-course-year{color:#8490a4;font-size:.66rem;font-weight:800;letter-spacing:.1em}.admin-course-card>header .button{padding:8px 12px;font-size:.78rem}.admin-course-roster-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid #e9edf3;color:#53637d;font-size:.82rem}.admin-course-roster-heading a{color:#b20f2c;font-size:.78rem;font-weight:700;text-decoration:none}.admin-course-roster summary{color:#30415d;font-size:.82rem;font-weight:700;cursor:pointer}.admin-course-roster ol{display:grid;gap:0;max-height:230px;overflow:auto;margin:9px 0 0;padding:0;list-style:none}.admin-course-roster li{display:grid;grid-template-columns:28px 1fr;gap:8px;padding:8px 2px;border-top:1px solid #edf0f5;color:#30415d;font-size:.8rem}.admin-course-roster li span{color:#8490a4}.admin-course-roster>p{margin:9px 0 0;color:#75839a;font-size:.8rem}
@media(max-width:760px){.admin-course-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}.admin-course-card{padding:14px}}
.admin-course-card>header{min-height:0;width:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;flex-direction:row;align-items:flex-start}.admin-course-card>header>div{min-width:0;flex:1}.admin-course-card>header form{flex:none;margin:0}.admin-course-card>header .button{white-space:nowrap}@media(max-width:760px){.admin-course-card>header{padding:0;flex-direction:row;align-items:flex-start}}
.admin-student-card .course-list-heading{align-items:center}.admin-student-card .course-list-heading h2{margin:0}.admin-student-course-caption{margin:5px 0 0;color:#71809a;font-size:.8rem}.admin-student-list{border-top:1px solid #e5eaf2}.admin-student-list-header,.admin-student-row{display:grid;grid-template-columns:minmax(220px,2fr) minmax(130px,1.05fr) minmax(90px,.65fr) minmax(350px,1.8fr);align-items:center;gap:16px}.admin-student-list-header{padding:12px 15px;background:#f7f9fd;color:#71809a;font-size:.78rem;font-weight:750}.admin-student-row{min-height:82px;padding:14px 15px;border-bottom:1px solid #e5eaf2;color:#263650}.admin-student-person,.admin-student-course,.admin-student-status-cell{display:grid;gap:3px;min-width:0}.admin-student-person strong,.admin-student-course strong{font-size:.9rem;font-weight:600;overflow-wrap:anywhere}.admin-student-course small{color:#7c8aa0;font-size:.75rem}.admin-student-status{width:max-content;padding:5px 9px;border-radius:999px;font-size:.75rem;font-weight:700}.admin-student-status.is-active{background:#eaf7ef;color:#187247}.admin-student-status.is-inactive{background:#f1f3f7;color:#69778d}.admin-student-actions{min-width:0}.admin-student-action-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.admin-student-action-buttons .admin-toggle-form{margin:0}.admin-student-edit{position:relative}.admin-student-edit>summary{display:flex;min-height:40px;align-items:center;justify-content:center;padding:9px 13px;border:1px solid #dfe6f1;border-radius:10px;background:#f7f9fd;color:#34445e;font-size:.82rem;font-weight:700;list-style:none;white-space:nowrap;cursor:pointer}.admin-student-edit>summary::-webkit-details-marker{display:none}.admin-student-edit>summary:hover{background:#edf2fa}.admin-student-edit[open]{flex:1 0 100%}.admin-student-edit .admin-inline-edit{width:min(560px,100%);min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 0 0;padding:12px;box-shadow:0 8px 24px #14244812}.admin-student-action-buttons .admin-toggle-form button{white-space:nowrap}.admin-student-mobile-label{display:none}.admin-student-empty{margin:0;padding:18px;color:#71809a}
.student-list-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.student-list-search label{flex:1 1 280px;margin:0}.student-pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 0;color:#71809a;font-size:.82rem}.student-pagination [aria-disabled="true"]{opacity:.55;pointer-events:none}
@media(max-width:900px){.admin-student-list-header{display:none}.admin-student-row{grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;padding:15px}.admin-student-person,.admin-student-actions{grid-column:1/-1}.admin-student-actions{display:grid;gap:7px}.admin-student-mobile-label{display:block;color:#8490a4;font-size:.68rem;font-weight:750;letter-spacing:.04em}.admin-student-actions .admin-student-mobile-label{margin-bottom:1px}.admin-student-edit .admin-inline-edit{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.admin-student-row{grid-template-columns:1fr 1fr;gap:10px;padding:13px}.admin-student-person,.admin-student-actions{grid-column:1/-1}.admin-student-action-buttons{align-items:stretch;flex-direction:column}.admin-student-action-buttons>*{width:100%}.admin-student-edit .admin-inline-edit{grid-template-columns:1fr}.admin-student-action-buttons .admin-toggle-form button{width:100%;white-space:normal}}
.student-bulk-import{max-width:1000px;margin-bottom:16px}.student-bulk-import>p:not(.eyebrow){color:#71809a;line-height:1.6}.student-import-template{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}.student-import-template a{font-weight:700}.student-import-template span{font-size:.82rem;color:#71809a}.student-import-form{display:grid;grid-template-columns:minmax(200px,1fr) minmax(250px,1.3fr) auto;gap:14px;align-items:end}.student-import-form label{margin:0}.student-import-form input[type=file]{padding:10px}.student-import-preview{margin-top:22px;border-top:1px solid #e5eaf2;padding-top:18px}.student-import-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.student-import-summary strong{margin-right:8px}.student-import-summary span{padding:6px 10px;border-radius:999px;background:#f3f6fb;color:#53647e;font-size:.78rem;font-weight:700}.student-import-preview>p{color:#71809a;font-size:.88rem;line-height:1.55}.student-import-table{min-width:760px}.student-import-table td small{display:block;margin-top:4px;color:#71809a;line-height:1.4}.student-import-status{display:block;font-size:.8rem}.student-import-status.status-new{color:#187247}.student-import-status.status-link{color:#275cc5}.student-import-status.status-existing{color:#68778e}.student-import-status.status-error{color:#c01835}.student-import-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.student-import-actions form{margin:0}@media(max-width:780px){.student-import-form{grid-template-columns:1fr}.student-import-actions form,.student-import-actions button{width:100%}}
.admin-student-entry>h2{margin:3px 0 18px}.student-single-form{margin:0}.student-single-form>label{margin-top:14px}.student-entry-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.student-entry-actions .student-import-toggle{margin:0}.student-import-toggle>summary{list-style:none;cursor:pointer}.student-import-toggle>summary::-webkit-details-marker{display:none}.student-import-toggle[open]{flex:1 0 100%;margin-top:4px}.student-import-panel{padding:18px 2px 2px;color:#71809a}.student-import-panel>p:first-child{margin-top:0}.student-import-template{margin:12px 0}.student-import-form{grid-template-columns:minmax(200px,1fr) minmax(250px,1.3fr) auto}.student-import-form input[type=file]{max-width:100%}.student-import-preview{color:#18243c}
@media(max-width:780px){.student-import-form{grid-template-columns:1fr}}

/* Reflow the application shell on phones without clipping navigation or page content. */
@media(max-width:680px){
  .app-shell,.main-area{width:100%;min-width:0;max-width:100%;}
  .app-shell{overflow-x:clip;}
  .sidebar{width:100%;min-width:0;overflow:visible;}
  .sidebar .side-brand{width:calc(100% - 92px);max-width:none;min-width:0;}
  .sidebar .side-brand>span{max-width:none;}
  .sidebar .side-nav{display:grid;width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:3px 0 8px;overflow:visible;}
  .sidebar .side-nav .side-link{width:100%;min-width:0;min-height:42px;padding:5px 8px;white-space:normal;overflow-wrap:anywhere;}
  .sidebar .side-nav .side-icon{flex:0 0 23px;}
  .sidebar .side-footer{top:10px;right:12px;}
  .sidebar .side-logout{min-height:36px;padding:6px 8px;white-space:nowrap;}
  .topbar{gap:10px;width:100%;min-width:0;}
  .topbar>div:first-child{flex:1;min-width:0;}
  .topbar strong{overflow-wrap:anywhere;}
  .topbar-account{flex:0 0 auto;white-space:nowrap;}
  .page-content{width:100%;min-width:0;max-width:100%;padding:22px 12px 14px;}
  .page-content>*{min-width:0;max-width:100%;}
  .page-content .card,.page-content form{min-width:0;max-width:100%;}
  .table-wrap{max-width:100%;overscroll-behavior-x:contain;}
}
@media(max-width:380px){
  .sidebar .side-nav{grid-template-columns:minmax(0,1fr);}
  .sidebar .side-brand{width:calc(100% - 78px);}
  .sidebar .side-logout{width:36px;justify-content:center;font-size:0;}
  .sidebar .side-logout span{font-size:1rem;}
  .topbar{padding-left:12px;padding-right:12px;}
  .topbar-account{gap:6px;font-size:.66rem;}
  .topbar-avatar{width:30px;height:30px;flex-basis:30px;}
}
@media(max-width:680px){
  .sidebar .side-nav{display:grid!important;flex-direction:initial!important;flex-wrap:initial!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important;}
  .sidebar .side-nav .side-link{display:flex!important;width:100%!important;min-width:0!important;flex:initial!important;}
  .sidebar .side-footer{display:block!important;position:absolute!important;z-index:2;width:36px!important;height:36px!important;margin:0!important;padding:0!important;border:0!important;}
  .sidebar .side-footer form{display:block!important;margin:0!important;}
  .sidebar .side-logout{display:inline-flex!important;width:36px!important;min-height:36px!important;justify-content:center!important;padding:6px!important;color:#f4c5cd!important;font-size:0!important;}
  .sidebar .side-logout span{font-size:1rem!important;}
  .topbar-account>span:not(.status-dot){display:none!important;}
}
@media(max-width:380px){.sidebar .side-nav{grid-template-columns:minmax(0,1fr)!important;}}
.student-import-control{display:contents}.student-import-form[hidden],.student-import-options[hidden]{display:none!important}.student-import-form{display:grid;grid-template-columns:minmax(240px,1fr)}.student-import-options{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;align-items:end}.student-import-options>p{grid-column:1/-1;margin:0}.student-import-options label{margin:0}.student-import-file-picker{position:fixed!important;left:-10000px!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;opacity:0!important}
.student-entry-actions [data-student-import-trigger],.student-entry-actions [data-student-import-trigger]:hover{color:#fff}

/* Mobile navigation drawer; desktop keeps the existing persistent sidebar. */
.mobile-menu-overlay,.mobile-menu-toggle,.mobile-menu-close,.mobile-brand-bar{display:none}
@media(max-width:760px){
  .app-shell{display:block!important;min-height:100vh;min-height:100dvh;overflow-x:clip}
  .mobile-menu-overlay:not([hidden]){display:block;position:fixed;inset:0;z-index:19;width:100vw;height:100vh;height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:rgba(19,12,17,.58)!important;background-color:rgba(19,12,17,.58)!important;box-shadow:none;opacity:1;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);cursor:default;transform:none;transition:opacity .25s ease}
  .mobile-menu-overlay:hover{background:rgba(19,12,17,.58)!important;background-color:rgba(19,12,17,.58)!important;box-shadow:none;transform:none}
  .sidebar{position:fixed!important;inset:0 auto 0 0;z-index:20;display:flex!important;width:min(320px,80vw)!important;max-width:320px;height:100vh;height:100dvh;min-height:0;padding:calc(192px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;transform:translateX(-105%);transition:transform .28s cubic-bezier(.2,.75,.25,1);box-shadow:12px 0 38px rgba(32,5,16,.28)}
  body.mobile-menu-open{overflow:hidden;height:100vh;height:100dvh}
  body.mobile-menu-open .sidebar{transform:translateX(0)}
  body.mobile-menu-open .mobile-menu-overlay{opacity:1}
  .sidebar .side-brand{position:absolute;top:calc(59px + env(safe-area-inset-top));left:15px;right:62px;width:auto!important;max-width:none;min-height:56px;gap:10px;padding:0!important;font-size:.8rem;line-height:1.25}
  .sidebar .side-brand .side-brand-seal{width:54px!important;height:54px!important;min-width:54px;max-width:54px;flex-basis:54px}
  .sidebar .side-brand>span{min-width:0;max-width:none;overflow-wrap:anywhere}
  .sidebar .side-brand-sub{font-size:.53rem;letter-spacing:.08em}
  .mobile-menu-close{position:absolute;top:calc(24px + env(safe-area-inset-top));right:13px;z-index:5;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:1px solid #ffffff55;border-radius:12px;background:#ffffff20!important;background-color:#ffffff20!important;color:#fff;font:400 2rem/1 system-ui,sans-serif;box-shadow:none;transform:none}
  .mobile-menu-close:hover{background:#ffffff2b!important;background-color:#ffffff2b!important;color:#fff;box-shadow:none;transform:none}
  .sidebar .side-account{display:flex!important;align-items:center;max-width:100%;margin:0 0 16px;padding:12px 10px}
  .sidebar .side-account>div:last-child{min-width:0}
  .sidebar .side-account strong,.sidebar .side-account span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sidebar .side-label{display:block!important;margin:0 10px 8px;color:#f0b7c0}
  .sidebar .side-nav{display:flex!important;flex:1 0 auto;flex-direction:column!important;flex-wrap:nowrap!important;gap:4px;width:100%;min-width:0;max-height:none;margin:0;padding:0 0 12px;overflow:visible!important;}
  .sidebar .side-nav .side-link{display:flex!important;flex:0 0 auto!important;width:100%!important;min-width:0;min-height:48px;padding:5px 10px;border-radius:11px;font-size:.86rem;white-space:normal;overflow-wrap:anywhere}
  .sidebar .side-nav .side-icon{flex:0 0 30px;width:30px;height:30px;border-radius:9px;font-size:.68rem}
  .sidebar .side-nav .side-link.active{background:#f7dce2;color:#7b1025}
  .sidebar .side-nav .side-link.active .side-icon{background:#c8102e;color:#fff}
  .sidebar .side-nav .side-indicator{display:block;right:10px;background:#c8102e}
  .sidebar .side-footer{position:static!important;display:block!important;flex:0 0 auto;width:100%!important;height:auto!important;margin:auto 0 0!important;padding:13px 2px 0!important;border:0!important;border-top:1px solid #ffffff38!important}
  .sidebar .side-footer-note{display:block!important;margin:0 0 8px;color:#f0c6ce;font-size:.72rem}
  .sidebar .side-footer-note span{color:#d6a4af}
  .sidebar .side-footer form{display:block;margin:0}
  .sidebar .side-footer .side-logout{display:flex!important;width:100%!important;min-height:46px;justify-content:flex-start;padding:10px;color:#fff;font-size:.86rem!important}
  .topbar{width:100%;min-width:0;gap:10px;padding-left:15px;padding-right:15px}
  .topbar>div:first-child{flex:1;min-width:0}
  .topbar strong{overflow-wrap:anywhere}
  .topbar-account{flex:0 0 auto;gap:8px;white-space:nowrap}
  .topbar-account>span:not(.status-dot){display:inline!important}
  .mobile-menu-toggle{display:grid;flex:0 0 42px;place-items:center;width:42px;height:42px;margin-left:1px;padding:0;border:1px solid #ead0d5;border-radius:11px;background:#fff;color:#8f1026;box-shadow:none;transform:none}
  .mobile-menu-toggle:hover{background:#fff0f2;color:#8f1026;box-shadow:none;transform:none}
  .mobile-menu-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .page-content{width:100%;min-width:0;max-width:100%;padding:22px 14px 16px}
  .page-content>*{min-width:0;max-width:100%}
  .page-content .card,.page-content form{min-width:0;max-width:100%}
  .table-wrap{max-width:100%;overscroll-behavior-x:contain}
}
@media(max-width:480px){
  .topbar-account>span:not(.status-dot){display:none!important}
  .topbar{padding-left:12px;padding-right:12px}
  .sidebar .side-brand{right:54px}
}
@media(min-width:761px){.mobile-menu-overlay,.mobile-menu-toggle,.mobile-menu-close{display:none!important}.sidebar{transform:none!important}}
@media(max-width:480px){.topbar-account>span:not(.status-dot){display:none!important}.topbar-account{gap:6px}.mobile-menu-toggle{flex-basis:40px;width:40px;height:40px}}
@media(max-width:760px){
  .mobile-brand-bar{position:sticky;top:0;z-index:6;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px;width:100%;min-height:82px;padding:12px 14px;background:linear-gradient(145deg,#8d123d,#570b2b 75%,#3d0824);color:#fff;box-shadow:0 5px 18px rgba(43,7,26,.18)}
  .mobile-brand-link{display:flex;flex:1;align-items:center;gap:11px;min-width:0;color:#fff;text-decoration:none}
  .mobile-brand-link img{display:block;width:48px;height:48px;flex:0 0 48px;object-fit:contain;border-radius:50%;background:#fff;padding:2px}
  .mobile-brand-link span{display:block;min-width:0}
  .mobile-brand-link strong,.mobile-brand-link small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-brand-link strong{font:800 .88rem/1.25 Manrope,system-ui,sans-serif}
  .mobile-brand-link small{margin-top:3px;color:#f0c6d2;font-size:.62rem;font-weight:700;letter-spacing:.08em}
  .topbar{position:sticky!important;top:82px;z-index:4;padding-right:14px!important;}
  .topbar-account{margin-right:0!important;}
  .topbar-account>span:not(.status-dot){display:none!important;}
  .mobile-menu-toggle{position:relative!important;inset:auto!important;display:grid!important;flex:0 0 46px;place-items:center;width:46px;height:46px;margin:0;padding:0;border:1px solid #ffffff55;border-radius:12px;background:#ffffff18!important;color:#fff!important;box-shadow:none;transform:none!important;z-index:7;}
  .mobile-menu-toggle:hover{background:#ffffff30!important;transform:none!important;}
  .mobile-menu-toggle svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .sidebar{background:#fff!important;color:#171b4d;box-shadow:12px 0 38px rgba(32,5,16,.28)}
  .sidebar::before{position:absolute;top:0;left:0;right:0;height:calc(185px + env(safe-area-inset-top));content:"";background:linear-gradient(145deg,#8d123d,#570b2b 75%,#3d0824)}
  .sidebar::after{position:absolute;right:0;bottom:0;left:0;height:112px;content:"";background:linear-gradient(160deg,#bd1450,#700d37 75%,#4b092a);clip-path:polygon(0 28%,28% 43%,56% 30%,100% 10%,100% 100%,0 100%)}
  .sidebar>*{position:relative;z-index:1}.sidebar>.mobile-menu-close{position:absolute!important;top:calc(24px + env(safe-area-inset-top));right:13px;z-index:5}
  .sidebar .side-brand{z-index:2;color:#fff}
  .sidebar .side-account{border-color:#e7e8f6;background:linear-gradient(110deg,#f7f7ff,#f0effc);border-radius:22px;color:#171b4d}
  .sidebar .side-avatar{width:58px;height:58px;flex-basis:58px;border-radius:50%;background:#dce8ff;color:#173d9b;font-size:1.15rem}
  .sidebar .side-account strong{color:#171b4d;font-size:.94rem}
  .sidebar .side-account span{color:#59617d;font-size:.78rem}
  .sidebar .side-label{color:#8a8ea5;font-size:.68rem}
  .sidebar .side-nav .side-link{color:#171b4d;font-size:.92rem}
  .sidebar .side-nav .side-icon{width:34px;height:34px;flex-basis:34px;border-radius:10px;background:transparent;color:#970d43;font-size:.82rem}
  .sidebar .side-nav .side-link.active{background:#f8dce8;color:#860d3c}
  .sidebar .side-nav .side-link.active .side-icon{background:#f4bfd4;color:#870d3d}
  .sidebar .side-footer{background:#fff;border-radius:10px 10px 0 0}
  .sidebar .side-footer-note{color:#7b183f}
  .sidebar .side-footer-note span{color:#8c7080}
  .sidebar .side-footer .side-logout{background:#c8102e!important;color:#fff!important;border-radius:10px;font-weight:800;opacity:1!important;box-shadow:0 5px 12px rgba(200,16,46,.22)}.sidebar .side-footer .side-logout:hover{background:#a50f27!important;color:#fff!important;box-shadow:0 7px 16px rgba(165,15,39,.28)}
}
@media(max-width:760px){
  .sidebar{background:#c8102e!important;color:#fff!important}
  .sidebar::before{background:linear-gradient(180deg,#a50f27,#c8102e 92%)}
  .sidebar::after{background:linear-gradient(160deg,#d51b40,#a50f27 78%,#870d25)}
  .sidebar .side-label{color:#ffe1e7}
  .sidebar .side-nav .side-link{color:#fff}
  .sidebar .side-nav .side-link:hover{background:#ffffff1a;color:#fff}
  .sidebar .side-nav .side-icon{background:#ffffff20;color:#fff}
  .sidebar .side-nav .side-link.active{background:#f8dce8;color:#7b1025}
  .sidebar .side-nav .side-link.active .side-icon{background:#a50f27;color:#fff}
  .sidebar .side-footer{background:transparent!important;border-top-color:#ffffff70!important}
  .sidebar .side-footer-note{color:#fff}
  .sidebar .side-footer-note span{color:#ffe1e7}
  .sidebar .side-footer .side-logout{background:#8f0d25!important;color:#fff!important;box-shadow:0 5px 12px rgba(80,5,20,.24)}
  .sidebar .side-footer .side-logout:hover{background:#700a1e!important;color:#fff!important;box-shadow:0 7px 16px rgba(70,4,18,.3)}
}@media(max-width:760px){
  .sidebar .side-nav{flex:0 0 auto!important}
  .sidebar .side-footer{flex:0 0 auto!important;margin:12px 0 0!important;padding:12px 0 calc(10px + env(safe-area-inset-bottom))!important;border-top:1px solid #ffffff70!important}
  .sidebar .side-footer-note{display:none!important}
  .sidebar .side-footer form{margin:0!important}
  .sidebar .side-footer .side-logout{min-height:50px;justify-content:flex-start;padding:8px 13px;background:#fff!important;color:#a50f27!important;border:1px solid #fff;border-radius:12px;font-size:.92rem!important;font-weight:800;box-shadow:0 5px 14px rgba(80,5,20,.2)}
  .sidebar .side-footer .side-logout:hover{background:#fff0f3!important;color:#8f0d25!important}
  .sidebar .side-footer .side-logout span{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#f8dce8;color:#a50f27;font-size:1.05rem}
}.side-icon-svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){.sidebar .side-nav .side-icon-svg{width:21px;height:21px}}