:root {
  --paper: #f4f1ea;
  --surface: #ffffff;
  --ink: #1f2a24;
  --pine: #22443a;
  --pine-2: #2c574a;
  --clay: #b4552d;
  --clay-deep: #8a3d1f;
  --muted: #5c6b5f;
  --line: #d8d2c4;
  --line-strong: #807a68;
  --focus: #0b5fbf;
  --focus-ring-2: #ffd76a;

  --ok: #2e6b3e;
  --warn: #7a5300;
  --bad: #a3261d;
  --info: #235c7a;
  --ok-tint: #ddebe0;
  --warn-tint: #f0e4c8;
  --bad-tint: #f1d8d5;
  --info-tint: #d7e3ec;
  --neutral-tint: #e8e2d6;

  --r-sm: 4px;
  --r-md: 6px;
  --r-pill: 999px;

  --sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, Cambria, "Times New Roman", serif;

  --tap: 44px;
  --topbar-h: 56px;
  --tabbar-h: 60px;
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }

/* Atribut hidden harus selalu menang: rule author (.btn { display:inline-flex },
   .sheet { display:flex }) menimpa [hidden] bawaan UA stylesheet, sehingga tombol
   langkah wizard tidak pernah tersembunyi. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }

p { margin: 0 0 .8em; }
a { color: var(--clay-deep); }
a:hover { color: var(--clay); }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--pine); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--r-md) 0;
}
.skip:focus { left: 0; }

/* Double-ring: outline biru untuk bg terang (paper/putih/tint), box-shadow gold
   untuk bg gelap (pine/ok/bad/warn/clay). Masing-masing punya >=3:1 di bg yang
   satu lagi gagal, jadi keduanya dipasangkan agar selalu ada satu ring lolos. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-ring-2);
  border-radius: var(--r-sm);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: 0 1rem;
  background: var(--pine); color: #fff;
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; min-height: var(--tap); }
.brand:hover { color: #fff; }
.mark { width: 28px; height: 18px; color: var(--clay); flex: none; }
.mark-lg { width: 56px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .2px; }
.brand-text em { font-style: normal; font-size: .72rem; color: #cfe0d9; letter-spacing: .4px; }
.topbar-right { display: flex; align-items: center; gap: .6rem; }
.net {
  font-size: .75rem; padding: .2rem .5rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
}
.net[data-state="off"] { background: #7a5300; border-color: #a97a2a; }
.userchip { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; min-height: var(--tap); }
.avatar {
  width: var(--tap); height: var(--tap); border-radius: var(--r-pill);
  background: var(--clay); color: #fff; display: grid; place-items: center;
  font-weight: 700; flex: none;
}
.userchip-text { display: none; flex-direction: column; line-height: 1.15; font-size: .9rem; }
.userchip-text small { color: #cfe0d9; font-size: .72rem; }
.logout-form { margin: 0; }
.iconbtn {
  background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff;
  width: var(--tap); height: var(--tap); border-radius: var(--r-md);
  display: grid; place-items: center; cursor: pointer; text-decoration: none;
}
.iconbtn:hover { background: rgba(255,255,255,.12); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.sidebar { display: none; }
.content {
  flex: 1; min-width: 0;
  padding: 1.25rem 1rem calc(var(--tabbar-h) + 2rem);
}

/* ---------- Mobile tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface); border-top: 1px solid var(--line);
  display: flex; align-items: stretch;
}
.tablink {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: var(--muted); font-size: .68rem; min-height: var(--tap);
}
.tablink .ic { width: 22px; height: 22px; }
.tablink.on { color: var(--pine); }
.tablink.on .ic { stroke-width: 2.3; }

/* ---------- Panels ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1rem; margin-bottom: 1rem;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.page-head h1 { margin: 0; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.crumb { margin: 0 0 .25rem; font-size: .85rem; }

/* ---------- Stats ---------- */
.stat-row { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.25rem; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: .85rem .9rem;
}
.stat-label { display: block; font-size: .78rem; color: var(--muted); }
.stat-value { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-variant-numeric: tabular-nums; }
.stat-sub { display: block; font-size: .74rem; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .6rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .76rem; text-transform: none; letter-spacing: .3px; color: var(--muted); border-bottom: 2px solid var(--line-strong); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr:hover { background: #faf8f2; }
.tabel-klik tbody tr { cursor: pointer; }
.table-note { margin: .6rem 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: var(--tap); padding: 0 1rem; font: inherit; font-weight: 600;
  border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--clay); color: #fff; border-color: var(--clay); }
.btn-primary:hover { background: var(--clay-deep); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--neutral-tint); color: var(--ink); }
.btn-ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn-ok:hover { color: #fff; filter: brightness(.94); }
.btn-bad { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-bad:hover { color: #fff; filter: brightness(.94); }
.btn-sm { min-height: var(--tap); padding: 0 .65rem; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { color: var(--clay-deep); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; padding: .15rem .55rem; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.b-ok { background: var(--ok-tint); color: var(--ok); border-color: var(--ok); }
.b-warn { background: var(--warn-tint); color: var(--warn); border-color: var(--warn); }
.b-bad { background: var(--bad-tint); color: var(--bad); border-color: var(--bad); }
.b-info { background: var(--info-tint); color: var(--info); border-color: var(--info); }
.b-neutral { background: var(--neutral-tint); color: var(--ink-soft); border-color: var(--line-strong); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; }
.label-like { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
/* Penanda kategori isian: teks + warna, jadi tetap terbaca tanpa warna (R-25). */
.req {
  display: inline-block; margin-left: .35rem; padding: .05rem .4rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .01em;
  border-radius: var(--r-sm); border: 1px solid; vertical-align: middle;
}
.req-wajib { background: var(--bad-tint); color: var(--bad); border-color: var(--bad); }
.req-opsi { background: var(--neutral-tint); color: var(--ink-soft); border-color: var(--line-strong); font-weight: 600; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: .6rem .65rem; min-height: var(--tap); width: 100%;
}
textarea { min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
.field-note { margin: 0; }
.field-aksi { flex-direction: row; align-items: flex-end; gap: .5rem; }
.input-sm { min-height: 40px; width: 88px; }
.inline-form { display: flex; gap: .4rem; align-items: center; }
.hint { font-size: .82rem; color: var(--muted); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.sub { margin-top: 1rem; }

.filters {
  display: grid; gap: .75rem; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1rem; margin-bottom: 1rem;
}

/* ---------- Alerts ---------- */
.alert { padding: .7rem .9rem; border-radius: var(--r-sm); border: 1px solid; margin-bottom: 1rem; }
.alert-bad { background: var(--bad-tint); color: var(--bad); border-color: var(--bad); }
.alert-ok { background: var(--ok-tint); color: var(--ok); border-color: var(--ok); }

/* ---------- Empty ---------- */
.empty {
  text-align: center; padding: 2.5rem 1rem; background: var(--surface);
  border: 1px dashed var(--line-strong); border-radius: var(--r-md); margin-bottom: 1rem;
}
.empty .mark { color: var(--clay); margin-bottom: .5rem; }
.empty h3 { margin-bottom: .3rem; }

/* ---------- Feed / timeline ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.timeline { list-style: none; margin: 0 0 1rem; padding: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.2rem; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-dot { position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: var(--r-pill); background: var(--clay); }
.timeline p { margin: .2rem 0 0; }

/* ---------- Defs ---------- */
.defs { margin: 0; display: grid; gap: .55rem; }
.defs > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .45rem; }
.defs dt { color: var(--muted); font-size: .85rem; }
.defs dd { margin: 0; text-align: right; }

.plain-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tab { padding: .6rem .8rem; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.on { color: var(--pine); border-bottom-color: var(--clay); }

/* ---------- Wizard ---------- */
.wizard { max-width: 820px; }
.steps { list-style: none; display: flex; gap: .35rem; padding: 0; margin: 0 0 1rem; overflow-x: auto; }
.steps li { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); padding: .4rem .6rem; border: 1px solid var(--line); border-radius: var(--r-pill); white-space: nowrap; background: var(--surface); }
.steps li span { width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--neutral-tint); display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.steps li.on { color: var(--pine); border-color: var(--pine); }
.steps li.on span { background: var(--clay); color: #fff; }
.step-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; margin-bottom: 1rem; }
.wizard-foot { display: flex; align-items: center; gap: .5rem; position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + .5rem); background: var(--paper); padding: .5rem 0; }
.wizard-state { flex: 1; font-size: .82rem; color: var(--muted); }
.wizard-state-alert { color: var(--bad); font-weight: 600; }
.field.is-kurang > label { color: var(--bad); }
.field.is-kurang input, .field.is-kurang select, .field.is-kurang textarea,
.scan-card.is-kurang { border-color: var(--bad); background: var(--bad-tint); }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; }
.scale-opt { position: relative; }
.scale-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale-opt span {
  display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: .45rem .2rem;
  min-height: var(--tap); font-weight: 700; justify-content: center; background: var(--surface);
}
.scale-opt em { font-style: normal; font-weight: 400; font-size: .58rem; color: var(--muted); text-align: center; line-height: 1.1; }
.scale-opt input:checked + span { background: var(--pine); color: #fff; border-color: var(--pine); }
.scale-opt input:checked + span em { color: #cfe0d9; }
.scale-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.param { border: 1px solid var(--line); border-radius: var(--r-md); padding: .7rem .8rem; margin: 0 0 .7rem; }
.param legend { font-weight: 600; padding: 0 .3rem; }
.tagbobot { color: var(--clay-deep); font-weight: 600; }

.coord { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.coord button { grid-column: 1 / -1; }

.foto-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.foto-list li { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .4rem .6rem; }
.foto-list img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-sm); }
.foto-list .btn-mini { margin-left: auto; }
.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.foto-item { display: block; text-decoration: none; color: var(--ink); }
.foto-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.foto-item span { font-size: .78rem; color: var(--muted); }

.ringkasan { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; background: #faf8f2; }
.ringkasan-body { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.ringkasan-skor { font-family: var(--serif); font-size: 2.4rem; font-variant-numeric: tabular-nums; }

/* ---------- Map ---------- */
.map { height: 60vh; min-height: 320px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--neutral-tint); }
.map-fallback { padding: 1rem; display: grid; align-content: center; min-height: 160px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Auth ---------- */
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem 1rem; background: var(--paper); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; }
.auth-head { text-align: center; margin-bottom: 1rem; }
.auth-head .mark { color: var(--clay); }
.auth-card h1 { font-size: 1.3rem; margin-top: .5rem; }
.auth-card .form { display: grid; gap: .35rem; margin-top: 1rem; }
.auth-card .btn { margin-top: .6rem; }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(2, 1fr); align-items: end; }
  .userchip-text { display: flex; }
}

@media (min-width: 900px) {
  .sidebar {
    display: flex; flex-direction: column; gap: .15rem;
    width: var(--sidebar-w); flex: none; padding: 1rem .6rem;
    border-right: 1px solid var(--line); background: var(--surface);
  }
  .tabbar { display: none; }
  .content { padding: 1.75rem 2rem 3rem; }
  .navlink {
    display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem;
    border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 500;
  }
  .navlink:hover { background: var(--neutral-tint); }
  .navlink.on { background: var(--pine); color: #fff; }
  .navlink.on .ic { stroke-width: 2.3; }
  .grid-2 { grid-template-columns: 1.4fr 1fr; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .filters { grid-template-columns: 1.6fr 1fr auto; }
  .form-grid { grid-template-columns: repeat(3, 1fr); }
  .foto-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .map { height: 66vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Bottom sheet (navigasi mobile) ---------- */
.navlink {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem;
  border-radius: var(--r-sm); text-decoration: none; color: var(--ink);
  font-weight: 500; min-height: var(--tap);
}
.navlink:hover { background: var(--neutral-tint); }
.navlink.on { background: var(--pine); color: #fff; }

.sheet {
  position: fixed; inset: 0; z-index: 60; background: rgba(20, 26, 22, .45);
  display: flex; align-items: flex-end;
}
.sheet[hidden] { display: none; }
.sheet-panel {
  width: 100%; background: var(--surface);
  border-radius: var(--r-md) var(--r-md) 0 0;
  padding: .9rem 1rem calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + .9rem);
  display: grid; gap: .25rem; box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }

/* ---------- Portal masyarakat ---------- */
.pub-topbar {
  position: sticky; top: 0; z-index: 30; background: var(--pine); color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: .55rem 1rem;
}
.pub-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .35rem; margin-left: auto; }
.pub-nav a {
  color: #cfe0d9; text-decoration: none; font-size: .9rem; padding: .4rem .6rem;
  border-radius: var(--r-sm); min-height: var(--tap); display: inline-flex; align-items: center;
}
.pub-nav a:hover, .pub-nav a.on { color: #fff; background: rgba(255, 255, 255, .14); }
.pub-nav .pub-masuk { color: #fff; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.pub-main { max-width: 980px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.pub-hero { padding: 1.25rem 0 .75rem; }
.pub-hero-sm { padding-top: .5rem; }
.pub-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--clay-deep); font-weight: 700; margin: 0 0 .4rem; }
.pub-hero h1 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem); }
.pub-lead { font-size: 1.05rem; color: var(--muted); max-width: 62ch; }
.pub-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pub-list li { display: flex; flex-direction: column; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #faf8f2; }
.pub-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.pub-steps li { display: flex; gap: .8rem; align-items: flex-start; }
.pub-steps li > span {
  flex: none; width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--pine); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.pub-steps p { margin: .15rem 0 0; }
.panel-note { border-color: var(--clay); border-style: dashed; border-width: 1px; }
.pub-check { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.pub-check .field { flex: 1 1 220px; }
.panel-tiket { text-align: center; }
.tiket-kode { display: block; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.4rem); letter-spacing: .06em; margin: .4rem 0 1rem; }
.form-usulan .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pub-foot { border-top: 1px solid var(--line); background: var(--surface); }
.pub-foot-inner { max-width: 980px; margin: 0 auto; padding: 1rem; }
.pub-foot p { margin: 0 0 .3rem; }

/* ================= Modernisasi tampilan data ================= */
:root {
  --surface-2: #fbfaf5;
  --line-soft: #e8e2d5;
  --ink-soft: #4a4436;
  --neutral-dot: #6e6959;
  --shadow-1: 0 1px 2px rgba(31, 42, 36, .06), 0 1px 3px rgba(31, 42, 36, .05);
  --shadow-2: 0 8px 24px rgba(31, 42, 36, .12);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

a, button, .btn, input, select, textarea, .panel, .stat, .navlink, .tablink,
.chipbtn, .badge, .tabel-klik tbody tr, .foto-item img {
  transition: background-color .18s var(--ease), color .18s var(--ease),
    border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.panel {
  border-color: var(--line-soft);
  border-radius: 10px;
}

/* Kartu statistik */
.stat {
  position: relative; overflow: hidden; border: 1px solid var(--line-soft);
  border-radius: 10px; padding: .85rem 1rem 1rem; background: var(--surface);
}
.stat:hover { border-color: var(--line-strong); }
.stat-label { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 700; color: var(--muted); }
.stat-value { letter-spacing: -.01em; }
.stat-meter { margin-top: .55rem; height: 6px; border-radius: 999px; background: var(--neutral-tint); overflow: hidden; }
.stat-meter > span { display: block; height: 100%; border-radius: 999px; background: var(--pine); }
.stat-meter.m-warn > span { background: var(--warn); }
.stat-meter.m-bad > span { background: var(--bad); }
.stat-meter.m-ok > span { background: var(--ok); }
.stat-meter.m-clay > span { background: var(--clay); }

/* Chip status: titik menandai status nyata, selalu berpasangan teks */
.badge { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge.b-neutral::before { background: var(--neutral-dot); }

/* Meter skor pada tabel */
.meter { display: inline-flex; align-items: center; gap: .5rem; justify-content: flex-end; width: 100%; }
.meter-track { width: 56px; height: 6px; border-radius: 999px; background: var(--neutral-tint); overflow: hidden; flex: none; }
.meter-fill { display: block; height: 100%; border-radius: 999px; background: var(--neutral-dot); }
.meter-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.m-ok .meter-fill { background: var(--ok); }
.m-warn .meter-fill { background: var(--warn); }
.m-bad .meter-fill { background: var(--bad); }

/* Bilah komposisi */
.dist-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--neutral-tint); margin: .4rem 0 .8rem; }
.dist-bar .seg { display: block; height: 100%; }
.dist-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.dist-legend li { display: flex; align-items: center; gap: .5rem; font-size: .86rem; }
.dist-legend .swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dist-legend strong { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Filter chip */
.chipbar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chipbtn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600; min-height: var(--tap);
}
.chipbtn:hover { background: var(--neutral-tint); color: var(--ink); }
.chipbtn.on { background: var(--pine); color: #fff; border-color: var(--pine); }

/* Tabel: kepala lebih tegas, hover halus */
.table thead th { color: var(--ink-soft); font-weight: 700; background: var(--surface-2); }
.table tbody tr:hover { background: var(--surface-2); }
.tabel-klik tbody tr:hover { box-shadow: inset 3px 0 0 var(--clay); }

/* Tabel adaptif: menjadi kartu di layar kecil */
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; }
  .table-adapt thead { display: none; }
  .table-adapt, .table-adapt tbody, .table-adapt tr, .table-adapt td { display: block; width: 100%; }
  .table-adapt tr {
    border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: .6rem;
    padding: .35rem .8rem; background: var(--surface);
  }
  .table-adapt td { border: 0; padding: .42rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .table-adapt td + td { border-top: 1px dashed var(--line-soft); }
  .table-adapt td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 600; }
  .table-adapt td:not([data-label])::before { content: none; }
  .table-adapt td.num, .table-adapt td .meter { justify-content: flex-end; }
  .table-adapt td .meter { width: auto; min-width: 120px; }
}

/* ================= Scan dokumen (KTP / KK) ================= */
.scan-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; margin-bottom: 1.1rem; }
.scan-card { border: 1px solid var(--line-soft); border-radius: 10px; padding: .85rem; background: var(--surface-2); }
.scan-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.scan-head h3 { margin: 0; }
.scan-state { font-size: .78rem; color: var(--muted); }
.scan-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.scan-drop {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.1rem;
  border: 2px dashed var(--line-strong); border-radius: 10px; cursor: pointer;
  text-align: center; background: var(--surface);
}
.scan-drop:hover { border-color: var(--clay); }
.scan-drop strong { font-size: .95rem; }
.scan-drop em { font-style: normal; font-size: .78rem; color: var(--muted); }
.scan-ic { width: 34px; height: 34px; fill: none; stroke: var(--clay); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scan-input:focus-visible + .scan-drop { outline: 3px solid var(--focus); outline-offset: 2px; }
.scan-galeri { display: inline-block; margin-top: .5rem; font-size: .82rem; color: var(--clay-deep); cursor: pointer; }

/* Kamera berbimbing */
.kamera { position: fixed; inset: 0; z-index: 70; background: rgba(15, 20, 17, .92); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.kamera[hidden] { display: none; }
.kamera-box { width: 100%; max-width: 680px; background: var(--surface); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; max-height: 92vh; }
.kamera-head { display: flex; align-items: center; justify-content: space-between; padding: .6rem .8rem; border-bottom: 1px solid var(--line-soft); }
.kamera-frame { position: relative; background: #000; flex: 1; min-height: 260px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.kamera-frame video { width: 100%; height: 100%; object-fit: contain; display: block; }
.kamera-guide {
  position: absolute; border: 2px solid rgba(255, 255, 255, .85); border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35);
  display: flex; align-items: flex-end; justify-content: center; pointer-events: none;
}
.kamera-guide span { color: #fff; font-size: .72rem; background: rgba(0, 0, 0, .5); padding: .15rem .45rem; border-radius: var(--r-pill); margin-bottom: .3rem; }
.kamera-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border-top: 1px solid var(--line-soft); }
.kamera-foot p { margin: 0; flex: 1; }
@media (max-width: 560px) { .kamera-foot { flex-direction: column; align-items: stretch; } }
.scan-preview { width: 100%; margin-top: .6rem; border-radius: 8px; border: 1px solid var(--line); max-height: 220px; object-fit: contain; background: #fff; }

.tombol-pasang { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .1); }
.tombol-pasang:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.draf-banner {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  border: 1px solid var(--warn); background: var(--warn-tint); color: var(--warn);
  border-radius: 10px; padding: .6rem .8rem; margin-bottom: 1rem;
}
.draf-banner .draf-aksi { display: flex; gap: .4rem; }
.foto-list span { flex: 1; font-size: .85rem; }
@media (min-width: 560px) { .scan-grid { grid-template-columns: 1fr 1fr; } }

/* Lima slot foto kondisi rumah: kamera atau galeri per sudut. */
.foto-slot { list-style: none; margin: 0; padding: 0; }
.foto-slot li { display: flex; flex-direction: column; }
.foto-slot .scan-head { margin-bottom: .45rem; }
.foto-slot .scan-head h3 { font-size: .95rem; }
.foto-slot .scan-aksi { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.foto-slot .scan-galeri { margin-top: 0; }
.foto-slot .scan-terisi { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.foto-slot .scan-terisi img { width: 100%; max-height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.dash .stat-row { gap: .75rem; }
.stat-lead { background: var(--pine); border-color: var(--pine); }
.stat-lead .stat-label, .stat-lead .stat-sub, .stat-lead .stat-note { color: #cfe0d9; }
.stat-lead .stat-value { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); color: #fff; }
.stat-note { display: block; margin-top: .45rem; font-size: .76rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.stat-meter + .stat-note { margin-top: .35rem; }

.dist-bar { height: 12px; }
.dist-bar .seg + .seg { box-shadow: -1px 0 0 var(--surface); }
.dist-legend { gap: 0; }
.dist-legend li {
  display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: .25rem .6rem;
  padding: .5rem 0; border-top: 1px solid var(--line-soft);
}
.dist-legend li:first-child { border-top: 0; }
.dist-legend .swatch { grid-row: 1; }
.dist-legend .dl-label { font-weight: 500; }
.dist-legend .dl-val { display: inline-flex; align-items: baseline; gap: .5rem; justify-self: end; }
.dist-legend .dl-val strong { margin-left: 0; font-size: .95rem; }
.dist-legend .dl-val .small { min-width: 3.2rem; text-align: right; font-variant-numeric: tabular-nums; }

.dash .table-adapt th { white-space: nowrap; }
.kec-cell { min-width: 150px; }
.kec-bar { display: flex; align-items: center; gap: .55rem; }
.kec-bar-track { flex: 1 1 auto; height: 8px; border-radius: 999px; background: var(--neutral-tint); overflow: hidden; min-width: 60px; }
.kec-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--pine); }
.kec-bar-val { flex: none; width: 3.6rem; text-align: right; font-size: .8rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.feed-item { align-items: center; padding: .7rem 0; }
.feed-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; }
.feed-name { font-weight: 600; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.feed-name:hover { color: var(--clay-deep); text-decoration: underline; }
.feed-right { flex-wrap: wrap; justify-content: flex-end; }
.feed-date { font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 640px) {
  .dist-legend .dl-val .small { min-width: 0; }
  .kec-cell { min-width: 0; }
  .table-adapt .kec-cell .kec-bar { justify-content: flex-end; }
  .table-adapt .kec-bar { width: auto; min-width: 140px; }
  .table-adapt .kec-bar-track { min-width: 80px; }
  .feed-item { display: grid; grid-template-columns: 1fr; gap: .3rem; }
  .feed-right { justify-content: flex-start; }
  .feed-date { margin-left: auto; }
}

@media (min-width: 900px) {
  .dash .stat-row { grid-template-columns: repeat(4, 1fr); }
}

@media print {
  .topbar, .sidebar, .tabbar, .page-actions, .filters, .wizard-foot, .pub-topbar, .pub-foot { display: none !important; }
  .content, .pub-main { padding: 0; }
  .panel { break-inside: avoid; }
}

.rpt-stats { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.25rem; }
.rpt-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .95rem 1rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0;
}
.rpt-stat .stat-label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rpt-stat .stat-value { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.rpt-stat .stat-sub, .rpt-stat .stat-note { font-size: .78rem; color: var(--muted); }
.rpt-lead { background: var(--pine); border-color: var(--pine); }
.rpt-lead .stat-label, .rpt-lead .stat-sub { color: #cfe0d9; }
.rpt-lead .stat-value { color: #fff; }
@media (min-width: 900px) { .rpt-stats { grid-template-columns: repeat(4, 1fr); } }

.tag {
  display: inline-flex; align-items: center; padding: .08rem .45rem; border-radius: 4px;
  font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; border: 1px solid transparent;
}
.tag-ok { background: var(--ok-tint); color: var(--ok); border-color: var(--ok); }
.tag-warn { background: var(--warn-tint); color: var(--warn); border-color: var(--warn); }
.tag-bad { background: var(--bad-tint); color: var(--bad); border-color: var(--bad); }

.grid-2 > .chart-panel { min-width: 0; }
.chart-panel .muted.small { margin: .1rem 0 .75rem; }

.donut-wrap { display: grid; gap: 1rem; align-items: center; grid-template-columns: minmax(130px, 170px) 1fr; }
.donut { width: 100%; max-width: 170px; height: auto; display: block; }
.donut-track { stroke: var(--neutral-tint); }
.donut-arc { transition: stroke-opacity .15s ease; }
.donut-arc:hover { stroke-opacity: .8; }
.donut-total { font-size: 17px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; font-family: system-ui, "Segoe UI", Roboto, sans-serif; }
.donut-cap { font-size: 8.5px; fill: var(--muted); font-family: system-ui, "Segoe UI", Roboto, sans-serif; }
.donut-wrap .dist-legend { margin: 0; }
@media (max-width: 420px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } .donut-wrap .dist-legend { width: 100%; } }

.kecp { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.kecp-row {
  display: grid; grid-template-columns: minmax(70px, 1fr) minmax(90px, 2fr) auto; gap: .2rem .7rem;
  align-items: center; padding: .15rem 0;
}
.kecp-name { font-size: .88rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.kecp-track { display: block; position: relative; height: 10px; border-radius: 999px; background: var(--neutral-tint); overflow: hidden; }
.kecp-track > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.kecp-total { background: var(--pine); opacity: .35; }
.kecp-setuju { background: var(--ok); }
.kecp-val { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; min-width: 4.5rem; }
.kecp-val strong { font-size: .95rem; }
.kecp-val .small { font-size: .72rem; }
.kec-legenda { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: .9rem 0 0; font-size: .78rem; color: var(--muted); }
.kec-legenda .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--pine); opacity: .35; margin-left: .6rem; }
.kec-legenda .sw:first-child { margin-left: 0; }
.kec-legenda .sw-setuju { background: var(--ok); opacity: 1; }

@media (max-width: 640px) {
  .kecp-row { grid-template-columns: 1fr auto; }
  .kecp-track { grid-column: 1 / -1; grid-row: 2; }
  .kecp-val { flex-direction: row; gap: .4rem; align-items: baseline; }
}

/* ---------- Peta sebaran ---------- */
.peta-panel { padding: .75rem; }
.peta-cari { margin-bottom: .75rem; }
.peta-cari-grid {
  display: grid; gap: .6rem .7rem; align-items: end;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.peta-cari-field { display: grid; align-content: end; gap: .25rem; min-width: 0; }
.peta-cari-field-lebar { grid-column: 1 / -1; }
.peta-cari-field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.peta-cari input, .peta-cari select, .peta-cari .peta-reset { width: 100%; height: var(--tap); }
.peta-cari .peta-reset { grid-column: 1 / -1; justify-self: start; }
.peta-cari input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--pine); }
.peta-cari-centang { align-content: center; }
.peta-centang {
  display: flex; align-items: center; gap: .5rem; min-height: var(--tap);
  font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.peta-cari-bantu { margin: .5rem 0 0; }
@media (min-width: 720px) {
  .peta-cari-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr auto; }
  .peta-cari-field-lebar { grid-column: auto; }
  .peta-cari .peta-reset { grid-column: auto; justify-self: stretch; }
}
.peta-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.peta-filter .chipbtn[aria-pressed="false"] { background: var(--surface); color: var(--muted); border-style: dashed; }
.peta-filter .chipbtn[aria-pressed="false"] .peta-ikon { opacity: .45; }
.peta-filter .chipbtn:disabled { opacity: .5; cursor: not-allowed; }
.peta-filter .chipbtn[aria-disabled="true"] { opacity: .5; cursor: default; }
.peta-chip-n { font-variant-numeric: tabular-nums; font-weight: 700; }
.peta-semua { margin-left: auto; }
.peta-status { margin: 0 0 .6rem; font-size: .85rem; color: var(--muted); }
.peta-panel .map { border: 0; border-radius: 8px; }

.peta-ikon { flex: none; width: 14px; height: 14px; display: inline-block; }
.peta-ikon-lingkaran { border-radius: 50%; background: #2e6b3e; }
.peta-ikon-segitiga { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid #7a5300; }
.peta-ikon-persegi { border-radius: 3px; background: #a3261d; }
.peta-ikon-cincin { border-radius: 50%; background: #fff; border: 4px solid #5c6b5f; }
.peta-ikon-titik { background: none; border: 0; }
.peta-ikon-titik svg { display: block; filter: drop-shadow(0 1px 2px rgba(31, 42, 36, .35)); }

.peta-halaman {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem .75rem; margin: 0 0 .75rem;
}
.peta-halaman[hidden] { display: none; }
.peta-halaman .btn { min-height: var(--tap); }
.peta-halaman-info { font-size: .88rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.peta-daftar-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; justify-content: flex-end; }
.peta-daftar-aksi .btn { min-height: var(--tap); }
.peta-daftar-aksi .btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.peta-daftar { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.peta-baris {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem .7rem;
  padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
.peta-baris[hidden] { display: none; }
.peta-baris-info { display: flex; flex-direction: column; min-width: 0; }
.peta-baris-info strong { overflow-wrap: anywhere; }
.peta-baris-kat { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.peta-baris {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "ikon info info"
    "ikon kat  aksi";
  row-gap: .3rem;
}
.peta-baris .peta-ikon { grid-area: ikon; align-self: start; margin-top: .2rem; }
.peta-baris-info { grid-area: info; }
.peta-baris-kat { grid-area: kat; font-size: .8rem; color: var(--ink-soft); align-self: center; }
.peta-baris .btn { grid-area: aksi; justify-self: end; }
@media (min-width: 640px) {
  .peta-baris {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "ikon info kat aksi";
    row-gap: .5rem;
  }
  .peta-baris .peta-ikon { align-self: center; margin-top: 0; }
  .peta-baris-kat { font-size: .82rem; }
  .peta-baris .btn { white-space: nowrap; }
}

.peta-popup { display: grid; gap: .25rem; min-width: 180px; font-size: .9rem; }
.peta-popup strong { font-size: 1rem; color: var(--ink); }
.peta-popup-kat { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink); }
.peta-popup-kat i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.peta-popup-lokasi { color: var(--muted); font-size: .8rem; }
.peta-detail { margin-top: .35rem; color: var(--clay-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.peta-detail:hover, .peta-detail:focus-visible { color: var(--clay); }

.stat-gauge { display: flex; align-items: center; gap: 1rem; }
.stat-gauge-teks { display: flex; flex-direction: column; min-width: 0; }
.stat-lead.stat-gauge .stat-label, .stat-lead.stat-gauge .stat-sub { color: #cfe0d9; }
.stat-lead.stat-gauge .stat-value { color: #fff; }
.cincin-wrap { flex: none; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.cincin { width: 84px; height: 84px; display: block; }
.cincin-track { stroke: rgba(255, 255, 255, .22); }
.cincin-isi { transition: stroke-dasharray .4s ease; }
.cincin-persen { font-size: 17px; font-weight: 700; fill: #fff; font-family: system-ui, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; }
.cincin-cap { font-size: .68rem; letter-spacing: .04em; color: #cfe0d9; text-align: center; max-width: 8ch; }
@media (prefers-reduced-motion: reduce) { .cincin-isi { transition: none; } }

.dg-scroll { overflow-x: auto; padding-bottom: .25rem; }
.dg { display: block; }
.dg-garis { stroke: var(--line); stroke-width: 1; }
.dg-total { fill: var(--neutral-tint); }
.dg-setuju { fill: var(--ok); }
.dg-label { font-size: 9px; fill: var(--muted); font-family: system-ui, "Segoe UI", Roboto, sans-serif; }
.dg-kolom:hover .dg-total { fill: #d9d2c3; }

@media (max-width: 640px) {
  .stat-gauge { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* Daftar pengguna: aksi baris, navigasi halaman, dan panel edit */
.row-aksi { display: flex; gap: .4rem; flex-wrap: wrap; }
.row-aksi form { display: contents; }
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: .85rem; flex-wrap: wrap;
}
.pager .muted { font-variant-numeric: tabular-nums; }
.pager .btn.off { opacity: .45; pointer-events: none; }
.panel-edit { border-color: var(--clay); }
.panel-edit .panel-head h2::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: .5rem;
  background: var(--clay); clip-path: polygon(0 100%, 50% 0, 100% 100%);
  vertical-align: baseline;
}
