:root {
  --hijau-tua: #2f5233;
  --hijau: #4a7c50;
  --hijau-muda: #6f9a6a;
  --oranye: #e0713f;
  --krem: #faf6ee;
  --krem-tua: #f0e9d8;
  --coklat-teks: #4a3f35;
  --abu: #8a8378;
  --putih: #ffffff;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(47, 82, 51, 0.08);

  /* Palet lembut (soft) untuk halaman cover & panduan awal */
  --soft-hijau: #eaf3e8;
  --soft-hijau-teks: #4a7c5a;
  --soft-peach: #fdefe6;
  --soft-peach-teks: #c97a4a;
  --soft-ungu: #f1eef8;
  --soft-lavender-teks: #8776b0;
  --soft-border: #ece3d5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--krem);
  color: var(--coklat-teks);
  line-height: 1.5;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--krem);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---------- Header ---------- */
.header-app {
  background: var(--hijau-tua);
  color: var(--putih);
  padding: 20px 20px 16px;
  text-align: center;
}
.header-app h1 { margin: 4px 0 0; font-size: 1.15rem; font-weight: 700; }
.header-app p { margin: 4px 0 0; font-size: 0.8rem; opacity: 0.85; }

/* ---------- Kartu umum ---------- */
.card {
  background: var(--putih);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 14px 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 30px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  transition: opacity .15s ease;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--hijau-tua); color: var(--putih); }
.btn-oranye { background: var(--oranye); color: var(--putih); }
.btn-outline { background: transparent; color: var(--hijau-tua); border: 1.5px solid var(--hijau-tua); }
.btn-sm { width: auto; padding: 8px 16px; font-size: 0.85rem; }

input[type=text], input[type=password], textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--krem-tua);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--krem);
}
input:focus, textarea:focus { outline: 2px solid var(--hijau-muda); border-color: transparent; }

label { font-size: 0.85rem; font-weight: 600; color: var(--hijau-tua); display:block; margin-bottom: 6px; }

/* ---------- Splash / halaman masuk kode ---------- */
.splash {
  background: linear-gradient(180deg, var(--hijau-tua) 0%, var(--hijau) 100%);
  color: var(--putih);
  padding: 40px 24px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.splash h1 { font-size: 1.6rem; margin-bottom: 6px; }
.splash .tagline { color: #ffd9b3; font-weight: 700; font-size: 1.1rem; margin-bottom: 20px;}
.splash-card {
  background: var(--putih);
  color: var(--coklat-teks);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 20px;
  text-align: left;
}

/* ---------- Progress unit ---------- */
.unit-list { display: flex; flex-direction: column; gap: 10px; }
.unit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--putih);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--coklat-teks);
}
.unit-badge {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; flex-shrink: 0;
}
.unit-item .info { flex: 1; }
.unit-item .info .judul { font-weight: 600; font-size: 0.9rem; }
.progress-bar-mini {
  height: 6px; background: var(--krem-tua); border-radius: 4px; margin-top: 6px; overflow: hidden;
}
.progress-bar-mini > div { height: 100%; background: var(--hijau); }
.unit-percent { font-size: 0.75rem; color: var(--abu); font-weight: 600; }
.badge-selesai { color: var(--hijau); font-size: 1.2rem; }

/* ---------- Langkah dalam unit (stepper) ---------- */
.stepper {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 4px 16px 12px;
}
.step-dot {
  min-width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--krem-tua); color: var(--abu); font-size: 0.8rem; font-weight: 700;
  border: 2px solid transparent;
  text-decoration: none;
  flex-shrink: 0;
}
.step-dot.aktif { background: var(--oranye); color: white; border-color: var(--oranye); }
.step-dot.selesai { background: var(--hijau); color: white; }

.nav-langkah {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 16px 20px;
}

/* ---------- Emosi aktivitas ---------- */
.emosi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.emosi-opsi {
  border: 2px solid var(--krem-tua);
  border-radius: 14px;
  padding: 12px 4px;
  text-align: center;
  cursor: pointer;
  background: var(--putih);
  font-size: 0.72rem;
}
.emosi-opsi .emoji { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.emosi-opsi.dipilih { border-color: var(--oranye); background: #fff2ea; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  display: flex;
  border-top: 1px solid var(--krem-tua);
  background: var(--putih);
  position: sticky;
  bottom: 0;
}
.bottom-nav a {
  flex: 1; text-align: center; padding: 10px 0 8px;
  color: var(--abu); text-decoration: none; font-size: 0.7rem;
}
.bottom-nav a.aktif { color: var(--hijau-tua); font-weight: 700; }
.bottom-nav .ikon { font-size: 1.2rem; display:block; }

/* ---------- Tabel admin ---------- */
.admin-wrap { max-width: 900px; margin: 30px auto; padding: 0 20px; }
table.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
table.admin-table th, table.admin-table td { padding: 12px 14px; text-align: left; font-size: 0.88rem; border-bottom: 1px solid var(--krem-tua); }
table.admin-table th { background: var(--hijau-tua); color: white; }
.status-pill { padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.status-selesai { background: #e3f3e3; color: var(--hijau-tua); }
.status-sedang { background: #fff2de; color: #a5680b; }
.status-belum { background: #f1efe9; color: var(--abu); }

.top-bar { display:flex; align-items:center; justify-content: space-between; padding: 16px; }
.top-bar h2 { font-size: 1rem; margin:0; }
.back-link { text-decoration: none; color: var(--hijau-tua); font-weight: 600; font-size: 0.9rem; }

/* ---------- Splash "MULAI" (halaman pembuka) ---------- */
.splash-mulai {
  background: linear-gradient(180deg, var(--hijau-tua) 0%, var(--hijau) 100%);
  color: var(--putih);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 28px;
}
.splash-mulai .ikon-app { font-size: 3rem; margin-bottom: 6px; }
.splash-mulai h1 { font-size: 1.5rem; margin: 6px 0 2px; line-height: 1.3; }
.splash-mulai .tagline { color: #ffd9b3; font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.splash-mulai .desc { font-size: 0.85rem; opacity: 0.9; max-width: 320px; margin: 0 auto 30px; }
.btn-mulai {
  background: var(--oranye);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 40px;
  border-radius: 30px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(224, 113, 63, 0.4);
}

/* ---------- Pilih Peran ---------- */
.peran-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--putih);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--coklat-teks);
  border: 1.5px solid transparent;
  margin-bottom: 12px;
}
.peran-card:hover { border-color: var(--hijau-muda); }
.peran-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--krem-tua);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.peran-card .judul { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.peran-card .ket { font-size: 0.78rem; color: var(--abu); line-height: 1.35; }
.peran-card .panah { color: var(--hijau); font-size: 1.1rem; }

/* ---------- Halaman Panduan (per peran) ---------- */
.panduan-back {
  color: white; text-decoration: none; font-size: 0.85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px;
}
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--putih);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--coklat-teks);
  box-shadow: var(--shadow);
}
.menu-item .ikon { font-size: 1.2rem; width: 26px; text-align: center; flex-shrink: 0; }
.menu-item .label { flex: 1; font-weight: 600; font-size: 0.9rem; }
.menu-item .chevron { color: var(--abu); }

/* ---------- Halaman info (kata pengantar, dsb) ---------- */
.info-content { font-size: 0.92rem; line-height: 1.7; white-space: pre-line; text-align: justify; text-justify: inter-word; }

/* ---------- Bottom nav dengan 4 tab (Beranda/Unit/Catatan/Profil) ---------- */
.bottom-nav-4 {
  display: flex;
  border-top: 1px solid var(--krem-tua);
  background: var(--putih);
  position: sticky;
  bottom: 0;
}
.bottom-nav-4 a {
  flex: 1; text-align: center; padding: 10px 0 8px;
  color: var(--abu); text-decoration: none; font-size: 0.68rem;
}
.bottom-nav-4 a.aktif { color: var(--hijau-tua); font-weight: 700; }
.bottom-nav-4 .ikon { font-size: 1.15rem; display:block; margin-bottom: 2px; }

/* ---------- Video embed ---------- */
.video-wrap { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background:#000; }
.video-wrap iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }

/* ---------- Skala penilaian ---------- */
.skala-keterangan { font-size: 0.75rem; color: var(--abu); background: var(--krem); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.pernyataan-item { margin-bottom: 14px; }
.pernyataan-item .teks { font-size: 0.87rem; margin-bottom: 6px; }
.skala-opsi { display: flex; gap: 6px; }
.skala-opsi label {
  flex: 1; text-align: center; font-size: 0.78rem; font-weight: 700;
  background: var(--krem); border-radius: 8px; padding: 8px 0; cursor: pointer;
  border: 1.5px solid transparent; color: var(--coklat-teks);
}
.skala-opsi input { display: none; }
.skala-opsi label:has(input:checked) { border-color: var(--hijau); background: #e3f3e3; }

/* ---------- Situasi (aktivitas pilihan respons) ---------- */
.situasi-box { background: var(--krem); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.situasi-box .judul-situasi { font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }
.opsi-respons { display: block; background: white; border: 1.5px solid var(--krem-tua); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 0.85rem; cursor: pointer; }
.opsi-respons input { margin-right: 6px; }
.opsi-respons:has(input:checked) { border-color: var(--oranye); background: #fff2ea; }

/* ---------- Checklist umum ---------- */
.checklist-item { display: flex; align-items: center; gap: 10px; background: white; border: 1.5px solid var(--krem-tua); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 0.85rem; }
.checklist-item:has(input:checked) { border-color: var(--hijau); background: #f2f8f0; }

/* ---------- Hasil skor ---------- */
.hasil-skor-box { border-radius: 14px; padding: 16px; margin-top: 14px; }
.hasil-skor-box.hijau { background: #e3f3e3; }
.hasil-skor-box.kuning { background: #fff2de; }
.hasil-skor-box.oranye { background: #ffe8de; }

@media print {
  .no-print { display: none !important; }
}

/* ================== KOMPONEN UNIT 12-LANGKAH ================== */

/* Top bar unit: back arrow - judul - hamburger */
.topbar-unit {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; color: white;
}
.topbar-ikon { color: white; text-decoration: none; font-size: 1.2rem; width: 30px; }
.topbar-judul { font-weight: 700; font-size: 0.95rem; }

.label-langkah { font-weight: 700; color: var(--hijau-tua); font-size: 0.82rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.02em; }

/* Pengenalan Unit (langkah 1) */
.unit-hero-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 14px;
}
.judul-unit-besar { text-align: center; font-size: 1.15rem; margin: 0 0 14px; color: var(--coklat-teks); }

/* Tujuan (langkah 2) */
.tujuan-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tujuan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; }
.nomor-bulat {
  width: 24px; height: 24px; border-radius: 50%; background: var(--hijau); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.waktu-box { display: flex; align-items: center; gap: 12px; background: var(--krem); border-radius: 12px; padding: 12px 14px; }

/* Dasar Unit / Yang Perlu Diketahui (teks dengan ikon) */
.teks-box { background: var(--krem); border-radius: 14px; padding: 16px; display: flex; gap: 12px; }
.teks-box-ikon { font-size: 1.5rem; flex-shrink: 0; }

.pesan-simpan { color: var(--hijau-tua); font-size: 0.8rem; margin-top: 10px; font-weight: 600; }

.checklist-grid { display: flex; flex-direction: column; gap: 8px; }

.frekuensi-baris {
  padding: 10px 0; border-bottom: 1px solid var(--krem-tua);
}
.frekuensi-baris:first-child { padding-top: 0; }
.frekuensi-label { font-size: 0.87rem; font-weight: 700; color: var(--coklat-teks); margin-bottom: 8px; }
.frekuensi-tombol-grup { display: flex; gap: 6px; }
.frekuensi-tombol {
  flex: 1; text-align: center; font-size: 0.72rem; font-weight: 600;
  background: var(--krem); border: 1.5px solid var(--krem-tua); border-radius: 20px;
  padding: 8px 2px; cursor: pointer; color: var(--abu);
}
.frekuensi-tombol input { display: none; }
.frekuensi-tombol:has(input:checked) { background: var(--hijau); border-color: var(--hijau); color: white; }

/* ================== PLACEHOLDER GAMBAR (menunggu gambar asli) ================== */
.gambar-placeholder {
  border: 2px dashed #d8cdb8; border-radius: 14px; background: var(--krem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--abu); text-align: center; padding: 28px 14px; margin-bottom: 14px;
}
.gambar-placeholder .gp-ikon { font-size: 1.8rem; margin-bottom: 6px; opacity: 0.7; }
.gambar-placeholder .gp-caption { font-size: 0.72rem; line-height: 1.4; max-width: 260px; }
.gambar-placeholder.gp-persegi { aspect-ratio: 1/1; max-width: 90px; margin: 0 auto 10px; padding: 8px; }
.gambar-placeholder.gp-cover { aspect-ratio: 4/5; }
.gambar-placeholder.gp-lebar { aspect-ratio: 16/10; }
.gambar-placeholder.gp-kartu { aspect-ratio: 16/9; margin-bottom: 8px; border-radius: 12px; }

.judul-seksi-panduan { font-weight: 700; font-size: 1rem; color: var(--hijau-tua); margin: 0 0 10px; }

/* ---------- Catatan Saya: Ruang Catatan Pribadi ---------- */
.judul-bagian-besar {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--abu); margin: 0 0 4px;
}
.catatan-privasi-box {
  background: #f4efe2; border: 1.5px solid #e6dcc3; border-radius: 12px;
  padding: 10px 14px; margin-top: 14px; font-size: 0.82rem; line-height: 1.6;
}
.catatan-item-box {
  border: 1.5px solid #ece3d5; border-radius: 12px; padding: 12px 14px; margin-top: 10px;
}
.catatan-item-tanggal { font-size: 0.72rem; color: var(--abu); margin: 0 0 2px; }
.catatan-item-diedit { font-style: italic; }
.catatan-item-judul { font-weight: 700; font-size: 0.9rem; color: var(--hijau-tua); margin: 0 0 6px; }
.catatan-item-isi { font-size: 0.88rem; line-height: 1.6; margin: 0; white-space: pre-line; }
.catatan-item-aksi { margin-top: 10px; display: flex; align-items: center; gap: 14px; }
.tautan-aksi {
  background: none; border: none; padding: 0; margin: 0;
  font-family: inherit; font-size: 0.78rem; font-weight: 600; line-height: 1;
  color: var(--hijau-tua); text-decoration: underline; cursor: pointer;
  display: inline-block; vertical-align: baseline;
  -webkit-appearance: none; appearance: none; box-shadow: none; border-radius: 0;
}
.catatan-item-aksi form { display: inline-block; margin: 0; padding: 0; line-height: 1; }
.tautan-hapus { color: #b3261e; }

/* Card sorotan (mis. "Pesan Penting") - dibedakan dari card biasa */
.card-sorot { background: #fff8e8; border: 1.5px solid #f0dfa8; }
.judul-sorot { color: #a5680b; }

/* Card FAQ: 1 pertanyaan + 1 jawaban per card */
.faq-card { }
.faq-tanya { font-weight: 700; font-size: 0.92rem; color: var(--hijau-tua); margin: 0 0 8px; }
.faq-jawab { font-size: 0.9rem; color: var(--coklat-teks); line-height: 1.6; margin: 0; }

/* ---------- Tombol "mata" untuk lihat/sembunyikan PIN ---------- */
.pin-field-wrap { position: relative; }
.pin-field-wrap input[type=password],
.pin-field-wrap input[type=text] { padding-right: 46px; }
.pin-eye-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1.2rem;
  line-height: 1; padding: 8px; color: var(--abu);
}
.pin-eye-btn:hover { color: var(--hijau-tua); }

/* ---------- Pemutar "Suara AI" (narasi audio mp3) ---------- */
.audio-player-wrap {
  background: #f4efe2; border: 1.5px solid #e6dcc3; border-radius: 14px;
  padding: 14px 16px 16px; margin-bottom: 14px;
}
.audio-player-label {
  font-size: 0.78rem; font-weight: 700; color: var(--hijau-tua);
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.audio-bagian-info { font-weight: 400; color: var(--abu); font-size: 0.72rem; }

/* Pemutar custom (menggantikan tampilan <audio controls> bawaan browser) */
.audio-player-custom { display: flex; align-items: center; gap: 14px; }

.audio-play-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--hijau-tua); color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1;
  outline: none;
}
.audio-play-btn:hover { opacity: 0.9; }
.audio-play-btn:focus-visible { box-shadow: 0 0 0 3px rgba(47,82,51,0.25); }

.audio-track-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.audio-time { font-size: 0.72rem; color: var(--abu); }

.audio-vol-btn {
  background: none; border: none; cursor: pointer; font-size: 1.1rem;
  color: var(--hijau-tua); flex-shrink: 0; padding: 2px; outline: none;
}
.audio-vol-btn:focus-visible { box-shadow: 0 0 0 3px rgba(47,82,51,0.25); border-radius: 6px; }

.audio-seek {
  flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px;
  background: #e6dcc3; outline: none; cursor: pointer; min-width: 0;
}
.audio-seek:focus-visible { box-shadow: 0 0 0 3px rgba(47,82,51,0.25); border-radius: 3px; }
.audio-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--hijau-tua); cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #e6dcc3;
}
.audio-seek::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: var(--hijau-tua);
  cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #e6dcc3;
}
.audio-seek::-moz-range-track { height: 6px; border-radius: 3px; background: #e6dcc3; }

/* ---------- Toggle switch (dipakai untuk pengaturan Suara AI) ---------- */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0; background: #d8cdb5;
  border-radius: 24px; transition: 0.2s;
}
.toggle-slider::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--hijau-tua); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Hasil dan Rekomendasi */
.pesan-penguat-box {
  background: #fff8ee; border: 1.5px solid #ffe4b8; border-radius: 12px;
  padding: 12px 14px; font-size: 0.85rem; margin-top: 12px; color: #7a5a1e; font-style: italic;
}
.peringatan-ulangi-box {
  background: #fff2ea; border: 1.5px solid #ffcfae; border-radius: 12px;
  padding: 12px 14px; font-size: 0.85rem; color: #9a4a1f; line-height: 1.5;
}

/* Unduh Ringkasan */
.ringkasan-checklist { list-style: none; padding: 0; margin: 0; font-size: 0.85rem; display: flex; flex-direction: column; gap: 6px; color: var(--coklat-teks); }
.cetak-unit-only { display: none; }
@media print {
  .cetak-unit-only { display: block; font-family: Georgia, 'Times New Roman', serif; color: #2a2a2a; }
  .cetak-header { border-bottom: 2px solid var(--hijau-tua); padding-bottom: 10px; margin-bottom: 16px; }
  .cetak-header h2 { margin: 0 0 2px; font-size: 1.3rem; color: var(--hijau-tua); }
  .cetak-header p { margin: 0 0 10px; font-size: 0.85rem; color: #666; }
  .cetak-info-tabel { border-collapse: collapse; font-size: 0.8rem; }
  .cetak-info-tabel td { padding: 3px 10px 3px 0; vertical-align: top; }
  .cetak-info-tabel td:first-child { font-weight: 700; color: #555; white-space: nowrap; }
  .cetak-bagian { margin-bottom: 18px; page-break-inside: avoid; }
  .cetak-bagian h3 {
    font-size: 1rem; color: var(--hijau-tua); border-bottom: 1px solid #ddd;
    padding-bottom: 4px; margin: 0 0 10px;
  }
  .cetak-item { margin-bottom: 10px; }
  .cetak-label { font-size: 0.82rem; font-weight: 700; color: #444; margin: 0 0 3px; }
  .cetak-jawaban { font-size: 0.88rem; margin: 0; padding-left: 10px; border-left: 2px solid #ddd; text-align: justify; }
}

/* Ringkasan global (Catatan Saya) - dikelompokkan per bagian */
.cetak-unit-judul { font-weight: 700; color: var(--hijau-tua); margin: 18px 0 6px; font-size: 0.95rem; }
.cetak-seksi-judul { font-weight: 700; font-size: 0.78rem; color: var(--oranye); text-transform: uppercase; letter-spacing: 0.03em; margin: 10px 0 6px; }
.cetak-jawaban-box { background: var(--krem); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.cetak-jawaban-label { margin: 0 0 4px; font-size: 0.8rem; font-weight: 600; color: var(--coklat-teks); }
.cetak-jawaban-tanggal { font-weight: 400; color: var(--abu); font-size: 0.72rem; }
.cetak-jawaban-isi { margin: 0; font-size: 0.9rem; text-align: justify; }

@media print {
  .cetak-ringkasan-global { box-shadow: none; }
  .cetak-jawaban-box { break-inside: avoid; border: 1px solid #e5e0d3; }
  .header-app { background: white !important; color: #2a2a2a !important; }
}

.ring-progres {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.ring-progres-inner {
  width: 100px; height: 100px; border-radius: 50%; background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: var(--hijau-tua);
}

/* ================== COVER (halaman pembuka lembut) ================== */
.cover-soft {
  background: linear-gradient(180deg, var(--soft-hijau) 0%, var(--krem) 65%);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 26px;
}
.cover-soft .cover-ikon {
  width: 84px; height: 84px; border-radius: 50%;
  background: white; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 18px; box-shadow: var(--shadow);
}
.cover-soft h1 { font-size: 1.4rem; color: var(--coklat-teks); margin: 0 0 2px; line-height: 1.3; }
.cover-soft .tagline { color: var(--soft-peach-teks); font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.cover-soft .desc { font-size: 0.85rem; color: var(--abu); max-width: 320px; margin: 0 auto 26px; }
.cover-soft .btn-mulai-soft {
  background: var(--hijau); color: white; font-weight: 700; font-size: 0.95rem;
  padding: 14px 38px; border-radius: 30px; border: none; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(74, 124, 80, 0.28);
}
.cover-penulis {
  margin-top: 34px; background: white; border-radius: 14px; padding: 14px 20px;
  font-size: 0.75rem; color: var(--abu); box-shadow: var(--shadow); max-width: 300px;
}
.cover-penulis strong { color: var(--coklat-teks); display: block; font-size: 0.82rem; margin-bottom: 2px; }

/* ================== COVER DENGAN GAMBAR ASLI ================== */
.splash-cover-asli { display: flex; flex-direction: column; min-height: 100vh; }
.cover-img-asli { width: 100%; display: block; }
.splash-cover-bawah { padding: 22px 24px 30px; text-align: center; background: var(--krem); flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ================== PANDUAN AWAL (gabungan kode masuk + panduan) ================== */
.panduan-awal-header {
  background: var(--soft-hijau);
  padding: 26px 20px 20px;
  text-align: center;
}
.panduan-awal-header .pill {
  display: inline-block; background: white; color: var(--soft-hijau-teks);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 10px;
}
.panduan-awal-header h1 { font-size: 1.25rem; margin: 0 0 4px; color: var(--coklat-teks); }
.panduan-awal-header p { font-size: 0.82rem; color: var(--abu); margin: 0; }

.kode-box-besar {
  background: white; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); margin: -16px 16px 14px;
  position: relative; z-index: 2;
}

.peran-mini-grid { display: flex; flex-direction: column; gap: 8px; }
.peran-mini-card {
  display: flex; align-items: center; gap: 10px; background: white; border-radius: 12px;
  padding: 10px 12px; text-decoration: none; color: var(--coklat-teks); box-shadow: var(--shadow);
  font-size: 0.8rem;
}
.peran-mini-card .ikon { width: 34px; height: 34px; border-radius: 50%; background: var(--soft-peach); display:flex; align-items:center; justify-content:center; font-size: 1rem; flex-shrink:0; }

.info-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-grid-card {
  background: white; border-radius: 14px; padding: 14px 12px; text-align: center;
  text-decoration: none; color: var(--coklat-teks); box-shadow: var(--shadow);
}
.info-grid-card .ikon { font-size: 1.5rem; display:block; margin-bottom: 6px; }
.info-grid-card .label { font-size: 0.76rem; font-weight: 700; line-height: 1.3; }

/* ================== FOLDER PER UNIT ================== */
.folder-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 4px 16px 16px;
}
.folder-card {
  background: white; border-radius: 16px; padding: 16px 12px; text-align: center;
  text-decoration: none; color: var(--coklat-teks); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center;
}
.folder-ikon { font-size: 2rem; margin-bottom: 6px; }
.folder-nomor { font-size: 0.7rem; font-weight: 700; color: var(--abu); text-transform: uppercase; letter-spacing: 0.03em; display: flex; align-items: center; justify-content: center; gap: 4px; }
.ikon-status-kecil { font-size: 0.75rem; }
.folder-judul { font-size: 0.82rem; font-weight: 700; margin: 3px 0 4px; line-height: 1.3; min-height: 34px; }
.folder-status { font-size: 0.72rem; color: var(--abu); margin-top: 4px; }
.folder-terkunci { opacity: 0.6; background: var(--krem); }
.folder-thumb-img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: white; border-radius: 10px; margin-bottom: 8px; }

/* ================== SUDUT PENGINGAT ================== */
.pengingat-grid { display: flex; flex-direction: column; gap: 10px; }
.pengingat-card {
  display: block; background: white; border-radius: 14px; padding: 14px 16px;
  text-decoration: none; color: var(--coklat-teks); box-shadow: var(--shadow);
}
.pengingat-ikon {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; margin-bottom: 8px;
}
.pengingat-judul { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.pengingat-desc { font-size: 0.78rem; color: var(--abu); line-height: 1.4; }
