* { box-sizing: border-box; }
:root {
  --bg: #f5f7fb; --kartu: #ffffff; --garis: #e6eaf1; --teks: #111827; --lembut: #6b7280;
  --biru: #2563eb; --biru-tua: #1d4ed8; --biru-muda: #eff4ff; --hijau: #059669;
  --merah: #dc2626; --kuning: #b45309; --radius: 14px;
  --bayang: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--teks); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--biru); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 6px; line-height: 1.25; }
h1 { font-size: 26px; letter-spacing: -.4px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
.kecil { font-size: 13px; }
.lembut { color: var(--lembut); }
.tengah { text-align: center; }

.bungkus { max-width: 1060px; margin: 0 auto; padding: 18px; }
.sempit { max-width: 430px; }

.kepala {
  position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--garis);
}
.kepala .bungkus { display: flex; align-items: center; gap: 12px; padding: 12px 18px; flex-wrap: wrap; }
.merek { font-weight: 700; font-size: 17px; letter-spacing: -.3px; }
.merek span { color: var(--biru); }
.pil {
  background: var(--biru-muda); color: var(--biru-tua); border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: 13px;
}
.pil.hijau { background: #e7f7f0; color: var(--hijau); }
.pil.kuning { background: #fdf4e3; color: var(--kuning); }
.pil.merah { background: #fdeaea; color: var(--merah); }
.kanan { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.kartu {
  background: var(--kartu); border: 1px solid var(--garis); border-radius: var(--radius);
  box-shadow: var(--bayang); padding: 18px; margin-bottom: 16px;
}
.kartu.padat { padding: 14px; }

label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 5px; }
input, textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid #d6dbe5; border-radius: 10px; font: inherit;
  background: #fff; color: var(--teks);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--biru-muda); border-color: var(--biru); }
textarea { min-height: 92px; resize: vertical; }

.tombol {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  font: 600 14px system-ui, sans-serif; background: var(--biru); color: #fff;
}
.tombol:hover { background: var(--biru-tua); text-decoration: none; }
.tombol.pudar { background: #fff; color: var(--teks); border-color: #d6dbe5; }
.tombol.pudar:hover { background: #f3f5f9; }
.tombol.kecil { padding: 7px 11px; font-size: 13px; }
.tombol:disabled { opacity: .55; cursor: not-allowed; }
.baris-tombol { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

.pesan { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 12px; display: none; }
.pesan.tampil { display: block; }
.pesan.galat { background: #fdeaea; color: #991b1b; border: 1px solid #f7c9c9; }
.pesan.sukses { background: #e7f7f0; color: #065f46; border: 1px solid #bfe8d7; }
.pesan.info { background: var(--biru-muda); color: var(--biru-tua); border: 1px solid #cfdcfb; }

.galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 13px; }
.app { background: #fff; border: 1px solid var(--garis); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.app .judul { font-weight: 700; font-size: 15px; margin-bottom: 4px; overflow-wrap: anywhere; }
.app .kaki { margin-top: auto; padding-top: 10px; display: flex; gap: 7px; flex-wrap: wrap; }
.app .pratinjau {
  background: #f8fafc; border: 1px solid var(--garis); border-radius: 9px; height: 86px; margin: 9px 0;
  display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 12px;
}
.tab { display: flex; gap: 6px; border-bottom: 1px solid var(--garis); margin-bottom: 16px; flex-wrap: wrap; }
.tab button {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 13px; cursor: pointer;
  font: 600 14px system-ui, sans-serif; color: var(--lembut);
}
.tab button.aktif { color: var(--biru); border-bottom-color: var(--biru); }

.putar {
  width: 16px; height: 16px; border: 2px solid #cbd5e1; border-top-color: var(--biru);
  border-radius: 50%; display: inline-block; animation: putar .8s linear infinite; vertical-align: -3px;
}
@keyframes putar { to { transform: rotate(360deg); } }
.progres-kotak { background: #f8fafc; border: 1px dashed #cfd8e6; border-radius: 10px; padding: 12px; margin-top: 12px; display: none; }
.progres-kotak.tampil { display: block; }
.batang { height: 7px; background: #e8edf5; border-radius: 999px; overflow: hidden; margin-top: 9px; }
.batang div { height: 100%; width: 35%; background: var(--biru); border-radius: 999px; animation: geser 1.4s ease-in-out infinite; }
@keyframes geser { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--garis); }
th { color: var(--lembut); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.angka { font-variant-numeric: tabular-nums; }

.dua-kolom { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .dua-kolom { grid-template-columns: 1fr; } .bungkus { padding: 14px; } h1 { font-size: 22px; } }
.sembunyi { display: none !important; }
