/* Pantauan Nasional Rindu Rumah: tampilan baca saja untuk lembaga (Ditjenpas, INKOPAS, Kanwil). */
@font-face { font-family: 'Public Sans'; src: url('/fonts/public-sans.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --malam: #110E29; --pita: #14112F; --pil: #1B173F;
  --ungu: #5643FF; --ungu-tua: #4433E0; --lilac: #A79EFF; --lilac-teks: #CFC9FF;
  --latar: #F5F5F8; --kartu: #FFFFFF; --garis: #E3E2EB; --garis2: #EEEDF3; --garis3: #ECEBF2;
  --tinta: #16152B; --tinta2: #3A3852; --abu: #55536B; --abu2: #6B6982; --abu3: #77758C;
  --hijau: #12805C; --hijau-teks: #11704F;
  --oranye: #C2410C; --oranye-teks: #B13A0B; --oranye-terang: #FF9A62;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.5; color: var(--tinta); background: var(--latar); -webkit-font-smoothing: antialiased; }
body.mode-masuk { background: var(--malam); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ungu); outline-offset: 2px; }
.gelap a:focus-visible, .gelap button:focus-visible { outline-color: var(--lilac); }
.wadah { max-width: 1320px; margin: 0 auto; padding-left: 32px; padding-right: 32px; width: 100%; }

/* ---------------- peta titik (dipakai di halaman masuk & dasbor) ---------------- */
.peta-kotak { position: relative; aspect-ratio: 47 / 18; width: 100%; min-width: 0; }
.peta-gambar { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.khatulistiwa { position: absolute; left: 0; right: 0; top: 36.11%; border-top: 1px dashed rgba(255,255,255,0.13); }
.khatulistiwa-label { position: absolute; right: 0; top: 36.11%; transform: translateY(-130%); font-size: 10.5px; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }
.titik { position: absolute; display: block; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(150,138,255,0.55), 0 0 16px 3px rgba(150,138,255,0.35); transition: transform .2s ease; }
/* area sentuh sengaja kecil: titik Kalteng berjarak ±14 px, area besar saling menimpa */
.titik::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
a.titik:hover, a.titik:focus-visible { z-index: 2; }
.titik::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(180,171,255,0.75); animation: denyut 2.8s ease-out infinite; animation-delay: var(--tunda, 0s); }
a.titik:hover { transform: scale(1.35); }
.titik.ganggu { background: var(--oranye-terang); box-shadow: 0 0 0 3px rgba(255,138,76,0.45), 0 0 16px 3px rgba(255,138,76,0.35); }
.titik.ganggu::after { border-color: rgba(255,154,98,0.9); }
.titik.grup { width: 20px; height: 20px; margin: -10px 0 0 -10px; padding: 0; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font: 700 11px/1 'Public Sans', system-ui, sans-serif; color: var(--pita); }
.titik.grup:hover, .titik.grup[aria-expanded="true"] { transform: scale(1.15); z-index: 3; }
.titik.grup.ganggu { color: #3A1200; }
.pop { position: absolute; transform: translate(-50%, 18px); z-index: 6; min-width: 250px; max-width: 320px; padding: 6px; display: flex; flex-direction: column;
  background: #FFFFFF; color: var(--tinta); border-radius: 10px; box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6); }
.pop a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--tinta); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.pop a:hover, .pop a:focus-visible { background: #F4F3FF; }
.pop a > span:last-child { display: flex; flex-direction: column; }
.pop small { font-size: 12px; color: var(--oranye-teks); font-weight: 400; }
.titik.redup { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: rgba(255,255,255,0.5); box-shadow: none; }
.titik.redup::after { display: none; }
@keyframes denyut { 0% { transform: scale(.35); opacity: .95; } 100% { transform: scale(1.7); opacity: 0; } }
.pil { position: absolute; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 11px; background: var(--pil);
  border: 1px solid rgba(167,158,255,0.4); border-radius: 999px; font-size: 12px; white-space: nowrap; pointer-events: none; color: #FFFFFF; }
.pil strong { font-weight: 600; }
.pil span { color: #BDB6FF; }
.legenda { position: absolute; left: 0; bottom: 0; display: flex; gap: 18px; font-size: 12px; color: rgba(255,255,255,0.72); }
.legenda span { display: flex; align-items: center; gap: 8px; }
.legenda i { width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(150,138,255,0.5); }
.legenda i.ganggu { background: var(--oranye-terang); box-shadow: 0 0 0 3px rgba(255,138,76,0.4); }
.hidup { width: 8px; height: 8px; border-radius: 50%; background: #7CE0B0; box-shadow: 0 0 0 4px rgba(124,224,176,0.16); flex-shrink: 0; display: inline-block; }

/* ---------------- halaman masuk (adegan) ---------------- */
.masuk { position: relative; min-height: 100vh; background: var(--malam); color: #FFFFFF; overflow: hidden; display: flex; flex-direction: column; font-size: 15px; }
.masuk a { color: var(--lilac-teks); }
.masuk-kepala { position: relative; z-index: 2; padding: 32px 56px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.masuk-logo { height: 46px; width: auto; display: block; }
.masuk-penyelenggara { font-size: 13px; color: rgba(255,255,255,0.66); }
.pembuka { position: relative; z-index: 2; padding: 38px 56px 24px; display: flex; flex-direction: column; gap: 16px; max-width: 760px;
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.status-hidup { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--lilac-teks); }
.judul { margin: 0; font-size: 64px; line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; }
.judul-sub { margin: -4px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.005em; color: var(--lilac-teks); }
.pembuka-teks { margin: 0; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 600px; }
.masuk-info { margin: 0; padding: 10px 14px; border: 1px solid rgba(255,196,94,0.38); background: rgba(255,196,94,0.08); color: #FFD58A; border-radius: 8px; font-size: 13.5px; align-self: flex-start; }
.pembuka-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 12px; }
.catatan-kunci { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,0.72); }
.tombol-utama { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 28px; border: none; border-radius: 10px;
  background: var(--ungu); color: #FFFFFF; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 40px -12px rgba(86,67,255,0.8);
  transition: background .2s, transform .2s; }
.tombol-utama:hover { background: #6A59FF; }
.tombol-utama:active { transform: scale(.985); }
.tombol-utama[disabled] { opacity: .75; cursor: progress; }
.tombol-utama.penuh { width: 100%; height: 52px; font-size: 15.5px; margin-top: 4px; }

.peta-masuk { position: relative; flex-shrink: 0; align-self: flex-end; margin: auto 56px 20px 0; width: min(1240px, calc(100% - 112px)); }
.kamera { position: absolute; inset: 0; transform-origin: 40% 50%; transition: transform 1.6s cubic-bezier(.2,.7,.15,1); }
.dasar { position: absolute; inset: 0; transition: opacity 1.2s ease, filter 1.2s ease; }
.label-peta { transition: opacity .4s ease; }
.sapu { position: absolute; top: -6%; bottom: -6%; left: 0; width: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(196,189,255,0.95) 50%, transparent); box-shadow: 0 0 24px 6px rgba(143,131,255,0.35); }
.tirai { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .9s ease;
  background: radial-gradient(ellipse 60% 55% at 50% 52%, rgba(17,14,41,0.25), rgba(9,7,24,0.88)); }
.lapis { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; pointer-events: none; z-index: 5; }
.panel { position: relative; width: min(420px, 100%); background: #15123A; border: 1px solid rgba(167,158,255,0.26); border-radius: 18px; padding: 32px;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,0.85); display: flex; flex-direction: column; gap: 22px;
  opacity: 0; transform: translateY(28px) scale(.965); filter: blur(6px); transition: opacity .5s ease, transform .5s ease, filter .5s ease; }
.panel-kilau { position: absolute; left: 32px; right: 32px; top: -1px; height: 1px; background: linear-gradient(to right, transparent, rgba(196,189,255,0.9), transparent); }
.panel-atas { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-atas .status-hidup { font-size: 12.5px; }
.tutup { width: 44px; height: 44px; margin: -10px -12px -10px 0; display: flex; align-items: center; justify-content: center; border: none; border-radius: 10px;
  background: transparent; color: rgba(255,255,255,0.75); cursor: pointer; }
.tutup:hover { background: rgba(255,255,255,0.08); }
.panel h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.panel p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.7); }
.panel form { display: flex; flex-direction: column; gap: 22px; }
.isian-grup { display: flex; flex-direction: column; gap: 8px; }
.isian-grup label { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.9); }
.isian { height: 50px; padding: 0 16px; border: 1px solid rgba(167,158,255,0.3); border-radius: 10px; background: #0D0A22; color: #FFFFFF; width: 100%;
  transition: border-color .2s, box-shadow .2s; }
.isian:focus { outline: none; border-color: #8F83FF; box-shadow: 0 0 0 4px rgba(143,131,255,0.22); }
.galat { margin: -6px 0 -6px; min-height: 0; font-size: 13.5px; color: #FFB4A1 !important; }
.galat:empty { display: none; }
.panel-catatan { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(167,158,255,0.16); font-size: 13px; color: rgba(255,255,255,0.7); }
.panel-catatan span { display: flex; align-items: center; gap: 8px; }
.muncul { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }

.masuk.buka .kamera { transform: scale(1.1); }
.masuk.buka .dasar { opacity: .32; filter: blur(1.5px); }
.masuk.buka .titik { transform: scale(1.2); box-shadow: 0 0 0 3px rgba(170,160,255,0.75), 0 0 26px 8px rgba(150,138,255,0.5); }
.masuk.buka .label-peta { opacity: 0; }
.masuk.buka .sapu { animation: sapu 1.25s cubic-bezier(.45,0,.25,1) .05s 1 both; }
@keyframes sapu { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.masuk.buka .pembuka { opacity: 0; transform: translateY(-18px); pointer-events: none; }
.masuk.buka .tirai { opacity: 1; transition-delay: .25s; }
.masuk.buka .lapis { pointer-events: auto; }
.masuk.buka .panel { opacity: 1; transform: none; filter: none; transition: opacity .8s ease .5s, transform 1s cubic-bezier(.16,1,.3,1) .5s, filter .8s ease .5s; }
.masuk.buka .muncul { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.masuk.buka .m1 { transition-delay: .75s; } .masuk.buka .m2 { transition-delay: .83s; } .masuk.buka .m3 { transition-delay: .91s; }
.masuk.buka .m4 { transition-delay: .99s; } .masuk.buka .m5 { transition-delay: 1.07s; } .masuk.buka .m6 { transition-delay: 1.15s; }
.masuk.berhasil .panel { opacity: 0; transform: translateY(-12px) scale(.98); transition: opacity .45s ease, transform .45s ease; }
.masuk.berhasil { opacity: 0; transition: opacity .6s ease .3s; }
.panel.goyang { animation: goyang .4s ease; }
@keyframes goyang { 0%, 100% { translate: 0; } 25% { translate: -6px 0; } 75% { translate: 6px 0; } }

/* ---------------- dasbor ---------------- */
.aplikasi { min-height: 100vh; display: flex; flex-direction: column; }
.aplikasi.tiba { animation: tiba .5s ease; }
@keyframes tiba { from { opacity: 0; } to { opacity: 1; } }
.kepala { background: var(--pita); color: #FFFFFF; }
.kepala-isi { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.merek { display: flex; align-items: center; gap: 16px; color: #FFFFFF; text-decoration: none; }
.merek img { height: 32px; width: auto; display: block; }
.merek .pemisah { width: 1px; height: 22px; background: rgba(255,255,255,0.24); }
.merek span:last-child { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.akun { display: flex; align-items: center; gap: 18px; }
.akun-nama { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; font-size: 13px; }
.akun-nama strong { font-weight: 600; }
.akun-nama span { color: rgba(255,255,255,0.72); }
.tombol-gelap { height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,0.24); border-radius: 8px; background: transparent; color: #FFFFFF;
  font-weight: 500; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
.tombol-gelap:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; }
.tombol-gelap[disabled] { opacity: .6; cursor: progress; }

.pita { background: var(--pita); color: #FFFFFF; border-top: 1px solid rgba(255,255,255,0.06); }
.pita-isi { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 100px; }
/* rincian lapas: peta sebagai latar (diperbesar, titik lapas di ±70% lebar pita, sisi kiri memudar di bawah teks) */
.pita-lapas { overflow: hidden; }
.pita-lapas .jejak { position: relative; z-index: 1; }
.pita-isi.lapas { position: relative; display: block; min-height: 330px; padding-top: 22px; }
.pita-isi.lapas .pita-kiri { position: relative; z-index: 1; max-width: 640px; }
.peta-latar { position: absolute; z-index: 0; left: 70%; top: 50%; width: 104%; pointer-events: none;
  transform: translate(calc(var(--px) * -1%), calc(var(--py) * -1%));
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.3) 20%, #000 40%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.3) 20%, #000 40%); }
.peta-latar .khatulistiwa-label { display: none; }
.peta-latar .titik { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.pita-kiri { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pita h1 { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.pita-teks { margin: 0; color: rgba(255,255,255,0.76); }
.status-daftar { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 6px; font-size: 13.5px; }
.status-daftar > span { display: flex; align-items: flex-start; gap: 10px; }
.status-daftar i { width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(150,138,255,0.5); flex-shrink: 0; margin-top: 6px; }
.status-daftar i.ganggu { background: var(--oranye-terang); box-shadow: 0 0 0 3px rgba(255,138,76,0.4); }
.status-daftar strong { font-weight: 600; }
.status-daftar .ganggu-teks { color: #FFC4A3; }
.status-daftar small { font-size: 13.5px; color: rgba(255,255,255,0.72); }
.aksi-gelap { display: flex; flex-wrap: wrap; gap: 8px; }
.jejak { font-size: 13px; color: rgba(255,255,255,0.7); padding-top: 24px; }
.jejak ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jejak a { color: var(--lilac-teks); text-decoration: none; font-weight: 500; }
.jejak a:hover { text-decoration: underline; }
.jejak .sekat { color: rgba(255,255,255,0.4); }
.jejak [aria-current] { color: #FFFFFF; font-weight: 500; }
.lencana { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; align-self: flex-start; }
.lencana.normal { color: #A6EFCB; background: rgba(124,224,176,0.1); border: 1px solid rgba(124,224,176,0.38); }
.lencana.normal i { width: 7px; height: 7px; border-radius: 50%; background: #7CE0B0; }
.lencana.ganggu { color: #FFC4A3; background: rgba(255,138,76,0.1); border: 1px solid rgba(255,138,76,0.4); }
.lencana.ganggu i { width: 7px; height: 7px; border-radius: 50%; background: var(--oranye-terang); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: rgba(255,255,255,0.76); }

.utama { display: flex; flex-direction: column; gap: 24px; padding-bottom: 48px; flex-grow: 1; }
.angka-utama { position: relative; margin-top: -64px; background: var(--kartu); border: 1px solid var(--garis); border-radius: 10px; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); box-shadow: 0 18px 40px -22px rgba(20,17,47,0.45); }
.angka { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: -1px 0 0 var(--garis3), 0 -1px 0 var(--garis3); }
.angka-label { font-size: 13px; color: var(--abu); font-weight: 500; }
.angka-nilai { font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.angka-satuan { font-size: 15px; font-weight: 500; color: var(--abu2); letter-spacing: 0; }
.angka-sub { font-size: 13px; color: var(--abu2); }

.kartu { background: var(--kartu); border: 1px solid var(--garis); border-radius: 10px; min-width: 0; }
.kartu-kepala { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.kartu h2 { margin: 0; font-size: 16px; font-weight: 600; }
.kartu-sub { margin: 4px 0 0; color: var(--abu2); font-size: 13px; }
.cari { position: relative; }
.cari svg { position: absolute; left: 13px; top: 14px; color: var(--abu3); }
.cari input { height: 44px; width: 260px; max-width: 100%; padding: 0 14px 0 38px; border: 1px solid #DCDAE6; border-radius: 8px; color: var(--tinta); background: #FFFFFF; }
.gulir { overflow-x: auto; }
.tabel { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.tabel th { font-size: 12.5px; font-weight: 600; color: var(--abu); text-align: right; padding: 12px 14px; border-bottom: 1px solid var(--garis); background: #FAFAFC; vertical-align: bottom; line-height: 1.3; min-width: 84px; }
.tabel td { padding: 14px; text-align: right; border-bottom: 1px solid var(--garis2); white-space: nowrap; }
.tabel th:first-child, .tabel td:first-child { text-align: left; padding-left: 24px; min-width: 260px; }
.tabel th:last-child, .tabel td:last-child { padding-right: 24px; }
.tabel tr.kw td { background: #F7F6FB; font-weight: 600; padding-top: 11px; padding-bottom: 11px; }
.tabel tr.kw td:first-child span { font-weight: 400; color: var(--abu2); margin-left: 6px; }
.tabel tr.tot td { font-weight: 700; border-top: 2px solid var(--pita); border-bottom: none; padding-top: 16px; padding-bottom: 16px; }
.tabel tr.baris:hover td { background: #FBFBFE; }
.tabel a { color: var(--tinta); text-decoration: none; font-weight: 600; }
.tabel a:hover { color: var(--ungu-tua); text-decoration: underline; }
.nama-sel { display: inline-flex; align-items: center; gap: 10px; }
.nama-sel > span { display: flex; flex-direction: column; line-height: 1.3; }
.nama-sel small { font-size: 12px; color: var(--oranye-teks); font-weight: 400; }
.bulat { width: 8px; height: 8px; border-radius: 50%; background: var(--hijau); flex-shrink: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bulat.ganggu { background: var(--oranye); }
.redup-teks { color: var(--abu3); }
.catatan-kaki { margin: 0; padding: 14px 24px 20px; border-top: 1px solid var(--garis2); font-size: 12.5px; color: var(--abu2); line-height: 1.6; }
.kosong { padding: 32px 24px; color: var(--abu2); }
.kartu-hp { display: none; }
.hp-kanwil { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; background: #F7F6FB; border-top: 1px solid var(--garis2); font-size: 14px; }
.hp-kanwil strong { font-weight: 600; }
.hp-kanwil span { font-size: 12.5px; color: var(--abu2); }
.hp-lapas { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--garis2); color: var(--tinta); text-decoration: none; }
.hp-lapas:hover, .hp-lapas:active { background: #FBFBFE; }
.hp-nama { display: flex; align-items: flex-start; gap: 10px; }
.hp-nama .bulat { margin-top: 7px; }
.hp-nama > span:last-child { display: flex; flex-direction: column; }
.hp-nama strong { font-weight: 600; }
.hp-nama small { font-size: 12px; color: var(--oranye-teks); }
.hp-angka { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-left: 18px; font-variant-numeric: tabular-nums; }
.hp-angka > span { display: flex; flex-direction: column; }
.hp-angka small { font-size: 11.5px; color: var(--abu2); }
.hp-angka b { font-weight: 600; }

.dua { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.kartu-isi { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.daftar-angka { margin: 0; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.daftar-angka > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--garis2); }
.daftar-angka dt { color: var(--tinta2); }
.daftar-angka dd { margin: 0; font-weight: 600; }
.batang { height: 8px; border-radius: 4px; background: #ECEAF5; overflow: hidden; }
.batang > div { height: 100%; background: var(--ungu); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.batang-judul { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--abu); }
.batang-judul strong { font-size: 20px; font-weight: 600; color: var(--tinta); }
.teks-isi { margin: 0; color: var(--tinta2); line-height: 1.65; }
.kotak-kunci { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: #F4F3FF; border-radius: 8px; color: #2E2A6B; font-size: 13px; line-height: 1.55; }
.kotak-kunci svg { flex-shrink: 0; margin-top: 2px; }
.memuat { padding: 80px 0; text-align: center; color: rgba(255,255,255,0.7); }
.galat-muat { padding: 48px 24px; text-align: center; color: var(--tinta2); }

/* ---------------- tren 30 hari, jam ramai, paket (tahap 2) ---------------- */
.kartu-pesan { padding: 8px 24px 28px; color: var(--abu2); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.kartu-pesan p { margin: 0; }
.tombol-terang { height: 40px; padding: 0 14px; border: 1px solid #DCDAE6; border-radius: 8px; background: #FFFFFF; color: var(--tinta);
  font-weight: 500; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.tombol-terang:hover { background: #F7F6FB; }
.segmen { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: #F1F0F6; border-radius: 9px; }
.segmen button { height: 36px; padding: 0 14px; border: none; border-radius: 7px; background: transparent; color: var(--abu); font-weight: 500; cursor: pointer; }
.segmen button:hover { color: var(--tinta); }
.segmen button[aria-pressed="true"] { background: #FFFFFF; color: var(--tinta); font-weight: 600; box-shadow: 0 1px 2px rgba(20,17,47,0.12), 0 0 0 1px rgba(20,17,47,0.04); }
.stat-baris { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--garis2); border-bottom: 1px solid var(--garis2); }
.stat { padding: 16px 24px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--garis2); }
.stat-label { font-size: 12.5px; color: var(--abu); font-weight: 500; }
.stat-nilai { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.stat-satuan { font-size: 13px; font-weight: 500; color: var(--abu2); letter-spacing: 0; }
.stat-sub { font-size: 12.5px; color: var(--abu2); }
.grafik { position: relative; margin: 20px 24px 4px; outline-offset: 4px; border-radius: 4px; }
.grafik-svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafik-svg .kisi { stroke: #EEEDF3; stroke-width: 1; shape-rendering: crispEdges; }
.grafik-svg .sumbu { stroke: #CFCDDA; stroke-width: 1; shape-rendering: crispEdges; }
.grafik-svg .tik { font-size: 11.5px; fill: var(--abu2); font-variant-numeric: tabular-nums; }
.grafik-svg .label-puncak { font-size: 12px; font-weight: 600; fill: var(--tinta); font-variant-numeric: tabular-nums; }
.grafik-svg .batang-data { fill: var(--ungu); transition: fill .12s; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.grafik-svg .batang-data.aktif { fill: #2E1FB0; }
.grafik-svg .sentuh { fill: transparent; }
.tip { position: absolute; z-index: 4; pointer-events: none; min-width: 150px; max-width: 240px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
  background: var(--tinta); color: #FFFFFF; border-radius: 8px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 12px 28px -10px rgba(20,17,47,0.55); }
.tip strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tip span { color: rgba(255,255,255,0.78); }
.tip .tip-judul { color: rgba(255,255,255,0.66); font-size: 12px; }
.lihat-angka { border-top: 1px solid var(--garis2); }
.lihat-angka summary { padding: 14px 24px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ungu-tua); list-style-position: inside; }
.lihat-angka summary:hover { background: #FBFBFE; }
.gulir-tabel { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.tabel-kecil { font-size: 13px; }
.tabel-kecil th { position: sticky; top: 0; z-index: 1; min-width: 70px; }
.tabel-kecil td { padding: 9px 14px; }
.tabel-kecil th:first-child, .tabel-kecil td:first-child { min-width: 180px; }

.kartu-isi.rapat { padding-top: 0; gap: 18px; }
.sorotan { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sorotan > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sorotan dt { font-size: 12.5px; color: var(--abu); font-weight: 500; }
.sorotan dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.peta-jam { position: relative; display: grid; gap: 2px; outline-offset: 4px; border-radius: 4px; }
.pj-jam { font-size: 11px; color: var(--abu2); text-align: center; padding-bottom: 4px; font-variant-numeric: tabular-nums; }
.pj-hari { font-size: 12px; color: var(--abu); display: flex; align-items: center; }
.pj-sel { display: block; height: 24px; border-radius: 3px; background: #F1F0F6; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pj-sel.t1 { background: #ADA3FF; } .pj-sel.t2 { background: #8A7CFF; } .pj-sel.t3 { background: #6A59FF; }
.pj-sel.t4 { background: #4A37E8; } .pj-sel.t5 { background: #2E1FB0; }
.pj-sel.aktif { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--tinta); position: relative; z-index: 1; }
.skala { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: var(--abu2); }
.skala > span:first-child { margin-right: 4px; }
.skala > i, .skala-nol i { width: 18px; height: 10px; }
.skala > span:nth-of-type(2) { margin-left: 4px; }
.skala-nol { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }

.paket-daftar { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.paket-baris { display: grid; grid-template-columns: 150px minmax(60px, 1fr) 170px; align-items: center; gap: 16px; padding: 11px 0; border-top: 1px solid var(--garis2); }
.paket-baris:first-child { border-top: none; }
.paket-nama { display: flex; flex-direction: column; min-width: 0; }
.paket-nama strong { font-weight: 600; }
.paket-nama span { font-size: 12.5px; color: var(--abu2); }
.paket-jalur { height: 10px; background: #F1F0F6; border-radius: 0 4px 4px 0; overflow: hidden; }
.paket-jalur > span { display: block; height: 100%; background: var(--ungu); border-radius: 0 4px 4px 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.paket-baris.lain .paket-jalur > span { background: #8A82B8; }
.paket-angka { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.paket-angka strong { font-weight: 600; }
.paket-angka span { font-size: 12.5px; color: var(--abu2); }
.paket-total { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 2px solid var(--pita); font-variant-numeric: tabular-nums; }
.paket-total strong { font-weight: 700; text-align: right; }

/* keaktifan WBP: satu rona ungu, gelap = paling aktif (validasi urutan & kontras lolos) */
.ak1 { background: #2E1FB0; } .ak2 { background: #4A37E8; } .ak3 { background: #6A59FF; } .ak4 { background: #8A7CFF; } .ak5 { background: #ADA3FF; }
.aktif-batang { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.aktif-batang > span { display: block; min-width: 3px; flex-basis: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.aktif-daftar { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.aktif-daftar li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--garis2); }
.aktif-daftar li:first-child { border-top: none; }
.aktif-daftar i { width: 10px; height: 10px; border-radius: 2px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.aktif-angka { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.aktif-angka strong { font-weight: 600; }
.aktif-angka small { color: var(--abu2); font-size: 12.5px; min-width: 34px; text-align: right; }
.aktif-keterangan { margin: 0; padding: 12px 24px 8px; border-top: 1px solid var(--garis2); }
/* peta rincian: titik UPT lain redup & bisa dipilih */
.peta-latar a.titik { pointer-events: auto; }
/* teks & jejak di atas peta tak menelan sentuhan: titik UPT lain di belakangnya tetap bisa dipilih (ronde 4 T4-2) */
.pita-lapas .pita-kiri, .pita-lapas .jejak { pointer-events: none; }
.pita-lapas .pita-kiri a, .pita-lapas .pita-kiri button, .pita-lapas .jejak a { pointer-events: auto; }
.peta-latar .titik.lain::before { inset: -9px; }
.peta-latar .titik.lain { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: rgba(255,255,255,0.72); box-shadow: 0 0 0 2px rgba(150,138,255,0.32); }
.peta-latar .titik.lain::after { display: none; }
/* sorot tanpa membesar (ronde 6 N1): titik Kalteng berjarak ±14–22 px, titik yang membesar sempat menelan klik ke tetangganya */
.peta-latar .titik.lain:hover, .peta-latar .titik.lain:focus-visible { transform: none; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(196,189,255,0.85); }

/* nama lembaga bisa panjang tanpa spasi: jangan sampai halaman tergeser ke samping */
.pita h1, .jejak li, .hp-nama strong, .hp-kanwil strong, .pop a, .status-daftar small, .meta span, .akun-nama strong { overflow-wrap: anywhere; }
.pil { max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.kaki { border-top: 1px solid var(--garis); background: #FFFFFF; }
.kaki-isi { padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--abu2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--tinta); color: #FFFFFF; padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 50; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5); }
.kop-cetak, .hanya-cetak { display: none; }

@media (max-width: 980px) {
  .pita-isi { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .peta-latar { width: 150%; left: 68%; top: 56%; }
}
@media (max-width: 900px) {
  .peta-masuk { align-self: stretch; width: auto; margin: 32px 16px 40px; }
  .masuk-kepala, .pembuka { padding-left: 16px; padding-right: 16px; }
  .judul { font-size: 44px; }
  .judul-sub { font-size: 17px; }
  .masuk-logo { height: 38px; }
}
@media (max-width: 700px) {
  .wadah { padding-left: 16px; padding-right: 16px; }
  .pita h1 { font-size: 26px; }
  .pita-isi { padding-top: 20px; padding-bottom: 72px; }
  .pita-isi.lapas { min-height: 0; }
  .peta-latar { width: 230%; left: 66%; top: 60%; opacity: .7; }
  .aktif-keterangan { padding: 12px 16px 8px; }
  .angka-utama { margin-top: -44px; }
  .angka { padding: 16px; }
  .angka-nilai { font-size: 24px; }
  .akun-nama { display: none; }
  .merek img { height: 27px; }
  .pil { display: none; }
  .cari input { width: 100%; }
  .cari { width: 100%; }
  .gulir { display: none; }
  .kartu-hp { display: block; }
  .angka-utama { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .angka:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kartu-kepala { padding: 16px; }
  .catatan-kaki { padding: 14px 16px 18px; }
  .stat-baris { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 14px 16px; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--garis2); }
  .stat-nilai { font-size: 19px; }
  .grafik { margin: 16px 12px 4px; }
  .segmen { width: 100%; }
  .segmen button { flex: 1 1 auto; padding: 0 10px; }
  .kartu-pesan { padding: 4px 16px 24px; }
  .lihat-angka summary { padding: 14px 16px; }
  .kartu-isi { padding: 16px; }
  .kartu-isi.rapat { padding-top: 0; }
  .sorotan { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sorotan > div { flex-direction: row; justify-content: space-between; gap: 12px; }
  .pj-sel { height: 20px; }
  .paket-baris { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .paket-jalur { grid-column: 1 / -1; grid-row: 2; }
  .skala-nol { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .titik::after, .masuk.buka .sapu { animation: none; opacity: 0; }
  .kamera, .dasar, .panel, .muncul, .pembuka, .tirai, .masuk.berhasil { transition-duration: .01s !important; transition-delay: 0s !important; }
  .masuk.buka .kamera { transform: none; }
  .aplikasi.tiba { animation: none; }
}

/* ---------------- cetak (A4 mendatar) ---------------- */
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #FFFFFF; font-size: 11px; }
  .kepala, .kaki, .peta-kotak, .aksi-gelap, .cari, .jejak, .toast, .tanpa-cetak, .tip, .segmen, .lihat-angka { display: none !important; }
  .hanya-cetak { display: inline !important; font-size: 11px; color: var(--abu); }
  .stat { padding: 8px 12px; }
  .stat-nilai { font-size: 16px; }
  .grafik { margin: 8px 8px 0; }
  .kartu { break-inside: avoid; }
  .kop-cetak { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--pita); padding-bottom: 8px; margin-bottom: 12px; }
  .kop-cetak img { height: 26px; }
  .kop-cetak div { text-align: right; font-size: 10.5px; color: var(--abu); }
  .wadah { padding: 0; max-width: none; }
  .pita { background: #FFFFFF !important; color: var(--tinta) !important; border: none; }
  .pita * { color: var(--tinta) !important; }
  .pita-isi, .pita-isi.lapas { display: block; padding: 0 0 10px; }
  .pita h1 { font-size: 20px; }
  .status-daftar i, .lencana { display: none; }
  .angka-utama { margin-top: 0; box-shadow: none; break-inside: avoid; }
  .angka { padding: 10px 12px; }
  .angka-nilai { font-size: 20px; }
  .utama { gap: 12px; padding-bottom: 0; }
  .tabel th, .tabel td { padding: 6px 8px; }
  .tabel th:first-child, .tabel td:first-child { padding-left: 8px; min-width: 0; }
  .tabel th { background: #FFFFFF; }
  .tabel tr { break-inside: avoid; }
  .kartu { border-color: #CCCCCC; }
  .kartu-kepala { padding: 10px 8px; }
  a { color: inherit !important; text-decoration: none !important; }
  .dua { display: block; }
  .dua > * { margin-bottom: 12px; break-inside: avoid; }
}
