[hidden]{display:none !important;}:root{--bg:#050a0f;--panel:#0b1722;--line:#263744;--yellow:#ffc400;--red:#ef233c;--green:#39ff72;--white:#f6f8fb;--muted:#aab7c2}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--bg);font-family:Arial,Helvetica,sans-serif;color:var(--white)}button,input{font:inherit}button{cursor:pointer}.app{width:100vw;height:100dvh;overflow:hidden;background:radial-gradient(circle at 50% 40%,#102131 0,#050a0f 58%)}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:8px 22px;border-bottom:1px solid #182733;background:rgba(3,8,13,.92);position:relative;z-index:20}.brand{display:flex;align-items:center;gap:12px}.logo{width:72px;height:58px;object-fit:contain}.school{font-size:22px;font-weight:900;letter-spacing:1.5px}.testname{font-size:14px;color:var(--yellow);font-weight:900;letter-spacing:2px;margin-top:3px}.hud{display:flex;align-items:center;gap:25px}.candidate{min-width:150px;text-align:right;font-weight:800}.candidate small{display:block;color:var(--muted);font-weight:600}.clip{font-size:13px;letter-spacing:2px;color:#aab7c2}.clip b{color:#fff;font-size:19px}.timer{font-size:31px;font-weight:900;color:var(--yellow);min-width:92px;text-align:right}.stage{height:calc(100dvh - 76px);position:relative;overflow:hidden}.panel{position:absolute;inset:12px;max-width:1180px;margin:auto;background:linear-gradient(145deg,#0d1b28,#08121b);border:1px solid #374c5d;border-radius:24px;display:flex;flex-direction:column;justify-content:center;padding:38px 54px;overflow:hidden}.startLogo{width:120px;height:85px;object-fit:contain;margin:0 auto 8px}.eyebrow{color:var(--yellow);font-size:14px;font-weight:900;letter-spacing:3px}.start h1{font-size:clamp(38px,5vw,68px);line-height:.98;margin:10px 0 12px;letter-spacing:-2px}.start h1 span{color:var(--yellow)}.start p{font-size:18px;color:#bac7d0;max-width:800px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.stats div{background:#0d1d2a;border:1px solid #263a49;border-radius:15px;padding:13px;text-align:center}.stats b{display:block;color:var(--yellow);font-size:30px}.stats small{color:#aebbc6;font-weight:800;letter-spacing:1.5px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.fields label{font-size:13px;font-weight:800;color:#c8d1d8}.fields input{display:block;width:100%;margin-top:7px;background:#07111a;border:1px solid #385063;color:#fff;border-radius:12px;padding:14px 15px;outline:none}.fields input:focus{border-color:var(--yellow);box-shadow:0 0 0 2px #ffc40022}.startActions,.resultActions{display:flex;gap:12px;margin-top:18px}.primary,.secondary{border:0;border-radius:12px;padding:14px 22px;font-weight:900;letter-spacing:.8px}.primary{background:var(--yellow);color:#0b0f12;box-shadow:0 10px 30px #ffc40022}.secondary{background:#142332;color:#e5edf2;border:1px solid #334b5d}.exam{position:absolute;inset:0;overflow:hidden;background:#000}.videoWrap{position:absolute;inset:0;background:#000;display:flex;align-items:center;justify-content:center}.videoWrap video{width:100%;height:100%;object-fit:contain;background:#000;display:block}.clickLayer{position:absolute;inset:0;pointer-events:none}.topOverlay{position:absolute;top:18px;left:20px;right:20px;display:flex;justify-content:space-between;pointer-events:none}.pill{background:rgba(5,14,22,.86);border:1px solid #506171;border-radius:13px;padding:9px 14px;font-weight:800}.pill b{color:var(--yellow);font-size:19px}.responsePill b{color:var(--green)}.rightTools{position:absolute;right:20px;top:105px;display:flex;flex-direction:column;gap:10px}.rightTools button{width:50px;height:50px;border-radius:50%;border:1px solid #9eabb4;background:rgba(4,11,17,.82);color:#fff;font-size:23px}.tapPrompt{position:absolute;left:50%;bottom:102px;transform:translateX(-50%);background:var(--yellow);color:#080d11;border-radius:25px;padding:10px 24px;font-size:16px;font-weight:1000;text-align:center;box-shadow:0 8px 25px #ffc40033;pointer-events:none}.bottomHud{position:absolute;left:20px;right:20px;bottom:14px;display:grid;grid-template-columns:300px 1fr 180px;grid-template-rows:28px 18px;gap:5px 15px;align-items:center}.hint{grid-row:1/3;background:rgba(5,13,20,.86);border:1px solid #3b4e5d;border-radius:12px;padding:10px 13px;font-size:13px}.skip{grid-column:3;grid-row:1/3;height:54px;border:1px solid #fff;background:rgba(4,10,15,.82);color:#fff;border-radius:28px;font-weight:900}.timeline{grid-column:2;grid-row:2;display:flex;align-items:center;gap:10px;font-size:12px;font-weight:900}.track{height:18px;background:linear-gradient(180deg,#253746,#101c26);border:2px solid #526775;border-radius:999px;flex:1;position:relative;overflow:visible;box-shadow:inset 0 2px 5px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.04)}.progressFill{position:absolute;left:0;top:0;height:100%;width:0;background:linear-gradient(90deg,#ffe46a,#ffc400);border-radius:999px;box-shadow:0 0 12px rgba(255,196,0,.35);pointer-events:none}.playHead{position:absolute;top:50%;left:0;width:20px;height:20px;border-radius:50%;transform:translate(-50%,-50%);background:#fff;border:3px solid #ffc400;box-shadow:0 0 12px rgba(255,196,0,.65);pointer-events:none;z-index:4}.mark{display:block!important;position:absolute;top:50%;width:8px;height:24px;background:#ef233c;border:1px solid #ff6878;border-radius:3px;transform:translate(-50%,-50%);z-index:6;box-shadow:0 0 10px rgba(239,35,60,.65);pointer-events:none}.mark span{display:none}.hit{position:absolute;transform:translate(-50%,-50%);width:80px;height:80px;border:3px solid var(--yellow);border-radius:50%;display:grid;place-items:center;background:#ffc40022;animation:hit .9s ease-out forwards;pointer-events:none}.hit b{font-size:12px;background:#080f16dd;border-radius:8px;padding:5px;color:var(--yellow);white-space:nowrap}@keyframes hit{to{opacity:0;transform:translate(-50%,-50%) scale(1.7)}}.playOverlay{position:absolute;inset:0;display:grid;place-items:center;background:#0008}.playOverlay button{background:var(--yellow);border:0;border-radius:18px;padding:18px 28px;font-weight:1000}.result{align-items:center;text-align:center}.resultLogo{width:90px;height:65px;object-fit:contain}.result h2{font-size:38px;margin:10px}.candidateResult{color:#aab7c2}.finalScore{font-size:78px;font-weight:1000;color:var(--yellow);margin:8px}.status{font-size:20px;font-weight:1000}.status.pass{color:var(--green)}.status.fail{color:#ff536a}.result table{margin:15px auto;border-collapse:collapse;min-width:330px}.result th,.result td{padding:7px 22px;border-bottom:1px solid #263744}.toast{position:fixed;left:50%;bottom:92px;transform:translateX(-50%);background:#07131d;border:1px solid #516474;padding:11px 17px;border-radius:12px;opacity:0;pointer-events:none;z-index:100;font-weight:900}.toast.show{opacity:1}.toast.bad{border-color:#ff536a;color:#ff9aaa}
@media(max-width:800px){.topbar{height:58px;padding:5px 10px}.logo{width:48px;height:44px}.school{font-size:13px;letter-spacing:.8px}.testname{font-size:9px;letter-spacing:1.2px}.candidate{display:none}.hud{gap:9px}.clip{font-size:10px}.clip b{font-size:14px}.timer{font-size:20px;min-width:65px}.stage{height:calc(100dvh - 58px)}.panel{inset:7px;border-radius:16px;padding:18px;justify-content:flex-start;overflow:hidden}.startLogo{width:75px;height:55px}.eyebrow{font-size:10px;letter-spacing:2px}.start h1{font-size:29px;letter-spacing:-1px;margin:7px 0}.start p{font-size:13px;line-height:1.35;margin:6px 0}.stats{gap:6px;margin:10px 0}.stats div{padding:8px 3px}.stats b{font-size:20px}.stats small{font-size:8px}.fields{gap:8px}.fields input{padding:11px 10px;font-size:14px}.primary,.secondary{padding:11px 14px;font-size:12px}.rightTools{right:8px;top:70px;gap:6px}.rightTools button{width:39px;height:39px;font-size:18px}.topOverlay{top:8px;left:8px;right:8px}.pill{padding:6px 8px;font-size:10px}.pill b{font-size:14px}.tapPrompt{bottom:76px;font-size:10px;padding:7px 12px;border-radius:16px;max-width:210px}.bottomHud{left:8px;right:8px;bottom:7px;grid-template-columns:1fr 95px;grid-template-rows:25px 16px;gap:3px 8px}.hint{display:none}.skip{grid-column:2;grid-row:1/3;height:43px;font-size:11px}.timeline{grid-column:1;grid-row:1/3}.timeline span{font-size:9px}.track{height:5px}.result{justify-content:center}.resultLogo{width:65px;height:48px}.finalScore{font-size:55px}.result table{min-width:260px;font-size:12px}}
@media(max-width:430px) and (orientation:portrait){.videoWrap video{width:100%;height:100%;object-fit:contain}.tapPrompt{bottom:66px}.rightTools{top:63px}.bottomHud{bottom:5px}.panel{padding:15px}.start h1{font-size:25px}.stats{grid-template-columns:repeat(2,1fr)}}
/* V5 viewport-fit correction: keep every start/result screen inside the viewport */
.start.panel{padding:24px 42px;justify-content:center;overflow:hidden;min-height:0}
.startLogo{width:78px;height:58px;margin:0 auto 4px}
.start h1{font-size:clamp(34px,4.2vw,56px);line-height:.94;margin:7px 0 9px}
.start p{font-size:16px;margin:7px 0 12px}
.stats{gap:10px;margin:12px 0}
.stats div{padding:10px 8px}
.stats b{font-size:27px}
.fields{gap:12px}
.fields input{padding:12px 14px}
.startActions{margin-top:12px}
@media(max-height:760px) and (min-width:801px){
  .topbar{height:66px;padding:6px 18px}.stage{height:calc(100dvh - 66px)}
  .start.panel{inset:8px;padding:14px 34px}
  .startLogo{width:62px;height:46px;margin-bottom:2px}
  .eyebrow{font-size:12px}
  .start h1{font-size:clamp(30px,3.8vw,48px);margin:5px 0 7px}
  .start p{font-size:14px;margin:5px 0 8px}
  .stats{margin:8px 0;gap:8px}.stats div{padding:7px}.stats b{font-size:23px}.stats small{font-size:11px}
  .fields input{padding:10px 12px}.startActions{margin-top:9px}.primary,.secondary{padding:11px 18px}
}
@media(max-width:800px){
  .start.panel{padding:12px 16px;justify-content:center;overflow:hidden}
  .startLogo{width:62px;height:46px;margin-bottom:2px}
  .start h1{font-size:clamp(23px,7vw,30px);line-height:.96;margin:5px 0 7px}
  .start p{font-size:12px;line-height:1.25;margin:5px 0 8px}
  .stats{margin:7px 0;gap:5px}.stats div{padding:6px 3px}.stats b{font-size:19px}.stats small{font-size:7px}
  .fields{gap:7px}.fields input{padding:9px 9px;font-size:13px}.startActions{margin-top:8px}
}
@media(max-width:430px) and (orientation:portrait){
  .start.panel{inset:5px;padding:10px 12px}.startLogo{width:52px;height:40px}
  .start h1{font-size:24px}.start p{font-size:11px}.stats{margin:6px 0}.stats div{padding:5px 2px}.stats b{font-size:18px}
  .fields input{padding:8px;font-size:12px}.primary,.secondary{padding:9px 12px;font-size:11px}
}
/* V13: compact candidate feedback, stricter scoring, and no-scroll result screen */
.toast{bottom:24px;left:auto;right:24px;transform:none;padding:7px 12px;border-radius:9px;font-size:12px;min-width:48px;text-align:center}
.hit{display:none!important}
.result.panel{padding:22px 30px;justify-content:flex-start;overflow:hidden}
.resultLogo{width:68px;height:48px;margin-bottom:2px}
.result h2{font-size:30px;margin:4px 0}
.result .candidateResult{font-size:13px;margin-bottom:2px}
.result .finalScore{font-size:64px;line-height:1;margin:3px}
.result .status{font-size:17px;margin:2px 0 5px}
.scoreGrid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;width:min(850px,100%);margin:6px auto}
.scoreRow{display:flex;justify-content:space-between;gap:8px;background:#0d1d2a;border:1px solid #263a49;border-radius:7px;padding:6px 9px;font-size:11px}
.scoreRow b{color:var(--yellow)}
.resultSummary{display:flex;justify-content:center;gap:8px;width:min(850px,100%);margin:5px auto}
.resultSummary>div{background:#0d1d2a;border:1px solid #263a49;border-radius:8px;padding:6px 15px;min-width:115px}
.resultSummary span{display:block;color:#7f94a1;font-size:8px;font-weight:900;letter-spacing:1px}
.resultSummary b{display:block;color:var(--yellow);font-size:16px;margin-top:2px}
.save-status{font-size:10px;color:#8ea1ad;margin:3px 0}.save-status.ok{color:var(--green)}.save-status.error{color:#ff7181}
@media(max-width:800px){.result.panel{padding:12px 14px}.resultLogo{width:58px;height:40px}.result h2{font-size:24px}.result .finalScore{font-size:48px}.result .status{font-size:13px}.scoreGrid{grid-template-columns:repeat(2,1fr);gap:4px}.scoreRow{padding:5px 7px;font-size:10px}.resultSummary>div{min-width:85px;padding:5px 8px}.resultSummary b{font-size:14px}.toast{right:10px;bottom:10px}}

.limitModal{position:fixed;inset:0;background:rgba(0,0,0,.72);display:grid;place-items:center;z-index:200;backdrop-filter:blur(4px)}.limitCard{width:min(420px,calc(100vw - 32px));background:#0b1722;border:1px solid #596b7a;border-radius:20px;padding:28px;text-align:center;box-shadow:0 25px 70px #000}.limitIcon{width:58px;height:58px;border-radius:50%;background:var(--yellow);color:#071018;display:grid;place-items:center;margin:0 auto 14px;font-size:24px;font-weight:1000}.limitCard h3{margin:0 0 8px;color:var(--white);font-size:21px}.limitCard p{margin:0 0 20px;color:var(--muted);font-size:14px}.limitCard button{border:0;border-radius:10px;padding:10px 24px;background:var(--yellow);color:#071018;font-weight:900}

/* V16 mobile hardening: exam controls, result fit, and no response feedback during the test */
html,body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
.responsePill{min-width:110px;text-align:center}
@media(max-width:800px){
  .topbar{padding:4px 7px;height:54px;gap:6px;overflow:hidden}
  .brand{min-width:0;flex:1;gap:6px;overflow:hidden}
  .logo{width:42px;height:40px;flex:0 0 42px}
  .school{font-size:12px;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .testname{font-size:8px;letter-spacing:1px;white-space:nowrap}
  .hud{flex:0 0 auto;gap:6px;min-width:0}
  .clip{font-size:9px;letter-spacing:1px;white-space:nowrap}.clip b{font-size:13px}
  .timer{font-size:19px;min-width:58px;line-height:1}
  .stage{height:calc(100dvh - 54px)}
  .exam{inset:0}
  .videoWrap video{object-fit:contain;width:100%;height:100%}
  .topOverlay{top:7px;left:7px;right:7px}
  .pill{padding:6px 8px;border-radius:10px;font-size:9px}.pill b{font-size:13px}
  .rightTools{right:7px;top:60px;gap:5px}.rightTools button{width:38px;height:38px;font-size:17px}
  .tapPrompt{bottom:62px;font-size:9px;line-height:1.15;padding:7px 10px;border-radius:14px;max-width:185px}
  .bottomHud{left:7px;right:7px;bottom:5px;grid-template-columns:minmax(0,1fr) 86px;grid-template-rows:24px 14px;gap:2px 6px}
  .timeline{grid-column:1;grid-row:1/3;min-width:0;gap:6px}.timeline span{font-size:8px}.track{height:5px;min-width:0}
  .skip{grid-column:2;grid-row:1/3;height:40px;font-size:10px;border-radius:22px;padding:0 6px}
  .toast{display:none!important}
  .limitCard{width:min(340px,calc(100vw - 28px));padding:22px 18px}.limitCard h3{font-size:18px}.limitCard p{font-size:13px}
  .result.panel{inset:4px;padding:8px 10px;justify-content:center;border-radius:14px}
  .resultLogo{width:50px;height:34px;margin-bottom:0}.result h2{font-size:21px;margin:2px 0}.result .candidateResult{font-size:11px;margin-bottom:1px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result .finalScore{font-size:43px;margin:2px;line-height:.95}.result .status{font-size:12px;margin:2px 0 3px}
  .scoreGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin:3px auto;width:100%;max-width:360px}.scoreRow{padding:4px 6px;font-size:9px;min-height:25px}.resultSummary{gap:3px;margin:3px auto;width:100%;max-width:360px}.resultSummary>div{min-width:0;flex:1;padding:4px 4px}.resultSummary span{font-size:7px}.resultSummary b{font-size:12px}.save-status{font-size:8px;margin:2px 0}.resultActions{gap:5px;margin-top:4px;justify-content:center}.resultActions button{padding:8px 9px;font-size:9px}
}
@media(max-width:430px) and (orientation:portrait){
  .brand .testname{font-size:7px}.hud .clip{font-size:8px}.hud .clip b{font-size:12px}.timer{font-size:17px;min-width:52px}
  .rightTools{top:57px}.rightTools button{width:35px;height:35px}
  .tapPrompt{bottom:58px;max-width:160px;font-size:8px}
  .bottomHud{grid-template-columns:minmax(0,1fr) 76px}.skip{height:36px;font-size:9px}
  .result.panel{inset:3px;padding:6px 8px}.resultLogo{width:45px;height:30px}.result h2{font-size:19px}.result .finalScore{font-size:38px}.result .status{font-size:11px}.scoreRow{font-size:8px;padding:3px 5px}.resultSummary span{font-size:6px}.resultSummary b{font-size:11px}.resultActions button{padding:7px 8px;font-size:8px}
}
@media(max-width:800px) and (orientation:landscape){
  .topbar{height:48px}.stage{height:calc(100dvh - 48px)}.logo{width:38px;height:36px}.school{font-size:11px}.testname{font-size:7px}.timer{font-size:17px}.rightTools{top:54px}.rightTools button{width:34px;height:34px}.tapPrompt{bottom:53px;font-size:8px}.bottomHud{bottom:3px}.skip{height:34px}.result .finalScore{font-size:39px}.resultLogo{width:44px;height:30px}
}

/* V17 MOBILE UI REDESIGN — compact, readable, app-like candidate screens */
@media (max-width: 700px){
  html,body{background:#03070b;overflow:hidden}
  .app{background:linear-gradient(180deg,#04090e 0%,#07131d 100%)}
  .topbar{height:62px;min-height:62px;padding:6px 12px;border-bottom:1px solid #203442;background:rgba(2,7,12,.98)}
  .brand{gap:8px;align-items:center}
  .logo{width:48px;height:48px;flex:0 0 48px}
  .school{font-size:13px;letter-spacing:.9px;line-height:1.05}
  .testname{font-size:7px;letter-spacing:1.35px;margin-top:4px}
  .hud{gap:8px}
  .clip{font-size:9px;letter-spacing:1px}.clip b{font-size:14px}
  .timer{font-size:21px;min-width:60px}
  .stage{height:calc(100dvh - 62px)}

  /* Start screen: use the available space intentionally instead of a tiny centred cluster. */
  .start.panel{
    top:10px;bottom:auto;left:10px;right:10px;width:auto;height:auto;max-height:calc(100dvh - 82px);
    padding:20px 18px 22px;justify-content:flex-start;align-items:stretch;text-align:left;
    overflow-y:auto;overflow-x:hidden;border-radius:20px;
    background:radial-gradient(circle at 50% 0%,#102b3c 0,#0a1b28 34%,#07131d 72%);
    box-shadow:0 18px 55px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.03)
  }
  .start.panel:before{content:"";display:block;width:54px;height:4px;border-radius:5px;background:var(--yellow);margin:0 auto 15px;opacity:.95}
  .startLogo{width:78px;height:58px;margin:0 auto 8px}
  .start .eyebrow{text-align:center;font-size:9px;letter-spacing:2.5px}
  .start h1{text-align:center;font-size:clamp(26px,7.5vw,34px);line-height:1.02;letter-spacing:-.7px;margin:8px 0 11px}
  .start p{text-align:center;font-size:13px;line-height:1.45;margin:0 auto 15px;color:#c0ccd4;max-width:480px}
  .start p strong{color:#fff}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 15px}
  .stats div{padding:11px 7px;border-radius:14px;background:rgba(13,34,48,.9);border-color:#2b4658;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
  .stats b{font-size:24px;line-height:1.05}.stats small{font-size:8px;letter-spacing:1.8px}
  .fields{grid-template-columns:1fr;gap:10px;margin-top:0}
  .fields label{font-size:11px;letter-spacing:.2px}
  .fields input{margin-top:5px;padding:13px 12px;font-size:15px;border-radius:12px;background:#061019;border-color:#3b5669}
  .startActions{margin-top:13px}.startActions .primary{width:100%;padding:14px 18px;font-size:13px;border-radius:13px}

  /* Examination HUD */
  .topOverlay{top:8px;left:8px;right:8px}.pill{padding:7px 9px;border-radius:11px;font-size:9px}.pill b{font-size:14px}
  .responsePill{min-width:92px}
  .rightTools{right:8px;top:62px;gap:6px}.rightTools button{width:38px;height:38px}
  .tapPrompt{bottom:64px;max-width:190px;font-size:10px;line-height:1.2;padding:8px 12px;border-radius:15px}
  .bottomHud{left:8px;right:8px;bottom:7px;grid-template-columns:minmax(0,1fr) 86px;grid-template-rows:25px 15px;gap:2px 7px}
  .timeline{grid-column:1;grid-row:1/3;gap:6px}.timeline span{font-size:8px}.track{height:5px}
  .skip{grid-column:2;grid-row:1/3;height:40px;padding:0 7px;font-size:10px;border-radius:22px}

  /* Result: compact report card instead of a tiny island in a huge empty panel. */
  .result.panel{
    top:10px;bottom:auto;left:10px;right:10px;width:auto;height:auto;max-height:calc(100dvh - 82px);
    padding:20px 16px 20px;justify-content:flex-start;overflow-y:auto;overflow-x:hidden;border-radius:20px;
    background:radial-gradient(circle at 50% 0%,#102b3c 0,#0a1b28 38%,#07131d 78%);
    box-shadow:0 18px 55px rgba(0,0,0,.38)
  }
  .result.panel:before{content:"";display:block;width:54px;height:4px;border-radius:5px;background:var(--yellow);margin:0 auto 12px}
  .resultLogo{width:76px;height:55px;margin:0 auto 5px}
  .result .eyebrow{font-size:9px;letter-spacing:2.5px}
  .result h2{font-size:28px;line-height:1;margin:5px 0 5px;letter-spacing:.5px}
  .result .candidateResult{font-size:12px;line-height:1.4;margin-bottom:6px;color:#b6c5ce;max-width:100%}
  .result .finalScore{font-size:58px;line-height:.95;margin:3px 0 5px;letter-spacing:-1px}
  .result .status{font-size:12px;line-height:1.25;margin:2px 0 10px;letter-spacing:.2px}
  .scoreGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;max-width:none;margin:0 auto 9px}
  .scoreRow{min-height:34px;padding:7px 9px;border-radius:9px;font-size:11px;background:#0b2230;border-color:#2a4658}
  .scoreRow b{font-size:11px}
  .resultSummary{gap:6px;width:100%;max-width:none;margin:0 auto 8px}
  .resultSummary>div{padding:8px 5px;min-width:0;border-radius:10px;background:#0b2230;border-color:#2a4658}
  .resultSummary span{font-size:7px;letter-spacing:1.2px}.resultSummary b{font-size:14px}
  .save-status{font-size:9px;margin:3px 0 8px;min-height:11px}
  .resultActions{width:100%;display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:6px;margin-top:2px}
  .resultActions button{min-height:40px;padding:9px 6px;font-size:9px;border-radius:11px}
  .resultActions #printCertBtn{font-size:9px}

  .limitCard{border-radius:18px;padding:23px 18px}.limitIcon{width:54px;height:54px}.limitCard h3{font-size:18px;line-height:1.15}.limitCard p{font-size:13px;line-height:1.4}
}
@media (max-width:380px){
  .topbar{height:58px;min-height:58px;padding:5px 9px}.stage{height:calc(100dvh - 58px)}
  .logo{width:43px;height:43px;flex-basis:43px}.school{font-size:11px}.testname{font-size:6px}
  .clip{font-size:8px}.clip b{font-size:12px}.timer{font-size:18px;min-width:52px}
  .start.panel,.result.panel{left:7px;right:7px;top:7px;max-height:calc(100dvh - 72px);padding:17px 13px 18px;border-radius:17px}
  .start.panel:before,.result.panel:before{width:45px;height:3px;margin-bottom:10px}
  .startLogo{width:66px;height:49px}.start h1{font-size:24px}.start p{font-size:11px;margin-bottom:12px}
  .stats{gap:6px;margin-bottom:12px}.stats div{padding:9px 4px}.stats b{font-size:21px}.stats small{font-size:7px}
  .fields{gap:8px}.fields label{font-size:10px}.fields input{padding:11px;font-size:14px}.startActions{margin-top:10px}.startActions .primary{padding:12px;font-size:12px}
  .resultLogo{width:64px;height:47px}.result h2{font-size:24px}.result .candidateResult{font-size:10px}.result .finalScore{font-size:50px}.result .status{font-size:10px;margin-bottom:8px}
  .scoreGrid{gap:4px;margin-bottom:7px}.scoreRow{min-height:31px;padding:6px 7px;font-size:9px}.scoreRow b{font-size:9px}
  .resultSummary{gap:4px;margin-bottom:6px}.resultSummary>div{padding:6px 3px}.resultSummary span{font-size:6px}.resultSummary b{font-size:12px}.save-status{font-size:8px;margin-bottom:6px}
  .resultActions{gap:4px}.resultActions button{min-height:36px;padding:7px 4px;font-size:8px}
}


/* V18 — TRUE MOBILE APP EXPERIENCE */
@media (max-width:700px){
  :root{--safe-top:env(safe-area-inset-top);--safe-bottom:env(safe-area-inset-bottom)}
  html,body{width:100%;height:100%;height:100dvh;overflow:hidden;background:#02060a;-webkit-tap-highlight-color:transparent}
  body{overscroll-behavior:none}
  .app{width:100%;height:100dvh;padding:0;background:linear-gradient(180deg,#02070b 0%,#06111a 100%)}
  .topbar{height:68px;min-height:68px;padding:calc(7px + var(--safe-top)) 14px 7px;border-bottom:1px solid rgba(255,196,0,.13);box-shadow:0 8px 28px rgba(0,0,0,.28)}
  .brand{min-width:0;gap:9px;flex:1}
  .brand .logo,.logo{width:45px;height:45px;flex:0 0 45px}
  .school{font-size:13px;line-height:1;letter-spacing:1px;white-space:nowrap}
  .testname{font-size:7px;letter-spacing:1.7px;margin-top:5px;white-space:nowrap}
  .hud{gap:9px;min-width:0}.candidate{display:none}.clip{font-size:8px;letter-spacing:1.3px;white-space:nowrap}.clip b{font-size:13px}.timer{font-size:20px;min-width:57px;white-space:nowrap}
  .stage{height:calc(100dvh - 68px);overflow:hidden}

  /* Home / start screen: deliberately designed like a native app home, not a shrunk desktop page. */
  .start.panel{position:absolute;inset:0;width:100%;height:100%;max-height:none;margin:0;padding:22px 18px calc(18px + var(--safe-bottom));border:0;border-radius:0;overflow:hidden;justify-content:flex-start;align-items:stretch;text-align:left;background:
    radial-gradient(120% 42% at 50% 0%,rgba(255,196,0,.10),transparent 60%),
    linear-gradient(180deg,#081824 0%,#06121c 46%,#040b11 100%);box-shadow:none}
  .start.panel:before{width:46px;height:3px;margin:0 auto 15px;border-radius:99px;background:var(--yellow);box-shadow:0 0 18px rgba(255,196,0,.3)}
  .startLogo{width:76px;height:57px;margin:0 auto 9px}
  .start .eyebrow{text-align:center;font-size:8px;letter-spacing:2.8px;color:#ffc400;margin-top:2px}
  .start h1{text-align:center;font-size:29px;line-height:1.03;letter-spacing:-.6px;margin:9px 0 10px}
  .start h1 span{display:block;margin-top:4px;font-size:.86em;letter-spacing:-.3px}
  .start p{text-align:center;font-size:12px;line-height:1.45;color:#b9c7d0;margin:0 auto 15px;max-width:410px}
  .stats{grid-template-columns:repeat(4,1fr);gap:6px;margin:0 0 17px}
  .stats div{padding:10px 3px 9px;border-radius:13px;background:linear-gradient(180deg,#0c2433,#091a27);border:1px solid #294758;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
  .stats b{font-size:20px;line-height:1.05}.stats small{font-size:6px;letter-spacing:1.2px;color:#91a7b4}
  .fields{grid-template-columns:1fr;gap:11px;margin:0}
  .fields label{font-size:11px;color:#d3dce2;font-weight:800}
  .fields input{height:48px;margin-top:6px;padding:0 14px;font-size:15px;border-radius:14px;background:#040d14;border:1px solid #345366;box-shadow:inset 0 1px 8px rgba(0,0,0,.2)}
  .fields input:focus{border-color:var(--yellow);box-shadow:0 0 0 2px rgba(255,196,0,.10),inset 0 1px 8px rgba(0,0,0,.2)}
  .startActions{margin-top:15px;display:block}
  .startActions .primary{width:100%;height:52px;border-radius:16px;font-size:13px;letter-spacing:1.1px;box-shadow:0 12px 30px rgba(255,196,0,.15)}
  .startActions:after{content:'Secure computer-based examination • 10 clips • 100 marks';display:block;text-align:center;color:#657b89;font-size:8px;letter-spacing:.5px;margin-top:11px}

  /* Examination = immersive app mode */
  .exam{inset:0;background:#000}
  .videoWrap video{width:100%;height:100%;object-fit:contain}
  .topOverlay{top:9px;left:9px;right:9px}.pill{padding:7px 10px;border-radius:11px;font-size:8px;background:rgba(3,10,16,.78);backdrop-filter:blur(10px)}.pill b{font-size:13px}.responsePill{min-width:82px;text-align:center}
  .rightTools{right:9px;top:58px;gap:7px}.rightTools button{width:38px;height:38px;border-radius:12px;font-size:18px;background:rgba(3,10,16,.72);backdrop-filter:blur(10px)}
  .tapPrompt{bottom:72px;max-width:205px;padding:8px 13px;border-radius:14px;font-size:9px;line-height:1.25;box-shadow:0 6px 22px rgba(0,0,0,.25)}
  .bottomHud{left:9px;right:9px;bottom:calc(7px + var(--safe-bottom));grid-template-columns:minmax(0,1fr) 82px;grid-template-rows:26px 16px;gap:3px 7px}
  .hint{display:none}.timeline{grid-column:1;grid-row:1/3;gap:6px}.timeline span{font-size:8px}.track{height:14px;border-width:1.5px;background:linear-gradient(180deg,#263947,#101b24);box-shadow:inset 0 2px 4px rgba(0,0,0,.55)}.playHead{width:15px;height:15px;border-width:2px}.mark{width:6px;height:18px;border-radius:2px}
  .skip{grid-column:2;grid-row:1/3;height:39px;padding:0 5px;border-radius:14px;font-size:9px;background:rgba(4,10,15,.8);backdrop-filter:blur(8px)}

  /* Results = compact mobile report / dashboard */
  .result.panel{position:absolute;inset:0;width:100%;height:100%;max-height:none;margin:0;padding:20px 14px calc(14px + var(--safe-bottom));border:0;border-radius:0;overflow:hidden;justify-content:flex-start;align-items:stretch;text-align:center;background:
    radial-gradient(100% 30% at 50% 0%,rgba(255,196,0,.08),transparent 65%),linear-gradient(180deg,#081824,#050e16 72%,#03090e)}
  .result.panel:before{width:46px;height:3px;margin:0 auto 10px}
  .resultLogo{width:62px;height:46px;margin:0 auto 4px}
  .result .eyebrow{font-size:8px;letter-spacing:2.6px}.result h2{font-size:25px;margin:5px 0 3px}.result .candidateResult{font-size:11px;margin:0 auto 5px;color:#9fb1bd}
  .result .finalScore{font-size:55px;line-height:.95;margin:4px 0 4px;letter-spacing:-1px;text-shadow:0 4px 22px rgba(255,196,0,.12)}
  .result .status{font-size:11px;line-height:1.2;margin:2px 0 9px}
  .scoreGrid{grid-template-columns:repeat(2,1fr);gap:5px;width:100%;margin:0 0 8px}
  .scoreRow{min-height:33px;padding:7px 8px;border-radius:10px;font-size:10px;background:linear-gradient(180deg,#0b2230,#091b27);border:1px solid #294758}.scoreRow b{font-size:10px}
  .resultSummary{grid-template-columns:repeat(3,1fr);display:grid;gap:5px;width:100%;margin:0 0 7px}.resultSummary>div{padding:7px 3px;border-radius:10px;background:#091b27;border:1px solid #294758}.resultSummary span{font-size:6px;letter-spacing:1px}.resultSummary b{font-size:13px}
  .save-status{font-size:8px;min-height:10px;margin:2px 0 6px}.resultActions{display:grid;grid-template-columns:1.35fr 1fr 1fr;width:100%;gap:5px;margin:0}.resultActions button{min-height:40px;padding:8px 4px;border-radius:12px;font-size:8px}

  /* response limit modal feels native on phone */
  .limitModal{padding:18px;background:rgba(0,0,0,.68);backdrop-filter:blur(5px)}.limitCard{width:min(340px,calc(100vw - 36px));border-radius:22px;padding:25px 18px;background:linear-gradient(180deg,#102333,#07131d);box-shadow:0 25px 70px rgba(0,0,0,.55);text-align:center}.limitIcon{width:56px;height:56px;margin:0 auto 12px}.limitCard h3{font-size:17px}.limitCard p{font-size:12px}.limitCard button{min-width:100px;min-height:42px;border-radius:13px}
}

/* Very small phones */
@media(max-width:380px){
  .topbar{height:62px;min-height:62px;padding-left:10px;padding-right:10px}.stage{height:calc(100dvh - 62px)}
  .brand .logo,.logo{width:40px;height:40px;flex-basis:40px}.school{font-size:11px}.testname{font-size:6px;letter-spacing:1.3px}.timer{font-size:18px;min-width:51px}.clip{font-size:7px}.clip b{font-size:12px}
  .start.panel{padding:17px 13px calc(14px + var(--safe-bottom))}.startLogo{width:66px;height:49px}.start h1{font-size:25px}.start p{font-size:11px;margin-bottom:12px}.stats{gap:5px;margin-bottom:13px}.stats div{padding:9px 2px}.stats b{font-size:18px}.stats small{font-size:5.5px}.fields{gap:8px}.fields input{height:45px;font-size:14px}.startActions .primary{height:48px}.startActions:after{font-size:7px;margin-top:8px}
  .result.panel{padding:16px 10px calc(10px + var(--safe-bottom))}.resultLogo{width:55px;height:40px}.result h2{font-size:22px}.result .finalScore{font-size:49px}.scoreRow{min-height:30px;padding:6px;font-size:9px}.scoreRow b{font-size:9px}.resultSummary>div{padding:6px 2px}.resultActions button{min-height:37px;font-size:7.5px}
}

/* V20 — tube-style playback progress + red response markers */
.installAppCard{display:flex;align-items:center;gap:12px;margin-top:14px;padding:12px 14px;border:1px solid #2d495b;border-radius:15px;background:linear-gradient(135deg,rgba(14,39,54,.95),rgba(7,19,29,.96));box-shadow:0 10px 28px rgba(0,0,0,.2)}
.installAppIcon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--yellow);color:#081018;font-size:21px;font-weight:900;flex:0 0 auto}
.installAppCopy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;text-align:left}.installAppCopy strong{font-size:12px;color:#fff}.installAppCopy span{font-size:10px;line-height:1.3;color:#8fa5b2}.installAppBtn{border:1px solid rgba(255,196,0,.65);background:rgba(255,196,0,.12);color:var(--yellow);font-size:10px;font-weight:900;letter-spacing:1px;border-radius:10px;padding:10px 12px;flex:0 0 auto}
.installHelpModal{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(8px)}.installHelpCard{width:min(370px,calc(100vw - 34px));position:relative;text-align:center;padding:28px 20px 20px;border:1px solid #3b5668;border-radius:24px;background:linear-gradient(180deg,#102535,#07131d);box-shadow:0 30px 80px rgba(0,0,0,.6)}.installHelpClose{position:absolute;right:12px;top:10px;width:34px;height:34px;border:1px solid #41596a;border-radius:50%;background:#091720;color:#fff;font-size:22px}.installHelpIcon{font-size:35px;margin-bottom:8px}.installHelpCard h3{margin:7px 0 8px;font-size:24px}.installHelpCard p{margin:0 0 18px;color:#aebec8;font-size:13px;line-height:1.5}.installHelpCard .primary{min-width:120px}
@media(max-width:700px){.installAppCard{margin-top:13px;padding:11px 12px;border-radius:14px}.installAppCopy strong{font-size:11px}.installAppCopy span{font-size:9px}.installAppBtn{padding:9px 10px;font-size:9px}.mark{width:2px;height:13px}.mark span{width:7px;height:7px}.installHelpCard h3{font-size:22px}}

/* V21 candidate access code */
.fields{grid-template-columns:repeat(3,minmax(0,1fr))}.access-code-msg{margin-top:8px;color:#ff7181;font-size:12px;font-weight:1000;letter-spacing:.8px;text-align:left}.access-code-msg[hidden]{display:none!important}@media(max-width:800px){.fields{grid-template-columns:1fr}.access-code-msg{font-size:10px;margin-top:5px}}

/* V24 — candidate exam interaction cursor + history */
@media (pointer:fine){
  .exam, .exam video, .exam .clickLayer, .exam .videoWrap{cursor:url('hand-cursor.svg') 16 6, pointer !important}
  .exam button{cursor:url('hand-cursor.svg') 16 6, pointer !important}
}
.attemptsLink{display:block;width:100%;margin:10px auto 0;padding:11px 14px;border:1px solid #385468;border-radius:12px;background:rgba(8,23,34,.82);color:#d9e4ea;font-size:11px;font-weight:900;letter-spacing:1px}
.attemptsLink:hover{border-color:rgba(255,196,0,.65);color:var(--yellow)}
.attemptsModal{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.76);backdrop-filter:blur(10px)}
.attemptsCard{position:relative;width:min(560px,calc(100vw - 28px));max-height:min(760px,calc(100dvh - 28px));overflow:auto;padding:30px 22px 20px;border:1px solid #385468;border-radius:24px;background:linear-gradient(180deg,#102535,#07131d 80%);box-shadow:0 30px 90px rgba(0,0,0,.65)}
.attemptClose{position:absolute;right:12px;top:11px;width:36px;height:36px;border:1px solid #41596a;border-radius:50%;background:#091720;color:#fff;font-size:23px;line-height:1}
.attemptIcon{width:50px;height:50px;margin:0 auto 10px;display:grid;place-items:center;border-radius:16px;background:rgba(255,196,0,.12);border:1px solid rgba(255,196,0,.4);color:var(--yellow);font-size:28px}
.attemptsCard .eyebrow{text-align:center;font-size:9px;letter-spacing:2.6px;color:var(--yellow)}
.attemptsCard h3{text-align:center;margin:7px 0 6px;font-size:24px}.attemptIntro{text-align:center;color:#9fb2bf;font-size:12px;line-height:1.5;margin:0 auto 15px;max-width:430px}
.attemptSearch{display:grid;grid-template-columns:1fr 90px;gap:7px}.attemptSearch input{min-width:0;height:45px;padding:0 13px;border-radius:12px;background:#040d14;border:1px solid #345366;color:#fff}.attemptSearch input:focus{outline:none;border-color:var(--yellow);box-shadow:0 0 0 2px rgba(255,196,0,.1)}.attemptSearch .primary{height:45px;padding:0 10px;border-radius:12px;font-size:11px}
.attemptMsg{min-height:18px;margin:8px 2px 4px;color:#8fa5b2;font-size:10px;font-weight:800}.attemptMsg.ok{color:#39ff72}.attemptMsg.bad{color:#ff7181}
.attemptList{display:grid;gap:8px}.attemptCard{padding:13px;border-radius:15px;background:linear-gradient(180deg,#0b2230,#091923);border:1px solid #294758}.attemptTop{display:flex;align-items:center;justify-content:space-between;gap:10px}.attemptTop strong{display:block;font-size:13px;margin-top:3px}.attemptDate{font-size:9px;color:#8398a6}.attemptStatus{font-size:9px;font-weight:1000;letter-spacing:1px}.attemptStatus.pass{color:#39ff72}.attemptStatus.fail{color:#ff7181}.attemptScore{display:flex;align-items:baseline;gap:4px;margin:7px 0 1px}.attemptScore b{font-size:29px;color:var(--yellow)}.attemptScore span{font-size:11px;color:#7f94a1}.attemptMeta{font-size:9px;color:#8fa5b2}.attemptActions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.attemptReportBtn,.attemptCertBtn{min-height:32px;padding:7px 10px;border-radius:10px;border:1px solid rgba(255,196,0,.55);background:rgba(255,196,0,.09);color:var(--yellow);font-size:9px;font-weight:1000;letter-spacing:.6px}.attemptReportBtn{border-color:#385468;background:rgba(255,255,255,.025);color:#d9e4ea}.attemptReportBtn:hover{border-color:rgba(255,196,0,.7);color:var(--yellow)}.attemptReportBtn:disabled,.attemptCertBtn:disabled{opacity:.65}.attemptEmpty,.attemptLoading{text-align:center;padding:22px 10px;color:#8fa5b2;font-size:11px;border:1px dashed #294758;border-radius:14px}.attemptPrivacy{text-align:center;margin-top:12px;color:#607583;font-size:8px;line-height:1.4}
@media(max-width:700px){.attemptsCard{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:25px 14px 15px;border-radius:20px}.attemptsCard h3{font-size:21px}.attemptIntro{font-size:11px}.attemptSearch{grid-template-columns:1fr 78px}.attemptCard{padding:11px}.attemptScore b{font-size:27px}.attemptActions{display:grid;grid-template-columns:1fr}.attemptReportBtn,.attemptCertBtn{width:100%}.attemptsLink{margin-top:8px;height:44px}}

/* V25 — modern, uncluttered HPT home screen */
.start.panel{
  justify-content:center;
  padding:28px 52px;
  background:
    radial-gradient(900px 420px at 75% 18%,rgba(255,196,0,.075),transparent 65%),
    radial-gradient(700px 500px at 10% 100%,rgba(26,82,112,.16),transparent 68%),
    linear-gradient(145deg,#0b1b28 0%,#07131d 55%,#040b11 100%);
}
.start.panel:after{
  content:"";position:absolute;inset:auto -8% -35% 35%;height:55%;
  background:linear-gradient(145deg,transparent 20%,rgba(255,196,0,.035) 21%,transparent 22%,transparent 48%,rgba(255,255,255,.018) 49%,transparent 50%);
  transform:skewX(-18deg);pointer-events:none;
}
.startLogo{width:72px;height:54px;margin:0 auto 3px;position:relative;z-index:2}
.start .eyebrow{text-align:center;font-size:12px;letter-spacing:3.2px;position:relative;z-index:2}
.start h1{text-align:center;font-size:clamp(34px,4vw,54px);line-height:.98;margin:8px 0 9px;position:relative;z-index:2}
.start p{text-align:center;max-width:700px;margin:0 auto 14px;font-size:15px;line-height:1.45;position:relative;z-index:2}
.stats{position:relative;z-index:2;max-width:980px;width:100%;margin:0 auto 13px;gap:9px}
.stats div{padding:9px 8px;border-radius:14px;background:linear-gradient(180deg,rgba(13,34,48,.96),rgba(8,23,34,.96));border-color:#294758}
.stats b{font-size:25px}.stats small{font-size:10px}
.fields{position:relative;z-index:2;max-width:980px;width:100%;margin:0 auto;grid-template-columns:1.35fr 1.15fr .7fr;gap:10px}
.fields label{font-size:11px}.fields input{margin-top:5px;padding:11px 13px;height:45px;border-radius:12px}
.access-code-msg{position:relative;z-index:2;max-width:980px;width:100%;margin:5px auto 0}
.startActions{position:relative;z-index:2;max-width:980px;width:100%;margin:11px auto 0;display:block}
.startActions .primary{width:100%;height:48px;border-radius:14px;font-size:13px}
.attemptsLink{position:absolute;right:22px;top:20px;z-index:10;width:auto;margin:0;padding:9px 13px;border-radius:12px;background:rgba(5,14,22,.82);border:1px solid #385468;color:#aebdc7;font-size:9px;letter-spacing:1px;white-space:nowrap;backdrop-filter:blur(8px)}
.attemptsLink:before{content:"↗";display:inline-block;margin-right:6px;color:var(--yellow);font-size:11px}
.attemptsLink:hover{border-color:rgba(255,196,0,.7);color:var(--yellow);background:rgba(255,196,0,.06)}
.installAppCard{position:relative;z-index:2;max-width:980px;width:100%;margin:10px auto 0}

@media(max-width:800px){
  .start.panel{
    padding:18px 16px calc(15px + var(--safe-bottom));
    justify-content:center;
    background:
      radial-gradient(130% 35% at 50% 0%,rgba(255,196,0,.09),transparent 65%),
      linear-gradient(180deg,#081824 0%,#06131d 55%,#03090e 100%);
  }
  .startLogo{width:65px;height:48px;margin:0 auto 4px}
  .start .eyebrow{font-size:7.5px;letter-spacing:2.5px}
  .start h1{font-size:clamp(24px,7vw,30px);line-height:1.02;margin:7px 0 7px}
  .start h1 span{font-size:.86em;display:block;margin-top:3px}
  .start p{font-size:11px;line-height:1.4;margin:0 auto 11px;max-width:340px}
  .stats{grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:11px}
  .stats div{padding:8px 2px;border-radius:11px}
  .stats b{font-size:18px}.stats small{font-size:5.5px;letter-spacing:1px}
  .fields{grid-template-columns:1fr;gap:8px}
  .fields label{font-size:10px}.fields input{height:44px;margin-top:5px;padding:0 12px;font-size:14px;border-radius:12px}
  .startActions{margin-top:10px}.startActions .primary{height:48px;border-radius:14px;font-size:12px}
  .attemptsLink{top:12px;right:12px;padding:8px 9px;border-radius:10px;font-size:7.5px;letter-spacing:.7px}
  .attemptsLink:before{font-size:9px;margin-right:4px}
  .installAppCard{margin-top:9px;padding:9px 10px;border-radius:13px}
  .installAppIcon{width:34px;height:34px;border-radius:10px;font-size:18px}
  .installAppCopy{gap:2px}.installAppCopy strong{font-size:10px}.installAppCopy span{font-size:8px}
  .installAppBtn{padding:8px 9px;font-size:8px}
}
@media(max-width:380px){
  .start.panel{padding:15px 12px calc(11px + var(--safe-bottom))}
  .startLogo{width:58px;height:43px}.start h1{font-size:23px}.start p{font-size:10px;margin-bottom:9px}
  .stats{margin-bottom:9px}.stats div{padding:7px 1px}.stats b{font-size:17px}.stats small{font-size:5px}
  .fields{gap:7px}.fields input{height:42px;font-size:13px}.startActions{margin-top:8px}.startActions .primary{height:45px}
  .installAppCard{margin-top:7px}.installAppCopy span{display:none}.installAppBtn{padding:7px 8px}
}

/* V26 — cinematic HPT landing screen using the supplied Raju HPT artwork */
.start.panel{
  inset:0;
  width:100%;
  max-width:none;
  margin:0;
  min-height:0;
  height:100%;
  border:0;
  border-radius:0;
  padding:0;
  justify-content:center;
  align-items:stretch;
  text-align:left;
  overflow:hidden;
  background:#06111b url('hpt-home-bg.png') center center / cover no-repeat;
}
.start.panel:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(2,8,13,.04) 0%,rgba(2,8,13,.05) 43%,rgba(2,8,13,.46) 57%,rgba(2,8,13,.82) 69%,rgba(2,8,13,.94) 100%);
  pointer-events:none;
  z-index:0;
}
.startInfoBadge,.startLogo,.start .eyebrow,.start h1,.start p{display:none!important}
.startRightPanel{
  position:absolute;
  z-index:1;
  top:5.5%; right:3.5%; bottom:5.5%;
  width:min(43%,590px);
  border:1px solid rgba(118,163,189,.28);
  border-radius:30px;
  background:linear-gradient(145deg,rgba(7,21,31,.82),rgba(3,10,16,.92));
  box-shadow:0 28px 90px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter:blur(12px);
}
.startRightPanel:before{
  content:"";position:absolute;inset:0;border-radius:30px;
  background:radial-gradient(circle at 80% 5%,rgba(255,196,0,.11),transparent 32%),linear-gradient(180deg,rgba(255,255,255,.025),transparent 25%);
}
.rightPanelGlow{position:absolute;width:220px;height:220px;right:-80px;top:-70px;border-radius:50%;background:rgba(255,196,0,.08);filter:blur(30px)}
.stats,.fields,.access-code-msg,.startActions,.installAppCard{
  position:relative;z-index:3;width:auto;max-width:none;margin-left:auto;margin-right:calc(3.5% + 26px);width:min(36%,500px);
}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:-255px;margin-bottom:17px;transform:translateY(-2px)}
.stats div{padding:8px 5px;border-radius:12px;background:rgba(9,29,42,.74);border:1px solid rgba(73,111,130,.5);box-shadow:none}
.stats b{font-size:23px}.stats small{font-size:8px;letter-spacing:1px}
.fields{grid-template-columns:1fr;gap:12px;margin-bottom:0}
.fields label{font-size:11px;letter-spacing:.2px;color:#dbe4e9}
.fields input{height:49px;padding:0 15px;margin-top:6px;border-radius:14px;background:rgba(3,12,19,.82);border:1px solid #3a596c;font-size:14px;box-shadow:inset 0 1px 10px rgba(0,0,0,.25)}
.fields input:focus{border-color:var(--yellow);box-shadow:0 0 0 2px rgba(255,196,0,.11),0 8px 30px rgba(0,0,0,.15)}
.access-code-msg{margin-top:7px;margin-bottom:0}
.startActions{margin-top:14px;display:block}
.startActions .primary{height:56px;width:100%;border-radius:16px;font-size:14px;letter-spacing:1px;box-shadow:0 15px 40px rgba(255,196,0,.18)}
.attemptsLink{
  position:absolute;z-index:5;right:calc(3.5% + 26px);top:calc(5.5% + 24px);width:auto;margin:0;
  min-height:40px;padding:8px 11px 8px 10px;display:flex;align-items:center;gap:8px;
  border:1px solid rgba(255,196,0,.38);border-radius:12px;background:rgba(3,11,17,.7);color:#dbe5ea;
  font-size:9px;font-weight:900;letter-spacing:.9px;white-space:nowrap;backdrop-filter:blur(12px);box-shadow:0 10px 28px rgba(0,0,0,.22)
}
.attemptsIcon{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:rgba(255,196,0,.12);color:var(--yellow);font-size:13px}
.attemptsArrow{font-size:17px;line-height:1;color:#7f939f;margin-left:2px}
.attemptsLink:before{display:none}.attemptsLink:hover{border-color:rgba(255,196,0,.8);color:#fff;background:rgba(255,196,0,.08);transform:translateY(-1px)}
.attemptsLink:hover .attemptsArrow{color:var(--yellow)}
.installAppCard{margin-top:13px;padding:10px 12px;border-radius:14px;background:rgba(5,16,24,.72);border-color:rgba(67,101,119,.7)}
.installAppCopy strong{font-size:11px}.installAppCopy span{font-size:9px}.installAppIcon{width:34px;height:34px}

@media (min-width:801px){
  .stats,.fields,.access-code-msg,.startActions,.installAppCard{width:min(36%,500px)}
  .stats{margin-top:-245px}
}

@media (max-width:1100px) and (min-width:801px){
  .start.panel{background-position:left center}
  .startRightPanel{right:2%;width:47%;top:4%;bottom:4%}
  .stats,.fields,.access-code-msg,.startActions,.installAppCard{width:40%;margin-right:calc(2% + 20px)}
  .stats{margin-top:-225px}
  .attemptsLink{right:calc(2% + 20px)}
}

@media (max-width:700px){
  .start.panel{
    padding:0 14px calc(10px + var(--safe-bottom));
    justify-content:flex-end;
    background-position:27% center;
    background-size:auto 100%;
  }
  .start.panel:after{
    background:linear-gradient(180deg,rgba(2,8,13,.02) 0%,rgba(2,8,13,.16) 24%,rgba(2,8,13,.66) 43%,rgba(2,8,13,.96) 62%,rgba(2,8,13,.99) 100%);
  }
  .startRightPanel{
    top:auto;left:9px;right:9px;bottom:8px;width:auto;height:58%;
    min-height:390px;border-radius:25px;background:linear-gradient(180deg,rgba(5,17,26,.74),rgba(3,10,16,.94));
  }
  .startRightPanel:after{content:"START YOUR HPT";position:absolute;top:19px;left:22px;color:#fff;font-size:18px;font-weight:900;letter-spacing:.4px}
  .startRightPanel:before{border-radius:25px}
  .stats,.fields,.access-code-msg,.startActions,.installAppCard{
    width:auto;margin-left:20px;margin-right:20px;
  }
  .stats{grid-template-columns:repeat(4,1fr);gap:5px;margin-top:0;margin-bottom:11px;transform:none}
  .stats div{padding:7px 2px;border-radius:10px}.stats b{font-size:17px}.stats small{font-size:5.5px}
  .fields{gap:8px;margin-bottom:0}
  .fields label{font-size:9px}.fields input{height:42px;margin-top:4px;padding:0 12px;border-radius:12px;font-size:13px}
  .access-code-msg{margin-top:5px}
  .startActions{margin-top:9px}.startActions .primary{height:47px;border-radius:13px;font-size:12px}
  .attemptsLink{top:auto;right:30px;bottom:calc(58% + 14px);min-height:36px;padding:7px 9px;border-radius:11px;font-size:7px;letter-spacing:.7px}
  .attemptsIcon{width:20px;height:20px;font-size:11px}.attemptsArrow{font-size:15px}
  .installAppCard{margin-top:8px;padding:8px 9px;border-radius:12px}.installAppCopy strong{font-size:9px}.installAppCopy span{font-size:7px}.installAppIcon{width:30px;height:30px;font-size:16px}.installAppBtn{padding:7px 8px;font-size:7px}
}

@media (max-width:380px){
  .startRightPanel{height:64%;min-height:390px;bottom:6px}
  .startRightPanel:after{top:16px;font-size:16px}.stats{margin-bottom:8px}.fields{gap:6px}.fields input{height:39px;font-size:12px}.startActions{margin-top:7px}.startActions .primary{height:43px}.installAppCard{margin-top:6px}.attemptsLink{bottom:calc(64% + 10px)}
}


/* V27 — clean cinematic-free premium HPT home. No photographic background. */
.topbar{height:76px;padding:7px 24px;background:linear-gradient(180deg,rgba(2,7,12,.98),rgba(4,10,16,.96));}
.homeTools{display:flex;align-items:center;gap:8px;margin-left:auto;}
.homeTool{height:40px;border:1px solid #294252;background:rgba(9,22,32,.88);color:#c4d0d8;border-radius:12px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:9px;font-weight:900;letter-spacing:1px;transition:.18s ease;backdrop-filter:blur(8px)}
.homeTool:hover{border-color:rgba(255,196,0,.75);color:var(--yellow);transform:translateY(-1px);background:rgba(255,196,0,.07)}
.homeTool.iconOnly{width:40px;padding:0;font-size:20px;line-height:1}
.toolIcon{color:var(--yellow);font-size:14px}

#homeTools{z-index:30}
.stage{background:
  radial-gradient(900px 550px at 74% 42%,rgba(255,196,0,.065),transparent 65%),
  radial-gradient(700px 500px at 18% 85%,rgba(24,74,103,.18),transparent 65%),
  linear-gradient(135deg,#061019 0%,#081722 45%,#03080d 100%);}
.stage:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.32;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to right,transparent,black 18%,black 82%,transparent)}
.start.panel{inset:0;max-width:none;width:100%;border:0;border-radius:0;padding:42px clamp(28px,6vw,100px);display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);grid-template-rows:1fr auto;column-gap:clamp(35px,7vw,110px);align-items:center;justify-content:initial;background:transparent;overflow:hidden}
.start.panel:after{content:"";position:absolute;right:47%;top:-20%;width:1px;height:140%;background:linear-gradient(transparent,rgba(255,196,0,.22),transparent);transform:rotate(14deg);pointer-events:none}
.homeHero{position:relative;z-index:2;max-width:720px;padding:8px 0 12px}
.heroBadge,.cardEyebrow{font-size:11px;letter-spacing:3px;font-weight:900;color:var(--yellow)}
.heroBadge{display:flex;align-items:center;gap:8px;margin-bottom:20px}.badgeDot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 12px rgba(57,255,114,.5)}
.heroBrand{display:flex;align-items:center;gap:16px;margin-bottom:20px}.heroLogo{width:78px;height:62px;object-fit:contain}.heroSchool{font-size:clamp(18px,2vw,25px);font-weight:900;letter-spacing:1.7px}.heroTest{margin-top:4px;color:var(--yellow);font-size:12px;font-weight:900;letter-spacing:2.5px}
.homeHero h1{font-size:clamp(42px,5.3vw,78px);line-height:.96;letter-spacing:-2.5px;margin:0 0 16px;font-weight:900}.homeHero h1 span{color:var(--yellow)}
.homeHero p{max-width:590px;font-size:18px;line-height:1.55;color:#aebdc7;margin:0 0 25px}.homeHero p strong{color:#f4f7fa}
.featureLine{display:flex;align-items:center;gap:20px;color:#7e929f;font-size:9px;font-weight:900;letter-spacing:1.5px}.featureLine span{display:flex;align-items:baseline;gap:6px}.featureLine b{color:#f4f7fa;font-size:19px}.featureLine i{height:22px;width:1px;background:#334855}
.examCard{position:relative;z-index:3;width:100%;max-width:510px;justify-self:end;padding:28px;border:1px solid #304858;border-radius:24px;background:linear-gradient(145deg,rgba(12,27,39,.96),rgba(5,14,22,.97));box-shadow:0 28px 80px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.035);backdrop-filter:blur(14px)}
.examCard:before{content:"";position:absolute;left:24px;right:24px;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--yellow),transparent);opacity:.75}
.cardTop{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.examCard h2{margin:5px 0 0;font-size:27px;letter-spacing:-.5px}.cardLock{font-size:10px;color:#7f929d;border:1px solid #263b49;padding:7px 9px;border-radius:10px}.cardLock:first-letter{color:var(--yellow)}
.examCard .fields{display:grid;grid-template-columns:1fr;gap:13px;max-width:none}.examCard .fields label{font-size:11px;color:#c9d3d9;font-weight:800}.examCard .fields input{height:50px;margin-top:6px;border-radius:13px;padding:0 15px;background:#061019;border:1px solid #304a5a;font-size:14px;font-weight:700;color:#fff}.examCard .fields input:focus{border-color:var(--yellow);box-shadow:0 0 0 3px rgba(255,196,0,.08)}
.startExamBtn{width:100%;height:56px;margin-top:18px;border-radius:15px;display:flex;align-items:center;justify-content:center;gap:20px;font-size:14px;letter-spacing:1.5px;box-shadow:0 12px 28px rgba(255,196,0,.13)}.startExamBtn b{font-size:24px;font-weight:500;line-height:0}.startExamBtn:hover{transform:translateY(-1px);box-shadow:0 15px 34px rgba(255,196,0,.2)}
.cardBottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.attemptsLink{position:static!important;margin:0!important;width:auto!important;height:38px!important;padding:0 11px!important;border-radius:10px!important;background:rgba(255,255,255,.025)!important;border:1px solid #294252!important;color:#b7c4cc!important;font-size:8px!important;letter-spacing:.9px!important;backdrop-filter:none!important}.attemptsLink:before{display:none!important}.attemptsLink:hover{border-color:rgba(255,196,0,.7)!important;color:var(--yellow)!important;background:rgba(255,196,0,.05)!important}.attemptsIcon{color:var(--yellow);font-size:12px}.attemptsArrow{font-size:17px;color:#728692}.keyboardHint{font-size:8px;color:#627782;text-align:right;line-height:1.3}
.installAppCard{grid-column:1/-1;grid-row:2;max-width:none!important;width:100%!important;margin:0!important;padding:10px 14px!important;border-radius:15px!important;background:rgba(7,18,27,.68)!important;border-color:#263f4e!important}
/* Keep SEO-critical semantic heading visible; visual redesign is CSS/HTML, not an image replacement. */
@media(max-width:900px){
  .start.panel{grid-template-columns:1fr;grid-template-rows:auto 1fr auto;row-gap:18px;padding:25px 22px calc(14px + var(--safe-bottom));overflow:hidden;align-content:center}
  .start.panel:after{display:none}.homeHero{max-width:680px;width:100%;margin:0 auto;padding:0}.heroBadge{font-size:9px;margin-bottom:10px}.heroBrand{gap:10px;margin-bottom:11px}.heroLogo{width:54px;height:45px}.heroSchool{font-size:17px}.heroTest{font-size:9px;letter-spacing:2px}.homeHero h1{font-size:clamp(31px,8vw,48px);line-height:1;margin-bottom:9px;letter-spacing:-1.2px}.homeHero p{font-size:12px;line-height:1.4;margin-bottom:13px;max-width:500px}.featureLine{gap:10px;font-size:6.5px;letter-spacing:1px}.featureLine b{font-size:14px}.featureLine i{height:15px}
  .examCard{max-width:520px;justify-self:center;padding:20px;border-radius:20px}.cardTop{margin-bottom:14px}.examCard h2{font-size:21px}.cardEyebrow{font-size:8px;letter-spacing:2px}.cardLock{font-size:8px;padding:6px 8px}.examCard .fields{gap:9px}.examCard .fields label{font-size:9px}.examCard .fields input{height:46px;margin-top:4px;font-size:13px}.startExamBtn{height:50px;margin-top:13px;font-size:12px}.cardBottom{margin-top:10px}.attemptsLink{height:34px!important;font-size:7px!important;padding:0 9px!important}.keyboardHint{font-size:7px}
  .homeTools{gap:5px}.homeTool{height:34px;padding:0 8px;font-size:7px;border-radius:10px}.homeTool.iconOnly{width:34px;font-size:17px}.topbar{padding:5px 10px;height:62px}.logo{width:54px;height:46px}.school{font-size:14px;letter-spacing:1px}.testname{font-size:8px;letter-spacing:1.5px}.hud{display:none}
  .installAppCard{min-height:46px!important}
}
@media(max-width:520px){
  .start.panel{padding:15px 13px calc(10px + var(--safe-bottom));row-gap:11px}
  .heroBadge{margin-bottom:7px}.heroBrand{margin-bottom:7px}.heroLogo{width:45px;height:38px}.heroSchool{font-size:14px}.heroTest{font-size:7px}.homeHero h1{font-size:29px;margin-bottom:6px}.homeHero p{font-size:10px;margin-bottom:8px}.featureLine{gap:7px}.featureLine b{font-size:12px}.featureLine i{height:12px}
  .examCard{padding:15px;border-radius:17px}.cardTop{margin-bottom:10px}.examCard h2{font-size:18px}.cardLock{display:none}.examCard .fields{gap:7px}.examCard .fields label{font-size:8px}.examCard .fields input{height:41px;font-size:12px;padding:0 12px}.startExamBtn{height:45px;margin-top:9px;font-size:11px}.startExamBtn b{font-size:20px}.cardBottom{margin-top:7px}.attemptsLink{height:31px!important;font-size:6.5px!important}.keyboardHint{font-size:6px}
  .homeTools .homeTool:first-child span:not(.toolIcon){display:none}.homeTools .homeTool:first-child{width:34px;padding:0;font-size:17px}.homeTools{margin-left:auto}
}

/* V28 — clean modern home redesign + reload loading screen */
:root{--bg:#050a0f;--panel:#0b1722;--line:#263744;--yellow:#ffc400;--red:#ef233c;--green:#39ff72;--white:#f6f8fb;--muted:#9aaeba}
.hud{display:none!important}
.topbar{height:72px;padding:7px 24px;background:linear-gradient(180deg,rgba(2,7,12,.98),rgba(4,10,16,.96));border-bottom:1px solid rgba(255,255,255,.07);box-shadow:0 8px 30px rgba(0,0,0,.18)}
.brand{gap:11px}.logo{width:64px;height:54px}.school{font-size:19px;letter-spacing:1.4px}.testname{font-size:10px;letter-spacing:2.1px}
.homeTools{display:flex;align-items:center;gap:8px}.homeTool{height:38px;padding:0 12px;border:1px solid #294252;border-radius:11px;background:rgba(255,255,255,.025);color:#b8c6ce;font-size:8px;font-weight:900;letter-spacing:1px;transition:.2s}.homeTool:hover{transform:translateY(-1px);border-color:rgba(255,196,0,.65);color:var(--yellow);background:rgba(255,196,0,.05)}.homeTool.iconOnly{width:38px;padding:0;font-size:18px}
.stage{height:calc(100dvh - 72px);background:radial-gradient(800px 500px at 78% 28%,rgba(255,196,0,.08),transparent 65%),radial-gradient(650px 500px at 10% 90%,rgba(22,80,112,.16),transparent 70%),linear-gradient(135deg,#061019,#081722 50%,#03080d)}
.stage:before{opacity:.18;background-size:52px 52px}
.start.panel{position:absolute;inset:0;width:100%;height:100%;padding:clamp(28px,5vh,60px) clamp(22px,6vw,96px);display:block;overflow:auto;background:transparent;border:0;border-radius:0}
.start.panel:after{content:"";position:absolute;left:51%;top:10%;height:80%;width:1px;background:linear-gradient(transparent,rgba(255,196,0,.24),transparent);pointer-events:none}
.homeShell{position:relative;z-index:2;max-width:1280px;min-height:100%;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.72fr);gap:clamp(50px,7vw,110px);align-items:center}
.homeCopy{padding:0 0 10px}.homeKicker{display:flex;align-items:center;gap:9px;color:var(--yellow);font-size:10px;font-weight:900;letter-spacing:2.8px;margin-bottom:22px}.homeKicker span{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 14px rgba(57,255,114,.5)}
.homeBrand{display:flex;align-items:center;gap:14px;margin-bottom:25px}.homeLogo{width:76px;height:60px;object-fit:contain}.homeSchool{font-size:clamp(18px,2vw,25px);font-weight:900;letter-spacing:1.7px}.homeTest{color:var(--yellow);font-size:11px;font-weight:900;letter-spacing:2.4px;margin-top:5px}
.homeCopy h1{font-size:clamp(48px,6vw,82px);line-height:.94;letter-spacing:-3.5px;margin:0 0 19px;font-weight:950;color:#fff}.homeCopy h1 em{font-style:normal;color:var(--yellow)}.homeLead{max-width:620px;color:#a9bac5;font-size:17px;line-height:1.55;margin:0 0 28px}.homeLead strong{color:#f6f8fb}
.homeStats{display:grid;grid-template-columns:repeat(4,minmax(0,112px));gap:8px;margin-bottom:23px}.homeStats div{padding:12px 10px;border:1px solid rgba(64,94,110,.72);border-radius:13px;background:linear-gradient(180deg,rgba(12,31,44,.78),rgba(5,16,24,.76));box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}.homeStats b{display:block;font-size:24px;line-height:1;color:#fff}.homeStats span{display:block;color:#718591;font-size:7px;font-weight:900;letter-spacing:1.5px;margin-top:6px}
.homeTip{display:flex;align-items:flex-start;gap:11px;max-width:560px;padding:12px 14px;border:1px solid rgba(64,94,110,.55);border-radius:14px;background:rgba(4,14,21,.42)}.homeTip>span{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:50%;background:rgba(255,196,0,.1);color:var(--yellow);font-weight:900;font-size:12px}.homeTip strong{display:block;font-size:10px;letter-spacing:.8px}.homeTip small{display:block;color:#718692;font-size:9px;line-height:1.4;margin-top:3px}
.examCard{position:relative;z-index:3;width:100%;max-width:500px;justify-self:end;padding:30px;border:1px solid rgba(77,111,128,.72);border-radius:24px;background:linear-gradient(145deg,rgba(12,28,40,.96),rgba(4,12,19,.98));box-shadow:0 30px 90px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.04);backdrop-filter:blur(16px)}.cardAccent{position:absolute;left:28px;right:28px;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--yellow),transparent);box-shadow:0 0 16px rgba(255,196,0,.2)}.cardTop{margin-bottom:24px}.cardEyebrow{font-size:10px;letter-spacing:2.5px;color:var(--yellow)}.examCard h2{font-size:28px;margin:5px 0 0;letter-spacing:-.5px}.cardSecure{font-size:8px;font-weight:900;letter-spacing:1px;color:#718691;border:1px solid #294252;border-radius:9px;padding:7px 8px}.cardSecure span{color:var(--green);margin-right:4px}
.examCard .fields{display:grid;grid-template-columns:1fr;gap:14px}.examCard .fields label{font-size:10px;color:#c6d2d8;font-weight:800}.examCard .fields input{width:100%;height:51px;margin-top:6px;padding:0 15px;border-radius:13px;background:#061019;border:1px solid #355263;color:#fff;font-size:14px;font-weight:600}.examCard .fields input::placeholder{color:#637984}.examCard .fields input:focus{outline:none;border-color:var(--yellow);box-shadow:0 0 0 3px rgba(255,196,0,.08)}
.startExamBtn{width:100%;height:57px;margin-top:19px;border-radius:15px;display:flex;align-items:center;justify-content:center;gap:22px;font-size:13px;letter-spacing:1.5px;box-shadow:0 14px 35px rgba(255,196,0,.13)}.startExamBtn b{font-size:24px;font-weight:500}.cardBottom{margin-top:14px}.attemptsLink{height:37px!important;padding:0 10px!important;border-radius:10px!important;background:rgba(255,255,255,.025)!important;border:1px solid #294252!important;color:#b7c4cc!important;font-size:8px!important}.attemptsLink:hover{border-color:rgba(255,196,0,.7)!important;color:var(--yellow)!important}.attemptsIcon{color:var(--yellow);font-size:13px}.attemptsArrow{font-size:17px;color:#718692}.keyboardHint{font-size:8px;color:#617580}
.installAppCard{position:relative;z-index:3;max-width:1280px;width:100%;margin:12px auto 0!important;border-radius:13px!important}
.loadingScreen{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,#122331 0,#060d14 48%,#020609 100%);opacity:1;visibility:visible;transition:opacity .4s ease,visibility .4s ease}.loadingScreen.loaded{opacity:0;visibility:hidden}.loadingScreen:before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:48px 48px;mask-image:radial-gradient(circle at center,black,transparent 78%)}.loaderPanel{position:relative;width:min(390px,84vw);text-align:center}.loaderLogo{width:118px;height:92px;object-fit:contain;filter:drop-shadow(0 12px 30px rgba(0,0,0,.45));animation:loaderPulse 1.4s ease-in-out infinite}.loaderBrand{font-size:17px;font-weight:950;letter-spacing:2px;margin-top:7px}.loaderTitle{font-size:9px;font-weight:900;letter-spacing:3px;color:var(--yellow);margin-top:6px}.loaderTrack{height:4px;margin-top:31px;border-radius:99px;background:#1b2b35;overflow:hidden}.loaderTrack div{height:100%;width:0;background:var(--yellow);box-shadow:0 0 14px rgba(255,196,0,.45);transition:width .08s linear}.loaderMeta{display:flex;justify-content:space-between;margin-top:9px;color:#667b87;font-size:7px;font-weight:900;letter-spacing:1.5px}.loaderMeta strong{color:#dce4e8;font-size:9px;letter-spacing:.5px}@keyframes loaderPulse{50%{transform:translateY(-3px) scale(1.025);filter:drop-shadow(0 16px 35px rgba(255,196,0,.12))}}
@media(max-width:900px){.start.panel{padding:28px 18px 18px}.start.panel:after{display:none}.homeShell{grid-template-columns:1fr;gap:24px;align-content:center;min-height:100%}.homeCopy{text-align:center;padding:0}.homeKicker{justify-content:center;margin-bottom:12px;font-size:8px}.homeBrand{justify-content:center;margin-bottom:13px}.homeLogo{width:52px;height:43px}.homeSchool{font-size:16px}.homeTest{font-size:8px}.homeCopy h1{font-size:clamp(35px,8vw,54px);letter-spacing:-1.8px;margin-bottom:10px}.homeLead{font-size:12px;line-height:1.4;margin:0 auto 15px;max-width:540px}.homeStats{justify-content:center;grid-template-columns:repeat(4,minmax(0,90px));margin-bottom:13px}.homeStats div{padding:9px 5px}.homeStats b{font-size:19px}.homeStats span{font-size:6px}.homeTip{margin:0 auto;text-align:left}.examCard{max-width:540px;justify-self:center;padding:20px;border-radius:20px}.cardTop{margin-bottom:15px}.examCard h2{font-size:22px}.examCard .fields{gap:9px}.examCard .fields input{height:45px}.startExamBtn{height:50px;margin-top:13px}.topbar{height:62px;padding:5px 10px}.logo{width:54px;height:46px}.school{font-size:14px}.testname{font-size:7px}.homeTool{height:34px}.homeTool.iconOnly{width:34px}}
@media(max-width:520px){.start.panel{padding:15px 12px}.homeShell{gap:13px}.homeKicker{font-size:6.5px;letter-spacing:2px;margin-bottom:7px}.homeBrand{margin-bottom:7px;gap:8px}.homeLogo{width:43px;height:35px}.homeSchool{font-size:13px}.homeTest{font-size:6.5px;letter-spacing:1.5px}.homeCopy h1{font-size:29px;letter-spacing:-1px;margin-bottom:6px}.homeLead{font-size:9.5px;line-height:1.35;margin-bottom:8px}.homeStats{gap:4px;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:8px}.homeStats div{padding:7px 2px;border-radius:9px}.homeStats b{font-size:16px}.homeStats span{font-size:5px;letter-spacing:1px;margin-top:4px}.homeTip{padding:8px 9px;gap:8px}.homeTip>span{width:19px;height:19px;flex-basis:19px;font-size:10px}.homeTip strong{font-size:8px}.homeTip small{font-size:7px}.examCard{padding:14px;border-radius:16px}.cardTop{margin-bottom:9px}.cardEyebrow{font-size:7px;letter-spacing:1.8px}.examCard h2{font-size:18px}.cardSecure{font-size:6px;padding:6px}.examCard .fields{gap:7px}.examCard .fields label{font-size:7px}.examCard .fields input{height:40px;margin-top:4px;font-size:12px;padding:0 11px}.startExamBtn{height:44px;margin-top:9px;border-radius:12px;font-size:10px}.startExamBtn b{font-size:19px}.cardBottom{margin-top:7px}.attemptsLink{height:30px!important;font-size:6.5px!important}.keyboardHint{font-size:6px}.homeTools{gap:5px}.homeTools .homeTool:first-child span:not(.toolIcon){display:none}.homeTools .homeTool:first-child{width:34px;padding:0;font-size:16px}}
@media(max-height:700px) and (min-width:521px){.start.panel{padding-top:18px;padding-bottom:12px}.homeShell{gap:22px}.homeKicker{margin-bottom:10px}.homeBrand{margin-bottom:10px}.homeCopy h1{font-size:42px;margin-bottom:9px}.homeLead{font-size:12px;margin-bottom:12px}.homeStats{margin-bottom:10px}.homeTip{padding:8px 10px}.examCard{padding:18px}.examCard .fields{gap:8px}.examCard .fields input{height:42px}.startExamBtn{height:46px;margin-top:10px}}

/* V29 — reference cleanup: remove duplicated home branding and in-card attempts link. */
.homeIntroTitle{margin:0 0 28px;max-width:650px}
.homeIntroTitle h1{font-size:clamp(48px,5.4vw,76px);line-height:.95;letter-spacing:-3px;margin:0 0 15px;font-weight:950;color:#f7f9fb}
.homeIntroTitle h1 em{font-style:normal;color:var(--yellow)}
.homeLead{max-width:600px;color:#9fb0bb;font-size:16px;line-height:1.55;margin:0}
.homeLead strong{color:#f5f7f9}
.homeBrand{display:none!important}
.cardBottom{justify-content:flex-end!important}
.cardBottom .attemptsLink{display:none!important}
.keyboardHint{font-size:8px;color:#647985;text-align:right;line-height:1.3}

@media(max-width:900px){
  .homeIntroTitle{margin-bottom:13px}
  .homeIntroTitle h1{font-size:clamp(35px,8vw,54px);letter-spacing:-1.8px;margin-bottom:9px}
  .homeLead{font-size:12px;line-height:1.4;margin:0 auto;max-width:540px}
  .homeCopy{text-align:center}
  .cardBottom{justify-content:center!important}
  .keyboardHint{text-align:center;font-size:7px}
}
@media(max-width:520px){
  .homeIntroTitle{margin-bottom:8px}
  .homeIntroTitle h1{font-size:29px;letter-spacing:-1px;margin-bottom:6px}
  .homeLead{font-size:10px;line-height:1.35}
  .keyboardHint{font-size:6px}
}


/* V33 — road-aware traffic loading: car slows on amber, stops safely before the signal, and yellow liquid fills a tube. */
.loadingScreen{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 30%,#163442 0,#07141c 48%,#02070b 100%);opacity:1;visibility:visible;transition:opacity .52s ease,visibility .52s ease}
.loadingScreen.loaded{opacity:0;visibility:hidden}
.loadingScreen:before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.015) 1px,transparent 1px);background-size:52px 52px;mask-image:radial-gradient(circle at center,black,transparent 82%)}
.loaderPanel{position:relative;width:min(900px,94vw);padding:26px 18px 22px;text-align:center}
.loaderBrandBlock{position:relative;z-index:8}.loaderLogo{width:105px;height:81px;object-fit:contain;filter:drop-shadow(0 12px 28px rgba(0,0,0,.5));animation:loaderPulse 1.5s ease-in-out infinite}.loaderBrand{font-size:16px;font-weight:950;letter-spacing:2.2px;margin-top:4px}.loaderTitle{font-size:9px;font-weight:900;letter-spacing:3.2px;color:var(--yellow);margin-top:6px}
.loaderScene{position:relative;height:235px;margin:22px auto 16px;overflow:hidden;border:1px solid rgba(67,101,117,.46);border-radius:22px;background:linear-gradient(180deg,#102b39 0%,#0a202b 48%,#071218 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 20px 60px rgba(0,0,0,.3);--drive-progress:0}
.loaderSkyGlow{position:absolute;width:360px;height:130px;left:72%;top:-58px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,rgba(255,196,0,.16),transparent 68%);filter:blur(2px)}
.loaderHorizon{position:absolute;bottom:74px;width:130%;height:90px;border-radius:50% 50% 0 0}.horizonOne{left:-10%;background:#0b2630;transform:rotate(-3deg)}.horizonTwo{right:-18%;bottom:64px;background:#0d2029;transform:rotate(4deg)}
.loaderRoad{position:absolute;left:-5%;right:-5%;bottom:-48px;height:135px;background:linear-gradient(180deg,#1a292f,#080f13);transform:perspective(220px) rotateX(12deg);border-top:1px solid rgba(180,195,200,.14);background-image:linear-gradient(180deg,rgba(255,255,255,.015),transparent 28%),repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 2px,transparent 2px 145px);background-position:calc(-500px * var(--drive-progress)) 0,calc(-700px * var(--drive-progress)) 0;background-size:auto,700px 100%}
.loaderRoad:after{content:"";position:absolute;left:0;right:0;top:24px;border-top:1px solid rgba(255,196,0,.12)}
.roadLane{position:absolute;top:42px;width:105px;height:5px;border-radius:99px;background:rgba(230,237,239,.45);animation:none;transform:translateX(calc(-430px * var(--drive-progress)));will-change:transform}.laneOne{left:4%}.laneTwo{left:39%}.laneThree{left:74%}
.loaderSignal{position:absolute;z-index:5;right:7%;bottom:17px;width:54px;height:145px}.loaderSignalHead{position:absolute;top:0;left:0;width:37px;padding:8px 8px;border-radius:12px;background:#071117;border:1px solid #38505c;box-shadow:0 10px 25px rgba(0,0,0,.5)}
.loaderSignalHead i{display:block;width:20px;height:20px;margin:0 auto 6px;border-radius:50%;background:#14242b;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}.loaderSignalHead i:last-child{margin-bottom:0}.signalGreen{background:#39e78a!important;box-shadow:0 0 20px rgba(57,231,138,.72),inset 0 0 8px rgba(255,255,255,.25)!important;animation:signalGreen 5.6s linear forwards}.signalAmber{animation:signalAmber 5.6s linear forwards}.signalRed{animation:signalRed 5.6s linear forwards}
.loaderSignalPole{position:absolute;left:17px;top:79px;width:4px;height:57px;background:#53666e}.loaderSignalBase{position:absolute;left:0;bottom:0;width:36px;height:6px;border-radius:99px;background:#53666e}
.loaderStopLine{position:absolute;z-index:3;right:15%;bottom:25px;width:4px;height:43px;background:rgba(240,245,246,.75);box-shadow:0 0 9px rgba(255,255,255,.12)}
.loaderCar{position:absolute;z-index:4;left:-390px;bottom:18px;width:360px;height:auto;display:block;filter:drop-shadow(0 18px 13px rgba(0,0,0,.5));animation:loaderCarDrive 5.6s linear forwards;will-change:left}
.loaderStatus{position:absolute;z-index:9;left:50%;top:14px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid rgba(65,93,106,.55);border-radius:99px;background:rgba(3,11,16,.62);backdrop-filter:blur(8px);white-space:nowrap;color:#b4c3ca;font-size:7px;font-weight:900;letter-spacing:1.5px;box-shadow:0 8px 22px rgba(0,0,0,.2)}.loaderStatus b{color:var(--yellow)}
/* Yellow liquid tube: the fill rises continuously with the loading percentage. */
.loaderTrack{position:relative;z-index:4;height:15px;margin-top:0;border-radius:99px;background:rgba(10,25,32,.9);border:1px solid rgba(103,127,139,.48);box-shadow:inset 0 3px 7px rgba(0,0,0,.45),0 2px 0 rgba(255,255,255,.025);overflow:hidden}
.loaderTrack:before{content:"";position:absolute;inset:2px;border-radius:99px;border:1px solid rgba(255,255,255,.08);pointer-events:none;z-index:2}.loaderTrack:after{content:"";position:absolute;left:0;right:0;top:2px;height:3px;border-radius:99px;background:rgba(255,255,255,.12);pointer-events:none;z-index:3}
.loaderTrack div{position:relative;height:100%;width:0;background:linear-gradient(180deg,#ffe36a 0%,#ffc400 42%,#e4a800 100%);box-shadow:0 0 16px rgba(255,196,0,.42);transition:width .08s linear;overflow:hidden}
.loaderTrack div:before{content:"";position:absolute;inset:-7px 0 0;background:repeating-linear-gradient(110deg,rgba(255,255,255,.18) 0 14px,transparent 14px 30px);animation:waterFlow .9s linear infinite;opacity:.75}.loaderTrack div:after{content:"";position:absolute;right:-5px;top:-2px;width:12px;height:18px;border-radius:50%;background:#ffe36a;box-shadow:0 0 10px rgba(255,196,0,.7)}
.loaderMeta{display:flex;justify-content:space-between;margin-top:9px;color:#667b87;font-size:7px;font-weight:900;letter-spacing:1.5px}.loaderMeta strong{color:#dce4e8;font-size:9px;letter-spacing:.5px}
@keyframes loaderPulse{50%{transform:translateY(-3px) scale(1.025);filter:drop-shadow(0 16px 35px rgba(255,196,0,.12))}}@keyframes waterFlow{from{transform:translateX(0)}to{transform:translateX(44px)}}
/* Car accelerates, then progressively brakes on amber and stops with a safe gap before the signal. */
@keyframes loaderCarDrive{0%{left:-390px}28%{left:8%}42%{left:28%}52%{left:36%}60%{left:40%}67%{left:42%}71%,100%{left:43%}}
@keyframes signalGreen{0%,42%{background:#39e78a;box-shadow:0 0 20px rgba(57,231,138,.72),inset 0 0 8px rgba(255,255,255,.25)}43%,54%{background:#14242b;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}55%,100%{background:#14242b;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}}
@keyframes signalAmber{0%,42%{background:#14242b}43%,68%{background:#ffc400;box-shadow:0 0 18px rgba(255,196,0,.7),inset 0 0 8px rgba(255,255,255,.25)}69%,100%{background:#14242b;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}}
@keyframes signalRed{0%,68%{background:#14242b;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}69%,100%{background:#ff453a;box-shadow:0 0 20px rgba(255,69,58,.78),inset 0 0 8px rgba(255,255,255,.25)}}
@media(max-width:600px){.loaderPanel{padding:18px 8px}.loaderLogo{width:84px;height:65px}.loaderBrand{font-size:12px;letter-spacing:1.6px}.loaderTitle{font-size:7px;letter-spacing:2.2px}.loaderScene{height:160px;margin-top:16px;border-radius:17px}.loaderStatus{font-size:6px;letter-spacing:1px;top:10px}.loaderSignal{right:4%;bottom:10px;transform:scale(.72);transform-origin:bottom right}.loaderStopLine{right:12%;bottom:17px;height:31px}.loaderCar{width:260px;bottom:9px;left:-280px;animation-name:loaderCarDriveMobile}.loaderTrack{margin-top:0;height:13px}.loaderMeta{font-size:6px}.loaderMeta strong{font-size:8px}}
@keyframes loaderCarDriveMobile{0%{left:-280px}28%{left:4%}42%{left:7%}52%{left:10%}60%{left:11%}67%{left:12%}71%,100%{left:12%}}


/* V34 — clean loading scene + aligned candidate form + training imagery on home. */
.homeGallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;max-width:650px}
.homeGalleryCard{position:relative;min-width:0;margin:0;border:1px solid rgba(74,100,114,.55);border-radius:16px;overflow:hidden;background:#eef2f3;box-shadow:0 14px 35px rgba(0,0,0,.22);isolation:isolate}
.homeGalleryCard img{display:block;width:100%;height:126px;object-fit:cover;object-position:center;transition:transform .35s ease}
.homeGalleryCard figcaption{position:absolute;left:0;right:0;bottom:0;padding:28px 12px 10px;text-align:left;background:linear-gradient(180deg,transparent,rgba(2,8,12,.9));color:#fff}
.homeGalleryCard figcaption b{display:block;color:var(--yellow);font-size:8px;letter-spacing:1.5px;font-weight:900}
.homeGalleryCard figcaption span{display:block;margin-top:3px;color:#d0d9de;font-size:9px;line-height:1.25}
.homeGalleryCard:hover img{transform:scale(1.035)}

.examCard{overflow:visible}
.examCard .fields{width:100%;display:grid;grid-template-columns:1fr;gap:13px;align-items:start}
.examCard .fields label{display:block;width:100%;min-width:0;margin:0}
.examCard .fields input{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.access-code-msg{width:100%;margin-top:7px;box-sizing:border-box}

/* The loading labels/stop marker are intentionally removed; the scene now communicates the action visually. */
.loaderStatus,.loaderStopLine{display:none!important}
/* Give the car a larger safety margin from the signal post. */
@keyframes loaderCarDrive{0%{left:-390px}10%{left:-330px}20%{left:-260px}30%{left:-180px}40%{left:-95px}50%{left:-10px}58%{left:8%}64%{left:21%}67%{left:34%}67.01%,100%{left:34%}}
@keyframes loaderCarDriveMobile{0%{left:-280px}10%{left:-235px}20%{left:-185px}30%{left:-130px}40%{left:-75px}50%{left:-20px}58%{left:-4%}64%{left:5%}67%{left:10%}67.01%,100%{left:10%}}

@media(max-width:900px){
  .homeGallery{max-width:540px;margin:14px auto 0;gap:8px}
  .homeGalleryCard img{height:92px}
  .homeGalleryCard figcaption{padding:22px 8px 7px}
  .homeGalleryCard figcaption b{font-size:6px;letter-spacing:1px}
  .homeGalleryCard figcaption span{font-size:7px}
  .examCard{width:100%;max-width:540px}
}
@media(max-width:520px){
  .homeGallery{margin-top:9px;gap:6px}
  .homeGalleryCard{border-radius:11px}
  .homeGalleryCard img{height:70px}
  .homeGalleryCard figcaption{padding:18px 6px 5px}
  .homeGalleryCard figcaption b{font-size:5px;letter-spacing:.8px}
  .homeGalleryCard figcaption span{display:none}
  .examCard .fields{gap:8px}
  .examCard .fields input{height:42px;width:100%}
}
@media(max-height:760px) and (min-width:901px){
  .homeGallery{margin-top:11px}
  .homeGalleryCard img{height:94px}
  .homeIntroTitle{margin-bottom:16px}
}

/* V36 — preserve the original dark V34 design; only apply the V35 no-scroll behavior. */
html,body,#app{width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden!important;overscroll-behavior:none}
.app{height:100dvh;min-height:0;overflow:hidden!important}
.stage{height:calc(100dvh - 72px);min-height:0;overflow:hidden!important}
.start.panel{height:100%;min-height:0;overflow:hidden!important}
.homeShell{height:100%;min-height:0;overflow:hidden;align-content:center}
@media(max-width:900px){.start.panel{overflow:hidden!important}.homeShell{height:100%;min-height:0;overflow:hidden}.stage{overflow:hidden!important}}
@media(max-width:520px){.homeShell{height:100%;min-height:0;overflow:hidden}.stage{overflow:hidden!important}.start.panel{overflow:hidden!important}}


/* V37 refinement — smooth approach, progressive braking, clean road, stronger amber. */
.loaderScene{border:0;box-shadow:none}
.loaderRoad{border-top:0;background-image:linear-gradient(180deg,rgba(255,255,255,.015),transparent 28%);background-position:0 0;background-size:auto}
.loaderRoad:after,.roadLane{display:none!important}
.loaderCar{animation-timing-function:linear;}
/* Position changes are closely spaced near the stop point so the car eases into a gentle stop instead of snapping to rest. */
@keyframes loaderCarDrive{
  0%{left:-390px;animation-timing-function:cubic-bezier(.22,.72,.32,1)}
  18%{left:-275px;animation-timing-function:cubic-bezier(.25,.7,.35,1)}
  36%{left:-145px;animation-timing-function:cubic-bezier(.28,.66,.4,1)}
  50%{left:-25px;animation-timing-function:cubic-bezier(.3,.62,.46,1)}
  60%{left:10%;animation-timing-function:cubic-bezier(.32,.55,.5,1)}
  68%{left:20%;animation-timing-function:cubic-bezier(.35,.5,.55,1)}
  74%{left:26%;animation-timing-function:cubic-bezier(.4,.45,.6,1)}
  80%{left:30%;animation-timing-function:cubic-bezier(.45,.4,.65,1)}
  88%{left:33%;animation-timing-function:cubic-bezier(.5,.32,.72,1)}
  96%{left:34%;animation-timing-function:cubic-bezier(.55,.25,.78,1)}
  100%{left:34%}
}
@keyframes loaderCarDriveMobile{
  0%{left:-280px;animation-timing-function:cubic-bezier(.22,.72,.32,1)}
  18%{left:-195px;animation-timing-function:cubic-bezier(.25,.7,.35,1)}
  36%{left:-105px;animation-timing-function:cubic-bezier(.28,.66,.4,1)}
  50%{left:-22px;animation-timing-function:cubic-bezier(.3,.62,.46,1)}
  60%{left:2%;animation-timing-function:cubic-bezier(.32,.55,.5,1)}
  68%{left:5%;animation-timing-function:cubic-bezier(.35,.5,.55,1)}
  74%{left:7%;animation-timing-function:cubic-bezier(.4,.45,.6,1)}
  80%{left:8.5%;animation-timing-function:cubic-bezier(.45,.4,.65,1)}
  88%{left:9.5%;animation-timing-function:cubic-bezier(.5,.32,.72,1)}
  96%{left:10%;animation-timing-function:cubic-bezier(.55,.25,.78,1)}
  100%{left:10%}
}
.loaderSignalHead .signalAmber{background:#ffc400!important;box-shadow:0 0 26px rgba(255,196,0,.95),0 0 52px rgba(255,196,0,.35),inset 0 0 10px rgba(255,255,255,.45)!important}
@keyframes signalAmber{
  0%,41%{background:#14242b;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
  42%,70%{background:#ffc400;box-shadow:0 0 26px rgba(255,196,0,.95),0 0 52px rgba(255,196,0,.35),inset 0 0 10px rgba(255,255,255,.45)}
  71%,100%{background:#14242b;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
}

/* V38 — true mobile responsive home screen.
   Keeps the desktop composition intact while making the start screen fit narrow phones
   without horizontal overflow or clipped form controls. */
*,*::before,*::after{box-sizing:border-box}

.start.panel,.homeShell,.homeCopy,.examCard,.examCard .fields,.examCard .fields label{min-width:0}
.examCard{box-sizing:border-box}
.examCard .fields input,.startExamBtn{box-sizing:border-box;max-width:100%}

@media (max-width: 600px){
  html,body,#app,.app{width:100%;max-width:100%;overflow-x:hidden!important}
  .stage{width:100%;max-width:100%;overflow-x:hidden!important}

  .topbar{height:54px;padding:5px 8px;gap:7px;min-width:0}
  .topbar .brand{min-width:0;flex:1;overflow:hidden}
  .topbar .logo{width:42px;height:38px;flex:0 0 42px}
  .topbar .school{font-size:11px;letter-spacing:.65px;white-space:nowrap}
  .topbar .testname{font-size:6px;letter-spacing:1.15px;white-space:nowrap}
  .homeTools{gap:4px;flex:0 0 auto}
  .homeTool{width:31px!important;height:31px!important;min-width:31px;padding:0!important;border-radius:9px;font-size:15px!important}
  .homeTool:first-child span:not(.toolIcon){display:none}

  .start.panel{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    max-width:none;
    padding:13px 10px calc(10px + var(--safe-bottom));
    display:block;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  .start.panel:after{display:none!important}

  .homeShell{
    width:100%;
    max-width:none;
    height:auto;
    min-height:100%;
    margin:0;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:10px;
    overflow:visible;
  }

  .homeCopy{
    width:100%;
    padding:0;
    text-align:center;
  }
  .homeKicker{
    justify-content:center;
    gap:6px;
    margin:0 0 7px;
    font-size:6.5px;
    letter-spacing:1.8px;
    white-space:nowrap;
  }
  .homeKicker span{width:5px;height:5px;flex:0 0 5px}
  .homeIntroTitle{width:100%;max-width:none;margin:0 0 8px}
  .homeIntroTitle h1{
    font-size:27px;
    line-height:.98;
    letter-spacing:-1.15px;
    margin:0 0 6px;
  }
  .homeLead{
    width:100%;
    max-width:290px;
    margin:0 auto;
    font-size:9.5px;
    line-height:1.35;
  }

  .homeStats{
    width:100%;
    max-width:none;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px;
    margin:0 0 7px;
  }
  .homeStats div{
    min-width:0;
    padding:7px 2px;
    border-radius:9px;
  }
  .homeStats b{font-size:16px}
  .homeStats span{font-size:4.8px;letter-spacing:.75px;margin-top:4px;white-space:nowrap}

  .homeTip{
    width:100%;
    max-width:none;
    padding:8px 9px;
    gap:8px;
    border-radius:10px;
    text-align:left;
  }
  .homeTip>span{width:19px;height:19px;flex-basis:19px;font-size:10px}
  .homeTip strong{font-size:7.5px}
  .homeTip small{font-size:6.7px;line-height:1.35}

  .examCard{
    width:100%!important;
    max-width:none!important;
    margin:0;
    padding:13px 11px 10px;
    border-radius:15px;
    overflow:visible;
    justify-self:stretch;
  }
  .cardAccent{left:18px;right:18px}
  .cardTop{
    width:100%;
    min-width:0;
    margin-bottom:9px;
    gap:8px;
  }
  .cardTop>div:first-child{min-width:0}
  .cardEyebrow{font-size:6.5px;letter-spacing:1.55px;white-space:nowrap}
  .examCard h2{font-size:18px;line-height:1.05;margin:4px 0 0;white-space:nowrap}
  .cardSecure{flex:0 0 auto;font-size:5.5px;letter-spacing:.65px;padding:5px 6px;border-radius:8px;white-space:nowrap}

  .examCard .fields{
    width:100%!important;
    max-width:none!important;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:7px;
  }
  .examCard .fields label{
    width:100%!important;
    max-width:100%;
    display:block;
    font-size:6.8px;
    line-height:1.15;
  }
  .examCard .fields input{
    display:block;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:40px;
    margin-top:4px;
    padding:0 11px;
    border-radius:10px;
    font-size:11.5px;
    line-height:40px;
  }
  .access-code-msg{width:100%;font-size:8px;margin-top:5px}
  .startExamBtn{
    width:100%!important;
    max-width:100%!important;
    height:43px;
    margin-top:9px;
    border-radius:11px;
    font-size:9.5px;
    letter-spacing:1.1px;
  }
  .startExamBtn b{font-size:18px}
  .cardBottom{width:100%;margin-top:6px;justify-content:center!important}
  .keyboardHint{font-size:5.7px;text-align:center}

  .installAppCard{width:100%!important;max-width:none!important}
}

@media (max-width: 360px){
  .topbar{height:52px;padding-left:7px;padding-right:7px}
  .topbar .logo{width:39px;height:36px;flex-basis:39px}
  .topbar .school{font-size:10px}
  .topbar .testname{font-size:5.5px}
  .homeTool{width:29px!important;min-width:29px;height:29px!important}
  .start.panel{padding-left:8px;padding-right:8px}
  .homeShell{gap:8px}
  .homeIntroTitle h1{font-size:25px}
  .homeLead{font-size:9px;max-width:280px}
  .homeStats{gap:3px}
  .homeStats div{padding:6px 1px}
  .homeStats b{font-size:15px}
  .homeStats span{font-size:4.4px}
  .homeTip{padding:7px 8px}
  .homeTip small{font-size:6.3px}
  .examCard{padding:12px 10px 9px;border-radius:14px}
  .examCard h2{font-size:17px}
  .examCard .fields{gap:6px}
  .examCard .fields input{height:38px;line-height:38px;font-size:11px}
  .startExamBtn{height:41px;margin-top:8px}
}

/* V40 — mobile home redesign: compact, touch-friendly field tiles.
   Desktop/tablet layouts are intentionally untouched. */
@media (max-width:600px){
  html,body,#app,.app,.stage{width:100%;max-width:100%;overflow-x:hidden!important}

  .topbar{
    height:58px!important;
    padding:6px 9px!important;
    gap:6px!important;
  }
  .topbar .brand{flex:1 1 auto;min-width:0;gap:8px}
  .topbar .logo{width:43px!important;height:40px!important;flex:0 0 43px}
  .topbar .school{font-size:11px!important;letter-spacing:.55px!important;line-height:1.05}
  .topbar .testname{font-size:6px!important;letter-spacing:1.1px!important;margin-top:3px}
  .homeTools{gap:5px!important;flex:0 0 auto}
  .homeTool{width:32px!important;min-width:32px!important;height:32px!important;padding:0!important;border-radius:9px!important;font-size:15px!important}

  .stage{height:calc(100dvh - 58px)!important;overflow:hidden!important}
  .start.panel{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    padding:13px 11px 12px!important;
    display:block!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
  }
  .start.panel:after{display:none!important}

  .homeShell{
    width:100%!important;
    max-width:100%!important;
    min-height:100%!important;
    height:auto!important;
    margin:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:8px!important;
    overflow:visible!important;
  }

  .homeCopy{width:100%!important;min-width:0!important;padding:0!important;text-align:center!important}
  .homeKicker{
    justify-content:center!important;
    margin:0 0 7px!important;
    gap:6px!important;
    font-size:6px!important;
    letter-spacing:1.7px!important;
    line-height:1!important;
  }
  .homeKicker span{width:5px!important;height:5px!important;flex:0 0 5px!important}

  /* The large marketing headline is intentionally hidden on phones; the exam UI is the priority. */
  .homeIntroTitle{display:none!important}

  .homeStats{
    width:100%!important;
    max-width:none!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:4px!important;
    margin:0 0 7px!important;
  }
  .homeStats div{
    min-width:0!important;
    padding:7px 2px!important;
    border-radius:9px!important;
  }
  .homeStats b{font-size:16px!important;line-height:1!important}
  .homeStats span{font-size:4.7px!important;letter-spacing:.7px!important;margin-top:4px!important;white-space:nowrap}

  .homeTip{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:8px 9px!important;
    gap:8px!important;
    border-radius:10px!important;
    min-height:39px;
  }
  .homeTip>span{width:18px!important;height:18px!important;flex-basis:18px!important;font-size:9px!important}
  .homeTip strong{font-size:7px!important;line-height:1.1!important}
  .homeTip small{font-size:6px!important;line-height:1.3!important;margin-top:2px!important}

  /* The candidate card becomes a clean single-column mobile sheet. */
  .examCard{
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:12px 10px 9px!important;
    border-radius:15px!important;
    overflow:visible!important;
    background:linear-gradient(155deg,rgba(11,27,39,.98),rgba(4,13,21,.99))!important;
  }
  .cardAccent{left:18px!important;right:18px!important}
  .cardTop{
    width:100%!important;
    min-width:0!important;
    margin-bottom:9px!important;
    gap:7px!important;
  }
  .cardTop>div:first-child{min-width:0!important}
  .cardEyebrow{font-size:6px!important;letter-spacing:1.5px!important}
  .examCard h2{
    font-size:18px!important;
    line-height:1!important;
    margin:4px 0 0!important;
    letter-spacing:-.35px!important;
  }
  .cardSecure{font-size:5px!important;padding:5px 6px!important;border-radius:8px!important;white-space:nowrap!important}

  .examCard .fields{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:6px!important;
    margin:0!important;
  }
  .examCard .fields label{
    position:relative!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:47px!important;
    margin:0!important;
    padding:0!important;
    font-size:0!important;
    color:transparent!important;
  }
  /* Small field icon / label is integrated into the control instead of taking a separate row. */
  .examCard .fields label:before{
    position:absolute;
    z-index:3;
    left:11px;
    top:50%;
    transform:translateY(-50%);
    width:20px;
    height:20px;
    display:grid;
    place-items:center;
    border-radius:6px;
    background:rgba(255,196,0,.08);
    border:1px solid rgba(255,196,0,.16);
    color:var(--yellow);
    font-size:9px;
    font-weight:900;
    pointer-events:none;
  }
  .examCard .fields label:nth-child(1):before{content:'✓'}
  .examCard .fields label:nth-child(2):before{content:'☎'}
  .examCard .fields label:nth-child(3):before{content:'#'}
  .examCard .fields label span{
    position:absolute!important;
    z-index:4!important;
    left:40px!important;
    top:6px!important;
    display:block!important;
    margin:0!important;
    color:#718894!important;
    font-size:5px!important;
    font-weight:900!important;
    letter-spacing:1px!important;
    line-height:1!important;
    text-transform:uppercase!important;
    pointer-events:none!important;
  }
  .examCard .fields input{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:47px!important;
    margin:0!important;
    padding:14px 9px 3px 40px!important;
    box-sizing:border-box!important;
    border-radius:11px!important;
    background:rgba(3,12,19,.78)!important;
    border:1px solid rgba(61,91,108,.9)!important;
    color:#f5f8fa!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1!important;
    outline:none!important;
  }
  .examCard .fields input::placeholder{color:#627783!important;opacity:1}
  .examCard .fields input:focus{
    border-color:var(--yellow)!important;
    box-shadow:0 0 0 2px rgba(255,196,0,.09),inset 0 1px 8px rgba(0,0,0,.2)!important;
  }

  .access-code-msg{width:100%!important;margin:5px 0 0!important;font-size:7px!important}
  .startExamBtn{
    width:100%!important;
    max-width:100%!important;
    height:44px!important;
    margin:8px 0 0!important;
    border-radius:11px!important;
    gap:16px!important;
    font-size:9px!important;
    letter-spacing:1.1px!important;
  }
  .startExamBtn b{font-size:18px!important}
  .cardBottom{width:100%!important;margin-top:6px!important;text-align:center!important}
  .keyboardHint{font-size:5px!important}

  .installAppCard{width:100%!important;max-width:none!important;margin:7px 0 0!important}
}

@media (max-width:360px){
  .start.panel{padding-left:9px!important;padding-right:9px!important}
  .homeShell{gap:7px!important}
  .homeStats{gap:3px!important}
  .homeStats div{padding:6px 1px!important}
  .homeStats b{font-size:15px!important}
  .homeStats span{font-size:4.3px!important}
  .homeTip{padding:7px 8px!important}
  .homeTip small{font-size:5.8px!important}
  .examCard{padding:11px 9px 8px!important}
  .examCard h2{font-size:17px!important}
  .examCard .fields{gap:5px!important}
  .examCard .fields label,.examCard .fields input{height:45px!important}
  .examCard .fields input{font-size:10.5px!important;padding-left:39px!important}
  .examCard .fields label span{left:39px!important;top:5px!important}
  .examCard .fields label:before{left:10px!important;width:19px!important;height:19px!important}
  .startExamBtn{height:42px!important;margin-top:7px!important}
}

/* V41: robust screen-state visibility. The base .start.panel/.exam/.result rules have
   higher specificity than [hidden], so explicitly hide state screens when their
   hidden attribute is set. This prevents the mobile home card from sitting over
   the examination video. */
#startScreen[hidden],#examScreen[hidden],#resultScreen[hidden]{display:none!important}
body.exam-active .homeTools{display:none!important}
body.exam-active #startScreen,body.exam-active #resultScreen{display:none!important}
body.home-active #examScreen,body.home-active #resultScreen{display:none!important}
body.result-active #startScreen,body.result-active #examScreen{display:none!important}


/* v47 — stable result action layout */
.result.panel{box-sizing:border-box;overflow:auto!important;justify-content:flex-start;align-items:center;text-align:center;padding:24px 30px 24px;min-height:0}
.resultActions{width:min(100%,620px);display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px auto 0;align-items:stretch}
.resultActions button{width:100%;min-width:0;min-height:46px;margin:0!important;padding:11px 14px;border-radius:12px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;font-size:11px;line-height:1.1}
#printCertBtn{grid-column:1 / -1}
@media(max-width:800px){
 .result.panel{padding:16px 12px calc(14px + var(--safe-bottom));overflow:auto!important}
 .resultActions{width:100%;max-width:380px;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
 .resultActions button{min-height:40px;padding:9px 8px;font-size:9px;border-radius:11px}
 #printCertBtn{grid-column:1 / -1}
}
@media(max-width:430px){
 .result.panel{padding-left:9px;padding-right:9px}
 .resultActions{max-width:360px;gap:6px}
 .resultActions button{min-height:38px;padding:8px 6px;font-size:8.5px}
}

/* Console-style interaction polish */
.fields input:focus{transform:translateY(-1px);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.fields input:active{transform:translateY(0)}
.primary:active,.secondary:active,.rightTools button:active,.skip:active{transform:scale(.97)}
@media (prefers-reduced-motion:reduce){
  .fields input,.primary,.secondary,.rightTools button,.skip{transition:none!important}
}

/* V68 — requested home background + transparent navigation only. */
body.home-active .topbar{
  background:rgba(3,9,14,.30)!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 8px 28px rgba(0,0,0,.12)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
body.home-active .homeTool{
  background:rgba(3,12,18,.32)!important;
  border-color:rgba(180,205,215,.22)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
}
body.home-active .stage{
  background-image:linear-gradient(90deg,rgba(2,8,12,.60) 0%,rgba(2,8,12,.34) 46%,rgba(2,8,12,.48) 100%),url('home-background.jpg');
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}
body.home-active .stage:before{opacity:.07!important}
body.home-active .start.panel{background:transparent!important}
body.home-active .examCard{background:linear-gradient(145deg,rgba(8,21,30,.78),rgba(3,10,16,.82))!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
@media(max-width:700px){
  body.home-active .stage{background-position:58% center;background-image:linear-gradient(90deg,rgba(2,8,12,.62),rgba(2,8,12,.38)),url('home-background.jpg')}
}


/* Multi-school portal gate and school branding layer */
body.school-gate-active .topbar{background:rgba(3,9,14,.36)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom-color:#ffffff18}
body.school-gate-active .stage{background:linear-gradient(115deg,rgba(2,8,13,.84),rgba(3,13,20,.62)),url('home-background.jpg') center/cover no-repeat}
.schoolGate{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;overflow:auto;padding:clamp(18px,4vh,44px) clamp(18px,5vw,76px);color:#f5f8fb}
.schoolGate[hidden]{display:none!important}
.gateGlow{position:absolute;pointer-events:none;inset:0;background:radial-gradient(circle at 18% 45%,color-mix(in srgb,var(--yellow) 11%,transparent),transparent 39%),linear-gradient(115deg,transparent 47%,rgba(255,255,255,.035) 47.1%,transparent 47.4%)}
.gateBrand{position:absolute;top:18px;left:clamp(18px,4vw,60px);display:flex;align-items:center;gap:13px;z-index:1;font-size:9px;letter-spacing:2px;font-weight:900;color:#b5c4cd}
.gateBrand img{width:48px;height:42px;object-fit:contain}
.gateContent{position:relative;z-index:1;width:min(1220px,100%);margin:20px auto 0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.75fr);align-items:center;gap:clamp(30px,7vw,100px)}
.gateCopy{max-width:650px}.gateEyebrow{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:2.8px;font-weight:1000;color:var(--yellow)}.gateEyebrow span{width:25px;height:2px;background:var(--yellow);box-shadow:0 0 15px var(--yellow)}
.gateCopy h1{font-size:clamp(43px,6.2vw,80px);line-height:.97;letter-spacing:-2.7px;margin:22px 0 18px;font-weight:1000}.gateCopy h1 em{font-style:normal;color:var(--yellow)}
.gateCopy p{max-width:550px;color:#bdc9d1;font-size:clamp(14px,1.3vw,18px);line-height:1.7;margin:0}
.gateFeatures{display:grid;gap:13px;margin-top:clamp(24px,5vh,52px)}.gateFeatures div{display:flex;align-items:center;gap:13px;color:#e4ebef;font-size:12px;font-weight:800}.gateFeatures b{display:grid;place-items:center;width:32px;height:32px;border:1px solid #ffffff24;border-radius:10px;color:var(--yellow);background:#07141ebf;font-size:10px;letter-spacing:.8px}
.gateCard{position:relative;width:100%;max-width:450px;justify-self:end;padding:clamp(22px,3vw,34px);border:1px solid #ffffff25;border-radius:22px;background:linear-gradient(145deg,rgba(10,25,36,.92),rgba(3,12,20,.94));box-shadow:0 30px 90px #0007,inset 0 1px #ffffff0a;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.gateCard:before{content:"";position:absolute;top:0;left:24px;right:24px;height:2px;background:linear-gradient(90deg,transparent,var(--yellow),transparent)}
.gateCardTop{display:flex;align-items:center;gap:13px;margin-bottom:25px}.gateIcon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:color-mix(in srgb,var(--yellow) 14%,#08131d);border:1px solid color-mix(in srgb,var(--yellow) 38%,transparent);color:var(--yellow);font-size:27px}.gateKicker{color:#96aab6;font-size:9px;letter-spacing:2px;font-weight:1000}.gateCard h2{margin:7px 0 0;font-size:clamp(22px,2.3vw,30px);letter-spacing:-.6px}.gateCard label{display:block;font-size:11px;font-weight:900;color:#cfdae0;margin-bottom:8px}.gateCard input{height:54px;width:100%;border:1px solid #375263;background:#041019;border-radius:12px;padding:0 15px;color:#fff;font-size:15px;font-weight:800;letter-spacing:1.2px;outline:none}.gateCard input:focus{border-color:var(--yellow);box-shadow:0 0 0 3px color-mix(in srgb,var(--yellow) 15%,transparent)}
.gateMessage{min-height:23px;padding-top:7px;color:#ff9aa6;font-size:11px;font-weight:900;letter-spacing:.5px}.gateMessage.ok{color:#8af2af}.gateButton{display:flex;align-items:center;justify-content:space-between;width:100%;height:54px;padding:0 17px;border:0;border-radius:12px;background:var(--yellow);color:#071018;font-size:12px;letter-spacing:1px;font-weight:1000;box-shadow:0 13px 30px color-mix(in srgb,var(--yellow) 16%,transparent);transition:transform .16s,filter .16s}.gateButton:hover{filter:brightness(1.07);transform:translateY(-1px)}.gateButton b{font-size:22px}.gateSecure{margin-top:17px;text-align:center;color:#8095a2;font-size:8px;letter-spacing:1.5px;font-weight:1000}.gateSecure span{color:#75e7a0;margin-right:5px}.gateFooter{position:absolute;left:clamp(18px,4vw,60px);right:clamp(18px,4vw,60px);bottom:12px;display:flex;justify-content:space-between;gap:12px;z-index:1;color:#728793;font-size:8px;letter-spacing:1.7px;font-weight:900}.gateFooter a{color:#c3d0d8;text-decoration:none}.gateFooter a:hover{color:var(--yellow)}
body.school-gate-active .homeTools{display:none!important}body.home-active .school{max-width:45vw}
@media(max-width:850px){.gateContent{grid-template-columns:1fr;gap:22px;max-width:500px;margin:65px auto 30px}.schoolGate{justify-content:flex-start;padding-top:0}.gateCopy{text-align:center}.gateEyebrow{justify-content:center}.gateCopy h1{font-size:clamp(34px,8vw,52px);margin:12px 0}.gateCopy p{font-size:13px}.gateFeatures{display:none}.gateCard{justify-self:stretch;max-width:none;padding:22px}.gateCardTop{margin-bottom:17px}.gateBrand{top:12px}.gateBrand img{width:36px;height:34px}.gateBrand span{font-size:7px;letter-spacing:1.4px}.gateFooter{bottom:8px;font-size:7px}.gateCard input{height:49px}.gateButton{height:50px}}
@media(max-width:480px){.gateContent{margin-top:55px;gap:16px}.gateCopy h1{font-size:35px;letter-spacing:-1.5px}.gateCopy p{font-size:12px;line-height:1.45}.gateCard{padding:17px;border-radius:17px}.gateIcon{width:41px;height:41px}.gateCard h2{font-size:22px}.gateKicker{font-size:8px}.gateSecure{font-size:7px}.gateFooter span{max-width:60%;line-height:1.5}}

body.home-active .stage{background-image:linear-gradient(90deg,color-mix(in srgb,var(--school-dark,#0b1b29) 78%,transparent) 0%,color-mix(in srgb,var(--school-dark,#0b1b29) 40%,transparent) 46%,color-mix(in srgb,var(--school-dark,#0b1b29) 60%,transparent) 100%),url('home-background.jpg')!important}

@media(max-width:800px){#changeSchoolBtn{width:37px;min-width:37px;justify-content:center;padding:0 6px}#changeSchoolBtn span:not(.toolIcon){display:none!important}}
/* Apply the chosen school's accent consistently across the existing exam UI. */
html{accent-color:var(--yellow)}
body.home-active .topbar .testname,body.home-active .timer,body.home-active .eyebrow{color:var(--yellow)!important}
body.home-active .primary,body.home-active .startExamBtn,body.home-active .installAppBtn{background:var(--yellow)!important;border-color:var(--yellow)!important;color:var(--school-dark,#071019)!important}
body.home-active .examCard:before{background:linear-gradient(90deg,transparent,var(--yellow),transparent)!important}
body.home-active .homeStats b,body.home-active .homeStat b,body.home-active .stats b{color:var(--yellow)!important}

body.school-selected .topbar .testname,body.school-selected .timer,body.school-selected .eyebrow{color:var(--yellow)!important}
body.school-selected .primary,body.school-selected .startExamBtn,body.school-selected .installAppBtn{background:var(--yellow)!important;border-color:var(--yellow)!important;color:var(--school-dark,#071019)!important}
body.school-selected .result .finalScore{color:var(--yellow)!important}
body.school-selected .examCard:before{background:linear-gradient(90deg,transparent,var(--yellow),transparent)!important}
body.school-selected .homeStats b,body.school-selected .stats b{color:var(--yellow)!important}


/* V59 result-page refresh: clear performance narrative and readable score summary */
.result.panel{align-items:stretch;text-align:left;gap:0;overflow-y:auto;overscroll-behavior:contain;padding:clamp(16px,2.4vh,28px) clamp(16px,3vw,42px);justify-content:flex-start}
.resultLogo{align-self:center;width:64px;height:46px;object-fit:contain;margin:0 0 4px}
.result .eyebrow,.result h2,.result .candidateResult,.result .finalScore,.result .status{text-align:center}
.result h2{font-size:clamp(24px,3vw,34px);letter-spacing:.02em;margin:2px 0 4px}
.result .candidateResult{font-size:13px;color:#b6c5cf;margin-bottom:2px}
.result .finalScore{font-size:clamp(44px,6vh,64px);font-weight:950;line-height:1.05;margin:4px 0;color:var(--yellow)}
.result .status{font-size:clamp(13px,1.8vh,18px);margin:2px 0 8px}
.performanceSummary{width:min(900px,100%);margin:4px auto 8px;padding:12px 15px;border:1px solid #294453;border-radius:14px;background:linear-gradient(120deg,#0d2431,#0a1721);box-shadow:inset 3px 0 0 var(--yellow)}
.performanceTitle{font-size:10px;font-weight:900;letter-spacing:1.8px;color:var(--yellow);margin-bottom:5px}
.performanceSummary p{font-size:13px;line-height:1.45;color:#d5dfe6;margin:0}
.performanceStats{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.performanceStats span{font-size:10px;color:#9eb0bc;background:#07131c;border:1px solid #263d4b;border-radius:7px;padding:5px 8px}
.performanceStats b{color:#fff;font-size:12px;margin-right:3px}
.result .scoreGrid{width:min(900px,100%);margin:4px auto 8px;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.result .scoreRow{align-items:center;border-radius:8px;min-width:0}
.result .resultSummary{width:min(700px,100%);margin:4px auto 8px;gap:8px}
.result .resultSummary>div{flex:1;min-width:0;text-align:center;padding:8px 10px;border-radius:10px}
.result .resultSummary span{font-size:8px}.result .resultSummary b{font-size:16px}
.result .save-status{text-align:center;font-size:10px;margin:2px auto 7px}
.result .resultActions{justify-content:center;flex-wrap:wrap;margin:4px auto 0;gap:8px;width:100%}
.result .resultActions button{min-height:38px;font-size:10px;padding:10px 14px}
@media(max-width:800px){.result.panel{inset:5px;padding:12px 12px;justify-content:flex-start}.resultLogo{width:48px;height:34px}.result h2{font-size:22px}.result .finalScore{font-size:44px}.performanceSummary{padding:10px 11px;margin:4px auto 7px}.performanceSummary p{font-size:12px;line-height:1.4}.performanceStats{gap:4px;margin-top:7px}.performanceStats span{font-size:9px;padding:4px 6px}.result .scoreGrid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:560px}.result .scoreRow{font-size:10px;padding:6px 8px}.result .resultSummary{gap:5px;margin:3px auto 7px}.result .resultSummary>div{padding:6px 4px}.result .resultSummary span{font-size:7px}.result .resultSummary b{font-size:13px}.result .resultActions{gap:5px}.result .resultActions button{flex:1 1 40%;font-size:9px;padding:9px 7px;min-height:36px}}
@media(max-height:650px) and (min-width:801px){.result.panel{padding-top:8px;padding-bottom:8px}.resultLogo{width:42px;height:30px}.result .finalScore{font-size:42px}.performanceSummary{padding:7px 10px}.performanceSummary p{font-size:11px}.result .scoreGrid{margin:2px auto 4px}.result .resultSummary>div{padding:5px 8px}.result .resultActions button{min-height:32px;padding:7px 10px}}

/* Keep the previously removed decorative loader out of the production portal. */
.loadingScreen{display:none!important}
\n\n/* V60: calm summary-first result screen, no clip-by-clip score grid */
.result.panel{align-items:stretch;text-align:left;justify-content:flex-start;overflow-y:auto;overscroll-behavior:contain;padding:clamp(16px,3vh,30px) clamp(16px,3vw,48px);gap:0}
.resultLogo{align-self:center;width:64px;height:46px;object-fit:contain;margin:0 0 5px}
.result .eyebrow,.result h2,.result .candidateResult,.result .finalScore,.result .status{text-align:center}
.result h2{font-size:clamp(25px,3vw,36px);letter-spacing:.01em;margin:3px 0 5px}
.result .candidateResult{font-size:13px;color:#afc0cc;margin-bottom:2px}
.result .finalScore{font-size:clamp(48px,7vh,70px);font-weight:950;line-height:1.03;margin:5px 0;color:var(--yellow)}
.result .status{width:max-content;max-width:100%;align-self:center;padding:7px 13px;border:1px solid currentColor;border-radius:999px;font-size:12px;letter-spacing:.6px;margin:2px 0 12px}
.result .performanceSummary{width:min(900px,100%);margin:0 auto 9px;padding:16px 18px;border:1px solid #294453;border-radius:15px;background:linear-gradient(120deg,#0d2431,#091720);box-shadow:inset 3px 0 0 var(--yellow)}
.performanceTitle{font-size:10px;font-weight:900;letter-spacing:1.8px;color:var(--yellow);margin-bottom:6px}
.result .performanceSummary p{font-size:14px;line-height:1.5;color:#d5dfe6;margin:0}
.result .performanceStats{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
.result .performanceStats span{font-size:11px;color:#a9bac5;background:#07131c;border:1px solid #263d4b;border-radius:9px;padding:7px 10px}
.result .performanceStats b{color:#fff;font-size:14px;margin-right:3px}
.resultAdvice{display:flex;align-items:flex-start;gap:12px;width:min(900px,100%);margin:0 auto 10px;padding:12px 15px;border:1px solid #243d4e;background:#0b1b27;border-radius:13px}
.resultAdviceIcon{width:32px;height:32px;flex:0 0 32px;border-radius:10px;display:grid;place-items:center;background:#1e3340;color:var(--yellow);font-weight:900;font-size:18px}
.resultAdvice strong{display:block;color:#f1f5f8;font-size:12px;margin:1px 0 4px}
.resultAdvice p{margin:0;color:#aebfcb;font-size:12px;line-height:1.45}
.result .resultSummary{display:flex;gap:8px;width:min(760px,100%);margin:0 auto 9px}
.result .resultSummary>div{flex:1;min-width:0;text-align:center;padding:10px 8px;border-radius:11px;border:1px solid #263f50;background:#0b1b27}
.result .resultSummary span{display:block;color:#8197a5;font-size:8px;font-weight:900;letter-spacing:1px}
.result .resultSummary b{display:block;color:var(--yellow);font-size:16px;margin-top:4px}
.result .save-status{text-align:center;font-size:10px;margin:2px auto 8px}
.result .resultActions{justify-content:center;flex-wrap:wrap;margin:4px auto 0;gap:8px;width:100%}
.result .resultActions button{min-height:40px;font-size:10px;padding:10px 18px}
.result #resultDetails .scoreGrid{display:none!important}
@media(max-width:800px){.result.panel{inset:5px;padding:13px 12px;justify-content:flex-start}.resultLogo{width:48px;height:35px}.result h2{font-size:23px}.result .finalScore{font-size:48px}.result .status{font-size:10px;padding:6px 10px;margin-bottom:9px}.result .performanceSummary{padding:12px 12px;margin-bottom:7px}.result .performanceSummary p{font-size:12px;line-height:1.45}.result .performanceStats{gap:5px;margin-top:8px}.result .performanceStats span{font-size:9px;padding:6px 7px}.result .performanceStats b{font-size:12px}.resultAdvice{padding:9px 10px;gap:8px;margin-bottom:8px}.resultAdviceIcon{width:27px;height:27px;flex-basis:27px;font-size:15px}.resultAdvice strong{font-size:11px}.resultAdvice p{font-size:11px}.result .resultSummary{gap:5px;margin-bottom:7px}.result .resultSummary>div{padding:7px 4px}.result .resultSummary span{font-size:6px;letter-spacing:.6px}.result .resultSummary b{font-size:12px}.result .resultActions{gap:5px}.result .resultActions button{flex:1 1 40%;font-size:9px;padding:9px 7px;min-height:36px}}
@media(max-height:700px) and (min-width:801px){.result.panel{padding-top:8px;padding-bottom:8px}.resultLogo{width:42px;height:30px;margin-bottom:2px}.result .finalScore{font-size:42px}.result .status{margin-bottom:6px}.result .performanceSummary{padding:8px 12px;margin-bottom:5px}.result .performanceSummary p{font-size:11px}.result .performanceStats{margin-top:6px}.resultAdvice{padding:7px 10px;margin-bottom:5px}.result .resultSummary>div{padding:6px 8px}.result .resultActions button{min-height:32px;padding:7px 10px}}


/* V61: simpler driving-school access screen with road photography */
body:not(.school-selected) .topbar{display:none!important}
body:not(.school-selected) .stage{height:100dvh!important}
.schoolGate{inset:0!important;padding:0!important;justify-content:center!important;background:linear-gradient(90deg,rgba(2,10,15,.72),rgba(4,14,21,.56) 48%,rgba(2,9,14,.77)),linear-gradient(0deg,rgba(2,9,14,.75),transparent 65%),url('home-background.jpg') center center/cover no-repeat!important}
.gateGlow{background:radial-gradient(circle at 75% 48%,rgba(255,196,0,.09),transparent 36%)!important}
.gateContentSimple{width:min(1120px,calc(100% - 48px))!important;max-width:1120px;margin:0 auto!important;grid-template-columns:minmax(0,1.1fr) minmax(300px,.65fr)!important;gap:clamp(26px,7vw,100px)!important;padding:36px 0!important}
.gateCopySimple{max-width:560px!important}
.gateCopySimple .gateEyebrow{font-size:10px;letter-spacing:2.2px}
.gateCopySimple h1{font-size:clamp(42px,6vw,76px)!important;line-height:.98!important;letter-spacing:-2px!important;margin:17px 0 15px!important}
.gateCopySimple p{font-size:clamp(14px,1.2vw,17px)!important;line-height:1.5!important;max-width:400px!important}
.gateCard{justify-self:stretch!important;max-width:410px!important;border-radius:22px!important;padding:clamp(22px,3vw,34px)!important;background:rgba(5,18,28,.73)!important;border:1px solid rgba(230,243,250,.19)!important;box-shadow:0 28px 70px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.09)!important;backdrop-filter:blur(24px)!important;-webkit-backdrop-filter:blur(24px)!important}
.gateCardTop{margin-bottom:21px!important}.gateCard h2{font-size:clamp(22px,2vw,29px)!important}.gateCard input{letter-spacing:.8px!important}.gateMessage{min-height:17px!important}.gateFooter{bottom:16px!important;left:clamp(20px,4vw,56px)!important;right:clamp(20px,4vw,56px)!important}
#loadingScreen{display:none!important}
@media(max-width:800px){.schoolGate{padding:16px!important}.gateContentSimple{width:100%!important;display:flex!important;flex-direction:column!important;gap:18px!important;padding:24px 0 35px!important;max-width:480px!important}.gateCopySimple{text-align:center!important;max-width:none!important}.gateCopySimple .gateEyebrow{justify-content:center;font-size:8px;letter-spacing:1.6px}.gateCopySimple h1{font-size:clamp(34px,10vw,54px)!important;letter-spacing:-1.2px!important;margin:10px 0!important}.gateCopySimple p{font-size:13px!important;margin:0 auto!important}.gateCard{max-width:none!important;padding:21px!important;border-radius:18px!important}.gateCardTop{gap:10px;margin-bottom:16px!important}.gateIcon{width:42px;height:42px;font-size:21px}.gateCard h2{font-size:22px!important}.gateCard input{height:49px;font-size:14px}.gateButton{height:49px}.gateFooter{position:absolute!important;bottom:7px!important;font-size:7px!important;letter-spacing:1px!important}.gateFooter span{display:none}}

/* V61: result overview fits the screen; no recommendation panel and no clip-score grid */
.result.panel{position:absolute;inset:12px!important;height:auto;min-height:0!important;overflow:hidden!important;overflow-y:hidden!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:clamp(14px,2.2vh,24px) clamp(14px,3vw,38px)!important;gap:0!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(10,27,40,.87),rgba(4,14,22,.89))!important;border:1px solid rgba(210,234,246,.18)!important;box-shadow:0 18px 65px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.07)!important;backdrop-filter:blur(22px)!important;-webkit-backdrop-filter:blur(22px)!important}
.resultLogo{width:46px!important;height:34px!important;margin:0 0 4px!important}
.result .eyebrow{font-size:9px;letter-spacing:2.4px;margin:0!important;color:var(--yellow)}
.result h2{font-size:clamp(22px,2.8vh,29px)!important;margin:2px 0!important;letter-spacing:.03em}
.result .candidateResult{font-size:11px!important;margin-bottom:1px!important}
.result .finalScore{font-size:clamp(42px,6vh,60px)!important;line-height:1!important;margin:4px 0!important;letter-spacing:-1px}
.result .status{font-size:10px!important;padding:5px 11px!important;margin:3px auto 9px!important;align-self:center!important}
.result #resultDetails{width:min(900px,100%);min-width:0}
.result .performanceSummary{width:100%!important;margin:0 auto 8px!important;padding:12px 15px!important;border-radius:14px!important;background:rgba(13,35,49,.56)!important;box-shadow:inset 3px 0 var(--yellow)!important;border:1px solid rgba(170,211,232,.17)!important;text-align:left!important}
.result .performanceTitle{font-size:8px!important;letter-spacing:1.7px!important;margin-bottom:4px!important}
.result .performanceSummary p{font-size:12px!important;line-height:1.42!important;margin:0!important;color:#dce5eb!important}
.result .performanceStats{gap:5px!important;margin-top:8px!important}
.result .performanceStats span{font-size:9px!important;padding:5px 8px!important;border-radius:8px!important;background:rgba(2,13,21,.55)!important}
.result .performanceStats b{font-size:11px!important}
.result .resultSummary{width:min(700px,100%)!important;gap:7px!important;margin:0 auto 7px!important}
.result .resultSummary>div{flex:1!important;min-width:0!important;padding:8px 7px!important;background:rgba(12,30,43,.64)!important;border:1px solid rgba(164,205,228,.15)!important;border-radius:10px!important}
.result .resultSummary span{font-size:7px!important;letter-spacing:.8px!important}
.result .resultSummary b{font-size:13px!important;margin-top:2px!important}
.result .save-status{font-size:9px!important;margin:0 auto 6px!important}
.result .resultActions{display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important;width:min(560px,100%)!important;margin:2px auto 0!important}
.result .resultActions button{width:100%!important;min-height:37px!important;padding:8px 12px!important;font-size:9px!important;border-radius:10px!important;white-space:normal!important}
.result #resultDetails .scoreGrid,.result .resultAdvice{display:none!important}
@media(max-width:800px){.result.panel{inset:5px!important;padding:12px!important;border-radius:16px!important}.resultLogo{width:38px!important;height:28px!important;margin-bottom:3px!important}.result .eyebrow{font-size:8px!important}.result h2{font-size:21px!important}.result .finalScore{font-size:44px!important}.result .status{font-size:9px!important;margin-bottom:8px!important}.result .performanceSummary{padding:10px!important;margin-bottom:7px!important}.result .performanceSummary p{font-size:11px!important;line-height:1.4!important}.result .performanceStats{gap:4px!important;margin-top:7px!important}.result .performanceStats span{font-size:8px!important;padding:5px 6px!important}.result .performanceStats b{font-size:10px!important}.result .resultSummary{gap:4px!important;margin-bottom:6px!important}.result .resultSummary>div{padding:6px 3px!important}.result .resultSummary span{font-size:6px!important}.result .resultSummary b{font-size:11px!important}.result .save-status{font-size:8px!important;margin-bottom:5px!important}.result .resultActions{gap:5px!important}.result .resultActions button{min-height:34px!important;font-size:8px!important;padding:7px 5px!important}}
@media(max-height:650px) and (min-width:801px){.result.panel{padding-top:7px!important;padding-bottom:7px!important}.resultLogo{width:32px!important;height:24px!important;margin-bottom:2px!important}.result .finalScore{font-size:38px!important}.result .performanceSummary{padding:7px 11px!important;margin-bottom:5px!important}.result .performanceSummary p{font-size:10px!important}.result .performanceStats{margin-top:5px!important}.result .resultSummary>div{padding:5px!important}.result .resultActions button{min-height:30px!important;padding:6px 10px!important}}

/* V61: Bootstrap 5.3.8 full-report glass modal */
.report-modal{--bs-modal-width:1120px;z-index:2055}.report-modal .modal-dialog{max-height:calc(100dvh - 24px);margin:12px auto}.report-modal .modal-content{max-height:calc(100dvh - 24px);color:#eff5f8;background:linear-gradient(145deg,rgba(8,25,37,.97),rgba(3,12,20,.985));border:1px solid rgba(190,221,237,.2);border-radius:20px;overflow:hidden;box-shadow:0 35px 100px rgba(0,0,0,.55);backdrop-filter:blur(24px)}
.report-modal .modal-header{padding:17px 21px;border-bottom:1px solid rgba(200,230,244,.12);align-items:center}.report-modal-header{background:linear-gradient(90deg,rgba(15,43,58,.76),rgba(5,17,26,.2))}.report-modal-kicker{font-size:8px;letter-spacing:2px;font-weight:900;color:var(--yellow);margin-bottom:3px}.report-modal .modal-title{font-size:clamp(20px,2.4vw,28px);font-weight:900;letter-spacing:-.5px}.report-candidate-meta{margin-top:3px;font-size:11px;color:#9fb5c2}.report-modal .modal-body{padding:16px 20px 18px;overflow-y:auto;overscroll-behavior:contain}.report-summary-strip{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:8px;margin-bottom:15px}.report-sum-card{border:1px solid rgba(172,207,225,.14);border-radius:12px;background:rgba(15,39,53,.64);padding:10px 13px;min-width:0;display:flex;flex-direction:column;gap:2px}.report-sum-card>span{font-size:8px;font-weight:900;letter-spacing:1.2px;color:#90a8b6}.report-sum-card>strong{font-size:24px;line-height:1.2;color:#f5f8fa}.report-sum-score>strong{font-size:29px;color:var(--yellow)}.report-sum-score small{font-size:13px;color:#9fb5c2}.report-sum-card em{font-size:8px;font-weight:900;font-style:normal;letter-spacing:1.5px}.text-pass{color:#70e4a4}.text-fail{color:#ff788d}.report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.report-filters{display:flex;gap:5px;flex-wrap:wrap}.report-filter{border:1px solid rgba(176,211,228,.17);border-radius:999px;color:#a9bdc8;background:rgba(255,255,255,.025);padding:7px 13px;font-weight:800;font-size:10px;letter-spacing:.3px}.report-filter:hover,.report-filter.active{background:var(--yellow);border-color:var(--yellow);color:#0b1520}.report-timing-note{font-size:9px;color:#748f9e}.report-hazard-list{display:grid;gap:12px}.report-hazard-card{padding:13px;border:1px solid rgba(177,209,225,.15);border-radius:14px;background:linear-gradient(125deg,rgba(17,42,56,.6),rgba(8,23,33,.75));min-width:0}.report-hazard-card.is-identified{border-left:3px solid #45ce89}.report-hazard-card.is-missed{border-left:3px solid #f06a7b}.report-hazard-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:9px}.report-clip-tag{font-size:8px;font-weight:900;letter-spacing:1.3px;color:#8ea8b7}.report-clip-tag span{color:var(--yellow);padding:0 3px}.report-hazard-top h3{font-size:14px;line-height:1.3;font-weight:800;margin:3px 0 0;color:#f3f7f9}.report-outcome{border-radius:999px;padding:5px 8px;font-size:8px;font-weight:1000;letter-spacing:.8px;white-space:nowrap}.report-outcome.identified{background:rgba(69,206,137,.12);border:1px solid rgba(69,206,137,.35);color:#7ce4a8}.report-outcome.missed{background:rgba(240,106,123,.1);border:1px solid rgba(240,106,123,.28);color:#ff96a4}.report-time-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:10px}.report-time-grid>div{padding:8px 9px;border-radius:9px;background:rgba(2,13,21,.48);border:1px solid rgba(174,209,226,.1);min-width:0}.report-time-grid span{display:block;color:#8099a8;font-size:7px;font-weight:900;letter-spacing:1px;margin-bottom:3px}.report-time-grid strong{display:block;font-variant-numeric:tabular-nums;color:#f0f5f8;font-size:13px}.report-image-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.report-shot{min-width:0;border:1px solid rgba(168,205,223,.13);border-radius:10px;padding:7px;background:rgba(0,7,12,.25)}.report-shot-label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}.report-shot-label span{font-size:7px;letter-spacing:1.05px;font-weight:900;color:#8ea6b4}.report-shot-label b{font-size:10px;color:#f1f5f7;font-variant-numeric:tabular-nums}.report-frame-btn{position:relative;display:grid;place-items:center;width:100%;min-height:115px;height:clamp(110px,18vw,210px);border:1px solid rgba(164,195,211,.13);border-radius:7px;padding:0;overflow:hidden;background:linear-gradient(135deg,#07141d,#0e2938);color:#95aab6}.report-frame-btn:not(:disabled){cursor:zoom-in}.report-frame-btn img{display:block;width:100%;height:100%;object-fit:contain;background:#02070b}.report-frame-btn img[hidden]{display:none!important}.report-frame-btn:disabled{cursor:default;opacity:.78}.report-frame-placeholder{padding:12px;text-align:center;font-size:10px;line-height:1.4;color:#9cb0bc;max-width:330px}.report-frame-placeholder.frame-unavailable{color:#edbf65}.report-frame-footnote{margin-top:6px;text-align:right;font-size:8px;color:#6f8998}.report-empty{border:1px dashed #315063;border-radius:12px;padding:24px;text-align:center;color:#9eb3bf;font-size:12px}.report-loading{padding:22px;text-align:center;color:#96aebc}.report-modal-footer{padding:11px 18px;border-top:1px solid rgba(200,230,244,.12);display:flex;align-items:center;justify-content:space-between;gap:12px;color:#7893a2;font-size:9px}.report-modal-footer .btn{font-size:9px;letter-spacing:1px;border-radius:8px;padding:8px 12px}.report-lightbox{position:fixed;inset:0;z-index:2080;background:rgba(0,5,10,.94);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:50px 24px 28px;gap:14px}.report-lightbox[hidden]{display:none!important}.report-lightbox img{max-width:min(1200px,96vw);max-height:78vh;object-fit:contain;border-radius:12px;border:1px solid #365365;background:#000;box-shadow:0 24px 90px #000}.report-lightbox-close{position:absolute;right:24px;top:16px;width:42px;height:42px;border-radius:50%;border:1px solid #456275;background:#102330;color:#fff;font-size:29px;line-height:1}.report-lightbox #reportLightboxCaption{font-size:12px;color:#d7e2e8;text-align:center}.modal-backdrop.show{opacity:.8}.report-modal-open{overflow:hidden}
@media(max-width:700px){.report-modal .modal-dialog{margin:7px;max-height:calc(100dvh - 14px)}.report-modal .modal-content{max-height:calc(100dvh - 14px);border-radius:15px}.report-modal .modal-header{padding:12px 13px}.report-modal .modal-title{font-size:20px}.report-candidate-meta{font-size:9px;max-width:78vw}.report-modal .modal-body{padding:10px}.report-summary-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:10px}.report-sum-card{padding:7px 8px;border-radius:9px}.report-sum-score{grid-column:span 3;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px}.report-sum-card>span{font-size:7px;letter-spacing:.6px}.report-sum-card>strong{font-size:18px}.report-sum-score>strong{font-size:24px}.report-sum-score em{font-size:8px}.report-toolbar{align-items:flex-start;flex-direction:column;margin-bottom:8px;gap:5px}.report-filter{font-size:9px;padding:6px 10px}.report-timing-note{font-size:8px}.report-hazard-list{gap:9px}.report-hazard-card{padding:9px;border-radius:11px}.report-hazard-top h3{font-size:12px}.report-time-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.report-time-grid>div{padding:7px}.report-time-grid span{font-size:6px}.report-time-grid strong{font-size:12px}.report-image-grid{grid-template-columns:1fr;gap:6px}.report-frame-btn{height:clamp(130px,42vw,230px);min-height:120px}.report-shot-label span{font-size:7px}.report-modal-footer{padding:8px 10px;align-items:flex-end}.report-modal-footer>span{max-width:62%;line-height:1.35;font-size:8px}.report-modal-footer .btn{font-size:8px;padding:7px}.report-lightbox{padding:50px 10px 20px}.report-lightbox-close{right:12px;top:10px}}

/* Modal geometry fallback if the Bootstrap CDN cannot be reached */
.report-modal{position:fixed;inset:0;display:none;overflow-x:hidden;overflow-y:auto;background:rgba(0,5,10,.78);z-index:2055}
.report-modal.show{display:block}
.report-modal .modal-dialog{position:relative;width:auto;margin:12px auto;pointer-events:none}
.report-modal .modal-content{position:relative;display:flex;flex-direction:column;pointer-events:auto}
.report-modal .modal-body{flex:1 1 auto}

/* v62: explicit school exit and clean home layout */
.exitSchoolBtn .toolIcon{font-size:14px;color:#f0b8a0}
.exitSchoolBtn:hover{border-color:rgba(255,110,96,.72)!important;color:#ffb5a8!important;background:rgba(255,75,60,.08)!important}
#installAppCard{display:none!important}
@media(max-width:520px){#exitSchoolBtn span:not(.toolIcon),#homeAttemptsBtn span:not(.toolIcon){display:none!important}#exitSchoolBtn,#homeAttemptsBtn{width:34px!important;min-width:34px!important;padding:0!important}}
@media(max-width:380px){#exitSchoolBtn,#homeAttemptsBtn,.homeTool.iconOnly{width:30px!important;min-width:30px!important;height:30px!important}}

/* V69 — responsive readability and touch layout polish.
   Presentation-only overrides: school access, scoring, video playback and data flow are unchanged. */
html, body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  /* School access: let the full card scroll naturally on short screens. */
  .schoolGate {
    justify-content: flex-start !important;
    align-items: stretch;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding: clamp(16px, 4vw, 26px) 16px 18px !important;
  }
  .gateContentSimple {
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    flex: 0 0 auto;
    margin: 0 auto !important;
    padding: 18px 0 12px !important;
    gap: clamp(16px, 3vh, 24px) !important;
  }
  .gateCopySimple .gateEyebrow {
    font-size: 9px !important;
    line-height: 1.45;
    letter-spacing: 1.25px !important;
    white-space: normal;
  }
  .gateCopySimple h1 {
    font-size: clamp(32px, 8.4vw, 48px) !important;
    line-height: 1.04 !important;
    letter-spacing: -1.15px !important;
    margin: 12px 0 !important;
    overflow-wrap: anywhere;
  }
  .gateCopySimple p {
    max-width: 36rem !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
  .gateCard {
    width: 100% !important;
    max-width: none !important;
    padding: clamp(18px, 5vw, 24px) !important;
    border-radius: 18px !important;
  }
  .gateCardTop { gap: 11px; margin-bottom: 18px !important; }
  .gateIcon { width: 44px; height: 44px; flex: 0 0 44px; font-size: 22px; }
  .gateKicker { font-size: 9px !important; letter-spacing: 1.4px; }
  .gateCard h2 { font-size: clamp(21px, 5.5vw, 25px) !important; line-height: 1.2; }
  .gateCard label { font-size: 13px !important; margin-bottom: 8px; }
  .gateCard input {
    height: 50px !important;
    padding: 0 13px !important;
    font-size: 16px !important;
    letter-spacing: .5px !important;
  }
  .gateMessage { min-height: 20px !important; font-size: 12px !important; line-height: 1.4; overflow-wrap: anywhere; }
  .gateButton { min-height: 50px; height: auto !important; padding: 12px 15px !important; font-size: 13px !important; }
  .gateFooter {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto;
    margin: 8px 0 0 !important;
    padding: 12px 2px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 9px !important;
    line-height: 1.45;
    letter-spacing: .8px !important;
  }
  .gateFooter span { display: block !important; max-width: 58%; }
  .gateFooter a { text-align: right; }

  /* Candidate home: normal-size copy, a readable four-item information row and a scrollable sheet. */
  .topbar { height: 60px !important; min-height: 60px; padding: 6px 10px !important; gap: 8px; }
  .topbar .brand { min-width: 0; flex: 1 1 auto; gap: 8px; }
  .topbar .logo { width: 42px !important; height: 42px !important; flex: 0 0 42px; }
  .topbar .school { max-width: 100%; font-size: 11px !important; line-height: 1.2; letter-spacing: .45px !important; white-space: normal; overflow-wrap: anywhere; }
  .topbar .testname { font-size: 7px !important; line-height: 1.25; letter-spacing: .8px !important; white-space: normal; }
  .hud { display: none !important; }
  .homeTools { flex: 0 0 auto; gap: 6px !important; }
  .homeTool, .homeTool.iconOnly {
    width: 36px !important; min-width: 36px !important; height: 36px !important;
    padding: 0 !important; border-radius: 10px !important; font-size: 16px !important;
  }
  .homeTool:first-child span:not(.toolIcon), #homeAttemptsBtn span:not(.toolIcon) { display: none !important; }
  .stage { height: calc(100dvh - 60px) !important; min-height: 0; overflow: hidden !important; }
  .start.panel {
    position: absolute !important; inset: 0 !important; width: 100% !important;
    height: 100% !important; max-width: none !important; min-height: 0 !important;
    padding: 20px 15px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    display: block !important; overflow-x: hidden !important; overflow-y: auto !important;
    overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  }
  .start.panel:after { display: none !important; }
  .homeShell {
    width: 100% !important; max-width: 640px !important; min-height: 0 !important;
    height: auto !important; margin: 0 auto !important; overflow: visible !important;
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    justify-content: flex-start !important; gap: 20px !important;
  }
  .homeCopy { width: 100% !important; min-width: 0; padding: 0 !important; text-align: center !important; }
  .homeKicker {
    display: flex; justify-content: center !important; flex-wrap: wrap; white-space: normal;
    gap: 7px; margin: 0 0 10px !important; font-size: 9px !important;
    line-height: 1.45; letter-spacing: 1.1px !important;
  }
  .homeKicker span { flex: 0 0 6px; width: 6px; height: 6px; }
  .homeIntroTitle { display: block !important; width: 100%; margin: 0 0 12px !important; }
  .homeIntroTitle h1, .homeCopy h1 {
    font-size: clamp(28px, 7.2vw, 38px) !important;
    line-height: 1.08 !important; letter-spacing: -1.1px !important;
    margin: 0 0 9px !important; overflow-wrap: anywhere;
  }
  .homeLead {
    max-width: 560px !important; margin: 0 auto !important;
    font-size: 13px !important; line-height: 1.5 !important;
  }
  .homeStats {
    width: 100% !important; max-width: none !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important; margin: 14px 0 12px !important;
  }
  .homeStats div { min-width: 0; padding: 10px 5px !important; border-radius: 11px !important; }
  .homeStats b { font-size: clamp(18px, 4.6vw, 23px) !important; line-height: 1.15; }
  .homeStats span { font-size: clamp(8px, 2vw, 10px) !important; line-height: 1.25; letter-spacing: .25px !important; margin-top: 5px !important; white-space: normal !important; overflow-wrap: anywhere; }
  .homeTip { width: 100%; max-width: none; margin: 0; padding: 11px 12px !important; gap: 10px; border-radius: 12px; text-align: left; }
  .homeTip>span { width: 22px; height: 22px; flex-basis: 22px; font-size: 12px; }
  .homeTip strong { font-size: 12px !important; line-height: 1.3; }
  .homeTip small { font-size: 11px !important; line-height: 1.45 !important; margin-top: 3px; }
  .examCard {
    width: 100% !important; max-width: none !important; min-width: 0 !important;
    margin: 0 !important; padding: 20px !important; border-radius: 18px !important;
    overflow: visible !important;
  }
  .cardTop { width: 100%; min-width: 0; gap: 10px; margin-bottom: 16px !important; align-items: center; }
  .cardTop>div:first-child { min-width: 0; }
  .cardEyebrow { font-size: 9px !important; line-height: 1.4; letter-spacing: 1.4px !important; }
  .examCard h2 { font-size: clamp(20px, 5.5vw, 25px) !important; line-height: 1.2 !important; margin: 4px 0 0 !important; white-space: normal !important; }
  .cardSecure { flex: 0 0 auto; font-size: 8px !important; letter-spacing: .5px; padding: 6px 7px !important; }
  .examCard .fields { width: 100% !important; display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 13px !important; margin: 0 !important; }
  .examCard .fields label {
    position: static !important; display: block !important; height: auto !important;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    margin: 0 !important; padding: 0 !important; color: #d6e0e6 !important;
    font-size: 12px !important; line-height: 1.35 !important; font-weight: 800;
  }
  .examCard .fields label:before { display: none !important; content: none !important; }
  .examCard .fields label span {
    position: static !important; display: block !important; margin: 0 0 6px !important;
    color: #d6e0e6 !important; font-size: 12px !important; line-height: 1.35 !important;
    letter-spacing: .1px !important; font-weight: 800 !important; text-transform: none !important;
  }
  .examCard .fields input {
    position: static !important; inset: auto !important; display: block !important;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    height: 48px !important; margin: 0 !important; padding: 0 13px !important;
    border-radius: 11px !important; font-size: 16px !important; line-height: normal !important;
    font-weight: 500 !important; box-sizing: border-box !important;
  }
  .examCard .fields input::placeholder { color: #9aabb5 !important; opacity: 1; }
  .startExamBtn { width: 100% !important; height: 50px !important; min-height: 50px; margin: 15px 0 0 !important; font-size: 13px !important; letter-spacing: 1px !important; border-radius: 12px !important; }
  .startExamBtn b { font-size: 22px !important; }
  .cardBottom { margin-top: 10px !important; justify-content: center !important; gap: 8px; }
  .keyboardHint { font-size: 10px !important; line-height: 1.4; text-align: center !important; }
  .installAppCard { display: none !important; }

  /* Result and record overlays remain fully reachable when the device is short. */
  .result.panel {
    inset: 6px !important; height: auto !important; min-height: 0 !important;
    padding: 16px 13px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important; overflow-y: auto !important;
    justify-content: flex-start !important; align-items: stretch !important;
    text-align: center !important; gap: 0 !important;
  }
  .result .performanceSummary { padding: 12px !important; }
  .result .performanceSummary p, .resultAdvice p { font-size: 12px !important; line-height: 1.5 !important; }
  .result .performanceTitle { font-size: 10px !important; }
  .result .performanceStats span { font-size: 10px !important; }
  .result .resultSummary span { font-size: 8px !important; line-height: 1.3; }
  .result .resultSummary b { font-size: 14px !important; }
  .result .resultActions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
  .result .resultActions button { min-width: 0; min-height: 44px !important; padding: 10px 8px !important; font-size: 10px !important; white-space: normal !important; line-height: 1.3; }
  .attemptsModal, .installHelpModal, .limitModal { padding: 12px !important; overflow-y: auto; }
  .attemptsCard { width: 100% !important; max-width: 560px; max-height: calc(100dvh - 24px) !important; padding: 24px 16px 16px !important; border-radius: 18px !important; }
  .attemptsCard h3 { font-size: 21px !important; line-height: 1.2; }
  .attemptIntro { font-size: 13px !important; }
  .attemptSearch { grid-template-columns: minmax(0, 1fr) 78px !important; }
  .attemptSearch input { min-width: 0; font-size: 16px; }
  .attemptPrivacy { font-size: 10px !important; line-height: 1.45; }
  .installHelpCard { max-height: calc(100dvh - 24px); overflow-y: auto; }
}

@media (max-width: 430px) {
  .schoolGate { padding: 12px 12px 14px !important; }
  .gateContentSimple { gap: 15px !important; padding-top: 12px !important; }
  .gateCopySimple h1 { font-size: clamp(30px, 8.3vw, 37px) !important; }
  .gateCopySimple .gateEyebrow { font-size: 8.5px !important; letter-spacing: .9px !important; }
  .gateCard { padding: 17px !important; }
  .gateCardTop { margin-bottom: 14px !important; }
  .gateFooter { font-size: 8px !important; letter-spacing: .4px !important; }
  .gateFooter span { max-width: 52%; }
  .start.panel { padding-left: 12px !important; padding-right: 12px !important; }
  .homeShell { gap: 16px !important; }
  .homeIntroTitle h1, .homeCopy h1 { font-size: clamp(27px, 7.1vw, 32px) !important; }
  .homeLead { font-size: 12.5px !important; }
  .homeStats { gap: 5px !important; }
  .homeStats div { padding: 9px 3px !important; }
  .homeStats span { font-size: 8px !important; letter-spacing: 0 !important; }
  .examCard { padding: 17px !important; }
  .result .resultActions button { font-size: 9.5px !important; }
  .topOverlay { top: 8px !important; left: 8px !important; right: 8px !important; gap: 6px; }
  .pill { padding: 7px 9px !important; font-size: 11px !important; }
  .pill b { font-size: 15px !important; }
  .rightTools { top: 58px !important; right: 8px !important; gap: 6px !important; }
  .rightTools button { width: 35px !important; height: 35px !important; font-size: 17px !important; }
  .tapPrompt { max-width: calc(100vw - 76px); bottom: 83px !important; font-size: 11px !important; line-height: 1.35; padding: 8px 12px !important; }
  .bottomHud { left: 8px !important; right: 8px !important; bottom: 7px !important; grid-template-columns: minmax(0,1fr) 94px !important; grid-template-rows: 36px 16px !important; gap: 4px 8px !important; }
  .skip { height: 40px !important; min-width: 0; font-size: 10px !important; }
  .timeline { min-width: 0; gap: 6px !important; }
  .timeline span { font-size: 10px !important; }
  .track { min-width: 0; height: 8px !important; }
}

@media (max-width: 360px) {
  .topbar { padding-left: 7px !important; padding-right: 7px !important; }
  .topbar .logo { width: 36px !important; height: 36px !important; flex-basis: 36px; }
  .topbar .school { font-size: 10px !important; }
  .topbar .testname { font-size: 6.5px !important; }
  .homeTools { gap: 4px !important; }
  .homeTool, .homeTool.iconOnly { width: 32px !important; min-width: 32px !important; height: 32px !important; }
  .homeStats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .homeStats span { font-size: 9px !important; }
  .gateCard { padding: 15px !important; }
  .attemptSearch { grid-template-columns: minmax(0,1fr) 66px !important; }
}

@media (max-height: 520px) and (max-width: 800px) {
  .schoolGate { justify-content: flex-start !important; }
  .gateContentSimple { padding-top: 8px !important; gap: 10px !important; }
  .gateCopySimple h1 { font-size: 30px !important; margin: 7px 0 !important; }
  .gateCopySimple p { font-size: 12px !important; }
  .gateCard { padding: 14px !important; }
  .gateCardTop { margin-bottom: 10px !important; }
  .gateCard input, .gateButton { height: 44px !important; min-height: 44px; }
  .homeShell { gap: 12px !important; }
  .homeIntroTitle h1, .homeCopy h1 { font-size: 26px !important; }
  .homeLead { font-size: 12px !important; }
  .examCard { padding: 14px !important; }
  .examCard .fields { gap: 9px !important; }
  .examCard .fields input { height: 44px !important; }
}


/* V70 — move school branding into the open sky area on mobile home screens.
   Only active on the candidate home view in portrait mobile layouts. */
@media (max-width: 700px) and (orientation: portrait) {
  body.home-active .topbar {
    overflow: visible !important;
  }
  body.home-active .topbar .brand {
    position: absolute !important;
    top: clamp(82px, 13.5vh, 126px) !important;
    left: clamp(9px, 3vw, 14px) !important;
    right: auto !important;
    width: max-content !important;
    max-width: calc(100vw - 104px) !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
    align-items: center !important;
    overflow: visible !important;
    z-index: 25 !important;
  }
  body.home-active .topbar .logo {
    width: 44px !important;
    height: 42px !important;
    flex: 0 0 44px !important;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.5));
  }
  body.home-active .topbar .school {
    max-width: 45vw !important;
    font-size: clamp(11px, 2.8vw, 12px) !important;
    line-height: 1.15 !important;
    letter-spacing: .4px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.85);
  }
  body.home-active .topbar .testname {
    font-size: clamp(6.5px, 1.8vw, 7.5px) !important;
    line-height: 1.3 !important;
    letter-spacing: .8px !important;
    white-space: normal !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.9);
  }
}


/* V71 — polished stacked, centered school identity for portrait mobile home screens.
   Keep the school name and test label on separate lines underneath the logo. */
@media (max-width: 700px) and (orientation: portrait) {
  body.home-active .topbar .brand {
    top: clamp(78px, 11.6vh, 98px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(86vw, 320px) !important;
    max-width: calc(100vw - 88px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    text-align: center !important;
  }
  body.home-active .topbar .brand > div {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
  }
  body.home-active .topbar .logo {
    display: block !important;
    width: 68px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    margin: 0 auto 1px !important;
    object-fit: contain !important;
  }
  body.home-active .topbar .school {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    font-size: clamp(11px, 3.1vw, 13px) !important;
    line-height: 1.15 !important;
    letter-spacing: .45px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.9) !important;
  }
  body.home-active .topbar .testname {
    display: block !important;
    width: 100% !important;
    margin: 3px auto 0 !important;
    text-align: center !important;
    font-size: clamp(7px, 1.95vw, 8px) !important;
    line-height: 1.3 !important;
    letter-spacing: .85px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.95) !important;
  }
}
