:root{--r:#e11d48;--r2:#fb4a68;--b:#1d4ed8;--b2:#0b2a6b;--bg:#f4f8ff;--cd:#fff;--tx:#0f1d3a;--mu:#5a6b8c;--ln:#dbe5f7;--sh:0 4px 18px rgba(30,58,138,.09);box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}*{box-sizing:border-box;margin:0}
body{font:15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--tx)}
.i{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.app{display:grid;grid-template-columns:270px 1fr;min-height:100vh}
aside{background:linear-gradient(175deg,var(--b),var(--b2));color:#fff;padding:20px 14px;position:sticky;top:env(safe-area-inset-top,0px);height:100vh;overflow:auto}
.lg{display:flex;gap:12px;align-items:center;padding:4px 8px 20px;font-weight:700;line-height:1.2}
.lg i{width:44px;height:44px;border-radius:14px;background:#fff;color:var(--b);display:grid;place-items:center;transition:.4s}.lg:hover i{transform:rotate(-10deg) scale(1.1)}
.lg i .i{width:26px;height:26px}.lg small{display:block;font-weight:400;opacity:.8;font-size:12px}
aside a{display:flex;gap:12px;align-items:center;padding:10px 14px;margin:3px 0;border-radius:12px;color:#dbe6ff;text-decoration:none;font-size:14px;transition:.25s}
aside a:hover{background:rgba(255,255,255,.14);transform:translateX(6px);color:#fff}aside a:hover .i{transform:scale(1.2)}.i{transition:.25s}
aside a.on{background:#fff;color:var(--b);font-weight:600;box-shadow:0 6px 16px rgba(0,0,0,.18)}
main{padding:22px 28px;min-width:0}
.top{display:flex;align-items:center;gap:14px;margin-bottom:20px}.top h1{font-size:25px}.top p{color:var(--mu);font-size:13px}.top .dt{margin-left:auto;color:var(--mu);font-size:13px;text-align:right}
.bg{display:none;background:var(--b);color:#fff;border:0;border-radius:12px;padding:9px;cursor:pointer}
.bt{display:inline-flex;gap:8px;align-items:center;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;border:0;border-radius:12px;padding:10px 18px;font:600 14px inherit;cursor:pointer;text-decoration:none;box-shadow:0 4px 12px rgba(29,78,216,.32);transition:.25s}
.bt:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(29,78,216,.42)}.bt.blue{background:linear-gradient(135deg,var(--b),#3b82f6);box-shadow:0 4px 12px rgba(29,78,216,.28)}
.bt.gh{background:none;color:var(--mu);box-shadow:none;border:1px solid var(--ln)}.bt.sm{padding:5px 12px;font-size:12px;border-radius:9px;margin:2px}
.ib{background:none;border:0;color:var(--mu);padding:6px;border-radius:9px;cursor:pointer}.ib:hover{background:rgba(225,29,72,.12);color:var(--r);transform:scale(1.15)}
.hero{background:linear-gradient(120deg,var(--b),var(--b2) 60%,#38bdf8);color:#fff;border-radius:22px;padding:26px 28px;margin-bottom:18px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;box-shadow:var(--sh)}
.hero h2{font-size:23px}.hero p{opacity:.85}.hero .bt{background:#fff;color:var(--b);box-shadow:none;margin:3px}
.g4{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:16px;margin-bottom:18px}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:16px;margin-bottom:18px}
.card{background:var(--cd);border:1px solid var(--ln);border-radius:20px;padding:18px;box-shadow:var(--sh);transition:.3s;margin-bottom:0}
.g4 .card,.two .card{margin:0}main>#v>.card{margin-bottom:18px}
.card:hover{transform:translateY(-5px);box-shadow:0 14px 30px rgba(29,78,216,.16)}
.st{display:flex;gap:14px;align-items:center}.st .l{color:var(--mu);font-size:13px}.st .n{font-size:24px;font-weight:700;line-height:1.2}.st .s{font-size:12px;color:var(--mu)}
.ic2{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;flex:none;transition:.3s}.st:hover .ic2{transform:rotate(-8deg) scale(1.12)}
.c-b{background:rgba(29,78,216,.12);color:var(--b)}.c-r{background:rgba(225,29,72,.12);color:var(--r)}.c-g{background:rgba(22,163,74,.14);color:#15803d}
h3{font-size:16px;margin-bottom:12px}.mu{color:var(--mu);font-size:13px;margin:8px 0}
.tb{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}.tb h3{margin:0}.tb .bt{margin-left:auto}.tb .ch+.bt{margin-left:auto}
.se{display:flex;align-items:center;gap:8px;border:1px solid var(--ln);border-radius:12px;padding:6px 12px;color:var(--mu);background:var(--bg);flex:1;min-width:160px;max-width:300px}
.se:focus-within{border-color:var(--b);box-shadow:0 0 0 3px rgba(29,78,216,.15)}.se input{border:0;outline:0;background:none;color:var(--tx);font:inherit;width:100%}
.ch{display:flex;gap:6px}.cp{border:1px solid var(--ln);background:none;color:var(--mu);border-radius:20px;padding:5px 14px;cursor:pointer;font:inherit;font-size:13px;transition:.2s}.cp:hover{border-color:var(--b);color:var(--b)}.cp.on{background:var(--b);color:#fff;border-color:var(--b)}
.tw{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px;min-width:560px}
th{text-align:left;color:var(--mu);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.04em;padding:10px 12px;border-bottom:2px solid var(--ln)}
td{padding:11px 12px;border-bottom:1px solid var(--ln)}tbody tr{transition:.2s}tbody tr:hover{background:rgba(29,78,216,.07);transform:scale(1.005)}
td.ac{white-space:nowrap;text-align:right}.em{text-align:center;color:var(--mu);padding:26px}
.tg{padding:3px 11px;border-radius:20px;font-size:12px;font-weight:600;white-space:nowrap}.g{background:rgba(22,163,74,.15);color:#15803d}.r{background:rgba(225,29,72,.14);color:var(--r)}.b{background:rgba(29,78,216,.13);color:var(--b)}.a{background:rgba(217,119,6,.17);color:#b45309}
.mo{position:fixed;inset:0;background:rgba(10,20,50,.55);display:grid;place-items:center;z-index:50;padding:16px;backdrop-filter:blur(3px)}.mo[hidden]{display:none}
.mb{background:var(--cd);border-radius:22px;padding:24px;width:100%;max-width:460px;max-height:90vh;overflow:auto;animation:pop .25s}@keyframes pop{from{transform:scale(.92);opacity:0}}
label{display:block;font-size:13px;color:var(--mu);margin-bottom:12px}input:not([type=checkbox]),select,textarea{display:block;width:100%;margin-top:4px;padding:10px 12px;border:1px solid var(--ln);border-radius:12px;background:var(--bg);color:var(--tx);font:inherit;outline:0}
input:focus,select:focus,textarea:focus{border-color:var(--b);box-shadow:0 0 0 3px rgba(29,78,216,.15)}.ra{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
.sw{display:flex;gap:12px;align-items:center;cursor:pointer;margin-bottom:12px;color:var(--tx);font-size:14px}.sw input{display:none}.sw span{width:46px;height:26px;background:#b9c3d9;border-radius:20px;position:relative;transition:.3s;flex:none}
.sw span:after{content:"";position:absolute;width:20px;height:20px;background:#fff;border-radius:50%;top:3px;left:3px;transition:.3s}.sw input:checked+span{background:var(--b)}.sw input:checked+span:after{left:23px}
.ap{border:1px solid var(--ln);background:none;color:var(--mu);border-radius:10px;padding:5px 12px;margin:0 2px;cursor:pointer;font:600 13px inherit;transition:.2s}.ap:hover{transform:translateY(-2px);border-color:var(--b);color:var(--b)}
.ap.on{color:#fff;border-color:transparent}.ap.P{background:#16a34a}.ap.A{background:var(--r)}.ap.L{background:#d97706}.ap.T{background:var(--b)}
.dn{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.dn ul{list-style:none;padding:0}.dn li{margin:6px 0;font-size:14px}.dn i{display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:8px}
svg text{fill:var(--mu);font-size:11px}svg .v{fill:var(--tx);font-weight:600}.bar{transition:.25s;cursor:pointer}.bar:hover{opacity:.75}
.pb{height:10px;background:var(--ln);border-radius:8px;overflow:hidden;margin:4px 0 12px}.pb div{height:100%;border-radius:8px;background:linear-gradient(90deg,var(--b),#38bdf8);transition:width .6s}
.cb{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--ln);font-size:14px}.cb:last-child{border:0}
#to{position:fixed;left:50%;bottom:24px;transform:translate(-50%,90px);background:var(--b2);color:#fff;padding:11px 22px;border-radius:30px;z-index:60;transition:.35s;box-shadow:0 8px 24px rgba(0,0,0,.25)}#to.on{transform:translate(-50%,0)}
@keyframes fade{from{opacity:0;transform:translateY(16px)}}@keyframes fo{from{opacity:0}}@keyframes grow{from{transform:scaleY(0)}}@keyframes dd{from{stroke-dasharray:0 100}}@keyframes lnd{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes shift{to{background-position:100% 0}}
.fx .card,.fx .hero{animation:fade .6s both}.fx .g4>:nth-child(2){animation-delay:.07s}.fx .g4>:nth-child(3){animation-delay:.14s}.fx .g4>:nth-child(4){animation-delay:.21s}.fx .g4>:nth-child(5){animation-delay:.28s}.fx .g4>:nth-child(6){animation-delay:.35s}.fx .g4>:nth-child(7){animation-delay:.42s}.fx .g4>:nth-child(8){animation-delay:.49s}.fx .two>:nth-child(2){animation-delay:.15s}.fx .two>:nth-child(3){animation-delay:.3s}.fx .two>:nth-child(4){animation-delay:.45s}
.hero{background-size:220% 100%;animation:shift 9s ease-in-out infinite alternate}
.bar rect{transform-box:fill-box;transform-origin:bottom;transition:.25s}.fx .bar rect{animation:grow .9s cubic-bezier(.2,.8,.2,1) both}.bar:hover rect{filter:drop-shadow(0 6px 10px rgba(29,78,216,.45)) brightness(1.12);transform:scaleY(1.05)}.bar:hover{opacity:1}
.dn circle.bar{transition:stroke-width .25s}.fx .dn circle.bar{animation:dd 1.2s ease both}.dn circle.bar:hover{stroke-width:7}
.ln2{stroke-dasharray:1}.fx .ln2{animation:lnd 1.6s ease both}.fx .ar{animation:fo 1.8s both}.dot circle{transition:.2s;transform-box:fill-box;transform-origin:center;cursor:pointer}.dot:hover circle{transform:scale(1.6);stroke:var(--r)}.dot .dv{opacity:0;transition:.2s}.dot:hover .dv{opacity:1}
.slot{text-align:center;border:1px solid var(--ln);transition:.2s;cursor:pointer;min-width:92px;padding:8px 6px}.slot b{display:block;font-size:13px}.slot small{color:var(--mu);font-size:11px}.slot.on{background:rgba(29,78,216,.08)}.slot:hover{background:var(--b);transform:scale(1.07);box-shadow:0 8px 18px rgba(29,78,216,.3);position:relative;z-index:1}.slot:hover b,.slot:hover small,.slot:hover span{color:#fff}.slot span{color:var(--mu);font-size:18px}.tt th{text-align:center}.brk td{background:rgba(225,29,72,.08);text-align:center;color:var(--r);font-size:12px;font-weight:600;letter-spacing:.2em}
.i.f{fill:currentColor;stroke:none}.bt.wa{background:linear-gradient(135deg,#25d366,#128c7e);box-shadow:0 4px 12px rgba(37,211,102,.35)}.wab{display:inline-flex;gap:6px;align-items:center;background:#25d366;color:#fff;text-decoration:none;font-weight:600;font-size:12px;padding:5px 12px;border-radius:20px;transition:.2s}.wab:hover{transform:translateY(-2px) scale(1.06);box-shadow:0 6px 14px rgba(37,211,102,.45)}.wab .i{width:15px;height:15px}
#lgn{position:fixed;inset:0;z-index:70;overflow:auto;background:linear-gradient(120deg,var(--b),var(--b2) 60%,#38bdf8);display:grid;place-items:center;padding:20px}#lgn[hidden]{display:none}
.lw{width:100%;max-width:900px;color:#fff;text-align:center}.lw h1{font-size:30px;margin:10px 0 4px}.lw>p{opacity:.85;margin-bottom:24px}
.pg4{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.pc{background:var(--cd);color:var(--tx);border-radius:20px;padding:24px 16px;text-decoration:none;display:block;transition:.3s;box-shadow:var(--sh)}.pc:hover{transform:translateY(-6px)}.pc .ic2{margin:0 auto 12px}.pc b{display:block;font-size:16px}.pc span{color:var(--mu);font-size:13px}
.lf{background:var(--cd);color:var(--tx);border-radius:22px;padding:28px;width:100%;max-width:400px;margin:auto}.lf .lg{padding-bottom:14px}.lf .lg small{color:var(--mu)}.lf .er{color:var(--r);font-size:13px;min-height:20px;margin-bottom:6px}.lf a{color:var(--b)}
.lo{display:flex;gap:8px;align-items:center;padding:14px 8px 0;margin-top:14px;border-top:1px solid rgba(255,255,255,.25);font-size:13px}.lo small{display:block;opacity:.75}.lo .bt{margin-left:auto;background:#fff;color:var(--b);box-shadow:none}
#pl{position:relative;z-index:40;min-height:100vh;min-height:100dvh;background:var(--bg);color:var(--tx)}#pl[hidden]{display:none}
.pn{display:flex;align-items:center;gap:14px;padding:14px 5vw;position:sticky;top:0;background:var(--cd);box-shadow:var(--sh);z-index:2;flex-wrap:wrap}.lgo{display:flex;align-items:center}.lgo img{height:40px;width:auto;display:block}.pn nav{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pn a.l{color:var(--tx);text-decoration:none;font-weight:600;font-size:14px;padding:6px 8px}
.bt.o{background:transparent;color:inherit;border:1.5px solid currentColor;box-shadow:none}.pn .bt.o{color:var(--tx)}
.ph{--himg:url(bg-hero.jpg);position:relative;min-height:calc(100vh - 66px);min-height:calc(100svh - 66px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 6vw 70px;text-align:center;color:#fff;background:linear-gradient(90deg,rgba(255,255,255,.84) 0%,rgba(236,243,255,.62) 28%,rgba(255,255,255,0) 54%),var(--himg)}
.ph h1{font-size:clamp(34px,6vw,64px);line-height:1.1;margin:0 auto 16px;max-width:860px;text-shadow:0 3px 22px rgba(0,0,0,.55)}.ph p{max-width:640px;margin:0 auto 30px;font-size:clamp(15px,2vw,18px);opacity:.95;text-shadow:0 2px 12px rgba(0,0,0,.5)}.phb{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center}.phb .bt{margin:0;padding:13px 26px;font-size:15px}.phb .bt.o{border-color:rgba(255,255,255,.85);color:#fff;backdrop-filter:blur(4px);background:rgba(255,255,255,.08)}
.ph,.ph h1,.ph p,.phb .bt,.pn{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.ph{align-items:flex-start;text-align:left;padding:60px 7vw 70px}
.ph h1{font-weight:700;max-width:600px;margin:0 0 16px}
.ph p{margin:0 0 30px;max-width:500px}
.phb{justify-content:flex-start}
.phb .bt{font-weight:600}
.ph{isolation:isolate;overflow:hidden}
.ph::before{content:"";position:absolute;inset:0;background:inherit;z-index:-2;animation:kb 18s ease-in-out infinite alternate}
.ph::after{content:"";position:absolute;inset:-10%;z-index:-1;pointer-events:none;mix-blend-mode:screen;background:radial-gradient(circle at 18% 30%,rgba(125,211,252,.35),transparent 24%),radial-gradient(circle at 60% 78%,rgba(59,130,246,.38),transparent 26%),radial-gradient(circle at 82% 18%,rgba(147,197,253,.3),transparent 22%);animation:fl 11s ease-in-out infinite alternate}
.ph h1{animation:up .9s .1s both}.ph p{animation:up .9s .35s both}.phb{animation:up .9s .6s both}
.phb .bt{position:relative;overflow:hidden}
.phb .bt::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);animation:sh 3.6s ease-in-out infinite}
.phb .bt:first-child{animation:pu 2.2s ease-in-out infinite}
@keyframes kb{from{transform:scale(1)}to{transform:scale(1.13) translateX(-1.5%)}}
@keyframes fl{from{transform:translate3d(-3%,3%,0) scale(1)}to{transform:translate3d(4%,-4%,0) scale(1.12)}}
@keyframes up{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
@keyframes sh{0%,55%{left:-60%}100%{left:130%}}
@keyframes pu{0%,100%{box-shadow:0 4px 12px rgba(29,78,216,.3)}50%{box-shadow:0 0 0 7px rgba(125,211,252,.25),0 8px 22px rgba(29,78,216,.5)}}
@media(prefers-reduced-motion:reduce){.ph::before,.ph::after,.ph h1,.ph p,.phb,.phb .bt,.phb .bt::after{animation:none!important}}
.ph h1{text-shadow:0 2px 18px rgba(0,0,0,.45)}.ph p{text-shadow:0 1px 12px rgba(0,0,0,.45)}
.ps{padding:50px 5vw;max-width:1100px;margin:auto}.ps h2{text-align:center;margin-bottom:24px}.pf{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.pw{padding:24px 5vw;max-width:1200px;margin:auto}
@media(max-width:820px){.app{grid-template-columns:1fr}aside{position:fixed;left:-290px;width:272px;z-index:40;top:0;transition:.3s}aside.open{left:0}.bg{display:block}main{padding:14px}.top .dt{display:none}}
#pl,#pl h2,#pl h3{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.pn{background:rgba(255,255,255,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--ln)}.pn a.l:hover{color:var(--b)}.pn .bt.o:hover{background:var(--b);color:#fff;border-color:var(--b)}
.bdg{display:inline-block;padding:6px 16px;margin-bottom:18px;border-radius:30px;font-size:13px;font-weight:600;letter-spacing:.04em;color:#bae6fd;background:rgba(125,211,252,.14);border:1px solid rgba(125,211,252,.45);backdrop-filter:blur(4px);animation:up .8s both}
.hl{background:linear-gradient(90deg,#e0f2fe,#7dd3fc);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}
.stt{display:flex;flex-wrap:wrap;gap:14px;margin-top:38px;animation:up .9s .8s both}.stt div{padding:12px 20px;border-radius:16px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(8px)}.stt b{display:block;font-size:22px;color:#bae6fd}.stt span{font-size:12px;opacity:.9}
.ps h2{font-size:clamp(24px,3.6vw,34px)}.ps h2::after{content:"";display:block;width:60px;height:4px;border-radius:4px;margin:10px auto 0;background:linear-gradient(90deg,#7dd3fc,#1d4ed8)}
.pf .card{position:relative;overflow:hidden;border:1px solid var(--ln);border-top:4px solid transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#7dd3fc,#1d4ed8) border-box}.pf .card:hover{box-shadow:0 18px 38px rgba(29,78,216,.2)}
.pf .ic2{background:linear-gradient(135deg,#60a5fa,#1d4ed8);color:#fff;box-shadow:0 8px 18px rgba(29,78,216,.3);margin-bottom:12px}.pf .card:hover .ic2{transform:rotate(-8deg) scale(1.1)}
.sn{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:20px;margin-bottom:10px;background:linear-gradient(135deg,#60a5fa,#1d4ed8);box-shadow:0 8px 18px rgba(29,78,216,.3)}.ps .sn{text-align:center}
.cta{text-align:center;color:#fff;padding:46px 24px;border-radius:26px;background:radial-gradient(circle at 15% 20%,rgba(125,211,252,.35),transparent 40%),linear-gradient(120deg,#0b2a6b,#1d4ed8 70%,#38bdf8);box-shadow:0 18px 44px rgba(29,78,216,.3)}.cta h2{margin-bottom:8px}.cta h2::after{display:none}.cta p{opacity:.9;margin-bottom:22px}.cta .bt{background:#fff;color:var(--b);padding:13px 28px}
.ft{text-align:center;padding:40px 5vw;margin-top:30px;background:#0a1f4d;color:#c7d7f5;font-size:13px}.ft img{height:44px;margin-bottom:10px}.ft p{margin:6px 0}.ft a{color:#bae6fd;text-decoration:none;margin:0 10px}.ft a:hover{text-decoration:underline}
.lfl{display:block;height:46px;margin:0 auto 16px}.lf .bt,.card .bt{font-family:inherit}
.pn.ov{position:absolute;left:0;right:0;top:0;background:transparent;box-shadow:none;border:0;backdrop-filter:none;z-index:5}.pn.ov .bt.o{color:#fff;border-color:rgba(255,255,255,.6)}.pn.ov a.l{color:#fff}
.ph{min-height:100vh;min-height:100svh;padding-top:120px}
.hlogo{display:block;height:clamp(60px,10vw,104px);width:auto;margin:0 0 26px;filter:drop-shadow(0 6px 28px rgba(125,211,252,.4));animation:up .8s both}

.pn.ov .lgo img{height:34px;filter:drop-shadow(0 2px 10px rgba(0,0,0,.5))}.pn.ov{padding-top:16px;padding-bottom:16px}

#pl{background:linear-gradient(180deg,#fff 0%,#eaf2ff 40%,#f8fbff 70%,#e3eeff 100%)}.pf .card{background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#7dd3fc,#1d4ed8) border-box}
.ph{background-size:cover;background-position:right center;background-repeat:no-repeat}.ph::after{display:none}
.ph{color:var(--tx)}.ph h1{color:#0b2a6b;text-shadow:none}.ph p{color:#3d4f75;text-shadow:none;opacity:1}
.hl{background:linear-gradient(90deg,#1d4ed8,#38bdf8);-webkit-background-clip:text;background-clip:text;color:transparent}
.bdg{color:#1d4ed8;background:rgba(29,78,216,.1);border:1px solid rgba(29,78,216,.3)}
.phb .bt:first-child{background:linear-gradient(135deg,#3b82f6,#1d4ed8)!important;color:#fff!important}
.phb .bt.o{color:#1d4ed8;border-color:#1d4ed8;background:rgba(255,255,255,.7)}.phb .bt.o:hover{background:#1d4ed8;color:#fff}
.stt div{background:rgba(255,255,255,.85);border:1px solid #d3e1fa;box-shadow:0 8px 22px rgba(29,78,216,.12)}.stt b{color:#1d4ed8}.stt span{color:#3d4f75}
.pn.ov a.l{color:#0b2a6b}.pn.ov .bt.o{color:#1d4ed8;border-color:#1d4ed8}.pn.ov .lgo img{filter:none}

.mkw{max-width:1000px;margin:0 auto;display:grid;grid-template-columns:1fr 330px;gap:40px;align-items:center;text-align:left}
.mkc h3{font-size:24px;margin:0 0 8px;color:#0b2a6b}.mkc>p{margin:0 0 18px}.mkls{display:grid;gap:8px}
.mkl{display:flex;align-items:center;gap:14px;width:100%;padding:11px 14px;border:1px solid var(--ln);border-radius:14px;background:#fff;cursor:pointer;text-align:left;font-family:inherit;transition:.2s}.mkl:hover{border-color:#93b4f5;transform:translateX(4px)}.mkl.on{border-color:#1d4ed8;background:linear-gradient(90deg,#eaf2ff,#fff);box-shadow:0 8px 20px rgba(29,78,216,.18)}
.mkl .ic2{flex:none;width:40px;height:40px;margin:0;border-radius:12px}.mkl b{display:block;font-size:14px;color:#0b2a6b}.mkl small{display:block;font-size:12px;color:var(--mu);margin-top:2px}
.mkp{position:relative;width:310px;height:640px;margin:0 auto;padding:11px;border-radius:56px;background:linear-gradient(145deg,#5a6377,#1a1f2e 40%,#3a4256);box-shadow:0 40px 80px rgba(29,78,216,.35),inset 0 0 0 2px #8a93a6}
.mkp>i{position:absolute;width:4px;background:#59627a;border-radius:3px}.mb1{left:-4px;top:110px;height:30px}.mb2{left:-4px;top:160px;height:54px}.mb3{right:-4px;top:170px;height:80px}
.mks{position:relative;height:100%;border-radius:46px;overflow:hidden;background:#f4f8ff;display:flex;flex-direction:column;color:#0f1d3a;font-family:Inter,system-ui,sans-serif}
.mki{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:96px;height:28px;background:#000;border-radius:20px;z-index:5}
.mkt{display:flex;justify-content:space-between;align-items:center;padding:14px 28px 6px;font-size:12px;font-weight:600;flex:none}.mkt span{font-size:8px;letter-spacing:1px}
.mkv{display:none;flex:1;flex-direction:column;padding:8px 16px 26px;overflow:hidden}.mkv.on{display:flex;animation:apf .35s both}@keyframes apf{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
.mkhd{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.mkhd img{height:24px}.mkav{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;font-size:13px;font-weight:600}
.mkgr{margin:16px 0 12px}.mkgr small{display:block;color:#5a6b8c;font-size:12px}.mkgr b{font-size:20px;color:#0b2a6b}
.mkst{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}.mkst div{padding:10px 8px;border-radius:14px;color:#fff;text-align:center;background:linear-gradient(135deg,#3b82f6,#1d4ed8);box-shadow:0 8px 16px rgba(29,78,216,.28)}.mkst b{display:block;font-size:16px}.mkst small{font-size:10px;opacity:.9}
.mkgd{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mkgd button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border:0;border-radius:16px;background:#fff;box-shadow:0 4px 12px rgba(29,78,216,.1);cursor:pointer;font-family:inherit;transition:.2s}.mkgd button:hover{transform:translateY(-3px);box-shadow:0 10px 20px rgba(29,78,216,.22)}.mkgd .ic2{width:42px;height:42px;margin:0;border-radius:13px}.mkgd small{font-size:11px;font-weight:500;color:#0b2a6b}
.mkbar{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.mkbar b{font-size:15px;color:#0b2a6b}.mkbar button{width:32px;height:32px;border:0;border-radius:50%;background:#fff;box-shadow:0 3px 10px rgba(29,78,216,.18);font-size:22px;line-height:1;color:#1d4ed8;cursor:pointer}.mkbar span{width:32px}
.mkhero{margin:16px 0 12px;padding:18px 16px;border-radius:20px;color:#fff;background:linear-gradient(135deg,#1d4ed8,#38bdf8);box-shadow:0 12px 24px rgba(29,78,216,.3)}.mkhero .ic2{width:42px;height:42px;margin:0 0 10px;background:rgba(255,255,255,.22);box-shadow:none;border-radius:13px;color:#fff}.mkhero h4{margin:0 0 4px;font-size:16px}.mkhero p{margin:0;font-size:12px;opacity:.92;line-height:1.45}
.mkrows{display:grid;gap:9px}.mkrows .amr{padding:10px 12px;border-radius:14px;background:#fff;border:1px solid #dbe5f7;display:grid;grid-template-columns:1fr auto;gap:5px 8px}.mkrows .amr span{font-size:12px;color:#5a6b8c}.mkrows .amr b{font-size:13px;color:#1d4ed8}.amb{grid-column:1/3;height:7px;border-radius:7px;background:#e3eeff;overflow:hidden}.amb i{display:block;height:100%;border-radius:7px;background:linear-gradient(90deg,#7dd3fc,#1d4ed8)}
.mksm{margin-top:auto;text-align:center;color:#8a9ab8;font-size:10px}.mkhi{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:110px;height:5px;border-radius:5px;background:#0f1d3a;opacity:.85}
@media(max-width:820px){.mkw{grid-template-columns:1fr;gap:26px}.mkp{order:-1}.mkc{text-align:center}.mkl{text-align:left}}
@media(max-width:700px){
.pn.ov{padding:12px 18px;flex-wrap:nowrap}.pn.ov .lgo img{height:30px}.pn.ov nav a.l,.pn.ov nav a[href="#owner-login"],.pn.ov nav button.bt{display:none}.pn.ov nav{margin-left:auto}.pn.ov nav .bt.o{padding:8px 16px;font-size:13px;background:#fff;box-shadow:0 4px 12px rgba(29,78,216,.18)}
.ph{min-height:0;padding:330px 22px 36px;align-items:stretch;text-align:left;background:linear-gradient(180deg,rgba(244,248,255,0) 210px,#f4f8ff 335px),var(--himg);background-color:#f4f8ff;background-size:100% 100%,auto 345px;background-position:0 0,68% 0;background-repeat:no-repeat}
.ph::before{display:none}.ph::after{display:none}
.bdg{align-self:flex-start;font-size:11.5px;padding:5px 13px;margin-bottom:12px}
.ph h1{font-size:33px;line-height:1.15;margin:0 0 12px;max-width:none}.ph p{font-size:14.5px;line-height:1.6;margin:0 0 22px;max-width:none}
.phb{flex-direction:column;align-items:stretch;gap:10px}.phb .bt{width:100%;justify-content:center;text-align:center;padding:14px 18px;font-size:15px}
.stt{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:24px}.stt div{padding:10px 6px;text-align:center;border-radius:14px}.stt b{font-size:18px}.stt span{font-size:10.5px;line-height:1.3;display:block}
.ps{padding-left:18px;padding-right:18px}.ps h2{font-size:25px}
.cta{padding:34px 20px;border-radius:22px}.cta h2{font-size:22px}.cta .bt{width:100%;justify-content:center}
.ft a{display:inline-block;margin:6px 8px}
}
@media(max-width:420px){.mkp{transform:scale(.94);transform-origin:top center;margin-bottom:-36px}}
.sn::after{display:none!important}.mkl .ic2{background:linear-gradient(135deg,#60a5fa,#1d4ed8);color:#fff;box-shadow:0 6px 14px rgba(29,78,216,.28)}
@media(max-width:700px){.ps{padding-top:30px;padding-bottom:30px}.ps .sn{margin-left:0}#lead .bt{width:100%;justify-content:center}.pf .card{border-radius:20px}}
.pn.ov .bt.o{background:rgba(255,255,255,.92);box-shadow:0 4px 12px rgba(29,78,216,.15)}
.lgp{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:70px 20px 40px;text-align:center;position:relative;font-family:Inter,system-ui,sans-serif;background:radial-gradient(circle at 15% 10%,rgba(125,211,252,.55),transparent 40%),radial-gradient(circle at 90% 90%,rgba(59,130,246,.35),transparent 45%),linear-gradient(180deg,#fff,#e6efff)}
.lgb{position:absolute;top:22px;left:22px;padding:8px 16px;border-radius:30px;background:#fff;color:#1d4ed8;font-weight:600;font-size:13px;text-decoration:none;box-shadow:0 4px 14px rgba(29,78,216,.18)}.lgb:hover{background:#1d4ed8;color:#fff}
.lgl{height:46px;margin-bottom:18px}.lgp h1{font-size:clamp(28px,5vw,40px);color:#0b2a6b;margin:0 0 6px}.lgs{color:#5a6b8c;margin:0 0 34px;font-size:16px}
.lgc{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;width:100%;max-width:420px;margin:0 auto;justify-items:stretch}
.lgk{display:flex;flex-direction:column;align-items:center;gap:8px;padding:34px 26px 26px;border-radius:26px;background:#fff;border:1px solid #d6e3fa;text-decoration:none;color:#0f1d3a;box-shadow:0 18px 44px rgba(29,78,216,.16);transition:.25s;position:relative;overflow:hidden}
.lgk::before{content:"";position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,#7dd3fc,#1d4ed8)}.lgk:hover{transform:translateY(-8px);box-shadow:0 28px 60px rgba(29,78,216,.3);border-color:#93b4f5}
.lgi{width:76px;height:76px;border-radius:24px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#60a5fa,#1d4ed8);box-shadow:0 12px 26px rgba(29,78,216,.38);margin-bottom:8px;transition:.25s}.lgi svg{width:34px;height:34px}.lgk:hover .lgi{transform:rotate(-6deg) scale(1.08)}
.lgk h3{font-size:21px;margin:0;color:#0b2a6b}.lgk p{margin:0;color:#5a6b8c;font-size:13.5px;line-height:1.6}
.lgg{margin-top:12px;padding:11px 22px;border-radius:14px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;font-weight:600;font-size:14px;box-shadow:0 8px 18px rgba(29,78,216,.32)}
.lgk2{background:linear-gradient(160deg,#0b2a6b,#1d4ed8);border-color:#1d4ed8;color:#fff}.lgk2 h3{color:#fff}.lgk2 p{color:#c7d9ff}.lgk2::before{background:linear-gradient(90deg,#bae6fd,#fff)}.lgk2 .lgi{background:rgba(255,255,255,.2);box-shadow:none;border:1px solid rgba(255,255,255,.4)}.lgk2 .lgg{background:#fff;color:#1d4ed8;box-shadow:0 8px 18px rgba(0,0,0,.2)}
.lgf{margin-top:28px;color:#5a6b8c;font-size:14px}.lgd{border:0;background:none;color:#1d4ed8;font:600 14px Inter,sans-serif;cursor:pointer;text-decoration:underline}
@media(max-width:700px){.lgp{padding:76px 18px 36px;justify-content:flex-start}.lgc{grid-template-columns:1fr;gap:16px}.lgk{padding:26px 20px 20px}.lgi{width:64px;height:64px}}
.pn .lgo img{height:34px}.lgl{height:40px}.lfl{height:40px}.mkhd img{height:22px}
.ft img{height:38px;background:#fff;padding:8px 16px;border-radius:12px;box-sizing:content-box}
@media(max-width:700px){.pn.ov .lgo img{height:28px}}
.pn.ov a.l{background:rgba(255,255,255,.88);border-radius:20px;padding:7px 14px;box-shadow:0 3px 10px rgba(29,78,216,.12)}.pn.ov a.l:hover{background:#fff}
.mkbd,.mkx{display:none}
@media(max-width:820px){
.mkp{display:none;order:0}.mkl{position:relative;padding-right:34px}.mkl::after{content:"\203A";position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:24px;color:#1d4ed8}
.mkw.open .mkbd{display:block;position:fixed;inset:0;background:rgba(5,15,50,.62);backdrop-filter:blur(4px);z-index:79;animation:apf .25s both}
.mkw.open .mkp{display:block;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;z-index:80;height:min(640px,90vh);animation:mkin .3s both}
.mkw.open .mkx{display:grid;place-items:center;position:absolute;top:-10px;right:-8px;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#1d4ed8;font-size:26px;line-height:1;cursor:pointer;z-index:9;box-shadow:0 6px 16px rgba(5,15,50,.4)}
}
@keyframes mkin{from{opacity:0;transform:translate(-50%,-46%) scale(.92)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.mkl{text-decoration:none;color:inherit}
@media(max-width:820px){.mkp{display:block!important;order:-1}}
.mpg{min-height:100vh;padding:20px 5vw 50px;font-family:Inter,system-ui,sans-serif;background:radial-gradient(circle at 12% 8%,rgba(125,211,252,.5),transparent 40%),radial-gradient(circle at 92% 70%,rgba(59,130,246,.3),transparent 45%),linear-gradient(180deg,#fff,#e6efff)}
.mpb{max-width:1000px;margin:0 auto 26px;display:flex;align-items:center;justify-content:space-between;gap:12px}.mpb img{height:34px}
.lgb2{padding:9px 18px;border-radius:30px;background:#fff;color:#1d4ed8;font-weight:600;font-size:14px;text-decoration:none;box-shadow:0 4px 14px rgba(29,78,216,.2)}.lgb2:hover{background:#1d4ed8;color:#fff}
.mpw .mkc{text-align:left}.mpk{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:30px;background:#fff;color:#1d4ed8;font-size:13px;font-weight:600;box-shadow:0 4px 12px rgba(29,78,216,.15)}.mpk svg{width:16px;height:16px}
.mpw h1{font-size:clamp(28px,4.5vw,42px);color:#0b2a6b;margin:14px 0 10px;line-height:1.15}.mpw .mkc>p{font-size:16px;line-height:1.6;margin:0 0 22px}
.mpa{display:flex;flex-wrap:wrap;gap:10px}.mpa .bt{padding:13px 22px}
.mkw.mpw .mkp,.mkw.mpw.open .mkp{display:block;position:relative;left:auto;top:auto;transform:none;margin:0 auto;z-index:auto;height:640px;animation:none}
.mpm{max-width:1000px;margin:44px auto 0}.mpm h4{font-size:20px;color:#0b2a6b;margin:0 0 14px}.mpm .mkls{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
@media(max-width:820px){.mkw.mpw .mkp{order:0}.mpw .mkc{text-align:center}.mpa{justify-content:center}.mpa .bt{width:100%;justify-content:center}.mpb .bt{padding:8px 14px;font-size:13px}.mpb img{height:28px}}

/* ===== no-phone home list ===== */
.mkw.nph{display:block;max-width:1100px}.mkw.nph .mkc{text-align:center}.mkw.nph .mkc>p{margin-bottom:24px}
.mkw.nph .mkls{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;text-align:left}
@media(max-width:900px){.mkw.nph .mkls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mkw.nph .mkls{grid-template-columns:1fr}}
.mkw.nph .mkl{position:relative;overflow:hidden;padding:14px 38px 14px 14px;border-radius:18px;transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s,background .35s}
.mkw.nph .mkl::before{content:"";position:absolute;top:0;left:-70%;width:45%;height:100%;background:linear-gradient(90deg,transparent,rgba(125,211,252,.45),transparent);transform:skewX(-20deg);transition:left .6s}
.mkw.nph .mkl:hover::before{left:130%}
.mkw.nph .mkl:hover{transform:translateY(-6px);border-color:#60a5fa;background:linear-gradient(135deg,#fff,#eaf2ff);box-shadow:0 18px 36px rgba(29,78,216,.22)}
.mkw.nph .mkl:hover .ic2{transform:rotate(-10deg) scale(1.15)}
.mkw.nph .mkl::after{content:"\203A";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:24px;color:#1d4ed8;transition:.3s}
.mkw.nph .mkl:hover::after{right:10px}
/* ===== scroll reveal ===== */
.rv{opacity:0;transform:translateY(36px) scale(.97);transition:opacity .7s cubic-bezier(.2,.8,.2,1) var(--d,0s),transform .7s cubic-bezier(.2,.8,.2,1) var(--d,0s),box-shadow .35s,background .35s,border-color .35s}
.rv.in{opacity:1;transform:none}
/* ===== How it works ===== */
.hwp{max-width:1100px}.hsub{text-align:center;color:var(--mu);margin:-8px auto 38px;max-width:520px;font-size:15px}
.hw{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.hw::before{content:"";position:absolute;top:61px;left:16%;right:16%;height:3px;border-radius:3px;z-index:0;background:repeating-linear-gradient(90deg,#93b4f5 0 10px,transparent 10px 20px);background-size:20px 3px;animation:hdash 1.2s linear infinite;opacity:.8}
@keyframes hdash{to{background-position:20px 0}}
.hs{position:relative;z-index:1;text-align:center;padding:84px 24px 30px;border-radius:26px;background:#fff;border:1px solid #d6e3fa;box-shadow:0 10px 30px rgba(29,78,216,.1);overflow:hidden;cursor:default}
.hs::before{content:"";position:absolute;inset:0;background:linear-gradient(150deg,#1d4ed8,#0b2a6b);opacity:0;transition:opacity .4s;z-index:-1}
.hs:hover{transform:translateY(-12px) scale(1.02)!important;box-shadow:0 28px 56px rgba(29,78,216,.34);border-color:#1d4ed8}
.hs:hover::before{opacity:1}
.hs h3{font-size:20px;margin:16px 0 8px;color:#0b2a6b;transition:color .3s}.hs p{color:var(--mu);font-size:14px;line-height:1.65;margin:0;transition:color .3s}
.hs:hover h3{color:#fff}.hs:hover p{color:#d7e5ff}
.hn{position:absolute;top:18px;left:50%;margin-left:-26px;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:700;color:#fff;background:linear-gradient(135deg,#60a5fa,#1d4ed8);box-shadow:0 10px 22px rgba(29,78,216,.4);transition:.4s}
.hn::after{content:"";position:absolute;inset:-7px;border-radius:50%;border:2px solid rgba(59,130,246,.45);animation:hring 2.4s ease-out infinite}
@keyframes hring{0%{transform:scale(.85);opacity:.9}100%{transform:scale(1.5);opacity:0}}
.hs:nth-child(2) .hn::after{animation-delay:.5s}.hs:nth-child(3) .hn::after{animation-delay:1s}
.hs:hover .hn{background:#fff;color:#1d4ed8;transform:scale(1.15) rotate(360deg);transition:transform .7s}
.hi{display:grid;place-items:center;width:64px;height:64px;margin:0 auto;border-radius:20px;background:rgba(29,78,216,.1);color:#1d4ed8;animation:hfloat 3.2s ease-in-out infinite;transition:background .3s,color .3s}
.hi .i{width:30px;height:30px}.hs:nth-child(2) .hi{animation-delay:.4s}.hs:nth-child(3) .hi{animation-delay:.8s}
@keyframes hfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.hs:hover .hi{background:rgba(255,255,255,.18);color:#fff}
.hg{position:absolute;top:0;left:-80%;width:50%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg);pointer-events:none}
.hs:hover .hg{left:140%;transition:left .8s}
@media(max-width:820px){
.hw{grid-template-columns:1fr;gap:22px;padding-left:0}
.hw::before{top:40px;bottom:40px;left:50%;right:auto;width:3px;height:auto;margin-left:-1px;background:repeating-linear-gradient(180deg,#93b4f5 0 10px,transparent 10px 20px);background-size:3px 20px;animation:hdashv 1.2s linear infinite}
@keyframes hdashv{to{background-position:0 20px}}
}
@media(prefers-reduced-motion:reduce){.rv{opacity:1!important;transform:none!important;transition:none}.hw::before,.hn::after,.hi{animation:none!important}}
/* ===== Back buttons (all opened pages, mobile friendly) ===== */
.bkb{position:relative;margin:12px 0 0 14px;z-index:31;display:inline-flex;align-items:center;gap:6px;padding:9px 18px 9px 12px;border-radius:30px;background:#fff;color:#1d4ed8;font:600 14px Inter,system-ui,sans-serif;text-decoration:none;box-shadow:0 6px 18px rgba(29,78,216,.28);transition:.25s}
.bkb:hover{background:#1d4ed8;color:#fff;transform:translateX(-4px)}
.lgb,.lgb2{position:sticky;top:calc(10px + env(safe-area-inset-top,0px));z-index:30}
.lgb{position:fixed;top:calc(14px + env(safe-area-inset-top,0px))}
.lgb,.lgb2{padding:9px 18px 9px 12px;font-size:14px;transition:.25s}.lgb:hover,.lgb2:hover{transform:translateX(-4px)}
.mpb{position:sticky;top:0;z-index:30;padding:10px 0;background:linear-gradient(180deg,rgba(230,239,255,.95),rgba(230,239,255,0));backdrop-filter:blur(6px)}
@media(max-width:820px){.mpb .bt{display:none}.mpb{justify-content:space-between}.mkw.mpw .mkp{margin-top:6px}}

/* ===== How it works: themed background band ===== */
#pl{overflow-x:clip}html{overflow-x:clip}
.hwp{position:relative;isolation:isolate;max-width:1100px;padding-top:64px;padding-bottom:70px}
.hwp::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:100vw;margin-left:-50vw;z-index:-1;
background:radial-gradient(circle at 12% 18%,rgba(125,211,252,.45),transparent 38%),radial-gradient(circle at 88% 85%,rgba(56,189,248,.4),transparent 40%),linear-gradient(120deg,#0b2a6b 0%,#1d4ed8 60%,#38bdf8 100%);background-size:140% 140%;animation:hbg 12s ease-in-out infinite alternate}
@keyframes hbg{from{background-position:0 0}to{background-position:100% 100%}}
.hwp::after{content:"";position:absolute;top:0;bottom:0;left:50%;width:100vw;margin-left:-50vw;z-index:-1;pointer-events:none;opacity:.5;
background-image:radial-gradient(rgba(255,255,255,.35) 1.4px,transparent 1.6px);background-size:28px 28px;-webkit-mask-image:linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent);mask-image:linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent)}
.hwp h2{color:#fff}.hwp h2::after{background:linear-gradient(90deg,#bae6fd,#fff)}
.hwp .hsub{color:#d7e5ff}
.hw::before{background:repeating-linear-gradient(90deg,rgba(255,255,255,.75) 0 10px,transparent 10px 20px);background-size:20px 3px;opacity:1}
.hs{border-color:rgba(255,255,255,.7);box-shadow:0 14px 34px rgba(5,20,70,.35)}
.hs::before{background:linear-gradient(150deg,#0b2a6b,#08205a)}
.hs:hover{border-color:#bae6fd;box-shadow:0 0 0 3px rgba(186,230,253,.55),0 30px 60px rgba(5,20,70,.55)}
@media(max-width:820px){.hw::before{background:repeating-linear-gradient(180deg,rgba(255,255,255,.75) 0 10px,transparent 10px 20px);background-size:3px 20px}.hwp{padding-top:44px;padding-bottom:48px}}
@media(prefers-reduced-motion:reduce){.hwp::before{animation:none}}

/* ===== Advanced footer ===== */
.ft{display:none}
.ftx{position:relative;margin-top:60px;padding:0 5vw 26px;color:#c7d7f5;font-family:Inter,system-ui,sans-serif;background:radial-gradient(circle at 10% 0,rgba(56,189,248,.18),transparent 40%),radial-gradient(circle at 95% 100%,rgba(29,78,216,.4),transparent 45%),linear-gradient(180deg,#0a1f4d,#06143a)}
.ftx::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#38bdf8,#1d4ed8,#7dd3fc,#1d4ed8,#38bdf8);background-size:300% 100%;animation:fbar 6s linear infinite}
@keyframes fbar{to{background-position:300% 0}}
.ftw{max-width:1150px;margin:auto;position:relative}
.fcta{position:relative;top:-46px;margin-bottom:-6px;display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between;padding:28px 32px;border-radius:26px;color:#fff;background:radial-gradient(circle at 15% 20%,rgba(125,211,252,.45),transparent 45%),linear-gradient(120deg,#1d4ed8,#38bdf8);box-shadow:0 24px 50px rgba(5,20,70,.45)}
.fcta h3{margin:0 0 4px;font-size:22px;color:#fff}.fcta p{margin:0;opacity:.92;font-size:14px;max-width:480px}
.fcb{display:flex;gap:10px;flex-wrap:wrap}.fcta .bt{background:#fff;color:#1d4ed8;box-shadow:none}.fcta .bt.o{background:transparent;color:#fff;border:1.5px solid #fff}.fcta .bt.o:hover{background:#fff;color:#1d4ed8}
.fgr{display:grid;grid-template-columns:1.5fr .8fr 1.3fr 1.2fr;gap:36px;padding:14px 0 34px}
.fcol h4{margin:0 0 16px;font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:#fff;position:relative;padding-bottom:10px}
.fcol h4::after{content:"";position:absolute;left:0;bottom:0;width:34px;height:3px;border-radius:3px;background:linear-gradient(90deg,#7dd3fc,#1d4ed8);transition:width .35s}.fcol:hover h4::after{width:60px}
.fcol a{display:block;position:relative;width:fit-content;color:#c7d7f5;text-decoration:none;font-size:14px;padding:5px 0;transition:.3s}
.fcol a::before{content:"\203A";position:absolute;left:-14px;opacity:0;color:#7dd3fc;transition:.3s}
.fcol a:hover{color:#fff;transform:translateX(14px)}.fcol a:hover::before{opacity:1;left:-12px}
.fmod>div{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}
.fbr img{height:38px;background:#fff;padding:8px 16px;border-radius:12px;box-sizing:content-box;margin-bottom:16px}
.fbr p{font-size:13.5px;line-height:1.7;margin:0 0 18px;max-width:340px;color:#aebfe3}
.fso{display:flex;gap:10px}.fcol .fso a{width:42px;height:42px;padding:0;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff}
.fcol .fso a::before{display:none}.fso svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fcol .fso a:hover{transform:translateY(-5px) scale(1.1);background:#1d4ed8;border-color:#7dd3fc;box-shadow:0 10px 22px rgba(56,189,248,.4)}.fcol .fso a.fwa:hover{background:#25d366;border-color:#25d366;box-shadow:0 10px 22px rgba(37,211,102,.45)}
.fbt{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding-top:20px;border-top:1px solid rgba(255,255,255,.14);font-size:13px;color:#9fb3da}.fbt b{color:#fff}
.ftop{padding:8px 18px;border-radius:30px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);color:#fff;text-decoration:none;font-weight:600;transition:.3s}.ftop:hover{background:#fff;color:#1d4ed8;transform:translateY(-3px)}
@media(max-width:900px){.fgr{grid-template-columns:1fr 1fr;gap:28px}.fbr{grid-column:1/3}}
@media(max-width:560px){.fgr{grid-template-columns:1fr}.fbr{grid-column:auto}.fcta{padding:22px 20px;top:-34px}.fcta .bt{width:100%;justify-content:center}.fcb{width:100%}.fbt{flex-direction:column;text-align:center}}

/* ===== phone: richer, scrollable preview ===== */
.mkv{overflow-y:auto;scrollbar-width:none;padding-bottom:34px}.mkv::-webkit-scrollbar{display:none}
.mkh{margin:16px 0 8px;font-size:13px;font-weight:600;color:#0b2a6b}
.mkli{display:grid;gap:8px}
.mkit{display:grid;grid-template-columns:1fr auto;gap:1px 8px;align-items:center;padding:9px 12px;border-radius:14px;background:#fff;border:1px solid #dbe5f7;transition:.25s;animation:apf .45s both}
.mkit:nth-child(2){animation-delay:.07s}.mkit:nth-child(3){animation-delay:.14s}.mkit:nth-child(4){animation-delay:.21s}.mkit:nth-child(5){animation-delay:.28s}
.mkit:hover{transform:translateX(3px);border-color:#93b4f5;box-shadow:0 6px 14px rgba(29,78,216,.14)}
.mkit b{font-size:12.5px;color:#0b2a6b;grid-column:1}.mkit small{font-size:10.5px;color:#5a6b8c;grid-column:1;line-height:1.35}
.mkit em{grid-column:2;grid-row:1/3;align-self:center;font-style:normal;font-size:10.5px;font-weight:600;padding:3px 9px;border-radius:20px;white-space:nowrap}
.mksm{padding-top:14px}

/* ===== small-phone safety ===== */
@media(max-width:820px){.mkw,.mkw.mpw{grid-template-columns:minmax(0,1fr)}.mkw.mpw .mkp{max-width:100%}.mkc,.mkc h1,.mkc p{min-width:0;overflow-wrap:anywhere}}
@media(max-width:360px){.mkw.mpw .mkp{width:min(310px,100%)}.mpg{padding-left:14px;padding-right:14px}.mpw h1{font-size:26px}}
#p-features,#p-how,#p-contact{scroll-margin-top:72px}
/* ===== Features section: extra attractive cards ===== */
#p-features{position:relative;margin:34px auto;padding:58px 4vw 60px;border-radius:36px;border:1px solid rgba(59,130,246,.16);background:radial-gradient(circle at 8% 0%,rgba(96,165,250,.26),transparent 42%),radial-gradient(circle at 96% 100%,rgba(167,139,250,.22),transparent 42%),radial-gradient(circle at 70% 10%,rgba(56,189,248,.14),transparent 35%),linear-gradient(180deg,#f6f9ff,#e9f1ff);box-shadow:0 30px 70px rgba(29,78,216,.12)}
#p-features h2::before{content:"ALL-IN-ONE SCHOOL PLATFORM";display:block;width:max-content;max-width:100%;margin:0 auto 14px;padding:7px 18px;border-radius:30px;font-size:11.5px;font-weight:700;letter-spacing:.16em;color:#1d4ed8;background:#fff;box-shadow:0 8px 20px rgba(29,78,216,.16)}
#p-features .mkc h3{background:linear-gradient(90deg,#0b2a6b,#1d4ed8 55%,#0ea5e9);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:700}
.nph .mkls{gap:20px!important;counter-reset:mk}
.nph .mkl{--a1:#60a5fa;--a2:#1d4ed8;--rg:29,78,216;counter-increment:mk;display:flex!important;align-items:center;gap:15px!important;padding:20px 54px 20px 18px!important;border-radius:24px!important;border:1.5px solid transparent!important;
background:radial-gradient(circle at 100% 0%,rgba(var(--rg),.12),transparent 55%) padding-box,linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,rgba(var(--rg),.55),rgba(var(--rg),.08) 55%,rgba(var(--rg),.35)) border-box!important;
box-shadow:0 12px 28px rgba(var(--rg),.14),0 2px 6px rgba(11,42,107,.05)!important}
.nph .mkl:nth-child(1){--a1:#60a5fa;--a2:#1d4ed8;--rg:29,78,216}
.nph .mkl:nth-child(2){--a1:#2dd4bf;--a2:#0f766e;--rg:13,148,136}
.nph .mkl:nth-child(3){--a1:#fbbf24;--a2:#d97706;--rg:217,119,6}
.nph .mkl:nth-child(4){--a1:#60a5fa;--a2:#1d4ed8;--rg:109,40,217}
.nph .mkl:nth-child(5){--a1:#818cf8;--a2:#1d4ed8;--rg:67,56,202}
.nph .mkl:nth-child(6){--a1:#fb7185;--a2:#be123c;--rg:225,29,72}
.nph .mkl:nth-child(7){--a1:#4ade80;--a2:#15803d;--rg:22,163,74}
.nph .mkl:nth-child(8){--a1:#fb923c;--a2:#c2410c;--rg:234,88,12}
.nph .mkl:nth-child(9){--a1:#e879f9;--a2:#a21caf;--rg:192,38,211}
.nph .mkl .ic2{width:56px!important;height:56px!important;border-radius:18px!important;background:linear-gradient(135deg,var(--a1),var(--a2))!important;box-shadow:0 12px 24px rgba(var(--rg),.4),inset 0 1px 0 rgba(255,255,255,.5)!important;animation:mkfl 4.5s ease-in-out infinite}
.nph .mkl:nth-child(even) .ic2{animation-delay:-2s}.nph .mkl:nth-child(3n) .ic2{animation-delay:-1s}
.nph .mkl .ic2 svg{width:26px!important;height:26px!important}
@keyframes mkfl{0%,100%{translate:0 0}50%{translate:0 -4px}}
.nph .mkl>span:nth-child(2)::before{content:counter(mk,decimal-leading-zero);display:block;font-size:10.5px;font-weight:700;letter-spacing:.14em;color:rgb(var(--rg));margin-bottom:3px}
.nph .mkl b{font-size:16px!important;color:#0b2a6b!important;letter-spacing:-.1px}
.nph .mkl small{font-size:12.5px!important;line-height:1.55;color:#52628a!important;margin-top:3px!important}
.nph .mkl::after{width:32px;height:32px;right:14px!important;display:grid;place-items:center;border-radius:50%;padding-bottom:3px;box-sizing:border-box;font-size:22px!important;line-height:1;background:rgba(var(--rg),.10);color:rgb(var(--rg))!important;transition:.35s!important}
.nph .mkl:hover{transform:translateY(-9px) scale(1.018)!important;
background:radial-gradient(circle at 100% 0%,rgba(var(--rg),.22),transparent 60%) padding-box,linear-gradient(#fff,#f5f8ff) padding-box,linear-gradient(135deg,rgb(var(--rg)),rgba(var(--rg),.35)) border-box!important;
box-shadow:0 26px 50px rgba(var(--rg),.32),0 4px 10px rgba(11,42,107,.06)!important}
.nph .mkl:hover::after{right:9px!important;background:linear-gradient(135deg,var(--a1),var(--a2));color:#fff!important}
.nph .mkl:hover .ic2{transform:rotate(-10deg) scale(1.14)!important}
@media(prefers-reduced-motion:reduce){.nph .mkl .ic2{animation:none}}
@media(max-width:700px){#p-features{padding:40px 14px 44px;border-radius:26px;margin:20px 10px}.nph .mkl{padding:16px 50px 16px 14px!important}}
@media(max-width:700px){
#p-features{padding:34px 16px 38px!important;margin:18px 10px!important;border-radius:26px!important}
#p-features h2{font-size:25px!important;line-height:1.2!important;margin:0 0 16px!important}
#p-features h2::before{font-size:10.5px;letter-spacing:.1em;padding:6px 14px;margin-bottom:12px}
#p-features h2::after{margin-top:12px}
#p-features .mkc h3{font-size:18px!important;line-height:1.3!important;margin:4px 0 6px!important;background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;color:#1d4ed8!important;-webkit-text-fill-color:#1d4ed8}
#p-features .mkc>p{font-size:13px!important;line-height:1.5;margin:0 0 20px!important}
.nph .mkls{gap:14px!important}
.nph .mkl .ic2{width:50px!important;height:50px!important;border-radius:16px!important}
.nph .mkl b{font-size:15px!important}
}
/* front page only: app-style fixed top bar with the white logo; login/student pages keep their light look */
.pn.ov{position:fixed!important;top:0;left:0;right:0;z-index:50;height:calc(58px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 5vw 0!important;box-sizing:border-box;display:flex;align-items:center;flex-wrap:nowrap!important;background:linear-gradient(90deg,#0b2a6b,#1d4ed8)!important;border-bottom:1px solid rgba(255,255,255,.14)!important;box-shadow:0 4px 18px rgba(11,42,107,.28)!important}
.pn.ov .lgo{display:flex;align-items:center}
.pn.ov .lgo img{height:30px!important;width:auto;filter:none!important}
.pn.ov nav{margin-left:auto;display:flex;align-items:center;gap:6px;flex-wrap:nowrap!important}
.pn.ov a.l{color:#fff!important;background:none!important;box-shadow:none!important;padding:6px 10px!important;font-size:14px!important}
.pn.ov .bt{padding:7px 18px!important;font-size:13px!important;white-space:nowrap}
.pn.ov .bt.o{color:#fff!important;border-color:rgba(255,255,255,.6)!important;background:transparent!important;box-shadow:none!important}
.pn.ov .bt.o:hover{background:#fff!important;color:#1d4ed8!important}
.pn.ov .bt:not(.o){background:#fff!important;color:#1d4ed8!important}
.fbr img{background:none!important;padding:0!important;border-radius:0!important;box-shadow:none!important}
@media(max-width:820px){.pn.ov{height:calc(54px + env(safe-area-inset-top,0px));padding-left:14px!important;padding-right:14px!important}.pn.ov .lgo img{height:28px!important}}
/* school photo behind login pages: soft, faded into the light blue/white background */
.lgp{isolation:isolate}
.lgp::before,#pl:has(.lf)::before{content:"";pointer-events:none;background:var(--schoolimg) center bottom/cover no-repeat;opacity:.34;-webkit-mask-image:linear-gradient(to top,#000 0%,rgba(0,0,0,.75) 40%,transparent 92%);mask-image:linear-gradient(to top,#000 0%,rgba(0,0,0,.75) 40%,transparent 92%)}
.lgp::before{position:absolute;inset:0;z-index:-1}
#pl:has(.lf)::before{position:fixed;inset:0;z-index:0}
#pl:has(.lf) .ps{position:relative;z-index:1}

/* mobile: all 9 modules visible together as a clean app-style launcher grid (3 x 3) */
@media(max-width:700px){
#p-features{padding:26px 12px 28px!important;margin:14px 8px!important}
#p-features .mkw.nph .mkc>p{margin-bottom:16px!important}
#p-features .mkw.nph .mkls{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
#p-features .mkw.nph .mkl{flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important;text-align:center!important;padding:14px 6px 12px!important;border-radius:18px!important;min-height:112px;box-shadow:0 4px 12px rgba(var(--rg),.12),0 1px 3px rgba(11,42,107,.06)!important;transform:none!important}
#p-features .mkw.nph .mkl:hover,#p-features .mkw.nph .mkl:active{transform:none!important}
#p-features .mkw.nph .mkl:active{filter:brightness(.97)}
#p-features .mkw.nph .mkl::before,#p-features .mkw.nph .mkl::after{display:none!important}
#p-features .mkw.nph .mkl>span:nth-child(2)::before{display:none!important}
#p-features .mkw.nph .mkl .ic2{width:46px!important;height:46px!important;border-radius:14px!important;animation:none!important;box-shadow:0 6px 12px rgba(var(--rg),.30)!important}
#p-features .mkw.nph .mkl .ic2 svg{width:22px!important;height:22px!important}
#p-features .mkw.nph .mkl>span:nth-child(2){display:block;min-width:0;width:100%}
#p-features .mkw.nph .mkl b{font-size:11.5px!important;line-height:1.25!important;font-weight:600;letter-spacing:0;display:block;overflow-wrap:anywhere}
#p-features .mkw.nph .mkl small{display:none!important}
}
@media(max-width:340px){#p-features .mkw.nph .mkls{gap:8px!important}#p-features .mkw.nph .mkl b{font-size:10.5px!important}}

/* mobile: app-style section header (small label, left-aligned title, one muted line) */
@media(max-width:700px){
#p-features h2{text-align:left!important;font-size:22px!important;line-height:1.25!important;font-weight:700;color:#0b2a6b;margin:0 0 4px!important;letter-spacing:-.2px}
#p-features h2::before{content:"ESMOS MODULES"!important;width:auto!important;margin:0 0 8px!important;padding:0!important;background:none!important;box-shadow:none!important;border-radius:0!important;font-size:11px!important;letter-spacing:.14em!important;color:#1d4ed8;text-align:left}
#p-features h2::after{display:none!important}
#p-features .mkw.nph .mkc{text-align:left!important}
#p-features .mkw.nph .mkc>h3{display:none!important}
#p-features .mkw.nph .mkc>p{font-size:13.5px!important;color:#5a6b8c;margin:0 0 16px!important;text-align:left}
}

/* remove the ALL-IN-ONE SCHOOL PLATFORM pill above the features heading (desktop/tablet) */
@media(min-width:701px){#p-features h2::before{display:none!important}}

/* top bar: Login + Try live demo, same size, clean app-style buttons */
.pn.ov nav .bt{box-sizing:border-box!important;display:inline-flex!important;align-items:center;justify-content:center;width:124px;height:38px;padding:0 10px!important;margin:0!important;border-radius:999px!important;font-size:13.5px!important;font-weight:600!important;line-height:1;letter-spacing:.1px;white-space:nowrap;text-align:center;transition:transform .15s,background .2s,color .2s}
.pn.ov nav .bt.o{background:rgba(255,255,255,.12)!important;color:#fff!important;border:1.5px solid rgba(255,255,255,.75)!important;box-shadow:none!important}
.pn.ov nav .bt:not(.o){background:#fff!important;color:#1d4ed8!important;border:1.5px solid #fff!important;box-shadow:0 4px 12px rgba(5,20,70,.28)!important}
.pn.ov nav .bt:active{transform:scale(.96)}
@media(max-width:820px){.pn.ov nav{gap:8px!important}.pn.ov nav .bt{width:104px;height:36px;font-size:13px!important}}
@media(max-width:360px){.pn.ov nav{gap:6px!important}.pn.ov nav .bt{width:92px;height:34px;font-size:12px!important}}

/* remove 01, 02... numbers from feature cards */
.nph .mkl>span:nth-child(2)::before{content:none!important;display:none!important}

/* school photo, dark version, behind the school portal chooser and portal login */
:root{--schoolimg:url(bg-school.jpg)}
#lgn{background:linear-gradient(180deg,rgba(7,22,66,.80),rgba(11,42,107,.58) 45%,rgba(5,15,50,.78)),var(--schoolimg) center/cover no-repeat!important}

/* school portal chooser: app-style tiles */
#lgn .pg4{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
#lgn .pc{--a1:#fb7185;--a2:#be123c;--rg:225,29,72;position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:26px 14px 18px;border-radius:24px;background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.7);box-shadow:0 14px 30px rgba(3,12,40,.38);transition:transform .2s,box-shadow .2s}
#lgn .pc:nth-child(2){--a1:#60a5fa;--a2:#1d4ed8;--rg:29,78,216}
#lgn .pc:nth-child(3){--a1:#4ade80;--a2:#15803d;--rg:22,163,74}
#lgn .pc:nth-child(4){--a1:#60a5fa;--a2:#1d4ed8;--rg:109,40,217}
#lgn .pc .ic2{width:60px;height:60px;border-radius:19px;margin:0 0 14px;background:linear-gradient(135deg,var(--a1),var(--a2))!important;color:#fff!important;box-shadow:0 10px 18px rgba(var(--rg),.38)}
#lgn .pc .ic2 svg{width:28px;height:28px;color:#fff;stroke:#fff}
#lgn .pc b{font-size:15.5px;color:#0b2a6b;margin-bottom:4px}
#lgn .pc span{font-size:12.5px;line-height:1.45;color:#5a6b8c;min-height:36px}
#lgn .pc::after{content:"Sign in \203A";margin-top:12px;padding:6px 18px;border-radius:999px;font-size:12px;font-weight:600;color:rgb(var(--rg));background:rgba(var(--rg),.10);transition:.2s}
#lgn .pc:hover{transform:translateY(-5px);box-shadow:0 20px 38px rgba(3,12,40,.5)}
#lgn .pc:hover::after{background:linear-gradient(135deg,var(--a1),var(--a2));color:#fff}
#lgn .pc:active{transform:scale(.97)}
#lgn .lw>p .bt.o{border-radius:999px;height:40px;padding:0 26px;background:rgba(255,255,255,.12);border:1.5px solid rgba(255,255,255,.75);box-shadow:none;backdrop-filter:blur(4px)}
@media(max-width:820px){
#lgn .pg4{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#lgn .pc{padding:20px 10px 14px;border-radius:22px}
#lgn .pc .ic2{width:52px;height:52px;border-radius:16px;margin-bottom:12px}
#lgn .pc .ic2 svg{width:25px;height:25px}
#lgn .pc b{font-size:14px}
#lgn .pc span{font-size:11.5px;min-height:32px}
#lgn .pc::after{margin-top:10px;padding:5px 14px;font-size:11.5px}
}


/* ===== ADVANCED MODULES: features section + app pages ===== */
#p-features{background:radial-gradient(60% 50% at 12% 0%,rgba(56,189,248,.30),transparent 70%),radial-gradient(50% 50% at 100% 100%,rgba(139,92,246,.34),transparent 70%),linear-gradient(160deg,#071a45,#0b2a6b 55%,#10358a)!important;border:1px solid rgba(255,255,255,.14)!important;overflow:hidden;box-shadow:0 30px 70px -20px rgba(7,26,69,.6)!important}
#p-features::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:44px 44px;-webkit-mask-image:radial-gradient(ellipse at 50% 25%,#000 25%,transparent 75%);mask-image:radial-gradient(ellipse at 50% 25%,#000 25%,transparent 75%)}
#p-features>*{position:relative;z-index:1}
#p-features h2{color:#fff!important}
#p-features h2::before{content:"ESMOS MODULES"!important;display:block!important;width:max-content!important;max-width:100%;margin:0 auto 14px!important;padding:7px 18px!important;border-radius:30px!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.2);box-shadow:none!important;color:#7dd3fc!important;font-size:11.5px!important;letter-spacing:.16em!important}
#p-features .mkc>h3{background:linear-gradient(90deg,#fff,#7dd3fc)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent}
#p-features .mkw.nph .mkc>p{color:#b9d0f5!important}
@media(min-width:701px){.mkl,#p-features .mkl{align-items:flex-start!important;text-align:left!important}.mkl .ic2{align-self:flex-start!important;margin:0!important}.mkl>span:nth-child(2){display:block;text-align:left!important}}
.mkl small,#p-features .mkl small,#p-features .mkw.nph .mkl small{color:#d6e4ff!important;opacity:1!important;-webkit-text-fill-color:#d6e4ff!important}
.mkl b,#p-features .mkl b{opacity:1!important}
.mkl>span::before,.mkl>span::after,.mkl .ic2::after,.mkl .ic2::before{content:none!important;display:none!important}
.fst{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:0 0 26px}
.fst div{min-width:120px;padding:10px 18px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);text-align:center}
.fst b{display:block;font-size:22px;color:#fff;line-height:1.2}.fst span{font-size:11.5px;color:#a9c3f5;letter-spacing:.04em}
.mkl{position:relative;flex-direction:column;align-items:flex-start;gap:14px;padding:22px 20px 24px;border-radius:22px;background:linear-gradient(160deg,rgba(255,255,255,.13),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.16);color:#fff;overflow:hidden;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:transform .35s,box-shadow .35s,border-color .35s}
.mkl::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--a1),var(--a2))}
.mkl::after{content:"";position:absolute;width:190px;height:190px;right:-70px;bottom:-90px;border-radius:50%;background:radial-gradient(circle,var(--a1),transparent 70%);opacity:.28;transition:.4s;pointer-events:none}
.mkl:hover{transform:translateY(-6px);border-color:var(--a1);box-shadow:0 24px 40px -18px var(--a1)}.mkl:hover::after{opacity:.55;transform:scale(1.25)}
.mkl .ic2{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,var(--a1),var(--a2))!important;box-shadow:0 10px 22px -8px var(--a1)}
.mkl .ic2 svg{width:26px;height:26px;color:#fff;stroke:#fff}
.mkl b{color:#fff;font-size:16.5px;margin-bottom:4px}.mkl small{color:rgba(226,238,255,.8);font-size:13px;line-height:1.5;margin-top:0}
.mkl .mn{position:absolute;top:16px;right:18px;font-style:normal;font-weight:700;font-size:12px;letter-spacing:.1em;color:rgba(255,255,255,.4)}
.mkl .ar{position:absolute;right:16px;bottom:16px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);font-style:normal;font-size:19px;line-height:1;z-index:1;transition:.3s}
.mkl:hover .ar{background:linear-gradient(135deg,var(--a1),var(--a2));transform:translateX(4px)}
.mkl>span:nth-child(2){padding-right:30px}
@media(min-width:701px){#p-features .mkls{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(min-width:701px) and (max-width:980px){#p-features .mkls{grid-template-columns:repeat(2,minmax(0,1fr))}}
#p-features .mkw.nph .mkl{background:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.05))!important;border:1px solid rgba(255,255,255,.18)!important;border-top:3px solid var(--a1)!important;color:#fff!important}
#p-features .mkw.nph .mkl b{color:#fff!important}
#p-features .mkw.nph .mkl .ic2{background:linear-gradient(135deg,var(--a1),var(--a2))!important}
#p-features .mkw.nph .mkl .ic2 svg{color:#fff;stroke:#fff}
@media(max-width:700px){#p-features .mkl .mn,#p-features .mkl .ar{display:none}#p-features h2::before{margin:0 0 10px!important;padding:6px 12px!important}#p-features .mkl>span:nth-child(2){padding-right:0}.fst{gap:8px}.fst div{min-width:0;flex:1;padding:8px 6px}.fst b{font-size:18px}}
/* app page */
.mpg{background:radial-gradient(60% 45% at 82% 6%,color-mix(in srgb,var(--a1) 45%,transparent),transparent 70%),radial-gradient(50% 40% at 4% 62%,color-mix(in srgb,var(--a2) 30%,transparent),transparent 70%),linear-gradient(165deg,#06163b,#0b2a6b 60%,#0a1f55)!important;color:#fff;position:relative;overflow:hidden}
.mpg::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:46px 46px;-webkit-mask-image:linear-gradient(180deg,#000,transparent 70%);mask-image:linear-gradient(180deg,#000,transparent 70%)}
.mpg>.mpw,.mpg>.mpm,.mpg>.mph{position:relative;z-index:1}
.mpb{background:linear-gradient(180deg,rgba(6,22,59,.92),rgba(6,22,59,0))!important}
.mpg .lgb2{color:#fff!important;padding:8px 14px;border-radius:30px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);text-decoration:none;font-size:14px}
.mpg .mpk{background:rgba(255,255,255,.12)!important;color:#fff!important;border:1px solid rgba(255,255,255,.22);box-shadow:none!important}
.mpg .mpk svg{color:var(--a2);stroke:var(--a2)}
.mpg .mpw h1{color:#fff!important}.mpg .mpw .mkc>p,.mpg .mpw .mu{color:#c4d6f7!important}
.mpg .bt.o{background:rgba(255,255,255,.08)!important;color:#fff!important;border:1px solid rgba(255,255,255,.3)!important}
.mps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 24px}
.mps div{padding:12px 12px 10px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-bottom:3px solid var(--a1)}
.mps b{display:block;font-size:19px;color:#fff;line-height:1.2}.mps small{display:block;font-size:11.5px;color:#a9c3f5;margin-top:2px}
.mpph{position:relative;display:grid;place-items:center}
.mpph::before{content:"";position:absolute;width:min(420px,95%);aspect-ratio:1;border-radius:50%;background:conic-gradient(from 0deg,var(--a1),var(--a2),var(--a1));filter:blur(70px);opacity:.5;animation:mpspin 16s linear infinite}
@keyframes mpspin{to{transform:rotate(360deg)}}
.mpph::before,.mpph::after{display:none!important;content:none!important}.mpg{background:linear-gradient(165deg,#06163b,#0b2a6b 60%,#0a1f55)!important}.mpph{filter:none!important}.mkw.mpw .mkp,.mkw.mpw .mkp .mks{box-shadow:none!important;filter:none!important}
.mkw.mpw .mkp{box-shadow:0 40px 70px -20px rgba(0,0,0,.65)}
.mph{max-width:1000px;margin:52px auto 0}
.mph h4,.mpm h4{font-size:21px;color:#fff!important;margin:0 0 16px}
.mph h4 span{color:var(--a2)}
.mhg{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:14px}
.mhc{position:relative;padding:20px 18px;border-radius:20px;background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.15);backdrop-filter:blur(8px)}
.mhc i{display:grid;place-items:center;width:32px;height:32px;margin-bottom:12px;border-radius:10px;background:linear-gradient(135deg,var(--a1),var(--a2));font-style:normal;font-weight:700;font-size:14px;color:#fff}
.mhc b{display:block;font-size:15px;color:#fff;margin-bottom:4px}.mhc small{font-size:13px;line-height:1.5;color:#b9d0f5}
@media(max-width:820px){.mps{margin-bottom:18px}.mph{margin-top:36px}
@media(max-width:600px){.mph{margin-top:28px}.mph h4{font-size:18px;margin-bottom:12px}.mhg{grid-template-columns:1fr;gap:8px}.mhc{display:grid;grid-template-columns:28px 1fr;column-gap:12px;align-items:center;padding:10px 14px;border-radius:14px}.mhc i{grid-row:1/3;width:28px;height:28px;margin:0;border-radius:8px;font-size:13px}.mhc b{font-size:14px;margin:0 0 1px}.mhc small{font-size:12px;line-height:1.35}}
/* module page: native app feel on phones */
svg.f,.mkl .ic2 svg.f,.mpg .mpk svg.f,#p-features .mkw.nph .mkl .ic2 svg.f{stroke:none!important;stroke-width:0!important}.ic2 svg.f{width:27px!important;height:27px!important}.mpk svg.f{width:16px!important;height:16px!important;fill:currentColor}
@media(max-width:700px){.mpg>.mpw{z-index:60!important}.mpg{padding-bottom:92px!important}.mpb{position:sticky;top:0;z-index:60;margin:0 0 12px!important;padding:10px 14px;background:rgba(6,22,59,.92)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.mpw .mkc>*:not(.mpa){display:none!important}.mpa{position:fixed;left:0;right:0;bottom:0;z-index:70;display:block;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:rgba(6,22,59,.95);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid rgba(255,255,255,.14)}.mpa .bt.o{display:none!important}.mpa .bt{width:100%;padding:14px;border-radius:14px;font-size:15px;justify-content:center}.mkw.mpw{gap:0!important}.mpm{margin-top:28px}.mpm h4{font-size:18px}}}

/* desktop hero: push the students a little to the right so the headline does not sit on their faces */
@media(min-width:821px){.ph{background-size:cover,auto max(100%,calc(56.25vw + 90px));background-position:center,left center;background-color:#eef4ff}}

/* keep the intro paragraph readable on the photo with a lighter fade */
@media(min-width:821px){.ph p{text-shadow:0 0 12px rgba(255,255,255,.85),0 0 4px rgba(255,255,255,.7)!important;color:#243a66}}

/* laptop/desktop: modules section runs full width, edge to edge (content stays centred) */
@media(min-width:701px){#p-features{max-width:none!important;width:100%!important;margin:34px 0!important;border-radius:0!important;border-left:0!important;border-right:0!important;box-shadow:none!important;padding-left:max(4vw,calc(50% - 560px))!important;padding-right:max(4vw,calc(50% - 560px))!important;padding-top:70px!important;padding-bottom:76px!important}}

/* dark hero: navy overlay on the photo, white text */
.ph h1{color:#fff!important;text-shadow:0 4px 28px rgba(0,0,0,.5)!important}
.ph h1 .hl{background:linear-gradient(90deg,#7dd3fc,#38bdf8 55%,#a5f3fc)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;text-shadow:none!important}
.ph p{color:#dbe8ff!important;text-shadow:0 2px 14px rgba(0,0,0,.45)!important;opacity:1!important}
.phb .bt:first-child{background:linear-gradient(135deg,#3b82f6,#1d4ed8)!important;color:#fff!important;box-shadow:0 10px 28px rgba(59,130,246,.5)!important}
.phb .bt.o{color:#fff!important;border:1.5px solid rgba(255,255,255,.7)!important;background:rgba(255,255,255,.1)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.phb .bt.o:hover{background:#fff!important;color:#1d4ed8!important}
@media(min-width:701px){.ph{background-color:#071a45;background-image:linear-gradient(90deg,rgba(4,16,52,.93) 0%,rgba(7,28,82,.82) 34%,rgba(8,32,92,.4) 62%,rgba(8,32,92,.12) 100%),linear-gradient(0deg,rgba(4,16,52,.55),transparent 35%),var(--himg);background-size:cover,cover,auto max(100%,calc(56.25vw + 90px));background-position:center,center,left center}}
@media(max-width:700px){.ph{background-color:#071a45;background-image:linear-gradient(180deg,rgba(4,16,52,.35) 0,rgba(4,16,52,0) 90px,rgba(7,26,69,0) 190px,#071a45 335px),var(--himg)}.ph p{color:#cfe0ff!important}}

/* mobile hero: app-style welcome screen (photo card, compact text, tidy button grid) */
@media(max-width:700px){
.ph{background:linear-gradient(180deg,#071a45,#0a2461 55%,#0b2a6b)!important;padding:366px 18px 26px!important;align-items:stretch!important}
.ph::before{display:block!important;content:"";position:absolute;inset:auto;left:14px;right:14px;top:70px;height:276px;border-radius:26px;z-index:-1;animation:none!important;background:linear-gradient(180deg,rgba(4,16,52,0) 45%,rgba(4,16,52,.72)),var(--himg) 66% 30%/auto 276px no-repeat;box-shadow:0 16px 34px rgba(0,0,0,.4),0 0 0 1px rgba(255,255,255,.12)}
.ph::after{display:block!important;content:"Fees  ·  Attendance  ·  Results  ·  Payroll";white-space:pre;position:absolute;inset:auto;left:28px;top:304px;width:auto;height:auto;padding:7px 14px;border-radius:999px;background:rgba(255,255,255,.18)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.25);color:#fff;font-size:11.5px;font-weight:600;letter-spacing:.2px;mix-blend-mode:normal!important;animation:none!important;z-index:1;pointer-events:none}
.ph h1{font-size:27px!important;line-height:1.18!important;margin:0 0 8px!important;letter-spacing:-.3px;text-wrap:balance}
.ph p{font-size:13.5px!important;line-height:1.55!important;margin:0 0 18px!important;color:#b9d0f5!important}
.phb{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important}
.phb .bt{height:50px;padding:0 10px!important;border-radius:14px!important;font-size:14.5px!important;font-weight:600;display:flex;align-items:center;justify-content:center;box-shadow:none!important;animation:none!important}
.phb .bt::after{display:none!important}
.phb .bt:first-child{grid-column:1/-1;background:#2563eb!important;font-size:15.5px!important;box-shadow:0 8px 18px rgba(37,99,235,.45)!important}
.phb .bt.o{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.22)!important;backdrop-filter:none;-webkit-backdrop-filter:none}
.phb a.bt.o:nth-child(2){font-size:0!important}
.phb a.bt.o:nth-child(2)::after{display:block!important;content:"Chat on WhatsApp";position:static;width:auto;height:auto;background:none;transform:none;animation:none;font-size:14.5px;font-weight:600;color:#fff}
}

/* mobile hero buttons: single-line labels with icons, clearer hierarchy */
@media(max-width:700px){
.phb{gap:10px!important}
.phb .bt{white-space:nowrap;gap:9px;transition:transform .15s,background .2s}
.phb .bt:active{transform:scale(.97)}
.phb .bt:first-child{height:54px!important;border-radius:16px!important;background:linear-gradient(135deg,#3b82f6,#1d4ed8)!important;box-shadow:0 10px 22px rgba(37,99,235,.5),inset 0 1px 0 rgba(255,255,255,.28)!important}
.phb .bt:first-child::after{display:block!important;content:"";position:static!important;width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E") center/20px no-repeat!important;transform:none!important;animation:none!important}
.phb .bt.o{height:50px!important;border-radius:16px!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.26)!important}
.phb a.bt.o::before{content:"";display:block;width:20px;height:20px;flex:none}
.phb a.bt.o:nth-child(2)::before{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='translate(3 3) scale(.75)' fill='%2325D366' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E") center/20px no-repeat}
.phb a.bt.o:nth-child(3)::before{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E") center/20px no-repeat}
.phb a.bt.o:nth-child(2)::after{content:"WhatsApp"!important}
}

@media(max-width:700px){.phb a.bt.o:nth-child(2){gap:0!important}.phb a.bt.o:nth-child(2)::before{margin-right:9px}}

/* remove the Fees/Attendance chip on the mobile hero photo */
@media(max-width:700px){.ph::after{display:none!important;content:none!important}}

/* mobile hero photo: full width, square corners */
@media(max-width:700px){.ph::before{left:0!important;right:0!important;top:54px!important;height:292px!important;border-radius:0!important;box-shadow:none!important;background:linear-gradient(180deg,rgba(4,16,52,0) 55%,rgba(7,26,69,.9)),var(--himg) 66% 30%/auto 292px no-repeat!important}}

/* modules section: light blue + white version (laptop and mobile) */
#p-features{background:radial-gradient(55% 55% at 8% 0%,rgba(125,211,252,.45),transparent 70%),radial-gradient(50% 55% at 100% 100%,rgba(165,180,252,.30),transparent 70%),linear-gradient(180deg,#f7fbff 0%,#e4f0ff 55%,#f3f8ff 100%)!important;border-color:rgba(29,78,216,.12)!important;box-shadow:0 24px 60px -24px rgba(29,78,216,.28)!important}
#p-features::before{background-image:linear-gradient(rgba(29,78,216,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(29,78,216,.06) 1px,transparent 1px)!important}
#p-features h2{color:#0b2a6b!important}
#p-features h2::before{background:rgba(29,78,216,.08)!important;border:1px solid rgba(29,78,216,.2)!important;color:#1d4ed8!important}
#p-features .mkc>h3{background:linear-gradient(90deg,#0b2a6b,#1d4ed8 55%,#0ea5e9)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important}
#p-features .mkw.nph .mkc>p{color:#4b5d80!important}
#p-features .mkw.nph .mkl{background:linear-gradient(160deg,#ffffff,#f3f8ff)!important;border:1px solid rgba(29,78,216,.14)!important;border-top:3px solid var(--a1)!important;color:#0b2a6b!important;box-shadow:0 12px 26px -10px rgba(29,78,216,.22),0 2px 6px rgba(11,42,107,.05)!important}
#p-features .mkw.nph .mkl b,#p-features .mkl b{color:#0b2a6b!important}
#p-features .mkl small,#p-features .mkw.nph .mkl small{color:#4b5d80!important;-webkit-text-fill-color:#4b5d80!important}
#p-features .mkl .mn{color:#9fb4d6!important}
#p-features .mkl .ar{background:rgba(29,78,216,.1)!important;color:#1d4ed8!important}
@media(min-width:701px){#p-features .mkw.nph .mkl:hover{box-shadow:0 18px 34px -10px rgba(29,78,216,.32),0 2px 6px rgba(11,42,107,.06)!important}}

#p-features .mkw.nph .mkl::after{display:none!important}

/* module pages: "More modules" gets the same light-blue section + tile style as the home page modules section */
.mpm{position:relative;isolation:isolate;overflow:hidden;margin-top:30px!important;padding:42px 34px 46px!important;border-radius:32px;border:1px solid rgba(29,78,216,.12);background:radial-gradient(55% 55% at 8% 0%,rgba(125,211,252,.45),transparent 70%),radial-gradient(50% 55% at 100% 100%,rgba(165,180,252,.30),transparent 70%),linear-gradient(180deg,#f7fbff 0%,#e4f0ff 55%,#f3f8ff 100%);box-shadow:0 24px 60px -24px rgba(0,0,0,.45)}
.mpm::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(rgba(29,78,216,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(29,78,216,.06) 1px,transparent 1px);background-size:44px 44px;-webkit-mask-image:radial-gradient(ellipse at 50% 25%,#000 25%,transparent 75%);mask-image:radial-gradient(ellipse at 50% 25%,#000 25%,transparent 75%)}
.mpm h4{color:#0b2a6b!important;font-family:Inter,system-ui,sans-serif;font-size:27px!important;font-weight:700;text-align:center;margin:0 0 24px!important;-webkit-text-fill-color:#0b2a6b}
.mpm h4::before{content:"ESMOS MODULES";display:block;width:max-content;max-width:100%;margin:0 auto 14px;padding:7px 18px;border-radius:30px;background:rgba(29,78,216,.08);border:1px solid rgba(29,78,216,.2);color:#1d4ed8;font-size:11.5px;font-weight:700;letter-spacing:.16em;-webkit-text-fill-color:#1d4ed8}
.mpm .mkl{background:linear-gradient(160deg,#ffffff,#f3f8ff)!important;border:1px solid rgba(29,78,216,.14)!important;border-top:3px solid var(--a1)!important;color:#0b2a6b!important;box-shadow:0 12px 26px -10px rgba(29,78,216,.22),0 2px 6px rgba(11,42,107,.05)!important}
.mpm .mkl b{color:#0b2a6b!important;opacity:1!important}
.mpm .mkl small{color:#4b5d80!important;-webkit-text-fill-color:#4b5d80!important;opacity:1!important}
.mpm .mkl .mn{color:#9fb4d6!important}
.mpm .mkl .ar{background:rgba(29,78,216,.1)!important;color:#1d4ed8!important}
.mpm .mkl::after{display:none!important}
@media(max-width:700px){
.mpm{margin:18px -10px 0!important;padding:26px 12px 28px!important;border-radius:26px}
.mpm h4{text-align:left;font-size:22px!important;line-height:1.25;margin:0 0 16px!important;letter-spacing:-.2px}
.mpm h4::before{margin:0 0 8px;padding:0;background:none;border:0;border-radius:0;font-size:11px;letter-spacing:.14em}
.mpm .mkls{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.mpm .mkl{flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important;text-align:center!important;padding:14px 6px 12px!important;border-radius:18px!important;min-height:112px;transform:none!important}
.mpm .mkl:hover,.mpm .mkl:active{transform:none!important}
.mpm .mkl:active{filter:brightness(.97)}
.mpm .mkl::before{display:none!important}
.mpm .mkl>span:nth-child(2)::before{display:none!important}
.mpm .mkl .ic2{width:46px!important;height:46px!important;border-radius:14px!important;animation:none!important;margin:0!important}
.mpm .mkl .ic2 svg{width:22px!important;height:22px!important}
.mpm .mkl>span:nth-child(2){display:block;min-width:0;width:100%;padding-right:0!important}
.mpm .mkl b{font-size:11.5px!important;line-height:1.25!important;font-weight:600;letter-spacing:0;display:block;overflow-wrap:anywhere}
.mpm .mkl small,.mpm .mkl .mn,.mpm .mkl .ar{display:none!important}
}
@media(max-width:340px){.mpm .mkls{gap:8px!important}.mpm .mkl b{font-size:10.5px!important}}
.ph .phd{display:flex;gap:8px;margin:20px 0 0;align-items:center}
.ph .phd button{width:9px;height:9px;padding:0;border:0;border-radius:9px;background:rgba(255,255,255,.4);cursor:pointer;transition:.35s}
.ph .phd button.on{width:26px;background:#fff}
.ph.phsw{animation:phsw .75s ease both}
@keyframes phsw{0%{filter:none}45%{filter:brightness(.2)}100%{filter:none}}
@media(max-width:700px){.ph .phd{margin:16px 0 0;justify-content:center}.pn .bt{height:30px!important;min-height:0!important;width:auto!important;min-width:0!important;padding:0 13px!important;font-size:12px!important;line-height:1!important;border-radius:999px!important}.pn .ov{gap:8px}}
.ph.lt h1{color:#0b2a6b!important;text-shadow:none!important}
.ph.lt h1 .hl{background:linear-gradient(90deg,#1d4ed8,#0ea5e9)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:transparent!important}
.ph.lt p{color:#3a4e78!important;text-shadow:none!important}
.ph.lt .phb .bt.o{color:#1d4ed8!important;border:1.5px solid #1d4ed8!important;background:rgba(255,255,255,.88)!important;-webkit-backdrop-filter:none;backdrop-filter:none}
.ph.lt .phb a.bt.o:nth-child(2)::after{color:#1d4ed8!important}
.ph.lt .phb a.bt.o:nth-child(3)::before{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E") center/20px no-repeat!important}
.ph.lt .phb a.bt.o:nth-child(2)::before{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='translate(3 3) scale(.75)' fill='%2325D366' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E") center/20px no-repeat!important}
.ph.lt .phd button{background:rgba(11,42,107,.25)}.ph.lt .phd button.on{background:#1d4ed8}
@media(min-width:701px){.ph.lt{background-color:#fff!important;background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.92) 36%,rgba(255,255,255,.4) 64%,rgba(255,255,255,0) 100%),var(--himg)!important;background-size:cover,auto max(100%,calc(56.25vw + 90px))!important;background-position:center,left center!important}}
@media(max-width:700px){.ph.lt{background:linear-gradient(180deg,#e8f1ff,#fff 60%)!important}.ph.lt::before{background:var(--himg) 66% 30%/auto 292px no-repeat!important;box-shadow:0 12px 24px -12px rgba(11,42,107,.4)!important}}
@media(max-width:700px){.ph::before{left:0!important;right:0!important;top:54px!important;height:292px!important;border:0!important;outline:0!important;border-radius:0!important;background:linear-gradient(180deg,rgba(4,16,52,0) 55%,rgba(7,26,69,.85)),var(--himg) 66% 30%/auto 292px no-repeat!important;box-shadow:none!important}.ph.lt::before{background:var(--himg) 66% 30%/auto 292px no-repeat!important;box-shadow:0 12px 24px -12px rgba(11,42,107,.4)!important}}
@media(prefers-reduced-motion:reduce){.ph.phsw{animation:none}}

/* hero slide 1: full 3-flag banner with a light blue gradient instead of the dark navy one */
@media(min-width:701px){.ph.lt.fl{background-color:#dbeafe!important;background-image:linear-gradient(90deg,rgba(219,234,254,.95) 0%,rgba(219,234,254,.72) 26%,rgba(219,234,254,0) 44%),var(--himg),linear-gradient(180deg,#cfe3ff 0%,#e4efff 55%,#f1f7ff 100%)!important;background-size:100% 100%,min(66vw,1200px) auto,100% 100%!important;background-position:0 0,right bottom,0 0!important;background-repeat:no-repeat!important}}
@media(min-width:701px) and (max-width:1000px){.ph.lt.fl{background-size:100% 100%,92vw auto,100% 100%!important}}
@media(max-width:700px){.ph.lt.fl{background:linear-gradient(180deg,#cfe3ff,#eef5ff 62%)!important}.ph.lt.fl::before{background:var(--himg) center bottom/cover no-repeat!important;box-shadow:none!important}}

/* laptop readability: narrower text column, smaller title, banner sized to the hero so text never touches the flags */
@media(min-width:701px){
.ph.lt.fl{background-image:linear-gradient(90deg,rgba(219,234,254,.97) 0%,rgba(219,234,254,.86) 36%,rgba(219,234,254,0) 51%),var(--himg),linear-gradient(180deg,#cfe3ff 0%,#e4efff 55%,#f1f7ff 100%)!important;background-size:100% 100%,min(60vw,1200px,calc((100svh - 66px)*1.45)) auto,100% 100%!important}
.ph.fl h1{max-width:min(43vw,640px)!important;font-size:clamp(30px,3.7vw,56px)!important;line-height:1.12!important;letter-spacing:-.5px}
.ph.fl p{max-width:min(39vw,540px)!important}
}
@media(min-width:701px) and (max-width:1000px){.ph.lt.fl{background-size:100% 100%,88vw auto,100% 100%!important}.ph.fl h1{max-width:52vw!important}.ph.fl p{max-width:48vw!important}}

/* full-width banner background on laptop + smooth crossfade between hero slides */
@media(min-width:701px){.ph.lt.fl{background-image:linear-gradient(90deg,rgba(219,234,254,.96) 0%,rgba(219,234,254,.86) 30%,rgba(219,234,254,.5) 43%,rgba(219,234,254,0) 56%),var(--himg)!important;background-size:100% 100%,cover!important;background-position:0 0,right center!important;background-repeat:no-repeat!important}}
@media(max-width:700px){.ph.lt.fl::before{background:var(--himg) 78% center/cover no-repeat!important}}
.ph{isolation:isolate}
.ph.phr h1,.ph.phr p,.ph.phr .phb{animation:none!important;transition:opacity .65s ease .3s,transform .65s ease .3s}
.ph.phout h1,.ph.phout p,.ph.phout .phb{opacity:0!important;transform:translateY(12px)!important;transition:opacity .28s ease,transform .28s ease!important}
.ph.phx::after{display:none!important}
.ph.phx h1,.ph.phx p,.ph.phx .phb,.ph.phx .phd{display:none!important}

@media(min-width:701px){.ph.lt.fl{background-position:0 0,calc(100% + 8vw) center!important}.ph.lt.fl::before{animation:none!important;transform:none!important}}

@media(min-width:701px){.ph.fl h1{font-size:clamp(28px,3.4vw,54px)!important;max-width:min(40vw,640px)!important}.ph.fl p{max-width:min(35vw,520px)!important}}

/* hide the left edge of the shifted banner: solid light blue under the text side, then fade into the picture */
@media(min-width:701px){.ph.lt.fl{background-image:linear-gradient(90deg,#dbeafe 0%,#dbeafe 12%,rgba(219,234,254,.9) 24%,rgba(219,234,254,.72) 36%,rgba(219,234,254,.38) 46%,rgba(219,234,254,0) 58%),var(--himg)!important}}

/* smaller laptop windows: push the banner further right so the flags stay clear of the text */
@media(min-width:701px) and (max-width:1250px){.ph.lt.fl{background-position:0 0,calc(100% + 14vw) center!important;background-image:linear-gradient(90deg,#dbeafe 0%,#dbeafe 17%,rgba(219,234,254,.88) 28%,rgba(219,234,254,.6) 39%,rgba(219,234,254,.2) 51%,rgba(219,234,254,0) 60%),var(--himg)!important}}

@media(min-width:701px) and (max-width:1250px){.ph.fl h1{font-size:clamp(26px,3.1vw,40px)!important;max-width:36vw!important}.ph.fl p{max-width:31vw!important;font-size:clamp(13.5px,1.45vw,17px)!important}.ph.fl .phb .bt{padding:12px 18px!important;font-size:14px!important}}

/* mobile hero buttons: plain text buttons like the app, no icons */
@media(max-width:700px){.ph .phb .bt:first-child::after,.ph.lt .phb .bt:first-child::after{display:none!important;content:none!important}.ph .phb a.bt.o::before,.ph.lt .phb a.bt.o::before{display:none!important;content:none!important;margin:0!important}.ph .phb a.bt.o:nth-child(2){gap:0!important}}

/* removed pill labels above section headings: plain headings only */
#p-features h2::before,.mpm h4::before{content:none!important;display:none!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}

/* footer: banner removed */
.ftx{padding-top:54px!important}
/* app-style "Ready to run your school smarter?" section */
.capp{position:relative;overflow:hidden;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:24px;padding:54px 56px;border-radius:32px;color:#fff;text-align:left;background:radial-gradient(circle at 85% 20%,rgba(125,211,252,.38),transparent 42%),radial-gradient(circle at 0 100%,rgba(56,189,248,.25),transparent 45%),linear-gradient(135deg,#0a1f4d,#1d4ed8 62%,#2f9bf0);box-shadow:0 28px 60px rgba(29,78,216,.35)}
.capp::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.14) 1px,transparent 1.2px);background-size:22px 22px;-webkit-mask-image:linear-gradient(90deg,#000,transparent 70%);mask-image:linear-gradient(90deg,#000,transparent 70%);pointer-events:none}
.capp>*{position:relative}
.capp h2{margin:0 0 12px;font-size:clamp(28px,3.4vw,42px);line-height:1.12;color:#fff;text-align:left}
.capp h2::after{display:none!important}
.capp p{margin:0 0 26px;font-size:16px;opacity:.92;max-width:440px;line-height:1.55;color:#fff}
.capp .bt{display:inline-flex;align-items:center;gap:10px;background:#fff;color:#1d4ed8;padding:14px 26px;border-radius:16px;font-weight:600;box-shadow:0 10px 24px rgba(3,12,40,.3);transition:.2s}
.capp .bt:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(3,12,40,.38)}
.capp .bt svg{width:20px;height:20px;fill:none;stroke:#16a34a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cpi{display:none!important}
.ti{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11.5px;font-weight:500;color:#dbeafe}
.tic{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(255,255,255,.28),rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.3);box-shadow:0 8px 18px rgba(3,12,40,.25)}
.tic svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cpr{position:relative;display:flex;justify-content:center;align-self:end;margin-bottom:-90px}
.cph{width:236px;border-radius:36px;padding:9px;background:linear-gradient(160deg,#16306e,#07153b);box-shadow:0 30px 60px rgba(3,12,40,.55),inset 0 0 0 1.5px rgba(255,255,255,.22);transform:rotate(4deg)}
.cps{border-radius:28px;background:#f3f7ff;padding:12px 13px 0;height:430px;overflow:hidden;color:#0b2a6b;text-align:left}
.cpn{width:70px;height:18px;border-radius:12px;background:#07153b;margin:0 auto 10px}
.cpt{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.cpt b{font-size:13px;color:#0b2a6b}.cpt small{font-size:10px;color:#64748b;display:block}
.cpa{width:28px;height:28px;border-radius:10px;background:linear-gradient(135deg,#16a34a,#22c55e)}
.cpg{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.cpc{background:#fff;border-radius:14px;padding:10px;box-shadow:0 4px 12px rgba(29,78,216,.1)}
.cpc small{font-size:9.5px;color:#64748b;display:block}.cpc b{font-size:19px;display:block;margin-top:2px}
.cpc.g b{color:#16a34a}.cpc.bl b{color:#1d4ed8}
.cpch{background:#fff;border-radius:14px;padding:10px;display:flex;align-items:flex-end;gap:7px;height:86px;margin-bottom:10px;box-shadow:0 4px 12px rgba(29,78,216,.1)}
.cpch span{flex:1;border-radius:6px 6px 3px 3px;background:linear-gradient(180deg,#38bdf8,#1d4ed8)}
.cpw{display:flex;align-items:center;gap:8px;background:#fff;border-radius:12px;padding:8px 10px;margin-bottom:7px;font-size:10.5px;font-weight:600;color:#0b2a6b;box-shadow:0 4px 12px rgba(29,78,216,.08)}
.cpw::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--d,#16a34a)}
.cfl{position:absolute;z-index:2;display:flex;align-items:center;gap:8px;padding:9px 13px;border-radius:14px;background:rgba(255,255,255,.96);color:#0b2a6b;font-size:11.5px;font-weight:600;box-shadow:0 14px 30px rgba(3,12,40,.35);animation:cfl 5s ease-in-out infinite}
.cfl::before{content:"\2713";display:grid;place-items:center;width:22px;height:22px;border-radius:8px;background:#22c55e;color:#fff;font-size:12px}
.cfl.f1{left:2%;top:70px}.cfl.f2{right:0;top:235px;animation-delay:-2.5s}
@keyframes cfl{50%{transform:translateY(-8px)}}
.cph{transform:none!important}
@media(min-width:821px){.capw{max-width:none;width:100%;padding:0;margin:34px 0}.capp{border-radius:0;box-shadow:none;padding-left:max(4vw,calc(50% - 560px));padding-right:max(4vw,calc(50% - 560px))}.cfl.f1{left:0;top:110px}.cfl.f2{right:0;top:250px}}
@media(prefers-reduced-motion:reduce){.cfl{animation:none}}
@media(max-width:820px){.capp{grid-template-columns:1fr;padding:34px 22px 0;gap:10px;border-radius:26px}.capp .bt{width:100%;justify-content:center}.cpi{justify-content:space-between;gap:8px}.cpr{margin:14px 0 -80px}.cph{width:220px;transform:none}.cps{height:360px}.cfl{font-size:11px;padding:7px 11px}.cfl.f1{left:0;top:6px}.cfl.f2{right:0;top:50px}.cpr{padding-top:96px}.capp .bt{text-align:center;padding:14px 16px;font-size:15px}.cps{padding-top:14px}}

/* accurate WhatsApp logo everywhere */
.capp .bt svg{width:26px!important;height:26px!important}
.fso a.fwa{background:none;border:0;border-radius:12px}
.fso a.fwa svg{width:42px;height:42px}
.fso a.fwa:hover{background:none;box-shadow:0 10px 22px rgba(28,215,64,.45)}
.ic2:has(use[href="#i-wai"]){background:none!important;box-shadow:none!important}
.ic2:has(use[href="#i-wai"]) svg{width:100%!important;height:100%!important}
.wab{background:#25D366}.wab .i{width:20px;height:20px}

.ic2:has(use[href="#i-wai"]),.mkl .ic2:has(use[href="#i-wai"]),.nph .mkl .ic2:has(use[href="#i-wai"]),.mkw .ic2:has(use[href="#i-wai"]),#p-features .mkw.nph .mkl .ic2:has(use[href="#i-wai"]),#p-features .mkl .ic2:has(use[href="#i-wai"]){background:none!important;box-shadow:none!important}
.ic2:has(use[href="#i-wai"]) svg,.mkl .ic2:has(use[href="#i-wai"]) svg,.nph .mkl .ic2:has(use[href="#i-wai"]) svg,.mkw .ic2:has(use[href="#i-wai"]) svg,#p-features .mkw.nph .mkl .ic2:has(use[href="#i-wai"]) svg,#p-features .mkl .ic2:has(use[href="#i-wai"]) svg{width:100%!important;height:100%!important}

.ph .phb a.bt.o:nth-child(2)::before,.ph.lt.fl .phb a.bt.o:nth-child(2)::before{content:""!important;display:inline-block!important;flex:none!important;width:22px!important;height:22px!important;margin:0 8px 0 0!important;vertical-align:middle;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='translate(3 3) scale(.75)' fill='%2325D366' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E") center/22px no-repeat!important;position:static!important;transform:none!important}
.ph .phb a.bt.o:nth-child(2){display:inline-flex!important;align-items:center;justify-content:center}

/* software (admin/employee/parent/student): stat cards compact like an app, all visible together on phones */
@media(max-width:820px){
.g4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-bottom:12px!important}
.g4 .card.st{display:grid!important;grid-template-columns:32px minmax(0,1fr);align-items:center;column-gap:9px!important;padding:10px!important;border-radius:14px!important}
.g4 .st .ic2{width:32px!important;height:32px!important;margin:0!important;border-radius:10px!important;transform:none!important}
.g4 .st .ic2 svg{width:16px!important;height:16px!important}
.g4 .st>div:last-child{min-width:0}
.g4 .st .l{font-size:10.5px!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g4 .st .n{font-size:18px!important;line-height:1.15!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g4 .st .s{font-size:9.5px!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* ESMOS Admin (owner console): app-style mobile layout. Desktop is untouched. */
.sl,.bn{display:none}.ct{display:inline-block;margin-left:6px;padding:1px 9px;border-radius:20px;background:rgba(29,78,216,.12);color:var(--b);font-size:12px;font-weight:600;vertical-align:2px}
@media(max-width:820px){
#pl:has(.ow){background:#eef3fb}
.pn.ob{flex-wrap:nowrap;gap:10px;padding:10px 18px;background:rgba(255,255,255,.9);box-shadow:0 1px 0 var(--ln)}
.pn.ob .lgo img{height:28px}
.pn.ob>.mu{margin:0;padding:3px 11px;border-radius:20px;background:rgba(29,78,216,.1);color:var(--b);font-weight:600;font-size:12px}
.pn.ob nav{margin-left:auto;gap:8px}.pn.ob nav a{display:none}
.pn.ob nav .bt{padding:8px 16px;font-size:13px;border-radius:20px}
.pw.ow{padding:18px 16px calc(104px + env(safe-area-inset-bottom,0px))}
.ow .ot{display:none!important}
/* stats: one hero number, three supporting tiles */
.ow .g4{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;margin-bottom:22px!important}
.ow .g4 .card.st{grid-column:span 2;display:block!important;padding:13px 12px!important;border:0!important;border-radius:18px!important;box-shadow:0 6px 18px rgba(30,58,138,.08)!important}
.ow .g4 .st .ic2{width:30px!important;height:30px!important;margin:0 0 10px!important;border-radius:10px!important}
.ow .g4 .st .l{font-size:11px!important;white-space:normal!important}
.ow .g4 .st .n{font-size:16px!important;font-weight:700;margin:2px 0 3px;overflow:visible!important;text-overflow:clip!important}
.ow .g4 .st .s{font-size:10.5px!important;white-space:normal!important;line-height:1.3}
.ow .g4 .card.st:first-child{grid-column:1/-1;display:grid!important;grid-template-columns:44px minmax(0,1fr);column-gap:14px!important;align-items:center;padding:20px 18px!important;color:#fff;background:linear-gradient(135deg,#1d4ed8,#0b2a6b)!important;box-shadow:0 14px 28px rgba(29,78,216,.3)!important}
.ow .g4 .card.st:first-child .ic2{width:44px!important;height:44px!important;margin:0!important;border-radius:14px!important;background:rgba(255,255,255,.18);color:#fff}
.ow .g4 .card.st:first-child .ic2 svg{width:22px!important;height:22px!important}
.ow .g4 .card.st:first-child .l,.ow .g4 .card.st:first-child .s{color:rgba(255,255,255,.78)}
.ow .g4 .card.st:first-child .n{font-size:30px!important;letter-spacing:-.01em}
/* section headings and toolbars */
.ow .card{border:0;border-radius:20px;box-shadow:0 6px 18px rgba(30,58,138,.08)}
.ow .card.scw{background:none;box-shadow:none;padding:0}
.ow .tb{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:14px}
.ow .tb h3{font-size:19px}
.oact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;overflow:visible}
.ow .oact .bt{margin:0;min-height:50px;padding:12px 10px;border-radius:16px;font-size:13px;font-weight:600;line-height:1.2;text-align:center;justify-content:center;white-space:normal}.ow .oact .bt:first-child{grid-column:1/-1;min-height:54px;font-size:15px;border-radius:18px;box-shadow:0 10px 22px rgba(29,78,216,.3)}.ow .oact .bt:active{transform:scale(.97)}
.ow .oact .bt.o{background:#fff;color:var(--tx);border:0;box-shadow:0 2px 8px rgba(30,58,138,.1)}
/* school cards replace the wide table */
.ow .scw .tw{display:none}
.ow .sl{display:grid;gap:14px}
.sc{background:#fff;border-radius:22px;padding:16px;box-shadow:0 8px 22px rgba(30,58,138,.09)}
.sh{display:flex;gap:12px;align-items:center}
.av{width:44px;height:44px;border-radius:14px;flex:none;display:grid;place-items:center;font-weight:700;font-size:18px;color:var(--b);background:rgba(29,78,216,.12)}
.si{flex:1;min-width:0}.si b{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:16px}.si .mu{margin:3px 0 0}
.sg{display:grid;grid-template-columns:.8fr 1fr 1.2fr;gap:10px;margin:14px 0 12px;padding:12px;border-radius:16px;background:var(--bg)}
.sg span{display:block;white-space:nowrap;font-size:11px;color:var(--mu);margin-bottom:2px}.sg b{font-size:13px;white-space:nowrap}.sg small{display:block;font-size:10.5px;color:var(--mu);margin-top:1px}
.sk{font-size:12.5px;color:var(--mu);margin:0 2px 12px;overflow-wrap:anywhere}
.sa1{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sa1 .bt{justify-content:center;margin:0;padding:12px;font-size:14px;border-radius:14px}
.sa1 .bt.o{background:rgba(29,78,216,.08);border:0}
.sa2{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.sa2 .bt.sm{margin:0;padding:8px 14px;font-size:12.5px;font-weight:500;border-radius:20px;background:var(--bg);color:var(--tx);box-shadow:none}
.sa2 .bt.sm.dg{color:var(--r);background:rgba(225,29,72,.08)}
/* tables on other tabs become labelled rows */
.ow .cv table,.ow .cv thead,.ow .cv tbody,.ow .cv tr,.ow .cv td{display:block;min-width:0}
.ow .cv thead{display:none}
.ow .cv tr{margin-bottom:12px;padding:12px 14px;border-radius:16px;background:var(--bg)}
.ow .cv tbody tr:hover{background:var(--bg);transform:none}
.ow .cv td{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:5px 0;border:0;text-align:right}
.ow .cv td[data-l]::before{content:attr(data-l);color:var(--mu);font-size:12px;text-align:left}
.ow .cv td.ttl{font-weight:700;font-size:15px;text-align:left;padding-bottom:6px}
.ow .cv td.ac{justify-content:flex-end;flex-wrap:wrap}
.ow .cv td:empty{display:none}
/* floating tab bar */
.ow .bn{display:flex;position:fixed;left:8px;right:8px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:30;padding:6px 4px;gap:0;border-radius:26px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 12px 32px rgba(15,29,58,.2)}
.bn button{flex:1;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 2px 7px;border:0;border-radius:20px;background:none;color:var(--mu);font:600 10px Inter,system-ui,sans-serif;letter-spacing:-.01em;cursor:pointer}
.bn button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bn button.on{color:var(--b);background:rgba(29,78,216,.1)}
.bn .bd{position:absolute;top:3px;left:calc(50% + 6px);min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:var(--r);color:#fff;font:700 9.5px/16px Inter,sans-serif;font-style:normal;text-align:center}
}
@media(prefers-reduced-motion:no-preference){.bn button{transition:background .2s,color .2s}}

/* ESMOS school portal: app-style mobile layout (every school, admin/employee/parent/student). Desktop untouched. */
.abn{display:none}
@media(max-width:820px){
body{background:#eef3fc}
.app main{padding:0 14px calc(100px + env(safe-area-inset-bottom,0px))}
.app .top{position:sticky;top:0;z-index:25;margin:0 -14px 14px;padding:12px 14px;gap:12px;background:rgba(238,243,252,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.app .top h1{font-size:21px;line-height:1.15}.app .top p{font-size:12px;line-height:1.3}
.app .bg{width:42px;height:42px;display:grid;place-items:center;flex:none;padding:0;border-radius:14px;box-shadow:0 8px 18px rgba(29,78,216,.3)}
.app aside{border-radius:0 26px 26px 0;box-shadow:0 20px 50px rgba(0,0,0,.35);z-index:60;padding-top:20px}
.app .hero{display:block;border-radius:26px;padding:20px 18px;box-shadow:0 14px 28px rgba(29,78,216,.28)}
.app .hero h2{font-size:20px;line-height:1.25}.app .hero p{font-size:13px;margin-top:4px}
.app .hero>div:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px}
.app .hero .bt{margin:0;padding:12px 4px;font-size:12px;font-weight:600;line-height:1.2;text-align:center;justify-content:center;border-radius:14px;background:rgba(255,255,255,.96)}
.app .card{border:0;border-radius:22px;padding:16px;box-shadow:0 6px 18px rgba(30,58,138,.08)}
.app .card:hover{transform:none;box-shadow:0 6px 18px rgba(30,58,138,.08)}
.app .g4 .card.st{border-radius:18px!important;padding:12px!important}
.app .two{grid-template-columns:minmax(0,1fr)!important;gap:14px}
.app main>#v>.card{margin-bottom:14px}
.app input,.app select,.app textarea{font-size:16px;border-radius:14px}
.app .bt{border-radius:14px}
.abn{display:flex;position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:50;padding:6px 4px;border-radius:26px;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 12px 32px rgba(15,29,58,.22)}
.abn a,.abn button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 2px 7px;border:0;border-radius:20px;background:none;color:var(--mu);font:600 10px/1.1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-decoration:none;cursor:pointer}
.abn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.abn .on{color:var(--b);background:rgba(29,78,216,.1)}
.abn span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* clearer, sharper background image on sign-in screens */
.lgp::before,#pl:has(.lf)::before{
position:fixed;inset:0;
opacity:1;
-webkit-mask-image:none;mask-image:none;
background:linear-gradient(180deg,rgba(255,255,255,.78) 0%,rgba(255,255,255,.35) 38%,rgba(255,255,255,0) 70%),var(--schoolimg) center 40%/cover no-repeat;
image-rendering:auto;
}
.lgp::before{z-index:-1}
@media(max-width:700px){
.lgp::before,#pl:has(.lf)::before{background-position:center,56% 40%}
}
.lgs{color:#2a3d68;font-weight:500;text-shadow:0 1px 8px rgba(255,255,255,.9)}
.lgp h1{text-shadow:0 1px 10px rgba(255,255,255,.85)}

/* light mode only: stop phone/browser forced dark mode */
:root{color-scheme:only light}
html,body{color-scheme:only light}

/* ===== Class-wise attendance chart (animated) ===== */
@property --n{syntax:'<integer>';inherits:false;initial-value:0}
@keyframes acn{from{--n:0}}
@keyframes acg{from{height:0}}
@keyframes acv{from{bottom:6px;opacity:0}}
@keyframes acs{from{background-position:160% 0}to{background-position:-60% 0}}
@keyframes acw{from{transform:scaleX(0)}}
@keyframes acf{from{opacity:0;transform:translateY(10px)}}
.cnt{counter-reset:n var(--n);animation:acn 1.3s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0)*.08s)}
.cnt::after{content:counter(n)}.cnt.pc::after{content:counter(n) "%"}
.ac{display:flex;flex-direction:column;gap:14px}
.ac-ch{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ac-c{padding:10px 12px;border-radius:14px;background:linear-gradient(135deg,rgba(29,78,216,.09),rgba(29,78,216,.02));border:1px solid var(--ln);animation:acf .6s ease both}
.ac-c:nth-child(2){animation-delay:.1s;background:linear-gradient(135deg,rgba(16,185,129,.14),rgba(16,185,129,.02))}
.ac-c:nth-child(3){animation-delay:.2s;background:linear-gradient(135deg,rgba(225,29,72,.13),rgba(225,29,72,.02))}
.ac-c i{display:block;font-style:normal;font-size:11px;color:var(--mu);margin-bottom:3px}
.ac-c b{font-size:18px;font-weight:700;color:var(--tx);display:block;line-height:1.2}
.ac-c b u{text-decoration:none;font-size:13px;opacity:.85}
.ac-sc{overflow-x:auto;padding-top:26px;margin-top:-8px}
.ac-w{padding-left:30px}
.ac-area{position:relative;height:200px}
.ac-y span{position:absolute;left:-30px;width:24px;text-align:right;font-size:10px;color:var(--mu);transform:translateY(50%)}
.ac-gl s{position:absolute;left:0;right:0;border-top:1.5px dashed var(--ln);height:0}
.ac-avg{position:absolute;left:0;right:0;border-top:2px dashed #f59e0b;height:0;z-index:3;transform-origin:left;animation:acw 1.2s ease .5s both;pointer-events:none}
.ac-avg em{position:absolute;right:0;top:-22px;font-style:normal;font-size:10.5px;font-weight:700;color:#92400e;background:#fef3c7;border:1px solid #fcd34d;padding:2px 8px;border-radius:99px}
.ac-bars{position:absolute;inset:0;display:flex;z-index:2}
.ac-col{flex:1;position:relative;height:100%;outline:none}
.ac-bar{position:absolute;bottom:0;left:50%;width:min(64%,52px);margin-left:calc(min(64%,52px)/-2);height:var(--h);border-radius:14px 14px 4px 4px;overflow:hidden;animation:acg 1.1s cubic-bezier(.2,.9,.2,1) both;animation-delay:calc(var(--i)*.08s);transition:transform .25s,filter .25s,box-shadow .25s}
.ac-bar span{position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.4) 50%,transparent 70%);background-size:250% 100%;animation:acs 3.4s ease-in-out infinite;animation-delay:calc(var(--i)*.25s)}
.ac-bar::before{content:"";position:absolute;left:12%;top:8%;bottom:8%;width:14%;border-radius:99px;background:rgba(255,255,255,.28)}
.ac-col.g .ac-bar{background:linear-gradient(180deg,#34d399,#047857);box-shadow:0 8px 18px rgba(5,150,105,.32)}
.ac-col.a .ac-bar{background:linear-gradient(180deg,#fbbf24,#b45309);box-shadow:0 8px 18px rgba(217,119,6,.3)}
.ac-col.r .ac-bar{background:linear-gradient(180deg,#fb4a68,#be123c);box-shadow:0 8px 18px rgba(225,29,72,.32)}
.ac-val{position:absolute;left:0;right:0;bottom:calc(var(--h) + 6px);text-align:center;font-weight:800;font-size:15px;color:var(--tx);animation:acv 1.1s cubic-bezier(.2,.9,.2,1) both,acn 1.3s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i)*.08s);transition:transform .25s}
.ac-col:hover .ac-bar,.ac-col:focus .ac-bar{transform:translateY(-5px) scaleX(1.06);filter:brightness(1.12) saturate(1.1)}
.ac-col:hover .ac-val,.ac-col:focus .ac-val{transform:translateY(-5px)}
.ac-tip{position:absolute;left:50%;bottom:calc(var(--h) + 34px);transform:translate(-50%,6px);background:var(--tx);color:#fff;font-size:11px;font-weight:600;padding:5px 10px;border-radius:8px;white-space:nowrap;opacity:0;pointer-events:none;transition:.2s;z-index:5}
.ac-col:hover .ac-tip,.ac-col:focus .ac-tip{opacity:1;transform:translate(-50%,0)}
.ac-lbs{display:flex;margin-top:8px}
.ac-lbs span{flex:1;text-align:center;font-size:12px;font-weight:600;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 2px}
.ac-lg{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:11px;color:var(--mu)}
.ac-lg i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px;vertical-align:-1px}
.ac-lg i.g{background:#10b981}.ac-lg i.a{background:#f59e0b}.ac-lg i.r{background:#e11d48}
@media(max-width:600px){.ac-ch{grid-template-columns:1fr 1fr}.ac-c:first-child{grid-column:1/-1}.ac-val{font-size:13px}}
@media(prefers-reduced-motion:reduce){.ac *,.ac-c,.cnt{animation:none!important}}

/* ===== Revenue chart extras ===== */
.cnt.k::after{content:counter(n) "K"}
.cnt.rk::after{content:"Rs " counter(n) "K"}.cnt.rk.ng::after{content:"-Rs " counter(n) "K"}
.ac-c.cg{background:linear-gradient(135deg,rgba(16,185,129,.16),rgba(16,185,129,.02))}
.ac-c.cr{background:linear-gradient(135deg,rgba(225,29,72,.14),rgba(225,29,72,.02))}
.ac-c.cb2{background:linear-gradient(135deg,rgba(37,99,235,.15),rgba(37,99,235,.02))}
.ac-col.b .ac-bar{background:linear-gradient(180deg,#60a5fa,#1e3a8a);box-shadow:0 8px 18px rgba(37,99,235,.32)}
.ac-lg i.b{background:#2563eb}
.ac.mc .ac-w{padding-left:42px}.ac.mc .ac-y span{left:-42px;width:36px}
.ac-pr{padding:12px 14px;border-radius:14px;border:1px solid var(--ln);background:linear-gradient(135deg,rgba(16,185,129,.08),rgba(255,255,255,0));animation:acf .6s ease .3s both}
.ac-ph{display:flex;justify-content:space-between;font-size:12px;color:var(--mu);margin-bottom:8px}.ac-ph b{color:var(--tx);font-size:13px}
.ac-pt{height:10px;border-radius:99px;background:var(--ln);overflow:hidden}
.ac-pt i{display:block;height:100%;width:var(--w);border-radius:99px;background:linear-gradient(90deg,#34d399,#059669,#34d399);background-size:200% 100%;animation:acp 1.4s cubic-bezier(.2,.9,.2,1) .4s both,acm 2.6s linear infinite}
@keyframes acp{from{width:0}}@keyframes acm{from{background-position:200% 0}to{background-position:0 0}}
@media(prefers-reduced-motion:reduce){.ac-pt i{animation:none!important}}

/* WhatsApp: glyph only (no green tile) */
.fso a.fwa svg{width:32px!important;height:32px!important}
.capp .bt svg{width:22px!important;height:22px!important}
.ic2:has(use[href="#i-wai"]) svg{padding:14%}
.wab .i{width:16px!important;height:16px!important}.wab svg path{fill:#fff!important}

/* ===== Finance-dashboard look (violet) ===== */
:root{--kv:#2563eb;--kl:#93c5fd;--ki:#151528}
.kp{padding:16px 18px!important;border-radius:20px!important;display:flex!important;flex-direction:column;gap:12px;box-shadow:0 2px 10px rgba(60,50,140,.05)!important}
.kp:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(80,60,200,.12)!important}
.kp-h{display:flex;justify-content:space-between;align-items:center}.kp-l{font-size:13.5px;font-weight:600;color:#3b3b55}
.kp-a{width:32px;height:32px;border:1px solid var(--ln);border-radius:10px;display:grid;place-items:center;color:#3b3b55;transition:.25s;flex:none}
.kp:hover .kp-a{background:var(--kv);border-color:var(--kv);color:#fff}
.kp-a svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.kp-n{font-size:27px;font-weight:700;color:var(--ki);line-height:1.1;letter-spacing:-.01em}.kp-n small{font-size:15px;font-weight:600;margin-right:3px}.kp-n em{font-style:normal;color:#b9b9cc}
.kp-b{align-self:flex-start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:600;padding:4px 10px;border-radius:99px;background:#e6f0ff;color:#1d4ed8;box-shadow:none}
.kp-b.c-g{background:#e6f7ee;color:#15803d}.kp-b.c-r{background:#fdeaee;color:#be123c}.kp-b.c-b{background:#e6f0ff;color:#1d4ed8}
@media(max-width:820px){.kp{padding:12px 13px!important;gap:8px}.kp-n{font-size:20px}.kp-l{font-size:12px}.kp-a{width:26px;height:26px;border-radius:8px}.kp-b{font-size:10px;padding:3px 8px}.ow .g4 .kp{grid-column:span 2}.ow .g4 .kp:first-child{grid-column:1/-1}}
.ac-bar span,.ac-bar::before{display:none}
.ac-bar{border-radius:11px 11px 4px 4px;box-shadow:none!important;width:min(56%,34px)!important;margin-left:calc(min(56%,34px)/-2)!important}
.ac-col.g .ac-bar{background:var(--kv)!important}.ac-col.a .ac-bar{background:var(--kl)!important}.ac-col.r .ac-bar{background:#fb7185!important}
.mc .ac-col.r .ac-bar{background:var(--kl)!important}.mc .ac-col.b .ac-bar{background:#1d4ed8!important}.mc .ac-col.l .ac-bar{background:#fb7185!important}.mc .ac-col.a .ac-bar{background:#fcd34d!important}
.ac-col:hover .ac-bar,.ac-col:focus .ac-bar{filter:brightness(.92);transform:translateY(-4px)}
.ac-lg i.g{background:var(--kv)}.ac-lg i.a{background:var(--kl)}.ac-lg i.r{background:#fb7185}.mc .ac-lg i.r{background:var(--kl)}.mc .ac-lg i.b{background:#1d4ed8}.mc .ac-lg i.a{background:#fcd34d}
.ac-c,.ac-c.cg,.ac-c.cb2,.ac-c.cl,.ac-c:nth-child(n){background:#f7f6ff!important;border-color:#ebe8ff}.ac-c.cr{background:#fff1f3!important;border-color:#ffd9df}
.ac-tip{background:#fff!important;color:var(--ki)!important;border:1px solid #e3e0f5;box-shadow:0 8px 22px rgba(70,50,190,.16);padding:5px 11px!important;border-radius:10px!important}
.ac-tip::after{content:"";position:absolute;left:50%;bottom:-5px;width:8px;height:8px;background:#fff;border:solid #e3e0f5;border-width:0 1px 1px 0;transform:translateX(-50%) rotate(45deg)}
.ac-val{font-size:12px!important;color:#6b6b85!important}.ac-gl s{border-top:1.5px dashed #ebe9f7}.ac-y span,.ac-lbs span{color:#9a9ab0}
.ac-pt i{background:linear-gradient(90deg,#a99cff,#2563eb,#a99cff)!important;background-size:200% 100%}
.dn2{flex-direction:column;align-items:stretch;gap:12px}.dn2 svg{align-self:center}.dn2 ul{margin:0}
.dn2 li{display:flex;align-items:center;font-size:13.5px;color:#3b3b55;margin:8px 0}.dn2 li b{margin-left:auto;color:var(--ki)}.dn2 i{width:10px;height:10px;border-radius:50%}
.dn-n{font-size:7.5px;font-weight:700;fill:var(--ki)}.dn-s{font-size:2.8px;fill:#9a9ab0}.dn circle.bar:hover{stroke-width:5}
.dot:hover circle{stroke:#1d4ed8}svg .dv{fill:#1d4ed8}

/* ===== Revenue hero card ===== */
.rvh{position:relative;overflow:hidden;color:#fff;background:linear-gradient(135deg,#0a5568,#0c3b49)!important;border:0!important;border-radius:22px!important;padding:22px 26px!important;margin-bottom:18px!important;box-shadow:0 16px 34px rgba(8,70,88,.28)!important;animation:acf .6s ease both}
.rvh::before,.rvh::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.1);pointer-events:none}
.rvh::before{width:240px;height:240px;right:-50px;top:-110px}.rvh::after{width:120px;height:120px;right:26%;bottom:-70px;background:rgba(255,255,255,.12)}
.rvh>*{position:relative;z-index:1}.rvh-top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.rvh-l{font-size:13px;color:rgba(255,255,255,.82);margin-bottom:6px}.rvh-n{font-size:clamp(28px,5vw,44px);font-weight:800;letter-spacing:-.01em;line-height:1.1}
.rvh-p{background:rgba(255,255,255,.22);padding:10px 18px;border-radius:99px;font-weight:700;font-size:14px}.rvh-p.rvh-down{background:rgba(251,113,133,.38)}
.rvh-ft{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;font-size:12.5px;color:rgba(255,255,255,.82)}
.rvh-c{display:flex;gap:8px;flex-wrap:wrap}
.rvh-c select,.rvh-c input{width:auto!important;margin:0!important;background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.3)!important;border-radius:10px!important;padding:8px 10px!important;font:600 13px inherit;color-scheme:dark}
.rvh-c select option{color:#151528}
@media(max-width:820px){.rvh{padding:16px 16px!important;border-radius:18px!important}.rvh-p{padding:7px 13px;font-size:12px}.rvh-c{width:100%}.rvh-c select,.rvh-c input{flex:1;min-width:0}}

/* revenue card: match site blue theme, no animation */
.rvh{background:linear-gradient(120deg,var(--b),var(--b2) 60%,#38bdf8)!important;box-shadow:var(--sh)!important}
.rvh::before,.rvh::after{display:none!important}
.rvh-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:18px}
.rvh-t{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:14px;padding:10px 14px}
.rvh-t i{display:block;font-style:normal;font-size:12px;color:rgba(255,255,255,.85);margin-bottom:3px}
.rvh-t b{font-size:16px;font-weight:700}
.rvh-t.rvh-neg b{color:#fecdd3}
.rvh-c select,.rvh-c input{background:#fff!important;color:var(--b)!important;border:0!important;color-scheme:light}
.hero,.hero *,.rvh,.rvh *{animation:none!important;transition:none!important}

/* dashboard: clean, attractive, no animation */
.dsh,.dsh *{animation:none!important;transition:none!important}
.dsh .hero{background:linear-gradient(120deg,var(--b),var(--b2) 70%,#38bdf8)!important;background-size:100% 100%!important}
.dsh .g4{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))!important;gap:14px!important;margin-bottom:18px!important}
.dsh .kp{position:relative;overflow:hidden;gap:6px!important;padding:18px 20px 16px 24px!important;background:var(--cd);border:1px solid var(--ln)!important;border-radius:18px!important;box-shadow:0 4px 14px rgba(30,58,138,.06)!important}
.dsh .kp::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--b)}
.dsh .kp:nth-child(2)::before{background:#0ea5e9}
.dsh .kp:nth-child(3)::before{background:#16a34a}
.dsh .kp:nth-child(4)::before{background:#f59e0b}
.dsh .kp:hover{transform:none!important;box-shadow:0 4px 14px rgba(30,58,138,.06)!important}
.dsh .kp-a{display:none!important}
.dsh .kp-l{font-size:13px;font-weight:600;color:var(--mu)}
.dsh .kp-n{font-size:30px;font-weight:800;line-height:1.1;color:var(--tx)}
.dsh .kp-n small{font-size:14px;margin-right:4px;color:var(--mu)}
.dsh .kp-n em{font-size:14px;font-style:normal;color:var(--mu)}
.dsh .two{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))!important;gap:14px!important;margin-bottom:0!important}
.dsh .two .card{padding:20px!important;border:1px solid var(--ln)!important;border-radius:18px!important;box-shadow:0 4px 14px rgba(30,58,138,.06)!important}
.dsh .two h3{font-size:15px;margin-bottom:12px}

/* ===== ESMOS polish: home marquee ===== */
.mqz{position:relative;overflow:hidden;padding:16px 0;background:linear-gradient(180deg,#fff,#f4f8ff);border-top:1px solid var(--ln);border-bottom:1px solid var(--ln)}
.mqz::before,.mqz::after{content:"";position:absolute;top:0;bottom:0;width:90px;z-index:2;pointer-events:none}
.mqz::before{left:0;background:linear-gradient(90deg,#f4f8ff,rgba(244,248,255,0))}
.mqz::after{right:0;background:linear-gradient(270deg,#f4f8ff,rgba(244,248,255,0))}
.mqr{display:flex;overflow:hidden;padding:7px 0}
.mqt{display:flex;flex:none;gap:14px;padding-right:14px;animation:mqL 42s linear infinite;will-change:transform}
.mqr.rev .mqt{animation-name:mqR;animation-duration:52s}
.mqz:hover .mqt{animation-play-state:paused}
@keyframes mqL{to{transform:translateX(-100%)}}
@keyframes mqR{from{transform:translateX(-100%)}to{transform:translateX(0)}}
.mqi{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;padding:9px 20px 9px 10px;border-radius:999px;background:#fff;border:1px solid var(--ln);box-shadow:0 3px 10px rgba(30,58,138,.07);font-weight:600;font-size:14px;color:var(--tx);cursor:default;transition:transform .3s,box-shadow .3s,background .3s,color .3s,border-color .3s}
.mqc{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#60a5fa,#1d4ed8);color:#fff;transition:transform .35s}
.mqc .i{width:17px;height:17px}
.mqi.s{padding:9px 18px;font-weight:500;font-size:13px;color:var(--mu);background:rgba(255,255,255,.7)}
.mqi.s .i{width:16px;height:16px;color:#16a34a;stroke-width:2.4}
.mqi:hover{transform:translateY(-4px) scale(1.05);background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;border-color:transparent;box-shadow:0 12px 24px rgba(29,78,216,.32)}
.mqi:hover .mqc{transform:rotate(-12deg) scale(1.15);background:#fff;color:var(--b)}
.mqi.s:hover .i{color:#fff}
@media(max-width:640px){.mqz::before,.mqz::after{width:36px}.mqi{font-size:13px;padding:7px 16px 7px 8px}.mqc{width:28px;height:28px}.mqt{animation-duration:30s}.mqr.rev .mqt{animation-duration:36s}}
@media(prefers-reduced-motion:reduce){.mqt{animation:none!important}.mqr{overflow-x:auto}}

/* ===== ESMOS polish: hover + interaction effects for every portal ===== */
.app .card,.ow .card,.app .kp,.ow .kp,.app .st,.ow .st{transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s,background .3s}
.app .bt,.ow .bt,.app .ib,.ow .ib,.app .ap,.ow .ap,.app .slot,.ow .slot{transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s,background .25s,border-color .25s,color .25s,filter .25s}
.app input,.app select,.app textarea,.ow input,.ow select,.ow textarea{transition:border-color .2s,box-shadow .2s,background .2s}
.app input:focus,.app select:focus,.app textarea:focus,.ow input:focus,.ow select:focus,.ow textarea:focus{outline:0;border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.18)}
.app .bt:active,.ow .bt:active,.app .ib:active,.app .ap:active,.app .slot:active{transform:translateY(0) scale(.96)!important}
.app :is(.bt,.ib,.ap,.slot,a,button):focus-visible,.ow :is(.bt,.ib,button,a):focus-visible{outline:3px solid rgba(59,130,246,.45);outline-offset:2px}
@media(hover:hover) and (pointer:fine){
/* cards: lift, glow and blue top accent */
.app .card:hover,.ow .card:hover{transform:translateY(-5px);box-shadow:0 18px 38px rgba(29,78,216,.17);border-color:#93c5fd}
.app .card:hover .ic2,.ow .card:hover .ic2{transform:rotate(-8deg) scale(1.12);box-shadow:0 10px 22px rgba(29,78,216,.32)}
.app .card h3,.ow .card h3{transition:color .25s}.app .card:hover>h3,.ow .card:hover>h3{color:var(--b)}
/* KPI / stat tiles (re-enables hover that the dashboard had switched off) */
.app .dsh .kp:hover,.ow .kp:hover,.app .kp:hover{transform:translateY(-6px)!important;box-shadow:0 16px 32px rgba(29,78,216,.2)!important}
.app .dsh .kp::before{transition:width .3s}.app .dsh .kp:hover::before{width:11px}
.app .kp:hover .kp-n,.ow .kp:hover .kp-n{color:var(--b)}
.app .kp .kp-n,.ow .kp .kp-n{transition:color .25s,transform .3s;transform-origin:left center}.app .kp:hover .kp-n,.ow .kp:hover .kp-n{transform:scale(1.07)}
.app .st:hover,.ow .st:hover{transform:translateX(5px)}
.app .st:hover .n,.ow .st:hover .n{color:var(--b)}
/* hero banner */
.app .hero{transition:transform .35s,box-shadow .35s}.app .hero:hover{transform:translateY(-3px);box-shadow:0 20px 44px rgba(29,78,216,.3)}
/* buttons: lift + shine sweep */
.app .bt:not(.gh):not(.o),.ow .bt:not(.gh):not(.o){position:relative;overflow:hidden;isolation:isolate}
.app .bt:not(.gh):not(.o)::after,.ow .bt:not(.gh):not(.o)::after{content:"";position:absolute;top:0;bottom:0;left:-70%;width:45%;z-index:-1;background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent);transform:skewX(-20deg);transition:left .6s}
.app .bt:not(.gh):not(.o):hover::after,.ow .bt:not(.gh):not(.o):hover::after{left:130%}
.app .bt:hover,.ow .bt:hover{filter:brightness(1.07)}
.app .bt.gh:hover,.ow .bt.gh:hover{color:var(--b);border-color:var(--b);background:rgba(29,78,216,.06);filter:none}
.app .bt.o:hover,.ow .bt.o:hover{transform:translateY(-3px)}
.app .ib:hover,.ow .ib:hover{transform:scale(1.2) rotate(6deg)}
/* attendance buttons + timetable slots */
.app .ap:hover{transform:translateY(-3px) scale(1.08);box-shadow:0 8px 16px rgba(30,58,138,.18)}
.app .slot:hover{transform:translateY(-4px);box-shadow:0 10px 20px rgba(30,58,138,.16);border-color:var(--b)}
/* tables: row highlight with blue edge */
.app tbody tr,.ow tbody tr{transition:background .2s,box-shadow .2s,transform .2s}
.app tbody tr:hover,.ow tbody tr:hover{background:linear-gradient(90deg,rgba(29,78,216,.1),rgba(29,78,216,.03));box-shadow:inset 4px 0 0 var(--b);transform:none}
.app tbody tr:hover td:first-child,.ow tbody tr:hover td:first-child{font-weight:600;color:var(--b)}
.app th,.ow th{transition:color .2s}.app th:hover,.ow th:hover{color:var(--b)}
/* sidebar: glowing active edge + icon pop */
.app aside a{position:relative}
.app aside a::before{content:"";position:absolute;left:-14px;top:22%;bottom:22%;width:4px;border-radius:0 4px 4px 0;background:#fbbf24;transform:scaleY(0);transition:transform .25s}
.app aside a:hover::before,.app aside a.on::before{transform:scaleY(1)}
.app aside a:hover .i{transform:scale(1.25) rotate(-8deg)}
.app aside a.on:hover{transform:translateX(3px);box-shadow:0 10px 22px rgba(0,0,0,.25)}
/* charts and list items */
.app .ac-col:hover,.ow .ac-col:hover{transform:translateY(-3px)}.app .ac-col{transition:transform .25s}
.app .dn li{transition:transform .2s,color .2s}.app .dn li:hover{transform:translateX(6px);color:var(--b)}
.app .pc:hover,.ow .pc:hover,#lgn .pc:hover{box-shadow:0 20px 40px rgba(29,78,216,.22)}
.app .mc:hover,.ow .mc:hover{box-shadow:0 16px 34px rgba(29,78,216,.16)}
}
/* gentle entrance for portal content */
@keyframes esIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.app #v>.g4>*,.app #v>.two>*,.app #v>.card,.ow .g4>*{animation:esIn .5s cubic-bezier(.2,.8,.2,1) backwards}
.app #v>.g4>*:nth-child(2),.ow .g4>*:nth-child(2){animation-delay:.06s}.app #v>.g4>*:nth-child(3),.ow .g4>*:nth-child(3){animation-delay:.12s}.app #v>.g4>*:nth-child(4),.ow .g4>*:nth-child(4){animation-delay:.18s}.app #v>.g4>*:nth-child(n+5),.ow .g4>*:nth-child(n+5){animation-delay:.24s}
@media(prefers-reduced-motion:reduce){.app *,.ow *{animation:none!important;transition-duration:.01ms!important}}

/* ===== marquee v2: text chips + attractive hover ===== */
.mqi{position:relative;overflow:hidden;isolation:isolate;padding:11px 24px;font-weight:600;letter-spacing:.01em}
.mqi.s{padding:10px 20px 10px 16px}
.mqi::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(120deg,#1d4ed8,#38bdf8);opacity:0;transform:scale(.6);border-radius:inherit;transition:opacity .3s,transform .35s cubic-bezier(.2,.8,.2,1)}
.mqi.s::before{background:linear-gradient(120deg,#16a34a,#84cc16)}
.mqi::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;z-index:-1;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);transition:left .6s}
.mqi:hover{transform:translateY(-5px) scale(1.08);background:#fff;color:#fff;border-color:transparent;box-shadow:0 14px 28px rgba(29,78,216,.35),0 0 0 4px rgba(56,189,248,.22)}
.mqi.s:hover{box-shadow:0 14px 28px rgba(22,163,74,.35),0 0 0 4px rgba(132,204,22,.25)}
.mqi:hover::before{opacity:1;transform:scale(1)}
.mqi:hover::after{left:130%}
.mqi.s .i{transition:transform .4s,color .25s}
.mqi.s:hover .i{color:#fff;transform:rotate(360deg) scale(1.25)}
.mqi:active{transform:translateY(-1px) scale(.97)}

/* ===== marquee v3: electric blue band, text-only chips ===== */
.mqz{background:linear-gradient(90deg,#0033ff,#0a63ff 50%,#00a8ff);border:0;box-shadow:0 10px 30px rgba(0,60,255,.28);padding:14px 0}
.mqz::before{width:110px;background:linear-gradient(90deg,#0033ff,rgba(0,51,255,0))}
.mqz::after{width:110px;background:linear-gradient(270deg,#00a8ff,rgba(0,168,255,0))}
.mqi.s{padding:11px 26px;font-size:14px;font-weight:600;letter-spacing:.02em;color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.38);box-shadow:0 4px 14px rgba(0,30,160,.25);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.mqi.s::before{background:#fff}
.mqi.s::after{background:linear-gradient(100deg,transparent,rgba(0,120,255,.28),transparent)}
.mqi.s:hover{color:#0047ff;border-color:#fff;transform:translateY(-5px) scale(1.09);box-shadow:0 0 0 4px rgba(255,255,255,.28),0 16px 32px rgba(0,20,140,.45),0 0 26px rgba(120,220,255,.85)}
.mqi.s:active{transform:translateY(-1px) scale(.97)}
@media(max-width:640px){.mqz::before,.mqz::after{width:40px}.mqi.s{padding:9px 20px;font-size:13px}}

/* ===== dashboard + revenue animations ===== */
@keyframes dsPop{0%{opacity:0;transform:translateY(22px) scale(.92)}60%{transform:translateY(-4px) scale(1.02)}100%{opacity:1;transform:none}}
@keyframes dsSlide{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
@keyframes dsSpin{from{opacity:0;transform:rotate(-140deg) scale(.5)}to{opacity:1;transform:none}}
@keyframes dsDot{0%{opacity:0;transform:scale(0)}70%{transform:scale(1.5)}100%{opacity:1;transform:scale(1)}}
@keyframes dsBar{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes dsShine{0%,60%{left:-45%}100%{left:130%}}
@keyframes dsFloat{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-18px,14px) scale(1.12)}}
@keyframes dsPulse{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.45)}50%{box-shadow:0 0 0 9px rgba(255,255,255,0)}}
@keyframes dsGrad{0%{background-position:0% 50%}100%{background-position:100% 50%}}
/* continuous, always-on motion */
.rvh{background:linear-gradient(120deg,#0a5568,#0c3b49,#0f7a8f,#0c3b49,#0a5568)!important;background-size:300% 100%!important;animation:dsGrad 14s linear infinite alternate}
.rvh::before{animation:dsFloat 9s ease-in-out infinite}.rvh::after{animation:dsFloat 7s ease-in-out infinite reverse}
.rvh-p{animation:dsPulse 2.4s ease-out infinite}
.rvh .rvh-top::after{content:"";position:absolute;top:-20%;bottom:-20%;left:-45%;width:30%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.22),transparent);transform:skewX(-20deg);animation:dsShine 5.5s ease-in-out infinite;pointer-events:none}
.rvh-top{overflow:hidden;border-radius:14px}
.dsh .hero{background-size:200% 100%!important;animation:dsGrad 12s linear infinite alternate}
@media(hover:hover) and (pointer:fine){.rvh-t{transition:transform .25s,background .25s,box-shadow .25s}.rvh-t:hover{transform:translateY(-4px) scale(1.03);background:rgba(255,255,255,.26);box-shadow:0 10px 22px rgba(0,0,0,.22)}}
/* entrance animations (play on login / page change) */
.fx .dsh .hero{animation:dsPop .7s cubic-bezier(.2,.8,.2,1) backwards,dsGrad 12s linear .7s infinite alternate}
.fx .rvh{animation:dsPop .75s cubic-bezier(.2,.8,.2,1) .12s backwards,dsGrad 14s linear .9s infinite alternate}
.fx .rvh-t{animation:dsPop .6s cubic-bezier(.2,.8,.2,1) backwards}
.fx .rvh-t:nth-child(1){animation-delay:.3s}.fx .rvh-t:nth-child(2){animation-delay:.38s}.fx .rvh-t:nth-child(3){animation-delay:.46s}.fx .rvh-t:nth-child(4){animation-delay:.54s}.fx .rvh-t:nth-child(5){animation-delay:.62s}.fx .rvh-t:nth-child(6){animation-delay:.7s}
.fx .rvh-p{animation:dsPop .6s cubic-bezier(.2,.8,.2,1) .35s backwards,dsPulse 2.4s ease-out 1.2s infinite}
.fx .dsh .g4>.kp{animation:dsPop .65s cubic-bezier(.2,.8,.2,1) backwards}
.fx .dsh .g4>.kp:nth-child(1){animation-delay:.45s}.fx .dsh .g4>.kp:nth-child(2){animation-delay:.55s}.fx .dsh .g4>.kp:nth-child(3){animation-delay:.65s}.fx .dsh .g4>.kp:nth-child(4){animation-delay:.75s}
.fx .dsh .kp::before{transform-origin:bottom;animation:dsBar .7s ease .9s backwards}
.fx .dsh .kp-b{animation:dsSlide .5s ease 1s backwards}
.fx .dsh .two>.card{animation:dsPop .7s cubic-bezier(.2,.8,.2,1) backwards}
.fx .dsh .two>.card:nth-child(1){animation-delay:.85s}.fx .dsh .two>.card:nth-child(2){animation-delay:1s}
/* donut: spin in + legend slides in */
.fx .dn2 svg{animation:dsSpin 1.1s cubic-bezier(.2,.8,.2,1) 1s backwards}
.fx .dn2 li{animation:dsSlide .5s ease backwards}
.fx .dn2 li:nth-child(1){animation-delay:1.4s}.fx .dn2 li:nth-child(2){animation-delay:1.5s}.fx .dn2 li:nth-child(3){animation-delay:1.6s}
/* attendance line chart: dots pop one by one */
.fx .dot circle{animation:dsDot .5s cubic-bezier(.2,.8,.2,1) backwards}
.fx g.dot:nth-of-type(1) circle{animation-delay:1.1s}.fx g.dot:nth-of-type(2) circle{animation-delay:1.25s}.fx g.dot:nth-of-type(3) circle{animation-delay:1.4s}.fx g.dot:nth-of-type(4) circle{animation-delay:1.55s}.fx g.dot:nth-of-type(5) circle{animation-delay:1.7s}.fx g.dot:nth-of-type(n+6) circle{animation-delay:1.8s}
.dot circle{filter:drop-shadow(0 2px 3px rgba(109,94,252,.35))}
@media(prefers-reduced-motion:reduce){.rvh,.rvh::before,.rvh::after,.rvh-p,.rvh .rvh-top::after,.dsh .hero{animation:none!important}}

/* ===== revenue card: electric blue theme ===== */
.rvh{background:linear-gradient(120deg,#0033ff,#0a52ff,#0a7bff,#00a8ff,#0a52ff,#0033ff)!important;background-size:300% 100%!important;box-shadow:0 18px 40px rgba(0,60,255,.38),0 0 0 1px rgba(255,255,255,.12) inset!important}
.rvh::before{background:radial-gradient(circle,rgba(120,220,255,.38),rgba(120,220,255,0) 70%)}
.rvh::after{background:radial-gradient(circle,rgba(255,255,255,.22),rgba(255,255,255,0) 70%)}
.rvh-l{color:rgba(225,240,255,.92);letter-spacing:.02em}
.rvh-n{text-shadow:0 4px 22px rgba(0,30,160,.45)}
.rvh-p{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.4);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.rvh-p.rvh-down{background:rgba(255,80,120,.4);border-color:rgba(255,200,215,.6)}
.rvh-t{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.32);box-shadow:0 6px 16px rgba(0,20,140,.22);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);position:relative;overflow:hidden}
.rvh-t::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(#7dd3fc,#fff);opacity:.9}
.rvh-t i{color:rgba(225,240,255,.92)}
.rvh-t b{white-space:nowrap;font-size:15px;letter-spacing:.01em}
.rvh-t.rvh-neg{background:rgba(255,60,110,.22);border-color:rgba(255,170,195,.55)}
.rvh-t.rvh-neg::before{background:linear-gradient(#ff8fab,#ffe0e8)}
.rvh-t.rvh-neg b{color:#ffe4ea}
.rvh-ft{color:rgba(225,240,255,.9)}
.rvh-c select,.rvh-c input{border:0;color:#0033ff;font-weight:600;box-shadow:0 6px 14px rgba(0,20,140,.25)}
@media(hover:hover) and (pointer:fine){.rvh-t:hover{background:rgba(255,255,255,.3);box-shadow:0 14px 28px rgba(0,20,140,.4),0 0 22px rgba(120,220,255,.55);border-color:#fff}.rvh-c select:hover,.rvh-c input:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(0,20,140,.35)}}

/* ===== portal chooser: electric blue app-style buttons ===== */
#lgn .pc::after{margin-top:14px;padding:9px 26px;min-width:124px;border-radius:999px;font-size:13px;font-weight:700;letter-spacing:.02em;color:#fff;background:linear-gradient(120deg,#0033ff,#0a63ff 55%,#00a8ff);background-size:200% 100%;background-position:0 0;box-shadow:0 8px 18px rgba(0,60,255,.38),inset 0 1px 0 rgba(255,255,255,.35);transition:background-position .5s,box-shadow .3s,transform .3s,letter-spacing .3s}
#lgn .pc:hover::after{background:linear-gradient(120deg,#0033ff,#0a63ff 55%,#00a8ff);background-size:200% 100%;background-position:100% 0;color:#fff;letter-spacing:.06em;transform:scale(1.07);box-shadow:0 12px 26px rgba(0,60,255,.55),0 0 0 4px rgba(0,120,255,.16),0 0 22px rgba(56,189,248,.65)}
#lgn .pc:active::after{transform:scale(.95)}
#lgn .pc:hover{transform:translateY(-8px);box-shadow:0 24px 44px rgba(3,12,40,.55),0 0 0 2px rgba(56,189,248,.55)}
#lgn .pc:hover .ic2{transform:rotate(-8deg) scale(1.12)}
#lgn .pc .ic2{transition:transform .3s}
#lgn .lw>p .bt.o{height:44px;padding:0 30px;font-weight:700;color:#fff!important;background:linear-gradient(120deg,#0033ff,#0a63ff 55%,#00a8ff);background-size:200% 100%;border:1.5px solid rgba(255,255,255,.55);box-shadow:0 10px 22px rgba(0,40,200,.45);transition:background-position .5s,transform .3s,box-shadow .3s,color .25s,border-color .3s}
#lgn .lw>p .bt.o:hover{background-position:100% 0;transform:translateY(-3px) scale(1.05);border-color:#fff;box-shadow:0 14px 30px rgba(0,40,200,.6),0 0 24px rgba(56,189,248,.7);filter:none}
#lgn .lw>p .bt.o:active{transform:scale(.96)}
@media(max-width:640px){#lgn .pc::after{padding:8px 20px;min-width:104px;font-size:12px}}

/* ===== portal chooser: white buttons ===== */
#lgn .pc::after{color:rgb(var(--rg));background:#fff;background-size:auto;border:1.5px solid rgba(var(--rg),.45);box-shadow:0 6px 16px rgba(3,12,40,.16);transition:background .3s,color .3s,border-color .3s,box-shadow .3s,transform .3s,letter-spacing .3s}
#lgn .pc:hover::after{background:linear-gradient(135deg,var(--a1),var(--a2));background-size:auto;color:#fff;border-color:transparent;letter-spacing:.06em;transform:scale(1.07);box-shadow:0 10px 22px rgba(var(--rg),.45),0 0 0 4px rgba(var(--rg),.14)}
#lgn .lw>p .bt.o{color:#0b2a6b!important;background:#fff;background-size:auto;border:1.5px solid #fff;box-shadow:0 10px 24px rgba(3,12,40,.4)}
#lgn .lw>p .bt.o:hover{background:#eaf2ff;color:#0033ff!important;background-position:0 0;border-color:#fff;box-shadow:0 14px 30px rgba(3,12,40,.5),0 0 0 4px rgba(255,255,255,.25)}

/* ===== news ticker marquee ===== */
.nws{display:flex;align-items:stretch;height:50px;background:linear-gradient(90deg,#0033ff,#0a63ff 55%,#00a8ff);box-shadow:0 10px 26px rgba(0,60,255,.3);overflow:hidden;position:relative}
.nwl{position:relative;z-index:3;flex:none;display:flex;align-items:center;gap:10px;padding:0 34px 0 22px;background:#fff;color:#0033ff;font-weight:800;font-size:13px;letter-spacing:.1em;white-space:nowrap;clip-path:polygon(0 0,100% 0,calc(100% - 20px) 100%,0 100%);box-shadow:6px 0 18px rgba(0,20,140,.3)}
.nwd{width:10px;height:10px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 0 rgba(239,68,68,.6);animation:nwP 1.4s ease-out infinite}
@keyframes nwP{0%{box-shadow:0 0 0 0 rgba(239,68,68,.6)}100%{box-shadow:0 0 0 10px rgba(239,68,68,0)}}
.nwv{position:relative;flex:1;min-width:0;display:flex;overflow:hidden;align-items:center}
.nwv::after{content:"";position:absolute;right:0;top:0;bottom:0;width:70px;pointer-events:none;background:linear-gradient(270deg,#00a8ff,rgba(0,168,255,0))}
.nwt{display:flex;flex:none;align-items:center;animation:mqL 55s linear infinite;will-change:transform}
.nwv:hover .nwt{animation-play-state:paused}
.nwi{position:relative;display:inline-flex;align-items:center;white-space:nowrap;padding:0 30px 0 0;margin-right:0;color:#fff;font-weight:600;font-size:14.5px;letter-spacing:.015em;cursor:default;transition:color .25s,text-shadow .25s,transform .25s}
.nwi::after{content:"";width:7px;height:7px;margin-left:30px;background:#7dd3fc;transform:rotate(45deg);border-radius:1px;flex:none}
.nwi:hover{color:#d8f4ff;text-shadow:0 0 14px rgba(160,230,255,.95);transform:scale(1.06)}
@media(max-width:640px){.nws{height:44px}.nwl{padding:0 26px 0 14px;font-size:11.5px}.nwi{font-size:13px}}
@media(prefers-reduced-motion:reduce){.nwt{animation:none!important}.nwv{overflow-x:auto}.nwd{animation:none}}

/* ticker without label: add left fade */
.nwv::before{content:"";position:absolute;left:0;top:0;bottom:0;width:70px;z-index:2;pointer-events:none;background:linear-gradient(90deg,#0033ff,rgba(0,51,255,0))}

/* ===== How it works: light electric-blue redesign ===== */
.hwp::before{background:radial-gradient(circle at 8% 12%,rgba(0,168,255,.22),transparent 40%),radial-gradient(circle at 92% 90%,rgba(0,51,255,.16),transparent 42%),linear-gradient(180deg,#f7faff,#e6f0ff);background-size:140% 140%}
.hwp::after{background-image:radial-gradient(rgba(10,99,255,.28) 1.4px,transparent 1.6px);opacity:.45}
.hwp h2{color:#0b2a6b}.hwp h2::after{background:linear-gradient(90deg,#0033ff,#00a8ff)}
.hwp .hsub{color:var(--mu)}
.hw::before{background:repeating-linear-gradient(90deg,rgba(10,99,255,.55) 0 10px,transparent 10px 20px);background-size:20px 3px}
.hw::after{content:"";position:absolute;top:56px;left:16%;width:13px;height:13px;border-radius:50%;z-index:2;background:#0a63ff;box-shadow:0 0 0 5px rgba(10,99,255,.2),0 0 20px #00a8ff;animation:hrun 3.8s ease-in-out infinite;pointer-events:none}
@keyframes hrun{0%{left:16%;opacity:0;transform:scale(.4)}12%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}100%{left:calc(84% - 13px);opacity:0;transform:scale(.4)}}
.hs{border:1px solid #cfe0ff;border-radius:28px;background:#fff;box-shadow:0 14px 34px rgba(0,60,255,.12),inset 0 5px 0 #0a63ff;padding:86px 26px 32px;transition:transform .4s cubic-bezier(.2,.8,.2,1),box-shadow .4s,border-color .4s}
.hs::before{background:linear-gradient(150deg,#0033ff,#0a63ff 60%,#00a8ff)}
.hs:hover{transform:translateY(-12px) scale(1.02)!important;border-color:#0a63ff;box-shadow:0 0 0 4px rgba(10,99,255,.16),0 30px 60px rgba(0,60,255,.4),inset 0 5px 0 #7dd3fc}
.hs h3{color:#0b2a6b;font-size:21px}.hs p{color:#4b5d80}
.hs:hover h3{color:#fff}.hs:hover p{color:#e2eeff}
.hn{background:linear-gradient(135deg,#0033ff,#00a8ff);box-shadow:0 10px 24px rgba(0,60,255,.45),0 0 0 5px #fff;top:16px}
.hn::after{border-color:rgba(10,99,255,.5)}
.hs:hover .hn{background:#fff;color:#0033ff;box-shadow:0 10px 24px rgba(0,20,140,.35),0 0 0 5px rgba(255,255,255,.35)}
.hi{background:linear-gradient(135deg,rgba(10,99,255,.14),rgba(0,168,255,.2));color:#0a52ff;border:1px solid rgba(10,99,255,.2)}
.hs:hover .hi{background:rgba(255,255,255,.2);color:#fff;border-color:rgba(255,255,255,.45)}
.hs .hg{background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent)}
@media(max-width:820px){.hw::before{background:repeating-linear-gradient(180deg,rgba(10,99,255,.55) 0 10px,transparent 10px 20px);background-size:3px 20px}.hw::after{display:none}}
@media(prefers-reduced-motion:reduce){.hw::after{animation:none;display:none}}

/* ===== How it works v3: glowing timeline (mobile-first) ===== */
.hwp::before{background:radial-gradient(circle at 10% 8%,rgba(0,168,255,.5),transparent 42%),radial-gradient(circle at 92% 92%,rgba(0,51,255,.55),transparent 46%),linear-gradient(165deg,#04154f 0%,#0033ff 58%,#00a8ff 130%);background-size:140% 140%}
.hwp::after{background-image:radial-gradient(rgba(255,255,255,.3) 1.4px,transparent 1.6px);opacity:.5}
.hwp h2{color:#fff}.hwp h2::after{background:linear-gradient(90deg,#bae6fd,#fff)}
.hwp .hsub{color:#d7e5ff}
.hwp{max-width:1000px}
.hw{display:grid;grid-template-columns:1fr;gap:26px;padding:6px 0}
.hw::before{content:"";position:absolute;top:24px;bottom:24px;left:27px;right:auto;width:3px;height:auto;margin-left:-1px;border-radius:3px;background:linear-gradient(180deg,rgba(186,230,253,.15),rgba(255,255,255,.85) 50%,rgba(186,230,253,.15));animation:none;opacity:1}
.hw::after{content:"";display:block;position:absolute;top:24px;left:27px;width:15px;height:15px;margin-left:-7px;border-radius:50%;z-index:3;background:#fff;box-shadow:0 0 0 6px rgba(255,255,255,.22),0 0 22px #7dd3fc;animation:hdown 4.2s ease-in-out infinite;pointer-events:none}
@keyframes hdown{0%{top:24px;opacity:0}10%{opacity:1}90%{opacity:1}100%{top:calc(100% - 40px);opacity:0}}
.hs{margin-left:68px;display:grid;grid-template-columns:58px 1fr;column-gap:16px;row-gap:4px;align-items:start;text-align:left;padding:20px 20px 22px;border-radius:24px;overflow:visible;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.35);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 14px 34px rgba(2,12,60,.35);transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s}
.hs::before{border-radius:inherit;background:#fff;opacity:0;transition:opacity .35s}
.hs:hover::before{opacity:1}
.hs h3{grid-column:2;grid-row:1;margin:2px 0 0;color:#fff;font-size:19px}
.hs p{grid-column:2;grid-row:2;color:#d7e5ff;font-size:14px;line-height:1.6}
.hs:hover h3{color:#0b2a6b}.hs:hover p{color:#4b5d80}
.hi{grid-column:1;grid-row:1/3;width:58px;height:58px;margin:0;border-radius:18px;background:#fff;color:#0a52ff;border:0;box-shadow:0 8px 18px rgba(0,20,140,.35)}
.hs:hover .hi{background:linear-gradient(135deg,#0033ff,#00a8ff);color:#fff;border:0}
.hn{width:44px;height:44px;margin:0;left:-63px;top:18px;font-size:19px;background:#fff;color:#0033ff;box-shadow:0 0 0 5px rgba(255,255,255,.25),0 8px 20px rgba(0,20,140,.4)}
.hn::after{border-color:rgba(255,255,255,.65)}
.hs:hover .hn{background:linear-gradient(135deg,#0033ff,#00a8ff);color:#fff;box-shadow:0 0 0 5px rgba(255,255,255,.4),0 8px 22px rgba(0,20,140,.5)}
.hg{inset:0;left:0;top:0;width:100%;height:100%;border-radius:inherit;transform:none;background:linear-gradient(100deg,transparent 40%,rgba(0,120,255,.2) 50%,transparent 60%);background-size:250% 100%;background-position:150% 0}
.hs:hover .hg{left:0;background-position:-50% 0;transition:background-position .9s}
.hs:hover{transform:translateX(6px)!important;border-color:#fff;box-shadow:0 22px 48px rgba(2,12,60,.5),0 0 0 3px rgba(125,211,252,.55)}
@media(max-width:480px){.hs{margin-left:58px;grid-template-columns:48px 1fr;column-gap:12px;padding:16px 16px 18px}.hi{width:48px;height:48px;border-radius:15px}.hi .i{width:25px;height:25px}.hn{width:38px;height:38px;left:-55px;top:16px;font-size:17px}.hw::before,.hw::after{left:22px}.hs h3{font-size:18px}.hs p{font-size:13.5px}}
@media(min-width:821px){
.hw{grid-template-columns:1fr 1fr;column-gap:96px;row-gap:34px}
.hw::before,.hw::after{left:50%}.hw::before{top:30px;bottom:30px}
.hs{margin-left:0}
.hs:nth-child(1){grid-column:1;grid-row:1}.hs:nth-child(2){grid-column:2;grid-row:2}.hs:nth-child(3){grid-column:1;grid-row:3}
.hs:nth-child(odd) .hn{left:auto;right:-70px}.hs:nth-child(even) .hn{left:-70px}
.hs:nth-child(odd):hover{transform:translateX(-6px)!important}
}
@media(prefers-reduced-motion:reduce){.hw::after{animation:none;display:none}}

/* ===== How it works: mobile-app style ===== */
.hw{counter-reset:stp}
.hs{counter-increment:stp;-webkit-tap-highlight-color:transparent;border-radius:26px;padding-right:44px}
.hs::after{content:"\203A";position:absolute;right:16px;top:50%;margin-top:-16px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:22px;line-height:1;font-weight:700;color:#0033ff;background:#fff;box-shadow:0 4px 12px rgba(0,20,140,.3);transition:transform .3s,background .3s,color .3s}
.hs:hover::after{transform:translateX(4px);background:linear-gradient(135deg,#0033ff,#00a8ff);color:#fff}
.hs h3::before{content:"STEP " counter(stp);display:inline-block;margin:0 0 6px;padding:3px 10px;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.1em;color:#0033ff;background:#fff;box-shadow:0 3px 8px rgba(0,20,140,.25);transition:background .3s,color .3s}
.hs h3{display:flex;flex-direction:column;align-items:flex-start}
.hs:hover h3::before{background:rgba(0,51,255,.1);box-shadow:none}
.hi{border-radius:30%;background:linear-gradient(145deg,#ffffff,#dbe9ff);color:#0033ff;box-shadow:0 10px 22px rgba(0,20,140,.4),inset 0 -3px 0 rgba(10,99,255,.15);position:relative}
.hi::after{content:"";position:absolute;inset:3px 3px auto 3px;height:45%;border-radius:30% 30% 50% 50%/40% 40% 60% 60%;background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,0));pointer-events:none}
.hi .i{position:relative;z-index:1;width:30px;height:30px}
.hs:hover .hi{background:linear-gradient(145deg,#0a63ff,#0033ff);color:#fff}
.hs:active{transform:scale(.97)!important}
@media(max-width:480px){.hs{padding-right:40px}.hs::after{right:12px;width:28px;height:28px;margin-top:-14px;font-size:20px}.hi .i{width:26px;height:26px}}

/* Book your setup (hero): no WhatsApp icon */
.ph .phb a.bt.o:nth-child(2)::before,.ph.lt .phb a.bt.o:nth-child(2)::before,.ph.lt.fl .phb a.bt.o:nth-child(2)::before{content:none!important;display:none!important;width:0!important;height:0!important;margin:0!important;background:none!important}
.ph .phb a.bt.o:nth-child(2)::after,.ph.lt .phb a.bt.o:nth-child(2)::after,.ph.lt.fl .phb a.bt.o:nth-child(2)::after{content:none!important;display:none!important}
.ph .phb a.bt.o:nth-child(2),.ph.lt .phb a.bt.o:nth-child(2),.ph.lt.fl .phb a.bt.o:nth-child(2){font-size:15px!important;gap:0!important}

/* mobile: filter chips scroll inside their row instead of widening the page */
.ch{min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.ch::-webkit-scrollbar{display:none}.tb{min-width:0}

/* ===== Mobile dashboard: everything fits on ONE screen (no scrolling) ===== */
@media(max-width:820px){
body.on-dash .app main{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
body.on-dash .app main>.top{flex:none;margin-bottom:8px;padding-top:8px;padding-bottom:8px}
body.on-dash .app main>.top h1{font-size:19px}
body.on-dash .app main>.top p{font-size:11.5px}
body.on-dash .app main>.top .bg{width:38px;height:38px;border-radius:12px}
body.on-dash .app main>#v{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}
body.on-dash .app main>#v::-webkit-scrollbar{display:none}
.app .dsh{display:flex;flex-direction:column;gap:8px;min-height:100%}

/* welcome card: compact, 4 quick actions in one row */
.app .dsh .hero{padding:10px 12px;border-radius:16px;margin:0;box-shadow:0 8px 18px rgba(29,78,216,.22)}
.app .dsh .hero h2{font-size:14.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app .dsh .hero p{display:none}
.app .dsh .hero>div:last-child{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}
.app .dsh .hero .bt{padding:7px 2px;font-size:10px;line-height:1.15;border-radius:10px;min-height:0;box-shadow:none}

/* revenue card: compact */
.app .dsh .rvh{padding:10px 12px!important;margin:0!important;border-radius:16px!important}
.app .dsh .rvh-top{flex-wrap:nowrap;gap:8px;align-items:center}
.app .dsh .rvh-l{font-size:10px;margin-bottom:1px}
.app .dsh .rvh-n{font-size:21px}
.app .dsh .rvh-p{font-size:9px;line-height:1.2;padding:4px 8px;max-width:50%;text-align:center;animation:none!important}
.app .dsh .rvh-g{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:8px}
.app .dsh .rvh-t{padding:4px 7px;border-radius:9px;box-shadow:none}
.app .dsh .rvh-t::before{width:3px}
.app .dsh .rvh-t i{font-size:8.5px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app .dsh .rvh-t b{font-size:11px;letter-spacing:0}
.app .dsh .rvh-ft{margin-top:8px}
.app .dsh .rvh-ft>span{display:none}
.app .dsh .rvh-c{width:100%;flex-wrap:nowrap;gap:6px}
.app .dsh .rvh-c select,.app .dsh .rvh-c input{font-size:12px!important;padding:0 8px!important;height:30px;min-height:0;border-radius:8px!important;flex:1;min-width:0}

/* 4 stat cards: 2 x 2 grid */
.app .dsh .g4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
.app .dsh .kp{padding:8px 10px 8px 15px!important;gap:1px!important;border-radius:14px!important;box-shadow:0 3px 10px rgba(30,58,138,.07)!important}
.app .dsh .kp::before{width:4px}
.app .dsh .kp-l{font-size:11px}
.app .dsh .kp-n{font-size:21px;line-height:1.15}
.app .dsh .kp-n small{font-size:10px;margin-right:2px}
.app .dsh .kp-n em{font-size:10px}
.app .dsh .kp-b{font-size:9.5px;padding:2px 8px;margin-top:2px}
.app .dsh .kp:hover{transform:none!important}

/* charts: side by side, take the remaining height */
.app .dsh .two{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important;flex:1 0 auto}
.app .dsh .two .card{padding:9px 10px!important;border-radius:14px!important;display:flex;flex-direction:column;justify-content:center;min-width:0;overflow:hidden}
.app .dsh .two h3{font-size:11.5px;line-height:1.25;margin:0 0 4px}
.app .dsh .dn,.app .dsh .dn2{gap:4px}
.app .dsh .dn2 svg{width:auto;max-width:100%;height:clamp(64px,11vh,100px)}
.app .dsh .dn2 li{font-size:10px;margin:2px 0}
.app .dsh .dn2 i{width:8px;height:8px;margin-right:5px}
.app .dsh .two .card>svg{width:100%;height:auto;max-height:clamp(84px,17vh,150px)}
}
/* very small phones: tighten a little more */
@media(max-width:820px) and (max-height:640px){
.app .dsh .hero h2{font-size:13px}
.app .dsh .rvh-g{display:none}
.app .dsh .kp-n{font-size:18px}
}

/* ===== Mobile: EVERY table becomes cards (no sideways scrolling anywhere) ===== */
@media(max-width:820px){
.app main,.app #v{max-width:100%;overflow-x:hidden}
.app .card{min-width:0;max-width:100%}
.app .tb{flex-wrap:wrap;gap:8px;align-items:center}
.app .tb .se{flex:1 1 140px;min-width:0;max-width:none;padding:2px 12px;background:#fff}
.app .se input{border:0!important;box-shadow:none!important;background:none!important;padding:8px 0!important;min-width:0;font-size:15px;border-radius:0!important}
.app .tb .ch{order:3;flex:1 1 100%}
.app .tb .bt{margin-left:auto;white-space:nowrap;padding:10px 14px;font-size:13.5px}
.app .tw{overflow:visible}
.app table.rt{display:block;width:100%;min-width:0!important;font-size:13.5px}
.app table.rt>thead{display:none}
.app table.rt>tbody{display:flex;flex-direction:column;gap:10px}
.app table.rt tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;padding:12px 14px;border-radius:16px;background:#f5f8ff;border:1px solid var(--ln);box-shadow:none}
.app table.rt tbody tr:hover{background:#f5f8ff;transform:none}
.app table.rt td{display:block;min-width:0;max-width:100%;padding:0;border:0;text-align:left;line-height:1.3;color:var(--tx);overflow-wrap:anywhere;white-space:normal}
.app table.rt td[data-l]::before{content:attr(data-l);display:block;margin-bottom:2px;color:var(--mu);font-size:10px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.app table.rt td.ttl{grid-column:1/-1;order:-2;font-size:16px;font-weight:700;padding-right:84px}
.app table.rt td.ttl::before,.app table.rt td.stt::before{display:none}
.app table.rt td.stt{position:absolute;top:12px;right:12px}
.app table.rt td.ac{grid-column:1/-1;order:99;display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end;margin-top:2px;padding-top:8px;border-top:1px solid var(--ln);text-align:right}
.app table.rt td.ac::before{display:none}
.app table.rt td.ac:empty{display:none}
.app table.rt td.ac .bt.sm{margin:0;padding:7px 14px;font-size:12px;border-radius:20px}
.app table.rt td.ac .ib{width:36px;height:36px;display:grid;place-items:center;padding:0;background:#fff;border:1px solid var(--ln);border-radius:12px}
.app table.rt td.ac .ib svg{width:17px;height:17px}
.app table.rt td.wd{grid-column:1/-1}
.app table.rt tr.emr{display:block;background:none;border:0;padding:0}
.app table.rt tr.emr td{text-align:center;padding:20px 0}
.app table.rt td input,.app table.rt td select{max-width:100%;width:100%;box-sizing:border-box}
}

/* ===== dashboard fit v2 (tested in real browser at 360x772) ===== */
@media(max-width:820px){
body.on-dash .app .dsh{gap:6px}
.app .dsh .hero{padding:8px 10px}
.app .dsh .hero h2{display:none}
.app .dsh .hero>div:last-child{margin-top:0}
.app .dsh .hero .bt{padding:6px 2px;font-size:10px}
.app .dsh .rvh{padding:8px 10px!important}
.app .dsh .rvh-l{font-size:9.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:0!important}
.app .dsh .rvh-n{font-size:19px!important;white-space:nowrap;line-height:1.15}
.app .dsh .rvh-top>div:first-child{min-width:0;flex:1}
.app .dsh .rvh-g{gap:4px;margin-top:6px}
.app .dsh .rvh-t{padding:3px 6px}
.app .dsh .rvh-t i{font-size:8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app .dsh .rvh-t b{font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.app .dsh .rvh-ft{margin-top:6px}
.app .dsh .rvh-c select,.app .dsh .rvh-c input{height:28px}
.app .dsh .kp{padding:6px 10px 6px 14px!important}
.app .dsh .kp-n{font-size:19px!important}
.app .dsh .kp-b{margin-top:1px}
.app .dsh .two .card{padding:8px 9px!important}
}
@media(max-width:820px){
.app table.rt td.ac{flex-direction:row!important;flex-wrap:wrap;gap:6px!important;justify-content:flex-end}
}

/* desktop + all sizes: action cell in tables must stay a normal table cell (chart .ac rule was stacking the buttons) */
.app table td.ac{display:table-cell;flex-direction:row;gap:0;white-space:nowrap;text-align:right;vertical-align:middle}
.app table td.ac .bt.sm,.app table td.ac .ib{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}

/* ===== UI v3: soft blue cards, pill buttons, floating bottom bar ===== */
:root{--b:#1d4ed8;--b2:#0b2a6b;--bg:#eef4ff;--ln:#d9e6fb;--mu:#5b6f94;--sh:0 8px 24px rgba(29,78,216,.10)}
body{background:radial-gradient(900px 420px at 90% -8%,#dbeafe 0,transparent 70%),radial-gradient(700px 380px at -10% 8%,#e0f2fe 0,transparent 65%),#eef4ff;background-attachment:fixed}
.app .card{background:linear-gradient(160deg,#fff 0%,color-mix(in srgb,var(--b) 5%,#fff) 100%);border:1px solid color-mix(in srgb,var(--b) 13%,#fff);border-radius:24px;box-shadow:0 10px 28px color-mix(in srgb,var(--b) 9%,transparent)}
.app .card:hover{transform:translateY(-3px);box-shadow:0 16px 34px color-mix(in srgb,var(--b) 16%,transparent)}
.app .card h3{color:var(--b2)}
/* stat cards */
.app .kp{position:relative;overflow:hidden;padding:16px 16px 14px!important;border-radius:24px!important;gap:10px!important;border:1px solid color-mix(in srgb,var(--kc,#2563eb) 16%,#fff)!important;background:linear-gradient(150deg,#fff 0%,var(--k2,#e6f0ff) 100%)!important;box-shadow:0 10px 26px color-mix(in srgb,var(--kc,#2563eb) 12%,transparent)!important}
.app .dsh .kp::before,.app .kp::before{display:none!important}
.app .kp::after{content:"";position:absolute;right:-30px;bottom:-34px;width:110px;height:110px;border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,var(--kc,#2563eb) 20%,transparent),transparent);pointer-events:none}
.app .g4>.kp:nth-child(4n+1){--kc:#2563eb;--k2:#e3eeff}
.app .g4>.kp:nth-child(4n+2){--kc:#0284c7;--k2:#dff2ff}
.app .g4>.kp:nth-child(4n+3){--kc:#1d4ed8;--k2:#e4ebff}
.app .g4>.kp:nth-child(4n+4){--kc:#0891b2;--k2:#dcf5fa}
.app .kp-h{justify-content:flex-start;gap:10px}
.app .kp-i{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--kc,#2563eb) 14%,#fff);color:var(--kc,#2563eb)}
.app .kp-i svg{width:18px;height:18px}
.app .kp-l{color:var(--kc,#2563eb)!important;font-weight:700}
.app .kp-a{display:none}
.app .kp-m{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;z-index:1}
.app .kp-n{color:#0b1f4d!important}
.app .kp-n em{color:color-mix(in srgb,var(--kc,#2563eb) 35%,#fff)}
.app .kp-r{--p:0;width:60px;height:60px;border-radius:50%;flex:none;background:conic-gradient(var(--kc,#2563eb) calc(var(--p)*1%),color-mix(in srgb,var(--kc,#2563eb) 16%,#fff) 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 10px),#000 calc(100% - 9px));mask:radial-gradient(farthest-side,transparent calc(100% - 10px),#000 calc(100% - 9px))}
.app .kp-b,.app .kp-b.c-b{background:color-mix(in srgb,var(--kc,#2563eb) 12%,#fff);color:var(--kc,#2563eb);position:relative;z-index:1}
.app .kp-b.c-g{background:#e2f6ec;color:#15803d}
.app .kp-b.c-r{background:#fde8ed;color:#be123c}
/* hero */
.app .hero{position:relative;overflow:hidden;border-radius:26px;background:linear-gradient(125deg,#2f6cf0 0%,var(--b) 45%,var(--b2) 100%);box-shadow:0 18px 38px color-mix(in srgb,var(--b) 30%,transparent)}
.app .hero::after{content:"";position:absolute;right:-50px;top:-60px;width:210px;height:210px;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.22),transparent);pointer-events:none}
.app .hero>*{position:relative;z-index:1}
/* buttons */
.app .bt,#lgn .bt{border-radius:999px;padding:11px 22px;font-weight:650;letter-spacing:.01em;background:linear-gradient(135deg,#5ea5ff 0%,var(--b) 55%,color-mix(in srgb,var(--b) 72%,#000) 100%);box-shadow:0 8px 18px color-mix(in srgb,var(--b) 34%,transparent),inset 0 1px 0 rgba(255,255,255,.38);transition:transform .2s,box-shadow .25s,filter .25s}
.app .bt:hover,#lgn .bt:hover{transform:translateY(-2px);filter:saturate(1.12);box-shadow:0 12px 24px color-mix(in srgb,var(--b) 42%,transparent),inset 0 1px 0 rgba(255,255,255,.4)}
.app .bt:active,#lgn .bt:active{transform:scale(.96)}
.app .bt.gh,#lgn .bt.gh{background:#fff;color:var(--b);border:1px solid color-mix(in srgb,var(--b) 26%,#fff);box-shadow:0 2px 8px color-mix(in srgb,var(--b) 8%,transparent)}
.app .bt.gh:hover{background:color-mix(in srgb,var(--b) 7%,#fff);color:var(--b2)}
.app .bt.sm{border-radius:999px;padding:7px 15px;font-size:12.5px}
.app .hero .bt{background:#fff;color:var(--b);box-shadow:0 6px 16px rgba(0,0,0,.14)}
.app .ib{border-radius:12px}.app .ib:hover{background:color-mix(in srgb,var(--b) 10%,#fff);color:var(--b)}
.app .cp.on{background:linear-gradient(135deg,#5ea5ff,var(--b));border-color:transparent}
/* forms */
.app input:not([type=checkbox]):not([type=radio]),.app select,.app textarea{border-radius:14px;border-color:color-mix(in srgb,var(--b) 20%,#fff);background-color:#fff}
.app input:focus,.app select:focus,.app textarea:focus{outline:0;border-color:var(--b);box-shadow:0 0 0 4px color-mix(in srgb,var(--b) 16%,transparent)}
/* tables */
.app thead th{background:color-mix(in srgb,var(--b) 7%,#fff);color:var(--b2)}
.app .tg{padding:4px 12px}
/* sidebar */
.app aside a.on{background:#fff;color:var(--b);box-shadow:0 8px 18px rgba(0,0,0,.18)}
/* modal */
.app .mb,#md .mb{border-radius:26px;box-shadow:0 30px 70px rgba(11,42,107,.35)}
/* floating bottom bar (reference style) */
.abn{background:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:0!important;gap:10px;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));align-items:center}
.abn .abp{flex:1;min-width:0;display:flex;gap:2px;padding:6px;border-radius:34px;background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid #fff;box-shadow:0 16px 36px rgba(11,42,107,.20),0 2px 6px rgba(11,42,107,.08)}
.abn .abp a{flex:1;min-width:0;padding:9px 2px 8px;border-radius:26px;color:#6f84ab;gap:3px;font-size:10.5px;transition:.25s}
.abn .abp a.on{color:#fff;background:linear-gradient(160deg,#5ea5ff 0%,var(--b) 100%);box-shadow:0 8px 16px color-mix(in srgb,var(--b) 38%,transparent)}
.abn>button{flex:none;width:58px;height:58px;padding:0;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.97);color:var(--b2);box-shadow:0 16px 36px rgba(11,42,107,.20),0 2px 6px rgba(11,42,107,.08)}
.abn>button.on{background:linear-gradient(160deg,#5ea5ff,var(--b));color:#fff}
.abn>button svg{width:24px;height:24px}
.abn>button circle{fill:currentColor;stroke:none}
.abn>button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:700px){
#md{align-items:flex-end!important}
#md .mb{max-width:none;border-radius:28px 28px 0 0;max-height:88vh;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
.app .bt{min-height:42px}
.app .kp{padding:13px 13px 12px!important}
.app .kp-r{width:50px;height:50px}
.app .kp-i{width:30px;height:30px;border-radius:10px}
}
/* layout fixes */
.app .hero:has(>div>h2)>div:last-child{display:block!important;margin-top:0!important}
.app .hero:has(>div>h2) p{margin:4px 0 0}
.app .dsh .rvh-l{padding-left:6px}
.app .card,.app .kp{box-shadow:0 6px 18px color-mix(in srgb,var(--b) 9%,transparent)}
.app .hero{box-shadow:0 10px 22px color-mix(in srgb,var(--b) 26%,transparent)}
.app .tg.g{background:#dcf4e6;color:#137536}.app .tg.a{background:#fff0d2;color:#9a5600}.app .tg.r{background:#fde4ea;color:#be123c}.app .tg.b{background:#dfeaff;color:#1d4ed8}
/* outline buttons (.bt.o): inactive tabs, Prev/Next, CSV, etc. were blue with dark text; make them white with blue text */
.app .bt.o:not([style*="color"]){background:#fff;color:var(--b);border:1.5px solid color-mix(in srgb,var(--b) 38%,#fff);box-shadow:0 2px 8px color-mix(in srgb,var(--b) 10%,transparent)}
.app .bt.o:not([style*="color"])::after{display:none}
.app .bt.o:not([style*="color"]):hover{background:color-mix(in srgb,var(--b) 8%,#fff);color:var(--b2);border-color:var(--b);filter:none}
.app .bt.o:not([style*="color"]):disabled,.app .bt.o:not([style*="color"])[disabled]{opacity:.45;cursor:not-allowed;transform:none}
/* sidebar Logout / Console buttons: white pill with blue text (was blue text on blue gradient) */
.app .lo .bt{background:#fff;color:var(--b);border:0;box-shadow:none;margin-left:auto}
.app .lo .bt::after{display:none}
.app .lo .bt:hover{background:#eaf2ff;color:var(--b2);filter:none}
.app .lo .bt+.bt{margin-left:0}
/* ===== App fonts: headings Plus Jakarta Sans; body, buttons, navigation, numbers Inter (buttons and navigation Medium 500) ===== */
:root{--fh:'Plus Jakarta Sans',Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--fb:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
html,body,input,select,textarea,button{font-family:var(--fb)}
h1,h2,h3,h4,h5,h6{font-family:var(--fh)!important}
.bt,button,.ib,.ap,.pn nav a,.pn a.l,.pn a.bt,#sb a,.bn button,.abn a,.abn button,nav a{font-family:var(--fb)!important;font-weight:500!important}
.kp-n,.kp-n *,.kp-b,.app table td,.app table th,.sn,.bd{font-family:var(--fb)!important;font-variant-numeric:tabular-nums}
:is(body,.app,.pn,.ow,#lgn,#md,#pl) :is(.bt,button,.ib,.bn button,.abn a,.abn button,nav a,#sb a){font-family:var(--fb)!important;font-weight:500!important}

/* ===== School login: 4 portal cards (final override) ===== */
#lgn .lw{max-width:1040px}
#lgn .pg4{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:stretch}
#lgn .pc{--a1:#ff9a3c;--a2:#ff6a00;--rg:255,106,0;--tint:rgba(255,154,60,.28);
 position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;text-align:center;
 padding:30px 18px 22px;border-radius:26px;
 background:linear-gradient(160deg,rgba(255,255,255,.96),rgba(246,249,255,.92));
 border:1px solid rgba(255,255,255,.85);
 box-shadow:0 18px 40px rgba(3,12,40,.34);
 -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
 transition:transform .25s,box-shadow .25s}
#lgn .pc:nth-child(2){--a1:#3b9cff;--a2:#0a4fd6;--rg:10,79,214;--tint:rgba(59,156,255,.26)}
#lgn .pc:nth-child(3){--a1:#4cd964;--a2:#12a147;--rg:18,161,71;--tint:rgba(76,217,100,.26)}
#lgn .pc:nth-child(4){--a1:#a259ff;--a2:#6a1fd8;--rg:106,31,216;--tint:rgba(162,89,255,.26)}
#lgn .pc::before{content:"";position:absolute;top:-46px;left:-46px;width:130px;height:130px;
 background:var(--tint);transform:rotate(45deg);border-radius:18px;pointer-events:none}
#lgn .pc .ic2{position:relative;width:66px!important;height:66px!important;border-radius:20px!important;margin:0 0 18px!important;
 background:linear-gradient(145deg,var(--a1),var(--a2))!important;
 box-shadow:0 12px 22px rgba(var(--rg),.34),inset 0 1px 0 rgba(255,255,255,.45)!important;animation:none!important}
#lgn .pc .ic2 svg{width:32px!important;height:32px!important;color:#fff;stroke:#fff;fill:none;stroke-width:1.8}
#lgn .pc b{position:relative;font-size:17px;font-weight:700;color:#0e2347;margin-bottom:6px}
#lgn .pc span{position:relative;font-size:13px;line-height:1.5;color:#5a6b8c;min-height:40px;margin-bottom:20px}
#lgn .pc::after{content:none!important;display:none!important}
#lgn .pc .sgn{position:relative;margin-top:auto;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;
 padding:13px 18px;border-radius:999px;font-style:normal;font-size:14.5px;font-weight:700;color:#fff;
 background:linear-gradient(90deg,var(--a1),var(--a2));
 box-shadow:0 10px 20px rgba(var(--rg),.32),inset 0 1px 0 rgba(255,255,255,.35);
 transition:transform .2s,box-shadow .2s,filter .2s}
#lgn .pc .sgn svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
#lgn .pc:hover{transform:translateY(-6px);box-shadow:0 26px 48px rgba(3,12,40,.45),0 0 0 2px rgba(var(--rg),.35)}
#lgn .pc:hover .sgn{filter:saturate(1.1);box-shadow:0 14px 26px rgba(var(--rg),.45),inset 0 1px 0 rgba(255,255,255,.4)}
#lgn .pc:hover .sgn svg{transform:translateX(4px)}
#lgn .pc:hover .ic2{transform:none}
#lgn .pc:active{transform:scale(.98)}
#lgn .pc:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media (max-width:900px){#lgn .pg4{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media (max-width:480px){
 #lgn .pg4{grid-template-columns:1fr;gap:12px}
 #lgn .pc{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;text-align:left;padding:18px 16px;gap:0 14px}
 #lgn .pc .ic2{width:54px!important;height:54px!important;margin:0!important}
 #lgn .pc b{align-self:center;flex:1;margin:0}
 #lgn .pc span{flex-basis:100%;min-height:0;margin:12px 0 14px}
 #lgn .pc .sgn{margin-top:0}}
@media (prefers-reduced-motion:reduce){#lgn .pc,#lgn .pc .sgn,#lgn .pc .sgn svg{transition:none}}

/* ===== School login: light background ===== */
#lgn{background:linear-gradient(180deg,rgba(255,255,255,.80),rgba(240,246,255,.62) 45%,rgba(255,255,255,.78)),var(--schoolimg) center/cover no-repeat!important}
#lgn .lw{color:#0e2347}
#lgn .lw h1{color:#0e2347}
#lgn .lw>p{color:#44577d;opacity:1}
#lgn .pc{background:linear-gradient(160deg,rgba(255,255,255,.97),rgba(248,250,255,.94));box-shadow:0 14px 34px rgba(30,60,120,.16);border:1px solid rgba(255,255,255,.95)}
#lgn .pc:hover{box-shadow:0 22px 44px rgba(30,60,120,.24),0 0 0 2px rgba(var(--rg),.3)}
#lgn .lw>p .bt.o{background:#fff!important;color:#0b2a6b!important;border:1.5px solid rgba(11,42,107,.18)!important;box-shadow:0 8px 20px rgba(30,60,120,.14)!important}

/* ===== Neon How it works + app marquee ===== */
.nmq{position:relative;height:52px;display:flex;align-items:center;overflow:hidden;background:linear-gradient(90deg,#0033ff,#0a63ff 55%,#00a8ff);box-shadow:0 10px 26px rgba(0,60,255,.3)}
.nmr{width:100%;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.nmt{display:flex;align-items:center;width:max-content;animation:nmL 60s linear infinite;will-change:transform}
.nmq:hover .nmt{animation-play-state:paused}
@keyframes nmL{to{transform:translateX(-50%)}}
.nma{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;padding:0 30px 0 0;color:#fff;font-weight:600;font-size:14.5px;letter-spacing:.015em;cursor:default;transition:text-shadow .25s,transform .25s}
.nma::after{content:"";width:7px;height:7px;margin-left:21px;background:#7dd3fc;transform:rotate(45deg);border-radius:1px;flex:none}
.nma:hover{text-shadow:0 0 14px rgba(160,230,255,.95);transform:scale(1.06)}
.nai{display:grid;place-items:center;color:#7dd3fc;filter:drop-shadow(0 0 6px rgba(125,211,252,.9))}
.nai .i{width:18px;height:18px}
.nhw{position:relative;isolation:isolate;overflow:hidden;padding:84px 5vw 76px;color:#eaf4ff;background:radial-gradient(900px 420px at 50% -10%,rgba(60,130,255,.55),transparent 70%),radial-gradient(600px 300px at 92% 108%,rgba(39,211,255,.3),transparent 70%),linear-gradient(180deg,#0f2f7a,#0a2159)}
.nhw::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(rgba(39,211,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(39,211,255,.07) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(ellipse at 50% 0,#000 20%,transparent 75%);mask-image:radial-gradient(ellipse at 50% 0,#000 20%,transparent 75%)}
.nhw-in{max-width:1180px;margin:auto}
.nhw .ntag{display:block;width:max-content;margin:0 auto 16px;padding:6px 16px;border:1px solid rgba(39,211,255,.45);border-radius:99px;color:#27d3ff;font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;box-shadow:0 0 18px rgba(39,211,255,.35),inset 0 0 12px rgba(39,211,255,.15)}
.nhw .nh2{margin:0;text-align:center;color:#eaf4ff;font-size:clamp(28px,4.8vw,48px);line-height:1.12;letter-spacing:-.02em}
.nhw .nh2::after{content:none;display:none}
.nhw .nh2 span{color:#27d3ff;text-shadow:0 0 12px rgba(39,211,255,.9),0 0 38px rgba(47,107,255,.9)}
.nhw .nsub{text-align:center;color:#c3d6f7;max-width:560px;margin:14px auto 44px;font-size:15px}
.nrow{display:flex;gap:14px;height:440px}
.nc{position:relative;flex:1;min-width:0;border-radius:22px;padding:22px;overflow:hidden;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(160deg,rgba(40,84,175,.65),rgba(15,40,105,.85));border:1px solid rgba(120,200,255,.3);transition:flex .6s cubic-bezier(.2,.8,.2,1),box-shadow .5s,border-color .5s}
.nc .nnum{position:absolute;top:16px;left:22px;font-size:54px;font-weight:700;line-height:1;color:transparent;-webkit-text-stroke:1px rgba(170,215,255,.55);transition:opacity .5s}
.nc .nic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;margin-bottom:12px;background:rgba(39,211,255,.12);color:#27d3ff;border:1px solid rgba(39,211,255,.4)}
.nc .nic .i{width:18px;height:18px}
.nc h3{margin:0;font-size:17px;font-weight:600;color:#eaf4ff;transition:font-size .5s}
.nc p{margin:0;color:#c3d6f7;font-size:14px;line-height:1.6;max-height:0;opacity:0;overflow:hidden;transition:max-height .6s,opacity .5s .15s,margin .5s}
.nc .nart{position:absolute;left:0;right:0;top:0;height:48%;opacity:0;transition:opacity .6s}
.nc .nart svg{width:100%;height:100%;display:block}
.nc.on{flex:3.2;border-color:#27d3ff;box-shadow:0 0 0 1px rgba(39,211,255,.5),0 0 38px rgba(39,211,255,.4),0 0 110px rgba(47,107,255,.35),inset 0 0 40px rgba(39,211,255,.08)}
.nc.on .nart{opacity:1}
.nc.on .nnum{opacity:0}
.nc.on h3{font-size:clamp(24px,3vw,32px);line-height:1.15;text-shadow:0 0 18px rgba(39,211,255,.55)}
.nc.on p{max-height:150px;opacity:1;margin-top:14px}
.nc:not(.on):hover{border-color:rgba(39,211,255,.55);box-shadow:0 0 24px rgba(39,211,255,.2)}
.nbar{position:absolute;left:0;bottom:0;height:3px;width:0;background:linear-gradient(90deg,#2f6bff,#27d3ff);box-shadow:0 0 12px #27d3ff}
.nc.on .nbar{animation:nFill 5s linear forwards}
@keyframes nFill{to{width:100%}}
.nact{text-align:center;margin-top:36px}
.nbt{display:inline-block;padding:13px 30px;border-radius:99px;font-weight:700;font-size:15px;text-decoration:none;color:#031024;background:linear-gradient(135deg,#27d3ff,#2f6bff);box-shadow:0 0 26px rgba(39,211,255,.55);transition:transform .25s,box-shadow .25s}
.nbt:hover{transform:translateY(-3px);box-shadow:0 0 44px rgba(39,211,255,.9)}
@media(max-width:820px){.nhw{padding:56px 18px 52px}.nrow{flex-direction:column;height:auto}.nc{flex:none;height:92px;justify-content:center}.nc.on{height:390px;justify-content:flex-end}.nc .nnum{top:50%;transform:translateY(-50%);left:auto;right:20px;font-size:40px}.nc .nic{margin-bottom:8px}.nc .nart{height:42%}}
@media(prefers-reduced-motion:reduce){.nmt{animation:none}.nc.on .nbar{animation:none;width:100%}}

/* ===== ESMOS admin Home: app-style dashboard (balanced type, recent activity) ===== */
.dsh{display:flex;flex-direction:column;gap:16px}
body.on-dash .app .dsh{gap:16px}
.dsh h3{font-size:15px;font-weight:700;margin:0;color:var(--tx);letter-spacing:-.01em}

/* greeting + quick actions */
.dsh .hm{display:flex;flex-direction:column;gap:16px;margin:0}
.hm-t{display:flex;align-items:center;gap:12px;min-width:0}
.hm-av{flex:none;width:48px;height:48px;border-radius:16px;display:grid;place-items:center;color:#fff;font:700 16px/1 'Plus Jakarta Sans',Inter,sans-serif;background:linear-gradient(145deg,var(--b),var(--b2));box-shadow:0 8px 18px color-mix(in srgb,var(--b) 30%,transparent)}
.hm-t>div{min-width:0}
.hm-t small{display:block;font-size:12px;color:var(--mu);font-weight:500}
.hm-t h2{margin:1px 0 0;font-size:18px;line-height:1.2;font-weight:700;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-t p{margin:2px 0 0;font-size:12px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qa{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.qa-i{--q:var(--b);display:flex;flex-direction:column;align-items:center;gap:7px;text-decoration:none;-webkit-tap-highlight-color:transparent}
.qa-i span{width:100%;max-width:64px;aspect-ratio:1;border-radius:20px;display:grid;place-items:center;color:var(--q);background:linear-gradient(150deg,#fff,color-mix(in srgb,var(--q) 14%,#fff));border:1px solid color-mix(in srgb,var(--q) 18%,#fff);box-shadow:0 8px 18px color-mix(in srgb,var(--q) 14%,transparent);transition:transform .2s,box-shadow .2s}
.qa-i span svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.qa-i b{font-size:11.5px;font-weight:600;color:var(--tx);text-align:center;line-height:1.2;white-space:nowrap}
.qa-i:active span{transform:scale(.92)}
.qa1{--q:#f59e0b}.qa2{--q:#7c3aed}.qa3{--q:#16a34a}

/* revenue card */
.app .dsh .rvh{background:linear-gradient(135deg,var(--b) 0%,var(--b2) 100%)!important;animation:none!important;padding:18px!important;border-radius:24px!important;margin:0!important;box-shadow:0 16px 32px color-mix(in srgb,var(--b) 28%,transparent)!important}
.app .dsh .rvh::after{content:"";position:absolute;right:-60px;top:-70px;width:220px;height:220px;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.2),transparent);pointer-events:none}
.app .dsh .rvh>*{position:relative;z-index:1}
.app .dsh .rvh-top{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.app .dsh .rvh-top>div:first-child{max-width:100%}
.app .dsh .rvh-l{font-size:12px!important;font-weight:500;opacity:.88;white-space:normal!important;padding:0!important;margin:0 0 4px!important}
.app .dsh .rvh-n{font-size:30px!important;font-weight:800;line-height:1.1;letter-spacing:-.02em;white-space:nowrap}
.app .dsh .rvh-p{max-width:100%!important;font-size:11.5px!important;font-weight:600;padding:5px 11px!important;border-radius:99px;text-align:left!important;line-height:1.3;animation:none!important}
.app .dsh .rvh-g{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:14px!important}
.app .dsh .rvh-t{padding:9px 12px!important;border-radius:14px!important;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);box-shadow:none}
.app .dsh .rvh-t::before{display:none}
.app .dsh .rvh-t i{display:block;font-size:11px!important;font-style:normal;opacity:.85;margin:0 0 2px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app .dsh .rvh-t b{display:block;font-size:14px!important;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app .dsh .rvh-neg b{color:#ffd1d9}
.app .dsh .rvh-ft{margin-top:12px!important}
.app .dsh .rvh-ft>span{display:none}
.app .dsh .rvh-c{display:flex;gap:8px;width:100%}
.app .dsh .rvh-c select,.app .dsh .rvh-c input{flex:1;min-width:0;height:42px!important;font-size:14px!important;font-weight:600;padding:0 12px!important;border-radius:12px!important;background:#fff;color:var(--b)}

/* KPI tiles */
.dsh .g4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.dsh .kp{padding:14px!important;border-radius:20px!important;gap:10px!important;min-width:0}
.dsh .kp-h{gap:9px}
.dsh .kp-i{width:34px;height:34px;border-radius:11px}
.dsh .kp-i svg{width:18px;height:18px}
.dsh .kp-l{font-size:12.5px!important;font-weight:600;line-height:1.2}
.dsh .kp-n{font-size:26px!important;font-weight:800;line-height:1.1;letter-spacing:-.02em}
.dsh .kp-n small{font-size:12px;font-weight:600;opacity:.7;margin-right:2px}
.dsh .kp-n em{font-size:13px;font-style:normal;opacity:.5;font-weight:600}
.dsh .kp-b{font-size:11.5px!important;font-weight:600;padding:5px 10px;border-radius:99px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* recent activity */
.dsh .two{display:grid;grid-template-columns:1fr;gap:14px}
.dsh .two .card{padding:16px!important;border-radius:22px!important}
.rc-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.rc-h a{font-size:12.5px;font-weight:600;color:var(--b);text-decoration:none;padding:4px 10px;border-radius:99px;background:color-mix(in srgb,var(--b) 9%,#fff)}
.rc-i{display:flex;align-items:center;gap:12px;padding:10px 0;text-decoration:none;color:var(--tx);border-bottom:1px solid var(--ln);-webkit-tap-highlight-color:transparent}
.rc-i:last-child{border-bottom:0}
.rc-a{flex:none;width:40px;height:40px;border-radius:14px;display:grid;place-items:center;font:700 13px/1 Inter,sans-serif;color:var(--c);background:color-mix(in srgb,var(--c) 14%,#fff)}
.av0{--c:#16a34a}.av1{--c:#2563eb}.av2{--c:#f59e0b}.av3{--c:#7c3aed}
.rc-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rc-t b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-t small{font-size:12px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-v{flex:none;font-size:13.5px;font-weight:700;color:#16a34a}
.rc-s{flex:none;font-size:11px;font-weight:600;padding:4px 10px;border-radius:99px;background:#eef1f6;color:var(--mu)}
.rc-s.on{background:#e3f8ea;color:#15803d}
.rc .em{margin:10px 0 4px;font-size:13px;color:var(--mu)}

@media(min-width:821px){
 .dsh .hm{flex-direction:row;align-items:center;justify-content:space-between}
 .qa{grid-template-columns:repeat(4,88px)}
 .qa-i span{max-width:56px}
 .dsh .g4{grid-template-columns:repeat(4,minmax(0,1fr))}
 .dsh .two{grid-template-columns:1fr 1fr}
 .app .dsh .rvh{padding:24px 28px!important}
 .app .dsh .rvh-top{flex-direction:row;align-items:center;justify-content:space-between}
 .app .dsh .rvh-g{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .app .dsh .rvh-n{font-size:38px!important}
 .app .dsh .rvh-c{width:auto}
 .app .dsh .rvh-ft{display:flex;justify-content:flex-end}
 .dsh .kp-n{font-size:30px!important}
}
@media(prefers-reduced-motion:no-preference){
 .hm,.qa-i,.rc-i{animation:hmUp .5s cubic-bezier(.2,.8,.2,1) backwards}
 .qa-i:nth-child(2){animation-delay:.05s}.qa-i:nth-child(3){animation-delay:.1s}.qa-i:nth-child(4){animation-delay:.15s}
 @keyframes hmUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
}
.app .dsh .two,body.on-dash .app .dsh .two{grid-template-columns:minmax(0,1fr)!important}
.rc-h a{white-space:nowrap;flex:none}
.rc-h h3{white-space:nowrap}
.dsh .kp-n em{display:none}
@media(min-width:821px){.app .dsh .two,body.on-dash .app .dsh .two{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* ===== ESMOS mobile app polish: every page (cards, forms, buttons, tables-as-cards, headers) ===== */
@media(max-width:820px){
 /* type scale */
 .app main{font-size:14px}
 .app .top h1{font-size:20px!important;font-weight:700;letter-spacing:-.01em}
 .app .top p{font-size:12.5px!important}
 .app .card h3,.app h3{font-size:15px;font-weight:700;letter-spacing:-.01em}
 .app label{font-size:12.5px;font-weight:600;color:var(--mu)}
 .app input:not([type=checkbox]):not([type=radio]),.app select,.app textarea{font-size:15px!important;min-height:46px;border-radius:14px!important;padding:0 14px;box-sizing:border-box}
 .app textarea{padding:12px 14px;min-height:96px}
 .app .mu,.app .em{font-size:13px}

 /* cards */
 .app main>#v{padding-bottom:calc(126px + env(safe-area-inset-bottom,0px))}
 .app main>#v>.card,.app .card{border-radius:22px!important;padding:16px}
 .app #v>*+*{margin-top:14px}
 .app .dsh>*+*{margin-top:0}

 /* KPI tiles on every page */
 .app .g4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
 .app .kp{padding:14px!important;border-radius:20px!important;gap:10px!important;min-width:0}
 .app .kp-l{font-size:12.5px!important;font-weight:600;line-height:1.2}
 .app .kp-n{font-size:25px!important;font-weight:800;line-height:1.1;letter-spacing:-.02em}
 .app .kp-n small{font-size:12px;font-weight:600;opacity:.7;margin-right:2px}
 .app .kp-n em{display:none}
 .app .kp-b{font-size:11.5px!important;font-weight:600;padding:5px 10px;border-radius:99px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .app .two{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:14px}

 /* toolbars: search, chips, buttons, labels */
 .app .tb{display:flex!important;flex-wrap:wrap;align-items:stretch;gap:10px!important;margin-bottom:14px}
 .app .tb>h3{flex:1 1 100%;margin:0}
 .app .tb>.se{flex:1 1 100%;min-width:0}
 .app .tb>.ch{flex:1 1 100%;display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
 .app .tb>.ch::-webkit-scrollbar{display:none}
 .app .tb>.ch .cp{flex:none;padding:9px 16px;font-size:13px;border-radius:99px;white-space:nowrap}
 .app .tb>label{flex:1 1 calc(50% - 5px);min-width:0;margin:0!important}
 .app .tb>.bt{flex:1 1 calc(50% - 5px);margin:0!important;min-height:46px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px!important;font-weight:600!important;text-align:center;white-space:normal;line-height:1.2;border-radius:16px!important}
 .app .tb>.bt:only-of-type,.app .tb>.se~.bt{flex:1 1 100%}
 .app .card>.bt,.app form .bt{min-height:46px;border-radius:16px!important;font-size:14px!important}
 .app .bt{-webkit-tap-highlight-color:transparent}

 /* hero banners (teacher, parent, student, accountant pages) */
 .app .hero{display:flex!important;flex-direction:column;gap:14px;padding:18px!important;border-radius:24px!important;margin-bottom:0!important}
 .app .hero h2{display:block!important;font-size:20px!important;line-height:1.2;font-weight:700;margin:0;color:#fff}
 .app .hero p{display:block;font-size:13px!important;line-height:1.4;opacity:.9;margin:4px 0 0!important;color:#fff}
 .app .hero>div:last-child:not(:first-child){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;margin:0!important;width:100%}
 .app .hero .bt{margin:0!important;min-height:46px;padding:10px!important;display:inline-flex;align-items:center;justify-content:center;font-size:13.5px!important;font-weight:600!important;text-align:center;line-height:1.2;white-space:normal;border-radius:16px!important}

 /* tables turned into cards: clean badge, status buttons */
 .app table.rt tr{padding:14px!important;border-radius:18px!important;background:#fff!important;border:1px solid var(--ln);box-shadow:0 4px 14px color-mix(in srgb,var(--b) 7%,transparent)!important;gap:10px 14px!important}
 .app table.rt td{font-size:14px}
 .app table.rt td[data-l]::before{font-size:10.5px;margin-bottom:3px}
 .app table.rt td.ttl{font-size:16px!important;padding-right:92px;min-height:26px}
 .app table.rt td.stt{position:absolute!important;top:12px!important;right:12px!important;left:auto!important;bottom:auto!important;margin:0!important;grid-column:auto!important;order:0}
 .app table.rt td:has(>.ap){grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .app table.rt td:has(>.ap)::before{grid-column:1/-1}
 .app .ap{padding:10px 0!important;margin:0!important;min-width:0;font-size:12.5px!important;font-weight:600!important;border-radius:12px!important;text-align:center}
 .app table.rt td.ac{border-top:1px solid var(--ln)}

 /* bottom sheet modals */
 .mo{align-items:end!important;padding:0!important}
 .mo>*{width:100%!important;max-width:none!important;margin:0!important;border-radius:26px 26px 0 0!important;max-height:92dvh;overflow:auto;padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px))!important}
 .fmod>div{grid-template-columns:1fr!important}

 /* toast above bottom nav */
 #to{bottom:calc(104px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100vw - 32px);text-align:center;font-size:13.5px;padding:11px 18px;white-space:normal}
}
@media(max-width:820px){
 .app .hero{text-align:left}
 #to{opacity:0;pointer-events:none;visibility:hidden}
 #to.on{opacity:1;visibility:visible;pointer-events:auto}
}

/* ===== more spacing: airy app layout on phones ===== */
@media(max-width:820px){
 .app main{padding-left:16px!important;padding-right:16px!important}
 .app .top{margin-left:-16px!important;margin-right:-16px!important;padding-left:16px!important;padding-right:16px!important}
 .app main>#v{padding-top:6px}
 .app #v>*+*{margin-top:20px}
 .app .dsh>*+*{margin-top:0}
 .app .dsh,body.on-dash .app .dsh{gap:20px}
 .app .card{padding:20px!important}
 .app .card h3{margin-bottom:12px}
 .app .tb{gap:12px!important;margin-bottom:18px}
 .app .tb>.bt,.app .tb>label{flex-basis:calc(50% - 6px)}
 .app .g4{gap:14px}
 .app .kp{padding:16px!important;gap:12px!important}
 .app .two{gap:20px}
 .app .hero{padding:22px!important;gap:18px}
 .app .hero>div:last-child:not(:first-child){gap:12px!important}
 .app table.rt>tbody{gap:16px}
 .app table.rt tr{padding:18px!important;gap:14px 16px!important}
 .app table.rt td.ac{margin-top:6px;padding-top:12px;gap:10px!important}
 .app table.rt td:has(>.ap){gap:8px}
 .app .hm{gap:20px}
 .qa{gap:12px}
 .app .dsh .rvh{padding:22px!important}
 .app .dsh .rvh-g{gap:10px!important;margin-top:18px!important}
 .app .dsh .rvh-ft{margin-top:16px!important}
 .app .dsh .rvh-c{gap:10px}
 .rc-i{padding:14px 0;gap:14px}
 .rc-h{margin-bottom:10px}
 .app label{margin-bottom:4px}
 .app form>*+*,.app .mo form>*+*{margin-top:14px}
}
@media(max-width:820px){.app .dsh .rvh-c select,.app .dsh .rvh-c input{padding:0 8px!important;font-size:13.5px!important}.app .dsh .rvh-c input{flex:1.3}}

/* ===== ESMOS app-style home + timetable v2 ===== */
.hx{padding-top:28px;padding-bottom:8px}.hxq{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:900px;margin:0 auto 26px}
.hxi{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 6px;border-radius:20px;background:var(--cd);box-shadow:0 8px 24px rgba(15,40,120,.10);color:var(--tx);text-decoration:none;font-size:13px;transition:transform .15s}.hxi:active{transform:scale(.96)}
.hxo{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#2563eb,#0b2a6b)}.hxo .i,.hxo svg{width:22px;height:22px}
.hxc{max-width:900px;margin:0 auto;display:grid;gap:18px;padding:22px;border-radius:26px;background:linear-gradient(160deg,#0b2a6b,#1d4ed8);color:#fff;box-shadow:0 18px 50px rgba(11,42,107,.35)}
.hxt h2{margin:0 0 8px;font-size:clamp(22px,4vw,32px);line-height:1.15;color:#fff}.hxt p{margin:0;opacity:.9;line-height:1.55}
.hxp{background:#fff;color:#0f1b3d;border-radius:20px;padding:14px}.hxd{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-bottom:10px}
.hxd span{display:flex;flex-direction:column;align-items:center;padding:8px 0;border-radius:12px;background:#eef3ff}.hxd small{font-size:11px;color:#5b6b8f}.hxd b{font-size:16px}.hxd span.on{background:#1d4ed8;color:#fff}.hxd span.on small{color:#dbe7ff}
.hxr{display:flex;align-items:center;gap:12px;padding:10px 4px;border-top:1px solid #e6ecfa}.hxr em{font-style:normal;font-size:12px;font-weight:700;color:#1d4ed8;min-width:66px}.hxr div{flex:1}.hxr b{display:block;font-size:14px}.hxr small{color:#5b6b8f;font-size:12px}.hxr i{font-style:normal;font-size:11px;font-weight:700;background:#eef3ff;color:#1d4ed8;border-radius:8px;padding:4px 8px}
@media(min-width:760px){.hxq{grid-template-columns:repeat(6,1fr)}.hxc{grid-template-columns:1fr 1fr;align-items:center;padding:32px}}
@media(max-width:640px){.ph .phb{flex-direction:column;align-items:stretch;width:100%;max-width:420px}.ph .phb .bt{width:100%;justify-content:center;padding:15px 20px;font-size:16px;border-radius:16px}.ph h1{letter-spacing:-.5px}}
.tt th{padding:8px 6px}.tt th small{display:block;font-weight:500;font-size:11px;opacity:.8}.tt th.tdy{background:#1d4ed8;color:#fff}.tt th.tdy small{opacity:.95}
.slot.tdy{box-shadow:inset 0 0 0 2px rgba(29,78,216,.45)}.slot small{display:block}.ptm{text-align:center;white-space:nowrap}.ptm b{display:block}.ptm small{display:block;color:var(--mu);font-size:10.5px;line-height:1.35}
.ttbar{margin-bottom:16px}.ttbar .tb{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ttbar input[type=date],.ttbar select{width:auto;min-width:140px}
.ttpb{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:12px;border-radius:14px;background:rgba(29,78,216,.08);font-size:13px;line-height:1.5}

.hbar{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:50;display:flex;justify-content:space-around;align-items:flex-end;padding:8px 6px;border-radius:24px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);box-shadow:0 10px 34px rgba(11,42,107,.28);max-width:520px;margin:0 auto}
.hbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;color:#5b6b8f;font-size:11px;padding:4px 0}.hbar a span{display:grid;place-items:center;width:34px;height:30px}.hbar a .i,.hbar a svg{width:22px;height:22px}.hbar a:active{color:#1d4ed8}
.hbar a.mid span{width:52px;height:52px;margin-top:-26px;border-radius:50%;color:#fff;background:linear-gradient(135deg,#2563eb,#0b2a6b);box-shadow:0 8px 20px rgba(29,78,216,.45);border:4px solid #fff}.hbar a.mid{color:#1d4ed8;font-weight:700}
#pl{padding-bottom:96px}@media(min-width:1000px){.hbar{display:none}#pl{padding-bottom:0}}

/* ===== Stat boxes: full amounts, never cut with "..." (school app, phones) ===== */
@media(max-width:820px){
.app .g4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-bottom:16px!important}
.app .g4 .card.st{
  display:grid!important;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto auto;
  align-items:center;column-gap:8px!important;row-gap:4px;
  padding:12px!important;border-radius:16px!important;min-width:0;
  background:#fff!important;color:var(--tx)!important;
  border:1px solid rgba(15,23,42,.10)!important;box-shadow:0 2px 10px rgba(15,23,42,.06)!important}
.app .g4 .card.st>div:last-child{display:contents}
.app .g4 .st .ic2{grid-column:1;grid-row:1;width:30px!important;height:30px!important;margin:0!important;border-radius:9px!important}
.app .g4 .st .ic2 svg{width:16px!important;height:16px!important}
.app .g4 .st .l{grid-column:2;grid-row:1;font-size:11.5px!important;font-weight:600;line-height:1.2;color:var(--mu)!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal;overflow-wrap:anywhere}
.app .g4 .st .n{grid-column:1/-1;grid-row:2;margin:4px 0 0!important;
  font-size:clamp(15px,4.9vw,21px)!important;font-weight:800;line-height:1.15!important;letter-spacing:-.01em;
  font-variant-numeric:tabular-nums;color:var(--tx)!important;
  white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
.app .g4 .st .s{grid-column:1/-1;grid-row:3;font-size:11px!important;line-height:1.3;color:var(--mu)!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.app .g4 .card.st:last-child:nth-child(odd){grid-column:1/-1}
.app .g4 .card.st:hover{transform:none}
}

/* ===== All roles (admin, employee, parent, student, owner): no "..." on numbers or labels ===== */
.app .dsh .rvh-t i,.app .dsh .rvh-t b,.app .dsh .rvh-l,
.app .kp-l,.app .kp-b,.app .dsh .kp-b,.ow .kp-l,.ow .kp-b,
.app .st .l,.app .st .n,.app .st .s,.ow .st .l,.ow .st .n,.ow .st .s{
  overflow:visible!important;text-overflow:clip!important}
.app .dsh .rvh-t i,.app .dsh .rvh-l,.app .kp-l,.app .kp-b,.app .dsh .kp-b,.ow .kp-l,.ow .kp-b,
.app .st .l,.app .st .s,.ow .st .l,.ow .st .s{white-space:normal!important;overflow-wrap:anywhere;height:auto!important;max-width:100%}
.app .dsh .rvh-t b,.app .kp-n,.app .dsh .kp-n,.ow .kp-n,.app .st .n,.ow .st .n{
  white-space:nowrap!important;font-variant-numeric:tabular-nums}
@media(max-width:820px){
.app .dsh .rvh-t{background:rgba(255,255,255,.2)!important;border:1px solid rgba(255,255,255,.4)!important;min-width:0}
.app .dsh .rvh-t i{font-size:11.5px!important;line-height:1.25;margin:0 0 3px!important}
.app .dsh .rvh-t b{font-size:clamp(12.5px,3.8vw,17px)!important;line-height:1.2}
.app .kp,.ow .kp{min-width:0}
.app .kp-n,.app .dsh .kp-n,.ow .kp-n{font-size:clamp(17px,5.4vw,24px)!important}
.app .kp-b,.app .dsh .kp-b,.ow .kp-b{font-size:11px!important;line-height:1.3;padding:4px 10px;border-radius:12px}
.ow .g4 .st .n{font-size:clamp(15px,4.6vw,18px)!important}
.ow .g4 .card.st:first-child .n{font-size:clamp(22px,7vw,30px)!important}
}

/* ===================== ESMOS Hubs screen (added) ===================== */
.hb{max-width:760px;margin:0 auto;padding:4px 0 28px;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#0f1d3a}
.hb *{box-sizing:border-box}
.hb-g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hb-c{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:158px;padding:16px;position:relative;text-align:left;font:inherit;color:inherit;
  background:#fff;border:1px solid #dbe5f7;border-radius:18px;box-shadow:0 1px 2px rgba(15,29,58,.04),0 4px 14px rgba(29,78,216,.06);
  cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:border-color .2s,box-shadow .2s,transform .15s}
.hb-c:hover{border-color:#b9cff6;box-shadow:0 1px 2px rgba(15,29,58,.05),0 8px 20px rgba(29,78,216,.1)}
.hb-c:active{transform:scale(.985)}
.hb-c:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}
.hb-c.wide{grid-column:1/-1;flex-direction:row;align-items:center;min-height:0;gap:14px;padding:18px 16px}
.hb-ic{flex:none;display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:#1d4ed8;color:#fff}
.hb-ic svg{width:27px;height:27px;fill:none;stroke:none;stroke-linecap:round;stroke-linejoin:round}
.hb-ic svg .w{fill:#fff}.hb-ic svg .s{fill:#a9c8ff}
.hb-ic svg .k{fill:none;stroke:#1d4ed8;stroke-width:1.9}.hb-ic svg .kd{fill:#1d4ed8}
.hb-t{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.hb-t b{font-size:15px;font-weight:700;line-height:1.25;color:#0b2a6b;letter-spacing:-.005em}
.hb-t span{font-size:12.5px;line-height:1.4;color:#5a6b8c}
.hb-ch{position:absolute;top:16px;right:14px;width:18px;height:18px;fill:none;stroke:#8aa3d1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hb-c.wide .hb-ch{position:static;flex:none}
.hb-n{flex:none;padding:4px 10px;border-radius:99px;background:#eaf1ff;color:#1d4ed8;font-size:12px;font-weight:600}
/* inner pages */
.hb-top{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.hb-bk{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;border:1px solid #dbe5f7;background:#fff;color:#0b2a6b;cursor:pointer;box-shadow:0 1px 2px rgba(15,29,58,.04)}
.hb-bk svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hb-top h2{margin:0;font-size:18px;line-height:1.25;font-weight:700;color:#0b2a6b}
.hb-top p{margin:2px 0 0;font-size:12.5px;color:#5a6b8c}
.hb-l{display:flex;flex-direction:column;gap:10px}
.hb-r{background:#fff;border:1px solid #dbe5f7;border-radius:16px;box-shadow:0 1px 2px rgba(15,29,58,.04),0 4px 14px rgba(29,78,216,.05);overflow:hidden}
.hb-r>summary,.hb-r>.hb-rh{display:flex;align-items:center;gap:12px;padding:14px 16px;font-size:14px;font-weight:600;color:#0b2a6b;cursor:pointer;list-style:none}
.hb-r>summary::-webkit-details-marker{display:none}
.hb-r>summary::after{content:"";flex:none;margin-left:auto;width:8px;height:8px;border-right:2px solid #8aa3d1;border-bottom:2px solid #8aa3d1;transform:rotate(45deg);transition:transform .2s}
.hb-r[open]>summary::after{transform:rotate(-135deg)}
.hb-r>div{padding:0 16px 14px;font-size:13.5px;line-height:1.55;color:#3d4f73}
.hb-r ol,.hb-r ul{margin:0;padding-left:18px}.hb-r li{margin:4px 0}
.hb-r .hb-rh{cursor:default}
.hb-r .hb-rh .hb-ic{width:38px;height:38px;border-radius:11px}.hb-r .hb-rh .hb-ic svg{width:20px;height:20px}
.hb-rt{display:flex;flex-direction:column;gap:2px;min-width:0}.hb-rt small{font-size:12.5px;font-weight:400;color:#5a6b8c;line-height:1.4}
.hb-sh{margin:18px 2px 8px;font-size:13px;font-weight:700;color:#0b2a6b}
.hb-ab{padding:16px;background:#fff;border:1px solid #dbe5f7;border-radius:18px;box-shadow:0 4px 14px rgba(29,78,216,.06);margin-bottom:12px}
.hb-ab h3{margin:0 0 6px;font-size:16px;color:#0b2a6b}.hb-ab p{margin:0;font-size:13.5px;line-height:1.6;color:#3d4f73}
.hb-ct{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hb-ct a{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border-radius:14px;background:#fff;border:1px solid #dbe5f7;color:#0b2a6b;text-decoration:none;font-size:13px;font-weight:600}
.hb-ct a:hover{border-color:#b9cff6}.hb-ct a span{min-width:0;overflow-wrap:anywhere;line-height:1.3}
.hb-ct .hb-ic{width:38px;height:38px;border-radius:11px}.hb-ct .hb-ic svg{width:21px;height:21px}
.hb-ct a.full{grid-column:1/-1}
.hb-ap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hb-ap .hb-c{min-height:132px}
.hb-ap .hb-ic svg.i{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:1.8}
@media(max-width:340px){.hb-g,.hb-ap{gap:10px}.hb-c{padding:14px}.hb-t b{font-size:14px}}
@media(prefers-reduced-motion:reduce){.hb-c{transition:none}}

/* =====================================================================
   ESMOS update: revenue card alignment, Setup popup, report-card pipeline,
   professional weekly timetable
   ===================================================================== */

/* ---- Dashboard revenue card: clean, aligned tiles that never overflow ---- */
.app .dsh .rvh{padding:18px 16px!important;border-radius:24px!important}
.app .dsh .rvh-top{overflow:visible!important;border-radius:0!important;padding:0!important;gap:10px!important}
.app .dsh .rvh-top::after{display:none!important}
.app .dsh .rvh-l{font-family:var(--fb);font-size:12.5px!important;font-weight:500;letter-spacing:.01em;opacity:.92;padding:0!important;margin:0 0 4px!important;white-space:normal!important}
.app .dsh .rvh-n{font-family:var(--fh);font-size:clamp(26px,8.6vw,34px)!important;font-weight:800;line-height:1.1;letter-spacing:-.02em;white-space:nowrap}
.app .dsh .rvh-p{font-family:var(--fb);font-size:12px!important;font-weight:600;line-height:1.3;padding:6px 12px!important}
.app .dsh .rvh .rvh-g{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1fr;gap:10px!important;margin-top:16px!important}
.app .dsh .rvh .rvh-t{display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-width:0;min-height:72px;padding:10px 12px!important;border-radius:16px!important;container-type:inline-size;overflow:hidden}
.app .dsh .rvh .rvh-t i{font-family:var(--fb);font-size:12px!important;font-weight:500;line-height:1.25;margin:0!important;white-space:normal!important}
.app .dsh .rvh .rvh-t b{display:flex!important;align-items:baseline;gap:5px;font-family:var(--fh);font-size:14px!important;font-weight:700;line-height:1.15;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
@supports (width:1cqw){.app .dsh .rvh .rvh-t b{font-size:min(17px,10.6cqw)!important}}
.app .dsh .rvh .rvh-t b small{font-family:var(--fb);font-size:.62em;font-weight:600;opacity:.8;letter-spacing:.03em}
.app .dsh .rvh .rvh-t.rvh-neg b{color:#ffd6de}
.app .dsh .rvh-ft{margin-top:14px!important}
.app .dsh .rvh-c{display:grid!important;grid-template-columns:1fr 1.25fr;gap:10px!important;width:100%}
.app .dsh .rvh-c select,.app .dsh .rvh-c input{height:44px!important;padding:0 36px 0 14px!important;border-radius:14px!important;font-family:var(--fb);font-size:14.5px!important;font-weight:600;min-width:0;width:100%!important;margin:0!important;
 -webkit-appearance:none;appearance:none;background-color:#fff!important;color:var(--b)!important}
.app .dsh .rvh-c select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important}
.app .dsh .rvh-c input{padding-right:12px!important}
@media(min-width:821px){.app .dsh .rvh .rvh-g{grid-template-columns:repeat(3,minmax(0,1fr))!important}.app .dsh .rvh-c{width:auto;grid-template-columns:auto auto}}

/* ---- Setup popup ---- */
.pn .pn-st{display:inline-flex}
@media(max-width:700px){.pn .pn-st{display:none!important}}
#md .mb.stp{position:relative;max-width:440px;padding:22px 20px calc(20px + env(safe-area-inset-bottom,0px));font-family:var(--fb)}
.stp-x{position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:50%;border:0;background:#eef3ff;color:#0b2a6b;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center}
.stp-h{display:flex;gap:12px;align-items:flex-start;padding-right:34px;margin-bottom:14px}
.stp-ic{flex:none;width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;display:grid;place-items:center}
.stp-ic svg{width:22px;height:22px}
.stp-h h3{margin:0;font-family:var(--fh);font-size:19px;line-height:1.25;color:#0b2a6b}
.stp-h p{margin:3px 0 0;font-size:13px;line-height:1.45;color:var(--mu)}
.stp-f{display:flex;flex-direction:column;gap:12px}
.stp-f label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#3d4f73}
.stp-o{font-weight:400;color:var(--mu)}
.stp-f input,.stp-f textarea{width:100%;font:500 15px var(--fb);color:var(--tx);background:#edf3ff;border:1px solid #d9e6fb;border-radius:14px;padding:12px 14px;outline:0}
.stp-f input:focus,.stp-f textarea:focus{border-color:#3b82f6;background:#fff;box-shadow:0 0 0 3px rgba(59,130,246,.18)}
.stp-go{width:100%;justify-content:center;height:48px;border-radius:14px;font-size:15px}
.stp-alt{margin:14px 0 0;text-align:center;font-size:12.5px;color:var(--mu)}
.stp-alt a{color:var(--b);font-weight:600;text-decoration:none}
body.stp-open{overflow:hidden}
#p-contact #lead{font-family:var(--fb)}
#p-contact #lead input,#p-contact #lead textarea{font:500 15px var(--fb)}

/* ---- Report-card pipeline ---- */
.rp-st{list-style:none;margin:12px 0 4px;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;counter-reset:s}
.rp-st li{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:11px;font-weight:600;color:var(--mu);line-height:1.2}
.rp-st li::before{content:"";position:absolute;top:13px;left:-50%;width:100%;height:2px;background:var(--ln);z-index:0}
.rp-st li:first-child::before{display:none}
.rp-st li i{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:700;background:#fff;border:2px solid var(--ln);color:var(--mu)}
.rp-st li.done i{background:#16a34a;border-color:#16a34a;color:#fff}.rp-st li.done::before{background:#16a34a}
.rp-st li.on i{background:var(--b);border-color:var(--b);color:#fff;box-shadow:0 0 0 4px rgba(29,78,216,.15)}.rp-st li.on{color:var(--b)}.rp-st li.on::before{background:var(--b)}
.rp-st li.bad i{background:#e11d48;border-color:#e11d48;box-shadow:0 0 0 4px rgba(225,29,72,.15)}
.rp-pipe,.rp-pend{margin-bottom:14px}
.rp-ph{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.rp-ph h3{margin:0}
.rp-subs{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin-top:12px}
.rp-sub{display:flex;flex-direction:column;gap:1px;padding:8px 10px;border-radius:12px;background:#f4f8ff;border:1px solid var(--ln);position:relative;min-width:0}
.rp-sub b{font-size:13px;color:var(--tx)}.rp-sub small{font-size:11.5px;color:var(--mu);overflow-wrap:anywhere}
.rp-sub i{position:absolute;top:8px;right:9px;font-style:normal;font-size:11px;font-weight:700;color:var(--mu)}
.rp-sub.ok{background:#ecfdf3;border-color:#a7e3bf}.rp-sub.ok i{color:#15803d}
.rp-sub.part{background:#fff8e6;border-color:#f3d791}.rp-sub.part i{color:#b45309}
.rp-pi{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--ln)}.rp-ph+.rp-pi{margin-top:8px}
.rp-pt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.rp-pt b{font-size:14.5px}.rp-pt small{font-size:12px;color:var(--mu);line-height:1.35}
.rp-mb{max-width:760px!important;width:100%;padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px))}
.rp-mh{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.rp-mh h3{margin:0;font-family:var(--fh);font-size:18px}
.rp-kp{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.rp-kp>div{background:#f4f8ff;border:1px solid var(--ln);border-radius:14px;padding:10px;text-align:center}.rp-kp b{display:block;font-family:var(--fh);font-size:18px;color:var(--b)}.rp-kp small{font-size:11px;color:var(--mu)}
.rp-tw{margin-top:12px;max-height:46vh;overflow:auto}
.rp-ra{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:14px}
.rp-ban{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:0 0 14px;border-radius:18px;background:linear-gradient(120deg,#fff7e6,#fff);border:1px solid #f3d791;box-shadow:var(--sh)}
.rp-bi{flex:none;width:40px;height:40px;border-radius:12px;background:#f59e0b;color:#fff;display:grid;place-items:center}.rp-bi svg{width:22px;height:22px}
.rp-bt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.rp-bt b{font-size:14px;color:#7c4a03}.rp-bt small{font-size:12px;color:#8a6a2a;line-height:1.3}
@media(max-width:420px){.rp-st li{font-size:10px}.rp-kp b{font-size:16px}}

/* ---- Professional weekly timetable ---- */
.tp-bar{display:flex;flex-direction:column;gap:12px;margin:0 0 14px;font-family:var(--fb)}
.tp-seg{display:inline-flex;align-self:flex-start;padding:3px;border-radius:12px;background:#e6eefc;gap:2px}
.tp-seg button{border:0;background:transparent;font:600 13px var(--fb);color:#4a5d86;padding:7px 18px;border-radius:9px;cursor:pointer}
.tp-seg button.on{background:#fff;color:var(--b);box-shadow:0 1px 4px rgba(15,29,58,.14)}
.tp-days{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.tp-d{display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 0 8px;border-radius:14px;border:1px solid var(--ln);background:#fff;color:var(--mu);cursor:pointer;font-family:var(--fb);position:relative}
.tp-d small{font-size:11px;font-weight:600;letter-spacing:.02em}.tp-d b{font-family:var(--fh);font-size:17px;color:var(--tx);line-height:1}
.tp-d.td::after{content:"";position:absolute;bottom:4px;width:4px;height:4px;border-radius:50%;background:var(--b)}
.tp-d.on{background:linear-gradient(160deg,var(--b),var(--b2));border-color:transparent;color:rgba(255,255,255,.85);box-shadow:0 8px 18px rgba(29,78,216,.25)}.tp-d.on b{color:#fff}.tp-d.on.td::after{background:#fff}
.tp-card{padding:16px!important;margin-bottom:16px;font-family:var(--fb)}
.tp-hd{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.tp-ti{display:flex;align-items:center;gap:11px;min-width:0}
.tp-ic{flex:none;width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,var(--b),var(--b2));color:#fff;display:grid;place-items:center}.tp-ic svg{width:21px;height:21px}
.tp-ti h3{margin:0;font-family:var(--fh);font-size:17px;line-height:1.2;color:var(--tx)}.tp-ti p{margin:2px 0 0;font-size:12.5px;color:var(--mu)}
.tp-wl{font-size:12px;font-weight:600;color:var(--b);background:#eaf1ff;border-radius:99px;padding:5px 11px;white-space:nowrap}
.tp-sum{display:flex;justify-content:space-between;gap:8px;font-size:12.5px;color:var(--mu);margin:0 2px 10px}.tp-sum b{color:var(--tx)}
.tp-list{display:flex;flex-direction:column;gap:8px}
.tp-r{display:flex;gap:10px;align-items:stretch}
.tp-t{flex:none;width:64px;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:1px;text-align:right;padding-right:2px}
.tp-t b{font-size:12.5px;font-weight:700;color:var(--tx);white-space:nowrap}.tp-t small{font-size:11px;color:var(--mu);white-space:nowrap}.tp-t em{font-style:normal;font-size:10px;font-weight:700;color:var(--b);margin-top:2px}
.tp-c{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px;padding:11px 13px;border-radius:16px;background:color-mix(in srgb,var(--ac) 8%,#fff);border:1px solid color-mix(in srgb,var(--ac) 22%,#fff);border-left:4px solid var(--ac)}
.tp-s{display:flex;align-items:center;justify-content:space-between;gap:8px}.tp-s b{font-family:var(--fh);font-size:15.5px;font-weight:700;color:var(--tx);line-height:1.25}
.tp-nw{font-style:normal;font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#fff;background:#16a34a;padding:2px 8px;border-radius:99px}
.tp-m{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.tp-who{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:500;color:#33466e;min-width:0}
.tp-av{flex:none;width:24px;height:24px;border-radius:50%;background:var(--ac,#2563eb);background:color-mix(in srgb,var(--ac) 16%,#fff);color:var(--ac);display:grid;place-items:center;font-size:10px;font-weight:800;letter-spacing:.02em}
.tp-cl{font-size:11px}
.tp-sub{font-style:normal;font-size:10px;font-weight:700;color:#b45309;background:#fff3d6;border-radius:99px;padding:1px 7px}
.tp-rm{font-size:11.5px;font-weight:600;color:var(--mu);background:rgba(255,255,255,.7);border:1px solid var(--ln);border-radius:99px;padding:2px 9px;white-space:nowrap}
.tp-r.now .tp-c{box-shadow:0 0 0 2px rgba(22,163,74,.35),0 8px 18px rgba(22,163,74,.12)}.tp-r.now .tp-t b{color:#15803d}
.tp-c.empty{background:#f6f9ff;border:1px dashed #c9d8f3;border-left:1px dashed #c9d8f3;color:#8aa0c8;font-size:13px;font-weight:500;justify-content:center;padding:13px}
.tp-r[data-a]{cursor:pointer}.tp-r[data-a]:active .tp-c{transform:scale(.99)}
.tp-brk{display:flex;align-items:center;justify-content:center;gap:10px;padding:7px 12px;margin:2px 0 2px 74px;border-radius:12px;background:#fff7e6;border:1px dashed #f0cf8b;font-size:12px;color:#92600a}.tp-brk b{font-weight:700}
.tp-wk{overflow-x:auto;margin:0 -4px;padding:0 4px 6px;-webkit-overflow-scrolling:touch}
.tp-g{display:grid;grid-template-columns:58px repeat(6,minmax(122px,1fr));gap:6px;min-width:820px}
.tp-gh{padding:9px 6px;border-radius:12px;background:#eef3ff;text-align:center;font-weight:700;font-size:13px;color:var(--b2)}.tp-gh small{display:block;font-size:10.5px;font-weight:500;color:var(--mu)}
.tp-gh.td{background:linear-gradient(160deg,var(--b),var(--b2));color:#fff}.tp-gh.td small{color:rgba(255,255,255,.85)}
.tp-gh.c,.tp-gp{position:sticky;left:0;z-index:2}.tp-gh.c{background:#eef3ff;font-size:12px}
.tp-gp{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;border-radius:12px;font-size:10.5px;color:var(--mu);padding:4px 0;box-shadow:6px 0 8px -6px rgba(15,29,58,.12)}.tp-gp b{font-family:var(--fh);font-size:15px;color:var(--tx)}
.tp-cell{display:flex;flex-direction:column;gap:2px;justify-content:center;min-height:62px;padding:8px 10px;border-radius:12px;background:#f6f9ff;border:1px dashed #d4e0f6;font-size:12px;color:var(--mu)}
.tp-cell i{font-style:normal;text-align:center;color:#a9bbdc}
.tp-cell.on{background:color-mix(in srgb,var(--ac) 9%,#fff);border:1px solid color-mix(in srgb,var(--ac) 24%,#fff);border-left:4px solid var(--ac);color:#33466e}
.tp-cell.on b{font-size:13px;color:var(--tx);font-family:var(--fh)}.tp-cell.on span{font-size:12px;font-weight:500}.tp-cell.on small{font-size:10.5px;color:var(--mu)}
.tp-cell[data-a]{cursor:pointer}
.tp-gb{grid-column:1/-1;text-align:center;padding:6px;border-radius:10px;background:#fff7e6;border:1px dashed #f0cf8b;font-size:11.5px;font-weight:700;letter-spacing:.06em;color:#92600a;text-transform:uppercase}
@media(max-width:420px){.tp-t{width:58px}.tp-brk{margin-left:68px}.tp-s b{font-size:15px}}

/* ===== App-view polish (all portals): revenue boxes, date field, bottom bar ===== */
@media(max-width:820px){
/* Revenue boxes: equal size, label always on top (2-line slot), value always on the bottom line */
.app .dsh .rvh .rvh-g{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1fr!important;gap:10px!important;align-items:stretch}
.app .dsh .rvh .rvh-t{display:grid!important;grid-template-rows:2.5em auto!important;align-content:space-between!important;row-gap:8px!important;min-height:88px!important;padding:12px 14px!important;box-sizing:border-box;text-align:left}
.app .dsh .rvh .rvh-t i{align-self:start!important;line-height:1.25!important;font-size:12px!important;margin:0!important;white-space:normal!important}
.app .dsh .rvh .rvh-t b{align-self:end!important;justify-content:flex-start!important;min-height:1.2em;line-height:1.2!important}
.app .dsh .rvh .rvh-t b small{flex:none}
/* Period row: select + month/date field fit fully (no cut "November 202") */
.app .dsh .rvh-c{display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr)!important;gap:10px!important}
.app .dsh .rvh-c select,.app .dsh .rvh-c input{height:44px!important;font-size:14px!important;padding:0 10px 0 14px!important;text-overflow:clip!important;text-align:left}
.app .dsh .rvh-c select{padding-right:34px!important}
.app .dsh .rvh-c input::-webkit-datetime-edit{padding:0;white-space:nowrap}
.app .dsh .rvh-c input::-webkit-datetime-edit-fields-wrapper{padding:0}
.app .dsh .rvh-c input::-webkit-calendar-picker-indicator{margin:0 0 0 4px;padding:0;width:16px;height:16px;flex:none}

/* Bottom bar: same height for bar and More button, active tab grows so its label always fits */
.abn{align-items:center!important;gap:10px!important}
.abn .abp{height:64px;box-sizing:border-box;align-items:stretch;gap:2px;padding:6px!important}
.abn .abp a{flex:1 1 0!important;min-width:0;justify-content:center;gap:4px!important;padding:0 3px!important;border-radius:999px!important;font-size:clamp(9.5px,2.75vw,10.5px)!important;line-height:1.1;letter-spacing:0;transition:flex-grow .25s ease,background .25s,color .25s}
.abn .abp a.on{flex-grow:1.55!important}
.abn .abp a span{max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.abn .abp a.on span{overflow:visible;text-overflow:clip}
.abn>button{width:64px!important;height:64px!important;display:grid;place-items:center;flex:none}
.abn>button svg{width:26px!important;height:26px!important;stroke:none!important}
.abn>button svg circle{fill:currentColor!important;stroke:none!important;r:2.1px}
}
/* Owner portal tab bar: same behaviour */
.bn button{flex:1 1 0;white-space:nowrap;min-width:0}
.bn button.on{flex-grow:1.35}
@media(max-width:820px){.abn>button svg{overflow:visible}.abn>button svg circle{fill:currentColor!important;stroke:none!important;r:2.3px!important}.abn>button:not(.on){color:#0b2a6b}}

/* ===== ESMOS Admin (owner console): attractive layout, matches the school portal look ===== */
#pl:has(.ow){background:radial-gradient(900px 420px at 92% -6%,#d6e4ff 0,rgba(214,228,255,0) 65%),radial-gradient(700px 380px at -6% 34%,#e4eeff 0,rgba(228,238,255,0) 60%),#f3f7ff!important}
.pn.ob{background:linear-gradient(135deg,#1e4fd8 0%,#0b2a6b 100%)!important;border:0!important;box-shadow:0 12px 30px rgba(11,42,107,.28)!important;color:#fff}
.pn.ob .lgo{display:inline-flex;align-items:center;background:#fff;border-radius:14px;padding:5px 12px;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.pn.ob .lgo img{height:28px;display:block}
.pn.ob>.mu{background:rgba(255,255,255,.16)!important;color:#fff!important;padding:4px 12px!important;border-radius:99px!important;font-weight:600;font-size:12.5px;letter-spacing:.02em}
.pn.ob nav .bt{border-radius:99px!important}
.pn.ob nav .bt.o{background:rgba(255,255,255,.12)!important;color:#fff!important;border:1px solid rgba(255,255,255,.38)!important;box-shadow:none!important}
.pn.ob nav .bt:not(.o){background:#fff!important;color:#1d4ed8!important;box-shadow:0 6px 16px rgba(0,0,0,.2)!important}
/* greeting + quick actions */
.pw.ow .og{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:6px 0 18px}
.og-w{display:flex;align-items:center;gap:12px;min-width:0}
.og-a{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;font-weight:800;font-size:20px;color:#fff;background:linear-gradient(135deg,#2563eb,#0b2a6b);box-shadow:0 10px 22px rgba(29,78,216,.35);flex:none}
.og-w small{display:block;color:#5b6b92;font-size:12.5px}
.og-w h2{margin:1px 0;font-size:22px;color:#0b1b44;letter-spacing:-.01em;line-height:1.2}
.og-w p{margin:0;color:#6b7aa1;font-size:12.5px}
.og-q{display:flex;gap:16px}
.og-q .oq{display:flex;flex-direction:column;align-items:center;gap:7px;background:none;border:0;padding:0;font-family:inherit;font-size:11.5px;font-weight:600;color:#33426b;cursor:pointer}
.og-q .oq span{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:#fff;box-shadow:0 8px 20px rgba(30,58,138,.12);transition:transform .2s,box-shadow .2s}
.og-q .oq:hover span{transform:translateY(-3px);box-shadow:0 14px 26px rgba(30,58,138,.18)}
.og-q .oq:active span{transform:scale(.94)}
.og-q .oq svg{width:22px;height:22px;fill:none;stroke:currentColor}
.og-q .oq:nth-child(1) span{color:#2563eb;background:linear-gradient(145deg,#eaf1ff,#fff)}
.og-q .oq:nth-child(2) span{color:#d97706;background:linear-gradient(145deg,#fff4dc,#fff)}
.og-q .oq:nth-child(3) span{color:#7c3aed;background:linear-gradient(145deg,#f1e9ff,#fff)}
.og-q .oq:nth-child(4) span{color:#059669;background:linear-gradient(145deg,#e3f8ee,#fff)}
/* revenue hero */
.pw.ow .oh{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:end;padding:26px 30px;border-radius:26px;color:#fff;background:linear-gradient(135deg,#1e4fd8 0%,#1b3fb0 45%,#0b2a6b 100%);box-shadow:0 22px 44px rgba(29,78,216,.32);margin-bottom:16px}
.oh::before{content:"";position:absolute;right:-60px;top:-90px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.22),rgba(255,255,255,0) 70%)}
.oh::after{content:"";position:absolute;left:34%;bottom:-130px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(56,189,248,.26),rgba(56,189,248,0) 70%)}
.oh>*{position:relative;z-index:1}
.oh-k{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:rgba(255,255,255,.86)}
.oh-k svg{width:18px;height:18px;fill:none;stroke:currentColor}
.oh-n{font-size:48px;font-weight:800;letter-spacing:-.02em;line-height:1.1;margin:10px 0 14px;font-variant-numeric:tabular-nums}
.oh-n small{font-size:20px;font-weight:600;margin-right:6px;opacity:.8}
.oh-n em{font-style:normal;opacity:.45}
.oh-b{display:inline-block;padding:5px 13px;border-radius:99px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);font-size:12.5px;font-weight:600}
.oh-r{padding-bottom:22px}
.oh-s{display:flex;align-items:flex-end;gap:10px;height:112px}
.oh-s i{flex:1;height:var(--h);min-height:8px;border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.32));position:relative;font-style:normal;transform-origin:bottom;animation:ohg .7s ease both}
.oh-s i:last-child{background:linear-gradient(180deg,#a5e3ff,#38bdf8)}
.oh-s i b{position:absolute;left:50%;transform:translateX(-50%);bottom:-22px;font-size:10.5px;font-weight:600;color:rgba(255,255,255,.78)}
@keyframes ohg{from{transform:scaleY(.1);opacity:0}}
/* tinted stat cards */
.pw.ow .g4{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;margin:0 0 4px!important}
.pw.ow .g4 .kp{position:relative;overflow:hidden;border:1px solid var(--kb)!important;background:linear-gradient(145deg,var(--k1),#fff 82%)!important;border-radius:22px!important;padding:18px 20px!important;box-shadow:0 8px 22px rgba(30,58,138,.07)!important;gap:14px}
.pw.ow .g4 .kp::after{content:"";position:absolute;right:-28px;bottom:-34px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,var(--kg),rgba(255,255,255,0) 70%);pointer-events:none}
.pw.ow .g4 .kp:nth-child(1){--k1:#eaf1ff;--kb:#dbe6ff;--kg:rgba(59,130,246,.28);--ka:#2563eb;--kab:#d9e7ff}
.pw.ow .g4 .kp:nth-child(2){--k1:#fff0f3;--kb:#fddde4;--kg:rgba(244,63,94,.22);--ka:#e11d48;--kab:#ffdfe6}
.pw.ow .g4 .kp:nth-child(3){--k1:#e7fbf6;--kb:#c9f1e6;--kg:rgba(20,184,166,.26);--ka:#0d9488;--kab:#cdf5ec}
.pw.ow .g4 .kp-h{justify-content:flex-start!important;gap:10px}
.pw.ow .g4 .kp-i{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--kab);color:var(--ka);flex:none}
.pw.ow .g4 .kp-i svg{width:19px;height:19px;fill:none;stroke:currentColor}
.pw.ow .g4 .kp-l{color:var(--ka)!important;font-weight:700}
.pw.ow .g4 .kp-n{color:#0b1b44}
.pw.ow .g4 .kp .kp-b{background:var(--kab)!important;color:var(--ka)!important;position:relative;z-index:1}
/* cards, tables */
.pw.ow .card{border:1px solid #e3ebff!important;border-radius:24px!important;box-shadow:0 10px 28px rgba(30,58,138,.07)!important}
.pw.ow .card.scw{background:#fff}
.pw.ow .tb h3{font-size:20px;color:#0b1b44}
.pw.ow thead th{background:#f3f7ff;color:#4a5a86;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;border:0}
.pw.ow thead th:first-child{border-radius:12px 0 0 12px}.pw.ow thead th:last-child{border-radius:0 12px 12px 0}
.pw.ow tbody tr{transition:background .2s}.pw.ow tbody tr:hover{background:#f6f9ff}
.pw.ow tbody td{border-color:#edf1fb}
@media(min-width:821px){
.pw.ow .ot{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;padding:5px;margin:22px 0 18px!important;width:max-content;max-width:100%;overflow-x:auto;background:#fff;border-radius:999px;box-shadow:0 8px 24px rgba(30,58,138,.1)}
.pw.ow .ot .bt{border:0!important;background:transparent!important;color:#3a4a75!important;box-shadow:none!important;border-radius:999px!important;padding:10px 20px!important;font-weight:600;white-space:nowrap}
.pw.ow .ot .bt:not(.o){background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;color:#fff!important;box-shadow:0 8px 18px rgba(29,78,216,.35)!important}
.pw.ow .ot .bt.o:hover{background:#eef3ff!important}
.pw.ow td.ac{display:table-cell!important;text-align:right;white-space:normal!important;min-width:260px;vertical-align:middle}
.pw.ow td.ac .bt{margin:3px 2px;padding:6px 12px;font-size:12px;border-radius:99px;background:#eef3ff!important;color:#1d4ed8!important;box-shadow:none!important;border:0}
.pw.ow td.ac .bt:hover{background:#1d4ed8!important;color:#fff!important}
.pw.ow td.ac .bt[data-p="del"]{background:#fff0f3!important;color:#e11d48!important}
.pw.ow td.ac .bt[data-p="del"]:hover{background:#e11d48!important;color:#fff!important}
}
@media(max-width:820px){
.pw.ow .ot{display:none!important}
.pw.ow{padding:14px 14px calc(110px + env(safe-area-inset-bottom,0px))!important}
.pw.ow .og{margin:2px 0 14px;gap:14px}
.og-w h2{font-size:19px}
.og-q{width:100%;justify-content:space-between;gap:6px}
.og-q .oq span{width:52px;height:52px;border-radius:17px}
.pw.ow .oh{grid-template-columns:1fr;gap:18px;padding:20px;border-radius:24px}
.oh-n{font-size:38px;margin:8px 0 12px}
.oh-s{height:84px}
.pw.ow .g4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin-bottom:18px!important}
.pw.ow .g4 .kp:nth-child(3){grid-column:1/-1}
.pw.ow .g4 .kp{padding:14px!important;border-radius:20px!important}
.pw.ow .g4 .kp-n{font-size:22px}
.pw.ow .g4 .kp-l{font-size:12.5px}
.bn button.on{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;color:#fff!important;box-shadow:0 8px 16px rgba(29,78,216,.35)}
}
@media(max-width:820px){
.pw.ow .g4 .kp,.pw.ow .g4 .kp:first-child{grid-column:auto!important}
.pw.ow .g4 .kp:nth-child(3){grid-column:1/-1!important}
.pw.ow .oh{align-items:start}
.oh-r{padding-bottom:20px}
}

/* ===== QA fixes: alignment / overflow ===== */
.g4 .card.st>div:last-child{min-width:0}
.g4 .st .n,.g4 .st .l,.g4 .st .s{overflow-wrap:anywhere}
@media(min-width:821px){
/* Finance: 5 stat cards -> 3 + 2 balanced rows, bigger text room */
.app .g4:has(>.card.st:nth-child(5)){grid-template-columns:repeat(6,minmax(0,1fr))!important}
.app .g4:has(>.card.st:nth-child(5))>.card.st{grid-column:span 2}
.app .g4:has(>.card.st:nth-child(5))>.card.st:nth-child(n+4){grid-column:span 3}
}
@media(max-width:820px){
/* odd last stat card takes the full row instead of leaving a hole */
.app .g4>.kp:last-child:nth-child(odd){grid-column:1/-1}
/* timetable toolbar: tidy 2-column grid */
.app .ttbar .tb:first-child{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important}
.app .ttbar .tb:first-child>*{margin:0!important;width:100%!important;min-width:0!important;max-width:100%;box-sizing:border-box}
.app .ttbar .tb:first-child [data-a=ttprev]{order:1}
.app .ttbar .tb:first-child [data-a=ttnext]{order:2}
.app .ttbar .tb:first-child [data-c=ttw]{order:3}
.app .ttbar .tb:first-child [data-a=tttoday]{order:4}
.app .ttbar .tb:first-child [data-c=ttc]{order:5;grid-column:1/-1}
/* table-cards: action buttons never shrink or clip, they wrap instead */
.app table.rt td.ac .bt{flex:0 0 auto;white-space:nowrap}
.app table.rt td.ac{row-gap:8px}
}

@media(max-width:420px){.tp-t{width:64px;padding-right:0}.tp-brk{margin-left:74px}}

/* ===== Hubs overview: same card look as the feature cards (accent top border, gradient glow tile, number, round arrow) ===== */
.hb-g:not(.hb-ap){counter-reset:hbn;gap:14px}
.hb-g:not(.hb-ap)>.hb-c{--a1:#3b82f6;--a2:#06b6d4;--rg:59,130,246;counter-increment:hbn;position:relative;overflow:hidden;min-height:176px;gap:16px;padding:22px 20px 20px;border-radius:24px;border:1px solid #e3ebff;border-top:3px solid var(--a1);background:linear-gradient(180deg,#fff 0%,#f6f9ff 100%);box-shadow:0 10px 26px rgba(var(--rg),.10),0 1px 3px rgba(11,42,107,.05);transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s}
.hb-g:not(.hb-ap)>.hb-c[data-hb=help]{--a1:#10b981;--a2:#84cc16;--rg:16,185,129}
.hb-g:not(.hb-ap)>.hb-c[data-hb=sec]{--a1:#f59e0b;--a2:#f97316;--rg:245,158,11}
.hb-g:not(.hb-ap)>.hb-c[data-hb=guide]{--a1:#f43f5e;--a2:#f59e0b;--rg:244,63,94}
.hb-g:not(.hb-ap)>.hb-c[data-hb=about]{--a1:#6366f1;--a2:#38bdf8;--rg:99,102,241}
.hb-g:not(.hb-ap)>.hb-c:hover{transform:translateY(-4px);border-color:#e3ebff;border-top-color:var(--a1);box-shadow:0 18px 36px rgba(var(--rg),.20),0 1px 3px rgba(11,42,107,.06)}
.hb-g:not(.hb-ap)>.hb-c:active{transform:scale(.985)}
.hb-g:not(.hb-ap)>.hb-c:not(.wide)::before{content:"0" counter(hbn);position:absolute;top:16px;right:20px;font-size:12px;font-weight:700;letter-spacing:.08em;color:#a8b6d8}
.hb-g:not(.hb-ap)>.hb-c.wide{counter-increment:none;flex-direction:row;align-items:center;min-height:0;gap:16px;padding:20px}
.hb-g:not(.hb-ap)>.hb-c .hb-ic{width:56px;height:56px;border-radius:18px;background:linear-gradient(135deg,var(--a1),var(--a2));box-shadow:0 12px 24px rgba(var(--rg),.35),inset 0 1px 0 rgba(255,255,255,.5)}
.hb-g:not(.hb-ap)>.hb-c .hb-ic svg{width:28px;height:28px}
.hb-g:not(.hb-ap)>.hb-c .hb-ic svg .s{fill:rgba(255,255,255,.62)}
.hb-g:not(.hb-ap)>.hb-c .hb-ic svg .k{stroke:rgb(var(--rg))}
.hb-g:not(.hb-ap)>.hb-c .hb-ic svg .kd{fill:rgb(var(--rg))}
.hb-g:not(.hb-ap)>.hb-c .hb-t b{font-size:16px;letter-spacing:-.01em}
.hb-g:not(.hb-ap)>.hb-c .hb-n{background:rgba(var(--rg),.12);color:rgb(var(--rg))}
.hb-g:not(.hb-ap)>.hb-c .hb-ch{width:32px;height:32px;padding:8px;border-radius:50%;background:rgba(var(--rg),.10);stroke:rgb(var(--rg));transition:.3s}
.hb-g:not(.hb-ap)>.hb-c:not(.wide) .hb-ch{top:auto;bottom:16px;right:16px}
.hb-g:not(.hb-ap)>.hb-c:hover .hb-ch{background:rgb(var(--rg));stroke:#fff;transform:translateX(2px)}
.hb-g:not(.hb-ap)>.hb-c:not(.wide) .hb-t{padding-right:40px}
@media(max-width:420px){.hb-g:not(.hb-ap)>.hb-c{min-height:168px;padding:20px 16px 18px;border-radius:22px}.hb-g:not(.hb-ap)>.hb-c .hb-ic{width:52px;height:52px;border-radius:16px}.hb-g:not(.hb-ap)>.hb-c:not(.wide)::before{right:16px}}
@media(prefers-reduced-motion:reduce){.hb-g:not(.hb-ap)>.hb-c{transition:none}}

/* Module page: "What you get with ..." is a plain paragraph instead of numbered boxes */
.mph .mhp{margin:12px 0 0;max-width:820px;font-size:16px;line-height:1.8;color:rgba(222,233,255,.88)}
.mph .mhp b{color:#fff;font-weight:700}
@media(max-width:600px){.mph .mhp{font-size:15px;line-height:1.75}}

.mkv{scroll-behavior:auto!important}

/* Hubs accent colours by position (landing page cards have no data-hb attribute) */
.hb-g:not(.hb-ap)>.hb-c:nth-child(2){--a1:#10b981;--a2:#84cc16;--rg:16,185,129}
.hb-g:not(.hb-ap)>.hb-c:nth-child(3){--a1:#f59e0b;--a2:#f97316;--rg:245,158,11}
.hb-g:not(.hb-ap)>.hb-c:nth-child(4){--a1:#f43f5e;--a2:#f59e0b;--rg:244,63,94}
.hb-g:not(.hb-ap)>.hb-c:nth-child(5){--a1:#6366f1;--a2:#38bdf8;--rg:99,102,241}

/* Get your school set up card */
.gsc{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#cfe8fb;border-radius:26px;padding:28px 22px 20px 30px;overflow:hidden}
.gsc-t{flex:1;min-width:0}
.gsc .gsc-t h2{margin:0 0 8px;font-size:26px;line-height:1.2;font-weight:800;color:#14336f;text-align:left}
.gsc .gsc-t p{margin:0 0 20px;color:#3d5a8c;font-size:14px;line-height:1.5;max-width:30ch}
.gsc .gsc-t .bt{background:#fff;color:#1d4ed8;border:0;border-radius:16px;padding:15px 30px;font-weight:600;font-size:16px;box-shadow:none;cursor:pointer}
.gsc .gsc-t .bt:hover{background:#1d4ed8;color:#fff}
.gsc-i{flex:none;width:250px;height:auto;margin-bottom:-6px;overflow:visible}
@media(max-width:560px){.gsc{padding:22px 14px 14px 20px}.gsc .gsc-t h2{font-size:21px}.gsc-i{width:150px}.gsc .gsc-t p{display:none}.gsc .gsc-t .bt{padding:13px 22px;font-size:15px}}

/* How it works accordion boxes */
.nacc{max-width:780px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.nb{border-radius:20px;overflow:hidden;background:linear-gradient(160deg,rgba(40,84,175,.65),rgba(15,40,105,.85));border:1px solid rgba(120,200,255,.3);transition:border-color .4s,box-shadow .4s}
.nb:hover{border-color:rgba(39,211,255,.55)}
.nb.open{border-color:#27d3ff;box-shadow:0 0 0 1px rgba(39,211,255,.45),0 0 34px rgba(39,211,255,.3),inset 0 0 40px rgba(39,211,255,.07)}
.nbh{display:flex;align-items:center;gap:14px;width:100%;padding:18px 20px;background:none;border:0;color:#eaf4ff;cursor:pointer;font:inherit;text-align:left}
.nbn{min-width:56px;font-size:30px;font-weight:700;line-height:1;color:transparent;-webkit-text-stroke:1px rgba(170,215,255,.6)}
.nb .nic{flex:none;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:rgba(39,211,255,.12);color:#27d3ff;border:1px solid rgba(39,211,255,.4)}
.nb .nic .i{width:19px;height:19px}
.nbt2{flex:1;font-size:18px;font-weight:600}
.nb.open .nbt2{text-shadow:0 0 16px rgba(39,211,255,.5)}
.nbc{flex:none;position:relative;width:28px;height:28px;border-radius:50%;border:1px solid rgba(39,211,255,.55)}
.nbc::before,.nbc::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;margin:-1px 0 0 -6px;border-radius:2px;background:#27d3ff;transition:transform .3s}
.nbc::after{transform:rotate(90deg)}
.nb.open .nbc::after{transform:rotate(0)}
.nbd{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s ease}
.nb.open .nbd{grid-template-rows:1fr}
.nbi{overflow:hidden;min-height:0}
.nbx{padding:0 22px 22px 90px}
.nbx p{margin:0 0 14px;color:#c3d6f7;font-size:15px;line-height:1.6}
.nbx ul{margin:0;padding:0;list-style:none;display:grid;gap:9px}
.nbx li{position:relative;padding-left:28px;color:#eaf4ff;font-size:14.5px;line-height:1.5}
.nbx li::before{content:"";position:absolute;left:0;top:3px;width:16px;height:16px;border-radius:50%;background:rgba(39,211,255,.16);border:1px solid #27d3ff}
.nbx li::after{content:"";position:absolute;left:6px;top:6px;width:3px;height:7px;border:solid #27d3ff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.nbx .nbb{margin-top:16px;padding:11px 24px;border:0;border-radius:99px;font:700 14px Inter,system-ui,sans-serif;color:#031024;background:linear-gradient(135deg,#27d3ff,#2f6bff);box-shadow:0 0 22px rgba(39,211,255,.45);cursor:pointer}
@media(max-width:560px){.nbh{padding:15px 14px;gap:10px}.nbn{min-width:40px;font-size:23px}.nbt2{font-size:16px}.nb .nic{width:34px;height:34px}.nbx{padding:0 16px 18px 16px}}
@media(prefers-reduced-motion:reduce){.nbd,.nbc::before,.nbc::after{transition:none}}

/* How it works: illustrated detail cards */
.ncg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:1040px;margin:0 auto;align-items:start}
.nhw .nk{position:relative;overflow:hidden;border-radius:26px;background:var(--bg);color:var(--dk);padding:26px 20px 22px 26px;transition:transform .3s,box-shadow .3s}
.nhw .nk:hover{transform:translateY(-3px);box-shadow:0 16px 42px rgba(0,0,0,.28)}
.nk-top{display:flex;align-items:center;justify-content:space-between;gap:6px;cursor:pointer}
.nk-t{flex:1;min-width:0}
.nk-n{display:inline-block;margin-bottom:10px;padding:4px 11px;border-radius:99px;background:#fff;color:var(--ac);font-size:11.5px;font-weight:700;letter-spacing:.08em}
.nhw .nk h3{margin:0 0 8px;font-size:23px;line-height:1.2;font-weight:800;color:var(--dk)}
.nhw .nk p{margin:0 0 16px;max-height:none;opacity:.82;color:var(--dk);font-size:14px;line-height:1.55}
.nk-b{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border:0;border-radius:15px;background:#fff;color:var(--ac);font:600 15px Inter,system-ui,sans-serif;cursor:pointer}
.nk-b::before{content:"View details"}
.nk.open .nk-b::before{content:"Hide details"}
.nk-b em{width:8px;height:8px;border:solid var(--ac);border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px);transition:transform .3s}
.nk.open .nk-b em{transform:rotate(-135deg) translateY(-2px)}
.nk-i{flex:none;width:190px;height:auto;overflow:visible}
.nk-d{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s ease}
.nk.open .nk-d{grid-template-rows:1fr}
.nk-di{overflow:hidden;min-height:0}
.nk-dx{margin-top:16px;padding:18px 18px 18px;border-radius:18px;background:rgba(255,255,255,.7)}
.nk-dx ul{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.nk-dx li{position:relative;padding-left:28px;color:var(--dk);font-size:14.5px;line-height:1.5}
.nk-dx li::before{content:"";position:absolute;left:0;top:3px;width:16px;height:16px;border-radius:50%;background:var(--ac);opacity:.18}
.nk-dx li::after{content:"";position:absolute;left:6px;top:6px;width:3px;height:7px;border:solid var(--ac);border-width:0 2px 2px 0;transform:rotate(45deg)}
.nk-go{margin-top:16px;padding:11px 24px;border:0;border-radius:99px;background:var(--ac);color:#fff;font:700 14px Inter,system-ui,sans-serif;cursor:pointer}
.nk-fl{animation:nkFl 3.2s ease-in-out infinite}
@keyframes nkFl{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.nk-tw{transform-box:fill-box;transform-origin:center;animation:nkTw 2.4s ease-in-out infinite}
@keyframes nkTw{0%,100%{transform:scale(.3);opacity:.3}50%{transform:scale(1);opacity:1}}
.nk-spin{transform-box:fill-box;transform-origin:center;animation:nkSp 9s linear infinite}
@keyframes nkSp{to{transform:rotate(360deg)}}
.nk-bar{transform-box:fill-box;transform-origin:left center;animation:nkBar 3.6s ease-in-out infinite}
@keyframes nkBar{0%{transform:scaleX(.12)}60%,100%{transform:scaleX(1)}}
.nk-dot{animation:nkDot 1.2s ease-in-out infinite}
@keyframes nkDot{0%,100%{opacity:.25}50%{opacity:1}}
.nk-fire{transform-box:fill-box;transform-origin:center top;animation:nkFire .45s ease-in-out infinite alternate}
@keyframes nkFire{from{transform:scaleY(.8)}to{transform:scaleY(1.18)}}
.nk-pu{transform-box:fill-box;transform-origin:center;animation:nkPu 2s ease-in-out infinite}
@keyframes nkPu{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
@media(max-width:760px){.ncg{grid-template-columns:1fr}.nhw .nk{padding:22px 14px 20px 20px}.nk-i{width:140px}.nhw .nk h3{font-size:20px}}
@media(prefers-reduced-motion:reduce){.nk-fl,.nk-tw,.nk-spin,.nk-bar,.nk-dot,.nk-fire,.nk-pu{animation:none}.nk-d{transition:none}}

/* Get your school set up: desktop fix */
#p-contact.ps{max-width:980px!important}
.gsc{padding:40px 48px 34px 56px;gap:24px;border-radius:32px}
.gsc .gsc-t h2{font-size:clamp(28px,3.2vw,38px);line-height:1.15}
.gsc .gsc-t h2::after{content:none!important;display:none!important}
.gsc .gsc-t p{max-width:36ch;font-size:16px;margin-bottom:26px}
.gsc .gsc-t .bt{padding:17px 36px;font-size:17px}
.gsc .gsc-i{width:min(380px,44%);margin-bottom:-10px}
@media(max-width:900px){.gsc{padding:30px 28px 24px 32px}.gsc .gsc-i{width:min(260px,42%)}}
@media(max-width:560px){.gsc{padding:22px 14px 14px 20px;border-radius:26px}.gsc .gsc-t h2{font-size:21px}.gsc .gsc-i{width:140px}.gsc .gsc-t p{display:none}.gsc .gsc-t .bt{padding:13px 22px;font-size:15px}}

/* How it works: light background (dark theme removed) */
.nhw{background:linear-gradient(180deg,#f7faff,#eaf3ff);color:#0b2a6b}
.nhw::before{display:none}
.nhw .ntag{border:1px solid #bcd4fb;background:#fff;color:#1d4ed8;box-shadow:0 4px 14px rgba(29,78,216,.1)}
.nhw .nh2{color:#0b2a6b}
.nhw .nh2 span{color:#1d4ed8;text-shadow:none}
.nhw .nsub{color:#4a5d85}
.nhw .nk{box-shadow:0 8px 24px rgba(29,78,216,.1)}
.nhw .nk:hover{box-shadow:0 16px 38px rgba(29,78,216,.2)}
.nhw .nbt{color:#fff;background:linear-gradient(135deg,#2f6bff,#1d4ed8);box-shadow:0 8px 22px rgba(29,78,216,.3)}
.nhw .nbt:hover{box-shadow:0 12px 30px rgba(29,78,216,.45)}

/* Get your school set up: laptop width fix */
.gsc{padding:38px 34px 32px 44px}
.gsc .gsc-t h2{font-size:clamp(26px,2.4vw,32px);line-height:1.2;margin-bottom:14px;text-wrap:balance}
.gsc .gsc-t p{max-width:34ch;font-size:15.5px;margin-bottom:24px}
.gsc .gsc-i{width:min(340px,42%)}
@media(min-width:900px){.gsc .gsc-t h2{white-space:nowrap}}
@media(max-width:900px){.gsc .gsc-t h2{white-space:normal}}

/* Mobile fixes: setup card and step cards stack vertically */
@media(max-width:560px){
.gsc{flex-direction:column;align-items:stretch;gap:0;padding:24px 20px 6px;border-radius:24px}
.gsc .gsc-t h2{font-size:24px;line-height:1.2;white-space:normal;margin-bottom:10px}
.gsc .gsc-t p{display:block;max-width:none;font-size:14.5px;margin-bottom:18px}
.gsc .gsc-t .bt{padding:14px 26px;font-size:16px}
.gsc .gsc-i{width:min(300px,88%);align-self:center;margin:14px 0 0}
.nk-top{flex-direction:column-reverse;align-items:flex-start;gap:6px}
.nk-i{width:min(230px,82%);align-self:center}
.nhw .nk{padding:20px 18px 20px}
}

/* Mobile: setup card keeps text left + illustration right (side by side) */
@media(max-width:560px){
.gsc{flex-direction:row;align-items:center;gap:6px;padding:22px 12px 12px 20px;border-radius:24px}
.gsc .gsc-t{flex:1 1 58%;min-width:0}
.gsc .gsc-t h2{font-size:22px;line-height:1.2;margin:0}
.gsc .gsc-t h2::after{content:""!important;display:block!important;width:88px;height:3px;border-radius:3px;background:linear-gradient(90deg,#2f6bff,#8ec5ff);margin:12px 0}
.gsc .gsc-t p{display:block;max-width:none;font-size:13px;line-height:1.5;margin:0 0 16px}
.gsc .gsc-t .bt{padding:13px 24px;font-size:15px}
.gsc .gsc-i{flex:0 0 50%;width:50%;max-width:210px;align-self:flex-end;margin:0 -4px -4px 0}
.gsc .gsc-t{flex:1 1 50%}
.gsc .gsc-t h2{font-size:20px}
.gsc .gsc-t p{font-size:12.5px}
.gsc .gsc-t .bt{padding:12px 20px;font-size:14.5px}
}

/* Mobile: setup card, balanced proportions (scales with screen width) */
@media(max-width:560px){
.gsc{align-items:center;gap:2px;padding:20px 8px 20px 18px}
.gsc .gsc-t{flex:1 1 46%}
.gsc .gsc-t h2{font-size:clamp(16px,5.4vw,22px)}
.gsc .gsc-t h2::after{width:clamp(56px,20vw,88px);margin:10px 0}
.gsc .gsc-t p{font-size:clamp(11px,3.3vw,13px);margin:0 0 14px}
.gsc .gsc-t .bt{padding:clamp(10px,3vw,13px) clamp(14px,4.5vw,22px);font-size:clamp(12px,3.7vw,15px);white-space:nowrap}
.gsc .gsc-i{flex:0 0 54%;width:54%;max-width:230px;align-self:center;margin:0 -8px 0 0}
}

/* CTA "Ready to run your school smarter?": flat illustration replaces phone mockup */
.cpr{align-self:center;margin:0;padding:0;display:block}
.cpill{display:block;width:min(500px,100%);height:auto;margin:0 auto;overflow:visible}
.cpr .cfl.f1{left:0;top:4%}
.cpr .cfl.f2{right:0;top:auto;bottom:22%;left:auto}
@media(min-width:821px){.capp{padding-top:44px;padding-bottom:36px}.cpr .cfl.f1{left:0;top:6%}.cpr .cfl.f2{right:0;top:auto;bottom:22%}}
@media(max-width:820px){.capp{padding:34px 22px 0}.cpr{margin:10px 0 0;padding-top:50px}.cpr .cfl.f1{left:0;top:4px}.cpr .cfl.f2{right:0;top:30px;bottom:auto}.cpill{width:min(440px,100%);margin-bottom:-6px}}

/* CTA illustration: chips live inside the SVG now */
@media(max-width:820px){.capp .cpr{padding-top:8px}}

/* ===== Setup card: DESKTOP (701px+) - reference design ===== */
@media(min-width:701px){
#p-contact{container-type:inline-size;--v:.12077cqw}
#p-contact .gsc{flex-direction:row;align-items:center;justify-content:space-between;gap:calc(var(--v)*24);padding:calc(var(--v)*29) calc(var(--v)*44);border-radius:calc(var(--v)*36)}
#p-contact .gsc .gsc-t{flex:0 1 calc(var(--v)*330);min-width:0}
#p-contact .gsc .gsc-t h2{font-size:max(19px,calc(var(--v)*25));line-height:1.3;margin:0 0 calc(var(--v)*16);white-space:nowrap}
#p-contact .gsc .gsc-t h2::after{content:none!important;display:none!important}
#p-contact .gsc .gsc-t p{display:block;font-size:max(12.5px,calc(var(--v)*14.5));line-height:1.65;max-width:calc(var(--v)*310);margin:0 0 calc(var(--v)*26)}
#p-contact .gsc .gsc-t .bt{display:inline-flex;align-items:center;justify-content:center;padding:0 max(18px,calc(var(--v)*36));height:max(42px,calc(var(--v)*54));min-width:calc(var(--v)*163);border-radius:calc(var(--v)*16);font-size:max(14px,calc(var(--v)*16));font-weight:500;white-space:nowrap}
#p-contact .gsc .gsc-i{flex:0 0 calc(var(--v)*317);width:calc(var(--v)*317);max-width:none;margin:0;align-self:center}
}

/* ===== Setup card: MOBILE (700px and below) - same design, separate rules ===== */
@media(max-width:700px){
#p-contact{container-type:inline-size;--v:.12077cqw}
#p-contact .gsc{flex-direction:row;align-items:center;justify-content:space-between;gap:max(8px,calc(var(--v)*24));padding:max(16px,calc(var(--v)*29)) max(16px,calc(var(--v)*44));border-radius:max(22px,calc(var(--v)*36))}
#p-contact .gsc .gsc-t{flex:1 1 0;width:auto;min-width:0}
#p-contact .gsc .gsc-t h2{font-size:max(13px,calc(var(--v)*25));line-height:1.3;margin:0 0 max(8px,calc(var(--v)*16));white-space:normal}
#p-contact .gsc .gsc-t h2::after{content:none!important;display:none!important}
#p-contact .gsc .gsc-t p{display:block;font-size:max(10.5px,calc(var(--v)*14.5));line-height:1.55;max-width:none;margin:0 0 max(12px,calc(var(--v)*26))}
#p-contact .gsc .gsc-t .bt{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;height:max(34px,calc(var(--v)*54));padding:0 max(16px,calc(var(--v)*36));border-radius:max(12px,calc(var(--v)*16));font-size:max(12px,calc(var(--v)*16));font-weight:500;white-space:nowrap}
#p-contact .gsc .gsc-i{flex:0 0 calc(var(--v)*317);width:calc(var(--v)*317);min-width:110px;max-width:none;margin:0;align-self:center}
}

/* ===== MOBILE TYPOGRAPHY POLISH (consistent scale, no tiny text) ===== */
@media(max-width:700px){
  /* Hero */
  .ph h1{font-size:32px!important;line-height:1.14!important;letter-spacing:-.02em!important}
  .ph p{font-size:16px!important;line-height:1.6!important}
  .ph .bt,.phb .bt{font-size:16px!important;font-weight:700!important;min-height:50px!important;padding:14px 18px!important;border-radius:16px!important}
  /* All content buttons same size */
  .bt,.nbt{font-size:16px!important}
  /* Top bar buttons: even size */
  .pn.ov nav .bt{font-size:13.5px!important;font-weight:600!important}
  /* Section titles & intros */
  #p-features h2,.mkc h2{font-size:26px!important;line-height:1.2!important;letter-spacing:-.015em!important}
  #p-features .mkw.nph .mkc>p,#p-features .mkc>p{font-size:15px!important;line-height:1.6!important}
  .nhw .nh2{font-size:28px!important;line-height:1.15!important}
  .nhw .nsub{font-size:16px!important;line-height:1.6!important}
  .nhw .ntag{font-size:12.5px!important}
  /* Feature tiles */
  #p-features .mkw.nph .mkl b,.mpm .mkl b{font-size:13px!important;line-height:1.3!important;font-weight:700!important}
  #p-features .mkl small,.mpm .mkl small{font-size:12.5px!important}
  /* How-it-works cards */
  .nk-n{font-size:12.5px!important;padding:5px 12px!important}
  .nhw .nk h3{font-size:22px!important}
  .nhw .nk p{font-size:15px!important;line-height:1.6!important;opacity:.88!important}
  .nk-go,.nk .bt{font-size:16px!important;font-weight:600!important}
  .nk-dx li{font-size:15px!important}
  /* CTA band + Get-started card */
  .fcta h3{font-size:26px!important;line-height:1.2!important}
  .fcta p{font-size:16px!important;line-height:1.55!important}
  .fcta .bt,.fcb{font-size:16px!important;font-weight:700!important;min-height:50px!important}
  .gsc .gsc-t h2{font-size:23px!important;line-height:1.2!important}
  .gsc .gsc-t p{font-size:15px!important;line-height:1.55!important;max-width:none!important;margin-bottom:16px!important}
  .gsc .gsc-t .bt{font-size:16px!important;font-weight:700!important;padding:13px 24px!important}
  /* Hubs */
  .hb-t b,.hb-g:not(.hb-ap)>.hb-c .hb-t b{font-size:16px!important}
  .hb-t span{font-size:13.5px!important;line-height:1.45!important}
  .hb-n{font-size:12.5px!important}
  .hb-top h2{font-size:20px!important}
  .hb-top p{font-size:14px!important}
  .hb-r>summary,.hb-r>.hb-rh{font-size:15px!important}
  .hb-r>div,.hb-ab p{font-size:14.5px!important}
  .hb-rt small{font-size:13.5px!important}
  .hb-ct a{font-size:14px!important}
  /* Mini-apps hub cards */
  .mhc b{font-size:15px!important}
  .mhc small{font-size:13px!important}
  /* Bottom nav labels & footer */
  .pn b,nav b{font-size:12px!important}
  .fgr a,.fgr li,.fbt,.fbt span,.ftop{font-size:14px!important}
  .fgr h4{font-size:15px!important}
}
@media(max-width:360px){
  .ph h1{font-size:28px!important}
  #p-features h2,.mkc h2{font-size:23px!important}
  #p-features .mkw.nph .mkl b,.mpm .mkl b{font-size:12px!important}
  .nhw .nh2{font-size:25px!important}
}

/* ===== CTA dashboard illustration: gentle animation ===== */
.cpill *{transform-box:fill-box}
.cpill .cglow{transform-origin:center;animation:cqGlow 5s ease-in-out infinite}
.cpill .cring{transform-box:view-box;transform-origin:250px 150px;animation:cqSpin 70s linear infinite}
.cpill .cbar{transform-origin:50% 100%;animation:cqGrow .9s cubic-bezier(.2,.8,.2,1) both,cqBreathe 3.2s ease-in-out 1.2s infinite alternate}
.cpill .cbar.b1{animation-delay:.1s,1.2s}.cpill .cbar.b2{animation-delay:.2s,1.5s}.cpill .cbar.b3{animation-delay:.3s,1.8s}
.cpill .cbar.b4{animation-delay:.4s,2.1s}.cpill .cbar.b5{animation-delay:.5s,2.4s}.cpill .cbar.b6{animation-delay:.6s,2.7s}
.cpill .cln{stroke-dasharray:100;stroke-dashoffset:100;animation:cqDraw 6s ease-in-out 1s infinite}
.cpill .carea{animation:cqArea 6s ease-in-out 1s infinite}
.cpill .cpulse{transform-origin:center;animation:cqPulse 2.4s ease-out infinite}
.cpill .cstat{transform-origin:0 100%;animation:cqPop 5s ease-in-out infinite}
.cpill .cstat.s2{animation-delay:.25s}.cpill .cstat.s3{animation-delay:.5s}
.cpill .cshine{animation:cqShine 5.5s ease-in-out 1.5s infinite}
.cpill .cste{animation:cqSteam 2.8s ease-in-out infinite;opacity:0}
.cpill .cste.st2{animation-delay:1.1s}
.cpill .cplant{transform-origin:50% 100%;animation:cqSway 4.5s ease-in-out infinite alternate}
.cpill .cwave{transform-box:view-box;transform-origin:416px 158px;animation:cqWave 2.2s ease-in-out infinite}
.cpill .cblink{transform-origin:center;animation:cqBlink 4.5s infinite}
.cpill .cchip{animation:cqFloat 4s ease-in-out infinite}
.cpill .cchip.c2{animation-duration:4.6s;animation-delay:-1.4s}
.cpill .cchip.c3{animation-duration:3.4s;animation-delay:-.6s}
.cpill .cchip.c3 path{transform-origin:center;animation:cqTwirl 6s ease-in-out infinite}
.cpill .cripple{transform-origin:center;animation:cqRipple 2.4s ease-out infinite}
.cpill .cripple.r2{animation-delay:1.2s}
.cpill .ctw{transform-origin:center;animation:cqTwinkle 2.8s ease-in-out infinite}
.cpill .ctw.t2{animation-delay:.7s}.cpill .ctw.t3{animation-delay:1.3s}.cpill .ctw.t4{animation-delay:.3s}.cpill .ctw.t5{animation-delay:1.9s}
.cpill .cconf{animation:cqDrift 5s ease-in-out infinite alternate}
.cpill .cconf.k2{animation-delay:-1s}.cpill .cconf.k3{animation-delay:-2s}.cpill .cconf.k4{animation-delay:-3s}.cpill .cconf.k5{animation-delay:-4s}
@keyframes cqGlow{0%,100%{opacity:.75;transform:scale(.96)}50%{opacity:1;transform:scale(1.05)}}
@keyframes cqSpin{to{transform:rotate(360deg)}}
@keyframes cqGrow{from{transform:scaleY(.04);opacity:.4}to{transform:scaleY(1);opacity:1}}
@keyframes cqBreathe{from{transform:scaleY(1)}to{transform:scaleY(.86)}}
@keyframes cqDraw{0%{stroke-dashoffset:100}40%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:-100}}
@keyframes cqArea{0%,10%{opacity:0}40%,85%{opacity:1}100%{opacity:0}}
@keyframes cqPulse{0%{opacity:.55;transform:scale(.5)}100%{opacity:0;transform:scale(2.2)}}
@keyframes cqPop{0%,82%,100%{transform:scale(1)}90%{transform:scale(1.18)}}
@keyframes cqShine{0%{transform:translateX(0)}45%,100%{transform:translateX(520px)}}
@keyframes cqSteam{0%{opacity:0;transform:translateY(4px)}40%{opacity:.9}100%{opacity:0;transform:translateY(-9px)}}
@keyframes cqSway{from{transform:rotate(-3deg)}to{transform:rotate(3.5deg)}}
@keyframes cqWave{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(9deg)}}
@keyframes cqBlink{0%,93%,100%{transform:scaleY(1)}96%{transform:scaleY(.1)}}
@keyframes cqFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes cqTwirl{0%,70%,100%{transform:rotate(0) scale(1)}85%{transform:rotate(72deg) scale(1.2)}}
@keyframes cqRipple{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(2.1)}}
@keyframes cqTwinkle{0%,100%{opacity:.25;transform:scale(.6)}50%{opacity:1;transform:scale(1.25)}}
@keyframes cqDrift{from{transform:translateY(0) rotate(0)}to{transform:translateY(8px) rotate(25deg)}}
@media(prefers-reduced-motion:reduce){.cpill *{animation:none!important}.cpill .cln{stroke-dashoffset:0}}
.cpill .chead{transform-box:view-box;transform-origin:442px 140px;animation:cqNod 4s ease-in-out infinite alternate}
@keyframes cqNod{from{transform:rotate(-2deg)}to{transform:rotate(2.5deg)}}

/* CTA band: lighter, brighter background */
.capp{background:radial-gradient(circle at 88% 18%,rgba(255,255,255,.34),transparent 42%),radial-gradient(circle at 0 100%,rgba(186,230,253,.35),transparent 48%),linear-gradient(135deg,#2f6df0,#4a9bff 58%,#7ccbff)!important;box-shadow:0 24px 50px rgba(59,130,246,.28)!important}
.capp p{color:rgba(255,255,255,.96)!important}

/* ===== DESKTOP LAYOUT POLISH: use full width, less empty white space ===== */
@media(min-width:1024px){
  /* Hero: keep photo on the right so text never sits on the flags */
  .ph.lt.fl::before{inset:0 0 0 44%!important;background:var(--himg) 62% center/cover no-repeat!important;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 34%);mask-image:linear-gradient(90deg,transparent 0,#000 34%)}
  /* Common section width + tighter vertical rhythm */
  .ps{max-width:1180px!important;padding:40px 40px!important}
  #p-features.ps{padding-top:44px!important;padding-bottom:36px!important}
  #p-features .mkw.nph{max-width:1180px!important}
  #p-features .mkw.nph .mkls{gap:18px!important}
  #p-features .mkw.nph .mkl{padding:20px 12px 18px!important}
  .nhw{padding-top:56px!important;padding-bottom:56px!important}
  .nhw .nhw-in{max-width:1180px!important}
  .nhw .nsub{margin-bottom:34px!important}
  .nhw .ncg{max-width:1180px!important;gap:24px!important}
  .nhw .nact{margin-top:30px!important}
  /* CTA band: contained, rounded, same width as the rest */
  .capw{padding:0 40px!important;margin:44px 0!important}
  .capw .capp{max-width:1180px!important;margin:0 auto!important;border-radius:32px!important;padding:44px 56px!important}
  /* Get your school set up */
  #p-contact.ps{max-width:1180px!important;padding-top:8px!important;padding-bottom:28px!important}
  #p-contact .gsc{justify-content:space-between!important}
  /* Hubs: full-width, 4 cards in a row */
  #p-hubs.ps{max-width:1180px!important;padding-top:20px!important;padding-bottom:60px!important}
  #p-hubs .hb{width:100%!important;max-width:none!important}
  .hb-g:not(.hb-ap){grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
  .hb-g:not(.hb-ap)>.hb-c.wide{grid-column:1/-1!important}
  .hb-ap{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
}
@media(min-width:1500px){
  .ps,#p-contact.ps,#p-hubs.ps,#p-features .mkw.nph,.nhw .nhw-in,.nhw .ncg,.capw .capp{max-width:1280px!important}
}

@media(min-width:1024px){
  .ph.lt.fl{background:linear-gradient(180deg,#cfe3ff,#eef5ff 62%)!important}
}

@media(min-width:1024px){
  .capw{max-width:none!important;width:100%!important}
}

@media(min-width:1024px){
  .capw .capp{max-width:1100px!important}
  #p-contact .gsc{padding-top:22px!important;padding-bottom:22px!important}
  #p-hubs.ps{padding-bottom:36px!important}
}
@media(min-width:1500px){.capw .capp{max-width:1200px!important}}

@media(min-width:1024px){
  #hbh{padding:22px 40px 0!important;max-width:1180px;margin:0 auto}
  #hbh .hb{max-width:1040px!important}
}

/* ===== Same "Run your whole school" background behind every section below ===== */
#pl:has(#p-features){background:
  linear-gradient(rgba(29,78,216,.06) 1px,transparent 1px) 0 0/44px 44px,
  linear-gradient(90deg,rgba(29,78,216,.06) 1px,transparent 1px) 0 0/44px 44px,
  radial-gradient(55% 40% at 6% 30%,rgba(125,211,252,.40),transparent 70%) 0 0/100% 1100px repeat-y,
  radial-gradient(50% 40% at 96% 75%,rgba(165,180,252,.28),transparent 70%) 0 0/100% 1100px repeat-y,
  linear-gradient(180deg,#f7fbff 0%,#e4f0ff 55%,#f7fbff 100%) 0 0/100% 1100px repeat-y!important}
#pl:has(#p-features) #p-features{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important}
#pl:has(#p-features) #p-features::before{display:none!important}
#pl:has(#p-features) .nhw{background:none!important}

/* ===== How it works cards: compact mobile layout (title left, small illustration right) ===== */
@media(max-width:700px){
  .nhw .ncg{gap:16px!important}
  .nhw .nk{padding:20px 18px 18px!important;border-radius:24px!important}
  .nhw .nk-top{display:grid!important;grid-template-columns:minmax(0,1fr) 116px;grid-template-areas:"n i" "h i" "p p" "b b";column-gap:8px;align-items:center}
  .nhw .nk-t{display:contents!important}
  .nhw .nk-n{grid-area:n;justify-self:start;align-self:end;margin:0 0 8px!important}
  .nhw .nk h3{grid-area:h;align-self:start;margin:0!important;font-size:23px!important}
  .nhw .nk-top>svg.nk-i{grid-area:i;width:116px!important;max-width:none!important;height:auto!important;margin:0!important;justify-self:end;align-self:center}
  .nhw .nk p{grid-area:p;margin:4px 0 16px!important}
  .nhw .nk-b{grid-area:b;justify-self:start}
}

.nhw .nsub{text-wrap:balance}

/* ===== How it works: no pill, tighter spacing ===== */
.nhw .ntag{display:none!important}
.nhw{padding-top:22px!important;padding-bottom:26px!important}
#pl:has(#p-features) #p-features{margin-bottom:0!important;padding-bottom:18px!important}
.nhw .nh2{margin-top:0!important}
.nhw .nsub{margin:8px auto 20px!important}
.nhw .nact{margin-top:18px!important}
.capw{margin-top:18px!important;margin-bottom:26px!important}
@media(min-width:1024px){
  .nhw{padding-top:30px!important;padding-bottom:34px!important}
  .nhw .nsub{margin:10px auto 26px!important}
  #pl:has(#p-features) #p-features{padding-bottom:22px!important}
  .capw{margin-top:26px!important;margin-bottom:34px!important}
}

/* ===== How it works heading: left aligned ===== */
.nhw .nh2,.nhw .nsub{text-align:left!important}
.nhw .nsub{margin-left:0!important;margin-right:0!important;max-width:560px!important;text-wrap:pretty!important}
.nhw .nact{text-align:center}

/* =====================================================================
   Landing: flat cards (no drop shadow) + one consistent size / spacing system
   ===================================================================== */
#pl .capp,#pl .capp:hover,#pl .capp .bt,#pl .capp .bt:hover,
#pl .gsc,#pl .gsc .bt,#pl .gsc .bt:hover,
#pl .nhw .nk,#pl .nhw .nk:hover{box-shadow:none!important;filter:none!important;text-shadow:none!important}
#pl .capp .bt:hover,#pl .nhw .nk:hover{transform:none!important}

@media(max-width:700px){
  /* same side gutter and same gap between every landing section */
  #pl .ps{padding-left:16px!important;padding-right:16px!important}
  #pl .capw{padding:0 16px!important;margin:20px 0 20px!important;max-width:none!important}
  #pl .capw .capp{max-width:none!important;width:100%!important;margin:0!important;border-radius:24px!important}
  #pl #p-contact.ps{max-width:none!important;padding:0 16px 24px!important;margin:0!important}
  #pl #p-contact .gsc{width:100%!important;margin:0!important;border-radius:24px!important;box-sizing:border-box}

  /* same card padding */
  #pl .capw .capp{padding:28px 20px 0!important}
  #pl #p-contact .gsc{padding:26px 14px 0 20px!important}

  /* same heading / text / button sizes in both cards */
  #pl .capp h2,#pl #p-contact .gsc .gsc-t h2{font-size:clamp(21px,6.2vw,24px)!important;line-height:1.25!important;margin:0 0 10px!important;white-space:normal!important;text-align:left!important}
  #pl .capp p,#pl #p-contact .gsc .gsc-t p{font-size:14px!important;line-height:1.5!important;margin:0 0 18px!important;max-width:none!important;display:block!important}
  #pl .capp .bt,#pl #p-contact .gsc .gsc-t .bt{display:inline-flex!important;align-items:center;justify-content:center;height:46px!important;min-width:0!important;padding:0 22px!important;border-radius:14px!important;font-size:15px!important;font-weight:600!important;line-height:1!important;white-space:nowrap}
  #pl .capp .bt{width:100%!important}
  #pl #p-contact .gsc .gsc-t{flex:1 1 52%!important}
  #pl #p-contact .gsc .gsc-i{margin:0 -4px 0 0!important;align-self:flex-end!important}

  /* How-it-works cards: same radius and gap as the two cards above */
  #pl .nhw .nk{border-radius:24px!important}
}

/* CTA band removed: keep the same gap before the contact card */
#pl #p-contact.ps{padding-top:20px!important}
@media(min-width:1024px){#pl #p-contact.ps{padding-top:28px!important}}


/* admin dashboard: 5 stat cards in one desktop row */
@media(min-width:821px){.app .dsh .g4,.dsh .g4{grid-template-columns:repeat(5,minmax(0,1fr))!important}}

/* footer contact icons: WhatsApp matches Email/Call (white outline in a round button) */
.fcol .fso a.fwa{width:42px!important;height:42px!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:50%!important;color:#fff!important}
.fcol .fso a.fwa svg{width:19px!important;height:19px!important;stroke:currentColor!important;fill:none!important;padding:0!important}
.fcol .fso a.fwa:hover{background:#1d4ed8!important;border-color:#7dd3fc!important;box-shadow:0 10px 22px rgba(56,189,248,.4)!important}

/* ===== Portal chooser: 4 gradient cards (Admin / Teachers / Parents / Students) ===== */
#lgn .lw{max-width:700px}
#lgn .pqg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:640px;margin:30px auto 0;text-align:left}
#lgn .pq{--c1:#2f6bff;--c2:#0b3fd1;--rg:29,78,216;position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;min-height:172px;padding:18px;border-radius:20px;color:#fff;text-decoration:none;background:linear-gradient(135deg,var(--c1),var(--c2));box-shadow:0 14px 30px rgba(var(--rg),.34);transition:transform .25s,box-shadow .25s}
#lgn .pq-employee{--c1:#b05cff;--c2:#6d2fe0;--rg:124,58,237}
#lgn .pq-parent{--c1:#19d3b0;--c2:#0c9a86;--rg:13,148,136}
#lgn .pq-student{--c1:#ffb02e;--c2:#ff7a00;--rg:255,122,0}
#lgn .pq::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 18% 0%,rgba(255,255,255,.22),transparent 55%)}
#lgn .pq-i{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;margin-bottom:14px;background:rgba(255,255,255,.22);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
#lgn .pq-i svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#lgn .pq b{display:block;font-size:25px;font-weight:800;line-height:1.1;letter-spacing:-.01em;color:#fff;margin:0 0 6px}
#lgn .pq em{display:block;font-style:normal;font-size:13px;line-height:1.45;color:rgba(255,255,255,.94);max-width:68%}
#lgn .pq-w{position:absolute;right:-8px;bottom:-10px;width:104px;height:104px;z-index:-1;opacity:.2;transition:transform .35s,opacity .35s}
#lgn .pq-w svg{width:100%;height:100%;fill:none;stroke:#fff;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
#lgn .pq-a{position:absolute;top:16px;right:16px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.2);opacity:.85;transition:background .25s,transform .25s}
#lgn .pq-a svg{width:15px;height:15px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:stroke .25s}
#lgn .pq:hover{transform:translateY(-6px);box-shadow:0 22px 40px rgba(var(--rg),.46)}
#lgn .pq:hover .pq-w{transform:scale(1.07) rotate(-4deg);opacity:.28}
#lgn .pq:hover .pq-a{background:#fff;transform:translateX(3px)}
#lgn .pq:hover .pq-a svg{stroke:rgb(var(--rg))}
#lgn .pq:active{transform:scale(.98)}
#lgn .pq:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:520px){#lgn .pqg{gap:12px}#lgn .pq{min-height:150px;padding:14px;border-radius:18px}#lgn .pq-i{width:40px;height:40px;border-radius:12px;margin-bottom:10px}#lgn .pq-i svg{width:21px;height:21px}#lgn .pq b{font-size:20px}#lgn .pq em{font-size:12px;max-width:100%}#lgn .pq-w{width:80px;height:80px;opacity:.16}#lgn .pq-a{top:12px;right:12px;width:26px;height:26px}}
@media(max-width:340px){#lgn .pqg{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#lgn .pq,#lgn .pq-w,#lgn .pq-a{transition:none}}

/* Back to ESMOS: same blue button style as the rest of the app */
#lgn .lw>p .bt.o{height:auto!important;padding:11px 26px!important;border:0!important;border-radius:999px!important;color:#fff!important;font-weight:650!important;background:linear-gradient(135deg,#3b82f6,#1d4ed8)!important;box-shadow:0 8px 18px rgba(29,78,216,.34),inset 0 1px 0 rgba(255,255,255,.35)!important;backdrop-filter:none!important}
#lgn .lw>p .bt.o:hover{background:linear-gradient(135deg,#4f8ff8,#2456e6)!important;color:#fff!important;transform:translateY(-2px);box-shadow:0 12px 24px rgba(29,78,216,.45),inset 0 1px 0 rgba(255,255,255,.4)!important}
#lgn .lw>p .bt.o:active{transform:scale(.96)}

/* Back button sits below the navbar, on the left */
.pn+.bkb{display:flex;width:max-content;margin:18px 0 0 max(14px,5vw);position:relative;z-index:31}
@media(max-width:700px){.pn+.bkb{margin:14px 0 0 14px}}

/* navbar: equal-size buttons; on phones keep one tidy row (Back, logo, Login, Try live demo) */
.pn nav .bt{height:40px;padding:0 20px;font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1;box-sizing:border-box}
@media(max-width:700px){
.pn{flex-wrap:nowrap;gap:8px;padding:10px 14px}
.pn nav{gap:6px;flex-wrap:nowrap}
.pn nav a.l,.pn nav .pn-st{display:none!important}
.pn nav .bt{height:36px;padding:0 14px;font-size:13px}
.pn .lgo img{height:28px}
}

/* Mini Apps: colourful gradient icon tiles with glow, same look as "Run your whole school from one screen" */
.hb-ap>.hb-c[data-m="dashboard"]{--a1:#6366f1;--a2:#38bdf8;--rg:99,102,241}
.hb-ap>.hb-c[data-m="students"]{--a1:#3b82f6;--a2:#06b6d4;--rg:59,130,246}
.hb-ap>.hb-c[data-m="fees"]{--a1:#f59e0b;--a2:#f97316;--rg:245,158,11}
.hb-ap>.hb-c[data-m="whatsapp"]{--a1:#25d366;--a2:#1fbf5b;--rg:37,211,102}
.hb-ap>.hb-c[data-m="attendance"]{--a1:#10b981;--a2:#84cc16;--rg:16,185,129}
.hb-ap>.hb-c[data-m="staff"]{--a1:#14b8a6;--a2:#0ea5e9;--rg:20,184,166}
.hb-ap>.hb-c[data-m="reports"]{--a1:#8b5cf6;--a2:#ec4899;--rg:139,92,246}
.hb-ap>.hb-c[data-m="exams"]{--a1:#3b82f6;--a2:#ec4899;--rg:59,130,246}
.hb-ap>.hb-c[data-m="homework"]{--a1:#a855f7;--a2:#6366f1;--rg:168,85,247}
.hb-ap>.hb-c[data-m="approvals"]{--a1:#10b981;--a2:#06b6d4;--rg:16,185,129}
.hb-ap>.hb-c[data-m="timetable"]{--a1:#0ea5e9;--a2:#6366f1;--rg:14,165,233}
.hb-ap>.hb-c[data-m="finance"]{--a1:#f43f5e;--a2:#f59e0b;--rg:244,63,94}
.hb-ap>.hb-c[data-m="payroll"]{--a1:#14b8a6;--a2:#22c55e;--rg:20,184,166}
.hb-ap>.hb-c[data-m="admissions"]{--a1:#fb923c;--a2:#f43f5e;--rg:251,146,60}
.hb-ap>.hb-c[data-m="parents"]{--a1:#34d399;--a2:#3b82f6;--rg:52,211,153}
.hb-ap>.hb-c[data-m="roles"]{--a1:#6366f1;--a2:#38bdf8;--rg:99,102,241}
.hb-ap>.hb-c[data-m="setup"]{--a1:#64748b;--a2:#475569;--rg:100,116,139}
.hb-ap>.hb-c .hb-ic{width:56px;height:56px;border-radius:18px;background:linear-gradient(135deg,var(--a1,#3b82f6),var(--a2,#06b6d4))!important;box-shadow:0 12px 24px rgba(var(--rg,59,130,246),.35),inset 0 1px 0 rgba(255,255,255,.5);transition:transform .3s}
.hb-ap>.hb-c .hb-ic svg.i{width:28px;height:28px;fill:none;stroke:#fff;stroke-width:1.8}
.hb-ap>.hb-c .hb-ic svg.i.f{fill:#fff;stroke:none}
.hb-ap>.hb-c:hover .hb-ic{transform:translateY(-2px) scale(1.06)}
.hb-ap>.hb-c:hover{box-shadow:0 1px 2px rgba(15,29,58,.05),0 14px 28px rgba(var(--rg,59,130,246),.16)}
.hb-ap>.hb-c[data-m="announce"]{--a1:#f59e0b;--a2:#ef4444;--rg:245,158,11}
.hb-ap>.hb-c[data-m="complaints"]{--a1:#8b5cf6;--a2:#3b82f6;--rg:139,92,246}
.hb-ap>.hb-c[data-m="logins"]{--a1:#14b8a6;--a2:#3b82f6;--rg:20,184,166}
.hb-ap>.hb-c[data-m="me"]{--a1:#3b82f6;--a2:#06b6d4;--rg:59,130,246}
.hb-ap>.hb-c[data-m="student"]{--a1:#6366f1;--a2:#38bdf8;--rg:99,102,241}
.hb-ap>.hb-c[data-m="pfee"]{--a1:#f59e0b;--a2:#f97316;--rg:245,158,11}
.hb-ap>.hb-c[data-m="patt"]{--a1:#10b981;--a2:#84cc16;--rg:16,185,129}
.hb-ap>.hb-c[data-m="pres"]{--a1:#3b82f6;--a2:#ec4899;--rg:59,130,246}
.hb-ap>.hb-c[data-m="phw"]{--a1:#a855f7;--a2:#6366f1;--rg:168,85,247}
.hb-ap>.hb-c[data-m="ptt"]{--a1:#0ea5e9;--a2:#6366f1;--rg:14,165,233}
.hb-ap>.hb-c[data-m="adash"]{--a1:#6366f1;--a2:#38bdf8;--rg:99,102,241}
.hb-ap>.hb-c[data-m="acollect"]{--a1:#f59e0b;--a2:#f97316;--rg:245,158,11}
.hb-ap>.hb-c[data-m="apays"]{--a1:#14b8a6;--a2:#22c55e;--rg:20,184,166}
.hb-ap>.hb-c[data-m="adef"]{--a1:#f43f5e;--a2:#f59e0b;--rg:244,63,94}

/* footer WhatsApp: official WhatsApp logo, solid white glyph in the same round button as Email/Call */
.fcol .fso a.fwa svg{width:22px!important;height:22px!important;fill:currentColor!important;stroke:none!important;padding:0!important}
.fcol .fso a.fwa svg path{fill:currentColor!important;stroke:none!important;transform:none!important}
.fcol .fso a.fwa:hover{background:#25d366!important;border-color:#25d366!important;box-shadow:0 10px 22px rgba(37,211,102,.45)!important}

/* portal chooser: names only, no description lines */
#lgn .pq{min-height:132px}

/* portal chooser: bigger boxes + Sign up button */
#lgn .lw{max-width:820px!important}
#lgn .pqg{max-width:760px!important;gap:20px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
#lgn .pq{min-height:200px!important;padding:24px!important;border-radius:24px!important}
#lgn .pq b{font-size:26px!important;margin-top:auto}
#lgn .pq-i{width:58px!important;height:58px!important}
#lgn .pq-i svg{width:30px!important;height:30px!important}
#lgn .pq-su{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:68px;border:0;border-radius:20px;font:700 21px/1 inherit;font-family:inherit;color:#fff;cursor:pointer;background:linear-gradient(135deg,#25d366,#0c9a5b);box-shadow:0 14px 30px rgba(12,154,91,.35);transition:transform .25s,box-shadow .25s}
#lgn .pq-su svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#lgn .pq-su:hover{transform:translateY(-3px);box-shadow:0 18px 36px rgba(12,154,91,.45)}
@media(max-width:700px){#lgn .pqg{gap:14px!important}#lgn .pq{min-height:168px!important;padding:18px!important}#lgn .pq b{font-size:22px!important}#lgn .pq-su{min-height:60px;font-size:19px}}


/* Sign in label inside each portal box */
#lgn .pq .pq-s{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:9px 18px;border-radius:999px;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.45);color:#fff;font-weight:700;font-size:15px;line-height:1}
#lgn .pq .pq-s svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
#lgn .pq b{margin-top:auto!important}

#lgn .pq-su{font-size:21px!important;font-weight:700!important;line-height:1!important}
@media(max-width:700px){#lgn .pq-su{font-size:19px!important}}

/* ===== Stat cards spacing fix: icon / number / pill ab chipakte nahi ===== */
.app .kp,.app .dsh .kp,.dsh .kp,.ow .kp{gap:14px!important;padding:16px 16px 15px!important;min-height:132px;justify-content:flex-start}
.app .dsh .kp{padding:16px 14px 15px 18px!important}
.app .kp-h,.dsh .kp-h,.ow .kp-h{margin-bottom:4px;gap:12px!important;align-items:center}
.app .kp-i,.dsh .kp-i{width:38px;height:38px;border-radius:12px}
.app .kp-m,.dsh .kp-m{margin:2px 0 0;padding:0}
.app .kp-n,.app .dsh .kp-n,.dsh .kp-n{line-height:1.2!important;margin-top:2px;display:flex;align-items:baseline;gap:4px}
.app .kp-n small,.dsh .kp-n small{margin-right:0!important}
.app .kp-b,.app .dsh .kp-b,.dsh .kp-b{margin-top:6px!important;padding:5px 12px!important}
@media(max-width:820px){
  .app .kp,.app .dsh .kp{gap:12px!important;padding:14px 13px 13px 15px!important;min-height:118px}
  .app .kp-h{gap:10px!important;margin-bottom:2px}
  .app .kp-i{width:34px;height:34px}
  .app .kp-b,.app .dsh .kp-b{margin-top:4px!important}
}

/* ===== Mobile app-style stat cards (light weight, compact, clean) ===== */
@media(max-width:820px){
  .app .g4,.app .dsh .g4{gap:10px!important}
  .app .kp,.app .dsh .kp{gap:10px!important;padding:13px 13px 12px!important;min-height:0!important;border-radius:18px!important;box-shadow:0 2px 10px rgba(30,58,138,.07)!important}
  .app .kp:hover,.app .dsh .kp:hover,.ow .kp:hover{transform:none!important;box-shadow:0 2px 10px rgba(30,58,138,.07)!important}
  .app .kp:hover .kp-n,.ow .kp:hover .kp-n{transform:none!important}
  .app .kp-h,.app .dsh .kp-h{gap:9px!important;margin-bottom:0!important}
  .app .kp-i,.app .dsh .kp-i{width:30px!important;height:30px!important;border-radius:10px!important}
  .app .kp-i svg,.app .dsh .kp-i svg{width:16px!important;height:16px!important;stroke-width:1.8!important}
  .app .kp-l,.app .dsh .kp-l{font-size:12px!important;font-weight:500!important;letter-spacing:0}
  .app .kp-n,.app .dsh .kp-n{font-size:22px!important;font-weight:600!important;letter-spacing:-.01em!important;line-height:1.15!important;margin-top:0!important}
  .app .kp-n small,.app .dsh .kp-n small{font-size:11px!important;font-weight:500!important;opacity:.6}
  .app .kp-b,.app .dsh .kp-b{font-size:10.5px!important;font-weight:500!important;padding:4px 10px!important;margin-top:2px!important}
}

/* ===== Revenue hero tiles: bigger, readable numbers on mobile ===== */
.app .dsh .rvh .rvh-t b em{font-style:normal;font-size:.62em;font-weight:500;opacity:.75;margin-left:1px}
@media(max-width:820px){
  .app .dsh .rvh .rvh-t{min-height:96px!important;padding:12px 13px!important}
  .app .dsh .rvh .rvh-t i{font-size:12.5px!important;font-weight:500}
  .app .dsh .rvh .rvh-t b{flex-direction:column!important;align-items:flex-start!important;gap:1px!important;font-size:22px!important;font-weight:600!important;line-height:1.15!important;letter-spacing:-.01em}
  @supports (width:1cqw){.app .dsh .rvh .rvh-t b{font-size:min(22px,18.5cqw)!important}}
  .app .dsh .rvh .rvh-t b small{font-size:10.5px!important;font-weight:500!important;letter-spacing:.04em;opacity:.8}
}

/* ===== Toolbar buttons: text never squeezes into 3 lines (e.g. "Save and alert parents") ===== */
.app .tb>.bt{white-space:nowrap!important;min-width:max-content;max-width:100%}
.app .tb>.bt svg{flex:none}
@media(max-width:820px){
  .app .tb>.bt[data-a="savea"],.app .tb>.bt[data-a="allp"]{flex:1 1 100%!important;min-height:48px;justify-content:center;font-size:14px!important}
  .app .tb>.bt[data-a="allp"]{order:3}
  .app .tb>.bt[data-a="savea"]{order:4}
}

/* ===== Mobile: aligned card header + light, even action buttons ===== */
@media(max-width:820px){
  /* 1) Card header: name and status badge on ONE line, same vertical centre, badge right edge = content edge */
  .app table.rt tr{align-items:start}
  .app table.rt td.ttl{grid-column:1/-1!important;grid-row:1;align-self:center;display:flex;align-items:center;min-height:28px;line-height:1.25;padding-right:104px!important;text-align:left}
  .app table.rt td.stt{position:static!important;grid-column:1/-1!important;grid-row:1;justify-self:end;align-self:center;margin:0!important;z-index:1;text-align:right;line-height:1}
  .app table.rt td.stt .bd{display:inline-flex;align-items:center;white-space:nowrap}
  .app table.rt td[data-l]{text-align:left}
  .app table.rt td[data-l]::before{text-align:left}

  /* 2) Action buttons inside cards: lighter, equal height, same left edge as the text */
  .app table.rt td.ac{display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;align-items:center;gap:8px!important;text-align:left}
  .app table.rt td.ac .bt,.app table.rt td.ac .bt.sm{flex:1 1 auto;justify-content:center;min-height:36px!important;padding:0 14px!important;font-size:13px!important;font-weight:600!important;letter-spacing:0;line-height:1;border-radius:12px!important;box-shadow:0 2px 6px color-mix(in srgb,var(--b) 20%,transparent)!important}
  .app table.rt td.ac .bt.gh,.app table.rt td.ac .bt.o{box-shadow:none!important}
  .app table.rt td.ac .bt::after{display:none!important}
  .app table.rt td.ac .ib{flex:none;width:36px;height:36px;margin:0}

  /* 3) Every button in the app: lighter weight and shadow, no jumping on touch */
  .app .bt{font-weight:600;letter-spacing:0;box-shadow:0 3px 9px color-mix(in srgb,var(--b) 22%,transparent),inset 0 1px 0 rgba(255,255,255,.25)}
  .app .bt.gh{box-shadow:none}
  .app .bt.sm{min-height:34px;padding:6px 14px}
  .app .bt:hover,.app .bt.gh:hover{transform:none;filter:none}
}

/* ===== Chart value bubbles: the old ".pc" card class was leaking into chart numbers ===== */
.cnt.pc,.ac .pc,.ac-val.pc{background:none!important;padding:0!important;border-radius:0!important;box-shadow:none!important;transition:none;min-height:0!important}
.cnt.pc:hover,.ac .pc:hover{transform:none!important;box-shadow:none!important}
.ac-c b.cnt.pc,.ac-ph b.cnt.pc,.ac-val.cnt.pc{display:block}
.ac-c b u.cnt.pc{display:inline;margin-left:4px}
.ac-ph b.cnt.pc{display:inline-block}
.ac-val{line-height:1.2;white-space:nowrap}
.ac-sc{padding-bottom:12px;scrollbar-width:thin}
.ac-w{padding-right:10px}
@media(max-width:600px){
  .ac-val{font-size:12px!important;font-weight:700!important}
  .ac-c{padding:10px 12px!important}
  .ac-c b{font-size:18px!important;font-weight:600!important}
}

/* ===== WhatsApp Send pill: icon was green on green (invisible) -> white, tidy size ===== */
.wab{min-height:34px;padding:0 14px!important;font-size:13px!important;font-weight:600!important;gap:7px!important;border-radius:999px!important;line-height:1;box-shadow:0 2px 6px rgba(37,211,102,.3)}
.wab .i{filter:brightness(0) invert(1);width:16px!important;height:16px!important;flex:none}
.wab:hover{transform:none;box-shadow:0 2px 6px rgba(37,211,102,.3)}

/* ===== Card action buttons: equal width (Salary slip = Pay) ===== */
@media(max-width:820px){
  .app table.rt td.ac .bt,.app table.rt td.ac .bt.sm{flex:1 1 0!important;min-width:max-content}
}

/* ===== Global button system (mobile): one size, one radius, one weight for every variant ===== */
@media(max-width:820px){
  .app .bt,.app .bt.blue,.app .bt.wa,.app .bt.o,.app .bt.gh{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    min-height:42px;padding:0 18px;border-radius:12px;
    font-size:14px;font-weight:600;letter-spacing:0;line-height:1.1;
    white-space:nowrap;text-align:center}
  .app .bt.sm,.app .bt.gh.sm,.app .bt.o.sm{min-height:36px;padding:0 14px;font-size:13px;border-radius:12px}
  .app .bt svg,.app .bt .i{width:17px;height:17px;flex:none}
  .app .bt.dg{background:rgba(225,29,72,.08);color:var(--r);box-shadow:none}
  .app .bt:disabled,.app .bt[disabled]{opacity:.45;box-shadow:none!important;cursor:not-allowed;filter:none}
  .app .wab{border-radius:12px!important;min-height:36px}
  /* modal / form button rows: Cancel + Save share the width equally */
  .app .ra{display:flex;gap:10px;justify-content:stretch}
  .app .ra .bt{flex:1 1 0;min-width:0}
  /* buttons that sit alone inside a card or form span the full width */
  .app .card>.bt:only-child,.app form>.bt{width:100%}
  /* Previous / Page x of y / Next */
  .app div:has(>.bt[data-a="lpg"]){display:grid!important;grid-template-columns:minmax(88px,auto) 1fr minmax(88px,auto);gap:10px!important;align-items:center;justify-content:stretch!important}
  .app div:has(>.bt[data-a="lpg"])>.bt{width:100%;min-height:38px}
  .app div:has(>.bt[data-a="lpg"])>span{text-align:center;font-size:12.5px;line-height:1.3;color:var(--mu)}
  .app .bt.o:disabled{border-color:var(--ln);color:var(--mu);background:#fff}
  /* card header: "Class 1" style tags never wrap */
  .app table.rt td.stt{white-space:nowrap}
  /* 4+ buttons in a card (Save, Generate, WhatsApp, Copy): tidy 2 x 2 grid */
  .app table.rt td.ac:has(>.bt:nth-child(4)):not(:has(.ib)){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
  .app table.rt td.ac:has(>.bt:nth-child(4)):not(:has(.ib))>.bt{width:100%;min-width:0}
}

/* ===== Button groups: equal columns, equal heights (no :has needed, works on every browser) ===== */
@media(max-width:820px){
  .app td.ac.ac4{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;align-items:stretch}
  .app td.ac.ac4>.bt{width:100%!important;min-width:0!important;margin:0!important;min-height:40px!important;padding:0 10px!important;justify-content:center;text-align:center}
  .app .pgr{display:grid!important;grid-template-columns:minmax(88px,auto) 1fr minmax(88px,auto);gap:10px!important;align-items:center;justify-content:stretch!important}
  .app .pgr>.bt{width:100%;min-height:38px}
  .app .pgr>span{text-align:center;font-size:12.5px;line-height:1.3;color:var(--mu)}
}

/* ===== Bottom nav: icon + label always centred and on the same line across all tabs ===== */
.abn .abp a{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.abn .abp a svg{flex:none;margin:0}
.abn .abp a span{display:block;width:100%;text-align:center;line-height:1.1}

/* ===== Admin dashboard: Students by class ===== */
.cls{margin-bottom:14px}
.cls .rc-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.cls .rc-h h3{margin:0}
.cls-s{font-size:13px;color:var(--mu);margin:0 0 14px}
.cls-s b{color:var(--tx);font-weight:700}
.cls-g{display:grid;grid-template-columns:1fr;gap:10px 28px}
.cls-r{display:grid;grid-template-columns:72px minmax(0,1fr) 34px;align-items:center;gap:12px;min-height:28px}
.cls-n{font-size:13.5px;font-weight:500;color:var(--tx);white-space:nowrap;text-align:left}
.cls-b{display:block;height:8px;border-radius:99px;background:color-mix(in srgb,var(--b) 10%,#fff);overflow:hidden}
.cls-b i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#5ea5ff,var(--b));min-width:0}
.cls-c{font-size:14px;font-weight:600;color:var(--tx);text-align:right;font-variant-numeric:tabular-nums}
.cls-r.z .cls-n,.cls-r.z .cls-c{color:var(--mu);font-weight:400}
.cls-r.z .cls-b i{width:0!important}
@media(min-width:700px){.cls-g{grid-template-columns:1fr 1fr}}
/* ESMOS mobile fix: long button labels wrap instead of running off the card */
.app .bt,.ow .bt,.mb .bt{max-width:100%;white-space:normal;text-align:center;justify-content:center;line-height:1.3}
.app .tb .bt,.app .hero .bt{white-space:normal}
.app #v .card,.app #v .tw{max-width:100%}
/* ===== ESMOS v5: export buttons, login tools, role permissions (mobile app view) ===== */
/* Export bar: small, tidy pill buttons everywhere in the app */
.xpb{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap;margin:0 0 10px}
.xpb .xpl{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--mu);opacity:1;margin:0 4px 0 0}
.app .xpb .bt,.xpb .bt.o.sm,.xpb button.bt{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;width:auto!important;min-width:0!important;height:30px!important;min-height:0!important;padding:0 12px!important;margin:0!important;font-size:12px!important;font-weight:600;line-height:1!important;border-radius:999px!important;background:#eef3ff;color:#1d4ed8;border:1px solid #cddbfb!important;box-shadow:none!important;white-space:nowrap!important;transform:none;transition:background .2s,color .2s,border-color .2s}
.xpb .bt:hover{background:#1d4ed8;color:#fff;border-color:#1d4ed8!important;transform:none;box-shadow:0 4px 10px rgba(29,78,216,.25)!important}
.xpb .bt:active{transform:scale(.96)}
.xpb .bt::before{content:"";flex:none;width:12px;height:12px;background:currentColor;-webkit-mask:var(--xi) center/contain no-repeat;mask:var(--xi) center/contain no-repeat}
.xpb .bt[data-xp=csv],.xpb .bt[data-xp=xlsx]{--xi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0l-5-5m5 5l5-5M4 20h16'/%3E%3C/svg%3E")}
.xpb .bt[data-xp=print]{--xi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6M6 18H4v-7h16v7h-2M7 14h10v7H7z'/%3E%3C/svg%3E")}

/* Login passwords page: action buttons */
.lgx{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.lgx label{flex:1 1 100%;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:8px 12px;background:#f5f8ff;border:1px solid var(--ln);border-radius:12px;font-size:13px}
.lgx label input{width:84px!important;height:34px;text-align:center}
.lgx .bt{flex:1 1 100%;justify-content:center;text-align:center;min-height:44px;margin:0;padding:11px 16px;font-size:14px;line-height:1.35;border-radius:14px}
.lgx .bt.o{flex:1 1 calc(50% - 4px);min-height:40px;font-size:13px;background:#eef3ff;color:#1d4ed8;border:1px solid #cddbfb;box-shadow:none}
@media(min-width:821px){.lgx .bt,.lgx .bt.o{flex:0 0 auto}.lgx label{flex:0 0 auto;padding:0;background:none;border:0}}
/* Password cell: input and status badge on one neat line */
.pwc{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-width:0}
.pwc .lpw{flex:1 1 auto;min-width:0;width:100%!important;max-width:180px;height:38px;box-sizing:border-box}
.pwt{flex:none;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:4px 9px;border-radius:999px}
.pwt.n{color:#b91c1c;background:#fee2e2}.pwt.s{color:#15803d;background:#dcfce7}
.app table.rt td .pwc .lpw{width:auto!important;flex:1 1 auto}

/* Role & permissions: compact module cards, no long vertical scrolling on phones */
@media(max-width:820px){
.app .perm{overflow:visible}
.app .perm table.rt>tbody{gap:10px}
.app .perm table.rt tr{grid-template-columns:1fr 1fr;gap:6px 8px;padding:12px}
.app .perm table.rt td.ttl{grid-column:1/-1;padding:0 0 8px;margin-bottom:2px;font-size:15px;border-bottom:1px solid var(--ln)}
.app .perm table.rt td:not(.ttl),.app .perm table.rt td.wd:not(.ttl){grid-column:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;background:#fff;border:1px solid var(--ln);border-radius:10px}
.app .perm table.rt td[data-l]::before{margin:0;font-size:10px;line-height:1.2}
.app .perm table.rt td input[type=checkbox]{width:20px;height:20px;flex:none;margin:0}
}
/* ===== ESMOS v6: Fees page (parent / student app view) - Paid and Unpaid summary on top ===== */
.fee{padding:16px!important;border-radius:24px}
.fee-h{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.fee-av{width:42px;height:42px;flex:none;border-radius:14px;display:grid;place-items:center;font-weight:700;font-size:18px;color:#fff;background:linear-gradient(135deg,#3b82f6,#1d4ed8)}
.fee-h b{display:block;font-size:17px;line-height:1.25;color:var(--tx)}
.fee-h small{display:block;font-size:12px;color:var(--mu)}
.fee-sum{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:6px}
.fs{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:18px;min-width:0}
.fs span{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.fs b{font-size:19px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.fs small{font-size:12px;opacity:.8}
.fs.p{background:#e3f6ea;color:#137536}
.fs.u{background:#fde8ec;color:#be123c}
.fee-row{display:flex;align-items:center;gap:10px;margin-top:8px;padding:12px 14px;background:#f5f8ff;border:1px solid var(--ln);border-radius:16px}
.fee-row.no{border-left:4px solid #e11d48}
.fee-row.ok{border-left:4px solid #16a34a}
.fee-row .fr-m{flex:1;min-width:0}
.fee-row .fr-m b{display:block;font-size:15px;color:var(--tx)}
.fee-row .fr-m small{display:block;font-size:12.5px;color:var(--mu);margin-top:1px}
.fee-row .bt.sm{margin:0;padding:7px 14px;border-radius:20px;flex:none}
/* ===== ESMOS v7: dropdowns, fee row actions, Get started card, report card v2 ===== */
/* Fee rows: month + due on the left, Paid badge stacked above the Challan button on the right */
.frw{align-items:center!important;gap:12px}
.frw .fr-m{flex:1;min-width:0}
.fr-m b{display:block;font-size:15px;color:var(--tx)}
.fr-m small{display:block;font-size:12.5px;color:var(--mu);margin-top:1px}
.fr-a{display:flex;flex-direction:column;align-items:stretch;gap:8px;flex:none;width:108px}
html body .fr-a .tg{display:block;width:100%;box-sizing:border-box;margin:0;text-align:center;padding:5px 8px;font-size:12.5px;line-height:1.2}
html body .fr-a .bt{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-width:0!important;box-sizing:border-box;height:38px!important;margin:0!important;padding:0 10px!important;border-radius:14px!important;font-size:14px!important;line-height:1!important}
.fee-row .fr-a{margin-left:auto}

/* Dropdowns: arrow always sits inside the box */
@media(max-width:820px){
.app select{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:100%;max-width:100%;box-sizing:border-box;min-height:46px;margin-top:6px;padding:10px 44px 10px 14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:18px}
}

/* Get your school set up: clean grid, heading and text on top, button left, picture right */
@media(max-width:700px){
html body .gsc{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:8px;row-gap:0;align-items:center;padding:24px 18px 14px 20px!important;border-radius:24px!important;overflow:hidden;box-sizing:border-box}
html body .gsc .gsc-t{display:contents!important}
html body .gsc .gsc-t h2{grid-column:1/-1;grid-row:1;margin:0 0 10px!important;font-size:clamp(21px,6.4vw,26px)!important;line-height:1.2!important;white-space:normal!important;text-align:left!important}
html body .gsc .gsc-t h2::after{content:none!important;display:none!important}
html body .gsc .gsc-t p{grid-column:1/-1;grid-row:2;display:block!important;margin:0 0 16px!important;max-width:none!important;font-size:14.5px!important;line-height:1.55!important}
html body .gsc .gsc-t .bt{grid-column:1;grid-row:3;justify-self:start;align-self:center;display:inline-flex!important;align-items:center;justify-content:center;height:48px!important;min-width:128px!important;padding:0 26px!important;margin:0!important;border-radius:14px!important;font-size:15.5px!important;font-weight:700!important;line-height:1!important;white-space:nowrap}
html body .gsc .gsc-i{grid-column:2;grid-row:3;justify-self:end;align-self:end;flex:none!important;width:clamp(120px,40vw,170px)!important;max-width:none!important;height:auto;margin:0 -6px -4px 0!important}
}

/* Report card marks entry: marks in two columns, subject name as label */
@media(max-width:820px){
.app .rcpg table.rt td.wd{grid-column:auto}
.app .rcpg table.rt td input.rcm{width:100%}
}

/* Report card v2 */
.rcd-h{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.rcd-h h3{margin:0}
.rcd-res{flex:none;padding:6px 16px;border-radius:999px;font-size:13px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.rcd-res.p,.rce-res.p{background:#dcf4e6;color:#137536}
.rcd-res.f,.rce-res.f{background:#fde4ea;color:#be123c}
.rcd-i{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.rcd-i>div,.rcd-i>label{margin:0;padding:9px 12px;min-width:0;background:#f5f8ff;border:1px solid var(--ln);border-radius:14px}
.rcd-i span,.rcd-sum span,.rcd-pf span,.rcd-n span,.rce-f>span,.rce-r label>span{display:block;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mu)}
.rcd-i b{display:block;font-size:14.5px;overflow-wrap:anywhere}
.rcg{margin-top:4px}
.rcg-r{display:grid;grid-template-columns:minmax(0,1.7fr) repeat(4,minmax(0,.75fr));gap:6px;align-items:center;padding:9px 2px;border-bottom:1px solid var(--ln);font-size:13.5px}
.rcg-h{font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--mu)}
.rcg-s{font-weight:600;overflow-wrap:anywhere}
.rcg .tg{padding:2px 8px;font-size:11.5px}
.rcd-sum{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}
.rcd-sum>div{padding:9px 6px;text-align:center;background:#eef3ff;border-radius:14px;min-width:0}
.rcd-sum b{display:block;margin-top:2px;font-size:17px}
.rcd-pf{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.rcd-pf>div{padding:9px 12px;background:#f5f8ff;border:1px solid var(--ln);border-radius:14px;min-width:0}
.rcd-pf b{display:block;font-size:14.5px;margin-top:2px}
.rcd-n{margin-top:10px;padding:10px 12px;background:#f5f8ff;border:1px solid var(--ln);border-radius:14px}
.rcd-n p{margin:4px 0 0;font-size:14px;line-height:1.5}
.rc-stars{display:block;margin-top:2px;white-space:nowrap}
.rc-stars .st{font-size:21px;line-height:1;color:#d1d5db}
.rc-stars .st.on{color:#f59e0b}
.rce{width:100%;max-width:560px;box-sizing:border-box}
.rce-hd h3{margin:0}
.rce-h4{margin:18px 0 4px;font-size:15px}
.rce-r{display:grid;grid-template-columns:1fr 1fr 52px;gap:8px;align-items:end;padding:10px 0;border-bottom:1px solid var(--ln)}
.rce-r .rce-s{grid-column:1/-1;font-size:14.5px}
.rce-r label{margin:0}
.rce-r input,.rce-f input,.rce-f textarea,.rce-f select{width:100%;box-sizing:border-box}
.rce-r input{height:42px}
.rce-p{text-align:center;font-weight:700;font-size:13px;padding-bottom:12px;color:var(--mu)}
.rce-p.ok{color:#137536}
.rce-p.bad{color:#be123c}
.rce-f{display:block;margin:12px 0 0}
.rce-res{margin:0 0 6px;padding:10px 14px;text-align:center;font-size:14px;font-weight:700;background:#eef3ff;color:#1d4ed8;border-radius:14px}
.rce-st{display:flex;gap:6px;margin-top:4px}
html body .rce .rce-s1{width:46px;height:46px;padding:0;margin:0;border:1px solid var(--ln);border-radius:14px;background:#fff;color:#d1d5db;font-size:25px;line-height:1;box-shadow:none;cursor:pointer}
html body .rce .rce-s1.on{color:#f59e0b;background:#fff8e6;border-color:#fcd34d}
@media(max-width:480px){.rcd-sum{grid-template-columns:1fr 1fr}}
#md .mb.dsw{max-width:860px;width:calc(100vw - 24px)}
.dsfh{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
#dsrows{max-height:46vh;overflow:auto;margin:10px 0}
.dsr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;border:1px solid var(--ln);border-radius:12px;margin:0 0 10px;align-items:start;background:rgba(99,102,241,.05)}
.dsr label{margin:0;min-width:0;display:block}
.dsr label.w2{grid-column:span 2}
.dsr input,.dsr select,.dsr textarea{width:100%;box-sizing:border-box;margin-top:4px}
.dsr input,.dsr select{height:44px}
.dsr .dsd{color:var(--mu);font-size:12px;font-weight:500}
.dsr .dsx{grid-column:4;justify-self:end;align-self:end;min-height:44px;min-width:44px;padding:0 14px}
@media(max-width:820px){.dsr{grid-template-columns:repeat(2,minmax(0,1fr))}.dsr .dsx{grid-column:2}.dsfh{grid-template-columns:1fr 1fr}.dsfh label{min-width:0}.dsfh>label:last-child,.dsr label.wm,.dsr label.w2{grid-column:1/-1}}
.dscard td,.dscard th{vertical-align:top}
.hb-ap>.hb-c[data-m="datesheet"]{--a1:#f43f5e;--a2:#f59e0b;--rg:244,63,94}

/* ===== Toolbar + button alignment fix (laptop and mobile) ===== */
@media(min-width:821px){
.app .tb{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px}
.app .tb>.bt,.app .tb>button{margin-left:0!important;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;line-height:1.2}
.app .tb>select,.app .tb>input:not([type=checkbox]):not([type=radio]){margin:0!important;min-height:42px;width:auto;box-sizing:border-box}
.app .tb>.se{margin:0}
.app .tb>.se~.bt:last-child,.app .tb>.ch~.bt:last-child{margin-left:auto!important}
.app .ttbar .tb>*{box-sizing:border-box}
.app .ttbar .tb>.bt,.app .ttbar .tb>select,.app .ttbar .tb>input{height:42px;min-height:42px}
.app .ttbar .tb>.bt.sm{padding-top:0;padding-bottom:0}
.app .ttbar .tb+.tb{margin-top:10px}
}
@media(max-width:820px){
.app .tb>select,.app .tb>input:not([type=checkbox]):not([type=radio]){flex:1 1 calc(50% - 5px);min-width:0;margin:0!important;min-height:46px;box-sizing:border-box;width:auto}
.app .ttbar .tb>.bt,.app .ttbar .tb>select,.app .ttbar .tb>input{min-height:46px;height:46px;box-sizing:border-box}
.app .ttbar .tb+.tb{margin-top:10px}
.app .tb>.bt{overflow-wrap:anywhere}
}

/* status cell collided with the landing-page .stt stats class */
.app table td.stt{animation:none!important;opacity:1!important;margin-top:0!important;gap:0}
@media(min-width:821px){.app table td.stt{display:table-cell!important;grid-template-columns:none!important}}

/* ===== Mobile export bar: big, app-style buttons ===== */
@media(max-width:820px){
.app .xpb{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px;align-items:stretch}
.app .xpb .xpl{grid-column:1/-1;margin:2px 0 0;font-size:11.5px;text-align:left}
.app .xpb .bt.bt.bt.bt{width:100%!important;height:48px!important;min-height:48px!important;padding:0 8px!important;border-radius:16px!important;font-size:14px!important;font-weight:650!important;gap:8px!important;white-space:nowrap;background:#eef4ff!important;color:#1d4ed8!important;border:1.5px solid #c9dafb!important;box-shadow:0 6px 14px rgba(29,78,216,.10)!important}
.app .xpb .bt.bt.bt.bt svg{width:18px!important;height:18px!important;flex:none}
.app .xpb .bt.bt.bt.bt:nth-of-type(2){background:#ecfdf3!important;color:#15803d!important;border-color:#b7ecc9!important;box-shadow:0 6px 14px rgba(21,128,61,.10)!important}
.app .xpb .bt.bt.bt.bt:nth-of-type(3){background:#f5f0ff!important;color:#6d28d9!important;border-color:#d9ccfb!important;box-shadow:0 6px 14px rgba(109,40,217,.10)!important}
.app .xpb .bt.bt.bt.bt:active{transform:scale(.97)}
}

/* ===== Desktop export bar: matching colored buttons ===== */
@media(min-width:821px){
.app .xpb{display:flex!important;justify-content:flex-end;align-items:center;gap:10px;margin:0 0 12px}
.app .xpb .xpl{margin:0 4px 0 0;font-size:11.5px}
.app .xpb .bt.bt.bt.bt{height:40px!important;min-height:40px!important;padding:0 18px!important;border-radius:12px!important;font-size:13.5px!important;font-weight:650!important;gap:8px!important;white-space:nowrap;background:#eef4ff!important;color:#1d4ed8!important;border:1.5px solid #c9dafb!important;box-shadow:0 4px 12px rgba(29,78,216,.08)!important;transition:transform .15s,box-shadow .15s,background .15s}
.app .xpb .bt.bt.bt.bt svg{width:16px!important;height:16px!important;flex:none}
.app .xpb .bt.bt.bt.bt:nth-of-type(2){background:#ecfdf3!important;color:#15803d!important;border-color:#b7ecc9!important;box-shadow:0 4px 12px rgba(21,128,61,.08)!important}
.app .xpb .bt.bt.bt.bt:nth-of-type(3){background:#f5f0ff!important;color:#6d28d9!important;border-color:#d9ccfb!important;box-shadow:0 4px 12px rgba(109,40,217,.08)!important}
.app .xpb .bt.bt.bt.bt:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(29,78,216,.18)!important;background:#dfeafe!important;color:#1d4ed8!important;border-color:#a9c3f8!important}
.app .xpb .bt.bt.bt.bt:nth-of-type(2):hover{background:#d8f7e4!important;color:#15803d!important;border-color:#8fdcab!important}
.app .xpb .bt.bt.bt.bt:nth-of-type(3):hover{background:#ebe2ff!important;color:#6d28d9!important;border-color:#c1aef6!important}
}

/* ===== Animated portal cards (login) ===== */
@keyframes pqin{from{opacity:0;transform:translateY(34px) scale(.92);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
@keyframes pqpan{0%{background-position:0% 50%}100%{background-position:100% 50%}}
@keyframes pqfloat{0%,100%{translate:0 0}50%{translate:0 -7px}}
@keyframes pqsheen{0%,55%{left:-70%}100%{left:130%}}
@keyframes pqw{0%,100%{translate:0 0;rotate:0deg}50%{translate:-6px -8px;rotate:-7deg}}
@keyframes pqring{0%{transform:scale(1);opacity:.65}100%{transform:scale(1.55);opacity:0}}
@keyframes pqnudge{0%,100%{translate:0 0}50%{translate:3px 0}}
@keyframes pqarrow{0%,100%{translate:0 0}50%{translate:4px 0}}
@keyframes pqhead{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
@keyframes pqsu{0%,100%{box-shadow:0 14px 30px rgba(12,154,91,.35),0 0 0 0 rgba(37,211,102,.45)}50%{box-shadow:0 14px 30px rgba(12,154,91,.35),0 0 0 12px rgba(37,211,102,0)}}
#lgn .lw>h1,#lgn .lw>p:first-of-type{animation:pqhead .7s cubic-bezier(.2,.8,.2,1) backwards}
#lgn .pq{background:linear-gradient(120deg,var(--c1),var(--c2),var(--c1))!important;background-size:220% 220%!important;animation:pqin .75s cubic-bezier(.2,.8,.2,1) backwards,pqpan 7s ease-in-out infinite alternate,pqfloat 5.5s ease-in-out 1s infinite;transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,scale .3s;will-change:transform}
#lgn .pq:nth-child(1){animation-delay:.05s,0s,1s}
#lgn .pq:nth-child(2){animation-delay:.18s,.8s,1.7s}
#lgn .pq:nth-child(3){animation-delay:.31s,1.6s,2.4s}
#lgn .pq:nth-child(4){animation-delay:.44s,2.4s,3.1s}
#lgn .pq::after{content:"";position:absolute;top:-60%;left:-70%;width:38%;height:220%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),transparent);transform:rotate(22deg);pointer-events:none;animation:pqsheen 5.5s ease-in-out infinite}
#lgn .pq:nth-child(2)::after{animation-delay:1.1s}
#lgn .pq:nth-child(3)::after{animation-delay:2.2s}
#lgn .pq:nth-child(4)::after{animation-delay:3.3s}
#lgn .pq:hover{scale:1.035;box-shadow:0 26px 48px rgba(var(--rg),.5)}
#lgn .pq:hover::after{animation-duration:1.1s;animation-delay:0s}
#lgn .pq-w{animation:pqw 7s ease-in-out infinite}
#lgn .pq:nth-child(even) .pq-w{animation-delay:-3s}
#lgn .pq-i{position:relative;transition:transform .3s}
#lgn .pq-i::after{content:"";position:absolute;inset:0;border-radius:inherit;border:2px solid rgba(255,255,255,.7);pointer-events:none;animation:pqring 2.8s ease-out infinite}
#lgn .pq:nth-child(2) .pq-i::after{animation-delay:.5s}
#lgn .pq:nth-child(3) .pq-i::after{animation-delay:1s}
#lgn .pq:nth-child(4) .pq-i::after{animation-delay:1.5s}
#lgn .pq:hover .pq-i{transform:rotate(-8deg) scale(1.1)}
#lgn .pq-a{animation:pqnudge 2.2s ease-in-out infinite}
#lgn .pq .pq-s{transition:background .25s,transform .25s,box-shadow .25s}
#lgn .pq:hover .pq-s{background:#fff;color:rgb(var(--rg));transform:translateX(3px);box-shadow:0 8px 18px rgba(0,0,0,.18)}
#lgn .pq .pq-s svg{animation:pqarrow 1.5s ease-in-out infinite}
#lgn .pq-su{animation:pqin .75s cubic-bezier(.2,.8,.2,1) .6s backwards,pqsu 2.8s ease-in-out 1.5s infinite}
@media(prefers-reduced-motion:reduce){#lgn .pq,#lgn .pq::after,#lgn .pq-w,#lgn .pq-i::after,#lgn .pq-a,#lgn .pq .pq-s svg,#lgn .pq-su,#lgn .lw>h1,#lgn .lw>p:first-of-type{animation:none!important}}

/* ===== Mobile: compact list cards + back-to-top (less scrolling) ===== */
@media(max-width:820px){
.app table.rt>tbody{gap:9px!important}
.app table.rt tr{display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:7px 10px!important;padding:11px 12px!important;border-radius:16px!important;grid-template-columns:none!important}
.app table.rt tr::before{content:"";order:0;flex:0 0 100%;height:0;margin-top:-7px}
.app table.rt td{flex:0 0 calc((100% - 20px)/3);min-width:0;max-width:100%;font-size:13.5px!important;line-height:1.3}
.app table.rt td[data-l]::before{font-size:9.5px!important;margin-bottom:1px!important;letter-spacing:.06em}
.app table.rt td.ttl{order:-3;flex:1 1 92px!important;min-width:92px;padding:0!important;min-height:0!important;font-size:15.5px!important;font-weight:700;align-self:center;display:block!important;grid-column:auto!important;grid-row:auto!important}
.app table.rt td.stt{order:-2;position:static!important;flex:0 0 auto!important;min-width:0!important;margin:0!important;align-self:center;grid-column:auto!important;grid-row:auto!important;justify-self:auto!important}
.app table.rt td.ac{order:-1;flex:0 1 auto!important;min-width:0!important;margin:0 0 0 auto!important;padding:0!important;border:0!important;display:flex!important;flex-wrap:wrap;gap:6px!important;align-items:center;justify-content:flex-end;grid-column:auto!important}
.app table.rt td.ac .bt.sm{padding:0 13px!important;height:34px;display:inline-flex;align-items:center;font-size:12px!important;border-radius:17px!important;white-space:nowrap}
.app table.rt td.ac .ib{width:34px!important;height:34px!important;border-radius:11px!important}
.app table.rt tr:not(:has(td.ttl))::before{display:none}
.app table.rt tr:not(:has(td.ttl)) td.ac{order:99;flex:1 1 100%!important;border-top:1px solid var(--ln)!important;padding-top:8px!important;margin:2px 0 0!important}
.app table.rt td.wd,.app table.rt td:has(>.ap){flex:1 1 100%!important}
.app table.rt td.wd:has(>input),.app table.rt td.wd:has(>select){flex:0 0 calc((100% - 20px)/3)!important}
.app table.rt tr.emr{display:block!important;padding:0!important}
.app table.rt tr.emr::before{display:none}
#btop{position:fixed;right:16px;bottom:calc(96px + env(safe-area-inset-bottom,0px));width:44px;height:44px;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer;color:#fff;background:linear-gradient(135deg,var(--b),var(--b2,#0b3fd1));box-shadow:0 10px 22px rgba(29,78,216,.35);opacity:0;transform:translateY(16px) scale(.8);pointer-events:none;transition:opacity .25s,transform .25s;z-index:60}
#btop.on{opacity:1;transform:none;pointer-events:auto}
#btop svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
}
@media(min-width:821px){#btop{display:none}}

/* ===== ESMOS Admin console: header + extras ===== */
.pn.ob{padding-top:calc(10px + env(safe-area-inset-top,0px))!important}
.pn.ob .lgo{background:none!important;padding:0!important;box-shadow:none!important;border-radius:0!important}
.pn.ob .lgo img{height:34px!important;width:auto;filter:drop-shadow(0 2px 8px rgba(0,0,0,.28))}
@media(max-width:820px){.pn.ob .lgo img{height:30px!important}}
.oxp{margin:18px 0}
.oxk{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.oxt{position:relative;overflow:hidden;background:var(--cd);border:1px solid var(--ln);border-radius:20px;padding:14px 16px;box-shadow:0 6px 18px rgba(29,78,216,.07);display:flex;flex-direction:column;gap:3px;min-width:0}
.oxt::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--a,var(--b))}
.oxt small{color:var(--mu);font-size:11.5px;font-weight:600;letter-spacing:.03em}
.oxt b{font-size:26px;line-height:1.1;color:var(--tx)}
.oxt span{color:var(--mu);font-size:12px}
.oxt.g{--a:#16a34a}.oxt.r{--a:#e11d48}.oxt.o{--a:#f59e0b}.oxt.v{--a:#7c3aed}
.oxb{height:8px;border-radius:99px;background:rgba(29,78,216,.12);overflow:hidden;margin:6px 0 2px}
.oxb i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#38bdf8,var(--b));transition:width .8s cubic-bezier(.2,.8,.2,1)}
.oxc{margin-top:0}
.oxc h4{margin:14px 0 8px;font-size:12.5px;color:var(--mu);font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.oxr{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--ln)}
.oxr:first-of-type{border-top:0}
.oxd{flex:0 0 10px;height:10px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.18)}
.oxd.r{background:#e11d48;box-shadow:0 0 0 4px rgba(225,29,72,.16)}
.oxm{flex:1;min-width:0}.oxm b{display:block;font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.oxm small{color:var(--mu);font-size:12.5px}
.oxa{display:flex;gap:6px;flex:0 0 auto}
.oxa .bt.sm{height:34px;display:inline-flex;align-items:center;padding:0 14px}
.oxch{display:flex;flex-wrap:wrap;gap:8px}
.oxch span{display:inline-flex;gap:6px;align-items:center;padding:6px 12px;border-radius:99px;background:rgba(29,78,216,.08);color:var(--b);font-size:12.5px;font-weight:600}
.oxch span em{font-style:normal;color:var(--mu);font-weight:500}
.oxw{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:6px}
.oxw>div{padding:14px;border-radius:16px;background:rgba(29,78,216,.06);font-size:13px}.oxw>div b{display:block;margin-bottom:4px;font-size:14px}
.oxs{display:flex;flex-direction:column;gap:10px;margin:10px 0 12px}
.oxs .se{margin:0;max-width:420px}
.oxs .ch{display:flex;gap:8px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;scrollbar-width:none}.oxs .ch::-webkit-scrollbar{display:none}.oxs .ch .cp{flex:0 0 auto;white-space:nowrap}
.oxe{padding:22px;text-align:center;color:var(--mu)}
@media(max-width:820px){.oxk{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.oxt b{font-size:22px}.oxw{grid-template-columns:1fr}.oxr{flex-wrap:wrap}.oxa{width:100%;padding-left:22px}.oxa .bt.sm{flex:1}.oxs .se{max-width:none}}

/* ESMOS Admin console: compact on phones */
@media(max-width:820px){
.ow .oh{min-height:0!important;padding:18px 18px 16px!important;gap:4px!important}
.ow .oh-l{margin:0}
.ow .oh-n{font-size:34px!important;margin:4px 0 10px!important}
.ow .oh-r{padding-bottom:22px!important;margin-top:4px}
.ow .oh-s{height:64px!important;gap:8px}
.ow .og{margin-bottom:12px}
.ow .g4 .kp{padding:14px 16px 12px 20px!important}
.ow .g4 .kp:nth-child(3):last-child{grid-column:1/-1}
.oxp{margin:12px 0}
.ow .sa2 .bt.sm{padding:8px 13px!important;font-size:12.5px!important}
.ow .sa2{gap:7px!important}
}
/* ===== ESMOS: Students page - class-wise sections, app view ===== */
.cw-kp{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.cw-kp>div{padding:11px 8px;text-align:center;background:linear-gradient(135deg,#eef4ff,#e3edff);border:1px solid var(--ln);border-radius:16px;min-width:0}
.cw-kp b{display:block;font-size:22px;line-height:1.15;color:#14336f}
.cw-kp span{display:block;margin-top:2px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mu)}
.cw-ch{display:flex;gap:8px;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;margin:0 0 12px;padding:2px;scrollbar-width:none}
.cw-ch::-webkit-scrollbar{display:none}
.cw-ch .cp{flex:none;white-space:nowrap;padding:7px 15px;font-weight:600}
.cw-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:6px 2px 10px}
.cw-bar b{font-size:15px;color:var(--tx)}
.cw-bar span{display:flex;gap:6px}
html body .cw-bar button{margin:0;padding:6px 12px;border:0;border-radius:999px;background:#eef3ff;color:#1d4ed8;font-size:12px;font-weight:600;box-shadow:none;cursor:pointer}
.cw-list{display:flex;flex-direction:column;gap:12px}
.cw-sec{background:#fff;border:1px solid var(--ln);border-radius:20px;overflow:hidden;box-shadow:0 6px 18px rgba(30,64,175,.06)}
html body .cw-h{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;margin:0;padding:12px 14px;border:0;border-radius:0;background:linear-gradient(135deg,#f3f7ff,#e9f1ff);color:inherit;font:inherit;text-align:left;box-shadow:none;cursor:pointer}
.cw-ic{flex:none;width:46px;height:46px;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#3b82f6,#1d4ed8);line-height:1}
.cw-ic i{font-style:normal;font-size:17px;font-weight:800}
.cw-ic em{font-style:normal;font-size:10px;font-weight:700;margin-top:2px;opacity:.9}
.cw-t{flex:1;min-width:0}
.cw-t b{display:block;font-size:16px;color:var(--tx)}
.cw-t small{display:block;margin-top:2px;font-size:12.5px;color:var(--mu)}
.cw-chev{flex:none;width:20px;height:20px;color:#1d4ed8;transition:transform .25s}
.cw-sec.open .cw-chev{transform:rotate(180deg)}
.cw-b{display:none;padding:12px}
.cw-sec.open .cw-b{display:block}
.cw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.cw-card{padding:12px;background:#fff;border:1px solid var(--ln);border-radius:16px;min-width:0}
.cw-top{display:flex;align-items:center;gap:11px}
.cw-av{flex:none;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:17px}
.cw-m{flex:1;min-width:0}
.cw-n{display:block;font-size:15px;color:var(--tx);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cw-m small{display:block;margin-top:1px;font-size:12px;color:var(--mu)}
.cw-bt{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--ln)}
.cw-g{min-width:0;display:flex;flex-direction:column;gap:1px;font-size:13px}
.cw-g small{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mu)}
.cw-g span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cw-g a{color:#1d4ed8;font-weight:600;text-decoration:none}
.cw-a{display:flex;align-items:center;gap:6px;flex:none}
html body .cw-a .bt{margin:0;height:34px;padding:0 12px;font-size:12.5px;border-radius:12px}
.cw-a .ib{margin:0}
.cw-em{padding:24px;text-align:center}
@media(max-width:820px){.cw-grid{grid-template-columns:1fr}.cw-b{padding:10px}}
/* ===== ESMOS: WhatsApp reminders - chat-style cards ===== */
.wm-kp{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.wm-kp>div{padding:11px 8px;text-align:center;background:linear-gradient(135deg,#eef4ff,#e3edff);border:1px solid var(--ln);border-radius:16px;min-width:0}
.wm-kp>div.q{background:linear-gradient(135deg,#fff7e6,#ffefcc);border-color:#fde3a7}
.wm-kp>div.ok{background:linear-gradient(135deg,#e9fbef,#d6f6e1);border-color:#b9ecc9}
.wm-kp b{display:block;font-size:22px;line-height:1.15;color:#14336f}
.wm-kp .q b{color:#b45309}.wm-kp .ok b{color:#137536}
.wm-kp span{display:block;margin-top:2px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mu)}
.wm-ch{display:flex;gap:8px;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;margin:0 0 14px;padding:2px;scrollbar-width:none}
.wm-ch::-webkit-scrollbar{display:none}
.wm-ch .cp{flex:none;white-space:nowrap;padding:7px 15px;font-weight:600}
.wm-ch .cp em{font-style:normal;margin-left:4px;padding:1px 7px;border-radius:999px;background:rgba(29,78,216,.1);font-size:11.5px}
.wm-ch .cp.on em{background:rgba(255,255,255,.25)}
.wm-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px}
.wm-card{position:relative;padding:14px 14px 14px 18px;background:#fff;border:1px solid var(--ln);border-radius:20px;box-shadow:0 6px 18px rgba(30,64,175,.06);overflow:hidden;min-width:0}
.wm-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#94a3b8}
.wm-card.q::before{background:linear-gradient(#fbbf24,#f59e0b)}
.wm-card.ok::before{background:linear-gradient(#34d399,#16a34a)}
.wm-card.bad::before{background:linear-gradient(#f87171,#dc2626)}
.wm-top{display:flex;align-items:center;gap:11px}
.wm-av{flex:none;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:17px;background:linear-gradient(135deg,#25d366,#128c7e)}
.wm-m{flex:1;min-width:0}
.wm-n{display:block;font-size:15.5px;color:var(--tx);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wm-m small{display:block;margin-top:1px;font-size:12.5px;color:var(--mu)}
.wm-meta{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0 10px}
.wm-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;font-size:11.5px;font-weight:600;background:#f1f5fb;color:#475569}
.wm-chip i{width:6px;height:6px;border-radius:50%;background:#94a3b8}
.wm-p{background:#eef3ff;color:#1d4ed8}
.wm-bub{position:relative;padding:10px 13px;border-radius:4px 16px 16px 16px;background:#e7fbd9;color:#1f2d1f;font-size:14px;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.wm-bub.open{-webkit-line-clamp:unset;display:block}
.wm-more{cursor:pointer}
.wm-act{display:flex;gap:8px;margin-top:12px}
html body .wm-act .wab{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;height:42px;margin:0;padding:0 14px;border-radius:14px;font-size:14.5px;font-weight:700}
.wm-act .wab svg{width:19px;height:19px}
html body .wm-act .wm-ed{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;margin:0;padding:0 16px;border:1px solid #cddbfb;border-radius:14px;background:#eef3ff;color:#1d4ed8;font-size:14px;font-weight:600;box-shadow:none;cursor:pointer}
.wm-act .wm-ed svg{width:16px;height:16px}
.wm-em{grid-column:1/-1;padding:28px 16px;text-align:center;border:1px dashed var(--ln);border-radius:20px}
.wm-em b{display:block;font-size:15px;color:var(--tx)}
.wm-em span{display:block;margin-top:4px;font-size:13px;color:var(--mu)}
@media(max-width:820px){.wm-list{grid-template-columns:1fr}}
/* ===== ESMOS: standard buttons - 10px radius, no drop shadow, one size scale (44 / 36 / 32) ===== */
:root{--bh:44px;--bs:36px;--bx:32px;--br:10px}
/* default size */
html body :is(.bt,.wab,.wm-ed)[class][class][class]{border-radius:var(--br)!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;min-height:var(--bh)!important;height:auto!important;padding:10px 20px!important;font-size:14.5px!important;font-weight:600!important;line-height:1.25!important;align-items:center;justify-content:center;box-sizing:border-box}
/* small buttons: table rows, cards, Challan, Promote, Edit */
html body :is(.bt.sm,.fr-a .bt,.cw-a .bt)[class][class][class]{min-height:var(--bs)!important;padding:7px 14px!important;font-size:13px!important}
/* compact buttons: export bar, expand / collapse */
html body :is(.xpb .bt,.xpb button.bt)[class][class][class]{min-height:var(--bx)!important;padding:5px 12px!important;font-size:12.5px!important;border-radius:8px!important}
html body .cw-bar button[type][type][type]{min-height:var(--bx)!important;padding:5px 12px!important;font-size:12.5px!important;border-radius:8px!important;box-shadow:none!important}
/* icon buttons */
html body .ib[class][class][class]{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;border-radius:var(--br)!important;box-shadow:none!important;filter:none!important}
/* filter chips */
html body .cp[class][class][class]{min-height:var(--bs)!important;padding:0 14px!important;border-radius:var(--br)!important;box-shadow:none!important;font-size:13.5px!important;line-height:1.2!important}
/* star rating buttons */
html body .rce .rce-s1[class][class][class]{border-radius:var(--br)!important;box-shadow:none!important}
/* no shadow on hover / focus / press either */
html body :is(.bt,.wab,.wm-ed,.ib,.cp):is(:hover,:focus,:active)[class][class][class]{box-shadow:none!important;filter:none!important}
html body :is(.bt,.wab,.wm-ed,.ib,.cp):focus-visible[class][class][class]{outline:2px solid #93b4fb!important;outline-offset:2px}
/* v15: compact top-bar buttons on phones */
@media(max-width:820px){
.pn.ov{padding:8px 12px!important;gap:6px!important}
.pn.ov .lgo img{height:24px!important}
.pn.ov nav{gap:6px!important}
.pn.ov nav .bt,.pn nav .bt{width:auto!important;min-width:0!important;height:30px!important;padding:0 12px!important;font-size:12px!important;font-weight:600!important}
}
@media(max-width:380px){
.pn.ov nav .bt,.pn nav .bt{height:28px!important;padding:0 9px!important;font-size:11px!important}
.pn.ov .lgo img{height:22px!important}
}

/* v16: beat the global button rule for top-bar buttons on phones */
@media(max-width:820px){
html body .pn nav .bt[class][class][class]{min-height:0!important;height:30px!important;width:auto!important;min-width:0!important;padding:0 12px!important;font-size:12px!important;line-height:1!important;border-radius:999px!important;white-space:nowrap}
}
@media(max-width:380px){
html body .pn nav .bt[class][class][class]{height:28px!important;padding:0 9px!important;font-size:11px!important}
}
.cfb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;padding:8px 10px;border:1px solid #dbe4f5;border-radius:12px;background:#f5f8ff;font:600 12.5px Inter,system-ui,sans-serif;color:#1d3a8a}
.cfb select,.cfb input{height:34px;border:1px solid #c9d6f0;border-radius:9px;padding:0 8px;font:500 13px Inter,system-ui,sans-serif;background:#fff;color:#0f1d3a;width:auto;min-width:0;margin:0}
.cfb button{height:34px;border:0;border-radius:9px;padding:0 12px;background:#e5ecfb;color:#1d4ed8;font:600 12.5px Inter,system-ui,sans-serif;cursor:pointer}
.cfb .cfn{margin-left:auto;color:#5b6b8f;font-weight:500}
.cfb span.cfi{display:inline-flex;gap:6px;align-items:center}
tr[data-cf="1"]{display:none!important}
@media(max-width:700px){.cfb{padding:8px}.cfb .cfn{margin-left:0;width:100%}}
/* v17: mobile - buttons grow with their text, nothing runs outside the screen */
@media(max-width:700px){
html,body{overflow-x:hidden}
html body .bt[class][class][class]:not(.pn .bt){height:auto!important;min-height:44px!important;padding:11px 16px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;text-align:center;font-size:15px!important;max-width:100%;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}
html body .bt.sm[class][class][class]:not(.pn .bt){min-height:38px!important;padding:8px 12px!important;font-size:13.5px!important}
html body .card [data-rc]{width:100%}
.card,.card p,.card h3,.card h2,.card .mu,.cb,.cb span,.cb b,.tb h3,td,th,label{overflow-wrap:anywhere}
.tb,.cb{flex-wrap:wrap;row-gap:8px}
.card img,.card svg:not(.i),.card video,.card canvas{max-width:100%;height:auto}
.card input,.card select,.card textarea,#md input,#md select,#md textarea{max-width:100%;min-width:0;box-sizing:border-box}
.tw{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.mb{max-width:100vw;box-sizing:border-box}
}
/* v18: finance stat cards - same gradient icon tiles with glow as the dashboard */
html body .card.st{display:flex;align-items:center;gap:14px}
html body .card.st .ic2[class]{width:52px!important;height:52px!important;flex:none;border-radius:17px!important;display:grid;place-items:center;color:#fff!important;background:linear-gradient(135deg,var(--a1,#34d399),var(--a2,#059669))!important;box-shadow:none!important;filter:none!important}
html body .card.st .ic2[class] svg{width:25px!important;height:25px!important;color:#fff!important;stroke:#fff!important}
html body .card.st .ic2.c-r[class]{--a1:#fb7185;--a2:#e11d48;--rg:225,29,72}
html body .g4>.card.st:nth-child(2) .ic2[class]{--a1:#fb923c;--a2:#ea580c;--rg:234,88,12}
html body .g4>.card.st:nth-child(4) .ic2[class]{--a1:#60a5fa;--a2:#1d4ed8;--rg:29,78,216}
html body .g4>.card.st:nth-child(5) .ic2[class]{--a1:#fbbf24;--a2:#f97316;--rg:245,158,11}
html body .card.st .l{font-size:13px;font-weight:600;color:#5b6b8f}
html body .card.st .n{font-size:22px;font-weight:800;letter-spacing:-.01em;line-height:1.2}
html body .card.st .s{font-size:12px;color:#6b7aa0}
/* v19: alignment polish (desktop + mobile) */
*,*::before,*::after{box-sizing:border-box}
html body .tb,html body .cb{align-items:center}
html body .tw td,html body .tw th{vertical-align:middle}
html body .g2,html body .g3,html body .g4{align-items:stretch}
html body .card.st>div:last-child{min-width:0;flex:1}
html body .card.st .n{white-space:nowrap}
@media(max-width:700px){
html body .card.st{gap:10px;padding:12px!important}
html body .card.st .ic2[class]{width:42px!important;height:42px!important;border-radius:14px!important}
html body .card.st .ic2[class] svg{width:21px!important;height:21px!important}
html body .card.st .l{font-size:12px}
html body .card.st .n{font-size:17px;white-space:normal;overflow-wrap:anywhere}
html body .card.st .s{font-size:11px}
html body .app #v>.card,html body .app #v .card{margin-left:0;margin-right:0}
}
/* v20: attractive portal chooser */
html body #lgn{background:linear-gradient(180deg,rgba(6,18,56,.82),rgba(10,34,96,.66) 50%,rgba(4,12,40,.88)),var(--schoolimg) center/cover no-repeat fixed!important}
html body #lgn .lw h1{color:#fff!important;font-size:clamp(30px,4.2vw,44px)!important;letter-spacing:-.02em;margin:10px 0 4px!important}
html body #lgn .lw>p{color:rgba(255,255,255,.82)!important;font-size:16px;margin:0 0 26px}
html body #lgn .pqg{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1fr;gap:18px!important;max-width:860px;margin:0 auto!important}
html body #lgn .pq{position:relative;overflow:hidden;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px;min-height:200px;padding:22px 22px 20px!important;border-radius:26px!important;border:1px solid rgba(255,255,255,.28)!important;color:#fff;text-decoration:none;text-align:left;box-shadow:0 14px 30px rgba(0,0,0,.28);transition:transform .22s ease,box-shadow .22s ease;animation:pqin .5s both}
html body #lgn .pq:nth-child(2){animation-delay:.06s}html body #lgn .pq:nth-child(3){animation-delay:.12s}html body #lgn .pq:nth-child(4){animation-delay:.18s}
html body #lgn .pq::before{content:"";position:absolute;inset:0;background:radial-gradient(120% 90% at 0% 0%,rgba(255,255,255,.28),transparent 55%);pointer-events:none}
html body #lgn .pq:hover{transform:translateY(-5px);box-shadow:0 20px 38px rgba(0,0,0,.34)}
html body #lgn .pq:active{transform:scale(.98)}
html body #lgn .pq-i{position:relative;width:58px!important;height:58px!important;border-radius:18px!important;display:grid;place-items:center;background:rgba(255,255,255,.22)!important;border:1px solid rgba(255,255,255,.5)!important;box-shadow:none!important;flex:none}
html body #lgn .pq-i::before,html body #lgn .pq-i::after{display:none!important}
html body #lgn .pq-i svg{width:28px!important;height:28px!important;fill:none;stroke:#fff!important;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
html body #lgn .pq b{position:relative;font-size:24px!important;font-weight:800!important;letter-spacing:-.01em;color:#fff!important;margin-top:4px}
html body #lgn .pq-a{position:absolute!important;top:16px!important;right:16px!important;width:34px!important;height:34px!important;border-radius:50%!important;display:grid;place-items:center;background:rgba(255,255,255,.24)!important;transition:transform .22s}
html body #lgn .pq:hover .pq-a{transform:translateX(3px)}
html body #lgn .pq-a svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
html body #lgn .pq-s{position:relative;margin-top:auto!important;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 16px;border-radius:999px;background:#fff;font-size:14px;font-weight:700;color:#1e3a8a;box-shadow:none}
html body #lgn .pq-s svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
html body #lgn .pq-w{position:absolute!important;right:-16px!important;bottom:-18px!important;width:124px!important;height:124px!important;opacity:.17;pointer-events:none}
html body #lgn .pq-w svg{width:100%;height:100%;fill:none;stroke:#fff;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
@keyframes pqin{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(max-width:620px){html body #lgn .pqg{grid-template-columns:1fr!important;gap:14px!important}html body #lgn .pq{min-height:168px;padding:18px!important}html body #lgn .pq b{font-size:22px!important}}
@media(prefers-reduced-motion:reduce){html body #lgn .pq{animation:none;transition:none}}
/* v21: attractive welcome hero (all portals) */
html body .hero{position:relative;overflow:hidden;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px 22px;padding:26px 28px;border-radius:24px;color:#fff;background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 45%,#172554 100%)!important;box-shadow:none}
html body .hero::before{content:"";position:absolute;right:-70px;top:-90px;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.28),rgba(255,255,255,.04) 70%);pointer-events:none}
html body .hero::after{content:"";position:absolute;right:90px;bottom:-110px;width:220px;height:220px;border-radius:50%;border:26px solid rgba(255,255,255,.07);pointer-events:none}
html body .hero>*{position:relative;z-index:1}
html body .hero h2{color:#fff!important;font-size:clamp(22px,3vw,30px)!important;font-weight:800!important;letter-spacing:-.015em;margin:0 0 4px!important}
html body .hero p{color:rgba(255,255,255,.86)!important;margin:0!important;font-size:15px}
html body .hero .hv{display:flex;align-items:center;gap:16px;min-width:0}
html body .hero .hv-a{flex:none;width:62px;height:62px;border-radius:20px;display:grid;place-items:center;font:800 22px/1 Inter,system-ui,sans-serif;letter-spacing:.02em;color:#fff;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.5)}
html body .hero .hv-k{display:inline-block;margin-bottom:6px;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.18);font:600 11.5px Inter,system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#fff}
html body .hero .hv-b,html body .hero>div:last-child:not(:first-child){display:flex;flex-wrap:wrap;gap:10px}
html body .hero .bt[class][class][class]{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px!important;border:0!important;background:#fff!important;color:#1d4ed8!important;font-weight:700!important;box-shadow:none!important;transition:transform .18s}
html body .hero .bt[class][class][class]:hover{transform:translateY(-2px)}
html body .hero .bt[class][class][class]:not(:first-child){background:rgba(255,255,255,.16)!important;color:#fff!important;border:1px solid rgba(255,255,255,.55)!important}
html body .hero .bt svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){html body .hero{padding:20px 18px;border-radius:20px}html body .hero .hv-a{width:52px;height:52px;border-radius:17px;font-size:19px}html body .hero .hv-b,html body .hero>div:last-child:not(:first-child){width:100%}html body .hero .bt[class][class][class]{flex:1 1 calc(50% - 10px)}}
.lgb{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin:0 0 16px;padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,#eef4ff,#f7f0ff);border:1px dashed #9db8f5}
.lgb .lgb-i{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#fff;border:1px solid #d6e2fb;color:#1d4ed8;flex:none}
.lgb .lgb-i svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lgb .lgb-t{flex:1 1 220px;min-width:0;font:500 13.5px/1.4 Inter,system-ui,sans-serif;color:#4a5b82}
.lgb .lgb-t b{display:block;font-size:15px;font-weight:700;color:#0f1d3a;margin-bottom:2px}
.lgb .lgb-b{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:700px){.lgb .lgb-b{width:100%}.lgb .lgb-b .bt{flex:1}}
/* ===== ESMOS v24: one button standard, class cards, fee cards, report actions, approval card, attendance ===== */
/* --- Buttons: 10px corners, no shadow, sizes 44 / 36 / 32. ID-level specificity so older rules cannot win. --- */
html body :is(#v,#md,.app) :is(.bt,.wab,.wm-ed)[class][class][class][class]:not(.hero .bt):not(.pn .bt){border-radius:10px!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;min-height:44px!important;height:auto!important;padding:10px 18px!important;font-size:14.5px!important;font-weight:600!important;line-height:1.3!important;align-items:center;justify-content:center;box-sizing:border-box;text-align:center}
html body :is(#v,#md,.app) :is(.bt.sm,.fr-a .bt,.cw-a .bt,td.ac .bt,.fq-act .bt)[class][class][class][class]:not(.hero .bt):not(.pn .bt){min-height:36px!important;padding:7px 14px!important;font-size:13px!important}
html body :is(#v,#md,.app) :is(.xpb .bt,.xpb button.bt)[class][class][class][class]{min-height:32px!important;padding:5px 12px!important;font-size:12.5px!important;border-radius:8px!important}
html body :is(#v,#md,.app) .ib[class][class][class][class]{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;border-radius:10px!important;box-shadow:none!important;filter:none!important}
html body :is(#v,#md,.app) .cp[class][class][class][class]{min-height:36px!important;padding:0 14px!important;border-radius:10px!important;box-shadow:none!important}
html body :is(#v,#md,.app) :is(.bt,.wab,.wm-ed,.ib,.cp):is(:hover,:focus,:active)[class][class][class][class]{box-shadow:none!important;filter:none!important}

/* --- Students: class card --- */
.cw-sub{display:flex;flex-wrap:wrap;gap:4px 6px;margin-top:4px}
.cw-sub em{font-style:normal;font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:6px;background:#f1f5fb;color:#475569;white-space:nowrap}
.cw-gd{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--ln)}
.cw-gd .cw-g{flex:1;min-width:0}
.cw-gd .cw-g span{font-size:14px;font-weight:600;color:var(--tx);white-space:normal;overflow-wrap:anywhere}
.cw-ph{flex:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:10px;background:#eef3ff;border:1px solid #cddbfb;color:#1d4ed8!important;font-size:13px;font-weight:600;text-decoration:none}
.cw-ph svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cw-a{display:flex;align-items:center;gap:8px;margin-top:10px}
html body :is(#v,#md,.app) .cw-a .bt[class][class][class][class]{flex:1 1 auto;margin:0}
.cw-a .ib{flex:none;margin:0}
.cw-card .tg{flex:none;white-space:nowrap}

/* --- Fee Management: tidy header, chips instead of highlighter text --- */
.fq-kp{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fq-kp>div{padding:12px 14px;border-radius:16px;border:1px solid var(--ln);min-width:0;background:#f5f8ff}
.fq-kp .fq-ok{background:linear-gradient(135deg,#e9fbef,#d6f6e1);border-color:#b9ecc9}
.fq-kp .fq-bad{background:linear-gradient(135deg,#fff1f2,#ffe0e4);border-color:#fbc4cc}
.fq-kp span{display:block;font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--mu)}
.fq-kp b{display:block;margin-top:2px;font-size:19px;line-height:1.2;white-space:nowrap}
.fq-kp .fq-ok b{color:#137536}.fq-kp .fq-bad b{color:#be123c}
.fq-ov{margin:12px 0 14px}
.fq-ov small{display:block;margin-top:6px;font-size:12.5px;color:var(--mu)}
.fq-pb{height:8px;border-radius:999px;background:#e4ecfb;overflow:hidden}
.fq-pb i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#3b82f6,#16a34a)}
.fq-ac{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fq-ac .bt:first-child{grid-column:1/-1}
.fq-ac .bt{margin:0;width:100%}
.fq-note{margin:8px 2px 14px;font-size:12.5px}
.fq-ch{display:flex;gap:8px;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;margin:0 0 12px;padding:2px;scrollbar-width:none}
.fq-ch::-webkit-scrollbar{display:none}
.fq-ch .cp{flex:none;white-space:nowrap;font-weight:600}
.fq-ch .cp em{font-style:normal;margin-left:4px;padding:1px 7px;border-radius:999px;background:rgba(29,78,216,.1);font-size:11.5px}
.fq-ch .cp.on em{background:rgba(255,255,255,.25)}
.fq-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:6px 2px 10px}
.fq-bar b{font-size:15px;color:var(--tx);white-space:nowrap}
.fq-bar span{display:flex;gap:6px}
html body .fq-bar button[type][type][type]{margin:0;padding:5px 12px;min-height:32px;border:0;border-radius:8px;background:#eef3ff;color:#1d4ed8;font-size:12.5px;font-weight:600;box-shadow:none;cursor:pointer;white-space:nowrap}
.fq-list{display:flex;flex-direction:column;gap:12px}
.fq-sec{background:#fff;border:1px solid var(--ln);border-radius:20px;overflow:hidden}
html body .fq-h{display:grid;grid-template-columns:46px minmax(0,1fr) 20px;grid-template-areas:"ic t chev" "ic s chev";column-gap:12px;row-gap:6px;align-items:center;width:100%;box-sizing:border-box;margin:0;padding:12px 14px;border:0;border-radius:0;background:linear-gradient(135deg,#f3f7ff,#e9f1ff);color:inherit;font:inherit;text-align:left;box-shadow:none;cursor:pointer}
.fq-ic{grid-area:ic;align-self:center;width:46px;height:46px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#3b82f6,#1d4ed8);line-height:1}
.fq-ic i{font-style:normal;font-size:17px;font-weight:800}
.fq-ic em{font-style:normal;font-size:10px;font-weight:700;margin-top:2px;opacity:.9}
.fq-t{grid-area:t;min-width:0}
.fq-t b{display:block;font-size:16px;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fq-t small{display:block;margin-top:2px;font-size:12px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fq-s{grid-area:s;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.fq-s small{font-size:12px;color:var(--mu);white-space:nowrap}
.fq-pen{display:inline-block;padding:3px 10px;border-radius:8px;font-size:12.5px;font-weight:700;line-height:1.3;background:#fde4ea;color:#be123c;white-space:nowrap}
.fq-pen.fq-paid{background:#dcf4e6;color:#137536}
.fq-chev{grid-area:chev;justify-self:end;width:20px;height:20px;color:#1d4ed8;transition:transform .25s}
.fq-sec.open .fq-chev{transform:rotate(180deg)}
.fq-hp{height:4px;border-radius:0;background:#dbe6fb}
.fq-hp i{border-radius:0}
.fq-b{display:none;padding:12px}
.fq-sec.open .fq-b{display:block}
.fq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px}
.fq-card{position:relative;padding:12px 12px 12px 16px;background:#fff;border:1px solid var(--ln);border-radius:16px;overflow:hidden;min-width:0}
.fq-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#94a3b8}
.fq-card.fq-ok::before{background:#16a34a}.fq-card.fq-bad::before{background:#dc2626}.fq-card.fq-pt::before{background:#3b82f6}.fq-card.fq-un::before{background:#f59e0b}
.fq-top{display:flex;align-items:center;gap:10px}
.fq-av{flex:none;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:16px}
.fq-m{flex:1;min-width:0}
.fq-n{display:block;font-size:15px;color:var(--tx);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fq-sub{display:flex;flex-wrap:wrap;gap:4px 6px;margin-top:4px}
.fq-sub em{font-style:normal;font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:6px;background:#f1f5fb;color:#475569;white-space:nowrap}
.fq-card .tg{flex:none;white-space:nowrap}
.fq-amt{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0 8px}
.fq-amt>div{min-width:0;padding:7px 8px;border-radius:12px;background:#f5f8ff}
.fq-amt span{display:block;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mu)}
.fq-amt b{display:block;margin-top:2px;font-size:clamp(11.5px,3.3vw,13.5px);white-space:nowrap;background:none;padding:0}
.fq-amt b.fq-gn{color:#137536}.fq-amt b.fq-rd{color:#be123c}
.fq-card .fq-pb{height:6px}
.fq-act{display:flex;align-items:center;gap:8px;margin-top:10px}
html body :is(#v,#md,.app) .fq-act .bt[class][class][class][class]{flex:1 1 auto;margin:0}
.fq-act .ib{flex:none;margin:0}
.fq-em{padding:24px;text-align:center}
@media(max-width:820px){.fq-grid{grid-template-columns:1fr}.fq-b{padding:10px}}

/* --- List cards with a text action (Review, Approve, Collect...): one clear action row at the bottom --- */
html body #v table.rt td.ac:has(.bt){order:99!important;flex:1 1 100%!important;width:100%;margin:6px 0 0!important;padding:10px 0 0!important;border:0!important;border-top:1px dashed var(--ln)!important;display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:flex-start!important;gap:8px!important;grid-column:1/-1!important}
html body #v table.rt td.ac:has(.bt) .bt{flex:1 1 auto!important;min-width:0!important;white-space:normal}
html body #v table.rt td.ac:has(.bt) .ib{flex:none}

/* --- Report card approval card --- */
.rap{padding:16px!important}
.rap-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--ln)}
.rap-t{min-width:0}
.rap-t b{display:block;font-size:16.5px;color:var(--tx)}
.rap-t small{display:block;margin-top:2px;font-size:12.5px;color:var(--mu)}
.rap-i{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;font-size:13.5px}
.rap-i span{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mu)}
.rap-i b{color:var(--tx)}
.rap-n{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#f5f8ff;border:1px solid var(--ln);font-size:13.5px;line-height:1.5;color:#475569}
.rap-b{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
html body :is(#v,#md,.app) .rap-b .bt[class][class][class][class]{flex:1 1 200px;margin:0;gap:8px}
.rap-b .bt svg{width:17px;height:17px;flex:none}

/* --- Attendance v2 --- */
.at-top{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.at-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;background:#eef3ff;border-radius:12px}
html body .at-tabs button{height:40px;margin:0;border:1px solid transparent;border-radius:9px;background:transparent;color:#475569;font-size:14px;font-weight:600;box-shadow:none;cursor:pointer}
html body .at-tabs button.on{background:#fff;border-color:#cddbfb;color:#1d4ed8}
.at-dt{display:flex;gap:8px;align-items:center}
.at-dt input{flex:1;min-width:0;height:44px;margin:0}
.at-sr{margin-bottom:12px}
.at .se{max-width:none;width:100%;flex:1 1 100%}
.at-chips{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;padding:2px;margin-bottom:10px;scrollbar-width:none}
.at-chips::-webkit-scrollbar{display:none}
html body .at-chip{flex:none;min-width:84px;margin:0;padding:8px 12px;border:1px solid var(--ln);border-radius:12px;background:#fff;color:var(--tx);text-align:left;box-shadow:none;cursor:pointer}
.at-chip b{display:block;font-size:13.5px;white-space:nowrap}
.at-chip small{display:block;margin-top:1px;font-size:11.5px;color:var(--mu)}
.at-chip.part{border-color:#fcd34d;background:#fffbeb}.at-chip.part small{color:#b45309}
.at-chip.done{border-color:#86efac;background:#f0fdf4}.at-chip.done small{color:#137536}
html body .at-chip.on{background:linear-gradient(135deg,#3b82f6,#1d4ed8);border-color:#1d4ed8;color:#fff}
.at-chip.on small{color:rgba(255,255,255,.85)}
.at-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.at-nav span{font-size:12.5px;font-weight:600;color:var(--mu);white-space:nowrap}
.at-nav .bt[disabled]{opacity:.45}
.at-hd{display:flex;align-items:center;gap:12px}
.at-ic{flex:none;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;color:#fff;font-size:18px;font-weight:800;background:linear-gradient(135deg,#3b82f6,#1d4ed8)}
.at-ic.at-ti{background:linear-gradient(135deg,#8b5cf6,#6d28d9)}
.at-t{flex:1;min-width:0}
.at-t b{display:block;font-size:16px;color:var(--tx)}
.at-t small{display:block;margin-top:2px;font-size:12.5px;color:var(--mu)}
.at-pb{height:6px;margin:12px 0;border-radius:999px;background:#e4ecfb;overflow:hidden}
.at-pb i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#3b82f6,#16a34a)}
.at-kp{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.at-kp>div{padding:8px 4px;text-align:center;border-radius:12px;min-width:0}
.at-kp b{display:block;font-size:18px;line-height:1.2}
.at-kp span{display:block;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.at-kp .kP{background:#dcf4e6;color:#137536}.at-kp .kA{background:#fde4ea;color:#be123c}.at-kp .kT{background:#fef3c7;color:#b45309}.at-kp .kL{background:#dbeafe;color:#1d4ed8}
.at-lg{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.at-lg span{padding:3px 9px;border-radius:6px;font-size:11.5px;font-weight:700}
.at-lg .lP{background:#dcf4e6;color:#137536}.at-lg .lA{background:#fde4ea;color:#be123c}.at-lg .lL{background:#dbeafe;color:#1d4ed8}.at-lg .lT{background:#fef3c7;color:#b45309}
.at-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:8px}
.at-sh{grid-column:1/-1;margin-top:4px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mu)}
.at-row{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;background:#fff;border:1px solid var(--ln);border-left:4px solid #cbd5e1;border-radius:14px;min-width:0}
.at-row.sP{border-left-color:#16a34a}.at-row.sA{border-left-color:#dc2626}.at-row.sL{border-left-color:#3b82f6}.at-row.sT{border-left-color:#f59e0b}
.at-av{flex:none;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:14px}
.at-m{flex:1;min-width:0}
.at-m b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14.5px;line-height:1.25;color:var(--tx)}
.at-m small{display:block;margin-top:1px;font-size:11.5px;color:var(--mu);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.at-seg{display:flex;gap:4px;flex:none}
html body .at-seg button{width:34px;height:34px;min-height:0;padding:0;margin:0;border:1px solid #d5def0;border-radius:8px;background:#fff;color:var(--mu);font-size:13px;font-weight:700;box-shadow:none;cursor:pointer}
html body .at-seg button.on{color:#fff}
html body .at-seg .bP.on{background:#16a34a;border-color:#16a34a}
html body .at-seg .bA.on{background:#dc2626;border-color:#dc2626}
html body .at-seg .bL.on{background:#3b82f6;border-color:#3b82f6}
html body .at-seg .bT.on{background:#f59e0b;border-color:#f59e0b}
.at-act{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
html body :is(#v,#md,.app) .at-act .bt[class][class][class][class]{flex:1 1 180px;margin:0;gap:8px}
.at-res{margin-bottom:6px}.at-res b{font-size:15px;color:var(--tx)}.at-res small{display:block;margin-top:2px;font-size:12.5px;color:var(--mu)}
.at-em{padding:24px;text-align:center}
@media(max-width:820px){.at-list{grid-template-columns:1fr}}

/* =====================================================================
   v26 - mobile app polish (admin portal)
   Appended last on purpose: these rules win over the older layers above.
   ===================================================================== */

/* ---------- 1. Drawer: menu scrolls, Logout is always visible ---------- */
html body .app aside#sb{display:flex;flex-direction:column;height:100vh;height:100dvh;max-height:100dvh;overflow:hidden;padding:calc(18px + env(safe-area-inset-top,0px)) 14px 0}
html body .app aside#sb .lg{flex:none}
html body .app aside#sb .sbn{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px 0 10px;scrollbar-width:none}
html body .app aside#sb .sbn::-webkit-scrollbar{display:none}
html body .app aside#sb .lo{flex:none;display:flex;flex-direction:column;gap:10px;margin:0 -14px;padding:12px 14px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(255,255,255,.2);background:rgba(6,24,74,.55);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html body .app aside#sb .lo .lou{display:flex;align-items:center;gap:10px;min-width:0;font-size:13.5px;font-weight:600}
html body .app aside#sb .lo .lou>div{min-width:0;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .app aside#sb .lo .lou small{display:block;font-weight:500;opacity:.75;font-size:11.5px}
html body .app aside#sb .lo .lav{flex:none;width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:rgba(255,255,255,.18);color:#fff;font-weight:800;font-size:15px}
html body .app aside#sb .lo .bt.lob{width:100%;height:46px;margin:0;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:14px;background:#fff;color:#b91c1c;font-size:14.5px;font-weight:700;border:0;box-shadow:0 8px 18px rgba(0,0,0,.2)}
html body .app aside#sb .lo .bt.lob::after{display:none}
html body .app aside#sb .lo .bt.lob svg{width:19px;height:19px;stroke:currentColor;fill:none}
html body .app aside#sb .lo .bt.lob:active{transform:scale(.98);background:#fff1f2}
@media(min-width:821px){html body .app aside#sb{height:100vh;height:100dvh}}

/* ---------- 2. Summary cards (Finance etc.): icon never overlaps text ---------- */
@media(max-width:820px){
 html body .app .g4 .card.st{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;grid-template-rows:auto auto auto;column-gap:12px!important;row-gap:0!important;align-items:center;padding:14px!important;border-radius:20px!important;overflow:hidden;min-width:0}
 html body .app .g4 .card.st>div:not(.ic2){display:contents}
 html body .app .g4 .st .ic2{grid-column:1!important;grid-row:1!important;width:44px!important;height:44px!important;min-width:44px;margin:0!important;border-radius:14px!important;display:grid;place-items:center;transform:none!important;box-shadow:0 6px 14px rgba(15,23,42,.14)}
 html body .app .g4 .st .ic2 svg{width:22px!important;height:22px!important;fill:none;stroke:currentColor;stroke-width:1.9}
 html body .app .g4 .st .l{grid-column:2!important;grid-row:1!important;align-self:center;margin:0!important;font-size:12.5px!important;font-weight:600;line-height:1.25;color:var(--mu)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
 html body .app .g4 .st .n{grid-column:1/-1!important;grid-row:2!important;margin:12px 0 3px!important;font-size:22px!important;font-weight:800;line-height:1.15!important;letter-spacing:-.01em;white-space:nowrap;overflow:visible!important}
 html body .app .g4 .st .s{grid-column:1/-1!important;grid-row:3!important;margin:0;font-size:11.5px!important;line-height:1.3;color:var(--mu)!important;white-space:normal!important}
}

/* ---------- 3. Card action buttons: equal width, never wrapped ---------- */
.acx,.aci{display:inline-flex;gap:6px;vertical-align:middle}
.aci{margin-left:6px}
.ib em{display:none;font-style:normal}
@media(max-width:820px){
 html body .app #v table.rt td.ac.ac{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;justify-content:stretch!important;align-items:stretch!important;text-align:left!important}
 html body .app #v table.rt td.ac.ac .acx{display:grid;grid-template-columns:repeat(var(--n,1),minmax(0,1fr));gap:8px;width:100%;margin:0}
 html body .app #v table.rt td.ac.ac .acx .bt,
 html body .app #v table.rt td.ac.ac .acx .bt.sm{width:100%;min-width:0!important;height:44px;min-height:44px!important;margin:0!important;padding:0 6px!important;display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;font-size:13px!important;font-weight:700!important;line-height:1;letter-spacing:0;border-radius:13px!important;flex:none!important}
 html body .app #v table.rt td.ac.ac .acx .bt[data-a="wl"]{background:#fff7e6!important;color:#b45309!important;border:1px solid #fcd9a0!important;box-shadow:none!important}
 html body .app #v table.rt td.ac.ac .acx .bt[data-a="rj"]{background:#fff1f3!important;color:#be123c!important;border:1px solid #fecdd6!important;box-shadow:none!important}
 html body .app #v table.rt td.ac.ac .aci{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin:0}
 html body .app #v table.rt td.ac.ac .aci .ib{width:100%;height:42px;margin:0;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:13px;background:#fff;border:1px solid #d5e0f7;color:#1d4ed8;box-shadow:none}
 html body .app #v table.rt td.ac.ac .aci .ib[data-a="del"]{color:#be123c;border-color:#fecdd6;background:#fff8f9}
 html body .app #v table.rt td.ac.ac .aci .ib em{display:inline;font-size:13px;font-weight:600}
 html body .app #v table.rt td.ac.ac .aci .ib svg{width:17px;height:17px}
}

/* ---------- 4. Class filter chips ---------- */
.cf{display:flex;align-items:center;gap:10px;margin:2px 0 14px;min-width:0}
.cf-t{flex:none;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--mu)}
.cf-t svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9}
.cf-t em{font-style:normal}
.cf-r{flex:1 1 auto;min-width:0;display:flex;gap:8px;overflow-x:auto;padding:3px 2px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.cf-r::-webkit-scrollbar{display:none}
html body .app .cf .cf-b{flex:none;scroll-snap-align:start;display:inline-flex;align-items:center;gap:7px;height:36px;margin:0;padding:0 8px 0 13px;border-radius:999px;border:1px solid #cfdcf6;background:#fff;color:#33415f;font-size:13px;font-weight:600;white-space:nowrap;box-shadow:none;transition:background .2s,color .2s,border-color .2s}
html body .app .cf .cf-b::after{display:none}
html body .app .cf .cf-b i{font-style:normal;min-width:22px;height:22px;padding:0 6px;display:inline-grid;place-items:center;border-radius:999px;background:#e8efff;color:#1d4ed8;font-size:11.5px;font-weight:700}
html body .app .cf .cf-b.on{background:linear-gradient(160deg,#5ea5ff 0%,var(--b) 100%);border-color:transparent;color:#fff;box-shadow:0 8px 16px color-mix(in srgb,var(--b) 32%,transparent)}
html body .app .cf .cf-b.on i{background:rgba(255,255,255,.26);color:#fff}
@media(max-width:480px){.cf-t em{display:none}}

/* ---------- 5. Class-wise results & positions ---------- */
.cr{padding:16px!important;border-radius:24px!important;margin-bottom:18px;background:linear-gradient(180deg,#fff 0%,#f4f8ff 100%)!important}
.cr-h{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.cr-h h3{margin:0;font-size:17px;line-height:1.2}
.cr-h p{margin:2px 0 0;font-size:12.5px;color:var(--mu);line-height:1.35}
.cr-i{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:#fff;background:linear-gradient(150deg,#5ea5ff,var(--b));box-shadow:0 8px 16px color-mix(in srgb,var(--b) 30%,transparent)}
.cr-i svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9}
.cr .cf-in{margin:0 -4px 14px}
.cr-g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html body .app .cr .cr-c{display:flex;flex-direction:column;gap:8px;width:100%;margin:0;padding:13px;text-align:left;border-radius:18px;background:#fff;border:1px solid #dbe5f8;color:var(--tx);box-shadow:0 6px 16px rgba(30,58,138,.07);transition:transform .2s,box-shadow .2s}
html body .app .cr .cr-c::after{display:none}
html body .app .cr .cr-c:active{transform:scale(.98)}
.cr-ct{display:flex;flex-direction:column;gap:1px}
.cr-ct b{font-size:14.5px;font-weight:800}
.cr-ct span{font-size:11.5px;color:var(--mu)}
.cr-cv{display:flex;align-items:baseline;gap:6px}
.cr-cv strong{font-size:26px;font-weight:800;color:var(--b);letter-spacing:-.02em;line-height:1}
.cr-cv small{font-size:11px;color:var(--mu)}
.cr-bar{height:7px;border-radius:99px;background:#e3ebfb;overflow:hidden}
.cr-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--b),#38bdf8)}
.cr-cf{display:flex;flex-direction:column;gap:4px;font-size:11.5px}
.cr-pass{color:#15803d;font-weight:700}
.cr-top{display:flex;align-items:center;gap:5px;color:var(--mu);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cr-top svg{flex:none;width:13px;height:13px;fill:none;stroke:#d97706;stroke-width:2}
.cr-m{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
.cr-m>div{padding:10px 6px;border-radius:14px;background:#fff;border:1px solid #dbe5f8;text-align:center;min-width:0}
.cr-m small{display:block;font-size:10.5px;color:var(--mu);margin-bottom:3px}
.cr-m b{font-size:16px;font-weight:800;color:var(--tx)}
.cr-s{margin:2px 0 10px;font-size:14px;font-weight:800}
.cr-l{display:flex;flex-direction:column;gap:8px}
.cr-r{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:16px;background:#fff;border:1px solid #dbe5f8}
.cr-p{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:800;background:#eaf0ff;color:#1d4ed8}
.cr-r.r1{background:linear-gradient(135deg,#fff8dc,#fff);border-color:#f3d77a}.cr-r.r1 .cr-p{background:linear-gradient(150deg,#fcd34d,#d99a06);color:#fff;box-shadow:0 4px 10px rgba(217,154,6,.35)}
.cr-r.r2{background:linear-gradient(135deg,#f1f5f9,#fff);border-color:#cfd8e3}.cr-r.r2 .cr-p{background:linear-gradient(150deg,#cbd5e1,#8392a5);color:#fff}
.cr-r.r3{background:linear-gradient(135deg,#fdf0e6,#fff);border-color:#efc9a6}.cr-r.r3 .cr-p{background:linear-gradient(150deg,#e6a46c,#b8693a);color:#fff}
.cr-n{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
.cr-n b{font-size:14.5px;font-weight:700;color:var(--tx);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cr-n small{font-size:11.5px;color:var(--mu)}
.cr-n .cr-bar{height:5px;margin-top:3px}
.cr-v{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
.cr-v b{font-size:16px;font-weight:800;color:var(--tx);line-height:1}
.cr-v small{font-size:11px;color:var(--mu)}
@media(min-width:821px){.cr-g{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.cr-l{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- 6. Fees by class (finance) ---------- */
.fcl{margin-bottom:18px;padding:16px!important;border-radius:24px!important}
.fcl-r{padding:12px 0;border-top:1px dashed #d5e0f7}
.cr-h+.fcl-r{border-top:0}
.fcl-t{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:7px}
.fcl-t b{font-size:14.5px}
.fcl-t span{font-size:12px;font-weight:700;color:#15803d}
.fcl-v{display:flex;justify-content:space-between;gap:10px;margin-top:7px;font-size:11.5px;color:var(--mu)}
.fcl-v b{display:block;font-size:13px;color:var(--tx)}
.fcl-v span:last-child{text-align:right}

/* phone numbers never break across lines inside cards */
@media(max-width:820px){html body .app #v table.rt td[data-l="WhatsApp"]{white-space:nowrap!important;word-break:keep-all!important;font-size:13.5px!important;letter-spacing:0}}
html body .app .cr .cr-cv{flex-direction:column;align-items:flex-start;gap:2px}
html body .app .cr .cr-cv strong{white-space:nowrap}

/* ===== Admissions: app-style cards ===== */
.ad-kp{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.ad-kp>div{padding:11px 8px;text-align:center;background:linear-gradient(135deg,#eef4ff,#e3edff);border:1px solid var(--ln);border-radius:16px;min-width:0}
.ad-kp>div.w{background:linear-gradient(135deg,#fff8e8,#ffeecb);border-color:#f6dfaa}
.ad-kp>div.g{background:linear-gradient(135deg,#ecfaf2,#d8f4e5);border-color:#bfe8d0}
.ad-kp b{display:block;font-size:22px;line-height:1.15;color:#14336f;font-weight:700}
.ad-kp>div.w b{color:#9a5b00}.ad-kp>div.g b{color:#12703d}
.ad-kp span{display:block;margin-top:2px;font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mu)}
.ad-ch{display:flex;gap:8px;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;margin:0 0 14px;padding:4px 4px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ad-ch::-webkit-scrollbar{display:none}
.ad-ch .cp{flex:none;white-space:nowrap;padding:7px 14px;font-weight:600}
.ad-ch .cp i{font-style:normal;margin-left:6px;opacity:.7;font-size:.92em}
.ad-ch .cp.on{box-shadow:0 4px 10px color-mix(in srgb,var(--b) 28%,transparent)}
.ad-list{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:900px){.ad-list{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}}
.ad-em{padding:24px;text-align:center}
.ad-card{background:#fff;border:1px solid var(--ln);border-radius:20px;padding:14px;min-width:0;box-shadow:0 6px 18px rgba(30,64,175,.06)}
.ad-top{display:flex;align-items:center;gap:12px}
.ad-av{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:18px}
.ad-m{flex:1;min-width:0}
.ad-n{display:block;font-size:16px;font-weight:600;color:var(--tx);line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ad-sub{display:block;margin-top:2px;font-size:12.5px;color:var(--mu)}
.ad-top .tg{flex:none;white-space:nowrap;margin:0}
.ad-info{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--ln)}
.ad-g{min-width:0;display:flex;flex-direction:column;gap:3px}
.ad-g small{font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mu)}
.ad-g>span{font-size:14px;font-weight:500;color:var(--tx);overflow-wrap:anywhere}
.ad-doc{align-self:flex-start;display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:99px;font-size:12.5px!important;font-weight:600!important}
.ad-doc::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.ad-doc.ok{background:#e4f7ec;color:#15803d!important}
.ad-doc.no{background:#fff1d6;color:#b45309!important}
.ad-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.ad-ph{flex:1 1 auto;min-width:0;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 12px;border-radius:12px;background:#eef3ff;border:1px solid #cddbfb;color:#1d4ed8!important;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.ad-ph svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ad-ic{flex:none;display:flex;gap:8px}
html body .app .ad-ib{width:38px;height:38px;min-height:0;padding:0;margin:0;border-radius:12px;display:inline-grid;place-items:center;background:#fff;border:1px solid #cddbfb;color:#1d4ed8;box-shadow:none;font-size:0}
html body .app .ad-ib.dl{color:#be123c;border-color:#f7c5d0;background:#fff7f9}
html body .app .ad-ib svg{width:18px;height:18px;margin:0}
html body .app .ad-ib::after{display:none}
.ad-acts{display:flex;gap:8px;margin-top:12px}.ad-acts .ad-b{flex:1 1 0;min-width:0}
html body .app .ad-b{min-height:40px;padding:0 6px;margin:0;border-radius:12px;font:inherit;font-size:13px;font-weight:600;line-height:1.1;white-space:nowrap;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:none;border:1px solid transparent}
html body .app .ad-b.pri{background:linear-gradient(160deg,#5ea5ff 0%,var(--b) 100%);color:#fff;box-shadow:0 4px 10px color-mix(in srgb,var(--b) 26%,transparent)}
html body .app .ad-b.wl{background:#fff6e5;color:#b45309;border-color:#f6d9a0}
html body .app .ad-b.rj{background:#fff1f3;color:#be123c;border-color:#f7c5d0}

/* ===== polish: chip glow no longer clipped, Students bar buttons stay on one line ===== */
.cf-r{padding:6px 6px 12px!important}
html body .app .cf .cf-b.on{box-shadow:0 4px 10px color-mix(in srgb,var(--b) 26%,transparent)}
.cw-bar b{white-space:nowrap}
.cw-bar span button{white-space:nowrap;font-size:12.5px;padding:7px 10px;min-height:0}
.cw-bar{gap:6px;flex-wrap:nowrap}
.cw-bar b{font-size:14px}
.cw-bar span{gap:6px;flex:none}
.cw-bar span button{font-size:12px!important;padding:6px 8px!important}
/* ===== v28/v31 Mobile: clean cards for every Edit/Delete list (no overlap, readable, thumb-friendly) ===== */
@media(max-width:820px){
html body .app #v table.rt td{overflow-wrap:break-word!important;word-break:normal!important;hyphens:none!important}
html body .app #v table.rt tr:has(td.ac .aci){display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px 10px!important;padding:14px 14px 12px!important;align-items:start!important}
html body .app #v table.rt tr:has(td.ac .aci)::before{display:none!important}
html body .app #v table.rt tr:has(td.ac .aci)>td{flex:none!important;min-width:0!important;margin:0!important;grid-column:span 3!important;order:0!important;font-size:14px!important;font-weight:600!important;color:var(--tx)}
html body .app #v table.rt tr:has(td.ac .aci)>td[data-l="Student"],
html body .app #v table.rt tr:has(td.ac .aci)>td:first-child{grid-column:1/-1!important;order:-3!important;font-size:17px!important;font-weight:800!important;padding:0 0 2px!important;display:block!important}
html body .app #v table.rt tr:has(td.ac .aci)>td[data-l="Student"]::before{display:none!important}
html body .app #v table.rt tr:has(td.ac .aci)>td[data-l="Subject"],
html body .app #v table.rt tr:has(td.ac .aci)>td[data-l="Test"]{grid-column:span 3!important}
html body .app #v table.rt tr:has(td.ac .aci)>td::before{font-size:10px!important;margin-bottom:3px!important}
html body .app #v table.rt tr:has(td.ac .aci)>td.ac{grid-column:1/-1!important;order:99!important;display:block!important;border-top:1px solid var(--ln)!important;padding:10px 0 0!important;margin:2px 0 0!important;text-align:left!important}
html body .app #v table.rt tr:has(td.ac .aci)>td.ac .aci{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;width:100%!important}
html body .app #v table.rt tr:has(td.ac .aci)>td.ac .aci .ib{width:100%!important;height:44px!important;margin:0!important;padding:0 10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;border-radius:13px!important;white-space:nowrap!important}
html body .app #v table.rt tr:has(td.ac .aci)>td.ac .aci .ib em{display:inline!important;font-size:14px!important;font-weight:700!important}
html body .app #v table.rt tr:has(td.ac .aci)>td.ac .aci .ib svg{width:18px!important;height:18px!important;flex:none!important}
html body .app #v table.rt tr:has(td.ac .aci)>td[data-l="Marks"],
html body .app #v table.rt tr:has(td.ac .aci)>td[data-l="Percent"],
html body .app #v table.rt tr:has(td.ac .aci)>td[data-l="Grade"]{grid-column:span 2!important}
html body .app #v table.rt tr:has(td.ac .aci)>td.ttl{grid-column:1/-1!important;order:-3!important;font-size:17px!important;font-weight:800!important;display:block!important;padding:0 0 2px!important}
html body .app #v table.rt tr:has(td.ac .aci)>td.ttl::before{display:none!important}
html body .app #v table.rt tr:has(td.ac .aci)>td[data-l="Amount"],html body .app #v table.rt tr:has(td.ac .aci)>td[data-l="Fee"]{color:#1d4ed8!important;font-weight:800!important}
html body .app #v table.rt tr:has(td.ac .aci):has(td.ttl)>td:first-child:not(.ttl){grid-column:span 3!important;order:0!important;font-size:14px!important;font-weight:600!important;padding:0!important}
html body .app #v table.rt tr:has(td.ac .aci):has(td.ttl)>td:first-child:not(.ttl)::before{display:block!important}
/* keep last cards clear of the floating buttons + bottom bar */
html body .app #v{padding-bottom:calc(190px + env(safe-area-inset-bottom,0px))!important}
}

.lgb{display:none!important}

/* ===== v29 Sidebar: every menu item reachable, compact on short screens, visible scrollbar ===== */
html body .app aside#sb .sbn{scrollbar-width:thin!important;scrollbar-color:rgba(255,255,255,.5) transparent;padding-right:4px!important;padding-bottom:16px!important}
html body .app aside#sb .sbn::-webkit-scrollbar{display:block!important;width:5px}
html body .app aside#sb .sbn::-webkit-scrollbar-thumb{background:rgba(255,255,255,.45);border-radius:6px}
html body .app aside#sb .sbn::-webkit-scrollbar-track{background:transparent}
@media(max-height:820px){
html body .app aside#sb{padding-top:calc(12px + env(safe-area-inset-top,0px))!important}
html body .app aside#sb .sbn a{padding-top:8px!important;padding-bottom:8px!important;min-height:0!important;margin-top:0!important;margin-bottom:2px!important;font-size:14px!important}
html body .app aside#sb .lo{gap:6px!important;padding-top:8px!important;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}
html body .app aside#sb .lo .bt.lob{height:40px!important}
html body .app aside#sb .lo .lav{width:32px!important;height:32px!important;font-size:13px!important}
}
@media(max-height:640px){
html body .app aside#sb .sbn a{padding-top:6px!important;padding-bottom:6px!important;font-size:13.5px!important}
html body .app aside#sb .lo .lou{display:none!important}
}

/* ===== v30 Sidebar: Hubs options listed right under Hubs ===== */
html body .app aside#sb .hbs{display:flex;flex-direction:column;gap:2px;margin:2px 0 8px 22px;padding-left:10px;border-left:1px solid rgba(255,255,255,.28)}
html body .app aside#sb .hbs a{display:flex!important;align-items:center;gap:9px;padding:7px 10px!important;min-height:0!important;font-size:13px!important;border-radius:10px;opacity:.92}
html body .app aside#sb .hbs a::before{display:none!important}
html body .app aside#sb .hbs a:hover{opacity:1;transform:none!important}
html body .app aside#sb .hbs .hbd{flex:none;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.6}

/* ===== v32 Mobile: tidy date-filter box (chips grid, full-width select) ===== */
@media(max-width:820px){
html body .app #v .cfb{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;border-radius:16px;align-items:stretch}
html body .app #v .cfb>span:first-child{grid-column:1/-1;font-size:13px;font-weight:700;color:#0f1d3a}
html body .app #v .cfb>button{height:40px;min-width:0;padding:0 6px;border-radius:11px;font-size:13px;white-space:nowrap;display:flex;align-items:center;justify-content:center}
html body .app #v .cfb>button[data-k="x"]{order:2;background:#fff1f3;color:#be123c}
html body .app #v .cfb>select[data-k="m"]{order:3;grid-column:1/-1;width:100%;height:42px;font-size:14px;padding:0 12px;border-radius:11px}
html body .app #v .cfb>span.cfi{order:4;grid-column:1/-1;gap:8px;font-size:13px}
html body .app #v .cfb .cfi input,html body .app #v .cfb .cfi select{flex:1 1 0;min-width:0;width:100%;height:42px;font-size:14px;border-radius:11px}
html body .app #v .cfb>.cfn{order:5;grid-column:1/-1;width:100%;margin:0;text-align:left;font-size:12.5px}
html body .app #v .cfb .cfi input[type="date"],html body .app #v .cfb .cfi input[type="month"]{font-size:12.5px;padding:0 6px}
}

/* ===== v33: class-wise chips everywhere (finance, accounts, payments, defaulters, homework, timetable) ===== */
html body .app .cf.cf-fin{margin:2px 0 12px;padding:10px 12px 4px;border-radius:18px;background:rgba(255,255,255,.72);border:1px solid #dbe6fb;box-shadow:0 6px 18px -12px rgba(29,78,216,.28);backdrop-filter:blur(6px)}
html body .app .cf-n{margin:-4px 2px 14px;padding:9px 13px;border-radius:12px;background:#eef4ff;border:1px dashed #bcd0f7;color:#33507f;font-size:12.5px;line-height:1.45;font-weight:500}
html body .app .cf-n::before{content:"i";display:inline-grid;place-items:center;width:16px;height:16px;margin-right:7px;border-radius:50%;background:#1d4ed8;color:#fff;font:700 11px/1 Inter,sans-serif;vertical-align:1px}
@media(max-width:820px){
html body .app .cf.cf-fin{margin:0 0 10px;padding:8px 8px 2px;border-radius:16px}
html body .app .cf.cf-fin .cf-t{padding-left:4px}
html body .app .cf-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent)}
html body .app .cf-n{font-size:12px;margin:-2px 0 12px}
}

/* ===== v34: Students class-wise cards - cleaner, aligned, more attractive ===== */
html body .app #v .cw-list{gap:14px}
html body .app #v .cw-sec{border:1px solid #dbe6fb;border-radius:22px;background:#fff;box-shadow:0 10px 26px -14px rgba(29,78,216,.35);overflow:hidden}
html body .app #v .cw-sec.open{border-color:#b9cdf5}
html body .app #v .cw-h{padding:13px 14px;gap:12px;align-items:center;background:linear-gradient(135deg,#f4f8ff 0%,#e8f0ff 100%)}
html body .app #v .cw-sec:nth-child(4n+2) .cw-ic{background:linear-gradient(145deg,#34d399,#059669)}
html body .app #v .cw-sec:nth-child(4n+3) .cw-ic{background:linear-gradient(145deg,#fbbf24,#ea580c)}
html body .app #v .cw-sec:nth-child(4n+4) .cw-ic{background:linear-gradient(145deg,#a78bfa,#6d28d9)}
html body .app #v .cw-ic{box-shadow:0 8px 16px -8px rgba(29,78,216,.6)}
html body .app #v .cw-t b{font-size:16px;line-height:1.2}
html body .app #v .cw-t small{margin-top:3px;font-size:12.5px}
html body .app #v .cw-chev{width:30px;height:30px;padding:6px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(29,78,216,.15)}
html body .app #v .cw-b{padding:12px;background:#f8faff}
html body .app #v .cw-grid{gap:12px}
html body .app #v .cw-card{display:flex;flex-direction:column;gap:0;padding:14px;border:1px solid #e1eafb;border-radius:18px;background:#fff;box-shadow:0 4px 14px -10px rgba(29,78,216,.35)}
html body .app #v .cw-top{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px}
html body .app #v .cw-av{width:46px;height:46px;border-radius:15px;font-size:18px;box-shadow:0 6px 12px -6px rgba(0,0,0,.35)}
html body .app #v .cw-n{font-size:15.5px;font-weight:700;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
html body .app #v .cw-sub{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
html body .app #v .cw-sub em{padding:3px 9px;border-radius:999px;background:#eef3ff;color:#2f4a86;font-size:11.5px;font-weight:600}
html body .app #v .cw-top>.tg{align-self:start;margin:0;white-space:nowrap}
html body .app #v .cw-gd{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;border:0;border-radius:14px;background:#f5f8ff}
html body .app #v .cw-g small{font-size:10.5px;letter-spacing:.07em}
html body .app #v .cw-gd .cw-g span{font-size:14px;font-weight:700;color:#0f1d3a}
html body .app #v .cw-ph{height:38px;padding:0 13px;border-radius:12px;background:#fff;border:1px solid #c9d9fa;color:#1d4ed8;font-size:13px;font-weight:700;box-shadow:0 2px 6px -3px rgba(29,78,216,.4)}
html body .app #v .cw-ph svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
html body .app #v .cw-a{display:grid;grid-template-columns:minmax(0,1fr) 42px 42px;gap:8px;margin-top:12px;align-items:stretch}
html body .app #v .cw-a:not(:has(.bt)){grid-template-columns:1fr 1fr}
html body .app #v .cw-a .bt{width:100%;min-height:42px!important;height:42px;border-radius:13px!important;font-size:14px!important;font-weight:700}
html body .app #v .cw-a .ib{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;border:1px solid #d5e1fa;background:#fff;color:#1d4ed8;padding:0}
html body .app #v .cw-a .ib:last-child{color:#dc2626;border-color:#f6d2d6;background:#fff6f7}
html body .app #v .cw-a .ib svg{width:18px;height:18px}
@media(max-width:820px){html body .app #v .cw-grid{grid-template-columns:1fr}}
@media(min-width:821px){html body .app #v .cw-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}}
/* v34b: chips on one row, tighter phone pill */
html body .app #v .cw-top{grid-template-columns:46px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;row-gap:6px;align-items:center}
html body .app #v .cw-top .cw-m{display:contents}
html body .app #v .cw-top .cw-av{grid-column:1;grid-row:1/3;align-self:center}
html body .app #v .cw-top .cw-n{grid-column:2;grid-row:1;align-self:end}
html body .app #v .cw-top>.tg{grid-column:3;grid-row:1;align-self:center}
html body .app #v .cw-top .cw-sub{grid-column:2/4;grid-row:2;margin:0;flex-wrap:nowrap;overflow:hidden}
html body .app #v .cw-sub em{padding:3px 8px;font-size:11px;min-width:0;overflow:hidden;text-overflow:ellipsis}
html body .app #v .cw-ph{height:36px;padding:0 11px;font-size:12.5px;gap:5px}
html body .app #v .cw-gd .cw-g span{overflow-wrap:normal}

/* ===== v35: card lists (Students fallback, Staff, Admissions, Payroll, Exams...) - clean aligned cards ===== */
@media(max-width:820px){
html body .app #v table.rt>tbody{gap:14px!important}
html body .app #v table.rt tr{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;padding:16px 14px 14px 18px!important;border-radius:20px!important;background:#fff!important;border:1px solid #dfe8fb!important;box-shadow:0 10px 24px -16px rgba(29,78,216,.45)!important;overflow:hidden;align-items:stretch!important}
html body .app #v table.rt tr:not(.emr)::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,#5ea5ff,#1d4ed8)}
html body .app #v table.rt tr:nth-child(4n+2)::before{background:linear-gradient(180deg,#34d399,#059669)}
html body .app #v table.rt tr:nth-child(4n+3)::before{background:linear-gradient(180deg,#fbbf24,#ea580c)}
html body .app #v table.rt tr:nth-child(4n+4)::before{background:linear-gradient(180deg,#a78bfa,#6d28d9)}
html body .app #v table.rt td.ttl{grid-column:1/-1!important;grid-row:1;display:flex;align-items:center;min-height:30px;padding:0 96px 0 0!important;font-size:17px!important;font-weight:800!important;color:#0f1d3a;line-height:1.2}
html body .app #v table.rt td.stt{position:absolute!important;top:14px!important;right:12px!important;left:auto!important;margin:0!important;display:flex;align-items:center;min-height:30px}
html body .app #v table.rt td[data-l]:not(.ttl):not(.stt){display:flex!important;flex-direction:column;justify-content:center;gap:3px;min-width:0;padding:9px 11px!important;border-radius:13px;background:#f4f8ff;border:1px solid #e6eefc;font-size:14px!important;font-weight:700;color:#0f1d3a;line-height:1.25}
html body .app #v table.rt td[data-l]:not(.ttl):not(.stt)::before{margin:0!important;font-size:10px!important;font-weight:700;letter-spacing:.07em;color:#6b7a99}
html body .app #v table.rt td.wd{grid-column:1/-1!important}
html body .app #v table.rt td[data-l]:not(.ttl):not(.stt) .tg{align-self:flex-start}
html body .app #v table.rt td.ac{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:2px 0 0!important;padding:12px 0 0!important;border-top:1px dashed #cfdcf6!important;justify-content:stretch!important}
html body .app #v table.rt td.ac .acx{display:grid;grid-template-columns:repeat(var(--n,1),minmax(0,1fr));gap:8px}
html body .app #v table.rt td.ac .acx .bt{width:100%;min-height:42px!important;height:42px;margin:0!important;padding:0 8px!important;border-radius:13px!important;font-size:13.5px!important;font-weight:700;justify-content:center;white-space:nowrap}
html body .app #v table.rt td.ac .aci{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html body .app #v table.rt td.ac .aci .ib{width:100%!important;height:42px!important;display:flex!important;align-items:center;justify-content:center;gap:7px;margin:0!important;padding:0 10px!important;border-radius:13px!important;background:#fff;border:1px solid #cfdcf6;color:#1d4ed8;font-size:13.5px;font-weight:700}
html body .app #v table.rt td.ac .aci .ib em{font-style:normal}
html body .app #v table.rt td.ac .aci .ib:last-child{color:#dc2626;border-color:#f3c9ce;background:#fff6f7}
html body .app #v table.rt td.ac .aci .ib svg{width:17px;height:17px;flex:none}
html body .app #v table.rt td.ac:not(:has(.acx)) .aci:only-child{grid-column:1/-1}
}

/* ===================== v30: mobile polish (reports, expenses, finance icons, permissions, fees) ===================== */
@media(max-width:820px){
/* shared: compact card + equal boxes + less scrolling */
html body .app #v table.rt:has(button[data-k="reports"]) tr:not(.emr),
html body .app #v table.rt:has(button[data-k="exp"]) tr:not(.emr){gap:8px!important;padding:12px 12px 10px 16px!important;border-radius:18px!important}
html body .app #v table.rt:has(button[data-k="reports"]) tbody,
html body .app #v table.rt:has(button[data-k="exp"]) tbody{gap:12px!important}
html body .app #v table.rt:has(button[data-k="reports"]) td.ttl,
html body .app #v table.rt:has(button[data-k="exp"]) td.ttl{font-size:16px!important;min-height:28px}

/* --- Staff weekly reports: 6 equal boxes (2 columns x 3 rows) --- */
html body .app #v table.rt:has(button[data-k="reports"]) tr:not(.emr){grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto}
html body .app #v table.rt:has(button[data-k="reports"]) td:not(#_)[data-l]:not(.ttl):not(.stt){
 grid-column:auto!important;min-height:64px;height:100%;align-items:flex-start;justify-content:flex-start!important;
 padding:8px 10px!important;border-radius:12px;font-size:13px!important;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
html body .app #v table.rt:has(button[data-k="reports"]) td:not(#_)[data-l]:not(.ttl):not(.stt)::before{font-size:9.5px!important;margin-bottom:1px!important}
html body .app #v table.rt:has(button[data-k="reports"]) td:not(#_)[data-l="Completed"],
html body .app #v table.rt:has(button[data-k="reports"]) td:not(#_)[data-l="Pending"],
html body .app #v table.rt:has(button[data-k="reports"]) td:not(#_)[data-l="Next goals"]{display:-webkit-box!important;-webkit-box-orient:vertical}
html body .app #v table.rt:has(button[data-k="reports"]) td:not(#_)[data-l="Date"]{background:#eaf1ff!important;border-color:#d5e3ff!important;color:#1d4ed8}
html body .app #v table.rt:has(button[data-k="reports"]) td:not(#_)[data-l="Rating"]{color:#b45309}
/* action buttons: Review on top (full width), Edit + Delete below with a clear gap */
html body .app #v table.rt:has(button[data-k="reports"]) td.ac,
html body .app #v table.rt:has(button[data-k="exp"]) td.ac{gap:8px!important;padding-top:10px!important}
html body .app #v table.rt td.ac .acx+.aci{margin-top:0}
html body .app #v table.rt td.ac .acx .bt{min-height:40px!important;height:40px!important}
html body .app #v table.rt:has(button[data-k="reports"]) td.ac .aci .ib,
html body .app #v table.rt:has(button[data-k="exp"]) td.ac .aci .ib{height:38px!important;border-radius:12px!important;font-size:13px}

/* --- Expenses: Date | Details | Amount = 3 equal attractive boxes, one row --- */
html body .app #v table.rt:has(button[data-k="exp"]) tr:not(.emr){grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body .app #v table.rt:has(button[data-k="exp"]) td.ttl{padding-right:0!important}
html body .app #v table.rt:has(button[data-k="exp"]) td:not(#_)[data-l]:not(.ttl):not(.stt){
 grid-column:auto!important;position:static!important;min-height:62px;height:100%;margin:0!important;
 display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:flex-start!important;gap:3px;
 padding:9px 10px!important;border-radius:13px;background:#f4f8ff;border:1px solid #e1eafb;
 font-size:13px!important;font-weight:700;line-height:1.25;color:#0f1d3a;text-align:left!important;overflow-wrap:anywhere}
html body .app #v table.rt:has(button[data-k="exp"]) td:not(#_)[data-l]:not(.ttl):not(.stt)::before{
 display:block!important;position:static!important;margin:0!important;width:auto!important;font-size:9.5px!important;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#6b7a99}
html body .app #v table.rt:has(button[data-k="exp"]) td:not(#_)[data-l="Date"]{background:#eaf1ff!important;border-color:#d5e3ff!important}
html body .app #v table.rt:has(button[data-k="exp"]) td:not(#_)[data-l="Amount"]{background:linear-gradient(160deg,#fff1f3,#ffe4e8)!important;border-color:#fbcfd8!important;color:#be123c!important;font-size:12.5px!important;font-weight:800!important;white-space:nowrap!important;overflow-wrap:normal!important}
html body .app #v table.rt:has(button[data-k="exp"]) td:not(#_)[data-l="Amount"]::before{color:#c2506a}

/* --- Finance stat cards: light, professional icon chips (no heavy gradient tiles) --- */
html body .app .g4 .card.st .ic2[class]{width:30px!important;height:30px!important;border-radius:9px!important;
 background:var(--tint,#e8f0ff)!important;color:var(--ink,#1d4ed8)!important;box-shadow:none!important;filter:none!important;animation:none!important;transform:none!important;border:1px solid var(--edge,#d3e2ff)}
html body .app .g4 .card.st .ic2[class] svg{width:16px!important;height:16px!important;color:var(--ink,#1d4ed8)!important;stroke:var(--ink,#1d4ed8)!important;stroke-width:1.7!important;fill:none}
html body .app .g4 .card.st .ic2.c-g[class]{--tint:#e7f7ee;--ink:#15803d;--edge:#c9ecd8}
html body .app .g4 .card.st .ic2.c-r[class]{--tint:#fdecef;--ink:#be123c;--edge:#f8cfd8}
html body .app .g4 .card.st .ic2.c-b[class]{--tint:#e8f0ff;--ink:#1d4ed8;--edge:#d3e2ff}
html body .app .g4>.card.st:nth-child(2) .ic2[class]{--tint:#fff1e6;--ink:#c2410c;--edge:#fde0c8}
html body .app .g4>.card.st:nth-child(4) .ic2[class]{--tint:#e8f0ff;--ink:#1d4ed8;--edge:#d3e2ff}
html body .app .g4>.card.st:nth-child(5) .ic2[class]{--tint:#fff6dd;--ink:#b45309;--edge:#f8e5b0}
html body .app .g4 .card.st:hover .ic2{transform:none!important}
html body .app .g4 .st .n{font-weight:700!important}

/* --- Module permissions: compact 2-column role boxes + slim blue checkboxes --- */
html body .app #v .perm table.rt tr:not(.emr){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 8px!important;padding:12px!important;border-radius:16px}
html body .app #v .perm table.rt td.ttl{grid-column:1/-1!important;padding:0 0 8px!important;margin:0 0 2px!important;font-size:15px!important;border-bottom:1px solid var(--ln)}
html body .app #v .perm table.rt td:not(#_)[data-l]:not(.ttl){grid-column:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px;
 min-height:38px;padding:6px 10px!important;border-radius:10px;background:#fff;border:1px solid #e1eafb;font-weight:500}
html body .app #v .perm table.rt td:not(#_)[data-l]:not(.ttl)::before{font-size:10px!important;font-weight:700;letter-spacing:.05em;line-height:1.15;color:#5b6b8f;text-transform:uppercase}
html body .app #v .perm input[type=checkbox]{-webkit-appearance:none;appearance:none;width:20px!important;height:20px!important;min-height:0!important;flex:none;margin:0!important;padding:0!important;
 border:1.5px solid #b9c8e6;border-radius:6px!important;background:#fff;display:grid;place-content:center;cursor:pointer;transition:background .15s,border-color .15s;accent-color:#1d4ed8}
html body .app #v .perm input[type=checkbox]::after{content:"";width:10px;height:6px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translate(1px,-1px) scale(0);transition:transform .12s}
html body .app #v .perm input[type=checkbox]:checked{background:#2563eb;border-color:#2563eb}
html body .app #v .perm input[type=checkbox]:checked::after{transform:rotate(-45deg) translate(1px,-1px) scale(1)}
html body .app #v .perm input[type=checkbox]:disabled{background:#e6ecf7;border-color:#d3dcee;cursor:default}
html body .app #v .perm input[type=checkbox]:disabled:checked{background:#9db4e3;border-color:#9db4e3}
}

/* --- Fees (parent / student): monthly & yearly view --- */
.fv-seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 12px;border-radius:14px;background:#eaf0fc}
.fv-seg button{border:0;border-radius:11px;padding:9px 6px;background:none;color:#5b6b8f;font:600 13.5px Inter,system-ui,sans-serif;cursor:pointer;min-height:40px}
.fv-seg button.on{background:#fff;color:#1d4ed8;box-shadow:0 2px 8px rgba(29,78,216,.15)}
.fv-yr{display:flex;gap:8px;overflow-x:auto;margin:0 0 12px;padding-bottom:2px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.fv-yr::-webkit-scrollbar{display:none}
.fv-yr button{flex:none;border:1px solid #d5e3ff;border-radius:999px;padding:7px 14px;background:#fff;color:#1d4ed8;font:600 12.5px Inter,system-ui,sans-serif;cursor:pointer;min-height:34px}
.fv-yr button.on{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.fy-row{margin-top:10px;padding:12px 14px;background:#f5f8ff;border:1px solid var(--ln);border-radius:16px}
.fy-t{display:flex;align-items:center;gap:8px}
.fy-t b{font-size:17px;color:var(--tx)}
.fy-t span{font-size:12px;color:var(--mu);flex:1}
.fy-p{font-style:normal;font-size:11.5px;font-weight:700;padding:4px 10px;border-radius:999px;background:#e3f6ea;color:#137536}
.fy-p.d{background:#fff1e0;color:#b45309}
.fy-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.fy-g>div{padding:8px 10px;border-radius:12px;background:#fff;border:1px solid #e1eafb;min-width:0}
.fy-g small{display:block;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6b7a99}
.fy-g b{display:block;margin-top:2px;font-size:13px;font-weight:800;color:var(--tx);overflow-wrap:anywhere}
.fy-g .g b{color:#137536}.fy-g .r b{color:#be123c}
.fy-b{height:6px;margin-top:10px;border-radius:99px;background:#e3eafa;overflow:hidden}
.fy-b span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#34d399,#16a34a)}

/* v31: fee filter, approvals result strip */
.fv-f{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;margin:0 0 12px;padding:12px;border-radius:16px;background:#f5f8ff;border:1px solid #e1eafb}
.fv-f label{display:block;margin:0;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#6b7a99}
.fv-f label.w{grid-column:1/-1}
.fv-f select,.fv-f input{margin-top:4px;min-height:42px;font-size:15px;font-weight:600;color:#0f1d3a;letter-spacing:0;text-transform:none}
.fv-n{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;font-size:12.5px;color:#6b7a99}
.fv-n button{border:0;background:#fde8ec;color:#be123c;font:700 12.5px Inter,system-ui,sans-serif;padding:6px 14px;border-radius:999px;cursor:pointer}
.apr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 10px}
.apr>div{padding:8px 10px;border-radius:12px;background:#f4f8ff;border:1px solid #e1eafb;min-width:0}
.apr b{display:block;font-size:16px;font-weight:800;color:#0f1d3a}
.apr small{display:block;font-size:10.5px;font-weight:600;color:#6b7a99;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apr>div:nth-child(1) b{color:#15803d}.apr>div:nth-child(2) b{color:#be123c}
.ar-list{display:flex;flex-direction:column;gap:8px;margin:8px 0 12px;max-height:46vh;overflow:auto}
.ar-r{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:#f4f8ff;border:1px solid #e1eafb}
.ar-p{flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#e8f0ff;color:#1d4ed8;font-weight:800;font-size:13px}
.ar-n{flex:1;min-width:0}.ar-n b{display:block;font-size:14.5px;color:#0f1d3a}.ar-n small{font-size:12px;color:#6b7a99}
.ar-s{flex:none;text-align:right}.ar-s b{display:block;font-size:15px;color:#0f1d3a}.ar-s span{display:flex;gap:4px;justify-content:flex-end;margin-top:3px}

/* ===== v28: no sideways scrolling for class chips, clean Edit/Delete buttons, chart fits the screen ===== */
@media(max-width:820px){
  /* 1) chips wrap into a tidy grid (list view) instead of a scrolling strip */
  html body .app .ch,html body .app .cw-ch,html body .app .fq-ch,html body .app .wm-ch,html body .app .ad-ch,html body .app .cf-r,html body .app .at-chips{
    display:flex!important;flex-wrap:wrap!important;overflow:visible!important;max-width:100%;width:100%;gap:8px!important;padding:2px 0 4px!important;margin:0 0 12px!important;scroll-snap-type:none!important}
  html body .app .ch .cp{flex:1 1 auto!important;min-width:0;max-width:100%;white-space:normal;text-align:center;justify-content:center}
  html body .app .cw-ch .cp,html body .app .fq-ch .cp,html body .app .wm-ch .cp,html body .app .ad-ch .cp,html body .app .cf-r .cf-b,html body .app .at-chips .at-chip{
    flex:1 1 calc(33.333% - 8px)!important;min-width:0!important;max-width:none!important;width:auto;min-height:40px;height:auto;padding:7px 6px!important;
    display:inline-flex;align-items:center;justify-content:center;gap:6px;text-align:center;white-space:normal;line-height:1.2;font-size:13px;border-radius:14px}
  html body .app .at-chips .at-chip{flex-direction:column;gap:1px}
  html body .app .cf{display:block;margin:2px 0 12px}
  html body .app .cf-t{display:none!important}
  html body .app .cf-r .cf-b i,html body .app .ad-ch .cp i,html body .app .cw-ch .cp i{margin-left:0}
  /* 2) Edit / Delete: icon-only square buttons, never overlap */
  html body .app #v table.rt td.ac.ac>.aci:only-child{display:flex!important;grid-template-columns:none;gap:8px;width:auto;margin:0}
  html body .app #v table.rt td.ac.ac>.aci:only-child .ib{width:38px;height:38px;min-height:0;padding:0;margin:0;border-radius:12px;display:inline-grid;place-items:center;font-size:0}
  html body .app #v table.rt td.ac.ac>.aci:only-child .ib em{display:none}
  html body .app #v table.rt td.ac.ac>.aci:only-child .ib svg{width:18px;height:18px;margin:0}
  /* 3) charts fit the screen without sideways scrolling */
  html body .app .ac-sc{overflow-x:visible!important}
  html body .app .ac-w{min-width:0!important;width:100%}
  html body .app .ac-col{min-width:0}
  html body .app .ac-lbs span{font-size:9.5px;min-width:0;overflow:visible}
}
@media(max-width:820px){
  /* card values never split in the middle of a word */
  html body .app table.rt td[data-l]{font-size:14px;word-break:normal!important;overflow-wrap:break-word!important;hyphens:none}
  html body .app table.rt td[data-l]::before{white-space:nowrap}
}

/* ===== v29: approval list, review popup as app cards, logins buttons ===== */
#btop{z-index:49}
@media(max-width:820px){
  /* Waiting for approval: title never collapses, Open button stays small */
  html body .app .rp-pi{display:flex;align-items:center;gap:12px;padding:12px 0}
  html body .app .rp-pi .rp-pt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
  html body .app .rp-pi .rp-pt b{font-size:15px;font-weight:600;line-height:1.25;overflow-wrap:break-word}
  html body .app .rp-pi .rp-pt small{font-size:12.5px;line-height:1.35;color:var(--mu)}
  html body .app .rp-pi>.bt{flex:none!important;width:auto!important;min-width:84px;margin:0}

  /* Review popup: even gaps, clear boxes */
  #md .rp-mb{display:flex;flex-direction:column;gap:12px}
  #md .rp-mb>*{margin-top:0!important;margin-bottom:0!important}
  #md .rp-kp{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  #md .rp-kp>div{padding:12px 6px;text-align:center;border-radius:14px;min-width:0}
  #md .rp-kp b{display:block;font-size:20px;line-height:1.2}
  #md .rp-kp small{display:block;margin-top:4px;font-size:11.5px;line-height:1.25;color:var(--mu)}
  #md .rp-subs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #md .rp-sub{margin:0;min-width:0}
  #md .xpb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
  #md .xpb .xpl{flex:0 0 100%}
  #md .xpb button{flex:1 1 0;min-width:0}

  /* Results table -> one clear card per student */
  #md .rp-tw{overflow:visible}
  #md .rp-tw table,#md .rp-tw tbody{display:block;width:100%;min-width:0}
  #md .rp-tw thead{display:none}
  #md .rp-tw tbody tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 8px;align-items:center;padding:12px;margin:0 0 10px;border:1px solid var(--ln);border-radius:16px;background:#fff}
  #md .rp-tw td{display:block;padding:0!important;border:0!important;text-align:left;min-width:0;width:auto;white-space:normal;word-break:normal;overflow-wrap:break-word;grid-column:span 2;font-size:15px;font-weight:600;color:var(--tx)}
  #md .rp-tw td[data-l]::before{content:attr(data-l);display:block;margin-bottom:2px;font-size:10.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--mu)}
  #md .rp-tw td[data-l="Roll"]{grid-column:1;grid-row:1;justify-self:start;padding:4px 9px!important;border-radius:99px;background:#eef3ff;color:var(--mu);font-size:12px}
  #md .rp-tw td[data-l="Roll"]::before{content:"Roll ";display:inline;margin:0;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none}
  #md .rp-tw td.ttl{grid-column:2/4;grid-row:1;font-size:15px;line-height:1.25}
  #md .rp-tw td.ttl::before{display:none}
  #md .rp-tw td[data-l="Grade"]{grid-column:4;grid-row:1;justify-self:end}
  #md .rp-tw td[data-l="Grade"]::before{display:none}
  #md .rp-tw td[data-l="Total"],#md .rp-tw td[data-l="%"]{padding:9px 12px!important;border-radius:12px;background:#eaf2ff;color:#14336f;font-size:17px;font-weight:700}
  #md .rp-tw td.em{grid-column:1/-1;text-align:center;font-weight:500;color:var(--mu)}

  /* Popup buttons: primary on top, then Send back + Close side by side */
  #md .rp-ra{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;position:sticky;bottom:0;margin:0!important;padding:12px 0 calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--ln);z-index:2}
  #md .rp-ra .bt{width:100%;min-width:0;margin:0;min-height:44px}
  #md .rp-ra .bt[data-ap="ok"]{grid-column:1/-1;order:-1}
  #md .rp-ra .bt:only-child{grid-column:1/-1}

  /* Login cards: fields full width, 4 buttons in a tidy 2 x 2 grid */
  html body .app #v table.rt td[data-l^="Username"],html body .app #v table.rt td.wd{grid-column:1/-1}
  html body .app #v table.rt td.ac.ac.ac4{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  html body .app #v table.rt td.ac.ac.ac4>.bt{width:100%;height:42px;min-height:42px;margin:0!important;padding:0 8px!important}
}
@media(max-width:820px){
  #md .rp-tw{max-height:none!important;overflow:visible!important}
  #md .rp-mb{padding-bottom:0!important}
  #md .rp-ra{margin-top:4px!important}
}
@media(max-width:820px){
  #md .rp-tw td[data-l="Total"]{grid-column:1/3}
  #md .rp-tw td[data-l="%"]{grid-column:3/5}
}
@media(max-width:820px){
  html body .app .ch,html body .app .cw-ch,html body .app .fq-ch,html body .app .wm-ch,html body .app .ad-ch,html body .app .cf-r,html body .app .at-chips,html body .app .cf{box-sizing:border-box}
  html body .app .cf-r{padding:4px 0 10px!important}
}

/* ===== review popup: every subject shows its % and grade ===== */
#md .rp-tw td.sj[data-x]::after{content:attr(data-x);display:block;margin-top:2px;font-size:12px;font-weight:500;color:var(--mu)}
#md .rp-tw td.sj[data-x="Not entered"]{color:var(--mu);font-weight:500}

/* ===== v35 MOBILE FIX: equal boxes, text always inside ===== */
@media(max-width:820px){
 html body .app #v table.rt>tbody>tr{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto;align-items:stretch!important}
 html body .app #v table.rt td[data-l]:not(.ttl):not(.stt):not(.ac):not(.wd){
  grid-column:auto!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  min-height:72px!important;height:100%;align-self:stretch!important;justify-content:flex-start!important;
  overflow:hidden!important;overflow-wrap:anywhere!important;word-break:normal!important;white-space:normal!important;hyphens:auto}
 html body .app #v table.rt td[data-l]:not(.ttl):not(.stt)::before,
 html body .app table.rt td[data-l]::before{
  white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%;font-size:9.5px!important;letter-spacing:.03em!important;line-height:1.25!important;display:block!important}
 html body .app #v table.rt td.wd{grid-column:1/-1!important}
 html body .app #v table.rt td>*{max-width:100%;min-width:0}
 /* filter chips: equal width, no word breaking */
 .app .ch{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px!important;width:100%}
 .app .ch .cp{width:100%;min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;
  white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;font-size:13px!important;padding:8px 6px!important;text-align:center}
 /* generic safety: nothing may overflow its card */
 .app #v .card,.app #v .cb,.app #v .hero{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .app #v .two{grid-template-columns:minmax(0,1fr)!important}
 .app #v .tw{max-width:100%}
}
@media(max-width:380px){
 html body .app #v table.rt td[data-l]:not(.ttl):not(.stt):not(.ac):not(.wd){min-height:66px!important;padding:8px 9px!important;font-size:13px!important}
 .app .ch .cp{font-size:12px!important}
}
@media(max-width:820px){
 .app .cw-bar,.app .fq-bar{display:grid!important;grid-template-columns:1fr;gap:8px!important}
 .app .cw-bar>span,.app .fq-bar>span{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 .app .cw-bar button,.app .fq-bar button{width:100%;min-width:0;min-height:40px;white-space:nowrap;padding:8px 6px;text-align:center}
}
/* v36: staff rows (and any row with a 6-col legacy rule) -> clean 2-column tiles */
@media(max-width:820px){
 html body .app #v table.rt tr:has(td[data-l="Basic salary"]):has(td.ac .aci),
 html body .app #v table.rt tr:has(td[data-l="Class access"]):has(td.ac .aci){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body .app #v table.rt tr:has(td[data-l="Basic salary"])>td[data-l],
 html body .app #v table.rt tr:has(td[data-l="Class access"])>td[data-l]{grid-column:auto!important}
 html body .app #v table.rt tr:has(td[data-l="Class access"])>td[data-l="Class access"],
 html body .app #v table.rt tr:has(td[data-l="Class teacher of"])>td[data-l="Class teacher of"]{grid-column:1/-1!important}
 html body .app #v table.rt tr:has(td[data-l="Basic salary"])>td.stt{position:absolute!important;top:14px!important;right:12px!important;grid-column:auto!important}
}
/* v36: filter chips - equal columns, never clipped */
@media(max-width:820px){
 .app .ch{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(104px,1fr))!important;gap:8px!important;width:100%;overflow:visible!important}
 .app .ch .cp,.app .ch button{width:100%;min-width:0!important;max-width:100%;box-sizing:border-box;min-height:44px;display:flex!important;align-items:center;justify-content:center;gap:5px;
  white-space:nowrap!important;word-break:keep-all!important;overflow:hidden;text-overflow:ellipsis;font-size:12.5px!important;padding:8px 4px!important;text-align:center;flex:none!important}
 .app .ch .cp .n,.app .ch .cp b,.app .ch .cp small,.app .ch .cp span{flex:none;margin:0!important}
}
@media(max-width:820px){
 .app .cf-r{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(100px,1fr))!important;gap:8px!important;width:100%;overflow:visible!important}
 .app .cf-r .cf-b{width:100%!important;min-width:0!important;max-width:100%;box-sizing:border-box;min-height:44px;display:flex!important;align-items:center;justify-content:center;gap:5px;
  white-space:nowrap!important;word-break:keep-all!important;overflow:hidden;text-overflow:ellipsis;font-size:12.5px!important;padding:8px 4px!important;flex:none!important;margin:0!important}
}
@media(max-width:820px){
 .app .cf-r,.app .ch{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important}
 .app .cf-r .cf-b,.app .ch .cp{font-size:12.5px!important;padding:8px 6px!important;text-overflow:clip!important}
 .app #v .bt{max-width:100%;box-sizing:border-box}
}
/* v36 final: all chip rows = equal grid columns, no clipping, no mid-word breaks */
@media(max-width:820px){
 html body .app .ch,html body .app .cw-ch,html body .app .fq-ch,html body .app .wm-ch,html body .app .ad-ch,html body .app .cf-r,html body .app .at-chips{
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(124px,1fr))!important;gap:8px!important;overflow:visible!important;
  -webkit-mask-image:none!important;mask-image:none!important;width:100%!important;max-width:100%!important}
 html body .app .ch .cp,html body .app .cw-ch .cp,html body .app .fq-ch .cp,html body .app .wm-ch .cp,html body .app .ad-ch .cp,html body .app .cf-r .cf-b,html body .app .at-chips .at-chip{
  flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;min-height:44px!important;height:100%;
  white-space:nowrap!important;word-break:keep-all!important;overflow:hidden;text-overflow:clip!important;font-size:12.5px!important;padding:8px 6px!important;justify-content:center}
 html body .app .at-chips .at-chip{white-space:normal!important;flex-direction:column}
}
/* v37: action rows (extra button + Edit/Delete) - exact, equal alignment */
@media(max-width:820px){
 html body .app #v table.rt td.ac:has(.acx),html body .app #v table.rt td.ac:has(.aci){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;align-items:stretch}
 html body .app #v table.rt td.ac .acx{display:grid!important;grid-template-columns:repeat(var(--n,1),minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin:0!important}
 html body .app #v table.rt td.ac .aci{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin:0!important}
 html body .app #v table.rt td.ac .acx .bt,html body .app #v table.rt td.ac .aci .ib,html body .app #v table.rt td.ac .aci button{
  width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 12px!important;box-sizing:border-box!important;
  display:inline-flex!important;align-items:center;justify-content:center;gap:6px;border-radius:14px!important;font-size:14px!important;font-weight:600;line-height:1;white-space:nowrap}
 html body .app #v table.rt td.ac .aci .ib svg{width:17px;height:17px;flex:none}
 html body .app #v table.rt td.ac .aci .ib em{font-style:normal}
}
@media(max-width:820px){
 html body .app #v table.rt td.ac.ac .acx .bt.sm,html body .app #v table.rt td.ac.ac .acx button.bt{height:44px!important;min-height:44px!important;width:100%!important;padding:0 12px!important;border-radius:14px!important;font-size:14px!important;display:inline-flex!important;align-items:center;justify-content:center;flex:none!important}
 html body .app #v table.rt td.ac.ac:has(.acx):has(.aci){row-gap:8px!important}
 html body .app #v table.rt td.ac.ac .acx{margin-bottom:0!important}
 html body .app #v table.rt td.ac.ac .aci{margin-top:0!important}
}
@media(max-width:820px){
 html body .app #v table.rt td.ac.ac .acx .bt[class][class][class][class][class][class][class][class],
 html body .app #v table.rt td.ac.ac .aci .ib[class][class][class][class][class][class][class][class]{height:44px!important;min-height:44px!important;max-height:44px!important;width:100%!important;border-radius:14px!important;padding:0 12px!important;font-size:14px!important;box-sizing:border-box!important}
}
@media(max-width:820px){
 html body .app #v table.rt td.ac.ac .acx[class][class][class][class][class][class]{margin:0 0 8px!important;display:grid!important;width:100%!important}
 html body .app #v table.rt td.ac.ac .aci[class][class][class][class][class][class]{margin:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
}

/* ===== v38 mobile polish: exam cards, teacher hero buttons, class/subject rows ===== */
/* 1) Exam result cards: clean tiles, nothing squeezed */
@media(max-width:820px){
html body .app #v table.rt tr:has(td.ac .aci):has(>td[data-l="Percent"]):has(>td[data-l="Grade"]){grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px 8px!important;padding:16px!important;border-radius:22px!important}
html body .app #v table.rt tr:has(td.ac .aci):has(>td[data-l="Percent"]):has(>td[data-l="Grade"])>td:not(.ac):not(:first-child){display:flex!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:10px 12px!important;background:linear-gradient(180deg,#f7faff,#eef4ff)!important;border:1px solid #dbe5f7!important;border-radius:14px!important;font-size:15px!important;font-weight:700!important;line-height:1.25!important;text-align:left!important;writing-mode:horizontal-tb!important;word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important}
html body .app #v table.rt tr:has(td.ac .aci):has(>td[data-l="Percent"]):has(>td[data-l="Grade"])>td[data-l="Subject"],
html body .app #v table.rt tr:has(td.ac .aci):has(>td[data-l="Percent"]):has(>td[data-l="Grade"])>td[data-l="Test"]{grid-column:span 3!important}
html body .app #v table.rt tr:has(td.ac .aci):has(>td[data-l="Percent"]):has(>td[data-l="Grade"])>td[data-l="Marks"],
html body .app #v table.rt tr:has(td.ac .aci):has(>td[data-l="Percent"]):has(>td[data-l="Grade"])>td[data-l="Percent"],
html body .app #v table.rt tr:has(td.ac .aci):has(>td[data-l="Percent"]):has(>td[data-l="Grade"])>td[data-l="Grade"]{grid-column:span 2!important}
html body .app #v table.rt tr:has(td.ac .aci):has(>td[data-l="Percent"]):has(>td[data-l="Grade"])>td[data-l]::before{display:block!important;margin:0!important;font-size:10px!important;font-weight:700!important;letter-spacing:.07em!important;text-transform:uppercase!important;color:var(--mu)!important;writing-mode:horizontal-tb!important}
html body .app #v table.rt tr:has(td.ac .aci):has(>td[data-l="Percent"]):has(>td[data-l="Grade"])>td[data-l="Percent"]{color:var(--b)!important}
html body .app #v table.rt tr:has(td.ac .aci):has(>td[data-l="Percent"]):has(>td[data-l="Grade"])>td[data-l="Grade"] .tg{align-self:flex-start;font-size:14px!important;padding:3px 14px!important}
}
/* 2) Teacher / portal hero: tidy, equal, readable buttons */
@media(max-width:700px){
.app .hero .hv-b{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin-top:16px}
.app .hero .hv-b .bt{width:100%!important;min-height:48px!important;padding:12px 16px!important;gap:10px!important;font-size:15px!important;font-weight:700!important;white-space:nowrap!important;justify-content:center!important;border-radius:16px!important}
.app .hero .hv-b .bt .i{width:19px;height:19px}
.app .hero .hv-b .bt[data-a="slip"]{background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.55)!important;box-shadow:none!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
}
/* 3) My classes and subjects: name on top, subjects as chips */
.cb.cb2{flex-direction:column;align-items:stretch!important;gap:8px;padding:12px 0}
.cb.cb2 .cb-n{font-size:15px;font-weight:800;color:var(--tx)}
.cb.cb2 .cb-c{display:flex;flex-wrap:wrap;gap:6px;text-align:left}
.cb.cb2 .cb-c em{font-style:normal;font-size:12.5px;font-weight:600;line-height:1;padding:7px 12px;border-radius:999px;background:#eaf1ff;color:var(--b);border:1px solid #d3e1fb}
.cb.cb2 .cb-c em.cb-ct{background:#e3f8ea;color:#15803d;border-color:#bfe9cc}
.cb.cb2 .cb-c em.cb-at{background:#fff3e0;color:#b45309;border-color:#f6dcb4}
.cb.cb2 .cb-c em.cb-no{background:#f1f4f9;color:var(--mu);border-color:var(--ln)}

/* ===== v39: change password ===== */
.pwer{margin:8px 0 0;min-height:18px;color:#be123c;font-size:13px;font-weight:600;line-height:1.35}
.pwf label{display:block}
.lob.lop{background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.4)!important;box-shadow:none!important}
.lob.lop:active{background:rgba(255,255,255,.26)!important}

/* ===== v40: Fee Management dashboard ===== */
.fm{display:block;min-width:0;max-width:100%}
.fm *{box-sizing:border-box}
.fm .card{margin-bottom:16px}
.fm-hd{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.fm-hd h3{margin:0 0 4px;font-size:18px}
.fm-hd p{margin:0;color:var(--mu);font-size:13px;max-width:520px;line-height:1.45}
.fm-ha{display:flex;gap:8px;flex-wrap:wrap}
.fm-ha .bt{margin:0;padding:9px 14px;font-size:13px;white-space:nowrap}
.fm-fl{display:grid;grid-template-columns:minmax(200px,1.6fr) repeat(4,minmax(120px,1fr)) auto;gap:12px;align-items:end}
.fm-fl .fm-se{max-width:none;min-width:0;margin:0;height:42px;padding:0 12px}
.fm-fl .fm-se input{border:0;background:none;outline:0;width:100%;margin:0;padding:0;font:inherit;color:var(--tx);min-width:0}
.fm-f{display:block;margin:0;min-width:0;font-size:11.5px;font-weight:600;color:var(--mu)}
.fm-f span{display:block;margin-bottom:4px}
.fm-f select,.fm-f input{display:block;width:100%;min-width:0;height:42px;margin:0;padding:0 10px;border:1px solid var(--ln);border-radius:12px;background:var(--bg);color:var(--tx);font:inherit;font-size:14px;outline:0}
.fm-f select:focus,.fm-f input:focus{border-color:var(--b);box-shadow:0 0 0 3px rgba(29,78,216,.15)}
.fm-b{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;border-radius:10px;border:1px solid var(--ln);background:#fff;color:#33415f;font:600 12.5px var(--fb,inherit);cursor:pointer;white-space:nowrap;transition:.15s}
.fm-b:hover{background:var(--bg)}
.fm-b.pri{background:var(--b);color:#fff;border-color:var(--b)}
.fm-b.dng{color:#be123c;border-color:#f6c9d3}
.fm-b.clr{height:42px;align-self:end}
.fm-sm{padding:16px 18px}
.fm-sm3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fm-sm3 span{display:block;font-size:12px;color:var(--mu);font-weight:600}
.fm-sm3 b{display:block;font-size:20px;margin-top:2px;overflow-wrap:anywhere}
.fm-sm small{display:block;margin-top:8px;color:var(--mu);font-size:12px}
.fm .fm-g{color:#15803d}.fm .fm-r{color:#e11d48}
.fm-bar{height:8px;border-radius:99px;background:#e6edf9;margin-top:12px;overflow:hidden}
.fm-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#22c55e,#16a34a)}
.fm-kg{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-bottom:16px}
.fm-k{position:relative;display:block;text-align:left;width:100%;padding:16px 16px 14px 18px;border-radius:20px;border:1px solid var(--ln);background:#fff;box-shadow:var(--sh);cursor:pointer;font:inherit;color:var(--tx);overflow:hidden;transition:.2s;min-width:0}
.fm-k::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px}
.fm-k.p::before{background:#16a34a}.fm-k.o::before{background:#f97316}.fm-k.u::before{background:#e11d48}
.fm-k:hover{transform:translateY(-2px)}
.fm-k.fm-on{outline:2px solid currentColor;outline-offset:-2px}
.fm-k.p.fm-on{outline-color:#16a34a}.fm-k.o.fm-on{outline-color:#f97316}.fm-k.u.fm-on{outline-color:#e11d48}
.fm-ki{position:absolute;right:14px;top:14px;width:38px;height:38px;border-radius:12px;display:grid;place-items:center}
.fm-ki svg{width:20px;height:20px}
.fm-k.p .fm-ki{background:#dcf4e6;color:#137536}.fm-k.o .fm-ki{background:#ffedd5;color:#c2410c}.fm-k.u .fm-ki{background:#fde4ea;color:#be123c}
.fm-kt{display:block;font-size:12.5px;font-weight:600;color:var(--mu);padding-right:48px;min-height:32px}
.fm-kn{display:block;font-size:24px;line-height:1.2;margin:4px 0 8px;overflow-wrap:anywhere}
.fm-k.p .fm-kn{color:#15803d}.fm-k.o .fm-kn{color:#c2410c}.fm-k.u .fm-kn{color:#be123c}
.fm-ks{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12.5px;color:var(--mu)}
.fm-ks u{text-decoration:none;font-weight:700;color:var(--tx)}.fm-ks em{font-style:normal}
.fm-ok{display:flex;gap:12px;align-items:center;padding:14px 16px;border-radius:16px;background:#e6f7ee;color:#137536;margin-bottom:16px;border:1px solid #bfe8d0}
.fm-ok span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;flex:none}
.fm-ok svg{width:18px;height:18px}.fm-ok b{display:block;font-size:15px}.fm-ok small{font-size:12.5px;opacity:.85}
.fm-up{padding:16px 18px}
.fm-uph{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.fm-uph h3{margin:0;font-size:16px;color:#be123c}
.fm-cnt{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 8px;border-radius:99px;background:#fde4ea;color:#be123c;font-size:12px;font-weight:700}
.fm-lk{margin-left:auto;border:0;background:none;color:var(--b);font:600 13px var(--fb,inherit);cursor:pointer;padding:6px}
.fm-ur{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--ln)}
.fm-av{flex:none;width:38px;height:38px;border-radius:12px;background:#fde4ea;color:#be123c;display:grid;place-items:center;font-weight:700;font-size:13px}
.fm-un{flex:1;min-width:0}
.fm-un small,.fm-s small,.fm-t td small,.fm-ch small{display:block;color:var(--mu);font-size:12px;margin-top:2px}
.fm-ub{flex:none;color:#be123c;font-size:14px}
.fm-more{margin:8px 0 0;color:var(--mu);font-size:12.5px}
.fm-nm{display:block;max-width:100%;border:0;background:none;padding:0;font:700 14px var(--fb,inherit);color:var(--tx);cursor:pointer;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fm-nm:hover{color:var(--b);text-decoration:underline}
em.fm-od,.fm-od{font-style:normal;color:#e11d48;font-size:11.5px;font-weight:700;display:inline-block}
td small.fm-od{display:block}
.fm-chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.fm-ch2{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 8px 0 14px;border-radius:99px;border:1px solid #cfdcf6;background:#fff;color:#33415f;font:600 13px var(--fb,inherit);cursor:pointer}
.fm-ch2 i{font-style:normal;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:var(--bg);display:grid;place-items:center;font-size:11.5px}
.fm-ch2.fm-on{background:var(--b);border-color:var(--b);color:#fff}.fm-ch2.fm-on i{background:rgba(255,255,255,.22);color:#fff}
.fm-ch2.p.fm-on{background:#16a34a;border-color:#16a34a}.fm-ch2.u.fm-on{background:#e11d48;border-color:#e11d48}.fm-ch2.o.fm-on{background:#f97316;border-color:#f97316}
.fm-tc{padding:16px 18px}
.fm-th{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.fm-th h3{margin:0;font-size:16px}.fm-th small{margin-left:auto;color:var(--mu);font-size:12.5px}
.fm-th .fm-cnt{background:#dfeaff;color:var(--b)}
.fm-tw{overflow-x:auto}
.fm-t{width:100%;border-collapse:collapse;min-width:900px}
.fm-t th{text-align:left;font-size:12px;color:var(--mu);font-weight:700;padding:10px 12px;border-bottom:2px solid var(--ln);white-space:nowrap}
.fm-t td{padding:12px;border-bottom:1px solid var(--ln);vertical-align:middle;font-size:13.5px}
.fm-t th.fm-n,.fm-t td.fm-n{text-align:right;white-space:nowrap}
.fm-t tbody tr:hover{background:rgba(29,78,216,.05);transform:none}
.fm-t td.fm-ac{white-space:nowrap;text-align:right}
.fm-t td.fm-ac .fm-b{margin-left:4px;height:30px;padding:0 10px}
.fm-tg{display:inline-block;padding:4px 12px;border-radius:99px;font-size:12px;font-weight:700;white-space:nowrap}
.fm-tg.p{background:#dcf4e6;color:#137536}.fm-tg.o{background:#ffedd5;color:#c2410c}.fm-tg.u{background:#fde4ea;color:#be123c}
.fm-cl{display:none}
.fm-em{text-align:center;color:var(--mu);padding:28px 16px}
.fm-mw{text-align:center;margin-top:14px}
.fm-hm{max-width:720px!important}
.fm-hm h3{margin:0 0 2px;font-size:19px}
.fm-hs{margin:0 0 14px;color:var(--mu);font-size:13px}
.fm-hsum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.fm-hsum div{background:var(--bg);border-radius:14px;padding:10px 12px;min-width:0}
.fm-hsum span{display:block;font-size:11.5px;color:var(--mu);font-weight:600}.fm-hsum b{display:block;font-size:16px;margin-top:2px;overflow-wrap:anywhere}
.fm-hb{border:1px solid var(--ln);border-radius:16px;padding:12px;margin-bottom:10px}
.fm-hbh{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.fm-hbh small{display:block;color:var(--mu);font-size:12px;margin-top:2px}
.fm-hn{display:flex;gap:6px 16px;flex-wrap:wrap;margin:8px 0;font-size:12.5px;color:var(--mu)}.fm-hn b{color:var(--tx)}.fm-hn b.fm-g{color:#15803d}.fm-hn b.fm-r{color:#e11d48}
.fm-pl{display:grid;grid-template-columns:92px minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:7px 0;border-top:1px dashed var(--ln);font-size:13px}
.fm-pl b{text-align:right}.fm-pl .fm-b{height:26px;padding:0 9px;font-size:12px}
.fm-np{margin:6px 0 0;color:var(--mu);font-size:13px}
@media(max-width:1100px){.fm-fl{grid-template-columns:repeat(4,minmax(0,1fr))}.fm-fl .fm-se{grid-column:1/-1}.fm-b.clr{grid-column:1/-1}}
@media(max-width:820px){
  .fm .card{padding:14px;border-radius:18px}
  .fm-hd{display:block}.fm-ha{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .fm-ha .bt{justify-content:center;white-space:normal;text-align:center;padding:10px 8px;width:100%}
  .fm-fl{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .fm-sm3 b{font-size:15px}.fm-sm3{gap:8px}
  .fm-kg{grid-template-columns:minmax(0,1fr);gap:10px}
  .fm-kn{font-size:22px}
  .fm-tw{display:none}.fm-cl{display:grid;gap:10px}
  .fm-th small{margin-left:0;width:100%}
  .fm-c{border:1px solid var(--ln);border-left-width:5px;border-radius:16px;padding:12px;background:#fff;min-width:0}
  .fm-c.p{border-left-color:#16a34a}.fm-c.o{border-left-color:#f97316}.fm-c.u{border-left-color:#e11d48}
  .fm-ch{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}.fm-ch>div{min-width:0}
  .fm-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
  .fm-kv div{min-width:0}.fm-kv .fm-w{grid-column:1/-1}
  .fm-kv span{display:block;font-size:11.5px;color:var(--mu);font-weight:600}.fm-kv b{display:block;font-size:13.5px;overflow-wrap:anywhere}
  .fm-ca{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}
  .fm-ca .fm-b{width:100%;height:36px;padding:0 4px}
  .fm-ur{flex-wrap:wrap}.fm-ur .fm-b{margin-left:50px}
  .fm-un{flex:1 1 calc(100% - 100px)}
  .fm-hm{padding:18px!important}
  .fm-hsum{grid-template-columns:minmax(0,1fr);gap:8px}
  .fm-pl{grid-template-columns:minmax(0,1fr) auto auto;}
  .fm-pl span:nth-child(2){grid-column:1/2;grid-row:2;color:var(--mu);font-size:12px}
  .fm-pl span:nth-child(1){grid-column:1/2}.fm-pl b{grid-column:2;grid-row:1}.fm-pl .fm-b,.fm-pl i{grid-column:3;grid-row:1}
}
@media(max-width:420px){.fm-ha{grid-template-columns:minmax(0,1fr)}.fm-sm3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.fm-sm3>div:last-child{grid-column:1/-1}}

/* ===== v41: mobile list cards - equal field boxes (Students, Admissions etc.) ===== */
@media(max-width:820px){
/* cards whose row is a 6-column grid: every field box takes the same width (2 per row), so labels never break letter by letter */
html body .app #v table.rt tr:has(td.ac .aci):not(:has(>td[data-l="Percent"])):not(:has(>td[data-l="Basic salary"])):not(:has(>td[data-l="Class access"]))>td[data-l]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:span 3!important;order:0!important;min-width:0!important;width:100%!important;writing-mode:horizontal-tb!important}
html body .app #v table.rt tr:has(td.ac .aci):not(:has(>td[data-l="Percent"])):not(:has(>td[data-l="Basic salary"])):not(:has(>td[data-l="Class access"]))>td[data-l]:not(.ttl):not(.stt):not(.ac):not(.wd)::before{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;overflow:hidden;text-overflow:ellipsis;writing-mode:horizontal-tb!important}
/* bottom bar: longer labels such as "Complaints" fit without "..." */
html body .abn .abp a:not(.on) span{font-size:9px!important;letter-spacing:-.2px;text-overflow:clip}
html body .abn .abp a.on{flex-grow:1.3!important}
}

/* Get your school set up: same side gutter and inner padding as the How-it-works step boxes (mobile only) */
@media(max-width:700px){
#pl #p-contact.ps{padding-left:18px!important;padding-right:18px!important}
#pl #p-contact .gsc{padding:20px 18px 18px 18px!important}
}

/* ===== Portal chooser (Choose your portal): light background + app-style cards ===== */
#lgn:has(.pqg){background:radial-gradient(760px 380px at 50% -6%,rgba(59,130,246,.20),transparent 70%),radial-gradient(520px 320px at 100% 100%,rgba(39,211,255,.16),transparent 70%),linear-gradient(180deg,rgba(247,250,255,.94),rgba(232,242,255,.92)),var(--schoolimg) center/cover no-repeat!important}
#lgn:has(.pqg) .lg i{box-shadow:0 10px 24px rgba(29,78,216,.22),0 0 0 6px rgba(255,255,255,.7)}
#lgn:has(.pqg) .lw h1{color:#0b2a6b!important}
#lgn:has(.pqg) .lw>p{color:#5a6b8c!important}
#lgn:has(.pqg) .pq{background:linear-gradient(90deg,var(--c1),var(--c2)) top/100% 5px no-repeat,#fff!important;background-size:100% 5px,auto!important;color:#0b2a6b;border:1px solid #dbe5f7;box-shadow:0 10px 28px rgba(30,58,138,.10)!important;animation:pqin .75s cubic-bezier(.2,.8,.2,1) backwards!important}
#lgn:has(.pqg) .pq::before{background:radial-gradient(circle at 100% 100%,rgba(var(--rg),.14),transparent 62%)}
#lgn:has(.pqg) .pq::after{display:none!important}
#lgn:has(.pqg) .pq-i{background:linear-gradient(135deg,var(--c1),var(--c2))!important;border:0!important;box-shadow:0 8px 18px rgba(var(--rg),.35)!important}
#lgn:has(.pqg) .pq-i::after{border-color:rgba(var(--rg),.45)}
#lgn:has(.pqg) .pq b{color:#0b2a6b!important}
#lgn:has(.pqg) .pq em{color:#5a6b8c}
#lgn:has(.pqg) .pq-w{opacity:.10}
#lgn:has(.pqg) .pq-w svg{stroke:rgb(var(--rg))}
#lgn:has(.pqg) .pq-a{background:rgba(var(--rg),.10);opacity:1}
#lgn:has(.pqg) .pq-a svg{stroke:rgb(var(--rg))}
#lgn:has(.pqg) .pq .pq-s{background:rgba(var(--rg),.10);border:1px solid rgba(var(--rg),.30);color:rgb(var(--rg));transition:background .25s,color .25s}
#lgn:has(.pqg) .pq:hover{scale:1.02;box-shadow:0 20px 40px rgba(var(--rg),.24)!important;border-color:rgba(var(--rg),.4)}
#lgn:has(.pqg) .pq:hover .pq-a{background:rgb(var(--rg))}
#lgn:has(.pqg) .pq:hover .pq-a svg{stroke:#fff}
#lgn:has(.pqg) .pq:hover .pq-s{background:rgb(var(--rg));color:#fff}
#lgn:has(.pqg) .pq:focus-visible{outline:3px solid rgba(var(--rg),.55)}

/* ===== Portal login screens: light background + portal colour (Admin blue, Teachers purple, Parents green, Students orange) ===== */
#lgn:has(#lf){--c1:#2f6bff;--c2:#0b3fd1;--rg:29,78,216;align-items:center;background:radial-gradient(760px 380px at 50% -6%,rgba(var(--rg),.20),transparent 70%),radial-gradient(520px 320px at 100% 100%,rgba(var(--rg),.14),transparent 70%),linear-gradient(180deg,rgba(247,250,255,.94),rgba(232,242,255,.92)),var(--schoolimg) center/cover no-repeat!important}
#lgn:has(#lf[data-r="employee"]){--c1:#b05cff;--c2:#6d2fe0;--rg:124,58,237}
#lgn:has(#lf[data-r="parent"]){--c1:#19d3b0;--c2:#0c9a86;--rg:13,148,136}
#lgn:has(#lf[data-r="student"]){--c1:#ffb02e;--c2:#ff7a00;--rg:255,122,0}
#lgn #lf{border:1px solid #dbe5f7;border-radius:26px;padding:34px 26px 24px;background:linear-gradient(90deg,var(--c1),var(--c2)) top/100% 6px no-repeat,#fff!important;background-size:100% 6px,auto!important;box-shadow:0 22px 50px rgba(var(--rg),.20)!important}
#lgn #lf .lg i{background:linear-gradient(135deg,var(--c1),var(--c2))!important;color:#fff!important;box-shadow:0 8px 18px rgba(var(--rg),.35)}
#lgn #lf .lg i .i{stroke:#fff}
#lgn #lf h3{color:#0b2a6b}
#lgn #lf label{color:#5a6b8c}
#lgn #lf input{background:rgba(var(--rg),.06)!important;border:1.5px solid rgba(var(--rg),.22)!important;border-radius:14px}
#lgn #lf input:focus{outline:none;border-color:rgb(var(--rg))!important;box-shadow:0 0 0 4px rgba(var(--rg),.16)}
#lgn #lf>button.bt:not(.sm){background:linear-gradient(135deg,var(--c1),var(--c2))!important;color:#fff!important;border:0!important;box-shadow:0 12px 26px rgba(var(--rg),.38)!important;padding:14px 22px;font-size:16px;font-weight:700}
#lgn #lf>button.bt:not(.sm):hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(var(--rg),.48)!important}
#lgn #lf .bt.sm{background:rgba(var(--rg),.10)!important;color:rgb(var(--rg))!important;border:1px solid rgba(var(--rg),.32)!important;box-shadow:none!important}
#lgn #lf .bt.sm:hover{background:rgb(var(--rg))!important;color:#fff!important}
#lgn #lf a{color:rgb(var(--rg));font-weight:600}
#lgn #lbgk,#lgn #lgbk{background:#fff;color:rgb(var(--rg))}
/* keep Sign in in view on short screens */
@media(max-height:700px){#lgn:has(#lf){place-items:start center;padding-top:64px}#lgn #lf{padding:26px 22px 18px}#lgn #lf .lg{padding-bottom:6px}}

/* Mobile drawer: shadow only while the menu is open (a closed drawer was leaking a grey strip on the left edge) */
@media(max-width:820px){
aside#sb:not(.open){box-shadow:none!important}
aside#sb.open{box-shadow:0 20px 50px rgba(0,0,0,.35)}
}

/* status badge in mobile cards: no "STATUS" label glued to the pill (fixes cramped spacing on Reports, Staff, Students, Payroll...) */
html body .app #v table.rt td.stt::before{display:none!important;content:none!important}
html body .app #v table.rt td.stt{gap:0!important;padding:0!important;justify-content:flex-end!important}
html body .app #v table.rt td.stt .bd{margin:0!important}

/* ===== Student Rating & Performance ===== */
.rt-seg{display:flex;gap:6px;background:#e3ecff;padding:4px;border-radius:14px;margin-bottom:12px}
.rt-seg button{flex:1;border:0;background:transparent;padding:10px 6px;border-radius:11px;font:700 13px inherit;font-family:inherit;color:#3d4f75;cursor:pointer}
.rt-seg button.on{background:#fff;color:#1d4ed8;box-shadow:0 2px 8px rgba(29,78,216,.16)}
.rt-st{display:inline-block;width:-moz-fit-content;width:fit-content;align-self:flex-start;flex:0 0 auto;background:linear-gradient(90deg,#f59e0b var(--v),#d3dcee var(--v));-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;letter-spacing:2px;font-size:16px;line-height:1;white-space:nowrap}
.rt-hero{border-radius:22px;padding:16px;color:#fff;margin-bottom:12px;background:linear-gradient(135deg,var(--c),#0f1d3a);box-shadow:0 12px 28px rgba(15,29,58,.22)}
.rt-hh{display:flex;gap:10px;align-items:center;margin-bottom:12px}.rt-hh b{display:block;font-size:17px}.rt-hh small{opacity:.85}
.rt-hb{display:flex;gap:14px;align-items:center}.rt-ring{width:96px;height:96px;flex:0 0 96px}
.rt-gr{font-size:20px;font-weight:800;margin-bottom:4px}.rt-hs{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}.rt-hs small{opacity:.85;font-size:12px}
.rt-hero .rt-st{background:linear-gradient(90deg,#fbbf24 var(--v),rgba(255,255,255,.3) var(--v));-webkit-background-clip:text;background-clip:text}
.rt-pill{display:inline-block;margin:2px 6px 0 0;padding:4px 10px;border-radius:99px;background:rgba(255,255,255,.18);font-size:12px;font-weight:700}
.rt-pill.up{background:rgba(34,197,94,.3)}.rt-pill.dn{background:rgba(239,68,68,.35)}.rt-pill.dk{background:#e3ecff;color:#1d4ed8;margin:10px 0 0}
.rt-av{flex:0 0 40px;width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;display:grid;place-items:center;font-weight:800}.rt-av.w{background:rgba(255,255,255,.22)}
.rt-c{margin-bottom:12px}.rt-c h3{margin:0 0 10px;font-size:16px}
.rt-cg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rt-cat{background:#f4f8ff;border:1px solid #e1eafb;border-left:4px solid var(--c);border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:6px}
.rt-cat b{font-size:12.5px;color:#0f1d3a}.rt-cat small{font-size:12px;font-weight:700;color:var(--c)}.rt-na{font-size:12px;color:#8a97b3}
.rt-pb{height:7px;border-radius:9px;background:#e3eafa;overflow:hidden;flex:1}.rt-pb i{display:block;height:100%;border-radius:9px;background:var(--c,#2563eb);background:linear-gradient(90deg,#3b82f6,#1d4ed8)}.rt-cat .rt-pb i{background:var(--c)}
.rt-ch{display:flex;gap:8px;align-items:flex-end;height:150px}.rt-ch>div{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%}
.rt-ch em{font-style:normal;font-size:11px;font-weight:700;color:#1d4ed8;min-height:14px}.rt-ch span{flex:1;width:100%;position:relative;background:#eef3ff;border-radius:10px;overflow:hidden}.rt-ch span i{display:block;position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#60a5fa,#1d4ed8);border-radius:10px}.rt-ring text{fill:#fff!important;opacity:1!important;stroke:none!important}.rt-ch small{font-size:11px;color:#6b7a99}
.rt-sm{margin:0;line-height:1.55;color:#243456;font-size:14px}
.rt-fb{border-top:1px solid #e8eefb;padding:10px 0}.rt-fb:first-of-type{border-top:0}.rt-fb>div{display:flex;justify-content:space-between;gap:8px}.rt-fb small{color:#6b7a99}.rt-fb p{margin:6px 0 0;font-size:14px;color:#243456}
.rt-tf{display:flex;gap:10px}.rt-tf label{flex:1;font-size:12px;font-weight:700;color:#6b7a99}.rt-tf select,.rt-tf input{width:100%;margin-top:4px}
.rt-sc{margin-bottom:12px}.rt-sh{display:flex;gap:10px;align-items:center;margin-bottom:10px}.rt-sh>div{flex:1;min-width:0}.rt-sh b{display:block}.rt-sh small{color:#6b7a99}
.rt-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;border-top:1px solid #eef2fb}.rt-row>span{font-size:13px;font-weight:700;color:#0f1d3a;border-left:4px solid var(--c);padding-left:8px}
.rt-row>div{display:flex;gap:2px}.rt-row button{border:0;background:transparent;font-size:28px;line-height:1;padding:2px 3px;color:#d3dcee;cursor:pointer}.rt-row button.on{color:#f59e0b}
.rt-sc textarea{width:100%;min-height:62px;margin:8px 0;resize:vertical}
.rt-csg{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rt-cs{border:1px solid #e1eafb;background:#f4f8ff;border-radius:13px;padding:9px;display:flex;flex-direction:column;gap:6px;text-align:left;font-family:inherit;cursor:pointer}.rt-cs.on{border-color:#1d4ed8;background:#e8f0ff}
.rt-cs b{font-size:13px;color:#0f1d3a}.rt-cs span{height:6px;background:#dbe5fa;border-radius:6px;overflow:hidden}.rt-cs span i{display:block;height:100%;background:linear-gradient(90deg,#3b82f6,#1d4ed8)}.rt-cs small{font-weight:700;color:#1d4ed8}
.rt-chs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.rt-ch2{border-radius:16px;padding:12px;color:#fff;background:linear-gradient(135deg,var(--c),#0f1d3a);display:flex;flex-direction:column;gap:4px}
.rt-ch2 small{opacity:.9;font-weight:700;font-size:11.5px}.rt-ch2 b{font-size:15px}.rt-ch2 em{font-style:normal;font-size:12px;opacity:.9}.rt-ch2 .rt-st{background:linear-gradient(90deg,#fbbf24 var(--v),rgba(255,255,255,.3) var(--v));-webkit-background-clip:text;background-clip:text}
.rt-chip{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px;margin-bottom:6px}.rt-chip button,.rt-tp button{border:1px solid #d5e0f7;background:#fff;color:#3d4f75;border-radius:99px;padding:6px 11px;font:700 12px inherit;font-family:inherit;white-space:nowrap;cursor:pointer}
.rt-chip button.on,.rt-tp button.on{background:var(--c);border-color:var(--c);color:#fff}
.rt-lr{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #eef2fb}.rt-lr small{font-weight:800;color:#1d4ed8;min-width:40px;text-align:right}.rt-ln{flex:0 0 38%;min-width:0}.rt-ln b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rt-ln .rt-st{font-size:12px}
.rt-lr>b{flex:0 0 36%;font-size:13px}.rt-rk{flex:0 0 28px;height:28px;border-radius:50%;background:#e3ecff;color:#1d4ed8;display:grid;place-items:center;font-weight:800;font-size:13px}.rt-rk.r1{background:#fbbf24;color:#fff}.rt-rk.r2{background:#94a3b8;color:#fff}.rt-rk.r3{background:#d97706;color:#fff}
.rt-sw{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-top:1px solid #eef2fb;cursor:pointer}.rt-sw span{font-weight:700;border-left:4px solid var(--c);padding-left:8px}
.rt-sw input{position:absolute;opacity:0}.rt-sw i{width:44px;height:26px;border-radius:99px;background:#cbd5e8;position:relative;transition:.2s}.rt-sw i:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}.rt-sw input:checked+i{background:#16a34a}.rt-sw input:checked+i:after{left:21px}
.rt-tp{padding:10px 0;border-top:1px solid #eef2fb}.rt-tp b{display:block}.rt-tp small{color:#6b7a99;display:block;margin-bottom:8px}.rt-tp>div{display:flex;flex-wrap:wrap;gap:6px}

.rt-go{display:flex;align-items:center;gap:12px;border-radius:18px;padding:12px 14px;margin:10px 0 14px;color:#fff;text-decoration:none;background:linear-gradient(135deg,var(--c),#0f1d3a);box-shadow:0 10px 22px rgba(15,29,58,.18)}.rt-go .rt-ring{width:64px;height:64px;flex:0 0 64px}.rt-go>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.rt-go b{font-size:15px}.rt-go small{opacity:.9;font-size:12px}.rt-go>span{font-weight:800;font-size:13px;background:rgba(255,255,255,.2);padding:6px 10px;border-radius:99px}.rt-go .rt-st{background:linear-gradient(90deg,#fbbf24 var(--v),rgba(255,255,255,.3) var(--v));-webkit-background-clip:text;background-clip:text}

@media(max-width:820px){.fm-ha .bt{min-height:46px;align-items:center}}

.fm-ha .fmi{display:none}
@media(max-width:820px){
.fm-ha{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.fm-ha .bt.blue{grid-column:1/-1;min-height:54px;font-size:15px;font-weight:700;border-radius:14px}
.fm-ha .bt.o{flex-direction:column;gap:7px;min-height:86px;padding:12px 8px;border:1px solid #dbe5ff!important;background:#f8faff!important;color:#1e293b!important;border-radius:16px;font-weight:600;font-size:12.5px;line-height:1.25;box-shadow:0 2px 8px rgba(29,78,216,.07)}
.fm-ha .bt[data-a="add"]>svg{display:none}
.fm-ha .fmi{display:flex;width:36px;height:36px;border-radius:12px;align-items:center;justify-content:center}
.fm-ha .fmi svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fm-ha .bt[data-a="geny"] .fmi{background:#e0e7ff;color:#4338ca}
.fm-ha .bt[data-a="struct"] .fmi{background:#ccfbf1;color:#0f766e}
.fm-ha .bt[data-a="add"] .fmi{background:#dcfce7;color:#15803d}
.fm-ha .bt[data-ch="setup"]{background:linear-gradient(135deg,#fff7ed,#ffedd5)!important;border-color:#fed7aa!important;color:#9a3412!important}
.fm-ha .bt[data-ch="setup"] .fmi{background:#fff;color:#c2410c}
}
@media(max-width:820px){.fm-ha .bt.o{justify-content:flex-start!important;padding-top:14px}}

.fq-cp{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 10px;padding:8px 10px;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc}
.fq-cp span{font-size:12.5px;font-weight:600;color:#475569}
.fq-cp button[type][type][type]{margin:0;padding:5px 12px;min-height:32px;border:0;border-radius:8px;background:#eef3ff;color:#1d4ed8;font-size:12.5px;font-weight:600;box-shadow:none;cursor:pointer;white-space:nowrap}
.fm-ha .bt[data-fcp]{grid-column:1/-1;min-height:54px;flex-direction:row;justify-content:center;gap:10px;background:linear-gradient(135deg,#eff6ff,#dbeafe)!important;border-color:#bfdbfe!important;color:#1d4ed8!important;font-size:14px;font-weight:700}
.fm-ha .bt[data-fcp] .fmi{background:#fff;color:#1d4ed8}

.prm-g{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.prm-u{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 10px;padding:8px 10px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:13px;font-weight:600}
.prm-s{margin:12px 0 0;padding:10px 12px;border-radius:12px;background:#eff6ff;color:#1e3a8a;font-size:13.5px}
@media(max-width:560px){.prm-g{grid-template-columns:1fr}}
#md .prm-w .xpb{display:none!important}

/* ===== Custom classes manager (Settings > Classes) ===== */
.clm .tb{align-items:center}.clm .tb .tg{margin-left:auto}
.clm-sub{margin:2px 0 12px;font-size:13px;line-height:1.5;color:var(--mu)}
.clm-add{display:flex;gap:10px;align-items:stretch;margin:0 0 10px}
.clm-add input{flex:1 1 auto;min-width:0;margin:0;min-height:44px;box-sizing:border-box}
.clm-add .bt{flex:none;margin:0}
.clm-sg{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 0 12px;padding:2px}
.clm-sg::-webkit-scrollbar{display:none}
.clm-sg>span{flex:none;font-size:12.5px;font-weight:600;color:var(--mu)}
.clm-sg .cp{flex:none;white-space:nowrap}
.clm-l{border:1px solid var(--ln);border-radius:14px;overflow:hidden;background:#fff}
.clm-r{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--ln)}
.clm-r:last-child{border-bottom:0}
.clm-r.arm{background:#fff1f2}
.clm-i{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#eef3ff;color:var(--b);font-weight:800;font-size:12.5px;letter-spacing:.2px}
.clm-t{flex:1 1 auto;min-width:0}
.clm-t b{display:block;font-size:14.5px;line-height:1.3;color:var(--tx);overflow-wrap:anywhere}
.clm-t small{display:block;margin-top:2px;font-size:12px;line-height:1.35;color:var(--mu)}
.clm-r.arm .clm-t small{color:#be123c;font-weight:600}
.clm-a{flex:none;display:flex;gap:6px}
.clm-a .ib{display:grid;place-items:center;background:#fff;border:1px solid var(--ln);color:var(--tx)}
.clm-a .ib svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.clm-a .ib:disabled{opacity:.35;cursor:default}
html body .clm-a .ib.dl.on[class][class][class]{background:#fee2e2;border-color:#fecdd3;color:#be123c}
.clm-ft{margin:10px 2px 0;font-size:12.5px;color:var(--mu);line-height:1.5}
html body .cw-ch .cp.cw-mc[class][class][class]{flex:none;white-space:nowrap;border:1px dashed #93b4fb!important;background:#f5f9ff!important;color:var(--b)!important}
@media(max-width:480px){
 .clm-r{gap:8px;padding:9px 10px}
 .clm-i{display:none}
 .clm-a{gap:4px}
}
.clm>.tb{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.clm>.tb h3{margin:0}.clm>.tb .tg{margin:0;flex:none;white-space:nowrap}
html body .cw-ch .cp.cw-mc[class][class][class]{grid-column:1/-1}

/* ===== v40 Mobile polish: sidebar user row, class dropdown, class-wise attendance ===== */

/* 1) Sidebar: user row sits on one clean line, aligned with the Logout button */
html body .app aside#sb .lo{display:flex;flex-direction:column;align-items:stretch;gap:10px}
html body .app aside#sb .lo .lou{width:100%;box-sizing:border-box;justify-content:flex-start;text-align:left;padding:0 4px;margin:0}
html body .app aside#sb .lo .lou>div{flex:1 1 auto;text-align:left}
html body .app aside#sb .lo .bt.lob{box-sizing:border-box;margin:0}

/* 2) Class filter: one dropdown instead of chips (script.js builds the select) */
html body .app .cf{display:block;margin:2px 0 14px}
html body .app .cf .cf-t{display:none}
html body .app .cf .cf-r{display:none!important}
html body .app .cf select.cf-sel{display:block;width:100%;max-width:360px;height:48px;margin:0;padding:0 42px 0 16px;box-sizing:border-box;border:1px solid #cfdcf6;border-radius:14px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/18px;color:#14264d;font:600 15px/1.2 Inter,sans-serif;-webkit-appearance:none;appearance:none;box-shadow:0 4px 12px -8px rgba(29,78,216,.35);text-overflow:ellipsis}
html body .app .cf select.cf-sel:focus{outline:0;border-color:#1d4ed8;box-shadow:0 0 0 3px rgba(29,78,216,.15)}
html body .app .cf.cf-fin{padding:0;background:none;border:0;box-shadow:none;backdrop-filter:none}
html body .app .cf.cf-in{margin:0 0 14px}
@media(max-width:820px){html body .app .cf select.cf-sel{max-width:none}}

@media(max-width:820px){
 /* 3) Space so the floating bottom bar never covers the last card; dashboard top is not clipped */
 html body .app main>#v{padding-bottom:calc(132px + env(safe-area-inset-bottom,0px))!important}
 body.on-dash .app main>#v{padding-top:14px!important;padding-left:2px;padding-right:2px}
 body.on-dash .app .dsh .hm-t{padding-left:2px}

 /* 4) Class-wise attendance: filters */
 html body .app .cwa .cwa-h{display:flex;flex-direction:column;gap:14px;margin:0 0 14px}
 html body .app .cwa .cwa-h h3{margin:0;font-size:18px}
 html body .app .cwa .cwa-f{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 html body .app .cwa .cwa-f label{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mu)}
 html body .app .cwa .cwa-f input,html body .app .cwa .cwa-f select{display:block;width:100%!important;min-width:0;height:48px;margin:0;padding:0 14px;box-sizing:border-box;border:1px solid #cfdcf6;border-radius:14px;background-color:#fff;color:#14264d;font:600 15px Inter,sans-serif;text-transform:none;letter-spacing:0}
 html body .app .cwa .cwa-f select{-webkit-appearance:none;appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:18px}

 /* Export buttons: one tidy row, labels never break */
 html body .app .cwa .xpb{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:2px 0 16px}
 html body .app .cwa .xpb .xpl{grid-column:1/-1;font-size:11.5px;letter-spacing:.08em}
 html body .app .cwa .xpb .bt{width:100%!important;height:44px!important;padding:0 6px!important;gap:6px!important;font-size:13.5px!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;border-radius:12px!important}

 /* Class card: title + stat tiles + full-width button */
 html body .app #v .cwa table.rt>tbody{gap:14px}
 html body .app #v .cwa table.rt tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;border-radius:20px;background:#fff;border:1px solid #dbe6fb;box-shadow:0 8px 20px -14px rgba(29,78,216,.35)}
 html body .app #v .cwa table.rt td{padding:10px 12px;border-radius:14px;background:#f3f7ff;font-size:20px;font-weight:700;color:#14264d;line-height:1.1;overflow-wrap:normal}
 html body .app #v .cwa table.rt td[data-l]::before{margin-bottom:5px;font-size:10px;line-height:1.2;font-weight:700;color:#6b7a99;white-space:nowrap}
 html body .app #v .cwa table.rt td.ttl{grid-column:1/-1;order:-3;padding:2px 2px 4px;background:none;border-radius:0;font-size:22px;padding-right:2px}
 html body .app #v .cwa table.rt td.ttl::before{display:block;margin-bottom:2px;font-size:10.5px}
 html body .app #v .cwa table.rt td.ttl b{font-weight:800}
 html body .app #v .cwa table.rt td:nth-child(9){grid-column:1/-1;background:#eaf2ff;order:90}
 html body .app #v .cwa table.rt td:nth-child(9) .pb{min-width:0!important}
 html body .app #v .cwa table.rt td:nth-child(9) b{font-size:16px}
 html body .app #v .cwa table.rt td.ac{grid-column:1/-1;order:99;display:block;margin:2px 0 0;padding:0;background:none;border:0}
 html body .app #v .cwa table.rt td.ac .bt{width:100%;height:46px;margin:0;padding:0 16px;font-size:14.5px;font-weight:700;border-radius:14px}

 /* Student list inside a class: four small tiles per row */
 html body .app #v .cwa-s table.rt tr{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 html body .app #v .cwa-s table.rt td{padding:9px 8px;font-size:18px;text-align:center}
 html body .app #v .cwa-s table.rt td[data-l]::before{font-size:9.5px;text-align:center}
 html body .app #v .cwa-s table.rt td.ttl{grid-column:1/-1;text-align:left;font-size:17px;padding:0 0 2px;order:-3}
 html body .app #v .cwa-s table.rt td.ttl::before{display:none}
 html body .app #v .cwa-s table.rt td[data-l="Adm No"]{grid-column:1/3;order:-2;font-size:14px;text-align:left}
 html body .app #v .cwa-s table.rt td[data-l="Today"]{grid-column:3/5;order:-2;font-size:13px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
 html body .app #v .cwa-s table.rt td[data-l="Attendance %"]{grid-column:1/-1;order:90;text-align:left;background:#eaf2ff}
}

/* v40b: class-wise attendance tile polish */
@media(max-width:820px){
 html body .app #v .at .cwa{padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;margin-bottom:12px!important}
 html body .app #v .cwa table.rt td[data-l]::before{font-size:9.5px;letter-spacing:.02em;white-space:nowrap}
 html body .app #v .cwa table.rt td{padding:10px 10px}
 html body .app #v .cwa table.rt tr{padding:12px}
 html body .app #v .cwa-s table.rt td[data-l]::before{letter-spacing:0;font-size:9px}
}

/* v40c: compact tiles, full-width attendance %, clean button row */
@media(max-width:820px){
 html body .app #v .cwa table.rt tr{align-content:start;grid-auto-rows:auto}
 html body .app #v .cwa table.rt td{min-height:0!important;height:auto!important;align-self:start;display:block}
 html body .app #v .cwa table.rt td[data-l="Attendance %"]{grid-column:1/-1!important;order:90}
 html body .app #v .cwa table.rt td[data-l="Attendance %"]>div{width:100%}
 html body .app #v .cwa table.rt td.ac{border:0!important;box-shadow:none!important;background:none!important;padding:0!important;margin:0!important;border-radius:0}
 html body .app #v .cwa table.rt td.ac::before,html body .app #v .cwa table.rt td.ac::after{display:none!important;content:none!important}
}

/* v40d: win over earlier !important card-tile rules */
@media(max-width:820px){
 html body .app #v .at .cwa table.rt tbody tr td{min-height:0!important;height:auto!important}
 html body .app #v .at .cwa table.rt tbody tr td[data-l="Attendance %"]{grid-column:1/-1!important;grid-row:auto!important;order:90!important}
 html body .app #v .at .cwa table.rt tbody tr{grid-template-rows:none!important;grid-auto-rows:auto!important}
}

/* v40e: same selector weight as the older tile rule */
@media(max-width:820px){
 html body .app #v .at .cwa table.rt td[data-l]:not(.ttl):not(.stt):not(.ac):not(.wd){min-height:0!important;height:auto!important;padding:10px 12px!important;font-size:20px!important}
 html body .app #v .at .cwa table.rt td[data-l="Attendance %"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:1/-1!important;order:90!important}
 html body .app #v .at .cwa-s table.rt td[data-l]:not(.ttl):not(.stt):not(.ac):not(.wd){padding:9px 8px!important;font-size:18px!important}
}

/* v40f: final touches */
@media(max-width:820px){
 html body .app #v .at .cwa table.rt td[data-l="Late"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:1/-1!important}
 html body .app #v .at .cwa-s table.rt td[data-l="Late"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:auto!important}
 html body .app #v .at .cwa-s table.rt td.ttl{text-align:left!important}
 html body .app #v .at .cwa-s table.rt td.ttl::before{display:none!important;content:none!important}
 html body .app #v .at .cwa-s table.rt td[data-l="Adm No"]::before,html body .app #v .at .cwa-s table.rt td[data-l="Today"]::before{text-align:left}
 html body .app #v .at .cwa-s>.tb{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:6px}
 html body .app #v .at .cwa-s>.tb .mu{margin:0!important}
}

/* ---- alignment fixes (mobile): payments rows, expense cards, teacher permissions ---- */
html body .app #v .pl-r{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:3px 14px;align-items:center;padding:10px 0}
html body .app #v .pl-r>span:first-child{grid-column:1;grid-row:1;font-weight:600;min-width:0;overflow-wrap:anywhere}
html body .app #v .pl-r>b{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}
html body .app #v .pl-r>.mu{grid-column:1/-1;grid-row:2;margin:0!important;font-size:12.5px}
html body .app #v#v#v table.rt tr:has(>td[data-l="Date"]):has(>td[data-l="Details"]):has(>td[data-l="Amount"]){grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important}
html body .app #v#v#v table.rt tr:has(>td[data-l="Date"]):has(>td[data-l="Details"]):has(>td[data-l="Amount"])>td.ttl{grid-column:1/-1!important;order:0!important}
html body .app #v#v#v table.rt tr:has(>td[data-l="Date"]):has(>td[data-l="Details"]):has(>td[data-l="Amount"])>td[data-l="Date"]{grid-column:1!important;order:1!important;min-height:0!important;height:auto!important}
html body .app #v#v#v table.rt tr:has(>td[data-l="Date"]):has(>td[data-l="Details"]):has(>td[data-l="Amount"])>td[data-l="Amount"]{grid-column:2!important;order:2!important;min-height:0!important;height:auto!important;white-space:nowrap}
html body .app #v#v#v table.rt tr:has(>td[data-l="Date"]):has(>td[data-l="Details"]):has(>td[data-l="Amount"])>td[data-l="Details"]{grid-column:1/-1!important;order:3!important;min-height:0!important;height:auto!important;word-break:normal!important;overflow-wrap:break-word!important;hyphens:none!important}
html body .app #v#v#v table.rt tr:has(>td[data-l="Date"]):has(>td[data-l="Details"]):has(>td[data-l="Amount"])>td.ac{grid-column:1/-1!important;order:4!important}
.ptm-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.ptm-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.ptm-t .mu{margin:0;font-size:13px}
.ptm-h .bt{flex:none;white-space:nowrap}
.ptm-g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ptm-l{display:flex;align-items:center;gap:8px;margin:0;padding:9px 10px;min-height:44px;border:1px solid var(--ln);border-radius:12px;background:#f8fafc;font-weight:500;font-size:13.5px;line-height:1.25;overflow-wrap:break-word}
.ptm-l input{flex:none;margin:0}
@media(min-width:700px){.ptm-g{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1100px){.ptm-g{grid-template-columns:repeat(4,minmax(0,1fr))}}

.ptm-c{display:block;margin:0 0 14px;padding:14px;border:1px solid var(--ln);border-radius:18px;background:#fff;min-width:0}
.ptm-c .ptm-t b,.ptm-c .ptm-t .mu{text-align:left;display:block}

/* ---- contact cards ---- */
.hb-ct a{padding:12px 14px!important;gap:12px!important;box-shadow:0 8px 18px -12px rgba(29,78,216,.45)}
.hb-ct a span{display:flex!important;flex-direction:column;gap:2px;min-width:0}
.hb-ct a small{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6b7a99}
.hb-ct a b{font-size:14.5px!important;font-weight:700;color:#0b2a6b;line-height:1.25;overflow-wrap:anywhere}
@media(max-width:520px){.hb-ct{grid-template-columns:minmax(0,1fr)!important}}
/* ---- ESMOS Admin: Schools tab ---- */
html body .scw{padding:16px!important;overflow:hidden}
html body .scw>.tb{display:block!important}
html body .scw>.tb h3{display:flex;align-items:center;gap:8px;margin:0 0 12px}
html body .scw .oact{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin:0}
html body .scw .oact .bt:first-child{grid-column:1/-1;height:48px;font-size:15px;margin:0}
html body .scw .oact .bt.o{display:flex;align-items:center;justify-content:center;height:46px;margin:0;padding:0 10px;border-radius:14px;font-size:13.5px;font-weight:700;line-height:1.2;text-align:center;white-space:normal;border:1px solid #dbe5f7;background:#f4f7ff;color:#1d4ed8;box-shadow:none}
html body .scw .oact .bt.o[data-p="mkdemo"]{background:#fff7e6;border-color:#fde7b8;color:#b45309}
html body .scw .oact .bt.o[data-p="rmdemos"]{background:#fff1f3;border-color:#fecdd3;color:#be123c}
html body .scw .oact .bt.o[data-p="noticeall"]{background:#f3efff;border-color:#ddd3fb;color:#6d28d9}
html body .scw .oact .bt.o[data-p="clearall"]{background:#f1f5f9;border-color:#dbe3ee;color:#475569}
html body .scw .oxs{margin-top:14px}
html body .scw .oxs .ch{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
html body .scw .xpb{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;margin:12px 0}
html body .scw .xpb .xpl{width:100%;margin:0}
html body .scw .sl{display:grid;gap:12px}
html body .scw .sc{margin:0;padding:14px;border-radius:20px;background:#fff;border:1px solid #dfe8fb;box-shadow:0 10px 24px -16px rgba(29,78,216,.45)}
html body .scw .sc .sg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 12px;border-radius:14px;background:#eef3ff}
html body .scw .sc .sg>div{display:flex;flex-direction:column;gap:2px;min-width:0}
html body .scw .sc .sg b{overflow-wrap:anywhere}
html body .scw .sc .sa1,html body .scw .sc .sa2{display:flex!important;flex-wrap:wrap;gap:8px;margin-top:10px}
html body .scw .sc .sa1>.bt{flex:1 1 calc(50% - 8px);height:46px;margin:0;display:flex;align-items:center;justify-content:center;border-radius:14px;font-weight:700}
html body .scw .sc .sa2>.bt{flex:1 1 calc(33.333% - 8px);min-width:84px;height:42px;margin:0;padding:0 10px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#f1f5ff;border:1px solid #dbe5f7;color:#1d4ed8;font-size:13px;font-weight:700;box-shadow:none}
html body .scw .sc .sa2>[data-p="tog"]{background:#fff7e6;border-color:#fde7b8;color:#b45309}
html body .scw .sc .sa2>.dg{background:#fff1f3;border-color:#fecdd3;color:#be123c}

html body .scw .sc .sa2>.bt{padding:0 6px;font-size:12.5px;min-width:90px;white-space:nowrap}

.hb-ct .hb-ic{display:flex!important;align-items:center;justify-content:center;flex:none}
.hb-ct .hb-ic svg{display:block;margin:0!important}

/* contact icons: brand-accurate colours */
.hb-ct a .hb-ic{width:44px!important;height:44px!important;border-radius:14px!important;box-shadow:0 8px 16px -8px rgba(29,78,216,.55),inset 0 1px 0 rgba(255,255,255,.35)!important}
.hb-ct a .hb-ic svg{width:24px!important;height:24px!important}
.hb-ct a[data-ct=web] .hb-ic{background:linear-gradient(135deg,#3b82f6,#1d4ed8)!important}
.hb-ct a[data-ct=wa] .hb-ic{background:linear-gradient(135deg,#25D366,#128C7E)!important;box-shadow:0 8px 16px -8px rgba(18,140,126,.65),inset 0 1px 0 rgba(255,255,255,.35)!important}
.hb-ct a[data-ct=call] .hb-ic{background:linear-gradient(135deg,#06b6d4,#0284c7)!important}
.hb-ct a[data-ct=mail] .hb-ic{background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important}
/* timetable (mobile): first tile "Day" had zero padding, so its label and text were clipped at the edge */
html body .app #v table.rt tr:has(td.ac .aci) > td[data-l="Day"]:first-child:not(.ttl):not(.stt),
html body .app #v table.rt tr:has(td.ac .aci):has(td.ttl) > td[data-l="Day"]:first-child:not(.ttl):not(.stt){padding:9px 11px!important}

/* owner settings: advanced options */
.oadv{margin-top:16px;border:1px solid var(--ln);border-radius:14px;background:#f7faff;overflow:hidden}
.oadv summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;cursor:pointer;font-weight:700;color:var(--b2);list-style:none;-webkit-tap-highlight-color:transparent}
.oadv summary::-webkit-details-marker{display:none}
.oadv summary span{display:flex;align-items:center;gap:8px}
.oadv summary .i{width:18px;height:18px}
.oadv summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--mu);border-bottom:2px solid var(--mu);transform:rotate(45deg);transition:transform .2s;margin-right:4px;flex:none}
.oadv[open] summary::after{transform:rotate(-135deg)}
.oadv-b{padding:4px 14px 14px;border-top:1px solid var(--ln);padding-top:14px}
.oadv-l{display:block;font-size:13px;font-weight:600;color:var(--mu);margin:0 0 12px}
.oadv-l select{display:block;width:100%;margin-top:6px}
.pwx{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:2px 0 10px}
#md .pwx-s{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:600;color:var(--tx);cursor:pointer}
#md .pwx-s input{width:18px!important;height:18px!important;min-height:0!important;padding:0!important;margin:0!important;flex:none;accent-color:var(--b)}

/* owner: tidy action buttons in Settings cards */
.obt{display:grid;gap:10px;margin-top:6px}
.obt .bt{width:100%;margin:0;justify-content:center;text-align:center}
.obt .bt.o{color:var(--b);border:1.5px solid var(--b);background:#f4f8ff}
.obt .bt.o:hover{background:var(--b);color:#fff;border-color:var(--b)}
@media(min-width:640px){.obt{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}
/* owner: new schools marquee under revenue bars */
.om{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin-top:6px;padding:8px 10px;border-radius:16px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(4px);min-width:0}
.om-k{flex:none;display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.95);color:#1d4ed8;font-size:12px;font-weight:800;letter-spacing:.02em;white-space:nowrap}
.om-k .i{width:14px;height:14px}
.om-v{flex:1;min-width:0;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.om-t{display:flex;width:max-content;animation:omq var(--d,20s) linear infinite}
.om:hover .om-t{animation-play-state:paused}
.om-g{display:flex;flex:none}
.om-i{display:inline-flex;align-items:center;gap:6px;flex:none;padding-right:26px;color:#fff;font-size:13px;white-space:nowrap}
.om-i::before{content:"";width:6px;height:6px;border-radius:50%;background:#7dd3fc;box-shadow:0 0 0 3px rgba(125,211,252,.25);flex:none}
.om-i b{font-weight:700}
.om-i em{font-style:normal;opacity:.8}
.om-i small{font-size:11px;padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.18)}
.om-e{display:block;color:rgba(255,255,255,.85);font-size:13px;white-space:nowrap;padding:0 6px}
@keyframes omq{to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.om-t{animation:none}.om-v{overflow-x:auto}}

/* ===== v41: Fee Management and Extra Fees - clean, equal, attractive (mobile first) ===== */
.fm-x .fm-ha .bt[data-a="xprint"] .fmi{background:#e0e7ff;color:#4338ca}
.fm-x .fm-ha .bt[data-fcp] .fmi{background:#dbeafe;color:#1d4ed8}
.fm-hd h3{letter-spacing:-.2px}
.fm-t td.fm-ac{white-space:normal;min-width:230px}
.fm-t td.fm-ac .fm-b{margin:2px 0 2px 4px}
@media(max-width:820px){
  .fm .card{border-radius:20px;box-shadow:0 6px 20px rgba(29,78,216,.07)}
  .fm-hd{padding:18px}
  .fm-hd h3{font-size:19px}
  .fm-ha{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:14px}
  .fm-ha .bt{margin:0!important;width:100%;min-width:0}
  .fm .fm-ha .bt.o{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center;min-height:88px;padding:12px 8px!important;gap:8px!important;white-space:normal!important;border-radius:16px}
  .fm .fm-ha .bt.blue{grid-column:1/-1;min-height:54px;border-radius:14px;box-shadow:0 8px 18px rgba(29,78,216,.28)}
  .fm .fm-ha .bt[data-fcp]{grid-column:1/-1;flex-direction:row!important;min-height:56px;gap:12px!important}
  .fm-x .fm-ha .bt[data-fcp]{grid-column:auto;flex-direction:column!important;min-height:88px;gap:8px!important}
  .fm-x .fm-ha .bt[data-fcp],.fm-x .fm-ha .bt[data-a="xprint"]{background:#f8faff!important;color:#1e293b!important}
  .fm-fl{padding:14px!important}
  .fm-f input[type=date]{font-size:13px;padding:0 8px}
  .fm-sm3,.fm-sm{}
  .fm-sm3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
  .fm-sm3>div{background:#f4f7ff;border-radius:14px;padding:10px 8px;text-align:center;grid-column:auto!important}
  .fm-sm3 span{font-size:11px}
  .fm-sm3 b{font-size:14.5px!important;margin-top:4px}
  .fm-chips{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .fm-ch2{justify-content:center;padding:0 4px;gap:4px;font-size:12.5px;height:38px;min-width:0}
  .fm-ch2 i{min-width:20px;height:20px;padding:0 5px;font-size:11px}
  .fm-kg{gap:10px}
  .fm-ur{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto;column-gap:12px;row-gap:6px;align-items:center;padding:12px 0}
  .fm-ur .fm-av{grid-row:1/3}
  .fm-ur .fm-un{grid-row:1/3;grid-column:2;flex:none}
  .fm-ur .fm-ub{grid-column:3;grid-row:1;text-align:right;font-size:15px}
  .fm-ur .fm-b{grid-column:3;grid-row:2;margin:0!important;height:32px;min-width:84px}
  .fm-c{border-radius:18px;padding:14px;box-shadow:0 4px 14px rgba(15,23,42,.07)}
  .fm-ch{padding-bottom:10px;margin-bottom:12px;border-bottom:1px dashed var(--ln)}
  .fm-kv{gap:12px 14px}
  .fm-kv div{background:#f7f9ff;border-radius:12px;padding:8px 10px}
  .fm-kv span{font-size:11px}
  .fm-kv b{font-size:14px;margin-top:2px}
  .fm-ca{display:flex!important;flex-wrap:wrap;gap:8px!important;margin-top:14px}
  .fm-ca .fm-b{flex:1 1 calc(33.333% - 8px);width:auto;min-width:78px;height:38px;border-radius:12px}
  .fm-ca .fm-b.pri{box-shadow:0 6px 14px rgba(29,78,216,.25)}
}

/* hide the green sync badge while any popup is open */
body:has(#pp) #syncb,body:has(.mo:not([hidden])) #syncb{display:none!important}

/* who marked the attendance */
.at-by{display:inline-flex;align-items:center;gap:5px;margin-top:5px;padding:2px 9px 2px 3px;border-radius:999px;background:#eaf2ff;color:#1d4ed8;font-size:11px;font-weight:700;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.at-by i{font-style:normal;flex:none;width:17px;height:17px;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:9px;font-weight:800}
.at-by.ad{background:#f1eaff;color:#6d28d9}.at-by.ad i{background:#7c3aed}
.at-tk{margin:12px 0 6px;padding:12px 12px 6px;border-radius:18px;background:linear-gradient(135deg,#f4f8ff,#eaf1ff);border:1px solid #d6e3fb}
.at-tkh{font-size:11.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#4a5f8a;margin-bottom:8px}
.at-tkc{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid rgba(147,170,215,.3)}
.at-tkh+.at-tkc{border-top:0;padding-top:0}
.at-tka{flex:none;width:38px;height:38px;border-radius:13px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:16px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);box-shadow:0 6px 14px rgba(37,99,235,.28)}
.at-tka.ad{background:linear-gradient(135deg,#8b5cf6,#6d28d9);box-shadow:0 6px 14px rgba(109,40,217,.28)}
.at-tka.old{background:linear-gradient(135deg,#94a3b8,#64748b);box-shadow:none}
.at-tkc b{display:block;font-size:14px;color:#0f1d3a}
.at-tkc small{display:block;font-size:12px;color:#5a6b8c;margin-top:1px}
.at-tk.none{background:#fff8e8;border-color:#fde7b0;padding:12px}
.at-tk.none b{display:block;color:#b45309;font-size:14px}.at-tk.none small{color:#92602a;font-size:12px}
/* password eye */
.pw-w{position:relative;display:block;width:100%}
.pw-w>input{width:100%;box-sizing:border-box;padding-right:48px!important}
.pw-e{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;background:transparent;color:#5a6b8c;display:grid;place-items:center;border-radius:11px;cursor:pointer;padding:0;margin:0;box-shadow:none}
.pw-e svg{width:20px;height:20px}
.pw-e:hover,.pw-e.on{color:#1d4ed8;background:#e8f0ff}

/* v41: Class-wise attendance, compact mobile cards (less scrolling) */
@media(max-width:820px){
 /* header: title + Month/Class side by side, slim export row */
 html body .app #v .cwa .cwa-h{gap:8px;margin:2px 0 8px}
 html body .app #v .cwa .cwa-h h3{font-size:16px}
 html body .app #v .cwa .cwa-f{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html body .app #v .cwa .cwa-f label{gap:3px;font-size:10px}
 html body .app #v .cwa .cwa-f input,html body .app #v .cwa .cwa-f select{height:40px;padding:0 8px;border-radius:12px;font-size:12.5px}
 html body .app #v .cwa .cwa-f select{padding-right:30px;background-position:right 9px center;background-size:16px}
 html body .app #v .cwa .xpb{grid-template-columns:auto repeat(3,minmax(0,1fr))!important;align-items:center;gap:6px;margin:0 0 10px}
 html body .app #v .cwa .xpb .xpl{grid-column:auto!important;font-size:10px;margin:0 2px 0 0}
 html body .app #v .cwa .xpb .bt{height:34px!important;font-size:12.5px!important;border-radius:10px!important}
 html body .app #v .cwa table.rt>tbody{gap:10px}

 /* class card */
 html body .app #v .at .cwa.cwa table.rt tbody tr:not(.emr){grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:6px!important;padding:10px 12px!important;border-radius:16px!important;align-items:center}
 html body .app #v .at .cwa.cwa table.rt tbody tr:not(.emr)::before{content:"This month";position:static!important;inset:auto!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;opacity:1!important;transform:none!important;width:auto!important;height:auto!important;flex:none!important;display:block!important;grid-column:1/-1;order:5;margin:2px 0 -2px!important;font-size:9.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6b7a99}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l]:not(.ttl):not(.stt):not(.ac):not(.wd){padding:6px 7px!important;border-radius:11px!important;font-size:17px!important;line-height:1.1!important;grid-column:span 4!important;text-align:left!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l]::before{margin-bottom:2px!important;font-size:8.5px!important;letter-spacing:.02em!important;text-align:left!important;white-space:nowrap!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td.ttl{grid-column:span 5!important;order:-3!important;padding:0!important;font-size:19px!important;align-self:center}
 html body .app #v .at .cwa.cwa table.rt tbody tr td.ttl::before{display:none!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Attendance %"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:span 7!important;order:-2!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Attendance %"]::before{display:none!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Attendance %"] b{font-size:15px}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Students"]{order:1!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Present today"]{order:2!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Absent today"]{order:3!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Taken by"]:not(.ttl):not(.stt):not(.ac):not(.wd){order:4!important;grid-column:1/-1!important;display:flex!important;align-items:center;gap:8px;padding:5px 8px!important;font-size:12px!important;font-weight:600!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Taken by"]::before{margin:0!important;white-space:nowrap}
 html body .app #v .at .cwa.cwa table.rt tbody tr td.cw-nb[data-l]:not(.ttl):not(.stt):not(.ac):not(.wd){display:none!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Present (month)"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:span 5!important;background:#e8f0ff!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Absent"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:span 3!important;background:#e8f0ff!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Leave"]:not(.ttl):not(.stt):not(.ac):not(.wd),
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Late"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:span 2!important;background:#e8f0ff!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Present (month)"]::before{content:"Present"!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Present (month)"]{order:6!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Absent"]{order:7!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Leave"]{order:8!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Late"]{order:9!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td.ac{order:99!important;grid-column:1/-1!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td.ac .bt{height:38px!important;min-height:38px!important;font-size:13.5px!important;border-radius:12px!important}

 /* student card inside a class */
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr:not(.emr){grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:6px!important;padding:10px 12px!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr:not(.emr)::before{display:none!important;content:none!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td.ttl{grid-column:span 7!important;order:-3!important;font-size:16px!important;padding:0!important;line-height:1.2!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Attendance %"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:span 5!important;order:-2!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Attendance %"]::before{display:none!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Attendance %"] b{font-size:14px}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Attendance %"] .pb{min-width:30px!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l]:not(.ttl):not(.stt):not(.ac):not(.wd){padding:6px 8px!important;font-size:16px!important;border-radius:11px!important;grid-column:span 3!important;line-height:1.1!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l]::before{margin-bottom:2px!important;font-size:9px!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Adm No"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:span 5!important;order:1!important;font-size:13.5px!important;text-align:left}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Today"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:span 7!important;order:2!important;font-size:12px!important;text-align:left}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Marked by"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:1/-1!important;order:3!important;font-size:12px!important;text-align:left;display:flex!important;align-items:center;gap:8px;padding:5px 8px!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Marked by"]::before{margin:0!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td.cw-nb[data-l]:not(.ttl):not(.stt):not(.ac):not(.wd){display:none!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Present"]{order:4!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Absent"]{order:5!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Leave"]{order:6!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Late"]{order:7!important;grid-column:span 3!important}
}

/* v41b: compact student cards + header polish (mobile) */
@media(max-width:820px){
 html body .app #v .cwa .cwa-f input[type="month"]{font-size:12px;letter-spacing:-.2px;padding:0 6px}
 html body .app #v .cwa>p.mu{font-size:12px;line-height:1.4;margin-top:4px!important}
 html body .app #v .at .cwa-s>.tb{flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:6px 8px!important;margin-bottom:8px!important}
 html body .app #v .at .cwa-s>.tb h3{flex:1 1 100%;margin:0;font-size:16px}
 html body .app #v .at .cwa-s>.tb .bt{margin:0!important}
 html body .app #v .at .cwa-s>.tb .mu{margin:0!important;font-size:12.5px}

 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td.ttl{grid-column:span 8!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Today"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:span 4!important;order:-2!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;display:flex!important;justify-content:flex-end;align-items:center;text-align:right!important;white-space:nowrap}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Today"]::before{display:none!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Adm No"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:span 5!important;order:1!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Attendance %"]:not(.ttl):not(.stt):not(.ac):not(.wd){grid-column:span 7!important;order:2!important;background:#eaf2ff!important;padding:6px 10px!important;border-radius:11px!important;display:flex!important;align-items:center}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Attendance %"]>div{width:100%}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Attendance %"] b{white-space:nowrap;font-size:14px}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Attendance %"] .pb{min-width:28px!important}
}

/* v41c */
@media(max-width:820px){
 html body .app #v .at .cwa-s>.tb .bt{width:auto!important;flex:0 0 auto!important;min-height:34px!important;padding:6px 12px!important}
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Attendance %"]>div{margin:auto 0}
}

/* v41d: slim "Taken by / Marked by" strip */
@media(max-width:820px){
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Taken by"]:not(.ttl):not(.stt):not(.ac):not(.wd),
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Marked by"]:not(.ttl):not(.stt):not(.ac):not(.wd){flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;min-height:0!important;height:auto!important;padding:5px 8px!important;gap:8px!important}
 html body .app #v .at .cwa.cwa table.rt tbody tr td[data-l="Taken by"]::before,
 html body .app #v .at .cwa-s.cwa-s table.rt tbody tr td[data-l="Marked by"]::before{display:inline!important;width:auto!important;flex:none!important;margin:0!important;text-align:left!important}
}

/* ===== v35: Portal Logins - mobile-first card layout ===== */
html body .app #v .xlw{--lb:#1d4ed8;--lb2:#3b82f6;--ink:#0f1f45;--mut:#64748b;--line:#e2eafb;--soft:#f3f6ff;max-width:1100px;margin:0 auto;padding:0 0 96px;font-family:Inter,system-ui,sans-serif;color:var(--ink)}
html body .app #v .xlw *{box-sizing:border-box}
html body .app #v .xlw svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
html body .app #v .xlw svg.f{fill:currentColor;stroke:none}
html body .app #v .xlw small{display:block;font-size:12px;line-height:1.35;color:var(--mut);font-weight:500}

/* hero */
.xlw .xlh{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;padding:20px 18px 18px;border-radius:26px;color:#fff;background:radial-gradient(120% 140% at 100% 0,#6366f1 0,rgba(99,102,241,0) 55%),linear-gradient(135deg,#1e40af,#2563eb 55%,#0ea5e9);box-shadow:0 18px 34px -16px rgba(29,78,216,.65);margin-bottom:12px}
.xlw .xlh::after{content:"";position:absolute;right:-50px;bottom:-70px;width:190px;height:190px;border-radius:50%;background:rgba(255,255,255,.09);pointer-events:none}
.xlw .xlh-r{--p:0;position:relative;width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#fff calc(var(--p)*1%),rgba(255,255,255,.22) 0)}
.xlw .xlh-r::before{content:"";position:absolute;inset:9px;border-radius:50%;background:#1d4ed8;background:linear-gradient(135deg,#1e40af,#2563eb)}
.xlw .xlh-n{position:relative;display:flex;flex-direction:column;align-items:center;line-height:1}
.xlw .xlh-n b{font:800 26px/1 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.03em}
.xlw .xlh-n b i{font-style:normal;font-size:13px;opacity:.8;margin-left:1px}
.xlw .xlh-n span{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;opacity:.75;margin-top:3px}
.xlw .xlh-t{position:relative;min-width:0}
html body .app #v .xlw .xlh-t small{color:rgba(255,255,255,.78);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.xlw .xlh-t h2{margin:3px 0 4px;font:800 21px/1.15 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.02em;color:#fff}
.xlw .xlh-t p{margin:0;font-size:13px;color:rgba(255,255,255,.85)}
.xlw .xlh-s{position:relative;grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:2px}
.xlw .xlh-s div{padding:10px 4px 9px;border-radius:15px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);text-align:center;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.xlw .xlh-s b{display:block;font:800 19px/1.1 "Plus Jakarta Sans",Inter,sans-serif}
.xlw .xlh-s span{display:block;margin-top:3px;font-size:10px;font-weight:600;opacity:.82;letter-spacing:.02em}
.xlw .xlh-s .w b{color:#fde68a}

/* admin strip */
.xlw .xla{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:12px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 20px -16px rgba(29,78,216,.5)}
.xlw .xla-i{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#10b981,#047857);box-shadow:0 8px 16px -8px rgba(4,120,87,.7)}
.xlw .xla-t{flex:1;min-width:0}
.xlw .xla-t b{display:block;font-size:14.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* tabs */
.xlw .xltb{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:5px;margin-bottom:12px;border-radius:20px;background:#e8eefc}
html body .app #v .xlw .xltb button{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 6px;border-radius:15px;font:700 13.5px/1 Inter,sans-serif;color:#51638c;cursor:pointer;text-align:center;transition:background .2s,color .2s,box-shadow .2s;-webkit-tap-highlight-color:transparent}
html body .app #v .xlw .xltb button em{font-style:normal;font-size:11px;font-weight:800;padding:3px 7px;border-radius:99px;background:rgba(29,78,216,.1);color:#1d4ed8}
html body .app #v .xlw .xltb button.on{background:#fff;color:#1d4ed8;box-shadow:0 6px 14px -8px rgba(29,78,216,.55)}
html body .app #v .xlw .xltb button.on em{background:#1d4ed8;color:#fff}

/* bulk panel */
.xlw .xlk{padding:16px;margin-bottom:12px;border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:0 14px 28px -22px rgba(29,78,216,.55);display:flex;flex-direction:column;gap:12px}
.xlw .xlk-h{display:flex;gap:12px;align-items:center}
.xlw .xlk-h b{display:block;font:800 16px/1.2 "Plus Jakarta Sans",Inter,sans-serif}
.xlw .xlk-i{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;flex:none;color:#fff;background:linear-gradient(135deg,#f59e0b,#ea580c);box-shadow:0 8px 16px -8px rgba(234,88,12,.7)}
.xlw .xlk-r{display:flex;gap:10px;align-items:stretch}
html body .app #v .xlw .xlk-r label{display:flex;flex-direction:column;gap:4px;flex:none;width:92px;margin:0;font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--mut)}
html body .app #v .xlw .xlk-r input{width:100%!important;height:46px!important;min-height:0!important;margin:0!important;padding:0 10px!important;text-align:center;font:800 17px/1 Inter,sans-serif!important;color:var(--ink);background:var(--soft)!important;border:1.5px solid var(--line)!important;border-radius:14px!important}
.xlw .xlk-r .xlb{flex:1;align-self:flex-end;height:46px}
.xlw .xlk-x{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
html body .app #v .xlw .xlx{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:64px;padding:8px 4px;border-radius:18px;font:700 12.5px/1.1 Inter,sans-serif;text-align:center;cursor:pointer;transition:transform .15s,box-shadow .2s;-webkit-tap-highlight-color:transparent}
html body .app #v .xlw .xlx:active{transform:scale(.96)}
html body .app #v .xlw .xlx svg{width:20px;height:20px}
html body .app #v .xlw .xlx:nth-child(1){background:#eaf1ff;color:#1d4ed8;box-shadow:inset 0 0 0 1px #c9daff}
html body .app #v .xlw .xlx:nth-child(2){background:#f3edff;color:#6d28d9;box-shadow:inset 0 0 0 1px #dccffb}
html body .app #v .xlw .xlx:nth-child(3){background:#e8faf1;color:#15803d;box-shadow:inset 0 0 0 1px #bdeed3}

/* buttons */
html body .app #v .xlw .xlb{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 16px;border-radius:15px;font:700 14px/1 Inter,sans-serif;white-space:nowrap;cursor:pointer;text-align:center;transition:transform .15s,box-shadow .2s,filter .2s;-webkit-tap-highlight-color:transparent;user-select:none}
html body .app #v .xlw .xlb:active{transform:scale(.97)}
html body .app #v .xlw .xlb[disabled]{opacity:.4;pointer-events:none}
html body .app #v .xlw .xlb.p{color:#fff;background:linear-gradient(135deg,#3b82f6,#1d4ed8 70%,#1e3a8a);box-shadow:0 10px 20px -10px rgba(29,78,216,.85)}
html body .app #v .xlw .xlb.s{color:#1d4ed8;background:#eaf1ff;box-shadow:inset 0 0 0 1px #c9daff}
html body .app #v .xlw .xlb.g{color:#fff;background:linear-gradient(135deg,#25d366,#128c4a);box-shadow:0 10px 20px -10px rgba(18,140,74,.8)}
html body .app #v .xlw .xlb.n{color:#334155;background:#f1f5f9;box-shadow:inset 0 0 0 1px #dbe3ee}
html body .app #v .xlw .xlb.w{width:100%;color:#92400e;background:#fff7e0;box-shadow:inset 0 0 0 1px #fde3a1;white-space:normal;line-height:1.25;padding:10px 14px}

/* search + filters */
.xlw .xlf{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
html body .app #v .xlw .xlf-s{position:relative;display:block;margin:0}
html body .app #v .xlw .xlf-s svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:19px;height:19px;color:#7b8db5;pointer-events:none}
html body .app #v .xlw .xlf-s input{width:100%!important;height:52px!important;min-height:0!important;margin:0!important;padding:0 16px 0 46px!important;font:500 16px/1 Inter,sans-serif!important;color:var(--ink);background:#fff!important;border:1.5px solid var(--line)!important;border-radius:18px!important;box-shadow:0 10px 22px -18px rgba(29,78,216,.6)}
.xlw .xlf-g{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.xlw .xlf-g.one{grid-template-columns:1fr}
html body .app #v .xlw .xlf-g select{width:100%!important;max-width:100%!important;height:50px!important;min-height:0!important;margin:0!important;padding:0 38px 0 14px!important;font:600 14.5px/1 Inter,sans-serif!important;color:var(--ink);background-color:#fff!important;border:1.5px solid var(--line)!important;border-radius:16px!important;background-size:16px!important;background-position:right 12px center!important}
html body .app #v .xlw input:focus,html body .app #v .xlw select:focus{outline:0;border-color:#3b82f6!important;box-shadow:0 0 0 4px rgba(59,130,246,.18)!important}

/* person cards */
.xlw .xll{display:grid;grid-template-columns:1fr;gap:14px}
.xlw .xlc{--ac:linear-gradient(180deg,#60a5fa,#1d4ed8);position:relative;overflow:hidden;padding:16px 16px 14px 20px;border-radius:26px;background:#fff;border:1px solid var(--line);box-shadow:0 18px 32px -24px rgba(15,31,69,.55),0 2px 4px rgba(15,31,69,.03);animation:xlIn .22s ease both}
.xlw .xlc::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--ac)}
.xlw .xlc.nd{--ac:linear-gradient(180deg,#fb923c,#ef4444)}
.xlw .xlc.sn{--ac:linear-gradient(180deg,#34d399,#15803d)}
.xlw .xlc.hd{--ac:linear-gradient(180deg,#fbbf24,#d97706)}
@keyframes xlIn{from{opacity:0;transform:translateY(6px)}}
.xlw .xlc-h{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.xlw .xlc-av{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;flex:none;font:800 16px/1 "Plus Jakarta Sans",Inter,sans-serif;color:#fff;letter-spacing:.02em;background:linear-gradient(135deg,var(--g));box-shadow:0 10px 18px -10px rgba(15,31,69,.6)}
.xlw .xlc-t{flex:1;min-width:0}
.xlw .xlc-t b{display:block;font:800 17px/1.2 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.01em;color:var(--ink);overflow-wrap:anywhere}
.xlw .xlc-t span{display:block;margin-top:2px;font-size:13px;font-weight:600;color:var(--mut)}
.xlw .xlc-s{flex:none;align-self:flex-start;padding:5px 10px;border-radius:99px;font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#1d4ed8;background:#e5eeff}
.xlw .xlc.nd .xlc-s{color:#b91c1c;background:#fee2e2}
.xlw .xlc.sn .xlc-s{color:#15803d;background:#dcfce7}
.xlw .xlc.hd .xlc-s{color:#b45309;background:#fef3c7}
.xlw .xlc-b,.xlw .xlc-pg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.xlw .xlc-f{min-width:0;padding:11px 12px 12px;border-radius:18px;background:var(--soft);border:1px solid #e6edfc}
html body .app #v .xlw .xlc-f label{display:flex;align-items:center;gap:5px;margin:0 0 6px;font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#6b7da6}
html body .app #v .xlw .xlc-f label svg{width:12px;height:12px;stroke-width:2.6}
.xlw .xlc-u{font:700 16px/1.25 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.01em;color:var(--ink);overflow-wrap:anywhere}
html body .app #v .xlw .xlc-f input.lpw{display:block;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font:700 16px/1.25 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;letter-spacing:.01em;color:#1d4ed8}
html body .app #v .xlw .xlc-f:has(input.lpw){background:#fff;border:1.5px dashed #9db8f5;transition:border-color .2s,box-shadow .2s,background .2s}
html body .app #v .xlw .xlc-f:has(input.lpw:focus){border-style:solid;border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.16)}
html body .app #v .xlw .xlc-f input.lpw:focus{box-shadow:none!important}
.xlw .xlc-f input.lpw::placeholder{color:#a0aec7;font-weight:600}
.xlw .xlc.nd .xlc-f:has(input.lpw){border-color:#fca5a5;background:#fff8f8}
html body .app #v .xlw .xlc-f small{margin-top:3px;font-size:12px;font-weight:600}
.xlw .xlc-p{margin-top:10px;padding:12px;border-radius:20px;background:linear-gradient(135deg,#faf5ff,#fff7ed);border:1px solid #eadcfb}
.xlw .xlc-pt{display:flex;align-items:center;gap:7px;margin:0 0 9px 2px;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#7c3aed}
.xlw .xlc-pt svg{width:15px;height:15px}
.xlw .xlc-p .xlc-f{background:rgba(255,255,255,.85);border-color:#efe5fb}
.xlw .xlc-a{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px;padding-top:14px;border-top:1.5px dashed #dbe5fa}

/* empty + pager */
.xlw .xle{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:44px 20px;border-radius:26px;background:#fff;border:1.5px dashed #c9d7f5;text-align:center;color:#94a6cc}
html body .app #v .xlw .xle svg{width:64px;height:64px;stroke:none;fill:none}
.xlw .xle b{font:800 17px/1.2 "Plus Jakarta Sans",Inter,sans-serif;color:var(--ink)}
.xlw .xle span{font-size:13.5px;color:var(--mut)}
.xlw .xlpg{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;padding:8px;border-radius:22px;background:#fff;border:1px solid var(--line)}
.xlw .xlpg>span{flex:1;text-align:center}
.xlw .xlpg>span b{display:block;font-size:13.5px}
.xlw .xlpg .xlb{min-height:44px;padding:0 16px}

/* larger screens */
@media(min-width:700px){
.xlw .xll{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}
.xlw .xlh{grid-template-columns:auto 1fr 1.3fr;padding:22px 24px}
.xlw .xlh-s{grid-column:auto;margin:0}
.xlw .xlf{flex-direction:row;align-items:center}
.xlw .xlf-s{flex:1}
.xlw .xlf-g{flex:none;width:min(440px,50%)}
.xlw .xlk{display:grid;grid-template-columns:1fr 1fr;align-items:center}
.xlw .xlk-h{grid-column:1/-1}
.xlw .xlb.w{grid-column:1/-1}
}
@media(max-width:359px){
.xlw .xlh-s span{font-size:9px}
.xlw .xlc-b,.xlw .xlc-pg{grid-template-columns:1fr}
.xlw .xlk-r label{width:76px}
}

/* v35b: compact bulk panel */
html body .app #v .xlw .xlk{padding:12px;gap:10px;border-radius:22px}
html body .app #v .xlw .xlk-h{display:flex;align-items:center;gap:10px}
html body .app #v .xlw .xlk-h b{flex:1;min-width:0;font:800 15px/1.2 "Plus Jakarta Sans",Inter,sans-serif}
html body .app #v .xlw .xlk-i{width:34px;height:34px;border-radius:11px}
html body .app #v .xlw .xlk-i svg{width:16px;height:16px}
html body .app #v .xlw .xlk-n{display:flex;align-items:center;gap:8px;flex:none;margin:0;font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#64748b}
html body .app #v .xlw .xlk-n input{width:64px!important;height:36px!important;min-height:0!important;margin:0!important;padding:0 6px!important;text-align:center;font:800 15px/1 Inter,sans-serif!important;color:#0f1f45;background:#f3f6ff!important;border:1.5px solid #e2eafb!important;border-radius:12px!important}
html body .app #v .xlw .xlk .xlk-g{width:100%;min-height:44px;font-size:14px}
html body .app #v .xlw .xlk-x{gap:8px}
html body .app #v .xlw .xlx{flex-direction:row;gap:6px;min-height:40px;padding:0 4px;border-radius:13px;font-size:12.5px;white-space:nowrap}
html body .app #v .xlw .xlx svg{width:16px;height:16px}
@media(min-width:700px){
html body .app #v .xlw .xlk{grid-template-columns:auto minmax(220px,1fr) 1.3fr;align-items:center}
html body .app #v .xlw .xlk-h{grid-column:auto}
html body .app #v .xlw .xlk-h b{flex:none}
}

/* v35c: attractive card action buttons */
html body .app #v .xlw .xlc-a{gap:10px;margin-top:14px;padding-top:14px}
html body .app #v .xlw .xlc-a .xlb{position:relative;overflow:hidden;min-height:52px;padding:0 12px 0 8px;gap:9px;border-radius:18px;font:800 14px/1 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:.01em;justify-content:flex-start;transition:transform .15s,box-shadow .25s,filter .2s}
html body .app #v .xlw .xlc-a .xlb span{flex:1;text-align:center;padding-right:8px}
html body .app #v .xlw .xlc-a .xlb svg{width:34px;height:34px;padding:8px;border-radius:13px;flex:none;stroke-width:2.4;transition:transform .25s}
html body .app #v .xlw .xlc-a .xlb svg.f{padding:7px}
html body .app #v .xlw .xlc-a .xlb:active svg{transform:scale(.88) rotate(-8deg)}
html body .app #v .xlw .xlc-a .xlb:active{transform:scale(.96)}
html body .app #v .xlw .xlc-a .xlb.p::after,html body .app #v .xlw .xlc-a .xlb.g::after{content:"";position:absolute;left:0;right:0;top:0;height:52%;background:linear-gradient(rgba(255,255,255,.26),rgba(255,255,255,0));pointer-events:none}
html body .app #v .xlw .xlc-a .xlb.p{background:linear-gradient(135deg,#5b9bff 0%,#2563eb 50%,#1e3a8a 100%);box-shadow:0 14px 24px -12px rgba(29,78,216,.95),inset 0 1px 0 rgba(255,255,255,.35)}
html body .app #v .xlw .xlc-a .xlb.p svg{background:rgba(255,255,255,.22);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
html body .app #v .xlw .xlc-a .xlb.s{color:#1d4ed8;background:linear-gradient(135deg,#f5f9ff,#dfeaff);box-shadow:inset 0 0 0 1.5px #bcd1fb,0 10px 18px -14px rgba(29,78,216,.7)}
html body .app #v .xlw .xlc-a .xlb.s svg{color:#fff;background:linear-gradient(135deg,#60a5fa,#1d4ed8);box-shadow:0 6px 12px -6px rgba(29,78,216,.8)}
html body .app #v .xlw .xlc-a .xlb.g{background:linear-gradient(135deg,#3be884 0%,#12b35f 50%,#0a7a43 100%);box-shadow:0 14px 24px -12px rgba(10,122,67,.95),inset 0 1px 0 rgba(255,255,255,.4)}
html body .app #v .xlw .xlc-a .xlb.g svg{background:rgba(255,255,255,.22);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
html body .app #v .xlw .xlc-a .xlb.n{color:#334155;background:linear-gradient(135deg,#ffffff,#eef2f8);box-shadow:inset 0 0 0 1.5px #d5deec,0 10px 18px -14px rgba(51,65,85,.6)}
html body .app #v .xlw .xlc-a .xlb.n svg{color:#fff;background:linear-gradient(135deg,#94a3b8,#475569);box-shadow:0 6px 12px -6px rgba(71,85,105,.8)}
@media(hover:hover){html body .app #v .xlw .xlc-a .xlb:hover{transform:translateY(-2px);filter:saturate(1.08) brightness(1.03)}}
@media(max-width:359px){html body .app #v .xlw .xlc-a .xlb{font-size:13px;padding:0 8px 0 6px;gap:6px}html body .app #v .xlw .xlc-a .xlb svg{width:30px;height:30px;padding:7px}}

/* v35d: smaller card action buttons */
html body .app #v .xlw .xlc-a{gap:8px;margin-top:12px;padding-top:12px}
html body .app #v .xlw .xlc-a .xlb{min-height:42px;padding:0 10px 0 6px;gap:7px;border-radius:14px;font:600 13px/1 Inter,sans-serif;letter-spacing:0}
html body .app #v .xlw .xlc-a .xlb span{padding-right:6px}
html body .app #v .xlw .xlc-a .xlb svg{width:28px;height:28px;padding:6.5px;border-radius:10px}
html body .app #v .xlw .xlc-a .xlb svg.f{padding:6px}
@media(max-width:359px){html body .app #v .xlw .xlc-a .xlb{font-size:12.5px;padding:0 8px 0 5px;gap:5px}html body .app #v .xlw .xlc-a .xlb svg{width:26px;height:26px;padding:6px}}

/* ===== v29: owner Schools page - friendly mobile layout ===== */
html body .pw.ow .scw .cfb.v29{display:block!important;background:#fff;border:1px solid #dfe8fb;border-radius:22px;padding:12px 14px!important;margin:0 0 12px!important;box-shadow:0 12px 28px -22px rgba(29,78,216,.5)}
html body .pw.ow .scw .cfb.v29 .cfh{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
html body .pw.ow .scw .cfb.v29 .cfh>span:first-child{white-space:nowrap;flex:none;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#64748b}
html body .pw.ow .scw .cfb.v29 .cfn{flex:none;width:auto!important;margin:0 0 0 auto!important;font-size:12px;font-weight:700;color:#1d4ed8;background:#eaf1ff;padding:3px 10px;border-radius:999px;white-space:nowrap}
html body .pw.ow .scw .cfb.v29 .cfr{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
html body .pw.ow .scw .cfb.v29 .cfr::-webkit-scrollbar{display:none}
html body .pw.ow .scw .cfb.v29 .cfr button{flex:none;height:34px;padding:0 14px;border-radius:999px;border:1px solid #dbe5f7;background:#f4f8ff;color:#1d4ed8;font-weight:700;font-size:12.5px;white-space:nowrap;cursor:pointer}
html body .pw.ow .scw .cfb.v29 .cfx{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
html body .pw.ow .scw .cfb.v29 .cfx>select{flex:1 1 140px;min-width:0;height:38px;border-radius:12px}
html body .pw.ow .scw .cfb.v29 .cfx>button{flex:none;height:38px;padding:0 16px;border-radius:12px;border:1px solid #dbe5f7;background:#f4f8ff;color:#1d4ed8;font-weight:700;font-size:12.5px}
html body .pw.ow .scw .cfb.v29 .cfi{flex:1 1 100%}
html body .pw.ow .scw .cfb.v29 .cfi input,html body .pw.ow .scw .cfb.v29 .cfi select{height:38px;border-radius:12px;max-width:100%}

@media(max-width:820px){
html body .pw.ow{padding-bottom:132px!important}
html body .pw.ow .card.scw{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;overflow:visible!important}

/* header card: title + actions */
html body .pw.ow .scw>.tb{display:block!important;background:#fff;border:1px solid #dfe8fb;border-radius:22px;padding:16px!important;margin:0 0 12px!important;box-shadow:0 14px 30px -22px rgba(29,78,216,.55)}
html body .pw.ow .scw>.tb h3{display:flex;align-items:center;gap:8px;margin:0 0 14px!important;font-size:21px}
html body .pw.ow .scw .oact{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;width:100%;margin:0!important}
html body .pw.ow .scw .oact .bt,html body .pw.ow .scw .oact .bt.o{display:flex!important;align-items:center;justify-content:center;min-width:0;height:42px!important;margin:0!important;padding:0 8px!important;border-radius:13px!important;font-size:12.5px!important;font-weight:700!important;line-height:1.1;white-space:nowrap!important;font-size:12.5px!important}
html body .pw.ow .scw .oact .bt:first-child{grid-column:1/-1;height:48px!important;font-size:15px!important;border-radius:15px!important;box-shadow:0 14px 22px -14px rgba(29,78,216,.95)}

/* search + status chips */
html body .pw.ow .scw .oxs{background:#fff;border:1px solid #dfe8fb;border-radius:22px;padding:12px!important;margin:0 0 12px!important;gap:10px;box-shadow:0 12px 28px -22px rgba(29,78,216,.5)}
html body .pw.ow .scw .oxs .se{display:flex;align-items:center;gap:8px;width:100%;max-width:none!important;margin:0!important;padding:0 14px!important;height:48px!important;min-height:48px!important;flex:0 0 48px!important;border-radius:14px;background:#f1f6ff!important;border:1px solid #dbe5f7!important;box-sizing:border-box}
html body .pw.ow .scw .oxs .se input{flex:1;min-width:0;height:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:14.5px}
html body .pw.ow .scw .oxs .ch{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:8px!important;margin:0!important;padding:2px 2px 4px;scrollbar-width:none}
html body .pw.ow .scw .oxs .ch::-webkit-scrollbar{display:none}
html body .pw.ow .scw .oxs .ch .cp{flex:none;height:34px;padding:0 15px;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap}

/* export row */
html body .pw.ow .scw .xpb{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:8px!important;margin:0 0 14px!important;padding:0 2px;overflow-x:auto;scrollbar-width:none}
html body .pw.ow .scw .xpb::-webkit-scrollbar{display:none}
html body .pw.ow .scw .xpb .xpl{flex:none;width:auto!important;margin:0 4px 0 0!important;font-size:11px;letter-spacing:.1em}
html body .pw.ow .scw .xpb .bt{flex:none;height:34px;margin:0!important;padding:0 14px!important;border-radius:999px!important;font-size:12.5px!important}

/* school cards */
html body .pw.ow .scw .sl{display:grid!important;gap:14px!important}
html body .pw.ow .scw .sc{--st:#3b82f6;position:relative;overflow:hidden;margin:0!important;padding:14px 14px 14px 18px!important;border-radius:22px!important;border:1px solid #dfe8fb!important;background:#fff!important;box-shadow:0 14px 30px -22px rgba(29,78,216,.55)!important}
html body .pw.ow .scw .sc::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--st)}
html body .pw.ow .scw .sc[data-st=active]{--st:#10b981}
html body .pw.ow .scw .sc[data-st=due]{--st:#f59e0b}
html body .pw.ow .scw .sc[data-st=over]{--st:#ef4444}
html body .pw.ow .scw .sc[data-st=off]{--st:#94a3b8}
html body .pw.ow .scw .sc[data-st=demo]{--st:#8b5cf6}
html body .pw.ow .scw .sc .sh{display:flex!important;align-items:center;gap:12px;margin:0 0 12px!important}
html body .pw.ow .scw .sc .av{flex:none;width:46px;height:46px;border-radius:15px;display:grid;place-items:center;font-size:19px;font-weight:800;color:#fff!important;background:var(--st)!important;box-shadow:0 10px 18px -10px var(--st)}
html body .pw.ow .scw .sc .si{flex:1;min-width:0}
html body .pw.ow .scw .sc .si b{display:block;font-size:16px;line-height:1.25;color:#0f2a63;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .pw.ow .scw .sc .si .mu{margin-top:2px;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .pw.ow .scw .sc .sh>.tg,html body .pw.ow .scw .sc .sh>.bd{flex:none}
html body .pw.ow .scw .sc .sg{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr);gap:0!important;padding:0!important;border-radius:16px;border:1px solid #e3ecff;background:#f5f8ff!important;overflow:hidden}
html body .pw.ow .scw .sc .sg>div{min-width:0;padding:10px 10px!important;border-right:1px solid #e3ecff}
html body .pw.ow .scw .sc .sg>div:last-child{border-right:0}
html body .pw.ow .scw .sc .sg span{display:block;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7b8aa8}
html body .pw.ow .scw .sc .sg b{display:block;margin-top:3px;font-size:14px;color:#0f2a63;white-space:nowrap}
html body .pw.ow .scw .sc .sg small{display:block;margin-top:2px;font-size:11px;font-weight:700;color:#64748b;white-space:nowrap}
html body .pw.ow .scw .sc .sg small.d-g{color:#15803d;background:none!important}
html body .pw.ow .scw .sc .sg small.d-o{color:#b45309;background:none!important}
html body .pw.ow .scw .sc .sg small.d-r{color:#dc2626;background:none!important}
html body .pw.ow .scw .sc .sg small{padding:0!important;border-radius:0!important}
html body .pw.ow .scw .sc .sk{display:flex;align-items:center;gap:8px;margin:10px 0 0!important;padding:0 2px;font-size:13px;font-weight:600;color:#334155}
html body .pw.ow .scw .sc .sk a{color:#1d4ed8;font-weight:800;text-decoration:none}
html body .pw.ow .scw .sc .sa1{display:grid!important;grid-template-columns:1.4fr 1fr;gap:8px!important;margin-top:12px!important}
html body .pw.ow .scw .sc .sa1>.bt{flex:none!important;height:44px!important;margin:0!important;border-radius:14px!important}
html body .pw.ow .scw .sc .sa2{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important;margin-top:8px!important}
html body .pw.ow .scw .sc .sa2>.bt{flex:none!important;min-width:0!important;height:38px!important;margin:0!important;padding:0 2px!important;border-radius:11px!important;font-size:12px!important;white-space:nowrap!important}
}
@media(max-width:380px){html body .pw.ow .scw .sc .sa2>.bt{font-size:11.5px!important}html body .pw.ow .scw .sc .sg b{font-size:13.5px}}
