
/* invisible tap progress: the five-tap gesture is still active */
.tl-taps{display:none!important}
/* refresh moved to the sticky top bar */
.top-refresh{border:1px solid var(--line);background:#fff;color:#0f766e;border-radius:10px;min-width:38px;height:36px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;font:inherit;font-weight:800;font-size:12px;transition:.2s}
.top-refresh:hover{border-color:#14b8a6;background:#f0fdfa;transform:translateY(-1px)}
.top-refresh.spin svg{animation:tlSpin .65s ease}
@keyframes tlSpin{to{transform:rotate(360deg)}}
.admin-btn.security{background:linear-gradient(135deg,#f59e0b,#ea580c);color:#fff}
.admin-btn.security:hover{filter:brightness(1.08);transform:translateY(-1px)}
/* filtered passport download buttons */
.passport-dl .pd-actions{justify-content:flex-start;align-items:flex-start;gap:10px}
.passport-dl .pd-actions button{min-height:46px;min-width:160px;padding:12px 18px;font-size:13.5px;justify-content:center;box-shadow:0 10px 20px -12px rgba(0,0,0,.65)}
.passport-dl .pd-actions button.word{background:linear-gradient(135deg,#2563eb,#1d4ed8)}
.passport-dl .pd-actions button.pdf{background:linear-gradient(135deg,#ef4444,#b91c1c)}
.passport-dl .pd-actions button.excel{background:linear-gradient(135deg,#16a34a,#15803d)}
.passport-dl .pd-actions button:hover{filter:brightness(1.08);transform:translateY(-2px)}
/* Word action inside the consolidated Results view */
.rc-actions{display:flex;justify-content:flex-start;margin-top:12px}
.rc-word{border:0;border-radius:9px;padding:10px 14px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font:inherit;font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:7px;cursor:pointer;box-shadow:0 8px 18px -12px rgba(37,99,235,.9)}
.rc-word:hover{filter:brightness(1.08);transform:translateY(-1px)}
/* Admin security dialog */
.admin-security-ov{position:fixed;inset:0;z-index:180;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(2,6,23,.72);backdrop-filter:blur(8px)}
.admin-security-ov.show{display:flex}
.admin-security-card{width:min(520px,100%);background:#fff;border:1px solid #dbe4ea;border-radius:20px;box-shadow:0 36px 90px -30px #000;padding:24px;color:#17202a;animation:rise .35s cubic-bezier(.22,1,.36,1)}
.admin-security-head{display:flex;align-items:flex-start;gap:13px;margin-bottom:15px}
.admin-security-head .sec-ic{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#f59e0b,#ea580c);display:grid;place-items:center;color:#fff;flex:none}
.admin-security-head h3{font-size:20px;line-height:1.2;font-weight:800;margin:0 0 4px;color:#17202a}
.admin-security-head p{font-size:12px;line-height:1.45;color:#64748b;margin:0}
.admin-security-card label{display:block;font-size:12.5px;font-weight:800;color:#334155;margin:13px 0 6px}
.admin-security-card input{width:100%;border:1.5px solid #cbd5e1;border-radius:10px;background:#f8fafc;color:#17202a;font:inherit;font-size:14px;padding:11px 12px;letter-spacing:normal}
.admin-security-card input:focus{outline:none;border-color:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.16)}
.admin-security-card .sec-email{background:#eef2f7;color:#475569}
.admin-security-note{margin-top:13px;padding:10px 12px;border-left:4px solid #f59e0b;background:#fff7ed;color:#7c2d12;border-radius:8px;font-size:11.5px;line-height:1.45}
.admin-security-msg{min-height:18px;margin-top:10px;font-size:12px;font-weight:700;color:#b91c1c}
.admin-security-msg.ok{color:#15803d}
.admin-security-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.admin-security-actions button{border:0;border-radius:10px;padding:11px 16px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.admin-security-actions .sec-cancel{background:#eef2f7;color:#475569}
.admin-security-actions .sec-save{background:linear-gradient(135deg,#f59e0b,#ea580c);color:#fff}
.admin-security-actions button:disabled{opacity:.55;cursor:default}
/* Average test statistics: readable bars instead of a text-only grid. */
.tl-avg{background:rgba(255,255,255,.07)}
.tl-avg .avg-grid{display:grid;grid-template-columns:1fr;gap:9px;padding:0 12px 14px}
.tl-avg .avg-row{padding:11px 12px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:rgba(0,0,0,.14)}
.tl-avg .avg-row .al{display:block;color:#dbeafe;font-size:12px;font-weight:800;line-height:1.3}
.tl-avg .avg-row .avg-line{display:flex;align-items:center;gap:9px;margin-top:7px}
.tl-avg .avg-row .avg-track{flex:1;height:10px;border-radius:999px;background:rgba(255,255,255,.13);overflow:hidden}
.tl-avg .avg-row .avg-fill{display:block;height:100%;width:0;border-radius:999px;transition:width .5s ease}
.tl-avg .avg-row .av{display:block;margin:0;min-width:92px;text-align:right;color:#fff;font-size:13px;font-weight:800}
.tl-avg .avg-row .an{display:block;margin-top:4px;color:#9fb0b6;font-size:10.5px}
/* Dark mode: keep all questions and answer choices white with dark, high-contrast text. */
body.tl-dark .q-head,body.tl-dark .q-body,body.tl-dark .opt,body.tl-dark .opt-row,
body.tl-dark .bf-q,body.tl-dark .hl-q,body.tl-dark .lt-q,body.tl-dark .so-q,body.tl-dark .ag-q,body.tl-dark .hd-q,
body.tl-dark .tu-q,body.tl-dark .tt-q,body.tl-dark .tm-q,body.tl-dark .at-q,body.tl-dark .cs-q,body.tl-dark .bs-q,
body.tl-dark .bf-opt,body.tl-dark .hl-opt,body.tl-dark .lt-opt,body.tl-dark .so-opt,body.tl-dark .ag-opt,body.tl-dark .hd-opt,
body.tl-dark .tu-opt,body.tl-dark .tt-opt,body.tl-dark .tm-opt,body.tl-dark .at-num,body.tl-dark .cs-opt,body.tl-dark .tm-opt,
body.tl-dark .tm-instr,body.tl-dark .bf-instr,body.tl-dark .hl-instr,body.tl-dark .lt-instr,body.tl-dark .so-hint,body.tl-dark .hd-instr{
  background:#fff!important;color:#17202a!important;border-color:#cbd5e1!important
}
body.tl-dark .q-title,body.tl-dark .q-sub,body.tl-dark .q-body,body.tl-dark .q-head .q-title,
body.tl-dark .bf-qhead,body.tl-dark .hl-qhead,body.tl-dark .lt-qhead,body.tl-dark .so-qhead,body.tl-dark .ag-qhead,
body.tl-dark .hd-qhead,body.tl-dark .tu-qhead,body.tl-dark .tt-qhead,body.tl-dark .tm-qhead,body.tl-dark .at-poles,
body.tl-dark .cs-qhead,body.tl-dark .tm-qhead span,body.tl-dark .bs-qhead,body.tl-dark .bf-opt .olb,body.tl-dark .hl-opt .olb,
body.tl-dark .lt-opt .olb,body.tl-dark .so-opt .otxt,body.tl-dark .ag-opt,body.tl-dark .hd-opt,body.tl-dark .tu-opt,
body.tl-dark .tt-opt,body.tl-dark .tm-opt,body.tl-dark .cs-ol,body.tl-dark .tm-opt{color:#17202a!important}
body.tl-dark .q-sub,body.tl-dark .bf-progress .bfph,body.tl-dark .hl-progress .hlph,body.tl-dark .lt-progress .lph,
body.tl-dark .hd-progress .hph,body.tl-dark .tm-progress .tph{color:#475569!important}
body.tl-dark .bf-q.locked,body.tl-dark .hl-q.locked,body.tl-dark .lt-q.locked,body.tl-dark .so-q.locked,body.tl-dark .ag-q.locked,
body.tl-dark .hd-q.locked,body.tl-dark .tu-q.locked,body.tl-dark .tt-q.locked,body.tl-dark .tm-q.locked,body.tl-dark .cs-q.locked,
body.tl-dark .bs-q.locked{background:#f8fafc!important;color:#334155!important}
body.tl-dark .bf-lock,body.tl-dark .hl-lock,body.tl-dark .lt-lock,body.tl-dark .so-lock,body.tl-dark .ag-lock,body.tl-dark .hd-lock,
body.tl-dark .tu-lock,body.tl-dark .tt-lock,body.tl-dark .tm-lock,body.tl-dark .cs-lock,body.tl-dark .tm-lock{color:#475569!important}
body.tl-dark .bf-qhead .n,body.tl-dark .hl-qhead .n,body.tl-dark .lt-qhead .n,body.tl-dark .so-qhead .n,
body.tl-dark .ag-qhead .n,body.tl-dark .hd-qhead .n,body.tl-dark .tu-qhead .n,body.tl-dark .tt-qhead .n,
body.tl-dark .tm-qhead .n,body.tl-dark .cs-qhead .n{color:#fff!important}
body.tl-dark .rs-card,body.tl-dark .rs-empty,body.tl-dark .rs-note{background:#fff!important;color:#17202a!important;border-color:#cbd5e1!important}
body.tl-dark .rs-card .rc-nm,body.tl-dark .rs-card .rc-txt,body.tl-dark .rs-card .rc-sc,body.tl-dark .rs-card .rc-hrow span{color:#17202a!important}
body.tl-dark .rs-card .rc-miss,body.tl-dark .rs-card .rc-hads,body.tl-dark .rs-card .rc-scales{color:#334155!important}
body.tl-dark .pp-card,body.tl-dark .pp-q,body.tl-dark .display-card,body.tl-dark .card{color:#17202a}
@media(max-width:620px){.top-refresh span{display:none}.passport-dl .pd-actions button{width:100%;min-width:0}.admin-security-card{padding:20px 16px}}
