/* Simulasi dasbor (/coba). Kelas .km-* = tiruan tampilan kontenmu.id; sisanya bingkai situs panduan. */
/* Halaman penuh: bilah atas tetap, layar tiruan mengisi sisanya. Daftar latihan = laci kiri (tertutup bawaan), petunjuk = popup di atas layar. */
body.coba-penuh { margin: 0; height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: #e2e8f0; }
.sim-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 8px 16px; background: #fef3c7; border-bottom: 2px solid #f59e0b; color: #78350f; }
.sim-kembali { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 10px; background: #fff; border: 1.5px solid #f59e0b; color: #78350f; font-weight: 700; text-decoration: none; }
.sim-label { margin: 0; flex: 1; min-width: 100px; font-size: 15px; }
@media (max-width: 1400px) { .sim-label span { display: none; } }
.sim-label b { padding: 2px 8px; border-radius: 6px; background: #78350f; color: #fff; letter-spacing: 0.04em; }
.sim-asli { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.coba-peran { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(120, 53, 15, 0.08); }
.coba-peran button { min-height: 34px; padding: 4px 14px; border-radius: 999px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; color: #78350f; }
.coba-peran button[aria-pressed="true"] { background: var(--teal); color: #fff; }

.sim { position: relative; display: grid; min-height: 0; }
.sim-panel { position: absolute; inset: 0 auto 0 0; z-index: 30; width: min(340px, 88vw); box-sizing: border-box; overflow: auto; padding: 16px; background: var(--cream); border-right: 1px solid #f3d38b; box-shadow: 12px 0 32px rgba(15, 23, 42, 0.25); display: flex; flex-direction: column; gap: 14px; }
.sim-panel[hidden] { display: none; }
.panel-kepala { display: flex; justify-content: space-between; align-items: center; }
.panel-kepala button { min-height: 36px; padding: 4px 12px; border-radius: 8px; border: 1px solid #f3d38b; background: #fff; color: #78350f; font: inherit; font-weight: 700; cursor: pointer; }
.misi-grup { margin: 6px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #92400e; }
.pemandu { position: absolute; z-index: 15; right: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); max-height: calc(100% - 80px); overflow: auto; box-sizing: border-box; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 2px solid #f59e0b; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3); }
.pemandu { padding-right: 44px; }
.pm-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: #fef3c7; color: #78350f; font-size: 20px; line-height: 1; cursor: pointer; }
.pm-buka { position: absolute; z-index: 15; right: 16px; bottom: 16px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid #f59e0b; background: #fff; color: #78350f; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25); }
.pm-buka[hidden] { display: none; }
.pemandu.pm-kiri { right: auto; left: 16px; }
.pemandu.pm-atas { bottom: auto; top: 52px; }
.pemandu[hidden] { display: none; }
.pemandu p { margin: 0; }
.pm-no { font-size: 14px; font-weight: 700; color: #92400e; }
.pm-tip { margin-top: 6px !important; font-size: 17px; line-height: 1.5; }
.pm-salah { margin-top: 8px !important; padding: 8px 10px; border-radius: 8px; background: #fef2f2; border-left: 4px solid #dc2626; color: #991b1b; font-weight: 700; }
.pm-bantu { margin-top: 10px !important; font-size: 14px; color: var(--muted); }
.pm-bantu a { font-weight: 700; }
.pm-aksi { margin-top: 12px !important; display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; }
.pm-ulang { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 24px; }
.sim-tautan { margin: auto 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

.bingkai { display: grid; grid-template-rows: auto 1fr; min-height: 0; min-width: 0; }
.bingkai-alamat { margin: 0; padding: 6px 14px; background: #f1f5f9; border-bottom: 1px solid #cbd5e1; font-size: 14px; color: #334155; display: flex; justify-content: space-between; gap: 12px; }
.bingkai-alamat > span { padding: 2px 12px; border-radius: 999px; background: #fff; }
.bingkai-alamat b { color: #92400e; font-size: 13px; }
.layar { position: relative; min-height: 0; overflow: auto; display: grid; user-select: none; -webkit-user-select: none; background: #fff; }

.sim-bantu { min-height: 40px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid #f59e0b; background: #fff; color: #78350f; font: inherit; font-weight: 700; cursor: pointer; }

/* Popup cara pakai */
.intro { width: min(560px, calc(100% - 32px)); box-sizing: border-box; padding: 24px 26px; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35); }
.intro::backdrop { background: rgba(15, 23, 42, 0.6); }
.intro h2 { margin: 0 0 8px; font-size: 24px; }
.intro p { margin: 0 0 12px; color: var(--muted); }
.intro ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; }
.intro ol span { font-size: 15px; color: var(--muted); }
.intro-aksi { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }

/* Demo: tanpa daftar latihan dan petunjuk, seperti website aslinya. */
body.mode-demo #buka-panel, body.mode-demo .sim-panel, body.mode-demo .pemandu { display: none; }

/* Pesan salah pilih / catatan, melayang di atas layar tiruan. */
.bingkai { position: relative; }
.sim-toast { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20; width: min(560px, calc(100% - 32px)); box-sizing: border-box; padding: 14px 44px 14px 16px; border-radius: 12px; background: #1e293b; color: #f1f5f9; font-size: 15px; line-height: 1.5; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35); }
.sim-toast p { margin: 0; }
.sim-toast p + p { margin-top: 8px; }
.sim-toast a { color: #fde68a; font-weight: 700; }
.sim-toast-salah { background: #7f1d1d; border-left: 6px solid #fca5a5; }
.sim-toast-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
	.sim-toast { position: fixed; bottom: 12px; }
	/* layar sempit: halaman digulir biasa, petunjuk jadi lembar di bawah layar HP */
	body.coba-penuh { display: block; height: auto; overflow: visible; }
	.sim { display: block; }
	.sim-panel { position: fixed; top: 0; }
	.pm-buka { position: fixed; bottom: 12px; }
	.pemandu, .pemandu.pm-kiri, .pemandu.pm-atas { position: fixed; inset: auto 8px 8px 8px; width: auto; max-height: 40vh; }
	.layar { overflow: visible; min-height: 560px; padding-bottom: 40vh; }
	.sim-label span { display: none; }
	/* HP: kontrol simulasi satu strip geser, bukan 5 baris; padding = ruang lingkaran sasaran */
	.sim-bar { flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; gap: 10px; scrollbar-width: none; }
	.sim-bar > * { flex: none; }
	.sim-label { min-width: 0; }
}

/* sasaran: lingkaran kuning, sama dengan screenshot panduan */
.sasaran { outline: 3px solid #f59e0b !important; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.25) !important; animation: denyut 1.6s ease-in-out infinite; }
@keyframes denyut { 50% { box-shadow: 0 0 0 11px rgba(245, 158, 11, 0.12); } }
@media (prefers-reduced-motion: reduce) { .sasaran { animation: none; } }

/* ---------- tiruan kontenmu.id ---------- */
/* Nilai diambil dari CSS kontenmu.id/dashboard (10 Nov 2026). */
.km { position: relative; display: grid; grid-template-columns: 260px 1fr; font-family: "Segoe UI", system-ui, sans-serif; font-size: 14px; color: #0f172a; }
.km button { font: inherit; cursor: pointer; }
.km button:disabled, .km input:disabled, .km select:disabled { cursor: default; }
.km h4 { margin: 0 0 6px; font-size: 20px; }
.km-side { background: #2c3e50; color: #fff; display: flex; flex-direction: column; }
.km-logo { margin: 0; padding: 12px 24px; height: 60px; box-sizing: border-box; display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #3498db; }
.km-logo b { color: #fff; font-weight: 400; }
.km-logo-ikon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #3498db, #14b8a6); color: #fff; }
.km-side nav { padding: 18px 16px 12px 12px; display: grid; gap: 4px; }
.km-side nav button { display: flex; gap: 16px; align-items: center; text-align: left; height: 46px; padding: 6px 12px 6px 16px; border: 0; border-left: 4px solid transparent; border-radius: 6px; background: none; color: #fff; font-size: 14.8px; font-weight: 500; }
.km-side nav button span { opacity: 0.8; }
.km-side nav button svg { color: #64748b; flex: none; }
.km-side nav button[aria-current] { background: rgba(255, 255, 255, 0.1); border-left-color: #3498db; }
.km-side nav button[aria-current] span { opacity: 1; }
.km-side nav button[aria-current] svg { color: #fff; }
.km-sesi { margin: auto 16px 16px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 11px; letter-spacing: 0.06em; color: #94a3b8; }
.km-sesi b { color: #cbd5e1; font-size: 15px; letter-spacing: 0; }
.km-main { display: flex; flex-direction: column; background: #f3f4f6; min-width: 0; }
.km-top { display: flex; align-items: center; gap: 16px; height: 60px; box-sizing: border-box; padding: 0 24px 0 30px; background: #fff; border-bottom: 1px solid rgba(148, 163, 184, 0.2); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); }
.km-back, .km-tombol { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 10px; background: rgba(148, 163, 184, 0.06); color: #475569; flex: none; }
.km-judul { margin: 0; font-weight: 750; font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-jam { margin: 0 8px 0 0; display: grid; text-align: right; line-height: 1.2; }
.km-jam b { font-size: 15.2px; }
.km-jam span { font-size: 11px; font-weight: 600; color: #475569; }
.km-user { margin: 0; display: flex; gap: 10px; align-items: center; padding-left: 16px; border-left: 1px solid rgba(148, 163, 184, 0.3); }
.km-user span:last-child { display: grid; line-height: 1.25; }
.km-user b { font-weight: 750; }
.km-user small { color: #64748b; font-size: 11.5px; }
.km-ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #3498db, #14b8a6); color: #fff; font-weight: 700; font-size: 13px; }
.km-isi { flex: 1; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.km-foot { display: flex; justify-content: space-between; align-items: center; height: 50px; box-sizing: border-box; padding: 0 24px; background: #2c3e50; border-top: 3px solid #3498db; color: #bdc3c7; font-size: 12px; }
.km-kartu { background: #fafafa; border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
.km-kartu > p, .km-kartu-kepala p { margin: 2px 0 14px; color: #475569; }
.km-kartu h4 { font-size: 20px; font-weight: 750; }
.km-statistik { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.km-tunggu { max-width: 420px; justify-self: center; text-align: center; margin-top: 30px; }
.km-ok { background: #dcfce7; color: #166534 !important; padding: 8px; border-radius: 8px; margin: 8px 0 !important; }

.km-tirai { position: absolute; inset: 0; z-index: 4; background: rgba(15, 23, 42, 0.55); display: grid; justify-items: center; align-items: start; padding: 70px 16px 16px; overflow: auto; }
.km-modal { width: min(520px, 100%); background: #e5e7eb; border-radius: 12px; padding: 24px; text-align: center; }
.km-modal p { color: #475569; margin: 6px 0 14px; }
.km-segitiga { font-size: 34px; color: #f59e0b !important; margin: 0 !important; }
.km-gelap { background: #111a2e; color: #fff; }
.km-gelap p { color: #e2e8f0; }
.km-catatan { background: #dbe4f0; color: #1d4ed8 !important; text-align: left; padding: 12px; border-radius: 8px; }
.km-garis { width: 100%; min-height: 44px; background: #f3f4f6; border: 1px solid #94a3b8; border-radius: 4px; }
.km-hijau { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 8px; background: #10b981; color: #062e22; font-weight: 700; }
.km-form { text-align: left; max-height: 100%; overflow: auto; }
.km-form h4, .km-form .km-sub { text-align: center; }
.km-form label, .km-label { display: block; font-weight: 600; margin: 12px 0 4px; color: #0f172a; }
.km-form input, .km-form select { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; font: inherit; color: #0f172a; }
.km-form input:disabled, .km-form select:disabled { background: #f8fafc; color: #334155; }
.km-sub { font-size: 13px; margin: 4px 0 !important; }
.km-saran { list-style: none; margin: 4px 0 0; padding: 4px; background: #fff; border: 1px solid #cbd5e1; border-radius: 9px; display: grid; gap: 4px; }
.km-saran button { width: 100%; text-align: left; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 7px; background: #f1f5f9; }
.km-saran small { color: #475569; }
.km-file { margin: 0 !important; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #cbd5e1; border-radius: 9px; padding: 8px 12px; color: #0f172a !important; }
.km-file button { min-height: 32px; padding: 4px 10px; border: 1px solid #94a3b8; border-radius: 4px; background: #f3f4f6; }
.km-simpan { width: 100%; margin-top: 18px; min-height: 44px; border: 0; border-radius: 9px; background: #0284c7; color: #fff; font-weight: 700; }
.km-simpan:disabled { background: #7aa7c7; }

.km-login { background: radial-gradient(700px 400px at 50% 0%, #12345a, #0b1324 70%); display: grid; place-items: center; padding: 30px 16px; }
.km-login-kartu { width: min(400px, 100%); background: #1b2638; border: 1px solid #334155; border-radius: 16px; padding: 26px; color: #e2e8f0; text-align: center; font-family: "Segoe UI", system-ui, sans-serif; }
.km-login-kartu h4 { margin: 10px 0 4px; font-size: 24px; }
.km-login-kartu h4 span { color: #38bdf8; }
.km-login-kartu p { margin: 0 0 14px; color: #cbd5e1; }
.km-login-kartu label { display: block; text-align: left; margin: 10px 0 4px; font-weight: 600; }
.km-login-kartu input { width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 9px; border: 1px solid #334155; background: #0f172a; color: #e2e8f0; font: inherit; }
.km-login-ikon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #0ea5e9; color: #fff; }
.km-masuk { width: 100%; margin-top: 16px; min-height: 44px; border: 0; border-radius: 9px; background: #fff; color: #0f172a; font-weight: 700; opacity: 0.6; }
.km-atau { margin: 16px 0 10px !important; font-size: 14px; color: #94a3b8 !important; }
.km-muid { width: 100%; min-height: 46px; border: 0; border-radius: 9px; background: #0284c7; color: #fff; font-weight: 700; font-size: 17px; }

.km-tabel { overflow-x: auto; }
.km-tabel table { width: 100%; border-collapse: collapse; min-width: 620px; }
.km-tabel th { text-align: left; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: #475569; background: #f1f5f9; padding: 10px; }
.km-tabel td { white-space: nowrap; padding: 10px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.km-tabel td:nth-child(2) { white-space: normal; }
.km-h-kecil { font-size: 15px !important; }
.km-tabel td small { display: block; color: #475569; }
.km-tabel img { border-radius: 8px; object-fit: cover; pointer-events: none; }
.km-jenis { font-weight: 600; font-size: 14px; }
.km-jenis-infografis { color: #b45309; }
.km-jenis-video { color: #1d4ed8; }
.km-jenis-game { color: #7e22ce; }
.km-putar { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: #16a34a; color: #fff; }
.km-belum { font-size: 13px; color: #475569; }

.km-pemutar { width: min(900px, 100%); background: #0f172a; color: #fff; padding: 12px; text-align: left; }
.km-pemutar-kepala { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.km-pemutar-kepala button { min-height: 36px; padding: 6px 14px; border: 1px solid #475569; border-radius: 8px; background: #1e293b; color: #fff; }
.km-media { position: relative; }
.km-media video, .km-media canvas, .km-media iframe { display: block; width: 100%; max-height: 70vh; object-fit: contain; border: 0; border-radius: 8px; background: #000; }
.km-media iframe { aspect-ratio: 16 / 9; background: #fff; }
.km-tanda { position: absolute; right: 10px; top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.45); font-size: 12px; pointer-events: none; }
.km-gagal { color: #fecaca; }

/* ---------- halaman dalam dasbor ---------- */
.misi-judul { margin: 0 0 6px; font-weight: 700; color: #92400e; font-size: 14px; }
.misi { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.misi button { min-height: 36px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.misi button[aria-current] { border-color: var(--teal); background: var(--teal-soft); font-weight: 700; }
.pm-bebas { margin-top: 6px !important; color: var(--muted); }
.pm-catatan { margin-top: 8px !important; color: #1e40af; font-weight: 600; }

.km-stat { display: flex; gap: 18px; align-items: flex-start; }
.km-stat > div { display: grid; gap: 2px; }
.km-stat small { color: #475569; letter-spacing: 0.06em; font-weight: 600; font-size: 13px; }
.km-stat b { font-size: 26px; line-height: 1.2; }
.km-stat span:not(.km-stat-ikon) { color: #475569; font-size: 13.5px; }
.km-stat-ikon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; font-size: 22px; }
.km-w-ungu { background: #ede9fe; color: #7c3aed; }
.km-w-hijau { background: #dcfce7; color: #16a34a; }
.km-w-biru { background: #e0f2fe; color: #0284c7; }
.km-w-jingga { background: #ffedd5; color: #ea580c; }
.km-w-abu { background: #f1f5f9; border: 1px solid #e2e8f0; }
.km-stat .km-hijau-teks, .km-hijau-teks { color: #15803d !important; font-weight: 600; }
.km-empat { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.km-empat .km-kartu { background: #fff; border: 1px solid #eef2f6; }

.km-kartu-kepala { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.km-tbiru { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 8px; background: #3498db; color: #fff; font-weight: 600; box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3); white-space: nowrap; }
.km-tbiru:disabled { background: #93c5e8; box-shadow: none; }
.km-tgaris { min-height: 36px; padding: 6px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a; font-weight: 600; }
.km-tkecil { font-weight: 400; color: #475569; }
.km-tautan { border: 0; background: none; color: #0369a1; text-decoration: underline; padding: 0; min-height: 24px; }
.km-tombol-baris { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 !important; }

.km-cari { display: flex; align-items: center; gap: 8px; max-width: 340px; flex: 1; min-height: 44px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #475569; }
.km-cari input { border: 0; outline: 0; font: inherit; flex: 1; min-width: 0; background: none; color: #0f172a; }
.km-cari:focus-within { border-color: #3498db; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); }
.km-saring { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.km-saring select { min-height: 44px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; font: inherit; color: #0f172a; }
.km-dorong { flex: 1; }
.km-ringkas { text-align: right; font-weight: 600; color: #334155 !important; margin: 8px 0 !important; }
.km-kiri { text-align: left !important; }
.km-hal { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; color: #334155; }
.km-hal button { width: 38px; height: 38px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; font-size: 18px; }

.km-td-judul { font-size: 15px; }
.km-kosong { text-align: center; color: #475569; padding: 24px !important; }
.km-aksi { display: flex; gap: 8px; }
.km-aksi button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #334155; }
.km-aksi .km-hapus { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.km-pil { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.km-pil-hijau { background: #dcfce7; color: #15803d; }
.km-pil-biru { background: #e0f2fe; color: #0369a1; }
.km-pil-kuning { background: #fef3c7; color: #92400e; }
.km-pil-abu { background: #e2e8f0; color: #0f172a; font-size: 15px; }
.km-pil-besar { padding: 8px 14px; font-size: 14px; border: 1px solid #86efac; }
.km-chip { display: inline-block; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; font-size: 13px; white-space: normal; }
.km-chip-hapus { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 3px 0; }
.km-chip-hapus button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: #475569; font-size: 16px; line-height: 1; }
.km-chatmu { position: absolute; right: 24px; bottom: 70px; z-index: 3; display: grid; place-items: center; width: 52px; height: 52px; border: 3px solid #fff; border-radius: 50%; background: #15803d; color: #fff; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3); }
.km-langkah-bayar { margin: 12px 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.km-awas { padding: 12px 14px; border-radius: 10px; background: #fef2f2; border: 1.5px solid #fca5a5; color: #7f1d1d; line-height: 1.5; }
.km-sukses { color: #15803d !important; font-weight: 700; }
.km-ava-abu { display: inline-grid; background: #64748b; vertical-align: middle; }
.km-dua-baris { display: inline-grid; vertical-align: middle; margin-left: 8px; }
.km-dua-baris small { color: #475569; }
.km-bk { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e0e7ff; color: #4338ca; font-weight: 700; margin-right: 10px; }

.km-polos { padding: 6px 4px 0; }
.km-polos > p { margin: 6px 0 18px; color: #475569; }
.km-h-besar { font-size: 26px !important; font-weight: 800 !important; }
.km-h-sedang { font-size: 26px !important; font-weight: 500 !important; margin: 10px 0 0 !important; }
.km-dua { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.km-sub-judul { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.km-ungu-teks { color: #8b5cf6; display: inline-flex; }
.km-pink-teks { color: #db2777; display: inline-flex; }
.km-grafik { width: 100%; height: auto; }
.km-grafik text { font-size: 12px; fill: #475569; }
.km-donat { width: 100%; max-width: 320px; display: block; margin: 0 auto; }
.km-donat-kecil { font-size: 14px; fill: #475569; }
.km-donat-besar { font-size: 26px; font-weight: 700; fill: #0f172a; }
.km-legenda { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; color: #334155; }
.km-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

.km-panel { border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; background: #fff; margin: 10px 0 18px; }
.km-panel label, .km-form label { display: grid; gap: 6px; font-weight: 600; color: #334155; margin: 0 0 14px; }
.km-panel input, .km-panel select { min-height: 44px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; font: inherit; color: #0f172a; }
.km-panel input:disabled, .km-panel select:disabled { background: #f8fafc; color: #334155; }
.km-tiga { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; }
.km-tiga p { margin: 0; }
.km-dl { display: grid; grid-template-columns: 1fr auto; gap: 14px 10px; margin: 10px 0 16px; }
.km-dl dt { color: #475569; }
.km-dl dd { margin: 0; font-weight: 600; text-align: right; }

.km-langganan { padding: 0; overflow: hidden; }
.km-langganan > .km-kartu-kepala { background: #fff; padding: 24px; }
.km-langganan > .km-dua { padding: 0 24px 24px; }
.km-status-langganan { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 20px 24px; padding: 18px 20px; border: 1px solid #86efac; border-radius: 14px; background: #ecfdf5; }
.km-status-langganan > div { display: grid; gap: 4px; flex: 1; min-width: 240px; color: #166534; }
.km-status-langganan small { color: #166534; }
.km-sisa { margin: 0; display: grid; text-align: center; background: #fff; padding: 10px 18px; border-radius: 10px; }
.km-sisa small { font-size: 12px; letter-spacing: 0.06em; color: #15803d; font-weight: 700; }
.km-sisa b { font-size: 24px; color: #14532d; }

.km-profil-kepala { display: flex; align-items: center; gap: 28px; margin-bottom: 26px; }
.km-foto, .km-logo-sekolah { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08); font-size: 34px; font-weight: 700; color: #94a3b8; }
.km-kamera { position: absolute; right: 2px; bottom: 6px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #0ea5e9; color: #fff; }
.km-grid2, .km-grid3 { display: grid; gap: 14px 24px; margin: 0; }
.km-grid2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.km-grid3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.km-grid2 dt, .km-grid3 dt { color: #475569; font-size: 14px; }
.km-grid2 dd, .km-grid3 dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.km-bagian { margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #e2e8f0; font-size: 15px; color: #0f172a; }

.km-indikator { border: 1px solid #e2e8f0; }
.km-ind-kepala { display: flex; gap: 14px; align-items: flex-start; }
.km-ind-kepala .km-stat-ikon { width: 44px; height: 44px; }
.km-ind-kepala div { display: block; }
.km-ind-kepala .km-pil { margin-left: 8px; }
.km-ind-kepala b { font-size: 18px; }
.km-ind-kepala small { display: block; margin-top: 6px; color: #475569; font-size: 14px; }
.km-bar { position: relative; height: 10px; border-radius: 99px; background: #e5e7eb; margin-top: 8px; }
.km-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f59e0b, #ea580c); transition: width 0.4s; }
.km-bar i { position: absolute; top: -4px; width: 2px; height: 18px; background: #b45309; }
.km-bar-label { display: flex; justify-content: space-between; font-size: 13px; color: #475569; margin: 6px 0 14px !important; }
.km-bar-label b { color: #b45309; }
.km-ind-baris { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 12px 16px; border-radius: 10px; background: #f1f5f9; }
.km-ind-baris span { display: inline-flex; align-items: center; gap: 8px; }
.km-rincian { margin: 0 0 14px; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.km-rincian ul { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; }
.km-rincian .ok { color: #15803d; }
.km-rincian .belum { color: #b91c1c; font-weight: 600; }
.km-rincian p { margin: 0; color: #b91c1c; }
.km-sekolah { text-align: center; background: #fff; display: grid; justify-items: center; gap: 10px; }
.km-sekolah p { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: #334155; }
.km-logo-sekolah { width: 84px; height: 84px; color: #3498db; }
.km-logo-sekolah b { color: #0f172a; font-size: 24px; }

.km-lonceng { position: relative; cursor: pointer; }
.km-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.km-notif { position: absolute; top: 62px; right: 120px; z-index: 3; width: min(380px, calc(100% - 24px)); background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18); padding: 6px 16px; }
.km-notif-kepala { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.km-notif-kepala b { font-size: 17px; }
.km-notif-kepala button { border: 0; background: none; color: #334155; min-height: 24px; }
.km-notif-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.km-notif-item p { margin: 0; display: grid; gap: 2px; }
.km-notif-item small { color: #475569; }

.km-mkepala { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 16px; padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
.km-mkepala h4 { margin: 0; font-weight: 500; }
.km-x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; color: #334155; }
.km-form { background: #fff; }
.km-lebar { width: min(760px, 100%); }
.km-form .km-grid2 label { margin: 0; }
.km-wajib input { border-color: #fca5a5 !important; background: #fff7f7 !important; }
.km-logo-baris { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; margin: 12px 0 0; }
.km-logo-baris.km-wajib { border-color: #fca5a5; background: #fff7f7; }
.km-logo-baris button { min-height: 32px; padding: 4px 12px; border: 1px solid #94a3b8; border-radius: 6px; background: #f3f4f6; }
.km-logo-baris span { color: #475569; font-size: 13px; }
.km-kaki { display: flex; justify-content: flex-end; gap: 12px; margin: 18px -24px -24px !important; padding: 16px 24px; border-top: 1px solid #e2e8f0; }

@media (max-width: 760px) {
	/* layar sempit: sidebar jadi baris geser di atas, biar menu sasaran tetap bisa ditekan */
	.km { grid-template-columns: minmax(0, 1fr); } /* 1fr polos ikut melebar sepanjang strip menu (1085px) */
	.km-side { flex-direction: row; align-items: center; }
	.km-logo, .km-sesi { display: none; }
	.km-side nav { display: flex; overflow-x: auto; padding: 8px; }
	.km-side nav button { flex: none; height: 40px; gap: 8px; }
	.km-top { padding: 0 12px; gap: 8px; }
	.km-jam, .km-user span:last-child { display: none; }
	.km-tombol:not(.km-lonceng) { display: none; }
	.km-notif { right: 12px; }
	.km-kartu { padding: 16px; }
	.km-user { border: 0; padding: 0; }
}
.km-sekolah .km-grid3 { grid-template-columns: repeat(2, minmax(0, 180px)); justify-content: center; }
