: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}

/* Revisi 2026-06-11: review paket soal dan tampilan bank soal tanpa furigana */
.review-page .exam-header{border-radius:24px}.review-close{min-width:42px;border-radius:16px}.review-discussion{border:1px solid var(--line);background:#f8faff;border-radius:18px;padding:13px 14px;line-height:1.55}.review-choice{cursor:default}.review-choice.correct{border-color:#12a150;background:#eaf8f0;color:#0f6b3a}.review-choice.correct .pill{vertical-align:middle}.nowrap .btn{margin-top:2px;margin-bottom:2px}


/* Hotfix diagram batang Ujian 14 Hari Terakhir */
.package-card .btn{white-space:nowrap;min-height:38px;border-radius:14px}
.last14-chart{width:100%;padding-top:8px}
.last14-bars{height:178px;display:grid;grid-template-columns:repeat(14,minmax(24px,1fr));gap:8px;align-items:end;padding:8px 4px 0;border-radius:18px;background:linear-gradient(180deg,#f8faff 0%,#ffffff 100%)}
.last14-item{min-width:0;display:grid;grid-template-rows:18px 1fr 24px;align-items:end;justify-items:center;gap:6px}
.last14-value{font-size:12px;font-weight:900;color:var(--ink);line-height:1}
.last14-bar-wrap{height:112px;width:100%;display:flex;align-items:end;justify-content:center;border-radius:14px;background:#edf1f9;overflow:hidden}
.last14-bar{width:100%;max-width:28px;border-radius:14px 14px 8px 8px;background:linear-gradient(180deg,var(--primary),var(--primary-2));min-height:4px;box-shadow:0 8px 16px rgba(106,91,255,.18)}
.last14-label{font-size:11px;font-weight:900;color:var(--muted);white-space:nowrap;transform:rotate(-35deg);transform-origin:center top;margin-top:2px}
.last14-note{margin-top:10px;text-align:center;font-size:12px;color:var(--muted);font-weight:800}.last14-note b{color:var(--ink)}
@media(max-width:768px){.last14-bars{height:166px;gap:6px}.last14-bar-wrap{height:100px}.last14-label{font-size:10px}.last14-value{font-size:11px}}
@media(max-width:420px){.last14-bars{gap:4px;grid-template-columns:repeat(14,minmax(18px,1fr));padding-left:2px;padding-right:2px}.last14-bar{max-width:20px}.last14-label{font-size:9px}.package-card .d-flex{align-items:flex-start!important}.package-card .btn{padding-left:10px;padding-right:10px}}

/* Revisi 2026-06-13: proteksi ujian, gambar soal +35%, dan popup preview gambar */
.exam-page,.exam-page *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.exam-page img{-webkit-user-drag:none;user-drag:none}
.question-media-slot{height:265px}
.question-media-click{position:relative;cursor:zoom-in;touch-action:manipulation}
.question-media-click:focus{outline:3px solid rgba(93,95,244,.28);outline-offset:2px}
.image-zoom-hint{position:absolute;right:10px;bottom:10px;width:34px;height:34px;border-radius:999px;display:grid;place-items:center;background:rgba(17,24,39,.72);color:#fff;font-size:17px;box-shadow:0 8px 18px rgba(15,23,42,.22);pointer-events:none}
.image-preview-overlay{position:fixed;inset:0;z-index:2000;background:rgba(15,23,42,.82);display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(5px)}
.image-preview-box{position:relative;max-width:min(96vw,980px);max-height:90dvh;background:#fff;border-radius:24px;padding:12px;box-shadow:0 28px 70px rgba(0,0,0,.32)}
.image-preview-box img{display:block;max-width:calc(96vw - 24px);max-height:calc(90dvh - 24px);object-fit:contain;border-radius:18px;background:#f2f4f7}
.image-preview-close{position:absolute;right:10px;top:10px;z-index:2;width:44px;height:44px;min-height:44px;border-radius:999px!important;display:grid;place-items:center;box-shadow:0 10px 24px rgba(15,23,42,.22)}
@media(max-width:900px){.question-media-slot{height:225px}}
@media(max-height:760px){.question-media-slot{height:174px}}
@media(max-width:420px){.question-media-slot{height:184px}.image-preview-overlay{padding:10px}.image-preview-box{border-radius:20px;padding:8px}.image-preview-box img{max-width:calc(96vw - 16px);max-height:calc(90dvh - 16px);border-radius:16px}}

/* Revisi 2026-06-23: JFT review PC/tablet, preload media ujian, Rank live, delete hasil */
.exam-preload-box{margin-top:14px;border:1px solid var(--line);border-radius:16px;background:#f8faff;padding:12px}.exam-preload-box .progress{background:#e7ebf4}.exam-preload-box .progress-bar{transition:width .25s ease}

.rank-shell .form-select{border-radius:14px}.rank-live-note{font-size:12px;font-weight:800;color:var(--muted);margin:0 0 10px;display:flex;align-items:center;gap:7px}.rank-live-note i{font-size:8px;color:#16a34a}.rank-list{gap:10px}.rank-card{display:grid;grid-template-columns:62px 1fr 92px;align-items:center;gap:12px;transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease}.rank-pos{height:48px;min-width:48px;border-radius:16px;background:#edf1ff;display:grid;place-items:center;font-weight:1000;color:var(--primary);font-size:18px}.rank-pos.top{font-size:25px;background:#fff7d6}.rank-main{min-width:0}.rank-score{text-align:right;font-weight:1000;color:var(--ink)}.rank-score>div{font-size:26px;line-height:1}.rank-score>span{display:block;font-size:11px;color:var(--muted);font-weight:900}.rank-move{display:inline-flex;align-items:center;gap:1px;margin-top:5px;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:1000}.rank-move.up{background:#eaf8f0;color:#128244}.rank-move.down{background:#fff1f1;color:#b42318}.rank-move.same{background:#eef2f7;color:#64748b}@keyframes rankUp{0%{transform:translateY(14px);box-shadow:0 0 0 rgba(34,197,94,0)}45%{transform:translateY(-8px);box-shadow:0 16px 34px rgba(34,197,94,.18);border-color:#22c55e}100%{transform:translateY(0)}}@keyframes rankDown{0%{transform:translateY(-14px);box-shadow:0 0 0 rgba(239,68,68,0)}45%{transform:translateY(8px);box-shadow:0 16px 34px rgba(239,68,68,.16);border-color:#ef4444}100%{transform:translateY(0)}}.rank-card.rank-up{animation:rankUp 1.05s ease}.rank-card.rank-down{animation:rankDown 1.05s ease}@media(max-width:640px){.rank-card{grid-template-columns:46px 1fr 70px}.rank-pos{height:42px;min-width:42px;font-size:14px}.rank-pos.top{font-size:20px}.rank-score>div{font-size:21px}}

.jft-review-page{min-height:100vh;background:#dedcdf;color:#111;font-family:Arial,'Noto Sans JP','Yu Gothic',sans-serif;display:flex;flex-direction:column;align-items:center}.jft-review-page *{-webkit-user-select:text;user-select:text}.jft-topbar{width:min(1024px,100vw);height:58px;background:#030303;color:#fff;display:flex;align-items:center;justify-content:space-between;position:relative;padding:0 16px;font-size:14px}.jft-topbar b{font-weight:800}.jft-question-meta{position:relative;z-index:2}.jft-time{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:8px;text-align:left;white-space:nowrap;z-index:1}.jft-time i{font-size:22px}.jft-finish{position:relative;z-index:2;justify-self:end;background:#f5d895;color:#111;border:0;border-radius:3px;height:42px;min-width:140px;display:grid;place-items:center;font-weight:800;cursor:pointer}.jft-finish:hover{filter:brightness(.96)}.jft-greenbar{width:min(1024px,100vw);height:24px;background:#578923;color:#fff;display:flex;align-items:center;padding:0 12px;font-size:14px}.jft-greenbar span{margin-left:auto}.jft-layout{width:min(1024px,100vw);min-height:calc(100vh - 125px);background:#fff;display:grid;grid-template-columns:96px 1fr}.jft-sidebar{border-right:1px solid #cfd5db;background:#f8faf9;padding:8px 10px;position:relative}.jft-side-title{font-size:13px;color:#555;margin:3px 0}.jft-progress{width:12px;height:92px;border-radius:999px;background:#e6ebf0;margin:4px 0 10px 4px}.jft-progress.on{background:#5b9228}.jft-sidebar button{border:0;background:#6c9b2c;color:#fff;font-weight:800;border-radius:4px;min-width:36px;height:20px;font-size:12px;margin:0 5px 5px 0}.jft-sidebar button.active{clip-path:polygon(0 0,86% 0,100% 50%,86% 100%,0 100%);min-width:52px}.jft-main{padding:38px 70px 92px;overflow:auto}.jft-instruction{background:#eaf6fd;padding:8px 14px;font-size:20px;line-height:1.25;margin-bottom:8px;max-width:850px}.jft-instruction div{font-size:14px;color:#333;font-weight:700;margin-bottom:2px}.jft-question-tools{display:grid;gap:8px;width:190px;margin:8px 0 38px}.jft-question-tools button{height:24px;border:1px solid #999;background:#f9f9f9;border-radius:2px;text-align:left;font-size:12px;color:#333}.jft-question-area{max-width:820px}.jft-question-text{font-family:'Noto Sans JP','Yu Gothic',Arial,sans-serif;font-size:18px;line-height:2.05;letter-spacing:.05em;white-space:pre-wrap;margin-bottom:22px}.jft-question-image{float:right;width:220px;min-height:130px;margin:0 20px 18px 28px;display:flex;align-items:center;justify-content:center}.jft-question-image.question-media-click{border-radius:10px}.jft-question-image img{max-width:100%;max-height:220px;object-fit:contain}.jft-key-check{font-size:22px;color:#16a34a;line-height:1;display:inline-grid;place-items:center;min-width:28px}.jft-audio{clear:both;margin:10px 0 24px;width:min(450px,100%)}.jft-choice-list{clear:both;display:grid;gap:14px;margin-top:30px;width:min(720px,100%)}.jft-choice{min-height:34px;border:1.5px solid #111;background:#fff;padding:8px 14px;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.jft-choice.correct{border-color:#2f8a26;background:#f2fff1}.jft-key{font-size:12px;border-radius:999px;background:#dff6de;color:#246b20;padding:3px 8px;white-space:nowrap}.jft-discussion{margin-top:18px;border:1px solid #d7dce2;background:#f8faff;border-radius:4px;padding:10px 12px;line-height:1.55}.jft-footer{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(1024px,100vw);height:48px;background:#030303;border-top:4px solid #50841c;display:flex;justify-content:flex-end;align-items:center;gap:6px;padding:5px 12px;z-index:10}.jft-flag,.jft-nav{border:0;background:#5a8c24;color:#fff;border-radius:4px;height:32px;padding:0 12px;font-weight:800}.jft-flag{width:48px}.jft-nav:disabled{opacity:.45}@media(max-width:900px){.jft-topbar{padding:0 10px}.jft-time{font-size:13px}.jft-finish{min-width:126px}.jft-main{padding:30px 36px 88px}.jft-layout{grid-template-columns:76px 1fr}.jft-instruction{font-size:18px}.jft-question-text{font-size:17px}.jft-question-image{width:185px;margin-right:0}.jft-greenbar{font-size:12px}}@media(max-width:640px){.jft-topbar{height:auto;display:grid;grid-template-columns:1fr;gap:6px;padding:10px 12px}.jft-time{position:static;transform:none;justify-content:flex-start}.jft-finish{justify-self:start;min-width:138px}.jft-greenbar span{display:none}.jft-layout{grid-template-columns:1fr}.jft-sidebar{display:none}.jft-main{padding:22px 14px 80px}.jft-question-image{float:none;width:100%;margin:10px 0}.jft-choice-list{gap:10px}.jft-footer{height:54px}}

/* Revisi 2026-06-26: UI halaman ujian disamakan dengan mode Review JFT tanpa mengubah fungsi ujian */
.jft-exam-page{min-height:100dvh;height:auto;overflow-x:hidden;overflow-y:auto;background:#dedcdf;color:#111;font-family:Arial,'Noto Sans JP','Yu Gothic',sans-serif;display:flex;flex-direction:column;align-items:center}
.jft-exam-page,.jft-exam-page *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.jft-exam-page .jft-topbar,.jft-exam-page .jft-greenbar,.jft-exam-page .jft-layout,.jft-exam-page .jft-footer{width:min(1200px,100vw)}
.jft-exam-page .jft-layout{min-height:calc(100dvh - 130px);grid-template-columns:112px 1fr}
.jft-exam-page .jft-main{padding:36px clamp(28px,6vw,82px) 92px}
.jft-exam-page .jft-question-area{max-width:960px}
.jft-exam-page .jft-question-text{font-size:18px;line-height:2.05;margin-bottom:22px}
.jft-exam-page .jft-question-image{width:260px;min-height:150px}
.jft-exam-page .jft-question-image img{max-height:260px}
.jft-exam-page .jft-choice-list{width:min(820px,100%)}
.jft-exam-page .jft-choice-option{cursor:pointer;text-align:left;width:100%;justify-content:flex-start;transition:.15s;touch-action:manipulation}
.jft-exam-page .jft-choice-option:hover{background:#f8fafc}
.jft-exam-page .jft-choice-option.active{border-color:#2f8a26;background:#f2fff1;box-shadow:0 0 0 3px rgba(47,138,38,.12)}
.jft-exam-page .jft-choice-option span{display:block;min-width:0}
.jft-exam-page .audio-panel{clear:both;min-height:0;margin:10px 0 24px;width:min(450px,100%);display:block}
.jft-exam-page .audio-placeholder{display:none}
.jft-exam-page .audio-box{border-radius:4px;background:#f8faff}
.jft-exam-sidebar{overflow-y:auto;max-height:calc(100dvh - 128px);padding:12px 8px}.jft-exam-sidebar .jft-side-buttons{margin:0}
.jft-side-buttons{display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;gap:5px;margin:0 0 8px}
.jft-exam-page .jft-sidebar .jft-side-buttons button{margin:0;min-width:36px;height:24px;min-height:24px;padding:0 6px;cursor:pointer}
.jft-exam-page .jft-sidebar .jft-side-buttons button.active{min-width:54px}
.jft-exam-page .jft-sidebar .jft-side-buttons button.answered{background:#2f8a26}
.jft-exam-page .jft-sidebar .jft-side-buttons button.doubt{background:#d49b10;color:#111}
.jft-exam-page .jft-sidebar .jft-side-buttons button:disabled{opacity:.45;cursor:not-allowed}
.exam-timer-mobile,.exam-timer-label-mobile,.jft-submit-mobile{display:none}.exam-timer-label-full{display:inline}
.jft-exam-page .jft-submit-desktop{background:#f5d895;color:#111}
.jft-exam-footer{justify-content:flex-end}
.jft-footer-spacer{display:none}
.jft-exam-page .jft-doubt{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:64px;padding:0 10px}
.jft-exam-page .jft-doubt.active{background:#f5d895;color:#111}
.jft-submit-mobile{border:0;background:#f5d895;color:#111;border-radius:4px;height:32px;min-height:32px;padding:0 12px;font-weight:800}
@media(max-width:900px){.jft-exam-page .jft-topbar,.jft-exam-page .jft-greenbar,.jft-exam-page .jft-layout,.jft-exam-page .jft-footer{width:min(1024px,100vw)}.jft-exam-page .jft-layout{grid-template-columns:84px 1fr}.jft-exam-page .jft-main{padding:30px 32px 88px}.jft-exam-page .jft-question-image{width:200px;margin-right:0}.jft-exam-page .jft-choice-list{width:min(760px,100%)}}
@media(max-width:640px){.jft-exam-page .jft-topbar{height:auto;min-height:62px;display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding:calc(14px + env(safe-area-inset-top,0px)) 10px 8px}.jft-exam-page .jft-question-meta b{font-size:14px}.jft-exam-page .jft-question-meta span{display:none}.jft-exam-page .jft-time{position:static;transform:none;justify-content:flex-end;text-align:right;font-size:12px;gap:5px}.jft-exam-page .jft-time i{font-size:17px}.jft-exam-page .jft-time span{line-height:1.15}.exam-timer-full,.exam-timer-label-full{display:none}.exam-timer-mobile,.exam-timer-label-mobile{display:inline}.jft-exam-page .jft-submit-desktop{display:none}.jft-submit-mobile{display:inline-grid;place-items:center}.jft-exam-page .jft-greenbar{font-size:12px}.jft-exam-page .jft-greenbar span{display:none}.jft-exam-page .jft-layout{grid-template-columns:1fr;min-height:calc(100dvh - 108px)}.jft-exam-page .jft-sidebar{display:none}.jft-exam-page .jft-main{padding:18px 12px 78px}.jft-exam-page .jft-instruction{font-size:16px;padding:8px 10px;margin-bottom:8px}.jft-exam-page .jft-instruction div{font-size:12px}.jft-exam-page .jft-question-tools{width:170px;margin:8px 0 20px}.jft-exam-page .jft-question-area .pill{padding:5px 8px;font-size:11px}.jft-exam-page .jft-question-text{font-size:16px;line-height:1.8;letter-spacing:.03em;margin-bottom:16px}.jft-exam-page .jft-question-image{float:none;width:100%;min-height:120px;margin:10px 0 16px}.jft-exam-page .jft-question-image img{max-height:220px}.jft-exam-page .jft-choice-list{gap:10px;margin-top:18px;width:100%}.jft-exam-page .jft-choice{font-size:14px;min-height:42px;padding:8px 10px}.jft-exam-footer{height:56px;justify-content:flex-end;gap:5px;padding:6px 8px}.jft-footer-spacer{display:block;flex:1}.jft-exam-page .jft-nav,.jft-exam-page .jft-doubt,.jft-submit-mobile{height:36px;min-height:36px;border-radius:4px;padding:0 9px;font-size:13px!important}.jft-exam-page .jft-doubt span{display:none}.jft-exam-page .jft-doubt{min-width:42px;width:42px;padding:0}.jft-exam-page .jft-nav{min-width:62px}}
@media(max-width:380px){.jft-exam-page .jft-topbar{grid-template-columns:1fr auto;padding:calc(14px + env(safe-area-inset-top,0px)) 8px 7px}.jft-exam-page .jft-time{font-size:11px}.jft-exam-page .jft-time i{display:none}.jft-exam-page .jft-nav{min-width:54px;padding:0 7px}.jft-submit-mobile{padding:0 10px}.jft-exam-page .jft-main{padding-left:10px;padding-right:10px}}


.language-popup-overlay{position:fixed;inset:0;z-index:2100;background:rgba(255,255,255,.12);display:flex;align-items:flex-start;justify-content:center;padding:92px 12px 20px}
.language-popup-box{width:min(760px,calc(100vw - 24px));background:#fff;border:1px solid #000;box-shadow:0 16px 42px rgba(0,0,0,.22);font-family:Arial,'Noto Sans JP','Yu Gothic',sans-serif}
.language-popup-title{height:34px;background:#000;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 10px;font-weight:800;font-size:14px}
.language-popup-title button{border:0;background:transparent;color:#fff;font-size:22px;font-weight:800;line-height:1;cursor:pointer;padding:0 2px}
.language-popup-table{width:100%;border-collapse:collapse;font-size:13px;color:#111;background:#fff}
.language-popup-table th,.language-popup-table td{border:1px solid #111;padding:10px 8px;text-align:left;vertical-align:top;line-height:1.35}
.language-popup-table th{width:110px;font-weight:400;background:#fff}
@media(max-width:640px){.language-popup-overlay{padding-top:calc(82px + env(safe-area-inset-top,0px))}.language-popup-title{height:32px}.language-popup-table{font-size:12px}.language-popup-table th{width:88px}.language-popup-table th,.language-popup-table td{padding:8px 6px}}

/* Revisi 2026-07-01: dashboard theme inspired by the uploaded EduAdmin reference. */
body{
  background:
    radial-gradient(circle at 8% -8%,rgba(130,215,185,.55),transparent 18%),
    radial-gradient(circle at 100% 78%,rgba(255,158,126,.45),transparent 16%),
    radial-gradient(circle at 94% 100%,rgba(80,179,180,.40),transparent 18%),
    linear-gradient(135deg,#eef5fb 0%,#f8fbff 48%,#edf4fb 100%);
}
.edu-shell{
  --edu-blue:#397be7;
  --edu-blue-soft:#eaf2ff;
  --edu-blue-2:#7ba7f0;
  --edu-orange:#ffad45;
  --edu-panel:#f3f7ff;
  --edu-ink:#293853;
  --edu-muted:#8190a8;
}
@media(min-width:901px){
  .edu-shell{
    width:min(92vw,1220px);
    min-height:calc(100dvh - 78px);
    margin:39px auto;
    padding:0;
    display:grid;
    grid-template-columns:224px minmax(0,1fr);
    background:rgba(255,255,255,.90);
    border:1px solid rgba(255,255,255,.86);
    border-radius:16px;
    box-shadow:0 28px 80px rgba(63,82,117,.16);
    overflow:hidden;
    backdrop-filter:blur(18px);
  }
  .edu-main{
    min-width:0;
    padding:18px 16px 32px;
    background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(248,251,255,.92));
  }
}
.edu-sidebar{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:20px 18px;
  background:rgba(255,255,255,.78);
  border-right:1px solid rgba(219,228,240,.72);
  overflow-y:auto;
  scrollbar-width:thin;
}
.edu-brand{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  color:#6e7f97;
  font-size:18px;
  letter-spacing:-.02em;
}
.edu-brand-mark{
  width:27px;
  height:27px;
  border-radius:9px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg,#40a8f4,#7fcaf1);
  font-size:15px;
  box-shadow:0 9px 18px rgba(57,123,231,.18);
}
.edu-side-label{
  margin:12px 0 2px;
  color:#c5ceda;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.edu-nav{
  display:grid;
  gap:4px;
}
.nav-side-btn{
  width:100%;
  min-height:42px;
  border:0;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 10px;
  color:#7d8ba2;
  background:transparent;
  text-align:left;
  font-weight:850;
  transition:.16s ease;
}
.nav-side-btn i{
  width:28px;
  height:28px;
  border-radius:9px;
  display:grid;
  place-items:center;
  color:#8a9ab1;
  background:transparent;
  font-size:15px;
}
.nav-side-btn:hover{
  color:var(--edu-blue);
  background:#f4f8ff;
}
.nav-side-btn.active{
  color:var(--edu-blue);
  background:#f7faff;
}
.nav-side-btn.active i{
  color:#fff;
  background:linear-gradient(135deg,var(--edu-blue),#65a0ee);
  box-shadow:0 8px 18px rgba(57,123,231,.20);
}
.edu-topbar{
  position:sticky;
  top:14px;
  z-index:30;
  min-height:58px;
  margin:0 0 18px;
  padding:0 2px;
  border:0;
  border-radius:0;
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  align-items:center;
  gap:12px;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}
.edu-user-block h4{
  color:var(--edu-ink);
}
.edu-search{
  height:42px;
  border-radius:7px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 12px;
  color:#8b99ad;
  background:#fff;
  border:1px solid #edf2f8;
  box-shadow:0 10px 24px rgba(63,82,117,.05);
}
.edu-search input{
  width:100%;
  min-height:0;
  height:38px;
  border:0;
  outline:0;
  font-size:14px!important;
  color:var(--edu-ink);
  background:transparent;
}
.edu-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
}
.edu-icon-btn{
  width:42px;
  height:42px;
  min-height:42px;
  border:0;
  border-radius:8px;
  display:grid;
  place-items:center;
  color:#7b8aa1;
  background:#fff;
  box-shadow:0 10px 24px rgba(63,82,117,.06);
}
.edu-icon-btn:hover{
  color:var(--edu-blue);
  background:#f7faff;
}
.edu-icon-btn.danger:hover{
  color:#dc3545;
}
.edu-icon-btn.exit-btn{
  color:#ef4444;
  background:#fff1f2;
}
.edu-icon-btn.exit-btn:hover{
  color:#dc2626;
  background:#ffe4e6;
}
.edu-shell .hero{
  border:0;
  border-radius:8px;
  background:linear-gradient(135deg,#f9fbff 0%,#eff5ff 100%);
  box-shadow:none;
}
.edu-shell .hero:after{
  right:-80px;
  top:-92px;
  width:230px;
  height:230px;
  background:linear-gradient(135deg,rgba(57,123,231,.20),rgba(133,215,209,.24));
}
.edu-shell .cardx,
.edu-shell .mini-card,
.edu-shell .item-card,
.edu-shell .stat-card,
.edu-shell .quick-card{
  border-color:#edf2f8;
  border-radius:8px;
  background:#fff;
  box-shadow:0 12px 28px rgba(63,82,117,.06);
}
.edu-shell .cardx{
  background:rgba(255,255,255,.92);
}
.edu-shell .section-title{
  color:var(--edu-ink);
}
.edu-shell .section-subtitle,
.edu-shell .muted{
  color:var(--edu-muted);
}
.edu-shell .btn-primary{
  border-color:transparent;
  background:linear-gradient(135deg,var(--edu-blue),#6aa3ef);
  box-shadow:0 10px 20px rgba(57,123,231,.18);
}
.edu-shell .btn-outline-primary{
  border-color:#dce9fb;
  color:var(--edu-blue);
  background:#fff;
}
.edu-shell .btn-outline-primary:hover{
  border-color:#c8def9;
  color:var(--edu-blue);
  background:var(--edu-blue-soft);
}
.edu-shell .stat-grid{
  gap:16px;
}
.edu-shell .stat-card{
  padding:17px;
}
.edu-shell .stat-card:before{
  background:var(--edu-blue-soft);
}
.edu-shell .stat-card .icon,
.edu-shell .quick-card .qicon{
  border-radius:7px;
  color:#fff;
  background:linear-gradient(135deg,var(--edu-blue),#67a3ef);
  box-shadow:0 10px 20px rgba(57,123,231,.16);
}
.edu-shell .stat-card:nth-child(2) .icon,
.edu-shell .quick-card:nth-child(2n) .qicon{
  background:linear-gradient(135deg,var(--edu-orange),#ffc47a);
  box-shadow:0 10px 20px rgba(255,173,69,.16);
}
.edu-shell .quick-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.edu-shell .quick-card{
  min-height:104px;
  align-items:flex-start;
}
.edu-shell .quick-card:hover,
.edu-shell .item-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(63,82,117,.10);
}
.edu-shell .form-control,
.edu-shell .form-select{
  border-color:#e5edf7;
  border-radius:8px;
  background:#fff;
}
.edu-shell .table-lite th,
.edu-shell .table-lite td{
  border-color:#edf2f8;
}
.bottom-nav{
  border:1px solid rgba(219,228,240,.88);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  box-shadow:0 18px 40px rgba(63,82,117,.14);
}
.bottom-nav button{
  border-radius:14px;
}
.bottom-nav button.active{
  background:linear-gradient(135deg,#397be7,#6aa3ef);
  box-shadow:0 10px 22px rgba(57,123,231,.22);
}
.auth-shell{
  background:
    radial-gradient(circle at 8% -8%,rgba(130,215,185,.55),transparent 20%),
    radial-gradient(circle at 100% 78%,rgba(255,158,126,.42),transparent 18%),
    linear-gradient(135deg,#eef5fb,#f8fbff);
}
.auth-card{
  border-radius:16px;
  border-color:rgba(255,255,255,.88);
  box-shadow:0 28px 80px rgba(63,82,117,.16);
}
.auth-card .brand-badge{
  border-radius:12px;
  background:linear-gradient(135deg,#397be7,#67a3ef);
}
@media(max-width:1100px){
  .edu-shell .quick-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .edu-topbar{
    grid-template-columns:minmax(180px,1fr) auto;
  }
}
@media(max-width:900px){
  .edu-sidebar{
    display:none!important;
  }
  .edu-shell{
    width:100%;
    max-width:100%;
    margin:0;
    padding:12px 12px 96px;
    display:block;
    background:transparent;
    border:0;
    box-shadow:none;
  }
  .edu-main{
    padding:0;
  }
  .edu-topbar{
    top:8px;
    min-height:0;
    margin-bottom:14px;
    padding:14px;
    border-radius:18px;
    display:flex;
    justify-content:space-between;
    gap:10px;
    background:rgba(255,255,255,.86);
    border:1px solid rgba(255,255,255,.90);
    box-shadow:0 16px 36px rgba(63,82,117,.10);
    backdrop-filter:blur(16px);
  }
  .edu-actions{
    flex:0 0 auto;
  }
  .edu-icon-btn{
    width:44px;
    height:44px;
    min-height:44px;
    border-radius:14px;
  }
  .edu-shell .quick-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:767px){
  .edu-shell .hero{
    border-radius:16px;
  }
  .edu-shell .stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .edu-shell .quick-grid{
    grid-template-columns:1fr;
  }
  .edu-shell .item-card .d-flex{
    flex-wrap:wrap;
  }
  .edu-shell .nowrap{
    white-space:normal;
  }
}
@media(max-width:420px){
  .edu-topbar{
    align-items:flex-start;
  }
  .edu-user-block h4{
    font-size:18px;
  }
  .edu-shell .stat-card{
    padding:13px;
  }
}

/* Revisi 2026-07-02: table-style user list and package role mapping. */
.user-table-toolbar{
  display:grid;
  grid-template-columns:auto minmax(140px,180px) minmax(140px,180px) minmax(220px,1fr) auto;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
}
.user-show-control{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:850;
  color:#111827;
}
.user-show-control .form-select{
  width:92px;
}
.user-filter{
  min-width:0;
}
.user-search{
  min-height:42px;
  border:1px solid #dce6f5;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 12px;
  background:#fff;
}
.user-search input{
  width:100%;
  min-height:38px;
  border:0;
  outline:0;
  background:transparent;
  font-size:14px!important;
}
.user-refresh{
  min-width:116px;
}
.user-table-wrap,.package-role-table-wrap{
  width:100%;
  overflow-x:visible;
  border-radius:8px;
  border:1px solid #dfe7f2;
  background:#fff;
}
.user-table,.package-role-table{
  width:100%;
  table-layout:fixed;
  border-collapse:collapse;
  min-width:0;
  font-size:12px;
}
.user-table thead th,.package-role-table thead th{
  background:#dfe5ee;
  color:#0f172a;
  font-weight:950;
  padding:10px 8px;
  white-space:nowrap;
}
.user-table td,.package-role-table td{
  border-top:1px solid #dfe7f2;
  padding:8px;
  vertical-align:middle;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.user-table.has-wa th:nth-child(1),.user-table.has-wa td:nth-child(1){width:20%}
.user-table.has-wa th:nth-child(2),.user-table.has-wa td:nth-child(2){width:62px;text-align:center}
.user-table.has-wa th:nth-child(3),.user-table.has-wa td:nth-child(3){width:17%}
.user-table.has-wa th:nth-child(4),.user-table.has-wa td:nth-child(4){width:10%}
.user-table.has-wa th:nth-child(5),.user-table.has-wa td:nth-child(5){width:18%}
.user-table.has-wa th:nth-child(6),.user-table.has-wa td:nth-child(6){width:96px}
.user-table.has-wa th:nth-child(7),.user-table.has-wa td:nth-child(7){width:72px;text-align:center}
.user-table.no-wa th:nth-child(1),.user-table.no-wa td:nth-child(1){width:26%}
.user-table.no-wa th:nth-child(2),.user-table.no-wa td:nth-child(2){width:20%}
.user-table.no-wa th:nth-child(3),.user-table.no-wa td:nth-child(3){width:12%}
.user-table.no-wa th:nth-child(4),.user-table.no-wa td:nth-child(4){width:20%}
.user-table.no-wa th:nth-child(5),.user-table.no-wa td:nth-child(5){width:100px}
.user-table.no-wa th:nth-child(6),.user-table.no-wa td:nth-child(6){width:72px;text-align:center}
.user-table tbody tr:nth-child(odd){
  background:#fbfdff;
}
.wa-icon-link{
  width:34px;
  height:34px;
  min-height:34px;
  border-radius:11px;
  display:inline-grid;
  place-items:center;
  color:#fff;
  background:#20c766;
  font-size:18px;
  text-decoration:none;
}
.wa-icon-link:hover{
  color:#fff;
  filter:brightness(.96);
}
.compact-select{
  min-height:34px;
  height:34px;
  border-radius:10px!important;
  font-size:13px!important;
  font-weight:850;
}
.compact-role{
  min-height:34px;
  border-radius:10px;
  padding:4px 8px;
}
.status-pill-select{
  width:90px;
  border:0!important;
  text-align:left;
}
.status-pill-select.is-on{
  color:#008446;
  background:#d9f5e6!important;
}
.status-pill-select.is-off{
  color:#d0122b;
  background:#ffe1e6!important;
}
.table-actions{
  display:flex;
  gap:7px;
}
.table-action-btn{
  width:34px;
  height:34px;
  min-height:34px;
  border:1px solid #bfdbfe;
  border-radius:11px;
  display:grid;
  place-items:center;
  color:#0069ff;
  background:#eff6ff;
}
.table-action-btn.danger{
  color:#ff304f;
  border-color:#fecdd3;
  background:#fff1f2;
}
.package-role-table{
  min-width:0;
}
.package-role-table th:first-child,.package-role-table td:first-child{
  width:74px;
  text-align:center;
}
.package-role-table th:nth-child(2),.package-role-table td:nth-child(2){
  width:auto;
}
.package-role-table th:nth-child(3),.package-role-table td:nth-child(3),
.package-role-table th:nth-child(4),.package-role-table td:nth-child(4){
  width:160px;
}
.package-role-select{
  width:150px;
  min-height:36px;
  font-weight:900;
}

/* Revisi 2026-07-02: simple dark/light toggle for dashboard shell only. */
body.dark-mode{
  background:
    radial-gradient(circle at 8% -8%,rgba(57,123,231,.22),transparent 20%),
    radial-gradient(circle at 100% 78%,rgba(255,173,69,.18),transparent 18%),
    linear-gradient(135deg,#0f172a,#111827);
}
body.dark-mode .edu-shell{
  --edu-panel:#111827;
  --edu-ink:#e5e7eb;
  --edu-muted:#9ca3af;
  background:rgba(15,23,42,.94);
  border-color:rgba(148,163,184,.22);
}
body.dark-mode .edu-main{
  background:linear-gradient(180deg,rgba(15,23,42,.94),rgba(17,24,39,.96));
}
body.dark-mode .edu-topbar{
  background:transparent;
  border-color:rgba(148,163,184,.22);
}
body.dark-mode .edu-sidebar,
body.dark-mode .edu-shell .cardx,
body.dark-mode .edu-shell .mini-card,
body.dark-mode .edu-shell .item-card,
body.dark-mode .edu-shell .stat-card,
body.dark-mode .user-table-wrap,
body.dark-mode .package-role-table-wrap{
  background:#111827;
  border-color:#263244;
  color:#e5e7eb;
}
body.dark-mode .edu-brand,
body.dark-mode .nav-side-btn,
body.dark-mode .edu-user-block h4,
body.dark-mode .section-title,
body.dark-mode .user-show-control{
  color:#e5e7eb;
}
body.dark-mode .nav-side-btn:hover,
body.dark-mode .nav-side-btn.active{
  background:#1f2937;
}
body.dark-mode .edu-icon-btn{
  color:#cbd5e1;
  background:#1f2937;
  box-shadow:none;
}
body.dark-mode .edu-icon-btn:hover{
  color:#93c5fd;
  background:#273449;
}
body.dark-mode .edu-icon-btn.exit-btn{
  color:#f87171;
  background:#3f1f29;
}
body.dark-mode .edu-shell .hero{
  background:linear-gradient(135deg,#111827,#172033);
}
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .user-search{
  color:#e5e7eb;
  background:#0f172a;
  border-color:#334155;
}
body.dark-mode .form-control::placeholder,
body.dark-mode .user-search input::placeholder{
  color:#94a3b8;
}
body.dark-mode .user-search input{
  color:#e5e7eb;
}
body.dark-mode .user-table thead th,
body.dark-mode .package-role-table thead th{
  color:#e5e7eb;
  background:#1f2937;
}
body.dark-mode .user-table td,
body.dark-mode .package-role-table td{
  border-top-color:#263244;
}
body.dark-mode .user-table tbody tr:nth-child(odd){
  background:#0f172a;
}
body.dark-mode .empty-state{
  color:#cbd5e1;
  background:#0f172a;
  border-color:#263244;
}
@media(max-width:900px){
  body.dark-mode .edu-topbar{
    background:rgba(15,23,42,.88);
    border-color:rgba(148,163,184,.24);
  }
  .user-table-toolbar{
    grid-template-columns:1fr 1fr;
  }
  .user-search{
    grid-column:1/-1;
  }
  .user-refresh{
    grid-column:1/-1;
  }
}
@media(max-width:640px){
  .user-table-toolbar{
    grid-template-columns:1fr;
  }
  .user-show-control{
    justify-content:space-between;
  }
  .user-table,.package-role-table{
    min-width:0;
    table-layout:auto;
  }
  .user-table thead{
    display:none;
  }
  .user-table,.user-table tbody,.user-table tr,.user-table td{
    display:block;
    width:100%;
  }
  .user-table tr{
    border-top:1px solid #dfe7f2;
    padding:10px;
  }
  .user-table td{
    border:0;
    padding:6px 0;
    display:flex;
    justify-content:space-between;
    gap:12px;
  }
  .user-table td:before{
    content:attr(data-label);
    color:#64748b;
    font-weight:900;
  }
  .user-table td>*{
    max-width:62%;
  }
}
