:root {
  --krem: #F1ECE6;
  --putih: #FFFFFF;
  --gelap: #3A3436;
  --gelap-2: #2A2527;
  --rose: #8E5670;          /* aksen teks & ikon aktif */
  --rose-muda: #B98A9B;     /* isi progress */
  --lilac: #EBD3EE;         /* kartu sapaan */
  --lilac-tombol: #E3C6EC;  /* tombol sekunder */
  --lilac-pucat: #F7EEF3;
  --pink-garis: #E7C6D3;
  --abu: #2E2A2C;
  --abu-2: #6A6266;
  --garis: #E6DED6;
  --track: #E8DCD6;
  --hijau-bg: #DDEFD9;
  --hijau: #36623A;
  --coklat-bg: #F1E2D4;
  --coklat: #6B4423;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--krem);
  color: var(--abu);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose); }
a:hover { color: var(--gelap); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s;
}
.btn-utama, .btn-gelap { background: var(--gelap); color: #fff; }
.btn-utama:hover, .btn-gelap:hover { background: var(--gelap-2); color: #fff; }
.btn-lilac { background: var(--lilac-tombol); color: var(--abu); }
.btn-lilac:hover { background: #D9B5E5; color: var(--abu); }
.btn-garis { border-color: var(--gelap); color: var(--gelap); background: transparent; }
.btn-garis:hover { background: #fff; color: var(--gelap); }
.btn-kecil { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-penuh { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Header situs */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(241, 236, 230, 0.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--garis);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--abu); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--rose); }
.menu-btn, .ikon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--garis); background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--abu);
}
.menu-btn { display: none; }
.ikon-btn { display: inline-flex; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--krem); padding: 4px 20px 20px; border-bottom: 1px solid var(--garis);
  }
  .nav.buka { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--garis); }
  .nav .btn { margin-top: 14px; }
}

.label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rose); background: var(--lilac); padding: 6px 12px; border-radius: 999px;
}

/* Hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); margin: 18px 0; }
.hero h1 span { color: var(--rose); }
.hero p { font-size: 17px; color: #4E474B; max-width: 520px; }
.hero-aksi { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-foto { position: relative; }
.hero-foto .utama { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.hero-foto .kecil {
  position: absolute; left: -28px; bottom: -28px; width: 42%; aspect-ratio: 1; object-fit: cover;
  border-radius: 20px; border: 6px solid var(--krem);
}
.hero-chip {
  position: absolute; top: 20px; right: -12px; background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(46, 42, 44, .12); display: flex; gap: 10px; align-items: center; max-width: 240px;
  font-size: 13px; line-height: 1.4;
}
.hero-chip strong { display: block; font-size: 14px; }
.ikon-bulat {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--lilac); color: var(--rose);
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 860px) {
  .hero { padding: 28px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-foto { margin: 0 8px 0 18px; }
  .hero-foto .kecil { left: -18px; bottom: -20px; }
  .hero-chip { right: -8px; }
}

/* Seksi umum */
.seksi { padding: 72px 0; }
.seksi-putih { background: #FAF7F3; }
.judul-seksi { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 640px; }
.judul-seksi h2 { font-size: clamp(28px, 4vw, 40px); }
.sub { color: var(--abu-2); font-size: 16px; }
@media (max-width: 860px) { .seksi { padding: 56px 0; } }

/* Cara belajar */
.langkah { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.langkah-kartu { background: #fff; border: 1px solid var(--garis); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.langkah-kartu img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.langkah-kartu .tanpa-foto {
  aspect-ratio: 4 / 3; background: var(--lilac); color: var(--abu); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; font-weight: 700;
}
.langkah-isi { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.nomor {
  width: 32px; height: 32px; border-radius: 50%; background: var(--gelap); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.langkah-isi h3 { font-size: 19px; }
.langkah-isi p { color: var(--abu-2); font-size: 15px; }
@media (max-width: 860px) { .langkah { grid-template-columns: 1fr; } }

/* Program */
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--garis); background: #fff;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--abu); cursor: pointer;
}
.chip:hover { border-color: var(--gelap); }
.chip.aktif { background: var(--gelap); border-color: var(--gelap); color: #fff; }
.grid-program { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kartu { background: #fff; border: 1px solid var(--garis); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.kartu[hidden] { display: none; }
.kartu .foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.foto-kosong {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--lilac); color: var(--abu); font-weight: 700; font-size: 14px;
}
.foto-kosong.krem { background: var(--coklat-bg); color: var(--coklat); }
.kartu .isi { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.b-blended { background: var(--lilac); color: #5E3550; }
.b-online, .b-hijau { background: var(--hijau-bg); color: var(--hijau); }
.b-tatap { background: var(--coklat-bg); color: var(--coklat); }
.b-abu { background: #EAE3DC; color: var(--abu-2); }
.kartu h3 { font-size: 19px; }
.porsi { font-size: 14px; color: var(--abu-2); }
.kartu .bawah {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid #EEE8E0; padding-top: 14px; margin-top: auto;
}
.harga strong { display: block; font-size: 16px; }
.harga span { font-size: 12px; color: var(--abu-2); }
.semua-program { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 960px) { .grid-program { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-program { grid-template-columns: 1fr; } }

/* Galeri */
.galeri { columns: 3 240px; column-gap: 16px; }
.galeri figure { margin: 0 0 16px; break-inside: avoid; }
.galeri img { width: 100%; border-radius: 20px; }
.galeri figcaption { font-size: 13px; color: var(--abu-2); padding: 8px 4px 0; }
.galeri figcaption strong { color: var(--abu); font-size: 14px; }
.catatan { font-size: 13px; color: var(--abu-2); margin-top: 8px; }

/* Kegiatan */
.kegiatan { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.kegiatan img { width: 100%; border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; }
.kegiatan .teks { display: flex; flex-direction: column; gap: 14px; }
.kegiatan h2 { font-size: clamp(28px, 4vw, 38px); }
.poin { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.poin li { display: flex; gap: 10px; align-items: flex-start; }
.poin svg { flex: none; margin-top: 3px; }
@media (max-width: 860px) { .kegiatan { grid-template-columns: 1fr; gap: 28px; } }

/* CTA */
.cta {
  background: var(--lilac); color: var(--abu); border-radius: 28px; padding: 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta h2 { font-size: clamp(26px, 4vw, 38px); }
.cta p { color: #4E474B; margin-top: 10px; max-width: 520px; }
.cta-aksi { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Footer */
.footer { background: var(--gelap); color: var(--krem); padding: 56px 0 28px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer img { height: 46px; width: auto; }
.footer h3 { font-size: 15px; margin-bottom: 12px; }
.footer p, .footer li { color: #DDD5CF; font-size: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: #DDD5CF; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.kredit {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid #514A4D;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #BDB3B8;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===================== Area murid ===================== */
.app { max-width: 560px; margin: 0 auto; padding: 16px 20px 120px; }
.app-head { position: sticky; top: 0; z-index: 30; background: rgba(241, 236, 230, .96); }
.app-head .isi-head {
  max-width: 560px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.app-head .logo img { height: 36px; }
.judul-hal { display: flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 800; text-decoration: none; color: var(--abu); min-height: 44px; }
.judul-hal:hover { color: var(--rose); }
.subjudul { font-size: 14px; color: var(--abu-2); margin-top: -2px; }

/* Navigasi bawah, 5 menu */
.bawah-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--garis);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
}
.bawah-nav .isi-nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bawah-nav a {
  min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--abu-2); font-size: 12px; font-weight: 600;
}
.bawah-nav a[aria-current="page"] { color: var(--rose); font-weight: 800; }

/* Kartu sapaan */
.sapa-kartu {
  background: var(--lilac); border-radius: 26px; padding: 22px 18px 22px 22px;
  display: grid; grid-template-columns: 1fr 108px; gap: 14px; align-items: center; margin-top: 8px;
}
.sapa-kartu h1 { font-size: 28px; }
.sapa-kartu p { color: #54484F; font-size: 14px; margin: 8px 0 16px; line-height: 1.5; }
.lengkung { width: 108px; height: 150px; object-fit: cover; border-radius: 54px 54px 16px 16px; }

.progres-kepala { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; }
.progres-kepala strong { font-size: 16px; }
.progres-kepala span { font-weight: 800; }
.progres { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; margin-top: 8px; }
.progres div { height: 100%; background: var(--rose-muda); border-radius: 999px; }

.blok { margin-top: 28px; }
.blok > h2 { font-size: 18px; margin-bottom: 12px; }

/* Kartu daftar kelas */
.kelas-item {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--garis);
  border-radius: 20px; padding: 12px; margin-bottom: 10px; text-decoration: none; color: var(--abu);
}
.kelas-item:hover { border-color: var(--rose-muda); color: var(--abu); }
.kelas-item img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.kelas-item strong { display: block; font-size: 16px; }
.kelas-item span { font-size: 13px; color: var(--abu-2); }

/* Daftar baris (sesi, bagian video, tugas) */
.daftar { background: #fff; border: 1px solid var(--garis); border-radius: 20px; padding: 6px 0; margin: 0; list-style: none; overflow: hidden; }
.daftar a, .daftar .baris, .daftar button {
  width: 100%; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 16px;
  text-decoration: none; color: var(--abu); border: none; background: transparent; font: inherit; text-align: left; cursor: pointer;
}
.daftar .baris { cursor: default; }
.daftar a:hover, .daftar button:hover { background: #FBF8F5; }
.daftar .sekarang, .daftar button[aria-pressed="true"] { background: var(--lilac-pucat); }
.titik {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; background: #F0EAE4; color: var(--abu-2);
}
.titik.selesai { background: var(--hijau-bg); color: var(--hijau); }
.titik.aktif, .daftar button[aria-pressed="true"] .titik { background: var(--gelap); color: #fff; }
.daftar .teks { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.daftar .teks strong { font-size: 15px; font-weight: 600; }
.daftar .teks span { font-size: 13px; color: var(--abu-2); }

/* Video sesi */
.video { position: relative; border-radius: 22px; overflow: hidden; background: var(--gelap); aspect-ratio: 16 / 9; margin-top: 8px; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video .putar {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; border: none;
  background: var(--krem); color: var(--gelap); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.video .bagian-label {
  position: absolute; left: 14px; top: 12px; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(42, 37, 39, .75); padding: 5px 9px; border-radius: 8px;
}
.video .watermark { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: rgba(255, 255, 255, .8); }

.unduh {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--garis); border-radius: 18px; padding: 14px 16px;
  text-decoration: none; color: var(--abu); margin-bottom: 10px;
}
.unduh:hover { border-color: var(--rose-muda); color: var(--abu); }
.unduh .teks { flex: 1; display: flex; flex-direction: column; }
.unduh .teks strong { font-size: 15px; font-weight: 600; }
.unduh .teks span { font-size: 13px; color: var(--abu-2); }
.pdf {
  flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--coklat-bg); color: var(--coklat);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}

/* Upload tugas */
.tugas { background: #fff; border: 1px solid var(--garis); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.tugas p { color: var(--abu-2); font-size: 14px; }
.unggah {
  border: 2px dashed var(--pink-garis); border-radius: 18px; padding: 26px 16px; background: var(--lilac-pucat);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: pointer;
}
.unggah:hover { border-color: var(--rose); }
.unggah strong { font-size: 15px; }
.unggah span { font-size: 13px; color: var(--abu-2); }
.unggah img { max-height: 220px; border-radius: 12px; }
.input-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.input-file:focus-visible + .unggah { outline: 3px solid var(--rose); outline-offset: 3px; }
.berhasil {
  display: flex; gap: 12px; align-items: center; background: var(--hijau-bg); color: var(--hijau);
  border-radius: 16px; padding: 14px 16px;
}
.berhasil span { display: block; font-size: 14px; }
[hidden] { display: none !important; }

/* Booking */
.bulan { font-size: 17px; font-weight: 800; margin: 18px 0 10px; }
.kalender { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.kalender .hari { text-align: center; font-size: 12px; font-weight: 600; color: #9A8F94; background: #E9E2DB; border-radius: 10px; padding: 8px 0; }
.tgl {
  min-height: 44px; border-radius: 12px; border: 1px solid transparent; background: #fff; font: inherit; font-weight: 600; font-size: 15px;
  color: var(--abu); cursor: pointer;
}
.tgl:hover:not(:disabled) { border-color: var(--rose-muda); }
.tgl[aria-pressed="true"] { background: var(--gelap); color: #fff; }
.tgl:disabled { background: #E9E2DB; color: #A79DA2; cursor: not-allowed; }
.slot {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  background: #fff; border: 1.5px solid var(--garis); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px;
  font: inherit; color: var(--abu); cursor: pointer;
}
.slot strong { display: block; font-size: 17px; }
.slot span.ket { font-size: 13px; color: var(--abu-2); }
.slot[aria-pressed="true"] { border: 2px solid var(--rose); box-shadow: 0 0 0 3px var(--lilac-pucat); }
.slot:disabled { background: #F7F3EF; color: #A79DA2; cursor: not-allowed; }
.slot:disabled .ket { color: #A79DA2; }
.catatan-kecil { text-align: center; font-size: 13px; color: var(--abu-2); margin-top: 10px; }

/* Penilaian */
.foto-karya { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; border-radius: 20px; margin-top: 8px; }
.rubrik { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.rubrik div {
  display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--garis);
  border-radius: 14px; padding: 12px 16px; font-size: 15px; font-weight: 600;
}
.rubrik b { font-weight: 800; }
.feedback {
  background: var(--lilac-pucat); border: 1px solid var(--pink-garis); border-radius: 16px; padding: 14px 16px;
  font-size: 15px; line-height: 1.55; margin-top: 12px; display: flex; gap: 10px;
}
.feedback svg { flex: none; margin-top: 3px; }
.dua-tombol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* Halaman masuk */
.masuk-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.masuk-foto { background: center / cover no-repeat url('img/pola-2.jpg'); }
.masuk-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(20px, 6vw, 80px); gap: 22px; }
.masuk-form .logo img { height: 48px; }
.masuk-form h1 { font-size: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input {
  min-height: 50px; border-radius: 14px; border: 1.5px solid var(--garis); background: #fff; padding: 0 16px;
  font: inherit; font-size: 15px; color: var(--abu);
}
.field input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--lilac); }
@media (max-width: 760px) {
  .masuk-wrap { grid-template-columns: 1fr; }
  .masuk-foto { height: 220px; }
}

/* ===================== Aplikasi (murid, guru, owner) ===================== */
.app-lebar { max-width: 1080px; margin: 0 auto; padding: 20px 20px 120px; }
.app-head .isi-head.lebar { max-width: 1080px; }
.tab-atas { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tab-atas a {
  min-height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
  text-decoration: none; color: var(--abu-2); font-weight: 600; font-size: 14px;
}
.tab-atas a:hover { background: #fff; color: var(--abu); }
.tab-atas a[aria-current="page"] { background: var(--gelap); color: #fff; }
.bawah-nav.mobile-saja { display: none; }
@media (max-width: 860px) {
  .tab-atas.desktop-saja { display: none; }
  .bawah-nav.mobile-saja { display: block; }
}
@media (min-width: 861px) {
  .bawah-nav.sembunyi-desktop { display: none; }
}
.peran { font-size: 12px; font-weight: 700; color: var(--abu-2); background: #fff; border: 1px solid var(--garis); padding: 4px 10px; border-radius: 999px; }

.judul-app { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.judul-app h1 { font-size: clamp(24px, 4vw, 30px); }
.judul-app p { color: var(--abu-2); font-size: 14px; margin-top: 4px; }

.panel { background: #fff; border: 1px solid var(--garis); border-radius: 22px; padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 17px; margin-bottom: 12px; }
.panel-kepala { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-kepala h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-2 > .panel + .panel { margin-top: 0; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* Kartu statistik */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 960px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: #fff; border: 1px solid var(--garis); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat .lbl { font-size: 13px; color: var(--abu-2); font-weight: 600; }
.stat .nilai { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat .nilai small { font-size: 15px; color: var(--abu-2); font-weight: 600; }
.stat .ket { font-size: 12px; color: var(--abu-2); }
.stat.sorot { background: var(--lilac); border-color: var(--lilac); }
.target { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.target.ok { color: var(--hijau); }
.target.kurang { color: #9A3B22; }

/* Grafik batang sederhana */
.grafik { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; height: 170px; padding-top: 10px; }
.grafik .kol { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.grafik .batang { width: 100%; max-width: 28px; border-radius: 8px 8px 4px 4px; background: var(--rose-muda); min-height: 3px; }
.grafik .batang.nol { background: var(--track); }
.grafik .angka { font-size: 11px; font-weight: 700; color: var(--abu); }
.grafik .tgl-lbl { font-size: 10px; color: var(--abu-2); }
.bar-baris { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid #F0EAE4; }
.bar-baris:last-child { border-bottom: none; }
.bar-baris .atas { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.bar-baris .atas span { color: var(--abu-2); font-size: 13px; }

/* Tabel */
.tabel-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabel th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--abu-2); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--garis); white-space: nowrap; }
.tabel td { padding: 12px 10px; border-bottom: 1px solid #F0EAE4; vertical-align: middle; }
.tabel tr:last-child td { border-bottom: none; }
.tabel .aksi { display: flex; gap: 6px; flex-wrap: wrap; }

/* Form */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-baris { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .form-baris { grid-template-columns: 1fr; } }
.field select, .field textarea {
  min-height: 50px; border-radius: 14px; border: 1.5px solid var(--garis); background: #fff; padding: 12px 14px;
  font: inherit; font-size: 15px; color: var(--abu);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--lilac); }
.field .bantu { font-size: 12px; color: var(--abu-2); }
.pilihan { display: flex; gap: 8px; flex-wrap: wrap; }
.pilihan label { position: relative; }
.pilihan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pilihan span {
  min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--garis); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer;
}
.pilihan input:checked + span { background: var(--gelap); border-color: var(--gelap); color: #fff; }
.pilihan input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 2px; }
.btn-teks { background: none; border: none; color: var(--rose); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 40px; padding: 0 6px; }
.btn-teks.bahaya { color: #9A3B22; }
.btn-teks:hover { text-decoration: underline; }

/* Kosong, toast, modal */
.kosong { text-align: center; color: var(--abu-2); padding: 28px 12px; font-size: 14px; }
.kosong strong { display: block; color: var(--abu); font-size: 16px; margin-bottom: 4px; }
.memuat { padding: 40px 0; text-align: center; color: var(--abu-2); }
#toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px);
  background: var(--gelap); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s;
}
#toast.tampil { opacity: 1; }
#toast.salah { background: #9A3B22; }
dialog.modal { border: none; border-radius: 24px; padding: 22px; width: min(520px, calc(100% - 32px)); background: var(--krem); color: var(--abu); }
dialog.modal::backdrop { background: rgba(42, 37, 39, .45); }
dialog.modal h2 { font-size: 20px; margin-bottom: 14px; }
.kotak-sandi { background: #fff; border: 1.5px dashed var(--rose-muda); border-radius: 14px; padding: 14px; font-family: ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 700; text-align: center; letter-spacing: .05em; }

.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--gelap); margin-top: 8px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-kosong { aspect-ratio: 16 / 9; border-radius: 20px; background: var(--gelap); color: #E9E2DB; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; margin-top: 8px; }
.foto-tugas { width: 100%; max-height: 520px; object-fit: contain; background: #F5F0EA; border-radius: 18px; }
.navi-sesi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.tgl-chip-wrap { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.tgl-chip {
  flex: none; min-width: 64px; min-height: 64px; border-radius: 16px; border: 1px solid var(--garis); background: #fff; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--abu);
}
.tgl-chip small { font-size: 11px; color: var(--abu-2); font-weight: 600; }
.tgl-chip b { font-size: 18px; }
.tgl-chip[aria-pressed="true"] { background: var(--gelap); border-color: var(--gelap); color: #fff; }
.tgl-chip[aria-pressed="true"] small { color: #E9E2DB; }
.baris-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F0EAE4; }
.baris-info:last-child { border-bottom: none; }
.baris-info .kiri { display: flex; flex-direction: column; min-width: 0; }
.baris-info .kiri span { font-size: 13px; color: var(--abu-2); }
.peringatan { background: #FBEDE6; color: #7A2E17; border-radius: 14px; padding: 12px 14px; font-size: 14px; }
