:root {
  /* Brand Kuitansin (dokumen produk v2 bagian 5): rapi · tenang · bisa dipercaya — hijau kuitansi + amber stempel di atas kertas */
  --brand: #0E6B5C; --aksen: #C9821B; --bg: #F7F5EF; --bg-gelap: #0F1D1A; --teks: #1F2A27; --sukses: #1F8A4C; --peringatan: #B4432B;
  --font-judul: "Plus Jakarta Sans", "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --font-isi: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --panel: #FFFFFF; --panel2: #EFECE3; --line: #E2DDD0; --text: var(--teks); --muted: #66706B;
  --brand2: #0A5448; --brandSoft: #DCEEE9; --on-brand: #FFFFFF; --aksenSoft: #F8EAD3; --aksenText: #87540C; --warnSoft: #F6E1DB; --warnText: #8E3320; --okSoft: #DCF0E3; --dangerSoft: #F6E1DB; --dangerText: #8E3320;
  --shadow: 0 1px 2px rgba(20,40,35,.05), 0 8px 24px rgba(20,40,35,.06); --r: 10px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--bg-gelap); --teks: #E9EFEC; --panel: #172A26; --panel2: #1F3631; --line: #2C4740; --muted: #9DB0AA;
  --brand: #3DBFA6; --brand2: #6AD3BE; --brandSoft: #173F37; --on-brand: #06201B; --aksen: #E8A84A; --aksenSoft: #3A2C17; --aksenText: #F2C27A;
  --warnSoft: #3E241E; --warnText: #F0A08C; --okSoft: #18392A; --dangerSoft: #3E241E; --dangerText: #F0A08C; --sukses: #4CC27F; --peringatan: #E9765C;
  --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font-isi); -webkit-text-size-adjust: 100%; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-family: var(--font-judul); letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
small, .muted { color: var(--muted); }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-size: .9em; }
.lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.num { font-family: var(--font-mono); font-weight: 600; }

.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 12px; color: var(--muted); }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; display: block; flex: none; }
.logo-mark.big { width: 72px; height: 72px; margin: 0 auto; }

.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 14px; color: var(--text); }
.brand b { display: block; font-family: var(--font-judul); font-size: 18px; } .brand small { font-size: 12px; }
.nav-h { font-size: 11px; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin: 14px 10px 6px; font-family: var(--font-mono); }
.nav-a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); color: var(--text); font-size: 14px; }
.nav-a:hover { background: var(--panel2); }
.nav-a.on { background: var(--brandSoft); color: var(--brand); font-weight: 600; }
.nav-a .n { margin-left: auto; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.nav-a .tag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--aksenSoft); color: var(--aksenText); }
.nav-a .tag.beta { background: var(--warnSoft); color: var(--warnText); }
.side-foot { margin-top: auto; padding: 12px 10px 0; font-size: 12px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 10; display: flex; gap: 10px; align-items: center; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; max-width: 560px; }
.search input { width: 100%; padding: 10px 40px 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); outline: none; }
.search input:focus { border-color: var(--brand); }
.search kbd { position: absolute; right: 10px; top: 9px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; color: var(--muted); }
.qres { position: absolute; left: 0; right: 0; top: 46px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); max-height: 60vh; overflow: auto; padding: 6px; }
.qres a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px; }
.qres a:hover { background: var(--panel2); }
.qres .qh { font-size: 11px; font-weight: 700; color: var(--muted); padding: 8px 10px 2px; letter-spacing: .06em; font-family: var(--font-mono); }
.icon-btn { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); width: 40px; height: 40px; cursor: pointer; flex: none; }
.view { padding: 24px; max-width: 1120px; width: 100%; }
.foot { margin-top: auto; padding: 18px 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card.soft { background: var(--panel2); box-shadow: none; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat b { display: block; font: 600 1.7rem/1.1 var(--font-mono); color: var(--brand); } .stat span { font-size: 13px; color: var(--muted); }
.stat.aksen b { color: var(--aksen); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.hero { background: linear-gradient(135deg, var(--brandSoft), var(--panel) 70%); border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: relative; overflow: hidden; }
.hero h1 { margin-bottom: 6px; }
.hero .stamp { position: absolute; right: -10px; top: -14px; width: 150px; height: 150px; opacity: .08; transform: rotate(-12deg); pointer-events: none; }
.mt { margin-top: 18px; } .mb { margin-bottom: 14px; } .mt8 { margin-top: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--r); cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--brand2); }
.btn.ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--panel2); }
.btn.aksen { background: var(--aksen); color: #fff; }
:root[data-theme="dark"] .btn.aksen { color: var(--on-brand); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; min-height: 36px; }
.btn.big { font-size: 16px; padding: 14px 22px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { background: var(--okSoft); color: var(--sukses); border-color: transparent; }
.chip.aksen { background: var(--aksenSoft); color: var(--aksenText); border-color: transparent; }
.chip.warn { background: var(--warnSoft); color: var(--warnText); border-color: transparent; }
.chip.danger { background: var(--dangerSoft); color: var(--dangerText); border-color: transparent; }
.chip.brand { background: var(--brandSoft); color: var(--brand); border-color: transparent; }

label.f { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
label.f small { font-weight: 400; }
.inp, select.inp, textarea.inp { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); outline: none; min-height: 44px; }
.inp:focus { border-color: var(--brand); }
textarea.inp { min-height: 120px; resize: vertical; line-height: 1.5; }
textarea.inp.mono { font: 13px/1.5 var(--font-mono); }
.steps { display: flex; gap: 6px; margin: 4px 0 18px; }
.steps div { flex: 1; height: 6px; border-radius: 4px; background: var(--line); }
.steps div.on { background: var(--brand); }
.disclaimer { background: var(--warnSoft); color: var(--warnText); border-radius: var(--r); padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.info { background: var(--brandSoft); color: var(--brand); border-radius: var(--r); padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.artinya { background: var(--aksenSoft); color: var(--aksenText); border-left: 4px solid var(--aksen); border-radius: 0 var(--r) var(--r) 0; padding: 10px 14px; font-size: 14px; margin: 12px 0; }
.artinya b { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; margin-bottom: 2px; }
.mesin { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.mesin b { color: var(--text); }
.mesin .arr { opacity: .5; }
.progress { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; } .progress i { display: block; height: 100%; background: var(--aksen); transition: width .3s; }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.tabs button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; min-height: 36px; }
.tabs button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.kat { display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--text); }
.kat:hover { border-color: var(--brand); } .kat b { display: block; font-size: 14px; } .kat span { font-size: 12px; color: var(--muted); }
.kat .ic { font-size: 22px; }

/* Peta tahap */
.peta { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.peta a { display: block; padding: 10px 10px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--text); text-align: center; font-size: 13px; }
.peta a .no { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.peta a .st { display: block; font-size: 11px; margin-top: 4px; color: var(--muted); }
.peta a.now { border-color: var(--brand); background: var(--brandSoft); color: var(--brand); font-weight: 600; }
.peta a.done { border-color: var(--aksen); } .peta a.done .st { color: var(--aksen); }

/* Daftar item (prompt, pertanyaan, bimbingan) */
.list .item, .item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--text); margin-bottom: 8px; }
.item:hover { border-color: var(--brand); }
.item .t { font-weight: 600; } .item .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.item .kode { font-family: var(--font-mono); font-size: 11px; color: var(--brand); background: var(--brandSoft); padding: 3px 7px; border-radius: 6px; flex: none; margin-top: 2px; }
.star { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--muted); padding: 0 4px; flex: none; margin-left: auto; min-width: 36px; min-height: 36px; }
.star.on { color: var(--aksen); }
pre.prompt { white-space: pre-wrap; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; font: 13px/1.55 var(--font-mono); max-height: 420px; overflow: auto; }
pre.prompt mark { background: color-mix(in srgb, var(--aksen) 25%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
pre.prompt .kosong { background: color-mix(in srgb, var(--peringatan) 30%, transparent); border-radius: 3px; padding: 0 2px; }
.aksi-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tips li { margin-bottom: 6px; } .tips b { color: var(--text); }
.dok { border-left: 3px solid var(--line); padding: 8px 12px; margin: 8px 0; font-size: 14px; white-space: pre-wrap; }
.dok small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 11px; margin-bottom: 4px; }

/* Checklist */
.chk { width: 22px; height: 22px; accent-color: var(--aksen); cursor: pointer; flex: none; margin-top: 2px; }
.cl li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); list-style: none; }
.cl li.done .teks { text-decoration: line-through; color: var(--muted); }
.cl .teks { font-weight: 500; }
.cl .meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cl .cara { font-size: 13px; margin-top: 6px; padding-left: 16px; color: var(--muted); }
.cl ul, .cl ol { padding: 0; margin: 0; }

/* Dapus */
.dp { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dp .ic { font-size: 18px; text-align: center; }
.dp.ok .ic { color: var(--sukses); } .dp.no .ic { color: var(--brand); } .dp.cek .ic { color: var(--peringatan); }
.dp .asli { color: var(--muted); font-size: 13px; }
.dp .apa { margin-top: 4px; }
.dp .doi { font-family: var(--font-mono); font-size: 12px; }

/* Kerangka */
.outline h4 { margin: 12px 0 4px; font-family: var(--font-judul); font-size: 14px; }
.outline ul { margin: 0 0 0 18px; padding: 0; font-size: 14px; color: var(--muted); }

/* Latihan sidang */
.tanya { font-family: var(--font-judul); font-size: 1.1rem; }
.opsi { display: grid; gap: 8px; margin: 10px 0 14px; }
.flash { cursor: pointer; }
.flash .sisi { padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); min-height: 120px; }
.flash .sisi.b { background: var(--aksenSoft); color: var(--aksenText); }

.modal { position: fixed; inset: 0; background: rgba(10,25,22,.55); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-box { background: var(--panel); border-radius: 14px; padding: 22px; max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--shadow); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r); font-size: 14px; z-index: 70; max-width: 92vw; }
.scrim { position: fixed; inset: 0; background: rgba(10,25,22,.45); z-index: 19; }
.bottom { position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel); border-top: 1px solid var(--line); display: flex; z-index: 15; padding-bottom: env(safe-area-inset-bottom); }
.bottom a { flex: 1; text-align: center; font-size: 11px; padding: 8px 2px 6px; color: var(--muted); min-height: 52px; }
.bottom a span { display: block; font-size: 20px; }
.bottom a.on { color: var(--brand); font-weight: 600; }
.only-m { display: none; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -2px; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .only-m { display: inline-flex; } .only-d { display: none; }
  .top { padding: 10px 14px; } .view { padding: 16px 14px 90px; } .foot { padding-bottom: 80px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } .g2 { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
  .hero .stamp { width: 100px; height: 100px; }
}

/* ---------- Kuitansin ---------- */
.btn.cam { background: var(--aksen); color: #fff; font-size: 17px; padding: 16px 22px; border-radius: 14px; }
:root[data-theme="dark"] .btn.cam { color: var(--on-brand); }
.btn.cam:hover { filter: brightness(.95); background: var(--aksen); }
.nom { font: 600 1rem var(--font-mono); white-space: nowrap; }
.nom.big { font-size: 1.5rem; color: var(--brand); }
.kertas { background: #FFFDF8; color: #1F2A27; border: 1px solid #DCD5C4; border-radius: 6px; padding: 26px 28px; box-shadow: 0 10px 30px rgba(20,40,35,.08); font-family: "Times New Roman", Georgia, serif; font-size: 15px; position: relative; max-width: 760px; }
.kertas .kop { text-align: center; border-bottom: 3px double #1F2A27; padding-bottom: 8px; margin-bottom: 14px; }
.kertas .kop b { display: block; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; }
.kertas .kop small { color: #444; font-size: 13px; display: block; }
.kertas h3.jdl { text-align: center; letter-spacing: .3em; font-family: "Times New Roman", serif; font-size: 20px; margin: 4px 0 2px; text-decoration: underline; }
.kertas .no { text-align: center; font-size: 13px; margin-bottom: 14px; }
.kertas table.kw { width: 100%; border-collapse: collapse; }
.kertas table.kw td { padding: 6px 4px; vertical-align: top; }
.kertas table.kw td.l { width: 160px; white-space: nowrap; } .kertas table.kw td.c { width: 12px; }
.kertas .terbilang { background: #EFE9DA; font-style: italic; padding: 6px 10px; border-left: 4px solid #0E6B5C; }
.kertas .jumlah { display: inline-block; border: 2px solid #1F2A27; padding: 6px 14px; font: 700 18px "JetBrains Mono", monospace; margin: 12px 0 4px; transform: skewX(-6deg); }
.kertas .ttd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; margin-top: 18px; font-size: 14px; }
.kertas .ttd .sp { height: 64px; display: grid; place-items: center; }
.kertas .ttd .mtr { width: 62px; height: 44px; border: 1px dashed #9A8F78; font: 10px "JetBrains Mono", monospace; color: #9A8F78; display: grid; place-items: center; margin: 0 auto; }
.kertas .ttd u { font-weight: 700; }
.kertas .pjk { font-size: 13px; color: #444; margin-top: 6px; }
.kertas .cap { position: absolute; right: 34px; bottom: 150px; width: 84px; height: 84px; border: 3px solid rgba(201,130,27,.55); border-radius: 50%; color: rgba(201,130,27,.75); font: 700 11px "JetBrains Mono", monospace; display: grid; place-items: center; text-align: center; transform: rotate(-14deg); line-height: 1.2; pointer-events: none; }
.foto-nota { width: 100%; max-height: 420px; object-fit: contain; background: var(--panel2); border-radius: var(--r); border: 1px solid var(--line); }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; background: var(--panel2); display: grid; place-items: center; font-size: 20px; }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 26px 16px; text-align: center; background: var(--panel); cursor: pointer; }
.drop:hover { border-color: var(--brand); }
.drop b { display: block; font-size: 17px; margin: 6px 0 2px; }
.pilih { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.pilih button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 12px; cursor: pointer; }
.pilih button:hover, .pilih button.on { background: var(--brandSoft); }
.pilih button small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.cekrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cekrow .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px; }
.cekrow.ok .ic { background: var(--okSoft); color: var(--sukses); } .cekrow.no .ic { background: var(--warnSoft); color: var(--warnText); }
table.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tb th, table.tb td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.tb th { font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.tb td.r, table.tb th.r { text-align: right; }
.scroll-x { overflow-x: auto; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.artikel li { margin-bottom: 8px; }
@media (max-width: 900px) {
  .kertas { padding: 18px 14px; font-size: 14px; }
  .kertas table.kw td.l { width: 104px; white-space: normal; }
  .kertas .ttd { grid-template-columns: 1fr 1fr; } .kertas .ttd > div:first-child { grid-column: 1 / -1; }
  .kertas .cap { width: 64px; height: 64px; font-size: 9px; right: 14px; bottom: 190px; }
  .kv { grid-template-columns: 110px 1fr; }
  .bottom a.catat span { background: var(--aksen); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin: -18px auto 0; font-size: 22px; box-shadow: var(--shadow); }
}
@media print {
  body * { visibility: hidden; }
  .cetak, .cetak * { visibility: visible; }
  .cetak { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: 0; max-width: none; }
  .cetak .cap { display: none; }
}
.g-kw { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1180px) { .g-kw { grid-template-columns: 1fr; } }
