/* ===== Daftar, hasil (di dalam dashboard) ===== */
.cb-course { font-size:20px; margin:26px 0 12px; }
.cb-course:first-child { margin-top:0; }
.cb-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.cb-set { display:flex; flex-direction:column; gap:6px; }
.cb-set__top { display:flex; gap:8px; flex-wrap:wrap; }
.cb-set h3 { margin:6px 0 0; font-size:18px; line-height:1.3; }
.cb-set__meta { margin:0; color:var(--muted); font-size:14px; }
.cb-set__stat { margin:0; font-size:14px; }
.cb-set__act { display:flex; align-items:center; gap:14px; margin-top:auto; padding-top:12px; flex-wrap:wrap; }
.cb-set__act form { margin:0; }
.cb-set__warn { margin:8px 0 0; font-size:13px; font-weight:700; color:var(--warn-ink,#7a5410); }
.chip--gold { background:var(--gold-soft,#f5eddd); color:var(--gold-ink,#7f642c); }
.chip--warn { background:var(--warn-soft,#fdf3dc); color:var(--warn-ink,#7a5410); }
.chip--bad { background:#fde8e8; color:#a12727; }
html[data-theme="dark"] .app .chip--bad { background:#3a1b1b; color:#f2b0b0; }
.cb-empty p { color:var(--muted); margin:6px 0 14px; }
.cb-hist { margin-top:26px; }
.cb-hist h2 { font-size:18px; margin:0 0 12px; }
.cb-tbl { overflow-x:auto; }
.cb-tbl table { width:100%; border-collapse:collapse; font-size:14px; }
.cb-tbl th { text-align:left; color:var(--muted); font-weight:700; padding:8px 10px; border-bottom:1px solid var(--line); white-space:nowrap; }
.cb-tbl td { padding:10px; border-bottom:1px solid var(--line); vertical-align:middle; }

.cb-res { display:flex; gap:28px; align-items:center; flex-wrap:wrap; }
.cb-res__ring { --p:0; width:132px; height:132px; border-radius:50%; flex:none; display:grid; place-items:center; background:conic-gradient(var(--gold,#c69d44) calc(var(--p) * 1%), var(--navy-soft,#eef2f8) 0); position:relative; }
.cb-res__ring::before { content:""; position:absolute; inset:12px; border-radius:50%; background:var(--card,#fff); }
.cb-res__ring span { position:relative; font-size:30px; font-weight:800; color:var(--ink,#12203a); }
.cb-res__ring small { font-size:15px; }
.cb-res__txt { flex:1 1 280px; }
.cb-res__txt h2 { margin:8px 0 4px; font-size:22px; }
.cb-res__txt p { margin:0 0 12px; color:var(--muted); font-size:14.5px; }
.cb-res__stats { list-style:none; margin:0 0 6px; padding:0; display:flex; gap:22px; flex-wrap:wrap; }
.cb-res__stats li { font-size:13px; color:var(--muted); }
.cb-res__stats b { display:block; font-size:22px; color:var(--ink,#12203a); }
.cb-rev { margin-top:26px; }
.cb-rev__head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.cb-rev__head h2 { margin:0; font-size:20px; }
.cb-filter { display:flex; gap:6px; flex-wrap:wrap; }
.cb-filter button { border:1px solid var(--line); background:var(--card); color:var(--ink); border-radius:99px; padding:6px 14px; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.cb-filter button.is-on { background:var(--navy,#08264f); border-color:var(--navy,#08264f); color:#fff; }
.cb-q { margin-bottom:12px; }
.cb-q[hidden] { display:none; }
.cb-q__no { font-size:13px; font-weight:700; color:var(--muted); display:flex; gap:10px; align-items:center; }
.cb-q__t { margin:8px 0 12px; font-size:16px; line-height:1.55; white-space:pre-line; }
.cb-opts { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.cb-opts li { display:flex; gap:12px; align-items:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:10px; font-size:15px; line-height:1.5; }
.cb-opts .k { flex:none; width:26px; height:26px; border-radius:50%; background:var(--navy-soft,#eef2f8); display:grid; place-items:center; font-size:12px; font-weight:800; }
.cb-opts .v { flex:1; }
.cb-opts em { flex:none; font-style:normal; font-size:12px; font-weight:700; }
.cb-opts .is-right { border-color:var(--ok,#1f6f4f); background:var(--ok-soft,#e3f4ec); }
.cb-opts .is-right .k { background:var(--ok,#1f6f4f); color:#fff; }
.cb-opts .is-right em { color:var(--ok,#1f6f4f); }
.cb-opts .is-wrong { border-color:#c63b3b; background:#fde8e8; }
.cb-opts .is-wrong .k { background:#c63b3b; color:#fff; }
.cb-opts .is-wrong em { color:#a12727; }
html[data-theme="dark"] .app .cb-opts .is-wrong { background:#3a1b1b; }
.cb-exp { margin-top:12px; padding:12px 14px; border-radius:10px; background:var(--gold-soft,#f5eddd); font-size:14.5px; line-height:1.6; }
.cb-exp p { margin:4px 0 0; }

/* ===== Halaman ujian layar penuh ===== */
.cbt-page { margin:0; --navy:#08264f; --gold:#c69d44; --ink:#12203a; --muted:#56627c; --line:#e3e8f0; --bg:#f4f6fa; --card:#fff; --ok:#1f6f4f; --ok-soft:#e3f4ec; --bad:#c63b3b; --bad-soft:#fde8e8; --soft:#eef2f8; background:var(--bg); color:var(--ink); font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; -webkit-text-size-adjust:100%; }
@media (prefers-color-scheme:dark) { .cbt-page { --ink:#e7ecf5; --muted:#a9b6cc; --line:#22304d; --bg:#0a1426; --card:#0f1b33; --soft:#15233f; --ok-soft:#14352a; --bad-soft:#3a1b1b; } }
.cbt-page * { box-sizing:border-box; }
.cbt-top { position:sticky; top:0; z-index:5; background:var(--card); border-bottom:1px solid var(--line); }
.cbt-top__in { max-width:1100px; margin:0 auto; padding:10px 16px; display:flex; align-items:center; gap:12px; }
.cbt-top__t { flex:1; min-width:0; }
.cbt-top__t b { display:block; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cbt-top__t small { color:var(--muted); font-size:12.5px; }
.cbt-timer { font-variant-numeric:tabular-nums; font-weight:800; font-size:18px; padding:6px 12px; border-radius:8px; background:var(--soft); }
.cbt-timer.is-warn { background:#fdf3dc; color:#7a5410; }
.cbt-timer.is-crit { background:var(--bad-soft); color:var(--bad); animation:cbt-pulse 1s infinite; }
@keyframes cbt-pulse { 50% { opacity:.6; } }
.cbt-btn { font:inherit; font-weight:700; font-size:14.5px; border-radius:9px; padding:10px 16px; border:1.5px solid var(--line); background:var(--card); color:var(--ink); cursor:pointer; min-height:42px; }
.cbt-btn:disabled { opacity:.45; cursor:not-allowed; }
.cbt-btn--gold { background:var(--gold); border-color:var(--gold); color:#08264f; }
.cbt-btn--navy { background:var(--navy); border-color:var(--navy); color:#fff; }
.cbt-btn--danger { background:var(--bad); border-color:var(--bad); color:#fff; }
.cbt-btn:focus-visible, .cbt-opt:focus-visible, .cbt-nav button:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.cbt-prog { height:4px; background:var(--soft); }
.cbt-prog i { display:block; height:100%; width:0; background:var(--gold); transition:width .25s; }
.cbt-wrap { max-width:1100px; margin:0 auto; padding:18px 16px 110px; display:grid; gap:16px; }
@media (min-width:900px) { .cbt-wrap { grid-template-columns:minmax(0,1fr) 290px; align-items:start; padding-bottom:40px; } }
.cbt-card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:22px; }
.cbt-q__no { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13.5px; font-weight:700; color:var(--muted); margin-bottom:10px; }
.cbt-flag { font:inherit; font-size:13px; font-weight:700; border:1.5px solid var(--line); background:var(--card); color:var(--muted); border-radius:99px; padding:6px 12px; cursor:pointer; }
.cbt-flag.is-on { background:#fdf3dc; border-color:#e0bd68; color:#7a5410; }
.cbt-q__t { font-size:18px; line-height:1.6; margin:0 0 18px; white-space:pre-line; overflow-wrap:anywhere; }
.cbt-opts { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.cbt-opt { width:100%; display:flex; gap:12px; align-items:flex-start; text-align:left; font:inherit; font-size:16px; line-height:1.5; padding:13px 14px; border:1.5px solid var(--line); border-radius:12px; background:var(--card); color:var(--ink); cursor:pointer; }
.cbt-opt:hover:not(:disabled) { border-color:var(--gold); }
.cbt-opt .k { flex:none; width:28px; height:28px; border-radius:50%; background:var(--soft); display:grid; place-items:center; font-size:13px; font-weight:800; }
.cbt-opt .v { flex:1; overflow-wrap:anywhere; }
.cbt-opt.is-sel { border-color:var(--navy); background:var(--soft); }
.cbt-opt.is-sel .k { background:var(--navy); color:#fff; }
.cbt-opt.is-right { border-color:var(--ok); background:var(--ok-soft); }
.cbt-opt.is-right .k { background:var(--ok); color:#fff; }
.cbt-opt.is-wrong { border-color:var(--bad); background:var(--bad-soft); }
.cbt-opt.is-wrong .k { background:var(--bad); color:#fff; }
.cbt-opt:disabled { cursor:default; }
.cbt-fb { margin-top:16px; padding:12px 14px; border-radius:12px; background:var(--soft); font-size:15px; line-height:1.6; white-space:pre-line; }
.cbt-fb b { display:block; margin-bottom:2px; }
.cbt-fb.ok b { color:var(--ok); } .cbt-fb.bad b { color:var(--bad); }
.cbt-actions { display:flex; gap:10px; justify-content:space-between; margin-top:20px; flex-wrap:wrap; }
.cbt-clear { font:inherit; font-size:13.5px; font-weight:700; background:none; border:0; color:var(--muted); text-decoration:underline; cursor:pointer; padding:8px 0; }
.cbt-nav { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; }
.cbt-nav h2 { margin:0 0 10px; font-size:15px; }
.cbt-nav__grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(42px,1fr)); gap:6px; }
.cbt-nav button { position:relative; font:inherit; font-size:14px; font-weight:700; height:42px; border-radius:9px; border:1.5px solid var(--line); background:var(--card); color:var(--ink); cursor:pointer; }
.cbt-nav button.is-ans { background:var(--navy); border-color:var(--navy); color:#fff; }
.cbt-nav button.is-cur { outline:3px solid var(--gold); outline-offset:1px; }
.cbt-nav button.is-flag::after { content:""; position:absolute; top:3px; right:3px; width:9px; height:9px; border-radius:50%; background:#e0a526; }
.cbt-nav button.is-ok { background:var(--ok); border-color:var(--ok); color:#fff; }
.cbt-nav button.is-no { background:var(--bad); border-color:var(--bad); color:#fff; }
.cbt-legend { display:flex; flex-wrap:wrap; gap:10px 14px; margin:12px 0 0; font-size:12.5px; color:var(--muted); }
.cbt-legend i { display:inline-block; width:12px; height:12px; border-radius:4px; vertical-align:-2px; margin-right:5px; border:1.5px solid var(--line); }
.cbt-legend .a { background:var(--navy); border-color:var(--navy); } .cbt-legend .f { background:#e0a526; border-color:#e0a526; }
.cbt-save { font-size:12.5px; color:var(--muted); min-height:18px; margin-top:10px; }
.cbt-save.is-err { color:var(--bad); font-weight:700; }
.cbt-mnav { display:none; }
@media (max-width:899px) {
  .cbt-nav { position:fixed; left:0; right:0; bottom:0; z-index:8; border-radius:16px 16px 0 0; max-height:62vh; overflow:auto; transform:translateY(105%); transition:transform .25s; box-shadow:0 -12px 32px rgba(0,0,0,.2); }
  .cbt-nav.is-open { transform:none; }
  .cbt-mnav { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:7; gap:10px; padding:10px 14px max(10px,env(safe-area-inset-bottom)); background:var(--card); border-top:1px solid var(--line); }
  .cbt-mnav .cbt-btn { flex:1; }
  .cbt-q__t { font-size:17px; } .cbt-card { padding:16px; }
  .cbt-top__in { padding:8px 12px; }
}
.cbt-modal { position:fixed; inset:0; z-index:20; background:rgba(8,20,40,.55); display:grid; place-items:center; padding:16px; }
.cbt-modal__box { width:100%; max-width:420px; background:var(--card); border-radius:16px; padding:22px; border:1px solid var(--line); }
.cbt-modal__box h2 { margin:0 0 8px; font-size:20px; } .cbt-modal__box p { margin:0 0 16px; color:var(--muted); line-height:1.55; }
.cbt-modal__act { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
.cbt-toast { position:fixed; left:50%; bottom:84px; transform:translateX(-50%); z-index:30; background:#12203a; color:#fff; padding:10px 16px; border-radius:10px; font-size:14px; }

.cb-set__hint { margin:0; font-size:13.5px; line-height:1.5; color:var(--muted); }
