/* =====================================================================
   UjiKu CBT — Design System (mengikuti desain Stitch)
   ===================================================================== */
:root {
  --navy: #1B2A4E; --navy-2: #24365F; --navy-3: #2E4271;
  --primary: #1565D8; --primary-600: #0F55BD; --primary-700: #0B47A0; --primary-50: #EBF3FC; --primary-100: #D9E7FB;
  --blue-2: #3B9BF5; --orange: #F7941D; --orange-50: #FFF4E5; --orange-700: #B45309;
  --coral: #F15A3B; --coral-50: #FDECE8; --cyan: #22B8E8; --cyan-50: #E0F7FD; --cyan-700: #0E7490;
  --green: #22A06B; --green-50: #DCFCE7; --green-700: #166534;
  --red: #DC2626; --red-50: #FEE2E2; --red-700: #991B1B;
  --yellow-50: #FEF9C3; --yellow-700: #854D0E; --purple-50: #EDE9FE; --purple-700: #5B21B6;
  --slate-50: #F8FAFC; --slate-100: #F1F5F9; --slate-600: #475569;
  --bg: #F4F6FA; --card: #FFFFFF; --text: #1F2937; --muted: #6B7280; --faint: #9CA3AF;
  --border: #E5E7EB; --border-2: #E2E8F0; --input: #D1D5DB; --track: #E9EDF5;
  --r-card: 16px; --r-md: 12px; --r-btn: 10px; --r-sm: 8px;
  --sh-1: 0 6px 20px rgba(27, 42, 78, .05), 0 2px 6px rgba(27, 42, 78, .03);
  --sh-2: 0 10px 28px rgba(27, 42, 78, .10);
  --sh-3: 0 -8px 32px rgba(27, 42, 78, .14);
  --sidebar-w: 260px; --top-h: 72px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--text); background: var(--bg);
       -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 28px; font-weight: 700; } h2 { font-size: 20px; font-weight: 600; } h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
.ms { width: 1em; height: 1em; font-size: 20px; fill: currentColor; display: inline-block; vertical-align: -0.2em; flex: none; overflow: visible; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.bold { font-weight: 700; } .semi { font-weight: 600; } .mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; } .gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
.c-green { color: var(--green); } .c-coral { color: var(--coral); } .c-orange { color: var(--orange-700); } .c-primary { color: var(--primary); } .c-red { color: var(--red); }

/* ---------------- Layout aplikasi staf ---------------- */
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--navy); color: #fff; display: flex;
           flex-direction: column; z-index: 40; transition: transform .22s ease; }
.sb-head { height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 18px 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.logo-mark svg { width: 28px; height: 28px; }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.sb-nav { flex: 1; overflow-y: auto; padding: 8px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.sb-group { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); padding: 18px 12px 8px; }
.sb-link { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,.78);
           font-size: 15px; font-weight: 500; position: relative; margin: 2px 0; }
.sb-link .ms { font-size: 22px; opacity: .9; }
.sb-link:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.sb-link.active { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(21,101,216,.35); }
.sb-link .sb-badge { margin-left: auto; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.sb-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 16px; display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.08); }
.sb-foot .sb-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.sb-foot .t1 { font-size: 13px; font-weight: 600; } .sb-foot .t2 { font-size: 11px; color: rgba(255,255,255,.55); }
.sb-out { margin-left: auto; color: #F87171; font-weight: 600; font-size: 13px; background: none; border: 0; cursor: pointer; padding: 6px; }
.main { margin-left: var(--sidebar-w); min-width: 0; }
.topbar { height: var(--top-h); position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 0 28px;
          background: rgba(244,246,250,.86); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
.tb-btn { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 0; display: grid; place-items: center; cursor: pointer;
          box-shadow: var(--sh-1); color: var(--navy); position: relative; flex: none; }
.tb-btn:hover { background: var(--primary-50); color: var(--primary); }
.tb-btn .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--coral);
               color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.tb-search { flex: 1; max-width: 420px; position: relative; margin-left: auto; }
.tb-search input { width: 100%; height: 44px; border-radius: 12px; border: 0; background: #fff; padding: 0 14px 0 42px; box-shadow: var(--sh-1); outline: none; }
.tb-search input:focus { box-shadow: 0 0 0 3px rgba(21,101,216,.2); }
.tb-search .ms { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.tb-results { position: absolute; top: 52px; left: 0; right: 0; background: #fff; border-radius: 14px; box-shadow: var(--sh-2); padding: 8px; max-height: 420px; overflow: auto; }
.tb-results .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; font-weight: 600; }
.tb-results a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.tb-results a:hover { background: var(--primary-50); text-decoration: none; }
.wallet-pill { height: 40px; padding: 0 14px; border-radius: 99px; background: var(--orange-50); color: var(--orange-700); border: 1px solid #FBD9A8;
               display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 4px; border-radius: 12px; text-align: left; }
.user-btn:hover { background: rgba(255,255,255,.7); }
.user-btn .nm { font-weight: 700; font-size: 14px; line-height: 1.2; } .user-btn .rl { font-size: 12px; color: var(--muted); }
.role-tag { font-size: 10px; font-weight: 700; color: var(--primary); background: var(--primary-50); padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
.content { padding: 8px 28px 48px; max-width: 1480px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 12px 0 22px; }
.page-head h1 { font-size: 28px; }
.page-head .sub { color: var(--muted); margin-top: 6px; max-width: 720px; }
.crumb { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.crumb b { color: var(--primary); }
.menu-btn { display: none; }
.bottom-nav { display: none; }
.sb-scrim { display: none; }

/* ---------------- Komponen dasar ---------------- */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-1); padding: 20px; min-width: 0; }
.card.pad-0 { padding: 0; } .card.flat { box-shadow: none; border: 1px solid var(--border); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 16px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; }
.section-title h2 { font-size: 22px; font-weight: 700; }
.section-title .bar { width: 6px; height: 26px; border-radius: 4px; background: var(--primary); }
.link-more { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 380px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-btn);
       border: 1.5px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; user-select: none;
       transition: background .12s, box-shadow .12s, transform .06s; text-decoration: none !important; background: #fff; color: var(--text); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn .ms { font-size: 20px; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(21,101,216,.25); }
.btn.primary:hover:not(:disabled) { background: var(--primary-600); }
.btn.secondary { border-color: var(--border); background: #fff; }
.btn.secondary:hover:not(:disabled) { background: var(--bg); }
.btn.outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn.outline:hover:not(:disabled) { background: var(--primary-50); }
.btn.soft { background: var(--primary-50); color: var(--primary); }
.btn.soft:hover:not(:disabled) { background: var(--primary-100); }
.btn.ghost { background: transparent; color: var(--primary); padding: 0 10px; }
.btn.ghost:hover:not(:disabled) { background: var(--primary-50); }
.btn.ghost.red { color: var(--red); } .btn.ghost.red:hover { background: var(--red-50); }
.btn.danger { background: var(--red); color: #fff; } .btn.danger:hover:not(:disabled) { background: #B91C1C; }
.btn.success { background: var(--green); color: #fff; } .btn.success:hover:not(:disabled) { background: #188A5A; }
.btn.orange { background: var(--orange); color: #fff; } .btn.orange:hover:not(:disabled) { background: #E2840F; }
.btn.dark { background: var(--navy); color: #fff; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; } .btn.sm .ms { font-size: 18px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.icon { width: 40px; padding: 0; } .btn.icon.sm { width: 34px; }
.btn.round { border-radius: 99px; }
.btn .spin, .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge .ms { font-size: 15px; }
.badge .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-green { background: var(--green-50); color: var(--green-700); } .b-yellow { background: var(--yellow-50); color: var(--yellow-700); }
.b-red { background: var(--red-50); color: var(--red-700); } .b-gray { background: var(--slate-100); color: var(--slate-600); }
.b-blue { background: #DBEAFE; color: #1D4ED8; } .b-purple { background: var(--purple-50); color: var(--purple-700); }
.b-cyan { background: var(--cyan-50); color: var(--cyan-700); } .b-orange { background: var(--orange-50); color: var(--orange-700); }
.b-coral { background: var(--coral-50); color: #C2410C; } .b-navy { background: var(--navy); color: #fff; }
.pulse .d { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,160,107,.55); } 70% { box-shadow: 0 0 0 7px rgba(34,160,107,0); } 100% { box-shadow: 0 0 0 0 rgba(34,160,107,0); } }

.chip-head { height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; padding: 0 12px; text-align: center;
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--slate-100);
        color: var(--slate-600); font-size: 13px; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; user-select: none; white-space: nowrap; }
.chip.on { background: var(--primary-50); color: var(--primary); border-color: var(--primary); }
.chip .x { font-size: 16px; cursor: pointer; opacity: .7; }

.progress { height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--primary); transition: width .4s ease; }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none;
          background: var(--primary-50); color: var(--primary); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sq { border-radius: 12px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; } .avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.av-stack { display: flex; } .av-stack .avatar { border: 2px solid #fff; margin-left: -8px; } .av-stack .avatar:first-child { margin-left: 0; }
.icon-tile { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.icon-tile .ms { font-size: 24px; }
.icon-tile.soft { background: var(--primary-50); color: var(--primary); }

/* ---------------- Form ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 14px; font-weight: 600; color: var(--text); }
.field > label .req { color: var(--red); }
.hint { font-size: 12px; color: var(--muted); }
.err-text { font-size: 12px; color: var(--red); }
.input, .select, .textarea { width: 100%; height: 44px; border-radius: var(--r-btn); border: 1.5px solid var(--input); background: #fff; padding: 0 14px;
                             outline: none; transition: border-color .12s, box-shadow .12s; }
.textarea { height: auto; min-height: 96px; padding: 10px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,216,.2); }
.input.soft, .select.soft { background: var(--slate-50); border-color: var(--border-2); }
.input.invalid { border-color: var(--red); }
.input-ic { position: relative; } .input-ic .ms { position: absolute; left: 13px; top: 12px; color: var(--muted); } .input-ic .input { padding-left: 42px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
          background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .tr { width: 42px; height: 24px; border-radius: 99px; background: #CBD5E1; position: relative; transition: background .15s; flex: none; }
.switch .tr::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .tr { background: var(--primary); }
.switch input:checked + .tr::after { transform: translateX(18px); }
.switch input:focus-visible + .tr { box-shadow: 0 0 0 3px rgba(21,101,216,.3); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.seg { display: inline-flex; background: var(--slate-100); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; height: 38px; padding: 0 18px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(21,101,216,.25); }
.dropzone { border: 2px dashed #CBD5E1; border-radius: 16px; padding: 32px 20px; text-align: center; background: var(--slate-50); cursor: pointer; transition: all .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-50); }
.dropzone .ms { font-size: 40px; color: var(--primary); }

/* ---------------- Tabel ---------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); background: var(--slate-50);
            padding: 12px 16px; white-space: nowrap; border-bottom: 1px solid var(--border-2); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.table tbody tr:hover td { background: var(--slate-50); }
.table tr.clickable { cursor: pointer; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px; }
.toolbar .input-ic { flex: 1; min-width: 220px; max-width: 520px; }
.pager { display: flex; align-items: center; gap: 6px; padding: 14px 16px; }
.pager button { min-width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--slate-100); font-weight: 600; cursor: pointer; }
.pager button.on { background: var(--primary); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; background: #fff; border-radius: 16px; box-shadow: var(--sh-1); margin-bottom: 20px; }
.tabs button { border: 0; background: transparent; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; color: var(--text); cursor: pointer;
               display: inline-flex; align-items: center; gap: 8px; }
.tabs button:hover { background: var(--slate-50); }
.tabs button.on { background: var(--primary); color: #fff; }
.tabs .cnt { background: rgba(0,0,0,.08); border-radius: 99px; padding: 0 8px; font-size: 12px; line-height: 20px; }
.tabs button.on .cnt { background: rgba(255,255,255,.25); }

/* ---------------- Dashboard ---------------- */
.banner { position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(120deg, #1565D8 0%, #3B9BF5 100%); color: #fff;
          padding: 36px 40px; min-height: 180px; display: flex; align-items: center; gap: 24px; box-shadow: 0 14px 30px rgba(21,101,216,.22); }
.banner::before { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.08); right: -60px; top: -170px; }
.banner::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07); right: 180px; bottom: -150px; }
.banner .b-txt { position: relative; z-index: 1; flex: 1; min-width: 0; }
.banner h1 { font-size: 34px; color: #fff; letter-spacing: -.02em; }
.banner p { font-size: 16px; color: rgba(255,255,255,.9); margin-top: 8px; }
.banner .b-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.18); border-radius: 99px; padding: 5px 12px;
                  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.banner .b-pill i { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; }
.alert { display: flex; align-items: center; gap: 14px; border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.alert .a-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.alert.orange { background: #FFF8EE; border: 1px solid #FCE2BF; } .alert.orange .a-ic { background: var(--orange-50); color: var(--orange); }
.alert.red { background: #FEF2F2; border: 1px solid #FECACA; } .alert.red .a-ic { background: var(--red-50); color: var(--red); }
.alert.blue { background: var(--primary-50); border: 1px solid var(--primary-100); } .alert.blue .a-ic { background: #fff; color: var(--primary); }
.alert.cyan { background: var(--cyan-50); border: 1px solid #A5E9F9; } .alert.cyan .a-ic { background: #fff; color: var(--cyan-700); }
.alert.purple { background: var(--purple-50); border: 1px solid #DDD6FE; } .alert.purple .a-ic { background: #fff; color: var(--purple-700); }
.alert.green { background: #F0FDF4; border: 1px solid #BBF7D0; } .alert.green .a-ic { background: var(--green-50); color: var(--green); }
.exam-card { display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.exam-card:hover, .hover-lift:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.exam-card .t { font-size: 18px; font-weight: 600; } .exam-card .m { color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: 14px; }
.exam-card .sep { border-top: 1px solid var(--border-2); margin-top: auto; padding-top: 14px; }
.exam-card .foot { display: flex; justify-content: space-between; font-size: 12px; margin-top: 10px; }
.warn-strip { background: var(--coral-50); color: #C2410C; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.sched { border-top: 4px solid var(--coral); border-radius: 16px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: var(--sh-1); color: var(--text);
            cursor: pointer; transition: transform .15s, box-shadow .15s; text-decoration: none !important; }
.list-row:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.timeline { display: flex; flex-direction: column; gap: 18px; }
.tl { display: grid; grid-template-columns: 54px 3px minmax(0, 1fr); gap: 12px; }
.tl .tm { font-weight: 700; color: var(--navy); font-size: 14px; font-variant-numeric: tabular-nums; }
.tl .bar { border-radius: 3px; background: var(--primary); }
.tl .tt { font-weight: 600; font-size: 14px; } .tl .ts { font-size: 12px; color: var(--muted); }
.kpi { display: flex; flex-direction: column; gap: 10px; }
.kpi .k-top { display: flex; align-items: flex-start; gap: 10px; }
.kpi .k-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; flex: 1; }
.kpi .k-val { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpi .k-unit { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.kpi .k-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.kpi .k-ic .ms { font-size: 28px; }

/* ---------------- Modal, drawer, toast ---------------- */
.scrim { position: fixed; inset: 0; background: rgba(27,42,78,.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 80;
         display: grid; place-items: center; padding: 20px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes slideL { from { transform: translateX(100%); } }
@keyframes slideU { from { transform: translateY(100%); } }
.modal { background: #fff; border-radius: 20px; width: min(640px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column;
         box-shadow: var(--sh-3); animation: rise .18s ease; overflow: hidden; position: relative; }
.modal.wide { width: min(880px, 100%); } .modal.narrow { width: min(460px, 100%); }
.modal::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--blue-2)); }
.m-head { display: flex; align-items: flex-start; gap: 14px; padding: 24px 24px 10px; }
.m-head h2 { font-size: 20px; } .m-head .sub { color: var(--muted); margin-top: 4px; }
.m-body { padding: 10px 24px 20px; overflow-y: auto; }
.m-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border-2); background: var(--slate-50); flex-wrap: wrap; }
.m-close { margin-left: auto; }
.drawer-scrim { place-items: stretch end; padding: 0; }
.drawer { background: #fff; width: min(500px, 100vw); height: 100%; display: flex; flex-direction: column; box-shadow: var(--sh-3); animation: slideL .2s ease; }
.drawer .m-body { flex: 1; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; min-width: 280px; max-width: 420px; background: #fff; border-radius: 14px; box-shadow: var(--sh-2); padding: 14px 16px;
         display: flex; gap: 12px; align-items: flex-start; border-left: 4px solid var(--primary); animation: rise .2s ease; }
.toast.ok { border-color: var(--green); } .toast.err { border-color: var(--red); } .toast.warn { border-color: var(--orange); }
.toast .ms { color: var(--primary); } .toast.ok .ms { color: var(--green); } .toast.err .ms { color: var(--red); } .toast.warn .ms { color: var(--orange); }
.toast .tt { font-weight: 600; } .toast .tx { color: var(--muted); font-size: 13px; }
.menu-pop { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--sh-2); padding: 6px; min-width: 220px; z-index: 90; animation: rise .12s ease; }
.menu-pop button, .menu-pop a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 8px;
                                cursor: pointer; text-align: left; color: var(--text); font-weight: 500; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--slate-50); text-decoration: none; }
.menu-pop .sep { height: 1px; background: var(--border-2); margin: 6px 4px; }
.menu-pop .red { color: var(--red); }

/* ---------------- Skeleton & kosong ---------------- */
.skel { background: linear-gradient(90deg, #EEF1F6 25%, #F6F8FB 37%, #EEF1F6 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.skel.line { height: 14px; margin: 8px 0; } .skel.h { height: 22px; width: 40%; } .skel.card { height: 150px; border-radius: 16px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .e-art { width: 120px; height: 120px; border-radius: 50%; background: var(--primary-50); display: grid; place-items: center; margin-bottom: 6px; }
.empty .e-art .ms { font-size: 56px; color: var(--primary); }
.empty h3 { color: var(--text); font-size: 17px; }
.page-loading { display: grid; place-items: center; min-height: 60vh; }

/* ---------------- Stepper ---------------- */
.stepper { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.step { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--slate-50); border: 1.5px solid transparent; }
.step .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: #E5E9F2; color: var(--muted); flex: none; }
.step .sl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.step .st { font-weight: 700; font-size: 15px; }
.step.on { background: var(--primary-50); border-color: var(--primary-100); } .step.on .n { background: var(--primary); color: #fff; } .step.on .sl { color: var(--primary); }
.step.done .n { background: var(--green-50); color: var(--green); } .step.done .sl { color: var(--green); }

/* ---------------- Bank soal & editor ---------------- */
.qnum-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.qn { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font-weight: 700; cursor: pointer; position: relative;
      display: grid; place-items: center; font-size: 14px; color: var(--text); user-select: none; }
.qn.ok { background: #E8F7EF; border-color: #BFE8D2; color: var(--green-700); }
.qn.warn { background: var(--orange-50); border-color: #FBD9A8; color: var(--orange-700); }
.qn.cur { box-shadow: 0 0 0 3px var(--navy); }
.qn.wc { border-bottom: 4px solid hsl(var(--wh, 210) 70% 50%); }
.wc-box { background: #F6F9FE; border: 1.5px solid #D6E4FA; border-radius: 16px; padding: 14px 16px; }
.wc-box .rte { min-height: 120px; max-height: 320px; overflow: auto; background: #fff; }
.phone .ph-body .ph-wc { background: #F2F7FE; border: 1px solid #D6E4FA; margin-bottom: 10px; max-height: 190px; overflow: auto; }
.phone .ph-wc-t { font-weight: 700; color: var(--navy); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.qn.drag { opacity: .4; }
.qn.ans { background: var(--primary); border-color: var(--primary); color: #fff; }
.qn.doubt { background: var(--orange); border-color: var(--orange); color: #fff; }
.editor-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--slate-50); border: 1.5px solid var(--border-2); border-bottom: 0; border-radius: 12px 12px 0 0; }
.rte-bar button { width: 36px; height: 34px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; display: grid; place-items: center; font-weight: 700; }
.rte-bar button:hover { background: #fff; color: var(--primary); }
.rte { min-height: 140px; border: 1.5px solid var(--border-2); border-radius: 0 0 12px 12px; padding: 14px 16px; outline: none; font-size: 16px; line-height: 1.7; background: #fff; }
.rte:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,216,.15); }
.rte.small { min-height: 44px; border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.rte:empty::before { content: attr(data-ph); color: var(--faint); }
.rte img, .q-html img { max-width: 100%; height: auto; border-radius: 8px; }
.opt-edit { display: grid; grid-template-columns: 28px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px;
            background: var(--slate-50); border: 1.5px solid transparent; }
.opt-edit.key { background: #EAF7F0; border-color: #9FDDBC; }
.opt-edit .lt { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-weight: 700; border: 1px solid var(--border-2); }
.opt-edit.key .lt { background: var(--green); color: #fff; border-color: var(--green); }
.opt-edit input[type=radio] { width: 20px; height: 20px; accent-color: var(--green); }
.phone { width: 300px; margin: 0 auto; border-radius: 40px; background: #0F172A; padding: 12px; box-shadow: var(--sh-2); }
.phone .scr { background: var(--bg); border-radius: 30px; overflow: hidden; height: 600px; display: flex; flex-direction: column; }
.phone .ph-top { background: var(--primary); color: #fff; padding: 22px 16px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.phone .ph-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.phone .ph-body .q-html { font-size: 13px; line-height: 1.6; background: #fff; padding: 12px; border-radius: 14px; }
.phone .p-opt { background: #fff; border-radius: 12px; padding: 10px; display: flex; gap: 10px; align-items: center; font-size: 13px; border: 1.5px solid transparent; }
.phone .p-opt b { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-50); display: grid; place-items: center; font-size: 12px; flex: none; color: var(--primary); }
.bank-card .chip-head { margin-bottom: 4px; }

/* ---------------- Grafik sederhana ---------------- */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 16px; }
.bars .bc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .b { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: var(--primary); min-height: 2px; position: relative; transition: height .4s ease; }
.bars .bv { font-size: 12px; font-weight: 700; color: var(--text); }
.bars .bl { font-size: 11px; color: var(--muted); white-space: nowrap; }
.donut { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.donut > div { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.matrix { display: grid; gap: 2px; }
.matrix i { width: 14px; height: 14px; border-radius: 3px; display: block; }
.mx-1 { background: var(--green); } .mx-0 { background: var(--coral); } .mx- { background: #E5E7EB; }
.distr { display: flex; gap: 3px; align-items: flex-end; height: 34px; }
.distr span { width: 14px; background: #CBD5E1; border-radius: 3px 3px 1px 1px; position: relative; }
.distr span.k { background: var(--green); }
.distr-l { display: flex; gap: 3px; font-size: 10px; color: var(--muted); } .distr-l span { width: 14px; text-align: center; }

/* ---------------- Monitor ---------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tile { background: #fff; border-radius: 14px; box-shadow: var(--sh-1); padding: 12px 14px; display: flex; gap: 12px; align-items: center; border-left: 4px solid #CBD5E1;
        cursor: pointer; transition: transform .12s; }
.tile:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.tile.st-mengerjakan { border-left-color: var(--primary); } .tile.st-selesai { border-left-color: var(--green); } .tile.st-terkunci { border-left-color: var(--red); background: #FFF7F7; }
.flag { background: var(--coral); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 7px; display: inline-flex; align-items: center; gap: 2px; }
.token-box { font-family: var(--mono); font-size: 22px; letter-spacing: .25em; font-weight: 700; background: var(--navy); color: #fff; padding: 6px 14px; border-radius: 10px; }

/* ---------------- Halaman publik (login, aktivasi) ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: #fff; }
.auth-art { background: linear-gradient(140deg, #1565D8 0%, #3B9BF5 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-art::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.07); right: -160px; top: -200px; }
.auth-art::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.06); left: -120px; bottom: -160px; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art h1 { font-size: 40px; color: #fff; margin-top: auto; letter-spacing: -.02em; }
.auth-art p { font-size: 17px; color: rgba(255,255,255,.88); margin-top: 12px; max-width: 520px; }
.auth-form { display: grid; place-items: center; padding: 32px; background: var(--bg); position: relative; z-index: 2; }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 24px; box-shadow: var(--sh-2); padding: 32px; }
/* ---------- Halaman masuk ---------- */
.msk { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 5fr) minmax(0, 7fr); background: var(--bg); }
.msk-side { position: relative; overflow: hidden; background: var(--navy); color: #CBD5E1; padding: 32px 44px; display: flex; flex-direction: column; }
.msk-side > :not(.msk-ljk) { position: relative; z-index: 1; }
.msk-brand { display: flex; align-items: center; gap: 12px; }
.msk-brand a { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 16.5px; text-decoration: none; letter-spacing: -.01em; }
.msk-brand .home-m { display: none; margin-left: auto; color: #CBD5E1; font-size: 14px; font-weight: 600; }
.msk-mid { margin: auto 0; padding: 40px 0; }
.msk-side h1 { color: #fff; font-size: clamp(25px, 2.15vw, 32px); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; max-width: 14ch; margin: 0; }
.msk-side .lead { font-size: 14px; line-height: 1.6; color: #B8C4D9; max-width: 40ch; margin-top: 12px; }
.msk-pts { display: grid; gap: 14px; margin-top: 28px; }
.msk-pts > div { display: flex; gap: 14px; align-items: flex-start; }
.msk-pts .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.msk-pts .ic .ms { font-size: 18px; }
.msk-pts b { display: block; color: #fff; font-size: 13.5px; font-weight: 700; }
.msk-pts small { color: #94A3B8; font-size: 12.5px; line-height: 1.45; }
.msk-ljk { position: absolute; right: -36px; bottom: -24px; display: grid; gap: 9px; transform: rotate(-8deg); pointer-events: none; }
.msk-ljk i { display: flex; gap: 7px; }
.msk-ljk u { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.13); }
.msk-ljk u.f { background: rgba(255,255,255,.16); border-color: transparent; }
.msk-main { display: flex; flex-direction: column; padding: 18px 36px; min-width: 0; }
.msk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; font-size: 13px; }
.msk-top a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--slate-600); text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.msk-top a:hover { background: #fff; color: var(--navy); }
.msk-center { flex: 1; display: grid; place-items: center; padding: 24px 0; }
.msk-card { width: min(412px, 100%); background: #fff; border-radius: 24px; padding: 32px 32px 28px;
  box-shadow: 0 1px 2px rgba(27,42,78,.04), 0 16px 44px rgba(27,42,78,.08); }
.msk-card h2 { font-size: 21px; letter-spacing: -.02em; color: var(--navy); margin: 0; }
.msk-card .sub { color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.msk-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--slate-100); border-radius: 14px; padding: 3px; margin-top: 20px; }
.msk-tabs button { border: 0; background: transparent; height: 38px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 13px; color: var(--muted);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, color .15s; }
.msk-tabs button:hover { color: var(--navy); }
.msk-tabs button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(27,42,78,.14); }
.msk-tabs button.on .ms { color: var(--primary); }
.msk-pane { margin-top: 20px; }
.msk-info { display: flex; gap: 8px; font-size: 12.5px; color: var(--slate-600); background: var(--slate-50); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 12px 14px; margin-top: 16px; line-height: 1.5; }
.msk-info .ms { color: var(--primary); flex: none; margin-top: 1px; font-size: 16px; }
.msk-reg { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 10px; border: 1.5px dashed #CBD5E1;
  color: var(--navy); font-weight: 700; text-decoration: none; font-size: 13.5px; }
.msk-reg:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.msk-reg .ms { color: var(--orange); }
.msk-card .btn-google { height: 44px; font-size: 14px; border-radius: 10px; }
.msk-card .btn.lg { height: 44px; font-size: 14px; border-radius: 10px; }
.msk-card .field label { font-size: 12.5px; }
.msk-card .input { height: 42px; font-size: 14px; }
.msk-card .or { margin: 14px 0; font-size: 12px; }
.msk-card .msk-pane.col { gap: 12px; }
.msk-bottom { text-align: center; font-size: 12px; color: var(--faint); }
@media (min-width: 1024px) and (max-height: 780px) {
  .msk-main { padding-top: 16px; padding-bottom: 16px; }
  .msk-center { padding: 8px 0; }
  .msk-card { padding: 30px 36px 28px; }
  .msk-tabs, .msk-pane { margin-top: 18px; }
  .msk-mid { padding: 24px 0; }
}
/* Kompatibilitas: bila berkas dashboard versi lama masih terpasang, ilustrasi lamanya tetap tersembunyi */
.auth-art .art, .banner .b-art { display: none !important; }
@media (max-width: 1023px) {
  .msk { grid-template-columns: minmax(0, 1fr); }
  .msk-side { padding: 20px 20px 76px; }
  .msk-brand .home-m { display: inline-flex; align-items: center; gap: 4px; }
  .msk-mid { margin: 0; padding: 22px 0 0; }
  .msk-side h1 { font-size: 23px; max-width: none; }
  .msk-side .lead, .msk-pts { display: none; }
  .msk-ljk { right: -70px; bottom: -90px; }
  .msk-main { padding: 0 14px 24px; margin-top: -56px; position: relative; z-index: 2; }
  .msk-top { display: none; }
  .msk-center { padding: 0; place-items: start center; }
  .msk-card { padding: 28px 22px 24px; border-radius: 20px; }
  .msk-bottom { margin-top: 20px; }
}
.btn-google { width: 100%; height: 52px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; font-weight: 700; font-size: 15px;
              display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; }
.btn-google:hover { background: var(--slate-50); border-color: #CBD5E1; }
.btn-google svg { width: 22px; height: 22px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------------- Aplikasi peserta (mobile-first) ---------------- */
.p-app { min-height: 100vh; max-width: 760px; margin: 0 auto; padding-bottom: 90px; }
.p-head { background: linear-gradient(130deg, #1565D8, #3B9BF5); color: #fff; padding: 22px 20px 26px; border-radius: 0 0 26px 26px; position: relative; overflow: hidden; }
.p-head::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); right: -60px; top: -110px; }
.p-head h1 { font-size: 24px; color: #fff; } .p-head .s { color: rgba(255,255,255,.88); font-size: 13px; margin-top: 2px; }
.p-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.p-card { background: #fff; border-radius: 18px; box-shadow: var(--sh-1); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.p-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; width: min(560px, calc(100% - 24px)); background: #fff; border-radius: 20px;
         box-shadow: var(--sh-2); display: flex; padding: 6px; z-index: 30; }
.p-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 600; }
.p-nav a.on { color: var(--primary); background: var(--primary-50); }
.p-nav a:hover { text-decoration: none; }
.token-in { display: flex; gap: 8px; justify-content: center; }
.token-in input { width: 48px; height: 56px; border-radius: 12px; border: 2px solid var(--border); text-align: center; font-family: var(--mono); font-size: 24px; font-weight: 700;
                  text-transform: uppercase; outline: none; }
.token-in input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,216,.2); }
.token-in.bad input { border-color: var(--red); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.rules { display: flex; flex-direction: column; gap: 10px; }
.rules div { display: flex; gap: 12px; align-items: center; }
.rules .ms { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 20px; flex: none; }

.exam { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); user-select: none; -webkit-user-select: none; }
.ex-top { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 2px 12px rgba(27,42,78,.06); }
.ex-top-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.ex-title { font-weight: 700; font-size: 15px; min-width: 0; flex: 1; }
.ex-num-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--primary-50); color: var(--primary);
              border: 0; font-weight: 700; font-size: 16px; cursor: pointer; }
.timer { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 99px; background: var(--primary-50); color: var(--primary);
         font-family: var(--mono); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.timer.warn { background: var(--orange-50); color: var(--orange-700); }
.timer.crit { background: var(--coral); color: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .75; } }
.save-st { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--green); padding: 6px 12px; border-radius: 99px; background: #F0FDF4; white-space: nowrap; }
.save-st.saving { color: var(--muted); background: var(--slate-100); } .save-st.off { color: var(--orange-700); background: var(--orange-50); }
.ex-prog { height: 4px; background: var(--track); } .ex-prog i { display: block; height: 100%; background: var(--primary); transition: width .3s; }
.ex-body { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 16px 16px 110px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.ex-q { background: #fff; border-radius: 20px; box-shadow: var(--sh-1); padding: 20px; }
.ex-wc { background: #fff; border-radius: 20px; box-shadow: var(--sh-1); border: 1.5px solid #D6E4FA; overflow: hidden; }
.ex-wc > summary { display: flex; align-items: center; gap: 10px; padding: 14px 20px; cursor: pointer; list-style: none; background: #F2F7FE; color: var(--navy); }
.ex-wc > summary::-webkit-details-marker { display: none; }
.ex-wc > summary .ms { color: var(--primary); }
.ex-wc > summary .small { margin-left: auto; white-space: nowrap; }
.ex-wc[open] > summary { border-bottom: 1px solid #D6E4FA; }
.ex-wc > .q-html { padding: 16px 20px 18px; max-height: 44vh; overflow: auto; }
.ex-q .q-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ex-q .q-no { background: var(--primary); color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 10px; font-size: 15px; }
.q-html { font-size: 18px; line-height: 1.75; word-wrap: break-word; }
.q-html p { margin: 0 0 8px; }
.q-img { margin: 14px 0; border-radius: 14px; overflow: hidden; background: var(--slate-50); text-align: center; cursor: zoom-in; }
.q-img img { max-height: 360px; object-fit: contain; }
.opts { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid var(--border-2); background: #fff;
       cursor: pointer; text-align: left; width: 100%; font-size: 17px; transition: border-color .1s, background .1s; }
.opt:hover { border-color: #B8CCF0; }
.opt .lt { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 16px; }
.opt .ot { flex: 1; min-width: 0; line-height: 1.5; }
.opt .ot img { max-height: 140px; }
.opt .ck { color: var(--primary); opacity: 0; }
.opt.on { border: 2px solid var(--primary); background: #EBF3FC; }
.opt.on .lt { background: var(--primary); color: #fff; } .opt.on .ck { opacity: 1; }
.ex-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); box-shadow: 0 -4px 20px rgba(27,42,78,.08); }
.ex-foot-in { max-width: 1100px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
.ex-foot .btn { height: 52px; font-size: 16px; border-radius: 14px; }
.btn.doubt { background: var(--orange-50); color: var(--orange-700); border-color: #FBD9A8; }
.btn.doubt.on { background: var(--orange); color: #fff; border-color: var(--orange); }
.ex-side { position: sticky; top: 90px; }
.legend-q { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend-q i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.sheet-scrim { place-items: end center; padding: 0; }
.sheet { background: #fff; width: min(760px, 100%); border-radius: 24px 24px 0 0; padding: 10px 20px 24px; box-shadow: var(--sh-3); animation: slideU .2s ease; max-height: 80vh; overflow: auto; }
.sheet .grab { width: 44px; height: 5px; border-radius: 99px; background: #CBD5E1; margin: 4px auto 14px; }
.lock-screen { position: fixed; inset: 0; z-index: 70; background: rgba(244,246,250,.97); display: grid; place-items: center; padding: 20px; }
.score-ring { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; margin: 10px auto; }
.score-ring > div { width: 136px; height: 136px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.score-ring b { font-size: 46px; font-weight: 800; letter-spacing: -.03em; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; width: 8px; height: 14px; border-radius: 2px; top: -20px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
.zoom-img { max-width: 96vw; max-height: 90vh; border-radius: 12px; background: #fff; }

/* ---------------- Cetak ---------------- */
.print-only { display: none; }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .bottom-nav, .no-print, .toasts { display: none !important; }
  .main { margin: 0 !important; } .content { padding: 0 !important; max-width: none; }
  .card { box-shadow: none !important; border: 1px solid #ddd; break-inside: avoid; }
  .print-only { display: block; }
}

/* ---------------- Responsif ---------------- */
@media (max-width: 1280px) {
  .g-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-main > :last-child { grid-column: 1 / -1; }
  .editor-wrap { grid-template-columns: 220px minmax(0, 1fr); }
  .editor-wrap .ed-preview { display: none; }
}
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  :root { --sidebar-w: 0px; }
  .sidebar { width: 280px; transform: translateX(-100%); box-shadow: var(--sh-3); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .sb-scrim { display: block; position: fixed; inset: 0; background: rgba(27,42,78,.4); z-index: 35; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 4px 16px 110px; }
  .bottom-nav { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; background: rgba(255,255,255,.96);
                backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; box-shadow: var(--sh-2); padding: 6px; }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 14px; color: var(--muted);
                  font-size: 10.5px; font-weight: 600; text-align: center; min-width: 0; }
  .bottom-nav a .ms { font-size: 22px; }
  .bottom-nav a.on { color: var(--primary); background: var(--primary-50); }
  .bottom-nav a:hover { text-decoration: none; }
  .g-3 { grid-template-columns: minmax(0, 1fr); }
  .editor-wrap { grid-template-columns: minmax(0, 1fr); }
  .ex-body { grid-template-columns: minmax(0, 1fr); }
  .ex-side { display: none; }
  .toasts { left: 12px; right: 12px; bottom: 96px; }
  .toast { min-width: 0; max-width: none; }
}
@media (max-width: 760px) {
  .g-2, .g-4, .g-main, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-search { display: none; }
  .user-btn .nm, .user-btn .rl, .user-btn .chev { display: none; }
  .wallet-pill .lbl-txt { display: none; }
  .banner { padding: 24px 22px; min-height: 0; border-radius: 18px; }
  .banner h1 { font-size: 24px; } .banner p { font-size: 14px; }
  .page-head h1 { font-size: 24px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { padding: 28px 22px 64px; } .auth-art h1 { font-size: 28px; margin-top: 12px; }
  .auth-form { margin-top: -44px; padding: 0 14px 30px; background: transparent; align-items: start; }
  .auth-card { padding: 24px 20px; }
  .stepper { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 10px 12px; } .step .n { width: 36px; height: 36px; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; align-self: end; }
  .scrim:not(.drawer-scrim) { place-items: end center; padding: 0; }
  .m-head { padding: 20px 18px 8px; } .m-body { padding: 8px 18px 16px; } .m-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .m-foot .btn { flex: 1; }
  .table th, .table td { padding: 10px 12px; }
  .hide-sm { display: none !important; }
  .card { padding: 16px; }
  .tabs button { padding: 0 12px; height: 40px; font-size: 13px; }
  .q-html { font-size: 17px; }
  .ex-title { font-size: 14px; }
  .timer { font-size: 18px; padding: 0 12px; height: 42px; }
  .save-st .lbl-txt { display: none; }
}
@media (min-width: 761px) { .show-sm { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---- Rumus (hasil impor Word / Insert Equation) ---- */
.m-f { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .15em; line-height: 1.25; }
.m-n { display: block; padding: 0 .2em; }
.m-f > .m-d { border-top: 1.5px solid currentColor; }
.m-lim { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1.1; font-size: .85em; }
.m-lim > .m-big { font-size: 1.5em; line-height: 1; }
.m-rad { white-space: nowrap; }
.m-rb { border-top: 1.5px solid currentColor; padding: 0 .12em; margin-left: 1px; }
.m-ov { text-decoration: overline; }
.m-un { text-decoration: underline; }
.m-box { border: 1px solid currentColor; padding: 0 .25em; }
.m-fn { font-style: normal; }
.m-mx { display: inline-block; vertical-align: middle; }
.m-mx table { border-collapse: collapse; margin: 0; }
.m-mx td { padding: 0 .5em; text-align: center; border: 0; }
