.install-app-link{display:inline-flex;align-items:center;justify-self:start;gap:8px;min-height:40px;color:#4d3a87;font-size:.875rem;font-weight:700;text-decoration:underline;text-underline-offset:3px}.install-panel{width:min(100%,620px);border:1px solid #fff;box-shadow:0 26px 80px #3e256334,0 4px 18px #3e256317}.install-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.install-panel-top img{border-radius:12px}.install-instructions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}.install-instructions section{padding:14px;border:1px solid #e5def4;border-radius:12px;background:#faf8ff}.install-instructions h2{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:.95rem}.install-instructions ol{margin:0;padding-inline-start:1.25rem;color:#46435b;font-size:.875rem;line-height:1.5}.install-instructions li+li{margin-top:4px}.auth-screen{position:relative;isolation:isolate;min-height:100dvh;display:grid;place-items:center;padding:clamp(12px,3vmin,32px);background:radial-gradient(ellipse at 8% 4%,#fcf9ff 0,transparent 54%),radial-gradient(ellipse at 91% 87%,#bda5f3 0,transparent 59%),linear-gradient(128deg,#e8ddff,#d9cafa 57%,#efdafe)}.auth-bubbles{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;overflow:hidden;pointer-events:none}.auth-bubbles span{position:absolute;aspect-ratio:1;border-radius:50%;border:1px solid #fff9;background:radial-gradient(circle at 25% 20%,#fff9,transparent 45%),linear-gradient(145deg,#fff4 10%,#e0ccff55 50%,#9170db60);box-shadow:inset 0 0 25px #fff7,0 14px 55px #6e429221}.auth-bubbles span:nth-child(1){width:clamp(220px,31vw,540px);top:-13%;left:-7%}.auth-bubbles span:nth-child(2){width:clamp(76px,12vw,205px);top:13%;right:9%}.auth-bubbles span:nth-child(3){width:clamp(240px,34vw,530px);right:-8%;bottom:-25%}.auth-bubbles span:nth-child(4){width:clamp(95px,16vw,250px);bottom:4%;left:5%}.auth-bubbles span:nth-child(5){width:clamp(32px,5vw,88px);top:61%;right:8%}.auth-layout{position:relative;display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);width:min(100%,944px);padding:6px;gap:3px;border:1px solid #fff;border-radius:29px;background:#ffffff90;box-shadow:0 26px 80px #3e256334,0 4px 18px #3e256317}.auth-brand{position:relative;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr);justify-items:start;padding:clamp(22px,4vmin,40px);border-radius:22px;background:radial-gradient(ellipse at 70% 74%,#a377ffb0 0,transparent 62%),linear-gradient(150deg,#5135a4,#2b1b63 85%);color:#fff}.auth-brand:before,.auth-brand:after{content:"";position:absolute;aspect-ratio:1;border:1px solid #ffffff32;border-radius:50%;background:radial-gradient(circle at 24% 19%,#fff4,transparent 51%),#e0c4ff1a;box-shadow:inset 0 0 25px #f1e3ff20;pointer-events:none}.auth-brand:before{width:52%;top:-21%;right:-12%}.auth-brand:after{width:37%;bottom:-15%;left:-8%}.auth-wordmark{z-index:1;display:flex;align-items:center;gap:11px;font-size:21px;font-weight:700;letter-spacing:-.035em}.auth-wordmark span{display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff4f;border-radius:11px;background:#ffffff1c}.auth-illustration{z-index:1;position:relative;display:grid;width:min(100%,330px,54dvh);aspect-ratio:1;place-items:center;align-self:center;justify-self:center;margin-block:14px 3px;border:1px solid #fff6;border-radius:50%;background:radial-gradient(circle at 30% 19%,#f4e4ff77,transparent 56%),linear-gradient(145deg,#d2b4ff55,#5b3e9d22);box-shadow:inset 0 0 35px #e2cbff44,0 22px 65px #27114a66}.auth-mascot{width:82%;height:82%;object-fit:contain;filter:drop-shadow(0 14px 18px #260e554f)}.auth-panel{display:grid;align-content:center;gap:17px;padding:clamp(20px,4.5vmin,45px);min-width:0;background:#fff;border-radius:22px}.auth-heading h1{margin:0;font-size:clamp(23px,3vw,31px);line-height:1.13;letter-spacing:-.045em}.auth-heading p{margin:7px 0 0;color:#5e6174;font-size:13px;line-height:1.45}.auth-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#f1eff7;border-radius:10px;padding:4px}.auth-switch button,.auth-actions button{border:0;background:transparent;color:#4d3a87;font-size:13px;font-weight:650}.auth-switch button{padding:8px 5px;border-radius:7px}.auth-switch button[aria-pressed=true]{color:#2f2062;background:#fff;box-shadow:0 1px 4px #23134517}.auth-form{display:grid;gap:11px;min-width:0}.auth-form label{display:grid;gap:4px;font-size:13px;font-weight:650}.auth-form input{width:100%;min-width:0;height:40px;border:1px solid #dcd9e7;border-radius:8px;padding:0 11px;color:#171327;background:#fff;font-weight:400}.auth-password{position:relative;display:block}.auth-password input{padding-right:42px}.auth-password button{position:absolute;inset:0 2px 0 auto;width:38px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:#675b83}.auth-panel :focus-visible{outline:2px solid #694dc2;outline-offset:2px}.auth-submit{display:flex;justify-content:center;align-items:center;gap:8px;min-height:42px;border:0;border-radius:8px;background:linear-gradient(105deg,#5633af,#43248f);box-shadow:0 4px 10px #4c25892b;color:#fff;font-size:14px;font-weight:700}.auth-submit:hover{background:linear-gradient(105deg,#4a299d,#372079)}.auth-panel button:disabled{cursor:wait;opacity:.68}.auth-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}.auth-actions button{padding:3px 0}.auth-actions button:hover{text-decoration:underline}.auth-error,.auth-success{margin:0;padding:7px 9px;border-radius:7px;font-size:13px;overflow-wrap:anywhere}.auth-error{background:#fff0f2;color:#9b2139}.auth-success{background:#eaf7ee;color:#165b34}@media(max-width:640px){.auth-layout{grid-template-columns:minmax(0,1fr);max-width:430px}.auth-brand{display:flex;justify-content:space-between;align-items:center;padding:8px 16px}.auth-illustration{width:49px;margin:0}.auth-wordmark{font-size:19px}}@media(max-height:680px){.auth-panel{gap:12px}.auth-form{gap:8px}.auth-form input{height:37px}}@media(max-height:540px)and (max-width:640px){.auth-screen{padding:8px}.auth-panel{padding:12px;gap:9px}.auth-form{gap:6px}.auth-form input{height:34px}.auth-switch button{padding-block:6px}.auth-submit{min-height:38px}.auth-brand{padding-block:5px}.auth-illustration{width:37px}.auth-wordmark span{width:30px;height:30px}}:root{color:#0f172a;background:#f5f7fb;font-family:Segoe UI,Roboto,Helvetica Neue,Arial,ui-sans-serif,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;align-self:start;height:100dvh;background:radial-gradient(ellipse at 0 0,#30254d,transparent 60%),#181525;color:#f8fafc;padding:18px 12px;display:flex;flex-direction:column;gap:17px;border-right:1px solid rgba(255,255,255,.1)}.brand{display:flex;align-items:center;gap:10px;padding:2px 6px 14px;border-bottom:1px solid rgba(255,255,255,.12)}.brand-mark{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;background:linear-gradient(145deg,#805de0,#49349a);color:#fff;border-radius:8px;font-weight:700}.brand strong,.brand span{display:block}.brand>div{min-width:0}.brand strong{overflow-wrap:anywhere;font-size:14px;line-height:1.3}.brand span{color:#aeb9c8;font-size:10px;text-transform:uppercase;margin-top:2px}.nav-list{display:grid;align-content:start;gap:15px;overflow-y:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#55476b transparent}.nav-section{display:grid;gap:3px}.nav-section>span{color:#aea3c6;font-size:10px;font-weight:700;line-height:1;padding:0 10px 4px;text-transform:uppercase;letter-spacing:.08em}.nav-list button{display:flex;align-items:center;gap:10px;min-height:36px;border:0;border-radius:7px;background:transparent;color:#ded8eb;text-align:left;padding:7px 9px;font-size:13px;font-weight:500}.nav-list button svg{flex-shrink:0}.nav-list button:hover{background:#ffffff12;color:#fff}.nav-list button:focus-visible{outline:2px solid #beabff;outline-offset:-2px}.nav-list button.active{background:#6749b94d;color:#fff;box-shadow:inset 2px 0 #b69afa}.workspace{min-width:0;background:#f5f7fb}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:0 24px;background:#fff;border-bottom:1px solid #e2e8f0}.topbar-left,.topbar-actions{display:flex;align-items:center;gap:14px;min-width:0}.school-switcher{display:inline-flex;align-items:center;gap:8px;color:#0f172a;font-size:14px;min-width:max-content}.school-switcher svg{color:#36238f}.academic-year-switcher{display:inline-flex;align-items:center;gap:6px;color:#64748b;min-width:max-content}.academic-year-switcher svg{color:#36238f}.academic-year-switcher select{max-width:190px;border:1px solid #dbe3ef;border-radius:7px;background:#f8fafc;color:#0f172a;font-size:13px;font-weight:600;padding:5px 8px;outline:0;cursor:pointer}.academic-year-switcher select:focus-visible{border-color:#36238f;box-shadow:0 0 0 2px #36238f26}.global-search{position:relative;display:flex;align-items:center;gap:9px;width:min(380px,34vw);min-height:36px;padding:0 12px;border:1px solid #dbe3ef;border-radius:7px;background:#f8fafc;color:#64748b}.global-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#0f172a;font-size:13px}.global-search-dropdown{position:absolute;inset:calc(100% + 6px) 0 auto;z-index:1001;max-height:min(340px,50dvh);overflow-y:auto;background:#fff;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 4px 12px #00000026}.global-search-dropdown ul{margin:0;padding:0;list-style:none}.global-search-dropdown li,.global-search-dropdown [role=status]{padding:9px 12px}.global-search-dropdown li{cursor:pointer;color:#0f172a;overflow-wrap:anywhere}.global-search-dropdown li:hover,.global-search-dropdown li[aria-selected=true]{background:#f4f2fd}.global-search-dropdown small{display:block;color:#64748b}.profile-button{display:inline-flex;align-items:center;gap:9px;border:0;background:transparent;color:#0f172a;padding:0;text-align:left}.profile-button>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#36238f,#7658d8);color:#fff;font-size:12px;font-weight:700}.profile-button strong,.profile-button small{display:block}.profile-button strong{font-size:12px}.profile-button small{color:#64748b;font-size:10px}.notification-button,.notification-wrapper{position:relative}.notification-button span{position:absolute;top:7px;right:8px;min-width:18px;height:18px;border-radius:50%;background:#ef4444;color:#fff;font-size:10px;font-weight:600;display:flex;align-items:center;justify-content:center;padding:0 5px}.notification-dropdown{position:absolute;top:100%;right:0;margin-top:8px;width:320px;max-height:min(400px,60dvh);display:flex;flex-direction:column;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;border:1px solid #e2e8f0;z-index:1000;overflow:hidden}.notification-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.notification-header button{background:none;border:none;padding:4px;border-radius:4px;color:#64748b}.notification-header button:hover{background:#e2e8f0}.notification-list{min-height:0;overflow-wrap:anywhere;max-height:320px;overflow-y:auto}.notification-loading,.notification-empty{padding:24px 16px;text-align:center;color:#64748b;font-size:14px}.notification-item{padding:12px 16px;border-bottom:1px solid #f1f5f9;transition:background .15s ease;cursor:pointer}.notification-dropdown a.notification-item{display:block;color:inherit;text-decoration:none}.notification-item:hover{background:#f8fafc}.notification-item.unread{background:#f4f2fd}.notification-item.unread .notification-content strong{color:#36238f;font-weight:700}.notification-item.unread:hover{background:#edeafb}.notification-item:last-child{border-bottom:none}.notification-content strong{display:block;font-size:14px;color:#1e293b;margin-bottom:4px}.notification-content p{margin:0 0 6px;font-size:13px;color:#475569;line-height:1.4}.notification-content small{font-size:11px;color:#94a3b8}.notification-footer{padding:12px 16px;border-top:1px solid #e2e8f0;background:#f8fafc}.notification-footer button{width:100%;padding:8px;background:#36238f;color:#fff;border:none;border-radius:4px;font-size:13px;font-weight:500;transition:background .15s ease}.notification-footer button:hover{background:#2d1d7a}.topbar h1,.topbar p,.resource-header h2,.resource-header p,.hero-band h2,.hero-band p,.login-panel h2,.login-panel p{margin:0}.topbar h1{font-size:25px;font-weight:650}.topbar p,.resource-header p,.hero-band p,.login-panel p{color:#64748b;margin-top:5px}.page-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding:24px}.hero-band,.resource-header,.form-panel,.table-shell,.login-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 14px 34px #0f172a0d}.hero-band,.resource-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px}.eyebrow{display:inline-block;color:#36238f;font-size:12px;font-weight:650;text-transform:uppercase;letter-spacing:0;margin-bottom:8px}.hero-band h2,.resource-header h2{font-size:27px;font-weight:650}.metric-strip{display:grid;grid-template-columns:repeat(2,120px);gap:10px}.metric-strip div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:14px}.metric-strip strong,.metric-strip span{display:block}.metric-strip strong{font-size:27px;font-weight:650}.metric-strip span{color:#64748b;font-size:13px}.insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.insight-grid article{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:18px}.insight-grid h3,.insight-grid p{margin:10px 0 0}.insight-grid h3{font-weight:650}.insight-grid p,.module-tile small{color:#64748b}.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.module-tile{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:92px;padding:16px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#1f2937;text-align:left}.module-tile:hover{border-color:#94a3b8;box-shadow:0 14px 28px #0f172a14}.module-tile strong,.module-tile small{display:block}.module-tile small{margin-top:4px;line-height:1.35}.action-row,.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.primary-button,.ghost-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border-radius:8px;border:1px solid transparent;font-weight:600}.primary-button{background:#36238f;color:#fff;padding:0 14px}.primary-button:hover{background:#7658d8}.primary-button:disabled{background:#cbd5e1;color:#f1f5f9;cursor:not-allowed}.ghost-button{background:#fff;border-color:#cbd5e1;color:#334155;padding:0 12px;font-size:13px}.ghost-button:hover{background:#f8fafc}.icon-button{width:38px;padding:0;background:#fff;border-color:#cbd5e1;color:#334155}.icon-button:hover{background:#f8fafc}.icon-button.danger{color:#9b2f2f}.olliver-button{position:relative;padding:0}.olliver-button img{width:22px;height:22px;border-radius:50%;object-fit:contain;display:block}.olliver-button:after{content:attr(data-tip);position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%) translateY(-4px);background:#1e293b;color:#fff;font-size:12px;font-weight:600;padding:6px 10px;border-radius:8px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s ease,transform .15s ease;z-index:60;box-shadow:0 6px 18px #0f172a38}.olliver-button:hover:after,.olliver-button:focus-visible:after{opacity:1;transform:translate(-50%) translateY(0)}.form-panel{padding:18px}.form-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.form-title h3{margin:0;display:inline-flex;align-items:center;gap:8px;font-weight:650}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid.single{grid-template-columns:1fr}.form-grid label{display:grid;gap:7px;color:#475569;font-size:14px;font-weight:600}.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1f2937;min-height:40px;padding:9px 10px}.form-grid textarea{min-height:92px;resize:vertical}.form-grid select[multiple]{min-height:112px}.form-grid input:disabled{background:#f1f5f9;color:#64748b}.field-hint{font-size:11.5px;font-weight:400;color:#94a3b8;line-height:1.4}.span-all{grid-column:1 / -1}.table-shell{overflow:hidden}.table-toolbar{display:flex;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e2e8f0;color:#64748b}.table-toolbar strong{font-weight:600}.data-grid-viewport{min-width:0;max-width:100%;overflow:auto}.data-grid-viewport:focus-visible,.data-grid-viewport :is(th,td):focus-visible{outline:2px solid #7658d8;outline-offset:-2px}.grid-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.grid-toolbar{padding:10px 14px;border-bottom:1px solid #dbe3ef}.grid-toolbar summary,.grid-column-button{display:inline-flex;align-items:center;gap:6px;cursor:pointer}.grid-toolbar summary{padding:6px 9px;border:1px solid #dbe3ef;border-radius:6px;font-size:13px}.grid-column-list{display:flex;flex-wrap:wrap;gap:8px 14px;padding:8px 0}.grid-column-list label,.grid-column-options label{display:inline-flex;align-items:center;gap:6px;font-size:13px}.grid-column-options{position:fixed;z-index:1002;display:grid;gap:4px;width:min(232px,calc(100vw - 16px));padding:8px;overflow-y:auto;color:#0f172a;background:#fff;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 8px 24px #0f172a2e}.grid-column-options>strong{padding:4px 8px;font-size:13px}.grid-column-options .ghost-button{justify-content:flex-start;min-height:32px;border-color:transparent}.grid-column-options .ghost-button[aria-pressed=true]{background:#eeeafd}.grid-column-options label{display:grid;padding:4px 8px}.grid-column-options input,.student-pagination select{max-width:100%;padding:5px 7px;border:1px solid #dbe3ef;border-radius:6px}.grid-column-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}.grid-column-button{padding:0;background:none;border:0;color:inherit;font:inherit;text-transform:inherit;text-align:left}.grid-column-menu-button{display:inline-grid;place-items:center;flex-shrink:0;width:28px;height:28px;padding:0;color:inherit;border:0;border-radius:4px;background:transparent;cursor:pointer}.grid-column-menu-button:hover,.grid-column-menu-button[aria-expanded=true]{background:#e9e4f8}.grid-column-button svg{flex-shrink:0}.data-grid-viewport .data-grid-pinned-left,.data-grid-viewport .data-grid-pinned-right{position:sticky;z-index:2;background:#f8fafc}.data-grid-pinned-left{left:0}.data-grid-pinned-right{right:0}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:13px 16px;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:top}th{color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:0;background:#f8fafc;font-weight:650}td{color:#1f2937;max-width:340px;overflow-wrap:anywhere}.actions-cell{width:110px;white-space:nowrap;text-align:right}.actions-cell .icon-button{margin-left:6px}.empty-cell{text-align:center;color:#64748b;padding:34px}.error-banner,.warning-banner,.success-banner{border-radius:8px;padding:12px 14px;font-weight:600}.error-banner{background:#fff1f1;color:#963232;border:1px solid #efc9c9}.warning-banner{background:#fff8db;color:#6e5314;border:1px solid #ead78a}.success-banner{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}.account-panel{max-width:560px}.login-screen{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) 420px;background:#f6f8fb}.login-visual{display:flex;flex-direction:column;justify-content:flex-end;padding:56px;color:#fff;background:linear-gradient(180deg,#0f172a14,#0f172ac7),url(https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1600&q=80) center/cover}.school-emblem{width:86px;height:86px;display:grid;place-items:center;background:#ffffff2e;border:1px solid rgba(255,255,255,.32);border-radius:8px;margin-bottom:18px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.login-visual h1{font-size:50px;font-weight:650;margin:0}.login-visual p{max-width:560px;margin:10px 0 0;font-size:19px;color:#edf5f0}.login-panel{align-self:center;margin:32px;padding:28px}.login-panel h2{margin-top:10px;font-size:27px;font-weight:650}.segmented-control{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;margin:20px 0;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px}.segmented-control button{min-height:36px;border:0;border-radius:6px;background:transparent;color:#64748b;font-weight:600}.segmented-control button.active{background:#fff;color:#172233;box-shadow:0 8px 18px #0f172a14}.mobile-only{display:none}.loader-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:grid;place-items:center;background:#0f172a99;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.loader-content{display:grid;place-items:center;gap:16px;padding:32px;background:#fff;border-radius:12px;box-shadow:0 20px 40px #0f172a33}.spinner{width:40px;height:40px;border:3px solid #e2e8f0;border-top-color:#36238f;border-radius:50%;animation:spin .8s linear infinite}.loader-content p{margin:0;color:#64748b;font-size:14px;font-weight:600}.dashboard-page{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;padding:28px}.dashboard-header{display:flex;align-items:center;justify-content:space-between;gap:18px}.dashboard-header h2,.dashboard-header p,.panel-heading h3,.panel-heading p{margin:0}.dashboard-header h2{font-size:26px;line-height:1.15;font-weight:750}.dashboard-header p{color:#64748b;margin-top:5px;font-size:14px}.dashboard-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.kpi-card,.analytics-panel,.finance-summary{background:#fff;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 12px 28px #0f172a0a}.kpi-card{min-height:108px;padding:18px}.kpi-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#475569;font-size:12px;font-weight:750;text-transform:uppercase}.kpi-topline svg{color:#36238f;background:#edeafb;border-radius:5px;padding:3px;width:25px;height:25px}.kpi-card>strong{display:block;margin-top:16px;font-size:29px;line-height:1;letter-spacing:0}.kpi-card small{display:flex;align-items:center;gap:4px;margin-top:9px;color:#36238f;font-size:12px;font-weight:700}.kpi-card small span{color:#94a3b8;font-weight:500}.dashboard-content-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,.95fr);gap:20px}.dashboard-main-column,.dashboard-side-column{display:grid;gap:20px;align-content:start}.analytics-panel{padding:20px;min-width:0}.compact-panel{padding:18px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.panel-heading h3{font-size:15px;line-height:1.25;font-weight:800}.panel-heading p{color:#64748b;font-size:12px;margin-top:3px}.panel-heading button{border:0;background:transparent;color:#36238f;font-size:12px;font-weight:700;padding:0;white-space:nowrap}.panel-badge,.success-pill,.loading-dot{display:inline-flex;align-items:center;gap:5px;border-radius:6px;font-size:12px;font-weight:700;white-space:nowrap}.panel-badge{color:#36238f}.success-pill{padding:5px 7px;background:#edeafb;color:#36238f}.loading-dot{color:#64748b}.analytics-chart{position:relative;height:206px;margin-top:20px;overflow:hidden}.analytics-chart svg{position:absolute;top:0;right:0;bottom:24px;left:0;width:100%;height:calc(100% - 24px);z-index:2}.chart-line{fill:none;stroke:#36238f;stroke-width:1.8;vector-effect:non-scaling-stroke}.chart-dot{fill:#36238f;stroke:#fff;stroke-width:.9;vector-effect:non-scaling-stroke}.chart-grid-lines{position:absolute;top:10px;right:0;bottom:28px;left:0;display:grid;grid-template-rows:repeat(4,1fr)}.chart-grid-lines span{border-top:1px dashed #e5edf5}.chart-labels{position:absolute;inset:auto 6px 0;display:flex;justify-content:space-between;gap:8px;color:#94a3b8;font-size:10px}.event-list,.activity-list{display:grid;gap:16px;margin-top:18px}.event-row,.activity-row,.finance-summary{display:grid;align-items:center;gap:12px}.event-row{grid-template-columns:44px minmax(0,1fr)}.event-row-end{display:block;padding:10px 14px;border-radius:8px;border:1px solid #f1f1ee;background:#fafaf9}.event-row-end .event-top-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.event-top-row>strong{display:block;color:#0f172a;font-size:14px;line-height:1.25;font-weight:800;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.date-chip-inline{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:6px;background:#edeafb;color:#36238f;font-size:11px;font-weight:700;white-space:nowrap;flex-shrink:0}.event-row-end>small{display:block;color:#64748b;font-size:12px;line-height:1.35;margin-top:4px}.event-row-end .row-trailing-icon{margin-top:4px;color:#94a3b8}.date-chip{display:grid;place-items:center;height:44px;border-radius:7px;background:#edeafb}.date-chip span{color:#36238f;font-size:10px;font-weight:800}.date-chip strong{color:#0f172a;font-size:15px;line-height:1}.event-row strong,.activity-row strong{display:block;color:#0f172a;font-size:13px;line-height:1.25}.event-row small,.activity-row small{display:block;color:#64748b;font-size:11px;line-height:1.35;margin-top:3px}.schedule-heading-meta{display:inline-flex;align-items:center;gap:12px}.schedule-row{grid-template-columns:88px minmax(0,1fr) auto auto}.grading-row{grid-template-columns:minmax(0,1fr) auto auto}.grading-score{color:#36238f;font-size:13px;font-weight:800;white-space:nowrap}.period-chip{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:36px;padding:0 10px}.period-chip span{font-size:11px;text-transform:capitalize}.period-chip strong{font-size:14px}.schedule-time{color:#36238f;font-size:12px;font-weight:700;white-space:nowrap}.activity-row{grid-template-columns:8px minmax(0,1fr);align-items:start}.activity-row>span{width:7px;height:7px;margin-top:5px;border-radius:50%;background:linear-gradient(135deg,#36238f,#7658d8)}.empty-panel-note{margin:0;padding:12px 0;color:#64748b;font-size:13px;line-height:1.45}.finance-summary{grid-template-columns:auto minmax(0,1fr) auto;padding:16px 18px}.finance-summary svg{color:#36238f}.finance-summary strong,.finance-summary span{display:block}.finance-summary strong{font-size:22px;line-height:1}.finance-summary span{color:#64748b;font-size:12px;margin-top:3px}.students-page{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;padding:28px}.students-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.students-header h2{display:flex;align-items:center;gap:10px;margin:0;color:#0f172a;font-size:26px;line-height:1.15}.students-header h2 span{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:6px;background:#edeafb;color:#36238f;font-size:12px;font-weight:750}.student-filter-bar{display:grid;grid-template-columns:minmax(260px,1fr) 160px 160px 160px auto;gap:12px;align-items:center;padding:14px;background:#fff;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 12px 28px #0f172a0a}.student-search,.student-filter-bar label:not(.student-search){min-height:38px;border:1px solid #dbe3ef;border-radius:7px;background:#f8fafc}.student-search{display:flex;align-items:center;gap:9px;padding:0 12px;color:#64748b}.student-search input,.student-filter-bar select{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#0f172a}.student-filter-bar label:not(.student-search){display:grid;gap:1px;padding:5px 10px}.student-filter-bar label span{color:#64748b;font-size:9px;font-weight:800;text-transform:uppercase}.student-filter-bar select{font-size:12px;font-weight:650}.student-filter-bar>button{border:0;background:transparent;color:#36238f;font-size:12px;font-weight:800}.student-directory-shell{overflow:hidden;background:#fff;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 12px 28px #0f172a0a}.student-directory-table{min-width:920px}.student-directory-table th{background:#f8fafc}.student-directory-table th:first-child,.student-directory-table td:first-child{width:44px;text-align:center}.student-directory-table input[type=checkbox]{width:15px;height:15px;accent-color:#36238F}.student-name-cell{display:inline-flex;align-items:center;gap:10px}.student-name-cell span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#36238f,#7658d8);color:#fff;font-size:10px;font-weight:800}.student-name-cell strong{color:#0f172a;font-size:13px}.student-name-cell button{border:0;background:transparent;color:#0f172a;font:inherit;font-size:13px;font-weight:750;padding:0;text-align:left}.student-name-cell button:hover{color:#36238f}.student-status{display:inline-flex;align-items:center;min-height:22px;padding:0 9px;border-radius:6px;font-size:11px;font-weight:750}.student-status.active{background:#edeafb;color:#36238f}.student-status.inactive,.student-status.transferred{background:#f1f5f9;color:#64748b}.student-status.pending{background:#fef3c7;color:#a16207}.student-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;color:#475569;font-size:13px}.student-pagination>div{display:flex;align-items:center;gap:8px}.student-pagination strong{min-width:30px;min-height:30px;display:grid;place-items:center;border-radius:7px;background:linear-gradient(135deg,#36238f,#7658d8);color:#fff;font-size:13px}.student-pagination .icon-button:disabled{opacity:.55;cursor:not-allowed}.attendance-page{display:grid;gap:20px;padding:28px}.attendance-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.attendance-header h2{display:flex;align-items:center;gap:10px;margin:0;color:#0f172a;font-size:26px;line-height:1.15}.attendance-header h2 span{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:6px;background:#edeafb;color:#36238f;font-size:12px;font-weight:750}.attendance-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.attendance-controls label{display:grid;gap:1px;min-width:122px;min-height:42px;padding:5px 8px;border:1px solid #dbe3ef;border-radius:7px;background:#fff}.attendance-controls label:first-child{min-width:150px}.attendance-controls span{color:#64748b;font-size:9px;font-weight:800;text-transform:uppercase}.attendance-controls input,.attendance-controls select{width:100%;border:0;outline:0;background:transparent;color:#0f172a;font-size:12px;font-weight:650}.attendance-overview,.attendance-entry-shell{background:#fff;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 12px 28px #0f172a0a}.attendance-overview{display:flex;align-items:center;gap:24px;min-height:64px;padding:0 20px;flex-wrap:wrap}.attendance-overview strong{color:#0f172a;font-size:13px;font-weight:850;text-transform:uppercase}.attendance-overview span{display:inline-flex;align-items:center;gap:8px;color:#0f172a;font-size:13px;font-weight:750}.attendance-overview i{width:8px;height:8px;border-radius:50%}.attendance-overview i.present{background:linear-gradient(135deg,#36238f,#7658d8)}.attendance-overview i.absent{background:#ef4444}.attendance-overview i.late{background:#f59e0b}.attendance-overview small{color:#64748b;font-size:12px}.attendance-entry-shell{overflow:hidden}.attendance-entry-table{min-width:820px}.attendance-entry-table th:first-child,.attendance-entry-table td:first-child{width:44px;text-align:center}.attendance-entry-table input[type=checkbox]{width:15px;height:15px;accent-color:#36238F}.attendance-status-group{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.attendance-status-group button{min-width:72px;min-height:28px;border:1px solid #dbe3ef;border-radius:6px;background:#f8fafc;color:#334155;font-size:12px;font-weight:750}.attendance-status-group button.present.active{background:#edeafb;border-color:#36238f;color:#36238f}.attendance-status-group button.late.active{background:#fef3c7;border-color:#f59e0b;color:#a16207}.attendance-status-group button.absent.active{background:#fee2e2;border-color:#ef4444;color:#dc2626}.attendance-status-group button:disabled{cursor:not-allowed;opacity:.7}.attendance-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;color:#64748b;font-size:12px}.attendance-footer>div{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.fees-page{display:grid;gap:20px;padding:28px}.fees-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.fees-header h2,.fees-header p{margin:0}.fees-header h2{color:#0f172a;font-size:26px;line-height:1.15}.fees-header p{color:#64748b;font-size:14px;margin-top:5px}.fees-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.fee-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.fee-metric-card,.fee-panel{background:#fff;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 12px 28px #0f172a0a}.fee-metric-card{min-height:118px;padding:18px}.fee-metric-card>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.fee-metric-card span{color:#475569;font-size:12px;font-weight:800;text-transform:uppercase}.fee-metric-card i{width:26px;height:26px;border-radius:6px;background:#99f6e4}.fee-metric-card strong{display:block;margin-top:18px;color:#0f172a;font-size:28px;line-height:1}.fee-metric-card small{display:block;margin-top:8px;font-size:12px;font-weight:750}.fee-metric-card small.success{color:#36238f}.fee-metric-card small.warning{color:#d97706}.fee-metric-card small.danger{color:#dc2626}.fees-analytics-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,.9fr);gap:20px}.fees-lower-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.9fr);gap:20px}.fee-panel{padding:18px;min-width:0}.fee-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.fee-panel h3,.fee-panel p{margin:0}.fee-panel h3{color:#0f172a;font-size:15px;font-weight:850}.fee-panel p{color:#64748b;font-size:12px;margin-top:3px}.fee-panel-heading span,.fee-panel-heading button{border:0;background:transparent;color:#36238f;font-size:12px;font-weight:800;white-space:nowrap}.fee-line-chart{position:relative;height:188px;margin-top:20px}.fee-line-chart svg{position:absolute;top:0;right:0;bottom:28px;left:0;width:100%;height:calc(100% - 28px);z-index:2}.fee-line-chart polyline{fill:none;stroke:#36238f;stroke-width:2;vector-effect:non-scaling-stroke}.fee-chart-grid{position:absolute;top:14px;right:0;bottom:32px;left:0;display:grid;grid-template-rows:repeat(3,1fr)}.fee-chart-grid span{border-top:1px dashed #e5edf5}.fee-chart-labels{position:absolute;inset:auto 6px 0;display:flex;justify-content:space-between;color:#94a3b8;font-size:10px}.class-share-content{display:flex;align-items:center;gap:24px;min-height:150px}.donut-chart{width:112px;height:112px;display:grid;place-items:center;border-radius:50%;position:relative;flex:0 0 auto}.donut-chart:after{content:"";position:absolute;top:24px;right:24px;bottom:24px;left:24px;border-radius:50%;background:#fff}.donut-chart strong,.donut-chart span{position:relative;z-index:1;display:block;text-align:center}.donut-chart strong{color:#0f172a;font-size:18px}.donut-chart span{color:#64748b;font-size:10px;margin-top:-22px}.share-legend{display:grid;gap:10px}.share-legend span{display:flex;align-items:center;gap:7px;color:#475569;font-size:12px}.share-legend i{width:8px;height:8px;border-radius:50%}.share-legend i.primary{background:linear-gradient(135deg,#36238f,#7658d8)}.share-legend i.middle{background:#f59e0b}.share-legend i.high{background:#ef4444}.receipt-table-scroll{margin:14px -18px -18px}.receipt-table{min-width:620px}.receipt-table td strong,.receipt-table td span{display:block}.receipt-table td strong{color:#0f172a;font-size:13px}.receipt-table td span{color:#64748b;font-size:11px;margin-top:2px}.fee-status{display:inline-flex;align-items:center;min-height:22px;padding:0 9px;border-radius:6px;font-size:11px;font-weight:750}.fee-status.paid{background:#edeafb;color:#36238f}.overdue-list{display:grid;gap:12px;margin-top:18px}.overdue-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:8px;background:#f8fafc}.overdue-row strong,.overdue-row span{display:block}.overdue-row strong{color:#0f172a;font-size:13px}.overdue-row span{color:#ef4444;font-size:11px;margin-top:2px}.overdue-row button{min-height:30px;border:0;border-radius:6px;color:#fff;font-size:12px;font-weight:800;padding:0 12px}.overdue-row button.remind{background:#ef4444}.overdue-row button.notify{background:#36238f}.overdue-row button:disabled{opacity:.65;cursor:not-allowed}.student-profile-page{display:grid;gap:18px;padding:28px}.profile-back-button{width:fit-content;display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#36238f;font-size:12px;font-weight:800;padding:0}.profile-back-button span{color:#64748b;font-weight:500}.student-profile-hero,.student-profile-card,.student-address-card,.student-empty-tab{background:#fff;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 12px 28px #0f172a0a}.student-profile-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px}.student-profile-identity{display:flex;align-items:center;gap:24px;min-width:0}.student-profile-avatar{width:84px;height:84px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:linear-gradient(135deg,#36238f,#7658d8);color:#fff;font-size:24px;font-weight:800}.student-profile-identity h2{display:flex;align-items:center;gap:10px;margin:0;color:#0f172a;font-size:25px}.student-profile-identity p{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0 0;color:#475569;font-size:13px}.student-profile-identity p span{width:4px;height:4px;border-radius:50%;background:#94a3b8}.student-profile-metrics{display:flex;align-items:center;gap:14px}.student-profile-metrics div{min-width:86px;display:grid;place-items:center;gap:4px;padding:14px 12px;border-radius:8px;background:#f8fafc}.student-profile-metrics span{color:#94a3b8;font-size:10px;font-weight:800;text-transform:uppercase}.student-profile-metrics strong{color:#36238f;font-size:18px}.student-profile-tabs{display:flex;align-items:center;gap:18px;min-height:38px;padding:0 12px;border:1px solid #dbe3ef;border-radius:7px;background:#fff;overflow:auto}.student-profile-tabs button{position:relative;min-height:38px;border:0;background:transparent;color:#475569;font-size:12px;font-weight:750;padding:0;white-space:nowrap}.student-profile-tabs button.active{color:#36238f}.student-profile-tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:999px;background:#36238f}.student-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.student-profile-card{padding:18px}.student-profile-card h3,.student-address-card h3,.student-empty-tab h3{margin:0;color:#0f172a;font-size:14px;font-weight:800}.student-profile-card>div{display:grid;margin-top:14px}.profile-detail-row{display:grid;grid-template-columns:minmax(120px,.9fr) minmax(0,1fr);gap:14px;min-height:35px;align-items:center;border-top:1px solid #e2e8f0;font-size:12px}.profile-detail-row span{color:#475569}.profile-detail-row strong{color:#0f172a;font-weight:750;text-align:right;overflow-wrap:anywhere}.student-address-card{padding:18px}.student-address-card>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:18px}.student-address-card>div>div+div{border-left:1px solid #e2e8f0;padding-left:24px}.student-address-card span,.student-address-card strong{display:block}.student-address-card span{color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}.student-address-card strong{margin-top:5px;color:#0f172a;font-size:13px;line-height:1.45}.student-empty-tab{display:grid;justify-items:center;gap:8px;padding:42px 20px;text-align:center}.student-empty-tab svg{color:#36238f}.student-empty-tab p{max-width:420px;margin:0;color:#64748b;font-size:13px;line-height:1.45}@media(max-width:980px){.app-shell{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;inset:0 auto 0 0;width:min(280px,100vw);z-index:20;visibility:hidden;transform:translate(-100%);transition:transform .2s ease,visibility 0s linear .2s}.sidebar.open{visibility:visible;transform:translate(0);transition-delay:0s}.sidebar-close{flex-shrink:0;margin-left:auto}.mobile-only{display:inline-flex}.insight-grid,.login-screen,.kpi-grid,.dashboard-content-grid,.student-filter-bar,.fee-kpi-grid,.fees-analytics-grid,.fees-lower-grid{grid-template-columns:1fr}.topbar{padding:12px 16px}.global-search{width:min(360px,48vw)}.login-visual{min-height:320px}.login-panel{margin:18px}}@media(max-width:720px){.workspace{padding:0}.resource-header,.hero-band,.dashboard-header{align-items:stretch;flex-direction:column}.topbar{align-items:stretch;flex-direction:column;gap:12px}.topbar-actions{order:-1;position:relative;gap:8px}.topbar-menu{margin-right:auto}.topbar-left{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,max-content);gap:10px}.topbar-left .school-switcher,.topbar-left .academic-year-switcher{min-width:0}.topbar-left .school-switcher strong{overflow-wrap:anywhere}.topbar-left .school-switcher svg,.topbar-left .academic-year-switcher svg{flex-shrink:0}.topbar-left .academic-year-switcher{justify-self:end;max-width:100%}.topbar-left .academic-year-switcher select{min-width:0}.topbar-left>.global-search,.topbar-left>.child-switcher{grid-column:1 / -1}.topbar-actions .notification-wrapper{position:static}.notification-dropdown{width:min(320px,100%)}.global-search{width:100%}.profile-button div{display:none}.dashboard-page,.page-stack,.students-page,.attendance-page,.fees-page,.student-profile-page{padding:16px}.metric-strip,.form-grid{grid-template-columns:1fr}.action-row,.form-actions{justify-content:stretch;flex-wrap:wrap}.primary-button,.ghost-button{flex:1 1 auto}.dashboard-actions{align-items:stretch}.students-header,.student-pagination,.attendance-header,.attendance-footer,.fees-header,.student-profile-hero,.student-profile-identity{align-items:stretch;flex-direction:column}.attendance-controls,.attendance-footer>div,.fees-actions{align-items:stretch}.class-share-content,.overdue-row{align-items:stretch;flex-direction:column}.student-profile-grid,.student-address-card>div{grid-template-columns:1fr}.student-address-card>div>div+div{border-left:0;border-top:1px solid #e2e8f0;padding-left:0;padding-top:18px}.student-profile-metrics{align-items:stretch}.chart-labels{font-size:9px}}.progress-track{width:100%;height:14px;border-radius:999px;background:#edeafb;overflow:hidden}.progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#6d4df2,#36238f);transition:width .4s ease}.progress-meta{display:flex;align-items:baseline;gap:10px;margin-top:10px}.progress-meta strong{color:#0f172a;font-size:20px}.progress-meta small{color:#64748b;font-size:11px}.week-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.week-day-card{display:grid;gap:8px;align-content:start;padding:12px;border-radius:10px;border:1px solid #e2e8f0;background:#f8fafc}.week-day-card.today{border-color:#6d4df2;background:#f3f0ff}.week-day-card strong{color:#0f172a;font-size:13px}.week-day-card>small{color:#64748b;font-size:11px}.week-day-card ul{margin:0;padding:0;list-style:none;display:grid;gap:5px}.week-day-card li{color:#334155;font-size:11px}.week-day-card li span{color:#36238f;font-weight:700;margin-right:5px}.row-trailing-icon{color:#94a3b8;flex-shrink:0}.resource-row,.link-row{text-decoration:none;color:inherit}.resource-row{cursor:pointer}.link-row{grid-template-columns:auto minmax(0,1fr);justify-items:start;align-items:center;column-gap:10px;border:0;background:#f6f5f1;padding:11px 14px;border-radius:8px;font:inherit;cursor:pointer;transition:background .15s ease}.link-row:hover{background:#ece7fd}.link-row svg{color:#36238f}.link-row span{color:#0f172a;font-size:13px;font-weight:600}.grade-chart{display:flex;align-items:flex-end;gap:18px;padding:16px 8px 4px}.grade-column{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;position:relative;cursor:default}.grade-count{font-size:.85rem;font-weight:700;color:#3f3d56}.grade-track{height:150px;width:100%;max-width:54px;background:#efede6;border-radius:10px 10px 4px 4px;display:flex;align-items:flex-end;overflow:hidden}.grade-fill{width:100%;background:linear-gradient(180deg,#7c5cfc,#5b8def);border-radius:10px 10px 0 0;min-height:6px;transition:height .3s ease}.grade-label{font-size:.85rem;font-weight:600;color:#55536b}.grade-column:after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 6px);transform:translate(-50%) translateY(4px);background:#0f172a;color:#fff;font-size:11px;font-weight:600;line-height:1.2;padding:7px 9px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s ease,transform .15s ease;z-index:5}.grade-column:hover:after{opacity:1;transform:translate(-50%) translateY(0)}.warn-pill{padding:4px 12px;border-radius:999px;background:#fdeee0;color:#b95c04;font-size:.78rem;font-weight:700;white-space:nowrap}.er-tabs{display:flex;gap:4px;background:#fff;border:1px solid #dbe3ef;border-radius:8px;padding:4px;box-shadow:0 12px 28px #0f172a0a}.er-tab{flex:1;padding:10px 16px;border:none;background:transparent;border-radius:6px;font-size:13px;font-weight:600;color:#64748b;transition:all .15s ease}.er-tab:hover{background:#f1f5f9;color:#334155}.er-tab.active{background:#36238f;color:#fff}.er-filter-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.er-search{display:flex;align-items:center;gap:8px;flex:1;min-width:200px;padding:0 12px;background:#fff;border:1px solid #dbe3ef;border-radius:8px;color:#64748b}.er-search input{flex:1;border:none;background:transparent;padding:10px 0;font-size:14px;color:#0f172a;outline:none}.er-filter-bar>select{padding:10px 12px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;font-size:13px;color:#334155;min-width:120px}.er-filter-bar>select:focus{outline:none;border-color:#36238f}.er-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,.95fr);gap:20px}.er-main,.er-sidebar{display:grid;gap:20px;align-content:start}.er-pct{font-weight:700;font-size:13px}.er-pct.pass{color:#16a34a}.er-pct.fail{color:#ef4444}.er-grade-badge{display:inline-flex;align-items:center;justify-content:center;min-width:32px;padding:3px 8px;border-radius:6px;font-size:12px;font-weight:700}.grade-Aplus{background:#dcfce7;color:#16a34a}.grade-A{background:#dbeafe;color:#0ea5e9}.grade-Bplus{background:#ede9fe;color:#6366f1}.grade-B{background:#f3e8ff;color:#8b5cf6}.grade-C{background:#fef3c7;color:#b95c04}.grade-F{background:#fee2e2;color:#ef4444}.er-results-table{min-width:1080px;table-layout:fixed}.er-results-table th:first-child,.er-results-table td:first-child{width:280px;text-align:left}.er-results-table th.er-student-col,.er-results-table td.er-student-col,.er-results-table th{white-space:nowrap}.er-results-table td{vertical-align:middle;max-width:none}.er-results-table td.actions-cell{vertical-align:middle}.er-results-table th.er-num-col,.er-results-table td.er-num-col{text-align:right}.er-student-cell{display:flex;align-items:center;width:100%}.er-student-name{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:13px;font-weight:750;color:#0f172a}.er-top-list{display:grid;gap:0}.er-top-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f1f5f9}.er-top-row:last-child{border-bottom:none}.er-rank{font-size:13px;font-weight:700;color:#36238f;min-width:28px}.er-top-name{flex:1;font-size:13px;font-weight:600;color:#1f2937}.er-top-score{font-size:13px;font-weight:700;color:#16a34a}.er-top-row.low .er-rank,.er-top-score.low{color:#ef4444}.er-focus-list{display:grid;gap:0}.er-focus-row{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-bottom:1px solid #f1f5f9}.er-focus-row:last-child{border-bottom:none}.er-focus-student{font-size:13px;font-weight:700;color:#1f2937}.er-focus-subject{font-size:12px;color:#64748b}.er-focus-subject strong{color:#b95c04;font-weight:650}.tp-ranking-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-bottom:20px}.tp-subject-block{margin-top:24px;padding-top:20px;border-top:1px solid #eef2f7}.tp-subject-block:first-of-type{margin-top:8px;border-top:none;padding-top:0}.tp-subject-title{margin:0 0 8px;font-size:15px;font-weight:700;color:#36238f}.tp-subject-group{margin-top:16px}.tp-back-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding:10px 14px;background:#fff;border:1px solid #e2e8f0;border-radius:10px}.tp-back-bar button{display:inline-flex;align-items:center;gap:8px;border:1px solid #cbd5e1;background:#fff;color:#36238f;font-size:13px;font-weight:700;padding:8px 14px;border-radius:8px;cursor:pointer}.tp-back-bar button:hover{background:#f8fafc;border-color:#a5b4fc}.tp-back-bar strong{font-size:13px;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tp-subject-group .panel-heading{margin-bottom:8px}.warn-text{color:#ef4444}.panel-heading .tp-back-button{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f0;background:#fff;color:#334155;font-size:12px;font-weight:650;padding:6px 12px;border-radius:8px;white-space:nowrap;cursor:pointer}.panel-heading .tp-back-button:hover{background:#f8fafc;border-color:#cbd5e1}.tp-back-icon{font-size:14px;line-height:1}.er-empty-state{display:flex;flex-direction:column;align-items:center;gap:12px;padding:48px 24px;text-align:center;color:#64748b}.er-empty-state h3{margin:0;color:#1f2937;font-size:18px}.er-empty-state p{margin:0;font-size:14px}.sortable{cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}.sortable:hover{color:#36238f}.er-sort-icon{display:inline-block;margin-left:4px;font-size:10px;color:#cbd5e1}.er-sort-icon.active{color:#36238f}.er-form-modal{max-width:620px}.er-form-section{margin-bottom:20px}.er-form-section h4{margin:0 0 12px;font-size:14px;font-weight:700;color:#334155;padding-bottom:6px;border-bottom:1px solid #f1f5f9}.er-computed-preview{display:flex;gap:16px;margin-top:12px;padding:12px 16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.er-computed-item{display:flex;flex-direction:column;align-items:center;gap:4px}.er-computed-item span:first-child{font-size:11px;font-weight:600;color:#64748b;text-transform:uppercase}.er-computed-item strong{font-size:20px;line-height:1}.er-subject-grades{display:flex;gap:6px;flex-wrap:wrap}.er-mini-grade{font-size:11px;font-weight:600;padding:2px 6px;border-radius:4px;background:#f1f5f9;color:#475569}.empty-cell{text-align:center;color:#64748b;padding:32px 16px;font-size:14px}.empty-panel-note{color:#64748b;font-size:13px;text-align:center;padding:16px;margin:0}@media(max-width:1024px){.er-layout{grid-template-columns:1fr}.er-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch}.er-tab{white-space:nowrap;min-width:0;flex:0 0 auto;padding:10px 14px}}@media(max-width:720px){.er-filter-bar{flex-direction:column;align-items:stretch}.er-filter-bar>select{min-width:0;width:100%}.er-computed-preview{flex-direction:column;gap:10px}.er-form-modal{max-width:100%;margin:10px}}.classes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.class-card{display:flex;flex-direction:column;gap:12px}.class-card .panel-heading h3{display:flex;align-items:center;gap:8px}.class-card-meta{display:flex;flex-wrap:wrap;gap:16px;font-size:.88rem;color:#55536b;font-weight:600}.class-card-meta span{display:inline-flex;align-items:center;gap:6px}.class-card-sections{display:flex;flex-wrap:wrap;gap:8px}.role-chip{font-style:normal;font-size:.75rem;font-weight:700;padding:4px 10px;border-radius:999px;background:#efede6;color:#55536b;white-space:nowrap}.role-chip-primary{background:#ece7fd;color:#5b3df5}.role-chip-green{background:#e4f3e6;color:#1f7a4d}.role-chip-blue{background:#e4eefb;color:#1d5fd6}.role-chip-amber{background:#fcf1dc;color:#96620c}.role-chip-rose{background:#fbe6ea;color:#b0234a}.role-chip-teal{background:#dff0f2;color:#0b7285}.role-chip-slate{background:#e6e8f0;color:#4a4d6b}.link-button{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#5b3df5;font-weight:700;cursor:pointer;padding:0}.timetable-controls{display:flex;gap:12px;align-items:center}.timetable-select{padding:8px 12px;border:1px solid #dbe3ef;border-radius:7px;background:#fff;color:#0f172a;font-size:13px;font-weight:500;min-width:140px;cursor:pointer}.week-navigation{display:flex;align-items:center;justify-content:space-between;margin:16px 0;padding:12px 16px;background:#f8fafc;border-radius:8px}.week-nav-button{display:flex;align-items:center;gap:6px;padding:8px 16px;border:1px solid #dbe3ef;border-radius:6px;background:#fff;color:#64748b;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease}.week-nav-button:hover{background:#fff;color:#36238f;border-color:#36238f}.week-range{flex:1;text-align:center}.week-label{font-size:14px;font-weight:600;color:#0f172a}.week-tag{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:#eef2f7;color:#64748b}.week-tag.custom{background:#fef3c7;color:#92400e}.timetable-navigation{display:flex;align-items:center;gap:8px;margin:16px 0}.day-nav-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #dbe3ef;border-radius:6px;background:#fff;color:#64748b;cursor:pointer;transition:all .15s ease}.day-nav-button:hover:not(:disabled){background:#f8fafc;color:#36238f}.day-nav-button:disabled{opacity:.4;cursor:not-allowed}.day-tabs{display:flex;gap:4px;flex:1}.day-tab{flex:1;padding:8px 12px;border:1px solid #dbe3ef;border-radius:6px;background:#fff;color:#64748b;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease;display:flex;flex-direction:column;align-items:center;gap:2px}.day-name{font-size:12px;font-weight:500}.day-date{font-size:11px;font-weight:400;opacity:.8}.day-tab:hover{background:#f8fafc;color:#36238f}.day-tab.active{background:#36238f;color:#fff;border-color:#36238f}.timetable-grid-viewport{border:1px solid #e2e8f0;border-radius:8px}.timetable-grid{min-width:600px}.timetable-header th{padding:12px 16px;background:#f8fafc;font-weight:600;font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.timetable-row{background:#fff;transition:background .15s ease}.timetable-row:hover{background:#f8fafc}.timetable-row td{padding:12px 16px;font-size:13px;color:#334155;vertical-align:middle}.period-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:600;border-radius:4px}.actions-column{justify-content:center}.slot-actions{display:flex;gap:6px}.icon-button-small{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #dbe3ef;border-radius:4px;background:#fff;color:#64748b;cursor:pointer;transition:all .15s ease}.icon-button-small:hover{background:#f8fafc;color:#36238f}.icon-button-small.delete:hover{background:#fef2f2;color:#ef4444;border-color:#fecaca}.add-slot-button{display:flex;align-items:center;gap:4px;padding:6px 12px;border:1px dashed #dbe3ef;border-radius:4px;background:#fff;color:#64748b;font-size:12px;font-weight:500;cursor:pointer;transition:all .15s ease}.add-slot-button:hover{background:#f8fafc;color:#36238f;border-color:#36238f}.timetable-empty{grid-column:1 / -1;padding:40px 16px;text-align:center;color:#94a3b8;font-size:14px}.timetable-footer{margin-top:16px;display:flex;justify-content:flex-end}@media(max-width:980px){.timetable-header th,.timetable-row>td{padding:10px 12px}}@media(max-width:720px){.panel-heading{flex-direction:column;align-items:stretch}.timetable-controls{width:100%;flex-wrap:wrap}.timetable-select{flex:1;min-width:0}.week-navigation{flex-wrap:wrap;gap:10px;padding:10px 12px}.week-range{order:-1;flex-basis:100%}.week-nav-button{flex:1;justify-content:center;padding:8px 10px}.timetable-navigation{gap:6px;margin:12px 0}.day-nav-button{width:30px;height:30px;flex-shrink:0}.day-tabs{gap:4px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.day-tabs::-webkit-scrollbar{display:none}.day-tab{flex:0 0 58px;padding:8px 6px}.day-name{font-size:11px;white-space:nowrap}.day-date{display:none}.timetable-grid-viewport{border:0}.timetable-grid,.timetable-grid tbody,.timetable-grid tbody>tr{display:block;min-width:0}.timetable-grid thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.timetable-grid tbody>.timetable-row{display:grid;margin-bottom:10px;grid-template-columns:auto 1fr auto;grid-template-areas:"period time actions" "subject subject subject" "teacher teacher teacher" "room room room";border:1px solid #e2e8f0;border-radius:10px}.timetable-row>td{display:flex;align-items:center;padding:10px 14px}.timetable-row>.period-column{grid-area:period}.timetable-row>.time-column{grid-area:time}.timetable-row>.actions-column{grid-area:actions}.timetable-row>.subject-column{grid-area:subject}.timetable-row>.teacher-column{grid-area:teacher}.timetable-row>.room-column{grid-area:room}.timetable-row>[data-label]{flex-direction:column;align-items:flex-start;gap:2px;padding-top:8px;padding-bottom:8px;border-top:1px solid #f1f5f9}.timetable-row>[data-label]:before{content:attr(data-label);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8}.timetable-empty{display:block;border:1px dashed #e2e8f0;border-radius:10px}.timetable-footer .primary-button{width:100%}.modal-actions{flex-direction:column-reverse}.modal-actions .primary-button,.modal-actions .ghost-button{width:100%}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000;padding:20px}.modal-content{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a;max-width:500px;width:100%;max-height:90vh;overflow-y:auto}.modal-content.form-modal{max-width:640px}.modal-overlay{animation:modal-fade-in .16s ease-out}.modal-content{animation:modal-pop-in .2s cubic-bezier(.16,1,.3,1)}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-pop-in{0%{transform:translateY(10px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.modal-content .settings-form{border:0;padding:20px 24px}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e2e8f0}.modal-header h3{margin:0;font-size:18px;font-weight:600;color:#0f172a}.modal-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;color:#64748b;font-size:24px;cursor:pointer;border-radius:4px;transition:background .15s ease}.modal-close:hover{background:#f1f5f9;color:#0f172a}.modal-body{padding:24px}.form-group{margin-bottom:16px}.form-group label{display:block;margin-bottom:6px;font-size:13px;font-weight:500;color:#334155}.form-select,.form-input{width:100%;padding:10px 12px;border:1px solid #dbe3ef;border-radius:6px;background:#fff;color:#0f172a;font-size:14px;transition:border-color .15s ease}.form-select:focus,.form-input:focus{outline:none;border-color:#36238f}.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-checkbox-group small{display:block;margin-top:4px;color:#64748b;font-size:12px}.checkbox-label{display:flex!important;align-items:center;gap:8px;margin-bottom:0!important;cursor:pointer}.form-error{margin-top:12px;padding:10px 12px;border-radius:6px;background:#fef2f2;color:#b42318;font-size:13px}.cal-nav{display:inline-flex;align-items:center;gap:10px}.cal-month-label{font-size:14px;font-weight:700;color:#0f172a;min-width:130px;text-align:center}.cal-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:16px}.cal-weekdays span{text-align:center;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b}.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:8px}.cal-day{min-height:64px;border-radius:10px;padding:8px 9px;display:flex;flex-direction:column;justify-content:space-between;background:#f8fafc;border:1px solid transparent}.cal-day-number{font-size:13px;font-weight:700;color:#0f172a;line-height:1}.cal-status{font-size:10px;font-weight:800;line-height:1.2}.cal-blank{background:transparent;pointer-events:none}.cal-present{background:#e7f7ed;border-color:#b7e4c7}.cal-present .cal-status{color:#1f7a3d}.cal-absent{background:#fdecea;border-color:#f5c2c0}.cal-absent .cal-status{color:#b42318}.cal-late{background:#fef3c7;border-color:#fde68a}.cal-late .cal-status{color:#92400e}.cal-leave{background:#ece7fd;border-color:#d8cdfa}.cal-leave .cal-status{color:#5b3df5}.cal-norecord{background:#fbfbfa}.cal-norecord .cal-day-number{color:#94a3b8}.cal-weekend{background:#f1f5f9}.cal-weekend .cal-day-number,.cal-future .cal-day-number{color:#cbd5e1}.cal-future{opacity:.75}.cal-today{border-color:#36238f;box-shadow:0 0 0 2px #36238f26}.cal-legend{display:flex;flex-wrap:wrap;gap:18px;margin-top:18px}.legend-item{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:#55536b}.dot{width:12px;height:12px;border-radius:50%;display:inline-block}.dot-present{background:#34a853}.dot-absent{background:#dc2626}.dot-late{background:#f59e0b}.dot-leave{background:#7c5cfc}.dot-none{background:#e2e8f0}@media(max-width:720px){.cal-day{min-height:48px;padding:5px 6px;border-radius:8px}.cal-status{display:none}}.student-status.approved{background:#dcfce7;color:#166534}.student-status.rejected{background:#fee2e2;color:#991b1b}.leave-request-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.leave-request-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;border-radius:8px;border:1px solid #f1f1ee;background:#fafaf9}.leave-info{flex:1;min-width:0}.leave-info strong{display:block;font-size:14px;color:#333}.leave-info em{display:block;font-size:12px;color:#666;margin-top:2px}.leave-info p{margin:6px 0 0;font-size:13px;color:#444}.leave-info small{display:block;margin-top:4px;font-size:12px;color:#888}.leave-actions{display:flex;gap:6px;align-items:center}.leave-actions .primary-button,.leave-actions .ghost-button{padding:6px 12px;font-size:13px;cursor:pointer}.leave-actions .ghost-button{background:#f6f5f1}.leave-actions .ghost-button:hover{background:#eee}.leave-tabs{display:flex;gap:8px;margin-bottom:4px}.leave-tab{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:8px;border:1px solid #e5e5e2;background:#fafaf9;font-size:14px;font-weight:500;color:#666;cursor:pointer;transition:all .15s}.leave-tab:hover{background:#f0f0ed}.leave-tab.active{background:#111;color:#fff;border-color:#111}.tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;font-size:11px;font-weight:600;background:#00000014;color:inherit}.leave-tab.active .tab-count{background:#fff3}@media(max-width:720px){.leave-request-row{flex-direction:column;gap:8px}.leave-actions{justify-content:flex-end}}.ai-page{display:flex;flex-direction:column;height:calc(100vh - 60px)}.ai-status-badge{padding:4px 12px;border-radius:999px;font-size:12px;font-weight:600;letter-spacing:.3px;white-space:nowrap}.ai-status-badge.online{background:#d1fae5;color:#065f46}.ai-status-badge.offline{background:#fee2e2;color:#991b1b}.ai-chat-column{flex:1 1 0%;min-width:0;min-height:0;display:flex;flex-direction:column}.ai-chat-container{flex:1 1 0%;min-height:0;overflow-y:auto;padding:0 0 12px}.ai-layout{flex:1 1 0%;min-height:0;display:flex;gap:16px}.ai-sidebar{width:240px;flex-shrink:0;display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding:4px 0;border-right:1px solid #e2e8f0}.ai-new-chat-btn{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;border:1px solid #e2e8f0;background:#fff;color:#334155;font-weight:600;font-size:13px;cursor:pointer;transition:background .15s}.ai-new-chat-btn:hover:not(:disabled){background:#f1f5f9}.ai-new-chat-btn:disabled{opacity:.5;cursor:not-allowed}.ai-conv-list{display:flex;flex-direction:column;gap:4px}.ai-conv-item{display:flex;align-items:center;gap:4px;padding:0;border-radius:10px;border:1px solid transparent;background:transparent;cursor:pointer;color:#334155;transition:background .15s,border-color .15s}.ai-conv-item:hover:not(:has(.ai-conv-delete:disabled)){background:#f1f5f9}.ai-conv-item.active{background:#eef2ff;border-color:#c7d2fe}.ai-conv-open{flex:1 1 auto;min-width:0;text-align:left;padding:10px 4px 10px 12px;border:none;background:transparent;color:inherit;cursor:pointer;font:inherit}.ai-conv-open:hover:not(:disabled){background:transparent}.ai-conv-open:disabled{opacity:.6;cursor:not-allowed}.ai-conv-delete{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:26px;height:26px;margin-right:8px;border:none;border-radius:8px;background:transparent;color:#94a3b8;cursor:pointer;transition:background .15s,color .15s}.ai-conv-delete:hover:not(:disabled){background:#fee2e2;color:#dc2626}.ai-conv-delete:disabled{opacity:.6;cursor:not-allowed}.ai-conv-title{display:block;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-conv-meta{display:block;font-size:12px;color:#64748b;margin-top:2px}.ai-conv-empty{font-size:13px;color:#94a3b8;padding:8px 4px}.ai-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:12px;color:#64748b;text-align:center;padding:32px 16px}.ai-empty-state h3{margin:0;color:#1e293b;font-size:20px}.ai-empty-state p{margin:0;font-size:14px;max-width:420px}.ai-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px;max-width:520px}.ai-suggestion-chip{padding:8px 16px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;color:#334155;font-size:13px;cursor:pointer;transition:background .15s,border-color .15s}.ai-suggestion-chip:hover:not(:disabled){background:#f1f5f9;border-color:#cbd5e1}.ai-suggestion-chip:disabled{opacity:.5;cursor:not-allowed}.ai-messages{display:flex;flex-direction:column;gap:16px;padding:8px 0}.ai-msg{display:flex;gap:10px;max-width:80%}.ai-msg.user{align-self:flex-end;flex-direction:row-reverse}.ai-msg.assistant{align-self:flex-start}.ai-avatar{width:32px;height:32px;border-radius:50%;background:#e0e7ff;color:#4338ca;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}.ai-avatar img{width:100%;height:100%;object-fit:contain}.ai-header-img{width:26px;height:26px;border-radius:50%;object-fit:contain;vertical-align:-5px;margin-right:6px;border:1px solid #e9e3fb;background:#fff}.ai-empty-img{width:150px;max-width:60%;object-fit:contain;filter:drop-shadow(0 12px 18px rgba(54,35,143,.18))}.ai-bubble{padding:12px 16px;border-radius:14px;font-size:14px;line-height:1.55;word-break:break-word}.ai-msg.user .ai-bubble{background:#4f46e5;color:#fff;border-bottom-right-radius:4px}.ai-msg.assistant .ai-bubble{background:#f1f5f9;color:#1e293b;border-bottom-left-radius:4px}.ai-bubble-text{margin:0;font-family:inherit;font-size:inherit;line-height:inherit;white-space:pre-wrap;color:inherit;background:none;border:none;padding:0}.ai-typing{display:flex;align-items:center;gap:8px;color:#64748b;font-size:13px}.ai-tool-indicator{display:flex;align-items:center;gap:8px;font-size:13px;color:#94a3b8;background:#f8fafc;border:1px solid #e2e8f0}.ai-tool-indicator strong{color:#64748b;font-weight:600}.ai-tool-indicator.done{color:#a1a1aa;opacity:.7}.ai-tool-time{color:#cbd5e1;font-size:12px;margin-left:4px}@keyframes spin{to{transform:rotate(360deg)}}.spin{animation:spin 1s linear infinite}.ai-input-bar{display:flex;align-items:flex-end;gap:8px;padding:12px 0 0;border-top:1px solid #e2e8f0;flex-shrink:0}.ai-input{flex:1 1 0%;resize:none;padding:10px 14px;border-radius:12px;border:1px solid #cbd5e1;background:#fff;font-size:14px;line-height:1.45;max-height:120px;outline:none;transition:border-color .15s}.ai-input:focus{border-color:#6366f1}.ai-input:disabled{background:#f8fafc;cursor:not-allowed}.ai-send-btn{width:40px;height:40px;border-radius:10px;border:none;background:#4f46e5;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background .15s}.ai-send-btn:hover:not(:disabled){background:#4338ca}.ai-send-btn:disabled{background:#c7d2fe;cursor:not-allowed}@media(max-width:720px){.ai-page{height:calc(100vh - 56px)}.ai-layout{flex-direction:column}.ai-sidebar{width:100%;flex-direction:row;border-right:none;border-bottom:1px solid #e2e8f0;padding-bottom:8px}.ai-conv-list{flex-direction:row;flex-wrap:nowrap;overflow-x:auto}.ai-conv-item{flex-shrink:0;max-width:200px}.ai-msg{max-width:95%}.ai-empty-state h3{font-size:17px}.ai-empty-img{width:120px}.ai-empty-state{height:auto;min-height:100%;justify-content:flex-start;padding-top:24px}.ai-suggestion-chip{font-size:12px;padding:6px 12px}}.ai-dashboard-bubble{width:100%;max-width:860px;padding:14px;overflow-x:auto}.dash-view{display:flex;flex-direction:column;gap:18px;min-width:0}.dash-heading h3{margin:0;font-size:17px;color:#1f2937}.dash-heading p{margin:4px 0 0;font-size:12.5px;color:#64748b}.dash-section{display:flex;flex-direction:column;gap:12px;min-width:0}.dash-section-head h3{font-size:14px}.dash-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.dash-kpi{min-height:96px}.dash-kpi-trend.up{color:#10b981}.dash-kpi-trend.down{color:#ef4444}.dash-chart-grid,.dash-table-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;min-width:0}.dash-charts-section,.dash-chart-grid,.dash-table-grid{min-width:0}.dash-card{padding:16px}.dash-card-icon{display:inline-flex;color:#36238f}.dash-card-body{min-width:0}.dash-linewrap{height:190px}.chart-fill{fill:#36238f24}.chart-line{stroke:#36238f}.chart-dot{fill:#36238f}.dash-barchart{min-height:180px}.dash-barchart .grade-label{font-size:10.5px;max-width:56px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dash-pie{display:flex;flex-direction:column;align-items:center;gap:10px}.dash-pie-svg{width:100%;max-width:220px;height:auto}.dash-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:#4b5563}.dash-legend-swatch{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px}.dash-donut-center{font-size:20px;font-weight:700;fill:#111827}.dash-table{width:100%;border-collapse:collapse;font-size:12.5px}.dash-table th{text-align:left;padding:8px 10px;background:#f1f5f9;border-bottom:1px solid #e2e8f0;font-weight:700;color:#334155}.dash-table td{padding:8px 10px;border-bottom:1px solid #eef1f5;color:#111827}.dash-table-empty{text-align:center;color:#94a3b8;padding:16px}.dash-filters{display:flex;flex-wrap:wrap;gap:12px}.dash-filter{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#64748b}.dash-filter select,.dash-filter input{font-size:13px;padding:5px 8px;border:1px solid #dbe3ef;border-radius:6px;background:#fff;color:#1f2937}.dash-unsupported{padding:10px 12px;border:1px dashed #fca5a5;border-radius:8px;background:#fef2f2;color:#b91c1c;font-size:12px}@media(max-width:640px){.dash-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-chart-grid,.dash-table-grid{grid-template-columns:1fr}}.roles-header-actions{display:flex;align-items:center;gap:10px}.students-subtitle{margin:4px 0 0;color:#64748b;font-size:13px}.role-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-radius:8px;border:1px solid #bbf7d0;background:#ecfdf5;color:#047857;font-size:13px;font-weight:650}.role-banner.error{border-color:#efc9c9;background:#fff1f1;color:#963232}.role-banner .icon-button{color:inherit}.roles-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.roles-filter-bar{display:grid;grid-template-columns:minmax(260px,1fr) 150px 150px auto;gap:12px;align-items:center;padding:14px;background:#fff;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 12px 28px #0f172a0a}.roles-filter-bar .student-search-holder{display:flex;align-items:center;gap:9px;min-height:38px;padding:0 12px;border:1px solid #dbe3ef;border-radius:7px;background:#f8fafc;color:#64748b}.roles-filter-bar input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#0f172a}.roles-filter-bar select{height:38px;padding:0 10px;border:1px solid #dbe3ef;border-radius:7px;background:#f8fafc;color:#0f172a;font-size:12.5px;font-weight:650}.roles-filter-bar>.ghost-button{align-self:center;white-space:nowrap}.roles-bulk-bar{display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #c7d2fe;border-radius:8px;background:#eef2ff;color:#3730a3;font-size:12.5px}.roles-bulk-bar>span{margin-right:auto}.roles-bulk-bar button:not(.icon-button){display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border:1px solid #c7d2fe;border-radius:6px;background:#fff;color:#3730a3;font-size:12px;font-weight:700;cursor:pointer}.roles-bulk-bar button:not(.icon-button):hover{border-color:#a5b4fc;background:#e0e7ff}.roles-bulk-bar button.danger{color:#b91c1c;border-color:#fecaca}.roles-bulk-bar button.danger:hover{background:#fef2f2;border-color:#fca5a5}.roles-directory-card{overflow:hidden;background:#fff;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 12px 28px #0f172a0a}.roles-table{min-width:1100px}.roles-table th{background:#f8fafc;white-space:nowrap}.roles-table .checkbox-col{width:40px;text-align:center}.roles-table .actions-col{width:92px;text-align:right;white-space:nowrap}.roles-table input[type=checkbox]{width:15px;height:15px;accent-color:#36238F}.roles-table td{vertical-align:middle}.roles-table .role-row{cursor:default}.roles-table .role-row:hover td,.roles-table .role-row.expanded td{background:#f8f7ff}.role-name-cell{display:inline-flex;align-items:center;gap:10px}.role-avatar{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;border-radius:9px;background:linear-gradient(135deg,#36238f,#7658d8);color:#fff}.role-name-meta{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.role-name-meta strong{color:#111827;font-size:13px}.role-type-badge{display:inline-flex;align-items:center;padding:1px 8px;border-radius:999px;font-size:10.5px;font-weight:800;letter-spacing:.2px;text-transform:uppercase}.role-type-badge.system{background:#eef2ff;color:#4338ca}.role-type-badge.custom{background:#edeafb;color:#5b3df5}.role-desc-cell{color:#64748b;font-size:12.5px;max-width:240px}.role-users-cell .role-users-count{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#334155;font-size:12px;font-weight:700;cursor:pointer}.role-users-cell .role-users-count:hover{border-color:#c7d2fe;background:#eef2ff;color:#4338ca}.role-perms-cell{max-width:280px}.role-perm-count{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;padding:0;color:#475569;font-size:12.5px;cursor:pointer}.role-perm-count strong{color:#36238f;font-size:14px}.role-perm-count:hover strong{text-decoration:underline}.role-perm-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}.role-perm-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#edeafb;color:#5b3df5;font-size:10.5px;font-weight:750;white-space:nowrap}.role-perm-badge.other{background:#f1f5f9;color:#64748b}.role-perm-badge.more{background:#f8fafc;color:#94a3b8;border:1px dashed #dbe3ef}.role-perm-empty{color:#94a3b8;font-size:12px}.role-updated-cell span{display:block;color:#334155;font-size:12px;font-weight:700}.role-updated-cell small{color:#94a3b8;font-size:11px}.row-actions{display:inline-flex;align-items:center;gap:4px}.row-menu{position:relative}.row-menu-popup{position:absolute;top:100%;right:0;z-index:30;display:flex;flex-direction:column;min-width:160px;padding:6px;margin-top:4px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:0 14px 30px #0f172a1f}.row-menu-popup button{display:flex;align-items:center;gap:8px;width:100%;padding:7px 9px;border:0;border-radius:6px;background:transparent;color:#334155;font-size:12.5px;font-weight:600;text-align:left;cursor:pointer}.row-menu-popup button:hover:not(:disabled){background:#f1f5f9;color:#111827}.row-menu-popup button.danger{color:#b91c1c}.row-menu-popup button.danger:hover:not(:disabled){background:#fef2f2}.row-menu-popup button:disabled{opacity:.45;cursor:not-allowed}.role-expanded-row td{background:#f8f7ff;border-bottom:1px solid #edeafb}.role-expanded-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:16px 20px 18px}.role-expanded-section h4{margin:0 0 10px;font-size:12px;text-transform:uppercase;letter-spacing:.4px;color:#64748b}.role-detail-list{margin:0}.role-detail-list>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;padding:4px 0;border-bottom:1px dashed #e2e8f0}.role-detail-list dt{color:#94a3b8;font-size:12px}.role-detail-list dd{margin:0;color:#1f2937;font-size:12.5px;overflow-wrap:anywhere}.role-expanded-perm-groups{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}.role-expanded-section .link-button{margin-top:4px}.role-user-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.role-user-list li{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.role-user-avatar{width:30px;height:30px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#36238f,#7658d8);color:#fff;font-size:10px;font-weight:800}.role-user-meta{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.role-user-meta strong{color:#111827;font-size:13px}.role-user-meta small{color:#94a3b8;font-size:11.5px}.role-user-list.compact li{padding:6px 8px}.role-expanded-grid .role-user-list{gap:6px}.roles-loading{display:grid;gap:10px;padding:12px}.skeleton{border-radius:6px;background:linear-gradient(90deg,#eef1f5 25%,#f6f8fb,#eef1f5 75%);background-size:200% 100%;animation:skeleton-shimmer 1.3s ease-in-out infinite}.skeleton-text{display:block;height:14px}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90;display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;overflow-y:auto;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.dialog-panel{width:100%;max-width:480px;border-radius:12px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 24px 60px #0f172a38;outline:none}.dialog-panel-wide{max-width:680px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px;border-bottom:1px solid #eef1f5}.dialog-heading h3{display:flex;align-items:center;gap:8px;margin:0;color:#111827;font-size:15px}.dialog-heading h3 svg{color:#dc2626}.dialog-body{padding:16px 18px;max-height:62vh;overflow-y:auto}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:13px 18px;border-top:1px solid #eef1f5}.role-perm-total{display:flex;align-items:center;gap:6px;font-size:13px;color:#475569}.role-perm-total strong{font-size:20px;color:#36238f}.role-perm-note{color:#94a3b8;font-size:11.5px;font-weight:600}.role-perm-group{margin-top:16px}.role-perm-group h4{display:flex;align-items:center;gap:6px;margin:0 0 8px;font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:#64748b}.role-perm-module{margin:8px 0;padding:10px 12px;border:1px solid #eef1f5;border-radius:8px;background:#f8fafc}.role-perm-module-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#64748b;font-size:12px}.role-perm-chip{display:inline-flex;align-items:center;gap:5px;font-weight:750;color:#36238f}.role-perm-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:5px}.role-perm-list li{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#1f2937}.role-perm-list li svg{color:#059669;flex-shrink:0}.role-perm-list li code{margin-left:auto;color:#94a3b8;font-size:11px}.role-form-page{display:grid;gap:18px;padding:28px}.role-form-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.role-form-hero h2{margin:0;color:#0f172a;font-size:24px}.role-form-hero p{margin:4px 0 0;color:#64748b;font-size:13px}.role-stepper{display:flex;align-items:center;gap:6px}.role-stepper button{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#64748b;font-size:12px;font-weight:700;cursor:pointer}.role-stepper button span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e2e8f0;color:#64748b;font-size:11px;font-weight:800}.role-stepper button.active{border-color:#36238f;color:#36238f;background:#edeafb}.role-stepper button.active span{background:#36238f;color:#fff}.role-stepper button.done span{background:#10b981;color:#fff}.role-form-card{display:grid;gap:18px;padding:22px;background:#fff;border:1px solid #dbe3ef;border-radius:10px;box-shadow:0 12px 28px #0f172a0a}.role-form-section{display:grid;gap:16px}.role-form-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.role-form-section-head h3{margin:0;color:#111827;font-size:15px}.role-form-section-head p{margin:3px 0 0;color:#64748b;font-size:12.5px}.role-preset-picker{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:750;color:#64748b;text-transform:uppercase;letter-spacing:.3px}.role-preset-picker select{min-width:180px;height:36px;padding:0 10px;border:1px solid #dbe3ef;border-radius:7px;background:#f8fafc;color:#0f172a;font-size:12.5px;text-transform:none}.role-form-section .form-grid .span-all{grid-column:1 / -1;display:flex;flex-direction:column;gap:6px}.error-banner.span-all,.warning-banner.span-all{grid-column:1 / -1}.role-field-label{font-size:12.5px;font-weight:650;color:#334155}.role-color-picker{display:flex;flex-wrap:wrap;gap:8px}.role-color-picker button{width:26px;height:26px;border-radius:7px;border:2px solid #ffffff;outline:1px solid #e2e8f0;cursor:pointer}.role-color-picker button.selected{outline:2px solid #36238F;transform:scale(1.12)}.role-icon-picker{display:flex;flex-wrap:wrap;gap:6px}.role-icon-picker button{width:36px;height:36px;display:grid;place-items:center;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#475569;cursor:pointer}.role-icon-picker button.selected{border-color:#36238f;background:#edeafb;color:#36238f}.role-toggle-grid{display:flex;flex-direction:column;gap:8px}.role-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:9px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#1f2937;font-size:13px;font-weight:600;cursor:pointer;text-align:left}.role-toggle-row:disabled{opacity:.5;cursor:not-allowed}.role-toggle{position:relative;display:inline-flex;align-items:center;width:38px;height:21px;flex-shrink:0;border-radius:999px;background:#cbd5e1;transition:background .15s}.role-toggle span{position:absolute;left:2px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0f172a40;transition:transform .15s}.role-toggle-row.on .role-toggle{background:#36238f}.role-toggle-row.on .role-toggle span{transform:translate(17px)}.role-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:4px;border-top:1px solid #eef1f5}.role-review{gap:18px}.role-review-identity{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #eef1f5;border-radius:10px;background:#f8fafc}.role-review-avatar{width:42px;height:42px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;color:#fff}.role-review-identity>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.role-review-identity strong{font-size:15px;color:#111827}.role-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.role-review-grid>div{display:grid;gap:3px;padding:10px 12px;border:1px solid #eef1f5;border-radius:8px;background:#fff}.role-review-grid span{color:#94a3b8;font-size:11px;text-transform:uppercase;letter-spacing:.3px;font-weight:750}.role-review-grid strong{color:#1f2937;font-size:13px}.role-review-permissions{padding:14px;border:1px solid #eef1f5;border-radius:10px;background:#fff}.role-review-permissions-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.role-review-permissions-title h4{margin:0;font-size:13px;color:#111827}.role-review-module-list{display:grid;gap:6px}.role-review-module{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 10px;border:1px solid #eef1f5;border-radius:7px;background:#f8fafc;color:#475569;font-size:12.5px}.role-review-module strong{color:#36238f;font-size:12px}.role-review-categories{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-top:10px;color:#94a3b8;font-size:12px}.role-matrix{display:grid;gap:12px}.role-matrix-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.role-matrix-search{display:flex;align-items:center;gap:8px;flex:1 1 240px;min-height:36px;padding:0 12px;border:1px solid #dbe3ef;border-radius:7px;background:#f8fafc;color:#64748b}.role-matrix-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#0f172a}.role-matrix-actions{display:flex;flex-wrap:wrap;gap:8px}.role-matrix-actions .ghost-button{font-size:12px;padding:6px 10px}.role-matrix-scroll{border:1px solid #eef1f5;border-radius:10px}.role-matrix-table{min-width:720px;border-collapse:collapse;width:100%}.role-matrix-table thead th{position:sticky;top:0;z-index:5;background:#f8fafc;padding:10px 12px;border-bottom:1px solid #e2e8f0;text-align:center;font-size:12px;text-transform:uppercase;letter-spacing:.3px;color:#64748b;font-weight:750}.role-matrix-table td{padding:8px 12px;border-bottom:1px solid #f1f5f9;text-align:center;font-size:12.5px}.role-matrix-table tbody tr:last-child td{border-bottom:0}.role-matrix-module-col{position:sticky;left:0;z-index:2;min-width:200px;text-align:left!important;background:#fff}.role-matrix-table thead th.role-matrix-module-col{z-index:6;background:#f8fafc}.role-matrix-group-row td{background:#eef2ff;color:#4338ca;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;text-align:left!important;padding:6px 12px}.role-matrix-module-name{display:inline-flex;align-items:center;gap:7px;padding:0;border:0;background:transparent;color:#1f2937;font-size:12.5px;font-weight:700;cursor:pointer;text-align:left}.role-matrix-module-name svg{color:#64748b}.role-matrix-module-name span{color:inherit}.role-matrix-module-name em{font-style:normal;font-size:10.5px;color:#94a3b8;font-weight:650}.role-matrix-table input[type=checkbox]{width:15px;height:15px;accent-color:#36238F;cursor:pointer}.role-matrix-expand-col{width:42px}.role-matrix-expand-col .icon-button{padding:3px}.role-matrix-detail td{background:#f8fafc;text-align:left;padding:10px 14px}.role-matrix-detail-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px}.role-matrix-detail-item{display:flex;align-items:center;gap:7px;padding:5px 8px;border:1px solid #eef1f5;border-radius:7px;background:#fff;font-size:12px;color:#1f2937;cursor:pointer}.role-matrix-detail-item:hover{border-color:#c7d2fe}.role-matrix-detail-item code{margin-left:auto;color:#94a3b8;font-size:10.5px}.role-matrix-other{padding:12px 14px;border:1px dashed #c7d2fe;border-radius:8px;background:#f8fafc}.role-matrix-other strong{color:#4338ca;font-size:12.5px}.role-matrix-other p{margin:3px 0 8px;color:#94a3b8;font-size:12px}.role-matrix-other-list{display:flex;flex-wrap:wrap;gap:6px}.role-matrix-other-list code{padding:3px 8px;border-radius:6px;background:#fff;border:1px solid #eef1f5;color:#64748b;font-size:11.5px}.role-matrix-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.role-category-summary{display:flex;flex-wrap:wrap;gap:6px}.role-category-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#334155;font-size:11.5px;font-weight:650;cursor:pointer}.role-category-chip span{color:#36238f;font-weight:800}.role-category-chip:hover{border-color:#c7d2fe;background:#eef2ff}@media(max-width:900px){.roles-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.roles-filter-bar{grid-template-columns:minmax(0,1fr) 130px 130px}.role-expanded-grid,.role-review-grid{grid-template-columns:1fr}.role-stepper{width:100%;justify-content:flex-start;overflow-x:auto}}@media(max-width:640px){.roles-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.roles-summary-grid .kpi-card{min-height:0;padding:12px}.roles-summary-grid .kpi-card>strong{margin-top:8px;font-size:24px}.roles-summary-grid .kpi-topline{gap:4px;overflow-wrap:anywhere}.roles-summary-grid .kpi-topline svg{flex-shrink:0}.students-header h2{flex-wrap:wrap}.department-page .settings-sections-stack{margin-top:0}.department-page .settings-section{padding:14px}.department-page .section-header{gap:8px;flex-wrap:wrap}.roles-filter-bar{grid-template-columns:1fr}.roles-header-actions{width:100%;justify-content:space-between}.role-matrix-toolbar{flex-direction:column;align-items:stretch}.dialog-backdrop{padding:16px 8px}}.btn-primary,.btn-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border-radius:8px;border:1px solid transparent;font-weight:600;padding:0 14px;font-size:14px}.btn-primary{background:#36238f;color:#fff}.btn-primary:hover{background:#7658d8}.btn-primary:disabled{background:#cbd5e1;color:#f1f5f9;cursor:not-allowed}.btn-secondary{background:#fff;border-color:#cbd5e1;color:#334155}.btn-secondary:hover{background:#f8fafc}.field{display:grid;gap:7px;color:#475569;font-size:14px;font-weight:600;margin-bottom:14px}.field-label{display:block}.field input,.field select,.field textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1f2937;min-height:40px;padding:9px 10px;font-weight:400}.field textarea{min-height:76px;resize:vertical}.field input:disabled{background:#f1f5f9;color:#64748b}.form-note{margin:14px 0 0;display:flex;align-items:center;gap:6px;color:#64748b;font-size:12px}.form-panel .message-compose-footer{margin-top:4px}.save-confirm{color:#15803d;font-weight:600}.message-header-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.message-header-actions{display:flex;gap:10px}.message-compose{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;margin-bottom:16px;display:grid;gap:12px;box-shadow:0 1px 2px #0f172a0d}.message-compose-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.message-compose textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;resize:vertical}.message-compose-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px}.message-list{display:grid;gap:16px}.teacher-thread{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 1px 2px #0f172a0d}.teacher-thread-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid #f1f5f9}.teacher-thread-head h3{margin:0;font-size:16px;color:#0f172a}.thread-scroll{display:flex;flex-direction:column;gap:12px;max-height:420px;overflow-y:auto;padding:2px 4px 6px}.teacher-thread .message-compose{margin-bottom:0}.teacher-thread .message-compose-footer{justify-content:space-between}.msg-hint{font-size:12px;color:#94a3b8}.message-student-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.message-student-toolbar label{font-size:13px;font-weight:600;color:#475569}.message-student-toolbar select{max-width:320px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:14px;background:#fff;color:#0f172a;cursor:pointer}.message-bubble{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;max-width:min(760px,92%);cursor:default}.message-bubble.incoming{border-left:3px solid #36238F}.message-bubble.outgoing{margin-left:auto;border-left:3px solid #cbd5e1;background:#f8fafc}.message-bubble.unread{background:#eef2ff;border-color:#c7d2fe;cursor:pointer}.message-bubble-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.message-bubble-head strong{font-size:14px}.message-bubble-head small{color:#64748b;font-size:12px;margin-left:auto}.message-bubble p{margin:8px 0 6px;font-size:14px;line-height:1.5}.message-bubble-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.message-bubble-foot small{color:#94a3b8;font-size:12px}.tag-teacher{background:#e9d5ff;color:#6b21a8;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.03em}.msg-child-tag{background:#eef2ff;color:#4338ca;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.03em}.tag-unread{background:#b91c1c;color:#fff;font-size:10px;font-weight:700;padding:2px 8px;border-radius:999px;text-transform:uppercase}.msg-reply-btn{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:#36238f;font-weight:600;font-size:13px;padding:2px 4px}.msg-reply-btn:hover{text-decoration:underline}.msg-sent{display:inline-flex;align-items:center;gap:5px;color:#64748b}.child-switcher{position:relative;display:flex;align-items:center;gap:8px;min-height:40px}.child-switcher.muted{color:#94a3b8;font-size:13px}.child-switcher.single{padding:6px 12px;background:#f1f5f9;border-radius:999px;font-size:13px;color:#334155;gap:7px}.child-switcher.single small{color:#64748b}.child-switcher-button{display:inline-flex;align-items:center;gap:8px;border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:6px 12px;min-height:38px}.child-switcher-button span{display:flex;flex-direction:column;align-items:flex-start;line-height:1.25}.child-switcher-button strong{font-size:13px}.child-switcher-button small{font-size:11px;color:#64748b}.child-switcher-dropdown{position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 12px 24px #0f172a1f;min-width:260px;z-index:120;padding:6px}.child-switcher-dropdown button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;background:transparent;border-radius:8px;padding:8px 10px}.child-switcher-dropdown button:hover,.child-switcher-dropdown button.selected{background:#eef2ff}.child-avatar{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:999px;background:#36238f;color:#fff;font-weight:700;font-size:13px}.child-avatar.large{width:44px;height:44px;font-size:18px}.child-meta{display:flex;flex-direction:column;line-height:1.3}.child-meta strong{font-size:13px;color:#1e293b}.child-meta small{font-size:11px;color:#64748b}.child-chip{display:inline-flex;align-items:center;gap:6px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px}.children-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.child-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;display:grid;gap:12px;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.child-card:hover{border-color:#c7d2fe}.child-card.selected{border-color:#36238f;box-shadow:0 0 0 2px #36238f1f}.child-card-head{display:flex;align-items:center;gap:12px}.child-card-head h3{margin:0;font-size:16px}.child-card-head small{color:#64748b;font-size:12px}.child-card-meta{font-size:12px;color:#64748b;text-transform:capitalize}.child-card-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.child-card-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:8px 6px;font-size:12px;font-weight:600;color:#334155}.child-card-actions button:hover{background:#eef2ff;border-color:#c7d2fe;color:#36238f}.students-honors{margin:0 0 20px}.students-honors-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.students-honors-header h3{margin:0;font-size:16px;color:#0f172a}.honors-error{font-size:12px;color:#b91c1c}.honors-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.honor-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;box-shadow:0 8px 20px #0f172a0a;display:flex;flex-direction:column;gap:12px}.honor-card-title{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#475569}.honor-card-title svg{color:#d97706}.honor-card-title em{margin-left:auto;font-style:normal;font-weight:600;font-size:11px;color:#94a3b8;text-transform:none}.honor-school-captain{border-color:#d4a72c;background:linear-gradient(180deg,#fffdf5,#fff)}.honor-top{border-color:#e2e8f0}.honor-person{display:flex;align-items:center;gap:10px}.honor-person>div{min-width:0;display:flex;flex-direction:column;gap:1px}.honor-person strong{font-size:13.5px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.honor-person span,.honor-person em{font-size:11.5px;color:#64748b;font-style:normal}.honor-avatar{flex:none;width:36px;height:36px;border-radius:50%;background:#edeafb;color:#36238f;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}.honor-sub{display:flex;justify-content:space-between;gap:8px;font-size:11.5px;color:#64748b;border-top:1px solid #f1f5f9;padding-top:8px}.honor-empty{font-size:12px;color:#94a3b8;font-style:italic}.honor-performers{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.honor-performer{align-items:center}.honor-performer>div{flex:1}.honor-performer>em{font-weight:700;color:#0f172a}.honor-rank{flex:none;width:22px;height:22px;border-radius:6px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center}.honor-school-captain,.honor-top{grid-column:1 / -1}.honor-school-captain{flex-direction:row;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px}.honor-top .honor-performers{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px 32px}@media(max-width:560px){.honor-school-captain{flex-direction:column;align-items:stretch;gap:10px}}.house-dot{flex:none;width:12px;height:12px;border-radius:50%;background:#94a3b8;box-shadow:inset 0 0 0 2px #fff9}.house-tone-red,.house-tone-red.house-dot{background:#dc2626}.house-tone-blue,.house-tone-blue.house-dot{background:#2563eb}.house-tone-green,.house-tone-green.house-dot{background:#16a34a}.house-tone-yellow,.house-tone-yellow.house-dot{background:#d97706}.house-badge{display:inline-block;padding:2px 9px;border-radius:99px;font-size:11px;font-weight:700;background:#f1f5f9;color:#475569;white-space:nowrap}.house-badge.house-tone-red{background:#fee2e2;color:#b91c1c}.house-badge.house-tone-blue{background:#dbeafe;color:#1d4ed8}.house-badge.house-tone-green{background:#dcfce7;color:#15803d}.house-badge.house-tone-yellow{background:#fef3c7;color:#b45309}.captain-mark{margin-left:5px;color:#d97706;vertical-align:middle}.student-profile-house{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:6px}.student-dash-house{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}.honor-role-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:99px;font-size:10.5px;font-weight:700;background:#f1f5f9;color:#475569}.honor-role-school{background:#fef3c7;color:#b45309}.honor-role-house{background:#edeafb;color:#36238f}.child-card-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f1f5f9;padding-top:10px;font-size:12px;color:#64748b}.child-card-foot span{display:inline-flex;align-items:center;gap:6px;color:#36238f;font-weight:600}.parent-timetable-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.parent-timetable-day{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:12px}.parent-timetable-day-header{display:flex;align-items:center;gap:7px;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #f1f5f9;color:#36238f;font-size:13px}.parent-timetable-empty{color:#94a3b8;font-size:12px;text-align:center;padding:14px 0}.parent-timetable-slots{display:grid;gap:8px}.parent-timetable-slot{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px;display:grid;gap:3px}.parent-timetable-slot strong{font-size:13px}.parent-timetable-slot small{display:flex;align-items:center;gap:5px;color:#64748b;font-size:11px}.parent-timetable-time{font-size:11px;font-weight:700;color:#36238f}.parent-timetable-note{display:flex;align-items:center;gap:7px;color:#64748b;font-size:12px;margin:18px 2px 0}.status-chip{display:inline-block;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;background:#f1f5f9;color:#475569}.status-chip.paid,.status-chip.active{background:#dcfce7;color:#15803d}.status-chip.pending{background:#fef3c7;color:#b45309}.status-chip.new-msgs{background:#fecaca;color:#b91c1c}.homework-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}.homework-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;display:grid;gap:8px}.homework-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.homework-heading h3{margin:0;font-size:15px}.homework-card p{margin:0;color:#475569;font-size:13px;line-height:1.5}.homework-meta{display:flex;flex-wrap:wrap;gap:12px;color:#64748b;font-size:12px;padding-top:8px;border-top:1px solid #f1f5f9}.homework-meta span{display:inline-flex;align-items:center;gap:5px}.fee-summary-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.fee-stat{display:flex;flex-direction:column}.fee-stat strong{font-size:20px}.fee-stat small{color:#64748b;font-size:12px}.fee-stat.overdue strong{color:#b91c1c}.fee-status-chip{margin-left:auto;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:700}.fee-status-chip.paid{background:#dcfce7;color:#15803d}.fee-status-chip.pending{background:#fef3c7;color:#b45309}.grade-chip{padding:2px 8px;border-radius:6px;background:#eef2ff;color:#4338ca;font-weight:700;font-size:12px}.grade-chip.a,.grade-chip.a-plus{background:#dcfce7;color:#15803d}.grade-chip.d{background:#fee2e2;color:#b91c1c}.subject-pill{display:inline-flex;align-items:center;gap:6px}.parent-event-list{display:grid;gap:12px;margin-top:6px}.parent-event-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px;border-radius:10px;border:1px solid #eef0f5;background:#fff}.parent-event-row:hover{border-color:#ded9f5}.parent-event-date{display:flex;flex-direction:column;align-items:center;justify-content:center;width:52px;height:52px;flex:none;border-radius:10px;background:#eef2ff;color:#36238f}.parent-event-date small{font-size:10px;text-transform:uppercase;letter-spacing:.02em;line-height:1;margin-bottom:4px}.parent-event-date strong{font-size:18px;line-height:1;color:#36238f}.parent-event-main{min-width:0}.parent-event-main strong{display:block;color:#0f172a;font-size:15px;line-height:1.3}.parent-event-main small{color:#64748b;font-size:12px;line-height:1.4;margin-top:4px}.parent-event-meta{display:grid;gap:4px;justify-items:end;color:#64748b;font-size:12px}.parent-event-meta small{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}@media(max-width:768px){.parent-event-row{grid-template-columns:48px minmax(0,1fr);align-items:start}.parent-event-meta{grid-column:2;justify-items:start;margin-top:6px}}.link-row{width:100%}.clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.dashboard-page .notification-item{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;cursor:pointer}.dashboard-page .notification-item.unread{background:#eef2ff}.dashboard-page .notification-item .notification-item-main{min-width:0;flex:1}.dashboard-page .notification-item-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dashboard-page .notification-item p{margin:4px 0}.preference-list{display:grid;gap:10px}.preference-item{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#334155}.preference-item input{width:18px;height:18px;accent-color:#36238F}.inline-check{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#475569;white-space:nowrap}.inline-check input{accent-color:#36238F}.resource-toolbar{display:flex;align-items:center;gap:10px;flex:1;min-width:220px}.resource-search{position:relative;display:flex;align-items:center;flex:1;max-width:380px}.resource-search svg{position:absolute;left:10px;color:#94a3b8}.resource-search input{width:100%;border:1px solid #cbd5e1;border-radius:8px;min-height:38px;padding:0 12px 0 34px;background:#fff}.resource-search input:focus{outline:none;border-color:#36238f}.resource-count{color:#64748b;font-size:13px;white-space:nowrap}.user-cell{display:flex;align-items:center;gap:10px}.user-cell div{min-width:0}.user-cell strong,.user-cell small{display:block}.user-cell small{color:#64748b;font-size:12px}.initials-circle{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:999px;background:#36238f;color:#fff;font-size:12px;font-weight:700}.align-right{text-align:right}.row-actions{display:inline-flex;gap:6px}.pagination{display:flex;align-items:center;gap:12px;justify-content:flex-end;padding-top:14px}.dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;z-index:2000;padding:20px}.dialog-panel{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a;width:100%;max-width:520px;max-height:90vh;overflow-y:auto;padding:20px}.dialog-panel.editor-panel{max-width:640px}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid #e2e8f0}.dialog-header h3{margin:0;font-size:17px}.dialog-header p{margin:4px 0 0;color:#64748b;font-size:13px}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:16px;margin-top:16px;border-top:1px solid #e2e8f0}.user-editor-search{position:relative;display:flex;align-items:center;margin-bottom:12px}.user-editor-search svg{position:absolute;left:10px;color:#94a3b8}.user-editor-search input{width:100%;border:1px solid #cbd5e1;border-radius:8px;min-height:38px;padding:0 12px 0 34px}.editor-student-list{display:grid;gap:8px;max-height:46vh;overflow-y:auto}.editor-student-row{border:1px solid #e2e8f0;border-radius:10px;padding:10px;display:grid;gap:6px;background:#fff}.editor-student-row.linked{border-color:#c7d2fe;background:#f8faff}.student-link-toggle{display:flex;align-items:center;gap:10px;cursor:pointer}.student-link-toggle input{accent-color:#36238F;width:16px;height:16px}.student-link-meta{display:flex;flex-direction:column;line-height:1.3}.student-link-meta strong{font-size:14px}.student-link-meta small{color:#64748b;font-size:12px}.student-link-options{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-left:26px}.student-link-options select{border:1px solid #cbd5e1;border-radius:6px;min-height:32px;padding:4px 8px;background:#fff;font-size:13px}.editor-count{margin-right:auto;color:#64748b;font-size:13px}@media(max-width:640px){.children-grid{grid-template-columns:1fr}.child-card-actions{grid-template-columns:repeat(2,1fr)}.parent-timetable-grid{grid-template-columns:1fr}.event-meta{justify-items:start}}.settings-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;margin-top:16px}.settings-tabs{display:flex;flex-direction:column;gap:2px;position:sticky;top:80px;align-self:start}.settings-tab{display:flex;align-items:center;gap:8px;padding:10px 14px;border:none;background:none;border-radius:6px;cursor:pointer;font-size:13px;color:#555;text-align:left;transition:all .15s}.settings-tab:hover{background:#f1f5f9;color:#333}.settings-tab.active{background:#eff6ff;color:#2563eb;font-weight:600}.settings-content{min-width:0}.settings-section{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:24px}.settings-section h3{margin:0 0 16px;font-size:17px}.settings-section .section-desc{color:#666;margin:-8px 0 16px;font-size:13px}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-header h3{margin:0}.settings-form{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:24px}.settings-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-form .form-grid .full-width{grid-column:1 / -1}.settings-form .form-grid label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:500;color:#374151}.settings-form .form-grid input,.settings-form .form-grid select,.settings-form .form-grid textarea{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;background:#fff}.settings-form .form-grid input:focus,.settings-form .form-grid select:focus,.settings-form .form-grid textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb26}.class-fees-year{color:#475569;font-size:.875rem}.class-fees-table th:not(:first-child),.class-fees-table td:not(:first-child){text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}.class-fee-editor h3{margin:0 0 8px}.class-fee-editor>p{margin:0 0 16px;color:#475569;font-size:.875rem}.settings-form.class-fee-editor .form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}.class-fee-editor .form-grid input,.class-fee-editor .form-grid select{width:100%;min-width:0;box-sizing:border-box}.class-fee-editor .class-fees-confirmation{margin:12px 0 0;color:#166534}.class-fee-editor>.error-banner{margin:12px 0 0}.principal-attendance-chart{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 10px;margin:12px 0 16px;color:#475569;font-size:.75rem}.principal-attendance-scale{display:flex;flex-direction:column;justify-content:space-between;align-items:end;height:180px}.principal-attendance-chart>svg{width:100%;height:180px;display:block}.principal-attendance-gridline{stroke:#dbe3ef;vector-effect:non-scaling-stroke}.principal-attendance-series{transition:opacity .15s ease}.principal-attendance-series[data-dimmed=true]{opacity:.18}.principal-attendance-dates{display:flex;grid-column:2;justify-content:space-between;white-space:nowrap}.principal-attendance-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:8px}.principal-attendance-legend button{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:4px 8px;padding:8px 10px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#24334a;text-align:start;cursor:pointer;touch-action:manipulation}.principal-attendance-legend button[aria-pressed=true]{border-color:#4532a3;background:#f3f0ff}.principal-attendance-swatch{display:block;width:20px;height:8px}.principal-attendance-legend-values{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;grid-column:1 / -1;font-variant-numeric:tabular-nums}.principal-attendance-legend-values small{color:#475569;white-space:nowrap}.principal-attendance-reset{margin-top:8px}@media(max-width:720px){.principal-attendance-legend{grid-template-columns:repeat(2,minmax(0,1fr))}.principal-attendance-dates time:nth-child(2n){display:none}}.inline-form{margin-bottom:16px;border:1px dashed #d1d5db}.form-actions{display:flex;gap:8px;margin-top:14px}.btn-sm{padding:6px 12px;font-size:12px}.btn-secondary{padding:8px 16px;border:1px solid #d1d5db;background:#fff;border-radius:6px;cursor:pointer;font-size:13px;font-weight:500;color:#374151}.btn-secondary:hover{background:#f9fafb}.btn-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:none;background:none;border-radius:6px;cursor:pointer;color:#6b7280}.btn-icon:hover{background:#f3f4f6;color:#111}.btn-icon.btn-danger:hover{background:#fef2f2;color:#dc2626}.settings-table-viewport{border:1px solid #e5e7eb;border-radius:8px}.settings-table{min-width:520px}.settings-sections-stack{display:flex;flex-direction:column;gap:18px;margin-top:20px}.settings-sections-stack .settings-section .section-header{align-items:flex-start}.settings-sections-stack .section-header h3{margin:0}.settings-sections-stack .section-header .section-desc{display:block;color:#666;font-size:12.5px;margin-top:3px}.settings-badge{display:inline-block;padding:4px 10px;background:#eef2ff;color:#4f46e5;border-radius:12px;font-size:12px;font-weight:600;white-space:nowrap}.settings-section-subhead{margin:22px 0 10px}.settings-section-subhead h4{margin:0 0 3px;font-size:14px;color:#0f172a}.settings-section-subhead p{margin:0 0 10px;color:#666;font-size:12.5px}.switch-label{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:#334155;cursor:pointer}.switch-label input{accent-color:#4f46e5;width:16px;height:16px;margin:0}.settings-table .table-header th{padding:10px 16px;background:#f9fafb;font-size:12px;font-weight:600;color:#6b7280;letter-spacing:.5px}.settings-table .table-row td{padding:10px 16px;border-bottom:1px solid #f3f4f6;vertical-align:middle;font-size:13px}.settings-table .table-row:last-child td{border-bottom:none}.row-actions{display:flex;gap:4px}.badge-primary{display:inline-block;margin-left:8px;padding:2px 8px;background:#dbeafe;color:#2563eb;border-radius:10px;font-size:11px;font-weight:600}.empty-state{padding:32px;text-align:center;color:#9ca3af;font-size:13px}.working-days-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin:16px 0}.working-day-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 8px;border:2px solid #e5e7eb;border-radius:10px;cursor:pointer;transition:all .15s;text-align:center}.working-day-card input{display:none}.working-day-card.active{border-color:#2563eb;background:#eff6ff}.working-day-card .day-name{font-size:13px;font-weight:600;color:#374151}.working-day-card .day-status{font-size:11px;color:#6b7280}.working-day-card.active .day-status{color:#2563eb}.holiday-type-badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600}@media(max-width:768px){.settings-layout{grid-template-columns:minmax(0,1fr)}.settings-tabs{flex-direction:row;overflow-x:auto;position:static;gap:4px}.settings-tab{white-space:nowrap}.working-days-grid{grid-template-columns:repeat(4,1fr)}.settings-form .form-grid{grid-template-columns:1fr}}.cal-holiday{background:#fef3c7!important;border-color:#f59e0b!important}.cal-holiday .cal-day-number{color:#92400e}.cal-status-holiday{color:#b45309!important;font-weight:600}.dot-holiday{background:#f59e0b}.holiday-year-badge{display:inline-block;padding:4px 12px;border-radius:12px;background:#e0f2fe;color:#0369a1;font-size:12px;font-weight:600;white-space:nowrap}.holiday-type-badge.ht-public{background:#dbeafe;color:#1d4ed8}.holiday-type-badge.ht-national{background:#dcfce7;color:#15803d}.holiday-type-badge.ht-religious{background:#f3e8ff;color:#7e22ce}.holiday-type-badge.ht-school{background:#ffedd5;color:#c2410c}.holiday-type-badge.ht-other{background:#f1f5f9;color:#334155}.holiday-list{display:flex;flex-direction:column;gap:20px}.holiday-month-group{display:flex;flex-direction:column;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.holiday-month-label{padding:8px 14px;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b}.holiday-row{display:grid;grid-template-columns:64px 1fr auto auto;align-items:center;gap:16px;padding:12px 14px;border-bottom:1px solid #eef2f7}.holiday-row:last-child{border-bottom:none}.holiday-date-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;width:56px;height:56px;border-radius:10px;background:#fef3c7;color:#92400e;line-height:1.1}.holiday-date-badge strong{font-size:18px}.holiday-date-badge span{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.holiday-row-main{display:flex;flex-direction:column;gap:2px;min-width:0}.holiday-row-main strong{font-size:14px;font-weight:600}.holiday-row-desc{font-size:12px;color:#64748b}.holiday-countdown{font-size:11px;font-weight:600;color:#0369a1;background:#e0f2fe;padding:3px 8px;border-radius:10px;white-space:nowrap;text-align:right}@media(max-width:768px){.holiday-row{grid-template-columns:56px 1fr}.holiday-row .holiday-type-badge,.holiday-row .holiday-countdown{grid-column:2;justify-self:start}}.cal-holidays-strip{margin-top:14px;padding:12px 14px;border:1px dashed #fcd34d;border-radius:10px;background:#fffbeb;display:flex;flex-direction:column;gap:8px}.cal-holidays-title{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#92400e}.cal-holiday-chips{display:flex;flex-wrap:wrap;gap:6px}.cal-holiday-chip{font-size:11px;font-weight:600;background:#fef3c7;border:1px solid #fde68a;color:#92400e;padding:3px 9px;border-radius:12px;white-space:nowrap}.cal-holiday-chip.is-past{background:#f1f5f9;border-color:#e2e8f0;color:#94a3b8}@media(max-width:768px){.cal-holiday-chips{overflow-x:auto;flex-wrap:nowrap}}.language-picker{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600}.language-picker select{min-height:38px;padding:4px 9px;border:1px solid #dbe3ef;border-radius:7px;background:#fff;color:#0f172a}.auth-panel>.language-picker{align-self:flex-end}
