/* Halaman post test mahasiswa (posttest.php) & layar sesi asisten */
.ptx-wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 14px; min-height: 100vh; }
.ptx-top { display: flex; align-items: center; gap: 12px; }
.ptx-top b { display: block; font-size: 16px; line-height: 1.25; }
.ptx-card { background: #fff; border: 1px solid #dce6fa; border-radius: 24px; padding: 22px; box-shadow: 0 24px 48px -28px rgb(15 30 61 / .45), inset 0 -4px 0 #eef3fd; display: flex; flex-direction: column; gap: 12px; }
.ptx-card h1 { font-size: 22px; font-weight: 800; }
.ptx-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ptx-card.warn { border-color: #fbe2a8; box-shadow: 0 24px 48px -28px rgb(138 83 0 / .5), inset 0 -4px 0 #fff1d6; }
.ptx-ikon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 12px 22px -10px rgb(31 98 214 / .7); }
.ptx-kode { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ptx-kode label { font-size: 13px; font-weight: 700; }
.ptx-kode div { display: flex; gap: 8px; }
.ptx-kode input { flex: 1; min-width: 0; min-height: 52px; border-radius: 14px; border: 1px solid #d5e2fb; background: #f8faff; font: 600 24px var(--mono); letter-spacing: .3em; text-align: center; color: var(--ink); }
.ptx-kode .lg-btn { padding: 0 20px; }
.ptx-link, .ptx-link-btn { align-self: center; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 8px; font-family: var(--font); }
.ptx-kecil { font-size: 12.5px !important; color: var(--muted); text-align: center; margin: 0; }
.ptx-siapa { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 16px; background: #eef4ff; border: 1px solid #d5e2fb; }
.ptx-siapa b { font-size: 20px; }
.ptx-siapa span { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.ptx-aturan { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink); display: grid; gap: 6px; }
.ptx-info { padding: 10px 12px; border-radius: 12px; background: #eef4ff; color: #1a4fb0 !important; }
.ptx-info.warn { background: #fff1d6; color: #8a5300 !important; }
/* ujian */
.ptx-ujian { display: flex; flex-direction: column; gap: 12px; }
.ptx-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid #dce6fa; box-shadow: var(--shadow); }
.ptx-bar b { display: block; font-size: 16px; }
.ptx-bar small { color: var(--muted); font-size: 12.5px; }
.ptx-ring { position: relative; width: 56px; height: 56px; flex: none; }
.ptx-ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.ptx-ring circle { fill: none; stroke-width: 4; stroke: #e7eefb; }
.ptx-ring circle + circle { stroke: #1f62d6; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.ptx-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 17px var(--mono); color: #1f62d6; }
.ptx-ring.mepet circle + circle { stroke: #c62f24; }
.ptx-ring.mepet span { color: #c62f24; }
.ptx-prog { height: 6px; border-radius: 999px; background: #e7eefb; overflow: hidden; }
.ptx-prog i { display: block; height: 100%; background: var(--grad); transition: width .3s; }
.ptx-soal { display: flex; flex-direction: column; gap: 10px; }
.ptx-q { font-size: 17px; font-weight: 700; line-height: 1.45; padding: 4px 2px 6px; white-space: pre-line; }
.ptx-opsi { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 16px; border: 1.5px solid #dce6fa; background: #fff; font: 500 15.5px/1.4 var(--font); color: var(--ink); cursor: pointer; }
.ptx-opsi .ptx-h { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; border: 1.5px solid #cfdcef; font-weight: 800; color: var(--muted); }
.ptx-opsi[aria-pressed="true"] { border-color: #1f62d6; background: #eef4ff; box-shadow: 0 8px 16px -10px rgb(31 98 214 / .6); }
.ptx-opsi[aria-pressed="true"] .ptx-h { background: #1f62d6; border-color: #1f62d6; color: #fff; }
.ptx-next { width: 100%; }
.ptx-next:disabled { opacity: .45; cursor: not-allowed; }
.ptx-layar { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgb(15 31 58 / .55); backdrop-filter: blur(6px); }
.ptx-layar[hidden] { display: none; }
.ptx-layar .ptx-card { max-width: 440px; width: 100%; }
body.ptx .pt-skor { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
body.ptx .pt-skor span { font-size: 13px; font-weight: 700; color: var(--muted); }
body.ptx .pt-skor b { font-size: 56px; font-weight: 800; color: #1f62d6; line-height: 1.1; }
body.ptx .pt-skor small { color: var(--muted); }
:fullscreen body, :fullscreen { background: #f3f7fe; }

/* ---------- Layar sesi asisten ---------- */
.ss-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.ss-qr { background: #fff; border: 1px solid #dce6fa; border-radius: 24px; padding: 20px; text-align: center; box-shadow: var(--ljr-shadow, none); position: sticky; top: 16px; }
.ss-qr .ss-img { width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.ss-qr .ss-img svg { width: 100%; height: 100%; }
.ss-kode { font: 700 34px var(--font-mono, monospace); letter-spacing: .25em; margin: 8px 0 2px; color: #0f1f3a; }
.ss-bar { height: 6px; border-radius: 999px; background: #e7eefb; overflow: hidden; margin: 8px auto 0; max-width: 360px; }
.ss-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6aa8f5, #1f62d6); }
.ss-ket { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
.ss-angka { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ss-angka div { background: #fff; border: 1px solid #e2eaf6; border-radius: 14px; padding: 10px; text-align: center; }
.ss-angka b { display: block; font-size: 22px; }
.ss-angka span { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.ss-list { display: grid; gap: 8px; }
.ss-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid #e2eaf6; border-radius: 14px; }
.ss-row .ss-nm { flex: 1; min-width: 0; }
.ss-row .ss-nm b { display: block; font-size: 14px; }
.ss-row .ss-nm small { color: var(--text-muted); font-size: 12px; }
.ss-st { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; background: #eef2f7; color: #475569; }
.ss-st.mengerjakan { background: #e0edff; color: #1a4fb0; } .ss-st.selesai { background: #dcfce7; color: #166534; }
.ss-st.keluar, .ss-st.dikeluarkan { background: #fde6e3; color: #a1271d; } .ss-st.warn { background: #fff1d6; color: #8a5300; }
.ss-row button { border: 1px solid #d5e2fb; background: #fff; border-radius: 10px; padding: 6px 10px; font: 600 12.5px var(--font-body, sans-serif); cursor: pointer; color: #1f62d6; }
.ss-row button.del { color: #c62f24; border-color: #f3c6c1; }
.ss-tutup { margin-top: 12px; }
@media (max-width: 900px) { .ss-grid { grid-template-columns: minmax(0, 1fr); } .ss-qr { position: static; } .ss-angka { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#ssTutup { background: #c62f24 !important; box-shadow: none !important; } #ssTutup:disabled { opacity: .5; }
.ss-kel { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-kel[hidden] { display: none; }
.ss-cek { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px !important; padding: 8px 12px; border: 1px solid #d5e2fb; border-radius: 12px; background: #fff; font-size: 13.5px !important; color: var(--text-dark, #0f1f3a) !important; cursor: pointer; }
.ss-cek input { width: 18px; height: 18px; min-height: 0; margin: 0; }
.ss-cek small { color: var(--text-muted); }

/* ---------- Portal praktikan ---------- */
.nv-huruf { display: inline-grid; place-items: center; min-width: 36px; height: 30px; padding: 0 6px; border-radius: 9px; font-weight: 800; font-size: 14px; background: #eef2f7; color: #475569; }
.nv-huruf.h-A { background: #dcfce7; color: #166534; } .nv-huruf.h-B { background: #e0edff; color: #1a4fb0; } .nv-huruf.h-C { background: #fff1d6; color: #8a5300; } .nv-huruf.h-D, .nv-huruf.h-E { background: #fde6e3; color: #a1271d; }
.ns-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ns-mk { display: block; font-size: 18px; font-weight: 800; }
.ns-head small { color: var(--text-muted); }
.ns-akhir { display: flex; align-items: center; gap: 10px; }
.ns-akhir b { font-size: 34px; font-weight: 800; color: #1f62d6; }
.ns-komp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ns-komp > div { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 12px 12px 16px; border-radius: 14px; background: #f5f8fe; border: 1px solid #e2eaf6; min-width: 0; }
.ns-komp span { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.ns-komp b { font-size: 24px; font-weight: 800; }
.ns-komp small { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.ns-komp i { position: absolute; left: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #6aa8f5, #1f62d6); }
.ns-note { font-size: 12px; color: var(--text-muted); margin: 10px 0 0; }
@media (max-width: 760px) { .ns-komp { grid-template-columns: minmax(0, 1fr); } }
.ptx-out { border: 1px solid #d5e2fb; background: #fff; border-radius: 12px; min-height: 40px; padding: 0 14px; font: 600 13.5px var(--font); color: var(--muted); cursor: pointer; }
.ptx-hai { display: flex; flex-direction: column; padding: 4px 4px 0; }
.ptx-hai span { font-size: 13px; color: var(--muted); font-weight: 600; }
.ptx-hai b { font-size: 24px; font-weight: 800; line-height: 1.2; }
.ptx-hai small { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.ptx-menu { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 22px; background: #fff; border: 1px solid #dce6fa; box-shadow: 0 20px 40px -26px rgb(15 30 61 / .5), inset 0 -4px 0 #eef3fd; color: var(--ink); text-decoration: none; }
.ptx-menu b { display: block; font-size: 19px; font-weight: 800; }
.ptx-menu small { color: var(--muted); font-size: 13.5px; }
.ptx-menu:active { transform: scale(.99); }
.ptx-menu.alt .ptx-ikon { background: linear-gradient(145deg, #fbbf24, #c26a06); box-shadow: 0 12px 22px -10px rgb(194 106 6 / .7); }
.ptx-menu .ptx-ikon { flex: none; }
.ptx-kamera { position: relative; border-radius: 20px; overflow: hidden; background: #0f1f3a; aspect-ratio: 1; width: 100%; }
.ptx-kamera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptx-bingkai { position: absolute; inset: 14%; border: 3px solid rgb(255 255 255 / .9); border-radius: 18px; box-shadow: 0 0 0 999px rgb(15 31 58 / .35); }
.ptx-kamera-ket { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px rgb(0 0 0 / .6); }
.ptx-kamera.ok .ptx-bingkai { border-color: #86efac; }
.ptx-foto { font-size: 13px; color: var(--muted); text-align: center; cursor: pointer; }
.ptx-foto span { color: var(--blue); font-weight: 700; text-decoration: underline; }
.ptx-foto input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ptx-btn-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
