@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{--blue:#155eef;--blue-dark:#1249bd;--ink:#182230;--muted:#667085;--line:rgba(16,24,40,.09)}
*{box-sizing:border-box}body{min-height:100vh;margin:0;color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:linear-gradient(135deg,#f8fbff 0%,#f3f7ff 55%,#fff 100%);position:relative;overflow-x:hidden}
.page-glow{position:fixed;z-index:-1;width:380px;height:380px;border-radius:50%;filter:blur(70px);opacity:.38;pointer-events:none}.glow-one{background:#d9e7ff;top:-170px;right:-80px}.glow-two{background:#e4f4ff;bottom:-180px;left:-100px}
.app-navbar{background:rgba(255,255,255,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.9);box-shadow:0 8px 28px rgba(16,24,40,.035)}
.navbar-brand{font-weight:800;letter-spacing:-.5px;color:#1d2939}.navbar-brand small{display:block;font-size:10px;letter-spacing:1.1px;text-transform:uppercase;color:var(--muted);font-weight:600}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#2e75ff,#1249bd);color:white;font-size:22px;box-shadow:0 6px 14px #155eef30}
.app-container{position:relative;z-index:1;min-height:calc(100vh - 130px);padding-top:32px;padding-bottom:42px}.app-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px max(24px,calc((100% - 1110px)/2));font-size:12px;color:#98a2b3;border-top:1px solid rgba(16,24,40,.06)}
.glass-card{background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.95);border-radius:22px;box-shadow:0 18px 50px rgba(16,24,40,.055),inset 0 1px 0 rgba(255,255,255,.9);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.login-wrap{min-height:calc(100vh - 170px);display:grid;place-items:center}.login-card{width:100%;max-width:455px;padding:clamp(25px,5vw,42px)}.eyebrow{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:var(--blue);font-weight:800}.page-heading{font-size:clamp(25px,4vw,32px);font-weight:800;letter-spacing:-1.1px;margin:6px 0}.muted{color:var(--muted)}.form-label{font-size:13px;font-weight:650;color:#344054}.form-control,.form-select{min-height:47px;border-radius:12px;border-color:#e4e7ec;background:rgba(255,255,255,.9);box-shadow:none!important}.form-control:focus,.form-select:focus{border-color:#84adff;box-shadow:0 0 0 4px #155eef13!important}.btn-primary{background:var(--blue);border-color:var(--blue);box-shadow:0 7px 15px #155eef25}.btn-primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}.btn-lg{min-height:48px;border-radius:12px;font-weight:650}.btn-outline-primary{border-color:#c7d7fe;color:var(--blue)}.btn-outline-primary:hover{background:#eff4ff;color:var(--blue-dark);border-color:#a4bcfd}
.stat-card{padding:23px;height:100%}.stat-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:#eff4ff;color:var(--blue);font-size:20px;font-weight:800}.stat-label{font-size:13px;color:var(--muted);margin-top:17px}.stat-value{font-size:23px;font-weight:800;letter-spacing:-.5px}.welcome-card{padding:clamp(24px,4vw,36px);background:linear-gradient(115deg,rgba(255,255,255,.95),rgba(238,244,255,.9))}.user-chip{font-size:13px;color:#475467}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#12b76a;margin-right:7px}.glass-alert{border:0;border-radius:14px;box-shadow:0 8px 25px #1018280a}.section-title{font-size:17px;font-weight:750}.feature-row{display:flex;align-items:flex-start;gap:13px;padding:14px 0;border-bottom:1px solid var(--line)}.feature-row:last-child{border-bottom:0}.feature-check{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:9px;background:#ecfdf3;color:#039855;font-weight:800}.feature-row strong{font-size:14px}.feature-row p{font-size:12px;color:var(--muted);margin:3px 0 0}.spinner-border{vertical-align:-2px}.install-note{font-size:12px;color:var(--muted)}
@media(max-width:576px){.app-container{padding-top:20px}.app-footer{padding:18px 20px}.user-chip{padding-left:0}.login-wrap{min-height:calc(100vh - 150px)}}

/* Phase 2 sidebar + overflow control */
html,body{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}body{touch-action:pan-y;-webkit-text-size-adjust:100%}.app-shell{display:flex;min-height:100vh;width:100%;max-width:100%}.sidebar{width:258px;flex:0 0 258px;display:flex;flex-direction:column;min-height:100vh;padding:22px 14px 16px;background:rgba(255,255,255,.88);border-right:1px solid rgba(16,24,40,.07);backdrop-filter:blur(20px);z-index:1050;transition:transform .25s ease}.sidebar-brand{display:flex;align-items:center;justify-content:space-between;padding:0 10px 27px}.brand-link,.mobile-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#1d2939}.brand-copy{font-weight:800;line-height:1.2}.brand-copy small{display:block;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#667085}.sidebar-section-label{padding:0 12px 10px;font-size:10px;letter-spacing:1.4px;font-weight:800;color:#98a2b3}.sidebar-nav{display:grid;gap:5px}.sidebar-link{width:100%;display:flex;align-items:center;gap:12px;padding:12px;border:0;border-radius:12px;text-decoration:none;color:#475467;font-size:13px;font-weight:600;background:transparent;text-align:left}.sidebar-link:hover{background:#f2f6ff;color:#155eef}.sidebar-link.active{background:#edf3ff;color:#155eef;box-shadow:inset 3px 0 #155eef}.side-icon{width:23px;flex:0 0 23px;text-align:center;font-size:20px}.sidebar-bottom{margin-top:auto;padding-top:18px;border-top:1px solid rgba(16,24,40,.09)}.sidebar-profile{display:flex;align-items:center;gap:10px;padding:8px 8px 14px}.avatar{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:12px;background:#eaf1ff;color:#155eef;font-weight:800}.profile-copy{display:flex;flex-direction:column;min-width:0}.profile-copy strong{font-size:12px;overflow-wrap:anywhere}.profile-copy small{font-size:11px;color:#667085}.sidebar-close,.menu-toggle{border:0;background:#f2f4f7;border-radius:10px;width:36px;height:36px;display:grid;place-items:center;font-size:22px;color:#344054}.main-area{min-width:0;flex:1;display:flex;flex-direction:column;max-width:calc(100% - 258px)}.main-area .app-container{width:100%;max-width:1320px;margin:0 auto;flex:1;padding:30px clamp(13px,3vw,38px) 40px}.main-area .app-footer{padding:18px clamp(13px,3vw,38px);margin-top:auto}.mobile-header{display:none}.sidebar-backdrop{display:none}.table-user{display:flex;align-items:center;gap:10px;min-width:0}.table-user strong,.table-user small{display:block;overflow-wrap:anywhere}.table-user strong{font-size:13px}.table-user small{font-size:12px;color:#667085;margin-top:3px}.role-pill,.status-pill{display:inline-flex;border-radius:30px;padding:5px 9px;font-size:11px;font-weight:700;white-space:nowrap}.role-admin{background:#eff4ff;color:#3538cd}.role-teacher{background:#f2f4f7;color:#475467}.status-active{background:#ecfdf3;color:#027a48}.status-inactive{background:#fef3f2;color:#b42318}.user-table{font-size:13px}.user-table th{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#667085;white-space:nowrap}.user-table td{padding-top:15px;padding-bottom:15px}.empty-state{text-align:center;padding:42px 12px;color:#667085}.empty-state strong{display:block;color:#344054}.empty-state p{font-size:13px}.password-panel{padding:16px;border-radius:15px;background:#f8faff;border:1px solid #e7edfa}.form-text{font-size:11px;color:#667085}
@media(max-width:991.98px){.sidebar{position:fixed;inset:0 auto 0 0;height:100dvh;min-height:0;width:min(290px,84vw);transform:translateX(-105%);box-shadow:20px 0 60px #10182820;padding-bottom:max(16px,env(safe-area-inset-bottom))}.sidebar.is-open{transform:translateX(0)}.sidebar-backdrop.is-visible{display:block;position:fixed;inset:0;background:#1018285c;z-index:1040}.main-area{max-width:100%;width:100%}.mobile-header{height:62px;display:flex;align-items:center;gap:12px;padding:0 14px;background:#ffffffdf;border-bottom:1px solid #1018280c;position:sticky;top:0;z-index:1000;backdrop-filter:blur(16px)}.menu-toggle{flex:0 0 38px;cursor:pointer}.mobile-brand{gap:8px;font-size:13px;font-weight:800;min-width:0}.mobile-brand .brand-mark{width:32px;height:32px;font-size:18px}.mobile-role{margin-left:auto;font-size:10px;color:#667085;background:#f2f4f7;padding:6px 8px;border-radius:20px;white-space:nowrap}.main-area .app-container{padding-top:20px}}
@media(max-width:575.98px){.user-table thead{display:none}.user-table,.user-table tbody,.user-table tr,.user-table td{display:block;width:100%}.user-table tr{padding:10px 0;border-bottom:1px solid rgba(16,24,40,.09)}.user-table td{display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;padding:7px 2px;text-align:right!important;min-width:0}.user-table td:first-child{display:block;text-align:left!important;padding-bottom:12px}.user-table td:first-child:before{display:none}.user-table td:before{content:attr(data-label);font-size:11px;font-weight:700;color:#667085;text-align:left;flex:0 0 82px}.user-table td:last-child{justify-content:flex-end}.user-table-wrap{overflow:visible}.main-area .app-container{padding-left:12px;padding-right:12px}.welcome-card{padding:22px!important}.stat-card{padding:18px}.page-heading{overflow-wrap:anywhere}}
/* Phase 9 — reporting & analytics */
.report-bars{display:grid;gap:11px}.bar-row{display:flex;align-items:center;gap:12px;min-width:0}.bar-label{flex:0 0 34%;min-width:0;font-size:13px;font-weight:600;color:#344054;overflow-wrap:anywhere}.bar-track{flex:1;height:14px;background:#eef1f5;border-radius:999px;overflow:hidden;min-width:60px}.bar-fill{height:100%;min-width:2px;background:linear-gradient(90deg,#2e75ff,#155eef);border-radius:999px;transition:width .3s ease}.bar-val{flex:0 0 110px;font-size:13px;color:#667085;text-align:right;white-space:nowrap}.report-table th{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#667085;white-space:nowrap}.report-table td{padding:9px 6px;font-size:13px}.report-total-row{background:#f8faff;font-weight:700}.report-total-row td{border-top:2px solid #e7edfa!important}
@media(max-width:575.98px){.bar-row{flex-wrap:wrap}.bar-label{flex:0 0 100%}.bar-val{flex:0 0 auto}}


/* Phase 5 lesson-plan templates */
.repeat-rows{border:1px solid #e4e7ec;border-radius:12px;overflow:hidden;background:#fff}.repeat-row{display:flex;flex-wrap:wrap;gap:8px;padding:8px 10px;border-top:1px solid #eef1f5;align-items:flex-end}.repeat-row-head{background:#f4f7fc;font-size:11px;font-weight:700;color:#667085;text-transform:uppercase;letter-spacing:.4px}.repeat-row-head .repeat-cell{padding:2px 0}.repeat-cell{min-width:80px}.repeat-actions{flex:0 0 34px;text-align:right}.lesson-day-card{background:rgba(248,250,255,.6);border:1px solid #e7edfa}.print-day{page-break-inside:avoid}.plan-field{margin-bottom:10px}.plan-label{font-size:11px;font-weight:700;color:#667085;text-transform:uppercase;letter-spacing:.4px}.plan-value{font-size:14px;color:#344054}.plan-rows{border-collapse:collapse}.plan-rows td{border:1px solid #e4e7ec;padding:6px 8px;font-size:13px;text-align:left}.plan-rows td:first-child{font-weight:600}@media print{.app-navbar,.sidebar,.mobile-header,.app-footer{display:none!important}.main-area{max-width:100%!important}.sidebar~.main-area{max-width:100%!important}}

/* Phase 4 allocations */
.assignment-checks{max-height:220px;overflow-y:auto;padding:10px 12px;border:1px solid #e4e7ec;border-radius:12px;background:rgba(255,255,255,.7)}.assignment-checks .form-check{margin:0;padding-left:1.6rem}.assignment-checks .form-check-input{margin-top:.18rem}.assignment-checks .form-check-label{font-size:13px;color:#344054}

/* Phase 6 workflow status pills */
.status-submitted{background:#eff4ff;color:#3538cd}.status-returned{background:#fffaeb;color:#b54708}/* Phase 7 review queue */
.row-pending{background:#f2f7ff}.row-pending td{background:transparent}/* Phase 7 review history */
.review-timeline{display:grid;gap:0}.review-entry{padding:10px 0;border-bottom:1px solid #eef1f5;display:grid;gap:3px}.review-entry:last-child{border-bottom:0}.review-entry-top{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px}