.tema-pilih { display:flex; align-items:center; justify-content:center; gap:6px; flex-shrink:0; margin-bottom:16px; }
.tema-pilih button { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid var(--border); border-radius:8px; background:var(--card); color:var(--text); cursor:pointer; }
.tema-pilih button:hover { border-color:var(--primary); }
.tema-pilih button[aria-pressed="true"] { background:#0d2b52; color:#fff; border-color:#0d2b52; }
html[data-tema="gelap"] .tema-pilih button[aria-pressed="true"] { background:#8fbcff; color:#111c2c; border-color:#8fbcff; }
html[data-tema="gelap"] {
  color-scheme: dark;
  --bg:#111c2c; --card:#1b2a3e; --text:#edf3fc; --muted:#b2c2d7; --border:#40536d;
  --primary:#8fbcff; --primary-dark:#132b48;
}
html[data-tema="gelap"] :focus-visible { outline-color:#8fbcff; }
html[data-tema="gelap"] input,
html[data-tema="gelap"] select,
html[data-tema="gelap"] textarea { background:var(--card); color:var(--text); border-color:var(--border); }
html[data-tema="gelap"] .announcement,
html[data-tema="gelap"] .tm-baris-profil,
html[data-tema="gelap"] .blok.aktif,
html[data-tema="gelap"] .tm-akun-terpilih,
html[data-tema="gelap"] .tm-cocok { background:#243750; }
html[data-tema="gelap"] .lencana.abu,
html[data-tema="gelap"] .tm-lencana { background:#243750; color:var(--muted); }
html[data-tema="gelap"] .blue { background:#243750; color:#8fbcff; }
html[data-tema="gelap"] .green { background:#19352f; color:#a3e9c5; }
html[data-tema="gelap"] .red { background:#44282e; color:#ffb7b7; }
html[data-tema="gelap"] .orange { background:#403421; color:#f5d397; }
html[data-tema="gelap"] .baris-ringkas.total b,
html[data-tema="gelap"] .blok .blok-hitung.lunas { color:#a3e9c5; }
html[data-tema="gelap"] .blok .blok-hitung.utang,
html[data-tema="gelap"] .tombol-mini.tm-bahaya,
html[data-tema="gelap"] .tombol-arsip,
html[data-tema="gelap"] .sistem-item .sistem-galat { color:#ffb7b7; }
html[data-tema="gelap"] .sistem-item small,
html[data-tema="gelap"] .sensor-waktu { color:var(--muted); }
html[data-tema="gelap"] details summary,
html[data-tema="gelap"] .tm-warga-nama:hover,
html[data-tema="gelap"] .tm-warga-nama:focus-visible { color:#8fbcff; }
html[data-tema="gelap"] .tombol-mini.tm-bahaya:hover { background:#44282e; }
html[data-tema="gelap"] .topbar,
html[data-tema="gelap"] .modal-header,
html[data-tema="gelap"] .sensor-item,
html[data-tema="gelap"] .konten-item,
html[data-tema="gelap"] .tombol-mini,
html[data-tema="gelap"] .form-grup input,
html[data-tema="gelap"] .form-grup select,
html[data-tema="gelap"] .form-grup textarea,
html[data-tema="gelap"] .tm-pilih,
html[data-tema="gelap"] .tm-cari,
html[data-tema="gelap"] .konten-toolbar select,
html[data-tema="gelap"] .konten-form input,
html[data-tema="gelap"] .konten-form select,
html[data-tema="gelap"] .konten-form textarea,
html[data-tema="gelap"] .pengaturan-item .tabel input,
html[data-tema="gelap"] .tm-ambang-baris input,
html[data-tema="gelap"] .tm-lain-baris input,
html[data-tema="gelap"] .tm-pilih-bayar select,
html[data-tema="gelap"] .aduan-item { background:var(--card); color:var(--text); border-color:var(--border); }
html[data-tema="gelap"] .search,
html[data-tema="gelap"] .quick-btn,
html[data-tema="gelap"] .blok,
html[data-tema="gelap"] .fasilitas,
html[data-tema="gelap"] .dokumen,
html[data-tema="gelap"] .umkm,
html[data-tema="gelap"] .kontak,
html[data-tema="gelap"] .laporan,
html[data-tema="gelap"] .konten-form,
html[data-tema="gelap"] .tm-peran-kartu,
html[data-tema="gelap"] .sistem-item,
html[data-tema="gelap"] .news-image,
html[data-tema="gelap"] .activity-date { background:#243750; color:var(--text); }
html[data-tema="gelap"] .environment { background:#19352f; }
html[data-tema="gelap"] .environment h3,
html[data-tema="gelap"] .sensor-item strong { color:#a3e9c5; }
html[data-tema="gelap"] .environment p { color:#c0d9cd; }
html[data-tema="gelap"] .date,
html[data-tema="gelap"] .audit small,
html[data-tema="gelap"] .bar-label { color:var(--muted); }
html[data-tema="gelap"] .tombol { background:#2565b3; color:#fff; }
html[data-tema="gelap"] .tombol:hover { background:#1c5395; }
html[data-tema="gelap"] .tombol-mini:hover,
html[data-tema="gelap"] .quick-btn:hover { background:#304765; }
html[data-tema="gelap"] .tm-baris-atas input,
html[data-tema="gelap"] #tmTagihanAksi input,
html[data-tema="gelap"] #tmKelolaRumah input,
html[data-tema="gelap"] #tmKelolaRumah select,
html[data-tema="gelap"] #tmPersetujuanPengeluaran input { background:var(--card); color:var(--text); border-color:var(--border); }
@media (max-width:768px) {
  html { scroll-padding-top:100px; }
}
