/* KAVIR V33.2 - premium dark, resilient motion, responsive layout */
@font-face{font-family:Pinar;src:url('./assets/fonts/Pinar-Light.woff2') format('woff2');font-weight:300;font-display:swap}
@font-face{font-family:Pinar;src:url('./assets/fonts/Pinar-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Pinar;src:url('./assets/fonts/Pinar-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:Pinar;src:url('./assets/fonts/Pinar-SemiBold.woff2') format('woff2');font-weight:600;font-display:swap}

:root{
  color-scheme:dark;
  --kv33-bg:#111214;
  --kv33-surface:#1b1c21;
  --kv33-glass:rgba(31,30,38,.72);
  --kv33-line:rgba(255,255,255,.10);
  --kv33-text:#f5f1f8;
  --kv33-muted:#b8b1c1;
  --kv33-purple:#8064ee;
  --kv33-orange:#f28b42;
}
html,html[data-theme="light"],html[data-theme="dark"]{
  color-scheme:dark!important;
  background:var(--kv33-bg);
  scroll-behavior:smooth;
  scroll-padding-top:105px;
}
html[data-theme="light"]{color-scheme:dark!important}
body{
  width:100%;
  max-width:100%;
  margin:0;
  overflow-x:clip;
  background:var(--kv33-bg)!important;
  color:var(--kv33-text);
  font-family:Pinar,Tahoma,sans-serif!important;
}
body *{font-family:Pinar,Tahoma,sans-serif!important}
button,input,select,textarea{font-family:Pinar,Tahoma,sans-serif!important}
img,svg,video,canvas{max-width:100%}
button,a{-webkit-tap-highlight-color:transparent}
.theme-toggle{display:none!important}
.hidden{display:none!important}
.wrap{width:100%;max-width:1240px;margin-inline:auto;padding-inline:clamp(16px,2.5vw,28px)}
.topline{background:#17171c!important;color:#d8d1e0!important}
.pulse-dot{background:#f0a36c!important;box-shadow:0 0 0 5px rgba(242,139,66,.12)!important}

/* Header: a single glass surface visually connected to the hero */
.site-header{
  position:sticky;top:0;z-index:100;height:82px;
  background:transparent!important;border:0!important;
  backdrop-filter:none!important;padding:8px 0 0!important;
}
.header-inner{
  width:calc(100% - 36px);max-width:1240px;height:68px;
  margin-inline:auto;padding-inline:clamp(14px,2vw,26px);
  display:flex;align-items:center;gap:clamp(10px,2vw,24px);
  border:1px solid rgba(255,255,255,.09);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(36,35,43,.88),rgba(21,21,26,.84))!important;
  backdrop-filter:blur(24px) saturate(145%);
  -webkit-backdrop-filter:blur(24px) saturate(145%);
  box-shadow:0 14px 42px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.05);
}
.brand{flex-shrink:0;min-width:0}
.brand img,.kv-v11-logo-pair img{max-width:138px;height:54px;width:auto;object-fit:contain}
.main-nav{min-width:0;gap:clamp(10px,1.5vw,22px);margin-inline:auto}
.main-nav a{font-size:12px;color:#c5bfcc;white-space:nowrap}
.main-nav a:hover,.main-nav a.active{color:#ffb77e}
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.header-actions .btn{font-size:12px}
.mobile-menu{display:none!important}

/* Fail-open reveal: content remains visible even if JS/IntersectionObserver fails.
   Motion is CSS-driven and does not gate the visibility of the page. */
.reveal,.reveal.visible{
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
  animation:kv33FadeUp .68s cubic-bezier(.2,.75,.25,1) both;
}
.reveal:nth-child(2){animation-delay:.07s}
.reveal:nth-child(3){animation-delay:.14s}
.reveal:nth-child(4){animation-delay:.21s}
@keyframes kv33FadeUp{
  from{opacity:.35;transform:translate3d(0,14px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}

/* Cinematic hero */
.hero{
  width:100%;max-width:none;
  min-height:650px;
  margin-top:-82px;
  padding-top:142px;padding-bottom:70px;
  padding-inline:max(18px,calc((100% - 1184px)/2));
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  align-items:center;gap:clamp(22px,4vw,58px);
  position:relative;isolation:isolate;overflow:hidden;
  background:
    radial-gradient(ellipse at 82% 25%,rgba(242,139,66,.16),transparent 28%),
    radial-gradient(ellipse at 16% 12%,rgba(126,96,229,.20),transparent 32%),
    linear-gradient(180deg,#141519 0%,#19191f 56%,#111214 100%)!important;
  border-bottom:1px solid rgba(255,255,255,.04);
}
.hero:before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(circle at 78% 42%,rgba(242,139,66,.11),transparent 31%),
    radial-gradient(circle at 25% 70%,rgba(126,96,229,.09),transparent 35%);
  animation:kv33Ambient 14s ease-in-out infinite alternate;
}
@keyframes kv33Ambient{from{transform:scale(1);opacity:.55}to{transform:scale(1.08);opacity:1}}
.hero-copy,.hero-stage{min-width:0;position:relative;z-index:1}
.hero-copy{max-width:650px}
.hero .eyebrow{color:#c5a9ff}
.hero .eyebrow-chip{background:rgba(126,100,238,.18);color:#e0d4ff;border:1px solid rgba(126,100,238,.24)}
.hero h1{font-size:clamp(38px,5vw,70px);line-height:1.42;letter-spacing:-.8px;color:#fff;font-weight:600}
.hero h1 em{color:#c6aaff}
.hero-lead{max-width:570px;color:#d0c9d8;font-size:clamp(13px,1.15vw,15px);line-height:2.15}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-actions .btn{min-height:48px}
.hero-proof{color:#f4effa}
.hero-proof small{color:#bdb5c8}
.hero-stage{height:clamp(390px,43vw,520px);max-width:560px;width:100%;justify-self:center}
.hero-portrait{
  width:min(365px,72%);height:min(475px,94%);
  border:6px solid rgba(255,255,255,.12);
  border-radius:190px 190px 28px 28px;
  background:#25242b;box-shadow:0 35px 90px rgba(0,0,0,.42);
}
.hero-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.portrait-shade{width:min(365px,72%);height:min(475px,94%);border-radius:190px 190px 24px 24px}
.stage-orbit{border-color:rgba(171,145,245,.23)}
.founder-chip{background:rgba(25,23,32,.82);border:1px solid rgba(255,255,255,.13);backdrop-filter:blur(20px)}
.floating-note{background:rgba(35,32,44,.68);color:#f6f1fb;border-color:rgba(255,255,255,.12);backdrop-filter:blur(20px)}
.floating-note small{color:#c6bdcf}
.note-top{left:0}
.note-bottom{right:0}

/* Scrolling orange-dot strip */
.trust-strip{
  position:relative;z-index:2;
  background:rgba(25,24,30,.88)!important;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter:blur(16px);
}
.trust-inner{display:flex;align-items:center;justify-content:space-around;gap:18px;padding-block:18px;color:#d0c8d9;font-size:12px}
.trust-inner span{white-space:nowrap;animation:kv33TextFloat 5s ease-in-out infinite}
.trust-inner span:nth-of-type(2){animation-delay:.6s}
.trust-inner span:nth-of-type(3){animation-delay:1.2s}
.trust-inner span:nth-of-type(4){animation-delay:1.8s}
.trust-inner i{
  width:7px;height:7px;flex:0 0 7px;border-radius:50%;
  background:linear-gradient(180deg,#ffc18c,#f28b42);
  box-shadow:0 0 0 0 rgba(242,139,66,.35);
  animation:kv33DotPulse 1.8s ease-out infinite;
}
@keyframes kv33DotPulse{0%{box-shadow:0 0 0 0 rgba(242,139,66,.38)}75%{box-shadow:0 0 0 8px rgba(242,139,66,0)}100%{box-shadow:0 0 0 0 rgba(242,139,66,0)}}
@keyframes kv33TextFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}

/* Sections and cards */
.section{padding-block:clamp(58px,7vw,100px)}
.section-head{gap:24px;margin-bottom:clamp(22px,3vw,36px)}
.section-head h2{color:#f7f3fa;font-weight:600;font-size:clamp(28px,3.5vw,46px);line-height:1.55}
.section-head h2 em{color:#c4a6ff}
.section-head p{color:#bcb4c5}
.service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.service-card{
  min-width:0;min-height:250px;padding:clamp(16px,2vw,24px);
  background:linear-gradient(150deg,rgba(42,39,51,.82),rgba(26,25,31,.88))!important;
  border:1px solid rgba(255,255,255,.09)!important;
  color:#f5eff9;backdrop-filter:blur(18px);
}
.service-card p{color:#c1b9c9;min-height:0}
.service-card h3{color:#fff}
.service-card small{color:#aaa1b3}
.service-card>b{color:#d0baff}
.exam-section{
  padding-block:clamp(56px,7vw,88px);
  background:
    radial-gradient(circle at 85% 20%,rgba(132,100,236,.18),transparent 30%),
    radial-gradient(circle at 12% 85%,rgba(242,139,66,.10),transparent 28%),
    linear-gradient(120deg,#1b1a21,#131418 62%,#211b1a)!important;
  color:#fff;overflow:hidden;
}
.exam-layout{
  width:100%;max-width:1240px;margin-inline:auto;padding-inline:clamp(16px,2.5vw,28px);
  display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  align-items:center;gap:clamp(24px,5vw,70px);position:relative;
}
.exam-copy,.exam-widget{min-width:0}
.exam-copy h2{font-size:clamp(32px,4vw,54px);line-height:1.5;color:#fff}
.exam-copy h2 em{color:#c8adff}
.exam-copy p{color:#d0c8d9;line-height:2.15}
.exam-widget,.exam-feature-widget{
  transform:none!important;
  width:100%;min-width:0;
  background:linear-gradient(145deg,rgba(43,39,54,.88),rgba(25,24,31,.90))!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 26px 70px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(22px);
}
.exam-feature-head span,.exam-feature-widget h3{color:#fff}
.exam-feature-widget p{color:#c9c1d1}
.exam-feature-pills span{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#e4ddec}
.exam-actions{display:flex;flex-wrap:wrap;gap:10px}

/* Honors, courses, resources, articles and founder sections */
.kv-v11-honor-shell{
  width:100%;padding:clamp(14px,2vw,24px);
  border-radius:28px;border:1px solid rgba(255,255,255,.09);
  background:linear-gradient(150deg,rgba(43,40,51,.78),rgba(24,24,30,.86));
  box-shadow:0 20px 65px rgba(0,0,0,.22);backdrop-filter:blur(18px);
}
.kv-v11-gallery-pill{background:rgba(242,139,66,.13);border:1px solid rgba(242,139,66,.25);color:#ffc18c}
.kv-v11-honor-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(8px,1.4vw,16px);min-height:0}
.kv-v11-honor-card{min-width:0;padding:7px;border-radius:20px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.10);box-shadow:0 12px 30px rgba(0,0,0,.24)}
.kv-v11-honor-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:15px}
.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.course-card{min-width:0}
.handout-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.founder-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(24px,4vw,56px);align-items:center}
.contact-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;min-width:0}
.contact-panel>*{min-width:0}
.footer-inner{width:100%;max-width:1240px;margin-inline:auto;padding-inline:clamp(16px,2.5vw,28px)}
.site-footer{
  background:linear-gradient(180deg,#121318,#0d0e12)!important;
  border-top:1px solid rgba(255,255,255,.07);padding-block:42px 50px;
}
.kv33-footer-inner{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:22px;align-items:center;padding:clamp(18px,3vw,30px);
  border:1px solid rgba(255,255,255,.08);border-radius:28px;
  background:linear-gradient(150deg,rgba(42,39,50,.78),rgba(24,23,29,.88));
  backdrop-filter:blur(20px);
}
.kv33-footer-brand p{color:#bcb4c5;line-height:2}
.kv33-footer-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.kv33-footer-links a{
  padding:10px 14px;border-radius:999px;color:#d5cedd;
  background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);
  transition:background .25s,border-color .25s,transform .25s;
}
.kv33-footer-links a:hover{background:rgba(242,139,66,.12);border-color:rgba(242,139,66,.25);color:#ffd1ad;transform:translateY(-2px)}
.kv-v15-footer-meta{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.07);padding-top:18px;color:#aaa2b4}

/* Mobile app dock */
.kv33-mobile-dock{display:none}
@media(max-width:1100px){
  .main-nav{gap:10px}
  .main-nav a{font-size:11px}
  .header-actions .install-trigger{display:none}
  .hero{grid-template-columns:minmax(0,1fr) minmax(280px,.85fr);gap:24px}
  .hero h1{font-size:clamp(38px,5vw,58px)}
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .header-inner{width:calc(100% - 24px);gap:12px}
  .main-nav{gap:8px}
  .main-nav a{font-size:10px}
  .header-actions .btn{padding:9px 11px}
  .exam-layout{grid-template-columns:1fr;gap:28px}
  .exam-widget{max-width:760px;margin-inline:auto}
  .founder-layout{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  html{scroll-padding-top:78px}
  body{padding-bottom:92px}
  .topline{display:none!important}
  .site-header{height:70px;padding:7px 0 0!important}
  .header-inner{
    width:calc(100% - 22px);height:56px;padding-inline:12px;
    border-radius:19px;justify-content:space-between;
  }
  .brand img,.kv-v11-logo-pair img{max-width:116px;height:46px}
  .main-nav,.header-actions,.mobile-menu{display:none!important}
  .hero{
    margin-top:-70px;padding-top:106px;padding-bottom:42px;
    min-height:0;grid-template-columns:minmax(0,1fr);gap:12px;
    border-radius:0 0 28px 28px;
    padding-inline:clamp(16px,4vw,24px);
  }
  .hero-copy{order:1;width:100%;max-width:none}
  .hero .eyebrow{font-size:9px;margin-bottom:14px;letter-spacing:1.4px}
  .hero h1{font-size:clamp(32px,8.8vw,46px);line-height:1.55;letter-spacing:0;margin-bottom:12px}
  .hero-lead{font-size:13px;line-height:2.05;margin-bottom:18px}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .hero-actions .btn{width:100%;white-space:normal;text-align:center}
  .hero-proof{margin-top:20px}
  .hero-stage{order:2;height:clamp(320px,88vw,390px);max-width:440px;margin:8px auto 0}
  .hero-portrait,.portrait-shade{height:88%;width:min(265px,70%);border-radius:150px 150px 22px 22px}
  .orbit-one{width:min(340px,90vw);height:min(340px,90vw)}
  .orbit-two{width:min(390px,98vw);height:min(390px,98vw)}
  .founder-chip{right:0;bottom:8px;min-width:175px;padding:11px 13px}
  .founder-chip strong{font-size:15px}
  .floating-note{padding:8px 10px;gap:7px}
  .floating-note b{font-size:10px}
  .floating-note small{font-size:9px}
  .note-top{left:0;top:24px}
  .note-bottom{right:0;bottom:68px}
  .trust-inner{justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;gap:14px;padding:14px 18px}
  .trust-inner::-webkit-scrollbar{display:none}
  .trust-inner span{flex:0 0 auto;font-size:11px}
  .trust-inner i{flex:0 0 6px;width:6px;height:6px}
  .section{padding-block:54px}
  .section-head{display:block;margin-bottom:22px}
  .section-head h2{font-size:clamp(26px,7vw,34px);line-height:1.55}
  .section-head p{font-size:12px;line-height:2;margin-top:10px}
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .service-card{min-height:0;padding:15px;border-radius:19px}
  .service-card h3{font-size:15px}
  .service-card p{font-size:10px;line-height:1.9;margin-bottom:12px}
  .service-icon{width:42px;height:42px;margin-bottom:14px}
  .exam-section{padding-block:54px}
  .exam-layout{grid-template-columns:1fr;gap:22px;padding-inline:16px}
  .exam-copy h2{font-size:clamp(30px,8vw,40px)}
  .exam-copy p{font-size:12px}
  .exam-actions{display:grid;grid-template-columns:1fr}
  .exam-actions .btn{width:100%;white-space:normal}
  .exam-widget{padding:16px;border-radius:22px}
  .course-grid,.handout-grid,.article-grid{grid-template-columns:1fr;gap:13px}
  .course-card{min-height:0}
  .founder-layout,.contact-panel{grid-template-columns:1fr;gap:20px}
  .founder-photo{width:100%;max-width:420px;height:340px;margin-inline:auto}
  .contact-panel{padding:18px}
  .kv-v11-honor-shell{padding:12px;border-radius:22px}
  .kv-v11-honor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .kv-v11-honor-card{padding:5px;border-radius:15px}
  .kv-v11-honor-card img{border-radius:11px}
  .kv33-footer-inner{grid-template-columns:1fr;text-align:center;justify-items:center;border-radius:22px;padding:18px}
  .kv33-footer-links{justify-content:center}
  .kv-v15-footer-meta{display:flex;flex-direction:column;gap:8px;align-items:center}
  .site-footer{padding-block:30px 120px}
  .kv33-mobile-dock{
    position:fixed;left:12px;right:12px;bottom:max(9px,env(safe-area-inset-bottom));
    z-index:999;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:center;gap:2px;padding:10px 8px 11px;
    border-radius:25px;direction:ltr;
    background:linear-gradient(180deg,rgba(47,44,57,.92),rgba(22,22,29,.94));
    border:1px solid rgba(255,255,255,.15);
    box-shadow:0 18px 46px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.09);
    backdrop-filter:blur(25px) saturate(150%);-webkit-backdrop-filter:blur(25px) saturate(150%);
  }
  .kv33-dock-item{
    min-width:0;min-height:48px;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:4px;padding:2px 0;
    border:0;background:transparent;color:#d1c9dd;
  }
  .kv33-dock-item svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .kv33-dock-item b{font-size:10px;line-height:1.4;font-weight:500;color:#d1c9dd;white-space:nowrap}
  .kv33-dock-item.active,.kv33-dock-item.active b{color:#bca8ff}
  .kv33-dock-center{position:relative;transform:translateY(-13px);gap:2px}
  .kv33-dock-center svg{
    width:46px;height:46px;padding:12px;border-radius:50%;
    background:linear-gradient(145deg,#9075ff,#694de8);
    color:#fff;box-shadow:0 10px 24px rgba(105,77,232,.42);
    stroke-width:2;
  }
  .kv33-dock-center b{color:#eee8ff}
  .kv33-dock-center.is-panel svg{background:linear-gradient(145deg,#ffb67a,#e77a31)}
  .kv33-dock-center.is-panel b{color:#ffc08e}
  .kv18-auth-modal .kv18-auth-card{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;border-radius:24px!important}
  .install-nudge{left:12px;right:12px;bottom:100px;max-width:none}
}
@media(max-width:420px){
  .hero h1{font-size:clamp(30px,8vw,36px)}
  .hero-stage{height:320px}
  .service-grid{grid-template-columns:1fr}
  .kv33-mobile-dock{left:8px;right:8px;padding-inline:5px}
  .kv33-dock-item b{font-size:9px}
}
@media(min-width:761px) and (max-width:1100px){
  .hero{grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);padding-inline:28px;gap:22px}
  .hero-stage{height:430px}
  .hero-portrait,.portrait-shade{height:400px}
  .exam-layout{grid-template-columns:1fr 1fr;gap:24px}
  .kv-v11-honor-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}


/* ================= KAVIR V33.3 — header, workspace, CRM and OTP polish ================= */

/* Desktop: connect the top information strip and navigation into one continuous surface. */
@media(min-width:761px){
  .topline{
    width:calc(100% - 36px);max-width:1240px;min-height:42px;height:auto;
    margin:12px auto 0;padding:9px clamp(16px,2.5vw,28px);
    display:flex;align-items:center;justify-content:space-between;gap:14px;
    border:1px solid rgba(255,255,255,.09);border-bottom:0;
    border-radius:24px 24px 0 0;
    background:linear-gradient(180deg,rgba(36,35,43,.90),rgba(27,26,32,.88))!important;
    color:#e4ddeb!important;font-size:11px;
  }
  .topline>span:nth-child(2){margin-inline-end:auto}
  .topline .kv-v11-consult-link{
    display:inline-flex;align-items:center;gap:9px;flex:0 0 auto;
    padding:7px 13px;border-radius:999px;
    border:1px solid rgba(242,139,66,.28);
    background:rgba(242,139,66,.10);color:#ffc18c;
  }
  .site-header{
    width:calc(100% - 36px);max-width:1240px;height:68px;
    margin:0 auto;padding:0!important;top:0;
    background:transparent!important;border:0!important;
  }
  .header-inner{
    width:100%;max-width:none;height:68px;margin:0;
    border:1px solid rgba(255,255,255,.09);border-top:0;
    border-radius:0 0 24px 24px;
    background:linear-gradient(180deg,rgba(27,26,32,.88),rgba(21,21,26,.90))!important;
    box-shadow:0 14px 42px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.035);
  }
  .hero{margin-top:-68px;padding-top:140px}
}

/* Mobile public header: logo in its own frame, live consultation CTA, working hamburger. */
.kv33-mobile-consult{display:none}
@media(max-width:760px){
  .site-header{
    width:100%;max-width:none;height:68px;padding:7px 0 0!important;
    background:transparent!important;border:0!important;
    position:sticky;top:0;z-index:100;
  }
  .header-inner{
    width:calc(100% - 22px);height:56px;max-width:none;
    padding:0 8px;gap:7px;justify-content:space-between;
    border:1px solid rgba(255,255,255,.13);border-radius:18px;
    background:linear-gradient(180deg,rgba(43,41,51,.94),rgba(23,23,29,.94))!important;
    box-shadow:0 10px 28px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.06);
  }
  .header-inner>.brand{
    order:1;flex:0 1 auto;min-width:0;height:43px;
    display:flex;align-items:center;justify-content:center;
    padding:3px 8px;border-radius:12px;
    border:1px solid rgba(255,255,255,.13);
    background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
  }
  .header-inner>.brand .kv-v11-logo-pair{
    width:clamp(88px,27vw,112px);height:37px;display:flex;
    align-items:center;justify-content:center;overflow:hidden;
  }
  .header-inner>.brand .kv-v11-logo-pair img{
    width:100%;height:36px;max-width:100%;object-fit:contain;
  }
  .header-inner>.mobile-menu{
    order:2;display:flex!important;flex:0 0 38px;
    width:38px;height:38px;margin:0;padding:8px;
    align-items:center;justify-content:center;flex-direction:column;gap:5px;
    border:1px solid rgba(255,255,255,.14);border-radius:12px;
    background:rgba(255,255,255,.055);position:relative;z-index:3;
  }
  .header-inner>.mobile-menu span{
    display:block;width:19px;height:2px;border-radius:9px;
    background:#f5effa;transition:transform .22s ease,opacity .18s ease;
  }
  .header-inner>.kv33-mobile-consult{
    order:3;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;
    gap:7px;min-width:0;min-height:38px;padding:0 10px;
    border:1px solid rgba(242,139,66,.42);border-radius:12px;
    background:linear-gradient(135deg,#ffad70,#e77b36);
    color:#23160f;font-size:10px;font-weight:800;white-space:nowrap;
    box-shadow:0 7px 18px rgba(231,123,54,.20);
    position:relative;isolation:isolate;overflow:visible;
    animation:kv33ConsultBreathe 3.2s ease-in-out infinite;
  }
  .kv33-mobile-consult b{font-size:14px;line-height:1;transition:transform .22s}
  .kv33-mobile-consult:before{
    content:"";position:absolute;inset:-4px;border-radius:15px;
    border:1px solid rgba(255,177,119,.48);z-index:-1;
    animation:kv33ConsultRing 2.6s ease-out infinite;
  }
  .kv33-mobile-consult:active{transform:scale(.97)}
  .kv33-mobile-consult:active b{transform:translateX(-3px)}
  .main-nav,.main-nav.open{
    display:flex!important;z-index:1201!important;
  }
  .kv-v12-nav-shade{z-index:1200!important}
  .hero{margin-top:-68px;padding-top:108px}
}
@keyframes kv33ConsultBreathe{0%,100%{box-shadow:0 7px 18px rgba(231,123,54,.20)}50%{box-shadow:0 9px 25px rgba(231,123,54,.36)}}
@keyframes kv33ConsultRing{0%{transform:scale(.96);opacity:.85}100%{transform:scale(1.12);opacity:0}}
@media(max-width:370px){
  .header-inner{gap:5px;padding-inline:6px}
  .header-inner>.brand{padding-inline:5px}
  .header-inner>.brand .kv-v11-logo-pair{width:88px}
  .header-inner>.mobile-menu{flex-basis:35px;width:35px;height:36px}
  .header-inner>.kv33-mobile-consult{padding-inline:7px;font-size:9px;gap:4px}
}

/* Workspace top bar: full institute title beside the menu on the right; logo and Home on the left. */
.workspace-top.kv33-workspace-top{
  position:sticky;top:0;z-index:1100;
  width:100%;min-height:76px;height:auto;
  display:flex;align-items:center;justify-content:space-between;
  gap:clamp(10px,2vw,24px);padding:10px clamp(12px,3vw,30px);
  direction:rtl;
  background:linear-gradient(180deg,rgba(29,29,35,.97),rgba(18,19,23,.96))!important;
  border-bottom:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
}
.kv33-panel-head-right,.kv33-panel-head-left{
  display:flex;align-items:center;gap:clamp(8px,1.5vw,16px);
  min-width:0;flex:0 1 auto;
}
.kv33-panel-head-right{direction:rtl}
.kv33-panel-head-left{direction:ltr;justify-content:flex-start}
.workspace-top.kv33-workspace-top .workspace-brand{
  display:block;min-width:0;text-align:right;white-space:normal;
  font-size:clamp(14px,1.35vw,18px);font-weight:800;line-height:1.5;
  color:#f7f2fb;
}
.workspace-top.kv33-workspace-top .workspace-brand small{
  display:block;margin-top:2px;font-size:clamp(10px,1vw,12px);
  line-height:1.55;color:#bdb5c8;font-weight:500;white-space:normal;
}
.kv33-panel-logo{
  display:block;flex:0 0 auto;width:clamp(92px,10vw,132px);height:48px;
  object-fit:contain;object-position:center;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.22));
}
.kv33-panel-home{
  position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;
  gap:5px;min-height:39px;padding:0 12px;border:1px solid rgba(184,161,255,.30);
  border-radius:13px;background:rgba(126,100,238,.12);color:#d9cbff;
  font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;
  transition:transform .22s ease,background .22s ease,border-color .22s ease;
}
.kv33-panel-home:before{
  content:"";position:absolute;inset:-2px;border-radius:15px;padding:1px;
  background:conic-gradient(from 0deg,transparent 0 58%,rgba(193,169,255,.9) 72%,transparent 86% 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
  animation:kv33HomeOrbit 4s linear infinite;pointer-events:none;
}
.kv33-panel-home span{font-size:16px;line-height:1}
.kv33-panel-home:hover{transform:translateY(-2px);background:rgba(126,100,238,.20);border-color:rgba(184,161,255,.52)}
@keyframes kv33HomeOrbit{to{transform:rotate(360deg)}}
.workspace-top.kv33-workspace-top .kv-side-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 42px;width:42px;height:42px;padding:0;
  border:1px solid rgba(255,255,255,.14);border-radius:13px;
  background:rgba(255,255,255,.06);color:#f5eff9;font-size:19px;
}
.workspace-top.kv33-workspace-top .kv-v12-admin-toggle span{display:none}
.workspace-top.kv33-workspace-top .kv-bell{flex:0 0 auto}
body.kv33-in-workspace .kv33-mobile-dock{display:none!important}

/* The drawers and their scrims must cover the mobile dock and never slide underneath it. */
.kv-v12-nav-shade{z-index:1200!important}
.main-nav.open{z-index:1201!important}
#studentScreen .kv-v12-side-shade,#adminScreen .kv-v12-side-shade{z-index:1200!important}
#studentScreen .workspace-side,#studentScreen.sidebar-collapsed .workspace-side,#adminScreen .admin-side{z-index:1201!important}

/* Dark CRM: replace the white fallback surfaces in the CRM hub and its nested controls. */
#admin-crm{color:#f0edf4}
#admin-crm .kv18-crm-hub{
  background:linear-gradient(150deg,rgba(39,38,47,.98),rgba(23,24,29,.98))!important;
  color:#f2eef6!important;border-color:rgba(255,255,255,.10)!important;
  box-shadow:0 18px 55px rgba(0,0,0,.28)!important;
}
#admin-crm .kv18-crm-head h3,
#admin-crm .kv18-book b,
#admin-crm .kv18-tab-pane label,
#admin-crm .kv18-tab-pane summary{color:#f5f0f8!important}
#admin-crm .kv18-crm-head p,
#admin-crm .kv18-tab-pane p,
#admin-crm .kv18-tab-pane td small,
#admin-crm .kv18-book small{color:#bcb4c6!important}
#admin-crm .kv18-crm-tabs{
  background:rgba(9,10,13,.48)!important;border:1px solid rgba(255,255,255,.07);
}
#admin-crm .kv18-crm-tabs button{color:#c9c1d1!important}
#admin-crm .kv18-crm-tabs button.active{
  color:#ffc18c!important;background:linear-gradient(145deg,#38333f,#28262e)!important;
  box-shadow:0 5px 18px rgba(0,0,0,.28)!important;
}
#admin-crm .kv18-book,
#admin-crm .kv18-manual-create,
#admin-crm .kv18-assignment-list{
  background:linear-gradient(145deg,rgba(47,43,54,.86),rgba(29,29,35,.94))!important;
  border-color:rgba(255,255,255,.10)!important;color:#f1edf5!important;
}
#admin-crm .kv18-book button{
  background:rgba(255,255,255,.07)!important;color:#f2edf7!important;
  border-color:rgba(255,255,255,.13)!important;
}
#admin-crm .kv18-row input,
#admin-crm .kv18-row select,
#admin-crm .kv18-tab-pane input,
#admin-crm .kv18-tab-pane select,
#admin-crm .kv18-tab-pane textarea,
#admin-crm .kv18-tab-pane .admin-form input,
#admin-crm .kv18-tab-pane .admin-form select,
#admin-crm .kv18-tab-pane .admin-form textarea{
  color:#f5f0f8!important;background:#292a30!important;
  border-color:rgba(255,255,255,.14)!important;color-scheme:dark;
}
#admin-crm .kv18-tab-pane input::placeholder,
#admin-crm .kv18-row input::placeholder{color:#a9a2b0!important}
#admin-crm .kv18-tab-pane select option{background:#292a30!important;color:#f5f0f8!important}
#admin-crm .kv18-tab-pane .table-wrap{background:#1c1d22!important;border:1px solid rgba(255,255,255,.08)}
#admin-crm .kv18-tab-pane table{background:transparent!important;color:#f0edf4!important}
#admin-crm .kv18-tab-pane th{background:#292a31!important;color:#f5f0f8!important;border-color:rgba(255,255,255,.10)!important}
#admin-crm .kv18-tab-pane td{background:#202126!important;color:#e5dfeb!important;border-color:rgba(255,255,255,.08)!important}
#admin-crm .kv18-pagination{color:#d4cddd}
#admin-crm .kv18-pill{background:rgba(242,139,66,.15)!important;color:#ffc18c!important}
#admin-crm .kv16-crm-intro h2,
#admin-crm .kv16-crm-board-card h3,
#admin-crm .kv16-crm-followups h3{color:#f5f0f8}
#admin-crm .kv16-crm-intro p,
#admin-crm .kv16-crm-board-card p,
#admin-crm .kv16-board-hint{color:#bdb5c8}
#admin-crm .kv16-crm-board-card,
#admin-crm .kv16-crm-followups,
#admin-crm .kv16-crm-create{background:linear-gradient(145deg,#24252b,#1b1c21)!important;border-color:rgba(255,255,255,.09)!important}

/* Small, moving OTP stars; the six input placeholder dots are deliberately reduced. */
#kv18OtpForm{
  position:relative;isolation:isolate;overflow:hidden;
  padding:14px;border-radius:18px;
  background:linear-gradient(145deg,rgba(40,36,51,.55),rgba(24,24,31,.42));
  border:1px solid rgba(255,255,255,.075);
}
#kv18OtpForm:before,#kv18OtpForm:after{
  content:"";position:absolute;inset:-20%;z-index:0;pointer-events:none;
  background:
    radial-gradient(circle at 12% 24%,rgba(218,198,255,.80) 0 1px,transparent 2px),
    radial-gradient(circle at 74% 18%,rgba(255,188,133,.78) 0 1px,transparent 2px),
    radial-gradient(circle at 38% 76%,rgba(218,198,255,.65) 0 1px,transparent 2px),
    radial-gradient(circle at 88% 68%,rgba(255,255,255,.62) 0 1px,transparent 2px),
    radial-gradient(circle at 57% 42%,rgba(218,198,255,.54) 0 1px,transparent 2px);
  background-size:190px 150px;
  animation:kv33OtpStarDrift 16s linear infinite;
}
#kv18OtpForm:after{opacity:.42;transform:scale(1.2);animation-duration:23s;animation-direction:reverse}
#kv18OtpForm>*{position:relative;z-index:1}
.kv33-otp-visual{display:flex;align-items:center;justify-content:center;gap:13px;min-height:23px;margin:7px auto 13px}
.kv33-otp-visual span{
  display:block;flex:0 0 4px;width:4px;height:4px;border-radius:50%;
  background:#e8d9ff;box-shadow:0 0 7px rgba(205,177,255,.85),0 0 13px rgba(205,177,255,.28);
  animation:kv33OtpTwinkle 1.8s ease-in-out infinite;
}
.kv33-otp-visual span:nth-child(2){animation-delay:.18s}
.kv33-otp-visual span:nth-child(3){animation-delay:.36s}
.kv33-otp-visual span:nth-child(4){animation-delay:.54s}
.kv33-otp-visual span:nth-child(5){animation-delay:.72s}
.kv33-otp-visual span:nth-child(6){animation-delay:.90s}
#kv18OtpCode{
  font-size:22px!important;letter-spacing:.34em!important;
  min-height:49px;border-radius:14px;
}
#kv18OtpCode::placeholder{font-size:16px;letter-spacing:.30em;color:#a99dbb;opacity:.85}
#kv18OtpForm.kv33-otp-pending #kv18OtpCode{opacity:.58;filter:saturate(.6)}
#kv18OtpForm.kv33-otp-pending .kv33-otp-visual span{animation-duration:.8s}
.kv33-btn-spinner{
  display:inline-block;width:12px;height:12px;margin-inline-end:6px;
  border:2px solid currentColor;border-left-color:transparent;border-radius:50%;
  vertical-align:-2px;animation:kv33Spin .7s linear infinite;
}
@keyframes kv33Spin{to{transform:rotate(360deg)}}
@keyframes kv33OtpTwinkle{0%,100%{opacity:.38;transform:translateY(1px) scale(.78)}50%{opacity:1;transform:translateY(-3px) scale(1.2)}}
@keyframes kv33OtpStarDrift{from{transform:translate3d(0,0,0)}to{transform:translate3d(-24px,18px,0)}}

/* Compact responsive panel header and menu drawer. */
@media(max-width:760px){
  .workspace-top.kv33-workspace-top{
    min-height:66px;padding:8px 10px;gap:7px;
  }
  .kv33-panel-head-right,.kv33-panel-head-left{gap:7px}
  .workspace-top.kv33-workspace-top .workspace-brand{font-size:13px;line-height:1.4}
  .workspace-top.kv33-workspace-top .workspace-brand small{font-size:9px;margin-top:2px}
  .workspace-top.kv33-workspace-top .kv-side-toggle{width:38px;height:38px;flex-basis:38px;border-radius:11px}
  .kv33-panel-logo{width:76px;height:38px}
  .kv33-panel-home{min-height:35px;padding:0 8px;font-size:10px;border-radius:11px}
  .kv33-panel-home span{font-size:14px}
  .kv33-panel-head-left{gap:6px}
  #studentScreen .kv-v12-side-shade,#adminScreen .kv-v12-side-shade{z-index:1200!important}
  #studentScreen .workspace-side,#studentScreen.sidebar-collapsed .workspace-side,#adminScreen .admin-side{z-index:1201!important}
  .main-nav,.main-nav.open{z-index:1201!important}
  .kv-v12-nav-shade{z-index:1200!important}
  body.kv-v12-drawer-open .workspace-top{z-index:1100}
}
@media(max-width:390px){
  .workspace-top.kv33-workspace-top{padding-inline:7px;gap:4px}
  .kv33-panel-head-right,.kv33-panel-head-left{gap:5px}
  .workspace-top.kv33-workspace-top .workspace-brand{font-size:12px}
  .workspace-top.kv33-workspace-top .workspace-brand small{font-size:8px}
  .kv33-panel-logo{width:65px;height:34px}
  .kv33-panel-home{padding-inline:6px;font-size:9px}
  .workspace-top.kv33-workspace-top .kv-side-toggle{width:35px;height:35px;flex-basis:35px}
}
@media(prefers-reduced-motion:reduce){
  .kv33-mobile-consult,.kv33-mobile-consult:before,.kv33-panel-home:before,
  #kv18OtpForm:before,#kv18OtpForm:after,.kv33-otp-visual span{animation:none!important}
}


/* V33.3.1 — mobile header cleanup and compact animated dock */
@media(max-width:760px){
  .header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:0 9px;
  }
  .header-inner>.mobile-menu{display:none!important}
  .header-inner>.kv33-mobile-consult{
    order:1;
    flex:0 1 auto;
    min-width:122px;
    min-height:40px;
    padding:0 12px;
    border-radius:13px;
    box-shadow:0 8px 22px rgba(231,123,54,.22), inset 0 1px 0 rgba(255,255,255,.24);
  }
  .header-inner>.kv33-mobile-consult span{overflow:hidden;text-overflow:ellipsis}
  .header-inner>.brand{
    order:2;
    margin-inline-start:auto;
    flex:0 0 auto;
    height:44px;
    min-width:110px;
    max-width:128px;
    padding:3px 10px;
  }
  .header-inner>.brand .kv-v11-logo-pair{
    width:100%;
    height:38px;
  }
  .header-inner>.brand .kv-v11-logo-pair img{
    width:100%;
    height:36px;
    object-fit:contain;
    object-position:center;
  }

  .kv33-mobile-dock{
    left:10px;
    right:10px;
    bottom:max(8px,env(safe-area-inset-bottom));
    gap:1px;
    padding:7px 6px 8px;
    border-radius:22px;
    background:linear-gradient(180deg,rgba(44,40,54,.96),rgba(20,20,27,.97));
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 18px 42px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.08);
    overflow:hidden;
  }
  .kv33-mobile-dock::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    pointer-events:none;
    background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.07) 20%,transparent 40%);
    transform:translateX(-140%);
    animation:kv33DockSweep 5.8s linear infinite;
  }
  .kv33-dock-item{
    position:relative;
    min-height:42px;
    gap:2px;
    padding:2px 0;
    border-radius:16px;
    transition:transform .22s ease, color .22s ease, background .22s ease;
  }
  .kv33-dock-item::before{
    content:"";
    position:absolute;
    inset:2px 3px;
    border-radius:13px;
    background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
    opacity:0;
    transform:scale(.9);
    transition:opacity .22s ease, transform .22s ease;
  }
  .kv33-dock-item > *{position:relative;z-index:1}
  .kv33-dock-item svg{width:17px;height:17px}
  .kv33-dock-item b{font-size:9px;letter-spacing:0}
  .kv33-dock-item.active,
  .kv33-dock-item:hover{transform:translateY(-1px);color:#cab8ff}
  .kv33-dock-item.active::before,
  .kv33-dock-item:hover::before{opacity:1;transform:scale(1)}
  .kv33-dock-item.active svg{filter:drop-shadow(0 0 10px rgba(161,133,255,.28))}
  .kv33-dock-center{
    transform:translateY(-10px);
    gap:1px;
  }
  .kv33-dock-center svg{
    width:42px;
    height:42px;
    padding:11px;
    box-shadow:0 10px 22px rgba(105,77,232,.36), 0 0 0 0 rgba(144,117,255,.28);
    animation:kv33DockCenterPulse 2.7s ease-in-out infinite;
  }
  .kv33-dock-center b{font-size:9px}
}
@media(max-width:420px){
  .kv33-mobile-dock{left:8px;right:8px;padding-inline:4px}
  .kv33-dock-item b,.kv33-dock-center b{font-size:8px}
  .header-inner>.kv33-mobile-consult{min-width:116px;padding-inline:10px;font-size:9.5px}
  .header-inner>.brand{min-width:102px;max-width:120px}
}
@keyframes kv33DockSweep{0%{transform:translateX(-140%)}22%,100%{transform:translateX(160%)}}
@keyframes kv33DockCenterPulse{
  0%,100%{transform:translateY(0) scale(1);box-shadow:0 10px 22px rgba(105,77,232,.34), 0 0 0 0 rgba(144,117,255,.22)}
  50%{transform:translateY(-1px) scale(1.05);box-shadow:0 12px 28px rgba(105,77,232,.42), 0 0 0 9px rgba(144,117,255,0)}
}
@media(prefers-reduced-motion:reduce){
  .kv33-mobile-dock::before,.kv33-dock-center svg{animation:none!important}
}


/* KAVIR V33.4.0 — exam UX, OTP polish and mobile login fixes */

/* Exam layout: stable sizing across desktop, tablet and phones. */
#examModal .exam-card{
  box-sizing:border-box;
  width:min(100%,920px);
  max-width:920px;
  max-height:min(94dvh,1000px);
  min-width:0;
  overflow-x:hidden;
}
#examModal .exam-head,
#examModal .exam-meta,
#examModal #questionText,
#examModal #answerOptions,
#examModal .question-controls,
#examModal .exam-subject-nav,
#examModal .exam-result{min-width:0;max-width:100%}
#examModal #questionText{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:normal;
  unicode-bidi:plaintext;
}
#examModal .answer-option{
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
}
#examModal .answer-option span{
  min-width:0;
  flex:1 1 auto;
  overflow-wrap:anywhere;
}
#examModal .question-controls .btn{
  min-width:0;
  white-space:normal;
  line-height:1.55;
}
#examModal #markQuestion:disabled{
  opacity:.42;
  cursor:not-allowed;
  filter:saturate(.5);
}
#examModal .exam-subject-nav .subject-jump{
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
}

/* While an exam is open, remove the panel hamburger from the visual header
   so the candidate sees only essential exam context and controls. */
body.kv-exam-active #studentScreen .kv-side-toggle{display:none!important}

/* Replace the OTP star field/dot row with one restrained cinematic light sweep. */
#kv18OtpForm{
  isolation:isolate;
  overflow:hidden;
  position:relative;
  border:1px solid rgba(196,174,255,.15);
  background:
    radial-gradient(ellipse at 12% 0%,rgba(130,105,235,.16),transparent 48%),
    radial-gradient(ellipse at 95% 100%,rgba(242,139,66,.10),transparent 45%),
    linear-gradient(145deg,rgba(39,36,49,.96),rgba(21,22,28,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 18px 55px rgba(0,0,0,.22);
}
#kv18OtpForm:before{
  content:"";
  position:absolute;
  z-index:0;
  pointer-events:none;
  top:-35%;
  bottom:-35%;
  left:-65%;
  width:48%;
  background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.015) 28%,rgba(213,195,255,.16) 50%,rgba(255,184,133,.08) 60%,transparent 100%);
  filter:blur(7px);
  transform:skewX(-16deg);
  animation:kv34OtpLightSweep 5.8s cubic-bezier(.4,0,.2,1) infinite;
}
#kv18OtpForm:after{
  content:"";
  position:absolute;
  z-index:0;
  pointer-events:none;
  inset:0;
  background:radial-gradient(ellipse at 50% 0%,rgba(166,142,255,.11),transparent 60%);
  opacity:.75;
  animation:kv34OtpAmbient 7s ease-in-out infinite alternate;
}
#kv18OtpForm>*{position:relative;z-index:1}
#kv18OtpForm .kv33-otp-visual{display:none!important}
#kv18OtpCode{
  font-size:22px!important;
  letter-spacing:.34em!important;
  min-height:52px;
  border:1px solid rgba(191,166,255,.24)!important;
  background:rgba(12,13,19,.55)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  transition:border-color .25s,box-shadow .25s,background .25s;
}
#kv18OtpCode:focus{
  border-color:rgba(181,151,255,.72)!important;
  box-shadow:0 0 0 3px rgba(147,117,255,.12),0 0 28px rgba(147,117,255,.12)!important;
  background:rgba(15,15,23,.82)!important;
}
@keyframes kv34OtpLightSweep{
  0%,18%{left:-65%;opacity:0}
  28%{opacity:.9}
  66%{left:125%;opacity:.45}
  78%,100%{left:125%;opacity:0}
}
@keyframes kv34OtpAmbient{
  from{opacity:.35;transform:scale(1)}
  to{opacity:.9;transform:scale(1.035)}
}

/* Mobile exam: edge-to-edge, wrapped content, stable controls and no clipped subject list. */
@media(max-width:760px){
  #examModal.modal{
    padding:0!important;
    display:grid!important;
    place-items:stretch!important;
    overflow:hidden!important;
    overscroll-behavior:contain;
  }
  #examModal .exam-card{
    width:100vw!important;
    max-width:none!important;
    height:100vh!important;
    height:100dvh!important;
    max-height:100vh!important;
    max-height:100dvh!important;
    margin:0!important;
    padding:max(10px,env(safe-area-inset-top)) 13px max(12px,env(safe-area-inset-bottom))!important;
    border:0!important;
    border-radius:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scroll-padding-top:120px;
  }
  #examModal .exam-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto 38px!important;
    gap:7px!important;
    align-items:center!important;
    flex:0 0 auto;
    position:sticky!important;
    top:0;
    z-index:9;
    margin:0 -13px!important;
    padding:calc(8px + env(safe-area-inset-top)) 13px 10px!important;
    background:rgba(27,27,34,.97)!important;
    border-bottom:1px solid rgba(255,255,255,.09);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }
  #examModal .exam-head>div:first-child{
    grid-column:1/-1!important;
    grid-row:1!important;
    min-width:0;
    margin:0!important;
  }
  #examModal .exam-head h2{
    font-size:clamp(14px,4vw,18px)!important;
    line-height:1.5!important;
    overflow-wrap:anywhere;
  }
  #examModal .exam-head-subtitle{
    font-size:9px!important;
    line-height:1.5;
    white-space:normal;
  }
  #examModal .exam-head .timer{
    grid-column:1!important;
    grid-row:2!important;
    justify-self:start!important;
    min-height:39px;
    min-width:64px;
    padding:7px 10px!important;
    font-size:15px!important;
  }
  #examModal .exam-head .kv-end-exam{
    grid-column:2!important;
    grid-row:2!important;
    justify-self:end!important;
    min-height:39px!important;
    padding:8px 9px!important;
    font-size:10px!important;
  }
  #examModal .exam-head .modal-close{
    grid-column:3!important;
    grid-row:2!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    position:static!important;
  }
  #examModal .exam-progress{flex:0 0 auto;height:5px;margin:10px 0!important}
  #examModal .exam-meta{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:space-between;
    gap:5px 10px;
    font-size:10px!important;
    line-height:1.7;
  }
  #examModal #questionText{
    flex:0 0 auto;
    width:100%;
    max-width:100%;
    margin:12px 0 15px!important;
    font-size:clamp(17px,4.4vw,22px)!important;
    line-height:1.85!important;
    text-align:start;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  #examModal .answer-options{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
    width:100%;
    margin:0 0 8px;
  }
  #examModal .answer-option{
    width:100%!important;
    min-height:52px!important;
    padding:11px 12px!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    font-size:clamp(13px,3.5vw,15px)!important;
    line-height:1.75!important;
    transform:none!important;
  }
  #examModal .answer-option span{
    display:block;
    text-align:start;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  #examModal .question-controls{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    margin:14px 0 0!important;
    padding:10px 0 calc(10px + env(safe-area-inset-bottom))!important;
    position:sticky!important;
    bottom:calc(-1 * max(12px,env(safe-area-inset-bottom)));
    z-index:7;
    flex:0 0 auto;
    background:rgba(27,27,34,.97)!important;
    border-top:1px solid rgba(255,255,255,.09);
    backdrop-filter:blur(16px);
  }
  #examModal .question-controls .btn{
    width:100%;
    min-height:46px!important;
    padding:9px 7px!important;
    font-size:11px!important;
    line-height:1.5!important;
  }
  #examModal .question-controls .btn:first-child{grid-column:1!important;grid-row:2!important}
  #examModal .question-controls .btn:nth-child(2){grid-column:2!important;grid-row:2!important}
  #examModal .question-controls .btn:last-child{grid-column:1/-1!important;grid-row:1!important}
  #examModal .exam-subject-nav{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%;
    max-width:100%;
    max-height:min(26dvh,210px);
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:10px 0 4px!important;
    margin-top:8px!important;
    overscroll-behavior:contain;
  }
  #examModal .exam-subject-nav .subject-jump{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:56px!important;
    padding:9px 10px!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
    scroll-snap-align:none;
  }
  #examModal .exam-subject-nav .subject-jump b{font-size:10px;line-height:1.55}
  #examModal .exam-subject-nav .subject-jump small{font-size:8px;line-height:1.5}
  #examModal .exam-result{padding:15px 2px!important;min-width:0}
  #examModal .result-subject-breakdown{grid-template-columns:minmax(0,1fr)!important}
  #examModal .analysis-item,#examModal .analysis-opt,#examModal .answer-explanation{min-width:0;max-width:100%;overflow-wrap:anywhere}
  #examModal .analysis-item p{white-space:pre-wrap;overflow-wrap:anywhere}
}

/* Login modal: prevent mobile browser auto-zoom on focus and preserve touch target. */
@media(max-width:760px){
  #kv33MobileAccountAction{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  #loginModal.modal{padding:12px!important;align-items:center!important;justify-items:center!important}
  #loginModal .modal-card{
    width:min(100%,460px)!important;
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100dvh - 24px)!important;
    overflow-y:auto!important;
    padding:22px 18px!important;
    border-radius:22px!important;
  }
  #loginModal input,#loginModal select,#loginModal textarea{
    font-size:16px!important;
    line-height:1.5!important;
    min-height:48px;
    touch-action:manipulation;
  }
  #loginModal button{touch-action:manipulation}
}
@media(prefers-reduced-motion:reduce){
  #kv18OtpForm:before,#kv18OtpForm:after{animation:none!important}
}


/* KAVIR V33.5.0 — single-scroll exam workspace and integrated analysis header
   Root cause addressed: the previous mobile layout created a scrollable card
   inside an overflow-hidden modal. This revision makes the modal the one
   scroll owner and lets the exam content flow naturally. */

/* One scroll owner on all viewport sizes. */
#examModal.modal{
  position:fixed!important;
  inset:0!important;
  z-index:10000!important;
  display:block!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  padding:clamp(12px,2.2vw,28px)!important;
  scroll-padding-top:96px;
}
#examModal .modal-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:0!important;
}
#examModal .exam-card{
  position:relative!important;
  z-index:1!important;
  width:min(100%,940px)!important;
  max-width:940px!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 auto!important;
  overflow:visible!important;
  overscroll-behavior:visible!important;
  display:block!important;
  box-sizing:border-box!important;
  padding:clamp(16px,2.6vw,30px)!important;
  border:1px solid rgba(255,255,255,.11)!important;
  border-radius:26px!important;
  background:linear-gradient(155deg,rgba(35,34,43,.985),rgba(20,21,27,.99))!important;
  box-shadow:0 28px 90px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.045)!important;
  transform:none!important;
}
#examModal.open .exam-card{transform:none!important}

/* Header remains visually fused with the exam/analysis surface while scrolling. */
#examModal .exam-head{
  position:sticky!important;
  top:0!important;
  z-index:20!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  margin:calc(-1 * clamp(16px,2.6vw,30px)) calc(-1 * clamp(16px,2.6vw,30px)) 14px!important;
  padding:clamp(12px,2vw,18px) clamp(16px,2.6vw,30px)!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.085)!important;
  border-radius:26px 26px 0 0!important;
  background:linear-gradient(180deg,rgba(31,30,39,.985),rgba(27,27,34,.96))!important;
  box-shadow:0 10px 28px rgba(0,0,0,.16)!important;
  backdrop-filter:blur(22px) saturate(140%)!important;
  -webkit-backdrop-filter:blur(22px) saturate(140%)!important;
}
#examModal .exam-head>div:first-child{min-width:0;flex:1 1 220px}
#examModal .exam-head h2{font-size:clamp(16px,2vw,23px)!important;line-height:1.55!important;margin:3px 0!important}
#examModal .exam-head-subtitle{display:block;max-width:100%;font-size:10px;line-height:1.8;color:#bdb5c8;overflow-wrap:anywhere}
#examModal .exam-head .timer{flex:0 0 auto}
#examModal .exam-head .kv-end-exam{flex:0 0 auto}
#examModal .exam-head .modal-close{position:static!important;flex:0 0 36px!important;width:36px!important;height:36px!important}

/* Keep all content in normal document flow: no nested vertical scroll areas. */
#examModal .exam-progress{height:6px;margin:12px 0 15px!important;border-radius:99px;overflow:hidden}
#examModal .exam-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;margin:0 0 12px!important}
#examModal #questionText{
  width:100%;max-width:100%;min-width:0;
  margin:12px 0 20px!important;
  font-size:clamp(17px,2vw,22px)!important;
  line-height:2!important;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:normal;
  unicode-bidi:plaintext;
}
#examModal .answer-options{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
  width:100%;min-width:0;
}
#examModal .answer-option{
  width:100%!important;min-width:0!important;max-width:100%!important;
  min-height:58px!important;
  display:flex!important;align-items:center!important;gap:12px!important;
  padding:13px 15px!important;
  border-radius:15px!important;
  font-size:clamp(13px,1.3vw,15px)!important;
  line-height:1.85!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  word-break:normal;
  transform:none!important;
}
#examModal .answer-option i{flex:0 0 30px!important;width:30px!important;height:30px!important}
#examModal .answer-option span{display:block;flex:1 1 auto;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
#examModal .question-controls{
  position:static!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  margin:18px 0 0!important;
  padding:14px 0!important;
  border-top:1px solid rgba(255,255,255,.07);
  background:transparent!important;
  backdrop-filter:none!important;
}
#examModal .question-controls .btn{
  width:100%;min-width:0;min-height:48px!important;
  padding:10px!important;font-size:12px!important;
  white-space:normal;line-height:1.65;
}
#examModal .question-controls .btn:last-child{grid-column:1/-1!important}
#examModal .exam-subject-nav{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:9px!important;
  width:100%;max-width:100%;
  max-height:none!important;
  overflow:visible!important;
  padding:13px 0 4px!important;
  margin:8px 0 0!important;
  border-top:1px solid rgba(255,255,255,.07);
}
#examModal .exam-subject-nav .subject-jump{
  flex:1 1 155px!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  min-height:62px!important;
  white-space:normal!important;overflow-wrap:anywhere;
}
#examModal .exam-result{
  display:block;
  width:100%;min-width:0;max-width:100%;
  padding:18px 0 6px!important;
  overflow:visible!important;
}
#examModal .exam-result.hidden{display:none!important}
#examModal .analysis-panel{
  display:block;
  width:100%;max-width:100%;min-width:0;
  margin:16px 0 8px!important;
  padding:8px 0 20px!important;
  overflow:visible!important;
}
#examModal .analysis-panel.hidden{display:none!important}
#examModal .analysis-item{
  width:100%;max-width:100%;min-width:0;
  margin:13px 0!important;
  padding:clamp(13px,2vw,20px)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(38,37,46,.95),rgba(28,28,35,.96))!important;
  border:1px solid rgba(255,255,255,.09)!important;
  box-sizing:border-box;
}
#examModal .analysis-item header{position:static!important}
#examModal .analysis-item>p{overflow-wrap:anywhere;word-break:normal}
#examModal .analysis-options{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
#examModal .analysis-opt{min-width:0;overflow-wrap:anywhere;word-break:normal}
html.kv-exam-scroll-lock,html.kv-exam-scroll-lock body{overscroll-behavior:none}

/* Tablet and narrow laptop: retain a centered panel without clipping. */
@media(min-width:761px) and (max-width:1100px){
  #examModal.modal{padding:16px!important}
  #examModal .exam-card{width:min(100%,860px)!important}
  #examModal .exam-head{gap:9px!important}
  #examModal .exam-subject-nav .subject-jump{flex-basis:145px!important}
}

/* Phones: full-screen app-like test, single document scroll, no nested overflow. */
@media(max-width:760px){
  #examModal.modal{
    padding:0!important;
    display:block!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    height:100vh!important;
    height:100dvh!important;
    max-height:100vh!important;
    max-height:100dvh!important;
    scroll-padding-top:100px;
    overscroll-behavior-y:contain;
  }
  #examModal .modal-backdrop{position:fixed!important;inset:0!important}
  #examModal .exam-card{
    width:100%!important;max-width:none!important;
    min-height:100vh!important;min-height:100dvh!important;
    height:auto!important;max-height:none!important;
    margin:0!important;padding:0 14px max(22px,env(safe-area-inset-bottom))!important;
    border:0!important;border-radius:0!important;
    overflow:visible!important;
    box-shadow:none!important;
    background:linear-gradient(180deg,#1b1b22 0%,#17181e 100%)!important;
  }
  #examModal .exam-head{
    top:0!important;
    margin:0 -14px 12px!important;
    padding:calc(10px + env(safe-area-inset-top)) 14px 12px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    gap:8px!important;
    border-radius:0!important;
    background:rgba(28,28,36,.97)!important;
    box-shadow:0 9px 24px rgba(0,0,0,.22)!important;
  }
  #examModal .exam-head>div:first-child{grid-column:1/-1!important;grid-row:1!important}
  #examModal .exam-head small{font-size:7px!important}
  #examModal .exam-head h2{font-size:16px!important}
  #examModal .exam-head-subtitle{font-size:9px!important;line-height:1.7}
  #examModal .exam-head .timer{grid-column:1!important;grid-row:2!important;justify-self:start!important;min-width:62px;min-height:38px;padding:7px 9px!important;font-size:14px!important}
  #examModal .exam-head .kv-end-exam{grid-column:2!important;grid-row:2!important;justify-self:end!important;min-height:38px!important;padding:8px 10px!important;font-size:10px!important}
  #examModal .exam-head .modal-close{grid-column:3!important;grid-row:2!important;justify-self:end!important;width:36px!important;height:36px!important;min-width:36px!important}
  #examModal .exam-progress{margin:10px 0 12px!important}
  #examModal .exam-meta{font-size:10px!important;margin-bottom:9px!important}
  #examModal #questionText{
    margin:12px 0 16px!important;
    font-size:clamp(17px,4.5vw,21px)!important;
    line-height:2!important;
  }
  #examModal .answer-options{gap:9px!important}
  #examModal .answer-option{
    min-height:58px!important;
    padding:12px 12px!important;
    gap:10px!important;
    border-radius:14px!important;
    font-size:14px!important;
    line-height:1.9!important;
  }
  #examModal .answer-option i{width:29px!important;height:29px!important;flex-basis:29px!important}
  #examModal .question-controls{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    margin-top:15px!important;
    padding:12px 0!important;
  }
  #examModal .question-controls .btn{min-height:47px!important;font-size:11px!important}
  #examModal .exam-subject-nav{gap:8px!important;padding-top:12px!important}
  #examModal .exam-subject-nav .subject-jump{flex:1 1 calc(50% - 8px)!important;min-height:60px!important;padding:9px!important}
  #examModal .exam-subject-nav .subject-jump b{font-size:10px!important}
  #examModal .exam-subject-nav .subject-jump small{font-size:8px!important}
  #examModal .exam-result{padding:16px 0 10px!important}
  #examModal .exam-result .btn{width:100%;margin:7px 0!important}
  #examModal .result-subject-breakdown{grid-template-columns:minmax(0,1fr)!important}
  #examModal .analysis-panel{margin:12px 0!important;padding-bottom:25px!important}
  #examModal .analysis-item{margin:10px 0!important;padding:13px!important}
  #examModal .analysis-item>p{font-size:13px!important;line-height:2!important;margin:13px 0!important}
  #examModal .analysis-opt{padding:10px!important;font-size:12px!important}
}
@media(max-width:380px){
  #examModal .exam-card{padding-inline:11px!important}
  #examModal .exam-head{margin-inline:-11px!important;padding-inline:11px!important}
  #examModal .exam-subject-nav .subject-jump{flex-basis:100%!important}
  #examModal .question-controls .btn{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){
  #examModal .exam-head{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}


/* KAVIR V33.6.0 — exam import and CRM contact workflow
   هدف: در کارنامه و تحلیل سؤال‌به‌سؤال، سربرگ بالایی با محتوای پایین یکپارچه‌تر
   دیده شود و دکمه‌ها در موبایل جمع‌وجور، منطقی و هماهنگ با پنل باشند. */

#examModal.exam-state-result .exam-head,
#examModal.analysis-open .exam-head{
  background:linear-gradient(180deg,rgba(30,30,38,.985),rgba(25,25,32,.97))!important;
  box-shadow:0 10px 26px rgba(0,0,0,.14)!important;
}
#examModal.exam-state-result .exam-head .timer,
#examModal.analysis-open .exam-head .timer{
  display:none!important;
}
#examModal.exam-state-result .exam-head .kv-end-exam,
#examModal.analysis-open .exam-head .kv-end-exam{
  display:none!important;
}
#examModal.exam-state-result .exam-head h2,
#examModal.analysis-open .exam-head h2{
  margin-bottom:2px!important;
}
#examModal.exam-state-result .exam-head-subtitle,
#examModal.analysis-open .exam-head-subtitle{
  opacity:.94;
}
#examModal.exam-state-result .exam-result,
#examModal.analysis-open .exam-result{
  padding-top:8px!important;
}
#examModal.analysis-open .analysis-panel{
  margin-top:14px!important;
}
#examModal.analysis-open .analysis-item:first-child{
  margin-top:4px!important;
}

@media(max-width:760px){
  #examModal.exam-state-result .exam-head,
  #examModal.analysis-open .exam-head{
    grid-template-columns:minmax(0,1fr) 36px!important;
    gap:10px!important;
    margin-bottom:10px!important;
    padding-bottom:11px!important;
  }
  #examModal.exam-state-result .exam-head>div:first-child,
  #examModal.analysis-open .exam-head>div:first-child{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
  }
  #examModal.exam-state-result .exam-head .modal-close,
  #examModal.analysis-open .exam-head .modal-close{
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
    justify-self:end!important;
    margin-top:2px!important;
  }
  #examModal.exam-state-result .exam-head h2,
  #examModal.analysis-open .exam-head h2{
    font-size:15px!important;
    line-height:1.5!important;
  }
  #examModal.exam-state-result .exam-head small,
  #examModal.analysis-open .exam-head small{
    font-size:8px!important;
  }
  #examModal.exam-state-result .exam-head-subtitle,
  #examModal.analysis-open .exam-head-subtitle{
    font-size:9px!important;
    line-height:1.65!important;
    margin-top:2px!important;
  }
  #examModal.exam-state-result .exam-result,
  #examModal.analysis-open .exam-result{
    padding-top:4px!important;
  }
  #examModal.exam-state-result #resultSummary,
  #examModal.analysis-open #resultSummary{
    font-size:12px!important;
    line-height:2.1!important;
    margin-top:2px!important;
  }
  #examModal.analysis-open .analysis-panel{
    margin-top:10px!important;
  }
}

/* V33.6 — staged, question-count-aware exam import */
.exam-import-preparation,
.exam-key-template-panel{
  direction:rtl;display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin:14px 0;padding:14px 16px;border:1px solid rgba(111,170,255,.22);
  border-radius:16px;background:linear-gradient(135deg,rgba(70,113,177,.12),rgba(255,255,255,.025));
  color:var(--text,#f4f6fb);line-height:1.9;font-size:13px;
}
.exam-import-preparation{border-color:rgba(105,190,165,.25)}
.exam-key-template-panel{border-color:rgba(105,190,165,.35);background:linear-gradient(135deg,rgba(53,154,122,.14),rgba(255,255,255,.025))}
.exam-key-template-panel b{font-weight:800;color:#8fe0c1}
.exam-key-template-panel span{flex:1;min-width:min(100%,260px);color:var(--muted,#a9b1c2)}
.exam-key-template-panel .btn{white-space:nowrap}
#analyzeWordButton{min-height:44px}
#examCreateForm button:disabled{opacity:.6;cursor:wait}
@media(max-width:640px){
 .exam-import-preparation,.exam-key-template-panel{align-items:stretch;flex-direction:column;gap:8px;padding:12px}
 .exam-key-template-panel .btn{width:100%;justify-content:center}
}

/* V33.7 — strict, visible exam-import wizard: Word analysis first, Excel key second */
.exam-import-wizard{display:grid;gap:14px;margin:14px 0}
.exam-import-step{border:1px solid rgba(120,157,202,.2);border-radius:17px;padding:16px;background:rgba(255,255,255,.025)}
.exam-import-step-head{display:flex;align-items:center;gap:11px;margin-bottom:13px}
.exam-import-step-head>span{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:rgba(72,157,132,.17);border:1px solid rgba(105,200,165,.35);color:#9be2c6;font-weight:900}
.exam-import-step-head b{display:block;font-size:14px;color:var(--text,#f4f6fb)}
.exam-import-step-head small{display:block;color:var(--muted,#a9b1c2);font-size:11px;margin-top:3px;line-height:1.8}
.exam-word-upload,.exam-excel-upload{display:flex;align-items:center;gap:12px;min-height:82px;margin:8px 0 12px}
.exam-word-upload>span,.exam-excel-upload>span{font-size:25px}
.exam-word-upload>b,.exam-excel-upload>b{min-width:150px}
.exam-word-upload>small,.exam-excel-upload>small{flex:1;line-height:1.8}
.exam-word-upload input,.exam-excel-upload input{max-width:260px}
.exam-analysis-preview{margin-top:12px;padding:12px;border:1px solid rgba(105,190,165,.2);border-radius:13px;background:rgba(53,154,122,.055)}
.exam-analysis-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.exam-analysis-preview-head b{color:#9be2c6}
.exam-analysis-preview-head span,.exam-analysis-preview>small{font-size:11px;color:var(--muted,#a9b1c2)}
.exam-analysis-question{padding:8px 10px;border-top:1px solid rgba(140,160,190,.13);font-size:12px}
.exam-analysis-question summary{cursor:pointer;font-weight:700}
.exam-analysis-question p{white-space:pre-wrap;line-height:1.9;color:var(--text,#edf0f6)}
.exam-analysis-question ol{padding-inline-start:24px;line-height:1.9;color:var(--muted,#a9b1c2)}
.exam-key-template-panel{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 14px;padding:13px;border:1px solid rgba(105,190,165,.3);border-radius:14px;background:rgba(53,154,122,.08)}
.exam-key-template-panel b{color:#9be2c6}
.exam-key-template-panel span{flex:1;min-width:220px;font-size:12px;line-height:1.9;color:var(--muted,#a9b1c2)}
#registerExamButton:disabled{opacity:.45;filter:grayscale(.35);cursor:not-allowed}
#wordAnalysisStatus,#keyUploadStatus{white-space:pre-line;line-height:1.9}
@media(max-width:700px){
 .exam-import-step{padding:12px}
 .exam-word-upload,.exam-excel-upload{align-items:flex-start;flex-direction:column;gap:7px}
 .exam-word-upload>b,.exam-excel-upload>b{min-width:0}
 .exam-word-upload input,.exam-excel-upload input{width:100%;max-width:none}
 .exam-key-template-panel{align-items:stretch;flex-direction:column}
 .exam-key-template-panel .btn{width:100%;justify-content:center}
 .exam-analysis-preview-head{align-items:flex-start;flex-direction:column}
}

/* ================= KAVIR V33.8.0 — honors, mobile dock and exam audience ================= */

/* Official honor posters: preserve the complete original artwork at every viewport. */
#honors .kv-v11-honor-shell{padding:clamp(14px,2.2vw,26px);}
#honors .kv-v11-honor-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,22px);align-items:start;}
#honors .kv-v11-honor-card{
  width:100%;min-width:0;padding:7px;border-radius:19px;overflow:hidden;
  background:linear-gradient(155deg,#fff,#f4f2fa);border:1px solid rgba(255,255,255,.82);
  box-shadow:0 14px 34px rgba(0,0,0,.24),inset 0 1px 0 #fff;
  opacity:1;animation:kvV11CardIn .45s ease both;cursor:zoom-in;
}
#honors .kv-v11-honor-card img{
  display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;object-position:center;
  border-radius:12px;background:#fff;
}
#honors .kv-v11-honor-card:hover{transform:translateY(-4px);box-shadow:0 20px 44px rgba(0,0,0,.3)}
#honors .kv-v11-gallery-progress{display:none}
#honors .kv-v11-gallery-controls [hidden],#honors .kv-v11-honor-controls [hidden]{display:none!important}
.kv-v11-lightbox figure img{width:auto;height:auto;max-width:min(84vw,620px);max-height:84dvh;aspect-ratio:3/4;object-fit:contain;background:#fff}
.kv-v11-lightbox-wrap{max-width:min(96vw,980px)}

/* Exam audience panel: optional CRM routing is integrated into the existing exam wizard. */
.exam-audience-card{
  margin:16px 0 8px;padding:clamp(13px,2.2vw,20px);border:1px solid rgba(142,122,206,.25);
  border-radius:18px;background:linear-gradient(145deg,rgba(119,94,190,.09),rgba(255,255,255,.025));
  display:grid;gap:13px;min-width:0;
}
.exam-audience-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.exam-audience-head>div{display:grid;gap:4px;min-width:0}
.exam-audience-head b{font-size:14px;color:var(--text,#f4f3fa)}
.exam-audience-head small,.exam-audience-template-row small{display:block;font-size:11px;line-height:1.85;color:var(--muted,#a9a5b8)}
.exam-audience-mark{display:grid;place-items:center;min-width:42px;height:32px;padding:0 9px;border-radius:10px;background:rgba(132,105,224,.16);border:1px solid rgba(153,128,240,.25);color:#c7b7ff;font-size:10px;font-weight:900;letter-spacing:1px}
.exam-audience-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.exam-audience-choice{display:flex;align-items:flex-start;gap:9px;min-width:0;padding:11px;border-radius:13px;border:1px solid rgba(145,132,174,.18);background:rgba(255,255,255,.025);cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.exam-audience-choice:has(input:checked){border-color:rgba(151,126,241,.62);background:rgba(133,105,222,.12);box-shadow:inset 0 0 0 1px rgba(151,126,241,.12)}
.exam-audience-choice input{flex:0 0 auto;margin:3px 0 0;accent-color:#8b70ef}
.exam-audience-choice span{display:grid;gap:4px;min-width:0}
.exam-audience-choice b{font-size:11px;line-height:1.7;color:var(--text,#f4f3fa)}
.exam-audience-choice small{font-size:10px;line-height:1.7;color:var(--muted,#a9a5b8)}
.exam-audience-pane,.exam-audience-access-mode{min-width:0;padding:12px;border-radius:13px;background:rgba(5,5,12,.16);border:1px solid rgba(145,132,174,.14)}
.exam-audience-pane[hidden],.exam-audience-access-mode[hidden]{display:none!important}
.exam-audience-access-mode label{display:block;max-width:440px}
.exam-audience-pane .form-grid{margin:0}
.exam-audience-pane input,.exam-audience-pane select,.exam-audience-access-mode select{max-width:100%;min-width:0}
.exam-audience-template-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.exam-audience-template-row>div{min-width:0}
.exam-audience-template-row b{font-size:12px}
.exam-audience-template-row .btn{flex:0 0 auto;white-space:nowrap}
.exam-audience-file{margin:10px 0 8px!important}
.exam-audience-file input{max-width:100%}
.exam-audience-preview{display:grid;gap:7px;margin-top:10px;min-width:0;font-size:11px;line-height:1.8}
.exam-audience-preview:empty{display:none}
.exam-audience-preview>p{margin:0;padding:10px;border-radius:10px;background:rgba(255,255,255,.04);color:var(--muted,#aaa)}
.exam-audience-preview.success{padding:11px;border-radius:12px;border:1px solid rgba(79,185,142,.3);background:rgba(48,151,111,.08)}
.exam-audience-preview.error{padding:11px;border-radius:12px;border:1px solid rgba(228,113,104,.28);background:rgba(188,73,73,.07)}
.exam-audience-preview.loading{color:var(--muted,#aaa)}
.exam-audience-result-head,.exam-audience-stats,.exam-audience-contact-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.exam-audience-result-head b{color:#8fe0bd;font-size:12px}
.exam-audience-result-head span,.exam-audience-stats span{font-variant-numeric:tabular-nums;color:var(--muted,#aaa)}
.exam-audience-stats{justify-content:flex-start;gap:8px}
.exam-audience-stats span{padding:4px 8px;border-radius:99px;background:rgba(255,255,255,.05)}
.exam-audience-contact-row{padding:6px 8px;border-top:1px solid rgba(145,132,174,.14)}
.exam-audience-contact-row span{font-variant-numeric:tabular-nums;color:var(--muted,#aaa)}
.exam-audience-error-row{padding:6px 8px;border-radius:8px;background:rgba(205,77,77,.1);color:#ffb4aa}
.exam-audience-preview>small{color:var(--muted,#aaa)}

/* Floating light dock inspired by the supplied mobile navigation reference. */
@media(max-width:760px){
  body{padding-bottom:112px}
  .kv33-mobile-dock{
    left:clamp(12px,3.5vw,20px);right:clamp(12px,3.5vw,20px);
    bottom:max(10px,env(safe-area-inset-bottom));height:68px;
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:3px;
    padding:6px 10px;border-radius:25px;direction:ltr;overflow:visible;
    background:rgba(250,249,253,.94);border:1px solid rgba(255,255,255,.96);
    box-shadow:0 15px 42px rgba(25,19,51,.24),0 3px 10px rgba(25,19,51,.08),inset 0 1px 0 #fff;
    backdrop-filter:blur(24px) saturate(155%);-webkit-backdrop-filter:blur(24px) saturate(155%);
  }
  .kv33-mobile-dock::before{display:none}
  .kv33-dock-item{
    position:relative;display:grid;place-items:center;align-content:center;justify-content:center;
    min-width:0;min-height:48px;padding:0;border:0;border-radius:17px;background:transparent;
    color:#77758b;transition:color .2s ease,transform .2s ease,background .2s ease;
    -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  }
  .kv33-dock-item svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
  .kv33-dock-item b,.kv33-dock-center b{
    position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
    overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
  }
  .kv33-dock-item.active{color:#6753d8;background:rgba(117,94,220,.075);transform:translateY(-1px)}
  .kv33-dock-item.active::after{content:"";position:absolute;bottom:3px;width:5px;height:5px;border-radius:50%;background:#795fe8;box-shadow:0 0 0 3px rgba(121,95,232,.10)}
  .kv33-dock-item.active svg{filter:drop-shadow(0 3px 6px rgba(111,86,219,.18))}
  .kv33-dock-center{z-index:2;transform:translateY(-12px);overflow:visible;background:transparent!important}
  .kv33-dock-center::before{display:none!important}
  .kv33-dock-center svg{
    width:58px;height:58px;padding:17px;border:5px solid #f8f7fb;border-radius:50%;
    background:linear-gradient(145deg,#7968ed,#5141c8);color:#fff;stroke-width:2.25;
    box-shadow:0 10px 22px rgba(91,70,206,.32),0 3px 0 rgba(52,40,130,.10);
    animation:none;transition:transform .2s ease,box-shadow .2s ease;
  }
  .kv33-dock-center:active svg{transform:scale(.94);box-shadow:0 5px 14px rgba(91,70,206,.25)}
  .kv33-dock-center.is-panel svg{background:linear-gradient(145deg,#ffb26f,#e36f38);box-shadow:0 10px 22px rgba(227,111,56,.28)}
  .kv33-mobile-dock.kv-dock-workspace-hidden{display:none!important}
  .exam-audience-modes{grid-template-columns:1fr}
  .exam-audience-choice{align-items:center}
  .exam-audience-choice input{margin-top:0}
  .exam-audience-template-row{align-items:stretch;flex-direction:column}
  .exam-audience-template-row .btn{width:100%;justify-content:center}
  #honors .kv-v11-honor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #honors .kv-v11-honor-card{padding:5px;border-radius:14px}
  #honors .kv-v11-honor-card img{border-radius:10px}
  .kv-v11-lightbox-wrap{width:100%;max-width:100%;padding:48px 5px 12px;gap:4px}
  .kv-v11-lightbox figure img{max-width:78vw;max-height:76dvh}
}
@media(max-width:390px){
  .kv33-mobile-dock{left:9px;right:9px;height:64px;padding-inline:7px;border-radius:23px}
  .kv33-dock-item svg{width:21px;height:21px}
  .kv33-dock-center svg{width:54px;height:54px;padding:15px}
  .exam-audience-card{padding:11px}
  #honors .kv-v11-honor-grid{gap:8px}
}
@media(min-width:761px){#honors .kv-v11-honor-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.kv33-dock-item,.kv33-dock-center svg,#honors .kv-v11-honor-card{transition:none!important;animation:none!important}}


/* ================= KAVIR V33.9.0 — seamless top, dark labelled dock, clean mobile logo ================= */
html[data-theme="dark"]{
  --kv33-top-surface:
    radial-gradient(ellipse at 82% 12%,rgba(242,139,66,.14),transparent 38%),
    radial-gradient(ellipse at 15% 8%,rgba(126,96,229,.22),transparent 42%),
    linear-gradient(180deg,#141519 0%,#19191f 56%,#111214 100%);
}
html[data-theme="dark"] body{
  background:var(--kv33-top-surface)!important;
}
html[data-theme="dark"] .topline{
  background:transparent!important;
}
html[data-theme="dark"] .hero{
  background:var(--kv33-top-surface)!important;
}
html[data-theme="dark"] .ambient-a{
  top:-95px!important;right:-180px!important;opacity:.16!important;
}
html[data-theme="dark"] .ambient-b{
  top:28px!important;bottom:auto!important;left:-190px!important;opacity:.14!important;
}
@media(min-width:761px){
  .topline{
    background:transparent!important;
    border-color:transparent!important;
    box-shadow:none!important;
    margin-top:0!important;
  }
  .header-inner{
    border-top:1px solid rgba(255,255,255,.09)!important;
  }
}
@media(max-width:760px){
  /* Logo sits naturally inside the header; remove the separate square tile. */
  .header-inner>.brand{
    height:auto!important;min-height:0!important;
    padding:0!important;border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;
  }
  .header-inner>.brand .kv-v11-logo-pair{
    width:clamp(92px,25vw,116px)!important;height:42px!important;
    display:flex;align-items:center;justify-content:center;overflow:visible!important;
  }
  .header-inner>.brand .kv-v11-logo-pair img{
    display:block;width:100%!important;height:42px!important;max-width:100%!important;
    object-fit:contain;object-position:center;
  }

  /* Dark dock matching the Kavir site palette; labels remain visible below icons. */
  .kv33-mobile-dock{
    height:76px!important;padding:6px 8px 7px!important;
    border:1px solid rgba(255,255,255,.13)!important;
    background:linear-gradient(180deg,rgba(42,40,49,.97),rgba(17,18,23,.985))!important;
    box-shadow:0 18px 46px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.07)!important;
    backdrop-filter:blur(24px) saturate(135%)!important;
    -webkit-backdrop-filter:blur(24px) saturate(135%)!important;
  }
  .kv33-mobile-dock .kv33-dock-item{
    display:flex!important;flex-direction:column!important;
    align-items:center!important;justify-content:center!important;
    align-content:center!important;gap:4px!important;
    min-height:60px!important;padding:2px 0!important;
    color:#c7c0d0!important;background:transparent!important;
  }
  .kv33-mobile-dock .kv33-dock-item svg{
    display:block;width:21px!important;height:21px!important;flex:0 0 21px;
    color:currentColor;stroke:currentColor;
  }
  .kv33-mobile-dock .kv33-dock-item b,
  .kv33-mobile-dock .kv33-dock-center b{
    position:static!important;display:block!important;
    width:auto!important;height:auto!important;max-width:100%;
    padding:0!important;margin:0!important;
    overflow:visible!important;clip:auto!important;clip-path:none!important;
    white-space:nowrap!important;border:0!important;
    color:inherit!important;font-size:9px!important;font-weight:700!important;
    line-height:1.25!important;text-indent:0!important;
  }
  .kv33-mobile-dock .kv33-dock-item.active{
    color:#ffb477!important;background:rgba(255,173,112,.085)!important;
    transform:translateY(-1px);
  }
  .kv33-mobile-dock .kv33-dock-item.active::after{
    bottom:1px!important;width:4px!important;height:4px!important;
    background:#ffad70!important;box-shadow:0 0 0 3px rgba(255,173,112,.10)!important;
  }
  .kv33-mobile-dock .kv33-dock-center{
    transform:translateY(-5px)!important;background:transparent!important;
    gap:3px!important;color:#ffbd8b!important;
  }
  .kv33-mobile-dock .kv33-dock-center svg{
    width:46px!important;height:46px!important;flex:0 0 46px;
    padding:12px!important;border:3px solid #24232b!important;border-radius:50%!important;
    background:linear-gradient(145deg,#ffb779,#e87838)!important;
    color:#21160f!important;stroke:#21160f!important;
    box-shadow:0 9px 22px rgba(232,120,56,.30),0 3px 0 rgba(0,0,0,.20)!important;
  }
  .kv33-mobile-dock .kv33-dock-center b{color:#ffc08f!important}
}
@media(max-width:390px){
  .kv33-mobile-dock{height:72px!important;padding-inline:5px!important}
  .kv33-mobile-dock .kv33-dock-item b,
  .kv33-mobile-dock .kv33-dock-center b{font-size:8.5px!important}
}
#honors .kv-v11-honor-card img{
  display:block!important;width:100%!important;height:auto!important;
  aspect-ratio:3/4!important;object-fit:contain!important;object-position:center!important;
  background:#fff!important;opacity:1!important;visibility:visible!important;
}
#honors .kv-v11-honor-image-fallback{
  display:grid;place-items:center;min-height:220px;padding:20px;
  color:#8d2430;background:#fff3f2;border:1px dashed #d99;border-radius:12px;
  font-size:12px;font-weight:700;text-align:center;
}


/* ================= KAVIR V33.11.0 — Unified responsive two-tier header =================
   Both the information strip and navigation now share one glass shell.
   The shell, not the inner nav row, owns the sticky positioning and border.
*/
.kv33-header-shell{
  position:relative;
  top:auto;
  z-index:auto;
  isolation:isolate;
  width:min(1240px,calc(100% - 36px));
  margin:12px auto 0;
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  background:
    radial-gradient(ellipse at 88% 0%,rgba(242,139,66,.09),transparent 38%),
    linear-gradient(155deg,rgba(39,37,47,.97),rgba(19,20,25,.975));
  box-shadow:0 18px 48px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.075);
  backdrop-filter:blur(26px) saturate(145%);
  -webkit-backdrop-filter:blur(26px) saturate(145%);
}
.kv33-header-shell>.topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  max-width:none;
  min-height:44px;
  height:auto;
  margin:0;
  padding:8px clamp(16px,2.4vw,28px);
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.085)!important;
  border-radius:23px 23px 0 0;
  background:transparent!important;
  color:#e5deea!important;
  font-size:11px;
  line-height:1.7;
}
.kv33-header-shell>.topline>span:nth-child(2){
  flex:1 1 auto;
  min-width:0;
  margin-inline-end:auto;
}
.kv33-header-shell>.topline .kv-v11-consult-link{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:30px;
  padding:5px 13px;
  border:1px solid rgba(242,139,66,.32);
  border-radius:999px;
  background:rgba(242,139,66,.10);
  color:#ffc18c;
  white-space:nowrap;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.kv33-header-shell>.topline .kv-v11-consult-link:hover{
  background:rgba(242,139,66,.17);
  border-color:rgba(242,139,66,.55);
  transform:translateY(-1px);
}
.kv33-header-shell>.site-header{
  position:relative!important;
  inset:auto!important;
  z-index:auto!important;
  width:100%;
  max-width:none;
  height:68px;
  margin:0;
  padding:0!important;
  border:0!important;
  border-radius:0 0 23px 23px;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.kv33-header-shell>.site-header>.header-inner{
  display:flex;
  align-items:center;
  gap:clamp(10px,1.55vw,22px);
  width:100%;
  max-width:none;
  height:68px;
  margin:0;
  padding-inline:clamp(14px,2vw,26px);
  border:0!important;
  border-radius:0 0 23px 23px;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.kv33-header-shell .brand{flex:0 0 auto}
.kv33-header-shell .main-nav{
  flex:1 1 auto;
  min-width:0;
  justify-content:center;
  margin-inline:auto;
}
.kv33-header-shell .header-actions{flex:0 0 auto}
.kv33-header-shell .mobile-menu{display:none!important}

/* Keep the navigation legible when browser zoom or a smaller desktop viewport
   reduces the available CSS width. The layout compresses before it can collide. */
@media(min-width:761px) and (max-width:1100px){
  .kv33-header-shell{width:calc(100% - 28px)}
  .kv33-header-shell>.topline{min-height:42px;padding-inline:16px}
  .kv33-header-shell>.site-header>.header-inner{
    gap:clamp(6px,1vw,12px);
    padding-inline:14px;
  }
  .kv33-header-shell .brand img,
  .kv33-header-shell .kv-v11-logo-pair img{
    max-width:clamp(92px,10vw,116px);
    height:48px;
  }
  .kv33-header-shell .main-nav{gap:clamp(5px,.8vw,9px)}
  .kv33-header-shell .main-nav a{font-size:clamp(9px,.95vw,11px)}
  .kv33-header-shell .header-actions{gap:6px}
  .kv33-header-shell .header-actions .btn{font-size:10px;padding:8px 9px}
  .kv33-header-shell .header-actions .install-trigger{display:none!important}
  .kv33-header-shell .header-actions .theme-toggle{display:none!important}
}
@media(min-width:761px) and (max-width:850px){
  .kv33-header-shell>.topline{font-size:10px}
  .kv33-header-shell .brand img,
  .kv33-header-shell .kv-v11-logo-pair img{max-width:88px;height:44px}
  .kv33-header-shell .main-nav{gap:5px}
  .kv33-header-shell .main-nav a{font-size:9px}
  .kv33-header-shell .header-actions .btn{font-size:9px;padding:7px 8px}
}

/* Mobile: compact single-row shell; the information line is intentionally hidden
   to preserve room for the logo and primary consultation action. */
@media(max-width:760px){
  html{scroll-padding-top:0!important}
  .kv33-header-shell{
    top:auto;
    width:calc(100% - 22px);
    max-width:600px;
    margin:8px auto 0;
    border-radius:18px;
    border-color:rgba(255,255,255,.14);
    box-shadow:0 13px 34px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.07);
  }
  .kv33-header-shell>.topline{display:none!important}
  .kv33-header-shell>.site-header{
    width:100%;
    height:56px;
    min-height:56px;
    border-radius:18px;
  }
  .kv33-header-shell>.site-header>.header-inner{
    display:flex;
    width:100%;
    max-width:none;
    height:56px;
    min-height:56px;
    margin:0;
    padding:0 9px;
    gap:8px;
    border:0!important;
    border-radius:18px;
    background:transparent!important;
    box-shadow:none!important;
  }
  .kv33-header-shell>.site-header>.header-inner>.brand{
    margin-inline-start:auto;
    max-width:128px;
  }
  .kv33-header-shell>.site-header>.header-inner>.kv33-mobile-consult{
    flex:0 1 auto;
    min-width:116px;
  }
  #homeScreen .hero{margin-top:-64px!important}
}
@media(max-width:420px){
  .kv33-header-shell{width:calc(100% - 16px);border-radius:16px}
  .kv33-header-shell>.site-header,
  .kv33-header-shell>.site-header>.header-inner{border-radius:16px}
  .kv33-header-shell>.site-header>.header-inner{padding-inline:7px;gap:6px}
  .kv33-header-shell>.site-header>.header-inner>.kv33-mobile-consult{min-width:108px;padding-inline:9px}
}
@media(prefers-reduced-motion:reduce){
  .kv33-header-shell,.kv33-header-shell *{scroll-behavior:auto!important;transition:none!important}
}


/* Tablet/zoom safety: V15 turns the public nav into an off-canvas drawer
   below 1025px. For this compact two-tier header, keep it inline on tablet
   widths so no hidden navigation is left without a visible menu trigger. */
@media(min-width:761px) and (max-width:1024px){
  .kv33-header-shell .main-nav,
  .kv33-header-shell .main-nav.open{
    position:static!important;
    inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
    display:flex!important;flex:1 1 auto!important;
    width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;
    min-width:0!important;overflow:visible!important;
    padding:0!important;margin-inline:auto!important;
    border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;
    transform:none!important;visibility:visible!important;opacity:1!important;
    pointer-events:auto!important;z-index:auto!important;
  }
  .kv33-header-shell .main-nav .kv-v12-nav-heading{display:none!important}
  .kv33-header-shell .mobile-menu{display:none!important}
}


/* V33.12.0: The combined glass header belongs to the homepage only.
   It scrolls with the document and never floats over inner-page content. */
body.kv33-home-header-page .kv33-header-shell{
  position:relative!important;
  top:auto!important;
  z-index:auto!important;
}
body.kv33-home-header-page .kv33-header-shell>.site-header{
  position:relative!important;
}


/* ================= KAVIR V33.13.0 — Header visibility and workspace isolation =================
   The public two-row header is only for the homepage. The same index.html also
   hosts student/admin workspaces, so hide the public shell when app.js switches
   body to kv33-in-workspace. Keep the complete nav row visible above the hero.
*/
body.kv33-in-workspace .kv33-header-shell{
  display:none!important;
}

body:not(.kv33-in-workspace) .kv33-header-shell{
  position:relative!important;
  z-index:180!important;
  isolation:isolate;
}

@media (min-width:761px){
  body:not(.kv33-in-workspace) .kv33-header-shell>.site-header{
    display:block!important;
    position:relative!important;
    visibility:visible!important;
    opacity:1!important;
    width:100%!important;
    height:68px!important;
    min-height:68px!important;
    z-index:2!important;
  }
  body:not(.kv33-in-workspace) .kv33-header-shell>.site-header>.header-inner{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    width:100%!important;
    height:68px!important;
    min-height:68px!important;
  }
  body:not(.kv33-in-workspace) .kv33-header-shell .main-nav{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    pointer-events:auto!important;
    flex:1 1 auto!important;
    min-width:0!important;
  }
  body:not(.kv33-in-workspace) .kv33-header-shell .header-actions{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
  }
  body:not(.kv33-in-workspace) .kv33-header-shell .mobile-menu{
    display:none!important;
  }

  /* The old public-header layout pulled the hero upward by 68px.
     The combined shell now owns both rows, so remove that overlap and
     compensate the hero padding to preserve the original text position. */
  body:not(.kv33-in-workspace) .kv33-header-shell + #homeScreen .hero{
    margin-top:0!important;
    padding-top:72px!important;
  }
}

@media (max-width:760px){
  body:not(.kv33-in-workspace) .kv33-header-shell{
    z-index:180!important;
  }
  body:not(.kv33-in-workspace) .kv33-header-shell>.site-header{
    display:block!important;
    position:relative!important;
    visibility:visible!important;
    opacity:1!important;
    height:56px!important;
    min-height:56px!important;
  }
  body:not(.kv33-in-workspace) .kv33-header-shell>.site-header>.header-inner{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    height:56px!important;
    min-height:56px!important;
  }
  /* Restore the hamburger that was accidentally hidden by the previous
     global shell rule. The existing v12/v15 drawer behavior remains intact. */
  body:not(.kv33-in-workspace) .kv33-header-shell .mobile-menu{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
  }
  body:not(.kv33-in-workspace) .kv33-header-shell .header-actions{
    display:none!important;
  }
  body:not(.kv33-in-workspace) .kv33-header-shell + #homeScreen .hero{
    margin-top:0!important;
    padding-top:40px!important;
  }
}


/* KAVIR V33.14.0 — focused single-question exam experience.
   The exam engine and API contract remain unchanged; this layer only
   improves the taking-state layout and question navigation. */
#examModal.exam-state-taking .exam-card{
  width:min(100%,900px)!important;max-width:900px!important;min-width:0!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  padding:clamp(16px,2.4vw,30px)!important;
  background:linear-gradient(155deg,#24232d 0%,#191a21 58%,#15161c 100%)!important;
}
#examModal.exam-state-taking .exam-head{gap:10px!important}
#examModal.exam-state-taking .exam-head>div:first-child{flex:1 1 260px!important;min-width:0!important}
#examModal.exam-state-taking .exam-progress{height:5px!important;margin:10px 0 13px!important;background:rgba(255,255,255,.09)!important}
#examModal.exam-state-taking .exam-progress>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e88737,#ffb56f)!important;transition:width .22s ease}
#examModal.exam-state-taking .exam-meta{align-items:center!important;gap:7px 12px!important;margin:0 0 10px!important;color:#d6d0df!important;font-size:12px!important}
#examModal.exam-state-taking .exam-meta span:first-child{font-weight:800;color:#ffb16b!important}
#examModal .exam-question-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;width:100%;min-width:0;margin:0 0 12px}
#examModal .exam-question-index-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 13px;border:1px solid rgba(255,161,83,.3);border-radius:11px;background:rgba(255,145,61,.09);color:#ffb16b;font:inherit;font-size:11px;font-weight:800;cursor:pointer;transition:background .18s,border-color .18s}
#examModal .exam-question-index-toggle:hover{background:rgba(255,145,61,.16);border-color:rgba(255,161,83,.55)}
#examModal #examQuestionHint{font-size:10px;line-height:1.7;color:#a9a4b3}
#examModal .exam-question-nav{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;width:100%;min-width:0;margin:0 0 15px;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(9,10,15,.32);box-sizing:border-box}
#examModal .exam-question-nav.hidden{display:none!important}
#examModal .question-jump{display:flex;align-items:center;justify-content:center;min-width:0;min-height:36px;padding:4px;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:#292a34;color:#d9d5e0;font:inherit;font-size:11px;font-weight:800;cursor:pointer;transition:transform .15s,border-color .15s,background .15s}
#examModal .question-jump span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#examModal .question-jump:hover{transform:translateY(-1px);border-color:rgba(255,174,105,.55)}
#examModal .question-jump.answered{background:rgba(39,143,111,.17);border-color:rgba(72,195,151,.38);color:#91e1c1}
#examModal .question-jump.current{background:linear-gradient(145deg,#ffad67,#f18a3b);border-color:#ffbd82;color:#23170f;box-shadow:0 5px 15px rgba(235,132,57,.2)}
#examModal .question-jump.current.answered{background:linear-gradient(145deg,#ffad67,#f18a3b);color:#23170f}
#examModal.exam-state-taking #questionText{
  display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  margin:0 0 14px!important;padding:clamp(13px,2vw,20px)!important;
  border:1px solid rgba(255,255,255,.09)!important;border-radius:17px!important;
  background:linear-gradient(145deg,rgba(44,43,54,.92),rgba(32,32,41,.94))!important;
  color:#f4f1f8!important;font-size:clamp(16px,1.7vw,21px)!important;
  line-height:1.95!important;font-weight:700!important;
  white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:normal!important;
  unicode-bidi:plaintext;box-sizing:border-box!important;
}
#examModal.exam-state-taking .answer-options{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;width:100%!important;min-width:0!important;margin:0!important}
#examModal.exam-state-taking .answer-option{
  display:flex!important;align-items:center!important;width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:54px!important;max-height:none!important;padding:11px 14px!important;
  gap:11px!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:13px!important;
  background:rgba(255,255,255,.035)!important;color:#eae6f0!important;
  font-size:clamp(13px,1.2vw,15px)!important;line-height:1.85!important;text-align:start!important;
  white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;
}
#examModal.exam-state-taking .answer-option i{flex:0 0 29px!important;width:29px!important;height:29px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:9px!important;background:rgba(255,255,255,.08)!important;color:#d8d0e2!important;font-style:normal!important}
#examModal.exam-state-taking .answer-option span{display:block!important;flex:1 1 auto!important;min-width:0!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:normal!important}
#examModal.exam-state-taking .answer-option.selected{border-color:rgba(255,164,89,.75)!important;background:rgba(255,145,61,.13)!important;box-shadow:inset 0 0 0 1px rgba(255,164,89,.13)!important;color:#fff!important}
#examModal.exam-state-taking .answer-option.selected i{background:#ff9c4e!important;color:#24170f!important}
#examModal.exam-state-taking .question-controls{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;margin:15px 0 0!important;padding:13px 0 max(8px,env(safe-area-inset-bottom))!important;border-top:1px solid rgba(255,255,255,.08)!important}
#examModal.exam-state-taking .question-controls .btn{grid-column:auto!important;width:100%!important;min-width:0!important;min-height:46px!important;padding:9px 8px!important;border-radius:12px!important;font-size:11px!important;line-height:1.6!important;white-space:normal!important}
#examModal.exam-state-taking .question-controls #nextQuestion{background:linear-gradient(135deg,#ffad67,#f18a3b)!important;color:#23170f!important;font-weight:900!important}
#examModal.exam-state-taking .question-controls #prevQuestion:disabled{opacity:.38!important}
#examModal .exam-question-index-toggle:focus-visible,#examModal .question-jump:focus-visible,#examModal .answer-option:focus-visible,#examModal .question-controls .btn:focus-visible{outline:2px solid #ffad67!important;outline-offset:3px!important}
@media(min-width:761px) and (max-width:1100px){
  #examModal.exam-state-taking .exam-card{width:min(100%,820px)!important}
  #examModal .exam-question-nav{grid-template-columns:repeat(8,minmax(0,1fr))}
}
@media(max-width:760px){
  #examModal.modal{padding:0!important;overflow-x:hidden!important;overflow-y:auto!important}
  #examModal.exam-state-taking .exam-card{width:100%!important;max-width:none!important;min-height:100dvh!important;height:auto!important;padding:0 13px max(22px,env(safe-area-inset-bottom))!important;border:0!important;border-radius:0!important}
  #examModal.exam-state-taking .exam-head{margin:0 -13px 11px!important;padding:calc(9px + env(safe-area-inset-top)) 13px 11px!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:7px!important;border-radius:0!important}
  #examModal.exam-state-taking .exam-head>div:first-child{grid-column:1/-1!important;grid-row:1!important}
  #examModal.exam-state-taking .exam-head h2{font-size:15px!important;line-height:1.5!important}
  #examModal.exam-state-taking .exam-head-subtitle{font-size:9px!important}
  #examModal.exam-state-taking .exam-head .timer{grid-column:1!important;grid-row:2!important;justify-self:start!important;min-width:70px!important;min-height:36px!important;padding:6px 9px!important;font-size:14px!important}
  #examModal.exam-state-taking .exam-head .kv-end-exam{grid-column:2!important;grid-row:2!important;justify-self:end!important;min-height:36px!important;padding:7px 9px!important;font-size:10px!important}
  #examModal.exam-state-taking .exam-head .modal-close{grid-column:3!important;grid-row:2!important;width:35px!important;height:35px!important;min-width:35px!important}
  #examModal.exam-state-taking .exam-progress{margin:8px 0 10px!important}
  #examModal.exam-state-taking .exam-meta{font-size:10px!important;margin-bottom:8px!important}
  #examModal .exam-question-tools{margin-bottom:9px}
  #examModal .exam-question-index-toggle{min-height:34px;padding:6px 10px;font-size:10px}
  #examModal #examQuestionHint{font-size:9px}
  #examModal .exam-question-nav{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:9px;margin-bottom:11px}
  #examModal .question-jump{min-height:35px;border-radius:9px;font-size:10px}
  #examModal.exam-state-taking #questionText{margin-bottom:11px!important;padding:12px!important;font-size:clamp(15px,4.1vw,18px)!important;line-height:1.95!important;border-radius:14px!important}
  #examModal.exam-state-taking .answer-options{gap:8px!important}
  #examModal.exam-state-taking .answer-option{min-height:50px!important;padding:10px 11px!important;gap:9px!important;border-radius:12px!important;font-size:13px!important;line-height:1.8!important}
  #examModal.exam-state-taking .answer-option i{flex-basis:27px!important;width:27px!important;height:27px!important}
  #examModal.exam-state-taking .question-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:12px!important;padding:11px 0 8px!important}
  #examModal.exam-state-taking .question-controls .btn{min-height:43px!important;font-size:10px!important}
  #examModal.exam-state-taking .question-controls #nextQuestion{grid-column:1/-1!important;grid-row:1!important;min-height:46px!important;font-size:12px!important}
  #examModal.exam-state-taking .question-controls #prevQuestion{grid-column:1!important;grid-row:2!important}
  #examModal.exam-state-taking .question-controls #markQuestion{grid-column:2!important;grid-row:2!important}
}
@media(max-width:380px){
  #examModal.exam-state-taking .exam-card{padding-inline:10px!important}
  #examModal.exam-state-taking .exam-head{margin-inline:-10px!important;padding-inline:10px!important}
  #examModal .exam-question-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:8px}
  #examModal .question-jump{min-height:33px;font-size:9px}
  #examModal.exam-state-taking .question-controls .btn{font-size:9px!important}
}
@media(prefers-reduced-motion:reduce){
  #examModal .question-jump,#examModal .exam-question-index-toggle,#examModal .exam-progress>span{transition:none!important}
}


/* KAVIR V33.15.0 — Exam Workspace: one scroll surface, compact in-flow sticky bar,
   subject sections and responsive question navigation. */
#examModal.modal{
  position:fixed!important;inset:0!important;z-index:10000!important;
  display:block!important;overflow-x:hidden!important;overflow-y:auto!important;
  width:100%!important;height:100vh!important;height:100dvh!important;
  max-height:100vh!important;max-height:100dvh!important;
  padding:clamp(10px,2vw,22px)!important;
  overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;
  scroll-padding-top:94px;background:rgba(7,8,12,.84)!important;
}
#examModal .modal-backdrop{position:fixed!important;inset:0!important;z-index:0!important;pointer-events:auto!important}
#examModal .exam-card{
  position:relative!important;z-index:1!important;
  display:block!important;width:min(100%,980px)!important;max-width:980px!important;
  min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0 auto!important;padding:0 clamp(14px,2.4vw,28px) 30px!important;
  overflow:visible!important;overscroll-behavior:visible!important;
  box-sizing:border-box!important;border:1px solid rgba(255,255,255,.1)!important;
  border-radius:22px!important;
  background:linear-gradient(155deg,#24232d 0%,#191a21 58%,#15161c 100%)!important;
  box-shadow:0 28px 90px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.045)!important;
  transform:none!important;
}
#examModal.open .exam-card{transform:none!important}
#examModal.exam-state-taking .exam-head{
  position:sticky!important;top:0!important;z-index:30!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;gap:7px 16px!important;
  margin:0 calc(-1 * clamp(14px,2.4vw,28px)) 14px!important;
  padding:12px clamp(14px,2.4vw,28px) 9px!important;
  border:0!important;border-bottom:1px solid rgba(255,255,255,.09)!important;
  border-radius:22px 22px 0 0!important;
  background:rgba(28,28,36,.975)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.2)!important;
  backdrop-filter:blur(18px) saturate(135%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(135%)!important;
}
#examModal .exam-head-main{min-width:0!important;display:flex!important;flex-direction:column!important;gap:2px!important}
#examModal .exam-head-kicker{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-width:0!important}
#examModal .exam-head-kicker small{font-size:8px!important;letter-spacing:.16em!important;color:#e99a58!important;font-weight:900!important}
#examModal #examCounter{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;padding:3px 8px!important;border:1px solid rgba(255,164,89,.2)!important;
  border-radius:999px!important;background:rgba(255,145,61,.08)!important;
  color:#ffc18d!important;font-size:10px!important;font-weight:850!important;white-space:nowrap!important;
}
#examModal .exam-head-main h2{
  margin:0!important;padding:0!important;min-width:0!important;
  color:#f8f5fb!important;font-size:clamp(15px,1.8vw,21px)!important;
  line-height:1.4!important;font-weight:900!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
#examModal .exam-head-subtitle{
  display:block!important;min-width:0!important;max-width:100%!important;
  color:#aaa4b4!important;font-size:9px!important;line-height:1.4!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
#examModal .exam-head-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;min-width:0!important}
#examModal .exam-head .timer{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:76px!important;min-height:39px!important;padding:6px 10px!important;
  border:1px solid rgba(255,255,255,.08)!important;border-radius:11px!important;
  background:#17181e!important;color:#ff9c4e!important;
  font-size:16px!important;font-weight:950!important;font-variant-numeric:tabular-nums!important;
}
#examModal .exam-head .kv-end-exam{
  min-height:39px!important;padding:7px 12px!important;border-radius:11px!important;
  font-size:10px!important;font-weight:850!important;white-space:nowrap!important;
}
#examModal .exam-head .modal-close{
  position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:36px!important;
  border:1px solid rgba(255,255,255,.1)!important;border-radius:50%!important;
  background:rgba(255,255,255,.045)!important;color:#f2edf7!important;
}
#examModal.exam-state-taking .exam-progress{
  grid-column:1/-1!important;display:block!important;width:100%!important;height:4px!important;
  margin:2px 0 0!important;padding:0!important;overflow:hidden!important;
  border-radius:999px!important;background:rgba(255,255,255,.1)!important;
}
#examModal.exam-state-taking .exam-progress>span{
  display:block!important;height:100%!important;min-width:0!important;
  border-radius:inherit!important;background:linear-gradient(90deg,#e88737,#ffb56f)!important;
  transition:width .22s ease!important;
}
#examModal.exam-state-taking .exam-meta{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  flex-wrap:wrap!important;gap:5px 12px!important;margin:0 0 12px!important;
  color:#aaa4b4!important;font-size:11px!important;line-height:1.65!important;
}
#examModal #examSubject{color:#f0d0b4!important;font-weight:850!important}
#examModal #examQuestionHint{color:#aaa4b4!important}
#examModal .exam-question-tools{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex-wrap:wrap!important;gap:8px!important;width:100%!important;min-width:0!important;margin:0 0 12px!important;
}
#examModal .exam-question-index-toggle{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  min-height:38px!important;padding:8px 13px!important;
  border:1px solid rgba(255,161,83,.28)!important;border-radius:11px!important;
  background:rgba(255,145,61,.085)!important;color:#ffb16b!important;
  font:inherit!important;font-size:11px!important;font-weight:850!important;cursor:pointer!important;
}
#examModal .exam-question-index-toggle[aria-expanded="true"]{
  background:rgba(255,145,61,.17)!important;border-color:rgba(255,161,83,.55)!important;
}
#examModal .exam-subject-nav{
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important;
  gap:8px!important;width:100%!important;min-width:0!important;margin:0 0 13px!important;
  padding:12px!important;box-sizing:border-box!important;
  border:1px solid rgba(255,255,255,.08)!important;border-radius:15px!important;
  background:rgba(9,10,15,.3)!important;
}
#examModal .exam-subject-nav.hidden,#examModal .exam-question-nav.hidden{display:none!important}
#examModal .exam-subject-nav .subject-jump{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
  gap:3px!important;min-width:0!important;min-height:54px!important;padding:9px 11px!important;
  border:1px solid rgba(255,255,255,.1)!important;border-radius:11px!important;
  background:rgba(255,255,255,.035)!important;color:#eee9f4!important;
  font:inherit!important;text-align:start!important;cursor:pointer!important;
}
#examModal .exam-subject-nav .subject-jump span{
  display:block!important;max-width:100%!important;overflow-wrap:anywhere!important;
  color:#f4eff8!important;font-size:12px!important;font-weight:850!important;
}
#examModal .exam-subject-nav .subject-jump small{
  color:#aaa4b4!important;font-size:9px!important;line-height:1.5!important;
}
#examModal .exam-subject-nav .subject-jump.active{
  border-color:rgba(255,164,89,.55)!important;background:rgba(255,145,61,.13)!important;
  box-shadow:inset 3px 0 #ff9c4e!important;
}
#examModal .exam-question-nav{
  display:block!important;width:100%!important;min-width:0!important;margin:0 0 14px!important;
  padding:12px!important;box-sizing:border-box!important;
  border:1px solid rgba(255,255,255,.08)!important;border-radius:15px!important;
  background:rgba(9,10,15,.3)!important;
}
#examModal .question-group+.question-group{margin-top:13px!important;padding-top:12px!important;border-top:1px solid rgba(255,255,255,.075)!important}
#examModal .question-group-title{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;margin:0 0 8px!important;color:#eee9f4!important;
}
#examModal .question-group-title strong{font-size:11px!important;font-weight:850!important}
#examModal .question-group-title small{font-size:9px!important;color:#aaa4b4!important;white-space:nowrap!important}
#examModal .question-group-grid{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:6px!important}
#examModal .question-jump{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;min-height:35px!important;padding:4px!important;
  border:1px solid rgba(255,255,255,.1)!important;border-radius:9px!important;
  background:#292a34!important;color:#d9d5e0!important;font:inherit!important;
  font-size:10px!important;font-weight:850!important;cursor:pointer!important;
}
#examModal .question-jump.answered{background:rgba(39,143,111,.17)!important;border-color:rgba(72,195,151,.38)!important;color:#91e1c1!important}
#examModal .question-jump.flagged{box-shadow:inset 0 -3px #d8b1ff!important}
#examModal .question-jump.current{background:linear-gradient(145deg,#ffad67,#f18a3b)!important;border-color:#ffbd82!important;color:#23170f!important;box-shadow:0 5px 15px rgba(235,132,57,.2)!important}
#examModal .question-jump.current.flagged{box-shadow:inset 0 -3px #5b2d80,0 5px 15px rgba(235,132,57,.2)!important}
#examModal.exam-state-taking #questionText{
  display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  margin:0 0 14px!important;padding:clamp(14px,2.1vw,22px)!important;
  box-sizing:border-box!important;border:1px solid rgba(255,255,255,.09)!important;
  border-radius:17px!important;background:linear-gradient(145deg,rgba(44,43,54,.92),rgba(32,32,41,.94))!important;
  color:#f4f1f8!important;font-size:clamp(16px,1.7vw,21px)!important;
  line-height:1.95!important;font-weight:700!important;
  white-space:pre-wrap!important;overflow:visible!important;overflow-wrap:anywhere!important;
  word-break:normal!important;unicode-bidi:plaintext!important;
}
#examModal.exam-state-taking #questionText img,
#examModal.exam-state-taking #questionText video,
#examModal.exam-state-taking #questionText svg{max-width:100%!important;height:auto!important}
#examModal.exam-state-taking .answer-options{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;
  width:100%!important;min-width:0!important;margin:0!important;
}
#examModal.exam-state-taking .answer-option{
  display:flex!important;align-items:center!important;width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:54px!important;max-height:none!important;padding:11px 14px!important;
  gap:11px!important;box-sizing:border-box!important;
  border:1px solid rgba(255,255,255,.11)!important;border-radius:13px!important;
  background:rgba(255,255,255,.035)!important;color:#eae6f0!important;
  font-size:clamp(13px,1.2vw,15px)!important;line-height:1.85!important;text-align:start!important;
  white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;
}
#examModal.exam-state-taking .answer-option i{
  flex:0 0 29px!important;width:29px!important;height:29px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:9px!important;background:rgba(255,255,255,.08)!important;
  color:#d8d0e2!important;font-style:normal!important;
}
#examModal.exam-state-taking .answer-option span{
  display:block!important;flex:1 1 auto!important;min-width:0!important;
  white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
#examModal.exam-state-taking .answer-option.selected{
  border-color:rgba(255,164,89,.75)!important;background:rgba(255,145,61,.13)!important;
  box-shadow:inset 0 0 0 1px rgba(255,164,89,.13)!important;color:#fff!important;
}
#examModal.exam-state-taking .answer-option.selected i{background:#ff9c4e!important;color:#24170f!important}
#examModal.exam-state-taking .question-controls{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;margin:16px 0 0!important;padding:13px 0 max(8px,env(safe-area-inset-bottom))!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
}
#examModal.exam-state-taking .question-controls .btn{
  width:100%!important;min-width:0!important;min-height:45px!important;padding:8px 7px!important;
  border-radius:11px!important;font-size:10px!important;line-height:1.55!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
#examModal.exam-state-taking .question-controls #nextQuestion{
  background:linear-gradient(135deg,#ffad67,#f18a3b)!important;color:#23170f!important;font-weight:900!important;
}
#examModal.exam-state-taking .question-controls #prevQuestion:disabled{opacity:.38!important}
#examModal.exam-state-taking .question-controls #toggleFlagQuestion.is-flagged{
  border-color:rgba(216,177,255,.55)!important;background:rgba(155,104,203,.16)!important;color:#e2c7ff!important;
}
#examModal .exam-question-index-toggle:focus-visible,#examModal .question-jump:focus-visible,
#examModal .subject-jump:focus-visible,#examModal .answer-option:focus-visible,
#examModal .question-controls .btn:focus-visible{outline:2px solid #ffad67!important;outline-offset:3px!important}
@media(min-width:761px) and (max-width:1100px){
  #examModal .exam-card{width:min(100%,900px)!important}
  #examModal .question-group-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important}
}
@media(max-width:760px){
  #examModal.modal{
    padding:0!important;scroll-padding-top:86px;
    height:100vh!important;height:100dvh!important;
  }
  #examModal .exam-card{
    width:100%!important;max-width:none!important;min-height:100vh!important;min-height:100dvh!important;
    margin:0!important;padding:0 12px max(22px,env(safe-area-inset-bottom))!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;
  }
  #examModal.exam-state-taking .exam-head{
    top:0!important;grid-template-columns:minmax(0,1fr) auto!important;
    gap:5px 8px!important;margin:0 -12px 12px!important;
    padding:calc(8px + env(safe-area-inset-top)) 12px 8px!important;border-radius:0!important;
  }
  #examModal .exam-head-kicker small{font-size:7px!important}
  #examModal #examCounter{font-size:9px!important;padding:3px 7px!important}
  #examModal .exam-head-main h2{font-size:14px!important;line-height:1.35!important}
  #examModal .exam-head-subtitle{display:none!important}
  #examModal .exam-head-actions{gap:5px!important}
  #examModal .exam-head .timer{min-width:62px!important;min-height:34px!important;padding:5px 7px!important;font-size:14px!important;border-radius:9px!important}
  #examModal .exam-head .kv-end-exam{min-height:34px!important;padding:6px 8px!important;font-size:9px!important;border-radius:9px!important}
  #examModal .exam-head .modal-close{flex-basis:31px!important;width:31px!important;min-width:31px!important;height:31px!important}
  #examModal.exam-state-taking .exam-progress{height:4px!important;margin-top:2px!important}
  #examModal.exam-state-taking .exam-meta{font-size:10px!important;margin-bottom:9px!important}
  #examModal .exam-question-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-bottom:10px!important}
  #examModal .exam-question-index-toggle{min-height:36px!important;padding:7px 8px!important;font-size:10px!important}
  #examModal .exam-subject-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:8px!important}
  #examModal .exam-subject-nav .subject-jump{min-height:50px!important;padding:7px 8px!important}
  #examModal .exam-subject-nav .subject-jump span{font-size:10px!important}
  #examModal .exam-subject-nav .subject-jump small{font-size:8px!important}
  #examModal .exam-question-nav{padding:8px!important}
  #examModal .question-group-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:5px!important}
  #examModal .question-jump{min-height:34px!important;font-size:9px!important}
  #examModal .question-group-title strong{font-size:10px!important}
  #examModal.exam-state-taking #questionText{
    margin-bottom:11px!important;padding:13px!important;font-size:clamp(15px,4.2vw,18px)!important;
    line-height:1.9!important;border-radius:14px!important;
  }
  #examModal.exam-state-taking .answer-options{gap:8px!important}
  #examModal.exam-state-taking .answer-option{
    min-height:50px!important;padding:10px 11px!important;gap:9px!important;
    border-radius:12px!important;font-size:13px!important;line-height:1.8!important;
  }
  #examModal.exam-state-taking .answer-option i{flex-basis:27px!important;width:27px!important;height:27px!important}
  #examModal.exam-state-taking .question-controls{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;
    margin-top:12px!important;padding:11px 0 8px!important;
  }
  #examModal.exam-state-taking .question-controls .btn{min-height:43px!important;font-size:10px!important}
}
@media(max-width:380px){
  #examModal .exam-head-main h2{font-size:13px!important}
  #examModal .exam-head .timer{min-width:57px!important;font-size:13px!important}
  #examModal .exam-head .kv-end-exam{padding-inline:6px!important;font-size:8px!important}
  #examModal .exam-subject-nav{grid-template-columns:minmax(0,1fr)!important}
  #examModal .question-group-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  #examModal.exam-state-taking .question-controls .btn{font-size:9px!important;padding-inline:5px!important}
}
@media(prefers-reduced-motion:reduce){
  #examModal .question-jump,#examModal .exam-question-index-toggle,
  #examModal .subject-jump,#examModal .exam-progress>span{transition:none!important}
}


/* V33.15.0 responsive header correction: keep title and controls on one mobile row. */
#examModal.modal{box-sizing:border-box!important}
#examModal .exam-card,#examModal .exam-head{box-sizing:border-box!important}
@media(max-width:760px){
  #examModal.exam-state-taking .exam-card{
    padding:0 12px max(22px,env(safe-area-inset-bottom))!important;
  }
  #examModal.exam-state-taking .exam-head{
    width:auto!important;max-width:none!important;box-sizing:border-box!important;
    margin:0 -12px 12px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
  }
  #examModal.exam-state-taking .exam-head>.exam-head-main{
    grid-column:1!important;grid-row:1!important;min-width:0!important;
  }
  #examModal.exam-state-taking .exam-head>.exam-head-actions{
    grid-column:2!important;grid-row:1!important;display:flex!important;
    align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;
    min-width:0!important;gap:5px!important;
  }
  #examModal.exam-state-taking .exam-head .timer,
  #examModal.exam-state-taking .exam-head .kv-end-exam,
  #examModal.exam-state-taking .exam-head .modal-close{
    grid-column:auto!important;grid-row:auto!important;justify-self:auto!important;
    flex-shrink:0!important;
  }
}
@media(max-width:380px){
  #examModal.exam-state-taking .exam-card{
    padding:0 12px max(22px,env(safe-area-inset-bottom))!important;
  }
}

/* Higher-specificity override for legacy mobile grid placement rules. */
@media(max-width:760px){
  #examModal.exam-state-taking .exam-head>div.exam-head-main:first-child{
    grid-column:1 / 2!important;grid-row:1!important;min-width:0!important;
  }
  #examModal.exam-state-taking .exam-head>div.exam-head-actions:nth-child(2){
    grid-column:2 / 3!important;grid-row:1!important;min-width:0!important;
    width:auto!important;justify-self:end!important;
  }
  #examModal.exam-state-taking .exam-head .timer{
    width:58px!important;min-width:58px!important;max-width:58px!important;
    min-height:33px!important;padding:4px 5px!important;font-size:13px!important;
  }
  #examModal.exam-state-taking .exam-head .kv-end-exam{
    width:52px!important;min-width:52px!important;max-width:52px!important;
    min-height:33px!important;padding:4px 4px!important;font-size:8px!important;
    overflow:hidden!important;text-overflow:clip!important;
  }
  #examModal.exam-state-taking .exam-head .modal-close{
    width:30px!important;min-width:30px!important;max-width:30px!important;
    height:30px!important;flex-basis:30px!important;
  }
}
@media(max-width:380px){
  #examModal.exam-state-taking .exam-head .timer{
    width:54px!important;min-width:54px!important;max-width:54px!important;
  }
  #examModal.exam-state-taking .exam-head .kv-end-exam{
    width:48px!important;min-width:48px!important;max-width:48px!important;font-size:8px!important;
  }
}

@media(max-width:760px){
  #examModal .exam-head-kicker small{display:none!important}
}


/* KAVIR V33.16.0 HOTFIX
   Prevent the closed exam modal's explicitly interactive backdrop from
   intercepting pointer events intended for the entire site underneath it.
   Keep the backdrop clickable only while the exam modal is actually open.
*/
#examModal.modal:not(.open){
  visibility:hidden!important;
  pointer-events:none!important;
}
#examModal.modal:not(.open) .modal-backdrop{
  visibility:hidden!important;
  pointer-events:none!important;
}
#examModal.modal.open{
  visibility:visible!important;
  pointer-events:auto!important;
}
#examModal.modal.open .modal-backdrop{
  visibility:visible!important;
  pointer-events:auto!important;
}


/* KAVIR V33.17.0 — paged five-question exam workspace and responsive exam room */
#examModal.exam-modal{
 position:fixed!important;inset:0!important;z-index:1200!important;
 display:block!important;padding:0!important;overflow:hidden!important;
 background:#f4f3ef!important;opacity:0;pointer-events:none;
}
#examModal.exam-modal.open{opacity:1;pointer-events:auto}
#examModal .exam-page-backdrop{display:none!important}
#examModal .exam-card{
 position:relative!important;inset:auto!important;z-index:1!important;
 display:flex!important;flex-direction:column!important;gap:0!important;
 width:100%!important;max-width:none!important;height:100vh!important;height:100dvh!important;max-height:100vh!important;max-height:100dvh!important;
 min-height:0!important;overflow:hidden!important;padding:0!important;margin:0!important;
 border:0!important;border-radius:0!important;transform:none!important;
 background:#f4f3ef!important;color:#17251f!important;box-shadow:none!important;
}
#examModal.open .exam-card{transform:none!important}
#examModal .exam-head{
 position:relative!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;
 gap:24px!important;padding:calc(22px + env(safe-area-inset-top)) clamp(18px,4vw,56px) 18px!important;
 background:linear-gradient(112deg,#14251f 0%,#1d332b 58%,#263d33 100%)!important;
 color:#fff!important;border:0!important;border-bottom:1px solid rgba(211,183,126,.35)!important;
 box-shadow:0 12px 32px rgba(17,36,29,.16)!important;
}
#examModal .exam-head-main{min-width:0;flex:1 1 auto;margin:0!important}
#examModal .exam-head-kicker{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:5px}
#examModal .exam-head-kicker small{font:700 9px/1.3 Arial,sans-serif;letter-spacing:2px;color:#d9bd83!important}
#examModal .exam-head-kicker span{font-size:11px;color:#e7e2d6!important}
#examModal #activeExamTitle{font-size:clamp(17px,2vw,23px)!important;font-weight:800!important;line-height:1.5!important;margin:0!important;color:#fff!important}
#examModal .exam-head-subtitle{display:block;font-size:11px;color:#c9d2cc!important;margin-top:3px}
#examModal .exam-head-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}
#examModal .exam-time-wrap{display:flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid rgba(222,196,143,.25);border-radius:13px;background:rgba(255,255,255,.07)}
#examModal .exam-time-wrap small{font-size:10px;color:#d6dcd6;white-space:nowrap}
#examModal .timer{min-width:76px;text-align:center;padding:7px 10px!important;border-radius:9px!important;background:#f4ead2!important;color:#23362c!important;font:800 17px/1.1 Arial,sans-serif!important;letter-spacing:.5px}
#examModal .kv-end-exam{background:#b98c49!important;color:#171f19!important;border:1px solid #d9b77c!important;border-radius:11px!important;font-size:11px!important;font-weight:800!important;padding:11px 16px!important;white-space:nowrap}
#examModal #examExit{position:static!important;flex:0 0 36px!important;width:36px!important;height:36px!important;border:1px solid rgba(255,255,255,.22)!important;background:rgba(255,255,255,.08)!important;color:#fff!important;border-radius:11px!important;font-size:22px!important}
#examModal .exam-progress{position:absolute!important;bottom:0!important;left:0!important;right:0!important;height:3px!important;margin:0!important;background:rgba(255,255,255,.12)!important;border-radius:0!important}
#examModal .exam-progress span{height:100%!important;background:linear-gradient(90deg,#d5b16d,#f1d99e)!important;transition:width .25s ease!important}
#examModal .exam-meta{
 flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:12px!important;padding:12px clamp(18px,4vw,56px)!important;
 background:#fff!important;border-bottom:1px solid #e7e4dc!important;color:#59665e!important;
 font-size:11px!important;
}
#examModal #examQuestionHint{font-weight:700;color:#4b6a58!important}
#examModal .exam-page-content{
 flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
 width:100%!important;padding:24px clamp(16px,4vw,56px) 32px!important;
 scrollbar-gutter:stable;
}
#examModal .exam-page-intro{
 max-width:1080px;margin:0 auto 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;
}
#examModal .exam-page-kicker{font:700 9px/1.4 Arial,sans-serif;letter-spacing:2px;color:#a17c3e}
#examModal .exam-page-intro h3{font-size:22px;font-weight:800;color:#1d3329;margin:3px 0 2px}
#examModal .exam-page-intro p{font-size:11px;color:#78837b;margin:0;line-height:1.8}
#examModal .exam-page-badge{display:flex;align-items:center;gap:9px;padding:9px 14px;border-radius:12px;background:#e8eee8;border:1px solid #d7e1d8;color:#3d5b48;white-space:nowrap}
#examModal .exam-page-badge b{font:800 18px/1 Arial,sans-serif;color:#1c4935}
#examModal .exam-page-badge span{font-size:10px}
#examModal .exam-question-page-list{max-width:1080px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:15px}
#examModal .exam-question-card{
 min-width:0;background:#fff;border:1px solid #e7e4dc;border-radius:17px;
 padding:18px 21px 20px;box-shadow:0 5px 18px rgba(29,47,37,.045);
 border-inline-start:3px solid #d5bd8d;
}
#examModal .exam-question-card.is-answered{border-inline-start-color:#72947b}
#examModal .exam-question-card-head{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:12px}
#examModal .exam-question-number{display:flex;align-items:center;gap:6px;flex:0 0 auto;color:#263e31}
#examModal .exam-question-number span{font-size:10px;color:#849087}
#examModal .exam-question-number b{display:grid;place-items:center;min-width:29px;height:29px;padding:0 7px;border-radius:9px;background:#1c382b;color:#f4e5c2;font:800 13px/1 Arial,sans-serif}
#examModal .exam-question-subject{min-width:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 9px;border-radius:7px;background:#f4f2eb;color:#7a6848;font-size:10px;font-weight:700}
#examModal .exam-question-status{margin-inline-start:auto;font-size:10px;font-weight:700;white-space:nowrap}
#examModal .exam-question-status.pending{color:#a17c3e}
#examModal .exam-question-status.done{color:#4e7958}
#examModal .exam-question-flag{flex:0 0 30px;width:30px;height:30px;border:1px solid #e7e3d9;border-radius:9px;background:#fff;color:#9a8b6a;font-size:18px;line-height:1}
#examModal .exam-question-flag.active{background:#fbf3df;border-color:#d9bd83;color:#a5792f}
#examModal .exam-question-prompt{
 color:#202b24;font-size:14px;font-weight:600;line-height:2.05;white-space:pre-wrap;
 overflow-wrap:anywhere;word-break:normal;unicode-bidi:plaintext;margin:0 0 15px;
}
#examModal .exam-question-prompt.english-question{font-family:Arial,sans-serif;font-size:14px;line-height:1.85;text-align:left}
#examModal .exam-options-list{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
#examModal .exam-option{
 display:flex;align-items:flex-start;gap:11px;width:100%;min-width:0;min-height:46px;
 padding:10px 12px;border:1px solid #e8e6df;border-radius:11px;background:#fbfaf7;
 color:#344239;text-align:start;font-size:12px;line-height:1.85;
 transition:background .15s,border-color .15s,box-shadow .15s;
}
#examModal .exam-option:hover{border-color:#b89a60;background:#faf6ec}
#examModal .exam-option.selected{border-color:#8b9f83;background:#edf3ec;box-shadow:inset 0 0 0 1px rgba(81,121,87,.12)}
#examModal .exam-option-key{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:8px;background:#ecebe5;color:#58665a;font:800 11px/1 Arial,sans-serif}
#examModal .exam-option.selected .exam-option-key{background:#2d5b40;color:#fff}
#examModal .exam-option-text{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap;unicode-bidi:plaintext}
#examModal .exam-option-check{flex:0 0 auto;color:#2e7046;font-weight:900}
#examModal .exam-options-missing{font-size:11px;color:#a34b43;margin:0}
#examModal .exam-page-footer{
 flex:0 0 auto;display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(220px,1fr);
 align-items:center;gap:14px;padding:12px clamp(16px,4vw,56px) calc(12px + env(safe-area-inset-bottom));
 background:rgba(255,255,255,.97);border-top:1px solid #e3e0d7;box-shadow:0 -8px 24px rgba(24,42,31,.055);
}
#examModal .exam-page-footer-meta{display:flex;flex-direction:column;gap:3px;min-width:0}
#examModal .exam-page-footer-meta strong{font-size:11px;color:#243b2d}
#examModal .exam-page-footer-meta span{font-size:10px;color:#849087}
#examModal .exam-pagination{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
#examModal .exam-page-number{display:grid;place-items:center;min-width:32px;height:32px;padding:0 7px;border:1px solid #e4e1d8;border-radius:9px;background:#fff;color:#58645b;font:700 11px/1 Arial,sans-serif}
#examModal .exam-page-number.active{background:#1d382b;border-color:#1d382b;color:#f4e5c2;box-shadow:0 4px 10px rgba(29,56,43,.18)}
#examModal .exam-page-ellipsis,#examModal .exam-page-single{color:#8c958e;font-size:10px;padding:0 3px}
#examModal .exam-page-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}
#examModal .exam-page-actions .btn{min-width:104px;min-height:40px;border-radius:11px;font-size:11px;font-weight:800}
#examModal #examNextPage{background:#244b37!important;border-color:#244b37!important;color:#fff!important}
#examModal #examNextPage.is-finish{background:#a77d3c!important;border-color:#a77d3c!important;color:#fff!important}
#examModal #examPrevPage{background:#f2f1eb!important;border-color:#e3e0d7!important;color:#425148!important}
#examModal .exam-legacy-controls{display:none!important}
#examModal .exam-result{flex:1 1 auto;min-height:0;overflow:auto;width:min(100% - 32px,880px);margin:auto;padding:clamp(24px,5vw,56px);align-self:center;background:#fff;border:1px solid #e4e0d5;border-radius:24px;box-shadow:0 18px 60px rgba(23,43,31,.09);text-align:center}
#examModal .exam-result h3{color:#1c382b;font-size:24px}
#examModal .exam-result #resultSummary{color:#58665c;font-size:13px;line-height:2.2}
#examModal .exam-result .result-icon{background:#eaf1e9;color:#2f7047;margin-inline:auto}
#examModal .exam-result .btn{margin:6px}
#examModal .analysis-panel{text-align:right}
@media(max-width:760px){
 #examModal .exam-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:9px!important;padding:calc(12px + env(safe-area-inset-top)) 13px 14px!important}
 #examModal .exam-head-main{grid-column:1;grid-row:1;min-width:0}
 #examModal .exam-head-kicker{gap:7px;margin-bottom:3px}
 #examModal .exam-head-kicker small{font-size:8px;letter-spacing:1.25px}
 #examModal .exam-head-kicker span{font-size:9px}
 #examModal #activeExamTitle{font-size:14px!important;line-height:1.55!important;max-width:100%;overflow-wrap:anywhere}
 #examModal .exam-head-subtitle{font-size:9px;margin-top:1px}
 #examModal .exam-head-actions{grid-column:2;grid-row:1;display:grid;grid-template-columns:auto auto;gap:6px;align-items:center}
 #examModal .exam-time-wrap{grid-column:1 / -1;display:flex;justify-content:space-between;gap:6px;padding:5px 7px;border-radius:9px}
 #examModal .exam-time-wrap small{font-size:8px}
 #examModal .timer{min-width:57px;font-size:13px!important;padding:5px 6px!important}
 #examModal .kv-end-exam{grid-column:1;padding:8px 8px!important;font-size:9px!important;min-height:33px}
 #examModal #examExit{grid-column:2;grid-row:2;width:33px!important;height:33px!important;min-width:33px!important;flex-basis:33px!important}
 #examModal .exam-meta{padding:8px 13px!important;font-size:9px!important;gap:7px}
 #examModal .exam-page-content{padding:13px 11px 20px!important}
 #examModal .exam-page-intro{margin:0 2px 11px;align-items:center}
 #examModal .exam-page-intro h3{font-size:17px;margin:1px 0}
 #examModal .exam-page-intro p{font-size:9px;line-height:1.65;max-width:235px}
 #examModal .exam-page-kicker{font-size:8px}
 #examModal .exam-page-badge{gap:6px;padding:7px 9px;border-radius:9px}
 #examModal .exam-page-badge b{font-size:15px}
 #examModal .exam-page-badge span{font-size:8px}
 #examModal .exam-question-page-list{gap:10px}
 #examModal .exam-question-card{padding:13px 12px 14px;border-radius:13px}
 #examModal .exam-question-card-head{gap:6px;margin-bottom:9px;flex-wrap:wrap}
 #examModal .exam-question-number span{font-size:9px}
 #examModal .exam-question-number b{min-width:26px;height:26px;font-size:11px}
 #examModal .exam-question-subject{max-width:38%;font-size:9px;padding:4px 6px}
 #examModal .exam-question-status{font-size:8px}
 #examModal .exam-question-flag{width:27px;height:27px;flex-basis:27px}
 #examModal .exam-question-prompt{font-size:12px;line-height:1.95;margin-bottom:11px}
 #examModal .exam-question-prompt.english-question{font-size:12px;line-height:1.75}
 #examModal .exam-options-list{gap:6px}
 #examModal .exam-option{min-height:43px;padding:8px 9px;border-radius:9px;font-size:11px;line-height:1.75;gap:8px}
 #examModal .exam-option-key{width:23px;height:23px;flex-basis:23px;font-size:10px}
 #examModal .exam-page-footer{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:9px 10px calc(9px + env(safe-area-inset-bottom))}
 #examModal .exam-page-footer-meta{grid-column:1;grid-row:1}
 #examModal .exam-page-footer-meta strong{font-size:9px}
 #examModal .exam-page-footer-meta span{font-size:8px}
 #examModal .exam-pagination{grid-column:2;grid-row:1;justify-content:flex-end;gap:3px;max-width:45vw;overflow-x:auto}
 #examModal .exam-page-number{min-width:27px;height:27px;border-radius:7px;font-size:9px;padding:0 5px}
 #examModal .exam-page-actions{grid-column:1 / -1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:7px}
 #examModal .exam-page-actions .btn{min-width:0;min-height:39px;font-size:10px}
 #examModal .exam-result{width:calc(100% - 20px);padding:23px 15px;border-radius:17px}
 #examModal .exam-result h3{font-size:19px}
}
@media(max-width:380px){
 #examModal .exam-head{padding:calc(10px + env(safe-area-inset-top)) 9px 12px!important;grid-template-columns:minmax(0,1fr) 106px}
 #examModal #activeExamTitle{font-size:12px!important}
 #examModal .exam-head-kicker span{font-size:8px}
 #examModal .exam-time-wrap small{font-size:7px}
 #examModal .exam-page-content{padding-inline:8px!important}
 #examModal .exam-question-card{padding:11px 9px}
 #examModal .exam-question-subject{max-width:32%}
 #examModal .exam-page-footer{padding-inline:7px}
 #examModal .exam-page-number{min-width:24px;height:25px}
}
@media(prefers-reduced-motion:reduce){
 #examModal .exam-option,#examModal .exam-page-number,#examModal .exam-progress span{transition:none!important}
}

/* Premium official KAVIR result sheet */
@media print{
 @page{size:A4 portrait;margin:10mm}
 body{background:#fff!important;color:#14251f!important;font-family:Tahoma,Arial,sans-serif!important}
 body>*:not(#v10PrintSheet){display:none!important}
 #v10PrintSheet{display:block!important;position:static!important;width:100%!important;padding:0!important;margin:0!important;background:#fff!important;color:#14251f!important;direction:rtl!important;font-family:Tahoma,Arial,sans-serif!important}
 .kv-print-sheet .kv-report-header{
  display:grid!important;grid-template-columns:1fr 2fr 1fr!important;gap:12px!important;align-items:center!important;
  direction:ltr!important;border:0!important;border-bottom:2px solid #b6975c!important;padding:0 0 12px!important;margin-bottom:12px!important;
 }
 .kv-print-sheet .kv-report-date{direction:rtl!important;text-align:left!important;font-size:10px!important;line-height:2!important;color:#526157!important}
 .kv-print-sheet .kv-report-title{direction:rtl!important;text-align:center!important}
 .kv-print-sheet .kv-report-title h1{font-size:16px!important;line-height:1.8!important;margin:0!important;color:#183629!important}
 .kv-print-sheet .kv-report-title h2{font-size:12px!important;line-height:1.8!important;margin:2px 0!important;background:none!important;border:0!important;padding:0!important;color:#7a633e!important}
 .kv-print-sheet .kv-report-title strong{font-size:12px!important;color:#183629!important}
 .kv-print-sheet .kv-report-brand{text-align:right!important;direction:rtl!important}
 .kv-print-sheet .kv-report-brand img{display:block;width:105px!important;height:auto!important;max-height:75px!important;object-fit:contain!important;margin-inline-start:auto!important}
 .kv-print-sheet .kv-candidate-info{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px 12px!important;padding:10px 12px!important;margin:10px 0 14px!important;border:1px solid #dcd7c9!important;border-radius:7px!important;background:#faf9f5!important}
 .kv-print-sheet .kv-candidate-info div{font-size:10px!important;line-height:1.9!important;color:#59665d!important}
 .kv-print-sheet .kv-candidate-info b{color:#172d21!important}
 .kv-print-sheet .kv-section-title{font-size:12px!important;font-weight:700!important;margin:12px 0 7px!important;padding:6px 9px!important;border-right:3px solid #b6975c!important;background:#f4f1e8!important;color:#203b2d!important}
 .kv-print-sheet table{width:100%!important;border-collapse:collapse!important;min-width:0!important;margin:0 0 12px!important;page-break-inside:avoid!important}
 .kv-print-sheet th,.kv-print-sheet td{border:1px solid #cfc9ba!important;padding:7px 5px!important;font-size:10px!important;text-align:center!important;line-height:1.7!important;color:#24372c!important}
 .kv-print-sheet th{background:#eae6da!important;color:#20382b!important;font-weight:700!important}
 .kv-print-sheet .kv-tazr-table td{font-size:13px!important;font-weight:800!important;background:#f7f4eb!important}
 .kv-print-sheet .kv-tazr-table .kv-tazr-score{font-size:21px!important;color:#87652e!important}
 .kv-print-sheet .print-note{font-size:8px!important;line-height:1.8!important;margin:12px 0!important;color:#777!important}
 .kv-print-sheet footer{border-top:1px solid #d5d0c3!important;padding-top:7px!important;text-align:center!important;font-size:8px!important;color:#737b74!important}
}
