:root{
  --bg:#f7f8ff;
  --surface:#ffffff;
  --surface-2:#f1f4ff;
  --ink:#182033;
  --muted:#75809a;
  --primary:#5d5ff4;
  --primary-2:#7c5cff;
  --primary-soft:#eeefff;
  --cyan:#bde9e6;
  --pink:#ffd9df;
  --yellow:#ffe3a3;
  --green:#cff4e0;
  --danger:#ef4444;
  --warning:#f59e0b;
  --success:#18a058;
  --line:rgba(31,41,55,.085);
  --radius:24px;
  --shadow:0 18px 48px rgba(67,75,120,.12);
}
*{box-sizing:border-box}
html,body{width:100%;min-height:100%;overflow-x:hidden;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}
body{background:radial-gradient(circle at 12% -10%,rgba(93,95,244,.18),transparent 30%),radial-gradient(circle at 88% 12%,rgba(124,92,255,.12),transparent 28%),var(--bg)}
button,.btn,input,select,textarea{min-height:44px;font-size:16px!important}.btn{border-radius:16px;font-weight:850;border-width:1.5px}.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-2));border-color:transparent;box-shadow:0 12px 22px rgba(93,95,244,.22)}.btn-outline-primary{border-color:rgba(93,95,244,.32);color:var(--primary);background:#fff}.btn-outline-primary:hover{background:var(--primary-soft);color:var(--primary);border-color:var(--primary)}
.form-control,.form-select{border-radius:16px;border:1px solid #dde2f1;background:#fff}.form-control:focus,.form-select:focus{border-color:rgba(93,95,244,.55);box-shadow:0 0 0 .22rem rgba(93,95,244,.12)}
.app-shell{width:100%;max-width:1180px;margin:0 auto;padding:18px 18px 92px}.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:18px;background:linear-gradient(135deg,#5d5ff4,#6f63ff)}
.auth-card{width:100%;max-width:460px;background:rgba(255,255,255,.95);border:1px solid rgba(255,255,255,.65);border-radius:32px;box-shadow:0 30px 70px rgba(25,31,70,.24);padding:24px;backdrop-filter:blur(18px)}
.brand-badge{width:60px;height:60px;border-radius:22px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary-2));font-size:28px;box-shadow:0 12px 24px rgba(93,95,244,.28)}
.cardx,.mini-card{background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.72);border-radius:var(--radius);box-shadow:var(--shadow);backdrop-filter:blur(14px)}
.topbar{position:sticky;top:0;z-index:30;background:rgba(247,248,255,.74);backdrop-filter:blur(18px);padding:14px 0;margin-bottom:12px}.topbar h4{letter-spacing:-.02em}.muted{color:var(--muted)}.section-title{font-size:18px;font-weight:950;letter-spacing:-.01em;margin-bottom:10px}.section-subtitle{font-size:13px;color:var(--muted);font-weight:700}.hero{padding:20px;border-radius:30px;background:linear-gradient(135deg,#fff,#f4f5ff);border:1px solid rgba(93,95,244,.08);box-shadow:var(--shadow);overflow:hidden;position:relative}.hero:after{content:"";position:absolute;right:-70px;top:-95px;width:210px;height:210px;border-radius:50%;background:linear-gradient(135deg,rgba(93,95,244,.26),rgba(189,233,230,.38))}.hero>*{position:relative;z-index:1}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-card{padding:16px;border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 30px rgba(67,75,120,.07);position:relative;overflow:hidden}.stat-card:before{content:"";position:absolute;right:-20px;top:-25px;width:78px;height:78px;border-radius:50%;background:var(--primary-soft)}.stat-card .icon{width:42px;height:42px;border-radius:16px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-size:20px;margin-bottom:10px}.stat-value{font-size:28px;font-weight:1000;line-height:1;letter-spacing:-.04em}.stat-label{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;background:var(--primary-soft);color:var(--primary);white-space:nowrap}.pill.success{background:#eaf8f0;color:var(--success)}.pill.danger{background:#fff0f0;color:var(--danger)}.pill.warning{background:#fff7e6;color:#a15c00}.pill.dark{background:#edf0f7;color:#344054}.pill.cyan{background:#e8fbf9;color:#11746e}.pill.pink{background:#fff0f3;color:#b42355}
.tabbar{display:flex;gap:10px;overflow-x:auto;padding:6px 0 10px;scrollbar-width:none}.tabbar::-webkit-scrollbar{display:none}.tabbar .btn{white-space:nowrap;border-radius:999px;padding-inline:16px}.desktop-tabbar{display:flex}.bottom-nav{display:none;position:fixed;left:50%;bottom:12px;transform:translateX(-50%);width:min(94vw,520px);z-index:80;background:rgba(255,255,255,.92);border:1px solid rgba(93,95,244,.10);border-radius:26px;box-shadow:0 18px 42px rgba(52,64,116,.18);padding:8px 10px calc(8px + env(safe-area-inset-bottom));backdrop-filter:blur(18px)}.bottom-nav button{border:0;background:transparent;color:#8a93ad;border-radius:18px;min-height:54px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px!important;font-weight:850}.bottom-nav button i{font-size:20px}.bottom-nav button.active{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;box-shadow:0 10px 22px rgba(93,95,244,.22)}
.list-card{display:grid;gap:12px}.item-card{border:1px solid var(--line);border-radius:20px;background:#fff;padding:14px;transition:.18s;overflow:hidden}.item-card:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(67,75,120,.08)}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.quick-card{border:1px solid var(--line);background:#fff;border-radius:22px;padding:15px;display:flex;gap:12px;align-items:center;cursor:pointer;transition:.18s}.quick-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(67,75,120,.09)}.quick-card .qicon{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-size:22px}
.chart-card{padding:16px}.bar-row{display:grid;grid-template-columns:82px 1fr 48px;gap:10px;align-items:center;margin:10px 0}.bar-shell{height:12px;border-radius:999px;background:#ecf0f8;overflow:hidden}.bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--primary),var(--primary-2));min-width:4px}.mini-bars{display:flex;align-items:end;gap:8px;height:130px;padding-top:8px}.mini-bar{flex:1;border-radius:12px 12px 4px 4px;background:linear-gradient(180deg,var(--primary-2),var(--primary));min-height:6px;position:relative}.mini-bar span{position:absolute;bottom:-25px;left:50%;transform:translateX(-50%);font-size:11px;color:var(--muted);white-space:nowrap}.ring{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--primary) calc(var(--p)*1%), #edf0f7 0);position:relative}.ring:after{content:"";position:absolute;inset:10px;border-radius:50%;background:#fff}.ring b{position:relative;z-index:1;font-size:20px}
.table-lite{width:100%}.table-lite th,.table-lite td{padding:10px;border-bottom:1px solid #eef0f4;vertical-align:top}.empty-state{padding:22px;border-radius:20px;background:#f8faff;border:1px dashed #c9d1e6;color:var(--muted);text-align:center}.skeleton{background:linear-gradient(90deg,#eef2f7,#f8fafc,#eef2f7);background-size:200% 100%;animation:sk 1.2s infinite;border-radius:18px;min-height:86px}@keyframes sk{0%{background-position:200% 0}100%{background-position:-200% 0}}.min-w-0{min-width:0}.nowrap{white-space:nowrap}.upload-drop{border:1.5px dashed #bdc7e2;background:#f9faff;border-radius:22px;padding:18px}.swal2-popup{border-radius:26px!important}.swal2-confirm,.swal2-cancel{border-radius:14px!important;font-weight:800!important}
.exam-page{min-height:100vh;background:var(--bg)}.exam-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-bottom:1px solid rgba(15,23,42,.08);padding:calc(10px + env(safe-area-inset-top)) 14px 10px}.exam-header-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;font-weight:950}.timer-chip{background:#111827;color:#fff;border-radius:999px;padding:8px 12px;letter-spacing:.3px;min-width:88px;text-align:center}.exam-body{max-width:780px;margin:0 auto;padding:16px}.question-card{background:#fff;border-radius:28px;box-shadow:var(--shadow);border:1px solid rgba(15,23,42,.06);padding:18px}.question-text{text-align:left;white-space:pre-line;font-size:18px;line-height:1.65;font-weight:750}.question-img{width:100%;max-height:360px;object-fit:contain;border-radius:20px;background:#f2f4f7;margin-top:14px}.choice-btn{width:100%;text-align:left;min-height:56px;border-radius:18px;border:1.5px solid #d7dce8;background:#fff;color:var(--ink);padding:13px 14px;font-weight:750;transition:.15s}.choice-btn.active{border-color:var(--primary);background:var(--primary-soft);color:var(--primary);box-shadow:0 0 0 3px rgba(93,95,244,.12)}.bottom-actions{position:sticky;bottom:0;background:rgba(246,248,252,.92);backdrop-filter:blur(12px);padding:12px 0 calc(12px + env(safe-area-inset-bottom));margin-top:12px}.audio-box{border:1px solid #d7dce8;border-radius:18px;padding:12px;background:#f8faff}.audio-progress-shell{height:10px;border-radius:999px;background:#e5e7eb;overflow:hidden}.audio-progress-fill{height:100%;width:0;background:linear-gradient(90deg,var(--primary),var(--primary-2));transition:width .2s linear}.qnav{display:flex;gap:8px;overflow-x:auto;padding:10px 0}.qnav button{min-width:44px;border-radius:14px}.qnav .answered{background:#eaf8f0;color:#0f6b3a;border-color:#12a150}.qnav .doubt{background:#fff7e6;color:#a15c00;border-color:#f59f00}
@media(max-width:900px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-grid{grid-template-columns:1fr 1fr}.desktop-tabbar{display:none}.bottom-nav{display:flex}.app-shell{padding:12px 12px 96px}.topbar{padding-top:10px}.hero{border-radius:26px}.desktop-only{display:none!important}}
@media(max-width:767px){.auth-shell{align-items:flex-start;padding-top:34px}.auth-card{border-radius:30px}.stat-value{font-size:24px}.section-title{font-size:17px}.table-lite,.table-lite thead,.table-lite tbody,.table-lite tr,.table-lite td,.table-lite th{display:block}.table-lite thead{display:none}.table-lite tr{border:1px solid #eef0f4;border-radius:16px;margin-bottom:10px;padding:10px}.table-lite td{border:0;padding:6px}.bar-row{grid-template-columns:70px 1fr 38px}.quick-grid{grid-template-columns:1fr}.topbar h4{font-size:19px}.question-text{font-size:17px}.bottom-actions .d-flex{flex-wrap:wrap}.bottom-actions .btn{min-width:30%}}
@media(max-width:380px){.exam-header-row{font-size:14px}.timer-chip{min-width:78px;padding:7px 10px}.auth-card{padding:18px}.bottom-nav button span{display:none}.bottom-nav{width:92vw}.stat-card{padding:14px}}

/* CBT v3 exam stability and compact mobile layout */
.exam-page{min-height:100dvh;background:linear-gradient(180deg,#f8f9ff,#f2f5ff)}
.exam-header{padding:calc(8px + env(safe-area-inset-top)) 12px 8px}.exam-header-row{font-size:15px}.timer-chip{padding:7px 12px;min-width:84px;font-size:14px}.qnav{gap:7px;padding:8px 0 2px}.qnav button{min-width:39px;min-height:36px;border-radius:12px;padding:4px 8px;font-weight:850}.exam-body{max-width:720px;padding:10px 12px 0}.question-card{border-radius:22px;padding:14px;box-shadow:0 12px 32px rgba(67,75,120,.10)}.question-text{font-size:17px;line-height:1.45;font-weight:760}.question-img{max-height:276px;margin-top:10px;border-radius:16px}.choice-list{display:grid;gap:8px}.choice-btn{min-height:48px;border-radius:15px;padding:10px 12px;line-height:1.35;touch-action:manipulation}.choice-btn:active{transform:scale(.99)}.audio-panel{position:relative;z-index:1}.audio-box{padding:10px;border-radius:15px}.bottom-actions{padding:10px 0 calc(10px + env(safe-area-inset-bottom));margin-top:8px}.bottom-actions .btn{min-height:42px;border-radius:14px;font-size:14px!important}
@media(max-height:760px){.exam-header{padding-top:6px;padding-bottom:6px}.qnav{padding-top:6px}.exam-body{padding-top:8px}.question-card{padding:12px}.question-text{font-size:16px;line-height:1.38}.question-img{max-height:207px}.choice-btn{min-height:44px;padding:9px 11px}.audio-box{padding:9px}.bottom-actions{padding-top:8px}}
@media(max-width:420px){.exam-body{padding-left:9px;padding-right:9px}.question-card{border-radius:20px}.question-text{font-size:16px}.choice-list{gap:7px}.bottom-actions .d-flex{gap:6px!important}.bottom-actions .btn{padding-left:8px;padding-right:8px}.qnav button{min-width:36px}}

/* Revisi 2026-06-10: header rounded, akses role, dan stabilitas tinggi halaman ujian */
.topbar{
  top:10px;
  padding:18px 22px;
  margin-bottom:14px;
  border-radius:26px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 18px 44px rgba(67,75,120,.10);
}
.topbar .btn-outline-danger{border-radius:20px;min-width:48px;min-height:48px;background:rgba(255,255,255,.88)}
.readonly-role{min-height:44px;border:1px solid #dde2f1;border-radius:16px;background:#f8faff;display:flex;align-items:center;padding:6px 10px;overflow:hidden}
.role-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.role-check{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#f8faff;border-radius:16px;padding:10px 12px;font-weight:850;cursor:pointer;min-height:46px}
.role-check span{display:flex;align-items:center;gap:8px}.role-check input:disabled+span{color:var(--muted)}

.exam-page{height:100dvh;min-height:100dvh;overflow:hidden;display:flex;flex-direction:column;background:linear-gradient(180deg,#f8f9ff,#f2f5ff)}
.exam-header{position:relative;top:auto;flex:0 0 auto;width:min(720px,calc(100% - 24px));margin:8px auto 0;border-radius:24px;border:1px solid rgba(255,255,255,.86);box-shadow:0 16px 36px rgba(67,75,120,.11);overflow:hidden}
.exam-body{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;max-width:744px;padding:10px 12px 0}
.question-card{height:clamp(420px,calc(100dvh - 255px),650px);min-height:0;overflow-y:auto;scrollbar-width:thin;display:block}
.question-media-slot{height:196px;margin-top:10px;border-radius:18px;background:#f2f4f7;display:flex;align-items:center;justify-content:center;overflow:hidden}
.question-media-slot.is-empty{opacity:0;pointer-events:none}
.question-media-slot .question-img{width:100%;height:100%;max-height:100%;object-fit:contain;margin:0;border-radius:18px;background:#f2f4f7}
.audio-panel,.audio-placeholder{min-height:54px;margin-top:10px;display:flex;align-items:center;width:100%}
.choice-list{min-height:286px;align-content:start}
.bottom-actions{flex:0 0 auto;position:relative;bottom:auto;width:100%;max-width:720px;margin:8px auto 0;border-radius:22px 22px 0 0;border:1px solid rgba(255,255,255,.78);box-shadow:0 -12px 28px rgba(67,75,120,.08)}
@media(max-width:900px){.topbar{top:8px;padding:16px 18px;border-radius:24px}.role-access-grid{grid-template-columns:1fr}.exam-header{width:calc(100% - 18px);margin-top:6px}.exam-body{padding-left:9px;padding-right:9px}.question-card{height:calc(100dvh - 246px)}.question-media-slot{height:167px}.choice-list{min-height:258px}}
@media(max-height:760px){.question-card{height:calc(100dvh - 225px)}.question-media-slot{height:129px}.audio-panel,.audio-placeholder{min-height:46px}.choice-list{min-height:220px}.bottom-actions{margin-top:6px}}
@media(max-width:420px){.topbar{padding:14px 14px}.question-card{height:calc(100dvh - 232px)}.question-media-slot{height:136px}.choice-list{min-height:228px}.exam-header{border-radius:20px}.bottom-actions{border-radius:20px 20px 0 0}}

/* Revisi 2026-06-10 lanjutan: XLSX furigana, gambar soal +15%, audio 2x */
ruby rt{font-size:.55em;line-height:1.05;font-weight:700}.question-text ruby,.choice-btn ruby{ruby-align:center}.result-toolbar{gap:8px}
