body { background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
.lp-bar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 10px; padding: 12px 14px; padding-top: calc(12px + env(safe-area-inset-top));
  background: linear-gradient(135deg, #0b1b36, #163a70); color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.lp-judul { flex: 1; min-width: 0; line-height: 1.25; }
.lp-judul b { display: block; font-size: 16px; }
.lp-judul span { font-size: 12px; opacity: .75; }
.lp-kembali { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.sinyal { font-size: 12px; font-weight: 700; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .15); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sinyal::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sinyal.online { background: rgba(12, 163, 12, .25); color: #9ff09f; }
.sinyal.offline { background: rgba(208, 59, 59, .3); color: #ffb3b3; }
.lp-view { padding: 14px; max-width: 640px; margin: 0 auto; animation: masuk .25s ease; }
.lp-kartu { padding: 16px; }
.btn.besar { width: 100%; padding: 14px 16px; font-size: 16px; border-radius: 12px; }

.lp-sambut { text-align: center; padding: 26px 10px 20px; }
.lp-sambut h1 { font-size: 21px; margin-top: 14px; }
.lp-sambut p { color: var(--text-2); font-size: 14px; }
.logo-besar { width: 64px; height: 64px; margin: 0 auto; border-radius: 18px; background: linear-gradient(135deg, #f5b400, #ffcf4d); color: #0b1b36; display: grid; place-items: center; font-size: 24px; font-weight: 800; box-shadow: 0 8px 24px rgba(245, 180, 0, .35); }

.lp-halo h2 { font-size: 20px; margin-top: 2px; }
.status-sinkron { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.status-sinkron > div:nth-child(2) { flex: 1; min-width: 0; }
.lingkar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--ok-soft); color: var(--ok-ink); flex: none; }
.lingkar.ada { background: var(--warn-soft); color: var(--warn-ink); }
.cta { width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 16px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, var(--brand), #3b7cf0); color: #fff; box-shadow: 0 8px 24px rgba(29, 95, 209, .35); transition: transform .1s; }
.cta:active { transform: scale(.98); }
.cta > span:nth-child(2) { flex: 1; }
.cta b { display: block; font-size: 16px; }
.cta span span { font-size: 12.5px; opacity: .85; }
.cta-ikon { width: 46px; height: 46px; border-radius: 13px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.judul-bagian { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 8px; color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.judul-bagian .btn { text-transform: none; letter-spacing: 0; }
.lp-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; gap: 12px; align-items: center; }
.lp-item + .lp-item { margin-top: 8px; }
.lp-item .isi-item { flex: 1; min-width: 0; }
.lp-item .isi-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-item .bar { margin-top: 8px; }
.lp-item .persen { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.aksi-bawah { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.aksi-bawah .btn { flex: 1 1 auto; }

.langkah { display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin-bottom: 12px; }
.langkah .no { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.isi-langkah { min-width: 0; }
.isi-langkah h3 { font-size: 15px; margin-top: 5px; }
.gps { padding: 10px 12px; border-radius: 11px; background: var(--surface-3); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.gps .denyut { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; position: relative; }
.gps .denyut::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: gelombang 1.6s infinite; }
@keyframes gelombang { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.gps.ok { background: var(--ok-soft); color: var(--ok-ink); } .gps.ok .denyut { background: var(--st-sesuai); }
.gps.jauh { background: var(--bad-soft); color: var(--bad-ink); } .gps.jauh .denyut { background: var(--st-kritis); }
.gps.lemah { background: var(--warn-soft); color: var(--warn-ink); } .gps.lemah .denyut { background: var(--st-terlambat); }
.progres-besar { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.progres-besar input { width: 130px; font-size: 44px; font-weight: 800; text-align: right; border: 0; background: transparent; padding: 0; font-variant-numeric: tabular-nums; }
.progres-besar input:focus { box-shadow: none; border-bottom: 2px solid var(--brand); border-radius: 0; }
.progres-besar span { font-size: 24px; font-weight: 700; color: var(--text-2); }
input[type=range] { width: 100%; accent-color: var(--seri-realisasi); height: 28px; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; }
.stepper .btn { font-size: 20px; padding: 6px; }
.stepper input { text-align: center; font-size: 17px; font-weight: 700; }
.kepala-kecil { display: flex; justify-content: space-between; align-items: center; }
.baris-bahan { display: grid; grid-template-columns: 1fr 72px 72px 38px; gap: 6px; }
.baris-bahan + .baris-bahan { margin-top: 6px; }
.tombol-foto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { border: 1.5px dashed var(--border-2); background: var(--surface-2); border-radius: 12px; padding: 12px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--text-2); position: relative; }
.slot:active { transform: scale(.97); }
.slot b { font-size: 13px; color: var(--text); }
.slot.terisi { border-style: solid; border-color: var(--st-sesuai); background: var(--ok-soft); color: var(--ok-ink); }
.slot span:empty { display: none; }
.slot span { position: absolute; top: 5px; right: 6px; background: var(--st-sesuai); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 0 6px; }
.pratinjau { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pratinjau:empty { display: none; }
.pratinjau figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.pratinjau img { width: 100%; height: 100px; object-fit: cover; display: block; }
.pratinjau figcaption { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; color: #fff; padding: 12px 6px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-weight: 600; }
.pratinjau .hapus { position: absolute; top: 5px; right: 5px; background: rgba(0, 0, 0, .6); color: #fff; border: 0; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; font-size: 13px; }
.aksi-form { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.aksi-form .btn { padding: 14px; border-radius: 12px; }
