:root{
  --blue:#2864e8;--blue-dark:#122a88;--blue-2:#1f56d8;--green:#0b9f70;--text:#14213d;--muted:#71809b;--line:#e3e9f3;--bg:#f5f8fc;--white:#fff;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input,select{font:inherit}button{cursor:pointer}a{color:inherit}
.ico{display:inline-flex;width:20px;height:20px;flex:0 0 20px;align-items:center;justify-content:center}
.ico svg{display:block;width:100%!important;height:100%!important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app{min-height:100vh;display:flex;background:var(--bg)}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:314px;background:#fff;border-right:1px solid var(--line);padding:0 14px 16px;display:flex;flex-direction:column;z-index:30;overflow:auto}
.brand{height:86px;display:flex;align-items:center;padding:0 12px;border-bottom:1px solid var(--line);margin:0 -14px 14px;padding-left:28px}
.logo-white{content:url('https://assets.zyrosite.com/cdn-cgi/image/format=auto,w=768,h=175,fit=crop/cs0eDr0zWLIQPphQ/classnest-blue-logo-XMa34YT1Fwmjbs5n.png');width:190px;height:auto;max-height:46px;object-fit:contain;object-position:left center}
.brand-sub{display:none}
.main-nav{display:grid;gap:4px}
.nav{width:100%;min-height:49px;border:0;background:transparent;color:#334663;border-radius:11px;padding:0 16px;display:flex;align-items:center;gap:14px;text-align:left;text-decoration:none;font:600 15px Inter;transition:.16s}
.nav .ico{color:#53647f;width:21px;height:21px}.nav:hover{background:#f2f6fd;color:#1f58dc}.nav:hover .ico{color:#2864e8}.nav.active{background:#eaf2ff;color:#2360e8}.nav.active .ico{color:#2360e8}.parent-nav{margin-top:0}
.side-bottom{margin-top:auto;display:grid;gap:10px;padding-top:14px}.side-bottom>.btn{min-height:48px}
.btn{border:0;border-radius:11px;padding:11px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:700 14px Inter;transition:.16s}.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(40,100,232,.15)}
.btn.soft{background:#eaf8f3;color:#087f5b;border:1px solid #ccefe2}.outline-wide{background:#fff;color:#334663;border:1px solid #d4deec;width:100%}.wide{width:100%}
.side-rule{display:none}.utility{min-height:40px!important;padding:0 14px!important;font-weight:500}.utility .switch{margin-left:auto}.logout{color:#50607a}
.switch{width:38px;height:21px;border-radius:99px;background:#d9e1ec;position:relative;display:inline-block}.switch:after{content:"";position:absolute;width:17px;height:17px;top:2px;left:2px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:.2s}.switch.on{background:var(--blue)}.switch.on:after{left:19px}
.main{margin-left:314px;min-width:0;flex:1}.main header{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 26px 0 30px;position:sticky;top:0;z-index:20}
.head-left,.header-right{display:flex;align-items:center}.head-left{gap:12px}.menu-btn{display:none}.eyebrow{display:none}.main h1{font-size:23px;line-height:1;margin:0;font-weight:750;letter-spacing:-.03em;color:#152747}.header-right{gap:10px}.today-chip{display:flex;align-items:center;gap:8px;margin-right:2px;color:#52647f}.today-chip>.ico{width:18px;height:18px}.today-chip b,.today-chip small{display:block}.today-chip b{font-size:11px}.today-chip small{font-size:9px;color:#8996aa;margin-top:2px}.admin-chip{display:flex;align-items:center;gap:9px;padding:0 8px 0 4px;border-left:1px solid var(--line)}.admin-chip b,.admin-chip small{display:block}.admin-chip b{font-size:11px;color:#20375d}.admin-chip small{font-size:9px;color:#8795aa;margin-top:2px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e9f1ff;color:#2864e8;font-weight:800}.chev{color:#73829a;margin-left:2px}.header-right .btn{min-height:44px}.content{padding:24px 30px 38px;max-width:1600px;margin:0 auto}
.welcome{display:flex;align-items:center;justify-content:space-between;min-height:155px;background:linear-gradient(110deg,#edf4ff,#f7faff);border:1px solid #dce7f7;border-radius:16px;padding:25px 30px;margin-bottom:18px;overflow:hidden;position:relative}.welcome:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:50px;top:-105px;background:#e4efff}.welcome-copy{position:relative;z-index:2}.greeting{font-size:13px;font-weight:650;color:#234b88}.greeting span{font-size:15px}.welcome h2{font-size:25px;letter-spacing:-.035em;margin:6px 0 6px;color:#142f6b}.welcome p{font-size:13px;color:#667a9d;margin:0}.welcome-actions{display:flex;gap:8px;margin-top:15px}.white-btn{background:#fff;color:#1f5bd2;border:1px solid #d9e6fa}.glass-btn{background:#dceaff;color:#225bc9}.welcome-art{position:relative;z-index:2;width:310px;height:125px;display:flex;align-items:center;justify-content:center;gap:18px}.book-stack{position:relative;width:125px;height:95px}.book-stack span{position:absolute;left:8px;width:103px;height:15px;background:#fff;border-radius:4px;box-shadow:0 5px 12px #6d8fc833;transform:skewX(-12deg)}.book-stack span:nth-child(1){bottom:6px}.book-stack span:nth-child(2){bottom:24px;left:15px;width:96px}.book-stack span:nth-child(3){bottom:42px;left:23px;width:89px}.book-stack i{position:absolute;bottom:55px;left:45px;font-size:35px;font-style:normal}.slogan{font-size:13px;line-height:1.3;color:#2864e8;font-style:italic;transform:rotate(-5deg)}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat{background:#fff;border:1px solid #dde5f0;border-radius:15px;padding:17px 18px;min-height:138px;box-shadow:0 3px 14px rgba(35,61,100,.025)}.stat-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.stat-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center}.stat-icon .ico{width:22px;height:22px}.stat-label{display:block;font-size:12px;color:#667893;margin-bottom:4px}.stat strong{display:block;font-size:24px;line-height:1.15;letter-spacing:-.035em;color:#13233e}.stat small{display:block;font-size:10px;color:#8a98ac;margin-top:7px}.stat small em{font-style:normal;margin-left:6px;color:#a4afbf}.trend{font-size:10px;font-weight:750;color:#0b9c68;display:flex;align-items:center;gap:3px}.trend .ico{width:13px;height:13px}.stat-blue .stat-icon{background:#e9f1ff;color:#2864e8}.stat-green .stat-icon{background:#e4f8f1;color:#0a9b6b}.stat-purple .stat-icon{background:#f1ebff;color:#704de4}.stat-orange .stat-icon{background:#fff2df;color:#e58a16}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}.panel{background:#fff;border:1px solid #dde5f0;border-radius:15px;box-shadow:0 3px 14px rgba(35,61,100,.025);padding:18px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.section-title{display:flex;align-items:center;gap:10px}.section-title>.ico{width:22px;height:22px;color:#1f5edc}.section-title h3{margin:0;font-size:16px;color:#1b3156}.section-title p{margin:4px 0 0;color:#8a97aa;font-size:10px}.text-btn{border:0;background:transparent;color:#2864e8;border-radius:8px;padding:8px;font-size:11px;font-weight:750}.table-wrap{overflow:auto}table{width:100%;border-collapse:separate;border-spacing:0;min-width:700px}th{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#8190a7;text-align:left;padding:11px 10px;background:#f7f9fc;border-top:1px solid #e9eef5;border-bottom:1px solid #e9eef5}th:first-child{border-radius:8px 0 0 8px}th:last-child{border-radius:0 8px 8px 0}td{padding:13px 10px;border-bottom:1px solid #eef2f7;font-size:11px;color:#52637c}td b{color:#20385f}td small{display:block;color:#97a3b4;margin-top:3px}.pill{padding:5px 8px;border-radius:99px;background:#edf3ff;color:#285dc5;font-size:9px;font-weight:750}.actions{white-space:nowrap}.actions button,.icon-btn{border:1px solid #e0e7f0;background:#f8fafc;color:#425571;cursor:pointer;padding:7px 9px;border-radius:8px;font-size:9px}.actions button+button{margin-left:5px}.danger{color:#b12645!important;background:#fff1f4!important;border-color:#ffd9e1!important}.empty{text-align:center;color:#98a4b6;padding:48px 25px!important}
.quick-column{display:grid;gap:14px}.quick-panel{padding:17px}.quick-panel .section-title{margin-bottom:11px}.quick-item{width:100%;border:1px solid #e4eaf2;background:#fff;border-radius:11px;padding:9px;display:grid;grid-template-columns:40px minmax(0,1fr) 14px;align-items:center;text-align:left;gap:9px;margin-top:7px;cursor:pointer;color:#20395f}.quick-item:hover{border-color:#cbdcf8;background:#f9fbff}.quick-item>span:nth-child(2){min-width:0}.quick-item>span:nth-child(2) b,.quick-item>span:nth-child(2) small{display:block}.quick-item>span:nth-child(2) b{font-size:10px}.quick-item>span:nth-child(2) small{font-size:9px;color:#94a0b3;margin-top:3px}.quick-item> b{color:#8a9ab0;font-size:16px}.quick-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center}.quick-icon .ico{width:20px;height:20px}.quick-icon.blue{background:#e9f1ff;color:#2864e8}.quick-icon.green{background:#e3f8f0;color:#0a9d6c}.quick-icon.purple{background:#f0eaff;color:#704de4}.quick-icon.orange{background:#fff0e5;color:#ef7d28}.update-card{background:#eef5ff;border:1px solid #d9e7fb;border-radius:13px;padding:14px;display:grid;grid-template-columns:32px minmax(0,1fr) 10px;gap:9px;align-items:center;color:#254b8b}.bulb{font-size:20px}.update-card b{font-size:11px}.update-card p{font-size:9px;color:#788ca9;line-height:1.4;margin:3px 0 0}.update-card>span:last-child{font-size:18px}
.toolbar{margin-bottom:15px}.toolbar input{width:100%;padding:12px 14px;border:1px solid #dfe6f0;border-radius:10px;outline:none;font:13px Inter;background:#fff}.toolbar input:focus,.modal-body input:focus,.modal-body select:focus{border-color:#4c7ce1;box-shadow:0 0 0 3px #4c7ce11a}
.modal{background:#fff;width:min(850px,96vw);max-height:94vh;overflow:auto;border-radius:18px;box-shadow:0 30px 80px #0005}.overlay{position:fixed;inset:0;background:#10182b99;backdrop-filter:blur(7px);display:grid;place-items:center;padding:20px;z-index:100}.modal-head{padding:19px 22px;border-bottom:1px solid #edf1f6;display:flex;justify-content:space-between;align-items:center}.modal-head h2{margin:4px 0 0;font-size:19px}.close{border:0;background:#f1f4f8;width:34px;height:34px;border-radius:9px;font-size:22px}.modal-body{padding:22px}.form-section{margin-bottom:22px}.form-section h3{font-size:13px;margin:0 0 13px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.formgrid .full{grid-column:1/-1}.modal-body label{display:block;font-size:11px;font-weight:700;color:#5f6f89;margin-bottom:7px}.modal-body em{color:#b32642;font-style:normal}.modal-body input,.modal-body select{width:100%;padding:11px 12px;border:1px solid #dfe5ee;border-radius:9px;background:#fff;color:#18192b;font:13px Inter;outline:none}.fee-fixed{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:12px;background:#f5f8ff;border:1px solid #e1eaf8;padding:14px;border-radius:12px}.fee-fixed span{display:block;font-size:10px;color:#7d8ca4;margin-bottom:5px}.fee-fixed strong{font-size:15px;color:#1f59c7}.fee-fixed select{width:100%;border:1px solid #dcdbe9;border-radius:8px;padding:9px;background:#fff}.modal-foot{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:15px;border-top:1px solid #edf1f6}.helper{font-size:11px;color:#77798a;background:#f6f8fb;border-radius:9px;padding:10px;margin-top:13px}.hidden{display:none!important}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.detail-grid div{padding:11px;border-radius:10px;background:#f6f8fb}.detail-grid span{display:block;color:#858697;font-size:10px;margin-bottom:5px}.detail-grid b{font-size:12px;word-break:break-word}.lead-box{padding:42px 25px;text-align:center;border:1px dashed #d8e0ed;border-radius:15px}.lead-icon{font-size:34px;color:#245dcc}.lead-box h2{margin:12px 0 6px}.lead-box p,.lead-box li{font-size:12px;color:#77798b;line-height:1.7}.lead-box ol{display:inline-block;text-align:left}
.toast{position:fixed;right:20px;bottom:20px;background:#16213a;color:#fff;padding:12px 16px;border-radius:10px;z-index:200;font-size:12px;box-shadow:0 12px 35px #0004}.toast.bad{background:#a51f3a}
.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 0,#e9efff,#f5f7fb 48%)}.login-card{width:min(440px,92vw);background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 25px 70px #15152b16}.login-top{background:linear-gradient(135deg,#090077,#1810a0);padding:34px;text-align:center;color:#fff}.login-top img{width:220px;max-width:85%;height:auto}.login-top span{display:block;margin-top:12px;font-size:12px;color:#dcd9ff}.login-form{padding:27px;display:grid;gap:15px}.login-form label{display:block;font-size:12px;font-weight:700;margin-bottom:7px}.login-form input{width:100%;padding:12px;border:1px solid #dedfe7;border-radius:9px;font:13px Inter}.muted{color:#8b8c9d;font-size:11px;line-height:1.5;text-align:center}.error{color:#b32642;background:#fff0f2;padding:9px;border-radius:9px;font-size:11px}
.theme-dark{background:#0d1422;color:#eaf0ff}.theme-dark .app,.theme-dark .main{background:#0d1422}.theme-dark .sidebar,.theme-dark .main header,.theme-dark .stat,.theme-dark .panel,.theme-dark .modal{background:#131d2e;border-color:#26344b}.theme-dark .nav{color:#b9c8df}.theme-dark .nav:hover{background:#1b2940}.theme-dark .nav.active{background:#1d4fb8;color:#fff}.theme-dark .nav .ico{color:#9db0cd}.theme-dark .main h1,.theme-dark .stat strong,.theme-dark .section-title h3,.theme-dark .welcome h2{color:#f2f6ff}.theme-dark .stat-label,.theme-dark td,.theme-dark .section-title p,.theme-dark .stat small{color:#9fb0c8}.theme-dark .welcome{background:linear-gradient(110deg,#172846,#172239);border-color:#2a4062}.theme-dark .welcome p,.theme-dark .greeting{color:#a9bbd7}.theme-dark th{background:#18253a;color:#94a6c1;border-color:#29384f}.theme-dark td{border-color:#26344b}.theme-dark .quick-item{background:#17243a;border-color:#2a3b55;color:#dce8fb}.theme-dark .quick-item:hover{background:#1b2b45}.theme-dark .update-card{background:#172a47;border-color:#2d466a}.theme-dark .toolbar input,.theme-dark .modal-body input,.theme-dark .modal-body select,.theme-dark .fee-fixed select{background:#1a283e;color:#eee;border-color:#35445f}.theme-dark .fee-fixed,.theme-dark .helper,.theme-dark .detail-grid div{background:#1a283e;border-color:#35445f}.theme-dark .modal-head{border-color:#2b3850}.theme-dark .close,.theme-dark .actions button,.theme-dark .icon-btn{background:#223049;color:#dce6f8;border-color:#33445f}.theme-dark .text-btn{color:#9fc1ff}
@media(max-width:1180px){.dashboard-grid{grid-template-columns:1fr}.quick-column{grid-template-columns:1fr 1fr}.today-chip,.admin-chip{display:none}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.sidebar{width:76px;padding:0 9px 12px}.brand{height:74px;padding-left:13px;justify-content:center;margin-left:-9px;margin-right:-9px}.logo-white{width:48px;height:40px;object-fit:cover;object-position:left}.nav{justify-content:center;padding:0}.nav span,.brand-sub,.side-bottom .btn{display:none}.nav .ico{width:21px}.main{margin-left:76px}.main header{padding:0 16px;height:68px}.menu-btn{display:grid;place-items:center;width:35px;height:35px;border:0;background:#f1f5fc;color:#17366e;border-radius:9px;padding:8px}.main h1{font-size:18px}.header-right .btn{font-size:0;padding:10px;width:42px}.header-right .btn .ico{margin:0}.content{padding:16px}.welcome{padding:20px;min-height:0}.welcome-art{display:none}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:14px;min-height:135px}.dashboard-grid{gap:12px}.quick-column{grid-template-columns:1fr}.panel{padding:15px}.formgrid,.detail-grid,.fee-fixed{grid-template-columns:1fr}.modal-body{padding:17px}}
@media(max-width:520px){.sidebar{width:62px}.main{margin-left:62px}.logo-white{width:40px}.content{padding:12px}.welcome h2{font-size:20px}.welcome-actions{flex-direction:column}.stats{grid-template-columns:1fr}.header-right .btn.soft{display:none}.panel-head{align-items:flex-start}}

/* Classnest 2026 stability/mobile patch */
.mobile-open{box-shadow:18px 0 40px rgba(18,32,60,.18)}
@media(max-width:800px){
  .sidebar{transition:transform .22s ease;}
  .main{transition:margin-left .22s ease}
  .sidebar.mobile-open{width:280px;z-index:60}
  .sidebar.mobile-open .nav span,.sidebar.mobile-open .brand-sub,.sidebar.mobile-open .side-bottom .btn{display:flex}
  .sidebar.mobile-open .nav{justify-content:flex-start;padding:0 12px}
  .sidebar.mobile-open .brand{justify-content:flex-start;padding-left:16px}
  .sidebar.mobile-open .logo-white{width:150px;height:auto;object-fit:contain}
  .sidebar.mobile-open .side-bottom .btn{width:100%}
}
