/* KAUSHALAMIIT ✦AI SAARTHI by JIGNAL — PHONE MODE (v15.11.0)
   Everything here works only on phones (html.kphone, set by js/mobile.js when the screen is narrower than 900 px).
   The PC look does not change. */

/* ---------- base ---------- */
#kmNav,#kmSheet,#kmPull,#kmAsk,#kmBackPill,#kmHelp{display:none}
html.kphone{--km-top:58px;--km-bot:calc(76px + env(safe-area-inset-bottom,0px));--km-ink:#1e1b4b;--km-ac:#4f46e5;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
html.kphone body{overscroll-behavior-y:contain}
html.kphone .main{scroll-behavior:auto;-webkit-overflow-scrolling:touch}
html.kphone #view .page{padding:12px 12px calc(var(--km-bot) + 30px)!important;gap:14px}
html.kphone input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),html.kphone select,html.kphone textarea{font-size:16px!important}
html.kphone img,html.kphone video,html.kphone canvas{max-width:100%}
/* v15.14.0: no forced height on images — photo frames (podium, result cards, profiles) keep their own size */

/* hide the PC-only extras on phones (the same things are in ✦ All tools) */
html.kphone #kfxTabs,html.kphone #kfxDroid,html.kphone .kfx-snd{display:none!important}
html.kphone #kfxBg{display:none!important}
html.kphone body{background:radial-gradient(120% 50% at 100% 0,#e0e7ff 0,transparent 60%),radial-gradient(90% 40% at 0 30%,#fae8ff 0,transparent 60%),#eef1fb;background-attachment:fixed}

/* ---------- top bar ---------- */
html.kphone #kbar{flex:none;display:flex!important;position:sticky;top:0;z-index:45;height:var(--km-top);min-height:0;padding:0 6px 0 4px;gap:2px;align-items:center;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid rgba(99,102,241,.13);transition:transform .32s cubic-bezier(.2,.8,.2,1),box-shadow .25s}
html.kphone.km-scrolled #kbar{box-shadow:0 6px 22px rgba(30,27,75,.10)}
html.kphone.km-hidebar #kbar{transform:translateY(-105%)}
/* top-bar buttons: an icon and a small word under it, so everybody knows what each button does */
html.kphone #kbar button{min-width:44px;height:50px;flex:none;border:0!important;background:transparent!important;border-radius:14px!important;padding:0 3px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#312e81!important;font-size:0!important;position:relative;transition:background .15s,transform .15s;animation:none!important}
html.kphone #kbar button:active{background:rgba(99,102,241,.12)!important;transform:scale(.92)}
html.kphone #kbar .kmenu::before,html.kphone #kbar .kback::before,html.kphone #kbar .kpin::before,html.kphone #kbar .kmsrch::before,html.kphone #kbar .kbell::before{content:"";width:22px;height:22px;flex:none;background:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
html.kphone #kbar .kmenu::after,html.kphone #kbar .kback::after,html.kphone #kbar .kpin::after,html.kphone #kbar .kmsrch::after,html.kphone #kbar .kbell::after{font:700 9.5px/1 system-ui,sans-serif;letter-spacing:.2px;color:#565b85;white-space:nowrap}
html.kphone #kbar .kmenu{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h11M4 17h16'/%3E%3C/svg%3E")}html.kphone #kbar .kmenu::after{content:"Menu"}
html.kphone #kbar .kback{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E")}html.kphone #kbar .kback::after{content:"Back"}
html.kphone #kbar .kback:disabled,html.kphone #kbar .khome,html.kphone #kbar .kmenu span,html.kphone #kbar .kpub{display:none!important}
html.kphone #kbar .kmsrch{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E")}html.kphone #kbar .kmsrch::after{content:"Search"}
html.kphone #kbar .kpin{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.8l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z'/%3E%3C/svg%3E");color:#d97706!important}html.kphone #kbar .kpin::after{content:"Pin"}
html.kphone #kbar .kpin.on{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3.5l2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.8l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z'/%3E%3C/svg%3E");color:#f59e0b!important}html.kphone #kbar .kpin.on::after{content:"Pinned"}
html.kphone #kbar .kpin.on::before{animation:kmStar .5s cubic-bezier(.3,1.6,.5,1)}
html.kphone #kbar .kpin[hidden]{display:none!important}
html.kphone #kbar .kbell{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l2 2H4z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E")}html.kphone #kbar .kbell::after{content:"Alerts"}
html.kphone #kbar .kbell b{position:absolute;top:1px;right:1px;min-width:17px;height:17px;border-radius:9px;background:#ef4444;color:#fff;font:800 10px/17px system-ui!important;padding:0 4px;box-shadow:0 0 0 2px #fff;text-align:center}
/* a button another screen adds later keeps its own words (never an empty square) */
html.kphone #kbar button:not(.kmenu):not(.kback):not(.khome):not(.kpin):not(.kmsrch):not(.kbell):not(.kpub){font:700 12px/1.1 system-ui,sans-serif!important;padding:0 8px!important;max-width:86px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html.kphone #kbar .ktitle{flex:1;min-width:0;font:800 17.5px/1.15 Lexend,system-ui,sans-serif;color:var(--km-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px;letter-spacing:-.2px}
html.kphone #kbar .ktitle small{display:block;font:600 10.5px/1.2 system-ui;letter-spacing:.5px;color:#8b8fb3;text-transform:uppercase}
html.kphone #kbar .klogo{display:none!important;width:34px;height:34px;object-fit:contain;flex:none;margin-left:2px;filter:drop-shadow(0 2px 4px rgba(49,46,129,.25))}
@keyframes kmStar{0%{transform:scale(.4) rotate(-40deg)}100%{transform:none}}

/* PC frames (Timetable Studio, OMR …) sit between the two bars */
html.kphone .frame,html.kphone body.kfx-tabs .frame{top:var(--km-top)!important;height:calc(100% - var(--km-top) - var(--km-bot))!important}

/* ---------- side menu = drawer ---------- */
html.kphone .shell{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
html.kphone .main{min-width:0;overflow-x:hidden}
html.kphone #view .page{grid-template-columns:minmax(0,1fr)}
html.kphone #view .page>*{min-width:0;max-width:100%}
html.kphone #view .panel>*,html.kphone #view .grid>*,html.kphone #view .list>*,html.kphone #view [class*=grid]>*{min-width:0}
html.kphone #view label.cfld,html.kphone #view label{max-width:100%}
html.kphone #view select{max-width:100%}
html.kphone #view .btn{white-space:normal;max-width:100%;height:auto}
html.kphone #view .chip,html.kphone #view .pill{max-width:100%;white-space:normal;overflow-wrap:break-word}
html.kphone #view .li .grow,html.kphone #view .li .name{min-width:0;overflow:hidden;text-overflow:ellipsis}
html.kphone .side{position:fixed!important;top:0;bottom:0;left:0;width:min(86vw,330px)!important;z-index:80!important;transform:translateX(-106%);transition:transform .34s cubic-bezier(.16,1,.3,1);flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;padding:calc(14px + env(safe-area-inset-top,0px)) 10px calc(18px + env(safe-area-inset-bottom,0px))!important;box-shadow:12px 0 40px rgba(10,12,40,.35);border-radius:0 26px 26px 0;overscroll-behavior:contain}
html.kphone body.kmenuopen .side{transform:none}
html.kphone .side.km-drag{transition:none!important}
html.kphone #kov{display:block!important;position:fixed;inset:0;z-index:79;background:rgba(10,12,40,.5);opacity:0;pointer-events:none;transition:opacity .3s}
html.kphone body.kmenuopen #kov{opacity:1;pointer-events:auto}
html.kphone .side .logo,html.kphone .side .foot{display:flex!important}
html.kphone .side .nav{width:100%!important;padding:11px 10px!important;border-radius:14px}
html.kphone .side .nav span.t{display:inline!important}
html.kphone .side .nav:active{transform:scale(.97)}

/* ---------- bottom bar ---------- */
html.kphone #kmNav{display:grid;grid-template-columns:repeat(5,1fr);align-items:center;position:fixed;left:10px;right:10px;max-width:540px;margin:0 auto;bottom:calc(10px + env(safe-area-inset-bottom,0px));height:62px;z-index:70;border-radius:24px;
  background:rgba(255,255,255,.97);
  box-shadow:0 14px 36px rgba(30,27,75,.20),0 2px 6px rgba(30,27,75,.08),inset 0 0 0 1px rgba(99,102,241,.13);transition:transform .34s cubic-bezier(.2,.8,.2,1)}
html.kphone.km-hidebar #kmNav{transform:translateY(calc(100% + 26px))}
html.kphone.km-kb #kmNav,html.kphone body.kmenuopen #kmNav{transform:translateY(calc(100% + 26px))}
#kmNav .kmsl{position:relative;z-index:1;height:100%;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#6b7194;font:700 10.5px/1.1 Lexend,system-ui,sans-serif;padding:0 2px;cursor:pointer;min-width:0;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#kmNav .kmsl .kmic{width:30px;height:30px;border-radius:11px;display:grid;place-items:center;transition:transform .35s cubic-bezier(.3,1.5,.5,1),background .25s,color .25s;color:var(--c,#4f46e5)}
#kmNav .kmsl .kmic svg{width:21px;height:21px}
#kmNav .kmsl b{font-weight:700;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#kmNav .kmsl.kmon{color:var(--c,#4f46e5)}
#kmNav .kmsl.kmon .kmic{background:var(--c,#4f46e5);color:#fff;transform:translateY(-3px) scale(1.06);box-shadow:0 6px 14px -4px var(--c,#4f46e5)}
#kmNav .kmsl:active .kmic{transform:scale(.86)}
#kmNav .kmsl.km-press .kmic{animation:kmWig .5s ease-in-out infinite}
#kmNav .kmdot{position:absolute;bottom:6px;left:0;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--c,#4f46e5);transition:transform .45s cubic-bezier(.3,1.4,.5,1),background .3s;z-index:0}
/* the ✦AI droid in the middle = all tools + search */
#kmNav .kmmid{position:relative;justify-self:center;width:62px;height:62px;margin-top:-28px;border:0;border-radius:50%;cursor:pointer;padding:0;background:#fff;box-shadow:0 12px 26px -6px rgba(99,102,241,.75),0 0 0 5px rgba(255,255,255,.92);-webkit-user-select:none;user-select:none}
#kmNav .kmmid::before{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,#22d3ee,#6366f1,#a855f7,#ec4899,#f59e0b,#22d3ee);animation:kmSpin 5s linear infinite}
#kmNav .kmmid::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid rgba(129,140,248,.55);animation:kmRing 2.6s ease-out infinite;pointer-events:none}
#kmNav .kmmid .kmface{position:absolute;z-index:1;inset:4px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#312e81,#0b0a2a 70%);display:grid;place-items:center}
#kmNav .kmmid .kmeyes{display:flex;gap:8px;transition:transform .2s}
#kmNav .kmmid .kmeyes i{width:11px;height:11px;border-radius:50%;background:#4ade80;box-shadow:0 0 8px #4ade80,0 0 2px #fff inset;animation:kmBlink 4.2s infinite}
#kmNav .kmmid .kmmo{position:absolute;bottom:13px;left:50%;width:12px;height:3px;margin-left:-6px;border-radius:3px;background:#4ade80aa}
#kmNav .kmmid:active{transform:scale(.9)}
html.kphone #kmNav .kmmid b{position:absolute;top:calc(100% + 2px);left:50%;transform:translateX(-50%);font:800 10px/1 Lexend,system-ui;color:#4f46e5;white-space:nowrap;letter-spacing:.3px}
@keyframes kmSpinBg{to{filter:hue-rotate(360deg)}}
@keyframes kmRing{0%{transform:scale(.92);opacity:.9}100%{transform:scale(1.35);opacity:0}}
@keyframes kmBlink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
@keyframes kmWig{0%,100%{transform:rotate(0)}25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}

/* things that float above the bottom bar */
html.kphone #toTop{right:16px!important;bottom:calc(var(--km-bot) + 14px)!important;width:46px;height:46px;background:linear-gradient(135deg,#4f46e5,#9333ea)!important;box-shadow:0 10px 24px -6px rgba(79,70,229,.7)!important}
html.kphone .toast{bottom:calc(var(--km-bot) + 14px)!important;max-width:calc(100vw - 28px);text-align:center;border-radius:18px!important}
html.kphone #kInstall{bottom:calc(var(--km-bot) + 14px)!important;z-index:75!important}

/* ---------- screens ---------- */
html.kphone .topbar{gap:10px!important}
html.kphone .topbar>div:first-child{min-width:0}
html.kphone .topbar h1{font-size:24px!important;line-height:1.15!important;letter-spacing:-.3px}
html.kphone .topbar p{font-size:13.5px}
html.kphone .topbar .row{gap:8px;width:100%}
html.kphone .btn{min-height:40px;border-radius:13px;touch-action:manipulation}
html.kphone .btn:active{transform:scale(.96)}
html.kphone .panel{border-radius:20px}
html.kphone .tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;-webkit-mask:linear-gradient(90deg,#000 88%,transparent);mask:linear-gradient(90deg,#000 88%,transparent)}
html.kphone .tabs::-webkit-scrollbar{display:none}
html.kphone .tabs button{flex:none;white-space:nowrap;scroll-snap-align:start}
html.kphone .topbar .tabs{width:100%}
html.kphone .scroll{-webkit-overflow-scrolling:touch}
html.kphone .row>select,html.kphone .row>input[type=search],html.kphone .row>input[type=text]{min-width:0}

/* filters fold away behind one button */
html.kphone #view .km-fold{position:static!important;top:auto!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:center}
html.kphone #view .km-fold>*{grid-column:span 6;min-width:0;width:100%!important;max-width:100%;margin:0!important}
html.kphone #view .km-fold>select,html.kphone #view .km-fold>.kmsel{grid-column:span 3}
html.kphone #view .km-fold>.search,html.kphone #view .km-fold>input[type=search]{grid-column:span 4}
html.kphone #view .km-fold>.km-fold-b{grid-column:span 2}
html.kphone #view .km-fold.kmnos>.km-fold-b{grid-column:span 6}
html.kphone #view .km-fold:not(.km-open)>*:not(.search):not(.km-fold-b):not(input[type=search]){display:none!important}
.km-fold-b{height:46px;border:0;border-radius:14px;background:linear-gradient(135deg,#eef2ff,#f5f3ff);color:#312e81;font:800 14px/1 Lexend,system-ui;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;box-shadow:inset 0 0 0 1px #dfe3fb}
.km-fold-b i{font-style:normal;min-width:20px;height:20px;border-radius:10px;background:#4f46e5;color:#fff;font:800 11px/20px system-ui;padding:0 5px}
.km-fold.km-open>.km-fold-b{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;box-shadow:none}
html.kphone #view .km-fold.km-open>*{animation:kmCard .3s cubic-bezier(.16,1,.3,1) both}

/* tables become cards on phones (✦ All tools → "Tables as cards" turns it off) */
html.kphone table.kmc{width:100%!important;min-width:0!important;max-width:100%!important;border-collapse:separate!important;border-spacing:0!important;background:transparent!important;table-layout:auto!important}
html.kphone table.kmc thead{display:none!important}
html.kphone table.kmc tbody,html.kphone table.kmc tfoot{display:block}
html.kphone table.kmc tr{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 12px;padding:12px 14px!important;margin:0 0 10px;border-radius:18px;background:#fff;box-shadow:0 3px 14px rgba(30,27,75,.07);border:1px solid #eceefa;position:relative;animation:kmCard .4s cubic-bezier(.16,1,.3,1) both}
html.kphone table.kmc tr:nth-child(n+16){animation:none}
html.kphone table.kmc tr.link,html.kphone table.kmc tr[data-sid],html.kphone table.kmc tr[data-exam],html.kphone table.kmc tr[onclick]{cursor:pointer}
html.kphone table.kmc tr.link::after,html.kphone table.kmc tr[data-sid]::after,html.kphone table.kmc tr[data-exam]::after{content:"›";position:absolute;right:12px;top:10px;font:700 22px/1 system-ui;color:#c3c6e0}
html.kphone table.kmc tr:active{transform:scale(.985);box-shadow:0 1px 6px rgba(30,27,75,.10)}
html.kphone table.kmc td,html.kphone table.kmc th{display:block;padding:0!important;border:0!important;text-align:left!important;min-width:0!important;width:auto!important;max-width:none!important;white-space:normal!important;overflow-wrap:break-word;background:transparent!important;position:static!important;height:auto!important}
html.kphone table.kmc td,html.kphone table.kmc th{flex:1 1 calc(50% - 6px)}
html.kphone table.kmc td::before{content:attr(data-label);display:block;font:700 10px/1.3 system-ui,sans-serif;letter-spacing:.5px;text-transform:uppercase;color:#8a90b0;margin-bottom:2px}
html.kphone table.kmc tr[hidden],html.kphone table.kmc td[hidden]{display:none}
html.kphone table.kmc td.kmf{order:-1;flex-basis:100%;padding-right:18px!important;font-size:15.5px}
html.kphone table.kmc td.kmav{order:-2;flex:0 0 auto;align-self:center}
html.kphone table.kmc td.kmav::before{display:none}
html.kphone table.kmc td.kmav+td.kmf,html.kphone table.kmc tr.kmavr td.kmf{flex:1 1 calc(100% - 90px);align-self:center;font-size:16px}
html.kphone table.kmc td.kmf::before,html.kphone table.kmc td[data-label=""]::before{display:none}
html.kphone table.kmc td.kmw{flex-basis:100%}
html.kphone table.kmc td:empty{display:none!important}
html.kphone table.kmc tr.kmhide{display:none!important}
@keyframes kmCard{from{opacity:0;transform:translateY(10px)}}

/* pop-up windows = sheets from the bottom (swipe down to close) */
html.kphone dialog[open]{margin:auto 0 0 0!important;width:100vw!important;max-width:100vw!important;max-height:92dvh!important;border-radius:26px 26px 0 0!important;padding-bottom:env(safe-area-inset-bottom,0px);animation:kmUp .42s cubic-bezier(.16,1,.3,1);overscroll-behavior:contain}
html.kphone dialog::backdrop{background:rgba(10,12,40,.5);}
html.kphone dialog.km-drag{transition:none!important;animation:none!important}
.kmHandle{position:sticky;top:0;z-index:20;height:24px;display:grid;place-items:center;background:inherit;touch-action:none;cursor:grab}
.kmHandle i{width:46px;height:5px;border-radius:3px;background:#cbd0e6}
@keyframes kmUp{from{transform:translateY(100%)}}

/* page change */
html.kphone #view.km-in>.page,html.kphone #view.km-in>:first-child{animation:kmInF .38s cubic-bezier(.16,1,.3,1) both}
html.kphone #view.km-back>.page,html.kphone #view.km-back>:first-child{animation:kmInB .38s cubic-bezier(.16,1,.3,1) both}
@keyframes kmInF{from{opacity:0;transform:translateX(22px)}}
@keyframes kmInB{from{opacity:0;transform:translateX(-22px)}}

/* tap glow */
.km-tap{position:fixed;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;pointer-events:none;z-index:2147483000;background:radial-gradient(circle,rgba(129,140,248,.55),rgba(168,85,247,.25) 45%,rgba(129,140,248,0) 70%);animation:kmTap .55s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes kmTap{from{transform:scale(1);opacity:1}to{transform:scale(10);opacity:0}}

/* pull to refresh */
html.kphone #kmPull{display:grid;place-items:center;position:fixed;top:calc(var(--km-top) - 52px);left:50%;width:44px;height:44px;margin-left:-22px;border-radius:50%;background:#fff;box-shadow:0 8px 22px rgba(30,27,75,.22);z-index:46;opacity:0;pointer-events:none;transform:translateY(0)}
#kmPull svg{width:26px;height:26px;color:#4f46e5}
#kmPull.go svg{animation:kmSpin .8s linear infinite}
#kmPull.ready{background:linear-gradient(135deg,#4f46e5,#9333ea)}#kmPull.ready svg{color:#fff}
@keyframes kmSpin{to{transform:rotate(360deg)}}

/* edge swipe arrow */
.km-edge{position:fixed;left:0;top:50%;width:6px;height:120px;margin-top:-60px;border-radius:0 8px 8px 0;background:linear-gradient(180deg,#22d3ee,#6366f1,#a855f7);z-index:81;pointer-events:none;opacity:0;transition:opacity .2s}

/* ---------- ✦ all tools sheet ---------- */
html.kphone #kmSheet.open{display:block;position:fixed;inset:0;z-index:90}
#kmSheet .kmbg{position:absolute;inset:0;background:rgba(8,10,35,.5);opacity:0;transition:opacity .3s}
#kmSheet.show .kmbg{opacity:1}
#kmSheet .kmsh{position:absolute;left:0;right:0;bottom:0;top:calc(92px + env(safe-area-inset-top,0px));border-radius:28px 28px 0 0;color:#fff;transform:translateY(102%);transition:transform .46s cubic-bezier(.16,1,.3,1);display:flex;flex-direction:column;overflow:hidden;
  background:radial-gradient(120% 60% at 100% 0,rgba(236,72,153,.35),transparent 60%),radial-gradient(90% 50% at 0 15%,rgba(34,211,238,.28),transparent 60%),linear-gradient(170deg,#1e1b4b,#312e81 48%,#4c1d95);box-shadow:0 -20px 60px rgba(8,10,35,.45)}
#kmSheet.show .kmsh{transform:none}
#kmSheet .kmsh.km-drag{transition:none}
#kmSheet .kmhd{flex:none;padding:8px 16px 10px;touch-action:none}
#kmSheet .kmhd .kmHandle{background:transparent;position:static;height:20px}
#kmSheet .kmhd .kmHandle i{background:rgba(255,255,255,.35)}
#kmSheet .kmwho{display:flex;align-items:center;gap:12px}
#kmSheet .kmwho img{width:46px;height:46px;border-radius:14px;background:#fff;padding:3px;object-fit:contain;box-shadow:0 6px 16px rgba(0,0,0,.25)}
#kmSheet .kmwho .kmt{flex:1;min-width:0}
#kmSheet .kmwho .kmt b{display:block;font:800 19px/1.15 Lexend,system-ui;letter-spacing:-.2px}
#kmSheet .kmwho .kmt b em{font-style:normal;background:linear-gradient(90deg,#67e8f9,#c4b5fd,#f9a8d4);-webkit-background-clip:text;background-clip:text;color:transparent}
#kmSheet .kmwho .kmt small{display:block;font:600 12px/1.3 system-ui;color:#c7d2fe;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#kmSheet .kmx{flex:none;width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font:700 18px system-ui;cursor:pointer}
#kmSheet .kmsq{margin-top:12px;position:relative}
#kmSheet .kmsq .gsearch{margin:0!important;display:block!important}
#kmSheet .kmsq .gsearch input{height:48px;border-radius:16px!important;padding:0 16px 0 44px!important;font-size:16px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") 14px center/20px no-repeat!important;box-shadow:0 10px 26px rgba(0,0,0,.25)}
#kmSheet:not(.kmq) #gqList{display:none!important}
#kmSheet .kmsq #gqList{position:static!important;right:auto!important;margin-top:8px;max-height:none!important;border-radius:18px!important}
#kmSheet .kmbd{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:4px 14px calc(24px + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch}
#kmSheet h4{margin:16px 4px 10px;font:800 12px/1 system-ui;letter-spacing:1.4px;text-transform:uppercase;color:#a5b4fc;display:flex;align-items:center;gap:8px}
#kmSheet h4::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,rgba(165,180,252,.4),transparent)}
#kmSheet .kmgr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 6px}
#kmSheet .kmtl{border:0;background:transparent;color:#fff;display:flex;flex-direction:column;align-items:center;gap:7px;padding:4px 0;cursor:pointer;font:600 11.5px/1.2 Lexend,system-ui;text-align:center;animation:kmPop .5s cubic-bezier(.3,1.4,.5,1) both;animation-delay:var(--d,0s);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;min-width:0}
#kmSheet .kmtl .kmic{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;color:#fff;background:var(--c,#4f46e5);box-shadow:0 10px 20px -8px var(--c,#4f46e5),inset 0 1px 0 rgba(255,255,255,.35),inset 0 -8px 16px rgba(0,0,0,.12);position:relative;overflow:hidden;transition:transform .2s}
#kmSheet .kmtl .kmic::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.45) 50%,transparent 70%);transform:translateX(-120%);animation:kmShine 5s ease-in-out infinite;animation-delay:var(--d2,0s)}
#kmSheet .kmtl .kmic svg{width:26px;height:26px;position:relative;z-index:1}
#kmSheet .kmtl span.kmn{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;padding:0 2px;text-shadow:0 1px 2px rgba(0,0,0,.25)}
#kmSheet .kmtl:active .kmic{transform:scale(.86)}
#kmSheet .kmtl.km-press .kmic{animation:kmWig .45s ease-in-out infinite}
#kmSheet .kmtl.kmcur .kmic{outline:3px solid #fde68a;outline-offset:2px}
#kmSheet .kmrc{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 6px;-webkit-overflow-scrolling:touch}
#kmSheet .kmrc::-webkit-scrollbar{display:none}
#kmSheet .kmrc .kmtl{flex:none;width:72px}
#kmSheet .kmset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#kmSheet .kmset button{border:0;border-radius:16px;padding:12px;background:rgba(255,255,255,.1);color:#fff;font:700 13.5px/1.25 Lexend,system-ui;text-align:left;cursor:pointer;display:flex;align-items:center;gap:10px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);min-width:0}
#kmSheet .kmset button i{font-style:normal;font-size:20px;flex:none}
#kmSheet .kmset button small{display:block;font:600 11px/1.2 system-ui;color:#c7d2fe;margin-top:2px}
#kmSheet .kmset button.kmon{background:linear-gradient(135deg,rgba(99,102,241,.55),rgba(168,85,247,.45))}
#kmSheet .kmset button:active{transform:scale(.97)}
#kmSheet .kmft{margin:22px 0 4px;text-align:center;font:800 11px/1.4 system-ui;letter-spacing:1px;color:#a5b4fc}
#kmSheet .kmft em{font-style:normal;color:#fde68a}
#kmSheet.kmq .kmbd .kmgr,#kmSheet.kmq .kmbd h4,#kmSheet.kmq .kmbd .kmrc,#kmSheet.kmq .kmbd .kmset,#kmSheet.kmq .kmbd .kmft{display:none}
@keyframes kmPop{from{opacity:0;transform:translateY(14px) scale(.8)}}
@keyframes kmShine{0%,70%{transform:translateX(-120%)}85%,100%{transform:translateX(120%)}}

/* small question pop-up (long-press) */
html.kphone #kmAsk.open{display:block;position:fixed;left:12px;right:12px;bottom:calc(var(--km-bot) + 12px);z-index:96;background:#fff;color:#1e1b4b;border-radius:22px;padding:14px;box-shadow:0 20px 50px rgba(10,12,40,.35);animation:kmUp .38s cubic-bezier(.16,1,.3,1);font:600 14.5px/1.4 Lexend,system-ui}
#kmAsk b{font-weight:800}
#kmAsk .kmbb{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#kmAsk .kmbb button{flex:1 1 40%;border:0;border-radius:14px;padding:11px 10px;font:700 14px Lexend,system-ui;background:#eef0ff;color:#312e81;cursor:pointer}
#kmAsk .kmbb button.kmp{background:linear-gradient(135deg,#4f46e5,#9333ea);color:#fff}

/* gestures help */
html.kphone #kmHelp.open{display:grid;position:fixed;inset:0;z-index:97;place-items:end center;background:rgba(10,12,40,.55);}
#kmHelp .kmcard{width:100%;max-height:88dvh;overflow:auto;background:#fff;border-radius:28px 28px 0 0;padding:6px 18px calc(18px + env(safe-area-inset-bottom,0px));animation:kmUp .45s cubic-bezier(.16,1,.3,1);color:#1e1b4b}
#kmHelp h3{margin:6px 0 4px;font:800 21px/1.2 Lexend,system-ui}
#kmHelp p.kms{margin:0 0 12px;color:#5b6178;font-size:14px}
#kmHelp .kmg{display:flex;gap:14px;align-items:center;padding:11px 0;border-top:1px solid #eef0f7}
#kmHelp .kmg .kma{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:24px;background:linear-gradient(135deg,#eef2ff,#fae8ff);position:relative;overflow:hidden}
#kmHelp .kmg .kma i{position:absolute;width:12px;height:12px;border-radius:50%;background:#6366f1;box-shadow:0 0 0 4px rgba(99,102,241,.25)}
#kmHelp .kmg .kma i.kmr{animation:kmHr 1.6s ease-in-out infinite}#kmHelp .kmg .kma i.kmd{animation:kmHd 1.6s ease-in-out infinite}#kmHelp .kmg .kma i.kmh{animation:kmHh 1.6s ease-in-out infinite}#kmHelp .kmg .kma i.kml{animation:kmHl 1.6s ease-in-out infinite}
#kmHelp .kmg b{display:block;font:800 15px/1.25 Lexend,system-ui}
#kmHelp .kmg span{display:block;font-size:13px;color:#5b6178;margin-top:2px}
#kmHelp .kmok{width:100%;margin-top:14px;border:0;border-radius:16px;padding:14px;font:800 16px Lexend,system-ui;color:#fff;background:linear-gradient(135deg,#4f46e5,#9333ea,#db2777);box-shadow:0 12px 26px -8px rgba(79,70,229,.7);cursor:pointer}
#kmHelp .kmhft{margin-top:12px;text-align:center;font:800 10.5px system-ui;letter-spacing:1px;color:#8a90b0}
@keyframes kmHr{0%{left:6px;top:20px;opacity:0}20%{opacity:1}80%{left:34px;top:20px;opacity:1}100%{left:34px;opacity:0}}
@keyframes kmHd{0%{top:4px;left:20px;opacity:0}20%{opacity:1}80%{top:32px;left:20px;opacity:1}100%{top:32px;opacity:0}}
@keyframes kmHl{0%{left:34px;top:20px;opacity:0}20%{opacity:1}80%{left:6px;top:20px;opacity:1}100%{left:6px;opacity:0}}
@keyframes kmHh{0%,100%{left:20px;top:20px;transform:scale(1)}50%{transform:scale(1.7);box-shadow:0 0 0 10px rgba(99,102,241,.15)}}

/* PC view chosen on a phone: one small button back to the phone view */
#kmBackPill{position:fixed;right:12px;bottom:12px;z-index:99990;border:0;border-radius:999px;padding:12px 16px;font:800 15px system-ui;color:#fff;background:linear-gradient(135deg,#4f46e5,#9333ea);box-shadow:0 10px 26px rgba(79,70,229,.5)}
html.km-pcview #kmBackPill{display:block}

@media (prefers-reduced-motion:reduce){
  html.kphone *,html.kphone *::before,html.kphone *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
@media print{#kmNav,#kmSheet,#kmPull,#kmAsk,#kmHelp,#kmBackPill,.km-tap,.km-edge{display:none!important}}

/* entrance display on a phone: the name stays on one line */
@media (max-width:600px){body #kfxIntro .t{font-size:min(42px,4.9vw);margin-top:18px;white-space:nowrap}body #kfxIntro img{height:132px}body #kfxIntro .b{font-size:13px}body #kfxIntro .g{font-size:10.5px;letter-spacing:.22em;text-align:center;padding:0 10px}}


/* =====================================================================================================
   v15.14.0 — PHONE POLISH (from the Director's phone screenshots)
   ===================================================================================================== */

/* ---------- top bar: a brand strip on top (the school badge always sits on a clean white strip, never over the page),
              the buttons in a row under it. While you scroll down only the buttons slide away. ---------- */
html.kphone{--km-strip:38px;--km-top:52px}
html.kphone .shell{padding-top:var(--km-strip);box-sizing:border-box}                      /* the page starts under the brand strip — nothing scrolls behind the badge */
html.kphone #kbar{height:var(--km-top);padding:0 4px;gap:0;justify-content:space-around;align-items:center;background:none!important;border:0!important;box-shadow:none!important;transform:none!important;-webkit-backdrop-filter:none;backdrop-filter:none}
html.kphone #kbar::before{content:"";position:fixed;left:0;right:0;top:0;height:var(--km-strip);z-index:-1;background:#fff;border-bottom:1px solid rgba(99,102,241,.14)}
html.kphone #kbar::after{content:"";position:absolute;inset:0;z-index:-2;background:rgba(255,255,255,.97);border-bottom:1px solid rgba(99,102,241,.13);box-shadow:0 6px 18px rgba(30,27,75,.07);transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .25s}
html.kphone #kbar .ktitle{position:fixed;left:12px;top:0;height:var(--km-strip);right:216px;display:flex;align-items:center;flex:none;padding:0;font:800 15px/1.1 Lexend,system-ui,sans-serif;letter-spacing:-.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.kphone #kbar .ktitle small{display:none}
html.kphone #kbar button{height:48px;min-width:56px;transition:background .15s,transform .28s cubic-bezier(.2,.8,.2,1),opacity .22s}
html.kphone.km-hidebar #kbar{pointer-events:none}
html.kphone.km-hidebar #kbar button{transform:translateY(-58px);opacity:0}
html.kphone.km-hidebar #kbar::after{transform:translateY(-100%);opacity:0}
html.kphone.km-scrolled #kbar::before{box-shadow:0 4px 14px rgba(30,27,75,.10)}
html.kphone #kmPull{top:var(--km-strip)}
@media (max-width:359px){html.kphone #kbar .ktitle{font-size:13px;right:210px;left:8px}}

/* the "go up" button: small, and only while the bars are on the screen */
html.kphone #toTop{width:40px!important;height:40px!important;right:10px!important;opacity:.9;transition:opacity .2s,transform .2s}
html.kphone.km-hidebar #toTop{opacity:0!important;pointer-events:none;transform:translateY(20px)}

/* ---------- numbers at the top of a page (appeared · average · top score …) ---------- */
html.kphone .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html.kphone .kpi{padding:10px 10px;gap:9px;min-width:0;border-radius:16px}
html.kphone .kpi .ic{width:36px;height:36px;border-radius:11px;font-size:17px}
html.kphone .kpi>div{min-width:0}
html.kphone .kpi b{font-size:clamp(17px,5.3vw,22px);white-space:nowrap;letter-spacing:-.3px}
html.kphone .kpi span:not(.ic){display:block;font-size:11.5px;line-height:1.25;margin-top:3px;overflow-wrap:anywhere}

/* ---------- EXAM RESULTS (view only) — everything fits the phone ---------- */
html.kphone .rspage .topbar{display:block;position:relative}
html.kphone .rspage .topbar>.row{position:absolute;right:0;top:0;margin:0}
html.kphone .rspage .topbar h1{font-size:21px;line-height:1.2;overflow-wrap:anywhere}
html.kphone .rspage .topbar p{font-size:13px;line-height:1.5}
html.kphone .rs-vo{display:inline-block;margin:4px 0 0;white-space:nowrap}
/* podium: three equal places, the FACE of each student, the full name under the photo */
html.kphone .rs-hero{display:block;padding:12px 10px 12px;border-radius:22px}
html.kphone .rs-hero .rs-pod{display:flex;align-items:flex-end;gap:7px;min-width:0;width:100%}
html.kphone .rs-hero .rs-pd,html.kphone .rs-hero .rs-pd.p1{width:auto;flex:1 1 0;min-width:0;gap:3px}
html.kphone .rs-hero .rs-pph2,html.kphone .rs-hero .rs-pd.p1 .rs-pph2{width:100%;max-width:none;height:auto;aspect-ratio:auto;display:block;border-width:3px;border-radius:14px}
html.kphone .rs-hero .rs-pph2>span{position:static;display:grid;place-items:center;aspect-ratio:1/1.08;font-size:30px}
html.kphone .rs-hero .rs-pph2 img,html.kphone .rs-hero .rs-pph2.cut img{position:static;inset:auto;display:block;width:100%;height:auto;aspect-ratio:1/1.08;object-fit:cover;object-position:50% 6%}
html.kphone .rs-hero .rs-pname,html.kphone .rs-hero .rs-pd.p1 .rs-pname{font-size:10.5px;line-height:1.18;letter-spacing:0;padding:5px 3px 6px;overflow-wrap:anywhere;border-top-width:2px}
html.kphone .rs-hero .rs-pd small{font-size:11.5px}
html.kphone .rs-hero .rs-pm{font-size:19px;white-space:nowrap}
html.kphone .rs-hero .rs-pm small{font-size:11px}
html.kphone .rs-hero .rs-pd.p1 .rs-step{height:54px}html.kphone .rs-hero .rs-pd.p2 .rs-step{height:40px}html.kphone .rs-hero .rs-pd.p3 .rs-step{height:30px}
html.kphone .rs-hero .rs-step{font-size:21px;border-radius:10px 10px 0 0}
/* batch boxes: three in a row, all the same size */
html.kphone .rs-hero .rs-bd{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;margin-top:12px}
html.kphone .rs-hero .rs-bdi{min-width:0;padding:8px 2px 7px;border-radius:12px;gap:1px}
html.kphone .rs-hero .rs-bdi .badge{max-width:100%;font-size:10.5px;padding:2px 7px 2px 3px;white-space:nowrap;overflow:hidden}
html.kphone .rs-hero .rs-bdi b{font-size:20px;line-height:1.15}
html.kphone .rs-hero .rs-bdi small{font-size:11px}
/* the three tabs: equal boxes, words wrap */
html.kphone .tabs.rs-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;overflow:visible;-webkit-mask:none;mask:none;width:100%;box-sizing:border-box}
html.kphone .tabs.rs-tabs button{white-space:normal;font-size:12.5px;line-height:1.2;padding:8px 3px;min-height:46px;text-align:center;overflow-wrap:anywhere}
html.kphone .rs-tx{display:none}
/* filters above the cards */
html.kphone .rs-ctl{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
html.kphone .rs-ctl .rs-pq{flex:1 1 100%;justify-content:space-between;font-size:12.5px}
html.kphone .rs-ctl .rs-pq select{max-width:56%}
html.kphone .rs-ctl [data-rscls]{flex:0 0 auto;padding:6px 12px!important;min-height:36px;font-size:13px}
html.kphone .rs-ctl #rsCq{flex:1 1 100%;order:5;min-width:0}
html.kphone .rs-ctl #rsSort{flex:1 1 0;order:6;min-width:0}
html.kphone .rs-ctl small.hint{order:7;white-space:nowrap}
/* student result card */
html.kphone .sc-grid{grid-template-columns:minmax(0,1fr);gap:10px}
html.kphone .sc{grid-template-columns:minmax(58px,auto) minmax(74px,26%) minmax(0,1fr);grid-template-rows:auto auto auto;gap:6px;padding:8px}
html.kphone .sc-left{gap:8px;min-width:0}
html.kphone .sc-box{width:auto;min-width:56px;padding:4px 5px;box-sizing:border-box}
html.kphone .sc-box span{font-size:15px}html.kphone .sc-box span.sm{font-size:13px}html.kphone .sc-box small{font-size:10px}
html.kphone .sc-ph{aspect-ratio:4/5;align-self:center;width:100%}
html.kphone .sc-ph img{width:100%;height:100%;object-fit:cover;object-position:50% 10%}
html.kphone .sc-ph.cut img{object-fit:cover;object-position:50% 0;height:calc(100% - 9px)}
html.kphone .sc-st{padding:6px 8px 5px;min-width:0}
html.kphone .sc .subj,html.kphone .sc.sb5 .subj,html.kphone .sc.sb6 .subj{padding:2px 0;border:0;background:none;border-radius:0;font-size:12.5px;line-height:1.3;gap:4px;align-items:center}
html.kphone .sc .subj span:first-child{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;min-width:0}
html.kphone .sc .subj span:last-child{white-space:nowrap}
html.kphone .sc .subj b{font:inherit;color:inherit}
html.kphone .sc .dot{width:8px;height:8px;margin-right:4px}
html.kphone .sc .sneg{font-size:10.5px;padding:0 3px;flex:none}
html.kphone .sc-neg{font-size:12px;padding:4px 8px}
html.kphone .sc-pred,html.kphone .sc-pred.col{font-size:11.5px;overflow-wrap:anywhere}
html.kphone .sc-name,html.kphone .sc-name.long,html.kphone .sc-name.xlong{white-space:normal;text-align:center;line-height:1.15;font-size:13px;padding:6px 6px;min-height:30px;letter-spacing:.2px;overflow-wrap:anywhere}
html.kphone .sc-class{font-size:10px}

/* ---------- Student Connect: today's students — one below the other; Mentorship desk — swipe left / right ---------- */
html.kphone .cside{grid-template-columns:minmax(0,1fr)!important;gap:12px}
html.kphone .desk{display:flex!important;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:2px 2px 10px;margin:0 -2px;scrollbar-width:none}
html.kphone .desk::-webkit-scrollbar{display:none}
html.kphone .desk>.dcol{flex:0 0 88%;min-width:0;scroll-snap-align:center;--dfs:11.5px}
html.kphone .desk>.dcol:only-child{flex-basis:100%}
html.kphone .dstick{position:static!important;box-shadow:none;margin:0;padding:0}
html.kphone .dtop{gap:10px}
html.kphone .dq{padding:5px 5px}
html.kphone .dq b{white-space:normal;overflow:visible;text-overflow:clip;font-size:15px;line-height:1.15;overflow-wrap:anywhere}
html.kphone .dq small{font-size:10.5px;line-height:1.25;overflow-wrap:anywhere}
html.kphone .dstd{white-space:normal;line-height:1.2}
html.kphone .ccard .chead{align-items:flex-start;flex-wrap:wrap}
html.kphone .ccard .chead>div{min-width:150px}

html.kphone .rspage .topbar>.row{left:auto;width:auto;flex:none}
html.kphone .rspage .topbar>.row .btn{padding:7px 12px;min-height:36px;font-size:13px}
html.kphone .sc-st{padding-top:17px}

html.kphone .sc-ph,html.kphone .sc-ph.cut{position:relative;overflow:hidden}
html.kphone .sc-ph img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:50% 10%}
html.kphone .sc-ph.cut img{position:absolute;height:calc(100% - 9px);object-fit:cover;object-position:50% 0}

html.kphone .sc .subj span:first-child{display:flex;align-items:center;gap:0}
html.kphone .sc .dot{flex:none}
/* narrow phones: rank and total in one strip on top, then photo + subjects — nothing is squeezed */
@media (max-width:384px){
html.kphone .sc{grid-template-columns:minmax(82px,29%) minmax(0,1fr);grid-template-rows:auto auto auto auto}
html.kphone .sc-left{grid-row:1;grid-column:1/-1;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;padding:8px 50px 0 2px}
html.kphone .sc-rank{width:38px;height:38px;font-size:16px;flex:none}
html.kphone .sc-rank .crown{width:20px;height:13px;top:-10px}
html.kphone .sc-box{display:flex;align-items:baseline;gap:7px;padding:4px 10px;min-width:0;width:auto}
html.kphone .sc-box b{display:inline;font-size:11.5px}
html.kphone .sc-box span,html.kphone .sc-box span.sm{display:inline;font-size:16px}
html.kphone .sc-ph{grid-row:2;grid-column:1}
html.kphone .sc-st{grid-row:2;grid-column:2;padding-top:7px}
html.kphone .sc-neg{grid-row:3}
html.kphone .sc-name{grid-row:4}
}

/* merit list / top-10 on the results screen: three numbers in a row, so a student is one short card */
html.kphone .rspage table.kmc tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px;padding:11px 13px!important}
html.kphone .rspage table.kmc td.kmf{grid-column:1/-1}
html.kphone .rspage table.kmc td.num{font-weight:800;font-size:15px}

html.kphone .ccard .row{flex-wrap:wrap}
html.kphone .ccard .row input{flex:1 1 100%;min-width:0}

html.kphone .find{position:static}

/* Student Connect tabs: three equal boxes, the words wrap (nothing is cut) */
html.kphone .tabs.meettabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;overflow:visible;-webkit-mask:none;mask:none;width:100%;box-sizing:border-box}
html.kphone .tabs.meettabs button{white-space:normal;font-size:12.5px;line-height:1.2;padding:8px 3px;min-height:46px;text-align:center;overflow-wrap:anywhere}

html.kphone .li .name,html.kphone .gal .card .nm{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
