/* UjianKu V3 — clean responsive design system */
:root{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --text:#172033;
  --text-2:#475569;
  --muted:#718096;
  --line:#e2e8f0;
  --line-strong:#cbd5e1;
  --nav:#0b1f33;
  --nav-2:#102a43;
  --primary:#0f766e;
  --primary-2:#0d9488;
  --primary-soft:#ecfdf5;
  --danger:#dc2626;
  --danger-soft:#fef2f2;
  --warn:#d97706;
  --warn-soft:#fffbeb;
  --info:#2563eb;
  --info-soft:#eff6ff;
  --success:#059669;
  --success-soft:#ecfdf5;
  --radius:14px;
  --radius-sm:10px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.05);
  --shadow-md:0 16px 45px rgba(15,23,42,.10);
  --sidebar:268px;
  --topbar:72px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
body.nav-open{overflow:hidden}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img,video,svg{max-width:100%}
.hidden{display:none!important}
.muted{color:var(--muted)}
.help,.hint{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.5}

/* brand */
.brand{display:inline-flex;align-items:center;gap:11px;min-width:0}
.brand-mark{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,var(--primary-2),var(--primary));color:#fff;font-size:18px;font-weight:900;box-shadow:0 8px 24px rgba(15,118,110,.24)}
.brand-title{display:flex;min-width:0;flex-direction:column;color:inherit;font-size:15px;font-weight:850;line-height:1.15;letter-spacing:-.01em}
.brand-title small{margin-top:4px;color:var(--muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.12em}

/* authentication */
.auth-page{min-height:100dvh;background:#eef3f8}
.auth-shell{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(430px,.95fr);min-height:100dvh}
.auth-brand-panel{position:relative;display:flex;overflow:hidden;flex-direction:column;justify-content:space-between;padding:clamp(28px,4vw,56px);background:var(--nav);color:#fff}
.auth-brand-panel::before{content:"";position:absolute;right:-110px;bottom:-150px;width:430px;height:430px;border:1px solid rgba(255,255,255,.08);border-radius:50%}
.auth-brand-panel::after{content:"";position:absolute;right:-30px;bottom:-70px;width:280px;height:280px;border:1px solid rgba(255,255,255,.06);border-radius:50%}
.auth-brand-panel>.brand,.auth-copy,.auth-status{position:relative;z-index:1}
.auth-brand-panel .brand-title small{color:#8ba4b8}
.auth-copy{max-width:650px;margin:70px 0}
.auth-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;color:#8ee6dc;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}
.auth-kicker::before{content:"";width:24px;height:2px;border-radius:99px;background:#35c7b8}
.auth-copy h1{max-width:620px;margin:0;color:#fff;font-size:clamp(36px,5vw,64px);font-weight:850;line-height:1.05;letter-spacing:-.045em}
.auth-copy h1 span{color:#72dfd2}
.auth-copy>p{max-width:610px;margin:22px 0 0;color:#c0cfdb;font-size:16px;line-height:1.75}
.auth-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:34px}
.auth-benefit{padding:15px 16px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.04)}
.auth-benefit b{display:block;margin-bottom:5px;color:#f8fafc;font-size:13px}
.auth-benefit span{display:block;color:#9eb1c1;font-size:11px;line-height:1.55}
.auth-status{display:flex;align-items:center;justify-content:space-between;gap:18px;color:#91a6b7;font-size:11px}
.auth-status strong{display:inline-flex;align-items:center;gap:8px;color:#b7c8d4;font-weight:750}
.auth-status strong::before{content:"";width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.10)}
.auth-form-panel{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;padding:32px;background:#f7f9fc}
.auth-form-wrap{width:min(100%,470px)}
.auth-mobile-brand{display:none!important;margin-bottom:24px}
.auth-card{padding:34px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-md)}
.auth-eyebrow{margin-bottom:8px;color:var(--primary);font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.12em}
.auth-card h2{margin:0;color:var(--text);font-size:28px;line-height:1.2;letter-spacing:-.03em}
.auth-card .sub{margin:8px 0 24px;color:var(--muted);font-size:13px;line-height:1.65}
.auth-note{margin-top:16px;color:var(--muted);font-size:11px;line-height:1.55;text-align:center}
.auth-security{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:10px;font-weight:700}
.auth-security span{display:inline-flex;align-items:center;gap:6px}
.auth-security span::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--success)}

/* app shell */
.shell{min-height:100dvh}
.topbar{position:fixed;z-index:80;top:0;right:0;left:var(--sidebar);display:flex;align-items:center;justify-content:space-between;gap:20px;height:var(--topbar);padding:0 28px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:12px;min-width:0}
.topbar-context{min-width:0}
.topbar-context b{display:block;overflow:hidden;color:#1e293b;font-size:14px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.topbar-context span{display:block;margin-top:2px;color:var(--muted);font-size:11px}
.topbar .brand{display:none}
.menu-toggle{display:none;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:#334155}
.menu-toggle svg{width:20px;height:20px}
.userbox{display:flex;align-items:center;gap:9px;min-width:0}
.avatar{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:10px;background:#e6f5f2;color:var(--primary);font-weight:900}
.userbox .name{min-width:0}
.userbox .name b{display:block;max-width:180px;overflow:hidden;color:#243244;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.role-text{margin-top:1px;color:var(--muted);font-size:10px}
.layout{min-height:100dvh}
.sidebar{position:fixed;z-index:100;inset:0 auto 0 0;display:flex;width:var(--sidebar);flex-direction:column;padding:18px 14px;background:var(--nav);color:#d7e1ea}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 8px 20px}
.sidebar-head .brand-title{color:#fff}
.sidebar-head .brand-title small{color:#708aa0}
.sidebar-close{display:none;width:36px;height:36px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(255,255,255,.04);color:#c7d3de;font-size:22px;line-height:1}
.nav{display:flex;min-height:0;flex:1;flex-direction:column;gap:3px;overflow-y:auto;padding:0 2px 16px;scrollbar-width:thin;scrollbar-color:#24425a transparent}
.nav-label{margin:18px 10px 7px;color:#648097;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.15em}
.nav-label:first-child{margin-top:5px}
.nav a{position:relative;display:flex;align-items:center;gap:11px;min-height:43px;padding:10px 11px;border-radius:10px;color:#aebfcd;font-size:12px;font-weight:700;transition:.15s ease}
.nav a:hover{background:rgba(255,255,255,.055);color:#fff}
.nav a.active{background:rgba(20,184,166,.13);color:#e9fffc}
.nav a.active::before{content:"";position:absolute;left:0;width:3px;height:22px;border-radius:0 4px 4px 0;background:#38d7c6}
.nav-icon{flex:0 0 auto;width:18px;height:18px;opacity:.9}
.sidebar-foot{padding:14px 9px 4px;border-top:1px solid rgba(255,255,255,.07);color:#728a9c;font-size:10px;line-height:1.5}
.sidebar-user{display:flex;align-items:center;gap:10px;margin-bottom:10px;padding:10px;border-radius:11px;background:rgba(255,255,255,.045)}
.sidebar-user .avatar{width:34px;height:34px;border-radius:9px;background:rgba(46,212,196,.12);color:#7de5d9}
.sidebar-user div{min-width:0}
.sidebar-user b{display:block;overflow:hidden;color:#eef5f9;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.sidebar-user span{display:block;margin-top:2px;color:#7890a2;font-size:9px}
.content{min-width:0;margin-left:var(--sidebar);padding:calc(var(--topbar) + 28px) clamp(20px,3vw,42px) 48px}
.content>*{max-width:1480px;margin-right:auto;margin-left:auto}
.nav-overlay{display:none}

/* page headings */
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:24px}
.page-head h1{margin:0;color:#172033;font-size:26px;font-weight:850;line-height:1.2;letter-spacing:-.03em}
.page-head p{max-width:760px;margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.6}
.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:28px 0 12px}
.section-title h2,.section-title h3{margin:0;font-size:15px;font-weight:850;letter-spacing:-.01em}

/* cards + grids */
.grid{display:grid;gap:16px;min-width:0}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.card{min-width:0;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm)}
.card h3{margin:0 0 8px;color:#253246;font-size:14px;font-weight:830;letter-spacing:-.01em}
.card p{margin:0}
.card-accent{border-color:#cdece7;background:linear-gradient(180deg,#fbfffe,#f3fbf9)}
.stat{position:relative;overflow:hidden;min-height:118px;padding:19px}
.stat .k{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.stat .v{margin-top:12px;color:#172033;font-size:31px;font-weight:880;line-height:1;letter-spacing:-.04em}
.stat .sub{margin-top:9px;color:var(--muted);font-size:10px}
.stat::after{content:"";position:absolute;right:-22px;bottom:-28px;width:76px;height:76px;border-radius:50%;background:#edf8f6}
.kpi-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.pill-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.quick-link{display:block;min-height:94px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff;transition:.16s ease}
.quick-link:hover{border-color:#b7dcd7;box-shadow:0 10px 28px rgba(15,23,42,.07);transform:translateY(-1px)}
.quick-link b{display:block;color:#243244;font-size:12px;font-weight:820}
.quick-link span{display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.55}
.mini-list{display:flex;flex-direction:column}
.mini-list .item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #edf1f5}
.mini-list .item:last-child{border-bottom:0}
.empty{padding:26px;color:var(--muted);font-size:12px;text-align:center}

/* controls */
.field{min-width:0;margin-bottom:15px}
.field:last-child{margin-bottom:0}
.field label{display:block;margin-bottom:6px;color:#344054;font-size:11px;font-weight:800}
.input,.select,.textarea{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--line-strong);border-radius:9px;outline:none;background:#fff;color:#1f2937;font-size:12px;transition:.14s ease}
.textarea{min-height:112px;resize:vertical;line-height:1.6}
.input:hover,.select:hover,.textarea:hover{border-color:#aebdca}
.input:focus,.select:focus,.textarea:focus{border-color:#42a99f;box-shadow:0 0 0 3px rgba(15,118,110,.08)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.form-grid .full{grid-column:1/-1}
.check-row{display:flex;align-items:flex-start;gap:9px;color:#475569;font-size:12px}
.check-row input{margin-top:3px;accent-color:var(--primary)}
.toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.toolbar .field{min-width:180px;flex:1 1 180px;margin:0}
.toolbar .field.small{min-width:120px;flex:0 1 160px}
.split-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 14px;border:1px solid transparent;border-radius:9px;font-size:11px;font-weight:820;line-height:1.2;transition:.14s ease;white-space:nowrap}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:none}
.btn-primary{border-color:var(--primary);background:var(--primary);color:#fff;box-shadow:0 6px 15px rgba(15,118,110,.15)}
.btn-primary:hover{background:#0b695f}
.btn-light{border-color:var(--line);background:#fff;color:#344054}
.btn-light:hover{border-color:#b8c5d1;background:#f8fafc}
.btn-danger{border-color:#fecaca;background:#fff;color:#b91c1c}
.btn-danger:hover{background:var(--danger-soft)}
.btn-warn{border-color:#fde68a;background:#fffbeb;color:#a16207}
.btn-sm{min-height:34px;padding:7px 10px;font-size:10px}

/* alerts + badges */
.alert{margin-bottom:16px;padding:11px 13px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-size:11px;line-height:1.55}
.alert.success{border-color:#a7f3d0;background:#ecfdf5;color:#047857}
.alert.danger{border-color:#fecaca;background:#fef2f2;color:#b91c1c}
.alert.warn{border-color:#fde68a;background:#fffbeb;color:#a16207}
.badge{display:inline-flex;align-items:center;gap:5px;min-height:23px;padding:4px 8px;border-radius:999px;background:#eef2f6;color:#475569;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.badge.success{background:#e9f8f3;color:#047857}
.badge.danger{background:#fef0f0;color:#b42318}
.badge.warn{background:#fff7e6;color:#a15c07}
.badge.info,.badge.blue{background:#eef5ff;color:#1d4ed8}
.badge.dark{background:#dce7ee;color:#334155}

/* tables */
.table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:11px;background:#fff;-webkit-overflow-scrolling:touch}
table{width:100%;min-width:720px;border-collapse:separate;border-spacing:0;background:#fff;font-size:11px}
th,td{padding:11px 12px;border-bottom:1px solid #e9eef3;text-align:left;vertical-align:middle}
th{position:sticky;z-index:1;top:0;background:#f8fafc;color:#64748b;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.07em;white-space:nowrap}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:#fbfdff}
td b{color:#263446}

/* participant cards */
.participant-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.participant-card{position:relative;overflow:hidden;padding:19px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow-sm)}
.participant-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--primary)}
.participant-card .school{color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.participant-card .student{margin:7px 0 3px;color:#1f2937;font-size:15px;font-weight:850}
.credential-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.credential-grid div{min-width:0;padding:9px;border-radius:8px;background:#f7f9fb;color:#7b8794;font-size:9px}
.credential-grid b{display:block;overflow-wrap:anywhere;margin-top:3px;color:#334155;font-size:10px}
.monitor-status{display:inline-flex;align-items:center;gap:7px;color:var(--success);font-size:10px;font-weight:800}
.monitor-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.09)}
.presence{display:inline-flex;align-items:center;gap:6px;margin-top:4px;color:var(--muted);font-size:9px}
.presence::before{content:"";width:6px;height:6px;border-radius:50%;background:#94a3b8}
.presence.online::before{background:#22c55e}.presence.offline::before{background:#f59e0b}

/* exam workspace */
.exam-shell{min-height:100dvh;background:#f3f6fa}
.exam-header{position:sticky;z-index:70;top:0;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:68px;padding:10px clamp(12px,2vw,24px);border-bottom:1px solid var(--line);background:rgba(255,255,255,.97);box-shadow:0 1px 8px rgba(15,23,42,.04);backdrop-filter:blur(10px)}
.exam-meta{display:flex;align-items:center;gap:11px;min-width:0}
.exam-meta .brand-mark{width:35px;height:35px;border-radius:10px;font-size:16px}
.exam-meta>div{min-width:0}
.exam-meta b{display:block;max-width:66vw;overflow:hidden;color:#243244;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.timer{min-width:96px;padding:9px 12px;border-radius:10px;background:var(--nav);color:#fff;font-size:15px;font-variant-numeric:tabular-nums;font-weight:900;text-align:center;letter-spacing:.03em}
.exam-grid{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:18px;max-width:1260px;margin:0 auto;padding:20px}
.question-card{scroll-margin-top:84px;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-sm)}
.qtitle{margin:0 0 18px;color:#1f2937;font-size:14px;line-height:1.75;white-space:pre-wrap}
.qmedia{overflow:hidden;margin:12px 0 17px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.qmedia img,.qmedia video{display:block;max-height:430px;margin:auto;border-radius:7px}
.qmedia audio{width:100%}
.option{display:flex;align-items:flex-start;gap:11px;margin:8px 0;padding:12px 13px;border:1px solid #dce3ea;border-radius:10px;background:#fff;cursor:pointer;transition:.13s ease}
.option:hover{border-color:#a8d8d1;background:#fbfefd}
.option:has(input:checked){border-color:#78c9bf;background:#eefaf7;box-shadow:0 0 0 2px rgba(15,118,110,.04)}
.option input{flex:0 0 auto;margin-top:4px;accent-color:var(--primary)}
.option span{min-width:0;color:#334155;font-size:12px;line-height:1.6}
.exam-side{position:sticky;top:86px;height:max-content}
.exam-side>.card{padding:17px;box-shadow:var(--shadow-sm)}
.palette{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.pbtn{aspect-ratio:1;border:1px solid #dce3ea;border-radius:8px;background:#fff;color:#526170;font-size:10px;font-weight:850}
.pbtn:hover{border-color:#9ccfc8}.pbtn.answered{border-color:#b0ddd6;background:#eaf8f5;color:#067647}
.save-state{margin-top:8px;color:var(--muted);font-size:9px}
.exam-warning{margin-top:11px;padding:10px;border-radius:9px;background:#fff8e8;color:#8b5a10;font-size:9px;line-height:1.5}

/* compatibility with legacy classes */
.login-page{display:none}.login-hero,.login-panel,.login-wrap,.login-card,.login-eyebrow,.login-security,.demo-box,.hero-copy,.hero-footer,.hero-kicker,.feature-strip,.feature-mini,.secure,.dot-live,.ui-build{box-sizing:border-box}

/* responsive */
@media(max-width:1200px){
  .grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .auth-benefits{grid-template-columns:1fr}
  .auth-benefit:nth-child(3){display:none}
}
@media(max-width:1024px){
  :root{--topbar:66px}
  .topbar{left:0;padding:0 16px}
  .topbar .brand{display:inline-flex}
  .topbar-context{display:none}
  .menu-toggle{display:grid}
  .sidebar{width:min(86vw,286px);transform:translateX(-103%);box-shadow:28px 0 60px rgba(5,18,30,.28);transition:transform .2s ease}
  body.nav-open .sidebar{transform:translateX(0)}
  .sidebar-close{display:grid;place-items:center}
  .nav-overlay{position:fixed;z-index:90;inset:0;display:block;background:rgba(5,17,29,.42);opacity:0;visibility:hidden;transition:.2s;backdrop-filter:blur(2px)}
  body.nav-open .nav-overlay{opacity:1;visibility:visible}
  .content{margin-left:0;padding:calc(var(--topbar) + 22px) 18px 38px}
  .exam-grid{grid-template-columns:1fr}.exam-side{position:static;order:-1}.exam-side .palette{grid-template-columns:repeat(10,minmax(0,1fr))}
  .auth-shell{grid-template-columns:1fr}
  .auth-brand-panel{min-height:auto;padding:26px 30px 74px}
  .auth-copy{margin:42px 0 10px}.auth-copy h1{font-size:42px}.auth-copy>p{font-size:14px}
  .auth-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-benefit:nth-child(3){display:none}
  .auth-status{display:none}
  .auth-form-panel{margin-top:-36px;padding:0 18px 36px;border-radius:30px 30px 0 0;background:#f7f9fc}
  .auth-form-wrap{max-width:540px}.auth-card{padding:30px}
}
@media(max-width:720px){
  body{font-size:13px}
  .topbar{padding:0 10px}.topbar .brand-title small{display:none}.topbar .userbox .name{display:none}.topbar-right{gap:6px}
  .content{padding:calc(var(--topbar) + 16px) 12px 30px}
  .page-head{flex-direction:column;gap:13px;margin-bottom:18px}.page-head h1{font-size:22px}.page-actions{width:100%;justify-content:flex-start}.page-actions .btn{flex:1 1 auto}
  .grid-5,.grid-4,.grid-3,.grid-2,.form-grid{grid-template-columns:1fr}.grid{gap:12px}.card{padding:16px;border-radius:12px}.stat{min-height:106px}.stat .v{font-size:28px}
  .quick-actions{grid-template-columns:1fr 1fr}.toolbar{align-items:stretch}.toolbar .field,.toolbar .field.small{min-width:100%;flex:1 1 100%}.toolbar>.btn{width:100%}
  .participant-cards{grid-template-columns:1fr}
  .auth-brand-panel{padding:20px 18px 58px}.auth-brand-panel>.brand{display:inline-flex;margin-bottom:18px}.auth-copy{margin:4px 0}.auth-kicker{margin-bottom:12px}.auth-copy h1{font-size:32px}.auth-copy>p{font-size:12px}.auth-benefits{grid-template-columns:1fr 1fr;margin-top:20px}.auth-benefit{padding:12px}.auth-form-panel{padding:0 10px 28px}.auth-card{padding:22px 17px;border-radius:16px}.auth-card h2{font-size:24px}.auth-security{flex-direction:column;gap:5px}
  .exam-header{min-height:60px;padding:8px 9px}.exam-meta .subject{display:none}.exam-meta b{max-width:52vw}.timer{min-width:82px;font-size:13px}.exam-grid{padding:9px}.question-card{padding:15px;border-radius:12px}.exam-side .palette{grid-template-columns:repeat(5,minmax(0,1fr))}.credential-grid{grid-template-columns:1fr 1fr}.btn{min-height:39px}.split-actions .btn{flex:1 1 auto}
}
@media(max-width:430px){
  .topbar .userbox{display:none}.brand-title{font-size:13px}.menu-toggle{width:38px;height:38px}
  .quick-actions{grid-template-columns:1fr}.auth-benefits{grid-template-columns:1fr}.auth-benefit:nth-child(2){display:none}.auth-copy h1{font-size:28px}
  .credential-grid{grid-template-columns:1fr}.page-actions .btn{width:100%}.exam-meta b{max-width:44vw}.question-card{padding:13px}.option{padding:10px}.participant-card{padding:16px}
}
@media print{body{background:#fff}.topbar,.sidebar,.nav-overlay,.page-head .page-actions,.no-print{display:none!important}.content{max-width:none;margin:0;padding:0}.card{box-shadow:none}.participant-cards{grid-template-columns:repeat(2,1fr)}.participant-card{break-inside:avoid;page-break-inside:avoid}}

/* V3.5.1 — one-question workspace + explicit fullscreen controls */
[hidden]{display:none!important}
.exam-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.question-progress{display:flex;align-items:baseline;gap:3px;min-width:58px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#64748b;font-size:11px;font-variant-numeric:tabular-nums;text-align:center}
.question-progress b{color:#0f766e;font-size:16px}
.exam-fs-btn{white-space:nowrap}
.exam-notice-wrap{max-width:1260px;margin:0 auto;padding:12px 20px 0}
.exam-notice-wrap .alert{margin:0}
.exam-question-stage{min-width:0}
.exam-question-page{min-height:440px}
.exam-question-page.is-active{animation:examQuestionIn .14s ease-out}
@keyframes examQuestionIn{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}
.question-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #edf1f4}
.answer-area{min-height:160px}
.question-nav-bottom{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-top:22px;padding-top:16px;border-top:1px solid #edf1f4}
.question-nav-bottom .exam-prev-btn{justify-self:start}
.question-nav-bottom .exam-next-btn{justify-self:end}
.question-nav-label{color:#64748b;font-size:10px;font-weight:800;text-align:center}
.question-nav-bottom .btn:disabled{opacity:.45;cursor:not-allowed}
.exam-side-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.palette-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:11px;color:#64748b;font-size:9px}
.palette-legend span{display:inline-flex;align-items:center;gap:5px}
.palette-legend .dot{width:8px;height:8px;border-radius:50%;background:#e2e8f0}
.palette-legend .dot.current{background:#0f766e}.palette-legend .dot.answered{background:#86d5c9}
.pbtn.active{border-color:#0f766e;background:#0f766e;color:#fff;box-shadow:0 0 0 2px rgba(15,118,110,.13)}
.pbtn.active.answered{border-color:#0f766e;background:#0f766e;color:#fff}
.badge.neutral{border:1px solid #e2e8f0;background:#f8fafc;color:#64748b}
.answer-area .input,.answer-area .textarea,.answer-area .select{font-size:14px}
.answer-area .textarea{min-height:190px;resize:vertical}
.answer-area .option{position:relative;z-index:1;user-select:none}
.answer-area .option input{width:17px;height:17px;cursor:pointer}
#fsStatus{transition:.15s ease}

@media(max-width:1024px){
  .exam-grid{grid-template-columns:1fr}
  .exam-side{position:static;order:0}
  .exam-question-page{min-height:0}
  .exam-side .palette{grid-template-columns:repeat(10,minmax(0,1fr))}
}
@media(max-width:720px){
  .exam-header{flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 10px}
  .exam-meta{flex:1 1 auto}.exam-meta b{max-width:72vw}
  .exam-header-actions{width:100%;justify-content:space-between}
  .question-progress{min-width:54px;padding:7px 8px}
  .exam-fs-btn{flex:1 1 auto;max-width:150px;padding-inline:9px}
  .timer{margin-left:auto}
  .exam-notice-wrap{padding:8px 9px 0}
  .exam-grid{padding:9px}
  .question-card-head{align-items:flex-start}
  .question-nav-bottom{grid-template-columns:1fr 1fr}
  .question-nav-label{grid-column:1/-1;grid-row:1}
  .question-nav-bottom .exam-prev-btn{grid-column:1;grid-row:2;width:100%}
  .question-nav-bottom .exam-next-btn{grid-column:2;grid-row:2;width:100%}
  .exam-side .palette{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:430px){
  .exam-meta .brand-mark{display:none}.exam-meta b{max-width:88vw}
  .exam-header-actions{gap:6px}.question-progress{font-size:10px}.question-progress b{font-size:14px}
  .exam-fs-btn{font-size:10px;max-width:128px}.timer{min-width:76px;padding:8px;font-size:12px}
  .question-card-head{flex-direction:column;gap:7px}.answer-area .option{padding:11px}
}

/* V3.6.0 — reliable answer interaction + submit confirmation */
.answer-area{position:relative;z-index:2;pointer-events:auto!important}
.answer-area .option,.answer-area .option *,.answer-area input,.answer-area textarea,.answer-area select{pointer-events:auto!important}
.answer-area .option{touch-action:manipulation;-webkit-tap-highlight-color:rgba(15,118,110,.12)}
.answer-area .option input{position:relative;z-index:3;opacity:1!important;visibility:visible!important}
.exam-question-page[aria-hidden="false"]{pointer-events:auto}
.exam-question-page[aria-hidden="true"]{pointer-events:none}
.submit-success-wrap{display:grid;place-items:center;min-height:calc(100dvh - 180px);padding:24px 0}
.submit-success-card{width:min(100%,620px);text-align:center;padding:36px}
.submit-success-icon{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 16px;border-radius:50%;background:#e9f8f4;color:#087a68;font-size:34px;font-weight:900}
.submit-success-card h1{margin:14px 0 8px;font-size:28px}
.submit-success-card>p{max-width:500px;margin:0 auto;color:var(--muted);line-height:1.7}
.submit-score{display:flex;align-items:center;justify-content:center;gap:14px;margin:24px auto 0;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;width:max-content}
.submit-score span{color:var(--muted);font-weight:700}.submit-score b{color:var(--primary);font-size:24px}
.submit-success-actions{justify-content:center;margin-top:24px}
.split-actions form{display:inline-flex;margin:0}
@media(max-width:620px){.submit-success-card{padding:24px 16px}.submit-success-card h1{font-size:23px}.submit-success-actions{flex-direction:column}.submit-success-actions .btn{width:100%}}

/* V3.6.0 — submit gate + clearer timer recovery */
.submit-gate{padding:10px 11px;border:1px solid var(--line);border-radius:9px;font-size:9px;line-height:1.5}
.submit-gate.locked{border-color:#f2d49a;background:#fff8e8;color:#8b5a10}
.submit-gate.ready{border-color:#b8dfd8;background:#edf9f6;color:#087a68}
#submitBtn:disabled{cursor:not-allowed;opacity:.58}

/* ============================================================
   UjianKu V3.6.1 — Professional Modern UI Refresh
   Midnight Navy + Teal + Cobalt / high-clarity school interface
   ============================================================ */
:root{
  --bg:#f3f6fb;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --surface-3:#eef4f8;
  --text:#142033;
  --text-2:#3f4f63;
  --muted:#718096;
  --line:#e3e9f0;
  --line-strong:#cbd6e2;
  --nav:#0b1830;
  --nav-2:#102541;
  --primary:#0f766e;
  --primary-2:#0d9488;
  --primary-deep:#0a5e59;
  --accent:#2563eb;
  --accent-soft:#eff6ff;
  --primary-soft:#edf9f6;
  --danger:#c93636;
  --danger-soft:#fff1f1;
  --warn:#b86b0b;
  --warn-soft:#fff8e8;
  --info:#2563eb;
  --info-soft:#eef5ff;
  --success:#0b8a69;
  --success-soft:#ecf8f4;
  --radius:16px;
  --radius-sm:11px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.03),0 10px 28px rgba(15,31,51,.055);
  --shadow-md:0 20px 52px rgba(8,24,48,.12);
}
html{background:var(--bg)}
body{background:
  radial-gradient(circle at 82% 8%,rgba(37,99,235,.035),transparent 28rem),
  radial-gradient(circle at 8% 88%,rgba(13,148,136,.035),transparent 28rem),
  var(--bg);color:var(--text)}
::selection{background:rgba(15,118,110,.18);color:#092c2a}

/* brand */
.brand{gap:12px}
.brand-mark{width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#2563eb 0%,#0f766e 100%);box-shadow:0 10px 28px rgba(15,118,110,.22);font-size:17px}
.brand-title{font-size:15px;font-weight:900;letter-spacing:-.02em}
.brand-title small{font-size:8px;letter-spacing:.16em}

/* login */
.auth-page{background:#f3f6fb}
.auth-brand-panel{background:
  radial-gradient(circle at 80% 15%,rgba(37,99,235,.22),transparent 26rem),
  radial-gradient(circle at 20% 90%,rgba(13,148,136,.16),transparent 24rem),
  linear-gradient(145deg,#08162b 0%,#0b1d35 54%,#0d2740 100%)}
.auth-brand-panel::before{right:-130px;bottom:-180px;width:480px;height:480px;border-color:rgba(255,255,255,.075)}
.auth-brand-panel::after{right:-35px;bottom:-80px;width:300px;height:300px;border-color:rgba(255,255,255,.055)}
.auth-kicker{color:#8fe5dc}.auth-kicker::before{background:linear-gradient(90deg,#60a5fa,#2dd4bf)}
.auth-copy h1{font-weight:900;letter-spacing:-.055em}.auth-copy h1 span{color:#81e6dc}
.auth-copy>p{color:#c3d0dc}
.auth-benefit{border-color:rgba(255,255,255,.10);background:rgba(255,255,255,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.auth-benefit b{color:#fff}.auth-benefit span{color:#9fb1c2}
.auth-form-panel{background:linear-gradient(180deg,#f8fafc 0%,#f3f6fb 100%)}
.auth-card{padding:36px;border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 26px 70px rgba(8,24,48,.13),0 2px 8px rgba(8,24,48,.04)}
.auth-eyebrow{color:var(--primary);font-weight:900}.auth-card h2{color:#102038;font-size:29px;font-weight:900}
.auth-security{border-top-color:#e8edf3}

/* shell / navigation */
.sidebar{padding:18px 13px;background:
  radial-gradient(circle at 20% 0%,rgba(37,99,235,.12),transparent 20rem),
  linear-gradient(180deg,#09172c 0%,#0b1b31 52%,#0a1a2d 100%);border-right:1px solid rgba(255,255,255,.035);box-shadow:8px 0 32px rgba(8,24,48,.08)}
.sidebar-head{padding:4px 9px 22px}
.sidebar-head .brand-title small{color:#66849d}
.nav{gap:4px}.nav-label{margin:20px 11px 8px;color:#627f99;font-size:8px;font-weight:900;letter-spacing:.18em}
.nav a{min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:11px;color:#aebdca;font-size:12px;font-weight:750}
.nav a svg{width:17px;height:17px;opacity:.86}
.nav a:hover{border-color:rgba(255,255,255,.045);background:rgba(255,255,255,.055);color:#eef6fb;transform:translateX(1px)}
.nav a.active{border-color:rgba(45,212,191,.16);background:linear-gradient(90deg,rgba(13,148,136,.20),rgba(37,99,235,.08));color:#fff;box-shadow:inset 3px 0 0 #2dd4bf,0 8px 22px rgba(0,0,0,.08)}
.nav a.active svg{color:#5eead4;opacity:1}
.sidebar-foot{border-top-color:rgba(255,255,255,.075)!important;color:#6d879c!important}
.sidebar-user{background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.055);border-radius:12px;padding:10px!important}
.sidebar .avatar{background:linear-gradient(145deg,rgba(37,99,235,.24),rgba(13,148,136,.22));color:#c7fff7;border:1px solid rgba(255,255,255,.08)}
.topbar{border-bottom:1px solid rgba(216,224,234,.9);background:rgba(255,255,255,.92);box-shadow:0 5px 18px rgba(15,31,51,.035);backdrop-filter:blur(18px) saturate(130%)}
.topbar-context b{color:#17263a;font-weight:850}.topbar-context span{color:#7a8898}
.topbar .avatar{background:linear-gradient(145deg,#eaf3ff,#e7f8f5);color:#0f6a6a;border:1px solid #d9e8ef}
.content{padding-top:calc(var(--topbar) + 32px)}

/* headings */
.page-head{margin-bottom:26px}
.page-head h1{color:#122137;font-size:27px;font-weight:900;letter-spacing:-.035em}
.page-head p{color:#758295;font-size:12px}
.section-title{margin-top:30px}.section-title h2,.section-title h3{color:#1b2a3d;font-weight:900}

/* cards */
.grid{gap:18px}
.card{padding:21px;border:1px solid #e3e9f0;border-radius:16px;background:rgba(255,255,255,.98);box-shadow:var(--shadow-sm)}
.card h3{color:#1b2b40;font-size:14px;font-weight:900}
.card-accent{border-color:#cde9e5;background:linear-gradient(145deg,#ffffff 0%,#f1fbf8 100%);box-shadow:0 12px 30px rgba(15,118,110,.055)}
.stat{min-height:122px;padding:20px;border-top:3px solid rgba(15,118,110,.72)}
.stat .k{color:#758397;font-size:9px;font-weight:900;letter-spacing:.12em}
.stat .v{color:#122137;font-size:32px;font-weight:900}.stat .sub{color:#7b8797}
.stat::after{right:-26px;bottom:-32px;width:94px;height:94px;background:linear-gradient(145deg,rgba(37,99,235,.055),rgba(13,148,136,.075))}
.quick-link{min-height:98px;padding:17px;border-color:#e1e8ef;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfcfe);box-shadow:0 4px 14px rgba(15,31,51,.025)}
.quick-link:hover{border-color:#a9d7d1;background:#fff;box-shadow:0 14px 34px rgba(15,31,51,.075);transform:translateY(-2px)}
.quick-link b{color:#1e2e43;font-weight:900}.quick-link span{color:#748294}
.mini-list .item{border-bottom-color:#edf1f5}

/* forms */
.field label{margin-bottom:7px;color:#34445a;font-size:10px;font-weight:900;letter-spacing:.015em}
.input,.select,.textarea{min-height:43px;padding:10px 12px;border-color:#cad5e1;border-radius:10px;background:#fbfcfe;color:#17263a;font-size:12px;box-shadow:inset 0 1px 1px rgba(15,31,51,.015)}
.input:hover,.select:hover,.textarea:hover{border-color:#9eb1c2;background:#fff}
.input:focus,.select:focus,.textarea:focus{border-color:#26958b;background:#fff;box-shadow:0 0 0 4px rgba(13,148,136,.10)}
.check-row{color:#45566a}.check-row input{accent-color:var(--primary)}

/* buttons */
.btn{min-height:41px;padding:9px 15px;border-radius:10px;font-weight:850;letter-spacing:.005em;box-shadow:none}
.btn-primary{border-color:#0d746d;background:linear-gradient(180deg,#13857c 0%,#0f766e 100%);box-shadow:0 8px 18px rgba(15,118,110,.16)}
.btn-primary:hover{border-color:#0a655f;background:linear-gradient(180deg,#0f7c74,#0b6a63);box-shadow:0 10px 24px rgba(15,118,110,.20)}
.btn-light{border-color:#d8e0e9;background:#fff;color:#34455a;box-shadow:0 2px 7px rgba(15,31,51,.03)}
.btn-light:hover{border-color:#b8c6d4;background:#f7f9fc;color:#17263a}
.btn-danger{border-color:#f1c8c8;background:#fff;color:#b52f2f}.btn-danger:hover{border-color:#e9aaaa;background:#fff5f5}
.btn-warn{border-color:#efd79a;background:#fffaf0;color:#9a5c0d}.btn-sm{min-height:35px}

/* alerts & badges */
.alert{padding:12px 14px;border-radius:11px;border-color:#cddcf7;background:#f2f7ff;color:#2956a5;box-shadow:0 3px 12px rgba(37,99,235,.025)}
.alert.success{border-color:#b9e1d3;background:#effaf6;color:#087356}
.alert.danger{border-color:#f0c5c5;background:#fff4f4;color:#a82d2d}
.alert.warn{border-color:#efd79a;background:#fff9ec;color:#92570e}
.badge{min-height:24px;padding:4px 9px;border:1px solid transparent;font-size:8px;font-weight:900;letter-spacing:.07em}
.badge.success{border-color:#cce9df;background:#eff9f5;color:#08785a}.badge.danger{border-color:#f0d0d0;background:#fff3f3;color:#a92d2d}
.badge.warn{border-color:#eedcaf;background:#fff9eb;color:#92570e}.badge.info,.badge.blue{border-color:#d4e2fb;background:#f1f6ff;color:#2956a5}
.badge.dark{border-color:#d6e0e8;background:#eef3f7;color:#415468}

/* tables */
.table-wrap{border-color:#dfe7ef;border-radius:14px;box-shadow:0 5px 18px rgba(15,31,51,.03)}
table{font-size:11px}
th,td{padding:12px 13px;border-bottom-color:#e9eef4}
th{background:linear-gradient(180deg,#f7f9fc,#f2f6f9);color:#617187;font-size:8px;font-weight:900;letter-spacing:.09em;box-shadow:inset 0 -1px 0 #dde5ed}
tbody tr:nth-child(even) td{background:#fcfdff}
tbody tr:hover td{background:#f4f8fb}
td b{color:#1e3045}

/* participant / monitoring */
.participant-card{padding:20px;border-color:#e1e8ef;border-radius:15px;box-shadow:0 8px 24px rgba(15,31,51,.045)}
.participant-card::before{width:5px;background:linear-gradient(180deg,#2563eb,#0f766e)}
.credential-grid div{border:1px solid #edf1f5;background:#f8fafc}
.monitor-status{color:#08785a}.monitor-status::before{background:#16a36f;box-shadow:0 0 0 4px rgba(22,163,111,.10)}

/* exam */
.exam-shell{background:
  radial-gradient(circle at 92% 4%,rgba(37,99,235,.035),transparent 25rem),
  #f2f5f9}
.exam-header{min-height:70px;border-bottom-color:#dde5ed;background:rgba(255,255,255,.95);box-shadow:0 5px 18px rgba(15,31,51,.045);backdrop-filter:blur(18px) saturate(130%)}
.exam-meta b{color:#192a3e;font-weight:900}.timer{min-width:100px;border:1px solid rgba(255,255,255,.06);border-radius:11px;background:linear-gradient(145deg,#0a1930,#112d47);box-shadow:0 8px 18px rgba(8,24,48,.16);font-size:15px}
.exam-grid{gap:20px;padding:22px}
.question-card{padding:24px;border-color:#dfe7ef;border-radius:18px;box-shadow:0 12px 34px rgba(15,31,51,.055)}
.question-card-head{border-bottom-color:#e9eef4}
.qtitle{color:#1a2a3d;font-size:14px;font-weight:650;line-height:1.8}
.qmedia{border-color:#e1e8ef;border-radius:12px;background:#f7f9fc}
.option{gap:12px;margin:9px 0;padding:13px 14px;border-color:#d7e0e9;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(15,31,51,.018)}
.option:hover{border-color:#8fcac3;background:#fbfefd;box-shadow:0 7px 18px rgba(15,118,110,.045)}
.option:has(input:checked){border-color:#52afa5;background:linear-gradient(90deg,#effaf7,#f7fcfb);box-shadow:0 0 0 3px rgba(15,118,110,.075)}
.option input{width:18px;height:18px;accent-color:#0f766e}.option span{color:#314358;font-size:12px}
.exam-side>.card{border-color:#dfe7ef;border-radius:16px;box-shadow:0 10px 28px rgba(15,31,51,.05)}
.pbtn{border-color:#d6e0e9;border-radius:9px;background:#fff;color:#506176;transition:.14s ease}
.pbtn:hover{border-color:#83bfb8;background:#f4fbf9}.pbtn.answered{border-color:#9bd4c9;background:#e9f8f4;color:#08785a}
.pbtn.active,.pbtn.active.answered{border-color:#0f766e;background:linear-gradient(145deg,#13857c,#0f766e);color:#fff;box-shadow:0 0 0 3px rgba(15,118,110,.11)}
.palette-legend .dot.current{background:#0f766e}.palette-legend .dot.answered{background:#79cbbd}
.question-progress{border-color:#dbe4ec;border-radius:11px;background:#fff;box-shadow:0 2px 8px rgba(15,31,51,.03)}
.question-progress b{color:#0f766e}
.submit-gate{border-radius:10px}.submit-gate.locked{border-color:#efd79a;background:#fff9ec;color:#92570e}.submit-gate.ready{border-color:#b9e1d3;background:#effaf6;color:#087356}
.submit-success-card{border-radius:20px}.submit-success-icon{background:linear-gradient(145deg,#eaf8f4,#eaf3ff);color:#0f766e;box-shadow:0 10px 28px rgba(15,118,110,.09)}

/* motion / accessibility */
:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:2px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* refined responsive behavior */
@media(max-width:1024px){
  .sidebar{box-shadow:28px 0 70px rgba(5,18,36,.32)}
  .topbar{box-shadow:0 5px 18px rgba(15,31,51,.045)}
  .auth-form-panel{background:linear-gradient(180deg,#f7f9fc,#f3f6fb)}
}
@media(max-width:720px){
  .card{padding:17px;border-radius:14px}.stat{min-height:110px}.stat .v{font-size:29px}
  .page-head h1{font-size:23px}.auth-card{padding:23px 18px;border-radius:18px}
  .exam-grid{padding:10px}.question-card{padding:16px;border-radius:14px}.option{padding:12px}
  .exam-header{box-shadow:0 4px 14px rgba(15,31,51,.045)}
}

/* =========================================================
   V3.8.0 — CBT ADMIN CLASSIC BLUE
   Inspired by familiar Indonesian CBT admin workflows.
   Functional structure remains UjianKu; this is a UX redesign.
   ========================================================= */
:root{
  --bg:#eef1f5;
  --surface:#fff;
  --surface-2:#f7f8fa;
  --text:#263238;
  --text-2:#455a64;
  --muted:#78909c;
  --line:#dfe4ea;
  --line-strong:#cfd6de;
  --nav:#123b72;
  --nav-2:#0b2c59;
  --primary:#1976d2;
  --primary-2:#0d5fb8;
  --primary-soft:#eaf4ff;
  --radius:7px;
  --radius-sm:5px;
  --shadow-sm:0 1px 3px rgba(25,45,70,.08);
  --shadow-md:0 10px 30px rgba(25,45,70,.15);
  --sidebar:248px;
  --topbar:62px;
}
body{font-family:Arial,"Segoe UI",sans-serif;background:var(--bg);font-size:13px;color:#263238}
.brand-mark{width:39px;height:39px;border-radius:4px;background:#fff;color:#175dad;box-shadow:none;font-size:15px;border:1px solid rgba(255,255,255,.55)}
.brand-title{font-size:16px;font-weight:800}.brand-title small{margin-top:2px;font-size:9px;letter-spacing:.1em}

/* Login: centered CBT portal with strong blue header */
.auth-page{background:#eef1f5}
.auth-shell{display:block;min-height:100dvh;background:linear-gradient(180deg,#0e3975 0,#1b5fa7 285px,#eef1f5 285px)}
.auth-brand-panel{min-height:285px;padding:28px max(28px,calc((100vw - 1120px)/2));background:transparent;display:block;text-align:left}
.auth-brand-panel::before{inset:0;background:linear-gradient(110deg,rgba(255,255,255,.06),transparent 45%),repeating-linear-gradient(160deg,transparent 0 42px,rgba(255,255,255,.035) 43px 44px);width:auto;height:auto;border:0;border-radius:0}
.auth-brand-panel::after{right:6%;bottom:-80px;width:330px;height:180px;border:2px solid rgba(255,255,255,.08);border-radius:50%;transform:rotate(-12deg)}
.auth-copy{max-width:720px;margin:40px 0 0}.auth-kicker{margin-bottom:10px;color:#bfe0ff;font-size:11px}.auth-kicker::before{background:#fff}
.auth-copy h1{font-size:36px;letter-spacing:-.025em}.auth-copy h1 span{color:#fff}.auth-copy>p{max-width:700px;margin-top:12px;color:#d8e9fb;font-size:13px}
.auth-benefits{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:22px}.auth-benefit{padding:11px 13px;border-radius:5px;background:rgba(255,255,255,.08)}.auth-benefit b{font-size:12px}.auth-benefit span{font-size:10px;color:#d3e4f6}
.auth-status{display:none}.auth-form-panel{margin-top:-46px;padding:0 18px 50px;background:transparent;align-items:flex-start}.auth-form-wrap{max-width:480px}.auth-card{padding:28px 30px;border-radius:7px;border-top:4px solid #1976d2;box-shadow:0 14px 40px rgba(20,48,83,.18)}.auth-eyebrow{color:#1976d2}.auth-card h2{font-size:25px}.auth-card .sub{margin-bottom:20px}.auth-card .btn-primary{width:100%;min-height:44px;font-size:12px}
.auth-mobile-brand{display:none!important}

/* Shell / top bar */
.topbar{height:var(--topbar);padding:0 20px;border-bottom:1px solid #d8dee6;background:#fff;box-shadow:0 1px 4px rgba(18,49,84,.08)}
.topbar-context b{font-size:13px;color:#263238}.topbar-context span{font-size:10px}.topbar-right{gap:10px}.server-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #c9e9d5;border-radius:4px;background:#effaf3;color:#1b7d42;font-size:9px;font-weight:800;letter-spacing:.04em}.server-chip i{width:7px;height:7px;border-radius:50%;background:#2ab35e;box-shadow:0 0 0 3px rgba(42,179,94,.12)}
.userbox{padding-left:10px;border-left:1px solid #e2e6eb}.avatar{width:32px;height:32px;border-radius:50%;background:#e8f2fc;color:#1769aa}.topbar .btn{min-height:32px}

/* Bimasoft-like blue navigation */
.sidebar{padding:0;background:linear-gradient(180deg,#123f7b,#0c2f60 76%,#092950);box-shadow:2px 0 7px rgba(20,47,80,.16)}
.sidebar::before{content:"";position:absolute;inset:0 0 auto 0;height:124px;background:linear-gradient(135deg,rgba(255,255,255,.08),transparent 58%),repeating-linear-gradient(165deg,transparent 0 32px,rgba(255,255,255,.035) 33px 34px);pointer-events:none}
.sidebar-head{position:relative;z-index:1;min-height:74px;padding:15px 16px;border-bottom:1px solid rgba(255,255,255,.11)}.sidebar-head .brand-title small{color:#b5d2ed}.sidebar-head .brand-mark{width:36px;height:36px}
.nav-search{position:relative;z-index:1;margin:12px 12px 5px}.nav-search svg{position:absolute;left:10px;top:10px;width:15px;height:15px;color:#9ebbd7}.nav-search input{width:100%;height:35px;padding:7px 9px 7px 32px;border:1px solid rgba(255,255,255,.13);border-radius:4px;outline:none;background:rgba(255,255,255,.08);color:#fff;font-size:11px}.nav-search input::placeholder{color:#a9bfd3}.nav-search input:focus{border-color:#7ab7eb;background:rgba(255,255,255,.12)}
.nav{padding:0 8px 14px;gap:1px}.nav-label{margin:15px 9px 5px;color:#8eb0d0;font-size:8.5px;letter-spacing:.1em}.nav a{min-height:39px;padding:8px 10px;border-radius:3px;color:#d2e1ef;font-size:11.5px;font-weight:600}.nav a:hover{background:rgba(255,255,255,.09)}.nav a.active{background:#1976d2;color:#fff;box-shadow:inset 3px 0 0 #8ed0ff}.nav a.active::before{display:none}.nav-icon{width:16px;height:16px}.sidebar-foot{padding:11px 12px;border-top:1px solid rgba(255,255,255,.1);font-size:9px}.sidebar-user{margin-bottom:6px;padding:7px;border-radius:4px}.sidebar-user .avatar{border-radius:50%}

/* Content structure */
.content{padding:calc(var(--topbar) + 13px) clamp(14px,2.1vw,28px) 38px}.content>*{max-width:1540px}.breadcrumbs{display:flex;align-items:center;gap:7px;margin-bottom:10px;color:#8a98a6;font-size:10px}.breadcrumbs a{color:#1976d2}.breadcrumbs b{color:#607080;font-weight:600}
.page-head{align-items:center;margin-bottom:14px;padding:14px 16px;border:1px solid var(--line);border-left:4px solid #1976d2;border-radius:5px;background:#fff;box-shadow:var(--shadow-sm)}.page-head h1{font-size:19px;letter-spacing:-.01em}.page-head p{margin-top:3px;font-size:11px}.page-actions{gap:6px}
.section-title{margin:20px 0 8px}.section-title h2,.section-title h3{font-size:13px}.section-title span{font-size:10px;color:#8a98a6}

/* Dashboard header */
.cbt-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px;padding:22px 24px;border-radius:6px;background:linear-gradient(108deg,#103f7b,#1b6ab3);color:#fff;box-shadow:0 5px 15px rgba(16,63,123,.16)}
.cbt-hero::after{content:"";position:absolute;right:-60px;top:-95px;width:350px;height:230px;border:2px solid rgba(255,255,255,.09);border-radius:50%;transform:rotate(-16deg)}.cbt-hero>div{position:relative;z-index:1}.cbt-hero-kicker{display:block;margin-bottom:4px;color:#acd5fb;font-size:9px;font-weight:800;letter-spacing:.12em}.cbt-hero h1{margin:0;font-size:24px}.cbt-hero p{margin:5px 0 0;color:#d7e9fa;font-size:11px}.cbt-hero-actions{display:flex;gap:7px;flex-wrap:wrap}.btn-white{border-color:#fff;background:#fff;color:#175895}.btn-success{border-color:#239b56;background:#28a95c;color:#fff}

/* Cards, stats, quick actions */
.card{padding:16px;border-radius:5px;box-shadow:var(--shadow-sm)}.card h3{font-size:12.5px}.grid{gap:12px}.cbt-stats .stat{display:flex;align-items:center;gap:13px;min-height:92px;padding:14px}.stat::after{display:none}.stat-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:5px;color:#fff;font-size:17px;font-weight:800}.stat-blue{border-top:3px solid #1976d2}.stat-blue .stat-icon{background:#1976d2}.stat-green{border-top:3px solid #2ca85f}.stat-green .stat-icon{background:#2ca85f}.stat-orange{border-top:3px solid #f0a126}.stat-orange .stat-icon{background:#f0a126}.stat-red{border-top:3px solid #e34b4b}.stat-red .stat-icon{background:#e34b4b}.stat .k{font-size:9px;letter-spacing:.06em}.stat .v{margin-top:4px;font-size:25px}.stat .hint,.stat .sub{margin-top:2px;font-size:9.5px}
.quick-actions{gap:8px}.bimasoft-actions .quick-link{position:relative;min-height:82px;padding:14px 12px 12px 62px;border-radius:5px}.quick-link:hover{transform:none;box-shadow:0 4px 12px rgba(18,54,91,.12)}.quick-icon{position:absolute;left:12px;top:14px;display:grid;place-items:center;width:38px;height:38px;border-radius:4px;color:#fff;font-size:16px;font-weight:800}.quick-blue .quick-icon{background:#1976d2}.quick-red .quick-icon{background:#e34b4b}.quick-green .quick-icon{background:#2ca85f}.quick-yellow .quick-icon{background:#e5a21a}.quick-link b{font-size:11.5px}.quick-link span:not(.quick-icon){margin-top:4px;font-size:9.5px}

/* Forms and controls */
.field{margin-bottom:11px}.field label{margin-bottom:4px;font-size:10px}.input,.select,.textarea{min-height:37px;padding:7px 9px;border-radius:4px;font-size:11px}.textarea{min-height:104px}.input:focus,.select:focus,.textarea:focus{border-color:#1976d2;box-shadow:0 0 0 2px rgba(25,118,210,.10)}
.btn{min-height:35px;padding:7px 11px;border-radius:4px;font-size:10px}.btn:hover{transform:none}.btn-primary{border-color:#1469b9;background:#1976d2;box-shadow:none}.btn-primary:hover{background:#0f66b8}.btn-light{background:#fff}.btn-danger{border-color:#d43b3b;background:#e64b4b;color:#fff}.btn-danger:hover{background:#cf3838}.btn-warn{border-color:#d69516;background:#e5a21a;color:#fff}.btn-sm{min-height:30px;padding:5px 8px;font-size:9px}
.action-blue{border-color:#1976d2!important;background:#1976d2!important;color:#fff!important}.action-red{border-color:#e34b4b!important;background:#e34b4b!important;color:#fff!important}.action-yellow{border-color:#e0a11d!important;background:#f0ad2c!important;color:#fff!important}.action-green{border-color:#299f59!important;background:#2dad61!important;color:#fff!important}

/* Database tables */
.table-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 7px;padding:7px 9px;border:1px solid var(--line);border-radius:4px;background:#fff}.table-count{color:#7a8793;font-size:10px}.table-search{width:min(260px,55vw);height:32px;padding:6px 9px;border:1px solid #cfd7df;border-radius:3px;outline:none;font-size:10px}.table-search:focus{border-color:#1976d2}
.table-wrap{border-radius:4px}.table-wrap table{font-size:10.5px}th,td{padding:9px 10px}th{background:#f3f5f7;color:#455a64;font-size:8.5px;letter-spacing:.04em;border-bottom:2px solid #d7dde4}tbody tr:nth-child(even) td{background:#fbfcfd}tbody tr:hover td{background:#eef6ff}.badge{min-height:20px;padding:3px 6px;border-radius:3px;font-size:8px}.alert{padding:9px 11px;border-radius:4px;font-size:10px}

/* Student cards and exam workspace retain modern clarity but use same theme */
.participant-card{border-radius:5px}.participant-card::before{background:#1976d2}.exam-shell{background:#eef1f5}.exam-header{border-bottom:3px solid #1976d2}.timer{border-radius:4px;background:#123f7b}.question-card{border-radius:6px}.option{border-radius:4px}.pbtn{border-radius:3px}.pbtn.answered{border-color:#299f59;background:#eaf8ef;color:#237744}

@media(max-width:1024px){
  .sidebar{width:min(86vw,270px)}.content{padding:calc(var(--topbar) + 12px) 12px 30px}.topbar .brand{display:inline-flex}.server-chip{display:none}.auth-shell{background:linear-gradient(180deg,#0e3975 0,#1b5fa7 320px,#eef1f5 320px)}.auth-brand-panel{min-height:320px;padding:24px 24px 75px}.auth-form-panel{margin-top:-48px;border-radius:0;background:transparent}.auth-copy{margin-top:32px}.auth-copy h1{font-size:32px}.cbt-hero{padding:18px}.cbt-hero h1{font-size:21px}
}
@media(max-width:720px){
  .page-head{align-items:flex-start;padding:12px}.page-head h1{font-size:17px}.cbt-hero{align-items:flex-start;flex-direction:column}.cbt-hero-actions{width:100%}.cbt-hero-actions .btn{flex:1}.cbt-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cbt-stats .stat{min-height:82px}.quick-actions{grid-template-columns:1fr 1fr}.table-tools{align-items:stretch;flex-direction:column}.table-search{width:100%}.auth-benefits{grid-template-columns:1fr 1fr}.auth-benefit:nth-child(3){display:none}.auth-card{padding:22px 18px}
}
@media(max-width:430px){.cbt-stats,.quick-actions{grid-template-columns:1fr}.auth-copy h1{font-size:27px}.auth-benefits{grid-template-columns:1fr}.auth-benefit:nth-child(2){display:none}}

/* =========================================================
   UjianKu V3.9.0 — Premium Control Center + Student Offline UX
   ========================================================= */
:root{
  --v39-blue:#0b4fd8;--v39-blue-2:#146ff5;--v39-indigo:#4338ca;--v39-ink:#0b1739;
  --v39-soft:#f4f7fc;--v39-line:#dfe7f2;--v39-success:#0e9f6e;--v39-shadow:0 18px 50px rgba(23,50,95,.10)
}
.admin-app-v390{background:radial-gradient(circle at 84% -20%,#dcecff 0,transparent 34%),#f4f7fb;color:#18243d}
.admin-app-v390 .sidebar{background:linear-gradient(180deg,#071a3c 0%,#0b3471 48%,#0b2553 100%)}
.admin-app-v390 .sidebar::before{height:190px;background:radial-gradient(circle at 28% -10%,rgba(49,132,255,.35),transparent 58%)}
.admin-app-v390 .sidebar-head{min-height:82px}.admin-app-v390 .brand-mark{background:linear-gradient(145deg,#fff,#dbeafe);color:#0b4fd8;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.admin-app-v390 .topbar{height:68px;border-bottom:1px solid rgba(212,222,236,.85);background:rgba(255,255,255,.92);backdrop-filter:blur(14px)}
.admin-app-v390 .content{padding-top:84px}.admin-app-v390 .page-head{border:0;border-left:0;border-radius:14px;padding:18px 20px;box-shadow:0 10px 30px rgba(22,52,98,.07)}
.admin-app-v390 .page-head::before{content:"";display:block;width:4px;align-self:stretch;border-radius:20px;background:linear-gradient(#146ff5,#4338ca);margin-right:4px}
.admin-app-v390 .card{border-color:#e1e8f2;border-radius:14px;box-shadow:0 10px 28px rgba(31,56,96,.06)}
.admin-app-v390 .card:hover{border-color:#d5e0ef}
.admin-app-v390 .cbt-hero{border-radius:18px;background:linear-gradient(122deg,#081d46 0%,#0b4fd8 58%,#4f46e5 118%);box-shadow:0 22px 45px rgba(15,70,163,.22);padding:28px 30px}
.admin-app-v390 .cbt-hero::before{content:"";position:absolute;right:8%;bottom:-65px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.08);filter:blur(1px)}
.admin-app-v390 .cbt-hero h1{font-size:28px}.admin-app-v390 .cbt-hero p{font-size:12px;max-width:720px;line-height:1.65}
.admin-app-v390 .stat{border:0!important;border-radius:14px;overflow:hidden}.admin-app-v390 .stat-icon{border-radius:12px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.admin-app-v390 .table-wrap{border-radius:12px;border-color:#e2e8f0}.admin-app-v390 .table-tools{border-radius:11px;padding:9px 11px}.admin-app-v390 .table-search{border-radius:8px;height:35px}
.admin-app-v390 th{background:#f6f8fc}.admin-app-v390 tbody tr:hover td{background:#f1f7ff}.admin-app-v390 .btn{border-radius:9px;font-weight:750}.admin-app-v390 .input,.admin-app-v390 .select,.admin-app-v390 .textarea{border-radius:9px}
.participant-portal-chip{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border-radius:9px;border:1px solid #cfe0fb;background:#eff6ff;color:#0b4fd8;font-size:10px;font-weight:850;text-decoration:none}.participant-portal-chip:hover{background:#e1efff}
.offline-key-admin{display:inline-flex;align-items:center;gap:7px;padding:7px 9px;border:1px dashed #8bb7ff;border-radius:8px;background:#f0f6ff;color:#1b4e97;font-weight:750}
.auth-student-link{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:14px;padding:11px 12px;border-radius:10px;background:#eef6ff;color:#0b4fd8;text-decoration:none;font-size:11px;font-weight:800}.auth-student-link:hover{background:#e0edff}

/* Participant login — deliberately separate visual identity from staff portal */
.student-login-page{min-height:100vh;margin:0;background:#eef4ff;color:var(--v39-ink)}
.student-login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(390px,.88fr)}
.student-login-hero{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:52px clamp(34px,5vw,82px);color:#fff;background:linear-gradient(140deg,#071938 0%,#0b4fd8 52%,#4f46e5 120%)}
.student-login-hero::before{content:"";position:absolute;width:520px;height:520px;right:-210px;top:-170px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.19),rgba(255,255,255,0) 66%)}
.student-login-hero::after{content:"";position:absolute;width:420px;height:420px;left:-200px;bottom:-250px;border:1px solid rgba(255,255,255,.18);border-radius:50%;box-shadow:0 0 0 55px rgba(255,255,255,.035),0 0 0 110px rgba(255,255,255,.025)}
.student-login-hero>*{position:relative;z-index:1}.student-brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.student-brand .brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#fff;color:#0b4fd8;font-size:22px;font-weight:950;box-shadow:0 12px 30px rgba(0,0,0,.15)}.student-brand span:last-child{display:flex;flex-direction:column}.student-brand b{font-size:17px}.student-brand small{margin-top:2px;color:#cbdcff;font-size:10px;letter-spacing:.06em}
.student-login-copy{max-width:720px;margin:auto 0}.student-kicker{display:inline-flex;align-items:center;gap:7px;color:#b8d7ff;font-size:10px;font-weight:900;letter-spacing:.14em}.student-kicker.blue{color:#0b4fd8}.student-login-copy h1{max-width:680px;margin:15px 0 14px;font-size:clamp(36px,5vw,64px);line-height:1.01;letter-spacing:-.045em}.student-login-copy>p{max-width:610px;color:#dce9ff;font-size:15px;line-height:1.75}
.student-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:32px}.student-flow>div{display:flex;align-items:center;gap:10px;min-width:0;padding:13px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px)}.student-flow i{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:#fff;color:#0b4fd8;font-style:normal;font-size:11px;font-weight:900}.student-flow span{display:flex;min-width:0;flex-direction:column}.student-flow b{font-size:11px}.student-flow small{margin-top:2px;color:#cfe0ff;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.student-login-foot{display:flex;justify-content:space-between;gap:16px;color:#c8dbff;font-size:10px}.student-login-foot span:first-child{display:flex;align-items:center;gap:7px}.student-login-foot i{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 4px rgba(74,222,128,.16)}
.student-login-form{display:grid;place-items:center;padding:44px clamp(24px,4vw,68px);background:radial-gradient(circle at 90% 5%,#dfeaff,transparent 32%),#f7f9fd}
.student-login-card{width:min(100%,470px);padding:36px;border:1px solid #e0e8f3;border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 30px 70px rgba(31,65,119,.14)}.student-login-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:22px;border-radius:14px;background:linear-gradient(145deg,#0b4fd8,#4f46e5);color:#fff;font-size:20px;box-shadow:0 12px 28px rgba(11,79,216,.24)}.student-login-card h2{margin:8px 0 6px;font-size:30px;letter-spacing:-.03em}.student-login-card>p{margin:0 0 24px;color:#66758d;font-size:12px}.student-login-card .field label{font-size:11px}.input-lg{min-height:48px!important;padding:11px 13px!important;font-size:13px!important}.btn-lg{min-height:49px!important;font-size:12px!important}.student-login-submit{width:100%;margin-top:4px;background:linear-gradient(120deg,#0b4fd8,#315df5)!important;box-shadow:0 11px 24px rgba(11,79,216,.2)!important}.student-login-links{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:20px;font-size:10px}.student-login-links a{color:#315b9b;text-decoration:none;font-weight:750}.student-security{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:24px;padding-top:18px;border-top:1px solid #edf1f6}.student-security span{padding:6px 8px;border-radius:8px;background:#f4f7fb;color:#5e6e84;font-size:8.5px;font-weight:800}

/* Participant app */
.student-app{margin:0;min-height:100vh;background:radial-gradient(circle at 90% -10%,#dbeafe 0,transparent 32%),#f5f8fd;color:var(--v39-ink)}
.student-shell{min-height:100vh}.student-topbar{position:sticky;top:0;z-index:80;display:flex;align-items:center;justify-content:space-between;gap:22px;height:72px;padding:0 clamp(18px,4vw,56px);border-bottom:1px solid rgba(214,225,240,.9);background:rgba(255,255,255,.9);backdrop-filter:blur(16px);box-shadow:0 6px 24px rgba(29,55,96,.05)}.student-brand.compact .brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#0b4fd8,#4338ca);color:#fff;font-size:17px;box-shadow:0 8px 20px rgba(11,79,216,.2)}.student-brand.compact b{color:#0b1739;font-size:13px}.student-brand.compact small{color:#72809a;font-size:8.5px}.student-nav{display:flex;align-self:stretch;gap:4px}.student-nav a{position:relative;display:flex;align-items:center;padding:0 15px;color:#68768d;text-decoration:none;font-size:10.5px;font-weight:800}.student-nav a:hover{color:#0b4fd8}.student-nav a.active{color:#0b4fd8}.student-nav a.active::after{content:"";position:absolute;left:15px;right:15px;bottom:0;height:3px;border-radius:4px 4px 0 0;background:linear-gradient(90deg,#0b4fd8,#4f46e5)}.student-top-actions{display:flex;align-items:center;gap:10px}.device-status{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:10px;background:#ebf9f2;color:#087b55;font-size:9px;font-weight:850}.device-status i{width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.12)}.device-offline .device-status{background:#fff5e8;color:#ad6308}.device-offline .device-status i{background:#f59e0b}.student-user{display:flex;align-items:center;gap:8px}.student-user .avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#e9f1ff;color:#0b4fd8;font-weight:900}.student-user>span{display:flex;flex-direction:column}.student-user b{max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.student-user small{margin-top:2px;color:#8793a5;font-size:8px}.student-content{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:34px 0 90px}.student-mobile-nav{display:none}
.student-page-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;padding:30px 32px;border-radius:24px;background:linear-gradient(120deg,#081e48,#0b4fd8 58%,#4f46e5);color:#fff;box-shadow:0 24px 55px rgba(17,67,166,.2)}.student-page-hero::after{content:"";position:absolute;right:-90px;top:-120px;width:330px;height:330px;border:1px solid rgba(255,255,255,.14);border-radius:50%;box-shadow:0 0 0 50px rgba(255,255,255,.035)}.student-page-hero>div{position:relative;z-index:1}.student-page-hero h1{margin:8px 0 9px;font-size:clamp(25px,4vw,40px);letter-spacing:-.035em}.student-page-hero p{max-width:680px;margin:0;color:#d8e8ff;font-size:12px;line-height:1.65}.student-hero-badge{display:flex;align-items:center;gap:10px;min-width:230px;padding:13px 15px;border:1px solid rgba(255,255,255,.14);border-radius:15px;background:rgba(255,255,255,.09);backdrop-filter:blur(8px)}.student-hero-badge>span{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#fff;color:#0b4fd8;font-size:18px}.student-hero-badge b{font-size:10px;line-height:1.4}
.student-exam-list{display:grid;gap:14px}.student-exam-card{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:21px 22px;border:1px solid #dfe7f2;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(29,54,95,.06)}.student-exam-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(#0b4fd8,#4f46e5)}.student-exam-main{display:flex;align-items:flex-start;gap:14px}.student-exam-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:#eef5ff;color:#0b4fd8;font-size:20px;font-weight:900}.student-exam-card h3{margin:2px 0 7px;font-size:16px}.student-exam-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.student-exam-meta{display:flex;gap:12px;flex-wrap:wrap;color:#718096;font-size:9.5px}.student-exam-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;max-width:340px}.offline-card-note{grid-column:1/-1;margin:-3px 0 0 60px;padding:10px 12px;border-radius:11px;background:#f4f8ff;color:#49617f;font-size:9.5px;line-height:1.55}.is-offline-disabled{opacity:.55;pointer-events:none}

/* Standalone Offline Workspace */
.offline-exam-app{min-height:100vh;margin:0;background:radial-gradient(circle at 85% -10%,#dbeafe 0,transparent 34%),#f3f6fb;color:#101b35}.offline-top{position:sticky;top:0;z-index:90;display:flex;align-items:center;justify-content:space-between;gap:18px;height:70px;padding:0 clamp(16px,4vw,48px);border-bottom:1px solid #dce5f1;background:rgba(255,255,255,.92);backdrop-filter:blur(15px);box-shadow:0 7px 24px rgba(31,55,94,.06)}.offline-brand{display:flex;align-items:center;gap:10px}.offline-brand .brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#0b4fd8,#4338ca);color:#fff;font-weight:950}.offline-brand>div{display:flex;flex-direction:column}.offline-brand b{font-size:12px}.offline-brand span:not(.brand-mark){margin-top:2px;color:#7f8ca1;font-size:8.5px}.offline-top-actions{display:flex;align-items:center;gap:9px}.net-badge{display:inline-flex;align-items:center;gap:6px;min-height:31px;padding:6px 9px;border-radius:9px;font-size:9px;font-weight:850}.net-badge.online{background:#eaf9f1;color:#087b55}.net-badge.offline{background:#fff4e3;color:#a45e09}.offline-top .timer{min-width:80px;border-radius:10px;background:#091d43;padding:8px 10px;color:#fff;text-align:center;font-size:13px;font-weight:900}.offline-main{width:min(1240px,calc(100% - 30px));margin:0 auto;padding:34px 0 70px}.offline-gate{width:min(720px,100%);margin:6vh auto 0;padding:36px;border:1px solid #dfe7f2;border-radius:24px!important;background:#fff;text-align:center;box-shadow:0 30px 70px rgba(31,58,104,.12)!important}.offline-lock-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 18px;border-radius:18px;background:linear-gradient(145deg,#eaf3ff,#e9e8ff);color:#0b4fd8;font-size:28px;font-weight:900}.offline-kicker{display:inline-block;color:#0b4fd8;font-size:9px;font-weight:900;letter-spacing:.13em}.offline-gate h1{margin:10px 0 7px;font-size:28px;letter-spacing:-.03em}.offline-gate>p{margin:0 auto 16px;color:#6d7b90;font-size:11.5px}.offline-meta{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:14px 0}.offline-key-row{display:grid;grid-template-columns:1fr auto;gap:8px;width:min(520px,100%);margin:20px auto 0}.offline-key-row .input{min-height:46px;border-radius:11px}.offline-key-row .btn{min-height:46px;border-radius:11px}.offline-start{min-height:44px;margin-top:10px;padding:9px 24px!important}.offline-msg{margin:14px auto 0;padding:10px 12px;border-radius:10px;font-size:10px}.offline-msg.info{background:#eff6ff;color:#285b9d}.offline-msg.warn{background:#fff7e8;color:#945a08}.offline-msg.danger{background:#fff0f0;color:#a23030}.offline-sync-note{display:flex;align-items:flex-start;justify-content:center;gap:10px;margin:22px auto 0;padding:12px 14px;border-radius:12px;background:#f5f8fc;color:#64748b;text-align:left;font-size:9.5px}.offline-sync-note b{flex:0 0 auto;color:#0b4fd8}.offline-workgrid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px}.offline-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:12px 15px;border:1px solid #dfe7f2;border-radius:13px;background:#fff}.offline-toolbar>div:first-child{display:flex;align-items:center;gap:10px}.offline-toolbar b{font-size:11px}.offline-exam-app .question-card{min-height:420px;padding:26px;border:1px solid #dce5f0;border-radius:16px;background:#fff;box-shadow:0 12px 30px rgba(31,55,94,.06)}.offline-exam-app .qmedia img,.offline-exam-app .qmedia video{max-width:100%;max-height:430px;border-radius:12px}.offline-exam-app .qmedia audio{width:100%}.offline-exam-app .option{margin:8px 0;padding:12px 13px;border:1px solid #dfe6ef;border-radius:11px;background:#fff}.offline-exam-app .option:hover{border-color:#9fc3ff;background:#f7faff}.offline-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.save-state{color:#718096;font-size:9px}.offline-side{position:relative}.offline-side>.card{position:sticky;top:88px;border-radius:15px}.exam-side-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.exam-side-title b{font-size:11px}.offline-side .palette{margin-top:12px}.offline-submit-box{margin-top:16px;padding-top:14px;border-top:1px solid #e7edf5}.offline-submit-box p{margin:0 0 4px;font-size:10px}.offline-submit-box>span{display:block;margin-bottom:11px;color:#718096;font-size:9px;line-height:1.5}.offline-submit-box .btn{width:100%;min-height:42px}.offline-done{width:min(620px,100%);margin:9vh auto 0;padding:38px!important;border-radius:24px!important;text-align:center}.offline-done-icon{display:grid;place-items:center;width:60px;height:60px;margin:0 auto 16px;border-radius:50%;background:#e7f9ef;color:#059669;font-size:28px;font-weight:900}.offline-done h1{font-size:28px}.offline-done p{color:#69778d}

@media(max-width:980px){
  .student-login-shell{grid-template-columns:1fr}.student-login-hero{min-height:480px;padding:32px 28px}.student-login-copy{margin:50px 0}.student-login-copy h1{font-size:42px}.student-login-form{padding:34px 20px 55px}.student-login-card{margin-top:-72px;position:relative;z-index:3}.student-login-foot{display:none}.student-flow{grid-template-columns:repeat(2,1fr)}
  .student-nav,.student-user>span{display:none}.student-topbar{height:64px;padding:0 16px}.student-content{width:min(100% - 22px,1180px);padding-top:20px}.student-mobile-nav{position:fixed;z-index:100;left:10px;right:10px;bottom:10px;display:grid;grid-template-columns:repeat(4,1fr);padding:6px;border:1px solid rgba(216,225,239,.9);border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 15px 45px rgba(26,52,92,.18);backdrop-filter:blur(14px)}.student-mobile-nav a{padding:9px 5px;border-radius:11px;color:#66758c;text-align:center;text-decoration:none;font-size:9px;font-weight:800}.student-mobile-nav a.active{background:#eaf2ff;color:#0b4fd8}.student-page-hero{padding:24px}.student-hero-badge{display:none}.student-exam-card{grid-template-columns:1fr}.student-exam-actions{justify-content:flex-start;max-width:none}.offline-card-note{margin-left:60px}
  .offline-workgrid{grid-template-columns:1fr}.offline-side>.card{position:static}.offline-side{order:2}
}
@media(max-width:640px){
  .participant-portal-chip{display:none}.student-login-hero{min-height:430px;padding:26px 20px}.student-login-copy{margin:36px 0}.student-login-copy h1{font-size:34px}.student-login-copy>p{font-size:12px}.student-flow{gap:7px}.student-flow>div{padding:10px}.student-flow small{display:none}.student-login-card{padding:26px 20px;border-radius:20px}.student-login-card h2{font-size:25px}.student-security span:nth-child(2){display:none}
  .student-top-actions .btn{display:none}.student-page-hero{border-radius:18px;padding:20px}.student-page-hero h1{font-size:27px}.student-exam-card{padding:17px;border-radius:15px}.student-exam-main{gap:11px}.student-exam-icon{width:40px;height:40px;flex-basis:40px}.student-exam-actions .btn{flex:1}.offline-card-note{margin:0}.device-status{padding:6px 7px}.student-user{display:none}
  .offline-top{height:62px;padding:0 12px}.offline-brand span:not(.brand-mark){display:none}.offline-main{width:min(100% - 18px,1240px);padding-top:16px}.offline-gate{margin-top:2vh;padding:25px 18px;border-radius:19px!important}.offline-gate h1{font-size:23px}.offline-key-row{grid-template-columns:1fr}.offline-key-row .btn{width:100%}.offline-sync-note{flex-direction:column}.offline-exam-app .question-card{min-height:360px;padding:19px}.offline-nav{display:grid;grid-template-columns:auto 1fr auto}.save-state{text-align:center}.offline-toolbar{padding:10px}.offline-toolbar .page-actions{display:none}
}
.offline-package-list{display:grid;gap:9px;width:min(560px,100%);margin:8px auto 0;text-align:left}.offline-package-list a{display:grid;gap:3px;padding:13px 14px;border:1px solid #dce7f5;border-radius:12px;background:#f8fbff;color:#17233d;text-decoration:none}.offline-package-list a:hover{border-color:#9dbfff;background:#f0f6ff}.offline-package-list b{font-size:11px}.offline-package-list span{color:#5f7088;font-size:9.5px}.offline-package-list small{color:#8b98aa;font-size:8.5px}
.quick-purple .quick-icon{background:#6d5bd0}
