/* =========================================================
   LIQUID CBT — tambahan di atas style.css (template kaca)
   Template memakai radio CSS untuk berpindah halaman tanpa memuat ulang.
   Di sini perpindahan menu juga TANPA muat ulang: app.js mengambil halaman
   baru dan hanya mengganti isi #halaman, jadi panel kaca & latar diam,
   sorotan menu meluncur, dan blok isi "fokus" masuk seperti di template.
   ========================================================= */
[hidden] { display: none !important; }
/* halaman aktif: animasi masuk sama persis dengan template (pageIn + focus berurutan) */
.page.is-on { display: flex; animation: pageIn .2s linear backwards; }
.page.is-on > * { animation: focus .6s .08s var(--ease) backwards; }
.page.is-on > :nth-child(2) { animation-delay: .2s; }
.page.is-on > :nth-child(3) { animation-delay: .32s; }
.page.is-on > :nth-child(4) { animation-delay: .44s; }
.page.is-on > :nth-child(n+5) { animation-delay: .54s; }

/* animasi pembuka (latar buram, panel kaca, isi, footer) hanya sekali per sesi */
.sudah-masuk .scene, .sudah-masuk .glass, .sudah-masuk .pages, .sudah-masuk .site-foot { animation: none !important; }

/* sorotan menu yang meluncur (posisi diatur app.js sesuai item aktif, karena jumlah menu tergantung peran) */
/* matikan sorotan sentuh bawaan browser HP (kotak biru kehijauan saat link/tombol disentuh) */
html { -webkit-tap-highlight-color: transparent; }
a, button, label, summary, [role="button"], input, select, textarea { -webkit-tap-highlight-color: transparent; }
/* gantinya: umpan balik tekan yang halus & senada di menu samping */
.side .nav:active { background-color: rgba(255, 255, 255, .1); }
.side .nav.on:active { background-color: transparent; }
.side .nav { text-decoration: none; }
.side .nav.on { color: #fff; background-color: transparent; }
.side .nav-hl.aktif { opacity: 1; }
.side .nav-hl.tanpa-anim { transition: none; }
/* posisi sorotan dihitung app.js dari offsetTop (sudah termasuk padding) → jangan digeser lagi oleh CSS */
.side .foot .nav-hl { top: 0; }
/* area profil & keluar tidak boleh ikut tertekan saat menu panjang; yang menggulir hanya daftar menu */
.side .foot { flex: none; }
.side .menu { padding-bottom: 2px; }
/* menu lebih panjang dari layar: tepi yang masih menyimpan menu dibuat memudar + scrollbar tipis saat disorot */
.side .menu.ada-bawah { -webkit-mask-image: linear-gradient(#000 calc(100% - 34px), transparent); mask-image: linear-gradient(#000 calc(100% - 34px), transparent); }
.side .menu.ada-atas { -webkit-mask-image: linear-gradient(transparent, #000 34px); mask-image: linear-gradient(transparent, #000 34px); }
.side .menu.ada-atas.ada-bawah { -webkit-mask-image: linear-gradient(transparent, #000 34px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(transparent, #000 34px, #000 calc(100% - 34px), transparent); }
@media (hover: hover) and (min-width: 761px) {
  .side .menu:hover { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; }
  .side .menu:hover::-webkit-scrollbar { display: block; width: 4px; }
  .side .menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 4px; }
}
/* layar pendek (laptop kecil / jendela rendah): menu sedikit lebih rapat agar lebih banyak yang terlihat */
@media (max-height: 720px) and (min-width: 761px) {
  .side { --nav-h: 30px; --nav-gap: 1px; padding-top: 12px; padding-bottom: 12px; }
  .side .who { padding-bottom: 8px; }
}

/* sub-menu ditampilkan sebagai tab di atas halaman (komponen .tabs template) */
.subtabs { margin: -2px 0 2px; }
.subtabs a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; font-size: 11px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.subtabs a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.subtabs a.on { background: rgba(255, 255, 255, .16); color: #fff; }

/* Panel admin setinggi layar di SEMUA ukuran (template membolehkan halaman lebih tinggi dari layar
   di tablet/HP sehingga dokumen luar ikut digulir). Yang digulir hanya isi panel (.page) dan,
   bila tidak muat, daftar menu. Footer ringkas menempel di dasar layar. */
body.admin { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.admin .app { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); }
body.admin .app > .side, body.admin .app > .main { min-height: 0; }
body.admin .site-foot { flex: none; }
@media (max-width: 1080px) {
  body.admin .app { flex: 1 1 0; height: auto; }
  body.admin .main { min-height: 0; }
  body.admin .pages { min-height: 0; }
}
@media (max-width: 760px) {
  body.admin { padding-top: 10px; }
  body.admin .app,
  body.admin :where(#p-overview, #p-leads, #p-contacts, #p-companies, #p-tasks, #p-reports):checked ~ .app {
    flex: 1 1 0; margin: 0 auto; grid-template-rows: minmax(0, 1fr);
  }
  /* rel menu & panel mengisi tinggi yang tersedia (bukan 100dvh + footer di bawahnya) */
  body.admin .app > .side, body.admin .app > .main { height: auto; position: relative; top: 0; align-self: stretch; }
  body.admin .site-foot {
    width: calc(100% - 20px); align-self: center;
    margin: 6px auto 0; padding: 0 0 calc(8px + env(safe-area-inset-bottom));
    font-size: 10px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  body.admin .site-foot .foot-sekolah { display: none; }   /* di HP cukup "© LIQUID CBT" agar satu baris */
}

/* sedang mengambil halaman berikutnya */
.pages.memuat { cursor: progress; }
.pages.memuat .page { transition: opacity .15s; opacity: .55; }
.who .brand-m { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font: 600 14px var(--serif);
  background: linear-gradient(135deg, #5b8cff, #3ecf9a); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); flex: none; }
/* teks tebal di dalam keterangan sakelar tetap sebaris (template membuat .opt b menjadi blok) */
.opt small b, .opt small strong { display: inline; font-size: inherit; }

/* logo sekolah (Pengaturan) menggantikan tanda "L" */
.brand-img { width: 34px; height: 34px; flex: none; object-fit: contain; border-radius: 10px; padding: 3px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.brand-img.lg, .brand-m.lg { width: 52px; height: 52px; border-radius: 14px; }
.brand-m.lg { font-size: 20px; }
.brand-img.sm, .brand-m.sm { width: 20px; height: 20px; border-radius: 6px; padding: 1px; font-size: 10px; margin-right: 2px; vertical-align: middle; }
.brand-m { width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; font: 600 14px var(--serif);
  background: linear-gradient(135deg, #5b8cff, #3ecf9a); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); flex: none; }
.sw-brand { display: flex; align-items: center; gap: 6px; }
.auth-art .brand-img, .auth-art .brand-m { margin-bottom: 6px; }
a { color: var(--blue-l); }
a.btn, a.pill, a.ghost, a.dd-i, a.round, a.chip { text-decoration: none; color: inherit; }
a.btn { color: #fff; }
a.btn.out { color: var(--text); }

/* item grid (.row) boleh lebih sempit dari isinya: tabel lebar digulir DI DALAM kartunya,
   bukan mendorong kartu & seluruh baris melewati tepi panel (HP) */
.row > * { min-width: 0; }
.page > .card, .page > form.card { min-width: 0; max-width: 100%; }
.table-wrap { max-width: 100%; overscroll-behavior-x: contain; }

/* ---- tabel data ---- */
.card.tbl { padding: 6px 0 4px; }
.card.tbl > .card-h { padding: 8px 14px 0; }
.dtable { width: 100%; min-width: 0; }
.dtable td { white-space: normal; vertical-align: middle; }
.dtable td.nw, .dtable th.nw { white-space: nowrap; }
.dtable td:first-child { font-weight: 500; }
.dtable .act { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; transform: none; }
.dtable .act:hover { background: none; transform: none; border-color: transparent; }
.dtable form { display: inline; }
.dtable td.r, .dtable th.r { text-align: right; }
.dtable td.c, .dtable th.c { text-align: center; }
.table-wrap.tight { padding: 4px 10px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.big-token { font: 600 22px/1 var(--mono); letter-spacing: .18em; color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.filters .fld { min-width: 140px; }
.filters .fld input, .filters .fld select { padding: 7px 10px; }
.fld input[type="number"], .fld input[type="date"], .fld input[type="datetime-local"], .fld input[type="time"], .fld input[type="search"], .fld input[type="file"], .fld select:not(.sel) {
  width: 100%; padding: 9px 11px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); color: var(--text); font: 11px/1.4 var(--sans);
}
.fld input[type="file"] { padding: 7px; }
.fld select:not(.sel) option, select option { background: #2a221d; color: var(--text); }
.fld input:disabled { opacity: .6; }
.fld textarea { width: 100%; padding: 9px 11px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); color: var(--text); font: 11px/1.5 var(--sans); }
.form.g3 { grid-template-columns: repeat(3, 1fr); }
.form.g4 { grid-template-columns: repeat(4, 1fr); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; }
.err-list { margin: 0; padding-left: 16px; list-style: disc; }
.kv.wide-k { grid-template-columns: 140px minmax(0, 1fr); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.pages-n { flex-wrap: wrap; }
@media (max-width: 760px) { .kv.wide-k { grid-template-columns: 96px minmax(0, 1fr); } }

/* ---- modal generik (dialog) ---- */
.ov.open { visibility: visible; pointer-events: auto; transition-delay: 0s; z-index: 100; }
.ov.open .ov-bg { opacity: 1; }
.ov.open .modal { opacity: 1; transform: none; filter: none; transition: opacity .35s ease, transform .45s var(--ease), filter .35s ease; }
.ov { z-index: 100; }
.modal .ov-b .form { padding: 2px; }

/* ---- statistik ringkas ---- */
.stat { display: grid; gap: 4px; }
.stat small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.stat .num { font-size: 26px; }
.flash { margin-bottom: 0; }
.pill-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(255,255,255,.12); font-size: 10px; }
.st.g { color: var(--muted); background: rgba(255, 255, 255, .08); }
.st.v { color: var(--violet); background: rgba(176, 140, 255, .18); }
.prog { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; min-width: 70px; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, #6c9bff, var(--green)); }
.timer-cell { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.timer-cell.warn { color: var(--amber); }
.timer-cell.crit { color: var(--rose); }
.chart-h { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 18px 2px 16px; }
.chart-h > div { position: relative; flex: 1; height: var(--h); min-height: 2px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, rgba(157,188,255,.9), rgba(61,123,255,.5)); }
.chart-h > div u { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); text-decoration: none; font-size: 8.5px; color: var(--faint); }
.chart-h > div b { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-size: 8.5px; font-weight: 500; color: var(--muted); }
.doc { font-size: 12px; line-height: 1.7; color: rgba(244,239,233,.88); }
.doc h2 { font: 500 18px var(--serif); margin: 14px 0 6px; }
.doc h3 { font: 600 13px var(--sans); margin: 12px 0 4px; }
.doc ol, .doc ul { padding-left: 18px; list-style: revert; }
.doc code { font-family: var(--mono); font-size: 11px; background: rgba(0,0,0,.3); padding: 1px 5px; border-radius: 5px; }
.doc pre { background: rgba(0,0,0,.35); padding: 10px; border-radius: 10px; overflow-x: auto; font: 10.5px/1.6 var(--mono); }
.doc mark { background: rgba(240,178,74,.35); color: #fff; border-radius: 3px; }
.essay-ans { white-space: pre-wrap; background: rgba(0,0,0,.22); border-radius: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.6; }

/* ---- portal siswa (layar sempit tanpa sidebar) ---- */
/* Sama seperti halaman soal: body.siswa setinggi layar & tidak digulir. Header portal dan judul kartu
   tetap di tempat; yang digulir HANYA isi kartu (.portal-scroll). Footer selalu di dasar layar. */
body.siswa .portal {
  flex: 1 1 0; min-height: 0; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
  width: min(860px, 100% - 2 * var(--edge));
}
body.siswa .portal > * { flex: none; }
.portal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.portal-h .who { padding: 0; min-width: 0; }
.portal-h .pill.on { background: rgba(255, 255, 255, .2); color: #fff; }
body.siswa .portal > .portal-card {
  flex: 1 1 0; min-height: 0;
  display: flex; flex-direction: column; overflow: hidden;
  padding: 20px 22px 0;
}
.portal-card-h {
  flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--hair);
}
.portal-card-h h1 { font-size: 24px; line-height: 1.2; }
.portal-card-h p { margin-top: 3px; font-size: 11.5px; }
.portal-scroll {
  flex: 1 1 0; min-height: 0;
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  margin: 0 -10px; padding: 14px 10px 18px;           /* ruang untuk kilau tepi kartu & cincin fokus */
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.portal-scroll > * { flex: none; }
.portal-scroll::-webkit-scrollbar { width: 6px; }
.portal-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 3px; }
.portal-sub { font: 600 13px var(--sans); margin: 8px 2px 0; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.portal-form { max-width: 420px; }
body.siswa .site-foot { flex: none; }
.ujian-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ujian-item > div:not(.ujian-aksi) { flex: 1; min-width: 160px; }
.ujian-aksi { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ujian-item .ico.lg { flex: none; }
/* halaman login siswa: kartu login di tengah, digulir di dalam bila layar terlalu pendek */
body.siswa .auth-solo { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 760px) {
  body.siswa .portal { width: calc(100% - 20px); gap: 10px; }
  body.siswa .portal > .portal-card { padding: 16px 14px 0; border-radius: 24px; }
  .portal-card-h h1 { font-size: 20px; }
  .portal-h { padding: 10px 12px; border-radius: 22px; }
  .portal-h .tools { gap: 6px; }
  .portal-h .pill { padding: 5px 10px; }
  .ujian-aksi { margin-left: 0; width: 100%; justify-content: flex-end; }
}
.sw-save-st { font-size: 10px; color: var(--faint); }
.sw-save-st.pending { color: var(--amber); }
.sw-save-st.ok { color: var(--green); }
.sw-save-st.err { color: var(--rose); }
body.siswa.fs-1 .sw-card { font-size: 14px; }
body.siswa.fs-2 .sw-card { font-size: 16px; }
body.siswa.fs-3 .sw-card { font-size: 18px; }
body.siswa.kontras { --muted: rgba(255,255,255,.85); --faint: rgba(255,255,255,.7); }
body.siswa.kontras .scene { filter: blur(30px) brightness(.25); }
body.siswa.kontras .sw-card, body.siswa.kontras .glass { background: #000 !important; }
body.siswa.kontras .rich, body.siswa.kontras .qv-opt { color: #fff; }
.sw-tools { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.sw-anti { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .08); }
.sw-anti.warn { color: var(--amber); background: rgba(240, 178, 74, .16); }
.sw-anti.crit { color: var(--rose); background: rgba(255, 125, 143, .18); }
.sw-locked.blokir .modal { border: 1px solid rgba(255, 125, 143, .45); }
.sw-locked.blokir h3 { color: var(--rose); }
.sw-tools button { padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.1); font-size: 11px; }
.sw-locked { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(10,7,5,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 20px; }
.sw-locked .modal { opacity: 1; transform: none; filter: none; }

/* ---- auth ---- */
.auth-solo { display: grid; place-items: center; width: 100%; flex: 1 0 auto; padding: 24px 12px; }
.auth-solo .auth { display: grid; }

/* Form login tanpa warna: panel kiri kaca bening netral (bukan gradasi biru/hijau template),
   tombol & tautan monokrom. Pesan galat tetap berwarna agar mudah dikenali. */
.auth-solo .auth-art, .auth-solo .auth-art.alt {
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(170deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.auth-solo .auth-art h3 { color: var(--text); }
.auth-solo .auth-art small { color: var(--muted); }
.auth-solo .auth-art .brand-m { background: rgba(255, 255, 255, .14); color: #fff; }
.auth-solo .auth-form .btn {
  background: rgba(255, 255, 255, .9); color: #1d1a19;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 22px -8px rgba(0, 0, 0, .55);
}
.auth-solo .auth-form .btn:hover { background: #fff; filter: none; }
.auth-solo .auth-form a { color: var(--muted); }
.auth-solo .auth-form a:hover { color: var(--text); }
.auth-solo .auth-form .fld input:focus { border-color: rgba(255, 255, 255, .45); box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
@media (max-width: 760px) { .auth-solo .auth-art { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); } }

@media (max-width: 760px) {
  /* tabel ringkas di HP: teks boleh turun baris, lencana status tidak memaksa lebar */
  .dtable td.nw { white-space: normal; }
  .dtable td, .dtable th { padding: 7px 5px; }
  .card.tbl > .card-h { flex-wrap: wrap; }
  .form.g3, .form.g4 { grid-template-columns: 1fr; }
  .dtable { font-size: 10.5px; }
}

/* ---- cetak ---- */
@media print {
  body { background: #fff !important; color: #000; padding: 0; }
  .scene, .side, .no-print { display: none !important; }
}
.sw-hasil .st { white-space: normal; }
.portal .sw-hasil { flex-wrap: wrap; }
.portal-h { flex-wrap: wrap; }
.portal .qv-list, .portal .qv { min-width: 0; max-width: 100%; }
/* nama siswa tetap terlihat di header portal walau layar sempit (template menyembunyikan .who > div di mobile) */
.portal-h .who > div { display: block !important; min-width: 0; }
.portal-h .who strong { white-space: normal; }

/* ---- halaman konfirmasi & token ---- */
.konf-h { display: flex; gap: 14px; align-items: flex-start; justify-content: flex-start; flex-wrap: nowrap; }
.konf-h .ico.lg { flex: none; }
.konf-h h1 { font-size: 24px; line-height: 1.2; margin: 2px 0 4px; }
.konf-k { display: block; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.konf-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.konf-t { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.konf-data, .konf-token { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.konf-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 10px; }
.konf-dl > div { min-width: 0; }
.konf-dl dt { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.konf-dl dd { font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.konf-dl > div:first-child { grid-column: 1 / -1; }
.konf-dl > div:first-child dd { font-size: 15px; }
.token-in {
  width: 100%; margin: 10px 0 4px; padding: 14px 10px; border-radius: 16px;
  background: rgba(0, 0, 0, .28); border: 1.5px solid var(--line); color: #fff;
  font: 600 28px/1 var(--mono); letter-spacing: .42em; text-indent: .42em; text-align: center; text-transform: uppercase;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.token-in::placeholder { color: rgba(255, 255, 255, .18); letter-spacing: .42em; }
.token-in:focus { outline: none; border-color: rgba(157, 188, 255, .7); background: rgba(0, 0, 0, .36); box-shadow: 0 0 0 4px rgba(61, 123, 255, .2); }
.konf-token .btn.block { margin-top: 6px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.konf-err { margin-top: 4px; }
.konf-ttd { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; -webkit-user-select: none; user-select: none; }
.konf-ttd-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.konf-ttd-h .btn { gap: 4px; }
.ttd-pad { position: relative; margin-top: 4px; border-radius: 14px; background: #fff; border: 2px dashed rgba(96, 165, 250, .7); overflow: hidden; }
.ttd-pad canvas { display: block; width: 100%; height: 150px; touch-action: none; cursor: crosshair; }
.ttd-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: #94a3b8; pointer-events: none; }
.ttd-ph[hidden] { display: none; }
.konf-tanpa { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 4px; padding: 16px 10px; border-radius: 16px;
  border: 1.5px dashed rgba(62, 207, 154, .45); background: rgba(62, 207, 154, .08); color: var(--green); font-weight: 600; font-size: 13px; }
.konf-tanpa svg { width: 18px; height: 18px; }
.konf-note { display: flex; gap: 7px; align-items: flex-start; margin-top: auto; padding-top: 10px; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.konf-note svg { flex: none; margin-top: 2px; opacity: .7; }
.konf-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; font-size: 11.5px; color: var(--muted); text-decoration: none; padding: 4px 2px; }
.konf-back:hover { color: var(--text); }
.konf-back svg { width: 14px; height: 14px; }
@media (max-width: 700px) {
  .konf-grid { grid-template-columns: 1fr; }
  .konf-token { order: -1; }                 /* token di atas: langsung bisa diisi tanpa menggulir */
  .konf-h h1 { font-size: 20px; }
  .token-in { font-size: 24px; }
}

/* ---- pilihan token ujian (form ujian admin) ---- */
.token-pilih { grid-template-columns: 1fr 1fr; margin-bottom: 8px; }
.token-pilih .plan b { font-size: 13px; color: var(--text); padding-right: 26px; }
.token-pilih .pr-s { font-size: 11.5px; line-height: 1.45; color: rgba(244, 239, 233, .85); }
.token-pilih .plan > small { color: var(--faint); margin-top: 4px; }
@media (max-width: 760px) { .token-pilih { grid-template-columns: 1fr; } }

/* ---- soal Benar / Salah: gaya pilihan seperti pilihan ganda ---- */
.qv-bsw2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qv-bs2 { align-items: center; padding: 12px 14px; }
.qv-bs2 .qv-letter { width: 30px; height: 30px; }
.qv-bs2 .qv-letter svg { width: 15px; height: 15px; stroke-width: 2.4; }
.qv-bs-t { font-size: 13.5px; font-weight: 600; }
.qv-bs2:has(input:checked) .qv-bs-t { color: #fff; }
.qv .qv-bs2.is-key { background: rgba(62, 207, 154, .14); border-color: rgba(62, 207, 154, .6); }
.qv .qv-bs2.is-wrong { background: rgba(255, 125, 143, .12); border-color: rgba(255, 125, 143, .55); }
@media (max-width: 360px) { .qv-bsw2 { grid-template-columns: 1fr; } }

/* ---- pilihan ganda kompleks (MCMA): kotak centang — huruf berbentuk kotak, beda dari bulatan PG biasa ---- */
.qv-pgk .qv-letter, .bs-opsi-pgk .bs-key span { border-radius: 8px; }
.qv-pgk .qv-letter { position: relative; }
.qv-pgk .qv-opt:has(input:checked) .qv-letter::after { content: '✓'; position: absolute; right: -6px; bottom: -6px; width: 15px; height: 15px; display: grid; place-items: center;
  border-radius: 50%; font-size: 9px; line-height: 1; background: var(--green, #3ecf9a); color: #0f2a1f; box-shadow: 0 0 0 2px rgba(15, 18, 28, .85); }
.qv-pgk-info { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 0 10px; padding: 9px 12px;
  border-radius: 12px; border: 1px solid rgba(240, 178, 74, .55); background: rgba(240, 178, 74, .13); }
.qv-pgk-info > div > b { display: block; font-size: 12.5px; color: #ffd58a; }
.qv-pgk-info small b { color: #ffd58a; }
.qv-pgk-info small { display: block; font-size: 11px; color: var(--text); opacity: .85; }
.qv-pgk-ic svg { width: 22px; height: 22px; fill: none; stroke: #ffd58a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.qv-pgk-n { font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: rgba(240, 178, 74, .22); color: #ffd58a; }
.chip.chip-pgk { background: rgba(240, 178, 74, .22); border-color: rgba(240, 178, 74, .55); color: #ffd58a; }
body.siswa.kontras .qv-pgk-info b, body.siswa.kontras .qv-pgk-n, body.siswa.kontras .chip.chip-pgk { color: #fff; }
.qv-pgk .qv-opt .qv-key { grid-column: 2; margin-top: 0; color: var(--amber, #f0b24a); }
.bs-opsi-pgk + .bs-row { margin-top: 6px; }
.bs-pgk-skor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.bs-pgk-n { font-size: 11px; color: var(--muted); }
.bs-pgk-n.ok { color: var(--green); }
.bs-tag.t-pgk { background: rgba(46, 197, 217, .45); }
.bs-tag.t-urut { background: rgba(163, 214, 92, .42); }

/* ---- soal mengurutkan ---- */
.bs-urut { display: grid; gap: 6px; }
.bs-urut > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: start; gap: 8px; }
.bs-urut-btn { display: flex; gap: 2px; }
.bs-geser { font-size: 11px; color: var(--muted); }
.bs-geser:hover:not(:disabled) { background: rgba(255, 255, 255, .1); color: var(--text); }
.bs-geser:disabled { opacity: .25; cursor: default; }
.bs-urut.bs-err { border: 1px solid; border-radius: 12px; padding: 6px; }
.qv-urut { display: grid; gap: 7px; counter-reset: none; }
.qv-urut li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px 9px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); transition: background .2s, border-color .2s, transform .15s; }
.qv-urut li .rich { font-size: 12.5px; }
.qv-urut-btn { display: flex; gap: 6px; }
.qv-urut-btn button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: var(--text); transition: background .15s; }
.qv-urut-btn button:hover:not(:disabled) { background: rgba(255, 255, 255, .18); }
.qv-urut-btn button:disabled { opacity: .25; cursor: default; }
.qv-urut li.is-key { border-color: rgba(62, 207, 154, .55); background: rgba(62, 207, 154, .08); }
.qv-urut li.is-wrong { border-color: rgba(255, 125, 143, .5); background: rgba(255, 125, 143, .07); }
.qv-urut li .qv-key { margin: 0; white-space: nowrap; }
.qv-urut-ok { margin-top: 8px; }

/* ---- soal menjodohkan: pilihan lebar, isi teks terlihat, pilihan terpakai ditandai ---- */
.qv-hint { font-size: 11px; color: var(--muted); margin: 0 0 8px; }
.qv-left li { grid-template-columns: auto minmax(0, 1fr); }
.qv-left li .qv-pick { grid-column: 1 / -1; width: 100%; font-size: 12px; padding: 9px 30px 9px 11px; }
.qv-left li .qv-pick.is-set { border-color: rgba(157, 188, 255, .6); background-color: rgba(61, 123, 255, .14); }
.qv-pick option:disabled { color: rgba(244, 239, 233, .35); }
.qv-right li { grid-template-columns: auto minmax(0, 1fr) auto; transition: opacity .2s; }
.qv-right li.is-used { opacity: .5; }
.qv-used { font-size: 10px; font-weight: 600; color: var(--blue-l); white-space: nowrap; align-self: center; }

/* ---- menjodohkan dengan garis: klik kiri → klik kanan, tiap pasangan berwarna ---- */
.qv-match.qv-wire { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(34px, 9vw, 84px); }
.qv-wire .qv-left, .qv-wire .qv-right { position: relative; z-index: 2; gap: 9px; }
.qv-wires { position: absolute; left: 0; top: 0; z-index: 1; overflow: visible; pointer-events: none; }
.qv-wire-l { fill: none; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .35)); }
.qv-wire-l.baru { animation: qv-wire-in .35s ease-out; }
.qv-wire-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
.qv-wire-g:hover .qv-wire-l { stroke-width: 4.5; stroke-dasharray: 7 5; }
.qv-wire-g.no .qv-wire-l { stroke-dasharray: 6 5; opacity: .75; }
.qv-wire-pv { fill: none; stroke-width: 2.5; stroke-dasharray: 5 6; stroke-linecap: round; opacity: .8; pointer-events: none; }
@keyframes qv-wire-in { from { stroke-dasharray: 600; stroke-dashoffset: 600; } to { stroke-dasharray: 600; stroke-dashoffset: 0; } }

.qv-wire .qv-node { position: relative; display: grid; align-items: center; gap: 8px; padding: 10px; border-radius: 12px;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, .04); transition: border-color .18s, background .18s, box-shadow .18s, transform .12s;
  -webkit-tap-highlight-color: transparent; user-select: none; }
.qv-wire .qv-left .qv-node { grid-template-columns: auto minmax(0, 1fr); }
.qv-wire .qv-right .qv-node { grid-template-columns: auto minmax(0, 1fr); }
.qv-wire:not(.is-lock) .qv-node { cursor: pointer; }
.qv-wire:not(.is-lock) .qv-node:hover { background: rgba(255, 255, 255, .08); }
.qv-wire .qv-node:active { transform: scale(.985); }
.qv-wire .qv-node:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 2px; }
.qv-wire .qv-node.is-set { border-color: var(--wc); background: color-mix(in srgb, var(--wc) 13%, transparent); }
.qv-wire .qv-node.is-on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22), 0 0 18px rgba(157, 188, 255, .35); background: rgba(255, 255, 255, .1); }
.qv-wire .qv-node.is-set .qv-no, .qv-wire .qv-node.is-set .qv-letter { background: var(--wc); color: #10131c; border-color: transparent; }
.qv-wire .rich { font-size: 12.5px; padding-top: 0; }
.qv-wire .qv-right .qv-letter { width: 24px; height: 24px; font-size: 10.5px; }

/* titik sambung di tepi dalam tiap kotak */
.qv-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: #1b1f2b; border: 2px solid rgba(255, 255, 255, .45); transition: background .18s, border-color .18s, transform .18s; }
.qv-left .qv-dot { right: -7px; }
.qv-right .qv-dot { left: -7px; }
.qv-node.is-set .qv-dot { background: var(--wc); border-color: var(--wc); }
.qv-node.is-on .qv-dot { background: #fff; border-color: #fff; transform: scale(1.25); }

/* mode hasil */
.qv-wire .qv-left .qv-node.is-key { border-color: rgba(62, 207, 154, .7); }
.qv-wire .qv-left .qv-node.is-wrong { border-color: rgba(255, 125, 143, .7); background: rgba(255, 125, 143, .08); }
.qv-wire .qv-left .qv-node .qv-key { grid-column: 2; margin: 0; }

@media (max-width: 760px) {
  .qv-match.qv-wire { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 30px; }
  .qv-wire .qv-node { padding: 8px; gap: 6px; }
  .qv-wire .rich { font-size: 12px; }
}

/* ---- AI Generator Soal ---- */
.ai-form, .ai-atur { max-width: 900px; margin-bottom: 14px; }
.ai-aksi { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-aksi .btn .spin { margin-right: 6px; }
.ai-ok { color: var(--green); font-size: 11px; }
.ai-err { color: var(--rose); font-size: 11px; }
.ai-hasil { display: grid; gap: 12px; max-width: 900px; margin-bottom: 14px; }
.ai-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; top: 0; z-index: 3; }
.ai-bar .opt { padding: 0; }
.ai-bar-r { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.ai-bar-r .sel { width: auto; }
.ai-list { display: grid; gap: 12px; }
.ai-item { display: grid; gap: 8px; transition: opacity .2s; }
.ai-item.off { opacity: .45; }
.ai-pilih { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; cursor: pointer; justify-self: start; }
.ai-masalah { font-size: 11px; }
.ai-guru { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; max-height: 260px; overflow: auto; padding: 4px 2px; }
.ai-guru .opt small, .ai-atur .opt small { display: block; color: var(--muted); font-size: 10px; }
.ai-semua-guru { font-weight: 600; }
@media (max-width: 760px) { .ai-bar-r { margin-left: 0; width: 100%; } .ai-bar-r .sel, .ai-bar-r .btn { flex: 1; } }

/* ---- Tes Beban Server ---- */
.beban { display: grid; gap: 14px; }
.beban-form { max-width: 900px; }
.beban-aksi { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#bb-hasil { display: grid; gap: 14px; }
#bb-hasil[hidden] { display: none; }
.beban-prog { display: grid; gap: 8px; }
.beban-prog-h { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; flex-wrap: wrap; }
.beban-prog .meter { height: 6px; }
.beban-prog .meter i { transition: width .45s linear; }
.chart-h.lat > div { background: linear-gradient(180deg, rgba(240, 178, 74, .95), rgba(240, 178, 74, .45)); }
.stat .num.bb-buruk { color: var(--rose); }
.beban-vonis { line-height: 1.6; }
.beban-vonis b { font-size: 12px; }
.beban-cat { margin: 0; max-width: 900px; }

.ai-campur-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ai-campur-i { display: grid; gap: 4px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.ai-campur-i span { font-size: 10.5px; color: var(--muted); }
.ai-campur-i input { width: 100%; }
.ai-campur [hidden], .ai-form [hidden] { display: none !important; }

/* tombol hapus di daftar ujian (Super Admin) */
.ujian-hapus { display: inline; margin: 0; }

/* modal konfirmasi global */
#ov-konfirmasi { z-index: 200; }
#ov-konfirmasi #kf-teks { white-space: pre-line; }
#ov-konfirmasi .ov-f .btn:not(.rose) { min-width: 120px; }

/* ---- Benar/Salah gaya AKM: tabel pernyataan × kategori ---- */
.qv-bst-w { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.qv-bst { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.qv-bst th { padding: 9px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-align: left; background: rgba(255, 255, 255, .05); border-bottom: 1px solid var(--line); }
.qv-bst td { padding: 9px 10px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.qv-bst tr:last-child td { border-bottom: 0; }
.qv-bst .qv-bs-no { width: 34px; text-align: center; color: var(--faint); font-weight: 600; }
.qv-bst .qv-bsh, .qv-bst .qv-bsc { width: 78px; text-align: center; }
.qv-bst td.rich { font-size: 12.5px; }
.qv-bsr { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qv-bsr input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.qv-bsr span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .04); transition: background .15s, border-color .15s, color .15s, transform .1s; }
.qv-bsr:hover span { border-color: rgba(157, 188, 255, .6); }
.qv-bsr input:checked + span { background: var(--blue); border-color: transparent; color: #fff; box-shadow: 0 0 0 4px rgba(61, 123, 255, .2); }
.qv-bsr input:focus-visible + span { outline: 2px solid var(--blue-l); outline-offset: 2px; }
.qv-bsr input:disabled { cursor: default; }
.qv-bst tbody tr:has(input:checked) td:first-child { color: var(--blue-l); }
/* mode hasil */
.qv-bst tr.is-key td { background: rgba(62, 207, 154, .06); }
.qv-bst tr.is-wrong td { background: rgba(255, 125, 143, .06); }
.qv-bst .qv-bsc.is-key .qv-bsr span { border-color: var(--green); color: var(--green); }
.qv-bst .qv-bsc.is-key .qv-bsr input:checked + span { background: var(--green); color: #0f2a1f; box-shadow: none; }
.qv-bst .qv-bsc.is-wrong .qv-bsr input:checked + span { background: var(--rose); color: #fff; box-shadow: none; }
@media (max-width: 560px) {
  .qv-bst .qv-bsh, .qv-bst .qv-bsc { width: 56px; padding-left: 4px; padding-right: 4px; }
  .qv-bst .qv-bs-no { width: 26px; padding-left: 4px; padding-right: 2px; }
  .qv-bst th { font-size: 9.5px; }
}

/* editor Bank Soal: daftar pernyataan Benar/Salah */
.bs-pern { display: grid; gap: 6px; }
.bs-pern > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: start; gap: 8px; }
.bs-pern .bs-pn { margin-top: 10px; }
.bs-pern-k { display: inline-flex; gap: 4px; margin-top: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.bs-pern-k label { position: relative; cursor: pointer; }
.bs-pern-k input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bs-pern-k span { display: block; padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.bs-pern-k input:checked + span { background: var(--green); color: #0f2a1f; }
.bs-pern-k input[value="false"]:checked + span { background: var(--rose); color: #fff; }
.bs-pern-k input:focus-visible + span { outline: 2px solid var(--blue-l); outline-offset: 2px; }
.bs-pern.bs-err { border: 1px solid; border-radius: 12px; padding: 6px; }
.bs-label-pilih { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 8px; font-size: 11px; color: var(--muted); }
.bs-label-pilih .sel { width: auto; }
@media (max-width: 760px) {
  .bs-pern > li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bs-pern > li .bs-pern-k { grid-column: 2 / 3; grid-row: 2; justify-self: start; margin-top: 0; }
}

/* ---- Editor Bank Soal: toolbar menempel di desktop & HP. Di HP tombol utama = 1 baris yang bisa digeser ---- */
.rte-row { display: contents; }
/* kolom editor tidak boleh melar mengikuti isi terlebar (di HP isi editor sempat lebih lebar dari layar & terpotong) */
.bs-editor { grid-template-columns: minmax(0, 1fr); }
.bs-editor > * { min-width: 0; }
.rte-row > .tb-g:last-child { border-right: 0; }
@media (max-width: 760px) {
  .rte-bar { position: sticky; top: -2px; padding: 5px; gap: 4px; border-radius: 12px; }
  .rte-row {
    display: flex; flex: 1 1 100%; min-width: 0; align-items: center; gap: 2px;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    /* petunjuk bisa digeser: tepi kanan memudar */
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  }
  .rte-row::-webkit-scrollbar { display: none; }
  .rte-row > .tb-g { flex: none; }
  .rte-bar .tb, .rte-bar .tb-sel { height: 32px; }
  .rte-bar .tb { min-width: 32px; }
  /* baris tabel (saat kursor di tabel) jadi baris kedua yang juga bisa digeser */
  .rte-bar .tb-ctx { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rte-bar .tb-ctx::-webkit-scrollbar { display: none; }
  .rte-bar .tb-ctx > * { flex: none; }
}

/* ---- Gambar di soal & jawaban ---- */
/* "100%" = ukuran asli, maksimal selebar kotak (gambar kecil tidak diperbesar & buram) */
:is(.rte, .rich) img[data-w="100"], :is(.rte, .rich) img:not([data-w]) { width: auto; max-width: 100%; }
/* kolom jawaban (opsi, pernyataan B/S, menjodohkan, mengurutkan) sempit: tinggi dibatasi, proporsi tetap;
   pilihan ukuran 25/50/75% menjadi batas lebar */
:is(.qv-opts, .qv-bst, .qv-match, .qv-urut, #bs-jawab) :is(.rich, .rte) img { width: auto; height: auto; max-width: 100%; max-height: 240px; }
:is(.qv-opts, .qv-bst, .qv-match, .qv-urut, #bs-jawab) :is(.rich, .rte) img[data-w="25"] { max-width: 25%; }
:is(.qv-opts, .qv-bst, .qv-match, .qv-urut, #bs-jawab) :is(.rich, .rte) img[data-w="50"] { max-width: 50%; }
:is(.qv-opts, .qv-bst, .qv-match, .qv-urut, #bs-jawab) :is(.rich, .rte) img[data-w="75"] { max-width: 75%; }
/* tabel Benar/Salah: lebar kolom tetap → gambar/teks panjang tidak mendorong kolom pilihan keluar layar */
.qv-bst { table-layout: fixed; }
.qv-bst td.rich { overflow-wrap: anywhere; }
@media (max-width: 560px) { :is(.qv-opts, .qv-bst, .qv-match, .qv-urut) .rich img { max-height: 180px; } }
/* kartu soal (siswa, pratinjau, hasil): kolom tidak boleh melar mengikuti isi terlebar (gambar/tabel) → tidak terpotong di HP */
.qv { grid-template-columns: minmax(0, 1fr); }
.qv > * { min-width: 0; }
/* tabel Benar/Salah siswa tidak ikut aturan min-width 620px milik tabel data admin (style.css: table { min-width }) */
.qv-bst { min-width: 0; }
/* sel tabel Benar/Salah: teks pernyataan membungkus normal (aturan global td { white-space: nowrap } untuk tabel data admin
   membuat pernyataan panjang jadi satu baris yang tergulir di dalam sel sehingga tidak terbaca) */
.qv-bst td, .qv-bst th { white-space: normal; }
.qv-bst td.rich { overflow-x: visible; overflow-wrap: anywhere; word-break: normal; line-height: 1.55; }
.qv-bst td.rich > :first-child { margin-top: 0; }
.qv-bst td.rich > :last-child { margin-bottom: 0; }

/* AI: dropdown model */
.ai-model select, .ai-model input { width: 100%; }
.ai-model input { margin-top: 6px; }
.ai-model small { display: block; margin-top: 4px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; }
.linkbtn:disabled { opacity: .5; cursor: wait; }

/* AI: pemilik soal (Super Admin) */
.ai-pemilik { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.ai-pemilik .sel { width: auto; max-width: 260px; }
@media (max-width: 760px) { .ai-pemilik { width: 100%; } .ai-pemilik .sel { flex: 1; max-width: none; } }

/* foto siswa (2x3) */
.foto-s { display: inline-block; width: 28px; height: 42px; object-fit: cover; border-radius: 4px; vertical-align: middle; background: var(--line); }
.foto-s.kosong { opacity: .5; }
.foto-in { display: flex; gap: 12px; align-items: flex-start; }
.foto-in > div { display: grid; gap: 6px; min-width: 0; flex: 1; }
.foto-p { flex: none; width: 80px; height: 120px; border-radius: 6px; border: 1px dashed var(--line); overflow: hidden; }
.foto-p img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
