/* Ruang Belajar TKR: tampilan hitam putih, huruf Times New Roman */
@font-face { font-family: 'TNR'; font-style: normal; font-weight: 400; font-display: swap;
  src: local('Times New Roman'), local('TimesNewRomanPSMT'), url(font/LiberationSerif-Regular.woff) format('woff'); }
@font-face { font-family: 'TNR'; font-style: normal; font-weight: 700; font-display: swap;
  src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), url(font/LiberationSerif-Bold.woff) format('woff'); }
@font-face { font-family: 'TNR'; font-style: italic; font-weight: 400; font-display: swap;
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), url(font/LiberationSerif-Italic.woff) format('woff'); }
@font-face { font-family: 'TNR'; font-style: italic; font-weight: 700; font-display: swap;
  src: local('Times New Roman Bold Italic'), local('TimesNewRomanPS-BoldItalicMT'), url(font/LiberationSerif-BoldItalic.woff) format('woff'); }

:root { --h: #000; --p: #fff; --a1: #f3f3f3; --a2: #e4e4e4; --a3: #bdbdbd; --a4: #6b6b6b; --r: 8px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--a1); color: var(--h); font-family: 'Times New Roman', 'TNR', Times, serif; font-size: 18px; line-height: 1.5; }
a { color: inherit; }
img, svg { vertical-align: middle; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
small, .kecil { font-size: .85em; }
.redup { color: var(--a4); }
.tengah { text-align: center; }
.lompat { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 99; }
.lompat:focus { left: 8px; }
mark { background: #000; color: #fff; padding: 0 2px; }
:focus-visible { outline: 3px solid #000; outline-offset: 2px; }

/* ---------- atas */
.atas { background: #000; color: #fff; position: sticky; top: 0; z-index: 30; }
.atas-dalam { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 16px; min-height: 58px; }
.merek { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.merek .logo { width: 38px; height: 38px; border: 2px solid #fff; border-radius: 8px; display: grid; place-items: center; flex: none; }
.merek-teks { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.merek-teks b { font-size: 1.05rem; white-space: nowrap; }
.merek-teks small { font-size: .78rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-atas { display: none; gap: 4px; margin-left: 12px; }
.menu-atas a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 6px; display: flex; gap: 6px; align-items: center; }
.menu-atas a:hover { background: #222; }
.menu-atas a.aktif { background: #fff; color: #000; font-weight: bold; }
.atas-kanan { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid currentColor; border-radius: 99px; padding: 2px 10px; font-size: .9rem; white-space: nowrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-weight: bold; text-decoration: none; font-size: .95rem; flex: none; }
.avatar.besar { width: 72px; height: 72px; font-size: 1.6rem; background: #000; color: #fff; }

/* ---------- menu bawah (ponsel) */
.menu-bawah { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 2px solid #000; display: flex; z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.menu-bawah a { flex: 1; text-decoration: none; display: flex; flex-direction: column; align-items: center; padding: 6px 0 5px; font-size: .75rem; gap: 1px; }
.menu-bawah a.aktif { background: #000; color: #fff; font-weight: bold; }
body:has(.menu-bawah) .kaki { padding-bottom: 86px; }
@media (min-width: 900px) {
  .menu-atas { display: flex; }
  .menu-bawah { display: none; }
  body:has(.menu-bawah) .kaki { padding-bottom: 20px; }
}

/* ---------- isi */
.isi { max-width: 1180px; margin: 0 auto; padding: 18px 14px 30px; min-height: 60vh; }
.kaki { text-align: center; font-size: .82rem; color: var(--a4); padding: 20px 14px; border-top: 1px solid var(--a2); background: #fff; }
.kartu { background: #fff; border: 1.5px solid #000; border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.kartu.sempit { max-width: 480px; margin-left: auto; margin-right: auto; }
.kartu.hitam { background: #000; color: #fff; }
.kartu.hitam .batang { border-color: #fff; background: #333; }
.kartu.hitam .batang span { background: #fff; }
.kartu.garis { border-style: dashed; }
.kartu-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.kartu-t h2, .kartu-t h3 { margin: 0; }
.kisi { display: grid; gap: 14px; }
@media (min-width: 640px) { .kisi.dua { grid-template-columns: 1fr 1fr; } .kisi.tiga { grid-template-columns: repeat(3, 1fr); } .kisi.empat { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .kisi.empat { grid-template-columns: repeat(4, 1fr); } .kisi.utama { grid-template-columns: 2fr 1fr; } }
.kisi > .kartu { margin-bottom: 0; }
.jarak { height: 16px; }

/* ---------- tombol & formulir */
.tombol { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #000; color: #fff; border: 2px solid #000; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: bold; text-decoration: none; cursor: pointer; min-height: 46px; line-height: 1.15; text-align: center; }
.tombol:hover { background: #262626; }
.tombol.garis { background: #fff; color: #000; }
.tombol.garis:hover { background: var(--a1); }
.tombol.terbalik { background: #fff; color: #000; border-color: #fff; }
.tombol.kecil { padding: 5px 12px; min-height: 34px; font-size: .9rem; }
.tombol.penuh { width: 100%; }
.tombol[disabled], .tombol.mati { opacity: .45; cursor: not-allowed; pointer-events: none; }
.tombol.bahaya { background: #fff; color: #000; border-style: double; border-width: 4px; }
.baris-tombol { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label { display: block; font-weight: bold; margin: 12px 0 4px; }
label.biasa { font-weight: normal; margin: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid #000; border-radius: 8px; background: #fff; color: #000; min-height: 46px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #000; outline-offset: 1px; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: #000; flex: none; margin-top: 3px; }
.petunjuk { font-size: .85rem; color: var(--a4); margin-top: 4px; }
.sandi-bungkus { position: relative; }
.sandi-bungkus input { padding-right: 52px; }
.sandi-lihat { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; background: transparent; cursor: pointer; }
.pemisah { display: flex; align-items: center; gap: 10px; color: var(--a4); margin: 16px 0; font-size: .9rem; }
.pemisah::before, .pemisah::after { content: ""; flex: 1; border-top: 1px solid var(--a3); }
.kode-input { font-size: 1.8rem !important; letter-spacing: 12px; text-align: center; font-weight: bold; }

/* ---------- pesan */
.kilat { display: flex; gap: 10px; align-items: flex-start; border: 2px solid #000; background: #fff; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.kilat-gagal { border-style: double; border-width: 4px; }
.kilat-ok { background: #000; color: #fff; }
.kilat a { font-weight: bold; }
.catatan { border-left: 5px solid #000; background: #fff; padding: 10px 14px; margin: 10px 0; }

/* ---------- kemajuan */
.batang { height: 12px; border: 1.5px solid #000; border-radius: 99px; background: #fff; overflow: hidden; }
.batang.kecil { height: 8px; }
.batang span { display: block; height: 100%; background: #000; }
.angka-besar { font-size: 2.2rem; font-weight: bold; line-height: 1; }
.stat { display: flex; gap: 10px; flex-wrap: wrap; }
.stat > div { flex: 1 1 120px; border: 1.5px solid #000; border-radius: 8px; padding: 10px 12px; background: #fff; }
.stat b { display: block; font-size: 1.5rem; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--a4); }
.kartu.hitam .stat > div { background: #000; border-color: #fff; }
.kartu.hitam .stat span { color: #ccc; }
.lencana { display: inline-block; border: 1.5px solid #000; border-radius: 99px; padding: 0 9px; font-size: .8rem; font-weight: bold; white-space: nowrap; background: #fff; color: #000; }
.lencana.hitam { background: #000; color: #fff; }
.lencana.garis { border-style: dashed; }

/* ---------- daftar bab */
.daftar-bab { display: grid; gap: 12px; }
@media (min-width: 720px) { .daftar-bab { grid-template-columns: 1fr 1fr; } }
.bab-item { display: flex; gap: 14px; text-decoration: none; background: #fff; border: 1.5px solid #000; border-radius: var(--r); padding: 14px; align-items: flex-start; }
.bab-item:hover { background: var(--a1); }
.bab-no { flex: none; width: 52px; height: 52px; border: 2px solid #000; border-radius: 10px; display: grid; place-items: center; font-weight: bold; font-size: 1.35rem; }
.bab-item.selesai .bab-no { background: #000; color: #fff; }
.bab-isi { flex: 1; min-width: 0; }
.bab-isi h3 { margin: 0 0 4px; font-size: 1.08rem; }
.bab-isi .meta { font-size: .85rem; color: var(--a4); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tab { display: flex; gap: 6px; overflow-x: auto; border-bottom: 2px solid #000; margin-bottom: 16px; scrollbar-width: none; }
.tab a { text-decoration: none; padding: 9px 14px; border: 1.5px solid #000; border-bottom: 0; border-radius: 8px 8px 0 0; background: #fff; white-space: nowrap; }
.tab a.aktif { background: #000; color: #fff; font-weight: bold; }

/* ---------- pembaca materi */
.pembaca { display: grid; gap: 18px; }
@media (min-width: 980px) { .pembaca { grid-template-columns: 300px 1fr; align-items: start; } .samping { position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto; } }
.samping { background: #fff; border: 1.5px solid #000; border-radius: var(--r); padding: 12px; }
.samping h3 { font-size: 1rem; margin: 4px 4px 8px; }
.daftar-bagian { list-style: none; margin: 0; padding: 0; }
.daftar-bagian a { display: flex; gap: 8px; padding: 7px 8px; text-decoration: none; border-radius: 6px; align-items: flex-start; font-size: .95rem; line-height: 1.3; }
.daftar-bagian a:hover { background: var(--a1); }
.daftar-bagian a.aktif { background: #000; color: #fff; font-weight: bold; }
.titik { flex: none; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.titik.isi-penuh { background: #000; color: #fff; border-color: #000; }
.daftar-bagian a.aktif .titik.isi-penuh { background: #fff; color: #000; border-color: #fff; }
.buku { background: #fff; border: 1.5px solid #000; border-radius: var(--r); padding: 20px 18px; min-width: 0; }
@media (min-width: 700px) { .buku { padding: 28px 34px; } }
.buku .jejak { font-size: .88rem; color: var(--a4); margin-bottom: 8px; }
.buku .jejak a { color: var(--a4); }
.buku h1 { font-size: 1.6rem; border-bottom: 3px solid #000; padding-bottom: 8px; }
.buku p, .buku li { text-align: justify; hyphens: none; }
.buku h3 { margin-top: 1.2em; }
.buku ol, .buku ul { padding-left: 1.5em; margin: 0 0 .8em; }
.buku li { margin-bottom: .3em; }
.buku ul li { list-style: square; }
.rumus { text-align: center; font-weight: bold; margin: 10px 0 14px; padding: 8px 10px; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.caption { font-weight: bold; font-size: .92rem; margin: 10px 0 4px; }
.box { border: 1.5px solid #000; padding: 12px 14px 4px; margin: 14px 0; border-radius: 6px; background: #fff; }
.box-t { font-size: .82rem; font-weight: bold; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.box-tujuan { border-left: 6px solid #000; }
.box-rangkuman { border: 4px double #000; }
.box-standar { border-left: 6px double #000; }
.box-info { background: var(--a1); }
.kasus { border: 1.5px solid #000; margin: 16px 0; border-radius: 6px; overflow: hidden; }
.kasus-t { background: #000; color: #fff; font-weight: bold; padding: 7px 12px; font-size: .95rem; }
.kasus-b { padding: 12px 14px 4px; }
details.pen { border-top: 1.5px dashed #000; margin: 8px -14px 0; }
details.pen > summary { cursor: pointer; padding: 10px 14px; font-weight: bold; list-style: none; display: flex; gap: 8px; align-items: center; }
details.pen > summary::-webkit-details-marker { display: none; }
details.pen > summary::before { content: "+"; width: 22px; height: 22px; border: 1.5px solid #000; border-radius: 50%; display: grid; place-items: center; line-height: 1; }
details.pen[open] > summary::before { content: "\2212"; background: #000; color: #fff; }
details.pen .pen-b { padding: 0 14px 6px; }
.tbw { margin: 8px 0 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table.tb { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.3; background: #fff; }
table.tb th, table.tb td { border: 1px solid #000; padding: 5px 7px; vertical-align: top; text-align: left; }
table.tb th { background: var(--a2); text-align: center; vertical-align: middle; }
table.tb td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.tb tr.tot td { font-weight: bold; background: var(--a1); }
table.tb tr.bd td, table.tb tr.sub td { font-weight: bold; }
table.tb tr.cap td { border: none; text-align: center; font-weight: bold; }
table.tb td.in1 { padding-left: 20px; } table.tb td.in2 { padding-left: 34px; } table.tb td.in3 { padding-left: 48px; }
table.tb.lap td { border: none; border-bottom: 1px dotted #999; }
table.tb.lap tr.tot td { border-top: 1px solid #000; border-bottom: 1px solid #000; }
table.tb.dok { border: 2px solid #000; }
table.tb.struk { max-width: 420px; margin: 0 auto; }
table.tb.struk td { border: none; border-bottom: 1px dotted #999; }
table.tb.kk { font-size: .72rem; min-width: 1100px; }
table.tb.kk td, table.tb.kk th { padding: 3px 4px; }
.tbw.lebar::before { content: "Geser tabel ke samping untuk melihat seluruh kolom"; display: block; font-size: .78rem; color: var(--a4); margin-bottom: 4px; }
.navigasi-bagian { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1.5px solid #000; flex-wrap: wrap; }
.navigasi-bagian .tombol { flex: 1 1 200px; }
.selesai-baca { text-align: center; margin: 22px 0 6px; }

/* ---------- kuis */
.kuis-bungkus { max-width: 760px; margin: 0 auto; }
.kuis-kepala { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kuis-kepala .batang { flex: 1; }
.soal-kartu { background: #fff; border: 1.5px solid #000; border-radius: var(--r); padding: 18px; }
.soal-no { font-size: .88rem; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.soal-teks { font-size: 1.1rem; margin-bottom: 14px; }
.opsi { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.opsi button, .opsi label.pilih { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; font: inherit; background: #fff; color: #000; border: 1.5px solid #000; border-radius: 8px; padding: 10px 12px; cursor: pointer; min-height: 50px; margin: 0; font-weight: normal; }
.opsi button:hover:not([disabled]), .opsi label.pilih:hover { background: var(--a1); }
.opsi .huruf { flex: none; width: 30px; height: 30px; border: 1.5px solid #000; border-radius: 50%; display: grid; place-items: center; font-weight: bold; }
.opsi button.dipilih, .opsi label.pilih.dipilih { background: #000; color: #fff; }
.opsi button.dipilih .huruf, .opsi label.pilih.dipilih .huruf { background: #fff; color: #000; border-color: #fff; }
.opsi button.benar { border-width: 3px; background: #000; color: #fff; }
.opsi button.benar .huruf { background: #fff; color: #000; }
.opsi button.salah { border-style: dashed; text-decoration: line-through; background: var(--a2); }
.opsi button[disabled] { cursor: default; }
.opsi label.pilih input { position: absolute; opacity: 0; pointer-events: none; }
.umpan { margin-top: 14px; border: 2px solid #000; border-radius: 8px; padding: 12px 14px; display: none; }
.umpan.tampil { display: block; }
.umpan.umpan-benar { background: #000; color: #fff; }
.umpan b.judul { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; font-size: 1.05rem; }
.hasil-lingkar { width: 150px; height: 150px; border-radius: 50%; border: 6px solid #000; display: grid; place-items: center; margin: 6px auto 14px; text-align: center; }
.hasil-lingkar b { font-size: 2.6rem; line-height: 1; display: block; }
.ulas { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ulas li { border: 1.5px solid #000; border-radius: 8px; padding: 12px 14px; background: #fff; }
.ulas li.ulas-salah { border-style: dashed; }
.ulas .jwb { font-size: .95rem; margin: 6px 0; }
.ulas .bhs { font-size: .95rem; background: var(--a1); padding: 8px 10px; border-radius: 6px; }

/* ---------- ujian */
.ujian-atas { position: sticky; top: 0; z-index: 40; background: #000; color: #fff; }
.ujian-atas .atas-dalam { min-height: 54px; }
.pewaktu { font-size: 1.35rem; font-weight: bold; font-variant-numeric: tabular-nums; border: 2px solid #fff; border-radius: 8px; padding: 2px 12px; }
.pewaktu.genting { background: #fff; color: #000; }
.ujian-tata { display: grid; gap: 16px; }
@media (min-width: 980px) { .ujian-tata { grid-template-columns: 1fr 300px; align-items: start; } .panel-nomor { position: sticky; top: 70px; } }
.panel-nomor { background: #fff; border: 1.5px solid #000; border-radius: var(--r); padding: 12px; }
.nomor-kisi { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.nomor-kisi button { font: inherit; font-weight: bold; height: 42px; border: 1.5px solid #000; border-radius: 6px; background: #fff; cursor: pointer; position: relative; }
.nomor-kisi button.terjawab { background: #000; color: #fff; }
.nomor-kisi button.ragu { border-style: dashed; border-width: 3px; }
.nomor-kisi button.ragu::after { content: "?"; position: absolute; top: -8px; right: -6px; background: #fff; color: #000; border: 1.5px solid #000; border-radius: 50%; width: 18px; height: 18px; font-size: 12px; line-height: 15px; }
.nomor-kisi button.kini { outline: 3px solid #000; outline-offset: 2px; }
.keterangan { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; margin-top: 10px; }
.keterangan span { display: inline-flex; align-items: center; gap: 5px; }
.keterangan i { width: 16px; height: 16px; border: 1.5px solid #000; border-radius: 3px; display: inline-block; }
.layar-kunci { position: fixed; inset: 0; background: rgba(0,0,0,.92); color: #fff; display: none; z-index: 90; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.layar-kunci.tampil { display: flex; }
.layar-kunci .kartu { color: #000; max-width: 520px; }
.token-input { font-size: 1.6rem !important; letter-spacing: 8px; text-align: center; text-transform: uppercase; font-weight: bold; }

/* ---------- tabel data */
.tabel-bungkus { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid #000; border-radius: var(--r); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--a2); text-align: left; vertical-align: top; }
table.data th { background: #000; color: #fff; position: sticky; top: 0; white-space: nowrap; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.c, table.data th.c { text-align: center; }
table.data tr:hover td { background: var(--a1); }
table.data tr.saya td { background: #000; color: #fff; font-weight: bold; }
table.data .aksi { white-space: nowrap; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- beranda */
.sambut { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sambut h1 { margin: 0; font-size: 1.5rem; }
.lanjut { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.lanjut .bab-no { background: #fff; color: #000; border-color: #fff; }
.pengumuman-item { border-bottom: 1px solid var(--a2); padding: 8px 0; }
.pengumuman-item:last-child { border-bottom: 0; }
.pengumuman-item .w { font-size: .8rem; color: var(--a4); }
.glos-item { border-bottom: 1px solid var(--a2); padding: 10px 0; }
.glos-item b { display: block; }
.huruf-lompat { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.huruf-lompat a { border: 1.5px solid #000; border-radius: 6px; padding: 2px 9px; text-decoration: none; font-weight: bold; }
.pahlawan { background: #000; color: #fff; border-radius: 12px; padding: 34px 22px; margin-bottom: 18px; }
.pahlawan h1 { font-size: 2rem; }
@media (min-width: 800px) { .pahlawan { padding: 54px 48px; } .pahlawan h1 { font-size: 2.6rem; } }
.fitur { display: grid; gap: 12px; }
@media (min-width: 720px) { .fitur { grid-template-columns: repeat(3, 1fr); } }
.fitur .kartu h3 { display: flex; gap: 8px; align-items: center; }
.tangga { counter-reset: t; list-style: none; padding: 0; }
.tangga li { counter-increment: t; padding-left: 44px; position: relative; margin-bottom: 12px; }
.tangga li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-weight: bold; }
.tersembunyi { display: none !important; }

/* ---------- pemantauan ujian (guru) */
.form-aksi { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.teks-bahaya { font-weight: bold; text-decoration: underline; }
.ringkas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.ringkas div { background: #fff; border: 1.5px solid #000; border-radius: 10px; padding: 12px; text-align: center; }
.ringkas b { display: block; font-size: 1.8rem; line-height: 1.1; }
.ringkas span { font-size: .82rem; color: var(--a4); }
.ringkas .r-bahaya { border-width: 3px; }
.alat-pantau .baris-alat { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.alat-pantau label { font-size: .9rem; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.alat-pantau select { width: auto; min-width: 170px; min-height: 40px; padding: 6px 10px; }
.tata-pantau { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; align-items: start; }
.tata-pantau > .kartu { margin-bottom: 0; }
.arus { position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow-y: auto; }
.arus-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--a2); font-size: .88rem; }
.arus-item.dihitung { font-weight: bold; border-left: 4px solid #000; padding-left: 8px; }
.arus-jam { font-variant-numeric: tabular-nums; color: var(--a4); white-space: nowrap; }
.arus-isi a { font-weight: bold; }
.daftar-pantau { display: flex; flex-direction: column; gap: 6px; }
.bp { display: grid; grid-template-columns: minmax(125px, 1.4fr) minmax(100px, 1fr) 54px 74px minmax(115px, 1.3fr) 66px 100px;
  gap: 8px; align-items: center; border: 1.5px solid #000; border-radius: 8px; padding: 8px 9px; background: #fff; font-size: .84rem; min-width: 0; }
.bp > div { min-width: 0; overflow-wrap: anywhere; }
.bp-kepala { background: #000; color: #fff; font-weight: bold; font-size: .8rem; }
.bp-nama a { font-weight: bold; font-size: .95rem; display: block; }
.bp-nama span { display: block; color: var(--a4); font-size: .8rem; line-height: 1.35; }
.bp-alat { font-style: italic; }
.bp-angka { text-align: center; line-height: 1.2; }
.bp-angka b { font-size: 1.15rem; }
.bp-angka span { display: block; font-size: .72rem; color: var(--a4); }
.bp-angka.langgar b { text-decoration: underline; }
.bp-akhir span { display: block; line-height: 1.35; }
.bp-sisa { font-variant-numeric: tabular-nums; font-weight: bold; text-align: center; }
.bp-aksi { display: flex; gap: 6px; flex-direction: column; align-items: stretch; }
.bp-aksi .tombol { white-space: nowrap; }
.bp.st-keluar { border-width: 3px; border-style: double; animation: denyut 1.4s infinite; }
.bp.st-terkunci { border-width: 3px; background: repeating-linear-gradient(45deg, #fff 0 8px, #efefef 8px 12px); }
.bp.minta { border-style: dashed; }
.bp.st-selesai { opacity: .7; }
@keyframes denyut { 50% { box-shadow: 0 0 0 3px rgba(0,0,0,.25); } }
.lencana.st-aktif { background: #fff; color: #000; }
.lencana.st-keluar, .lencana.st-terkunci { background: #000; color: #fff; }
.lencana.st-sinyal { border-style: dashed; }
.lencana.st-habis, .lencana.st-selesai { background: #fff; color: #000; border-color: var(--a3); }
.layar-kelas { background: #fff; border: 1.5px solid #000; border-radius: 14px; padding: 28px; display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 12px; }
.layar-kelas:fullscreen { border-radius: 0; padding: 5vw; min-height: 100vh; }
.lk-label { margin: 0; font-size: 1rem; color: var(--a4); text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }
.lk-alamat { margin: 4px 0 20px; font-size: clamp(26px, 4.2vw, 56px); font-weight: bold; word-break: break-all; line-height: 1.15; }
.lk-token { margin: 4px 0 20px; font-size: clamp(40px, 7vw, 96px); font-weight: bold; letter-spacing: 6px; line-height: 1.05; }
.lk-aturan { font-size: clamp(16px, 1.6vw, 22px); padding-left: 24px; margin: 0; }
.lk-aturan li { margin-bottom: 6px; }
.lk-kanan { text-align: center; }
.kode-qr svg { width: 100%; max-width: 420px; height: auto; }
@media (max-width: 1100px) {
  .tata-pantau { grid-template-columns: 1fr; }
  .arus { position: static; max-height: none; }
  .ringkas { grid-template-columns: repeat(3, 1fr); }
  .bp { grid-template-columns: 1fr auto; grid-template-areas: "nama sisa" "status status" "jawab langgar" "akhir akhir" "aksi aksi"; gap: 6px 10px; }
  .bp-kepala { display: none; }
  .bp-nama { grid-area: nama; } .bp-status { grid-area: status; } .bp-sisa { grid-area: sisa; }
  .bp-angka:nth-of-type(3) { grid-area: jawab; text-align: left; }
  .bp-angka:nth-of-type(4) { grid-area: langgar; text-align: right; }
  .bp-akhir { grid-area: akhir; } .bp-aksi { grid-area: aksi; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 900px) { .layar-kelas { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ringkas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 979px) { .pembaca .samping { order: 2; } }
@media (max-width: 600px) { .buku p, .buku li { text-align: left; } body { font-size: 17px; } .merek-teks small { display: none; } }
@media print { .atas, .menu-bawah, .kaki, .tombol, .samping { display: none !important; } body { background: #fff; } .buku, .kartu { border: 0; } }
